@appwrite.io/console 2.3.1 → 3.1.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 +19 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +330 -14
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +331 -14
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +383 -47
- package/docs/examples/domains/create-purchase.md +25 -0
- package/docs/examples/organizations/get-scopes.md +2 -1
- package/docs/examples/projects/create-schedule.md +20 -0
- package/docs/examples/projects/get-schedule.md +16 -0
- package/docs/examples/projects/list-schedules.md +17 -0
- package/package.json +2 -3
- package/src/channel.ts +4 -0
- package/src/client.ts +17 -4
- package/src/enums/build-runtime.ts +20 -0
- package/src/enums/email-template-type.ts +4 -4
- package/src/enums/o-auth-provider.ts +0 -2
- package/src/enums/resource-type.ts +6 -0
- package/src/enums/runtime.ts +20 -0
- package/src/enums/runtimes.ts +20 -0
- package/src/enums/scopes.ts +2 -0
- package/src/enums/sms-template-type.ts +1 -1
- package/src/index.ts +2 -0
- package/src/models.ts +73 -5
- package/src/query.ts +26 -0
- package/src/services/account.ts +4 -4
- package/src/services/domains.ts +147 -0
- package/src/services/organizations.ts +14 -6
- package/src/services/projects.ts +223 -0
- package/types/channel.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +20 -0
- package/types/enums/email-template-type.d.ts +4 -4
- package/types/enums/o-auth-provider.d.ts +1 -3
- package/types/enums/resource-type.d.ts +6 -0
- package/types/enums/runtime.d.ts +20 -0
- package/types/enums/runtimes.d.ts +20 -0
- package/types/enums/scopes.d.ts +2 -0
- package/types/enums/sms-template-type.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/models.d.ts +71 -5
- package/types/query.d.ts +22 -0
- package/types/services/account.d.ts +4 -4
- package/types/services/domains.d.ts +49 -0
- package/types/services/organizations.d.ts +4 -1
- package/types/services/projects.d.ts +82 -0
package/dist/esm/sdk.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import JSONbigModule from 'json-bigint';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
2
|
|
|
4
3
|
/******************************************************************************
|
|
5
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -244,12 +243,34 @@ Query.limit = (limit) => new Query("limit", undefined, limit).toString();
|
|
|
244
243
|
Query.offset = (offset) => new Query("offset", undefined, offset).toString();
|
|
245
244
|
/**
|
|
246
245
|
* Filter resources where attribute contains the specified value.
|
|
246
|
+
* For string attributes, checks if the string contains the substring.
|
|
247
247
|
*
|
|
248
|
+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
248
249
|
* @param {string} attribute
|
|
249
250
|
* @param {string | string[]} value
|
|
250
251
|
* @returns {string}
|
|
251
252
|
*/
|
|
252
253
|
Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
|
|
254
|
+
/**
|
|
255
|
+
* Filter resources where attribute contains ANY of the specified values.
|
|
256
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
257
|
+
* contains at least one of the given values.
|
|
258
|
+
*
|
|
259
|
+
* @param {string} attribute
|
|
260
|
+
* @param {any[]} value
|
|
261
|
+
* @returns {string}
|
|
262
|
+
*/
|
|
263
|
+
Query.containsAny = (attribute, value) => new Query("containsAny", attribute, value).toString();
|
|
264
|
+
/**
|
|
265
|
+
* Filter resources where attribute contains ALL of the specified values.
|
|
266
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
267
|
+
* contains every one of the given values.
|
|
268
|
+
*
|
|
269
|
+
* @param {string} attribute
|
|
270
|
+
* @param {any[]} value
|
|
271
|
+
* @returns {string}
|
|
272
|
+
*/
|
|
273
|
+
Query.containsAll = (attribute, value) => new Query("containsAll", attribute, value).toString();
|
|
253
274
|
/**
|
|
254
275
|
* Filter resources where attribute does not contain the specified value.
|
|
255
276
|
*
|
|
@@ -467,15 +488,28 @@ const JSONbigParser = JSONbigModule({ storeAsString: false });
|
|
|
467
488
|
const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
|
|
468
489
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
469
490
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
491
|
+
const MAX_INT64 = BigInt('9223372036854775807');
|
|
492
|
+
const MIN_INT64 = BigInt('-9223372036854775808');
|
|
493
|
+
function isBigNumber(value) {
|
|
494
|
+
return value !== null
|
|
495
|
+
&& typeof value === 'object'
|
|
496
|
+
&& value._isBigNumber === true
|
|
497
|
+
&& typeof value.isInteger === 'function'
|
|
498
|
+
&& typeof value.toFixed === 'function'
|
|
499
|
+
&& typeof value.toNumber === 'function';
|
|
500
|
+
}
|
|
470
501
|
function reviver(_key, value) {
|
|
471
|
-
if (
|
|
502
|
+
if (isBigNumber(value)) {
|
|
472
503
|
if (value.isInteger()) {
|
|
473
504
|
const str = value.toFixed();
|
|
474
505
|
const bi = BigInt(str);
|
|
475
506
|
if (bi >= MIN_SAFE && bi <= MAX_SAFE) {
|
|
476
507
|
return Number(str);
|
|
477
508
|
}
|
|
478
|
-
|
|
509
|
+
if (bi >= MIN_INT64 && bi <= MAX_INT64) {
|
|
510
|
+
return bi;
|
|
511
|
+
}
|
|
512
|
+
return value.toNumber();
|
|
479
513
|
}
|
|
480
514
|
return value.toNumber();
|
|
481
515
|
}
|
|
@@ -534,7 +568,7 @@ class Client {
|
|
|
534
568
|
'x-sdk-name': 'Console',
|
|
535
569
|
'x-sdk-platform': 'console',
|
|
536
570
|
'x-sdk-language': 'web',
|
|
537
|
-
'x-sdk-version': '
|
|
571
|
+
'x-sdk-version': '3.1.0',
|
|
538
572
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
539
573
|
};
|
|
540
574
|
this.realtime = {
|
|
@@ -7723,6 +7757,102 @@ class Domains {
|
|
|
7723
7757
|
const apiHeaders = {};
|
|
7724
7758
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
7725
7759
|
}
|
|
7760
|
+
createPurchase(paramsOrFirst, ...rest) {
|
|
7761
|
+
let params;
|
|
7762
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
7763
|
+
params = (paramsOrFirst || {});
|
|
7764
|
+
}
|
|
7765
|
+
else {
|
|
7766
|
+
params = {
|
|
7767
|
+
domain: paramsOrFirst,
|
|
7768
|
+
teamId: rest[0],
|
|
7769
|
+
firstName: rest[1],
|
|
7770
|
+
lastName: rest[2],
|
|
7771
|
+
email: rest[3],
|
|
7772
|
+
phone: rest[4],
|
|
7773
|
+
billingAddressId: rest[5],
|
|
7774
|
+
paymentMethodId: rest[6],
|
|
7775
|
+
addressLine3: rest[7],
|
|
7776
|
+
companyName: rest[8],
|
|
7777
|
+
periodYears: rest[9]
|
|
7778
|
+
};
|
|
7779
|
+
}
|
|
7780
|
+
const domain = params.domain;
|
|
7781
|
+
const teamId = params.teamId;
|
|
7782
|
+
const firstName = params.firstName;
|
|
7783
|
+
const lastName = params.lastName;
|
|
7784
|
+
const email = params.email;
|
|
7785
|
+
const phone = params.phone;
|
|
7786
|
+
const billingAddressId = params.billingAddressId;
|
|
7787
|
+
const paymentMethodId = params.paymentMethodId;
|
|
7788
|
+
const addressLine3 = params.addressLine3;
|
|
7789
|
+
const companyName = params.companyName;
|
|
7790
|
+
const periodYears = params.periodYears;
|
|
7791
|
+
if (typeof domain === 'undefined') {
|
|
7792
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
7793
|
+
}
|
|
7794
|
+
if (typeof teamId === 'undefined') {
|
|
7795
|
+
throw new AppwriteException('Missing required parameter: "teamId"');
|
|
7796
|
+
}
|
|
7797
|
+
if (typeof firstName === 'undefined') {
|
|
7798
|
+
throw new AppwriteException('Missing required parameter: "firstName"');
|
|
7799
|
+
}
|
|
7800
|
+
if (typeof lastName === 'undefined') {
|
|
7801
|
+
throw new AppwriteException('Missing required parameter: "lastName"');
|
|
7802
|
+
}
|
|
7803
|
+
if (typeof email === 'undefined') {
|
|
7804
|
+
throw new AppwriteException('Missing required parameter: "email"');
|
|
7805
|
+
}
|
|
7806
|
+
if (typeof phone === 'undefined') {
|
|
7807
|
+
throw new AppwriteException('Missing required parameter: "phone"');
|
|
7808
|
+
}
|
|
7809
|
+
if (typeof billingAddressId === 'undefined') {
|
|
7810
|
+
throw new AppwriteException('Missing required parameter: "billingAddressId"');
|
|
7811
|
+
}
|
|
7812
|
+
if (typeof paymentMethodId === 'undefined') {
|
|
7813
|
+
throw new AppwriteException('Missing required parameter: "paymentMethodId"');
|
|
7814
|
+
}
|
|
7815
|
+
const apiPath = '/domains/purchases';
|
|
7816
|
+
const payload = {};
|
|
7817
|
+
if (typeof domain !== 'undefined') {
|
|
7818
|
+
payload['domain'] = domain;
|
|
7819
|
+
}
|
|
7820
|
+
if (typeof teamId !== 'undefined') {
|
|
7821
|
+
payload['teamId'] = teamId;
|
|
7822
|
+
}
|
|
7823
|
+
if (typeof firstName !== 'undefined') {
|
|
7824
|
+
payload['firstName'] = firstName;
|
|
7825
|
+
}
|
|
7826
|
+
if (typeof lastName !== 'undefined') {
|
|
7827
|
+
payload['lastName'] = lastName;
|
|
7828
|
+
}
|
|
7829
|
+
if (typeof email !== 'undefined') {
|
|
7830
|
+
payload['email'] = email;
|
|
7831
|
+
}
|
|
7832
|
+
if (typeof phone !== 'undefined') {
|
|
7833
|
+
payload['phone'] = phone;
|
|
7834
|
+
}
|
|
7835
|
+
if (typeof billingAddressId !== 'undefined') {
|
|
7836
|
+
payload['billingAddressId'] = billingAddressId;
|
|
7837
|
+
}
|
|
7838
|
+
if (typeof addressLine3 !== 'undefined') {
|
|
7839
|
+
payload['addressLine3'] = addressLine3;
|
|
7840
|
+
}
|
|
7841
|
+
if (typeof companyName !== 'undefined') {
|
|
7842
|
+
payload['companyName'] = companyName;
|
|
7843
|
+
}
|
|
7844
|
+
if (typeof periodYears !== 'undefined') {
|
|
7845
|
+
payload['periodYears'] = periodYears;
|
|
7846
|
+
}
|
|
7847
|
+
if (typeof paymentMethodId !== 'undefined') {
|
|
7848
|
+
payload['paymentMethodId'] = paymentMethodId;
|
|
7849
|
+
}
|
|
7850
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7851
|
+
const apiHeaders = {
|
|
7852
|
+
'content-type': 'application/json',
|
|
7853
|
+
};
|
|
7854
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
7855
|
+
}
|
|
7726
7856
|
listSuggestions(paramsOrFirst, ...rest) {
|
|
7727
7857
|
let params;
|
|
7728
7858
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -15829,22 +15959,27 @@ class Organizations {
|
|
|
15829
15959
|
const apiHeaders = {};
|
|
15830
15960
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
15831
15961
|
}
|
|
15832
|
-
getScopes(paramsOrFirst) {
|
|
15962
|
+
getScopes(paramsOrFirst, ...rest) {
|
|
15833
15963
|
let params;
|
|
15834
15964
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
15835
15965
|
params = (paramsOrFirst || {});
|
|
15836
15966
|
}
|
|
15837
15967
|
else {
|
|
15838
15968
|
params = {
|
|
15839
|
-
organizationId: paramsOrFirst
|
|
15969
|
+
organizationId: paramsOrFirst,
|
|
15970
|
+
projectId: rest[0]
|
|
15840
15971
|
};
|
|
15841
15972
|
}
|
|
15842
15973
|
const organizationId = params.organizationId;
|
|
15974
|
+
const projectId = params.projectId;
|
|
15843
15975
|
if (typeof organizationId === 'undefined') {
|
|
15844
15976
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
15845
15977
|
}
|
|
15846
15978
|
const apiPath = '/organizations/{organizationId}/roles'.replace('{organizationId}', organizationId);
|
|
15847
15979
|
const payload = {};
|
|
15980
|
+
if (typeof projectId !== 'undefined') {
|
|
15981
|
+
payload['projectId'] = projectId;
|
|
15982
|
+
}
|
|
15848
15983
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
15849
15984
|
const apiHeaders = {};
|
|
15850
15985
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
@@ -17468,6 +17603,117 @@ class Projects {
|
|
|
17468
17603
|
};
|
|
17469
17604
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
17470
17605
|
}
|
|
17606
|
+
listSchedules(paramsOrFirst, ...rest) {
|
|
17607
|
+
let params;
|
|
17608
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17609
|
+
params = (paramsOrFirst || {});
|
|
17610
|
+
}
|
|
17611
|
+
else {
|
|
17612
|
+
params = {
|
|
17613
|
+
projectId: paramsOrFirst,
|
|
17614
|
+
queries: rest[0],
|
|
17615
|
+
total: rest[1]
|
|
17616
|
+
};
|
|
17617
|
+
}
|
|
17618
|
+
const projectId = params.projectId;
|
|
17619
|
+
const queries = params.queries;
|
|
17620
|
+
const total = params.total;
|
|
17621
|
+
if (typeof projectId === 'undefined') {
|
|
17622
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
17623
|
+
}
|
|
17624
|
+
const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
|
|
17625
|
+
const payload = {};
|
|
17626
|
+
if (typeof queries !== 'undefined') {
|
|
17627
|
+
payload['queries'] = queries;
|
|
17628
|
+
}
|
|
17629
|
+
if (typeof total !== 'undefined') {
|
|
17630
|
+
payload['total'] = total;
|
|
17631
|
+
}
|
|
17632
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
17633
|
+
const apiHeaders = {};
|
|
17634
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
17635
|
+
}
|
|
17636
|
+
createSchedule(paramsOrFirst, ...rest) {
|
|
17637
|
+
let params;
|
|
17638
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17639
|
+
params = (paramsOrFirst || {});
|
|
17640
|
+
}
|
|
17641
|
+
else {
|
|
17642
|
+
params = {
|
|
17643
|
+
projectId: paramsOrFirst,
|
|
17644
|
+
resourceType: rest[0],
|
|
17645
|
+
resourceId: rest[1],
|
|
17646
|
+
schedule: rest[2],
|
|
17647
|
+
active: rest[3],
|
|
17648
|
+
data: rest[4]
|
|
17649
|
+
};
|
|
17650
|
+
}
|
|
17651
|
+
const projectId = params.projectId;
|
|
17652
|
+
const resourceType = params.resourceType;
|
|
17653
|
+
const resourceId = params.resourceId;
|
|
17654
|
+
const schedule = params.schedule;
|
|
17655
|
+
const active = params.active;
|
|
17656
|
+
const data = params.data;
|
|
17657
|
+
if (typeof projectId === 'undefined') {
|
|
17658
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
17659
|
+
}
|
|
17660
|
+
if (typeof resourceType === 'undefined') {
|
|
17661
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
17662
|
+
}
|
|
17663
|
+
if (typeof resourceId === 'undefined') {
|
|
17664
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
17665
|
+
}
|
|
17666
|
+
if (typeof schedule === 'undefined') {
|
|
17667
|
+
throw new AppwriteException('Missing required parameter: "schedule"');
|
|
17668
|
+
}
|
|
17669
|
+
const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
|
|
17670
|
+
const payload = {};
|
|
17671
|
+
if (typeof resourceType !== 'undefined') {
|
|
17672
|
+
payload['resourceType'] = resourceType;
|
|
17673
|
+
}
|
|
17674
|
+
if (typeof resourceId !== 'undefined') {
|
|
17675
|
+
payload['resourceId'] = resourceId;
|
|
17676
|
+
}
|
|
17677
|
+
if (typeof schedule !== 'undefined') {
|
|
17678
|
+
payload['schedule'] = schedule;
|
|
17679
|
+
}
|
|
17680
|
+
if (typeof active !== 'undefined') {
|
|
17681
|
+
payload['active'] = active;
|
|
17682
|
+
}
|
|
17683
|
+
if (typeof data !== 'undefined') {
|
|
17684
|
+
payload['data'] = data;
|
|
17685
|
+
}
|
|
17686
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
17687
|
+
const apiHeaders = {
|
|
17688
|
+
'content-type': 'application/json',
|
|
17689
|
+
};
|
|
17690
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
17691
|
+
}
|
|
17692
|
+
getSchedule(paramsOrFirst, ...rest) {
|
|
17693
|
+
let params;
|
|
17694
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17695
|
+
params = (paramsOrFirst || {});
|
|
17696
|
+
}
|
|
17697
|
+
else {
|
|
17698
|
+
params = {
|
|
17699
|
+
projectId: paramsOrFirst,
|
|
17700
|
+
scheduleId: rest[0]
|
|
17701
|
+
};
|
|
17702
|
+
}
|
|
17703
|
+
const projectId = params.projectId;
|
|
17704
|
+
const scheduleId = params.scheduleId;
|
|
17705
|
+
if (typeof projectId === 'undefined') {
|
|
17706
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
17707
|
+
}
|
|
17708
|
+
if (typeof scheduleId === 'undefined') {
|
|
17709
|
+
throw new AppwriteException('Missing required parameter: "scheduleId"');
|
|
17710
|
+
}
|
|
17711
|
+
const apiPath = '/projects/{projectId}/schedules/{scheduleId}'.replace('{projectId}', projectId).replace('{scheduleId}', scheduleId);
|
|
17712
|
+
const payload = {};
|
|
17713
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
17714
|
+
const apiHeaders = {};
|
|
17715
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
17716
|
+
}
|
|
17471
17717
|
updateServiceStatus(paramsOrFirst, ...rest) {
|
|
17472
17718
|
let params;
|
|
17473
17719
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -26749,6 +26995,9 @@ class Channel {
|
|
|
26749
26995
|
create() {
|
|
26750
26996
|
return this.resolve("create");
|
|
26751
26997
|
}
|
|
26998
|
+
upsert() {
|
|
26999
|
+
return this.resolve("upsert");
|
|
27000
|
+
}
|
|
26752
27001
|
update() {
|
|
26753
27002
|
return this.resolve("update");
|
|
26754
27003
|
}
|
|
@@ -27116,6 +27365,8 @@ var Scopes;
|
|
|
27116
27365
|
Scopes["TargetsWrite"] = "targets.write";
|
|
27117
27366
|
Scopes["RulesRead"] = "rules.read";
|
|
27118
27367
|
Scopes["RulesWrite"] = "rules.write";
|
|
27368
|
+
Scopes["SchedulesRead"] = "schedules.read";
|
|
27369
|
+
Scopes["SchedulesWrite"] = "schedules.write";
|
|
27119
27370
|
Scopes["MigrationsRead"] = "migrations.read";
|
|
27120
27371
|
Scopes["MigrationsWrite"] = "migrations.write";
|
|
27121
27372
|
Scopes["VcsRead"] = "vcs.read";
|
|
@@ -27188,8 +27439,6 @@ var OAuthProvider;
|
|
|
27188
27439
|
OAuthProvider["Yandex"] = "yandex";
|
|
27189
27440
|
OAuthProvider["Zoho"] = "zoho";
|
|
27190
27441
|
OAuthProvider["Zoom"] = "zoom";
|
|
27191
|
-
OAuthProvider["GithubImagine"] = "githubImagine";
|
|
27192
|
-
OAuthProvider["GoogleImagine"] = "googleImagine";
|
|
27193
27442
|
})(OAuthProvider || (OAuthProvider = {}));
|
|
27194
27443
|
|
|
27195
27444
|
var Browser;
|
|
@@ -27971,24 +28220,35 @@ var Runtime;
|
|
|
27971
28220
|
Runtime["Node200"] = "node-20.0";
|
|
27972
28221
|
Runtime["Node210"] = "node-21.0";
|
|
27973
28222
|
Runtime["Node22"] = "node-22";
|
|
28223
|
+
Runtime["Node23"] = "node-23";
|
|
28224
|
+
Runtime["Node24"] = "node-24";
|
|
28225
|
+
Runtime["Node25"] = "node-25";
|
|
27974
28226
|
Runtime["Php80"] = "php-8.0";
|
|
27975
28227
|
Runtime["Php81"] = "php-8.1";
|
|
27976
28228
|
Runtime["Php82"] = "php-8.2";
|
|
27977
28229
|
Runtime["Php83"] = "php-8.3";
|
|
28230
|
+
Runtime["Php84"] = "php-8.4";
|
|
27978
28231
|
Runtime["Ruby30"] = "ruby-3.0";
|
|
27979
28232
|
Runtime["Ruby31"] = "ruby-3.1";
|
|
27980
28233
|
Runtime["Ruby32"] = "ruby-3.2";
|
|
27981
28234
|
Runtime["Ruby33"] = "ruby-3.3";
|
|
28235
|
+
Runtime["Ruby34"] = "ruby-3.4";
|
|
28236
|
+
Runtime["Ruby40"] = "ruby-4.0";
|
|
27982
28237
|
Runtime["Python38"] = "python-3.8";
|
|
27983
28238
|
Runtime["Python39"] = "python-3.9";
|
|
27984
28239
|
Runtime["Python310"] = "python-3.10";
|
|
27985
28240
|
Runtime["Python311"] = "python-3.11";
|
|
27986
28241
|
Runtime["Python312"] = "python-3.12";
|
|
28242
|
+
Runtime["Python313"] = "python-3.13";
|
|
28243
|
+
Runtime["Python314"] = "python-3.14";
|
|
27987
28244
|
Runtime["Pythonml311"] = "python-ml-3.11";
|
|
27988
28245
|
Runtime["Pythonml312"] = "python-ml-3.12";
|
|
28246
|
+
Runtime["Pythonml313"] = "python-ml-3.13";
|
|
27989
28247
|
Runtime["Deno140"] = "deno-1.40";
|
|
27990
28248
|
Runtime["Deno146"] = "deno-1.46";
|
|
27991
28249
|
Runtime["Deno20"] = "deno-2.0";
|
|
28250
|
+
Runtime["Deno25"] = "deno-2.5";
|
|
28251
|
+
Runtime["Deno26"] = "deno-2.6";
|
|
27992
28252
|
Runtime["Dart215"] = "dart-2.15";
|
|
27993
28253
|
Runtime["Dart216"] = "dart-2.16";
|
|
27994
28254
|
Runtime["Dart217"] = "dart-2.17";
|
|
@@ -28004,25 +28264,34 @@ var Runtime;
|
|
|
28004
28264
|
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
28005
28265
|
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
28006
28266
|
Runtime["Dotnet80"] = "dotnet-8.0";
|
|
28267
|
+
Runtime["Dotnet10"] = "dotnet-10";
|
|
28007
28268
|
Runtime["Java80"] = "java-8.0";
|
|
28008
28269
|
Runtime["Java110"] = "java-11.0";
|
|
28009
28270
|
Runtime["Java170"] = "java-17.0";
|
|
28010
28271
|
Runtime["Java180"] = "java-18.0";
|
|
28011
28272
|
Runtime["Java210"] = "java-21.0";
|
|
28012
28273
|
Runtime["Java22"] = "java-22";
|
|
28274
|
+
Runtime["Java25"] = "java-25";
|
|
28013
28275
|
Runtime["Swift55"] = "swift-5.5";
|
|
28014
28276
|
Runtime["Swift58"] = "swift-5.8";
|
|
28015
28277
|
Runtime["Swift59"] = "swift-5.9";
|
|
28016
28278
|
Runtime["Swift510"] = "swift-5.10";
|
|
28279
|
+
Runtime["Swift62"] = "swift-6.2";
|
|
28017
28280
|
Runtime["Kotlin16"] = "kotlin-1.6";
|
|
28018
28281
|
Runtime["Kotlin18"] = "kotlin-1.8";
|
|
28019
28282
|
Runtime["Kotlin19"] = "kotlin-1.9";
|
|
28020
28283
|
Runtime["Kotlin20"] = "kotlin-2.0";
|
|
28284
|
+
Runtime["Kotlin23"] = "kotlin-2.3";
|
|
28021
28285
|
Runtime["Cpp17"] = "cpp-17";
|
|
28022
28286
|
Runtime["Cpp20"] = "cpp-20";
|
|
28023
28287
|
Runtime["Bun10"] = "bun-1.0";
|
|
28024
28288
|
Runtime["Bun11"] = "bun-1.1";
|
|
28289
|
+
Runtime["Bun12"] = "bun-1.2";
|
|
28290
|
+
Runtime["Bun13"] = "bun-1.3";
|
|
28025
28291
|
Runtime["Go123"] = "go-1.23";
|
|
28292
|
+
Runtime["Go124"] = "go-1.24";
|
|
28293
|
+
Runtime["Go125"] = "go-1.25";
|
|
28294
|
+
Runtime["Go126"] = "go-1.26";
|
|
28026
28295
|
Runtime["Static1"] = "static-1";
|
|
28027
28296
|
Runtime["Flutter324"] = "flutter-3.24";
|
|
28028
28297
|
Runtime["Flutter327"] = "flutter-3.27";
|
|
@@ -28041,24 +28310,35 @@ var Runtimes;
|
|
|
28041
28310
|
Runtimes["Node200"] = "node-20.0";
|
|
28042
28311
|
Runtimes["Node210"] = "node-21.0";
|
|
28043
28312
|
Runtimes["Node22"] = "node-22";
|
|
28313
|
+
Runtimes["Node23"] = "node-23";
|
|
28314
|
+
Runtimes["Node24"] = "node-24";
|
|
28315
|
+
Runtimes["Node25"] = "node-25";
|
|
28044
28316
|
Runtimes["Php80"] = "php-8.0";
|
|
28045
28317
|
Runtimes["Php81"] = "php-8.1";
|
|
28046
28318
|
Runtimes["Php82"] = "php-8.2";
|
|
28047
28319
|
Runtimes["Php83"] = "php-8.3";
|
|
28320
|
+
Runtimes["Php84"] = "php-8.4";
|
|
28048
28321
|
Runtimes["Ruby30"] = "ruby-3.0";
|
|
28049
28322
|
Runtimes["Ruby31"] = "ruby-3.1";
|
|
28050
28323
|
Runtimes["Ruby32"] = "ruby-3.2";
|
|
28051
28324
|
Runtimes["Ruby33"] = "ruby-3.3";
|
|
28325
|
+
Runtimes["Ruby34"] = "ruby-3.4";
|
|
28326
|
+
Runtimes["Ruby40"] = "ruby-4.0";
|
|
28052
28327
|
Runtimes["Python38"] = "python-3.8";
|
|
28053
28328
|
Runtimes["Python39"] = "python-3.9";
|
|
28054
28329
|
Runtimes["Python310"] = "python-3.10";
|
|
28055
28330
|
Runtimes["Python311"] = "python-3.11";
|
|
28056
28331
|
Runtimes["Python312"] = "python-3.12";
|
|
28332
|
+
Runtimes["Python313"] = "python-3.13";
|
|
28333
|
+
Runtimes["Python314"] = "python-3.14";
|
|
28057
28334
|
Runtimes["Pythonml311"] = "python-ml-3.11";
|
|
28058
28335
|
Runtimes["Pythonml312"] = "python-ml-3.12";
|
|
28336
|
+
Runtimes["Pythonml313"] = "python-ml-3.13";
|
|
28059
28337
|
Runtimes["Deno140"] = "deno-1.40";
|
|
28060
28338
|
Runtimes["Deno146"] = "deno-1.46";
|
|
28061
28339
|
Runtimes["Deno20"] = "deno-2.0";
|
|
28340
|
+
Runtimes["Deno25"] = "deno-2.5";
|
|
28341
|
+
Runtimes["Deno26"] = "deno-2.6";
|
|
28062
28342
|
Runtimes["Dart215"] = "dart-2.15";
|
|
28063
28343
|
Runtimes["Dart216"] = "dart-2.16";
|
|
28064
28344
|
Runtimes["Dart217"] = "dart-2.17";
|
|
@@ -28074,25 +28354,34 @@ var Runtimes;
|
|
|
28074
28354
|
Runtimes["Dotnet60"] = "dotnet-6.0";
|
|
28075
28355
|
Runtimes["Dotnet70"] = "dotnet-7.0";
|
|
28076
28356
|
Runtimes["Dotnet80"] = "dotnet-8.0";
|
|
28357
|
+
Runtimes["Dotnet10"] = "dotnet-10";
|
|
28077
28358
|
Runtimes["Java80"] = "java-8.0";
|
|
28078
28359
|
Runtimes["Java110"] = "java-11.0";
|
|
28079
28360
|
Runtimes["Java170"] = "java-17.0";
|
|
28080
28361
|
Runtimes["Java180"] = "java-18.0";
|
|
28081
28362
|
Runtimes["Java210"] = "java-21.0";
|
|
28082
28363
|
Runtimes["Java22"] = "java-22";
|
|
28364
|
+
Runtimes["Java25"] = "java-25";
|
|
28083
28365
|
Runtimes["Swift55"] = "swift-5.5";
|
|
28084
28366
|
Runtimes["Swift58"] = "swift-5.8";
|
|
28085
28367
|
Runtimes["Swift59"] = "swift-5.9";
|
|
28086
28368
|
Runtimes["Swift510"] = "swift-5.10";
|
|
28369
|
+
Runtimes["Swift62"] = "swift-6.2";
|
|
28087
28370
|
Runtimes["Kotlin16"] = "kotlin-1.6";
|
|
28088
28371
|
Runtimes["Kotlin18"] = "kotlin-1.8";
|
|
28089
28372
|
Runtimes["Kotlin19"] = "kotlin-1.9";
|
|
28090
28373
|
Runtimes["Kotlin20"] = "kotlin-2.0";
|
|
28374
|
+
Runtimes["Kotlin23"] = "kotlin-2.3";
|
|
28091
28375
|
Runtimes["Cpp17"] = "cpp-17";
|
|
28092
28376
|
Runtimes["Cpp20"] = "cpp-20";
|
|
28093
28377
|
Runtimes["Bun10"] = "bun-1.0";
|
|
28094
28378
|
Runtimes["Bun11"] = "bun-1.1";
|
|
28379
|
+
Runtimes["Bun12"] = "bun-1.2";
|
|
28380
|
+
Runtimes["Bun13"] = "bun-1.3";
|
|
28095
28381
|
Runtimes["Go123"] = "go-1.23";
|
|
28382
|
+
Runtimes["Go124"] = "go-1.24";
|
|
28383
|
+
Runtimes["Go125"] = "go-1.25";
|
|
28384
|
+
Runtimes["Go126"] = "go-1.26";
|
|
28096
28385
|
Runtimes["Static1"] = "static-1";
|
|
28097
28386
|
Runtimes["Flutter324"] = "flutter-3.24";
|
|
28098
28387
|
Runtimes["Flutter327"] = "flutter-3.27";
|
|
@@ -28244,6 +28533,14 @@ var PlatformType;
|
|
|
28244
28533
|
PlatformType["Reactnativeandroid"] = "react-native-android";
|
|
28245
28534
|
})(PlatformType || (PlatformType = {}));
|
|
28246
28535
|
|
|
28536
|
+
var ResourceType;
|
|
28537
|
+
(function (ResourceType) {
|
|
28538
|
+
ResourceType["Function"] = "function";
|
|
28539
|
+
ResourceType["Execution"] = "execution";
|
|
28540
|
+
ResourceType["Message"] = "message";
|
|
28541
|
+
ResourceType["Backup"] = "backup";
|
|
28542
|
+
})(ResourceType || (ResourceType = {}));
|
|
28543
|
+
|
|
28247
28544
|
var ApiService;
|
|
28248
28545
|
(function (ApiService) {
|
|
28249
28546
|
ApiService["Account"] = "account";
|
|
@@ -28270,12 +28567,12 @@ var SMTPSecure;
|
|
|
28270
28567
|
var EmailTemplateType;
|
|
28271
28568
|
(function (EmailTemplateType) {
|
|
28272
28569
|
EmailTemplateType["Verification"] = "verification";
|
|
28273
|
-
EmailTemplateType["
|
|
28570
|
+
EmailTemplateType["MagicSession"] = "magicSession";
|
|
28274
28571
|
EmailTemplateType["Recovery"] = "recovery";
|
|
28275
28572
|
EmailTemplateType["Invitation"] = "invitation";
|
|
28276
|
-
EmailTemplateType["
|
|
28277
|
-
EmailTemplateType["
|
|
28278
|
-
EmailTemplateType["
|
|
28573
|
+
EmailTemplateType["MfaChallenge"] = "mfaChallenge";
|
|
28574
|
+
EmailTemplateType["SessionAlert"] = "sessionAlert";
|
|
28575
|
+
EmailTemplateType["OtpSession"] = "otpSession";
|
|
28279
28576
|
})(EmailTemplateType || (EmailTemplateType = {}));
|
|
28280
28577
|
|
|
28281
28578
|
var EmailTemplateLocale;
|
|
@@ -28418,7 +28715,7 @@ var SmsTemplateType;
|
|
|
28418
28715
|
SmsTemplateType["Verification"] = "verification";
|
|
28419
28716
|
SmsTemplateType["Login"] = "login";
|
|
28420
28717
|
SmsTemplateType["Invitation"] = "invitation";
|
|
28421
|
-
SmsTemplateType["
|
|
28718
|
+
SmsTemplateType["MfaChallenge"] = "mfaChallenge";
|
|
28422
28719
|
})(SmsTemplateType || (SmsTemplateType = {}));
|
|
28423
28720
|
|
|
28424
28721
|
var SmsTemplateLocale;
|
|
@@ -28598,24 +28895,35 @@ var BuildRuntime;
|
|
|
28598
28895
|
BuildRuntime["Node200"] = "node-20.0";
|
|
28599
28896
|
BuildRuntime["Node210"] = "node-21.0";
|
|
28600
28897
|
BuildRuntime["Node22"] = "node-22";
|
|
28898
|
+
BuildRuntime["Node23"] = "node-23";
|
|
28899
|
+
BuildRuntime["Node24"] = "node-24";
|
|
28900
|
+
BuildRuntime["Node25"] = "node-25";
|
|
28601
28901
|
BuildRuntime["Php80"] = "php-8.0";
|
|
28602
28902
|
BuildRuntime["Php81"] = "php-8.1";
|
|
28603
28903
|
BuildRuntime["Php82"] = "php-8.2";
|
|
28604
28904
|
BuildRuntime["Php83"] = "php-8.3";
|
|
28905
|
+
BuildRuntime["Php84"] = "php-8.4";
|
|
28605
28906
|
BuildRuntime["Ruby30"] = "ruby-3.0";
|
|
28606
28907
|
BuildRuntime["Ruby31"] = "ruby-3.1";
|
|
28607
28908
|
BuildRuntime["Ruby32"] = "ruby-3.2";
|
|
28608
28909
|
BuildRuntime["Ruby33"] = "ruby-3.3";
|
|
28910
|
+
BuildRuntime["Ruby34"] = "ruby-3.4";
|
|
28911
|
+
BuildRuntime["Ruby40"] = "ruby-4.0";
|
|
28609
28912
|
BuildRuntime["Python38"] = "python-3.8";
|
|
28610
28913
|
BuildRuntime["Python39"] = "python-3.9";
|
|
28611
28914
|
BuildRuntime["Python310"] = "python-3.10";
|
|
28612
28915
|
BuildRuntime["Python311"] = "python-3.11";
|
|
28613
28916
|
BuildRuntime["Python312"] = "python-3.12";
|
|
28917
|
+
BuildRuntime["Python313"] = "python-3.13";
|
|
28918
|
+
BuildRuntime["Python314"] = "python-3.14";
|
|
28614
28919
|
BuildRuntime["Pythonml311"] = "python-ml-3.11";
|
|
28615
28920
|
BuildRuntime["Pythonml312"] = "python-ml-3.12";
|
|
28921
|
+
BuildRuntime["Pythonml313"] = "python-ml-3.13";
|
|
28616
28922
|
BuildRuntime["Deno140"] = "deno-1.40";
|
|
28617
28923
|
BuildRuntime["Deno146"] = "deno-1.46";
|
|
28618
28924
|
BuildRuntime["Deno20"] = "deno-2.0";
|
|
28925
|
+
BuildRuntime["Deno25"] = "deno-2.5";
|
|
28926
|
+
BuildRuntime["Deno26"] = "deno-2.6";
|
|
28619
28927
|
BuildRuntime["Dart215"] = "dart-2.15";
|
|
28620
28928
|
BuildRuntime["Dart216"] = "dart-2.16";
|
|
28621
28929
|
BuildRuntime["Dart217"] = "dart-2.17";
|
|
@@ -28631,25 +28939,34 @@ var BuildRuntime;
|
|
|
28631
28939
|
BuildRuntime["Dotnet60"] = "dotnet-6.0";
|
|
28632
28940
|
BuildRuntime["Dotnet70"] = "dotnet-7.0";
|
|
28633
28941
|
BuildRuntime["Dotnet80"] = "dotnet-8.0";
|
|
28942
|
+
BuildRuntime["Dotnet10"] = "dotnet-10";
|
|
28634
28943
|
BuildRuntime["Java80"] = "java-8.0";
|
|
28635
28944
|
BuildRuntime["Java110"] = "java-11.0";
|
|
28636
28945
|
BuildRuntime["Java170"] = "java-17.0";
|
|
28637
28946
|
BuildRuntime["Java180"] = "java-18.0";
|
|
28638
28947
|
BuildRuntime["Java210"] = "java-21.0";
|
|
28639
28948
|
BuildRuntime["Java22"] = "java-22";
|
|
28949
|
+
BuildRuntime["Java25"] = "java-25";
|
|
28640
28950
|
BuildRuntime["Swift55"] = "swift-5.5";
|
|
28641
28951
|
BuildRuntime["Swift58"] = "swift-5.8";
|
|
28642
28952
|
BuildRuntime["Swift59"] = "swift-5.9";
|
|
28643
28953
|
BuildRuntime["Swift510"] = "swift-5.10";
|
|
28954
|
+
BuildRuntime["Swift62"] = "swift-6.2";
|
|
28644
28955
|
BuildRuntime["Kotlin16"] = "kotlin-1.6";
|
|
28645
28956
|
BuildRuntime["Kotlin18"] = "kotlin-1.8";
|
|
28646
28957
|
BuildRuntime["Kotlin19"] = "kotlin-1.9";
|
|
28647
28958
|
BuildRuntime["Kotlin20"] = "kotlin-2.0";
|
|
28959
|
+
BuildRuntime["Kotlin23"] = "kotlin-2.3";
|
|
28648
28960
|
BuildRuntime["Cpp17"] = "cpp-17";
|
|
28649
28961
|
BuildRuntime["Cpp20"] = "cpp-20";
|
|
28650
28962
|
BuildRuntime["Bun10"] = "bun-1.0";
|
|
28651
28963
|
BuildRuntime["Bun11"] = "bun-1.1";
|
|
28964
|
+
BuildRuntime["Bun12"] = "bun-1.2";
|
|
28965
|
+
BuildRuntime["Bun13"] = "bun-1.3";
|
|
28652
28966
|
BuildRuntime["Go123"] = "go-1.23";
|
|
28967
|
+
BuildRuntime["Go124"] = "go-1.24";
|
|
28968
|
+
BuildRuntime["Go125"] = "go-1.25";
|
|
28969
|
+
BuildRuntime["Go126"] = "go-1.26";
|
|
28653
28970
|
BuildRuntime["Static1"] = "static-1";
|
|
28654
28971
|
BuildRuntime["Flutter324"] = "flutter-3.24";
|
|
28655
28972
|
BuildRuntime["Flutter327"] = "flutter-3.27";
|
|
@@ -28834,5 +29151,5 @@ var BillingPlanGroup;
|
|
|
28834
29151
|
BillingPlanGroup["Scale"] = "scale";
|
|
28835
29152
|
})(BillingPlanGroup || (BillingPlanGroup = {}));
|
|
28836
29153
|
|
|
28837
|
-
export { Account, Activities, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, Resources, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
|
|
29154
|
+
export { Account, Activities, Adapter, Api, ApiService, AppwriteException, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DeploymentDownloadType, DeploymentStatus, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, IndexType, Locale, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Resources, Role, Runtime, Runtimes, SMTPSecure, Scopes, Sites, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, StatusCode, Storage, TablesDB, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs };
|
|
28838
29155
|
//# sourceMappingURL=sdk.js.map
|