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