@appwrite.io/console 13.0.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 (71) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +1658 -1162
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1656 -1163
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +1676 -1180
  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-provider.d.ts +1 -3
  25. package/types/enums/organization-addon.d.ts +4 -0
  26. package/types/enums/organization-key-scopes.d.ts +12 -0
  27. package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
  28. package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
  29. package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
  30. package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +10 -8
  31. package/types/enums/{prompt.d.ts → project-o-auth-2-google-prompt.d.ts} +1 -1
  32. package/types/enums/project-o-auth-provider-id.d.ts +45 -0
  33. package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +1 -1
  34. package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
  35. package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
  36. package/types/enums/project-smtp-secure.d.ts +4 -0
  37. package/types/enums/project-status.d.ts +3 -0
  38. package/types/enums/query-suggestion-resource.d.ts +10 -1
  39. package/types/enums/redirect-status-code.d.ts +6 -0
  40. package/types/enums/schedule-resource-type.d.ts +6 -0
  41. package/types/enums/{adapter.d.ts → site-adapter.d.ts} +1 -1
  42. package/types/enums/{runtimes.d.ts → site-build-runtime.d.ts} +4 -2
  43. package/types/enums/{framework.d.ts → site-framework.d.ts} +1 -1
  44. package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
  45. package/types/index.d.ts +35 -27
  46. package/types/models.d.ts +1183 -1187
  47. package/types/services/account.d.ts +9 -9
  48. package/types/services/avatars.d.ts +5 -5
  49. package/types/services/console.d.ts +31 -0
  50. package/types/services/documents-db.d.ts +1 -4
  51. package/types/services/domains.d.ts +216 -216
  52. package/types/services/functions.d.ts +36 -25
  53. package/types/services/health.d.ts +5 -5
  54. package/types/services/manager.d.ts +49 -9
  55. package/types/services/migrations.d.ts +13 -13
  56. package/types/services/organization.d.ts +234 -0
  57. package/types/services/organizations.d.ts +5 -131
  58. package/types/services/presences.d.ts +166 -0
  59. package/types/services/project.d.ts +93 -86
  60. package/types/services/projects.d.ts +10 -159
  61. package/types/services/proxy.d.ts +5 -5
  62. package/types/services/realtime.d.ts +45 -3
  63. package/types/services/sites.d.ts +43 -32
  64. package/types/services/usage.d.ts +50 -0
  65. package/types/services/vectors-db.d.ts +6 -9
  66. package/types/enums/addon.d.ts +0 -3
  67. package/types/enums/build-runtime.d.ts +0 -91
  68. package/types/enums/frameworks.d.ts +0 -17
  69. package/types/enums/secure.d.ts +0 -4
  70. package/types/enums/status-code.d.ts +0 -6
  71. 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': '13.0.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,10 +18668,213 @@ class Organizations {
18350
18668
  }
18351
18669
  }
18352
18670
 
