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