@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
@@ -31,7 +31,7 @@ export declare class Domains {
31
31
  get(domainId: string): Promise<Models.Domain>;
32
32
  /**
33
33
  * Delete a domain by its unique ID. This endpoint can be used to delete a domain from your project.
34
- Once deleted, the domain will no longer be available for use and all associated resources will be removed.
34
+ * Once deleted, the domain will no longer be available for use and all associated resources will be removed.
35
35
  *
36
36
  * @param {string} domainId
37
37
  * @throws {AppwriteException}
@@ -40,8 +40,8 @@ Once deleted, the domain will no longer be available for use and all associated
40
40
  delete(domainId: string): Promise<{}>;
41
41
  /**
42
42
  * Verify which NS records are used and update the domain accordingly. This will check the domain&#039;s
43
- nameservers and update the domain&#039;s status based on whether the nameservers match the expected
44
- Appwrite nameservers.
43
+ * nameservers and update the domain&#039;s status based on whether the nameservers match the expected
44
+ * Appwrite nameservers.
45
45
  *
46
46
  * @param {string} domainId
47
47
  * @throws {AppwriteException}
@@ -58,7 +58,7 @@ Once deleted, the domain will no longer be available for use and all associated
58
58
  getPresetGoogleWorkspace(domainId: string): Promise<Models.DnsRecordsList>;
59
59
  /**
60
60
  * Add Google Workspace DNS records to the domain. This will create the required MX records
61
- for Google Workspace email hosting.
61
+ * for Google Workspace email hosting.
62
62
  *
63
63
  * @param {string} domainId
64
64
  * @throws {AppwriteException}
@@ -75,7 +75,7 @@ Once deleted, the domain will no longer be available for use and all associated
75
75
  getPresetICloud(domainId: string): Promise<Models.DnsRecordsList>;
76
76
  /**
77
77
  * Add iCloud DNS records to the domain. This will create the required MX and SPF records
78
- for using iCloud email services with your domain.
78
+ * for using iCloud email services with your domain.
79
79
  *
80
80
  * @param {string} domainId
81
81
  * @throws {AppwriteException}
@@ -92,7 +92,7 @@ Once deleted, the domain will no longer be available for use and all associated
92
92
  getPresetMailgun(domainId: string): Promise<Models.DnsRecordsList>;
93
93
  /**
94
94
  * Add Mailgun DNS records to the domain. This endpoint will create the required DNS records
95
- for Mailgun in the specified domain.
95
+ * for Mailgun in the specified domain.
96
96
  *
97
97
  * @param {string} domainId
98
98
  * @throws {AppwriteException}
@@ -109,7 +109,7 @@ Once deleted, the domain will no longer be available for use and all associated
109
109
  getPresetOutlook(domainId: string): Promise<Models.DnsRecordsList>;
110
110
  /**
111
111
  * Add Outlook DNS records to the domain. This will create the required MX records
112
- for setting up Outlook email hosting for your domain.
112
+ * for setting up Outlook email hosting for your domain.
113
113
  *
114
114
  * @param {string} domainId
115
115
  * @throws {AppwriteException}
@@ -126,7 +126,7 @@ Once deleted, the domain will no longer be available for use and all associated
126
126
  getPresetProtonMail(domainId: string): Promise<Models.DnsRecordsList>;
127
127
  /**
128
128
  * Add ProtonMail DNS records to the domain. This will create the required MX records
129
- for using ProtonMail with your custom domain.
129
+ * for using ProtonMail with your custom domain.
130
130
  *
131
131
  * @param {string} domainId
132
132
  * @throws {AppwriteException}
@@ -143,7 +143,7 @@ Once deleted, the domain will no longer be available for use and all associated
143
143
  getPresetZoho(domainId: string): Promise<Models.DnsRecordsList>;
144
144
  /**
145
145
  * Add Zoho Mail DNS records to the domain. This will create the required MX records
146
- for setting up Zoho Mail on your domain.
146
+ * for setting up Zoho Mail on your domain.
147
147
  *
148
148
  * @param {string} domainId
149
149
  * @throws {AppwriteException}
@@ -152,7 +152,7 @@ Once deleted, the domain will no longer be available for use and all associated
152
152
  createPresetZoho(domainId: string): Promise<Models.DnsRecordsList>;
153
153
  /**
154
154
  * List DNS records for a given domain. You can use this endpoint to list all the DNS records
155
- associated with your domain.
155
+ * associated with your domain.
156
156
  *
157
157
  * @param {string} domainId
158
158
  * @param {string[]} queries
@@ -162,7 +162,7 @@ Once deleted, the domain will no longer be available for use and all associated
162
162
  listRecords(domainId: string, queries?: string[]): Promise<Models.DnsRecordsList>;
163
163
  /**
164
164
  * Create a new A record for the given domain. A records are used to point a domain name
165
- to an IPv4 address. The record value should be a valid IPv4 address.
165
+ * to an IPv4 address. The record value should be a valid IPv4 address.
166
166
  *
167
167
  * @param {string} domainId
168
168
  * @param {string} name
@@ -175,8 +175,8 @@ to an IPv4 address. The record value should be a valid IPv4 address.
175
175
  createRecordA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
176
176
  /**
177
177
  * Update an existing A record for the given domain. This endpoint allows you to modify
178
- the properties of an A record including its name (subdomain), IPv4 address, TTL,
179
- and optional comment.
178
+ * the properties of an A record including its name (subdomain), IPv4 address, TTL,
179
+ * and optional comment.
180
180
  *
181
181
  * @param {string} domainId
182
182
  * @param {string} recordId
@@ -190,7 +190,7 @@ to an IPv4 address. The record value should be a valid IPv4 address.
190
190
  updateRecordA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
191
191
  /**
192
192
  * Create a new AAAA record for the given domain. This endpoint allows you to add a new IPv6 DNS record
193
- to your domain. The record will be used to point a hostname to an IPv6 address.
193
+ * to your domain. The record will be used to point a hostname to an IPv6 address.
194
194
  *
195
195
  * @param {string} domainId
196
196
  * @param {string} name
@@ -203,8 +203,8 @@ to an IPv4 address. The record value should be a valid IPv4 address.
203
203
  createRecordAAAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
204
204
  /**
205
205
  * Update an existing AAAA record for the given domain. This endpoint allows you to modify
206
- the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
207
- TTL, and optional comment.
206
+ * the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
207
+ * TTL, and optional comment.
208
208
  *
209
209
  * @param {string} domainId
210
210
  * @param {string} recordId
@@ -218,8 +218,8 @@ to an IPv4 address. The record value should be a valid IPv4 address.
218
218
  updateRecordAAAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
219
219
  /**
220
220
  * Create a new ALIAS record for the given domain. This record type can be used to point your domain
221
- to another domain name that will serve as an alias. This is particularly useful when you want to
222
- map your domain to a target domain that may change its IP address.
221
+ * to another domain name that will serve as an alias. This is particularly useful when you want to
222
+ * map your domain to a target domain that may change its IP address.
223
223
  *
224
224
  * @param {string} domainId
225
225
  * @param {string} name
@@ -232,10 +232,10 @@ to an IPv4 address. The record value should be a valid IPv4 address.
232
232
  createRecordAlias(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
233
233
  /**
234
234
  * Update an existing ALIAS record for the specified domain. This endpoint allows you to modify
235
- the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
236
-
237
- The ALIAS record type is similar to a CNAME record but can be used at the zone apex (root domain).
238
- It provides a way to map one domain name to another.
235
+ * the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
236
+ *
237
+ * The ALIAS record type is similar to a CNAME record but can be used at the zone apex (root domain).
238
+ * It provides a way to map one domain name to another.
239
239
  *
240
240
  * @param {string} domainId
241
241
  * @param {string} recordId
@@ -249,7 +249,7 @@ to an IPv4 address. The record value should be a valid IPv4 address.
249
249
  updateRecordAlias(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
250
250
  /**
251
251
  * Create a new CAA record for the given domain. CAA records are used to specify which
252
- Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
252
+ * Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
253
253
  *
254
254
  * @param {string} domainId
255
255
  * @param {string} name
@@ -262,8 +262,8 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
262
262
  createRecordCAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
263
263
  /**
264
264
  * Update an existing CAA record for the given domain. A CAA (Certification Authority Authorization)
265
- record is used to specify which certificate authorities (CAs) are authorized to issue certificates
266
- for a domain.
265
+ * record is used to specify which certificate authorities (CAs) are authorized to issue certificates
266
+ * for a domain.
267
267
  *
268
268
  * @param {string} domainId
269
269
  * @param {string} recordId
@@ -277,10 +277,10 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
277
277
  updateRecordCAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
278
278
  /**
279
279
  * Create a new CNAME record for the given domain.
280
-
281
- A CNAME record maps a subdomain to another domain name, allowing you to create aliases
282
- for your domain. For example, you can create a CNAME record to point &#039;blog.example.com&#039;
283
- to &#039;example.wordpress.com&#039;.
280
+ *
281
+ * A CNAME record maps a subdomain to another domain name, allowing you to create aliases
282
+ * for your domain. For example, you can create a CNAME record to point &#039;blog.example.com&#039;
283
+ * to &#039;example.wordpress.com&#039;.
284
284
  *
285
285
  * @param {string} domainId
286
286
  * @param {string} name
@@ -306,7 +306,7 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
306
306
  updateRecordCNAME(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
307
307
  /**
308
308
  * Create a new HTTPS record for the given domain. This record is used to configure HTTPS
309
- settings for your domain, enabling secure communication over SSL/TLS.
309
+ * settings for your domain, enabling secure communication over SSL/TLS.
310
310
  *
311
311
  * @param {string} domainId
312
312
  * @param {string} name
@@ -319,8 +319,8 @@ Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your
319
319
  createRecordHTTPS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
320
320
  /**
321
321
  * Update an existing HTTPS record for the given domain. This endpoint allows you to modify
322
- the properties of an HTTPS record associated with your domain, including the name (subdomain),
323
- target value, TTL, and optional comment.
322
+ * the properties of an HTTPS record associated with your domain, including the name (subdomain),
323
+ * target value, TTL, and optional comment.
324
324
  *
325
325
  * @param {string} domainId
326
326
  * @param {string} recordId
@@ -334,9 +334,9 @@ target value, TTL, and optional comment.
334
334
  updateRecordHTTPS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
335
335
  /**
336
336
  * Create a new MX record for the given domain. MX records are used to define the mail servers responsible
337
- for accepting email messages for the domain. Multiple MX records can be created with different priorities.
338
- The priority parameter determines the order in which mail servers are used, with lower values indicating
339
- higher priority.
337
+ * for accepting email messages for the domain. Multiple MX records can be created with different priorities.
338
+ * The priority parameter determines the order in which mail servers are used, with lower values indicating
339
+ * higher priority.
340
340
  *
341
341
  * @param {string} domainId
342
342
  * @param {string} name
@@ -364,7 +364,7 @@ target value, TTL, and optional comment.
364
364
  updateRecordMX(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, comment?: string): Promise<Models.DnsRecord>;
365
365
  /**
366
366
  * Create a new NS record for the given domain. NS records specify the nameservers that are used
367
- to resolve the domain name to IP addresses. Each domain can have multiple NS records.
367
+ * to resolve the domain name to IP addresses. Each domain can have multiple NS records.
368
368
  *
369
369
  * @param {string} domainId
370
370
  * @param {string} name
@@ -377,9 +377,9 @@ target value, TTL, and optional comment.
377
377
  createRecordNS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
378
378
  /**
379
379
  * Update an existing NS record for the given domain. This endpoint allows you to modify
380
- the properties of an NS (nameserver) record associated with your domain. You can update
381
- the record name (subdomain), target nameserver value, TTL, and add or modify comments
382
- for better record management.
380
+ * the properties of an NS (nameserver) record associated with your domain. You can update
381
+ * the record name (subdomain), target nameserver value, TTL, and add or modify comments
382
+ * for better record management.
383
383
  *
384
384
  * @param {string} domainId
385
385
  * @param {string} recordId
@@ -393,8 +393,8 @@ target value, TTL, and optional comment.
393
393
  updateRecordNS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
394
394
  /**
395
395
  * Create a new SRV record for the given domain. SRV records are used to define the location
396
- of servers for specific services. For example, they can be used to specify which server
397
- handles a specific service like SIP or XMPP for the domain.
396
+ * of servers for specific services. For example, they can be used to specify which server
397
+ * handles a specific service like SIP or XMPP for the domain.
398
398
  *
399
399
  * @param {string} domainId
400
400
  * @param {string} name
@@ -410,19 +410,19 @@ target value, TTL, and optional comment.
410
410
  createRecordSRV(domainId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
411
411
  /**
412
412
  * Update an existing SRV record for the given domain.
413
-
414
- Required parameters:
415
- - domainId: Domain unique ID
416
- - recordId: DNS record unique ID
417
- - name: Record name (service name)
418
- - value: Target hostname for this SRV record
419
- - ttl: Time to live, in seconds
420
- - priority: Record priority
421
- - weight: Record weight
422
- - port: Port number for the service
423
-
424
- Optional parameters:
425
- - comment: A comment for this record
413
+ *
414
+ * Required parameters:
415
+ * - domainId: Domain unique ID
416
+ * - recordId: DNS record unique ID
417
+ * - name: Record name (service name)
418
+ * - value: Target hostname for this SRV record
419
+ * - ttl: Time to live, in seconds
420
+ * - priority: Record priority
421
+ * - weight: Record weight
422
+ * - port: Port number for the service
423
+ *
424
+ * Optional parameters:
425
+ * - comment: A comment for this record
426
426
  *
427
427
  * @param {string} domainId
428
428
  * @param {string} recordId
@@ -439,8 +439,8 @@ target value, TTL, and optional comment.
439
439
  updateRecordSRV(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
440
440
  /**
441
441
  * Create a new TXT record for the given domain. TXT records can be used
442
- to provide additional information about your domain, such as domain
443
- verification records, SPF records, or DKIM records.
442
+ * to provide additional information about your domain, such as domain
443
+ * verification records, SPF records, or DKIM records.
444
444
  *
445
445
  * @param {string} domainId
446
446
  * @param {string} name
@@ -453,9 +453,9 @@ target value, TTL, and optional comment.
453
453
  createRecordTXT(domainId: string, name: string, ttl: number, value?: string, comment?: string): Promise<Models.DnsRecord>;
454
454
  /**
455
455
  * Update an existing TXT record for the given domain.
456
-
457
- Update the TXT record details for a specific domain by providing the domain ID,
458
- record ID, and the new record configuration including name, value, TTL, and an optional comment.
456
+ *
457
+ * Update the TXT record details for a specific domain by providing the domain ID,
458
+ * record ID, and the new record configuration including name, value, TTL, and an optional comment.
459
459
  *
460
460
  * @param {string} domainId
461
461
  * @param {string} recordId
@@ -469,10 +469,10 @@ target value, TTL, and optional comment.
469
469
  updateRecordTXT(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
470
470
  /**
471
471
  * Get a single DNS record for a given domain by record ID.
472
-
473
- This endpoint allows you to retrieve a specific DNS record associated with a domain
474
- using its unique identifier. The record contains information about the DNS configuration
475
- such as type, value, and TTL settings.
472
+ *
473
+ * This endpoint allows you to retrieve a specific DNS record associated with a domain
474
+ * using its unique identifier. The record contains information about the DNS configuration
475
+ * such as type, value, and TTL settings.
476
476
  *
477
477
  * @param {string} domainId
478
478
  * @param {string} recordId
@@ -482,7 +482,7 @@ target value, TTL, and optional comment.
482
482
  getRecord(domainId: string, recordId: string): Promise<Models.DnsRecord>;
483
483
  /**
484
484
  * Delete a DNS record for the given domain. This endpoint allows you to delete an existing DNS record
485
- from a specific domain.
485
+ * from a specific domain.
486
486
  *
487
487
  * @param {string} domainId
488
488
  * @param {string} recordId
@@ -492,9 +492,9 @@ target value, TTL, and optional comment.
492
492
  deleteRecord(domainId: string, recordId: string): Promise<{}>;
493
493
  /**
494
494
  * Update the team ID for a specific domain. This endpoint requires admin access.
495
-
496
- Updating the team ID will transfer ownership and access control of the domain
497
- and all its DNS records to the new team.
495
+ *
496
+ * Updating the team ID will transfer ownership and access control of the domain
497
+ * and all its DNS records to the new team.
498
498
  *
499
499
  * @param {string} domainId
500
500
  * @param {string} teamId
@@ -504,7 +504,7 @@ target value, TTL, and optional comment.
504
504
  updateTeam(domainId: string, teamId: string): Promise<Models.Domain>;
505
505
  /**
506
506
  * Retrieve the DNS zone file for the given domain. This endpoint will return the DNS
507
- zone file in a standardized format that can be used to configure DNS servers.
507
+ * zone file in a standardized format that can be used to configure DNS servers.
508
508
  *
509
509
  * @param {string} domainId
510
510
  * @throws {AppwriteException}
@@ -513,7 +513,7 @@ target value, TTL, and optional comment.
513
513
  getZone(domainId: string): Promise<{}>;
514
514
  /**
515
515
  * Update the DNS zone for the given domain using the provided zone file content.
516
- All parsed records are imported and then the main domain document is returned.
516
+ * All parsed records are imported and then the main domain document is returned.
517
517
  *
518
518
  * @param {string} domainId
519
519
  * @param {string} content
@@ -145,10 +145,10 @@ export declare class Functions {
145
145
  listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
146
146
  /**
147
147
  * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
148
-
149
- This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
150
-
151
- Use the &quot;command&quot; param to set the entrypoint used to execute your code.
148
+ *
149
+ * This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
150
+ *
151
+ * Use the &quot;command&quot; param to set the entrypoint used to execute your code.
152
152
  *
153
153
  * @param {string} functionId
154
154
  * @param {File} code
@@ -171,8 +171,8 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
171
171
  createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
172
172
  /**
173
173
  * Create a deployment based on a template.
174
-
175
- Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
174
+ *
175
+ * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
176
176
  *
177
177
  * @param {string} functionId
178
178
  * @param {string} repository
@@ -186,8 +186,8 @@ Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/s
186
186
  createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, version: string, activate?: boolean): Promise<Models.Deployment>;
187
187
  /**
188
188
  * Create a deployment when a function is connected to VCS.
189
-
190
- This endpoint lets you create deployment from a branch, commit, or a tag.
189
+ *
190
+ * This endpoint lets you create deployment from a branch, commit, or a tag.
191
191
  *
192
192
  * @param {string} functionId
193
193
  * @param {VCSDeploymentType} type
@@ -48,13 +48,21 @@ export declare class Health {
48
48
  */
49
49
  getPubSub(): Promise<Models.HealthStatus>;
50
50
  /**
51
- * Get billing aggregation queue
51
+ * Get billing project aggregation queue
52
52
  *
53
53
  * @param {number} threshold
54
54
  * @throws {AppwriteException}
55
55
  * @returns {Promise<Models.HealthQueue>}
56
56
  */
57
- getQueueBillingAggregation(threshold?: number): Promise<Models.HealthQueue>;
57
+ getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue>;
58
+ /**
59
+ * Get billing team aggregation queue
60
+ *
61
+ * @param {number} threshold
62
+ * @throws {AppwriteException}
63
+ * @returns {Promise<Models.HealthQueue>}
64
+ */
65
+ getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue>;
58
66
  /**
59
67
  * Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
60
68
  *
@@ -98,7 +106,7 @@ export declare class Health {
98
106
  getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
99
107
  /**
100
108
  * Returns the amount of failed jobs in a given queue.
101
-
109
+ *
102
110
  *
103
111
  * @param {Name} name
104
112
  * @param {number} threshold
@@ -5,8 +5,8 @@ export declare class Locale {
5
5
  constructor(client: Client);
6
6
  /**
7
7
  * Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
8
-
9
- ([IP Geolocation by DB-IP](https://db-ip.com))
8
+ *
9
+ * ([IP Geolocation by DB-IP](https://db-ip.com))
10
10
  *
11
11
  * @throws {AppwriteException}
12
12
  * @returns {Promise<Models.Locale>}
@@ -35,7 +35,7 @@ export declare class Messaging {
35
35
  createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
36
36
  /**
37
37
  * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
38
-
38
+ *
39
39
  *
40
40
  * @param {string} messageId
41
41
  * @param {string[]} topics
@@ -81,7 +81,7 @@ export declare class Messaging {
81
81
  createPush(messageId: string, title?: string, body?: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority): Promise<Models.Message>;
82
82
  /**
83
83
  * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
84
-
84
+ *
85
85
  *
86
86
  * @param {string} messageId
87
87
  * @param {string[]} topics
@@ -122,7 +122,7 @@ export declare class Messaging {
122
122
  createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
123
123
  /**
124
124
  * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
125
-
125
+ *
126
126
  *
127
127
  * @param {string} messageId
128
128
  * @param {string[]} topics
@@ -137,7 +137,7 @@ export declare class Messaging {
137
137
  updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
138
138
  /**
139
139
  * Get a message by its unique ID.
140
-
140
+ *
141
141
  *
142
142
  * @param {string} messageId
143
143
  * @throws {AppwriteException}
@@ -469,7 +469,7 @@ export declare class Messaging {
469
469
  updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider>;
470
470
  /**
471
471
  * Get a provider by its unique ID.
472
-
472
+ *
473
473
  *
474
474
  * @param {string} providerId
475
475
  * @throws {AppwriteException}
@@ -523,7 +523,7 @@ export declare class Messaging {
523
523
  createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic>;
524
524
  /**
525
525
  * Get a topic by its unique ID.
526
-
526
+ *
527
527
  *
528
528
  * @param {string} topicId
529
529
  * @throws {AppwriteException}
@@ -532,7 +532,7 @@ export declare class Messaging {
532
532
  getTopic(topicId: string): Promise<Models.Topic>;
533
533
  /**
534
534
  * Update a topic by its unique ID.
535
-
535
+ *
536
536
  *
537
537
  * @param {string} topicId
538
538
  * @param {string} name
@@ -580,7 +580,7 @@ export declare class Messaging {
580
580
  createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>;
581
581
  /**
582
582
  * Get a subscriber by its unique ID.
583
-
583
+ *
584
584
  *
585
585
  * @param {string} topicId
586
586
  * @param {string} subscriberId