@appwrite.io/console 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +1658 -1162
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +1656 -1163
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +1676 -1180
  7. package/package.json +1 -1
  8. package/types/channel.d.ts +8 -3
  9. package/types/client.d.ts +1 -1
  10. package/types/enums/account-key-scopes.d.ts +5 -0
  11. package/types/enums/appwrite-migration-resource.d.ts +1 -0
  12. package/types/enums/backup-services.d.ts +1 -0
  13. package/types/enums/{resource-type.d.ts → block-resource-type.d.ts} +2 -6
  14. package/types/enums/{theme.d.ts → browser-theme.d.ts} +1 -1
  15. package/types/enums/cache-database.d.ts +5 -0
  16. package/types/enums/cache-target.d.ts +8 -0
  17. package/types/enums/{registration-type.d.ts → domain-registration-type.d.ts} +1 -1
  18. package/types/enums/{filter-type.d.ts → domain-suggestion-type.d.ts} +1 -1
  19. package/types/enums/{model.d.ts → embedding-model.d.ts} +1 -1
  20. package/types/enums/{runtime.d.ts → function-runtime.d.ts} +4 -2
  21. package/types/enums/function-template-use-case.d.ts +9 -0
  22. package/types/enums/{name.d.ts → health-queue-name.d.ts} +1 -1
  23. package/types/enums/{on-duplicate.d.ts → migration-on-duplicate.d.ts} +1 -1
  24. package/types/enums/o-auth-provider.d.ts +1 -3
  25. package/types/enums/organization-addon.d.ts +4 -0
  26. package/types/enums/organization-key-scopes.d.ts +12 -0
  27. package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
  28. package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
  29. package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
  30. package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +10 -8
  31. package/types/enums/{prompt.d.ts → project-o-auth-2-google-prompt.d.ts} +1 -1
  32. package/types/enums/project-o-auth-provider-id.d.ts +45 -0
  33. package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +1 -1
  34. package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
  35. package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
  36. package/types/enums/project-smtp-secure.d.ts +4 -0
  37. package/types/enums/project-status.d.ts +3 -0
  38. package/types/enums/query-suggestion-resource.d.ts +10 -1
  39. package/types/enums/redirect-status-code.d.ts +6 -0
  40. package/types/enums/schedule-resource-type.d.ts +6 -0
  41. package/types/enums/{adapter.d.ts → site-adapter.d.ts} +1 -1
  42. package/types/enums/{runtimes.d.ts → site-build-runtime.d.ts} +4 -2
  43. package/types/enums/{framework.d.ts → site-framework.d.ts} +1 -1
  44. package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
  45. package/types/index.d.ts +35 -27
  46. package/types/models.d.ts +1183 -1187
  47. package/types/services/account.d.ts +9 -9
  48. package/types/services/avatars.d.ts +5 -5
  49. package/types/services/console.d.ts +31 -0
  50. package/types/services/documents-db.d.ts +1 -4
  51. package/types/services/domains.d.ts +216 -216
  52. package/types/services/functions.d.ts +36 -25
  53. package/types/services/health.d.ts +5 -5
  54. package/types/services/manager.d.ts +49 -9
  55. package/types/services/migrations.d.ts +13 -13
  56. package/types/services/organization.d.ts +234 -0
  57. package/types/services/organizations.d.ts +5 -131
  58. package/types/services/presences.d.ts +166 -0
  59. package/types/services/project.d.ts +93 -86
  60. package/types/services/projects.d.ts +10 -159
  61. package/types/services/proxy.d.ts +5 -5
  62. package/types/services/realtime.d.ts +45 -3
  63. package/types/services/sites.d.ts +43 -32
  64. package/types/services/usage.d.ts +50 -0
  65. package/types/services/vectors-db.d.ts +6 -9
  66. package/types/enums/addon.d.ts +0 -3
  67. package/types/enums/build-runtime.d.ts +0 -91
  68. package/types/enums/frameworks.d.ts +0 -17
  69. package/types/enums/secure.d.ts +0 -4
  70. package/types/enums/status-code.d.ts +0 -6
  71. package/types/enums/status.d.ts +0 -3
package/dist/iife/sdk.js CHANGED
@@ -4419,8 +4419,8 @@
4419
4419
  'x-sdk-name': 'Console',
4420
4420
  'x-sdk-platform': 'console',
4421
4421
  'x-sdk-language': 'web',
4422
- 'x-sdk-version': '13.0.0',
4423
- 'X-Appwrite-Response-Format': '1.9.4',
4422
+ 'x-sdk-version': '13.1.0',
4423
+ 'X-Appwrite-Response-Format': '1.9.5',
4424
4424
  };
4425
4425
  this.realtime = {
4426
4426
  socket: undefined,
@@ -4971,33 +4971,107 @@
4971
4971
  if (file.size <= Client.CHUNK_SIZE) {
4972
4972
  return yield this.call(method, url, headers, originalPayload);
4973
4973
  }
4974
- let start = 0;
4975
- let response = null;
4976
- while (start < file.size) {
4977
- let end = start + Client.CHUNK_SIZE; // Prepare end for the next chunk
4978
- if (end >= file.size) {
4979
- end = file.size; // Adjust for the last chunk to include the last byte
4974
+ const totalChunks = Math.ceil(file.size / Client.CHUNK_SIZE);
4975
+ // Upload first chunk alone to get the upload ID
4976
+ const firstChunkEnd = Math.min(Client.CHUNK_SIZE, file.size);
4977
+ const firstChunkHeaders = Object.assign(Object.assign({}, headers), { 'content-range': `bytes 0-${firstChunkEnd - 1}/${file.size}` });
4978
+ const firstChunk = file.slice(0, firstChunkEnd);
4979
+ const firstPayload = Object.assign({}, originalPayload);
4980
+ firstPayload[fileParam] = new File([firstChunk], file.name);
4981
+ let response = yield this.call(method, url, firstChunkHeaders, firstPayload);
4982
+ const uploadId = response === null || response === void 0 ? void 0 : response.$id;
4983
+ if (onProgress && typeof onProgress === 'function') {
4984
+ onProgress({
4985
+ $id: uploadId,
4986
+ progress: Math.round((firstChunkEnd / file.size) * 100),
4987
+ sizeUploaded: firstChunkEnd,
4988
+ chunksTotal: totalChunks,
4989
+ chunksUploaded: 1
4990
+ });
4991
+ }
4992
+ if (totalChunks === 1) {
4993
+ return response;
4994
+ }
4995
+ // Prepare remaining chunks
4996
+ const chunks = [];
4997
+ for (let i = 1; i < totalChunks; i++) {
4998
+ const start = i * Client.CHUNK_SIZE;
4999
+ const end = Math.min(start + Client.CHUNK_SIZE, file.size);
5000
+ chunks.push({ start, end });
5001
+ }
5002
+ // Upload remaining chunks with max concurrency of 8
5003
+ const CONCURRENCY = 8;
5004
+ let completedCount = 1;
5005
+ let uploadedBytes = firstChunkEnd;
5006
+ let lastResponse = response;
5007
+ let finalResponse = null;
5008
+ let rejected = false;
5009
+ const isUploadComplete = (chunkResponse) => {
5010
+ var _a;
5011
+ const chunksUploaded = chunkResponse === null || chunkResponse === void 0 ? void 0 : chunkResponse.chunksUploaded;
5012
+ const chunksTotal = (_a = chunkResponse === null || chunkResponse === void 0 ? void 0 : chunkResponse.chunksTotal) !== null && _a !== void 0 ? _a : totalChunks;
5013
+ return typeof chunksUploaded === 'number' && typeof chunksTotal === 'number' && chunksUploaded >= chunksTotal;
5014
+ };
5015
+ const uploadChunk = (chunk) => __awaiter(this, void 0, void 0, function* () {
5016
+ const chunkHeaders = Object.assign({}, headers);
5017
+ if (uploadId) {
5018
+ chunkHeaders['x-appwrite-id'] = uploadId;
5019
+ }
5020
+ chunkHeaders['content-range'] = `bytes ${chunk.start}-${chunk.end - 1}/${file.size}`;
5021
+ const chunkBlob = file.slice(chunk.start, chunk.end);
5022
+ const chunkPayload = Object.assign({}, originalPayload);
5023
+ chunkPayload[fileParam] = new File([chunkBlob], file.name);
5024
+ const chunkResponse = yield this.call(method, url, chunkHeaders, chunkPayload);
5025
+ if (rejected) {
5026
+ return chunkResponse;
5027
+ }
5028
+ completedCount++;
5029
+ uploadedBytes += (chunk.end - chunk.start);
5030
+ lastResponse = chunkResponse;
5031
+ if (isUploadComplete(chunkResponse)) {
5032
+ finalResponse = chunkResponse;
4980
5033
  }
4981
- headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;
4982
- const chunk = file.slice(start, end);
4983
- let payload = Object.assign({}, originalPayload);
4984
- payload[fileParam] = new File([chunk], file.name);
4985
- response = yield this.call(method, url, headers, payload);
4986
5034
  if (onProgress && typeof onProgress === 'function') {
4987
5035
  onProgress({
4988
- $id: response.$id,
4989
- progress: Math.round((end / file.size) * 100),
4990
- sizeUploaded: end,
4991
- chunksTotal: Math.ceil(file.size / Client.CHUNK_SIZE),
4992
- chunksUploaded: Math.ceil(end / Client.CHUNK_SIZE)
5036
+ $id: uploadId,
5037
+ progress: Math.round((uploadedBytes / file.size) * 100),
5038
+ sizeUploaded: uploadedBytes,
5039
+ chunksTotal: totalChunks,
5040
+ chunksUploaded: completedCount
4993
5041
  });
4994
5042
  }
4995
- if (response && response.$id) {
4996
- headers['x-appwrite-id'] = response.$id;
4997
- }
4998
- start = end;
4999
- }
5000
- return response;
5043
+ return chunkResponse;
5044
+ });
5045
+ yield new Promise((resolve, reject) => {
5046
+ let nextChunk = 0;
5047
+ let inFlight = 0;
5048
+ let completed = 0;
5049
+ const uploadNext = () => {
5050
+ if (rejected) {
5051
+ return;
5052
+ }
5053
+ if (completed === chunks.length) {
5054
+ resolve();
5055
+ return;
5056
+ }
5057
+ while (inFlight < CONCURRENCY && nextChunk < chunks.length) {
5058
+ const chunk = chunks[nextChunk++];
5059
+ inFlight++;
5060
+ uploadChunk(chunk)
5061
+ .then(() => {
5062
+ inFlight--;
5063
+ completed++;
5064
+ uploadNext();
5065
+ })
5066
+ .catch((error) => {
5067
+ rejected = true;
5068
+ reject(error);
5069
+ });
5070
+ }
5071
+ };
5072
+ uploadNext();
5073
+ });
5074
+ return finalResponse !== null && finalResponse !== void 0 ? finalResponse : lastResponse;
5001
5075
  });
5002
5076
  }
5003
5077
  ping() {
@@ -5046,7 +5120,12 @@
5046
5120
  window.localStorage.setItem('cookieFallback', cookieFallback);
5047
5121
  }
5048
5122
  if (data && typeof data === 'object') {
5049
- data.toString = () => JSONbig.stringify(data);
5123
+ Object.defineProperty(data, 'toString', {
5124
+ value: () => JSONbig.stringify(data),
5125
+ writable: true,
5126
+ enumerable: false,
5127
+ configurable: true,
5128
+ });
5050
5129
  }
5051
5130
  return data;
5052
5131
  });
@@ -8150,6 +8229,19 @@
8150
8229
  const apiHeaders = {};
8151
8230
  return this.client.call('get', uri, apiHeaders, payload);
8152
8231
  }
