@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/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.5.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,120 @@
8036
8062
  };
8037
8063
  return this.client.call('delete', uri, apiHeaders, payload);
8038
8064
  }
8065
+ listKeys(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}/keys'.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
+ createKey(paramsOrFirst) {
8099
+ let params;
8100
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8101
+ params = (paramsOrFirst || {});
8102
+ }
8103
+ else {
8104
+ params = {
8105
+ appId: paramsOrFirst
8106
+ };
8107
+ }
8108
+ const appId = params.appId;
8109
+ if (typeof appId === 'undefined') {
8110
+ throw new AppwriteException('Missing required parameter: "appId"');
8111
+ }
8112
+ const apiPath = '/apps/{appId}/keys'.replace('{appId}', encodeURIComponent(String(appId)));
8113
+ const payload = {};
8114
+ const uri = new URL(this.client.config.endpoint + apiPath);
8115
+ const apiHeaders = {
8116
+ 'X-Appwrite-Project': this.client.config.project,
8117
+ 'content-type': 'application/json',
8118
+ 'accept': 'application/json',
8119
+ };
8120
+ return this.client.call('post', uri, apiHeaders, payload);
8121
+ }
8122
+ getKey(paramsOrFirst, ...rest) {
8123
+ let params;
8124
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8125
+ params = (paramsOrFirst || {});
8126
+ }
8127
+ else {
8128
+ params = {
8129
+ appId: paramsOrFirst,
8130
+ keyId: rest[0]
8131
+ };
8132
+ }
8133
+ const appId = params.appId;
8134
+ const keyId = params.keyId;
8135
+ if (typeof appId === 'undefined') {
8136
+ throw new AppwriteException('Missing required parameter: "appId"');
8137
+ }
8138
+ if (typeof keyId === 'undefined') {
8139
+ throw new AppwriteException('Missing required parameter: "keyId"');
8140
+ }
8141
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
8142
+ const payload = {};
8143
+ const uri = new URL(this.client.config.endpoint + apiPath);
8144
+ const apiHeaders = {
8145
+ 'X-Appwrite-Project': this.client.config.project,
8146
+ 'accept': 'application/json',
8147
+ };
8148
+ return this.client.call('get', uri, apiHeaders, payload);
8149
+ }
8150
+ deleteKey(paramsOrFirst, ...rest) {
8151
+ let params;
8152
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
8153
+ params = (paramsOrFirst || {});
8154
+ }
8155
+ else {
8156
+ params = {
8157
+ appId: paramsOrFirst,
8158
+ keyId: rest[0]
8159
+ };
8160
+ }
8161
+ const appId = params.appId;
8162
+ const keyId = params.keyId;
8163
+ if (typeof appId === 'undefined') {
8164
+ throw new AppwriteException('Missing required parameter: "appId"');
8165
+ }
8166
+ if (typeof keyId === 'undefined') {
8167
+ throw new AppwriteException('Missing required parameter: "keyId"');
8168
+ }
8169
+ const apiPath = '/apps/{appId}/keys/{keyId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{keyId}', encodeURIComponent(String(keyId)));
8170
+ const payload = {};
8171
+ const uri = new URL(this.client.config.endpoint + apiPath);
8172
+ const apiHeaders = {
8173
+ 'X-Appwrite-Project': this.client.config.project,
8174
+ 'content-type': 'application/json',
8175
+ 'accept': 'application/json',
8176
+ };
8177
+ return this.client.call('delete', uri, apiHeaders, payload);
8178
+ }
8039
8179
  updateLabels(paramsOrFirst, ...rest) {
8040
8180
  let params;
8041
8181
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -25165,6 +25305,142 @@
25165
25305
  };
25166
25306
  return this.client.call('delete', uri, apiHeaders, payload);
25167
25307
  }
