@appwrite.io/console 7.0.0 → 8.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 +22 -6
- package/README.md +2 -2
- package/dist/cjs/sdk.js +211 -303
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +209 -297
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +227 -306
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/domains/create-purchase.md +2 -1
- package/docs/examples/domains/create-transfer-in.md +2 -1
- package/docs/examples/domains/update-auto-renewal.md +16 -0
- package/docs/examples/project/create-variable.md +1 -0
- package/docs/examples/project/list-variables.md +4 -1
- package/docs/examples/project/update-variable.md +1 -1
- package/docs/examples/tablesdb/create-index.md +2 -2
- package/docs/examples/users/update-impersonator.md +16 -0
- package/package.json +7 -7
- package/rollup.config.js +2 -1
- package/src/client.ts +49 -1
- package/src/enums/appwrite-migration-resource.ts +2 -0
- package/src/enums/backup-services.ts +3 -0
- package/src/enums/build-runtime.ts +0 -86
- package/src/enums/database-type.ts +2 -0
- package/src/enums/databases-index-type.ts +6 -0
- package/src/enums/runtime.ts +0 -86
- package/src/enums/runtimes.ts +0 -86
- package/src/enums/scopes.ts +13 -2
- package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
- package/src/enums/template-reference-type.ts +1 -1
- package/src/enums/use-cases.ts +7 -2
- package/src/index.ts +2 -1
- package/src/models.ts +136 -90
- package/src/services/databases.ts +10 -10
- package/src/services/domains.ts +103 -26
- package/src/services/project.ts +76 -33
- package/src/services/tables-db.ts +10 -10
- package/src/services/users.ts +67 -2
- package/types/channel.d.ts +3 -3
- package/types/client.d.ts +37 -4
- package/types/enums/appwrite-migration-resource.d.ts +2 -0
- package/types/enums/backup-services.d.ts +3 -0
- package/types/enums/build-runtime.d.ts +1 -87
- package/types/enums/database-type.d.ts +3 -1
- package/types/enums/databases-index-type.d.ts +6 -0
- package/types/enums/runtime.d.ts +1 -87
- package/types/enums/runtimes.d.ts +1 -87
- package/types/enums/scopes.d.ts +14 -3
- package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
- package/types/enums/template-reference-type.d.ts +1 -1
- package/types/enums/use-cases.d.ts +7 -2
- package/types/index.d.ts +2 -1
- package/types/models.d.ts +136 -87
- package/types/operator.d.ts +3 -3
- package/types/query.d.ts +4 -4
- package/types/services/databases.d.ts +5 -5
- package/types/services/domains.d.ts +42 -14
- package/types/services/project.d.ts +37 -19
- package/types/services/realtime.d.ts +6 -6
- package/types/services/tables-db.d.ts +5 -5
- package/types/services/users.d.ts +26 -2
package/dist/iife/sdk.js
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17
17
|
***************************************************************************** */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
20
22
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -30,10 +32,19 @@
|
|
|
30
32
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
31
33
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
32
34
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
33
|
-
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
38
|
+
var e = new Error(message);
|
|
39
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
40
|
+
};
|
|
34
41
|
|
|
35
42
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
36
43
|
|
|
44
|
+
function getDefaultExportFromCjs (x) {
|
|
45
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
var jsonBigint = {exports: {}};
|
|
38
49
|
|
|
39
50
|
var stringify = {exports: {}};
|
|
@@ -2957,11 +2968,13 @@
|
|
|
2957
2968
|
|
|
2958
2969
|
globalObject.BigNumber = BigNumber;
|
|
2959
2970
|
}
|
|
2960
|
-
})(commonjsGlobal);
|
|
2971
|
+
})(commonjsGlobal);
|
|
2961
2972
|
} (bignumber));
|
|
2962
2973
|
|
|
2974
|
+
var bignumberExports = bignumber.exports;
|
|
2975
|
+
|
|
2963
2976
|
(function (module) {
|
|
2964
|
-
var BigNumber =
|
|
2977
|
+
var BigNumber = bignumberExports;
|
|
2965
2978
|
|
|
2966
2979
|
/*
|
|
2967
2980
|
json2.js
|
|
@@ -3337,9 +3350,11 @@
|
|
|
3337
3350
|
return str('', {'': value});
|
|
3338
3351
|
};
|
|
3339
3352
|
}
|
|
3340
|
-
}());
|
|
3353
|
+
}());
|
|
3341
3354
|
} (stringify));
|
|
3342
3355
|
|
|
3356
|
+
var stringifyExports = stringify.exports;
|
|
3357
|
+
|
|
3343
3358
|
var BigNumber = null;
|
|
3344
3359
|
|
|
3345
3360
|
// regexpxs extracted from
|
|
@@ -3546,7 +3561,7 @@
|
|
|
3546
3561
|
if (!isFinite(number)) {
|
|
3547
3562
|
error('Bad number');
|
|
3548
3563
|
} else {
|
|
3549
|
-
if (BigNumber == null) BigNumber =
|
|
3564
|
+
if (BigNumber == null) BigNumber = bignumberExports;
|
|
3550
3565
|
//if (number > 9007199254740992 || number < -9007199254740992)
|
|
3551
3566
|
// Bignumber has stricter check: everything with length > 15 digits disallowed
|
|
3552
3567
|
if (string.length > 15)
|
|
@@ -3782,7 +3797,7 @@
|
|
|
3782
3797
|
|
|
3783
3798
|
var parse = json_parse$1;
|
|
3784
3799
|
|
|
3785
|
-
var json_stringify =
|
|
3800
|
+
var json_stringify = stringifyExports.stringify;
|
|
3786
3801
|
var json_parse = parse;
|
|
3787
3802
|
|
|
3788
3803
|
jsonBigint.exports = function(options) {
|
|
@@ -3795,7 +3810,10 @@
|
|
|
3795
3810
|
jsonBigint.exports.parse = json_parse();
|
|
3796
3811
|
jsonBigint.exports.stringify = json_stringify;
|
|
3797
3812
|
|
|
3798
|
-
|
|
3813
|
+
var jsonBigintExports = jsonBigint.exports;
|
|
3814
|
+
var JSONbigModule = /*@__PURE__*/getDefaultExportFromCjs(jsonBigintExports);
|
|
3815
|
+
|
|
3816
|
+
const JSONbig$1 = JSONbigModule({ useNativeBigInt: true });
|
|
3799
3817
|
/**
|
|
3800
3818
|
* Helper class to generate query strings.
|
|
3801
3819
|
*/
|
|
@@ -4248,8 +4266,8 @@
|
|
|
4248
4266
|
*/
|
|
4249
4267
|
Query.notTouches = (attribute, values) => new Query("notTouches", attribute, [values]).toString();
|
|
4250
4268
|
|
|
4251
|
-
const JSONbigParser =
|
|
4252
|
-
const JSONbigSerializer =
|
|
4269
|
+
const JSONbigParser = JSONbigModule({ storeAsString: false });
|
|
4270
|
+
const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
|
|
4253
4271
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
4254
4272
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
4255
4273
|
const MAX_INT64 = BigInt('9223372036854775807');
|
|
@@ -4321,6 +4339,9 @@
|
|
|
4321
4339
|
locale: '',
|
|
4322
4340
|
mode: '',
|
|
4323
4341
|
cookie: '',
|
|
4342
|
+
impersonateuserid: '',
|
|
4343
|
+
impersonateuseremail: '',
|
|
4344
|
+
impersonateuserphone: '',
|
|
4324
4345
|
platform: '',
|
|
4325
4346
|
selfSigned: false,
|
|
4326
4347
|
session: undefined,
|
|
@@ -4332,7 +4353,7 @@
|
|
|
4332
4353
|
'x-sdk-name': 'Console',
|
|
4333
4354
|
'x-sdk-platform': 'console',
|
|
4334
4355
|
'x-sdk-language': 'web',
|
|
4335
|
-
'x-sdk-version': '
|
|
4356
|
+
'x-sdk-version': '8.0.0',
|
|
4336
4357
|
'X-Appwrite-Response-Format': '1.9.0',
|
|
4337
4358
|
};
|
|
4338
4359
|
this.realtime = {
|
|
@@ -4663,6 +4684,48 @@
|
|
|
4663
4684
|
this.config.cookie = value;
|
|
4664
4685
|
return this;
|
|
4665
4686
|
}
|
|
4687
|
+
/**
|
|
4688
|
+
* Set ImpersonateUserId
|
|
4689
|
+
*
|
|
4690
|
+
* Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
4691
|
+
*
|
|
4692
|
+
* @param value string
|
|
4693
|
+
*
|
|
4694
|
+
* @return {this}
|
|
4695
|
+
*/
|
|
4696
|
+
setImpersonateUserId(value) {
|
|
4697
|
+
this.headers['X-Appwrite-Impersonate-User-Id'] = value;
|
|
4698
|
+
this.config.impersonateuserid = value;
|
|
4699
|
+
return this;
|
|
4700
|
+
}
|
|
4701
|
+
/**
|
|
4702
|
+
* Set ImpersonateUserEmail
|
|
4703
|
+
*
|
|
4704
|
+
* Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
4705
|
+
*
|
|
4706
|
+
* @param value string
|
|
4707
|
+
*
|
|
4708
|
+
* @return {this}
|
|
4709
|
+
*/
|
|
4710
|
+
setImpersonateUserEmail(value) {
|
|
4711
|
+
this.headers['X-Appwrite-Impersonate-User-Email'] = value;
|
|
4712
|
+
this.config.impersonateuseremail = value;
|
|
4713
|
+
return this;
|
|
4714
|
+
}
|
|
4715
|
+
/**
|
|
4716
|
+
* Set ImpersonateUserPhone
|
|
4717
|
+
*
|
|
4718
|
+
* Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
|
|
4719
|
+
*
|
|
4720
|
+
* @param value string
|
|
4721
|
+
*
|
|
4722
|
+
* @return {this}
|
|
4723
|
+
*/
|
|
4724
|
+
setImpersonateUserPhone(value) {
|
|
4725
|
+
this.headers['X-Appwrite-Impersonate-User-Phone'] = value;
|
|
4726
|
+
this.config.impersonateuserphone = value;
|
|
4727
|
+
return this;
|
|
4728
|
+
}
|
|
4666
4729
|
/**
|
|
4667
4730
|
* Set Platform
|
|
4668
4731
|
*
|
|
@@ -4790,9 +4853,9 @@
|
|
|
4790
4853
|
}
|
|
4791
4854
|
return { uri: url.toString(), options };
|
|
4792
4855
|
}
|
|
4793
|
-
chunkedUpload(
|
|
4794
|
-
|
|
4795
|
-
|
|
4856
|
+
chunkedUpload(method_1, url_1) {
|
|
4857
|
+
return __awaiter(this, arguments, void 0, function* (method, url, headers = {}, originalPayload = {}, onProgress) {
|
|
4858
|
+
var _a;
|
|
4796
4859
|
const [fileParam, file] = (_a = Object.entries(originalPayload).find(([_, value]) => value instanceof File)) !== null && _a !== void 0 ? _a : [];
|
|
4797
4860
|
if (!file || !fileParam) {
|
|
4798
4861
|
throw new Error('File not found in payload');
|
|
@@ -4834,9 +4897,9 @@
|
|
|
4834
4897
|
return this.call('GET', new URL(this.config.endpoint + '/ping'));
|
|
4835
4898
|
});
|
|
4836
4899
|
}
|
|
4837
|
-
call(
|
|
4838
|
-
|
|
4839
|
-
|
|
4900
|
+
call(method_1, url_1) {
|
|
4901
|
+
return __awaiter(this, arguments, void 0, function* (method, url, headers = {}, params = {}, responseType = 'json') {
|
|
4902
|
+
var _a, _b;
|
|
4840
4903
|
const { uri, options } = this.prepareRequest(method, url, headers, params);
|
|
4841
4904
|
let data = null;
|
|
4842
4905
|
const response = yield fetch(uri, options);
|
|
@@ -11546,7 +11609,8 @@
|
|
|
11546
11609
|
paymentMethodId: rest[6],
|
|
11547
11610
|
addressLine3: rest[7],
|
|
11548
11611
|
companyName: rest[8],
|
|
11549
|
-
periodYears: rest[9]
|
|
11612
|
+
periodYears: rest[9],
|
|
11613
|
+
autoRenewal: rest[10]
|
|
11550
11614
|
};
|
|
11551
11615
|
}
|
|
11552
11616
|
const domain = params.domain;
|
|
@@ -11560,6 +11624,7 @@
|
|
|
11560
11624
|
const addressLine3 = params.addressLine3;
|
|
11561
11625
|
const companyName = params.companyName;
|
|
11562
11626
|
const periodYears = params.periodYears;
|
|
11627
|
+
const autoRenewal = params.autoRenewal;
|
|
11563
11628
|
if (typeof domain === 'undefined') {
|
|
11564
11629
|
throw new AppwriteException('Missing required parameter: "domain"');
|
|
11565
11630
|
}
|
|
@@ -11616,6 +11681,9 @@
|
|
|
11616
11681
|
if (typeof periodYears !== 'undefined') {
|
|
11617
11682
|
payload['periodYears'] = periodYears;
|
|
11618
11683
|
}
|
|
11684
|
+
if (typeof autoRenewal !== 'undefined') {
|
|
11685
|
+
payload['autoRenewal'] = autoRenewal;
|
|
11686
|
+
}
|
|
11619
11687
|
if (typeof paymentMethodId !== 'undefined') {
|
|
11620
11688
|
payload['paymentMethodId'] = paymentMethodId;
|
|
11621
11689
|
}
|
|
@@ -11713,13 +11781,15 @@
|
|
|
11713
11781
|
domain: paramsOrFirst,
|
|
11714
11782
|
organizationId: rest[0],
|
|
11715
11783
|
authCode: rest[1],
|
|
11716
|
-
paymentMethodId: rest[2]
|
|
11784
|
+
paymentMethodId: rest[2],
|
|
11785
|
+
autoRenewal: rest[3]
|
|
11717
11786
|
};
|
|
11718
11787
|
}
|
|
11719
11788
|
const domain = params.domain;
|
|
11720
11789
|
const organizationId = params.organizationId;
|
|
11721
11790
|
const authCode = params.authCode;
|
|
11722
11791
|
const paymentMethodId = params.paymentMethodId;
|
|
11792
|
+
const autoRenewal = params.autoRenewal;
|
|
11723
11793
|
if (typeof domain === 'undefined') {
|
|
11724
11794
|
throw new AppwriteException('Missing required parameter: "domain"');
|
|
11725
11795
|
}
|
|
@@ -11743,6 +11813,9 @@
|
|
|
11743
11813
|
if (typeof authCode !== 'undefined') {
|
|
11744
11814
|
payload['authCode'] = authCode;
|
|
11745
11815
|
}
|
|
11816
|
+
if (typeof autoRenewal !== 'undefined') {
|
|
11817
|
+
payload['autoRenewal'] = autoRenewal;
|
|
11818
|
+
}
|
|
11746
11819
|
if (typeof paymentMethodId !== 'undefined') {
|
|
11747
11820
|
payload['paymentMethodId'] = paymentMethodId;
|
|
11748
11821
|
}
|
|
@@ -11857,6 +11930,36 @@
|
|
|
11857
11930
|
};
|
|
11858
11931
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
11859
11932
|
}
|
|
11933
|
+
updateAutoRenewal(paramsOrFirst, ...rest) {
|
|
11934
|
+
let params;
|
|
11935
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
11936
|
+
params = (paramsOrFirst || {});
|
|
11937
|
+
}
|
|
11938
|
+
else {
|
|
11939
|
+
params = {
|
|
11940
|
+
domainId: paramsOrFirst,
|
|
11941
|
+
autoRenewal: rest[0]
|
|
11942
|
+
};
|
|
11943
|
+
}
|
|
11944
|
+
const domainId = params.domainId;
|
|
11945
|
+
const autoRenewal = params.autoRenewal;
|
|
11946
|
+
if (typeof domainId === 'undefined') {
|
|
11947
|
+
throw new AppwriteException('Missing required parameter: "domainId"');
|
|
11948
|
+
}
|
|
11949
|
+
if (typeof autoRenewal === 'undefined') {
|
|
11950
|
+
throw new AppwriteException('Missing required parameter: "autoRenewal"');
|
|
11951
|
+
}
|
|
11952
|
+
const apiPath = '/domains/{domainId}/auto-renewal'.replace('{domainId}', domainId);
|
|
11953
|
+
const payload = {};
|
|
11954
|
+
if (typeof autoRenewal !== 'undefined') {
|
|
11955
|
+
payload['autoRenewal'] = autoRenewal;
|
|
11956
|
+
}
|
|
11957
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11958
|
+
const apiHeaders = {
|
|
11959
|
+
'content-type': 'application/json',
|
|
11960
|
+
};
|
|
11961
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
11962
|
+
}
|
|
11860
11963
|
updateNameservers(paramsOrFirst) {
|
|
11861
11964
|
let params;
|
|
11862
11965
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -20092,15 +20195,27 @@
|
|
|
20092
20195
|
const apiHeaders = {};
|
|
20093
20196
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
20094
20197
|
}
|
|
20095
|
-
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20198
|
+
listVariables(paramsOrFirst, ...rest) {
|
|
20199
|
+
let params;
|
|
20200
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20201
|
+
params = (paramsOrFirst || {});
|
|
20202
|
+
}
|
|
20203
|
+
else {
|
|
20204
|
+
params = {
|
|
20205
|
+
queries: paramsOrFirst,
|
|
20206
|
+
total: rest[0]
|
|
20207
|
+
};
|
|
20208
|
+
}
|
|
20209
|
+
const queries = params.queries;
|
|
20210
|
+
const total = params.total;
|
|
20102
20211
|
const apiPath = '/project/variables';
|
|
20103
20212
|
const payload = {};
|
|
20213
|
+
if (typeof queries !== 'undefined') {
|
|
20214
|
+
payload['queries'] = queries;
|
|
20215
|
+
}
|
|
20216
|
+
if (typeof total !== 'undefined') {
|
|
20217
|
+
payload['total'] = total;
|
|
20218
|
+
}
|
|
20104
20219
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20105
20220
|
const apiHeaders = {};
|
|
20106
20221
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -20112,14 +20227,19 @@
|
|
|
20112
20227
|
}
|
|
20113
20228
|
else {
|
|
20114
20229
|
params = {
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20230
|
+
variableId: paramsOrFirst,
|
|
20231
|
+
key: rest[0],
|
|
20232
|
+
value: rest[1],
|
|
20233
|
+
secret: rest[2]
|
|
20118
20234
|
};
|
|
20119
20235
|
}
|
|
20236
|
+
const variableId = params.variableId;
|
|
20120
20237
|
const key = params.key;
|
|
20121
20238
|
const value = params.value;
|
|
20122
20239
|
const secret = params.secret;
|
|
20240
|
+
if (typeof variableId === 'undefined') {
|
|
20241
|
+
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
20242
|
+
}
|
|
20123
20243
|
if (typeof key === 'undefined') {
|
|
20124
20244
|
throw new AppwriteException('Missing required parameter: "key"');
|
|
20125
20245
|
}
|
|
@@ -20128,6 +20248,9 @@
|
|
|
20128
20248
|
}
|
|
20129
20249
|
const apiPath = '/project/variables';
|
|
20130
20250
|
const payload = {};
|
|
20251
|
+
if (typeof variableId !== 'undefined') {
|
|
20252
|
+
payload['variableId'] = variableId;
|
|
20253
|
+
}
|
|
20131
20254
|
if (typeof key !== 'undefined') {
|
|
20132
20255
|
payload['key'] = key;
|
|
20133
20256
|
}
|
|
@@ -20183,9 +20306,6 @@
|
|
|
20183
20306
|
if (typeof variableId === 'undefined') {
|
|
20184
20307
|
throw new AppwriteException('Missing required parameter: "variableId"');
|
|
20185
20308
|
}
|
|
20186
|
-
if (typeof key === 'undefined') {
|
|
20187
|
-
throw new AppwriteException('Missing required parameter: "key"');
|
|
20188
|
-
}
|
|
20189
20309
|
const apiPath = '/project/variables/{variableId}'.replace('{variableId}', variableId);
|
|
20190
20310
|
const payload = {};
|
|
20191
20311
|
if (typeof key !== 'undefined') {
|
|
@@ -28909,6 +29029,36 @@
|
|
|
28909
29029
|
};
|
|
28910
29030
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
28911
29031
|
}
|
|
29032
|
+
updateImpersonator(paramsOrFirst, ...rest) {
|
|
29033
|
+
let params;
|
|
29034
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
29035
|
+
params = (paramsOrFirst || {});
|
|
29036
|
+
}
|
|
29037
|
+
else {
|
|
29038
|
+
params = {
|
|
29039
|
+
userId: paramsOrFirst,
|
|
29040
|
+
impersonator: rest[0]
|
|
29041
|
+
};
|
|
29042
|
+
}
|
|
29043
|
+
const userId = params.userId;
|
|
29044
|
+
const impersonator = params.impersonator;
|
|
29045
|
+
if (typeof userId === 'undefined') {
|
|
29046
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
29047
|
+
}
|
|
29048
|
+
if (typeof impersonator === 'undefined') {
|
|
29049
|
+
throw new AppwriteException('Missing required parameter: "impersonator"');
|
|
29050
|
+
}
|
|
29051
|
+
const apiPath = '/users/{userId}/impersonator'.replace('{userId}', userId);
|
|
29052
|
+
const payload = {};
|
|
29053
|
+
if (typeof impersonator !== 'undefined') {
|
|
29054
|
+
payload['impersonator'] = impersonator;
|
|
29055
|
+
}
|
|
29056
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
29057
|
+
const apiHeaders = {
|
|
29058
|
+
'content-type': 'application/json',
|
|
29059
|
+
};
|
|
29060
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
29061
|
+
}
|
|
28912
29062
|
createJWT(paramsOrFirst, ...rest) {
|
|
28913
29063
|
let params;
|
|
28914
29064
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -30652,8 +30802,8 @@
|
|
|
30652
30802
|
}
|
|
30653
30803
|
return String(channel);
|
|
30654
30804
|
}
|
|
30655
|
-
subscribe(
|
|
30656
|
-
return __awaiter(this,
|
|
30805
|
+
subscribe(channelsOrChannel_1, callback_1) {
|
|
30806
|
+
return __awaiter(this, arguments, void 0, function* (channelsOrChannel, callback, queries = []) {
|
|
30657
30807
|
const channelArray = Array.isArray(channelsOrChannel)
|
|
30658
30808
|
? channelsOrChannel
|
|
30659
30809
|
: [channelsOrChannel];
|
|
@@ -30973,7 +31123,7 @@
|
|
|
30973
31123
|
*/
|
|
30974
31124
|
static unique(padding = 7) {
|
|
30975
31125
|
// Generate a unique ID with padding to have a longer ID
|
|
30976
|
-
const baseId = __classPrivateFieldGet(
|
|
31126
|
+
const baseId = __classPrivateFieldGet(_a, _a, "m", _ID_hexTimestamp).call(_a);
|
|
30977
31127
|
let randomPadding = '';
|
|
30978
31128
|
for (let i = 0; i < padding; i++) {
|
|
30979
31129
|
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
|
@@ -31367,11 +31517,12 @@
|
|
|
31367
31517
|
|
|
31368
31518
|
exports.Scopes = void 0;
|
|
31369
31519
|
(function (Scopes) {
|
|
31520
|
+
Scopes["Account"] = "account";
|
|
31521
|
+
Scopes["TeamsRead"] = "teams.read";
|
|
31522
|
+
Scopes["TeamsWrite"] = "teams.write";
|
|
31370
31523
|
Scopes["SessionsWrite"] = "sessions.write";
|
|
31371
31524
|
Scopes["UsersRead"] = "users.read";
|
|
31372
31525
|
Scopes["UsersWrite"] = "users.write";
|
|
31373
|
-
Scopes["TeamsRead"] = "teams.read";
|
|
31374
|
-
Scopes["TeamsWrite"] = "teams.write";
|
|
31375
31526
|
Scopes["DatabasesRead"] = "databases.read";
|
|
31376
31527
|
Scopes["DatabasesWrite"] = "databases.write";
|
|
31377
31528
|
Scopes["CollectionsRead"] = "collections.read";
|
|
@@ -31426,6 +31577,8 @@
|
|
|
31426
31577
|
Scopes["TokensWrite"] = "tokens.write";
|
|
31427
31578
|
Scopes["WebhooksRead"] = "webhooks.read";
|
|
31428
31579
|
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
31580
|
+
Scopes["ProjectRead"] = "project.read";
|
|
31581
|
+
Scopes["ProjectWrite"] = "project.write";
|
|
31429
31582
|
Scopes["PoliciesWrite"] = "policies.write";
|
|
31430
31583
|
Scopes["PoliciesRead"] = "policies.read";
|
|
31431
31584
|
Scopes["ArchivesRead"] = "archives.read";
|
|
@@ -31435,6 +31588,14 @@
|
|
|
31435
31588
|
Scopes["DomainsRead"] = "domains.read";
|
|
31436
31589
|
Scopes["DomainsWrite"] = "domains.write";
|
|
31437
31590
|
Scopes["EventsRead"] = "events.read";
|
|
31591
|
+
Scopes["PlatformsRead"] = "platforms.read";
|
|
31592
|
+
Scopes["PlatformsWrite"] = "platforms.write";
|
|
31593
|
+
Scopes["ProjectsRead"] = "projects.read";
|
|
31594
|
+
Scopes["ProjectsWrite"] = "projects.write";
|
|
31595
|
+
Scopes["KeysRead"] = "keys.read";
|
|
31596
|
+
Scopes["KeysWrite"] = "keys.write";
|
|
31597
|
+
Scopes["DevKeysRead"] = "devKeys.read";
|
|
31598
|
+
Scopes["DevKeysWrite"] = "devKeys.write";
|
|
31438
31599
|
})(exports.Scopes || (exports.Scopes = {}));
|
|
31439
31600
|
|
|
31440
31601
|
exports.AuthenticatorType = void 0;
|
|
@@ -32198,6 +32359,9 @@
|
|
|
32198
32359
|
exports.BackupServices = void 0;
|
|
32199
32360
|
(function (BackupServices) {
|
|
32200
32361
|
BackupServices["Databases"] = "databases";
|
|
32362
|
+
BackupServices["Tablesdb"] = "tablesdb";
|
|
32363
|
+
BackupServices["Documentsdb"] = "documentsdb";
|
|
32364
|
+
BackupServices["Vectorsdb"] = "vectorsdb";
|
|
32201
32365
|
BackupServices["Functions"] = "functions";
|
|
32202
32366
|
BackupServices["Storage"] = "storage";
|
|
32203
32367
|
})(exports.BackupServices || (exports.BackupServices = {}));
|
|
@@ -32235,13 +32399,13 @@
|
|
|
32235
32399
|
RelationMutate["SetNull"] = "setNull";
|
|
32236
32400
|
})(exports.RelationMutate || (exports.RelationMutate = {}));
|
|
32237
32401
|
|
|
32238
|
-
exports.
|
|
32239
|
-
(function (
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
})(exports.
|
|
32402
|
+
exports.DatabasesIndexType = void 0;
|
|
32403
|
+
(function (DatabasesIndexType) {
|
|
32404
|
+
DatabasesIndexType["Key"] = "key";
|
|
32405
|
+
DatabasesIndexType["Fulltext"] = "fulltext";
|
|
32406
|
+
DatabasesIndexType["Unique"] = "unique";
|
|
32407
|
+
DatabasesIndexType["Spatial"] = "spatial";
|
|
32408
|
+
})(exports.DatabasesIndexType || (exports.DatabasesIndexType = {}));
|
|
32245
32409
|
|
|
32246
32410
|
exports.OrderBy = void 0;
|
|
32247
32411
|
(function (OrderBy) {
|
|
@@ -32351,92 +32515,6 @@
|
|
|
32351
32515
|
Runtime["Flutter332"] = "flutter-3.32";
|
|
32352
32516
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
32353
32517
|
Runtime["Flutter338"] = "flutter-3.38";
|
|
32354
|
-
Runtime["Node145rc"] = "node-14.5-rc";
|
|
32355
|
-
Runtime["Node160rc"] = "node-16.0-rc";
|
|
32356
|
-
Runtime["Node180rc"] = "node-18.0-rc";
|
|
32357
|
-
Runtime["Node190rc"] = "node-19.0-rc";
|
|
32358
|
-
Runtime["Node200rc"] = "node-20.0-rc";
|
|
32359
|
-
Runtime["Node210rc"] = "node-21.0-rc";
|
|
32360
|
-
Runtime["Node22rc"] = "node-22-rc";
|
|
32361
|
-
Runtime["Node23rc"] = "node-23-rc";
|
|
32362
|
-
Runtime["Node24rc"] = "node-24-rc";
|
|
32363
|
-
Runtime["Node25rc"] = "node-25-rc";
|
|
32364
|
-
Runtime["Php80rc"] = "php-8.0-rc";
|
|
32365
|
-
Runtime["Php81rc"] = "php-8.1-rc";
|
|
32366
|
-
Runtime["Php82rc"] = "php-8.2-rc";
|
|
32367
|
-
Runtime["Php83rc"] = "php-8.3-rc";
|
|
32368
|
-
Runtime["Php84rc"] = "php-8.4-rc";
|
|
32369
|
-
Runtime["Ruby30rc"] = "ruby-3.0-rc";
|
|
32370
|
-
Runtime["Ruby31rc"] = "ruby-3.1-rc";
|
|
32371
|
-
Runtime["Ruby32rc"] = "ruby-3.2-rc";
|
|
32372
|
-
Runtime["Ruby33rc"] = "ruby-3.3-rc";
|
|
32373
|
-
Runtime["Ruby34rc"] = "ruby-3.4-rc";
|
|
32374
|
-
Runtime["Ruby40rc"] = "ruby-4.0-rc";
|
|
32375
|
-
Runtime["Python38rc"] = "python-3.8-rc";
|
|
32376
|
-
Runtime["Python39rc"] = "python-3.9-rc";
|
|
32377
|
-
Runtime["Python310rc"] = "python-3.10-rc";
|
|
32378
|
-
Runtime["Python311rc"] = "python-3.11-rc";
|
|
32379
|
-
Runtime["Python312rc"] = "python-3.12-rc";
|
|
32380
|
-
Runtime["Python313rc"] = "python-3.13-rc";
|
|
32381
|
-
Runtime["Python314rc"] = "python-3.14-rc";
|
|
32382
|
-
Runtime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
32383
|
-
Runtime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
32384
|
-
Runtime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
32385
|
-
Runtime["Deno140rc"] = "deno-1.40-rc";
|
|
32386
|
-
Runtime["Deno146rc"] = "deno-1.46-rc";
|
|
32387
|
-
Runtime["Deno20rc"] = "deno-2.0-rc";
|
|
32388
|
-
Runtime["Deno25rc"] = "deno-2.5-rc";
|
|
32389
|
-
Runtime["Deno26rc"] = "deno-2.6-rc";
|
|
32390
|
-
Runtime["Dart215rc"] = "dart-2.15-rc";
|
|
32391
|
-
Runtime["Dart216rc"] = "dart-2.16-rc";
|
|
32392
|
-
Runtime["Dart217rc"] = "dart-2.17-rc";
|
|
32393
|
-
Runtime["Dart218rc"] = "dart-2.18-rc";
|
|
32394
|
-
Runtime["Dart219rc"] = "dart-2.19-rc";
|
|
32395
|
-
Runtime["Dart30rc"] = "dart-3.0-rc";
|
|
32396
|
-
Runtime["Dart31rc"] = "dart-3.1-rc";
|
|
32397
|
-
Runtime["Dart33rc"] = "dart-3.3-rc";
|
|
32398
|
-
Runtime["Dart35rc"] = "dart-3.5-rc";
|
|
32399
|
-
Runtime["Dart38rc"] = "dart-3.8-rc";
|
|
32400
|
-
Runtime["Dart39rc"] = "dart-3.9-rc";
|
|
32401
|
-
Runtime["Dart310rc"] = "dart-3.10-rc";
|
|
32402
|
-
Runtime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
32403
|
-
Runtime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
32404
|
-
Runtime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
32405
|
-
Runtime["Dotnet10rc"] = "dotnet-10-rc";
|
|
32406
|
-
Runtime["Java80rc"] = "java-8.0-rc";
|
|
32407
|
-
Runtime["Java110rc"] = "java-11.0-rc";
|
|
32408
|
-
Runtime["Java170rc"] = "java-17.0-rc";
|
|
32409
|
-
Runtime["Java180rc"] = "java-18.0-rc";
|
|
32410
|
-
Runtime["Java210rc"] = "java-21.0-rc";
|
|
32411
|
-
Runtime["Java22rc"] = "java-22-rc";
|
|
32412
|
-
Runtime["Java25rc"] = "java-25-rc";
|
|
32413
|
-
Runtime["Swift55rc"] = "swift-5.5-rc";
|
|
32414
|
-
Runtime["Swift58rc"] = "swift-5.8-rc";
|
|
32415
|
-
Runtime["Swift59rc"] = "swift-5.9-rc";
|
|
32416
|
-
Runtime["Swift510rc"] = "swift-5.10-rc";
|
|
32417
|
-
Runtime["Swift62rc"] = "swift-6.2-rc";
|
|
32418
|
-
Runtime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
32419
|
-
Runtime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
32420
|
-
Runtime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
32421
|
-
Runtime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
32422
|
-
Runtime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
32423
|
-
Runtime["Cpp17rc"] = "cpp-17-rc";
|
|
32424
|
-
Runtime["Cpp20rc"] = "cpp-20-rc";
|
|
32425
|
-
Runtime["Bun10rc"] = "bun-1.0-rc";
|
|
32426
|
-
Runtime["Bun11rc"] = "bun-1.1-rc";
|
|
32427
|
-
Runtime["Bun12rc"] = "bun-1.2-rc";
|
|
32428
|
-
Runtime["Bun13rc"] = "bun-1.3-rc";
|
|
32429
|
-
Runtime["Go123rc"] = "go-1.23-rc";
|
|
32430
|
-
Runtime["Go124rc"] = "go-1.24-rc";
|
|
32431
|
-
Runtime["Go125rc"] = "go-1.25-rc";
|
|
32432
|
-
Runtime["Go126rc"] = "go-1.26-rc";
|
|
32433
|
-
Runtime["Static1rc"] = "static-1-rc";
|
|
32434
|
-
Runtime["Flutter324rc"] = "flutter-3.24-rc";
|
|
32435
|
-
Runtime["Flutter327rc"] = "flutter-3.27-rc";
|
|
32436
|
-
Runtime["Flutter329rc"] = "flutter-3.29-rc";
|
|
32437
|
-
Runtime["Flutter332rc"] = "flutter-3.32-rc";
|
|
32438
|
-
Runtime["Flutter335rc"] = "flutter-3.35-rc";
|
|
32439
|
-
Runtime["Flutter338rc"] = "flutter-3.38-rc";
|
|
32440
32518
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
32441
32519
|
|
|
32442
32520
|
exports.Runtimes = void 0;
|
|
@@ -32527,111 +32605,30 @@
|
|
|
32527
32605
|
Runtimes["Flutter332"] = "flutter-3.32";
|
|
32528
32606
|
Runtimes["Flutter335"] = "flutter-3.35";
|
|
32529
32607
|
Runtimes["Flutter338"] = "flutter-3.38";
|
|
32530
|
-
Runtimes["Node145rc"] = "node-14.5-rc";
|
|
32531
|
-
Runtimes["Node160rc"] = "node-16.0-rc";
|
|
32532
|
-
Runtimes["Node180rc"] = "node-18.0-rc";
|
|
32533
|
-
Runtimes["Node190rc"] = "node-19.0-rc";
|
|
32534
|
-
Runtimes["Node200rc"] = "node-20.0-rc";
|
|
32535
|
-
Runtimes["Node210rc"] = "node-21.0-rc";
|
|
32536
|
-
Runtimes["Node22rc"] = "node-22-rc";
|
|
32537
|
-
Runtimes["Node23rc"] = "node-23-rc";
|
|
32538
|
-
Runtimes["Node24rc"] = "node-24-rc";
|
|
32539
|
-
Runtimes["Node25rc"] = "node-25-rc";
|
|
32540
|
-
Runtimes["Php80rc"] = "php-8.0-rc";
|
|
32541
|
-
Runtimes["Php81rc"] = "php-8.1-rc";
|
|
32542
|
-
Runtimes["Php82rc"] = "php-8.2-rc";
|
|
32543
|
-
Runtimes["Php83rc"] = "php-8.3-rc";
|
|
32544
|
-
Runtimes["Php84rc"] = "php-8.4-rc";
|
|
32545
|
-
Runtimes["Ruby30rc"] = "ruby-3.0-rc";
|
|
32546
|
-
Runtimes["Ruby31rc"] = "ruby-3.1-rc";
|
|
32547
|
-
Runtimes["Ruby32rc"] = "ruby-3.2-rc";
|
|
32548
|
-
Runtimes["Ruby33rc"] = "ruby-3.3-rc";
|
|
32549
|
-
Runtimes["Ruby34rc"] = "ruby-3.4-rc";
|
|
32550
|
-
Runtimes["Ruby40rc"] = "ruby-4.0-rc";
|
|
32551
|
-
Runtimes["Python38rc"] = "python-3.8-rc";
|
|
32552
|
-
Runtimes["Python39rc"] = "python-3.9-rc";
|
|
32553
|
-
Runtimes["Python310rc"] = "python-3.10-rc";
|
|
32554
|
-
Runtimes["Python311rc"] = "python-3.11-rc";
|
|
32555
|
-
Runtimes["Python312rc"] = "python-3.12-rc";
|
|
32556
|
-
Runtimes["Python313rc"] = "python-3.13-rc";
|
|
32557
|
-
Runtimes["Python314rc"] = "python-3.14-rc";
|
|
32558
|
-
Runtimes["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
32559
|
-
Runtimes["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
32560
|
-
Runtimes["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
32561
|
-
Runtimes["Deno140rc"] = "deno-1.40-rc";
|
|
32562
|
-
Runtimes["Deno146rc"] = "deno-1.46-rc";
|
|
32563
|
-
Runtimes["Deno20rc"] = "deno-2.0-rc";
|
|
32564
|
-
Runtimes["Deno25rc"] = "deno-2.5-rc";
|
|
32565
|
-
Runtimes["Deno26rc"] = "deno-2.6-rc";
|
|
32566
|
-
Runtimes["Dart215rc"] = "dart-2.15-rc";
|
|
32567
|
-
Runtimes["Dart216rc"] = "dart-2.16-rc";
|
|
32568
|
-
Runtimes["Dart217rc"] = "dart-2.17-rc";
|
|
32569
|
-
Runtimes["Dart218rc"] = "dart-2.18-rc";
|
|
32570
|
-
Runtimes["Dart219rc"] = "dart-2.19-rc";
|
|
32571
|
-
Runtimes["Dart30rc"] = "dart-3.0-rc";
|
|
32572
|
-
Runtimes["Dart31rc"] = "dart-3.1-rc";
|
|
32573
|
-
Runtimes["Dart33rc"] = "dart-3.3-rc";
|
|
32574
|
-
Runtimes["Dart35rc"] = "dart-3.5-rc";
|
|
32575
|
-
Runtimes["Dart38rc"] = "dart-3.8-rc";
|
|
32576
|
-
Runtimes["Dart39rc"] = "dart-3.9-rc";
|
|
32577
|
-
Runtimes["Dart310rc"] = "dart-3.10-rc";
|
|
32578
|
-
Runtimes["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
32579
|
-
Runtimes["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
32580
|
-
Runtimes["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
32581
|
-
Runtimes["Dotnet10rc"] = "dotnet-10-rc";
|
|
32582
|
-
Runtimes["Java80rc"] = "java-8.0-rc";
|
|
32583
|
-
Runtimes["Java110rc"] = "java-11.0-rc";
|
|
32584
|
-
Runtimes["Java170rc"] = "java-17.0-rc";
|
|
32585
|
-
Runtimes["Java180rc"] = "java-18.0-rc";
|
|
32586
|
-
Runtimes["Java210rc"] = "java-21.0-rc";
|
|
32587
|
-
Runtimes["Java22rc"] = "java-22-rc";
|
|
32588
|
-
Runtimes["Java25rc"] = "java-25-rc";
|
|
32589
|
-
Runtimes["Swift55rc"] = "swift-5.5-rc";
|
|
32590
|
-
Runtimes["Swift58rc"] = "swift-5.8-rc";
|
|
32591
|
-
Runtimes["Swift59rc"] = "swift-5.9-rc";
|
|
32592
|
-
Runtimes["Swift510rc"] = "swift-5.10-rc";
|
|
32593
|
-
Runtimes["Swift62rc"] = "swift-6.2-rc";
|
|
32594
|
-
Runtimes["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
32595
|
-
Runtimes["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
32596
|
-
Runtimes["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
32597
|
-
Runtimes["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
32598
|
-
Runtimes["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
32599
|
-
Runtimes["Cpp17rc"] = "cpp-17-rc";
|
|
32600
|
-
Runtimes["Cpp20rc"] = "cpp-20-rc";
|
|
32601
|
-
Runtimes["Bun10rc"] = "bun-1.0-rc";
|
|
32602
|
-
Runtimes["Bun11rc"] = "bun-1.1-rc";
|
|
32603
|
-
Runtimes["Bun12rc"] = "bun-1.2-rc";
|
|
32604
|
-
Runtimes["Bun13rc"] = "bun-1.3-rc";
|
|
32605
|
-
Runtimes["Go123rc"] = "go-1.23-rc";
|
|
32606
|
-
Runtimes["Go124rc"] = "go-1.24-rc";
|
|
32607
|
-
Runtimes["Go125rc"] = "go-1.25-rc";
|
|
32608
|
-
Runtimes["Go126rc"] = "go-1.26-rc";
|
|
32609
|
-
Runtimes["Static1rc"] = "static-1-rc";
|
|
32610
|
-
Runtimes["Flutter324rc"] = "flutter-3.24-rc";
|
|
32611
|
-
Runtimes["Flutter327rc"] = "flutter-3.27-rc";
|
|
32612
|
-
Runtimes["Flutter329rc"] = "flutter-3.29-rc";
|
|
32613
|
-
Runtimes["Flutter332rc"] = "flutter-3.32-rc";
|
|
32614
|
-
Runtimes["Flutter335rc"] = "flutter-3.35-rc";
|
|
32615
|
-
Runtimes["Flutter338rc"] = "flutter-3.38-rc";
|
|
32616
32608
|
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
32617
32609
|
|
|
32618
32610
|
exports.UseCases = void 0;
|
|
32619
32611
|
(function (UseCases) {
|
|
32620
|
-
UseCases["Portfolio"] = "portfolio";
|
|
32621
32612
|
UseCases["Starter"] = "starter";
|
|
32613
|
+
UseCases["Databases"] = "databases";
|
|
32614
|
+
UseCases["Ai"] = "ai";
|
|
32615
|
+
UseCases["Messaging"] = "messaging";
|
|
32616
|
+
UseCases["Utilities"] = "utilities";
|
|
32617
|
+
UseCases["Devtools"] = "dev-tools";
|
|
32618
|
+
UseCases["Auth"] = "auth";
|
|
32619
|
+
UseCases["Portfolio"] = "portfolio";
|
|
32622
32620
|
UseCases["Events"] = "events";
|
|
32623
32621
|
UseCases["Ecommerce"] = "ecommerce";
|
|
32624
32622
|
UseCases["Documentation"] = "documentation";
|
|
32625
32623
|
UseCases["Blog"] = "blog";
|
|
32626
|
-
UseCases["Ai"] = "ai";
|
|
32627
32624
|
UseCases["Forms"] = "forms";
|
|
32628
32625
|
UseCases["Dashboard"] = "dashboard";
|
|
32629
32626
|
})(exports.UseCases || (exports.UseCases = {}));
|
|
32630
32627
|
|
|
32631
32628
|
exports.TemplateReferenceType = void 0;
|
|
32632
32629
|
(function (TemplateReferenceType) {
|
|
32633
|
-
TemplateReferenceType["Branch"] = "branch";
|
|
32634
32630
|
TemplateReferenceType["Commit"] = "commit";
|
|
32631
|
+
TemplateReferenceType["Branch"] = "branch";
|
|
32635
32632
|
TemplateReferenceType["Tag"] = "tag";
|
|
32636
32633
|
})(exports.TemplateReferenceType || (exports.TemplateReferenceType = {}));
|
|
32637
32634
|
|
|
@@ -32702,6 +32699,8 @@
|
|
|
32702
32699
|
AppwriteMigrationResource["Document"] = "document";
|
|
32703
32700
|
AppwriteMigrationResource["Attribute"] = "attribute";
|
|
32704
32701
|
AppwriteMigrationResource["Collection"] = "collection";
|
|
32702
|
+
AppwriteMigrationResource["Documentsdb"] = "documentsdb";
|
|
32703
|
+
AppwriteMigrationResource["Vectorsdb"] = "vectorsdb";
|
|
32705
32704
|
AppwriteMigrationResource["Bucket"] = "bucket";
|
|
32706
32705
|
AppwriteMigrationResource["File"] = "file";
|
|
32707
32706
|
AppwriteMigrationResource["Function"] = "function";
|
|
@@ -33259,92 +33258,6 @@
|
|
|
33259
33258
|
BuildRuntime["Flutter332"] = "flutter-3.32";
|
|
33260
33259
|
BuildRuntime["Flutter335"] = "flutter-3.35";
|
|
33261
33260
|
BuildRuntime["Flutter338"] = "flutter-3.38";
|
|
33262
|
-
BuildRuntime["Node145rc"] = "node-14.5-rc";
|
|
33263
|
-
BuildRuntime["Node160rc"] = "node-16.0-rc";
|
|
33264
|
-
BuildRuntime["Node180rc"] = "node-18.0-rc";
|
|
33265
|
-
BuildRuntime["Node190rc"] = "node-19.0-rc";
|
|
33266
|
-
BuildRuntime["Node200rc"] = "node-20.0-rc";
|
|
33267
|
-
BuildRuntime["Node210rc"] = "node-21.0-rc";
|
|
33268
|
-
BuildRuntime["Node22rc"] = "node-22-rc";
|
|
33269
|
-
BuildRuntime["Node23rc"] = "node-23-rc";
|
|
33270
|
-
BuildRuntime["Node24rc"] = "node-24-rc";
|
|
33271
|
-
BuildRuntime["Node25rc"] = "node-25-rc";
|
|
33272
|
-
BuildRuntime["Php80rc"] = "php-8.0-rc";
|
|
33273
|
-
BuildRuntime["Php81rc"] = "php-8.1-rc";
|
|
33274
|
-
BuildRuntime["Php82rc"] = "php-8.2-rc";
|
|
33275
|
-
BuildRuntime["Php83rc"] = "php-8.3-rc";
|
|
33276
|
-
BuildRuntime["Php84rc"] = "php-8.4-rc";
|
|
33277
|
-
BuildRuntime["Ruby30rc"] = "ruby-3.0-rc";
|
|
33278
|
-
BuildRuntime["Ruby31rc"] = "ruby-3.1-rc";
|
|
33279
|
-
BuildRuntime["Ruby32rc"] = "ruby-3.2-rc";
|
|
33280
|
-
BuildRuntime["Ruby33rc"] = "ruby-3.3-rc";
|
|
33281
|
-
BuildRuntime["Ruby34rc"] = "ruby-3.4-rc";
|
|
33282
|
-
BuildRuntime["Ruby40rc"] = "ruby-4.0-rc";
|
|
33283
|
-
BuildRuntime["Python38rc"] = "python-3.8-rc";
|
|
33284
|
-
BuildRuntime["Python39rc"] = "python-3.9-rc";
|
|
33285
|
-
BuildRuntime["Python310rc"] = "python-3.10-rc";
|
|
33286
|
-
BuildRuntime["Python311rc"] = "python-3.11-rc";
|
|
33287
|
-
BuildRuntime["Python312rc"] = "python-3.12-rc";
|
|
33288
|
-
BuildRuntime["Python313rc"] = "python-3.13-rc";
|
|
33289
|
-
BuildRuntime["Python314rc"] = "python-3.14-rc";
|
|
33290
|
-
BuildRuntime["Pythonml311rc"] = "python-ml-3.11-rc";
|
|
33291
|
-
BuildRuntime["Pythonml312rc"] = "python-ml-3.12-rc";
|
|
33292
|
-
BuildRuntime["Pythonml313rc"] = "python-ml-3.13-rc";
|
|
33293
|
-
BuildRuntime["Deno140rc"] = "deno-1.40-rc";
|
|
33294
|
-
BuildRuntime["Deno146rc"] = "deno-1.46-rc";
|
|
33295
|
-
BuildRuntime["Deno20rc"] = "deno-2.0-rc";
|
|
33296
|
-
BuildRuntime["Deno25rc"] = "deno-2.5-rc";
|
|
33297
|
-
BuildRuntime["Deno26rc"] = "deno-2.6-rc";
|
|
33298
|
-
BuildRuntime["Dart215rc"] = "dart-2.15-rc";
|
|
33299
|
-
BuildRuntime["Dart216rc"] = "dart-2.16-rc";
|
|
33300
|
-
BuildRuntime["Dart217rc"] = "dart-2.17-rc";
|
|
33301
|
-
BuildRuntime["Dart218rc"] = "dart-2.18-rc";
|
|
33302
|
-
BuildRuntime["Dart219rc"] = "dart-2.19-rc";
|
|
33303
|
-
BuildRuntime["Dart30rc"] = "dart-3.0-rc";
|
|
33304
|
-
BuildRuntime["Dart31rc"] = "dart-3.1-rc";
|
|
33305
|
-
BuildRuntime["Dart33rc"] = "dart-3.3-rc";
|
|
33306
|
-
BuildRuntime["Dart35rc"] = "dart-3.5-rc";
|
|
33307
|
-
BuildRuntime["Dart38rc"] = "dart-3.8-rc";
|
|
33308
|
-
BuildRuntime["Dart39rc"] = "dart-3.9-rc";
|
|
33309
|
-
BuildRuntime["Dart310rc"] = "dart-3.10-rc";
|
|
33310
|
-
BuildRuntime["Dotnet60rc"] = "dotnet-6.0-rc";
|
|
33311
|
-
BuildRuntime["Dotnet70rc"] = "dotnet-7.0-rc";
|
|
33312
|
-
BuildRuntime["Dotnet80rc"] = "dotnet-8.0-rc";
|
|
33313
|
-
BuildRuntime["Dotnet10rc"] = "dotnet-10-rc";
|
|
33314
|
-
BuildRuntime["Java80rc"] = "java-8.0-rc";
|
|
33315
|
-
BuildRuntime["Java110rc"] = "java-11.0-rc";
|
|
33316
|
-
BuildRuntime["Java170rc"] = "java-17.0-rc";
|
|
33317
|
-
BuildRuntime["Java180rc"] = "java-18.0-rc";
|
|
33318
|
-
BuildRuntime["Java210rc"] = "java-21.0-rc";
|
|
33319
|
-
BuildRuntime["Java22rc"] = "java-22-rc";
|
|
33320
|
-
BuildRuntime["Java25rc"] = "java-25-rc";
|
|
33321
|
-
BuildRuntime["Swift55rc"] = "swift-5.5-rc";
|
|
33322
|
-
BuildRuntime["Swift58rc"] = "swift-5.8-rc";
|
|
33323
|
-
BuildRuntime["Swift59rc"] = "swift-5.9-rc";
|
|
33324
|
-
BuildRuntime["Swift510rc"] = "swift-5.10-rc";
|
|
33325
|
-
BuildRuntime["Swift62rc"] = "swift-6.2-rc";
|
|
33326
|
-
BuildRuntime["Kotlin16rc"] = "kotlin-1.6-rc";
|
|
33327
|
-
BuildRuntime["Kotlin18rc"] = "kotlin-1.8-rc";
|
|
33328
|
-
BuildRuntime["Kotlin19rc"] = "kotlin-1.9-rc";
|
|
33329
|
-
BuildRuntime["Kotlin20rc"] = "kotlin-2.0-rc";
|
|
33330
|
-
BuildRuntime["Kotlin23rc"] = "kotlin-2.3-rc";
|
|
33331
|
-
BuildRuntime["Cpp17rc"] = "cpp-17-rc";
|
|
33332
|
-
BuildRuntime["Cpp20rc"] = "cpp-20-rc";
|
|
33333
|
-
BuildRuntime["Bun10rc"] = "bun-1.0-rc";
|
|
33334
|
-
BuildRuntime["Bun11rc"] = "bun-1.1-rc";
|
|
33335
|
-
BuildRuntime["Bun12rc"] = "bun-1.2-rc";
|
|
33336
|
-
BuildRuntime["Bun13rc"] = "bun-1.3-rc";
|
|
33337
|
-
BuildRuntime["Go123rc"] = "go-1.23-rc";
|
|
33338
|
-
BuildRuntime["Go124rc"] = "go-1.24-rc";
|
|
33339
|
-
BuildRuntime["Go125rc"] = "go-1.25-rc";
|
|
33340
|
-
BuildRuntime["Go126rc"] = "go-1.26-rc";
|
|
33341
|
-
BuildRuntime["Static1rc"] = "static-1-rc";
|
|
33342
|
-
BuildRuntime["Flutter324rc"] = "flutter-3.24-rc";
|
|
33343
|
-
BuildRuntime["Flutter327rc"] = "flutter-3.27-rc";
|
|
33344
|
-
BuildRuntime["Flutter329rc"] = "flutter-3.29-rc";
|
|
33345
|
-
BuildRuntime["Flutter332rc"] = "flutter-3.32-rc";
|
|
33346
|
-
BuildRuntime["Flutter335rc"] = "flutter-3.35-rc";
|
|
33347
|
-
BuildRuntime["Flutter338rc"] = "flutter-3.38-rc";
|
|
33348
33261
|
})(exports.BuildRuntime || (exports.BuildRuntime = {}));
|
|
33349
33262
|
|
|
33350
33263
|
exports.Adapter = void 0;
|
|
@@ -33392,6 +33305,14 @@
|
|
|
33392
33305
|
ImageGravity["Bottomright"] = "bottom-right";
|
|
33393
33306
|
})(exports.ImageGravity || (exports.ImageGravity = {}));
|
|
33394
33307
|
|
|
33308
|
+
exports.TablesDBIndexType = void 0;
|
|
33309
|
+
(function (TablesDBIndexType) {
|
|
33310
|
+
TablesDBIndexType["Key"] = "key";
|
|
33311
|
+
TablesDBIndexType["Fulltext"] = "fulltext";
|
|
33312
|
+
TablesDBIndexType["Unique"] = "unique";
|
|
33313
|
+
TablesDBIndexType["Spatial"] = "spatial";
|
|
33314
|
+
})(exports.TablesDBIndexType || (exports.TablesDBIndexType = {}));
|
|
33315
|
+
|
|
33395
33316
|
exports.PasswordHash = void 0;
|
|
33396
33317
|
(function (PasswordHash) {
|
|
33397
33318
|
PasswordHash["Sha1"] = "sha1";
|
|
@@ -33424,6 +33345,8 @@
|
|
|
33424
33345
|
(function (DatabaseType) {
|
|
33425
33346
|
DatabaseType["Legacy"] = "legacy";
|
|
33426
33347
|
DatabaseType["Tablesdb"] = "tablesdb";
|
|
33348
|
+
DatabaseType["Documentsdb"] = "documentsdb";
|
|
33349
|
+
DatabaseType["Vectorsdb"] = "vectorsdb";
|
|
33427
33350
|
})(exports.DatabaseType || (exports.DatabaseType = {}));
|
|
33428
33351
|
|
|
33429
33352
|
exports.AttributeStatus = void 0;
|
|
@@ -33578,6 +33501,4 @@
|
|
|
33578
33501
|
exports.Vcs = Vcs;
|
|
33579
33502
|
exports.Webhooks = Webhooks;
|
|
33580
33503
|
|
|
33581
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
33582
|
-
|
|
33583
33504
|
})(this.Appwrite = this.Appwrite || {});
|