@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +330 -14
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +331 -14
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +383 -47
  8. package/docs/examples/domains/create-purchase.md +25 -0
  9. package/docs/examples/organizations/get-scopes.md +2 -1
  10. package/docs/examples/projects/create-schedule.md +20 -0
  11. package/docs/examples/projects/get-schedule.md +16 -0
  12. package/docs/examples/projects/list-schedules.md +17 -0
  13. package/package.json +2 -3
  14. package/src/channel.ts +4 -0
  15. package/src/client.ts +17 -4
  16. package/src/enums/build-runtime.ts +20 -0
  17. package/src/enums/email-template-type.ts +4 -4
  18. package/src/enums/o-auth-provider.ts +0 -2
  19. package/src/enums/resource-type.ts +6 -0
  20. package/src/enums/runtime.ts +20 -0
  21. package/src/enums/runtimes.ts +20 -0
  22. package/src/enums/scopes.ts +2 -0
  23. package/src/enums/sms-template-type.ts +1 -1
  24. package/src/index.ts +2 -0
  25. package/src/models.ts +73 -5
  26. package/src/query.ts +26 -0
  27. package/src/services/account.ts +4 -4
  28. package/src/services/domains.ts +147 -0
  29. package/src/services/organizations.ts +14 -6
  30. package/src/services/projects.ts +223 -0
  31. package/types/channel.d.ts +1 -0
  32. package/types/enums/build-runtime.d.ts +20 -0
  33. package/types/enums/email-template-type.d.ts +4 -4
  34. package/types/enums/o-auth-provider.d.ts +1 -3
  35. package/types/enums/resource-type.d.ts +6 -0
  36. package/types/enums/runtime.d.ts +20 -0
  37. package/types/enums/runtimes.d.ts +20 -0
  38. package/types/enums/scopes.d.ts +2 -0
  39. package/types/enums/sms-template-type.d.ts +1 -1
  40. package/types/index.d.ts +2 -0
  41. package/types/models.d.ts +71 -5
  42. package/types/query.d.ts +22 -0
  43. package/types/services/account.d.ts +4 -4
  44. package/types/services/domains.d.ts +49 -0
  45. package/types/services/organizations.d.ts +4 -1
  46. package/types/services/projects.d.ts +82 -0
@@ -0,0 +1,25 @@
1
+ ```javascript
2
+ import { Client, Domains } 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 domains = new Domains(client);
9
+
10
+ const result = await domains.createPurchase({
11
+ domain: '',
12
+ teamId: '<TEAM_ID>',
13
+ firstName: '<FIRST_NAME>',
14
+ lastName: '<LAST_NAME>',
15
+ email: 'email@example.com',
16
+ phone: '+12065550100',
17
+ billingAddressId: '<BILLING_ADDRESS_ID>',
18
+ paymentMethodId: '<PAYMENT_METHOD_ID>',
19
+ addressLine3: '<ADDRESS_LINE3>', // optional
20
+ companyName: '<COMPANY_NAME>', // optional
21
+ periodYears: 1 // optional
22
+ });
23
+
24
+ console.log(result);
25
+ ```
@@ -8,7 +8,8 @@ const client = new Client()
8
8
  const organizations = new Organizations(client);
9
9
 
10
10
  const result = await organizations.getScopes({
11
- organizationId: '<ORGANIZATION_ID>'
11
+ organizationId: '<ORGANIZATION_ID>',
12
+ projectId: '<PROJECT_ID>' // optional
12
13
  });
13
14
 
14
15
  console.log(result);
@@ -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": "2.3.1",
5
+ "version": "3.1.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,22 +2,35 @@ 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);
10
+ const MAX_INT64 = BigInt('9223372036854775807');
11
+ const MIN_INT64 = BigInt('-9223372036854775808');
12
+
13
+ function isBigNumber(value: any): boolean {
14
+ return value !== null
15
+ && typeof value === 'object'
16
+ && value._isBigNumber === true
17
+ && typeof value.isInteger === 'function'
18
+ && typeof value.toFixed === 'function'
19
+ && typeof value.toNumber === 'function';
20
+ }
11
21
 
