@appwrite.io/console 15.4.0 → 15.5.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.5.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,120 @@ class Apps {
4236
4262
  };
4237
4263
  return this.client.call('delete', uri, apiHeaders, payload);
4238
4264
  }
4265
+ listKeys(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}/keys'.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
+ createKey(paramsOrFirst) {
4299
+ let params;
4300
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4301
+ params = (paramsOrFirst || {});
4302
+ }
4303
+ else {
4304
+ params = {
4305
+ appId: paramsOrFirst
4306
+ };
4307
+ }
4308
+ const appId = params.appId;
4309
+ if (typeof appId === 'undefined') {
4310
+ throw new AppwriteException('Missing required parameter: "appId"');
4311
+ }
4312
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
4313
+ const payload = {};
4314
+ const uri = new URL(this.client.config.endpoint + apiPath);
4315
+ const apiHeaders = {
4316
+ 'X-Appwrite-Project': this.client.config.project,
4317
+ 'content-type': 'application/json',
4318
+ 'accept': 'application/json',
4319
+ };
4320
+ return this.client.call('post', uri, apiHeaders, payload);
4321
+ }
4322
+ getKey(paramsOrFirst, ...rest) {
4323
+ let params;
4324
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4325
+ params = (paramsOrFirst || {});
4326
+ }
4327
+ else {
4328
+ params = {
4329
+ appId: paramsOrFirst,
4330
+ keyId: rest[0]
4331
+ };
4332
+ }
4333
+ const appId = params.appId;
4334
+ const keyId = params.keyId;
4335
+ if (typeof appId === 'undefined') {
4336
+ throw new AppwriteException('Missing required parameter: "appId"');
4337
+ }
4338
+ if (typeof keyId === 'undefined') {
4339
+ throw new AppwriteException('Missing required parameter: "keyId"');
4340
+ }
4341
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
4342
+ const payload = {};
4343
+ const uri = new URL(this.client.config.endpoint + apiPath);
4344
+ const apiHeaders = {
4345
+ 'X-Appwrite-Project': this.client.config.project,
4346
+ 'accept': 'application/json',
4347
+ };
4348
+ return this.client.call('get', uri, apiHeaders, payload);
4349
+ }
4350
+ deleteKey(paramsOrFirst, ...rest) {
4351
+ let params;
4352
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
4353
+ params = (paramsOrFirst || {});
4354
+ }
4355
+ else {
4356
+ params = {
4357
+ appId: paramsOrFirst,
4358
+ keyId: rest[0]
4359
+ };
4360
+ }
4361
+ const appId = params.appId;
4362
+ const keyId = params.keyId;
4363
+ if (typeof appId === 'undefined') {
4364
+ throw new AppwriteException('Missing required parameter: "appId"');
4365
+ }
4366
+ if (typeof keyId === 'undefined') {
4367
+ throw new AppwriteException('Missing required parameter: "keyId"');
4368
+ }
4369
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
4370
+ const payload = {};
4371
+ const uri = new URL(this.client.config.endpoint + apiPath);
4372
+ const apiHeaders = {
4373
+ 'X-Appwrite-Project': this.client.config.project,
4374
+ 'content-type': 'application/json',
4375
+ 'accept': 'application/json',
4376
+ };
4377
+ return this.client.call('delete', uri, apiHeaders, payload);
4378
+ }
4239
4379
  updateLabels(paramsOrFirst, ...rest) {
4240
4380
  let params;
4241
4381
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -21365,6 +21505,142 @@ class Organization {
21365
21505
  };
21366
21506
  return this.client.call('delete', uri, apiHeaders, payload);
21367
21507
  }
