@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +199 -11
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +200 -11
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +252 -44
  8. package/docs/examples/projects/create-schedule.md +20 -0
  9. package/docs/examples/projects/get-schedule.md +16 -0
  10. package/docs/examples/projects/list-schedules.md +17 -0
  11. package/package.json +2 -3
  12. package/src/channel.ts +4 -0
  13. package/src/client.ts +11 -3
  14. package/src/enums/build-runtime.ts +20 -0
  15. package/src/enums/email-template-type.ts +4 -4
  16. package/src/enums/o-auth-provider.ts +0 -2
  17. package/src/enums/resource-type.ts +6 -0
  18. package/src/enums/runtime.ts +20 -0
  19. package/src/enums/runtimes.ts +20 -0
  20. package/src/enums/scopes.ts +2 -0
  21. package/src/enums/sms-template-type.ts +1 -1
  22. package/src/index.ts +2 -0
  23. package/src/models.ts +68 -4
  24. package/src/services/account.ts +4 -4
  25. package/src/services/projects.ts +223 -0
  26. package/types/channel.d.ts +1 -0
  27. package/types/enums/build-runtime.d.ts +20 -0
  28. package/types/enums/email-template-type.d.ts +4 -4
  29. package/types/enums/o-auth-provider.d.ts +1 -3
  30. package/types/enums/resource-type.d.ts +6 -0
  31. package/types/enums/runtime.d.ts +20 -0
  32. package/types/enums/runtimes.d.ts +20 -0
  33. package/types/enums/scopes.d.ts +2 -0
  34. package/types/enums/sms-template-type.d.ts +1 -1
  35. package/types/index.d.ts +2 -0
  36. package/types/models.d.ts +66 -4
  37. package/types/services/account.d.ts +4 -4
  38. package/types/services/projects.d.ts +82 -0
@@ -8,6 +8,7 @@ import { AuthMethod } from '../enums/auth-method';
8
8
  import { Scopes } from '../enums/scopes';
9
9
  import { OAuthProvider } from '../enums/o-auth-provider';
10
10
  import { PlatformType } from '../enums/platform-type';
11
+ import { ResourceType } from '../enums/resource-type';
11
12
  import { ApiService } from '../enums/api-service';
12
13
  import { SMTPSecure } from '../enums/smtp-secure';
13
14
  import { EmailTemplateType } from '../enums/email-template-type';
@@ -2727,6 +2728,228 @@ export class Projects {
2727
2728
  );
2728
2729
  }
2729
2730
 
