@appwrite.io/console 2.1.2 → 2.2.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 (137) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +2099 -520
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +2098 -521
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +2003 -444
  8. package/docs/examples/account/create-key.md +15 -0
  9. package/docs/examples/account/delete-key.md +13 -0
  10. package/docs/examples/account/get-key.md +13 -0
  11. package/docs/examples/account/list-keys.md +13 -0
  12. package/docs/examples/account/update-key.md +16 -0
  13. package/docs/examples/avatars/get-screenshot.md +5 -5
  14. package/docs/examples/backups/create-archive.md +2 -2
  15. package/docs/examples/backups/create-policy.md +2 -2
  16. package/docs/examples/backups/create-restoration.md +2 -2
  17. package/docs/examples/console/{get-regions.md → list-regions.md} +1 -3
  18. package/docs/examples/databases/create-index.md +2 -2
  19. package/docs/examples/databases/create-longtext-attribute.md +18 -0
  20. package/docs/examples/databases/create-mediumtext-attribute.md +18 -0
  21. package/docs/examples/databases/create-text-attribute.md +18 -0
  22. package/docs/examples/databases/create-varchar-attribute.md +19 -0
  23. package/docs/examples/databases/update-collection.md +1 -1
  24. package/docs/examples/databases/update-longtext-attribute.md +18 -0
  25. package/docs/examples/databases/update-mediumtext-attribute.md +18 -0
  26. package/docs/examples/databases/update-text-attribute.md +18 -0
  27. package/docs/examples/databases/update-varchar-attribute.md +19 -0
  28. package/docs/examples/databases/update.md +1 -1
  29. package/docs/examples/functions/create.md +2 -2
  30. package/docs/examples/functions/list-templates.md +3 -3
  31. package/docs/examples/functions/update.md +2 -2
  32. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  33. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  34. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  35. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  36. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  37. package/docs/examples/migrations/get-firebase-report.md +2 -2
  38. package/docs/examples/migrations/get-n-host-report.md +2 -2
  39. package/docs/examples/migrations/get-supabase-report.md +2 -2
  40. package/docs/examples/organizations/create-key.md +16 -0
  41. package/docs/examples/organizations/create.md +2 -2
  42. package/docs/examples/organizations/delete-key.md +14 -0
  43. package/docs/examples/organizations/estimation-create-organization.md +2 -2
  44. package/docs/examples/organizations/estimation-update-plan.md +2 -2
  45. package/docs/examples/organizations/get-key.md +14 -0
  46. package/docs/examples/organizations/list-keys.md +14 -0
  47. package/docs/examples/organizations/list-regions.md +13 -0
  48. package/docs/examples/organizations/update-key.md +17 -0
  49. package/docs/examples/organizations/update-plan.md +2 -2
  50. package/docs/examples/projects/create-jwt.md +2 -2
  51. package/docs/examples/projects/create-key.md +2 -2
  52. package/docs/examples/projects/update-key.md +2 -2
  53. package/docs/examples/sites/list-templates.md +3 -3
  54. package/docs/examples/tablesdb/create-index.md +2 -2
  55. package/docs/examples/tablesdb/create-longtext-column.md +18 -0
  56. package/docs/examples/tablesdb/create-mediumtext-column.md +18 -0
  57. package/docs/examples/tablesdb/create-text-column.md +18 -0
  58. package/docs/examples/tablesdb/create-varchar-column.md +19 -0
  59. package/docs/examples/tablesdb/update-longtext-column.md +18 -0
  60. package/docs/examples/tablesdb/update-mediumtext-column.md +18 -0
  61. package/docs/examples/tablesdb/update-table.md +1 -1
  62. package/docs/examples/tablesdb/update-text-column.md +18 -0
  63. package/docs/examples/tablesdb/update-varchar-column.md +19 -0
  64. package/docs/examples/tablesdb/update.md +1 -1
  65. package/docs/examples/teams/create-membership.md +2 -2
  66. package/docs/examples/teams/update-membership.md +2 -2
  67. package/package.json +3 -2
  68. package/src/channel.ts +138 -0
  69. package/src/client.ts +54 -9
  70. package/src/enums/browser-permission.ts +22 -0
  71. package/src/enums/deployment-status.ts +1 -0
  72. package/src/enums/frameworks.ts +17 -0
  73. package/src/enums/order-by.ts +4 -0
  74. package/src/enums/resources.ts +13 -0
  75. package/src/enums/roles.ts +7 -0
  76. package/src/enums/runtimes.ts +66 -0
  77. package/src/enums/scopes.ts +65 -0
  78. package/src/enums/services.ts +5 -0
  79. package/src/enums/use-cases.ts +11 -0
  80. package/src/index.ts +10 -1
  81. package/src/models.ts +349 -1
  82. package/src/query.ts +42 -0
  83. package/src/services/account.ts +364 -56
  84. package/src/services/assistant.ts +1 -1
  85. package/src/services/avatars.ts +17 -16
  86. package/src/services/backups.ts +37 -36
  87. package/src/services/console.ts +11 -42
  88. package/src/services/databases.ts +1060 -280
  89. package/src/services/domains.ts +44 -44
  90. package/src/services/functions.ts +60 -57
  91. package/src/services/graphql.ts +2 -2
  92. package/src/services/health.ts +22 -20
  93. package/src/services/messaging.ts +56 -56
  94. package/src/services/migrations.ts +79 -78
  95. package/src/services/organizations.ts +466 -70
  96. package/src/services/project.ts +5 -5
  97. package/src/services/projects.ts +86 -85
  98. package/src/services/proxy.ts +8 -8
  99. package/src/services/realtime.ts +35 -12
  100. package/src/services/sites.ts +42 -40
  101. package/src/services/storage.ts +16 -16
  102. package/src/services/tables-db.ts +1050 -268
  103. package/src/services/teams.ts +31 -30
  104. package/src/services/tokens.ts +5 -5
  105. package/src/services/users.ts +49 -49
  106. package/src/services/vcs.ts +10 -10
  107. package/types/channel.d.ts +72 -0
  108. package/types/client.d.ts +11 -3
  109. package/types/enums/browser-permission.d.ts +22 -0
  110. package/types/enums/deployment-status.d.ts +1 -0
  111. package/types/enums/frameworks.d.ts +17 -0
  112. package/types/enums/order-by.d.ts +4 -0
  113. package/types/enums/resources.d.ts +13 -0
  114. package/types/enums/roles.d.ts +7 -0
  115. package/types/enums/runtimes.d.ts +66 -0
  116. package/types/enums/scopes.d.ts +65 -0
  117. package/types/enums/services.d.ts +5 -0
  118. package/types/enums/use-cases.d.ts +11 -0
  119. package/types/index.d.ts +10 -1
  120. package/types/models.d.ts +341 -1
  121. package/types/query.d.ts +30 -0
  122. package/types/services/account.d.ts +111 -0
  123. package/types/services/avatars.d.ts +5 -4
  124. package/types/services/backups.d.ts +13 -12
  125. package/types/services/console.d.ts +1 -13
  126. package/types/services/databases.d.ts +303 -8
  127. package/types/services/functions.d.ts +18 -15
  128. package/types/services/health.d.ts +2 -0
  129. package/types/services/migrations.d.ts +33 -32
  130. package/types/services/organizations.d.ts +161 -17
  131. package/types/services/projects.d.ts +13 -12
  132. package/types/services/realtime.d.ts +17 -8
  133. package/types/services/sites.d.ts +9 -7
  134. package/types/services/tables-db.d.ts +305 -8
  135. package/types/services/teams.d.ts +9 -8
  136. package/src/enums/billing-plan.ts +0 -17
  137. package/types/enums/billing-plan.d.ts +0 -17
