@appwrite.io/console 15.7.0 → 15.8.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.
package/README.md CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.7.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.8.0"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -647,7 +647,7 @@ class Client {
647
647
  'x-sdk-name': 'Console',
648
648
  'x-sdk-platform': 'console',
649
649
  'x-sdk-language': 'web',
650
- 'x-sdk-version': '15.7.0',
650
+ 'x-sdk-version': '15.8.0',
651
651
  'X-Appwrite-Response-Format': '1.9.5',
652
652
  };
653
653
  this.realtime = {
@@ -9517,7 +9517,8 @@ class DocumentsDB {
9517
9517
  name: rest[0],
9518
9518
  enabled: rest[1],
9519
9519
  specification: rest[2],
9520
- replicas: rest[3]
9520
+ replicas: rest[3],
9521
+ syncMode: rest[4]
9521
9522
  };
9522
9523
  }
9523
9524
  const databaseId = params.databaseId;
@@ -9525,6 +9526,7 @@ class DocumentsDB {
9525
9526
  const enabled = params.enabled;
9526
9527
  const specification = params.specification;
9527
9528
  const replicas = params.replicas;
9529
+ const syncMode = params.syncMode;
9528
9530
  if (typeof databaseId === 'undefined') {
9529
9531
  throw new AppwriteException('Missing required parameter: "databaseId"');
9530
9532
  }
@@ -9548,6 +9550,9 @@ class DocumentsDB {
9548
9550
  if (typeof replicas !== 'undefined') {
9549
9551
  payload['replicas'] = replicas;
9550
9552
  }
9553
+ if (typeof syncMode !== 'undefined') {
9554
+ payload['syncMode'] = syncMode;
9555
+ }
9551
9556
  const uri = new URL(this.client.config.endpoint + apiPath);
9552
9557
  const apiHeaders = {
9553
9558
  'X-Appwrite-Project': this.client.config.project,
@@ -9733,7 +9738,8 @@ class DocumentsDB {
9733
9738
  name: rest[0],
9734
9739
  enabled: rest[1],
9735
9740
  specification: rest[2],
9736
- replicas: rest[3]
9741
+ replicas: rest[3],
9742
+ syncMode: rest[4]
9737
9743
  };
9738
9744
  }
9739
9745
  const databaseId = params.databaseId;
@@ -9741,6 +9747,7 @@ class DocumentsDB {
9741
9747
  const enabled = params.enabled;
9742
9748
  const specification = params.specification;
9743
9749
  const replicas = params.replicas;
9750
+ const syncMode = params.syncMode;
9744
9751
  if (typeof databaseId === 'undefined') {
9745
9752
  throw new AppwriteException('Missing required parameter: "databaseId"');
9746
9753
  }
@@ -9761,6 +9768,9 @@ class DocumentsDB {
9761
9768
  if (typeof replicas !== 'undefined') {
9762
9769
  payload['replicas'] = replicas;
9763
9770
  }
9771
+ if (typeof syncMode !== 'undefined') {
9772
+ payload['syncMode'] = syncMode;
9773
+ }
9764
9774
  const uri = new URL(this.client.config.endpoint + apiPath);
9765
9775
  const apiHeaders = {
9766
9776
  'X-Appwrite-Project': this.client.config.project,
@@ -18481,8 +18491,7 @@ class Mongo {
18481
18491
  pitrRetentionDays: rest[10],
18482
18492
  storageAutoscaling: rest[11],
18483
18493
  storageAutoscalingThresholdPercent: rest[12],
18484
- storageAutoscalingMaxGb: rest[13],
18485
- api: rest[14]
18494
+ storageAutoscalingMaxGb: rest[13]
18486
18495
  };
18487
18496
  }
18488
18497
  const databaseId = params.databaseId;
@@ -18500,7 +18509,6 @@ class Mongo {
18500
18509
  const storageAutoscaling = params.storageAutoscaling;
18501
18510
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
18502
18511
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
18503
- const api = params.api;
18504
18512
  if (typeof databaseId === 'undefined') {
18505
18513
  throw new AppwriteException('Missing required parameter: "databaseId"');
18506
18514
  }
@@ -18554,9 +18562,6 @@ class Mongo {
18554
18562
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
18555
18563
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
18556
18564
  }
18557
- if (typeof api !== 'undefined') {
18558
- payload['api'] = api;
18559
- }
18560
18565
  const uri = new URL(this.client.config.endpoint + apiPath);
18561
18566
  const apiHeaders = {
18562
18567
  'X-Appwrite-Project': this.client.config.project,
@@ -19662,8 +19667,7 @@ class Mysql {
19662
19667
  pitrRetentionDays: rest[10],
19663
19668
  storageAutoscaling: rest[11],
19664
19669
  storageAutoscalingThresholdPercent: rest[12],
19665
- storageAutoscalingMaxGb: rest[13],
19666
- api: rest[14]
19670
+ storageAutoscalingMaxGb: rest[13]
19667
19671
  };
19668
19672
  }
19669
19673
  const databaseId = params.databaseId;
@@ -19681,7 +19685,6 @@ class Mysql {
19681
19685
  const storageAutoscaling = params.storageAutoscaling;
19682
19686
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
19683
19687
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
19684
- const api = params.api;
19685
19688
  if (typeof databaseId === 'undefined') {
19686
19689
  throw new AppwriteException('Missing required parameter: "databaseId"');
19687
19690
  }
@@ -19735,9 +19738,6 @@ class Mysql {
19735
19738
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
19736
19739
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
19737
19740
  }
19738
- if (typeof api !== 'undefined') {
19739
- payload['api'] = api;
19740
- }
19741
19741
  const uri = new URL(this.client.config.endpoint + apiPath);
19742
19742
  const apiHeaders = {
19743
19743
  'X-Appwrite-Project': this.client.config.project,
@@ -23851,8 +23851,7 @@ class Postgresql {
23851
23851
  pitrRetentionDays: rest[10],
23852
23852
  storageAutoscaling: rest[11],
23853
23853
  storageAutoscalingThresholdPercent: rest[12],
23854
- storageAutoscalingMaxGb: rest[13],
23855
- api: rest[14]
23854
+ storageAutoscalingMaxGb: rest[13]
23856
23855
  };
23857
23856
  }
23858
23857
  const databaseId = params.databaseId;
@@ -23870,7 +23869,6 @@ class Postgresql {
23870
23869
  const storageAutoscaling = params.storageAutoscaling;
23871
23870
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
23872
23871
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
23873
- const api = params.api;
23874
23872
  if (typeof databaseId === 'undefined') {
23875
23873
  throw new AppwriteException('Missing required parameter: "databaseId"');
23876
23874
  }
@@ -23924,9 +23922,6 @@ class Postgresql {
23924
23922
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
23925
23923
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
23926
23924
  }
23927
- if (typeof api !== 'undefined') {
23928
- payload['api'] = api;
23929
- }
23930
23925
  const uri = new URL(this.client.config.endpoint + apiPath);
23931
23926
  const apiHeaders = {
23932
23927
  'X-Appwrite-Project': this.client.config.project,
@@ -31731,7 +31726,8 @@ class TablesDB {
31731
31726
  name: rest[0],
31732
31727
  enabled: rest[1],
31733
31728
  specification: rest[2],
31734
- replicas: rest[3]
31729
+ replicas: rest[3],
31730
+ syncMode: rest[4]
31735
31731
  };
31736
31732
  }
31737
31733
  const databaseId = params.databaseId;
@@ -31739,6 +31735,7 @@ class TablesDB {
31739
31735
  const enabled = params.enabled;
31740
31736
  const specification = params.specification;
31741
31737
  const replicas = params.replicas;
31738
+ const syncMode = params.syncMode;
31742
31739
  if (typeof databaseId === 'undefined') {
31743
31740
  throw new AppwriteException('Missing required parameter: "databaseId"');
31744
31741
  }
@@ -31762,6 +31759,9 @@ class TablesDB {
31762
31759
  if (typeof replicas !== 'undefined') {
31763
31760
  payload['replicas'] = replicas;
31764
31761
  }
31762
+ if (typeof syncMode !== 'undefined') {
31763
+ payload['syncMode'] = syncMode;
31764
+ }
31765
31765
  const uri = new URL(this.client.config.endpoint + apiPath);
31766
31766
  const apiHeaders = {
31767
31767
  'X-Appwrite-Project': this.client.config.project,
@@ -31976,7 +31976,8 @@ class TablesDB {
31976
31976
  name: rest[0],
31977
31977
  enabled: rest[1],
31978
31978
  specification: rest[2],
31979
- replicas: rest[3]
31979
+ replicas: rest[3],
31980
+ syncMode: rest[4]
31980
31981
  };
31981
31982
  }
31982
31983
  const databaseId = params.databaseId;
@@ -31984,6 +31985,7 @@ class TablesDB {
31984
31985
  const enabled = params.enabled;
31985
31986
  const specification = params.specification;
31986
31987
  const replicas = params.replicas;
31988
+ const syncMode = params.syncMode;
31987
31989
  if (typeof databaseId === 'undefined') {
31988
31990
  throw new AppwriteException('Missing required parameter: "databaseId"');
31989
31991
  }
@@ -32001,6 +32003,9 @@ class TablesDB {
32001
32003
  if (typeof replicas !== 'undefined') {
32002
32004
  payload['replicas'] = replicas;
32003
32005
  }
32006
+ if (typeof syncMode !== 'undefined') {
32007
+ payload['syncMode'] = syncMode;
32008
+ }
32004
32009
  const uri = new URL(this.client.config.endpoint + apiPath);
32005
32010
  const apiHeaders = {
32006
32011
  'X-Appwrite-Project': this.client.config.project,
@@ -38455,7 +38460,8 @@ class VectorsDB {
38455
38460
  name: rest[0],
38456
38461
  enabled: rest[1],
38457
38462
  specification: rest[2],
38458
- replicas: rest[3]
38463
+ replicas: rest[3],
38464
+ syncMode: rest[4]
38459
38465
  };
38460
38466
  }
38461
38467
  const databaseId = params.databaseId;
@@ -38463,6 +38469,7 @@ class VectorsDB {
38463
38469
  const enabled = params.enabled;
38464
38470
  const specification = params.specification;
38465
38471
  const replicas = params.replicas;
38472
+ const syncMode = params.syncMode;
38466
38473
  if (typeof databaseId === 'undefined') {
38467
38474
  throw new AppwriteException('Missing required parameter: "databaseId"');
38468
38475
  }
@@ -38486,6 +38493,9 @@ class VectorsDB {
38486
38493
  if (typeof replicas !== 'undefined') {
38487
38494
  payload['replicas'] = replicas;
38488
38495
  }
38496
+ if (typeof syncMode !== 'undefined') {
38497
+ payload['syncMode'] = syncMode;
38498
+ }
38489
38499
  const uri = new URL(this.client.config.endpoint + apiPath);
38490
38500
  const apiHeaders = {
38491
38501
  'X-Appwrite-Project': this.client.config.project,
@@ -38732,7 +38742,8 @@ class VectorsDB {
38732
38742
  name: rest[0],
38733
38743
  enabled: rest[1],
38734
38744
  specification: rest[2],
38735
- replicas: rest[3]
38745
+ replicas: rest[3],
38746
+ syncMode: rest[4]
38736
38747
  };
38737
38748
  }
38738
38749
  const databaseId = params.databaseId;
@@ -38740,6 +38751,7 @@ class VectorsDB {
38740
38751
  const enabled = params.enabled;
38741
38752
  const specification = params.specification;
38742
38753
  const replicas = params.replicas;
38754
+ const syncMode = params.syncMode;
38743
38755
  if (typeof databaseId === 'undefined') {
38744
38756
  throw new AppwriteException('Missing required parameter: "databaseId"');
38745
38757
  }
@@ -38760,6 +38772,9 @@ class VectorsDB {
38760
38772
  if (typeof replicas !== 'undefined') {
38761
38773
  payload['replicas'] = replicas;
38762
38774
  }
38775
+ if (typeof syncMode !== 'undefined') {
38776
+ payload['syncMode'] = syncMode;
38777
+ }
38763
38778
  const uri = new URL(this.client.config.endpoint + apiPath);
38764
38779
  const apiHeaders = {
38765
38780
  'X-Appwrite-Project': this.client.config.project,
@@ -39954,7 +39969,9 @@ class Waf {
39954
39969
  challengeType: rest[4],
39955
39970
  priority: rest[5],
39956
39971
  enabled: rest[6],
39957
- conditions: rest[7]
39972
+ conditions: rest[7],
39973
+ difficulty: rest[8],
39974
+ ttl: rest[9]
39958
39975
  };
39959
39976
  }
39960
39977
  const ruleId = params.ruleId;
@@ -39966,6 +39983,8 @@ class Waf {
39966
39983
  const priority = params.priority;
39967
39984
  const enabled = params.enabled;
39968
39985
  const conditions = params.conditions;
39986
+ const difficulty = params.difficulty;
39987
+ const ttl = params.ttl;
39969
39988
  if (typeof ruleId === 'undefined') {
39970
39989
  throw new AppwriteException('Missing required parameter: "ruleId"');
39971
39990
  }
@@ -40004,6 +40023,12 @@ class Waf {
40004
40023
  if (typeof conditions !== 'undefined') {
40005
40024
  payload['conditions'] = conditions;
40006
40025
  }
40026
+ if (typeof difficulty !== 'undefined') {
40027
+ payload['difficulty'] = difficulty;
40028
+ }
40029
+ if (typeof ttl !== 'undefined') {
40030
+ payload['ttl'] = ttl;
40031
+ }
40007
40032
  const uri = new URL(this.client.config.endpoint + apiPath);
40008
40033
  const apiHeaders = {
40009
40034
  'X-Appwrite-Project': this.client.config.project,
@@ -40027,7 +40052,9 @@ class Waf {
40027
40052
  challengeType: rest[4],
40028
40053
  priority: rest[5],
40029
40054
  enabled: rest[6],
40030
- conditions: rest[7]
40055
+ conditions: rest[7],
40056
+ difficulty: rest[8],
40057
+ ttl: rest[9]
40031
40058
  };
40032
40059
  }
40033
40060
  const ruleId = params.ruleId;
@@ -40039,6 +40066,8 @@ class Waf {
40039
40066
  const priority = params.priority;
40040
40067
  const enabled = params.enabled;
40041
40068
  const conditions = params.conditions;
40069
+ const difficulty = params.difficulty;
40070
+ const ttl = params.ttl;
40042
40071
  if (typeof ruleId === 'undefined') {
40043
40072
  throw new AppwriteException('Missing required parameter: "ruleId"');
40044
40073
  }
@@ -40068,6 +40097,12 @@ class Waf {
40068
40097
  if (typeof conditions !== 'undefined') {
40069
40098
  payload['conditions'] = conditions;
40070
40099
  }
40100
+ if (typeof difficulty !== 'undefined') {
40101
+ payload['difficulty'] = difficulty;
40102
+ }
40103
+ if (typeof ttl !== 'undefined') {
40104
+ payload['ttl'] = ttl;
40105
+ }
40071
40106
  const uri = new URL(this.client.config.endpoint + apiPath);
40072
40107
  const apiHeaders = {
40073
40108
  'X-Appwrite-Project': this.client.config.project,
@@ -40217,9 +40252,10 @@ class Waf {
40217
40252
  interval: rest[3],
40218
40253
  resourceId: rest[4],
40219
40254
  description: rest[5],
40220
- priority: rest[6],
40221
- enabled: rest[7],
40222
- conditions: rest[8]
40255
+ key: rest[6],
40256
+ priority: rest[7],
40257
+ enabled: rest[8],
40258
+ conditions: rest[9]
40223
40259
  };
40224
40260
  }
40225
40261
  const ruleId = params.ruleId;
@@ -40229,6 +40265,7 @@ class Waf {
40229
40265
  const interval = params.interval;
40230
40266
  const resourceId = params.resourceId;
40231
40267
  const description = params.description;
40268
+ const key = params.key;
40232
40269
  const priority = params.priority;
40233
40270
  const enabled = params.enabled;
40234
40271
  const conditions = params.conditions;
@@ -40270,6 +40307,9 @@ class Waf {
40270
40307
  if (typeof interval !== 'undefined') {
40271
40308
  payload['interval'] = interval;
40272
40309
  }
40310
+ if (typeof key !== 'undefined') {
40311
+ payload['key'] = key;
40312
+ }
40273
40313
  if (typeof priority !== 'undefined') {
40274
40314
  payload['priority'] = priority;
40275
40315
  }
@@ -40301,9 +40341,10 @@ class Waf {
40301
40341
  description: rest[3],
40302
40342
  limit: rest[4],
40303
40343
  interval: rest[5],
40304
- priority: rest[6],
40305
- enabled: rest[7],
40306
- conditions: rest[8]
40344
+ key: rest[6],
40345
+ priority: rest[7],
40346
+ enabled: rest[8],
40347
+ conditions: rest[9]
40307
40348
  };
40308
40349
  }
40309
40350
  const ruleId = params.ruleId;
@@ -40313,6 +40354,7 @@ class Waf {
40313
40354
  const description = params.description;
40314
40355
  const limit = params.limit;
40315
40356
  const interval = params.interval;
40357
+ const key = params.key;
40316
40358
  const priority = params.priority;
40317
40359
  const enabled = params.enabled;
40318
40360
  const conditions = params.conditions;
@@ -40339,6 +40381,9 @@ class Waf {
40339
40381
  if (typeof interval !== 'undefined') {
40340
40382
  payload['interval'] = interval;
40341
40383
  }
40384
+ if (typeof key !== 'undefined') {
40385
+ payload['key'] = key;
40386
+ }
40342
40387
  if (typeof priority !== 'undefined') {
40343
40388
  payload['priority'] = priority;
40344
40389
  }
@@ -43021,6 +43066,7 @@ exports.Runtime = void 0;
43021
43066
  Runtime["Node23"] = "node-23";
43022
43067
  Runtime["Node24"] = "node-24";
43023
43068
  Runtime["Node25"] = "node-25";
43069
+ Runtime["Node26"] = "node-26";
43024
43070
  Runtime["Php80"] = "php-8.0";
43025
43071
  Runtime["Php81"] = "php-8.1";
43026
43072
  Runtime["Php82"] = "php-8.2";
@@ -43634,6 +43680,7 @@ exports.BuildRuntime = void 0;
43634
43680
  BuildRuntime["Node23"] = "node-23";
43635
43681
  BuildRuntime["Node24"] = "node-24";
43636
43682
  BuildRuntime["Node25"] = "node-25";
43683
+ BuildRuntime["Node26"] = "node-26";
43637
43684
  BuildRuntime["Php80"] = "php-8.0";
43638
43685
  BuildRuntime["Php81"] = "php-8.1";
43639
43686
  BuildRuntime["Php82"] = "php-8.2";