2731
+ /**
2732
+ * Get a list of all the project's schedules. You can use the query params to filter your results.
2733
+ *
2734
+ * @param {string} params.projectId - Project unique ID.
2735
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: resourceType, resourceId, projectId, schedule, active, region
2736
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
2737
+ * @throws {AppwriteException}
2738
+ * @returns {Promise<Models.ScheduleList>}
2739
+ */
2740
+ listSchedules(params: { projectId: string, queries?: string[], total?: boolean }): Promise<Models.ScheduleList>;
2741
+ /**
2742
+ * Get a list of all the project's schedules. You can use the query params to filter your results.
2743
+ *
2744
+ * @param {string} projectId - Project unique ID.
2745
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: resourceType, resourceId, projectId, schedule, active, region
2746
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
2747
+ * @throws {AppwriteException}
2748
+ * @returns {Promise<Models.ScheduleList>}
2749
+ * @deprecated Use the object parameter style method for a better developer experience.
2750
+ */
2751
+ listSchedules(projectId: string, queries?: string[], total?: boolean): Promise<Models.ScheduleList>;
2752
+ listSchedules(
2753
+ paramsOrFirst: { projectId: string, queries?: string[], total?: boolean } | string,
2754
+ ...rest: [(string[])?, (boolean)?]
2755
+ ): Promise<Models.ScheduleList> {
2756
+ let params: { projectId: string, queries?: string[], total?: boolean };
2757
+
2758
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2759
+ params = (paramsOrFirst || {}) as { projectId: string, queries?: string[], total?: boolean };
2760
+ } else {
2761
+ params = {
2762
+ projectId: paramsOrFirst as string,
2763
+ queries: rest[0] as string[],
2764
+ total: rest[1] as boolean
2765
+ };
2766
+ }
2767
+
2768
+ const projectId = params.projectId;
2769
+ const queries = params.queries;
2770
+ const total = params.total;
2771
+
2772
+ if (typeof projectId === 'undefined') {
2773
+ throw new AppwriteException('Missing required parameter: "projectId"');
2774
+ }
2775
+
2776
+ const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
2777
+ const payload: Payload = {};
2778
+ if (typeof queries !== 'undefined') {
2779
+ payload['queries'] = queries;
2780
+ }
2781
+ if (typeof total !== 'undefined') {
2782
+ payload['total'] = total;
2783
+ }
2784
+ const uri = new URL(this.client.config.endpoint + apiPath);
2785
+
2786
+ const apiHeaders: { [header: string]: string } = {
2787
+ }
2788
+
2789
+ return this.client.call(
2790
+ 'get',
2791
+ uri,
2792
+ apiHeaders,
2793
+ payload
2794
+ );
2795
+ }
2796
+
2797
+ /**
2798
+ * Create a new schedule for a resource.
2799
+ *
2800
+ * @param {string} params.projectId - Project unique ID.
2801
+ * @param {ResourceType} params.resourceType - The resource type for the schedule. Possible values: function, execution, message, backup.
2802
+ * @param {string} params.resourceId - The resource ID to associate with this schedule.
2803
+ * @param {string} params.schedule - Schedule CRON expression.
2804
+ * @param {boolean} params.active - Whether the schedule is active.
2805
+ * @param {object} params.data - Schedule data as a JSON string. Used to store resource-specific context needed for execution.
2806
+ * @throws {AppwriteException}
2807
+ * @returns {Promise<Models.Schedule>}
2808
+ */
2809
+ createSchedule(params: { projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object }): Promise<Models.Schedule>;
2810
+ /**
2811
+ * Create a new schedule for a resource.
2812
+ *
2813
+ * @param {string} projectId - Project unique ID.
2814
+ * @param {ResourceType} resourceType - The resource type for the schedule. Possible values: function, execution, message, backup.
2815
+ * @param {string} resourceId - The resource ID to associate with this schedule.
2816
+ * @param {string} schedule - Schedule CRON expression.
2817
+ * @param {boolean} active - Whether the schedule is active.
2818
+ * @param {object} data - Schedule data as a JSON string. Used to store resource-specific context needed for execution.
2819
+ * @throws {AppwriteException}
2820
+ * @returns {Promise<Models.Schedule>}
2821
+ * @deprecated Use the object parameter style method for a better developer experience.
2822
+ */
2823
+ createSchedule(projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object): Promise<Models.Schedule>;
2824
+ createSchedule(
2825
+ paramsOrFirst: { projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object } | string,
2826
+ ...rest: [(ResourceType)?, (string)?, (string)?, (boolean)?, (object)?]
2827
+ ): Promise<Models.Schedule> {
2828
+ let params: { projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object };
2829
+
2830
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2831
+ params = (paramsOrFirst || {}) as { projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object };
2832
+ } else {
2833
+ params = {
2834
+ projectId: paramsOrFirst as string,
2835
+ resourceType: rest[0] as ResourceType,
2836
+ resourceId: rest[1] as string,
2837
+ schedule: rest[2] as string,
2838
+ active: rest[3] as boolean,
2839
+ data: rest[4] as object
2840
+ };
2841
+ }
2842
+
2843
+ const projectId = params.projectId;
2844
+ const resourceType = params.resourceType;
2845
+ const resourceId = params.resourceId;
2846
+ const schedule = params.schedule;
2847
+ const active = params.active;
2848
+ const data = params.data;
2849
+
2850
+ if (typeof projectId === 'undefined') {
2851
+ throw new AppwriteException('Missing required parameter: "projectId"');
2852
+ }
2853
+ if (typeof resourceType === 'undefined') {
2854
+ throw new AppwriteException('Missing required parameter: "resourceType"');
2855
+ }
2856
+ if (typeof resourceId === 'undefined') {
2857
+ throw new AppwriteException('Missing required parameter: "resourceId"');
2858
+ }
2859
+ if (typeof schedule === 'undefined') {
2860
+ throw new AppwriteException('Missing required parameter: "schedule"');
2861
+ }
2862
+
2863
+ const apiPath = '/projects/{projectId}/schedules'.replace('{projectId}', projectId);
2864
+ const payload: Payload = {};
2865
+ if (typeof resourceType !== 'undefined') {
2866
+ payload['resourceType'] = resourceType;
2867
+ }
2868
+ if (typeof resourceId !== 'undefined') {
2869
+ payload['resourceId'] = resourceId;
2870
+ }
2871
+ if (typeof schedule !== 'undefined') {
2872
+ payload['schedule'] = schedule;
2873
+ }
2874
+ if (typeof active !== 'undefined') {
2875
+ payload['active'] = active;
2876
+ }
2877
+ if (typeof data !== 'undefined') {
2878
+ payload['data'] = data;
2879
+ }
2880
+ const uri = new URL(this.client.config.endpoint + apiPath);
2881
+
2882
+ const apiHeaders: { [header: string]: string } = {
2883
+ 'content-type': 'application/json',
2884
+ }
2885
+
2886
+ return this.client.call(
2887
+ 'post',
2888
+ uri,
2889
+ apiHeaders,
2890
+ payload
2891
+ );
2892
+ }
2893
+
2894
+ /**
2895
+ * Get a schedule by its unique ID.
2896
+ *
2897
+ * @param {string} params.projectId - Project unique ID.
2898
+ * @param {string} params.scheduleId - Schedule ID.
2899
+ * @throws {AppwriteException}
2900
+ * @returns {Promise<Models.Schedule>}
2901
+ */
2902
+ getSchedule(params: { projectId: string, scheduleId: string }): Promise<Models.Schedule>;
2903
+ /**
2904
+ * Get a schedule by its unique ID.
2905
+ *
2906
+ * @param {string} projectId - Project unique ID.
2907
+ * @param {string} scheduleId - Schedule ID.
2908
+ * @throws {AppwriteException}
2909
+ * @returns {Promise<Models.Schedule>}
2910
+ * @deprecated Use the object parameter style method for a better developer experience.
2911
+ */
2912
+ getSchedule(projectId: string, scheduleId: string): Promise<Models.Schedule>;
2913
+ getSchedule(
2914
+ paramsOrFirst: { projectId: string, scheduleId: string } | string,
2915
+ ...rest: [(string)?]
2916
+ ): Promise<Models.Schedule> {
2917
+ let params: { projectId: string, scheduleId: string };
2918
+
2919
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2920
+ params = (paramsOrFirst || {}) as { projectId: string, scheduleId: string };
2921
+ } else {
2922
+ params = {
2923
+ projectId: paramsOrFirst as string,
2924
+ scheduleId: rest[0] as string
2925
+ };
2926
+ }
2927
+
2928
+ const projectId = params.projectId;
2929
+ const scheduleId = params.scheduleId;
2930
+
2931
+ if (typeof projectId === 'undefined') {
2932
+ throw new AppwriteException('Missing required parameter: "projectId"');
2933
+ }
2934
+ if (typeof scheduleId === 'undefined') {
2935
+ throw new AppwriteException('Missing required parameter: "scheduleId"');
2936
+ }
2937
+
2938
+ const apiPath = '/projects/{projectId}/schedules/{scheduleId}'.replace('{projectId}', projectId).replace('{scheduleId}', scheduleId);
2939
+ const payload: Payload = {};
2940
+ const uri = new URL(this.client.config.endpoint + apiPath);
2941
+
2942
+ const apiHeaders: { [header: string]: string } = {
2943
+ }
2944
+
2945
+ return this.client.call(
2946
+ 'get',
2947
+ uri,
2948
+ apiHeaders,
2949
+ payload
2950
+ );
2951
+ }
2952
+
2730
2953
  /**
2731
2954
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
2732
2955
  *
@@ -51,6 +51,7 @@ export declare class Channel<T> {
51
51
  row(this: Channel<Table>, id?: string): Channel<Row>;
52
52
  file(this: Channel<Bucket>, id?: string): Channel<File>;
53
53
  create(this: Channel<Actionable>): Channel<Resolved>;
54
+ upsert(this: Channel<Document | Row>): Channel<Resolved>;
54
55
  update(this: Channel<Actionable>): Channel<Resolved>;
55
56
  delete(this: Channel<Actionable>): Channel<Resolved>;
56
57
  static database(id?: string): Channel<Database>;
@@ -6,24 +6,35 @@ export declare 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 declare 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 declare 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
  }
@@ -37,7 +37,5 @@ export declare enum OAuthProvider {
37
37
  Yammer = "yammer",
38
38
  Yandex = "yandex",
39
39
  Zoho = "zoho",
40
- Zoom = "zoom",
41
- GithubImagine = "githubImagine",
42
- GoogleImagine = "googleImagine"
40
+ Zoom = "zoom"
43
41
  }
@@ -0,0 +1,6 @@
1
+ export declare enum ResourceType {
2
+ Function = "function",
3
+ Execution = "execution",
4
+ Message = "message",
5
+ Backup = "backup"
6
+ }
@@ -6,24 +6,35 @@ export declare 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 declare 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 declare 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 declare 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 declare 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 declare enum SmsTemplateType {
2
2
  Verification = "verification",
3
3
  Login = "login",
4
4
  Invitation = "invitation",
5
- Mfachallenge = "mfachallenge"
5
+ MfaChallenge = "mfaChallenge"
6
6
  }
package/types/index.d.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/types/models.d.ts CHANGED
@@ -550,6 +550,19 @@ export declare namespace Models {
550
550
  */