18671
+ class Presences {
18672
+ constructor(client) {
18673
+ this.client = client;
18674
+ }
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';
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
+ }
18701
+ const uri = new URL(this.client.config.endpoint + apiPath);
18702
+ const apiHeaders = {};
18703
+ return this.client.call('get', uri, apiHeaders, payload);
18704
+ }
18705
+ getUsage(paramsOrFirst) {
18706
+ let params;
18707
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('range' in paramsOrFirst))) {
18708
+ params = (paramsOrFirst || {});
18709
+ }
18710
+ else {
18711
+ params = {
18712
+ range: paramsOrFirst
18713
+ };
18714
+ }
18715
+ const range = params.range;
18716
+ const apiPath = '/presences/usage';
18717
+ const payload = {};
18718
+ if (typeof range !== 'undefined') {
18719
+ payload['range'] = range;
18720
+ }
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 || {});
18729
+ }
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);
18740
+ const payload = {};
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;
18783
+ }
18784
+ const uri = new URL(this.client.config.endpoint + apiPath);
18785
+ const apiHeaders = {
18786
+ 'content-type': 'application/json',
18787
+ };
18788
+ return this.client.call('put', uri, apiHeaders, payload);
18789
+ }
18790
+ update(paramsOrFirst, ...rest) {
18791
+ let params;
18792
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18793
+ params = (paramsOrFirst || {});
18794
+ }
18795
+ else {
18796
+ params = {
18797
+ presenceId: paramsOrFirst,
18798
+ status: rest[0],
18799
+ expiresAt: rest[1],
18800
+ metadata: rest[2],
18801
+ permissions: rest[3],
18802
+ purge: rest[4]
18803
+ };
18804
+ }
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"');
18813
+ }
18814
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18815
+ const payload = {};
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;
18830
+ }
18831
+ const uri = new URL(this.client.config.endpoint + apiPath);
18832
+ const apiHeaders = {
18833
+ 'content-type': 'application/json',
18834
+ };
18835
+ return this.client.call('patch', uri, apiHeaders, payload);
18836
+ }
18837
+ delete(paramsOrFirst) {
18838
+ let params;
18839
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18840
+ params = (paramsOrFirst || {});
18841
+ }
18842
+ else {
18843
+ params = {
18844
+ presenceId: paramsOrFirst
18845
+ };
18846
+ }
18847
+ const presenceId = params.presenceId;
18848
+ if (typeof presenceId === 'undefined') {
18849
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18850
+ }
18851
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18852
+ const payload = {};
18853
+ const uri = new URL(this.client.config.endpoint + apiPath);
18854
+ const apiHeaders = {
18855
+ 'content-type': 'application/json',
18856
+ };
18857
+ return this.client.call('delete', uri, apiHeaders, payload);
18858
+ }
18859
+ }
18860
+
18353
18861
  class Project {
18354
18862
  constructor(client) {
18355
18863
  this.client = client;
18356
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);
18877
+ }
18357
18878
  /**
18358
18879
  * Delete a project.
18359
18880
  *
@@ -20699,7 +21220,7 @@ class Project {
20699
21220
  const apiHeaders = {};
20700
21221
  return this.client.call('get', uri, apiHeaders, payload);
20701
21222
  }
20702
- updateDenyCanonicalEmailPolicy(paramsOrFirst) {
21223
+ updateDenyAliasedEmailPolicy(paramsOrFirst) {
20703
21224
  let params;
20704
21225
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20705
21226
  params = (paramsOrFirst || {});
@@ -20713,7 +21234,7 @@ class Project {
20713
21234
  if (typeof enabled === 'undefined') {
20714
21235
  throw new AppwriteException('Missing required parameter: "enabled"');
20715
21236
  }
20716
- const apiPath = '/project/policies/deny-canonical-email';
21237
+ const apiPath = '/project/policies/deny-aliased-email';
20717
21238
  const payload = {};
20718
21239
  if (typeof enabled !== 'undefined') {
20719
21240
  payload['enabled'] = enabled;
@@ -21490,222 +22011,6 @@ class Projects {
21490
22011
  constructor(client) {
21491
22012
  this.client = client;
21492
22013
  }
21493
- list(paramsOrFirst, ...rest) {
21494
- let params;
21495
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21496
- params = (paramsOrFirst || {});
21497
- }
21498
- else {
21499
- params = {
21500
- queries: paramsOrFirst,
21501
- search: rest[0],
21502
- total: rest[1]
21503
- };
21504
- }
21505
- const queries = params.queries;
21506
- const search = params.search;
21507
- const total = params.total;
21508
- const apiPath = '/projects';
21509
- const payload = {};
21510
- if (typeof queries !== 'undefined') {
21511
- payload['queries'] = queries;
21512
- }
21513
- if (typeof search !== 'undefined') {
21514
- payload['search'] = search;
21515
- }
21516
- if (typeof total !== 'undefined') {
21517
- payload['total'] = total;
21518
- }
21519
- const uri = new URL(this.client.config.endpoint + apiPath);
21520
- const apiHeaders = {};
21521
- return this.client.call('get', uri, apiHeaders, payload);
21522
- }
21523
- create(paramsOrFirst, ...rest) {
21524
- let params;
21525
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21526
- params = (paramsOrFirst || {});
21527
- }
21528
- else {
21529
- params = {
21530
- projectId: paramsOrFirst,
21531
- name: rest[0],
21532
- teamId: rest[1],
21533
- region: rest[2],
21534
- description: rest[3],
21535
- logo: rest[4],
21536
- url: rest[5],
21537
- legalName: rest[6],
21538
- legalCountry: rest[7],
21539
- legalState: rest[8],
21540
- legalCity: rest[9],
21541
- legalAddress: rest[10],
21542
- legalTaxId: rest[11]
21543
- };
21544
- }
21545
- const projectId = params.projectId;
21546
- const name = params.name;
21547
- const teamId = params.teamId;
21548
- const region = params.region;
21549
- const description = params.description;
21550
- const logo = params.logo;
21551
- const url = params.url;
21552
- const legalName = params.legalName;
21553
- const legalCountry = params.legalCountry;
21554
- const legalState = params.legalState;
21555
- const legalCity = params.legalCity;
21556
- const legalAddress = params.legalAddress;
21557
- const legalTaxId = params.legalTaxId;
21558
- if (typeof projectId === 'undefined') {
21559
- throw new AppwriteException('Missing required parameter: "projectId"');
21560
- }
21561
- if (typeof name === 'undefined') {
21562
- throw new AppwriteException('Missing required parameter: "name"');
21563
- }
21564
- if (typeof teamId === 'undefined') {
21565
- throw new AppwriteException('Missing required parameter: "teamId"');
21566
- }
21567
- const apiPath = '/projects';
21568
- const payload = {};
21569
- if (typeof projectId !== 'undefined') {
21570
- payload['projectId'] = projectId;
21571
- }
21572
- if (typeof name !== 'undefined') {
21573
- payload['name'] = name;
21574
- }
21575
- if (typeof teamId !== 'undefined') {
21576
- payload['teamId'] = teamId;
21577
- }
21578
- if (typeof region !== 'undefined') {
21579
- payload['region'] = region;
21580
- }
21581
- if (typeof description !== 'undefined') {
21582
- payload['description'] = description;
21583
- }
21584
- if (typeof logo !== 'undefined') {
21585
- payload['logo'] = logo;
21586
- }
21587
- if (typeof url !== 'undefined') {
21588
- payload['url'] = url;
21589
- }
21590
- if (typeof legalName !== 'undefined') {
21591
- payload['legalName'] = legalName;
21592
- }
21593
- if (typeof legalCountry !== 'undefined') {
21594
- payload['legalCountry'] = legalCountry;
21595
- }
21596
- if (typeof legalState !== 'undefined') {
21597
- payload['legalState'] = legalState;
21598
- }
21599
- if (typeof legalCity !== 'undefined') {
21600
- payload['legalCity'] = legalCity;
21601
- }
21602
- if (typeof legalAddress !== 'undefined') {
21603
- payload['legalAddress'] = legalAddress;
21604
- }
21605
- if (typeof legalTaxId !== 'undefined') {
21606
- payload['legalTaxId'] = legalTaxId;
21607
- }
21608
- const uri = new URL(this.client.config.endpoint + apiPath);
21609
- const apiHeaders = {
21610
- 'content-type': 'application/json',
21611
- };
21612
- return this.client.call('post', uri, apiHeaders, payload);
21613
- }
21614
- get(paramsOrFirst) {
21615
- let params;
21616
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21617
- params = (paramsOrFirst || {});
21618
- }
21619
- else {
21620
- params = {
21621
- projectId: paramsOrFirst
21622
- };
21623
- }
21624
- const projectId = params.projectId;
21625
- if (typeof projectId === 'undefined') {
21626
- throw new AppwriteException('Missing required parameter: "projectId"');
21627
- }
21628
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21629
- const payload = {};
21630
- const uri = new URL(this.client.config.endpoint + apiPath);
21631
- const apiHeaders = {};
21632
- return this.client.call('get', uri, apiHeaders, payload);
21633
- }
21634
- update(paramsOrFirst, ...rest) {
21635
- let params;
21636
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21637
- params = (paramsOrFirst || {});
21638
- }
21639
- else {
21640
- params = {
21641
- projectId: paramsOrFirst,
21642
- name: rest[0],
21643
- description: rest[1],
21644
- logo: rest[2],
21645
- url: rest[3],
21646
- legalName: rest[4],
21647
- legalCountry: rest[5],
21648
- legalState: rest[6],
21649
- legalCity: rest[7],
21650
- legalAddress: rest[8],
21651
- legalTaxId: rest[9]
21652
- };
21653
- }
21654
- const projectId = params.projectId;
21655
- const name = params.name;
21656
- const description = params.description;
21657
- const logo = params.logo;
21658
- const url = params.url;
21659
- const legalName = params.legalName;
21660
- const legalCountry = params.legalCountry;
21661
- const legalState = params.legalState;
21662
- const legalCity = params.legalCity;
21663
- const legalAddress = params.legalAddress;
21664
- const legalTaxId = params.legalTaxId;
21665
- if (typeof projectId === 'undefined') {
21666
- throw new AppwriteException('Missing required parameter: "projectId"');
21667
- }
21668
- if (typeof name === 'undefined') {
21669
- throw new AppwriteException('Missing required parameter: "name"');
21670
- }
21671
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21672
- const payload = {};
21673
- if (typeof name !== 'undefined') {
21674
- payload['name'] = name;
21675
- }
21676
- if (typeof description !== 'undefined') {
21677
- payload['description'] = description;
21678
- }
21679
- if (typeof logo !== 'undefined') {
21680
- payload['logo'] = logo;
21681
- }
21682
- if (typeof url !== 'undefined') {
21683
- payload['url'] = url;
21684
- }
21685
- if (typeof legalName !== 'undefined') {
21686
- payload['legalName'] = legalName;
21687
- }
21688
- if (typeof legalCountry !== 'undefined') {
21689
- payload['legalCountry'] = legalCountry;
21690
- }
21691
- if (typeof legalState !== 'undefined') {
21692
- payload['legalState'] = legalState;
21693
- }
21694
- if (typeof legalCity !== 'undefined') {
21695
- payload['legalCity'] = legalCity;
21696
- }
21697
- if (typeof legalAddress !== 'undefined') {
21698
- payload['legalAddress'] = legalAddress;
21699
- }
21700
- if (typeof legalTaxId !== 'undefined') {
21701
- payload['legalTaxId'] = legalTaxId;
21702
- }
21703
- const uri = new URL(this.client.config.endpoint + apiPath);
21704
- const apiHeaders = {
21705
- 'content-type': 'application/json',
21706
- };
21707
- return this.client.call('patch', uri, apiHeaders, payload);
21708
- }
21709
22014
  updateConsoleAccess(paramsOrFirst) {
21710
22015
  let params;
21711
22016
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22371,9 +22676,11 @@ class Sites {
22371
22676
  providerBranch: rest[14],
22372
22677
  providerSilentMode: rest[15],
22373
22678
  providerRootDirectory: rest[16],
22374
- buildSpecification: rest[17],
22375
- runtimeSpecification: rest[18],
22376
- deploymentRetention: rest[19]
22679
+ providerBranches: rest[17],
22680
+ providerPaths: rest[18],
22681
+ buildSpecification: rest[19],
22682
+ runtimeSpecification: rest[20],
22683
+ deploymentRetention: rest[21]
22377
22684
  };
22378
22685
  }
22379
22686
  const siteId = params.siteId;
@@ -22394,6 +22701,8 @@ class Sites {
22394
22701
  const providerBranch = params.providerBranch;
22395
22702
  const providerSilentMode = params.providerSilentMode;
22396
22703
  const providerRootDirectory = params.providerRootDirectory;
22704
+ const providerBranches = params.providerBranches;
22705
+ const providerPaths = params.providerPaths;
22397
22706
  const buildSpecification = params.buildSpecification;
22398
22707
  const runtimeSpecification = params.runtimeSpecification;
22399
22708
  const deploymentRetention = params.deploymentRetention;
@@ -22465,6 +22774,12 @@ class Sites {
22465
22774
  if (typeof providerRootDirectory !== 'undefined') {
22466
22775
  payload['providerRootDirectory'] = providerRootDirectory;
22467
22776
  }
22777
+ if (typeof providerBranches !== 'undefined') {
22778
+ payload['providerBranches'] = providerBranches;
22779
+ }
22780
+ if (typeof providerPaths !== 'undefined') {
22781
+ payload['providerPaths'] = providerPaths;
22782
+ }
22468
22783
  if (typeof buildSpecification !== 'undefined') {
22469
22784
  payload['buildSpecification'] = buildSpecification;
22470
22785
  }
@@ -22626,9 +22941,11 @@ class Sites {
22626
22941
  providerBranch: rest[14],
22627
22942
  providerSilentMode: rest[15],
22628
22943
  providerRootDirectory: rest[16],
22629
- buildSpecification: rest[17],
22630
- runtimeSpecification: rest[18],
22631
- deploymentRetention: rest[19]
22944
+ providerBranches: rest[17],
22945
+ providerPaths: rest[18],
22946
+ buildSpecification: rest[19],
22947
+ runtimeSpecification: rest[20],
22948
+ deploymentRetention: rest[21]
22632
22949
  };
22633
22950
  }
22634
22951
  const siteId = params.siteId;
@@ -22649,6 +22966,8 @@ class Sites {
22649
22966
  const providerBranch = params.providerBranch;
22650
22967
  const providerSilentMode = params.providerSilentMode;
22651
22968
  const providerRootDirectory = params.providerRootDirectory;
22969
+ const providerBranches = params.providerBranches;
22970
+ const providerPaths = params.providerPaths;
22652
22971
  const buildSpecification = params.buildSpecification;
22653
22972
  const runtimeSpecification = params.runtimeSpecification;
22654
22973
  const deploymentRetention = params.deploymentRetention;
@@ -22714,6 +23033,12 @@ class Sites {
22714
23033
  if (typeof providerRootDirectory !== 'undefined') {
22715
23034
  payload['providerRootDirectory'] = providerRootDirectory;
22716
23035
  }
23036
+ if (typeof providerBranches !== 'undefined') {
23037
+ payload['providerBranches'] = providerBranches;
23038
+ }
23039
+ if (typeof providerPaths !== 'undefined') {
23040
+ payload['providerPaths'] = providerPaths;
23041
+ }
22717
23042
  if (typeof buildSpecification !== 'undefined') {
22718
23043
  payload['buildSpecification'] = buildSpecification;
22719
23044
  }
@@ -28023,6 +28348,62 @@ class Tokens {
28023
28348
  }
28024
28349
  }
28025
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
+
28026
28407
  class Users {
28027
28408
  constructor(client) {
28028
28409
  this.client = client;
@@ -29955,21 +30336,16 @@ class VectorsDB {
29955
30336
  else {
29956
30337
  params = {
29957
30338
  queries: paramsOrFirst,
29958
- search: rest[0],
29959
- total: rest[1]
30339
+ total: rest[0]
29960
30340
  };
29961
30341
  }
29962
30342
  const queries = params.queries;
29963
- const search = params.search;
29964
30343
  const total = params.total;
29965
30344
  const apiPath = '/vectorsdb';
29966
30345
  const payload = {};
29967
30346
  if (typeof queries !== 'undefined') {
29968
30347
  payload['queries'] = queries;
29969
30348
  }
29970
- if (typeof search !== 'undefined') {
29971
- payload['search'] = search;
29972
- }
29973
30349
  if (typeof total !== 'undefined') {
29974
30350
  payload['total'] = total;
29975
30351
  }
@@ -31373,11 +31749,11 @@ class Realtime {
31373
31749
  this.TYPE_EVENT = 'event';
31374
31750
  this.TYPE_PONG = 'pong';
31375
31751
  this.TYPE_CONNECTED = 'connected';
31376
- this.TYPE_RESPONSE = 'response';
31377
31752
  this.DEBOUNCE_MS = 1;
31378
31753
  this.HEARTBEAT_INTERVAL = 20000; // 20 seconds in milliseconds
31379
31754
  this.activeSubscriptions = new Map();
31380
31755
  this.pendingSubscribes = new Map();
31756
+ this.appConnected = false;
31381
31757
  this.subCallDepth = 0;
31382
31758
  this.reconnectAttempts = 0;
31383
31759
  this.connectionId = 0;
@@ -31428,9 +31804,35 @@ class Realtime {
31428
31804
  this.heartbeatTimer = undefined;
31429
31805
  }
31430
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
+ */
31431
31815
  createSocket() {
31432
31816
  return __awaiter(this, void 0, void 0, function* () {
31433
- 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) {
31434
31836
  this.reconnect = false;
31435
31837
  yield this.closeSocket();
31436
31838
  return;
@@ -31457,6 +31859,15 @@ class Realtime {
31457
31859
  this.reconnect = true;
31458
31860
  }
31459
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
+ }
31460
31871
  try {
31461
31872
  const connectionId = ++this.connectionId;
31462
31873
  const socket = (this.socket = new WebSocket(url));
@@ -31485,6 +31896,7 @@ class Realtime {
31485
31896
  if (connectionId !== this.connectionId || socket !== this.socket) {
31486
31897
  return;
31487
31898
  }
31899
+ this.appConnected = false;
31488
31900
  this.stopHeartbeat();
31489
31901
  this.onCloseCallbacks.forEach(callback => callback());
31490
31902
  if (!this.reconnect || event.code === RealtimeCode.POLICY_VIOLATION) {
@@ -31602,7 +32014,19 @@ class Realtime {
31602
32014
  return __awaiter(this, void 0, void 0, function* () {
31603
32015
  this.activeSubscriptions.clear();
31604
32016
  this.pendingSubscribes.clear();
32017
+ this.pendingPresence = undefined;
32018
+ this.appConnected = false;
31605
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;
31606
32030
  yield this.closeSocket();
31607
32031
  });
31608
32032
  }
@@ -31610,6 +32034,18 @@ class Realtime {
31610
32034
  if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
31611
32035
  return;
31612
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
+ }
31613
32049
  if (this.pendingSubscribes.size < 1) {
31614
32050
  return;
31615
32051
  }
@@ -31739,6 +32175,63 @@ class Realtime {
31739
32175
  return { unsubscribe, update, close };
31740
32176
  });
31741
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
+ }
31742
32235
  handleMessage(message) {
31743
32236
  if (!message.type) {
31744
32237
  return;
@@ -31756,9 +32249,6 @@ class Realtime {
31756
32249
  case this.TYPE_PONG:
31757
32250
  // Handle pong response if needed
31758
32251
  break;
31759
- case this.TYPE_RESPONSE:
31760
- this.handleResponseAction(message);
31761
- break;
31762
32252
  }
31763
32253
  }
31764
32254
  handleResponseConnected(message) {
@@ -31788,7 +32278,9 @@ class Realtime {
31788
32278
  for (const subscriptionId of this.activeSubscriptions.keys()) {
31789
32279
  this.enqueuePendingSubscribe(subscriptionId);
31790
32280
  }
32281
+ this.appConnected = true;
31791
32282
  this.sendPendingSubscribes();
32283
+ this.flushPendingPresence();
31792
32284
  }
31793
32285
  handleResponseError(message) {
31794
32286
  var _a, _b;
@@ -31823,11 +32315,6 @@ class Realtime {
31823
32315
  });
31824
32316
  }
31825
32317
  }
31826
- handleResponseAction(_message) {
31827
- // The SDK generates subscriptionIds client-side and sends them on every
31828
- // subscribe/unsubscribe, so subscribe/unsubscribe acks carry no state
31829
- // the SDK needs to reconcile.
31830
- }
31831
32318
  }
31832
32319
 
31833
32320
  /**
@@ -32063,6 +32550,9 @@ class Channel {
32063
32550
  static membership(id) {
32064
32551
  return new Channel(["memberships", normalize(id)]);
32065
32552
  }
32553
+ static presence(id) {
32554
+ return new Channel(["presences", normalize(id)]);
32555
+ }
32066
32556
  static account() {
32067
32557
  return "account";
32068
32558
  }
@@ -32085,6 +32575,9 @@ class Channel {
32085
32575
  static memberships() {
32086
32576
  return "memberships";
32087
32577
  }
32578
+ static presences() {
32579
+ return "presences";
32580
+ }
32088
32581
  }
32089
32582
 
32090
32583
  var Condition;
@@ -32352,101 +32845,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
32352
32845
  */
32353
32846
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
32354
32847
 
32355
- var Scopes;
32356
- (function (Scopes) {
32357
- Scopes["Account"] = "account";
32358
- Scopes["TeamsRead"] = "teams.read";
32359
- Scopes["TeamsWrite"] = "teams.write";
32360
- Scopes["ProjectRead"] = "project.read";
32361
- Scopes["ProjectWrite"] = "project.write";
32362
- Scopes["KeysRead"] = "keys.read";
32363
- Scopes["KeysWrite"] = "keys.write";
32364
- Scopes["PlatformsRead"] = "platforms.read";
32365
- Scopes["PlatformsWrite"] = "platforms.write";
32366
- Scopes["MocksRead"] = "mocks.read";
32367
- Scopes["MocksWrite"] = "mocks.write";
32368
- Scopes["PoliciesRead"] = "policies.read";
32369
- Scopes["PoliciesWrite"] = "policies.write";
32370
- Scopes["ProjectPoliciesRead"] = "project.policies.read";
32371
- Scopes["ProjectPoliciesWrite"] = "project.policies.write";
32372
- Scopes["TemplatesRead"] = "templates.read";
32373
- Scopes["TemplatesWrite"] = "templates.write";
32374
- Scopes["Oauth2Read"] = "oauth2.read";
32375
- Scopes["Oauth2Write"] = "oauth2.write";
32376
- Scopes["UsersRead"] = "users.read";
32377
- Scopes["UsersWrite"] = "users.write";
32378
- Scopes["SessionsRead"] = "sessions.read";
32379
- Scopes["SessionsWrite"] = "sessions.write";
32380
- Scopes["DatabasesRead"] = "databases.read";
32381
- Scopes["DatabasesWrite"] = "databases.write";
32382
- Scopes["TablesRead"] = "tables.read";
32383
- Scopes["TablesWrite"] = "tables.write";
32384
- Scopes["ColumnsRead"] = "columns.read";
32385
- Scopes["ColumnsWrite"] = "columns.write";
32386
- Scopes["IndexesRead"] = "indexes.read";
32387
- Scopes["IndexesWrite"] = "indexes.write";
32388
- Scopes["RowsRead"] = "rows.read";
32389
- Scopes["RowsWrite"] = "rows.write";
32390
- Scopes["CollectionsRead"] = "collections.read";
32391
- Scopes["CollectionsWrite"] = "collections.write";
32392
- Scopes["AttributesRead"] = "attributes.read";
32393
- Scopes["AttributesWrite"] = "attributes.write";
32394
- Scopes["DocumentsRead"] = "documents.read";
32395
- Scopes["DocumentsWrite"] = "documents.write";
32396
- Scopes["BucketsRead"] = "buckets.read";
32397
- Scopes["BucketsWrite"] = "buckets.write";
32398
- Scopes["FilesRead"] = "files.read";
32399
- Scopes["FilesWrite"] = "files.write";
32400
- Scopes["TokensRead"] = "tokens.read";
32401
- Scopes["TokensWrite"] = "tokens.write";
32402
- Scopes["FunctionsRead"] = "functions.read";
32403
- Scopes["FunctionsWrite"] = "functions.write";
32404
- Scopes["ExecutionsRead"] = "executions.read";
32405
- Scopes["ExecutionsWrite"] = "executions.write";
32406
- Scopes["ExecutionRead"] = "execution.read";
32407
- Scopes["ExecutionWrite"] = "execution.write";
32408
- Scopes["SitesRead"] = "sites.read";
32409
- Scopes["SitesWrite"] = "sites.write";
32410
- Scopes["LogRead"] = "log.read";
32411
- Scopes["LogWrite"] = "log.write";
32412
- Scopes["ProvidersRead"] = "providers.read";
32413
- Scopes["ProvidersWrite"] = "providers.write";
32414
- Scopes["TopicsRead"] = "topics.read";
32415
- Scopes["TopicsWrite"] = "topics.write";
32416
- Scopes["SubscribersRead"] = "subscribers.read";
32417
- Scopes["SubscribersWrite"] = "subscribers.write";
32418
- Scopes["TargetsRead"] = "targets.read";
32419
- Scopes["TargetsWrite"] = "targets.write";
32420
- Scopes["MessagesRead"] = "messages.read";
32421
- Scopes["MessagesWrite"] = "messages.write";
32422
- Scopes["RulesRead"] = "rules.read";
32423
- Scopes["RulesWrite"] = "rules.write";
32424
- Scopes["WebhooksRead"] = "webhooks.read";
32425
- Scopes["WebhooksWrite"] = "webhooks.write";
32426
- Scopes["LocaleRead"] = "locale.read";
32427
- Scopes["AvatarsRead"] = "avatars.read";
32428
- Scopes["HealthRead"] = "health.read";
32429
- Scopes["AssistantRead"] = "assistant.read";
32430
- Scopes["MigrationsRead"] = "migrations.read";
32431
- Scopes["MigrationsWrite"] = "migrations.write";
32432
- Scopes["SchedulesRead"] = "schedules.read";
32433
- Scopes["SchedulesWrite"] = "schedules.write";
32434
- Scopes["VcsRead"] = "vcs.read";
32435
- Scopes["VcsWrite"] = "vcs.write";
32436
- Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32437
- Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32438
- Scopes["ArchivesRead"] = "archives.read";
32439
- Scopes["ArchivesWrite"] = "archives.write";
32440
- Scopes["RestorationsRead"] = "restorations.read";
32441
- Scopes["RestorationsWrite"] = "restorations.write";
32442
- Scopes["DomainsRead"] = "domains.read";
32443
- Scopes["DomainsWrite"] = "domains.write";
32444
- Scopes["EventsRead"] = "events.read";
32445
- Scopes["ProjectsRead"] = "projects.read";
32446
- Scopes["ProjectsWrite"] = "projects.write";
32447
- Scopes["DevKeysRead"] = "devKeys.read";
32448
- Scopes["DevKeysWrite"] = "devKeys.write";
32449
- })(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 = {}));
32450
32854
 
32451
32855
  var AuthenticatorType;
32452
32856
  (function (AuthenticatorType) {
@@ -32506,8 +32910,6 @@ var OAuthProvider;
32506
32910
  OAuthProvider["Yandex"] = "yandex";
32507
32911
  OAuthProvider["Zoho"] = "zoho";
32508
32912
  OAuthProvider["Zoom"] = "zoom";
32509
- OAuthProvider["GithubImagine"] = "githubImagine";
32510
- OAuthProvider["GoogleImagine"] = "googleImagine";
32511
32913
  })(OAuthProvider || (OAuthProvider = {}));
32512
32914
 
32513
32915
  var Browser;
@@ -32748,11 +33150,11 @@ var Flag;
32748
33150
  Flag["Zimbabwe"] = "zw";
32749
33151
  })(Flag || (Flag = {}));
