@appwrite.io/console 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/sdk.js +8558 -4805
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/package.json +1 -1
  6. package/dist/esm/sdk.js +8559 -4806
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +8558 -4805
  9. package/package.json +59 -50
  10. package/types/client.d.ts +2 -13
  11. package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
  12. package/types/enums/authentication-factor.d.ts +2 -1
  13. package/types/enums/billing-plan-group.d.ts +2 -1
  14. package/types/enums/build-runtime.d.ts +4 -1
  15. package/types/enums/cache-database.d.ts +1 -2
  16. package/types/enums/embedding-model.d.ts +1 -3
  17. package/types/enums/execution-resource-type.d.ts +4 -0
  18. package/types/enums/framework.d.ts +1 -0
  19. package/types/enums/id-token-provider.d.ts +4 -0
  20. package/types/enums/image-gravity.d.ts +1 -0
  21. package/types/enums/o-auth-provider.d.ts +5 -0
  22. package/types/enums/organization-key-scopes.d.ts +2 -4
  23. package/types/enums/project-email-template-id.d.ts +2 -1
  24. package/types/enums/project-key-scopes.d.ts +20 -3
  25. package/types/enums/project-o-auth-provider-id.d.ts +5 -0
  26. package/types/enums/project-policy-id.d.ts +2 -0
  27. package/types/enums/query-suggestion-resource.d.ts +2 -3
  28. package/types/enums/runtime.d.ts +4 -1
  29. package/types/enums/usage-event-dimension.d.ts +7 -1
  30. package/types/enums/usage-event-metric.d.ts +55 -0
  31. package/types/enums/usage-gauge-metric.d.ts +50 -0
  32. package/types/index.d.ts +11 -6
  33. package/types/models.d.ts +696 -776
  34. package/types/services/account.d.ts +124 -36
  35. package/types/services/apps.d.ts +6 -6
  36. package/types/services/avatars.d.ts +44 -0
  37. package/types/services/console.d.ts +2 -2
  38. package/types/services/databases.d.ts +8 -8
  39. package/types/services/documents-db.d.ts +13 -7
  40. package/types/services/domains.d.ts +82 -54
  41. package/types/services/functions.d.ts +6 -6
  42. package/types/services/manager.d.ts +14 -14
  43. package/types/services/messaging.d.ts +80 -6
  44. package/types/services/mongo.d.ts +17 -23
  45. package/types/services/mysql.d.ts +17 -23
  46. package/types/services/organization.d.ts +165 -0
  47. package/types/services/organizations.d.ts +24 -24
  48. package/types/services/postgresql.d.ts +17 -23
  49. package/types/services/project.d.ts +218 -51
  50. package/types/services/projects.d.ts +0 -94
  51. package/types/services/sites.d.ts +15 -8
  52. package/types/services/storage.d.ts +2 -2
  53. package/types/services/tables-db.d.ts +37 -12
  54. package/types/services/teams.d.ts +0 -25
  55. package/types/services/usage.d.ts +23 -14
  56. package/types/services/users.d.ts +26 -29
  57. package/types/services/vectors-db.d.ts +15 -9
  58. package/types/services/waf.d.ts +11 -2
  59. package/types/enums/project-usage-range.d.ts +0 -4
