@appwrite.io/console 8.2.0 → 9.0.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 +2 -2
- package/dist/cjs/sdk.js +1198 -856
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1199 -857
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1200 -858
- package/package.json +1 -1
- package/types/enums/addon.d.ts +3 -0
- package/types/enums/o-auth-provider.d.ts +1 -0
- package/types/enums/platform-type.d.ts +4 -14
- package/types/enums/protocol-id.d.ts +5 -0
- package/types/enums/scopes.d.ts +4 -4
- package/types/enums/{api-service.d.ts → service-id.d.ts} +5 -1
- package/types/index.d.ts +4 -3
- package/types/models.d.ts +312 -40
- package/types/services/account.d.ts +4 -4
- package/types/services/databases.d.ts +6 -3
- package/types/services/migrations.d.ts +8 -0
- package/types/services/organizations.d.ts +139 -0
- package/types/services/project.d.ts +549 -0
- package/types/services/projects.d.ts +0 -433
- package/types/services/tables-db.d.ts +6 -3
- package/types/services/webhooks.d.ts +26 -26
- package/types/enums/api.d.ts +0 -5
package/dist/iife/sdk.js
CHANGED
|
@@ -4378,8 +4378,8 @@
|
|
|
4378
4378
|
'x-sdk-name': 'Console',
|
|
4379
4379
|
'x-sdk-platform': 'console',
|
|
4380
4380
|
'x-sdk-language': 'web',
|
|
4381
|
-
'x-sdk-version': '
|
|
4382
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
4381
|
+
'x-sdk-version': '9.0.0',
|
|
4382
|
+
'X-Appwrite-Response-Format': '1.9.1',
|
|
4383
4383
|
};
|
|
4384
4384
|
this.realtime = {
|
|
4385
4385
|
socket: undefined,
|
|
@@ -8653,7 +8653,8 @@
|
|
|
8653
8653
|
name: rest[1],
|
|
8654
8654
|
permissions: rest[2],
|
|
8655
8655
|
documentSecurity: rest[3],
|
|
8656
|
-
enabled: rest[4]
|
|
8656
|
+
enabled: rest[4],
|
|
8657
|
+
purge: rest[5]
|
|
8657
8658
|
};
|
|
8658
8659
|
}
|
|
8659
8660
|
const databaseId = params.databaseId;
|
|
@@ -8662,6 +8663,7 @@
|
|
|
8662
8663
|
const permissions = params.permissions;
|
|
8663
8664
|
const documentSecurity = params.documentSecurity;
|
|
8664
8665
|
const enabled = params.enabled;
|
|
8666
|
+
const purge = params.purge;
|
|
8665
8667
|
if (typeof databaseId === 'undefined') {
|
|
8666
8668
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
8667
8669
|
}
|
|
@@ -8682,6 +8684,9 @@
|
|
|
8682
8684
|
if (typeof enabled !== 'undefined') {
|
|
8683
8685
|
payload['enabled'] = enabled;
|
|
8684
8686
|
}
|
|
8687
|
+
if (typeof purge !== 'undefined') {
|
|
8688
|
+
payload['purge'] = purge;
|
|
8689
|
+
}
|
|
8685
8690
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8686
8691
|
const apiHeaders = {
|
|
8687
8692
|
'content-type': 'application/json',
|
|
@@ -19172,6 +19177,152 @@
|
|
|
19172
19177
|
};
|
|
19173
19178
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
19174
19179
|
}
|
|
19180
|
+
listAddons(paramsOrFirst) {
|
|
19181
|
+
let params;
|
|
19182
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19183
|
+
params = (paramsOrFirst || {});
|
|
19184
|
+
}
|
|
19185
|
+
else {
|
|
19186
|
+
params = {
|
|
19187
|
+
organizationId: paramsOrFirst
|
|
19188
|
+
};
|
|
19189
|
+
}
|
|
19190
|
+
const organizationId = params.organizationId;
|
|
19191
|
+
if (typeof organizationId === 'undefined') {
|
|
19192
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19193
|
+
}
|
|
19194
|
+
const apiPath = '/organizations/{organizationId}/addons'.replace('{organizationId}', organizationId);
|
|
19195
|
+
const payload = {};
|
|
19196
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19197
|
+
const apiHeaders = {};
|
|
19198
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19199
|
+
}
|
|
19200
|
+
createBaaAddon(paramsOrFirst) {
|
|
19201
|
+
let params;
|
|
19202
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19203
|
+
params = (paramsOrFirst || {});
|
|
19204
|
+
}
|
|
19205
|
+
else {
|
|
19206
|
+
params = {
|
|
19207
|
+
organizationId: paramsOrFirst
|
|
19208
|
+
};
|
|
19209
|
+
}
|
|
19210
|
+
const organizationId = params.organizationId;
|
|
19211
|
+
if (typeof organizationId === 'undefined') {
|
|
19212
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19213
|
+
}
|
|
19214
|
+
const apiPath = '/organizations/{organizationId}/addons/baa'.replace('{organizationId}', organizationId);
|
|
19215
|
+
const payload = {};
|
|
19216
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19217
|
+
const apiHeaders = {
|
|
19218
|
+
'content-type': 'application/json',
|
|
19219
|
+
};
|
|
19220
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
19221
|
+
}
|
|
19222
|
+
getAddon(paramsOrFirst, ...rest) {
|
|
19223
|
+
let params;
|
|
19224
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19225
|
+
params = (paramsOrFirst || {});
|
|
19226
|
+
}
|
|
19227
|
+
else {
|
|
19228
|
+
params = {
|
|
19229
|
+
organizationId: paramsOrFirst,
|
|
19230
|
+
addonId: rest[0]
|
|
19231
|
+
};
|
|
19232
|
+
}
|
|
19233
|
+
const organizationId = params.organizationId;
|
|
19234
|
+
const addonId = params.addonId;
|
|
19235
|
+
if (typeof organizationId === 'undefined') {
|
|
19236
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19237
|
+
}
|
|
19238
|
+
if (typeof addonId === 'undefined') {
|
|
19239
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
19240
|
+
}
|
|
19241
|
+
const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
|
|
19242
|
+
const payload = {};
|
|
19243
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19244
|
+
const apiHeaders = {};
|
|
19245
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19246
|
+
}
|
|
19247
|
+
deleteAddon(paramsOrFirst, ...rest) {
|
|
19248
|
+
let params;
|
|
19249
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19250
|
+
params = (paramsOrFirst || {});
|
|
19251
|
+
}
|
|
19252
|
+
else {
|
|
19253
|
+
params = {
|
|
19254
|
+
organizationId: paramsOrFirst,
|
|
19255
|
+
addonId: rest[0]
|
|
19256
|
+
};
|
|
19257
|
+
}
|
|
19258
|
+
const organizationId = params.organizationId;
|
|
19259
|
+
const addonId = params.addonId;
|
|
19260
|
+
if (typeof organizationId === 'undefined') {
|
|
19261
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19262
|
+
}
|
|
19263
|
+
if (typeof addonId === 'undefined') {
|
|
19264
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
19265
|
+
}
|
|
19266
|
+
const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
|
|
19267
|
+
const payload = {};
|
|
19268
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19269
|
+
const apiHeaders = {
|
|
19270
|
+
'content-type': 'application/json',
|
|
19271
|
+
};
|
|
19272
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
19273
|
+
}
|
|
19274
|
+
confirmAddonPayment(paramsOrFirst, ...rest) {
|
|
19275
|
+
let params;
|
|
19276
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19277
|
+
params = (paramsOrFirst || {});
|
|
19278
|
+
}
|
|
19279
|
+
else {
|
|
19280
|
+
params = {
|
|
19281
|
+
organizationId: paramsOrFirst,
|
|
19282
|
+
addonId: rest[0]
|
|
19283
|
+
};
|
|
19284
|
+
}
|
|
19285
|
+
const organizationId = params.organizationId;
|
|
19286
|
+
const addonId = params.addonId;
|
|
19287
|
+
if (typeof organizationId === 'undefined') {
|
|
19288
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19289
|
+
}
|
|
19290
|
+
if (typeof addonId === 'undefined') {
|
|
19291
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
19292
|
+
}
|
|
19293
|
+
const apiPath = '/organizations/{organizationId}/addons/{addonId}/confirmations'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
|
|
19294
|
+
const payload = {};
|
|
19295
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19296
|
+
const apiHeaders = {
|
|
19297
|
+
'content-type': 'application/json',
|
|
19298
|
+
};
|
|
19299
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
19300
|
+
}
|
|
19301
|
+
getAddonPrice(paramsOrFirst, ...rest) {
|
|
19302
|
+
let params;
|
|
19303
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19304
|
+
params = (paramsOrFirst || {});
|
|
19305
|
+
}
|
|
19306
|
+
else {
|
|
19307
|
+
params = {
|
|
19308
|
+
organizationId: paramsOrFirst,
|
|
19309
|
+
addon: rest[0]
|
|
19310
|
+
};
|
|
19311
|
+
}
|
|
19312
|
+
const organizationId = params.organizationId;
|
|
19313
|
+
const addon = params.addon;
|
|
19314
|
+
if (typeof organizationId === 'undefined') {
|
|
19315
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
19316
|
+
}
|
|
19317
|
+
if (typeof addon === 'undefined') {
|
|
19318
|
+
throw new AppwriteException('Missing required parameter: "addon"');
|
|
19319
|
+
}
|
|
19320
|
+
const apiPath = '/organizations/{organizationId}/addons/{addon}/price'.replace('{organizationId}', organizationId).replace('{addon}', addon);
|
|
19321
|
+
const payload = {};
|
|
19322
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19323
|
+
const apiHeaders = {};
|
|
19324
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19325
|
+
}
|
|
19175
19326
|
listAggregations(paramsOrFirst, ...rest) {
|
|
19176
19327
|
let params;
|
|
19177
19328
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20289,43 +20440,82 @@
|
|
|
20289
20440
|
constructor(client) {
|
|
20290
20441
|
this.client = client;
|
|
20291
20442
|
}
|
|
20292
|
-
|
|
20443
|
+
updateCanonicalEmails(paramsOrFirst) {
|
|
20293
20444
|
let params;
|
|
20294
20445
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20295
20446
|
params = (paramsOrFirst || {});
|
|
20296
20447
|
}
|
|
20297
20448
|
else {
|
|
20298
20449
|
params = {
|
|
20299
|
-
|
|
20300
|
-
endDate: rest[0],
|
|
20301
|
-
period: rest[1]
|
|
20450
|
+
enabled: paramsOrFirst
|
|
20302
20451
|
};
|
|
20303
20452
|
}
|
|
20304
|
-
const
|
|
20305
|
-
|
|
20306
|
-
|
|
20307
|
-
if (typeof startDate === 'undefined') {
|
|
20308
|
-
throw new AppwriteException('Missing required parameter: "startDate"');
|
|
20453
|
+
const enabled = params.enabled;
|
|
20454
|
+
if (typeof enabled === 'undefined') {
|
|
20455
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20309
20456
|
}
|
|
20310
|
-
|
|
20311
|
-
|
|
20457
|
+
const apiPath = '/project/auth/canonical-emails';
|
|
20458
|
+
const payload = {};
|
|
20459
|
+
if (typeof enabled !== 'undefined') {
|
|
20460
|
+
payload['enabled'] = enabled;
|
|
20312
20461
|
}
|
|
20313
|
-
const
|
|
20462
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20463
|
+
const apiHeaders = {
|
|
20464
|
+
'content-type': 'application/json',
|
|
20465
|
+
};
|
|
20466
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20467
|
+
}
|
|
20468
|
+
updateDisposableEmails(paramsOrFirst) {
|
|
20469
|
+
let params;
|
|
20470
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20471
|
+
params = (paramsOrFirst || {});
|
|
20472
|
+
}
|
|
20473
|
+
else {
|
|
20474
|
+
params = {
|
|
20475
|
+
enabled: paramsOrFirst
|
|
20476
|
+
};
|
|
20477
|
+
}
|
|
20478
|
+
const enabled = params.enabled;
|
|
20479
|
+
if (typeof enabled === 'undefined') {
|
|
20480
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20481
|
+
}
|
|
20482
|
+
const apiPath = '/project/auth/disposable-emails';
|
|
20314
20483
|
const payload = {};
|
|
20315
|
-
if (typeof
|
|
20316
|
-
payload['
|
|
20484
|
+
if (typeof enabled !== 'undefined') {
|
|
20485
|
+
payload['enabled'] = enabled;
|
|
20317
20486
|
}
|
|
20318
|
-
|
|
20319
|
-
|
|
20487
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20488
|
+
const apiHeaders = {
|
|
20489
|
+
'content-type': 'application/json',
|
|
20490
|
+
};
|
|
20491
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20492
|
+
}
|
|
20493
|
+
updateFreeEmails(paramsOrFirst) {
|
|
20494
|
+
let params;
|
|
20495
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20496
|
+
params = (paramsOrFirst || {});
|
|
20320
20497
|
}
|
|
20321
|
-
|
|
20322
|
-
|
|
20498
|
+
else {
|
|
20499
|
+
params = {
|
|
20500
|
+
enabled: paramsOrFirst
|
|
20501
|
+
};
|
|
20502
|
+
}
|
|
20503
|
+
const enabled = params.enabled;
|
|
20504
|
+
if (typeof enabled === 'undefined') {
|
|
20505
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20506
|
+
}
|
|
20507
|
+
const apiPath = '/project/auth/free-emails';
|
|
20508
|
+
const payload = {};
|
|
20509
|
+
if (typeof enabled !== 'undefined') {
|
|
20510
|
+
payload['enabled'] = enabled;
|
|
20323
20511
|
}
|
|
20324
20512
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20325
|
-
const apiHeaders = {
|
|
20326
|
-
|
|
20513
|
+
const apiHeaders = {
|
|
20514
|
+
'content-type': 'application/json',
|
|
20515
|
+
};
|
|
20516
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20327
20517
|
}
|
|
20328
|
-
|
|
20518
|
+
listKeys(paramsOrFirst, ...rest) {
|
|
20329
20519
|
let params;
|
|
20330
20520
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20331
20521
|
params = (paramsOrFirst || {});
|
|
@@ -20338,7 +20528,7 @@
|
|
|
20338
20528
|
}
|
|
20339
20529
|
const queries = params.queries;
|
|
20340
20530
|
const total = params.total;
|
|
20341
|
-
const apiPath = '/project/
|
|
20531
|
+
const apiPath = '/project/keys';
|
|
20342
20532
|
const payload = {};
|
|
20343
20533
|
if (typeof queries !== 'undefined') {
|
|
20344
20534
|
payload['queries'] = queries;
|
|
@@ -20350,45 +20540,45 @@
|
|
|
20350
20540
|
const apiHeaders = {};
|
|
20351
20541
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
20352
20542
|
}
|
|
20353
|
-
|
|
20543
|
+
createKey(paramsOrFirst, ...rest) {
|
|
20354
20544
|
let params;
|
|
20355
20545
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20356
20546
|
params = (paramsOrFirst || {});
|
|
20357
20547
|
}
|
|
20358
20548
|
else {
|
|
20359
20549
|
params = {
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
20550
|
+
keyId: paramsOrFirst,
|
|
20551
|
+
name: rest[0],
|
|
20552
|
+
scopes: rest[1],
|
|
20553
|
+
expire: rest[2]
|
|
20364
20554
|
};
|
|
20365
20555
|
}
|
|
20366
|
-
const
|
|
20367
|
-
const
|
|
20368
|
-
const
|
|
20369
|
-
const
|
|
20370
|
-
if (typeof
|
|
20371
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20556
|
+
const keyId = params.keyId;
|
|
20557
|
+
const name = params.name;
|
|
20558
|
+
const scopes = params.scopes;
|
|
20559
|
+
const expire = params.expire;
|
|
20560
|
+
if (typeof keyId === 'undefined') {
|
|
20561
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
20372
20562
|
}
|
|
20373
|
-
if (typeof
|
|
20374
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20563
|
+
if (typeof name === 'undefined') {
|
|
20564
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20375
20565
|
}
|
|
20376
|
-
if (typeof
|
|
20377
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20566
|
+
if (typeof scopes === 'undefined') {
|
|
20567
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
20378
20568
|
}
|
|
20379
|
-
const apiPath = '/project/
|
|
20569
|
+
const apiPath = '/project/keys';
|
|
20380
20570
|
const payload = {};
|
|
20381
|
-
if (typeof
|
|
20382
|
-
payload['
|
|
20571
|
+
if (typeof keyId !== 'undefined') {
|
|
20572
|
+
payload['keyId'] = keyId;
|
|
20383
20573
|
}
|
|
20384
|
-
if (typeof
|
|
20385
|
-
payload['
|
|
20574
|
+
if (typeof name !== 'undefined') {
|
|
20575
|
+
payload['name'] = name;
|
|
20386
20576
|
}
|
|
20387
|
-
if (typeof
|
|
20388
|
-
payload['
|
|
20577
|
+
if (typeof scopes !== 'undefined') {
|
|
20578
|
+
payload['scopes'] = scopes;
|
|
20389
20579
|
}
|
|
20390
|
-
if (typeof
|
|
20391
|
-
payload['
|
|
20580
|
+
if (typeof expire !== 'undefined') {
|
|
20581
|
+
payload['expire'] = expire;
|
|
20392
20582
|
}
|
|
20393
20583
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20394
20584
|
const apiHeaders = {
|
|
@@ -20396,56 +20586,62 @@
|
|
|
20396
20586
|
};
|
|
20397
20587
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20398
20588
|
}
|
|
20399
|
-
|
|
20589
|
+
getKey(paramsOrFirst) {
|
|
20400
20590
|
let params;
|
|
20401
20591
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20402
20592
|
params = (paramsOrFirst || {});
|
|
20403
20593
|
}
|
|
20404
20594
|
else {
|
|
20405
20595
|
params = {
|
|
20406
|
-
|
|
20596
|
+
keyId: paramsOrFirst
|
|
20407
20597
|
};
|
|
20408
20598
|
}
|
|
20409
|
-
const
|
|
20410
|
-
if (typeof
|
|
20411
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20599
|
+
const keyId = params.keyId;
|
|
20600
|
+
if (typeof keyId === 'undefined') {
|
|
20601
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
20412
20602
|
}
|
|
20413
|
-
const apiPath = '/project/
|
|
20603
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
20414
20604
|
const payload = {};
|
|
20415
20605
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20416
20606
|
const apiHeaders = {};
|
|
20417
20607
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
20418
20608
|
}
|
|
20419
|
-
|
|
20609
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
20420
20610
|
let params;
|
|
20421
20611
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20422
20612
|
params = (paramsOrFirst || {});
|
|
20423
20613
|
}
|
|
20424
20614
|
else {
|
|
20425
20615
|
params = {
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20616
|
+
keyId: paramsOrFirst,
|
|
20617
|
+
name: rest[0],
|
|
20618
|
+
scopes: rest[1],
|
|
20619
|
+
expire: rest[2]
|
|
20430
20620
|
};
|
|
20431
20621
|
}
|
|
20432
|
-
const
|
|
20433
|
-
const
|
|
20434
|
-
const
|
|
20435
|
-
const
|
|
20436
|
-
if (typeof
|
|
20437
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20622
|
+
const keyId = params.keyId;
|
|
20623
|
+
const name = params.name;
|
|
20624
|
+
const scopes = params.scopes;
|
|
20625
|
+
const expire = params.expire;
|
|
20626
|
+
if (typeof keyId === 'undefined') {
|
|
20627
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
20438
20628
|
}
|
|
20439
|
-
|
|
20629
|
+
if (typeof name === 'undefined') {
|
|
20630
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20631
|
+
}
|
|
20632
|
+
if (typeof scopes === 'undefined') {
|
|
20633
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
20634
|
+
}
|
|
20635
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
20440
20636
|
const payload = {};
|
|
20441
|
-
if (typeof
|
|
20442
|
-
payload['
|
|
20637
|
+
if (typeof name !== 'undefined') {
|
|
20638
|
+
payload['name'] = name;
|
|
20443
20639
|
}
|
|
20444
|
-
if (typeof
|
|
20445
|
-
payload['
|
|
20640
|
+
if (typeof scopes !== 'undefined') {
|
|
20641
|
+
payload['scopes'] = scopes;
|
|
20446
20642
|
}
|
|
20447
|
-
if (typeof
|
|
20448
|
-
payload['
|
|
20643
|
+
if (typeof expire !== 'undefined') {
|
|
20644
|
+
payload['expire'] = expire;
|
|
20449
20645
|
}
|
|
20450
20646
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20451
20647
|
const apiHeaders = {
|
|
@@ -20453,21 +20649,21 @@
|
|
|
20453
20649
|
};
|
|
20454
20650
|
return this.client.call('put', uri, apiHeaders, payload);
|
|
20455
20651
|
}
|
|
20456
|
-
|
|
20652
|
+
deleteKey(paramsOrFirst) {
|
|
20457
20653
|
let params;
|
|
20458
20654
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20459
20655
|
params = (paramsOrFirst || {});
|
|
20460
20656
|
}
|
|
20461
20657
|
else {
|
|
20462
20658
|
params = {
|
|
20463
|
-
|
|
20659
|
+
keyId: paramsOrFirst
|
|
20464
20660
|
};
|
|
20465
20661
|
}
|
|
20466
|
-
const
|
|
20467
|
-
if (typeof
|
|
20468
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20662
|
+
const keyId = params.keyId;
|
|
20663
|
+
if (typeof keyId === 'undefined') {
|
|
20664
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
20469
20665
|
}
|
|
20470
|
-
const apiPath = '/project/
|
|
20666
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
20471
20667
|
const payload = {};
|
|
20472
20668
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20473
20669
|
const apiHeaders = {
|
|
@@ -20475,13 +20671,32 @@
|
|
|
20475
20671
|
};
|
|
20476
20672
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
20477
20673
|
}
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20674
|
+
updateLabels(paramsOrFirst) {
|
|
20675
|
+
let params;
|
|
20676
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20677
|
+
params = (paramsOrFirst || {});
|
|
20678
|
+
}
|
|
20679
|
+
else {
|
|
20680
|
+
params = {
|
|
20681
|
+
labels: paramsOrFirst
|
|
20682
|
+
};
|
|
20683
|
+
}
|
|
20684
|
+
const labels = params.labels;
|
|
20685
|
+
if (typeof labels === 'undefined') {
|
|
20686
|
+
throw new AppwriteException('Missing required parameter: "labels"');
|
|
20687
|
+
}
|
|
20688
|
+
const apiPath = '/project/labels';
|
|
20689
|
+
const payload = {};
|
|
20690
|
+
if (typeof labels !== 'undefined') {
|
|
20691
|
+
payload['labels'] = labels;
|
|
20692
|
+
}
|
|
20693
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20694
|
+
const apiHeaders = {
|
|
20695
|
+
'content-type': 'application/json',
|
|
20696
|
+
};
|
|
20697
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20483
20698
|
}
|
|
20484
|
-
|
|
20699
|
+
listPlatforms(paramsOrFirst, ...rest) {
|
|
20485
20700
|
let params;
|
|
20486
20701
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20487
20702
|
params = (paramsOrFirst || {});
|
|
@@ -20489,21 +20704,16 @@
|
|
|
20489
20704
|
else {
|
|
20490
20705
|
params = {
|
|
20491
20706
|
queries: paramsOrFirst,
|
|
20492
|
-
|
|
20493
|
-
total: rest[1]
|
|
20707
|
+
total: rest[0]
|
|
20494
20708
|
};
|
|
20495
20709
|
}
|
|
20496
20710
|
const queries = params.queries;
|
|
20497
|
-
const search = params.search;
|
|
20498
20711
|
const total = params.total;
|
|
20499
|
-
const apiPath = '/
|
|
20712
|
+
const apiPath = '/project/platforms';
|
|
20500
20713
|
const payload = {};
|
|
20501
20714
|
if (typeof queries !== 'undefined') {
|
|
20502
20715
|
payload['queries'] = queries;
|
|
20503
20716
|
}
|
|
20504
|
-
if (typeof search !== 'undefined') {
|
|
20505
|
-
payload['search'] = search;
|
|
20506
|
-
}
|
|
20507
20717
|
if (typeof total !== 'undefined') {
|
|
20508
20718
|
payload['total'] = total;
|
|
20509
20719
|
}
|
|
@@ -20511,90 +20721,40 @@
|
|
|
20511
20721
|
const apiHeaders = {};
|
|
20512
20722
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
20513
20723
|
}
|
|
20514
|
-
|
|
20724
|
+
createAndroidPlatform(paramsOrFirst, ...rest) {
|
|
20515
20725
|
let params;
|
|
20516
20726
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20517
20727
|
params = (paramsOrFirst || {});
|
|
20518
20728
|
}
|
|
20519
20729
|
else {
|
|
20520
20730
|
params = {
|
|
20521
|
-
|
|
20731
|
+
platformId: paramsOrFirst,
|
|
20522
20732
|
name: rest[0],
|
|
20523
|
-
|
|
20524
|
-
region: rest[2],
|
|
20525
|
-
description: rest[3],
|
|
20526
|
-
logo: rest[4],
|
|
20527
|
-
url: rest[5],
|
|
20528
|
-
legalName: rest[6],
|
|
20529
|
-
legalCountry: rest[7],
|
|
20530
|
-
legalState: rest[8],
|
|
20531
|
-
legalCity: rest[9],
|
|
20532
|
-
legalAddress: rest[10],
|
|
20533
|
-
legalTaxId: rest[11]
|
|
20733
|
+
applicationId: rest[1]
|
|
20534
20734
|
};
|
|
20535
20735
|
}
|
|
20536
|
-
const
|
|
20736
|
+
const platformId = params.platformId;
|
|
20537
20737
|
const name = params.name;
|
|
20538
|
-
const
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
const logo = params.logo;
|
|
20542
|
-
const url = params.url;
|
|
20543
|
-
const legalName = params.legalName;
|
|
20544
|
-
const legalCountry = params.legalCountry;
|
|
20545
|
-
const legalState = params.legalState;
|
|
20546
|
-
const legalCity = params.legalCity;
|
|
20547
|
-
const legalAddress = params.legalAddress;
|
|
20548
|
-
const legalTaxId = params.legalTaxId;
|
|
20549
|
-
if (typeof projectId === 'undefined') {
|
|
20550
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
20738
|
+
const applicationId = params.applicationId;
|
|
20739
|
+
if (typeof platformId === 'undefined') {
|
|
20740
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20551
20741
|
}
|
|
20552
20742
|
if (typeof name === 'undefined') {
|
|
20553
20743
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
20554
20744
|
}
|
|
20555
|
-
if (typeof
|
|
20556
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20745
|
+
if (typeof applicationId === 'undefined') {
|
|
20746
|
+
throw new AppwriteException('Missing required parameter: "applicationId"');
|
|
20557
20747
|
}
|
|
20558
|
-
const apiPath = '/
|
|
20748
|
+
const apiPath = '/project/platforms/android';
|
|
20559
20749
|
const payload = {};
|
|
20560
|
-
if (typeof
|
|
20561
|
-
payload['
|
|
20750
|
+
if (typeof platformId !== 'undefined') {
|
|
20751
|
+
payload['platformId'] = platformId;
|
|
20562
20752
|
}
|
|
20563
20753
|
if (typeof name !== 'undefined') {
|
|
20564
20754
|
payload['name'] = name;
|
|
20565
20755
|
}
|
|
20566
|
-
if (typeof
|
|
20567
|
-
payload['
|
|
20568
|
-
}
|
|
20569
|
-
if (typeof region !== 'undefined') {
|
|
20570
|
-
payload['region'] = region;
|
|
20571
|
-
}
|
|
20572
|
-
if (typeof description !== 'undefined') {
|
|
20573
|
-
payload['description'] = description;
|
|
20574
|
-
}
|
|
20575
|
-
if (typeof logo !== 'undefined') {
|
|
20576
|
-
payload['logo'] = logo;
|
|
20577
|
-
}
|
|
20578
|
-
if (typeof url !== 'undefined') {
|
|
20579
|
-
payload['url'] = url;
|
|
20580
|
-
}
|
|
20581
|
-
if (typeof legalName !== 'undefined') {
|
|
20582
|
-
payload['legalName'] = legalName;
|
|
20583
|
-
}
|
|
20584
|
-
if (typeof legalCountry !== 'undefined') {
|
|
20585
|
-
payload['legalCountry'] = legalCountry;
|
|
20586
|
-
}
|
|
20587
|
-
if (typeof legalState !== 'undefined') {
|
|
20588
|
-
payload['legalState'] = legalState;
|
|
20589
|
-
}
|
|
20590
|
-
if (typeof legalCity !== 'undefined') {
|
|
20591
|
-
payload['legalCity'] = legalCity;
|
|
20592
|
-
}
|
|
20593
|
-
if (typeof legalAddress !== 'undefined') {
|
|
20594
|
-
payload['legalAddress'] = legalAddress;
|
|
20595
|
-
}
|
|
20596
|
-
if (typeof legalTaxId !== 'undefined') {
|
|
20597
|
-
payload['legalTaxId'] = legalTaxId;
|
|
20756
|
+
if (typeof applicationId !== 'undefined') {
|
|
20757
|
+
payload['applicationId'] = applicationId;
|
|
20598
20758
|
}
|
|
20599
20759
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20600
20760
|
const apiHeaders = {
|
|
@@ -20602,418 +20762,425 @@
|
|
|
20602
20762
|
};
|
|
20603
20763
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
20604
20764
|
}
|
|
20605
|
-
|
|
20765
|
+
updateAndroidPlatform(paramsOrFirst, ...rest) {
|
|
20606
20766
|
let params;
|
|
20607
20767
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20608
20768
|
params = (paramsOrFirst || {});
|
|
20609
20769
|
}
|
|
20610
20770
|
else {
|
|
20611
20771
|
params = {
|
|
20612
|
-
|
|
20772
|
+
platformId: paramsOrFirst,
|
|
20773
|
+
name: rest[0],
|
|
20774
|
+
applicationId: rest[1]
|
|
20613
20775
|
};
|
|
20614
20776
|
}
|
|
20615
|
-
const
|
|
20616
|
-
|
|
20617
|
-
|
|
20777
|
+
const platformId = params.platformId;
|
|
20778
|
+
const name = params.name;
|
|
20779
|
+
const applicationId = params.applicationId;
|
|
20780
|
+
if (typeof platformId === 'undefined') {
|
|
20781
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20618
20782
|
}
|
|
20619
|
-
|
|
20783
|
+
if (typeof name === 'undefined') {
|
|
20784
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20785
|
+
}
|
|
20786
|
+
if (typeof applicationId === 'undefined') {
|
|
20787
|
+
throw new AppwriteException('Missing required parameter: "applicationId"');
|
|
20788
|
+
}
|
|
20789
|
+
const apiPath = '/project/platforms/android/{platformId}'.replace('{platformId}', platformId);
|
|
20620
20790
|
const payload = {};
|
|
20791
|
+
if (typeof name !== 'undefined') {
|
|
20792
|
+
payload['name'] = name;
|
|
20793
|
+
}
|
|
20794
|
+
if (typeof applicationId !== 'undefined') {
|
|
20795
|
+
payload['applicationId'] = applicationId;
|
|
20796
|
+
}
|
|
20621
20797
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20622
|
-
const apiHeaders = {
|
|
20623
|
-
|
|
20798
|
+
const apiHeaders = {
|
|
20799
|
+
'content-type': 'application/json',
|
|
20800
|
+
};
|
|
20801
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20624
20802
|
}
|
|
20625
|
-
|
|
20803
|
+
createApplePlatform(paramsOrFirst, ...rest) {
|
|
20626
20804
|
let params;
|
|
20627
20805
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20628
20806
|
params = (paramsOrFirst || {});
|
|
20629
20807
|
}
|
|
20630
20808
|
else {
|
|
20631
20809
|
params = {
|
|
20632
|
-
|
|
20810
|
+
platformId: paramsOrFirst,
|
|
20633
20811
|
name: rest[0],
|
|
20634
|
-
|
|
20635
|
-
logo: rest[2],
|
|
20636
|
-
url: rest[3],
|
|
20637
|
-
legalName: rest[4],
|
|
20638
|
-
legalCountry: rest[5],
|
|
20639
|
-
legalState: rest[6],
|
|
20640
|
-
legalCity: rest[7],
|
|
20641
|
-
legalAddress: rest[8],
|
|
20642
|
-
legalTaxId: rest[9]
|
|
20812
|
+
bundleIdentifier: rest[1]
|
|
20643
20813
|
};
|
|
20644
20814
|
}
|
|
20645
|
-
const
|
|
20815
|
+
const platformId = params.platformId;
|
|
20646
20816
|
const name = params.name;
|
|
20647
|
-
const
|
|
20648
|
-
|
|
20649
|
-
|
|
20650
|
-
const legalName = params.legalName;
|
|
20651
|
-
const legalCountry = params.legalCountry;
|
|
20652
|
-
const legalState = params.legalState;
|
|
20653
|
-
const legalCity = params.legalCity;
|
|
20654
|
-
const legalAddress = params.legalAddress;
|
|
20655
|
-
const legalTaxId = params.legalTaxId;
|
|
20656
|
-
if (typeof projectId === 'undefined') {
|
|
20657
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
20817
|
+
const bundleIdentifier = params.bundleIdentifier;
|
|
20818
|
+
if (typeof platformId === 'undefined') {
|
|
20819
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20658
20820
|
}
|
|
20659
20821
|
if (typeof name === 'undefined') {
|
|
20660
20822
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
20661
20823
|
}
|
|
20662
|
-
|
|
20824
|
+
if (typeof bundleIdentifier === 'undefined') {
|
|
20825
|
+
throw new AppwriteException('Missing required parameter: "bundleIdentifier"');
|
|
20826
|
+
}
|
|
20827
|
+
const apiPath = '/project/platforms/apple';
|
|
20663
20828
|
const payload = {};
|
|
20829
|
+
if (typeof platformId !== 'undefined') {
|
|
20830
|
+
payload['platformId'] = platformId;
|
|
20831
|
+
}
|
|
20664
20832
|
if (typeof name !== 'undefined') {
|
|
20665
20833
|
payload['name'] = name;
|
|
20666
20834
|
}
|
|
20667
|
-
if (typeof
|
|
20668
|
-
payload['
|
|
20669
|
-
}
|
|
20670
|
-
if (typeof logo !== 'undefined') {
|
|
20671
|
-
payload['logo'] = logo;
|
|
20672
|
-
}
|
|
20673
|
-
if (typeof url !== 'undefined') {
|
|
20674
|
-
payload['url'] = url;
|
|
20675
|
-
}
|
|
20676
|
-
if (typeof legalName !== 'undefined') {
|
|
20677
|
-
payload['legalName'] = legalName;
|
|
20678
|
-
}
|
|
20679
|
-
if (typeof legalCountry !== 'undefined') {
|
|
20680
|
-
payload['legalCountry'] = legalCountry;
|
|
20681
|
-
}
|
|
20682
|
-
if (typeof legalState !== 'undefined') {
|
|
20683
|
-
payload['legalState'] = legalState;
|
|
20684
|
-
}
|
|
20685
|
-
if (typeof legalCity !== 'undefined') {
|
|
20686
|
-
payload['legalCity'] = legalCity;
|
|
20687
|
-
}
|
|
20688
|
-
if (typeof legalAddress !== 'undefined') {
|
|
20689
|
-
payload['legalAddress'] = legalAddress;
|
|
20690
|
-
}
|
|
20691
|
-
if (typeof legalTaxId !== 'undefined') {
|
|
20692
|
-
payload['legalTaxId'] = legalTaxId;
|
|
20835
|
+
if (typeof bundleIdentifier !== 'undefined') {
|
|
20836
|
+
payload['bundleIdentifier'] = bundleIdentifier;
|
|
20693
20837
|
}
|
|
20694
20838
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20695
20839
|
const apiHeaders = {
|
|
20696
20840
|
'content-type': 'application/json',
|
|
20697
20841
|
};
|
|
20698
|
-
return this.client.call('
|
|
20842
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
20699
20843
|
}
|
|
20700
|
-
|
|
20844
|
+
updateApplePlatform(paramsOrFirst, ...rest) {
|
|
20701
20845
|
let params;
|
|
20702
20846
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20703
20847
|
params = (paramsOrFirst || {});
|
|
20704
20848
|
}
|
|
20705
20849
|
else {
|
|
20706
20850
|
params = {
|
|
20707
|
-
|
|
20851
|
+
platformId: paramsOrFirst,
|
|
20852
|
+
name: rest[0],
|
|
20853
|
+
bundleIdentifier: rest[1]
|
|
20708
20854
|
};
|
|
20709
20855
|
}
|
|
20710
|
-
const
|
|
20711
|
-
|
|
20712
|
-
|
|
20856
|
+
const platformId = params.platformId;
|
|
20857
|
+
const name = params.name;
|
|
20858
|
+
const bundleIdentifier = params.bundleIdentifier;
|
|
20859
|
+
if (typeof platformId === 'undefined') {
|
|
20860
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20713
20861
|
}
|
|
20714
|
-
|
|
20862
|
+
if (typeof name === 'undefined') {
|
|
20863
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20864
|
+
}
|
|
20865
|
+
if (typeof bundleIdentifier === 'undefined') {
|
|
20866
|
+
throw new AppwriteException('Missing required parameter: "bundleIdentifier"');
|
|
20867
|
+
}
|
|
20868
|
+
const apiPath = '/project/platforms/apple/{platformId}'.replace('{platformId}', platformId);
|
|
20715
20869
|
const payload = {};
|
|
20870
|
+
if (typeof name !== 'undefined') {
|
|
20871
|
+
payload['name'] = name;
|
|
20872
|
+
}
|
|
20873
|
+
if (typeof bundleIdentifier !== 'undefined') {
|
|
20874
|
+
payload['bundleIdentifier'] = bundleIdentifier;
|
|
20875
|
+
}
|
|
20716
20876
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20717
20877
|
const apiHeaders = {
|
|
20718
20878
|
'content-type': 'application/json',
|
|
20719
20879
|
};
|
|
20720
|
-
return this.client.call('
|
|
20880
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20721
20881
|
}
|
|
20722
|
-
|
|
20882
|
+
createLinuxPlatform(paramsOrFirst, ...rest) {
|
|
20723
20883
|
let params;
|
|
20724
20884
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20725
20885
|
params = (paramsOrFirst || {});
|
|
20726
20886
|
}
|
|
20727
20887
|
else {
|
|
20728
20888
|
params = {
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20889
|
+
platformId: paramsOrFirst,
|
|
20890
|
+
name: rest[0],
|
|
20891
|
+
packageName: rest[1]
|
|
20732
20892
|
};
|
|
20733
20893
|
}
|
|
20734
|
-
const
|
|
20735
|
-
const
|
|
20736
|
-
const
|
|
20737
|
-
if (typeof
|
|
20738
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20894
|
+
const platformId = params.platformId;
|
|
20895
|
+
const name = params.name;
|
|
20896
|
+
const packageName = params.packageName;
|
|
20897
|
+
if (typeof platformId === 'undefined') {
|
|
20898
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20739
20899
|
}
|
|
20740
|
-
if (typeof
|
|
20741
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20900
|
+
if (typeof name === 'undefined') {
|
|
20901
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20742
20902
|
}
|
|
20743
|
-
if (typeof
|
|
20744
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20903
|
+
if (typeof packageName === 'undefined') {
|
|
20904
|
+
throw new AppwriteException('Missing required parameter: "packageName"');
|
|
20745
20905
|
}
|
|
20746
|
-
const apiPath = '/
|
|
20906
|
+
const apiPath = '/project/platforms/linux';
|
|
20747
20907
|
const payload = {};
|
|
20748
|
-
if (typeof
|
|
20749
|
-
payload['
|
|
20908
|
+
if (typeof platformId !== 'undefined') {
|
|
20909
|
+
payload['platformId'] = platformId;
|
|
20750
20910
|
}
|
|
20751
|
-
if (typeof
|
|
20752
|
-
payload['
|
|
20911
|
+
if (typeof name !== 'undefined') {
|
|
20912
|
+
payload['name'] = name;
|
|
20913
|
+
}
|
|
20914
|
+
if (typeof packageName !== 'undefined') {
|
|
20915
|
+
payload['packageName'] = packageName;
|
|
20753
20916
|
}
|
|
20754
20917
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20755
20918
|
const apiHeaders = {
|
|
20756
20919
|
'content-type': 'application/json',
|
|
20757
20920
|
};
|
|
20758
|
-
return this.client.call('
|
|
20921
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
20759
20922
|
}
|
|
20760
|
-
|
|
20923
|
+
updateLinuxPlatform(paramsOrFirst, ...rest) {
|
|
20761
20924
|
let params;
|
|
20762
20925
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20763
20926
|
params = (paramsOrFirst || {});
|
|
20764
20927
|
}
|
|
20765
20928
|
else {
|
|
20766
20929
|
params = {
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
20930
|
+
platformId: paramsOrFirst,
|
|
20931
|
+
name: rest[0],
|
|
20932
|
+
packageName: rest[1]
|
|
20770
20933
|
};
|
|
20771
20934
|
}
|
|
20772
|
-
const
|
|
20773
|
-
const
|
|
20774
|
-
const
|
|
20775
|
-
if (typeof
|
|
20776
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20935
|
+
const platformId = params.platformId;
|
|
20936
|
+
const name = params.name;
|
|
20937
|
+
const packageName = params.packageName;
|
|
20938
|
+
if (typeof platformId === 'undefined') {
|
|
20939
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20777
20940
|
}
|
|
20778
|
-
if (typeof
|
|
20779
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20941
|
+
if (typeof name === 'undefined') {
|
|
20942
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20780
20943
|
}
|
|
20781
|
-
if (typeof
|
|
20782
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20944
|
+
if (typeof packageName === 'undefined') {
|
|
20945
|
+
throw new AppwriteException('Missing required parameter: "packageName"');
|
|
20783
20946
|
}
|
|
20784
|
-
const apiPath = '/
|
|
20947
|
+
const apiPath = '/project/platforms/linux/{platformId}'.replace('{platformId}', platformId);
|
|
20785
20948
|
const payload = {};
|
|
20786
|
-
if (typeof
|
|
20787
|
-
payload['
|
|
20949
|
+
if (typeof name !== 'undefined') {
|
|
20950
|
+
payload['name'] = name;
|
|
20788
20951
|
}
|
|
20789
|
-
if (typeof
|
|
20790
|
-
payload['
|
|
20952
|
+
if (typeof packageName !== 'undefined') {
|
|
20953
|
+
payload['packageName'] = packageName;
|
|
20791
20954
|
}
|
|
20792
20955
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20793
20956
|
const apiHeaders = {
|
|
20794
20957
|
'content-type': 'application/json',
|
|
20795
20958
|
};
|
|
20796
|
-
return this.client.call('
|
|
20959
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20797
20960
|
}
|
|
20798
|
-
|
|
20961
|
+
createWebPlatform(paramsOrFirst, ...rest) {
|
|
20799
20962
|
let params;
|
|
20800
20963
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20801
20964
|
params = (paramsOrFirst || {});
|
|
20802
20965
|
}
|
|
20803
20966
|
else {
|
|
20804
20967
|
params = {
|
|
20805
|
-
|
|
20806
|
-
|
|
20968
|
+
platformId: paramsOrFirst,
|
|
20969
|
+
name: rest[0],
|
|
20970
|
+
hostname: rest[1]
|
|
20807
20971
|
};
|
|
20808
20972
|
}
|
|
20809
|
-
const
|
|
20810
|
-
const
|
|
20811
|
-
|
|
20812
|
-
|
|
20973
|
+
const platformId = params.platformId;
|
|
20974
|
+
const name = params.name;
|
|
20975
|
+
const hostname = params.hostname;
|
|
20976
|
+
if (typeof platformId === 'undefined') {
|
|
20977
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20813
20978
|
}
|
|
20814
|
-
if (typeof
|
|
20815
|
-
throw new AppwriteException('Missing required parameter: "
|
|
20979
|
+
if (typeof name === 'undefined') {
|
|
20980
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20981
|
+
}
|
|
20982
|
+
if (typeof hostname === 'undefined') {
|
|
20983
|
+
throw new AppwriteException('Missing required parameter: "hostname"');
|
|
20816
20984
|
}
|
|
20817
|
-
const apiPath = '/
|
|
20985
|
+
const apiPath = '/project/platforms/web';
|
|
20818
20986
|
const payload = {};
|
|
20819
|
-
if (typeof
|
|
20820
|
-
payload['
|
|
20987
|
+
if (typeof platformId !== 'undefined') {
|
|
20988
|
+
payload['platformId'] = platformId;
|
|
20989
|
+
}
|
|
20990
|
+
if (typeof name !== 'undefined') {
|
|
20991
|
+
payload['name'] = name;
|
|
20992
|
+
}
|
|
20993
|
+
if (typeof hostname !== 'undefined') {
|
|
20994
|
+
payload['hostname'] = hostname;
|
|
20821
20995
|
}
|
|
20822
20996
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20823
20997
|
const apiHeaders = {
|
|
20824
20998
|
'content-type': 'application/json',
|
|
20825
20999
|
};
|
|
20826
|
-
return this.client.call('
|
|
21000
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
20827
21001
|
}
|
|
20828
|
-
|
|
21002
|
+
updateWebPlatform(paramsOrFirst, ...rest) {
|
|
20829
21003
|
let params;
|
|
20830
21004
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20831
21005
|
params = (paramsOrFirst || {});
|
|
20832
21006
|
}
|
|
20833
21007
|
else {
|
|
20834
21008
|
params = {
|
|
20835
|
-
|
|
20836
|
-
|
|
21009
|
+
platformId: paramsOrFirst,
|
|
21010
|
+
name: rest[0],
|
|
21011
|
+
hostname: rest[1]
|
|
20837
21012
|
};
|
|
20838
21013
|
}
|
|
20839
|
-
const
|
|
20840
|
-
const
|
|
20841
|
-
|
|
20842
|
-
|
|
21014
|
+
const platformId = params.platformId;
|
|
21015
|
+
const name = params.name;
|
|
21016
|
+
const hostname = params.hostname;
|
|
21017
|
+
if (typeof platformId === 'undefined') {
|
|
21018
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20843
21019
|
}
|
|
20844
|
-
if (typeof
|
|
20845
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21020
|
+
if (typeof name === 'undefined') {
|
|
21021
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20846
21022
|
}
|
|
20847
|
-
|
|
21023
|
+
if (typeof hostname === 'undefined') {
|
|
21024
|
+
throw new AppwriteException('Missing required parameter: "hostname"');
|
|
21025
|
+
}
|
|
21026
|
+
const apiPath = '/project/platforms/web/{platformId}'.replace('{platformId}', platformId);
|
|
20848
21027
|
const payload = {};
|
|
20849
|
-
if (typeof
|
|
20850
|
-
payload['
|
|
21028
|
+
if (typeof name !== 'undefined') {
|
|
21029
|
+
payload['name'] = name;
|
|
21030
|
+
}
|
|
21031
|
+
if (typeof hostname !== 'undefined') {
|
|
21032
|
+
payload['hostname'] = hostname;
|
|
20851
21033
|
}
|
|
20852
21034
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20853
21035
|
const apiHeaders = {
|
|
20854
21036
|
'content-type': 'application/json',
|
|
20855
21037
|
};
|
|
20856
|
-
return this.client.call('
|
|
21038
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20857
21039
|
}
|
|
20858
|
-
|
|
21040
|
+
createWindowsPlatform(paramsOrFirst, ...rest) {
|
|
20859
21041
|
let params;
|
|
20860
21042
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20861
21043
|
params = (paramsOrFirst || {});
|
|
20862
21044
|
}
|
|
20863
21045
|
else {
|
|
20864
21046
|
params = {
|
|
20865
|
-
|
|
20866
|
-
|
|
21047
|
+
platformId: paramsOrFirst,
|
|
21048
|
+
name: rest[0],
|
|
21049
|
+
packageIdentifierName: rest[1]
|
|
20867
21050
|
};
|
|
20868
21051
|
}
|
|
20869
|
-
const
|
|
20870
|
-
const
|
|
20871
|
-
|
|
20872
|
-
|
|
21052
|
+
const platformId = params.platformId;
|
|
21053
|
+
const name = params.name;
|
|
21054
|
+
const packageIdentifierName = params.packageIdentifierName;
|
|
21055
|
+
if (typeof platformId === 'undefined') {
|
|
21056
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20873
21057
|
}
|
|
20874
|
-
if (typeof
|
|
20875
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21058
|
+
if (typeof name === 'undefined') {
|
|
21059
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20876
21060
|
}
|
|
20877
|
-
|
|
21061
|
+
if (typeof packageIdentifierName === 'undefined') {
|
|
21062
|
+
throw new AppwriteException('Missing required parameter: "packageIdentifierName"');
|
|
21063
|
+
}
|
|
21064
|
+
const apiPath = '/project/platforms/windows';
|
|
20878
21065
|
const payload = {};
|
|
20879
|
-
if (typeof
|
|
20880
|
-
payload['
|
|
21066
|
+
if (typeof platformId !== 'undefined') {
|
|
21067
|
+
payload['platformId'] = platformId;
|
|
21068
|
+
}
|
|
21069
|
+
if (typeof name !== 'undefined') {
|
|
21070
|
+
payload['name'] = name;
|
|
21071
|
+
}
|
|
21072
|
+
if (typeof packageIdentifierName !== 'undefined') {
|
|
21073
|
+
payload['packageIdentifierName'] = packageIdentifierName;
|
|
20881
21074
|
}
|
|
20882
21075
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20883
21076
|
const apiHeaders = {
|
|
20884
21077
|
'content-type': 'application/json',
|
|
20885
21078
|
};
|
|
20886
|
-
return this.client.call('
|
|
21079
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
20887
21080
|
}
|
|
20888
|
-
|
|
21081
|
+
updateWindowsPlatform(paramsOrFirst, ...rest) {
|
|
20889
21082
|
let params;
|
|
20890
21083
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20891
21084
|
params = (paramsOrFirst || {});
|
|
20892
21085
|
}
|
|
20893
21086
|
else {
|
|
20894
21087
|
params = {
|
|
20895
|
-
|
|
20896
|
-
|
|
21088
|
+
platformId: paramsOrFirst,
|
|
21089
|
+
name: rest[0],
|
|
21090
|
+
packageIdentifierName: rest[1]
|
|
20897
21091
|
};
|
|
20898
21092
|
}
|
|
20899
|
-
const
|
|
20900
|
-
const
|
|
20901
|
-
|
|
20902
|
-
|
|
21093
|
+
const platformId = params.platformId;
|
|
21094
|
+
const name = params.name;
|
|
21095
|
+
const packageIdentifierName = params.packageIdentifierName;
|
|
21096
|
+
if (typeof platformId === 'undefined') {
|
|
21097
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20903
21098
|
}
|
|
20904
|
-
if (typeof
|
|
20905
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21099
|
+
if (typeof name === 'undefined') {
|
|
21100
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
20906
21101
|
}
|
|
20907
|
-
|
|
21102
|
+
if (typeof packageIdentifierName === 'undefined') {
|
|
21103
|
+
throw new AppwriteException('Missing required parameter: "packageIdentifierName"');
|
|
21104
|
+
}
|
|
21105
|
+
const apiPath = '/project/platforms/windows/{platformId}'.replace('{platformId}', platformId);
|
|
20908
21106
|
const payload = {};
|
|
20909
|
-
if (typeof
|
|
20910
|
-
payload['
|
|
21107
|
+
if (typeof name !== 'undefined') {
|
|
21108
|
+
payload['name'] = name;
|
|
21109
|
+
}
|
|
21110
|
+
if (typeof packageIdentifierName !== 'undefined') {
|
|
21111
|
+
payload['packageIdentifierName'] = packageIdentifierName;
|
|
20911
21112
|
}
|
|
20912
21113
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20913
21114
|
const apiHeaders = {
|
|
20914
21115
|
'content-type': 'application/json',
|
|
20915
21116
|
};
|
|
20916
|
-
return this.client.call('
|
|
21117
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
20917
21118
|
}
|
|
20918
|
-
|
|
21119
|
+
getPlatform(paramsOrFirst) {
|
|
20919
21120
|
let params;
|
|
20920
21121
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20921
21122
|
params = (paramsOrFirst || {});
|
|
20922
21123
|
}
|
|
20923
21124
|
else {
|
|
20924
21125
|
params = {
|
|
20925
|
-
|
|
20926
|
-
limit: rest[0]
|
|
21126
|
+
platformId: paramsOrFirst
|
|
20927
21127
|
};
|
|
20928
21128
|
}
|
|
20929
|
-
const
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
20933
|
-
}
|
|
20934
|
-
if (typeof limit === 'undefined') {
|
|
20935
|
-
throw new AppwriteException('Missing required parameter: "limit"');
|
|
21129
|
+
const platformId = params.platformId;
|
|
21130
|
+
if (typeof platformId === 'undefined') {
|
|
21131
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20936
21132
|
}
|
|
20937
|
-
const apiPath = '/
|
|
21133
|
+
const apiPath = '/project/platforms/{platformId}'.replace('{platformId}', platformId);
|
|
20938
21134
|
const payload = {};
|
|
20939
|
-
if (typeof limit !== 'undefined') {
|
|
20940
|
-
payload['limit'] = limit;
|
|
20941
|
-
}
|
|
20942
21135
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20943
|
-
const apiHeaders = {
|
|
20944
|
-
|
|
20945
|
-
};
|
|
20946
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21136
|
+
const apiHeaders = {};
|
|
21137
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20947
21138
|
}
|
|
20948
|
-
|
|
21139
|
+
deletePlatform(paramsOrFirst) {
|
|
20949
21140
|
let params;
|
|
20950
21141
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20951
21142
|
params = (paramsOrFirst || {});
|
|
20952
21143
|
}
|
|
20953
21144
|
else {
|
|
20954
21145
|
params = {
|
|
20955
|
-
|
|
20956
|
-
userName: rest[0],
|
|
20957
|
-
userEmail: rest[1],
|
|
20958
|
-
mfa: rest[2]
|
|
21146
|
+
platformId: paramsOrFirst
|
|
20959
21147
|
};
|
|
20960
21148
|
}
|
|
20961
|
-
const
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
const mfa = params.mfa;
|
|
20965
|
-
if (typeof projectId === 'undefined') {
|
|
20966
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
20967
|
-
}
|
|
20968
|
-
if (typeof userName === 'undefined') {
|
|
20969
|
-
throw new AppwriteException('Missing required parameter: "userName"');
|
|
20970
|
-
}
|
|
20971
|
-
if (typeof userEmail === 'undefined') {
|
|
20972
|
-
throw new AppwriteException('Missing required parameter: "userEmail"');
|
|
20973
|
-
}
|
|
20974
|
-
if (typeof mfa === 'undefined') {
|
|
20975
|
-
throw new AppwriteException('Missing required parameter: "mfa"');
|
|
21149
|
+
const platformId = params.platformId;
|
|
21150
|
+
if (typeof platformId === 'undefined') {
|
|
21151
|
+
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
20976
21152
|
}
|
|
20977
|
-
const apiPath = '/
|
|
21153
|
+
const apiPath = '/project/platforms/{platformId}'.replace('{platformId}', platformId);
|
|
20978
21154
|
const payload = {};
|
|
20979
|
-
if (typeof userName !== 'undefined') {
|
|
20980
|
-
payload['userName'] = userName;
|
|
20981
|
-
}
|
|
20982
|
-
if (typeof userEmail !== 'undefined') {
|
|
20983
|
-
payload['userEmail'] = userEmail;
|
|
20984
|
-
}
|
|
20985
|
-
if (typeof mfa !== 'undefined') {
|
|
20986
|
-
payload['mfa'] = mfa;
|
|
20987
|
-
}
|
|
20988
21155
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20989
21156
|
const apiHeaders = {
|
|
20990
21157
|
'content-type': 'application/json',
|
|
20991
21158
|
};
|
|
20992
|
-
return this.client.call('
|
|
21159
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
20993
21160
|
}
|
|
20994
|
-
|
|
21161
|
+
updateProtocolStatus(paramsOrFirst, ...rest) {
|
|
20995
21162
|
let params;
|
|
20996
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21163
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('protocolId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
20997
21164
|
params = (paramsOrFirst || {});
|
|
20998
21165
|
}
|
|
20999
21166
|
else {
|
|
21000
21167
|
params = {
|
|
21001
|
-
|
|
21002
|
-
|
|
21168
|
+
protocolId: paramsOrFirst,
|
|
21169
|
+
enabled: rest[0]
|
|
21003
21170
|
};
|
|
21004
21171
|
}
|
|
21005
|
-
const
|
|
21006
|
-
const
|
|
21007
|
-
if (typeof
|
|
21008
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21172
|
+
const protocolId = params.protocolId;
|
|
21173
|
+
const enabled = params.enabled;
|
|
21174
|
+
if (typeof protocolId === 'undefined') {
|
|
21175
|
+
throw new AppwriteException('Missing required parameter: "protocolId"');
|
|
21009
21176
|
}
|
|
21010
|
-
if (typeof
|
|
21011
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21177
|
+
if (typeof enabled === 'undefined') {
|
|
21178
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21012
21179
|
}
|
|
21013
|
-
const apiPath = '/
|
|
21180
|
+
const apiPath = '/project/protocols/{protocolId}/status'.replace('{protocolId}', protocolId);
|
|
21014
21181
|
const payload = {};
|
|
21015
|
-
if (typeof
|
|
21016
|
-
payload['
|
|
21182
|
+
if (typeof enabled !== 'undefined') {
|
|
21183
|
+
payload['enabled'] = enabled;
|
|
21017
21184
|
}
|
|
21018
21185
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21019
21186
|
const apiHeaders = {
|
|
@@ -21021,26 +21188,26 @@
|
|
|
21021
21188
|
};
|
|
21022
21189
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21023
21190
|
}
|
|
21024
|
-
|
|
21191
|
+
updateServiceStatus(paramsOrFirst, ...rest) {
|
|
21025
21192
|
let params;
|
|
21026
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21193
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('serviceId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
21027
21194
|
params = (paramsOrFirst || {});
|
|
21028
21195
|
}
|
|
21029
21196
|
else {
|
|
21030
21197
|
params = {
|
|
21031
|
-
|
|
21198
|
+
serviceId: paramsOrFirst,
|
|
21032
21199
|
enabled: rest[0]
|
|
21033
21200
|
};
|
|
21034
21201
|
}
|
|
21035
|
-
const
|
|
21202
|
+
const serviceId = params.serviceId;
|
|
21036
21203
|
const enabled = params.enabled;
|
|
21037
|
-
if (typeof
|
|
21038
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21204
|
+
if (typeof serviceId === 'undefined') {
|
|
21205
|
+
throw new AppwriteException('Missing required parameter: "serviceId"');
|
|
21039
21206
|
}
|
|
21040
21207
|
if (typeof enabled === 'undefined') {
|
|
21041
21208
|
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21042
21209
|
}
|
|
21043
|
-
const apiPath = '/
|
|
21210
|
+
const apiPath = '/project/services/{serviceId}/status'.replace('{serviceId}', serviceId);
|
|
21044
21211
|
const payload = {};
|
|
21045
21212
|
if (typeof enabled !== 'undefined') {
|
|
21046
21213
|
payload['enabled'] = enabled;
|
|
@@ -21051,67 +21218,229 @@
|
|
|
21051
21218
|
};
|
|
21052
21219
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21053
21220
|
}
|
|
21054
|
-
|
|
21221
|
+
getUsage(paramsOrFirst, ...rest) {
|
|
21055
21222
|
let params;
|
|
21056
21223
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21057
21224
|
params = (paramsOrFirst || {});
|
|
21058
21225
|
}
|
|
21059
21226
|
else {
|
|
21060
21227
|
params = {
|
|
21061
|
-
|
|
21062
|
-
|
|
21228
|
+
startDate: paramsOrFirst,
|
|
21229
|
+
endDate: rest[0],
|
|
21230
|
+
period: rest[1]
|
|
21063
21231
|
};
|
|
21064
21232
|
}
|
|
21065
|
-
const
|
|
21066
|
-
const
|
|
21067
|
-
|
|
21068
|
-
|
|
21233
|
+
const startDate = params.startDate;
|
|
21234
|
+
const endDate = params.endDate;
|
|
21235
|
+
const period = params.period;
|
|
21236
|
+
if (typeof startDate === 'undefined') {
|
|
21237
|
+
throw new AppwriteException('Missing required parameter: "startDate"');
|
|
21069
21238
|
}
|
|
21070
|
-
if (typeof
|
|
21071
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21239
|
+
if (typeof endDate === 'undefined') {
|
|
21240
|
+
throw new AppwriteException('Missing required parameter: "endDate"');
|
|
21072
21241
|
}
|
|
21073
|
-
const apiPath = '/
|
|
21242
|
+
const apiPath = '/project/usage';
|
|
21074
21243
|
const payload = {};
|
|
21075
|
-
if (typeof
|
|
21076
|
-
payload['
|
|
21244
|
+
if (typeof startDate !== 'undefined') {
|
|
21245
|
+
payload['startDate'] = startDate;
|
|
21246
|
+
}
|
|
21247
|
+
if (typeof endDate !== 'undefined') {
|
|
21248
|
+
payload['endDate'] = endDate;
|
|
21249
|
+
}
|
|
21250
|
+
if (typeof period !== 'undefined') {
|
|
21251
|
+
payload['period'] = period;
|
|
21252
|
+
}
|
|
21253
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21254
|
+
const apiHeaders = {};
|
|
21255
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21256
|
+
}
|
|
21257
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
21258
|
+
let params;
|
|
21259
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21260
|
+
params = (paramsOrFirst || {});
|
|
21261
|
+
}
|
|
21262
|
+
else {
|
|
21263
|
+
params = {
|
|
21264
|
+
queries: paramsOrFirst,
|
|
21265
|
+
total: rest[0]
|
|
21266
|
+
};
|
|
21267
|
+
}
|
|
21268
|
+
const queries = params.queries;
|
|
21269
|
+
const total = params.total;
|
|
21270
|
+
const apiPath = '/project/variables';
|
|
21271
|
+
const payload = {};
|
|
21272
|
+
if (typeof queries !== 'undefined') {
|
|
21273
|
+
payload['queries'] = queries;
|
|
21274
|
+
}
|
|
21275
|
+
if (typeof total !== 'undefined') {
|
|
21276
|
+
payload['total'] = total;
|
|
21277
|
+
}
|
|
21278
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21279
|
+
const apiHeaders = {};
|
|
21280
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21281
|
+
}
|
|
21282
|
+
createVariable(paramsOrFirst, ...rest) {
|
|
21283
|
+
let params;
|
|
21284
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21285
|
+
params = (paramsOrFirst || {});
|
|
21286
|
+
}
|
|
21287
|
+
else {
|
|
21288
|
+
params = {
|
|
21289
|
+
variableId: paramsOrFirst,
|
|
21290
|
+
key: rest[0],
|
|
21291
|
+
value: rest[1],
|
|
21292
|
+
secret: rest[2]
|
|
21293
|
+
};
|
|
21294
|
+
}
|
|
21295
|
+
const variableId = params.variableId;
|
|
21296
|
+
const key = params.key;
|
|
21297
|
+
const value = params.value;
|
|
21298
|
+
const secret = params.secret;
|
|
21299
|
+
if (typeof variableId === 'undefined') {
|
|
21300
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
21301
|
+
}
|
|
21302
|
+
if (typeof key === 'undefined') {
|
|
21303
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
21304
|
+
}
|
|
21305
|
+
if (typeof value === 'undefined') {
|
|
21306
|
+
throw new AppwriteException('Missing required parameter: "value"');
|
|
21307
|
+
}
|
|
21308
|
+
const apiPath = '/project/variables';
|
|
21309
|
+
const payload = {};
|
|
21310
|
+
if (typeof variableId !== 'undefined') {
|
|
21311
|
+
payload['variableId'] = variableId;
|
|
21312
|
+
}
|
|
21313
|
+
if (typeof key !== 'undefined') {
|
|
21314
|
+
payload['key'] = key;
|
|
21315
|
+
}
|
|
21316
|
+
if (typeof value !== 'undefined') {
|
|
21317
|
+
payload['value'] = value;
|
|
21318
|
+
}
|
|
21319
|
+
if (typeof secret !== 'undefined') {
|
|
21320
|
+
payload['secret'] = secret;
|
|
21077
21321
|
}
|
|
21078
21322
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21079
21323
|
const apiHeaders = {
|
|
21080
21324
|
'content-type': 'application/json',
|
|
21081
21325
|
};
|
|
21082
|
-
return this.client.call('
|
|
21326
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21083
21327
|
}
|
|
21084
|
-
|
|
21328
|
+
getVariable(paramsOrFirst) {
|
|
21085
21329
|
let params;
|
|
21086
21330
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21087
21331
|
params = (paramsOrFirst || {});
|
|
21088
21332
|
}
|
|
21089
21333
|
else {
|
|
21090
21334
|
params = {
|
|
21091
|
-
|
|
21092
|
-
enabled: rest[0]
|
|
21335
|
+
variableId: paramsOrFirst
|
|
21093
21336
|
};
|
|
21094
21337
|
}
|
|
21095
|
-
const
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21338
|
+
const variableId = params.variableId;
|
|
21339
|
+
if (typeof variableId === 'undefined') {
|
|
21340
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
21099
21341
|
}
|
|
21100
|
-
|
|
21101
|
-
|
|
21342
|
+
const apiPath = '/project/variables/{variableId}'.replace('{variableId}', variableId);
|
|
21343
|
+
const payload = {};
|
|
21344
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21345
|
+
const apiHeaders = {};
|
|
21346
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21347
|
+
}
|
|
21348
|
+
updateVariable(paramsOrFirst, ...rest) {
|
|
21349
|
+
let params;
|
|
21350
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21351
|
+
params = (paramsOrFirst || {});
|
|
21102
21352
|
}
|
|
21103
|
-
|
|
21353
|
+
else {
|
|
21354
|
+
params = {
|
|
21355
|
+
variableId: paramsOrFirst,
|
|
21356
|
+
key: rest[0],
|
|
21357
|
+
value: rest[1],
|
|
21358
|
+
secret: rest[2]
|
|
21359
|
+
};
|
|
21360
|
+
}
|
|
21361
|
+
const variableId = params.variableId;
|
|
21362
|
+
const key = params.key;
|
|
21363
|
+
const value = params.value;
|
|
21364
|
+
const secret = params.secret;
|
|
21365
|
+
if (typeof variableId === 'undefined') {
|
|
21366
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
21367
|
+
}
|
|
21368
|
+
const apiPath = '/project/variables/{variableId}'.replace('{variableId}', variableId);
|
|
21104
21369
|
const payload = {};
|
|
21105
|
-
if (typeof
|
|
21106
|
-
payload['
|
|
21370
|
+
if (typeof key !== 'undefined') {
|
|
21371
|
+
payload['key'] = key;
|
|
21372
|
+
}
|
|
21373
|
+
if (typeof value !== 'undefined') {
|
|
21374
|
+
payload['value'] = value;
|
|
21375
|
+
}
|
|
21376
|
+
if (typeof secret !== 'undefined') {
|
|
21377
|
+
payload['secret'] = secret;
|
|
21107
21378
|
}
|
|
21108
21379
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21109
21380
|
const apiHeaders = {
|
|
21110
21381
|
'content-type': 'application/json',
|
|
21111
21382
|
};
|
|
21112
|
-
return this.client.call('
|
|
21383
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
21113
21384
|
}
|
|
21114
|
-
|
|
21385
|
+
deleteVariable(paramsOrFirst) {
|
|
21386
|
+
let params;
|
|
21387
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21388
|
+
params = (paramsOrFirst || {});
|
|
21389
|
+
}
|
|
21390
|
+
else {
|
|
21391
|
+
params = {
|
|
21392
|
+
variableId: paramsOrFirst
|
|
21393
|
+
};
|
|
21394
|
+
}
|
|
21395
|
+
const variableId = params.variableId;
|
|
21396
|
+
if (typeof variableId === 'undefined') {
|
|
21397
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
21398
|
+
}
|
|
21399
|
+
const apiPath = '/project/variables/{variableId}'.replace('{variableId}', variableId);
|
|
21400
|
+
const payload = {};
|
|
21401
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21402
|
+
const apiHeaders = {
|
|
21403
|
+
'content-type': 'application/json',
|
|
21404
|
+
};
|
|
21405
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
21406
|
+
}
|
|
21407
|
+
}
|
|
21408
|
+
|
|
21409
|
+
class Projects {
|
|
21410
|
+
constructor(client) {
|
|
21411
|
+
this.client = client;
|
|
21412
|
+
}
|
|
21413
|
+
list(paramsOrFirst, ...rest) {
|
|
21414
|
+
let params;
|
|
21415
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21416
|
+
params = (paramsOrFirst || {});
|
|
21417
|
+
}
|
|
21418
|
+
else {
|
|
21419
|
+
params = {
|
|
21420
|
+
queries: paramsOrFirst,
|
|
21421
|
+
search: rest[0],
|
|
21422
|
+
total: rest[1]
|
|
21423
|
+
};
|
|
21424
|
+
}
|
|
21425
|
+
const queries = params.queries;
|
|
21426
|
+
const search = params.search;
|
|
21427
|
+
const total = params.total;
|
|
21428
|
+
const apiPath = '/projects';
|
|
21429
|
+
const payload = {};
|
|
21430
|
+
if (typeof queries !== 'undefined') {
|
|
21431
|
+
payload['queries'] = queries;
|
|
21432
|
+
}
|
|
21433
|
+
if (typeof search !== 'undefined') {
|
|
21434
|
+
payload['search'] = search;
|
|
21435
|
+
}
|
|
21436
|
+
if (typeof total !== 'undefined') {
|
|
21437
|
+
payload['total'] = total;
|
|
21438
|
+
}
|
|
21439
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21440
|
+
const apiHeaders = {};
|
|
21441
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21442
|
+
}
|
|
21443
|
+
create(paramsOrFirst, ...rest) {
|
|
21115
21444
|
let params;
|
|
21116
21445
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21117
21446
|
params = (paramsOrFirst || {});
|
|
@@ -21119,29 +21448,110 @@
|
|
|
21119
21448
|
else {
|
|
21120
21449
|
params = {
|
|
21121
21450
|
projectId: paramsOrFirst,
|
|
21122
|
-
|
|
21451
|
+
name: rest[0],
|
|
21452
|
+
teamId: rest[1],
|
|
21453
|
+
region: rest[2],
|
|
21454
|
+
description: rest[3],
|
|
21455
|
+
logo: rest[4],
|
|
21456
|
+
url: rest[5],
|
|
21457
|
+
legalName: rest[6],
|
|
21458
|
+
legalCountry: rest[7],
|
|
21459
|
+
legalState: rest[8],
|
|
21460
|
+
legalCity: rest[9],
|
|
21461
|
+
legalAddress: rest[10],
|
|
21462
|
+
legalTaxId: rest[11]
|
|
21123
21463
|
};
|
|
21124
21464
|
}
|
|
21125
21465
|
const projectId = params.projectId;
|
|
21126
|
-
const
|
|
21466
|
+
const name = params.name;
|
|
21467
|
+
const teamId = params.teamId;
|
|
21468
|
+
const region = params.region;
|
|
21469
|
+
const description = params.description;
|
|
21470
|
+
const logo = params.logo;
|
|
21471
|
+
const url = params.url;
|
|
21472
|
+
const legalName = params.legalName;
|
|
21473
|
+
const legalCountry = params.legalCountry;
|
|
21474
|
+
const legalState = params.legalState;
|
|
21475
|
+
const legalCity = params.legalCity;
|
|
21476
|
+
const legalAddress = params.legalAddress;
|
|
21477
|
+
const legalTaxId = params.legalTaxId;
|
|
21127
21478
|
if (typeof projectId === 'undefined') {
|
|
21128
21479
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21129
21480
|
}
|
|
21130
|
-
if (typeof
|
|
21131
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21481
|
+
if (typeof name === 'undefined') {
|
|
21482
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
21132
21483
|
}
|
|
21133
|
-
|
|
21484
|
+
if (typeof teamId === 'undefined') {
|
|
21485
|
+
throw new AppwriteException('Missing required parameter: "teamId"');
|
|
21486
|
+
}
|
|
21487
|
+
const apiPath = '/projects';
|
|
21134
21488
|
const payload = {};
|
|
21135
|
-
if (typeof
|
|
21136
|
-
payload['
|
|
21489
|
+
if (typeof projectId !== 'undefined') {
|
|
21490
|
+
payload['projectId'] = projectId;
|
|
21491
|
+
}
|
|
21492
|
+
if (typeof name !== 'undefined') {
|
|
21493
|
+
payload['name'] = name;
|
|
21494
|
+
}
|
|
21495
|
+
if (typeof teamId !== 'undefined') {
|
|
21496
|
+
payload['teamId'] = teamId;
|
|
21497
|
+
}
|
|
21498
|
+
if (typeof region !== 'undefined') {
|
|
21499
|
+
payload['region'] = region;
|
|
21500
|
+
}
|
|
21501
|
+
if (typeof description !== 'undefined') {
|
|
21502
|
+
payload['description'] = description;
|
|
21503
|
+
}
|
|
21504
|
+
if (typeof logo !== 'undefined') {
|
|
21505
|
+
payload['logo'] = logo;
|
|
21506
|
+
}
|
|
21507
|
+
if (typeof url !== 'undefined') {
|
|
21508
|
+
payload['url'] = url;
|
|
21509
|
+
}
|
|
21510
|
+
if (typeof legalName !== 'undefined') {
|
|
21511
|
+
payload['legalName'] = legalName;
|
|
21512
|
+
}
|
|
21513
|
+
if (typeof legalCountry !== 'undefined') {
|
|
21514
|
+
payload['legalCountry'] = legalCountry;
|
|
21515
|
+
}
|
|
21516
|
+
if (typeof legalState !== 'undefined') {
|
|
21517
|
+
payload['legalState'] = legalState;
|
|
21518
|
+
}
|
|
21519
|
+
if (typeof legalCity !== 'undefined') {
|
|
21520
|
+
payload['legalCity'] = legalCity;
|
|
21521
|
+
}
|
|
21522
|
+
if (typeof legalAddress !== 'undefined') {
|
|
21523
|
+
payload['legalAddress'] = legalAddress;
|
|
21524
|
+
}
|
|
21525
|
+
if (typeof legalTaxId !== 'undefined') {
|
|
21526
|
+
payload['legalTaxId'] = legalTaxId;
|
|
21137
21527
|
}
|
|
21138
21528
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21139
21529
|
const apiHeaders = {
|
|
21140
21530
|
'content-type': 'application/json',
|
|
21141
21531
|
};
|
|
21142
|
-
return this.client.call('
|
|
21532
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21143
21533
|
}
|
|
21144
|
-
|
|
21534
|
+
get(paramsOrFirst) {
|
|
21535
|
+
let params;
|
|
21536
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21537
|
+
params = (paramsOrFirst || {});
|
|
21538
|
+
}
|
|
21539
|
+
else {
|
|
21540
|
+
params = {
|
|
21541
|
+
projectId: paramsOrFirst
|
|
21542
|
+
};
|
|
21543
|
+
}
|
|
21544
|
+
const projectId = params.projectId;
|
|
21545
|
+
if (typeof projectId === 'undefined') {
|
|
21546
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21547
|
+
}
|
|
21548
|
+
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
|
21549
|
+
const payload = {};
|
|
21550
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21551
|
+
const apiHeaders = {};
|
|
21552
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21553
|
+
}
|
|
21554
|
+
update(paramsOrFirst, ...rest) {
|
|
21145
21555
|
let params;
|
|
21146
21556
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21147
21557
|
params = (paramsOrFirst || {});
|
|
@@ -21149,21 +21559,66 @@
|
|
|
21149
21559
|
else {
|
|
21150
21560
|
params = {
|
|
21151
21561
|
projectId: paramsOrFirst,
|
|
21152
|
-
|
|
21562
|
+
name: rest[0],
|
|
21563
|
+
description: rest[1],
|
|
21564
|
+
logo: rest[2],
|
|
21565
|
+
url: rest[3],
|
|
21566
|
+
legalName: rest[4],
|
|
21567
|
+
legalCountry: rest[5],
|
|
21568
|
+
legalState: rest[6],
|
|
21569
|
+
legalCity: rest[7],
|
|
21570
|
+
legalAddress: rest[8],
|
|
21571
|
+
legalTaxId: rest[9]
|
|
21153
21572
|
};
|
|
21154
21573
|
}
|
|
21155
21574
|
const projectId = params.projectId;
|
|
21156
|
-
const
|
|
21575
|
+
const name = params.name;
|
|
21576
|
+
const description = params.description;
|
|
21577
|
+
const logo = params.logo;
|
|
21578
|
+
const url = params.url;
|
|
21579
|
+
const legalName = params.legalName;
|
|
21580
|
+
const legalCountry = params.legalCountry;
|
|
21581
|
+
const legalState = params.legalState;
|
|
21582
|
+
const legalCity = params.legalCity;
|
|
21583
|
+
const legalAddress = params.legalAddress;
|
|
21584
|
+
const legalTaxId = params.legalTaxId;
|
|
21157
21585
|
if (typeof projectId === 'undefined') {
|
|
21158
21586
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21159
21587
|
}
|
|
21160
|
-
if (typeof
|
|
21161
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21588
|
+
if (typeof name === 'undefined') {
|
|
21589
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
21162
21590
|
}
|
|
21163
|
-
const apiPath = '/projects/{projectId}
|
|
21591
|
+
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
|
21164
21592
|
const payload = {};
|
|
21165
|
-
if (typeof
|
|
21166
|
-
payload['
|
|
21593
|
+
if (typeof name !== 'undefined') {
|
|
21594
|
+
payload['name'] = name;
|
|
21595
|
+
}
|
|
21596
|
+
if (typeof description !== 'undefined') {
|
|
21597
|
+
payload['description'] = description;
|
|
21598
|
+
}
|
|
21599
|
+
if (typeof logo !== 'undefined') {
|
|
21600
|
+
payload['logo'] = logo;
|
|
21601
|
+
}
|
|
21602
|
+
if (typeof url !== 'undefined') {
|
|
21603
|
+
payload['url'] = url;
|
|
21604
|
+
}
|
|
21605
|
+
if (typeof legalName !== 'undefined') {
|
|
21606
|
+
payload['legalName'] = legalName;
|
|
21607
|
+
}
|
|
21608
|
+
if (typeof legalCountry !== 'undefined') {
|
|
21609
|
+
payload['legalCountry'] = legalCountry;
|
|
21610
|
+
}
|
|
21611
|
+
if (typeof legalState !== 'undefined') {
|
|
21612
|
+
payload['legalState'] = legalState;
|
|
21613
|
+
}
|
|
21614
|
+
if (typeof legalCity !== 'undefined') {
|
|
21615
|
+
payload['legalCity'] = legalCity;
|
|
21616
|
+
}
|
|
21617
|
+
if (typeof legalAddress !== 'undefined') {
|
|
21618
|
+
payload['legalAddress'] = legalAddress;
|
|
21619
|
+
}
|
|
21620
|
+
if (typeof legalTaxId !== 'undefined') {
|
|
21621
|
+
payload['legalTaxId'] = legalTaxId;
|
|
21167
21622
|
}
|
|
21168
21623
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21169
21624
|
const apiHeaders = {
|
|
@@ -21171,64 +21626,59 @@
|
|
|
21171
21626
|
};
|
|
21172
21627
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21173
21628
|
}
|
|
21174
|
-
|
|
21629
|
+
delete(paramsOrFirst) {
|
|
21175
21630
|
let params;
|
|
21176
21631
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21177
21632
|
params = (paramsOrFirst || {});
|
|
21178
21633
|
}
|
|
21179
21634
|
else {
|
|
21180
21635
|
params = {
|
|
21181
|
-
projectId: paramsOrFirst
|
|
21182
|
-
method: rest[0],
|
|
21183
|
-
status: rest[1]
|
|
21636
|
+
projectId: paramsOrFirst
|
|
21184
21637
|
};
|
|
21185
21638
|
}
|
|
21186
21639
|
const projectId = params.projectId;
|
|
21187
|
-
const method = params.method;
|
|
21188
|
-
const status = params.status;
|
|
21189
21640
|
if (typeof projectId === 'undefined') {
|
|
21190
21641
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21191
21642
|
}
|
|
21192
|
-
|
|
21193
|
-
throw new AppwriteException('Missing required parameter: "method"');
|
|
21194
|
-
}
|
|
21195
|
-
if (typeof status === 'undefined') {
|
|
21196
|
-
throw new AppwriteException('Missing required parameter: "status"');
|
|
21197
|
-
}
|
|
21198
|
-
const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
|
|
21643
|
+
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
|
21199
21644
|
const payload = {};
|
|
21200
|
-
if (typeof status !== 'undefined') {
|
|
21201
|
-
payload['status'] = status;
|
|
21202
|
-
}
|
|
21203
21645
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21204
21646
|
const apiHeaders = {
|
|
21205
21647
|
'content-type': 'application/json',
|
|
21206
21648
|
};
|
|
21207
|
-
return this.client.call('
|
|
21649
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
21208
21650
|
}
|
|
21209
|
-
|
|
21651
|
+
updateAuthDuration(paramsOrFirst, ...rest) {
|
|
21210
21652
|
let params;
|
|
21211
21653
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21212
21654
|
params = (paramsOrFirst || {});
|
|
21213
21655
|
}
|
|
21214
21656
|
else {
|
|
21215
21657
|
params = {
|
|
21216
|
-
projectId: paramsOrFirst
|
|
21658
|
+
projectId: paramsOrFirst,
|
|
21659
|
+
duration: rest[0]
|
|
21217
21660
|
};
|
|
21218
21661
|
}
|
|
21219
21662
|
const projectId = params.projectId;
|
|
21663
|
+
const duration = params.duration;
|
|
21220
21664
|
if (typeof projectId === 'undefined') {
|
|
21221
21665
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21222
21666
|
}
|
|
21223
|
-
|
|
21667
|
+
if (typeof duration === 'undefined') {
|
|
21668
|
+
throw new AppwriteException('Missing required parameter: "duration"');
|
|
21669
|
+
}
|
|
21670
|
+
const apiPath = '/projects/{projectId}/auth/duration'.replace('{projectId}', projectId);
|
|
21224
21671
|
const payload = {};
|
|
21672
|
+
if (typeof duration !== 'undefined') {
|
|
21673
|
+
payload['duration'] = duration;
|
|
21674
|
+
}
|
|
21225
21675
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21226
21676
|
const apiHeaders = {
|
|
21227
21677
|
'content-type': 'application/json',
|
|
21228
21678
|
};
|
|
21229
21679
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21230
21680
|
}
|
|
21231
|
-
|
|
21681
|
+
updateAuthLimit(paramsOrFirst, ...rest) {
|
|
21232
21682
|
let params;
|
|
21233
21683
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21234
21684
|
params = (paramsOrFirst || {});
|
|
@@ -21236,24 +21686,29 @@
|
|
|
21236
21686
|
else {
|
|
21237
21687
|
params = {
|
|
21238
21688
|
projectId: paramsOrFirst,
|
|
21239
|
-
|
|
21689
|
+
limit: rest[0]
|
|
21240
21690
|
};
|
|
21241
21691
|
}
|
|
21242
21692
|
const projectId = params.projectId;
|
|
21243
|
-
const
|
|
21693
|
+
const limit = params.limit;
|
|
21244
21694
|
if (typeof projectId === 'undefined') {
|
|
21245
21695
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21246
21696
|
}
|
|
21247
|
-
|
|
21697
|
+
if (typeof limit === 'undefined') {
|
|
21698
|
+
throw new AppwriteException('Missing required parameter: "limit"');
|
|
21699
|
+
}
|
|
21700
|
+
const apiPath = '/projects/{projectId}/auth/limit'.replace('{projectId}', projectId);
|
|
21248
21701
|
const payload = {};
|
|
21249
|
-
if (typeof
|
|
21250
|
-
payload['
|
|
21702
|
+
if (typeof limit !== 'undefined') {
|
|
21703
|
+
payload['limit'] = limit;
|
|
21251
21704
|
}
|
|
21252
21705
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21253
|
-
const apiHeaders = {
|
|
21254
|
-
|
|
21706
|
+
const apiHeaders = {
|
|
21707
|
+
'content-type': 'application/json',
|
|
21708
|
+
};
|
|
21709
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21255
21710
|
}
|
|
21256
|
-
|
|
21711
|
+
updateAuthSessionsLimit(paramsOrFirst, ...rest) {
|
|
21257
21712
|
let params;
|
|
21258
21713
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21259
21714
|
params = (paramsOrFirst || {});
|
|
@@ -21261,37 +21716,29 @@
|
|
|
21261
21716
|
else {
|
|
21262
21717
|
params = {
|
|
21263
21718
|
projectId: paramsOrFirst,
|
|
21264
|
-
|
|
21265
|
-
expire: rest[1]
|
|
21719
|
+
limit: rest[0]
|
|
21266
21720
|
};
|
|
21267
21721
|
}
|
|
21268
21722
|
const projectId = params.projectId;
|
|
21269
|
-
const
|
|
21270
|
-
const expire = params.expire;
|
|
21723
|
+
const limit = params.limit;
|
|
21271
21724
|
if (typeof projectId === 'undefined') {
|
|
21272
21725
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21273
21726
|
}
|
|
21274
|
-
if (typeof
|
|
21275
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21276
|
-
}
|
|
21277
|
-
if (typeof expire === 'undefined') {
|
|
21278
|
-
throw new AppwriteException('Missing required parameter: "expire"');
|
|
21279
|
-
}
|
|
21280
|
-
const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', projectId);
|
|
21281
|
-
const payload = {};
|
|
21282
|
-
if (typeof name !== 'undefined') {
|
|
21283
|
-
payload['name'] = name;
|
|
21727
|
+
if (typeof limit === 'undefined') {
|
|
21728
|
+
throw new AppwriteException('Missing required parameter: "limit"');
|
|
21284
21729
|
}
|
|
21285
|
-
|
|
21286
|
-
|
|
21730
|
+
const apiPath = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId);
|
|
21731
|
+
const payload = {};
|
|
21732
|
+
if (typeof limit !== 'undefined') {
|
|
21733
|
+
payload['limit'] = limit;
|
|
21287
21734
|
}
|
|
21288
21735
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21289
21736
|
const apiHeaders = {
|
|
21290
21737
|
'content-type': 'application/json',
|
|
21291
21738
|
};
|
|
21292
|
-
return this.client.call('
|
|
21739
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21293
21740
|
}
|
|
21294
|
-
|
|
21741
|
+
updateMembershipsPrivacy(paramsOrFirst, ...rest) {
|
|
21295
21742
|
let params;
|
|
21296
21743
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21297
21744
|
params = (paramsOrFirst || {});
|
|
@@ -21299,24 +21746,45 @@
|
|
|
21299
21746
|
else {
|
|
21300
21747
|
params = {
|
|
21301
21748
|
projectId: paramsOrFirst,
|
|
21302
|
-
|
|
21749
|
+
userName: rest[0],
|
|
21750
|
+
userEmail: rest[1],
|
|
21751
|
+
mfa: rest[2]
|
|
21303
21752
|
};
|
|
21304
21753
|
}
|
|
21305
21754
|
const projectId = params.projectId;
|
|
21306
|
-
const
|
|
21755
|
+
const userName = params.userName;
|
|
21756
|
+
const userEmail = params.userEmail;
|
|
21757
|
+
const mfa = params.mfa;
|
|
21307
21758
|
if (typeof projectId === 'undefined') {
|
|
21308
21759
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21309
21760
|
}
|
|
21310
|
-
if (typeof
|
|
21311
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21761
|
+
if (typeof userName === 'undefined') {
|
|
21762
|
+
throw new AppwriteException('Missing required parameter: "userName"');
|
|
21312
21763
|
}
|
|
21313
|
-
|
|
21764
|
+
if (typeof userEmail === 'undefined') {
|
|
21765
|
+
throw new AppwriteException('Missing required parameter: "userEmail"');
|
|
21766
|
+
}
|
|
21767
|
+
if (typeof mfa === 'undefined') {
|
|
21768
|
+
throw new AppwriteException('Missing required parameter: "mfa"');
|
|
21769
|
+
}
|
|
21770
|
+
const apiPath = '/projects/{projectId}/auth/memberships-privacy'.replace('{projectId}', projectId);
|
|
21314
21771
|
const payload = {};
|
|
21772
|
+
if (typeof userName !== 'undefined') {
|
|
21773
|
+
payload['userName'] = userName;
|
|
21774
|
+
}
|
|
21775
|
+
if (typeof userEmail !== 'undefined') {
|
|
21776
|
+
payload['userEmail'] = userEmail;
|
|
21777
|
+
}
|
|
21778
|
+
if (typeof mfa !== 'undefined') {
|
|
21779
|
+
payload['mfa'] = mfa;
|
|
21780
|
+
}
|
|
21315
21781
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21316
|
-
const apiHeaders = {
|
|
21317
|
-
|
|
21782
|
+
const apiHeaders = {
|
|
21783
|
+
'content-type': 'application/json',
|
|
21784
|
+
};
|
|
21785
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21318
21786
|
}
|
|
21319
|
-
|
|
21787
|
+
updateMockNumbers(paramsOrFirst, ...rest) {
|
|
21320
21788
|
let params;
|
|
21321
21789
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21322
21790
|
params = (paramsOrFirst || {});
|
|
@@ -21324,42 +21792,29 @@
|
|
|
21324
21792
|
else {
|
|
21325
21793
|
params = {
|
|
21326
21794
|
projectId: paramsOrFirst,
|
|
21327
|
-
|
|
21328
|
-
name: rest[1],
|
|
21329
|
-
expire: rest[2]
|
|
21795
|
+
numbers: rest[0]
|
|
21330
21796
|
};
|
|
21331
21797
|
}
|
|
21332
21798
|
const projectId = params.projectId;
|
|
21333
|
-
const
|
|
21334
|
-
const name = params.name;
|
|
21335
|
-
const expire = params.expire;
|
|
21799
|
+
const numbers = params.numbers;
|
|
21336
21800
|
if (typeof projectId === 'undefined') {
|
|
21337
21801
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21338
21802
|
}
|
|
21339
|
-
if (typeof
|
|
21340
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21341
|
-
}
|
|
21342
|
-
if (typeof name === 'undefined') {
|
|
21343
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
21344
|
-
}
|
|
21345
|
-
if (typeof expire === 'undefined') {
|
|
21346
|
-
throw new AppwriteException('Missing required parameter: "expire"');
|
|
21803
|
+
if (typeof numbers === 'undefined') {
|
|
21804
|
+
throw new AppwriteException('Missing required parameter: "numbers"');
|
|
21347
21805
|
}
|
|
21348
|
-
const apiPath = '/projects/{projectId}/
|
|
21806
|
+
const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
|
|
21349
21807
|
const payload = {};
|
|
21350
|
-
if (typeof
|
|
21351
|
-
payload['
|
|
21352
|
-
}
|
|
21353
|
-
if (typeof expire !== 'undefined') {
|
|
21354
|
-
payload['expire'] = expire;
|
|
21808
|
+
if (typeof numbers !== 'undefined') {
|
|
21809
|
+
payload['numbers'] = numbers;
|
|
21355
21810
|
}
|
|
21356
21811
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21357
21812
|
const apiHeaders = {
|
|
21358
21813
|
'content-type': 'application/json',
|
|
21359
21814
|
};
|
|
21360
|
-
return this.client.call('
|
|
21815
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21361
21816
|
}
|
|
21362
|
-
|
|
21817
|
+
updateAuthPasswordDictionary(paramsOrFirst, ...rest) {
|
|
21363
21818
|
let params;
|
|
21364
21819
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21365
21820
|
params = (paramsOrFirst || {});
|
|
@@ -21367,26 +21822,29 @@
|
|
|
21367
21822
|
else {
|
|
21368
21823
|
params = {
|
|
21369
21824
|
projectId: paramsOrFirst,
|
|
21370
|
-
|
|
21825
|
+
enabled: rest[0]
|
|
21371
21826
|
};
|
|
21372
21827
|
}
|
|
21373
21828
|
const projectId = params.projectId;
|
|
21374
|
-
const
|
|
21829
|
+
const enabled = params.enabled;
|
|
21375
21830
|
if (typeof projectId === 'undefined') {
|
|
21376
21831
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21377
21832
|
}
|
|
21378
|
-
if (typeof
|
|
21379
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21833
|
+
if (typeof enabled === 'undefined') {
|
|
21834
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21380
21835
|
}
|
|
21381
|
-
const apiPath = '/projects/{projectId}/
|
|
21836
|
+
const apiPath = '/projects/{projectId}/auth/password-dictionary'.replace('{projectId}', projectId);
|
|
21382
21837
|
const payload = {};
|
|
21838
|
+
if (typeof enabled !== 'undefined') {
|
|
21839
|
+
payload['enabled'] = enabled;
|
|
21840
|
+
}
|
|
21383
21841
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21384
21842
|
const apiHeaders = {
|
|
21385
21843
|
'content-type': 'application/json',
|
|
21386
21844
|
};
|
|
21387
|
-
return this.client.call('
|
|
21845
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21388
21846
|
}
|
|
21389
|
-
|
|
21847
|
+
updateAuthPasswordHistory(paramsOrFirst, ...rest) {
|
|
21390
21848
|
let params;
|
|
21391
21849
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21392
21850
|
params = (paramsOrFirst || {});
|
|
@@ -21394,34 +21852,29 @@
|
|
|
21394
21852
|
else {
|
|
21395
21853
|
params = {
|
|
21396
21854
|
projectId: paramsOrFirst,
|
|
21397
|
-
|
|
21398
|
-
duration: rest[1]
|
|
21855
|
+
limit: rest[0]
|
|
21399
21856
|
};
|
|
21400
21857
|
}
|
|
21401
21858
|
const projectId = params.projectId;
|
|
21402
|
-
const
|
|
21403
|
-
const duration = params.duration;
|
|
21859
|
+
const limit = params.limit;
|
|
21404
21860
|
if (typeof projectId === 'undefined') {
|
|
21405
21861
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21406
21862
|
}
|
|
21407
|
-
if (typeof
|
|
21408
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21863
|
+
if (typeof limit === 'undefined') {
|
|
21864
|
+
throw new AppwriteException('Missing required parameter: "limit"');
|
|
21409
21865
|
}
|
|
21410
|
-
const apiPath = '/projects/{projectId}/
|
|
21866
|
+
const apiPath = '/projects/{projectId}/auth/password-history'.replace('{projectId}', projectId);
|
|
21411
21867
|
const payload = {};
|
|
21412
|
-
if (typeof
|
|
21413
|
-
payload['
|
|
21414
|
-
}
|
|
21415
|
-
if (typeof duration !== 'undefined') {
|
|
21416
|
-
payload['duration'] = duration;
|
|
21868
|
+
if (typeof limit !== 'undefined') {
|
|
21869
|
+
payload['limit'] = limit;
|
|
21417
21870
|
}
|
|
21418
21871
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21419
21872
|
const apiHeaders = {
|
|
21420
21873
|
'content-type': 'application/json',
|
|
21421
21874
|
};
|
|
21422
|
-
return this.client.call('
|
|
21875
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21423
21876
|
}
|
|
21424
|
-
|
|
21877
|
+
updatePersonalDataCheck(paramsOrFirst, ...rest) {
|
|
21425
21878
|
let params;
|
|
21426
21879
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21427
21880
|
params = (paramsOrFirst || {});
|
|
@@ -21429,29 +21882,29 @@
|
|
|
21429
21882
|
else {
|
|
21430
21883
|
params = {
|
|
21431
21884
|
projectId: paramsOrFirst,
|
|
21432
|
-
|
|
21433
|
-
total: rest[1]
|
|
21885
|
+
enabled: rest[0]
|
|
21434
21886
|
};
|
|
21435
21887
|
}
|
|
21436
21888
|
const projectId = params.projectId;
|
|
21437
|
-
const
|
|
21438
|
-
const total = params.total;
|
|
21889
|
+
const enabled = params.enabled;
|
|
21439
21890
|
if (typeof projectId === 'undefined') {
|
|
21440
21891
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21441
21892
|
}
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
if (typeof queries !== 'undefined') {
|
|
21445
|
-
payload['queries'] = queries;
|
|
21893
|
+
if (typeof enabled === 'undefined') {
|
|
21894
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21446
21895
|
}
|
|
21447
|
-
|
|
21448
|
-
|
|
21896
|
+
const apiPath = '/projects/{projectId}/auth/personal-data'.replace('{projectId}', projectId);
|
|
21897
|
+
const payload = {};
|
|
21898
|
+
if (typeof enabled !== 'undefined') {
|
|
21899
|
+
payload['enabled'] = enabled;
|
|
21449
21900
|
}
|
|
21450
21901
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21451
|
-
const apiHeaders = {
|
|
21452
|
-
|
|
21902
|
+
const apiHeaders = {
|
|
21903
|
+
'content-type': 'application/json',
|
|
21904
|
+
};
|
|
21905
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21453
21906
|
}
|
|
21454
|
-
|
|
21907
|
+
updateSessionAlerts(paramsOrFirst, ...rest) {
|
|
21455
21908
|
let params;
|
|
21456
21909
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21457
21910
|
params = (paramsOrFirst || {});
|
|
@@ -21459,47 +21912,29 @@
|
|
|
21459
21912
|
else {
|
|
21460
21913
|
params = {
|
|
21461
21914
|
projectId: paramsOrFirst,
|
|
21462
|
-
|
|
21463
|
-
scopes: rest[1],
|
|
21464
|
-
keyId: rest[2],
|
|
21465
|
-
expire: rest[3]
|
|
21915
|
+
alerts: rest[0]
|
|
21466
21916
|
};
|
|
21467
21917
|
}
|
|
21468
21918
|
const projectId = params.projectId;
|
|
21469
|
-
const
|
|
21470
|
-
const scopes = params.scopes;
|
|
21471
|
-
const keyId = params.keyId;
|
|
21472
|
-
const expire = params.expire;
|
|
21919
|
+
const alerts = params.alerts;
|
|
21473
21920
|
if (typeof projectId === 'undefined') {
|
|
21474
21921
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21475
21922
|
}
|
|
21476
|
-
if (typeof
|
|
21477
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21478
|
-
}
|
|
21479
|
-
if (typeof scopes === 'undefined') {
|
|
21480
|
-
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
21923
|
+
if (typeof alerts === 'undefined') {
|
|
21924
|
+
throw new AppwriteException('Missing required parameter: "alerts"');
|
|
21481
21925
|
}
|
|
21482
|
-
const apiPath = '/projects/{projectId}/
|
|
21926
|
+
const apiPath = '/projects/{projectId}/auth/session-alerts'.replace('{projectId}', projectId);
|
|
21483
21927
|
const payload = {};
|
|
21484
|
-
if (typeof
|
|
21485
|
-
payload['
|
|
21486
|
-
}
|
|
21487
|
-
if (typeof name !== 'undefined') {
|
|
21488
|
-
payload['name'] = name;
|
|
21489
|
-
}
|
|
21490
|
-
if (typeof scopes !== 'undefined') {
|
|
21491
|
-
payload['scopes'] = scopes;
|
|
21492
|
-
}
|
|
21493
|
-
if (typeof expire !== 'undefined') {
|
|
21494
|
-
payload['expire'] = expire;
|
|
21928
|
+
if (typeof alerts !== 'undefined') {
|
|
21929
|
+
payload['alerts'] = alerts;
|
|
21495
21930
|
}
|
|
21496
21931
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21497
21932
|
const apiHeaders = {
|
|
21498
21933
|
'content-type': 'application/json',
|
|
21499
21934
|
};
|
|
21500
|
-
return this.client.call('
|
|
21935
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21501
21936
|
}
|
|
21502
|
-
|
|
21937
|
+
updateSessionInvalidation(paramsOrFirst, ...rest) {
|
|
21503
21938
|
let params;
|
|
21504
21939
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21505
21940
|
params = (paramsOrFirst || {});
|
|
@@ -21507,24 +21942,29 @@
|
|
|
21507
21942
|
else {
|
|
21508
21943
|
params = {
|
|
21509
21944
|
projectId: paramsOrFirst,
|
|
21510
|
-
|
|
21945
|
+
enabled: rest[0]
|
|
21511
21946
|
};
|
|
21512
21947
|
}
|
|
21513
21948
|
const projectId = params.projectId;
|
|
21514
|
-
const
|
|
21949
|
+
const enabled = params.enabled;
|
|
21515
21950
|
if (typeof projectId === 'undefined') {
|
|
21516
21951
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21517
21952
|
}
|
|
21518
|
-
if (typeof
|
|
21519
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21953
|
+
if (typeof enabled === 'undefined') {
|
|
21954
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21520
21955
|
}
|
|
21521
|
-
const apiPath = '/projects/{projectId}/
|
|
21956
|
+
const apiPath = '/projects/{projectId}/auth/session-invalidation'.replace('{projectId}', projectId);
|
|
21522
21957
|
const payload = {};
|
|
21958
|
+
if (typeof enabled !== 'undefined') {
|
|
21959
|
+
payload['enabled'] = enabled;
|
|
21960
|
+
}
|
|
21523
21961
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21524
|
-
const apiHeaders = {
|
|
21525
|
-
|
|
21962
|
+
const apiHeaders = {
|
|
21963
|
+
'content-type': 'application/json',
|
|
21964
|
+
};
|
|
21965
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21526
21966
|
}
|
|
21527
|
-
|
|
21967
|
+
updateAuthStatus(paramsOrFirst, ...rest) {
|
|
21528
21968
|
let params;
|
|
21529
21969
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21530
21970
|
params = (paramsOrFirst || {});
|
|
@@ -21532,74 +21972,56 @@
|
|
|
21532
21972
|
else {
|
|
21533
21973
|
params = {
|
|
21534
21974
|
projectId: paramsOrFirst,
|
|
21535
|
-
|
|
21536
|
-
|
|
21537
|
-
scopes: rest[2],
|
|
21538
|
-
expire: rest[3]
|
|
21975
|
+
method: rest[0],
|
|
21976
|
+
status: rest[1]
|
|
21539
21977
|
};
|
|
21540
21978
|
}
|
|
21541
21979
|
const projectId = params.projectId;
|
|
21542
|
-
const
|
|
21543
|
-
const
|
|
21544
|
-
const scopes = params.scopes;
|
|
21545
|
-
const expire = params.expire;
|
|
21980
|
+
const method = params.method;
|
|
21981
|
+
const status = params.status;
|
|
21546
21982
|
if (typeof projectId === 'undefined') {
|
|
21547
21983
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21548
21984
|
}
|
|
21549
|
-
if (typeof
|
|
21550
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21551
|
-
}
|
|
21552
|
-
if (typeof name === 'undefined') {
|
|
21553
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
21985
|
+
if (typeof method === 'undefined') {
|
|
21986
|
+
throw new AppwriteException('Missing required parameter: "method"');
|
|
21554
21987
|
}
|
|
21555
|
-
if (typeof
|
|
21556
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21988
|
+
if (typeof status === 'undefined') {
|
|
21989
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
21557
21990
|
}
|
|
21558
|
-
const apiPath = '/projects/{projectId}/
|
|
21991
|
+
const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
|
|
21559
21992
|
const payload = {};
|
|
21560
|
-
if (typeof
|
|
21561
|
-
payload['
|
|
21562
|
-
}
|
|
21563
|
-
if (typeof scopes !== 'undefined') {
|
|
21564
|
-
payload['scopes'] = scopes;
|
|
21565
|
-
}
|
|
21566
|
-
if (typeof expire !== 'undefined') {
|
|
21567
|
-
payload['expire'] = expire;
|
|
21993
|
+
if (typeof status !== 'undefined') {
|
|
21994
|
+
payload['status'] = status;
|
|
21568
21995
|
}
|
|
21569
21996
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21570
21997
|
const apiHeaders = {
|
|
21571
21998
|
'content-type': 'application/json',
|
|
21572
21999
|
};
|
|
21573
|
-
return this.client.call('
|
|
22000
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21574
22001
|
}
|
|
21575
|
-
|
|
22002
|
+
updateConsoleAccess(paramsOrFirst) {
|
|
21576
22003
|
let params;
|
|
21577
22004
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21578
22005
|
params = (paramsOrFirst || {});
|
|
21579
22006
|
}
|
|
21580
22007
|
else {
|
|
21581
22008
|
params = {
|
|
21582
|
-
projectId: paramsOrFirst
|
|
21583
|
-
keyId: rest[0]
|
|
22009
|
+
projectId: paramsOrFirst
|
|
21584
22010
|
};
|
|
21585
22011
|
}
|
|
21586
22012
|
const projectId = params.projectId;
|
|
21587
|
-
const keyId = params.keyId;
|
|
21588
22013
|
if (typeof projectId === 'undefined') {
|
|
21589
22014
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21590
22015
|
}
|
|
21591
|
-
|
|
21592
|
-
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
21593
|
-
}
|
|
21594
|
-
const apiPath = '/projects/{projectId}/keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
|
22016
|
+
const apiPath = '/projects/{projectId}/console-access'.replace('{projectId}', projectId);
|
|
21595
22017
|
const payload = {};
|
|
21596
22018
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21597
22019
|
const apiHeaders = {
|
|
21598
22020
|
'content-type': 'application/json',
|
|
21599
22021
|
};
|
|
21600
|
-
return this.client.call('
|
|
22022
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21601
22023
|
}
|
|
21602
|
-
|
|
22024
|
+
listDevKeys(paramsOrFirst, ...rest) {
|
|
21603
22025
|
let params;
|
|
21604
22026
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21605
22027
|
params = (paramsOrFirst || {});
|
|
@@ -21607,29 +22029,24 @@
|
|
|
21607
22029
|
else {
|
|
21608
22030
|
params = {
|
|
21609
22031
|
projectId: paramsOrFirst,
|
|
21610
|
-
|
|
22032
|
+
queries: rest[0]
|
|
21611
22033
|
};
|
|
21612
22034
|
}
|
|
21613
22035
|
const projectId = params.projectId;
|
|
21614
|
-
const
|
|
21615
|
-
if (typeof projectId === 'undefined') {
|
|
21616
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21617
|
-
}
|
|
21618
|
-
if (typeof labels === 'undefined') {
|
|
21619
|
-
throw new AppwriteException('Missing required parameter: "labels"');
|
|
22036
|
+
const queries = params.queries;
|
|
22037
|
+
if (typeof projectId === 'undefined') {
|
|
22038
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21620
22039
|
}
|
|
21621
|
-
const apiPath = '/projects/{projectId}/
|
|
22040
|
+
const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', projectId);
|
|
21622
22041
|
const payload = {};
|
|
21623
|
-
if (typeof
|
|
21624
|
-
payload['
|
|
22042
|
+
if (typeof queries !== 'undefined') {
|
|
22043
|
+
payload['queries'] = queries;
|
|
21625
22044
|
}
|
|
21626
22045
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21627
|
-
const apiHeaders = {
|
|
21628
|
-
|
|
21629
|
-
};
|
|
21630
|
-
return this.client.call('put', uri, apiHeaders, payload);
|
|
22046
|
+
const apiHeaders = {};
|
|
22047
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21631
22048
|
}
|
|
21632
|
-
|
|
22049
|
+
createDevKey(paramsOrFirst, ...rest) {
|
|
21633
22050
|
let params;
|
|
21634
22051
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21635
22052
|
params = (paramsOrFirst || {});
|
|
@@ -21637,44 +22054,37 @@
|
|
|
21637
22054
|
else {
|
|
21638
22055
|
params = {
|
|
21639
22056
|
projectId: paramsOrFirst,
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
secret: rest[2],
|
|
21643
|
-
enabled: rest[3]
|
|
22057
|
+
name: rest[0],
|
|
22058
|
+
expire: rest[1]
|
|
21644
22059
|
};
|
|
21645
22060
|
}
|
|
21646
22061
|
const projectId = params.projectId;
|
|
21647
|
-
const
|
|
21648
|
-
const
|
|
21649
|
-
const secret = params.secret;
|
|
21650
|
-
const enabled = params.enabled;
|
|
22062
|
+
const name = params.name;
|
|
22063
|
+
const expire = params.expire;
|
|
21651
22064
|
if (typeof projectId === 'undefined') {
|
|
21652
22065
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21653
22066
|
}
|
|
21654
|
-
if (typeof
|
|
21655
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21656
|
-
}
|
|
21657
|
-
const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
|
|
21658
|
-
const payload = {};
|
|
21659
|
-
if (typeof provider !== 'undefined') {
|
|
21660
|
-
payload['provider'] = provider;
|
|
22067
|
+
if (typeof name === 'undefined') {
|
|
22068
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
21661
22069
|
}
|
|
21662
|
-
if (typeof
|
|
21663
|
-
|
|
22070
|
+
if (typeof expire === 'undefined') {
|
|
22071
|
+
throw new AppwriteException('Missing required parameter: "expire"');
|
|
21664
22072
|
}
|
|
21665
|
-
|
|
21666
|
-
|
|
22073
|
+
const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', projectId);
|
|
22074
|
+
const payload = {};
|
|
22075
|
+
if (typeof name !== 'undefined') {
|
|
22076
|
+
payload['name'] = name;
|
|
21667
22077
|
}
|
|
21668
|
-
if (typeof
|
|
21669
|
-
payload['
|
|
22078
|
+
if (typeof expire !== 'undefined') {
|
|
22079
|
+
payload['expire'] = expire;
|
|
21670
22080
|
}
|
|
21671
22081
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21672
22082
|
const apiHeaders = {
|
|
21673
22083
|
'content-type': 'application/json',
|
|
21674
22084
|
};
|
|
21675
|
-
return this.client.call('
|
|
22085
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21676
22086
|
}
|
|
21677
|
-
|
|
22087
|
+
getDevKey(paramsOrFirst, ...rest) {
|
|
21678
22088
|
let params;
|
|
21679
22089
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21680
22090
|
params = (paramsOrFirst || {});
|
|
@@ -21682,24 +22092,24 @@
|
|
|
21682
22092
|
else {
|
|
21683
22093
|
params = {
|
|
21684
22094
|
projectId: paramsOrFirst,
|
|
21685
|
-
|
|
22095
|
+
keyId: rest[0]
|
|
21686
22096
|
};
|
|
21687
22097
|
}
|
|
21688
22098
|
const projectId = params.projectId;
|
|
21689
|
-
const
|
|
22099
|
+
const keyId = params.keyId;
|
|
21690
22100
|
if (typeof projectId === 'undefined') {
|
|
21691
22101
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21692
22102
|
}
|
|
21693
|
-
|
|
21694
|
-
|
|
21695
|
-
if (typeof total !== 'undefined') {
|
|
21696
|
-
payload['total'] = total;
|
|
22103
|
+
if (typeof keyId === 'undefined') {
|
|
22104
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
21697
22105
|
}
|
|
22106
|
+
const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
|
22107
|
+
const payload = {};
|
|
21698
22108
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21699
22109
|
const apiHeaders = {};
|
|
21700
22110
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
21701
22111
|
}
|
|
21702
|
-
|
|
22112
|
+
updateDevKey(paramsOrFirst, ...rest) {
|
|
21703
22113
|
let params;
|
|
21704
22114
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21705
22115
|
params = (paramsOrFirst || {});
|
|
@@ -21707,52 +22117,42 @@
|
|
|
21707
22117
|
else {
|
|
21708
22118
|
params = {
|
|
21709
22119
|
projectId: paramsOrFirst,
|
|
21710
|
-
|
|
22120
|
+
keyId: rest[0],
|
|
21711
22121
|
name: rest[1],
|
|
21712
|
-
|
|
21713
|
-
store: rest[3],
|
|
21714
|
-
hostname: rest[4]
|
|
22122
|
+
expire: rest[2]
|
|
21715
22123
|
};
|
|
21716
22124
|
}
|
|
21717
22125
|
const projectId = params.projectId;
|
|
21718
|
-
const
|
|
22126
|
+
const keyId = params.keyId;
|
|
21719
22127
|
const name = params.name;
|
|
21720
|
-
const
|
|
21721
|
-
const store = params.store;
|
|
21722
|
-
const hostname = params.hostname;
|
|
22128
|
+
const expire = params.expire;
|
|
21723
22129
|
if (typeof projectId === 'undefined') {
|
|
21724
22130
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21725
22131
|
}
|
|
21726
|
-
if (typeof
|
|
21727
|
-
throw new AppwriteException('Missing required parameter: "
|
|
22132
|
+
if (typeof keyId === 'undefined') {
|
|
22133
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
21728
22134
|
}
|
|
21729
22135
|
if (typeof name === 'undefined') {
|
|
21730
22136
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
21731
22137
|
}
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
if (typeof type !== 'undefined') {
|
|
21735
|
-
payload['type'] = type;
|
|
22138
|
+
if (typeof expire === 'undefined') {
|
|
22139
|
+
throw new AppwriteException('Missing required parameter: "expire"');
|
|
21736
22140
|
}
|
|
22141
|
+
const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
|
22142
|
+
const payload = {};
|
|
21737
22143
|
if (typeof name !== 'undefined') {
|
|
21738
22144
|
payload['name'] = name;
|
|
21739
22145
|
}
|
|
21740
|
-
if (typeof
|
|
21741
|
-
payload['
|
|
21742
|
-
}
|
|
21743
|
-
if (typeof store !== 'undefined') {
|
|
21744
|
-
payload['store'] = store;
|
|
21745
|
-
}
|
|
21746
|
-
if (typeof hostname !== 'undefined') {
|
|
21747
|
-
payload['hostname'] = hostname;
|
|
22146
|
+
if (typeof expire !== 'undefined') {
|
|
22147
|
+
payload['expire'] = expire;
|
|
21748
22148
|
}
|
|
21749
22149
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21750
22150
|
const apiHeaders = {
|
|
21751
22151
|
'content-type': 'application/json',
|
|
21752
22152
|
};
|
|
21753
|
-
return this.client.call('
|
|
22153
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
21754
22154
|
}
|
|
21755
|
-
|
|
22155
|
+
deleteDevKey(paramsOrFirst, ...rest) {
|
|
21756
22156
|
let params;
|
|
21757
22157
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21758
22158
|
params = (paramsOrFirst || {});
|
|
@@ -21760,24 +22160,26 @@
|
|
|
21760
22160
|
else {
|
|
21761
22161
|
params = {
|
|
21762
22162
|
projectId: paramsOrFirst,
|
|
21763
|
-
|
|
22163
|
+
keyId: rest[0]
|
|
21764
22164
|
};
|
|
21765
22165
|
}
|
|
21766
22166
|
const projectId = params.projectId;
|
|
21767
|
-
const
|
|
22167
|
+
const keyId = params.keyId;
|
|
21768
22168
|
if (typeof projectId === 'undefined') {
|
|
21769
22169
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21770
22170
|
}
|
|
21771
|
-
if (typeof
|
|
21772
|
-
throw new AppwriteException('Missing required parameter: "
|
|
22171
|
+
if (typeof keyId === 'undefined') {
|
|
22172
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
21773
22173
|
}
|
|
21774
|
-
const apiPath = '/projects/{projectId}/
|
|
22174
|
+
const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
|
|
21775
22175
|
const payload = {};
|
|
21776
22176
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21777
|
-
const apiHeaders = {
|
|
21778
|
-
|
|
22177
|
+
const apiHeaders = {
|
|
22178
|
+
'content-type': 'application/json',
|
|
22179
|
+
};
|
|
22180
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
21779
22181
|
}
|
|
21780
|
-
|
|
22182
|
+
createJWT(paramsOrFirst, ...rest) {
|
|
21781
22183
|
let params;
|
|
21782
22184
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21783
22185
|
params = (paramsOrFirst || {});
|
|
@@ -21785,49 +22187,34 @@
|
|
|
21785
22187
|
else {
|
|
21786
22188
|
params = {
|
|
21787
22189
|
projectId: paramsOrFirst,
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
key: rest[2],
|
|
21791
|
-
store: rest[3],
|
|
21792
|
-
hostname: rest[4]
|
|
22190
|
+
scopes: rest[0],
|
|
22191
|
+
duration: rest[1]
|
|
21793
22192
|
};
|
|
21794
22193
|
}
|
|
21795
22194
|
const projectId = params.projectId;
|
|
21796
|
-
const
|
|
21797
|
-
const
|
|
21798
|
-
const key = params.key;
|
|
21799
|
-
const store = params.store;
|
|
21800
|
-
const hostname = params.hostname;
|
|
22195
|
+
const scopes = params.scopes;
|
|
22196
|
+
const duration = params.duration;
|
|
21801
22197
|
if (typeof projectId === 'undefined') {
|
|
21802
22198
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21803
22199
|
}
|
|
21804
|
-
if (typeof
|
|
21805
|
-
throw new AppwriteException('Missing required parameter: "
|
|
21806
|
-
}
|
|
21807
|
-
if (typeof name === 'undefined') {
|
|
21808
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
22200
|
+
if (typeof scopes === 'undefined') {
|
|
22201
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
21809
22202
|
}
|
|
21810
|
-
const apiPath = '/projects/{projectId}/
|
|
22203
|
+
const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
|
|
21811
22204
|
const payload = {};
|
|
21812
|
-
if (typeof
|
|
21813
|
-
payload['
|
|
21814
|
-
}
|
|
21815
|
-
if (typeof key !== 'undefined') {
|
|
21816
|
-
payload['key'] = key;
|
|
21817
|
-
}
|
|
21818
|
-
if (typeof store !== 'undefined') {
|
|
21819
|
-
payload['store'] = store;
|
|
22205
|
+
if (typeof scopes !== 'undefined') {
|
|
22206
|
+
payload['scopes'] = scopes;
|
|
21820
22207
|
}
|
|
21821
|
-
if (typeof
|
|
21822
|
-
payload['
|
|
22208
|
+
if (typeof duration !== 'undefined') {
|
|
22209
|
+
payload['duration'] = duration;
|
|
21823
22210
|
}
|
|
21824
22211
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21825
22212
|
const apiHeaders = {
|
|
21826
22213
|
'content-type': 'application/json',
|
|
21827
22214
|
};
|
|
21828
|
-
return this.client.call('
|
|
22215
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21829
22216
|
}
|
|
21830
|
-
|
|
22217
|
+
updateOAuth2(paramsOrFirst, ...rest) {
|
|
21831
22218
|
let params;
|
|
21832
22219
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21833
22220
|
params = (paramsOrFirst || {});
|
|
@@ -21835,24 +22222,42 @@
|
|
|
21835
22222
|
else {
|
|
21836
22223
|
params = {
|
|
21837
22224
|
projectId: paramsOrFirst,
|
|
21838
|
-
|
|
22225
|
+
provider: rest[0],
|
|
22226
|
+
appId: rest[1],
|
|
22227
|
+
secret: rest[2],
|
|
22228
|
+
enabled: rest[3]
|
|
21839
22229
|
};
|
|
21840
22230
|
}
|
|
21841
22231
|
const projectId = params.projectId;
|
|
21842
|
-
const
|
|
22232
|
+
const provider = params.provider;
|
|
22233
|
+
const appId = params.appId;
|
|
22234
|
+
const secret = params.secret;
|
|
22235
|
+
const enabled = params.enabled;
|
|
21843
22236
|
if (typeof projectId === 'undefined') {
|
|
21844
22237
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21845
22238
|
}
|
|
21846
|
-
if (typeof
|
|
21847
|
-
throw new AppwriteException('Missing required parameter: "
|
|
22239
|
+
if (typeof provider === 'undefined') {
|
|
22240
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
21848
22241
|
}
|
|
21849
|
-
const apiPath = '/projects/{projectId}/
|
|
22242
|
+
const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
|
|
21850
22243
|
const payload = {};
|
|
22244
|
+
if (typeof provider !== 'undefined') {
|
|
22245
|
+
payload['provider'] = provider;
|
|
22246
|
+
}
|
|
22247
|
+
if (typeof appId !== 'undefined') {
|
|
22248
|
+
payload['appId'] = appId;
|
|
22249
|
+
}
|
|
22250
|
+
if (typeof secret !== 'undefined') {
|
|
22251
|
+
payload['secret'] = secret;
|
|
22252
|
+
}
|
|
22253
|
+
if (typeof enabled !== 'undefined') {
|
|
22254
|
+
payload['enabled'] = enabled;
|
|
22255
|
+
}
|
|
21851
22256
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21852
22257
|
const apiHeaders = {
|
|
21853
22258
|
'content-type': 'application/json',
|
|
21854
22259
|
};
|
|
21855
|
-
return this.client.call('
|
|
22260
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21856
22261
|
}
|
|
21857
22262
|
listSchedules(paramsOrFirst, ...rest) {
|
|
21858
22263
|
let params;
|
|
@@ -21965,74 +22370,6 @@
|
|
|
21965
22370
|
const apiHeaders = {};
|
|
21966
22371
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
21967
22372
|
}
|
|
21968
|
-
updateServiceStatus(paramsOrFirst, ...rest) {
|
|
21969
|
-
let params;
|
|
21970
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21971
|
-
params = (paramsOrFirst || {});
|
|
21972
|
-
}
|
|
21973
|
-
else {
|
|
21974
|
-
params = {
|
|
21975
|
-
projectId: paramsOrFirst,
|
|
21976
|
-
service: rest[0],
|
|
21977
|
-
status: rest[1]
|
|
21978
|
-
};
|
|
21979
|
-
}
|
|
21980
|
-
const projectId = params.projectId;
|
|
21981
|
-
const service = params.service;
|
|
21982
|
-
const status = params.status;
|
|
21983
|
-
if (typeof projectId === 'undefined') {
|
|
21984
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
21985
|
-
}
|
|
21986
|
-
if (typeof service === 'undefined') {
|
|
21987
|
-
throw new AppwriteException('Missing required parameter: "service"');
|
|
21988
|
-
}
|
|
21989
|
-
if (typeof status === 'undefined') {
|
|
21990
|
-
throw new AppwriteException('Missing required parameter: "status"');
|
|
21991
|
-
}
|
|
21992
|
-
const apiPath = '/projects/{projectId}/service'.replace('{projectId}', projectId);
|
|
21993
|
-
const payload = {};
|
|
21994
|
-
if (typeof service !== 'undefined') {
|
|
21995
|
-
payload['service'] = service;
|
|
21996
|
-
}
|
|
21997
|
-
if (typeof status !== 'undefined') {
|
|
21998
|
-
payload['status'] = status;
|
|
21999
|
-
}
|
|
22000
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22001
|
-
const apiHeaders = {
|
|
22002
|
-
'content-type': 'application/json',
|
|
22003
|
-
};
|
|
22004
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22005
|
-
}
|
|
22006
|
-
updateServiceStatusAll(paramsOrFirst, ...rest) {
|
|
22007
|
-
let params;
|
|
22008
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22009
|
-
params = (paramsOrFirst || {});
|
|
22010
|
-
}
|
|
22011
|
-
else {
|
|
22012
|
-
params = {
|
|
22013
|
-
projectId: paramsOrFirst,
|
|
22014
|
-
status: rest[0]
|
|
22015
|
-
};
|
|
22016
|
-
}
|
|
22017
|
-
const projectId = params.projectId;
|
|
22018
|
-
const status = params.status;
|
|
22019
|
-
if (typeof projectId === 'undefined') {
|
|
22020
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22021
|
-
}
|
|
22022
|
-
if (typeof status === 'undefined') {
|
|
22023
|
-
throw new AppwriteException('Missing required parameter: "status"');
|
|
22024
|
-
}
|
|
22025
|
-
const apiPath = '/projects/{projectId}/service/all'.replace('{projectId}', projectId);
|
|
22026
|
-
const payload = {};
|
|
22027
|
-
if (typeof status !== 'undefined') {
|
|
22028
|
-
payload['status'] = status;
|
|
22029
|
-
}
|
|
22030
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22031
|
-
const apiHeaders = {
|
|
22032
|
-
'content-type': 'application/json',
|
|
22033
|
-
};
|
|
22034
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22035
|
-
}
|
|
22036
22373
|
updateSmtp(paramsOrFirst, ...rest) {
|
|
22037
22374
|
let params;
|
|
22038
22375
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -25102,7 +25439,8 @@
|
|
|
25102
25439
|
name: rest[1],
|
|
25103
25440
|
permissions: rest[2],
|
|
25104
25441
|
rowSecurity: rest[3],
|
|
25105
|
-
enabled: rest[4]
|
|
25442
|
+
enabled: rest[4],
|
|
25443
|
+
purge: rest[5]
|
|
25106
25444
|
};
|
|
25107
25445
|
}
|
|
25108
25446
|
const databaseId = params.databaseId;
|
|
@@ -25111,6 +25449,7 @@
|
|
|
25111
25449
|
const permissions = params.permissions;
|
|
25112
25450
|
const rowSecurity = params.rowSecurity;
|
|
25113
25451
|
const enabled = params.enabled;
|
|
25452
|
+
const purge = params.purge;
|
|
25114
25453
|
if (typeof databaseId === 'undefined') {
|
|
25115
25454
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
25116
25455
|
}
|
|
@@ -25131,6 +25470,9 @@
|
|
|
25131
25470
|
if (typeof enabled !== 'undefined') {
|
|
25132
25471
|
payload['enabled'] = enabled;
|
|
25133
25472
|
}
|
|
25473
|
+
if (typeof purge !== 'undefined') {
|
|
25474
|
+
payload['purge'] = purge;
|
|
25475
|
+
}
|
|
25134
25476
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25135
25477
|
const apiHeaders = {
|
|
25136
25478
|
'content-type': 'application/json',
|
|
@@ -30496,9 +30838,9 @@
|
|
|
30496
30838
|
name: rest[1],
|
|
30497
30839
|
events: rest[2],
|
|
30498
30840
|
enabled: rest[3],
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30841
|
+
tls: rest[4],
|
|
30842
|
+
authUsername: rest[5],
|
|
30843
|
+
authPassword: rest[6]
|
|
30502
30844
|
};
|
|
30503
30845
|
}
|
|
30504
30846
|
const webhookId = params.webhookId;
|
|
@@ -30506,9 +30848,9 @@
|
|
|
30506
30848
|
const name = params.name;
|
|
30507
30849
|
const events = params.events;
|
|
30508
30850
|
const enabled = params.enabled;
|
|
30509
|
-
const
|
|
30510
|
-
const
|
|
30511
|
-
const
|
|
30851
|
+
const tls = params.tls;
|
|
30852
|
+
const authUsername = params.authUsername;
|
|
30853
|
+
const authPassword = params.authPassword;
|
|
30512
30854
|
if (typeof webhookId === 'undefined') {
|
|
30513
30855
|
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30514
30856
|
}
|
|
@@ -30538,14 +30880,14 @@
|
|
|
30538
30880
|
if (typeof enabled !== 'undefined') {
|
|
30539
30881
|
payload['enabled'] = enabled;
|
|
30540
30882
|
}
|
|
30541
|
-
if (typeof
|
|
30542
|
-
payload['
|
|
30883
|
+
if (typeof tls !== 'undefined') {
|
|
30884
|
+
payload['tls'] = tls;
|
|
30543
30885
|
}
|
|
30544
|
-
if (typeof
|
|
30545
|
-
payload['
|
|
30886
|
+
if (typeof authUsername !== 'undefined') {
|
|
30887
|
+
payload['authUsername'] = authUsername;
|
|
30546
30888
|
}
|
|
30547
|
-
if (typeof
|
|
30548
|
-
payload['
|
|
30889
|
+
if (typeof authPassword !== 'undefined') {
|
|
30890
|
+
payload['authPassword'] = authPassword;
|
|
30549
30891
|
}
|
|
30550
30892
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30551
30893
|
const apiHeaders = {
|
|
@@ -30585,9 +30927,9 @@
|
|
|
30585
30927
|
url: rest[1],
|
|
30586
30928
|
events: rest[2],
|
|
30587
30929
|
enabled: rest[3],
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30930
|
+
tls: rest[4],
|
|
30931
|
+
authUsername: rest[5],
|
|
30932
|
+
authPassword: rest[6]
|
|
30591
30933
|
};
|
|
30592
30934
|
}
|
|
30593
30935
|
const webhookId = params.webhookId;
|
|
@@ -30595,9 +30937,9 @@
|
|
|
30595
30937
|
const url = params.url;
|
|
30596
30938
|
const events = params.events;
|
|
30597
30939
|
const enabled = params.enabled;
|
|
30598
|
-
const
|
|
30599
|
-
const
|
|
30600
|
-
const
|
|
30940
|
+
const tls = params.tls;
|
|
30941
|
+
const authUsername = params.authUsername;
|
|
30942
|
+
const authPassword = params.authPassword;
|
|
30601
30943
|
if (typeof webhookId === 'undefined') {
|
|
30602
30944
|
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30603
30945
|
}
|
|
@@ -30624,14 +30966,14 @@
|
|
|
30624
30966
|
if (typeof enabled !== 'undefined') {
|
|
30625
30967
|
payload['enabled'] = enabled;
|
|
30626
30968
|
}
|
|
30627
|
-
if (typeof
|
|
30628
|
-
payload['
|
|
30969
|
+
if (typeof tls !== 'undefined') {
|
|
30970
|
+
payload['tls'] = tls;
|
|
30629
30971
|
}
|
|
30630
|
-
if (typeof
|
|
30631
|
-
payload['
|
|
30972
|
+
if (typeof authUsername !== 'undefined') {
|
|
30973
|
+
payload['authUsername'] = authUsername;
|
|
30632
30974
|
}
|
|
30633
|
-
if (typeof
|
|
30634
|
-
payload['
|
|
30975
|
+
if (typeof authPassword !== 'undefined') {
|
|
30976
|
+
payload['authPassword'] = authPassword;
|
|
30635
30977
|
}
|
|
30636
30978
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30637
30979
|
const apiHeaders = {
|
|
@@ -30661,7 +31003,7 @@
|
|
|
30661
31003
|
};
|
|
30662
31004
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
30663
31005
|
}
|
|
30664
|
-
|
|
31006
|
+
updateSecret(paramsOrFirst) {
|
|
30665
31007
|
let params;
|
|
30666
31008
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30667
31009
|
params = (paramsOrFirst || {});
|
|
@@ -30675,7 +31017,7 @@
|
|
|
30675
31017
|
if (typeof webhookId === 'undefined') {
|
|
30676
31018
|
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30677
31019
|
}
|
|
30678
|
-
const apiPath = '/webhooks/{webhookId}/
|
|
31020
|
+
const apiPath = '/webhooks/{webhookId}/secret'.replace('{webhookId}', webhookId);
|
|
30679
31021
|
const payload = {};
|
|
30680
31022
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30681
31023
|
const apiHeaders = {
|
|
@@ -31709,6 +32051,10 @@
|
|
|
31709
32051
|
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
31710
32052
|
Scopes["ProjectRead"] = "project.read";
|
|
31711
32053
|
Scopes["ProjectWrite"] = "project.write";
|
|
32054
|
+
Scopes["KeysRead"] = "keys.read";
|
|
32055
|
+
Scopes["KeysWrite"] = "keys.write";
|
|
32056
|
+
Scopes["PlatformsRead"] = "platforms.read";
|
|
32057
|
+
Scopes["PlatformsWrite"] = "platforms.write";
|
|
31712
32058
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
31713
32059
|
Scopes["PoliciesRead"] = "policies.read";
|
|
31714
32060
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -31718,12 +32064,8 @@
|
|
|
31718
32064
|
Scopes["DomainsRead"] = "domains.read";
|
|
31719
32065
|
Scopes["DomainsWrite"] = "domains.write";
|
|
31720
32066
|
Scopes["EventsRead"] = "events.read";
|
|
31721
|
-
Scopes["PlatformsRead"] = "platforms.read";
|
|
31722
|
-
Scopes["PlatformsWrite"] = "platforms.write";
|
|
31723
32067
|
Scopes["ProjectsRead"] = "projects.read";
|
|
31724
32068
|
Scopes["ProjectsWrite"] = "projects.write";
|
|
31725
|
-
Scopes["KeysRead"] = "keys.read";
|
|
31726
|
-
Scopes["KeysWrite"] = "keys.write";
|
|
31727
32069
|
Scopes["DevKeysRead"] = "devKeys.read";
|
|
31728
32070
|
Scopes["DevKeysWrite"] = "devKeys.write";
|
|
31729
32071
|
})(exports.Scopes || (exports.Scopes = {}));
|
|
@@ -31777,6 +32119,7 @@
|
|
|
31777
32119
|
OAuthProvider["TradeshiftBox"] = "tradeshiftBox";
|
|
31778
32120
|
OAuthProvider["Twitch"] = "twitch";
|
|
31779
32121
|
OAuthProvider["Wordpress"] = "wordpress";
|
|
32122
|
+
OAuthProvider["X"] = "x";
|
|
31780
32123
|
OAuthProvider["Yahoo"] = "yahoo";
|
|
31781
32124
|
OAuthProvider["Yammer"] = "yammer";
|
|
31782
32125
|
OAuthProvider["Yandex"] = "yandex";
|
|
@@ -32893,6 +33236,39 @@
|
|
|
32893
33236
|
SupabaseMigrationResource["File"] = "file";
|
|
32894
33237
|
})(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
|
|
32895
33238
|
|
|
33239
|
+
exports.Addon = void 0;
|
|
33240
|
+
(function (Addon) {
|
|
33241
|
+
Addon["Baa"] = "baa";
|
|
33242
|
+
})(exports.Addon || (exports.Addon = {}));
|
|
33243
|
+
|
|
33244
|
+
exports.ProtocolId = void 0;
|
|
33245
|
+
(function (ProtocolId) {
|
|
33246
|
+
ProtocolId["Rest"] = "rest";
|
|
33247
|
+
ProtocolId["Graphql"] = "graphql";
|
|
33248
|
+
ProtocolId["Websocket"] = "websocket";
|
|
33249
|
+
})(exports.ProtocolId || (exports.ProtocolId = {}));
|
|
33250
|
+
|
|
33251
|
+
exports.ServiceId = void 0;
|
|
33252
|
+
(function (ServiceId) {
|
|
33253
|
+
ServiceId["Account"] = "account";
|
|
33254
|
+
ServiceId["Avatars"] = "avatars";
|
|
33255
|
+
ServiceId["Databases"] = "databases";
|
|
33256
|
+
ServiceId["Tablesdb"] = "tablesdb";
|
|
33257
|
+
ServiceId["Locale"] = "locale";
|
|
33258
|
+
ServiceId["Health"] = "health";
|
|
33259
|
+
ServiceId["Project"] = "project";
|
|
33260
|
+
ServiceId["Storage"] = "storage";
|
|
33261
|
+
ServiceId["Teams"] = "teams";
|
|
33262
|
+
ServiceId["Users"] = "users";
|
|
33263
|
+
ServiceId["Vcs"] = "vcs";
|
|
33264
|
+
ServiceId["Sites"] = "sites";
|
|
33265
|
+
ServiceId["Functions"] = "functions";
|
|
33266
|
+
ServiceId["Proxy"] = "proxy";
|
|
33267
|
+
ServiceId["Graphql"] = "graphql";
|
|
33268
|
+
ServiceId["Migrations"] = "migrations";
|
|
33269
|
+
ServiceId["Messaging"] = "messaging";
|
|
33270
|
+
})(exports.ServiceId || (exports.ServiceId = {}));
|
|
33271
|
+
|
|
32896
33272
|
exports.ProjectUsageRange = void 0;
|
|
32897
33273
|
(function (ProjectUsageRange) {
|
|
32898
33274
|
ProjectUsageRange["OneHour"] = "1h";
|
|
@@ -32909,13 +33285,6 @@
|
|
|
32909
33285
|
Region["Tor"] = "tor";
|
|
32910
33286
|
})(exports.Region || (exports.Region = {}));
|
|
32911
33287
|
|
|
32912
|
-
exports.Api = void 0;
|
|
32913
|
-
(function (Api) {
|
|
32914
|
-
Api["Rest"] = "rest";
|
|
32915
|
-
Api["Graphql"] = "graphql";
|
|
32916
|
-
Api["Realtime"] = "realtime";
|
|
32917
|
-
})(exports.Api || (exports.Api = {}));
|
|
32918
|
-
|
|
32919
33288
|
exports.AuthMethod = void 0;
|
|
32920
33289
|
(function (AuthMethod) {
|
|
32921
33290
|
AuthMethod["Emailpassword"] = "email-password";
|
|
@@ -32927,25 +33296,6 @@
|
|
|
32927
33296
|
AuthMethod["Phone"] = "phone";
|
|
32928
33297
|
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
32929
33298
|
|
|
32930
|
-
exports.PlatformType = void 0;
|
|
32931
|
-
(function (PlatformType) {
|
|
32932
|
-
PlatformType["Web"] = "web";
|
|
32933
|
-
PlatformType["Flutterweb"] = "flutter-web";
|
|
32934
|
-
PlatformType["Flutterios"] = "flutter-ios";
|
|
32935
|
-
PlatformType["Flutterandroid"] = "flutter-android";
|
|
32936
|
-
PlatformType["Flutterlinux"] = "flutter-linux";
|
|
32937
|
-
PlatformType["Fluttermacos"] = "flutter-macos";
|
|
32938
|
-
PlatformType["Flutterwindows"] = "flutter-windows";
|
|
32939
|
-
PlatformType["Appleios"] = "apple-ios";
|
|
32940
|
-
PlatformType["Applemacos"] = "apple-macos";
|
|
32941
|
-
PlatformType["Applewatchos"] = "apple-watchos";
|
|
32942
|
-
PlatformType["Appletvos"] = "apple-tvos";
|
|
32943
|
-
PlatformType["Android"] = "android";
|
|
32944
|
-
PlatformType["Unity"] = "unity";
|
|
32945
|
-
PlatformType["Reactnativeios"] = "react-native-ios";
|
|
32946
|
-
PlatformType["Reactnativeandroid"] = "react-native-android";
|
|
32947
|
-
})(exports.PlatformType || (exports.PlatformType = {}));
|
|
32948
|
-
|
|
32949
33299
|
exports.ResourceType = void 0;
|
|
32950
33300
|
(function (ResourceType) {
|
|
32951
33301
|
ResourceType["Function"] = "function";
|
|
@@ -32954,23 +33304,6 @@
|
|
|
32954
33304
|
ResourceType["Backup"] = "backup";
|
|
32955
33305
|
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
32956
33306
|
|
|
32957
|
-
exports.ApiService = void 0;
|
|
32958
|
-
(function (ApiService) {
|
|
32959
|
-
ApiService["Account"] = "account";
|
|
32960
|
-
ApiService["Avatars"] = "avatars";
|
|
32961
|
-
ApiService["Databases"] = "databases";
|
|
32962
|
-
ApiService["Tablesdb"] = "tablesdb";
|
|
32963
|
-
ApiService["Locale"] = "locale";
|
|
32964
|
-
ApiService["Health"] = "health";
|
|
32965
|
-
ApiService["Storage"] = "storage";
|
|
32966
|
-
ApiService["Teams"] = "teams";
|
|
32967
|
-
ApiService["Users"] = "users";
|
|
32968
|
-
ApiService["Sites"] = "sites";
|
|
32969
|
-
ApiService["Functions"] = "functions";
|
|
32970
|
-
ApiService["Graphql"] = "graphql";
|
|
32971
|
-
ApiService["Messaging"] = "messaging";
|
|
32972
|
-
})(exports.ApiService || (exports.ApiService = {}));
|
|
32973
|
-
|
|
32974
33307
|
exports.SMTPSecure = void 0;
|
|
32975
33308
|
(function (SMTPSecure) {
|
|
32976
33309
|
SMTPSecure["Tls"] = "tls";
|
|
@@ -33538,6 +33871,15 @@
|
|
|
33538
33871
|
ExecutionStatus["Scheduled"] = "scheduled";
|
|
33539
33872
|
})(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
|
|
33540
33873
|
|
|
33874
|
+
exports.PlatformType = void 0;
|
|
33875
|
+
(function (PlatformType) {
|
|
33876
|
+
PlatformType["Windows"] = "windows";
|
|
33877
|
+
PlatformType["Apple"] = "apple";
|
|
33878
|
+
PlatformType["Android"] = "android";
|
|
33879
|
+
PlatformType["Linux"] = "linux";
|
|
33880
|
+
PlatformType["Web"] = "web";
|
|
33881
|
+
})(exports.PlatformType || (exports.PlatformType = {}));
|
|
33882
|
+
|
|
33541
33883
|
exports.HealthAntivirusStatus = void 0;
|
|
33542
33884
|
(function (HealthAntivirusStatus) {
|
|
33543
33885
|
HealthAntivirusStatus["Disabled"] = "disabled";
|