32750
33152
 
32751
- var Theme;
32752
- (function (Theme) {
32753
- Theme["Light"] = "light";
32754
- Theme["Dark"] = "dark";
32755
- })(Theme || (Theme = {}));
33153
+ var BrowserTheme;
33154
+ (function (BrowserTheme) {
33155
+ BrowserTheme["Light"] = "light";
33156
+ BrowserTheme["Dark"] = "dark";
33157
+ })(BrowserTheme || (BrowserTheme = {}));
32756
33158
 
32757
33159
  var Timezone;
32758
33160
  (function (Timezone) {
@@ -33218,6 +33620,7 @@ var BackupServices;
33218
33620
  BackupServices["Tablesdb"] = "tablesdb";
33219
33621
  BackupServices["Documentsdb"] = "documentsdb";
33220
33622
  BackupServices["Vectorsdb"] = "vectorsdb";
33623
+ BackupServices["DedicatedDatabases"] = "dedicatedDatabases";
33221
33624
  BackupServices["Functions"] = "functions";
33222
33625
  BackupServices["Storage"] = "storage";
33223
33626
  })(BackupServices || (BackupServices = {}));
@@ -33263,6 +33666,8 @@ var QuerySuggestionResource;
33263
33666
  QuerySuggestionResource["Repositories"] = "repositories";