21508
+ listInstallations(paramsOrFirst, ...rest) {
21509
+ let params;
21510
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21511
+ params = (paramsOrFirst || {});
21512
+ }
21513
+ else {
21514
+ params = {
21515
+ queries: paramsOrFirst,
21516
+ total: rest[0]
21517
+ };
21518
+ }
21519
+ const queries = params.queries;
21520
+ const total = params.total;
21521
+ const apiPath = '/organization/installations';
21522
+ const payload = {};
21523
+ if (typeof queries !== 'undefined') {
21524
+ payload['queries'] = queries;
21525
+ }
21526
+ if (typeof total !== 'undefined') {
21527
+ payload['total'] = total;
21528
+ }
21529
+ const uri = new URL(this.client.config.endpoint + apiPath);
21530
+ const apiHeaders = {
21531
+ 'X-Appwrite-Project': this.client.config.project,
21532
+ 'accept': 'application/json',
21533
+ };
21534
+ return this.client.call('get', uri, apiHeaders, payload);
21535
+ }
21536
+ createInstallation(paramsOrFirst, ...rest) {
21537
+ let params;
21538
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21539
+ params = (paramsOrFirst || {});
21540
+ }
21541
+ else {
21542
+ params = {
21543
+ appId: paramsOrFirst,
21544
+ authorizationDetails: rest[0]
21545
+ };
21546
+ }
21547
+ const appId = params.appId;
21548
+ const authorizationDetails = params.authorizationDetails;
21549
+ if (typeof appId === 'undefined') {
21550
+ throw new AppwriteException('Missing required parameter: "appId"');
21551
+ }
21552
+ const apiPath = '/organization/installations';
21553
+ const payload = {};
21554
+ if (typeof appId !== 'undefined') {
21555
+ payload['appId'] = appId;
21556
+ }
21557
+ if (typeof authorizationDetails !== 'undefined') {
21558
+ payload['authorizationDetails'] = authorizationDetails;
21559
+ }
21560
+ const uri = new URL(this.client.config.endpoint + apiPath);
21561
+ const apiHeaders = {
21562
+ 'X-Appwrite-Project': this.client.config.project,
21563
+ 'content-type': 'application/json',
21564
+ 'accept': 'application/json',
21565
+ };
21566
+ return this.client.call('post', uri, apiHeaders, payload);
21567
+ }
21568
+ getInstallation(paramsOrFirst) {
21569
+ let params;
21570
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21571
+ params = (paramsOrFirst || {});
21572
+ }
21573
+ else {
21574
+ params = {
21575
+ installationId: paramsOrFirst
21576
+ };
21577
+ }
21578
+ const installationId = params.installationId;
21579
+ if (typeof installationId === 'undefined') {
21580
+ throw new AppwriteException('Missing required parameter: "installationId"');
21581
+ }
21582
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21583
+ const payload = {};
21584
+ const uri = new URL(this.client.config.endpoint + apiPath);
21585
+ const apiHeaders = {
21586
+ 'X-Appwrite-Project': this.client.config.project,
21587
+ 'accept': 'application/json',
21588
+ };
21589
+ return this.client.call('get', uri, apiHeaders, payload);
21590
+ }
21591
+ updateInstallation(paramsOrFirst, ...rest) {
21592
+ let params;
21593
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21594
+ params = (paramsOrFirst || {});
21595
+ }
21596
+ else {
21597
+ params = {
21598
+ installationId: paramsOrFirst,
21599
+ authorizationDetails: rest[0]
21600
+ };
21601
+ }
21602
+ const installationId = params.installationId;
21603
+ const authorizationDetails = params.authorizationDetails;
21604
+ if (typeof installationId === 'undefined') {
21605
+ throw new AppwriteException('Missing required parameter: "installationId"');
21606
+ }
21607
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21608
+ const payload = {};
21609
+ if (typeof authorizationDetails !== 'undefined') {
21610
+ payload['authorizationDetails'] = authorizationDetails;
21611
+ }
21612
+ const uri = new URL(this.client.config.endpoint + apiPath);
21613
+ const apiHeaders = {
21614
+ 'X-Appwrite-Project': this.client.config.project,
21615
+ 'content-type': 'application/json',
21616
+ 'accept': 'application/json',
21617
+ };
21618
+ return this.client.call('put', uri, apiHeaders, payload);
21619
+ }
21620
+ deleteInstallation(paramsOrFirst) {
21621
+ let params;
21622
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
21623
+ params = (paramsOrFirst || {});
21624
+ }
21625
+ else {
21626
+ params = {
21627
+ installationId: paramsOrFirst
21628
+ };
21629
+ }
21630
+ const installationId = params.installationId;
21631
+ if (typeof installationId === 'undefined') {
21632
+ throw new AppwriteException('Missing required parameter: "installationId"');
21633
+ }
21634
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
21635
+ const payload = {};
21636
+ const uri = new URL(this.client.config.endpoint + apiPath);
21637
+ const apiHeaders = {
21638
+ 'X-Appwrite-Project': this.client.config.project,
21639
+ 'content-type': 'application/json',
21640
+ 'accept': 'application/json',
21641
+ };
21642
+ return this.client.call('delete', uri, apiHeaders, payload);
21643
+ }
21368
21644
  listKeys(paramsOrFirst, ...rest) {
21369
21645
  let params;
21370
21646
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25327,12 +25603,13 @@ class Project {
25327
25603
  refreshTokenDuration: rest[4],
25328
25604
  publicAccessTokenDuration: rest[5],
25329
25605
  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]
25606
+ installationAccessTokenDuration: rest[7],
25607
+ confidentialPkce: rest[8],
25608
+ verificationUrl: rest[9],
25609
+ userCodeLength: rest[10],
25610
+ userCodeFormat: rest[11],
25611
+ deviceCodeDuration: rest[12],
25612
+ defaultScopes: rest[13]
25336
25613
  };
