@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/esm/sdk.js
CHANGED
|
@@ -645,7 +645,7 @@ class Client {
|
|
|
645
645
|
'x-sdk-name': 'Console',
|
|
646
646
|
'x-sdk-platform': 'console',
|
|
647
647
|
'x-sdk-language': 'web',
|
|
648
|
-
'x-sdk-version': '15.
|
|
648
|
+
'x-sdk-version': '15.7.0',
|
|
649
649
|
'X-Appwrite-Response-Format': '1.9.5',
|
|
650
650
|
};
|
|
651
651
|
this.realtime = {
|
|
@@ -4262,6 +4262,125 @@ class Apps {
|
|
|
4262
4262
|
};
|
|
4263
4263
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
4264
4264
|
}
|
|
4265
|
+
listInstallations(paramsOrFirst, ...rest) {
|
|
4266
|
+
let params;
|
|
4267
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4268
|
+
params = (paramsOrFirst || {});
|
|
4269
|
+
}
|
|
4270
|
+
else {
|
|
4271
|
+
params = {
|
|
4272
|
+
appId: paramsOrFirst,
|
|
4273
|
+
queries: rest[0],
|
|
4274
|
+
total: rest[1]
|
|
4275
|
+
};
|
|
4276
|
+
}
|
|
4277
|
+
const appId = params.appId;
|
|
4278
|
+
const queries = params.queries;
|
|
4279
|
+
const total = params.total;
|
|
4280
|
+
if (typeof appId === 'undefined') {
|
|
4281
|
+
throw new AppwriteException('Missing required parameter: "appId"');
|
|
4282
|
+
}
|
|
4283
|
+
const apiPath = '/apps/{appId}/installations'.replace('{appId}', encodeURIComponent(String(appId)));
|
|
4284
|
+
const payload = {};
|
|
4285
|
+
if (typeof queries !== 'undefined') {
|
|
4286
|
+
payload['queries'] = queries;
|
|
4287
|
+
}
|
|
4288
|
+
if (typeof total !== 'undefined') {
|
|
4289
|
+
payload['total'] = total;
|
|
4290
|
+
}
|
|
4291
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4292
|
+
const apiHeaders = {
|
|
4293
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4294
|
+
'accept': 'application/json',
|
|
4295
|
+
};
|
|
4296
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4297
|
+
}
|
|
4298
|
+
getInstallation(paramsOrFirst, ...rest) {
|
|
4299
|
+
let params;
|
|
4300
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4301
|
+
params = (paramsOrFirst || {});
|
|
4302
|
+
}
|
|
4303
|
+
else {
|
|
4304
|
+
params = {
|
|
4305
|
+
appId: paramsOrFirst,
|
|
4306
|
+
installationId: rest[0]
|
|
4307
|
+
};
|
|
4308
|
+
}
|
|
4309
|
+
const appId = params.appId;
|
|
4310
|
+
const installationId = params.installationId;
|
|
4311
|
+
if (typeof appId === 'undefined') {
|
|
4312
|
+
throw new AppwriteException('Missing required parameter: "appId"');
|
|
4313
|
+
}
|
|
4314
|
+
if (typeof installationId === 'undefined') {
|
|
4315
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
4316
|
+
}
|
|
4317
|
+
const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
4318
|
+
const payload = {};
|
|
4319
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4320
|
+
const apiHeaders = {
|
|
4321
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4322
|
+
'accept': 'application/json',
|
|
4323
|
+
};
|
|
4324
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4325
|
+
}
|
|
4326
|
+
deleteInstallation(paramsOrFirst, ...rest) {
|
|
4327
|
+
let params;
|
|
4328
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4329
|
+
params = (paramsOrFirst || {});
|
|
4330
|
+
}
|
|
4331
|
+
else {
|
|
4332
|
+
params = {
|
|
4333
|
+
appId: paramsOrFirst,
|
|
4334
|
+
installationId: rest[0]
|
|
4335
|
+
};
|
|
4336
|
+
}
|
|
4337
|
+
const appId = params.appId;
|
|
4338
|
+
const installationId = params.installationId;
|
|
4339
|
+
if (typeof appId === 'undefined') {
|
|
4340
|
+
throw new AppwriteException('Missing required parameter: "appId"');
|
|
4341
|
+
}
|
|
4342
|
+
if (typeof installationId === 'undefined') {
|
|
4343
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
4344
|
+
}
|
|
4345
|
+
const apiPath = '/apps/{appId}/installations/{installationId}'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
4346
|
+
const payload = {};
|
|
4347
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4348
|
+
const apiHeaders = {
|
|
4349
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4350
|
+
'content-type': 'application/json',
|
|
4351
|
+
'accept': 'application/json',
|
|
4352
|
+
};
|
|
4353
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
4354
|
+
}
|
|
4355
|
+
createInstallationToken(paramsOrFirst, ...rest) {
|
|
4356
|
+
let params;
|
|
4357
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4358
|
+
params = (paramsOrFirst || {});
|
|
4359
|
+
}
|
|
4360
|
+
else {
|
|
4361
|
+
params = {
|
|
4362
|
+
appId: paramsOrFirst,
|
|
4363
|
+
installationId: rest[0]
|
|
4364
|
+
};
|
|
4365
|
+
}
|
|
4366
|
+
const appId = params.appId;
|
|
4367
|
+
const installationId = params.installationId;
|
|
4368
|
+
if (typeof appId === 'undefined') {
|
|
4369
|
+
throw new AppwriteException('Missing required parameter: "appId"');
|
|
4370
|
+
}
|
|
4371
|
+
if (typeof installationId === 'undefined') {
|
|
4372
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
4373
|
+
}
|
|
4374
|
+
const apiPath = '/apps/{appId}/installations/{installationId}/tokens'.replace('{appId}', encodeURIComponent(String(appId))).replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
4375
|
+
const payload = {};
|
|
4376
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4377
|
+
const apiHeaders = {
|
|
4378
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4379
|
+
'content-type': 'application/json',
|
|
4380
|
+
'accept': 'application/json',
|
|
4381
|
+
};
|
|
4382
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
4383
|
+
}
|
|
4265
4384
|
listKeys(paramsOrFirst, ...rest) {
|
|
4266
4385
|
let params;
|
|
4267
4386
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9611,12 +9730,14 @@ class DocumentsDB {
|
|
|
9611
9730
|
databaseId: paramsOrFirst,
|
|
9612
9731
|
name: rest[0],
|
|
9613
9732
|
enabled: rest[1],
|
|
9614
|
-
|
|
9733
|
+
specification: rest[2],
|
|
9734
|
+
replicas: rest[3]
|
|
9615
9735
|
};
|
|
9616
9736
|
}
|
|
9617
9737
|
const databaseId = params.databaseId;
|
|
9618
9738
|
const name = params.name;
|
|
9619
9739
|
const enabled = params.enabled;
|
|
9740
|
+
const specification = params.specification;
|
|
9620
9741
|
const replicas = params.replicas;
|
|
9621
9742
|
if (typeof databaseId === 'undefined') {
|
|
9622
9743
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -9632,6 +9753,9 @@ class DocumentsDB {
|
|
|
9632
9753
|
if (typeof enabled !== 'undefined') {
|
|
9633
9754
|
payload['enabled'] = enabled;
|
|
9634
9755
|
}
|
|
9756
|
+
if (typeof specification !== 'undefined') {
|
|
9757
|
+
payload['specification'] = specification;
|
|
9758
|
+
}
|
|
9635
9759
|
if (typeof replicas !== 'undefined') {
|
|
9636
9760
|
payload['replicas'] = replicas;
|
|
9637
9761
|
}
|
|
@@ -10625,6 +10749,44 @@ class DocumentsDB {
|
|
|
10625
10749
|
};
|
|
10626
10750
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
10627
10751
|
}
|
|
10752
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
10753
|
+
let params;
|
|
10754
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10755
|
+
params = (paramsOrFirst || {});
|
|
10756
|
+
}
|
|
10757
|
+
else {
|
|
10758
|
+
params = {
|
|
10759
|
+
databaseId: paramsOrFirst,
|
|
10760
|
+
status: rest[0],
|
|
10761
|
+
limit: rest[1],
|
|
10762
|
+
offset: rest[2]
|
|
10763
|
+
};
|
|
10764
|
+
}
|
|
10765
|
+
const databaseId = params.databaseId;
|
|
10766
|
+
const status = params.status;
|
|
10767
|
+
const limit = params.limit;
|
|
10768
|
+
const offset = params.offset;
|
|
10769
|
+
if (typeof databaseId === 'undefined') {
|
|
10770
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10771
|
+
}
|
|
10772
|
+
const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
10773
|
+
const payload = {};
|
|
10774
|
+
if (typeof status !== 'undefined') {
|
|
10775
|
+
payload['status'] = status;
|
|
10776
|
+
}
|
|
10777
|
+
if (typeof limit !== 'undefined') {
|
|
10778
|
+
payload['limit'] = limit;
|
|
10779
|
+
}
|
|
10780
|
+
if (typeof offset !== 'undefined') {
|
|
10781
|
+
payload['offset'] = offset;
|
|
10782
|
+
}
|
|
10783
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10784
|
+
const apiHeaders = {
|
|
10785
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
10786
|
+
'accept': 'application/json',
|
|
10787
|
+
};
|
|
10788
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
10789
|
+
}
|
|
10628
10790
|
getReplicas(paramsOrFirst) {
|
|
10629
10791
|
let params;
|
|
10630
10792
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19199,6 +19361,44 @@ class Mongo {
|
|
|
19199
19361
|
};
|
|
19200
19362
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
19201
19363
|
}
|
|
19364
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
19365
|
+
let params;
|
|
19366
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19367
|
+
params = (paramsOrFirst || {});
|
|
19368
|
+
}
|
|
19369
|
+
else {
|
|
19370
|
+
params = {
|
|
19371
|
+
databaseId: paramsOrFirst,
|
|
19372
|
+
status: rest[0],
|
|
19373
|
+
limit: rest[1],
|
|
19374
|
+
offset: rest[2]
|
|
19375
|
+
};
|
|
19376
|
+
}
|
|
19377
|
+
const databaseId = params.databaseId;
|
|
19378
|
+
const status = params.status;
|
|
19379
|
+
const limit = params.limit;
|
|
19380
|
+
const offset = params.offset;
|
|
19381
|
+
if (typeof databaseId === 'undefined') {
|
|
19382
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
19383
|
+
}
|
|
19384
|
+
const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
19385
|
+
const payload = {};
|
|
19386
|
+
if (typeof status !== 'undefined') {
|
|
19387
|
+
payload['status'] = status;
|
|
19388
|
+
}
|
|
19389
|
+
if (typeof limit !== 'undefined') {
|
|
19390
|
+
payload['limit'] = limit;
|
|
19391
|
+
}
|
|
19392
|
+
if (typeof offset !== 'undefined') {
|
|
19393
|
+
payload['offset'] = offset;
|
|
19394
|
+
}
|
|
19395
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19396
|
+
const apiHeaders = {
|
|
19397
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
19398
|
+
'accept': 'application/json',
|
|
19399
|
+
};
|
|
19400
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19401
|
+
}
|
|
19202
19402
|
getPitr(paramsOrFirst) {
|
|
19203
19403
|
let params;
|
|
19204
19404
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20384,6 +20584,44 @@ class Mysql {
|
|
|
20384
20584
|
};
|
|
20385
20585
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20386
20586
|
}
|
|
20587
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
20588
|
+
let params;
|
|
20589
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20590
|
+
params = (paramsOrFirst || {});
|
|
20591
|
+
}
|
|
20592
|
+
else {
|
|
20593
|
+
params = {
|
|
20594
|
+
databaseId: paramsOrFirst,
|
|
20595
|
+
status: rest[0],
|
|
20596
|
+
limit: rest[1],
|
|
20597
|
+
offset: rest[2]
|
|
20598
|
+
};
|
|
20599
|
+
}
|
|
20600
|
+
const databaseId = params.databaseId;
|
|
20601
|
+
const status = params.status;
|
|
20602
|
+
const limit = params.limit;
|
|
20603
|
+
const offset = params.offset;
|
|
20604
|
+
if (typeof databaseId === 'undefined') {
|
|
20605
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
20606
|
+
}
|
|
20607
|
+
const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
20608
|
+
const payload = {};
|
|
20609
|
+
if (typeof status !== 'undefined') {
|
|
20610
|
+
payload['status'] = status;
|
|
20611
|
+
}
|
|
20612
|
+
if (typeof limit !== 'undefined') {
|
|
20613
|
+
payload['limit'] = limit;
|
|
20614
|
+
}
|
|
20615
|
+
if (typeof offset !== 'undefined') {
|
|
20616
|
+
payload['offset'] = offset;
|
|
20617
|
+
}
|
|
20618
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20619
|
+
const apiHeaders = {
|
|
20620
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
20621
|
+
'accept': 'application/json',
|
|
20622
|
+
};
|
|
20623
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20624
|
+
}
|
|
20387
20625
|
getPitr(paramsOrFirst) {
|
|
20388
20626
|
let params;
|
|
20389
20627
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -24619,6 +24857,44 @@ class Postgresql {
|
|
|
24619
24857
|
};
|
|
24620
24858
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24621
24859
|
}
|
|
24860
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
24861
|
+
let params;
|
|
24862
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24863
|
+
params = (paramsOrFirst || {});
|
|
24864
|
+
}
|
|
24865
|
+
else {
|
|
24866
|
+
params = {
|
|
24867
|
+
databaseId: paramsOrFirst,
|
|
24868
|
+
status: rest[0],
|
|
24869
|
+
limit: rest[1],
|
|
24870
|
+
offset: rest[2]
|
|
24871
|
+
};
|
|
24872
|
+
}
|
|
24873
|
+
const databaseId = params.databaseId;
|
|
24874
|
+
const status = params.status;
|
|
24875
|
+
const limit = params.limit;
|
|
24876
|
+
const offset = params.offset;
|
|
24877
|
+
if (typeof databaseId === 'undefined') {
|
|
24878
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24879
|
+
}
|
|
24880
|
+
const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
24881
|
+
const payload = {};
|
|
24882
|
+
if (typeof status !== 'undefined') {
|
|
24883
|
+
payload['status'] = status;
|
|
24884
|
+
}
|
|
24885
|
+
if (typeof limit !== 'undefined') {
|
|
24886
|
+
payload['limit'] = limit;
|
|
24887
|
+
}
|
|
24888
|
+
if (typeof offset !== 'undefined') {
|
|
24889
|
+
payload['offset'] = offset;
|
|
24890
|
+
}
|
|
24891
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24892
|
+
const apiHeaders = {
|
|
24893
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
24894
|
+
'accept': 'application/json',
|
|
24895
|
+
};
|
|
24896
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24897
|
+
}
|
|
24622
24898
|
getPitr(paramsOrFirst) {
|
|
24623
24899
|
let params;
|
|
24624
24900
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -31104,14 +31380,16 @@ class Storage {
|
|
|
31104
31380
|
bucketId: paramsOrFirst,
|
|
31105
31381
|
fileId: rest[0],
|
|
31106
31382
|
file: rest[1],
|
|
31107
|
-
permissions: rest[2]
|
|
31383
|
+
permissions: rest[2],
|
|
31384
|
+
folder: rest[3]
|
|
31108
31385
|
};
|
|
31109
|
-
onProgress = rest[
|
|
31386
|
+
onProgress = rest[4];
|
|
31110
31387
|
}
|
|
31111
31388
|
const bucketId = params.bucketId;
|
|
31112
31389
|
const fileId = params.fileId;
|
|
31113
31390
|
const file = params.file;
|
|
31114
31391
|
const permissions = params.permissions;
|
|
31392
|
+
const folder = params.folder;
|
|
31115
31393
|
if (typeof bucketId === 'undefined') {
|
|
31116
31394
|
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
31117
31395
|
}
|
|
@@ -31132,6 +31410,9 @@ class Storage {
|
|
|
31132
31410
|
if (typeof permissions !== 'undefined') {
|
|
31133
31411
|
payload['permissions'] = permissions;
|
|
31134
31412
|
}
|
|
31413
|
+
if (typeof folder !== 'undefined') {
|
|
31414
|
+
payload['folder'] = folder;
|
|
31415
|
+
}
|
|
31135
31416
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31136
31417
|
const apiHeaders = {
|
|
31137
31418
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -31692,12 +31973,14 @@ class TablesDB {
|
|
|
31692
31973
|
databaseId: paramsOrFirst,
|
|
31693
31974
|
name: rest[0],
|
|
31694
31975
|
enabled: rest[1],
|
|
31695
|
-
|
|
31976
|
+
specification: rest[2],
|
|
31977
|
+
replicas: rest[3]
|
|
31696
31978
|
};
|
|
31697
31979
|
}
|
|
31698
31980
|
const databaseId = params.databaseId;
|
|
31699
31981
|
const name = params.name;
|
|
31700
31982
|
const enabled = params.enabled;
|
|
31983
|
+
const specification = params.specification;
|
|
31701
31984
|
const replicas = params.replicas;
|
|
31702
31985
|
if (typeof databaseId === 'undefined') {
|
|
31703
31986
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -31710,6 +31993,9 @@ class TablesDB {
|
|
|
31710
31993
|
if (typeof enabled !== 'undefined') {
|
|
31711
31994
|
payload['enabled'] = enabled;
|
|
31712
31995
|
}
|
|
31996
|
+
if (typeof specification !== 'undefined') {
|
|
31997
|
+
payload['specification'] = specification;
|
|
31998
|
+
}
|
|
31713
31999
|
if (typeof replicas !== 'undefined') {
|
|
31714
32000
|
payload['replicas'] = replicas;
|
|
31715
32001
|
}
|
|
@@ -31885,6 +32171,44 @@ class TablesDB {
|
|
|
31885
32171
|
};
|
|
31886
32172
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
31887
32173
|
}
|
|
32174
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
32175
|
+
let params;
|
|
32176
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
32177
|
+
params = (paramsOrFirst || {});
|
|
32178
|
+
}
|
|
32179
|
+
else {
|
|
32180
|
+
params = {
|
|
32181
|
+
databaseId: paramsOrFirst,
|
|
32182
|
+
status: rest[0],
|
|
32183
|
+
limit: rest[1],
|
|
32184
|
+
offset: rest[2]
|
|
32185
|
+
};
|
|
32186
|
+
}
|
|
32187
|
+
const databaseId = params.databaseId;
|
|
32188
|
+
const status = params.status;
|
|
32189
|
+
const limit = params.limit;
|
|
32190
|
+
const offset = params.offset;
|
|
32191
|
+
if (typeof databaseId === 'undefined') {
|
|
32192
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
32193
|
+
}
|
|
32194
|
+
const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
32195
|
+
const payload = {};
|
|
32196
|
+
if (typeof status !== 'undefined') {
|
|
32197
|
+
payload['status'] = status;
|
|
32198
|
+
}
|
|
32199
|
+
if (typeof limit !== 'undefined') {
|
|
32200
|
+
payload['limit'] = limit;
|
|
32201
|
+
}
|
|
32202
|
+
if (typeof offset !== 'undefined') {
|
|
32203
|
+
payload['offset'] = offset;
|
|
32204
|
+
}
|
|
32205
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32206
|
+
const apiHeaders = {
|
|
32207
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
32208
|
+
'accept': 'application/json',
|
|
32209
|
+
};
|
|
32210
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
32211
|
+
}
|
|
31888
32212
|
getReplicas(paramsOrFirst) {
|
|
31889
32213
|
let params;
|
|
31890
32214
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -37795,12 +38119,14 @@ class Vcs {
|
|
|
37795
38119
|
params = {
|
|
37796
38120
|
installationId: paramsOrFirst,
|
|
37797
38121
|
name: rest[0],
|
|
37798
|
-
xprivate: rest[1]
|
|
38122
|
+
xprivate: rest[1],
|
|
38123
|
+
providerNamespace: rest[2]
|
|
37799
38124
|
};
|
|
37800
38125
|
}
|
|
37801
38126
|
const installationId = params.installationId;
|
|
37802
38127
|
const name = params.name;
|
|
37803
38128
|
const xprivate = params.xprivate;
|
|
38129
|
+
const providerNamespace = params.providerNamespace;
|
|
37804
38130
|
if (typeof installationId === 'undefined') {
|
|
37805
38131
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
37806
38132
|
}
|
|
@@ -37818,6 +38144,9 @@ class Vcs {
|
|
|
37818
38144
|
if (typeof xprivate !== 'undefined') {
|
|
37819
38145
|
payload['private'] = xprivate;
|
|
37820
38146
|
}
|
|
38147
|
+
if (typeof providerNamespace !== 'undefined') {
|
|
38148
|
+
payload['providerNamespace'] = providerNamespace;
|
|
38149
|
+
}
|
|
37821
38150
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
37822
38151
|
const apiHeaders = {
|
|
37823
38152
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -38046,6 +38375,39 @@ class Vcs {
|
|
|
38046
38375
|
};
|
|
38047
38376
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
38048
38377
|
}
|
|
38378
|
+
listNamespaces(paramsOrFirst, ...rest) {
|
|
38379
|
+
let params;
|
|
38380
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
38381
|
+
params = (paramsOrFirst || {});
|
|
38382
|
+
}
|
|
38383
|
+
else {
|
|
38384
|
+
params = {
|
|
38385
|
+
installationId: paramsOrFirst,
|
|
38386
|
+
search: rest[0],
|
|
38387
|
+
queries: rest[1]
|
|
38388
|
+
};
|
|
38389
|
+
}
|
|
38390
|
+
const installationId = params.installationId;
|
|
38391
|
+
const search = params.search;
|
|
38392
|
+
const queries = params.queries;
|
|
38393
|
+
if (typeof installationId === 'undefined') {
|
|
38394
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
38395
|
+
}
|
|
38396
|
+
const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
38397
|
+
const payload = {};
|
|
38398
|
+
if (typeof search !== 'undefined') {
|
|
38399
|
+
payload['search'] = search;
|
|
38400
|
+
}
|
|
38401
|
+
if (typeof queries !== 'undefined') {
|
|
38402
|
+
payload['queries'] = queries;
|
|
38403
|
+
}
|
|
38404
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
38405
|
+
const apiHeaders = {
|
|
38406
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
38407
|
+
'accept': 'application/json',
|
|
38408
|
+
};
|
|
38409
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
38410
|
+
}
|
|
38049
38411
|
}
|
|
38050
38412
|
|
|
38051
38413
|
class VectorsDB {
|
|
@@ -38367,12 +38729,14 @@ class VectorsDB {
|
|
|
38367
38729
|
databaseId: paramsOrFirst,
|
|
38368
38730
|
name: rest[0],
|
|
38369
38731
|
enabled: rest[1],
|
|
38370
|
-
|
|
38732
|
+
specification: rest[2],
|
|
38733
|
+
replicas: rest[3]
|
|
38371
38734
|
};
|
|
38372
38735
|
}
|
|
38373
38736
|
const databaseId = params.databaseId;
|
|
38374
38737
|
const name = params.name;
|
|
38375
38738
|
const enabled = params.enabled;
|
|
38739
|
+
const specification = params.specification;
|
|
38376
38740
|
const replicas = params.replicas;
|
|
38377
38741
|
if (typeof databaseId === 'undefined') {
|
|
38378
38742
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
@@ -38388,6 +38752,9 @@ class VectorsDB {
|
|
|
38388
38752
|
if (typeof enabled !== 'undefined') {
|
|
38389
38753
|
payload['enabled'] = enabled;
|
|
38390
38754
|
}
|
|
38755
|
+
if (typeof specification !== 'undefined') {
|
|
38756
|
+
payload['specification'] = specification;
|
|
38757
|
+
}
|
|
38391
38758
|
if (typeof replicas !== 'undefined') {
|
|
38392
38759
|
payload['replicas'] = replicas;
|
|
38393
38760
|
}
|
|
@@ -39320,6 +39687,44 @@ class VectorsDB {
|
|
|
39320
39687
|
};
|
|
39321
39688
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
39322
39689
|
}
|
|
39690
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
39691
|
+
let params;
|
|
39692
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
39693
|
+
params = (paramsOrFirst || {});
|
|
39694
|
+
}
|
|
39695
|
+
else {
|
|
39696
|
+
params = {
|
|
39697
|
+
databaseId: paramsOrFirst,
|
|
39698
|
+
status: rest[0],
|
|
39699
|
+
limit: rest[1],
|
|
39700
|
+
offset: rest[2]
|
|
39701
|
+
};
|
|
39702
|
+
}
|
|
39703
|
+
const databaseId = params.databaseId;
|
|
39704
|
+
const status = params.status;
|
|
39705
|
+
const limit = params.limit;
|
|
39706
|
+
const offset = params.offset;
|
|
39707
|
+
if (typeof databaseId === 'undefined') {
|
|
39708
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
39709
|
+
}
|
|
39710
|
+
const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
39711
|
+
const payload = {};
|
|
39712
|
+
if (typeof status !== 'undefined') {
|
|
39713
|
+
payload['status'] = status;
|
|
39714
|
+
}
|
|
39715
|
+
if (typeof limit !== 'undefined') {
|
|
39716
|
+
payload['limit'] = limit;
|
|
39717
|
+
}
|
|
39718
|
+
if (typeof offset !== 'undefined') {
|
|
39719
|
+
payload['offset'] = offset;
|
|
39720
|
+
}
|
|
39721
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
39722
|
+
const apiHeaders = {
|
|
39723
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
39724
|
+
'accept': 'application/json',
|
|
39725
|
+
};
|
|
39726
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
39727
|
+
}
|
|
39323
39728
|
getReplicas(paramsOrFirst) {
|
|
39324
39729
|
let params;
|
|
39325
39730
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -39532,6 +39937,143 @@ class Waf {
|
|
|
39532
39937
|
};
|
|
39533
39938
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
39534
39939
|
}
|
|
39940
|
+
createChallengeRule(paramsOrFirst, ...rest) {
|
|
39941
|
+
let params;
|
|
39942
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
39943
|
+
params = (paramsOrFirst || {});
|
|
39944
|
+
}
|
|
39945
|
+
else {
|
|
39946
|
+
params = {
|
|
39947
|
+
ruleId: paramsOrFirst,
|
|
39948
|
+
resourceType: rest[0],
|
|
39949
|
+
name: rest[1],
|
|
39950
|
+
resourceId: rest[2],
|
|
39951
|
+
description: rest[3],
|
|
39952
|
+
challengeType: rest[4],
|
|
39953
|
+
priority: rest[5],
|
|
39954
|
+
enabled: rest[6],
|
|
39955
|
+
conditions: rest[7]
|
|
39956
|
+
};
|
|
39957
|
+
}
|
|
39958
|
+
const ruleId = params.ruleId;
|
|
39959
|
+
const resourceType = params.resourceType;
|
|
39960
|
+
const name = params.name;
|
|
39961
|
+
const resourceId = params.resourceId;
|
|
39962
|
+
const description = params.description;
|
|
39963
|
+
const challengeType = params.challengeType;
|
|
39964
|
+
const priority = params.priority;
|
|
39965
|
+
const enabled = params.enabled;
|
|
39966
|
+
const conditions = params.conditions;
|
|
39967
|
+
if (typeof ruleId === 'undefined') {
|
|
39968
|
+
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
39969
|
+
}
|
|
39970
|
+
if (typeof resourceType === 'undefined') {
|
|
39971
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
39972
|
+
}
|
|
39973
|
+
if (typeof name === 'undefined') {
|
|
39974
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
39975
|
+
}
|
|
39976
|
+
const apiPath = '/waf/rules/challenge';
|
|
39977
|
+
const payload = {};
|
|
39978
|
+
if (typeof ruleId !== 'undefined') {
|
|
39979
|
+
payload['ruleId'] = ruleId;
|
|
39980
|
+
}
|
|
39981
|
+
if (typeof resourceType !== 'undefined') {
|
|
39982
|
+
payload['resourceType'] = resourceType;
|
|
39983
|
+
}
|
|
39984
|
+
if (typeof resourceId !== 'undefined') {
|
|
39985
|
+
payload['resourceId'] = resourceId;
|
|
39986
|
+
}
|
|
39987
|
+
if (typeof name !== 'undefined') {
|
|
39988
|
+
payload['name'] = name;
|
|
39989
|
+
}
|
|
39990
|
+
if (typeof description !== 'undefined') {
|
|
39991
|
+
payload['description'] = description;
|
|
39992
|
+
}
|
|
39993
|
+
if (typeof challengeType !== 'undefined') {
|
|
39994
|
+
payload['challengeType'] = challengeType;
|
|
39995
|
+
}
|
|
39996
|
+
if (typeof priority !== 'undefined') {
|
|
39997
|
+
payload['priority'] = priority;
|
|
39998
|
+
}
|
|
39999
|
+
if (typeof enabled !== 'undefined') {
|
|
40000
|
+
payload['enabled'] = enabled;
|
|
40001
|
+
}
|
|
40002
|
+
if (typeof conditions !== 'undefined') {
|
|
40003
|
+
payload['conditions'] = conditions;
|
|
40004
|
+
}
|
|
40005
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40006
|
+
const apiHeaders = {
|
|
40007
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
40008
|
+
'content-type': 'application/json',
|
|
40009
|
+
'accept': 'application/json',
|
|
40010
|
+
};
|
|
40011
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
40012
|
+
}
|
|
40013
|
+
updateChallengeRule(paramsOrFirst, ...rest) {
|
|
40014
|
+
let params;
|
|
40015
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
40016
|
+
params = (paramsOrFirst || {});
|
|
40017
|
+
}
|
|
40018
|
+
else {
|
|
40019
|
+
params = {
|
|
40020
|
+
ruleId: paramsOrFirst,
|
|
40021
|
+
resourceType: rest[0],
|
|
40022
|
+
resourceId: rest[1],
|
|
40023
|
+
name: rest[2],
|
|
40024
|
+
description: rest[3],
|
|
40025
|
+
challengeType: rest[4],
|
|
40026
|
+
priority: rest[5],
|
|
40027
|
+
enabled: rest[6],
|
|
40028
|
+
conditions: rest[7]
|
|
40029
|
+
};
|
|
40030
|
+
}
|
|
40031
|
+
const ruleId = params.ruleId;
|
|
40032
|
+
const resourceType = params.resourceType;
|
|
40033
|
+
const resourceId = params.resourceId;
|
|
40034
|
+
const name = params.name;
|
|
40035
|
+
const description = params.description;
|
|
40036
|
+
const challengeType = params.challengeType;
|
|
40037
|
+
const priority = params.priority;
|
|
40038
|
+
const enabled = params.enabled;
|
|
40039
|
+
const conditions = params.conditions;
|
|
40040
|
+
if (typeof ruleId === 'undefined') {
|
|
40041
|
+
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
40042
|
+
}
|
|
40043
|
+
const apiPath = '/waf/rules/challenge/{ruleId}'.replace('{ruleId}', encodeURIComponent(String(ruleId)));
|
|
40044
|
+
const payload = {};
|
|
40045
|
+
if (typeof resourceType !== 'undefined') {
|
|
40046
|
+
payload['resourceType'] = resourceType;
|
|
40047
|
+
}
|
|
40048
|
+
if (typeof resourceId !== 'undefined') {
|
|
40049
|
+
payload['resourceId'] = resourceId;
|
|
40050
|
+
}
|
|
40051
|
+
if (typeof name !== 'undefined') {
|
|
40052
|
+
payload['name'] = name;
|
|
40053
|
+
}
|
|
40054
|
+
if (typeof description !== 'undefined') {
|
|
40055
|
+
payload['description'] = description;
|
|
40056
|
+
}
|
|
40057
|
+
if (typeof challengeType !== 'undefined') {
|
|
40058
|
+
payload['challengeType'] = challengeType;
|
|
40059
|
+
}
|
|
40060
|
+
if (typeof priority !== 'undefined') {
|
|
40061
|
+
payload['priority'] = priority;
|
|
40062
|
+
}
|
|
40063
|
+
if (typeof enabled !== 'undefined') {
|
|
40064
|
+
payload['enabled'] = enabled;
|
|
40065
|
+
}
|
|
40066
|
+
if (typeof conditions !== 'undefined') {
|
|
40067
|
+
payload['conditions'] = conditions;
|
|
40068
|
+
}
|
|
40069
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40070
|
+
const apiHeaders = {
|
|
40071
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
40072
|
+
'content-type': 'application/json',
|
|
40073
|
+
'accept': 'application/json',
|
|
40074
|
+
};
|
|
40075
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
40076
|
+
}
|
|
39535
40077
|
createDenyRule(paramsOrFirst, ...rest) {
|
|
39536
40078
|
let params;
|
|
39537
40079
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|