@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/dist/esm/sdk.js CHANGED
@@ -645,7 +645,7 @@ class Client {
645
645
  'x-sdk-name': 'Console',
646
646
  'x-sdk-platform': 'console',
647
647
  'x-sdk-language': 'web',
648
- 'x-sdk-version': '15.7.0',
648
+ 'x-sdk-version': '15.8.0',
649
649
  'X-Appwrite-Response-Format': '1.9.5',
650
650
  };
651
651
  this.realtime = {
@@ -9515,7 +9515,8 @@ class DocumentsDB {
9515
9515
  name: rest[0],
9516
9516
  enabled: rest[1],
9517
9517
  specification: rest[2],
9518
- replicas: rest[3]
9518
+ replicas: rest[3],
9519
+ syncMode: rest[4]
9519
9520
  };
9520
9521
  }
9521
9522
  const databaseId = params.databaseId;
@@ -9523,6 +9524,7 @@ class DocumentsDB {
9523
9524
  const enabled = params.enabled;
9524
9525
  const specification = params.specification;
9525
9526
  const replicas = params.replicas;
9527
+ const syncMode = params.syncMode;
9526
9528
  if (typeof databaseId === 'undefined') {
9527
9529
  throw new AppwriteException('Missing required parameter: "databaseId"');
9528
9530
  }
@@ -9546,6 +9548,9 @@ class DocumentsDB {
9546
9548
  if (typeof replicas !== 'undefined') {
9547
9549
  payload['replicas'] = replicas;
9548
9550
  }
9551
+ if (typeof syncMode !== 'undefined') {
9552
+ payload['syncMode'] = syncMode;
9553
+ }
9549
9554
  const uri = new URL(this.client.config.endpoint + apiPath);
9550
9555
  const apiHeaders = {
9551
9556
  'X-Appwrite-Project': this.client.config.project,
@@ -9731,7 +9736,8 @@ class DocumentsDB {
9731
9736
  name: rest[0],
9732
9737
  enabled: rest[1],
9733
9738
  specification: rest[2],
9734
- replicas: rest[3]
9739
+ replicas: rest[3],
9740
+ syncMode: rest[4]
9735
9741
  };
9736
9742
  }
9737
9743
  const databaseId = params.databaseId;
@@ -9739,6 +9745,7 @@ class DocumentsDB {
9739
9745
  const enabled = params.enabled;
9740
9746
  const specification = params.specification;
9741
9747
  const replicas = params.replicas;
9748
+ const syncMode = params.syncMode;
9742
9749
  if (typeof databaseId === 'undefined') {
9743
9750
  throw new AppwriteException('Missing required parameter: "databaseId"');
9744
9751
  }
@@ -9759,6 +9766,9 @@ class DocumentsDB {
9759
9766
  if (typeof replicas !== 'undefined') {
9760
9767
  payload['replicas'] = replicas;
9761
9768
  }
9769
+ if (typeof syncMode !== 'undefined') {
9770
+ payload['syncMode'] = syncMode;
9771
+ }
9762
9772
  const uri = new URL(this.client.config.endpoint + apiPath);
9763
9773
  const apiHeaders = {
9764
9774
  'X-Appwrite-Project': this.client.config.project,
@@ -18479,8 +18489,7 @@ class Mongo {
18479
18489
  pitrRetentionDays: rest[10],
18480
18490
  storageAutoscaling: rest[11],
18481
18491
  storageAutoscalingThresholdPercent: rest[12],
18482
- storageAutoscalingMaxGb: rest[13],
18483
- api: rest[14]
18492
+ storageAutoscalingMaxGb: rest[13]
18484
18493
  };
18485
18494
  }
18486
18495
  const databaseId = params.databaseId;
@@ -18498,7 +18507,6 @@ class Mongo {
18498
18507
  const storageAutoscaling = params.storageAutoscaling;
18499
18508
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
18500
18509
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
18501
- const api = params.api;
18502
18510
  if (typeof databaseId === 'undefined') {
18503
18511
  throw new AppwriteException('Missing required parameter: "databaseId"');
18504
18512
  }
@@ -18552,9 +18560,6 @@ class Mongo {
18552
18560
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
18553
18561
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
18554
18562
  }
18555
- if (typeof api !== 'undefined') {
18556
- payload['api'] = api;
18557
- }
18558
18563
  const uri = new URL(this.client.config.endpoint + apiPath);
18559
18564
  const apiHeaders = {
18560
18565
  'X-Appwrite-Project': this.client.config.project,
@@ -19660,8 +19665,7 @@ class Mysql {
19660
19665
  pitrRetentionDays: rest[10],
19661
19666
  storageAutoscaling: rest[11],
19662
19667
  storageAutoscalingThresholdPercent: rest[12],
19663
- storageAutoscalingMaxGb: rest[13],
19664
- api: rest[14]
19668
+ storageAutoscalingMaxGb: rest[13]
19665
19669
  };
19666
19670
  }
19667
19671
  const databaseId = params.databaseId;
@@ -19679,7 +19683,6 @@ class Mysql {
19679
19683
  const storageAutoscaling = params.storageAutoscaling;
19680
19684
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
19681
19685
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
19682
- const api = params.api;
19683
19686
  if (typeof databaseId === 'undefined') {
19684
19687
  throw new AppwriteException('Missing required parameter: "databaseId"');
19685
19688
  }
@@ -19733,9 +19736,6 @@ class Mysql {
19733
19736
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
19734
19737
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
19735
19738
  }
19736
- if (typeof api !== 'undefined') {
19737
- payload['api'] = api;
19738
- }
19739
19739
  const uri = new URL(this.client.config.endpoint + apiPath);
19740
19740
  const apiHeaders = {
19741
19741
  'X-Appwrite-Project': this.client.config.project,
@@ -23849,8 +23849,7 @@ class Postgresql {
23849
23849
  pitrRetentionDays: rest[10],
23850
23850
  storageAutoscaling: rest[11],
23851
23851
  storageAutoscalingThresholdPercent: rest[12],
23852
- storageAutoscalingMaxGb: rest[13],
23853
- api: rest[14]
23852
+ storageAutoscalingMaxGb: rest[13]
23854
23853
  };
23855
23854
  }
23856
23855
  const databaseId = params.databaseId;
@@ -23868,7 +23867,6 @@ class Postgresql {
23868
23867
  const storageAutoscaling = params.storageAutoscaling;
23869
23868
  const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
23870
23869
  const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
23871
- const api = params.api;
23872
23870
  if (typeof databaseId === 'undefined') {
23873
23871
  throw new AppwriteException('Missing required parameter: "databaseId"');
23874
23872
  }
@@ -23922,9 +23920,6 @@ class Postgresql {
23922
23920
  if (typeof storageAutoscalingMaxGb !== 'undefined') {
23923
23921
  payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
23924
23922
  }
23925
- if (typeof api !== 'undefined') {
23926
- payload['api'] = api;
23927
- }
23928
23923
  const uri = new URL(this.client.config.endpoint + apiPath);
23929
23924
  const apiHeaders = {
23930
23925
  'X-Appwrite-Project': this.client.config.project,
@@ -31729,7 +31724,8 @@ class TablesDB {
31729
31724
  name: rest[0],
31730
31725
  enabled: rest[1],
31731
31726
  specification: rest[2],
31732
- replicas: rest[3]
31727
+ replicas: rest[3],
31728
+ syncMode: rest[4]
31733
31729
  };
31734
31730
  }
31735
31731
  const databaseId = params.databaseId;
@@ -31737,6 +31733,7 @@ class TablesDB {
31737
31733
  const enabled = params.enabled;
31738
31734
  const specification = params.specification;
31739
31735
  const replicas = params.replicas;
31736
+ const syncMode = params.syncMode;
31740
31737
  if (typeof databaseId === 'undefined') {
31741
31738
  throw new AppwriteException('Missing required parameter: "databaseId"');
31742
31739
  }
@@ -31760,6 +31757,9 @@ class TablesDB {
31760
31757
  if (typeof replicas !== 'undefined') {
31761
31758
  payload['replicas'] = replicas;
31762
31759
  }
31760
+ if (typeof syncMode !== 'undefined') {
31761
+ payload['syncMode'] = syncMode;
31762
+ }
31763
31763
  const uri = new URL(this.client.config.endpoint + apiPath);
31764
31764
  const apiHeaders = {
31765
31765
  'X-Appwrite-Project': this.client.config.project,
@@ -31974,7 +31974,8 @@ class TablesDB {
31974
31974
  name: rest[0],
31975
31975
  enabled: rest[1],
31976
31976
  specification: rest[2],
31977
- replicas: rest[3]
31977
+ replicas: rest[3],
31978
+ syncMode: rest[4]
31978
31979
  };
31979
31980
  }
31980
31981
  const databaseId = params.databaseId;
@@ -31982,6 +31983,7 @@ class TablesDB {
31982
31983
  const enabled = params.enabled;
31983
31984
  const specification = params.specification;
31984
31985
  const replicas = params.replicas;
31986
+ const syncMode = params.syncMode;
31985
31987
  if (typeof databaseId === 'undefined') {
31986
31988
  throw new AppwriteException('Missing required parameter: "databaseId"');
31987
31989
  }
@@ -31999,6 +32001,9 @@ class TablesDB {
31999
32001
  if (typeof replicas !== 'undefined') {
32000
32002
  payload['replicas'] = replicas;
32001
32003
  }
32004
+ if (typeof syncMode !== 'undefined') {
32005
+ payload['syncMode'] = syncMode;
32006
+ }
32002
32007
  const uri = new URL(this.client.config.endpoint + apiPath);
32003
32008
  const apiHeaders = {
32004
32009
  'X-Appwrite-Project': this.client.config.project,
@@ -38453,7 +38458,8 @@ class VectorsDB {
38453
38458
  name: rest[0],
38454
38459
  enabled: rest[1],
38455
38460
  specification: rest[2],
38456
- replicas: rest[3]
38461
+ replicas: rest[3],
38462
+ syncMode: rest[4]
38457
38463
  };
38458
38464
  }
38459
38465
  const databaseId = params.databaseId;
@@ -38461,6 +38467,7 @@ class VectorsDB {
38461
38467
  const enabled = params.enabled;
38462
38468
  const specification = params.specification;
38463
38469
  const replicas = params.replicas;
38470
+ const syncMode = params.syncMode;
38464
38471
  if (typeof databaseId === 'undefined') {
38465
38472
  throw new AppwriteException('Missing required parameter: "databaseId"');
38466
38473
  }
@@ -38484,6 +38491,9 @@ class VectorsDB {
38484
38491
  if (typeof replicas !== 'undefined') {
38485
38492
  payload['replicas'] = replicas;
38486
38493
  }
38494
+ if (typeof syncMode !== 'undefined') {
38495
+ payload['syncMode'] = syncMode;
38496
+ }
38487
38497
  const uri = new URL(this.client.config.endpoint + apiPath);
38488
38498
  const apiHeaders = {
38489
38499
  'X-Appwrite-Project': this.client.config.project,
@@ -38730,7 +38740,8 @@ class VectorsDB {
38730
38740
  name: rest[0],
38731
38741
  enabled: rest[1],
38732
38742
  specification: rest[2],
38733
- replicas: rest[3]
38743
+ replicas: rest[3],
38744
+ syncMode: rest[4]
38734
38745
  };
38735
38746
  }
38736
38747
  const databaseId = params.databaseId;
@@ -38738,6 +38749,7 @@ class VectorsDB {
38738
38749
  const enabled = params.enabled;
38739
38750
  const specification = params.specification;
38740
38751
  const replicas = params.replicas;
38752
+ const syncMode = params.syncMode;
38741
38753
  if (typeof databaseId === 'undefined') {
38742
38754
  throw new AppwriteException('Missing required parameter: "databaseId"');
38743
38755
  }
@@ -38758,6 +38770,9 @@ class VectorsDB {
38758
38770
  if (typeof replicas !== 'undefined') {
38759
38771
  payload['replicas'] = replicas;
38760
38772
  }
38773
+ if (typeof syncMode !== 'undefined') {
38774
+ payload['syncMode'] = syncMode;
38775
+ }
38761
38776
  const uri = new URL(this.client.config.endpoint + apiPath);
38762
38777
  const apiHeaders = {
38763
38778
  'X-Appwrite-Project': this.client.config.project,
@@ -39952,7 +39967,9 @@ class Waf {
39952
39967
  challengeType: rest[4],
39953
39968
  priority: rest[5],
39954
39969
  enabled: rest[6],
39955
- conditions: rest[7]
39970
+ conditions: rest[7],
39971
+ difficulty: rest[8],
39972
+ ttl: rest[9]
39956
39973
  };
39957
39974
  }
39958
39975
  const ruleId = params.ruleId;
@@ -39964,6 +39981,8 @@ class Waf {
39964
39981
  const priority = params.priority;
39965
39982
  const enabled = params.enabled;
39966
39983
  const conditions = params.conditions;
39984
+ const difficulty = params.difficulty;
39985
+ const ttl = params.ttl;
39967
39986
  if (typeof ruleId === 'undefined') {
39968
39987
  throw new AppwriteException('Missing required parameter: "ruleId"');
39969
39988
  }
@@ -40002,6 +40021,12 @@ class Waf {
40002
40021
  if (typeof conditions !== 'undefined') {
40003
40022
  payload['conditions'] = conditions;
40004
40023
  }
40024
+ if (typeof difficulty !== 'undefined') {
40025
+ payload['difficulty'] = difficulty;
40026
+ }
40027
+ if (typeof ttl !== 'undefined') {
40028
+ payload['ttl'] = ttl;
40029
+ }
40005
40030
  const uri = new URL(this.client.config.endpoint + apiPath);
40006
40031
  const apiHeaders = {
40007
40032
  'X-Appwrite-Project': this.client.config.project,
@@ -40025,7 +40050,9 @@ class Waf {
40025
40050
  challengeType: rest[4],
40026
40051
  priority: rest[5],
40027
40052
  enabled: rest[6],
40028
- conditions: rest[7]
40053
+ conditions: rest[7],
40054
+ difficulty: rest[8],
40055
+ ttl: rest[9]
40029
40056
  };
40030
40057
  }
40031
40058
  const ruleId = params.ruleId;
@@ -40037,6 +40064,8 @@ class Waf {
40037
40064
  const priority = params.priority;
40038
40065
  const enabled = params.enabled;
40039
40066
  const conditions = params.conditions;
40067
+ const difficulty = params.difficulty;
40068
+ const ttl = params.ttl;
40040
40069
  if (typeof ruleId === 'undefined') {
40041
40070
  throw new AppwriteException('Missing required parameter: "ruleId"');
40042
40071
  }
@@ -40066,6 +40095,12 @@ class Waf {
40066
40095
  if (typeof conditions !== 'undefined') {
40067
40096
  payload['conditions'] = conditions;
40068
40097
  }
40098
+ if (typeof difficulty !== 'undefined') {
40099
+ payload['difficulty'] = difficulty;
40100
+ }
40101
+ if (typeof ttl !== 'undefined') {
40102
+ payload['ttl'] = ttl;
40103
+ }
40069
40104
  const uri = new URL(this.client.config.endpoint + apiPath);
40070
40105
  const apiHeaders = {
40071
40106
  'X-Appwrite-Project': this.client.config.project,
@@ -40215,9 +40250,10 @@ class Waf {
40215
40250
  interval: rest[3],
40216
40251
  resourceId: rest[4],
40217
40252
  description: rest[5],
40218
- priority: rest[6],
40219
- enabled: rest[7],
40220
- conditions: rest[8]
40253
+ key: rest[6],
40254
+ priority: rest[7],
40255
+ enabled: rest[8],
40256
+ conditions: rest[9]
40221
40257
  };
40222
40258
  }
40223
40259
  const ruleId = params.ruleId;
@@ -40227,6 +40263,7 @@ class Waf {
40227
40263
  const interval = params.interval;
40228
40264
  const resourceId = params.resourceId;
40229
40265
  const description = params.description;
40266
+ const key = params.key;
40230
40267
  const priority = params.priority;
40231
40268
  const enabled = params.enabled;
40232
40269
  const conditions = params.conditions;
@@ -40268,6 +40305,9 @@ class Waf {
40268
40305
  if (typeof interval !== 'undefined') {
40269
40306
  payload['interval'] = interval;
40270
40307
  }
40308
+ if (typeof key !== 'undefined') {
40309
+ payload['key'] = key;
40310
+ }
40271
40311
  if (typeof priority !== 'undefined') {
40272
40312
  payload['priority'] = priority;
40273
40313
  }
@@ -40299,9 +40339,10 @@ class Waf {
40299
40339
  description: rest[3],
40300
40340
  limit: rest[4],
40301
40341
  interval: rest[5],
40302
- priority: rest[6],
40303
- enabled: rest[7],
40304
- conditions: rest[8]
40342
+ key: rest[6],
40343
+ priority: rest[7],
40344
+ enabled: rest[8],
40345
+ conditions: rest[9]
40305
40346
  };
40306
40347
  }
40307
40348
  const ruleId = params.ruleId;
@@ -40311,6 +40352,7 @@ class Waf {
40311
40352
  const description = params.description;
40312
40353
  const limit = params.limit;
40313
40354
  const interval = params.interval;
40355
+ const key = params.key;
40314
40356
  const priority = params.priority;
40315
40357
  const enabled = params.enabled;
40316
40358
  const conditions = params.conditions;
@@ -40337,6 +40379,9 @@ class Waf {
40337
40379
  if (typeof interval !== 'undefined') {
40338
40380
  payload['interval'] = interval;
40339
40381
  }
40382
+ if (typeof key !== 'undefined') {
40383
+ payload['key'] = key;
40384
+ }
40340
40385
  if (typeof priority !== 'undefined') {
40341
40386
  payload['priority'] = priority;
40342
40387
  }
@@ -43019,6 +43064,7 @@ var Runtime;
43019
43064
  Runtime["Node23"] = "node-23";
43020
43065
  Runtime["Node24"] = "node-24";
43021
43066
  Runtime["Node25"] = "node-25";
43067
+ Runtime["Node26"] = "node-26";
43022
43068
  Runtime["Php80"] = "php-8.0";
43023
43069
  Runtime["Php81"] = "php-8.1";
43024
43070
  Runtime["Php82"] = "php-8.2";
@@ -43632,6 +43678,7 @@ var BuildRuntime;
43632
43678
  BuildRuntime["Node23"] = "node-23";
43633
43679
  BuildRuntime["Node24"] = "node-24";
43634
43680
  BuildRuntime["Node25"] = "node-25";
43681
+ BuildRuntime["Node26"] = "node-26";
43635
43682
  BuildRuntime["Php80"] = "php-8.0";
43636
43683
  BuildRuntime["Php81"] = "php-8.1";
43637
43684
  BuildRuntime["Php82"] = "php-8.2";