@appwrite.io/console 15.5.0 → 15.7.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/iife/sdk.js CHANGED
@@ -4445,7 +4445,7 @@
4445
4445
  'x-sdk-name': 'Console',
4446
4446
  'x-sdk-platform': 'console',
4447
4447
  'x-sdk-language': 'web',
4448
- 'x-sdk-version': '15.5.0',
4448
+ 'x-sdk-version': '15.7.0',
4449
4449
  'X-Appwrite-Response-Format': '1.9.5',
4450
4450
  };
4451
4451
  this.realtime = {
@@ -8062,6 +8062,125 @@
8062
8062
  };
8063
8063
  return this.client.call('delete', uri, apiHeaders, payload);
8064
8064
  }
8065
+ listInstallations(paramsOrFirst, ...rest) {
8066
+ let params;
8067
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8068
+ params = (paramsOrFirst || {});
8069
+ }
8070
+ else {
8071
+ params = {
8072
+ appId: paramsOrFirst,
8073
+ queries: rest[0],
8074
+ total: rest[1]
8075
+ };
8076
+ }
8077
+ const appId = params.appId;
8078
+ const queries = params.queries;
8079
+ const total = params.total;
8080
+ if (typeof appId === 'undefined') {
8081
+ throw new AppwriteException('Missing required parameter: "appId"');
8082
+ }
8083
+ const apiPath = '/apps/{appId}/installations'.replace('{appId}', encodeURIComponent(String(appId)));
8084
+ const payload = {};
8085
+ if (typeof queries !== 'undefined') {
8086
+ payload['queries'] = queries;
8087
+ }
8088
+ if (typeof total !== 'undefined') {
8089
+ payload['total'] = total;
8090
+ }
8091
+ const uri = new URL(this.client.config.endpoint + apiPath);
8092
+ const apiHeaders = {
8093
+ 'X-Appwrite-Project': this.client.config.project,
8094
+ 'accept': 'application/json',
8095
+ };
8096
+ return this.client.call('get', uri, apiHeaders, payload);
8097
+ }
8098
+ getInstallation(paramsOrFirst, ...rest) {
8099
+ let params;
8100
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8101
+ params = (paramsOrFirst || {});
8102
+ }
8103
+ else {
8104
+ params = {
8105
+ appId: paramsOrFirst,
8106
+ installationId: rest[0]
8107
+ };
8108
+ }
8109
+ const appId = params.appId;
8110
+ const installationId = params.installationId;
8111
+ if (typeof appId === 'undefined') {
8112
+ throw new AppwriteException('Missing required parameter: "appId"');
8113
+ }
8114
+ if (typeof installationId === 'undefined') {
8115
+ throw new AppwriteException('Missing required parameter: "installationId"');
8116
+ }
8117
+ const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
8118
+ const payload = {};
8119
+ const uri = new URL(this.client.config.endpoint + apiPath);
8120
+ const apiHeaders = {
8121
+ 'X-Appwrite-Project': this.client.config.project,
8122
+ 'accept': 'application/json',
8123
+ };
8124
+ return this.client.call('get', uri, apiHeaders, payload);
8125
+ }
8126
+ deleteInstallation(paramsOrFirst, ...rest) {
8127
+ let params;
8128
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8129
+ params = (paramsOrFirst || {});
8130
+ }
8131
+ else {
8132
+ params = {
8133
+ appId: paramsOrFirst,
8134
+ installationId: rest[0]
8135
+ };
8136
+ }
8137
+ const appId = params.appId;
8138
+ const installationId = params.installationId;
8139
+ if (typeof appId === 'undefined') {
8140
+ throw new AppwriteException('Missing required parameter: "appId"');
8141
+ }
8142
+ if (typeof installationId === 'undefined') {
8143
+ throw new AppwriteException('Missing required parameter: "installationId"');
8144
+ }
8145
+ const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
8146
+ const payload = {};
8147
+ const uri = new URL(this.client.config.endpoint + apiPath);
8148
+ const apiHeaders = {
8149
+ 'X-Appwrite-Project': this.client.config.project,
8150
+ 'content-type': 'application/json',
8151
+ 'accept': 'application/json',
8152
+ };
8153
+ return this.client.call('delete', uri, apiHeaders, payload);
8154
+ }
8155
+ createInstallationToken(paramsOrFirst, ...rest) {
8156
+ let params;
8157
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8158
+ params = (paramsOrFirst || {});
8159
+ }
8160
+ else {
8161
+ params = {
8162
+ appId: paramsOrFirst,
8163
+ installationId: rest[0]
8164
+ };
8165
+ }
8166
+ const appId = params.appId;
8167
+ const installationId = params.installationId;
8168
+ if (typeof appId === 'undefined') {
8169
+ throw new AppwriteException('Missing required parameter: "appId"');
8170
+ }
8171
+ if (typeof installationId === 'undefined') {
8172
+ throw new AppwriteException('Missing required parameter: "installationId"');
8173
+ }
8174
+ const apiPath = '/apps/{appId}/installations/{installationId}/tokens'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
8175
+ const payload = {};
8176
+ const uri = new URL(this.client.config.endpoint + apiPath);
8177
+ const apiHeaders = {
8178
+ 'X-Appwrite-Project': this.client.config.project,
8179
+ 'content-type': 'application/json',
8180
+ 'accept': 'application/json',
8181
+ };
8182
+ return this.client.call('post', uri, apiHeaders, payload);
8183
+ }
8065
8184
  listKeys(paramsOrFirst, ...rest) {
8066
8185
  let params;
8067
8186
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -13411,12 +13530,14 @@
13411
13530
  databaseId: paramsOrFirst,
13412
13531
  name: rest[0],
13413
13532
  enabled: rest[1],
13414
- replicas: rest[2]
13533
+ specification: rest[2],
13534
+ replicas: rest[3]
13415
13535
  };