8232
+ /**
8233
+ * List all scopes available for organization API keys, along with a description for each scope.
8234
+ *
8235
+ * @throws {AppwriteException}
8236
+ * @returns {Promise<Models.ConsoleKeyScopeList>}
8237
+ */
8238
+ listOrganizationScopes() {
8239
+ const apiPath = '/console/scopes/organization';
8240
+ const payload = {};
8241
+ const uri = new URL(this.client.config.endpoint + apiPath);
8242
+ const apiHeaders = {};
8243
+ return this.client.call('get', uri, apiHeaders, payload);
8244
+ }
8153
8245
  /**
8154
8246
  * List all scopes available for project API keys, along with a description for each scope.
8155
8247
  *
@@ -8333,6 +8425,31 @@
8333
8425
  const apiHeaders = {};
8334
8426
  return this.client.call('get', uri, apiHeaders, payload);
8335
8427
  }
8428
+ getEmailTemplate(paramsOrFirst, ...rest) {
8429
+ let params;
8430
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('templateId' in paramsOrFirst || 'locale' in paramsOrFirst))) {
8431
+ params = (paramsOrFirst || {});
8432
+ }
8433
+ else {
8434
+ params = {
8435
+ templateId: paramsOrFirst,
8436
+ locale: rest[0]
8437
+ };
8438
+ }
8439
+ const templateId = params.templateId;
8440
+ const locale = params.locale;
8441
+ if (typeof templateId === 'undefined') {
8442
+ throw new AppwriteException('Missing required parameter: "templateId"');
8443
+ }
8444
+ const apiPath = '/console/templates/email/{templateId}'.replace('{templateId}', templateId);
8445
+ const payload = {};
8446
+ if (typeof locale !== 'undefined') {
8447
+ payload['locale'] = locale;
8448
+ }
8449
+ const uri = new URL(this.client.config.endpoint + apiPath);
8450
+ const apiHeaders = {};
8451
+ return this.client.call('get', uri, apiHeaders, payload);
8452
+ }
8336
8453
  /**
8337
8454
  * Get all Environment Variables that are relevant for the console.
8338
8455
  *
@@ -11815,21 +11932,16 @@
11815
11932
  else {
11816
11933
  params = {
11817
11934
  queries: paramsOrFirst,
11818
- search: rest[0],
11819
- total: rest[1]
11935
+ total: rest[0]
11820
11936
  };
11821
11937
  }
11822
11938
  const queries = params.queries;
11823
- const search = params.search;
11824
11939
  const total = params.total;
11825
11940
  const apiPath = '/documentsdb';
11826
11941
  const payload = {};
11827
11942
  if (typeof queries !== 'undefined') {
11828
11943
  payload['queries'] = queries;
11829
11944
  }
11830
- if (typeof search !== 'undefined') {
11831
- payload['search'] = search;
11832
- }
11833
11945
  if (typeof total !== 'undefined') {
11834
11946
  payload['total'] = total;
11835
11947
  }
@@ -15135,9 +15247,11 @@
15135
15247
  providerBranch: rest[13],
15136
15248
  providerSilentMode: rest[14],
15137
15249
  providerRootDirectory: rest[15],
15138
- buildSpecification: rest[16],
15139
- runtimeSpecification: rest[17],
15140
- deploymentRetention: rest[18]
15250
+ providerBranches: rest[16],
15251
+ providerPaths: rest[17],
15252
+ buildSpecification: rest[18],
15253
+ runtimeSpecification: rest[19],
15254
+ deploymentRetention: rest[20]
15141
15255
  };
15142
15256
  }
15143
15257
  const functionId = params.functionId;
@@ -15157,6 +15271,8 @@
15157
15271
  const providerBranch = params.providerBranch;
15158
15272
  const providerSilentMode = params.providerSilentMode;
15159
15273
  const providerRootDirectory = params.providerRootDirectory;
15274
+ const providerBranches = params.providerBranches;
15275
+ const providerPaths = params.providerPaths;
15160
15276
  const buildSpecification = params.buildSpecification;
15161
15277
  const runtimeSpecification = params.runtimeSpecification;
15162
15278
  const deploymentRetention = params.deploymentRetention;
@@ -15222,6 +15338,12 @@
15222
15338
  if (typeof providerRootDirectory !== 'undefined') {
15223
15339
  payload['providerRootDirectory'] = providerRootDirectory;
15224
15340
  }
15341
+ if (typeof providerBranches !== 'undefined') {
15342
+ payload['providerBranches'] = providerBranches;
15343
+ }
15344
+ if (typeof providerPaths !== 'undefined') {
15345
+ payload['providerPaths'] = providerPaths;
15346
+ }
15225
15347
  if (typeof buildSpecification !== 'undefined') {
15226
15348
  payload['buildSpecification'] = buildSpecification;
15227
15349
  }
@@ -15387,9 +15509,11 @@
15387
15509
  providerBranch: rest[13],
15388
15510
  providerSilentMode: rest[14],
15389
15511
  providerRootDirectory: rest[15],
15390
- buildSpecification: rest[16],
15391
- runtimeSpecification: rest[17],
15392
- deploymentRetention: rest[18]
15512
+ providerBranches: rest[16],
15513
+ providerPaths: rest[17],
15514
+ buildSpecification: rest[18],
15515
+ runtimeSpecification: rest[19],
15516
+ deploymentRetention: rest[20]
15393
15517
  };
15394
15518
  }
15395
15519
  const functionId = params.functionId;
@@ -15409,6 +15533,8 @@
15409
15533
  const providerBranch = params.providerBranch;
15410
15534
  const providerSilentMode = params.providerSilentMode;
15411
15535
  const providerRootDirectory = params.providerRootDirectory;
15536
+ const providerBranches = params.providerBranches;
15537
+ const providerPaths = params.providerPaths;
15412
15538
  const buildSpecification = params.buildSpecification;
15413
15539
  const runtimeSpecification = params.runtimeSpecification;
15414
15540
  const deploymentRetention = params.deploymentRetention;
@@ -15468,6 +15594,12 @@
15468
15594
  if (typeof providerRootDirectory !== 'undefined') {
15469
15595
  payload['providerRootDirectory'] = providerRootDirectory;
15470
15596
  }
15597
+ if (typeof providerBranches !== 'undefined') {
15598
+ payload['providerBranches'] = providerBranches;
15599
+ }
15600
+ if (typeof providerPaths !== 'undefined') {
15601
+ payload['providerPaths'] = providerPaths;
15602
+ }
15471
15603
  if (typeof buildSpecification !== 'undefined') {
15472
15604
  payload['buildSpecification'] = buildSpecification;
15473
15605
  }
@@ -17039,6 +17171,58 @@
17039
17171
  const apiHeaders = {};
17040
17172
  return this.client.call('get', uri, apiHeaders, payload);
17041
17173
  }
17174
+ deleteCache(paramsOrFirst, ...rest) {
17175
+ let params;
17176
+ 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))) {
17177
+ params = (paramsOrFirst || {});
17178
+ }
17179
+ else {
17180
+ params = {
17181
+ region: paramsOrFirst,
17182
+ cache: rest[0],
17183
+ all: rest[1],
17184
+ database: rest[2],
17185
+ projectId: rest[3],
17186
+ collectionId: rest[4],
17187
+ documentId: rest[5]
17188
+ };
17189
+ }
17190
+ const region = params.region;
17191
+ const cache = params.cache;
17192
+ const all = params.all;
17193
+ const database = params.database;
17194
+ const projectId = params.projectId;
17195
+ const collectionId = params.collectionId;
17196
+ const documentId = params.documentId;
17197
+ const apiPath = '/manager/cache';
17198
+ const payload = {};
17199
+ if (typeof region !== 'undefined') {
17200
+ payload['region'] = region;
17201
+ }
17202
+ if (typeof cache !== 'undefined') {
17203
+ payload['cache'] = cache;
17204
+ }
17205
+ if (typeof all !== 'undefined') {
17206
+ payload['all'] = all;
17207
+ }
17208
+ if (typeof database !== 'undefined') {
17209
+ payload['database'] = database;
17210
+ }
17211
+ if (typeof projectId !== 'undefined') {
17212
+ payload['projectId'] = projectId;
17213
+ }
17214
+ if (typeof collectionId !== 'undefined') {
17215
+ payload['collectionId'] = collectionId;
17216
+ }
17217
+ if (typeof documentId !== 'undefined') {
17218
+ payload['documentId'] = documentId;
17219
+ }
17220
+ const uri = new URL(this.client.config.endpoint + apiPath);
17221
+ const apiHeaders = {
17222
+ 'content-type': 'application/json',
17223
+ };
17224
+ return this.client.call('delete', uri, apiHeaders, payload);
17225
+ }
17042
17226
  updateUserStatus(paramsOrFirst, ...rest) {
17043
17227
  let params;
17044
17228
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -20679,6 +20863,308 @@
20679
20863
  }
20680
20864
  }
20681
20865
 
20866
+ class Organization {
20867
+ constructor(client) {
20868
+ this.client = client;
20869
+ }
20870
+ listKeys(paramsOrFirst, ...rest) {
20871
+ let params;
20872
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20873
+ params = (paramsOrFirst || {});
20874
+ }
20875
+ else {
20876
+ params = {
20877
+ queries: paramsOrFirst,
20878
+ total: rest[0]
20879
+ };
20880
+ }
20881
+ const queries = params.queries;
20882
+ const total = params.total;
20883
+ const apiPath = '/organization/keys';
20884
+ const payload = {};
20885
+ if (typeof queries !== 'undefined') {
20886
+ payload['queries'] = queries;
20887
+ }
20888
+ if (typeof total !== 'undefined') {
20889
+ payload['total'] = total;
20890
+ }
20891
+ const uri = new URL(this.client.config.endpoint + apiPath);
20892
+ const apiHeaders = {};
20893
+ return this.client.call('get', uri, apiHeaders, payload);
20894
+ }
20895
+ createKey(paramsOrFirst, ...rest) {
20896
+ let params;
20897
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20898
+ params = (paramsOrFirst || {});
20899
+ }
20900
+ else {
20901
+ params = {
20902
+ keyId: paramsOrFirst,
20903
+ name: rest[0],
20904
+ scopes: rest[1],
20905
+ expire: rest[2]
20906
+ };
20907
+ }
20908
+ const keyId = params.keyId;
20909
+ const name = params.name;
20910
+ const scopes = params.scopes;
20911
+ const expire = params.expire;
20912
+ if (typeof keyId === 'undefined') {
20913
+ throw new AppwriteException('Missing required parameter: "keyId"');
20914
+ }
20915
+ if (typeof name === 'undefined') {
20916
+ throw new AppwriteException('Missing required parameter: "name"');
20917
+ }
20918
+ if (typeof scopes === 'undefined') {
20919
+ throw new AppwriteException('Missing required parameter: "scopes"');
20920
+ }
20921
+ const apiPath = '/organization/keys';
20922
+ const payload = {};
20923
+ if (typeof keyId !== 'undefined') {
20924
+ payload['keyId'] = keyId;
20925
+ }
20926
+ if (typeof name !== 'undefined') {
20927
+ payload['name'] = name;
20928
+ }
20929
+ if (typeof scopes !== 'undefined') {
20930
+ payload['scopes'] = scopes;
20931
+ }
20932
+ if (typeof expire !== 'undefined') {
20933
+ payload['expire'] = expire;
20934
+ }
20935
+ const uri = new URL(this.client.config.endpoint + apiPath);
20936
+ const apiHeaders = {
20937
+ 'content-type': 'application/json',
20938
+ };
20939
+ return this.client.call('post', uri, apiHeaders, payload);
20940
+ }
20941
+ getKey(paramsOrFirst) {
20942
+ let params;
20943
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20944
+ params = (paramsOrFirst || {});
20945
+ }
20946
+ else {
20947
+ params = {
20948
+ keyId: paramsOrFirst
20949
+ };
20950
+ }
20951
+ const keyId = params.keyId;
20952
+ if (typeof keyId === 'undefined') {
20953
+ throw new AppwriteException('Missing required parameter: "keyId"');
20954
+ }
20955
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
20956
+ const payload = {};
20957
+ const uri = new URL(this.client.config.endpoint + apiPath);
20958
+ const apiHeaders = {};
20959
+ return this.client.call('get', uri, apiHeaders, payload);
20960
+ }
20961
+ updateKey(paramsOrFirst, ...rest) {
20962
+ let params;
20963
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20964
+ params = (paramsOrFirst || {});
20965
+ }
20966
+ else {
20967
+ params = {
20968
+ keyId: paramsOrFirst,
20969
+ name: rest[0],
20970
+ scopes: rest[1],
20971
+ expire: rest[2]
20972
+ };
20973
+ }
20974
+ const keyId = params.keyId;
20975
+ const name = params.name;
20976
+ const scopes = params.scopes;
20977
+ const expire = params.expire;
20978
+ if (typeof keyId === 'undefined') {
20979
+ throw new AppwriteException('Missing required parameter: "keyId"');
20980
+ }
20981
+ if (typeof name === 'undefined') {
20982
+ throw new AppwriteException('Missing required parameter: "name"');
20983
+ }
20984
+ if (typeof scopes === 'undefined') {
20985
+ throw new AppwriteException('Missing required parameter: "scopes"');
20986
+ }
20987
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
20988
+ const payload = {};
20989
+ if (typeof name !== 'undefined') {
20990
+ payload['name'] = name;
20991
+ }
20992
+ if (typeof scopes !== 'undefined') {
20993
+ payload['scopes'] = scopes;
20994
+ }
20995
+ if (typeof expire !== 'undefined') {
20996
+ payload['expire'] = expire;
20997
+ }
20998
+ const uri = new URL(this.client.config.endpoint + apiPath);
20999
+ const apiHeaders = {
21000
+ 'content-type': 'application/json',
21001
+ };
21002
+ return this.client.call('put', uri, apiHeaders, payload);
21003
+ }
21004
+ deleteKey(paramsOrFirst) {
21005
+ let params;
21006
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21007
+ params = (paramsOrFirst || {});
21008
+ }
21009
+ else {
21010
+ params = {
21011
+ keyId: paramsOrFirst
21012
+ };
21013
+ }
21014
+ const keyId = params.keyId;
21015
+ if (typeof keyId === 'undefined') {
21016
+ throw new AppwriteException('Missing required parameter: "keyId"');
21017
+ }
21018
+ const apiPath = '/organization/keys/{keyId}'.replace('{keyId}', keyId);
21019
+ const payload = {};
21020
+ const uri = new URL(this.client.config.endpoint + apiPath);
21021
+ const apiHeaders = {
21022
+ 'content-type': 'application/json',
21023
+ };
21024
+ return this.client.call('delete', uri, apiHeaders, payload);
21025
+ }
21026
+ listProjects(paramsOrFirst, ...rest) {
21027
+ let params;
21028
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21029
+ params = (paramsOrFirst || {});
21030
+ }
21031
+ else {
21032
+ params = {
21033
+ queries: paramsOrFirst,
21034
+ search: rest[0],
21035
+ total: rest[1]
21036
+ };
21037
+ }
21038
+ const queries = params.queries;
21039
+ const search = params.search;
21040
+ const total = params.total;
21041
+ const apiPath = '/organization/projects';
21042
+ const payload = {};
21043
+ if (typeof queries !== 'undefined') {
21044
+ payload['queries'] = queries;
21045
+ }
21046
+ if (typeof search !== 'undefined') {
21047
+ payload['search'] = search;
21048
+ }
21049
+ if (typeof total !== 'undefined') {
21050
+ payload['total'] = total;
21051
+ }
21052
+ const uri = new URL(this.client.config.endpoint + apiPath);
21053
+ const apiHeaders = {};
21054
+ return this.client.call('get', uri, apiHeaders, payload);
21055
+ }
21056
+ createProject(paramsOrFirst, ...rest) {
21057
+ let params;
21058
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21059
+ params = (paramsOrFirst || {});
21060
+ }
21061
+ else {
21062
+ params = {
21063
+ projectId: paramsOrFirst,
21064
+ name: rest[0],
21065
+ region: rest[1]
21066
+ };
21067
+ }
21068
+ const projectId = params.projectId;
21069
+ const name = params.name;
21070
+ const region = params.region;
21071
+ if (typeof projectId === 'undefined') {
21072
+ throw new AppwriteException('Missing required parameter: "projectId"');
21073
+ }
21074
+ if (typeof name === 'undefined') {
21075
+ throw new AppwriteException('Missing required parameter: "name"');
21076
+ }
21077
+ const apiPath = '/organization/projects';
21078
+ const payload = {};
21079
+ if (typeof projectId !== 'undefined') {
21080
+ payload['projectId'] = projectId;
21081
+ }
21082
+ if (typeof name !== 'undefined') {
21083
+ payload['name'] = name;
21084
+ }
21085
+ if (typeof region !== 'undefined') {
21086
+ payload['region'] = region;
21087
+ }
21088
+ const uri = new URL(this.client.config.endpoint + apiPath);
21089
+ const apiHeaders = {
21090
+ 'content-type': 'application/json',
21091
+ };
21092
+ return this.client.call('post', uri, apiHeaders, payload);
21093
+ }
21094
+ getProject(paramsOrFirst) {
21095
+ let params;
21096
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21097
+ params = (paramsOrFirst || {});
21098
+ }
21099
+ else {
21100
+ params = {
21101
+ projectId: paramsOrFirst
21102
+ };
21103
+ }
21104
+ const projectId = params.projectId;
21105
+ if (typeof projectId === 'undefined') {
21106
+ throw new AppwriteException('Missing required parameter: "projectId"');
21107
+ }
21108
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
21109
+ const payload = {};
21110
+ const uri = new URL(this.client.config.endpoint + apiPath);
21111
+ const apiHeaders = {};
21112
+ return this.client.call('get', uri, apiHeaders, payload);
21113
+ }
21114
+ updateProject(paramsOrFirst, ...rest) {
21115
+ let params;
21116
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21117
+ params = (paramsOrFirst || {});
21118
+ }
21119
+ else {
21120
+ params = {
21121
+ projectId: paramsOrFirst,
21122
+ name: rest[0]
21123
+ };
21124
+ }
21125
+ const projectId = params.projectId;
21126
+ const name = params.name;
21127
+ if (typeof projectId === 'undefined') {
21128
+ throw new AppwriteException('Missing required parameter: "projectId"');
21129
+ }
21130
+ if (typeof name === 'undefined') {
21131
+ throw new AppwriteException('Missing required parameter: "name"');
21132
+ }
21133
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
21134
+ const payload = {};
21135
+ if (typeof name !== 'undefined') {
21136
+ payload['name'] = name;
21137
+ }
21138
+ const uri = new URL(this.client.config.endpoint + apiPath);
21139
+ const apiHeaders = {
21140
+ 'content-type': 'application/json',
21141
+ };
21142
+ return this.client.call('patch', uri, apiHeaders, payload);
21143
+ }
21144
+ deleteProject(paramsOrFirst) {
21145
+ let params;
21146
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21147
+ params = (paramsOrFirst || {});
21148
+ }
21149
+ else {
21150
+ params = {
21151
+ projectId: paramsOrFirst
21152
+ };
21153
+ }
21154
+ const projectId = params.projectId;
21155
+ if (typeof projectId === 'undefined') {
21156
+ throw new AppwriteException('Missing required parameter: "projectId"');
21157
+ }
21158
+ const apiPath = '/organization/projects/{projectId}'.replace('{projectId}', projectId);
21159
+ const payload = {};
21160
+ const uri = new URL(this.client.config.endpoint + apiPath);
21161
+ const apiHeaders = {
21162
+ 'content-type': 'application/json',
21163
+ };
21164
+ return this.client.call('delete', uri, apiHeaders, payload);
21165
+ }
21166
+ }
21167
+
20682
21168
  class Organizations {
20683
21169
  constructor(client) {
20684
21170
  this.client = client;
@@ -21577,174 +22063,6 @@
21577
22063
  const apiHeaders = {};
21578
22064
  return this.client.call('get', uri, apiHeaders, payload);
21579
22065
  }
21580
- listKeys(paramsOrFirst, ...rest) {
21581
- let params;
21582
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21583
- params = (paramsOrFirst || {});
21584
- }
21585
- else {
21586
- params = {
21587
- organizationId: paramsOrFirst,
21588
- total: rest[0]
21589
- };
21590
- }
21591
- const organizationId = params.organizationId;
21592
- const total = params.total;
21593
- if (typeof organizationId === 'undefined') {
21594
- throw new AppwriteException('Missing required parameter: "organizationId"');
21595
- }
21596
- const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
21597
- const payload = {};
21598
- if (typeof total !== 'undefined') {
21599
- payload['total'] = total;
21600
- }
21601
- const uri = new URL(this.client.config.endpoint + apiPath);
21602
- const apiHeaders = {};
21603
- return this.client.call('get', uri, apiHeaders, payload);
21604
- }
21605
- createKey(paramsOrFirst, ...rest) {
21606
- let params;
21607
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21608
- params = (paramsOrFirst || {});
21609
- }
21610
- else {
21611
- params = {
21612
- organizationId: paramsOrFirst,
21613
- name: rest[0],
21614
- scopes: rest[1],
21615
- expire: rest[2]
21616
- };
21617
- }
21618
- const organizationId = params.organizationId;
21619
- const name = params.name;
21620
- const scopes = params.scopes;
21621
- const expire = params.expire;
21622
- if (typeof organizationId === 'undefined') {
21623
- throw new AppwriteException('Missing required parameter: "organizationId"');
21624
- }
21625
- if (typeof name === 'undefined') {
21626
- throw new AppwriteException('Missing required parameter: "name"');
21627
- }
21628
- if (typeof scopes === 'undefined') {
21629
- throw new AppwriteException('Missing required parameter: "scopes"');
21630
- }
21631
- const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
21632
- const payload = {};
21633
- if (typeof name !== 'undefined') {
21634
- payload['name'] = name;
21635
- }
21636
- if (typeof scopes !== 'undefined') {
21637
- payload['scopes'] = scopes;
21638
- }
21639
- if (typeof expire !== 'undefined') {
21640
- payload['expire'] = expire;
21641
- }
21642
- const uri = new URL(this.client.config.endpoint + apiPath);
21643
- const apiHeaders = {
21644
- 'content-type': 'application/json',
21645
- };
21646
- return this.client.call('post', uri, apiHeaders, payload);
21647
- }
21648
- getKey(paramsOrFirst, ...rest) {
21649
- let params;
21650
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21651
- params = (paramsOrFirst || {});
21652
- }
21653
- else {
21654
- params = {
21655
- organizationId: paramsOrFirst,
21656
- keyId: rest[0]
21657
- };
21658
- }
21659
- const organizationId = params.organizationId;
21660
- const keyId = params.keyId;
21661
- if (typeof organizationId === 'undefined') {
21662
- throw new AppwriteException('Missing required parameter: "organizationId"');
21663
- }
21664
- if (typeof keyId === 'undefined') {
21665
- throw new AppwriteException('Missing required parameter: "keyId"');
21666
- }
21667
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
21668
- const payload = {};
21669
- const uri = new URL(this.client.config.endpoint + apiPath);
21670
- const apiHeaders = {};
21671
- return this.client.call('get', uri, apiHeaders, payload);
21672
- }
21673
- updateKey(paramsOrFirst, ...rest) {
21674
- let params;
21675
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21676
- params = (paramsOrFirst || {});
21677
- }
21678
- else {
21679
- params = {
21680
- organizationId: paramsOrFirst,
21681
- keyId: rest[0],
21682
- name: rest[1],
21683
- scopes: rest[2],
21684
- expire: rest[3]
21685
- };
21686
- }
21687
- const organizationId = params.organizationId;
21688
- const keyId = params.keyId;
21689
- const name = params.name;
21690
- const scopes = params.scopes;
21691
- const expire = params.expire;
21692
- if (typeof organizationId === 'undefined') {
21693
- throw new AppwriteException('Missing required parameter: "organizationId"');
21694
- }
21695
- if (typeof keyId === 'undefined') {
21696
- throw new AppwriteException('Missing required parameter: "keyId"');
21697
- }
21698
- if (typeof name === 'undefined') {
21699
- throw new AppwriteException('Missing required parameter: "name"');
21700
- }
21701
- if (typeof scopes === 'undefined') {
21702
- throw new AppwriteException('Missing required parameter: "scopes"');
21703
- }
21704
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
21705
- const payload = {};
21706
- if (typeof name !== 'undefined') {
21707
- payload['name'] = name;
21708
- }
21709
- if (typeof scopes !== 'undefined') {
21710
- payload['scopes'] = scopes;
21711
- }
21712
- if (typeof expire !== 'undefined') {
21713
- payload['expire'] = expire;
21714
- }
21715
- const uri = new URL(this.client.config.endpoint + apiPath);
21716
- const apiHeaders = {
21717
- 'content-type': 'application/json',
21718
- };
21719
- return this.client.call('put', uri, apiHeaders, payload);
21720
- }
21721
- deleteKey(paramsOrFirst, ...rest) {
21722
- let params;
21723
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21724
- params = (paramsOrFirst || {});
21725
- }
21726
- else {
21727
- params = {
21728
- organizationId: paramsOrFirst,
21729
- keyId: rest[0]
21730
- };
21731
- }
21732
- const organizationId = params.organizationId;
21733
- const keyId = params.keyId;
21734
- if (typeof organizationId === 'undefined') {
21735
- throw new AppwriteException('Missing required parameter: "organizationId"');
21736
- }
21737
- if (typeof keyId === 'undefined') {
21738
- throw new AppwriteException('Missing required parameter: "keyId"');
21739
- }
21740
- const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
21741
- const payload = {};
21742
- const uri = new URL(this.client.config.endpoint + apiPath);
21743
- const apiHeaders = {
21744
- 'content-type': 'application/json',
21745
- };
21746
- return this.client.call('delete', uri, apiHeaders, payload);
21747
- }
21748
22066
  setDefaultPaymentMethod(paramsOrFirst, ...rest) {
21749
22067
  let params;
21750
22068
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22150,10 +22468,213 @@
22150
22468
  }
22151
22469
  }
22152
22470
 
22471
+ class Presences {
22472
+ constructor(client) {
22473
+ this.client = client;
22474
+ }
22475
+ list(paramsOrFirst, ...rest) {
22476
+ let params;
22477
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22478
+ params = (paramsOrFirst || {});
22479
+ }
22480
+ else {
22481
+ params = {
22482
+ queries: paramsOrFirst,
22483
+ total: rest[0],
22484
+ ttl: rest[1]
22485
+ };
22486
+ }
22487
+ const queries = params.queries;
22488
+ const total = params.total;
22489
+ const ttl = params.ttl;
22490
+ const apiPath = '/presences';
22491
+ const payload = {};
22492
+ if (typeof queries !== 'undefined') {
22493
+ payload['queries'] = queries;
22494
+ }
22495
+ if (typeof total !== 'undefined') {
22496
+ payload['total'] = total;
22497
+ }
22498
+ if (typeof ttl !== 'undefined') {
22499
+ payload['ttl'] = ttl;
22500
+ }
22501
+ const uri = new URL(this.client.config.endpoint + apiPath);
22502
+ const apiHeaders = {};
22503
+ return this.client.call('get', uri, apiHeaders, payload);
22504
+ }
22505
+ getUsage(paramsOrFirst) {
22506
+ let params;
22507
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('range' in paramsOrFirst))) {
22508
+ params = (paramsOrFirst || {});
22509
+ }
22510
+ else {
22511
+ params = {
22512
+ range: paramsOrFirst
22513
+ };
22514
+ }
22515
+ const range = params.range;
22516
+ const apiPath = '/presences/usage';
22517
+ const payload = {};
22518
+ if (typeof range !== 'undefined') {
22519
+ payload['range'] = range;
22520
+ }
22521
+ const uri = new URL(this.client.config.endpoint + apiPath);
22522
+ const apiHeaders = {};
22523
+ return this.client.call('get', uri, apiHeaders, payload);
22524
+ }
22525
+ get(paramsOrFirst) {
22526
+ let params;
22527
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22528
+ params = (paramsOrFirst || {});
22529
+ }
22530
+ else {
22531
+ params = {
22532
+ presenceId: paramsOrFirst
22533
+ };
22534
+ }
22535
+ const presenceId = params.presenceId;
22536
+ if (typeof presenceId === 'undefined') {
22537
+ throw new AppwriteException('Missing required parameter: "presenceId"');
22538
+ }
22539
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
22540
+ const payload = {};
22541
+ const uri = new URL(this.client.config.endpoint + apiPath);
22542
+ const apiHeaders = {};
22543
+ return this.client.call('get', uri, apiHeaders, payload);
22544
+ }
22545
+ upsert(paramsOrFirst, ...rest) {
22546
+ let params;
22547
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22548
+ params = (paramsOrFirst || {});
22549
+ }
22550
+ else {
22551
+ params = {
22552
+ presenceId: paramsOrFirst,
22553
+ status: rest[0],
22554
+ permissions: rest[1],
22555
+ expiresAt: rest[2],
22556
+ metadata: rest[3]
22557
+ };
22558
+ }
22559
+ const presenceId = params.presenceId;
22560
+ const status = params.status;
22561
+ const permissions = params.permissions;
22562
+ const expiresAt = params.expiresAt;
22563
+ const metadata = params.metadata;
22564
+ if (typeof presenceId === 'undefined') {
22565
+ throw new AppwriteException('Missing required parameter: "presenceId"');
22566
+ }
22567
+ if (typeof status === 'undefined') {
22568
+ throw new AppwriteException('Missing required parameter: "status"');
22569
+ }
22570
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
22571
+ const payload = {};
22572
+ if (typeof status !== 'undefined') {
22573
+ payload['status'] = status;
22574
+ }
22575
+ if (typeof permissions !== 'undefined') {
22576
+ payload['permissions'] = permissions;
22577
+ }
22578
+ if (typeof expiresAt !== 'undefined') {
22579
+ payload['expiresAt'] = expiresAt;
22580
+ }
22581
+ if (typeof metadata !== 'undefined') {
22582
+ payload['metadata'] = metadata;
22583
+ }
22584
+ const uri = new URL(this.client.config.endpoint + apiPath);
22585
+ const apiHeaders = {
22586
+ 'content-type': 'application/json',
22587
+ };
22588
+ return this.client.call('put', uri, apiHeaders, payload);
22589
+ }
22590
+ update(paramsOrFirst, ...rest) {
22591
+ let params;
22592
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22593
+ params = (paramsOrFirst || {});
22594
+ }
22595
+ else {
22596
+ params = {
22597
+ presenceId: paramsOrFirst,
22598
+ status: rest[0],
22599
+ expiresAt: rest[1],
22600
+ metadata: rest[2],
22601
+ permissions: rest[3],
22602
+ purge: rest[4]
22603
+ };
22604
+ }
22605
+ const presenceId = params.presenceId;
22606
+ const status = params.status;
22607
+ const expiresAt = params.expiresAt;
22608
+ const metadata = params.metadata;
22609
+ const permissions = params.permissions;
22610
+ const purge = params.purge;
22611
+ if (typeof presenceId === 'undefined') {
22612
+ throw new AppwriteException('Missing required parameter: "presenceId"');
22613
+ }
22614
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
22615
+ const payload = {};
22616
+ if (typeof status !== 'undefined') {
22617
+ payload['status'] = status;
22618
+ }
22619
+ if (typeof expiresAt !== 'undefined') {
22620
+ payload['expiresAt'] = expiresAt;
22621
+ }
22622
+ if (typeof metadata !== 'undefined') {
22623
+ payload['metadata'] = metadata;
22624
+ }
22625
+ if (typeof permissions !== 'undefined') {
22626
+ payload['permissions'] = permissions;
22627
+ }
22628
+ if (typeof purge !== 'undefined') {
22629
+ payload['purge'] = purge;
22630
+ }
22631
+ const uri = new URL(this.client.config.endpoint + apiPath);
22632
+ const apiHeaders = {
22633
+ 'content-type': 'application/json',
22634
+ };
22635
+ return this.client.call('patch', uri, apiHeaders, payload);
22636
+ }
22637
+ delete(paramsOrFirst) {
22638
+ let params;
22639
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22640
+ params = (paramsOrFirst || {});
22641
+ }
22642
+ else {
22643
+ params = {
22644
+ presenceId: paramsOrFirst
22645
+ };
22646
+ }
22647
+ const presenceId = params.presenceId;
22648
+ if (typeof presenceId === 'undefined') {
22649
+ throw new AppwriteException('Missing required parameter: "presenceId"');
22650
+ }
22651
+ const apiPath = '/presences/{presenceId}'.replace('{presenceId}', presenceId);
22652
+ const payload = {};
22653
+ const uri = new URL(this.client.config.endpoint + apiPath);
22654
+ const apiHeaders = {
22655
+ 'content-type': 'application/json',
22656
+ };
22657
+ return this.client.call('delete', uri, apiHeaders, payload);
22658
+ }
22659
+ }
22660
+
22153
22661
  class Project {
22154
22662
  constructor(client) {
22155
22663
  this.client = client;
22156
22664
  }
22665
+ /**
22666
+ * Get a project.
22667
+ *
22668
+ * @throws {AppwriteException}
22669
+ * @returns {Promise<Models.Project>}
22670
+ */
22671
+ get() {
22672
+ const apiPath = '/project';
22673
+ const payload = {};
22674
+ const uri = new URL(this.client.config.endpoint + apiPath);
22675
+ const apiHeaders = {};
22676
+ return this.client.call('get', uri, apiHeaders, payload);
22677
+ }
22157
22678
  /**
22158
22679
  * Delete a project.
22159
22680
  *
@@ -24499,7 +25020,7 @@
24499
25020
  const apiHeaders = {};
24500
25021
  return this.client.call('get', uri, apiHeaders, payload);
24501
25022
  }
24502
- updateDenyCanonicalEmailPolicy(paramsOrFirst) {
25023
+ updateDenyAliasedEmailPolicy(paramsOrFirst) {
24503
25024
  let params;
24504
25025
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24505
25026
  params = (paramsOrFirst || {});
@@ -24513,7 +25034,7 @@
24513
25034
  if (typeof enabled === 'undefined') {
24514
25035
  throw new AppwriteException('Missing required parameter: "enabled"');
24515
25036
  }
24516
- const apiPath = '/project/policies/deny-canonical-email';
25037
+ const apiPath = '/project/policies/deny-aliased-email';
24517
25038
  const payload = {};
24518
25039
  if (typeof enabled !== 'undefined') {
24519
25040
  payload['enabled'] = enabled;
@@ -25290,222 +25811,6 @@
25290
25811
  constructor(client) {
25291
25812
  this.client = client;
25292
25813
  }
25293
- list(paramsOrFirst, ...rest) {
25294
- let params;
25295
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25296
- params = (paramsOrFirst || {});
25297
- }
25298
- else {
25299
- params = {
25300
- queries: paramsOrFirst,
25301
- search: rest[0],
25302
- total: rest[1]
25303
- };
25304
- }
25305
- const queries = params.queries;
25306
- const search = params.search;
25307
- const total = params.total;
25308
- const apiPath = '/projects';
25309
- const payload = {};
25310
- if (typeof queries !== 'undefined') {
25311
- payload['queries'] = queries;
25312
- }
25313
- if (typeof search !== 'undefined') {
25314
- payload['search'] = search;
25315
- }
25316
- if (typeof total !== 'undefined') {
25317
- payload['total'] = total;
25318
- }
25319
- const uri = new URL(this.client.config.endpoint + apiPath);
25320
- const apiHeaders = {};
25321
- return this.client.call('get', uri, apiHeaders, payload);
25322
- }
25323
- create(paramsOrFirst, ...rest) {
25324
- let params;
25325
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25326
- params = (paramsOrFirst || {});
25327
- }
25328
- else {
25329
- params = {
25330
- projectId: paramsOrFirst,
25331
- name: rest[0],
25332
- teamId: rest[1],
25333
- region: rest[2],
25334
- description: rest[3],
25335
- logo: rest[4],
25336
- url: rest[5],
25337
- legalName: rest[6],
25338
- legalCountry: rest[7],
25339
- legalState: rest[8],
25340
- legalCity: rest[9],
25341
- legalAddress: rest[10],
25342
- legalTaxId: rest[11]
25343
- };
25344
- }
25345
- const projectId = params.projectId;
25346
- const name = params.name;
25347
- const teamId = params.teamId;
25348
- const region = params.region;
25349
- const description = params.description;
25350
- const logo = params.logo;
25351
- const url = params.url;
25352
- const legalName = params.legalName;
25353
- const legalCountry = params.legalCountry;
25354
- const legalState = params.legalState;
25355
- const legalCity = params.legalCity;
25356
- const legalAddress = params.legalAddress;
25357
- const legalTaxId = params.legalTaxId;
25358
- if (typeof projectId === 'undefined') {
25359
- throw new AppwriteException('Missing required parameter: "projectId"');
25360
- }
25361
- if (typeof name === 'undefined') {
25362
- throw new AppwriteException('Missing required parameter: "name"');
25363
- }
25364
- if (typeof teamId === 'undefined') {
25365
- throw new AppwriteException('Missing required parameter: "teamId"');
25366
- }
25367
- const apiPath = '/projects';
25368
- const payload = {};
25369
- if (typeof projectId !== 'undefined') {
25370
- payload['projectId'] = projectId;
25371
- }
25372
- if (typeof name !== 'undefined') {
25373
- payload['name'] = name;
25374
- }
25375
- if (typeof teamId !== 'undefined') {
25376
- payload['teamId'] = teamId;
25377
- }
25378
- if (typeof region !== 'undefined') {
25379
- payload['region'] = region;
25380
- }
25381
- if (typeof description !== 'undefined') {
25382
- payload['description'] = description;
25383
- }
25384
- if (typeof logo !== 'undefined') {
25385
- payload['logo'] = logo;
25386
- }
25387
- if (typeof url !== 'undefined') {
25388
- payload['url'] = url;
25389
- }
25390
- if (typeof legalName !== 'undefined') {
25391
- payload['legalName'] = legalName;
25392
- }
25393
- if (typeof legalCountry !== 'undefined') {
25394
- payload['legalCountry'] = legalCountry;
25395
- }
25396
- if (typeof legalState !== 'undefined') {
25397
- payload['legalState'] = legalState;
25398
- }
25399
- if (typeof legalCity !== 'undefined') {
25400
- payload['legalCity'] = legalCity;
25401
- }
25402
- if (typeof legalAddress !== 'undefined') {
25403
- payload['legalAddress'] = legalAddress;
25404
- }
25405
- if (typeof legalTaxId !== 'undefined') {
25406
- payload['legalTaxId'] = legalTaxId;
25407
- }
25408
- const uri = new URL(this.client.config.endpoint + apiPath);
25409
- const apiHeaders = {
25410
- 'content-type': 'application/json',
25411
- };
25412
- return this.client.call('post', uri, apiHeaders, payload);
25413
- }
25414
- get(paramsOrFirst) {
25415
- let params;
25416
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25417
- params = (paramsOrFirst || {});
25418
- }
25419
- else {
25420
- params = {
25421
- projectId: paramsOrFirst
25422
- };
25423
- }
25424
- const projectId = params.projectId;
25425
- if (typeof projectId === 'undefined') {
25426
- throw new AppwriteException('Missing required parameter: "projectId"');
25427
- }
25428
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
25429
- const payload = {};
25430
- const uri = new URL(this.client.config.endpoint + apiPath);
25431
- const apiHeaders = {};
25432
- return this.client.call('get', uri, apiHeaders, payload);
25433
- }
25434
- update(paramsOrFirst, ...rest) {
25435
- let params;
25436
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25437
- params = (paramsOrFirst || {});
25438
- }
25439
- else {
25440
- params = {
25441
- projectId: paramsOrFirst,
25442
- name: rest[0],
25443
- description: rest[1],
25444
- logo: rest[2],
25445
- url: rest[3],
25446
- legalName: rest[4],
25447
- legalCountry: rest[5],
25448
- legalState: rest[6],
25449
- legalCity: rest[7],
25450
- legalAddress: rest[8],
25451
- legalTaxId: rest[9]
25452
- };
25453
- }
25454
- const projectId = params.projectId;
25455
- const name = params.name;
25456
- const description = params.description;
25457
- const logo = params.logo;
25458
- const url = params.url;
25459
- const legalName = params.legalName;
25460
- const legalCountry = params.legalCountry;
25461
- const legalState = params.legalState;
25462
- const legalCity = params.legalCity;
25463
- const legalAddress = params.legalAddress;
25464
- const legalTaxId = params.legalTaxId;
25465
- if (typeof projectId === 'undefined') {
25466
- throw new AppwriteException('Missing required parameter: "projectId"');
25467
- }
25468
- if (typeof name === 'undefined') {
25469
- throw new AppwriteException('Missing required parameter: "name"');
25470
- }
25471
- const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
25472
- const payload = {};
25473
- if (typeof name !== 'undefined') {
25474
- payload['name'] = name;
25475
- }
25476
- if (typeof description !== 'undefined') {
25477
- payload['description'] = description;
25478
- }
25479
- if (typeof logo !== 'undefined') {
25480
- payload['logo'] = logo;
25481
- }
25482
- if (typeof url !== 'undefined') {
25483
- payload['url'] = url;
25484
- }
25485
- if (typeof legalName !== 'undefined') {
25486
- payload['legalName'] = legalName;
25487
- }
25488
- if (typeof legalCountry !== 'undefined') {
25489
- payload['legalCountry'] = legalCountry;
25490
- }
25491
- if (typeof legalState !== 'undefined') {
25492
- payload['legalState'] = legalState;
25493
- }
25494
- if (typeof legalCity !== 'undefined') {
25495
- payload['legalCity'] = legalCity;
25496
- }
25497
- if (typeof legalAddress !== 'undefined') {
25498
- payload['legalAddress'] = legalAddress;
25499
- }
25500
- if (typeof legalTaxId !== 'undefined') {
25501
- payload['legalTaxId'] = legalTaxId;
25502
- }
25503
- const uri = new URL(this.client.config.endpoint + apiPath);
25504
- const apiHeaders = {
25505
- 'content-type': 'application/json',
25506
- };
25507
- return this.client.call('patch', uri, apiHeaders, payload);
25508
- }
25509
25814
  updateConsoleAccess(paramsOrFirst) {
25510
25815
  let params;
25511
25816
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -26171,9 +26476,11 @@
26171
26476
  providerBranch: rest[14],
26172
26477
  providerSilentMode: rest[15],
26173
26478
  providerRootDirectory: rest[16],
26174
- buildSpecification: rest[17],
26175
- runtimeSpecification: rest[18],
26176
- deploymentRetention: rest[19]
26479
+ providerBranches: rest[17],
26480
+ providerPaths: rest[18],
26481
+ buildSpecification: rest[19],
26482
+ runtimeSpecification: rest[20],
26483
+ deploymentRetention: rest[21]
26177
26484
  };
26178
26485
  }
26179
26486
  const siteId = params.siteId;
@@ -26194,6 +26501,8 @@
26194
26501
  const providerBranch = params.providerBranch;
26195
26502
  const providerSilentMode = params.providerSilentMode;
26196
26503
  const providerRootDirectory = params.providerRootDirectory;
26504
+ const providerBranches = params.providerBranches;
26505
+ const providerPaths = params.providerPaths;
26197
26506
  const buildSpecification = params.buildSpecification;
26198
26507
  const runtimeSpecification = params.runtimeSpecification;
26199
26508
  const deploymentRetention = params.deploymentRetention;
@@ -26265,6 +26574,12 @@
26265
26574
  if (typeof providerRootDirectory !== 'undefined') {
26266
26575
  payload['providerRootDirectory'] = providerRootDirectory;
26267
26576
  }
26577
+ if (typeof providerBranches !== 'undefined') {
26578
+ payload['providerBranches'] = providerBranches;
26579
+ }
26580
+ if (typeof providerPaths !== 'undefined') {
26581
+ payload['providerPaths'] = providerPaths;
26582
+ }
26268
26583
  if (typeof buildSpecification !== 'undefined') {
26269
26584
  payload['buildSpecification'] = buildSpecification;
26270
26585
  }
@@ -26426,9 +26741,11 @@
26426
26741
  providerBranch: rest[14],
26427
26742
  providerSilentMode: rest[15],
26428
26743
  providerRootDirectory: rest[16],
26429
- buildSpecification: rest[17],
26430
- runtimeSpecification: rest[18],
26431
- deploymentRetention: rest[19]
26744
+ providerBranches: rest[17],
26745
+ providerPaths: rest[18],
26746
+ buildSpecification: rest[19],
26747
+ runtimeSpecification: rest[20],
26748
+ deploymentRetention: rest[21]
26432
26749
  };
26433
26750
  }
26434
26751
  const siteId = params.siteId;
@@ -26449,6 +26766,8 @@
26449
26766
  const providerBranch = params.providerBranch;
26450
26767
  const providerSilentMode = params.providerSilentMode;
26451
26768
  const providerRootDirectory = params.providerRootDirectory;
26769
+ const providerBranches = params.providerBranches;
26770
+ const providerPaths = params.providerPaths;
26452
26771
  const buildSpecification = params.buildSpecification;
26453
26772
  const runtimeSpecification = params.runtimeSpecification;
26454
26773
  const deploymentRetention = params.deploymentRetention;
@@ -26514,6 +26833,12 @@
26514
26833
  if (typeof providerRootDirectory !== 'undefined') {
26515
26834
  payload['providerRootDirectory'] = providerRootDirectory;
26516
26835
  }
26836
+ if (typeof providerBranches !== 'undefined') {
26837
+ payload['providerBranches'] = providerBranches;
26838
+ }
26839
+ if (typeof providerPaths !== 'undefined') {
26840
+ payload['providerPaths'] = providerPaths;
26841
+ }
26517
26842
  if (typeof buildSpecification !== 'undefined') {
26518
26843
  payload['buildSpecification'] = buildSpecification;
26519
26844
  }
@@ -31823,6 +32148,62 @@
31823
32148
  }
31824
32149
  }
31825
32150
 
32151
+ class Usage {
32152
+ constructor(client) {
32153
+ this.client = client;
32154
+ }
32155
+ listEvents(paramsOrFirst, ...rest) {
32156
+ let params;
32157
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
32158
+ params = (paramsOrFirst || {});
32159
+ }
32160
+ else {
32161
+ params = {
32162
+ queries: paramsOrFirst,
32163
+ total: rest[0]
32164
+ };
32165
+ }
32166
+ const queries = params.queries;
32167
+ const total = params.total;
32168
+ const apiPath = '/usage/events';
32169
+ const payload = {};
32170
+ if (typeof queries !== 'undefined') {
32171
+ payload['queries'] = queries;
32172
+ }
32173
+ if (typeof total !== 'undefined') {
32174
+ payload['total'] = total;
32175
+ }
32176
+ const uri = new URL(this.client.config.endpoint + apiPath);
32177
+ const apiHeaders = {};
32178
+ return this.client.call('get', uri, apiHeaders, payload);
32179
+ }
32180
+ listGauges(paramsOrFirst, ...rest) {
32181
+ let params;
32182
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
32183
+ params = (paramsOrFirst || {});
32184
+ }
32185
+ else {
32186
+ params = {
32187
+ queries: paramsOrFirst,
32188
+ total: rest[0]
32189
+ };
32190
+ }
32191
+ const queries = params.queries;
32192
+ const total = params.total;
32193
+ const apiPath = '/usage/gauges';
32194
+ const payload = {};
32195
+ if (typeof queries !== 'undefined') {
32196
+ payload['queries'] = queries;
32197
+ }
32198
+ if (typeof total !== 'undefined') {
32199
+ payload['total'] = total;
32200
+ }
32201
+ const uri = new URL(this.client.config.endpoint + apiPath);
32202
+ const apiHeaders = {};
32203
+ return this.client.call('get', uri, apiHeaders, payload);
32204
+ }
32205
+ }
32206
+
31826
32207
  class Users {
31827
32208
  constructor(client) {
31828
32209
  this.client = client;
@@ -33755,21 +34136,16 @@
33755
34136
  else {
33756
34137
  params = {
33757
34138
  queries: paramsOrFirst,
33758
- search: rest[0],
33759
- total: rest[1]
34139
+ total: rest[0]
33760
34140
  };
33761
34141
  }
33762
34142
  const queries = params.queries;
33763
- const search = params.search;
33764
34143
  const total = params.total;
33765
34144
  const apiPath = '/vectorsdb';
33766
34145
  const payload = {};
33767
34146
  if (typeof queries !== 'undefined') {
33768
34147
  payload['queries'] = queries;
33769
34148
  }
33770
- if (typeof search !== 'undefined') {
33771
- payload['search'] = search;
33772
- }
33773
34149
  if (typeof total !== 'undefined') {
33774
34150
  payload['total'] = total;
33775
34151
  }
@@ -35173,11 +35549,11 @@
35173
35549
  this.TYPE_EVENT = 'event';
35174
35550
  this.TYPE_PONG = 'pong';
35175
35551
  this.TYPE_CONNECTED = 'connected';
35176
- this.TYPE_RESPONSE = 'response';
35177
35552
  this.DEBOUNCE_MS = 1;
35178
35553
  this.HEARTBEAT_INTERVAL = 20000; // 20 seconds in milliseconds
35179
35554
  this.activeSubscriptions = new Map();
35180
35555
  this.pendingSubscribes = new Map();
35556
+ this.appConnected = false;
35181
35557
  this.subCallDepth = 0;
35182
35558
  this.reconnectAttempts = 0;
35183
35559
  this.connectionId = 0;
@@ -35228,9 +35604,35 @@
35228
35604
  this.heartbeatTimer = undefined;
35229
35605
  }
35230
35606
  }
35607
+ /**
35608
+ * Idempotent socket opener. Both `subscribe()` and `upsertPresence()` can
35609
+ * call this; the single-flight lock (`socketCreationPromise`) guarantees
35610
+ * only one `new WebSocket(...)` is ever in flight, so concurrent callers
35611
+ * join the same connection attempt instead of opening duplicates.
35612
+ *
35613
+ * Returns early when a healthy socket is already present.
35614
+ */
35231
35615
  createSocket() {
35232
35616
  return __awaiter(this, void 0, void 0, function* () {
35233
- if (this.activeSubscriptions.size === 0) {
35617
+ // Fast path: a usable socket is already there. No need to open another.
35618
+ if (this.socket && this.socket.readyState < WebSocket.CLOSING) {
35619
+ return;
35620
+ }
35621
+ // Another caller is already opening one — join it.
35622
+ if (this.socketCreationPromise) {
35623
+ return this.socketCreationPromise;
35624
+ }
35625
+ this.socketCreationPromise = this.createSocketLocked().finally(() => {
35626
+ this.socketCreationPromise = undefined;
35627
+ });
35628
+ return this.socketCreationPromise;
35629
+ });
35630
+ }
35631
+ createSocketLocked() {
35632
+ return __awaiter(this, void 0, void 0, function* () {
35633
+ // Nothing to do if there's neither a subscription nor a queued presence
35634
+ // that needs the wire. (Reconnect cleanup path also flows through here.)
35635
+ if (this.activeSubscriptions.size === 0 && !this.pendingPresence) {
35234
35636
  this.reconnect = false;
35235
35637
  yield this.closeSocket();
35236
35638
  return;
@@ -35257,6 +35659,15 @@
35257
35659
  this.reconnect = true;
35258
35660
  }
35259
35661
  return new Promise((resolve, reject) => {
35662
+ // Re-check the entry guard synchronously. `disconnect()` may have
35663
+ // run during the `await this.closeSocket()` above (or any other
35664
+ // await between the original guard and here), clearing every
35665
+ // subscription and the pending presence. In that case opening a
35666
+ // fresh socket would leak a connection with nothing attached.
35667
+ if (this.activeSubscriptions.size === 0 && !this.pendingPresence) {
35668
+ resolve();
35669
+ return;
35670
+ }
35260
35671
  try {
35261
35672
  const connectionId = ++this.connectionId;
35262
35673
  const socket = (this.socket = new WebSocket(url));
@@ -35285,6 +35696,7 @@
35285
35696
  if (connectionId !== this.connectionId || socket !== this.socket) {
35286
35697
  return;
35287
35698
  }
35699
+ this.appConnected = false;
35288
35700
  this.stopHeartbeat();
35289
35701
  this.onCloseCallbacks.forEach(callback => callback());
35290
35702
  if (!this.reconnect || event.code === RealtimeCode.POLICY_VIOLATION) {
@@ -35402,7 +35814,19 @@
35402
35814
  return __awaiter(this, void 0, void 0, function* () {
35403
35815
  this.activeSubscriptions.clear();
35404
35816
  this.pendingSubscribes.clear();
35817
+ this.pendingPresence = undefined;
35818
+ this.appConnected = false;
35405
35819
  this.reconnect = false;
35820
+ // Drop the in-flight single-flight slot. Promises can't be cancelled,
35821
+ // so the underlying createSocketLocked() promise may stay pending
35822
+ // forever — e.g. when closeSocket() below tears down a CONNECTING
35823
+ // socket, the `close` event fires but `open`/`error` never do, and
35824
+ // the inner `new Promise(...)` only resolves on those. Without this
35825
+ // line, the next subscribe()/upsertPresence() would join the orphan
35826
+ // promise via the single-flight gate and hang, leaving its pending
35827
+ // subscription queued with no socket ever opened. Mirrors the Swift
35828
+ // template's socketCreationTask cancel in disconnect().
35829
+ this.socketCreationPromise = undefined;
35406
35830
  yield this.closeSocket();
35407
35831
  });
35408
35832
  }
@@ -35410,6 +35834,18 @@
35410
35834
  if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
35411
35835
  return;
35412
35836
  }
35837
+ // The WebSocket 'open' event fires when the TCP/upgrade handshake
35838
+ // completes — but the server only accepts `subscribe` frames after
35839
+ // it has emitted its own application-level `connected` event (which
35840
+ // flips `appConnected` to true in handleResponseConnected). Sending
35841
+ // before then triggers a policy-violation close on real Appwrite,
35842
+ // which reconnects, which sends early again — i.e. a duplicate-
35843
+ // socket loop. handleResponseConnected re-enqueues every active
35844
+ // subscription and calls this method again once it's safe, so the
35845
+ // queued rows are guaranteed to be sent.
35846
+ if (!this.appConnected) {
35847
+ return;
35848
+ }
35413
35849
  if (this.pendingSubscribes.size < 1) {
35414
35850
  return;
35415
35851
  }
@@ -35539,6 +35975,63 @@
35539
35975
  return { unsubscribe, update, close };
35540
35976
  });
35541
35977
  }
35978
+ /**
35979
+ * Fire-and-forget presence upsert. Records the latest payload in state so
35980
+ * that — if the WebSocket isn't open yet, or later reconnects — only the
35981
+ * most recent presence is automatically (re)sent on the next `connected`
35982
+ * event. Repeated calls while the socket is closed collapse to the latest
35983
+ * payload (older ones are discarded).
35984
+ *
35985
+ * Returns a `Promise<void>` for API consistency; the promise resolves as
35986
+ * soon as the payload has been stored and the opportunistic send attempted.
35987
+ *
35988
+ * @param {RealtimePresenceCreate} params - Presence payload (status and presenceId required, permissions/metadata optional)
35989
+ */
35990
+ upsertPresence(params) {
35991
+ return __awaiter(this, void 0, void 0, function* () {
35992
+ const data = {
35993
+ status: params.status,
35994
+ presenceId: params.presenceId,
35995
+ };
35996
+ if (params.permissions !== undefined) {
35997
+ data.permissions = params.permissions;
35998
+ }
35999
+ if (params.metadata !== undefined) {
36000
+ data.metadata = params.metadata;
36001
+ }
36002
+ this.pendingPresence = data;
36003
+ // Both subscribe() and upsertPresence() may need to open the socket.
36004
+ // createSocket() is single-flight (see `socketCreationPromise`), so
36005
+ // calling it here is a no-op when a connection is already in flight or
36006
+ // healthy. Fire-and-forget keeps the documented fire-and-forget shape
36007
+ // of upsertPresence: the returned Promise resolves as soon as the
36008
+ // payload is stored.
36009
+ if (!this.socket || this.socket.readyState >= WebSocket.CLOSING) {
36010
+ this.createSocket().catch((error) => {
36011
+ console.error('Failed to open realtime socket for presence:', error);
36012
+ });
36013
+ }
36014
+ // Opportunistic send for the case where the socket is already past the
36015
+ // `connected` handshake. The gate inside flushPendingPresence keeps
36016
+ // this a no-op until appConnected flips to true.
36017
+ this.flushPendingPresence();
36018
+ });
36019
+ }
36020
+ flushPendingPresence() {
36021
+ if (!this.pendingPresence) {
36022
+ return;
36023
+ }
36024
+ if (!this.socket || this.socket.readyState !== WebSocket.OPEN) {
36025
+ return;
36026
+ }
36027
+ if (!this.appConnected) {
36028
+ return;
36029
+ }
36030
+ this.socket.send(JSONbig.stringify({
36031
+ type: 'presence',
36032
+ data: this.pendingPresence
36033
+ }));
36034
+ }
35542
36035
  handleMessage(message) {
35543
36036
  if (!message.type) {
35544
36037
  return;
@@ -35556,9 +36049,6 @@
35556
36049
  case this.TYPE_PONG:
35557
36050
  // Handle pong response if needed
35558
36051
  break;
35559
- case this.TYPE_RESPONSE:
35560
- this.handleResponseAction(message);
35561
- break;
35562
36052
  }
35563
36053
  }
35564
36054
  handleResponseConnected(message) {
@@ -35588,7 +36078,9 @@
35588
36078
  for (const subscriptionId of this.activeSubscriptions.keys()) {
35589
36079
  this.enqueuePendingSubscribe(subscriptionId);
35590
36080
  }
36081
+ this.appConnected = true;
35591
36082
  this.sendPendingSubscribes();
36083
+ this.flushPendingPresence();
35592
36084
  }
35593
36085
  handleResponseError(message) {
35594
36086
  var _a, _b;
@@ -35623,11 +36115,6 @@
35623
36115
  });
35624
36116
  }
35625
36117
  }
