@appwrite.io/console 12.2.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +1719 -1204
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1717 -1205
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +1736 -1221
  7. package/package.json +1 -1
  8. package/types/channel.d.ts +8 -3
  9. package/types/client.d.ts +1 -1
  10. package/types/enums/account-key-scopes.d.ts +5 -0
  11. package/types/enums/appwrite-migration-resource.d.ts +1 -0
  12. package/types/enums/backup-services.d.ts +1 -0
  13. package/types/enums/{resource-type.d.ts → block-resource-type.d.ts} +2 -6
  14. package/types/enums/{theme.d.ts → browser-theme.d.ts} +1 -1
  15. package/types/enums/cache-database.d.ts +5 -0
  16. package/types/enums/cache-target.d.ts +8 -0
  17. package/types/enums/{registration-type.d.ts → domain-registration-type.d.ts} +1 -1
  18. package/types/enums/{filter-type.d.ts → domain-suggestion-type.d.ts} +1 -1
  19. package/types/enums/{model.d.ts → embedding-model.d.ts} +1 -1
  20. package/types/enums/{runtime.d.ts → function-runtime.d.ts} +4 -2
  21. package/types/enums/function-template-use-case.d.ts +9 -0
  22. package/types/enums/{name.d.ts → health-queue-name.d.ts} +1 -1
  23. package/types/enums/{on-duplicate.d.ts → migration-on-duplicate.d.ts} +1 -1
  24. package/types/enums/o-auth-2-google-prompt.d.ts +5 -0
  25. package/types/enums/o-auth-provider.d.ts +1 -3
  26. package/types/enums/organization-addon.d.ts +4 -0
  27. package/types/enums/organization-key-scopes.d.ts +12 -0
  28. package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
  29. package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
  30. package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
  31. package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +10 -8
  32. package/types/enums/project-o-auth-2-google-prompt.d.ts +5 -0
  33. package/types/enums/project-o-auth-provider-id.d.ts +45 -0
  34. package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +1 -1
  35. package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
  36. package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
  37. package/types/enums/project-smtp-secure.d.ts +4 -0
  38. package/types/enums/project-status.d.ts +3 -0
  39. package/types/enums/query-suggestion-resource.d.ts +10 -1
  40. package/types/enums/redirect-status-code.d.ts +6 -0
  41. package/types/enums/schedule-resource-type.d.ts +6 -0
  42. package/types/enums/{adapter.d.ts → site-adapter.d.ts} +1 -1
  43. package/types/enums/{runtimes.d.ts → site-build-runtime.d.ts} +4 -2
  44. package/types/enums/{framework.d.ts → site-framework.d.ts} +1 -1
  45. package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
  46. package/types/index.d.ts +36 -26
  47. package/types/models.d.ts +1186 -1185
  48. package/types/services/account.d.ts +9 -9
  49. package/types/services/avatars.d.ts +5 -5
  50. package/types/services/console.d.ts +31 -0
  51. package/types/services/documents-db.d.ts +1 -4
  52. package/types/services/domains.d.ts +216 -216
  53. package/types/services/functions.d.ts +36 -25
  54. package/types/services/health.d.ts +5 -5
  55. package/types/services/manager.d.ts +49 -9
  56. package/types/services/migrations.d.ts +13 -13
  57. package/types/services/organization.d.ts +234 -0
  58. package/types/services/organizations.d.ts +5 -131
  59. package/types/services/presences.d.ts +166 -0
  60. package/types/services/project.d.ts +226 -215
  61. package/types/services/projects.d.ts +10 -159
  62. package/types/services/proxy.d.ts +5 -5
  63. package/types/services/realtime.d.ts +45 -3
  64. package/types/services/sites.d.ts +43 -32
  65. package/types/services/usage.d.ts +50 -0
  66. package/types/services/vectors-db.d.ts +6 -9
  67. package/types/enums/addon.d.ts +0 -3
  68. package/types/enums/build-runtime.d.ts +0 -91
  69. package/types/enums/frameworks.d.ts +0 -17
  70. package/types/enums/secure.d.ts +0 -4
  71. package/types/enums/status-code.d.ts +0 -6
  72. package/types/enums/status.d.ts +0 -3
package/dist/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': '12.2.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,73 +18670,165 @@ class Organizations {
18352
18670
  }
18353
18671
  }
18354
18672
 
18355
- class Project {
18673
+ class Presences {
18356
18674
  constructor(client) {
18357
18675
  this.client = client;
18358
18676
  }
18359
- /**
18360
- * Delete a project.
18361
- *
18362
- * @throws {AppwriteException}
18363
- * @returns {Promise<{}>}
18364
- */
18365
- delete() {
18366
- const apiPath = '/project';
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';
18367
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
+ }
18368
18703
  const uri = new URL(this.client.config.endpoint + apiPath);
18369
- const apiHeaders = {
18370
- 'content-type': 'application/json',
18371
- };
18372
- return this.client.call('delete', uri, apiHeaders, payload);
18704
+ const apiHeaders = {};
18705
+ return this.client.call('get', uri, apiHeaders, payload);
18373
18706
  }
18374
- updateAuthMethod(paramsOrFirst, ...rest) {
18707
+ getUsage(paramsOrFirst) {
18375
18708
  let params;
18376
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
18709
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('range' in paramsOrFirst))) {
18377
18710
  params = (paramsOrFirst || {});
18378
18711
  }
18379
18712
  else {
18380
18713
  params = {
18381
- methodId: paramsOrFirst,
18382
- enabled: rest[0]
18714
+ range: paramsOrFirst
18383
18715
  };
18384
18716
  }
18385
- const methodId = params.methodId;
18386
- const enabled = params.enabled;
18387
- if (typeof methodId === 'undefined') {
18388
- throw new AppwriteException('Missing required parameter: "methodId"');
18717
+ const range = params.range;
18718
+ const apiPath = '/presences/usage';
18719
+ const payload = {};
18720
+ if (typeof range !== 'undefined') {
18721
+ payload['range'] = range;
18389
18722
  }
18390
- if (typeof enabled === 'undefined') {
18391
- throw new AppwriteException('Missing required parameter: "enabled"');
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 || {});
18392
18731
  }
18393
- const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
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);
18394
18742
  const payload = {};
18395
- if (typeof enabled !== 'undefined') {
18396
- payload['enabled'] = enabled;
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;
18397
18785
  }
18398
18786
  const uri = new URL(this.client.config.endpoint + apiPath);
18399
18787
  const apiHeaders = {
18400
18788
  'content-type': 'application/json',
18401
18789
  };
18402
- return this.client.call('patch', uri, apiHeaders, payload);
18790
+ return this.client.call('put', uri, apiHeaders, payload);
18403
18791
  }
