@@ -512,6 +512,7 @@ open class Databases: Service {
512512 /// @param String key
513513 /// @param Bool required
514514 /// @param Bool default
515+ /// @param String newKey
515516 /// @throws Exception
516517 /// @return array
517518 ///
@@ -520,7 +521,8 @@ open class Databases: Service {
520521 collectionId: String ,
521522 key: String ,
522523 `required`: Bool ,
523- `default`: Bool ? = nil
524+ `default`: Bool ? = nil ,
525+ newKey: String ? = nil
524526 ) async throws -> AppwriteModels . AttributeBoolean {
525527 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} "
526528 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -529,7 +531,8 @@ open class Databases: Service {
529531
530532 let apiParams : [ String : Any ? ] = [
531533 " required " : `required`,
532- " default " : `default`
534+ " default " : `default`,
535+ " newKey " : newKey
533536 ]
534537
535538 let apiHeaders : [ String : String ] = [
@@ -610,6 +613,7 @@ open class Databases: Service {
610613 /// @param String key
611614 /// @param Bool required
612615 /// @param String default
616+ /// @param String newKey
613617 /// @throws Exception
614618 /// @return array
615619 ///
@@ -618,7 +622,8 @@ open class Databases: Service {
618622 collectionId: String ,
619623 key: String ,
620624 `required`: Bool ,
621- `default`: String ? = nil
625+ `default`: String ? = nil ,
626+ newKey: String ? = nil
622627 ) async throws -> AppwriteModels . AttributeDatetime {
623628 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} "
624629 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -627,7 +632,8 @@ open class Databases: Service {
627632
628633 let apiParams : [ String : Any ? ] = [
629634 " required " : `required`,
630- " default " : `default`
635+ " default " : `default`,
636+ " newKey " : newKey
631637 ]
632638
633639 let apiHeaders : [ String : String ] = [
@@ -710,6 +716,7 @@ open class Databases: Service {
710716 /// @param String key
711717 /// @param Bool required
712718 /// @param String default
719+ /// @param String newKey
713720 /// @throws Exception
714721 /// @return array
715722 ///
@@ -718,7 +725,8 @@ open class Databases: Service {
718725 collectionId: String ,
719726 key: String ,
720727 `required`: Bool ,
721- `default`: String ? = nil
728+ `default`: String ? = nil ,
729+ newKey: String ? = nil
722730 ) async throws -> AppwriteModels . AttributeEmail {
723731 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/email/{key} "
724732 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -727,7 +735,8 @@ open class Databases: Service {
727735
728736 let apiParams : [ String : Any ? ] = [
729737 " required " : `required`,
730- " default " : `default`
738+ " default " : `default`,
739+ " newKey " : newKey
731740 ]
732741
733742 let apiHeaders : [ String : String ] = [
@@ -815,6 +824,7 @@ open class Databases: Service {
815824 /// @param [String] elements
816825 /// @param Bool required
817826 /// @param String default
827+ /// @param String newKey
818828 /// @throws Exception
819829 /// @return array
820830 ///
@@ -824,7 +834,8 @@ open class Databases: Service {
824834 key: String ,
825835 elements: [ String ] ,
826836 `required`: Bool ,
827- `default`: String ? = nil
837+ `default`: String ? = nil ,
838+ newKey: String ? = nil
828839 ) async throws -> AppwriteModels . AttributeEnum {
829840 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} "
830841 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -834,7 +845,8 @@ open class Databases: Service {
834845 let apiParams : [ String : Any ? ] = [
835846 " elements " : elements,
836847 " required " : `required`,
837- " default " : `default`
848+ " default " : `default`,
849+ " newKey " : newKey
838850 ]
839851
840852 let apiHeaders : [ String : String ] = [
@@ -926,6 +938,7 @@ open class Databases: Service {
926938 /// @param Double min
927939 /// @param Double max
928940 /// @param Double default
941+ /// @param String newKey
929942 /// @throws Exception
930943 /// @return array
931944 ///
@@ -936,7 +949,8 @@ open class Databases: Service {
936949 `required`: Bool ,
937950 min: Double ,
938951 max: Double ,
939- `default`: Double ? = nil
952+ `default`: Double ? = nil ,
953+ newKey: String ? = nil
940954 ) async throws -> AppwriteModels . AttributeFloat {
941955 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/float/{key} "
942956 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -947,7 +961,8 @@ open class Databases: Service {
947961 " required " : `required`,
948962 " min " : min,
949963 " max " : max,
950- " default " : `default`
964+ " default " : `default`,
965+ " newKey " : newKey
951966 ]
952967
953968 let apiHeaders : [ String : String ] = [
@@ -1039,6 +1054,7 @@ open class Databases: Service {
10391054 /// @param Int min
10401055 /// @param Int max
10411056 /// @param Int default
1057+ /// @param String newKey
10421058 /// @throws Exception
10431059 /// @return array
10441060 ///
@@ -1049,7 +1065,8 @@ open class Databases: Service {
10491065 `required`: Bool ,
10501066 min: Int ,
10511067 max: Int ,
1052- `default`: Int ? = nil
1068+ `default`: Int ? = nil ,
1069+ newKey: String ? = nil
10531070 ) async throws -> AppwriteModels . AttributeInteger {
10541071 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} "
10551072 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1060,7 +1077,8 @@ open class Databases: Service {
10601077 " required " : `required`,
10611078 " min " : min,
10621079 " max " : max,
1063- " default " : `default`
1080+ " default " : `default`,
1081+ " newKey " : newKey
10641082 ]
10651083
10661084 let apiHeaders : [ String : String ] = [
@@ -1143,6 +1161,7 @@ open class Databases: Service {
11431161 /// @param String key
11441162 /// @param Bool required
11451163 /// @param String default
1164+ /// @param String newKey
11461165 /// @throws Exception
11471166 /// @return array
11481167 ///
@@ -1151,7 +1170,8 @@ open class Databases: Service {
11511170 collectionId: String ,
11521171 key: String ,
11531172 `required`: Bool ,
1154- `default`: String ? = nil
1173+ `default`: String ? = nil ,
1174+ newKey: String ? = nil
11551175 ) async throws -> AppwriteModels . AttributeIp {
11561176 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} "
11571177 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1160,7 +1180,8 @@ open class Databases: Service {
11601180
11611181 let apiParams : [ String : Any ? ] = [
11621182 " required " : `required`,
1163- " default " : `default`
1183+ " default " : `default`,
1184+ " newKey " : newKey
11641185 ]
11651186
11661187 let apiHeaders : [ String : String ] = [
@@ -1307,6 +1328,8 @@ open class Databases: Service {
13071328 /// @param String key
13081329 /// @param Bool required
13091330 /// @param String default
1331+ /// @param Int size
1332+ /// @param String newKey
13101333 /// @throws Exception
13111334 /// @return array
13121335 ///
@@ -1315,7 +1338,9 @@ open class Databases: Service {
13151338 collectionId: String ,
13161339 key: String ,
13171340 `required`: Bool ,
1318- `default`: String ? = nil
1341+ `default`: String ? = nil ,
1342+ size: Int ? = nil ,
1343+ newKey: String ? = nil
13191344 ) async throws -> AppwriteModels . AttributeString {
13201345 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/string/{key} "
13211346 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1324,7 +1349,9 @@ open class Databases: Service {
13241349
13251350 let apiParams : [ String : Any ? ] = [
13261351 " required " : `required`,
1327- " default " : `default`
1352+ " default " : `default`,
1353+ " size " : size,
1354+ " newKey " : newKey
13281355 ]
13291356
13301357 let apiHeaders : [ String : String ] = [
@@ -1407,6 +1434,7 @@ open class Databases: Service {
14071434 /// @param String key
14081435 /// @param Bool required
14091436 /// @param String default
1437+ /// @param String newKey
14101438 /// @throws Exception
14111439 /// @return array
14121440 ///
@@ -1415,7 +1443,8 @@ open class Databases: Service {
14151443 collectionId: String ,
14161444 key: String ,
14171445 `required`: Bool ,
1418- `default`: String ? = nil
1446+ `default`: String ? = nil ,
1447+ newKey: String ? = nil
14191448 ) async throws -> AppwriteModels . AttributeUrl {
14201449 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/url/{key} "
14211450 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
@@ -1424,7 +1453,8 @@ open class Databases: Service {
14241453
14251454 let apiParams : [ String : Any ? ] = [
14261455 " required " : `required`,
1427- " default " : `default`
1456+ " default " : `default`,
1457+ " newKey " : newKey
14281458 ]
14291459
14301460 let apiHeaders : [ String : String ] = [
@@ -1523,22 +1553,25 @@ open class Databases: Service {
15231553 /// @param String collectionId
15241554 /// @param String key
15251555 /// @param AppwriteEnums.RelationMutate onDelete
1556+ /// @param String newKey
15261557 /// @throws Exception
15271558 /// @return array
15281559 ///
15291560 open func updateRelationshipAttribute(
15301561 databaseId: String ,
15311562 collectionId: String ,
15321563 key: String ,
1533- onDelete: AppwriteEnums . RelationMutate ? = nil
1564+ onDelete: AppwriteEnums . RelationMutate ? = nil ,
1565+ newKey: String ? = nil
15341566 ) async throws -> AppwriteModels . AttributeRelationship {
15351567 let apiPath : String = " /databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship "
15361568 . replacingOccurrences ( of: " {databaseId} " , with: databaseId)
15371569 . replacingOccurrences ( of: " {collectionId} " , with: collectionId)
15381570 . replacingOccurrences ( of: " {key} " , with: key)
15391571
15401572 let apiParams : [ String : Any ? ] = [
1541- " onDelete " : onDelete
1573+ " onDelete " : onDelete,
1574+ " newKey " : newKey
15421575 ]
15431576
15441577 let apiHeaders : [ String : String ] = [
0 commit comments