@@ -57,6 +57,7 @@ export declare class Domains {
57
57
  * @param {DomainRegistrationType} params.registrationType - Type of registration pricing to fetch. Allowed values: new, transfer, renewal, trade.
58
58
  * @throws {AppwriteException}
59
59
  * @returns {Promise<Models.DomainPrice>}
60
+ * @deprecated This API has been deprecated since 2.0.0. Please use `Domains.listPrices` instead.
60
61
  */
61
62
  getPrice(params: {
62
63
  domain: string;
@@ -74,6 +75,31 @@ export declare class Domains {
74
75
  * @deprecated Use the object parameter style method for a better developer experience.
75
76
  */
76
77
  getPrice(domain: string, periodYears?: number, registrationType?: DomainRegistrationType): Promise<Models.DomainPrice>;
78
+ /**
79
+ * Check availability and get the requested registration price for one or more domain names. Availability is resolved for all domains in a single registrar lookup. Unavailable domains have a null price for new registrations, but can still be priced for renewal, transfer, or trade. Every priced domain also carries its renewal price for the same period, so a separate renewal lookup is not needed. A domain whose price could not be resolved, for example because its TLD is not supported, is returned with a null price.
80
+ *
81
+ * @param {string[]} params.domains - Domain names to check availability and price for. Maximum of 50 domains per request.
82
+ * @param {number} params.periodYears - Number of years to calculate the domain price for. Must be at least 1.
83
+ * @param {DomainRegistrationType} params.registrationType - Type of registration pricing to fetch. Allowed values: new, transfer, renewal, trade.
84
+ * @throws {AppwriteException}
85
+ * @returns {Promise<Models.DomainPricesList>}
86
+ */
87
+ listPrices(params: {
88
+ domains: string[];
89
+ periodYears?: number;
90
+ registrationType?: DomainRegistrationType;
91
+ }): Promise<Models.DomainPricesList>;
92
+ /**
93
+ * Check availability and get the requested registration price for one or more domain names. Availability is resolved for all domains in a single registrar lookup. Unavailable domains have a null price for new registrations, but can still be priced for renewal, transfer, or trade. Every priced domain also carries its renewal price for the same period, so a separate renewal lookup is not needed. A domain whose price could not be resolved, for example because its TLD is not supported, is returned with a null price.
94
+ *
95
+ * @param {string[]} domains - Domain names to check availability and price for. Maximum of 50 domains per request.
96
+ * @param {number} periodYears - Number of years to calculate the domain price for. Must be at least 1.
97
+ * @param {DomainRegistrationType} registrationType - Type of registration pricing to fetch. Allowed values: new, transfer, renewal, trade.
98
+ * @throws {AppwriteException}
99
+ * @returns {Promise<Models.DomainPricesList>}
100
+ * @deprecated Use the object parameter style method for a better developer experience.
101
+ */
102
+ listPrices(domains: string[], periodYears?: number, registrationType?: DomainRegistrationType): Promise<Models.DomainPricesList>;
77
103
  /**
78
104
  * Initiate a domain purchase by providing registrant details and a payment method. Authorizes the payment and returns a `clientSecret`. If 3D Secure is required, use the `clientSecret` on the client to complete the authentication challenge. Once authentication is complete (or if none is needed), call the Update Purchase endpoint to capture the payment and finalize the purchase.
79
105
  *
@@ -637,7 +663,7 @@ export declare class Domains {
637
663
  * @param {string} params.domainId - Domain unique ID.
638
664
  * @param {string} params.name - Record name (subdomain).
639
665
  * @param {string} params.value - IPv4 address for this A record.
640
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
666
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
641
667
  * @param {string} params.comment - A comment explaining what this record is for.
642
668
  * @throws {AppwriteException}
643
669
  * @returns {Promise<Models.DnsRecord>}
@@ -656,7 +682,7 @@ export declare class Domains {
656
682
  * @param {string} domainId - Domain unique ID.
657
683
  * @param {string} name - Record name (subdomain).
658
684
  * @param {string} value - IPv4 address for this A record.
659
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
685
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
660
686
  * @param {string} comment - A comment explaining what this record is for.
661
687
  * @throws {AppwriteException}
662
688
  * @returns {Promise<Models.DnsRecord>}
@@ -672,7 +698,7 @@ export declare class Domains {
672
698
  * @param {string} params.recordId - DNS record unique ID.
673
699
  * @param {string} params.name - Record name (subdomain).
674
700
  * @param {string} params.value - IPv4 address for this A record.
675
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
701
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
676
702
  * @param {string} params.comment - A comment explaining what this record is for.
677
703
  * @throws {AppwriteException}
678
704
  * @returns {Promise<Models.DnsRecord>}
@@ -694,7 +720,7 @@ export declare class Domains {
694
720
  * @param {string} recordId - DNS record unique ID.
695
721
  * @param {string} name - Record name (subdomain).
696
722
  * @param {string} value - IPv4 address for this A record.
697
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
723
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
698
724
  * @param {string} comment - A comment explaining what this record is for.
699
725
  * @throws {AppwriteException}
700
726
  * @returns {Promise<Models.DnsRecord>}
@@ -708,7 +734,7 @@ export declare class Domains {
708
734
  * @param {string} params.domainId - Domain unique ID.
709
735
  * @param {string} params.name - Record name (subdomain).
710
736
  * @param {string} params.value - IPv6 address for this AAAA record.
711
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
737
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
712
738
  * @param {string} params.comment - A comment explaining what this record is for.
713
739
  * @throws {AppwriteException}
714
740
  * @returns {Promise<Models.DnsRecord>}
@@ -727,7 +753,7 @@ export declare class Domains {
727
753
  * @param {string} domainId - Domain unique ID.
728
754
  * @param {string} name - Record name (subdomain).
729
755
  * @param {string} value - IPv6 address for this AAAA record.
730
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
756
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
731
757
  * @param {string} comment - A comment explaining what this record is for.
732
758
  * @throws {AppwriteException}
733
759
  * @returns {Promise<Models.DnsRecord>}
@@ -743,7 +769,7 @@ export declare class Domains {
743
769
  * @param {string} params.recordId - DNS record unique ID.
744
770
  * @param {string} params.name - Record name (subdomain).
745
771
  * @param {string} params.value - IPv6 address for this AAAA record.
746
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
772
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
747
773
  * @param {string} params.comment - A comment for this record.
748
774
  * @throws {AppwriteException}
749
775
  * @returns {Promise<Models.DnsRecord>}
@@ -765,7 +791,7 @@ export declare class Domains {
765
791
  * @param {string} recordId - DNS record unique ID.
766
792
  * @param {string} name - Record name (subdomain).
767
793
  * @param {string} value - IPv6 address for this AAAA record.
768
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
794
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
769
795
  * @param {string} comment - A comment for this record.
770
796
  * @throws {AppwriteException}
771
797
  * @returns {Promise<Models.DnsRecord>}
@@ -780,7 +806,7 @@ export declare class Domains {
780
806
  * @param {string} params.domainId - Domain unique ID.
781
807
  * @param {string} params.name - Record name.
782
808
  * @param {string} params.value - Target domain for this ALIAS record.
783
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
809
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
784
810
  * @param {string} params.comment - A comment for this record.
785
811
  * @throws {AppwriteException}
786
812
  * @returns {Promise<Models.DnsRecord>}
@@ -800,7 +826,7 @@ export declare class Domains {
800
826
  * @param {string} domainId - Domain unique ID.
801
827
  * @param {string} name - Record name.
802
828
  * @param {string} value - Target domain for this ALIAS record.
803
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
829
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
804
830
  * @param {string} comment - A comment for this record.
805
831
  * @throws {AppwriteException}
806
832
  * @returns {Promise<Models.DnsRecord>}
@@ -818,7 +844,7 @@ export declare class Domains {
818
844
  * @param {string} params.recordId - DNS record unique ID.
819
845
  * @param {string} params.name - Record name.
820
846
  * @param {string} params.value - Target domain for this ALIAS record.
821
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
847
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
822
848
  * @param {string} params.comment - A comment for this record.
823
849
  * @throws {AppwriteException}
824
850
  * @returns {Promise<Models.DnsRecord>}
@@ -842,7 +868,7 @@ export declare class Domains {
842
868
  * @param {string} recordId - DNS record unique ID.
843
869
  * @param {string} name - Record name.
844
870
  * @param {string} value - Target domain for this ALIAS record.
845
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
871
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
846
872
  * @param {string} comment - A comment for this record.
847
873
  * @throws {AppwriteException}
848
874
  * @returns {Promise<Models.DnsRecord>}
@@ -856,7 +882,7 @@ export declare class Domains {
856
882
  * @param {string} params.domainId - Domain unique ID.
857
883
  * @param {string} params.name - Record name.
858
884
  * @param {string} params.value - CAA value (e.g. issuer domain).
859
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
885
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
860
886
  * @param {string} params.comment - A comment for this record.
861
887
  * @throws {AppwriteException}
862
888
  * @returns {Promise<Models.DnsRecord>}
@@ -875,7 +901,7 @@ export declare class Domains {
875
901
  * @param {string} domainId - Domain unique ID.
876
902
  * @param {string} name - Record name.
877
903
  * @param {string} value - CAA value (e.g. issuer domain).
878
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
904
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
879
905
  * @param {string} comment - A comment for this record.
880
906
  * @throws {AppwriteException}
881
907
  * @returns {Promise<Models.DnsRecord>}
@@ -891,7 +917,7 @@ export declare class Domains {
891
917
  * @param {string} params.recordId - DNS record unique ID.
892
918
  * @param {string} params.name - Record name.
893
919
  * @param {string} params.value - CAA value (e.g. issuer domain).
894
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
920
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
895
921
  * @param {string} params.comment - A comment for this record.
896
922
  * @throws {AppwriteException}
897
923
  * @returns {Promise<Models.DnsRecord>}
@@ -913,7 +939,7 @@ export declare class Domains {
913
939
  * @param {string} recordId - DNS record unique ID.
914
940
  * @param {string} name - Record name.
915
941
  * @param {string} value - CAA value (e.g. issuer domain).
916
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
942
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
917
943
  * @param {string} comment - A comment for this record.
918
944
  * @throws {AppwriteException}
919
945
  * @returns {Promise<Models.DnsRecord>}
@@ -930,7 +956,7 @@ export declare class Domains {
930
956
  * @param {string} params.domainId - Domain unique ID.
931
957
  * @param {string} params.name - Record name (subdomain).
932
958
  * @param {string} params.value - Canonical target for this CNAME record.
933
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
959
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
934
960
  * @param {string} params.comment - A comment for this record.
935
961
  * @throws {AppwriteException}
936
962
  * @returns {Promise<Models.DnsRecord>}
@@ -952,7 +978,7 @@ export declare class Domains {
952
978
  * @param {string} domainId - Domain unique ID.
953
979
  * @param {string} name - Record name (subdomain).
954
980
  * @param {string} value - Canonical target for this CNAME record.
955
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
981
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
956
982
  * @param {string} comment - A comment for this record.
957
983
  * @throws {AppwriteException}
958
984
  * @returns {Promise<Models.DnsRecord>}
@@ -966,7 +992,7 @@ export declare class Domains {
966
992
  * @param {string} params.recordId - DNS record unique ID.
967
993
  * @param {string} params.name - Record name (subdomain).
968
994
  * @param {string} params.value - Canonical target for this CNAME record.
969
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
995
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
970
996
  * @param {string} params.comment - A comment for this record.
971
997
  * @throws {AppwriteException}
972
998
  * @returns {Promise<Models.DnsRecord>}
@@ -986,7 +1012,7 @@ export declare class Domains {
986
1012
  * @param {string} recordId - DNS record unique ID.
987
1013
  * @param {string} name - Record name (subdomain).
988
1014
  * @param {string} value - Canonical target for this CNAME record.
989
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1015
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
990
1016
  * @param {string} comment - A comment for this record.
991
1017
  * @throws {AppwriteException}
992
1018
  * @returns {Promise<Models.DnsRecord>}
@@ -1000,7 +1026,7 @@ export declare class Domains {
1000
1026
  * @param {string} params.domainId - Domain unique ID.
1001
1027
  * @param {string} params.name - Record name (subdomain).
1002
1028
  * @param {string} params.value - Target for the HTTPS record.
1003
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1029
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1004
1030
  * @param {string} params.comment - A comment for this record.
1005
1031
  * @throws {AppwriteException}
1006
1032
  * @returns {Promise<Models.DnsRecord>}
@@ -1019,7 +1045,7 @@ export declare class Domains {
1019
1045
  * @param {string} domainId - Domain unique ID.
1020
1046
  * @param {string} name - Record name (subdomain).
1021
1047
  * @param {string} value - Target for the HTTPS record.
1022
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1048
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1023
1049
  * @param {string} comment - A comment for this record.
1024
1050
  * @throws {AppwriteException}
1025
1051
  * @returns {Promise<Models.DnsRecord>}
@@ -1035,7 +1061,7 @@ export declare class Domains {
1035
1061
  * @param {string} params.recordId - DNS record unique ID.
1036
1062
  * @param {string} params.name - Record name (subdomain).
1037
1063
  * @param {string} params.value - Target for the HTTPS record.
1038
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1064
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1039
1065
  * @param {string} params.comment - A comment for this record.
1040
1066
  * @throws {AppwriteException}
1041
1067
  * @returns {Promise<Models.DnsRecord>}
@@ -1057,7 +1083,7 @@ export declare class Domains {
1057
1083
  * @param {string} recordId - DNS record unique ID.
1058
1084
  * @param {string} name - Record name (subdomain).
1059
1085
  * @param {string} value - Target for the HTTPS record.
1060
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1086
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1061
1087
  * @param {string} comment - A comment for this record.
1062
1088
  * @throws {AppwriteException}
1063
1089
  * @returns {Promise<Models.DnsRecord>}
@@ -1073,8 +1099,8 @@ export declare class Domains {
1073
1099
  * @param {string} params.domainId - Domain unique ID.
1074
1100
  * @param {string} params.name - Record name (subdomain).
1075
1101
  * @param {string} params.value - Mail server domain for this MX record.
1076
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1077
- * @param {number} params.priority - MX priority.
1102
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1103
+ * @param {number} params.priority - MX priority. Lower values are tried first.
1078
1104
  * @param {string} params.comment - A comment for this record.
1079
1105
  * @throws {AppwriteException}
1080
1106
  * @returns {Promise<Models.DnsRecord>}
@@ -1096,8 +1122,8 @@ export declare class Domains {
1096
1122
  * @param {string} domainId - Domain unique ID.
1097
1123
  * @param {string} name - Record name (subdomain).
1098
1124
  * @param {string} value - Mail server domain for this MX record.
1099
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1100
- * @param {number} priority - MX priority.
1125
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1126
+ * @param {number} priority - MX priority. Lower values are tried first.
1101
1127
  * @param {string} comment - A comment for this record.
1102
1128
  * @throws {AppwriteException}
1103
1129
  * @returns {Promise<Models.DnsRecord>}
@@ -1111,8 +1137,8 @@ export declare class Domains {
1111
1137
  * @param {string} params.recordId - DNS record unique ID.
1112
1138
  * @param {string} params.name - Record name (subdomain).
1113
1139
  * @param {string} params.value - Mail server domain for this MX record.
1114
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1115
- * @param {number} params.priority - MX priority.
1140
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1141
+ * @param {number} params.priority - MX priority. Lower values are tried first.
1116
1142
  * @param {string} params.comment - A comment for this record.
1117
1143
  * @throws {AppwriteException}
1118
1144
  * @returns {Promise<Models.DnsRecord>}
@@ -1133,8 +1159,8 @@ export declare class Domains {
1133
1159
  * @param {string} recordId - DNS record unique ID.
1134
1160
  * @param {string} name - Record name (subdomain).
1135
1161
  * @param {string} value - Mail server domain for this MX record.
1136
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1137
- * @param {number} priority - MX priority.
1162
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1163
+ * @param {number} priority - MX priority. Lower values are tried first.
1138
1164
  * @param {string} comment - A comment for this record.
1139
1165
  * @throws {AppwriteException}
1140
1166
  * @returns {Promise<Models.DnsRecord>}
@@ -1148,7 +1174,7 @@ export declare class Domains {
1148
1174
  * @param {string} params.domainId - Domain unique ID.
1149
1175
  * @param {string} params.name - Record name (subdomain).
1150
1176
  * @param {string} params.value - Nameserver target for this NS record.
1151
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1177
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1152
1178
  * @param {string} params.comment - A comment for this record.
1153
1179
  * @throws {AppwriteException}
1154
1180
  * @returns {Promise<Models.DnsRecord>}
@@ -1167,7 +1193,7 @@ export declare class Domains {
1167
1193
  * @param {string} domainId - Domain unique ID.
1168
1194
  * @param {string} name - Record name (subdomain).
1169
1195
  * @param {string} value - Nameserver target for this NS record.
1170
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1196
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1171
1197
  * @param {string} comment - A comment for this record.
1172
1198
  * @throws {AppwriteException}
1173
1199
  * @returns {Promise<Models.DnsRecord>}
@@ -1184,7 +1210,7 @@ export declare class Domains {
1184
1210
  * @param {string} params.recordId - DNS record unique ID.
1185
1211
  * @param {string} params.name - Record name (subdomain).
1186
1212
  * @param {string} params.value - Nameserver target for this NS record.
1187
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1213
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1188
1214
  * @param {string} params.comment - A comment for this record.
1189
1215
  * @throws {AppwriteException}
1190
1216
  * @returns {Promise<Models.DnsRecord>}
@@ -1207,7 +1233,7 @@ export declare class Domains {
1207
1233
  * @param {string} recordId - DNS record unique ID.
1208
1234
  * @param {string} name - Record name (subdomain).
1209
1235
  * @param {string} value - Nameserver target for this NS record.
1210
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1236
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1211
1237
  * @param {string} comment - A comment for this record.
1212
1238
  * @throws {AppwriteException}
1213
1239
  * @returns {Promise<Models.DnsRecord>}
@@ -1222,9 +1248,9 @@ export declare class Domains {
1222
1248
  * @param {string} params.domainId - Domain unique ID.
1223
1249
  * @param {string} params.name - Record name (service name).
1224
1250
  * @param {string} params.value - Target hostname for this SRV record.
1225
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1226
- * @param {number} params.priority - Record priority.
1227
- * @param {number} params.weight - Record weight.
1251
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1252
+ * @param {number} params.priority - Record priority. Lower values are tried first.
1253
+ * @param {number} params.weight - Record weight, used to share load between targets of equal priority.
1228
1254
  * @param {number} params.port - Port number for the service.
1229
1255
  * @param {string} params.comment - A comment for this record.
1230
1256
  * @throws {AppwriteException}
@@ -1248,9 +1274,9 @@ export declare class Domains {
1248
1274
  * @param {string} domainId - Domain unique ID.
1249
1275
  * @param {string} name - Record name (service name).
1250
1276
  * @param {string} value - Target hostname for this SRV record.
1251
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1252
- * @param {number} priority - Record priority.
1253
- * @param {number} weight - Record weight.
1277
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1278
+ * @param {number} priority - Record priority. Lower values are tried first.
1279
+ * @param {number} weight - Record weight, used to share load between targets of equal priority.
1254
1280
  * @param {number} port - Port number for the service.
1255
1281
  * @param {string} comment - A comment for this record.
1256
1282
  * @throws {AppwriteException}
@@ -1278,9 +1304,9 @@ export declare class Domains {
1278
1304
  * @param {string} params.recordId - DNS record unique ID.
1279
1305
  * @param {string} params.name - Record name (service name).
1280
1306
  * @param {string} params.value - Target hostname for this SRV record.
1281
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1282
- * @param {number} params.priority - Record priority.
1283
- * @param {number} params.weight - Record weight.
1307
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1308
+ * @param {number} params.priority - Record priority. Lower values are tried first.
1309
+ * @param {number} params.weight - Record weight, used to share load between targets of equal priority.
1284
1310
  * @param {number} params.port - Port number for the service.
1285
1311
  * @param {string} params.comment - A comment for this record.
1286
1312
  * @throws {AppwriteException}
@@ -1317,9 +1343,9 @@ export declare class Domains {
1317
1343
  * @param {string} recordId - DNS record unique ID.
1318
1344
  * @param {string} name - Record name (service name).
1319
1345
  * @param {string} value - Target hostname for this SRV record.
1320
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1321
- * @param {number} priority - Record priority.
1322
- * @param {number} weight - Record weight.
1346
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1347
+ * @param {number} priority - Record priority. Lower values are tried first.
1348
+ * @param {number} weight - Record weight, used to share load between targets of equal priority.
1323
1349
  * @param {number} port - Port number for the service.
1324
1350
  * @param {string} comment - A comment for this record.
1325
1351
  * @throws {AppwriteException}
@@ -1334,7 +1360,7 @@ export declare class Domains {
1334
1360
  *
1335
1361
  * @param {string} params.domainId - Domain unique ID.
1336
1362
  * @param {string} params.name - Record name (subdomain) for the TXT record.
1337
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1363
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1338
1364
  * @param {string} params.value - TXT record value.
1339
1365
  * @param {string} params.comment - A comment for this record.
1340
1366
  * @throws {AppwriteException}
@@ -1354,7 +1380,7 @@ export declare class Domains {
1354
1380
  *
1355
1381
  * @param {string} domainId - Domain unique ID.
1356
1382
  * @param {string} name - Record name (subdomain) for the TXT record.
1357
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1383
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1358
1384
  * @param {string} value - TXT record value.
1359
1385
  * @param {string} comment - A comment for this record.
1360
1386
  * @throws {AppwriteException}
@@ -1372,7 +1398,7 @@ export declare class Domains {
1372
1398
  * @param {string} params.recordId - DNS record unique ID.
1373
1399
  * @param {string} params.name - Record name (subdomain) for the TXT record.
1374
1400
  * @param {string} params.value - TXT record value.
1375
- * @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
1401
+ * @param {number} params.ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1376
1402
  * @param {string} params.comment - A comment for this record.
1377
1403
  * @throws {AppwriteException}
1378
1404
  * @returns {Promise<Models.DnsRecord>}
@@ -1395,7 +1421,7 @@ export declare class Domains {
1395
1421
  * @param {string} recordId - DNS record unique ID.
1396
1422
  * @param {string} name - Record name (subdomain) for the TXT record.
1397
1423
  * @param {string} value - TXT record value.
1398
- * @param {number} ttl - Time to live, in seconds. Must be greater than 0.
1424
+ * @param {number} ttl - Time to live, in seconds. Must be between 1 and 2147483647.
1399
1425
  * @param {string} comment - A comment for this record.
1400
1426
  * @throws {AppwriteException}
1401
1427
  * @returns {Promise<Models.DnsRecord>}
@@ -1457,7 +1483,8 @@ export declare class Domains {
1457
1483
  */
1458
1484
  deleteRecord(domainId: string, recordId: string): Promise<{}>;
1459
1485
  /**
1460
- * Update the team ID for a specific domain. This endpoint requires admin access.
1486
+ * Update the team ID for a specific domain. The caller must administer the current
1487
+ * team and be an owner of the destination team.
1461
1488
  *
1462
1489
  * Updating the team ID will transfer ownership and access control of the domain
1463
1490
  * and all its DNS records to the new team.
@@ -1472,7 +1499,8 @@ export declare class Domains {
1472
1499
  teamId: string;
1473
1500
  }): Promise<Models.Domain>;
1474
1501
  /**
1475
- * Update the team ID for a specific domain. This endpoint requires admin access.
1502
+ * Update the team ID for a specific domain. The caller must administer the current
1503
+ * team and be an owner of the destination team.
1476
1504
  *
1477
1505
  * Updating the team ID will transfer ownership and access control of the domain
1478
1506
  * and all its DNS records to the new team.
@@ -127,7 +127,7 @@ export declare class Functions {
127
127
  /**
128
128
  * List allowed function specifications for this instance.
129
129
  *
130
- * @param {string} params.type - Specification type to list. Can be one of: runtimes, builds.
130
+ * @param {string} params.type - Specification type to list. Can be one of: runtimes, builds. Defaults to runtimes.
131
131
  * @throws {AppwriteException}
132
132
  * @returns {Promise<Models.SpecificationList>}
133
133
  */
@@ -137,7 +137,7 @@ export declare class Functions {
137
137
  /**
138
138
  * List allowed function specifications for this instance.
139
139
  *
140
- * @param {string} type - Specification type to list. Can be one of: runtimes, builds.
140
+ * @param {string} type - Specification type to list. Can be one of: runtimes, builds. Defaults to runtimes.
141
141
  * @throws {AppwriteException}
142
142
  * @returns {Promise<Models.SpecificationList>}
143
143
  * @deprecated Use the object parameter style method for a better developer experience.
@@ -731,7 +731,7 @@ export declare class Functions {
731
731
  *
732
732
  * @param {string} params.functionId - Function unique ID.
733
733
  * @param {string} params.variableId - Variable ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
734
- * @param {string} params.key - Variable key. Max length: 255 chars.
734
+ * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
735
735
  * @param {string} params.value - Variable value. Max length: 8192 chars.
736
736
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
737
737
  * @throws {AppwriteException}
@@ -749,7 +749,7 @@ export declare class Functions {
749
749
  *
750
750
  * @param {string} functionId - Function unique ID.
751
751
  * @param {string} variableId - Variable ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
752
- * @param {string} key - Variable key. Max length: 255 chars.
752
+ * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
753
753
  * @param {string} value - Variable value. Max length: 8192 chars.
754
754
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
755
755
  * @throws {AppwriteException}
@@ -784,7 +784,7 @@ export declare class Functions {
784
784
  *
785
785
  * @param {string} params.functionId - Function unique ID.
786
786
  * @param {string} params.variableId - Variable unique ID.
787
- * @param {string} params.key - Variable key. Max length: 255 chars.
787
+ * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
788
788
  * @param {string} params.value - Variable value. Max length: 8192 chars.
789
789
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
790
790
  * @throws {AppwriteException}
@@ -802,7 +802,7 @@ export declare class Functions {
802
802
  *
803
803
  * @param {string} functionId - Function unique ID.
804
804
  * @param {string} variableId - Variable unique ID.
805
- * @param {string} key - Variable key. Max length: 255 chars.
805
+ * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
806
806
  * @param {string} value - Variable value. Max length: 8192 chars.
807
807
  * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
808
808
  * @throws {AppwriteException}
@@ -18,7 +18,7 @@ export declare class Manager {
18
18
  * @param {string} params.reason - Optional reason why the resource is blocked
19
19
  * @param {string} params.expiredAt - Optional expiration date for the block
20
20
  * @throws {AppwriteException}
21
- * @returns {Promise<Models.Block>}
21
+ * @returns {Promise<Models.ManagerBlock>}
22
22
  */
23
23
  createBlock(params: {
24
24
  projectId: string;
@@ -27,7 +27,7 @@ export declare class Manager {
27
27
  mode?: BlockMode;
28
28
  reason?: string;
29
29
  expiredAt?: string;
30
- }): Promise<Models.Block>;
30
+ }): Promise<Models.ManagerBlock>;
31
31
  /**
32
32
  * Creates a new resource block.
33
33
  *
@@ -38,10 +38,10 @@ export declare class Manager {
38
38
  * @param {string} reason - Optional reason why the resource is blocked
39
39
  * @param {string} expiredAt - Optional expiration date for the block
40
40
  * @throws {AppwriteException}
41
- * @returns {Promise<Models.Block>}
41
+ * @returns {Promise<Models.ManagerBlock>}
42
42
  * @deprecated Use the object parameter style method for a better developer experience.
43
43
  */
44
- createBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string, mode?: BlockMode, reason?: string, expiredAt?: string): Promise<Models.Block>;
44
+ createBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string, mode?: BlockMode, reason?: string, expiredAt?: string): Promise<Models.ManagerBlock>;
45
45
  /**
46
46
  * Deletes resource blocks for a project.
47
47
  *
@@ -49,13 +49,13 @@ export declare class Manager {
49
49
  * @param {BlockResourceType} params.resourceType - Resource type to unblock
50
50
  * @param {string} params.resourceId - Optional resource ID (if omitted, all blocks of this type will be removed)
51
51
  * @throws {AppwriteException}
52
- * @returns {Promise<Models.BlockDelete>}
52
+ * @returns {Promise<Models.ManagerBlockDelete>}
53
53
  */
54
54
  deleteBlock(params: {
55
55
  projectId: string;
56
56
  resourceType: BlockResourceType;
57
57
  resourceId?: string;
58
- }): Promise<Models.BlockDelete>;
58
+ }): Promise<Models.ManagerBlockDelete>;
59
59
  /**
60
60
  * Deletes resource blocks for a project.
61
61
  *
@@ -63,29 +63,29 @@ export declare class Manager {
63
63
  * @param {BlockResourceType} resourceType - Resource type to unblock
64
64
  * @param {string} resourceId - Optional resource ID (if omitted, all blocks of this type will be removed)
65
65
  * @throws {AppwriteException}
66
- * @returns {Promise<Models.BlockDelete>}
66
+ * @returns {Promise<Models.ManagerBlockDelete>}
67
67
  * @deprecated Use the object parameter style method for a better developer experience.
68
68
  */