12
22
  function reviver(_key: string, value: any): any {
13
- if (BigNumber.isBigNumber(value)) {
23
+ if (isBigNumber(value)) {
14
24
  if (value.isInteger()) {
15
25
  const str = value.toFixed();
16
26
  const bi = BigInt(str);
17
27
  if (bi >= MIN_SAFE && bi <= MAX_SAFE) {
18
28
  return Number(str);
19
29
  }
20
- return bi;
30
+ if (bi >= MIN_INT64 && bi <= MAX_INT64) {
31
+ return bi;
32
+ }
33
+ return value.toNumber();
21
34
  }
22
35
  return value.toNumber();
23
36
  }
@@ -387,7 +400,7 @@ class Client {
387
400
  'x-sdk-name': 'Console',
388
401
  'x-sdk-platform': 'console',
389
402
  'x-sdk-language': 'web',
390
- 'x-sdk-version': '2.3.1',
403
+ 'x-sdk-version': '3.1.0',
391
404
  'X-Appwrite-Response-Format': '1.8.0',
392
405
  };
393
406
 
@@ -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
- Magicsession = 'magicsession',
3
+ MagicSession = 'magicSession',
4
4
  Recovery = 'recovery',
5
5
  Invitation = 'invitation',
6
- Mfachallenge = 'mfachallenge',
7
- Sessionalert = 'sessionalert',
8
- Otpsession = 'otpsession',
6
+ MfaChallenge = 'mfaChallenge',
7
+ SessionAlert = 'sessionAlert',
8
+ OtpSession = 'otpSession',
9
9
  }
@@ -38,6 +38,4 @@ export enum OAuthProvider {
38
38
  Yandex = 'yandex',
39
39
  Zoho = 'zoho',
40
40
  Zoom = 'zoom',
41
- GithubImagine = 'githubImagine',
42
- GoogleImagine = 'googleImagine',
43
41
  }
@@ -0,0 +1,6 @@
1
+ export enum ResourceType {
2
+ Function = 'function',
3
+ Execution = 'execution',
4
+ Message = 'message',
5
+ Backup = 'backup',
6
+ }
@@ -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',
@@ -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',
@@ -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',
@@ -2,5 +2,5 @@ export enum SmsTemplateType {
2
2
  Verification = 'verification',
3
3
  Login = 'login',
4
4
  Invitation = 'invitation',
5
- Mfachallenge = 'mfachallenge',
5
+ MfaChallenge = 'mfaChallenge',
6
6
  }
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
  */
@@ -8503,6 +8567,10 @@ export namespace Models {
8503
8567
  * Domain registrar (e.g. "appwrite" or "third_party").
8504
8568
  */
8505
8569
  registrar: string;
8570
+ /**
8571
+ * Payment status for domain purchase.
8572
+ */
8573
+ paymentStatus: string;
8506
8574
  /**
8507
8575
  * Nameservers setting. "Appwrite" or empty string.
8508
8576
  */
@@ -8520,7 +8588,7 @@ export namespace Models {
8520
8588
  */
8521
8589
  autoRenewal: boolean;
8522
8590
  /**
8523
- * Renewal price (in USD).
8591
+ * Renewal price (in cents).
8524
8592
  */
8525
8593
  renewalPrice: number;
8526
8594
  /**
package/src/query.ts CHANGED
@@ -272,7 +272,9 @@ export class Query {
272
272
 
273
273
  /**
274
274
  * Filter resources where attribute contains the specified value.
275
+ * For string attributes, checks if the string contains the substring.
275
276
  *
277
+ * Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
276
278
  * @param {string} attribute
277
279
  * @param {string | string[]} value
278
280
  * @returns {string}
@@ -280,6 +282,30 @@ export class Query {
280
282
  static contains = (attribute: string, value: string | any[]): string =>
281
283
  new Query("contains", attribute, value).toString();
282
284
 
285
+ /**
286
+ * Filter resources where attribute contains ANY of the specified values.
287
+ * For array and relationship attributes, matches documents where the attribute
288
+ * contains at least one of the given values.
289
+ *
290
+ * @param {string} attribute
291
+ * @param {any[]} value
292
+ * @returns {string}
293
+ */
294
+ static containsAny = (attribute: string, value: any[]): string =>
295
+ new Query("containsAny", attribute, value).toString();
296
+
297
+ /**
298
+ * Filter resources where attribute contains ALL of the specified values.
299
+ * For array and relationship attributes, matches documents where the attribute
300
+ * contains every one of the given values.
301
+ *
302
+ * @param {string} attribute
303
+ * @param {any[]} value
304
+ * @returns {string}
305
+ */
306
+ static containsAll = (attribute: string, value: any[]): string =>
307
+ new Query("containsAll", attribute, value).toString();
308
+
283
309
  /**
284
310
  * Filter resources where attribute does not contain the specified value.
285
311
  *
@@ -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, githubImagine, googleImagine.
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, githubImagine, googleImagine.
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, githubImagine, googleImagine.
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, githubImagine, googleImagine.
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.