25337
25614
  }
25338
25615
  const enabled = params.enabled;
@@ -25343,6 +25620,7 @@ class Project {
25343
25620
  const refreshTokenDuration = params.refreshTokenDuration;
25344
25621
  const publicAccessTokenDuration = params.publicAccessTokenDuration;
25345
25622
  const publicRefreshTokenDuration = params.publicRefreshTokenDuration;
25623
+ const installationAccessTokenDuration = params.installationAccessTokenDuration;
25346
25624
  const confidentialPkce = params.confidentialPkce;
25347
25625
  const verificationUrl = params.verificationUrl;
25348
25626
  const userCodeLength = params.userCodeLength;
@@ -25381,6 +25659,9 @@ class Project {
25381
25659
  if (typeof publicRefreshTokenDuration !== 'undefined') {
25382
25660
  payload['publicRefreshTokenDuration'] = publicRefreshTokenDuration;
25383
25661
  }
25662
+ if (typeof installationAccessTokenDuration !== 'undefined') {
25663
+ payload['installationAccessTokenDuration'] = installationAccessTokenDuration;
25664
+ }
25384
25665
  if (typeof confidentialPkce !== 'undefined') {
25385
25666
  payload['confidentialPkce'] = confidentialPkce;
25386
25667
  }
@@ -28635,46 +28916,6 @@ class Projects {
28635
28916
  };
28636
28917
  return this.client.call('get', uri, apiHeaders, payload);
28637
28918
  }
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
28919
  getDevKey(paramsOrFirst, ...rest) {
28679
28920
  let params;
28680
28921
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -34970,6 +35211,167 @@ class Teams {
34970
35211
  };
34971
35212
  return this.client.call('delete', uri, apiHeaders, payload);
34972
35213
  }
35214
+ listInstallations(paramsOrFirst, ...rest) {
35215
+ let params;
35216
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35217
+ params = (paramsOrFirst || {});
35218
+ }
35219
+ else {
35220
+ params = {
35221
+ teamId: paramsOrFirst,
35222
+ queries: rest[0],
35223
+ total: rest[1]
35224
+ };
35225
+ }
35226
+ const teamId = params.teamId;
35227
+ const queries = params.queries;
35228
+ const total = params.total;
35229
+ if (typeof teamId === 'undefined') {
35230
+ throw new AppwriteException('Missing required parameter: "teamId"');
35231
+ }
35232
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
35233
+ const payload = {};
35234
+ if (typeof queries !== 'undefined') {
35235
+ payload['queries'] = queries;
35236
+ }
35237
+ if (typeof total !== 'undefined') {
35238
+ payload['total'] = total;
35239
+ }
35240
+ const uri = new URL(this.client.config.endpoint + apiPath);
35241
+ const apiHeaders = {
35242
+ 'X-Appwrite-Project': this.client.config.project,
35243
+ 'accept': 'application/json',
35244
+ };
35245
+ return this.client.call('get', uri, apiHeaders, payload);
35246
+ }
35247
+ createInstallation(paramsOrFirst, ...rest) {
35248
+ let params;
35249
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35250
+ params = (paramsOrFirst || {});
35251
+ }
35252
+ else {
35253
+ params = {
35254
+ teamId: paramsOrFirst,
35255
+ appId: rest[0],
35256
+ authorizationDetails: rest[1]
35257
+ };
35258
+ }
35259
+ const teamId = params.teamId;
35260
+ const appId = params.appId;
35261
+ const authorizationDetails = params.authorizationDetails;
35262
+ if (typeof teamId === 'undefined') {
35263
+ throw new AppwriteException('Missing required parameter: "teamId"');
35264
+ }
35265
+ if (typeof appId === 'undefined') {
35266
+ throw new AppwriteException('Missing required parameter: "appId"');
35267
+ }
35268
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
35269
+ const payload = {};
35270
+ if (typeof appId !== 'undefined') {
35271
+ payload['appId'] = appId;
35272
+ }
35273
+ if (typeof authorizationDetails !== 'undefined') {
35274
+ payload['authorizationDetails'] = authorizationDetails;
35275
+ }
35276
+ const uri = new URL(this.client.config.endpoint + apiPath);
35277
+ const apiHeaders = {
35278
+ 'X-Appwrite-Project': this.client.config.project,
35279
+ 'content-type': 'application/json',
35280
+ 'accept': 'application/json',
35281
+ };
35282
+ return this.client.call('post', uri, apiHeaders, payload);
35283
+ }
35284
+ getInstallation(paramsOrFirst, ...rest) {
35285
+ let params;
35286
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35287
+ params = (paramsOrFirst || {});
35288
+ }
35289
+ else {
35290
+ params = {
35291
+ teamId: paramsOrFirst,
35292
+ installationId: rest[0]
35293
+ };
35294
+ }
35295
+ const teamId = params.teamId;
35296
+ const installationId = params.installationId;
35297
+ if (typeof teamId === 'undefined') {
35298
+ throw new AppwriteException('Missing required parameter: "teamId"');
35299
+ }
35300
+ if (typeof installationId === 'undefined') {
35301
+ throw new AppwriteException('Missing required parameter: "installationId"');
35302
+ }
35303
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35304
+ const payload = {};
35305
+ const uri = new URL(this.client.config.endpoint + apiPath);
35306
+ const apiHeaders = {
35307
+ 'X-Appwrite-Project': this.client.config.project,
35308
+ 'accept': 'application/json',
35309
+ };
35310
+ return this.client.call('get', uri, apiHeaders, payload);
35311
+ }
35312
+ updateInstallation(paramsOrFirst, ...rest) {
35313
+ let params;
35314
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35315
+ params = (paramsOrFirst || {});
35316
+ }
35317
+ else {
35318
+ params = {
35319
+ teamId: paramsOrFirst,
35320
+ installationId: rest[0],
35321
+ authorizationDetails: rest[1]
35322
+ };
35323
+ }
35324
+ const teamId = params.teamId;
35325
+ const installationId = params.installationId;
35326
+ const authorizationDetails = params.authorizationDetails;
35327
+ if (typeof teamId === 'undefined') {
35328
+ throw new AppwriteException('Missing required parameter: "teamId"');
35329
+ }
35330
+ if (typeof installationId === 'undefined') {
35331
+ throw new AppwriteException('Missing required parameter: "installationId"');
35332
+ }
35333
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35334
+ const payload = {};
35335
+ if (typeof authorizationDetails !== 'undefined') {
35336
+ payload['authorizationDetails'] = authorizationDetails;
35337
+ }
35338
+ const uri = new URL(this.client.config.endpoint + apiPath);
35339
+ const apiHeaders = {
35340
+ 'X-Appwrite-Project': this.client.config.project,
35341
+ 'content-type': 'application/json',
35342
+ 'accept': 'application/json',
35343
+ };
35344
+ return this.client.call('put', uri, apiHeaders, payload);
35345
+ }
35346
+ deleteInstallation(paramsOrFirst, ...rest) {
35347
+ let params;
35348
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
35349
+ params = (paramsOrFirst || {});
35350
+ }
35351
+ else {
35352
+ params = {
35353
+ teamId: paramsOrFirst,
35354
+ installationId: rest[0]
35355
+ };
35356
+ }
35357
+ const teamId = params.teamId;
35358
+ const installationId = params.installationId;
35359
+ if (typeof teamId === 'undefined') {
35360
+ throw new AppwriteException('Missing required parameter: "teamId"');
35361
+ }
35362
+ if (typeof installationId === 'undefined') {
35363
+ throw new AppwriteException('Missing required parameter: "installationId"');
35364
+ }
35365
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
35366
+ const payload = {};
35367
+ const uri = new URL(this.client.config.endpoint + apiPath);
35368
+ const apiHeaders = {
35369
+ 'X-Appwrite-Project': this.client.config.project,
35370
+ 'content-type': 'application/json',
35371
+ 'accept': 'application/json',
35372
+ };
35373
+ return this.client.call('delete', uri, apiHeaders, payload);
35374
+ }
34973
35375
  listLogs(paramsOrFirst, ...rest) {
34974
35376
  let params;
34975
35377
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -38494,6 +38896,55 @@ class VectorsDB {
38494
38896
  };
38495
38897
  return this.client.call('delete', uri, apiHeaders, payload);
38496
38898
  }