551
551
  rules: ProxyRule[];
552
552
  };
553
+ /**
554
+ * Schedules List
555
+ */
556
+ export type ScheduleList = {
557
+ /**
558
+ * Total number of schedules that matched your query.
559
+ */
560
+ total: number;
561
+ /**
562
+ * List of schedules.
563
+ */
564
+ schedules: Schedule[];
565
+ };
553
566
  /**
554
567
  * Locale codes list
555
568
  */
@@ -4500,6 +4513,10 @@ export declare namespace Models {
4500
4513
  * Labels for the project.
4501
4514
  */
4502
4515
  labels: string[];
4516
+ /**
4517
+ * Project status
4518
+ */
4519
+ status: string;
4503
4520
  /**
4504
4521
  * Email/Password auth method status
4505
4522
  */
@@ -4584,10 +4601,6 @@ export declare namespace Models {
4584
4601
  * Project region
4585
4602
  */
4586
4603
  region: string;
4587
- /**
4588
- * Project status
4589
- */
4590
- status: string;
4591
4604
  /**
4592
4605
  * Billing limits reached
4593
4606
  */
@@ -6043,6 +6056,55 @@ export declare namespace Models {
6043
6056
  */
6044
6057
  renewAt: string;
6045
6058
  };
6059
+ /**
6060
+ * Schedule
6061
+ */
6062
+ export type Schedule = {
6063
+ /**
6064
+ * Schedule ID.
6065
+ */
6066
+ $id: string;
6067
+ /**
6068
+ * Schedule creation date in ISO 8601 format.
6069
+ */
6070
+ $createdAt: string;
6071
+ /**
6072
+ * Schedule update date in ISO 8601 format.
6073
+ */
6074
+ $updatedAt: string;
6075
+ /**
6076
+ * The resource type associated with this schedule.
6077
+ */
6078
+ resourceType: string;
6079
+ /**
6080
+ * The resource ID associated with this schedule.
6081
+ */
6082
+ resourceId: string;
6083
+ /**
6084
+ * Change-tracking timestamp used by the scheduler to detect resource changes in ISO 8601 format.
6085
+ */
6086
+ resourceUpdatedAt: string;
6087
+ /**
6088
+ * The project ID associated with this schedule.
6089
+ */
6090
+ projectId: string;
6091
+ /**
6092
+ * The CRON schedule expression.
6093
+ */
6094
+ schedule: string;
6095
+ /**
6096
+ * Schedule data used to store resource-specific context needed for execution.
6097
+ */
6098
+ data: object;
6099
+ /**
6100
+ * Whether the schedule is active.
6101
+ */
6102
+ active: boolean;
6103
+ /**
6104
+ * The region where the schedule is deployed.
6105
+ */
6106
+ region: string;
6107
+ };
6046
6108
  /**
6047
6109
  * SmsTemplate
6048
6110
  */
@@ -1076,7 +1076,7 @@ export declare class Account {
1076
1076
  * 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).
1077
1077
  *
1078
1078
  *
1079
- * @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.
1079
+ * @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.
1080
1080
  * @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.
1081
1081
  * @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.
1082
1082
  * @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.
@@ -1097,7 +1097,7 @@ export declare class Account {
1097
1097
  * 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).
1098
1098
  *
1099
1099
  *
1100
- * @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.
1100
+ * @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.
1101
1101
  * @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.
1102
1102
  * @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.
1103
1103
  * @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.
@@ -1353,7 +1353,7 @@ export declare class Account {
1353
1353
  *
1354
1354
  * 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).
1355
1355
  *
1356
- * @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.
1356
+ * @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.
1357
1357
  * @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.
1358
1358
  * @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.
1359
1359
  * @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.
@@ -1373,7 +1373,7 @@ export declare class Account {
1373
1373
  *
1374
1374
  * 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).
1375
1375
  *
1376
- * @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.
1376
+ * @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.
1377
1377
  * @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.
1378
1378
  * @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.
1379
1379
  * @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.