@appwrite.io/console 4.0.0 → 6.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/CHANGELOG.md +31 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +752 -383
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +752 -384
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +752 -383
- package/docs/examples/domains/update-purchase.md +16 -0
- package/docs/examples/domains/update-transfer-in.md +16 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/docs/examples/{projects/update-webhook.md → webhooks/create.md} +5 -6
- package/docs/examples/{projects/get-webhook.md → webhooks/delete.md} +3 -4
- package/docs/examples/{projects/delete-webhook.md → webhooks/get.md} +3 -4
- package/docs/examples/{projects/list-webhooks.md → webhooks/list.md} +4 -4
- package/docs/examples/{projects/update-webhook-signature.md → webhooks/update-signature.md} +3 -4
- package/docs/examples/{projects/create-webhook.md → webhooks/update.md} +6 -6
- package/package.json +1 -1
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +4 -0
- package/src/enums/build-runtime.ts +86 -0
- package/src/enums/domain-purchase-status.ts +6 -0
- package/src/enums/{domain-transfer-status-status.ts → domain-transfer-status-enum.ts} +1 -1
- package/src/enums/runtime.ts +86 -0
- package/src/enums/runtimes.ts +86 -0
- package/src/enums/scopes.ts +2 -0
- package/src/index.ts +3 -1
- package/src/models.ts +140 -13
- package/src/services/account.ts +2 -2
- package/src/services/domains.ts +136 -10
- package/src/services/functions.ts +52 -24
- package/src/services/organizations.ts +2 -2
- package/src/services/projects.ts +0 -473
- package/src/services/sites.ts +83 -41
- package/src/services/webhooks.ts +451 -0
- package/types/enums/appwrite-migration-resource.d.ts +4 -0
- package/types/enums/build-runtime.d.ts +87 -1
- package/types/enums/domain-purchase-status.d.ts +6 -0
- package/types/enums/{domain-transfer-status-status.d.ts → domain-transfer-status-enum.d.ts} +1 -1
- package/types/enums/runtime.d.ts +87 -1
- package/types/enums/runtimes.d.ts +87 -1
- package/types/enums/scopes.d.ts +2 -0
- package/types/index.d.ts +3 -1
- package/types/models.d.ts +139 -13
- package/types/services/account.d.ts +2 -2
- package/types/services/domains.d.ts +52 -8
- package/types/services/functions.d.ts +20 -8
- package/types/services/organizations.d.ts +2 -2
- package/types/services/projects.d.ts +0 -171
- package/types/services/sites.d.ts +26 -8
- package/types/services/webhooks.d.ts +165 -0
package/dist/iife/sdk.js
CHANGED
|
@@ -4332,7 +4332,7 @@
|
|
|
4332
4332
|
'x-sdk-name': 'Console',
|
|
4333
4333
|
'x-sdk-platform': 'console',
|
|
4334
4334
|
'x-sdk-language': 'web',
|
|
4335
|
-
'x-sdk-version': '
|
|
4335
|
+
'x-sdk-version': '6.0.0',
|
|
4336
4336
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
4337
4337
|
};
|
|
4338
4338
|
this.realtime = {
|
|
@@ -4874,6 +4874,9 @@
|
|
|
4874
4874
|
window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
|
|
4875
4875
|
window.localStorage.setItem('cookieFallback', cookieFallback);
|
|
4876
4876
|
}
|
|
4877
|
+
if (data && typeof data === 'object') {
|
|
4878
|
+
data.toString = () => JSONbig.stringify(data);
|
|
4879
|
+
}
|
|
4877
4880
|
return data;
|
|
4878
4881
|
});
|
|
4879
4882
|
}
|
|
@@ -11622,6 +11625,36 @@
|
|
|
11622
11625
|
};
|
|
11623
11626
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
11624
11627
|
}
|
|
11628
|
+
updatePurchase(paramsOrFirst, ...rest) {
|
|
11629
|
+
let params;
|
|
11630
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11631
|
+
params = (paramsOrFirst || {});
|
|
11632
|
+
}
|
|
11633
|
+
else {
|
|
11634
|
+
params = {
|
|
11635
|
+
domainId: paramsOrFirst,
|
|
11636
|
+
organizationId: rest[0]
|
|
11637
|
+
};
|
|
11638
|
+
}
|
|
11639
|
+
const domainId = params.domainId;
|
|
11640
|
+
const organizationId = params.organizationId;
|
|
11641
|
+
if (typeof domainId === 'undefined') {
|
|
11642
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11643
|
+
}
|
|
11644
|
+
if (typeof organizationId === 'undefined') {
|
|
11645
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11646
|
+
}
|
|
11647
|
+
const apiPath = '/domains/purchases/{domainId}'.replace('{domainId}', domainId);
|
|
11648
|
+
const payload = {};
|
|
11649
|
+
if (typeof organizationId !== 'undefined') {
|
|
11650
|
+
payload['organizationId'] = organizationId;
|
|
11651
|
+
}
|
|
11652
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11653
|
+
const apiHeaders = {
|
|
11654
|
+
'content-type': 'application/json',
|
|
11655
|
+
};
|
|
11656
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
11657
|
+
}
|
|
11625
11658
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
11626
11659
|
let params;
|
|
11627
11660
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -11719,6 +11752,36 @@
|
|
|
11719
11752
|
};
|
|
11720
11753
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
11721
11754
|
}
|
|
11755
|
+
updateTransferIn(paramsOrFirst, ...rest) {
|
|
11756
|
+
let params;
|
|
11757
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11758
|
+
params = (paramsOrFirst || {});
|
|
11759
|
+
}
|
|
11760
|
+
else {
|
|
11761
|
+
params = {
|
|
11762
|
+
domainId: paramsOrFirst,
|
|
11763
|
+
organizationId: rest[0]
|
|
11764
|
+
};
|
|
11765
|
+
}
|
|
11766
|
+
const domainId = params.domainId;
|
|
11767
|
+
const organizationId = params.organizationId;
|
|
11768
|
+
if (typeof domainId === 'undefined') {
|
|
11769
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11770
|
+
}
|
|
11771
|
+
if (typeof organizationId === 'undefined') {
|
|
11772
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
11773
|
+
}
|
|
11774
|
+
const apiPath = '/domains/transfers/in/{domainId}'.replace('{domainId}', domainId);
|
|
11775
|
+
const payload = {};
|
|
11776
|
+
if (typeof organizationId !== 'undefined') {
|
|
11777
|
+
payload['organizationId'] = organizationId;
|
|
11778
|
+
}
|
|
11779
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11780
|
+
const apiHeaders = {
|
|
11781
|
+
'content-type': 'application/json',
|
|
11782
|
+
};
|
|
11783
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
11784
|
+
}
|
|
11722
11785
|
createTransferOut(paramsOrFirst, ...rest) {
|
|
11723
11786
|
let params;
|
|
11724
11787
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -13436,7 +13499,9 @@
|
|
|
13436
13499
|
providerBranch: rest[13],
|
|
13437
13500
|
providerSilentMode: rest[14],
|
|
13438
13501
|
providerRootDirectory: rest[15],
|
|
13439
|
-
|
|
13502
|
+
buildSpecification: rest[16],
|
|
13503
|
+
runtimeSpecification: rest[17],
|
|
13504
|
+
deploymentRetention: rest[18]
|
|
13440
13505
|
};
|
|
13441
13506
|
}
|
|
13442
13507
|
const functionId = params.functionId;
|
|
@@ -13456,7 +13521,9 @@
|
|
|
13456
13521
|
const providerBranch = params.providerBranch;
|
|
13457
13522
|
const providerSilentMode = params.providerSilentMode;
|
|
13458
13523
|
const providerRootDirectory = params.providerRootDirectory;
|
|
13459
|
-
const
|
|
13524
|
+
const buildSpecification = params.buildSpecification;
|
|
13525
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
13526
|
+
const deploymentRetention = params.deploymentRetention;
|
|
13460
13527
|
if (typeof functionId === 'undefined') {
|
|
13461
13528
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
13462
13529
|
}
|
|
@@ -13519,8 +13586,14 @@
|
|
|
13519
13586
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
13520
13587
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
13521
13588
|
}
|
|
13522
|
-
if (typeof
|
|
13523
|
-
payload['
|
|
13589
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
13590
|
+
payload['buildSpecification'] = buildSpecification;
|
|
13591
|
+
}
|
|
13592
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
13593
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
13594
|
+
}
|
|
13595
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
13596
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
13524
13597
|
}
|
|
13525
13598
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13526
13599
|
const apiHeaders = {
|
|
@@ -13678,7 +13751,9 @@
|
|
|
13678
13751
|
providerBranch: rest[13],
|
|
13679
13752
|
providerSilentMode: rest[14],
|
|
13680
13753
|
providerRootDirectory: rest[15],
|
|
13681
|
-
|
|
13754
|
+
buildSpecification: rest[16],
|
|
13755
|
+
runtimeSpecification: rest[17],
|
|
13756
|
+
deploymentRetention: rest[18]
|
|
13682
13757
|
};
|
|
13683
13758
|
}
|
|
13684
13759
|
const functionId = params.functionId;
|
|
@@ -13698,7 +13773,9 @@
|
|
|
13698
13773
|
const providerBranch = params.providerBranch;
|
|
13699
13774
|
const providerSilentMode = params.providerSilentMode;
|
|
13700
13775
|
const providerRootDirectory = params.providerRootDirectory;
|
|
13701
|
-
const
|
|
13776
|
+
const buildSpecification = params.buildSpecification;
|
|
13777
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
13778
|
+
const deploymentRetention = params.deploymentRetention;
|
|
13702
13779
|
if (typeof functionId === 'undefined') {
|
|
13703
13780
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
13704
13781
|
}
|
|
@@ -13755,8 +13832,14 @@
|
|
|
13755
13832
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
13756
13833
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
13757
13834
|
}
|
|
13758
|
-
if (typeof
|
|
13759
|
-
payload['
|
|
13835
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
13836
|
+
payload['buildSpecification'] = buildSpecification;
|
|
13837
|
+
}
|
|
13838
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
13839
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
13840
|
+
}
|
|
13841
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
13842
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
13760
13843
|
}
|
|
13761
13844
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13762
13845
|
const apiHeaders = {
|
|
@@ -22387,24 +22470,35 @@
|
|
|
22387
22470
|
};
|
|
22388
22471
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22389
22472
|
}
|
|
22390
|
-
|
|
22473
|
+
}
|
|
22474
|
+
|
|
22475
|
+
class Proxy {
|
|
22476
|
+
constructor(client) {
|
|
22477
|
+
this.client = client;
|
|
22478
|
+
}
|
|
22479
|
+
listRules(paramsOrFirst, ...rest) {
|
|
22391
22480
|
let params;
|
|
22392
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22481
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22393
22482
|
params = (paramsOrFirst || {});
|
|
22394
22483
|
}
|
|
22395
22484
|
else {
|
|
22396
22485
|
params = {
|
|
22397
|
-
|
|
22398
|
-
|
|
22486
|
+
queries: paramsOrFirst,
|
|
22487
|
+
search: rest[0],
|
|
22488
|
+
total: rest[1]
|
|
22399
22489
|
};
|
|
22400
22490
|
}
|
|
22401
|
-
const
|
|
22491
|
+
const queries = params.queries;
|
|
22492
|
+
const search = params.search;
|
|
22402
22493
|
const total = params.total;
|
|
22403
|
-
|
|
22404
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22405
|
-
}
|
|
22406
|
-
const apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
|
|
22494
|
+
const apiPath = '/proxy/rules';
|
|
22407
22495
|
const payload = {};
|
|
22496
|
+
if (typeof queries !== 'undefined') {
|
|
22497
|
+
payload['queries'] = queries;
|
|
22498
|
+
}
|
|
22499
|
+
if (typeof search !== 'undefined') {
|
|
22500
|
+
payload['search'] = search;
|
|
22501
|
+
}
|
|
22408
22502
|
if (typeof total !== 'undefined') {
|
|
22409
22503
|
payload['total'] = total;
|
|
22410
22504
|
}
|
|
@@ -22412,68 +22506,24 @@
|
|
|
22412
22506
|
const apiHeaders = {};
|
|
22413
22507
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
22414
22508
|
}
|
|
22415
|
-
|
|
22509
|
+
createAPIRule(paramsOrFirst) {
|
|
22416
22510
|
let params;
|
|
22417
22511
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22418
22512
|
params = (paramsOrFirst || {});
|
|
22419
22513
|
}
|
|
22420
22514
|
else {
|
|
22421
22515
|
params = {
|
|
22422
|
-
|
|
22423
|
-
name: rest[0],
|
|
22424
|
-
events: rest[1],
|
|
22425
|
-
url: rest[2],
|
|
22426
|
-
security: rest[3],
|
|
22427
|
-
enabled: rest[4],
|
|
22428
|
-
httpUser: rest[5],
|
|
22429
|
-
httpPass: rest[6]
|
|
22516
|
+
domain: paramsOrFirst
|
|
22430
22517
|
};
|
|
22431
22518
|
}
|
|
22432
|
-
const
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
const url = params.url;
|
|
22436
|
-
const security = params.security;
|
|
22437
|
-
const enabled = params.enabled;
|
|
22438
|
-
const httpUser = params.httpUser;
|
|
22439
|
-
const httpPass = params.httpPass;
|
|
22440
|
-
if (typeof projectId === 'undefined') {
|
|
22441
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22442
|
-
}
|
|
22443
|
-
if (typeof name === 'undefined') {
|
|
22444
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
22445
|
-
}
|
|
22446
|
-
if (typeof events === 'undefined') {
|
|
22447
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
22448
|
-
}
|
|
22449
|
-
if (typeof url === 'undefined') {
|
|
22450
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
22451
|
-
}
|
|
22452
|
-
if (typeof security === 'undefined') {
|
|
22453
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
22519
|
+
const domain = params.domain;
|
|
22520
|
+
if (typeof domain === 'undefined') {
|
|
22521
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22454
22522
|
}
|
|
22455
|
-
const apiPath = '/
|
|
22523
|
+
const apiPath = '/proxy/rules/api';
|
|
22456
22524
|
const payload = {};
|
|
22457
|
-
if (typeof
|
|
22458
|
-
payload['
|
|
22459
|
-
}
|
|
22460
|
-
if (typeof enabled !== 'undefined') {
|
|
22461
|
-
payload['enabled'] = enabled;
|
|
22462
|
-
}
|
|
22463
|
-
if (typeof events !== 'undefined') {
|
|
22464
|
-
payload['events'] = events;
|
|
22465
|
-
}
|
|
22466
|
-
if (typeof url !== 'undefined') {
|
|
22467
|
-
payload['url'] = url;
|
|
22468
|
-
}
|
|
22469
|
-
if (typeof security !== 'undefined') {
|
|
22470
|
-
payload['security'] = security;
|
|
22471
|
-
}
|
|
22472
|
-
if (typeof httpUser !== 'undefined') {
|
|
22473
|
-
payload['httpUser'] = httpUser;
|
|
22474
|
-
}
|
|
22475
|
-
if (typeof httpPass !== 'undefined') {
|
|
22476
|
-
payload['httpPass'] = httpPass;
|
|
22525
|
+
if (typeof domain !== 'undefined') {
|
|
22526
|
+
payload['domain'] = domain;
|
|
22477
22527
|
}
|
|
22478
22528
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22479
22529
|
const apiHeaders = {
|
|
@@ -22481,332 +22531,118 @@
|
|
|
22481
22531
|
};
|
|
22482
22532
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
22483
22533
|
}
|
|
22484
|
-
|
|
22534
|
+
createFunctionRule(paramsOrFirst, ...rest) {
|
|
22485
22535
|
let params;
|
|
22486
22536
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22487
22537
|
params = (paramsOrFirst || {});
|
|
22488
22538
|
}
|
|
22489
22539
|
else {
|
|
22490
22540
|
params = {
|
|
22491
|
-
|
|
22492
|
-
|
|
22541
|
+
domain: paramsOrFirst,
|
|
22542
|
+
functionId: rest[0],
|
|
22543
|
+
branch: rest[1]
|
|
22493
22544
|
};
|
|
22494
22545
|
}
|
|
22495
|
-
const
|
|
22496
|
-
const
|
|
22497
|
-
|
|
22498
|
-
|
|
22546
|
+
const domain = params.domain;
|
|
22547
|
+
const functionId = params.functionId;
|
|
22548
|
+
const branch = params.branch;
|
|
22549
|
+
if (typeof domain === 'undefined') {
|
|
22550
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22499
22551
|
}
|
|
22500
|
-
if (typeof
|
|
22501
|
-
throw new AppwriteException('Missing required parameter: "
|
|
22552
|
+
if (typeof functionId === 'undefined') {
|
|
22553
|
+
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
22502
22554
|
}
|
|
22503
|
-
const apiPath = '/
|
|
22555
|
+
const apiPath = '/proxy/rules/function';
|
|
22504
22556
|
const payload = {};
|
|
22557
|
+
if (typeof domain !== 'undefined') {
|
|
22558
|
+
payload['domain'] = domain;
|
|
22559
|
+
}
|
|
22560
|
+
if (typeof functionId !== 'undefined') {
|
|
22561
|
+
payload['functionId'] = functionId;
|
|
22562
|
+
}
|
|
22563
|
+
if (typeof branch !== 'undefined') {
|
|
22564
|
+
payload['branch'] = branch;
|
|
22565
|
+
}
|
|
22505
22566
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22506
|
-
const apiHeaders = {
|
|
22507
|
-
|
|
22567
|
+
const apiHeaders = {
|
|
22568
|
+
'content-type': 'application/json',
|
|
22569
|
+
};
|
|
22570
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22508
22571
|
}
|
|
22509
|
-
|
|
22572
|
+
createRedirectRule(paramsOrFirst, ...rest) {
|
|
22510
22573
|
let params;
|
|
22511
22574
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22512
22575
|
params = (paramsOrFirst || {});
|
|
22513
22576
|
}
|
|
22514
22577
|
else {
|
|
22515
22578
|
params = {
|
|
22516
|
-
|
|
22517
|
-
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
|
|
22521
|
-
security: rest[4],
|
|
22522
|
-
enabled: rest[5],
|
|
22523
|
-
httpUser: rest[6],
|
|
22524
|
-
httpPass: rest[7]
|
|
22579
|
+
domain: paramsOrFirst,
|
|
22580
|
+
url: rest[0],
|
|
22581
|
+
statusCode: rest[1],
|
|
22582
|
+
resourceId: rest[2],
|
|
22583
|
+
resourceType: rest[3]
|
|
22525
22584
|
};
|
|
22526
22585
|
}
|
|
22527
|
-
const
|
|
22528
|
-
const webhookId = params.webhookId;
|
|
22529
|
-
const name = params.name;
|
|
22530
|
-
const events = params.events;
|
|
22586
|
+
const domain = params.domain;
|
|
22531
22587
|
const url = params.url;
|
|
22532
|
-
const
|
|
22533
|
-
const
|
|
22534
|
-
const
|
|
22535
|
-
|
|
22536
|
-
|
|
22537
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22538
|
-
}
|
|
22539
|
-
if (typeof webhookId === 'undefined') {
|
|
22540
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
22541
|
-
}
|
|
22542
|
-
if (typeof name === 'undefined') {
|
|
22543
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
22544
|
-
}
|
|
22545
|
-
if (typeof events === 'undefined') {
|
|
22546
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
22588
|
+
const statusCode = params.statusCode;
|
|
22589
|
+
const resourceId = params.resourceId;
|
|
22590
|
+
const resourceType = params.resourceType;
|
|
22591
|
+
if (typeof domain === 'undefined') {
|
|
22592
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22547
22593
|
}
|
|
22548
22594
|
if (typeof url === 'undefined') {
|
|
22549
22595
|
throw new AppwriteException('Missing required parameter: "url"');
|
|
22550
22596
|
}
|
|
22551
|
-
if (typeof
|
|
22552
|
-
throw new AppwriteException('Missing required parameter: "
|
|
22597
|
+
if (typeof statusCode === 'undefined') {
|
|
22598
|
+
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
22553
22599
|
}
|
|
22554
|
-
|
|
22555
|
-
|
|
22556
|
-
if (typeof name !== 'undefined') {
|
|
22557
|
-
payload['name'] = name;
|
|
22600
|
+
if (typeof resourceId === 'undefined') {
|
|
22601
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
22558
22602
|
}
|
|
22559
|
-
if (typeof
|
|
22560
|
-
|
|
22603
|
+
if (typeof resourceType === 'undefined') {
|
|
22604
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
22561
22605
|
}
|
|
22562
|
-
|
|
22563
|
-
|
|
22606
|
+
const apiPath = '/proxy/rules/redirect';
|
|
22607
|
+
const payload = {};
|
|
22608
|
+
if (typeof domain !== 'undefined') {
|
|
22609
|
+
payload['domain'] = domain;
|
|
22564
22610
|
}
|
|
22565
22611
|
if (typeof url !== 'undefined') {
|
|
22566
22612
|
payload['url'] = url;
|
|
22567
22613
|
}
|
|
22568
|
-
if (typeof
|
|
22569
|
-
payload['
|
|
22614
|
+
if (typeof statusCode !== 'undefined') {
|
|
22615
|
+
payload['statusCode'] = statusCode;
|
|
22570
22616
|
}
|
|
22571
|
-
if (typeof
|
|
22572
|
-
payload['
|
|
22617
|
+
if (typeof resourceId !== 'undefined') {
|
|
22618
|
+
payload['resourceId'] = resourceId;
|
|
22573
22619
|
}
|
|
22574
|
-
if (typeof
|
|
22575
|
-
payload['
|
|
22620
|
+
if (typeof resourceType !== 'undefined') {
|
|
22621
|
+
payload['resourceType'] = resourceType;
|
|
22576
22622
|
}
|
|
22577
22623
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22578
22624
|
const apiHeaders = {
|
|
22579
22625
|
'content-type': 'application/json',
|
|
22580
22626
|
};
|
|
22581
|
-
return this.client.call('
|
|
22627
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22582
22628
|
}
|
|
22583
|
-
|
|
22629
|
+
createSiteRule(paramsOrFirst, ...rest) {
|
|
22584
22630
|
let params;
|
|
22585
22631
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22586
22632
|
params = (paramsOrFirst || {});
|
|
22587
22633
|
}
|
|
22588
22634
|
else {
|
|
22589
22635
|
params = {
|
|
22590
|
-
|
|
22591
|
-
|
|
22636
|
+
domain: paramsOrFirst,
|
|
22637
|
+
siteId: rest[0],
|
|
22638
|
+
branch: rest[1]
|
|
22592
22639
|
};
|
|
22593
22640
|
}
|
|
22594
|
-
const
|
|
22595
|
-
const
|
|
22596
|
-
|
|
22597
|
-
|
|
22598
|
-
|
|
22599
|
-
if (typeof webhookId === 'undefined') {
|
|
22600
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
22601
|
-
}
|
|
22602
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
22603
|
-
const payload = {};
|
|
22604
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22605
|
-
const apiHeaders = {
|
|
22606
|
-
'content-type': 'application/json',
|
|
22607
|
-
};
|
|
22608
|
-
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22609
|
-
}
|
|
22610
|
-
updateWebhookSignature(paramsOrFirst, ...rest) {
|
|
22611
|
-
let params;
|
|
22612
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22613
|
-
params = (paramsOrFirst || {});
|
|
22614
|
-
}
|
|
22615
|
-
else {
|
|
22616
|
-
params = {
|
|
22617
|
-
projectId: paramsOrFirst,
|
|
22618
|
-
webhookId: rest[0]
|
|
22619
|
-
};
|
|
22620
|
-
}
|
|
22621
|
-
const projectId = params.projectId;
|
|
22622
|
-
const webhookId = params.webhookId;
|
|
22623
|
-
if (typeof projectId === 'undefined') {
|
|
22624
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
22625
|
-
}
|
|
22626
|
-
if (typeof webhookId === 'undefined') {
|
|
22627
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
22628
|
-
}
|
|
22629
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
22630
|
-
const payload = {};
|
|
22631
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22632
|
-
const apiHeaders = {
|
|
22633
|
-
'content-type': 'application/json',
|
|
22634
|
-
};
|
|
22635
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22636
|
-
}
|
|
22637
|
-
}
|
|
22638
|
-
|
|
22639
|
-
class Proxy {
|
|
22640
|
-
constructor(client) {
|
|
22641
|
-
this.client = client;
|
|
22642
|
-
}
|
|
22643
|
-
listRules(paramsOrFirst, ...rest) {
|
|
22644
|
-
let params;
|
|
22645
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22646
|
-
params = (paramsOrFirst || {});
|
|
22647
|
-
}
|
|
22648
|
-
else {
|
|
22649
|
-
params = {
|
|
22650
|
-
queries: paramsOrFirst,
|
|
22651
|
-
search: rest[0],
|
|
22652
|
-
total: rest[1]
|
|
22653
|
-
};
|
|
22654
|
-
}
|
|
22655
|
-
const queries = params.queries;
|
|
22656
|
-
const search = params.search;
|
|
22657
|
-
const total = params.total;
|
|
22658
|
-
const apiPath = '/proxy/rules';
|
|
22659
|
-
const payload = {};
|
|
22660
|
-
if (typeof queries !== 'undefined') {
|
|
22661
|
-
payload['queries'] = queries;
|
|
22662
|
-
}
|
|
22663
|
-
if (typeof search !== 'undefined') {
|
|
22664
|
-
payload['search'] = search;
|
|
22665
|
-
}
|
|
22666
|
-
if (typeof total !== 'undefined') {
|
|
22667
|
-
payload['total'] = total;
|
|
22668
|
-
}
|
|
22669
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22670
|
-
const apiHeaders = {};
|
|
22671
|
-
return this.client.call('get', uri, apiHeaders, payload);
|
|
22672
|
-
}
|
|
22673
|
-
createAPIRule(paramsOrFirst) {
|
|
22674
|
-
let params;
|
|
22675
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22676
|
-
params = (paramsOrFirst || {});
|
|
22677
|
-
}
|
|
22678
|
-
else {
|
|
22679
|
-
params = {
|
|
22680
|
-
domain: paramsOrFirst
|
|
22681
|
-
};
|
|
22682
|
-
}
|
|
22683
|
-
const domain = params.domain;
|
|
22684
|
-
if (typeof domain === 'undefined') {
|
|
22685
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22686
|
-
}
|
|
22687
|
-
const apiPath = '/proxy/rules/api';
|
|
22688
|
-
const payload = {};
|
|
22689
|
-
if (typeof domain !== 'undefined') {
|
|
22690
|
-
payload['domain'] = domain;
|
|
22691
|
-
}
|
|
22692
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22693
|
-
const apiHeaders = {
|
|
22694
|
-
'content-type': 'application/json',
|
|
22695
|
-
};
|
|
22696
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
22697
|
-
}
|
|
22698
|
-
createFunctionRule(paramsOrFirst, ...rest) {
|
|
22699
|
-
let params;
|
|
22700
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22701
|
-
params = (paramsOrFirst || {});
|
|
22702
|
-
}
|
|
22703
|
-
else {
|
|
22704
|
-
params = {
|
|
22705
|
-
domain: paramsOrFirst,
|
|
22706
|
-
functionId: rest[0],
|
|
22707
|
-
branch: rest[1]
|
|
22708
|
-
};
|
|
22709
|
-
}
|
|
22710
|
-
const domain = params.domain;
|
|
22711
|
-
const functionId = params.functionId;
|
|
22712
|
-
const branch = params.branch;
|
|
22713
|
-
if (typeof domain === 'undefined') {
|
|
22714
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22715
|
-
}
|
|
22716
|
-
if (typeof functionId === 'undefined') {
|
|
22717
|
-
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
22718
|
-
}
|
|
22719
|
-
const apiPath = '/proxy/rules/function';
|
|
22720
|
-
const payload = {};
|
|
22721
|
-
if (typeof domain !== 'undefined') {
|
|
22722
|
-
payload['domain'] = domain;
|
|
22723
|
-
}
|
|
22724
|
-
if (typeof functionId !== 'undefined') {
|
|
22725
|
-
payload['functionId'] = functionId;
|
|
22726
|
-
}
|
|
22727
|
-
if (typeof branch !== 'undefined') {
|
|
22728
|
-
payload['branch'] = branch;
|
|
22729
|
-
}
|
|
22730
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22731
|
-
const apiHeaders = {
|
|
22732
|
-
'content-type': 'application/json',
|
|
22733
|
-
};
|
|
22734
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
22735
|
-
}
|
|
22736
|
-
createRedirectRule(paramsOrFirst, ...rest) {
|
|
22737
|
-
let params;
|
|
22738
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22739
|
-
params = (paramsOrFirst || {});
|
|
22740
|
-
}
|
|
22741
|
-
else {
|
|
22742
|
-
params = {
|
|
22743
|
-
domain: paramsOrFirst,
|
|
22744
|
-
url: rest[0],
|
|
22745
|
-
statusCode: rest[1],
|
|
22746
|
-
resourceId: rest[2],
|
|
22747
|
-
resourceType: rest[3]
|
|
22748
|
-
};
|
|
22749
|
-
}
|
|
22750
|
-
const domain = params.domain;
|
|
22751
|
-
const url = params.url;
|
|
22752
|
-
const statusCode = params.statusCode;
|
|
22753
|
-
const resourceId = params.resourceId;
|
|
22754
|
-
const resourceType = params.resourceType;
|
|
22755
|
-
if (typeof domain === 'undefined') {
|
|
22756
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22757
|
-
}
|
|
22758
|
-
if (typeof url === 'undefined') {
|
|
22759
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
22760
|
-
}
|
|
22761
|
-
if (typeof statusCode === 'undefined') {
|
|
22762
|
-
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
22763
|
-
}
|
|
22764
|
-
if (typeof resourceId === 'undefined') {
|
|
22765
|
-
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
22766
|
-
}
|
|
22767
|
-
if (typeof resourceType === 'undefined') {
|
|
22768
|
-
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
22769
|
-
}
|
|
22770
|
-
const apiPath = '/proxy/rules/redirect';
|
|
22771
|
-
const payload = {};
|
|
22772
|
-
if (typeof domain !== 'undefined') {
|
|
22773
|
-
payload['domain'] = domain;
|
|
22774
|
-
}
|
|
22775
|
-
if (typeof url !== 'undefined') {
|
|
22776
|
-
payload['url'] = url;
|
|
22777
|
-
}
|
|
22778
|
-
if (typeof statusCode !== 'undefined') {
|
|
22779
|
-
payload['statusCode'] = statusCode;
|
|
22780
|
-
}
|
|
22781
|
-
if (typeof resourceId !== 'undefined') {
|
|
22782
|
-
payload['resourceId'] = resourceId;
|
|
22783
|
-
}
|
|
22784
|
-
if (typeof resourceType !== 'undefined') {
|
|
22785
|
-
payload['resourceType'] = resourceType;
|
|
22786
|
-
}
|
|
22787
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22788
|
-
const apiHeaders = {
|
|
22789
|
-
'content-type': 'application/json',
|
|
22790
|
-
};
|
|
22791
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
22792
|
-
}
|
|
22793
|
-
createSiteRule(paramsOrFirst, ...rest) {
|
|
22794
|
-
let params;
|
|
22795
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22796
|
-
params = (paramsOrFirst || {});
|
|
22797
|
-
}
|
|
22798
|
-
else {
|
|
22799
|
-
params = {
|
|
22800
|
-
domain: paramsOrFirst,
|
|
22801
|
-
siteId: rest[0],
|
|
22802
|
-
branch: rest[1]
|
|
22803
|
-
};
|
|
22804
|
-
}
|
|
22805
|
-
const domain = params.domain;
|
|
22806
|
-
const siteId = params.siteId;
|
|
22807
|
-
const branch = params.branch;
|
|
22808
|
-
if (typeof domain === 'undefined') {
|
|
22809
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22641
|
+
const domain = params.domain;
|
|
22642
|
+
const siteId = params.siteId;
|
|
22643
|
+
const branch = params.branch;
|
|
22644
|
+
if (typeof domain === 'undefined') {
|
|
22645
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
22810
22646
|
}
|
|
22811
22647
|
if (typeof siteId === 'undefined') {
|
|
22812
22648
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -22944,15 +22780,18 @@
|
|
|
22944
22780
|
timeout: rest[5],
|
|
22945
22781
|
installCommand: rest[6],
|
|
22946
22782
|
buildCommand: rest[7],
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22783
|
+
startCommand: rest[8],
|
|
22784
|
+
outputDirectory: rest[9],
|
|
22785
|
+
adapter: rest[10],
|
|
22786
|
+
installationId: rest[11],
|
|
22787
|
+
fallbackFile: rest[12],
|
|
22788
|
+
providerRepositoryId: rest[13],
|
|
22789
|
+
providerBranch: rest[14],
|
|
22790
|
+
providerSilentMode: rest[15],
|
|
22791
|
+
providerRootDirectory: rest[16],
|
|
22792
|
+
buildSpecification: rest[17],
|
|
22793
|
+
runtimeSpecification: rest[18],
|
|
22794
|
+
deploymentRetention: rest[19]
|
|
22956
22795
|
};
|
|
22957
22796
|
}
|
|
22958
22797
|
const siteId = params.siteId;
|
|
@@ -22964,6 +22803,7 @@
|
|
|
22964
22803
|
const timeout = params.timeout;
|
|
22965
22804
|
const installCommand = params.installCommand;
|
|
22966
22805
|
const buildCommand = params.buildCommand;
|
|
22806
|
+
const startCommand = params.startCommand;
|
|
22967
22807
|
const outputDirectory = params.outputDirectory;
|
|
22968
22808
|
const adapter = params.adapter;
|
|
22969
22809
|
const installationId = params.installationId;
|
|
@@ -22972,7 +22812,9 @@
|
|
|
22972
22812
|
const providerBranch = params.providerBranch;
|
|
22973
22813
|
const providerSilentMode = params.providerSilentMode;
|
|
22974
22814
|
const providerRootDirectory = params.providerRootDirectory;
|
|
22975
|
-
const
|
|
22815
|
+
const buildSpecification = params.buildSpecification;
|
|
22816
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
22817
|
+
const deploymentRetention = params.deploymentRetention;
|
|
22976
22818
|
if (typeof siteId === 'undefined') {
|
|
22977
22819
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
22978
22820
|
}
|
|
@@ -23011,6 +22853,9 @@
|
|
|
23011
22853
|
if (typeof buildCommand !== 'undefined') {
|
|
23012
22854
|
payload['buildCommand'] = buildCommand;
|
|
23013
22855
|
}
|
|
22856
|
+
if (typeof startCommand !== 'undefined') {
|
|
22857
|
+
payload['startCommand'] = startCommand;
|
|
22858
|
+
}
|
|
23014
22859
|
if (typeof outputDirectory !== 'undefined') {
|
|
23015
22860
|
payload['outputDirectory'] = outputDirectory;
|
|
23016
22861
|
}
|
|
@@ -23038,8 +22883,14 @@
|
|
|
23038
22883
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
23039
22884
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
23040
22885
|
}
|
|
23041
|
-
if (typeof
|
|
23042
|
-
payload['
|
|
22886
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
22887
|
+
payload['buildSpecification'] = buildSpecification;
|
|
22888
|
+
}
|
|
22889
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
22890
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
22891
|
+
}
|
|
22892
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
22893
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
23043
22894
|
}
|
|
23044
22895
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23045
22896
|
const apiHeaders = {
|
|
@@ -23183,16 +23034,19 @@
|
|
|
23183
23034
|
timeout: rest[4],
|
|
23184
23035
|
installCommand: rest[5],
|
|
23185
23036
|
buildCommand: rest[6],
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
|
-
|
|
23190
|
-
|
|
23191
|
-
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
|
|
23037
|
+
startCommand: rest[7],
|
|
23038
|
+
outputDirectory: rest[8],
|
|
23039
|
+
buildRuntime: rest[9],
|
|
23040
|
+
adapter: rest[10],
|
|
23041
|
+
fallbackFile: rest[11],
|
|
23042
|
+
installationId: rest[12],
|
|
23043
|
+
providerRepositoryId: rest[13],
|
|
23044
|
+
providerBranch: rest[14],
|
|
23045
|
+
providerSilentMode: rest[15],
|
|
23046
|
+
providerRootDirectory: rest[16],
|
|
23047
|
+
buildSpecification: rest[17],
|
|
23048
|
+
runtimeSpecification: rest[18],
|
|
23049
|
+
deploymentRetention: rest[19]
|
|
23196
23050
|
};
|
|
23197
23051
|
}
|
|
23198
23052
|
const siteId = params.siteId;
|
|
@@ -23203,6 +23057,7 @@
|
|
|
23203
23057
|
const timeout = params.timeout;
|
|
23204
23058
|
const installCommand = params.installCommand;
|
|
23205
23059
|
const buildCommand = params.buildCommand;
|
|
23060
|
+
const startCommand = params.startCommand;
|
|
23206
23061
|
const outputDirectory = params.outputDirectory;
|
|
23207
23062
|
const buildRuntime = params.buildRuntime;
|
|
23208
23063
|
const adapter = params.adapter;
|
|
@@ -23212,7 +23067,9 @@
|
|
|
23212
23067
|
const providerBranch = params.providerBranch;
|
|
23213
23068
|
const providerSilentMode = params.providerSilentMode;
|
|
23214
23069
|
const providerRootDirectory = params.providerRootDirectory;
|
|
23215
|
-
const
|
|
23070
|
+
const buildSpecification = params.buildSpecification;
|
|
23071
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
23072
|
+
const deploymentRetention = params.deploymentRetention;
|
|
23216
23073
|
if (typeof siteId === 'undefined') {
|
|
23217
23074
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
23218
23075
|
}
|
|
@@ -23245,6 +23102,9 @@
|
|
|
23245
23102
|
if (typeof buildCommand !== 'undefined') {
|
|
23246
23103
|
payload['buildCommand'] = buildCommand;
|
|
23247
23104
|
}
|
|
23105
|
+
if (typeof startCommand !== 'undefined') {
|
|
23106
|
+
payload['startCommand'] = startCommand;
|
|
23107
|
+
}
|
|
23248
23108
|
if (typeof outputDirectory !== 'undefined') {
|
|
23249
23109
|
payload['outputDirectory'] = outputDirectory;
|
|
23250
23110
|
}
|
|
@@ -23272,8 +23132,14 @@
|
|
|
23272
23132
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
23273
23133
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
23274
23134
|
}
|
|
23275
|
-
if (typeof
|
|
23276
|
-
payload['
|
|
23135
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
23136
|
+
payload['buildSpecification'] = buildSpecification;
|
|
23137
|
+
}
|
|
23138
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
23139
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
23140
|
+
}
|
|
23141
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
23142
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
23277
23143
|
}
|
|
23278
23144
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23279
23145
|
const apiHeaders = {
|
|
@@ -30309,6 +30175,236 @@
|
|
|
30309
30175
|
}
|
|
30310
30176
|
}
|
|
30311
30177
|
|
|
30178
|
+
class Webhooks {
|
|
30179
|
+
constructor(client) {
|
|
30180
|
+
this.client = client;
|
|
30181
|
+
}
|
|
30182
|
+
list(paramsOrFirst, ...rest) {
|
|
30183
|
+
let params;
|
|
30184
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30185
|
+
params = (paramsOrFirst || {});
|
|
30186
|
+
}
|
|
30187
|
+
else {
|
|
30188
|
+
params = {
|
|
30189
|
+
queries: paramsOrFirst,
|
|
30190
|
+
total: rest[0]
|
|
30191
|
+
};
|
|
30192
|
+
}
|
|
30193
|
+
const queries = params.queries;
|
|
30194
|
+
const total = params.total;
|
|
30195
|
+
const apiPath = '/webhooks';
|
|
30196
|
+
const payload = {};
|
|
30197
|
+
if (typeof queries !== 'undefined') {
|
|
30198
|
+
payload['queries'] = queries;
|
|
30199
|
+
}
|
|
30200
|
+
if (typeof total !== 'undefined') {
|
|
30201
|
+
payload['total'] = total;
|
|
30202
|
+
}
|
|
30203
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30204
|
+
const apiHeaders = {};
|
|
30205
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
30206
|
+
}
|
|
30207
|
+
create(paramsOrFirst, ...rest) {
|
|
30208
|
+
let params;
|
|
30209
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30210
|
+
params = (paramsOrFirst || {});
|
|
30211
|
+
}
|
|
30212
|
+
else {
|
|
30213
|
+
params = {
|
|
30214
|
+
webhookId: paramsOrFirst,
|
|
30215
|
+
url: rest[0],
|
|
30216
|
+
name: rest[1],
|
|
30217
|
+
events: rest[2],
|
|
30218
|
+
enabled: rest[3],
|
|
30219
|
+
security: rest[4],
|
|
30220
|
+
httpUser: rest[5],
|
|
30221
|
+
httpPass: rest[6]
|
|
30222
|
+
};
|
|
30223
|
+
}
|
|
30224
|
+
const webhookId = params.webhookId;
|
|
30225
|
+
const url = params.url;
|
|
30226
|
+
const name = params.name;
|
|
30227
|
+
const events = params.events;
|
|
30228
|
+
const enabled = params.enabled;
|
|
30229
|
+
const security = params.security;
|
|
30230
|
+
const httpUser = params.httpUser;
|
|
30231
|
+
const httpPass = params.httpPass;
|
|
30232
|
+
if (typeof webhookId === 'undefined') {
|
|
30233
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30234
|
+
}
|
|
30235
|
+
if (typeof url === 'undefined') {
|
|
30236
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
30237
|
+
}
|
|
30238
|
+
if (typeof name === 'undefined') {
|
|
30239
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
30240
|
+
}
|
|
30241
|
+
if (typeof events === 'undefined') {
|
|
30242
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
30243
|
+
}
|
|
30244
|
+
const apiPath = '/webhooks';
|
|
30245
|
+
const payload = {};
|
|
30246
|
+
if (typeof webhookId !== 'undefined') {
|
|
30247
|
+
payload['webhookId'] = webhookId;
|
|
30248
|
+
}
|
|
30249
|
+
if (typeof url !== 'undefined') {
|
|
30250
|
+
payload['url'] = url;
|
|
30251
|
+
}
|
|
30252
|
+
if (typeof name !== 'undefined') {
|
|
30253
|
+
payload['name'] = name;
|
|
30254
|
+
}
|
|
30255
|
+
if (typeof events !== 'undefined') {
|
|
30256
|
+
payload['events'] = events;
|
|
30257
|
+
}
|
|
30258
|
+
if (typeof enabled !== 'undefined') {
|
|
30259
|
+
payload['enabled'] = enabled;
|
|
30260
|
+
}
|
|
30261
|
+
if (typeof security !== 'undefined') {
|
|
30262
|
+
payload['security'] = security;
|
|
30263
|
+
}
|
|
30264
|
+
if (typeof httpUser !== 'undefined') {
|
|
30265
|
+
payload['httpUser'] = httpUser;
|
|
30266
|
+
}
|
|
30267
|
+
if (typeof httpPass !== 'undefined') {
|
|
30268
|
+
payload['httpPass'] = httpPass;
|
|
30269
|
+
}
|
|
30270
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30271
|
+
const apiHeaders = {
|
|
30272
|
+
'content-type': 'application/json',
|
|
30273
|
+
};
|
|
30274
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
30275
|
+
}
|
|
30276
|
+
get(paramsOrFirst) {
|
|
30277
|
+
let params;
|
|
30278
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30279
|
+
params = (paramsOrFirst || {});
|
|
30280
|
+
}
|
|
30281
|
+
else {
|
|
30282
|
+
params = {
|
|
30283
|
+
webhookId: paramsOrFirst
|
|
30284
|
+
};
|
|
30285
|
+
}
|
|
30286
|
+
const webhookId = params.webhookId;
|
|
30287
|
+
if (typeof webhookId === 'undefined') {
|
|
30288
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30289
|
+
}
|
|
30290
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
30291
|
+
const payload = {};
|
|
30292
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30293
|
+
const apiHeaders = {};
|
|
30294
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
30295
|
+
}
|
|
30296
|
+
update(paramsOrFirst, ...rest) {
|
|
30297
|
+
let params;
|
|
30298
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30299
|
+
params = (paramsOrFirst || {});
|
|
30300
|
+
}
|
|
30301
|
+
else {
|
|
30302
|
+
params = {
|
|
30303
|
+
webhookId: paramsOrFirst,
|
|
30304
|
+
name: rest[0],
|
|
30305
|
+
url: rest[1],
|
|
30306
|
+
events: rest[2],
|
|
30307
|
+
enabled: rest[3],
|
|
30308
|
+
security: rest[4],
|
|
30309
|
+
httpUser: rest[5],
|
|
30310
|
+
httpPass: rest[6]
|
|
30311
|
+
};
|
|
30312
|
+
}
|
|
30313
|
+
const webhookId = params.webhookId;
|
|
30314
|
+
const name = params.name;
|
|
30315
|
+
const url = params.url;
|
|
30316
|
+
const events = params.events;
|
|
30317
|
+
const enabled = params.enabled;
|
|
30318
|
+
const security = params.security;
|
|
30319
|
+
const httpUser = params.httpUser;
|
|
30320
|
+
const httpPass = params.httpPass;
|
|
30321
|
+
if (typeof webhookId === 'undefined') {
|
|
30322
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30323
|
+
}
|
|
30324
|
+
if (typeof name === 'undefined') {
|
|
30325
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
30326
|
+
}
|
|
30327
|
+
if (typeof url === 'undefined') {
|
|
30328
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
30329
|
+
}
|
|
30330
|
+
if (typeof events === 'undefined') {
|
|
30331
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
30332
|
+
}
|
|
30333
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
30334
|
+
const payload = {};
|
|
30335
|
+
if (typeof name !== 'undefined') {
|
|
30336
|
+
payload['name'] = name;
|
|
30337
|
+
}
|
|
30338
|
+
if (typeof url !== 'undefined') {
|
|
30339
|
+
payload['url'] = url;
|
|
30340
|
+
}
|
|
30341
|
+
if (typeof events !== 'undefined') {
|
|
30342
|
+
payload['events'] = events;
|
|
30343
|
+
}
|
|
30344
|
+
if (typeof enabled !== 'undefined') {
|
|
30345
|
+
payload['enabled'] = enabled;
|
|
30346
|
+
}
|
|
30347
|
+
if (typeof security !== 'undefined') {
|
|
30348
|
+
payload['security'] = security;
|
|
30349
|
+
}
|
|
30350
|
+
if (typeof httpUser !== 'undefined') {
|
|
30351
|
+
payload['httpUser'] = httpUser;
|
|
30352
|
+
}
|
|
30353
|
+
if (typeof httpPass !== 'undefined') {
|
|
30354
|
+
payload['httpPass'] = httpPass;
|
|
30355
|
+
}
|
|
30356
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30357
|
+
const apiHeaders = {
|
|
30358
|
+
'content-type': 'application/json',
|
|
30359
|
+
};
|
|
30360
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
30361
|
+
}
|
|
30362
|
+
delete(paramsOrFirst) {
|
|
30363
|
+
let params;
|
|
30364
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30365
|
+
params = (paramsOrFirst || {});
|
|
30366
|
+
}
|
|
30367
|
+
else {
|
|
30368
|
+
params = {
|
|
30369
|
+
webhookId: paramsOrFirst
|
|
30370
|
+
};
|
|
30371
|
+
}
|
|
30372
|
+
const webhookId = params.webhookId;
|
|
30373
|
+
if (typeof webhookId === 'undefined') {
|
|
30374
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30375
|
+
}
|
|
30376
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
30377
|
+
const payload = {};
|
|
30378
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30379
|
+
const apiHeaders = {
|
|
30380
|
+
'content-type': 'application/json',
|
|
30381
|
+
};
|
|
30382
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
30383
|
+
}
|
|
30384
|
+
updateSignature(paramsOrFirst) {
|
|
30385
|
+
let params;
|
|
30386
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30387
|
+
params = (paramsOrFirst || {});
|
|
30388
|
+
}
|
|
30389
|
+
else {
|
|
30390
|
+
params = {
|
|
30391
|
+
webhookId: paramsOrFirst
|
|
30392
|
+
};
|
|
30393
|
+
}
|
|
30394
|
+
const webhookId = params.webhookId;
|
|
30395
|
+
if (typeof webhookId === 'undefined') {
|
|
30396
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
30397
|
+
}
|
|
30398
|
+
const apiPath = '/webhooks/{webhookId}/signature'.replace('{webhookId}', webhookId);
|
|
30399
|
+
const payload = {};
|
|
30400
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30401
|
+
const apiHeaders = {
|
|
30402
|
+
'content-type': 'application/json',
|
|
30403
|
+
};
|
|
30404
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
30405
|
+
}
|
|
30406
|
+
}
|
|
30407
|
+
|
|
30312
30408
|
var RealtimeCode;
|
|
30313
30409
|
(function (RealtimeCode) {
|
|
30314
30410
|
RealtimeCode[RealtimeCode["NORMAL_CLOSURE"] = 1000] = "NORMAL_CLOSURE";
|
|
@@ -31328,6 +31424,8 @@
|
|
|
31328
31424
|
Scopes["AssistantRead"] = "assistant.read";
|
|
31329
31425
|
Scopes["TokensRead"] = "tokens.read";
|
|
31330
31426
|
Scopes["TokensWrite"] = "tokens.write";
|
|
31427
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
31428
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
31331
31429
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
31332
31430
|
Scopes["PoliciesRead"] = "policies.read";
|
|
31333
31431
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -32253,6 +32351,92 @@
|
|
|
32253
32351
|
Runtime["Flutter332"] = "flutter-3.32";
|
|
32254
32352
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
32255
32353
|
Runtime["Flutter338"] = "flutter-3.38";
|
|
32354
|
+
Runtime["Node145rc"] = "node-14.5-rc";
|
|
32355
|
+
Runtime["Node160rc"] = "node-16.0-rc";
|
|
32356
|
+
Runtime["Node180rc"] = "node-18.0-rc";
|
|
32357
|
+
Runtime["Node190rc"] = "node-19.0-rc";
|
|
32358
|
+
Runtime["Node200rc"] = "node-20.0-rc";
|
|
32359
|
+
Runtime["Node210rc"] = "node-21.0-rc";
|
|
32360
|
+
Runtime["Node22rc"] = "node-22-rc";
|
|
32361
|
+
Runtime["Node23rc"] = "node-23-rc";
|
|
32362
|
+
Runtime["Node24rc"] = "node-24-rc";
|
|
32363
|
+
Runtime["Node25rc"] = "node-25-rc";
|
|
32364
|
+
Runtime["Php80rc"] = "php-8.0-rc";
|
|
32365
|
+
Runtime["Php81rc"] = "php-8.1-rc";
|
|
32366
|
+
Runtime["Php82rc"] = "php-8.2-rc";
|
|
32367
|
+
Runtime["Php83rc"] = "php-8.3-rc";
|
|
32368
|
+
Runtime["Php84rc"] = "php-8.4-rc";
|
|
32369
|
+
Runtime["Ruby30rc"] = "ruby-3.0-rc";
|
|
32370
|
+
Runtime["Ruby31rc"] = "ruby-3.1-rc";
|
|
32371
|
+
Runtime["Ruby32rc"] = "ruby-3.2-rc";
|
|
32372
|
+
Runtime["Ruby33rc"] = "ruby-3.3-rc";
|
|
32373
|
+
Runtime["Ruby34rc"] = "ruby-3.4-rc";
|
|
32374
|
+
Runtime["Ruby40rc"] = "ruby-4.0-rc";
|
|
32375
|
+
Runtime["Python38rc"] = "python-3.8-rc";
|
|
32376
|
+
Runtime["Python39rc"] = "python-3.9-rc";
|
|
32377
|
+
Runtime["Python310rc"] = "python-3.10-rc";
|
|
32378
|
+
Runtime["Python311rc"] = "python-3.11-rc";
|
|
32379
|
+
Runtime["Python312rc"] = "python-3.12-rc";
|
|
32380
|
+
Runtime["Python313rc"] = "python-3.13-rc";
|
|
32381
|
+
Runtime["Python314rc"] = "python-3.14-rc";
|
|
32382
|
+
Runtime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
32383
|
+
Runtime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
32384
|
+
Runtime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
32385
|
+
Runtime["Deno140rc"] = "deno-1.40-rc";
|
|
32386
|
+
Runtime["Deno146rc"] = "deno-1.46-rc";
|
|
32387
|
+
Runtime["Deno20rc"] = "deno-2.0-rc";
|
|
32388
|
+
Runtime["Deno25rc"] = "deno-2.5-rc";
|
|
32389
|
+
Runtime["Deno26rc"] = "deno-2.6-rc";
|
|
32390
|
+
Runtime["Dart215rc"] = "dart-2.15-rc";
|
|
32391
|
+
Runtime["Dart216rc"] = "dart-2.16-rc";
|
|
32392
|
+
Runtime["Dart217rc"] = "dart-2.17-rc";
|
|
32393
|
+
Runtime["Dart218rc"] = "dart-2.18-rc";
|
|
32394
|
+
Runtime["Dart219rc"] = "dart-2.19-rc";
|
|
32395
|
+
Runtime["Dart30rc"] = "dart-3.0-rc";
|
|
32396
|
+
Runtime["Dart31rc"] = "dart-3.1-rc";
|
|
32397
|
+
Runtime["Dart33rc"] = "dart-3.3-rc";
|
|
32398
|
+
Runtime["Dart35rc"] = "dart-3.5-rc";
|
|
32399
|
+
Runtime["Dart38rc"] = "dart-3.8-rc";
|
|
32400
|
+
Runtime["Dart39rc"] = "dart-3.9-rc";
|
|
32401
|
+
Runtime["Dart310rc"] = "dart-3.10-rc";
|
|
32402
|
+
Runtime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
32403
|
+
Runtime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
32404
|
+
Runtime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
32405
|
+
Runtime["Dotnet10rc"] = "dotnet-10-rc";
|
|
32406
|
+
Runtime["Java80rc"] = "java-8.0-rc";
|
|
32407
|
+
Runtime["Java110rc"] = "java-11.0-rc";
|
|
32408
|
+
Runtime["Java170rc"] = "java-17.0-rc";
|
|
32409
|
+
Runtime["Java180rc"] = "java-18.0-rc";
|
|
32410
|
+
Runtime["Java210rc"] = "java-21.0-rc";
|
|
32411
|
+
Runtime["Java22rc"] = "java-22-rc";
|
|
32412
|
+
Runtime["Java25rc"] = "java-25-rc";
|
|
32413
|
+
Runtime["Swift55rc"] = "swift-5.5-rc";
|
|
32414
|
+
Runtime["Swift58rc"] = "swift-5.8-rc";
|
|
32415
|
+
Runtime["Swift59rc"] = "swift-5.9-rc";
|
|
32416
|
+
Runtime["Swift510rc"] = "swift-5.10-rc";
|
|
32417
|
+
Runtime["Swift62rc"] = "swift-6.2-rc";
|
|
32418
|
+
Runtime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
32419
|
+
Runtime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
32420
|
+
Runtime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
32421
|
+
Runtime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
32422
|
+
Runtime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
32423
|
+
Runtime["Cpp17rc"] = "cpp-17-rc";
|
|
32424
|
+
Runtime["Cpp20rc"] = "cpp-20-rc";
|
|
32425
|
+
Runtime["Bun10rc"] = "bun-1.0-rc";
|
|
32426
|
+
Runtime["Bun11rc"] = "bun-1.1-rc";
|
|
32427
|
+
Runtime["Bun12rc"] = "bun-1.2-rc";
|
|
32428
|
+
Runtime["Bun13rc"] = "bun-1.3-rc";
|
|
32429
|
+
Runtime["Go123rc"] = "go-1.23-rc";
|
|
32430
|
+
Runtime["Go124rc"] = "go-1.24-rc";
|
|
32431
|
+
Runtime["Go125rc"] = "go-1.25-rc";
|
|
32432
|
+
Runtime["Go126rc"] = "go-1.26-rc";
|
|
32433
|
+
Runtime["Static1rc"] = "static-1-rc";
|
|
32434
|
+
Runtime["Flutter324rc"] = "flutter-3.24-rc";
|
|
32435
|
+
Runtime["Flutter327rc"] = "flutter-3.27-rc";
|
|
32436
|
+
Runtime["Flutter329rc"] = "flutter-3.29-rc";
|
|
32437
|
+
Runtime["Flutter332rc"] = "flutter-3.32-rc";
|
|
32438
|
+
Runtime["Flutter335rc"] = "flutter-3.35-rc";
|
|
32439
|
+
Runtime["Flutter338rc"] = "flutter-3.38-rc";
|
|
32256
32440
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
32257
32441
|
|
|
32258
32442
|
exports.Runtimes = void 0;
|
|
@@ -32343,6 +32527,92 @@
|
|
|
32343
32527
|
Runtimes["Flutter332"] = "flutter-3.32";
|
|
32344
32528
|
Runtimes["Flutter335"] = "flutter-3.35";
|
|
32345
32529
|
Runtimes["Flutter338"] = "flutter-3.38";
|
|
32530
|
+
Runtimes["Node145rc"] = "node-14.5-rc";
|
|
32531
|
+
Runtimes["Node160rc"] = "node-16.0-rc";
|
|
32532
|
+
Runtimes["Node180rc"] = "node-18.0-rc";
|
|
32533
|
+
Runtimes["Node190rc"] = "node-19.0-rc";
|
|
32534
|
+
Runtimes["Node200rc"] = "node-20.0-rc";
|
|
32535
|
+
Runtimes["Node210rc"] = "node-21.0-rc";
|
|
32536
|
+
Runtimes["Node22rc"] = "node-22-rc";
|
|
32537
|
+
Runtimes["Node23rc"] = "node-23-rc";
|
|
32538
|
+
Runtimes["Node24rc"] = "node-24-rc";
|
|
32539
|
+
Runtimes["Node25rc"] = "node-25-rc";
|
|
32540
|
+
Runtimes["Php80rc"] = "php-8.0-rc";
|
|
32541
|
+
Runtimes["Php81rc"] = "php-8.1-rc";
|
|
32542
|
+
Runtimes["Php82rc"] = "php-8.2-rc";
|
|
32543
|
+
Runtimes["Php83rc"] = "php-8.3-rc";
|
|
32544
|
+
Runtimes["Php84rc"] = "php-8.4-rc";
|
|
32545
|
+
Runtimes["Ruby30rc"] = "ruby-3.0-rc";
|
|
32546
|
+
Runtimes["Ruby31rc"] = "ruby-3.1-rc";
|
|
32547
|
+
Runtimes["Ruby32rc"] = "ruby-3.2-rc";
|
|
32548
|
+
Runtimes["Ruby33rc"] = "ruby-3.3-rc";
|
|
32549
|
+
Runtimes["Ruby34rc"] = "ruby-3.4-rc";
|
|
32550
|
+
Runtimes["Ruby40rc"] = "ruby-4.0-rc";
|
|
32551
|
+
Runtimes["Python38rc"] = "python-3.8-rc";
|
|
32552
|
+
Runtimes["Python39rc"] = "python-3.9-rc";
|
|
32553
|
+
Runtimes["Python310rc"] = "python-3.10-rc";
|
|
32554
|
+
Runtimes["Python311rc"] = "python-3.11-rc";
|
|
32555
|
+
Runtimes["Python312rc"] = "python-3.12-rc";
|
|
32556
|
+
Runtimes["Python313rc"] = "python-3.13-rc";
|
|
32557
|
+
Runtimes["Python314rc"] = "python-3.14-rc";
|
|
32558
|
+
Runtimes["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
32559
|
+
Runtimes["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
32560
|
+
Runtimes["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
32561
|
+
Runtimes["Deno140rc"] = "deno-1.40-rc";
|
|
32562
|
+
Runtimes["Deno146rc"] = "deno-1.46-rc";
|
|
32563
|
+
Runtimes["Deno20rc"] = "deno-2.0-rc";
|
|
32564
|
+
Runtimes["Deno25rc"] = "deno-2.5-rc";
|
|
32565
|
+
Runtimes["Deno26rc"] = "deno-2.6-rc";
|
|
32566
|
+
Runtimes["Dart215rc"] = "dart-2.15-rc";
|
|
32567
|
+
Runtimes["Dart216rc"] = "dart-2.16-rc";
|
|
32568
|
+
Runtimes["Dart217rc"] = "dart-2.17-rc";
|
|
32569
|
+
Runtimes["Dart218rc"] = "dart-2.18-rc";
|
|
32570
|
+
Runtimes["Dart219rc"] = "dart-2.19-rc";
|
|
32571
|
+
Runtimes["Dart30rc"] = "dart-3.0-rc";
|
|
32572
|
+
Runtimes["Dart31rc"] = "dart-3.1-rc";
|
|
32573
|
+
Runtimes["Dart33rc"] = "dart-3.3-rc";
|
|
32574
|
+
Runtimes["Dart35rc"] = "dart-3.5-rc";
|
|
32575
|
+
Runtimes["Dart38rc"] = "dart-3.8-rc";
|
|
32576
|
+
Runtimes["Dart39rc"] = "dart-3.9-rc";
|
|
32577
|
+
Runtimes["Dart310rc"] = "dart-3.10-rc";
|
|
32578
|
+
Runtimes["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
32579
|
+
Runtimes["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
32580
|
+
Runtimes["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
32581
|
+
Runtimes["Dotnet10rc"] = "dotnet-10-rc";
|
|
32582
|
+
Runtimes["Java80rc"] = "java-8.0-rc";
|
|
32583
|
+
Runtimes["Java110rc"] = "java-11.0-rc";
|
|
32584
|
+
Runtimes["Java170rc"] = "java-17.0-rc";
|
|
32585
|
+
Runtimes["Java180rc"] = "java-18.0-rc";
|
|
32586
|
+
Runtimes["Java210rc"] = "java-21.0-rc";
|
|
32587
|
+
Runtimes["Java22rc"] = "java-22-rc";
|
|
32588
|
+
Runtimes["Java25rc"] = "java-25-rc";
|
|
32589
|
+
Runtimes["Swift55rc"] = "swift-5.5-rc";
|
|
32590
|
+
Runtimes["Swift58rc"] = "swift-5.8-rc";
|
|
32591
|
+
Runtimes["Swift59rc"] = "swift-5.9-rc";
|
|
32592
|
+
Runtimes["Swift510rc"] = "swift-5.10-rc";
|
|
32593
|
+
Runtimes["Swift62rc"] = "swift-6.2-rc";
|
|
32594
|
+
Runtimes["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
32595
|
+
Runtimes["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
32596
|
+
Runtimes["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
32597
|
+
Runtimes["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
32598
|
+
Runtimes["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
32599
|
+
Runtimes["Cpp17rc"] = "cpp-17-rc";
|
|
32600
|
+
Runtimes["Cpp20rc"] = "cpp-20-rc";
|
|
32601
|
+
Runtimes["Bun10rc"] = "bun-1.0-rc";
|
|
32602
|
+
Runtimes["Bun11rc"] = "bun-1.1-rc";
|
|
32603
|
+
Runtimes["Bun12rc"] = "bun-1.2-rc";
|
|
32604
|
+
Runtimes["Bun13rc"] = "bun-1.3-rc";
|
|
32605
|
+
Runtimes["Go123rc"] = "go-1.23-rc";
|
|
32606
|
+
Runtimes["Go124rc"] = "go-1.24-rc";
|
|
32607
|
+
Runtimes["Go125rc"] = "go-1.25-rc";
|
|
32608
|
+
Runtimes["Go126rc"] = "go-1.26-rc";
|
|
32609
|
+
Runtimes["Static1rc"] = "static-1-rc";
|
|
32610
|
+
Runtimes["Flutter324rc"] = "flutter-3.24-rc";
|
|
32611
|
+
Runtimes["Flutter327rc"] = "flutter-3.27-rc";
|
|
32612
|
+
Runtimes["Flutter329rc"] = "flutter-3.29-rc";
|
|
32613
|
+
Runtimes["Flutter332rc"] = "flutter-3.32-rc";
|
|
32614
|
+
Runtimes["Flutter335rc"] = "flutter-3.35-rc";
|
|
32615
|
+
Runtimes["Flutter338rc"] = "flutter-3.38-rc";
|
|
32346
32616
|
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
32347
32617
|
|
|
32348
32618
|
exports.UseCases = void 0;
|
|
@@ -32437,6 +32707,10 @@
|
|
|
32437
32707
|
AppwriteMigrationResource["Function"] = "function";
|
|
32438
32708
|
AppwriteMigrationResource["Deployment"] = "deployment";
|
|
32439
32709
|
AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
|
|
32710
|
+
AppwriteMigrationResource["Provider"] = "provider";
|
|
32711
|
+
AppwriteMigrationResource["Topic"] = "topic";
|
|
32712
|
+
AppwriteMigrationResource["Subscriber"] = "subscriber";
|
|
32713
|
+
AppwriteMigrationResource["Message"] = "message";
|
|
32440
32714
|
AppwriteMigrationResource["Site"] = "site";
|
|
32441
32715
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
32442
32716
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
@@ -32985,6 +33259,92 @@
|
|
|
32985
33259
|
BuildRuntime["Flutter332"] = "flutter-3.32";
|
|
32986
33260
|
BuildRuntime["Flutter335"] = "flutter-3.35";
|
|
32987
33261
|
BuildRuntime["Flutter338"] = "flutter-3.38";
|
|
33262
|
+
BuildRuntime["Node145rc"] = "node-14.5-rc";
|
|
33263
|
+
BuildRuntime["Node160rc"] = "node-16.0-rc";
|
|
33264
|
+
BuildRuntime["Node180rc"] = "node-18.0-rc";
|
|
33265
|
+
BuildRuntime["Node190rc"] = "node-19.0-rc";
|
|
33266
|
+
BuildRuntime["Node200rc"] = "node-20.0-rc";
|
|
33267
|
+
BuildRuntime["Node210rc"] = "node-21.0-rc";
|
|
33268
|
+
BuildRuntime["Node22rc"] = "node-22-rc";
|
|
33269
|
+
BuildRuntime["Node23rc"] = "node-23-rc";
|
|
33270
|
+
BuildRuntime["Node24rc"] = "node-24-rc";
|
|
33271
|
+
BuildRuntime["Node25rc"] = "node-25-rc";
|
|
33272
|
+
BuildRuntime["Php80rc"] = "php-8.0-rc";
|
|
33273
|
+
BuildRuntime["Php81rc"] = "php-8.1-rc";
|
|
33274
|
+
BuildRuntime["Php82rc"] = "php-8.2-rc";
|
|
33275
|
+
BuildRuntime["Php83rc"] = "php-8.3-rc";
|
|
33276
|
+
BuildRuntime["Php84rc"] = "php-8.4-rc";
|
|
33277
|
+
BuildRuntime["Ruby30rc"] = "ruby-3.0-rc";
|
|
33278
|
+
BuildRuntime["Ruby31rc"] = "ruby-3.1-rc";
|
|
33279
|
+
BuildRuntime["Ruby32rc"] = "ruby-3.2-rc";
|
|
33280
|
+
BuildRuntime["Ruby33rc"] = "ruby-3.3-rc";
|
|
33281
|
+
BuildRuntime["Ruby34rc"] = "ruby-3.4-rc";
|
|
33282
|
+
BuildRuntime["Ruby40rc"] = "ruby-4.0-rc";
|
|
33283
|
+
BuildRuntime["Python38rc"] = "python-3.8-rc";
|
|
33284
|
+
BuildRuntime["Python39rc"] = "python-3.9-rc";
|
|
33285
|
+
BuildRuntime["Python310rc"] = "python-3.10-rc";
|
|
33286
|
+
BuildRuntime["Python311rc"] = "python-3.11-rc";
|
|
33287
|
+
BuildRuntime["Python312rc"] = "python-3.12-rc";
|
|
33288
|
+
BuildRuntime["Python313rc"] = "python-3.13-rc";
|
|
33289
|
+
BuildRuntime["Python314rc"] = "python-3.14-rc";
|
|
33290
|
+
BuildRuntime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
33291
|
+
BuildRuntime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
33292
|
+
BuildRuntime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
33293
|
+
BuildRuntime["Deno140rc"] = "deno-1.40-rc";
|
|
33294
|
+
BuildRuntime["Deno146rc"] = "deno-1.46-rc";
|
|
33295
|
+
BuildRuntime["Deno20rc"] = "deno-2.0-rc";
|
|
33296
|
+
BuildRuntime["Deno25rc"] = "deno-2.5-rc";
|
|
33297
|
+
BuildRuntime["Deno26rc"] = "deno-2.6-rc";
|
|
33298
|
+
BuildRuntime["Dart215rc"] = "dart-2.15-rc";
|
|
33299
|
+
BuildRuntime["Dart216rc"] = "dart-2.16-rc";
|
|
33300
|
+
BuildRuntime["Dart217rc"] = "dart-2.17-rc";
|
|
33301
|
+
BuildRuntime["Dart218rc"] = "dart-2.18-rc";
|
|
33302
|
+
BuildRuntime["Dart219rc"] = "dart-2.19-rc";
|
|
33303
|
+
BuildRuntime["Dart30rc"] = "dart-3.0-rc";
|
|
33304
|
+
BuildRuntime["Dart31rc"] = "dart-3.1-rc";
|
|
33305
|
+
BuildRuntime["Dart33rc"] = "dart-3.3-rc";
|
|
33306
|
+
BuildRuntime["Dart35rc"] = "dart-3.5-rc";
|
|
33307
|
+
BuildRuntime["Dart38rc"] = "dart-3.8-rc";
|
|
33308
|
+
BuildRuntime["Dart39rc"] = "dart-3.9-rc";
|
|
33309
|
+
BuildRuntime["Dart310rc"] = "dart-3.10-rc";
|
|
33310
|
+
BuildRuntime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
33311
|
+
BuildRuntime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
33312
|
+
BuildRuntime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
33313
|
+
BuildRuntime["Dotnet10rc"] = "dotnet-10-rc";
|
|
33314
|
+
BuildRuntime["Java80rc"] = "java-8.0-rc";
|
|
33315
|
+
BuildRuntime["Java110rc"] = "java-11.0-rc";
|
|
33316
|
+
BuildRuntime["Java170rc"] = "java-17.0-rc";
|
|
33317
|
+
BuildRuntime["Java180rc"] = "java-18.0-rc";
|
|
33318
|
+
BuildRuntime["Java210rc"] = "java-21.0-rc";
|
|
33319
|
+
BuildRuntime["Java22rc"] = "java-22-rc";
|
|
33320
|
+
BuildRuntime["Java25rc"] = "java-25-rc";
|
|
33321
|
+
BuildRuntime["Swift55rc"] = "swift-5.5-rc";
|
|
33322
|
+
BuildRuntime["Swift58rc"] = "swift-5.8-rc";
|
|
33323
|
+
BuildRuntime["Swift59rc"] = "swift-5.9-rc";
|
|
33324
|
+
BuildRuntime["Swift510rc"] = "swift-5.10-rc";
|
|
33325
|
+
BuildRuntime["Swift62rc"] = "swift-6.2-rc";
|
|
33326
|
+
BuildRuntime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
33327
|
+
BuildRuntime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
33328
|
+
BuildRuntime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
33329
|
+
BuildRuntime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
33330
|
+
BuildRuntime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
33331
|
+
BuildRuntime["Cpp17rc"] = "cpp-17-rc";
|
|
33332
|
+
BuildRuntime["Cpp20rc"] = "cpp-20-rc";
|
|
33333
|
+
BuildRuntime["Bun10rc"] = "bun-1.0-rc";
|
|
33334
|
+
BuildRuntime["Bun11rc"] = "bun-1.1-rc";
|
|
33335
|
+
BuildRuntime["Bun12rc"] = "bun-1.2-rc";
|
|
33336
|
+
BuildRuntime["Bun13rc"] = "bun-1.3-rc";
|
|
33337
|
+
BuildRuntime["Go123rc"] = "go-1.23-rc";
|
|
33338
|
+
BuildRuntime["Go124rc"] = "go-1.24-rc";
|
|
33339
|
+
BuildRuntime["Go125rc"] = "go-1.25-rc";
|
|
33340
|
+
BuildRuntime["Go126rc"] = "go-1.26-rc";
|
|
33341
|
+
BuildRuntime["Static1rc"] = "static-1-rc";
|
|
33342
|
+
BuildRuntime["Flutter324rc"] = "flutter-3.24-rc";
|
|
33343
|
+
BuildRuntime["Flutter327rc"] = "flutter-3.27-rc";
|
|
33344
|
+
BuildRuntime["Flutter329rc"] = "flutter-3.29-rc";
|
|
33345
|
+
BuildRuntime["Flutter332rc"] = "flutter-3.32-rc";
|
|
33346
|
+
BuildRuntime["Flutter335rc"] = "flutter-3.35-rc";
|
|
33347
|
+
BuildRuntime["Flutter338rc"] = "flutter-3.38-rc";
|
|
32988
33348
|
})(exports.BuildRuntime || (exports.BuildRuntime = {}));
|
|
32989
33349
|
|
|
32990
33350
|
exports.Adapter = void 0;
|
|
@@ -33162,17 +33522,25 @@
|
|
|
33162
33522
|
BillingPlanGroup["Scale"] = "scale";
|
|
33163
33523
|
})(exports.BillingPlanGroup || (exports.BillingPlanGroup = {}));
|
|
33164
33524
|
|
|
33165
|
-
exports.
|
|
33166
|
-
(function (
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33172
|
-
|
|
33173
|
-
|
|
33174
|
-
|
|
33175
|
-
})(exports.
|
|
33525
|
+
exports.DomainTransferStatusEnum = void 0;
|
|
33526
|
+
(function (DomainTransferStatusEnum) {
|
|
33527
|
+
DomainTransferStatusEnum["Transferrable"] = "transferrable";
|
|
33528
|
+
DomainTransferStatusEnum["NotTransferrable"] = "not_transferrable";
|
|
33529
|
+
DomainTransferStatusEnum["PendingOwner"] = "pending_owner";
|
|
33530
|
+
DomainTransferStatusEnum["PendingAdmin"] = "pending_admin";
|
|
33531
|
+
DomainTransferStatusEnum["PendingRegistry"] = "pending_registry";
|
|
33532
|
+
DomainTransferStatusEnum["Completed"] = "completed";
|
|
33533
|
+
DomainTransferStatusEnum["Cancelled"] = "cancelled";
|
|
33534
|
+
DomainTransferStatusEnum["ServiceUnavailable"] = "service_unavailable";
|
|
33535
|
+
})(exports.DomainTransferStatusEnum || (exports.DomainTransferStatusEnum = {}));
|
|
33536
|
+
|
|
33537
|
+
exports.DomainPurchaseStatus = void 0;
|
|
33538
|
+
(function (DomainPurchaseStatus) {
|
|
33539
|
+
DomainPurchaseStatus["Pending"] = "pending";
|
|
33540
|
+
DomainPurchaseStatus["Succeeded"] = "succeeded";
|
|
33541
|
+
DomainPurchaseStatus["Failed"] = "failed";
|
|
33542
|
+
DomainPurchaseStatus["Cancelled"] = "cancelled";
|
|
33543
|
+
})(exports.DomainPurchaseStatus || (exports.DomainPurchaseStatus = {}));
|
|
33176
33544
|
|
|
33177
33545
|
exports.Account = Account;
|
|
33178
33546
|
exports.Activities = Activities;
|
|
@@ -33208,6 +33576,7 @@
|
|
|
33208
33576
|
exports.Tokens = Tokens;
|
|
33209
33577
|
exports.Users = Users;
|
|
33210
33578
|
exports.Vcs = Vcs;
|
|
33579
|
+
exports.Webhooks = Webhooks;
|
|
33211
33580
|
|
|
33212
33581
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
33213
33582
|
|