@appwrite.io/console 13.1.0 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +4257 -690
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +4255 -691
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +4259 -692
  7. package/package.json +1 -1
  8. package/types/enums/{site-adapter.d.ts → adapter.d.ts} +1 -1
  9. package/types/enums/{organization-addon.d.ts → addon.d.ts} +1 -1
  10. package/types/enums/appwrite-migration-resource.d.ts +13 -1
  11. package/types/enums/{function-runtime.d.ts → build-runtime.d.ts} +1 -1
  12. package/types/enums/embedding-model.d.ts +4 -1
  13. package/types/enums/{site-framework.d.ts → framework.d.ts} +1 -1
  14. package/types/enums/{migration-on-duplicate.d.ts → on-duplicate.d.ts} +1 -1
  15. package/types/enums/project-key-scopes.d.ts +2 -0
  16. package/types/enums/project-policy-id.d.ts +5 -1
  17. package/types/enums/query-suggestion-resource.d.ts +3 -0
  18. package/types/enums/{site-build-runtime.d.ts → runtime.d.ts} +1 -1
  19. package/types/enums/{redirect-status-code.d.ts → status-code.d.ts} +1 -1
  20. package/types/enums/status.d.ts +3 -0
  21. package/types/index.d.ts +11 -8
  22. package/types/models.d.ts +1524 -19
  23. package/types/services/account.d.ts +2 -2
  24. package/types/services/advisor.d.ts +123 -0
  25. package/types/services/apps.d.ts +266 -0
  26. package/types/services/compute.d.ts +1171 -0
  27. package/types/services/functions.d.ts +13 -13
  28. package/types/services/health.d.ts +8 -0
  29. package/types/services/messaging.d.ts +92 -0
  30. package/types/services/migrations.d.ts +13 -13
  31. package/types/services/organizations.d.ts +5 -5
  32. package/types/services/project.d.ts +77 -6
  33. package/types/services/projects.d.ts +5 -5
  34. package/types/services/proxy.d.ts +5 -5
  35. package/types/services/sites.d.ts +27 -27
  36. package/types/enums/project-status.d.ts +0 -3
@@ -1,6 +1,6 @@
1
1
  import { Client, UploadProgress } from '../client';
2
2
  import type { Models } from '../models';
3
- import { FunctionRuntime } from '../enums/function-runtime';
3
+ import { Runtime } from '../enums/runtime';
4
4
  import { ProjectKeyScopes } from '../enums/project-key-scopes';
5
5
  import { FunctionTemplateUseCase } from '../enums/function-template-use-case';
6
6
  import { UsageRange } from '../enums/usage-range';
