@appwrite.io/console 12.2.0 → 13.1.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 (72) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +1719 -1204
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1717 -1205
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +1736 -1221
  7. package/package.json +1 -1
  8. package/types/channel.d.ts +8 -3
  9. package/types/client.d.ts +1 -1
  10. package/types/enums/account-key-scopes.d.ts +5 -0
  11. package/types/enums/appwrite-migration-resource.d.ts +1 -0
  12. package/types/enums/backup-services.d.ts +1 -0
  13. package/types/enums/{resource-type.d.ts → block-resource-type.d.ts} +2 -6
  14. package/types/enums/{theme.d.ts → browser-theme.d.ts} +1 -1
  15. package/types/enums/cache-database.d.ts +5 -0
  16. package/types/enums/cache-target.d.ts +8 -0
  17. package/types/enums/{registration-type.d.ts → domain-registration-type.d.ts} +1 -1
  18. package/types/enums/{filter-type.d.ts → domain-suggestion-type.d.ts} +1 -1
  19. package/types/enums/{model.d.ts → embedding-model.d.ts} +1 -1
  20. package/types/enums/{runtime.d.ts → function-runtime.d.ts} +4 -2
  21. package/types/enums/function-template-use-case.d.ts +9 -0
  22. package/types/enums/{name.d.ts → health-queue-name.d.ts} +1 -1
  23. package/types/enums/{on-duplicate.d.ts → migration-on-duplicate.d.ts} +1 -1
  24. package/types/enums/o-auth-2-google-prompt.d.ts +5 -0
  25. package/types/enums/o-auth-provider.d.ts +1 -3
  26. package/types/enums/organization-addon.d.ts +4 -0
  27. package/types/enums/organization-key-scopes.d.ts +12 -0
  28. package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
  29. package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
  30. package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
  31. package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +10 -8
  32. package/types/enums/project-o-auth-2-google-prompt.d.ts +5 -0
  33. package/types/enums/project-o-auth-provider-id.d.ts +45 -0
  34. package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +1 -1
  35. package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
  36. package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
  37. package/types/enums/project-smtp-secure.d.ts +4 -0
  38. package/types/enums/project-status.d.ts +3 -0
  39. package/types/enums/query-suggestion-resource.d.ts +10 -1
  40. package/types/enums/redirect-status-code.d.ts +6 -0
  41. package/types/enums/schedule-resource-type.d.ts +6 -0
  42. package/types/enums/{adapter.d.ts → site-adapter.d.ts} +1 -1
  43. package/types/enums/{runtimes.d.ts → site-build-runtime.d.ts} +4 -2
  44. package/types/enums/{framework.d.ts → site-framework.d.ts} +1 -1
  45. package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
  46. package/types/index.d.ts +36 -26
  47. package/types/models.d.ts +1186 -1185
  48. package/types/services/account.d.ts +9 -9
  49. package/types/services/avatars.d.ts +5 -5
  50. package/types/services/console.d.ts +31 -0
  51. package/types/services/documents-db.d.ts +1 -4
  52. package/types/services/domains.d.ts +216 -216
  53. package/types/services/functions.d.ts +36 -25
  54. package/types/services/health.d.ts +5 -5
  55. package/types/services/manager.d.ts +49 -9
  56. package/types/services/migrations.d.ts +13 -13
  57. package/types/services/organization.d.ts +234 -0
  58. package/types/services/organizations.d.ts +5 -131
  59. package/types/services/presences.d.ts +166 -0
  60. package/types/services/project.d.ts +226 -215
  61. package/types/services/projects.d.ts +10 -159
  62. package/types/services/proxy.d.ts +5 -5
  63. package/types/services/realtime.d.ts +45 -3
  64. package/types/services/sites.d.ts +43 -32
  65. package/types/services/usage.d.ts +50 -0
  66. package/types/services/vectors-db.d.ts +6 -9
  67. package/types/enums/addon.d.ts +0 -3
  68. package/types/enums/build-runtime.d.ts +0 -91
  69. package/types/enums/frameworks.d.ts +0 -17
  70. package/types/enums/secure.d.ts +0 -4
  71. package/types/enums/status-code.d.ts +0 -6
  72. package/types/enums/status.d.ts +0 -3
package/dist/esm/sdk.js CHANGED
@@ -619,8 +619,8 @@ class Client {
619
619
  'x-sdk-name': 'Console',
620
620
  'x-sdk-platform': 'console',
621
621
  'x-sdk-language': 'web',
622
- 'x-sdk-version': '12.2.0',
623
- 'X-Appwrite-Response-Format': '1.9.4',
622
+ 'x-sdk-version': '13.1.0',
623
+ 'X-Appwrite-Response-Format': '1.9.5',
624
624
  };
625
625
  this.realtime = {
626
626
  socket: undefined,
@@ -1171,33 +1171,107 @@ class Client {
1171
1171
  if (file.size <= Client.CHUNK_SIZE) {
1172
1172
  return yield this.call(method, url, headers, originalPayload);
1173
1173
  }
1174
- let start = 0;
1175
- let response = null;
1176
- while (start < file.size) {
1177
- let end = start + Client.CHUNK_SIZE; // Prepare end for the next chunk
1178
- if (end >= file.size) {
1179
- end = file.size; // Adjust for the last chunk to include the last byte
1174
+ const totalChunks = Math.ceil(file.size / Client.CHUNK_SIZE);
1175
+ // Upload first chunk alone to get the upload ID
1176
+ const firstChunkEnd = Math.min(Client.CHUNK_SIZE, file.size);
1177
+ const firstChunkHeaders = Object.assign(Object.assign({}, headers), { 'content-range': `bytes 0-${firstChunkEnd - 1}/${file.size}` });
1178
+ const firstChunk = file.slice(0, firstChunkEnd);
1179
+ const firstPayload = Object.assign({}, originalPayload);
1180
+ firstPayload[fileParam] = new File([firstChunk], file.name);
1181
+ let response = yield this.call(method, url, firstChunkHeaders, firstPayload);
1182
+ const uploadId = response === null || response === void 0 ? void 0 : response.$id;
1183
+ if (onProgress && typeof onProgress === 'function') {
1184
+ onProgress({
1185
+ $id: uploadId,
1186
+ progress: Math.round((firstChunkEnd / file.size) * 100),
1187
+ sizeUploaded: firstChunkEnd,
1188
+ chunksTotal: totalChunks,
1189
+ chunksUploaded: 1
1190
+ });
1191
+ }
1192
+ if (totalChunks === 1) {
1193
+ return response;
1194
+ }
1195
+ // Prepare remaining chunks
1196
+ const chunks = [];
1197
+ for (let i = 1; i < totalChunks; i++) {
1198
+ const start = i * Client.CHUNK_SIZE;
1199
+ const end = Math.min(start + Client.CHUNK_SIZE, file.size);
1200
+ chunks.push({ start, end });
1201
+ }
1202
+ // Upload remaining chunks with max concurrency of 8
1203
+ const CONCURRENCY = 8;
1204
+ let completedCount = 1;
1205
+ let uploadedBytes = firstChunkEnd;
1206
+ let lastResponse = response;
1207
+ let finalResponse = null;
1208
+ let rejected = false;
1209
+ const isUploadComplete = (chunkResponse) => {
1210
+ var _a;
1211
+ const chunksUploaded = chunkResponse === null || chunkResponse === void 0 ? void 0 : chunkResponse.chunksUploaded;
1212
+ const chunksTotal = (_a = chunkResponse === null || chunkResponse === void 0 ? void 0 : chunkResponse.chunksTotal) !== null && _a !== void 0 ? _a : totalChunks;
1213
+ return typeof chunksUploaded === 'number' && typeof chunksTotal === 'number' && chunksUploaded >= chunksTotal;
1214
+ };
1215
+ const uploadChunk = (chunk) => __awaiter(this, void 0, void 0, function* () {
1216
+ const chunkHeaders = Object.assign({}, headers);
1217
+ if (uploadId) {
1218
+ chunkHeaders['x-appwrite-id'] = uploadId;
1219
+ }
1220
+ chunkHeaders['content-range'] = `bytes ${chunk.start}-${chunk.end - 1}/${file.size}`;
1221
+ const chunkBlob = file.slice(chunk.start, chunk.end);
1222
+ const chunkPayload = Object.assign({}, originalPayload);
1223
+ chunkPayload[fileParam] = new File([chunkBlob], file.name);
1224
+ const chunkResponse = yield this.call(method, url, chunkHeaders, chunkPayload);
1225
+ if (rejected) {
1226
+ return chunkResponse;
1227
+ }
1228
+ completedCount++;
1229
+ uploadedBytes += (chunk.end - chunk.start);
1230
+ lastResponse = chunkResponse;
1231
+ if (isUploadComplete(chunkResponse)) {
1232
+ finalResponse = chunkResponse;
1180
1233
  }
1181
- headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;
1182
- const chunk = file.slice(start, end);
1183
- let payload = Object.assign({}, originalPayload);
1184
- payload[fileParam] = new File([chunk], file.name);
1185
- response = yield this.call(method, url, headers, payload);
1186
1234
  if (onProgress && typeof onProgress === 'function') {
1187
1235
  onProgress({
1188
- $id: response.$id,
1189
- progress: Math.round((end / file.size) * 100),
1190
- sizeUploaded: end,
1191
- chunksTotal: Math.ceil(file.size / Client.CHUNK_SIZE),
1192
- chunksUploaded: Math.ceil(end / Client.CHUNK_SIZE)
1236
+ $id: uploadId,
1237
+ progress: Math.round((uploadedBytes / file.size) * 100),
1238
+ sizeUploaded: uploadedBytes,
1239
+ chunksTotal: totalChunks,
1240
+ chunksUploaded: completedCount
1193
1241
  });
1194
1242
  }
1195
- if (response && response.$id) {
1196
- headers['x-appwrite-id'] = response.$id;
1197
- }
1198
- start = end;
1199
- }
1200
- return response;
1243
+ return chunkResponse;
1244
+ });
1245
+ yield new Promise((resolve, reject) => {
1246
+ let nextChunk = 0;
1247
+ let inFlight = 0;
1248
+ let completed = 0;
1249
+ const uploadNext = () => {
1250
+ if (rejected) {
1251
+ return;
1252
+ }
1253
+ if (completed === chunks.length) {
1254
+ resolve();
1255
+ return;
1256
+ }
1257
+ while (inFlight < CONCURRENCY && nextChunk < chunks.length) {
1258
+ const chunk = chunks[nextChunk++];
1259
+ inFlight++;
1260
+ uploadChunk(chunk)
1261
+ .then(() => {
1262
+ inFlight--;
1263
+ completed++;
1264
+ uploadNext();
1265
+ })
1266
+ .catch((error) => {
1267
+ rejected = true;
1268
+ reject(error);
1269
+ });
1270
+ }
1271
+ };
1272
+ uploadNext();
1273
+ });
1274
+ return finalResponse !== null && finalResponse !== void 0 ? finalResponse : lastResponse;
1201
1275
  });
1202
1276
  }
1203
1277
  ping() {
@@ -1246,7 +1320,12 @@ class Client {
1246
1320
  window.localStorage.setItem('cookieFallback', cookieFallback);
1247
1321
  }
1248
1322
  if (data && typeof data === 'object') {
1249
- data.toString = () => JSONbig.stringify(data);
1323
+ Object.defineProperty(data, 'toString', {
1324
+ value: () => JSONbig.stringify(data),
1325
+ writable: true,
1326
+ enumerable: false,
1327
+ configurable: true,
1328
+ });
1250
1329
  }
1251
1330
  return data;
1252
1331
  });
@@ -4350,6 +4429,19 @@ class Console {
4350
4429
  const apiHeaders = {};
4351
4430
  return this.client.call('get', uri, apiHeaders, payload);
4352
4431
  }