18404
- updateCanonicalEmails(paramsOrFirst) {
18792
+ update(paramsOrFirst, ...rest) {
18405
18793
  let params;
18406
18794
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18407
18795
  params = (paramsOrFirst || {});
18408
18796
  }
18409
18797
  else {
18410
18798
  params = {
18411
- enabled: paramsOrFirst
18799
+ presenceId: paramsOrFirst,
18800
+ status: rest[0],
18801
+ expiresAt: rest[1],
18802
+ metadata: rest[2],
18803
+ permissions: rest[3],
18804
+ purge: rest[4]
18412
18805
  };
18413
18806
  }
18414
- const enabled = params.enabled;
18415
- if (typeof enabled === 'undefined') {
18416
- throw new AppwriteException('Missing required parameter: "enabled"');
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"');
18417
18815
  }
18418
- const apiPath = '/project/auth/canonical-emails';
18816
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18419
18817
  const payload = {};
18420
- if (typeof enabled !== 'undefined') {
18421
- payload['enabled'] = enabled;
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;
18422
18832
  }
18423
18833
  const uri = new URL(this.client.config.endpoint + apiPath);
18424
18834
  const apiHeaders = {
@@ -18426,46 +18836,82 @@ class Project {
18426
18836
  };
18427
18837
  return this.client.call('patch', uri, apiHeaders, payload);
18428
18838
  }
18429
- updateDisposableEmails(paramsOrFirst) {
18839
+ delete(paramsOrFirst) {
18430
18840
  let params;
18431
18841
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18432
18842
  params = (paramsOrFirst || {});
18433
18843
  }
18434
18844
  else {
18435
18845
  params = {
18436
- enabled: paramsOrFirst
18846
+ presenceId: paramsOrFirst
18437
18847
  };
18438
18848
  }
18439
- const enabled = params.enabled;
18440
- if (typeof enabled === 'undefined') {
18441
- throw new AppwriteException('Missing required parameter: "enabled"');
18849
+ const presenceId = params.presenceId;
18850
+ if (typeof presenceId === 'undefined') {
18851
+ throw new AppwriteException('Missing required parameter: "presenceId"');
18442
18852
  }
18443
- const apiPath = '/project/auth/disposable-emails';
18853
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
18444
18854
  const payload = {};
18445
- if (typeof enabled !== 'undefined') {
18446
- payload['enabled'] = enabled;
18447
- }
18448
18855
  const uri = new URL(this.client.config.endpoint + apiPath);
18449
18856
  const apiHeaders = {
18450
18857
  'content-type': 'application/json',
18451
18858
  };
18452
- return this.client.call('patch', uri, apiHeaders, payload);
18859
+ return this.client.call('delete', uri, apiHeaders, payload);
18860
+ }
18861
+ }
18862
+
18863
+ class Project {
18864
+ constructor(client) {
18865
+ this.client = client;
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);
18453
18879
  }
18454
- updateFreeEmails(paramsOrFirst) {
18880
+ /**
18881
+ * Delete a project.
18882
+ *
18883
+ * @throws {AppwriteException}
18884
+ * @returns {Promise<{}>}
18885
+ */
18886
+ delete() {
18887
+ const apiPath = '/project';
18888
+ const payload = {};
18889
+ const uri = new URL(this.client.config.endpoint + apiPath);
18890
+ const apiHeaders = {
18891
+ 'content-type': 'application/json',
18892
+ };
18893
+ return this.client.call('delete', uri, apiHeaders, payload);
18894
+ }
18895
+ updateAuthMethod(paramsOrFirst, ...rest) {
18455
18896
  let params;
18456
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18897
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
18457
18898
  params = (paramsOrFirst || {});
18458
18899
  }
18459
18900
  else {
18460
18901
  params = {
18461
- enabled: paramsOrFirst
18902
+ methodId: paramsOrFirst,
18903
+ enabled: rest[0]
18462
18904
  };
18463
18905
  }
18906
+ const methodId = params.methodId;
18464
18907
  const enabled = params.enabled;
18908
+ if (typeof methodId === 'undefined') {
18909
+ throw new AppwriteException('Missing required parameter: "methodId"');
18910
+ }
18465
18911
  if (typeof enabled === 'undefined') {
18466
18912
  throw new AppwriteException('Missing required parameter: "enabled"');
18467
18913
  }
18468
- const apiPath = '/project/auth/free-emails';
18914
+ const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
18469
18915
  const payload = {};
18470
18916
  if (typeof enabled !== 'undefined') {
18471
18917
  payload['enabled'] = enabled;
@@ -19460,11 +19906,13 @@ class Project {
19460
19906
  params = {
19461
19907
  clientId: paramsOrFirst,
19462
19908
  clientSecret: rest[0],
19463
- enabled: rest[1]
19909
+ prompt: rest[1],
19910
+ enabled: rest[2]
19464
19911
  };
19465
19912
  }
19466
19913
  const clientId = params.clientId;
19467
19914
  const clientSecret = params.clientSecret;
19915
+ const prompt = params.prompt;
19468
19916
  const enabled = params.enabled;
19469
19917
  const apiPath = '/project/oauth2/google';
19470
19918
  const payload = {};
@@ -19474,6 +19922,9 @@ class Project {
19474
19922
  if (typeof clientSecret !== 'undefined') {
19475
19923
  payload['clientSecret'] = clientSecret;
19476
19924
  }
19925
+ if (typeof prompt !== 'undefined') {
19926
+ payload['prompt'] = prompt;
19927
+ }
19477
19928
  if (typeof enabled !== 'undefined') {
19478
19929
  payload['enabled'] = enabled;
19479
19930
  }
@@ -20771,6 +21222,81 @@ class Project {
20771
21222
  const apiHeaders = {};
20772
21223
  return this.client.call('get', uri, apiHeaders, payload);
20773
21224
  }
21225
+ updateDenyAliasedEmailPolicy(paramsOrFirst) {
21226
+ let params;
21227
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21228
+ params = (paramsOrFirst || {});
21229
+ }
21230
+ else {
21231
+ params = {
21232
+ enabled: paramsOrFirst
21233
+ };
21234
+ }
21235
+ const enabled = params.enabled;
21236
+ if (typeof enabled === 'undefined') {
21237
+ throw new AppwriteException('Missing required parameter: "enabled"');
21238
+ }
21239
+ const apiPath = '/project/policies/deny-aliased-email';
21240
+ const payload = {};
21241
+ if (typeof enabled !== 'undefined') {
21242
+ payload['enabled'] = enabled;
21243
+ }
21244
+ const uri = new URL(this.client.config.endpoint + apiPath);
21245
+ const apiHeaders = {
21246
+ 'content-type': 'application/json',
21247
+ };
21248
+ return this.client.call('patch', uri, apiHeaders, payload);
21249
+ }
21250
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
21251
+ let params;
21252
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21253
+ params = (paramsOrFirst || {});
21254
+ }
21255
+ else {
21256
+ params = {
21257
+ enabled: paramsOrFirst
21258
+ };
21259
+ }
21260
+ const enabled = params.enabled;
21261
+ if (typeof enabled === 'undefined') {
21262
+ throw new AppwriteException('Missing required parameter: "enabled"');
21263
+ }
21264
+ const apiPath = '/project/policies/deny-disposable-email';
21265
+ const payload = {};
21266
+ if (typeof enabled !== 'undefined') {
21267
+ payload['enabled'] = enabled;
21268
+ }
21269
+ const uri = new URL(this.client.config.endpoint + apiPath);
21270
+ const apiHeaders = {
21271
+ 'content-type': 'application/json',
21272
+ };
21273
+ return this.client.call('patch', uri, apiHeaders, payload);
21274
+ }
21275
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
21276
+ let params;
21277
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21278
+ params = (paramsOrFirst || {});
21279
+ }
21280
+ else {
21281
+ params = {
21282
+ enabled: paramsOrFirst
21283
+ };
21284
+ }
21285
+ const enabled = params.enabled;
21286
+ if (typeof enabled === 'undefined') {
21287
+ throw new AppwriteException('Missing required parameter: "enabled"');
21288
+ }
21289
+ const apiPath = '/project/policies/deny-free-email';
21290
+ const payload = {};
21291
+ if (typeof enabled !== 'undefined') {
21292
+ payload['enabled'] = enabled;
21293
+ }
21294
+ const uri = new URL(this.client.config.endpoint + apiPath);
21295
+ const apiHeaders = {
21296
+ 'content-type': 'application/json',
21297
+ };
21298
+ return this.client.call('patch', uri, apiHeaders, payload);
21299
+ }
20774
21300
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
20775
21301
  let params;
20776
21302
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21487,222 +22013,6 @@ class Projects {
21487
22013
  constructor(client) {
21488
22014
  this.client = client;
21489
22015
  }
21490
- list(paramsOrFirst, ...rest) {
21491
- let params;
21492
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21493
- params = (paramsOrFirst || {});
21494
- }
21495
- else {
21496
- params = {
21497
- queries: paramsOrFirst,
21498
- search: rest[0],
21499
- total: rest[1]
21500
- };
21501
- }
21502
- const queries = params.queries;
21503
- const search = params.search;
21504
- const total = params.total;
21505
- const apiPath = '/projects';
21506
- const payload = {};
21507
- if (typeof queries !== 'undefined') {
21508
- payload['queries'] = queries;
21509
- }
21510
- if (typeof search !== 'undefined') {
21511
- payload['search'] = search;
21512
- }
21513
- if (typeof total !== 'undefined') {
21514
- payload['total'] = total;
21515
- }
21516
- const uri = new URL(this.client.config.endpoint + apiPath);
21517
- const apiHeaders = {};
21518
- return this.client.call('get', uri, apiHeaders, payload);
21519
- }
21520
- create(paramsOrFirst, ...rest) {
21521
- let params;
21522
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21523
- params = (paramsOrFirst || {});
21524
- }
21525
- else {
21526
- params = {
21527
- projectId: paramsOrFirst,
21528
- name: rest[0],
21529
- teamId: rest[1],
21530
- region: rest[2],
21531
- description: rest[3],
21532
- logo: rest[4],
21533
- url: rest[5],
21534
- legalName: rest[6],
21535
- legalCountry: rest[7],
21536
- legalState: rest[8],
21537
- legalCity: rest[9],
21538
- legalAddress: rest[10],
21539
- legalTaxId: rest[11]
21540
- };
21541
- }
21542
- const projectId = params.projectId;
21543
- const name = params.name;
21544
- const teamId = params.teamId;
21545
- const region = params.region;
21546
- const description = params.description;
21547
- const logo = params.logo;
21548
- const url = params.url;
21549
- const legalName = params.legalName;
21550
- const legalCountry = params.legalCountry;
21551
- const legalState = params.legalState;
21552
- const legalCity = params.legalCity;
21553
- const legalAddress = params.legalAddress;
21554
- const legalTaxId = params.legalTaxId;
21555
- if (typeof projectId === 'undefined') {
21556
- throw new AppwriteException('Missing required parameter: "projectId"');
21557
- }
21558
- if (typeof name === 'undefined') {
21559
- throw new AppwriteException('Missing required parameter: "name"');
21560
- }
21561
- if (typeof teamId === 'undefined') {
21562
- throw new AppwriteException('Missing required parameter: "teamId"');
21563
- }
21564
- const apiPath = '/projects';
21565
- const payload = {};
21566
- if (typeof projectId !== 'undefined') {
21567
- payload['projectId'] = projectId;
21568
- }
21569
- if (typeof name !== 'undefined') {
21570
- payload['name'] = name;
21571
- }
21572
- if (typeof teamId !== 'undefined') {
21573
- payload['teamId'] = teamId;
21574
- }
21575
- if (typeof region !== 'undefined') {
21576
- payload['region'] = region;
21577
- }
21578
- if (typeof description !== 'undefined') {
21579
- payload['description'] = description;
21580
- }
21581
- if (typeof logo !== 'undefined') {
21582
- payload['logo'] = logo;
21583
- }
21584
- if (typeof url !== 'undefined') {
21585
- payload['url'] = url;
21586
- }
21587
- if (typeof legalName !== 'undefined') {
21588
- payload['legalName'] = legalName;
21589
- }
21590
- if (typeof legalCountry !== 'undefined') {
21591
- payload['legalCountry'] = legalCountry;
21592
- }
21593
- if (typeof legalState !== 'undefined') {
21594
- payload['legalState'] = legalState;
21595
- }
21596
- if (typeof legalCity !== 'undefined') {
21597
- payload['legalCity'] = legalCity;
21598
- }
21599
- if (typeof legalAddress !== 'undefined') {
21600
- payload['legalAddress'] = legalAddress;
21601
- }
21602
- if (typeof legalTaxId !== 'undefined') {
21603
- payload['legalTaxId'] = legalTaxId;
21604
- }
21605
- const uri = new URL(this.client.config.endpoint + apiPath);
21606
- const apiHeaders = {
21607
- 'content-type': 'application/json',
21608
- };
21609
- return this.client.call('post', uri, apiHeaders, payload);
21610
- }
21611
- get(paramsOrFirst) {
21612
- let params;
21613
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21614
- params = (paramsOrFirst || {});
21615
- }
21616
- else {
21617
- params = {
21618
- projectId: paramsOrFirst
21619
- };
21620
- }
21621
- const projectId = params.projectId;
21622
- if (typeof projectId === 'undefined') {
21623
- throw new AppwriteException('Missing required parameter: "projectId"');
21624
- }
21625
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21626
- const payload = {};
21627
- const uri = new URL(this.client.config.endpoint + apiPath);
21628
- const apiHeaders = {};
21629
- return this.client.call('get', uri, apiHeaders, payload);
21630
- }
21631
- update(paramsOrFirst, ...rest) {
21632
- let params;
21633
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21634
- params = (paramsOrFirst || {});
21635
- }
21636
- else {
21637
- params = {
21638
- projectId: paramsOrFirst,
21639
- name: rest[0],
21640
- description: rest[1],
21641
- logo: rest[2],
21642
- url: rest[3],
21643
- legalName: rest[4],
21644
- legalCountry: rest[5],
21645
- legalState: rest[6],
21646
- legalCity: rest[7],
21647
- legalAddress: rest[8],
21648
- legalTaxId: rest[9]
21649
- };
21650
- }
21651
- const projectId = params.projectId;
21652
- const name = params.name;
21653
- const description = params.description;
21654
- const logo = params.logo;
21655
- const url = params.url;
21656
- const legalName = params.legalName;
21657
- const legalCountry = params.legalCountry;
21658
- const legalState = params.legalState;
21659
- const legalCity = params.legalCity;
21660
- const legalAddress = params.legalAddress;
21661
- const legalTaxId = params.legalTaxId;
21662
- if (typeof projectId === 'undefined') {
21663
- throw new AppwriteException('Missing required parameter: "projectId"');
21664
- }
21665
- if (typeof name === 'undefined') {
21666
- throw new AppwriteException('Missing required parameter: "name"');
21667
- }
21668
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
21669
- const payload = {};
21670
- if (typeof name !== 'undefined') {
21671
- payload['name'] = name;
21672
- }
21673
- if (typeof description !== 'undefined') {
21674
- payload['description'] = description;
21675
- }
21676
- if (typeof logo !== 'undefined') {
21677
- payload['logo'] = logo;
21678
- }
21679
- if (typeof url !== 'undefined') {
21680
- payload['url'] = url;
21681
- }
21682
- if (typeof legalName !== 'undefined') {
21683
- payload['legalName'] = legalName;
21684
- }
21685
- if (typeof legalCountry !== 'undefined') {
21686
- payload['legalCountry'] = legalCountry;
21687
- }
21688
- if (typeof legalState !== 'undefined') {
21689
- payload['legalState'] = legalState;
21690
- }
21691
- if (typeof legalCity !== 'undefined') {
21692
- payload['legalCity'] = legalCity;
21693
- }
21694
- if (typeof legalAddress !== 'undefined') {
21695
- payload['legalAddress'] = legalAddress;
21696
- }
21697
- if (typeof legalTaxId !== 'undefined') {
21698
- payload['legalTaxId'] = legalTaxId;
21699
- }
21700
- const uri = new URL(this.client.config.endpoint + apiPath);
21701
- const apiHeaders = {
21702
- 'content-type': 'application/json',
21703
- };
21704
- return this.client.call('patch', uri, apiHeaders, payload);
21705
- }
21706
22016
  updateConsoleAccess(paramsOrFirst) {
21707
22017
  let params;
21708
22018
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22368,9 +22678,11 @@ class Sites {
22368
22678
  providerBranch: rest[14],
22369
22679
  providerSilentMode: rest[15],
22370
22680
  providerRootDirectory: rest[16],
22371
- buildSpecification: rest[17],
22372
- runtimeSpecification: rest[18],
22373
- deploymentRetention: rest[19]
22681
+ providerBranches: rest[17],
22682
+ providerPaths: rest[18],
22683
+ buildSpecification: rest[19],
22684
+ runtimeSpecification: rest[20],
22685
+ deploymentRetention: rest[21]
22374
22686
  };
22375
22687
  }
