@appwrite.io/console 12.2.0 → 13.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/README.md +1 -1
- package/dist/cjs/sdk.js +96 -77
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +97 -78
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +96 -77
- package/package.json +1 -1
- package/types/enums/o-auth-2-google-prompt.d.ts +5 -0
- package/types/enums/prompt.d.ts +5 -0
- package/types/index.d.ts +2 -0
- package/types/models.d.ts +5 -0
- package/types/services/project.d.ts +144 -140
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
|
|
|
33
33
|
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@13.0.0"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -621,7 +621,7 @@ class Client {
|
|
|
621
621
|
'x-sdk-name': 'Console',
|
|
622
622
|
'x-sdk-platform': 'console',
|
|
623
623
|
'x-sdk-language': 'web',
|
|
624
|
-
'x-sdk-version': '
|
|
624
|
+
'x-sdk-version': '13.0.0',
|
|
625
625
|
'X-Appwrite-Response-Format': '1.9.4',
|
|
626
626
|
};
|
|
627
627
|
this.realtime = {
|
|
@@ -18401,81 +18401,6 @@ class Project {
|
|
|
18401
18401
|
};
|
|
18402
18402
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18403
18403
|
}
|
|
18404
|
-
updateCanonicalEmails(paramsOrFirst) {
|
|
18405
|
-
let params;
|
|
18406
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18407
|
-
params = (paramsOrFirst || {});
|
|
18408
|
-
}
|
|
18409
|
-
else {
|
|
18410
|
-
params = {
|
|
18411
|
-
enabled: paramsOrFirst
|
|
18412
|
-
};
|
|
18413
|
-
}
|
|
18414
|
-
const enabled = params.enabled;
|
|
18415
|
-
if (typeof enabled === 'undefined') {
|
|
18416
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
18417
|
-
}
|
|
18418
|
-
const apiPath = '/project/auth/canonical-emails';
|
|
18419
|
-
const payload = {};
|
|
18420
|
-
if (typeof enabled !== 'undefined') {
|
|
18421
|
-
payload['enabled'] = enabled;
|
|
18422
|
-
}
|
|
18423
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18424
|
-
const apiHeaders = {
|
|
18425
|
-
'content-type': 'application/json',
|
|
18426
|
-
};
|
|
18427
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18428
|
-
}
|
|
18429
|
-
updateDisposableEmails(paramsOrFirst) {
|
|
18430
|
-
let params;
|
|
18431
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18432
|
-
params = (paramsOrFirst || {});
|
|
18433
|
-
}
|
|
18434
|
-
else {
|
|
18435
|
-
params = {
|
|
18436
|
-
enabled: paramsOrFirst
|
|
18437
|
-
};
|
|
18438
|
-
}
|
|
18439
|
-
const enabled = params.enabled;
|
|
18440
|
-
if (typeof enabled === 'undefined') {
|
|
18441
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
18442
|
-
}
|
|
18443
|
-
const apiPath = '/project/auth/disposable-emails';
|
|
18444
|
-
const payload = {};
|
|
18445
|
-
if (typeof enabled !== 'undefined') {
|
|
18446
|
-
payload['enabled'] = enabled;
|
|
18447
|
-
}
|
|
18448
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18449
|
-
const apiHeaders = {
|
|
18450
|
-
'content-type': 'application/json',
|
|
18451
|
-
};
|
|
18452
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18453
|
-
}
|
|
18454
|
-
updateFreeEmails(paramsOrFirst) {
|
|
18455
|
-
let params;
|
|
18456
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18457
|
-
params = (paramsOrFirst || {});
|
|
18458
|
-
}
|
|
18459
|
-
else {
|
|
18460
|
-
params = {
|
|
18461
|
-
enabled: paramsOrFirst
|
|
18462
|
-
};
|
|
18463
|
-
}
|
|
18464
|
-
const enabled = params.enabled;
|
|
18465
|
-
if (typeof enabled === 'undefined') {
|
|
18466
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
18467
|
-
}
|
|
18468
|
-
const apiPath = '/project/auth/free-emails';
|
|
18469
|
-
const payload = {};
|
|
18470
|
-
if (typeof enabled !== 'undefined') {
|
|
18471
|
-
payload['enabled'] = enabled;
|
|
18472
|
-
}
|
|
18473
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18474
|
-
const apiHeaders = {
|
|
18475
|
-
'content-type': 'application/json',
|
|
18476
|
-
};
|
|
18477
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18478
|
-
}
|
|
18479
18404
|
listKeys(paramsOrFirst, ...rest) {
|
|
18480
18405
|
let params;
|
|
18481
18406
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19460,11 +19385,13 @@ class Project {
|
|
|
19460
19385
|
params = {
|
|
19461
19386
|
clientId: paramsOrFirst,
|
|
19462
19387
|
clientSecret: rest[0],
|
|
19463
|
-
|
|
19388
|
+
prompt: rest[1],
|
|
19389
|
+
enabled: rest[2]
|
|
19464
19390
|
};
|
|
19465
19391
|
}
|
|
19466
19392
|
const clientId = params.clientId;
|
|
19467
19393
|
const clientSecret = params.clientSecret;
|
|
19394
|
+
const prompt = params.prompt;
|
|
19468
19395
|
const enabled = params.enabled;
|
|
19469
19396
|
const apiPath = '/project/oauth2/google';
|
|
19470
19397
|
const payload = {};
|
|
@@ -19474,6 +19401,9 @@ class Project {
|
|
|
19474
19401
|
if (typeof clientSecret !== 'undefined') {
|
|
19475
19402
|
payload['clientSecret'] = clientSecret;
|
|
19476
19403
|
}
|
|
19404
|
+
if (typeof prompt !== 'undefined') {
|
|
19405
|
+
payload['prompt'] = prompt;
|
|
19406
|
+
}
|
|
19477
19407
|
if (typeof enabled !== 'undefined') {
|
|
19478
19408
|
payload['enabled'] = enabled;
|
|
19479
19409
|
}
|
|
@@ -20771,6 +20701,81 @@ class Project {
|
|
|
20771
20701
|
const apiHeaders = {};
|
|
20772
20702
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
20773
20703
|
}
|
|
20704
|
+
updateDenyCanonicalEmailPolicy(paramsOrFirst) {
|
|
20705
|
+
let params;
|
|
20706
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20707
|
+
params = (paramsOrFirst || {});
|
|
20708
|
+
}
|
|
20709
|
+
else {
|
|
20710
|
+
params = {
|
|
20711
|
+
enabled: paramsOrFirst
|
|
20712
|
+
};
|
|
20713
|
+
}
|
|
20714
|
+
const enabled = params.enabled;
|
|
20715
|
+
if (typeof enabled === 'undefined') {
|
|
20716
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20717
|
+
}
|
|
20718
|
+
const apiPath = '/project/policies/deny-canonical-email';
|
|
20719
|
+
const payload = {};
|
|
20720
|
+
if (typeof enabled !== 'undefined') {
|
|
20721
|
+
payload['enabled'] = enabled;
|
|
20722
|
+
}
|
|
20723
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20724
|
+
const apiHeaders = {
|
|
20725
|
+
'content-type': 'application/json',
|
|
20726
|
+
};
|
|
20727
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20728
|
+
}
|
|
20729
|
+
updateDenyDisposableEmailPolicy(paramsOrFirst) {
|
|
20730
|
+
let params;
|
|
20731
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20732
|
+
params = (paramsOrFirst || {});
|
|
20733
|
+
}
|
|
20734
|
+
else {
|
|
20735
|
+
params = {
|
|
20736
|
+
enabled: paramsOrFirst
|
|
20737
|
+
};
|
|
20738
|
+
}
|
|
20739
|
+
const enabled = params.enabled;
|
|
20740
|
+
if (typeof enabled === 'undefined') {
|
|
20741
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20742
|
+
}
|
|
20743
|
+
const apiPath = '/project/policies/deny-disposable-email';
|
|
20744
|
+
const payload = {};
|
|
20745
|
+
if (typeof enabled !== 'undefined') {
|
|
20746
|
+
payload['enabled'] = enabled;
|
|
20747
|
+
}
|
|
20748
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20749
|
+
const apiHeaders = {
|
|
20750
|
+
'content-type': 'application/json',
|
|
20751
|
+
};
|
|
20752
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20753
|
+
}
|
|
20754
|
+
updateDenyFreeEmailPolicy(paramsOrFirst) {
|
|
20755
|
+
let params;
|
|
20756
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20757
|
+
params = (paramsOrFirst || {});
|
|
20758
|
+
}
|
|
20759
|
+
else {
|
|
20760
|
+
params = {
|
|
20761
|
+
enabled: paramsOrFirst
|
|
20762
|
+
};
|
|
20763
|
+
}
|
|
20764
|
+
const enabled = params.enabled;
|
|
20765
|
+
if (typeof enabled === 'undefined') {
|
|
20766
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
20767
|
+
}
|
|
20768
|
+
const apiPath = '/project/policies/deny-free-email';
|
|
20769
|
+
const payload = {};
|
|
20770
|
+
if (typeof enabled !== 'undefined') {
|
|
20771
|
+
payload['enabled'] = enabled;
|
|
20772
|
+
}
|
|
20773
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20774
|
+
const apiHeaders = {
|
|
20775
|
+
'content-type': 'application/json',
|
|
20776
|
+
};
|
|
20777
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20778
|
+
}
|
|
20774
20779
|
updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
|
|
20775
20780
|
let params;
|
|
20776
20781
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -33742,6 +33747,13 @@ exports.AuthMethod = void 0;
|
|
|
33742
33747
|
AuthMethod["Phone"] = "phone";
|
|
33743
33748
|
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
33744
33749
|
|
|
33750
|
+
exports.Prompt = void 0;
|
|
33751
|
+
(function (Prompt) {
|
|
33752
|
+
Prompt["None"] = "none";
|
|
33753
|
+
Prompt["Consent"] = "consent";
|
|
33754
|
+
Prompt["SelectAccount"] = "select_account";
|
|
33755
|
+
})(exports.Prompt || (exports.Prompt = {}));
|
|
33756
|
+
|
|
33745
33757
|
exports.ProjectPolicy = void 0;
|
|
33746
33758
|
(function (ProjectPolicy) {
|
|
33747
33759
|
ProjectPolicy["Passworddictionary"] = "password-dictionary";
|
|
@@ -34249,6 +34261,13 @@ exports.ExecutionStatus = void 0;
|
|
|
34249
34261
|
ExecutionStatus["Scheduled"] = "scheduled";
|
|
34250
34262
|
})(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
|
|
34251
34263
|
|
|
34264
|
+
exports.OAuth2GooglePrompt = void 0;
|
|
34265
|
+
(function (OAuth2GooglePrompt) {
|
|
34266
|
+
OAuth2GooglePrompt["None"] = "none";
|
|
34267
|
+
OAuth2GooglePrompt["Consent"] = "consent";
|
|
34268
|
+
OAuth2GooglePrompt["SelectAccount"] = "select_account";
|
|
34269
|
+
})(exports.OAuth2GooglePrompt || (exports.OAuth2GooglePrompt = {}));
|
|
34270
|
+
|
|
34252
34271
|
exports.PlatformType = void 0;
|
|
34253
34272
|
(function (PlatformType) {
|
|
34254
34273
|
PlatformType["Windows"] = "windows";
|