@appwrite.io/console 3.1.0 → 5.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.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +516 -119
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +517 -120
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +516 -119
- package/docs/examples/databases/list-documents.md +2 -1
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/domains/create-purchase.md +1 -1
- package/docs/examples/domains/create-transfer-in.md +18 -0
- package/docs/examples/domains/create-transfer-out.md +16 -0
- package/docs/examples/domains/get-transfer-status.md +15 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/health/get-console-pausing.md +16 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +2 -2
- package/docs/examples/migrations/create-n-host-migration.md +2 -2
- package/docs/examples/migrations/create-supabase-migration.md +2 -2
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report.md +2 -2
- package/docs/examples/migrations/get-n-host-report.md +2 -2
- package/docs/examples/migrations/get-supabase-report.md +2 -2
- package/docs/examples/projects/update-console-access.md +15 -0
- package/docs/examples/projects/update-status.md +16 -0
- package/docs/examples/sites/create-deployment.md +2 -2
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/docs/examples/tablesdb/list-rows.md +2 -1
- package/package.json +1 -1
- package/src/channel.ts +19 -15
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +25 -0
- package/src/enums/build-runtime.ts +3 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/domain-transfer-status-status.ts +10 -0
- package/src/enums/firebase-migration-resource.ts +12 -0
- package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
- package/src/enums/runtime.ts +3 -0
- package/src/enums/runtimes.ts +3 -0
- package/src/enums/status.ts +3 -0
- package/src/enums/supabase-migration-resource.ts +13 -0
- package/src/index.ts +7 -1
- package/src/models.ts +209 -7
- package/src/services/account.ts +4 -4
- package/src/services/databases.ts +100 -93
- package/src/services/domains.ts +342 -13
- package/src/services/functions.ts +52 -24
- package/src/services/health.ts +61 -0
- package/src/services/messaging.ts +2 -2
- package/src/services/migrations.ts +68 -65
- package/src/services/organizations.ts +2 -2
- package/src/services/projects.ts +120 -0
- package/src/services/sites.ts +96 -57
- package/src/services/tables-db.ts +14 -7
- package/src/services/teams.ts +4 -4
- package/types/channel.d.ts +9 -9
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/domain-transfer-status-status.d.ts +10 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/enums/status.d.ts +3 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/index.d.ts +7 -1
- package/types/models.d.ts +207 -7
- package/types/services/account.d.ts +2 -2
- package/types/services/databases.d.ts +40 -37
- package/types/services/domains.d.ts +117 -4
- package/types/services/functions.d.ts +20 -8
- package/types/services/health.d.ts +24 -0
- package/types/services/messaging.d.ts +2 -2
- package/types/services/migrations.d.ts +36 -33
- package/types/services/organizations.d.ts +2 -2
- package/types/services/projects.d.ts +46 -0
- package/types/services/sites.d.ts +30 -12
- package/types/services/tables-db.d.ts +4 -1
- package/types/services/teams.d.ts +4 -4
|
@@ -49,6 +49,7 @@ export declare class Sites {
|
|
|
49
49
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
50
50
|
* @param {string} params.installCommand - Install Command.
|
|
51
51
|
* @param {string} params.buildCommand - Build Command.
|
|
52
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
52
53
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
53
54
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
54
55
|
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -57,7 +58,9 @@ export declare class Sites {
|
|
|
57
58
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
58
59
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
59
60
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
60
|
-
* @param {string} params.
|
|
61
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
62
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
63
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
61
64
|
* @throws {AppwriteException}
|
|
62
65
|
* @returns {Promise<Models.Site>}
|
|
63
66
|
*/
|
|
@@ -71,6 +74,7 @@ export declare class Sites {
|
|
|
71
74
|
timeout?: number;
|
|
72
75
|
installCommand?: string;
|
|
73
76
|
buildCommand?: string;
|
|
77
|
+
startCommand?: string;
|
|
74
78
|
outputDirectory?: string;
|
|
75
79
|
adapter?: Adapter;
|
|
76
80
|
installationId?: string;
|
|
@@ -79,7 +83,9 @@ export declare class Sites {
|
|
|
79
83
|
providerBranch?: string;
|
|
80
84
|
providerSilentMode?: boolean;
|
|
81
85
|
providerRootDirectory?: string;
|
|
82
|
-
|
|
86
|
+
buildSpecification?: string;
|
|
87
|
+
runtimeSpecification?: string;
|
|
88
|
+
deploymentRetention?: number;
|
|
83
89
|
}): Promise<Models.Site>;
|
|
84
90
|
/**
|
|
85
91
|
* Create a new site.
|
|
@@ -93,6 +99,7 @@ export declare class Sites {
|
|
|
93
99
|
* @param {number} timeout - Maximum request time in seconds.
|
|
94
100
|
* @param {string} installCommand - Install Command.
|
|
95
101
|
* @param {string} buildCommand - Build Command.
|
|
102
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
96
103
|
* @param {string} outputDirectory - Output Directory for site.
|
|
97
104
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
98
105
|
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
@@ -101,12 +108,14 @@ export declare class Sites {
|
|
|
101
108
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
102
109
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
103
110
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
104
|
-
* @param {string}
|
|
111
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
112
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
113
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
105
114
|
* @throws {AppwriteException}
|
|
106
115
|
* @returns {Promise<Models.Site>}
|
|
107
116
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
108
117
|
*/
|
|
109
|
-
create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
118
|
+
create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
110
119
|
/**
|
|
111
120
|
* Get a list of all frameworks that are currently available on the server instance.
|
|
112
121
|
*
|
|
@@ -217,6 +226,7 @@ export declare class Sites {
|
|
|
217
226
|
* @param {number} params.timeout - Maximum request time in seconds.
|
|
218
227
|
* @param {string} params.installCommand - Install Command.
|
|
219
228
|
* @param {string} params.buildCommand - Build Command.
|
|
229
|
+
* @param {string} params.startCommand - Custom start command. Leave empty to use default.
|
|
220
230
|
* @param {string} params.outputDirectory - Output Directory for site.
|
|
221
231
|
* @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
|
|
222
232
|
* @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -226,7 +236,9 @@ export declare class Sites {
|
|
|
226
236
|
* @param {string} params.providerBranch - Production branch for the repo linked to the site.
|
|
227
237
|
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
228
238
|
* @param {string} params.providerRootDirectory - Path to site code in the linked repo.
|
|
229
|
-
* @param {string} params.
|
|
239
|
+
* @param {string} params.buildSpecification - Build specification for the site deployments.
|
|
240
|
+
* @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
|
|
241
|
+
* @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
230
242
|
* @throws {AppwriteException}
|
|
231
243
|
* @returns {Promise<Models.Site>}
|
|
232
244
|
*/
|
|
@@ -239,6 +251,7 @@ export declare class Sites {
|
|
|
239
251
|
timeout?: number;
|
|
240
252
|
installCommand?: string;
|
|
241
253
|
buildCommand?: string;
|
|
254
|
+
startCommand?: string;
|
|
242
255
|
outputDirectory?: string;
|
|
243
256
|
buildRuntime?: BuildRuntime;
|
|
244
257
|
adapter?: Adapter;
|
|
@@ -248,7 +261,9 @@ export declare class Sites {
|
|
|
248
261
|
providerBranch?: string;
|
|
249
262
|
providerSilentMode?: boolean;
|
|
250
263
|
providerRootDirectory?: string;
|
|
251
|
-
|
|
264
|
+
buildSpecification?: string;
|
|
265
|
+
runtimeSpecification?: string;
|
|
266
|
+
deploymentRetention?: number;
|
|
252
267
|
}): Promise<Models.Site>;
|
|
253
268
|
/**
|
|
254
269
|
* Update site by its unique ID.
|
|
@@ -261,6 +276,7 @@ export declare class Sites {
|
|
|
261
276
|
* @param {number} timeout - Maximum request time in seconds.
|
|
262
277
|
* @param {string} installCommand - Install Command.
|
|
263
278
|
* @param {string} buildCommand - Build Command.
|
|
279
|
+
* @param {string} startCommand - Custom start command. Leave empty to use default.
|
|
264
280
|
* @param {string} outputDirectory - Output Directory for site.
|
|
265
281
|
* @param {BuildRuntime} buildRuntime - Runtime to use during build step.
|
|
266
282
|
* @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
|
|
@@ -270,12 +286,14 @@ export declare class Sites {
|
|
|
270
286
|
* @param {string} providerBranch - Production branch for the repo linked to the site.
|
|
271
287
|
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
|
|
272
288
|
* @param {string} providerRootDirectory - Path to site code in the linked repo.
|
|
273
|
-
* @param {string}
|
|
289
|
+
* @param {string} buildSpecification - Build specification for the site deployments.
|
|
290
|
+
* @param {string} runtimeSpecification - Runtime specification for the SSR executions.
|
|
291
|
+
* @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
|
|
274
292
|
* @throws {AppwriteException}
|
|
275
293
|
* @returns {Promise<Models.Site>}
|
|
276
294
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
277
295
|
*/
|
|
278
|
-
update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
296
|
+
update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
|
|
279
297
|
/**
|
|
280
298
|
* Delete a site by its unique ID.
|
|
281
299
|
*
|
|
@@ -350,20 +368,20 @@ export declare class Sites {
|
|
|
350
368
|
*
|
|
351
369
|
* @param {string} params.siteId - Site ID.
|
|
352
370
|
* @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
353
|
-
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
354
371
|
* @param {string} params.installCommand - Install Commands.
|
|
355
372
|
* @param {string} params.buildCommand - Build Commands.
|
|
356
373
|
* @param {string} params.outputDirectory - Output Directory.
|
|
374
|
+
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
357
375
|
* @throws {AppwriteException}
|
|
358
376
|
* @returns {Promise<Models.Deployment>}
|
|
359
377
|
*/
|
|
360
378
|
createDeployment(params: {
|
|
361
379
|
siteId: string;
|
|
362
380
|
code: File;
|
|
363
|
-
activate: boolean;
|
|
364
381
|
installCommand?: string;
|
|
365
382
|
buildCommand?: string;
|
|
366
383
|
outputDirectory?: string;
|
|
384
|
+
activate?: boolean;
|
|
367
385
|
onProgress?: (progress: UploadProgress) => void;
|
|
368
386
|
}): Promise<Models.Deployment>;
|
|
369
387
|
/**
|
|
@@ -371,15 +389,15 @@ export declare class Sites {
|
|
|
371
389
|
*
|
|
372
390
|
* @param {string} siteId - Site ID.
|
|
373
391
|
* @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
374
|
-
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
375
392
|
* @param {string} installCommand - Install Commands.
|
|
376
393
|
* @param {string} buildCommand - Build Commands.
|
|
377
394
|
* @param {string} outputDirectory - Output Directory.
|
|
395
|
+
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
378
396
|
* @throws {AppwriteException}
|
|
379
397
|
* @returns {Promise<Models.Deployment>}
|
|
380
398
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
381
399
|
*/
|
|
382
|
-
createDeployment(siteId: string, code: File,
|
|
400
|
+
createDeployment(siteId: string, code: File, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
383
401
|
/**
|
|
384
402
|
* Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
385
403
|
*
|
|
@@ -1896,6 +1896,7 @@ export declare class TablesDB {
|
|
|
1896
1896
|
* @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/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
1897
1897
|
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1898
1898
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1899
|
+
* @param {number} params.ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
|
|
1899
1900
|
* @throws {AppwriteException}
|
|
1900
1901
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1901
1902
|
*/
|
|
@@ -1905,6 +1906,7 @@ export declare class TablesDB {
|
|
|
1905
1906
|
queries?: string[];
|
|
1906
1907
|
transactionId?: string;
|
|
1907
1908
|
total?: boolean;
|
|
1909
|
+
ttl?: number;
|
|
1908
1910
|
}): Promise<Models.RowList<Row>>;
|
|
1909
1911
|
/**
|
|
1910
1912
|
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
|
|
@@ -1914,11 +1916,12 @@ export declare class TablesDB {
|
|
|
1914
1916
|
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
1915
1917
|
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1916
1918
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1919
|
+
* @param {number} ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
|
|
1917
1920
|
* @throws {AppwriteException}
|
|
1918
1921
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1919
1922
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1920
1923
|
*/
|
|
1921
|
-
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean): Promise<Models.RowList<Row>>;
|
|
1924
|
+
listRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number): Promise<Models.RowList<Row>>;
|
|
1922
1925
|
/**
|
|
1923
1926
|
* Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
|
|
1924
1927
|
*
|
|
@@ -177,7 +177,7 @@ export declare class Teams {
|
|
|
177
177
|
*
|
|
178
178
|
*
|
|
179
179
|
* @param {string} params.teamId - Team ID.
|
|
180
|
-
* @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
180
|
+
* @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
181
181
|
* @param {string} params.email - Email of the new team member.
|
|
182
182
|
* @param {string} params.userId - ID of the user to be added to a team.
|
|
183
183
|
* @param {string} params.phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -206,7 +206,7 @@ export declare class Teams {
|
|
|
206
206
|
*
|
|
207
207
|
*
|
|
208
208
|
* @param {string} teamId - Team ID.
|
|
209
|
-
* @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
209
|
+
* @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
210
210
|
* @param {string} email - Email of the new team member.
|
|
211
211
|
* @param {string} userId - ID of the user to be added to a team.
|
|
212
212
|
* @param {string} phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -245,7 +245,7 @@ export declare class Teams {
|
|
|
245
245
|
*
|
|
246
246
|
* @param {string} params.teamId - Team ID.
|
|
247
247
|
* @param {string} params.membershipId - Membership ID.
|
|
248
|
-
* @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
248
|
+
* @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
249
249
|
* @throws {AppwriteException}
|
|
250
250
|
* @returns {Promise<Models.Membership>}
|
|
251
251
|
*/
|
|
@@ -260,7 +260,7 @@ export declare class Teams {
|
|
|
260
260
|
*
|
|
261
261
|
* @param {string} teamId - Team ID.
|
|
262
262
|
* @param {string} membershipId - Membership ID.
|
|
263
|
-
* @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each
|
|
263
|
+
* @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 81 characters long.
|
|
264
264
|
* @throws {AppwriteException}
|
|
265
265
|
* @returns {Promise<Models.Membership>}
|
|
266
266
|
* @deprecated Use the object parameter style method for a better developer experience.
|