22376
22688
  const siteId = params.siteId;
@@ -22391,6 +22703,8 @@ class Sites {
22391
22703
  const providerBranch = params.providerBranch;
22392
22704
  const providerSilentMode = params.providerSilentMode;
22393
22705
  const providerRootDirectory = params.providerRootDirectory;
22706
+ const providerBranches = params.providerBranches;
22707
+ const providerPaths = params.providerPaths;
22394
22708
  const buildSpecification = params.buildSpecification;
22395
22709
  const runtimeSpecification = params.runtimeSpecification;
22396
22710
  const deploymentRetention = params.deploymentRetention;
@@ -22462,6 +22776,12 @@ class Sites {
22462
22776
  if (typeof providerRootDirectory !== 'undefined') {
22463
22777
  payload['providerRootDirectory'] = providerRootDirectory;
22464
22778
  }
22779
+ if (typeof providerBranches !== 'undefined') {
22780
+ payload['providerBranches'] = providerBranches;
22781
+ }
22782
+ if (typeof providerPaths !== 'undefined') {
22783
+ payload['providerPaths'] = providerPaths;
22784
+ }
22465
22785
  if (typeof buildSpecification !== 'undefined') {
22466
22786
  payload['buildSpecification'] = buildSpecification;
22467
22787
  }
@@ -22623,9 +22943,11 @@ class Sites {
22623
22943
  providerBranch: rest[14],
22624
22944
  providerSilentMode: rest[15],
22625
22945
  providerRootDirectory: rest[16],
22626
- buildSpecification: rest[17],
22627
- runtimeSpecification: rest[18],
22628
- deploymentRetention: rest[19]
22946
+ providerBranches: rest[17],
22947
+ providerPaths: rest[18],
22948
+ buildSpecification: rest[19],
22949
+ runtimeSpecification: rest[20],
22950
+ deploymentRetention: rest[21]
22629
22951
  };
22630
22952
  }
22631
22953
  const siteId = params.siteId;
@@ -22646,6 +22968,8 @@ class Sites {
22646
22968
  const providerBranch = params.providerBranch;
22647
22969
  const providerSilentMode = params.providerSilentMode;
22648
22970
  const providerRootDirectory = params.providerRootDirectory;
22971
+ const providerBranches = params.providerBranches;
22972
+ const providerPaths = params.providerPaths;
22649
22973
  const buildSpecification = params.buildSpecification;
22650
22974
  const runtimeSpecification = params.runtimeSpecification;
22651
22975
  const deploymentRetention = params.deploymentRetention;
@@ -22711,6 +23035,12 @@ class Sites {
22711
23035
  if (typeof providerRootDirectory !== 'undefined') {
22712
23036
  payload['providerRootDirectory'] = providerRootDirectory;
22713
23037
  }
23038
+ if (typeof providerBranches !== 'undefined') {
23039
+ payload['providerBranches'] = providerBranches;
23040
+ }
23041
+ if (typeof providerPaths !== 'undefined') {
23042
+ payload['providerPaths'] = providerPaths;
23043
+ }
22714
23044
  if (typeof buildSpecification !== 'undefined') {
22715
23045
  payload['buildSpecification'] = buildSpecification;
22716
23046
  }
@@ -28020,6 +28350,62 @@ class Tokens {
28020
28350
  }
28021
28351
  }
28022
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
+
28023
28409
  class Users {
28024
28410
  constructor(client) {
28025
28411
  this.client = client;
@@ -29952,21 +30338,16 @@ class VectorsDB {
29952
30338
  else {
29953
30339
  params = {
29954
30340
  queries: paramsOrFirst,
29955
- search: rest[0],
29956
- total: rest[1]
30341
+ total: rest[0]
29957
30342
  };
29958
30343
  }
29959
30344
  const queries = params.queries;
29960
- const search = params.search;
29961
30345
  const total = params.total;
29962
30346
  const apiPath = '/vectorsdb';
29963
30347
  const payload = {};
29964
30348
  if (typeof queries !== 'undefined') {
29965
30349
  payload['queries'] = queries;
29966
30350
  }
29967
- if (typeof search !== 'undefined') {
29968
- payload['search'] = search;
29969
- }
29970
30351
  if (typeof total !== 'undefined') {
29971
30352
  payload['total'] = total;
29972
30353
  }
@@ -31370,11 +31751,11 @@ class Realtime {
31370
31751
  this.TYPE_EVENT = 'event';
31371
31752
  this.TYPE_PONG = 'pong';
31372
31753
  this.TYPE_CONNECTED = 'connected';
31373
- this.TYPE_RESPONSE = 'response';
31374
31754
  this.DEBOUNCE_MS = 1;
31375
31755
  this.HEARTBEAT_INTERVAL = 20000; // 20 seconds in milliseconds
31376
31756
  this.activeSubscriptions = new Map();
31377
31757
  this.pendingSubscribes = new Map();
31758
+ this.appConnected = false;
31378
31759
  this.subCallDepth = 0;
31379
31760
  this.reconnectAttempts = 0;
31380
31761
  this.connectionId = 0;
@@ -31425,9 +31806,35 @@ class Realtime {
31425
31806
  this.heartbeatTimer = undefined;
31426
31807
  }
31427
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
+ */
31428
31817
  createSocket() {
31429
31818
  return __awaiter(this, void 0, void 0, function* () {
31430
- 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) {
31431
31838
  this.reconnect = false;
31432
31839
  yield this.closeSocket();
31433
31840
  return;
@@ -31454,6 +31861,15 @@ class Realtime {
31454
31861
  this.reconnect = true;
31455
31862
  }
31456
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
+ }
31457
31873
  try {
31458
31874
  const connectionId = ++this.connectionId;
31459
31875
  const socket = (this.socket = new WebSocket(url));
@@ -31482,6 +31898,7 @@ class Realtime {
31482
31898
  if (connectionId !== this.connectionId || socket !== this.socket) {
31483
31899
  return;
31484
31900
  }
31901
+ this.appConnected = false;
31485
31902
  this.stopHeartbeat();
31486
31903
  this.onCloseCallbacks.forEach(callback => callback());
31487
31904
  if (!this.reconnect || event.code === RealtimeCode.POLICY_VIOLATION) {
@@ -31599,7 +32016,19 @@ class Realtime {
31599
32016
  return __awaiter(this, void 0, void 0, function* () {
31600
32017
  this.activeSubscriptions.clear();
31601
32018
  this.pendingSubscribes.clear();
32019
+ this.pendingPresence = undefined;
32020
+ this.appConnected = false;
31602
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;
31603
32032
  yield this.closeSocket();
31604
32033
  });
31605
32034
  }
@@ -31607,6 +32036,18 @@ class Realtime {
31607
32036
  if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
31608
32037
  return;
31609
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
+ }
31610
32051
  if (this.pendingSubscribes.size < 1) {
31611
32052
  return;
31612
32053
  }
@@ -31736,6 +32177,63 @@ class Realtime {
31736
32177
  return { unsubscribe, update, close };
31737
32178
  });
31738
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
+ }
31739
32237
  handleMessage(message) {
31740
32238
  if (!message.type) {
31741
32239
  return;
@@ -31753,9 +32251,6 @@ class Realtime {
31753
32251
  case this.TYPE_PONG:
31754
32252
  // Handle pong response if needed
31755
32253
  break;
31756
- case this.TYPE_RESPONSE:
31757
- this.handleResponseAction(message);
31758
- break;
31759
32254
  }
31760
32255
  }
31761
32256
  handleResponseConnected(message) {
@@ -31785,7 +32280,9 @@ class Realtime {
31785
32280
  for (const subscriptionId of this.activeSubscriptions.keys()) {
31786
32281
  this.enqueuePendingSubscribe(subscriptionId);
31787
32282
  }
32283
+ this.appConnected = true;
31788
32284
  this.sendPendingSubscribes();
32285
+ this.flushPendingPresence();
31789
32286
  }
31790
32287
  handleResponseError(message) {
31791
32288
  var _a, _b;
@@ -31820,11 +32317,6 @@ class Realtime {
31820
32317
  });
31821
32318
  }
31822
32319
  }
31823
- handleResponseAction(_message) {
31824
- // The SDK generates subscriptionIds client-side and sends them on every
31825
- // subscribe/unsubscribe, so subscribe/unsubscribe acks carry no state
31826
- // the SDK needs to reconcile.
31827
- }
31828
32320
  }
31829
32321
 
31830
32322
  /**
@@ -32060,6 +32552,9 @@ class Channel {
32060
32552
  static membership(id) {
32061
32553
  return new Channel(["memberships", normalize(id)]);
32062
32554
  }
32555
+ static presence(id) {
32556
+ return new Channel(["presences", normalize(id)]);
32557
+ }
32063
32558
  static account() {
32064
32559
  return "account";
32065
32560
  }
@@ -32082,6 +32577,9 @@ class Channel {
32082
32577
  static memberships() {
32083
32578
  return "memberships";
32084
32579
  }
32580
+ static presences() {
32581
+ return "presences";
32582
+ }
32085
32583
  }
32086
32584
 
32087
32585
  exports.Condition = void 0;
@@ -32349,101 +32847,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
32349
32847
  */
32350
32848
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
32351
32849
 
32352
- exports.Scopes = void 0;
32353
- (function (Scopes) {
32354
- Scopes["Account"] = "account";
32355
- Scopes["TeamsRead"] = "teams.read";
32356
- Scopes["TeamsWrite"] = "teams.write";
32357
- Scopes["ProjectRead"] = "project.read";
32358
- Scopes["ProjectWrite"] = "project.write";
32359
- Scopes["KeysRead"] = "keys.read";
32360
- Scopes["KeysWrite"] = "keys.write";
32361
- Scopes["PlatformsRead"] = "platforms.read";
32362
- Scopes["PlatformsWrite"] = "platforms.write";
32363
- Scopes["MocksRead"] = "mocks.read";
32364
- Scopes["MocksWrite"] = "mocks.write";
32365
- Scopes["PoliciesRead"] = "policies.read";
32366
- Scopes["PoliciesWrite"] = "policies.write";
32367
- Scopes["ProjectPoliciesRead"] = "project.policies.read";
32368
- Scopes["ProjectPoliciesWrite"] = "project.policies.write";
32369
- Scopes["TemplatesRead"] = "templates.read";
32370
- Scopes["TemplatesWrite"] = "templates.write";
32371
- Scopes["Oauth2Read"] = "oauth2.read";
32372
- Scopes["Oauth2Write"] = "oauth2.write";
32373
- Scopes["UsersRead"] = "users.read";
32374
- Scopes["UsersWrite"] = "users.write";
32375
- Scopes["SessionsRead"] = "sessions.read";
32376
- Scopes["SessionsWrite"] = "sessions.write";
32377
- Scopes["DatabasesRead"] = "databases.read";
32378
- Scopes["DatabasesWrite"] = "databases.write";
32379
- Scopes["TablesRead"] = "tables.read";
32380
- Scopes["TablesWrite"] = "tables.write";
32381
- Scopes["ColumnsRead"] = "columns.read";
32382
- Scopes["ColumnsWrite"] = "columns.write";
32383
- Scopes["IndexesRead"] = "indexes.read";
32384
- Scopes["IndexesWrite"] = "indexes.write";
32385
- Scopes["RowsRead"] = "rows.read";
32386
- Scopes["RowsWrite"] = "rows.write";
32387
- Scopes["CollectionsRead"] = "collections.read";
32388
- Scopes["CollectionsWrite"] = "collections.write";
32389
- Scopes["AttributesRead"] = "attributes.read";
32390
- Scopes["AttributesWrite"] = "attributes.write";
32391
- Scopes["DocumentsRead"] = "documents.read";
32392
- Scopes["DocumentsWrite"] = "documents.write";
32393
- Scopes["BucketsRead"] = "buckets.read";
32394
- Scopes["BucketsWrite"] = "buckets.write";
32395
- Scopes["FilesRead"] = "files.read";
32396
- Scopes["FilesWrite"] = "files.write";
32397
- Scopes["TokensRead"] = "tokens.read";
32398
- Scopes["TokensWrite"] = "tokens.write";
32399
- Scopes["FunctionsRead"] = "functions.read";
32400
- Scopes["FunctionsWrite"] = "functions.write";
32401
- Scopes["ExecutionsRead"] = "executions.read";
32402
- Scopes["ExecutionsWrite"] = "executions.write";
32403
- Scopes["ExecutionRead"] = "execution.read";
32404
- Scopes["ExecutionWrite"] = "execution.write";
32405
- Scopes["SitesRead"] = "sites.read";
32406
- Scopes["SitesWrite"] = "sites.write";
32407
- Scopes["LogRead"] = "log.read";
32408
- Scopes["LogWrite"] = "log.write";
32409
- Scopes["ProvidersRead"] = "providers.read";
32410
- Scopes["ProvidersWrite"] = "providers.write";
32411
- Scopes["TopicsRead"] = "topics.read";
32412
- Scopes["TopicsWrite"] = "topics.write";
32413
- Scopes["SubscribersRead"] = "subscribers.read";
32414
- Scopes["SubscribersWrite"] = "subscribers.write";
32415
- Scopes["TargetsRead"] = "targets.read";
32416
- Scopes["TargetsWrite"] = "targets.write";
32417
- Scopes["MessagesRead"] = "messages.read";
32418
- Scopes["MessagesWrite"] = "messages.write";
32419
- Scopes["RulesRead"] = "rules.read";
32420
- Scopes["RulesWrite"] = "rules.write";
32421
- Scopes["WebhooksRead"] = "webhooks.read";
32422
- Scopes["WebhooksWrite"] = "webhooks.write";
32423
- Scopes["LocaleRead"] = "locale.read";
32424
- Scopes["AvatarsRead"] = "avatars.read";
32425
- Scopes["HealthRead"] = "health.read";
32426
- Scopes["AssistantRead"] = "assistant.read";
32427
- Scopes["MigrationsRead"] = "migrations.read";
32428
- Scopes["MigrationsWrite"] = "migrations.write";
32429
- Scopes["SchedulesRead"] = "schedules.read";
32430
- Scopes["SchedulesWrite"] = "schedules.write";
32431
- Scopes["VcsRead"] = "vcs.read";
32432
- Scopes["VcsWrite"] = "vcs.write";
32433
- Scopes["BackupsPoliciesRead"] = "backups.policies.read";
32434
- Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
32435
- Scopes["ArchivesRead"] = "archives.read";
32436
- Scopes["ArchivesWrite"] = "archives.write";
32437
- Scopes["RestorationsRead"] = "restorations.read";
32438
- Scopes["RestorationsWrite"] = "restorations.write";
32439
- Scopes["DomainsRead"] = "domains.read";
32440
- Scopes["DomainsWrite"] = "domains.write";
32441
- Scopes["EventsRead"] = "events.read";
32442
- Scopes["ProjectsRead"] = "projects.read";
32443
- Scopes["ProjectsWrite"] = "projects.write";
32444
- Scopes["DevKeysRead"] = "devKeys.read";
32445
- Scopes["DevKeysWrite"] = "devKeys.write";
32446
- })(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 = {}));
32447
32856
 
32448
32857
  exports.AuthenticatorType = void 0;
32449
32858
  (function (AuthenticatorType) {
@@ -32503,8 +32912,6 @@ exports.OAuthProvider = void 0;
32503
32912
  OAuthProvider["Yandex"] = "yandex";
32504
32913
  OAuthProvider["Zoho"] = "zoho";
32505
32914
  OAuthProvider["Zoom"] = "zoom";
32506
- OAuthProvider["GithubImagine"] = "githubImagine";
32507
- OAuthProvider["GoogleImagine"] = "googleImagine";
32508
32915
  })(exports.OAuthProvider || (exports.OAuthProvider = {}));
32509
32916
 
32510
32917
  exports.Browser = void 0;
@@ -32745,11 +33152,11 @@ exports.Flag = void 0;
32745
33152
  Flag["Zimbabwe"] = "zw";
32746
33153
  })(exports.Flag || (exports.Flag = {}));
32747
33154
 
32748
- exports.Theme = void 0;
32749
- (function (Theme) {
32750
- Theme["Light"] = "light";
32751
- Theme["Dark"] = "dark";
32752
- })(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 = {}));
32753
33160
 
32754
33161
  exports.Timezone = void 0;
32755
33162
  (function (Timezone) {
@@ -33215,6 +33622,7 @@ exports.BackupServices = void 0;
33215
33622
  BackupServices["Tablesdb"] = "tablesdb";
33216
33623
  BackupServices["Documentsdb"] = "documentsdb";
33217
33624
  BackupServices["Vectorsdb"] = "vectorsdb";
33625
+ BackupServices["DedicatedDatabases"] = "dedicatedDatabases";
33218
33626
  BackupServices["Functions"] = "functions";
33219
33627
  BackupServices["Storage"] = "storage";
33220
33628
  })(exports.BackupServices || (exports.BackupServices = {}));
@@ -33260,6 +33668,8 @@ exports.QuerySuggestionResource = void 0;
33260
33668
  QuerySuggestionResource["Repositories"] = "repositories";
33261
33669
  QuerySuggestionResource["VcsComments"] = "vcscomments";
33262
33670
  QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
33671
+ QuerySuggestionResource["Reports"] = "reports";
33672
+ QuerySuggestionResource["Insights"] = "insights";
33263
33673
  QuerySuggestionResource["Users"] = "users";
33264
33674
  QuerySuggestionResource["Cache"] = "cache";
33265
33675
  QuerySuggestionResource["Tokens"] = "tokens";
@@ -33274,6 +33684,7 @@ exports.QuerySuggestionResource = void 0;
33274
33684
  QuerySuggestionResource["Topics"] = "topics";
33275
33685
  QuerySuggestionResource["Subscribers"] = "subscribers";
33276
33686
  QuerySuggestionResource["Targets"] = "targets";
33687
+ QuerySuggestionResource["PresenceLogs"] = "presencelogs";
33277
33688
  QuerySuggestionResource["Companies"] = "companies";
33278
33689
  QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
33279
33690
  QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
@@ -33304,8 +33715,160 @@ exports.QuerySuggestionResource = void 0;
33304
33715
  QuerySuggestionResource["Transactions"] = "transactions";
33305
33716
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
33306
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";
33307
33724
  })(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
33308
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
+
33309
33872
  exports.UsageRange = void 0;
33310
33873
  (function (UsageRange) {
33311
33874
  UsageRange["TwentyFourHours"] = "24h";
@@ -33349,223 +33912,223 @@ exports.DocumentsDBIndexType = void 0;
33349
33912
  DocumentsDBIndexType["Unique"] = "unique";
33350
33913
  })(exports.DocumentsDBIndexType || (exports.DocumentsDBIndexType = {}));
33351
33914
 
33352
- exports.RegistrationType = void 0;
33353
- (function (RegistrationType) {
33354
- RegistrationType["New"] = "new";
33355
- RegistrationType["Transfer"] = "transfer";
33356
- RegistrationType["Renewal"] = "renewal";
33357
- RegistrationType["Trade"] = "trade";
33358
- })(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 = {}));
33359
33922
 
33360
- exports.FilterType = void 0;
33361
- (function (FilterType) {
33362
- FilterType["Premium"] = "premium";
33363
- FilterType["Suggestion"] = "suggestion";
33364
- })(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 = {}));
33365
33928
 
33366
- exports.Runtime = void 0;
33367
- (function (Runtime) {
33368
- Runtime["Node145"] = "node-14.5";
33369
- Runtime["Node160"] = "node-16.0";
33370
- Runtime["Node180"] = "node-18.0";
33371
- Runtime["Node190"] = "node-19.0";
33372
- Runtime["Node200"] = "node-20.0";
33373
- Runtime["Node210"] = "node-21.0";
33374
- Runtime["Node22"] = "node-22";
33375
- Runtime["Node23"] = "node-23";
33376
- Runtime["Node24"] = "node-24";
33377
- Runtime["Node25"] = "node-25";
33378
- Runtime["Php80"] = "php-8.0";
33379
- Runtime["Php81"] = "php-8.1";
33380
- Runtime["Php82"] = "php-8.2";
33381
- Runtime["Php83"] = "php-8.3";
33382
- Runtime["Php84"] = "php-8.4";
33383
- Runtime["Ruby30"] = "ruby-3.0";
33384
- Runtime["Ruby31"] = "ruby-3.1";
33385
- Runtime["Ruby32"] = "ruby-3.2";
33386
- Runtime["Ruby33"] = "ruby-3.3";
33387
- Runtime["Ruby34"] = "ruby-3.4";
33388
- Runtime["Ruby40"] = "ruby-4.0";
33389
- Runtime["Python38"] = "python-3.8";
33390
- Runtime["Python39"] = "python-3.9";
33391
- Runtime["Python310"] = "python-3.10";
33392
- Runtime["Python311"] = "python-3.11";
33393
- Runtime["Python312"] = "python-3.12";
33394
- Runtime["Python313"] = "python-3.13";
33395
- Runtime["Python314"] = "python-3.14";
33396
- Runtime["Pythonml311"] = "python-ml-3.11";
33397
- Runtime["Pythonml312"] = "python-ml-3.12";
33398
- Runtime["Pythonml313"] = "python-ml-3.13";
33399
- Runtime["Deno140"] = "deno-1.40";
33400
- Runtime["Deno146"] = "deno-1.46";
33401
- Runtime["Deno20"] = "deno-2.0";
33402
- Runtime["Deno25"] = "deno-2.5";
33403
- Runtime["Deno26"] = "deno-2.6";
33404
- Runtime["Dart215"] = "dart-2.15";
33405
- Runtime["Dart216"] = "dart-2.16";
33406
- Runtime["Dart217"] = "dart-2.17";
33407
- Runtime["Dart218"] = "dart-2.18";
33408
- Runtime["Dart219"] = "dart-2.19";
33409
- Runtime["Dart30"] = "dart-3.0";
33410
- Runtime["Dart31"] = "dart-3.1";
33411
- Runtime["Dart33"] = "dart-3.3";
33412
- Runtime["Dart35"] = "dart-3.5";
33413
- Runtime["Dart38"] = "dart-3.8";
33414
- Runtime["Dart39"] = "dart-3.9";
33415
- Runtime["Dart310"] = "dart-3.10";
33416
- Runtime["Dart311"] = "dart-3.11";
33417
- Runtime["Dotnet60"] = "dotnet-6.0";
33418
- Runtime["Dotnet70"] = "dotnet-7.0";
33419
- Runtime["Dotnet80"] = "dotnet-8.0";
33420
- Runtime["Dotnet10"] = "dotnet-10";
33421
- Runtime["Java80"] = "java-8.0";
33422
- Runtime["Java110"] = "java-11.0";
33423
- Runtime["Java170"] = "java-17.0";
33424
- Runtime["Java180"] = "java-18.0";
33425
- Runtime["Java210"] = "java-21.0";
33426
- Runtime["Java22"] = "java-22";
33427
- Runtime["Java25"] = "java-25";
33428
- Runtime["Swift55"] = "swift-5.5";
33429
- Runtime["Swift58"] = "swift-5.8";
33430
- Runtime["Swift59"] = "swift-5.9";
33431
- Runtime["Swift510"] = "swift-5.10";
33432
- Runtime["Swift62"] = "swift-6.2";
33433
- Runtime["Kotlin16"] = "kotlin-1.6";
33434
- Runtime["Kotlin18"] = "kotlin-1.8";
33435
- Runtime["Kotlin19"] = "kotlin-1.9";
33436
- Runtime["Kotlin20"] = "kotlin-2.0";
33437
- Runtime["Kotlin23"] = "kotlin-2.3";
33438
- Runtime["Cpp17"] = "cpp-17";
33439
- Runtime["Cpp20"] = "cpp-20";
33440
- Runtime["Bun10"] = "bun-1.0";
33441
- Runtime["Bun11"] = "bun-1.1";
33442
- Runtime["Bun12"] = "bun-1.2";
33443
- Runtime["Bun13"] = "bun-1.3";
33444
- Runtime["Go123"] = "go-1.23";
33445
- Runtime["Go124"] = "go-1.24";
33446
- Runtime["Go125"] = "go-1.25";
33447
- Runtime["Go126"] = "go-1.26";
33448
- Runtime["Rust183"] = "rust-1.83";
33449
- Runtime["Static1"] = "static-1";
33450
- Runtime["Flutter324"] = "flutter-3.24";
33451
- Runtime["Flutter327"] = "flutter-3.27";
33452
- Runtime["Flutter329"] = "flutter-3.29";
33453
- Runtime["Flutter332"] = "flutter-3.32";
33454
- Runtime["Flutter335"] = "flutter-3.35";
33455
- Runtime["Flutter338"] = "flutter-3.38";
33456
- Runtime["Flutter341"] = "flutter-3.41";
33457
- })(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 = {}));
33458
34023
 
