@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/dist/iife/sdk.js
CHANGED
|
@@ -4419,7 +4419,7 @@
|
|
|
4419
4419
|
'x-sdk-name': 'Console',
|
|
4420
4420
|
'x-sdk-platform': 'console',
|
|
4421
4421
|
'x-sdk-language': 'web',
|
|
4422
|
-
'x-sdk-version': '
|
|
4422
|
+
'x-sdk-version': '13.0.0',
|
|
4423
4423
|
'X-Appwrite-Response-Format': '1.9.4',
|
|
4424
4424
|
};
|
|
4425
4425
|
this.realtime = {
|
|
@@ -22199,81 +22199,6 @@
|
|
|
22199
22199
|
};
|
|
22200
22200
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22201
22201
|
}
|
|
22202
|
-
updateCanonicalEmails(paramsOrFirst) {
|
|
22203
|
-
let params;
|
|
22204
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22205
|
-
params = (paramsOrFirst || {});
|
|
22206
|
-
}
|
|
22207
|
-
else {
|
|
22208
|
-
params = {
|
|
22209
|
-
enabled: paramsOrFirst
|
|
22210
|
-
};
|
|
22211
|
-
}
|
|
22212
|
-
const enabled = params.enabled;
|
|
22213
|
-
if (typeof enabled === 'undefined') {
|
|
22214
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22215
|
-
}
|
|
22216
|
-
const apiPath = '/project/auth/canonical-emails';
|
|
22217
|
-
const payload = {};
|
|
22218
|
-
if (typeof enabled !== 'undefined') {
|
|
22219
|
-
payload['enabled'] = enabled;
|
|
22220
|
-
}
|
|
22221
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22222
|
-
const apiHeaders = {
|
|
22223
|
-
'content-type': 'application/json',
|
|
22224
|
-
};
|
|
22225
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22226
|
-
}
|
|
22227
|
-
updateDisposableEmails(paramsOrFirst) {
|
|
22228
|
-
let params;
|
|
22229
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22230
|
-
params = (paramsOrFirst || {});
|
|
22231
|
-
}
|
|
22232
|
-
else {
|
|
22233
|
-
params = {
|
|
22234
|
-
enabled: paramsOrFirst
|
|
22235
|
-
};
|
|
22236
|
-
}
|
|
22237
|
-
const enabled = params.enabled;
|
|
22238
|
-
if (typeof enabled === 'undefined') {
|
|
22239
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22240
|
-
}
|
|
22241
|
-
const apiPath = '/project/auth/disposable-emails';
|
|
22242
|
-
const payload = {};
|
|
22243
|
-
if (typeof enabled !== 'undefined') {
|
|
22244
|
-
payload['enabled'] = enabled;
|
|
22245
|
-
}
|
|
22246
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22247
|
-
const apiHeaders = {
|
|
22248
|
-
'content-type': 'application/json',
|
|
22249
|
-
};
|
|
22250
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22251
|
-
}
|
|
22252
|
-
updateFreeEmails(paramsOrFirst) {
|
|
22253
|
-
let params;
|
|
22254
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22255
|
-
params = (paramsOrFirst || {});
|
|
22256
|
-
}
|
|
22257
|
-
else {
|
|
22258
|
-
params = {
|
|
22259
|
-
enabled: paramsOrFirst
|
|
22260
|
-
};
|
|
22261
|
-
}
|
|
22262
|
-
const enabled = params.enabled;
|
|
22263
|
-
if (typeof enabled === 'undefined') {
|
|
22264
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22265
|
-
}
|
|
22266
|
-
const apiPath = '/project/auth/free-emails';
|
|
22267
|
-
const payload = {};
|
|
22268
|
-
if (typeof enabled !== 'undefined') {
|
|
22269
|
-
payload['enabled'] = enabled;
|
|
22270
|
-
}
|
|
22271
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22272
|
-
const apiHeaders = {
|
|
22273
|
-
'content-type': 'application/json',
|
|
22274
|
-
};
|
|
22275
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22276
|
-
}
|
|
22277
22202
|
listKeys(paramsOrFirst, ...rest) {
|
|
22278
22203
|
let params;
|
|
22279
22204
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -23258,11 +23183,13 @@
|
|
|
23258
23183
|
params = {
|
|
23259
23184
|
clientId: paramsOrFirst,
|
|
23260
23185
|
clientSecret: rest[0],
|
|
23261
|
-
|
|
23186
|
+
prompt: rest[1],
|
|
23187
|
+
enabled: rest[2]
|
|
23262
23188
|
};
|
|
23263
23189
|
}
|
|
23264
23190
|
const clientId = params.clientId;
|
|
23265
23191
|
const clientSecret = params.clientSecret;
|
|
23192
|
+
const prompt = params.prompt;
|
|
23266
23193
|
const enabled = params.enabled;
|
|
23267
23194
|
const apiPath = '/project/oauth2/google';
|
|
23268
23195
|
const payload = {};
|
|
@@ -23272,6 +23199,9 @@
|
|
|
23272
23199
|
if (typeof clientSecret !== 'undefined') {
|
|
23273
23200
|
payload['clientSecret'] = clientSecret;
|
|
23274
23201
|
}
|
|
23202
|
+
if (typeof prompt !== 'undefined') {
|
|
23203
|
+
payload['prompt'] = prompt;
|
|
23204
|
+
}
|
|
23275
23205
|
if (typeof enabled !== 'undefined') {
|
|
23276
23206
|
payload['enabled'] = enabled;
|
|
23277
23207
|
}
|
|
@@ -24569,6 +24499,81 @@
|
|
|
24569
24499
|
const apiHeaders = {};
|
|
24570
24500
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
24571
24501
|
}
|
|
24502
|
+
updateDenyCanonicalEmailPolicy(paramsOrFirst) {
|
|
24503
|
+
let params;
|
|
24504
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24505
|
+
params = (paramsOrFirst || {});
|
|
24506
|
+
}
|
|
24507
|
+
else {
|
|
24508
|
+
params = {
|
|
24509
|
+
enabled: paramsOrFirst
|
|
24510
|
+
};
|
|
24511
|
+
}
|
|
24512
|
+
const enabled = params.enabled;
|
|
24513
|
+
if (typeof enabled === 'undefined') {
|
|
24514
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
24515
|
+
}
|
|
24516
|
+
const apiPath = '/project/policies/deny-canonical-email';
|
|
24517
|
+
const payload = {};
|
|
24518
|
+
if (typeof enabled !== 'undefined') {
|
|
24519
|
+
payload['enabled'] = enabled;
|
|
24520
|
+
}
|
|
24521
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24522
|
+
const apiHeaders = {
|
|
24523
|
+
'content-type': 'application/json',
|
|
24524
|
+
};
|
|
24525
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24526
|
+
}
|
|
24527
|
+
updateDenyDisposableEmailPolicy(paramsOrFirst) {
|
|
24528
|
+
let params;
|
|
24529
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24530
|
+
params = (paramsOrFirst || {});
|
|
24531
|
+
}
|
|
24532
|
+
else {
|
|
24533
|
+
params = {
|
|
24534
|
+
enabled: paramsOrFirst
|
|
24535
|
+
};
|
|
24536
|
+
}
|
|
24537
|
+
const enabled = params.enabled;
|
|
24538
|
+
if (typeof enabled === 'undefined') {
|
|
24539
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
24540
|
+
}
|
|
24541
|
+
const apiPath = '/project/policies/deny-disposable-email';
|
|
24542
|
+
const payload = {};
|
|
24543
|
+
if (typeof enabled !== 'undefined') {
|
|
24544
|
+
payload['enabled'] = enabled;
|
|
24545
|
+
}
|
|
24546
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24547
|
+
const apiHeaders = {
|
|
24548
|
+
'content-type': 'application/json',
|
|
24549
|
+
};
|
|
24550
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24551
|
+
}
|
|
24552
|
+
updateDenyFreeEmailPolicy(paramsOrFirst) {
|
|
24553
|
+
let params;
|
|
24554
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24555
|
+
params = (paramsOrFirst || {});
|
|
24556
|
+
}
|
|
24557
|
+
else {
|
|
24558
|
+
params = {
|
|
24559
|
+
enabled: paramsOrFirst
|
|
24560
|
+
};
|
|
24561
|
+
}
|
|
24562
|
+
const enabled = params.enabled;
|
|
24563
|
+
if (typeof enabled === 'undefined') {
|
|
24564
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
24565
|
+
}
|
|
24566
|
+
const apiPath = '/project/policies/deny-free-email';
|
|
24567
|
+
const payload = {};
|
|
24568
|
+
if (typeof enabled !== 'undefined') {
|
|
24569
|
+
payload['enabled'] = enabled;
|
|
24570
|
+
}
|
|
24571
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24572
|
+
const apiHeaders = {
|
|
24573
|
+
'content-type': 'application/json',
|
|
24574
|
+
};
|
|
24575
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
24576
|
+
}
|
|
24572
24577
|
updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
|
|
24573
24578
|
let params;
|
|
24574
24579
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -37540,6 +37545,13 @@
|
|
|
37540
37545
|
AuthMethod["Phone"] = "phone";
|
|
37541
37546
|
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
37542
37547
|
|
|
37548
|
+
exports.Prompt = void 0;
|
|
37549
|
+
(function (Prompt) {
|
|
37550
|
+
Prompt["None"] = "none";
|
|
37551
|
+
Prompt["Consent"] = "consent";
|
|
37552
|
+
Prompt["SelectAccount"] = "select_account";
|
|
37553
|
+
})(exports.Prompt || (exports.Prompt = {}));
|
|
37554
|
+
|
|
37543
37555
|
exports.ProjectPolicy = void 0;
|
|
37544
37556
|
(function (ProjectPolicy) {
|
|
37545
37557
|
ProjectPolicy["Passworddictionary"] = "password-dictionary";
|
|
@@ -38047,6 +38059,13 @@
|
|
|
38047
38059
|
ExecutionStatus["Scheduled"] = "scheduled";
|
|
38048
38060
|
})(exports.ExecutionStatus || (exports.ExecutionStatus = {}));
|
|
38049
38061
|
|
|
38062
|
+
exports.OAuth2GooglePrompt = void 0;
|
|
38063
|
+
(function (OAuth2GooglePrompt) {
|
|
38064
|
+
OAuth2GooglePrompt["None"] = "none";
|
|
38065
|
+
OAuth2GooglePrompt["Consent"] = "consent";
|
|
38066
|
+
OAuth2GooglePrompt["SelectAccount"] = "select_account";
|
|
38067
|
+
})(exports.OAuth2GooglePrompt || (exports.OAuth2GooglePrompt = {}));
|
|
38068
|
+
|
|
38050
38069
|
exports.PlatformType = void 0;
|
|
38051
38070
|
(function (PlatformType) {
|
|
38052
38071
|
PlatformType["Windows"] = "windows";
|
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 abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "13.0.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/types/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export { NHostMigrationResource } from './enums/n-host-migration-resource';
|
|
|
85
85
|
export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
|
|
86
86
|
export { Addon } from './enums/addon';
|
|
87
87
|
export { AuthMethod } from './enums/auth-method';
|
|
88
|
+
export { Prompt } from './enums/prompt';
|
|
88
89
|
export { ProjectPolicy } from './enums/project-policy';
|
|
89
90
|
export { ProtocolId } from './enums/protocol-id';
|
|
90
91
|
export { ServiceId } from './enums/service-id';
|
|
@@ -117,6 +118,7 @@ export { DetectionRuntimeType } from './enums/detection-runtime-type';
|
|
|
117
118
|
export { DeploymentStatus } from './enums/deployment-status';
|
|
118
119
|
export { ExecutionTrigger } from './enums/execution-trigger';
|
|
119
120
|
export { ExecutionStatus } from './enums/execution-status';
|
|
121
|
+
export { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';
|
|
120
122
|
export { PlatformType } from './enums/platform-type';
|
|
121
123
|
export { HealthAntivirusStatus } from './enums/health-antivirus-status';
|
|
122
124
|
export { HealthCheckStatus } from './enums/health-check-status';
|
package/types/models.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { DetectionRuntimeType } from "./enums/detection-runtime-type";
|
|
|
7
7
|
import { DeploymentStatus } from "./enums/deployment-status";
|
|
8
8
|
import { ExecutionTrigger } from "./enums/execution-trigger";
|
|
9
9
|
import { ExecutionStatus } from "./enums/execution-status";
|
|
10
|
+
import { OAuth2GooglePrompt } from "./enums/o-auth-2-google-prompt";
|
|
10
11
|
import { PlatformType } from "./enums/platform-type";
|
|
11
12
|
import { HealthAntivirusStatus } from "./enums/health-antivirus-status";
|
|
12
13
|
import { HealthCheckStatus } from "./enums/health-check-status";
|
|
@@ -5613,6 +5614,10 @@ export declare namespace Models {
|
|
|
5613
5614
|
* Google OAuth2 client secret.
|
|
5614
5615
|
*/
|
|
5615
5616
|
clientSecret: string;
|
|
5617
|
+
/**
|
|
5618
|
+
* Google OAuth2 prompt values.
|
|
5619
|
+
*/
|
|
5620
|
+
prompt: OAuth2GooglePrompt[];
|
|
5616
5621
|
};
|
|
5617
5622
|
/**
|
|
5618
5623
|
* OAuth2Zoom
|