13416
13536
  }
13417
13537
  const databaseId = params.databaseId;
13418
13538
  const name = params.name;
13419
13539
  const enabled = params.enabled;
13540
+ const specification = params.specification;
13420
13541
  const replicas = params.replicas;
13421
13542
  if (typeof databaseId === 'undefined') {
13422
13543
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -13432,6 +13553,9 @@
13432
13553
  if (typeof enabled !== 'undefined') {
13433
13554
  payload['enabled'] = enabled;
13434
13555
  }
13556
+ if (typeof specification !== 'undefined') {
13557
+ payload['specification'] = specification;
13558
+ }
13435
13559
  if (typeof replicas !== 'undefined') {
13436
13560
  payload['replicas'] = replicas;
13437
13561
  }
@@ -14425,6 +14549,44 @@
14425
14549
  };
14426
14550
  return this.client.call('post', uri, apiHeaders, payload);
14427
14551
  }
14552
+ listOperations(paramsOrFirst, ...rest) {
14553
+ let params;
14554
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14555
+ params = (paramsOrFirst || {});
14556
+ }
14557
+ else {
14558
+ params = {
14559
+ databaseId: paramsOrFirst,
14560
+ status: rest[0],
14561
+ limit: rest[1],
14562
+ offset: rest[2]
14563
+ };
14564
+ }
14565
+ const databaseId = params.databaseId;
14566
+ const status = params.status;
14567
+ const limit = params.limit;
14568
+ const offset = params.offset;
14569
+ if (typeof databaseId === 'undefined') {
14570
+ throw new AppwriteException('Missing required parameter: "databaseId"');
14571
+ }
14572
+ const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
14573
+ const payload = {};
14574
+ if (typeof status !== 'undefined') {
14575
+ payload['status'] = status;
14576
+ }
14577
+ if (typeof limit !== 'undefined') {
14578
+ payload['limit'] = limit;
14579
+ }
14580
+ if (typeof offset !== 'undefined') {
14581
+ payload['offset'] = offset;
14582
+ }
14583
+ const uri = new URL(this.client.config.endpoint + apiPath);
14584
+ const apiHeaders = {
14585
+ 'X-Appwrite-Project': this.client.config.project,
14586
+ 'accept': 'application/json',
14587
+ };
14588
+ return this.client.call('get', uri, apiHeaders, payload);
14589
+ }
14428
14590
  getReplicas(paramsOrFirst) {
14429
14591
  let params;
14430
14592
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22999,6 +23161,44 @@
22999
23161
  };