33459
- exports.Runtimes = void 0;
33460
- (function (Runtimes) {
33461
- Runtimes["Node145"] = "node-14.5";
33462
- Runtimes["Node160"] = "node-16.0";
33463
- Runtimes["Node180"] = "node-18.0";
33464
- Runtimes["Node190"] = "node-19.0";
33465
- Runtimes["Node200"] = "node-20.0";
33466
- Runtimes["Node210"] = "node-21.0";
33467
- Runtimes["Node22"] = "node-22";
33468
- Runtimes["Node23"] = "node-23";
33469
- Runtimes["Node24"] = "node-24";
33470
- Runtimes["Node25"] = "node-25";
33471
- Runtimes["Php80"] = "php-8.0";
33472
- Runtimes["Php81"] = "php-8.1";
33473
- Runtimes["Php82"] = "php-8.2";
33474
- Runtimes["Php83"] = "php-8.3";
33475
- Runtimes["Php84"] = "php-8.4";
33476
- Runtimes["Ruby30"] = "ruby-3.0";
33477
- Runtimes["Ruby31"] = "ruby-3.1";
33478
- Runtimes["Ruby32"] = "ruby-3.2";
33479
- Runtimes["Ruby33"] = "ruby-3.3";
33480
- Runtimes["Ruby34"] = "ruby-3.4";
33481
- Runtimes["Ruby40"] = "ruby-4.0";
33482
- Runtimes["Python38"] = "python-3.8";
33483
- Runtimes["Python39"] = "python-3.9";
33484
- Runtimes["Python310"] = "python-3.10";
33485
- Runtimes["Python311"] = "python-3.11";
33486
- Runtimes["Python312"] = "python-3.12";
33487
- Runtimes["Python313"] = "python-3.13";
33488
- Runtimes["Python314"] = "python-3.14";
33489
- Runtimes["Pythonml311"] = "python-ml-3.11";
33490
- Runtimes["Pythonml312"] = "python-ml-3.12";
33491
- Runtimes["Pythonml313"] = "python-ml-3.13";
33492
- Runtimes["Deno140"] = "deno-1.40";
33493
- Runtimes["Deno146"] = "deno-1.46";
33494
- Runtimes["Deno20"] = "deno-2.0";
33495
- Runtimes["Deno25"] = "deno-2.5";
33496
- Runtimes["Deno26"] = "deno-2.6";
33497
- Runtimes["Dart215"] = "dart-2.15";
33498
- Runtimes["Dart216"] = "dart-2.16";
33499
- Runtimes["Dart217"] = "dart-2.17";
33500
- Runtimes["Dart218"] = "dart-2.18";
33501
- Runtimes["Dart219"] = "dart-2.19";
33502
- Runtimes["Dart30"] = "dart-3.0";
33503
- Runtimes["Dart31"] = "dart-3.1";
33504
- Runtimes["Dart33"] = "dart-3.3";
33505
- Runtimes["Dart35"] = "dart-3.5";
33506
- Runtimes["Dart38"] = "dart-3.8";
33507
- Runtimes["Dart39"] = "dart-3.9";
33508
- Runtimes["Dart310"] = "dart-3.10";
33509
- Runtimes["Dart311"] = "dart-3.11";
33510
- Runtimes["Dotnet60"] = "dotnet-6.0";
33511
- Runtimes["Dotnet70"] = "dotnet-7.0";
33512
- Runtimes["Dotnet80"] = "dotnet-8.0";
33513
- Runtimes["Dotnet10"] = "dotnet-10";
33514
- Runtimes["Java80"] = "java-8.0";
33515
- Runtimes["Java110"] = "java-11.0";
33516
- Runtimes["Java170"] = "java-17.0";
33517
- Runtimes["Java180"] = "java-18.0";
33518
- Runtimes["Java210"] = "java-21.0";
33519
- Runtimes["Java22"] = "java-22";
33520
- Runtimes["Java25"] = "java-25";
33521
- Runtimes["Swift55"] = "swift-5.5";
33522
- Runtimes["Swift58"] = "swift-5.8";
33523
- Runtimes["Swift59"] = "swift-5.9";
33524
- Runtimes["Swift510"] = "swift-5.10";
33525
- Runtimes["Swift62"] = "swift-6.2";
33526
- Runtimes["Kotlin16"] = "kotlin-1.6";
33527
- Runtimes["Kotlin18"] = "kotlin-1.8";
33528
- Runtimes["Kotlin19"] = "kotlin-1.9";
33529
- Runtimes["Kotlin20"] = "kotlin-2.0";
33530
- Runtimes["Kotlin23"] = "kotlin-2.3";
33531
- Runtimes["Cpp17"] = "cpp-17";
33532
- Runtimes["Cpp20"] = "cpp-20";
33533
- Runtimes["Bun10"] = "bun-1.0";
33534
- Runtimes["Bun11"] = "bun-1.1";
33535
- Runtimes["Bun12"] = "bun-1.2";
33536
- Runtimes["Bun13"] = "bun-1.3";
33537
- Runtimes["Go123"] = "go-1.23";
33538
- Runtimes["Go124"] = "go-1.24";
33539
- Runtimes["Go125"] = "go-1.25";
33540
- Runtimes["Go126"] = "go-1.26";
33541
- Runtimes["Rust183"] = "rust-1.83";
33542
- Runtimes["Static1"] = "static-1";
33543
- Runtimes["Flutter324"] = "flutter-3.24";
33544
- Runtimes["Flutter327"] = "flutter-3.27";
33545
- Runtimes["Flutter329"] = "flutter-3.29";
33546
- Runtimes["Flutter332"] = "flutter-3.32";
33547
- Runtimes["Flutter335"] = "flutter-3.35";
33548
- Runtimes["Flutter338"] = "flutter-3.38";
33549
- Runtimes["Flutter341"] = "flutter-3.41";
33550
- })(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 = {}));
33551
34121
 
