@appwrite.io/console 1.2.0 → 1.2.2
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/README.md +1 -1
- package/dist/cjs/sdk.js +66 -52
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +66 -52
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +66 -52
- package/package.json +1 -1
- package/src/client.ts +2 -1
- package/src/enums/image-format.ts +1 -0
- package/src/enums/runtime.ts +12 -1
- package/src/enums/s-m-t-p-secure.ts +1 -0
- package/src/models.ts +128 -2
- package/src/services/account.ts +10 -10
- package/src/services/assistant.ts +1 -1
- package/src/services/locale.ts +1 -1
- package/src/services/migrations.ts +14 -14
- package/src/services/project.ts +5 -5
- package/src/services/proxy.ts +5 -5
- package/src/services/storage.ts +1 -1
- package/src/services/users.ts +10 -10
- package/src/services/vcs.ts +3 -3
- package/types/enums/image-format.d.ts +2 -1
- package/types/enums/runtime.d.ts +12 -1
- package/types/enums/s-m-t-p-secure.d.ts +2 -1
- package/types/models.d.ts +126 -0
- package/types/services/account.d.ts +10 -10
- package/types/services/assistant.d.ts +1 -1
- package/types/services/locale.d.ts +1 -1
- package/types/services/migrations.d.ts +14 -14
- package/types/services/project.d.ts +5 -5
- package/types/services/proxy.d.ts +5 -5
- package/types/services/storage.d.ts +1 -1
- package/types/services/users.d.ts +10 -10
- package/types/services/vcs.d.ts +3 -3
package/dist/iife/sdk.js
CHANGED
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
'x-sdk-name': 'Console',
|
|
282
282
|
'x-sdk-platform': 'console',
|
|
283
283
|
'x-sdk-language': 'web',
|
|
284
|
-
'x-sdk-version': '1.
|
|
284
|
+
'x-sdk-version': '1.2.2',
|
|
285
285
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
286
286
|
};
|
|
287
287
|
this.realtime = {
|
|
@@ -558,6 +558,7 @@
|
|
|
558
558
|
let options = {
|
|
559
559
|
method,
|
|
560
560
|
headers,
|
|
561
|
+
credentials: 'include',
|
|
561
562
|
};
|
|
562
563
|
if (method === 'GET') {
|
|
563
564
|
for (const [key, value] of Object.entries(Client.flatten(params))) {
|
|
@@ -818,7 +819,7 @@
|
|
|
818
819
|
});
|
|
819
820
|
}
|
|
820
821
|
/**
|
|
821
|
-
* List
|
|
822
|
+
* List identities
|
|
822
823
|
*
|
|
823
824
|
* Get the list of identities for the currently logged in user.
|
|
824
825
|
*
|
|
@@ -932,7 +933,7 @@
|
|
|
932
933
|
});
|
|
933
934
|
}
|
|
934
935
|
/**
|
|
935
|
-
* Create
|
|
936
|
+
* Create authenticator
|
|
936
937
|
*
|
|
937
938
|
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
|
|
938
939
|
*
|
|
@@ -955,7 +956,7 @@
|
|
|
955
956
|
});
|
|
956
957
|
}
|
|
957
958
|
/**
|
|
958
|
-
* Verify
|
|
959
|
+
* Verify authenticator
|
|
959
960
|
*
|
|
960
961
|
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
|
|
961
962
|
*
|
|
@@ -985,7 +986,7 @@
|
|
|
985
986
|
});
|
|
986
987
|
}
|
|
987
988
|
/**
|
|
988
|
-
* Delete
|
|
989
|
+
* Delete authenticator
|
|
989
990
|
*
|
|
990
991
|
* Delete an authenticator for a user by ID.
|
|
991
992
|
*
|
|
@@ -1008,7 +1009,7 @@
|
|
|
1008
1009
|
});
|
|
1009
1010
|
}
|
|
1010
1011
|
/**
|
|
1011
|
-
* Create MFA
|
|
1012
|
+
* Create MFA challenge
|
|
1012
1013
|
*
|
|
1013
1014
|
* Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
|
|
1014
1015
|
*
|
|
@@ -1034,7 +1035,7 @@
|
|
|
1034
1035
|
});
|
|
1035
1036
|
}
|
|
1036
1037
|
/**
|
|
1037
|
-
* Create MFA
|
|
1038
|
+
* Create MFA challenge (confirmation)
|
|
1038
1039
|
*
|
|
1039
1040
|
* Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
|
|
1040
1041
|
*
|
|
@@ -1067,7 +1068,7 @@
|
|
|
1067
1068
|
});
|
|
1068
1069
|
}
|
|
1069
1070
|
/**
|
|
1070
|
-
* List
|
|
1071
|
+
* List factors
|
|
1071
1072
|
*
|
|
1072
1073
|
* List the factors available on the account to be used as a MFA challange.
|
|
1073
1074
|
*
|
|
@@ -1086,7 +1087,7 @@
|
|
|
1086
1087
|
});
|
|
1087
1088
|
}
|
|
1088
1089
|
/**
|
|
1089
|
-
* Get MFA
|
|
1090
|
+
* Get MFA recovery codes
|
|
1090
1091
|
*
|
|
1091
1092
|
* Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
|
|
1092
1093
|
*
|
|
@@ -1105,7 +1106,7 @@
|
|
|
1105
1106
|
});
|
|
1106
1107
|
}
|
|
1107
1108
|
/**
|
|
1108
|
-
* Create MFA
|
|
1109
|
+
* Create MFA recovery codes
|
|
1109
1110
|
*
|
|
1110
1111
|
* Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
|
|
1111
1112
|
*
|
|
@@ -1124,7 +1125,7 @@
|
|
|
1124
1125
|
});
|
|
1125
1126
|
}
|
|
1126
1127
|
/**
|
|
1127
|
-
* Regenerate MFA
|
|
1128
|
+
* Regenerate MFA recovery codes
|
|
1128
1129
|
*
|
|
1129
1130
|
* Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
|
|
1130
1131
|
*
|
|
@@ -2334,7 +2335,7 @@
|
|
|
2334
2335
|
this.client = client;
|
|
2335
2336
|
}
|
|
2336
2337
|
/**
|
|
2337
|
-
* Ask
|
|
2338
|
+
* Ask query
|
|
2338
2339
|
*
|
|
2339
2340
|
*
|
|
2340
2341
|
* @param {string} prompt
|
|
@@ -5935,7 +5936,7 @@
|
|
|
5935
5936
|
});
|
|
5936
5937
|
}
|
|
5937
5938
|
/**
|
|
5938
|
-
* List
|
|
5939
|
+
* List locale codes
|
|
5939
5940
|
*
|
|
5940
5941
|
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
|
5941
5942
|
*
|
|
@@ -8085,7 +8086,7 @@
|
|
|
8085
8086
|
this.client = client;
|
|
8086
8087
|
}
|
|
8087
8088
|
/**
|
|
8088
|
-
* List
|
|
8089
|
+
* List migrations
|
|
8089
8090
|
*
|
|
8090
8091
|
*
|
|
8091
8092
|
* @param {string[]} queries
|
|
@@ -8111,7 +8112,7 @@
|
|
|
8111
8112
|
});
|
|
8112
8113
|
}
|
|
8113
8114
|
/**
|
|
8114
|
-
* Migrate Appwrite
|
|
8115
|
+
* Migrate Appwrite data
|
|
8115
8116
|
*
|
|
8116
8117
|
*
|
|
8117
8118
|
* @param {string[]} resources
|
|
@@ -8157,7 +8158,7 @@
|
|
|
8157
8158
|
});
|
|
8158
8159
|
}
|
|
8159
8160
|
/**
|
|
8160
|
-
* Generate a report on Appwrite
|
|
8161
|
+
* Generate a report on Appwrite data
|
|
8161
8162
|
*
|
|
8162
8163
|
*
|
|
8163
8164
|
* @param {string[]} resources
|
|
@@ -8203,7 +8204,7 @@
|
|
|
8203
8204
|
});
|
|
8204
8205
|
}
|
|
8205
8206
|
/**
|
|
8206
|
-
* Migrate Firebase
|
|
8207
|
+
* Migrate Firebase data (Service Account)
|
|
8207
8208
|
*
|
|
8208
8209
|
*
|
|
8209
8210
|
* @param {string[]} resources
|
|
@@ -8235,7 +8236,7 @@
|
|
|
8235
8236
|
});
|
|
8236
8237
|
}
|
|
8237
8238
|
/**
|
|
8238
|
-
* Revoke Appwrite's authorization to access Firebase
|
|
8239
|
+
* Revoke Appwrite's authorization to access Firebase projects
|
|
8239
8240
|
*
|
|
8240
8241
|
*
|
|
8241
8242
|
* @throws {AppwriteException}
|
|
@@ -8253,7 +8254,7 @@
|
|
|
8253
8254
|
});
|
|
8254
8255
|
}
|
|
8255
8256
|
/**
|
|
8256
|
-
* Migrate Firebase
|
|
8257
|
+
* Migrate Firebase data (OAuth)
|
|
8257
8258
|
*
|
|
8258
8259
|
*
|
|
8259
8260
|
* @param {string[]} resources
|
|
@@ -8285,7 +8286,7 @@
|
|
|
8285
8286
|
});
|
|
8286
8287
|
}
|
|
8287
8288
|
/**
|
|
8288
|
-
* List Firebase
|
|
8289
|
+
* List Firebase projects
|
|
8289
8290
|
*
|
|
8290
8291
|
*
|
|
8291
8292
|
* @throws {AppwriteException}
|
|
@@ -8303,7 +8304,7 @@
|
|
|
8303
8304
|
});
|
|
8304
8305
|
}
|
|
8305
8306
|
/**
|
|
8306
|
-
* Generate a report on Firebase
|
|
8307
|
+
* Generate a report on Firebase data
|
|
8307
8308
|
*
|
|
8308
8309
|
*
|
|
8309
8310
|
* @param {string[]} resources
|
|
@@ -8335,7 +8336,7 @@
|
|
|
8335
8336
|
});
|
|
8336
8337
|
}
|
|
8337
8338
|
/**
|
|
8338
|
-
* Generate a report on Firebase
|
|
8339
|
+
* Generate a report on Firebase data using OAuth
|
|
8339
8340
|
*
|
|
8340
8341
|
*
|
|
8341
8342
|
* @param {string[]} resources
|
|
@@ -8367,7 +8368,7 @@
|
|
|
8367
8368
|
});
|
|
8368
8369
|
}
|
|
8369
8370
|
/**
|
|
8370
|
-
* Migrate NHost
|
|
8371
|
+
* Migrate NHost data
|
|
8371
8372
|
*
|
|
8372
8373
|
*
|
|
8373
8374
|
* @param {string[]} resources
|
|
@@ -8509,7 +8510,7 @@
|
|
|
8509
8510
|
});
|
|
8510
8511
|
}
|
|
8511
8512
|
/**
|
|
8512
|
-
* Migrate Supabase
|
|
8513
|
+
* Migrate Supabase data
|
|
8513
8514
|
*
|
|
8514
8515
|
*
|
|
8515
8516
|
* @param {string[]} resources
|
|
@@ -8637,7 +8638,7 @@
|
|
|
8637
8638
|
});
|
|
8638
8639
|
}
|
|
8639
8640
|
/**
|
|
8640
|
-
* Get
|
|
8641
|
+
* Get migration
|
|
8641
8642
|
*
|
|
8642
8643
|
*
|
|
8643
8644
|
* @param {string} migrationId
|
|
@@ -8659,7 +8660,7 @@
|
|
|
8659
8660
|
});
|
|
8660
8661
|
}
|
|
8661
8662
|
/**
|
|
8662
|
-
* Retry
|
|
8663
|
+
* Retry migration
|
|
8663
8664
|
*
|
|
8664
8665
|
*
|
|
8665
8666
|
* @param {string} migrationId
|
|
@@ -8681,7 +8682,7 @@
|
|
|
8681
8682
|
});
|
|
8682
8683
|
}
|
|
8683
8684
|
/**
|
|
8684
|
-
* Delete
|
|
8685
|
+
* Delete migration
|
|
8685
8686
|
*
|
|
8686
8687
|
*
|
|
8687
8688
|
* @param {string} migrationId
|
|
@@ -8745,7 +8746,7 @@
|
|
|
8745
8746
|
});
|
|
8746
8747
|
}
|
|
8747
8748
|
/**
|
|
8748
|
-
* List
|
|
8749
|
+
* List variables
|
|
8749
8750
|
*
|
|
8750
8751
|
* Get a list of all project variables. These variables will be accessible in all Appwrite Functions at runtime.
|
|
8751
8752
|
*
|
|
@@ -8764,7 +8765,7 @@
|
|
|
8764
8765
|
});
|
|
8765
8766
|
}
|
|
8766
8767
|
/**
|
|
8767
|
-
* Create
|
|
8768
|
+
* Create variable
|
|
8768
8769
|
*
|
|
8769
8770
|
* Create a new project variable. This variable will be accessible in all Appwrite Functions at runtime.
|
|
8770
8771
|
*
|
|
@@ -8797,7 +8798,7 @@
|
|
|
8797
8798
|
});
|
|
8798
8799
|
}
|
|
8799
8800
|
/**
|
|
8800
|
-
* Get
|
|
8801
|
+
* Get variable
|
|
8801
8802
|
*
|
|
8802
8803
|
* Get a project variable by its unique ID.
|
|
8803
8804
|
*
|
|
@@ -8820,7 +8821,7 @@
|
|
|
8820
8821
|
});
|
|
8821
8822
|
}
|
|
8822
8823
|
/**
|
|
8823
|
-
* Update
|
|
8824
|
+
* Update variable
|
|
8824
8825
|
*
|
|
8825
8826
|
* Update project variable by its unique ID. This variable will be accessible in all Appwrite Functions at runtime.
|
|
8826
8827
|
*
|
|
@@ -8854,7 +8855,7 @@
|
|
|
8854
8855
|
});
|
|
8855
8856
|
}
|
|
8856
8857
|
/**
|
|
8857
|
-
* Delete
|
|
8858
|
+
* Delete variable
|
|
8858
8859
|
*
|
|
8859
8860
|
* Delete a project variable by its unique ID.
|
|
8860
8861
|
*
|
|
@@ -10498,7 +10499,7 @@
|
|
|
10498
10499
|
this.client = client;
|
|
10499
10500
|
}
|
|
10500
10501
|
/**
|
|
10501
|
-
* List
|
|
10502
|
+
* List rules
|
|
10502
10503
|
*
|
|
10503
10504
|
* Get a list of all the proxy rules. You can use the query params to filter your results.
|
|
10504
10505
|
*
|
|
@@ -10525,7 +10526,7 @@
|
|
|
10525
10526
|
});
|
|
10526
10527
|
}
|
|
10527
10528
|
/**
|
|
10528
|
-
* Create
|
|
10529
|
+
* Create rule
|
|
10529
10530
|
*
|
|
10530
10531
|
* Create a new proxy rule.
|
|
10531
10532
|
*
|
|
@@ -10562,7 +10563,7 @@
|
|
|
10562
10563
|
});
|
|
10563
10564
|
}
|
|
10564
10565
|
/**
|
|
10565
|
-
* Get
|
|
10566
|
+
* Get rule
|
|
10566
10567
|
*
|
|
10567
10568
|
* Get a proxy rule by its unique ID.
|
|
10568
10569
|
*
|
|
@@ -10585,7 +10586,7 @@
|
|
|
10585
10586
|
});
|
|
10586
10587
|
}
|
|
10587
10588
|
/**
|
|
10588
|
-
* Delete
|
|
10589
|
+
* Delete rule
|
|
10589
10590
|
*
|
|
10590
10591
|
* Delete a proxy rule by its unique ID.
|
|
10591
10592
|
*
|
|
@@ -10608,7 +10609,7 @@
|
|
|
10608
10609
|
});
|
|
10609
10610
|
}
|
|
10610
10611
|
/**
|
|
10611
|
-
* Update
|
|
10612
|
+
* Update rule verification status
|
|
10612
10613
|
*
|
|
10613
10614
|
*
|
|
10614
10615
|
* @param {string} ruleId
|
|
@@ -10977,7 +10978,7 @@
|
|
|
10977
10978
|
});
|
|
10978
10979
|
}
|
|
10979
10980
|
/**
|
|
10980
|
-
* Delete
|
|
10981
|
+
* Delete file
|
|
10981
10982
|
*
|
|
10982
10983
|
* Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
|
|
10983
10984
|
*
|
|
@@ -11796,7 +11797,7 @@
|
|
|
11796
11797
|
});
|
|
11797
11798
|
}
|
|
11798
11799
|
/**
|
|
11799
|
-
* List
|
|
11800
|
+
* List identities
|
|
11800
11801
|
*
|
|
11801
11802
|
* Get identities for all users.
|
|
11802
11803
|
*
|
|
@@ -12367,7 +12368,7 @@
|
|
|
12367
12368
|
});
|
|
12368
12369
|
}
|
|
12369
12370
|
/**
|
|
12370
|
-
* Delete
|
|
12371
|
+
* Delete authenticator
|
|
12371
12372
|
*
|
|
12372
12373
|
* Delete an authenticator app.
|
|
12373
12374
|
*
|
|
@@ -12394,7 +12395,7 @@
|
|
|
12394
12395
|
});
|
|
12395
12396
|
}
|
|
12396
12397
|
/**
|
|
12397
|
-
* List
|
|
12398
|
+
* List factors
|
|
12398
12399
|
*
|
|
12399
12400
|
* List the factors available on the account to be used as a MFA challange.
|
|
12400
12401
|
*
|
|
@@ -12417,7 +12418,7 @@
|
|
|
12417
12418
|
});
|
|
12418
12419
|
}
|
|
12419
12420
|
/**
|
|
12420
|
-
* Get MFA
|
|
12421
|
+
* Get MFA recovery codes
|
|
12421
12422
|
*
|
|
12422
12423
|
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
12423
12424
|
*
|
|
@@ -12440,7 +12441,7 @@
|
|
|
12440
12441
|
});
|
|
12441
12442
|
}
|
|
12442
12443
|
/**
|
|
12443
|
-
* Regenerate MFA
|
|
12444
|
+
* Regenerate MFA recovery codes
|
|
12444
12445
|
*
|
|
12445
12446
|
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
12446
12447
|
*
|
|
@@ -12463,7 +12464,7 @@
|
|
|
12463
12464
|
});
|
|
12464
12465
|
}
|
|
12465
12466
|
/**
|
|
12466
|
-
* Create MFA
|
|
12467
|
+
* Create MFA recovery codes
|
|
12467
12468
|
*
|
|
12468
12469
|
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
|
|
12469
12470
|
*
|
|
@@ -12757,7 +12758,7 @@
|
|
|
12757
12758
|
});
|
|
12758
12759
|
}
|
|
12759
12760
|
/**
|
|
12760
|
-
* List
|
|
12761
|
+
* List user targets
|
|
12761
12762
|
*
|
|
12762
12763
|
* List the messaging targets that are associated with a user.
|
|
12763
12764
|
*
|
|
@@ -12784,7 +12785,7 @@
|
|
|
12784
12785
|
});
|
|
12785
12786
|
}
|
|
12786
12787
|
/**
|
|
12787
|
-
* Create
|
|
12788
|
+
* Create user target
|
|
12788
12789
|
*
|
|
12789
12790
|
* Create a messaging target.
|
|
12790
12791
|
*
|
|
@@ -12836,7 +12837,7 @@
|
|
|
12836
12837
|
});
|
|
12837
12838
|
}
|
|
12838
12839
|
/**
|
|
12839
|
-
* Get
|
|
12840
|
+
* Get user target
|
|
12840
12841
|
*
|
|
12841
12842
|
* Get a user's push notification target by ID.
|
|
12842
12843
|
*
|
|
@@ -12863,7 +12864,7 @@
|
|
|
12863
12864
|
});
|
|
12864
12865
|
}
|
|
12865
12866
|
/**
|
|
12866
|
-
* Update
|
|
12867
|
+
* Update user target
|
|
12867
12868
|
*
|
|
12868
12869
|
* Update a messaging target.
|
|
12869
12870
|
*
|
|
@@ -13027,7 +13028,7 @@
|
|
|
13027
13028
|
this.client = client;
|
|
13028
13029
|
}
|
|
13029
13030
|
/**
|
|
13030
|
-
* List
|
|
13031
|
+
* List repositories
|
|
13031
13032
|
*
|
|
13032
13033
|
*
|
|
13033
13034
|
* @param {string} installationId
|
|
@@ -13115,7 +13116,7 @@
|
|
|
13115
13116
|
});
|
|
13116
13117
|
}
|
|
13117
13118
|
/**
|
|
13118
|
-
* List
|
|
13119
|
+
* List repository branches
|
|
13119
13120
|
*
|
|
13120
13121
|
*
|
|
13121
13122
|
* @param {string} installationId
|
|
@@ -13282,7 +13283,7 @@
|
|
|
13282
13283
|
});
|
|
13283
13284
|
}
|
|
13284
13285
|
/**
|
|
13285
|
-
* Delete
|
|
13286
|
+
* Delete installation
|
|
13286
13287
|
*
|
|
13287
13288
|
*
|
|
13288
13289
|
* @param {string} installationId
|
|
@@ -13823,6 +13824,7 @@
|
|
|
13823
13824
|
Runtime["Node190"] = "node-19.0";
|
|
13824
13825
|
Runtime["Node200"] = "node-20.0";
|
|
13825
13826
|
Runtime["Node210"] = "node-21.0";
|
|
13827
|
+
Runtime["Node22"] = "node-22";
|
|
13826
13828
|
Runtime["Php80"] = "php-8.0";
|
|
13827
13829
|
Runtime["Php81"] = "php-8.1";
|
|
13828
13830
|
Runtime["Php82"] = "php-8.2";
|
|
@@ -13837,7 +13839,12 @@
|
|
|
13837
13839
|
Runtime["Python311"] = "python-3.11";
|
|
13838
13840
|
Runtime["Python312"] = "python-3.12";
|
|
13839
13841
|
Runtime["Pythonml311"] = "python-ml-3.11";
|
|
13842
|
+
Runtime["Deno121"] = "deno-1.21";
|
|
13843
|
+
Runtime["Deno124"] = "deno-1.24";
|
|
13844
|
+
Runtime["Deno135"] = "deno-1.35";
|
|
13840
13845
|
Runtime["Deno140"] = "deno-1.40";
|
|
13846
|
+
Runtime["Deno146"] = "deno-1.46";
|
|
13847
|
+
Runtime["Deno20"] = "deno-2.0";
|
|
13841
13848
|
Runtime["Dart215"] = "dart-2.15";
|
|
13842
13849
|
Runtime["Dart216"] = "dart-2.16";
|
|
13843
13850
|
Runtime["Dart217"] = "dart-2.17";
|
|
@@ -13845,23 +13852,28 @@
|
|
|
13845
13852
|
Runtime["Dart30"] = "dart-3.0";
|
|
13846
13853
|
Runtime["Dart31"] = "dart-3.1";
|
|
13847
13854
|
Runtime["Dart33"] = "dart-3.3";
|
|
13848
|
-
Runtime["
|
|
13855
|
+
Runtime["Dart35"] = "dart-3.5";
|
|
13849
13856
|
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
13850
13857
|
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
13858
|
+
Runtime["Dotnet80"] = "dotnet-8.0";
|
|
13851
13859
|
Runtime["Java80"] = "java-8.0";
|
|
13852
13860
|
Runtime["Java110"] = "java-11.0";
|
|
13853
13861
|
Runtime["Java170"] = "java-17.0";
|
|
13854
13862
|
Runtime["Java180"] = "java-18.0";
|
|
13855
13863
|
Runtime["Java210"] = "java-21.0";
|
|
13864
|
+
Runtime["Java22"] = "java-22";
|
|
13856
13865
|
Runtime["Swift55"] = "swift-5.5";
|
|
13857
13866
|
Runtime["Swift58"] = "swift-5.8";
|
|
13858
13867
|
Runtime["Swift59"] = "swift-5.9";
|
|
13868
|
+
Runtime["Swift510"] = "swift-5.10";
|
|
13859
13869
|
Runtime["Kotlin16"] = "kotlin-1.6";
|
|
13860
13870
|
Runtime["Kotlin18"] = "kotlin-1.8";
|
|
13861
13871
|
Runtime["Kotlin19"] = "kotlin-1.9";
|
|
13872
|
+
Runtime["Kotlin20"] = "kotlin-2.0";
|
|
13862
13873
|
Runtime["Cpp17"] = "cpp-17";
|
|
13863
13874
|
Runtime["Cpp20"] = "cpp-20";
|
|
13864
13875
|
Runtime["Bun10"] = "bun-1.0";
|
|
13876
|
+
Runtime["Bun11"] = "bun-1.1";
|
|
13865
13877
|
Runtime["Go123"] = "go-1.23";
|
|
13866
13878
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
13867
13879
|
|
|
@@ -13972,6 +13984,7 @@
|
|
|
13972
13984
|
exports.SMTPSecure = void 0;
|
|
13973
13985
|
(function (SMTPSecure) {
|
|
13974
13986
|
SMTPSecure["Tls"] = "tls";
|
|
13987
|
+
SMTPSecure["Ssl"] = "ssl";
|
|
13975
13988
|
})(exports.SMTPSecure || (exports.SMTPSecure = {}));
|
|
13976
13989
|
|
|
13977
13990
|
exports.EmailTemplateType = void 0;
|
|
@@ -14296,6 +14309,7 @@
|
|
|
14296
14309
|
ImageFormat["Gif"] = "gif";
|
|
14297
14310
|
ImageFormat["Png"] = "png";
|
|
14298
14311
|
ImageFormat["Webp"] = "webp";
|
|
14312
|
+
ImageFormat["Avif"] = "avif";
|
|
14299
14313
|
})(exports.ImageFormat || (exports.ImageFormat = {}));
|
|
14300
14314
|
|
|
14301
14315
|
exports.StorageUsageRange = void 0;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.2",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
|
@@ -304,7 +304,7 @@ class Client {
|
|
|
304
304
|
'x-sdk-name': 'Console',
|
|
305
305
|
'x-sdk-platform': 'console',
|
|
306
306
|
'x-sdk-language': 'web',
|
|
307
|
-
'x-sdk-version': '1.
|
|
307
|
+
'x-sdk-version': '1.2.2',
|
|
308
308
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
309
309
|
};
|
|
310
310
|
|
|
@@ -602,6 +602,7 @@ class Client {
|
|
|
602
602
|
let options: RequestInit = {
|
|
603
603
|
method,
|
|
604
604
|
headers,
|
|
605
|
+
credentials: 'include',
|
|
605
606
|
};
|
|
606
607
|
|
|
607
608
|
if (method === 'GET') {
|
package/src/enums/runtime.ts
CHANGED
|
@@ -5,6 +5,7 @@ export enum Runtime {
|
|
|
5
5
|
Node190 = 'node-19.0',
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
|
+
Node22 = 'node-22',
|
|
8
9
|
Php80 = 'php-8.0',
|
|
9
10
|
Php81 = 'php-8.1',
|
|
10
11
|
Php82 = 'php-8.2',
|
|
@@ -19,7 +20,12 @@ export enum Runtime {
|
|
|
19
20
|
Python311 = 'python-3.11',
|
|
20
21
|
Python312 = 'python-3.12',
|
|
21
22
|
Pythonml311 = 'python-ml-3.11',
|
|
23
|
+
Deno121 = 'deno-1.21',
|
|
24
|
+
Deno124 = 'deno-1.24',
|
|
25
|
+
Deno135 = 'deno-1.35',
|
|
22
26
|
Deno140 = 'deno-1.40',
|
|
27
|
+
Deno146 = 'deno-1.46',
|
|
28
|
+
Deno20 = 'deno-2.0',
|
|
23
29
|
Dart215 = 'dart-2.15',
|
|
24
30
|
Dart216 = 'dart-2.16',
|
|
25
31
|
Dart217 = 'dart-2.17',
|
|
@@ -27,22 +33,27 @@ export enum Runtime {
|
|
|
27
33
|
Dart30 = 'dart-3.0',
|
|
28
34
|
Dart31 = 'dart-3.1',
|
|
29
35
|
Dart33 = 'dart-3.3',
|
|
30
|
-
|
|
36
|
+
Dart35 = 'dart-3.5',
|
|
31
37
|
Dotnet60 = 'dotnet-6.0',
|
|
32
38
|
Dotnet70 = 'dotnet-7.0',
|
|
39
|
+
Dotnet80 = 'dotnet-8.0',
|
|
33
40
|
Java80 = 'java-8.0',
|
|
34
41
|
Java110 = 'java-11.0',
|
|
35
42
|
Java170 = 'java-17.0',
|
|
36
43
|
Java180 = 'java-18.0',
|
|
37
44
|
Java210 = 'java-21.0',
|
|
45
|
+
Java22 = 'java-22',
|
|
38
46
|
Swift55 = 'swift-5.5',
|
|
39
47
|
Swift58 = 'swift-5.8',
|
|
40
48
|
Swift59 = 'swift-5.9',
|
|
49
|
+
Swift510 = 'swift-5.10',
|
|
41
50
|
Kotlin16 = 'kotlin-1.6',
|
|
42
51
|
Kotlin18 = 'kotlin-1.8',
|
|
43
52
|
Kotlin19 = 'kotlin-1.9',
|
|
53
|
+
Kotlin20 = 'kotlin-2.0',
|
|
44
54
|
Cpp17 = 'cpp-17',
|
|
45
55
|
Cpp20 = 'cpp-20',
|
|
46
56
|
Bun10 = 'bun-1.0',
|
|
57
|
+
Bun11 = 'bun-1.1',
|
|
47
58
|
Go123 = 'go-1.23',
|
|
48
59
|
}
|