4432
+ /**
4433
+ * List all scopes available for organization API keys, along with a description for each scope.
4434
+ *
4435
+ * @throws {AppwriteException}
4436
+ * @returns {Promise<Models.ConsoleKeyScopeList>}
4437
+ */
4438
+ listOrganizationScopes() {
4439
+ const apiPath = '/console/scopes/organization';
4440
+ const payload = {};
4441
+ const uri = new URL(this.client.config.endpoint + apiPath);
4442
+ const apiHeaders = {};
4443
+ return this.client.call('get', uri, apiHeaders, payload);
4444
+ }
4353
4445
  /**
4354
4446
  * List all scopes available for project API keys, along with a description for each scope.
4355
4447
  *
@@ -4533,6 +4625,31 @@ class Console {
4533
4625
  const apiHeaders = {};
4534
4626
  return this.client.call('get', uri, apiHeaders, payload);
4535
4627
  }
4628
+ getEmailTemplate(paramsOrFirst, ...rest) {
4629
+ let params;
4630
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('templateId' in paramsOrFirst || 'locale' in paramsOrFirst))) {
4631
+ params = (paramsOrFirst || {});
4632
+ }
4633
+ else {
4634
+ params = {
4635
+ templateId: paramsOrFirst,
4636
+ locale: rest[0]
4637
+ };
4638
+ }
4639
+ const templateId = params.templateId;
4640
+ const locale = params.locale;
4641
+ if (typeof templateId === 'undefined') {
4642
+ throw new AppwriteException('Missing required parameter: "templateId"');
4643
+ }
4644
+ const apiPath = '/console/templates/email/{templateId}'.replace('{templateId}', templateId);
4645
+ const payload = {};
4646
+ if (typeof locale !== 'undefined') {
4647
+ payload['locale'] = locale;
4648
+ }
4649
+ const uri = new URL(this.client.config.endpoint + apiPath);
4650
+ const apiHeaders = {};
4651
+ return this.client.call('get', uri, apiHeaders, payload);
4652
+ }
4536
4653
  /**
4537
4654
  * Get all Environment Variables that are relevant for the console.
4538
4655
  *
@@ -8015,21 +8132,16 @@ class DocumentsDB {
8015
8132
  else {
8016
8133
  params = {
8017
8134
  queries: paramsOrFirst,
8018
- search: rest[0],
8019
- total: rest[1]
8135
+ total: rest[0]
8020
8136
  };
8021
8137
  }
8022
8138
  const queries = params.queries;
8023
- const search = params.search;
8024
8139
  const total = params.total;
8025
8140
  const apiPath = '/documentsdb';
8026
8141
  const payload = {};
8027
8142
  if (typeof queries !== 'undefined') {
8028
8143
  payload['queries'] = queries;
8029
8144
  }
8030
- if (typeof search !== 'undefined') {
8031
- payload['search'] = search;
8032
- }
8033
8145
  if (typeof total !== 'undefined') {
8034
8146
  payload['total'] = total;
8035
8147
  }
@@ -11335,9 +11447,11 @@ class Functions {
11335
11447
  providerBranch: rest[13],
11336
11448
  providerSilentMode: rest[14],
11337
11449
  providerRootDirectory: rest[15],
11338
- buildSpecification: rest[16],
11339
- runtimeSpecification: rest[17],
11340
- deploymentRetention: rest[18]
11450
+ providerBranches: rest[16],
11451
+ providerPaths: rest[17],
11452
+ buildSpecification: rest[18],
11453
+ runtimeSpecification: rest[19],
11454
+ deploymentRetention: rest[20]
11341
11455
  };
11342
11456
  }
11343
11457
  const functionId = params.functionId;
@@ -11357,6 +11471,8 @@ class Functions {
11357
11471
  const providerBranch = params.providerBranch;
11358
11472
  const providerSilentMode = params.providerSilentMode;
11359
11473
  const providerRootDirectory = params.providerRootDirectory;
11474
+ const providerBranches = params.providerBranches;
11475
+ const providerPaths = params.providerPaths;
11360
11476
  const buildSpecification = params.buildSpecification;
11361
11477
  const runtimeSpecification = params.runtimeSpecification;
11362
11478
  const deploymentRetention = params.deploymentRetention;
@@ -11422,6 +11538,12 @@ class Functions {
11422
11538
  if (typeof providerRootDirectory !== 'undefined') {
11423
11539
  payload['providerRootDirectory'] = providerRootDirectory;
11424
11540
  }
11541
+ if (typeof providerBranches !== 'undefined') {
11542
+ payload['providerBranches'] = providerBranches;
11543
+ }
11544
+ if (typeof providerPaths !== 'undefined') {
11545
+ payload['providerPaths'] = providerPaths;
11546
+ }
11425
11547
  if (typeof buildSpecification !== 'undefined') {
11426
11548
  payload['buildSpecification'] = buildSpecification;
11427
11549
  }
@@ -11587,9 +11709,11 @@ class Functions {
11587
11709
  providerBranch: rest[13],
11588
11710
  providerSilentMode: rest[14],
11589
11711
  providerRootDirectory: rest[15],
11590
- buildSpecification: rest[16],
11591
- runtimeSpecification: rest[17],
11592
- deploymentRetention: rest[18]
11712
+ providerBranches: rest[16],
11713
+ providerPaths: rest[17],
11714
+ buildSpecification: rest[18],
11715
+ runtimeSpecification: rest[19],
11716
+ deploymentRetention: rest[20]
11593
11717
  };
11594
11718
  }
11595
11719
  const functionId = params.functionId;
@@ -11609,6 +11733,8 @@ class Functions {
11609
11733
  const providerBranch = params.providerBranch;
11610
11734
  const providerSilentMode = params.providerSilentMode;
11611
11735
  const providerRootDirectory = params.providerRootDirectory;
11736
+ const providerBranches = params.providerBranches;
11737
+ const providerPaths = params.providerPaths;
11612
11738
  const buildSpecification = params.buildSpecification;
11613
11739
  const runtimeSpecification = params.runtimeSpecification;
11614
11740
  const deploymentRetention = params.deploymentRetention;
@@ -11668,6 +11794,12 @@ class Functions {
11668
11794
  if (typeof providerRootDirectory !== 'undefined') {
11669
11795
  payload['providerRootDirectory'] = providerRootDirectory;
11670
11796
  }
11797
+ if (typeof providerBranches !== 'undefined') {
11798
+ payload['providerBranches'] = providerBranches;
11799
+ }
11800
+ if (typeof providerPaths !== 'undefined') {
11801
+ payload['providerPaths'] = providerPaths;
11802
+ }
11671
11803
  if (typeof buildSpecification !== 'undefined') {
11672
11804
  payload['buildSpecification'] = buildSpecification;
11673
11805
  }
@@ -13239,6 +13371,58 @@ class Manager {
13239
13371
  const apiHeaders = {};
13240
13372
  return this.client.call('get', uri, apiHeaders, payload);
13241
13373
  }
13374
+ deleteCache(paramsOrFirst, ...rest) {
13375
+ let params;
13376
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('region' in paramsOrFirst || 'cache' in paramsOrFirst || 'all' in paramsOrFirst || 'database' in paramsOrFirst || 'projectId' in paramsOrFirst || 'collectionId' in paramsOrFirst || 'documentId' in paramsOrFirst))) {
13377
+ params = (paramsOrFirst || {});
13378
+ }
13379
+ else {
13380
+ params = {
13381
+ region: paramsOrFirst,
13382
+ cache: rest[0],
13383
+ all: rest[1],
13384
+ database: rest[2],
13385
+ projectId: rest[3],
13386
+ collectionId: rest[4],
13387
+ documentId: rest[5]
13388
+ };
13389
+ }
13390
+ const region = params.region;
13391
+ const cache = params.cache;
13392
+ const all = params.all;
13393
+ const database = params.database;
13394
+ const projectId = params.projectId;
13395
+ const collectionId = params.collectionId;
13396
+ const documentId = params.documentId;
13397
+ const apiPath = '/manager/cache';
13398
+ const payload = {};
13399
+ if (typeof region !== 'undefined') {
13400
+ payload['region'] = region;
13401
+ }
13402
+ if (typeof cache !== 'undefined') {
13403
+ payload['cache'] = cache;
13404
+ }
13405
+ if (typeof all !== 'undefined') {
13406
+ payload['all'] = all;
13407
+ }
13408
+ if (typeof database !== 'undefined') {
13409
+ payload['database'] = database;
13410
+ }
13411
+ if (typeof projectId !== 'undefined') {
13412
+ payload['projectId'] = projectId;
13413
+ }
13414
+ if (typeof collectionId !== 'undefined') {
13415
+ payload['collectionId'] = collectionId;
13416
+ }
13417
+ if (typeof documentId !== 'undefined') {
13418
+ payload['documentId'] = documentId;
13419
+ }
13420
+ const uri = new URL(this.client.config.endpoint + apiPath);
13421
+ const apiHeaders = {
13422
+ 'content-type': 'application/json',
13423
+ };
13424
+ return this.client.call('delete', uri, apiHeaders, payload);
13425
+ }
13242
13426
  updateUserStatus(paramsOrFirst, ...rest) {
13243
13427
  let params;
13244
13428
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -16879,6 +17063,308 @@ class Migrations {
16879
17063
  }
16880
17064
  }
16881
17065
 
17066
+ class Organization {
17067
+ constructor(client) {
17068
+ this.client = client;
17069
+ }
17070
+ listKeys(paramsOrFirst, ...rest) {
17071
+ let params;
17072
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17073
+ params = (paramsOrFirst || {});
17074
+ }
17075
+ else {
17076
+ params = {
17077
+ queries: paramsOrFirst,
17078
+ total: rest[0]
17079
+ };
17080
+ }
17081
+ const queries = params.queries;
17082
+ const total = params.total;
17083
+ const apiPath = '/organization/keys';
17084
+ const payload = {};
17085
+ if (typeof queries !== 'undefined') {
17086
+ payload['queries'] = queries;
17087
+ }
17088
+ if (typeof total !== 'undefined') {
17089
+ payload['total'] = total;
17090
+ }
17091
+ const uri = new URL(this.client.config.endpoint + apiPath);
17092
+ const apiHeaders = {};
17093
+ return this.client.call('get', uri, apiHeaders, payload);
17094
+ }
17095
+ createKey(paramsOrFirst, ...rest) {
17096
+ let params;
17097
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17098
+ params = (paramsOrFirst || {});
17099
+ }
17100
+ else {
17101
+ params = {
17102
+ keyId: paramsOrFirst,
17103
+ name: rest[0],
17104
+ scopes: rest[1],
17105
+ expire: rest[2]
17106
+ };
17107
+ }
17108
+ const keyId = params.keyId;
17109
+ const name = params.name;
17110
+ const scopes = params.scopes;
17111
+ const expire = params.expire;
17112
+ if (typeof keyId === 'undefined') {
17113
+ throw new AppwriteException('Missing required parameter: "keyId"');
17114
+ }
17115
+ if (typeof name === 'undefined') {
17116
+ throw new AppwriteException('Missing required parameter: "name"');
17117
+ }
17118
+ if (typeof scopes === 'undefined') {
17119
+ throw new AppwriteException('Missing required parameter: "scopes"');
17120
+ }
17121
+ const apiPath = '/organization/keys';
17122
+ const payload = {};
17123
+ if (typeof keyId !== 'undefined') {
17124
+ payload['keyId'] = keyId;
17125
+ }
17126
+ if (typeof name !== 'undefined') {
17127
+ payload['name'] = name;
17128
+ }
17129
+ if (typeof scopes !== 'undefined') {
17130
+ payload['scopes'] = scopes;
17131
+ }
17132
+ if (typeof expire !== 'undefined') {
17133
+ payload['expire'] = expire;
17134
+ }
17135
+ const uri = new URL(this.client.config.endpoint + apiPath);
17136
+ const apiHeaders = {
17137
+ 'content-type': 'application/json',
17138
+ };
17139
+ return this.client.call('post', uri, apiHeaders, payload);
17140
+ }
17141
+ getKey(paramsOrFirst) {
17142
+ let params;
17143
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17144
+ params = (paramsOrFirst || {});
17145
+ }
17146
+ else {
17147
+ params = {
17148
+ keyId: paramsOrFirst
17149
+ };
17150
+ }
17151
+ const keyId = params.keyId;
17152
+ if (typeof keyId === 'undefined') {
17153
+ throw new AppwriteException('Missing required parameter: "keyId"');
17154
+ }
17155
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
17156
+ const payload = {};
17157
+ const uri = new URL(this.client.config.endpoint + apiPath);
17158
+ const apiHeaders = {};
17159
+ return this.client.call('get', uri, apiHeaders, payload);
17160
+ }
17161
+ updateKey(paramsOrFirst, ...rest) {
17162
+ let params;
17163
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17164
+ params = (paramsOrFirst || {});
17165
+ }
17166
+ else {
17167
+ params = {
17168
+ keyId: paramsOrFirst,
17169
+ name: rest[0],
17170
+ scopes: rest[1],
17171
+ expire: rest[2]
17172
+ };
17173
+ }
17174
+ const keyId = params.keyId;
17175
+ const name = params.name;
17176
+ const scopes = params.scopes;
17177
+ const expire = params.expire;
17178
+ if (typeof keyId === 'undefined') {
17179
+ throw new AppwriteException('Missing required parameter: "keyId"');
17180
+ }
17181
+ if (typeof name === 'undefined') {
17182
+ throw new AppwriteException('Missing required parameter: "name"');
17183
+ }
17184
+ if (typeof scopes === 'undefined') {
17185
+ throw new AppwriteException('Missing required parameter: "scopes"');
17186
+ }
17187
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
17188
+ const payload = {};
17189
+ if (typeof name !== 'undefined') {
17190
+ payload['name'] = name;
17191
+ }
17192
+ if (typeof scopes !== 'undefined') {
17193
+ payload['scopes'] = scopes;
17194
+ }
17195
+ if (typeof expire !== 'undefined') {
17196
+ payload['expire'] = expire;
17197
+ }
17198
+ const uri = new URL(this.client.config.endpoint + apiPath);
17199
+ const apiHeaders = {
17200
+ 'content-type': 'application/json',
17201
+ };
17202
+ return this.client.call('put', uri, apiHeaders, payload);
17203
+ }
17204
+ deleteKey(paramsOrFirst) {
17205
+ let params;
17206
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17207
+ params = (paramsOrFirst || {});
17208
+ }
17209
+ else {
17210
+ params = {
17211
+ keyId: paramsOrFirst
17212
+ };
17213
+ }
17214
+ const keyId = params.keyId;
17215
+ if (typeof keyId === 'undefined') {
17216
+ throw new AppwriteException('Missing required parameter: "keyId"');
17217
+ }
17218
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
17219
+ const payload = {};
17220
+ const uri = new URL(this.client.config.endpoint + apiPath);
17221
+ const apiHeaders = {
17222
+ 'content-type': 'application/json',
17223
+ };
17224
+ return this.client.call('delete', uri, apiHeaders, payload);
17225
+ }
17226
+ listProjects(paramsOrFirst, ...rest) {
17227
+ let params;
17228
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17229
+ params = (paramsOrFirst || {});
17230
+ }
17231
+ else {
17232
+ params = {
17233
+ queries: paramsOrFirst,
17234
+ search: rest[0],
17235
+ total: rest[1]
17236
+ };
17237
+ }
17238
+ const queries = params.queries;
17239
+ const search = params.search;
17240
+ const total = params.total;
17241
+ const apiPath = '/organization/projects';
17242
+ const payload = {};
17243
+ if (typeof queries !== 'undefined') {
17244
+ payload['queries'] = queries;
17245
+ }
17246
+ if (typeof search !== 'undefined') {
17247
+ payload['search'] = search;
17248
+ }
17249
+ if (typeof total !== 'undefined') {
17250
+ payload['total'] = total;
17251
+ }
17252
+ const uri = new URL(this.client.config.endpoint + apiPath);
17253
+ const apiHeaders = {};
17254
+ return this.client.call('get', uri, apiHeaders, payload);
17255
+ }
17256
+ createProject(paramsOrFirst, ...rest) {
17257
+ let params;
17258
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17259
+ params = (paramsOrFirst || {});
17260
+ }
17261
+ else {
17262
+ params = {
17263
+ projectId: paramsOrFirst,
17264
+ name: rest[0],
17265
+ region: rest[1]
17266
+ };
17267
+ }
17268
+ const projectId = params.projectId;
17269
+ const name = params.name;
17270
+ const region = params.region;
17271
+ if (typeof projectId === 'undefined') {
17272
+ throw new AppwriteException('Missing required parameter: "projectId"');
17273
+ }
17274
+ if (typeof name === 'undefined') {
17275
+ throw new AppwriteException('Missing required parameter: "name"');
17276
+ }
17277
+ const apiPath = '/organization/projects';
17278
+ const payload = {};
17279
+ if (typeof projectId !== 'undefined') {
17280
+ payload['projectId'] = projectId;
17281
+ }
17282
+ if (typeof name !== 'undefined') {
17283
+ payload['name'] = name;
17284
+ }
17285
+ if (typeof region !== 'undefined') {
17286
+ payload['region'] = region;
17287
+ }
17288
+ const uri = new URL(this.client.config.endpoint + apiPath);
17289
+ const apiHeaders = {
17290
+ 'content-type': 'application/json',
17291
+ };
17292
+ return this.client.call('post', uri, apiHeaders, payload);
17293
+ }
17294
+ getProject(paramsOrFirst) {
17295
+ let params;
17296
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17297
+ params = (paramsOrFirst || {});
17298
+ }
17299
+ else {
17300
+ params = {
17301
+ projectId: paramsOrFirst
17302
+ };
17303
+ }
17304
+ const projectId = params.projectId;
17305
+ if (typeof projectId === 'undefined') {
17306
+ throw new AppwriteException('Missing required parameter: "projectId"');
17307
+ }
17308
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
17309
+ const payload = {};
17310
+ const uri = new URL(this.client.config.endpoint + apiPath);
17311
+ const apiHeaders = {};
17312
+ return this.client.call('get', uri, apiHeaders, payload);
17313
+ }
17314
+ updateProject(paramsOrFirst, ...rest) {
17315
+ let params;
17316
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17317
+ params = (paramsOrFirst || {});
17318
+ }
17319
+ else {
17320
+ params = {
17321
+ projectId: paramsOrFirst,
17322
+ name: rest[0]
17323
+ };
17324
+ }
17325
+ const projectId = params.projectId;
17326
+ const name = params.name;
17327
+ if (typeof projectId === 'undefined') {
17328
+ throw new AppwriteException('Missing required parameter: "projectId"');
17329
+ }
17330
+ if (typeof name === 'undefined') {
17331
+ throw new AppwriteException('Missing required parameter: "name"');
17332
+ }
17333
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
17334
+ const payload = {};
17335
+ if (typeof name !== 'undefined') {
17336
+ payload['name'] = name;
17337
+ }
17338
+ const uri = new URL(this.client.config.endpoint + apiPath);
17339
+ const apiHeaders = {
17340
+ 'content-type': 'application/json',
17341
+ };
17342
+ return this.client.call('patch', uri, apiHeaders, payload);
17343
+ }
17344
+ deleteProject(paramsOrFirst) {
17345
+ let params;
17346
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17347
+ params = (paramsOrFirst || {});
17348
+ }
17349
+ else {
17350
+ params = {
17351
+ projectId: paramsOrFirst
17352
+ };
17353
+ }
17354
+ const projectId = params.projectId;
17355
+ if (typeof projectId === 'undefined') {
17356
+ throw new AppwriteException('Missing required parameter: "projectId"');
17357
+ }
17358
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
17359
+ const payload = {};
17360
+ const uri = new URL(this.client.config.endpoint + apiPath);
17361
+ const apiHeaders = {
17362
+ 'content-type': 'application/json',
17363
+ };
17364
+ return this.client.call('delete', uri, apiHeaders, payload);
17365
+ }
17366
+ }
17367
+
16882
17368
  class Organizations {
16883
17369
  constructor(client) {
16884
17370
  this.client = client;
@@ -17777,174 +18263,6 @@ class Organizations {
17777
18263
  const apiHeaders = {};
17778
18264
  return this.client.call('get', uri, apiHeaders, payload);
17779
18265
  }
17780
- listKeys(paramsOrFirst, ...rest) {
17781
- let params;
17782
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17783
- params = (paramsOrFirst || {});
17784
- }
17785
- else {
17786
- params = {
17787
- organizationId: paramsOrFirst,
17788
- total: rest[0]
17789
- };
17790
- }
17791
- const organizationId = params.organizationId;
17792
- const total = params.total;
17793
- if (typeof organizationId === 'undefined') {
17794
- throw new AppwriteException('Missing required parameter: "organizationId"');
17795
- }
17796
- const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
17797
- const payload = {};
17798
- if (typeof total !== 'undefined') {
17799
- payload['total'] = total;
17800
- }
17801
- const uri = new URL(this.client.config.endpoint + apiPath);
17802
- const apiHeaders = {};
17803
- return this.client.call('get', uri, apiHeaders, payload);
17804
- }
17805
- createKey(paramsOrFirst, ...rest) {
17806
- let params;
17807
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17808
- params = (paramsOrFirst || {});
17809
- }
17810
- else {
17811
- params = {
17812
- organizationId: paramsOrFirst,
17813
- name: rest[0],
17814
- scopes: rest[1],
17815
- expire: rest[2]
17816
- };
17817
- }
17818
- const organizationId = params.organizationId;
17819
- const name = params.name;
17820
- const scopes = params.scopes;
17821
- const expire = params.expire;
17822
- if (typeof organizationId === 'undefined') {
17823
- throw new AppwriteException('Missing required parameter: "organizationId"');
17824
- }
17825
- if (typeof name === 'undefined') {
17826
- throw new AppwriteException('Missing required parameter: "name"');
17827
- }
17828
- if (typeof scopes === 'undefined') {
17829
- throw new AppwriteException('Missing required parameter: "scopes"');
17830
- }
17831
- const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
17832
- const payload = {};
17833
- if (typeof name !== 'undefined') {
17834
- payload['name'] = name;
17835
- }
17836
- if (typeof scopes !== 'undefined') {
17837
- payload['scopes'] = scopes;
17838
- }
17839
- if (typeof expire !== 'undefined') {
17840
- payload['expire'] = expire;
17841
- }
17842
- const uri = new URL(this.client.config.endpoint + apiPath);
17843
- const apiHeaders = {
17844
- 'content-type': 'application/json',
17845
- };
17846
- return this.client.call('post', uri, apiHeaders, payload);
17847
- }
17848
- getKey(paramsOrFirst, ...rest) {
17849
- let params;
17850
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17851
- params = (paramsOrFirst || {});
17852
- }
17853
- else {
17854
- params = {
17855
- organizationId: paramsOrFirst,
17856
- keyId: rest[0]
17857
- };
17858
- }
17859
- const organizationId = params.organizationId;
17860
- const keyId = params.keyId;
17861
- if (typeof organizationId === 'undefined') {
17862
- throw new AppwriteException('Missing required parameter: "organizationId"');
17863
- }
17864
- if (typeof keyId === 'undefined') {
17865
- throw new AppwriteException('Missing required parameter: "keyId"');
17866
- }
17867
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
17868
- const payload = {};
17869
- const uri = new URL(this.client.config.endpoint + apiPath);
17870
- const apiHeaders = {};
17871
- return this.client.call('get', uri, apiHeaders, payload);
17872
- }
17873
- updateKey(paramsOrFirst, ...rest) {
17874
- let params;
17875
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17876
- params = (paramsOrFirst || {});
17877
- }
17878
- else {
17879
- params = {
17880
- organizationId: paramsOrFirst,
17881
- keyId: rest[0],
17882
- name: rest[1],
17883
- scopes: rest[2],
17884
- expire: rest[3]
17885
- };
17886
- }
17887
- const organizationId = params.organizationId;
17888
- const keyId = params.keyId;
17889
- const name = params.name;
17890
- const scopes = params.scopes;
17891
- const expire = params.expire;
17892
- if (typeof organizationId === 'undefined') {
17893
- throw new AppwriteException('Missing required parameter: "organizationId"');
17894
- }
17895
- if (typeof keyId === 'undefined') {
17896
- throw new AppwriteException('Missing required parameter: "keyId"');
17897
- }
17898
- if (typeof name === 'undefined') {
17899
- throw new AppwriteException('Missing required parameter: "name"');
17900
- }
17901
- if (typeof scopes === 'undefined') {
17902
- throw new AppwriteException('Missing required parameter: "scopes"');
17903
- }
17904
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
17905
- const payload = {};
17906
- if (typeof name !== 'undefined') {
17907
- payload['name'] = name;
17908
- }
17909
- if (typeof scopes !== 'undefined') {
17910
- payload['scopes'] = scopes;
17911
- }
17912
- if (typeof expire !== 'undefined') {
17913
- payload['expire'] = expire;
17914
- }
17915
- const uri = new URL(this.client.config.endpoint + apiPath);
17916
- const apiHeaders = {
17917
- 'content-type': 'application/json',
17918
- };
17919
- return this.client.call('put', uri, apiHeaders, payload);
17920
- }
17921
- deleteKey(paramsOrFirst, ...rest) {
17922
- let params;
17923
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17924
- params = (paramsOrFirst || {});
17925
- }
17926
- else {
17927
- params = {
17928
- organizationId: paramsOrFirst,
17929
- keyId: rest[0]
17930
- };
17931
- }
17932
- const organizationId = params.organizationId;
17933
- const keyId = params.keyId;
17934
- if (typeof organizationId === 'undefined') {
17935
- throw new AppwriteException('Missing required parameter: "organizationId"');
17936
- }
17937
- if (typeof keyId === 'undefined') {
17938
- throw new AppwriteException('Missing required parameter: "keyId"');
17939
- }
17940
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
17941
- const payload = {};
17942
- const uri = new URL(this.client.config.endpoint + apiPath);
17943
- const apiHeaders = {
17944
- 'content-type': 'application/json',
17945
- };
17946
- return this.client.call('delete', uri, apiHeaders, payload);
17947
- }
17948
18266
  setDefaultPaymentMethod(paramsOrFirst, ...rest) {
17949
18267
  let params;
17950
18268
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18350,73 +18668,165 @@ class Organizations {
18350
18668
  }
18351
18669
  }
18352
18670
 
18353
- class Project {
18671
+ class Presences {
18354
18672
  constructor(client) {
18355
18673
  this.client = client;
18356
18674
  }
18357
- /**
18358
- * Delete a project.
18359
- *
18360
- * @throws {AppwriteException}
18361
- * @returns {Promise<{}>}
18362
- */
18363
- delete() {
18364
- const apiPath = '/project';
18675
+ list(paramsOrFirst, ...rest) {
18676
+ let params;
18677
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18678
+ params = (paramsOrFirst || {});
18679
+ }
18680
+ else {
18681
+ params = {
18682
+ queries: paramsOrFirst,
18683
+ total: rest[0],
18684
+ ttl: rest[1]
18685
+ };
18686
+ }
18687
+ const queries = params.queries;
18688
+ const total = params.total;
18689
+ const ttl = params.ttl;
18690
+ const apiPath = '/presences';
18365
18691
  const payload = {};
18692
+ if (typeof queries !== 'undefined') {
18693
+ payload['queries'] = queries;
18694
+ }
18695
+ if (typeof total !== 'undefined') {
18696
+ payload['total'] = total;
18697
+ }
18698
+ if (typeof ttl !== 'undefined') {
18699
+ payload['ttl'] = ttl;
18700
+ }
18366
18701
  const uri = new URL(this.client.config.endpoint + apiPath);
18367
- const apiHeaders = {
18368
- 'content-type': 'application/json',
18369
- };
18370
- return this.client.call('delete', uri, apiHeaders, payload);
18702
+ const apiHeaders = {};
18703
+ return this.client.call('get', uri, apiHeaders, payload);
18371
18704
  }
18372
- updateAuthMethod(paramsOrFirst, ...rest) {
18705
+ getUsage(paramsOrFirst) {
18373
18706
  let params;
18374
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
18707
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('range' in paramsOrFirst))) {
18375
18708
  params = (paramsOrFirst || {});
18376
18709
  }
18377
18710
  else {
18378
18711
  params = {
18379
- methodId: paramsOrFirst,
18380
- enabled: rest[0]
18712
+ range: paramsOrFirst
18381
18713
  };
18382
18714
  }
18383
- const methodId = params.methodId;
18384
- const enabled = params.enabled;
18385
- if (typeof methodId === 'undefined') {
18386
- throw new AppwriteException('Missing required parameter: "methodId"');
18715
+ const range = params.range;
18716
+ const apiPath = '/presences/usage';
18717
+ const payload = {};
18718
+ if (typeof range !== 'undefined') {
18719
+ payload['range'] = range;
18387
18720
  }
18388
- if (typeof enabled === 'undefined') {
18389
- throw new AppwriteException('Missing required parameter: "enabled"');
18721
+ const uri = new URL(this.client.config.endpoint + apiPath);
18722
+ const apiHeaders = {};
18723
+ return this.client.call('get', uri, apiHeaders, payload);
18724
+ }
18725
+ get(paramsOrFirst) {
18726
+ let params;
18727
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18728
+ params = (paramsOrFirst || {});
18390
18729
  }
18391
- const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
18730
+ else {
18731
+ params = {
18732
+ presenceId: paramsOrFirst
18733
+ };
18734
+ }
18735
+ const presenceId = params.presenceId;
18736
+ if (typeof presenceId === 'undefined') {
18737
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18738
+ }
18739
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18392
18740
  const payload = {};
18393
- if (typeof enabled !== 'undefined') {
18394
- payload['enabled'] = enabled;
18741
+ const uri = new URL(this.client.config.endpoint + apiPath);
18742
+ const apiHeaders = {};
18743
+ return this.client.call('get', uri, apiHeaders, payload);
18744
+ }
18745
+ upsert(paramsOrFirst, ...rest) {
18746
+ let params;
18747
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18748
+ params = (paramsOrFirst || {});
18749
+ }
18750
+ else {
18751
+ params = {
18752
+ presenceId: paramsOrFirst,
18753
+ status: rest[0],
18754
+ permissions: rest[1],
18755
+ expiresAt: rest[2],
18756
+ metadata: rest[3]
18757
+ };
18758
+ }
18759
+ const presenceId = params.presenceId;
18760
+ const status = params.status;
18761
+ const permissions = params.permissions;
18762
+ const expiresAt = params.expiresAt;
18763
+ const metadata = params.metadata;
18764
+ if (typeof presenceId === 'undefined') {
18765
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18766
+ }
18767
+ if (typeof status === 'undefined') {
18768
+ throw new AppwriteException('Missing required parameter: "status"');
18769
+ }
18770
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18771
+ const payload = {};
18772
+ if (typeof status !== 'undefined') {
18773
+ payload['status'] = status;
18774
+ }
18775
+ if (typeof permissions !== 'undefined') {
18776
+ payload['permissions'] = permissions;
18777
+ }
18778
+ if (typeof expiresAt !== 'undefined') {
18779
+ payload['expiresAt'] = expiresAt;
18780
+ }
18781
+ if (typeof metadata !== 'undefined') {
18782
+ payload['metadata'] = metadata;
18395
18783
  }
18396
18784
  const uri = new URL(this.client.config.endpoint + apiPath);
18397
18785
  const apiHeaders = {
18398
18786
  'content-type': 'application/json',
18399
18787
  };
18400
- return this.client.call('patch', uri, apiHeaders, payload);
18788
+ return this.client.call('put', uri, apiHeaders, payload);
18401
18789
  }
