@appwrite.io/console 4.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +752 -383
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +752 -384
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +752 -383
  8. package/docs/examples/domains/update-purchase.md +16 -0
  9. package/docs/examples/domains/update-transfer-in.md +16 -0
  10. package/docs/examples/functions/create.md +3 -1
  11. package/docs/examples/functions/update.md +3 -1
  12. package/docs/examples/sites/create.md +4 -1
  13. package/docs/examples/sites/update.md +4 -1
  14. package/docs/examples/{projects/update-webhook.md → webhooks/create.md} +5 -6
  15. package/docs/examples/{projects/get-webhook.md → webhooks/delete.md} +3 -4
  16. package/docs/examples/{projects/delete-webhook.md → webhooks/get.md} +3 -4
  17. package/docs/examples/{projects/list-webhooks.md → webhooks/list.md} +4 -4
  18. package/docs/examples/{projects/update-webhook-signature.md → webhooks/update-signature.md} +3 -4
  19. package/docs/examples/{projects/create-webhook.md → webhooks/update.md} +6 -6
  20. package/package.json +1 -1
  21. package/src/client.ts +5 -1
  22. package/src/enums/appwrite-migration-resource.ts +4 -0
  23. package/src/enums/build-runtime.ts +86 -0
  24. package/src/enums/domain-purchase-status.ts +6 -0
  25. package/src/enums/{domain-transfer-status-status.ts → domain-transfer-status-enum.ts} +1 -1
  26. package/src/enums/runtime.ts +86 -0
  27. package/src/enums/runtimes.ts +86 -0
  28. package/src/enums/scopes.ts +2 -0
  29. package/src/index.ts +3 -1
  30. package/src/models.ts +140 -13
  31. package/src/services/account.ts +2 -2
  32. package/src/services/domains.ts +136 -10
  33. package/src/services/functions.ts +52 -24
  34. package/src/services/organizations.ts +2 -2
  35. package/src/services/projects.ts +0 -473
  36. package/src/services/sites.ts +83 -41
  37. package/src/services/webhooks.ts +451 -0
  38. package/types/enums/appwrite-migration-resource.d.ts +4 -0
  39. package/types/enums/build-runtime.d.ts +87 -1
  40. package/types/enums/domain-purchase-status.d.ts +6 -0
  41. package/types/enums/{domain-transfer-status-status.d.ts → domain-transfer-status-enum.d.ts} +1 -1
  42. package/types/enums/runtime.d.ts +87 -1
  43. package/types/enums/runtimes.d.ts +87 -1
  44. package/types/enums/scopes.d.ts +2 -0
  45. package/types/index.d.ts +3 -1
  46. package/types/models.d.ts +139 -13
  47. package/types/services/account.d.ts +2 -2
  48. package/types/services/domains.d.ts +52 -8
  49. package/types/services/functions.d.ts +20 -8
  50. package/types/services/organizations.d.ts +2 -2
  51. package/types/services/projects.d.ts +0 -171
  52. package/types/services/sites.d.ts +26 -8
  53. package/types/services/webhooks.d.ts +165 -0
