@appwrite.io/console 15.5.0 → 15.6.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.6.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))) {
@@ -14425,6 +14544,44 @@
14425
14544
  };
14426
14545
  return this.client.call('post', uri, apiHeaders, payload);
14427
14546
  }
14547
+ listOperations(paramsOrFirst, ...rest) {
14548
+ let params;
14549
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14550
+ params = (paramsOrFirst || {});
14551
+ }
14552
+ else {
14553
+ params = {
14554
+ databaseId: paramsOrFirst,
14555
+ status: rest[0],
14556
+ limit: rest[1],
14557
+ offset: rest[2]
14558
+ };
14559
+ }
14560
+ const databaseId = params.databaseId;
14561
+ const status = params.status;
14562
+ const limit = params.limit;
14563
+ const offset = params.offset;
14564
+ if (typeof databaseId === 'undefined') {
14565
+ throw new AppwriteException('Missing required parameter: "databaseId"');
14566
+ }
14567
+ const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
14568
+ const payload = {};
14569
+ if (typeof status !== 'undefined') {
14570
+ payload['status'] = status;
14571
+ }
14572
+ if (typeof limit !== 'undefined') {
14573
+ payload['limit'] = limit;
14574
+ }
14575
+ if (typeof offset !== 'undefined') {
14576
+ payload['offset'] = offset;
14577
+ }
14578
+ const uri = new URL(this.client.config.endpoint + apiPath);
14579
+ const apiHeaders = {
14580
+ 'X-Appwrite-Project': this.client.config.project,
14581
+ 'accept': 'application/json',
14582
+ };
14583
+ return this.client.call('get', uri, apiHeaders, payload);
14584
+ }
14428
14585
  getReplicas(paramsOrFirst) {
14429
14586
  let params;
14430
14587
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22999,6 +23156,44 @@
22999
23156
  };
23000
23157
  return this.client.call('post', uri, apiHeaders, payload);
23001
23158
  }
23159
+ listOperations(paramsOrFirst, ...rest) {
23160
+ let params;
23161
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
23162
+ params = (paramsOrFirst || {});
23163
+ }
23164
+ else {
23165
+ params = {
23166
+ databaseId: paramsOrFirst,
23167
+ status: rest[0],
23168
+ limit: rest[1],
23169
+ offset: rest[2]
23170
+ };
23171
+ }
23172
+ const databaseId = params.databaseId;
23173
+ const status = params.status;
23174
+ const limit = params.limit;
23175
+ const offset = params.offset;
23176
+ if (typeof databaseId === 'undefined') {
23177
+ throw new AppwriteException('Missing required parameter: "databaseId"');
23178
+ }
23179
+ const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
23180
+ const payload = {};
23181
+ if (typeof status !== 'undefined') {
23182
+ payload['status'] = status;
23183
+ }
23184
+ if (typeof limit !== 'undefined') {
23185
+ payload['limit'] = limit;
23186
+ }
23187
+ if (typeof offset !== 'undefined') {
23188
+ payload['offset'] = offset;
23189
+ }
23190
+ const uri = new URL(this.client.config.endpoint + apiPath);
23191
+ const apiHeaders = {
23192
+ 'X-Appwrite-Project': this.client.config.project,
23193
+ 'accept': 'application/json',
23194
+ };
23195
+ return this.client.call('get', uri, apiHeaders, payload);
23196
+ }
23002
23197
  getPitr(paramsOrFirst) {
23003
23198
  let params;
23004
23199
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -24184,6 +24379,44 @@
24184
24379
  };
24185
24380
  return this.client.call('post', uri, apiHeaders, payload);
24186
24381
  }
24382
+ listOperations(paramsOrFirst, ...rest) {
24383
+ let params;
24384
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24385
+ params = (paramsOrFirst || {});
24386
+ }
24387
+ else {
24388
+ params = {
24389
+ databaseId: paramsOrFirst,
24390
+ status: rest[0],
24391
+ limit: rest[1],
24392
+ offset: rest[2]
24393
+ };
24394
+ }
24395
+ const databaseId = params.databaseId;
24396
+ const status = params.status;
24397
+ const limit = params.limit;
24398
+ const offset = params.offset;
24399
+ if (typeof databaseId === 'undefined') {
24400
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24401
+ }
24402
+ const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
24403
+ const payload = {};
24404
+ if (typeof status !== 'undefined') {
24405
+ payload['status'] = status;
24406
+ }
24407
+ if (typeof limit !== 'undefined') {
24408
+ payload['limit'] = limit;
24409
+ }
24410
+ if (typeof offset !== 'undefined') {
24411
+ payload['offset'] = offset;
24412
+ }
24413
+ const uri = new URL(this.client.config.endpoint + apiPath);
24414
+ const apiHeaders = {
24415
+ 'X-Appwrite-Project': this.client.config.project,
24416
+ 'accept': 'application/json',
24417
+ };
24418
+ return this.client.call('get', uri, apiHeaders, payload);
24419
+ }
24187
24420
  getPitr(paramsOrFirst) {
24188
24421
  let params;
24189
24422
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -28419,6 +28652,44 @@
28419
28652
  };