33264
33667
  QuerySuggestionResource["VcsComments"] = "vcscomments";
33265
33668
  QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
33669
+ QuerySuggestionResource["Reports"] = "reports";
33670
+ QuerySuggestionResource["Insights"] = "insights";
33266
33671
  QuerySuggestionResource["Users"] = "users";
33267
33672
  QuerySuggestionResource["Cache"] = "cache";
33268
33673
  QuerySuggestionResource["Tokens"] = "tokens";
@@ -33277,6 +33682,7 @@ var QuerySuggestionResource;
33277
33682
  QuerySuggestionResource["Topics"] = "topics";
33278
33683
  QuerySuggestionResource["Subscribers"] = "subscribers";
33279
33684
  QuerySuggestionResource["Targets"] = "targets";
33685
+ QuerySuggestionResource["PresenceLogs"] = "presencelogs";
33280
33686
  QuerySuggestionResource["Companies"] = "companies";
33281
33687
  QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
33282
33688
  QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
@@ -33307,8 +33713,160 @@ var QuerySuggestionResource;
33307
33713
  QuerySuggestionResource["Transactions"] = "transactions";
33308
33714
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
33309
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";
33310
33722
  })(QuerySuggestionResource || (QuerySuggestionResource = {}));
33311
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
+
33312
33870
  var UsageRange;
33313
33871
  (function (UsageRange) {
33314
33872
  UsageRange["TwentyFourHours"] = "24h";
@@ -33352,223 +33910,223 @@ var DocumentsDBIndexType;
33352
33910
  DocumentsDBIndexType["Unique"] = "unique";
33353
33911
  })(DocumentsDBIndexType || (DocumentsDBIndexType = {}));
33354
33912
 
33355
- var RegistrationType;
33356
- (function (RegistrationType) {
33357
- RegistrationType["New"] = "new";
33358
- RegistrationType["Transfer"] = "transfer";
33359
- RegistrationType["Renewal"] = "renewal";
33360
- RegistrationType["Trade"] = "trade";
33361
- })(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 = {}));
33362
33920
 
33363
- var FilterType;
33364
- (function (FilterType) {
33365
- FilterType["Premium"] = "premium";
33366
- FilterType["Suggestion"] = "suggestion";
33367
- })(FilterType || (FilterType = {}));
33921
+ var DomainSuggestionType;
33922
+ (function (DomainSuggestionType) {
33923
+ DomainSuggestionType["Premium"] = "premium";
33924
+ DomainSuggestionType["Suggestion"] = "suggestion";
33925
+ })(DomainSuggestionType || (DomainSuggestionType = {}));
33368
33926
 
33369
- var Runtime;
33370
- (function (Runtime) {
33371
- Runtime["Node145"] = "node-14.5";
33372
- Runtime["Node160"] = "node-16.0";
33373
- Runtime["Node180"] = "node-18.0";
33374
- Runtime["Node190"] = "node-19.0";
33375
- Runtime["Node200"] = "node-20.0";
33376
- Runtime["Node210"] = "node-21.0";
33377
- Runtime["Node22"] = "node-22";
33378
- Runtime["Node23"] = "node-23";
33379
- Runtime["Node24"] = "node-24";
33380
- Runtime["Node25"] = "node-25";
33381
- Runtime["Php80"] = "php-8.0";
33382
- Runtime["Php81"] = "php-8.1";
33383
- Runtime["Php82"] = "php-8.2";
33384
- Runtime["Php83"] = "php-8.3";
33385
- Runtime["Php84"] = "php-8.4";
33386
- Runtime["Ruby30"] = "ruby-3.0";
33387
- Runtime["Ruby31"] = "ruby-3.1";
33388
- Runtime["Ruby32"] = "ruby-3.2";
33389
- Runtime["Ruby33"] = "ruby-3.3";
33390
- Runtime["Ruby34"] = "ruby-3.4";
33391
- Runtime["Ruby40"] = "ruby-4.0";
33392
- Runtime["Python38"] = "python-3.8";
33393
- Runtime["Python39"] = "python-3.9";
33394
- Runtime["Python310"] = "python-3.10";
33395
- Runtime["Python311"] = "python-3.11";
33396
- Runtime["Python312"] = "python-3.12";
33397
- Runtime["Python313"] = "python-3.13";
33398
- Runtime["Python314"] = "python-3.14";
33399
- Runtime["Pythonml311"] = "python-ml-3.11";
33400
- Runtime["Pythonml312"] = "python-ml-3.12";
33401
- Runtime["Pythonml313"] = "python-ml-3.13";
33402
- Runtime["Deno140"] = "deno-1.40";
33403
- Runtime["Deno146"] = "deno-1.46";
33404
- Runtime["Deno20"] = "deno-2.0";
33405
- Runtime["Deno25"] = "deno-2.5";
33406
- Runtime["Deno26"] = "deno-2.6";
33407
- Runtime["Dart215"] = "dart-2.15";
33408
- Runtime["Dart216"] = "dart-2.16";
33409
- Runtime["Dart217"] = "dart-2.17";
33410
- Runtime["Dart218"] = "dart-2.18";
33411
- Runtime["Dart219"] = "dart-2.19";
33412
- Runtime["Dart30"] = "dart-3.0";
33413
- Runtime["Dart31"] = "dart-3.1";
33414
- Runtime["Dart33"] = "dart-3.3";
33415
- Runtime["Dart35"] = "dart-3.5";
33416
- Runtime["Dart38"] = "dart-3.8";
33417
- Runtime["Dart39"] = "dart-3.9";
33418
- Runtime["Dart310"] = "dart-3.10";
33419
- Runtime["Dart311"] = "dart-3.11";
33420
- Runtime["Dotnet60"] = "dotnet-6.0";
33421
- Runtime["Dotnet70"] = "dotnet-7.0";
33422
- Runtime["Dotnet80"] = "dotnet-8.0";
33423
- Runtime["Dotnet10"] = "dotnet-10";
33424
- Runtime["Java80"] = "java-8.0";
33425
- Runtime["Java110"] = "java-11.0";
33426
- Runtime["Java170"] = "java-17.0";
33427
- Runtime["Java180"] = "java-18.0";
33428
- Runtime["Java210"] = "java-21.0";
33429
- Runtime["Java22"] = "java-22";
33430
- Runtime["Java25"] = "java-25";
33431
- Runtime["Swift55"] = "swift-5.5";
33432
- Runtime["Swift58"] = "swift-5.8";
33433
- Runtime["Swift59"] = "swift-5.9";
33434
- Runtime["Swift510"] = "swift-5.10";
33435
- Runtime["Swift62"] = "swift-6.2";
33436
- Runtime["Kotlin16"] = "kotlin-1.6";
33437
- Runtime["Kotlin18"] = "kotlin-1.8";
33438
- Runtime["Kotlin19"] = "kotlin-1.9";
33439
- Runtime["Kotlin20"] = "kotlin-2.0";
33440
- Runtime["Kotlin23"] = "kotlin-2.3";
33441
- Runtime["Cpp17"] = "cpp-17";
33442
- Runtime["Cpp20"] = "cpp-20";
33443
- Runtime["Bun10"] = "bun-1.0";
33444
- Runtime["Bun11"] = "bun-1.1";
33445
- Runtime["Bun12"] = "bun-1.2";
33446
- Runtime["Bun13"] = "bun-1.3";
33447
- Runtime["Go123"] = "go-1.23";
33448
- Runtime["Go124"] = "go-1.24";
33449
- Runtime["Go125"] = "go-1.25";
33450
- Runtime["Go126"] = "go-1.26";
33451
- Runtime["Rust183"] = "rust-1.83";
33452
- Runtime["Static1"] = "static-1";
33453
- Runtime["Flutter324"] = "flutter-3.24";
33454
- Runtime["Flutter327"] = "flutter-3.27";
33455
- Runtime["Flutter329"] = "flutter-3.29";
33456
- Runtime["Flutter332"] = "flutter-3.32";
33457
- Runtime["Flutter335"] = "flutter-3.35";
33458
- Runtime["Flutter338"] = "flutter-3.38";
33459
- Runtime["Flutter341"] = "flutter-3.41";
33460
- })(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 = {}));
33461
34021
 