@@ -84,5 +84,91 @@ export declare enum Runtimes {
84
84
  Flutter329 = "flutter-3.29",
85
85
  Flutter332 = "flutter-3.32",
86
86
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38"
87
+ Flutter338 = "flutter-3.38",
88
+ Node145rc = "node-14.5-rc",
89
+ Node160rc = "node-16.0-rc",
90
+ Node180rc = "node-18.0-rc",
91
+ Node190rc = "node-19.0-rc",
92
+ Node200rc = "node-20.0-rc",
93
+ Node210rc = "node-21.0-rc",
94
+ Node22rc = "node-22-rc",
95
+ Node23rc = "node-23-rc",
96
+ Node24rc = "node-24-rc",
97
+ Node25rc = "node-25-rc",
98
+ Php80rc = "php-8.0-rc",
99
+ Php81rc = "php-8.1-rc",
100
+ Php82rc = "php-8.2-rc",
101
+ Php83rc = "php-8.3-rc",
102
+ Php84rc = "php-8.4-rc",
103
+ Ruby30rc = "ruby-3.0-rc",
104
+ Ruby31rc = "ruby-3.1-rc",
105
+ Ruby32rc = "ruby-3.2-rc",
106
+ Ruby33rc = "ruby-3.3-rc",
107
+ Ruby34rc = "ruby-3.4-rc",
108
+ Ruby40rc = "ruby-4.0-rc",
109
+ Python38rc = "python-3.8-rc",
110
+ Python39rc = "python-3.9-rc",
111
+ Python310rc = "python-3.10-rc",
112
+ Python311rc = "python-3.11-rc",
113
+ Python312rc = "python-3.12-rc",
114
+ Python313rc = "python-3.13-rc",
115
+ Python314rc = "python-3.14-rc",
116
+ Pythonml311rc = "python-ml-3.11-rc",
117
+ Pythonml312rc = "python-ml-3.12-rc",
118
+ Pythonml313rc = "python-ml-3.13-rc",
119
+ Deno140rc = "deno-1.40-rc",
120
+ Deno146rc = "deno-1.46-rc",
121
+ Deno20rc = "deno-2.0-rc",
122
+ Deno25rc = "deno-2.5-rc",
123
+ Deno26rc = "deno-2.6-rc",
124
+ Dart215rc = "dart-2.15-rc",
125
+ Dart216rc = "dart-2.16-rc",
126
+ Dart217rc = "dart-2.17-rc",
127
+ Dart218rc = "dart-2.18-rc",
128
+ Dart219rc = "dart-2.19-rc",
129
+ Dart30rc = "dart-3.0-rc",
130
+ Dart31rc = "dart-3.1-rc",
131
+ Dart33rc = "dart-3.3-rc",
132
+ Dart35rc = "dart-3.5-rc",
133
+ Dart38rc = "dart-3.8-rc",
134
+ Dart39rc = "dart-3.9-rc",
135
+ Dart310rc = "dart-3.10-rc",
136
+ Dotnet60rc = "dotnet-6.0-rc",
137
+ Dotnet70rc = "dotnet-7.0-rc",
138
+ Dotnet80rc = "dotnet-8.0-rc",
139
+ Dotnet10rc = "dotnet-10-rc",
140
+ Java80rc = "java-8.0-rc",
141
+ Java110rc = "java-11.0-rc",
142
+ Java170rc = "java-17.0-rc",
143
+ Java180rc = "java-18.0-rc",
144
+ Java210rc = "java-21.0-rc",
145
+ Java22rc = "java-22-rc",
146
+ Java25rc = "java-25-rc",
147
+ Swift55rc = "swift-5.5-rc",
148
+ Swift58rc = "swift-5.8-rc",
149
+ Swift59rc = "swift-5.9-rc",
150
+ Swift510rc = "swift-5.10-rc",
151
+ Swift62rc = "swift-6.2-rc",
152
+ Kotlin16rc = "kotlin-1.6-rc",
153
+ Kotlin18rc = "kotlin-1.8-rc",
154
+ Kotlin19rc = "kotlin-1.9-rc",
155
+ Kotlin20rc = "kotlin-2.0-rc",
156
+ Kotlin23rc = "kotlin-2.3-rc",
157
+ Cpp17rc = "cpp-17-rc",
158
+ Cpp20rc = "cpp-20-rc",
159
+ Bun10rc = "bun-1.0-rc",
160
+ Bun11rc = "bun-1.1-rc",
161
+ Bun12rc = "bun-1.2-rc",
162
+ Bun13rc = "bun-1.3-rc",
163
+ Go123rc = "go-1.23-rc",
164
+ Go124rc = "go-1.24-rc",
165
+ Go125rc = "go-1.25-rc",
166
+ Go126rc = "go-1.26-rc",
167
+ Static1rc = "static-1-rc",
168
+ Flutter324rc = "flutter-3.24-rc",
169
+ Flutter327rc = "flutter-3.27-rc",
170
+ Flutter329rc = "flutter-3.29-rc",
171
+ Flutter332rc = "flutter-3.32-rc",
172
+ Flutter335rc = "flutter-3.35-rc",
173
+ Flutter338rc = "flutter-3.38-rc"
88
174
  }