23000
23162
  return this.client.call('post', uri, apiHeaders, payload);
23001
23163
  }
23164
+ listOperations(paramsOrFirst, ...rest) {
23165
+ let params;
23166
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23167
+ params = (paramsOrFirst || {});
23168
+ }
23169
+ else {
23170
+ params = {
23171
+ databaseId: paramsOrFirst,
23172
+ status: rest[0],
23173
+ limit: rest[1],
23174
+ offset: rest[2]
23175
+ };
23176
+ }
23177
+ const databaseId = params.databaseId;
23178
+ const status = params.status;
23179
+ const limit = params.limit;
23180
+ const offset = params.offset;
23181
+ if (typeof databaseId === 'undefined') {
23182
+ throw new AppwriteException('Missing required parameter: "databaseId"');
23183
+ }
23184
+ const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
23185
+ const payload = {};
23186
+ if (typeof status !== 'undefined') {
23187
+ payload['status'] = status;
23188
+ }
23189
+ if (typeof limit !== 'undefined') {
23190
+ payload['limit'] = limit;
23191
+ }
23192
+ if (typeof offset !== 'undefined') {
23193
+ payload['offset'] = offset;
23194
+ }
23195
+ const uri = new URL(this.client.config.endpoint + apiPath);
23196
+ const apiHeaders = {
23197
+ 'X-Appwrite-Project': this.client.config.project,
23198
+ 'accept': 'application/json',
23199
+ };
23200
+ return this.client.call('get', uri, apiHeaders, payload);
23201
+ }
23002
23202
  getPitr(paramsOrFirst) {
23003
23203
  let params;
23004
23204
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -24184,6 +24384,44 @@
24184
24384
  };
24185
24385
  return this.client.call('post', uri, apiHeaders, payload);
24186
24386
  }
24387
+ listOperations(paramsOrFirst, ...rest) {
24388
+ let params;
24389
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24390
+ params = (paramsOrFirst || {});
24391
+ }
24392
+ else {
24393
+ params = {
24394
+ databaseId: paramsOrFirst,
24395
+ status: rest[0],
24396
+ limit: rest[1],
24397
+ offset: rest[2]
24398
+ };
24399
+ }
24400
+ const databaseId = params.databaseId;
24401
+ const status = params.status;
24402
+ const limit = params.limit;
24403
+ const offset = params.offset;
24404
+ if (typeof databaseId === 'undefined') {
24405
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24406
+ }
24407
+ const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
24408
+ const payload = {};
24409
+ if (typeof status !== 'undefined') {
24410
+ payload['status'] = status;
24411
+ }
24412
+ if (typeof limit !== 'undefined') {
24413
+ payload['limit'] = limit;
24414
+ }
24415
+ if (typeof offset !== 'undefined') {
24416
+ payload['offset'] = offset;
24417
+ }
24418
+ const uri = new URL(this.client.config.endpoint + apiPath);
24419
+ const apiHeaders = {
24420
+ 'X-Appwrite-Project': this.client.config.project,
24421
+ 'accept': 'application/json',
24422
+ };
24423
+ return this.client.call('get', uri, apiHeaders, payload);
24424
+ }
24187
24425
  getPitr(paramsOrFirst) {
24188
24426
  let params;
24189
24427
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -28419,6 +28657,44 @@
28419
28657
  };
28420
28658
  return this.client.call('post', uri, apiHeaders, payload);
28421
28659
  }
