@appwrite.io/console 3.1.0 → 5.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 +18 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +516 -119
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +517 -120
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +516 -119
- package/docs/examples/databases/list-documents.md +2 -1
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/domains/create-purchase.md +1 -1
- package/docs/examples/domains/create-transfer-in.md +18 -0
- package/docs/examples/domains/create-transfer-out.md +16 -0
- package/docs/examples/domains/get-transfer-status.md +15 -0
- package/docs/examples/functions/create.md +3 -1
- package/docs/examples/functions/update.md +3 -1
- package/docs/examples/health/get-console-pausing.md +16 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +2 -2
- package/docs/examples/migrations/create-n-host-migration.md +2 -2
- package/docs/examples/migrations/create-supabase-migration.md +2 -2
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report.md +2 -2
- package/docs/examples/migrations/get-n-host-report.md +2 -2
- package/docs/examples/migrations/get-supabase-report.md +2 -2
- package/docs/examples/projects/update-console-access.md +15 -0
- package/docs/examples/projects/update-status.md +16 -0
- package/docs/examples/sites/create-deployment.md +2 -2
- package/docs/examples/sites/create.md +4 -1
- package/docs/examples/sites/update.md +4 -1
- package/docs/examples/tablesdb/list-rows.md +2 -1
- package/package.json +1 -1
- package/src/channel.ts +19 -15
- package/src/client.ts +5 -1
- package/src/enums/appwrite-migration-resource.ts +25 -0
- package/src/enums/build-runtime.ts +3 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/domain-transfer-status-status.ts +10 -0
- package/src/enums/firebase-migration-resource.ts +12 -0
- package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
- package/src/enums/runtime.ts +3 -0
- package/src/enums/runtimes.ts +3 -0
- package/src/enums/status.ts +3 -0
- package/src/enums/supabase-migration-resource.ts +13 -0
- package/src/index.ts +7 -1
- package/src/models.ts +209 -7
- package/src/services/account.ts +4 -4
- package/src/services/databases.ts +100 -93
- package/src/services/domains.ts +342 -13
- package/src/services/functions.ts +52 -24
- package/src/services/health.ts +61 -0
- package/src/services/messaging.ts +2 -2
- package/src/services/migrations.ts +68 -65
- package/src/services/organizations.ts +2 -2
- package/src/services/projects.ts +120 -0
- package/src/services/sites.ts +96 -57
- package/src/services/tables-db.ts +14 -7
- package/src/services/teams.ts +4 -4
- package/types/channel.d.ts +9 -9
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/build-runtime.d.ts +3 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/domain-transfer-status-status.d.ts +10 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
- package/types/enums/runtime.d.ts +3 -0
- package/types/enums/runtimes.d.ts +3 -0
- package/types/enums/status.d.ts +3 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/index.d.ts +7 -1
- package/types/models.d.ts +207 -7
- package/types/services/account.d.ts +2 -2
- package/types/services/databases.d.ts +40 -37
- package/types/services/domains.d.ts +117 -4
- package/types/services/functions.d.ts +20 -8
- package/types/services/health.d.ts +24 -0
- package/types/services/messaging.d.ts +2 -2
- package/types/services/migrations.d.ts +36 -33
- package/types/services/organizations.d.ts +2 -2
- package/types/services/projects.d.ts +46 -0
- package/types/services/sites.d.ts +30 -12
- package/types/services/tables-db.d.ts +4 -1
- package/types/services/teams.d.ts +4 -4
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': '5.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
|
}
|
|
@@ -6267,6 +6270,48 @@ class Databases {
|
|
|
6267
6270
|
};
|
|
6268
6271
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
6269
6272
|
}
|
|
6273
|
+
updateRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
6274
|
+
let params;
|
|
6275
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6276
|
+
params = (paramsOrFirst || {});
|
|
6277
|
+
}
|
|
6278
|
+
else {
|
|
6279
|
+
params = {
|
|
6280
|
+
databaseId: paramsOrFirst,
|
|
6281
|
+
collectionId: rest[0],
|
|
6282
|
+
key: rest[1],
|
|
6283
|
+
onDelete: rest[2],
|
|
6284
|
+
newKey: rest[3]
|
|
6285
|
+
};
|
|
6286
|
+
}
|
|
6287
|
+
const databaseId = params.databaseId;
|
|
6288
|
+
const collectionId = params.collectionId;
|
|
6289
|
+
const key = params.key;
|
|
6290
|
+
const onDelete = params.onDelete;
|
|
6291
|
+
const newKey = params.newKey;
|
|
6292
|
+
if (typeof databaseId === 'undefined') {
|
|
6293
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6294
|
+
}
|
|
6295
|
+
if (typeof collectionId === 'undefined') {
|
|
6296
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6297
|
+
}
|
|
6298
|
+
if (typeof key === 'undefined') {
|
|
6299
|
+
throw new AppwriteException('Missing required parameter: "key"');
|
|
6300
|
+
}
|
|
6301
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6302
|
+
const payload = {};
|
|
6303
|
+
if (typeof onDelete !== 'undefined') {
|
|
6304
|
+
payload['onDelete'] = onDelete;
|
|
6305
|
+
}
|
|
6306
|
+
if (typeof newKey !== 'undefined') {
|
|
6307
|
+
payload['newKey'] = newKey;
|
|
6308
|
+
}
|
|
6309
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6310
|
+
const apiHeaders = {
|
|
6311
|
+
'content-type': 'application/json',
|
|
6312
|
+
};
|
|
6313
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
6314
|
+
}
|
|
6270
6315
|
createStringAttribute(paramsOrFirst, ...rest) {
|
|
6271
6316
|
let params;
|
|
6272
6317
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -6794,48 +6839,6 @@ class Databases {
|
|
|
6794
6839
|
};
|
|
6795
6840
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
6796
6841
|
}
|
|
6797
|
-
updateRelationshipAttribute(paramsOrFirst, ...rest) {
|
|
6798
|
-
let params;
|
|
6799
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
6800
|
-
params = (paramsOrFirst || {});
|
|
6801
|
-
}
|
|
6802
|
-
else {
|
|
6803
|
-
params = {
|
|
6804
|
-
databaseId: paramsOrFirst,
|
|
6805
|
-
collectionId: rest[0],
|
|
6806
|
-
key: rest[1],
|
|
6807
|
-
onDelete: rest[2],
|
|
6808
|
-
newKey: rest[3]
|
|
6809
|
-
};
|
|
6810
|
-
}
|
|
6811
|
-
const databaseId = params.databaseId;
|
|
6812
|
-
const collectionId = params.collectionId;
|
|
6813
|
-
const key = params.key;
|
|
6814
|
-
const onDelete = params.onDelete;
|
|
6815
|
-
const newKey = params.newKey;
|
|
6816
|
-
if (typeof databaseId === 'undefined') {
|
|
6817
|
-
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6818
|
-
}
|
|
6819
|
-
if (typeof collectionId === 'undefined') {
|
|
6820
|
-
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
6821
|
-
}
|
|
6822
|
-
if (typeof key === 'undefined') {
|
|
6823
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
6824
|
-
}
|
|
6825
|
-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
|
|
6826
|
-
const payload = {};
|
|
6827
|
-
if (typeof onDelete !== 'undefined') {
|
|
6828
|
-
payload['onDelete'] = onDelete;
|
|
6829
|
-
}
|
|
6830
|
-
if (typeof newKey !== 'undefined') {
|
|
6831
|
-
payload['newKey'] = newKey;
|
|
6832
|
-
}
|
|
6833
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6834
|
-
const apiHeaders = {
|
|
6835
|
-
'content-type': 'application/json',
|
|
6836
|
-
};
|
|
6837
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
6838
|
-
}
|
|
6839
6842
|
listDocuments(paramsOrFirst, ...rest) {
|
|
6840
6843
|
let params;
|
|
6841
6844
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -6847,7 +6850,8 @@ class Databases {
|
|
|
6847
6850
|
collectionId: rest[0],
|
|
6848
6851
|
queries: rest[1],
|
|
6849
6852
|
transactionId: rest[2],
|
|
6850
|
-
total: rest[3]
|
|
6853
|
+
total: rest[3],
|
|
6854
|
+
ttl: rest[4]
|
|
6851
6855
|
};
|
|
6852
6856
|
}
|
|
6853
6857
|
const databaseId = params.databaseId;
|
|
@@ -6855,6 +6859,7 @@ class Databases {
|
|
|
6855
6859
|
const queries = params.queries;
|
|
6856
6860
|
const transactionId = params.transactionId;
|
|
6857
6861
|
const total = params.total;
|
|
6862
|
+
const ttl = params.ttl;
|
|
6858
6863
|
if (typeof databaseId === 'undefined') {
|
|
6859
6864
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
6860
6865
|
}
|
|
@@ -6872,6 +6877,9 @@ class Databases {
|
|
|
6872
6877
|
if (typeof total !== 'undefined') {
|
|
6873
6878
|
payload['total'] = total;
|
|
6874
6879
|
}
|
|
6880
|
+
if (typeof ttl !== 'undefined') {
|
|
6881
|
+
payload['ttl'] = ttl;
|
|
6882
|
+
}
|
|
6875
6883
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6876
6884
|
const apiHeaders = {};
|
|
6877
6885
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -7771,7 +7779,7 @@ class Domains {
|
|
|
7771
7779
|
else {
|
|
7772
7780
|
params = {
|
|
7773
7781
|
domain: paramsOrFirst,
|
|
7774
|
-
|
|
7782
|
+
organizationId: rest[0],
|
|
7775
7783
|
firstName: rest[1],
|
|
7776
7784
|
lastName: rest[2],
|
|
7777
7785
|
email: rest[3],
|
|
@@ -7784,7 +7792,7 @@ class Domains {
|
|
|
7784
7792
|
};
|
|
7785
7793
|
}
|
|
7786
7794
|
const domain = params.domain;
|
|
7787
|
-
const
|
|
7795
|
+
const organizationId = params.organizationId;
|
|
7788
7796
|
const firstName = params.firstName;
|
|
7789
7797
|
const lastName = params.lastName;
|
|
7790
7798
|
const email = params.email;
|
|
@@ -7797,8 +7805,8 @@ class Domains {
|
|
|
7797
7805
|
if (typeof domain === 'undefined') {
|
|
7798
7806
|
throw new AppwriteException('Missing required parameter: "domain"');
|
|
7799
7807
|
}
|
|
7800
|
-
if (typeof
|
|
7801
|
-
throw new AppwriteException('Missing required parameter: "
|
|
7808
|
+
if (typeof organizationId === 'undefined') {
|
|
7809
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
7802
7810
|
}
|
|
7803
7811
|
if (typeof firstName === 'undefined') {
|
|
7804
7812
|
throw new AppwriteException('Missing required parameter: "firstName"');
|
|
@@ -7823,8 +7831,8 @@ class Domains {
|
|
|
7823
7831
|
if (typeof domain !== 'undefined') {
|
|
7824
7832
|
payload['domain'] = domain;
|
|
7825
7833
|
}
|
|
7826
|
-
if (typeof
|
|
7827
|
-
payload['
|
|
7834
|
+
if (typeof organizationId !== 'undefined') {
|
|
7835
|
+
payload['organizationId'] = organizationId;
|
|
7828
7836
|
}
|
|
7829
7837
|
if (typeof firstName !== 'undefined') {
|
|
7830
7838
|
payload['firstName'] = firstName;
|
|
@@ -7859,6 +7867,36 @@ class Domains {
|
|
|
7859
7867
|
};
|
|
7860
7868
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
7861
7869
|
}
|
|
7870
|
+
confirmPurchase(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}/confirm'.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('post', uri, apiHeaders, payload);
|
|
7899
|
+
}
|
|
7862
7900
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
7863
7901
|
let params;
|
|
7864
7902
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -7907,6 +7945,118 @@ class Domains {
|
|
|
7907
7945
|
const apiHeaders = {};
|
|
7908
7946
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
7909
7947
|
}
|
|
7948
|
+
createTransferIn(paramsOrFirst, ...rest) {
|
|
7949
|
+
let params;
|
|
7950
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7951
|
+
params = (paramsOrFirst || {});
|
|
7952
|
+
}
|
|
7953
|
+
else {
|
|
7954
|
+
params = {
|
|
7955
|
+
domain: paramsOrFirst,
|
|
7956
|
+
organizationId: rest[0],
|
|
7957
|
+
authCode: rest[1],
|
|
7958
|
+
paymentMethodId: rest[2]
|
|
7959
|
+
};
|
|
7960
|
+
}
|
|
7961
|
+
const domain = params.domain;
|
|
7962
|
+
const organizationId = params.organizationId;
|
|
7963
|
+
const authCode = params.authCode;
|
|
7964
|
+
const paymentMethodId = params.paymentMethodId;
|
|
7965
|
+
if (typeof domain === 'undefined') {
|
|
7966
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
7967
|
+
}
|
|
7968
|
+
if (typeof organizationId === 'undefined') {
|
|
7969
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
7970
|
+
}
|
|
7971
|
+
if (typeof authCode === 'undefined') {
|
|
7972
|
+
throw new AppwriteException('Missing required parameter: "authCode"');
|
|
7973
|
+
}
|
|
7974
|
+
if (typeof paymentMethodId === 'undefined') {
|
|
7975
|
+
throw new AppwriteException('Missing required parameter: "paymentMethodId"');
|
|
7976
|
+
}
|
|
7977
|
+
const apiPath = '/domains/transfers/in';
|
|
7978
|
+
const payload = {};
|
|
7979
|
+
if (typeof domain !== 'undefined') {
|
|
7980
|
+
payload['domain'] = domain;
|
|
7981
|
+
}
|
|
7982
|
+
if (typeof organizationId !== 'undefined') {
|
|
7983
|
+
payload['organizationId'] = organizationId;
|
|
7984
|
+
}
|
|
7985
|
+
if (typeof authCode !== 'undefined') {
|
|
7986
|
+
payload['authCode'] = authCode;
|
|
7987
|
+
}
|
|
7988
|
+
if (typeof paymentMethodId !== 'undefined') {
|
|
7989
|
+
payload['paymentMethodId'] = paymentMethodId;
|
|
7990
|
+
}
|
|
7991
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7992
|
+
const apiHeaders = {
|
|
7993
|
+
'content-type': 'application/json',
|
|
7994
|
+
};
|
|
7995
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7996
|
+
}
|
|
7997
|
+
confirmTransferIn(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}/confirm'.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('post', uri, apiHeaders, payload);
|
|
8026
|
+
}
|
|
8027
|
+
createTransferOut(paramsOrFirst, ...rest) {
|
|
8028
|
+
let params;
|
|
8029
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
8030
|
+
params = (paramsOrFirst || {});
|
|
8031
|
+
}
|
|
8032
|
+
else {
|
|
8033
|
+
params = {
|
|
8034
|
+
domainId: paramsOrFirst,
|
|
8035
|
+
organizationId: rest[0]
|
|
8036
|
+
};
|
|
8037
|
+
}
|
|
8038
|
+
const domainId = params.domainId;
|
|
8039
|
+
const organizationId = params.organizationId;
|
|
8040
|
+
if (typeof domainId === 'undefined') {
|
|
8041
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
8042
|
+
}
|
|
8043
|
+
if (typeof organizationId === 'undefined') {
|
|
8044
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
8045
|
+
}
|
|
8046
|
+
const apiPath = '/domains/transfers/out';
|
|
8047
|
+
const payload = {};
|
|
8048
|
+
if (typeof domainId !== 'undefined') {
|
|
8049
|
+
payload['domainId'] = domainId;
|
|
8050
|
+
}
|
|
8051
|
+
if (typeof organizationId !== 'undefined') {
|
|
8052
|
+
payload['organizationId'] = organizationId;
|
|
8053
|
+
}
|
|
8054
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8055
|
+
const apiHeaders = {
|
|
8056
|
+
'content-type': 'application/json',
|
|
8057
|
+
};
|
|
8058
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
8059
|
+
}
|
|
7910
8060
|
get(paramsOrFirst) {
|
|
7911
8061
|
let params;
|
|
7912
8062
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9461,6 +9611,26 @@ class Domains {
|
|
|
9461
9611
|
};
|
|
9462
9612
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
9463
9613
|
}
|
|
9614
|
+
getTransferStatus(paramsOrFirst) {
|
|
9615
|
+
let params;
|
|
9616
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
9617
|
+
params = (paramsOrFirst || {});
|
|
9618
|
+
}
|
|
9619
|
+
else {
|
|
9620
|
+
params = {
|
|
9621
|
+
domainId: paramsOrFirst
|
|
9622
|
+
};
|
|
9623
|
+
}
|
|
9624
|
+
const domainId = params.domainId;
|
|
9625
|
+
if (typeof domainId === 'undefined') {
|
|
9626
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
9627
|
+
}
|
|
9628
|
+
const apiPath = '/domains/{domainId}/transfers/status'.replace('{domainId}', domainId);
|
|
9629
|
+
const payload = {};
|
|
9630
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9631
|
+
const apiHeaders = {};
|
|
9632
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
9633
|
+
}
|
|
9464
9634
|
getZone(paramsOrFirst) {
|
|
9465
9635
|
let params;
|
|
9466
9636
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9571,7 +9741,9 @@ class Functions {
|
|
|
9571
9741
|
providerBranch: rest[13],
|
|
9572
9742
|
providerSilentMode: rest[14],
|
|
9573
9743
|
providerRootDirectory: rest[15],
|
|
9574
|
-
|
|
9744
|
+
buildSpecification: rest[16],
|
|
9745
|
+
runtimeSpecification: rest[17],
|
|
9746
|
+
deploymentRetention: rest[18]
|
|
9575
9747
|
};
|
|
9576
9748
|
}
|
|
9577
9749
|
const functionId = params.functionId;
|
|
@@ -9591,7 +9763,9 @@ class Functions {
|
|
|
9591
9763
|
const providerBranch = params.providerBranch;
|
|
9592
9764
|
const providerSilentMode = params.providerSilentMode;
|
|
9593
9765
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9594
|
-
const
|
|
9766
|
+
const buildSpecification = params.buildSpecification;
|
|
9767
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
9768
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9595
9769
|
if (typeof functionId === 'undefined') {
|
|
9596
9770
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9597
9771
|
}
|
|
@@ -9654,8 +9828,14 @@ class Functions {
|
|
|
9654
9828
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9655
9829
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9656
9830
|
}
|
|
9657
|
-
if (typeof
|
|
9658
|
-
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;
|
|
9659
9839
|
}
|
|
9660
9840
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9661
9841
|
const apiHeaders = {
|
|
@@ -9813,7 +9993,9 @@ class Functions {
|
|
|
9813
9993
|
providerBranch: rest[13],
|
|
9814
9994
|
providerSilentMode: rest[14],
|
|
9815
9995
|
providerRootDirectory: rest[15],
|
|
9816
|
-
|
|
9996
|
+
buildSpecification: rest[16],
|
|
9997
|
+
runtimeSpecification: rest[17],
|
|
9998
|
+
deploymentRetention: rest[18]
|
|
9817
9999
|
};
|
|
9818
10000
|
}
|
|
9819
10001
|
const functionId = params.functionId;
|
|
@@ -9833,7 +10015,9 @@ class Functions {
|
|
|
9833
10015
|
const providerBranch = params.providerBranch;
|
|
9834
10016
|
const providerSilentMode = params.providerSilentMode;
|
|
9835
10017
|
const providerRootDirectory = params.providerRootDirectory;
|
|
9836
|
-
const
|
|
10018
|
+
const buildSpecification = params.buildSpecification;
|
|
10019
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
10020
|
+
const deploymentRetention = params.deploymentRetention;
|
|
9837
10021
|
if (typeof functionId === 'undefined') {
|
|
9838
10022
|
throw new AppwriteException('Missing required parameter: "functionId"');
|
|
9839
10023
|
}
|
|
@@ -9890,8 +10074,14 @@ class Functions {
|
|
|
9890
10074
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
9891
10075
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
9892
10076
|
}
|
|
9893
|
-
if (typeof
|
|
9894
|
-
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;
|
|
9895
10085
|
}
|
|
9896
10086
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9897
10087
|
const apiHeaders = {
|
|
@@ -10736,6 +10926,31 @@ class Health {
|
|
|
10736
10926
|
const apiHeaders = {};
|
|
10737
10927
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
10738
10928
|
}
|
|
10929
|
+
getConsolePausing(paramsOrFirst, ...rest) {
|
|
10930
|
+
let params;
|
|
10931
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
10932
|
+
params = (paramsOrFirst || {});
|
|
10933
|
+
}
|
|
10934
|
+
else {
|
|
10935
|
+
params = {
|
|
10936
|
+
threshold: paramsOrFirst,
|
|
10937
|
+
inactivityDays: rest[0]
|
|
10938
|
+
};
|
|
10939
|
+
}
|
|
10940
|
+
const threshold = params.threshold;
|
|
10941
|
+
const inactivityDays = params.inactivityDays;
|
|
10942
|
+
const apiPath = '/health/console-pausing';
|
|
10943
|
+
const payload = {};
|
|
10944
|
+
if (typeof threshold !== 'undefined') {
|
|
10945
|
+
payload['threshold'] = threshold;
|
|
10946
|
+
}
|
|
10947
|
+
if (typeof inactivityDays !== 'undefined') {
|
|
10948
|
+
payload['inactivityDays'] = inactivityDays;
|
|
10949
|
+
}
|
|
10950
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10951
|
+
const apiHeaders = {};
|
|
10952
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
10953
|
+
}
|
|
10739
10954
|
/**
|
|
10740
10955
|
* Check the Appwrite database servers are up and connection is successful.
|
|
10741
10956
|
*
|
|
@@ -16983,6 +17198,28 @@ class Projects {
|
|
|
16983
17198
|
};
|
|
16984
17199
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
16985
17200
|
}
|
|
17201
|
+
updateConsoleAccess(paramsOrFirst) {
|
|
17202
|
+
let params;
|
|
17203
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17204
|
+
params = (paramsOrFirst || {});
|
|
17205
|
+
}
|
|
17206
|
+
else {
|
|
17207
|
+
params = {
|
|
17208
|
+
projectId: paramsOrFirst
|
|
17209
|
+
};
|
|
17210
|
+
}
|
|
17211
|
+
const projectId = params.projectId;
|
|
17212
|
+
if (typeof projectId === 'undefined') {
|
|
17213
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
17214
|
+
}
|
|
17215
|
+
const apiPath = '/projects/{projectId}/console-access'.replace('{projectId}', projectId);
|
|
17216
|
+
const payload = {};
|
|
17217
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
17218
|
+
const apiHeaders = {
|
|
17219
|
+
'content-type': 'application/json',
|
|
17220
|
+
};
|
|
17221
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
17222
|
+
}
|
|
16986
17223
|
listDevKeys(paramsOrFirst, ...rest) {
|
|
16987
17224
|
let params;
|
|
16988
17225
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -18086,6 +18323,36 @@ class Projects {
|
|
|
18086
18323
|
};
|
|
18087
18324
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
18088
18325
|
}
|
|
18326
|
+
updateStatus(paramsOrFirst, ...rest) {
|
|
18327
|
+
let params;
|
|
18328
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18329
|
+
params = (paramsOrFirst || {});
|
|
18330
|
+
}
|
|
18331
|
+
else {
|
|
18332
|
+
params = {
|
|
18333
|
+
projectId: paramsOrFirst,
|
|
18334
|
+
status: rest[0]
|
|
18335
|
+
};
|
|
18336
|
+
}
|
|
18337
|
+
const projectId = params.projectId;
|
|
18338
|
+
const status = params.status;
|
|
18339
|
+
if (typeof projectId === 'undefined') {
|
|
18340
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
18341
|
+
}
|
|
18342
|
+
if (typeof status === 'undefined') {
|
|
18343
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
18344
|
+
}
|
|
18345
|
+
const apiPath = '/projects/{projectId}/status'.replace('{projectId}', projectId);
|
|
18346
|
+
const payload = {};
|
|
18347
|
+
if (typeof status !== 'undefined') {
|
|
18348
|
+
payload['status'] = status;
|
|
18349
|
+
}
|
|
18350
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18351
|
+
const apiHeaders = {
|
|
18352
|
+
'content-type': 'application/json',
|
|
18353
|
+
};
|
|
18354
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18355
|
+
}
|
|
18089
18356
|
updateTeam(paramsOrFirst, ...rest) {
|
|
18090
18357
|
let params;
|
|
18091
18358
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19002,15 +19269,18 @@ class Sites {
|
|
|
19002
19269
|
timeout: rest[5],
|
|
19003
19270
|
installCommand: rest[6],
|
|
19004
19271
|
buildCommand: rest[7],
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19272
|
+
startCommand: rest[8],
|
|
19273
|
+
outputDirectory: rest[9],
|
|
19274
|
+
adapter: rest[10],
|
|
19275
|
+
installationId: rest[11],
|
|
19276
|
+
fallbackFile: rest[12],
|
|
19277
|
+
providerRepositoryId: rest[13],
|
|
19278
|
+
providerBranch: rest[14],
|
|
19279
|
+
providerSilentMode: rest[15],
|
|
19280
|
+
providerRootDirectory: rest[16],
|
|
19281
|
+
buildSpecification: rest[17],
|
|
19282
|
+
runtimeSpecification: rest[18],
|
|
19283
|
+
deploymentRetention: rest[19]
|
|
19014
19284
|
};
|
|
19015
19285
|
}
|
|
19016
19286
|
const siteId = params.siteId;
|
|
@@ -19022,6 +19292,7 @@ class Sites {
|
|
|
19022
19292
|
const timeout = params.timeout;
|
|
19023
19293
|
const installCommand = params.installCommand;
|
|
19024
19294
|
const buildCommand = params.buildCommand;
|
|
19295
|
+
const startCommand = params.startCommand;
|
|
19025
19296
|
const outputDirectory = params.outputDirectory;
|
|
19026
19297
|
const adapter = params.adapter;
|
|
19027
19298
|
const installationId = params.installationId;
|
|
@@ -19030,7 +19301,9 @@ class Sites {
|
|
|
19030
19301
|
const providerBranch = params.providerBranch;
|
|
19031
19302
|
const providerSilentMode = params.providerSilentMode;
|
|
19032
19303
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19033
|
-
const
|
|
19304
|
+
const buildSpecification = params.buildSpecification;
|
|
19305
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19306
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19034
19307
|
if (typeof siteId === 'undefined') {
|
|
19035
19308
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19036
19309
|
}
|
|
@@ -19069,6 +19342,9 @@ class Sites {
|
|
|
19069
19342
|
if (typeof buildCommand !== 'undefined') {
|
|
19070
19343
|
payload['buildCommand'] = buildCommand;
|
|
19071
19344
|
}
|
|
19345
|
+
if (typeof startCommand !== 'undefined') {
|
|
19346
|
+
payload['startCommand'] = startCommand;
|
|
19347
|
+
}
|
|
19072
19348
|
if (typeof outputDirectory !== 'undefined') {
|
|
19073
19349
|
payload['outputDirectory'] = outputDirectory;
|
|
19074
19350
|
}
|
|
@@ -19096,8 +19372,14 @@ class Sites {
|
|
|
19096
19372
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19097
19373
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19098
19374
|
}
|
|
19099
|
-
if (typeof
|
|
19100
|
-
payload['
|
|
19375
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19376
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19377
|
+
}
|
|
19378
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19379
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19380
|
+
}
|
|
19381
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19382
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19101
19383
|
}
|
|
19102
19384
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19103
19385
|
const apiHeaders = {
|
|
@@ -19241,16 +19523,19 @@ class Sites {
|
|
|
19241
19523
|
timeout: rest[4],
|
|
19242
19524
|
installCommand: rest[5],
|
|
19243
19525
|
buildCommand: rest[6],
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19526
|
+
startCommand: rest[7],
|
|
19527
|
+
outputDirectory: rest[8],
|
|
19528
|
+
buildRuntime: rest[9],
|
|
19529
|
+
adapter: rest[10],
|
|
19530
|
+
fallbackFile: rest[11],
|
|
19531
|
+
installationId: rest[12],
|
|
19532
|
+
providerRepositoryId: rest[13],
|
|
19533
|
+
providerBranch: rest[14],
|
|
19534
|
+
providerSilentMode: rest[15],
|
|
19535
|
+
providerRootDirectory: rest[16],
|
|
19536
|
+
buildSpecification: rest[17],
|
|
19537
|
+
runtimeSpecification: rest[18],
|
|
19538
|
+
deploymentRetention: rest[19]
|
|
19254
19539
|
};
|
|
19255
19540
|
}
|
|
19256
19541
|
const siteId = params.siteId;
|
|
@@ -19261,6 +19546,7 @@ class Sites {
|
|
|
19261
19546
|
const timeout = params.timeout;
|
|
19262
19547
|
const installCommand = params.installCommand;
|
|
19263
19548
|
const buildCommand = params.buildCommand;
|
|
19549
|
+
const startCommand = params.startCommand;
|
|
19264
19550
|
const outputDirectory = params.outputDirectory;
|
|
19265
19551
|
const buildRuntime = params.buildRuntime;
|
|
19266
19552
|
const adapter = params.adapter;
|
|
@@ -19270,7 +19556,9 @@ class Sites {
|
|
|
19270
19556
|
const providerBranch = params.providerBranch;
|
|
19271
19557
|
const providerSilentMode = params.providerSilentMode;
|
|
19272
19558
|
const providerRootDirectory = params.providerRootDirectory;
|
|
19273
|
-
const
|
|
19559
|
+
const buildSpecification = params.buildSpecification;
|
|
19560
|
+
const runtimeSpecification = params.runtimeSpecification;
|
|
19561
|
+
const deploymentRetention = params.deploymentRetention;
|
|
19274
19562
|
if (typeof siteId === 'undefined') {
|
|
19275
19563
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19276
19564
|
}
|
|
@@ -19303,6 +19591,9 @@ class Sites {
|
|
|
19303
19591
|
if (typeof buildCommand !== 'undefined') {
|
|
19304
19592
|
payload['buildCommand'] = buildCommand;
|
|
19305
19593
|
}
|
|
19594
|
+
if (typeof startCommand !== 'undefined') {
|
|
19595
|
+
payload['startCommand'] = startCommand;
|
|
19596
|
+
}
|
|
19306
19597
|
if (typeof outputDirectory !== 'undefined') {
|
|
19307
19598
|
payload['outputDirectory'] = outputDirectory;
|
|
19308
19599
|
}
|
|
@@ -19330,8 +19621,14 @@ class Sites {
|
|
|
19330
19621
|
if (typeof providerRootDirectory !== 'undefined') {
|
|
19331
19622
|
payload['providerRootDirectory'] = providerRootDirectory;
|
|
19332
19623
|
}
|
|
19333
|
-
if (typeof
|
|
19334
|
-
payload['
|
|
19624
|
+
if (typeof buildSpecification !== 'undefined') {
|
|
19625
|
+
payload['buildSpecification'] = buildSpecification;
|
|
19626
|
+
}
|
|
19627
|
+
if (typeof runtimeSpecification !== 'undefined') {
|
|
19628
|
+
payload['runtimeSpecification'] = runtimeSpecification;
|
|
19629
|
+
}
|
|
19630
|
+
if (typeof deploymentRetention !== 'undefined') {
|
|
19631
|
+
payload['deploymentRetention'] = deploymentRetention;
|
|
19335
19632
|
}
|
|
19336
19633
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19337
19634
|
const apiHeaders = {
|
|
@@ -19437,28 +19734,25 @@ class Sites {
|
|
|
19437
19734
|
params = {
|
|
19438
19735
|
siteId: paramsOrFirst,
|
|
19439
19736
|
code: rest[0],
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19737
|
+
installCommand: rest[1],
|
|
19738
|
+
buildCommand: rest[2],
|
|
19739
|
+
outputDirectory: rest[3],
|
|
19740
|
+
activate: rest[4]
|
|
19444
19741
|
};
|
|
19445
19742
|
onProgress = rest[5];
|
|
19446
19743
|
}
|
|
19447
19744
|
const siteId = params.siteId;
|
|
19448
19745
|
const code = params.code;
|
|
19449
|
-
const activate = params.activate;
|
|
19450
19746
|
const installCommand = params.installCommand;
|
|
19451
19747
|
const buildCommand = params.buildCommand;
|
|
19452
19748
|
const outputDirectory = params.outputDirectory;
|
|
19749
|
+
const activate = params.activate;
|
|
19453
19750
|
if (typeof siteId === 'undefined') {
|
|
19454
19751
|
throw new AppwriteException('Missing required parameter: "siteId"');
|
|
19455
19752
|
}
|
|
19456
19753
|
if (typeof code === 'undefined') {
|
|
19457
19754
|
throw new AppwriteException('Missing required parameter: "code"');
|
|
19458
19755
|
}
|
|
19459
|
-
if (typeof activate === 'undefined') {
|
|
19460
|
-
throw new AppwriteException('Missing required parameter: "activate"');
|
|
19461
|
-
}
|
|
19462
19756
|
const apiPath = '/sites/{siteId}/deployments'.replace('{siteId}', siteId);
|
|
19463
19757
|
const payload = {};
|
|
19464
19758
|
if (typeof installCommand !== 'undefined') {
|
|
@@ -23289,7 +23583,8 @@ class TablesDB {
|
|
|
23289
23583
|
tableId: rest[0],
|
|
23290
23584
|
queries: rest[1],
|
|
23291
23585
|
transactionId: rest[2],
|
|
23292
|
-
total: rest[3]
|
|
23586
|
+
total: rest[3],
|
|
23587
|
+
ttl: rest[4]
|
|
23293
23588
|
};
|
|
23294
23589
|
}
|
|
23295
23590
|
const databaseId = params.databaseId;
|
|
@@ -23297,6 +23592,7 @@ class TablesDB {
|
|
|
23297
23592
|
const queries = params.queries;
|
|
23298
23593
|
const transactionId = params.transactionId;
|
|
23299
23594
|
const total = params.total;
|
|
23595
|
+
const ttl = params.ttl;
|
|
23300
23596
|
if (typeof databaseId === 'undefined') {
|
|
23301
23597
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
23302
23598
|
}
|
|
@@ -23314,6 +23610,9 @@ class TablesDB {
|
|
|
23314
23610
|
if (typeof total !== 'undefined') {
|
|
23315
23611
|
payload['total'] = total;
|
|
23316
23612
|
}
|
|
23613
|
+
if (typeof ttl !== 'undefined') {
|
|
23614
|
+
payload['ttl'] = ttl;
|
|
23615
|
+
}
|
|
23317
23616
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23318
23617
|
const apiHeaders = {};
|
|
23319
23618
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -26952,8 +27251,14 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
|
|
|
26952
27251
|
};
|
|
26953
27252
|
|
|
26954
27253
|
function normalize(id) {
|
|
26955
|
-
|
|
26956
|
-
|
|
27254
|
+
if (id === undefined || id === null) {
|
|
27255
|
+
throw new Error("Channel ID is required");
|
|
27256
|
+
}
|
|
27257
|
+
const trimmed = String(id).trim();
|
|
27258
|
+
if (trimmed === "") {
|
|
27259
|
+
throw new Error("Channel ID is required");
|
|
27260
|
+
}
|
|
27261
|
+
return trimmed;
|
|
26957
27262
|
}
|
|
26958
27263
|
class Channel {
|
|
26959
27264
|
constructor(segments) {
|
|
@@ -26974,8 +27279,7 @@ class Channel {
|
|
|
26974
27279
|
// --- DATABASE ROUTE ---
|
|
26975
27280
|
// Only available on Channel<Database>
|
|
26976
27281
|
collection(id) {
|
|
26977
|
-
|
|
26978
|
-
return this.next("collections", id !== null && id !== void 0 ? id : "*");
|
|
27282
|
+
return this.next("collections", id);
|
|
26979
27283
|
}
|
|
26980
27284
|
// Only available on Channel<Collection>
|
|
26981
27285
|
document(id) {
|
|
@@ -26984,8 +27288,7 @@ class Channel {
|
|
|
26984
27288
|
}
|
|
26985
27289
|
// --- TABLESDB ROUTE ---
|
|
26986
27290
|
table(id) {
|
|
26987
|
-
|
|
26988
|
-
return this.next("tables", id !== null && id !== void 0 ? id : "*");
|
|
27291
|
+
return this.next("tables", id);
|
|
26989
27292
|
}
|
|
26990
27293
|
row(id) {
|
|
26991
27294
|
// Default: no row ID segment
|
|
@@ -27011,25 +27314,25 @@ class Channel {
|
|
|
27011
27314
|
return this.resolve("delete");
|
|
27012
27315
|
}
|
|
27013
27316
|
// --- ROOT FACTORIES ---
|
|
27014
|
-
static database(id
|
|
27317
|
+
static database(id) {
|
|
27015
27318
|
return new Channel(["databases", normalize(id)]);
|
|
27016
27319
|
}
|
|
27017
|
-
static execution(id
|
|
27320
|
+
static execution(id) {
|
|
27018
27321
|
return new Channel(["executions", normalize(id)]);
|
|
27019
27322
|
}
|
|
27020
|
-
static tablesdb(id
|
|
27323
|
+
static tablesdb(id) {
|
|
27021
27324
|
return new Channel(["tablesdb", normalize(id)]);
|
|
27022
27325
|
}
|
|
27023
|
-
static bucket(id
|
|
27326
|
+
static bucket(id) {
|
|
27024
27327
|
return new Channel(["buckets", normalize(id)]);
|
|
27025
27328
|
}
|
|
27026
|
-
static function(id
|
|
27329
|
+
static function(id) {
|
|
27027
27330
|
return new Channel(["functions", normalize(id)]);
|
|
27028
27331
|
}
|
|
27029
|
-
static team(id
|
|
27332
|
+
static team(id) {
|
|
27030
27333
|
return new Channel(["teams", normalize(id)]);
|
|
27031
27334
|
}
|
|
27032
|
-
static membership(id
|
|
27335
|
+
static membership(id) {
|
|
27033
27336
|
return new Channel(["memberships", normalize(id)]);
|
|
27034
27337
|
}
|
|
27035
27338
|
static account() {
|
|
@@ -28250,6 +28553,9 @@ exports.Runtime = void 0;
|
|
|
28250
28553
|
Runtime["Pythonml311"] = "python-ml-3.11";
|
|
28251
28554
|
Runtime["Pythonml312"] = "python-ml-3.12";
|
|
28252
28555
|
Runtime["Pythonml313"] = "python-ml-3.13";
|
|
28556
|
+
Runtime["Deno121"] = "deno-1.21";
|
|
28557
|
+
Runtime["Deno124"] = "deno-1.24";
|
|
28558
|
+
Runtime["Deno135"] = "deno-1.35";
|
|
28253
28559
|
Runtime["Deno140"] = "deno-1.40";
|
|
28254
28560
|
Runtime["Deno146"] = "deno-1.46";
|
|
28255
28561
|
Runtime["Deno20"] = "deno-2.0";
|
|
@@ -28340,6 +28646,9 @@ exports.Runtimes = void 0;
|
|
|
28340
28646
|
Runtimes["Pythonml311"] = "python-ml-3.11";
|
|
28341
28647
|
Runtimes["Pythonml312"] = "python-ml-3.12";
|
|
28342
28648
|
Runtimes["Pythonml313"] = "python-ml-3.13";
|
|
28649
|
+
Runtimes["Deno121"] = "deno-1.21";
|
|
28650
|
+
Runtimes["Deno124"] = "deno-1.24";
|
|
28651
|
+
Runtimes["Deno135"] = "deno-1.35";
|
|
28343
28652
|
Runtimes["Deno140"] = "deno-1.40";
|
|
28344
28653
|
Runtimes["Deno146"] = "deno-1.46";
|
|
28345
28654
|
Runtimes["Deno20"] = "deno-2.0";
|
|
@@ -28471,20 +28780,76 @@ exports.SmtpEncryption = void 0;
|
|
|
28471
28780
|
SmtpEncryption["Tls"] = "tls";
|
|
28472
28781
|
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
28473
28782
|
|
|
28474
|
-
exports.
|
|
28475
|
-
(function (
|
|
28476
|
-
|
|
28477
|
-
|
|
28478
|
-
|
|
28479
|
-
|
|
28480
|
-
|
|
28481
|
-
|
|
28482
|
-
|
|
28483
|
-
|
|
28484
|
-
|
|
28485
|
-
|
|
28486
|
-
|
|
28487
|
-
|
|
28783
|
+
exports.AppwriteMigrationResource = void 0;
|
|
28784
|
+
(function (AppwriteMigrationResource) {
|
|
28785
|
+
AppwriteMigrationResource["User"] = "user";
|
|
28786
|
+
AppwriteMigrationResource["Team"] = "team";
|
|
28787
|
+
AppwriteMigrationResource["Membership"] = "membership";
|
|
28788
|
+
AppwriteMigrationResource["Database"] = "database";
|
|
28789
|
+
AppwriteMigrationResource["Table"] = "table";
|
|
28790
|
+
AppwriteMigrationResource["Column"] = "column";
|
|
28791
|
+
AppwriteMigrationResource["Index"] = "index";
|
|
28792
|
+
AppwriteMigrationResource["Row"] = "row";
|
|
28793
|
+
AppwriteMigrationResource["Document"] = "document";
|
|
28794
|
+
AppwriteMigrationResource["Attribute"] = "attribute";
|
|
28795
|
+
AppwriteMigrationResource["Collection"] = "collection";
|
|
28796
|
+
AppwriteMigrationResource["Bucket"] = "bucket";
|
|
28797
|
+
AppwriteMigrationResource["File"] = "file";
|
|
28798
|
+
AppwriteMigrationResource["Function"] = "function";
|
|
28799
|
+
AppwriteMigrationResource["Deployment"] = "deployment";
|
|
28800
|
+
AppwriteMigrationResource["Environmentvariable"] = "environment-variable";
|
|
28801
|
+
AppwriteMigrationResource["Provider"] = "provider";
|
|
28802
|
+
AppwriteMigrationResource["Topic"] = "topic";
|
|
28803
|
+
AppwriteMigrationResource["Subscriber"] = "subscriber";
|
|
28804
|
+
AppwriteMigrationResource["Message"] = "message";
|
|
28805
|
+
AppwriteMigrationResource["Site"] = "site";
|
|
28806
|
+
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
28807
|
+
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
28808
|
+
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
28809
|
+
|
|
28810
|
+
exports.FirebaseMigrationResource = void 0;
|
|
28811
|
+
(function (FirebaseMigrationResource) {
|
|
28812
|
+
FirebaseMigrationResource["User"] = "user";
|
|
28813
|
+
FirebaseMigrationResource["Database"] = "database";
|
|
28814
|
+
FirebaseMigrationResource["Table"] = "table";
|
|
28815
|
+
FirebaseMigrationResource["Column"] = "column";
|
|
28816
|
+
FirebaseMigrationResource["Row"] = "row";
|
|
28817
|
+
FirebaseMigrationResource["Document"] = "document";
|
|
28818
|
+
FirebaseMigrationResource["Attribute"] = "attribute";
|
|
28819
|
+
FirebaseMigrationResource["Collection"] = "collection";
|
|
28820
|
+
FirebaseMigrationResource["Bucket"] = "bucket";
|
|
28821
|
+
FirebaseMigrationResource["File"] = "file";
|
|
28822
|
+
})(exports.FirebaseMigrationResource || (exports.FirebaseMigrationResource = {}));
|
|
28823
|
+
|
|
28824
|
+
exports.NHostMigrationResource = void 0;
|
|
28825
|
+
(function (NHostMigrationResource) {
|
|
28826
|
+
NHostMigrationResource["User"] = "user";
|
|
28827
|
+
NHostMigrationResource["Database"] = "database";
|
|
28828
|
+
NHostMigrationResource["Table"] = "table";
|
|
28829
|
+
NHostMigrationResource["Column"] = "column";
|
|
28830
|
+
NHostMigrationResource["Index"] = "index";
|
|
28831
|
+
NHostMigrationResource["Row"] = "row";
|
|
28832
|
+
NHostMigrationResource["Document"] = "document";
|
|
28833
|
+
NHostMigrationResource["Attribute"] = "attribute";
|
|
28834
|
+
NHostMigrationResource["Collection"] = "collection";
|
|
28835
|
+
NHostMigrationResource["Bucket"] = "bucket";
|
|
28836
|
+
NHostMigrationResource["File"] = "file";
|
|
28837
|
+
})(exports.NHostMigrationResource || (exports.NHostMigrationResource = {}));
|
|
28838
|
+
|
|
28839
|
+
exports.SupabaseMigrationResource = void 0;
|
|
28840
|
+
(function (SupabaseMigrationResource) {
|
|
28841
|
+
SupabaseMigrationResource["User"] = "user";
|
|
28842
|
+
SupabaseMigrationResource["Database"] = "database";
|
|
28843
|
+
SupabaseMigrationResource["Table"] = "table";
|
|
28844
|
+
SupabaseMigrationResource["Column"] = "column";
|
|
28845
|
+
SupabaseMigrationResource["Index"] = "index";
|
|
28846
|
+
SupabaseMigrationResource["Row"] = "row";
|
|
28847
|
+
SupabaseMigrationResource["Document"] = "document";
|
|
28848
|
+
SupabaseMigrationResource["Attribute"] = "attribute";
|
|
28849
|
+
SupabaseMigrationResource["Collection"] = "collection";
|
|
28850
|
+
SupabaseMigrationResource["Bucket"] = "bucket";
|
|
28851
|
+
SupabaseMigrationResource["File"] = "file";
|
|
28852
|
+
})(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
|
|
28488
28853
|
|
|
28489
28854
|
exports.ProjectUsageRange = void 0;
|
|
28490
28855
|
(function (ProjectUsageRange) {
|
|
@@ -28570,6 +28935,11 @@ exports.SMTPSecure = void 0;
|
|
|
28570
28935
|
SMTPSecure["Ssl"] = "ssl";
|
|
28571
28936
|
})(exports.SMTPSecure || (exports.SMTPSecure = {}));
|
|
28572
28937
|
|
|
28938
|
+
exports.Status = void 0;
|
|
28939
|
+
(function (Status) {
|
|
28940
|
+
Status["Active"] = "active";
|
|
28941
|
+
})(exports.Status || (exports.Status = {}));
|
|
28942
|
+
|
|
28573
28943
|
exports.EmailTemplateType = void 0;
|
|
28574
28944
|
(function (EmailTemplateType) {
|
|
28575
28945
|
EmailTemplateType["Verification"] = "verification";
|
|
@@ -28925,6 +29295,9 @@ exports.BuildRuntime = void 0;
|
|
|
28925
29295
|
BuildRuntime["Pythonml311"] = "python-ml-3.11";
|
|
28926
29296
|
BuildRuntime["Pythonml312"] = "python-ml-3.12";
|
|
28927
29297
|
BuildRuntime["Pythonml313"] = "python-ml-3.13";
|
|
29298
|
+
BuildRuntime["Deno121"] = "deno-1.21";
|
|
29299
|
+
BuildRuntime["Deno124"] = "deno-1.24";
|
|
29300
|
+
BuildRuntime["Deno135"] = "deno-1.35";
|
|
28928
29301
|
BuildRuntime["Deno140"] = "deno-1.40";
|
|
28929
29302
|
BuildRuntime["Deno146"] = "deno-1.46";
|
|
28930
29303
|
BuildRuntime["Deno20"] = "deno-2.0";
|
|
@@ -29157,6 +29530,30 @@ exports.BillingPlanGroup = void 0;
|
|
|
29157
29530
|
BillingPlanGroup["Scale"] = "scale";
|
|
29158
29531
|
})(exports.BillingPlanGroup || (exports.BillingPlanGroup = {}));
|
|
29159
29532
|
|
|
29533
|
+
exports.DomainPurchasePaymentStatus = void 0;
|
|
29534
|
+
(function (DomainPurchasePaymentStatus) {
|
|
29535
|
+
DomainPurchasePaymentStatus["Pending"] = "pending";
|
|
29536
|
+
DomainPurchasePaymentStatus["PendingConfirmation"] = "pending_confirmation";
|
|
29537
|
+
DomainPurchasePaymentStatus["PendingPaymentProcessing"] = "pending_payment_processing";
|
|
29538
|
+
DomainPurchasePaymentStatus["Authorized"] = "authorized";
|
|
29539
|
+
DomainPurchasePaymentStatus["Captured"] = "captured";
|
|
29540
|
+
DomainPurchasePaymentStatus["Failed"] = "failed";
|
|
29541
|
+
DomainPurchasePaymentStatus["CaptureFailed"] = "capture_failed";
|
|
29542
|
+
DomainPurchasePaymentStatus["RenewalCaptureFailed"] = "renewal_capture_failed";
|
|
29543
|
+
})(exports.DomainPurchasePaymentStatus || (exports.DomainPurchasePaymentStatus = {}));
|
|
29544
|
+
|
|
29545
|
+
exports.DomainTransferStatusStatus = void 0;
|
|
29546
|
+
(function (DomainTransferStatusStatus) {
|
|
29547
|
+
DomainTransferStatusStatus["Transferrable"] = "transferrable";
|
|
29548
|
+
DomainTransferStatusStatus["NotTransferrable"] = "not_transferrable";
|
|
29549
|
+
DomainTransferStatusStatus["PendingOwner"] = "pending_owner";
|
|
29550
|
+
DomainTransferStatusStatus["PendingAdmin"] = "pending_admin";
|
|
29551
|
+
DomainTransferStatusStatus["PendingRegistry"] = "pending_registry";
|
|
29552
|
+
DomainTransferStatusStatus["Completed"] = "completed";
|
|
29553
|
+
DomainTransferStatusStatus["Cancelled"] = "cancelled";
|
|
29554
|
+
DomainTransferStatusStatus["ServiceUnavailable"] = "service_unavailable";
|
|
29555
|
+
})(exports.DomainTransferStatusStatus || (exports.DomainTransferStatusStatus = {}));
|
|
29556
|
+
|
|
29160
29557
|
exports.Account = Account;
|
|
29161
29558
|
exports.Activities = Activities;
|
|
29162
29559
|
exports.AppwriteException = AppwriteException;
|