@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/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.6.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))) {
|
|
@@ -10625,6 +10744,44 @@ class DocumentsDB {
|
|
|
10625
10744
|
};
|
|
10626
10745
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
10627
10746
|
}
|
|
10747
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
10748
|
+
let params;
|
|
10749
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10750
|
+
params = (paramsOrFirst || {});
|
|
10751
|
+
}
|
|
10752
|
+
else {
|
|
10753
|
+
params = {
|
|
10754
|
+
databaseId: paramsOrFirst,
|
|
10755
|
+
status: rest[0],
|
|
10756
|
+
limit: rest[1],
|
|
10757
|
+
offset: rest[2]
|
|
10758
|
+
};
|
|
10759
|
+
}
|
|
10760
|
+
const databaseId = params.databaseId;
|
|
10761
|
+
const status = params.status;
|
|
10762
|
+
const limit = params.limit;
|
|
10763
|
+
const offset = params.offset;
|
|
10764
|
+
if (typeof databaseId === 'undefined') {
|
|
10765
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
10766
|
+
}
|
|
10767
|
+
const apiPath = '/documentsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
10768
|
+
const payload = {};
|
|
10769
|
+
if (typeof status !== 'undefined') {
|
|
10770
|
+
payload['status'] = status;
|
|
10771
|
+
}
|
|
10772
|
+
if (typeof limit !== 'undefined') {
|
|
10773
|
+
payload['limit'] = limit;
|
|
10774
|
+
}
|
|
10775
|
+
if (typeof offset !== 'undefined') {
|
|
10776
|
+
payload['offset'] = offset;
|
|
10777
|
+
}
|
|
10778
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10779
|
+
const apiHeaders = {
|
|
10780
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
10781
|
+
'accept': 'application/json',
|
|
10782
|
+
};
|
|
10783
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
10784
|
+
}
|
|
10628
10785
|
getReplicas(paramsOrFirst) {
|
|
10629
10786
|
let params;
|
|
10630
10787
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19199,6 +19356,44 @@ class Mongo {
|
|
|
19199
19356
|
};
|
|
19200
19357
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
19201
19358
|
}
|
|
19359
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
19360
|
+
let params;
|
|
19361
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19362
|
+
params = (paramsOrFirst || {});
|
|
19363
|
+
}
|
|
19364
|
+
else {
|
|
19365
|
+
params = {
|
|
19366
|
+
databaseId: paramsOrFirst,
|
|
19367
|
+
status: rest[0],
|
|
19368
|
+
limit: rest[1],
|
|
19369
|
+
offset: rest[2]
|
|
19370
|
+
};
|
|
19371
|
+
}
|
|
19372
|
+
const databaseId = params.databaseId;
|
|
19373
|
+
const status = params.status;
|
|
19374
|
+
const limit = params.limit;
|
|
19375
|
+
const offset = params.offset;
|
|
19376
|
+
if (typeof databaseId === 'undefined') {
|
|
19377
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
19378
|
+
}
|
|
19379
|
+
const apiPath = '/mongo/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
19380
|
+
const payload = {};
|
|
19381
|
+
if (typeof status !== 'undefined') {
|
|
19382
|
+
payload['status'] = status;
|
|
19383
|
+
}
|
|
19384
|
+
if (typeof limit !== 'undefined') {
|
|
19385
|
+
payload['limit'] = limit;
|
|
19386
|
+
}
|
|
19387
|
+
if (typeof offset !== 'undefined') {
|
|
19388
|
+
payload['offset'] = offset;
|
|
19389
|
+
}
|
|
19390
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19391
|
+
const apiHeaders = {
|
|
19392
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
19393
|
+
'accept': 'application/json',
|
|
19394
|
+
};
|
|
19395
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19396
|
+
}
|
|
19202
19397
|
getPitr(paramsOrFirst) {
|
|
19203
19398
|
let params;
|
|
19204
19399
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20384,6 +20579,44 @@ class Mysql {
|
|
|
20384
20579
|
};
|
|
20385
20580
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20386
20581
|
}
|
|
20582
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
20583
|
+
let params;
|
|
20584
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20585
|
+
params = (paramsOrFirst || {});
|
|
20586
|
+
}
|
|
20587
|
+
else {
|
|
20588
|
+
params = {
|
|
20589
|
+
databaseId: paramsOrFirst,
|
|
20590
|
+
status: rest[0],
|
|
20591
|
+
limit: rest[1],
|
|
20592
|
+
offset: rest[2]
|
|
20593
|
+
};
|
|
20594
|
+
}
|
|
20595
|
+
const databaseId = params.databaseId;
|
|
20596
|
+
const status = params.status;
|
|
20597
|
+
const limit = params.limit;
|
|
20598
|
+
const offset = params.offset;
|
|
20599
|
+
if (typeof databaseId === 'undefined') {
|
|
20600
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
20601
|
+
}
|
|
20602
|
+
const apiPath = '/mysql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
20603
|
+
const payload = {};
|
|
20604
|
+
if (typeof status !== 'undefined') {
|
|
20605
|
+
payload['status'] = status;
|
|
20606
|
+
}
|
|
20607
|
+
if (typeof limit !== 'undefined') {
|
|
20608
|
+
payload['limit'] = limit;
|
|
20609
|
+
}
|
|
20610
|
+
if (typeof offset !== 'undefined') {
|
|
20611
|
+
payload['offset'] = offset;
|
|
20612
|
+
}
|
|
20613
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20614
|
+
const apiHeaders = {
|
|
20615
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
20616
|
+
'accept': 'application/json',
|
|
20617
|
+
};
|
|
20618
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20619
|
+
}
|
|
20387
20620
|
getPitr(paramsOrFirst) {
|
|
20388
20621
|
let params;
|
|
20389
20622
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -24619,6 +24852,44 @@ class Postgresql {
|
|
|
24619
24852
|
};
|
|
24620
24853
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
24621
24854
|
}
|
|
24855
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
24856
|
+
let params;
|
|
24857
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24858
|
+
params = (paramsOrFirst || {});
|
|
24859
|
+
}
|
|
24860
|
+
else {
|
|
24861
|
+
params = {
|
|
24862
|
+
databaseId: paramsOrFirst,
|
|
24863
|
+
status: rest[0],
|
|
24864
|
+
limit: rest[1],
|
|
24865
|
+
offset: rest[2]
|
|
24866
|
+
};
|
|
24867
|
+
}
|
|
24868
|
+
const databaseId = params.databaseId;
|
|
24869
|
+
const status = params.status;
|
|
24870
|
+
const limit = params.limit;
|
|
24871
|
+
const offset = params.offset;
|
|
24872
|
+
if (typeof databaseId === 'undefined') {
|
|
24873
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
24874
|
+
}
|
|
24875
|
+
const apiPath = '/postgresql/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
24876
|
+
const payload = {};
|
|
24877
|
+
if (typeof status !== 'undefined') {
|
|
24878
|
+
payload['status'] = status;
|
|
24879
|
+
}
|
|
24880
|
+
if (typeof limit !== 'undefined') {
|
|
24881
|
+
payload['limit'] = limit;
|
|
24882
|
+
}
|
|
24883
|
+
if (typeof offset !== 'undefined') {
|
|
24884
|
+
payload['offset'] = offset;
|
|
24885
|
+
}
|
|
24886
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24887
|
+
const apiHeaders = {
|
|
24888
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
24889
|
+
'accept': 'application/json',
|
|
24890
|
+
};
|
|
24891
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24892
|
+
}
|
|
24622
24893
|
getPitr(paramsOrFirst) {
|
|
24623
24894
|
let params;
|
|
24624
24895
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -31885,6 +32156,44 @@ class TablesDB {
|
|
|
31885
32156
|
};
|
|
31886
32157
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
31887
32158
|
}
|
|
32159
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
32160
|
+
let params;
|
|
32161
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
32162
|
+
params = (paramsOrFirst || {});
|
|
32163
|
+
}
|
|
32164
|
+
else {
|
|
32165
|
+
params = {
|
|
32166
|
+
databaseId: paramsOrFirst,
|
|
32167
|
+
status: rest[0],
|
|
32168
|
+
limit: rest[1],
|
|
32169
|
+
offset: rest[2]
|
|
32170
|
+
};
|
|
32171
|
+
}
|
|
32172
|
+
const databaseId = params.databaseId;
|
|
32173
|
+
const status = params.status;
|
|
32174
|
+
const limit = params.limit;
|
|
32175
|
+
const offset = params.offset;
|
|
32176
|
+
if (typeof databaseId === 'undefined') {
|
|
32177
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
32178
|
+
}
|
|
32179
|
+
const apiPath = '/tablesdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
32180
|
+
const payload = {};
|
|
32181
|
+
if (typeof status !== 'undefined') {
|
|
32182
|
+
payload['status'] = status;
|
|
32183
|
+
}
|
|
32184
|
+
if (typeof limit !== 'undefined') {
|
|
32185
|
+
payload['limit'] = limit;
|
|
32186
|
+
}
|
|
32187
|
+
if (typeof offset !== 'undefined') {
|
|
32188
|
+
payload['offset'] = offset;
|
|
32189
|
+
}
|
|
32190
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32191
|
+
const apiHeaders = {
|
|
32192
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
32193
|
+
'accept': 'application/json',
|
|
32194
|
+
};
|
|
32195
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
32196
|
+
}
|
|
31888
32197
|
getReplicas(paramsOrFirst) {
|
|
31889
32198
|
let params;
|
|
31890
32199
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -37795,12 +38104,14 @@ class Vcs {
|
|
|
37795
38104
|
params = {
|
|
37796
38105
|
installationId: paramsOrFirst,
|
|
37797
38106
|
name: rest[0],
|
|
37798
|
-
xprivate: rest[1]
|
|
38107
|
+
xprivate: rest[1],
|
|
38108
|
+
providerNamespace: rest[2]
|
|
37799
38109
|
};
|
|
37800
38110
|
}
|
|
37801
38111
|
const installationId = params.installationId;
|
|
37802
38112
|
const name = params.name;
|
|
37803
38113
|
const xprivate = params.xprivate;
|
|
38114
|
+
const providerNamespace = params.providerNamespace;
|
|
37804
38115
|
if (typeof installationId === 'undefined') {
|
|
37805
38116
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
37806
38117
|
}
|
|
@@ -37818,6 +38129,9 @@ class Vcs {
|
|
|
37818
38129
|
if (typeof xprivate !== 'undefined') {
|
|
37819
38130
|
payload['private'] = xprivate;
|
|
37820
38131
|
}
|
|
38132
|
+
if (typeof providerNamespace !== 'undefined') {
|
|
38133
|
+
payload['providerNamespace'] = providerNamespace;
|
|
38134
|
+
}
|
|
37821
38135
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
37822
38136
|
const apiHeaders = {
|
|
37823
38137
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -38046,6 +38360,39 @@ class Vcs {
|
|
|
38046
38360
|
};
|
|
38047
38361
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
38048
38362
|
}
|
|
38363
|
+
listNamespaces(paramsOrFirst, ...rest) {
|
|
38364
|
+
let params;
|
|
38365
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
38366
|
+
params = (paramsOrFirst || {});
|
|
38367
|
+
}
|
|
38368
|
+
else {
|
|
38369
|
+
params = {
|
|
38370
|
+
installationId: paramsOrFirst,
|
|
38371
|
+
search: rest[0],
|
|
38372
|
+
queries: rest[1]
|
|
38373
|
+
};
|
|
38374
|
+
}
|
|
38375
|
+
const installationId = params.installationId;
|
|
38376
|
+
const search = params.search;
|
|
38377
|
+
const queries = params.queries;
|
|
38378
|
+
if (typeof installationId === 'undefined') {
|
|
38379
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
38380
|
+
}
|
|
38381
|
+
const apiPath = '/vcs/installations/{installationId}/namespaces'.replace('{installationId}', encodeURIComponent(String(installationId)));
|
|
38382
|
+
const payload = {};
|
|
38383
|
+
if (typeof search !== 'undefined') {
|
|
38384
|
+
payload['search'] = search;
|
|
38385
|
+
}
|
|
38386
|
+
if (typeof queries !== 'undefined') {
|
|
38387
|
+
payload['queries'] = queries;
|
|
38388
|
+
}
|
|
38389
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
38390
|
+
const apiHeaders = {
|
|
38391
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
38392
|
+
'accept': 'application/json',
|
|
38393
|
+
};
|
|
38394
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
38395
|
+
}
|
|
38049
38396
|
}
|
|
38050
38397
|
|
|
38051
38398
|
class VectorsDB {
|
|
@@ -39320,6 +39667,44 @@ class VectorsDB {
|
|
|
39320
39667
|
};
|
|
39321
39668
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
39322
39669
|
}
|
|
39670
|
+
listOperations(paramsOrFirst, ...rest) {
|
|
39671
|
+
let params;
|
|
39672
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
39673
|
+
params = (paramsOrFirst || {});
|
|
39674
|
+
}
|
|
39675
|
+
else {
|
|
39676
|
+
params = {
|
|
39677
|
+
databaseId: paramsOrFirst,
|
|
39678
|
+
status: rest[0],
|
|
39679
|
+
limit: rest[1],
|
|
39680
|
+
offset: rest[2]
|
|
39681
|
+
};
|
|
39682
|
+
}
|
|
39683
|
+
const databaseId = params.databaseId;
|
|
39684
|
+
const status = params.status;
|
|
39685
|
+
const limit = params.limit;
|
|
39686
|
+
const offset = params.offset;
|
|
39687
|
+
if (typeof databaseId === 'undefined') {
|
|
39688
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
39689
|
+
}
|
|
39690
|
+
const apiPath = '/vectorsdb/{databaseId}/operations'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
39691
|
+
const payload = {};
|
|
39692
|
+
if (typeof status !== 'undefined') {
|
|
39693
|
+
payload['status'] = status;
|
|
39694
|
+
}
|
|
39695
|
+
if (typeof limit !== 'undefined') {
|
|
39696
|
+
payload['limit'] = limit;
|
|
39697
|
+
}
|
|
39698
|
+
if (typeof offset !== 'undefined') {
|
|
39699
|
+
payload['offset'] = offset;
|
|
39700
|
+
}
|
|
39701
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
39702
|
+
const apiHeaders = {
|
|
39703
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
39704
|
+
'accept': 'application/json',
|
|
39705
|
+
};
|
|
39706
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
39707
|
+
}
|
|
39323
39708
|
getReplicas(paramsOrFirst) {
|
|
39324
39709
|
let params;
|
|
39325
39710
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|