@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
@@ -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
  */
@@ -8280,6 +8342,10 @@ export declare namespace Models {
8280
8342
  * Domain registrar (e.g. "appwrite" or "third_party").
8281
8343
  */
8282
8344
  registrar: string;
8345
+ /**
8346
+ * Payment status for domain purchase.
8347
+ */
8348
+ paymentStatus: string;
8283
8349
  /**
8284
8350
  * Nameservers setting. "Appwrite" or empty string.
8285
8351
  */
@@ -8297,7 +8363,7 @@ export declare namespace Models {
8297
8363
  */
8298
8364
  autoRenewal: boolean;
8299
8365
  /**
8300
- * Renewal price (in USD).
8366
+ * Renewal price (in cents).
8301
8367
  */
8302
8368
  renewalPrice: number;
8303
8369
  /**
package/types/query.d.ts CHANGED
@@ -198,12 +198,34 @@ export declare class Query {
198
198
  static offset: (offset: number) => string;
199
199
  /**
200
200
  * Filter resources where attribute contains the specified value.
201
+ * For string attributes, checks if the string contains the substring.
201
202
  *
203
+ * Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
202
204
  * @param {string} attribute
203
205
  * @param {string | string[]} value
204
206
  * @returns {string}
205
207
  */
206
208
  static contains: (attribute: string, value: string | any[]) => string;
209
+ /**
210
+ * Filter resources where attribute contains ANY of the specified values.
211
+ * For array and relationship attributes, matches documents where the attribute
212
+ * contains at least one of the given values.
213
+ *
214
+ * @param {string} attribute
215
+ * @param {any[]} value
216
+ * @returns {string}
217
+ */
218
+ static containsAny: (attribute: string, value: any[]) => string;
219
+ /**
220
+ * Filter resources where attribute contains ALL of the specified values.
221
+ * For array and relationship attributes, matches documents where the attribute
222
+ * contains every one of the given values.
223
+ *
224
+ * @param {string} attribute
225
+ * @param {any[]} value
226
+ * @returns {string}
227
+ */
228
+ static containsAll: (attribute: string, value: any[]) => string;
207
229
  /**
208
230
  * Filter resources where attribute does not contain the specified value.
209
231
  *
@@ -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.
@@ -74,6 +74,55 @@ export declare class Domains {
74
74
  * @deprecated Use the object parameter style method for a better developer experience.
75
75
  */
76
76
  getPrice(domain: string, periodYears?: number, registrationType?: RegistrationType): Promise<Models.DomainPrice>;
77
+ /**
78
+ * Create a domain purchase with registrant information.
79
+ *
80
+ * @param {string} params.domain - Fully qualified domain name to purchase (for example, example.com).
81
+ * @param {string} params.teamId - Team ID that will own the domain.
82
+ * @param {string} params.firstName - Registrant first name used for domain registration.
83
+ * @param {string} params.lastName - Registrant last name used for domain registration.
84
+ * @param {string} params.email - Registrant email address for registration and notices.
85
+ * @param {string} params.phone - Registrant phone number in E.164 format (for example, +15555551234).
86
+ * @param {string} params.billingAddressId - Billing address ID used for registration contact details.
87
+ * @param {string} params.paymentMethodId - Payment method ID to authorize and capture the purchase.
88
+ * @param {string} params.addressLine3 - Additional address line for the registrant (line 3).
89
+ * @param {string} params.companyName - Company or organization name for the registrant.
90
+ * @param {number} params.periodYears - Registration term in years (1-10).
91
+ * @throws {AppwriteException}
92
+ * @returns {Promise<Models.Domain>}
93
+ */
94
+ createPurchase(params: {
95
+ domain: string;
96
+ teamId: string;
97
+ firstName: string;
98
+ lastName: string;
99
+ email: string;
100
+ phone: string;
101
+ billingAddressId: string;
102
+ paymentMethodId: string;
103
+ addressLine3?: string;
104
+ companyName?: string;
105
+ periodYears?: number;
106
+ }): Promise<Models.Domain>;
107
+ /**
108
+ * Create a domain purchase with registrant information.
109
+ *
110
+ * @param {string} domain - Fully qualified domain name to purchase (for example, example.com).
111
+ * @param {string} teamId - Team ID that will own the domain.
112
+ * @param {string} firstName - Registrant first name used for domain registration.
113
+ * @param {string} lastName - Registrant last name used for domain registration.
114
+ * @param {string} email - Registrant email address for registration and notices.
115
+ * @param {string} phone - Registrant phone number in E.164 format (for example, +15555551234).
116
+ * @param {string} billingAddressId - Billing address ID used for registration contact details.
117
+ * @param {string} paymentMethodId - Payment method ID to authorize and capture the purchase.
118
+ * @param {string} addressLine3 - Additional address line for the registrant (line 3).
119
+ * @param {string} companyName - Company or organization name for the registrant.
120
+ * @param {number} periodYears - Registration term in years (1-10).
121
+ * @throws {AppwriteException}
122
+ * @returns {Promise<Models.Domain>}
123
+ * @deprecated Use the object parameter style method for a better developer experience.
124
+ */
125
+ createPurchase(domain: string, teamId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number): Promise<Models.Domain>;
77
126
  /**
78
127
  * List domain suggestions.
79
128
  *
@@ -919,21 +919,24 @@ export declare class Organizations {
919
919
  * Get Scopes
920
920
  *
921
921
  * @param {string} params.organizationId - Organization id
922
+ * @param {string} params.projectId - Project id
922
923
  * @throws {AppwriteException}
923
924
  * @returns {Promise<Models.Roles>}
924
925
  */
925
926
  getScopes(params: {
926
927
  organizationId: string;
928
+ projectId?: string;
927
929
  }): Promise<Models.Roles>;
928
930
  /**
929
931
  * Get Scopes
930
932
  *
931
933
  * @param {string} organizationId - Organization id
934
+ * @param {string} projectId - Project id
932
935
  * @throws {AppwriteException}
933
936
  * @returns {Promise<Models.Roles>}
934
937
  * @deprecated Use the object parameter style method for a better developer experience.
935
938
  */
936
- getScopes(organizationId: string): Promise<Models.Roles>;
939
+ getScopes(organizationId: string, projectId?: string): Promise<Models.Roles>;
937
940
  /**
938
941
  * Set an organization's billing tax ID.
939
942
  *
@@ -6,6 +6,7 @@ import { AuthMethod } from '../enums/auth-method';
6
6
  import { Scopes } from '../enums/scopes';
7
7
  import { OAuthProvider } from '../enums/o-auth-provider';
8
8
  import { PlatformType } from '../enums/platform-type';
9
+ import { ResourceType } from '../enums/resource-type';
9
10
  import { ApiService } from '../enums/api-service';
10
11
  import { SMTPSecure } from '../enums/smtp-secure';
11
12
  import { EmailTemplateType } from '../enums/email-template-type';
@@ -991,6 +992,87 @@ export declare class Projects {
991
992
  * @deprecated Use the object parameter style method for a better developer experience.
992
993
  */
993
994
  deletePlatform(projectId: string, platformId: string): Promise<{}>;
995
+ /**
996
+ * Get a list of all the project's schedules. You can use the query params to filter your results.
997
+ *
998
+ * @param {string} params.projectId - Project unique ID.
999
+ * @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
1000
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1001
+ * @throws {AppwriteException}
1002
+ * @returns {Promise<Models.ScheduleList>}
1003
+ */
1004
+ listSchedules(params: {
1005
+ projectId: string;
1006
+ queries?: string[];
1007
+ total?: boolean;
1008
+ }): Promise<Models.ScheduleList>;
1009
+ /**
1010
+ * Get a list of all the project's schedules. You can use the query params to filter your results.
1011
+ *
1012
+ * @param {string} projectId - Project unique ID.
1013
+ * @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
1014
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1015
+ * @throws {AppwriteException}
1016
+ * @returns {Promise<Models.ScheduleList>}
1017
+ * @deprecated Use the object parameter style method for a better developer experience.
1018
+ */
1019
+ listSchedules(projectId: string, queries?: string[], total?: boolean): Promise<Models.ScheduleList>;
1020
+ /**
1021
+ * Create a new schedule for a resource.
1022
+ *
1023
+ * @param {string} params.projectId - Project unique ID.
1024
+ * @param {ResourceType} params.resourceType - The resource type for the schedule. Possible values: function, execution, message, backup.
1025
+ * @param {string} params.resourceId - The resource ID to associate with this schedule.
1026
+ * @param {string} params.schedule - Schedule CRON expression.
1027
+ * @param {boolean} params.active - Whether the schedule is active.
1028
+ * @param {object} params.data - Schedule data as a JSON string. Used to store resource-specific context needed for execution.
1029
+ * @throws {AppwriteException}
1030
+ * @returns {Promise<Models.Schedule>}
1031
+ */
1032
+ createSchedule(params: {
1033
+ projectId: string;
1034
+ resourceType: ResourceType;
1035
+ resourceId: string;
1036
+ schedule: string;
1037
+ active?: boolean;
1038
+ data?: object;
1039
+ }): Promise<Models.Schedule>;
1040
+ /**
1041
+ * Create a new schedule for a resource.
1042
+ *
1043
+ * @param {string} projectId - Project unique ID.
1044
+ * @param {ResourceType} resourceType - The resource type for the schedule. Possible values: function, execution, message, backup.
1045
+ * @param {string} resourceId - The resource ID to associate with this schedule.
1046
+ * @param {string} schedule - Schedule CRON expression.
1047
+ * @param {boolean} active - Whether the schedule is active.
1048
+ * @param {object} data - Schedule data as a JSON string. Used to store resource-specific context needed for execution.
1049
+ * @throws {AppwriteException}
1050
+ * @returns {Promise<Models.Schedule>}
1051
+ * @deprecated Use the object parameter style method for a better developer experience.
1052
+ */
1053
+ createSchedule(projectId: string, resourceType: ResourceType, resourceId: string, schedule: string, active?: boolean, data?: object): Promise<Models.Schedule>;
1054
+ /**
1055
+ * Get a schedule by its unique ID.
1056
+ *
1057
+ * @param {string} params.projectId - Project unique ID.
1058
+ * @param {string} params.scheduleId - Schedule ID.
1059
+ * @throws {AppwriteException}
1060
+ * @returns {Promise<Models.Schedule>}
1061
+ */
1062
+ getSchedule(params: {
1063
+ projectId: string;
1064
+ scheduleId: string;
1065
+ }): Promise<Models.Schedule>;
1066
+ /**
1067
+ * Get a schedule by its unique ID.
1068
+ *
1069
+ * @param {string} projectId - Project unique ID.
1070
+ * @param {string} scheduleId - Schedule ID.
1071
+ * @throws {AppwriteException}
1072
+ * @returns {Promise<Models.Schedule>}
1073
+ * @deprecated Use the object parameter style method for a better developer experience.
1074
+ */
1075
+ getSchedule(projectId: string, scheduleId: string): Promise<Models.Schedule>;
994
1076
  /**
995
1077
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
996
1078
  *