@appwrite.io/console 2.3.0 → 3.0.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 (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +294 -28
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +294 -28
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +347 -61
  8. package/docs/examples/activities/get-event.md +15 -0
  9. package/docs/examples/activities/list-events.md +15 -0
  10. package/docs/examples/databases/create-longtext-attribute.md +2 -1
  11. package/docs/examples/databases/create-mediumtext-attribute.md +2 -1
  12. package/docs/examples/databases/create-text-attribute.md +2 -1
  13. package/docs/examples/databases/create-varchar-attribute.md +2 -1
  14. package/docs/examples/projects/create-schedule.md +20 -0
  15. package/docs/examples/projects/get-schedule.md +16 -0
  16. package/docs/examples/projects/list-schedules.md +17 -0
  17. package/docs/examples/tablesdb/create-longtext-column.md +2 -1
  18. package/docs/examples/tablesdb/create-mediumtext-column.md +2 -1
  19. package/docs/examples/tablesdb/create-text-column.md +2 -1
  20. package/docs/examples/tablesdb/create-varchar-column.md +2 -1
  21. package/package.json +2 -3
  22. package/src/channel.ts +4 -0
  23. package/src/client.ts +11 -3
  24. package/src/enums/build-runtime.ts +20 -3
  25. package/src/enums/email-template-type.ts +4 -4
  26. package/src/enums/o-auth-provider.ts +0 -2
  27. package/src/enums/resource-type.ts +6 -0
  28. package/src/enums/runtime.ts +20 -3
  29. package/src/enums/runtimes.ts +20 -3
  30. package/src/enums/scopes.ts +2 -0
  31. package/src/enums/sms-template-type.ts +1 -1
  32. package/src/index.ts +3 -0
  33. package/src/models.ts +250 -6
  34. package/src/services/account.ts +4 -4
  35. package/src/services/activities.ts +116 -0
  36. package/src/services/databases.ts +56 -28
  37. package/src/services/migrations.ts +2 -2
  38. package/src/services/projects.ts +223 -0
  39. package/src/services/tables-db.ts +56 -28
  40. package/types/channel.d.ts +1 -0
  41. package/types/enums/build-runtime.d.ts +20 -3
  42. package/types/enums/email-template-type.d.ts +4 -4
  43. package/types/enums/o-auth-provider.d.ts +1 -3
  44. package/types/enums/resource-type.d.ts +6 -0
  45. package/types/enums/runtime.d.ts +20 -3
  46. package/types/enums/runtimes.d.ts +20 -3
  47. package/types/enums/scopes.d.ts +2 -0
  48. package/types/enums/sms-template-type.d.ts +1 -1
  49. package/types/index.d.ts +3 -0
  50. package/types/models.d.ts +246 -6
  51. package/types/services/account.d.ts +4 -4
  52. package/types/services/activities.d.ts +46 -0
  53. package/types/services/databases.d.ts +16 -4
  54. package/types/services/migrations.d.ts +2 -2
  55. package/types/services/projects.d.ts +82 -0
  56. package/types/services/tables-db.d.ts +16 -4
package/dist/esm/sdk.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import JSONbigModule from 'json-bigint';
2
- import BigNumber from 'bignumber.js';
3
2
 
4
3
  /******************************************************************************
5
4
  Copyright (c) Microsoft Corporation.
@@ -467,8 +466,16 @@ const JSONbigParser = JSONbigModule({ storeAsString: false });
467
466
  const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
468
467
  const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
469
468
  const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
469
+ function isBigNumber(value) {
470
+ return value !== null
471
+ && typeof value === 'object'
472
+ && value._isBigNumber === true
473
+ && typeof value.isInteger === 'function'
474
+ && typeof value.toFixed === 'function'
475
+ && typeof value.toNumber === 'function';
476
+ }
470
477
  function reviver(_key, value) {
471
- if (BigNumber.isBigNumber(value)) {
478
+ if (isBigNumber(value)) {
472
479
  if (value.isInteger()) {
473
480
  const str = value.toFixed();
474
481
  const bi = BigInt(str);
@@ -534,7 +541,7 @@ class Client {
534
541
  'x-sdk-name': 'Console',
535
542
  'x-sdk-platform': 'console',
536
543
  'x-sdk-language': 'web',
537
- 'x-sdk-version': '2.3.0',
544
+ 'x-sdk-version': '3.0.0',
538
545
  'X-Appwrite-Response-Format': '1.8.0',
539
546
  };
540
547
  this.realtime = {
@@ -3187,6 +3194,52 @@ class Account {
3187
3194
  }
3188
3195
  }
3189
3196
 
3197
+ class Activities {
3198
+ constructor(client) {
3199
+ this.client = client;
3200
+ }
3201
+ listEvents(paramsOrFirst) {
3202
+ let params;
3203
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3204
+ params = (paramsOrFirst || {});
3205
+ }
3206
+ else {
3207
+ params = {
3208
+ queries: paramsOrFirst
3209
+ };
3210
+ }
3211
+ const queries = params.queries;
3212
+ const apiPath = '/activities/events';
3213
+ const payload = {};
3214
+ if (typeof queries !== 'undefined') {
3215
+ payload['queries'] = queries;
3216
+ }
3217
+ const uri = new URL(this.client.config.endpoint + apiPath);
3218
+ const apiHeaders = {};
3219
+ return this.client.call('get', uri, apiHeaders, payload);
3220
+ }
3221
+ getEvent(paramsOrFirst) {
3222
+ let params;
3223
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3224
+ params = (paramsOrFirst || {});
3225
+ }
3226
+ else {
3227
+ params = {
3228
+ eventId: paramsOrFirst
3229
+ };
3230
+ }
3231
+ const eventId = params.eventId;
3232
+ if (typeof eventId === 'undefined') {
3233
+ throw new AppwriteException('Missing required parameter: "eventId"');
3234
+ }
3235
+ const apiPath = '/activities/events/{eventId}'.replace('{eventId}', eventId);
3236
+ const payload = {};
3237
+ const uri = new URL(this.client.config.endpoint + apiPath);
3238
+ const apiHeaders = {};
3239
+ return this.client.call('get', uri, apiHeaders, payload);
3240
+ }
3241
+ }
3242
+
3190
3243
  class Avatars {
3191
3244
  constructor(client) {
3192
3245
  this.client = client;
@@ -5712,7 +5765,8 @@ class Databases {
5712
5765
  key: rest[1],
5713
5766
  required: rest[2],
5714
5767
  xdefault: rest[3],
5715
- array: rest[4]
5768
+ array: rest[4],
5769
+ encrypt: rest[5]
5716
5770
  };
5717
5771
  }
5718
5772
  const databaseId = params.databaseId;
@@ -5721,6 +5775,7 @@ class Databases {
5721
5775
  const required = params.required;
5722
5776
  const xdefault = params.xdefault;
5723
5777
  const array = params.array;
5778
+ const encrypt = params.encrypt;
5724
5779
  if (typeof databaseId === 'undefined') {
5725
5780
  throw new AppwriteException('Missing required parameter: "databaseId"');
5726
5781
  }
@@ -5747,6 +5802,9 @@ class Databases {
5747
5802
  if (typeof array !== 'undefined') {
5748
5803
  payload['array'] = array;
5749
5804
  }
5805
+ if (typeof encrypt !== 'undefined') {
5806
+ payload['encrypt'] = encrypt;
5807
+ }
5750
5808
  const uri = new URL(this.client.config.endpoint + apiPath);
5751
5809
  const apiHeaders = {
5752
5810
  'content-type': 'application/json',
@@ -5818,7 +5876,8 @@ class Databases {
5818
5876
  key: rest[1],
5819
5877
  required: rest[2],
5820
5878
  xdefault: rest[3],
5821
- array: rest[4]
5879
+ array: rest[4],
5880
+ encrypt: rest[5]
5822
5881
  };
5823
5882
  }
5824
5883
  const databaseId = params.databaseId;
@@ -5827,6 +5886,7 @@ class Databases {
5827
5886
  const required = params.required;
5828
5887
  const xdefault = params.xdefault;
5829
5888
  const array = params.array;
5889
+ const encrypt = params.encrypt;
5830
5890
  if (typeof databaseId === 'undefined') {
5831
5891
  throw new AppwriteException('Missing required parameter: "databaseId"');
5832
5892
  }
@@ -5853,6 +5913,9 @@ class Databases {
5853
5913
  if (typeof array !== 'undefined') {
5854
5914
  payload['array'] = array;
5855
5915
  }
5916
+ if (typeof encrypt !== 'undefined') {
5917
+ payload['encrypt'] = encrypt;
5918
+ }
5856
5919
  const uri = new URL(this.client.config.endpoint + apiPath);
5857
5920
  const apiHeaders = {
5858
5921
  'content-type': 'application/json',
@@ -6307,7 +6370,8 @@ class Databases {
6307
6370
  key: rest[1],
6308
6371
  required: rest[2],
6309
6372
  xdefault: rest[3],
6310
- array: rest[4]
6373
+ array: rest[4],
6374
+ encrypt: rest[5]
6311
6375
  };
6312
6376
  }
6313
6377
  const databaseId = params.databaseId;
@@ -6316,6 +6380,7 @@ class Databases {
6316
6380
  const required = params.required;
6317
6381
  const xdefault = params.xdefault;
6318
6382
  const array = params.array;
6383
+ const encrypt = params.encrypt;
6319
6384
  if (typeof databaseId === 'undefined') {
6320
6385
  throw new AppwriteException('Missing required parameter: "databaseId"');
6321
6386
  }
@@ -6342,6 +6407,9 @@ class Databases {
6342
6407
  if (typeof array !== 'undefined') {
6343
6408
  payload['array'] = array;
6344
6409
  }
6410
+ if (typeof encrypt !== 'undefined') {
6411
+ payload['encrypt'] = encrypt;
6412
+ }
6345
6413
  const uri = new URL(this.client.config.endpoint + apiPath);
6346
6414
  const apiHeaders = {
6347
6415
  'content-type': 'application/json',
@@ -6520,7 +6588,8 @@ class Databases {
6520
6588
  size: rest[2],
6521
6589
  required: rest[3],
6522
6590
  xdefault: rest[4],
6523
- array: rest[5]
6591
+ array: rest[5],
6592
+ encrypt: rest[6]
6524
6593
  };
6525
6594
  }
6526
6595
  const databaseId = params.databaseId;
@@ -6530,6 +6599,7 @@ class Databases {
6530
6599
  const required = params.required;
6531
6600
  const xdefault = params.xdefault;
6532
6601
  const array = params.array;
6602
+ const encrypt = params.encrypt;
6533
6603
  if (typeof databaseId === 'undefined') {
6534
6604
  throw new AppwriteException('Missing required parameter: "databaseId"');
6535
6605
  }
@@ -6562,6 +6632,9 @@ class Databases {
6562
6632
  if (typeof array !== 'undefined') {
6563
6633
  payload['array'] = array;
6564
6634
  }
6635
+ if (typeof encrypt !== 'undefined') {
6636
+ payload['encrypt'] = encrypt;
6637
+ }
6565
6638
  const uri = new URL(this.client.config.endpoint + apiPath);
6566
6639
  const apiHeaders = {
6567
6640
  'content-type': 'application/json',
@@ -17402,6 +17475,117 @@ class Projects {
17402
17475
  };
17403
17476
  return this.client.call('delete', uri, apiHeaders, payload);
17404
17477
  }
17478
+ listSchedules(paramsOrFirst, ...rest) {
17479
+ let params;
17480
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17481
+ params = (paramsOrFirst || {});
17482
+ }
17483
+ else {
17484
+ params = {
17485
+ projectId: paramsOrFirst,
17486
+ queries: rest[0],
17487
+ total: rest[1]
17488
+ };
17489
+ }
17490
+ const projectId = params.projectId;
17491
+ const queries = params.queries;
17492
+ const total = params.total;
17493
+ if (typeof projectId === 'undefined') {
17494
+ throw new AppwriteException('Missing required parameter: "projectId"');
17495
+ }
17496
+ const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
17497
+ const payload = {};
17498
+ if (typeof queries !== 'undefined') {
17499
+ payload['queries'] = queries;
17500
+ }
17501
+ if (typeof total !== 'undefined') {
17502
+ payload['total'] = total;
17503
+ }
17504
+ const uri = new URL(this.client.config.endpoint + apiPath);
17505
+ const apiHeaders = {};
17506
+ return this.client.call('get', uri, apiHeaders, payload);
17507
+ }
17508
+ createSchedule(paramsOrFirst, ...rest) {
17509
+ let params;
17510
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17511
+ params = (paramsOrFirst || {});
17512
+ }
17513
+ else {
17514
+ params = {
17515
+ projectId: paramsOrFirst,
17516
+ resourceType: rest[0],
17517
+ resourceId: rest[1],
17518
+ schedule: rest[2],
17519
+ active: rest[3],
17520
+ data: rest[4]
17521
+ };
17522
+ }
17523
+ const projectId = params.projectId;
17524
+ const resourceType = params.resourceType;
17525
+ const resourceId = params.resourceId;
17526
+ const schedule = params.schedule;
17527
+ const active = params.active;
17528
+ const data = params.data;
17529
+ if (typeof projectId === 'undefined') {
17530
+ throw new AppwriteException('Missing required parameter: "projectId"');
17531
+ }
17532
+ if (typeof resourceType === 'undefined') {
17533
+ throw new AppwriteException('Missing required parameter: "resourceType"');
17534
+ }
17535
+ if (typeof resourceId === 'undefined') {
17536
+ throw new AppwriteException('Missing required parameter: "resourceId"');
17537
+ }
17538
+ if (typeof schedule === 'undefined') {
17539
+ throw new AppwriteException('Missing required parameter: "schedule"');
17540
+ }
17541
+ const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
17542
+ const payload = {};
17543
+ if (typeof resourceType !== 'undefined') {
17544
+ payload['resourceType'] = resourceType;
17545
+ }
17546
+ if (typeof resourceId !== 'undefined') {
17547
+ payload['resourceId'] = resourceId;
17548
+ }
17549
+ if (typeof schedule !== 'undefined') {
17550
+ payload['schedule'] = schedule;
17551
+ }
17552
+ if (typeof active !== 'undefined') {
17553
+ payload['active'] = active;
17554
+ }
17555
+ if (typeof data !== 'undefined') {
17556
+ payload['data'] = data;
17557
+ }
17558
+ const uri = new URL(this.client.config.endpoint + apiPath);
17559
+ const apiHeaders = {
17560
+ 'content-type': 'application/json',
17561
+ };
17562
+ return this.client.call('post', uri, apiHeaders, payload);
17563
+ }
17564
+ getSchedule(paramsOrFirst, ...rest) {
17565
+ let params;
17566
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17567
+ params = (paramsOrFirst || {});
17568
+ }
17569
+ else {
17570
+ params = {
17571
+ projectId: paramsOrFirst,
17572
+ scheduleId: rest[0]
17573
+ };
17574
+ }
17575
+ const projectId = params.projectId;
17576
+ const scheduleId = params.scheduleId;
17577
+ if (typeof projectId === 'undefined') {
17578
+ throw new AppwriteException('Missing required parameter: "projectId"');
17579
+ }
17580
+ if (typeof scheduleId === 'undefined') {
17581
+ throw new AppwriteException('Missing required parameter: "scheduleId"');
17582
+ }
17583
+ const apiPath = '/projects/{projectId}/schedules/{scheduleId}'.replace('{projectId}', projectId).replace('{scheduleId}', scheduleId);
17584
+ const payload = {};
17585
+ const uri = new URL(this.client.config.endpoint + apiPath);
17586
+ const apiHeaders = {};
17587
+ return this.client.call('get', uri, apiHeaders, payload);
17588
+ }
17405
17589
  updateServiceStatus(paramsOrFirst, ...rest) {
17406
17590
  let params;
17407
17591
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21734,7 +21918,8 @@ class TablesDB {
21734
21918
  key: rest[1],
21735
21919
  required: rest[2],
21736
21920
  xdefault: rest[3],
21737
- array: rest[4]
21921
+ array: rest[4],
21922
+ encrypt: rest[5]
21738
21923
  };
21739
21924
  }
21740
21925
  const databaseId = params.databaseId;
@@ -21743,6 +21928,7 @@ class TablesDB {
21743
21928
  const required = params.required;
21744
21929
  const xdefault = params.xdefault;
21745
21930
  const array = params.array;
21931
+ const encrypt = params.encrypt;
21746
21932
  if (typeof databaseId === 'undefined') {
21747
21933
  throw new AppwriteException('Missing required parameter: "databaseId"');
21748
21934
  }
@@ -21769,6 +21955,9 @@ class TablesDB {
21769
21955
  if (typeof array !== 'undefined') {
21770
21956
  payload['array'] = array;
21771
21957
  }
21958
+ if (typeof encrypt !== 'undefined') {
21959
+ payload['encrypt'] = encrypt;
21960
+ }
21772
21961
  const uri = new URL(this.client.config.endpoint + apiPath);
21773
21962
  const apiHeaders = {
21774
21963
  'content-type': 'application/json',
@@ -21840,7 +22029,8 @@ class TablesDB {
21840
22029
  key: rest[1],
21841
22030
  required: rest[2],
21842
22031
  xdefault: rest[3],
21843
- array: rest[4]
22032
+ array: rest[4],
22033
+ encrypt: rest[5]
21844
22034
  };
21845
22035
  }
21846
22036
  const databaseId = params.databaseId;
@@ -21849,6 +22039,7 @@ class TablesDB {
21849
22039
  const required = params.required;
21850
22040
  const xdefault = params.xdefault;
21851
22041
  const array = params.array;
22042
+ const encrypt = params.encrypt;
21852
22043
  if (typeof databaseId === 'undefined') {
21853
22044
  throw new AppwriteException('Missing required parameter: "databaseId"');
21854
22045
  }
@@ -21875,6 +22066,9 @@ class TablesDB {
21875
22066
  if (typeof array !== 'undefined') {
21876
22067
  payload['array'] = array;
21877
22068
  }
22069
+ if (typeof encrypt !== 'undefined') {
22070
+ payload['encrypt'] = encrypt;
22071
+ }
21878
22072
  const uri = new URL(this.client.config.endpoint + apiPath);
21879
22073
  const apiHeaders = {
21880
22074
  'content-type': 'application/json',
@@ -22329,7 +22523,8 @@ class TablesDB {
22329
22523
  key: rest[1],
22330
22524
  required: rest[2],
22331
22525
  xdefault: rest[3],
22332
- array: rest[4]
22526
+ array: rest[4],
22527
+ encrypt: rest[5]
22333
22528
  };
22334
22529
  }
22335
22530
  const databaseId = params.databaseId;
@@ -22338,6 +22533,7 @@ class TablesDB {
22338
22533
  const required = params.required;
22339
22534
  const xdefault = params.xdefault;
22340
22535
  const array = params.array;
22536
+ const encrypt = params.encrypt;
22341
22537
  if (typeof databaseId === 'undefined') {
22342
22538
  throw new AppwriteException('Missing required parameter: "databaseId"');
22343
22539
  }
@@ -22364,6 +22560,9 @@ class TablesDB {
22364
22560
  if (typeof array !== 'undefined') {
22365
22561
  payload['array'] = array;
22366
22562
  }
22563
+ if (typeof encrypt !== 'undefined') {
22564
+ payload['encrypt'] = encrypt;
22565
+ }
22367
22566
  const uri = new URL(this.client.config.endpoint + apiPath);
22368
22567
  const apiHeaders = {
22369
22568
  'content-type': 'application/json',
@@ -22542,7 +22741,8 @@ class TablesDB {
22542
22741
  size: rest[2],
22543
22742
  required: rest[3],
22544
22743
  xdefault: rest[4],
22545
- array: rest[5]
22744
+ array: rest[5],
22745
+ encrypt: rest[6]
22546
22746
  };
22547
22747
  }
22548
22748
  const databaseId = params.databaseId;
@@ -22552,6 +22752,7 @@ class TablesDB {
22552
22752
  const required = params.required;
22553
22753
  const xdefault = params.xdefault;
22554
22754
  const array = params.array;
22755
+ const encrypt = params.encrypt;
22555
22756
  if (typeof databaseId === 'undefined') {
22556
22757
  throw new AppwriteException('Missing required parameter: "databaseId"');
22557
22758
  }
@@ -22584,6 +22785,9 @@ class TablesDB {
22584
22785
  if (typeof array !== 'undefined') {
22585
22786
  payload['array'] = array;
22586
22787
  }
22788
+ if (typeof encrypt !== 'undefined') {
22789
+ payload['encrypt'] = encrypt;
22790
+ }
22587
22791
  const uri = new URL(this.client.config.endpoint + apiPath);
22588
22792
  const apiHeaders = {
22589
22793
  'content-type': 'application/json',
@@ -26663,6 +26867,9 @@ class Channel {
26663
26867
  create() {
26664
26868
  return this.resolve("create");
26665
26869
  }
26870
+ upsert() {
26871
+ return this.resolve("upsert");
26872
+ }
26666
26873
  update() {
26667
26874
  return this.resolve("update");
26668
26875
  }
@@ -27030,6 +27237,8 @@ var Scopes;
27030
27237
  Scopes["TargetsWrite"] = "targets.write";
27031
27238
  Scopes["RulesRead"] = "rules.read";
27032
27239
  Scopes["RulesWrite"] = "rules.write";
27240
+ Scopes["SchedulesRead"] = "schedules.read";
27241
+ Scopes["SchedulesWrite"] = "schedules.write";
27033
27242
  Scopes["MigrationsRead"] = "migrations.read";
27034
27243
  Scopes["MigrationsWrite"] = "migrations.write";
27035
27244
  Scopes["VcsRead"] = "vcs.read";
@@ -27102,8 +27311,6 @@ var OAuthProvider;
27102
27311
  OAuthProvider["Yandex"] = "yandex";
27103
27312
  OAuthProvider["Zoho"] = "zoho";
27104
27313
  OAuthProvider["Zoom"] = "zoom";
27105
- OAuthProvider["GithubImagine"] = "githubImagine";
27106
- OAuthProvider["GoogleImagine"] = "googleImagine";
27107
27314
  })(OAuthProvider || (OAuthProvider = {}));
27108
27315
 
27109
27316
  var Browser;
@@ -27885,27 +28092,35 @@ var Runtime;
27885
28092
  Runtime["Node200"] = "node-20.0";
27886
28093
  Runtime["Node210"] = "node-21.0";
27887
28094
  Runtime["Node22"] = "node-22";
28095
+ Runtime["Node23"] = "node-23";
28096
+ Runtime["Node24"] = "node-24";
28097
+ Runtime["Node25"] = "node-25";
27888
28098
  Runtime["Php80"] = "php-8.0";
27889
28099
  Runtime["Php81"] = "php-8.1";
27890
28100
  Runtime["Php82"] = "php-8.2";
27891
28101
  Runtime["Php83"] = "php-8.3";
28102
+ Runtime["Php84"] = "php-8.4";
27892
28103
  Runtime["Ruby30"] = "ruby-3.0";
27893
28104
  Runtime["Ruby31"] = "ruby-3.1";
27894
28105
  Runtime["Ruby32"] = "ruby-3.2";
27895
28106
  Runtime["Ruby33"] = "ruby-3.3";
28107
+ Runtime["Ruby34"] = "ruby-3.4";
28108
+ Runtime["Ruby40"] = "ruby-4.0";
27896
28109
  Runtime["Python38"] = "python-3.8";
27897
28110
  Runtime["Python39"] = "python-3.9";
27898
28111
  Runtime["Python310"] = "python-3.10";
27899
28112
  Runtime["Python311"] = "python-3.11";
27900
28113
  Runtime["Python312"] = "python-3.12";
28114
+ Runtime["Python313"] = "python-3.13";
28115
+ Runtime["Python314"] = "python-3.14";
27901
28116
  Runtime["Pythonml311"] = "python-ml-3.11";
27902
28117
  Runtime["Pythonml312"] = "python-ml-3.12";
27903
- Runtime["Deno121"] = "deno-1.21";
27904
- Runtime["Deno124"] = "deno-1.24";
27905
- Runtime["Deno135"] = "deno-1.35";
28118
+ Runtime["Pythonml313"] = "python-ml-3.13";
27906
28119
  Runtime["Deno140"] = "deno-1.40";
27907
28120
  Runtime["Deno146"] = "deno-1.46";
27908
28121
  Runtime["Deno20"] = "deno-2.0";
28122
+ Runtime["Deno25"] = "deno-2.5";
28123
+ Runtime["Deno26"] = "deno-2.6";
27909
28124
  Runtime["Dart215"] = "dart-2.15";
27910
28125
  Runtime["Dart216"] = "dart-2.16";
27911
28126
  Runtime["Dart217"] = "dart-2.17";
@@ -27921,25 +28136,34 @@ var Runtime;
27921
28136
  Runtime["Dotnet60"] = "dotnet-6.0";
27922
28137
  Runtime["Dotnet70"] = "dotnet-7.0";
27923
28138
  Runtime["Dotnet80"] = "dotnet-8.0";
28139
+ Runtime["Dotnet10"] = "dotnet-10";
27924
28140
  Runtime["Java80"] = "java-8.0";
27925
28141
  Runtime["Java110"] = "java-11.0";
27926
28142
  Runtime["Java170"] = "java-17.0";
27927
28143
  Runtime["Java180"] = "java-18.0";
27928
28144
  Runtime["Java210"] = "java-21.0";
27929
28145
  Runtime["Java22"] = "java-22";
28146
+ Runtime["Java25"] = "java-25";
27930
28147
  Runtime["Swift55"] = "swift-5.5";
27931
28148
  Runtime["Swift58"] = "swift-5.8";
27932
28149
  Runtime["Swift59"] = "swift-5.9";
27933
28150
  Runtime["Swift510"] = "swift-5.10";
28151
+ Runtime["Swift62"] = "swift-6.2";
27934
28152
  Runtime["Kotlin16"] = "kotlin-1.6";
27935
28153
  Runtime["Kotlin18"] = "kotlin-1.8";
27936
28154
  Runtime["Kotlin19"] = "kotlin-1.9";
27937
28155
  Runtime["Kotlin20"] = "kotlin-2.0";
28156
+ Runtime["Kotlin23"] = "kotlin-2.3";
27938
28157
  Runtime["Cpp17"] = "cpp-17";
27939
28158
  Runtime["Cpp20"] = "cpp-20";
27940
28159
  Runtime["Bun10"] = "bun-1.0";
27941
28160
  Runtime["Bun11"] = "bun-1.1";
28161
+ Runtime["Bun12"] = "bun-1.2";
28162
+ Runtime["Bun13"] = "bun-1.3";
27942
28163
  Runtime["Go123"] = "go-1.23";
28164
+ Runtime["Go124"] = "go-1.24";
28165
+ Runtime["Go125"] = "go-1.25";
28166
+ Runtime["Go126"] = "go-1.26";
27943
28167
  Runtime["Static1"] = "static-1";
27944
28168
  Runtime["Flutter324"] = "flutter-3.24";
27945
28169
  Runtime["Flutter327"] = "flutter-3.27";
@@ -27958,27 +28182,35 @@ var Runtimes;
27958
28182
  Runtimes["Node200"] = "node-20.0";
27959
28183
  Runtimes["Node210"] = "node-21.0";
27960
28184
  Runtimes["Node22"] = "node-22";
28185
+ Runtimes["Node23"] = "node-23";
28186
+ Runtimes["Node24"] = "node-24";
28187
+ Runtimes["Node25"] = "node-25";
27961
28188
  Runtimes["Php80"] = "php-8.0";
27962
28189
  Runtimes["Php81"] = "php-8.1";
27963
28190
  Runtimes["Php82"] = "php-8.2";
27964
28191
  Runtimes["Php83"] = "php-8.3";
28192
+ Runtimes["Php84"] = "php-8.4";
27965
28193
  Runtimes["Ruby30"] = "ruby-3.0";
27966
28194
  Runtimes["Ruby31"] = "ruby-3.1";
27967
28195
  Runtimes["Ruby32"] = "ruby-3.2";
27968
28196
  Runtimes["Ruby33"] = "ruby-3.3";
28197
+ Runtimes["Ruby34"] = "ruby-3.4";
28198
+ Runtimes["Ruby40"] = "ruby-4.0";
27969
28199
  Runtimes["Python38"] = "python-3.8";
27970
28200
  Runtimes["Python39"] = "python-3.9";
27971
28201
  Runtimes["Python310"] = "python-3.10";
27972
28202
  Runtimes["Python311"] = "python-3.11";
27973
28203
  Runtimes["Python312"] = "python-3.12";
28204
+ Runtimes["Python313"] = "python-3.13";
28205
+ Runtimes["Python314"] = "python-3.14";
27974
28206
  Runtimes["Pythonml311"] = "python-ml-3.11";
27975
28207
  Runtimes["Pythonml312"] = "python-ml-3.12";
27976
- Runtimes["Deno121"] = "deno-1.21";
27977
- Runtimes["Deno124"] = "deno-1.24";
27978
- Runtimes["Deno135"] = "deno-1.35";
28208
+ Runtimes["Pythonml313"] = "python-ml-3.13";
27979
28209
  Runtimes["Deno140"] = "deno-1.40";
27980
28210
  Runtimes["Deno146"] = "deno-1.46";
27981
28211
  Runtimes["Deno20"] = "deno-2.0";
28212
+ Runtimes["Deno25"] = "deno-2.5";
28213
+ Runtimes["Deno26"] = "deno-2.6";
27982
28214
  Runtimes["Dart215"] = "dart-2.15";
27983
28215
  Runtimes["Dart216"] = "dart-2.16";
27984
28216
  Runtimes["Dart217"] = "dart-2.17";
@@ -27994,25 +28226,34 @@ var Runtimes;
27994
28226
  Runtimes["Dotnet60"] = "dotnet-6.0";
27995
28227
  Runtimes["Dotnet70"] = "dotnet-7.0";
27996
28228
  Runtimes["Dotnet80"] = "dotnet-8.0";
28229
+ Runtimes["Dotnet10"] = "dotnet-10";
27997
28230
  Runtimes["Java80"] = "java-8.0";
27998
28231
  Runtimes["Java110"] = "java-11.0";
27999
28232
  Runtimes["Java170"] = "java-17.0";
28000
28233
  Runtimes["Java180"] = "java-18.0";
28001
28234
  Runtimes["Java210"] = "java-21.0";
28002
28235
  Runtimes["Java22"] = "java-22";
28236
+ Runtimes["Java25"] = "java-25";
28003
28237
  Runtimes["Swift55"] = "swift-5.5";
28004
28238
  Runtimes["Swift58"] = "swift-5.8";
28005
28239
  Runtimes["Swift59"] = "swift-5.9";
28006
28240
  Runtimes["Swift510"] = "swift-5.10";
28241
+ Runtimes["Swift62"] = "swift-6.2";
28007
28242
  Runtimes["Kotlin16"] = "kotlin-1.6";
28008
28243
  Runtimes["Kotlin18"] = "kotlin-1.8";
28009
28244
  Runtimes["Kotlin19"] = "kotlin-1.9";
28010
28245
  Runtimes["Kotlin20"] = "kotlin-2.0";
28246
+ Runtimes["Kotlin23"] = "kotlin-2.3";
28011
28247
  Runtimes["Cpp17"] = "cpp-17";
28012
28248
  Runtimes["Cpp20"] = "cpp-20";
28013
28249
  Runtimes["Bun10"] = "bun-1.0";
28014
28250
  Runtimes["Bun11"] = "bun-1.1";
28251
+ Runtimes["Bun12"] = "bun-1.2";
28252
+ Runtimes["Bun13"] = "bun-1.3";
28015
28253
  Runtimes["Go123"] = "go-1.23";
28254
+ Runtimes["Go124"] = "go-1.24";
28255
+ Runtimes["Go125"] = "go-1.25";
28256
+ Runtimes["Go126"] = "go-1.26";
28016
28257
  Runtimes["Static1"] = "static-1";
28017
28258
  Runtimes["Flutter324"] = "flutter-3.24";
28018
28259
  Runtimes["Flutter327"] = "flutter-3.27";
@@ -28164,6 +28405,14 @@ var PlatformType;
28164
28405
  PlatformType["Reactnativeandroid"] = "react-native-android";
28165
28406
  })(PlatformType || (PlatformType = {}));
28166
28407
 
28408
+ var ResourceType;
28409
+ (function (ResourceType) {
28410
+ ResourceType["Function"] = "function";
28411
+ ResourceType["Execution"] = "execution";
28412
+ ResourceType["Message"] = "message";
28413
+ ResourceType["Backup"] = "backup";
28414
+ })(ResourceType || (ResourceType = {}));
28415
+
28167
28416
  var ApiService;
28168
28417
  (function (ApiService) {
28169
28418
  ApiService["Account"] = "account";
@@ -28190,12 +28439,12 @@ var SMTPSecure;
28190
28439
  var EmailTemplateType;
28191
28440
  (function (EmailTemplateType) {
28192
28441
  EmailTemplateType["Verification"] = "verification";
28193
- EmailTemplateType["Magicsession"] = "magicsession";
28442
+ EmailTemplateType["MagicSession"] = "magicSession";
28194
28443
  EmailTemplateType["Recovery"] = "recovery";
28195
28444
  EmailTemplateType["Invitation"] = "invitation";
28196
- EmailTemplateType["Mfachallenge"] = "mfachallenge";
28197
- EmailTemplateType["Sessionalert"] = "sessionalert";
28198
- EmailTemplateType["Otpsession"] = "otpsession";
28445
+ EmailTemplateType["MfaChallenge"] = "mfaChallenge";
28446
+ EmailTemplateType["SessionAlert"] = "sessionAlert";
28447
+ EmailTemplateType["OtpSession"] = "otpSession";
28199
28448
  })(EmailTemplateType || (EmailTemplateType = {}));
28200
28449
 
28201
28450
  var EmailTemplateLocale;
@@ -28338,7 +28587,7 @@ var SmsTemplateType;
28338
28587
  SmsTemplateType["Verification"] = "verification";
28339
28588
  SmsTemplateType["Login"] = "login";
28340
28589
  SmsTemplateType["Invitation"] = "invitation";
28341
- SmsTemplateType["Mfachallenge"] = "mfachallenge";
28590
+ SmsTemplateType["MfaChallenge"] = "mfaChallenge";
28342
28591
  })(SmsTemplateType || (SmsTemplateType = {}));
28343
28592
 
28344
28593
  var SmsTemplateLocale;
@@ -28518,27 +28767,35 @@ var BuildRuntime;
28518
28767
  BuildRuntime["Node200"] = "node-20.0";
28519
28768
  BuildRuntime["Node210"] = "node-21.0";
28520
28769
  BuildRuntime["Node22"] = "node-22";
28770
+ BuildRuntime["Node23"] = "node-23";
28771
+ BuildRuntime["Node24"] = "node-24";
28772
+ BuildRuntime["Node25"] = "node-25";
28521
28773
  BuildRuntime["Php80"] = "php-8.0";
28522
28774
  BuildRuntime["Php81"] = "php-8.1";
28523
28775
  BuildRuntime["Php82"] = "php-8.2";
28524
28776
  BuildRuntime["Php83"] = "php-8.3";
28777
+ BuildRuntime["Php84"] = "php-8.4";
28525
28778
  BuildRuntime["Ruby30"] = "ruby-3.0";
28526
28779
  BuildRuntime["Ruby31"] = "ruby-3.1";
28527
28780
  BuildRuntime["Ruby32"] = "ruby-3.2";
28528
28781
  BuildRuntime["Ruby33"] = "ruby-3.3";
28782
+ BuildRuntime["Ruby34"] = "ruby-3.4";
28783
+ BuildRuntime["Ruby40"] = "ruby-4.0";
28529
28784
  BuildRuntime["Python38"] = "python-3.8";
28530
28785
  BuildRuntime["Python39"] = "python-3.9";
28531
28786
  BuildRuntime["Python310"] = "python-3.10";
28532
28787
  BuildRuntime["Python311"] = "python-3.11";
28533
28788
  BuildRuntime["Python312"] = "python-3.12";
28789
+ BuildRuntime["Python313"] = "python-3.13";
28790
+ BuildRuntime["Python314"] = "python-3.14";
28534
28791
  BuildRuntime["Pythonml311"] = "python-ml-3.11";
28535
28792
  BuildRuntime["Pythonml312"] = "python-ml-3.12";
28536
- BuildRuntime["Deno121"] = "deno-1.21";
28537
- BuildRuntime["Deno124"] = "deno-1.24";
28538
- BuildRuntime["Deno135"] = "deno-1.35";
28793
+ BuildRuntime["Pythonml313"] = "python-ml-3.13";
28539
28794
  BuildRuntime["Deno140"] = "deno-1.40";
28540
28795
  BuildRuntime["Deno146"] = "deno-1.46";
28541
28796
  BuildRuntime["Deno20"] = "deno-2.0";
28797
+ BuildRuntime["Deno25"] = "deno-2.5";
28798
+ BuildRuntime["Deno26"] = "deno-2.6";
28542
28799
  BuildRuntime["Dart215"] = "dart-2.15";
28543
28800
  BuildRuntime["Dart216"] = "dart-2.16";
28544
28801
  BuildRuntime["Dart217"] = "dart-2.17";
@@ -28554,25 +28811,34 @@ var BuildRuntime;
28554
28811
  BuildRuntime["Dotnet60"] = "dotnet-6.0";
28555
28812
  BuildRuntime["Dotnet70"] = "dotnet-7.0";
28556
28813
  BuildRuntime["Dotnet80"] = "dotnet-8.0";
28814
+ BuildRuntime["Dotnet10"] = "dotnet-10";
28557
28815
  BuildRuntime["Java80"] = "java-8.0";
28558
28816
  BuildRuntime["Java110"] = "java-11.0";
28559
28817
  BuildRuntime["Java170"] = "java-17.0";
28560
28818
  BuildRuntime["Java180"] = "java-18.0";
28561
28819
  BuildRuntime["Java210"] = "java-21.0";
28562
28820
  BuildRuntime["Java22"] = "java-22";
28821
+ BuildRuntime["Java25"] = "java-25";
28563
28822
  BuildRuntime["Swift55"] = "swift-5.5";
28564
28823
  BuildRuntime["Swift58"] = "swift-5.8";
28565
28824
  BuildRuntime["Swift59"] = "swift-5.9";
28566
28825
  BuildRuntime["Swift510"] = "swift-5.10";
28826
+ BuildRuntime["Swift62"] = "swift-6.2";
28567
28827
  BuildRuntime["Kotlin16"] = "kotlin-1.6";
28568
28828
  BuildRuntime["Kotlin18"] = "kotlin-1.8";
28569
28829
  BuildRuntime["Kotlin19"] = "kotlin-1.9";
28570
28830
  BuildRuntime["Kotlin20"] = "kotlin-2.0";
28831
+ BuildRuntime["Kotlin23"] = "kotlin-2.3";
28571
28832
  BuildRuntime["Cpp17"] = "cpp-17";
28572
28833
  BuildRuntime["Cpp20"] = "cpp-20";
28573
28834
  BuildRuntime["Bun10"] = "bun-1.0";
28574
28835
  BuildRuntime["Bun11"] = "bun-1.1";
28836
+ BuildRuntime["Bun12"] = "bun-1.2";
28837
+ BuildRuntime["Bun13"] = "bun-1.3";
28575
28838
  BuildRuntime["Go123"] = "go-1.23";
28839
+ BuildRuntime["Go124"] = "go-1.24";
28840
+ BuildRuntime["Go125"] = "go-1.25";
28841
+ BuildRuntime["Go126"] = "go-1.26";
28576
28842
  BuildRuntime["Static1"] = "static-1";
28577
28843
  BuildRuntime["Flutter324"] = "flutter-3.24";
28578
28844
  BuildRuntime["Flutter327"] = "flutter-3.27";
@@ -28757,5 +29023,5 @@ var BillingPlanGroup;
28757
29023
  BillingPlanGroup["Scale"] = "scale";
28758
29024
  })(BillingPlanGroup || (BillingPlanGroup = {}));
28759
29025
 
28760
- export { Account, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, Resources, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
29026
+ export { Account, Activities, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Resources, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
28761
29027
  //# sourceMappingURL=sdk.js.map