@appwrite.io/console 3.1.0 → 5.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 (83) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +516 -119
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +517 -120
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +516 -119
  8. package/docs/examples/databases/list-documents.md +2 -1
  9. package/docs/examples/domains/confirm-purchase.md +16 -0
  10. package/docs/examples/domains/confirm-transfer-in.md +16 -0
  11. package/docs/examples/domains/create-purchase.md +1 -1
  12. package/docs/examples/domains/create-transfer-in.md +18 -0
  13. package/docs/examples/domains/create-transfer-out.md +16 -0
  14. package/docs/examples/domains/get-transfer-status.md +15 -0
  15. package/docs/examples/functions/create.md +3 -1
  16. package/docs/examples/functions/update.md +3 -1
  17. package/docs/examples/health/get-console-pausing.md +16 -0
  18. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  19. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  20. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  21. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  22. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  23. package/docs/examples/migrations/get-firebase-report.md +2 -2
  24. package/docs/examples/migrations/get-n-host-report.md +2 -2
  25. package/docs/examples/migrations/get-supabase-report.md +2 -2
  26. package/docs/examples/projects/update-console-access.md +15 -0
  27. package/docs/examples/projects/update-status.md +16 -0
  28. package/docs/examples/sites/create-deployment.md +2 -2
  29. package/docs/examples/sites/create.md +4 -1
  30. package/docs/examples/sites/update.md +4 -1
  31. package/docs/examples/tablesdb/list-rows.md +2 -1
  32. package/package.json +1 -1
  33. package/src/channel.ts +19 -15
  34. package/src/client.ts +5 -1
  35. package/src/enums/appwrite-migration-resource.ts +25 -0
  36. package/src/enums/build-runtime.ts +3 -0
  37. package/src/enums/domain-purchase-payment-status.ts +10 -0
  38. package/src/enums/domain-transfer-status-status.ts +10 -0
  39. package/src/enums/firebase-migration-resource.ts +12 -0
  40. package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
  41. package/src/enums/runtime.ts +3 -0
  42. package/src/enums/runtimes.ts +3 -0
  43. package/src/enums/status.ts +3 -0
  44. package/src/enums/supabase-migration-resource.ts +13 -0
  45. package/src/index.ts +7 -1
  46. package/src/models.ts +209 -7
  47. package/src/services/account.ts +4 -4
  48. package/src/services/databases.ts +100 -93
  49. package/src/services/domains.ts +342 -13
  50. package/src/services/functions.ts +52 -24
  51. package/src/services/health.ts +61 -0
  52. package/src/services/messaging.ts +2 -2
  53. package/src/services/migrations.ts +68 -65
  54. package/src/services/organizations.ts +2 -2
  55. package/src/services/projects.ts +120 -0
  56. package/src/services/sites.ts +96 -57
  57. package/src/services/tables-db.ts +14 -7
  58. package/src/services/teams.ts +4 -4
  59. package/types/channel.d.ts +9 -9
  60. package/types/enums/appwrite-migration-resource.d.ts +25 -0
  61. package/types/enums/build-runtime.d.ts +3 -0
  62. package/types/enums/domain-purchase-payment-status.d.ts +10 -0
  63. package/types/enums/domain-transfer-status-status.d.ts +10 -0
  64. package/types/enums/firebase-migration-resource.d.ts +12 -0
  65. package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
  66. package/types/enums/runtime.d.ts +3 -0
  67. package/types/enums/runtimes.d.ts +3 -0
  68. package/types/enums/status.d.ts +3 -0
  69. package/types/enums/supabase-migration-resource.d.ts +13 -0
  70. package/types/index.d.ts +7 -1
  71. package/types/models.d.ts +207 -7
  72. package/types/services/account.d.ts +2 -2
  73. package/types/services/databases.d.ts +40 -37
  74. package/types/services/domains.d.ts +117 -4
  75. package/types/services/functions.d.ts +20 -8
  76. package/types/services/health.d.ts +24 -0
  77. package/types/services/messaging.d.ts +2 -2
  78. package/types/services/migrations.d.ts +36 -33
  79. package/types/services/organizations.d.ts +2 -2
  80. package/types/services/projects.d.ts +46 -0
  81. package/types/services/sites.d.ts +30 -12
  82. package/types/services/tables-db.d.ts +4 -1
  83. package/types/services/teams.d.ts +4 -4
package/dist/esm/sdk.js CHANGED
@@ -568,7 +568,7 @@ class Client {
568
568
  'x-sdk-name': 'Console',
569
569
  'x-sdk-platform': 'console',
570
570
  'x-sdk-language': 'web',
571
- 'x-sdk-version': '3.1.0',
571
+ 'x-sdk-version': '5.0.0',
572
572
  'X-Appwrite-Response-Format': '1.8.0',
573
573
  };
574
574
  this.realtime = {
@@ -1110,6 +1110,9 @@ class Client {
1110
1110
  window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
1111
1111
  window.localStorage.setItem('cookieFallback', cookieFallback);
1112
1112
  }
1113
+ if (data && typeof data === 'object') {
1114
+ data.toString = () => JSONbig.stringify(data);
1115
+ }
1113
1116
  return data;
1114
1117
  });
1115
1118
  }
@@ -6261,6 +6264,48 @@ class Databases {
6261
6264
  };
6262
6265
  return this.client.call('post', uri, apiHeaders, payload);
6263
6266
  }
6267
+ updateRelationshipAttribute(paramsOrFirst, ...rest) {
6268
+ let params;
6269
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6270
+ params = (paramsOrFirst || {});
6271
+ }
6272
+ else {
6273
+ params = {
6274
+ databaseId: paramsOrFirst,
6275
+ collectionId: rest[0],
6276
+ key: rest[1],
6277
+ onDelete: rest[2],
6278
+ newKey: rest[3]
6279
+ };
6280
+ }
6281
+ const databaseId = params.databaseId;
6282
+ const collectionId = params.collectionId;
6283
+ const key = params.key;
6284
+ const onDelete = params.onDelete;
6285
+ const newKey = params.newKey;
6286
+ if (typeof databaseId === 'undefined') {
6287
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6288
+ }
6289
+ if (typeof collectionId === 'undefined') {
6290
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6291
+ }
6292
+ if (typeof key === 'undefined') {
6293
+ throw new AppwriteException('Missing required parameter: "key"');
6294
+ }
6295
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6296
+ const payload = {};
6297
+ if (typeof onDelete !== 'undefined') {
6298
+ payload['onDelete'] = onDelete;
6299
+ }
6300
+ if (typeof newKey !== 'undefined') {
6301
+ payload['newKey'] = newKey;
6302
+ }
6303
+ const uri = new URL(this.client.config.endpoint + apiPath);
6304
+ const apiHeaders = {
6305
+ 'content-type': 'application/json',
6306
+ };
6307
+ return this.client.call('patch', uri, apiHeaders, payload);
6308
+ }
6264
6309
  createStringAttribute(paramsOrFirst, ...rest) {
6265
6310
  let params;
6266
6311
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -6788,48 +6833,6 @@ class Databases {
6788
6833
  };
6789
6834
  return this.client.call('delete', uri, apiHeaders, payload);
6790
6835
  }