@@ -41,7 +41,7 @@ export declare class Functions {
41
41
  *
42
42
  * @param {string} params.functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
43
43
  * @param {string} params.name - Function name. Max length: 128 chars.
44
- * @param {FunctionRuntime} params.runtime - Execution runtime.
44
+ * @param {Runtime} params.runtime - Execution runtime.
45
45
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
46
46
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
47
47
  * @param {string} params.schedule - Schedule CRON syntax.
@@ -67,7 +67,7 @@ export declare class Functions {
67
67
  create(params: {
68
68
  functionId: string;
69
69
  name: string;
70
- runtime: FunctionRuntime;
70
+ runtime: Runtime;
71
71
  execute?: string[];
72
72
  events?: string[];
73
73
  schedule?: string;
@@ -93,7 +93,7 @@ export declare class Functions {
93
93
  *
94
94
  * @param {string} functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
95
95
  * @param {string} name - Function name. Max length: 128 chars.
96
- * @param {FunctionRuntime} runtime - Execution runtime.
96
+ * @param {Runtime} runtime - Execution runtime.
97
97
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
98
98
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
99
99
  * @param {string} schedule - Schedule CRON syntax.
@@ -117,7 +117,7 @@ export declare class Functions {
117
117
  * @returns {Promise<Models.Function>}
118
118
  * @deprecated Use the object parameter style method for a better developer experience.
119
119
  */
120
- create(functionId: string, name: string, runtime: FunctionRuntime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
120
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
121
121
  /**
122
122
  * Get a list of all runtimes that are currently active on your instance.
123
123
  *
@@ -135,7 +135,7 @@ export declare class Functions {
135
135
  /**
136
136
  * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
137
137
  *
138
- * @param {FunctionRuntime[]} params.runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
138
+ * @param {Runtime[]} params.runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
139
139
  * @param {FunctionTemplateUseCase[]} params.useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
140
140
  * @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
141
141
  * @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
@@ -144,7 +144,7 @@ export declare class Functions {
144
144
  * @returns {Promise<Models.TemplateFunctionList>}
145
145
  */
146
146
  listTemplates(params?: {
147
- runtimes?: FunctionRuntime[];
147
+ runtimes?: Runtime[];
148
148
  useCases?: FunctionTemplateUseCase[];
149
149
  limit?: number;
150
150
  offset?: number;
@@ -153,7 +153,7 @@ export declare class Functions {
153
153
  /**
154
154
  * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
155
155
  *
156
- * @param {FunctionRuntime[]} runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
156
+ * @param {Runtime[]} runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
157
157
  * @param {FunctionTemplateUseCase[]} useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
158
158
  * @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
159
159
  * @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
@@ -162,7 +162,7 @@ export declare class Functions {
162
162
  * @returns {Promise<Models.TemplateFunctionList>}
163
163
  * @deprecated Use the object parameter style method for a better developer experience.
164
164
  */
165
- listTemplates(runtimes?: FunctionRuntime[], useCases?: FunctionTemplateUseCase[], limit?: number, offset?: number, total?: boolean): Promise<Models.TemplateFunctionList>;
165
+ listTemplates(runtimes?: Runtime[], useCases?: FunctionTemplateUseCase[], limit?: number, offset?: number, total?: boolean): Promise<Models.TemplateFunctionList>;
166
166
  /**
167
167
  * Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
168
168
  *
@@ -225,7 +225,7 @@ export declare class Functions {
225
225
  *
226
226
  * @param {string} params.functionId - Function ID.
227
227
  * @param {string} params.name - Function name. Max length: 128 chars.
228
- * @param {FunctionRuntime} params.runtime - Execution runtime.
228
+ * @param {Runtime} params.runtime - Execution runtime.
229
229
  * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
230
230
  * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
231
231
  * @param {string} params.schedule - Schedule CRON syntax.
@@ -251,7 +251,7 @@ export declare class Functions {
251
251
  update(params: {
252
252
  functionId: string;
253
253
  name: string;
254
- runtime?: FunctionRuntime;
254
+ runtime?: Runtime;
255
255
  execute?: string[];
256
256
  events?: string[];
257
257
  schedule?: string;
@@ -277,7 +277,7 @@ export declare class Functions {
277
277
  *
278
278
  * @param {string} functionId - Function ID.
279
279
  * @param {string} name - Function name. Max length: 128 chars.
280
- * @param {FunctionRuntime} runtime - Execution runtime.
280
+ * @param {Runtime} runtime - Execution runtime.
281
281
  * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
282
282
  * @param {string[]} events - Events list. Maximum of 100 events are allowed.
283
283
  * @param {string} schedule - Schedule CRON syntax.
@@ -301,7 +301,7 @@ export declare class Functions {
301
301
  * @returns {Promise<Models.Function>}
302
302
  * @deprecated Use the object parameter style method for a better developer experience.
303
303
  */
304
- update(functionId: string, name: string, runtime?: FunctionRuntime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
304
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Function>;
305
305
  /**
306
306
  * Delete a function by its unique ID.
307
307
  *
@@ -18,6 +18,14 @@ export declare class Health {
18
18
  * @returns {Promise<Models.HealthAntivirus>}
19
19
  */
20
20
  getAntivirus(): Promise<Models.HealthAntivirus>;
21
+ /**
22
+ * Check the database that backs the audit and activity store. When the connection is reachable the endpoint returns a passing status with its response time.
23
+ *
24
+ *
25
+ * @throws {AppwriteException}
26
+ * @returns {Promise<Models.HealthStatusList>}
27
+ */
28
+ getAuditsDB(): Promise<Models.HealthStatusList>;
21
29
  /**
22
30
  * Check the Appwrite in-memory cache servers are up and connection is successful.
23
31
  *
@@ -1149,6 +1149,98 @@ export declare class Messaging {
1149
1149
  * @deprecated Use the object parameter style method for a better developer experience.
1150
1150
  */
1151
1151
  updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
1152
+ /**
1153
+ * Create a new Amazon SES provider.
1154
+ *
1155
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1156
+ * @param {string} params.name - Provider name.
1157
+ * @param {string} params.accessKey - AWS access key ID.
1158
+ * @param {string} params.secretKey - AWS secret access key.
1159
+ * @param {string} params.region - AWS region, for example us-east-1.
1160
+ * @param {string} params.fromName - Sender Name.
1161
+ * @param {string} params.fromEmail - Sender email address.
1162
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1163
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1164
+ * @param {boolean} params.enabled - Set as enabled.
1165
+ * @throws {AppwriteException}
1166
+ * @returns {Promise<Models.Provider>}
1167
+ */
1168
+ createSesProvider(params: {
1169
+ providerId: string;
1170
+ name: string;
1171
+ accessKey?: string;
1172
+ secretKey?: string;
1173
+ region?: string;
1174
+ fromName?: string;
1175
+ fromEmail?: string;
1176
+ replyToName?: string;
1177
+ replyToEmail?: string;
1178
+ enabled?: boolean;
1179
+ }): Promise<Models.Provider>;
1180
+ /**
1181
+ * Create a new Amazon SES provider.
1182
+ *
1183
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1184
+ * @param {string} name - Provider name.
1185
+ * @param {string} accessKey - AWS access key ID.
1186
+ * @param {string} secretKey - AWS secret access key.
1187
+ * @param {string} region - AWS region, for example us-east-1.
1188
+ * @param {string} fromName - Sender Name.
1189
+ * @param {string} fromEmail - Sender email address.
1190
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1191
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1192
+ * @param {boolean} enabled - Set as enabled.
1193
+ * @throws {AppwriteException}
1194
+ * @returns {Promise<Models.Provider>}
1195
+ * @deprecated Use the object parameter style method for a better developer experience.
1196
+ */
1197
+ createSesProvider(providerId: string, name: string, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1198
+ /**
1199
+ * Update an Amazon SES provider by its unique ID.
1200
+ *
1201
+ * @param {string} params.providerId - Provider ID.
1202
+ * @param {string} params.name - Provider name.
1203
+ * @param {boolean} params.enabled - Set as enabled.
1204
+ * @param {string} params.accessKey - AWS access key ID.
1205
+ * @param {string} params.secretKey - AWS secret access key.
1206
+ * @param {string} params.region - AWS region, for example us-east-1.
1207
+ * @param {string} params.fromName - Sender Name.
1208
+ * @param {string} params.fromEmail - Sender email address.
1209
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1210
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1211
+ * @throws {AppwriteException}
1212
+ * @returns {Promise<Models.Provider>}
1213
+ */
1214
+ updateSesProvider(params: {
1215
+ providerId: string;
1216
+ name?: string;
1217
+ enabled?: boolean;
1218
+ accessKey?: string;
1219
+ secretKey?: string;
1220
+ region?: string;
1221
+ fromName?: string;
1222
+ fromEmail?: string;
1223
+ replyToName?: string;
1224
+ replyToEmail?: string;
1225
+ }): Promise<Models.Provider>;
1226
+ /**
1227
+ * Update an Amazon SES provider by its unique ID.
1228
+ *
1229
+ * @param {string} providerId - Provider ID.
1230
+ * @param {string} name - Provider name.
1231
+ * @param {boolean} enabled - Set as enabled.
1232
+ * @param {string} accessKey - AWS access key ID.
1233
+ * @param {string} secretKey - AWS secret access key.
1234
+ * @param {string} region - AWS region, for example us-east-1.
1235
+ * @param {string} fromName - Sender Name.
1236
+ * @param {string} fromEmail - Sender email address.
1237
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1238
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1239
+ * @throws {AppwriteException}
1240
+ * @returns {Promise<Models.Provider>}
1241
+ * @deprecated Use the object parameter style method for a better developer experience.
1242
+ */
1243
+ updateSesProvider(providerId: string, name?: string, enabled?: boolean, accessKey?: string, secretKey?: string, region?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
1152
1244
  /**
1153
1245
  * Create a new SMTP provider.
1154
1246
  *
@@ -1,7 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { AppwriteMigrationResource } from '../enums/appwrite-migration-resource';
4
- import { MigrationOnDuplicate } from '../enums/migration-on-duplicate';
4
+ import { OnDuplicate } from '../enums/on-duplicate';
5
5
  import { FirebaseMigrationResource } from '../enums/firebase-migration-resource';
6
6
  import { NHostMigrationResource } from '../enums/n-host-migration-resource';
7
7
  import { SupabaseMigrationResource } from '../enums/supabase-migration-resource';
@@ -40,7 +40,7 @@ export declare class Migrations {
40
40
  * @param {string} params.endpoint - Source Appwrite endpoint
41
41
  * @param {string} params.projectId - Source Project ID
42
42
  * @param {string} params.apiKey - Source API Key
43
- * @param {MigrationOnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
43
+ * @param {OnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
44
44
  * @throws {AppwriteException}
45
45
  * @returns {Promise<Models.Migration>}
46
46
  */
@@ -49,7 +49,7 @@ export declare class Migrations {
49
49
  endpoint: string;
50
50
  projectId: string;
51
51
  apiKey: string;
52
- onDuplicate?: MigrationOnDuplicate;
52
+ onDuplicate?: OnDuplicate;
53
53
  }): Promise<Models.Migration>;
54
54
  /**
55
55
  * Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project.
@@ -58,12 +58,12 @@ export declare class Migrations {
58
58
  * @param {string} endpoint - Source Appwrite endpoint
59
59
  * @param {string} projectId - Source Project ID
60
60
  * @param {string} apiKey - Source API Key
61
- * @param {MigrationOnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
61
+ * @param {OnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
62
62
  * @throws {AppwriteException}
63
63
  * @returns {Promise<Models.Migration>}
64
64
  * @deprecated Use the object parameter style method for a better developer experience.
65
65
  */
66
- createAppwriteMigration(resources: AppwriteMigrationResource[], endpoint: string, projectId: string, apiKey: string, onDuplicate?: MigrationOnDuplicate): Promise<Models.Migration>;
66
+ createAppwriteMigration(resources: AppwriteMigrationResource[], endpoint: string, projectId: string, apiKey: string, onDuplicate?: OnDuplicate): Promise<Models.Migration>;
67
67
  /**
68
68
  * Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
69
69
  *
@@ -142,7 +142,7 @@ export declare class Migrations {
142
142
  * @param {string} params.fileId - File ID.
143
143
  * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
144
144
  * @param {boolean} params.internalFile - Is the file stored in an internal bucket?
145
- * @param {MigrationOnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
145
+ * @param {OnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
146
146
  * @throws {AppwriteException}
147
147
  * @returns {Promise<Models.Migration>}
148
148
  */
@@ -151,7 +151,7 @@ export declare class Migrations {
151
151
  fileId: string;
152
152
  resourceId: string;
153
153
  internalFile?: boolean;
154
- onDuplicate?: MigrationOnDuplicate;
154
+ onDuplicate?: OnDuplicate;
155
155
  }): Promise<Models.Migration>;
156
156
  /**
157
157
  * Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.
@@ -160,12 +160,12 @@ export declare class Migrations {
160
160
  * @param {string} fileId - File ID.
161
161
  * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
162
162
  * @param {boolean} internalFile - Is the file stored in an internal bucket?
163
- * @param {MigrationOnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
163
+ * @param {OnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
164
164
  * @throws {AppwriteException}
165
165
  * @returns {Promise<Models.Migration>}
166
166
  * @deprecated Use the object parameter style method for a better developer experience.
167
167
  */
168
- createCSVImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean, onDuplicate?: MigrationOnDuplicate): Promise<Models.Migration>;
168
+ createCSVImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean, onDuplicate?: OnDuplicate): Promise<Models.Migration>;
169
169
  /**
170
170
  * Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
171
171
  *
@@ -251,7 +251,7 @@ export declare class Migrations {
251
251
  * @param {string} params.fileId - File ID.
252
252
  * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
253
253
  * @param {boolean} params.internalFile - Is the file stored in an internal bucket?
254
- * @param {MigrationOnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
254
+ * @param {OnDuplicate} params.onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
255
255
  * @throws {AppwriteException}
256
256
  * @returns {Promise<Models.Migration>}
257
257
  */
@@ -260,7 +260,7 @@ export declare class Migrations {
260
260
  fileId: string;
261
261
  resourceId: string;
262
262
  internalFile?: boolean;
263
- onDuplicate?: MigrationOnDuplicate;
263
+ onDuplicate?: OnDuplicate;
264
264
  }): Promise<Models.Migration>;
265
265
  /**
266
266
  * Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
@@ -270,12 +270,12 @@ export declare class Migrations {
270
270
  * @param {string} fileId - File ID.
271
271
  * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
272
272
  * @param {boolean} internalFile - Is the file stored in an internal bucket?
273
- * @param {MigrationOnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
273
+ * @param {OnDuplicate} onDuplicate - Behavior when a row with an existing $id is encountered. "fail" (default): abort on first conflict. "skip": silently ignore. "overwrite": replace existing row.
274
274
  * @throws {AppwriteException}
275
275
  * @returns {Promise<Models.Migration>}
276
276
  * @deprecated Use the object parameter style method for a better developer experience.
277
277
  */
278
- createJSONImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean, onDuplicate?: MigrationOnDuplicate): Promise<Models.Migration>;
278
+ createJSONImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean, onDuplicate?: OnDuplicate): Promise<Models.Migration>;
279
279
  /**
280
280
  * Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
281
281
  *
@@ -1,7 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { Platform } from '../enums/platform';
4
- import { OrganizationAddon } from '../enums/organization-addon';
4
+ import { Addon } from '../enums/addon';
5
5
  export declare class Organizations {
6
6
  client: Client;
7
7
  constructor(client: Client);
@@ -244,25 +244,25 @@ export declare class Organizations {
244
244
  *
245
245
  *
246
246
  * @param {string} params.organizationId - Organization ID
247
- * @param {OrganizationAddon} params.addon - Addon key identifier (e.g. baa).
247
+ * @param {Addon} params.addon - Addon key identifier (e.g. baa).
248
248
  * @throws {AppwriteException}
249
249
  * @returns {Promise<Models.AddonPrice>}
250
250
  */
251
251
  getAddonPrice(params: {
252
252
  organizationId: string;
253
- addon: OrganizationAddon;
253
+ addon: Addon;
254
254
  }): Promise<Models.AddonPrice>;
255
255
  /**
256
256
  * Get the price details for a billing addon for an organization.
257
257
  *
258
258
  *
259
259
  * @param {string} organizationId - Organization ID
260
- * @param {OrganizationAddon} addon - Addon key identifier (e.g. baa).
260
+ * @param {Addon} addon - Addon key identifier (e.g. baa).
261
261
  * @throws {AppwriteException}
262
262
  * @returns {Promise<Models.AddonPrice>}
263
263
  * @deprecated Use the object parameter style method for a better developer experience.
264
264
  */
265
- getAddonPrice(organizationId: string, addon: OrganizationAddon): Promise<Models.AddonPrice>;
265
+ getAddonPrice(organizationId: string, addon: Addon): Promise<Models.AddonPrice>;
266
266
  /**
267
267
  * Get a list of all aggregations for an organization.
268
268
  *
@@ -341,6 +341,46 @@ export declare class Project {
341
341
  * @deprecated Use the object parameter style method for a better developer experience.
342
342
  */
343
343
  listOAuth2Providers(queries?: string[], total?: boolean): Promise<Models.OAuth2ProviderList>;
344
+ /**
345
+ * Update the OAuth2 server (OIDC provider) configuration.
346
+ *
347
+ * @param {boolean} params.enabled - Enable or disable the OAuth2 server.
348
+ * @param {string} params.authorizationUrl - URL to your application with consent screen.
349
+ * @param {string[]} params.scopes - List of allowed OAuth2 scopes. Maximum of 100 scopes are allowed, each up to 128 characters long.
350
+ * @param {number} params.accessTokenDuration - Access token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 8 hours.
351
+ * @param {number} params.refreshTokenDuration - Refresh token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 1 year.
352
+ * @param {number} params.publicAccessTokenDuration - Access token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 1 hour.
353
+ * @param {number} params.publicRefreshTokenDuration - Refresh token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 30 days.
354
+ * @param {boolean} params.confidentialPkce - When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
355
+ * @throws {AppwriteException}
356
+ * @returns {Promise<Models.Project>}
357
+ */
358
+ updateOAuth2Server(params: {
359
+ enabled: boolean;
360
+ authorizationUrl: string;
361
+ scopes?: string[];
362
+ accessTokenDuration?: number;
363
+ refreshTokenDuration?: number;
364
+ publicAccessTokenDuration?: number;
365
+ publicRefreshTokenDuration?: number;
366
+ confidentialPkce?: boolean;
367
+ }): Promise<Models.Project>;
368
+ /**
369
+ * Update the OAuth2 server (OIDC provider) configuration.
370
+ *
371
+ * @param {boolean} enabled - Enable or disable the OAuth2 server.
372
+ * @param {string} authorizationUrl - URL to your application with consent screen.
373
+ * @param {string[]} scopes - List of allowed OAuth2 scopes. Maximum of 100 scopes are allowed, each up to 128 characters long.
374
+ * @param {number} accessTokenDuration - Access token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 8 hours.
375
+ * @param {number} refreshTokenDuration - Refresh token duration in seconds for confidential clients (server-side apps that authenticate with a client secret). Leave empty to use default 1 year.
376
+ * @param {number} publicAccessTokenDuration - Access token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 1 hour.
377
+ * @param {number} publicRefreshTokenDuration - Refresh token duration in seconds for public clients (SPAs, mobile, and native apps that cannot keep a client secret). Leave empty to use default 30 days.
378
+ * @param {boolean} confidentialPkce - When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
379
+ * @throws {AppwriteException}
380
+ * @returns {Promise<Models.Project>}
381
+ * @deprecated Use the object parameter style method for a better developer experience.
382
+ */
383
+ updateOAuth2Server(enabled: boolean, authorizationUrl: string, scopes?: string[], accessTokenDuration?: number, refreshTokenDuration?: number, publicAccessTokenDuration?: number, publicRefreshTokenDuration?: number, confidentialPkce?: boolean): Promise<Models.Project>;
344
384
  /**
345
385
  * Update the project OAuth2 Amazon configuration.
346
386
  *
@@ -1939,6 +1979,37 @@ export declare class Project {
1939
1979
  * @deprecated Use the object parameter style method for a better developer experience.
1940
1980
  */
1941
1981
  updatePasswordPersonalDataPolicy(enabled: boolean): Promise<Models.Project>;
1982
+ /**
1983
+ * Update the password strength requirements for users in the project.
1984
+ *
1985
+ * @param {number} params.min - Minimum password length. Value must be between 8 and 256. Default is 8.
1986
+ * @param {boolean} params.uppercase - Whether passwords must include at least one uppercase letter.
1987
+ * @param {boolean} params.lowercase - Whether passwords must include at least one lowercase letter.
1988
+ * @param {boolean} params.number - Whether passwords must include at least one number.
1989
+ * @param {boolean} params.symbols - Whether passwords must include at least one symbol.
1990
+ * @throws {AppwriteException}
1991
+ * @returns {Promise<Models.PolicyPasswordStrength>}
1992
+ */
1993
+ updatePasswordStrengthPolicy(params?: {
1994
+ min?: number;
1995
+ uppercase?: boolean;
1996
+ lowercase?: boolean;
1997
+ number?: boolean;
1998
+ symbols?: boolean;
1999
+ }): Promise<Models.PolicyPasswordStrength>;
2000
+ /**
2001
+ * Update the password strength requirements for users in the project.
2002
+ *
2003
+ * @param {number} min - Minimum password length. Value must be between 8 and 256. Default is 8.
2004
+ * @param {boolean} uppercase - Whether passwords must include at least one uppercase letter.
2005
+ * @param {boolean} lowercase - Whether passwords must include at least one lowercase letter.
2006
+ * @param {boolean} number - Whether passwords must include at least one number.
2007
+ * @param {boolean} symbols - Whether passwords must include at least one symbol.
2008
+ * @throws {AppwriteException}
2009
+ * @returns {Promise<Models.PolicyPasswordStrength>}
2010
+ * @deprecated Use the object parameter style method for a better developer experience.
2011
+ */
2012
+ updatePasswordStrengthPolicy(min?: number, uppercase?: boolean, lowercase?: boolean, number?: boolean, symbols?: boolean): Promise<Models.PolicyPasswordStrength>;
1942
2013
  /**
1943
2014
  * Updating this policy allows you to control if email alert is sent upon session creation. When enabled, and user signs into their account, they will be sent an email notification. There is an exception, the first session after a new sign up does not trigger an alert, even if the policy is enabled.
1944
2015
  *
@@ -2037,22 +2108,22 @@ export declare class Project {
2037
2108
  /**
2038
2109
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2039
2110
  *
2040
- * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy.
2111
+ * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
2041
2112
  * @throws {AppwriteException}
2042
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy>}
2113
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>}
2043
2114
  */
2044
2115
  getPolicy(params: {
2045
2116
  policyId: ProjectPolicyId;
2046
- }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy>;
2117
+ }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>;
2047
2118
  /**
2048
2119
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2049
2120
  *
2050
- * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy.
2121
+ * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email.
2051
2122
  * @throws {AppwriteException}
2052
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy>}
2123
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>}
2053
2124
  * @deprecated Use the object parameter style method for a better developer experience.
2054
2125
  */
2055
- getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy>;
2126
+ getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail>;
2056
2127
  /**
2057
2128
  * Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
2058
2129
  *
@@ -1,7 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { ScheduleResourceType } from '../enums/schedule-resource-type';
4
- import { ProjectStatus } from '../enums/project-status';
4
+ import { Status } from '../enums/status';
5
5
  export declare class Projects {
6
6
  client: Client;
7
7
  constructor(client: Client);
@@ -231,25 +231,25 @@ export declare class Projects {
231
231
  *
232
232
  *
233
233
  * @param {string} params.projectId - Project ID
234
- * @param {ProjectStatus} params.status - New status for the project
234
+ * @param {Status} params.status - New status for the project
235
235
  * @throws {AppwriteException}
236
236
  * @returns {Promise<{}>}
237
237
  */
238
238
  updateStatus(params: {
239
239
  projectId: string;
240
- status: ProjectStatus;
240
+ status: Status;
241
241
  }): Promise<{}>;
242
242
  /**
243
243
  * Update the status of a project. Can be used to archive/restore projects, and to restore paused projects. When restoring a paused project, the console fingerprint header must be provided and the project must not be blocked for any reason other than inactivity.
244
244
  *
245
245
  *
246
246
  * @param {string} projectId - Project ID
247
- * @param {ProjectStatus} status - New status for the project
247
+ * @param {Status} status - New status for the project
248
248
  * @throws {AppwriteException}
249
249
  * @returns {Promise<{}>}
250
250
  * @deprecated Use the object parameter style method for a better developer experience.
251
251
  */
252
- updateStatus(projectId: string, status: ProjectStatus): Promise<{}>;
252
+ updateStatus(projectId: string, status: Status): Promise<{}>;
253
253
  /**
254
254
  * Update the team ID of a project allowing for it to be transferred to another team.
255
255
  *
@@ -1,6 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- import { RedirectStatusCode } from '../enums/redirect-status-code';
3
+ import { StatusCode } from '../enums/status-code';
4
4
  import { ProxyResourceType } from '../enums/proxy-resource-type';
5
5
  export declare class Proxy {
6
6
  client: Client;
@@ -86,7 +86,7 @@ export declare class Proxy {
86
86
  *
87
87
  * @param {string} params.domain - Domain name.
88
88
  * @param {string} params.url - Target URL of redirection
89
- * @param {RedirectStatusCode} params.statusCode - Status code of redirection
89
+ * @param {StatusCode} params.statusCode - Status code of redirection
90
90
  * @param {string} params.resourceId - ID of parent resource.
91
91
  * @param {ProxyResourceType} params.resourceType - Type of parent resource.
92
92
  * @throws {AppwriteException}
@@ -95,7 +95,7 @@ export declare class Proxy {
95
95
  createRedirectRule(params: {
96
96
  domain: string;
97
97
  url: string;
98
- statusCode: RedirectStatusCode;
98
+ statusCode: StatusCode;
99
99
  resourceId: string;
100
100
  resourceType: ProxyResourceType;
101
101
  }): Promise<Models.ProxyRule>;
@@ -106,14 +106,14 @@ export declare class Proxy {
106
106
  *
107
107
  * @param {string} domain - Domain name.
108
108
  * @param {string} url - Target URL of redirection
109
- * @param {RedirectStatusCode} statusCode - Status code of redirection
109
+ * @param {StatusCode} statusCode - Status code of redirection
110
110
  * @param {string} resourceId - ID of parent resource.
111
111
  * @param {ProxyResourceType} resourceType - Type of parent resource.
112
112
  * @throws {AppwriteException}
113
113
  * @returns {Promise<Models.ProxyRule>}
114
114
  * @deprecated Use the object parameter style method for a better developer experience.
115
115
  */
116
- createRedirectRule(domain: string, url: string, statusCode: RedirectStatusCode, resourceId: string, resourceType: ProxyResourceType): Promise<Models.ProxyRule>;
116
+ createRedirectRule(domain: string, url: string, statusCode: StatusCode, resourceId: string, resourceType: ProxyResourceType): Promise<Models.ProxyRule>;
117
117
  /**
118
118
  * Create a new proxy rule for serving Appwrite Site on custom domain.
119
119
  *