25308
+ listInstallations(paramsOrFirst, ...rest) {
25309
+ let params;
25310
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25311
+ params = (paramsOrFirst || {});
25312
+ }
25313
+ else {
25314
+ params = {
25315
+ queries: paramsOrFirst,
25316
+ total: rest[0]
25317
+ };
25318
+ }
25319
+ const queries = params.queries;
25320
+ const total = params.total;
25321
+ const apiPath = '/organization/installations';
25322
+ const payload = {};
25323
+ if (typeof queries !== 'undefined') {
25324
+ payload['queries'] = queries;
25325
+ }
25326
+ if (typeof total !== 'undefined') {
25327
+ payload['total'] = total;
25328
+ }
25329
+ const uri = new URL(this.client.config.endpoint + apiPath);
25330
+ const apiHeaders = {
25331
+ 'X-Appwrite-Project': this.client.config.project,
25332
+ 'accept': 'application/json',
25333
+ };
25334
+ return this.client.call('get', uri, apiHeaders, payload);
25335
+ }
25336
+ createInstallation(paramsOrFirst, ...rest) {
25337
+ let params;
25338
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25339
+ params = (paramsOrFirst || {});
25340
+ }
25341
+ else {
25342
+ params = {
25343
+ appId: paramsOrFirst,
25344
+ authorizationDetails: rest[0]
25345
+ };
25346
+ }
25347
+ const appId = params.appId;
25348
+ const authorizationDetails = params.authorizationDetails;
25349
+ if (typeof appId === 'undefined') {
25350
+ throw new AppwriteException('Missing required parameter: "appId"');
25351
+ }
25352
+ const apiPath = '/organization/installations';
25353
+ const payload = {};
25354
+ if (typeof appId !== 'undefined') {
25355
+ payload['appId'] = appId;
25356
+ }
25357
+ if (typeof authorizationDetails !== 'undefined') {
25358
+ payload['authorizationDetails'] = authorizationDetails;
25359
+ }
25360
+ const uri = new URL(this.client.config.endpoint + apiPath);
25361
+ const apiHeaders = {
25362
+ 'X-Appwrite-Project': this.client.config.project,
25363
+ 'content-type': 'application/json',
25364
+ 'accept': 'application/json',
25365
+ };
25366
+ return this.client.call('post', uri, apiHeaders, payload);
25367
+ }
25368
+ getInstallation(paramsOrFirst) {
25369
+ let params;
25370
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25371
+ params = (paramsOrFirst || {});
25372
+ }
25373
+ else {
25374
+ params = {
25375
+ installationId: paramsOrFirst
25376
+ };
25377
+ }
25378
+ const installationId = params.installationId;
25379
+ if (typeof installationId === 'undefined') {
25380
+ throw new AppwriteException('Missing required parameter: "installationId"');
25381
+ }
25382
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25383
+ const payload = {};
25384
+ const uri = new URL(this.client.config.endpoint + apiPath);
25385
+ const apiHeaders = {
25386
+ 'X-Appwrite-Project': this.client.config.project,
25387
+ 'accept': 'application/json',
25388
+ };
25389
+ return this.client.call('get', uri, apiHeaders, payload);
25390
+ }
25391
+ updateInstallation(paramsOrFirst, ...rest) {
25392
+ let params;
25393
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25394
+ params = (paramsOrFirst || {});
25395
+ }
25396
+ else {
25397
+ params = {
25398
+ installationId: paramsOrFirst,
25399
+ authorizationDetails: rest[0]
25400
+ };
25401
+ }
25402
+ const installationId = params.installationId;
25403
+ const authorizationDetails = params.authorizationDetails;
25404
+ if (typeof installationId === 'undefined') {
25405
+ throw new AppwriteException('Missing required parameter: "installationId"');
25406
+ }
25407
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25408
+ const payload = {};
25409
+ if (typeof authorizationDetails !== 'undefined') {
25410
+ payload['authorizationDetails'] = authorizationDetails;
25411
+ }
25412
+ const uri = new URL(this.client.config.endpoint + apiPath);
25413
+ const apiHeaders = {
25414
+ 'X-Appwrite-Project': this.client.config.project,
25415
+ 'content-type': 'application/json',
25416
+ 'accept': 'application/json',
25417
+ };
25418
+ return this.client.call('put', uri, apiHeaders, payload);
25419
+ }
25420
+ deleteInstallation(paramsOrFirst) {
25421
+ let params;
25422
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
25423
+ params = (paramsOrFirst || {});
25424
+ }
25425
+ else {
25426
+ params = {
25427
+ installationId: paramsOrFirst
25428
+ };
25429
+ }
25430
+ const installationId = params.installationId;
25431
+ if (typeof installationId === 'undefined') {
25432
+ throw new AppwriteException('Missing required parameter: "installationId"');
25433
+ }
25434
+ const apiPath = '/organization/installations/{installationId}'.replace('{installationId}', encodeURIComponent(String(installationId)));
25435
+ const payload = {};
25436
+ const uri = new URL(this.client.config.endpoint + apiPath);
25437
+ const apiHeaders = {
25438
+ 'X-Appwrite-Project': this.client.config.project,
25439
+ 'content-type': 'application/json',
25440
+ 'accept': 'application/json',
25441
+ };
25442
+ return this.client.call('delete', uri, apiHeaders, payload);
25443
+ }
25168
25444
  listKeys(paramsOrFirst, ...rest) {
25169
25445
  let params;
25170
25446
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -29127,12 +29403,13 @@
29127
29403
  refreshTokenDuration: rest[4],
29128
29404
  publicAccessTokenDuration: rest[5],
29129
29405
  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]
