@appwrite.io/console 15.4.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.4.0',
4448
+ 'x-sdk-version': '15.6.0',
4449
4449
  'X-Appwrite-Response-Format': '1.9.5',
4450
4450
  };
4451
4451
  this.realtime = {
@@ -7861,6 +7861,22 @@
7861
7861
  };
7862
7862
  return this.client.call('post', uri, apiHeaders, payload);
7863
7863
  }
7864
+ /**
7865
+ * List scopes an application can request when installed on a team.
7866
+ *
7867
+ * @throws {AppwriteException}
7868
+ * @returns {Promise<Models.AppScopeList>}
7869
+ */
7870
+ listInstallationScopes() {
7871
+ const apiPath = '/apps/scopes/installations';
7872
+ const payload = {};
7873
+ const uri = new URL(this.client.config.endpoint + apiPath);
7874
+ const apiHeaders = {
7875
+ 'X-Appwrite-Project': this.client.config.project,
7876
+ 'accept': 'application/json',
7877
+ };
7878
+ return this.client.call('get', uri, apiHeaders, payload);
7879
+ }
7864
7880
  /**
7865
7881
  * List scopes an application can request during the OAuth2 flow.
7866
7882
  *
@@ -7924,7 +7940,9 @@
7924
7940
  redirectUris: rest[13],
7925
7941
  postLogoutRedirectUris: rest[14],
7926
7942
  type: rest[15],
7927
- deviceFlow: rest[16]
7943
+ deviceFlow: rest[16],
7944
+ installationScopes: rest[17],
7945
+ installationRedirectUrl: rest[18]
7928
7946
  };
7929
7947
  }
7930
7948
  const appId = params.appId;
@@ -7945,6 +7963,8 @@
7945
7963
  const postLogoutRedirectUris = params.postLogoutRedirectUris;
7946
7964
  const type = params.type;
7947
7965
  const deviceFlow = params.deviceFlow;
7966
+ const installationScopes = params.installationScopes;
7967
+ const installationRedirectUrl = params.installationRedirectUrl;
7948
7968
  if (typeof appId === 'undefined') {
7949
7969
  throw new AppwriteException('Missing required parameter: "appId"');
7950
7970
  }
@@ -8004,6 +8024,12 @@
8004
8024
  if (typeof deviceFlow !== 'undefined') {
8005
8025
  payload['deviceFlow'] = deviceFlow;
8006
8026
  }
8027
+ if (typeof installationScopes !== 'undefined') {
8028
+ payload['installationScopes'] = installationScopes;
8029
+ }
8030
+ if (typeof installationRedirectUrl !== 'undefined') {
8031
+ payload['installationRedirectUrl'] = installationRedirectUrl;
8032
+ }
8007
8033
  const uri = new URL(this.client.config.endpoint + apiPath);
8008
8034
  const apiHeaders = {
8009
8035
  'X-Appwrite-Project': this.client.config.project,
@@ -8036,6 +8062,239 @@
8036
8062
  };
8037
8063
  return this.client.call('delete', uri, apiHeaders, payload);
8038
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
+ }
8184
+ listKeys(paramsOrFirst, ...rest) {
8185
+ let params;
8186
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8187
+ params = (paramsOrFirst || {});
8188
+ }
8189
+ else {
8190
+ params = {
8191
+ appId: paramsOrFirst,
8192
+ queries: rest[0],
8193
+ total: rest[1]
8194
+ };
8195
+ }
8196
+ const appId = params.appId;
8197
+ const queries = params.queries;
8198
+ const total = params.total;
8199
+ if (typeof appId === 'undefined') {
8200
+ throw new AppwriteException('Missing required parameter: "appId"');
8201
+ }
8202
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
8203
+ const payload = {};
8204
+ if (typeof queries !== 'undefined') {
8205
+ payload['queries'] = queries;
8206
+ }
8207
+ if (typeof total !== 'undefined') {
8208
+ payload['total'] = total;
8209
+ }
8210
+ const uri = new URL(this.client.config.endpoint + apiPath);
8211
+ const apiHeaders = {
8212
+ 'X-Appwrite-Project': this.client.config.project,
8213
+ 'accept': 'application/json',
8214
+ };
8215
+ return this.client.call('get', uri, apiHeaders, payload);
8216
+ }
8217
+ createKey(paramsOrFirst) {
8218
+ let params;
8219
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8220
+ params = (paramsOrFirst || {});
8221
+ }
8222
+ else {
8223
+ params = {
8224
+ appId: paramsOrFirst
8225
+ };
8226
+ }
8227
+ const appId = params.appId;
8228
+ if (typeof appId === 'undefined') {
8229
+ throw new AppwriteException('Missing required parameter: "appId"');
8230
+ }
8231
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
8232
+ const payload = {};
8233
+ const uri = new URL(this.client.config.endpoint + apiPath);
8234
+ const apiHeaders = {
8235
+ 'X-Appwrite-Project': this.client.config.project,
8236
+ 'content-type': 'application/json',
8237
+ 'accept': 'application/json',
8238
+ };
8239
+ return this.client.call('post', uri, apiHeaders, payload);
8240
+ }
8241
+ getKey(paramsOrFirst, ...rest) {
8242
+ let params;
8243
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8244
+ params = (paramsOrFirst || {});
8245
+ }
8246
+ else {
8247
+ params = {
8248
+ appId: paramsOrFirst,
8249
+ keyId: rest[0]
8250
+ };
8251
+ }
8252
+ const appId = params.appId;
8253
+ const keyId = params.keyId;
8254
+ if (typeof appId === 'undefined') {
8255
+ throw new AppwriteException('Missing required parameter: "appId"');
8256
+ }
8257
+ if (typeof keyId === 'undefined') {
8258
+ throw new AppwriteException('Missing required parameter: "keyId"');
8259
+ }
8260
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
8261
+ const payload = {};
8262
+ const uri = new URL(this.client.config.endpoint + apiPath);
8263
+ const apiHeaders = {
8264
+ 'X-Appwrite-Project': this.client.config.project,
8265
+ 'accept': 'application/json',
8266
+ };
8267
+ return this.client.call('get', uri, apiHeaders, payload);
8268
+ }
8269
+ deleteKey(paramsOrFirst, ...rest) {
8270
+ let params;
8271
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8272
+ params = (paramsOrFirst || {});
8273
+ }
8274
+ else {
8275
+ params = {
8276
+ appId: paramsOrFirst,
8277
+ keyId: rest[0]
8278
+ };
8279
+ }
8280
+ const appId = params.appId;
8281
+ const keyId = params.keyId;
8282
+ if (typeof appId === 'undefined') {
8283
+ throw new AppwriteException('Missing required parameter: "appId"');
8284
+ }
8285
+ if (typeof keyId === 'undefined') {
8286
+ throw new AppwriteException('Missing required parameter: "keyId"');
8287
+ }
8288
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
8289
+ const payload = {};
8290
+ const uri = new URL(this.client.config.endpoint + apiPath);
8291
+ const apiHeaders = {
8292
+ 'X-Appwrite-Project': this.client.config.project,
8293
+ 'content-type': 'application/json',
8294
+ 'accept': 'application/json',
8295
+ };
8296
+ return this.client.call('delete', uri, apiHeaders, payload);
8297
+ }
8039
8298
  updateLabels(paramsOrFirst, ...rest) {
8040
8299
  let params;
8041
8300
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -14285,6 +14544,44 @@
14285
14544
  };
14286
14545
  return this.client.call('post', uri, apiHeaders, payload);
14287
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
+ }
14288
14585
  getReplicas(paramsOrFirst) {
14289
14586
  let params;
14290
14587
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -22859,6 +23156,44 @@
22859
23156
  };
22860
23157
  return this.client.call('post', uri, apiHeaders, payload);
22861
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
+ }
22862
23197
  getPitr(paramsOrFirst) {
22863
23198
  let params;
22864
23199
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -24044,6 +24379,44 @@
24044
24379
  };
24045
24380
  return this.client.call('post', uri, apiHeaders, payload);
24046
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
+ }
24047
24420
  getPitr(paramsOrFirst) {
24048
24421
  let params;
24049
24422
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25165,6 +25538,142 @@
25165
25538
  };
25166
25539
  return this.client.call('delete', uri, apiHeaders, payload);
25167
25540
  }
25541
+ listInstallations(paramsOrFirst, ...rest) {
25542
+ let params;
25543
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25544
+ params = (paramsOrFirst || {});
25545
+ }
25546
+ else {
25547
+ params = {
25548
+ queries: paramsOrFirst,
25549
+ total: rest[0]
25550
+ };
25551
+ }
25552
+ const queries = params.queries;
25553
+ const total = params.total;
25554
+ const apiPath = '/organization/installations';
25555
+ const payload = {};
25556
+ if (typeof queries !== 'undefined') {
25557
+ payload['queries'] = queries;
25558
+ }
25559
+ if (typeof total !== 'undefined') {
25560
+ payload['total'] = total;
25561
+ }
25562
+ const uri = new URL(this.client.config.endpoint + apiPath);
25563
+ const apiHeaders = {
25564
+ 'X-Appwrite-Project': this.client.config.project,
25565
+ 'accept': 'application/json',
25566
+ };
25567
+ return this.client.call('get', uri, apiHeaders, payload);
25568
+ }
25569
+ createInstallation(paramsOrFirst, ...rest) {
25570
+ let params;
25571
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25572
+ params = (paramsOrFirst || {});
25573
+ }
25574
+ else {
25575
+ params = {
25576
+ appId: paramsOrFirst,
25577
+ authorizationDetails: rest[0]
25578
+ };
25579
+ }
25580
+ const appId = params.appId;
25581
+ const authorizationDetails = params.authorizationDetails;
25582
+ if (typeof appId === 'undefined') {
25583
+ throw new AppwriteException('Missing required parameter: "appId"');
25584
+ }
25585
+ const apiPath = '/organization/installations';
25586
+ const payload = {};
25587
+ if (typeof appId !== 'undefined') {
25588
+ payload['appId'] = appId;
25589
+ }
25590
+ if (typeof authorizationDetails !== 'undefined') {
25591
+ payload['authorizationDetails'] = authorizationDetails;
25592
+ }
25593
+ const uri = new URL(this.client.config.endpoint + apiPath);
25594
+ const apiHeaders = {
25595
+ 'X-Appwrite-Project': this.client.config.project,
25596
+ 'content-type': 'application/json',
25597
+ 'accept': 'application/json',
25598
+ };
25599
+ return this.client.call('post', uri, apiHeaders, payload);
25600
+ }
25601
+ getInstallation(paramsOrFirst) {
25602
+ let params;
25603
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25604
+ params = (paramsOrFirst || {});
25605
+ }
25606
+ else {
25607
+ params = {
25608
+ installationId: paramsOrFirst
25609
+ };
25610
+ }
25611
+ const installationId = params.installationId;
25612
+ if (typeof installationId === 'undefined') {
25613
+ throw new AppwriteException('Missing required parameter: "installationId"');
25614
+ }
25615
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25616
+ const payload = {};
25617
+ const uri = new URL(this.client.config.endpoint + apiPath);
25618
+ const apiHeaders = {
25619
+ 'X-Appwrite-Project': this.client.config.project,
25620
+ 'accept': 'application/json',
25621
+ };
25622
+ return this.client.call('get', uri, apiHeaders, payload);
25623
+ }
25624
+ updateInstallation(paramsOrFirst, ...rest) {
25625
+ let params;
25626
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25627
+ params = (paramsOrFirst || {});
25628
+ }
25629
+ else {
25630
+ params = {
25631
+ installationId: paramsOrFirst,
25632
+ authorizationDetails: rest[0]
25633
+ };
25634
+ }
25635
+ const installationId = params.installationId;
25636
+ const authorizationDetails = params.authorizationDetails;
25637
+ if (typeof installationId === 'undefined') {
25638
+ throw new AppwriteException('Missing required parameter: "installationId"');
25639
+ }
25640
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25641
+ const payload = {};
25642
+ if (typeof authorizationDetails !== 'undefined') {
25643
+ payload['authorizationDetails'] = authorizationDetails;
25644
+ }
25645
+ const uri = new URL(this.client.config.endpoint + apiPath);
25646
+ const apiHeaders = {
25647
+ 'X-Appwrite-Project': this.client.config.project,
25648
+ 'content-type': 'application/json',
25649
+ 'accept': 'application/json',
25650
+ };
25651
+ return this.client.call('put', uri, apiHeaders, payload);
25652
+ }
25653
+ deleteInstallation(paramsOrFirst) {
25654
+ let params;
25655
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25656
+ params = (paramsOrFirst || {});
25657
+ }
25658
+ else {
25659
+ params = {
25660
+ installationId: paramsOrFirst
25661
+ };
25662
+ }
25663
+ const installationId = params.installationId;
25664
+ if (typeof installationId === 'undefined') {
25665
+ throw new AppwriteException('Missing required parameter: "installationId"');
25666
+ }
25667
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25668
+ const payload = {};
25669
+ const uri = new URL(this.client.config.endpoint + apiPath);
25670
+ const apiHeaders = {
25671
+ 'X-Appwrite-Project': this.client.config.project,
25672
+ 'content-type': 'application/json',
25673
+ 'accept': 'application/json',
25674
+ };
25675
+ return this.client.call('delete', uri, apiHeaders, payload);
25676
+ }
25168
25677
  listKeys(paramsOrFirst, ...rest) {
25169
25678
  let params;
25170
25679
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -28143,6 +28652,44 @@
28143
28652
  };
28144
28653
  return this.client.call('post', uri, apiHeaders, payload);
28145
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
+ }
28146
28693
  getPitr(paramsOrFirst) {
28147
28694
  let params;
28148
28695
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -29127,12 +29674,13 @@
29127
29674
  refreshTokenDuration: rest[4],
29128
29675
  publicAccessTokenDuration: rest[5],
29129
29676
  publicRefreshTokenDuration: rest[6],
29130
- confidentialPkce: rest[7],
29131
- verificationUrl: rest[8],
29132
- userCodeLength: rest[9],
29133
- userCodeFormat: rest[10],
29134
- deviceCodeDuration: rest[11],
29135
- defaultScopes: rest[12]
29677
+ installationAccessTokenDuration: rest[7],
29678
+ confidentialPkce: rest[8],
29679
+ verificationUrl: rest[9],
29680
+ userCodeLength: rest[10],
29681
+ userCodeFormat: rest[11],
29682
+ deviceCodeDuration: rest[12],
29683
+ defaultScopes: rest[13]
29136
29684
  };
29137
29685
  }
29138
29686
  const enabled = params.enabled;
@@ -29143,6 +29691,7 @@
29143
29691
  const refreshTokenDuration = params.refreshTokenDuration;
29144
29692
  const publicAccessTokenDuration = params.publicAccessTokenDuration;
29145
29693
  const publicRefreshTokenDuration = params.publicRefreshTokenDuration;
29694
+ const installationAccessTokenDuration = params.installationAccessTokenDuration;
29146
29695
  const confidentialPkce = params.confidentialPkce;
29147
29696
  const verificationUrl = params.verificationUrl;
29148
29697
  const userCodeLength = params.userCodeLength;
@@ -29181,6 +29730,9 @@
29181
29730
  if (typeof publicRefreshTokenDuration !== 'undefined') {
29182
29731
  payload['publicRefreshTokenDuration'] = publicRefreshTokenDuration;
29183
29732
  }
29733
+ if (typeof installationAccessTokenDuration !== 'undefined') {
29734
+ payload['installationAccessTokenDuration'] = installationAccessTokenDuration;
29735
+ }
29184
29736
  if (typeof confidentialPkce !== 'undefined') {
29185
29737
  payload['confidentialPkce'] = confidentialPkce;
29186
29738
  }
@@ -32435,46 +32987,6 @@
32435
32987
  };
32436
32988
  return this.client.call('get', uri, apiHeaders, payload);
32437
32989
  }
32438
- createDevKey(paramsOrFirst, ...rest) {
32439
- let params;
32440
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
32441
- params = (paramsOrFirst || {});
32442
- }
32443
- else {
32444
- params = {
32445
- projectId: paramsOrFirst,
32446
- name: rest[0],
32447
- expire: rest[1]
32448
- };
32449
- }
32450
- const projectId = params.projectId;
32451
- const name = params.name;
32452
- const expire = params.expire;
32453
- if (typeof projectId === 'undefined') {
32454
- throw new AppwriteException('Missing required parameter: "projectId"');
32455
- }
32456
- if (typeof name === 'undefined') {
32457
- throw new AppwriteException('Missing required parameter: "name"');
32458
- }
32459
- if (typeof expire === 'undefined') {
32460
- throw new AppwriteException('Missing required parameter: "expire"');
32461
- }
32462
- const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
32463
- const payload = {};
32464
- if (typeof name !== 'undefined') {
32465
- payload['name'] = name;
32466
- }
32467
- if (typeof expire !== 'undefined') {
32468
- payload['expire'] = expire;
32469
- }
32470
- const uri = new URL(this.client.config.endpoint + apiPath);
32471
- const apiHeaders = {
32472
- 'X-Appwrite-Project': this.client.config.project,
32473
- 'content-type': 'application/json',
32474
- 'accept': 'application/json',
32475
- };
32476
- return this.client.call('post', uri, apiHeaders, payload);
32477
- }
32478
32990
  getDevKey(paramsOrFirst, ...rest) {
32479
32991
  let params;
32480
32992
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -35444,6 +35956,44 @@
35444
35956
  };
35445
35957
  return this.client.call('delete', uri, apiHeaders, payload);
35446
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
+ }
35447
35997
  getReplicas(paramsOrFirst) {
35448
35998
  let params;
35449
35999
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -38770,6 +39320,167 @@
38770
39320
  };
38771
39321
  return this.client.call('delete', uri, apiHeaders, payload);
38772
39322
  }
39323
+ listInstallations(paramsOrFirst, ...rest) {
39324
+ let params;
39325
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39326
+ params = (paramsOrFirst || {});
39327
+ }
39328
+ else {
39329
+ params = {
39330
+ teamId: paramsOrFirst,
39331
+ queries: rest[0],
39332
+ total: rest[1]
39333
+ };
39334
+ }
39335
+ const teamId = params.teamId;
39336
+ const queries = params.queries;
39337
+ const total = params.total;
39338
+ if (typeof teamId === 'undefined') {
39339
+ throw new AppwriteException('Missing required parameter: "teamId"');
39340
+ }
39341
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
39342
+ const payload = {};
39343
+ if (typeof queries !== 'undefined') {
39344
+ payload['queries'] = queries;
39345
+ }
39346
+ if (typeof total !== 'undefined') {
39347
+ payload['total'] = total;
39348
+ }
39349
+ const uri = new URL(this.client.config.endpoint + apiPath);
39350
+ const apiHeaders = {
39351
+ 'X-Appwrite-Project': this.client.config.project,
39352
+ 'accept': 'application/json',
39353
+ };
39354
+ return this.client.call('get', uri, apiHeaders, payload);
39355
+ }
39356
+ createInstallation(paramsOrFirst, ...rest) {
39357
+ let params;
39358
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39359
+ params = (paramsOrFirst || {});
39360
+ }
39361
+ else {
39362
+ params = {
39363
+ teamId: paramsOrFirst,
39364
+ appId: rest[0],
39365
+ authorizationDetails: rest[1]
39366
+ };
39367
+ }
39368
+ const teamId = params.teamId;
39369
+ const appId = params.appId;
39370
+ const authorizationDetails = params.authorizationDetails;
39371
+ if (typeof teamId === 'undefined') {
39372
+ throw new AppwriteException('Missing required parameter: "teamId"');
39373
+ }
39374
+ if (typeof appId === 'undefined') {
39375
+ throw new AppwriteException('Missing required parameter: "appId"');
39376
+ }
39377
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
39378
+ const payload = {};
39379
+ if (typeof appId !== 'undefined') {
39380
+ payload['appId'] = appId;
39381
+ }
39382
+ if (typeof authorizationDetails !== 'undefined') {
39383
+ payload['authorizationDetails'] = authorizationDetails;
39384
+ }
39385
+ const uri = new URL(this.client.config.endpoint + apiPath);
39386
+ const apiHeaders = {
39387
+ 'X-Appwrite-Project': this.client.config.project,
39388
+ 'content-type': 'application/json',
39389
+ 'accept': 'application/json',
39390
+ };
39391
+ return this.client.call('post', uri, apiHeaders, payload);
39392
+ }
39393
+ getInstallation(paramsOrFirst, ...rest) {
39394
+ let params;
39395
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39396
+ params = (paramsOrFirst || {});
39397
+ }
39398
+ else {
39399
+ params = {
39400
+ teamId: paramsOrFirst,
39401
+ installationId: rest[0]
39402
+ };
39403
+ }
39404
+ const teamId = params.teamId;
39405
+ const installationId = params.installationId;
39406
+ if (typeof teamId === 'undefined') {
39407
+ throw new AppwriteException('Missing required parameter: "teamId"');
39408
+ }
39409
+ if (typeof installationId === 'undefined') {
39410
+ throw new AppwriteException('Missing required parameter: "installationId"');
39411
+ }
39412
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39413
+ const payload = {};
39414
+ const uri = new URL(this.client.config.endpoint + apiPath);
39415
+ const apiHeaders = {
39416
+ 'X-Appwrite-Project': this.client.config.project,
39417
+ 'accept': 'application/json',
39418
+ };
39419
+ return this.client.call('get', uri, apiHeaders, payload);
39420
+ }
39421
+ updateInstallation(paramsOrFirst, ...rest) {
39422
+ let params;
39423
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39424
+ params = (paramsOrFirst || {});
39425
+ }
39426
+ else {
39427
+ params = {
39428
+ teamId: paramsOrFirst,
39429
+ installationId: rest[0],
39430
+ authorizationDetails: rest[1]
39431
+ };
39432
+ }
39433
+ const teamId = params.teamId;
39434
+ const installationId = params.installationId;
39435
+ const authorizationDetails = params.authorizationDetails;
39436
+ if (typeof teamId === 'undefined') {
39437
+ throw new AppwriteException('Missing required parameter: "teamId"');
39438
+ }
39439
+ if (typeof installationId === 'undefined') {
39440
+ throw new AppwriteException('Missing required parameter: "installationId"');
39441
+ }
39442
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39443
+ const payload = {};
39444
+ if (typeof authorizationDetails !== 'undefined') {
39445
+ payload['authorizationDetails'] = authorizationDetails;
39446
+ }
39447
+ const uri = new URL(this.client.config.endpoint + apiPath);
39448
+ const apiHeaders = {
39449
+ 'X-Appwrite-Project': this.client.config.project,
39450
+ 'content-type': 'application/json',
39451
+ 'accept': 'application/json',
39452
+ };
39453
+ return this.client.call('put', uri, apiHeaders, payload);
39454
+ }
39455
+ deleteInstallation(paramsOrFirst, ...rest) {
39456
+ let params;
39457
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39458
+ params = (paramsOrFirst || {});
39459
+ }
39460
+ else {
39461
+ params = {
39462
+ teamId: paramsOrFirst,
39463
+ installationId: rest[0]
39464
+ };
39465
+ }
39466
+ const teamId = params.teamId;
39467
+ const installationId = params.installationId;
39468
+ if (typeof teamId === 'undefined') {
39469
+ throw new AppwriteException('Missing required parameter: "teamId"');
39470
+ }
39471
+ if (typeof installationId === 'undefined') {
39472
+ throw new AppwriteException('Missing required parameter: "installationId"');
39473
+ }
39474
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39475
+ const payload = {};
39476
+ const uri = new URL(this.client.config.endpoint + apiPath);
39477
+ const apiHeaders = {
39478
+ 'X-Appwrite-Project': this.client.config.project,
39479
+ 'content-type': 'application/json',
39480
+ 'accept': 'application/json',
39481
+ };
39482
+ return this.client.call('delete', uri, apiHeaders, payload);
39483
+ }
38773
39484
  listLogs(paramsOrFirst, ...rest) {
38774
39485
  let params;
38775
39486
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -41193,12 +41904,14 @@
41193
41904
  params = {
41194
41905
  installationId: paramsOrFirst,
41195
41906
  name: rest[0],
41196
- xprivate: rest[1]
41907
+ xprivate: rest[1],
41908
+ providerNamespace: rest[2]
41197
41909
  };
41198
41910
  }
41199
41911
  const installationId = params.installationId;
41200
41912
  const name = params.name;
41201
41913
  const xprivate = params.xprivate;
41914
+ const providerNamespace = params.providerNamespace;
41202
41915
  if (typeof installationId === 'undefined') {
41203
41916
  throw new AppwriteException('Missing required parameter: "installationId"');
41204
41917
  }
@@ -41216,6 +41929,9 @@
41216
41929
  if (typeof xprivate !== 'undefined') {
41217
41930
  payload['private'] = xprivate;
41218
41931
  }
41932
+ if (typeof providerNamespace !== 'undefined') {
41933
+ payload['providerNamespace'] = providerNamespace;
41934
+ }
41219
41935
  const uri = new URL(this.client.config.endpoint + apiPath);
41220
41936
  const apiHeaders = {
41221
41937
  'X-Appwrite-Project': this.client.config.project,
@@ -41444,6 +42160,39 @@
41444
42160
  };
41445
42161
  return this.client.call('delete', uri, apiHeaders, payload);
41446
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
+ }
41447
42196
  }
41448
42197
 
41449
42198
  class VectorsDB {
@@ -42294,6 +43043,55 @@
42294
43043
  };
42295
43044
  return this.client.call('delete', uri, apiHeaders, payload);
42296
43045
  }
43046
+ createQuery(paramsOrFirst, ...rest) {
43047
+ let params;
43048
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
43049
+ params = (paramsOrFirst || {});
43050
+ }
43051
+ else {
43052
+ params = {
43053
+ databaseId: paramsOrFirst,
43054
+ collectionId: rest[0],
43055
+ queries: rest[1],
43056
+ transactionId: rest[2],
43057
+ total: rest[3],
43058
+ ttl: rest[4]
43059
+ };
43060
+ }
43061
+ const databaseId = params.databaseId;
43062
+ const collectionId = params.collectionId;
43063
+ const queries = params.queries;
43064
+ const transactionId = params.transactionId;
43065
+ const total = params.total;
43066
+ const ttl = params.ttl;
43067
+ if (typeof databaseId === 'undefined') {
43068
+ throw new AppwriteException('Missing required parameter: "databaseId"');
43069
+ }
43070
+ if (typeof collectionId === 'undefined') {
43071
+ throw new AppwriteException('Missing required parameter: "collectionId"');
43072
+ }
43073
+ const apiPath = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/query'.replace('{databaseId}', encodeURIComponent(String(databaseId))).replace('{collectionId}', encodeURIComponent(String(collectionId)));
43074
+ const payload = {};
43075
+ if (typeof queries !== 'undefined') {
43076
+ payload['queries'] = queries;
43077
+ }
43078
+ if (typeof transactionId !== 'undefined') {
43079
+ payload['transactionId'] = transactionId;
43080
+ }
43081
+ if (typeof total !== 'undefined') {
43082
+ payload['total'] = total;
43083
+ }
43084
+ if (typeof ttl !== 'undefined') {
43085
+ payload['ttl'] = ttl;
43086
+ }
43087
+ const uri = new URL(this.client.config.endpoint + apiPath);
43088
+ const apiHeaders = {
43089
+ 'X-Appwrite-Project': this.client.config.project,
43090
+ 'content-type': 'application/json',
43091
+ 'accept': 'application/json',
43092
+ };
43093
+ return this.client.call('post', uri, apiHeaders, payload);
43094
+ }
42297
43095
  getDocument(paramsOrFirst, ...rest) {
42298
43096
  let params;
42299
43097
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -42669,6 +43467,44 @@
42669
43467
  };
42670
43468
  return this.client.call('post', uri, apiHeaders, payload);
42671
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
+ }
42672
43508
  getReplicas(paramsOrFirst) {
42673
43509
  let params;
42674
43510
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -45615,6 +46451,7 @@
45615
46451
  QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
45616
46452
  QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
45617
46453
  QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
46454
+ QuerySuggestionResource["DedicatedDatabaseBranches"] = "dedicateddatabasebranches";
45618
46455
  })(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
45619
46456
 
45620
46457
  exports.ProjectEmailTemplateId = void 0;
@@ -46219,6 +47056,8 @@
46219
47056
  OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
46220
47057
  OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
46221
47058
  OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
47059
+ OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
47060
+ OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
46222
47061
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
46223
47062
  OrganizationKeyScopes["OrganizationMembershipsWrite"] = "organization.memberships.write";
46224
47063
  OrganizationKeyScopes["OrganizationRead"] = "organization.read";