@appwrite.io/console 1.8.0 → 1.10.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 (105) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/CHANGELOG.md +45 -6
  3. package/README.md +82 -2
  4. package/dist/cjs/sdk.js +532 -200
  5. package/dist/cjs/sdk.js.map +1 -1
  6. package/dist/esm/sdk.js +533 -201
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +532 -200
  9. package/docs/examples/databases/create-document.md +1 -3
  10. package/docs/examples/databases/create-documents.md +1 -1
  11. package/docs/examples/databases/decrement-document-attribute.md +18 -0
  12. package/docs/examples/databases/increment-document-attribute.md +18 -0
  13. package/docs/examples/databases/upsert-documents.md +1 -1
  14. package/docs/examples/domains/create-record-a-a-a-a.md +1 -1
  15. package/docs/examples/domains/create-record-a.md +1 -1
  16. package/docs/examples/domains/create-record-alias.md +1 -1
  17. package/docs/examples/domains/create-record-c-a-a.md +1 -1
  18. package/docs/examples/domains/create-record-c-n-a-m-e.md +1 -1
  19. package/docs/examples/domains/create-record-h-t-t-p-s.md +1 -1
  20. package/docs/examples/domains/create-record-m-x.md +1 -1
  21. package/docs/examples/domains/create-record-n-s.md +1 -1
  22. package/docs/examples/domains/create-record-s-r-v.md +1 -1
  23. package/docs/examples/domains/create-record-t-x-t.md +1 -1
  24. package/docs/examples/domains/update-record-a-a-a-a.md +1 -1
  25. package/docs/examples/domains/update-record-a.md +1 -1
  26. package/docs/examples/domains/update-record-alias.md +1 -1
  27. package/docs/examples/domains/update-record-c-a-a.md +1 -1
  28. package/docs/examples/domains/update-record-c-n-a-m-e.md +1 -1
  29. package/docs/examples/domains/update-record-h-t-t-p-s.md +1 -1
  30. package/docs/examples/domains/update-record-m-x.md +1 -1
  31. package/docs/examples/domains/update-record-n-s.md +1 -1
  32. package/docs/examples/domains/update-record-s-r-v.md +1 -1
  33. package/docs/examples/domains/update-record-t-x-t.md +1 -1
  34. package/docs/examples/functions/create-execution.md +1 -1
  35. package/docs/examples/health/{get-queue-stats-usage-dump.md → get-queue-billing-project-aggregation.md} +2 -2
  36. package/docs/examples/health/{get-queue-billing-aggregation.md → get-queue-billing-team-aggregation.md} +1 -1
  37. package/docs/examples/organizations/cancel-downgrade.md +13 -0
  38. package/docs/examples/organizations/estimation-create-organization.md +16 -0
  39. package/docs/examples/organizations/estimation-delete-organization.md +13 -0
  40. package/docs/examples/organizations/estimation-update-plan.md +16 -0
  41. package/docs/examples/organizations/get-available-credits.md +13 -0
  42. package/docs/examples/organizations/get-usage.md +1 -1
  43. package/docs/examples/organizations/update-projects.md +14 -0
  44. package/docs/examples/organizations/validate-payment.md +14 -0
  45. package/docs/examples/proxy/create-redirect-rule.md +4 -2
  46. package/docs/examples/vcs/get-repository-contents.md +2 -1
  47. package/package.json +1 -1
  48. package/src/client.ts +5 -4
  49. package/src/enums/build-runtime.ts +2 -0
  50. package/src/enums/image-format.ts +1 -0
  51. package/src/enums/proxy-resource-type.ts +4 -0
  52. package/src/enums/runtime.ts +2 -0
  53. package/src/index.ts +1 -0
  54. package/src/models.ts +513 -11
  55. package/src/services/account.ts +97 -36
  56. package/src/services/avatars.ts +26 -20
  57. package/src/services/backups.ts +11 -0
  58. package/src/services/console.ts +8 -1
  59. package/src/services/databases.ts +190 -31
  60. package/src/services/domains.ts +111 -69
  61. package/src/services/functions.ts +37 -8
  62. package/src/services/graphql.ts +1 -0
  63. package/src/services/health.ts +54 -4
  64. package/src/services/locale.ts +9 -2
  65. package/src/services/messaging.ts +53 -8
  66. package/src/services/migrations.ts +12 -0
  67. package/src/services/organizations.ts +301 -14
  68. package/src/services/project.ts +5 -0
  69. package/src/services/projects.ts +50 -0
  70. package/src/services/proxy.ts +23 -1
  71. package/src/services/sites.ts +32 -4
  72. package/src/services/storage.ts +23 -9
  73. package/src/services/teams.ts +30 -17
  74. package/src/services/tokens.ts +4 -0
  75. package/src/services/users.ts +69 -27
  76. package/src/services/vcs.ts +16 -4
  77. package/types/enums/build-runtime.d.ts +3 -1
  78. package/types/enums/image-format.d.ts +2 -1
  79. package/types/enums/proxy-resource-type.d.ts +4 -0
  80. package/types/enums/runtime.d.ts +3 -1
  81. package/types/index.d.ts +1 -0
  82. package/types/models.d.ts +494 -188
  83. package/types/services/account.d.ts +36 -36
  84. package/types/services/avatars.d.ts +20 -20
  85. package/types/services/console.d.ts +1 -1
  86. package/types/services/databases.d.ts +67 -31
  87. package/types/services/domains.d.ts +69 -69
  88. package/types/services/functions.d.ts +8 -8
  89. package/types/services/health.d.ts +11 -3
  90. package/types/services/locale.d.ts +2 -2
  91. package/types/services/messaging.d.ts +8 -8
  92. package/types/services/organizations.d.ts +88 -14
  93. package/types/services/proxy.d.ts +4 -1
  94. package/types/services/sites.d.ts +4 -4
  95. package/types/services/storage.d.ts +9 -9
  96. package/types/services/teams.d.ts +17 -17
  97. package/types/services/users.d.ts +27 -27
  98. package/types/services/vcs.d.ts +4 -4
  99. package/docs/examples/functions/create-build.md +0 -15
  100. package/docs/examples/functions/get-function-usage.md +0 -14
  101. package/docs/examples/functions/update-deployment-build.md +0 -14
  102. package/docs/examples/functions/update-deployment.md +0 -14
  103. package/docs/examples/proxy/create-rule.md +0 -15
  104. package/src/enums/resource-type.ts +0 -4
  105. package/types/enums/resource-type.d.ts +0 -4