18402
- updateCanonicalEmails(paramsOrFirst) {
18790
+ update(paramsOrFirst, ...rest) {
18403
18791
  let params;
18404
18792
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18405
18793
  params = (paramsOrFirst || {});
18406
18794
  }
18407
18795
  else {
18408
18796
  params = {
18409
- enabled: paramsOrFirst
18797
+ presenceId: paramsOrFirst,
18798
+ status: rest[0],
18799
+ expiresAt: rest[1],
18800
+ metadata: rest[2],
18801
+ permissions: rest[3],
18802
+ purge: rest[4]
18410
18803
  };
18411
18804
  }
18412
- const enabled = params.enabled;
18413
- if (typeof enabled === 'undefined') {
18414
- throw new AppwriteException('Missing required parameter: "enabled"');
18805
+ const presenceId = params.presenceId;
18806
+ const status = params.status;
18807
+ const expiresAt = params.expiresAt;
18808
+ const metadata = params.metadata;
18809
+ const permissions = params.permissions;
18810
+ const purge = params.purge;
18811
+ if (typeof presenceId === 'undefined') {
18812
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18415
18813
  }
18416
- const apiPath = '/project/auth/canonical-emails';
18814
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18417
18815
  const payload = {};
18418
- if (typeof enabled !== 'undefined') {
18419
- payload['enabled'] = enabled;
18816
+ if (typeof status !== 'undefined') {
18817
+ payload['status'] = status;
18818
+ }
18819
+ if (typeof expiresAt !== 'undefined') {
18820
+ payload['expiresAt'] = expiresAt;
18821
+ }
18822
+ if (typeof metadata !== 'undefined') {
18823
+ payload['metadata'] = metadata;
18824
+ }
18825
+ if (typeof permissions !== 'undefined') {
18826
+ payload['permissions'] = permissions;
18827
+ }
18828
+ if (typeof purge !== 'undefined') {
18829
+ payload['purge'] = purge;
18420
18830
  }
18421
18831
  const uri = new URL(this.client.config.endpoint + apiPath);
18422
18832
  const apiHeaders = {
@@ -18424,46 +18834,82 @@ class Project {
18424
18834
  };
18425
18835
  return this.client.call('patch', uri, apiHeaders, payload);
18426
18836
  }
18427
- updateDisposableEmails(paramsOrFirst) {
18837
+ delete(paramsOrFirst) {
18428
18838
  let params;
18429
18839
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18430
18840
  params = (paramsOrFirst || {});
18431
18841
  }
18432
18842
  else {
18433
18843
  params = {
18434
- enabled: paramsOrFirst
18844
+ presenceId: paramsOrFirst
18435
18845
  };
18436
18846
  }
18437
- const enabled = params.enabled;
18438
- if (typeof enabled === 'undefined') {
18439
- throw new AppwriteException('Missing required parameter: "enabled"');
18847
+ const presenceId = params.presenceId;
18848
+ if (typeof presenceId === 'undefined') {
18849
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18440
18850
  }
18441
- const apiPath = '/project/auth/disposable-emails';
18851
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18442
18852
  const payload = {};
18443
- if (typeof enabled !== 'undefined') {
18444
- payload['enabled'] = enabled;
18445
- }
18446
18853
  const uri = new URL(this.client.config.endpoint + apiPath);
18447
18854
  const apiHeaders = {
18448
18855
  'content-type': 'application/json',
18449
18856
  };
18450
- return this.client.call('patch', uri, apiHeaders, payload);
18857
+ return this.client.call('delete', uri, apiHeaders, payload);
18858
+ }
18859
+ }
18860
+
18861
+ class Project {
18862
+ constructor(client) {
18863
+ this.client = client;
18864
+ }
18865
+ /**
18866
+ * Get a project.
18867
+ *
18868
+ * @throws {AppwriteException}
18869
+ * @returns {Promise<Models.Project>}
18870
+ */
18871
+ get() {
18872
+ const apiPath = '/project';
18873
+ const payload = {};
18874
+ const uri = new URL(this.client.config.endpoint + apiPath);
18875
+ const apiHeaders = {};
18876
+ return this.client.call('get', uri, apiHeaders, payload);
18451
18877
  }
18452
- updateFreeEmails(paramsOrFirst) {
18878
+ /**
18879
+ * Delete a project.
18880
+ *
18881
+ * @throws {AppwriteException}
18882
+ * @returns {Promise<{}>}
18883
+ */
18884
+ delete() {
18885
+ const apiPath = '/project';
18886
+ const payload = {};
18887
+ const uri = new URL(this.client.config.endpoint + apiPath);
18888
+ const apiHeaders = {
18889
+ 'content-type': 'application/json',
18890
+ };
18891
+ return this.client.call('delete', uri, apiHeaders, payload);
18892
+ }
18893
+ updateAuthMethod(paramsOrFirst, ...rest) {
18453
18894
  let params;
18454
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18895
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
18455
18896
  params = (paramsOrFirst || {});
18456
18897
  }
18457
18898
  else {
18458
18899
  params = {
18459
- enabled: paramsOrFirst
18900
+ methodId: paramsOrFirst,
18901
+ enabled: rest[0]
18460
18902
  };
18461
18903
  }
18904
+ const methodId = params.methodId;
18462
18905
  const enabled = params.enabled;
18906
+ if (typeof methodId === 'undefined') {
18907
+ throw new AppwriteException('Missing required parameter: "methodId"');
18908
+ }
18463
18909
  if (typeof enabled === 'undefined') {
18464
18910
  throw new AppwriteException('Missing required parameter: "enabled"');
18465
18911
  }
18466
- const apiPath = '/project/auth/free-emails';
18912
+ const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
18467
18913
  const payload = {};
18468
18914
  if (typeof enabled !== 'undefined') {
18469
18915
  payload['enabled'] = enabled;
@@ -19458,11 +19904,13 @@ class Project {
19458
19904
  params = {
19459
19905
  clientId: paramsOrFirst,
19460
19906
  clientSecret: rest[0],
19461
- enabled: rest[1]
19907
+ prompt: rest[1],
19908
+ enabled: rest[2]
19462
19909
  };
19463
19910
  }
19464
19911
  const clientId = params.clientId;
19465
19912
  const clientSecret = params.clientSecret;
19913
+ const prompt = params.prompt;
19466
19914
  const enabled = params.enabled;
19467
19915
  const apiPath = '/project/oauth2/google';
19468
19916
  const payload = {};
@@ -19472,6 +19920,9 @@ class Project {
19472
19920
  if (typeof clientSecret !== 'undefined') {
19473
19921
  payload['clientSecret'] = clientSecret;
19474
19922
  }
19923
+ if (typeof prompt !== 'undefined') {
19924
+ payload['prompt'] = prompt;
19925
+ }
19475
19926
  if (typeof enabled !== 'undefined') {
19476
19927
  payload['enabled'] = enabled;
19477
19928
  }
@@ -20769,6 +21220,81 @@ class Project {
20769
21220
  const apiHeaders = {};
20770
21221
  return this.client.call('get', uri, apiHeaders, payload);
20771
21222
  }
21223
+ updateDenyAliasedEmailPolicy(paramsOrFirst) {
21224
+ let params;
21225
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21226
+ params = (paramsOrFirst || {});
21227
+ }
21228
+ else {
21229
+ params = {
21230
+ enabled: paramsOrFirst
21231
+ };
21232
+ }
21233
+ const enabled = params.enabled;
21234
+ if (typeof enabled === 'undefined') {
21235
+ throw new AppwriteException('Missing required parameter: "enabled"');
21236
+ }
21237
+ const apiPath = '/project/policies/deny-aliased-email';
21238
+ const payload = {};
21239
+ if (typeof enabled !== 'undefined') {
21240
+ payload['enabled'] = enabled;
21241
+ }
21242
+ const uri = new URL(this.client.config.endpoint + apiPath);
21243
+ const apiHeaders = {
21244
+ 'content-type': 'application/json',
21245
+ };
21246
+ return this.client.call('patch', uri, apiHeaders, payload);
21247
+ }
21248
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
21249
+ let params;
21250
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21251
+ params = (paramsOrFirst || {});
21252
+ }
21253
+ else {
21254
+ params = {
21255
+ enabled: paramsOrFirst
21256
+ };
21257
+ }
21258
+ const enabled = params.enabled;
21259
+ if (typeof enabled === 'undefined') {
21260
+ throw new AppwriteException('Missing required parameter: "enabled"');
21261
+ }
21262
+ const apiPath = '/project/policies/deny-disposable-email';
21263
+ const payload = {};
21264
+ if (typeof enabled !== 'undefined') {
21265
+ payload['enabled'] = enabled;
21266
+ }
21267
+ const uri = new URL(this.client.config.endpoint + apiPath);
21268
+ const apiHeaders = {
21269
+ 'content-type': 'application/json',
21270
+ };
21271
+ return this.client.call('patch', uri, apiHeaders, payload);
21272
+ }
21273
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
21274
+ let params;
21275
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21276
+ params = (paramsOrFirst || {});
21277
+ }
21278
+ else {
21279
+ params = {
21280
+ enabled: paramsOrFirst
21281
+ };
21282
+ }
21283
+ const enabled = params.enabled;
21284
+ if (typeof enabled === 'undefined') {
21285
+ throw new AppwriteException('Missing required parameter: "enabled"');
21286
+ }
21287
+ const apiPath = '/project/policies/deny-free-email';
21288
+ const payload = {};
21289
+ if (typeof enabled !== 'undefined') {
21290
+ payload['enabled'] = enabled;
21291
+ }
21292
+ const uri = new URL(this.client.config.endpoint + apiPath);
21293
+ const apiHeaders = {
21294
+ 'content-type': 'application/json',
21295
+ };
21296
+ return this.client.call('patch', uri, apiHeaders, payload);
21297
+ }
20772
21298
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
20773
21299
  let params;
20774
21300
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21485,222 +22011,6 @@ class Projects {
21485
22011
  constructor(client) {
21486
22012
  this.client = client;
21487
22013
  }
21488
- list(paramsOrFirst, ...rest) {
21489
- let params;
21490
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21491
- params = (paramsOrFirst || {});
21492
- }
21493
- else {
21494
- params = {
21495
- queries: paramsOrFirst,
21496
- search: rest[0],
21497
- total: rest[1]
21498
- };
21499
- }
21500
- const queries = params.queries;
21501
- const search = params.search;
21502
- const total = params.total;
21503
- const apiPath = '/projects';
21504
- const payload = {};
21505
- if (typeof queries !== 'undefined') {
21506
- payload['queries'] = queries;
21507
- }
21508
- if (typeof search !== 'undefined') {
21509
- payload['search'] = search;
21510
- }
21511
- if (typeof total !== 'undefined') {
21512
- payload['total'] = total;
21513
- }
21514
- const uri = new URL(this.client.config.endpoint + apiPath);
21515
- const apiHeaders = {};
21516
- return this.client.call('get', uri, apiHeaders, payload);
21517
- }
21518
- create(paramsOrFirst, ...rest) {
21519
- let params;
21520
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21521
- params = (paramsOrFirst || {});
21522
- }
21523
- else {
21524
- params = {
21525
- projectId: paramsOrFirst,
21526
- name: rest[0],
21527
- teamId: rest[1],
21528
- region: rest[2],
21529
- description: rest[3],
21530
- logo: rest[4],
21531
- url: rest[5],
21532
- legalName: rest[6],
21533
- legalCountry: rest[7],
21534
- legalState: rest[8],
21535
- legalCity: rest[9],
21536
- legalAddress: rest[10],
21537
- legalTaxId: rest[11]
21538
- };
21539
- }
21540
- const projectId = params.projectId;
21541
- const name = params.name;
21542
- const teamId = params.teamId;
21543
- const region = params.region;
21544
- const description = params.description;
21545
- const logo = params.logo;
21546
- const url = params.url;
21547
- const legalName = params.legalName;
21548
- const legalCountry = params.legalCountry;
21549
- const legalState = params.legalState;
21550
- const legalCity = params.legalCity;
21551
- const legalAddress = params.legalAddress;
21552
- const legalTaxId = params.legalTaxId;
21553
- if (typeof projectId === 'undefined') {
21554
- throw new AppwriteException('Missing required parameter: "projectId"');
21555
- }
21556
- if (typeof name === 'undefined') {
21557
- throw new AppwriteException('Missing required parameter: "name"');
21558
- }
21559
- if (typeof teamId === 'undefined') {
21560
- throw new AppwriteException('Missing required parameter: "teamId"');
21561
- }
21562
- const apiPath = '/projects';
21563
- const payload = {};
21564
- if (typeof projectId !== 'undefined') {
21565
- payload['projectId'] = projectId;
21566
- }
21567
- if (typeof name !== 'undefined') {
21568
- payload['name'] = name;
21569
- }
21570
- if (typeof teamId !== 'undefined') {
21571
- payload['teamId'] = teamId;
21572
- }
21573
- if (typeof region !== 'undefined') {
21574
- payload['region'] = region;
21575
- }
21576
- if (typeof description !== 'undefined') {
21577
- payload['description'] = description;
21578
- }
21579
- if (typeof logo !== 'undefined') {
21580
- payload['logo'] = logo;
21581
- }
21582
- if (typeof url !== 'undefined') {
21583
- payload['url'] = url;
21584
- }
21585
- if (typeof legalName !== 'undefined') {
21586
- payload['legalName'] = legalName;
21587
- }
21588
- if (typeof legalCountry !== 'undefined') {
21589
- payload['legalCountry'] = legalCountry;
21590
- }
21591
- if (typeof legalState !== 'undefined') {
21592
- payload['legalState'] = legalState;
21593
- }
21594
- if (typeof legalCity !== 'undefined') {
21595
- payload['legalCity'] = legalCity;
21596
- }
21597
- if (typeof legalAddress !== 'undefined') {
21598
- payload['legalAddress'] = legalAddress;
21599
- }
21600
- if (typeof legalTaxId !== 'undefined') {
21601
- payload['legalTaxId'] = legalTaxId;
21602
- }
21603
- const uri = new URL(this.client.config.endpoint + apiPath);
21604
- const apiHeaders = {
21605
- 'content-type': 'application/json',
21606
- };
21607
- return this.client.call('post', uri, apiHeaders, payload);
21608
- }
21609
- get(paramsOrFirst) {
21610
- let params;
21611
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21612
- params = (paramsOrFirst || {});
21613
- }
21614
- else {
21615
- params = {
21616
- projectId: paramsOrFirst
21617
- };
21618
- }
21619
- const projectId = params.projectId;
21620
- if (typeof projectId === 'undefined') {
21621
- throw new AppwriteException('Missing required parameter: "projectId"');
21622
- }
21623
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21624
- const payload = {};
21625
- const uri = new URL(this.client.config.endpoint + apiPath);
21626
- const apiHeaders = {};
21627
- return this.client.call('get', uri, apiHeaders, payload);
21628
- }
21629
- update(paramsOrFirst, ...rest) {
21630
- let params;
21631
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21632
- params = (paramsOrFirst || {});
21633
- }
21634
- else {
21635
- params = {
21636
- projectId: paramsOrFirst,
21637
- name: rest[0],
21638
- description: rest[1],
21639
- logo: rest[2],
21640
- url: rest[3],
21641
- legalName: rest[4],
21642
- legalCountry: rest[5],
21643
- legalState: rest[6],
21644
- legalCity: rest[7],
21645
- legalAddress: rest[8],
21646
- legalTaxId: rest[9]
21647
- };
21648
- }
21649
- const projectId = params.projectId;
21650
- const name = params.name;
21651
- const description = params.description;
21652
- const logo = params.logo;
21653
- const url = params.url;
21654
- const legalName = params.legalName;
21655
- const legalCountry = params.legalCountry;
21656
- const legalState = params.legalState;
21657
- const legalCity = params.legalCity;
21658
- const legalAddress = params.legalAddress;
21659
- const legalTaxId = params.legalTaxId;
21660
- if (typeof projectId === 'undefined') {
21661
- throw new AppwriteException('Missing required parameter: "projectId"');
21662
- }
21663
- if (typeof name === 'undefined') {
21664
- throw new AppwriteException('Missing required parameter: "name"');
21665
- }
21666
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21667
- const payload = {};
21668
- if (typeof name !== 'undefined') {
21669
- payload['name'] = name;
21670
- }
21671
- if (typeof description !== 'undefined') {
21672
- payload['description'] = description;
21673
- }
21674
- if (typeof logo !== 'undefined') {
21675
- payload['logo'] = logo;
21676
- }
21677
- if (typeof url !== 'undefined') {
21678
- payload['url'] = url;
21679
- }
21680
- if (typeof legalName !== 'undefined') {
21681
- payload['legalName'] = legalName;
21682
- }
21683
- if (typeof legalCountry !== 'undefined') {
21684
- payload['legalCountry'] = legalCountry;
21685
- }
21686
- if (typeof legalState !== 'undefined') {
21687
- payload['legalState'] = legalState;
21688
- }
21689
- if (typeof legalCity !== 'undefined') {
21690
- payload['legalCity'] = legalCity;
21691
- }
21692
- if (typeof legalAddress !== 'undefined') {
21693
- payload['legalAddress'] = legalAddress;
21694
- }
21695
- if (typeof legalTaxId !== 'undefined') {
21696
- payload['legalTaxId'] = legalTaxId;
21697
- }
21698
- const uri = new URL(this.client.config.endpoint + apiPath);
21699
- const apiHeaders = {
21700
- 'content-type': 'application/json',
21701
- };
21702
- return this.client.call('patch', uri, apiHeaders, payload);
21703
- }
21704
22014
  updateConsoleAccess(paramsOrFirst) {
21705
22015
  let params;
21706
22016
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22366,9 +22676,11 @@ class Sites {
22366
22676
  providerBranch: rest[14],
22367
22677
  providerSilentMode: rest[15],
22368
22678
  providerRootDirectory: rest[16],
22369
- buildSpecification: rest[17],
22370
- runtimeSpecification: rest[18],
22371
- deploymentRetention: rest[19]
22679
+ providerBranches: rest[17],
22680
+ providerPaths: rest[18],
22681
+ buildSpecification: rest[19],
22682
+ runtimeSpecification: rest[20],
22683
+ deploymentRetention: rest[21]
22372
22684
  };
22373
22685
  }
22374
22686
  const siteId = params.siteId;
