@appwrite.io/console 15.5.0 → 15.7.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 +549 -7
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +549 -7
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +549 -7
- package/package.json +4 -1
- package/types/models.d.ts +177 -0
- package/types/services/activities.d.ts +4 -4
- package/types/services/apps.d.ts +91 -0
- package/types/services/backups.d.ts +6 -6
- package/types/services/documents-db.d.ts +34 -3
- package/types/services/mongo.d.ts +30 -2
- package/types/services/mysql.d.ts +30 -2
- package/types/services/postgresql.d.ts +30 -2
- package/types/services/storage.d.ts +6 -3
- package/types/services/tables-db.d.ts +34 -3
- package/types/services/usage.d.ts +4 -0
- package/types/services/vcs.d.ts +31 -3
- package/types/services/vectors-db.d.ts +34 -3
- package/types/services/waf.d.ts +106 -16
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.7.0',
|
|
651
651
|
'X-Appwrite-Response-Format': '1.9.5',
|
|
652
652
|
};
|
|
653
653
|
this.realtime = {
|
|
@@ -4264,6 +4264,125 @@ class Apps {
|
|
|
4264
4264
|
};
|
|
4265
4265
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
4266
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
|
+
}
|
|
4267
4386
|
listKeys(paramsOrFirst, ...rest) {
|
|
4268
4387
|
let params;
|
|
4269
4388
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9613,12 +9732,14 @@ class DocumentsDB {
|
|
|
9613
9732
|
databaseId: paramsOrFirst,
|
|
9614
9733
|
name: rest[0],
|
|
9615
9734
|
enabled: rest[1],
|
|
9616
|
-
|
|
9735
|
+
specification: rest[2],
|
|
9736
|
+
replicas: rest[3]
|
|
9617
9737
|
};
|
|
9618
9738
|
}
|
|
9619
9739
|
const databaseId = params.databaseId;
|
|
9620
9740
|
const name = params.name;
|
|
9621
9741
|
const enabled = params.enabled;
|
|
9742
|
+
const specification = params.specification;
|
|
9622
9743
|
const replicas = params.replicas;
|
|
9623
9744
|
if (typeof databaseId === 'undefined') {
|
|
9624
9745
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -9634,6 +9755,9 @@ class DocumentsDB {
|
|
|
9634
9755
|
if (typeof enabled !== 'undefined') {
|
|
9635
9756
|
payload['enabled'] = enabled;
|
|
9636
9757
|
}
|
|
9758
|
+
if (typeof specification !== 'undefined') {
|
|
9759
|
+
payload['specification'] = specification;
|
|
9760
|
+
}
|
|
9637
9761
|
if (typeof replicas !== 'undefined') {
|
|
9638
9762
|
payload['replicas'] = replicas;
|
|
9639
9763
|
}
|
|
@@ -10627,6 +10751,44 @@ class DocumentsDB {
|
|
|
10627
10751
|
};
|
|
10628
10752
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
10629
10753
|
}
|
|
10754
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
10755
|
+
let params;
|
|
10756
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10757
|
+
params = (paramsOrFirst || {});
|
|
10758
|
+
}
|
|
10759
|
+
else {
|
|
10760
|
+
params = {
|
|
10761
|
+
databaseId: paramsOrFirst,
|
|
10762
|
+
status: rest[0],
|
|
10763
|
+
limit: rest[1],
|
|
10764
|
+
offset: rest[2]
|
|
10765
|
+
};
|
|
10766
|
+
}
|
|
10767
|
+
const databaseId = params.databaseId;
|
|
10768
|
+
const status = params.status;
|
|
10769
|
+
const limit = params.limit;
|
|
10770
|
+
const offset = params.offset;
|
|
10771
|
+
if (typeof databaseId === 'undefined') {
|
|
10772
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10773
|
+
}
|
|
10774
|
+
const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
10775
|
+
const payload = {};
|
|
10776
|
+
if (typeof status !== 'undefined') {
|
|
10777
|
+
payload['status'] = status;
|
|
10778
|
+
}
|
|
10779
|
+
if (typeof limit !== 'undefined') {
|
|
10780
|
+
payload['limit'] = limit;
|
|
10781
|
+
}
|
|
10782
|
+
if (typeof offset !== 'undefined') {
|
|
10783
|
+
payload['offset'] = offset;
|
|
10784
|
+
}
|
|
10785
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10786
|
+
const apiHeaders = {
|
|
10787
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
10788
|
+
'accept': 'application/json',
|
|
10789
|
+
};
|
|
10790
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
10791
|
+
}
|
|
10630
10792
|
getReplicas(paramsOrFirst) {
|
|
10631
10793
|
let params;
|
|
10632
10794
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19201,6 +19363,44 @@ class Mongo {
|
|
|
19201
19363
|
};
|
|
19202
19364
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
19203
19365
|
}
|
|
19366
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
19367
|
+
let params;
|
|
19368
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19369
|
+
params = (paramsOrFirst || {});
|
|
19370
|
+
}
|
|
19371
|
+
else {
|
|
19372
|
+
params = {
|
|
19373
|
+
databaseId: paramsOrFirst,
|
|
19374
|
+
status: rest[0],
|
|
19375
|
+
limit: rest[1],
|
|
19376
|
+
offset: rest[2]
|
|
19377
|
+
};
|
|
19378
|
+
}
|
|
19379
|
+
const databaseId = params.databaseId;
|
|
19380
|
+
const status = params.status;
|
|
19381
|
+
const limit = params.limit;
|
|
19382
|
+
const offset = params.offset;
|
|
19383
|
+
if (typeof databaseId === 'undefined') {
|
|
19384
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
19385
|
+
}
|
|
19386
|
+
const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
19387
|
+
const payload = {};
|
|
19388
|
+
if (typeof status !== 'undefined') {
|
|
19389
|
+
payload['status'] = status;
|
|
19390
|
+
}
|
|
19391
|
+
if (typeof limit !== 'undefined') {
|
|
19392
|
+
payload['limit'] = limit;
|
|
19393
|
+
}
|
|
19394
|
+
if (typeof offset !== 'undefined') {
|
|
19395
|
+
payload['offset'] = offset;
|
|
19396
|
+
}
|
|
19397
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19398
|
+
const apiHeaders = {
|
|
19399
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
19400
|
+
'accept': 'application/json',
|
|
19401
|
+
};
|
|
19402
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19403
|
+
}
|
|
19204
19404
|
getPitr(paramsOrFirst) {
|
|
19205
19405
|
let params;
|
|
19206
19406
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20386,6 +20586,44 @@ class Mysql {
|
|
|
20386
20586
|
};
|
|
20387
20587
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20388
20588
|
}
|
|
20589
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
20590
|
+
let params;
|
|
20591
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20592
|
+
params = (paramsOrFirst || {});
|
|
20593
|
+
}
|
|
20594
|
+
else {
|
|
20595
|
+
params = {
|
|
20596
|
+
databaseId: paramsOrFirst,
|
|
20597
|
+
status: rest[0],
|
|
20598
|
+
limit: rest[1],
|
|
20599
|
+
offset: rest[2]
|
|
20600
|
+
};
|
|
20601
|
+
}
|
|
20602
|
+
const databaseId = params.databaseId;
|
|
20603
|
+
const status = params.status;
|
|
20604
|
+
const limit = params.limit;
|
|
20605
|
+
const offset = params.offset;
|
|
20606
|
+
if (typeof databaseId === 'undefined') {
|
|
20607
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
20608
|
+
}
|
|
20609
|
+
const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
20610
|
+
const payload = {};
|
|
20611
|
+
if (typeof status !== 'undefined') {
|
|
20612
|
+
payload['status'] = status;
|
|
20613
|
+
}
|
|
20614
|
+
if (typeof limit !== 'undefined') {
|
|
20615
|
+
payload['limit'] = limit;
|
|
20616
|
+
}
|
|
20617
|
+
if (typeof offset !== 'undefined') {
|
|
20618
|
+
payload['offset'] = offset;
|
|
20619
|
+
}
|
|
20620
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20621
|
+
const apiHeaders = {
|
|
20622
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
20623
|
+
'accept': 'application/json',
|
|
20624
|
+
};
|
|
20625
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20626
|
+
}
|
|
20389
20627
|
getPitr(paramsOrFirst) {
|
|
20390
20628
|
let params;
|
|
20391
20629
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -24621,6 +24859,44 @@ class Postgresql {
|
|
|
24621
24859
|
};
|
|
24622
24860
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24623
24861
|
}
|
|
24862
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
24863
|
+
let params;
|
|
24864
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24865
|
+
params = (paramsOrFirst || {});
|
|
24866
|
+
}
|
|
24867
|
+
else {
|
|
24868
|
+
params = {
|
|
24869
|
+
databaseId: paramsOrFirst,
|
|
24870
|
+
status: rest[0],
|
|
24871
|
+
limit: rest[1],
|
|
24872
|
+
offset: rest[2]
|
|
24873
|
+
};
|
|
24874
|
+
}
|
|
24875
|
+
const databaseId = params.databaseId;
|
|
24876
|
+
const status = params.status;
|
|
24877
|
+
const limit = params.limit;
|
|
24878
|
+
const offset = params.offset;
|
|
24879
|
+
if (typeof databaseId === 'undefined') {
|
|
24880
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24881
|
+
}
|
|
24882
|
+
const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
24883
|
+
const payload = {};
|
|
24884
|
+
if (typeof status !== 'undefined') {
|
|
24885
|
+
payload['status'] = status;
|
|
24886
|
+
}
|
|
24887
|
+
if (typeof limit !== 'undefined') {
|
|
24888
|
+
payload['limit'] = limit;
|
|
24889
|
+
}
|
|
24890
|
+
if (typeof offset !== 'undefined') {
|
|
24891
|
+
payload['offset'] = offset;
|
|
24892
|
+
}
|
|
24893
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24894
|
+
const apiHeaders = {
|
|
24895
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
24896
|
+
'accept': 'application/json',
|
|
24897
|
+
};
|
|
24898
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24899
|
+
}
|
|
24624
24900
|
getPitr(paramsOrFirst) {
|
|
24625
24901
|
let params;
|
|
24626
24902
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -31106,14 +31382,16 @@ class Storage {
|
|
|
31106
31382
|
bucketId: paramsOrFirst,
|
|
31107
31383
|
fileId: rest[0],
|
|
31108
31384
|
file: rest[1],
|
|
31109
|
-
permissions: rest[2]
|
|
31385
|
+
permissions: rest[2],
|
|
31386
|
+
folder: rest[3]
|
|
31110
31387
|
};
|
|
31111
|
-
onProgress = rest[
|
|
31388
|
+
onProgress = rest[4];
|
|
31112
31389
|
}
|
|
31113
31390
|
const bucketId = params.bucketId;
|
|
31114
31391
|
const fileId = params.fileId;
|
|
31115
31392
|
const file = params.file;
|
|
31116
31393
|
const permissions = params.permissions;
|
|
31394
|
+
const folder = params.folder;
|
|
31117
31395
|
if (typeof bucketId === 'undefined') {
|
|
31118
31396
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
31119
31397
|
}
|
|
@@ -31134,6 +31412,9 @@ class Storage {
|
|
|
31134
31412
|
if (typeof permissions !== 'undefined') {
|
|
31135
31413
|
payload['permissions'] = permissions;
|
|
31136
31414
|
}
|
|
31415
|
+
if (typeof folder !== 'undefined') {
|
|
31416
|
+
payload['folder'] = folder;
|
|
31417
|
+
}
|
|
31137
31418
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31138
31419
|
const apiHeaders = {
|
|
31139
31420
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -31694,12 +31975,14 @@ class TablesDB {
|
|
|
31694
31975
|
databaseId: paramsOrFirst,
|
|
31695
31976
|
name: rest[0],
|
|
31696
31977
|
enabled: rest[1],
|
|
31697
|
-
|
|
31978
|
+
specification: rest[2],
|
|
31979
|
+
replicas: rest[3]
|
|
31698
31980
|
};
|
|
31699
31981
|
}
|
|
31700
31982
|
const databaseId = params.databaseId;
|
|
31701
31983
|
const name = params.name;
|
|
31702
31984
|
const enabled = params.enabled;
|
|
31985
|
+
const specification = params.specification;
|
|
31703
31986
|
const replicas = params.replicas;
|
|
31704
31987
|
if (typeof databaseId === 'undefined') {
|
|
31705
31988
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -31712,6 +31995,9 @@ class TablesDB {
|
|
|
31712
31995
|
if (typeof enabled !== 'undefined') {
|
|
31713
31996
|
payload['enabled'] = enabled;
|
|
31714
31997
|
}
|
|
31998
|
+
if (typeof specification !== 'undefined') {
|
|
31999
|
+
payload['specification'] = specification;
|
|
32000
|
+
}
|
|
31715
32001
|
if (typeof replicas !== 'undefined') {
|
|
31716
32002
|
payload['replicas'] = replicas;
|
|
31717
32003
|
}
|
|
@@ -31887,6 +32173,44 @@ class TablesDB {
|
|
|
31887
32173
|
};
|
|
31888
32174
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
31889
32175
|
}
|
|
32176
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
32177
|
+
let params;
|
|
32178
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
32179
|
+
params = (paramsOrFirst || {});
|
|
32180
|
+
}
|
|
32181
|
+
else {
|
|
32182
|
+
params = {
|
|
32183
|
+
databaseId: paramsOrFirst,
|
|
32184
|
+
status: rest[0],
|
|
32185
|
+
limit: rest[1],
|
|
32186
|
+
offset: rest[2]
|
|
32187
|
+
};
|
|
32188
|
+
}
|
|
32189
|
+
const databaseId = params.databaseId;
|
|
32190
|
+
const status = params.status;
|
|
32191
|
+
const limit = params.limit;
|
|
32192
|
+
const offset = params.offset;
|
|
32193
|
+
if (typeof databaseId === 'undefined') {
|
|
32194
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
32195
|
+
}
|
|
32196
|
+
const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
32197
|
+
const payload = {};
|
|
32198
|
+
if (typeof status !== 'undefined') {
|
|
32199
|
+
payload['status'] = status;
|
|
32200
|
+
}
|
|
32201
|
+
if (typeof limit !== 'undefined') {
|
|
32202
|
+
payload['limit'] = limit;
|
|
32203
|
+
}
|
|
32204
|
+
if (typeof offset !== 'undefined') {
|
|
32205
|
+
payload['offset'] = offset;
|
|
32206
|
+
}
|
|
32207
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32208
|
+
const apiHeaders = {
|
|
32209
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
32210
|
+
'accept': 'application/json',
|
|
32211
|
+
};
|
|
32212
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
32213
|
+
}
|
|
31890
32214
|
getReplicas(paramsOrFirst) {
|
|
31891
32215
|
let params;
|
|
31892
32216
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -37797,12 +38121,14 @@ class Vcs {
|
|
|
37797
38121
|
params = {
|
|
37798
38122
|
installationId: paramsOrFirst,
|
|
37799
38123
|
name: rest[0],
|
|
37800
|
-
xprivate: rest[1]
|
|
38124
|
+
xprivate: rest[1],
|
|
38125
|
+
providerNamespace: rest[2]
|
|
37801
38126
|
};
|
|
37802
38127
|
}
|
|
37803
38128
|
const installationId = params.installationId;
|
|
37804
38129
|
const name = params.name;
|
|
37805
38130
|
const xprivate = params.xprivate;
|
|
38131
|
+
const providerNamespace = params.providerNamespace;
|
|
37806
38132
|
if (typeof installationId === 'undefined') {
|
|
37807
38133
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
37808
38134
|
}
|
|
@@ -37820,6 +38146,9 @@ class Vcs {
|
|
|
37820
38146
|
if (typeof xprivate !== 'undefined') {
|
|
37821
38147
|
payload['private'] = xprivate;
|
|
37822
38148
|
}
|
|
38149
|
+
if (typeof providerNamespace !== 'undefined') {
|
|
38150
|
+
payload['providerNamespace'] = providerNamespace;
|
|
38151
|
+
}
|
|
37823
38152
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
37824
38153
|
const apiHeaders = {
|
|
37825
38154
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -38048,6 +38377,39 @@ class Vcs {
|
|
|
38048
38377
|
};
|
|
38049
38378
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
38050
38379
|
}
|
|
38380
|
+
listNamespaces(paramsOrFirst, ...rest) {
|
|
38381
|
+
let params;
|
|
38382
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
38383
|
+
params = (paramsOrFirst || {});
|
|
38384
|
+
}
|
|
38385
|
+
else {
|
|
38386
|
+
params = {
|
|
38387
|
+
installationId: paramsOrFirst,
|
|
38388
|
+
search: rest[0],
|
|
38389
|
+
queries: rest[1]
|
|
38390
|
+
};
|
|
38391
|
+
}
|
|
38392
|
+
const installationId = params.installationId;
|
|
38393
|
+
const search = params.search;
|
|
38394
|
+
const queries = params.queries;
|
|
38395
|
+
if (typeof installationId === 'undefined') {
|
|
38396
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
38397
|
+
}
|
|
38398
|
+
const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
38399
|
+
const payload = {};
|
|
38400
|
+
if (typeof search !== 'undefined') {
|
|
38401
|
+
payload['search'] = search;
|
|
38402
|
+
}
|
|
38403
|
+
if (typeof queries !== 'undefined') {
|
|
38404
|
+
payload['queries'] = queries;
|
|
38405
|
+
}
|
|
38406
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
38407
|
+
const apiHeaders = {
|
|
38408
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
38409
|
+
'accept': 'application/json',
|
|
38410
|
+
};
|
|
38411
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
38412
|
+
}
|
|
38051
38413
|
}
|
|
38052
38414
|
|
|
38053
38415
|
class VectorsDB {
|
|
@@ -38369,12 +38731,14 @@ class VectorsDB {
|
|
|
38369
38731
|
databaseId: paramsOrFirst,
|
|
38370
38732
|
name: rest[0],
|
|
38371
38733
|
enabled: rest[1],
|
|
38372
|
-
|
|
38734
|
+
specification: rest[2],
|
|
38735
|
+
replicas: rest[3]
|
|
38373
38736
|
};
|
|
38374
38737
|
}
|
|
38375
38738
|
const databaseId = params.databaseId;
|
|
38376
38739
|
const name = params.name;
|
|
38377
38740
|
const enabled = params.enabled;
|
|
38741
|
+
const specification = params.specification;
|
|
38378
38742
|
const replicas = params.replicas;
|
|
38379
38743
|
if (typeof databaseId === 'undefined') {
|
|
38380
38744
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -38390,6 +38754,9 @@ class VectorsDB {
|
|
|
38390
38754
|
if (typeof enabled !== 'undefined') {
|
|
38391
38755
|
payload['enabled'] = enabled;
|
|
38392
38756
|
}
|
|
38757
|
+
if (typeof specification !== 'undefined') {
|
|
38758
|
+
payload['specification'] = specification;
|
|
38759
|
+
}
|
|
38393
38760
|
if (typeof replicas !== 'undefined') {
|
|
38394
38761
|
payload['replicas'] = replicas;
|
|
38395
38762
|
}
|
|
@@ -39322,6 +39689,44 @@ class VectorsDB {
|
|
|
39322
39689
|
};
|
|
39323
39690
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
39324
39691
|
}
|
|
39692
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
39693
|
+
let params;
|
|
39694
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
39695
|
+
params = (paramsOrFirst || {});
|
|
39696
|
+
}
|
|
39697
|
+
else {
|
|
39698
|
+
params = {
|
|
39699
|
+
databaseId: paramsOrFirst,
|
|
39700
|
+
status: rest[0],
|
|
39701
|
+
limit: rest[1],
|
|
39702
|
+
offset: rest[2]
|
|
39703
|
+
};
|
|
39704
|
+
}
|
|
39705
|
+
const databaseId = params.databaseId;
|
|
39706
|
+
const status = params.status;
|
|
39707
|
+
const limit = params.limit;
|
|
39708
|
+
const offset = params.offset;
|
|
39709
|
+
if (typeof databaseId === 'undefined') {
|
|
39710
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
39711
|
+
}
|
|
39712
|
+
const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
39713
|
+
const payload = {};
|
|
39714
|
+
if (typeof status !== 'undefined') {
|
|
39715
|
+
payload['status'] = status;
|
|
39716
|
+
}
|
|
39717
|
+
if (typeof limit !== 'undefined') {
|
|
39718
|
+
payload['limit'] = limit;
|
|
39719
|
+
}
|
|
39720
|
+
if (typeof offset !== 'undefined') {
|
|
39721
|
+
payload['offset'] = offset;
|
|
39722
|
+
}
|
|
39723
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
39724
|
+
const apiHeaders = {
|
|
39725
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
39726
|
+
'accept': 'application/json',
|
|
39727
|
+
};
|
|
39728
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
39729
|
+
}
|
|
39325
39730
|
getReplicas(paramsOrFirst) {
|
|
39326
39731
|
let params;
|
|
39327
39732
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -39534,6 +39939,143 @@ class Waf {
|
|
|
39534
39939
|
};
|
|
39535
39940
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
39536
39941
|
}
|
|
39942
|
+
createChallengeRule(paramsOrFirst, ...rest) {
|
|
39943
|
+
let params;
|
|
39944
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
39945
|
+
params = (paramsOrFirst || {});
|
|
39946
|
+
}
|
|
39947
|
+
else {
|
|
39948
|
+
params = {
|
|
39949
|
+
ruleId: paramsOrFirst,
|
|
39950
|
+
resourceType: rest[0],
|
|
39951
|
+
name: rest[1],
|
|
39952
|
+
resourceId: rest[2],
|
|
39953
|
+
description: rest[3],
|
|
39954
|
+
challengeType: rest[4],
|
|
39955
|
+
priority: rest[5],
|
|
39956
|
+
enabled: rest[6],
|
|
39957
|
+
conditions: rest[7]
|
|
39958
|
+
};
|
|
39959
|
+
}
|
|
39960
|
+
const ruleId = params.ruleId;
|
|
39961
|
+
const resourceType = params.resourceType;
|
|
39962
|
+
const name = params.name;
|
|
39963
|
+
const resourceId = params.resourceId;
|
|
39964
|
+
const description = params.description;
|
|
39965
|
+
const challengeType = params.challengeType;
|
|
39966
|
+
const priority = params.priority;
|
|
39967
|
+
const enabled = params.enabled;
|
|
39968
|
+
const conditions = params.conditions;
|
|
39969
|
+
if (typeof ruleId === 'undefined') {
|
|
39970
|
+
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
39971
|
+
}
|
|
39972
|
+
if (typeof resourceType === 'undefined') {
|
|
39973
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
39974
|
+
}
|
|
39975
|
+
if (typeof name === 'undefined') {
|
|
39976
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
39977
|
+
}
|
|
39978
|
+
const apiPath = '/waf/rules/challenge';
|
|
39979
|
+
const payload = {};
|
|
39980
|
+
if (typeof ruleId !== 'undefined') {
|
|
39981
|
+
payload['ruleId'] = ruleId;
|
|
39982
|
+
}
|
|
39983
|
+
if (typeof resourceType !== 'undefined') {
|
|
39984
|
+
payload['resourceType'] = resourceType;
|
|
39985
|
+
}
|
|
39986
|
+
if (typeof resourceId !== 'undefined') {
|
|
39987
|
+
payload['resourceId'] = resourceId;
|
|
39988
|
+
}
|
|
39989
|
+
if (typeof name !== 'undefined') {
|
|
39990
|
+
payload['name'] = name;
|
|
39991
|
+
}
|
|
39992
|
+
if (typeof description !== 'undefined') {
|
|
39993
|
+
payload['description'] = description;
|
|
39994
|
+
}
|
|
39995
|
+
if (typeof challengeType !== 'undefined') {
|
|
39996
|
+
payload['challengeType'] = challengeType;
|
|
39997
|
+
}
|
|
39998
|
+
if (typeof priority !== 'undefined') {
|
|
39999
|
+
payload['priority'] = priority;
|
|
40000
|
+
}
|
|
40001
|
+
if (typeof enabled !== 'undefined') {
|
|
40002
|
+
payload['enabled'] = enabled;
|
|
40003
|
+
}
|
|
40004
|
+
if (typeof conditions !== 'undefined') {
|
|
40005
|
+
payload['conditions'] = conditions;
|
|
40006
|
+
}
|
|
40007
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40008
|
+
const apiHeaders = {
|
|
40009
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
40010
|
+
'content-type': 'application/json',
|
|
40011
|
+
'accept': 'application/json',
|
|
40012
|
+
};
|
|
40013
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
40014
|
+
}
|
|
40015
|
+
updateChallengeRule(paramsOrFirst, ...rest) {
|
|
40016
|
+
let params;
|
|
40017
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
40018
|
+
params = (paramsOrFirst || {});
|
|
40019
|
+
}
|
|
40020
|
+
else {
|
|
40021
|
+
params = {
|
|
40022
|
+
ruleId: paramsOrFirst,
|
|
40023
|
+
resourceType: rest[0],
|
|
40024
|
+
resourceId: rest[1],
|
|
40025
|
+
name: rest[2],
|
|
40026
|
+
description: rest[3],
|
|
40027
|
+
challengeType: rest[4],
|
|
40028
|
+
priority: rest[5],
|
|
40029
|
+
enabled: rest[6],
|
|
40030
|
+
conditions: rest[7]
|
|
40031
|
+
};
|
|
40032
|
+
}
|
|
40033
|
+
const ruleId = params.ruleId;
|
|
40034
|
+
const resourceType = params.resourceType;
|
|
40035
|
+
const resourceId = params.resourceId;
|
|
40036
|
+
const name = params.name;
|
|
40037
|
+
const description = params.description;
|
|
40038
|
+
const challengeType = params.challengeType;
|
|
40039
|
+
const priority = params.priority;
|
|
40040
|
+
const enabled = params.enabled;
|
|
40041
|
+
const conditions = params.conditions;
|
|
40042
|
+
if (typeof ruleId === 'undefined') {
|
|
40043
|
+
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
40044
|
+
}
|
|
40045
|
+
const apiPath = '/waf/rules/challenge/{ruleId}'.replace('{ruleId}', encodeURIComponent(String(ruleId)));
|
|
40046
|
+
const payload = {};
|
|
40047
|
+
if (typeof resourceType !== 'undefined') {
|
|
40048
|
+
payload['resourceType'] = resourceType;
|
|
40049
|
+
}
|
|
40050
|
+
if (typeof resourceId !== 'undefined') {
|
|
40051
|
+
payload['resourceId'] = resourceId;
|
|
40052
|
+
}
|
|
40053
|
+
if (typeof name !== 'undefined') {
|
|
40054
|
+
payload['name'] = name;
|
|
40055
|
+
}
|
|
40056
|
+
if (typeof description !== 'undefined') {
|
|
40057
|
+
payload['description'] = description;
|
|
40058
|
+
}
|
|
40059
|
+
if (typeof challengeType !== 'undefined') {
|
|
40060
|
+
payload['challengeType'] = challengeType;
|
|
40061
|
+
}
|
|
40062
|
+
if (typeof priority !== 'undefined') {
|
|
40063
|
+
payload['priority'] = priority;
|
|
40064
|
+
}
|
|
40065
|
+
if (typeof enabled !== 'undefined') {
|
|
40066
|
+
payload['enabled'] = enabled;
|
|
40067
|
+
}
|
|
40068
|
+
if (typeof conditions !== 'undefined') {
|
|
40069
|
+
payload['conditions'] = conditions;
|
|
40070
|
+
}
|
|
40071
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40072
|
+
const apiHeaders = {
|
|
40073
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
40074
|
+
'content-type': 'application/json',
|
|
40075
|
+
'accept': 'application/json',
|
|
40076
|
+
};
|
|
40077
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
40078
|
+
}
|
|
39537
40079
|
createDenyRule(paramsOrFirst, ...rest) {
|
|
39538
40080
|
let params;
|
|
39539
40081
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|