28660
+ listOperations(paramsOrFirst, ...rest) {
28661
+ let params;
28662
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28663
+ params = (paramsOrFirst || {});
28664
+ }
28665
+ else {
28666
+ params = {
28667
+ databaseId: paramsOrFirst,
28668
+ status: rest[0],
28669
+ limit: rest[1],
28670
+ offset: rest[2]
28671
+ };
28672
+ }
28673
+ const databaseId = params.databaseId;
28674
+ const status = params.status;
28675
+ const limit = params.limit;
28676
+ const offset = params.offset;
28677
+ if (typeof databaseId === 'undefined') {
28678
+ throw new AppwriteException('Missing required parameter: "databaseId"');
28679
+ }
28680
+ const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
28681
+ const payload = {};
28682
+ if (typeof status !== 'undefined') {
28683
+ payload['status'] = status;
28684
+ }
28685
+ if (typeof limit !== 'undefined') {
28686
+ payload['limit'] = limit;
28687
+ }
28688
+ if (typeof offset !== 'undefined') {
28689
+ payload['offset'] = offset;
28690
+ }
28691
+ const uri = new URL(this.client.config.endpoint + apiPath);
28692
+ const apiHeaders = {
28693
+ 'X-Appwrite-Project': this.client.config.project,
28694
+ 'accept': 'application/json',
28695
+ };
28696
+ return this.client.call('get', uri, apiHeaders, payload);
28697
+ }
28422
28698
  getPitr(paramsOrFirst) {
28423
28699
  let params;
28424
28700
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -34904,14 +35180,16 @@
34904
35180
  bucketId: paramsOrFirst,
34905
35181
  fileId: rest[0],
34906
35182
  file: rest[1],
34907
- permissions: rest[2]
35183
+ permissions: rest[2],
35184
+ folder: rest[3]
34908
35185
  };
34909
- onProgress = rest[3];
35186
+ onProgress = rest[4];
34910
35187
  }
34911
35188
  const bucketId = params.bucketId;
34912
35189
  const fileId = params.fileId;
34913
35190
  const file = params.file;
34914
35191
  const permissions = params.permissions;
35192
+ const folder = params.folder;
34915
35193
  if (typeof bucketId === 'undefined') {
34916
35194
  throw new AppwriteException('Missing required parameter: "bucketId"');
34917
35195
  }
@@ -34932,6 +35210,9 @@
34932
35210
  if (typeof permissions !== 'undefined') {
34933
35211
  payload['permissions'] = permissions;
34934
35212
  }
35213
+ if (typeof folder !== 'undefined') {
35214
+ payload['folder'] = folder;
35215
+ }
34935
35216
  const uri = new URL(this.client.config.endpoint + apiPath);
34936
35217
  const apiHeaders = {
34937
35218
  'X-Appwrite-Project': this.client.config.project,
@@ -35492,12 +35773,14 @@
35492
35773
  databaseId: paramsOrFirst,
35493
35774
  name: rest[0],
35494
35775
  enabled: rest[1],
35495
- replicas: rest[2]
35776
+ specification: rest[2],
35777
+ replicas: rest[3]
35496
35778
  };
35497
35779
  }
35498
35780
  const databaseId = params.databaseId;
35499
35781
  const name = params.name;
35500
35782
  const enabled = params.enabled;
35783
+ const specification = params.specification;
35501
35784
  const replicas = params.replicas;
35502
35785
  if (typeof databaseId === 'undefined') {
35503
35786
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -35510,6 +35793,9 @@
35510
35793
  if (typeof enabled !== 'undefined') {
35511
35794
  payload['enabled'] = enabled;
35512
35795
  }
35796
+ if (typeof specification !== 'undefined') {
35797
+ payload['specification'] = specification;
35798
+ }
35513
35799
  if (typeof replicas !== 'undefined') {
35514
35800
  payload['replicas'] = replicas;
35515
35801
  }
@@ -35685,6 +35971,44 @@
35685
35971
  };
35686
35972
  return this.client.call('delete', uri, apiHeaders, payload);
35687
35973
  }