@@ -22389,6 +22701,8 @@ class Sites {
22389
22701
  const providerBranch = params.providerBranch;
22390
22702
  const providerSilentMode = params.providerSilentMode;
22391
22703
  const providerRootDirectory = params.providerRootDirectory;
22704
+ const providerBranches = params.providerBranches;
22705
+ const providerPaths = params.providerPaths;
22392
22706
  const buildSpecification = params.buildSpecification;
22393
22707
  const runtimeSpecification = params.runtimeSpecification;
22394
22708
  const deploymentRetention = params.deploymentRetention;
@@ -22460,6 +22774,12 @@ class Sites {
22460
22774
  if (typeof providerRootDirectory !== 'undefined') {
22461
22775
  payload['providerRootDirectory'] = providerRootDirectory;
22462
22776
  }
22777
+ if (typeof providerBranches !== 'undefined') {
22778
+ payload['providerBranches'] = providerBranches;
22779
+ }
22780
+ if (typeof providerPaths !== 'undefined') {
22781
+ payload['providerPaths'] = providerPaths;
22782
+ }
22463
22783
  if (typeof buildSpecification !== 'undefined') {
22464
22784
  payload['buildSpecification'] = buildSpecification;
22465
22785
  }
@@ -22621,9 +22941,11 @@ class Sites {
22621
22941
  providerBranch: rest[14],
22622
22942
  providerSilentMode: rest[15],
22623
22943
  providerRootDirectory: rest[16],
22624
- buildSpecification: rest[17],
22625
- runtimeSpecification: rest[18],
22626
- deploymentRetention: rest[19]
22944
+ providerBranches: rest[17],
22945
+ providerPaths: rest[18],
22946
+ buildSpecification: rest[19],
22947
+ runtimeSpecification: rest[20],
22948
+ deploymentRetention: rest[21]
22627
22949
  };
22628
22950
  }
22629
22951
  const siteId = params.siteId;
@@ -22644,6 +22966,8 @@ class Sites {
22644
22966
  const providerBranch = params.providerBranch;
22645
22967
  const providerSilentMode = params.providerSilentMode;
22646
22968
  const providerRootDirectory = params.providerRootDirectory;
22969
+ const providerBranches = params.providerBranches;
22970
+ const providerPaths = params.providerPaths;
22647
22971
  const buildSpecification = params.buildSpecification;
22648
22972
  const runtimeSpecification = params.runtimeSpecification;
22649
22973
  const deploymentRetention = params.deploymentRetention;
@@ -22709,6 +23033,12 @@ class Sites {
22709
23033
  if (typeof providerRootDirectory !== 'undefined') {
22710
23034
  payload['providerRootDirectory'] = providerRootDirectory;
22711
23035
  }
23036
+ if (typeof providerBranches !== 'undefined') {
23037
+ payload['providerBranches'] = providerBranches;
23038
+ }
23039
+ if (typeof providerPaths !== 'undefined') {
23040
+ payload['providerPaths'] = providerPaths;
23041
+ }
22712
23042
  if (typeof buildSpecification !== 'undefined') {
22713
23043
  payload['buildSpecification'] = buildSpecification;
22714
23044
  }
@@ -28018,6 +28348,62 @@ class Tokens {
28018
28348
  }
28019
28349
  }
28020
28350
 
28351
+ class Usage {
28352
+ constructor(client) {
28353
+ this.client = client;
28354
+ }
28355
+ listEvents(paramsOrFirst, ...rest) {
28356
+ let params;
28357
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28358
+ params = (paramsOrFirst || {});
28359
+ }
28360
+ else {
28361
+ params = {
28362
+ queries: paramsOrFirst,
28363
+ total: rest[0]
28364
+ };
28365
+ }
28366
+ const queries = params.queries;
28367
+ const total = params.total;
28368
+ const apiPath = '/usage/events';
28369
+ const payload = {};
28370
+ if (typeof queries !== 'undefined') {
28371
+ payload['queries'] = queries;
28372
+ }
28373
+ if (typeof total !== 'undefined') {
28374
+ payload['total'] = total;
28375
+ }
28376
+ const uri = new URL(this.client.config.endpoint + apiPath);
28377
+ const apiHeaders = {};
28378
+ return this.client.call('get', uri, apiHeaders, payload);
28379
+ }
28380
+ listGauges(paramsOrFirst, ...rest) {
28381
+ let params;
28382
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28383
+ params = (paramsOrFirst || {});
28384
+ }
28385
+ else {
28386
+ params = {
28387
+ queries: paramsOrFirst,
28388
+ total: rest[0]
28389
+ };
28390
+ }
28391
+ const queries = params.queries;
28392
+ const total = params.total;
28393
+ const apiPath = '/usage/gauges';
28394
+ const payload = {};
28395
+ if (typeof queries !== 'undefined') {
28396
+ payload['queries'] = queries;
28397
+ }
28398
+ if (typeof total !== 'undefined') {
28399
+ payload['total'] = total;
28400
+ }
28401
+ const uri = new URL(this.client.config.endpoint + apiPath);
28402
+ const apiHeaders = {};
28403
+ return this.client.call('get', uri, apiHeaders, payload);
28404
+ }
28405
+ }
28406
+
28021
28407
  class Users {
28022
28408
  constructor(client) {
28023
28409
  this.client = client;
@@ -29950,21 +30336,16 @@ class VectorsDB {
29950
30336
  else {
29951
30337
  params = {
29952
30338
  queries: paramsOrFirst,
29953
- search: rest[0],
29954
- total: rest[1]
30339
+ total: rest[0]
29955
30340
  };
29956
30341
  }
29957
30342
  const queries = params.queries;
29958
- const search = params.search;
29959
30343
  const total = params.total;
29960
30344
  const apiPath = '/vectorsdb';
29961
30345
  const payload = {};
29962
30346
  if (typeof queries !== 'undefined') {
29963
30347
  payload['queries'] = queries;
29964
30348
  }
29965
- if (typeof search !== 'undefined') {
29966
- payload['search'] = search;
29967
- }
29968
30349
  if (typeof total !== 'undefined') {
29969
30350
  payload['total'] = total;
29970
30351
  }
@@ -31368,11 +31749,11 @@ class Realtime {
31368
31749
  this.TYPE_EVENT = 'event';
31369
31750
  this.TYPE_PONG = 'pong';
31370
31751
  this.TYPE_CONNECTED = 'connected';
31371
- this.TYPE_RESPONSE = 'response';
31372
31752
  this.DEBOUNCE_MS = 1;
31373
31753
  this.HEARTBEAT_INTERVAL = 20000; // 20 seconds in milliseconds
31374
31754
  this.activeSubscriptions = new Map();
31375
31755
  this.pendingSubscribes = new Map();
31756
+ this.appConnected = false;
31376
31757
  this.subCallDepth = 0;
31377
31758
  this.reconnectAttempts = 0;
31378
31759
  this.connectionId = 0;
@@ -31423,9 +31804,35 @@ class Realtime {
31423
31804
  this.heartbeatTimer = undefined;
31424
31805
  }
31425
31806
  }
31807
+ /**
31808
+ * Idempotent socket opener. Both `subscribe()` and `upsertPresence()` can
31809
+ * call this; the single-flight lock (`socketCreationPromise`) guarantees
31810
+ * only one `new WebSocket(...)` is ever in flight, so concurrent callers
31811
+ * join the same connection attempt instead of opening duplicates.
31812
+ *
31813
+ * Returns early when a healthy socket is already present.
31814
+ */
31426
31815
  createSocket() {
31427
31816
  return __awaiter(this, void 0, void 0, function* () {
31428
- if (this.activeSubscriptions.size === 0) {
31817
+ // Fast path: a usable socket is already there. No need to open another.
31818
+ if (this.socket && this.socket.readyState < WebSocket.CLOSING) {
31819
+ return;
31820
+ }
31821
+ // Another caller is already opening one — join it.
31822
+ if (this.socketCreationPromise) {
31823
+ return this.socketCreationPromise;
31824
+ }
31825
+ this.socketCreationPromise = this.createSocketLocked().finally(() => {
31826
+ this.socketCreationPromise = undefined;
31827
+ });
31828
+ return this.socketCreationPromise;
31829
+ });
31830
+ }
31831
+ createSocketLocked() {
31832
+ return __awaiter(this, void 0, void 0, function* () {
31833
+ // Nothing to do if there's neither a subscription nor a queued presence
31834
+ // that needs the wire. (Reconnect cleanup path also flows through here.)
31835
+ if (this.activeSubscriptions.size === 0 && !this.pendingPresence) {
31429
31836
  this.reconnect = false;
31430
31837
  yield this.closeSocket();
31431
31838
  return;
@@ -31452,6 +31859,15 @@ class Realtime {
31452
31859
  this.reconnect = true;
31453
31860
  }
31454
31861
  return new Promise((resolve, reject) => {
31862
+ // Re-check the entry guard synchronously. `disconnect()` may have
31863
+ // run during the `await this.closeSocket()` above (or any other
31864
+ // await between the original guard and here), clearing every
31865
+ // subscription and the pending presence. In that case opening a
31866
+ // fresh socket would leak a connection with nothing attached.
31867
+ if (this.activeSubscriptions.size === 0 && !this.pendingPresence) {
31868
+ resolve();
31869
+ return;
31870
+ }
31455
31871
  try {
31456
31872
  const connectionId = ++this.connectionId;
31457
31873
  const socket = (this.socket = new WebSocket(url));
@@ -31480,6 +31896,7 @@ class Realtime {
31480
31896
  if (connectionId !== this.connectionId || socket !== this.socket) {
31481
31897
  return;
31482
31898
  }
31899
+ this.appConnected = false;
31483
31900
  this.stopHeartbeat();
31484
31901
  this.onCloseCallbacks.forEach(callback => callback());
31485
31902
  if (!this.reconnect || event.code === RealtimeCode.POLICY_VIOLATION) {
@@ -31597,7 +32014,19 @@ class Realtime {
31597
32014
  return __awaiter(this, void 0, void 0, function* () {
31598
32015
  this.activeSubscriptions.clear();
31599
32016
  this.pendingSubscribes.clear();
32017
+ this.pendingPresence = undefined;
32018
+ this.appConnected = false;
31600
32019
  this.reconnect = false;
32020
+ // Drop the in-flight single-flight slot. Promises can't be cancelled,
32021
+ // so the underlying createSocketLocked() promise may stay pending
32022
+ // forever — e.g. when closeSocket() below tears down a CONNECTING
32023
+ // socket, the `close` event fires but `open`/`error` never do, and
32024
+ // the inner `new Promise(...)` only resolves on those. Without this
32025
+ // line, the next subscribe()/upsertPresence() would join the orphan
32026
+ // promise via the single-flight gate and hang, leaving its pending
32027
+ // subscription queued with no socket ever opened. Mirrors the Swift
32028
+ // template's socketCreationTask cancel in disconnect().
32029
+ this.socketCreationPromise = undefined;
31601
32030
  yield this.closeSocket();
31602
32031
  });
31603
32032
  }
@@ -31605,6 +32034,18 @@ class Realtime {
31605
32034
  if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
31606
32035
  return;
31607
32036
  }
32037
+ // The WebSocket 'open' event fires when the TCP/upgrade handshake
32038
+ // completes — but the server only accepts `subscribe` frames after
32039
+ // it has emitted its own application-level `connected` event (which
32040
+ // flips `appConnected` to true in handleResponseConnected). Sending
32041
+ // before then triggers a policy-violation close on real Appwrite,
32042
+ // which reconnects, which sends early again — i.e. a duplicate-
32043
+ // socket loop. handleResponseConnected re-enqueues every active
32044
+ // subscription and calls this method again once it's safe, so the
32045
+ // queued rows are guaranteed to be sent.
32046
+ if (!this.appConnected) {
32047
+ return;
32048
+ }
31608
32049
  if (this.pendingSubscribes.size < 1) {
31609
32050
  return;
31610
32051
  }
@@ -31734,6 +32175,63 @@ class Realtime {
31734
32175
  return { unsubscribe, update, close };
31735
32176
  });
31736
32177
  }
32178
+ /**
32179
+ * Fire-and-forget presence upsert. Records the latest payload in state so
32180
+ * that — if the WebSocket isn't open yet, or later reconnects — only the
32181
+ * most recent presence is automatically (re)sent on the next `connected`
32182
+ * event. Repeated calls while the socket is closed collapse to the latest
32183
+ * payload (older ones are discarded).
32184
+ *
32185
+ * Returns a `Promise<void>` for API consistency; the promise resolves as
32186
+ * soon as the payload has been stored and the opportunistic send attempted.
32187
+ *
32188
+ * @param {RealtimePresenceCreate} params - Presence payload (status and presenceId required, permissions/metadata optional)
32189
+ */
32190
+ upsertPresence(params) {
32191
+ return __awaiter(this, void 0, void 0, function* () {
32192
+ const data = {
32193
+ status: params.status,
32194
+ presenceId: params.presenceId,
32195
+ };
32196
+ if (params.permissions !== undefined) {
32197
+ data.permissions = params.permissions;
32198
+ }
32199
+ if (params.metadata !== undefined) {
32200
+ data.metadata = params.metadata;
32201
+ }
32202
+ this.pendingPresence = data;
32203
+ // Both subscribe() and upsertPresence() may need to open the socket.
32204
+ // createSocket() is single-flight (see `socketCreationPromise`), so
32205
+ // calling it here is a no-op when a connection is already in flight or
32206
+ // healthy. Fire-and-forget keeps the documented fire-and-forget shape
32207
+ // of upsertPresence: the returned Promise resolves as soon as the
32208
+ // payload is stored.
32209
+ if (!this.socket || this.socket.readyState >= WebSocket.CLOSING) {
32210
+ this.createSocket().catch((error) => {
32211
+ console.error('Failed to open realtime socket for presence:', error);
32212
+ });
32213
+ }
32214
+ // Opportunistic send for the case where the socket is already past the
32215
+ // `connected` handshake. The gate inside flushPendingPresence keeps
32216
+ // this a no-op until appConnected flips to true.
32217
+ this.flushPendingPresence();
32218
+ });
32219
+ }
32220
+ flushPendingPresence() {
32221
+ if (!this.pendingPresence) {
32222
+ return;
32223
+ }
32224
+ if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
32225
+ return;
32226
+ }
32227
+ if (!this.appConnected) {
32228
+ return;
32229
+ }
32230
+ this.socket.send(JSONbig.stringify({
32231
+ type: 'presence',
32232
+ data: this.pendingPresence
32233
+ }));
32234
+ }
31737
32235
  handleMessage(message) {
31738
32236
  if (!message.type) {
31739
32237
  return;
@@ -31751,9 +32249,6 @@ class Realtime {
31751
32249
  case this.TYPE_PONG:
31752
32250
  // Handle pong response if needed
31753
32251
  break;
31754
- case this.TYPE_RESPONSE:
31755
- this.handleResponseAction(message);
31756
- break;
31757
32252
  }
31758
32253
  }
31759
32254
  handleResponseConnected(message) {
@@ -31783,7 +32278,9 @@ class Realtime {
31783
32278
  for (const subscriptionId of this.activeSubscriptions.keys()) {
31784
32279
  this.enqueuePendingSubscribe(subscriptionId);
31785
32280
  }
32281
+ this.appConnected = true;
31786
32282
  this.sendPendingSubscribes();
32283
+ this.flushPendingPresence();
31787
32284
  }
31788
32285
  handleResponseError(message) {
31789
32286
  var _a, _b;
@@ -31818,11 +32315,6 @@ class Realtime {
31818
32315
  });
31819
32316
  }
31820
32317
  }
31821
- handleResponseAction(_message) {
31822
- // The SDK generates subscriptionIds client-side and sends them on every
31823
- // subscribe/unsubscribe, so subscribe/unsubscribe acks carry no state
31824
- // the SDK needs to reconcile.
31825
- }
31826
32318
  }
31827
32319
 
31828
32320
  /**
@@ -32058,6 +32550,9 @@ class Channel {
32058
32550
  static membership(id) {
32059
32551
  return new Channel(["memberships", normalize(id)]);
32060
32552
  }
32553
+ static presence(id) {
32554
+ return new Channel(["presences", normalize(id)]);
32555
+ }
32061
32556
  static account() {
32062
32557
  return "account";
32063
32558
  }
@@ -32080,6 +32575,9 @@ class Channel {
32080
32575
  static memberships() {
32081
32576
  return "memberships";
32082
32577
  }
32578
+ static presences() {
32579
+ return "presences";
32580
+ }
32083
32581
  }
32084
32582
 
32085
32583
  var Condition;
@@ -32347,101 +32845,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
32347
32845
  */
32348
32846
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
32349
32847
 
32350
- var Scopes;
32351
- (function (Scopes) {
32352
- Scopes["Account"] = "account";
32353
- Scopes["TeamsRead"] = "teams.read";
32354
- Scopes["TeamsWrite"] = "teams.write";
32355
- Scopes["ProjectRead"] = "project.read";
32356
- Scopes["ProjectWrite"] = "project.write";
32357
- Scopes["KeysRead"] = "keys.read";
32358
- Scopes["KeysWrite"] = "keys.write";
32359
- Scopes["PlatformsRead"] = "platforms.read";
32360
- Scopes["PlatformsWrite"] = "platforms.write";
32361
- Scopes["MocksRead"] = "mocks.read";
32362
- Scopes["MocksWrite"] = "mocks.write";
32363
- Scopes["PoliciesRead"] = "policies.read";
32364
- Scopes["PoliciesWrite"] = "policies.write";
32365
- Scopes["ProjectPoliciesRead"] = "project.policies.read";
32366
- Scopes["ProjectPoliciesWrite"] = "project.policies.write";
32367
- Scopes["TemplatesRead"] = "templates.read";
32368
- Scopes["TemplatesWrite"] = "templates.write";
32369
- Scopes["Oauth2Read"] = "oauth2.read";
32370
- Scopes["Oauth2Write"] = "oauth2.write";
32371
- Scopes["UsersRead"] = "users.read";
32372
- Scopes["UsersWrite"] = "users.write";
32373
- Scopes["SessionsRead"] = "sessions.read";
32374
- Scopes["SessionsWrite"] = "sessions.write";
32375
- Scopes["DatabasesRead"] = "databases.read";
32376
- Scopes["DatabasesWrite"] = "databases.write";
32377
- Scopes["TablesRead"] = "tables.read";
32378
- Scopes["TablesWrite"] = "tables.write";
32379
- Scopes["ColumnsRead"] = "columns.read";
32380
- Scopes["ColumnsWrite"] = "columns.write";
32381
- Scopes["IndexesRead"] = "indexes.read";
32382
- Scopes["IndexesWrite"] = "indexes.write";
32383
- Scopes["RowsRead"] = "rows.read";
32384
- Scopes["RowsWrite"] = "rows.write";
32385
- Scopes["CollectionsRead"] = "collections.read";
32386
- Scopes["CollectionsWrite"] = "collections.write";
32387
- Scopes["AttributesRead"] = "attributes.read";
32388
- Scopes["AttributesWrite"] = "attributes.write";
32389
- Scopes["DocumentsRead"] = "documents.read";
32390
- Scopes["DocumentsWrite"] = "documents.write";
32391
- Scopes["BucketsRead"] = "buckets.read";
32392
- Scopes["BucketsWrite"] = "buckets.write";
32393
- Scopes["FilesRead"] = "files.read";
32394
- Scopes["FilesWrite"] = "files.write";
32395
- Scopes["TokensRead"] = "tokens.read";
32396
- Scopes["TokensWrite"] = "tokens.write";
32397
- Scopes["FunctionsRead"] = "functions.read";
32398
- Scopes["FunctionsWrite"] = "functions.write";
32399
- Scopes["ExecutionsRead"] = "executions.read";
32400
- Scopes["ExecutionsWrite"] = "executions.write";
32401
- Scopes["ExecutionRead"] = "execution.read";
32402
- Scopes["ExecutionWrite"] = "execution.write";
32403
- Scopes["SitesRead"] = "sites.read";
32404
- Scopes["SitesWrite"] = "sites.write";
32405
- Scopes["LogRead"] = "log.read";
32406
- Scopes["LogWrite"] = "log.write";
32407
- Scopes["ProvidersRead"] = "providers.read";
32408
- Scopes["ProvidersWrite"] = "providers.write";
32409
- Scopes["TopicsRead"] = "topics.read";
32410
- Scopes["TopicsWrite"] = "topics.write";
32411
- Scopes["SubscribersRead"] = "subscribers.read";
32412
- Scopes["SubscribersWrite"] = "subscribers.write";
32413
- Scopes["TargetsRead"] = "targets.read";
32414
- Scopes["TargetsWrite"] = "targets.write";
32415
- Scopes["MessagesRead"] = "messages.read";
32416
- Scopes["MessagesWrite"] = "messages.write";
32417
- Scopes["RulesRead"] = "rules.read";
32418
- Scopes["RulesWrite"] = "rules.write";
32419
- Scopes["WebhooksRead"] = "webhooks.read";
32420
- Scopes["WebhooksWrite"] = "webhooks.write";
32421
- Scopes["LocaleRead"] = "locale.read";
32422
- Scopes["AvatarsRead"] = "avatars.read";
32423
- Scopes["HealthRead"] = "health.read";
32424
- Scopes["AssistantRead"] = "assistant.read";
32425
- Scopes["MigrationsRead"] = "migrations.read";
32426
- Scopes["MigrationsWrite"] = "migrations.write";
32427
- Scopes["SchedulesRead"] = "schedules.read";
32428
- Scopes["SchedulesWrite"] = "schedules.write";
32429
- Scopes["VcsRead"] = "vcs.read";
32430
- Scopes["VcsWrite"] = "vcs.write";
32431
- Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32432
- Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32433
- Scopes["ArchivesRead"] = "archives.read";
32434
- Scopes["ArchivesWrite"] = "archives.write";
32435
- Scopes["RestorationsRead"] = "restorations.read";
32436
- Scopes["RestorationsWrite"] = "restorations.write";
32437
- Scopes["DomainsRead"] = "domains.read";
32438
- Scopes["DomainsWrite"] = "domains.write";
32439
- Scopes["EventsRead"] = "events.read";
32440
- Scopes["ProjectsRead"] = "projects.read";
32441
- Scopes["ProjectsWrite"] = "projects.write";
32442
- Scopes["DevKeysRead"] = "devKeys.read";
32443
- Scopes["DevKeysWrite"] = "devKeys.write";
32444
- })(Scopes || (Scopes = {}));
32848
+ var AccountKeyScopes;
32849
+ (function (AccountKeyScopes) {
32850
+ AccountKeyScopes["Account"] = "account";
32851
+ AccountKeyScopes["TeamsRead"] = "teams.read";
32852
+ AccountKeyScopes["TeamsWrite"] = "teams.write";
32853
+ })(AccountKeyScopes || (AccountKeyScopes = {}));
32445
32854
 
32446
32855
  var AuthenticatorType;
32447
32856
  (function (AuthenticatorType) {
@@ -32501,8 +32910,6 @@ var OAuthProvider;
32501
32910
  OAuthProvider["Yandex"] = "yandex";
32502
32911
  OAuthProvider["Zoho"] = "zoho";
32503
32912
  OAuthProvider["Zoom"] = "zoom";
32504
- OAuthProvider["GithubImagine"] = "githubImagine";
32505
- OAuthProvider["GoogleImagine"] = "googleImagine";
32506
32913
  })(OAuthProvider || (OAuthProvider = {}));
32507
32914
 
32508
32915
  var Browser;
@@ -32743,11 +33150,11 @@ var Flag;
32743
33150
  Flag["Zimbabwe"] = "zw";
32744
33151
  })(Flag || (Flag = {}));
32745
33152
 
32746
- var Theme;
32747
- (function (Theme) {
32748
- Theme["Light"] = "light";
32749
- Theme["Dark"] = "dark";
32750
- })(Theme || (Theme = {}));
33153
+ var BrowserTheme;
33154
+ (function (BrowserTheme) {
33155
+ BrowserTheme["Light"] = "light";
33156
+ BrowserTheme["Dark"] = "dark";
33157
+ })(BrowserTheme || (BrowserTheme = {}));
32751
33158
 
32752
33159
  var Timezone;
32753
33160
  (function (Timezone) {
@@ -33213,6 +33620,7 @@ var BackupServices;
33213
33620
  BackupServices["Tablesdb"] = "tablesdb";
33214
33621
  BackupServices["Documentsdb"] = "documentsdb";
33215
33622
  BackupServices["Vectorsdb"] = "vectorsdb";
33623
+ BackupServices["DedicatedDatabases"] = "dedicatedDatabases";
33216
33624
  BackupServices["Functions"] = "functions";
33217
33625
  BackupServices["Storage"] = "storage";
33218
33626
  })(BackupServices || (BackupServices = {}));
@@ -33258,6 +33666,8 @@ var QuerySuggestionResource;
33258
33666
  QuerySuggestionResource["Repositories"] = "repositories";
33259
33667
  QuerySuggestionResource["VcsComments"] = "vcscomments";
33260
33668
  QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
33669
+ QuerySuggestionResource["Reports"] = "reports";
33670
+ QuerySuggestionResource["Insights"] = "insights";
33261
33671
  QuerySuggestionResource["Users"] = "users";
33262
33672
  QuerySuggestionResource["Cache"] = "cache";
33263
33673
  QuerySuggestionResource["Tokens"] = "tokens";
@@ -33272,6 +33682,7 @@ var QuerySuggestionResource;
33272
33682
  QuerySuggestionResource["Topics"] = "topics";
33273
33683
  QuerySuggestionResource["Subscribers"] = "subscribers";
33274
33684
  QuerySuggestionResource["Targets"] = "targets";
33685
+ QuerySuggestionResource["PresenceLogs"] = "presencelogs";
33275
33686
  QuerySuggestionResource["Companies"] = "companies";
33276
33687
  QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
33277
33688
  QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
@@ -33302,8 +33713,160 @@ var QuerySuggestionResource;
33302
33713
  QuerySuggestionResource["Transactions"] = "transactions";
33303
33714
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
33304
33715
  QuerySuggestionResource["Stats"] = "stats";
33716
+ QuerySuggestionResource["DedicatedDatabases"] = "dedicateddatabases";
33717
+ QuerySuggestionResource["DedicatedDatabaseConfigs"] = "dedicateddatabaseconfigs";
33718
+ QuerySuggestionResource["DedicatedDatabaseRuntimes"] = "dedicateddatabaseruntimes";
33719
+ QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
33720
+ QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
33721
+ QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
33305
33722
  })(QuerySuggestionResource || (QuerySuggestionResource = {}));
33306
33723
 
33724
+ var ProjectEmailTemplateId;
33725
+ (function (ProjectEmailTemplateId) {
33726
+ ProjectEmailTemplateId["Verification"] = "verification";
33727
+ ProjectEmailTemplateId["MagicSession"] = "magicSession";
33728
+ ProjectEmailTemplateId["Recovery"] = "recovery";
33729
+ ProjectEmailTemplateId["Invitation"] = "invitation";
33730
+ ProjectEmailTemplateId["MfaChallenge"] = "mfaChallenge";
33731
+ ProjectEmailTemplateId["SessionAlert"] = "sessionAlert";
33732
+ ProjectEmailTemplateId["OtpSession"] = "otpSession";
33733
+ })(ProjectEmailTemplateId || (ProjectEmailTemplateId = {}));
33734
+
33735
+ var ProjectEmailTemplateLocale;
33736
+ (function (ProjectEmailTemplateLocale) {
33737
+ ProjectEmailTemplateLocale["Af"] = "af";
33738
+ ProjectEmailTemplateLocale["Arae"] = "ar-ae";
33739
+ ProjectEmailTemplateLocale["Arbh"] = "ar-bh";
33740
+ ProjectEmailTemplateLocale["Ardz"] = "ar-dz";
33741
+ ProjectEmailTemplateLocale["Areg"] = "ar-eg";
33742
+ ProjectEmailTemplateLocale["Ariq"] = "ar-iq";
33743
+ ProjectEmailTemplateLocale["Arjo"] = "ar-jo";
33744
+ ProjectEmailTemplateLocale["Arkw"] = "ar-kw";
33745
+ ProjectEmailTemplateLocale["Arlb"] = "ar-lb";
33746
+ ProjectEmailTemplateLocale["Arly"] = "ar-ly";
33747
+ ProjectEmailTemplateLocale["Arma"] = "ar-ma";
33748
+ ProjectEmailTemplateLocale["Arom"] = "ar-om";
33749
+ ProjectEmailTemplateLocale["Arqa"] = "ar-qa";
33750
+ ProjectEmailTemplateLocale["Arsa"] = "ar-sa";
33751
+ ProjectEmailTemplateLocale["Arsy"] = "ar-sy";
33752
+ ProjectEmailTemplateLocale["Artn"] = "ar-tn";
33753
+ ProjectEmailTemplateLocale["Arye"] = "ar-ye";
33754
+ ProjectEmailTemplateLocale["As"] = "as";
33755
+ ProjectEmailTemplateLocale["Az"] = "az";
33756
+ ProjectEmailTemplateLocale["Be"] = "be";
33757
+ ProjectEmailTemplateLocale["Bg"] = "bg";
33758
+ ProjectEmailTemplateLocale["Bh"] = "bh";
33759
+ ProjectEmailTemplateLocale["Bn"] = "bn";
33760
+ ProjectEmailTemplateLocale["Bs"] = "bs";
33761
+ ProjectEmailTemplateLocale["Ca"] = "ca";
33762
+ ProjectEmailTemplateLocale["Cs"] = "cs";
33763
+ ProjectEmailTemplateLocale["Cy"] = "cy";
33764
+ ProjectEmailTemplateLocale["Da"] = "da";
33765
+ ProjectEmailTemplateLocale["De"] = "de";
33766
+ ProjectEmailTemplateLocale["Deat"] = "de-at";
33767
+ ProjectEmailTemplateLocale["Dech"] = "de-ch";
33768
+ ProjectEmailTemplateLocale["Deli"] = "de-li";
33769
+ ProjectEmailTemplateLocale["Delu"] = "de-lu";
33770
+ ProjectEmailTemplateLocale["El"] = "el";
33771
+ ProjectEmailTemplateLocale["En"] = "en";
33772
+ ProjectEmailTemplateLocale["Enau"] = "en-au";
33773
+ ProjectEmailTemplateLocale["Enbz"] = "en-bz";
33774
+ ProjectEmailTemplateLocale["Enca"] = "en-ca";
33775
+ ProjectEmailTemplateLocale["Engb"] = "en-gb";
33776
+ ProjectEmailTemplateLocale["Enie"] = "en-ie";
33777
+ ProjectEmailTemplateLocale["Enjm"] = "en-jm";
33778
+ ProjectEmailTemplateLocale["Ennz"] = "en-nz";
33779
+ ProjectEmailTemplateLocale["Entt"] = "en-tt";
33780
+ ProjectEmailTemplateLocale["Enus"] = "en-us";
33781
+ ProjectEmailTemplateLocale["Enza"] = "en-za";
33782
+ ProjectEmailTemplateLocale["Eo"] = "eo";
33783
+ ProjectEmailTemplateLocale["Es"] = "es";
33784
+ ProjectEmailTemplateLocale["Esar"] = "es-ar";
33785
+ ProjectEmailTemplateLocale["Esbo"] = "es-bo";
33786
+ ProjectEmailTemplateLocale["Escl"] = "es-cl";
33787
+ ProjectEmailTemplateLocale["Esco"] = "es-co";
33788
+ ProjectEmailTemplateLocale["Escr"] = "es-cr";
33789
+ ProjectEmailTemplateLocale["Esdo"] = "es-do";
33790
+ ProjectEmailTemplateLocale["Esec"] = "es-ec";
33791
+ ProjectEmailTemplateLocale["Esgt"] = "es-gt";
33792
+ ProjectEmailTemplateLocale["Eshn"] = "es-hn";
33793
+ ProjectEmailTemplateLocale["Esmx"] = "es-mx";
33794
+ ProjectEmailTemplateLocale["Esni"] = "es-ni";
33795
+ ProjectEmailTemplateLocale["Espa"] = "es-pa";
33796
+ ProjectEmailTemplateLocale["Espe"] = "es-pe";
33797
+ ProjectEmailTemplateLocale["Espr"] = "es-pr";
33798
+ ProjectEmailTemplateLocale["Espy"] = "es-py";
33799
+ ProjectEmailTemplateLocale["Essv"] = "es-sv";
33800
+ ProjectEmailTemplateLocale["Esuy"] = "es-uy";
33801
+ ProjectEmailTemplateLocale["Esve"] = "es-ve";
33802
+ ProjectEmailTemplateLocale["Et"] = "et";
33803
+ ProjectEmailTemplateLocale["Eu"] = "eu";
33804
+ ProjectEmailTemplateLocale["Fa"] = "fa";
33805
+ ProjectEmailTemplateLocale["Fi"] = "fi";
33806
+ ProjectEmailTemplateLocale["Fo"] = "fo";
33807
+ ProjectEmailTemplateLocale["Fr"] = "fr";
33808
+ ProjectEmailTemplateLocale["Frbe"] = "fr-be";
33809
+ ProjectEmailTemplateLocale["Frca"] = "fr-ca";
33810
+ ProjectEmailTemplateLocale["Frch"] = "fr-ch";
33811
+ ProjectEmailTemplateLocale["Frlu"] = "fr-lu";
33812
+ ProjectEmailTemplateLocale["Ga"] = "ga";
33813
+ ProjectEmailTemplateLocale["Gd"] = "gd";
33814
+ ProjectEmailTemplateLocale["He"] = "he";
33815
+ ProjectEmailTemplateLocale["Hi"] = "hi";
33816
+ ProjectEmailTemplateLocale["Hr"] = "hr";
33817
+ ProjectEmailTemplateLocale["Hu"] = "hu";
33818
+ ProjectEmailTemplateLocale["Id"] = "id";
33819
+ ProjectEmailTemplateLocale["Is"] = "is";
33820
+ ProjectEmailTemplateLocale["It"] = "it";
33821
+ ProjectEmailTemplateLocale["Itch"] = "it-ch";
33822
+ ProjectEmailTemplateLocale["Ja"] = "ja";
33823
+ ProjectEmailTemplateLocale["Ji"] = "ji";
33824
+ ProjectEmailTemplateLocale["Ko"] = "ko";
33825
+ ProjectEmailTemplateLocale["Ku"] = "ku";
33826
+ ProjectEmailTemplateLocale["Lt"] = "lt";
33827
+ ProjectEmailTemplateLocale["Lv"] = "lv";
33828
+ ProjectEmailTemplateLocale["Mk"] = "mk";
33829
+ ProjectEmailTemplateLocale["Ml"] = "ml";
33830
+ ProjectEmailTemplateLocale["Ms"] = "ms";
33831
+ ProjectEmailTemplateLocale["Mt"] = "mt";
33832
+ ProjectEmailTemplateLocale["Nb"] = "nb";
33833
+ ProjectEmailTemplateLocale["Ne"] = "ne";
33834
+ ProjectEmailTemplateLocale["Nl"] = "nl";
33835
+ ProjectEmailTemplateLocale["Nlbe"] = "nl-be";
33836
+ ProjectEmailTemplateLocale["Nn"] = "nn";
33837
+ ProjectEmailTemplateLocale["No"] = "no";
33838
+ ProjectEmailTemplateLocale["Pa"] = "pa";
33839
+ ProjectEmailTemplateLocale["Pl"] = "pl";
33840
+ ProjectEmailTemplateLocale["Pt"] = "pt";
33841
+ ProjectEmailTemplateLocale["Ptbr"] = "pt-br";
33842
+ ProjectEmailTemplateLocale["Rm"] = "rm";
33843
+ ProjectEmailTemplateLocale["Ro"] = "ro";
33844
+ ProjectEmailTemplateLocale["Romd"] = "ro-md";
33845
+ ProjectEmailTemplateLocale["Ru"] = "ru";
33846
+ ProjectEmailTemplateLocale["Rumd"] = "ru-md";
33847
+ ProjectEmailTemplateLocale["Sb"] = "sb";
33848
+ ProjectEmailTemplateLocale["Sk"] = "sk";
33849
+ ProjectEmailTemplateLocale["Sl"] = "sl";
33850
+ ProjectEmailTemplateLocale["Sq"] = "sq";
33851
+ ProjectEmailTemplateLocale["Sr"] = "sr";
33852
+ ProjectEmailTemplateLocale["Sv"] = "sv";
33853
+ ProjectEmailTemplateLocale["Svfi"] = "sv-fi";
33854
+ ProjectEmailTemplateLocale["Th"] = "th";
33855
+ ProjectEmailTemplateLocale["Tn"] = "tn";
33856
+ ProjectEmailTemplateLocale["Tr"] = "tr";
33857
+ ProjectEmailTemplateLocale["Ts"] = "ts";
33858
+ ProjectEmailTemplateLocale["Ua"] = "ua";
33859
+ ProjectEmailTemplateLocale["Ur"] = "ur";
33860
+ ProjectEmailTemplateLocale["Ve"] = "ve";
33861
+ ProjectEmailTemplateLocale["Vi"] = "vi";
33862
+ ProjectEmailTemplateLocale["Xh"] = "xh";
33863
+ ProjectEmailTemplateLocale["Zhcn"] = "zh-cn";
33864
+ ProjectEmailTemplateLocale["Zhhk"] = "zh-hk";
33865
+ ProjectEmailTemplateLocale["Zhsg"] = "zh-sg";
33866
+ ProjectEmailTemplateLocale["Zhtw"] = "zh-tw";
33867
+ ProjectEmailTemplateLocale["Zu"] = "zu";
33868
+ })(ProjectEmailTemplateLocale || (ProjectEmailTemplateLocale = {}));
33869
+
33307
33870
  var UsageRange;
33308
33871
  (function (UsageRange) {
33309
33872
  UsageRange["TwentyFourHours"] = "24h";
@@ -33347,223 +33910,223 @@ var DocumentsDBIndexType;
33347
33910
  DocumentsDBIndexType["Unique"] = "unique";
33348
33911
  })(DocumentsDBIndexType || (DocumentsDBIndexType = {}));
33349
33912
 
33350
- var RegistrationType;
33351
- (function (RegistrationType) {
33352
- RegistrationType["New"] = "new";
33353
- RegistrationType["Transfer"] = "transfer";
33354
- RegistrationType["Renewal"] = "renewal";
33355
- RegistrationType["Trade"] = "trade";
33356
- })(RegistrationType || (RegistrationType = {}));
33913
+ var DomainRegistrationType;
33914
+ (function (DomainRegistrationType) {
33915
+ DomainRegistrationType["New"] = "new";
33916
+ DomainRegistrationType["Transfer"] = "transfer";
33917
+ DomainRegistrationType["Renewal"] = "renewal";
33918
+ DomainRegistrationType["Trade"] = "trade";
33919
+ })(DomainRegistrationType || (DomainRegistrationType = {}));
33357
33920
 
33358
- var FilterType;
33359
- (function (FilterType) {
33360
- FilterType["Premium"] = "premium";
33361
- FilterType["Suggestion"] = "suggestion";
33362
- })(FilterType || (FilterType = {}));
33921
+ var DomainSuggestionType;
33922
+ (function (DomainSuggestionType) {
33923
+ DomainSuggestionType["Premium"] = "premium";
33924
+ DomainSuggestionType["Suggestion"] = "suggestion";
33925
+ })(DomainSuggestionType || (DomainSuggestionType = {}));
33363
33926
 
33364
- var Runtime;
33365
- (function (Runtime) {
33366
- Runtime["Node145"] = "node-14.5";
33367
- Runtime["Node160"] = "node-16.0";
33368
- Runtime["Node180"] = "node-18.0";
33369
- Runtime["Node190"] = "node-19.0";
33370
- Runtime["Node200"] = "node-20.0";
33371
- Runtime["Node210"] = "node-21.0";
33372
- Runtime["Node22"] = "node-22";
33373
- Runtime["Node23"] = "node-23";
33374
- Runtime["Node24"] = "node-24";
33375
- Runtime["Node25"] = "node-25";
33376
- Runtime["Php80"] = "php-8.0";
33377
- Runtime["Php81"] = "php-8.1";
33378
- Runtime["Php82"] = "php-8.2";
33379
- Runtime["Php83"] = "php-8.3";
33380
- Runtime["Php84"] = "php-8.4";
33381
- Runtime["Ruby30"] = "ruby-3.0";
33382
- Runtime["Ruby31"] = "ruby-3.1";
33383
- Runtime["Ruby32"] = "ruby-3.2";
33384
- Runtime["Ruby33"] = "ruby-3.3";
33385
- Runtime["Ruby34"] = "ruby-3.4";
33386
- Runtime["Ruby40"] = "ruby-4.0";
33387
- Runtime["Python38"] = "python-3.8";
33388
- Runtime["Python39"] = "python-3.9";
33389
- Runtime["Python310"] = "python-3.10";
33390
- Runtime["Python311"] = "python-3.11";
33391
- Runtime["Python312"] = "python-3.12";
33392
- Runtime["Python313"] = "python-3.13";
33393
- Runtime["Python314"] = "python-3.14";
33394
- Runtime["Pythonml311"] = "python-ml-3.11";
33395
- Runtime["Pythonml312"] = "python-ml-3.12";
33396
- Runtime["Pythonml313"] = "python-ml-3.13";
33397
- Runtime["Deno140"] = "deno-1.40";
33398
- Runtime["Deno146"] = "deno-1.46";
33399
- Runtime["Deno20"] = "deno-2.0";
33400
- Runtime["Deno25"] = "deno-2.5";
33401
- Runtime["Deno26"] = "deno-2.6";
33402
- Runtime["Dart215"] = "dart-2.15";
33403
- Runtime["Dart216"] = "dart-2.16";
33404
- Runtime["Dart217"] = "dart-2.17";
33405
- Runtime["Dart218"] = "dart-2.18";
33406
- Runtime["Dart219"] = "dart-2.19";
33407
- Runtime["Dart30"] = "dart-3.0";
33408
- Runtime["Dart31"] = "dart-3.1";
33409
- Runtime["Dart33"] = "dart-3.3";
33410
- Runtime["Dart35"] = "dart-3.5";
33411
- Runtime["Dart38"] = "dart-3.8";
33412
- Runtime["Dart39"] = "dart-3.9";
33413
- Runtime["Dart310"] = "dart-3.10";
33414
- Runtime["Dart311"] = "dart-3.11";
33415
- Runtime["Dotnet60"] = "dotnet-6.0";
33416
- Runtime["Dotnet70"] = "dotnet-7.0";
33417
- Runtime["Dotnet80"] = "dotnet-8.0";
33418
- Runtime["Dotnet10"] = "dotnet-10";
33419
- Runtime["Java80"] = "java-8.0";
33420
- Runtime["Java110"] = "java-11.0";
33421
- Runtime["Java170"] = "java-17.0";
33422
- Runtime["Java180"] = "java-18.0";
33423
- Runtime["Java210"] = "java-21.0";
33424
- Runtime["Java22"] = "java-22";
33425
- Runtime["Java25"] = "java-25";
33426
- Runtime["Swift55"] = "swift-5.5";
33427
- Runtime["Swift58"] = "swift-5.8";
33428
- Runtime["Swift59"] = "swift-5.9";
33429
- Runtime["Swift510"] = "swift-5.10";
33430
- Runtime["Swift62"] = "swift-6.2";
33431
- Runtime["Kotlin16"] = "kotlin-1.6";
33432
- Runtime["Kotlin18"] = "kotlin-1.8";
33433
- Runtime["Kotlin19"] = "kotlin-1.9";
33434
- Runtime["Kotlin20"] = "kotlin-2.0";
33435
- Runtime["Kotlin23"] = "kotlin-2.3";
33436
- Runtime["Cpp17"] = "cpp-17";
33437
- Runtime["Cpp20"] = "cpp-20";
33438
- Runtime["Bun10"] = "bun-1.0";
33439
- Runtime["Bun11"] = "bun-1.1";
33440
- Runtime["Bun12"] = "bun-1.2";
33441
- Runtime["Bun13"] = "bun-1.3";
33442
- Runtime["Go123"] = "go-1.23";
33443
- Runtime["Go124"] = "go-1.24";
33444
- Runtime["Go125"] = "go-1.25";
33445
- Runtime["Go126"] = "go-1.26";
33446
- Runtime["Rust183"] = "rust-1.83";
33447
- Runtime["Static1"] = "static-1";
33448
- Runtime["Flutter324"] = "flutter-3.24";
33449
- Runtime["Flutter327"] = "flutter-3.27";
33450
- Runtime["Flutter329"] = "flutter-3.29";
33451
- Runtime["Flutter332"] = "flutter-3.32";
33452
- Runtime["Flutter335"] = "flutter-3.35";
33453
- Runtime["Flutter338"] = "flutter-3.38";
33454
- Runtime["Flutter341"] = "flutter-3.41";
33455
- })(Runtime || (Runtime = {}));
33927
+ var FunctionRuntime;
33928
+ (function (FunctionRuntime) {
33929
+ FunctionRuntime["Node145"] = "node-14.5";
33930
+ FunctionRuntime["Node160"] = "node-16.0";
33931
+ FunctionRuntime["Node180"] = "node-18.0";
33932
+ FunctionRuntime["Node190"] = "node-19.0";
33933
+ FunctionRuntime["Node200"] = "node-20.0";
33934
+ FunctionRuntime["Node210"] = "node-21.0";
33935
+ FunctionRuntime["Node22"] = "node-22";
33936
+ FunctionRuntime["Node23"] = "node-23";
33937
+ FunctionRuntime["Node24"] = "node-24";
33938
+ FunctionRuntime["Node25"] = "node-25";
33939
+ FunctionRuntime["Php80"] = "php-8.0";
33940
+ FunctionRuntime["Php81"] = "php-8.1";
33941
+ FunctionRuntime["Php82"] = "php-8.2";
33942
+ FunctionRuntime["Php83"] = "php-8.3";
33943
+ FunctionRuntime["Php84"] = "php-8.4";
33944
+ FunctionRuntime["Ruby30"] = "ruby-3.0";
33945
+ FunctionRuntime["Ruby31"] = "ruby-3.1";
33946
+ FunctionRuntime["Ruby32"] = "ruby-3.2";
33947
+ FunctionRuntime["Ruby33"] = "ruby-3.3";
33948
+ FunctionRuntime["Ruby34"] = "ruby-3.4";
33949
+ FunctionRuntime["Ruby40"] = "ruby-4.0";
33950
+ FunctionRuntime["Python38"] = "python-3.8";
33951
+ FunctionRuntime["Python39"] = "python-3.9";
33952
+ FunctionRuntime["Python310"] = "python-3.10";
33953
+ FunctionRuntime["Python311"] = "python-3.11";
33954
+ FunctionRuntime["Python312"] = "python-3.12";
33955
+ FunctionRuntime["Python313"] = "python-3.13";
33956
+ FunctionRuntime["Python314"] = "python-3.14";
33957
+ FunctionRuntime["Pythonml311"] = "python-ml-3.11";
33958
+ FunctionRuntime["Pythonml312"] = "python-ml-3.12";
33959
+ FunctionRuntime["Pythonml313"] = "python-ml-3.13";
33960
+ FunctionRuntime["Deno140"] = "deno-1.40";
33961
+ FunctionRuntime["Deno146"] = "deno-1.46";
33962
+ FunctionRuntime["Deno20"] = "deno-2.0";
33963
+ FunctionRuntime["Deno25"] = "deno-2.5";
33964
+ FunctionRuntime["Deno26"] = "deno-2.6";
33965
+ FunctionRuntime["Dart215"] = "dart-2.15";
33966
+ FunctionRuntime["Dart216"] = "dart-2.16";
33967
+ FunctionRuntime["Dart217"] = "dart-2.17";
33968
+ FunctionRuntime["Dart218"] = "dart-2.18";
33969
+ FunctionRuntime["Dart219"] = "dart-2.19";
33970
+ FunctionRuntime["Dart30"] = "dart-3.0";
33971
+ FunctionRuntime["Dart31"] = "dart-3.1";
33972
+ FunctionRuntime["Dart33"] = "dart-3.3";
33973
+ FunctionRuntime["Dart35"] = "dart-3.5";
33974
+ FunctionRuntime["Dart38"] = "dart-3.8";
33975
+ FunctionRuntime["Dart39"] = "dart-3.9";
33976
+ FunctionRuntime["Dart310"] = "dart-3.10";
33977
+ FunctionRuntime["Dart311"] = "dart-3.11";
33978
+ FunctionRuntime["Dart312"] = "dart-3.12";
33979
+ FunctionRuntime["Dotnet60"] = "dotnet-6.0";
33980
+ FunctionRuntime["Dotnet70"] = "dotnet-7.0";
33981
+ FunctionRuntime["Dotnet80"] = "dotnet-8.0";
33982
+ FunctionRuntime["Dotnet10"] = "dotnet-10";
33983
+ FunctionRuntime["Java80"] = "java-8.0";
33984
+ FunctionRuntime["Java110"] = "java-11.0";
33985
+ FunctionRuntime["Java170"] = "java-17.0";
33986
+ FunctionRuntime["Java180"] = "java-18.0";
33987
+ FunctionRuntime["Java210"] = "java-21.0";
33988
+ FunctionRuntime["Java22"] = "java-22";
33989
+ FunctionRuntime["Java25"] = "java-25";
33990
+ FunctionRuntime["Swift55"] = "swift-5.5";
33991
+ FunctionRuntime["Swift58"] = "swift-5.8";
33992
+ FunctionRuntime["Swift59"] = "swift-5.9";
33993
+ FunctionRuntime["Swift510"] = "swift-5.10";
33994
+ FunctionRuntime["Swift62"] = "swift-6.2";
33995
+ FunctionRuntime["Kotlin16"] = "kotlin-1.6";
33996
+ FunctionRuntime["Kotlin18"] = "kotlin-1.8";
33997
+ FunctionRuntime["Kotlin19"] = "kotlin-1.9";
33998
+ FunctionRuntime["Kotlin20"] = "kotlin-2.0";
33999
+ FunctionRuntime["Kotlin23"] = "kotlin-2.3";
34000
+ FunctionRuntime["Cpp17"] = "cpp-17";
34001
+ FunctionRuntime["Cpp20"] = "cpp-20";
34002
+ FunctionRuntime["Bun10"] = "bun-1.0";
34003
+ FunctionRuntime["Bun11"] = "bun-1.1";
34004
+ FunctionRuntime["Bun12"] = "bun-1.2";
34005
+ FunctionRuntime["Bun13"] = "bun-1.3";
34006
+ FunctionRuntime["Go123"] = "go-1.23";
34007
+ FunctionRuntime["Go124"] = "go-1.24";
34008
+ FunctionRuntime["Go125"] = "go-1.25";
34009
+ FunctionRuntime["Go126"] = "go-1.26";
34010
+ FunctionRuntime["Rust183"] = "rust-1.83";
34011
+ FunctionRuntime["Static1"] = "static-1";
34012
+ FunctionRuntime["Flutter324"] = "flutter-3.24";
34013
+ FunctionRuntime["Flutter327"] = "flutter-3.27";
34014
+ FunctionRuntime["Flutter329"] = "flutter-3.29";
34015
+ FunctionRuntime["Flutter332"] = "flutter-3.32";
34016
+ FunctionRuntime["Flutter335"] = "flutter-3.35";
34017
+ FunctionRuntime["Flutter338"] = "flutter-3.38";
34018
+ FunctionRuntime["Flutter341"] = "flutter-3.41";
34019
+ FunctionRuntime["Flutter344"] = "flutter-3.44";
34020
+ })(FunctionRuntime || (FunctionRuntime = {}));
33456
34021
 
33457
- var Runtimes;
33458
- (function (Runtimes) {
33459
- Runtimes["Node145"] = "node-14.5";
33460
- Runtimes["Node160"] = "node-16.0";
33461
- Runtimes["Node180"] = "node-18.0";
33462
- Runtimes["Node190"] = "node-19.0";
33463
- Runtimes["Node200"] = "node-20.0";
33464
- Runtimes["Node210"] = "node-21.0";
33465
- Runtimes["Node22"] = "node-22";
33466
- Runtimes["Node23"] = "node-23";
33467
- Runtimes["Node24"] = "node-24";
33468
- Runtimes["Node25"] = "node-25";
33469
- Runtimes["Php80"] = "php-8.0";
33470
- Runtimes["Php81"] = "php-8.1";
33471
- Runtimes["Php82"] = "php-8.2";
33472
- Runtimes["Php83"] = "php-8.3";
33473
- Runtimes["Php84"] = "php-8.4";
33474
- Runtimes["Ruby30"] = "ruby-3.0";
33475
- Runtimes["Ruby31"] = "ruby-3.1";
33476
- Runtimes["Ruby32"] = "ruby-3.2";
33477
- Runtimes["Ruby33"] = "ruby-3.3";
33478
- Runtimes["Ruby34"] = "ruby-3.4";
33479
- Runtimes["Ruby40"] = "ruby-4.0";
33480
- Runtimes["Python38"] = "python-3.8";
33481
- Runtimes["Python39"] = "python-3.9";
33482
- Runtimes["Python310"] = "python-3.10";
33483
- Runtimes["Python311"] = "python-3.11";
33484
- Runtimes["Python312"] = "python-3.12";
33485
- Runtimes["Python313"] = "python-3.13";
33486
- Runtimes["Python314"] = "python-3.14";
33487
- Runtimes["Pythonml311"] = "python-ml-3.11";
33488
- Runtimes["Pythonml312"] = "python-ml-3.12";
33489
- Runtimes["Pythonml313"] = "python-ml-3.13";
33490
- Runtimes["Deno140"] = "deno-1.40";
33491
- Runtimes["Deno146"] = "deno-1.46";
33492
- Runtimes["Deno20"] = "deno-2.0";
33493
- Runtimes["Deno25"] = "deno-2.5";
33494
- Runtimes["Deno26"] = "deno-2.6";
33495
- Runtimes["Dart215"] = "dart-2.15";
33496
- Runtimes["Dart216"] = "dart-2.16";
33497
- Runtimes["Dart217"] = "dart-2.17";
33498
- Runtimes["Dart218"] = "dart-2.18";
33499
- Runtimes["Dart219"] = "dart-2.19";
33500
- Runtimes["Dart30"] = "dart-3.0";
33501
- Runtimes["Dart31"] = "dart-3.1";
33502
- Runtimes["Dart33"] = "dart-3.3";
33503
- Runtimes["Dart35"] = "dart-3.5";
33504
- Runtimes["Dart38"] = "dart-3.8";
33505
- Runtimes["Dart39"] = "dart-3.9";
33506
- Runtimes["Dart310"] = "dart-3.10";
33507
- Runtimes["Dart311"] = "dart-3.11";
33508
- Runtimes["Dotnet60"] = "dotnet-6.0";
33509
- Runtimes["Dotnet70"] = "dotnet-7.0";
33510
- Runtimes["Dotnet80"] = "dotnet-8.0";
33511
- Runtimes["Dotnet10"] = "dotnet-10";
33512
- Runtimes["Java80"] = "java-8.0";
33513
- Runtimes["Java110"] = "java-11.0";
33514
- Runtimes["Java170"] = "java-17.0";
33515
- Runtimes["Java180"] = "java-18.0";
33516
- Runtimes["Java210"] = "java-21.0";
33517
- Runtimes["Java22"] = "java-22";
33518
- Runtimes["Java25"] = "java-25";
33519
- Runtimes["Swift55"] = "swift-5.5";
33520
- Runtimes["Swift58"] = "swift-5.8";
33521
- Runtimes["Swift59"] = "swift-5.9";
33522
- Runtimes["Swift510"] = "swift-5.10";
33523
- Runtimes["Swift62"] = "swift-6.2";
33524
- Runtimes["Kotlin16"] = "kotlin-1.6";
33525
- Runtimes["Kotlin18"] = "kotlin-1.8";
33526
- Runtimes["Kotlin19"] = "kotlin-1.9";
33527
- Runtimes["Kotlin20"] = "kotlin-2.0";
33528
- Runtimes["Kotlin23"] = "kotlin-2.3";
33529
- Runtimes["Cpp17"] = "cpp-17";
33530
- Runtimes["Cpp20"] = "cpp-20";
33531
- Runtimes["Bun10"] = "bun-1.0";
33532
- Runtimes["Bun11"] = "bun-1.1";
33533
- Runtimes["Bun12"] = "bun-1.2";
33534
- Runtimes["Bun13"] = "bun-1.3";
33535
- Runtimes["Go123"] = "go-1.23";
33536
- Runtimes["Go124"] = "go-1.24";
33537
- Runtimes["Go125"] = "go-1.25";
33538
- Runtimes["Go126"] = "go-1.26";
33539
- Runtimes["Rust183"] = "rust-1.83";
33540
- Runtimes["Static1"] = "static-1";
33541
- Runtimes["Flutter324"] = "flutter-3.24";
33542
- Runtimes["Flutter327"] = "flutter-3.27";
33543
- Runtimes["Flutter329"] = "flutter-3.29";
33544
- Runtimes["Flutter332"] = "flutter-3.32";
33545
- Runtimes["Flutter335"] = "flutter-3.35";
33546
- Runtimes["Flutter338"] = "flutter-3.38";
33547
- Runtimes["Flutter341"] = "flutter-3.41";
33548
- })(Runtimes || (Runtimes = {}));
34022
+ var ProjectKeyScopes;
34023
+ (function (ProjectKeyScopes) {
34024
+ ProjectKeyScopes["ProjectRead"] = "project.read";
34025
+ ProjectKeyScopes["ProjectWrite"] = "project.write";
34026
+ ProjectKeyScopes["KeysRead"] = "keys.read";
34027
+ ProjectKeyScopes["KeysWrite"] = "keys.write";
34028
+ ProjectKeyScopes["PlatformsRead"] = "platforms.read";
34029
+ ProjectKeyScopes["PlatformsWrite"] = "platforms.write";
34030
+ ProjectKeyScopes["MocksRead"] = "mocks.read";
34031
+ ProjectKeyScopes["MocksWrite"] = "mocks.write";
34032
+ ProjectKeyScopes["PoliciesRead"] = "policies.read";
34033
+ ProjectKeyScopes["PoliciesWrite"] = "policies.write";
34034
+ ProjectKeyScopes["ProjectPoliciesRead"] = "project.policies.read";
34035
+ ProjectKeyScopes["ProjectPoliciesWrite"] = "project.policies.write";
34036
+ ProjectKeyScopes["TemplatesRead"] = "templates.read";
34037
+ ProjectKeyScopes["TemplatesWrite"] = "templates.write";
34038
+ ProjectKeyScopes["Oauth2Read"] = "oauth2.read";
34039
+ ProjectKeyScopes["Oauth2Write"] = "oauth2.write";
34040
+ ProjectKeyScopes["UsersRead"] = "users.read";
34041
+ ProjectKeyScopes["UsersWrite"] = "users.write";
34042
+ ProjectKeyScopes["SessionsRead"] = "sessions.read";
34043
+ ProjectKeyScopes["SessionsWrite"] = "sessions.write";
34044
+ ProjectKeyScopes["TeamsRead"] = "teams.read";
34045
+ ProjectKeyScopes["TeamsWrite"] = "teams.write";
34046
+ ProjectKeyScopes["DatabasesRead"] = "databases.read";
34047
+ ProjectKeyScopes["DatabasesWrite"] = "databases.write";
34048
+ ProjectKeyScopes["TablesRead"] = "tables.read";
34049
+ ProjectKeyScopes["TablesWrite"] = "tables.write";
34050
+ ProjectKeyScopes["ColumnsRead"] = "columns.read";
34051
+ ProjectKeyScopes["ColumnsWrite"] = "columns.write";
34052
+ ProjectKeyScopes["IndexesRead"] = "indexes.read";
34053
+ ProjectKeyScopes["IndexesWrite"] = "indexes.write";
34054
+ ProjectKeyScopes["RowsRead"] = "rows.read";
34055
+ ProjectKeyScopes["RowsWrite"] = "rows.write";
34056
+ ProjectKeyScopes["CollectionsRead"] = "collections.read";
34057
+ ProjectKeyScopes["CollectionsWrite"] = "collections.write";
34058
+ ProjectKeyScopes["AttributesRead"] = "attributes.read";
34059
+ ProjectKeyScopes["AttributesWrite"] = "attributes.write";
34060
+ ProjectKeyScopes["DocumentsRead"] = "documents.read";
34061
+ ProjectKeyScopes["DocumentsWrite"] = "documents.write";
34062
+ ProjectKeyScopes["BucketsRead"] = "buckets.read";
34063
+ ProjectKeyScopes["BucketsWrite"] = "buckets.write";
34064
+ ProjectKeyScopes["FilesRead"] = "files.read";
34065
+ ProjectKeyScopes["FilesWrite"] = "files.write";
34066
+ ProjectKeyScopes["TokensRead"] = "tokens.read";
34067
+ ProjectKeyScopes["TokensWrite"] = "tokens.write";
34068
+ ProjectKeyScopes["FunctionsRead"] = "functions.read";
34069
+ ProjectKeyScopes["FunctionsWrite"] = "functions.write";
34070
+ ProjectKeyScopes["ExecutionsRead"] = "executions.read";
34071
+ ProjectKeyScopes["ExecutionsWrite"] = "executions.write";
34072
+ ProjectKeyScopes["ExecutionRead"] = "execution.read";
34073
+ ProjectKeyScopes["ExecutionWrite"] = "execution.write";
34074
+ ProjectKeyScopes["SitesRead"] = "sites.read";
34075
+ ProjectKeyScopes["SitesWrite"] = "sites.write";
34076
+ ProjectKeyScopes["LogRead"] = "log.read";
34077
+ ProjectKeyScopes["LogWrite"] = "log.write";
34078
+ ProjectKeyScopes["ProvidersRead"] = "providers.read";
34079
+ ProjectKeyScopes["ProvidersWrite"] = "providers.write";
34080
+ ProjectKeyScopes["TopicsRead"] = "topics.read";
34081
+ ProjectKeyScopes["TopicsWrite"] = "topics.write";
34082
+ ProjectKeyScopes["SubscribersRead"] = "subscribers.read";
34083
+ ProjectKeyScopes["SubscribersWrite"] = "subscribers.write";
34084
+ ProjectKeyScopes["TargetsRead"] = "targets.read";
34085
+ ProjectKeyScopes["TargetsWrite"] = "targets.write";
34086
+ ProjectKeyScopes["MessagesRead"] = "messages.read";
34087
+ ProjectKeyScopes["MessagesWrite"] = "messages.write";
34088
+ ProjectKeyScopes["RulesRead"] = "rules.read";
34089
+ ProjectKeyScopes["RulesWrite"] = "rules.write";
34090
+ ProjectKeyScopes["WebhooksRead"] = "webhooks.read";
34091
+ ProjectKeyScopes["WebhooksWrite"] = "webhooks.write";
34092
+ ProjectKeyScopes["LocaleRead"] = "locale.read";
34093
+ ProjectKeyScopes["AvatarsRead"] = "avatars.read";
34094
+ ProjectKeyScopes["HealthRead"] = "health.read";
34095
+ ProjectKeyScopes["AssistantRead"] = "assistant.read";
34096
+ ProjectKeyScopes["MigrationsRead"] = "migrations.read";
34097
+ ProjectKeyScopes["MigrationsWrite"] = "migrations.write";
34098
+ ProjectKeyScopes["SchedulesRead"] = "schedules.read";
34099
+ ProjectKeyScopes["SchedulesWrite"] = "schedules.write";
34100
+ ProjectKeyScopes["VcsRead"] = "vcs.read";
34101
+ ProjectKeyScopes["VcsWrite"] = "vcs.write";
34102
+ ProjectKeyScopes["InsightsRead"] = "insights.read";
34103
+ ProjectKeyScopes["InsightsWrite"] = "insights.write";
34104
+ ProjectKeyScopes["ReportsRead"] = "reports.read";
34105
+ ProjectKeyScopes["ReportsWrite"] = "reports.write";
34106
+ ProjectKeyScopes["PresencesRead"] = "presences.read";
34107
+ ProjectKeyScopes["PresencesWrite"] = "presences.write";
34108
+ ProjectKeyScopes["BackupsPoliciesRead"] = "backups.policies.read";
34109
+ ProjectKeyScopes["BackupsPoliciesWrite"] = "backups.policies.write";
34110
+ ProjectKeyScopes["ArchivesRead"] = "archives.read";
34111
+ ProjectKeyScopes["ArchivesWrite"] = "archives.write";
34112
+ ProjectKeyScopes["RestorationsRead"] = "restorations.read";
34113
+ ProjectKeyScopes["RestorationsWrite"] = "restorations.write";
34114
+ ProjectKeyScopes["DomainsRead"] = "domains.read";
34115
+ ProjectKeyScopes["DomainsWrite"] = "domains.write";
34116
+ ProjectKeyScopes["EventsRead"] = "events.read";
34117
+ ProjectKeyScopes["UsageRead"] = "usage.read";
34118
+ })(ProjectKeyScopes || (ProjectKeyScopes = {}));
33549
34119
 
33550
- var UseCases;
33551
- (function (UseCases) {
33552
- UseCases["Starter"] = "starter";
33553
- UseCases["Databases"] = "databases";
33554
- UseCases["Ai"] = "ai";
33555
- UseCases["Messaging"] = "messaging";
33556
- UseCases["Utilities"] = "utilities";
33557
- UseCases["Devtools"] = "dev-tools";
33558
- UseCases["Auth"] = "auth";
33559
- UseCases["Portfolio"] = "portfolio";
33560
- UseCases["Events"] = "events";
33561
- UseCases["Ecommerce"] = "ecommerce";
33562
- UseCases["Documentation"] = "documentation";
33563
- UseCases["Blog"] = "blog";
33564
- UseCases["Forms"] = "forms";
33565
- UseCases["Dashboard"] = "dashboard";
33566
- })(UseCases || (UseCases = {}));
34120
+ var FunctionTemplateUseCase;
34121
+ (function (FunctionTemplateUseCase) {
34122
+ FunctionTemplateUseCase["Starter"] = "starter";
34123
+ FunctionTemplateUseCase["Databases"] = "databases";
34124
+ FunctionTemplateUseCase["Ai"] = "ai";
34125
+ FunctionTemplateUseCase["Messaging"] = "messaging";
34126
+ FunctionTemplateUseCase["Utilities"] = "utilities";
34127
+ FunctionTemplateUseCase["Devtools"] = "dev-tools";
34128
+ FunctionTemplateUseCase["Auth"] = "auth";
34129
+ })(FunctionTemplateUseCase || (FunctionTemplateUseCase = {}));
33567
34130
 
33568
34131
  var TemplateReferenceType;
33569
34132
  (function (TemplateReferenceType) {
@@ -33596,39 +34159,62 @@ var ExecutionMethod;
33596
34159
  ExecutionMethod["HEAD"] = "HEAD";
33597
34160
  })(ExecutionMethod || (ExecutionMethod = {}));
33598
34161
 
33599
- var Name;
33600
- (function (Name) {
33601
- Name["V1database"] = "v1-database";
33602
- Name["V1deletes"] = "v1-deletes";
33603
- Name["V1audits"] = "v1-audits";
33604
- Name["V1mails"] = "v1-mails";
33605
- Name["V1functions"] = "v1-functions";
33606
- Name["V1statsresources"] = "v1-stats-resources";
33607
- Name["V1statsusage"] = "v1-stats-usage";
33608
- Name["V1webhooks"] = "v1-webhooks";
33609
- Name["V1certificates"] = "v1-certificates";
33610
- Name["V1builds"] = "v1-builds";
33611
- Name["V1screenshots"] = "v1-screenshots";
33612
- Name["V1messaging"] = "v1-messaging";
33613
- Name["V1migrations"] = "v1-migrations";
33614
- })(Name || (Name = {}));
34162
+ var HealthQueueName;
34163
+ (function (HealthQueueName) {
34164
+ HealthQueueName["V1database"] = "v1-database";
34165
+ HealthQueueName["V1deletes"] = "v1-deletes";
34166
+ HealthQueueName["V1audits"] = "v1-audits";
34167
+ HealthQueueName["V1mails"] = "v1-mails";
34168
+ HealthQueueName["V1functions"] = "v1-functions";
34169
+ HealthQueueName["V1statsresources"] = "v1-stats-resources";
34170
+ HealthQueueName["V1statsusage"] = "v1-stats-usage";
34171
+ HealthQueueName["V1webhooks"] = "v1-webhooks";
34172
+ HealthQueueName["V1certificates"] = "v1-certificates";
34173
+ HealthQueueName["V1builds"] = "v1-builds";
34174
+ HealthQueueName["V1screenshots"] = "v1-screenshots";
34175
+ HealthQueueName["V1messaging"] = "v1-messaging";
34176
+ HealthQueueName["V1migrations"] = "v1-migrations";
34177
+ })(HealthQueueName || (HealthQueueName = {}));
34178
+
34179
+ var BlockResourceType;
34180
+ (function (BlockResourceType) {
34181
+ BlockResourceType["Projects"] = "projects";
34182
+ BlockResourceType["Functions"] = "functions";
34183
+ BlockResourceType["Sites"] = "sites";
34184
+ BlockResourceType["Databases"] = "databases";
34185
+ BlockResourceType["Buckets"] = "buckets";
34186
+ BlockResourceType["Providers"] = "providers";
34187
+ BlockResourceType["Topics"] = "topics";
34188
+ BlockResourceType["Subscribers"] = "subscribers";
34189
+ BlockResourceType["Messages"] = "messages";
34190
+ })(BlockResourceType || (BlockResourceType = {}));
34191
+
34192
+ var Region;
34193
+ (function (Region) {
34194
+ Region["Fra"] = "fra";
34195
+ Region["Nyc"] = "nyc";
34196
+ Region["Syd"] = "syd";
34197
+ Region["Sfo"] = "sfo";
34198
+ Region["Sgp"] = "sgp";
34199
+ Region["Tor"] = "tor";
34200
+ })(Region || (Region = {}));
34201
+
34202
+ var CacheTarget;
34203
+ (function (CacheTarget) {
34204
+ CacheTarget["Cache"] = "cache";
34205
+ CacheTarget["Timelimit"] = "timelimit";
34206
+ CacheTarget["Locks"] = "locks";
34207
+ CacheTarget["Pubsub"] = "pubsub";
34208
+ CacheTarget["Queue"] = "queue";
34209
+ CacheTarget["All"] = "all";
34210
+ })(CacheTarget || (CacheTarget = {}));
33615
34211
 
33616
- var ResourceType;
33617
- (function (ResourceType) {
33618
- ResourceType["Projects"] = "projects";
33619
- ResourceType["Functions"] = "functions";
33620
- ResourceType["Sites"] = "sites";
33621
- ResourceType["Databases"] = "databases";
33622
- ResourceType["Buckets"] = "buckets";
33623
- ResourceType["Providers"] = "providers";
33624
- ResourceType["Topics"] = "topics";
33625
- ResourceType["Subscribers"] = "subscribers";
33626
- ResourceType["Messages"] = "messages";
33627
- ResourceType["Function"] = "function";
33628
- ResourceType["Execution"] = "execution";
33629
- ResourceType["Message"] = "message";
33630
- ResourceType["Backup"] = "backup";
33631
- })(ResourceType || (ResourceType = {}));
34212
+ var CacheDatabase;
34213
+ (function (CacheDatabase) {
34214
+ CacheDatabase["Console"] = "console";
34215
+ CacheDatabase["Project"] = "project";
34216
+ CacheDatabase["Logs"] = "logs";
34217
+ })(CacheDatabase || (CacheDatabase = {}));
33632
34218
 
33633
34219
  var MessagePriority;
33634
34220
  (function (MessagePriority) {
@@ -33670,15 +34256,16 @@ var AppwriteMigrationResource;
33670
34256
  AppwriteMigrationResource["Site"] = "site";
33671
34257
  AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
33672
34258
  AppwriteMigrationResource["Sitevariable"] = "site-variable";
34259
+ AppwriteMigrationResource["Platform"] = "platform";
33673
34260
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33674
34261
  })(AppwriteMigrationResource || (AppwriteMigrationResource = {}));
33675
34262
 
33676
- var OnDuplicate;
33677
- (function (OnDuplicate) {
33678
- OnDuplicate["Fail"] = "fail";
33679
- OnDuplicate["Skip"] = "skip";
33680
- OnDuplicate["Overwrite"] = "overwrite";
33681
- })(OnDuplicate || (OnDuplicate = {}));
34263
+ var MigrationOnDuplicate;
34264
+ (function (MigrationOnDuplicate) {
34265
+ MigrationOnDuplicate["Fail"] = "fail";
34266
+ MigrationOnDuplicate["Skip"] = "skip";
34267
+ MigrationOnDuplicate["Overwrite"] = "overwrite";
34268
+ })(MigrationOnDuplicate || (MigrationOnDuplicate = {}));
33682
34269
 
33683
34270
  var FirebaseMigrationResource;
33684
34271
  (function (FirebaseMigrationResource) {
@@ -33724,214 +34311,138 @@ var SupabaseMigrationResource;
33724
34311
  SupabaseMigrationResource["File"] = "file";
33725
34312
  })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
33726
34313
 
33727
- var Addon;
33728
- (function (Addon) {
33729
- Addon["Baa"] = "baa";
33730
- })(Addon || (Addon = {}));
34314
+ var OrganizationKeyScopes;
34315
+ (function (OrganizationKeyScopes) {
34316
+ OrganizationKeyScopes["ProjectsRead"] = "projects.read";
34317
+ OrganizationKeyScopes["ProjectsWrite"] = "projects.write";
34318
+ OrganizationKeyScopes["DevKeysRead"] = "devKeys.read";
34319
+ OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
34320
+ OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
34321
+ OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
34322
+ OrganizationKeyScopes["DomainsRead"] = "domains.read";
34323
+ OrganizationKeyScopes["DomainsWrite"] = "domains.write";
34324
+ OrganizationKeyScopes["KeysRead"] = "keys.read";
34325
+ OrganizationKeyScopes["KeysWrite"] = "keys.write";
34326
+ })(OrganizationKeyScopes || (OrganizationKeyScopes = {}));
34327
+
34328
+ var OrganizationAddon;
34329
+ (function (OrganizationAddon) {
34330
+ OrganizationAddon["Baa"] = "baa";
34331
+ OrganizationAddon["BackupRecovery"] = "backup_recovery";
34332
+ })(OrganizationAddon || (OrganizationAddon = {}));
33731
34333
 
33732
- var AuthMethod;
33733
- (function (AuthMethod) {
33734
- AuthMethod["Emailpassword"] = "email-password";
33735
- AuthMethod["Magicurl"] = "magic-url";
33736
- AuthMethod["Emailotp"] = "email-otp";
33737
- AuthMethod["Anonymous"] = "anonymous";
33738
- AuthMethod["Invites"] = "invites";
33739
- AuthMethod["Jwt"] = "jwt";
33740
- AuthMethod["Phone"] = "phone";
33741
- })(AuthMethod || (AuthMethod = {}));
34334
+ var ProjectAuthMethodId;
34335
+ (function (ProjectAuthMethodId) {
34336
+ ProjectAuthMethodId["Emailpassword"] = "email-password";
34337
+ ProjectAuthMethodId["Magicurl"] = "magic-url";
34338
+ ProjectAuthMethodId["Emailotp"] = "email-otp";
34339
+ ProjectAuthMethodId["Anonymous"] = "anonymous";
34340
+ ProjectAuthMethodId["Invites"] = "invites";
34341
+ ProjectAuthMethodId["Jwt"] = "jwt";
34342
+ ProjectAuthMethodId["Phone"] = "phone";
34343
+ })(ProjectAuthMethodId || (ProjectAuthMethodId = {}));
33742
34344
 
33743
- var ProjectPolicy;
33744
- (function (ProjectPolicy) {
33745
- ProjectPolicy["Passworddictionary"] = "password-dictionary";
33746
- ProjectPolicy["Passwordhistory"] = "password-history";
33747
- ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
33748
- ProjectPolicy["Sessionalert"] = "session-alert";
33749
- ProjectPolicy["Sessionduration"] = "session-duration";
33750
- ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
33751
- ProjectPolicy["Sessionlimit"] = "session-limit";
33752
- ProjectPolicy["Userlimit"] = "user-limit";
33753
- ProjectPolicy["Membershipprivacy"] = "membership-privacy";
33754
- })(ProjectPolicy || (ProjectPolicy = {}));
34345
+ var ProjectOAuth2GooglePrompt;
34346
+ (function (ProjectOAuth2GooglePrompt) {
34347
+ ProjectOAuth2GooglePrompt["None"] = "none";
34348
+ ProjectOAuth2GooglePrompt["Consent"] = "consent";
34349
+ ProjectOAuth2GooglePrompt["SelectAccount"] = "select_account";
34350
+ })(ProjectOAuth2GooglePrompt || (ProjectOAuth2GooglePrompt = {}));
33755
34351
 
33756
- var ProtocolId;
33757
- (function (ProtocolId) {
33758
- ProtocolId["Rest"] = "rest";
33759
- ProtocolId["Graphql"] = "graphql";
33760
- ProtocolId["Websocket"] = "websocket";
33761
- })(ProtocolId || (ProtocolId = {}));
34352
+ var ProjectOAuthProviderId;
34353
+ (function (ProjectOAuthProviderId) {
34354
+ ProjectOAuthProviderId["Amazon"] = "amazon";
34355
+ ProjectOAuthProviderId["Apple"] = "apple";
34356
+ ProjectOAuthProviderId["Auth0"] = "auth0";
34357
+ ProjectOAuthProviderId["Authentik"] = "authentik";
34358
+ ProjectOAuthProviderId["Autodesk"] = "autodesk";
34359
+ ProjectOAuthProviderId["Bitbucket"] = "bitbucket";
34360
+ ProjectOAuthProviderId["Bitly"] = "bitly";
34361
+ ProjectOAuthProviderId["Box"] = "box";
34362
+ ProjectOAuthProviderId["Dailymotion"] = "dailymotion";
34363
+ ProjectOAuthProviderId["Discord"] = "discord";
34364
+ ProjectOAuthProviderId["Disqus"] = "disqus";
34365
+ ProjectOAuthProviderId["Dropbox"] = "dropbox";
34366
+ ProjectOAuthProviderId["Etsy"] = "etsy";
34367
+ ProjectOAuthProviderId["Facebook"] = "facebook";
34368
+ ProjectOAuthProviderId["Figma"] = "figma";
34369
+ ProjectOAuthProviderId["Fusionauth"] = "fusionauth";
34370
+ ProjectOAuthProviderId["Github"] = "github";
34371
+ ProjectOAuthProviderId["Gitlab"] = "gitlab";
34372
+ ProjectOAuthProviderId["Google"] = "google";
34373
+ ProjectOAuthProviderId["Keycloak"] = "keycloak";
34374
+ ProjectOAuthProviderId["Kick"] = "kick";
34375
+ ProjectOAuthProviderId["Linkedin"] = "linkedin";
34376
+ ProjectOAuthProviderId["Microsoft"] = "microsoft";
34377
+ ProjectOAuthProviderId["Notion"] = "notion";
34378
+ ProjectOAuthProviderId["Oidc"] = "oidc";
34379
+ ProjectOAuthProviderId["Okta"] = "okta";
34380
+ ProjectOAuthProviderId["Paypal"] = "paypal";
34381
+ ProjectOAuthProviderId["PaypalSandbox"] = "paypalSandbox";
34382
+ ProjectOAuthProviderId["Podio"] = "podio";
34383
+ ProjectOAuthProviderId["Salesforce"] = "salesforce";
34384
+ ProjectOAuthProviderId["Slack"] = "slack";
34385
+ ProjectOAuthProviderId["Spotify"] = "spotify";
34386
+ ProjectOAuthProviderId["Stripe"] = "stripe";
34387
+ ProjectOAuthProviderId["Tradeshift"] = "tradeshift";
34388
+ ProjectOAuthProviderId["TradeshiftBox"] = "tradeshiftBox";
34389
+ ProjectOAuthProviderId["Twitch"] = "twitch";
34390
+ ProjectOAuthProviderId["Wordpress"] = "wordpress";
34391
+ ProjectOAuthProviderId["X"] = "x";
34392
+ ProjectOAuthProviderId["Yahoo"] = "yahoo";
34393
+ ProjectOAuthProviderId["Yammer"] = "yammer";
34394
+ ProjectOAuthProviderId["Yandex"] = "yandex";
34395
+ ProjectOAuthProviderId["Zoho"] = "zoho";
34396
+ ProjectOAuthProviderId["Zoom"] = "zoom";
34397
+ })(ProjectOAuthProviderId || (ProjectOAuthProviderId = {}));
33762
34398
 
33763
- var ServiceId;
33764
- (function (ServiceId) {
33765
- ServiceId["Account"] = "account";
33766
- ServiceId["Avatars"] = "avatars";
33767
- ServiceId["Databases"] = "databases";
33768
- ServiceId["Tablesdb"] = "tablesdb";
33769
- ServiceId["Locale"] = "locale";
33770
- ServiceId["Health"] = "health";
33771
- ServiceId["Project"] = "project";
33772
- ServiceId["Storage"] = "storage";
33773
- ServiceId["Teams"] = "teams";
33774
- ServiceId["Users"] = "users";
33775
- ServiceId["Vcs"] = "vcs";
33776
- ServiceId["Sites"] = "sites";
33777
- ServiceId["Functions"] = "functions";
33778
- ServiceId["Proxy"] = "proxy";
33779
- ServiceId["Graphql"] = "graphql";
33780
- ServiceId["Migrations"] = "migrations";
33781
- ServiceId["Messaging"] = "messaging";
33782
- })(ServiceId || (ServiceId = {}));
34399
+ var ProjectPolicyId;
34400
+ (function (ProjectPolicyId) {
34401
+ ProjectPolicyId["Passworddictionary"] = "password-dictionary";
34402
+ ProjectPolicyId["Passwordhistory"] = "password-history";
34403
+ ProjectPolicyId["Passwordpersonaldata"] = "password-personal-data";
34404
+ ProjectPolicyId["Sessionalert"] = "session-alert";
34405
+ ProjectPolicyId["Sessionduration"] = "session-duration";
34406
+ ProjectPolicyId["Sessioninvalidation"] = "session-invalidation";
34407
+ ProjectPolicyId["Sessionlimit"] = "session-limit";
34408
+ ProjectPolicyId["Userlimit"] = "user-limit";
34409
+ ProjectPolicyId["Membershipprivacy"] = "membership-privacy";
34410
+ })(ProjectPolicyId || (ProjectPolicyId = {}));
33783
34411
 
33784
- var Secure;
33785
- (function (Secure) {
33786
- Secure["Tls"] = "tls";
33787
- Secure["Ssl"] = "ssl";
33788
- })(Secure || (Secure = {}));
34412
+ var ProjectProtocolId;
34413
+ (function (ProjectProtocolId) {
34414
+ ProjectProtocolId["Rest"] = "rest";
34415
+ ProjectProtocolId["Graphql"] = "graphql";
34416
+ ProjectProtocolId["Websocket"] = "websocket";
34417
+ })(ProjectProtocolId || (ProjectProtocolId = {}));
33789
34418
 
33790
- var EmailTemplateType;
33791
- (function (EmailTemplateType) {
33792
- EmailTemplateType["Verification"] = "verification";
33793
- EmailTemplateType["MagicSession"] = "magicSession";
33794
- EmailTemplateType["Recovery"] = "recovery";
33795
- EmailTemplateType["Invitation"] = "invitation";
33796
- EmailTemplateType["MfaChallenge"] = "mfaChallenge";
33797
- EmailTemplateType["SessionAlert"] = "sessionAlert";
33798
- EmailTemplateType["OtpSession"] = "otpSession";
33799
- })(EmailTemplateType || (EmailTemplateType = {}));
34419
+ var ProjectServiceId;
34420
+ (function (ProjectServiceId) {
34421
+ ProjectServiceId["Account"] = "account";
34422
+ ProjectServiceId["Avatars"] = "avatars";
34423
+ ProjectServiceId["Databases"] = "databases";
34424
+ ProjectServiceId["Tablesdb"] = "tablesdb";
34425
+ ProjectServiceId["Locale"] = "locale";
34426
+ ProjectServiceId["Health"] = "health";
34427
+ ProjectServiceId["Project"] = "project";
34428
+ ProjectServiceId["Storage"] = "storage";
34429
+ ProjectServiceId["Teams"] = "teams";
34430
+ ProjectServiceId["Users"] = "users";
34431
+ ProjectServiceId["Vcs"] = "vcs";
34432
+ ProjectServiceId["Sites"] = "sites";
34433
+ ProjectServiceId["Functions"] = "functions";
34434
+ ProjectServiceId["Proxy"] = "proxy";
34435
+ ProjectServiceId["Graphql"] = "graphql";
34436
+ ProjectServiceId["Migrations"] = "migrations";
34437
+ ProjectServiceId["Messaging"] = "messaging";
34438
+ ProjectServiceId["Advisor"] = "advisor";
34439
+ })(ProjectServiceId || (ProjectServiceId = {}));
33800
34440
 
33801
- var EmailTemplateLocale;
33802
- (function (EmailTemplateLocale) {
33803
- EmailTemplateLocale["Af"] = "af";
33804
- EmailTemplateLocale["Arae"] = "ar-ae";
33805
- EmailTemplateLocale["Arbh"] = "ar-bh";
33806
- EmailTemplateLocale["Ardz"] = "ar-dz";
33807
- EmailTemplateLocale["Areg"] = "ar-eg";
33808
- EmailTemplateLocale["Ariq"] = "ar-iq";
33809
- EmailTemplateLocale["Arjo"] = "ar-jo";
33810
- EmailTemplateLocale["Arkw"] = "ar-kw";
33811
- EmailTemplateLocale["Arlb"] = "ar-lb";
33812
- EmailTemplateLocale["Arly"] = "ar-ly";
33813
- EmailTemplateLocale["Arma"] = "ar-ma";
33814
- EmailTemplateLocale["Arom"] = "ar-om";
33815
- EmailTemplateLocale["Arqa"] = "ar-qa";
33816
- EmailTemplateLocale["Arsa"] = "ar-sa";
33817
- EmailTemplateLocale["Arsy"] = "ar-sy";
33818
- EmailTemplateLocale["Artn"] = "ar-tn";
33819
- EmailTemplateLocale["Arye"] = "ar-ye";
33820
- EmailTemplateLocale["As"] = "as";
33821
- EmailTemplateLocale["Az"] = "az";
33822
- EmailTemplateLocale["Be"] = "be";
33823
- EmailTemplateLocale["Bg"] = "bg";
33824
- EmailTemplateLocale["Bh"] = "bh";
33825
- EmailTemplateLocale["Bn"] = "bn";
33826
- EmailTemplateLocale["Bs"] = "bs";
33827
- EmailTemplateLocale["Ca"] = "ca";
33828
- EmailTemplateLocale["Cs"] = "cs";
33829
- EmailTemplateLocale["Cy"] = "cy";
33830
- EmailTemplateLocale["Da"] = "da";
33831
- EmailTemplateLocale["De"] = "de";
33832
- EmailTemplateLocale["Deat"] = "de-at";
33833
- EmailTemplateLocale["Dech"] = "de-ch";
33834
- EmailTemplateLocale["Deli"] = "de-li";
33835
- EmailTemplateLocale["Delu"] = "de-lu";
33836
- EmailTemplateLocale["El"] = "el";
33837
- EmailTemplateLocale["En"] = "en";
33838
- EmailTemplateLocale["Enau"] = "en-au";
33839
- EmailTemplateLocale["Enbz"] = "en-bz";
33840
- EmailTemplateLocale["Enca"] = "en-ca";
33841
- EmailTemplateLocale["Engb"] = "en-gb";
33842
- EmailTemplateLocale["Enie"] = "en-ie";
33843
- EmailTemplateLocale["Enjm"] = "en-jm";
33844
- EmailTemplateLocale["Ennz"] = "en-nz";
33845
- EmailTemplateLocale["Entt"] = "en-tt";
33846
- EmailTemplateLocale["Enus"] = "en-us";
33847
- EmailTemplateLocale["Enza"] = "en-za";
33848
- EmailTemplateLocale["Eo"] = "eo";
33849
- EmailTemplateLocale["Es"] = "es";
33850
- EmailTemplateLocale["Esar"] = "es-ar";
33851
- EmailTemplateLocale["Esbo"] = "es-bo";
33852
- EmailTemplateLocale["Escl"] = "es-cl";
33853
- EmailTemplateLocale["Esco"] = "es-co";
33854
- EmailTemplateLocale["Escr"] = "es-cr";
33855
- EmailTemplateLocale["Esdo"] = "es-do";
33856
- EmailTemplateLocale["Esec"] = "es-ec";
33857
- EmailTemplateLocale["Esgt"] = "es-gt";
33858
- EmailTemplateLocale["Eshn"] = "es-hn";
33859
- EmailTemplateLocale["Esmx"] = "es-mx";
33860
- EmailTemplateLocale["Esni"] = "es-ni";
33861
- EmailTemplateLocale["Espa"] = "es-pa";
33862
- EmailTemplateLocale["Espe"] = "es-pe";
33863
- EmailTemplateLocale["Espr"] = "es-pr";
33864
- EmailTemplateLocale["Espy"] = "es-py";
33865
- EmailTemplateLocale["Essv"] = "es-sv";
33866
- EmailTemplateLocale["Esuy"] = "es-uy";
33867
- EmailTemplateLocale["Esve"] = "es-ve";
33868
- EmailTemplateLocale["Et"] = "et";
33869
- EmailTemplateLocale["Eu"] = "eu";
33870
- EmailTemplateLocale["Fa"] = "fa";
33871
- EmailTemplateLocale["Fi"] = "fi";
33872
- EmailTemplateLocale["Fo"] = "fo";
33873
- EmailTemplateLocale["Fr"] = "fr";
33874
- EmailTemplateLocale["Frbe"] = "fr-be";
33875
- EmailTemplateLocale["Frca"] = "fr-ca";
33876
- EmailTemplateLocale["Frch"] = "fr-ch";
33877
- EmailTemplateLocale["Frlu"] = "fr-lu";
33878
- EmailTemplateLocale["Ga"] = "ga";
33879
- EmailTemplateLocale["Gd"] = "gd";
33880
- EmailTemplateLocale["He"] = "he";
33881
- EmailTemplateLocale["Hi"] = "hi";
33882
- EmailTemplateLocale["Hr"] = "hr";
33883
- EmailTemplateLocale["Hu"] = "hu";
33884
- EmailTemplateLocale["Id"] = "id";
33885
- EmailTemplateLocale["Is"] = "is";
33886
- EmailTemplateLocale["It"] = "it";
33887
- EmailTemplateLocale["Itch"] = "it-ch";
33888
- EmailTemplateLocale["Ja"] = "ja";
33889
- EmailTemplateLocale["Ji"] = "ji";
33890
- EmailTemplateLocale["Ko"] = "ko";
33891
- EmailTemplateLocale["Ku"] = "ku";
33892
- EmailTemplateLocale["Lt"] = "lt";
33893
- EmailTemplateLocale["Lv"] = "lv";
33894
- EmailTemplateLocale["Mk"] = "mk";
33895
- EmailTemplateLocale["Ml"] = "ml";
33896
- EmailTemplateLocale["Ms"] = "ms";
33897
- EmailTemplateLocale["Mt"] = "mt";
33898
- EmailTemplateLocale["Nb"] = "nb";
33899
- EmailTemplateLocale["Ne"] = "ne";
33900
- EmailTemplateLocale["Nl"] = "nl";
33901
- EmailTemplateLocale["Nlbe"] = "nl-be";
33902
- EmailTemplateLocale["Nn"] = "nn";
33903
- EmailTemplateLocale["No"] = "no";
33904
- EmailTemplateLocale["Pa"] = "pa";
33905
- EmailTemplateLocale["Pl"] = "pl";
33906
- EmailTemplateLocale["Pt"] = "pt";
33907
- EmailTemplateLocale["Ptbr"] = "pt-br";
33908
- EmailTemplateLocale["Rm"] = "rm";
33909
- EmailTemplateLocale["Ro"] = "ro";
33910
- EmailTemplateLocale["Romd"] = "ro-md";
33911
- EmailTemplateLocale["Ru"] = "ru";
33912
- EmailTemplateLocale["Rumd"] = "ru-md";
33913
- EmailTemplateLocale["Sb"] = "sb";
33914
- EmailTemplateLocale["Sk"] = "sk";
33915
- EmailTemplateLocale["Sl"] = "sl";
33916
- EmailTemplateLocale["Sq"] = "sq";
33917
- EmailTemplateLocale["Sr"] = "sr";
33918
- EmailTemplateLocale["Sv"] = "sv";
33919
- EmailTemplateLocale["Svfi"] = "sv-fi";
33920
- EmailTemplateLocale["Th"] = "th";
33921
- EmailTemplateLocale["Tn"] = "tn";
33922
- EmailTemplateLocale["Tr"] = "tr";
33923
- EmailTemplateLocale["Ts"] = "ts";
33924
- EmailTemplateLocale["Ua"] = "ua";
33925
- EmailTemplateLocale["Ur"] = "ur";
33926
- EmailTemplateLocale["Ve"] = "ve";
33927
- EmailTemplateLocale["Vi"] = "vi";
33928
- EmailTemplateLocale["Xh"] = "xh";
33929
- EmailTemplateLocale["Zhcn"] = "zh-cn";
33930
- EmailTemplateLocale["Zhhk"] = "zh-hk";
33931
- EmailTemplateLocale["Zhsg"] = "zh-sg";
33932
- EmailTemplateLocale["Zhtw"] = "zh-tw";
33933
- EmailTemplateLocale["Zu"] = "zu";
33934
- })(EmailTemplateLocale || (EmailTemplateLocale = {}));
34441
+ var ProjectSMTPSecure;
34442
+ (function (ProjectSMTPSecure) {
34443
+ ProjectSMTPSecure["Tls"] = "tls";
34444
+ ProjectSMTPSecure["Ssl"] = "ssl";
34445
+ })(ProjectSMTPSecure || (ProjectSMTPSecure = {}));
33935
34446
 
33936
34447
  var ProjectUsageRange;
33937
34448
  (function (ProjectUsageRange) {
@@ -33939,28 +34450,26 @@ var ProjectUsageRange;
33939
34450
  ProjectUsageRange["OneDay"] = "1d";
33940
34451
  })(ProjectUsageRange || (ProjectUsageRange = {}));
33941
34452
 
33942
- var Region;
33943
- (function (Region) {
33944
- Region["Fra"] = "fra";
33945
- Region["Nyc"] = "nyc";
33946
- Region["Syd"] = "syd";
33947
- Region["Sfo"] = "sfo";
33948
- Region["Sgp"] = "sgp";
33949
- Region["Tor"] = "tor";
33950
- })(Region || (Region = {}));
34453
+ var ScheduleResourceType;
34454
+ (function (ScheduleResourceType) {
34455
+ ScheduleResourceType["Function"] = "function";
34456
+ ScheduleResourceType["Execution"] = "execution";
34457
+ ScheduleResourceType["Message"] = "message";
34458
+ ScheduleResourceType["Backup"] = "backup";
34459
+ })(ScheduleResourceType || (ScheduleResourceType = {}));
33951
34460
 
33952
- var Status;
33953
- (function (Status) {
33954
- Status["Active"] = "active";
33955
- })(Status || (Status = {}));
34461
+ var ProjectStatus;
34462
+ (function (ProjectStatus) {
34463
+ ProjectStatus["Active"] = "active";
34464
+ })(ProjectStatus || (ProjectStatus = {}));
33956
34465
 
33957
- var StatusCode;
33958
- (function (StatusCode) {
33959
- StatusCode["MovedPermanently301"] = "301";
33960
- StatusCode["Found302"] = "302";
33961
- StatusCode["TemporaryRedirect307"] = "307";
33962
- StatusCode["PermanentRedirect308"] = "308";
33963
- })(StatusCode || (StatusCode = {}));
34466
+ var RedirectStatusCode;
34467
+ (function (RedirectStatusCode) {
34468
+ RedirectStatusCode["MovedPermanently"] = "301";
34469
+ RedirectStatusCode["Found"] = "302";
34470
+ RedirectStatusCode["TemporaryRedirect"] = "307";
34471
+ RedirectStatusCode["PermanentRedirect"] = "308";
34472
+ })(RedirectStatusCode || (RedirectStatusCode = {}));
33964
34473
 
33965
34474
  var ProxyResourceType;
33966
34475
  (function (ProxyResourceType) {
@@ -33968,142 +34477,138 @@ var ProxyResourceType;
33968
34477
  ProxyResourceType["Function"] = "function";
33969
34478
  })(ProxyResourceType || (ProxyResourceType = {}));
33970
34479
 
33971
- var Framework;
33972
- (function (Framework) {
33973
- Framework["Analog"] = "analog";
33974
- Framework["Angular"] = "angular";
33975
- Framework["Nextjs"] = "nextjs";
33976
- Framework["React"] = "react";
33977
- Framework["Nuxt"] = "nuxt";
33978
- Framework["Vue"] = "vue";
33979
- Framework["Sveltekit"] = "sveltekit";
33980
- Framework["Astro"] = "astro";
33981
- Framework["Tanstackstart"] = "tanstack-start";
33982
- Framework["Remix"] = "remix";
33983
- Framework["Lynx"] = "lynx";
33984
- Framework["Flutter"] = "flutter";
33985
- Framework["Reactnative"] = "react-native";
33986
- Framework["Vite"] = "vite";
33987
- Framework["Other"] = "other";
33988
- })(Framework || (Framework = {}));
34480
+ var SiteFramework;
34481
+ (function (SiteFramework) {
34482
+ SiteFramework["Analog"] = "analog";
34483
+ SiteFramework["Angular"] = "angular";
34484
+ SiteFramework["Nextjs"] = "nextjs";
34485
+ SiteFramework["React"] = "react";
34486
+ SiteFramework["Nuxt"] = "nuxt";
34487
+ SiteFramework["Vue"] = "vue";
34488
+ SiteFramework["Sveltekit"] = "sveltekit";
34489
+ SiteFramework["Astro"] = "astro";
34490
+ SiteFramework["Tanstackstart"] = "tanstack-start";
34491
+ SiteFramework["Remix"] = "remix";
34492
+ SiteFramework["Lynx"] = "lynx";
34493
+ SiteFramework["Flutter"] = "flutter";
34494
+ SiteFramework["Reactnative"] = "react-native";
34495
+ SiteFramework["Vite"] = "vite";
34496
+ SiteFramework["Other"] = "other";
34497
+ })(SiteFramework || (SiteFramework = {}));
33989
34498
 
33990
- var BuildRuntime;
33991
- (function (BuildRuntime) {
33992
- BuildRuntime["Node145"] = "node-14.5";
33993
- BuildRuntime["Node160"] = "node-16.0";
33994
- BuildRuntime["Node180"] = "node-18.0";
33995
- BuildRuntime["Node190"] = "node-19.0";
33996
- BuildRuntime["Node200"] = "node-20.0";
33997
- BuildRuntime["Node210"] = "node-21.0";
33998
- BuildRuntime["Node22"] = "node-22";
33999
- BuildRuntime["Node23"] = "node-23";
34000
- BuildRuntime["Node24"] = "node-24";
34001
- BuildRuntime["Node25"] = "node-25";
34002
- BuildRuntime["Php80"] = "php-8.0";
34003
- BuildRuntime["Php81"] = "php-8.1";
34004
- BuildRuntime["Php82"] = "php-8.2";
34005
- BuildRuntime["Php83"] = "php-8.3";
34006
- BuildRuntime["Php84"] = "php-8.4";
34007
- BuildRuntime["Ruby30"] = "ruby-3.0";
34008
- BuildRuntime["Ruby31"] = "ruby-3.1";
34009
- BuildRuntime["Ruby32"] = "ruby-3.2";
34010
- BuildRuntime["Ruby33"] = "ruby-3.3";
34011
- BuildRuntime["Ruby34"] = "ruby-3.4";
34012
- BuildRuntime["Ruby40"] = "ruby-4.0";
34013
- BuildRuntime["Python38"] = "python-3.8";
34014
- BuildRuntime["Python39"] = "python-3.9";
34015
- BuildRuntime["Python310"] = "python-3.10";
34016
- BuildRuntime["Python311"] = "python-3.11";
34017
- BuildRuntime["Python312"] = "python-3.12";
34018
- BuildRuntime["Python313"] = "python-3.13";
34019
- BuildRuntime["Python314"] = "python-3.14";
34020
- BuildRuntime["Pythonml311"] = "python-ml-3.11";
34021
- BuildRuntime["Pythonml312"] = "python-ml-3.12";
34022
- BuildRuntime["Pythonml313"] = "python-ml-3.13";
34023
- BuildRuntime["Deno140"] = "deno-1.40";
34024
- BuildRuntime["Deno146"] = "deno-1.46";
34025
- BuildRuntime["Deno20"] = "deno-2.0";
34026
- BuildRuntime["Deno25"] = "deno-2.5";
34027
- BuildRuntime["Deno26"] = "deno-2.6";
34028
- BuildRuntime["Dart215"] = "dart-2.15";
34029
- BuildRuntime["Dart216"] = "dart-2.16";
34030
- BuildRuntime["Dart217"] = "dart-2.17";
34031
- BuildRuntime["Dart218"] = "dart-2.18";
34032
- BuildRuntime["Dart219"] = "dart-2.19";
34033
- BuildRuntime["Dart30"] = "dart-3.0";
34034
- BuildRuntime["Dart31"] = "dart-3.1";
34035
- BuildRuntime["Dart33"] = "dart-3.3";
34036
- BuildRuntime["Dart35"] = "dart-3.5";
34037
- BuildRuntime["Dart38"] = "dart-3.8";
34038
- BuildRuntime["Dart39"] = "dart-3.9";
34039
- BuildRuntime["Dart310"] = "dart-3.10";
34040
- BuildRuntime["Dart311"] = "dart-3.11";
34041
- BuildRuntime["Dotnet60"] = "dotnet-6.0";
34042
- BuildRuntime["Dotnet70"] = "dotnet-7.0";
34043
- BuildRuntime["Dotnet80"] = "dotnet-8.0";
34044
- BuildRuntime["Dotnet10"] = "dotnet-10";
34045
- BuildRuntime["Java80"] = "java-8.0";
34046
- BuildRuntime["Java110"] = "java-11.0";
34047
- BuildRuntime["Java170"] = "java-17.0";
34048
- BuildRuntime["Java180"] = "java-18.0";
34049
- BuildRuntime["Java210"] = "java-21.0";
34050
- BuildRuntime["Java22"] = "java-22";
34051
- BuildRuntime["Java25"] = "java-25";
34052
- BuildRuntime["Swift55"] = "swift-5.5";
34053
- BuildRuntime["Swift58"] = "swift-5.8";
34054
- BuildRuntime["Swift59"] = "swift-5.9";
34055
- BuildRuntime["Swift510"] = "swift-5.10";
34056
- BuildRuntime["Swift62"] = "swift-6.2";
34057
- BuildRuntime["Kotlin16"] = "kotlin-1.6";
34058
- BuildRuntime["Kotlin18"] = "kotlin-1.8";
34059
- BuildRuntime["Kotlin19"] = "kotlin-1.9";
34060
- BuildRuntime["Kotlin20"] = "kotlin-2.0";
34061
- BuildRuntime["Kotlin23"] = "kotlin-2.3";
34062
- BuildRuntime["Cpp17"] = "cpp-17";
34063
- BuildRuntime["Cpp20"] = "cpp-20";
34064
- BuildRuntime["Bun10"] = "bun-1.0";
34065
- BuildRuntime["Bun11"] = "bun-1.1";
34066
- BuildRuntime["Bun12"] = "bun-1.2";
34067
- BuildRuntime["Bun13"] = "bun-1.3";
34068
- BuildRuntime["Go123"] = "go-1.23";
34069
- BuildRuntime["Go124"] = "go-1.24";
34070
- BuildRuntime["Go125"] = "go-1.25";
34071
- BuildRuntime["Go126"] = "go-1.26";
34072
- BuildRuntime["Rust183"] = "rust-1.83";
34073
- BuildRuntime["Static1"] = "static-1";
34074
- BuildRuntime["Flutter324"] = "flutter-3.24";
34075
- BuildRuntime["Flutter327"] = "flutter-3.27";
34076
- BuildRuntime["Flutter329"] = "flutter-3.29";
34077
- BuildRuntime["Flutter332"] = "flutter-3.32";
34078
- BuildRuntime["Flutter335"] = "flutter-3.35";
34079
- BuildRuntime["Flutter338"] = "flutter-3.38";
34080
- BuildRuntime["Flutter341"] = "flutter-3.41";
34081
- })(BuildRuntime || (BuildRuntime = {}));
34499
+ var SiteBuildRuntime;
34500
+ (function (SiteBuildRuntime) {
34501
+ SiteBuildRuntime["Node145"] = "node-14.5";
34502
+ SiteBuildRuntime["Node160"] = "node-16.0";
34503
+ SiteBuildRuntime["Node180"] = "node-18.0";
34504
+ SiteBuildRuntime["Node190"] = "node-19.0";
34505
+ SiteBuildRuntime["Node200"] = "node-20.0";
34506
+ SiteBuildRuntime["Node210"] = "node-21.0";
34507
+ SiteBuildRuntime["Node22"] = "node-22";
34508
+ SiteBuildRuntime["Node23"] = "node-23";
34509
+ SiteBuildRuntime["Node24"] = "node-24";
34510
+ SiteBuildRuntime["Node25"] = "node-25";
34511
+ SiteBuildRuntime["Php80"] = "php-8.0";
34512
+ SiteBuildRuntime["Php81"] = "php-8.1";
34513
+ SiteBuildRuntime["Php82"] = "php-8.2";
34514
+ SiteBuildRuntime["Php83"] = "php-8.3";
34515
+ SiteBuildRuntime["Php84"] = "php-8.4";
34516
+ SiteBuildRuntime["Ruby30"] = "ruby-3.0";
34517
+ SiteBuildRuntime["Ruby31"] = "ruby-3.1";
34518
+ SiteBuildRuntime["Ruby32"] = "ruby-3.2";
34519
+ SiteBuildRuntime["Ruby33"] = "ruby-3.3";
34520
+ SiteBuildRuntime["Ruby34"] = "ruby-3.4";
34521
+ SiteBuildRuntime["Ruby40"] = "ruby-4.0";
34522
+ SiteBuildRuntime["Python38"] = "python-3.8";
34523
+ SiteBuildRuntime["Python39"] = "python-3.9";
34524
+ SiteBuildRuntime["Python310"] = "python-3.10";
34525
+ SiteBuildRuntime["Python311"] = "python-3.11";
34526
+ SiteBuildRuntime["Python312"] = "python-3.12";
34527
+ SiteBuildRuntime["Python313"] = "python-3.13";
34528
+ SiteBuildRuntime["Python314"] = "python-3.14";
34529
+ SiteBuildRuntime["Pythonml311"] = "python-ml-3.11";
34530
+ SiteBuildRuntime["Pythonml312"] = "python-ml-3.12";
34531
+ SiteBuildRuntime["Pythonml313"] = "python-ml-3.13";
34532
+ SiteBuildRuntime["Deno140"] = "deno-1.40";
34533
+ SiteBuildRuntime["Deno146"] = "deno-1.46";
34534
+ SiteBuildRuntime["Deno20"] = "deno-2.0";
34535
+ SiteBuildRuntime["Deno25"] = "deno-2.5";
34536
+ SiteBuildRuntime["Deno26"] = "deno-2.6";
34537
+ SiteBuildRuntime["Dart215"] = "dart-2.15";
34538
+ SiteBuildRuntime["Dart216"] = "dart-2.16";
34539
+ SiteBuildRuntime["Dart217"] = "dart-2.17";
34540
+ SiteBuildRuntime["Dart218"] = "dart-2.18";
34541
+ SiteBuildRuntime["Dart219"] = "dart-2.19";
34542
+ SiteBuildRuntime["Dart30"] = "dart-3.0";
34543
+ SiteBuildRuntime["Dart31"] = "dart-3.1";
34544
+ SiteBuildRuntime["Dart33"] = "dart-3.3";
34545
+ SiteBuildRuntime["Dart35"] = "dart-3.5";
34546
+ SiteBuildRuntime["Dart38"] = "dart-3.8";
34547
+ SiteBuildRuntime["Dart39"] = "dart-3.9";
34548
+ SiteBuildRuntime["Dart310"] = "dart-3.10";
34549
+ SiteBuildRuntime["Dart311"] = "dart-3.11";
34550
+ SiteBuildRuntime["Dart312"] = "dart-3.12";
34551
+ SiteBuildRuntime["Dotnet60"] = "dotnet-6.0";
34552
+ SiteBuildRuntime["Dotnet70"] = "dotnet-7.0";
34553
+ SiteBuildRuntime["Dotnet80"] = "dotnet-8.0";
34554
+ SiteBuildRuntime["Dotnet10"] = "dotnet-10";
34555
+ SiteBuildRuntime["Java80"] = "java-8.0";
34556
+ SiteBuildRuntime["Java110"] = "java-11.0";
34557
+ SiteBuildRuntime["Java170"] = "java-17.0";
34558
+ SiteBuildRuntime["Java180"] = "java-18.0";
34559
+ SiteBuildRuntime["Java210"] = "java-21.0";
34560
+ SiteBuildRuntime["Java22"] = "java-22";
34561
+ SiteBuildRuntime["Java25"] = "java-25";
34562
+ SiteBuildRuntime["Swift55"] = "swift-5.5";
34563
+ SiteBuildRuntime["Swift58"] = "swift-5.8";
34564
+ SiteBuildRuntime["Swift59"] = "swift-5.9";
34565
+ SiteBuildRuntime["Swift510"] = "swift-5.10";
34566
+ SiteBuildRuntime["Swift62"] = "swift-6.2";
34567
+ SiteBuildRuntime["Kotlin16"] = "kotlin-1.6";
34568
+ SiteBuildRuntime["Kotlin18"] = "kotlin-1.8";
34569
+ SiteBuildRuntime["Kotlin19"] = "kotlin-1.9";
34570
+ SiteBuildRuntime["Kotlin20"] = "kotlin-2.0";
34571
+ SiteBuildRuntime["Kotlin23"] = "kotlin-2.3";
34572
+ SiteBuildRuntime["Cpp17"] = "cpp-17";
34573
+ SiteBuildRuntime["Cpp20"] = "cpp-20";
34574
+ SiteBuildRuntime["Bun10"] = "bun-1.0";
34575
+ SiteBuildRuntime["Bun11"] = "bun-1.1";
34576
+ SiteBuildRuntime["Bun12"] = "bun-1.2";
34577
+ SiteBuildRuntime["Bun13"] = "bun-1.3";
34578
+ SiteBuildRuntime["Go123"] = "go-1.23";
34579
+ SiteBuildRuntime["Go124"] = "go-1.24";
34580
+ SiteBuildRuntime["Go125"] = "go-1.25";
34581
+ SiteBuildRuntime["Go126"] = "go-1.26";
34582
+ SiteBuildRuntime["Rust183"] = "rust-1.83";
34583
+ SiteBuildRuntime["Static1"] = "static-1";
34584
+ SiteBuildRuntime["Flutter324"] = "flutter-3.24";
34585
+ SiteBuildRuntime["Flutter327"] = "flutter-3.27";
34586
+ SiteBuildRuntime["Flutter329"] = "flutter-3.29";
34587
+ SiteBuildRuntime["Flutter332"] = "flutter-3.32";
34588
+ SiteBuildRuntime["Flutter335"] = "flutter-3.35";
34589
+ SiteBuildRuntime["Flutter338"] = "flutter-3.38";
34590
+ SiteBuildRuntime["Flutter341"] = "flutter-3.41";
34591
+ SiteBuildRuntime["Flutter344"] = "flutter-3.44";
34592
+ })(SiteBuildRuntime || (SiteBuildRuntime = {}));
34082
34593
 
34083
- var Adapter;
34084
- (function (Adapter) {
34085
- Adapter["Static"] = "static";
34086
- Adapter["Ssr"] = "ssr";
34087
- })(Adapter || (Adapter = {}));
34594
+ var SiteAdapter;
34595
+ (function (SiteAdapter) {
34596
+ SiteAdapter["Static"] = "static";
34597
+ SiteAdapter["Ssr"] = "ssr";
34598
+ })(SiteAdapter || (SiteAdapter = {}));
34088
34599
 
34089
- var Frameworks;
34090
- (function (Frameworks) {
34091
- Frameworks["Analog"] = "analog";
34092
- Frameworks["Angular"] = "angular";
34093
- Frameworks["Nextjs"] = "nextjs";
34094
- Frameworks["React"] = "react";
34095
- Frameworks["Nuxt"] = "nuxt";
34096
- Frameworks["Vue"] = "vue";
34097
- Frameworks["Sveltekit"] = "sveltekit";
34098
- Frameworks["Astro"] = "astro";
34099
- Frameworks["Tanstackstart"] = "tanstack-start";
34100
- Frameworks["Remix"] = "remix";
34101
- Frameworks["Lynx"] = "lynx";
34102
- Frameworks["Flutter"] = "flutter";
34103
- Frameworks["Reactnative"] = "react-native";
34104
- Frameworks["Vite"] = "vite";
34105
- Frameworks["Other"] = "other";
34106
- })(Frameworks || (Frameworks = {}));
34600
+ var SiteTemplateUseCase;
34601
+ (function (SiteTemplateUseCase) {
34602
+ SiteTemplateUseCase["Portfolio"] = "portfolio";
34603
+ SiteTemplateUseCase["Starter"] = "starter";
34604
+ SiteTemplateUseCase["Events"] = "events";
34605
+ SiteTemplateUseCase["Ecommerce"] = "ecommerce";
34606
+ SiteTemplateUseCase["Documentation"] = "documentation";
34607
+ SiteTemplateUseCase["Blog"] = "blog";
34608
+ SiteTemplateUseCase["Ai"] = "ai";
34609
+ SiteTemplateUseCase["Forms"] = "forms";
34610
+ SiteTemplateUseCase["Dashboard"] = "dashboard";
34611
+ })(SiteTemplateUseCase || (SiteTemplateUseCase = {}));
34107
34612
 
34108
34613
  var Compression;
34109
34614
  (function (Compression) {
@@ -34161,10 +34666,10 @@ var VCSDetectionType;
34161
34666
  VCSDetectionType["Framework"] = "framework";
34162
34667
  })(VCSDetectionType || (VCSDetectionType = {}));
34163
34668
 
34164
- var Model;
34165
- (function (Model) {
34166
- Model["Embeddinggemma"] = "embeddinggemma";
34167
- })(Model || (Model = {}));
34669
+ var EmbeddingModel;
34670
+ (function (EmbeddingModel) {
34671
+ EmbeddingModel["Embeddinggemma"] = "embeddinggemma";
34672
+ })(EmbeddingModel || (EmbeddingModel = {}));
34168
34673
 
34169
34674
  var VectorsDBIndexType;
34170
34675
  (function (VectorsDBIndexType) {
@@ -34247,6 +34752,13 @@ var ExecutionStatus;
34247
34752
  ExecutionStatus["Scheduled"] = "scheduled";
34248
34753
  })(ExecutionStatus || (ExecutionStatus = {}));
34249
34754
 
34755
+ var OAuth2GooglePrompt;
34756
+ (function (OAuth2GooglePrompt) {
34757
+ OAuth2GooglePrompt["None"] = "none";
34758
+ OAuth2GooglePrompt["Consent"] = "consent";
34759
+ OAuth2GooglePrompt["SelectAccount"] = "select_account";
34760
+ })(OAuth2GooglePrompt || (OAuth2GooglePrompt = {}));
34761
+
34250
34762
  var PlatformType;
34251
34763
  (function (PlatformType) {
34252
34764
  PlatformType["Windows"] = "windows";
@@ -34318,5 +34830,5 @@ var DomainPurchaseStatus;
34318
34830
  DomainPurchaseStatus["Cancelled"] = "cancelled";
34319
34831
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
34320
34832
 
34321
- export { Account, Activities, Adapter, Addon, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Model, NHostMigrationResource, Name, OAuthProvider, OnDuplicate, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectPolicy, ProjectUsageRange, Projects, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, Scopes, Secure, ServiceId, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34833
+ export { Account, AccountKeyScopes, Activities, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, BlockResourceType, Browser, BrowserPermission, BrowserTheme, CacheDatabase, CacheTarget, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainRegistrationType, DomainSuggestionType, DomainTransferStatusEnum, Domains, EmbeddingModel, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FirebaseMigrationResource, Flag, FunctionRuntime, FunctionTemplateUseCase, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, HealthQueueName, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, MigrationOnDuplicate, Migrations, NHostMigrationResource, OAuth2GooglePrompt, OAuthProvider, Operator, OrderBy, Organization, OrganizationAddon, OrganizationKeyScopes, Organizations, PasswordHash, Permission, Platform, PlatformType, Presences, Project, ProjectAuthMethodId, ProjectEmailTemplateId, ProjectEmailTemplateLocale, ProjectKeyScopes, ProjectOAuth2GooglePrompt, ProjectOAuthProviderId, ProjectPolicyId, ProjectProtocolId, ProjectSMTPSecure, ProjectServiceId, ProjectStatus, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, RedirectStatusCode, Region, RelationMutate, RelationshipType, Role, ScheduleResourceType, SiteAdapter, SiteBuildRuntime, SiteFramework, SiteTemplateUseCase, Sites, SmtpEncryption, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Timezone, Tokens, Usage, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34322
34834
  //# sourceMappingURL=sdk.js.map