6791
- updateRelationshipAttribute(paramsOrFirst, ...rest) {
6792
- let params;
6793
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6794
- params = (paramsOrFirst || {});
6795
- }
6796
- else {
6797
- params = {
6798
- databaseId: paramsOrFirst,
6799
- collectionId: rest[0],
6800
- key: rest[1],
6801
- onDelete: rest[2],
6802
- newKey: rest[3]
6803
- };
6804
- }
6805
- const databaseId = params.databaseId;
6806
- const collectionId = params.collectionId;
6807
- const key = params.key;
6808
- const onDelete = params.onDelete;
6809
- const newKey = params.newKey;
6810
- if (typeof databaseId === 'undefined') {
6811
- throw new AppwriteException('Missing required parameter: "databaseId"');
6812
- }
6813
- if (typeof collectionId === 'undefined') {
6814
- throw new AppwriteException('Missing required parameter: "collectionId"');
6815
- }
6816
- if (typeof key === 'undefined') {
6817
- throw new AppwriteException('Missing required parameter: "key"');
6818
- }
6819
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6820
- const payload = {};
6821
- if (typeof onDelete !== 'undefined') {
6822
- payload['onDelete'] = onDelete;
6823
- }
6824
- if (typeof newKey !== 'undefined') {
6825
- payload['newKey'] = newKey;
6826
- }
6827
- const uri = new URL(this.client.config.endpoint + apiPath);
6828
- const apiHeaders = {
6829
- 'content-type': 'application/json',
6830
- };
6831
- return this.client.call('patch', uri, apiHeaders, payload);
6832
- }
6833
6836
  listDocuments(paramsOrFirst, ...rest) {
6834
6837
  let params;
6835
6838
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -6841,7 +6844,8 @@ class Databases {
6841
6844
  collectionId: rest[0],
6842
6845
  queries: rest[1],
6843
6846
  transactionId: rest[2],
6844
- total: rest[3]
6847
+ total: rest[3],
6848
+ ttl: rest[4]
6845
6849
  };
6846
6850
  }
6847
6851
  const databaseId = params.databaseId;
@@ -6849,6 +6853,7 @@ class Databases {
6849
6853
  const queries = params.queries;
6850
6854
  const transactionId = params.transactionId;
6851
6855
  const total = params.total;
6856
+ const ttl = params.ttl;
6852
6857
  if (typeof databaseId === 'undefined') {
6853
6858
  throw new AppwriteException('Missing required parameter: "databaseId"');
6854
6859
  }
@@ -6866,6 +6871,9 @@ class Databases {
6866
6871
  if (typeof total !== 'undefined') {
6867
6872
  payload['total'] = total;
6868
6873
  }
6874
+ if (typeof ttl !== 'undefined') {
6875
+ payload['ttl'] = ttl;
6876
+ }
6869
6877
  const uri = new URL(this.client.config.endpoint + apiPath);
6870
6878
  const apiHeaders = {};
6871
6879
  return this.client.call('get', uri, apiHeaders, payload);
@@ -7765,7 +7773,7 @@ class Domains {
7765
7773
  else {
7766
7774
  params = {
7767
7775
  domain: paramsOrFirst,
7768
- teamId: rest[0],
7776
+ organizationId: rest[0],
7769
7777
  firstName: rest[1],
7770
7778
  lastName: rest[2],
7771
7779
  email: rest[3],
@@ -7778,7 +7786,7 @@ class Domains {
7778
7786
  };
7779
7787
  }
7780
7788
  const domain = params.domain;
7781
- const teamId = params.teamId;
7789
+ const organizationId = params.organizationId;
7782
7790
  const firstName = params.firstName;
7783
7791
  const lastName = params.lastName;
7784
7792
  const email = params.email;
@@ -7791,8 +7799,8 @@ class Domains {
7791
7799
  if (typeof domain === 'undefined') {
7792
7800
  throw new AppwriteException('Missing required parameter: "domain"');
7793
7801
  }
7794
- if (typeof teamId === 'undefined') {
7795
- throw new AppwriteException('Missing required parameter: "teamId"');
7802
+ if (typeof organizationId === 'undefined') {
7803
+ throw new AppwriteException('Missing required parameter: "organizationId"');
7796
7804
  }
7797
7805
  if (typeof firstName === 'undefined') {
7798
7806
  throw new AppwriteException('Missing required parameter: "firstName"');
@@ -7817,8 +7825,8 @@ class Domains {
7817
7825
  if (typeof domain !== 'undefined') {
7818
7826
  payload['domain'] = domain;
7819
7827
  }
7820
- if (typeof teamId !== 'undefined') {
7821
- payload['teamId'] = teamId;
7828
+ if (typeof organizationId !== 'undefined') {
7829
+ payload['organizationId'] = organizationId;
7822
7830
  }
7823
7831
  if (typeof firstName !== 'undefined') {
7824
7832
  payload['firstName'] = firstName;
@@ -7853,6 +7861,36 @@ class Domains {
7853
7861
  };
7854
7862
  return this.client.call('post', uri, apiHeaders, payload);
7855
7863
  }
7864
+ confirmPurchase(paramsOrFirst, ...rest) {
7865
+ let params;
7866
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7867
+ params = (paramsOrFirst || {});
7868
+ }
7869
+ else {
7870
+ params = {
7871
+ domainId: paramsOrFirst,
7872
+ organizationId: rest[0]
7873
+ };
7874
+ }
7875
+ const domainId = params.domainId;
7876
+ const organizationId = params.organizationId;
7877
+ if (typeof domainId === 'undefined') {
7878
+ throw new AppwriteException('Missing required parameter: "domainId"');
7879
+ }
7880
+ if (typeof organizationId === 'undefined') {
7881
+ throw new AppwriteException('Missing required parameter: "organizationId"');
7882
+ }
7883
+ const apiPath = '/domains/purchases/{domainId}/confirm'.replace('{domainId}', domainId);
7884
+ const payload = {};
7885
+ if (typeof organizationId !== 'undefined') {
7886
+ payload['organizationId'] = organizationId;
7887
+ }
7888
+ const uri = new URL(this.client.config.endpoint + apiPath);
7889
+ const apiHeaders = {
7890
+ 'content-type': 'application/json',
7891
+ };
7892
+ return this.client.call('post', uri, apiHeaders, payload);
7893
+ }
7856
7894
  listSuggestions(paramsOrFirst, ...rest) {
7857
7895
  let params;
7858
7896
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -7901,6 +7939,118 @@ class Domains {
7901
7939
  const apiHeaders = {};
7902
7940
  return this.client.call('get', uri, apiHeaders, payload);
7903
7941
  }
7942
+ createTransferIn(paramsOrFirst, ...rest) {
7943
+ let params;
7944
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7945
+ params = (paramsOrFirst || {});
7946
+ }
7947
+ else {
7948
+ params = {
7949
+ domain: paramsOrFirst,
7950
+ organizationId: rest[0],
7951
+ authCode: rest[1],
7952
+ paymentMethodId: rest[2]
7953
+ };
7954
+ }
7955
+ const domain = params.domain;
7956
+ const organizationId = params.organizationId;
7957
+ const authCode = params.authCode;
7958
+ const paymentMethodId = params.paymentMethodId;
7959
+ if (typeof domain === 'undefined') {
7960
+ throw new AppwriteException('Missing required parameter: "domain"');
7961
+ }
7962
+ if (typeof organizationId === 'undefined') {
7963
+ throw new AppwriteException('Missing required parameter: "organizationId"');
7964
+ }
7965
+ if (typeof authCode === 'undefined') {
7966
+ throw new AppwriteException('Missing required parameter: "authCode"');
7967
+ }
7968
+ if (typeof paymentMethodId === 'undefined') {
7969
+ throw new AppwriteException('Missing required parameter: "paymentMethodId"');
7970
+ }
7971
+ const apiPath = '/domains/transfers/in';
7972
+ const payload = {};
7973
+ if (typeof domain !== 'undefined') {
7974
+ payload['domain'] = domain;
7975
+ }
7976
+ if (typeof organizationId !== 'undefined') {
7977
+ payload['organizationId'] = organizationId;
7978
+ }
7979
+ if (typeof authCode !== 'undefined') {
7980
+ payload['authCode'] = authCode;
7981
+ }
7982
+ if (typeof paymentMethodId !== 'undefined') {
7983
+ payload['paymentMethodId'] = paymentMethodId;
7984
+ }
7985
+ const uri = new URL(this.client.config.endpoint + apiPath);
7986
+ const apiHeaders = {
7987
+ 'content-type': 'application/json',
7988
+ };
7989
+ return this.client.call('post', uri, apiHeaders, payload);
7990
+ }
7991
+ confirmTransferIn(paramsOrFirst, ...rest) {
7992
+ let params;
7993
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7994
+ params = (paramsOrFirst || {});
7995
+ }
7996
+ else {
7997
+ params = {
7998
+ domainId: paramsOrFirst,
7999
+ organizationId: rest[0]
8000
+ };
8001
+ }
8002
+ const domainId = params.domainId;
8003
+ const organizationId = params.organizationId;
8004
+ if (typeof domainId === 'undefined') {
8005
+ throw new AppwriteException('Missing required parameter: "domainId"');
8006
+ }
8007
+ if (typeof organizationId === 'undefined') {
8008
+ throw new AppwriteException('Missing required parameter: "organizationId"');
8009
+ }
8010
+ const apiPath = '/domains/transfers/in/{domainId}/confirm'.replace('{domainId}', domainId);
8011
+ const payload = {};
8012
+ if (typeof organizationId !== 'undefined') {
8013
+ payload['organizationId'] = organizationId;
8014
+ }
8015
+ const uri = new URL(this.client.config.endpoint + apiPath);
8016
+ const apiHeaders = {
8017
+ 'content-type': 'application/json',
8018
+ };
8019
+ return this.client.call('post', uri, apiHeaders, payload);
8020
+ }
8021
+ createTransferOut(paramsOrFirst, ...rest) {
8022
+ let params;
8023
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8024
+ params = (paramsOrFirst || {});
8025
+ }
8026
+ else {
8027
+ params = {
8028
+ domainId: paramsOrFirst,
8029
+ organizationId: rest[0]
8030
+ };
8031
+ }
8032
+ const domainId = params.domainId;
8033
+ const organizationId = params.organizationId;
8034
+ if (typeof domainId === 'undefined') {
8035
+ throw new AppwriteException('Missing required parameter: "domainId"');
8036
+ }
8037
+ if (typeof organizationId === 'undefined') {
8038
+ throw new AppwriteException('Missing required parameter: "organizationId"');
8039
+ }
8040
+ const apiPath = '/domains/transfers/out';
8041
+ const payload = {};
8042
+ if (typeof domainId !== 'undefined') {
8043
+ payload['domainId'] = domainId;
8044
+ }
8045
+ if (typeof organizationId !== 'undefined') {
8046
+ payload['organizationId'] = organizationId;
8047
+ }
8048
+ const uri = new URL(this.client.config.endpoint + apiPath);
8049
+ const apiHeaders = {
8050
+ 'content-type': 'application/json',
8051
+ };
8052
+ return this.client.call('post', uri, apiHeaders, payload);
8053
+ }
7904
8054
  get(paramsOrFirst) {
7905
8055
  let params;
7906
8056
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -9455,6 +9605,26 @@ class Domains {
9455
9605
  };
9456
9606
  return this.client.call('patch', uri, apiHeaders, payload);
9457
9607
  }
9608
+ getTransferStatus(paramsOrFirst) {
9609
+ let params;
9610
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9611
+ params = (paramsOrFirst || {});
9612
+ }
9613
+ else {
9614
+ params = {
9615
+ domainId: paramsOrFirst
9616
+ };
9617
+ }
9618
+ const domainId = params.domainId;
9619
+ if (typeof domainId === 'undefined') {
9620
+ throw new AppwriteException('Missing required parameter: "domainId"');
9621
+ }
9622
+ const apiPath = '/domains/{domainId}/transfers/status'.replace('{domainId}', domainId);
9623
+ const payload = {};
9624
+ const uri = new URL(this.client.config.endpoint + apiPath);
9625
+ const apiHeaders = {};
9626
+ return this.client.call('get', uri, apiHeaders, payload);
9627
+ }
9458
9628
  getZone(paramsOrFirst) {
9459
9629
  let params;
9460
9630
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -9565,7 +9735,9 @@ class Functions {
9565
9735
  providerBranch: rest[13],
9566
9736
  providerSilentMode: rest[14],
9567
9737
  providerRootDirectory: rest[15],
9568
- specification: rest[16]
9738
+ buildSpecification: rest[16],
9739
+ runtimeSpecification: rest[17],
9740
+ deploymentRetention: rest[18]
9569
9741
  };
9570
9742
  }
9571
9743
  const functionId = params.functionId;
@@ -9585,7 +9757,9 @@ class Functions {
9585
9757
  const providerBranch = params.providerBranch;
9586
9758
  const providerSilentMode = params.providerSilentMode;
9587
9759
  const providerRootDirectory = params.providerRootDirectory;
9588
- const specification = params.specification;
9760
+ const buildSpecification = params.buildSpecification;
9761
+ const runtimeSpecification = params.runtimeSpecification;
9762
+ const deploymentRetention = params.deploymentRetention;
9589
9763
  if (typeof functionId === 'undefined') {
9590
9764
  throw new AppwriteException('Missing required parameter: "functionId"');
9591
9765
  }
@@ -9648,8 +9822,14 @@ class Functions {
9648
9822
  if (typeof providerRootDirectory !== 'undefined') {
9649
9823
  payload['providerRootDirectory'] = providerRootDirectory;
9650
9824
  }
9651
- if (typeof specification !== 'undefined') {
9652
- payload['specification'] = specification;
9825
+ if (typeof buildSpecification !== 'undefined') {
9826
+ payload['buildSpecification'] = buildSpecification;
9827
+ }
9828
+ if (typeof runtimeSpecification !== 'undefined') {
9829
+ payload['runtimeSpecification'] = runtimeSpecification;
9830
+ }
9831
+ if (typeof deploymentRetention !== 'undefined') {
9832
+ payload['deploymentRetention'] = deploymentRetention;
9653
9833
  }
9654
9834
  const uri = new URL(this.client.config.endpoint + apiPath);
9655
9835
  const apiHeaders = {
@@ -9807,7 +9987,9 @@ class Functions {
9807
9987
  providerBranch: rest[13],
9808
9988
  providerSilentMode: rest[14],
9809
9989
  providerRootDirectory: rest[15],
9810
- specification: rest[16]
9990
+ buildSpecification: rest[16],
9991
+ runtimeSpecification: rest[17],
9992
+ deploymentRetention: rest[18]
9811
9993
  };
9812
9994
  }
9813
9995
  const functionId = params.functionId;
@@ -9827,7 +10009,9 @@ class Functions {
9827
10009
  const providerBranch = params.providerBranch;
9828
10010
  const providerSilentMode = params.providerSilentMode;
9829
10011
  const providerRootDirectory = params.providerRootDirectory;
9830
- const specification = params.specification;
10012
+ const buildSpecification = params.buildSpecification;
10013
+ const runtimeSpecification = params.runtimeSpecification;
10014
+ const deploymentRetention = params.deploymentRetention;
9831
10015
  if (typeof functionId === 'undefined') {
9832
10016
  throw new AppwriteException('Missing required parameter: "functionId"');
9833
10017
  }
@@ -9884,8 +10068,14 @@ class Functions {
9884
10068
  if (typeof providerRootDirectory !== 'undefined') {
9885
10069
  payload['providerRootDirectory'] = providerRootDirectory;
9886
10070
  }
9887
- if (typeof specification !== 'undefined') {
9888
- payload['specification'] = specification;
10071
+ if (typeof buildSpecification !== 'undefined') {
10072
+ payload['buildSpecification'] = buildSpecification;
10073
+ }
10074
+ if (typeof runtimeSpecification !== 'undefined') {
10075
+ payload['runtimeSpecification'] = runtimeSpecification;
10076
+ }
10077
+ if (typeof deploymentRetention !== 'undefined') {
10078
+ payload['deploymentRetention'] = deploymentRetention;
9889
10079
  }
9890
10080
  const uri = new URL(this.client.config.endpoint + apiPath);
9891
10081
  const apiHeaders = {
@@ -10730,6 +10920,31 @@ class Health {
10730
10920
  const apiHeaders = {};
10731
10921
  return this.client.call('get', uri, apiHeaders, payload);
10732
10922
  }
10923
+ getConsolePausing(paramsOrFirst, ...rest) {
10924
+ let params;
10925
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10926
+ params = (paramsOrFirst || {});
10927
+ }
10928
+ else {
10929
+ params = {
10930
+ threshold: paramsOrFirst,
10931
+ inactivityDays: rest[0]
10932
+ };
10933
+ }
10934
+ const threshold = params.threshold;
10935
+ const inactivityDays = params.inactivityDays;
10936
+ const apiPath = '/health/console-pausing';
10937
+ const payload = {};
10938
+ if (typeof threshold !== 'undefined') {
10939
+ payload['threshold'] = threshold;
10940
+ }
10941
+ if (typeof inactivityDays !== 'undefined') {
10942
+ payload['inactivityDays'] = inactivityDays;
10943
+ }
10944
+ const uri = new URL(this.client.config.endpoint + apiPath);
10945
+ const apiHeaders = {};
10946
+ return this.client.call('get', uri, apiHeaders, payload);
10947
+ }
10733
10948
  /**
10734
10949
  * Check the Appwrite database servers are up and connection is successful.
10735
10950
  *
@@ -16977,6 +17192,28 @@ class Projects {
16977
17192
  };
16978
17193
  return this.client.call('patch', uri, apiHeaders, payload);
16979
17194
  }
17195
+ updateConsoleAccess(paramsOrFirst) {
17196
+ let params;
17197
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17198
+ params = (paramsOrFirst || {});
17199
+ }
17200
+ else {
17201
+ params = {
17202
+ projectId: paramsOrFirst
17203
+ };
17204
+ }
17205
+ const projectId = params.projectId;
17206
+ if (typeof projectId === 'undefined') {
17207
+ throw new AppwriteException('Missing required parameter: "projectId"');
17208
+ }
17209
+ const apiPath = '/projects/{projectId}/console-access'.replace('{projectId}', projectId);
17210
+ const payload = {};
17211
+ const uri = new URL(this.client.config.endpoint + apiPath);
17212
+ const apiHeaders = {
17213
+ 'content-type': 'application/json',
17214
+ };
17215
+ return this.client.call('patch', uri, apiHeaders, payload);
17216
+ }
16980
17217
  listDevKeys(paramsOrFirst, ...rest) {
16981
17218
  let params;
16982
17219
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18080,6 +18317,36 @@ class Projects {
18080
18317
  };
18081
18318
  return this.client.call('post', uri, apiHeaders, payload);
18082
18319
  }
18320
+ updateStatus(paramsOrFirst, ...rest) {
18321
+ let params;
18322
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18323
+ params = (paramsOrFirst || {});
18324
+ }
18325
+ else {
18326
+ params = {
18327
+ projectId: paramsOrFirst,
18328
+ status: rest[0]
18329
+ };
18330
+ }
18331
+ const projectId = params.projectId;
18332
+ const status = params.status;
18333
+ if (typeof projectId === 'undefined') {
18334
+ throw new AppwriteException('Missing required parameter: "projectId"');
18335
+ }
18336
+ if (typeof status === 'undefined') {
18337
+ throw new AppwriteException('Missing required parameter: "status"');
18338
+ }
18339
+ const apiPath = '/projects/{projectId}/status'.replace('{projectId}', projectId);
18340
+ const payload = {};
18341
+ if (typeof status !== 'undefined') {
18342
+ payload['status'] = status;
18343
+ }
18344
+ const uri = new URL(this.client.config.endpoint + apiPath);
18345
+ const apiHeaders = {
18346
+ 'content-type': 'application/json',
18347
+ };
18348
+ return this.client.call('patch', uri, apiHeaders, payload);
18349
+ }
18083
18350
  updateTeam(paramsOrFirst, ...rest) {
18084
18351
  let params;
18085
18352
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18996,15 +19263,18 @@ class Sites {
18996
19263
  timeout: rest[5],
18997
19264
  installCommand: rest[6],
18998
19265
  buildCommand: rest[7],
18999
- outputDirectory: rest[8],
19000
- adapter: rest[9],
19001
- installationId: rest[10],
19002
- fallbackFile: rest[11],
19003
- providerRepositoryId: rest[12],
19004
- providerBranch: rest[13],
19005
- providerSilentMode: rest[14],
19006
- providerRootDirectory: rest[15],
19007
- specification: rest[16]
19266
+ startCommand: rest[8],
19267
+ outputDirectory: rest[9],
19268
+ adapter: rest[10],
19269
+ installationId: rest[11],
19270
+ fallbackFile: rest[12],
19271
+ providerRepositoryId: rest[13],
19272
+ providerBranch: rest[14],
19273
+ providerSilentMode: rest[15],
19274
+ providerRootDirectory: rest[16],
19275
+ buildSpecification: rest[17],
19276
+ runtimeSpecification: rest[18],
19277
+ deploymentRetention: rest[19]
19008
19278
  };
19009
19279
  }
19010
19280
  const siteId = params.siteId;
@@ -19016,6 +19286,7 @@ class Sites {
19016
19286
  const timeout = params.timeout;
19017
19287
  const installCommand = params.installCommand;
19018
19288
  const buildCommand = params.buildCommand;
19289
+ const startCommand = params.startCommand;
19019
19290
  const outputDirectory = params.outputDirectory;
19020
19291
  const adapter = params.adapter;
19021
19292
  const installationId = params.installationId;
@@ -19024,7 +19295,9 @@ class Sites {
19024
19295
  const providerBranch = params.providerBranch;
19025
19296
  const providerSilentMode = params.providerSilentMode;
19026
19297
  const providerRootDirectory = params.providerRootDirectory;
19027
- const specification = params.specification;
19298
+ const buildSpecification = params.buildSpecification;
19299
+ const runtimeSpecification = params.runtimeSpecification;
19300
+ const deploymentRetention = params.deploymentRetention;
19028
19301
  if (typeof siteId === 'undefined') {
19029
19302
  throw new AppwriteException('Missing required parameter: "siteId"');
19030
19303
  }
@@ -19063,6 +19336,9 @@ class Sites {
19063
19336
  if (typeof buildCommand !== 'undefined') {
19064
19337
  payload['buildCommand'] = buildCommand;
19065
19338
  }
19339
+ if (typeof startCommand !== 'undefined') {
19340
+ payload['startCommand'] = startCommand;
19341
+ }
19066
19342
  if (typeof outputDirectory !== 'undefined') {
19067
19343
  payload['outputDirectory'] = outputDirectory;
19068
19344
  }
@@ -19090,8 +19366,14 @@ class Sites {
19090
19366
  if (typeof providerRootDirectory !== 'undefined') {
19091
19367
  payload['providerRootDirectory'] = providerRootDirectory;
19092
19368
  }
19093
- if (typeof specification !== 'undefined') {
19094
- payload['specification'] = specification;
19369
+ if (typeof buildSpecification !== 'undefined') {
19370
+ payload['buildSpecification'] = buildSpecification;
19371
+ }
19372
+ if (typeof runtimeSpecification !== 'undefined') {
19373
+ payload['runtimeSpecification'] = runtimeSpecification;
19374
+ }
19375
+ if (typeof deploymentRetention !== 'undefined') {
19376
+ payload['deploymentRetention'] = deploymentRetention;
19095
19377
  }
19096
19378
  const uri = new URL(this.client.config.endpoint + apiPath);
19097
19379
  const apiHeaders = {
@@ -19235,16 +19517,19 @@ class Sites {
19235
19517
  timeout: rest[4],
19236
19518
  installCommand: rest[5],
19237
19519
  buildCommand: rest[6],
19238
- outputDirectory: rest[7],
19239
- buildRuntime: rest[8],
19240
- adapter: rest[9],
19241
- fallbackFile: rest[10],
19242
- installationId: rest[11],
19243
- providerRepositoryId: rest[12],
19244
- providerBranch: rest[13],
19245
- providerSilentMode: rest[14],
19246
- providerRootDirectory: rest[15],
19247
- specification: rest[16]
19520
+ startCommand: rest[7],
19521
+ outputDirectory: rest[8],
19522
+ buildRuntime: rest[9],
19523
+ adapter: rest[10],
19524
+ fallbackFile: rest[11],
19525
+ installationId: rest[12],
19526
+ providerRepositoryId: rest[13],
19527
+ providerBranch: rest[14],
19528
+ providerSilentMode: rest[15],
19529
+ providerRootDirectory: rest[16],
19530
+ buildSpecification: rest[17],
19531
+ runtimeSpecification: rest[18],
19532
+ deploymentRetention: rest[19]
19248
19533
  };
19249
19534
  }
19250
19535
  const siteId = params.siteId;
@@ -19255,6 +19540,7 @@ class Sites {
19255
19540
  const timeout = params.timeout;
19256
19541
  const installCommand = params.installCommand;
19257
19542
  const buildCommand = params.buildCommand;
19543
+ const startCommand = params.startCommand;
19258
19544
  const outputDirectory = params.outputDirectory;
19259
19545
  const buildRuntime = params.buildRuntime;
19260
19546
  const adapter = params.adapter;
@@ -19264,7 +19550,9 @@ class Sites {
19264
19550
  const providerBranch = params.providerBranch;
19265
19551
  const providerSilentMode = params.providerSilentMode;
19266
19552
  const providerRootDirectory = params.providerRootDirectory;
19267
- const specification = params.specification;
19553
+ const buildSpecification = params.buildSpecification;
19554
+ const runtimeSpecification = params.runtimeSpecification;
19555
+ const deploymentRetention = params.deploymentRetention;
19268
19556
  if (typeof siteId === 'undefined') {
19269
19557
  throw new AppwriteException('Missing required parameter: "siteId"');
19270
19558
  }
@@ -19297,6 +19585,9 @@ class Sites {
19297
19585
  if (typeof buildCommand !== 'undefined') {
19298
19586
  payload['buildCommand'] = buildCommand;
19299
19587
  }
19588
+ if (typeof startCommand !== 'undefined') {
19589
+ payload['startCommand'] = startCommand;
19590
+ }
19300
19591
  if (typeof outputDirectory !== 'undefined') {
19301
19592
  payload['outputDirectory'] = outputDirectory;
19302
19593
  }
@@ -19324,8 +19615,14 @@ class Sites {
19324
19615
  if (typeof providerRootDirectory !== 'undefined') {
19325
19616
  payload['providerRootDirectory'] = providerRootDirectory;
19326
19617
  }
19327
- if (typeof specification !== 'undefined') {
19328
- payload['specification'] = specification;
19618
+ if (typeof buildSpecification !== 'undefined') {
19619
+ payload['buildSpecification'] = buildSpecification;
19620
+ }
19621
+ if (typeof runtimeSpecification !== 'undefined') {
19622
+ payload['runtimeSpecification'] = runtimeSpecification;
19623
+ }
19624
+ if (typeof deploymentRetention !== 'undefined') {
19625
+ payload['deploymentRetention'] = deploymentRetention;
19329
19626
  }
19330
19627
  const uri = new URL(this.client.config.endpoint + apiPath);
19331
19628
  const apiHeaders = {
@@ -19431,28 +19728,25 @@ class Sites {
19431
19728
  params = {
19432
19729
  siteId: paramsOrFirst,
19433
19730
  code: rest[0],
19434
- activate: rest[1],
19435
- installCommand: rest[2],
19436
- buildCommand: rest[3],
19437
- outputDirectory: rest[4]
19731
+ installCommand: rest[1],
19732
+ buildCommand: rest[2],
19733
+ outputDirectory: rest[3],
19734
+ activate: rest[4]
19438
19735
  };
19439
19736
  onProgress = rest[5];
19440
19737
  }
19441
19738
  const siteId = params.siteId;
19442
19739
  const code = params.code;
19443
- const activate = params.activate;
19444
19740
  const installCommand = params.installCommand;
19445
19741
  const buildCommand = params.buildCommand;
19446
19742
  const outputDirectory = params.outputDirectory;
19743
+ const activate = params.activate;
19447
19744
  if (typeof siteId === 'undefined') {
19448
19745
  throw new AppwriteException('Missing required parameter: "siteId"');
19449
19746
  }
19450
19747
  if (typeof code === 'undefined') {
19451
19748
  throw new AppwriteException('Missing required parameter: "code"');
19452
19749
  }
19453
- if (typeof activate === 'undefined') {
19454
- throw new AppwriteException('Missing required parameter: "activate"');
19455
- }
19456
19750
  const apiPath = '/sites/{siteId}/deployments'.replace('{siteId}', siteId);
19457
19751
  const payload = {};
19458
19752
  if (typeof installCommand !== 'undefined') {
@@ -23283,7 +23577,8 @@ class TablesDB {
23283
23577
  tableId: rest[0],
23284
23578
  queries: rest[1],
23285
23579
  transactionId: rest[2],
23286
- total: rest[3]
23580
+ total: rest[3],
23581
+ ttl: rest[4]
23287
23582
  };
23288
23583
  }
23289
23584
  const databaseId = params.databaseId;
@@ -23291,6 +23586,7 @@ class TablesDB {
23291
23586
  const queries = params.queries;
23292
23587
  const transactionId = params.transactionId;
23293
23588
  const total = params.total;
23589
+ const ttl = params.ttl;
23294
23590
  if (typeof databaseId === 'undefined') {
23295
23591
  throw new AppwriteException('Missing required parameter: "databaseId"');
23296
23592
  }
@@ -23308,6 +23604,9 @@ class TablesDB {
23308
23604
  if (typeof total !== 'undefined') {
23309
23605
  payload['total'] = total;
23310
23606
  }
23607
+ if (typeof ttl !== 'undefined') {
23608
+ payload['ttl'] = ttl;
23609
+ }
23311
23610
  const uri = new URL(this.client.config.endpoint + apiPath);
23312
23611
  const apiHeaders = {};
23313
23612
  return this.client.call('get', uri, apiHeaders, payload);
@@ -26946,8 +27245,14 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
26946
27245
  };
26947
27246
 
26948
27247
  function normalize(id) {
26949
- const trimmed = id.trim();
26950
- return trimmed === "" ? "*" : trimmed;
27248
+ if (id === undefined || id === null) {
27249
+ throw new Error("Channel ID is required");
27250
+ }
27251
+ const trimmed = String(id).trim();
27252
+ if (trimmed === "") {
27253
+ throw new Error("Channel ID is required");
27254
+ }
27255
+ return trimmed;
26951
27256
  }
26952
27257
  class Channel {
26953
27258
  constructor(segments) {
@@ -26968,8 +27273,7 @@ class Channel {
26968
27273
  // --- DATABASE ROUTE ---
26969
27274
  // Only available on Channel<Database>
26970
27275
  collection(id) {
26971
- // Default: wildcard collection ID
26972
- return this.next("collections", id !== null && id !== void 0 ? id : "*");
27276
+ return this.next("collections", id);
26973
27277
  }
26974
27278
  // Only available on Channel<Collection>
26975
27279
  document(id) {
@@ -26978,8 +27282,7 @@ class Channel {
26978
27282
  }
26979
27283
  // --- TABLESDB ROUTE ---
26980
27284
  table(id) {
26981
- // Default: wildcard table ID
26982
- return this.next("tables", id !== null && id !== void 0 ? id : "*");
27285
+ return this.next("tables", id);
26983
27286
  }
26984
27287
  row(id) {
26985
27288
  // Default: no row ID segment
@@ -27005,25 +27308,25 @@ class Channel {
27005
27308
  return this.resolve("delete");
27006
27309
  }
27007
27310
  // --- ROOT FACTORIES ---
27008
- static database(id = "*") {
27311
+ static database(id) {
27009
27312
  return new Channel(["databases", normalize(id)]);
27010
27313
  }
27011
- static execution(id = "*") {
27314
+ static execution(id) {
27012
27315
  return new Channel(["executions", normalize(id)]);
27013
27316
  }
27014
- static tablesdb(id = "*") {
27317
+ static tablesdb(id) {
27015
27318
  return new Channel(["tablesdb", normalize(id)]);
27016
27319
  }
27017
- static bucket(id = "*") {
27320
+ static bucket(id) {
27018
27321
  return new Channel(["buckets", normalize(id)]);
27019
27322
  }
27020
- static function(id = "*") {
27323
+ static function(id) {
27021
27324
  return new Channel(["functions", normalize(id)]);
27022
27325
  }
27023
- static team(id = "*") {
27326
+ static team(id) {
27024
27327
  return new Channel(["teams", normalize(id)]);
27025
27328
  }
27026
- static membership(id = "*") {
27329
+ static membership(id) {
27027
27330
  return new Channel(["memberships", normalize(id)]);
27028
27331
  }
27029
27332
  static account() {
@@ -28244,6 +28547,9 @@ var Runtime;
28244
28547
  Runtime["Pythonml311"] = "python-ml-3.11";
28245
28548
  Runtime["Pythonml312"] = "python-ml-3.12";
28246
28549
  Runtime["Pythonml313"] = "python-ml-3.13";
28550
+ Runtime["Deno121"] = "deno-1.21";
28551
+ Runtime["Deno124"] = "deno-1.24";
28552
+ Runtime["Deno135"] = "deno-1.35";
28247
28553
  Runtime["Deno140"] = "deno-1.40";
28248
28554
  Runtime["Deno146"] = "deno-1.46";
28249
28555
  Runtime["Deno20"] = "deno-2.0";
@@ -28334,6 +28640,9 @@ var Runtimes;
28334
28640
  Runtimes["Pythonml311"] = "python-ml-3.11";
28335
28641
  Runtimes["Pythonml312"] = "python-ml-3.12";
28336
28642
  Runtimes["Pythonml313"] = "python-ml-3.13";
28643
+ Runtimes["Deno121"] = "deno-1.21";
28644
+ Runtimes["Deno124"] = "deno-1.24";
28645
+ Runtimes["Deno135"] = "deno-1.35";
28337
28646
  Runtimes["Deno140"] = "deno-1.40";
28338
28647
  Runtimes["Deno146"] = "deno-1.46";
28339
28648
  Runtimes["Deno20"] = "deno-2.0";
@@ -28465,20 +28774,76 @@ var SmtpEncryption;
28465
28774
  SmtpEncryption["Tls"] = "tls";
28466
28775
  })(SmtpEncryption || (SmtpEncryption = {}));
28467
28776
 
28468
- var Resources;
28469
- (function (Resources) {
28470
- Resources["User"] = "user";
28471
- Resources["Database"] = "database";
28472
- Resources["Table"] = "table";
28473
- Resources["Column"] = "column";
28474
- Resources["Index"] = "index";
28475
- Resources["Row"] = "row";
28476
- Resources["Document"] = "document";
28477
- Resources["Attribute"] = "attribute";
28478
- Resources["Collection"] = "collection";
28479
- Resources["Bucket"] = "bucket";
28480
- Resources["File"] = "file";
28481
- })(Resources || (Resources = {}));
28777
+ var AppwriteMigrationResource;
28778
+ (function (AppwriteMigrationResource) {
28779
+ AppwriteMigrationResource["User"] = "user";
28780
+ AppwriteMigrationResource["Team"] = "team";
28781
+ AppwriteMigrationResource["Membership"] = "membership";
28782
+ AppwriteMigrationResource["Database"] = "database";
28783
+ AppwriteMigrationResource["Table"] = "table";
28784
+ AppwriteMigrationResource["Column"] = "column";
28785
+ AppwriteMigrationResource["Index"] = "index";
28786
+ AppwriteMigrationResource["Row"] = "row";
28787
+ AppwriteMigrationResource["Document"] = "document";
28788
+ AppwriteMigrationResource["Attribute"] = "attribute";
28789
+ AppwriteMigrationResource["Collection"] = "collection";
28790
+ AppwriteMigrationResource["Bucket"] = "bucket";
28791
+ AppwriteMigrationResource["File"] = "file";
28792
+ AppwriteMigrationResource["Function"] = "function";
28793
+ AppwriteMigrationResource["Deployment"] = "deployment";
28794
+ AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
28795
+ AppwriteMigrationResource["Provider"] = "provider";
28796
+ AppwriteMigrationResource["Topic"] = "topic";
28797
+ AppwriteMigrationResource["Subscriber"] = "subscriber";
28798
+ AppwriteMigrationResource["Message"] = "message";
28799
+ AppwriteMigrationResource["Site"] = "site";
28800
+ AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
28801
+ AppwriteMigrationResource["Sitevariable"] = "site-variable";
28802
+ })(AppwriteMigrationResource || (AppwriteMigrationResource = {}));
28803
+
28804
+ var FirebaseMigrationResource;
28805
+ (function (FirebaseMigrationResource) {
28806
+ FirebaseMigrationResource["User"] = "user";
28807
+ FirebaseMigrationResource["Database"] = "database";
28808
+ FirebaseMigrationResource["Table"] = "table";
28809
+ FirebaseMigrationResource["Column"] = "column";
28810
+ FirebaseMigrationResource["Row"] = "row";
28811
+ FirebaseMigrationResource["Document"] = "document";
28812
+ FirebaseMigrationResource["Attribute"] = "attribute";
28813
+ FirebaseMigrationResource["Collection"] = "collection";
28814
+ FirebaseMigrationResource["Bucket"] = "bucket";
28815
+ FirebaseMigrationResource["File"] = "file";
28816
+ })(FirebaseMigrationResource || (FirebaseMigrationResource = {}));
28817
+
28818
+ var NHostMigrationResource;
28819
+ (function (NHostMigrationResource) {
28820
+ NHostMigrationResource["User"] = "user";
28821
+ NHostMigrationResource["Database"] = "database";
28822
+ NHostMigrationResource["Table"] = "table";
28823
+ NHostMigrationResource["Column"] = "column";
28824
+ NHostMigrationResource["Index"] = "index";
28825
+ NHostMigrationResource["Row"] = "row";
28826
+ NHostMigrationResource["Document"] = "document";
28827
+ NHostMigrationResource["Attribute"] = "attribute";
28828
+ NHostMigrationResource["Collection"] = "collection";
28829
+ NHostMigrationResource["Bucket"] = "bucket";
28830
+ NHostMigrationResource["File"] = "file";
28831
+ })(NHostMigrationResource || (NHostMigrationResource = {}));
28832
+
28833
+ var SupabaseMigrationResource;
28834
+ (function (SupabaseMigrationResource) {
28835
+ SupabaseMigrationResource["User"] = "user";
28836
+ SupabaseMigrationResource["Database"] = "database";
28837
+ SupabaseMigrationResource["Table"] = "table";
28838
+ SupabaseMigrationResource["Column"] = "column";
28839
+ SupabaseMigrationResource["Index"] = "index";
28840
+ SupabaseMigrationResource["Row"] = "row";
28841
+ SupabaseMigrationResource["Document"] = "document";
28842
+ SupabaseMigrationResource["Attribute"] = "attribute";
28843
+ SupabaseMigrationResource["Collection"] = "collection";
28844
+ SupabaseMigrationResource["Bucket"] = "bucket";
28845
+ SupabaseMigrationResource["File"] = "file";
28846
+ })(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
28482
28847
 
28483
28848
  var ProjectUsageRange;
28484
28849
  (function (ProjectUsageRange) {
@@ -28564,6 +28929,11 @@ var SMTPSecure;
28564
28929
  SMTPSecure["Ssl"] = "ssl";
28565
28930
  })(SMTPSecure || (SMTPSecure = {}));
28566
28931
 
28932
+ var Status;
28933
+ (function (Status) {
28934
+ Status["Active"] = "active";
28935
+ })(Status || (Status = {}));
28936
+
28567
28937
  var EmailTemplateType;
28568
28938
  (function (EmailTemplateType) {
28569
28939
  EmailTemplateType["Verification"] = "verification";
@@ -28919,6 +29289,9 @@ var BuildRuntime;
28919
29289
  BuildRuntime["Pythonml311"] = "python-ml-3.11";
28920
29290
  BuildRuntime["Pythonml312"] = "python-ml-3.12";
28921
29291
  BuildRuntime["Pythonml313"] = "python-ml-3.13";
29292
+ BuildRuntime["Deno121"] = "deno-1.21";
29293
+ BuildRuntime["Deno124"] = "deno-1.24";
29294
+ BuildRuntime["Deno135"] = "deno-1.35";
28922
29295
  BuildRuntime["Deno140"] = "deno-1.40";
28923
29296
  BuildRuntime["Deno146"] = "deno-1.46";
28924
29297
  BuildRuntime["Deno20"] = "deno-2.0";
@@ -29151,5 +29524,29 @@ var BillingPlanGroup;
29151
29524
  BillingPlanGroup["Scale"] = "scale";
29152
29525
  })(BillingPlanGroup || (BillingPlanGroup = {}));
29153
29526
 
29154
- 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 };
29527
+ var DomainPurchasePaymentStatus;
29528
+ (function (DomainPurchasePaymentStatus) {
29529
+ DomainPurchasePaymentStatus["Pending"] = "pending";
29530
+ DomainPurchasePaymentStatus["PendingConfirmation"] = "pending_confirmation";
29531
+ DomainPurchasePaymentStatus["PendingPaymentProcessing"] = "pending_payment_processing";
29532
+ DomainPurchasePaymentStatus["Authorized"] = "authorized";
29533
+ DomainPurchasePaymentStatus["Captured"] = "captured";
29534
+ DomainPurchasePaymentStatus["Failed"] = "failed";
29535
+ DomainPurchasePaymentStatus["CaptureFailed"] = "capture_failed";
29536
+ DomainPurchasePaymentStatus["RenewalCaptureFailed"] = "renewal_capture_failed";
29537
+ })(DomainPurchasePaymentStatus || (DomainPurchasePaymentStatus = {}));
29538
+
29539
+ var DomainTransferStatusStatus;
29540
+ (function (DomainTransferStatusStatus) {
29541
+ DomainTransferStatusStatus["Transferrable"] = "transferrable";
29542
+ DomainTransferStatusStatus["NotTransferrable"] = "not_transferrable";
29543
+ DomainTransferStatusStatus["PendingOwner"] = "pending_owner";
29544
+ DomainTransferStatusStatus["PendingAdmin"] = "pending_admin";
29545
+ DomainTransferStatusStatus["PendingRegistry"] = "pending_registry";
29546
+ DomainTransferStatusStatus["Completed"] = "completed";
29547
+ DomainTransferStatusStatus["Cancelled"] = "cancelled";
29548
+ DomainTransferStatusStatus["ServiceUnavailable"] = "service_unavailable";
29549
+ })(DomainTransferStatusStatus || (DomainTransferStatusStatus = {}));
29550
+
29551
+ export { Account, Activities, Adapter, Api, ApiService, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, DomainPurchasePaymentStatus, DomainTransferStatusStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
29155
29552
  //# sourceMappingURL=sdk.js.map