29406
+ installationAccessTokenDuration: rest[7],
29407
+ confidentialPkce: rest[8],
29408
+ verificationUrl: rest[9],
29409
+ userCodeLength: rest[10],
29410
+ userCodeFormat: rest[11],
29411
+ deviceCodeDuration: rest[12],
29412
+ defaultScopes: rest[13]
29136
29413
  };
29137
29414
  }
29138
29415
  const enabled = params.enabled;
@@ -29143,6 +29420,7 @@
29143
29420
  const refreshTokenDuration = params.refreshTokenDuration;
29144
29421
  const publicAccessTokenDuration = params.publicAccessTokenDuration;
29145
29422
  const publicRefreshTokenDuration = params.publicRefreshTokenDuration;
29423
+ const installationAccessTokenDuration = params.installationAccessTokenDuration;
29146
29424
  const confidentialPkce = params.confidentialPkce;
29147
29425
  const verificationUrl = params.verificationUrl;
29148
29426
  const userCodeLength = params.userCodeLength;
@@ -29181,6 +29459,9 @@
29181
29459
  if (typeof publicRefreshTokenDuration !== 'undefined') {
29182
29460
  payload['publicRefreshTokenDuration'] = publicRefreshTokenDuration;
29183
29461
  }
29462
+ if (typeof installationAccessTokenDuration !== 'undefined') {
29463
+ payload['installationAccessTokenDuration'] = installationAccessTokenDuration;
29464
+ }
29184
29465
  if (typeof confidentialPkce !== 'undefined') {
29185
29466
  payload['confidentialPkce'] = confidentialPkce;
29186
29467
  }
@@ -32435,46 +32716,6 @@
32435
32716
  };
32436
32717
  return this.client.call('get', uri, apiHeaders, payload);
32437
32718
  }
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
32719
  getDevKey(paramsOrFirst, ...rest) {
32479
32720
  let params;
32480
32721
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -38770,6 +39011,167 @@
38770
39011
  };
38771
39012
  return this.client.call('delete', uri, apiHeaders, payload);
38772
39013
  }