28420
28653
  return this.client.call('post', uri, apiHeaders, payload);
28421
28654
  }
28655
+ listOperations(paramsOrFirst, ...rest) {
28656
+ let params;
28657
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28658
+ params = (paramsOrFirst || {});
28659
+ }
28660
+ else {
28661
+ params = {
28662
+ databaseId: paramsOrFirst,
28663
+ status: rest[0],
28664
+ limit: rest[1],
28665
+ offset: rest[2]
28666
+ };
28667
+ }
28668
+ const databaseId = params.databaseId;
28669
+ const status = params.status;
28670
+ const limit = params.limit;
28671
+ const offset = params.offset;
28672
+ if (typeof databaseId === 'undefined') {
28673
+ throw new AppwriteException('Missing required parameter: "databaseId"');
28674
+ }
28675
+ const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
28676
+ const payload = {};
28677
+ if (typeof status !== 'undefined') {
28678
+ payload['status'] = status;
28679
+ }
28680
+ if (typeof limit !== 'undefined') {
28681
+ payload['limit'] = limit;
28682
+ }
28683
+ if (typeof offset !== 'undefined') {
28684
+ payload['offset'] = offset;
28685
+ }
28686
+ const uri = new URL(this.client.config.endpoint + apiPath);
28687
+ const apiHeaders = {
28688
+ 'X-Appwrite-Project': this.client.config.project,
28689
+ 'accept': 'application/json',
28690
+ };
28691
+ return this.client.call('get', uri, apiHeaders, payload);
28692
+ }
28422
28693
  getPitr(paramsOrFirst) {
28423
28694
  let params;
28424
28695
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -35685,6 +35956,44 @@
35685
35956
  };
35686
35957
  return this.client.call('delete', uri, apiHeaders, payload);
35687
35958
  }
35959
+ listOperations(paramsOrFirst, ...rest) {
35960
+ let params;
35961
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35962
+ params = (paramsOrFirst || {});
35963
+ }
35964
+ else {
35965
+ params = {
35966
+ databaseId: paramsOrFirst,
35967
+ status: rest[0],
35968
+ limit: rest[1],
35969
+ offset: rest[2]
35970
+ };
35971
+ }
35972
+ const databaseId = params.databaseId;
35973
+ const status = params.status;
35974
+ const limit = params.limit;
35975
+ const offset = params.offset;
35976
+ if (typeof databaseId === 'undefined') {
35977
+ throw new AppwriteException('Missing required parameter: "databaseId"');
35978
+ }
35979
+ const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
35980
+ const payload = {};
35981
+ if (typeof status !== 'undefined') {
35982
+ payload['status'] = status;
35983
+ }
35984
+ if (typeof limit !== 'undefined') {
35985
+ payload['limit'] = limit;
35986
+ }
35987
+ if (typeof offset !== 'undefined') {
35988
+ payload['offset'] = offset;
35989
+ }
35990
+ const uri = new URL(this.client.config.endpoint + apiPath);
35991
+ const apiHeaders = {
35992
+ 'X-Appwrite-Project': this.client.config.project,
35993
+ 'accept': 'application/json',
35994
+ };
35995
+ return this.client.call('get', uri, apiHeaders, payload);
35996
+ }
35688
35997
  getReplicas(paramsOrFirst) {
35689
35998
  let params;
35690
35999
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -41595,12 +41904,14 @@
41595
41904
  params = {
41596
41905
  installationId: paramsOrFirst,
41597
41906
  name: rest[0],
41598
- xprivate: rest[1]
41907
+ xprivate: rest[1],
41908
+ providerNamespace: rest[2]
41599
41909
  };
41600
41910
  }
41601
41911
  const installationId = params.installationId;
41602
41912
  const name = params.name;
41603
41913
  const xprivate = params.xprivate;
41914
+ const providerNamespace = params.providerNamespace;
41604
41915
  if (typeof installationId === 'undefined') {
41605
41916
  throw new AppwriteException('Missing required parameter: "installationId"');
41606
41917
  }
@@ -41618,6 +41929,9 @@
41618
41929
  if (typeof xprivate !== 'undefined') {
41619
41930
  payload['private'] = xprivate;
41620
41931
  }
41932
+ if (typeof providerNamespace !== 'undefined') {
41933
+ payload['providerNamespace'] = providerNamespace;
41934
+ }
41621
41935
  const uri = new URL(this.client.config.endpoint + apiPath);