35974
+ listOperations(paramsOrFirst, ...rest) {
35975
+ let params;
35976
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35977
+ params = (paramsOrFirst || {});
35978
+ }
35979
+ else {
35980
+ params = {
35981
+ databaseId: paramsOrFirst,
35982
+ status: rest[0],
35983
+ limit: rest[1],
35984
+ offset: rest[2]
35985
+ };
35986
+ }
35987
+ const databaseId = params.databaseId;
35988
+ const status = params.status;
35989
+ const limit = params.limit;
35990
+ const offset = params.offset;
35991
+ if (typeof databaseId === 'undefined') {
35992
+ throw new AppwriteException('Missing required parameter: "databaseId"');
35993
+ }
35994
+ const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
35995
+ const payload = {};
35996
+ if (typeof status !== 'undefined') {
35997
+ payload['status'] = status;
35998
+ }
35999
+ if (typeof limit !== 'undefined') {
36000
+ payload['limit'] = limit;
36001
+ }
36002
+ if (typeof offset !== 'undefined') {
36003
+ payload['offset'] = offset;
36004
+ }
36005
+ const uri = new URL(this.client.config.endpoint + apiPath);
36006
+ const apiHeaders = {
36007
+ 'X-Appwrite-Project': this.client.config.project,
36008
+ 'accept': 'application/json',
36009
+ };
36010
+ return this.client.call('get', uri, apiHeaders, payload);
36011
+ }
35688
36012
  getReplicas(paramsOrFirst) {
35689
36013
  let params;
35690
36014
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -41595,12 +41919,14 @@
41595
41919
  params = {
41596
41920
  installationId: paramsOrFirst,
41597
41921
  name: rest[0],
41598
- xprivate: rest[1]
41922
+ xprivate: rest[1],
41923
+ providerNamespace: rest[2]
41599
41924
  };
41600
41925
  }
41601
41926
  const installationId = params.installationId;
41602
41927
  const name = params.name;
41603
41928
  const xprivate = params.xprivate;
41929
+ const providerNamespace = params.providerNamespace;
41604
41930
  if (typeof installationId === 'undefined') {
41605
41931
  throw new AppwriteException('Missing required parameter: "installationId"');
41606
41932
  }
@@ -41618,6 +41944,9 @@
41618
41944
  if (typeof xprivate !== 'undefined') {
41619
41945
  payload['private'] = xprivate;
41620
41946
  }
41947
+ if (typeof providerNamespace !== 'undefined') {
41948
+ payload['providerNamespace'] = providerNamespace;
41949
+ }
41621
41950
  const uri = new URL(this.client.config.endpoint + apiPath);
41622
41951
  const apiHeaders = {
41623
41952
  'X-Appwrite-Project': this.client.config.project,
@@ -41846,6 +42175,39 @@
41846
42175
  };
41847
42176
  return this.client.call('delete', uri, apiHeaders, payload);
41848
42177
  }
42178
+ listNamespaces(paramsOrFirst, ...rest) {
42179
+ let params;
42180
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
42181
+ params = (paramsOrFirst || {});
42182
+ }
42183
+ else {
42184
+ params = {
42185
+ installationId: paramsOrFirst,
42186
+ search: rest[0],
42187
+ queries: rest[1]
42188
+ };
42189
+ }
42190
+ const installationId = params.installationId;
42191
+ const search = params.search;
42192
+ const queries = params.queries;
42193
+ if (typeof installationId === 'undefined') {
42194
+ throw new AppwriteException('Missing required parameter: "installationId"');
42195
+ }
42196
+ const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
42197
+ const payload = {};
42198
+ if (typeof search !== 'undefined') {
42199
+ payload['search'] = search;
42200
+ }
42201
+ if (typeof queries !== 'undefined') {
42202
+ payload['queries'] = queries;
42203
+ }
42204
+ const uri = new URL(this.client.config.endpoint + apiPath);
42205
+ const apiHeaders = {
42206
+ 'X-Appwrite-Project': this.client.config.project,
42207
+ 'accept': 'application/json',
42208
+ };
42209
+ return this.client.call('get', uri, apiHeaders, payload);
42210
+ }
41849
42211
  }
41850
42212
 
41851
42213
  class VectorsDB {
@@ -42167,12 +42529,14 @@
42167
42529
  databaseId: paramsOrFirst,
42168
42530
  name: rest[0],
42169
42531
  enabled: rest[1],
42170
- replicas: rest[2]
42532
+ specification: rest[2],
42533
+ replicas: rest[3]
42171
42534
  };
42172
42535
  }
42173
42536
  const databaseId = params.databaseId;
42174
42537
  const name = params.name;
42175
42538
  const enabled = params.enabled;