33552
- exports.UseCases = void 0;
33553
- (function (UseCases) {
33554
- UseCases["Starter"] = "starter";
33555
- UseCases["Databases"] = "databases";
33556
- UseCases["Ai"] = "ai";
33557
- UseCases["Messaging"] = "messaging";
33558
- UseCases["Utilities"] = "utilities";
33559
- UseCases["Devtools"] = "dev-tools";
33560
- UseCases["Auth"] = "auth";
33561
- UseCases["Portfolio"] = "portfolio";
33562
- UseCases["Events"] = "events";
33563
- UseCases["Ecommerce"] = "ecommerce";
33564
- UseCases["Documentation"] = "documentation";
33565
- UseCases["Blog"] = "blog";
33566
- UseCases["Forms"] = "forms";
33567
- UseCases["Dashboard"] = "dashboard";
33568
- })(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 = {}));
33569
34132
 
33570
34133
  exports.TemplateReferenceType = void 0;
33571
34134
  (function (TemplateReferenceType) {
@@ -33598,39 +34161,62 @@ exports.ExecutionMethod = void 0;
33598
34161
  ExecutionMethod["HEAD"] = "HEAD";
33599
34162
  })(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
33600
34163
 
33601
- exports.Name = void 0;
33602
- (function (Name) {
33603
- Name["V1database"] = "v1-database";
33604
- Name["V1deletes"] = "v1-deletes";
33605
- Name["V1audits"] = "v1-audits";
33606
- Name["V1mails"] = "v1-mails";
33607
- Name["V1functions"] = "v1-functions";
33608
- Name["V1statsresources"] = "v1-stats-resources";
33609
- Name["V1statsusage"] = "v1-stats-usage";
33610
- Name["V1webhooks"] = "v1-webhooks";
33611
- Name["V1certificates"] = "v1-certificates";
33612
- Name["V1builds"] = "v1-builds";
33613
- Name["V1screenshots"] = "v1-screenshots";
33614
- Name["V1messaging"] = "v1-messaging";
33615
- Name["V1migrations"] = "v1-migrations";
33616
- })(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 = {}));
34180
+
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 = {}));
33617
34213
 