@@ -38,6 +38,7 @@ export class Domains {
38
38
  payload
39
39
  );
40
40
  }
41
+
41
42
  /**
42
43
  * 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.
43
44
  *
@@ -74,6 +75,7 @@ export class Domains {
74
75
  payload
75
76
  );
76
77
  }
78
+
77
79
  /**
78
80
  * Get a domain by its unique ID.
79
81
  *
@@ -99,9 +101,10 @@ export class Domains {
99
101
  payload
100
102
  );
101
103
  }
104
+
102
105
  /**
103
106
  * Delete a domain by its unique ID. This endpoint can be used to delete a domain from your project.
104
- Once deleted, the domain will no longer be available for use and all associated resources will be removed.
107
+ * Once deleted, the domain will no longer be available for use and all associated resources will be removed.
105
108
  *
106
109
  * @param {string} domainId
107
110
  * @throws {AppwriteException}
@@ -126,10 +129,11 @@ Once deleted, the domain will no longer be available for use and all associated
126
129
  payload
127
130
  );
128
131
  }
132
+
129
133
  /**
130
134
  * Verify which NS records are used and update the domain accordingly. This will check the domain's
131
- nameservers and update the domain's status based on whether the nameservers match the expected
132
- Appwrite nameservers.
135
+ * nameservers and update the domain's status based on whether the nameservers match the expected
136
+ * Appwrite nameservers.
133
137
  *
134
138
  * @param {string} domainId
135
139
  * @throws {AppwriteException}
@@ -154,6 +158,7 @@ Once deleted, the domain will no longer be available for use and all associated
154
158
  payload
155
159
  );
156
160
  }
161
+
157
162
  /**
158
163
  * List Google Workspace DNS records.
159
164
  *
@@ -179,9 +184,10 @@ Once deleted, the domain will no longer be available for use and all associated
179
184
  payload
180
185
  );
181
186
  }
187
+
182
188
  /**
183
189
  * Add Google Workspace DNS records to the domain. This will create the required MX records
184
- for Google Workspace email hosting.
190
+ * for Google Workspace email hosting.
185
191
  *
186
192
  * @param {string} domainId
187
193
  * @throws {AppwriteException}
@@ -206,6 +212,7 @@ Once deleted, the domain will no longer be available for use and all associated
206
212
  payload
207
213
  );
208
214
  }
215
+
209
216
  /**
210
217
  * List iCloud DNS records.
211
218
  *
@@ -231,9 +238,10 @@ Once deleted, the domain will no longer be available for use and all associated
231
238
  payload
232
239
  );
233
240
  }
241
+
234
242
  /**
235
243
  * Add iCloud DNS records to the domain. This will create the required MX and SPF records
236
- for using iCloud email services with your domain.
244
+ * for using iCloud email services with your domain.
237
245
  *
238
246
  * @param {string} domainId
239
247
  * @throws {AppwriteException}
@@ -258,6 +266,7 @@ Once deleted, the domain will no longer be available for use and all associated
258
266
  payload
259
267
  );
260
268
  }
269
+
261
270
  /**
262
271
  * List Mailgun DNS records.
263
272
  *
@@ -283,9 +292,10 @@ Once deleted, the domain will no longer be available for use and all associated
283
292
  payload
284
293
  );
285
294
  }
295
+
286
296
  /**
287
297
  * Add Mailgun DNS records to the domain. This endpoint will create the required DNS records
288
- for Mailgun in the specified domain.
298
+ * for Mailgun in the specified domain.
289
299
  *
290
300
  * @param {string} domainId
291
301
  * @throws {AppwriteException}
@@ -310,6 +320,7 @@ Once deleted, the domain will no longer be available for use and all associated
310
320
  payload
311
321
  );
312
322
  }
323
+
313
324
  /**
314
325
  * List Outlook DNS records.
315
326
  *
@@ -335,9 +346,10 @@ Once deleted, the domain will no longer be available for use and all associated
335
346
  payload
336
347
  );
337
348
  }
349
+
338
350
  /**
339
351
  * Add Outlook DNS records to the domain. This will create the required MX records
340
- for setting up Outlook email hosting for your domain.
352
+ * for setting up Outlook email hosting for your domain.
341
353
  *
342
354
  * @param {string} domainId
343
355
  * @throws {AppwriteException}
@@ -362,6 +374,7 @@ Once deleted, the domain will no longer be available for use and all associated
362
374
  payload
363
375
  );
364
376
  }
377
+
365
378
  /**
366
379
  * List ProtonMail DNS records.
367
380
  *
@@ -387,9 +400,10 @@ Once deleted, the domain will no longer be available for use and all associated
387
400
  payload
388
401
  );
389
402
  }
403
+
390
404
  /**
391
405
  * Add ProtonMail DNS records to the domain. This will create the required MX records
392
- for using ProtonMail with your custom domain.
406
+ * for using ProtonMail with your custom domain.
393
407
  *
394
408
  * @param {string} domainId
395
409
  * @throws {AppwriteException}
@@ -414,6 +428,7 @@ Once deleted, the domain will no longer be available for use and all associated
414
428
  payload
415
429
  );
416
430
  }
431
+
417
432
  /**
418
433
  * List Zoho DNS records.
419
434
  *
@@ -439,9 +454,10 @@ Once deleted, the domain will no longer be available for use and all associated
439
454
  payload
440
455
  );
441
456
  }
457
+
442
458
  /**
443
459
  * Add Zoho Mail DNS records to the domain. This will create the required MX records
444
- for setting up Zoho Mail on your domain.
460
+ * for setting up Zoho Mail on your domain.
445
461
  *
446
462
  * @param {string} domainId
447
463
  * @throws {AppwriteException}
@@ -466,9 +482,10 @@ Once deleted, the domain will no longer be available for use and all associated
466
482
  payload
467
483
  );
468
484
  }
485
+
469
486
  /**
470
487
  * List DNS records for a given domain. You can use this endpoint to list all the DNS records
471
- associated with your domain.
488
+ * associated with your domain.
472
489
  *
473
490
  * @param {string} domainId
474
491
  * @param {string[]} queries
@@ -496,9 +513,10 @@ Once deleted, the domain will no longer be available for use and all associated
496
513
  payload
497
514
  );
498
515
  }
516
+
499
517
  /**
500
518
  * Create a new A record for the given domain. A records are used to point a domain name
501
- to an IPv4 address. The record value should be a valid IPv4 address.
519
+ * to an IPv4 address. The record value should be a valid IPv4 address.
502
520
  *
503
521
  * @param {string} domainId
504
522
  * @param {string} name
@@ -548,10 +566,11 @@ to an IPv4 address. The record value should be a valid IPv4 address.
548
566
  payload
549
567
  );
550
568
  }
569
+
551
570
  /**
552
571
  * Update an existing A record for the given domain. This endpoint allows you to modify
553
- the properties of an A record including its name (subdomain), IPv4 address, TTL,
554
- and optional comment.
572
+ * the properties of an A record including its name (subdomain), IPv4 address, TTL,
573
+ * and optional comment.
555
574
  *
556
575
  * @param {string} domainId
557
576
  * @param {string} recordId
@@ -605,9 +624,10 @@ to an IPv4 address. The record value should be a valid IPv4 address.
605
624
  payload
606
625
  );
607
626
  }
627
+
608
628
  /**
609
629
  * Create a new AAAA record for the given domain. This endpoint allows you to add a new IPv6 DNS record
610
- to your domain. The record will be used to point a hostname to an IPv6 address.
630
+ * to your domain. The record will be used to point a hostname to an IPv6 address.
611
631
  *
612
632
  * @param {string} domainId
613
633
  * @param {string} name
@@ -657,10 +677,11 @@ to an IPv4 address. The record value should be a valid IPv4 address.
657
677
  payload
658
678
  );
659
679
  }
680
+
660
681
  /**
661
682
  * Update an existing AAAA record for the given domain. This endpoint allows you to modify
662
- the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
663
- TTL, and optional comment.
683
+ * the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
684
+ * TTL, and optional comment.
664
685
  *
665
686
  * @param {string} domainId
666
687
  * @param {string} recordId
@@ -714,10 +735,11 @@ to an IPv4 address. The record value should be a valid IPv4 address.
714
735
  payload
715
736
  );
716
737
  }
738
+
717
739
  /**
718
740
  * Create a new ALIAS record for the given domain. This record type can be used to point your domain
719
- to another domain name that will serve as an alias. This is particularly useful when you want to
720
- map your domain to a target domain that may change its IP address.
741
+ * to another domain name that will serve as an alias. This is particularly useful when you want to
742
+ * map your domain to a target domain that may change its IP address.
721
743
  *
722
744
  * @param {string} domainId
723
745
  * @param {string} name
@@ -767,12 +789,13 @@ to an IPv4 address. The record value should be a valid IPv4 address.
767
789
  payload
768
790
  );
769
791
  }
792
+
770
793
  /**
771
794
  * Update an existing ALIAS record for the specified domain. This endpoint allows you to modify
772
- the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
773
-
774
- The ALIAS record type is similar to a CNAME record but can be used at the zone apex (root domain).
775
- It provides a way to map one domain name to another.
795
+ * the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
796
+ *
797
+ * The ALIAS record type is similar to a CNAME record but can be used at the zone apex (root domain).
798
+ * It provides a way to map one domain name to another.
776
799
  *
777
800
  * @param {string} domainId
778
801
  * @param {string} recordId
@@ -826,9 +849,10 @@ to an IPv4 address. The record value should be a valid IPv4 address.
826
849
  payload
827
850
  );
828
851
  }
852
+
829
853
  /**
830
854
  * Create a new CAA record for the given domain. CAA records are used to specify which
831
- Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
855
+ * Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
832
856
  *
833
857
  * @param {string} domainId
834
858
  * @param {string} name
@@ -878,10 +902,11 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
878
902
  payload
879
903
  );
880
904
  }
905
+
881
906
  /**
882
907
  * Update an existing CAA record for the given domain. A CAA (Certification Authority Authorization)
883
- record is used to specify which certificate authorities (CAs) are authorized to issue certificates
884
- for a domain.
908
+ * record is used to specify which certificate authorities (CAs) are authorized to issue certificates
909
+ * for a domain.
885
910
  *
886
911
  * @param {string} domainId
887
912
  * @param {string} recordId
@@ -935,12 +960,13 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
935
960
  payload
936
961
  );
937
962
  }
963
+
938
964
  /**
939
965
  * Create a new CNAME record for the given domain.
940
-
941
- A CNAME record maps a subdomain to another domain name, allowing you to create aliases
942
- for your domain. For example, you can create a CNAME record to point 'blog.example.com'
943
- to 'example.wordpress.com'.
966
+ *
967
+ * A CNAME record maps a subdomain to another domain name, allowing you to create aliases
968
+ * for your domain. For example, you can create a CNAME record to point 'blog.example.com'
969
+ * to 'example.wordpress.com'.
944
970
  *
945
971
  * @param {string} domainId
946
972
  * @param {string} name
@@ -990,6 +1016,7 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
990
1016
  payload
991
1017
  );
992
1018
  }
1019
+
993
1020
  /**
994
1021
  * Update an existing CNAME record for the given domain.
995
1022
  *
@@ -1045,9 +1072,10 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
1045
1072
  payload
1046
1073
  );
1047
1074
  }
1075
+
1048
1076
  /**
1049
1077
  * Create a new HTTPS record for the given domain. This record is used to configure HTTPS
1050
- settings for your domain, enabling secure communication over SSL/TLS.
1078
+ * settings for your domain, enabling secure communication over SSL/TLS.
1051
1079
  *
1052
1080
  * @param {string} domainId
1053
1081
  * @param {string} name
@@ -1097,10 +1125,11 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
1097
1125
  payload
1098
1126
  );
1099
1127
  }
1128
+
1100
1129
  /**
1101
1130
  * Update an existing HTTPS record for the given domain. This endpoint allows you to modify
1102
- the properties of an HTTPS record associated with your domain, including the name (subdomain),
1103
- target value, TTL, and optional comment.
1131
+ * the properties of an HTTPS record associated with your domain, including the name (subdomain),
1132
+ * target value, TTL, and optional comment.
1104
1133
  *
1105
1134
  * @param {string} domainId
1106
1135
  * @param {string} recordId
@@ -1154,11 +1183,12 @@ target value, TTL, and optional comment.
1154
1183
  payload
1155
1184
  );
1156
1185
  }
1186
+
1157
1187
  /**
1158
1188
  * Create a new MX record for the given domain. MX records are used to define the mail servers responsible
1159
- for accepting email messages for the domain. Multiple MX records can be created with different priorities.
1160
- The priority parameter determines the order in which mail servers are used, with lower values indicating
1161
- higher priority.
1189
+ * for accepting email messages for the domain. Multiple MX records can be created with different priorities.
1190
+ * The priority parameter determines the order in which mail servers are used, with lower values indicating
1191
+ * higher priority.
1162
1192
  *
1163
1193
  * @param {string} domainId
1164
1194
  * @param {string} name
@@ -1215,6 +1245,7 @@ target value, TTL, and optional comment.
1215
1245
  payload
1216
1246
  );
1217
1247
  }
1248
+
1218
1249
  /**
1219
1250
  * Update an existing MX record for the given domain.
1220
1251
  *
@@ -1277,9 +1308,10 @@ target value, TTL, and optional comment.
1277
1308
  payload
1278
1309
  );
1279
1310
  }
1311
+
1280
1312
  /**
1281
1313
  * Create a new NS record for the given domain. NS records specify the nameservers that are used
1282
- to resolve the domain name to IP addresses. Each domain can have multiple NS records.
1314
+ * to resolve the domain name to IP addresses. Each domain can have multiple NS records.
1283
1315
  *
1284
1316
  * @param {string} domainId
1285
1317
  * @param {string} name
@@ -1329,11 +1361,12 @@ target value, TTL, and optional comment.
1329
1361
  payload
1330
1362
  );
1331
1363
  }
1364
+
1332
1365
  /**
1333
1366
  * Update an existing NS record for the given domain. This endpoint allows you to modify
1334
- the properties of an NS (nameserver) record associated with your domain. You can update
1335
- the record name (subdomain), target nameserver value, TTL, and add or modify comments
1336
- for better record management.
1367
+ * the properties of an NS (nameserver) record associated with your domain. You can update
1368
+ * the record name (subdomain), target nameserver value, TTL, and add or modify comments
1369
+ * for better record management.
1337
1370
  *
1338
1371
  * @param {string} domainId
1339
1372
  * @param {string} recordId
@@ -1387,10 +1420,11 @@ target value, TTL, and optional comment.
1387
1420
  payload
1388
1421
  );
1389
1422
  }
1423
+
1390
1424
  /**
1391
1425
  * Create a new SRV record for the given domain. SRV records are used to define the location
1392
- of servers for specific services. For example, they can be used to specify which server
1393
- handles a specific service like SIP or XMPP for the domain.
1426
+ * of servers for specific services. For example, they can be used to specify which server
1427
+ * handles a specific service like SIP or XMPP for the domain.
1394
1428
  *
1395
1429
  * @param {string} domainId
1396
1430
  * @param {string} name
@@ -1461,21 +1495,22 @@ target value, TTL, and optional comment.
1461
1495
  payload
1462
1496
  );
1463
1497
  }
1498
+
1464
1499
  /**
1465
1500
  * Update an existing SRV record for the given domain.
1466
-
1467
- Required parameters:
1468
- - domainId: Domain unique ID
1469
- - recordId: DNS record unique ID
1470
- - name: Record name (service name)
1471
- - value: Target hostname for this SRV record
1472
- - ttl: Time to live, in seconds
1473
- - priority: Record priority
1474
- - weight: Record weight
1475
- - port: Port number for the service
1476
-
1477
- Optional parameters:
1478
- - comment: A comment for this record
1501
+ *
1502
+ * Required parameters:
1503
+ * - domainId: Domain unique ID
1504
+ * - recordId: DNS record unique ID
1505
+ * - name: Record name (service name)
1506
+ * - value: Target hostname for this SRV record
1507
+ * - ttl: Time to live, in seconds
1508
+ * - priority: Record priority
1509
+ * - weight: Record weight
1510
+ * - port: Port number for the service
1511
+ *
1512
+ * Optional parameters:
1513
+ * - comment: A comment for this record
1479
1514
  *
1480
1515
  * @param {string} domainId
1481
1516
  * @param {string} recordId
@@ -1550,10 +1585,11 @@ target value, TTL, and optional comment.
1550
1585
  payload
1551
1586
  );
1552
1587
  }
1588
+
1553
1589
  /**
1554
1590
  * Create a new TXT record for the given domain. TXT records can be used
1555
- to provide additional information about your domain, such as domain
1556
- verification records, SPF records, or DKIM records.
1591
+ * to provide additional information about your domain, such as domain
1592
+ * verification records, SPF records, or DKIM records.
1557
1593
  *
1558
1594
  * @param {string} domainId
1559
1595
  * @param {string} name
@@ -1600,11 +1636,12 @@ target value, TTL, and optional comment.
1600
1636
  payload
1601
1637
  );
1602
1638
  }
1639
+
1603
1640
  /**
1604
1641
  * Update an existing TXT record for the given domain.
1605
-
1606
- Update the TXT record details for a specific domain by providing the domain ID,
1607
- record ID, and the new record configuration including name, value, TTL, and an optional comment.
1642
+ *
1643
+ * Update the TXT record details for a specific domain by providing the domain ID,
1644
+ * record ID, and the new record configuration including name, value, TTL, and an optional comment.
1608
1645
  *
1609
1646
  * @param {string} domainId
1610
1647
  * @param {string} recordId
@@ -1658,12 +1695,13 @@ target value, TTL, and optional comment.
1658
1695
  payload
1659
1696
  );
1660
1697
  }
1698
+
1661
1699
  /**
1662
1700
  * Get a single DNS record for a given domain by record ID.
1663
-
1664
- This endpoint allows you to retrieve a specific DNS record associated with a domain
1665
- using its unique identifier. The record contains information about the DNS configuration
1666
- such as type, value, and TTL settings.
1701
+ *
1702
+ * This endpoint allows you to retrieve a specific DNS record associated with a domain
1703
+ * using its unique identifier. The record contains information about the DNS configuration
1704
+ * such as type, value, and TTL settings.
1667
1705
  *
1668
1706
  * @param {string} domainId
1669
1707
  * @param {string} recordId
@@ -1691,9 +1729,10 @@ target value, TTL, and optional comment.
1691
1729
  payload
1692
1730
  );
1693
1731
  }
1732
+
1694
1733
  /**
1695
1734
  * Delete a DNS record for the given domain. This endpoint allows you to delete an existing DNS record
1696
- from a specific domain.
1735
+ * from a specific domain.
1697
1736
  *
1698
1737
  * @param {string} domainId
1699
1738
  * @param {string} recordId
@@ -1722,11 +1761,12 @@ target value, TTL, and optional comment.
1722
1761
  payload
1723
1762
  );
1724
1763
  }
1764
+
1725
1765
  /**
1726
1766
  * Update the team ID for a specific domain. This endpoint requires admin access.
1727
-
1728
- Updating the team ID will transfer ownership and access control of the domain
1729
- and all its DNS records to the new team.
1767
+ *
1768
+ * Updating the team ID will transfer ownership and access control of the domain
1769
+ * and all its DNS records to the new team.
1730
1770
  *
1731
1771
  * @param {string} domainId
1732
1772
  * @param {string} teamId
@@ -1758,9 +1798,10 @@ target value, TTL, and optional comment.
1758
1798
  payload
1759
1799
  );
1760
1800
  }
1801
+
1761
1802
  /**
1762
1803
  * Retrieve the DNS zone file for the given domain. This endpoint will return the DNS
1763
- zone file in a standardized format that can be used to configure DNS servers.
1804
+ * zone file in a standardized format that can be used to configure DNS servers.
1764
1805
  *
1765
1806
  * @param {string} domainId
1766
1807
  * @throws {AppwriteException}
@@ -1784,9 +1825,10 @@ target value, TTL, and optional comment.
1784
1825
  payload
1785
1826
  );
1786
1827
  }
1828
+
1787
1829
  /**
1788
1830
  * Update the DNS zone for the given domain using the provided zone file content.
1789
- All parsed records are imported and then the main domain document is returned.
1831
+ * All parsed records are imported and then the main domain document is returned.
1790
1832
  *
1791
1833
  * @param {string} domainId
1792
1834
  * @param {string} content