69
- deleteBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string): Promise<Models.BlockDelete>;
69
+ deleteBlock(projectId: string, resourceType: BlockResourceType, resourceId?: string): Promise<Models.ManagerBlockDelete>;
70
70
  /**
71
71
  * Lists all resource blocks for a project.
72
72
  *
73
73
  * @param {string} params.projectId - Project ID
74
74
  * @throws {AppwriteException}
75
- * @returns {Promise<Models.BlockList>}
75
+ * @returns {Promise<Models.ManagerBlockList>}
76
76
  */
77
77
  listBlocks(params: {
78
78
  projectId: string;
79
- }): Promise<Models.BlockList>;
79
+ }): Promise<Models.ManagerBlockList>;
80
80
  /**
81
81
  * Lists all resource blocks for a project.
82
82
  *
83
83
  * @param {string} projectId - Project ID
84
84
  * @throws {AppwriteException}
85
- * @returns {Promise<Models.BlockList>}
85
+ * @returns {Promise<Models.ManagerBlockList>}
86
86
  * @deprecated Use the object parameter style method for a better developer experience.
87
87
  */
88
- listBlocks(projectId: string): Promise<Models.BlockList>;
88
+ listBlocks(projectId: string): Promise<Models.ManagerBlockList>;
89
89
  /**
90
90
  * Clears internal cache.
91
91
  *
@@ -93,7 +93,7 @@ export declare class Manager {
93
93
  * @param {CacheTarget} params.cache - Cache target.
94
94
  * @param {boolean} params.all - Clear the entire selected cache target.
95
95
  * @param {CacheDatabase} params.database - Database cache scope.
96
- * @param {string} params.projectId - Project ID for project or logs database cache.
96
+ * @param {string} params.projectId - Project ID for project database cache.
97
97
  * @param {string} params.collectionId - Collection ID.
98
98
  * @param {string} params.documentId - Document ID.
99
99
  * @throws {AppwriteException}
@@ -115,7 +115,7 @@ export declare class Manager {
115
115
  * @param {CacheTarget} cache - Cache target.
116
116
  * @param {boolean} all - Clear the entire selected cache target.
117
117
  * @param {CacheDatabase} database - Database cache scope.
118
- * @param {string} projectId - Project ID for project or logs database cache.
118
+ * @param {string} projectId - Project ID for project database cache.
119
119
  * @param {string} collectionId - Collection ID.
120
120
  * @param {string} documentId - Document ID.
121
121
  * @throws {AppwriteException}