39014
+ listInstallations(paramsOrFirst, ...rest) {
39015
+ let params;
39016
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39017
+ params = (paramsOrFirst || {});
39018
+ }
39019
+ else {
39020
+ params = {
39021
+ teamId: paramsOrFirst,
39022
+ queries: rest[0],
39023
+ total: rest[1]
39024
+ };
39025
+ }
39026
+ const teamId = params.teamId;
39027
+ const queries = params.queries;
39028
+ const total = params.total;
39029
+ if (typeof teamId === 'undefined') {
39030
+ throw new AppwriteException('Missing required parameter: "teamId"');
39031
+ }
39032
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
39033
+ const payload = {};
39034
+ if (typeof queries !== 'undefined') {
39035
+ payload['queries'] = queries;
39036
+ }
39037
+ if (typeof total !== 'undefined') {
39038
+ payload['total'] = total;
39039
+ }
39040
+ const uri = new URL(this.client.config.endpoint + apiPath);
39041
+ const apiHeaders = {
39042
+ 'X-Appwrite-Project': this.client.config.project,
39043
+ 'accept': 'application/json',
39044
+ };
39045
+ return this.client.call('get', uri, apiHeaders, payload);
39046
+ }
39047
+ createInstallation(paramsOrFirst, ...rest) {
39048
+ let params;
39049
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39050
+ params = (paramsOrFirst || {});
39051
+ }
39052
+ else {
39053
+ params = {
39054
+ teamId: paramsOrFirst,
39055
+ appId: rest[0],
39056
+ authorizationDetails: rest[1]
39057
+ };
39058
+ }
39059
+ const teamId = params.teamId;
39060
+ const appId = params.appId;
39061
+ const authorizationDetails = params.authorizationDetails;
39062
+ if (typeof teamId === 'undefined') {
39063
+ throw new AppwriteException('Missing required parameter: "teamId"');
39064
+ }
39065
+ if (typeof appId === 'undefined') {
39066
+ throw new AppwriteException('Missing required parameter: "appId"');
39067
+ }
39068
+ const apiPath = '/teams/{teamId}/installations'.replace('{teamId}', encodeURIComponent(String(teamId)));
39069
+ const payload = {};
39070
+ if (typeof appId !== 'undefined') {
39071
+ payload['appId'] = appId;
39072
+ }
39073
+ if (typeof authorizationDetails !== 'undefined') {
39074
+ payload['authorizationDetails'] = authorizationDetails;
39075
+ }
39076
+ const uri = new URL(this.client.config.endpoint + apiPath);
39077
+ const apiHeaders = {
39078
+ 'X-Appwrite-Project': this.client.config.project,
39079
+ 'content-type': 'application/json',
39080
+ 'accept': 'application/json',
39081
+ };
39082
+ return this.client.call('post', uri, apiHeaders, payload);
39083
+ }
39084
+ getInstallation(paramsOrFirst, ...rest) {
39085
+ let params;
39086
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39087
+ params = (paramsOrFirst || {});
39088
+ }
39089
+ else {
39090
+ params = {
39091
+ teamId: paramsOrFirst,
39092
+ installationId: rest[0]
39093
+ };
39094
+ }
39095
+ const teamId = params.teamId;
39096
+ const installationId = params.installationId;
39097
+ if (typeof teamId === 'undefined') {
39098
+ throw new AppwriteException('Missing required parameter: "teamId"');
39099
+ }
39100
+ if (typeof installationId === 'undefined') {
39101
+ throw new AppwriteException('Missing required parameter: "installationId"');
39102
+ }
39103
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39104
+ const payload = {};
39105
+ const uri = new URL(this.client.config.endpoint + apiPath);
39106
+ const apiHeaders = {
39107
+ 'X-Appwrite-Project': this.client.config.project,
39108
+ 'accept': 'application/json',
39109
+ };
39110
+ return this.client.call('get', uri, apiHeaders, payload);
39111
+ }
39112
+ updateInstallation(paramsOrFirst, ...rest) {
39113
+ let params;
39114
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39115
+ params = (paramsOrFirst || {});
39116
+ }
39117
+ else {
39118
+ params = {
39119
+ teamId: paramsOrFirst,
39120
+ installationId: rest[0],
39121
+ authorizationDetails: rest[1]
39122
+ };
39123
+ }
39124
+ const teamId = params.teamId;
39125
+ const installationId = params.installationId;
39126
+ const authorizationDetails = params.authorizationDetails;
39127
+ if (typeof teamId === 'undefined') {
39128
+ throw new AppwriteException('Missing required parameter: "teamId"');
39129
+ }
39130
+ if (typeof installationId === 'undefined') {
39131
+ throw new AppwriteException('Missing required parameter: "installationId"');
39132
+ }
39133
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39134
+ const payload = {};
39135
+ if (typeof authorizationDetails !== 'undefined') {
39136
+ payload['authorizationDetails'] = authorizationDetails;
39137
+ }
39138
+ const uri = new URL(this.client.config.endpoint + apiPath);
39139
+ const apiHeaders = {
39140
+ 'X-Appwrite-Project': this.client.config.project,
39141
+ 'content-type': 'application/json',
39142
+ 'accept': 'application/json',
39143
+ };
39144
+ return this.client.call('put', uri, apiHeaders, payload);
39145
+ }
39146
+ deleteInstallation(paramsOrFirst, ...rest) {
39147
+ let params;
39148
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
39149
+ params = (paramsOrFirst || {});
39150
+ }
39151
+ else {
39152
+ params = {
39153
+ teamId: paramsOrFirst,
39154
+ installationId: rest[0]
39155
+ };
39156
+ }
39157
+ const teamId = params.teamId;
39158
+ const installationId = params.installationId;
39159
+ if (typeof teamId === 'undefined') {
39160
+ throw new AppwriteException('Missing required parameter: "teamId"');
39161
+ }
39162
+ if (typeof installationId === 'undefined') {
39163
+ throw new AppwriteException('Missing required parameter: "installationId"');
39164
+ }
39165
+ const apiPath = '/teams/{teamId}/installations/{installationId}'.replace('{teamId}', encodeURIComponent(String(teamId))).replace('{installationId}', encodeURIComponent(String(installationId)));
39166
+ const payload = {};
39167
+ const uri = new URL(this.client.config.endpoint + apiPath);
39168
+ const apiHeaders = {
39169
+ 'X-Appwrite-Project': this.client.config.project,
39170
+ 'content-type': 'application/json',
39171
+ 'accept': 'application/json',
39172
+ };
39173
+ return this.client.call('delete', uri, apiHeaders, payload);
39174
+ }
38773
39175
  listLogs(paramsOrFirst, ...rest) {
38774
39176
  let params;
38775
39177
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -42294,6 +42696,55 @@
42294
42696
  };