35626
- handleResponseAction(_message) {
35627
- // The SDK generates subscriptionIds client-side and sends them on every
35628
- // subscribe/unsubscribe, so subscribe/unsubscribe acks carry no state
35629
- // the SDK needs to reconcile.
35630
- }
35631
36118
  }
35632
36119
 
35633
36120
  /**
@@ -35863,6 +36350,9 @@
35863
36350
  static membership(id) {
35864
36351
  return new Channel(["memberships", normalize(id)]);
35865
36352
  }
36353
+ static presence(id) {
36354
+ return new Channel(["presences", normalize(id)]);
36355
+ }
35866
36356
  static account() {
35867
36357
  return "account";
35868
36358
  }
@@ -35885,6 +36375,9 @@
35885
36375
  static memberships() {
35886
36376
  return "memberships";
35887
36377
  }
36378
+ static presences() {
36379
+ return "presences";
36380
+ }
35888
36381
  }
35889
36382
 
35890
36383
  exports.Condition = void 0;
@@ -36152,101 +36645,12 @@
36152
36645
  */
36153
36646
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
36154
36647
 
36155
- exports.Scopes = void 0;
36156
- (function (Scopes) {
36157
- Scopes["Account"] = "account";
36158
- Scopes["TeamsRead"] = "teams.read";
36159
- Scopes["TeamsWrite"] = "teams.write";
36160
- Scopes["ProjectRead"] = "project.read";
36161
- Scopes["ProjectWrite"] = "project.write";
36162
- Scopes["KeysRead"] = "keys.read";
36163
- Scopes["KeysWrite"] = "keys.write";
36164
- Scopes["PlatformsRead"] = "platforms.read";
36165
- Scopes["PlatformsWrite"] = "platforms.write";
36166
- Scopes["MocksRead"] = "mocks.read";
36167
- Scopes["MocksWrite"] = "mocks.write";
36168
- Scopes["PoliciesRead"] = "policies.read";
36169
- Scopes["PoliciesWrite"] = "policies.write";
36170
- Scopes["ProjectPoliciesRead"] = "project.policies.read";
36171
- Scopes["ProjectPoliciesWrite"] = "project.policies.write";
36172
- Scopes["TemplatesRead"] = "templates.read";
36173
- Scopes["TemplatesWrite"] = "templates.write";
36174
- Scopes["Oauth2Read"] = "oauth2.read";
36175
- Scopes["Oauth2Write"] = "oauth2.write";
36176
- Scopes["UsersRead"] = "users.read";
36177
- Scopes["UsersWrite"] = "users.write";
36178
- Scopes["SessionsRead"] = "sessions.read";
36179
- Scopes["SessionsWrite"] = "sessions.write";
36180
- Scopes["DatabasesRead"] = "databases.read";
36181
- Scopes["DatabasesWrite"] = "databases.write";
36182
- Scopes["TablesRead"] = "tables.read";
36183
- Scopes["TablesWrite"] = "tables.write";
36184
- Scopes["ColumnsRead"] = "columns.read";
36185
- Scopes["ColumnsWrite"] = "columns.write";
36186
- Scopes["IndexesRead"] = "indexes.read";
36187
- Scopes["IndexesWrite"] = "indexes.write";
36188
- Scopes["RowsRead"] = "rows.read";
36189
- Scopes["RowsWrite"] = "rows.write";
36190
- Scopes["CollectionsRead"] = "collections.read";
36191
- Scopes["CollectionsWrite"] = "collections.write";
36192
- Scopes["AttributesRead"] = "attributes.read";
36193
- Scopes["AttributesWrite"] = "attributes.write";
36194
- Scopes["DocumentsRead"] = "documents.read";
36195
- Scopes["DocumentsWrite"] = "documents.write";
36196
- Scopes["BucketsRead"] = "buckets.read";
36197
- Scopes["BucketsWrite"] = "buckets.write";
36198
- Scopes["FilesRead"] = "files.read";
36199
- Scopes["FilesWrite"] = "files.write";
36200
- Scopes["TokensRead"] = "tokens.read";
36201
- Scopes["TokensWrite"] = "tokens.write";
36202
- Scopes["FunctionsRead"] = "functions.read";
36203
- Scopes["FunctionsWrite"] = "functions.write";
36204
- Scopes["ExecutionsRead"] = "executions.read";
36205
- Scopes["ExecutionsWrite"] = "executions.write";
36206
- Scopes["ExecutionRead"] = "execution.read";
36207
- Scopes["ExecutionWrite"] = "execution.write";
36208
- Scopes["SitesRead"] = "sites.read";
36209
- Scopes["SitesWrite"] = "sites.write";
36210
- Scopes["LogRead"] = "log.read";
36211
- Scopes["LogWrite"] = "log.write";
36212
- Scopes["ProvidersRead"] = "providers.read";
36213
- Scopes["ProvidersWrite"] = "providers.write";
36214
- Scopes["TopicsRead"] = "topics.read";
36215
- Scopes["TopicsWrite"] = "topics.write";
36216
- Scopes["SubscribersRead"] = "subscribers.read";
36217
- Scopes["SubscribersWrite"] = "subscribers.write";
36218
- Scopes["TargetsRead"] = "targets.read";
36219
- Scopes["TargetsWrite"] = "targets.write";
36220
- Scopes["MessagesRead"] = "messages.read";
36221
- Scopes["MessagesWrite"] = "messages.write";
36222
- Scopes["RulesRead"] = "rules.read";
36223
- Scopes["RulesWrite"] = "rules.write";
36224
- Scopes["WebhooksRead"] = "webhooks.read";
36225
- Scopes["WebhooksWrite"] = "webhooks.write";
36226
- Scopes["LocaleRead"] = "locale.read";
36227
- Scopes["AvatarsRead"] = "avatars.read";
36228
- Scopes["HealthRead"] = "health.read";
36229
- Scopes["AssistantRead"] = "assistant.read";
36230
- Scopes["MigrationsRead"] = "migrations.read";
36231
- Scopes["MigrationsWrite"] = "migrations.write";
36232
- Scopes["SchedulesRead"] = "schedules.read";
36233
- Scopes["SchedulesWrite"] = "schedules.write";
36234
- Scopes["VcsRead"] = "vcs.read";
36235
- Scopes["VcsWrite"] = "vcs.write";
36236
- Scopes["BackupsPoliciesRead"] = "backups.policies.read";
36237
- Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
36238
- Scopes["ArchivesRead"] = "archives.read";
36239
- Scopes["ArchivesWrite"] = "archives.write";
36240
- Scopes["RestorationsRead"] = "restorations.read";
36241
- Scopes["RestorationsWrite"] = "restorations.write";
36242
- Scopes["DomainsRead"] = "domains.read";
36243
- Scopes["DomainsWrite"] = "domains.write";
36244
- Scopes["EventsRead"] = "events.read";
36245
- Scopes["ProjectsRead"] = "projects.read";
36246
- Scopes["ProjectsWrite"] = "projects.write";
36247
- Scopes["DevKeysRead"] = "devKeys.read";
36248
- Scopes["DevKeysWrite"] = "devKeys.write";
36249
- })(exports.Scopes || (exports.Scopes = {}));
36648
+ exports.AccountKeyScopes = void 0;
36649
+ (function (AccountKeyScopes) {
36650
+ AccountKeyScopes["Account"] = "account";
36651
+ AccountKeyScopes["TeamsRead"] = "teams.read";
36652
+ AccountKeyScopes["TeamsWrite"] = "teams.write";
36653
+ })(exports.AccountKeyScopes || (exports.AccountKeyScopes = {}));
36250
36654
 
