@appwrite.io/console 15.5.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 +387 -2
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +387 -2
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +387 -2
- package/package.json +4 -1
- package/types/models.d.ts +112 -0
- package/types/services/activities.d.ts +4 -4
- package/types/services/apps.d.ts +91 -0
- 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/postgresql.d.ts +28 -0
- package/types/services/storage.d.ts +2 -2
- package/types/services/tables-db.d.ts +28 -0
- package/types/services/usage.d.ts +4 -0
- package/types/services/vcs.d.ts +31 -3
- package/types/services/vectors-db.d.ts +28 -0
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
|
|
|
33
33
|
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.6.0"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
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 = {
|
|
@@ -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))) {
|
|
@@ -10627,6 +10746,44 @@ class DocumentsDB {
|
|
|
10627
10746
|
};
|
|
10628
10747
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
10629
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
|
+
}
|
|
10630
10787
|
getReplicas(paramsOrFirst) {
|
|
10631
10788
|
let params;
|
|
10632
10789
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19201,6 +19358,44 @@ class Mongo {
|
|
|
19201
19358
|
};
|
|
19202
19359
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
19203
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
|
+
}
|
|
19204
19399
|
getPitr(paramsOrFirst) {
|
|
19205
19400
|
let params;
|
|
19206
19401
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20386,6 +20581,44 @@ class Mysql {
|
|
|
20386
20581
|
};
|
|
20387
20582
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20388
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
|
+
}
|
|
20389
20622
|
getPitr(paramsOrFirst) {
|
|
20390
20623
|
let params;
|
|
20391
20624
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -24621,6 +24854,44 @@ class Postgresql {
|
|
|
24621
24854
|
};
|
|
24622
24855
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24623
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
|
+
}
|
|
24624
24895
|
getPitr(paramsOrFirst) {
|
|
24625
24896
|
let params;
|
|
24626
24897
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -31887,6 +32158,44 @@ class TablesDB {
|
|
|
31887
32158
|
};
|
|
31888
32159
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
31889
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
|
+
}
|
|
31890
32199
|
getReplicas(paramsOrFirst) {
|
|
31891
32200
|
let params;
|
|
31892
32201
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -37797,12 +38106,14 @@ class Vcs {
|
|
|
37797
38106
|
params = {
|
|
37798
38107
|
installationId: paramsOrFirst,
|
|
37799
38108
|
name: rest[0],
|
|
37800
|
-
xprivate: rest[1]
|
|
38109
|
+
xprivate: rest[1],
|
|
38110
|
+
providerNamespace: rest[2]
|
|
37801
38111
|
};
|
|
37802
38112
|
}
|
|
37803
38113
|
const installationId = params.installationId;
|
|
37804
38114
|
const name = params.name;
|
|
37805
38115
|
const xprivate = params.xprivate;
|
|
38116
|
+
const providerNamespace = params.providerNamespace;
|
|
37806
38117
|
if (typeof installationId === 'undefined') {
|
|
37807
38118
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
37808
38119
|
}
|
|
@@ -37820,6 +38131,9 @@ class Vcs {
|
|
|
37820
38131
|
if (typeof xprivate !== 'undefined') {
|
|
37821
38132
|
payload['private'] = xprivate;
|
|
37822
38133
|
}
|
|
38134
|
+
if (typeof providerNamespace !== 'undefined') {
|
|
38135
|
+
payload['providerNamespace'] = providerNamespace;
|
|
38136
|
+
}
|
|
37823
38137
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
37824
38138
|
const apiHeaders = {
|
|
37825
38139
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -38048,6 +38362,39 @@ class Vcs {
|
|
|
38048
38362
|
};
|
|
38049
38363
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
38050
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
|
+
}
|
|
38051
38398
|
}
|
|
38052
38399
|
|
|
38053
38400
|
class VectorsDB {
|
|
@@ -39322,6 +39669,44 @@ class VectorsDB {
|
|
|
39322
39669
|
};
|
|
39323
39670
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
39324
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
|
+
}
|
|
39325
39710
|
getReplicas(paramsOrFirst) {
|
|
39326
39711
|
let params;
|
|
39327
39712
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|