41622
41936
  const apiHeaders = {
41623
41937
  'X-Appwrite-Project': this.client.config.project,
@@ -41846,6 +42160,39 @@
41846
42160
  };
41847
42161
  return this.client.call('delete', uri, apiHeaders, payload);
41848
42162
  }
42163
+ listNamespaces(paramsOrFirst, ...rest) {
42164
+ let params;
42165
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
42166
+ params = (paramsOrFirst || {});
42167
+ }
42168
+ else {
42169
+ params = {
42170
+ installationId: paramsOrFirst,
42171
+ search: rest[0],
42172
+ queries: rest[1]
42173
+ };
42174
+ }
42175
+ const installationId = params.installationId;
42176
+ const search = params.search;
42177
+ const queries = params.queries;
42178
+ if (typeof installationId === 'undefined') {
42179
+ throw new AppwriteException('Missing required parameter: "installationId"');
42180
+ }
42181
+ const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
42182
+ const payload = {};
42183
+ if (typeof search !== 'undefined') {
42184
+ payload['search'] = search;
42185
+ }
42186
+ if (typeof queries !== 'undefined') {
42187
+ payload['queries'] = queries;
42188
+ }
42189
+ const uri = new URL(this.client.config.endpoint + apiPath);
42190
+ const apiHeaders = {
42191
+ 'X-Appwrite-Project': this.client.config.project,
42192
+ 'accept': 'application/json',
42193
+ };
42194
+ return this.client.call('get', uri, apiHeaders, payload);
42195
+ }
41849
42196
  }
41850
42197
 
41851
42198
  class VectorsDB {
@@ -43120,6 +43467,44 @@
43120
43467
  };
43121
43468
  return this.client.call('post', uri, apiHeaders, payload);
43122
43469
  }
43470
+ listOperations(paramsOrFirst, ...rest) {
43471
+ let params;
43472
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
43473
+ params = (paramsOrFirst || {});
43474
+ }
43475
+ else {
43476
+ params = {
43477
+ databaseId: paramsOrFirst,
43478
+ status: rest[0],
43479
+ limit: rest[1],
43480
+ offset: rest[2]
43481
+ };
43482
+ }
43483
+ const databaseId = params.databaseId;
43484
+ const status = params.status;
43485
+ const limit = params.limit;
43486
+ const offset = params.offset;
43487
+ if (typeof databaseId === 'undefined') {
43488
+ throw new AppwriteException('Missing required parameter: "databaseId"');
43489
+ }
43490
+ const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
43491
+ const payload = {};
43492
+ if (typeof status !== 'undefined') {
43493
+ payload['status'] = status;
43494
+ }
43495
+ if (typeof limit !== 'undefined') {
43496
+ payload['limit'] = limit;
43497
+ }
43498
+ if (typeof offset !== 'undefined') {
43499
+ payload['offset'] = offset;
43500
+ }
43501
+ const uri = new URL(this.client.config.endpoint + apiPath);
43502
+ const apiHeaders = {
43503
+ 'X-Appwrite-Project': this.client.config.project,
43504
+ 'accept': 'application/json',
43505
+ };
43506
+ return this.client.call('get', uri, apiHeaders, payload);
43507
+ }
43123
43508
  getReplicas(paramsOrFirst) {
43124
43509
  let params;
43125
43510
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "15.5.0",
5
+ "version": "15.6.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -45,6 +45,9 @@
45
45
  "tslib": "2.8.1",
46
46
  "typescript": "5.9.3"
47
47
  },
48
+ "overrides": {
49
+ "brace-expansion": "5.0.8"
50
+ },
48
51
  "jsdelivr": "dist/iife/sdk.js",
49
52
  "unpkg": "dist/iife/sdk.js"
50
53
  }
package/types/models.d.ts CHANGED
@@ -358,6 +358,44 @@ export declare namespace Models {
358
358
  */
359
359
  type: string;
360
360
  };
361
+ /**
362
+ * VcsNamespace
363
+ */
364
+ export type VcsNamespace = {
365
+ /**
366
+ * VCS (Version Control System) namespace ID.
367
+ */
368
+ $id: string;
369
+ /**
370
+ * VCS (Version Control System) namespace display name.
371
+ */
372
+ name: string;
373
+ /**
374
+ * VCS (Version Control System) namespace path, used to filter repositories by namespace.
375
+ */
376
+ path: string;
377
+ /**
378
+ * Namespace type. Either the user's personal namespace or a group/organization.
379
+ */
380
+ type: string;
381
+ /**
382
+ * Namespace avatar URL.
383
+ */
384
+ avatarUrl: string;
385
+ };
386
+ /**
387
+ * VCS Namespaces List
388
+ */
389
+ export type VcsNamespaceList = {
390
+ /**
391
+ * Total number of namespaces that matched your query.
392
+ */
393
+ total: number;
394
+ /**
395
+ * List of namespaces.
396
+ */
397
+ namespaces: VcsNamespace[];
398
+ };
361
399
  /**
362
400
  * Branches List
363
401
  */