33618
- exports.ResourceType = void 0;
33619
- (function (ResourceType) {
33620
- ResourceType["Projects"] = "projects";
33621
- ResourceType["Functions"] = "functions";
33622
- ResourceType["Sites"] = "sites";
33623
- ResourceType["Databases"] = "databases";
33624
- ResourceType["Buckets"] = "buckets";
33625
- ResourceType["Providers"] = "providers";
33626
- ResourceType["Topics"] = "topics";
33627
- ResourceType["Subscribers"] = "subscribers";
33628
- ResourceType["Messages"] = "messages";
33629
- ResourceType["Function"] = "function";
33630
- ResourceType["Execution"] = "execution";
33631
- ResourceType["Message"] = "message";
33632
- ResourceType["Backup"] = "backup";
33633
- })(exports.ResourceType || (exports.ResourceType = {}));
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 = {}));
33634
34220
 
33635
34221
  exports.MessagePriority = void 0;
33636
34222
  (function (MessagePriority) {
@@ -33672,15 +34258,16 @@ exports.AppwriteMigrationResource = void 0;
33672
34258
  AppwriteMigrationResource["Site"] = "site";
33673
34259
  AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
33674
34260
  AppwriteMigrationResource["Sitevariable"] = "site-variable";
34261
+ AppwriteMigrationResource["Platform"] = "platform";
33675
34262
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
33676
34263
  })(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
33677
34264
 
33678
- exports.OnDuplicate = void 0;
33679
- (function (OnDuplicate) {
33680
- OnDuplicate["Fail"] = "fail";
33681
- OnDuplicate["Skip"] = "skip";
33682
- OnDuplicate["Overwrite"] = "overwrite";
33683
- })(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 = {}));
33684
34271
 
33685
34272
  exports.FirebaseMigrationResource = void 0;
33686
34273
  (function (FirebaseMigrationResource) {
@@ -33726,214 +34313,138 @@ exports.SupabaseMigrationResource = void 0;
33726
34313
  SupabaseMigrationResource["File"] = "file";
33727
34314
  })(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
33728
34315
 
33729
- exports.Addon = void 0;
33730
- (function (Addon) {
33731
- Addon["Baa"] = "baa";
33732
- })(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 = {}));
34329
+
34330
+ exports.OrganizationAddon = void 0;
34331
+ (function (OrganizationAddon) {
34332
+ OrganizationAddon["Baa"] = "baa";
34333
+ OrganizationAddon["BackupRecovery"] = "backup_recovery";
34334
+ })(exports.OrganizationAddon || (exports.OrganizationAddon = {}));
33733
34335
 
33734
- exports.AuthMethod = void 0;
33735
- (function (AuthMethod) {
33736
- AuthMethod["Emailpassword"] = "email-password";
33737
- AuthMethod["Magicurl"] = "magic-url";
33738
- AuthMethod["Emailotp"] = "email-otp";
33739
- AuthMethod["Anonymous"] = "anonymous";
33740
- AuthMethod["Invites"] = "invites";
33741
- AuthMethod["Jwt"] = "jwt";
33742
- AuthMethod["Phone"] = "phone";
33743
- })(exports.AuthMethod || (exports.AuthMethod = {}));
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 = {}));
33744
34346
 
33745
- exports.ProjectPolicy = void 0;
33746
- (function (ProjectPolicy) {
33747
- ProjectPolicy["Passworddictionary"] = "password-dictionary";
33748
- ProjectPolicy["Passwordhistory"] = "password-history";
33749
- ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
33750
- ProjectPolicy["Sessionalert"] = "session-alert";
33751
- ProjectPolicy["Sessionduration"] = "session-duration";
33752
- ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
33753
- ProjectPolicy["Sessionlimit"] = "session-limit";
33754
- ProjectPolicy["Userlimit"] = "user-limit";
33755
- ProjectPolicy["Membershipprivacy"] = "membership-privacy";
33756
- })(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 = {}));
33757
34353
 
33758
- exports.ProtocolId = void 0;
33759
- (function (ProtocolId) {
33760
- ProtocolId["Rest"] = "rest";
33761
- ProtocolId["Graphql"] = "graphql";
33762
- ProtocolId["Websocket"] = "websocket";
33763
- })(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 = {}));
33764
34400
 
33765
- exports.ServiceId = void 0;
33766
- (function (ServiceId) {
33767
- ServiceId["Account"] = "account";
33768
- ServiceId["Avatars"] = "avatars";
33769
- ServiceId["Databases"] = "databases";
33770
- ServiceId["Tablesdb"] = "tablesdb";
33771
- ServiceId["Locale"] = "locale";
33772
- ServiceId["Health"] = "health";
33773
- ServiceId["Project"] = "project";
33774
- ServiceId["Storage"] = "storage";
33775
- ServiceId["Teams"] = "teams";
33776
- ServiceId["Users"] = "users";
33777
- ServiceId["Vcs"] = "vcs";
33778
- ServiceId["Sites"] = "sites";
33779
- ServiceId["Functions"] = "functions";
33780
- ServiceId["Proxy"] = "proxy";
33781
- ServiceId["Graphql"] = "graphql";
33782
- ServiceId["Migrations"] = "migrations";
33783
- ServiceId["Messaging"] = "messaging";
33784
- })(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 = {}));
33785
34413
 
33786
- exports.Secure = void 0;
33787
- (function (Secure) {
33788
- Secure["Tls"] = "tls";
33789
- Secure["Ssl"] = "ssl";
33790
- })(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 = {}));
33791
34420
 
33792
- exports.EmailTemplateType = void 0;
33793
- (function (EmailTemplateType) {
33794
- EmailTemplateType["Verification"] = "verification";
33795
- EmailTemplateType["MagicSession"] = "magicSession";
33796
- EmailTemplateType["Recovery"] = "recovery";
33797
- EmailTemplateType["Invitation"] = "invitation";
33798
- EmailTemplateType["MfaChallenge"] = "mfaChallenge";
33799
- EmailTemplateType["SessionAlert"] = "sessionAlert";
33800
- EmailTemplateType["OtpSession"] = "otpSession";
33801
- })(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 = {}));
33802
34442
 
