@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/esm/sdk.js CHANGED
@@ -645,7 +645,7 @@ class Client {
645
645
  'x-sdk-name': 'Console',
646
646
  'x-sdk-platform': 'console',
647
647
  'x-sdk-language': 'web',
648
- 'x-sdk-version': '15.4.0',
648
+ 'x-sdk-version': '15.6.0',
649
649
  'X-Appwrite-Response-Format': '1.9.5',
650
650
  };
651
651
  this.realtime = {
@@ -4061,6 +4061,22 @@ class Apps {
4061
4061
  };
4062
4062
  return this.client.call('post', uri, apiHeaders, payload);
4063
4063
  }
4064
+ /**
4065
+ * List scopes an application can request when installed on a team.
4066
+ *
4067
+ * @throws {AppwriteException}
4068
+ * @returns {Promise<Models.AppScopeList>}
4069
+ */
4070
+ listInstallationScopes() {
4071
+ const apiPath = '/apps/scopes/installations';
4072
+ const payload = {};
4073
+ const uri = new URL(this.client.config.endpoint + apiPath);
4074
+ const apiHeaders = {
4075
+ 'X-Appwrite-Project': this.client.config.project,
4076
+ 'accept': 'application/json',
4077
+ };
4078
+ return this.client.call('get', uri, apiHeaders, payload);
4079
+ }
4064
4080
  /**
4065
4081
  * List scopes an application can request during the OAuth2 flow.
4066
4082
  *
@@ -4124,7 +4140,9 @@ class Apps {
4124
4140
  redirectUris: rest[13],
4125
4141
  postLogoutRedirectUris: rest[14],
4126
4142
  type: rest[15],
4127
- deviceFlow: rest[16]
4143
+ deviceFlow: rest[16],
4144
+ installationScopes: rest[17],
4145
+ installationRedirectUrl: rest[18]
4128
4146
  };
4129
4147
  }
4130
4148
  const appId = params.appId;
@@ -4145,6 +4163,8 @@ class Apps {
4145
4163
  const postLogoutRedirectUris = params.postLogoutRedirectUris;
4146
4164
  const type = params.type;
4147
4165
  const deviceFlow = params.deviceFlow;
4166
+ const installationScopes = params.installationScopes;
4167
+ const installationRedirectUrl = params.installationRedirectUrl;
4148
4168
  if (typeof appId === 'undefined') {
4149
4169
  throw new AppwriteException('Missing required parameter: "appId"');
4150
4170
  }
@@ -4204,6 +4224,12 @@ class Apps {
4204
4224
  if (typeof deviceFlow !== 'undefined') {
4205
4225
  payload['deviceFlow'] = deviceFlow;
4206
4226
  }
4227
+ if (typeof installationScopes !== 'undefined') {
4228
+ payload['installationScopes'] = installationScopes;
4229
+ }
4230
+ if (typeof installationRedirectUrl !== 'undefined') {
4231
+ payload['installationRedirectUrl'] = installationRedirectUrl;
4232
+ }
4207
4233
  const uri = new URL(this.client.config.endpoint + apiPath);
4208
4234
  const apiHeaders = {
4209
4235
  'X-Appwrite-Project': this.client.config.project,
@@ -4236,6 +4262,239 @@ class Apps {
4236
4262
  };
4237
4263
  return this.client.call('delete', uri, apiHeaders, payload);
4238
4264
  }
4265
+ listInstallations(paramsOrFirst, ...rest) {
4266
+ let params;
4267
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4268
+ params = (paramsOrFirst || {});
4269
+ }
4270
+ else {
4271
+ params = {
4272
+ appId: paramsOrFirst,
4273
+ queries: rest[0],
4274
+ total: rest[1]
4275
+ };
4276
+ }
4277
+ const appId = params.appId;
4278
+ const queries = params.queries;
4279
+ const total = params.total;
4280
+ if (typeof appId === 'undefined') {
4281
+ throw new AppwriteException('Missing required parameter: "appId"');
4282
+ }
4283
+ const apiPath = '/apps/{appId}/installations'.replace('{appId}', encodeURIComponent(String(appId)));
4284
+ const payload = {};
4285
+ if (typeof queries !== 'undefined') {
4286
+ payload['queries'] = queries;
4287
+ }
4288
+ if (typeof total !== 'undefined') {
4289
+ payload['total'] = total;
4290
+ }
4291
+ const uri = new URL(this.client.config.endpoint + apiPath);
4292
+ const apiHeaders = {
4293
+ 'X-Appwrite-Project': this.client.config.project,
4294
+ 'accept': 'application/json',
4295
+ };
4296
+ return this.client.call('get', uri, apiHeaders, payload);
4297
+ }
4298
+ getInstallation(paramsOrFirst, ...rest) {
4299
+ let params;
4300
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4301
+ params = (paramsOrFirst || {});
4302
+ }
4303
+ else {
4304
+ params = {
4305
+ appId: paramsOrFirst,
4306
+ installationId: rest[0]
4307
+ };
4308
+ }
4309
+ const appId = params.appId;
4310
+ const installationId = params.installationId;
4311
+ if (typeof appId === 'undefined') {
4312
+ throw new AppwriteException('Missing required parameter: "appId"');
4313
+ }
4314
+ if (typeof installationId === 'undefined') {
4315
+ throw new AppwriteException('Missing required parameter: "installationId"');
4316
+ }
4317
+ const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
4318
+ const payload = {};
4319
+ const uri = new URL(this.client.config.endpoint + apiPath);
4320
+ const apiHeaders = {
4321
+ 'X-Appwrite-Project': this.client.config.project,
4322
+ 'accept': 'application/json',
4323
+ };
4324
+ return this.client.call('get', uri, apiHeaders, payload);
4325
+ }
4326
+ deleteInstallation(paramsOrFirst, ...rest) {
4327
+ let params;
4328
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4329
+ params = (paramsOrFirst || {});
4330
+ }
4331
+ else {
4332
+ params = {
4333
+ appId: paramsOrFirst,
4334
+ installationId: rest[0]
4335
+ };
4336
+ }
4337
+ const appId = params.appId;
4338
+ const installationId = params.installationId;
4339
+ if (typeof appId === 'undefined') {
4340
+ throw new AppwriteException('Missing required parameter: "appId"');
4341
+ }
4342
+ if (typeof installationId === 'undefined') {
4343
+ throw new AppwriteException('Missing required parameter: "installationId"');
4344
+ }
4345
+ const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
4346
+ const payload = {};
4347
+ const uri = new URL(this.client.config.endpoint + apiPath);
4348
+ const apiHeaders = {
4349
+ 'X-Appwrite-Project': this.client.config.project,
4350
+ 'content-type': 'application/json',
4351
+ 'accept': 'application/json',
4352
+ };
4353
+ return this.client.call('delete', uri, apiHeaders, payload);
4354
+ }
4355
+ createInstallationToken(paramsOrFirst, ...rest) {
4356
+ let params;
4357
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4358
+ params = (paramsOrFirst || {});
4359
+ }
4360
+ else {
4361
+ params = {
4362
+ appId: paramsOrFirst,
4363
+ installationId: rest[0]
4364
+ };
4365
+ }
4366
+ const appId = params.appId;
4367
+ const installationId = params.installationId;
4368
+ if (typeof appId === 'undefined') {
4369
+ throw new AppwriteException('Missing required parameter: "appId"');
4370
+ }
4371
+ if (typeof installationId === 'undefined') {
4372
+ throw new AppwriteException('Missing required parameter: "installationId"');
4373
+ }
4374
+ const apiPath = '/apps/{appId}/installations/{installationId}/tokens'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
4375
+ const payload = {};
4376
+ const uri = new URL(this.client.config.endpoint + apiPath);
4377
+ const apiHeaders = {
4378
+ 'X-Appwrite-Project': this.client.config.project,
4379
+ 'content-type': 'application/json',
4380
+ 'accept': 'application/json',
4381
+ };
4382
+ return this.client.call('post', uri, apiHeaders, payload);
4383
+ }
4384
+ listKeys(paramsOrFirst, ...rest) {
4385
+ let params;
4386
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4387
+ params = (paramsOrFirst || {});
4388
+ }
4389
+ else {
4390
+ params = {
4391
+ appId: paramsOrFirst,
4392
+ queries: rest[0],
4393
+ total: rest[1]
4394
+ };
4395
+ }
4396
+ const appId = params.appId;
4397
+ const queries = params.queries;
4398
+ const total = params.total;
4399
+ if (typeof appId === 'undefined') {
4400
+ throw new AppwriteException('Missing required parameter: "appId"');
4401
+ }
4402
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
4403
+ const payload = {};
4404
+ if (typeof queries !== 'undefined') {
4405
+ payload['queries'] = queries;
4406
+ }
4407
+ if (typeof total !== 'undefined') {
4408
+ payload['total'] = total;
4409
+ }
4410
+ const uri = new URL(this.client.config.endpoint + apiPath);
4411
+ const apiHeaders = {
4412
+ 'X-Appwrite-Project': this.client.config.project,
4413
+ 'accept': 'application/json',
4414
+ };
4415
+ return this.client.call('get', uri, apiHeaders, payload);
4416
+ }
4417
+ createKey(paramsOrFirst) {
4418
+ let params;
4419
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4420
+ params = (paramsOrFirst || {});
4421
+ }
4422
+ else {
4423
+ params = {
4424
+ appId: paramsOrFirst
4425
+ };
4426
+ }
4427
+ const appId = params.appId;
4428
+ if (typeof appId === 'undefined') {
4429
+ throw new AppwriteException('Missing required parameter: "appId"');
4430
+ }
4431
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
4432
+ const payload = {};
4433
+ const uri = new URL(this.client.config.endpoint + apiPath);
4434
+ const apiHeaders = {
4435
+ 'X-Appwrite-Project': this.client.config.project,
4436
+ 'content-type': 'application/json',
4437
+ 'accept': 'application/json',
4438
+ };
4439
+ return this.client.call('post', uri, apiHeaders, payload);
4440
+ }
4441
+ getKey(paramsOrFirst, ...rest) {
4442
+ let params;
4443
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4444
+ params = (paramsOrFirst || {});
4445
+ }
4446
+ else {
4447
+ params = {
4448
+ appId: paramsOrFirst,
4449
+ keyId: rest[0]
4450
+ };
4451
+ }
4452
+ const appId = params.appId;
4453
+ const keyId = params.keyId;
4454
+ if (typeof appId === 'undefined') {
4455
+ throw new AppwriteException('Missing required parameter: "appId"');
4456
+ }
4457
+ if (typeof keyId === 'undefined') {
4458
+ throw new AppwriteException('Missing required parameter: "keyId"');
4459
+ }
4460
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
4461
+ const payload = {};
4462
+ const uri = new URL(this.client.config.endpoint + apiPath);
4463
+ const apiHeaders = {
4464
+ 'X-Appwrite-Project': this.client.config.project,
4465
+ 'accept': 'application/json',
4466
+ };
4467
+ return this.client.call('get', uri, apiHeaders, payload);
4468
+ }
4469
+ deleteKey(paramsOrFirst, ...rest) {
4470
+ let params;
4471
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4472
+ params = (paramsOrFirst || {});
4473
+ }
4474
+ else {
4475
+ params = {
4476
+ appId: paramsOrFirst,
4477
+ keyId: rest[0]
4478
+ };
4479
+ }
4480
+ const appId = params.appId;
4481
+ const keyId = params.keyId;
4482
+ if (typeof appId === 'undefined') {
4483
+ throw new AppwriteException('Missing required parameter: "appId"');
4484
+ }
4485
+ if (typeof keyId === 'undefined') {
4486
+ throw new AppwriteException('Missing required parameter: "keyId"');
4487
+ }
4488
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
4489
+ const payload = {};
4490
+ const uri = new URL(this.client.config.endpoint + apiPath);
4491
+ const apiHeaders = {
4492
+ 'X-Appwrite-Project': this.client.config.project,
4493
+ 'content-type': 'application/json',
4494
+ 'accept': 'application/json',
4495
+ };
4496
+ return this.client.call('delete', uri, apiHeaders, payload);
4497
+ }
4239
4498
  updateLabels(paramsOrFirst, ...rest) {
4240
4499
  let params;
4241
4500
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -10485,6 +10744,44 @@ class DocumentsDB {
10485
10744
  };
10486
10745
  return this.client.call('post', uri, apiHeaders, payload);
10487
10746
  }
10747
+ listOperations(paramsOrFirst, ...rest) {
10748
+ let params;
10749
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
10750
+ params = (paramsOrFirst || {});
10751
+ }
10752
+ else {
10753
+ params = {
10754
+ databaseId: paramsOrFirst,
10755
+ status: rest[0],
10756
+ limit: rest[1],
10757
+ offset: rest[2]
10758
+ };
10759
+ }
10760
+ const databaseId = params.databaseId;
10761
+ const status = params.status;
10762
+ const limit = params.limit;
10763
+ const offset = params.offset;
10764
+ if (typeof databaseId === 'undefined') {
10765
+ throw new AppwriteException('Missing required parameter: "databaseId"');
10766
+ }
10767
+ const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
10768
+ const payload = {};
10769
+ if (typeof status !== 'undefined') {
10770
+ payload['status'] = status;
10771
+ }
10772
+ if (typeof limit !== 'undefined') {
10773
+ payload['limit'] = limit;
10774
+ }
10775
+ if (typeof offset !== 'undefined') {
10776
+ payload['offset'] = offset;
10777
+ }
10778
+ const uri = new URL(this.client.config.endpoint + apiPath);
10779
+ const apiHeaders = {
10780
+ 'X-Appwrite-Project': this.client.config.project,
10781
+ 'accept': 'application/json',
10782
+ };
10783
+ return this.client.call('get', uri, apiHeaders, payload);
10784
+ }
10488
10785
  getReplicas(paramsOrFirst) {
10489
10786
  let params;
10490
10787
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -19059,6 +19356,44 @@ class Mongo {
19059
19356
  };
19060
19357
  return this.client.call('post', uri, apiHeaders, payload);
19061
19358
  }
19359
+ listOperations(paramsOrFirst, ...rest) {
19360
+ let params;
19361
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19362
+ params = (paramsOrFirst || {});
19363
+ }
19364
+ else {
19365
+ params = {
19366
+ databaseId: paramsOrFirst,
19367
+ status: rest[0],
19368
+ limit: rest[1],
19369
+ offset: rest[2]
19370
+ };
19371
+ }
19372
+ const databaseId = params.databaseId;
19373
+ const status = params.status;
19374
+ const limit = params.limit;
19375
+ const offset = params.offset;
19376
+ if (typeof databaseId === 'undefined') {
19377
+ throw new AppwriteException('Missing required parameter: "databaseId"');
19378
+ }
19379
+ const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
19380
+ const payload = {};
19381
+ if (typeof status !== 'undefined') {
19382
+ payload['status'] = status;
19383
+ }
19384
+ if (typeof limit !== 'undefined') {
19385
+ payload['limit'] = limit;
19386
+ }
19387
+ if (typeof offset !== 'undefined') {
19388
+ payload['offset'] = offset;
19389
+ }
19390
+ const uri = new URL(this.client.config.endpoint + apiPath);
19391
+ const apiHeaders = {
19392
+ 'X-Appwrite-Project': this.client.config.project,
19393
+ 'accept': 'application/json',
19394
+ };
19395
+ return this.client.call('get', uri, apiHeaders, payload);
19396
+ }
19062
19397
  getPitr(paramsOrFirst) {
19063
19398
  let params;
19064
19399
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -20244,6 +20579,44 @@ class Mysql {
20244
20579
  };
20245
20580
  return this.client.call('post', uri, apiHeaders, payload);
20246
20581
  }
20582
+ listOperations(paramsOrFirst, ...rest) {
20583
+ let params;
20584
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20585
+ params = (paramsOrFirst || {});
20586
+ }
20587
+ else {
20588
+ params = {
20589
+ databaseId: paramsOrFirst,
20590
+ status: rest[0],
20591
+ limit: rest[1],
20592
+ offset: rest[2]
20593
+ };
20594
+ }
20595
+ const databaseId = params.databaseId;
20596
+ const status = params.status;
20597
+ const limit = params.limit;
20598
+ const offset = params.offset;
20599
+ if (typeof databaseId === 'undefined') {
20600
+ throw new AppwriteException('Missing required parameter: "databaseId"');
20601
+ }
20602
+ const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
20603
+ const payload = {};
20604
+ if (typeof status !== 'undefined') {
20605
+ payload['status'] = status;
20606
+ }
20607
+ if (typeof limit !== 'undefined') {
20608
+ payload['limit'] = limit;
20609
+ }
20610
+ if (typeof offset !== 'undefined') {
20611
+ payload['offset'] = offset;
20612
+ }
20613
+ const uri = new URL(this.client.config.endpoint + apiPath);
20614
+ const apiHeaders = {
20615
+ 'X-Appwrite-Project': this.client.config.project,
20616
+ 'accept': 'application/json',
20617
+ };
20618
+ return this.client.call('get', uri, apiHeaders, payload);
20619
+ }
20247
20620
  getPitr(paramsOrFirst) {
20248
20621
  let params;
20249
20622
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21365,6 +21738,142 @@ class Organization {
21365
21738
  };
21366
21739
  return this.client.call('delete', uri, apiHeaders, payload);
21367
21740
  }
21741
+ listInstallations(paramsOrFirst, ...rest) {
21742
+ let params;
21743
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21744
+ params = (paramsOrFirst || {});
21745
+ }
21746
+ else {
21747
+ params = {
21748
+ queries: paramsOrFirst,
21749
+ total: rest[0]
21750
+ };
21751
+ }
21752
+ const queries = params.queries;
21753
+ const total = params.total;
21754
+ const apiPath = '/organization/installations';
21755
+ const payload = {};
21756
+ if (typeof queries !== 'undefined') {
21757
+ payload['queries'] = queries;
21758
+ }
21759
+ if (typeof total !== 'undefined') {
21760
+ payload['total'] = total;
21761
+ }
21762
+ const uri = new URL(this.client.config.endpoint + apiPath);
21763
+ const apiHeaders = {
21764
+ 'X-Appwrite-Project': this.client.config.project,
21765
+ 'accept': 'application/json',
21766
+ };
21767
+ return this.client.call('get', uri, apiHeaders, payload);
21768
+ }
21769
+ createInstallation(paramsOrFirst, ...rest) {
21770
+ let params;
21771
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21772
+ params = (paramsOrFirst || {});
21773
+ }
21774
+ else {
21775
+ params = {
21776
+ appId: paramsOrFirst,
21777
+ authorizationDetails: rest[0]
21778
+ };
21779
+ }
21780
+ const appId = params.appId;
21781
+ const authorizationDetails = params.authorizationDetails;
21782
+ if (typeof appId === 'undefined') {
21783
+ throw new AppwriteException('Missing required parameter: "appId"');
21784
+ }
21785
+ const apiPath = '/organization/installations';
21786
+ const payload = {};
21787
+ if (typeof appId !== 'undefined') {
21788
+ payload['appId'] = appId;
21789
+ }
21790
+ if (typeof authorizationDetails !== 'undefined') {
21791
+ payload['authorizationDetails'] = authorizationDetails;
21792
+ }
21793
+ const uri = new URL(this.client.config.endpoint + apiPath);
21794
+ const apiHeaders = {
21795
+ 'X-Appwrite-Project': this.client.config.project,
21796
+ 'content-type': 'application/json',
21797
+ 'accept': 'application/json',
21798
+ };
21799
+ return this.client.call('post', uri, apiHeaders, payload);
21800
+ }
21801
+ getInstallation(paramsOrFirst) {
21802
+ let params;
21803
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21804
+ params = (paramsOrFirst || {});
21805
+ }
21806
+ else {
21807
+ params = {
21808
+ installationId: paramsOrFirst
21809
+ };
21810
+ }
21811
+ const installationId = params.installationId;
21812
+ if (typeof installationId === 'undefined') {
21813
+ throw new AppwriteException('Missing required parameter: "installationId"');
21814
+ }
21815
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21816
+ const payload = {};
21817
+ const uri = new URL(this.client.config.endpoint + apiPath);
21818
+ const apiHeaders = {
21819
+ 'X-Appwrite-Project': this.client.config.project,
21820
+ 'accept': 'application/json',
21821
+ };
21822
+ return this.client.call('get', uri, apiHeaders, payload);
21823
+ }
21824
+ updateInstallation(paramsOrFirst, ...rest) {
21825
+ let params;
21826
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21827
+ params = (paramsOrFirst || {});
21828
+ }
21829
+ else {
21830
+ params = {
21831
+ installationId: paramsOrFirst,
21832
+ authorizationDetails: rest[0]
21833
+ };
21834
+ }
21835
+ const installationId = params.installationId;
21836
+ const authorizationDetails = params.authorizationDetails;
21837
+ if (typeof installationId === 'undefined') {
21838
+ throw new AppwriteException('Missing required parameter: "installationId"');
21839
+ }
21840
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21841
+ const payload = {};
21842
+ if (typeof authorizationDetails !== 'undefined') {
21843
+ payload['authorizationDetails'] = authorizationDetails;
21844
+ }
21845
+ const uri = new URL(this.client.config.endpoint + apiPath);
21846
+ const apiHeaders = {
21847
+ 'X-Appwrite-Project': this.client.config.project,
21848
+ 'content-type': 'application/json',
21849
+ 'accept': 'application/json',
21850
+ };
21851
+ return this.client.call('put', uri, apiHeaders, payload);
21852
+ }
21853
+ deleteInstallation(paramsOrFirst) {
21854
+ let params;
21855
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21856
+ params = (paramsOrFirst || {});
21857
+ }
21858
+ else {
21859
+ params = {
21860
+ installationId: paramsOrFirst
21861
+ };
21862
+ }
21863
+ const installationId = params.installationId;
21864
+ if (typeof installationId === 'undefined') {
21865
+ throw new AppwriteException('Missing required parameter: "installationId"');
21866
+ }
21867
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21868
+ const payload = {};
21869
+ const uri = new URL(this.client.config.endpoint + apiPath);
21870
+ const apiHeaders = {
21871
+ 'X-Appwrite-Project': this.client.config.project,
21872
+ 'content-type': 'application/json',
21873
+ 'accept': 'application/json',
21874
+ };
21875
+ return this.client.call('delete', uri, apiHeaders, payload);
21876
+ }
21368
21877
  listKeys(paramsOrFirst, ...rest) {
21369
21878
  let params;
21370
21879
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -24343,6 +24852,44 @@ class Postgresql {
24343
24852
  };
24344
24853
  return this.client.call('post', uri, apiHeaders, payload);
24345
24854
  }
24855
+ listOperations(paramsOrFirst, ...rest) {
24856
+ let params;
24857
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
24858
+ params = (paramsOrFirst || {});
24859
+ }
24860
+ else {
24861
+ params = {
24862
+ databaseId: paramsOrFirst,
24863
+ status: rest[0],
24864
+ limit: rest[1],
24865
+ offset: rest[2]
24866
+ };
24867
+ }
24868
+ const databaseId = params.databaseId;
24869
+ const status = params.status;
24870
+ const limit = params.limit;
24871
+ const offset = params.offset;
24872
+ if (typeof databaseId === 'undefined') {
24873
+ throw new AppwriteException('Missing required parameter: "databaseId"');
24874
+ }
24875
+ const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
24876
+ const payload = {};
24877
+ if (typeof status !== 'undefined') {
24878
+ payload['status'] = status;
24879
+ }
24880
+ if (typeof limit !== 'undefined') {
24881
+ payload['limit'] = limit;
24882
+ }
24883
+ if (typeof offset !== 'undefined') {
24884
+ payload['offset'] = offset;
24885
+ }
24886
+ const uri = new URL(this.client.config.endpoint + apiPath);
24887
+ const apiHeaders = {
24888
+ 'X-Appwrite-Project': this.client.config.project,
24889
+ 'accept': 'application/json',
24890
+ };
24891
+ return this.client.call('get', uri, apiHeaders, payload);
24892
+ }
24346
24893
  getPitr(paramsOrFirst) {
24347
24894
  let params;
24348
24895
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25327,12 +25874,13 @@ class Project {
25327
25874
  refreshTokenDuration: rest[4],
25328
25875
  publicAccessTokenDuration: rest[5],
25329
25876
  publicRefreshTokenDuration: rest[6],
25330
- confidentialPkce: rest[7],
25331
- verificationUrl: rest[8],
25332
- userCodeLength: rest[9],
25333
- userCodeFormat: rest[10],
25334
- deviceCodeDuration: rest[11],
25335
- defaultScopes: rest[12]
25877
+ installationAccessTokenDuration: rest[7],
25878
+ confidentialPkce: rest[8],
25879
+ verificationUrl: rest[9],
25880
+ userCodeLength: rest[10],
25881
+ userCodeFormat: rest[11],
25882
+ deviceCodeDuration: rest[12],
25883
+ defaultScopes: rest[13]
25336
25884
  };
25337
25885
  }
25338
25886
  const enabled = params.enabled;
@@ -25343,6 +25891,7 @@ class Project {
25343
25891
  const refreshTokenDuration = params.refreshTokenDuration;
25344
25892
  const publicAccessTokenDuration = params.publicAccessTokenDuration;
25345
25893
  const publicRefreshTokenDuration = params.publicRefreshTokenDuration;
25894
+ const installationAccessTokenDuration = params.installationAccessTokenDuration;
25346
25895
  const confidentialPkce = params.confidentialPkce;
25347
25896
  const verificationUrl = params.verificationUrl;
25348
25897
  const userCodeLength = params.userCodeLength;
@@ -25381,6 +25930,9 @@ class Project {
25381
25930
  if (typeof publicRefreshTokenDuration !== 'undefined') {
25382
25931
  payload['publicRefreshTokenDuration'] = publicRefreshTokenDuration;
25383
25932
  }
25933
+ if (typeof installationAccessTokenDuration !== 'undefined') {
25934
+ payload['installationAccessTokenDuration'] = installationAccessTokenDuration;
25935
+ }
25384
25936
  if (typeof confidentialPkce !== 'undefined') {
25385
25937
  payload['confidentialPkce'] = confidentialPkce;
25386
25938
  }
@@ -28635,46 +29187,6 @@ class Projects {
28635
29187
  };
28636
29188
  return this.client.call('get', uri, apiHeaders, payload);
28637
29189
  }
28638
- createDevKey(paramsOrFirst, ...rest) {
28639
- let params;
28640
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
28641
- params = (paramsOrFirst || {});
28642
- }
28643
- else {
28644
- params = {
28645
- projectId: paramsOrFirst,
28646
- name: rest[0],
28647
- expire: rest[1]
28648
- };
28649
- }
28650
- const projectId = params.projectId;
28651
- const name = params.name;
28652
- const expire = params.expire;
28653
- if (typeof projectId === 'undefined') {
28654
- throw new AppwriteException('Missing required parameter: "projectId"');
28655
- }
28656
- if (typeof name === 'undefined') {
28657
- throw new AppwriteException('Missing required parameter: "name"');
28658
- }
28659
- if (typeof expire === 'undefined') {
28660
- throw new AppwriteException('Missing required parameter: "expire"');
28661
- }
28662
- const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', encodeURIComponent(String(projectId)));
28663
- const payload = {};
28664
- if (typeof name !== 'undefined') {
28665
- payload['name'] = name;
28666
- }
28667
- if (typeof expire !== 'undefined') {
28668
- payload['expire'] = expire;
28669
- }
28670
- const uri = new URL(this.client.config.endpoint + apiPath);
28671
- const apiHeaders = {
28672
- 'X-Appwrite-Project': this.client.config.project,
28673
- 'content-type': 'application/json',
28674
- 'accept': 'application/json',
28675
- };
28676
- return this.client.call('post', uri, apiHeaders, payload);
28677
- }
28678
29190
  getDevKey(paramsOrFirst, ...rest) {
28679
29191
  let params;
28680
29192
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -31644,6 +32156,44 @@ class TablesDB {
31644
32156
  };
31645
32157
  return this.client.call('delete', uri, apiHeaders, payload);
31646
32158
  }
32159
+ listOperations(paramsOrFirst, ...rest) {
32160
+ let params;
32161
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
32162
+ params = (paramsOrFirst || {});
32163
+ }
32164
+ else {
32165
+ params = {
32166
+ databaseId: paramsOrFirst,
32167
+ status: rest[0],
32168
+ limit: rest[1],
32169
+ offset: rest[2]
32170
+ };
32171
+ }
32172
+ const databaseId = params.databaseId;
32173
+ const status = params.status;
32174
+ const limit = params.limit;
32175
+ const offset = params.offset;
32176
+ if (typeof databaseId === 'undefined') {
32177
+ throw new AppwriteException('Missing required parameter: "databaseId"');
32178
+ }
32179
+ const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
32180
+ const payload = {};
32181
+ if (typeof status !== 'undefined') {
32182
+ payload['status'] = status;
32183
+ }
32184
+ if (typeof limit !== 'undefined') {
32185
+ payload['limit'] = limit;
32186
+ }
32187
+ if (typeof offset !== 'undefined') {
32188
+ payload['offset'] = offset;
32189
+ }
32190
+ const uri = new URL(this.client.config.endpoint + apiPath);
32191
+ const apiHeaders = {
32192
+ 'X-Appwrite-Project': this.client.config.project,
32193
+ 'accept': 'application/json',
32194
+ };
32195
+ return this.client.call('get', uri, apiHeaders, payload);
32196
+ }
31647
32197
  getReplicas(paramsOrFirst) {
31648
32198
  let params;
31649
32199
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -34970,6 +35520,167 @@ class Teams {
34970
35520
  };
34971
35521
  return this.client.call('delete', uri, apiHeaders, payload);
34972
35522
  }
35523
+ listInstallations(paramsOrFirst, ...rest) {
35524
+ let params;
35525
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35526
+ params = (paramsOrFirst || {});
35527
+ }
35528
+ else {
35529
+ params = {
35530
+ teamId: paramsOrFirst,
35531
+ queries: rest[0],
35532
+ total: rest[1]
35533
+ };
35534
+ }
35535
+ const teamId = params.teamId;
35536
+ const queries = params.queries;
35537
+ const total = params.total;
35538
+ if (typeof teamId === 'undefined') {
35539
+ throw new AppwriteException('Missing required parameter: "teamId"');
35540
+ }
35541
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
35542
+ const payload = {};
35543
+ if (typeof queries !== 'undefined') {
35544
+ payload['queries'] = queries;
35545
+ }
35546
+ if (typeof total !== 'undefined') {
35547
+ payload['total'] = total;
35548
+ }
35549
+ const uri = new URL(this.client.config.endpoint + apiPath);
35550
+ const apiHeaders = {
35551
+ 'X-Appwrite-Project': this.client.config.project,
35552
+ 'accept': 'application/json',
35553
+ };
35554
+ return this.client.call('get', uri, apiHeaders, payload);
35555
+ }
35556
+ createInstallation(paramsOrFirst, ...rest) {
35557
+ let params;
35558
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35559
+ params = (paramsOrFirst || {});
35560
+ }
35561
+ else {
35562
+ params = {
35563
+ teamId: paramsOrFirst,
35564
+ appId: rest[0],
35565
+ authorizationDetails: rest[1]
35566
+ };
35567
+ }
35568
+ const teamId = params.teamId;
35569
+ const appId = params.appId;
35570
+ const authorizationDetails = params.authorizationDetails;
35571
+ if (typeof teamId === 'undefined') {
35572
+ throw new AppwriteException('Missing required parameter: "teamId"');
35573
+ }
35574
+ if (typeof appId === 'undefined') {
35575
+ throw new AppwriteException('Missing required parameter: "appId"');
35576
+ }
35577
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
35578
+ const payload = {};
35579
+ if (typeof appId !== 'undefined') {
35580
+ payload['appId'] = appId;
35581
+ }
35582
+ if (typeof authorizationDetails !== 'undefined') {
35583
+ payload['authorizationDetails'] = authorizationDetails;
35584
+ }
35585
+ const uri = new URL(this.client.config.endpoint + apiPath);
35586
+ const apiHeaders = {
35587
+ 'X-Appwrite-Project': this.client.config.project,
35588
+ 'content-type': 'application/json',
35589
+ 'accept': 'application/json',
35590
+ };
35591
+ return this.client.call('post', uri, apiHeaders, payload);
35592
+ }
35593
+ getInstallation(paramsOrFirst, ...rest) {
35594
+ let params;
35595
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35596
+ params = (paramsOrFirst || {});
35597
+ }
35598
+ else {
35599
+ params = {
35600
+ teamId: paramsOrFirst,
35601
+ installationId: rest[0]
35602
+ };
35603
+ }
35604
+ const teamId = params.teamId;
35605
+ const installationId = params.installationId;
35606
+ if (typeof teamId === 'undefined') {
35607
+ throw new AppwriteException('Missing required parameter: "teamId"');
35608
+ }
35609
+ if (typeof installationId === 'undefined') {
35610
+ throw new AppwriteException('Missing required parameter: "installationId"');
35611
+ }
35612
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35613
+ const payload = {};
35614
+ const uri = new URL(this.client.config.endpoint + apiPath);
35615
+ const apiHeaders = {
35616
+ 'X-Appwrite-Project': this.client.config.project,
35617
+ 'accept': 'application/json',
35618
+ };
35619
+ return this.client.call('get', uri, apiHeaders, payload);
35620
+ }
35621
+ updateInstallation(paramsOrFirst, ...rest) {
35622
+ let params;
35623
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35624
+ params = (paramsOrFirst || {});
35625
+ }
35626
+ else {
35627
+ params = {
35628
+ teamId: paramsOrFirst,
35629
+ installationId: rest[0],
35630
+ authorizationDetails: rest[1]
35631
+ };
35632
+ }
35633
+ const teamId = params.teamId;
35634
+ const installationId = params.installationId;
35635
+ const authorizationDetails = params.authorizationDetails;
35636
+ if (typeof teamId === 'undefined') {
35637
+ throw new AppwriteException('Missing required parameter: "teamId"');
35638
+ }
35639
+ if (typeof installationId === 'undefined') {
35640
+ throw new AppwriteException('Missing required parameter: "installationId"');
35641
+ }
35642
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35643
+ const payload = {};
35644
+ if (typeof authorizationDetails !== 'undefined') {
35645
+ payload['authorizationDetails'] = authorizationDetails;
35646
+ }
35647
+ const uri = new URL(this.client.config.endpoint + apiPath);
35648
+ const apiHeaders = {
35649
+ 'X-Appwrite-Project': this.client.config.project,
35650
+ 'content-type': 'application/json',
35651
+ 'accept': 'application/json',
35652
+ };
35653
+ return this.client.call('put', uri, apiHeaders, payload);
35654
+ }
35655
+ deleteInstallation(paramsOrFirst, ...rest) {
35656
+ let params;
35657
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35658
+ params = (paramsOrFirst || {});
35659
+ }
35660
+ else {
35661
+ params = {
35662
+ teamId: paramsOrFirst,
35663
+ installationId: rest[0]
35664
+ };
35665
+ }
35666
+ const teamId = params.teamId;
35667
+ const installationId = params.installationId;
35668
+ if (typeof teamId === 'undefined') {
35669
+ throw new AppwriteException('Missing required parameter: "teamId"');
35670
+ }
35671
+ if (typeof installationId === 'undefined') {
35672
+ throw new AppwriteException('Missing required parameter: "installationId"');
35673
+ }
35674
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35675
+ const payload = {};
35676
+ const uri = new URL(this.client.config.endpoint + apiPath);
35677
+ const apiHeaders = {
35678
+ 'X-Appwrite-Project': this.client.config.project,
35679
+ 'content-type': 'application/json',
35680
+ 'accept': 'application/json',
35681
+ };
35682
+ return this.client.call('delete', uri, apiHeaders, payload);
35683
+ }
34973
35684
  listLogs(paramsOrFirst, ...rest) {
34974
35685
  let params;
34975
35686
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -37393,12 +38104,14 @@ class Vcs {
37393
38104
  params = {
37394
38105
  installationId: paramsOrFirst,
37395
38106
  name: rest[0],
37396
- xprivate: rest[1]
38107
+ xprivate: rest[1],
38108
+ providerNamespace: rest[2]
37397
38109
  };
37398
38110
  }
37399
38111
  const installationId = params.installationId;
37400
38112
  const name = params.name;
37401
38113
  const xprivate = params.xprivate;
38114
+ const providerNamespace = params.providerNamespace;
37402
38115
  if (typeof installationId === 'undefined') {
37403
38116
  throw new AppwriteException('Missing required parameter: "installationId"');
37404
38117
  }
@@ -37416,6 +38129,9 @@ class Vcs {
37416
38129
  if (typeof xprivate !== 'undefined') {
37417
38130
  payload['private'] = xprivate;
37418
38131
  }
38132
+ if (typeof providerNamespace !== 'undefined') {
38133
+ payload['providerNamespace'] = providerNamespace;
38134
+ }
37419
38135
  const uri = new URL(this.client.config.endpoint + apiPath);
37420
38136
  const apiHeaders = {
37421
38137
  'X-Appwrite-Project': this.client.config.project,
@@ -37644,6 +38360,39 @@ class Vcs {
37644
38360
  };
37645
38361
  return this.client.call('delete', uri, apiHeaders, payload);
37646
38362
  }
38363
+ listNamespaces(paramsOrFirst, ...rest) {
38364
+ let params;
38365
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
38366
+ params = (paramsOrFirst || {});
38367
+ }
38368
+ else {
38369
+ params = {
38370
+ installationId: paramsOrFirst,
38371
+ search: rest[0],
38372
+ queries: rest[1]
38373
+ };
38374
+ }
38375
+ const installationId = params.installationId;
38376
+ const search = params.search;
38377
+ const queries = params.queries;
38378
+ if (typeof installationId === 'undefined') {
38379
+ throw new AppwriteException('Missing required parameter: "installationId"');
38380
+ }
38381
+ const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
38382
+ const payload = {};
38383
+ if (typeof search !== 'undefined') {
38384
+ payload['search'] = search;
38385
+ }
38386
+ if (typeof queries !== 'undefined') {
38387
+ payload['queries'] = queries;
38388
+ }
38389
+ const uri = new URL(this.client.config.endpoint + apiPath);
38390
+ const apiHeaders = {
38391
+ 'X-Appwrite-Project': this.client.config.project,
38392
+ 'accept': 'application/json',
38393
+ };
38394
+ return this.client.call('get', uri, apiHeaders, payload);
38395
+ }
37647
38396
  }
37648
38397
 
37649
38398
  class VectorsDB {
@@ -38494,6 +39243,55 @@ class VectorsDB {
38494
39243
  };
38495
39244
  return this.client.call('delete', uri, apiHeaders, payload);
38496
39245
  }
39246
+ createQuery(paramsOrFirst, ...rest) {
39247
+ let params;
39248
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39249
+ params = (paramsOrFirst || {});
39250
+ }
39251
+ else {
39252
+ params = {
39253
+ databaseId: paramsOrFirst,
39254
+ collectionId: rest[0],
39255
+ queries: rest[1],
39256
+ transactionId: rest[2],
39257
+ total: rest[3],
39258
+ ttl: rest[4]
39259
+ };
39260
+ }
39261
+ const databaseId = params.databaseId;
39262
+ const collectionId = params.collectionId;
39263
+ const queries = params.queries;
39264
+ const transactionId = params.transactionId;
39265
+ const total = params.total;
39266
+ const ttl = params.ttl;
39267
+ if (typeof databaseId === 'undefined') {
39268
+ throw new AppwriteException('Missing required parameter: "databaseId"');
39269
+ }
39270
+ if (typeof collectionId === 'undefined') {
39271
+ throw new AppwriteException('Missing required parameter: "collectionId"');
39272
+ }
39273
+ const apiPath = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/query'.replace('{databaseId}', encodeURIComponent(String(databaseId))).replace('{collectionId}', encodeURIComponent(String(collectionId)));
39274
+ const payload = {};
39275
+ if (typeof queries !== 'undefined') {
39276
+ payload['queries'] = queries;
39277
+ }
39278
+ if (typeof transactionId !== 'undefined') {
39279
+ payload['transactionId'] = transactionId;
39280
+ }
39281
+ if (typeof total !== 'undefined') {
39282
+ payload['total'] = total;
39283
+ }
39284
+ if (typeof ttl !== 'undefined') {
39285
+ payload['ttl'] = ttl;
39286
+ }
39287
+ const uri = new URL(this.client.config.endpoint + apiPath);
39288
+ const apiHeaders = {
39289
+ 'X-Appwrite-Project': this.client.config.project,
39290
+ 'content-type': 'application/json',
39291
+ 'accept': 'application/json',
39292
+ };
39293
+ return this.client.call('post', uri, apiHeaders, payload);
39294
+ }
38497
39295
  getDocument(paramsOrFirst, ...rest) {
38498
39296
  let params;
38499
39297
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -38869,6 +39667,44 @@ class VectorsDB {
38869
39667
  };
38870
39668
  return this.client.call('post', uri, apiHeaders, payload);
38871
39669
  }
39670
+ listOperations(paramsOrFirst, ...rest) {
39671
+ let params;
39672
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39673
+ params = (paramsOrFirst || {});
39674
+ }
39675
+ else {
39676
+ params = {
39677
+ databaseId: paramsOrFirst,
39678
+ status: rest[0],
39679
+ limit: rest[1],
39680
+ offset: rest[2]
39681
+ };
39682
+ }
39683
+ const databaseId = params.databaseId;
39684
+ const status = params.status;
39685
+ const limit = params.limit;
39686
+ const offset = params.offset;
39687
+ if (typeof databaseId === 'undefined') {
39688
+ throw new AppwriteException('Missing required parameter: "databaseId"');
39689
+ }
39690
+ const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
39691
+ const payload = {};
39692
+ if (typeof status !== 'undefined') {
39693
+ payload['status'] = status;
39694
+ }
39695
+ if (typeof limit !== 'undefined') {
39696
+ payload['limit'] = limit;
39697
+ }
39698
+ if (typeof offset !== 'undefined') {
39699
+ payload['offset'] = offset;
39700
+ }
39701
+ const uri = new URL(this.client.config.endpoint + apiPath);
39702
+ const apiHeaders = {
39703
+ 'X-Appwrite-Project': this.client.config.project,
39704
+ 'accept': 'application/json',
39705
+ };
39706
+ return this.client.call('get', uri, apiHeaders, payload);
39707
+ }
38872
39708
  getReplicas(paramsOrFirst) {
38873
39709
  let params;
38874
39710
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -41815,6 +42651,7 @@ var QuerySuggestionResource;
41815
42651
  QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
41816
42652
  QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
41817
42653
  QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
42654
+ QuerySuggestionResource["DedicatedDatabaseBranches"] = "dedicateddatabasebranches";
41818
42655
  })(QuerySuggestionResource || (QuerySuggestionResource = {}));
41819
42656
 
41820
42657
  var ProjectEmailTemplateId;
@@ -42419,6 +43256,8 @@ var OrganizationKeyScopes;
42419
43256
  OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
42420
43257
  OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
42421
43258
  OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
43259
+ OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
43260
+ OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
42422
43261
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
42423
43262
  OrganizationKeyScopes["OrganizationMembershipsWrite"] = "organization.memberships.write";
42424
43263
  OrganizationKeyScopes["OrganizationRead"] = "organization.read";