@@ -19,7 +19,7 @@ export class Domains {
19
19
  * @throws {AppwriteException}
20
20
  * @returns {Promise<Models.DomainsList>}
21
21
  */
22
- list(params?: { queries?: string[], search?: string }): Promise<Models.DomainsList>;
22
+ list(params?: { queries?: string[], search?: string }): Promise<Models.DomainsList>;
23
23
  /**
24
24
  * List all domains registered for this project. This endpoint supports pagination.
25
25
  *
@@ -78,7 +78,7 @@ export class Domains {
78
78
  * @throws {AppwriteException}
79
79
  * @returns {Promise<Models.Domain>}
80
80
  */
81
- create(params: { teamId: string, domain: string }): Promise<Models.Domain>;
81
+ create(params: { teamId: string, domain: string }): Promise<Models.Domain>;
82
82
  /**
83
83
  * Create a new domain. Before creating a domain, you need to ensure that your DNS provider is properly configured. After creating the domain, you can use the verification endpoint to check if the domain is ready to be used.
84
84
  *
@@ -148,7 +148,7 @@ export class Domains {
148
148
  * @throws {AppwriteException}
149
149
  * @returns {Promise<Models.DomainSuggestionsList>}
150
150
  */
151
- listSuggestions(params: { query: string, tlds?: string[], limit?: number, filterType?: FilterType, priceMax?: number, priceMin?: number }): Promise<Models.DomainSuggestionsList>;
151
+ listSuggestions(params: { query: string, tlds?: string[], limit?: number, filterType?: FilterType, priceMax?: number, priceMin?: number }): Promise<Models.DomainSuggestionsList>;
152
152
  /**
153
153
  * List domain suggestions.
154
154
  *
@@ -233,7 +233,7 @@ export class Domains {
233
233
  * @throws {AppwriteException}
234
234
  * @returns {Promise<Models.Domain>}
235
235
  */
236
- get(params: { domainId: string }): Promise<Models.Domain>;
236
+ get(params: { domainId: string }): Promise<Models.Domain>;
237
237
  /**
238
238
  * Get a domain by its unique ID.
239
239
  *
@@ -285,7 +285,7 @@ export class Domains {
285
285
  * @throws {AppwriteException}
286
286
  * @returns {Promise<{}>}
287
287
  */
288
- delete(params: { domainId: string }): Promise<{}>;
288
+ delete(params: { domainId: string }): Promise<{}>;
289
289
  /**
290
290
  * Delete a domain by its unique ID. This endpoint can be used to delete a domain from your project.
291
291
  * Once deleted, the domain will no longer be available for use and all associated resources will be removed.
@@ -340,7 +340,7 @@ export class Domains {
340
340
  * @throws {AppwriteException}
341
341
  * @returns {Promise<Models.Domain>}
342
342
  */
343
- updateNameservers(params: { domainId: string }): Promise<Models.Domain>;
343
+ updateNameservers(params: { domainId: string }): Promise<Models.Domain>;
344
344
  /**
345
345
  * Verify which NS records are used and update the domain accordingly. This will check the domain's
346
346
  * nameservers and update the domain's status based on whether the nameservers match the expected
@@ -394,7 +394,7 @@ export class Domains {
394
394
  * @throws {AppwriteException}
395
395
  * @returns {Promise<Models.DnsRecordsList>}
396
396
  */
397
- getPresetGoogleWorkspace(params: { domainId: string }): Promise<Models.DnsRecordsList>;
397
+ getPresetGoogleWorkspace(params: { domainId: string }): Promise<Models.DnsRecordsList>;
398
398
  /**
399
399
  * List Google Workspace DNS records.
400
400
  *
@@ -446,7 +446,7 @@ export class Domains {
446
446
  * @throws {AppwriteException}
447
447
  * @returns {Promise<Models.DnsRecordsList>}
448
448
  */
449
- createPresetGoogleWorkspace(params: { domainId: string }): Promise<Models.DnsRecordsList>;
449
+ createPresetGoogleWorkspace(params: { domainId: string }): Promise<Models.DnsRecordsList>;
450
450
  /**
451
451
  * Add Google Workspace DNS records to the domain. This will create the required MX records
452
452
  * for Google Workspace email hosting.
@@ -499,7 +499,7 @@ export class Domains {
499
499
  * @throws {AppwriteException}
500
500
  * @returns {Promise<Models.DnsRecordsList>}
501
501
  */
502
- getPresetICloud(params: { domainId: string }): Promise<Models.DnsRecordsList>;
502
+ getPresetICloud(params: { domainId: string }): Promise<Models.DnsRecordsList>;
503
503
  /**
504
504
  * List iCloud DNS records.
505
505
  *
@@ -551,7 +551,7 @@ export class Domains {
551
551
  * @throws {AppwriteException}
552
552
  * @returns {Promise<Models.DnsRecordsList>}
553
553
  */
554
- createPresetICloud(params: { domainId: string }): Promise<Models.DnsRecordsList>;
554
+ createPresetICloud(params: { domainId: string }): Promise<Models.DnsRecordsList>;
555
555
  /**
556
556
  * Add iCloud DNS records to the domain. This will create the required MX and SPF records
557
557
  * for using iCloud email services with your domain.
@@ -604,7 +604,7 @@ export class Domains {
604
604
  * @throws {AppwriteException}
605
605
  * @returns {Promise<Models.DnsRecordsList>}
606
606
  */
607
- getPresetMailgun(params: { domainId: string }): Promise<Models.DnsRecordsList>;
607
+ getPresetMailgun(params: { domainId: string }): Promise<Models.DnsRecordsList>;
608
608
  /**
609
609
  * List Mailgun DNS records.
610
610
  *
@@ -656,7 +656,7 @@ export class Domains {
656
656
  * @throws {AppwriteException}
657
657
  * @returns {Promise<Models.DnsRecordsList>}
658
658
  */
659
- createPresetMailgun(params: { domainId: string }): Promise<Models.DnsRecordsList>;
659
+ createPresetMailgun(params: { domainId: string }): Promise<Models.DnsRecordsList>;
660
660
  /**
661
661
  * Add Mailgun DNS records to the domain. This endpoint will create the required DNS records
662
662
  * for Mailgun in the specified domain.
@@ -709,7 +709,7 @@ export class Domains {
709
709
  * @throws {AppwriteException}
710
710
  * @returns {Promise<Models.DnsRecordsList>}
711
711
  */
712
- getPresetOutlook(params: { domainId: string }): Promise<Models.DnsRecordsList>;
712
+ getPresetOutlook(params: { domainId: string }): Promise<Models.DnsRecordsList>;
713
713
  /**
714
714
  * List Outlook DNS records.
715
715
  *
@@ -761,7 +761,7 @@ export class Domains {
761
761
  * @throws {AppwriteException}
762
762
  * @returns {Promise<Models.DnsRecordsList>}
763
763
  */
764
- createPresetOutlook(params: { domainId: string }): Promise<Models.DnsRecordsList>;
764
+ createPresetOutlook(params: { domainId: string }): Promise<Models.DnsRecordsList>;
765
765
  /**
766
766
  * Add Outlook DNS records to the domain. This will create the required MX records
767
767
  * for setting up Outlook email hosting for your domain.
@@ -814,7 +814,7 @@ export class Domains {
814
814
  * @throws {AppwriteException}
815
815
  * @returns {Promise<Models.DnsRecordsList>}
816
816
  */
817
- getPresetProtonMail(params: { domainId: string }): Promise<Models.DnsRecordsList>;
817
+ getPresetProtonMail(params: { domainId: string }): Promise<Models.DnsRecordsList>;
818
818
  /**
819
819
  * List ProtonMail DNS records.
820
820
  *
@@ -866,7 +866,7 @@ export class Domains {
866
866
  * @throws {AppwriteException}
867
867
  * @returns {Promise<Models.DnsRecordsList>}
868
868
  */
869
- createPresetProtonMail(params: { domainId: string }): Promise<Models.DnsRecordsList>;
869
+ createPresetProtonMail(params: { domainId: string }): Promise<Models.DnsRecordsList>;
870
870
  /**
871
871
  * Add ProtonMail DNS records to the domain. This will create the required MX records
872
872
  * for using ProtonMail with your custom domain.
@@ -919,7 +919,7 @@ export class Domains {
919
919
  * @throws {AppwriteException}
920
920
  * @returns {Promise<Models.DnsRecordsList>}
921
921
  */
922
- getPresetZoho(params: { domainId: string }): Promise<Models.DnsRecordsList>;
922
+ getPresetZoho(params: { domainId: string }): Promise<Models.DnsRecordsList>;
923
923
  /**
924
924
  * List Zoho DNS records.
925
925
  *
@@ -971,7 +971,7 @@ export class Domains {
971
971
  * @throws {AppwriteException}
972
972
  * @returns {Promise<Models.DnsRecordsList>}
973
973
  */
974
- createPresetZoho(params: { domainId: string }): Promise<Models.DnsRecordsList>;
974
+ createPresetZoho(params: { domainId: string }): Promise<Models.DnsRecordsList>;
975
975
  /**
976
976
  * Add Zoho Mail DNS records to the domain. This will create the required MX records
977
977
  * for setting up Zoho Mail on your domain.
@@ -1026,7 +1026,7 @@ export class Domains {
1026
1026
  * @throws {AppwriteException}
1027
1027
  * @returns {Promise<Models.DnsRecordsList>}
1028
1028
  */
1029
- listRecords(params: { domainId: string, queries?: string[] }): Promise<Models.DnsRecordsList>;
1029
+ listRecords(params: { domainId: string, queries?: string[] }): Promise<Models.DnsRecordsList>;
1030
1030
  /**
1031
1031
  * List DNS records for a given domain. You can use this endpoint to list all the DNS records
1032
1032
  * associated with your domain.
@@ -1090,7 +1090,7 @@ export class Domains {
1090
1090
  * @throws {AppwriteException}
1091
1091
  * @returns {Promise<Models.DnsRecord>}
1092
1092
  */
1093
- createRecordA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1093
+ createRecordA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1094
1094
  /**
1095
1095
  * Create a new A record for the given domain. A records are used to point a domain name
1096
1096
  * to an IPv4 address. The record value should be a valid IPv4 address.
@@ -1184,7 +1184,7 @@ export class Domains {
1184
1184
  * @throws {AppwriteException}
1185
1185
  * @returns {Promise<Models.DnsRecord>}
1186
1186
  */
1187
- updateRecordA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1187
+ updateRecordA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1188
1188
  /**
1189
1189
  * Update an existing A record for the given domain. This endpoint allows you to modify
1190
1190
  * the properties of an A record including its name (subdomain), IPv4 address, TTL,
@@ -1283,7 +1283,7 @@ export class Domains {
1283
1283
  * @throws {AppwriteException}
1284
1284
  * @returns {Promise<Models.DnsRecord>}
1285
1285
  */
1286
- createRecordAAAA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1286
+ createRecordAAAA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1287
1287
  /**
1288
1288
  * Create a new AAAA record for the given domain. This endpoint allows you to add a new IPv6 DNS record
1289
1289
  * to your domain. The record will be used to point a hostname to an IPv6 address.
@@ -1377,7 +1377,7 @@ export class Domains {
1377
1377
  * @throws {AppwriteException}
1378
1378
  * @returns {Promise<Models.DnsRecord>}
1379
1379
  */
1380
- updateRecordAAAA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1380
+ updateRecordAAAA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1381
1381
  /**
1382
1382
  * Update an existing AAAA record for the given domain. This endpoint allows you to modify
1383
1383
  * the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
@@ -1477,7 +1477,7 @@ export class Domains {
1477
1477
  * @throws {AppwriteException}
1478
1478
  * @returns {Promise<Models.DnsRecord>}
1479
1479
  */
1480
- createRecordAlias(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1480
+ createRecordAlias(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1481
1481
  /**
1482
1482
  * Create a new ALIAS record for the given domain. This record type can be used to point your domain
1483
1483
  * to another domain name that will serve as an alias. This is particularly useful when you want to
@@ -1574,7 +1574,7 @@ export class Domains {
1574
1574
  * @throws {AppwriteException}
1575
1575
  * @returns {Promise<Models.DnsRecord>}
1576
1576
  */
1577
- updateRecordAlias(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1577
+ updateRecordAlias(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1578
1578
  /**
1579
1579
  * Update an existing ALIAS record for the specified domain. This endpoint allows you to modify
1580
1580
  * the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
@@ -1675,7 +1675,7 @@ export class Domains {
1675
1675
  * @throws {AppwriteException}
1676
1676
  * @returns {Promise<Models.DnsRecord>}
1677
1677
  */
1678
- createRecordCAA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1678
+ createRecordCAA(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1679
1679
  /**
1680
1680
  * Create a new CAA record for the given domain. CAA records are used to specify which
1681
1681
  * Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
@@ -1769,7 +1769,7 @@ export class Domains {
1769
1769
  * @throws {AppwriteException}
1770
1770
  * @returns {Promise<Models.DnsRecord>}
1771
1771
  */
1772
- updateRecordCAA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1772
+ updateRecordCAA(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1773
1773
  /**
1774
1774
  * Update an existing CAA record for the given domain. A CAA (Certification Authority Authorization)
1775
1775
  * record is used to specify which certificate authorities (CAs) are authorized to issue certificates
@@ -1871,7 +1871,7 @@ export class Domains {
1871
1871
  * @throws {AppwriteException}
1872
1872
  * @returns {Promise<Models.DnsRecord>}
1873
1873
  */
1874
- createRecordCNAME(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1874
+ createRecordCNAME(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1875
1875
  /**
1876
1876
  * Create a new CNAME record for the given domain.
1877
1877
  *
@@ -1966,7 +1966,7 @@ export class Domains {
1966
1966
  * @throws {AppwriteException}
1967
1967
  * @returns {Promise<Models.DnsRecord>}
1968
1968
  */
1969
- updateRecordCNAME(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1969
+ updateRecordCNAME(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
1970
1970
  /**
1971
1971
  * Update an existing CNAME record for the given domain.
1972
1972
  *
@@ -2063,7 +2063,7 @@ export class Domains {
2063
2063
  * @throws {AppwriteException}
2064
2064
  * @returns {Promise<Models.DnsRecord>}
2065
2065
  */
2066
- createRecordHTTPS(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2066
+ createRecordHTTPS(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2067
2067
  /**
2068
2068
  * Create a new HTTPS record for the given domain. This record is used to configure HTTPS
2069
2069
  * settings for your domain, enabling secure communication over SSL/TLS.
@@ -2157,7 +2157,7 @@ export class Domains {
2157
2157
  * @throws {AppwriteException}
2158
2158
  * @returns {Promise<Models.DnsRecord>}
2159
2159
  */
2160
- updateRecordHTTPS(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2160
+ updateRecordHTTPS(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2161
2161
  /**
2162
2162
  * Update an existing HTTPS record for the given domain. This endpoint allows you to modify
2163
2163
  * the properties of an HTTPS record associated with your domain, including the name (subdomain),
@@ -2259,7 +2259,7 @@ export class Domains {
2259
2259
  * @throws {AppwriteException}
2260
2260
  * @returns {Promise<Models.DnsRecord>}
2261
2261
  */
2262
- createRecordMX(params: { domainId: string, name: string, value: string, ttl: number, priority: number, comment?: string }): Promise<Models.DnsRecord>;
2262
+ createRecordMX(params: { domainId: string, name: string, value: string, ttl: number, priority: number, comment?: string }): Promise<Models.DnsRecord>;
2263
2263
  /**
2264
2264
  * Create a new MX record for the given domain. MX records are used to define the mail servers responsible
2265
2265
  * for accepting email messages for the domain. Multiple MX records can be created with different priorities.
@@ -2363,7 +2363,7 @@ export class Domains {
2363
2363
  * @throws {AppwriteException}
2364
2364
  * @returns {Promise<Models.DnsRecord>}
2365
2365
  */
2366
- updateRecordMX(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, comment?: string }): Promise<Models.DnsRecord>;
2366
+ updateRecordMX(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, comment?: string }): Promise<Models.DnsRecord>;
2367
2367
  /**
2368
2368
  * Update an existing MX record for the given domain.
2369
2369
  *
@@ -2469,7 +2469,7 @@ export class Domains {
2469
2469
  * @throws {AppwriteException}
2470
2470
  * @returns {Promise<Models.DnsRecord>}
2471
2471
  */
2472
- createRecordNS(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2472
+ createRecordNS(params: { domainId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2473
2473
  /**
2474
2474
  * Create a new NS record for the given domain. NS records specify the nameservers that are used
2475
2475
  * to resolve the domain name to IP addresses. Each domain can have multiple NS records.
@@ -2564,7 +2564,7 @@ export class Domains {
2564
2564
  * @throws {AppwriteException}
2565
2565
  * @returns {Promise<Models.DnsRecord>}
2566
2566
  */
2567
- updateRecordNS(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2567
+ updateRecordNS(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
2568
2568
  /**
2569
2569
  * Update an existing NS record for the given domain. This endpoint allows you to modify
2570
2570
  * the properties of an NS (nameserver) record associated with your domain. You can update
@@ -2668,7 +2668,7 @@ export class Domains {
2668
2668
  * @throws {AppwriteException}
2669
2669
  * @returns {Promise<Models.DnsRecord>}
2670
2670
  */
2671
- createRecordSRV(params: { domainId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string }): Promise<Models.DnsRecord>;
2671
+ createRecordSRV(params: { domainId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string }): Promise<Models.DnsRecord>;
2672
2672
  /**
2673
2673
  * Create a new SRV record for the given domain. SRV records are used to define the location
2674
2674
  * of servers for specific services. For example, they can be used to specify which server
@@ -2804,7 +2804,7 @@ export class Domains {
2804
2804
  * @throws {AppwriteException}
2805
2805
  * @returns {Promise<Models.DnsRecord>}
2806
2806
  */
2807
- updateRecordSRV(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string }): Promise<Models.DnsRecord>;
2807
+ updateRecordSRV(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string }): Promise<Models.DnsRecord>;
2808
2808
  /**
2809
2809
  * Update an existing SRV record for the given domain.
2810
2810
  *
@@ -2942,7 +2942,7 @@ export class Domains {
2942
2942
  * @throws {AppwriteException}
2943
2943
  * @returns {Promise<Models.DnsRecord>}
2944
2944
  */
2945
- createRecordTXT(params: { domainId: string, name: string, ttl: number, value?: string, comment?: string }): Promise<Models.DnsRecord>;
2945
+ createRecordTXT(params: { domainId: string, name: string, ttl: number, value?: string, comment?: string }): Promise<Models.DnsRecord>;
2946
2946
  /**
2947
2947
  * Create a new TXT record for the given domain. TXT records can be used
2948
2948
  * to provide additional information about your domain, such as domain
@@ -3035,7 +3035,7 @@ export class Domains {
3035
3035
  * @throws {AppwriteException}
3036
3036
  * @returns {Promise<Models.DnsRecord>}
3037
3037
  */
3038
- updateRecordTXT(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
3038
+ updateRecordTXT(params: { domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string }): Promise<Models.DnsRecord>;
3039
3039
  /**
3040
3040
  * Update an existing TXT record for the given domain.
3041
3041
  *
@@ -3135,7 +3135,7 @@ export class Domains {
3135
3135
  * @throws {AppwriteException}
3136
3136
  * @returns {Promise<Models.DnsRecord>}
3137
3137
  */
3138
- getRecord(params: { domainId: string, recordId: string }): Promise<Models.DnsRecord>;
3138
+ getRecord(params: { domainId: string, recordId: string }): Promise<Models.DnsRecord>;
3139
3139
  /**
3140
3140
  * Get a single DNS record for a given domain by record ID.
3141
3141
  *
@@ -3199,7 +3199,7 @@ export class Domains {
3199
3199
  * @throws {AppwriteException}
3200
3200
  * @returns {Promise<{}>}
3201
3201
  */
3202
- deleteRecord(params: { domainId: string, recordId: string }): Promise<{}>;
3202
+ deleteRecord(params: { domainId: string, recordId: string }): Promise<{}>;
3203
3203
  /**
3204
3204
  * Delete a DNS record for the given domain. This endpoint allows you to delete an existing DNS record
3205
3205
  * from a specific domain.
@@ -3263,7 +3263,7 @@ export class Domains {
3263
3263
  * @throws {AppwriteException}
3264
3264
  * @returns {Promise<Models.Domain>}
3265
3265
  */
3266
- updateTeam(params: { domainId: string, teamId: string }): Promise<Models.Domain>;
3266
+ updateTeam(params: { domainId: string, teamId: string }): Promise<Models.Domain>;
3267
3267
  /**
3268
3268
  * Update the team ID for a specific domain. This endpoint requires admin access.
3269
3269
  *
@@ -3329,7 +3329,7 @@ export class Domains {
3329
3329
  * @throws {AppwriteException}
3330
3330
  * @returns {Promise<{}>}
3331
3331
  */
3332
- getZone(params: { domainId: string }): Promise<{}>;
3332
+ getZone(params: { domainId: string }): Promise<{}>;
3333
3333
  /**
3334
3334
  * Retrieve the DNS zone file for the given domain. This endpoint will return the DNS
3335
3335
  * zone file in a standardized format that can be used to configure DNS servers.
@@ -3383,7 +3383,7 @@ export class Domains {
3383
3383
  * @throws {AppwriteException}
3384
3384
  * @returns {Promise<Models.Domain>}
3385
3385
  */
3386
- updateZone(params: { domainId: string, content: string }): Promise<Models.Domain>;
3386
+ updateZone(params: { domainId: string, content: string }): Promise<Models.Domain>;
3387
3387
  /**
3388
3388
  * Update the DNS zone for the given domain using the provided zone file content.
3389
3389
  * All parsed records are imported and then the main domain document is returned.