@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/esm/sdk.js
CHANGED
|
@@ -568,7 +568,7 @@ class Client {
|
|
|
568
568
|
'x-sdk-name': 'Console',
|
|
569
569
|
'x-sdk-platform': 'console',
|
|
570
570
|
'x-sdk-language': 'web',
|
|
571
|
-
'x-sdk-version': '
|
|
571
|
+
'x-sdk-version': '6.0.0',
|
|
572
572
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
573
573
|
};
|
|
574
574
|
this.realtime = {
|
|
@@ -1110,6 +1110,9 @@ class Client {
|
|
|
1110
1110
|
window.console.warn('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
|
|
1111
1111
|
window.localStorage.setItem('cookieFallback', cookieFallback);
|
|
1112
1112
|
}
|
|
1113
|
+
if (data && typeof data === 'object') {
|
|
1114
|
+
data.toString = () => JSONbig.stringify(data);
|
|
1115
|
+
}
|
|
1113
1116
|
return data;
|
|
1114
1117
|
});
|
|
1115
1118
|
}
|
|
@@ -7858,6 +7861,36 @@ class Domains {
|
|
|
7858
7861
|
};
|
|
7859
7862
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7860
7863
|
}
|
|
7864
|
+
updatePurchase(paramsOrFirst, ...rest) {
|
|
7865
|
+
let params;
|
|
7866
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7867
|
+
params = (paramsOrFirst || {});
|
|
7868
|
+
}
|
|
7869
|
+
else {
|
|
7870
|
+
params = {
|
|
7871
|
+
domainId: paramsOrFirst,
|
|
7872
|
+
organizationId: rest[0]
|
|
7873
|
+
};
|
|
7874
|
+
}
|
|
7875
|
+
const domainId = params.domainId;
|
|
7876
|
+
const organizationId = params.organizationId;
|
|
7877
|
+
if (typeof domainId === 'undefined') {
|
|
7878
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
7879
|
+
}
|
|
7880
|
+
if (typeof organizationId === 'undefined') {
|
|
7881
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
7882
|
+
}
|
|
7883
|
+
const apiPath = '/domains/purchases/{domainId}'.replace('{domainId}', domainId);
|
|
7884
|
+
const payload = {};
|
|
7885
|
+
if (typeof organizationId !== 'undefined') {
|
|
7886
|
+
payload['organizationId'] = organizationId;
|
|
7887
|
+
}
|
|
7888
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7889
|
+
const apiHeaders = {
|
|
7890
|
+
'content-type': 'application/json',
|
|
7891
|
+
};
|
|
7892
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
7893
|
+
}
|
|
7861
7894
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
7862
7895
|
let params;
|
|
7863
7896
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -7955,6 +7988,36 @@ class Domains {
|
|
|
7955
7988
|
};
|
|
7956
7989
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7957
7990
|
}
|
|
7991
|
+
updateTransferIn(paramsOrFirst, ...rest) {
|
|
7992
|
+
let params;
|
|
7993
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7994
|
+
params = (paramsOrFirst || {});
|
|
7995
|
+
}
|
|
7996
|
+
else {
|
|
7997
|
+
params = {
|
|
7998
|
+
domainId: paramsOrFirst,
|
|
7999
|
+
organizationId: rest[0]
|
|
8000
|
+
};
|
|
8001
|
+
}
|
|
8002
|
+
const domainId = params.domainId;
|
|
8003
|
+
const organizationId = params.organizationId;
|
|
8004
|
+
if (typeof domainId === 'undefined') {
|
|
8005
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
8006
|
+
}
|
|
8007
|
+
if (typeof organizationId === 'undefined') {
|
|
8008
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
8009
|
+
}
|
|
8010
|
+
const apiPath = '/domains/transfers/in/{domainId}'.replace('{domainId}', domainId);
|
|
8011
|
+
const payload = {};
|
|
8012
|
+
if (typeof organizationId !== 'undefined') {
|
|
8013
|
+
payload['organizationId'] = organizationId;
|
|
8014
|
+
}
|
|
8015
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8016
|
+
const apiHeaders = {
|
|
8017
|
+
'content-type': 'application/json',
|
|
8018
|
+
};
|
|
8019
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
8020
|
+
}
|
|
7958
8021
|
createTransferOut(paramsOrFirst, ...rest) {
|
|
7959
8022
|
let params;
|
|
7960
8023
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9672,7 +9735,9 @@ class Functions {
|
|
|
9672
9735
|
providerBranch: rest[13],
|
|
9673
9736
|
providerSilentMode: rest[14],
|
|
9674
9737
|
providerRootDirectory: rest[15],
|
|
9675
|
-
|
|
9738
|
+
buildSpecification: rest[16],
|
|
9739
|
+
runtimeSpecification: rest[17],
|
|
9740
|
+
deploymentRetention: rest[18]
|
|
9676
9741
|
};
|
|
9677
9742
|
}
|
|
9678
9743
|
const functionId = params.functionId;
|
|
@@ -9692,7 +9757,9 @@ class Functions {
|
|
|
9692
9757
|
const providerBranch = params.providerBranch;
|
|
9693
9758
|
const providerSilentMode = params.providerSilentMode;
|
|
9694
9759
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9695
|
-
const
|
|
9760
|
+
const buildSpecification = params.buildSpecification;
|
|
9761
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
9762
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9696
9763
|
if (typeof functionId === 'undefined') {
|
|
9697
9764
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9698
9765
|
}
|
|
@@ -9755,8 +9822,14 @@ class Functions {
|
|
|
9755
9822
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9756
9823
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9757
9824
|
}
|
|
9758
|
-
if (typeof
|
|
9759
|
-
payload['
|
|
9825
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
9826
|
+
payload['buildSpecification'] = buildSpecification;
|
|
9827
|
+
}
|
|
9828
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
9829
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
9830
|
+
}
|
|
9831
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
9832
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
9760
9833
|
}
|
|
9761
9834
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9762
9835
|
const apiHeaders = {
|
|
@@ -9914,7 +9987,9 @@ class Functions {
|
|
|
9914
9987
|
providerBranch: rest[13],
|
|
9915
9988
|
providerSilentMode: rest[14],
|
|
9916
9989
|
providerRootDirectory: rest[15],
|
|
9917
|
-
|
|
9990
|
+
buildSpecification: rest[16],
|
|
9991
|
+
runtimeSpecification: rest[17],
|
|
9992
|
+
deploymentRetention: rest[18]
|
|
9918
9993
|
};
|
|
9919
9994
|
}
|
|
9920
9995
|
const functionId = params.functionId;
|
|
@@ -9934,7 +10009,9 @@ class Functions {
|
|
|
9934
10009
|
const providerBranch = params.providerBranch;
|
|
9935
10010
|
const providerSilentMode = params.providerSilentMode;
|
|
9936
10011
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9937
|
-
const
|
|
10012
|
+
const buildSpecification = params.buildSpecification;
|
|
10013
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
10014
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9938
10015
|
if (typeof functionId === 'undefined') {
|
|
9939
10016
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9940
10017
|
}
|
|
@@ -9991,8 +10068,14 @@ class Functions {
|
|
|
9991
10068
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9992
10069
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9993
10070
|
}
|
|
9994
|
-
if (typeof
|
|
9995
|
-
payload['
|
|
10071
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
10072
|
+
payload['buildSpecification'] = buildSpecification;
|
|
10073
|
+
}
|
|
10074
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
10075
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
10076
|
+
}
|
|
10077
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
10078
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
9996
10079
|
}
|
|
9997
10080
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9998
10081
|
const apiHeaders = {
|
|
@@ -18623,24 +18706,35 @@ class Projects {
|
|
|
18623
18706
|
};
|
|
18624
18707
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18625
18708
|
}
|
|
18626
|
-
|
|
18709
|
+
}
|
|
18710
|
+
|
|
18711
|
+
class Proxy {
|
|
18712
|
+
constructor(client) {
|
|
18713
|
+
this.client = client;
|
|
18714
|
+
}
|
|
18715
|
+
listRules(paramsOrFirst, ...rest) {
|
|
18627
18716
|
let params;
|
|
18628
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18717
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18629
18718
|
params = (paramsOrFirst || {});
|
|
18630
18719
|
}
|
|
18631
18720
|
else {
|
|
18632
18721
|
params = {
|
|
18633
|
-
|
|
18634
|
-
|
|
18722
|
+
queries: paramsOrFirst,
|
|
18723
|
+
search: rest[0],
|
|
18724
|
+
total: rest[1]
|
|
18635
18725
|
};
|
|
18636
18726
|
}
|
|
18637
|
-
const
|
|
18727
|
+
const queries = params.queries;
|
|
18728
|
+
const search = params.search;
|
|
18638
18729
|
const total = params.total;
|
|
18639
|
-
|
|
18640
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18641
|
-
}
|
|
18642
|
-
const apiPath = '/projects/{projectId}/webhooks'.replace('{projectId}', projectId);
|
|
18730
|
+
const apiPath = '/proxy/rules';
|
|
18643
18731
|
const payload = {};
|
|
18732
|
+
if (typeof queries !== 'undefined') {
|
|
18733
|
+
payload['queries'] = queries;
|
|
18734
|
+
}
|
|
18735
|
+
if (typeof search !== 'undefined') {
|
|
18736
|
+
payload['search'] = search;
|
|
18737
|
+
}
|
|
18644
18738
|
if (typeof total !== 'undefined') {
|
|
18645
18739
|
payload['total'] = total;
|
|
18646
18740
|
}
|
|
@@ -18648,68 +18742,24 @@ class Projects {
|
|
|
18648
18742
|
const apiHeaders = {};
|
|
18649
18743
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
18650
18744
|
}
|
|
18651
|
-
|
|
18745
|
+
createAPIRule(paramsOrFirst) {
|
|
18652
18746
|
let params;
|
|
18653
18747
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18654
18748
|
params = (paramsOrFirst || {});
|
|
18655
18749
|
}
|
|
18656
18750
|
else {
|
|
18657
18751
|
params = {
|
|
18658
|
-
|
|
18659
|
-
name: rest[0],
|
|
18660
|
-
events: rest[1],
|
|
18661
|
-
url: rest[2],
|
|
18662
|
-
security: rest[3],
|
|
18663
|
-
enabled: rest[4],
|
|
18664
|
-
httpUser: rest[5],
|
|
18665
|
-
httpPass: rest[6]
|
|
18752
|
+
domain: paramsOrFirst
|
|
18666
18753
|
};
|
|
18667
18754
|
}
|
|
18668
|
-
const
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
const url = params.url;
|
|
18672
|
-
const security = params.security;
|
|
18673
|
-
const enabled = params.enabled;
|
|
18674
|
-
const httpUser = params.httpUser;
|
|
18675
|
-
const httpPass = params.httpPass;
|
|
18676
|
-
if (typeof projectId === 'undefined') {
|
|
18677
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18678
|
-
}
|
|
18679
|
-
if (typeof name === 'undefined') {
|
|
18680
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
18681
|
-
}
|
|
18682
|
-
if (typeof events === 'undefined') {
|
|
18683
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
18684
|
-
}
|
|
18685
|
-
if (typeof url === 'undefined') {
|
|
18686
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
18687
|
-
}
|
|
18688
|
-
if (typeof security === 'undefined') {
|
|
18689
|
-
throw new AppwriteException('Missing required parameter: "security"');
|
|
18755
|
+
const domain = params.domain;
|
|
18756
|
+
if (typeof domain === 'undefined') {
|
|
18757
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18690
18758
|
}
|
|
18691
|
-
const apiPath = '/
|
|
18759
|
+
const apiPath = '/proxy/rules/api';
|
|
18692
18760
|
const payload = {};
|
|
18693
|
-
if (typeof
|
|
18694
|
-
payload['
|
|
18695
|
-
}
|
|
18696
|
-
if (typeof enabled !== 'undefined') {
|
|
18697
|
-
payload['enabled'] = enabled;
|
|
18698
|
-
}
|
|
18699
|
-
if (typeof events !== 'undefined') {
|
|
18700
|
-
payload['events'] = events;
|
|
18701
|
-
}
|
|
18702
|
-
if (typeof url !== 'undefined') {
|
|
18703
|
-
payload['url'] = url;
|
|
18704
|
-
}
|
|
18705
|
-
if (typeof security !== 'undefined') {
|
|
18706
|
-
payload['security'] = security;
|
|
18707
|
-
}
|
|
18708
|
-
if (typeof httpUser !== 'undefined') {
|
|
18709
|
-
payload['httpUser'] = httpUser;
|
|
18710
|
-
}
|
|
18711
|
-
if (typeof httpPass !== 'undefined') {
|
|
18712
|
-
payload['httpPass'] = httpPass;
|
|
18761
|
+
if (typeof domain !== 'undefined') {
|
|
18762
|
+
payload['domain'] = domain;
|
|
18713
18763
|
}
|
|
18714
18764
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18715
18765
|
const apiHeaders = {
|
|
@@ -18717,332 +18767,118 @@ class Projects {
|
|
|
18717
18767
|
};
|
|
18718
18768
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
18719
18769
|
}
|
|
18720
|
-
|
|
18770
|
+
createFunctionRule(paramsOrFirst, ...rest) {
|
|
18721
18771
|
let params;
|
|
18722
18772
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18723
18773
|
params = (paramsOrFirst || {});
|
|
18724
18774
|
}
|
|
18725
18775
|
else {
|
|
18726
18776
|
params = {
|
|
18727
|
-
|
|
18728
|
-
|
|
18777
|
+
domain: paramsOrFirst,
|
|
18778
|
+
functionId: rest[0],
|
|
18779
|
+
branch: rest[1]
|
|
18729
18780
|
};
|
|
18730
18781
|
}
|
|
18731
|
-
const
|
|
18732
|
-
const
|
|
18733
|
-
|
|
18734
|
-
|
|
18782
|
+
const domain = params.domain;
|
|
18783
|
+
const functionId = params.functionId;
|
|
18784
|
+
const branch = params.branch;
|
|
18785
|
+
if (typeof domain === 'undefined') {
|
|
18786
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18735
18787
|
}
|
|
18736
|
-
if (typeof
|
|
18737
|
-
throw new AppwriteException('Missing required parameter: "
|
|
18788
|
+
if (typeof functionId === 'undefined') {
|
|
18789
|
+
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
18738
18790
|
}
|
|
18739
|
-
const apiPath = '/
|
|
18791
|
+
const apiPath = '/proxy/rules/function';
|
|
18740
18792
|
const payload = {};
|
|
18793
|
+
if (typeof domain !== 'undefined') {
|
|
18794
|
+
payload['domain'] = domain;
|
|
18795
|
+
}
|
|
18796
|
+
if (typeof functionId !== 'undefined') {
|
|
18797
|
+
payload['functionId'] = functionId;
|
|
18798
|
+
}
|
|
18799
|
+
if (typeof branch !== 'undefined') {
|
|
18800
|
+
payload['branch'] = branch;
|
|
18801
|
+
}
|
|
18741
18802
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18742
|
-
const apiHeaders = {
|
|
18743
|
-
|
|
18803
|
+
const apiHeaders = {
|
|
18804
|
+
'content-type': 'application/json',
|
|
18805
|
+
};
|
|
18806
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18744
18807
|
}
|
|
18745
|
-
|
|
18808
|
+
createRedirectRule(paramsOrFirst, ...rest) {
|
|
18746
18809
|
let params;
|
|
18747
18810
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18748
18811
|
params = (paramsOrFirst || {});
|
|
18749
18812
|
}
|
|
18750
18813
|
else {
|
|
18751
18814
|
params = {
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18755
|
-
|
|
18756
|
-
|
|
18757
|
-
security: rest[4],
|
|
18758
|
-
enabled: rest[5],
|
|
18759
|
-
httpUser: rest[6],
|
|
18760
|
-
httpPass: rest[7]
|
|
18815
|
+
domain: paramsOrFirst,
|
|
18816
|
+
url: rest[0],
|
|
18817
|
+
statusCode: rest[1],
|
|
18818
|
+
resourceId: rest[2],
|
|
18819
|
+
resourceType: rest[3]
|
|
18761
18820
|
};
|
|
18762
18821
|
}
|
|
18763
|
-
const
|
|
18764
|
-
const webhookId = params.webhookId;
|
|
18765
|
-
const name = params.name;
|
|
18766
|
-
const events = params.events;
|
|
18822
|
+
const domain = params.domain;
|
|
18767
18823
|
const url = params.url;
|
|
18768
|
-
const
|
|
18769
|
-
const
|
|
18770
|
-
const
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18774
|
-
}
|
|
18775
|
-
if (typeof webhookId === 'undefined') {
|
|
18776
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18777
|
-
}
|
|
18778
|
-
if (typeof name === 'undefined') {
|
|
18779
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
18780
|
-
}
|
|
18781
|
-
if (typeof events === 'undefined') {
|
|
18782
|
-
throw new AppwriteException('Missing required parameter: "events"');
|
|
18824
|
+
const statusCode = params.statusCode;
|
|
18825
|
+
const resourceId = params.resourceId;
|
|
18826
|
+
const resourceType = params.resourceType;
|
|
18827
|
+
if (typeof domain === 'undefined') {
|
|
18828
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18783
18829
|
}
|
|
18784
18830
|
if (typeof url === 'undefined') {
|
|
18785
18831
|
throw new AppwriteException('Missing required parameter: "url"');
|
|
18786
18832
|
}
|
|
18787
|
-
if (typeof
|
|
18788
|
-
throw new AppwriteException('Missing required parameter: "
|
|
18833
|
+
if (typeof statusCode === 'undefined') {
|
|
18834
|
+
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
18789
18835
|
}
|
|
18790
|
-
|
|
18791
|
-
|
|
18792
|
-
if (typeof name !== 'undefined') {
|
|
18793
|
-
payload['name'] = name;
|
|
18836
|
+
if (typeof resourceId === 'undefined') {
|
|
18837
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
18794
18838
|
}
|
|
18795
|
-
if (typeof
|
|
18796
|
-
|
|
18839
|
+
if (typeof resourceType === 'undefined') {
|
|
18840
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
18797
18841
|
}
|
|
18798
|
-
|
|
18799
|
-
|
|
18842
|
+
const apiPath = '/proxy/rules/redirect';
|
|
18843
|
+
const payload = {};
|
|
18844
|
+
if (typeof domain !== 'undefined') {
|
|
18845
|
+
payload['domain'] = domain;
|
|
18800
18846
|
}
|
|
18801
18847
|
if (typeof url !== 'undefined') {
|
|
18802
18848
|
payload['url'] = url;
|
|
18803
18849
|
}
|
|
18804
|
-
if (typeof
|
|
18805
|
-
payload['
|
|
18850
|
+
if (typeof statusCode !== 'undefined') {
|
|
18851
|
+
payload['statusCode'] = statusCode;
|
|
18806
18852
|
}
|
|
18807
|
-
if (typeof
|
|
18808
|
-
payload['
|
|
18853
|
+
if (typeof resourceId !== 'undefined') {
|
|
18854
|
+
payload['resourceId'] = resourceId;
|
|
18809
18855
|
}
|
|
18810
|
-
if (typeof
|
|
18811
|
-
payload['
|
|
18856
|
+
if (typeof resourceType !== 'undefined') {
|
|
18857
|
+
payload['resourceType'] = resourceType;
|
|
18812
18858
|
}
|
|
18813
18859
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18814
18860
|
const apiHeaders = {
|
|
18815
18861
|
'content-type': 'application/json',
|
|
18816
18862
|
};
|
|
18817
|
-
return this.client.call('
|
|
18863
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18818
18864
|
}
|
|
18819
|
-
|
|
18865
|
+
createSiteRule(paramsOrFirst, ...rest) {
|
|
18820
18866
|
let params;
|
|
18821
18867
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18822
18868
|
params = (paramsOrFirst || {});
|
|
18823
18869
|
}
|
|
18824
18870
|
else {
|
|
18825
18871
|
params = {
|
|
18826
|
-
|
|
18827
|
-
|
|
18872
|
+
domain: paramsOrFirst,
|
|
18873
|
+
siteId: rest[0],
|
|
18874
|
+
branch: rest[1]
|
|
18828
18875
|
};
|
|
18829
18876
|
}
|
|
18830
|
-
const
|
|
18831
|
-
const
|
|
18832
|
-
|
|
18833
|
-
|
|
18834
|
-
|
|
18835
|
-
if (typeof webhookId === 'undefined') {
|
|
18836
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18837
|
-
}
|
|
18838
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
18839
|
-
const payload = {};
|
|
18840
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18841
|
-
const apiHeaders = {
|
|
18842
|
-
'content-type': 'application/json',
|
|
18843
|
-
};
|
|
18844
|
-
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18845
|
-
}
|
|
18846
|
-
updateWebhookSignature(paramsOrFirst, ...rest) {
|
|
18847
|
-
let params;
|
|
18848
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18849
|
-
params = (paramsOrFirst || {});
|
|
18850
|
-
}
|
|
18851
|
-
else {
|
|
18852
|
-
params = {
|
|
18853
|
-
projectId: paramsOrFirst,
|
|
18854
|
-
webhookId: rest[0]
|
|
18855
|
-
};
|
|
18856
|
-
}
|
|
18857
|
-
const projectId = params.projectId;
|
|
18858
|
-
const webhookId = params.webhookId;
|
|
18859
|
-
if (typeof projectId === 'undefined') {
|
|
18860
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18861
|
-
}
|
|
18862
|
-
if (typeof webhookId === 'undefined') {
|
|
18863
|
-
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
18864
|
-
}
|
|
18865
|
-
const apiPath = '/projects/{projectId}/webhooks/{webhookId}/signature'.replace('{projectId}', projectId).replace('{webhookId}', webhookId);
|
|
18866
|
-
const payload = {};
|
|
18867
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18868
|
-
const apiHeaders = {
|
|
18869
|
-
'content-type': 'application/json',
|
|
18870
|
-
};
|
|
18871
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18872
|
-
}
|
|
18873
|
-
}
|
|
18874
|
-
|
|
18875
|
-
class Proxy {
|
|
18876
|
-
constructor(client) {
|
|
18877
|
-
this.client = client;
|
|
18878
|
-
}
|
|
18879
|
-
listRules(paramsOrFirst, ...rest) {
|
|
18880
|
-
let params;
|
|
18881
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18882
|
-
params = (paramsOrFirst || {});
|
|
18883
|
-
}
|
|
18884
|
-
else {
|
|
18885
|
-
params = {
|
|
18886
|
-
queries: paramsOrFirst,
|
|
18887
|
-
search: rest[0],
|
|
18888
|
-
total: rest[1]
|
|
18889
|
-
};
|
|
18890
|
-
}
|
|
18891
|
-
const queries = params.queries;
|
|
18892
|
-
const search = params.search;
|
|
18893
|
-
const total = params.total;
|
|
18894
|
-
const apiPath = '/proxy/rules';
|
|
18895
|
-
const payload = {};
|
|
18896
|
-
if (typeof queries !== 'undefined') {
|
|
18897
|
-
payload['queries'] = queries;
|
|
18898
|
-
}
|
|
18899
|
-
if (typeof search !== 'undefined') {
|
|
18900
|
-
payload['search'] = search;
|
|
18901
|
-
}
|
|
18902
|
-
if (typeof total !== 'undefined') {
|
|
18903
|
-
payload['total'] = total;
|
|
18904
|
-
}
|
|
18905
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18906
|
-
const apiHeaders = {};
|
|
18907
|
-
return this.client.call('get', uri, apiHeaders, payload);
|
|
18908
|
-
}
|
|
18909
|
-
createAPIRule(paramsOrFirst) {
|
|
18910
|
-
let params;
|
|
18911
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18912
|
-
params = (paramsOrFirst || {});
|
|
18913
|
-
}
|
|
18914
|
-
else {
|
|
18915
|
-
params = {
|
|
18916
|
-
domain: paramsOrFirst
|
|
18917
|
-
};
|
|
18918
|
-
}
|
|
18919
|
-
const domain = params.domain;
|
|
18920
|
-
if (typeof domain === 'undefined') {
|
|
18921
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18922
|
-
}
|
|
18923
|
-
const apiPath = '/proxy/rules/api';
|
|
18924
|
-
const payload = {};
|
|
18925
|
-
if (typeof domain !== 'undefined') {
|
|
18926
|
-
payload['domain'] = domain;
|
|
18927
|
-
}
|
|
18928
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18929
|
-
const apiHeaders = {
|
|
18930
|
-
'content-type': 'application/json',
|
|
18931
|
-
};
|
|
18932
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
18933
|
-
}
|
|
18934
|
-
createFunctionRule(paramsOrFirst, ...rest) {
|
|
18935
|
-
let params;
|
|
18936
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18937
|
-
params = (paramsOrFirst || {});
|
|
18938
|
-
}
|
|
18939
|
-
else {
|
|
18940
|
-
params = {
|
|
18941
|
-
domain: paramsOrFirst,
|
|
18942
|
-
functionId: rest[0],
|
|
18943
|
-
branch: rest[1]
|
|
18944
|
-
};
|
|
18945
|
-
}
|
|
18946
|
-
const domain = params.domain;
|
|
18947
|
-
const functionId = params.functionId;
|
|
18948
|
-
const branch = params.branch;
|
|
18949
|
-
if (typeof domain === 'undefined') {
|
|
18950
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18951
|
-
}
|
|
18952
|
-
if (typeof functionId === 'undefined') {
|
|
18953
|
-
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
18954
|
-
}
|
|
18955
|
-
const apiPath = '/proxy/rules/function';
|
|
18956
|
-
const payload = {};
|
|
18957
|
-
if (typeof domain !== 'undefined') {
|
|
18958
|
-
payload['domain'] = domain;
|
|
18959
|
-
}
|
|
18960
|
-
if (typeof functionId !== 'undefined') {
|
|
18961
|
-
payload['functionId'] = functionId;
|
|
18962
|
-
}
|
|
18963
|
-
if (typeof branch !== 'undefined') {
|
|
18964
|
-
payload['branch'] = branch;
|
|
18965
|
-
}
|
|
18966
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18967
|
-
const apiHeaders = {
|
|
18968
|
-
'content-type': 'application/json',
|
|
18969
|
-
};
|
|
18970
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
18971
|
-
}
|
|
18972
|
-
createRedirectRule(paramsOrFirst, ...rest) {
|
|
18973
|
-
let params;
|
|
18974
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18975
|
-
params = (paramsOrFirst || {});
|
|
18976
|
-
}
|
|
18977
|
-
else {
|
|
18978
|
-
params = {
|
|
18979
|
-
domain: paramsOrFirst,
|
|
18980
|
-
url: rest[0],
|
|
18981
|
-
statusCode: rest[1],
|
|
18982
|
-
resourceId: rest[2],
|
|
18983
|
-
resourceType: rest[3]
|
|
18984
|
-
};
|
|
18985
|
-
}
|
|
18986
|
-
const domain = params.domain;
|
|
18987
|
-
const url = params.url;
|
|
18988
|
-
const statusCode = params.statusCode;
|
|
18989
|
-
const resourceId = params.resourceId;
|
|
18990
|
-
const resourceType = params.resourceType;
|
|
18991
|
-
if (typeof domain === 'undefined') {
|
|
18992
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18993
|
-
}
|
|
18994
|
-
if (typeof url === 'undefined') {
|
|
18995
|
-
throw new AppwriteException('Missing required parameter: "url"');
|
|
18996
|
-
}
|
|
18997
|
-
if (typeof statusCode === 'undefined') {
|
|
18998
|
-
throw new AppwriteException('Missing required parameter: "statusCode"');
|
|
18999
|
-
}
|
|
19000
|
-
if (typeof resourceId === 'undefined') {
|
|
19001
|
-
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
19002
|
-
}
|
|
19003
|
-
if (typeof resourceType === 'undefined') {
|
|
19004
|
-
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
19005
|
-
}
|
|
19006
|
-
const apiPath = '/proxy/rules/redirect';
|
|
19007
|
-
const payload = {};
|
|
19008
|
-
if (typeof domain !== 'undefined') {
|
|
19009
|
-
payload['domain'] = domain;
|
|
19010
|
-
}
|
|
19011
|
-
if (typeof url !== 'undefined') {
|
|
19012
|
-
payload['url'] = url;
|
|
19013
|
-
}
|
|
19014
|
-
if (typeof statusCode !== 'undefined') {
|
|
19015
|
-
payload['statusCode'] = statusCode;
|
|
19016
|
-
}
|
|
19017
|
-
if (typeof resourceId !== 'undefined') {
|
|
19018
|
-
payload['resourceId'] = resourceId;
|
|
19019
|
-
}
|
|
19020
|
-
if (typeof resourceType !== 'undefined') {
|
|
19021
|
-
payload['resourceType'] = resourceType;
|
|
19022
|
-
}
|
|
19023
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19024
|
-
const apiHeaders = {
|
|
19025
|
-
'content-type': 'application/json',
|
|
19026
|
-
};
|
|
19027
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
19028
|
-
}
|
|
19029
|
-
createSiteRule(paramsOrFirst, ...rest) {
|
|
19030
|
-
let params;
|
|
19031
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19032
|
-
params = (paramsOrFirst || {});
|
|
19033
|
-
}
|
|
19034
|
-
else {
|
|
19035
|
-
params = {
|
|
19036
|
-
domain: paramsOrFirst,
|
|
19037
|
-
siteId: rest[0],
|
|
19038
|
-
branch: rest[1]
|
|
19039
|
-
};
|
|
19040
|
-
}
|
|
19041
|
-
const domain = params.domain;
|
|
19042
|
-
const siteId = params.siteId;
|
|
19043
|
-
const branch = params.branch;
|
|
19044
|
-
if (typeof domain === 'undefined') {
|
|
19045
|
-
throw new AppwriteException('Missing required parameter: "domain"');
|
|
18877
|
+
const domain = params.domain;
|
|
18878
|
+
const siteId = params.siteId;
|
|
18879
|
+
const branch = params.branch;
|
|
18880
|
+
if (typeof domain === 'undefined') {
|
|
18881
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
19046
18882
|
}
|
|
19047
18883
|
if (typeof siteId === 'undefined') {
|
|
19048
18884
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
@@ -19180,15 +19016,18 @@ class Sites {
|
|
|
19180
19016
|
timeout: rest[5],
|
|
19181
19017
|
installCommand: rest[6],
|
|
19182
19018
|
buildCommand: rest[7],
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19019
|
+
startCommand: rest[8],
|
|
19020
|
+
outputDirectory: rest[9],
|
|
19021
|
+
adapter: rest[10],
|
|
19022
|
+
installationId: rest[11],
|
|
19023
|
+
fallbackFile: rest[12],
|
|
19024
|
+
providerRepositoryId: rest[13],
|
|
19025
|
+
providerBranch: rest[14],
|
|
19026
|
+
providerSilentMode: rest[15],
|
|
19027
|
+
providerRootDirectory: rest[16],
|
|
19028
|
+
buildSpecification: rest[17],
|
|
19029
|
+
runtimeSpecification: rest[18],
|
|
19030
|
+
deploymentRetention: rest[19]
|
|
19192
19031
|
};
|
|
19193
19032
|
}
|
|
19194
19033
|
const siteId = params.siteId;
|
|
@@ -19200,6 +19039,7 @@ class Sites {
|
|
|
19200
19039
|
const timeout = params.timeout;
|
|
19201
19040
|
const installCommand = params.installCommand;
|
|
19202
19041
|
const buildCommand = params.buildCommand;
|
|
19042
|
+
const startCommand = params.startCommand;
|
|
19203
19043
|
const outputDirectory = params.outputDirectory;
|
|
19204
19044
|
const adapter = params.adapter;
|
|
19205
19045
|
const installationId = params.installationId;
|
|
@@ -19208,7 +19048,9 @@ class Sites {
|
|
|
19208
19048
|
const providerBranch = params.providerBranch;
|
|
19209
19049
|
const providerSilentMode = params.providerSilentMode;
|
|
19210
19050
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19211
|
-
const
|
|
19051
|
+
const buildSpecification = params.buildSpecification;
|
|
19052
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19053
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19212
19054
|
if (typeof siteId === 'undefined') {
|
|
19213
19055
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19214
19056
|
}
|
|
@@ -19247,6 +19089,9 @@ class Sites {
|
|
|
19247
19089
|
if (typeof buildCommand !== 'undefined') {
|
|
19248
19090
|
payload['buildCommand'] = buildCommand;
|
|
19249
19091
|
}
|
|
19092
|
+
if (typeof startCommand !== 'undefined') {
|
|
19093
|
+
payload['startCommand'] = startCommand;
|
|
19094
|
+
}
|
|
19250
19095
|
if (typeof outputDirectory !== 'undefined') {
|
|
19251
19096
|
payload['outputDirectory'] = outputDirectory;
|
|
19252
19097
|
}
|
|
@@ -19274,8 +19119,14 @@ class Sites {
|
|
|
19274
19119
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19275
19120
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19276
19121
|
}
|
|
19277
|
-
if (typeof
|
|
19278
|
-
payload['
|
|
19122
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19123
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19124
|
+
}
|
|
19125
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19126
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19127
|
+
}
|
|
19128
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19129
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19279
19130
|
}
|
|
19280
19131
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19281
19132
|
const apiHeaders = {
|
|
@@ -19419,16 +19270,19 @@ class Sites {
|
|
|
19419
19270
|
timeout: rest[4],
|
|
19420
19271
|
installCommand: rest[5],
|
|
19421
19272
|
buildCommand: rest[6],
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19273
|
+
startCommand: rest[7],
|
|
19274
|
+
outputDirectory: rest[8],
|
|
19275
|
+
buildRuntime: rest[9],
|
|
19276
|
+
adapter: rest[10],
|
|
19277
|
+
fallbackFile: rest[11],
|
|
19278
|
+
installationId: rest[12],
|
|
19279
|
+
providerRepositoryId: rest[13],
|
|
19280
|
+
providerBranch: rest[14],
|
|
19281
|
+
providerSilentMode: rest[15],
|
|
19282
|
+
providerRootDirectory: rest[16],
|
|
19283
|
+
buildSpecification: rest[17],
|
|
19284
|
+
runtimeSpecification: rest[18],
|
|
19285
|
+
deploymentRetention: rest[19]
|
|
19432
19286
|
};
|
|
19433
19287
|
}
|
|
19434
19288
|
const siteId = params.siteId;
|
|
@@ -19439,6 +19293,7 @@ class Sites {
|
|
|
19439
19293
|
const timeout = params.timeout;
|
|
19440
19294
|
const installCommand = params.installCommand;
|
|
19441
19295
|
const buildCommand = params.buildCommand;
|
|
19296
|
+
const startCommand = params.startCommand;
|
|
19442
19297
|
const outputDirectory = params.outputDirectory;
|
|
19443
19298
|
const buildRuntime = params.buildRuntime;
|
|
19444
19299
|
const adapter = params.adapter;
|
|
@@ -19448,7 +19303,9 @@ class Sites {
|
|
|
19448
19303
|
const providerBranch = params.providerBranch;
|
|
19449
19304
|
const providerSilentMode = params.providerSilentMode;
|
|
19450
19305
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19451
|
-
const
|
|
19306
|
+
const buildSpecification = params.buildSpecification;
|
|
19307
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19308
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19452
19309
|
if (typeof siteId === 'undefined') {
|
|
19453
19310
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19454
19311
|
}
|
|
@@ -19481,6 +19338,9 @@ class Sites {
|
|
|
19481
19338
|
if (typeof buildCommand !== 'undefined') {
|
|
19482
19339
|
payload['buildCommand'] = buildCommand;
|
|
19483
19340
|
}
|
|
19341
|
+
if (typeof startCommand !== 'undefined') {
|
|
19342
|
+
payload['startCommand'] = startCommand;
|
|
19343
|
+
}
|
|
19484
19344
|
if (typeof outputDirectory !== 'undefined') {
|
|
19485
19345
|
payload['outputDirectory'] = outputDirectory;
|
|
19486
19346
|
}
|
|
@@ -19508,8 +19368,14 @@ class Sites {
|
|
|
19508
19368
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19509
19369
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19510
19370
|
}
|
|
19511
|
-
if (typeof
|
|
19512
|
-
payload['
|
|
19371
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19372
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19373
|
+
}
|
|
19374
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19375
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19376
|
+
}
|
|
19377
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19378
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19513
19379
|
}
|
|
19514
19380
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19515
19381
|
const apiHeaders = {
|
|
@@ -26545,6 +26411,236 @@ class Vcs {
|
|
|
26545
26411
|
}
|
|
26546
26412
|
}
|
|
26547
26413
|
|
|
26414
|
+
class Webhooks {
|
|
26415
|
+
constructor(client) {
|
|
26416
|
+
this.client = client;
|
|
26417
|
+
}
|
|
26418
|
+
list(paramsOrFirst, ...rest) {
|
|
26419
|
+
let params;
|
|
26420
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26421
|
+
params = (paramsOrFirst || {});
|
|
26422
|
+
}
|
|
26423
|
+
else {
|
|
26424
|
+
params = {
|
|
26425
|
+
queries: paramsOrFirst,
|
|
26426
|
+
total: rest[0]
|
|
26427
|
+
};
|
|
26428
|
+
}
|
|
26429
|
+
const queries = params.queries;
|
|
26430
|
+
const total = params.total;
|
|
26431
|
+
const apiPath = '/webhooks';
|
|
26432
|
+
const payload = {};
|
|
26433
|
+
if (typeof queries !== 'undefined') {
|
|
26434
|
+
payload['queries'] = queries;
|
|
26435
|
+
}
|
|
26436
|
+
if (typeof total !== 'undefined') {
|
|
26437
|
+
payload['total'] = total;
|
|
26438
|
+
}
|
|
26439
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26440
|
+
const apiHeaders = {};
|
|
26441
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
26442
|
+
}
|
|
26443
|
+
create(paramsOrFirst, ...rest) {
|
|
26444
|
+
let params;
|
|
26445
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26446
|
+
params = (paramsOrFirst || {});
|
|
26447
|
+
}
|
|
26448
|
+
else {
|
|
26449
|
+
params = {
|
|
26450
|
+
webhookId: paramsOrFirst,
|
|
26451
|
+
url: rest[0],
|
|
26452
|
+
name: rest[1],
|
|
26453
|
+
events: rest[2],
|
|
26454
|
+
enabled: rest[3],
|
|
26455
|
+
security: rest[4],
|
|
26456
|
+
httpUser: rest[5],
|
|
26457
|
+
httpPass: rest[6]
|
|
26458
|
+
};
|
|
26459
|
+
}
|
|
26460
|
+
const webhookId = params.webhookId;
|
|
26461
|
+
const url = params.url;
|
|
26462
|
+
const name = params.name;
|
|
26463
|
+
const events = params.events;
|
|
26464
|
+
const enabled = params.enabled;
|
|
26465
|
+
const security = params.security;
|
|
26466
|
+
const httpUser = params.httpUser;
|
|
26467
|
+
const httpPass = params.httpPass;
|
|
26468
|
+
if (typeof webhookId === 'undefined') {
|
|
26469
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26470
|
+
}
|
|
26471
|
+
if (typeof url === 'undefined') {
|
|
26472
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
26473
|
+
}
|
|
26474
|
+
if (typeof name === 'undefined') {
|
|
26475
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
26476
|
+
}
|
|
26477
|
+
if (typeof events === 'undefined') {
|
|
26478
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
26479
|
+
}
|
|
26480
|
+
const apiPath = '/webhooks';
|
|
26481
|
+
const payload = {};
|
|
26482
|
+
if (typeof webhookId !== 'undefined') {
|
|
26483
|
+
payload['webhookId'] = webhookId;
|
|
26484
|
+
}
|
|
26485
|
+
if (typeof url !== 'undefined') {
|
|
26486
|
+
payload['url'] = url;
|
|
26487
|
+
}
|
|
26488
|
+
if (typeof name !== 'undefined') {
|
|
26489
|
+
payload['name'] = name;
|
|
26490
|
+
}
|
|
26491
|
+
if (typeof events !== 'undefined') {
|
|
26492
|
+
payload['events'] = events;
|
|
26493
|
+
}
|
|
26494
|
+
if (typeof enabled !== 'undefined') {
|
|
26495
|
+
payload['enabled'] = enabled;
|
|
26496
|
+
}
|
|
26497
|
+
if (typeof security !== 'undefined') {
|
|
26498
|
+
payload['security'] = security;
|
|
26499
|
+
}
|
|
26500
|
+
if (typeof httpUser !== 'undefined') {
|
|
26501
|
+
payload['httpUser'] = httpUser;
|
|
26502
|
+
}
|
|
26503
|
+
if (typeof httpPass !== 'undefined') {
|
|
26504
|
+
payload['httpPass'] = httpPass;
|
|
26505
|
+
}
|
|
26506
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26507
|
+
const apiHeaders = {
|
|
26508
|
+
'content-type': 'application/json',
|
|
26509
|
+
};
|
|
26510
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
26511
|
+
}
|
|
26512
|
+
get(paramsOrFirst) {
|
|
26513
|
+
let params;
|
|
26514
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26515
|
+
params = (paramsOrFirst || {});
|
|
26516
|
+
}
|
|
26517
|
+
else {
|
|
26518
|
+
params = {
|
|
26519
|
+
webhookId: paramsOrFirst
|
|
26520
|
+
};
|
|
26521
|
+
}
|
|
26522
|
+
const webhookId = params.webhookId;
|
|
26523
|
+
if (typeof webhookId === 'undefined') {
|
|
26524
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26525
|
+
}
|
|
26526
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26527
|
+
const payload = {};
|
|
26528
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26529
|
+
const apiHeaders = {};
|
|
26530
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
26531
|
+
}
|
|
26532
|
+
update(paramsOrFirst, ...rest) {
|
|
26533
|
+
let params;
|
|
26534
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26535
|
+
params = (paramsOrFirst || {});
|
|
26536
|
+
}
|
|
26537
|
+
else {
|
|
26538
|
+
params = {
|
|
26539
|
+
webhookId: paramsOrFirst,
|
|
26540
|
+
name: rest[0],
|
|
26541
|
+
url: rest[1],
|
|
26542
|
+
events: rest[2],
|
|
26543
|
+
enabled: rest[3],
|
|
26544
|
+
security: rest[4],
|
|
26545
|
+
httpUser: rest[5],
|
|
26546
|
+
httpPass: rest[6]
|
|
26547
|
+
};
|
|
26548
|
+
}
|
|
26549
|
+
const webhookId = params.webhookId;
|
|
26550
|
+
const name = params.name;
|
|
26551
|
+
const url = params.url;
|
|
26552
|
+
const events = params.events;
|
|
26553
|
+
const enabled = params.enabled;
|
|
26554
|
+
const security = params.security;
|
|
26555
|
+
const httpUser = params.httpUser;
|
|
26556
|
+
const httpPass = params.httpPass;
|
|
26557
|
+
if (typeof webhookId === 'undefined') {
|
|
26558
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26559
|
+
}
|
|
26560
|
+
if (typeof name === 'undefined') {
|
|
26561
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
26562
|
+
}
|
|
26563
|
+
if (typeof url === 'undefined') {
|
|
26564
|
+
throw new AppwriteException('Missing required parameter: "url"');
|
|
26565
|
+
}
|
|
26566
|
+
if (typeof events === 'undefined') {
|
|
26567
|
+
throw new AppwriteException('Missing required parameter: "events"');
|
|
26568
|
+
}
|
|
26569
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26570
|
+
const payload = {};
|
|
26571
|
+
if (typeof name !== 'undefined') {
|
|
26572
|
+
payload['name'] = name;
|
|
26573
|
+
}
|
|
26574
|
+
if (typeof url !== 'undefined') {
|
|
26575
|
+
payload['url'] = url;
|
|
26576
|
+
}
|
|
26577
|
+
if (typeof events !== 'undefined') {
|
|
26578
|
+
payload['events'] = events;
|
|
26579
|
+
}
|
|
26580
|
+
if (typeof enabled !== 'undefined') {
|
|
26581
|
+
payload['enabled'] = enabled;
|
|
26582
|
+
}
|
|
26583
|
+
if (typeof security !== 'undefined') {
|
|
26584
|
+
payload['security'] = security;
|
|
26585
|
+
}
|
|
26586
|
+
if (typeof httpUser !== 'undefined') {
|
|
26587
|
+
payload['httpUser'] = httpUser;
|
|
26588
|
+
}
|
|
26589
|
+
if (typeof httpPass !== 'undefined') {
|
|
26590
|
+
payload['httpPass'] = httpPass;
|
|
26591
|
+
}
|
|
26592
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26593
|
+
const apiHeaders = {
|
|
26594
|
+
'content-type': 'application/json',
|
|
26595
|
+
};
|
|
26596
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
26597
|
+
}
|
|
26598
|
+
delete(paramsOrFirst) {
|
|
26599
|
+
let params;
|
|
26600
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26601
|
+
params = (paramsOrFirst || {});
|
|
26602
|
+
}
|
|
26603
|
+
else {
|
|
26604
|
+
params = {
|
|
26605
|
+
webhookId: paramsOrFirst
|
|
26606
|
+
};
|
|
26607
|
+
}
|
|
26608
|
+
const webhookId = params.webhookId;
|
|
26609
|
+
if (typeof webhookId === 'undefined') {
|
|
26610
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26611
|
+
}
|
|
26612
|
+
const apiPath = '/webhooks/{webhookId}'.replace('{webhookId}', webhookId);
|
|
26613
|
+
const payload = {};
|
|
26614
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26615
|
+
const apiHeaders = {
|
|
26616
|
+
'content-type': 'application/json',
|
|
26617
|
+
};
|
|
26618
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
26619
|
+
}
|
|
26620
|
+
updateSignature(paramsOrFirst) {
|
|
26621
|
+
let params;
|
|
26622
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
26623
|
+
params = (paramsOrFirst || {});
|
|
26624
|
+
}
|
|
26625
|
+
else {
|
|
26626
|
+
params = {
|
|
26627
|
+
webhookId: paramsOrFirst
|
|
26628
|
+
};
|
|
26629
|
+
}
|
|
26630
|
+
const webhookId = params.webhookId;
|
|
26631
|
+
if (typeof webhookId === 'undefined') {
|
|
26632
|
+
throw new AppwriteException('Missing required parameter: "webhookId"');
|
|
26633
|
+
}
|
|
26634
|
+
const apiPath = '/webhooks/{webhookId}/signature'.replace('{webhookId}', webhookId);
|
|
26635
|
+
const payload = {};
|
|
26636
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26637
|
+
const apiHeaders = {
|
|
26638
|
+
'content-type': 'application/json',
|
|
26639
|
+
};
|
|
26640
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
26641
|
+
}
|
|
26642
|
+
}
|
|
26643
|
+
|
|
26548
26644
|
var RealtimeCode;
|
|
26549
26645
|
(function (RealtimeCode) {
|
|
26550
26646
|
RealtimeCode[RealtimeCode["NORMAL_CLOSURE"] = 1000] = "NORMAL_CLOSURE";
|
|
@@ -27564,6 +27660,8 @@ var Scopes;
|
|
|
27564
27660
|
Scopes["AssistantRead"] = "assistant.read";
|
|
27565
27661
|
Scopes["TokensRead"] = "tokens.read";
|
|
27566
27662
|
Scopes["TokensWrite"] = "tokens.write";
|
|
27663
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
27664
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
27567
27665
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
27568
27666
|
Scopes["PoliciesRead"] = "policies.read";
|
|
27569
27667
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -28489,6 +28587,92 @@ var Runtime;
|
|
|
28489
28587
|
Runtime["Flutter332"] = "flutter-3.32";
|
|
28490
28588
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
28491
28589
|
Runtime["Flutter338"] = "flutter-3.38";
|
|
28590
|
+
Runtime["Node145rc"] = "node-14.5-rc";
|
|
28591
|
+
Runtime["Node160rc"] = "node-16.0-rc";
|
|
28592
|
+
Runtime["Node180rc"] = "node-18.0-rc";
|
|
28593
|
+
Runtime["Node190rc"] = "node-19.0-rc";
|
|
28594
|
+
Runtime["Node200rc"] = "node-20.0-rc";
|
|
28595
|
+
Runtime["Node210rc"] = "node-21.0-rc";
|
|
28596
|
+
Runtime["Node22rc"] = "node-22-rc";
|
|
28597
|
+
Runtime["Node23rc"] = "node-23-rc";
|
|
28598
|
+
Runtime["Node24rc"] = "node-24-rc";
|
|
28599
|
+
Runtime["Node25rc"] = "node-25-rc";
|
|
28600
|
+
Runtime["Php80rc"] = "php-8.0-rc";
|
|
28601
|
+
Runtime["Php81rc"] = "php-8.1-rc";
|
|
28602
|
+
Runtime["Php82rc"] = "php-8.2-rc";
|
|
28603
|
+
Runtime["Php83rc"] = "php-8.3-rc";
|
|
28604
|
+
Runtime["Php84rc"] = "php-8.4-rc";
|
|
28605
|
+
Runtime["Ruby30rc"] = "ruby-3.0-rc";
|
|
28606
|
+
Runtime["Ruby31rc"] = "ruby-3.1-rc";
|
|
28607
|
+
Runtime["Ruby32rc"] = "ruby-3.2-rc";
|
|
28608
|
+
Runtime["Ruby33rc"] = "ruby-3.3-rc";
|
|
28609
|
+
Runtime["Ruby34rc"] = "ruby-3.4-rc";
|
|
28610
|
+
Runtime["Ruby40rc"] = "ruby-4.0-rc";
|
|
28611
|
+
Runtime["Python38rc"] = "python-3.8-rc";
|
|
28612
|
+
Runtime["Python39rc"] = "python-3.9-rc";
|
|
28613
|
+
Runtime["Python310rc"] = "python-3.10-rc";
|
|
28614
|
+
Runtime["Python311rc"] = "python-3.11-rc";
|
|
28615
|
+
Runtime["Python312rc"] = "python-3.12-rc";
|
|
28616
|
+
Runtime["Python313rc"] = "python-3.13-rc";
|
|
28617
|
+
Runtime["Python314rc"] = "python-3.14-rc";
|
|
28618
|
+
Runtime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
28619
|
+
Runtime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
28620
|
+
Runtime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
28621
|
+
Runtime["Deno140rc"] = "deno-1.40-rc";
|
|
28622
|
+
Runtime["Deno146rc"] = "deno-1.46-rc";
|
|
28623
|
+
Runtime["Deno20rc"] = "deno-2.0-rc";
|
|
28624
|
+
Runtime["Deno25rc"] = "deno-2.5-rc";
|
|
28625
|
+
Runtime["Deno26rc"] = "deno-2.6-rc";
|
|
28626
|
+
Runtime["Dart215rc"] = "dart-2.15-rc";
|
|
28627
|
+
Runtime["Dart216rc"] = "dart-2.16-rc";
|
|
28628
|
+
Runtime["Dart217rc"] = "dart-2.17-rc";
|
|
28629
|
+
Runtime["Dart218rc"] = "dart-2.18-rc";
|
|
28630
|
+
Runtime["Dart219rc"] = "dart-2.19-rc";
|
|
28631
|
+
Runtime["Dart30rc"] = "dart-3.0-rc";
|
|
28632
|
+
Runtime["Dart31rc"] = "dart-3.1-rc";
|
|
28633
|
+
Runtime["Dart33rc"] = "dart-3.3-rc";
|
|
28634
|
+
Runtime["Dart35rc"] = "dart-3.5-rc";
|
|
28635
|
+
Runtime["Dart38rc"] = "dart-3.8-rc";
|
|
28636
|
+
Runtime["Dart39rc"] = "dart-3.9-rc";
|
|
28637
|
+
Runtime["Dart310rc"] = "dart-3.10-rc";
|
|
28638
|
+
Runtime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
28639
|
+
Runtime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
28640
|
+
Runtime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
28641
|
+
Runtime["Dotnet10rc"] = "dotnet-10-rc";
|
|
28642
|
+
Runtime["Java80rc"] = "java-8.0-rc";
|
|
28643
|
+
Runtime["Java110rc"] = "java-11.0-rc";
|
|
28644
|
+
Runtime["Java170rc"] = "java-17.0-rc";
|
|
28645
|
+
Runtime["Java180rc"] = "java-18.0-rc";
|
|
28646
|
+
Runtime["Java210rc"] = "java-21.0-rc";
|
|
28647
|
+
Runtime["Java22rc"] = "java-22-rc";
|
|
28648
|
+
Runtime["Java25rc"] = "java-25-rc";
|
|
28649
|
+
Runtime["Swift55rc"] = "swift-5.5-rc";
|
|
28650
|
+
Runtime["Swift58rc"] = "swift-5.8-rc";
|
|
28651
|
+
Runtime["Swift59rc"] = "swift-5.9-rc";
|
|
28652
|
+
Runtime["Swift510rc"] = "swift-5.10-rc";
|
|
28653
|
+
Runtime["Swift62rc"] = "swift-6.2-rc";
|
|
28654
|
+
Runtime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
28655
|
+
Runtime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
28656
|
+
Runtime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
28657
|
+
Runtime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
28658
|
+
Runtime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
28659
|
+
Runtime["Cpp17rc"] = "cpp-17-rc";
|
|
28660
|
+
Runtime["Cpp20rc"] = "cpp-20-rc";
|
|
28661
|
+
Runtime["Bun10rc"] = "bun-1.0-rc";
|
|
28662
|
+
Runtime["Bun11rc"] = "bun-1.1-rc";
|
|
28663
|
+
Runtime["Bun12rc"] = "bun-1.2-rc";
|
|
28664
|
+
Runtime["Bun13rc"] = "bun-1.3-rc";
|
|
28665
|
+
Runtime["Go123rc"] = "go-1.23-rc";
|
|
28666
|
+
Runtime["Go124rc"] = "go-1.24-rc";
|
|
28667
|
+
Runtime["Go125rc"] = "go-1.25-rc";
|
|
28668
|
+
Runtime["Go126rc"] = "go-1.26-rc";
|
|
28669
|
+
Runtime["Static1rc"] = "static-1-rc";
|
|
28670
|
+
Runtime["Flutter324rc"] = "flutter-3.24-rc";
|
|
28671
|
+
Runtime["Flutter327rc"] = "flutter-3.27-rc";
|
|
28672
|
+
Runtime["Flutter329rc"] = "flutter-3.29-rc";
|
|
28673
|
+
Runtime["Flutter332rc"] = "flutter-3.32-rc";
|
|
28674
|
+
Runtime["Flutter335rc"] = "flutter-3.35-rc";
|
|
28675
|
+
Runtime["Flutter338rc"] = "flutter-3.38-rc";
|
|
28492
28676
|
})(Runtime || (Runtime = {}));
|
|
28493
28677
|
|
|
28494
28678
|
var Runtimes;
|
|
@@ -28579,6 +28763,92 @@ var Runtimes;
|
|
|
28579
28763
|
Runtimes["Flutter332"] = "flutter-3.32";
|
|
28580
28764
|
Runtimes["Flutter335"] = "flutter-3.35";
|
|
28581
28765
|
Runtimes["Flutter338"] = "flutter-3.38";
|
|
28766
|
+
Runtimes["Node145rc"] = "node-14.5-rc";
|
|
28767
|
+
Runtimes["Node160rc"] = "node-16.0-rc";
|
|
28768
|
+
Runtimes["Node180rc"] = "node-18.0-rc";
|
|
28769
|
+
Runtimes["Node190rc"] = "node-19.0-rc";
|
|
28770
|
+
Runtimes["Node200rc"] = "node-20.0-rc";
|
|
28771
|
+
Runtimes["Node210rc"] = "node-21.0-rc";
|
|
28772
|
+
Runtimes["Node22rc"] = "node-22-rc";
|
|
28773
|
+
Runtimes["Node23rc"] = "node-23-rc";
|
|
28774
|
+
Runtimes["Node24rc"] = "node-24-rc";
|
|
28775
|
+
Runtimes["Node25rc"] = "node-25-rc";
|
|
28776
|
+
Runtimes["Php80rc"] = "php-8.0-rc";
|
|
28777
|
+
Runtimes["Php81rc"] = "php-8.1-rc";
|
|
28778
|
+
Runtimes["Php82rc"] = "php-8.2-rc";
|
|
28779
|
+
Runtimes["Php83rc"] = "php-8.3-rc";
|
|
28780
|
+
Runtimes["Php84rc"] = "php-8.4-rc";
|
|
28781
|
+
Runtimes["Ruby30rc"] = "ruby-3.0-rc";
|
|
28782
|
+
Runtimes["Ruby31rc"] = "ruby-3.1-rc";
|
|
28783
|
+
Runtimes["Ruby32rc"] = "ruby-3.2-rc";
|
|
28784
|
+
Runtimes["Ruby33rc"] = "ruby-3.3-rc";
|
|
28785
|
+
Runtimes["Ruby34rc"] = "ruby-3.4-rc";
|
|
28786
|
+
Runtimes["Ruby40rc"] = "ruby-4.0-rc";
|
|
28787
|
+
Runtimes["Python38rc"] = "python-3.8-rc";
|
|
28788
|
+
Runtimes["Python39rc"] = "python-3.9-rc";
|
|
28789
|
+
Runtimes["Python310rc"] = "python-3.10-rc";
|
|
28790
|
+
Runtimes["Python311rc"] = "python-3.11-rc";
|
|
28791
|
+
Runtimes["Python312rc"] = "python-3.12-rc";
|
|
28792
|
+
Runtimes["Python313rc"] = "python-3.13-rc";
|
|
28793
|
+
Runtimes["Python314rc"] = "python-3.14-rc";
|
|
28794
|
+
Runtimes["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
28795
|
+
Runtimes["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
28796
|
+
Runtimes["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
28797
|
+
Runtimes["Deno140rc"] = "deno-1.40-rc";
|
|
28798
|
+
Runtimes["Deno146rc"] = "deno-1.46-rc";
|
|
28799
|
+
Runtimes["Deno20rc"] = "deno-2.0-rc";
|
|
28800
|
+
Runtimes["Deno25rc"] = "deno-2.5-rc";
|
|
28801
|
+
Runtimes["Deno26rc"] = "deno-2.6-rc";
|
|
28802
|
+
Runtimes["Dart215rc"] = "dart-2.15-rc";
|
|
28803
|
+
Runtimes["Dart216rc"] = "dart-2.16-rc";
|
|
28804
|
+
Runtimes["Dart217rc"] = "dart-2.17-rc";
|
|
28805
|
+
Runtimes["Dart218rc"] = "dart-2.18-rc";
|
|
28806
|
+
Runtimes["Dart219rc"] = "dart-2.19-rc";
|
|
28807
|
+
Runtimes["Dart30rc"] = "dart-3.0-rc";
|
|
28808
|
+
Runtimes["Dart31rc"] = "dart-3.1-rc";
|
|
28809
|
+
Runtimes["Dart33rc"] = "dart-3.3-rc";
|
|
28810
|
+
Runtimes["Dart35rc"] = "dart-3.5-rc";
|
|
28811
|
+
Runtimes["Dart38rc"] = "dart-3.8-rc";
|
|
28812
|
+
Runtimes["Dart39rc"] = "dart-3.9-rc";
|
|
28813
|
+
Runtimes["Dart310rc"] = "dart-3.10-rc";
|
|
28814
|
+
Runtimes["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
28815
|
+
Runtimes["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
28816
|
+
Runtimes["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
28817
|
+
Runtimes["Dotnet10rc"] = "dotnet-10-rc";
|
|
28818
|
+
Runtimes["Java80rc"] = "java-8.0-rc";
|
|
28819
|
+
Runtimes["Java110rc"] = "java-11.0-rc";
|
|
28820
|
+
Runtimes["Java170rc"] = "java-17.0-rc";
|
|
28821
|
+
Runtimes["Java180rc"] = "java-18.0-rc";
|
|
28822
|
+
Runtimes["Java210rc"] = "java-21.0-rc";
|
|
28823
|
+
Runtimes["Java22rc"] = "java-22-rc";
|
|
28824
|
+
Runtimes["Java25rc"] = "java-25-rc";
|
|
28825
|
+
Runtimes["Swift55rc"] = "swift-5.5-rc";
|
|
28826
|
+
Runtimes["Swift58rc"] = "swift-5.8-rc";
|
|
28827
|
+
Runtimes["Swift59rc"] = "swift-5.9-rc";
|
|
28828
|
+
Runtimes["Swift510rc"] = "swift-5.10-rc";
|
|
28829
|
+
Runtimes["Swift62rc"] = "swift-6.2-rc";
|
|
28830
|
+
Runtimes["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
28831
|
+
Runtimes["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
28832
|
+
Runtimes["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
28833
|
+
Runtimes["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
28834
|
+
Runtimes["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
28835
|
+
Runtimes["Cpp17rc"] = "cpp-17-rc";
|
|
28836
|
+
Runtimes["Cpp20rc"] = "cpp-20-rc";
|
|
28837
|
+
Runtimes["Bun10rc"] = "bun-1.0-rc";
|
|
28838
|
+
Runtimes["Bun11rc"] = "bun-1.1-rc";
|
|
28839
|
+
Runtimes["Bun12rc"] = "bun-1.2-rc";
|
|
28840
|
+
Runtimes["Bun13rc"] = "bun-1.3-rc";
|
|
28841
|
+
Runtimes["Go123rc"] = "go-1.23-rc";
|
|
28842
|
+
Runtimes["Go124rc"] = "go-1.24-rc";
|
|
28843
|
+
Runtimes["Go125rc"] = "go-1.25-rc";
|
|
28844
|
+
Runtimes["Go126rc"] = "go-1.26-rc";
|
|
28845
|
+
Runtimes["Static1rc"] = "static-1-rc";
|
|
28846
|
+
Runtimes["Flutter324rc"] = "flutter-3.24-rc";
|
|
28847
|
+
Runtimes["Flutter327rc"] = "flutter-3.27-rc";
|
|
28848
|
+
Runtimes["Flutter329rc"] = "flutter-3.29-rc";
|
|
28849
|
+
Runtimes["Flutter332rc"] = "flutter-3.32-rc";
|
|
28850
|
+
Runtimes["Flutter335rc"] = "flutter-3.35-rc";
|
|
28851
|
+
Runtimes["Flutter338rc"] = "flutter-3.38-rc";
|
|
28582
28852
|
})(Runtimes || (Runtimes = {}));
|
|
28583
28853
|
|
|
28584
28854
|
var UseCases;
|
|
@@ -28673,6 +28943,10 @@ var AppwriteMigrationResource;
|
|
|
28673
28943
|
AppwriteMigrationResource["Function"] = "function";
|
|
28674
28944
|
AppwriteMigrationResource["Deployment"] = "deployment";
|
|
28675
28945
|
AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
|
|
28946
|
+
AppwriteMigrationResource["Provider"] = "provider";
|
|
28947
|
+
AppwriteMigrationResource["Topic"] = "topic";
|
|
28948
|
+
AppwriteMigrationResource["Subscriber"] = "subscriber";
|
|
28949
|
+
AppwriteMigrationResource["Message"] = "message";
|
|
28676
28950
|
AppwriteMigrationResource["Site"] = "site";
|
|
28677
28951
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
28678
28952
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
@@ -29221,6 +29495,92 @@ var BuildRuntime;
|
|
|
29221
29495
|
BuildRuntime["Flutter332"] = "flutter-3.32";
|
|
29222
29496
|
BuildRuntime["Flutter335"] = "flutter-3.35";
|
|
29223
29497
|
BuildRuntime["Flutter338"] = "flutter-3.38";
|
|
29498
|
+
BuildRuntime["Node145rc"] = "node-14.5-rc";
|
|
29499
|
+
BuildRuntime["Node160rc"] = "node-16.0-rc";
|
|
29500
|
+
BuildRuntime["Node180rc"] = "node-18.0-rc";
|
|
29501
|
+
BuildRuntime["Node190rc"] = "node-19.0-rc";
|
|
29502
|
+
BuildRuntime["Node200rc"] = "node-20.0-rc";
|
|
29503
|
+
BuildRuntime["Node210rc"] = "node-21.0-rc";
|
|
29504
|
+
BuildRuntime["Node22rc"] = "node-22-rc";
|
|
29505
|
+
BuildRuntime["Node23rc"] = "node-23-rc";
|
|
29506
|
+
BuildRuntime["Node24rc"] = "node-24-rc";
|
|
29507
|
+
BuildRuntime["Node25rc"] = "node-25-rc";
|
|
29508
|
+
BuildRuntime["Php80rc"] = "php-8.0-rc";
|
|
29509
|
+
BuildRuntime["Php81rc"] = "php-8.1-rc";
|
|
29510
|
+
BuildRuntime["Php82rc"] = "php-8.2-rc";
|
|
29511
|
+
BuildRuntime["Php83rc"] = "php-8.3-rc";
|
|
29512
|
+
BuildRuntime["Php84rc"] = "php-8.4-rc";
|
|
29513
|
+
BuildRuntime["Ruby30rc"] = "ruby-3.0-rc";
|
|
29514
|
+
BuildRuntime["Ruby31rc"] = "ruby-3.1-rc";
|
|
29515
|
+
BuildRuntime["Ruby32rc"] = "ruby-3.2-rc";
|
|
29516
|
+
BuildRuntime["Ruby33rc"] = "ruby-3.3-rc";
|
|
29517
|
+
BuildRuntime["Ruby34rc"] = "ruby-3.4-rc";
|
|
29518
|
+
BuildRuntime["Ruby40rc"] = "ruby-4.0-rc";
|
|
29519
|
+
BuildRuntime["Python38rc"] = "python-3.8-rc";
|
|
29520
|
+
BuildRuntime["Python39rc"] = "python-3.9-rc";
|
|
29521
|
+
BuildRuntime["Python310rc"] = "python-3.10-rc";
|
|
29522
|
+
BuildRuntime["Python311rc"] = "python-3.11-rc";
|
|
29523
|
+
BuildRuntime["Python312rc"] = "python-3.12-rc";
|
|
29524
|
+
BuildRuntime["Python313rc"] = "python-3.13-rc";
|
|
29525
|
+
BuildRuntime["Python314rc"] = "python-3.14-rc";
|
|
29526
|
+
BuildRuntime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
29527
|
+
BuildRuntime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
29528
|
+
BuildRuntime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
29529
|
+
BuildRuntime["Deno140rc"] = "deno-1.40-rc";
|
|
29530
|
+
BuildRuntime["Deno146rc"] = "deno-1.46-rc";
|
|
29531
|
+
BuildRuntime["Deno20rc"] = "deno-2.0-rc";
|
|
29532
|
+
BuildRuntime["Deno25rc"] = "deno-2.5-rc";
|
|
29533
|
+
BuildRuntime["Deno26rc"] = "deno-2.6-rc";
|
|
29534
|
+
BuildRuntime["Dart215rc"] = "dart-2.15-rc";
|
|
29535
|
+
BuildRuntime["Dart216rc"] = "dart-2.16-rc";
|
|
29536
|
+
BuildRuntime["Dart217rc"] = "dart-2.17-rc";
|
|
29537
|
+
BuildRuntime["Dart218rc"] = "dart-2.18-rc";
|
|
29538
|
+
BuildRuntime["Dart219rc"] = "dart-2.19-rc";
|
|
29539
|
+
BuildRuntime["Dart30rc"] = "dart-3.0-rc";
|
|
29540
|
+
BuildRuntime["Dart31rc"] = "dart-3.1-rc";
|
|
29541
|
+
BuildRuntime["Dart33rc"] = "dart-3.3-rc";
|
|
29542
|
+
BuildRuntime["Dart35rc"] = "dart-3.5-rc";
|
|
29543
|
+
BuildRuntime["Dart38rc"] = "dart-3.8-rc";
|
|
29544
|
+
BuildRuntime["Dart39rc"] = "dart-3.9-rc";
|
|
29545
|
+
BuildRuntime["Dart310rc"] = "dart-3.10-rc";
|
|
29546
|
+
BuildRuntime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
29547
|
+
BuildRuntime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
29548
|
+
BuildRuntime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
29549
|
+
BuildRuntime["Dotnet10rc"] = "dotnet-10-rc";
|
|
29550
|
+
BuildRuntime["Java80rc"] = "java-8.0-rc";
|
|
29551
|
+
BuildRuntime["Java110rc"] = "java-11.0-rc";
|
|
29552
|
+
BuildRuntime["Java170rc"] = "java-17.0-rc";
|
|
29553
|
+
BuildRuntime["Java180rc"] = "java-18.0-rc";
|
|
29554
|
+
BuildRuntime["Java210rc"] = "java-21.0-rc";
|
|
29555
|
+
BuildRuntime["Java22rc"] = "java-22-rc";
|
|
29556
|
+
BuildRuntime["Java25rc"] = "java-25-rc";
|
|
29557
|
+
BuildRuntime["Swift55rc"] = "swift-5.5-rc";
|
|
29558
|
+
BuildRuntime["Swift58rc"] = "swift-5.8-rc";
|
|
29559
|
+
BuildRuntime["Swift59rc"] = "swift-5.9-rc";
|
|
29560
|
+
BuildRuntime["Swift510rc"] = "swift-5.10-rc";
|
|
29561
|
+
BuildRuntime["Swift62rc"] = "swift-6.2-rc";
|
|
29562
|
+
BuildRuntime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
29563
|
+
BuildRuntime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
29564
|
+
BuildRuntime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
29565
|
+
BuildRuntime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
29566
|
+
BuildRuntime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
29567
|
+
BuildRuntime["Cpp17rc"] = "cpp-17-rc";
|
|
29568
|
+
BuildRuntime["Cpp20rc"] = "cpp-20-rc";
|
|
29569
|
+
BuildRuntime["Bun10rc"] = "bun-1.0-rc";
|
|
29570
|
+
BuildRuntime["Bun11rc"] = "bun-1.1-rc";
|
|
29571
|
+
BuildRuntime["Bun12rc"] = "bun-1.2-rc";
|
|
29572
|
+
BuildRuntime["Bun13rc"] = "bun-1.3-rc";
|
|
29573
|
+
BuildRuntime["Go123rc"] = "go-1.23-rc";
|
|
29574
|
+
BuildRuntime["Go124rc"] = "go-1.24-rc";
|
|
29575
|
+
BuildRuntime["Go125rc"] = "go-1.25-rc";
|
|
29576
|
+
BuildRuntime["Go126rc"] = "go-1.26-rc";
|
|
29577
|
+
BuildRuntime["Static1rc"] = "static-1-rc";
|
|
29578
|
+
BuildRuntime["Flutter324rc"] = "flutter-3.24-rc";
|
|
29579
|
+
BuildRuntime["Flutter327rc"] = "flutter-3.27-rc";
|
|
29580
|
+
BuildRuntime["Flutter329rc"] = "flutter-3.29-rc";
|
|
29581
|
+
BuildRuntime["Flutter332rc"] = "flutter-3.32-rc";
|
|
29582
|
+
BuildRuntime["Flutter335rc"] = "flutter-3.35-rc";
|
|
29583
|
+
BuildRuntime["Flutter338rc"] = "flutter-3.38-rc";
|
|
29224
29584
|
})(BuildRuntime || (BuildRuntime = {}));
|
|
29225
29585
|
|
|
29226
29586
|
var Adapter;
|
|
@@ -29398,17 +29758,25 @@ var BillingPlanGroup;
|
|
|
29398
29758
|
BillingPlanGroup["Scale"] = "scale";
|
|
29399
29759
|
})(BillingPlanGroup || (BillingPlanGroup = {}));
|
|
29400
29760
|
|
|
29401
|
-
var
|
|
29402
|
-
(function (
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
})(
|
|
29761
|
+
var DomainTransferStatusEnum;
|
|
29762
|
+
(function (DomainTransferStatusEnum) {
|
|
29763
|
+
DomainTransferStatusEnum["Transferrable"] = "transferrable";
|
|
29764
|
+
DomainTransferStatusEnum["NotTransferrable"] = "not_transferrable";
|
|
29765
|
+
DomainTransferStatusEnum["PendingOwner"] = "pending_owner";
|
|
29766
|
+
DomainTransferStatusEnum["PendingAdmin"] = "pending_admin";
|
|
29767
|
+
DomainTransferStatusEnum["PendingRegistry"] = "pending_registry";
|
|
29768
|
+
DomainTransferStatusEnum["Completed"] = "completed";
|
|
29769
|
+
DomainTransferStatusEnum["Cancelled"] = "cancelled";
|
|
29770
|
+
DomainTransferStatusEnum["ServiceUnavailable"] = "service_unavailable";
|
|
29771
|
+
})(DomainTransferStatusEnum || (DomainTransferStatusEnum = {}));
|
|
29772
|
+
|
|
29773
|
+
var DomainPurchaseStatus;
|
|
29774
|
+
(function (DomainPurchaseStatus) {
|
|
29775
|
+
DomainPurchaseStatus["Pending"] = "pending";
|
|
29776
|
+
DomainPurchaseStatus["Succeeded"] = "succeeded";
|
|
29777
|
+
DomainPurchaseStatus["Failed"] = "failed";
|
|
29778
|
+
DomainPurchaseStatus["Cancelled"] = "cancelled";
|
|
29779
|
+
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
29412
29780
|
|
|
29413
|
-
export { Account, Activities, Adapter, Api, ApiService, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus,
|
|
29781
|
+
export { Account, Activities, Adapter, Api, ApiService, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, NHostMigrationResource, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, Webhooks };
|
|
29414
29782
|
//# sourceMappingURL=sdk.js.map
|