42295
42697
  return this.client.call('delete', uri, apiHeaders, payload);
42296
42698
  }
42699
+ createQuery(paramsOrFirst, ...rest) {
42700
+ let params;
42701
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
42702
+ params = (paramsOrFirst || {});
42703
+ }
42704
+ else {
42705
+ params = {
42706
+ databaseId: paramsOrFirst,
42707
+ collectionId: rest[0],
42708
+ queries: rest[1],
42709
+ transactionId: rest[2],
42710
+ total: rest[3],
42711
+ ttl: rest[4]
42712
+ };
42713
+ }
42714
+ const databaseId = params.databaseId;
42715
+ const collectionId = params.collectionId;
42716
+ const queries = params.queries;
42717
+ const transactionId = params.transactionId;
42718
+ const total = params.total;
42719
+ const ttl = params.ttl;
42720
+ if (typeof databaseId === 'undefined') {
42721
+ throw new AppwriteException('Missing required parameter: "databaseId"');
42722
+ }
42723
+ if (typeof collectionId === 'undefined') {
42724
+ throw new AppwriteException('Missing required parameter: "collectionId"');
42725
+ }
42726
+ const apiPath = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/query'.replace('{databaseId}', encodeURIComponent(String(databaseId))).replace('{collectionId}', encodeURIComponent(String(collectionId)));
42727
+ const payload = {};
42728
+ if (typeof queries !== 'undefined') {
42729
+ payload['queries'] = queries;
42730
+ }
42731
+ if (typeof transactionId !== 'undefined') {
42732
+ payload['transactionId'] = transactionId;
42733
+ }
42734
+ if (typeof total !== 'undefined') {
42735
+ payload['total'] = total;
42736
+ }
42737
+ if (typeof ttl !== 'undefined') {
42738
+ payload['ttl'] = ttl;
42739
+ }
42740
+ const uri = new URL(this.client.config.endpoint + apiPath);
42741
+ const apiHeaders = {
42742
+ 'X-Appwrite-Project': this.client.config.project,
42743
+ 'content-type': 'application/json',
42744
+ 'accept': 'application/json',
42745
+ };
42746
+ return this.client.call('post', uri, apiHeaders, payload);
42747
+ }
42297
42748
  getDocument(paramsOrFirst, ...rest) {
42298
42749
  let params;
42299
42750
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -45615,6 +46066,7 @@
45615
46066
  QuerySuggestionResource["DedicatedDatabaseOperations"] = "dedicateddatabaseoperations";
45616
46067
  QuerySuggestionResource["DedicatedDatabaseBackups"] = "dedicateddatabasebackups";
45617
46068
  QuerySuggestionResource["DedicatedDatabaseRestorations"] = "dedicateddatabaserestorations";
46069
+ QuerySuggestionResource["DedicatedDatabaseBranches"] = "dedicateddatabasebranches";
45618
46070
  })(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
45619
46071
 
45620
46072
  exports.ProjectEmailTemplateId = void 0;
@@ -46219,6 +46671,8 @@
46219
46671
  OrganizationKeyScopes["DevKeysWrite"] = "devKeys.write";
46220
46672
  OrganizationKeyScopes["OrganizationKeysRead"] = "organization.keys.read";
46221
46673
  OrganizationKeyScopes["OrganizationKeysWrite"] = "organization.keys.write";
46674
+ OrganizationKeyScopes["OrganizationInstallationsRead"] = "organization.installations.read";
46675
+ OrganizationKeyScopes["OrganizationInstallationsWrite"] = "organization.installations.write";
46222
46676
  OrganizationKeyScopes["OrganizationMembershipsRead"] = "organization.memberships.read";
46223
46677
  OrganizationKeyScopes["OrganizationMembershipsWrite"] = "organization.memberships.write";
46224
46678
  OrganizationKeyScopes["OrganizationRead"] = "organization.read";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "15.4.0",
5
+ "version": "15.5.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -5,6 +5,8 @@ export declare enum OrganizationKeyScopes {
5
5
  DevKeysWrite = "devKeys.write",
6
6
  OrganizationKeysRead = "organization.keys.read",
7
7
  OrganizationKeysWrite = "organization.keys.write",
8
+ OrganizationInstallationsRead = "organization.installations.read",
9
+ OrganizationInstallationsWrite = "organization.installations.write",
8
10
  OrganizationMembershipsRead = "organization.memberships.read",
9
11
  OrganizationMembershipsWrite = "organization.memberships.write",
10
12
  OrganizationRead = "organization.read",
@@ -91,5 +91,6 @@ export declare enum QuerySuggestionResource {
91
91
  DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
92
92
  DedicatedDatabaseOperations = "dedicateddatabaseoperations",
93
93
  DedicatedDatabaseBackups = "dedicateddatabasebackups",
94
- DedicatedDatabaseRestorations = "dedicateddatabaserestorations"
94
+ DedicatedDatabaseRestorations = "dedicateddatabaserestorations",
95
+ DedicatedDatabaseBranches = "dedicateddatabasebranches"
95
96
  }