33462
- var Runtimes;
33463
- (function (Runtimes) {
33464
- Runtimes["Node145"] = "node-14.5";
33465
- Runtimes["Node160"] = "node-16.0";
33466
- Runtimes["Node180"] = "node-18.0";
33467
- Runtimes["Node190"] = "node-19.0";
33468
- Runtimes["Node200"] = "node-20.0";
33469
- Runtimes["Node210"] = "node-21.0";
33470
- Runtimes["Node22"] = "node-22";
33471
- Runtimes["Node23"] = "node-23";
33472
- Runtimes["Node24"] = "node-24";
33473
- Runtimes["Node25"] = "node-25";
33474
- Runtimes["Php80"] = "php-8.0";
33475
- Runtimes["Php81"] = "php-8.1";
33476
- Runtimes["Php82"] = "php-8.2";
33477
- Runtimes["Php83"] = "php-8.3";
33478
- Runtimes["Php84"] = "php-8.4";
33479
- Runtimes["Ruby30"] = "ruby-3.0";
33480
- Runtimes["Ruby31"] = "ruby-3.1";
33481
- Runtimes["Ruby32"] = "ruby-3.2";
33482
- Runtimes["Ruby33"] = "ruby-3.3";
33483
- Runtimes["Ruby34"] = "ruby-3.4";
33484
- Runtimes["Ruby40"] = "ruby-4.0";
33485
- Runtimes["Python38"] = "python-3.8";
33486
- Runtimes["Python39"] = "python-3.9";
33487
- Runtimes["Python310"] = "python-3.10";
33488
- Runtimes["Python311"] = "python-3.11";
33489
- Runtimes["Python312"] = "python-3.12";
33490
- Runtimes["Python313"] = "python-3.13";
33491
- Runtimes["Python314"] = "python-3.14";
33492
- Runtimes["Pythonml311"] = "python-ml-3.11";
33493
- Runtimes["Pythonml312"] = "python-ml-3.12";
33494
- Runtimes["Pythonml313"] = "python-ml-3.13";
33495
- Runtimes["Deno140"] = "deno-1.40";
33496
- Runtimes["Deno146"] = "deno-1.46";
33497
- Runtimes["Deno20"] = "deno-2.0";
33498
- Runtimes["Deno25"] = "deno-2.5";
33499
- Runtimes["Deno26"] = "deno-2.6";
33500
- Runtimes["Dart215"] = "dart-2.15";
33501
- Runtimes["Dart216"] = "dart-2.16";
33502
- Runtimes["Dart217"] = "dart-2.17";
33503
- Runtimes["Dart218"] = "dart-2.18";
33504
- Runtimes["Dart219"] = "dart-2.19";
33505
- Runtimes["Dart30"] = "dart-3.0";
33506
- Runtimes["Dart31"] = "dart-3.1";
33507
- Runtimes["Dart33"] = "dart-3.3";
33508
- Runtimes["Dart35"] = "dart-3.5";
33509
- Runtimes["Dart38"] = "dart-3.8";
33510
- Runtimes["Dart39"] = "dart-3.9";
33511
- Runtimes["Dart310"] = "dart-3.10";
33512
- Runtimes["Dart311"] = "dart-3.11";
33513
- Runtimes["Dotnet60"] = "dotnet-6.0";
33514
- Runtimes["Dotnet70"] = "dotnet-7.0";
33515
- Runtimes["Dotnet80"] = "dotnet-8.0";
33516
- Runtimes["Dotnet10"] = "dotnet-10";
33517
- Runtimes["Java80"] = "java-8.0";
33518
- Runtimes["Java110"] = "java-11.0";
33519
- Runtimes["Java170"] = "java-17.0";
33520
- Runtimes["Java180"] = "java-18.0";
33521
- Runtimes["Java210"] = "java-21.0";
33522
- Runtimes["Java22"] = "java-22";
33523
- Runtimes["Java25"] = "java-25";
33524
- Runtimes["Swift55"] = "swift-5.5";
33525
- Runtimes["Swift58"] = "swift-5.8";
33526
- Runtimes["Swift59"] = "swift-5.9";
33527
- Runtimes["Swift510"] = "swift-5.10";
33528
- Runtimes["Swift62"] = "swift-6.2";
33529
- Runtimes["Kotlin16"] = "kotlin-1.6";
33530
- Runtimes["Kotlin18"] = "kotlin-1.8";
33531
- Runtimes["Kotlin19"] = "kotlin-1.9";
33532
- Runtimes["Kotlin20"] = "kotlin-2.0";
33533
- Runtimes["Kotlin23"] = "kotlin-2.3";
33534
- Runtimes["Cpp17"] = "cpp-17";
33535
- Runtimes["Cpp20"] = "cpp-20";
33536
- Runtimes["Bun10"] = "bun-1.0";
33537
- Runtimes["Bun11"] = "bun-1.1";
33538
- Runtimes["Bun12"] = "bun-1.2";
33539
- Runtimes["Bun13"] = "bun-1.3";
33540
- Runtimes["Go123"] = "go-1.23";
33541
- Runtimes["Go124"] = "go-1.24";
33542
- Runtimes["Go125"] = "go-1.25";
33543
- Runtimes["Go126"] = "go-1.26";
33544
- Runtimes["Rust183"] = "rust-1.83";
33545
- Runtimes["Static1"] = "static-1";
33546
- Runtimes["Flutter324"] = "flutter-3.24";
33547
- Runtimes["Flutter327"] = "flutter-3.27";
33548
- Runtimes["Flutter329"] = "flutter-3.29";
33549
- Runtimes["Flutter332"] = "flutter-3.32";
33550
- Runtimes["Flutter335"] = "flutter-3.35";
33551
- Runtimes["Flutter338"] = "flutter-3.38";
33552
- Runtimes["Flutter341"] = "flutter-3.41";
33553
- })(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 = {}));
33554
34119
 
33555
- var UseCases;
33556
- (function (UseCases) {
33557
- UseCases["Starter"] = "starter";
33558
- UseCases["Databases"] = "databases";
33559
- UseCases["Ai"] = "ai";
33560
- UseCases["Messaging"] = "messaging";
33561
- UseCases["Utilities"] = "utilities";
33562
- UseCases["Devtools"] = "dev-tools";
33563
- UseCases["Auth"] = "auth";
33564
- UseCases["Portfolio"] = "portfolio";
33565
- UseCases["Events"] = "events";
33566
- UseCases["Ecommerce"] = "ecommerce";
33567
- UseCases["Documentation"] = "documentation";
33568
- UseCases["Blog"] = "blog";
33569
- UseCases["Forms"] = "forms";
33570
- UseCases["Dashboard"] = "dashboard";
33571
- })(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 = {}));
33572
34130
 
33573
34131
  var TemplateReferenceType;
33574
34132
  (function (TemplateReferenceType) {
@@ -33601,39 +34159,62 @@ var ExecutionMethod;
33601
34159
  ExecutionMethod["HEAD"] = "HEAD";
33602
34160
  })(ExecutionMethod || (ExecutionMethod = {}));
33603
34161
 
33604
- var Name;
33605
- (function (Name) {
33606
- Name["V1database"] = "v1-database";
33607
- Name["V1deletes"] = "v1-deletes";
33608
- Name["V1audits"] = "v1-audits";
33609
- Name["V1mails"] = "v1-mails";
33610
- Name["V1functions"] = "v1-functions";
33611
- Name["V1statsresources"] = "v1-stats-resources";
33612
- Name["V1statsusage"] = "v1-stats-usage";
33613
- Name["V1webhooks"] = "v1-webhooks";
33614
- Name["V1certificates"] = "v1-certificates";
33615
- Name["V1builds"] = "v1-builds";
33616
- Name["V1screenshots"] = "v1-screenshots";
33617
- Name["V1messaging"] = "v1-messaging";
33618
- Name["V1migrations"] = "v1-migrations";
33619
- })(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 = {}));
33620
34178
 