36251
36655
  exports.AuthenticatorType = void 0;
36252
36656
  (function (AuthenticatorType) {
@@ -36306,8 +36710,6 @@
36306
36710
  OAuthProvider["Yandex"] = "yandex";
36307
36711
  OAuthProvider["Zoho"] = "zoho";
36308
36712
  OAuthProvider["Zoom"] = "zoom";
36309
- OAuthProvider["GithubImagine"] = "githubImagine";
36310
- OAuthProvider["GoogleImagine"] = "googleImagine";
36311
36713
  })(exports.OAuthProvider || (exports.OAuthProvider = {}));
36312
36714
 
36313
36715
  exports.Browser = void 0;
@@ -36548,11 +36950,11 @@
36548
36950
  Flag["Zimbabwe"] = "zw";
36549
36951
  })(exports.Flag || (exports.Flag = {}));
36550
36952
 
36551
- exports.Theme = void 0;
36552
- (function (Theme) {
36553
- Theme["Light"] = "light";
36554
- Theme["Dark"] = "dark";
36555
- })(exports.Theme || (exports.Theme = {}));
36953
+ exports.BrowserTheme = void 0;
36954
+ (function (BrowserTheme) {
36955
+ BrowserTheme["Light"] = "light";
36956
+ BrowserTheme["Dark"] = "dark";
36957
+ })(exports.BrowserTheme || (exports.BrowserTheme = {}));
36556
36958
 
36557
36959
  exports.Timezone = void 0;
36558
36960
  (function (Timezone) {
@@ -37018,6 +37420,7 @@
37018
37420
  BackupServices["Tablesdb"] = "tablesdb";
37019
37421
  BackupServices["Documentsdb"] = "documentsdb";
37020
37422
  BackupServices["Vectorsdb"] = "vectorsdb";
37423
+ BackupServices["DedicatedDatabases"] = "dedicatedDatabases";
37021
37424
  BackupServices["Functions"] = "functions";
37022
37425
  BackupServices["Storage"] = "storage";
37023
37426
  })(exports.BackupServices || (exports.BackupServices = {}));
@@ -37063,6 +37466,8 @@
37063
37466
  QuerySuggestionResource["Repositories"] = "repositories";
37064
37467
  QuerySuggestionResource["VcsComments"] = "vcscomments";
37065
37468
  QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
37469
+ QuerySuggestionResource["Reports"] = "reports";
37470
+ QuerySuggestionResource["Insights"] = "insights";
37066
37471
  QuerySuggestionResource["Users"] = "users";
37067
37472
  QuerySuggestionResource["Cache"] = "cache";
37068
37473
  QuerySuggestionResource["Tokens"] = "tokens";
@@ -37077,6 +37482,7 @@
37077
37482
  QuerySuggestionResource["Topics"] = "topics";
37078
37483
  QuerySuggestionResource["Subscribers"] = "subscribers";
37079
37484
  QuerySuggestionResource["Targets"] = "targets";
37485
+ QuerySuggestionResource["PresenceLogs"] = "presencelogs";
37080
37486
  QuerySuggestionResource["Companies"] = "companies";
37081
37487
  QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
37082
37488
  QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
@@ -37107,8 +37513,160 @@
37107
37513
  QuerySuggestionResource["Transactions"] = "transactions";
37108
37514
  QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
37109
37515
  QuerySuggestionResource["Stats"] = "stats";