@@ -3727,6 +3765,14 @@ export declare namespace Models {
3727
3765
  * File name.
3728
3766
  */
3729
3767
  name: string;
3768
+ /**
3769
+ * Virtual folder containing the file, with a trailing slash. Empty for the bucket root.
3770
+ */
3771
+ folder: string;
3772
+ /**
3773
+ * Full virtual path of the file: the folder followed by the file name.
3774
+ */
3775
+ key: string;
3730
3776
  /**
3731
3777
  * File MD5 signature.
3732
3778
  */
@@ -8721,6 +8767,10 @@ export declare namespace Models {
8721
8767
  * Backup expiration time in ISO 8601 format.
8722
8768
  */
8723
8769
  expiresAt?: string;
8770
+ /**
8771
+ * Transaction-log position the backup anchors at, in the engine's own notation: PostgreSQL `{walSegment}|{lsn}`, MySQL and MariaDB `{binlogFile}|{offset}`, MongoDB `{seconds}|{increment}`. Empty when the backup recorded no position, which is the case for backup types that carry none.
8772
+ */
8773
+ logPosition?: string;
8724
8774
  /**
8725
8775
  * Error message if backup failed.
8726
8776
  */
@@ -10394,6 +10444,68 @@ export declare namespace Models {
10394
10444
  */
10395
10445
  lagSeconds: number;
10396
10446
  };
10447
+ /**
10448
+ * Operation
10449
+ */
10450
+ export type DedicatedDatabaseOperation = {
10451
+ /**
10452
+ * Operation ID.
10453
+ */
10454
+ $id: string;
10455
+ /**
10456
+ * Operation creation time in ISO 8601 format.
10457
+ */
10458
+ $createdAt: string;
10459
+ /**
10460
+ * Database ID the operation ran against.
10461
+ */
10462
+ databaseId: string;
10463
+ /**
10464
+ * Operation type, such as provision, update, restore, pausing, resuming, failover, backup-create or cross-region-enable.
10465
+ */
10466
+ type: string;
10467
+ /**
10468
+ * Operation status. Possible values: running (in progress), completed (finished successfully), failed (ended in an error).
10469
+ */
10470
+ status: string;
10471
+ /**
10472
+ * Number of times this operation has been attempted.
10473
+ */
10474
+ attempts: number;
10475
+ /**
10476
+ * Time the operation was requested, in ISO 8601 format.
10477
+ */
10478
+ requestedAt?: string;
10479
+ /**
10480
+ * Time the operation started, in ISO 8601 format.
10481
+ */
10482
+ startedAt?: string;
10483
+ /**
10484
+ * Time the operation reached a terminal state, in ISO 8601 format.
10485
+ */
10486
+ completedAt?: string;
10487
+ /**
10488
+ * Machine-readable failure code. `LockLost` marks an attempt that was fenced and abandoned because another worker took over the database.
10489
+ */
10490
+ errorCode: string;
10491
+ /**
10492
+ * Failure message if the operation failed.
10493
+ */
10494
+ errorMessage: string;
10495
+ };
10496
+ /**
10497
+ * OperationList
10498
+ */
10499
+ export type DedicatedDatabaseOperationList = {
10500
+ /**
10501
+ * Total number of operations.
10502
+ */
10503
+ total: number;
10504
+ /**
10505
+ * List of operations.
10506
+ */
10507
+ operations: DedicatedDatabaseOperation[];
10508
+ };
10397
10509
  /**
10398
10510
  * Replicas
10399
10511
  */
@@ -6,22 +6,22 @@ export declare class Activities {
6
6
  /**
7
7
  * List all events for selected filters.
8
8
  *
9
- * @param {string} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
9
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
10
10
  * @throws {AppwriteException}
11
11
  * @returns {Promise<Models.ActivityEventList>}
12
12
  */
13
13
  listEvents(params?: {
14
- queries?: string;
14
+ queries?: string[];
15
15
  }): Promise<Models.ActivityEventList>;
16
16
  /**
17
17
  * List all events for selected filters.
18
18
  *
19
- * @param {string} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
19
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
20
20
  * @throws {AppwriteException}
21
21
  * @returns {Promise<Models.ActivityEventList>}
22
22
  * @deprecated Use the object parameter style method for a better developer experience.
23
23
  */
24
- listEvents(queries?: string): Promise<Models.ActivityEventList>;
24
+ listEvents(queries?: string[]): Promise<Models.ActivityEventList>;
25
25
  /**
26
26
  * Get event by ID.
27
27
  *