42539
+ const specification = params.specification;
42176
42540
  const replicas = params.replicas;
42177
42541
  if (typeof databaseId === 'undefined') {
42178
42542
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -42188,6 +42552,9 @@
42188
42552
  if (typeof enabled !== 'undefined') {
42189
42553
  payload['enabled'] = enabled;
42190
42554
  }
42555
+ if (typeof specification !== 'undefined') {
42556
+ payload['specification'] = specification;
42557
+ }
42191
42558
  if (typeof replicas !== 'undefined') {
42192
42559
  payload['replicas'] = replicas;
42193
42560
  }
@@ -43120,6 +43487,44 @@
43120
43487
  };
43121
43488
  return this.client.call('post', uri, apiHeaders, payload);
43122
43489
  }
43490
+ listOperations(paramsOrFirst, ...rest) {
43491
+ let params;
43492
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
43493
+ params = (paramsOrFirst || {});
43494
+ }
43495
+ else {
43496
+ params = {
43497
+ databaseId: paramsOrFirst,
43498
+ status: rest[0],
43499
+ limit: rest[1],
43500
+ offset: rest[2]
43501
+ };
43502
+ }
43503
+ const databaseId = params.databaseId;
43504
+ const status = params.status;
43505
+ const limit = params.limit;
43506
+ const offset = params.offset;
43507
+ if (typeof databaseId === 'undefined') {
43508
+ throw new AppwriteException('Missing required parameter: "databaseId"');
43509
+ }
43510
+ const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
43511
+ const payload = {};
43512
+ if (typeof status !== 'undefined') {
43513
+ payload['status'] = status;
43514
+ }
43515
+ if (typeof limit !== 'undefined') {
43516
+ payload['limit'] = limit;
43517
+ }
43518
+ if (typeof offset !== 'undefined') {
43519
+ payload['offset'] = offset;
43520
+ }
43521
+ const uri = new URL(this.client.config.endpoint + apiPath);
43522
+ const apiHeaders = {
43523
+ 'X-Appwrite-Project': this.client.config.project,
43524
+ 'accept': 'application/json',
43525
+ };
43526
+ return this.client.call('get', uri, apiHeaders, payload);
43527
+ }
43123
43528
  getReplicas(paramsOrFirst) {
43124
43529
  let params;
43125
43530
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -43332,6 +43737,143 @@
43332
43737
  };
43333
43738
  return this.client.call('patch', uri, apiHeaders, payload);
43334
43739
  }
