@appwrite.io/console 2.3.1 → 3.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 +14 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +199 -11
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +200 -11
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +252 -44
- 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 +11 -3
- 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 +68 -4
- package/src/services/account.ts +4 -4
- 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 +66 -4
- package/types/services/account.d.ts +4 -4
- package/types/services/projects.d.ts +82 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects, ResourceType } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.createSchedule({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
resourceType: ResourceType.Function,
|
|
13
|
+
resourceId: '<RESOURCE_ID>',
|
|
14
|
+
schedule: '',
|
|
15
|
+
active: false, // optional
|
|
16
|
+
data: {} // optional
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
console.log(result);
|
|
20
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.getSchedule({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
scheduleId: '<SCHEDULE_ID>'
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
console.log(result);
|
|
16
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.listSchedules({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
queries: [], // optional
|
|
13
|
+
total: false // optional
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
console.log(result);
|
|
17
|
+
```
|
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": "3.0.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"build:libs": "rollup -c"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"json-bigint": "1.0.0"
|
|
29
|
-
"bignumber.js": "9.0.0"
|
|
28
|
+
"json-bigint": "1.0.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@rollup/plugin-commonjs": "22.0.0",
|
package/src/channel.ts
CHANGED
|
@@ -78,6 +78,10 @@ export class Channel<T> {
|
|
|
78
78
|
return this.resolve("create");
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
upsert(this: Channel<Document | Row>): Channel<Resolved> {
|
|
82
|
+
return this.resolve("upsert");
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
update(this: Channel<Actionable>): Channel<Resolved> {
|
|
82
86
|
return this.resolve("update");
|
|
83
87
|
}
|
package/src/client.ts
CHANGED
|
@@ -2,15 +2,23 @@ import { Models } from './models';
|
|
|
2
2
|
import { Channel, ActionableChannel, ResolvedChannel } from './channel';
|
|
3
3
|
import { Query } from './query';
|
|
4
4
|
import JSONbigModule from 'json-bigint';
|
|
5
|
-
import BigNumber from 'bignumber.js';
|
|
6
5
|
const JSONbigParser = JSONbigModule({ storeAsString: false });
|
|
7
6
|
const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
|
|
8
7
|
|
|
9
8
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
10
9
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
11
10
|
|
|
11
|
+
function isBigNumber(value: any): boolean {
|
|
12
|
+
return value !== null
|
|
13
|
+
&& typeof value === 'object'
|
|
14
|
+
&& value._isBigNumber === true
|
|
15
|
+
&& typeof value.isInteger === 'function'
|
|
16
|
+
&& typeof value.toFixed === 'function'
|
|
17
|
+
&& typeof value.toNumber === 'function';
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
function reviver(_key: string, value: any): any {
|
|
13
|
-
if (
|
|
21
|
+
if (isBigNumber(value)) {
|
|
14
22
|
if (value.isInteger()) {
|
|
15
23
|
const str = value.toFixed();
|
|
16
24
|
const bi = BigInt(str);
|
|
@@ -387,7 +395,7 @@ class Client {
|
|
|
387
395
|
'x-sdk-name': 'Console',
|
|
388
396
|
'x-sdk-platform': 'console',
|
|
389
397
|
'x-sdk-language': 'web',
|
|
390
|
-
'x-sdk-version': '
|
|
398
|
+
'x-sdk-version': '3.0.0',
|
|
391
399
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
392
400
|
};
|
|
393
401
|
|
|
@@ -6,24 +6,35 @@ export enum BuildRuntime {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
24
33
|
Deno140 = 'deno-1.40',
|
|
25
34
|
Deno146 = 'deno-1.46',
|
|
26
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
27
38
|
Dart215 = 'dart-2.15',
|
|
28
39
|
Dart216 = 'dart-2.16',
|
|
29
40
|
Dart217 = 'dart-2.17',
|
|
@@ -39,25 +50,34 @@ export enum BuildRuntime {
|
|
|
39
50
|
Dotnet60 = 'dotnet-6.0',
|
|
40
51
|
Dotnet70 = 'dotnet-7.0',
|
|
41
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
42
54
|
Java80 = 'java-8.0',
|
|
43
55
|
Java110 = 'java-11.0',
|
|
44
56
|
Java170 = 'java-17.0',
|
|
45
57
|
Java180 = 'java-18.0',
|
|
46
58
|
Java210 = 'java-21.0',
|
|
47
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
48
61
|
Swift55 = 'swift-5.5',
|
|
49
62
|
Swift58 = 'swift-5.8',
|
|
50
63
|
Swift59 = 'swift-5.9',
|
|
51
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
52
66
|
Kotlin16 = 'kotlin-1.6',
|
|
53
67
|
Kotlin18 = 'kotlin-1.8',
|
|
54
68
|
Kotlin19 = 'kotlin-1.9',
|
|
55
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
56
71
|
Cpp17 = 'cpp-17',
|
|
57
72
|
Cpp20 = 'cpp-20',
|
|
58
73
|
Bun10 = 'bun-1.0',
|
|
59
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
60
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
61
81
|
Static1 = 'static-1',
|
|
62
82
|
Flutter324 = 'flutter-3.24',
|
|
63
83
|
Flutter327 = 'flutter-3.27',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export enum EmailTemplateType {
|
|
2
2
|
Verification = 'verification',
|
|
3
|
-
|
|
3
|
+
MagicSession = 'magicSession',
|
|
4
4
|
Recovery = 'recovery',
|
|
5
5
|
Invitation = 'invitation',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
MfaChallenge = 'mfaChallenge',
|
|
7
|
+
SessionAlert = 'sessionAlert',
|
|
8
|
+
OtpSession = 'otpSession',
|
|
9
9
|
}
|
package/src/enums/runtime.ts
CHANGED
|
@@ -6,24 +6,35 @@ export enum Runtime {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
24
33
|
Deno140 = 'deno-1.40',
|
|
25
34
|
Deno146 = 'deno-1.46',
|
|
26
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
27
38
|
Dart215 = 'dart-2.15',
|
|
28
39
|
Dart216 = 'dart-2.16',
|
|
29
40
|
Dart217 = 'dart-2.17',
|
|
@@ -39,25 +50,34 @@ export enum Runtime {
|
|
|
39
50
|
Dotnet60 = 'dotnet-6.0',
|
|
40
51
|
Dotnet70 = 'dotnet-7.0',
|
|
41
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
42
54
|
Java80 = 'java-8.0',
|
|
43
55
|
Java110 = 'java-11.0',
|
|
44
56
|
Java170 = 'java-17.0',
|
|
45
57
|
Java180 = 'java-18.0',
|
|
46
58
|
Java210 = 'java-21.0',
|
|
47
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
48
61
|
Swift55 = 'swift-5.5',
|
|
49
62
|
Swift58 = 'swift-5.8',
|
|
50
63
|
Swift59 = 'swift-5.9',
|
|
51
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
52
66
|
Kotlin16 = 'kotlin-1.6',
|
|
53
67
|
Kotlin18 = 'kotlin-1.8',
|
|
54
68
|
Kotlin19 = 'kotlin-1.9',
|
|
55
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
56
71
|
Cpp17 = 'cpp-17',
|
|
57
72
|
Cpp20 = 'cpp-20',
|
|
58
73
|
Bun10 = 'bun-1.0',
|
|
59
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
60
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
61
81
|
Static1 = 'static-1',
|
|
62
82
|
Flutter324 = 'flutter-3.24',
|
|
63
83
|
Flutter327 = 'flutter-3.27',
|
package/src/enums/runtimes.ts
CHANGED
|
@@ -6,24 +6,35 @@ export enum Runtimes {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
24
33
|
Deno140 = 'deno-1.40',
|
|
25
34
|
Deno146 = 'deno-1.46',
|
|
26
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
27
38
|
Dart215 = 'dart-2.15',
|
|
28
39
|
Dart216 = 'dart-2.16',
|
|
29
40
|
Dart217 = 'dart-2.17',
|
|
@@ -39,25 +50,34 @@ export enum Runtimes {
|
|
|
39
50
|
Dotnet60 = 'dotnet-6.0',
|
|
40
51
|
Dotnet70 = 'dotnet-7.0',
|
|
41
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
42
54
|
Java80 = 'java-8.0',
|
|
43
55
|
Java110 = 'java-11.0',
|
|
44
56
|
Java170 = 'java-17.0',
|
|
45
57
|
Java180 = 'java-18.0',
|
|
46
58
|
Java210 = 'java-21.0',
|
|
47
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
48
61
|
Swift55 = 'swift-5.5',
|
|
49
62
|
Swift58 = 'swift-5.8',
|
|
50
63
|
Swift59 = 'swift-5.9',
|
|
51
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
52
66
|
Kotlin16 = 'kotlin-1.6',
|
|
53
67
|
Kotlin18 = 'kotlin-1.8',
|
|
54
68
|
Kotlin19 = 'kotlin-1.9',
|
|
55
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
56
71
|
Cpp17 = 'cpp-17',
|
|
57
72
|
Cpp20 = 'cpp-20',
|
|
58
73
|
Bun10 = 'bun-1.0',
|
|
59
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
60
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
61
81
|
Static1 = 'static-1',
|
|
62
82
|
Flutter324 = 'flutter-3.24',
|
|
63
83
|
Flutter327 = 'flutter-3.27',
|
package/src/enums/scopes.ts
CHANGED
|
@@ -47,6 +47,8 @@ export enum Scopes {
|
|
|
47
47
|
TargetsWrite = 'targets.write',
|
|
48
48
|
RulesRead = 'rules.read',
|
|
49
49
|
RulesWrite = 'rules.write',
|
|
50
|
+
SchedulesRead = 'schedules.read',
|
|
51
|
+
SchedulesWrite = 'schedules.write',
|
|
50
52
|
MigrationsRead = 'migrations.read',
|
|
51
53
|
MigrationsWrite = 'migrations.write',
|
|
52
54
|
VcsRead = 'vcs.read',
|
package/src/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { Users } from './services/users';
|
|
|
33
33
|
export { Vcs } from './services/vcs';
|
|
34
34
|
export { Realtime } from './services/realtime';
|
|
35
35
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
36
|
+
export type { RealtimeSubscription } from './services/realtime';
|
|
36
37
|
export type { QueryTypes, QueryTypesList } from './query';
|
|
37
38
|
export { Permission } from './permission';
|
|
38
39
|
export { Role } from './role';
|
|
@@ -76,6 +77,7 @@ export { Region } from './enums/region';
|
|
|
76
77
|
export { Api } from './enums/api';
|
|
77
78
|
export { AuthMethod } from './enums/auth-method';
|
|
78
79
|
export { PlatformType } from './enums/platform-type';
|
|
80
|
+
export { ResourceType } from './enums/resource-type';
|
|
79
81
|
export { ApiService } from './enums/api-service';
|
|
80
82
|
export { SMTPSecure } from './enums/smtp-secure';
|
|
81
83
|
export { EmailTemplateType } from './enums/email-template-type';
|
package/src/models.ts
CHANGED
|
@@ -594,6 +594,20 @@ export namespace Models {
|
|
|
594
594
|
rules: ProxyRule[];
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Schedules List
|
|
599
|
+
*/
|
|
600
|
+
export type ScheduleList = {
|
|
601
|
+
/**
|
|
602
|
+
* Total number of schedules that matched your query.
|
|
603
|
+
*/
|
|
604
|
+
total: number;
|
|
605
|
+
/**
|
|
606
|
+
* List of schedules.
|
|
607
|
+
*/
|
|
608
|
+
schedules: Schedule[];
|
|
609
|
+
}
|
|
610
|
+
|
|
597
611
|
/**
|
|
598
612
|
* Locale codes list
|
|
599
613
|
*/
|
|
@@ -4643,6 +4657,10 @@ export namespace Models {
|
|
|
4643
4657
|
* Labels for the project.
|
|
4644
4658
|
*/
|
|
4645
4659
|
labels: string[];
|
|
4660
|
+
/**
|
|
4661
|
+
* Project status
|
|
4662
|
+
*/
|
|
4663
|
+
status: string;
|
|
4646
4664
|
/**
|
|
4647
4665
|
* Email/Password auth method status
|
|
4648
4666
|
*/
|
|
@@ -4727,10 +4745,6 @@ export namespace Models {
|
|
|
4727
4745
|
* Project region
|
|
4728
4746
|
*/
|
|
4729
4747
|
region: string;
|
|
4730
|
-
/**
|
|
4731
|
-
* Project status
|
|
4732
|
-
*/
|
|
4733
|
-
status: string;
|
|
4734
4748
|
/**
|
|
4735
4749
|
* Billing limits reached
|
|
4736
4750
|
*/
|
|
@@ -6221,6 +6235,56 @@ export namespace Models {
|
|
|
6221
6235
|
renewAt: string;
|
|
6222
6236
|
}
|
|
6223
6237
|
|
|
6238
|
+
/**
|
|
6239
|
+
* Schedule
|
|
6240
|
+
*/
|
|
6241
|
+
export type Schedule = {
|
|
6242
|
+
/**
|
|
6243
|
+
* Schedule ID.
|
|
6244
|
+
*/
|
|
6245
|
+
$id: string;
|
|
6246
|
+
/**
|
|
6247
|
+
* Schedule creation date in ISO 8601 format.
|
|
6248
|
+
*/
|
|
6249
|
+
$createdAt: string;
|
|
6250
|
+
/**
|
|
6251
|
+
* Schedule update date in ISO 8601 format.
|
|
6252
|
+
*/
|
|
6253
|
+
$updatedAt: string;
|
|
6254
|
+
/**
|
|
6255
|
+
* The resource type associated with this schedule.
|
|
6256
|
+
*/
|
|
6257
|
+
resourceType: string;
|
|
6258
|
+
/**
|
|
6259
|
+
* The resource ID associated with this schedule.
|
|
6260
|
+
*/
|
|
6261
|
+
resourceId: string;
|
|
6262
|
+
/**
|
|
6263
|
+
* Change-tracking timestamp used by the scheduler to detect resource changes in ISO 8601 format.
|
|
6264
|
+
*/
|
|
6265
|
+
resourceUpdatedAt: string;
|
|
6266
|
+
/**
|
|
6267
|
+
* The project ID associated with this schedule.
|
|
6268
|
+
*/
|
|
6269
|
+
projectId: string;
|
|
6270
|
+
/**
|
|
6271
|
+
* The CRON schedule expression.
|
|
6272
|
+
*/
|
|
6273
|
+
schedule: string;
|
|
6274
|
+
/**
|
|
6275
|
+
* Schedule data used to store resource-specific context needed for execution.
|
|
6276
|
+
*/
|
|
6277
|
+
data: object;
|
|
6278
|
+
/**
|
|
6279
|
+
* Whether the schedule is active.
|
|
6280
|
+
*/
|
|
6281
|
+
active: boolean;
|
|
6282
|
+
/**
|
|
6283
|
+
* The region where the schedule is deployed.
|
|
6284
|
+
*/
|
|
6285
|
+
region: string;
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6224
6288
|
/**
|
|
6225
6289
|
* SmsTemplate
|
|
6226
6290
|
*/
|
package/src/services/account.ts
CHANGED
|
@@ -3042,7 +3042,7 @@ export class Account {
|
|
|
3042
3042
|
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
|
|
3043
3043
|
*
|
|
3044
3044
|
*
|
|
3045
|
-
* @param {OAuthProvider} params.provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom
|
|
3045
|
+
* @param {OAuthProvider} params.provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
|
3046
3046
|
* @param {string} params.success - URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3047
3047
|
* @param {string} params.failure - URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3048
3048
|
* @param {string[]} params.scopes - A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|
|
@@ -3058,7 +3058,7 @@ export class Account {
|
|
|
3058
3058
|
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
|
|
3059
3059
|
*
|
|
3060
3060
|
*
|
|
3061
|
-
* @param {OAuthProvider} provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom
|
|
3061
|
+
* @param {OAuthProvider} provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
|
3062
3062
|
* @param {string} success - URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3063
3063
|
* @param {string} failure - URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3064
3064
|
* @param {string[]} scopes - A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|
|
@@ -3795,7 +3795,7 @@ export class Account {
|
|
|
3795
3795
|
*
|
|
3796
3796
|
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
|
|
3797
3797
|
*
|
|
3798
|
-
* @param {OAuthProvider} params.provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom
|
|
3798
|
+
* @param {OAuthProvider} params.provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
|
3799
3799
|
* @param {string} params.success - URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3800
3800
|
* @param {string} params.failure - URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3801
3801
|
* @param {string[]} params.scopes - A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|
|
@@ -3810,7 +3810,7 @@ export class Account {
|
|
|
3810
3810
|
*
|
|
3811
3811
|
* A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
|
|
3812
3812
|
*
|
|
3813
|
-
* @param {OAuthProvider} provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom
|
|
3813
|
+
* @param {OAuthProvider} provider - OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
|
|
3814
3814
|
* @param {string} success - URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3815
3815
|
* @param {string} failure - URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
3816
3816
|
* @param {string[]} scopes - A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|