@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/cjs/sdk.js
CHANGED
|
@@ -574,7 +574,7 @@ class Client {
|
|
|
574
574
|
'x-sdk-name': 'Console',
|
|
575
575
|
'x-sdk-platform': 'console',
|
|
576
576
|
'x-sdk-language': 'web',
|
|
577
|
-
'x-sdk-version': '
|
|
577
|
+
'x-sdk-version': '6.0.0',
|
|
578
578
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
579
579
|
};
|
|
580
580
|
this.realtime = {
|
|
@@ -1116,6 +1116,9 @@ class Client {
|
|
|
1116
1116
|
window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
|
|
1117
1117
|
window.localStorage.setItem('cookieFallback', cookieFallback);
|
|
1118
1118
|
}
|
|
1119
|
+
if (data && typeof data === 'object') {
|
|
1120
|
+
data.toString = () => JSONbig.stringify(data);
|
|
1121
|
+
}
|
|
1119
1122
|
return data;
|
|
1120
1123
|
});
|
|
1121
1124
|
}
|
|
@@ -7864,6 +7867,36 @@ class Domains {
|
|
|
7864
7867
|
};
|
|
7865
7868
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7866
7869
|
}
|
|
7870
|
+
updatePurchase(paramsOrFirst, ...rest) {
|
|
7871
|
+
let params;
|
|
7872
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7873
|
+
params = (paramsOrFirst || {});
|
|
7874
|
+
}
|
|
7875
|
+
else {
|
|
7876
|
+
params = {
|
|
7877
|
+
domainId: paramsOrFirst,
|
|
7878
|
+
organizationId: rest[0]
|
|
7879
|
+
};
|
|
7880
|
+
}
|
|
7881
|
+
const domainId = params.domainId;
|
|
7882
|
+
const organizationId = params.organizationId;
|
|
7883
|
+
if (typeof domainId === 'undefined') {
|
|
7884
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
7885
|
+
}
|
|
7886
|
+
if (typeof organizationId === 'undefined') {
|
|
7887
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
7888
|
+
}
|
|
7889
|
+
const apiPath = '/domains/purchases/{domainId}'.replace('{domainId}', domainId);
|
|
7890
|
+
const payload = {};
|
|
7891
|
+
if (typeof organizationId !== 'undefined') {
|
|
7892
|
+
payload['organizationId'] = organizationId;
|
|
7893
|
+
}
|
|
7894
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7895
|
+
const apiHeaders = {
|
|
7896
|
+
'content-type': 'application/json',
|
|
7897
|
+
};
|
|
7898
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
7899
|
+
}
|
|
7867
7900
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
7868
7901
|
let params;
|
|
7869
7902
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -7961,6 +7994,36 @@ class Domains {
|
|
|
7961
7994
|
};
|
|
7962
7995
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7963
7996
|
}
|
|
7997
|
+
updateTransferIn(paramsOrFirst, ...rest) {
|
|
7998
|
+
let params;
|
|
7999
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
8000
|
+
params = (paramsOrFirst || {});
|
|
8001
|
+
}
|
|
8002
|
+
else {
|
|
8003
|
+
params = {
|
|
8004
|
+
domainId: paramsOrFirst,
|
|
8005
|
+
organizationId: rest[0]
|
|
8006
|
+
};
|
|
8007
|
+
}
|
|
8008
|
+
const domainId = params.domainId;
|
|
8009
|
+
const organizationId = params.organizationId;
|
|
8010
|
+
if (typeof domainId === 'undefined') {
|
|
8011
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
8012
|
+
}
|
|
8013
|
+
if (typeof organizationId === 'undefined') {
|
|
8014
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
8015
|
+
}
|
|
8016
|
+
const apiPath = '/domains/transfers/in/{domainId}'.replace('{domainId}', domainId);
|
|
8017
|
+
const payload = {};
|
|
8018
|
+
if (typeof organizationId !== 'undefined') {
|
|
8019
|
+
payload['organizationId'] = organizationId;
|
|
8020
|
+
}
|
|
8021
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8022
|
+
const apiHeaders = {
|
|
8023
|
+
'content-type': 'application/json',
|
|
8024
|
+
};
|
|
8025
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
8026
|
+
}
|
|
7964
8027
|
createTransferOut(paramsOrFirst, ...rest) {
|
|
7965
8028
|
let params;
|
|
7966
8029
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9678,7 +9741,9 @@ class Functions {
|
|
|
9678
9741
|
providerBranch: rest[13],
|
|
9679
9742
|
providerSilentMode: rest[14],
|
|
9680
9743
|
providerRootDirectory: rest[15],
|
|
9681
|
-
|
|
9744
|
+
buildSpecification: rest[16],
|
|
9745
|
+
runtimeSpecification: rest[17],
|
|
9746
|
+
deploymentRetention: rest[18]
|
|
9682
9747
|
};
|
|
9683
9748
|
}
|
|
9684
9749
|
const functionId = params.functionId;
|
|
@@ -9698,7 +9763,9 @@ class Functions {
|
|
|
9698
9763
|
const providerBranch = params.providerBranch;
|
|
9699
9764
|
const providerSilentMode = params.providerSilentMode;
|
|
9700
9765
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9701
|
-
const
|
|
9766
|
+
const buildSpecification = params.buildSpecification;
|
|
9767
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
9768
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9702
9769
|
if (typeof functionId === 'undefined') {
|
|
9703
9770
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9704
9771
|
}
|
|
@@ -9761,8 +9828,14 @@ class Functions {
|
|
|
9761
9828
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9762
9829
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9763
9830
|
}
|
|
9764
|
-
if (typeof
|
|
9765
|
-
payload['
|
|
9831
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
9832
|
+
payload['buildSpecification'] = buildSpecification;
|
|
9833
|
+
}
|
|
9834
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
9835
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
9836
|
+
}
|
|
9837
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
9838
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
9766
9839
|
}
|
|
9767
9840
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9768
9841
|
const apiHeaders = {
|
|
@@ -9920,7 +9993,9 @@ class Functions {
|
|
|
9920
9993
|
providerBranch: rest[13],
|
|
9921
9994
|
providerSilentMode: rest[14],
|
|
9922
9995
|
providerRootDirectory: rest[15],
|
|
9923
|
-
|
|
9996
|
+
buildSpecification: rest[16],
|
|
9997
|
+
runtimeSpecification: rest[17],
|
|
9998
|
+
deploymentRetention: rest[18]
|
|
9924
9999
|
};
|
|
9925
10000
|
}
|
|
9926
10001
|
const functionId = params.functionId;
|
|
@@ -9940,7 +10015,9 @@ class Functions {
|
|
|
9940
10015
|
const providerBranch = params.providerBranch;
|
|
9941
10016
|
const providerSilentMode = params.providerSilentMode;
|
|
9942
10017
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9943
|
-
const
|
|
10018
|
+
const buildSpecification = params.buildSpecification;
|
|
10019
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
10020
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9944
10021
|
if (typeof functionId === 'undefined') {
|
|
9945
10022
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9946
10023
|
}
|
|
@@ -9997,8 +10074,14 @@ class Functions {
|
|
|
9997
10074
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9998
10075
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9999
10076
|
}
|
|
10000
|
-
if (typeof
|
|
10001
|
-
payload['
|
|
10077
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
10078
|
+
payload['buildSpecification'] = buildSpecification;
|
|
10079
|
+
}
|
|
10080
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
10081
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
10082
|
+
}
|
|
10083
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
10084
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
10002
10085
|
}
|
|
10003
10086
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10004
10087
|
const apiHeaders = {
|
|
@@ -18629,24 +18712,35 @@ class Projects {
|
|
|
18629
18712
|
};
|
|
18630
18713
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18631
18714
|
}
|
|
18632
|
-
|
|
18715
|
+
}
|
|
18716
|
+
|
|
18717
|
+
class Proxy {
|
|
18718
|
+
constructor(client) {
|
|
18719
|
+
this.client = client;
|
|
18720
|
+
}
|
|
18721
|
+
listRules(paramsOrFirst, ...rest) {
|
|
18633
18722
|
let params;
|
|
18634
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18723
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18635
18724
|
params = (paramsOrFirst || {});
|
|
18636
18725
|
}
|
|
18637
18726
|
else {
|
|
18638
18727
|
params = {
|
|
18639
|
-
|
|
18640
|
-
|
|
18728
|
+
queries: paramsOrFirst,
|
|
18729
|
+
search: rest[0],
|
|
18730
|
+
total: rest[1]
|
|
18641
18731
|
};
|
|
18642
18732
|
}
|
|
18643
|
-
const
|
|
18733
|
+
const queries = params.queries;
|
|
18734
|
+
const search = params.search;
|
|
18644
18735
|
const total = params.total;
|
|
18645
|
-
|
|
18646
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18647
|
-
}
|
|
18648
|
-
const apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
|
|
18736
|
+
const apiPath = '/proxy/rules';
|
|
18649
18737
|
const payload = {};
|
|
18738
|
+
if (typeof queries !== 'undefined') {
|
|
18739
|
+
payload['queries'] = queries;
|
|
18740
|
+
}
|
|
18741
|
+
if (typeof search !== 'undefined') {
|
|
18742
|
+
payload['search'] = search;
|
|
18743
|
+
}
|
|
18650
18744
|
if (typeof total !== 'undefined') {
|
|
18651
18745
|
payload['total'] = total;
|
|
18652
18746
|
}
|
|
@@ -18654,68 +18748,24 @@ class Projects {
|
|
|
18654
18748
|
const apiHeaders = {};
|
|
18655
18749
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
18656
18750
|
}
|
|
18657
|
-
|
|
18751
|
+
createAPIRule(paramsOrFirst) {
|
|
18658
18752
|
let params;
|
|
18659
18753
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18660
18754
|
params = (paramsOrFirst || {});
|
|
18661
18755
|
}
|
|
18662
18756
|
else {
|
|
18663
18757
|
params = {
|
|
18664
|
-
|
|
18665
|
-
name: rest[0],
|
|
18666
|
-
events: rest[1],
|
|
18667
|
-
url: rest[2],
|
|
18668
|
-
security: rest[3],
|
|
18669
|
-
enabled: rest[4],
|
|
18670
|
-
httpUser: rest[5],
|
|
18671
|
-
httpPass: rest[6]
|
|
18758
|
+
domain: paramsOrFirst
|
|
18672
18759
|
};
|
|
18673
18760
|
}
|
|
18674
|
-
const
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
const url = params.url;
|
|
18678
|
-
const security = params.security;
|
|
18679
|
-
const enabled = params.enabled;
|
|
18680
|
-
const httpUser = params.httpUser;
|
|
18681
|
-
const httpPass = params.httpPass;
|
|
18682
|
-
if (typeof projectId === 'undefined') {
|
|
18683
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18684
|
-
}
|
|
18685
|
-
if (typeof name === 'undefined') {
|
|
18686
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
18687
|
-
}
|
|
18688
|
-
if (typeof events === 'undefined') {
|
|
18689
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
18690
|
-
}
|
|
18691
|
-
if (typeof url === 'undefined') {
|
|
18692
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
18693
|
-
}
|
|
18694
|
-
if (typeof security === 'undefined') {
|
|
18695
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
18761
|
+
const domain = params.domain;
|
|
18762
|
+
if (typeof domain === 'undefined') {
|
|
18763
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18696
18764
|
}
|
|
18697
|
-
const apiPath = '/
|
|
18765
|
+
const apiPath = '/proxy/rules/api';
|
|
18698
18766
|
const payload = {};
|
|
18699
|
-
if (typeof
|
|
18700
|
-
payload['
|
|
18701
|
-
}
|
|
18702
|
-
if (typeof enabled !== 'undefined') {
|
|
18703
|
-
payload['enabled'] = enabled;
|
|
18704
|
-
}
|
|
18705
|
-
if (typeof events !== 'undefined') {
|
|
18706
|
-
payload['events'] = events;
|
|
18707
|
-
}
|
|
18708
|
-
if (typeof url !== 'undefined') {
|
|
18709
|
-
payload['url'] = url;
|
|
18710
|
-
}
|
|
18711
|
-
if (typeof security !== 'undefined') {
|
|
18712
|
-
payload['security'] = security;
|
|
18713
|
-
}
|
|
18714
|
-
if (typeof httpUser !== 'undefined') {
|
|
18715
|
-
payload['httpUser'] = httpUser;
|
|
18716
|
-
}
|
|
18717
|
-
if (typeof httpPass !== 'undefined') {
|
|
18718
|
-
payload['httpPass'] = httpPass;
|
|
18767
|
+
if (typeof domain !== 'undefined') {
|
|
18768
|
+
payload['domain'] = domain;
|
|
18719
18769
|
}
|
|
18720
18770
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18721
18771
|
const apiHeaders = {
|
|
@@ -18723,332 +18773,118 @@ class Projects {
|
|
|
18723
18773
|
};
|
|
18724
18774
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
18725
18775
|
}
|
|
18726
|
-
|
|
18776
|
+
createFunctionRule(paramsOrFirst, ...rest) {
|
|
18727
18777
|
let params;
|
|
18728
18778
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18729
18779
|
params = (paramsOrFirst || {});
|
|
18730
18780
|
}
|
|
18731
18781
|
else {
|
|
18732
18782
|
params = {
|
|
18733
|
-
|
|
18734
|
-
|
|
18783
|
+
domain: paramsOrFirst,
|
|
18784
|
+
functionId: rest[0],
|
|
18785
|
+
branch: rest[1]
|
|
18735
18786
|
};
|
|
18736
18787
|
}
|
|
18737
|
-
const
|
|
18738
|
-
const
|
|
18739
|
-
|
|
18740
|
-
|
|
18788
|
+
const domain = params.domain;
|
|
18789
|
+
const functionId = params.functionId;
|
|
18790
|
+
const branch = params.branch;
|
|
18791
|
+
if (typeof domain === 'undefined') {
|
|
18792
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18741
18793
|
}
|
|
18742
|
-
if (typeof
|
|
18743
|
-
throw new AppwriteException('Missing required parameter: "
|
|
18794
|
+
if (typeof functionId === 'undefined') {
|
|
18795
|
+
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
18744
18796
|
}
|
|
18745
|
-
const apiPath = '/
|
|
18797
|
+
const apiPath = '/proxy/rules/function';
|
|
18746
18798
|
const payload = {};
|
|
18799
|
+
if (typeof domain !== 'undefined') {
|
|
18800
|
+
payload['domain'] = domain;
|
|
18801
|
+
}
|
|
18802
|
+
if (typeof functionId !== 'undefined') {
|
|
18803
|
+
payload['functionId'] = functionId;
|
|
18804
|
+
}
|
|
18805
|
+
if (typeof branch !== 'undefined') {
|
|
18806
|
+
payload['branch'] = branch;
|
|
18807
|
+
}
|
|
18747
18808
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18748
|
-
const apiHeaders = {
|
|
18749
|
-
|
|
18809
|
+
const apiHeaders = {
|
|
18810
|
+
'content-type': 'application/json',
|
|
18811
|
+
};
|
|
18812
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18750
18813
|
}
|
|
18751
|
-
|
|
18814
|
+
createRedirectRule(paramsOrFirst, ...rest) {
|
|
18752
18815
|
let params;
|
|
18753
18816
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18754
18817
|
params = (paramsOrFirst || {});
|
|
18755
18818
|
}
|
|
18756
18819
|
else {
|
|
18757
18820
|
params = {
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18761
|
-
|
|
18762
|
-
|
|
18763
|
-
security: rest[4],
|
|
18764
|
-
enabled: rest[5],
|
|
18765
|
-
httpUser: rest[6],
|
|
18766
|
-
httpPass: rest[7]
|
|
18821
|
+
domain: paramsOrFirst,
|
|
18822
|
+
url: rest[0],
|
|
18823
|
+
statusCode: rest[1],
|
|
18824
|
+
resourceId: rest[2],
|
|
18825
|
+
resourceType: rest[3]
|
|
18767
18826
|
};
|
|
18768
18827
|
}
|
|
18769
|
-
const
|
|
18770
|
-
const webhookId = params.webhookId;
|
|
18771
|
-
const name = params.name;
|
|
18772
|
-
const events = params.events;
|
|
18828
|
+
const domain = params.domain;
|
|
18773
18829
|
const url = params.url;
|
|
18774
|
-
const
|
|
18775
|
-
const
|
|
18776
|
-
const
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18780
|
-
}
|
|
18781
|
-
if (typeof webhookId === 'undefined') {
|
|
18782
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18783
|
-
}
|
|
18784
|
-
if (typeof name === 'undefined') {
|
|
18785
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
18786
|
-
}
|
|
18787
|
-
if (typeof events === 'undefined') {
|
|
18788
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
18830
|
+
const statusCode = params.statusCode;
|
|
18831
|
+
const resourceId = params.resourceId;
|
|
18832
|
+
const resourceType = params.resourceType;
|
|
18833
|
+
if (typeof domain === 'undefined') {
|
|
18834
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18789
18835
|
}
|
|
18790
18836
|
if (typeof url === 'undefined') {
|
|
18791
18837
|
throw new AppwriteException('Missing required parameter: "url"');
|
|
18792
18838
|
}
|
|
18793
|
-
if (typeof
|
|
18794
|
-
throw new AppwriteException('Missing required parameter: "
|
|
18839
|
+
if (typeof statusCode === 'undefined') {
|
|
18840
|
+
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
18795
18841
|
}
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
if (typeof name !== 'undefined') {
|
|
18799
|
-
payload['name'] = name;
|
|
18842
|
+
if (typeof resourceId === 'undefined') {
|
|
18843
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
18800
18844
|
}
|
|
18801
|
-
if (typeof
|
|
18802
|
-
|
|
18845
|
+
if (typeof resourceType === 'undefined') {
|
|
18846
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
18803
18847
|
}
|
|
18804
|
-
|
|
18805
|
-
|
|
18848
|
+
const apiPath = '/proxy/rules/redirect';
|
|
18849
|
+
const payload = {};
|
|
18850
|
+
if (typeof domain !== 'undefined') {
|
|
18851
|
+
payload['domain'] = domain;
|
|
18806
18852
|
}
|
|
18807
18853
|
if (typeof url !== 'undefined') {
|
|
18808
18854
|
payload['url'] = url;
|
|
18809
18855
|
}
|
|
18810
|
-
if (typeof
|
|
18811
|
-
payload['
|
|
18856
|
+
if (typeof statusCode !== 'undefined') {
|
|
18857
|
+
payload['statusCode'] = statusCode;
|
|
18812
18858
|
}
|
|
18813
|
-
if (typeof
|
|
18814
|
-
payload['
|
|
18859
|
+
if (typeof resourceId !== 'undefined') {
|
|
18860
|
+
payload['resourceId'] = resourceId;
|
|
18815
18861
|
}
|
|
18816
|
-
if (typeof
|
|
18817
|
-
payload['
|
|
18862
|
+
if (typeof resourceType !== 'undefined') {
|
|
18863
|
+
payload['resourceType'] = resourceType;
|
|
18818
18864
|
}
|
|
18819
18865
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18820
18866
|
const apiHeaders = {
|
|
18821
18867
|
'content-type': 'application/json',
|
|
18822
18868
|
};
|
|
18823
|
-
return this.client.call('
|
|
18869
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18824
18870
|
}
|
|
18825
|
-
|
|
18871
|
+
createSiteRule(paramsOrFirst, ...rest) {
|
|
18826
18872
|
let params;
|
|
18827
18873
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18828
18874
|
params = (paramsOrFirst || {});
|
|
18829
18875
|
}
|
|
18830
18876
|
else {
|
|
18831
18877
|
params = {
|
|
18832
|
-
|
|
18833
|
-
|
|
18878
|
+
domain: paramsOrFirst,
|
|
18879
|
+
siteId: rest[0],
|
|
18880
|
+
branch: rest[1]
|
|
18834
18881
|
};
|
|
18835
18882
|
}
|
|
18836
|
-
const
|
|
18837
|
-
const
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
if (typeof webhookId === 'undefined') {
|
|
18842
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18843
|
-
}
|
|
18844
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
18845
|
-
const payload = {};
|
|
18846
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18847
|
-
const apiHeaders = {
|
|
18848
|
-
'content-type': 'application/json',
|
|
18849
|
-
};
|
|
18850
|
-
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18851
|
-
}
|
|
18852
|
-
updateWebhookSignature(paramsOrFirst, ...rest) {
|
|
18853
|
-
let params;
|
|
18854
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18855
|
-
params = (paramsOrFirst || {});
|
|
18856
|
-
}
|
|
18857
|
-
else {
|
|
18858
|
-
params = {
|
|
18859
|
-
projectId: paramsOrFirst,
|
|
18860
|
-
webhookId: rest[0]
|
|
18861
|
-
};
|
|
18862
|
-
}
|
|
18863
|
-
const projectId = params.projectId;
|
|
18864
|
-
const webhookId = params.webhookId;
|
|
18865
|
-
if (typeof projectId === 'undefined') {
|
|
18866
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18867
|
-
}
|
|
18868
|
-
if (typeof webhookId === 'undefined') {
|
|
18869
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18870
|
-
}
|
|
18871
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
18872
|
-
const payload = {};
|
|
18873
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18874
|
-
const apiHeaders = {
|
|
18875
|
-
'content-type': 'application/json',
|
|
18876
|
-
};
|
|
18877
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18878
|
-
}
|
|
18879
|
-
}
|
|
18880
|
-
|
|
18881
|
-
class Proxy {
|
|
18882
|
-
constructor(client) {
|
|
18883
|
-
this.client = client;
|
|
18884
|
-
}
|
|
18885
|
-
listRules(paramsOrFirst, ...rest) {
|
|
18886
|
-
let params;
|
|
18887
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18888
|
-
params = (paramsOrFirst || {});
|
|
18889
|
-
}
|
|
18890
|
-
else {
|
|
18891
|
-
params = {
|
|
18892
|
-
queries: paramsOrFirst,
|
|
18893
|
-
search: rest[0],
|
|
18894
|
-
total: rest[1]
|
|
18895
|
-
};
|
|
18896
|
-
}
|
|
18897
|
-
const queries = params.queries;
|
|
18898
|
-
const search = params.search;
|
|
18899
|
-
const total = params.total;
|
|
18900
|
-
const apiPath = '/proxy/rules';
|
|
18901
|
-
const payload = {};
|
|
18902
|
-
if (typeof queries !== 'undefined') {
|
|
18903
|
-
payload['queries'] = queries;
|
|
18904
|
-
}
|
|
18905
|
-
if (typeof search !== 'undefined') {
|
|
18906
|
-
payload['search'] = search;
|
|
18907
|
-
}
|
|
18908
|
-
if (typeof total !== 'undefined') {
|
|
18909
|
-
payload['total'] = total;
|
|
18910
|
-
}
|
|
18911
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18912
|
-
const apiHeaders = {};
|
|
18913
|
-
return this.client.call('get', uri, apiHeaders, payload);
|
|
18914
|
-
}
|
|
18915
|
-
createAPIRule(paramsOrFirst) {
|
|
18916
|
-
let params;
|
|
18917
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18918
|
-
params = (paramsOrFirst || {});
|
|
18919
|
-
}
|
|
18920
|
-
else {
|
|
18921
|
-
params = {
|
|
18922
|
-
domain: paramsOrFirst
|
|
18923
|
-
};
|
|
18924
|
-
}
|
|
18925
|
-
const domain = params.domain;
|
|
18926
|
-
if (typeof domain === 'undefined') {
|
|
18927
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18928
|
-
}
|
|
18929
|
-
const apiPath = '/proxy/rules/api';
|
|
18930
|
-
const payload = {};
|
|
18931
|
-
if (typeof domain !== 'undefined') {
|
|
18932
|
-
payload['domain'] = domain;
|
|
18933
|
-
}
|
|
18934
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18935
|
-
const apiHeaders = {
|
|
18936
|
-
'content-type': 'application/json',
|
|
18937
|
-
};
|
|
18938
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
18939
|
-
}
|
|
18940
|
-
createFunctionRule(paramsOrFirst, ...rest) {
|
|
18941
|
-
let params;
|
|
18942
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18943
|
-
params = (paramsOrFirst || {});
|
|
18944
|
-
}
|
|
18945
|
-
else {
|
|
18946
|
-
params = {
|
|
18947
|
-
domain: paramsOrFirst,
|
|
18948
|
-
functionId: rest[0],
|
|
18949
|
-
branch: rest[1]
|
|
18950
|
-
};
|
|
18951
|
-
}
|
|
18952
|
-
const domain = params.domain;
|
|
18953
|
-
const functionId = params.functionId;
|
|
18954
|
-
const branch = params.branch;
|
|
18955
|
-
if (typeof domain === 'undefined') {
|
|
18956
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18957
|
-
}
|
|
18958
|
-
if (typeof functionId === 'undefined') {
|
|
18959
|
-
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
18960
|
-
}
|
|
18961
|
-
const apiPath = '/proxy/rules/function';
|
|
18962
|
-
const payload = {};
|
|
18963
|
-
if (typeof domain !== 'undefined') {
|
|
18964
|
-
payload['domain'] = domain;
|
|
18965
|
-
}
|
|
18966
|
-
if (typeof functionId !== 'undefined') {
|
|
18967
|
-
payload['functionId'] = functionId;
|
|
18968
|
-
}
|
|
18969
|
-
if (typeof branch !== 'undefined') {
|
|
18970
|
-
payload['branch'] = branch;
|
|
18971
|
-
}
|
|
18972
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18973
|
-
const apiHeaders = {
|
|
18974
|
-
'content-type': 'application/json',
|
|
18975
|
-
};
|
|
18976
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
18977
|
-
}
|
|
18978
|
-
createRedirectRule(paramsOrFirst, ...rest) {
|
|
18979
|
-
let params;
|
|
18980
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18981
|
-
params = (paramsOrFirst || {});
|
|
18982
|
-
}
|
|
18983
|
-
else {
|
|
18984
|
-
params = {
|
|
18985
|
-
domain: paramsOrFirst,
|
|
18986
|
-
url: rest[0],
|
|
18987
|
-
statusCode: rest[1],
|
|
18988
|
-
resourceId: rest[2],
|
|
18989
|
-
resourceType: rest[3]
|
|
18990
|
-
};
|
|
18991
|
-
}
|
|
18992
|
-
const domain = params.domain;
|
|
18993
|
-
const url = params.url;
|
|
18994
|
-
const statusCode = params.statusCode;
|
|
18995
|
-
const resourceId = params.resourceId;
|
|
18996
|
-
const resourceType = params.resourceType;
|
|
18997
|
-
if (typeof domain === 'undefined') {
|
|
18998
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18999
|
-
}
|
|
19000
|
-
if (typeof url === 'undefined') {
|
|
19001
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
19002
|
-
}
|
|
19003
|
-
if (typeof statusCode === 'undefined') {
|
|
19004
|
-
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
19005
|
-
}
|
|
19006
|
-
if (typeof resourceId === 'undefined') {
|
|
19007
|
-
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
19008
|
-
}
|
|
19009
|
-
if (typeof resourceType === 'undefined') {
|
|
19010
|
-
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
19011
|
-
}
|
|
19012
|
-
const apiPath = '/proxy/rules/redirect';
|
|
19013
|
-
const payload = {};
|
|
19014
|
-
if (typeof domain !== 'undefined') {
|
|
19015
|
-
payload['domain'] = domain;
|
|
19016
|
-
}
|
|
19017
|
-
if (typeof url !== 'undefined') {
|
|
19018
|
-
payload['url'] = url;
|
|
19019
|
-
}
|
|
19020
|
-
if (typeof statusCode !== 'undefined') {
|
|
19021
|
-
payload['statusCode'] = statusCode;
|
|
19022
|
-
}
|
|
19023
|
-
if (typeof resourceId !== 'undefined') {
|
|
19024
|
-
payload['resourceId'] = resourceId;
|
|
19025
|
-
}
|
|
19026
|
-
if (typeof resourceType !== 'undefined') {
|
|
19027
|
-
payload['resourceType'] = resourceType;
|
|
19028
|
-
}
|
|
19029
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19030
|
-
const apiHeaders = {
|
|
19031
|
-
'content-type': 'application/json',
|
|
19032
|
-
};
|
|
19033
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
19034
|
-
}
|
|
19035
|
-
createSiteRule(paramsOrFirst, ...rest) {
|
|
19036
|
-
let params;
|
|
19037
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19038
|
-
params = (paramsOrFirst || {});
|
|
19039
|
-
}
|
|
19040
|
-
else {
|
|
19041
|
-
params = {
|
|
19042
|
-
domain: paramsOrFirst,
|
|
19043
|
-
siteId: rest[0],
|
|
19044
|
-
branch: rest[1]
|
|
19045
|
-
};
|
|
19046
|
-
}
|
|
19047
|
-
const domain = params.domain;
|
|
19048
|
-
const siteId = params.siteId;
|
|
19049
|
-
const branch = params.branch;
|
|
19050
|
-
if (typeof domain === 'undefined') {
|
|
19051
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18883
|
+
const domain = params.domain;
|
|
18884
|
+
const siteId = params.siteId;
|
|
18885
|
+
const branch = params.branch;
|
|
18886
|
+
if (typeof domain === 'undefined') {
|
|
18887
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
19052
18888
|
}
|
|
19053
18889
|
if (typeof siteId === 'undefined') {
|
|
19054
18890
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -19186,15 +19022,18 @@ class Sites {
|
|
|
19186
19022
|
timeout: rest[5],
|
|
19187
19023
|
installCommand: rest[6],
|
|
19188
19024
|
buildCommand: rest[7],
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19025
|
+
startCommand: rest[8],
|
|
19026
|
+
outputDirectory: rest[9],
|
|
19027
|
+
adapter: rest[10],
|
|
19028
|
+
installationId: rest[11],
|
|
19029
|
+
fallbackFile: rest[12],
|
|
19030
|
+
providerRepositoryId: rest[13],
|
|
19031
|
+
providerBranch: rest[14],
|
|
19032
|
+
providerSilentMode: rest[15],
|
|
19033
|
+
providerRootDirectory: rest[16],
|
|
19034
|
+
buildSpecification: rest[17],
|
|
19035
|
+
runtimeSpecification: rest[18],
|
|
19036
|
+
deploymentRetention: rest[19]
|
|
19198
19037
|
};
|
|
19199
19038
|
}
|
|
19200
19039
|
const siteId = params.siteId;
|
|
@@ -19206,6 +19045,7 @@ class Sites {
|
|
|
19206
19045
|
const timeout = params.timeout;
|
|
19207
19046
|
const installCommand = params.installCommand;
|
|
19208
19047
|
const buildCommand = params.buildCommand;
|
|
19048
|
+
const startCommand = params.startCommand;
|
|
19209
19049
|
const outputDirectory = params.outputDirectory;
|
|
19210
19050
|
const adapter = params.adapter;
|
|
19211
19051
|
const installationId = params.installationId;
|
|
@@ -19214,7 +19054,9 @@ class Sites {
|
|
|
19214
19054
|
const providerBranch = params.providerBranch;
|
|
19215
19055
|
const providerSilentMode = params.providerSilentMode;
|
|
19216
19056
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19217
|
-
const
|
|
19057
|
+
const buildSpecification = params.buildSpecification;
|
|
19058
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19059
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19218
19060
|
if (typeof siteId === 'undefined') {
|
|
19219
19061
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19220
19062
|
}
|
|
@@ -19253,6 +19095,9 @@ class Sites {
|
|
|
19253
19095
|
if (typeof buildCommand !== 'undefined') {
|
|
19254
19096
|
payload['buildCommand'] = buildCommand;
|
|
19255
19097
|
}
|
|
19098
|
+
if (typeof startCommand !== 'undefined') {
|
|
19099
|
+
payload['startCommand'] = startCommand;
|
|
19100
|
+
}
|
|
19256
19101
|
if (typeof outputDirectory !== 'undefined') {
|
|
19257
19102
|
payload['outputDirectory'] = outputDirectory;
|
|
19258
19103
|
}
|
|
@@ -19280,8 +19125,14 @@ class Sites {
|
|
|
19280
19125
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19281
19126
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19282
19127
|
}
|
|
19283
|
-
if (typeof
|
|
19284
|
-
payload['
|
|
19128
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19129
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19130
|
+
}
|
|
19131
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19132
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19133
|
+
}
|
|
19134
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19135
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19285
19136
|
}
|
|
19286
19137
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19287
19138
|
const apiHeaders = {
|
|
@@ -19425,16 +19276,19 @@ class Sites {
|
|
|
19425
19276
|
timeout: rest[4],
|
|
19426
19277
|
installCommand: rest[5],
|
|
19427
19278
|
buildCommand: rest[6],
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19279
|
+
startCommand: rest[7],
|
|
19280
|
+
outputDirectory: rest[8],
|
|
19281
|
+
buildRuntime: rest[9],
|
|
19282
|
+
adapter: rest[10],
|
|
19283
|
+
fallbackFile: rest[11],
|
|
19284
|
+
installationId: rest[12],
|
|
19285
|
+
providerRepositoryId: rest[13],
|
|
19286
|
+
providerBranch: rest[14],
|
|
19287
|
+
providerSilentMode: rest[15],
|
|
19288
|
+
providerRootDirectory: rest[16],
|
|
19289
|
+
buildSpecification: rest[17],
|
|
19290
|
+
runtimeSpecification: rest[18],
|
|
19291
|
+
deploymentRetention: rest[19]
|
|
19438
19292
|
};
|
|
19439
19293
|
}
|
|
19440
19294
|
const siteId = params.siteId;
|
|
@@ -19445,6 +19299,7 @@ class Sites {
|
|
|
19445
19299
|
const timeout = params.timeout;
|
|
19446
19300
|
const installCommand = params.installCommand;
|
|
19447
19301
|
const buildCommand = params.buildCommand;
|
|
19302
|
+
const startCommand = params.startCommand;
|
|
19448
19303
|
const outputDirectory = params.outputDirectory;
|
|
19449
19304
|
const buildRuntime = params.buildRuntime;
|
|
19450
19305
|
const adapter = params.adapter;
|
|
@@ -19454,7 +19309,9 @@ class Sites {
|
|
|
19454
19309
|
const providerBranch = params.providerBranch;
|
|
19455
19310
|
const providerSilentMode = params.providerSilentMode;
|
|
19456
19311
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19457
|
-
const
|
|
19312
|
+
const buildSpecification = params.buildSpecification;
|
|
19313
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19314
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19458
19315
|
if (typeof siteId === 'undefined') {
|
|
19459
19316
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19460
19317
|
}
|
|
@@ -19487,6 +19344,9 @@ class Sites {
|
|
|
19487
19344
|
if (typeof buildCommand !== 'undefined') {
|
|
19488
19345
|
payload['buildCommand'] = buildCommand;
|
|
19489
19346
|
}
|
|
19347
|
+
if (typeof startCommand !== 'undefined') {
|
|
19348
|
+
payload['startCommand'] = startCommand;
|
|
19349
|
+
}
|
|
19490
19350
|
if (typeof outputDirectory !== 'undefined') {
|
|
19491
19351
|
payload['outputDirectory'] = outputDirectory;
|
|
19492
19352
|
}
|
|
@@ -19514,8 +19374,14 @@ class Sites {
|
|
|
19514
19374
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19515
19375
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19516
19376
|
}
|
|
19517
|
-
if (typeof
|
|
19518
|
-
payload['
|
|
19377
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19378
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19379
|
+
}
|
|
19380
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19381
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19382
|
+
}
|
|
19383
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19384
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19519
19385
|
}
|
|
19520
19386
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19521
19387
|
const apiHeaders = {
|
|
@@ -26551,6 +26417,236 @@ class Vcs {
|
|
|
26551
26417
|
}
|
|
26552
26418
|
}
|
|
26553
26419
|
|
|
26420
|
+
class Webhooks {
|
|
26421
|
+
constructor(client) {
|
|
26422
|
+
this.client = client;
|
|
26423
|
+
}
|
|
26424
|
+
list(paramsOrFirst, ...rest) {
|
|
26425
|
+
let params;
|
|
26426
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26427
|
+
params = (paramsOrFirst || {});
|
|
26428
|
+
}
|
|
26429
|
+
else {
|
|
26430
|
+
params = {
|
|
26431
|
+
queries: paramsOrFirst,
|
|
26432
|
+
total: rest[0]
|
|
26433
|
+
};
|
|
26434
|
+
}
|
|
26435
|
+
const queries = params.queries;
|
|
26436
|
+
const total = params.total;
|
|
26437
|
+
const apiPath = '/webhooks';
|
|
26438
|
+
const payload = {};
|
|
26439
|
+
if (typeof queries !== 'undefined') {
|
|
26440
|
+
payload['queries'] = queries;
|
|
26441
|
+
}
|
|
26442
|
+
if (typeof total !== 'undefined') {
|
|
26443
|
+
payload['total'] = total;
|
|
26444
|
+
}
|
|
26445
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26446
|
+
const apiHeaders = {};
|
|
26447
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
26448
|
+
}
|
|
26449
|
+
create(paramsOrFirst, ...rest) {
|
|
26450
|
+
let params;
|
|
26451
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26452
|
+
params = (paramsOrFirst || {});
|
|
26453
|
+
}
|
|
26454
|
+
else {
|
|
26455
|
+
params = {
|
|
26456
|
+
webhookId: paramsOrFirst,
|
|
26457
|
+
url: rest[0],
|
|
26458
|
+
name: rest[1],
|
|
26459
|
+
events: rest[2],
|
|
26460
|
+
enabled: rest[3],
|
|
26461
|
+
security: rest[4],
|
|
26462
|
+
httpUser: rest[5],
|
|
26463
|
+
httpPass: rest[6]
|
|
26464
|
+
};
|
|
26465
|
+
}
|
|
26466
|
+
const webhookId = params.webhookId;
|
|
26467
|
+
const url = params.url;
|
|
26468
|
+
const name = params.name;
|
|
26469
|
+
const events = params.events;
|
|
26470
|
+
const enabled = params.enabled;
|
|
26471
|
+
const security = params.security;
|
|
26472
|
+
const httpUser = params.httpUser;
|
|
26473
|
+
const httpPass = params.httpPass;
|
|
26474
|
+
if (typeof webhookId === 'undefined') {
|
|
26475
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26476
|
+
}
|
|
26477
|
+
if (typeof url === 'undefined') {
|
|
26478
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
26479
|
+
}
|
|
26480
|
+
if (typeof name === 'undefined') {
|
|
26481
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
26482
|
+
}
|
|
26483
|
+
if (typeof events === 'undefined') {
|
|
26484
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
26485
|
+
}
|
|
26486
|
+
const apiPath = '/webhooks';
|
|
26487
|
+
const payload = {};
|
|
26488
|
+
if (typeof webhookId !== 'undefined') {
|
|
26489
|
+
payload['webhookId'] = webhookId;
|
|
26490
|
+
}
|
|
26491
|
+
if (typeof url !== 'undefined') {
|
|
26492
|
+
payload['url'] = url;
|
|
26493
|
+
}
|
|
26494
|
+
if (typeof name !== 'undefined') {
|
|
26495
|
+
payload['name'] = name;
|
|
26496
|
+
}
|
|
26497
|
+
if (typeof events !== 'undefined') {
|
|
26498
|
+
payload['events'] = events;
|
|
26499
|
+
}
|
|
26500
|
+
if (typeof enabled !== 'undefined') {
|
|
26501
|
+
payload['enabled'] = enabled;
|
|
26502
|
+
}
|
|
26503
|
+
if (typeof security !== 'undefined') {
|
|
26504
|
+
payload['security'] = security;
|
|
26505
|
+
}
|
|
26506
|
+
if (typeof httpUser !== 'undefined') {
|
|
26507
|
+
payload['httpUser'] = httpUser;
|
|
26508
|
+
}
|
|
26509
|
+
if (typeof httpPass !== 'undefined') {
|
|
26510
|
+
payload['httpPass'] = httpPass;
|
|
26511
|
+
}
|
|
26512
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26513
|
+
const apiHeaders = {
|
|
26514
|
+
'content-type': 'application/json',
|
|
26515
|
+
};
|
|
26516
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
26517
|
+
}
|
|
26518
|
+
get(paramsOrFirst) {
|
|
26519
|
+
let params;
|
|
26520
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26521
|
+
params = (paramsOrFirst || {});
|
|
26522
|
+
}
|
|
26523
|
+
else {
|
|
26524
|
+
params = {
|
|
26525
|
+
webhookId: paramsOrFirst
|
|
26526
|
+
};
|
|
26527
|
+
}
|
|
26528
|
+
const webhookId = params.webhookId;
|
|
26529
|
+
if (typeof webhookId === 'undefined') {
|
|
26530
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26531
|
+
}
|
|
26532
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26533
|
+
const payload = {};
|
|
26534
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26535
|
+
const apiHeaders = {};
|
|
26536
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
26537
|
+
}
|
|
26538
|
+
update(paramsOrFirst, ...rest) {
|
|
26539
|
+
let params;
|
|
26540
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26541
|
+
params = (paramsOrFirst || {});
|
|
26542
|
+
}
|
|
26543
|
+
else {
|
|
26544
|
+
params = {
|
|
26545
|
+
webhookId: paramsOrFirst,
|
|
26546
|
+
name: rest[0],
|
|
26547
|
+
url: rest[1],
|
|
26548
|
+
events: rest[2],
|
|
26549
|
+
enabled: rest[3],
|
|
26550
|
+
security: rest[4],
|
|
26551
|
+
httpUser: rest[5],
|
|
26552
|
+
httpPass: rest[6]
|
|
26553
|
+
};
|
|
26554
|
+
}
|
|
26555
|
+
const webhookId = params.webhookId;
|
|
26556
|
+
const name = params.name;
|
|
26557
|
+
const url = params.url;
|
|
26558
|
+
const events = params.events;
|
|
26559
|
+
const enabled = params.enabled;
|
|
26560
|
+
const security = params.security;
|
|
26561
|
+
const httpUser = params.httpUser;
|
|
26562
|
+
const httpPass = params.httpPass;
|
|
26563
|
+
if (typeof webhookId === 'undefined') {
|
|
26564
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26565
|
+
}
|
|
26566
|
+
if (typeof name === 'undefined') {
|
|
26567
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
26568
|
+
}
|
|
26569
|
+
if (typeof url === 'undefined') {
|
|
26570
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
26571
|
+
}
|
|
26572
|
+
if (typeof events === 'undefined') {
|
|
26573
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
26574
|
+
}
|
|
26575
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26576
|
+
const payload = {};
|
|
26577
|
+
if (typeof name !== 'undefined') {
|
|
26578
|
+
payload['name'] = name;
|
|
26579
|
+
}
|
|
26580
|
+
if (typeof url !== 'undefined') {
|
|
26581
|
+
payload['url'] = url;
|
|
26582
|
+
}
|
|
26583
|
+
if (typeof events !== 'undefined') {
|
|
26584
|
+
payload['events'] = events;
|
|
26585
|
+
}
|
|
26586
|
+
if (typeof enabled !== 'undefined') {
|
|
26587
|
+
payload['enabled'] = enabled;
|
|
26588
|
+
}
|
|
26589
|
+
if (typeof security !== 'undefined') {
|
|
26590
|
+
payload['security'] = security;
|
|
26591
|
+
}
|
|
26592
|
+
if (typeof httpUser !== 'undefined') {
|
|
26593
|
+
payload['httpUser'] = httpUser;
|
|
26594
|
+
}
|
|
26595
|
+
if (typeof httpPass !== 'undefined') {
|
|
26596
|
+
payload['httpPass'] = httpPass;
|
|
26597
|
+
}
|
|
26598
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26599
|
+
const apiHeaders = {
|
|
26600
|
+
'content-type': 'application/json',
|
|
26601
|
+
};
|
|
26602
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
26603
|
+
}
|
|
26604
|
+
delete(paramsOrFirst) {
|
|
26605
|
+
let params;
|
|
26606
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26607
|
+
params = (paramsOrFirst || {});
|
|
26608
|
+
}
|
|
26609
|
+
else {
|
|
26610
|
+
params = {
|
|
26611
|
+
webhookId: paramsOrFirst
|
|
26612
|
+
};
|
|
26613
|
+
}
|
|
26614
|
+
const webhookId = params.webhookId;
|
|
26615
|
+
if (typeof webhookId === 'undefined') {
|
|
26616
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26617
|
+
}
|
|
26618
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26619
|
+
const payload = {};
|
|
26620
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26621
|
+
const apiHeaders = {
|
|
26622
|
+
'content-type': 'application/json',
|
|
26623
|
+
};
|
|
26624
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
26625
|
+
}
|
|
26626
|
+
updateSignature(paramsOrFirst) {
|
|
26627
|
+
let params;
|
|
26628
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26629
|
+
params = (paramsOrFirst || {});
|
|
26630
|
+
}
|
|
26631
|
+
else {
|
|
26632
|
+
params = {
|
|
26633
|
+
webhookId: paramsOrFirst
|
|
26634
|
+
};
|
|
26635
|
+
}
|
|
26636
|
+
const webhookId = params.webhookId;
|
|
26637
|
+
if (typeof webhookId === 'undefined') {
|
|
26638
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26639
|
+
}
|
|
26640
|
+
const apiPath = '/webhooks/{webhookId}/signature'.replace('{webhookId}', webhookId);
|
|
26641
|
+
const payload = {};
|
|
26642
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26643
|
+
const apiHeaders = {
|
|
26644
|
+
'content-type': 'application/json',
|
|
26645
|
+
};
|
|
26646
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
26647
|
+
}
|
|
26648
|
+
}
|
|
26649
|
+
|
|
26554
26650
|
var RealtimeCode;
|
|
26555
26651
|
(function (RealtimeCode) {
|
|
26556
26652
|
RealtimeCode[RealtimeCode["NORMAL_CLOSURE"] = 1000] = "NORMAL_CLOSURE";
|
|
@@ -27570,6 +27666,8 @@ exports.Scopes = void 0;
|
|
|
27570
27666
|
Scopes["AssistantRead"] = "assistant.read";
|
|
27571
27667
|
Scopes["TokensRead"] = "tokens.read";
|
|
27572
27668
|
Scopes["TokensWrite"] = "tokens.write";
|
|
27669
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
27670
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
27573
27671
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
27574
27672
|
Scopes["PoliciesRead"] = "policies.read";
|
|
27575
27673
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -28495,6 +28593,92 @@ exports.Runtime = void 0;
|
|
|
28495
28593
|
Runtime["Flutter332"] = "flutter-3.32";
|
|
28496
28594
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
28497
28595
|
Runtime["Flutter338"] = "flutter-3.38";
|
|
28596
|
+
Runtime["Node145rc"] = "node-14.5-rc";
|
|
28597
|
+
Runtime["Node160rc"] = "node-16.0-rc";
|
|
28598
|
+
Runtime["Node180rc"] = "node-18.0-rc";
|
|
28599
|
+
Runtime["Node190rc"] = "node-19.0-rc";
|
|
28600
|
+
Runtime["Node200rc"] = "node-20.0-rc";
|
|
28601
|
+
Runtime["Node210rc"] = "node-21.0-rc";
|
|
28602
|
+
Runtime["Node22rc"] = "node-22-rc";
|
|
28603
|
+
Runtime["Node23rc"] = "node-23-rc";
|
|
28604
|
+
Runtime["Node24rc"] = "node-24-rc";
|
|
28605
|
+
Runtime["Node25rc"] = "node-25-rc";
|
|
28606
|
+
Runtime["Php80rc"] = "php-8.0-rc";
|
|
28607
|
+
Runtime["Php81rc"] = "php-8.1-rc";
|
|
28608
|
+
Runtime["Php82rc"] = "php-8.2-rc";
|
|
28609
|
+
Runtime["Php83rc"] = "php-8.3-rc";
|
|
28610
|
+
Runtime["Php84rc"] = "php-8.4-rc";
|
|
28611
|
+
Runtime["Ruby30rc"] = "ruby-3.0-rc";
|
|
28612
|
+
Runtime["Ruby31rc"] = "ruby-3.1-rc";
|
|
28613
|
+
Runtime["Ruby32rc"] = "ruby-3.2-rc";
|
|
28614
|
+
Runtime["Ruby33rc"] = "ruby-3.3-rc";
|
|
28615
|
+
Runtime["Ruby34rc"] = "ruby-3.4-rc";
|
|
28616
|
+
Runtime["Ruby40rc"] = "ruby-4.0-rc";
|
|
28617
|
+
Runtime["Python38rc"] = "python-3.8-rc";
|
|
28618
|
+
Runtime["Python39rc"] = "python-3.9-rc";
|
|
28619
|
+
Runtime["Python310rc"] = "python-3.10-rc";
|
|
28620
|
+
Runtime["Python311rc"] = "python-3.11-rc";
|
|
28621
|
+
Runtime["Python312rc"] = "python-3.12-rc";
|
|
28622
|
+
Runtime["Python313rc"] = "python-3.13-rc";
|
|
28623
|
+
Runtime["Python314rc"] = "python-3.14-rc";
|
|
28624
|
+
Runtime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
28625
|
+
Runtime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
28626
|
+
Runtime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
28627
|
+
Runtime["Deno140rc"] = "deno-1.40-rc";
|
|
28628
|
+
Runtime["Deno146rc"] = "deno-1.46-rc";
|
|
28629
|
+
Runtime["Deno20rc"] = "deno-2.0-rc";
|
|
28630
|
+
Runtime["Deno25rc"] = "deno-2.5-rc";
|
|
28631
|
+
Runtime["Deno26rc"] = "deno-2.6-rc";
|
|
28632
|
+
Runtime["Dart215rc"] = "dart-2.15-rc";
|
|
28633
|
+
Runtime["Dart216rc"] = "dart-2.16-rc";
|
|
28634
|
+
Runtime["Dart217rc"] = "dart-2.17-rc";
|
|
28635
|
+
Runtime["Dart218rc"] = "dart-2.18-rc";
|
|
28636
|
+
Runtime["Dart219rc"] = "dart-2.19-rc";
|
|
28637
|
+
Runtime["Dart30rc"] = "dart-3.0-rc";
|
|
28638
|
+
Runtime["Dart31rc"] = "dart-3.1-rc";
|
|
28639
|
+
Runtime["Dart33rc"] = "dart-3.3-rc";
|
|
28640
|
+
Runtime["Dart35rc"] = "dart-3.5-rc";
|
|
28641
|
+
Runtime["Dart38rc"] = "dart-3.8-rc";
|
|
28642
|
+
Runtime["Dart39rc"] = "dart-3.9-rc";
|
|
28643
|
+
Runtime["Dart310rc"] = "dart-3.10-rc";
|
|
28644
|
+
Runtime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
28645
|
+
Runtime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
28646
|
+
Runtime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
28647
|
+
Runtime["Dotnet10rc"] = "dotnet-10-rc";
|
|
28648
|
+
Runtime["Java80rc"] = "java-8.0-rc";
|
|
28649
|
+
Runtime["Java110rc"] = "java-11.0-rc";
|
|
28650
|
+
Runtime["Java170rc"] = "java-17.0-rc";
|
|
28651
|
+
Runtime["Java180rc"] = "java-18.0-rc";
|
|
28652
|
+
Runtime["Java210rc"] = "java-21.0-rc";
|
|
28653
|
+
Runtime["Java22rc"] = "java-22-rc";
|
|
28654
|
+
Runtime["Java25rc"] = "java-25-rc";
|
|
28655
|
+
Runtime["Swift55rc"] = "swift-5.5-rc";
|
|
28656
|
+
Runtime["Swift58rc"] = "swift-5.8-rc";
|
|
28657
|
+
Runtime["Swift59rc"] = "swift-5.9-rc";
|
|
28658
|
+
Runtime["Swift510rc"] = "swift-5.10-rc";
|
|
28659
|
+
Runtime["Swift62rc"] = "swift-6.2-rc";
|
|
28660
|
+
Runtime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
28661
|
+
Runtime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
28662
|
+
Runtime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
28663
|
+
Runtime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
28664
|
+
Runtime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
28665
|
+
Runtime["Cpp17rc"] = "cpp-17-rc";
|
|
28666
|
+
Runtime["Cpp20rc"] = "cpp-20-rc";
|
|
28667
|
+
Runtime["Bun10rc"] = "bun-1.0-rc";
|
|
28668
|
+
Runtime["Bun11rc"] = "bun-1.1-rc";
|
|
28669
|
+
Runtime["Bun12rc"] = "bun-1.2-rc";
|
|
28670
|
+
Runtime["Bun13rc"] = "bun-1.3-rc";
|
|
28671
|
+
Runtime["Go123rc"] = "go-1.23-rc";
|
|
28672
|
+
Runtime["Go124rc"] = "go-1.24-rc";
|
|
28673
|
+
Runtime["Go125rc"] = "go-1.25-rc";
|
|
28674
|
+
Runtime["Go126rc"] = "go-1.26-rc";
|
|
28675
|
+
Runtime["Static1rc"] = "static-1-rc";
|
|
28676
|
+
Runtime["Flutter324rc"] = "flutter-3.24-rc";
|
|
28677
|
+
Runtime["Flutter327rc"] = "flutter-3.27-rc";
|
|
28678
|
+
Runtime["Flutter329rc"] = "flutter-3.29-rc";
|
|
28679
|
+
Runtime["Flutter332rc"] = "flutter-3.32-rc";
|
|
28680
|
+
Runtime["Flutter335rc"] = "flutter-3.35-rc";
|
|
28681
|
+
Runtime["Flutter338rc"] = "flutter-3.38-rc";
|
|
28498
28682
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
28499
28683
|
|
|
28500
28684
|
exports.Runtimes = void 0;
|
|
@@ -28585,6 +28769,92 @@ exports.Runtimes = void 0;
|
|
|
28585
28769
|
Runtimes["Flutter332"] = "flutter-3.32";
|
|
28586
28770
|
Runtimes["Flutter335"] = "flutter-3.35";
|
|
28587
28771
|
Runtimes["Flutter338"] = "flutter-3.38";
|
|
28772
|
+
Runtimes["Node145rc"] = "node-14.5-rc";
|
|
28773
|
+
Runtimes["Node160rc"] = "node-16.0-rc";
|
|
28774
|
+
Runtimes["Node180rc"] = "node-18.0-rc";
|
|
28775
|
+
Runtimes["Node190rc"] = "node-19.0-rc";
|
|
28776
|
+
Runtimes["Node200rc"] = "node-20.0-rc";
|
|
28777
|
+
Runtimes["Node210rc"] = "node-21.0-rc";
|
|
28778
|
+
Runtimes["Node22rc"] = "node-22-rc";
|
|
28779
|
+
Runtimes["Node23rc"] = "node-23-rc";
|
|
28780
|
+
Runtimes["Node24rc"] = "node-24-rc";
|
|
28781
|
+
Runtimes["Node25rc"] = "node-25-rc";
|
|
28782
|
+
Runtimes["Php80rc"] = "php-8.0-rc";
|
|
28783
|
+
Runtimes["Php81rc"] = "php-8.1-rc";
|
|
28784
|
+
Runtimes["Php82rc"] = "php-8.2-rc";
|
|
28785
|
+
Runtimes["Php83rc"] = "php-8.3-rc";
|
|
28786
|
+
Runtimes["Php84rc"] = "php-8.4-rc";
|
|
28787
|
+
Runtimes["Ruby30rc"] = "ruby-3.0-rc";
|
|
28788
|
+
Runtimes["Ruby31rc"] = "ruby-3.1-rc";
|
|
28789
|
+
Runtimes["Ruby32rc"] = "ruby-3.2-rc";
|
|
28790
|
+
Runtimes["Ruby33rc"] = "ruby-3.3-rc";
|
|
28791
|
+
Runtimes["Ruby34rc"] = "ruby-3.4-rc";
|
|
28792
|
+
Runtimes["Ruby40rc"] = "ruby-4.0-rc";
|
|
28793
|
+
Runtimes["Python38rc"] = "python-3.8-rc";
|
|
28794
|
+
Runtimes["Python39rc"] = "python-3.9-rc";
|
|
28795
|
+
Runtimes["Python310rc"] = "python-3.10-rc";
|
|
28796
|
+
Runtimes["Python311rc"] = "python-3.11-rc";
|
|
28797
|
+
Runtimes["Python312rc"] = "python-3.12-rc";
|
|
28798
|
+
Runtimes["Python313rc"] = "python-3.13-rc";
|
|
28799
|
+
Runtimes["Python314rc"] = "python-3.14-rc";
|
|
28800
|
+
Runtimes["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
28801
|
+
Runtimes["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
28802
|
+
Runtimes["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
28803
|
+
Runtimes["Deno140rc"] = "deno-1.40-rc";
|
|
28804
|
+
Runtimes["Deno146rc"] = "deno-1.46-rc";
|
|
28805
|
+
Runtimes["Deno20rc"] = "deno-2.0-rc";
|
|
28806
|
+
Runtimes["Deno25rc"] = "deno-2.5-rc";
|
|
28807
|
+
Runtimes["Deno26rc"] = "deno-2.6-rc";
|
|
28808
|
+
Runtimes["Dart215rc"] = "dart-2.15-rc";
|
|
28809
|
+
Runtimes["Dart216rc"] = "dart-2.16-rc";
|
|
28810
|
+
Runtimes["Dart217rc"] = "dart-2.17-rc";
|
|
28811
|
+
Runtimes["Dart218rc"] = "dart-2.18-rc";
|
|
28812
|
+
Runtimes["Dart219rc"] = "dart-2.19-rc";
|
|
28813
|
+
Runtimes["Dart30rc"] = "dart-3.0-rc";
|
|
28814
|
+
Runtimes["Dart31rc"] = "dart-3.1-rc";
|
|
28815
|
+
Runtimes["Dart33rc"] = "dart-3.3-rc";
|
|
28816
|
+
Runtimes["Dart35rc"] = "dart-3.5-rc";
|
|
28817
|
+
Runtimes["Dart38rc"] = "dart-3.8-rc";
|
|
28818
|
+
Runtimes["Dart39rc"] = "dart-3.9-rc";
|
|
28819
|
+
Runtimes["Dart310rc"] = "dart-3.10-rc";
|
|
28820
|
+
Runtimes["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
28821
|
+
Runtimes["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
28822
|
+
Runtimes["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
28823
|
+
Runtimes["Dotnet10rc"] = "dotnet-10-rc";
|
|
28824
|
+
Runtimes["Java80rc"] = "java-8.0-rc";
|
|
28825
|
+
Runtimes["Java110rc"] = "java-11.0-rc";
|
|
28826
|
+
Runtimes["Java170rc"] = "java-17.0-rc";
|
|
28827
|
+
Runtimes["Java180rc"] = "java-18.0-rc";
|
|
28828
|
+
Runtimes["Java210rc"] = "java-21.0-rc";
|
|
28829
|
+
Runtimes["Java22rc"] = "java-22-rc";
|
|
28830
|
+
Runtimes["Java25rc"] = "java-25-rc";
|
|
28831
|
+
Runtimes["Swift55rc"] = "swift-5.5-rc";
|
|
28832
|
+
Runtimes["Swift58rc"] = "swift-5.8-rc";
|
|
28833
|
+
Runtimes["Swift59rc"] = "swift-5.9-rc";
|
|
28834
|
+
Runtimes["Swift510rc"] = "swift-5.10-rc";
|
|
28835
|
+
Runtimes["Swift62rc"] = "swift-6.2-rc";
|
|
28836
|
+
Runtimes["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
28837
|
+
Runtimes["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
28838
|
+
Runtimes["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
28839
|
+
Runtimes["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
28840
|
+
Runtimes["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
28841
|
+
Runtimes["Cpp17rc"] = "cpp-17-rc";
|
|
28842
|
+
Runtimes["Cpp20rc"] = "cpp-20-rc";
|
|
28843
|
+
Runtimes["Bun10rc"] = "bun-1.0-rc";
|
|
28844
|
+
Runtimes["Bun11rc"] = "bun-1.1-rc";
|
|
28845
|
+
Runtimes["Bun12rc"] = "bun-1.2-rc";
|
|
28846
|
+
Runtimes["Bun13rc"] = "bun-1.3-rc";
|
|
28847
|
+
Runtimes["Go123rc"] = "go-1.23-rc";
|
|
28848
|
+
Runtimes["Go124rc"] = "go-1.24-rc";
|
|
28849
|
+
Runtimes["Go125rc"] = "go-1.25-rc";
|
|
28850
|
+
Runtimes["Go126rc"] = "go-1.26-rc";
|
|
28851
|
+
Runtimes["Static1rc"] = "static-1-rc";
|
|
28852
|
+
Runtimes["Flutter324rc"] = "flutter-3.24-rc";
|
|
28853
|
+
Runtimes["Flutter327rc"] = "flutter-3.27-rc";
|
|
28854
|
+
Runtimes["Flutter329rc"] = "flutter-3.29-rc";
|
|
28855
|
+
Runtimes["Flutter332rc"] = "flutter-3.32-rc";
|
|
28856
|
+
Runtimes["Flutter335rc"] = "flutter-3.35-rc";
|
|
28857
|
+
Runtimes["Flutter338rc"] = "flutter-3.38-rc";
|
|
28588
28858
|
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
28589
28859
|
|
|
28590
28860
|
exports.UseCases = void 0;
|
|
@@ -28679,6 +28949,10 @@ exports.AppwriteMigrationResource = void 0;
|
|
|
28679
28949
|
AppwriteMigrationResource["Function"] = "function";
|
|
28680
28950
|
AppwriteMigrationResource["Deployment"] = "deployment";
|
|
28681
28951
|
AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
|
|
28952
|
+
AppwriteMigrationResource["Provider"] = "provider";
|
|
28953
|
+
AppwriteMigrationResource["Topic"] = "topic";
|
|
28954
|
+
AppwriteMigrationResource["Subscriber"] = "subscriber";
|
|
28955
|
+
AppwriteMigrationResource["Message"] = "message";
|
|
28682
28956
|
AppwriteMigrationResource["Site"] = "site";
|
|
28683
28957
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
28684
28958
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
@@ -29227,6 +29501,92 @@ exports.BuildRuntime = void 0;
|
|
|
29227
29501
|
BuildRuntime["Flutter332"] = "flutter-3.32";
|
|
29228
29502
|
BuildRuntime["Flutter335"] = "flutter-3.35";
|
|
29229
29503
|
BuildRuntime["Flutter338"] = "flutter-3.38";
|
|
29504
|
+
BuildRuntime["Node145rc"] = "node-14.5-rc";
|
|
29505
|
+
BuildRuntime["Node160rc"] = "node-16.0-rc";
|
|
29506
|
+
BuildRuntime["Node180rc"] = "node-18.0-rc";
|
|
29507
|
+
BuildRuntime["Node190rc"] = "node-19.0-rc";
|
|
29508
|
+
BuildRuntime["Node200rc"] = "node-20.0-rc";
|
|
29509
|
+
BuildRuntime["Node210rc"] = "node-21.0-rc";
|
|
29510
|
+
BuildRuntime["Node22rc"] = "node-22-rc";
|
|
29511
|
+
BuildRuntime["Node23rc"] = "node-23-rc";
|
|
29512
|
+
BuildRuntime["Node24rc"] = "node-24-rc";
|
|
29513
|
+
BuildRuntime["Node25rc"] = "node-25-rc";
|
|
29514
|
+
BuildRuntime["Php80rc"] = "php-8.0-rc";
|
|
29515
|
+
BuildRuntime["Php81rc"] = "php-8.1-rc";
|
|
29516
|
+
BuildRuntime["Php82rc"] = "php-8.2-rc";
|
|
29517
|
+
BuildRuntime["Php83rc"] = "php-8.3-rc";
|
|
29518
|
+
BuildRuntime["Php84rc"] = "php-8.4-rc";
|
|
29519
|
+
BuildRuntime["Ruby30rc"] = "ruby-3.0-rc";
|
|
29520
|
+
BuildRuntime["Ruby31rc"] = "ruby-3.1-rc";
|
|
29521
|
+
BuildRuntime["Ruby32rc"] = "ruby-3.2-rc";
|
|
29522
|
+
BuildRuntime["Ruby33rc"] = "ruby-3.3-rc";
|
|
29523
|
+
BuildRuntime["Ruby34rc"] = "ruby-3.4-rc";
|
|
29524
|
+
BuildRuntime["Ruby40rc"] = "ruby-4.0-rc";
|
|
29525
|
+
BuildRuntime["Python38rc"] = "python-3.8-rc";
|
|
29526
|
+
BuildRuntime["Python39rc"] = "python-3.9-rc";
|
|
29527
|
+
BuildRuntime["Python310rc"] = "python-3.10-rc";
|
|
29528
|
+
BuildRuntime["Python311rc"] = "python-3.11-rc";
|
|
29529
|
+
BuildRuntime["Python312rc"] = "python-3.12-rc";
|
|
29530
|
+
BuildRuntime["Python313rc"] = "python-3.13-rc";
|
|
29531
|
+
BuildRuntime["Python314rc"] = "python-3.14-rc";
|
|
29532
|
+
BuildRuntime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
29533
|
+
BuildRuntime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
29534
|
+
BuildRuntime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
29535
|
+
BuildRuntime["Deno140rc"] = "deno-1.40-rc";
|
|
29536
|
+
BuildRuntime["Deno146rc"] = "deno-1.46-rc";
|
|
29537
|
+
BuildRuntime["Deno20rc"] = "deno-2.0-rc";
|
|
29538
|
+
BuildRuntime["Deno25rc"] = "deno-2.5-rc";
|
|
29539
|
+
BuildRuntime["Deno26rc"] = "deno-2.6-rc";
|
|
29540
|
+
BuildRuntime["Dart215rc"] = "dart-2.15-rc";
|
|
29541
|
+
BuildRuntime["Dart216rc"] = "dart-2.16-rc";
|
|
29542
|
+
BuildRuntime["Dart217rc"] = "dart-2.17-rc";
|
|
29543
|
+
BuildRuntime["Dart218rc"] = "dart-2.18-rc";
|
|
29544
|
+
BuildRuntime["Dart219rc"] = "dart-2.19-rc";
|
|
29545
|
+
BuildRuntime["Dart30rc"] = "dart-3.0-rc";
|
|
29546
|
+
BuildRuntime["Dart31rc"] = "dart-3.1-rc";
|
|
29547
|
+
BuildRuntime["Dart33rc"] = "dart-3.3-rc";
|
|
29548
|
+
BuildRuntime["Dart35rc"] = "dart-3.5-rc";
|
|
29549
|
+
BuildRuntime["Dart38rc"] = "dart-3.8-rc";
|
|
29550
|
+
BuildRuntime["Dart39rc"] = "dart-3.9-rc";
|
|
29551
|
+
BuildRuntime["Dart310rc"] = "dart-3.10-rc";
|
|
29552
|
+
BuildRuntime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
29553
|
+
BuildRuntime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
29554
|
+
BuildRuntime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
29555
|
+
BuildRuntime["Dotnet10rc"] = "dotnet-10-rc";
|
|
29556
|
+
BuildRuntime["Java80rc"] = "java-8.0-rc";
|
|
29557
|
+
BuildRuntime["Java110rc"] = "java-11.0-rc";
|
|
29558
|
+
BuildRuntime["Java170rc"] = "java-17.0-rc";
|
|
29559
|
+
BuildRuntime["Java180rc"] = "java-18.0-rc";
|
|
29560
|
+
BuildRuntime["Java210rc"] = "java-21.0-rc";
|
|
29561
|
+
BuildRuntime["Java22rc"] = "java-22-rc";
|
|
29562
|
+
BuildRuntime["Java25rc"] = "java-25-rc";
|
|
29563
|
+
BuildRuntime["Swift55rc"] = "swift-5.5-rc";
|
|
29564
|
+
BuildRuntime["Swift58rc"] = "swift-5.8-rc";
|
|
29565
|
+
BuildRuntime["Swift59rc"] = "swift-5.9-rc";
|
|
29566
|
+
BuildRuntime["Swift510rc"] = "swift-5.10-rc";
|
|
29567
|
+
BuildRuntime["Swift62rc"] = "swift-6.2-rc";
|
|
29568
|
+
BuildRuntime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
29569
|
+
BuildRuntime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
29570
|
+
BuildRuntime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
29571
|
+
BuildRuntime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
29572
|
+
BuildRuntime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
29573
|
+
BuildRuntime["Cpp17rc"] = "cpp-17-rc";
|
|
29574
|
+
BuildRuntime["Cpp20rc"] = "cpp-20-rc";
|
|
29575
|
+
BuildRuntime["Bun10rc"] = "bun-1.0-rc";
|
|
29576
|
+
BuildRuntime["Bun11rc"] = "bun-1.1-rc";
|
|
29577
|
+
BuildRuntime["Bun12rc"] = "bun-1.2-rc";
|
|
29578
|
+
BuildRuntime["Bun13rc"] = "bun-1.3-rc";
|
|
29579
|
+
BuildRuntime["Go123rc"] = "go-1.23-rc";
|
|
29580
|
+
BuildRuntime["Go124rc"] = "go-1.24-rc";
|
|
29581
|
+
BuildRuntime["Go125rc"] = "go-1.25-rc";
|
|
29582
|
+
BuildRuntime["Go126rc"] = "go-1.26-rc";
|
|
29583
|
+
BuildRuntime["Static1rc"] = "static-1-rc";
|
|
29584
|
+
BuildRuntime["Flutter324rc"] = "flutter-3.24-rc";
|
|
29585
|
+
BuildRuntime["Flutter327rc"] = "flutter-3.27-rc";
|
|
29586
|
+
BuildRuntime["Flutter329rc"] = "flutter-3.29-rc";
|
|
29587
|
+
BuildRuntime["Flutter332rc"] = "flutter-3.32-rc";
|
|
29588
|
+
BuildRuntime["Flutter335rc"] = "flutter-3.35-rc";
|
|
29589
|
+
BuildRuntime["Flutter338rc"] = "flutter-3.38-rc";
|
|
29230
29590
|
})(exports.BuildRuntime || (exports.BuildRuntime = {}));
|
|
29231
29591
|
|
|
29232
29592
|
exports.Adapter = void 0;
|
|
@@ -29404,17 +29764,25 @@ exports.BillingPlanGroup = void 0;
|
|
|
29404
29764
|
BillingPlanGroup["Scale"] = "scale";
|
|
29405
29765
|
})(exports.BillingPlanGroup || (exports.BillingPlanGroup = {}));
|
|
29406
29766
|
|
|
29407
|
-
exports.
|
|
29408
|
-
(function (
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
})(exports.
|
|
29767
|
+
exports.DomainTransferStatusEnum = void 0;
|
|
29768
|
+
(function (DomainTransferStatusEnum) {
|
|
29769
|
+
DomainTransferStatusEnum["Transferrable"] = "transferrable";
|
|
29770
|
+
DomainTransferStatusEnum["NotTransferrable"] = "not_transferrable";
|
|
29771
|
+
DomainTransferStatusEnum["PendingOwner"] = "pending_owner";
|
|
29772
|
+
DomainTransferStatusEnum["PendingAdmin"] = "pending_admin";
|
|
29773
|
+
DomainTransferStatusEnum["PendingRegistry"] = "pending_registry";
|
|
29774
|
+
DomainTransferStatusEnum["Completed"] = "completed";
|
|
29775
|
+
DomainTransferStatusEnum["Cancelled"] = "cancelled";
|
|
29776
|
+
DomainTransferStatusEnum["ServiceUnavailable"] = "service_unavailable";
|
|
29777
|
+
})(exports.DomainTransferStatusEnum || (exports.DomainTransferStatusEnum = {}));
|
|
29778
|
+
|
|
29779
|
+
exports.DomainPurchaseStatus = void 0;
|
|
29780
|
+
(function (DomainPurchaseStatus) {
|
|
29781
|
+
DomainPurchaseStatus["Pending"] = "pending";
|
|
29782
|
+
DomainPurchaseStatus["Succeeded"] = "succeeded";
|
|
29783
|
+
DomainPurchaseStatus["Failed"] = "failed";
|
|
29784
|
+
DomainPurchaseStatus["Cancelled"] = "cancelled";
|
|
29785
|
+
})(exports.DomainPurchaseStatus || (exports.DomainPurchaseStatus = {}));
|
|
29418
29786
|
|
|
29419
29787
|
exports.Account = Account;
|
|
29420
29788
|
exports.Activities = Activities;
|
|
@@ -29450,4 +29818,5 @@ exports.Teams = Teams;
|
|
|
29450
29818
|
exports.Tokens = Tokens;
|
|
29451
29819
|
exports.Users = Users;
|
|
29452
29820
|
exports.Vcs = Vcs;
|
|
29821
|
+
exports.Webhooks = Webhooks;
|
|
29453
29822
|
//# sourceMappingURL=sdk.js.map
|