33621
- var ResourceType;
33622
- (function (ResourceType) {
33623
- ResourceType["Projects"] = "projects";
33624
- ResourceType["Functions"] = "functions";
33625
- ResourceType["Sites"] = "sites";
33626
- ResourceType["Databases"] = "databases";
33627
- ResourceType["Buckets"] = "buckets";
33628
- ResourceType["Providers"] = "providers";
33629
- ResourceType["Topics"] = "topics";
33630
- ResourceType["Subscribers"] = "subscribers";
33631
- ResourceType["Messages"] = "messages";
33632
- ResourceType["Function"] = "function";
33633
- ResourceType["Execution"] = "execution";
33634
- ResourceType["Message"] = "message";
33635
- ResourceType["Backup"] = "backup";
33636
- })(ResourceType || (ResourceType = {}));
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 = {}));
34211
+
34212
+ var CacheDatabase;
34213
+ (function (CacheDatabase) {
34214
+ CacheDatabase["Console"] = "console";
34215
+ CacheDatabase["Project"] = "project";
34216
+ CacheDatabase["Logs"] = "logs";
34217
+ })(CacheDatabase || (CacheDatabase = {}));
33637
34218
 
33638
34219
  var MessagePriority;
33639
34220
  (function (MessagePriority) {
@@ -33675,15 +34256,16 @@ var AppwriteMigrationResource;
33675
34256
  AppwriteMigrationResource["Site"] = "site";
33676
34257
  AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
33677
34258
  AppwriteMigrationResource["Sitevariable"] = "site-variable";
34259
+ AppwriteMigrationResource["Platform"] = "platform";
33678
34260
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33679
34261
  })(AppwriteMigrationResource || (AppwriteMigrationResource = {}));
33680
34262
 
33681
- var OnDuplicate;
33682
- (function (OnDuplicate) {
33683
- OnDuplicate["Fail"] = "fail";
33684
- OnDuplicate["Skip"] = "skip";
33685
- OnDuplicate["Overwrite"] = "overwrite";
33686
- })(OnDuplicate || (OnDuplicate = {}));
34263
+ var MigrationOnDuplicate;
34264
+ (function (MigrationOnDuplicate) {
34265
+ MigrationOnDuplicate["Fail"] = "fail";
34266
+ MigrationOnDuplicate["Skip"] = "skip";
34267
+ MigrationOnDuplicate["Overwrite"] = "overwrite";
34268
+ })(MigrationOnDuplicate || (MigrationOnDuplicate = {}));
33687
34269
 
33688
34270
  var FirebaseMigrationResource;
33689
34271
  (function (FirebaseMigrationResource) {
@@ -33729,221 +34311,138 @@ var SupabaseMigrationResource;
33729
34311
  SupabaseMigrationResource["File"] = "file";
33730
34312
  })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
33731
34313
 
33732
- var Addon;
33733
- (function (Addon) {
33734
- Addon["Baa"] = "baa";
33735
- })(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 = {}));
33736
34327
 
33737
- var AuthMethod;
33738
- (function (AuthMethod) {
33739
- AuthMethod["Emailpassword"] = "email-password";
33740
- AuthMethod["Magicurl"] = "magic-url";
33741
- AuthMethod["Emailotp"] = "email-otp";
33742
- AuthMethod["Anonymous"] = "anonymous";
33743
- AuthMethod["Invites"] = "invites";
33744
- AuthMethod["Jwt"] = "jwt";
33745
- AuthMethod["Phone"] = "phone";
33746
- })(AuthMethod || (AuthMethod = {}));
34328
+ var OrganizationAddon;
34329
+ (function (OrganizationAddon) {
34330
+ OrganizationAddon["Baa"] = "baa";
34331
+ OrganizationAddon["BackupRecovery"] = "backup_recovery";
34332
+ })(OrganizationAddon || (OrganizationAddon = {}));
33747
34333
 
33748
- var Prompt;
33749
- (function (Prompt) {
33750
- Prompt["None"] = "none";
33751
- Prompt["Consent"] = "consent";
33752
- Prompt["SelectAccount"] = "select_account";
33753
- })(Prompt || (Prompt = {}));
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 = {}));
33754
34344
 
33755
- var ProjectPolicy;
33756
- (function (ProjectPolicy) {
33757
- ProjectPolicy["Passworddictionary"] = "password-dictionary";
33758
- ProjectPolicy["Passwordhistory"] = "password-history";
33759
- ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
33760
- ProjectPolicy["Sessionalert"] = "session-alert";
33761
- ProjectPolicy["Sessionduration"] = "session-duration";
33762
- ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
33763
- ProjectPolicy["Sessionlimit"] = "session-limit";
33764
- ProjectPolicy["Userlimit"] = "user-limit";
33765
- ProjectPolicy["Membershipprivacy"] = "membership-privacy";
33766
- })(ProjectPolicy || (ProjectPolicy = {}));
34345
+ var ProjectOAuth2GooglePrompt;
34346
+ (function (ProjectOAuth2GooglePrompt) {
34347
+ ProjectOAuth2GooglePrompt["None"] = "none";
34348
+ ProjectOAuth2GooglePrompt["Consent"] = "consent";
34349
+ ProjectOAuth2GooglePrompt["SelectAccount"] = "select_account";
34350
+ })(ProjectOAuth2GooglePrompt || (ProjectOAuth2GooglePrompt = {}));
33767
34351
 
33768
- var ProtocolId;
33769
- (function (ProtocolId) {
33770
- ProtocolId["Rest"] = "rest";
33771
- ProtocolId["Graphql"] = "graphql";
33772
- ProtocolId["Websocket"] = "websocket";
33773
- })(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 = {}));
33774
34398
 
33775
- var ServiceId;
33776
- (function (ServiceId) {
33777
- ServiceId["Account"] = "account";
33778
- ServiceId["Avatars"] = "avatars";
33779
- ServiceId["Databases"] = "databases";
33780
- ServiceId["Tablesdb"] = "tablesdb";
33781
- ServiceId["Locale"] = "locale";
33782
- ServiceId["Health"] = "health";
33783
- ServiceId["Project"] = "project";
33784
- ServiceId["Storage"] = "storage";
33785
- ServiceId["Teams"] = "teams";
33786
- ServiceId["Users"] = "users";
33787
- ServiceId["Vcs"] = "vcs";
33788
- ServiceId["Sites"] = "sites";
33789
- ServiceId["Functions"] = "functions";
33790
- ServiceId["Proxy"] = "proxy";
33791
- ServiceId["Graphql"] = "graphql";
33792
- ServiceId["Migrations"] = "migrations";
33793
- ServiceId["Messaging"] = "messaging";
33794
- })(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 = {}));
33795
34411
 
33796
- var Secure;
33797
- (function (Secure) {
33798
- Secure["Tls"] = "tls";
33799
- Secure["Ssl"] = "ssl";
33800
- })(Secure || (Secure = {}));
34412
+ var ProjectProtocolId;
34413
+ (function (ProjectProtocolId) {
34414
+ ProjectProtocolId["Rest"] = "rest";
34415
+ ProjectProtocolId["Graphql"] = "graphql";
34416
+ ProjectProtocolId["Websocket"] = "websocket";
34417
+ })(ProjectProtocolId || (ProjectProtocolId = {}));
33801
34418
 
33802
- var EmailTemplateType;
33803
- (function (EmailTemplateType) {
33804
- EmailTemplateType["Verification"] = "verification";
33805
- EmailTemplateType["MagicSession"] = "magicSession";
33806
- EmailTemplateType["Recovery"] = "recovery";
33807
- EmailTemplateType["Invitation"] = "invitation";
33808
- EmailTemplateType["MfaChallenge"] = "mfaChallenge";
33809
- EmailTemplateType["SessionAlert"] = "sessionAlert";
33810
- EmailTemplateType["OtpSession"] = "otpSession";
33811
- })(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 = {}));
33812
34440
 