38899
+ createQuery(paramsOrFirst, ...rest) {
38900
+ let params;
38901
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
38902
+ params = (paramsOrFirst || {});
38903
+ }
38904
+ else {
38905
+ params = {
38906
+ databaseId: paramsOrFirst,
38907
+ collectionId: rest[0],
38908
+ queries: rest[1],
38909
+ transactionId: rest[2],
38910
+ total: rest[3],
38911
+ ttl: rest[4]
38912
+ };
38913
+ }
38914
+ const databaseId = params.databaseId;
38915
+ const collectionId = params.collectionId;
38916
+ const queries = params.queries;
38917
+ const transactionId = params.transactionId;
38918
+ const total = params.total;
38919
+ const ttl = params.ttl;
38920
+ if (typeof databaseId === 'undefined') {
38921
+ throw new AppwriteException('Missing required parameter: "databaseId"');
38922
+ }
38923
+ if (typeof collectionId === 'undefined') {
38924
+ throw new AppwriteException('Missing required parameter: "collectionId"');
38925
+ }
38926
+ const apiPath = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/query'.replace('{databaseId}', encodeURIComponent(String(databaseId))).replace('{collectionId}', encodeURIComponent(String(collectionId)));
38927
+ const payload = {};
38928
+ if (typeof queries !== 'undefined') {
38929
+ payload['queries'] = queries;
38930
+ }
38931
+ if (typeof transactionId !== 'undefined') {
38932
+ payload['transactionId'] = transactionId;
38933
+ }
38934
+ if (typeof total !== 'undefined') {
38935
+ payload['total'] = total;
38936
+ }
38937
+ if (typeof ttl !== 'undefined') {
38938
+ payload['ttl'] = ttl;
38939
+ }
38940
+ const uri = new URL(this.client.config.endpoint + apiPath);
38941
+ const apiHeaders = {
38942
+ 'X-Appwrite-Project': this.client.config.project,
38943
+ 'content-type': 'application/json',
38944
+ 'accept': 'application/json',
38945
+ };
38946
+ return this.client.call('post', uri, apiHeaders, payload);
38947
+ }
38497
38948
  getDocument(paramsOrFirst, ...rest) {
38498
38949
  let params;
38499
38950
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -41815,6 +42266,7 @@ var QuerySuggestionResource;
41815
42266
  QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
41816
42267
  QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
41817
42268
  QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
42269
+ QuerySuggestionResource["DedicatedDatabaseBranches"] = "dedicateddatabasebranches";
41818
42270
  })(QuerySuggestionResource || (QuerySuggestionResource = {}));
41819
42271
 
41820
42272
  var ProjectEmailTemplateId;
@@ -42419,6 +42871,8 @@ var OrganizationKeyScopes;
42419
42871
  OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
42420
42872
  OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
42421
42873
  OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
42874
+ OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
42875
+ OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
42422
42876
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
42423
42877
  OrganizationKeyScopes["OrganizationMembershipsWrite"] = "organization.memberships.write";
42424
42878
  OrganizationKeyScopes["OrganizationRead"] = "organization.read";