43740
+ createChallengeRule(paramsOrFirst, ...rest) {
43741
+ let params;
43742
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
43743
+ params = (paramsOrFirst || {});
43744
+ }
43745
+ else {
43746
+ params = {
43747
+ ruleId: paramsOrFirst,
43748
+ resourceType: rest[0],
43749
+ name: rest[1],
43750
+ resourceId: rest[2],
43751
+ description: rest[3],
43752
+ challengeType: rest[4],
43753
+ priority: rest[5],
43754
+ enabled: rest[6],
43755
+ conditions: rest[7]
43756
+ };
43757
+ }
43758
+ const ruleId = params.ruleId;
43759
+ const resourceType = params.resourceType;
43760
+ const name = params.name;
43761
+ const resourceId = params.resourceId;
43762
+ const description = params.description;
43763
+ const challengeType = params.challengeType;
43764
+ const priority = params.priority;
43765
+ const enabled = params.enabled;
43766
+ const conditions = params.conditions;
43767
+ if (typeof ruleId === 'undefined') {
43768
+ throw new AppwriteException('Missing required parameter: "ruleId"');
43769
+ }
43770
+ if (typeof resourceType === 'undefined') {
43771
+ throw new AppwriteException('Missing required parameter: "resourceType"');
43772
+ }
43773
+ if (typeof name === 'undefined') {
43774
+ throw new AppwriteException('Missing required parameter: "name"');
43775
+ }
43776
+ const apiPath = '/waf/rules/challenge';
43777
+ const payload = {};
43778
+ if (typeof ruleId !== 'undefined') {
43779
+ payload['ruleId'] = ruleId;
43780
+ }
43781
+ if (typeof resourceType !== 'undefined') {
43782
+ payload['resourceType'] = resourceType;
43783
+ }
43784
+ if (typeof resourceId !== 'undefined') {
43785
+ payload['resourceId'] = resourceId;
43786
+ }
43787
+ if (typeof name !== 'undefined') {
43788
+ payload['name'] = name;
43789
+ }
43790
+ if (typeof description !== 'undefined') {
43791
+ payload['description'] = description;
43792
+ }
43793
+ if (typeof challengeType !== 'undefined') {
43794
+ payload['challengeType'] = challengeType;
43795
+ }
43796
+ if (typeof priority !== 'undefined') {
43797
+ payload['priority'] = priority;
43798
+ }
43799
+ if (typeof enabled !== 'undefined') {
43800
+ payload['enabled'] = enabled;
43801
+ }
43802
+ if (typeof conditions !== 'undefined') {
43803
+ payload['conditions'] = conditions;
43804
+ }
43805
+ const uri = new URL(this.client.config.endpoint + apiPath);
43806
+ const apiHeaders = {
43807
+ 'X-Appwrite-Project': this.client.config.project,
43808
+ 'content-type': 'application/json',
43809
+ 'accept': 'application/json',
43810
+ };
43811
+ return this.client.call('post', uri, apiHeaders, payload);
43812
+ }
43813
+ updateChallengeRule(paramsOrFirst, ...rest) {
43814
+ let params;
43815
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
43816
+ params = (paramsOrFirst || {});
43817
+ }
43818
+ else {
43819
+ params = {
43820
+ ruleId: paramsOrFirst,
43821
+ resourceType: rest[0],
43822
+ resourceId: rest[1],
43823
+ name: rest[2],
43824
+ description: rest[3],
43825
+ challengeType: rest[4],
43826
+ priority: rest[5],
43827
+ enabled: rest[6],
43828
+ conditions: rest[7]
43829
+ };
43830
+ }
43831
+ const ruleId = params.ruleId;
43832
+ const resourceType = params.resourceType;
43833
+ const resourceId = params.resourceId;
43834
+ const name = params.name;
43835
+ const description = params.description;
43836
+ const challengeType = params.challengeType;
43837
+ const priority = params.priority;
43838
+ const enabled = params.enabled;
43839
+ const conditions = params.conditions;
43840
+ if (typeof ruleId === 'undefined') {
43841
+ throw new AppwriteException('Missing required parameter: "ruleId"');
43842
+ }
43843
+ const apiPath = '/waf/rules/challenge/{ruleId}'.replace('{ruleId}', encodeURIComponent(String(ruleId)));
43844
+ const payload = {};
43845
+ if (typeof resourceType !== 'undefined') {
43846
+ payload['resourceType'] = resourceType;
43847
+ }
43848
+ if (typeof resourceId !== 'undefined') {
43849
+ payload['resourceId'] = resourceId;
43850
+ }
43851
+ if (typeof name !== 'undefined') {
43852
+ payload['name'] = name;
43853
+ }
43854
+ if (typeof description !== 'undefined') {
43855
+ payload['description'] = description;
43856
+ }
43857
+ if (typeof challengeType !== 'undefined') {
43858
+ payload['challengeType'] = challengeType;
43859
+ }
43860
+ if (typeof priority !== 'undefined') {
43861
+ payload['priority'] = priority;
43862
+ }
43863
+ if (typeof enabled !== 'undefined') {
43864
+ payload['enabled'] = enabled;
43865
+ }
43866
+ if (typeof conditions !== 'undefined') {
43867
+ payload['conditions'] = conditions;
43868
+ }
43869
+ const uri = new URL(this.client.config.endpoint + apiPath);
43870
+ const apiHeaders = {
43871
+ 'X-Appwrite-Project': this.client.config.project,
43872
+ 'content-type': 'application/json',
43873
+ 'accept': 'application/json',
43874
+ };
43875
+ return this.client.call('patch', uri, apiHeaders, payload);
43876
+ }
43335
43877
  createDenyRule(paramsOrFirst, ...rest) {
43336
43878
  let params;
43337
43879
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {