@appwrite.io/console 2.1.3 → 2.2.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 (132) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +1564 -187
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1565 -188
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +1564 -187
  8. package/docs/examples/account/create-key.md +15 -0
  9. package/docs/examples/account/delete-key.md +13 -0
  10. package/docs/examples/account/get-key.md +13 -0
  11. package/docs/examples/account/list-keys.md +13 -0
  12. package/docs/examples/account/update-key.md +16 -0
  13. package/docs/examples/avatars/get-screenshot.md +5 -5
  14. package/docs/examples/backups/create-archive.md +2 -2
  15. package/docs/examples/backups/create-policy.md +2 -2
  16. package/docs/examples/backups/create-restoration.md +2 -2
  17. package/docs/examples/console/{get-regions.md → list-regions.md} +1 -3
  18. package/docs/examples/databases/create-index.md +2 -2
  19. package/docs/examples/databases/create-longtext-attribute.md +18 -0
  20. package/docs/examples/databases/create-mediumtext-attribute.md +18 -0
  21. package/docs/examples/databases/create-text-attribute.md +18 -0
  22. package/docs/examples/databases/create-varchar-attribute.md +19 -0
  23. package/docs/examples/databases/update-collection.md +1 -1
  24. package/docs/examples/databases/update-longtext-attribute.md +18 -0
  25. package/docs/examples/databases/update-mediumtext-attribute.md +18 -0
  26. package/docs/examples/databases/update-text-attribute.md +18 -0
  27. package/docs/examples/databases/update-varchar-attribute.md +19 -0
  28. package/docs/examples/databases/update.md +1 -1
  29. package/docs/examples/functions/create.md +2 -2
  30. package/docs/examples/functions/list-templates.md +3 -3
  31. package/docs/examples/functions/update.md +2 -2
  32. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  33. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  34. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  35. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  36. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  37. package/docs/examples/migrations/get-firebase-report.md +2 -2
  38. package/docs/examples/migrations/get-n-host-report.md +2 -2
  39. package/docs/examples/migrations/get-supabase-report.md +2 -2
  40. package/docs/examples/organizations/create-key.md +16 -0
  41. package/docs/examples/organizations/create.md +2 -2
  42. package/docs/examples/organizations/delete-key.md +14 -0
  43. package/docs/examples/organizations/estimation-create-organization.md +2 -2
  44. package/docs/examples/organizations/estimation-update-plan.md +2 -2
  45. package/docs/examples/organizations/get-key.md +14 -0
  46. package/docs/examples/organizations/list-keys.md +14 -0
  47. package/docs/examples/organizations/list-regions.md +13 -0
  48. package/docs/examples/organizations/update-key.md +17 -0
  49. package/docs/examples/organizations/update-plan.md +2 -2
  50. package/docs/examples/projects/create-jwt.md +2 -2
  51. package/docs/examples/projects/create-key.md +2 -2
  52. package/docs/examples/projects/update-key.md +2 -2
  53. package/docs/examples/sites/list-templates.md +3 -3
  54. package/docs/examples/tablesdb/create-index.md +2 -2
  55. package/docs/examples/tablesdb/create-longtext-column.md +18 -0
  56. package/docs/examples/tablesdb/create-mediumtext-column.md +18 -0
  57. package/docs/examples/tablesdb/create-text-column.md +18 -0
  58. package/docs/examples/tablesdb/create-varchar-column.md +19 -0
  59. package/docs/examples/tablesdb/update-longtext-column.md +18 -0
  60. package/docs/examples/tablesdb/update-mediumtext-column.md +18 -0
  61. package/docs/examples/tablesdb/update-table.md +1 -1
  62. package/docs/examples/tablesdb/update-text-column.md +18 -0
  63. package/docs/examples/tablesdb/update-varchar-column.md +19 -0
  64. package/docs/examples/tablesdb/update.md +1 -1
  65. package/docs/examples/teams/create-membership.md +2 -2
  66. package/docs/examples/teams/update-membership.md +2 -2
  67. package/package.json +1 -1
  68. package/src/channel.ts +8 -4
  69. package/src/client.ts +3 -28
  70. package/src/enums/browser-permission.ts +22 -0
  71. package/src/enums/deployment-status.ts +1 -0
  72. package/src/enums/frameworks.ts +17 -0
  73. package/src/enums/order-by.ts +4 -0
  74. package/src/enums/resources.ts +13 -0
  75. package/src/enums/roles.ts +7 -0
  76. package/src/enums/runtimes.ts +66 -0
  77. package/src/enums/scopes.ts +65 -0
  78. package/src/enums/services.ts +5 -0
  79. package/src/enums/use-cases.ts +11 -0
  80. package/src/index.ts +9 -1
  81. package/src/models.ts +349 -1
  82. package/src/services/account.ts +364 -56
  83. package/src/services/assistant.ts +1 -1
  84. package/src/services/avatars.ts +17 -16
  85. package/src/services/backups.ts +37 -36
  86. package/src/services/console.ts +11 -42
  87. package/src/services/databases.ts +1060 -280
  88. package/src/services/domains.ts +44 -44
  89. package/src/services/functions.ts +60 -57
  90. package/src/services/graphql.ts +2 -2
  91. package/src/services/health.ts +22 -20
  92. package/src/services/messaging.ts +56 -56
  93. package/src/services/migrations.ts +79 -78
  94. package/src/services/organizations.ts +466 -70
  95. package/src/services/project.ts +5 -5
  96. package/src/services/projects.ts +86 -85
  97. package/src/services/proxy.ts +8 -8
  98. package/src/services/sites.ts +42 -40
  99. package/src/services/storage.ts +16 -16
  100. package/src/services/tables-db.ts +1050 -268
  101. package/src/services/teams.ts +31 -30
  102. package/src/services/tokens.ts +5 -5
  103. package/src/services/users.ts +49 -49
  104. package/src/services/vcs.ts +10 -10
  105. package/types/channel.d.ts +5 -4
  106. package/types/enums/browser-permission.d.ts +22 -0
  107. package/types/enums/deployment-status.d.ts +1 -0
  108. package/types/enums/frameworks.d.ts +17 -0
  109. package/types/enums/order-by.d.ts +4 -0
  110. package/types/enums/resources.d.ts +13 -0
  111. package/types/enums/roles.d.ts +7 -0
  112. package/types/enums/runtimes.d.ts +66 -0
  113. package/types/enums/scopes.d.ts +65 -0
  114. package/types/enums/services.d.ts +5 -0
  115. package/types/enums/use-cases.d.ts +11 -0
  116. package/types/index.d.ts +9 -1
  117. package/types/models.d.ts +341 -1
  118. package/types/services/account.d.ts +111 -0
  119. package/types/services/avatars.d.ts +5 -4
  120. package/types/services/backups.d.ts +13 -12
  121. package/types/services/console.d.ts +1 -13
  122. package/types/services/databases.d.ts +303 -8
  123. package/types/services/functions.d.ts +18 -15
  124. package/types/services/health.d.ts +2 -0
  125. package/types/services/migrations.d.ts +33 -32
  126. package/types/services/organizations.d.ts +161 -17
  127. package/types/services/projects.d.ts +13 -12
  128. package/types/services/sites.d.ts +9 -7
  129. package/types/services/tables-db.d.ts +305 -8
  130. package/types/services/teams.d.ts +9 -8
  131. package/src/enums/billing-plan.ts +0 -17
  132. package/types/enums/billing-plan.d.ts +0 -17
package/dist/esm/sdk.js CHANGED
@@ -465,20 +465,9 @@ Query.notTouches = (attribute, values) => new Query("notTouches", attribute, [va
465
465
 
466
466
  const JSONbigParser = JSONbigModule({ storeAsString: false });
467
467
  const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
468
- /**
469
- * Converts BigNumber objects from json-bigint to native types.
470
- * - Integer BigNumbers → BigInt (if unsafe) or number (if safe)
471
- * - Float BigNumbers → number
472
- * - Strings remain strings (never converted to BigNumber by json-bigint)
473
- */
474
468
  const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
475
469
  const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
476
- function convertBigNumbers(value) {
477
- if (value === null || value === undefined)
478
- return value;
479
- if (Array.isArray(value)) {
480
- return value.map(convertBigNumbers);
481
- }
470
+ function reviver(_key, value) {
482
471
  if (BigNumber.isBigNumber(value)) {
483
472
  if (value.isInteger()) {
484
473
  const str = value.toFixed();
@@ -488,20 +477,12 @@ function convertBigNumbers(value) {
488
477
  }
489
478
  return bi;
490
479
  }
491
- // float
492
480
  return value.toNumber();
493
481
  }
494
- if (typeof value === 'object') {
495
- const result = {};
496
- for (const [k, v] of Object.entries(value)) {
497
- result[k] = convertBigNumbers(v);
498
- }
499
- return result;
500
- }
501
482
  return value;
502
483
  }
503
484
  const JSONbig = {
504
- parse: (text) => convertBigNumbers(JSONbigParser.parse(text)),
485
+ parse: (text) => JSONbigParser.parse(text, reviver),
505
486
  stringify: JSONbigSerializer.stringify
506
487
  };
507
488
  /**
@@ -553,7 +534,7 @@ class Client {
553
534
  'x-sdk-name': 'Console',
554
535
  'x-sdk-platform': 'console',
555
536
  'x-sdk-language': 'web',
556
- 'x-sdk-version': '2.1.3',
537
+ 'x-sdk-version': '2.2.0',
557
538
  'X-Appwrite-Response-Format': '1.8.0',
558
539
  };
559
540
  this.realtime = {
@@ -1484,6 +1465,149 @@ class Account {
1484
1465
  };
1485
1466
  return this.client.call('post', uri, apiHeaders, payload);
1486
1467
  }
1468
+ listKeys(paramsOrFirst) {
1469
+ let params;
1470
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1471
+ params = (paramsOrFirst || {});
1472
+ }
1473
+ else {
1474
+ params = {
1475
+ total: paramsOrFirst
1476
+ };
1477
+ }
1478
+ const total = params.total;
1479
+ const apiPath = '/account/keys';
1480
+ const payload = {};
1481
+ if (typeof total !== 'undefined') {
1482
+ payload['total'] = total;
1483
+ }
1484
+ const uri = new URL(this.client.config.endpoint + apiPath);
1485
+ const apiHeaders = {};
1486
+ return this.client.call('get', uri, apiHeaders, payload);
1487
+ }
1488
+ createKey(paramsOrFirst, ...rest) {
1489
+ let params;
1490
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1491
+ params = (paramsOrFirst || {});
1492
+ }
1493
+ else {
1494
+ params = {
1495
+ name: paramsOrFirst,
1496
+ scopes: rest[0],
1497
+ expire: rest[1]
1498
+ };
1499
+ }
1500
+ const name = params.name;
1501
+ const scopes = params.scopes;
1502
+ const expire = params.expire;
1503
+ if (typeof name === 'undefined') {
1504
+ throw new AppwriteException('Missing required parameter: "name"');
1505
+ }
1506
+ if (typeof scopes === 'undefined') {
1507
+ throw new AppwriteException('Missing required parameter: "scopes"');
1508
+ }
1509
+ const apiPath = '/account/keys';
1510
+ const payload = {};
1511
+ if (typeof name !== 'undefined') {
1512
+ payload['name'] = name;
1513
+ }
1514
+ if (typeof scopes !== 'undefined') {
1515
+ payload['scopes'] = scopes;
1516
+ }
1517
+ if (typeof expire !== 'undefined') {
1518
+ payload['expire'] = expire;
1519
+ }
1520
+ const uri = new URL(this.client.config.endpoint + apiPath);
1521
+ const apiHeaders = {
1522
+ 'content-type': 'application/json',
1523
+ };
1524
+ return this.client.call('post', uri, apiHeaders, payload);
1525
+ }
1526
+ getKey(paramsOrFirst) {
1527
+ let params;
1528
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1529
+ params = (paramsOrFirst || {});
1530
+ }
1531
+ else {
1532
+ params = {
1533
+ keyId: paramsOrFirst
1534
+ };
1535
+ }
1536
+ const keyId = params.keyId;
1537
+ if (typeof keyId === 'undefined') {
1538
+ throw new AppwriteException('Missing required parameter: "keyId"');
1539
+ }
1540
+ const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
1541
+ const payload = {};
1542
+ const uri = new URL(this.client.config.endpoint + apiPath);
1543
+ const apiHeaders = {};
1544
+ return this.client.call('get', uri, apiHeaders, payload);
1545
+ }
1546
+ updateKey(paramsOrFirst, ...rest) {
1547
+ let params;
1548
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1549
+ params = (paramsOrFirst || {});
1550
+ }
1551
+ else {
1552
+ params = {
1553
+ keyId: paramsOrFirst,
1554
+ name: rest[0],
1555
+ scopes: rest[1],
1556
+ expire: rest[2]
1557
+ };
1558
+ }
1559
+ const keyId = params.keyId;
1560
+ const name = params.name;
1561
+ const scopes = params.scopes;
1562
+ const expire = params.expire;
1563
+ if (typeof keyId === 'undefined') {
1564
+ throw new AppwriteException('Missing required parameter: "keyId"');
1565
+ }
1566
+ if (typeof name === 'undefined') {
1567
+ throw new AppwriteException('Missing required parameter: "name"');
1568
+ }
1569
+ if (typeof scopes === 'undefined') {
1570
+ throw new AppwriteException('Missing required parameter: "scopes"');
1571
+ }
1572
+ const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
1573
+ const payload = {};
1574
+ if (typeof name !== 'undefined') {
1575
+ payload['name'] = name;
1576
+ }
1577
+ if (typeof scopes !== 'undefined') {
1578
+ payload['scopes'] = scopes;
1579
+ }
1580
+ if (typeof expire !== 'undefined') {
1581
+ payload['expire'] = expire;
1582
+ }
1583
+ const uri = new URL(this.client.config.endpoint + apiPath);
1584
+ const apiHeaders = {
1585
+ 'content-type': 'application/json',
1586
+ };
1587
+ return this.client.call('put', uri, apiHeaders, payload);
1588
+ }
1589
+ deleteKey(paramsOrFirst) {
1590
+ let params;
1591
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1592
+ params = (paramsOrFirst || {});
1593
+ }
1594
+ else {
1595
+ params = {
1596
+ keyId: paramsOrFirst
1597
+ };
1598
+ }
1599
+ const keyId = params.keyId;
1600
+ if (typeof keyId === 'undefined') {
1601
+ throw new AppwriteException('Missing required parameter: "keyId"');
1602
+ }
1603
+ const apiPath = '/account/keys/{keyId}'.replace('{keyId}', keyId);
1604
+ const payload = {};
1605
+ const uri = new URL(this.client.config.endpoint + apiPath);
1606
+ const apiHeaders = {
1607
+ 'content-type': 'application/json',
1608
+ };
1609
+ return this.client.call('delete', uri, apiHeaders, payload);
1610
+ }
1487
1611
  listLogs(paramsOrFirst, ...rest) {
1488
1612
  let params;
1489
1613
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -3419,7 +3543,7 @@ class Backups {
3419
3543
  }
3420
3544
  createArchive(paramsOrFirst, ...rest) {
3421
3545
  let params;
3422
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3546
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'services' in paramsOrFirst)) {
3423
3547
  params = (paramsOrFirst || {});
3424
3548
  }
3425
3549
  else {
@@ -3899,25 +4023,15 @@ class Console {
3899
4023
  };
3900
4024
  return this.client.call('post', uri, apiHeaders, payload);
3901
4025
  }
3902
- getRegions(paramsOrFirst) {
3903
- let params;
3904
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3905
- params = (paramsOrFirst || {});
3906
- }
3907
- else {
3908
- params = {
3909
- organizationId: paramsOrFirst
3910
- };
3911
- }
3912
- const organizationId = params.organizationId;
3913
- if (typeof organizationId === 'undefined') {
3914
- throw new AppwriteException('Missing required parameter: "organizationId"');
3915
- }
4026
+ /**
4027
+ * Get all available regions for the console.
4028
+ *
4029
+ * @throws {AppwriteException}
4030
+ * @returns {Promise<Models.ConsoleRegionList>}
4031
+ */
4032
+ listRegions() {
3916
4033
  const apiPath = '/console/regions';
3917
4034
  const payload = {};
3918
- if (typeof organizationId !== 'undefined') {
3919
- payload['organizationId'] = organizationId;
3920
- }
3921
4035
  const uri = new URL(this.client.config.endpoint + apiPath);
3922
4036
  const apiHeaders = {};
3923
4037
  return this.client.call('get', uri, apiHeaders, payload);
@@ -4370,9 +4484,6 @@ class Databases {
4370
4484
  if (typeof databaseId === 'undefined') {
4371
4485
  throw new AppwriteException('Missing required parameter: "databaseId"');
4372
4486
  }
4373
- if (typeof name === 'undefined') {
4374
- throw new AppwriteException('Missing required parameter: "name"');
4375
- }
4376
4487
  const apiPath = '/databases/{databaseId}'.replace('{databaseId}', databaseId);
4377
4488
  const payload = {};
4378
4489
  if (typeof name !== 'undefined') {
@@ -4559,9 +4670,6 @@ class Databases {
4559
4670
  if (typeof collectionId === 'undefined') {
4560
4671
  throw new AppwriteException('Missing required parameter: "collectionId"');
4561
4672
  }
4562
- if (typeof name === 'undefined') {
4563
- throw new AppwriteException('Missing required parameter: "name"');
4564
- }
4565
4673
  const apiPath = '/databases/{databaseId}/collections/{collectionId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
4566
4674
  const payload = {};
4567
4675
  if (typeof name !== 'undefined') {
@@ -5540,7 +5648,7 @@ class Databases {
5540
5648
  };
5541
5649
  return this.client.call('patch', uri, apiHeaders, payload);
5542
5650
  }
5543
- createPointAttribute(paramsOrFirst, ...rest) {
5651
+ createLongtextAttribute(paramsOrFirst, ...rest) {
5544
5652
  let params;
5545
5653
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5546
5654
  params = (paramsOrFirst || {});
@@ -5551,7 +5659,8 @@ class Databases {
5551
5659
  collectionId: rest[0],
5552
5660
  key: rest[1],
5553
5661
  required: rest[2],
5554
- xdefault: rest[3]
5662
+ xdefault: rest[3],
5663
+ array: rest[4]
5555
5664
  };
5556
5665
  }
5557
5666
  const databaseId = params.databaseId;
@@ -5559,6 +5668,7 @@ class Databases {
5559
5668
  const key = params.key;
5560
5669
  const required = params.required;
5561
5670
  const xdefault = params.xdefault;
5671
+ const array = params.array;
5562
5672
  if (typeof databaseId === 'undefined') {
5563
5673
  throw new AppwriteException('Missing required parameter: "databaseId"');
5564
5674
  }
@@ -5571,7 +5681,7 @@ class Databases {
5571
5681
  if (typeof required === 'undefined') {
5572
5682
  throw new AppwriteException('Missing required parameter: "required"');
5573
5683
  }
5574
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5684
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5575
5685
  const payload = {};
5576
5686
  if (typeof key !== 'undefined') {
5577
5687
  payload['key'] = key;
@@ -5582,13 +5692,16 @@ class Databases {
5582
5692
  if (typeof xdefault !== 'undefined') {
5583
5693
  payload['default'] = xdefault;
5584
5694
  }
5695
+ if (typeof array !== 'undefined') {
5696
+ payload['array'] = array;
5697
+ }
5585
5698
  const uri = new URL(this.client.config.endpoint + apiPath);
5586
5699
  const apiHeaders = {
5587
5700
  'content-type': 'application/json',
5588
5701
  };
5589
5702
  return this.client.call('post', uri, apiHeaders, payload);
5590
5703
  }
5591
- updatePointAttribute(paramsOrFirst, ...rest) {
5704
+ updateLongtextAttribute(paramsOrFirst, ...rest) {
5592
5705
  let params;
5593
5706
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5594
5707
  params = (paramsOrFirst || {});
@@ -5621,7 +5734,10 @@ class Databases {
5621
5734
  if (typeof required === 'undefined') {
5622
5735
  throw new AppwriteException('Missing required parameter: "required"');
5623
5736
  }
5624
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5737
+ if (typeof xdefault === 'undefined') {
5738
+ throw new AppwriteException('Missing required parameter: "xdefault"');
5739
+ }
5740
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/longtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5625
5741
  const payload = {};
5626
5742
  if (typeof required !== 'undefined') {
5627
5743
  payload['required'] = required;
@@ -5638,7 +5754,7 @@ class Databases {
5638
5754
  };
5639
5755
  return this.client.call('patch', uri, apiHeaders, payload);
5640
5756
  }
5641
- createPolygonAttribute(paramsOrFirst, ...rest) {
5757
+ createMediumtextAttribute(paramsOrFirst, ...rest) {
5642
5758
  let params;
5643
5759
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5644
5760
  params = (paramsOrFirst || {});
@@ -5649,7 +5765,8 @@ class Databases {
5649
5765
  collectionId: rest[0],
5650
5766
  key: rest[1],
5651
5767
  required: rest[2],
5652
- xdefault: rest[3]
5768
+ xdefault: rest[3],
5769
+ array: rest[4]
5653
5770
  };
5654
5771
  }
5655
5772
  const databaseId = params.databaseId;
@@ -5657,6 +5774,7 @@ class Databases {
5657
5774
  const key = params.key;
5658
5775
  const required = params.required;
5659
5776
  const xdefault = params.xdefault;
5777
+ const array = params.array;
5660
5778
  if (typeof databaseId === 'undefined') {
5661
5779
  throw new AppwriteException('Missing required parameter: "databaseId"');
5662
5780
  }
@@ -5669,7 +5787,7 @@ class Databases {
5669
5787
  if (typeof required === 'undefined') {
5670
5788
  throw new AppwriteException('Missing required parameter: "required"');
5671
5789
  }
5672
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5790
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5673
5791
  const payload = {};
5674
5792
  if (typeof key !== 'undefined') {
5675
5793
  payload['key'] = key;
@@ -5680,13 +5798,16 @@ class Databases {
5680
5798
  if (typeof xdefault !== 'undefined') {
5681
5799
  payload['default'] = xdefault;
5682
5800
  }
5801
+ if (typeof array !== 'undefined') {
5802
+ payload['array'] = array;
5803
+ }
5683
5804
  const uri = new URL(this.client.config.endpoint + apiPath);
5684
5805
  const apiHeaders = {
5685
5806
  'content-type': 'application/json',
5686
5807
  };
5687
5808
  return this.client.call('post', uri, apiHeaders, payload);
5688
5809
  }
5689
- updatePolygonAttribute(paramsOrFirst, ...rest) {
5810
+ updateMediumtextAttribute(paramsOrFirst, ...rest) {
5690
5811
  let params;
5691
5812
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5692
5813
  params = (paramsOrFirst || {});
@@ -5719,7 +5840,10 @@ class Databases {
5719
5840
  if (typeof required === 'undefined') {
5720
5841
  throw new AppwriteException('Missing required parameter: "required"');
5721
5842
  }
5722
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5843
+ if (typeof xdefault === 'undefined') {
5844
+ throw new AppwriteException('Missing required parameter: "xdefault"');
5845
+ }
5846
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5723
5847
  const payload = {};
5724
5848
  if (typeof required !== 'undefined') {
5725
5849
  payload['required'] = required;
@@ -5736,7 +5860,7 @@ class Databases {
5736
5860
  };
5737
5861
  return this.client.call('patch', uri, apiHeaders, payload);
5738
5862
  }
5739
- createRelationshipAttribute(paramsOrFirst, ...rest) {
5863
+ createPointAttribute(paramsOrFirst, ...rest) {
5740
5864
  let params;
5741
5865
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5742
5866
  params = (paramsOrFirst || {});
@@ -5745,61 +5869,487 @@ class Databases {
5745
5869
  params = {
5746
5870
  databaseId: paramsOrFirst,
5747
5871
  collectionId: rest[0],
5748
- relatedCollectionId: rest[1],
5749
- type: rest[2],
5750
- twoWay: rest[3],
5751
- key: rest[4],
5752
- twoWayKey: rest[5],
5753
- onDelete: rest[6]
5872
+ key: rest[1],
5873
+ required: rest[2],
5874
+ xdefault: rest[3]
5754
5875
  };
5755
5876
  }
5756
5877
  const databaseId = params.databaseId;
5757
5878
  const collectionId = params.collectionId;
5758
- const relatedCollectionId = params.relatedCollectionId;
5759
- const type = params.type;
5760
- const twoWay = params.twoWay;
5761
5879
  const key = params.key;
5762
- const twoWayKey = params.twoWayKey;
5763
- const onDelete = params.onDelete;
5880
+ const required = params.required;
5881
+ const xdefault = params.xdefault;
5764
5882
  if (typeof databaseId === 'undefined') {
5765
5883
  throw new AppwriteException('Missing required parameter: "databaseId"');
5766
5884
  }
5767
5885
  if (typeof collectionId === 'undefined') {
5768
5886
  throw new AppwriteException('Missing required parameter: "collectionId"');
5769
5887
  }
5770
- if (typeof relatedCollectionId === 'undefined') {
5771
- throw new AppwriteException('Missing required parameter: "relatedCollectionId"');
5888
+ if (typeof key === 'undefined') {
5889
+ throw new AppwriteException('Missing required parameter: "key"');
5772
5890
  }
5773
- if (typeof type === 'undefined') {
5774
- throw new AppwriteException('Missing required parameter: "type"');
5891
+ if (typeof required === 'undefined') {
5892
+ throw new AppwriteException('Missing required parameter: "required"');
5775
5893
  }
5776
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5894
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5777
5895
  const payload = {};
5778
- if (typeof relatedCollectionId !== 'undefined') {
5779
- payload['relatedCollectionId'] = relatedCollectionId;
5896
+ if (typeof key !== 'undefined') {
5897
+ payload['key'] = key;
5898
+ }
5899
+ if (typeof required !== 'undefined') {
5900
+ payload['required'] = required;
5901
+ }
5902
+ if (typeof xdefault !== 'undefined') {
5903
+ payload['default'] = xdefault;
5904
+ }
5905
+ const uri = new URL(this.client.config.endpoint + apiPath);
5906
+ const apiHeaders = {
5907
+ 'content-type': 'application/json',
5908
+ };
5909
+ return this.client.call('post', uri, apiHeaders, payload);
5910
+ }
5911
+ updatePointAttribute(paramsOrFirst, ...rest) {
5912
+ let params;
5913
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5914
+ params = (paramsOrFirst || {});
5915
+ }
5916
+ else {
5917
+ params = {
5918
+ databaseId: paramsOrFirst,
5919
+ collectionId: rest[0],
5920
+ key: rest[1],
5921
+ required: rest[2],
5922
+ xdefault: rest[3],
5923
+ newKey: rest[4]
5924
+ };
5925
+ }
5926
+ const databaseId = params.databaseId;
5927
+ const collectionId = params.collectionId;
5928
+ const key = params.key;
5929
+ const required = params.required;
5930
+ const xdefault = params.xdefault;
5931
+ const newKey = params.newKey;
5932
+ if (typeof databaseId === 'undefined') {
5933
+ throw new AppwriteException('Missing required parameter: "databaseId"');
5934
+ }
5935
+ if (typeof collectionId === 'undefined') {
5936
+ throw new AppwriteException('Missing required parameter: "collectionId"');
5937
+ }
5938
+ if (typeof key === 'undefined') {
5939
+ throw new AppwriteException('Missing required parameter: "key"');
5940
+ }
5941
+ if (typeof required === 'undefined') {
5942
+ throw new AppwriteException('Missing required parameter: "required"');
5943
+ }
5944
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/point/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5945
+ const payload = {};
5946
+ if (typeof required !== 'undefined') {
5947
+ payload['required'] = required;
5948
+ }
5949
+ if (typeof xdefault !== 'undefined') {
5950
+ payload['default'] = xdefault;
5951
+ }
5952
+ if (typeof newKey !== 'undefined') {
5953
+ payload['newKey'] = newKey;
5954
+ }
5955
+ const uri = new URL(this.client.config.endpoint + apiPath);
5956
+ const apiHeaders = {
5957
+ 'content-type': 'application/json',
5958
+ };
5959
+ return this.client.call('patch', uri, apiHeaders, payload);
5960
+ }
5961
+ createPolygonAttribute(paramsOrFirst, ...rest) {
5962
+ let params;
5963
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5964
+ params = (paramsOrFirst || {});
5965
+ }
5966
+ else {
5967
+ params = {
5968
+ databaseId: paramsOrFirst,
5969
+ collectionId: rest[0],
5970
+ key: rest[1],
5971
+ required: rest[2],
5972
+ xdefault: rest[3]
5973
+ };
5974
+ }
5975
+ const databaseId = params.databaseId;
5976
+ const collectionId = params.collectionId;
5977
+ const key = params.key;
5978
+ const required = params.required;
5979
+ const xdefault = params.xdefault;
5980
+ if (typeof databaseId === 'undefined') {
5981
+ throw new AppwriteException('Missing required parameter: "databaseId"');
5982
+ }
5983
+ if (typeof collectionId === 'undefined') {
5984
+ throw new AppwriteException('Missing required parameter: "collectionId"');
5985
+ }
5986
+ if (typeof key === 'undefined') {
5987
+ throw new AppwriteException('Missing required parameter: "key"');
5988
+ }
5989
+ if (typeof required === 'undefined') {
5990
+ throw new AppwriteException('Missing required parameter: "required"');
5991
+ }
5992
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5993
+ const payload = {};
5994
+ if (typeof key !== 'undefined') {
5995
+ payload['key'] = key;
5996
+ }
5997
+ if (typeof required !== 'undefined') {
5998
+ payload['required'] = required;
5999
+ }
6000
+ if (typeof xdefault !== 'undefined') {
6001
+ payload['default'] = xdefault;
6002
+ }
6003
+ const uri = new URL(this.client.config.endpoint + apiPath);
6004
+ const apiHeaders = {
6005
+ 'content-type': 'application/json',
6006
+ };
6007
+ return this.client.call('post', uri, apiHeaders, payload);
6008
+ }
6009
+ updatePolygonAttribute(paramsOrFirst, ...rest) {
6010
+ let params;
6011
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6012
+ params = (paramsOrFirst || {});
6013
+ }
6014
+ else {
6015
+ params = {
6016
+ databaseId: paramsOrFirst,
6017
+ collectionId: rest[0],
6018
+ key: rest[1],
6019
+ required: rest[2],
6020
+ xdefault: rest[3],
6021
+ newKey: rest[4]
6022
+ };
6023
+ }
6024
+ const databaseId = params.databaseId;
6025
+ const collectionId = params.collectionId;
6026
+ const key = params.key;
6027
+ const required = params.required;
6028
+ const xdefault = params.xdefault;
6029
+ const newKey = params.newKey;
6030
+ if (typeof databaseId === 'undefined') {
6031
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6032
+ }
6033
+ if (typeof collectionId === 'undefined') {
6034
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6035
+ }
6036
+ if (typeof key === 'undefined') {
6037
+ throw new AppwriteException('Missing required parameter: "key"');
6038
+ }
6039
+ if (typeof required === 'undefined') {
6040
+ throw new AppwriteException('Missing required parameter: "required"');
6041
+ }
6042
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6043
+ const payload = {};
6044
+ if (typeof required !== 'undefined') {
6045
+ payload['required'] = required;
6046
+ }
6047
+ if (typeof xdefault !== 'undefined') {
6048
+ payload['default'] = xdefault;
6049
+ }
6050
+ if (typeof newKey !== 'undefined') {
6051
+ payload['newKey'] = newKey;
6052
+ }
6053
+ const uri = new URL(this.client.config.endpoint + apiPath);
6054
+ const apiHeaders = {
6055
+ 'content-type': 'application/json',
6056
+ };
6057
+ return this.client.call('patch', uri, apiHeaders, payload);
6058
+ }
6059
+ createRelationshipAttribute(paramsOrFirst, ...rest) {
6060
+ let params;
6061
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6062
+ params = (paramsOrFirst || {});
6063
+ }
6064
+ else {
6065
+ params = {
6066
+ databaseId: paramsOrFirst,
6067
+ collectionId: rest[0],
6068
+ relatedCollectionId: rest[1],
6069
+ type: rest[2],
6070
+ twoWay: rest[3],
6071
+ key: rest[4],
6072
+ twoWayKey: rest[5],
6073
+ onDelete: rest[6]
6074
+ };
6075
+ }
6076
+ const databaseId = params.databaseId;
6077
+ const collectionId = params.collectionId;
6078
+ const relatedCollectionId = params.relatedCollectionId;
6079
+ const type = params.type;
6080
+ const twoWay = params.twoWay;
6081
+ const key = params.key;
6082
+ const twoWayKey = params.twoWayKey;
6083
+ const onDelete = params.onDelete;
6084
+ if (typeof databaseId === 'undefined') {
6085
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6086
+ }
6087
+ if (typeof collectionId === 'undefined') {
6088
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6089
+ }
6090
+ if (typeof relatedCollectionId === 'undefined') {
6091
+ throw new AppwriteException('Missing required parameter: "relatedCollectionId"');
6092
+ }
6093
+ if (typeof type === 'undefined') {
6094
+ throw new AppwriteException('Missing required parameter: "type"');
6095
+ }
6096
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
6097
+ const payload = {};
6098
+ if (typeof relatedCollectionId !== 'undefined') {
6099
+ payload['relatedCollectionId'] = relatedCollectionId;
6100
+ }
6101
+ if (typeof type !== 'undefined') {
6102
+ payload['type'] = type;
6103
+ }
6104
+ if (typeof twoWay !== 'undefined') {
6105
+ payload['twoWay'] = twoWay;
6106
+ }
6107
+ if (typeof key !== 'undefined') {
6108
+ payload['key'] = key;
6109
+ }
6110
+ if (typeof twoWayKey !== 'undefined') {
6111
+ payload['twoWayKey'] = twoWayKey;
6112
+ }
6113
+ if (typeof onDelete !== 'undefined') {
6114
+ payload['onDelete'] = onDelete;
6115
+ }
6116
+ const uri = new URL(this.client.config.endpoint + apiPath);
6117
+ const apiHeaders = {
6118
+ 'content-type': 'application/json',
6119
+ };
6120
+ return this.client.call('post', uri, apiHeaders, payload);
6121
+ }
6122
+ createStringAttribute(paramsOrFirst, ...rest) {
6123
+ let params;
6124
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6125
+ params = (paramsOrFirst || {});
6126
+ }
6127
+ else {
6128
+ params = {
6129
+ databaseId: paramsOrFirst,
6130
+ collectionId: rest[0],
6131
+ key: rest[1],
6132
+ size: rest[2],
6133
+ required: rest[3],
6134
+ xdefault: rest[4],
6135
+ array: rest[5],
6136
+ encrypt: rest[6]
6137
+ };
6138
+ }
6139
+ const databaseId = params.databaseId;
6140
+ const collectionId = params.collectionId;
6141
+ const key = params.key;
6142
+ const size = params.size;
6143
+ const required = params.required;
6144
+ const xdefault = params.xdefault;
6145
+ const array = params.array;
6146
+ const encrypt = params.encrypt;
6147
+ if (typeof databaseId === 'undefined') {
6148
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6149
+ }
6150
+ if (typeof collectionId === 'undefined') {
6151
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6152
+ }
6153
+ if (typeof key === 'undefined') {
6154
+ throw new AppwriteException('Missing required parameter: "key"');
6155
+ }
6156
+ if (typeof size === 'undefined') {
6157
+ throw new AppwriteException('Missing required parameter: "size"');
6158
+ }
6159
+ if (typeof required === 'undefined') {
6160
+ throw new AppwriteException('Missing required parameter: "required"');
6161
+ }
6162
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
6163
+ const payload = {};
6164
+ if (typeof key !== 'undefined') {
6165
+ payload['key'] = key;
6166
+ }
6167
+ if (typeof size !== 'undefined') {
6168
+ payload['size'] = size;
6169
+ }
6170
+ if (typeof required !== 'undefined') {
6171
+ payload['required'] = required;
6172
+ }
6173
+ if (typeof xdefault !== 'undefined') {
6174
+ payload['default'] = xdefault;
6175
+ }
6176
+ if (typeof array !== 'undefined') {
6177
+ payload['array'] = array;
6178
+ }
6179
+ if (typeof encrypt !== 'undefined') {
6180
+ payload['encrypt'] = encrypt;
6181
+ }
6182
+ const uri = new URL(this.client.config.endpoint + apiPath);
6183
+ const apiHeaders = {
6184
+ 'content-type': 'application/json',
6185
+ };
6186
+ return this.client.call('post', uri, apiHeaders, payload);
6187
+ }
6188
+ updateStringAttribute(paramsOrFirst, ...rest) {
6189
+ let params;
6190
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6191
+ params = (paramsOrFirst || {});
6192
+ }
6193
+ else {
6194
+ params = {
6195
+ databaseId: paramsOrFirst,
6196
+ collectionId: rest[0],
6197
+ key: rest[1],
6198
+ required: rest[2],
6199
+ xdefault: rest[3],
6200
+ size: rest[4],
6201
+ newKey: rest[5]
6202
+ };
6203
+ }
6204
+ const databaseId = params.databaseId;
6205
+ const collectionId = params.collectionId;
6206
+ const key = params.key;
6207
+ const required = params.required;
6208
+ const xdefault = params.xdefault;
6209
+ const size = params.size;
6210
+ const newKey = params.newKey;
6211
+ if (typeof databaseId === 'undefined') {
6212
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6213
+ }
6214
+ if (typeof collectionId === 'undefined') {
6215
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6216
+ }
6217
+ if (typeof key === 'undefined') {
6218
+ throw new AppwriteException('Missing required parameter: "key"');
6219
+ }
6220
+ if (typeof required === 'undefined') {
6221
+ throw new AppwriteException('Missing required parameter: "required"');
6222
+ }
6223
+ if (typeof xdefault === 'undefined') {
6224
+ throw new AppwriteException('Missing required parameter: "xdefault"');
6225
+ }
6226
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6227
+ const payload = {};
6228
+ if (typeof required !== 'undefined') {
6229
+ payload['required'] = required;
6230
+ }
6231
+ if (typeof xdefault !== 'undefined') {
6232
+ payload['default'] = xdefault;
6233
+ }
6234
+ if (typeof size !== 'undefined') {
6235
+ payload['size'] = size;
6236
+ }
6237
+ if (typeof newKey !== 'undefined') {
6238
+ payload['newKey'] = newKey;
6239
+ }
6240
+ const uri = new URL(this.client.config.endpoint + apiPath);
6241
+ const apiHeaders = {
6242
+ 'content-type': 'application/json',
6243
+ };
6244
+ return this.client.call('patch', uri, apiHeaders, payload);
6245
+ }
6246
+ createTextAttribute(paramsOrFirst, ...rest) {
6247
+ let params;
6248
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6249
+ params = (paramsOrFirst || {});
6250
+ }
6251
+ else {
6252
+ params = {
6253
+ databaseId: paramsOrFirst,
6254
+ collectionId: rest[0],
6255
+ key: rest[1],
6256
+ required: rest[2],
6257
+ xdefault: rest[3],
6258
+ array: rest[4]
6259
+ };
6260
+ }
6261
+ const databaseId = params.databaseId;
6262
+ const collectionId = params.collectionId;
6263
+ const key = params.key;
6264
+ const required = params.required;
6265
+ const xdefault = params.xdefault;
6266
+ const array = params.array;
6267
+ if (typeof databaseId === 'undefined') {
6268
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6269
+ }
6270
+ if (typeof collectionId === 'undefined') {
6271
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6272
+ }
6273
+ if (typeof key === 'undefined') {
6274
+ throw new AppwriteException('Missing required parameter: "key"');
6275
+ }
6276
+ if (typeof required === 'undefined') {
6277
+ throw new AppwriteException('Missing required parameter: "required"');
6278
+ }
6279
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
6280
+ const payload = {};
6281
+ if (typeof key !== 'undefined') {
6282
+ payload['key'] = key;
6283
+ }
6284
+ if (typeof required !== 'undefined') {
6285
+ payload['required'] = required;
6286
+ }
6287
+ if (typeof xdefault !== 'undefined') {
6288
+ payload['default'] = xdefault;
6289
+ }
6290
+ if (typeof array !== 'undefined') {
6291
+ payload['array'] = array;
6292
+ }
6293
+ const uri = new URL(this.client.config.endpoint + apiPath);
6294
+ const apiHeaders = {
6295
+ 'content-type': 'application/json',
6296
+ };
6297
+ return this.client.call('post', uri, apiHeaders, payload);
6298
+ }
6299
+ updateTextAttribute(paramsOrFirst, ...rest) {
6300
+ let params;
6301
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
6302
+ params = (paramsOrFirst || {});
6303
+ }
6304
+ else {
6305
+ params = {
6306
+ databaseId: paramsOrFirst,
6307
+ collectionId: rest[0],
6308
+ key: rest[1],
6309
+ required: rest[2],
6310
+ xdefault: rest[3],
6311
+ newKey: rest[4]
6312
+ };
6313
+ }
6314
+ const databaseId = params.databaseId;
6315
+ const collectionId = params.collectionId;
6316
+ const key = params.key;
6317
+ const required = params.required;
6318
+ const xdefault = params.xdefault;
6319
+ const newKey = params.newKey;
6320
+ if (typeof databaseId === 'undefined') {
6321
+ throw new AppwriteException('Missing required parameter: "databaseId"');
6322
+ }
6323
+ if (typeof collectionId === 'undefined') {
6324
+ throw new AppwriteException('Missing required parameter: "collectionId"');
6325
+ }
6326
+ if (typeof key === 'undefined') {
6327
+ throw new AppwriteException('Missing required parameter: "key"');
5780
6328
  }
5781
- if (typeof type !== 'undefined') {
5782
- payload['type'] = type;
6329
+ if (typeof required === 'undefined') {
6330
+ throw new AppwriteException('Missing required parameter: "required"');
5783
6331
  }
5784
- if (typeof twoWay !== 'undefined') {
5785
- payload['twoWay'] = twoWay;
6332
+ if (typeof xdefault === 'undefined') {
6333
+ throw new AppwriteException('Missing required parameter: "xdefault"');
5786
6334
  }
5787
- if (typeof key !== 'undefined') {
5788
- payload['key'] = key;
6335
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/text/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6336
+ const payload = {};
6337
+ if (typeof required !== 'undefined') {
6338
+ payload['required'] = required;
5789
6339
  }
5790
- if (typeof twoWayKey !== 'undefined') {
5791
- payload['twoWayKey'] = twoWayKey;
6340
+ if (typeof xdefault !== 'undefined') {
6341
+ payload['default'] = xdefault;
5792
6342
  }
5793
- if (typeof onDelete !== 'undefined') {
5794
- payload['onDelete'] = onDelete;
6343
+ if (typeof newKey !== 'undefined') {
6344
+ payload['newKey'] = newKey;
5795
6345
  }
5796
6346
  const uri = new URL(this.client.config.endpoint + apiPath);
5797
6347
  const apiHeaders = {
5798
6348
  'content-type': 'application/json',
5799
6349
  };
5800
- return this.client.call('post', uri, apiHeaders, payload);
6350
+ return this.client.call('patch', uri, apiHeaders, payload);
5801
6351
  }
5802
- createStringAttribute(paramsOrFirst, ...rest) {
6352
+ createUrlAttribute(paramsOrFirst, ...rest) {
5803
6353
  let params;
5804
6354
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5805
6355
  params = (paramsOrFirst || {});
@@ -5809,21 +6359,17 @@ class Databases {
5809
6359
  databaseId: paramsOrFirst,
5810
6360
  collectionId: rest[0],
5811
6361
  key: rest[1],
5812
- size: rest[2],
5813
- required: rest[3],
5814
- xdefault: rest[4],
5815
- array: rest[5],
5816
- encrypt: rest[6]
6362
+ required: rest[2],
6363
+ xdefault: rest[3],
6364
+ array: rest[4]
5817
6365
  };
5818
6366
  }
5819
6367
  const databaseId = params.databaseId;
5820
6368
  const collectionId = params.collectionId;
5821
6369
  const key = params.key;
5822
- const size = params.size;
5823
6370
  const required = params.required;
5824
6371
  const xdefault = params.xdefault;
5825
6372
  const array = params.array;
5826
- const encrypt = params.encrypt;
5827
6373
  if (typeof databaseId === 'undefined') {
5828
6374
  throw new AppwriteException('Missing required parameter: "databaseId"');
5829
6375
  }
@@ -5833,20 +6379,14 @@ class Databases {
5833
6379
  if (typeof key === 'undefined') {
5834
6380
  throw new AppwriteException('Missing required parameter: "key"');
5835
6381
  }
5836
- if (typeof size === 'undefined') {
5837
- throw new AppwriteException('Missing required parameter: "size"');
5838
- }
5839
6382
  if (typeof required === 'undefined') {
5840
6383
  throw new AppwriteException('Missing required parameter: "required"');
5841
6384
  }
5842
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
6385
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5843
6386
  const payload = {};
5844
6387
  if (typeof key !== 'undefined') {
5845
6388
  payload['key'] = key;
5846
6389
  }
5847
- if (typeof size !== 'undefined') {
5848
- payload['size'] = size;
5849
- }
5850
6390
  if (typeof required !== 'undefined') {
5851
6391
  payload['required'] = required;
5852
6392
  }
@@ -5856,16 +6396,13 @@ class Databases {
5856
6396
  if (typeof array !== 'undefined') {
5857
6397
  payload['array'] = array;
5858
6398
  }
5859
- if (typeof encrypt !== 'undefined') {
5860
- payload['encrypt'] = encrypt;
5861
- }
5862
6399
  const uri = new URL(this.client.config.endpoint + apiPath);
5863
6400
  const apiHeaders = {
5864
6401
  'content-type': 'application/json',
5865
6402
  };
5866
6403
  return this.client.call('post', uri, apiHeaders, payload);
5867
6404
  }
5868
- updateStringAttribute(paramsOrFirst, ...rest) {
6405
+ updateUrlAttribute(paramsOrFirst, ...rest) {
5869
6406
  let params;
5870
6407
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5871
6408
  params = (paramsOrFirst || {});
@@ -5877,8 +6414,7 @@ class Databases {
5877
6414
  key: rest[1],
5878
6415
  required: rest[2],
5879
6416
  xdefault: rest[3],
5880
- size: rest[4],
5881
- newKey: rest[5]
6417
+ newKey: rest[4]
5882
6418
  };
5883
6419
  }
5884
6420
  const databaseId = params.databaseId;
@@ -5886,7 +6422,6 @@ class Databases {
5886
6422
  const key = params.key;
5887
6423
  const required = params.required;
5888
6424
  const xdefault = params.xdefault;
5889
- const size = params.size;
5890
6425
  const newKey = params.newKey;
5891
6426
  if (typeof databaseId === 'undefined') {
5892
6427
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -5903,7 +6438,7 @@ class Databases {
5903
6438
  if (typeof xdefault === 'undefined') {
5904
6439
  throw new AppwriteException('Missing required parameter: "xdefault"');
5905
6440
  }
5906
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/string/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6441
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
5907
6442
  const payload = {};
5908
6443
  if (typeof required !== 'undefined') {
5909
6444
  payload['required'] = required;
@@ -5911,9 +6446,6 @@ class Databases {
5911
6446
  if (typeof xdefault !== 'undefined') {
5912
6447
  payload['default'] = xdefault;
5913
6448
  }
5914
- if (typeof size !== 'undefined') {
5915
- payload['size'] = size;
5916
- }
5917
6449
  if (typeof newKey !== 'undefined') {
5918
6450
  payload['newKey'] = newKey;
5919
6451
  }
@@ -5923,7 +6455,7 @@ class Databases {
5923
6455
  };
5924
6456
  return this.client.call('patch', uri, apiHeaders, payload);
5925
6457
  }
5926
- createUrlAttribute(paramsOrFirst, ...rest) {
6458
+ createVarcharAttribute(paramsOrFirst, ...rest) {
5927
6459
  let params;
5928
6460
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5929
6461
  params = (paramsOrFirst || {});
@@ -5933,14 +6465,16 @@ class Databases {
5933
6465
  databaseId: paramsOrFirst,
5934
6466
  collectionId: rest[0],
5935
6467
  key: rest[1],
5936
- required: rest[2],
5937
- xdefault: rest[3],
5938
- array: rest[4]
6468
+ size: rest[2],
6469
+ required: rest[3],
6470
+ xdefault: rest[4],
6471
+ array: rest[5]
5939
6472
  };
5940
6473
  }
5941
6474
  const databaseId = params.databaseId;
5942
6475
  const collectionId = params.collectionId;
5943
6476
  const key = params.key;
6477
+ const size = params.size;
5944
6478
  const required = params.required;
5945
6479
  const xdefault = params.xdefault;
5946
6480
  const array = params.array;
@@ -5953,14 +6487,20 @@ class Databases {
5953
6487
  if (typeof key === 'undefined') {
5954
6488
  throw new AppwriteException('Missing required parameter: "key"');
5955
6489
  }
6490
+ if (typeof size === 'undefined') {
6491
+ throw new AppwriteException('Missing required parameter: "size"');
6492
+ }
5956
6493
  if (typeof required === 'undefined') {
5957
6494
  throw new AppwriteException('Missing required parameter: "required"');
5958
6495
  }
5959
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
6496
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
5960
6497
  const payload = {};
5961
6498
  if (typeof key !== 'undefined') {
5962
6499
  payload['key'] = key;
5963
6500
  }
6501
+ if (typeof size !== 'undefined') {
6502
+ payload['size'] = size;
6503
+ }
5964
6504
  if (typeof required !== 'undefined') {
5965
6505
  payload['required'] = required;
5966
6506
  }
@@ -5976,7 +6516,7 @@ class Databases {
5976
6516
  };
5977
6517
  return this.client.call('post', uri, apiHeaders, payload);
5978
6518
  }
5979
- updateUrlAttribute(paramsOrFirst, ...rest) {
6519
+ updateVarcharAttribute(paramsOrFirst, ...rest) {
5980
6520
  let params;
5981
6521
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
5982
6522
  params = (paramsOrFirst || {});
@@ -5988,7 +6528,8 @@ class Databases {
5988
6528
  key: rest[1],
5989
6529
  required: rest[2],
5990
6530
  xdefault: rest[3],
5991
- newKey: rest[4]
6531
+ size: rest[4],
6532
+ newKey: rest[5]
5992
6533
  };
5993
6534
  }
5994
6535
  const databaseId = params.databaseId;
@@ -5996,6 +6537,7 @@ class Databases {
5996
6537
  const key = params.key;
5997
6538
  const required = params.required;
5998
6539
  const xdefault = params.xdefault;
6540
+ const size = params.size;
5999
6541
  const newKey = params.newKey;
6000
6542
  if (typeof databaseId === 'undefined') {
6001
6543
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -6012,7 +6554,7 @@ class Databases {
6012
6554
  if (typeof xdefault === 'undefined') {
6013
6555
  throw new AppwriteException('Missing required parameter: "xdefault"');
6014
6556
  }
6015
- const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/url/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6557
+ const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/varchar/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
6016
6558
  const payload = {};
6017
6559
  if (typeof required !== 'undefined') {
6018
6560
  payload['required'] = required;
@@ -6020,6 +6562,9 @@ class Databases {
6020
6562
  if (typeof xdefault !== 'undefined') {
6021
6563
  payload['default'] = xdefault;
6022
6564
  }
6565
+ if (typeof size !== 'undefined') {
6566
+ payload['size'] = size;
6567
+ }
6023
6568
  if (typeof newKey !== 'undefined') {
6024
6569
  payload['newKey'] = newKey;
6025
6570
  }
@@ -8859,7 +9404,7 @@ class Functions {
8859
9404
  }
8860
9405
  listTemplates(paramsOrFirst, ...rest) {
8861
9406
  let params;
8862
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
9407
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'runtimes' in paramsOrFirst)) {
8863
9408
  params = (paramsOrFirst || {});
8864
9409
  }
8865
9410
  else {
@@ -13332,7 +13877,7 @@ class Migrations {
13332
13877
  }
13333
13878
  createAppwriteMigration(paramsOrFirst, ...rest) {
13334
13879
  let params;
13335
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
13880
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13336
13881
  params = (paramsOrFirst || {});
13337
13882
  }
13338
13883
  else {
@@ -13381,7 +13926,7 @@ class Migrations {
13381
13926
  }
13382
13927
  getAppwriteReport(paramsOrFirst, ...rest) {
13383
13928
  let params;
13384
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
13929
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13385
13930
  params = (paramsOrFirst || {});
13386
13931
  }
13387
13932
  else {
@@ -13542,7 +14087,7 @@ class Migrations {
13542
14087
  }
13543
14088
  createFirebaseMigration(paramsOrFirst, ...rest) {
13544
14089
  let params;
13545
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14090
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13546
14091
  params = (paramsOrFirst || {});
13547
14092
  }
13548
14093
  else {
@@ -13575,7 +14120,7 @@ class Migrations {
13575
14120
  }
13576
14121
  getFirebaseReport(paramsOrFirst, ...rest) {
13577
14122
  let params;
13578
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14123
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13579
14124
  params = (paramsOrFirst || {});
13580
14125
  }
13581
14126
  else {
@@ -13606,7 +14151,7 @@ class Migrations {
13606
14151
  }
13607
14152
  createNHostMigration(paramsOrFirst, ...rest) {
13608
14153
  let params;
13609
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14154
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13610
14155
  params = (paramsOrFirst || {});
13611
14156
  }
13612
14157
  else {
@@ -13684,7 +14229,7 @@ class Migrations {
13684
14229
  }
13685
14230
  getNHostReport(paramsOrFirst, ...rest) {
13686
14231
  let params;
13687
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14232
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13688
14233
  params = (paramsOrFirst || {});
13689
14234
  }
13690
14235
  else {
@@ -13760,7 +14305,7 @@ class Migrations {
13760
14305
  }
13761
14306
  createSupabaseMigration(paramsOrFirst, ...rest) {
13762
14307
  let params;
13763
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14308
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13764
14309
  params = (paramsOrFirst || {});
13765
14310
  }
13766
14311
  else {
@@ -13830,7 +14375,7 @@ class Migrations {
13830
14375
  }
13831
14376
  getSupabaseReport(paramsOrFirst, ...rest) {
13832
14377
  let params;
13833
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14378
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'resources' in paramsOrFirst)) {
13834
14379
  params = (paramsOrFirst || {});
13835
14380
  }
13836
14381
  else {
@@ -14069,7 +14614,7 @@ class Organizations {
14069
14614
  }
14070
14615
  estimationCreateOrganization(paramsOrFirst, ...rest) {
14071
14616
  let params;
14072
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'billingPlan' in paramsOrFirst)) {
14617
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14073
14618
  params = (paramsOrFirst || {});
14074
14619
  }
14075
14620
  else {
@@ -14687,9 +15232,175 @@ class Organizations {
14687
15232
  const apiHeaders = {
14688
15233
  'content-type': 'application/json',
14689
15234
  };
14690
- return this.client.call('patch', uri, apiHeaders, payload);
15235
+ return this.client.call('patch', uri, apiHeaders, payload);
15236
+ }
15237
+ getInvoiceView(paramsOrFirst, ...rest) {
15238
+ let params;
15239
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15240
+ params = (paramsOrFirst || {});
15241
+ }
15242
+ else {
15243
+ params = {
15244
+ organizationId: paramsOrFirst,
15245
+ invoiceId: rest[0]
15246
+ };
15247
+ }
15248
+ const organizationId = params.organizationId;
15249
+ const invoiceId = params.invoiceId;
15250
+ if (typeof organizationId === 'undefined') {
15251
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15252
+ }
15253
+ if (typeof invoiceId === 'undefined') {
15254
+ throw new AppwriteException('Missing required parameter: "invoiceId"');
15255
+ }
15256
+ const apiPath = '/organizations/{organizationId}/invoices/{invoiceId}/view'.replace('{organizationId}', organizationId).replace('{invoiceId}', invoiceId);
15257
+ const payload = {};
15258
+ const uri = new URL(this.client.config.endpoint + apiPath);
15259
+ const apiHeaders = {};
15260
+ return this.client.call('get', uri, apiHeaders, payload);
15261
+ }
15262
+ listKeys(paramsOrFirst, ...rest) {
15263
+ let params;
15264
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15265
+ params = (paramsOrFirst || {});
15266
+ }
15267
+ else {
15268
+ params = {
15269
+ organizationId: paramsOrFirst,
15270
+ total: rest[0]
15271
+ };
15272
+ }
15273
+ const organizationId = params.organizationId;
15274
+ const total = params.total;
15275
+ if (typeof organizationId === 'undefined') {
15276
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15277
+ }
15278
+ const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
15279
+ const payload = {};
15280
+ if (typeof total !== 'undefined') {
15281
+ payload['total'] = total;
15282
+ }
15283
+ const uri = new URL(this.client.config.endpoint + apiPath);
15284
+ const apiHeaders = {};
15285
+ return this.client.call('get', uri, apiHeaders, payload);
15286
+ }
15287
+ createKey(paramsOrFirst, ...rest) {
15288
+ let params;
15289
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15290
+ params = (paramsOrFirst || {});
15291
+ }
15292
+ else {
15293
+ params = {
15294
+ organizationId: paramsOrFirst,
15295
+ name: rest[0],
15296
+ scopes: rest[1],
15297
+ expire: rest[2]
15298
+ };
15299
+ }
15300
+ const organizationId = params.organizationId;
15301
+ const name = params.name;
15302
+ const scopes = params.scopes;
15303
+ const expire = params.expire;
15304
+ if (typeof organizationId === 'undefined') {
15305
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15306
+ }
15307
+ if (typeof name === 'undefined') {
15308
+ throw new AppwriteException('Missing required parameter: "name"');
15309
+ }
15310
+ if (typeof scopes === 'undefined') {
15311
+ throw new AppwriteException('Missing required parameter: "scopes"');
15312
+ }
15313
+ const apiPath = '/organizations/{organizationId}/keys'.replace('{organizationId}', organizationId);
15314
+ const payload = {};
15315
+ if (typeof name !== 'undefined') {
15316
+ payload['name'] = name;
15317
+ }
15318
+ if (typeof scopes !== 'undefined') {
15319
+ payload['scopes'] = scopes;
15320
+ }
15321
+ if (typeof expire !== 'undefined') {
15322
+ payload['expire'] = expire;
15323
+ }
15324
+ const uri = new URL(this.client.config.endpoint + apiPath);
15325
+ const apiHeaders = {
15326
+ 'content-type': 'application/json',
15327
+ };
15328
+ return this.client.call('post', uri, apiHeaders, payload);
15329
+ }
15330
+ getKey(paramsOrFirst, ...rest) {
15331
+ let params;
15332
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15333
+ params = (paramsOrFirst || {});
15334
+ }
15335
+ else {
15336
+ params = {
15337
+ organizationId: paramsOrFirst,
15338
+ keyId: rest[0]
15339
+ };
15340
+ }
15341
+ const organizationId = params.organizationId;
15342
+ const keyId = params.keyId;
15343
+ if (typeof organizationId === 'undefined') {
15344
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15345
+ }
15346
+ if (typeof keyId === 'undefined') {
15347
+ throw new AppwriteException('Missing required parameter: "keyId"');
15348
+ }
15349
+ const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
15350
+ const payload = {};
15351
+ const uri = new URL(this.client.config.endpoint + apiPath);
15352
+ const apiHeaders = {};
15353
+ return this.client.call('get', uri, apiHeaders, payload);
15354
+ }
15355
+ updateKey(paramsOrFirst, ...rest) {
15356
+ let params;
15357
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15358
+ params = (paramsOrFirst || {});
15359
+ }
15360
+ else {
15361
+ params = {
15362
+ organizationId: paramsOrFirst,
15363
+ keyId: rest[0],
15364
+ name: rest[1],
15365
+ scopes: rest[2],
15366
+ expire: rest[3]
15367
+ };
15368
+ }
15369
+ const organizationId = params.organizationId;
15370
+ const keyId = params.keyId;
15371
+ const name = params.name;
15372
+ const scopes = params.scopes;
15373
+ const expire = params.expire;
15374
+ if (typeof organizationId === 'undefined') {
15375
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15376
+ }
15377
+ if (typeof keyId === 'undefined') {
15378
+ throw new AppwriteException('Missing required parameter: "keyId"');
15379
+ }
15380
+ if (typeof name === 'undefined') {
15381
+ throw new AppwriteException('Missing required parameter: "name"');
15382
+ }
15383
+ if (typeof scopes === 'undefined') {
15384
+ throw new AppwriteException('Missing required parameter: "scopes"');
15385
+ }
15386
+ const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
15387
+ const payload = {};
15388
+ if (typeof name !== 'undefined') {
15389
+ payload['name'] = name;
15390
+ }
15391
+ if (typeof scopes !== 'undefined') {
15392
+ payload['scopes'] = scopes;
15393
+ }
15394
+ if (typeof expire !== 'undefined') {
15395
+ payload['expire'] = expire;
15396
+ }
15397
+ const uri = new URL(this.client.config.endpoint + apiPath);
15398
+ const apiHeaders = {
15399
+ 'content-type': 'application/json',
15400
+ };
15401
+ return this.client.call('put', uri, apiHeaders, payload);
14691
15402
  }
14692
- getInvoiceView(paramsOrFirst, ...rest) {
15403
+ deleteKey(paramsOrFirst, ...rest) {
14693
15404
  let params;
14694
15405
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14695
15406
  params = (paramsOrFirst || {});
@@ -14697,22 +15408,24 @@ class Organizations {
14697
15408
  else {
14698
15409
  params = {
14699
15410
  organizationId: paramsOrFirst,
14700
- invoiceId: rest[0]
15411
+ keyId: rest[0]
14701
15412
  };
14702
15413
  }
14703
15414
  const organizationId = params.organizationId;
14704
- const invoiceId = params.invoiceId;
15415
+ const keyId = params.keyId;
14705
15416
  if (typeof organizationId === 'undefined') {
14706
15417
  throw new AppwriteException('Missing required parameter: "organizationId"');
14707
15418
  }
14708
- if (typeof invoiceId === 'undefined') {
14709
- throw new AppwriteException('Missing required parameter: "invoiceId"');
15419
+ if (typeof keyId === 'undefined') {
15420
+ throw new AppwriteException('Missing required parameter: "keyId"');
14710
15421
  }
14711
- const apiPath = '/organizations/{organizationId}/invoices/{invoiceId}/view'.replace('{organizationId}', organizationId).replace('{invoiceId}', invoiceId);
15422
+ const apiPath = '/organizations/{organizationId}/keys/{keyId}'.replace('{organizationId}', organizationId).replace('{keyId}', keyId);
14712
15423
  const payload = {};
14713
15424
  const uri = new URL(this.client.config.endpoint + apiPath);
14714
- const apiHeaders = {};
14715
- return this.client.call('get', uri, apiHeaders, payload);
15425
+ const apiHeaders = {
15426
+ 'content-type': 'application/json',
15427
+ };
15428
+ return this.client.call('delete', uri, apiHeaders, payload);
14716
15429
  }
14717
15430
  setDefaultPaymentMethod(paramsOrFirst, ...rest) {
14718
15431
  let params;
@@ -14972,6 +15685,26 @@ class Organizations {
14972
15685
  };
14973
15686
  return this.client.call('patch', uri, apiHeaders, payload);
14974
15687
  }
15688
+ listRegions(paramsOrFirst) {
15689
+ let params;
15690
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15691
+ params = (paramsOrFirst || {});
15692
+ }
15693
+ else {
15694
+ params = {
15695
+ organizationId: paramsOrFirst
15696
+ };
15697
+ }
15698
+ const organizationId = params.organizationId;
15699
+ if (typeof organizationId === 'undefined') {
15700
+ throw new AppwriteException('Missing required parameter: "organizationId"');
15701
+ }
15702
+ const apiPath = '/organizations/{organizationId}/regions'.replace('{organizationId}', organizationId);
15703
+ const payload = {};
15704
+ const uri = new URL(this.client.config.endpoint + apiPath);
15705
+ const apiHeaders = {};
15706
+ return this.client.call('get', uri, apiHeaders, payload);
15707
+ }
14975
15708
  getScopes(paramsOrFirst) {
14976
15709
  let params;
14977
15710
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -18044,7 +18777,7 @@ class Sites {
18044
18777
  }
18045
18778
  listTemplates(paramsOrFirst, ...rest) {
18046
18779
  let params;
18047
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18780
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'frameworks' in paramsOrFirst)) {
18048
18781
  params = (paramsOrFirst || {});
18049
18782
  }
18050
18783
  else {
@@ -19787,9 +20520,6 @@ class TablesDB {
19787
20520
  if (typeof databaseId === 'undefined') {
19788
20521
  throw new AppwriteException('Missing required parameter: "databaseId"');
19789
20522
  }
19790
- if (typeof name === 'undefined') {
19791
- throw new AppwriteException('Missing required parameter: "name"');
19792
- }
19793
20523
  const apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
19794
20524
  const payload = {};
19795
20525
  if (typeof name !== 'undefined') {
@@ -19976,9 +20706,6 @@ class TablesDB {
19976
20706
  if (typeof tableId === 'undefined') {
19977
20707
  throw new AppwriteException('Missing required parameter: "tableId"');
19978
20708
  }
19979
- if (typeof name === 'undefined') {
19980
- throw new AppwriteException('Missing required parameter: "name"');
19981
- }
19982
20709
  const apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
19983
20710
  const payload = {};
19984
20711
  if (typeof name !== 'undefined') {
@@ -20727,20 +21454,224 @@ class TablesDB {
20727
21454
  if (typeof required === 'undefined') {
20728
21455
  throw new AppwriteException('Missing required parameter: "required"');
20729
21456
  }
20730
- if (typeof xdefault === 'undefined') {
20731
- throw new AppwriteException('Missing required parameter: "xdefault"');
20732
- }
20733
- const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
21457
+ if (typeof xdefault === 'undefined') {
21458
+ throw new AppwriteException('Missing required parameter: "xdefault"');
21459
+ }
21460
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
21461
+ const payload = {};
21462
+ if (typeof required !== 'undefined') {
21463
+ payload['required'] = required;
21464
+ }
21465
+ if (typeof min !== 'undefined') {
21466
+ payload['min'] = min;
21467
+ }
21468
+ if (typeof max !== 'undefined') {
21469
+ payload['max'] = max;
21470
+ }
21471
+ if (typeof xdefault !== 'undefined') {
21472
+ payload['default'] = xdefault;
21473
+ }
21474
+ if (typeof newKey !== 'undefined') {
21475
+ payload['newKey'] = newKey;
21476
+ }
21477
+ const uri = new URL(this.client.config.endpoint + apiPath);
21478
+ const apiHeaders = {
21479
+ 'content-type': 'application/json',
21480
+ };
21481
+ return this.client.call('patch', uri, apiHeaders, payload);
21482
+ }
21483
+ createIpColumn(paramsOrFirst, ...rest) {
21484
+ let params;
21485
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21486
+ params = (paramsOrFirst || {});
21487
+ }
21488
+ else {
21489
+ params = {
21490
+ databaseId: paramsOrFirst,
21491
+ tableId: rest[0],
21492
+ key: rest[1],
21493
+ required: rest[2],
21494
+ xdefault: rest[3],
21495
+ array: rest[4]
21496
+ };
21497
+ }
21498
+ const databaseId = params.databaseId;
21499
+ const tableId = params.tableId;
21500
+ const key = params.key;
21501
+ const required = params.required;
21502
+ const xdefault = params.xdefault;
21503
+ const array = params.array;
21504
+ if (typeof databaseId === 'undefined') {
21505
+ throw new AppwriteException('Missing required parameter: "databaseId"');
21506
+ }
21507
+ if (typeof tableId === 'undefined') {
21508
+ throw new AppwriteException('Missing required parameter: "tableId"');
21509
+ }
21510
+ if (typeof key === 'undefined') {
21511
+ throw new AppwriteException('Missing required parameter: "key"');
21512
+ }
21513
+ if (typeof required === 'undefined') {
21514
+ throw new AppwriteException('Missing required parameter: "required"');
21515
+ }
21516
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
21517
+ const payload = {};
21518
+ if (typeof key !== 'undefined') {
21519
+ payload['key'] = key;
21520
+ }
21521
+ if (typeof required !== 'undefined') {
21522
+ payload['required'] = required;
21523
+ }
21524
+ if (typeof xdefault !== 'undefined') {
21525
+ payload['default'] = xdefault;
21526
+ }
21527
+ if (typeof array !== 'undefined') {
21528
+ payload['array'] = array;
21529
+ }
21530
+ const uri = new URL(this.client.config.endpoint + apiPath);
21531
+ const apiHeaders = {
21532
+ 'content-type': 'application/json',
21533
+ };
21534
+ return this.client.call('post', uri, apiHeaders, payload);
21535
+ }
21536
+ updateIpColumn(paramsOrFirst, ...rest) {
21537
+ let params;
21538
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21539
+ params = (paramsOrFirst || {});
21540
+ }
21541
+ else {
21542
+ params = {
21543
+ databaseId: paramsOrFirst,
21544
+ tableId: rest[0],
21545
+ key: rest[1],
21546
+ required: rest[2],
21547
+ xdefault: rest[3],
21548
+ newKey: rest[4]
21549
+ };
21550
+ }
21551
+ const databaseId = params.databaseId;
21552
+ const tableId = params.tableId;
21553
+ const key = params.key;
21554
+ const required = params.required;
21555
+ const xdefault = params.xdefault;
21556
+ const newKey = params.newKey;
21557
+ if (typeof databaseId === 'undefined') {
21558
+ throw new AppwriteException('Missing required parameter: "databaseId"');
21559
+ }
21560
+ if (typeof tableId === 'undefined') {
21561
+ throw new AppwriteException('Missing required parameter: "tableId"');
21562
+ }
21563
+ if (typeof key === 'undefined') {
21564
+ throw new AppwriteException('Missing required parameter: "key"');
21565
+ }
21566
+ if (typeof required === 'undefined') {
21567
+ throw new AppwriteException('Missing required parameter: "required"');
21568
+ }
21569
+ if (typeof xdefault === 'undefined') {
21570
+ throw new AppwriteException('Missing required parameter: "xdefault"');
21571
+ }
21572
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
21573
+ const payload = {};
21574
+ if (typeof required !== 'undefined') {
21575
+ payload['required'] = required;
21576
+ }
21577
+ if (typeof xdefault !== 'undefined') {
21578
+ payload['default'] = xdefault;
21579
+ }
21580
+ if (typeof newKey !== 'undefined') {
21581
+ payload['newKey'] = newKey;
21582
+ }
21583
+ const uri = new URL(this.client.config.endpoint + apiPath);
21584
+ const apiHeaders = {
21585
+ 'content-type': 'application/json',
21586
+ };
21587
+ return this.client.call('patch', uri, apiHeaders, payload);
21588
+ }
21589
+ createLineColumn(paramsOrFirst, ...rest) {
21590
+ let params;
21591
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21592
+ params = (paramsOrFirst || {});
21593
+ }
21594
+ else {
21595
+ params = {
21596
+ databaseId: paramsOrFirst,
21597
+ tableId: rest[0],
21598
+ key: rest[1],
21599
+ required: rest[2],
21600
+ xdefault: rest[3]
21601
+ };
21602
+ }
21603
+ const databaseId = params.databaseId;
21604
+ const tableId = params.tableId;
21605
+ const key = params.key;
21606
+ const required = params.required;
21607
+ const xdefault = params.xdefault;
21608
+ if (typeof databaseId === 'undefined') {
21609
+ throw new AppwriteException('Missing required parameter: "databaseId"');
21610
+ }
21611
+ if (typeof tableId === 'undefined') {
21612
+ throw new AppwriteException('Missing required parameter: "tableId"');
21613
+ }
21614
+ if (typeof key === 'undefined') {
21615
+ throw new AppwriteException('Missing required parameter: "key"');
21616
+ }
21617
+ if (typeof required === 'undefined') {
21618
+ throw new AppwriteException('Missing required parameter: "required"');
21619
+ }
21620
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
21621
+ const payload = {};
21622
+ if (typeof key !== 'undefined') {
21623
+ payload['key'] = key;
21624
+ }
21625
+ if (typeof required !== 'undefined') {
21626
+ payload['required'] = required;
21627
+ }
21628
+ if (typeof xdefault !== 'undefined') {
21629
+ payload['default'] = xdefault;
21630
+ }
21631
+ const uri = new URL(this.client.config.endpoint + apiPath);
21632
+ const apiHeaders = {
21633
+ 'content-type': 'application/json',
21634
+ };
21635
+ return this.client.call('post', uri, apiHeaders, payload);
21636
+ }
21637
+ updateLineColumn(paramsOrFirst, ...rest) {
21638
+ let params;
21639
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21640
+ params = (paramsOrFirst || {});
21641
+ }
21642
+ else {
21643
+ params = {
21644
+ databaseId: paramsOrFirst,
21645
+ tableId: rest[0],
21646
+ key: rest[1],
21647
+ required: rest[2],
21648
+ xdefault: rest[3],
21649
+ newKey: rest[4]
21650
+ };
21651
+ }
21652
+ const databaseId = params.databaseId;
21653
+ const tableId = params.tableId;
21654
+ const key = params.key;
21655
+ const required = params.required;
21656
+ const xdefault = params.xdefault;
21657
+ const newKey = params.newKey;
21658
+ if (typeof databaseId === 'undefined') {
21659
+ throw new AppwriteException('Missing required parameter: "databaseId"');
21660
+ }
21661
+ if (typeof tableId === 'undefined') {
21662
+ throw new AppwriteException('Missing required parameter: "tableId"');
21663
+ }
21664
+ if (typeof key === 'undefined') {
21665
+ throw new AppwriteException('Missing required parameter: "key"');
21666
+ }
21667
+ if (typeof required === 'undefined') {
21668
+ throw new AppwriteException('Missing required parameter: "required"');
21669
+ }
21670
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
20734
21671
  const payload = {};
20735
21672
  if (typeof required !== 'undefined') {
20736
21673
  payload['required'] = required;
20737
21674
  }
20738
- if (typeof min !== 'undefined') {
20739
- payload['min'] = min;
20740
- }
20741
- if (typeof max !== 'undefined') {
20742
- payload['max'] = max;
20743
- }
20744
21675
  if (typeof xdefault !== 'undefined') {
20745
21676
  payload['default'] = xdefault;
20746
21677
  }
@@ -20753,7 +21684,7 @@ class TablesDB {
20753
21684
  };
20754
21685
  return this.client.call('patch', uri, apiHeaders, payload);
20755
21686
  }
20756
- createIpColumn(paramsOrFirst, ...rest) {
21687
+ createLongtextColumn(paramsOrFirst, ...rest) {
20757
21688
  let params;
20758
21689
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20759
21690
  params = (paramsOrFirst || {});
@@ -20786,7 +21717,7 @@ class TablesDB {
20786
21717
  if (typeof required === 'undefined') {
20787
21718
  throw new AppwriteException('Missing required parameter: "required"');
20788
21719
  }
20789
- const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
21720
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
20790
21721
  const payload = {};
20791
21722
  if (typeof key !== 'undefined') {
20792
21723
  payload['key'] = key;
@@ -20806,7 +21737,7 @@ class TablesDB {
20806
21737
  };
20807
21738
  return this.client.call('post', uri, apiHeaders, payload);
20808
21739
  }
20809
- updateIpColumn(paramsOrFirst, ...rest) {
21740
+ updateLongtextColumn(paramsOrFirst, ...rest) {
20810
21741
  let params;
20811
21742
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20812
21743
  params = (paramsOrFirst || {});
@@ -20842,7 +21773,7 @@ class TablesDB {
20842
21773
  if (typeof xdefault === 'undefined') {
20843
21774
  throw new AppwriteException('Missing required parameter: "xdefault"');
20844
21775
  }
20845
- const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
21776
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
20846
21777
  const payload = {};
20847
21778
  if (typeof required !== 'undefined') {
20848
21779
  payload['required'] = required;
@@ -20859,7 +21790,7 @@ class TablesDB {
20859
21790
  };
20860
21791
  return this.client.call('patch', uri, apiHeaders, payload);
20861
21792
  }
20862
- createLineColumn(paramsOrFirst, ...rest) {
21793
+ createMediumtextColumn(paramsOrFirst, ...rest) {
20863
21794
  let params;
20864
21795
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20865
21796
  params = (paramsOrFirst || {});
@@ -20870,7 +21801,8 @@ class TablesDB {
20870
21801
  tableId: rest[0],
20871
21802
  key: rest[1],
20872
21803
  required: rest[2],
20873
- xdefault: rest[3]
21804
+ xdefault: rest[3],
21805
+ array: rest[4]
20874
21806
  };
20875
21807
  }
20876
21808
  const databaseId = params.databaseId;
@@ -20878,6 +21810,7 @@ class TablesDB {
20878
21810
  const key = params.key;
20879
21811
  const required = params.required;
20880
21812
  const xdefault = params.xdefault;
21813
+ const array = params.array;
20881
21814
  if (typeof databaseId === 'undefined') {
20882
21815
  throw new AppwriteException('Missing required parameter: "databaseId"');
20883
21816
  }
@@ -20890,7 +21823,7 @@ class TablesDB {
20890
21823
  if (typeof required === 'undefined') {
20891
21824
  throw new AppwriteException('Missing required parameter: "required"');
20892
21825
  }
20893
- const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
21826
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
20894
21827
  const payload = {};
20895
21828
  if (typeof key !== 'undefined') {
20896
21829
  payload['key'] = key;
@@ -20901,13 +21834,16 @@ class TablesDB {
20901
21834
  if (typeof xdefault !== 'undefined') {
20902
21835
  payload['default'] = xdefault;
20903
21836
  }
21837
+ if (typeof array !== 'undefined') {
21838
+ payload['array'] = array;
21839
+ }
20904
21840
  const uri = new URL(this.client.config.endpoint + apiPath);
20905
21841
  const apiHeaders = {
20906
21842
  'content-type': 'application/json',
20907
21843
  };
20908
21844
  return this.client.call('post', uri, apiHeaders, payload);
20909
21845
  }
20910
- updateLineColumn(paramsOrFirst, ...rest) {
21846
+ updateMediumtextColumn(paramsOrFirst, ...rest) {
20911
21847
  let params;
20912
21848
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20913
21849
  params = (paramsOrFirst || {});
@@ -20940,7 +21876,10 @@ class TablesDB {
20940
21876
  if (typeof required === 'undefined') {
20941
21877
  throw new AppwriteException('Missing required parameter: "required"');
20942
21878
  }
20943
- const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
21879
+ if (typeof xdefault === 'undefined') {
21880
+ throw new AppwriteException('Missing required parameter: "xdefault"');
21881
+ }
21882
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
20944
21883
  const payload = {};
20945
21884
  if (typeof required !== 'undefined') {
20946
21885
  payload['required'] = required;
@@ -21340,6 +22279,112 @@ class TablesDB {
21340
22279
  };
21341
22280
  return this.client.call('patch', uri, apiHeaders, payload);
21342
22281
  }
22282
+ createTextColumn(paramsOrFirst, ...rest) {
22283
+ let params;
22284
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22285
+ params = (paramsOrFirst || {});
22286
+ }
22287
+ else {
22288
+ params = {
22289
+ databaseId: paramsOrFirst,
22290
+ tableId: rest[0],
22291
+ key: rest[1],
22292
+ required: rest[2],
22293
+ xdefault: rest[3],
22294
+ array: rest[4]
22295
+ };
22296
+ }
22297
+ const databaseId = params.databaseId;
22298
+ const tableId = params.tableId;
22299
+ const key = params.key;
22300
+ const required = params.required;
22301
+ const xdefault = params.xdefault;
22302
+ const array = params.array;
22303
+ if (typeof databaseId === 'undefined') {
22304
+ throw new AppwriteException('Missing required parameter: "databaseId"');
22305
+ }
22306
+ if (typeof tableId === 'undefined') {
22307
+ throw new AppwriteException('Missing required parameter: "tableId"');
22308
+ }
22309
+ if (typeof key === 'undefined') {
22310
+ throw new AppwriteException('Missing required parameter: "key"');
22311
+ }
22312
+ if (typeof required === 'undefined') {
22313
+ throw new AppwriteException('Missing required parameter: "required"');
22314
+ }
22315
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
22316
+ const payload = {};
22317
+ if (typeof key !== 'undefined') {
22318
+ payload['key'] = key;
22319
+ }
22320
+ if (typeof required !== 'undefined') {
22321
+ payload['required'] = required;
22322
+ }
22323
+ if (typeof xdefault !== 'undefined') {
22324
+ payload['default'] = xdefault;
22325
+ }
22326
+ if (typeof array !== 'undefined') {
22327
+ payload['array'] = array;
22328
+ }
22329
+ const uri = new URL(this.client.config.endpoint + apiPath);
22330
+ const apiHeaders = {
22331
+ 'content-type': 'application/json',
22332
+ };
22333
+ return this.client.call('post', uri, apiHeaders, payload);
22334
+ }
22335
+ updateTextColumn(paramsOrFirst, ...rest) {
22336
+ let params;
22337
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22338
+ params = (paramsOrFirst || {});
22339
+ }
22340
+ else {
22341
+ params = {
22342
+ databaseId: paramsOrFirst,
22343
+ tableId: rest[0],
22344
+ key: rest[1],
22345
+ required: rest[2],
22346
+ xdefault: rest[3],
22347
+ newKey: rest[4]
22348
+ };
22349
+ }
22350
+ const databaseId = params.databaseId;
22351
+ const tableId = params.tableId;
22352
+ const key = params.key;
22353
+ const required = params.required;
22354
+ const xdefault = params.xdefault;
22355
+ const newKey = params.newKey;
22356
+ if (typeof databaseId === 'undefined') {
22357
+ throw new AppwriteException('Missing required parameter: "databaseId"');
22358
+ }
22359
+ if (typeof tableId === 'undefined') {
22360
+ throw new AppwriteException('Missing required parameter: "tableId"');
22361
+ }
22362
+ if (typeof key === 'undefined') {
22363
+ throw new AppwriteException('Missing required parameter: "key"');
22364
+ }
22365
+ if (typeof required === 'undefined') {
22366
+ throw new AppwriteException('Missing required parameter: "required"');
22367
+ }
22368
+ if (typeof xdefault === 'undefined') {
22369
+ throw new AppwriteException('Missing required parameter: "xdefault"');
22370
+ }
22371
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
22372
+ const payload = {};
22373
+ if (typeof required !== 'undefined') {
22374
+ payload['required'] = required;
22375
+ }
22376
+ if (typeof xdefault !== 'undefined') {
22377
+ payload['default'] = xdefault;
22378
+ }
22379
+ if (typeof newKey !== 'undefined') {
22380
+ payload['newKey'] = newKey;
22381
+ }
22382
+ const uri = new URL(this.client.config.endpoint + apiPath);
22383
+ const apiHeaders = {
22384
+ 'content-type': 'application/json',
22385
+ };
22386
+ return this.client.call('patch', uri, apiHeaders, payload);
22387
+ }
21343
22388
  createUrlColumn(paramsOrFirst, ...rest) {
21344
22389
  let params;
21345
22390
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21446,6 +22491,125 @@ class TablesDB {
21446
22491
  };
21447
22492
  return this.client.call('patch', uri, apiHeaders, payload);
21448
22493
  }
22494
+ createVarcharColumn(paramsOrFirst, ...rest) {
22495
+ let params;
22496
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22497
+ params = (paramsOrFirst || {});
22498
+ }
22499
+ else {
22500
+ params = {
22501
+ databaseId: paramsOrFirst,
22502
+ tableId: rest[0],
22503
+ key: rest[1],
22504
+ size: rest[2],
22505
+ required: rest[3],
22506
+ xdefault: rest[4],
22507
+ array: rest[5]
22508
+ };
22509
+ }
22510
+ const databaseId = params.databaseId;
22511
+ const tableId = params.tableId;
22512
+ const key = params.key;
22513
+ const size = params.size;
22514
+ const required = params.required;
22515
+ const xdefault = params.xdefault;
22516
+ const array = params.array;
22517
+ if (typeof databaseId === 'undefined') {
22518
+ throw new AppwriteException('Missing required parameter: "databaseId"');
22519
+ }
22520
+ if (typeof tableId === 'undefined') {
22521
+ throw new AppwriteException('Missing required parameter: "tableId"');
22522
+ }
22523
+ if (typeof key === 'undefined') {
22524
+ throw new AppwriteException('Missing required parameter: "key"');
22525
+ }
22526
+ if (typeof size === 'undefined') {
22527
+ throw new AppwriteException('Missing required parameter: "size"');
22528
+ }
22529
+ if (typeof required === 'undefined') {
22530
+ throw new AppwriteException('Missing required parameter: "required"');
22531
+ }
22532
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
22533
+ const payload = {};
22534
+ if (typeof key !== 'undefined') {
22535
+ payload['key'] = key;
22536
+ }
22537
+ if (typeof size !== 'undefined') {
22538
+ payload['size'] = size;
22539
+ }
22540
+ if (typeof required !== 'undefined') {
22541
+ payload['required'] = required;
22542
+ }
22543
+ if (typeof xdefault !== 'undefined') {
22544
+ payload['default'] = xdefault;
22545
+ }
22546
+ if (typeof array !== 'undefined') {
22547
+ payload['array'] = array;
22548
+ }
22549
+ const uri = new URL(this.client.config.endpoint + apiPath);
22550
+ const apiHeaders = {
22551
+ 'content-type': 'application/json',
22552
+ };
22553
+ return this.client.call('post', uri, apiHeaders, payload);
22554
+ }
22555
+ updateVarcharColumn(paramsOrFirst, ...rest) {
22556
+ let params;
22557
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
22558
+ params = (paramsOrFirst || {});
22559
+ }
22560
+ else {
22561
+ params = {
22562
+ databaseId: paramsOrFirst,
22563
+ tableId: rest[0],
22564
+ key: rest[1],
22565
+ required: rest[2],
22566
+ xdefault: rest[3],
22567
+ size: rest[4],
22568
+ newKey: rest[5]
22569
+ };
22570
+ }
22571
+ const databaseId = params.databaseId;
22572
+ const tableId = params.tableId;
22573
+ const key = params.key;
22574
+ const required = params.required;
22575
+ const xdefault = params.xdefault;
22576
+ const size = params.size;
22577
+ const newKey = params.newKey;
22578
+ if (typeof databaseId === 'undefined') {
22579
+ throw new AppwriteException('Missing required parameter: "databaseId"');
22580
+ }
22581
+ if (typeof tableId === 'undefined') {
22582
+ throw new AppwriteException('Missing required parameter: "tableId"');
22583
+ }
22584
+ if (typeof key === 'undefined') {
22585
+ throw new AppwriteException('Missing required parameter: "key"');
22586
+ }
22587
+ if (typeof required === 'undefined') {
22588
+ throw new AppwriteException('Missing required parameter: "required"');
22589
+ }
22590
+ if (typeof xdefault === 'undefined') {
22591
+ throw new AppwriteException('Missing required parameter: "xdefault"');
22592
+ }
22593
+ const apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
22594
+ const payload = {};
22595
+ if (typeof required !== 'undefined') {
22596
+ payload['required'] = required;
22597
+ }
22598
+ if (typeof xdefault !== 'undefined') {
22599
+ payload['default'] = xdefault;
22600
+ }
22601
+ if (typeof size !== 'undefined') {
22602
+ payload['size'] = size;
22603
+ }
22604
+ if (typeof newKey !== 'undefined') {
22605
+ payload['newKey'] = newKey;
22606
+ }
22607
+ const uri = new URL(this.client.config.endpoint + apiPath);
22608
+ const apiHeaders = {
22609
+ 'content-type': 'application/json',
22610
+ };
22611
+ return this.client.call('patch', uri, apiHeaders, payload);
22612
+ }
21449
22613
  getColumn(paramsOrFirst, ...rest) {
21450
22614
  let params;
21451
22615
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25411,18 +26575,21 @@ class Channel {
25411
26575
  return id === "*" ? "account" : `account.${id}`;
25412
26576
  }
25413
26577
  // Global events
25414
- static get documents() {
26578
+ static documents() {
25415
26579
  return "documents";
25416
26580
  }
25417
- static get rows() {
26581
+ static rows() {
25418
26582
  return "rows";
25419
26583
  }
25420
- static get files() {
26584
+ static files() {
25421
26585
  return "files";
25422
26586
  }
25423
- static get executions() {
26587
+ static executions() {
25424
26588
  return "executions";
25425
26589
  }
26590
+ static teams() {
26591
+ return "teams";
26592
+ }
25426
26593
  }
25427
26594
 
25428
26595
  var Condition;
@@ -25690,6 +26857,73 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
25690
26857
  */
25691
26858
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
25692
26859
 
26860
+ var Scopes;
26861
+ (function (Scopes) {
26862
+ Scopes["SessionsWrite"] = "sessions.write";
26863
+ Scopes["UsersRead"] = "users.read";
26864
+ Scopes["UsersWrite"] = "users.write";
26865
+ Scopes["TeamsRead"] = "teams.read";
26866
+ Scopes["TeamsWrite"] = "teams.write";
26867
+ Scopes["DatabasesRead"] = "databases.read";
26868
+ Scopes["DatabasesWrite"] = "databases.write";
26869
+ Scopes["CollectionsRead"] = "collections.read";
26870
+ Scopes["CollectionsWrite"] = "collections.write";
26871
+ Scopes["TablesRead"] = "tables.read";
26872
+ Scopes["TablesWrite"] = "tables.write";
26873
+ Scopes["AttributesRead"] = "attributes.read";
26874
+ Scopes["AttributesWrite"] = "attributes.write";
26875
+ Scopes["ColumnsRead"] = "columns.read";
26876
+ Scopes["ColumnsWrite"] = "columns.write";
26877
+ Scopes["IndexesRead"] = "indexes.read";
26878
+ Scopes["IndexesWrite"] = "indexes.write";
26879
+ Scopes["DocumentsRead"] = "documents.read";
26880
+ Scopes["DocumentsWrite"] = "documents.write";
26881
+ Scopes["RowsRead"] = "rows.read";
26882
+ Scopes["RowsWrite"] = "rows.write";
26883
+ Scopes["FilesRead"] = "files.read";
26884
+ Scopes["FilesWrite"] = "files.write";
26885
+ Scopes["BucketsRead"] = "buckets.read";
26886
+ Scopes["BucketsWrite"] = "buckets.write";
26887
+ Scopes["FunctionsRead"] = "functions.read";
26888
+ Scopes["FunctionsWrite"] = "functions.write";
26889
+ Scopes["SitesRead"] = "sites.read";
26890
+ Scopes["SitesWrite"] = "sites.write";
26891
+ Scopes["LogRead"] = "log.read";
26892
+ Scopes["LogWrite"] = "log.write";
26893
+ Scopes["ExecutionRead"] = "execution.read";
26894
+ Scopes["ExecutionWrite"] = "execution.write";
26895
+ Scopes["LocaleRead"] = "locale.read";
26896
+ Scopes["AvatarsRead"] = "avatars.read";
26897
+ Scopes["HealthRead"] = "health.read";
26898
+ Scopes["ProvidersRead"] = "providers.read";
26899
+ Scopes["ProvidersWrite"] = "providers.write";
26900
+ Scopes["MessagesRead"] = "messages.read";
26901
+ Scopes["MessagesWrite"] = "messages.write";
26902
+ Scopes["TopicsRead"] = "topics.read";
26903
+ Scopes["TopicsWrite"] = "topics.write";
26904
+ Scopes["SubscribersRead"] = "subscribers.read";
26905
+ Scopes["SubscribersWrite"] = "subscribers.write";
26906
+ Scopes["TargetsRead"] = "targets.read";
26907
+ Scopes["TargetsWrite"] = "targets.write";
26908
+ Scopes["RulesRead"] = "rules.read";
26909
+ Scopes["RulesWrite"] = "rules.write";
26910
+ Scopes["MigrationsRead"] = "migrations.read";
26911
+ Scopes["MigrationsWrite"] = "migrations.write";
26912
+ Scopes["VcsRead"] = "vcs.read";
26913
+ Scopes["VcsWrite"] = "vcs.write";
26914
+ Scopes["AssistantRead"] = "assistant.read";
26915
+ Scopes["TokensRead"] = "tokens.read";
26916
+ Scopes["TokensWrite"] = "tokens.write";
26917
+ Scopes["PoliciesWrite"] = "policies.write";
26918
+ Scopes["PoliciesRead"] = "policies.read";
26919
+ Scopes["ArchivesRead"] = "archives.read";
26920
+ Scopes["ArchivesWrite"] = "archives.write";
26921
+ Scopes["RestorationsRead"] = "restorations.read";
26922
+ Scopes["RestorationsWrite"] = "restorations.write";
26923
+ Scopes["DomainsRead"] = "domains.read";
26924
+ Scopes["DomainsWrite"] = "domains.write";
26925
+ })(Scopes || (Scopes = {}));
26926
+
25693
26927
  var AuthenticatorType;
25694
26928
  (function (AuthenticatorType) {
25695
26929
  AuthenticatorType["Totp"] = "totp";
@@ -26415,6 +27649,30 @@ var Timezone;
26415
27649
  Timezone["Utc"] = "utc";
26416
27650
  })(Timezone || (Timezone = {}));
26417
27651
 
27652
+ var BrowserPermission;
27653
+ (function (BrowserPermission) {
27654
+ BrowserPermission["Geolocation"] = "geolocation";
27655
+ BrowserPermission["Camera"] = "camera";
27656
+ BrowserPermission["Microphone"] = "microphone";
27657
+ BrowserPermission["Notifications"] = "notifications";
27658
+ BrowserPermission["Midi"] = "midi";
27659
+ BrowserPermission["Push"] = "push";
27660
+ BrowserPermission["Clipboardread"] = "clipboard-read";
27661
+ BrowserPermission["Clipboardwrite"] = "clipboard-write";
27662
+ BrowserPermission["Paymenthandler"] = "payment-handler";
27663
+ BrowserPermission["Usb"] = "usb";
27664
+ BrowserPermission["Bluetooth"] = "bluetooth";
27665
+ BrowserPermission["Accelerometer"] = "accelerometer";
27666
+ BrowserPermission["Gyroscope"] = "gyroscope";
27667
+ BrowserPermission["Magnetometer"] = "magnetometer";
27668
+ BrowserPermission["Ambientlightsensor"] = "ambient-light-sensor";
27669
+ BrowserPermission["Backgroundsync"] = "background-sync";
27670
+ BrowserPermission["Persistentstorage"] = "persistent-storage";
27671
+ BrowserPermission["Screenwakelock"] = "screen-wake-lock";
27672
+ BrowserPermission["Webshare"] = "web-share";
27673
+ BrowserPermission["Xrspatialtracking"] = "xr-spatial-tracking";
27674
+ })(BrowserPermission || (BrowserPermission = {}));
27675
+
26418
27676
  var ImageFormat;
26419
27677
  (function (ImageFormat) {
26420
27678
  ImageFormat["Jpg"] = "jpg";
@@ -26426,6 +27684,13 @@ var ImageFormat;
26426
27684
  ImageFormat["Gif"] = "gif";
26427
27685
  })(ImageFormat || (ImageFormat = {}));
26428
27686
 
27687
+ var Services;
27688
+ (function (Services) {
27689
+ Services["Databases"] = "databases";
27690
+ Services["Functions"] = "functions";
27691
+ Services["Storage"] = "storage";
27692
+ })(Services || (Services = {}));
27693
+
26429
27694
  var Platform;
26430
27695
  (function (Platform) {
26431
27696
  Platform["Appwrite"] = "appwrite";
@@ -26467,6 +27732,12 @@ var IndexType;
26467
27732
  IndexType["Spatial"] = "spatial";
26468
27733
  })(IndexType || (IndexType = {}));
26469
27734
 
27735
+ var OrderBy;
27736
+ (function (OrderBy) {
27737
+ OrderBy["Asc"] = "asc";
27738
+ OrderBy["Desc"] = "desc";
27739
+ })(OrderBy || (OrderBy = {}));
27740
+
26470
27741
  var FilterType;
26471
27742
  (function (FilterType) {
26472
27743
  FilterType["Premium"] = "premium";
@@ -26541,6 +27812,87 @@ var Runtime;
26541
27812
  Runtime["Flutter335"] = "flutter-3.35";
26542
27813
  })(Runtime || (Runtime = {}));
26543
27814
 
27815
+ var Runtimes;
27816
+ (function (Runtimes) {
27817
+ Runtimes["Node145"] = "node-14.5";
27818
+ Runtimes["Node160"] = "node-16.0";
27819
+ Runtimes["Node180"] = "node-18.0";
27820
+ Runtimes["Node190"] = "node-19.0";
27821
+ Runtimes["Node200"] = "node-20.0";
27822
+ Runtimes["Node210"] = "node-21.0";
27823
+ Runtimes["Node22"] = "node-22";
27824
+ Runtimes["Php80"] = "php-8.0";
27825
+ Runtimes["Php81"] = "php-8.1";
27826
+ Runtimes["Php82"] = "php-8.2";
27827
+ Runtimes["Php83"] = "php-8.3";
27828
+ Runtimes["Ruby30"] = "ruby-3.0";
27829
+ Runtimes["Ruby31"] = "ruby-3.1";
27830
+ Runtimes["Ruby32"] = "ruby-3.2";
27831
+ Runtimes["Ruby33"] = "ruby-3.3";
27832
+ Runtimes["Python38"] = "python-3.8";
27833
+ Runtimes["Python39"] = "python-3.9";
27834
+ Runtimes["Python310"] = "python-3.10";
27835
+ Runtimes["Python311"] = "python-3.11";
27836
+ Runtimes["Python312"] = "python-3.12";
27837
+ Runtimes["Pythonml311"] = "python-ml-3.11";
27838
+ Runtimes["Pythonml312"] = "python-ml-3.12";
27839
+ Runtimes["Deno140"] = "deno-1.40";
27840
+ Runtimes["Deno146"] = "deno-1.46";
27841
+ Runtimes["Deno20"] = "deno-2.0";
27842
+ Runtimes["Dart215"] = "dart-2.15";
27843
+ Runtimes["Dart216"] = "dart-2.16";
27844
+ Runtimes["Dart217"] = "dart-2.17";
27845
+ Runtimes["Dart218"] = "dart-2.18";
27846
+ Runtimes["Dart219"] = "dart-2.19";
27847
+ Runtimes["Dart30"] = "dart-3.0";
27848
+ Runtimes["Dart31"] = "dart-3.1";
27849
+ Runtimes["Dart33"] = "dart-3.3";
27850
+ Runtimes["Dart35"] = "dart-3.5";
27851
+ Runtimes["Dart38"] = "dart-3.8";
27852
+ Runtimes["Dart39"] = "dart-3.9";
27853
+ Runtimes["Dotnet60"] = "dotnet-6.0";
27854
+ Runtimes["Dotnet70"] = "dotnet-7.0";
27855
+ Runtimes["Dotnet80"] = "dotnet-8.0";
27856
+ Runtimes["Java80"] = "java-8.0";
27857
+ Runtimes["Java110"] = "java-11.0";
27858
+ Runtimes["Java170"] = "java-17.0";
27859
+ Runtimes["Java180"] = "java-18.0";
27860
+ Runtimes["Java210"] = "java-21.0";
27861
+ Runtimes["Java22"] = "java-22";
27862
+ Runtimes["Swift55"] = "swift-5.5";
27863
+ Runtimes["Swift58"] = "swift-5.8";
27864
+ Runtimes["Swift59"] = "swift-5.9";
27865
+ Runtimes["Swift510"] = "swift-5.10";
27866
+ Runtimes["Kotlin16"] = "kotlin-1.6";
27867
+ Runtimes["Kotlin18"] = "kotlin-1.8";
27868
+ Runtimes["Kotlin19"] = "kotlin-1.9";
27869
+ Runtimes["Kotlin20"] = "kotlin-2.0";
27870
+ Runtimes["Cpp17"] = "cpp-17";
27871
+ Runtimes["Cpp20"] = "cpp-20";
27872
+ Runtimes["Bun10"] = "bun-1.0";
27873
+ Runtimes["Bun11"] = "bun-1.1";
27874
+ Runtimes["Go123"] = "go-1.23";
27875
+ Runtimes["Static1"] = "static-1";
27876
+ Runtimes["Flutter324"] = "flutter-3.24";
27877
+ Runtimes["Flutter327"] = "flutter-3.27";
27878
+ Runtimes["Flutter329"] = "flutter-3.29";
27879
+ Runtimes["Flutter332"] = "flutter-3.32";
27880
+ Runtimes["Flutter335"] = "flutter-3.35";
27881
+ })(Runtimes || (Runtimes = {}));
27882
+
27883
+ var UseCases;
27884
+ (function (UseCases) {
27885
+ UseCases["Portfolio"] = "portfolio";
27886
+ UseCases["Starter"] = "starter";
27887
+ UseCases["Events"] = "events";
27888
+ UseCases["Ecommerce"] = "ecommerce";
27889
+ UseCases["Documentation"] = "documentation";
27890
+ UseCases["Blog"] = "blog";
27891
+ UseCases["Ai"] = "ai";
27892
+ UseCases["Forms"] = "forms";
27893
+ UseCases["Dashboard"] = "dashboard";
27894
+ })(UseCases || (UseCases = {}));
27895
+
26544
27896
  var TemplateReferenceType;
26545
27897
  (function (TemplateReferenceType) {
26546
27898
  TemplateReferenceType["Branch"] = "branch";
@@ -26602,24 +27954,20 @@ var SmtpEncryption;
26602
27954
  SmtpEncryption["Tls"] = "tls";
26603
27955
  })(SmtpEncryption || (SmtpEncryption = {}));
26604
27956
 
26605
- var BillingPlan;
26606
- (function (BillingPlan) {
26607
- BillingPlan["Tier0"] = "tier-0";
26608
- BillingPlan["Tier1"] = "tier-1";
26609
- BillingPlan["Tier2"] = "tier-2";
26610
- BillingPlan["Imaginetier0"] = "imagine-tier-0";
26611
- BillingPlan["Imaginetier1"] = "imagine-tier-1";
26612
- BillingPlan["Imaginetier150"] = "imagine-tier-1-50";
26613
- BillingPlan["Imaginetier1100"] = "imagine-tier-1-100";
26614
- BillingPlan["Imaginetier1200"] = "imagine-tier-1-200";
26615
- BillingPlan["Imaginetier1290"] = "imagine-tier-1-290";
26616
- BillingPlan["Imaginetier1480"] = "imagine-tier-1-480";
26617
- BillingPlan["Imaginetier1700"] = "imagine-tier-1-700";
26618
- BillingPlan["Imaginetier1900"] = "imagine-tier-1-900";
26619
- BillingPlan["Imaginetier11100"] = "imagine-tier-1-1100";
26620
- BillingPlan["Imaginetier11650"] = "imagine-tier-1-1650";
26621
- BillingPlan["Imaginetier12200"] = "imagine-tier-1-2200";
26622
- })(BillingPlan || (BillingPlan = {}));
27957
+ var Resources;
27958
+ (function (Resources) {
27959
+ Resources["User"] = "user";
27960
+ Resources["Database"] = "database";
27961
+ Resources["Table"] = "table";
27962
+ Resources["Column"] = "column";
27963
+ Resources["Index"] = "index";
27964
+ Resources["Row"] = "row";
27965
+ Resources["Document"] = "document";
27966
+ Resources["Attribute"] = "attribute";
27967
+ Resources["Collection"] = "collection";
27968
+ Resources["Bucket"] = "bucket";
27969
+ Resources["File"] = "file";
27970
+ })(Resources || (Resources = {}));
26623
27971
 
26624
27972
  var ProjectUsageRange;
26625
27973
  (function (ProjectUsageRange) {
@@ -27099,6 +28447,25 @@ var Adapter;
27099
28447
  Adapter["Ssr"] = "ssr";
27100
28448
  })(Adapter || (Adapter = {}));
27101
28449
 
28450
+ var Frameworks;
28451
+ (function (Frameworks) {
28452
+ Frameworks["Analog"] = "analog";
28453
+ Frameworks["Angular"] = "angular";
28454
+ Frameworks["Nextjs"] = "nextjs";
28455
+ Frameworks["React"] = "react";
28456
+ Frameworks["Nuxt"] = "nuxt";
28457
+ Frameworks["Vue"] = "vue";
28458
+ Frameworks["Sveltekit"] = "sveltekit";
28459
+ Frameworks["Astro"] = "astro";
28460
+ Frameworks["Tanstackstart"] = "tanstack-start";
28461
+ Frameworks["Remix"] = "remix";
28462
+ Frameworks["Lynx"] = "lynx";
28463
+ Frameworks["Flutter"] = "flutter";
28464
+ Frameworks["Reactnative"] = "react-native";
28465
+ Frameworks["Vite"] = "vite";
28466
+ Frameworks["Other"] = "other";
28467
+ })(Frameworks || (Frameworks = {}));
28468
+
27102
28469
  var Compression;
27103
28470
  (function (Compression) {
27104
28471
  Compression["None"] = "none";
@@ -27119,6 +28486,15 @@ var ImageGravity;
27119
28486
  ImageGravity["Bottomright"] = "bottom-right";
27120
28487
  })(ImageGravity || (ImageGravity = {}));
27121
28488
 
28489
+ var Roles;
28490
+ (function (Roles) {
28491
+ Roles["Developer"] = "developer";
28492
+ Roles["Editor"] = "editor";
28493
+ Roles["Analyst"] = "analyst";
28494
+ Roles["Billing"] = "billing";
28495
+ Roles["Owner"] = "owner";
28496
+ })(Roles || (Roles = {}));
28497
+
27122
28498
  var PasswordHash;
27123
28499
  (function (PasswordHash) {
27124
28500
  PasswordHash["Sha1"] = "sha1";
@@ -27186,6 +28562,7 @@ var DeploymentStatus;
27186
28562
  DeploymentStatus["Processing"] = "processing";
27187
28563
  DeploymentStatus["Building"] = "building";
27188
28564
  DeploymentStatus["Ready"] = "ready";
28565
+ DeploymentStatus["Canceled"] = "canceled";
27189
28566
  DeploymentStatus["Failed"] = "failed";
27190
28567
  })(DeploymentStatus || (DeploymentStatus = {}));
27191
28568
 
@@ -27248,5 +28625,5 @@ var BillingPlanGroup;
27248
28625
  BillingPlanGroup["Scale"] = "scale";
27249
28626
  })(BillingPlanGroup || (BillingPlanGroup = {}));
27250
28627
 
27251
- export { Account, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Backups, BillingPlan, BillingPlanGroup, Browser, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, Flag, Framework, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Operator, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RelationMutate, RelationshipType, Role, Runtime, SMTPSecure, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs };
28628
+ export { Account, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, 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, RelationMutate, RelationshipType, Resources, Role, Roles, Runtime, Runtimes, SMTPSecure, Scopes, Services, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
27252
28629
  //# sourceMappingURL=sdk.js.map