33803
- exports.EmailTemplateLocale = void 0;
33804
- (function (EmailTemplateLocale) {
33805
- EmailTemplateLocale["Af"] = "af";
33806
- EmailTemplateLocale["Arae"] = "ar-ae";
33807
- EmailTemplateLocale["Arbh"] = "ar-bh";
33808
- EmailTemplateLocale["Ardz"] = "ar-dz";
33809
- EmailTemplateLocale["Areg"] = "ar-eg";
33810
- EmailTemplateLocale["Ariq"] = "ar-iq";
33811
- EmailTemplateLocale["Arjo"] = "ar-jo";
33812
- EmailTemplateLocale["Arkw"] = "ar-kw";
33813
- EmailTemplateLocale["Arlb"] = "ar-lb";
33814
- EmailTemplateLocale["Arly"] = "ar-ly";
33815
- EmailTemplateLocale["Arma"] = "ar-ma";
33816
- EmailTemplateLocale["Arom"] = "ar-om";
33817
- EmailTemplateLocale["Arqa"] = "ar-qa";
33818
- EmailTemplateLocale["Arsa"] = "ar-sa";
33819
- EmailTemplateLocale["Arsy"] = "ar-sy";
33820
- EmailTemplateLocale["Artn"] = "ar-tn";
33821
- EmailTemplateLocale["Arye"] = "ar-ye";
33822
- EmailTemplateLocale["As"] = "as";
33823
- EmailTemplateLocale["Az"] = "az";
33824
- EmailTemplateLocale["Be"] = "be";
33825
- EmailTemplateLocale["Bg"] = "bg";
33826
- EmailTemplateLocale["Bh"] = "bh";
33827
- EmailTemplateLocale["Bn"] = "bn";
33828
- EmailTemplateLocale["Bs"] = "bs";
33829
- EmailTemplateLocale["Ca"] = "ca";
33830
- EmailTemplateLocale["Cs"] = "cs";
33831
- EmailTemplateLocale["Cy"] = "cy";
33832
- EmailTemplateLocale["Da"] = "da";
33833
- EmailTemplateLocale["De"] = "de";
33834
- EmailTemplateLocale["Deat"] = "de-at";
33835
- EmailTemplateLocale["Dech"] = "de-ch";
33836
- EmailTemplateLocale["Deli"] = "de-li";
33837
- EmailTemplateLocale["Delu"] = "de-lu";
33838
- EmailTemplateLocale["El"] = "el";
33839
- EmailTemplateLocale["En"] = "en";
33840
- EmailTemplateLocale["Enau"] = "en-au";
33841
- EmailTemplateLocale["Enbz"] = "en-bz";
33842
- EmailTemplateLocale["Enca"] = "en-ca";
33843
- EmailTemplateLocale["Engb"] = "en-gb";
33844
- EmailTemplateLocale["Enie"] = "en-ie";
33845
- EmailTemplateLocale["Enjm"] = "en-jm";
33846
- EmailTemplateLocale["Ennz"] = "en-nz";
33847
- EmailTemplateLocale["Entt"] = "en-tt";
33848
- EmailTemplateLocale["Enus"] = "en-us";
33849
- EmailTemplateLocale["Enza"] = "en-za";
33850
- EmailTemplateLocale["Eo"] = "eo";
33851
- EmailTemplateLocale["Es"] = "es";
33852
- EmailTemplateLocale["Esar"] = "es-ar";
33853
- EmailTemplateLocale["Esbo"] = "es-bo";
33854
- EmailTemplateLocale["Escl"] = "es-cl";
33855
- EmailTemplateLocale["Esco"] = "es-co";
33856
- EmailTemplateLocale["Escr"] = "es-cr";
33857
- EmailTemplateLocale["Esdo"] = "es-do";
33858
- EmailTemplateLocale["Esec"] = "es-ec";
33859
- EmailTemplateLocale["Esgt"] = "es-gt";
33860
- EmailTemplateLocale["Eshn"] = "es-hn";
33861
- EmailTemplateLocale["Esmx"] = "es-mx";
33862
- EmailTemplateLocale["Esni"] = "es-ni";
33863
- EmailTemplateLocale["Espa"] = "es-pa";
33864
- EmailTemplateLocale["Espe"] = "es-pe";
33865
- EmailTemplateLocale["Espr"] = "es-pr";
33866
- EmailTemplateLocale["Espy"] = "es-py";
33867
- EmailTemplateLocale["Essv"] = "es-sv";
33868
- EmailTemplateLocale["Esuy"] = "es-uy";
33869
- EmailTemplateLocale["Esve"] = "es-ve";
33870
- EmailTemplateLocale["Et"] = "et";
33871
- EmailTemplateLocale["Eu"] = "eu";
33872
- EmailTemplateLocale["Fa"] = "fa";
33873
- EmailTemplateLocale["Fi"] = "fi";
33874
- EmailTemplateLocale["Fo"] = "fo";
33875
- EmailTemplateLocale["Fr"] = "fr";
33876
- EmailTemplateLocale["Frbe"] = "fr-be";
33877
- EmailTemplateLocale["Frca"] = "fr-ca";
33878
- EmailTemplateLocale["Frch"] = "fr-ch";
33879
- EmailTemplateLocale["Frlu"] = "fr-lu";
33880
- EmailTemplateLocale["Ga"] = "ga";
33881
- EmailTemplateLocale["Gd"] = "gd";
33882
- EmailTemplateLocale["He"] = "he";
33883
- EmailTemplateLocale["Hi"] = "hi";
33884
- EmailTemplateLocale["Hr"] = "hr";
33885
- EmailTemplateLocale["Hu"] = "hu";
33886
- EmailTemplateLocale["Id"] = "id";
33887
- EmailTemplateLocale["Is"] = "is";
33888
- EmailTemplateLocale["It"] = "it";
33889
- EmailTemplateLocale["Itch"] = "it-ch";
33890
- EmailTemplateLocale["Ja"] = "ja";
33891
- EmailTemplateLocale["Ji"] = "ji";
33892
- EmailTemplateLocale["Ko"] = "ko";
33893
- EmailTemplateLocale["Ku"] = "ku";
33894
- EmailTemplateLocale["Lt"] = "lt";
33895
- EmailTemplateLocale["Lv"] = "lv";
33896
- EmailTemplateLocale["Mk"] = "mk";
33897
- EmailTemplateLocale["Ml"] = "ml";
33898
- EmailTemplateLocale["Ms"] = "ms";
33899
- EmailTemplateLocale["Mt"] = "mt";
33900
- EmailTemplateLocale["Nb"] = "nb";
33901
- EmailTemplateLocale["Ne"] = "ne";
33902
- EmailTemplateLocale["Nl"] = "nl";
33903
- EmailTemplateLocale["Nlbe"] = "nl-be";
33904
- EmailTemplateLocale["Nn"] = "nn";
33905
- EmailTemplateLocale["No"] = "no";
33906
- EmailTemplateLocale["Pa"] = "pa";
33907
- EmailTemplateLocale["Pl"] = "pl";
33908
- EmailTemplateLocale["Pt"] = "pt";
33909
- EmailTemplateLocale["Ptbr"] = "pt-br";
33910
- EmailTemplateLocale["Rm"] = "rm";
33911
- EmailTemplateLocale["Ro"] = "ro";
33912
- EmailTemplateLocale["Romd"] = "ro-md";
33913
- EmailTemplateLocale["Ru"] = "ru";
33914
- EmailTemplateLocale["Rumd"] = "ru-md";
33915
- EmailTemplateLocale["Sb"] = "sb";
33916
- EmailTemplateLocale["Sk"] = "sk";
33917
- EmailTemplateLocale["Sl"] = "sl";
33918
- EmailTemplateLocale["Sq"] = "sq";
33919
- EmailTemplateLocale["Sr"] = "sr";
33920
- EmailTemplateLocale["Sv"] = "sv";
33921
- EmailTemplateLocale["Svfi"] = "sv-fi";
33922
- EmailTemplateLocale["Th"] = "th";
33923
- EmailTemplateLocale["Tn"] = "tn";
33924
- EmailTemplateLocale["Tr"] = "tr";
33925
- EmailTemplateLocale["Ts"] = "ts";
33926
- EmailTemplateLocale["Ua"] = "ua";
33927
- EmailTemplateLocale["Ur"] = "ur";
33928
- EmailTemplateLocale["Ve"] = "ve";
33929
- EmailTemplateLocale["Vi"] = "vi";
33930
- EmailTemplateLocale["Xh"] = "xh";
33931
- EmailTemplateLocale["Zhcn"] = "zh-cn";
33932
- EmailTemplateLocale["Zhhk"] = "zh-hk";
33933
- EmailTemplateLocale["Zhsg"] = "zh-sg";
33934
- EmailTemplateLocale["Zhtw"] = "zh-tw";
33935
- EmailTemplateLocale["Zu"] = "zu";
33936
- })(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 = {}));
33937
34448
 
33938
34449
  exports.ProjectUsageRange = void 0;
33939
34450
  (function (ProjectUsageRange) {
@@ -33941,28 +34452,26 @@ exports.ProjectUsageRange = void 0;
33941
34452
  ProjectUsageRange["OneDay"] = "1d";
33942
34453
  })(exports.ProjectUsageRange || (exports.ProjectUsageRange = {}));
33943
34454
 
33944
- exports.Region = void 0;
33945
- (function (Region) {
33946
- Region["Fra"] = "fra";
33947
- Region["Nyc"] = "nyc";
33948
- Region["Syd"] = "syd";
33949
- Region["Sfo"] = "sfo";
33950
- Region["Sgp"] = "sgp";
33951
- Region["Tor"] = "tor";
33952
- })(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 = {}));
33953
34462
 
33954
- exports.Status = void 0;
33955
- (function (Status) {
33956
- Status["Active"] = "active";
33957
- })(exports.Status || (exports.Status = {}));
34463
+ exports.ProjectStatus = void 0;
34464
+ (function (ProjectStatus) {
34465
+ ProjectStatus["Active"] = "active";
34466
+ })(exports.ProjectStatus || (exports.ProjectStatus = {}));
33958
34467
 
33959
- exports.StatusCode = void 0;
33960
- (function (StatusCode) {
33961
- StatusCode["MovedPermanently301"] = "301";
33962
- StatusCode["Found302"] = "302";
33963
- StatusCode["TemporaryRedirect307"] = "307";
33964
- StatusCode["PermanentRedirect308"] = "308";
33965
- })(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 = {}));
33966
34475
 
33967
34476
  exports.ProxyResourceType = void 0;
33968
34477
  (function (ProxyResourceType) {
@@ -33970,142 +34479,138 @@ exports.ProxyResourceType = void 0;
33970
34479
  ProxyResourceType["Function"] = "function";
33971
34480
  })(exports.ProxyResourceType || (exports.ProxyResourceType = {}));
33972
34481
 
33973
- exports.Framework = void 0;
33974
- (function (Framework) {
33975
- Framework["Analog"] = "analog";
33976
- Framework["Angular"] = "angular";
33977
- Framework["Nextjs"] = "nextjs";
33978
- Framework["React"] = "react";
33979
- Framework["Nuxt"] = "nuxt";
33980
- Framework["Vue"] = "vue";
33981
- Framework["Sveltekit"] = "sveltekit";
33982
- Framework["Astro"] = "astro";
33983
- Framework["Tanstackstart"] = "tanstack-start";
33984
- Framework["Remix"] = "remix";
33985
- Framework["Lynx"] = "lynx";
33986
- Framework["Flutter"] = "flutter";
33987
- Framework["Reactnative"] = "react-native";
33988
- Framework["Vite"] = "vite";
33989
- Framework["Other"] = "other";
33990
- })(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 = {}));
33991
34500
 