33813
- var EmailTemplateLocale;
33814
- (function (EmailTemplateLocale) {
33815
- EmailTemplateLocale["Af"] = "af";
33816
- EmailTemplateLocale["Arae"] = "ar-ae";
33817
- EmailTemplateLocale["Arbh"] = "ar-bh";
33818
- EmailTemplateLocale["Ardz"] = "ar-dz";
33819
- EmailTemplateLocale["Areg"] = "ar-eg";
33820
- EmailTemplateLocale["Ariq"] = "ar-iq";
33821
- EmailTemplateLocale["Arjo"] = "ar-jo";
33822
- EmailTemplateLocale["Arkw"] = "ar-kw";
33823
- EmailTemplateLocale["Arlb"] = "ar-lb";
33824
- EmailTemplateLocale["Arly"] = "ar-ly";
33825
- EmailTemplateLocale["Arma"] = "ar-ma";
33826
- EmailTemplateLocale["Arom"] = "ar-om";
33827
- EmailTemplateLocale["Arqa"] = "ar-qa";
33828
- EmailTemplateLocale["Arsa"] = "ar-sa";
33829
- EmailTemplateLocale["Arsy"] = "ar-sy";
33830
- EmailTemplateLocale["Artn"] = "ar-tn";
33831
- EmailTemplateLocale["Arye"] = "ar-ye";
33832
- EmailTemplateLocale["As"] = "as";
33833
- EmailTemplateLocale["Az"] = "az";
33834
- EmailTemplateLocale["Be"] = "be";
33835
- EmailTemplateLocale["Bg"] = "bg";
33836
- EmailTemplateLocale["Bh"] = "bh";
33837
- EmailTemplateLocale["Bn"] = "bn";
33838
- EmailTemplateLocale["Bs"] = "bs";
33839
- EmailTemplateLocale["Ca"] = "ca";
33840
- EmailTemplateLocale["Cs"] = "cs";
33841
- EmailTemplateLocale["Cy"] = "cy";
33842
- EmailTemplateLocale["Da"] = "da";
33843
- EmailTemplateLocale["De"] = "de";
33844
- EmailTemplateLocale["Deat"] = "de-at";
33845
- EmailTemplateLocale["Dech"] = "de-ch";
33846
- EmailTemplateLocale["Deli"] = "de-li";
33847
- EmailTemplateLocale["Delu"] = "de-lu";
33848
- EmailTemplateLocale["El"] = "el";
33849
- EmailTemplateLocale["En"] = "en";
33850
- EmailTemplateLocale["Enau"] = "en-au";
33851
- EmailTemplateLocale["Enbz"] = "en-bz";
33852
- EmailTemplateLocale["Enca"] = "en-ca";
33853
- EmailTemplateLocale["Engb"] = "en-gb";
33854
- EmailTemplateLocale["Enie"] = "en-ie";
33855
- EmailTemplateLocale["Enjm"] = "en-jm";
33856
- EmailTemplateLocale["Ennz"] = "en-nz";
33857
- EmailTemplateLocale["Entt"] = "en-tt";
33858
- EmailTemplateLocale["Enus"] = "en-us";
33859
- EmailTemplateLocale["Enza"] = "en-za";
33860
- EmailTemplateLocale["Eo"] = "eo";
33861
- EmailTemplateLocale["Es"] = "es";
33862
- EmailTemplateLocale["Esar"] = "es-ar";
33863
- EmailTemplateLocale["Esbo"] = "es-bo";
33864
- EmailTemplateLocale["Escl"] = "es-cl";
33865
- EmailTemplateLocale["Esco"] = "es-co";
33866
- EmailTemplateLocale["Escr"] = "es-cr";
33867
- EmailTemplateLocale["Esdo"] = "es-do";
33868
- EmailTemplateLocale["Esec"] = "es-ec";
33869
- EmailTemplateLocale["Esgt"] = "es-gt";
33870
- EmailTemplateLocale["Eshn"] = "es-hn";
33871
- EmailTemplateLocale["Esmx"] = "es-mx";
33872
- EmailTemplateLocale["Esni"] = "es-ni";
33873
- EmailTemplateLocale["Espa"] = "es-pa";
33874
- EmailTemplateLocale["Espe"] = "es-pe";
33875
- EmailTemplateLocale["Espr"] = "es-pr";
33876
- EmailTemplateLocale["Espy"] = "es-py";
33877
- EmailTemplateLocale["Essv"] = "es-sv";
33878
- EmailTemplateLocale["Esuy"] = "es-uy";
33879
- EmailTemplateLocale["Esve"] = "es-ve";
33880
- EmailTemplateLocale["Et"] = "et";
33881
- EmailTemplateLocale["Eu"] = "eu";
33882
- EmailTemplateLocale["Fa"] = "fa";
33883
- EmailTemplateLocale["Fi"] = "fi";
33884
- EmailTemplateLocale["Fo"] = "fo";
33885
- EmailTemplateLocale["Fr"] = "fr";
33886
- EmailTemplateLocale["Frbe"] = "fr-be";
33887
- EmailTemplateLocale["Frca"] = "fr-ca";
33888
- EmailTemplateLocale["Frch"] = "fr-ch";
33889
- EmailTemplateLocale["Frlu"] = "fr-lu";
33890
- EmailTemplateLocale["Ga"] = "ga";
33891
- EmailTemplateLocale["Gd"] = "gd";
33892
- EmailTemplateLocale["He"] = "he";
33893
- EmailTemplateLocale["Hi"] = "hi";
33894
- EmailTemplateLocale["Hr"] = "hr";
33895
- EmailTemplateLocale["Hu"] = "hu";
33896
- EmailTemplateLocale["Id"] = "id";
33897
- EmailTemplateLocale["Is"] = "is";
33898
- EmailTemplateLocale["It"] = "it";
33899
- EmailTemplateLocale["Itch"] = "it-ch";
33900
- EmailTemplateLocale["Ja"] = "ja";
33901
- EmailTemplateLocale["Ji"] = "ji";
33902
- EmailTemplateLocale["Ko"] = "ko";
33903
- EmailTemplateLocale["Ku"] = "ku";
33904
- EmailTemplateLocale["Lt"] = "lt";
33905
- EmailTemplateLocale["Lv"] = "lv";
33906
- EmailTemplateLocale["Mk"] = "mk";
33907
- EmailTemplateLocale["Ml"] = "ml";
33908
- EmailTemplateLocale["Ms"] = "ms";
33909
- EmailTemplateLocale["Mt"] = "mt";
33910
- EmailTemplateLocale["Nb"] = "nb";
33911
- EmailTemplateLocale["Ne"] = "ne";
33912
- EmailTemplateLocale["Nl"] = "nl";
33913
- EmailTemplateLocale["Nlbe"] = "nl-be";
33914
- EmailTemplateLocale["Nn"] = "nn";
33915
- EmailTemplateLocale["No"] = "no";
33916
- EmailTemplateLocale["Pa"] = "pa";
33917
- EmailTemplateLocale["Pl"] = "pl";
33918
- EmailTemplateLocale["Pt"] = "pt";
33919
- EmailTemplateLocale["Ptbr"] = "pt-br";
33920
- EmailTemplateLocale["Rm"] = "rm";
33921
- EmailTemplateLocale["Ro"] = "ro";
33922
- EmailTemplateLocale["Romd"] = "ro-md";
33923
- EmailTemplateLocale["Ru"] = "ru";
33924
- EmailTemplateLocale["Rumd"] = "ru-md";
33925
- EmailTemplateLocale["Sb"] = "sb";
33926
- EmailTemplateLocale["Sk"] = "sk";
33927
- EmailTemplateLocale["Sl"] = "sl";
33928
- EmailTemplateLocale["Sq"] = "sq";
33929
- EmailTemplateLocale["Sr"] = "sr";
33930
- EmailTemplateLocale["Sv"] = "sv";
33931
- EmailTemplateLocale["Svfi"] = "sv-fi";
33932
- EmailTemplateLocale["Th"] = "th";
33933
- EmailTemplateLocale["Tn"] = "tn";
33934
- EmailTemplateLocale["Tr"] = "tr";
33935
- EmailTemplateLocale["Ts"] = "ts";
33936
- EmailTemplateLocale["Ua"] = "ua";
33937
- EmailTemplateLocale["Ur"] = "ur";
33938
- EmailTemplateLocale["Ve"] = "ve";
33939
- EmailTemplateLocale["Vi"] = "vi";
33940
- EmailTemplateLocale["Xh"] = "xh";
33941
- EmailTemplateLocale["Zhcn"] = "zh-cn";
33942
- EmailTemplateLocale["Zhhk"] = "zh-hk";
33943
- EmailTemplateLocale["Zhsg"] = "zh-sg";
33944
- EmailTemplateLocale["Zhtw"] = "zh-tw";
33945
- EmailTemplateLocale["Zu"] = "zu";
33946
- })(EmailTemplateLocale || (EmailTemplateLocale = {}));
34441
+ var ProjectSMTPSecure;
34442
+ (function (ProjectSMTPSecure) {
34443
+ ProjectSMTPSecure["Tls"] = "tls";
34444
+ ProjectSMTPSecure["Ssl"] = "ssl";
34445
+ })(ProjectSMTPSecure || (ProjectSMTPSecure = {}));
33947
34446
 
33948
34447
  var ProjectUsageRange;
33949
34448
  (function (ProjectUsageRange) {
@@ -33951,28 +34450,26 @@ var ProjectUsageRange;
33951
34450
  ProjectUsageRange["OneDay"] = "1d";
33952
34451
  })(ProjectUsageRange || (ProjectUsageRange = {}));
33953
34452
 
33954
- var Region;
33955
- (function (Region) {
33956
- Region["Fra"] = "fra";
33957
- Region["Nyc"] = "nyc";
33958
- Region["Syd"] = "syd";
33959
- Region["Sfo"] = "sfo";
33960
- Region["Sgp"] = "sgp";
33961
- Region["Tor"] = "tor";
33962
- })(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 = {}));
33963
34460
 
33964
- var Status;
33965
- (function (Status) {
33966
- Status["Active"] = "active";
33967
- })(Status || (Status = {}));
34461
+ var ProjectStatus;
34462
+ (function (ProjectStatus) {
34463
+ ProjectStatus["Active"] = "active";
34464
+ })(ProjectStatus || (ProjectStatus = {}));
33968
34465
 
33969
- var StatusCode;
33970
- (function (StatusCode) {
33971
- StatusCode["MovedPermanently301"] = "301";
33972
- StatusCode["Found302"] = "302";
33973
- StatusCode["TemporaryRedirect307"] = "307";
33974
- StatusCode["PermanentRedirect308"] = "308";
33975
- })(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 = {}));
33976
34473
 
33977
34474
  var ProxyResourceType;
33978
34475
  (function (ProxyResourceType) {
@@ -33980,142 +34477,138 @@ var ProxyResourceType;
33980
34477
  ProxyResourceType["Function"] = "function";
33981
34478
  })(ProxyResourceType || (ProxyResourceType = {}));
33982
34479
 