37516
+ QuerySuggestionResource["DedicatedDatabases"] = "dedicateddatabases";
37517
+ QuerySuggestionResource["DedicatedDatabaseConfigs"] = "dedicateddatabaseconfigs";
37518
+ QuerySuggestionResource["DedicatedDatabaseRuntimes"] = "dedicateddatabaseruntimes";
37519
+ QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
37520
+ QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
37521
+ QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
37110
37522
  })(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
37111
37523
 
37524
+ exports.ProjectEmailTemplateId = void 0;
37525
+ (function (ProjectEmailTemplateId) {
37526
+ ProjectEmailTemplateId["Verification"] = "verification";
37527
+ ProjectEmailTemplateId["MagicSession"] = "magicSession";
37528
+ ProjectEmailTemplateId["Recovery"] = "recovery";
37529
+ ProjectEmailTemplateId["Invitation"] = "invitation";
37530
+ ProjectEmailTemplateId["MfaChallenge"] = "mfaChallenge";
37531
+ ProjectEmailTemplateId["SessionAlert"] = "sessionAlert";
37532
+ ProjectEmailTemplateId["OtpSession"] = "otpSession";
37533
+ })(exports.ProjectEmailTemplateId || (exports.ProjectEmailTemplateId = {}));
37534
+
37535
+ exports.ProjectEmailTemplateLocale = void 0;
37536
+ (function (ProjectEmailTemplateLocale) {
37537
+ ProjectEmailTemplateLocale["Af"] = "af";
37538
+ ProjectEmailTemplateLocale["Arae"] = "ar-ae";
37539
+ ProjectEmailTemplateLocale["Arbh"] = "ar-bh";
37540
+ ProjectEmailTemplateLocale["Ardz"] = "ar-dz";
37541
+ ProjectEmailTemplateLocale["Areg"] = "ar-eg";
37542
+ ProjectEmailTemplateLocale["Ariq"] = "ar-iq";
37543
+ ProjectEmailTemplateLocale["Arjo"] = "ar-jo";
37544
+ ProjectEmailTemplateLocale["Arkw"] = "ar-kw";
37545
+ ProjectEmailTemplateLocale["Arlb"] = "ar-lb";
37546
+ ProjectEmailTemplateLocale["Arly"] = "ar-ly";
37547
+ ProjectEmailTemplateLocale["Arma"] = "ar-ma";
37548
+ ProjectEmailTemplateLocale["Arom"] = "ar-om";
37549
+ ProjectEmailTemplateLocale["Arqa"] = "ar-qa";
37550
+ ProjectEmailTemplateLocale["Arsa"] = "ar-sa";
37551
+ ProjectEmailTemplateLocale["Arsy"] = "ar-sy";
37552
+ ProjectEmailTemplateLocale["Artn"] = "ar-tn";
37553
+ ProjectEmailTemplateLocale["Arye"] = "ar-ye";
37554
+ ProjectEmailTemplateLocale["As"] = "as";
37555
+ ProjectEmailTemplateLocale["Az"] = "az";
37556
+ ProjectEmailTemplateLocale["Be"] = "be";
37557
+ ProjectEmailTemplateLocale["Bg"] = "bg";
37558
+ ProjectEmailTemplateLocale["Bh"] = "bh";
37559
+ ProjectEmailTemplateLocale["Bn"] = "bn";
37560
+ ProjectEmailTemplateLocale["Bs"] = "bs";
37561
+ ProjectEmailTemplateLocale["Ca"] = "ca";
37562
+ ProjectEmailTemplateLocale["Cs"] = "cs";
37563
+ ProjectEmailTemplateLocale["Cy"] = "cy";
37564
+ ProjectEmailTemplateLocale["Da"] = "da";
37565
+ ProjectEmailTemplateLocale["De"] = "de";
37566
+ ProjectEmailTemplateLocale["Deat"] = "de-at";
37567
+ ProjectEmailTemplateLocale["Dech"] = "de-ch";
37568
+ ProjectEmailTemplateLocale["Deli"] = "de-li";
37569
+ ProjectEmailTemplateLocale["Delu"] = "de-lu";
37570
+ ProjectEmailTemplateLocale["El"] = "el";
37571
+ ProjectEmailTemplateLocale["En"] = "en";
37572
+ ProjectEmailTemplateLocale["Enau"] = "en-au";
37573
+ ProjectEmailTemplateLocale["Enbz"] = "en-bz";
37574
+ ProjectEmailTemplateLocale["Enca"] = "en-ca";
37575
+ ProjectEmailTemplateLocale["Engb"] = "en-gb";
37576
+ ProjectEmailTemplateLocale["Enie"] = "en-ie";
37577
+ ProjectEmailTemplateLocale["Enjm"] = "en-jm";
37578
+ ProjectEmailTemplateLocale["Ennz"] = "en-nz";
37579
+ ProjectEmailTemplateLocale["Entt"] = "en-tt";
37580
+ ProjectEmailTemplateLocale["Enus"] = "en-us";
37581
+ ProjectEmailTemplateLocale["Enza"] = "en-za";
37582
+ ProjectEmailTemplateLocale["Eo"] = "eo";
37583
+ ProjectEmailTemplateLocale["Es"] = "es";
37584
+ ProjectEmailTemplateLocale["Esar"] = "es-ar";
37585
+ ProjectEmailTemplateLocale["Esbo"] = "es-bo";
37586
+ ProjectEmailTemplateLocale["Escl"] = "es-cl";
37587
+ ProjectEmailTemplateLocale["Esco"] = "es-co";
37588
+ ProjectEmailTemplateLocale["Escr"] = "es-cr";
37589
+ ProjectEmailTemplateLocale["Esdo"] = "es-do";
37590
+ ProjectEmailTemplateLocale["Esec"] = "es-ec";
37591
+ ProjectEmailTemplateLocale["Esgt"] = "es-gt";
37592
+ ProjectEmailTemplateLocale["Eshn"] = "es-hn";
37593
+ ProjectEmailTemplateLocale["Esmx"] = "es-mx";
37594
+ ProjectEmailTemplateLocale["Esni"] = "es-ni";
37595
+ ProjectEmailTemplateLocale["Espa"] = "es-pa";
37596
+ ProjectEmailTemplateLocale["Espe"] = "es-pe";
37597
+ ProjectEmailTemplateLocale["Espr"] = "es-pr";
37598
+ ProjectEmailTemplateLocale["Espy"] = "es-py";
37599
+ ProjectEmailTemplateLocale["Essv"] = "es-sv";
37600
+ ProjectEmailTemplateLocale["Esuy"] = "es-uy";
37601
+ ProjectEmailTemplateLocale["Esve"] = "es-ve";
37602
+ ProjectEmailTemplateLocale["Et"] = "et";
37603
+ ProjectEmailTemplateLocale["Eu"] = "eu";
37604
+ ProjectEmailTemplateLocale["Fa"] = "fa";
37605
+ ProjectEmailTemplateLocale["Fi"] = "fi";
37606
+ ProjectEmailTemplateLocale["Fo"] = "fo";
37607
+ ProjectEmailTemplateLocale["Fr"] = "fr";
37608
+ ProjectEmailTemplateLocale["Frbe"] = "fr-be";
37609
+ ProjectEmailTemplateLocale["Frca"] = "fr-ca";
37610
+ ProjectEmailTemplateLocale["Frch"] = "fr-ch";
37611
+ ProjectEmailTemplateLocale["Frlu"] = "fr-lu";
37612
+ ProjectEmailTemplateLocale["Ga"] = "ga";
37613
+ ProjectEmailTemplateLocale["Gd"] = "gd";
37614
+ ProjectEmailTemplateLocale["He"] = "he";
37615
+ ProjectEmailTemplateLocale["Hi"] = "hi";
37616
+ ProjectEmailTemplateLocale["Hr"] = "hr";
37617
+ ProjectEmailTemplateLocale["Hu"] = "hu";
37618
+ ProjectEmailTemplateLocale["Id"] = "id";
37619
+ ProjectEmailTemplateLocale["Is"] = "is";
37620
+ ProjectEmailTemplateLocale["It"] = "it";
37621
+ ProjectEmailTemplateLocale["Itch"] = "it-ch";
37622
+ ProjectEmailTemplateLocale["Ja"] = "ja";
37623
+ ProjectEmailTemplateLocale["Ji"] = "ji";
37624
+ ProjectEmailTemplateLocale["Ko"] = "ko";
37625
+ ProjectEmailTemplateLocale["Ku"] = "ku";
37626
+ ProjectEmailTemplateLocale["Lt"] = "lt";
37627
+ ProjectEmailTemplateLocale["Lv"] = "lv";
37628
+ ProjectEmailTemplateLocale["Mk"] = "mk";
37629
+ ProjectEmailTemplateLocale["Ml"] = "ml";
37630
+ ProjectEmailTemplateLocale["Ms"] = "ms";
37631
+ ProjectEmailTemplateLocale["Mt"] = "mt";
37632
+ ProjectEmailTemplateLocale["Nb"] = "nb";
37633
+ ProjectEmailTemplateLocale["Ne"] = "ne";
37634
+ ProjectEmailTemplateLocale["Nl"] = "nl";
37635
+ ProjectEmailTemplateLocale["Nlbe"] = "nl-be";
37636
+ ProjectEmailTemplateLocale["Nn"] = "nn";
37637
+ ProjectEmailTemplateLocale["No"] = "no";
37638
+ ProjectEmailTemplateLocale["Pa"] = "pa";
37639
+ ProjectEmailTemplateLocale["Pl"] = "pl";
37640
+ ProjectEmailTemplateLocale["Pt"] = "pt";
37641
+ ProjectEmailTemplateLocale["Ptbr"] = "pt-br";
37642
+ ProjectEmailTemplateLocale["Rm"] = "rm";
37643
+ ProjectEmailTemplateLocale["Ro"] = "ro";
37644
+ ProjectEmailTemplateLocale["Romd"] = "ro-md";
37645
+ ProjectEmailTemplateLocale["Ru"] = "ru";
37646
+ ProjectEmailTemplateLocale["Rumd"] = "ru-md";
37647
+ ProjectEmailTemplateLocale["Sb"] = "sb";
37648
+ ProjectEmailTemplateLocale["Sk"] = "sk";
37649
+ ProjectEmailTemplateLocale["Sl"] = "sl";
37650
+ ProjectEmailTemplateLocale["Sq"] = "sq";
37651
+ ProjectEmailTemplateLocale["Sr"] = "sr";
37652
+ ProjectEmailTemplateLocale["Sv"] = "sv";
37653
+ ProjectEmailTemplateLocale["Svfi"] = "sv-fi";
37654
+ ProjectEmailTemplateLocale["Th"] = "th";
37655
+ ProjectEmailTemplateLocale["Tn"] = "tn";
37656
+ ProjectEmailTemplateLocale["Tr"] = "tr";
37657
+ ProjectEmailTemplateLocale["Ts"] = "ts";
37658
+ ProjectEmailTemplateLocale["Ua"] = "ua";
37659
+ ProjectEmailTemplateLocale["Ur"] = "ur";
37660
+ ProjectEmailTemplateLocale["Ve"] = "ve";
37661
+ ProjectEmailTemplateLocale["Vi"] = "vi";
37662
+ ProjectEmailTemplateLocale["Xh"] = "xh";
37663
+ ProjectEmailTemplateLocale["Zhcn"] = "zh-cn";
37664
+ ProjectEmailTemplateLocale["Zhhk"] = "zh-hk";
37665
+ ProjectEmailTemplateLocale["Zhsg"] = "zh-sg";
37666
+ ProjectEmailTemplateLocale["Zhtw"] = "zh-tw";
37667
+ ProjectEmailTemplateLocale["Zu"] = "zu";
37668
+ })(exports.ProjectEmailTemplateLocale || (exports.ProjectEmailTemplateLocale = {}));
37669
+
37112
37670
  exports.UsageRange = void 0;
37113
37671
  (function (UsageRange) {
37114
37672
  UsageRange["TwentyFourHours"] = "24h";
@@ -37152,223 +37710,223 @@
37152
37710
  DocumentsDBIndexType["Unique"] = "unique";
37153
37711
  })(exports.DocumentsDBIndexType || (exports.DocumentsDBIndexType = {}));
37154
37712
 
37155
- exports.RegistrationType = void 0;
37156
- (function (RegistrationType) {
37157
- RegistrationType["New"] = "new";
37158
- RegistrationType["Transfer"] = "transfer";
37159
- RegistrationType["Renewal"] = "renewal";
37160
- RegistrationType["Trade"] = "trade";
37161
- })(exports.RegistrationType || (exports.RegistrationType = {}));
37162
-
37163
- exports.FilterType = void 0;
37164
- (function (FilterType) {
37165
- FilterType["Premium"] = "premium";
37166
- FilterType["Suggestion"] = "suggestion";
37167
- })(exports.FilterType || (exports.FilterType = {}));
37168
-
37169
- exports.Runtime = void 0;
37170
- (function (Runtime) {
37171
- Runtime["Node145"] = "node-14.5";
37172
- Runtime["Node160"] = "node-16.0";
37173
- Runtime["Node180"] = "node-18.0";
37174
- Runtime["Node190"] = "node-19.0";
37175
- Runtime["Node200"] = "node-20.0";
37176
- Runtime["Node210"] = "node-21.0";
37177
- Runtime["Node22"] = "node-22";
37178
- Runtime["Node23"] = "node-23";
37179
- Runtime["Node24"] = "node-24";
37180
- Runtime["Node25"] = "node-25";
37181
- Runtime["Php80"] = "php-8.0";
37182
- Runtime["Php81"] = "php-8.1";
37183
- Runtime["Php82"] = "php-8.2";
37184
- Runtime["Php83"] = "php-8.3";
37185
- Runtime["Php84"] = "php-8.4";
37186
- Runtime["Ruby30"] = "ruby-3.0";
37187
- Runtime["Ruby31"] = "ruby-3.1";
37188
- Runtime["Ruby32"] = "ruby-3.2";
37189
- Runtime["Ruby33"] = "ruby-3.3";
37190
- Runtime["Ruby34"] = "ruby-3.4";
37191
- Runtime["Ruby40"] = "ruby-4.0";
37192
- Runtime["Python38"] = "python-3.8";
37193
- Runtime["Python39"] = "python-3.9";
37194
- Runtime["Python310"] = "python-3.10";
37195
- Runtime["Python311"] = "python-3.11";
37196
- Runtime["Python312"] = "python-3.12";
37197
- Runtime["Python313"] = "python-3.13";
37198
- Runtime["Python314"] = "python-3.14";
37199
- Runtime["Pythonml311"] = "python-ml-3.11";
37200
- Runtime["Pythonml312"] = "python-ml-3.12";
37201
- Runtime["Pythonml313"] = "python-ml-3.13";
37202
- Runtime["Deno140"] = "deno-1.40";
37203
- Runtime["Deno146"] = "deno-1.46";
37204
- Runtime["Deno20"] = "deno-2.0";
37205
- Runtime["Deno25"] = "deno-2.5";
37206
- Runtime["Deno26"] = "deno-2.6";
37207
- Runtime["Dart215"] = "dart-2.15";
37208
- Runtime["Dart216"] = "dart-2.16";
37209
- Runtime["Dart217"] = "dart-2.17";
37210
- Runtime["Dart218"] = "dart-2.18";
37211
- Runtime["Dart219"] = "dart-2.19";
37212
- Runtime["Dart30"] = "dart-3.0";
37213
- Runtime["Dart31"] = "dart-3.1";
37214
- Runtime["Dart33"] = "dart-3.3";
37215
- Runtime["Dart35"] = "dart-3.5";
37216
- Runtime["Dart38"] = "dart-3.8";
37217
- Runtime["Dart39"] = "dart-3.9";
37218
- Runtime["Dart310"] = "dart-3.10";
37219
- Runtime["Dart311"] = "dart-3.11";
37220
- Runtime["Dotnet60"] = "dotnet-6.0";
37221
- Runtime["Dotnet70"] = "dotnet-7.0";
37222
- Runtime["Dotnet80"] = "dotnet-8.0";
37223
- Runtime["Dotnet10"] = "dotnet-10";
37224
- Runtime["Java80"] = "java-8.0";
37225
- Runtime["Java110"] = "java-11.0";
37226
- Runtime["Java170"] = "java-17.0";
37227
- Runtime["Java180"] = "java-18.0";
37228
- Runtime["Java210"] = "java-21.0";
37229
- Runtime["Java22"] = "java-22";
37230
- Runtime["Java25"] = "java-25";
37231
- Runtime["Swift55"] = "swift-5.5";
37232
- Runtime["Swift58"] = "swift-5.8";
37233
- Runtime["Swift59"] = "swift-5.9";
37234
- Runtime["Swift510"] = "swift-5.10";
37235
- Runtime["Swift62"] = "swift-6.2";
37236
- Runtime["Kotlin16"] = "kotlin-1.6";
37237
- Runtime["Kotlin18"] = "kotlin-1.8";
37238
- Runtime["Kotlin19"] = "kotlin-1.9";
37239
- Runtime["Kotlin20"] = "kotlin-2.0";
37240
- Runtime["Kotlin23"] = "kotlin-2.3";
37241
- Runtime["Cpp17"] = "cpp-17";
37242
- Runtime["Cpp20"] = "cpp-20";
37243
- Runtime["Bun10"] = "bun-1.0";
37244
- Runtime["Bun11"] = "bun-1.1";
37245
- Runtime["Bun12"] = "bun-1.2";
37246
- Runtime["Bun13"] = "bun-1.3";
37247
- Runtime["Go123"] = "go-1.23";
37248
- Runtime["Go124"] = "go-1.24";
37249
- Runtime["Go125"] = "go-1.25";
37250
- Runtime["Go126"] = "go-1.26";
37251
- Runtime["Rust183"] = "rust-1.83";
37252
- Runtime["Static1"] = "static-1";
37253
- Runtime["Flutter324"] = "flutter-3.24";
37254
- Runtime["Flutter327"] = "flutter-3.27";
37255
- Runtime["Flutter329"] = "flutter-3.29";
37256
- Runtime["Flutter332"] = "flutter-3.32";
37257
- Runtime["Flutter335"] = "flutter-3.35";
37258
- Runtime["Flutter338"] = "flutter-3.38";
37259
- Runtime["Flutter341"] = "flutter-3.41";
37260
- })(exports.Runtime || (exports.Runtime = {}));
37261
-
37262
- exports.Runtimes = void 0;
37263
- (function (Runtimes) {
37264
- Runtimes["Node145"] = "node-14.5";
37265
- Runtimes["Node160"] = "node-16.0";
37266
- Runtimes["Node180"] = "node-18.0";
37267
- Runtimes["Node190"] = "node-19.0";
37268
- Runtimes["Node200"] = "node-20.0";
37269
- Runtimes["Node210"] = "node-21.0";
37270
- Runtimes["Node22"] = "node-22";
37271
- Runtimes["Node23"] = "node-23";
37272
- Runtimes["Node24"] = "node-24";
37273
- Runtimes["Node25"] = "node-25";
37274
- Runtimes["Php80"] = "php-8.0";
37275
- Runtimes["Php81"] = "php-8.1";
37276
- Runtimes["Php82"] = "php-8.2";
37277
- Runtimes["Php83"] = "php-8.3";
37278
- Runtimes["Php84"] = "php-8.4";
37279
- Runtimes["Ruby30"] = "ruby-3.0";
37280
- Runtimes["Ruby31"] = "ruby-3.1";
37281
- Runtimes["Ruby32"] = "ruby-3.2";
37282
- Runtimes["Ruby33"] = "ruby-3.3";
37283
- Runtimes["Ruby34"] = "ruby-3.4";
37284
- Runtimes["Ruby40"] = "ruby-4.0";
37285
- Runtimes["Python38"] = "python-3.8";
37286
- Runtimes["Python39"] = "python-3.9";
37287
- Runtimes["Python310"] = "python-3.10";
37288
- Runtimes["Python311"] = "python-3.11";
37289
- Runtimes["Python312"] = "python-3.12";
37290
- Runtimes["Python313"] = "python-3.13";
37291
- Runtimes["Python314"] = "python-3.14";
37292
- Runtimes["Pythonml311"] = "python-ml-3.11";
37293
- Runtimes["Pythonml312"] = "python-ml-3.12";
37294
- Runtimes["Pythonml313"] = "python-ml-3.13";
37295
- Runtimes["Deno140"] = "deno-1.40";
37296
- Runtimes["Deno146"] = "deno-1.46";
37297
- Runtimes["Deno20"] = "deno-2.0";
37298
- Runtimes["Deno25"] = "deno-2.5";
37299
- Runtimes["Deno26"] = "deno-2.6";
37300
- Runtimes["Dart215"] = "dart-2.15";
37301
- Runtimes["Dart216"] = "dart-2.16";
37302
- Runtimes["Dart217"] = "dart-2.17";
37303
- Runtimes["Dart218"] = "dart-2.18";
37304
- Runtimes["Dart219"] = "dart-2.19";
37305
- Runtimes["Dart30"] = "dart-3.0";
37306
- Runtimes["Dart31"] = "dart-3.1";
37307
- Runtimes["Dart33"] = "dart-3.3";
37308
- Runtimes["Dart35"] = "dart-3.5";
37309
- Runtimes["Dart38"] = "dart-3.8";
37310
- Runtimes["Dart39"] = "dart-3.9";
37311
- Runtimes["Dart310"] = "dart-3.10";
37312
- Runtimes["Dart311"] = "dart-3.11";
37313
- Runtimes["Dotnet60"] = "dotnet-6.0";
37314
- Runtimes["Dotnet70"] = "dotnet-7.0";
37315
- Runtimes["Dotnet80"] = "dotnet-8.0";
37316
- Runtimes["Dotnet10"] = "dotnet-10";
37317
- Runtimes["Java80"] = "java-8.0";
37318
- Runtimes["Java110"] = "java-11.0";
37319
- Runtimes["Java170"] = "java-17.0";
37320
- Runtimes["Java180"] = "java-18.0";
37321
- Runtimes["Java210"] = "java-21.0";
37322
- Runtimes["Java22"] = "java-22";
37323
- Runtimes["Java25"] = "java-25";
37324
- Runtimes["Swift55"] = "swift-5.5";
37325
- Runtimes["Swift58"] = "swift-5.8";
37326
- Runtimes["Swift59"] = "swift-5.9";
37327
- Runtimes["Swift510"] = "swift-5.10";
37328
- Runtimes["Swift62"] = "swift-6.2";
37329
- Runtimes["Kotlin16"] = "kotlin-1.6";
37330
- Runtimes["Kotlin18"] = "kotlin-1.8";
37331
- Runtimes["Kotlin19"] = "kotlin-1.9";
37332
- Runtimes["Kotlin20"] = "kotlin-2.0";
37333
- Runtimes["Kotlin23"] = "kotlin-2.3";
37334
- Runtimes["Cpp17"] = "cpp-17";
37335
- Runtimes["Cpp20"] = "cpp-20";
37336
- Runtimes["Bun10"] = "bun-1.0";
37337
- Runtimes["Bun11"] = "bun-1.1";
37338
- Runtimes["Bun12"] = "bun-1.2";
37339
- Runtimes["Bun13"] = "bun-1.3";
37340
- Runtimes["Go123"] = "go-1.23";
37341
- Runtimes["Go124"] = "go-1.24";
37342
- Runtimes["Go125"] = "go-1.25";
37343
- Runtimes["Go126"] = "go-1.26";
37344
- Runtimes["Rust183"] = "rust-1.83";
37345
- Runtimes["Static1"] = "static-1";
37346
- Runtimes["Flutter324"] = "flutter-3.24";
37347
- Runtimes["Flutter327"] = "flutter-3.27";
37348
- Runtimes["Flutter329"] = "flutter-3.29";
37349
- Runtimes["Flutter332"] = "flutter-3.32";
37350
- Runtimes["Flutter335"] = "flutter-3.35";
37351
- Runtimes["Flutter338"] = "flutter-3.38";
37352
- Runtimes["Flutter341"] = "flutter-3.41";
37353
- })(exports.Runtimes || (exports.Runtimes = {}));
37354
-
37355
- exports.UseCases = void 0;
37356
- (function (UseCases) {
37357
- UseCases["Starter"] = "starter";
37358
- UseCases["Databases"] = "databases";
37359
- UseCases["Ai"] = "ai";
37360
- UseCases["Messaging"] = "messaging";
37361
- UseCases["Utilities"] = "utilities";
37362
- UseCases["Devtools"] = "dev-tools";
37363
- UseCases["Auth"] = "auth";
37364
- UseCases["Portfolio"] = "portfolio";
37365
- UseCases["Events"] = "events";
37366
- UseCases["Ecommerce"] = "ecommerce";
37367
- UseCases["Documentation"] = "documentation";
37368
- UseCases["Blog"] = "blog";
37369
- UseCases["Forms"] = "forms";
37370
- UseCases["Dashboard"] = "dashboard";
37371
- })(exports.UseCases || (exports.UseCases = {}));
37713
+ exports.DomainRegistrationType = void 0;
37714
+ (function (DomainRegistrationType) {
37715
+ DomainRegistrationType["New"] = "new";
37716
+ DomainRegistrationType["Transfer"] = "transfer";
37717
+ DomainRegistrationType["Renewal"] = "renewal";
37718
+ DomainRegistrationType["Trade"] = "trade";
37719
+ })(exports.DomainRegistrationType || (exports.DomainRegistrationType = {}));
37720
+
37721
+ exports.DomainSuggestionType = void 0;
37722
+ (function (DomainSuggestionType) {
37723
+ DomainSuggestionType["Premium"] = "premium";
37724
+ DomainSuggestionType["Suggestion"] = "suggestion";
37725
+ })(exports.DomainSuggestionType || (exports.DomainSuggestionType = {}));
37726
+
37727
+ exports.FunctionRuntime = void 0;
37728
+ (function (FunctionRuntime) {
37729
+ FunctionRuntime["Node145"] = "node-14.5";
37730
+ FunctionRuntime["Node160"] = "node-16.0";
37731
+ FunctionRuntime["Node180"] = "node-18.0";
37732
+ FunctionRuntime["Node190"] = "node-19.0";
37733
+ FunctionRuntime["Node200"] = "node-20.0";
37734
+ FunctionRuntime["Node210"] = "node-21.0";
37735
+ FunctionRuntime["Node22"] = "node-22";
37736
+ FunctionRuntime["Node23"] = "node-23";
37737
+ FunctionRuntime["Node24"] = "node-24";
37738
+ FunctionRuntime["Node25"] = "node-25";
37739
+ FunctionRuntime["Php80"] = "php-8.0";
37740
+ FunctionRuntime["Php81"] = "php-8.1";
37741
+ FunctionRuntime["Php82"] = "php-8.2";
37742
+ FunctionRuntime["Php83"] = "php-8.3";
37743
+ FunctionRuntime["Php84"] = "php-8.4";
37744
+ FunctionRuntime["Ruby30"] = "ruby-3.0";
37745
+ FunctionRuntime["Ruby31"] = "ruby-3.1";
37746
+ FunctionRuntime["Ruby32"] = "ruby-3.2";
37747
+ FunctionRuntime["Ruby33"] = "ruby-3.3";
37748
+ FunctionRuntime["Ruby34"] = "ruby-3.4";
37749
+ FunctionRuntime["Ruby40"] = "ruby-4.0";
37750
+ FunctionRuntime["Python38"] = "python-3.8";
37751
+ FunctionRuntime["Python39"] = "python-3.9";
37752
+ FunctionRuntime["Python310"] = "python-3.10";
37753
+ FunctionRuntime["Python311"] = "python-3.11";
37754
+ FunctionRuntime["Python312"] = "python-3.12";
37755
+ FunctionRuntime["Python313"] = "python-3.13";
37756
+ FunctionRuntime["Python314"] = "python-3.14";
37757
+ FunctionRuntime["Pythonml311"] = "python-ml-3.11";
37758
+ FunctionRuntime["Pythonml312"] = "python-ml-3.12";
37759
+ FunctionRuntime["Pythonml313"] = "python-ml-3.13";
37760
+ FunctionRuntime["Deno140"] = "deno-1.40";
37761
+ FunctionRuntime["Deno146"] = "deno-1.46";
37762
+ FunctionRuntime["Deno20"] = "deno-2.0";
37763
+ FunctionRuntime["Deno25"] = "deno-2.5";
37764
+ FunctionRuntime["Deno26"] = "deno-2.6";
37765
+ FunctionRuntime["Dart215"] = "dart-2.15";
37766
+ FunctionRuntime["Dart216"] = "dart-2.16";
37767
+ FunctionRuntime["Dart217"] = "dart-2.17";
37768
+ FunctionRuntime["Dart218"] = "dart-2.18";
37769
+ FunctionRuntime["Dart219"] = "dart-2.19";
37770
+ FunctionRuntime["Dart30"] = "dart-3.0";
37771
+ FunctionRuntime["Dart31"] = "dart-3.1";
37772
+ FunctionRuntime["Dart33"] = "dart-3.3";
37773
+ FunctionRuntime["Dart35"] = "dart-3.5";
37774
+ FunctionRuntime["Dart38"] = "dart-3.8";
37775
+ FunctionRuntime["Dart39"] = "dart-3.9";
37776
+ FunctionRuntime["Dart310"] = "dart-3.10";
37777
+ FunctionRuntime["Dart311"] = "dart-3.11";
37778
+ FunctionRuntime["Dart312"] = "dart-3.12";
37779
+ FunctionRuntime["Dotnet60"] = "dotnet-6.0";
37780
+ FunctionRuntime["Dotnet70"] = "dotnet-7.0";
37781
+ FunctionRuntime["Dotnet80"] = "dotnet-8.0";
37782
+ FunctionRuntime["Dotnet10"] = "dotnet-10";
37783
+ FunctionRuntime["Java80"] = "java-8.0";
37784
+ FunctionRuntime["Java110"] = "java-11.0";
37785
+ FunctionRuntime["Java170"] = "java-17.0";
37786
+ FunctionRuntime["Java180"] = "java-18.0";
37787
+ FunctionRuntime["Java210"] = "java-21.0";
37788
+ FunctionRuntime["Java22"] = "java-22";
37789
+ FunctionRuntime["Java25"] = "java-25";
37790
+ FunctionRuntime["Swift55"] = "swift-5.5";
37791
+ FunctionRuntime["Swift58"] = "swift-5.8";
37792
+ FunctionRuntime["Swift59"] = "swift-5.9";
37793
+ FunctionRuntime["Swift510"] = "swift-5.10";
37794
+ FunctionRuntime["Swift62"] = "swift-6.2";
37795
+ FunctionRuntime["Kotlin16"] = "kotlin-1.6";
37796
+ FunctionRuntime["Kotlin18"] = "kotlin-1.8";
37797
+ FunctionRuntime["Kotlin19"] = "kotlin-1.9";
37798
+ FunctionRuntime["Kotlin20"] = "kotlin-2.0";
37799
+ FunctionRuntime["Kotlin23"] = "kotlin-2.3";
37800
+ FunctionRuntime["Cpp17"] = "cpp-17";
37801
+ FunctionRuntime["Cpp20"] = "cpp-20";
37802
+ FunctionRuntime["Bun10"] = "bun-1.0";
37803
+ FunctionRuntime["Bun11"] = "bun-1.1";
37804
+ FunctionRuntime["Bun12"] = "bun-1.2";
37805
+ FunctionRuntime["Bun13"] = "bun-1.3";
37806
+ FunctionRuntime["Go123"] = "go-1.23";
37807
+ FunctionRuntime["Go124"] = "go-1.24";
37808
+ FunctionRuntime["Go125"] = "go-1.25";
37809
+ FunctionRuntime["Go126"] = "go-1.26";
37810
+ FunctionRuntime["Rust183"] = "rust-1.83";
37811
+ FunctionRuntime["Static1"] = "static-1";
37812
+ FunctionRuntime["Flutter324"] = "flutter-3.24";
37813
+ FunctionRuntime["Flutter327"] = "flutter-3.27";
37814
+ FunctionRuntime["Flutter329"] = "flutter-3.29";
37815
+ FunctionRuntime["Flutter332"] = "flutter-3.32";
37816
+ FunctionRuntime["Flutter335"] = "flutter-3.35";
37817
+ FunctionRuntime["Flutter338"] = "flutter-3.38";
37818
+ FunctionRuntime["Flutter341"] = "flutter-3.41";
37819
+ FunctionRuntime["Flutter344"] = "flutter-3.44";
37820
+ })(exports.FunctionRuntime || (exports.FunctionRuntime = {}));
37821
+
37822
+ exports.ProjectKeyScopes = void 0;
37823
+ (function (ProjectKeyScopes) {
37824
+ ProjectKeyScopes["ProjectRead"] = "project.read";
37825
+ ProjectKeyScopes["ProjectWrite"] = "project.write";
37826
+ ProjectKeyScopes["KeysRead"] = "keys.read";
37827
+ ProjectKeyScopes["KeysWrite"] = "keys.write";
37828
+ ProjectKeyScopes["PlatformsRead"] = "platforms.read";
37829
+ ProjectKeyScopes["PlatformsWrite"] = "platforms.write";
37830
+ ProjectKeyScopes["MocksRead"] = "mocks.read";
37831
+ ProjectKeyScopes["MocksWrite"] = "mocks.write";
37832
+ ProjectKeyScopes["PoliciesRead"] = "policies.read";
37833
+ ProjectKeyScopes["PoliciesWrite"] = "policies.write";
37834
+ ProjectKeyScopes["ProjectPoliciesRead"] = "project.policies.read";
37835
+ ProjectKeyScopes["ProjectPoliciesWrite"] = "project.policies.write";
37836
+ ProjectKeyScopes["TemplatesRead"] = "templates.read";
37837
+ ProjectKeyScopes["TemplatesWrite"] = "templates.write";
37838
+ ProjectKeyScopes["Oauth2Read"] = "oauth2.read";
37839
+ ProjectKeyScopes["Oauth2Write"] = "oauth2.write";
37840
+ ProjectKeyScopes["UsersRead"] = "users.read";
37841
+ ProjectKeyScopes["UsersWrite"] = "users.write";
37842
+ ProjectKeyScopes["SessionsRead"] = "sessions.read";
37843
+ ProjectKeyScopes["SessionsWrite"] = "sessions.write";
37844
+ ProjectKeyScopes["TeamsRead"] = "teams.read";
37845
+ ProjectKeyScopes["TeamsWrite"] = "teams.write";
37846
+ ProjectKeyScopes["DatabasesRead"] = "databases.read";
37847
+ ProjectKeyScopes["DatabasesWrite"] = "databases.write";
37848
+ ProjectKeyScopes["TablesRead"] = "tables.read";
37849
+ ProjectKeyScopes["TablesWrite"] = "tables.write";
37850
+ ProjectKeyScopes["ColumnsRead"] = "columns.read";
37851
+ ProjectKeyScopes["ColumnsWrite"] = "columns.write";
37852
+ ProjectKeyScopes["IndexesRead"] = "indexes.read";
37853
+ ProjectKeyScopes["IndexesWrite"] = "indexes.write";
37854
+ ProjectKeyScopes["RowsRead"] = "rows.read";
37855
+ ProjectKeyScopes["RowsWrite"] = "rows.write";
37856
+ ProjectKeyScopes["CollectionsRead"] = "collections.read";
37857
+ ProjectKeyScopes["CollectionsWrite"] = "collections.write";
37858
+ ProjectKeyScopes["AttributesRead"] = "attributes.read";
37859
+ ProjectKeyScopes["AttributesWrite"] = "attributes.write";
37860
+ ProjectKeyScopes["DocumentsRead"] = "documents.read";
37861
+ ProjectKeyScopes["DocumentsWrite"] = "documents.write";
37862
+ ProjectKeyScopes["BucketsRead"] = "buckets.read";
37863
+ ProjectKeyScopes["BucketsWrite"] = "buckets.write";
37864
+ ProjectKeyScopes["FilesRead"] = "files.read";
37865
+ ProjectKeyScopes["FilesWrite"] = "files.write";
37866
+ ProjectKeyScopes["TokensRead"] = "tokens.read";
37867
+ ProjectKeyScopes["TokensWrite"] = "tokens.write";
37868
+ ProjectKeyScopes["FunctionsRead"] = "functions.read";
37869
+ ProjectKeyScopes["FunctionsWrite"] = "functions.write";
37870
+ ProjectKeyScopes["ExecutionsRead"] = "executions.read";
37871
+ ProjectKeyScopes["ExecutionsWrite"] = "executions.write";
37872
+ ProjectKeyScopes["ExecutionRead"] = "execution.read";
37873
+ ProjectKeyScopes["ExecutionWrite"] = "execution.write";
37874
+ ProjectKeyScopes["SitesRead"] = "sites.read";
37875
+ ProjectKeyScopes["SitesWrite"] = "sites.write";
37876
+ ProjectKeyScopes["LogRead"] = "log.read";
37877
+ ProjectKeyScopes["LogWrite"] = "log.write";
37878
+ ProjectKeyScopes["ProvidersRead"] = "providers.read";
37879
+ ProjectKeyScopes["ProvidersWrite"] = "providers.write";
37880
+ ProjectKeyScopes["TopicsRead"] = "topics.read";
37881
+ ProjectKeyScopes["TopicsWrite"] = "topics.write";
37882
+ ProjectKeyScopes["SubscribersRead"] = "subscribers.read";
37883
+ ProjectKeyScopes["SubscribersWrite"] = "subscribers.write";
37884
+ ProjectKeyScopes["TargetsRead"] = "targets.read";
37885
+ ProjectKeyScopes["TargetsWrite"] = "targets.write";
37886
+ ProjectKeyScopes["MessagesRead"] = "messages.read";
37887
+ ProjectKeyScopes["MessagesWrite"] = "messages.write";
37888
+ ProjectKeyScopes["RulesRead"] = "rules.read";
37889
+ ProjectKeyScopes["RulesWrite"] = "rules.write";
37890
+ ProjectKeyScopes["WebhooksRead"] = "webhooks.read";
37891
+ ProjectKeyScopes["WebhooksWrite"] = "webhooks.write";
37892
+ ProjectKeyScopes["LocaleRead"] = "locale.read";
37893
+ ProjectKeyScopes["AvatarsRead"] = "avatars.read";
37894
+ ProjectKeyScopes["HealthRead"] = "health.read";
37895
+ ProjectKeyScopes["AssistantRead"] = "assistant.read";
37896
+ ProjectKeyScopes["MigrationsRead"] = "migrations.read";
37897
+ ProjectKeyScopes["MigrationsWrite"] = "migrations.write";
37898
+ ProjectKeyScopes["SchedulesRead"] = "schedules.read";
37899
+ ProjectKeyScopes["SchedulesWrite"] = "schedules.write";
37900
+ ProjectKeyScopes["VcsRead"] = "vcs.read";
37901
+ ProjectKeyScopes["VcsWrite"] = "vcs.write";
37902
+ ProjectKeyScopes["InsightsRead"] = "insights.read";
37903
+ ProjectKeyScopes["InsightsWrite"] = "insights.write";
37904
+ ProjectKeyScopes["ReportsRead"] = "reports.read";
37905
+ ProjectKeyScopes["ReportsWrite"] = "reports.write";
37906
+ ProjectKeyScopes["PresencesRead"] = "presences.read";
37907
+ ProjectKeyScopes["PresencesWrite"] = "presences.write";
37908
+ ProjectKeyScopes["BackupsPoliciesRead"] = "backups.policies.read";
37909
+ ProjectKeyScopes["BackupsPoliciesWrite"] = "backups.policies.write";
37910
+ ProjectKeyScopes["ArchivesRead"] = "archives.read";
37911
+ ProjectKeyScopes["ArchivesWrite"] = "archives.write";
37912
+ ProjectKeyScopes["RestorationsRead"] = "restorations.read";
37913
+ ProjectKeyScopes["RestorationsWrite"] = "restorations.write";
37914
+ ProjectKeyScopes["DomainsRead"] = "domains.read";
37915
+ ProjectKeyScopes["DomainsWrite"] = "domains.write";
37916
+ ProjectKeyScopes["EventsRead"] = "events.read";
37917
+ ProjectKeyScopes["UsageRead"] = "usage.read";
37918
+ })(exports.ProjectKeyScopes || (exports.ProjectKeyScopes = {}));
37919
+
37920
+ exports.FunctionTemplateUseCase = void 0;
37921
+ (function (FunctionTemplateUseCase) {
37922
+ FunctionTemplateUseCase["Starter"] = "starter";
37923
+ FunctionTemplateUseCase["Databases"] = "databases";
37924
+ FunctionTemplateUseCase["Ai"] = "ai";
37925
+ FunctionTemplateUseCase["Messaging"] = "messaging";
37926
+ FunctionTemplateUseCase["Utilities"] = "utilities";
37927
+ FunctionTemplateUseCase["Devtools"] = "dev-tools";
37928
+ FunctionTemplateUseCase["Auth"] = "auth";
37929
+ })(exports.FunctionTemplateUseCase || (exports.FunctionTemplateUseCase = {}));
37372
37930
 
37373
37931
  exports.TemplateReferenceType = void 0;
37374
37932
  (function (TemplateReferenceType) {
@@ -37401,39 +37959,62 @@
37401
37959
  ExecutionMethod["HEAD"] = "HEAD";
37402
37960
  })(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
37403
37961
 
37404
- exports.Name = void 0;
37405
- (function (Name) {
37406
- Name["V1database"] = "v1-database";
37407
- Name["V1deletes"] = "v1-deletes";
37408
- Name["V1audits"] = "v1-audits";
37409
- Name["V1mails"] = "v1-mails";
37410
- Name["V1functions"] = "v1-functions";
37411
- Name["V1statsresources"] = "v1-stats-resources";
37412
- Name["V1statsusage"] = "v1-stats-usage";
37413
- Name["V1webhooks"] = "v1-webhooks";
37414
- Name["V1certificates"] = "v1-certificates";
37415
- Name["V1builds"] = "v1-builds";
37416
- Name["V1screenshots"] = "v1-screenshots";
37417
- Name["V1messaging"] = "v1-messaging";
37418
- Name["V1migrations"] = "v1-migrations";
37419
- })(exports.Name || (exports.Name = {}));
37420
-
37421
- exports.ResourceType = void 0;
37422
- (function (ResourceType) {
37423
- ResourceType["Projects"] = "projects";
37424
- ResourceType["Functions"] = "functions";
37425
- ResourceType["Sites"] = "sites";
37426
- ResourceType["Databases"] = "databases";
37427
- ResourceType["Buckets"] = "buckets";
37428
- ResourceType["Providers"] = "providers";
37429
- ResourceType["Topics"] = "topics";
37430
- ResourceType["Subscribers"] = "subscribers";
37431
- ResourceType["Messages"] = "messages";
37432
- ResourceType["Function"] = "function";
37433
- ResourceType["Execution"] = "execution";
37434
- ResourceType["Message"] = "message";
37435
- ResourceType["Backup"] = "backup";
37436
- })(exports.ResourceType || (exports.ResourceType = {}));
37962
+ exports.HealthQueueName = void 0;
37963
+ (function (HealthQueueName) {
37964
+ HealthQueueName["V1database"] = "v1-database";
37965
+ HealthQueueName["V1deletes"] = "v1-deletes";
37966
+ HealthQueueName["V1audits"] = "v1-audits";
37967
+ HealthQueueName["V1mails"] = "v1-mails";
37968
+ HealthQueueName["V1functions"] = "v1-functions";
37969
+ HealthQueueName["V1statsresources"] = "v1-stats-resources";
37970
+ HealthQueueName["V1statsusage"] = "v1-stats-usage";
37971
+ HealthQueueName["V1webhooks"] = "v1-webhooks";
37972
+ HealthQueueName["V1certificates"] = "v1-certificates";
37973
+ HealthQueueName["V1builds"] = "v1-builds";
37974
+ HealthQueueName["V1screenshots"] = "v1-screenshots";
37975
+ HealthQueueName["V1messaging"] = "v1-messaging";
37976
+ HealthQueueName["V1migrations"] = "v1-migrations";
37977
+ })(exports.HealthQueueName || (exports.HealthQueueName = {}));
37978
+
37979
+ exports.BlockResourceType = void 0;
37980
+ (function (BlockResourceType) {
37981
+ BlockResourceType["Projects"] = "projects";
37982
+ BlockResourceType["Functions"] = "functions";
37983
+ BlockResourceType["Sites"] = "sites";
37984
+ BlockResourceType["Databases"] = "databases";
37985
+ BlockResourceType["Buckets"] = "buckets";
37986
+ BlockResourceType["Providers"] = "providers";
37987
+ BlockResourceType["Topics"] = "topics";
37988
+ BlockResourceType["Subscribers"] = "subscribers";
37989
+ BlockResourceType["Messages"] = "messages";
37990
+ })(exports.BlockResourceType || (exports.BlockResourceType = {}));
37991
+
37992
+ exports.Region = void 0;
37993
+ (function (Region) {
37994
+ Region["Fra"] = "fra";
37995
+ Region["Nyc"] = "nyc";
37996
+ Region["Syd"] = "syd";
37997
+ Region["Sfo"] = "sfo";
37998
+ Region["Sgp"] = "sgp";
37999
+ Region["Tor"] = "tor";
38000
+ })(exports.Region || (exports.Region = {}));
38001
+
38002
+ exports.CacheTarget = void 0;
38003
+ (function (CacheTarget) {
38004
+ CacheTarget["Cache"] = "cache";
38005
+ CacheTarget["Timelimit"] = "timelimit";
38006
+ CacheTarget["Locks"] = "locks";
38007
+ CacheTarget["Pubsub"] = "pubsub";
38008
+ CacheTarget["Queue"] = "queue";
38009
+ CacheTarget["All"] = "all";
38010
+ })(exports.CacheTarget || (exports.CacheTarget = {}));
38011
+
38012
+ exports.CacheDatabase = void 0;
38013
+ (function (CacheDatabase) {
38014
+ CacheDatabase["Console"] = "console";
38015
+ CacheDatabase["Project"] = "project";
38016
+ CacheDatabase["Logs"] = "logs";
38017
+ })(exports.CacheDatabase || (exports.CacheDatabase = {}));
37437
38018
 
37438
38019
  exports.MessagePriority = void 0;
37439
38020
  (function (MessagePriority) {
@@ -37475,15 +38056,16 @@
37475
38056
  AppwriteMigrationResource["Site"] = "site";
37476
38057
  AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
37477
38058
  AppwriteMigrationResource["Sitevariable"] = "site-variable";
38059
+ AppwriteMigrationResource["Platform"] = "platform";
37478
38060
  AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
37479
38061
  })(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
37480
38062
 
37481
- exports.OnDuplicate = void 0;
37482
- (function (OnDuplicate) {
37483
- OnDuplicate["Fail"] = "fail";
37484
- OnDuplicate["Skip"] = "skip";
37485
- OnDuplicate["Overwrite"] = "overwrite";
37486
- })(exports.OnDuplicate || (exports.OnDuplicate = {}));
38063
+ exports.MigrationOnDuplicate = void 0;
38064
+ (function (MigrationOnDuplicate) {
38065
+ MigrationOnDuplicate["Fail"] = "fail";
38066
+ MigrationOnDuplicate["Skip"] = "skip";
38067
+ MigrationOnDuplicate["Overwrite"] = "overwrite";
38068
+ })(exports.MigrationOnDuplicate || (exports.MigrationOnDuplicate = {}));
37487
38069
 
37488
38070
  exports.FirebaseMigrationResource = void 0;
37489
38071
  (function (FirebaseMigrationResource) {
@@ -37529,221 +38111,138 @@
37529
38111
  SupabaseMigrationResource["File"] = "file";
37530
38112
  })(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
37531
38113
 
37532
- exports.Addon = void 0;
37533
- (function (Addon) {
37534
- Addon["Baa"] = "baa";
37535
- })(exports.Addon || (exports.Addon = {}));
37536
-
37537
- exports.AuthMethod = void 0;
37538
- (function (AuthMethod) {
37539
- AuthMethod["Emailpassword"] = "email-password";
37540
- AuthMethod["Magicurl"] = "magic-url";
37541
- AuthMethod["Emailotp"] = "email-otp";
37542
- AuthMethod["Anonymous"] = "anonymous";
37543
- AuthMethod["Invites"] = "invites";
37544
- AuthMethod["Jwt"] = "jwt";
37545
- AuthMethod["Phone"] = "phone";
37546
- })(exports.AuthMethod || (exports.AuthMethod = {}));
37547
-
37548
- exports.Prompt = void 0;
37549
- (function (Prompt) {
37550
- Prompt["None"] = "none";
37551
- Prompt["Consent"] = "consent";
37552
- Prompt["SelectAccount"] = "select_account";
37553
- })(exports.Prompt || (exports.Prompt = {}));
37554
-
37555
- exports.ProjectPolicy = void 0;
37556
- (function (ProjectPolicy) {
37557
- ProjectPolicy["Passworddictionary"] = "password-dictionary";
37558
- ProjectPolicy["Passwordhistory"] = "password-history";
37559
- ProjectPolicy["Passwordpersonaldata"] = "password-personal-data";
37560
- ProjectPolicy["Sessionalert"] = "session-alert";
37561
- ProjectPolicy["Sessionduration"] = "session-duration";
37562
- ProjectPolicy["Sessioninvalidation"] = "session-invalidation";
37563
- ProjectPolicy["Sessionlimit"] = "session-limit";
37564
- ProjectPolicy["Userlimit"] = "user-limit";
37565
- ProjectPolicy["Membershipprivacy"] = "membership-privacy";
37566
- })(exports.ProjectPolicy || (exports.ProjectPolicy = {}));
37567
-
37568
- exports.ProtocolId = void 0;
37569
- (function (ProtocolId) {
37570
- ProtocolId["Rest"] = "rest";
37571
- ProtocolId["Graphql"] = "graphql";
37572
- ProtocolId["Websocket"] = "websocket";
37573
- })(exports.ProtocolId || (exports.ProtocolId = {}));
37574
-
37575
- exports.ServiceId = void 0;
37576
- (function (ServiceId) {
37577
- ServiceId["Account"] = "account";
37578
- ServiceId["Avatars"] = "avatars";
37579
- ServiceId["Databases"] = "databases";
37580
- ServiceId["Tablesdb"] = "tablesdb";
37581
- ServiceId["Locale"] = "locale";
37582
- ServiceId["Health"] = "health";
37583
- ServiceId["Project"] = "project";
37584
- ServiceId["Storage"] = "storage";
37585
- ServiceId["Teams"] = "teams";
37586
- ServiceId["Users"] = "users";
37587
- ServiceId["Vcs"] = "vcs";
37588
- ServiceId["Sites"] = "sites";
37589
- ServiceId["Functions"] = "functions";
37590
- ServiceId["Proxy"] = "proxy";
37591
- ServiceId["Graphql"] = "graphql";
37592
- ServiceId["Migrations"] = "migrations";
37593
- ServiceId["Messaging"] = "messaging";
37594
- })(exports.ServiceId || (exports.ServiceId = {}));
37595
-
37596
- exports.Secure = void 0;
37597
- (function (Secure) {
37598
- Secure["Tls"] = "tls";
37599
- Secure["Ssl"] = "ssl";
37600
- })(exports.Secure || (exports.Secure = {}));
37601
-
37602
- exports.EmailTemplateType = void 0;
37603
- (function (EmailTemplateType) {
37604
- EmailTemplateType["Verification"] = "verification";
37605
- EmailTemplateType["MagicSession"] = "magicSession";
37606
- EmailTemplateType["Recovery"] = "recovery";
37607
- EmailTemplateType["Invitation"] = "invitation";
37608
- EmailTemplateType["MfaChallenge"] = "mfaChallenge";
37609
- EmailTemplateType["SessionAlert"] = "sessionAlert";
37610
- EmailTemplateType["OtpSession"] = "otpSession";
37611
- })(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
37612
-
37613
- exports.EmailTemplateLocale = void 0;
37614
- (function (EmailTemplateLocale) {
37615
- EmailTemplateLocale["Af"] = "af";
37616
- EmailTemplateLocale["Arae"] = "ar-ae";
37617
- EmailTemplateLocale["Arbh"] = "ar-bh";
37618
- EmailTemplateLocale["Ardz"] = "ar-dz";
37619
- EmailTemplateLocale["Areg"] = "ar-eg";
37620
- EmailTemplateLocale["Ariq"] = "ar-iq";
37621
- EmailTemplateLocale["Arjo"] = "ar-jo";
37622
- EmailTemplateLocale["Arkw"] = "ar-kw";
37623
- EmailTemplateLocale["Arlb"] = "ar-lb";
37624
- EmailTemplateLocale["Arly"] = "ar-ly";
37625
- EmailTemplateLocale["Arma"] = "ar-ma";
37626
- EmailTemplateLocale["Arom"] = "ar-om";
37627
- EmailTemplateLocale["Arqa"] = "ar-qa";
37628
- EmailTemplateLocale["Arsa"] = "ar-sa";
37629
- EmailTemplateLocale["Arsy"] = "ar-sy";
37630
- EmailTemplateLocale["Artn"] = "ar-tn";
37631
- EmailTemplateLocale["Arye"] = "ar-ye";
37632
- EmailTemplateLocale["As"] = "as";
37633
- EmailTemplateLocale["Az"] = "az";
37634
- EmailTemplateLocale["Be"] = "be";
37635
- EmailTemplateLocale["Bg"] = "bg";
37636
- EmailTemplateLocale["Bh"] = "bh";
37637
- EmailTemplateLocale["Bn"] = "bn";
37638
- EmailTemplateLocale["Bs"] = "bs";
37639
- EmailTemplateLocale["Ca"] = "ca";
37640
- EmailTemplateLocale["Cs"] = "cs";
37641
- EmailTemplateLocale["Cy"] = "cy";
37642
- EmailTemplateLocale["Da"] = "da";
37643
- EmailTemplateLocale["De"] = "de";
37644
- EmailTemplateLocale["Deat"] = "de-at";
37645
- EmailTemplateLocale["Dech"] = "de-ch";
37646
- EmailTemplateLocale["Deli"] = "de-li";
37647
- EmailTemplateLocale["Delu"] = "de-lu";
37648
- EmailTemplateLocale["El"] = "el";
37649
- EmailTemplateLocale["En"] = "en";
37650
- EmailTemplateLocale["Enau"] = "en-au";
37651
- EmailTemplateLocale["Enbz"] = "en-bz";
37652
- EmailTemplateLocale["Enca"] = "en-ca";
37653
- EmailTemplateLocale["Engb"] = "en-gb";
37654
- EmailTemplateLocale["Enie"] = "en-ie";
37655
- EmailTemplateLocale["Enjm"] = "en-jm";
37656
- EmailTemplateLocale["Ennz"] = "en-nz";
37657
- EmailTemplateLocale["Entt"] = "en-tt";
37658
- EmailTemplateLocale["Enus"] = "en-us";
37659
- EmailTemplateLocale["Enza"] = "en-za";
37660
- EmailTemplateLocale["Eo"] = "eo";
37661
- EmailTemplateLocale["Es"] = "es";
37662
- EmailTemplateLocale["Esar"] = "es-ar";
37663
- EmailTemplateLocale["Esbo"] = "es-bo";
37664
- EmailTemplateLocale["Escl"] = "es-cl";
37665
- EmailTemplateLocale["Esco"] = "es-co";
37666
- EmailTemplateLocale["Escr"] = "es-cr";
37667
- EmailTemplateLocale["Esdo"] = "es-do";
37668
- EmailTemplateLocale["Esec"] = "es-ec";
37669
- EmailTemplateLocale["Esgt"] = "es-gt";
37670
- EmailTemplateLocale["Eshn"] = "es-hn";
37671
- EmailTemplateLocale["Esmx"] = "es-mx";
37672
- EmailTemplateLocale["Esni"] = "es-ni";
37673
- EmailTemplateLocale["Espa"] = "es-pa";
37674
- EmailTemplateLocale["Espe"] = "es-pe";
37675
- EmailTemplateLocale["Espr"] = "es-pr";
37676
- EmailTemplateLocale["Espy"] = "es-py";
37677
- EmailTemplateLocale["Essv"] = "es-sv";
37678
- EmailTemplateLocale["Esuy"] = "es-uy";
37679
- EmailTemplateLocale["Esve"] = "es-ve";
37680
- EmailTemplateLocale["Et"] = "et";
37681
- EmailTemplateLocale["Eu"] = "eu";
37682
- EmailTemplateLocale["Fa"] = "fa";
37683
- EmailTemplateLocale["Fi"] = "fi";
37684
- EmailTemplateLocale["Fo"] = "fo";
37685
- EmailTemplateLocale["Fr"] = "fr";
37686
- EmailTemplateLocale["Frbe"] = "fr-be";
37687
- EmailTemplateLocale["Frca"] = "fr-ca";
37688
- EmailTemplateLocale["Frch"] = "fr-ch";
37689
- EmailTemplateLocale["Frlu"] = "fr-lu";
37690
- EmailTemplateLocale["Ga"] = "ga";
37691
- EmailTemplateLocale["Gd"] = "gd";
37692
- EmailTemplateLocale["He"] = "he";
37693
- EmailTemplateLocale["Hi"] = "hi";
37694
- EmailTemplateLocale["Hr"] = "hr";
37695
- EmailTemplateLocale["Hu"] = "hu";
37696
- EmailTemplateLocale["Id"] = "id";
37697
- EmailTemplateLocale["Is"] = "is";
37698
- EmailTemplateLocale["It"] = "it";
37699
- EmailTemplateLocale["Itch"] = "it-ch";
37700
- EmailTemplateLocale["Ja"] = "ja";
37701
- EmailTemplateLocale["Ji"] = "ji";
37702
- EmailTemplateLocale["Ko"] = "ko";
37703
- EmailTemplateLocale["Ku"] = "ku";
37704
- EmailTemplateLocale["Lt"] = "lt";
37705
- EmailTemplateLocale["Lv"] = "lv";
37706
- EmailTemplateLocale["Mk"] = "mk";
37707
- EmailTemplateLocale["Ml"] = "ml";
37708
- EmailTemplateLocale["Ms"] = "ms";
37709
- EmailTemplateLocale["Mt"] = "mt";
37710
- EmailTemplateLocale["Nb"] = "nb";
37711
- EmailTemplateLocale["Ne"] = "ne";
37712
- EmailTemplateLocale["Nl"] = "nl";
37713
- EmailTemplateLocale["Nlbe"] = "nl-be";
37714
- EmailTemplateLocale["Nn"] = "nn";
37715
- EmailTemplateLocale["No"] = "no";
37716
- EmailTemplateLocale["Pa"] = "pa";
37717
- EmailTemplateLocale["Pl"] = "pl";
37718
- EmailTemplateLocale["Pt"] = "pt";
37719
- EmailTemplateLocale["Ptbr"] = "pt-br";
37720
- EmailTemplateLocale["Rm"] = "rm";
37721
- EmailTemplateLocale["Ro"] = "ro";
37722
- EmailTemplateLocale["Romd"] = "ro-md";
37723
- EmailTemplateLocale["Ru"] = "ru";
37724
- EmailTemplateLocale["Rumd"] = "ru-md";
37725
- EmailTemplateLocale["Sb"] = "sb";
37726
- EmailTemplateLocale["Sk"] = "sk";
37727
- EmailTemplateLocale["Sl"] = "sl";
37728
- EmailTemplateLocale["Sq"] = "sq";
37729
- EmailTemplateLocale["Sr"] = "sr";
37730
- EmailTemplateLocale["Sv"] = "sv";
37731
- EmailTemplateLocale["Svfi"] = "sv-fi";
37732
- EmailTemplateLocale["Th"] = "th";
37733
- EmailTemplateLocale["Tn"] = "tn";
37734
- EmailTemplateLocale["Tr"] = "tr";
37735
- EmailTemplateLocale["Ts"] = "ts";
37736
- EmailTemplateLocale["Ua"] = "ua";
37737
- EmailTemplateLocale["Ur"] = "ur";
37738
- EmailTemplateLocale["Ve"] = "ve";
37739
- EmailTemplateLocale["Vi"] = "vi";
37740
- EmailTemplateLocale["Xh"] = "xh";
37741
- EmailTemplateLocale["Zhcn"] = "zh-cn";
37742
- EmailTemplateLocale["Zhhk"] = "zh-hk";
37743
- EmailTemplateLocale["Zhsg"] = "zh-sg";
37744
- EmailTemplateLocale["Zhtw"] = "zh-tw";
37745
- EmailTemplateLocale["Zu"] = "zu";
37746
- })(exports.EmailTemplateLocale || (exports.EmailTemplateLocale = {}));
38114
+ exports.OrganizationKeyScopes = void 0;
38115
+ (function (OrganizationKeyScopes) {
38116
+ OrganizationKeyScopes["ProjectsRead"] = "projects.read";
38117
+ OrganizationKeyScopes["ProjectsWrite"] = "projects.write";
38118
+ OrganizationKeyScopes["DevKeysRead"] = "devKeys.read";
38119
+ OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
38120
+ OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
38121
+ OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
38122
+ OrganizationKeyScopes["DomainsRead"] = "domains.read";
38123
+ OrganizationKeyScopes["DomainsWrite"] = "domains.write";
38124
+ OrganizationKeyScopes["KeysRead"] = "keys.read";
38125
+ OrganizationKeyScopes["KeysWrite"] = "keys.write";
38126
+ })(exports.OrganizationKeyScopes || (exports.OrganizationKeyScopes = {}));
38127
+
38128
+ exports.OrganizationAddon = void 0;
38129
+ (function (OrganizationAddon) {
38130
+ OrganizationAddon["Baa"] = "baa";
38131
+ OrganizationAddon["BackupRecovery"] = "backup_recovery";
38132
+ })(exports.OrganizationAddon || (exports.OrganizationAddon = {}));
38133
+
38134
+ exports.ProjectAuthMethodId = void 0;
38135
+ (function (ProjectAuthMethodId) {
38136
+ ProjectAuthMethodId["Emailpassword"] = "email-password";
38137
+ ProjectAuthMethodId["Magicurl"] = "magic-url";
38138
+ ProjectAuthMethodId["Emailotp"] = "email-otp";
38139
+ ProjectAuthMethodId["Anonymous"] = "anonymous";
38140
+ ProjectAuthMethodId["Invites"] = "invites";
38141
+ ProjectAuthMethodId["Jwt"] = "jwt";
38142
+ ProjectAuthMethodId["Phone"] = "phone";
38143
+ })(exports.ProjectAuthMethodId || (exports.ProjectAuthMethodId = {}));
38144
+
38145
+ exports.ProjectOAuth2GooglePrompt = void 0;
38146
+ (function (ProjectOAuth2GooglePrompt) {
38147
+ ProjectOAuth2GooglePrompt["None"] = "none";
38148
+ ProjectOAuth2GooglePrompt["Consent"] = "consent";
38149
+ ProjectOAuth2GooglePrompt["SelectAccount"] = "select_account";
38150
+ })(exports.ProjectOAuth2GooglePrompt || (exports.ProjectOAuth2GooglePrompt = {}));
38151
+
38152
+ exports.ProjectOAuthProviderId = void 0;
38153
+ (function (ProjectOAuthProviderId) {
38154
+ ProjectOAuthProviderId["Amazon"] = "amazon";
38155
+ ProjectOAuthProviderId["Apple"] = "apple";
38156
+ ProjectOAuthProviderId["Auth0"] = "auth0";
38157
+ ProjectOAuthProviderId["Authentik"] = "authentik";
38158
+ ProjectOAuthProviderId["Autodesk"] = "autodesk";
38159
+ ProjectOAuthProviderId["Bitbucket"] = "bitbucket";
38160
+ ProjectOAuthProviderId["Bitly"] = "bitly";
38161
+ ProjectOAuthProviderId["Box"] = "box";
38162
+ ProjectOAuthProviderId["Dailymotion"] = "dailymotion";
38163
+ ProjectOAuthProviderId["Discord"] = "discord";
38164
+ ProjectOAuthProviderId["Disqus"] = "disqus";
38165
+ ProjectOAuthProviderId["Dropbox"] = "dropbox";
38166
+ ProjectOAuthProviderId["Etsy"] = "etsy";
38167
+ ProjectOAuthProviderId["Facebook"] = "facebook";
38168
+ ProjectOAuthProviderId["Figma"] = "figma";
38169
+ ProjectOAuthProviderId["Fusionauth"] = "fusionauth";
38170
+ ProjectOAuthProviderId["Github"] = "github";
38171
+ ProjectOAuthProviderId["Gitlab"] = "gitlab";
38172
+ ProjectOAuthProviderId["Google"] = "google";
38173
+ ProjectOAuthProviderId["Keycloak"] = "keycloak";
38174
+ ProjectOAuthProviderId["Kick"] = "kick";
38175
+ ProjectOAuthProviderId["Linkedin"] = "linkedin";
38176
+ ProjectOAuthProviderId["Microsoft"] = "microsoft";
38177
+ ProjectOAuthProviderId["Notion"] = "notion";
38178
+ ProjectOAuthProviderId["Oidc"] = "oidc";
38179
+ ProjectOAuthProviderId["Okta"] = "okta";
38180
+ ProjectOAuthProviderId["Paypal"] = "paypal";
38181
+ ProjectOAuthProviderId["PaypalSandbox"] = "paypalSandbox";
38182
+ ProjectOAuthProviderId["Podio"] = "podio";
38183
+ ProjectOAuthProviderId["Salesforce"] = "salesforce";
38184
+ ProjectOAuthProviderId["Slack"] = "slack";
38185
+ ProjectOAuthProviderId["Spotify"] = "spotify";
38186
+ ProjectOAuthProviderId["Stripe"] = "stripe";
38187
+ ProjectOAuthProviderId["Tradeshift"] = "tradeshift";
38188
+ ProjectOAuthProviderId["TradeshiftBox"] = "tradeshiftBox";
38189
+ ProjectOAuthProviderId["Twitch"] = "twitch";
38190
+ ProjectOAuthProviderId["Wordpress"] = "wordpress";
38191
+ ProjectOAuthProviderId["X"] = "x";
38192
+ ProjectOAuthProviderId["Yahoo"] = "yahoo";
38193
+ ProjectOAuthProviderId["Yammer"] = "yammer";
38194
+ ProjectOAuthProviderId["Yandex"] = "yandex";
38195
+ ProjectOAuthProviderId["Zoho"] = "zoho";
38196
+ ProjectOAuthProviderId["Zoom"] = "zoom";
38197
+ })(exports.ProjectOAuthProviderId || (exports.ProjectOAuthProviderId = {}));
38198
+
38199
+ exports.ProjectPolicyId = void 0;
38200
+ (function (ProjectPolicyId) {
38201
+ ProjectPolicyId["Passworddictionary"] = "password-dictionary";
38202
+ ProjectPolicyId["Passwordhistory"] = "password-history";
38203
+ ProjectPolicyId["Passwordpersonaldata"] = "password-personal-data";
38204
+ ProjectPolicyId["Sessionalert"] = "session-alert";
38205
+ ProjectPolicyId["Sessionduration"] = "session-duration";
38206
+ ProjectPolicyId["Sessioninvalidation"] = "session-invalidation";
38207
+ ProjectPolicyId["Sessionlimit"] = "session-limit";
38208
+ ProjectPolicyId["Userlimit"] = "user-limit";
38209
+ ProjectPolicyId["Membershipprivacy"] = "membership-privacy";
38210
+ })(exports.ProjectPolicyId || (exports.ProjectPolicyId = {}));
38211
+
38212
+ exports.ProjectProtocolId = void 0;
38213
+ (function (ProjectProtocolId) {
38214
+ ProjectProtocolId["Rest"] = "rest";
38215
+ ProjectProtocolId["Graphql"] = "graphql";
38216
+ ProjectProtocolId["Websocket"] = "websocket";
38217
+ })(exports.ProjectProtocolId || (exports.ProjectProtocolId = {}));
38218
+
38219
+ exports.ProjectServiceId = void 0;
38220
+ (function (ProjectServiceId) {
38221
+ ProjectServiceId["Account"] = "account";
38222
+ ProjectServiceId["Avatars"] = "avatars";
38223
+ ProjectServiceId["Databases"] = "databases";
38224
+ ProjectServiceId["Tablesdb"] = "tablesdb";
38225
+ ProjectServiceId["Locale"] = "locale";
38226
+ ProjectServiceId["Health"] = "health";
38227
+ ProjectServiceId["Project"] = "project";
38228
+ ProjectServiceId["Storage"] = "storage";
38229
+ ProjectServiceId["Teams"] = "teams";
38230
+ ProjectServiceId["Users"] = "users";
38231
+ ProjectServiceId["Vcs"] = "vcs";
38232
+ ProjectServiceId["Sites"] = "sites";
38233
+ ProjectServiceId["Functions"] = "functions";
38234
+ ProjectServiceId["Proxy"] = "proxy";
38235
+ ProjectServiceId["Graphql"] = "graphql";
38236
+ ProjectServiceId["Migrations"] = "migrations";
38237
+ ProjectServiceId["Messaging"] = "messaging";
38238
+ ProjectServiceId["Advisor"] = "advisor";
38239
+ })(exports.ProjectServiceId || (exports.ProjectServiceId = {}));
38240
+
38241
+ exports.ProjectSMTPSecure = void 0;
38242
+ (function (ProjectSMTPSecure) {
38243
+ ProjectSMTPSecure["Tls"] = "tls";
38244
+ ProjectSMTPSecure["Ssl"] = "ssl";
38245
+ })(exports.ProjectSMTPSecure || (exports.ProjectSMTPSecure = {}));
37747
38246
 
37748
38247
  exports.ProjectUsageRange = void 0;
37749
38248
  (function (ProjectUsageRange) {
@@ -37751,28 +38250,26 @@
37751
38250
  ProjectUsageRange["OneDay"] = "1d";
37752
38251
  })(exports.ProjectUsageRange || (exports.ProjectUsageRange = {}));
37753
38252
 
37754
- exports.Region = void 0;
37755
- (function (Region) {
37756
- Region["Fra"] = "fra";
37757
- Region["Nyc"] = "nyc";
37758
- Region["Syd"] = "syd";
37759
- Region["Sfo"] = "sfo";
37760
- Region["Sgp"] = "sgp";
37761
- Region["Tor"] = "tor";
37762
- })(exports.Region || (exports.Region = {}));
37763
-
37764
- exports.Status = void 0;
37765
- (function (Status) {
37766
- Status["Active"] = "active";
37767
- })(exports.Status || (exports.Status = {}));
37768
-
37769
- exports.StatusCode = void 0;
37770
- (function (StatusCode) {
37771
- StatusCode["MovedPermanently301"] = "301";
37772
- StatusCode["Found302"] = "302";
37773
- StatusCode["TemporaryRedirect307"] = "307";
37774
- StatusCode["PermanentRedirect308"] = "308";
37775
- })(exports.StatusCode || (exports.StatusCode = {}));
38253
+ exports.ScheduleResourceType = void 0;
38254
+ (function (ScheduleResourceType) {
38255
+ ScheduleResourceType["Function"] = "function";
38256
+ ScheduleResourceType["Execution"] = "execution";
38257
+ ScheduleResourceType["Message"] = "message";
38258
+ ScheduleResourceType["Backup"] = "backup";
38259
+ })(exports.ScheduleResourceType || (exports.ScheduleResourceType = {}));
38260
+
38261
+ exports.ProjectStatus = void 0;
38262
+ (function (ProjectStatus) {
38263
+ ProjectStatus["Active"] = "active";
38264
+ })(exports.ProjectStatus || (exports.ProjectStatus = {}));
38265
+
38266
+ exports.RedirectStatusCode = void 0;
38267
+ (function (RedirectStatusCode) {
38268
+ RedirectStatusCode["MovedPermanently"] = "301";
38269
+ RedirectStatusCode["Found"] = "302";
38270
+ RedirectStatusCode["TemporaryRedirect"] = "307";
38271
+ RedirectStatusCode["PermanentRedirect"] = "308";
38272
+ })(exports.RedirectStatusCode || (exports.RedirectStatusCode = {}));
37776
38273
 
37777
38274
  exports.ProxyResourceType = void 0;
37778
38275
  (function (ProxyResourceType) {
@@ -37780,142 +38277,138 @@
37780
38277
  ProxyResourceType["Function"] = "function";
37781
38278
  })(exports.ProxyResourceType || (exports.ProxyResourceType = {}));
37782
38279
 
37783
- exports.Framework = void 0;
37784
- (function (Framework) {
37785
- Framework["Analog"] = "analog";
37786
- Framework["Angular"] = "angular";
37787
- Framework["Nextjs"] = "nextjs";
37788
- Framework["React"] = "react";
37789
- Framework["Nuxt"] = "nuxt";
37790
- Framework["Vue"] = "vue";
37791
- Framework["Sveltekit"] = "sveltekit";
37792
- Framework["Astro"] = "astro";
37793
- Framework["Tanstackstart"] = "tanstack-start";
37794
- Framework["Remix"] = "remix";
37795
- Framework["Lynx"] = "lynx";
37796
- Framework["Flutter"] = "flutter";
37797
- Framework["Reactnative"] = "react-native";
37798
- Framework["Vite"] = "vite";
37799
- Framework["Other"] = "other";
37800
- })(exports.Framework || (exports.Framework = {}));
37801
-
37802
- exports.BuildRuntime = void 0;
37803
- (function (BuildRuntime) {
37804
- BuildRuntime["Node145"] = "node-14.5";
37805
- BuildRuntime["Node160"] = "node-16.0";
37806
- BuildRuntime["Node180"] = "node-18.0";
37807
- BuildRuntime["Node190"] = "node-19.0";
37808
- BuildRuntime["Node200"] = "node-20.0";
37809
- BuildRuntime["Node210"] = "node-21.0";
37810
- BuildRuntime["Node22"] = "node-22";
37811
- BuildRuntime["Node23"] = "node-23";
37812
- BuildRuntime["Node24"] = "node-24";
37813
- BuildRuntime["Node25"] = "node-25";
37814
- BuildRuntime["Php80"] = "php-8.0";
37815
- BuildRuntime["Php81"] = "php-8.1";
37816
- BuildRuntime["Php82"] = "php-8.2";
37817
- BuildRuntime["Php83"] = "php-8.3";
37818
- BuildRuntime["Php84"] = "php-8.4";
37819
- BuildRuntime["Ruby30"] = "ruby-3.0";
37820
- BuildRuntime["Ruby31"] = "ruby-3.1";
37821
- BuildRuntime["Ruby32"] = "ruby-3.2";
37822
- BuildRuntime["Ruby33"] = "ruby-3.3";
37823
- BuildRuntime["Ruby34"] = "ruby-3.4";
37824
- BuildRuntime["Ruby40"] = "ruby-4.0";
37825
- BuildRuntime["Python38"] = "python-3.8";
37826
- BuildRuntime["Python39"] = "python-3.9";
37827
- BuildRuntime["Python310"] = "python-3.10";
37828
- BuildRuntime["Python311"] = "python-3.11";
37829
- BuildRuntime["Python312"] = "python-3.12";
37830
- BuildRuntime["Python313"] = "python-3.13";
37831
- BuildRuntime["Python314"] = "python-3.14";
37832
- BuildRuntime["Pythonml311"] = "python-ml-3.11";
37833
- BuildRuntime["Pythonml312"] = "python-ml-3.12";
37834
- BuildRuntime["Pythonml313"] = "python-ml-3.13";
37835
- BuildRuntime["Deno140"] = "deno-1.40";
37836
- BuildRuntime["Deno146"] = "deno-1.46";
37837
- BuildRuntime["Deno20"] = "deno-2.0";
37838
- BuildRuntime["Deno25"] = "deno-2.5";
37839
- BuildRuntime["Deno26"] = "deno-2.6";
37840
- BuildRuntime["Dart215"] = "dart-2.15";
37841
- BuildRuntime["Dart216"] = "dart-2.16";
37842
- BuildRuntime["Dart217"] = "dart-2.17";
37843
- BuildRuntime["Dart218"] = "dart-2.18";
37844
- BuildRuntime["Dart219"] = "dart-2.19";
37845
- BuildRuntime["Dart30"] = "dart-3.0";
37846
- BuildRuntime["Dart31"] = "dart-3.1";
37847
- BuildRuntime["Dart33"] = "dart-3.3";
37848
- BuildRuntime["Dart35"] = "dart-3.5";
37849
- BuildRuntime["Dart38"] = "dart-3.8";
37850
- BuildRuntime["Dart39"] = "dart-3.9";
37851
- BuildRuntime["Dart310"] = "dart-3.10";
37852
- BuildRuntime["Dart311"] = "dart-3.11";
37853
- BuildRuntime["Dotnet60"] = "dotnet-6.0";
37854
- BuildRuntime["Dotnet70"] = "dotnet-7.0";
37855
- BuildRuntime["Dotnet80"] = "dotnet-8.0";
37856
- BuildRuntime["Dotnet10"] = "dotnet-10";
37857
- BuildRuntime["Java80"] = "java-8.0";
37858
- BuildRuntime["Java110"] = "java-11.0";
37859
- BuildRuntime["Java170"] = "java-17.0";
37860
- BuildRuntime["Java180"] = "java-18.0";
37861
- BuildRuntime["Java210"] = "java-21.0";
37862
- BuildRuntime["Java22"] = "java-22";
37863
- BuildRuntime["Java25"] = "java-25";
37864
- BuildRuntime["Swift55"] = "swift-5.5";
37865
- BuildRuntime["Swift58"] = "swift-5.8";
37866
- BuildRuntime["Swift59"] = "swift-5.9";
37867
- BuildRuntime["Swift510"] = "swift-5.10";
37868
- BuildRuntime["Swift62"] = "swift-6.2";
37869
- BuildRuntime["Kotlin16"] = "kotlin-1.6";
37870
- BuildRuntime["Kotlin18"] = "kotlin-1.8";
37871
- BuildRuntime["Kotlin19"] = "kotlin-1.9";
37872
- BuildRuntime["Kotlin20"] = "kotlin-2.0";
37873
- BuildRuntime["Kotlin23"] = "kotlin-2.3";
37874
- BuildRuntime["Cpp17"] = "cpp-17";
37875
- BuildRuntime["Cpp20"] = "cpp-20";
37876
- BuildRuntime["Bun10"] = "bun-1.0";
37877
- BuildRuntime["Bun11"] = "bun-1.1";
37878
- BuildRuntime["Bun12"] = "bun-1.2";
37879
- BuildRuntime["Bun13"] = "bun-1.3";
37880
- BuildRuntime["Go123"] = "go-1.23";
37881
- BuildRuntime["Go124"] = "go-1.24";
37882
- BuildRuntime["Go125"] = "go-1.25";
37883
- BuildRuntime["Go126"] = "go-1.26";
37884
- BuildRuntime["Rust183"] = "rust-1.83";
37885
- BuildRuntime["Static1"] = "static-1";
37886
- BuildRuntime["Flutter324"] = "flutter-3.24";
37887
- BuildRuntime["Flutter327"] = "flutter-3.27";
37888
- BuildRuntime["Flutter329"] = "flutter-3.29";
37889
- BuildRuntime["Flutter332"] = "flutter-3.32";
37890
- BuildRuntime["Flutter335"] = "flutter-3.35";
37891
- BuildRuntime["Flutter338"] = "flutter-3.38";
37892
- BuildRuntime["Flutter341"] = "flutter-3.41";
37893
- })(exports.BuildRuntime || (exports.BuildRuntime = {}));
37894
-
37895
- exports.Adapter = void 0;
37896
- (function (Adapter) {
37897
- Adapter["Static"] = "static";
37898
- Adapter["Ssr"] = "ssr";
37899
- })(exports.Adapter || (exports.Adapter = {}));
37900
-
37901
- exports.Frameworks = void 0;
37902
- (function (Frameworks) {
37903
- Frameworks["Analog"] = "analog";
37904
- Frameworks["Angular"] = "angular";
37905
- Frameworks["Nextjs"] = "nextjs";
37906
- Frameworks["React"] = "react";
37907
- Frameworks["Nuxt"] = "nuxt";
37908
- Frameworks["Vue"] = "vue";
37909
- Frameworks["Sveltekit"] = "sveltekit";
37910
- Frameworks["Astro"] = "astro";
37911
- Frameworks["Tanstackstart"] = "tanstack-start";
37912
- Frameworks["Remix"] = "remix";
37913
- Frameworks["Lynx"] = "lynx";
37914
- Frameworks["Flutter"] = "flutter";
37915
- Frameworks["Reactnative"] = "react-native";
37916
- Frameworks["Vite"] = "vite";
37917
- Frameworks["Other"] = "other";
37918
- })(exports.Frameworks || (exports.Frameworks = {}));
38280
+ exports.SiteFramework = void 0;
38281
+ (function (SiteFramework) {
38282
+ SiteFramework["Analog"] = "analog";
38283
+ SiteFramework["Angular"] = "angular";
38284
+ SiteFramework["Nextjs"] = "nextjs";
38285
+ SiteFramework["React"] = "react";
38286
+ SiteFramework["Nuxt"] = "nuxt";
38287
+ SiteFramework["Vue"] = "vue";
38288
+ SiteFramework["Sveltekit"] = "sveltekit";
38289
+ SiteFramework["Astro"] = "astro";
38290
+ SiteFramework["Tanstackstart"] = "tanstack-start";
38291
+ SiteFramework["Remix"] = "remix";
38292
+ SiteFramework["Lynx"] = "lynx";
38293
+ SiteFramework["Flutter"] = "flutter";
38294
+ SiteFramework["Reactnative"] = "react-native";
38295
+ SiteFramework["Vite"] = "vite";
38296
+ SiteFramework["Other"] = "other";
38297
+ })(exports.SiteFramework || (exports.SiteFramework = {}));
38298
+
38299
+ exports.SiteBuildRuntime = void 0;
38300
+ (function (SiteBuildRuntime) {
38301
+ SiteBuildRuntime["Node145"] = "node-14.5";
38302
+ SiteBuildRuntime["Node160"] = "node-16.0";
38303
+ SiteBuildRuntime["Node180"] = "node-18.0";
38304
+ SiteBuildRuntime["Node190"] = "node-19.0";
38305
+ SiteBuildRuntime["Node200"] = "node-20.0";
38306
+ SiteBuildRuntime["Node210"] = "node-21.0";
38307
+ SiteBuildRuntime["Node22"] = "node-22";
38308
+ SiteBuildRuntime["Node23"] = "node-23";
38309
+ SiteBuildRuntime["Node24"] = "node-24";
38310
+ SiteBuildRuntime["Node25"] = "node-25";
38311
+ SiteBuildRuntime["Php80"] = "php-8.0";
38312
+ SiteBuildRuntime["Php81"] = "php-8.1";
38313
+ SiteBuildRuntime["Php82"] = "php-8.2";
38314
+ SiteBuildRuntime["Php83"] = "php-8.3";
38315
+ SiteBuildRuntime["Php84"] = "php-8.4";
38316
+ SiteBuildRuntime["Ruby30"] = "ruby-3.0";
38317
+ SiteBuildRuntime["Ruby31"] = "ruby-3.1";
38318
+ SiteBuildRuntime["Ruby32"] = "ruby-3.2";
38319
+ SiteBuildRuntime["Ruby33"] = "ruby-3.3";
38320
+ SiteBuildRuntime["Ruby34"] = "ruby-3.4";
38321
+ SiteBuildRuntime["Ruby40"] = "ruby-4.0";
38322
+ SiteBuildRuntime["Python38"] = "python-3.8";
38323
+ SiteBuildRuntime["Python39"] = "python-3.9";
38324
+ SiteBuildRuntime["Python310"] = "python-3.10";
38325
+ SiteBuildRuntime["Python311"] = "python-3.11";
38326
+ SiteBuildRuntime["Python312"] = "python-3.12";
38327
+ SiteBuildRuntime["Python313"] = "python-3.13";
38328
+ SiteBuildRuntime["Python314"] = "python-3.14";
38329
+ SiteBuildRuntime["Pythonml311"] = "python-ml-3.11";
38330
+ SiteBuildRuntime["Pythonml312"] = "python-ml-3.12";
38331
+ SiteBuildRuntime["Pythonml313"] = "python-ml-3.13";
38332
+ SiteBuildRuntime["Deno140"] = "deno-1.40";
38333
+ SiteBuildRuntime["Deno146"] = "deno-1.46";
38334
+ SiteBuildRuntime["Deno20"] = "deno-2.0";
38335
+ SiteBuildRuntime["Deno25"] = "deno-2.5";
38336
+ SiteBuildRuntime["Deno26"] = "deno-2.6";
38337
+ SiteBuildRuntime["Dart215"] = "dart-2.15";
38338
+ SiteBuildRuntime["Dart216"] = "dart-2.16";
38339
+ SiteBuildRuntime["Dart217"] = "dart-2.17";
38340
+ SiteBuildRuntime["Dart218"] = "dart-2.18";
38341
+ SiteBuildRuntime["Dart219"] = "dart-2.19";
38342
+ SiteBuildRuntime["Dart30"] = "dart-3.0";
38343
+ SiteBuildRuntime["Dart31"] = "dart-3.1";
38344
+ SiteBuildRuntime["Dart33"] = "dart-3.3";
38345
+ SiteBuildRuntime["Dart35"] = "dart-3.5";
38346
+ SiteBuildRuntime["Dart38"] = "dart-3.8";
38347
+ SiteBuildRuntime["Dart39"] = "dart-3.9";
38348
+ SiteBuildRuntime["Dart310"] = "dart-3.10";
38349
+ SiteBuildRuntime["Dart311"] = "dart-3.11";
38350
+ SiteBuildRuntime["Dart312"] = "dart-3.12";
38351
+ SiteBuildRuntime["Dotnet60"] = "dotnet-6.0";
38352
+ SiteBuildRuntime["Dotnet70"] = "dotnet-7.0";
38353
+ SiteBuildRuntime["Dotnet80"] = "dotnet-8.0";
38354
+ SiteBuildRuntime["Dotnet10"] = "dotnet-10";
38355
+ SiteBuildRuntime["Java80"] = "java-8.0";
38356
+ SiteBuildRuntime["Java110"] = "java-11.0";
38357
+ SiteBuildRuntime["Java170"] = "java-17.0";
38358
+ SiteBuildRuntime["Java180"] = "java-18.0";
38359
+ SiteBuildRuntime["Java210"] = "java-21.0";
38360
+ SiteBuildRuntime["Java22"] = "java-22";
38361
+ SiteBuildRuntime["Java25"] = "java-25";
38362
+ SiteBuildRuntime["Swift55"] = "swift-5.5";
38363
+ SiteBuildRuntime["Swift58"] = "swift-5.8";
38364
+ SiteBuildRuntime["Swift59"] = "swift-5.9";
38365
+ SiteBuildRuntime["Swift510"] = "swift-5.10";
38366
+ SiteBuildRuntime["Swift62"] = "swift-6.2";
38367
+ SiteBuildRuntime["Kotlin16"] = "kotlin-1.6";
38368
+ SiteBuildRuntime["Kotlin18"] = "kotlin-1.8";
38369
+ SiteBuildRuntime["Kotlin19"] = "kotlin-1.9";
38370
+ SiteBuildRuntime["Kotlin20"] = "kotlin-2.0";
38371
+ SiteBuildRuntime["Kotlin23"] = "kotlin-2.3";
38372
+ SiteBuildRuntime["Cpp17"] = "cpp-17";
38373
+ SiteBuildRuntime["Cpp20"] = "cpp-20";
38374
+ SiteBuildRuntime["Bun10"] = "bun-1.0";
38375
+ SiteBuildRuntime["Bun11"] = "bun-1.1";
38376
+ SiteBuildRuntime["Bun12"] = "bun-1.2";
38377
+ SiteBuildRuntime["Bun13"] = "bun-1.3";
38378
+ SiteBuildRuntime["Go123"] = "go-1.23";
38379
+ SiteBuildRuntime["Go124"] = "go-1.24";
38380
+ SiteBuildRuntime["Go125"] = "go-1.25";
38381
+ SiteBuildRuntime["Go126"] = "go-1.26";
38382
+ SiteBuildRuntime["Rust183"] = "rust-1.83";
38383
+ SiteBuildRuntime["Static1"] = "static-1";
38384
+ SiteBuildRuntime["Flutter324"] = "flutter-3.24";
38385
+ SiteBuildRuntime["Flutter327"] = "flutter-3.27";
38386
+ SiteBuildRuntime["Flutter329"] = "flutter-3.29";
38387
+ SiteBuildRuntime["Flutter332"] = "flutter-3.32";
38388
+ SiteBuildRuntime["Flutter335"] = "flutter-3.35";
38389
+ SiteBuildRuntime["Flutter338"] = "flutter-3.38";
38390
+ SiteBuildRuntime["Flutter341"] = "flutter-3.41";
38391
+ SiteBuildRuntime["Flutter344"] = "flutter-3.44";
38392
+ })(exports.SiteBuildRuntime || (exports.SiteBuildRuntime = {}));
38393
+
38394
+ exports.SiteAdapter = void 0;
38395
+ (function (SiteAdapter) {
38396
+ SiteAdapter["Static"] = "static";
38397
+ SiteAdapter["Ssr"] = "ssr";
38398
+ })(exports.SiteAdapter || (exports.SiteAdapter = {}));
38399
+
38400
+ exports.SiteTemplateUseCase = void 0;
38401
+ (function (SiteTemplateUseCase) {
38402
+ SiteTemplateUseCase["Portfolio"] = "portfolio";
38403
+ SiteTemplateUseCase["Starter"] = "starter";
38404
+ SiteTemplateUseCase["Events"] = "events";
38405
+ SiteTemplateUseCase["Ecommerce"] = "ecommerce";
38406
+ SiteTemplateUseCase["Documentation"] = "documentation";
38407
+ SiteTemplateUseCase["Blog"] = "blog";
38408
+ SiteTemplateUseCase["Ai"] = "ai";
38409
+ SiteTemplateUseCase["Forms"] = "forms";
38410
+ SiteTemplateUseCase["Dashboard"] = "dashboard";
38411
+ })(exports.SiteTemplateUseCase || (exports.SiteTemplateUseCase = {}));
37919
38412
 
37920
38413
  exports.Compression = void 0;
37921
38414
  (function (Compression) {
@@ -37973,10 +38466,10 @@
37973
38466
  VCSDetectionType["Framework"] = "framework";
37974
38467
  })(exports.VCSDetectionType || (exports.VCSDetectionType = {}));
37975
38468
 
37976
- exports.Model = void 0;
37977
- (function (Model) {
37978
- Model["Embeddinggemma"] = "embeddinggemma";
37979
- })(exports.Model || (exports.Model = {}));
38469
+ exports.EmbeddingModel = void 0;
38470
+ (function (EmbeddingModel) {
38471
+ EmbeddingModel["Embeddinggemma"] = "embeddinggemma";
38472
+ })(exports.EmbeddingModel || (exports.EmbeddingModel = {}));
37980
38473
 
37981
38474
  exports.VectorsDBIndexType = void 0;
37982
38475
  (function (VectorsDBIndexType) {
@@ -38158,8 +38651,10 @@
38158
38651
  exports.Messaging = Messaging;
38159
38652
  exports.Migrations = Migrations;
38160
38653
  exports.Operator = Operator;
38654
+ exports.Organization = Organization;
38161
38655
  exports.Organizations = Organizations;
38162
38656
  exports.Permission = Permission;
38657
+ exports.Presences = Presences;
38163
38658
  exports.Project = Project;
38164
38659
  exports.Projects = Projects;
38165
38660
  exports.Proxy = Proxy;
@@ -38171,6 +38666,7 @@
38171
38666
  exports.TablesDB = TablesDB;
38172
38667
  exports.Teams = Teams;
38173
38668
  exports.Tokens = Tokens;
38669
+ exports.Usage = Usage;
38174
38670
  exports.Users = Users;
38175
38671
  exports.Vcs = Vcs;
38176
38672
  exports.VectorsDB = VectorsDB;