@@ -56,6 +56,8 @@ export declare enum Scopes {
56
56
  AssistantRead = "assistant.read",
57
57
  TokensRead = "tokens.read",
58
58
  TokensWrite = "tokens.write",
59
+ WebhooksRead = "webhooks.read",
60
+ WebhooksWrite = "webhooks.write",
59
61
  PoliciesWrite = "policies.write",
60
62
  PoliciesRead = "policies.read",
61
63
  ArchivesRead = "archives.read",
package/types/index.d.ts CHANGED
@@ -31,6 +31,7 @@ export { Teams } from './services/teams';
31
31
  export { Tokens } from './services/tokens';
32
32
  export { Users } from './services/users';
33
33
  export { Vcs } from './services/vcs';
34
+ export { Webhooks } from './services/webhooks';
34
35
  export { Realtime } from './services/realtime';
35
36
  export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
36
37
  export type { RealtimeSubscription } from './services/realtime';
@@ -112,4 +113,5 @@ export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-r
112
113
  export { ProxyRuleStatus } from './enums/proxy-rule-status';
113
114
  export { MessageStatus } from './enums/message-status';
114
115
  export { BillingPlanGroup } from './enums/billing-plan-group';
115
- export { DomainTransferStatusStatus } from './enums/domain-transfer-status-status';
116
+ export { DomainTransferStatusEnum } from './enums/domain-transfer-status-enum';
117
+ export { DomainPurchaseStatus } from './enums/domain-purchase-status';
package/types/models.d.ts CHANGED
@@ -12,7 +12,8 @@ import { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-r
12
12
  import { ProxyRuleStatus } from "./enums/proxy-rule-status";
13
13
  import { MessageStatus } from "./enums/message-status";
14
14
  import { BillingPlanGroup } from "./enums/billing-plan-group";
15
- import { DomainTransferStatusStatus } from "./enums/domain-transfer-status-status";
15
+ import { DomainTransferStatusEnum } from "./enums/domain-transfer-status-enum";
16
+ import { DomainPurchaseStatus } from "./enums/domain-purchase-status";
16
17
  /**
17
18
  * Appwrite Models
18
19
  */
@@ -3401,6 +3402,10 @@ export declare namespace Models {
3401
3402
  * Site framework.
3402
3403
  */
3403
3404
  framework: string;
3405
+ /**
3406
+ * How many days to keep the non-active deployments before they will be automatically deleted.
3407
+ */
3408
+ deploymentRetention: number;
3404
3409
  /**
3405
3410
  * Site's active deployment ID.
3406
3411
  */
@@ -3445,6 +3450,10 @@ export declare namespace Models {
3445
3450
  * The build command used to build the site.
3446
3451
  */
3447
3452
  buildCommand: string;
3453
+ /**
3454
+ * Custom command to use when starting site runtime.
3455
+ */
3456
+ startCommand: string;
3448
3457
  /**
3449
3458
  * The directory where the site build output is located.
3450
3459
  */
@@ -3470,9 +3479,13 @@ export declare namespace Models {
3470
3479
  */
3471
3480
  providerSilentMode: boolean;
3472
3481
  /**
3473
- * Machine specification for builds and executions.
3482
+ * Machine specification for deployment builds.
3483
+ */
3484
+ buildSpecification: string;
3485
+ /**
3486
+ * Machine specification for SSR executions.
3474
3487
  */
3475
- specification: string;
3488
+ runtimeSpecification: string;
3476
3489
  /**
3477
3490
  * Site build runtime.
3478
3491
  */
@@ -3624,6 +3637,10 @@ export declare namespace Models {
3624
3637
  * Function execution and build runtime.
3625
3638
  */
3626
3639
  runtime: string;
3640
+ /**
3641
+ * How many days to keep the non-active deployments before they will be automatically deleted.
3642
+ */
3643
+ deploymentRetention: number;
3627
3644
  /**
3628
3645
  * Function's active deployment ID.
3629
3646
  */
@@ -3697,9 +3714,13 @@ export declare namespace Models {
3697
3714
  */
3698
3715
  providerSilentMode: boolean;
3699
3716
  /**
3700
- * Machine specification for builds and executions.
3717
+ * Machine specification for deployment builds.
3718
+ */
3719
+ buildSpecification: string;
3720
+ /**
3721
+ * Machine specification for executions.
3701
3722
  */
3702
- specification: string;
3723
+ runtimeSpecification: string;
3703
3724
  };
3704
3725
  /**
3705
3726
  * Template Function
@@ -5961,6 +5982,22 @@ export declare namespace Models {
5961
5982
  * Total aggregated number of image transformations.
5962
5983
  */
5963
5984
  imageTransformationsTotal: number;
5985
+ /**
5986
+ * Aggregated number of function executions per period.
5987
+ */
5988
+ functionsExecutions: Metric[];
5989
+ /**
5990
+ * Total aggregated number of function executions.
5991
+ */
5992
+ functionsExecutionsTotal: number;
5993
+ /**
5994
+ * Aggregated number of site executions per period.
5995
+ */
5996
+ sitesExecutions: Metric[];
5997
+ /**
5998
+ * Total aggregated number of site executions.
5999
+ */
6000
+ sitesExecutionsTotal: number;
5964
6001
  /**
5965
6002
  * Aggregated stats for total network bandwidth.
5966
6003
  */
@@ -5985,6 +6022,30 @@ export declare namespace Models {
5985
6022
  * Total aggregated number of Imagine credits.
5986
6023
  */
5987
6024
  imagineCreditsTotal: number;
6025
+ /**
6026
+ * Current aggregated number of open Realtime connections.
6027
+ */
6028
+ realtimeConnectionsTotal: number;
6029
+ /**
6030
+ * Total number of Realtime messages sent to clients.
6031
+ */
6032
+ realtimeMessagesTotal: number;
6033
+ /**
6034
+ * Total consumed Realtime bandwidth (in bytes).
6035
+ */
6036
+ realtimeBandwidthTotal: number;
6037
+ /**
6038
+ * Aggregated number of open Realtime connections per period.
6039
+ */
6040
+ realtimeConnections: Metric[];
6041
+ /**
6042
+ * Aggregated number of Realtime messages sent to clients per period.
6043
+ */
6044
+ realtimeMessages: Metric[];
6045
+ /**
6046
+ * Aggregated consumed Realtime bandwidth (in bytes) per period.
6047
+ */
6048
+ realtimeBandwidth: Metric[];
5988
6049
  };
5989
6050
  /**
5990
6051
  * Headers
@@ -6696,6 +6757,22 @@ export declare namespace Models {
6696
6757
  * Number of sites to be migrated.
6697
6758
  */
6698
6759
  site: number;
6760
+ /**
6761
+ * Number of providers to be migrated.
6762
+ */
6763
+ provider: number;
6764
+ /**
6765
+ * Number of topics to be migrated.
6766
+ */
6767
+ topic: number;
6768
+ /**
6769
+ * Number of subscribers to be migrated.
6770
+ */
6771
+ subscriber: number;
6772
+ /**
6773
+ * Number of messages to be migrated.
6774
+ */
6775
+ message: number;
6699
6776
  /**
6700
6777
  * Size of files to be migrated in mb.
6701
6778
  */
@@ -6932,9 +7009,17 @@ export declare namespace Models {
6932
7009
  */
6933
7010
  usageBandwidth: number;
6934
7011
  /**
6935
- * Total realtime usage for the billing period
7012
+ * Peak concurrent realtime connections for the billing period
6936
7013
  */
6937
7014
  usageRealtime: number;
7015
+ /**
7016
+ * Total realtime messages sent for the billing period
7017
+ */
7018
+ usageRealtimeMessages: number;
7019
+ /**
7020
+ * Total realtime bandwidth usage for the billing period
7021
+ */
7022
+ usageRealtimeBandwidth: number;
6938
7023
  /**
6939
7024
  * Additional members
6940
7025
  */
@@ -8423,10 +8508,6 @@ export declare namespace Models {
8423
8508
  * Domain registrar (e.g. "appwrite" or "third_party").
8424
8509
  */
8425
8510
  registrar: string;
8426
- /**
8427
- * Payment status for domain purchase.
8428
- */
8429
- paymentStatus: string;
8430
8511
  /**
8431
8512
  * Nameservers setting. "Appwrite" or empty string.
8432
8513
  */
@@ -8447,6 +8528,10 @@ export declare namespace Models {
8447
8528
  * Renewal price (in cents).
8448
8529
  */
8449
8530
  renewalPrice: number;
8531
+ /**
8532
+ * Transfer status for domains being transferred in.
8533
+ */
8534
+ transferStatus: DomainTransferStatusEnum;
8450
8535
  /**
8451
8536
  * Team ID.
8452
8537
  */
@@ -8455,10 +8540,51 @@ export declare namespace Models {
8455
8540
  * Dns records
8456
8541
  */
8457
8542
  dnsRecords: DnsRecord[];
8543
+ };
8544
+ /**
8545
+ * DomainPurchase
8546
+ */
8547
+ export type DomainPurchase = {
8548
+ /**
8549
+ * Purchase/invoice ID.
8550
+ */
8551
+ $id: string;
8458
8552
  /**
8459
- * Domain transfer status (e.g., "pending", "completed", "failed").
8553
+ * Purchase creation time in ISO 8601 format.
8460
8554
  */
8461
- transferStatus: string;
8555
+ $createdAt: string;
8556
+ /**
8557
+ * Purchase update date in ISO 8601 format.
8558
+ */
8559
+ $updatedAt: string;
8560
+ /**
8561
+ * Domain document ID.
8562
+ */
8563
+ domainId: string;
8564
+ /**
8565
+ * Domain name.
8566
+ */
8567
+ domain: string;
8568
+ /**
8569
+ * Team ID that owns the domain.
8570
+ */
8571
+ organizationId: string;
8572
+ /**
8573
+ * Domain purchase status.
8574
+ */
8575
+ status: DomainPurchaseStatus;
8576
+ /**
8577
+ * Stripe client secret for 3DS; empty when not applicable.
8578
+ */
8579
+ clientSecret: string;
8580
+ /**
8581
+ * Purchase amount.
8582
+ */
8583
+ amount: number;
8584
+ /**
8585
+ * Currency code.
8586
+ */
8587
+ currency: string;
8462
8588
  };
8463
8589
  /**
8464
8590
  * DNSRecord
@@ -8749,7 +8875,7 @@ export declare namespace Models {
8749
8875
  /**
8750
8876
  * Transfer status.
8751
8877
  */
8752
- status: DomainTransferStatusStatus;
8878
+ status: DomainTransferStatusEnum;
8753
8879
  /**
8754
8880
  * Additional transfer status information.
8755
8881
  */
@@ -266,7 +266,7 @@ export declare class Account {
266
266
  /**
267
267
  * List all invoices tied to an account.
268
268
  *
269
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
269
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
270
270
  * @throws {AppwriteException}
271
271
  * @returns {Promise<Models.InvoiceList>}
272
272
  */
@@ -276,7 +276,7 @@ export declare class Account {
276
276
  /**
277
277
  * List all invoices tied to an account.
278
278
  *
279
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
279
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
280
280
  * @throws {AppwriteException}
281
281
  * @returns {Promise<Models.InvoiceList>}
282
282
  * @deprecated Use the object parameter style method for a better developer experience.
@@ -89,7 +89,7 @@ export declare class Domains {
89
89
  * @param {string} params.companyName - Company or organization name for the registrant.
90
90
  * @param {number} params.periodYears - Registration term in years (1-10).
91
91
  * @throws {AppwriteException}
92
- * @returns {Promise<Models.Domain>}
92
+ * @returns {Promise<Models.DomainPurchase>}
93
93
  */
94
94
  createPurchase(params: {
95
95
  domain: string;
@@ -103,7 +103,7 @@ export declare class Domains {
103
103
  addressLine3?: string;
104
104
  companyName?: string;
105
105
  periodYears?: number;
106
- }): Promise<Models.Domain>;
106
+ }): Promise<Models.DomainPurchase>;
107
107
  /**
108
108
  * Create a domain purchase with registrant information.
109
109
  *
@@ -119,10 +119,32 @@ export declare class Domains {
119
119
  * @param {string} companyName - Company or organization name for the registrant.
120
120
  * @param {number} periodYears - Registration term in years (1-10).
121
121
  * @throws {AppwriteException}
122
- * @returns {Promise<Models.Domain>}
122
+ * @returns {Promise<Models.DomainPurchase>}
123
+ * @deprecated Use the object parameter style method for a better developer experience.
124
+ */
125
+ createPurchase(domain: string, organizationId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number): Promise<Models.DomainPurchase>;
126
+ /**
127
+ * Confirm and complete a domain purchase after payment authentication.
128
+ *
129
+ * @param {string} params.domainId - Domain ID to confirm purchase for.
130
+ * @param {string} params.organizationId - Team ID that owns the domain.
131
+ * @throws {AppwriteException}
132
+ * @returns {Promise<Models.DomainPurchase>}
133
+ */
134
+ updatePurchase(params: {
135
+ domainId: string;
136
+ organizationId: string;
137
+ }): Promise<Models.DomainPurchase>;
138
+ /**
139
+ * Confirm and complete a domain purchase after payment authentication.
140
+ *
141
+ * @param {string} domainId - Domain ID to confirm purchase for.
142
+ * @param {string} organizationId - Team ID that owns the domain.
143
+ * @throws {AppwriteException}
144
+ * @returns {Promise<Models.DomainPurchase>}
123
145
  * @deprecated Use the object parameter style method for a better developer experience.
124
146
  */
125
- createPurchase(domain: string, organizationId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number): Promise<Models.Domain>;
147
+ updatePurchase(domainId: string, organizationId: string): Promise<Models.DomainPurchase>;
126
148
  /**
127
149
  * List domain suggestions.
128
150
  *
@@ -165,14 +187,14 @@ export declare class Domains {
165
187
  * @param {string} params.authCode - Authorization code for the domain transfer.
166
188
  * @param {string} params.paymentMethodId - Payment method ID to authorize and capture the transfer.
167
189
  * @throws {AppwriteException}
168
- * @returns {Promise<Models.Domain>}
190
+ * @returns {Promise<Models.DomainPurchase>}
169
191
  */
170
192
  createTransferIn(params: {
171
193
  domain: string;
172
194
  organizationId: string;
173
195
  authCode: string;
174
196
  paymentMethodId: string;
175
- }): Promise<Models.Domain>;
197
+ }): Promise<Models.DomainPurchase>;
176
198
  /**
177
199
  * Create a domain transfer in with authorization code and registrant information.
178
200
  *
@@ -181,10 +203,32 @@ export declare class Domains {
181
203
  * @param {string} authCode - Authorization code for the domain transfer.
182
204
  * @param {string} paymentMethodId - Payment method ID to authorize and capture the transfer.
183
205
  * @throws {AppwriteException}
184
- * @returns {Promise<Models.Domain>}
206
+ * @returns {Promise<Models.DomainPurchase>}
207
+ * @deprecated Use the object parameter style method for a better developer experience.
208
+ */
209
+ createTransferIn(domain: string, organizationId: string, authCode: string, paymentMethodId: string): Promise<Models.DomainPurchase>;
210
+ /**
211
+ * Confirm and complete a domain transfer in after payment authentication.
212
+ *
213
+ * @param {string} params.domainId - Domain ID to confirm transfer for.
214
+ * @param {string} params.organizationId - Team ID that owns the domain.
215
+ * @throws {AppwriteException}
216
+ * @returns {Promise<Models.DomainPurchase>}
217
+ */
218
+ updateTransferIn(params: {
219
+ domainId: string;
220
+ organizationId: string;
221
+ }): Promise<Models.DomainPurchase>;
222
+ /**
223
+ * Confirm and complete a domain transfer in after payment authentication.
224
+ *
225
+ * @param {string} domainId - Domain ID to confirm transfer for.
226
+ * @param {string} organizationId - Team ID that owns the domain.
227
+ * @throws {AppwriteException}
228
+ * @returns {Promise<Models.DomainPurchase>}
185
229
  * @deprecated Use the object parameter style method for a better developer experience.
186
230
  */
187
- createTransferIn(domain: string, organizationId: string, authCode: string, paymentMethodId: string): Promise<Models.Domain>;
231
+ updateTransferIn(domainId: string, organizationId: string): Promise<Models.DomainPurchase>;
188
232
  /**
189
233
  * Create a domain transfer out and return the authorization code.
190
234
  *
@@ -57,7 +57,9 @@ export declare class Functions {
57
57
  * @param {string} params.providerBranch - Production branch for the repo linked to the function.
58
58
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
59
59
  * @param {string} params.providerRootDirectory - Path to function code in the linked repo.
60
- * @param {string} params.specification - Runtime specification for the function and builds.
60
+ * @param {string} params.buildSpecification - Build specification for the function deployments.
61
+ * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
62
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
61
63
  * @throws {AppwriteException}
62
64
  * @returns {Promise<Models.Function>}
63
65
  */
@@ -79,7 +81,9 @@ export declare class Functions {
79
81
  providerBranch?: string;
80
82
  providerSilentMode?: boolean;
81
83
  providerRootDirectory?: string;
82
- specification?: string;
84
+ buildSpecification?: string;
85
+ runtimeSpecification?: string;
86
+ deploymentRetention?: number;
83
87
  }): Promise<Models.Function>;
84
88
  /**
85
89
  * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
@@ -101,12 +105,14 @@ export declare class Functions {
101
105
  * @param {string} providerBranch - Production branch for the repo linked to the function.
102
106
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
103
107
  * @param {string} providerRootDirectory - Path to function code in the linked repo.
104
- * @param {string} specification - Runtime specification for the function and builds.
108
+ * @param {string} buildSpecification - Build specification for the function deployments.
109
+ * @param {string} runtimeSpecification - Runtime specification for the function executions.
110
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
105
111
  * @throws {AppwriteException}
106
112
  * @returns {Promise<Models.Function>}
107
113
  * @deprecated Use the object parameter style method for a better developer experience.
108
114
  */
109
- create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
115
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
110
116
  /**
111
117
  * Get a list of all runtimes that are currently active on your instance.
112
118
  *
@@ -229,7 +235,9 @@ export declare class Functions {
229
235
  * @param {string} params.providerBranch - Production branch for the repo linked to the function
230
236
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
231
237
  * @param {string} params.providerRootDirectory - Path to function code in the linked repo.
232
- * @param {string} params.specification - Runtime specification for the function and builds.
238
+ * @param {string} params.buildSpecification - Build specification for the function deployments.
239
+ * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
240
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
233
241
  * @throws {AppwriteException}
234
242
  * @returns {Promise<Models.Function>}
235
243
  */
@@ -251,7 +259,9 @@ export declare class Functions {
251
259
  providerBranch?: string;
252
260
  providerSilentMode?: boolean;
253
261
  providerRootDirectory?: string;
254
- specification?: string;
262
+ buildSpecification?: string;
263
+ runtimeSpecification?: string;
264
+ deploymentRetention?: number;
255
265
  }): Promise<Models.Function>;
256
266
  /**
257
267
  * Update function by its unique ID.
@@ -273,12 +283,14 @@ export declare class Functions {
273
283
  * @param {string} providerBranch - Production branch for the repo linked to the function
274
284
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
275
285
  * @param {string} providerRootDirectory - Path to function code in the linked repo.
276
- * @param {string} specification - Runtime specification for the function and builds.
286
+ * @param {string} buildSpecification - Build specification for the function deployments.
287
+ * @param {string} runtimeSpecification - Runtime specification for the function executions.
288
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
277
289
  * @throws {AppwriteException}
278
290
  * @returns {Promise<Models.Function>}
279
291
  * @deprecated Use the object parameter style method for a better developer experience.
280
292
  */
281
- update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
293
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: Scopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
282
294
  /**
283
295
  * Delete a function by its unique ID.
284
296
  *
@@ -456,7 +456,7 @@ export declare class Organizations {
456
456
  * List all invoices for an organization.
457
457
  *
458
458
  * @param {string} params.organizationId - Organization ID
459
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
459
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
460
460
  * @throws {AppwriteException}
461
461
  * @returns {Promise<Models.InvoiceList>}
462
462
  */
@@ -468,7 +468,7 @@ export declare class Organizations {
468
468
  * List all invoices for an organization.
469
469
  *
470
470
  * @param {string} organizationId - Organization ID
471
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
471
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
472
472
  * @throws {AppwriteException}
473
473
  * @returns {Promise<Models.InvoiceList>}
474
474
  * @deprecated Use the object parameter style method for a better developer experience.