33992
- exports.BuildRuntime = void 0;
33993
- (function (BuildRuntime) {
33994
- BuildRuntime["Node145"] = "node-14.5";
33995
- BuildRuntime["Node160"] = "node-16.0";
33996
- BuildRuntime["Node180"] = "node-18.0";
33997
- BuildRuntime["Node190"] = "node-19.0";
33998
- BuildRuntime["Node200"] = "node-20.0";
33999
- BuildRuntime["Node210"] = "node-21.0";
34000
- BuildRuntime["Node22"] = "node-22";
34001
- BuildRuntime["Node23"] = "node-23";
34002
- BuildRuntime["Node24"] = "node-24";
34003
- BuildRuntime["Node25"] = "node-25";
34004
- BuildRuntime["Php80"] = "php-8.0";
34005
- BuildRuntime["Php81"] = "php-8.1";
34006
- BuildRuntime["Php82"] = "php-8.2";
34007
- BuildRuntime["Php83"] = "php-8.3";
34008
- BuildRuntime["Php84"] = "php-8.4";
34009
- BuildRuntime["Ruby30"] = "ruby-3.0";
34010
- BuildRuntime["Ruby31"] = "ruby-3.1";
34011
- BuildRuntime["Ruby32"] = "ruby-3.2";
34012
- BuildRuntime["Ruby33"] = "ruby-3.3";
34013
- BuildRuntime["Ruby34"] = "ruby-3.4";
34014
- BuildRuntime["Ruby40"] = "ruby-4.0";
34015
- BuildRuntime["Python38"] = "python-3.8";
34016
- BuildRuntime["Python39"] = "python-3.9";
34017
- BuildRuntime["Python310"] = "python-3.10";
34018
- BuildRuntime["Python311"] = "python-3.11";
34019
- BuildRuntime["Python312"] = "python-3.12";
34020
- BuildRuntime["Python313"] = "python-3.13";
34021
- BuildRuntime["Python314"] = "python-3.14";
34022
- BuildRuntime["Pythonml311"] = "python-ml-3.11";
34023
- BuildRuntime["Pythonml312"] = "python-ml-3.12";
34024
- BuildRuntime["Pythonml313"] = "python-ml-3.13";
34025
- BuildRuntime["Deno140"] = "deno-1.40";
34026
- BuildRuntime["Deno146"] = "deno-1.46";
34027
- BuildRuntime["Deno20"] = "deno-2.0";
34028
- BuildRuntime["Deno25"] = "deno-2.5";
34029
- BuildRuntime["Deno26"] = "deno-2.6";
34030
- BuildRuntime["Dart215"] = "dart-2.15";
34031
- BuildRuntime["Dart216"] = "dart-2.16";
34032
- BuildRuntime["Dart217"] = "dart-2.17";
34033
- BuildRuntime["Dart218"] = "dart-2.18";
34034
- BuildRuntime["Dart219"] = "dart-2.19";
34035
- BuildRuntime["Dart30"] = "dart-3.0";
34036
- BuildRuntime["Dart31"] = "dart-3.1";
34037
- BuildRuntime["Dart33"] = "dart-3.3";
34038
- BuildRuntime["Dart35"] = "dart-3.5";
34039
- BuildRuntime["Dart38"] = "dart-3.8";
34040
- BuildRuntime["Dart39"] = "dart-3.9";
34041
- BuildRuntime["Dart310"] = "dart-3.10";
34042
- BuildRuntime["Dart311"] = "dart-3.11";
34043
- BuildRuntime["Dotnet60"] = "dotnet-6.0";
34044
- BuildRuntime["Dotnet70"] = "dotnet-7.0";
34045
- BuildRuntime["Dotnet80"] = "dotnet-8.0";
34046
- BuildRuntime["Dotnet10"] = "dotnet-10";
34047
- BuildRuntime["Java80"] = "java-8.0";
34048
- BuildRuntime["Java110"] = "java-11.0";
34049
- BuildRuntime["Java170"] = "java-17.0";
34050
- BuildRuntime["Java180"] = "java-18.0";
34051
- BuildRuntime["Java210"] = "java-21.0";
34052
- BuildRuntime["Java22"] = "java-22";
34053
- BuildRuntime["Java25"] = "java-25";
34054
- BuildRuntime["Swift55"] = "swift-5.5";
34055
- BuildRuntime["Swift58"] = "swift-5.8";
34056
- BuildRuntime["Swift59"] = "swift-5.9";
34057
- BuildRuntime["Swift510"] = "swift-5.10";
34058
- BuildRuntime["Swift62"] = "swift-6.2";
34059
- BuildRuntime["Kotlin16"] = "kotlin-1.6";
34060
- BuildRuntime["Kotlin18"] = "kotlin-1.8";
34061
- BuildRuntime["Kotlin19"] = "kotlin-1.9";
34062
- BuildRuntime["Kotlin20"] = "kotlin-2.0";
34063
- BuildRuntime["Kotlin23"] = "kotlin-2.3";
34064
- BuildRuntime["Cpp17"] = "cpp-17";
34065
- BuildRuntime["Cpp20"] = "cpp-20";
34066
- BuildRuntime["Bun10"] = "bun-1.0";
34067
- BuildRuntime["Bun11"] = "bun-1.1";
34068
- BuildRuntime["Bun12"] = "bun-1.2";
34069
- BuildRuntime["Bun13"] = "bun-1.3";
34070
- BuildRuntime["Go123"] = "go-1.23";
34071
- BuildRuntime["Go124"] = "go-1.24";
34072
- BuildRuntime["Go125"] = "go-1.25";
34073
- BuildRuntime["Go126"] = "go-1.26";
34074
- BuildRuntime["Rust183"] = "rust-1.83";
34075
- BuildRuntime["Static1"] = "static-1";
34076
- BuildRuntime["Flutter324"] = "flutter-3.24";
34077
- BuildRuntime["Flutter327"] = "flutter-3.27";
34078
- BuildRuntime["Flutter329"] = "flutter-3.29";
34079
- BuildRuntime["Flutter332"] = "flutter-3.32";
34080
- BuildRuntime["Flutter335"] = "flutter-3.35";
34081
- BuildRuntime["Flutter338"] = "flutter-3.38";
34082
- BuildRuntime["Flutter341"] = "flutter-3.41";
34083
- })(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 = {}));
34084
34595
 
34085
- exports.Adapter = void 0;
34086
- (function (Adapter) {
34087
- Adapter["Static"] = "static";
34088
- Adapter["Ssr"] = "ssr";
34089
- })(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 = {}));
34090
34601
 
34091
- exports.Frameworks = void 0;
34092
- (function (Frameworks) {
34093
- Frameworks["Analog"] = "analog";
34094
- Frameworks["Angular"] = "angular";
34095
- Frameworks["Nextjs"] = "nextjs";
34096
- Frameworks["React"] = "react";
34097
- Frameworks["Nuxt"] = "nuxt";
34098
- Frameworks["Vue"] = "vue";
34099
- Frameworks["Sveltekit"] = "sveltekit";
34100
- Frameworks["Astro"] = "astro";
34101
- Frameworks["Tanstackstart"] = "tanstack-start";
34102
- Frameworks["Remix"] = "remix";
34103
- Frameworks["Lynx"] = "lynx";
34104
- Frameworks["Flutter"] = "flutter";
34105
- Frameworks["Reactnative"] = "react-native";
34106
- Frameworks["Vite"] = "vite";
34107
- Frameworks["Other"] = "other";
34108
- })(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 = {}));
34109
34614
 
34110
34615
  exports.Compression = void 0;
34111
34616
  (function (Compression) {
@@ -34163,10 +34668,10 @@ exports.VCSDetectionType = void 0;
34163
34668
  VCSDetectionType["Framework"] = "framework";
34164
34669
  })(exports.VCSDetectionType || (exports.VCSDetectionType = {}));
34165
34670
 
34166
- exports.Model = void 0;
34167
- (function (Model) {
34168
- Model["Embeddinggemma"] = "embeddinggemma";
34169
- })(exports.Model || (exports.Model = {}));
34671
+ exports.EmbeddingModel = void 0;
34672
+ (function (EmbeddingModel) {
34673
+ EmbeddingModel["Embeddinggemma"] = "embeddinggemma";
34674
+ })(exports.EmbeddingModel || (exports.EmbeddingModel = {}));
34170
34675
 
34171
34676
  exports.VectorsDBIndexType = void 0;
34172
34677
  (function (VectorsDBIndexType) {
@@ -34249,6 +34754,13 @@ exports.ExecutionStatus = void 0;
34249
34754
  ExecutionStatus["Scheduled"] = "scheduled";
34250
34755
  })(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
34251
34756
 
34757
+ exports.OAuth2GooglePrompt = void 0;
34758
+ (function (OAuth2GooglePrompt) {
34759
+ OAuth2GooglePrompt["None"] = "none";
34760
+ OAuth2GooglePrompt["Consent"] = "consent";
34761
+ OAuth2GooglePrompt["SelectAccount"] = "select_account";
34762
+ })(exports.OAuth2GooglePrompt || (exports.OAuth2GooglePrompt = {}));
34763
+
34252
34764
  exports.PlatformType = void 0;
34253
34765
  (function (PlatformType) {
34254
34766
  PlatformType["Windows"] = "windows";
@@ -34341,8 +34853,10 @@ exports.Manager = Manager;
34341
34853
  exports.Messaging = Messaging;
34342
34854
  exports.Migrations = Migrations;
34343
34855
  exports.Operator = Operator;
34856
+ exports.Organization = Organization;
34344
34857
  exports.Organizations = Organizations;
34345
34858
  exports.Permission = Permission;
34859
+ exports.Presences = Presences;
34346
34860
  exports.Project = Project;
34347
34861
  exports.Projects = Projects;
34348
34862
  exports.Proxy = Proxy;
@@ -34354,6 +34868,7 @@ exports.Storage = Storage;
34354
34868
  exports.TablesDB = TablesDB;
34355
34869
  exports.Teams = Teams;
34356
34870
  exports.Tokens = Tokens;
34871
+ exports.Usage = Usage;
34357
34872
  exports.Users = Users;
34358
34873
  exports.Vcs = Vcs;
34359
34874
  exports.VectorsDB = VectorsDB;