33983
- var Framework;
33984
- (function (Framework) {
33985
- Framework["Analog"] = "analog";
33986
- Framework["Angular"] = "angular";
33987
- Framework["Nextjs"] = "nextjs";
33988
- Framework["React"] = "react";
33989
- Framework["Nuxt"] = "nuxt";
33990
- Framework["Vue"] = "vue";
33991
- Framework["Sveltekit"] = "sveltekit";
33992
- Framework["Astro"] = "astro";
33993
- Framework["Tanstackstart"] = "tanstack-start";
33994
- Framework["Remix"] = "remix";
33995
- Framework["Lynx"] = "lynx";
33996
- Framework["Flutter"] = "flutter";
33997
- Framework["Reactnative"] = "react-native";
33998
- Framework["Vite"] = "vite";
33999
- Framework["Other"] = "other";
34000
- })(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 = {}));
34001
34498
 
34002
- var BuildRuntime;
34003
- (function (BuildRuntime) {
34004
- BuildRuntime["Node145"] = "node-14.5";
34005
- BuildRuntime["Node160"] = "node-16.0";
34006
- BuildRuntime["Node180"] = "node-18.0";
34007
- BuildRuntime["Node190"] = "node-19.0";
34008
- BuildRuntime["Node200"] = "node-20.0";
34009
- BuildRuntime["Node210"] = "node-21.0";
34010
- BuildRuntime["Node22"] = "node-22";
34011
- BuildRuntime["Node23"] = "node-23";
34012
- BuildRuntime["Node24"] = "node-24";
34013
- BuildRuntime["Node25"] = "node-25";
34014
- BuildRuntime["Php80"] = "php-8.0";
34015
- BuildRuntime["Php81"] = "php-8.1";
34016
- BuildRuntime["Php82"] = "php-8.2";
34017
- BuildRuntime["Php83"] = "php-8.3";
34018
- BuildRuntime["Php84"] = "php-8.4";
34019
- BuildRuntime["Ruby30"] = "ruby-3.0";
34020
- BuildRuntime["Ruby31"] = "ruby-3.1";
34021
- BuildRuntime["Ruby32"] = "ruby-3.2";
34022
- BuildRuntime["Ruby33"] = "ruby-3.3";
34023
- BuildRuntime["Ruby34"] = "ruby-3.4";
34024
- BuildRuntime["Ruby40"] = "ruby-4.0";
34025
- BuildRuntime["Python38"] = "python-3.8";
34026
- BuildRuntime["Python39"] = "python-3.9";
34027
- BuildRuntime["Python310"] = "python-3.10";
34028
- BuildRuntime["Python311"] = "python-3.11";
34029
- BuildRuntime["Python312"] = "python-3.12";
34030
- BuildRuntime["Python313"] = "python-3.13";
34031
- BuildRuntime["Python314"] = "python-3.14";
34032
- BuildRuntime["Pythonml311"] = "python-ml-3.11";
34033
- BuildRuntime["Pythonml312"] = "python-ml-3.12";
34034
- BuildRuntime["Pythonml313"] = "python-ml-3.13";
34035
- BuildRuntime["Deno140"] = "deno-1.40";
34036
- BuildRuntime["Deno146"] = "deno-1.46";
34037
- BuildRuntime["Deno20"] = "deno-2.0";
34038
- BuildRuntime["Deno25"] = "deno-2.5";
34039
- BuildRuntime["Deno26"] = "deno-2.6";
34040
- BuildRuntime["Dart215"] = "dart-2.15";
34041
- BuildRuntime["Dart216"] = "dart-2.16";
34042
- BuildRuntime["Dart217"] = "dart-2.17";
34043
- BuildRuntime["Dart218"] = "dart-2.18";
34044
- BuildRuntime["Dart219"] = "dart-2.19";
34045
- BuildRuntime["Dart30"] = "dart-3.0";
34046
- BuildRuntime["Dart31"] = "dart-3.1";
34047
- BuildRuntime["Dart33"] = "dart-3.3";
34048
- BuildRuntime["Dart35"] = "dart-3.5";
34049
- BuildRuntime["Dart38"] = "dart-3.8";
34050
- BuildRuntime["Dart39"] = "dart-3.9";
34051
- BuildRuntime["Dart310"] = "dart-3.10";
34052
- BuildRuntime["Dart311"] = "dart-3.11";
34053
- BuildRuntime["Dotnet60"] = "dotnet-6.0";
34054
- BuildRuntime["Dotnet70"] = "dotnet-7.0";
34055
- BuildRuntime["Dotnet80"] = "dotnet-8.0";
34056
- BuildRuntime["Dotnet10"] = "dotnet-10";
34057
- BuildRuntime["Java80"] = "java-8.0";
34058
- BuildRuntime["Java110"] = "java-11.0";
34059
- BuildRuntime["Java170"] = "java-17.0";
34060
- BuildRuntime["Java180"] = "java-18.0";
34061
- BuildRuntime["Java210"] = "java-21.0";
34062
- BuildRuntime["Java22"] = "java-22";
34063
- BuildRuntime["Java25"] = "java-25";
34064
- BuildRuntime["Swift55"] = "swift-5.5";
34065
- BuildRuntime["Swift58"] = "swift-5.8";
34066
- BuildRuntime["Swift59"] = "swift-5.9";
34067
- BuildRuntime["Swift510"] = "swift-5.10";
34068
- BuildRuntime["Swift62"] = "swift-6.2";
34069
- BuildRuntime["Kotlin16"] = "kotlin-1.6";
34070
- BuildRuntime["Kotlin18"] = "kotlin-1.8";
34071
- BuildRuntime["Kotlin19"] = "kotlin-1.9";
34072
- BuildRuntime["Kotlin20"] = "kotlin-2.0";
34073
- BuildRuntime["Kotlin23"] = "kotlin-2.3";
34074
- BuildRuntime["Cpp17"] = "cpp-17";
34075
- BuildRuntime["Cpp20"] = "cpp-20";
34076
- BuildRuntime["Bun10"] = "bun-1.0";
34077
- BuildRuntime["Bun11"] = "bun-1.1";
34078
- BuildRuntime["Bun12"] = "bun-1.2";
34079
- BuildRuntime["Bun13"] = "bun-1.3";
34080
- BuildRuntime["Go123"] = "go-1.23";
34081
- BuildRuntime["Go124"] = "go-1.24";
34082
- BuildRuntime["Go125"] = "go-1.25";
34083
- BuildRuntime["Go126"] = "go-1.26";
34084
- BuildRuntime["Rust183"] = "rust-1.83";
34085
- BuildRuntime["Static1"] = "static-1";
34086
- BuildRuntime["Flutter324"] = "flutter-3.24";
34087
- BuildRuntime["Flutter327"] = "flutter-3.27";
34088
- BuildRuntime["Flutter329"] = "flutter-3.29";
34089
- BuildRuntime["Flutter332"] = "flutter-3.32";
34090
- BuildRuntime["Flutter335"] = "flutter-3.35";
34091
- BuildRuntime["Flutter338"] = "flutter-3.38";
34092
- BuildRuntime["Flutter341"] = "flutter-3.41";
34093
- })(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 = {}));
34094
34593
 
34095
- var Adapter;
34096
- (function (Adapter) {
34097
- Adapter["Static"] = "static";
34098
- Adapter["Ssr"] = "ssr";
34099
- })(Adapter || (Adapter = {}));
34594
+ var SiteAdapter;
34595
+ (function (SiteAdapter) {
34596
+ SiteAdapter["Static"] = "static";
34597
+ SiteAdapter["Ssr"] = "ssr";
34598
+ })(SiteAdapter || (SiteAdapter = {}));
34100
34599
 
34101
- var Frameworks;
34102
- (function (Frameworks) {
34103
- Frameworks["Analog"] = "analog";
34104
- Frameworks["Angular"] = "angular";
34105
- Frameworks["Nextjs"] = "nextjs";
34106
- Frameworks["React"] = "react";
34107
- Frameworks["Nuxt"] = "nuxt";
34108
- Frameworks["Vue"] = "vue";
34109
- Frameworks["Sveltekit"] = "sveltekit";
34110
- Frameworks["Astro"] = "astro";
34111
- Frameworks["Tanstackstart"] = "tanstack-start";
34112
- Frameworks["Remix"] = "remix";
34113
- Frameworks["Lynx"] = "lynx";
34114
- Frameworks["Flutter"] = "flutter";
34115
- Frameworks["Reactnative"] = "react-native";
34116
- Frameworks["Vite"] = "vite";
34117
- Frameworks["Other"] = "other";
34118
- })(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 = {}));
34119
34612
 
34120
34613
  var Compression;
34121
34614
  (function (Compression) {
@@ -34173,10 +34666,10 @@ var VCSDetectionType;
34173
34666
  VCSDetectionType["Framework"] = "framework";
34174
34667
  })(VCSDetectionType || (VCSDetectionType = {}));
34175
34668
 
34176
- var Model;
34177
- (function (Model) {
34178
- Model["Embeddinggemma"] = "embeddinggemma";
34179
- })(Model || (Model = {}));
34669
+ var EmbeddingModel;
34670
+ (function (EmbeddingModel) {
34671
+ EmbeddingModel["Embeddinggemma"] = "embeddinggemma";
34672
+ })(EmbeddingModel || (EmbeddingModel = {}));
34180
34673
 
34181
34674
  var VectorsDBIndexType;
34182
34675
  (function (VectorsDBIndexType) {
@@ -34337,5 +34830,5 @@ var DomainPurchaseStatus;
34337
34830
  DomainPurchaseStatus["Cancelled"] = "cancelled";
34338
34831
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
34339
34832
 
34340
- 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, OAuth2GooglePrompt, OAuthProvider, OnDuplicate, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectPolicy, ProjectUsageRange, Projects, Prompt, 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 };
34341
34834
  //# sourceMappingURL=sdk.js.map