@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
@@ -206,6 +206,153 @@ export class Domains {
206
206
  );
207
207
  }
208
208
 
209
+ /**
210
+ * Create a domain purchase with registrant information.
211
+ *
212
+ * @param {string} params.domain - Fully qualified domain name to purchase (for example, example.com).
213
+ * @param {string} params.teamId - Team ID that will own the domain.
214
+ * @param {string} params.firstName - Registrant first name used for domain registration.
215
+ * @param {string} params.lastName - Registrant last name used for domain registration.
216
+ * @param {string} params.email - Registrant email address for registration and notices.
217
+ * @param {string} params.phone - Registrant phone number in E.164 format (for example, +15555551234).
218
+ * @param {string} params.billingAddressId - Billing address ID used for registration contact details.
219
+ * @param {string} params.paymentMethodId - Payment method ID to authorize and capture the purchase.
220
+ * @param {string} params.addressLine3 - Additional address line for the registrant (line 3).
221
+ * @param {string} params.companyName - Company or organization name for the registrant.
222
+ * @param {number} params.periodYears - Registration term in years (1-10).
223
+ * @throws {AppwriteException}
224
+ * @returns {Promise<Models.Domain>}
225
+ */
226
+ createPurchase(params: { 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>;
227
+ /**
228
+ * Create a domain purchase with registrant information.
229
+ *
230
+ * @param {string} domain - Fully qualified domain name to purchase (for example, example.com).
231
+ * @param {string} teamId - Team ID that will own the domain.
232
+ * @param {string} firstName - Registrant first name used for domain registration.
233
+ * @param {string} lastName - Registrant last name used for domain registration.
234
+ * @param {string} email - Registrant email address for registration and notices.
235
+ * @param {string} phone - Registrant phone number in E.164 format (for example, +15555551234).
236
+ * @param {string} billingAddressId - Billing address ID used for registration contact details.
237
+ * @param {string} paymentMethodId - Payment method ID to authorize and capture the purchase.
238
+ * @param {string} addressLine3 - Additional address line for the registrant (line 3).
239
+ * @param {string} companyName - Company or organization name for the registrant.
240
+ * @param {number} periodYears - Registration term in years (1-10).
241
+ * @throws {AppwriteException}
242
+ * @returns {Promise<Models.Domain>}
243
+ * @deprecated Use the object parameter style method for a better developer experience.
244
+ */
245
+ 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>;
246
+ createPurchase(
247
+ paramsOrFirst: { domain: string, teamId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number } | string,
248
+ ...rest: [(string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (number)?]
249
+ ): Promise<Models.Domain> {
250
+ let params: { domain: string, teamId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number };
251
+
252
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
253
+ params = (paramsOrFirst || {}) as { domain: string, teamId: string, firstName: string, lastName: string, email: string, phone: string, billingAddressId: string, paymentMethodId: string, addressLine3?: string, companyName?: string, periodYears?: number };
254
+ } else {
255
+ params = {
256
+ domain: paramsOrFirst as string,
257
+ teamId: rest[0] as string,
258
+ firstName: rest[1] as string,
259
+ lastName: rest[2] as string,
260
+ email: rest[3] as string,
261
+ phone: rest[4] as string,
262
+ billingAddressId: rest[5] as string,
263
+ paymentMethodId: rest[6] as string,
264
+ addressLine3: rest[7] as string,
265
+ companyName: rest[8] as string,
266
+ periodYears: rest[9] as number
267
+ };
268
+ }
269
+
270
+ const domain = params.domain;
271
+ const teamId = params.teamId;
272
+ const firstName = params.firstName;
273
+ const lastName = params.lastName;
274
+ const email = params.email;
275
+ const phone = params.phone;
276
+ const billingAddressId = params.billingAddressId;
277
+ const paymentMethodId = params.paymentMethodId;
278
+ const addressLine3 = params.addressLine3;
279
+ const companyName = params.companyName;
280
+ const periodYears = params.periodYears;
281
+
282
+ if (typeof domain === 'undefined') {
283
+ throw new AppwriteException('Missing required parameter: "domain"');
284
+ }
285
+ if (typeof teamId === 'undefined') {
286
+ throw new AppwriteException('Missing required parameter: "teamId"');
287
+ }
288
+ if (typeof firstName === 'undefined') {
289
+ throw new AppwriteException('Missing required parameter: "firstName"');
290
+ }
291
+ if (typeof lastName === 'undefined') {
292
+ throw new AppwriteException('Missing required parameter: "lastName"');
293
+ }
294
+ if (typeof email === 'undefined') {
295
+ throw new AppwriteException('Missing required parameter: "email"');
296
+ }
297
+ if (typeof phone === 'undefined') {
298
+ throw new AppwriteException('Missing required parameter: "phone"');
299
+ }
300
+ if (typeof billingAddressId === 'undefined') {
301
+ throw new AppwriteException('Missing required parameter: "billingAddressId"');
302
+ }
303
+ if (typeof paymentMethodId === 'undefined') {
304
+ throw new AppwriteException('Missing required parameter: "paymentMethodId"');
305
+ }
306
+
307
+ const apiPath = '/domains/purchases';
308
+ const payload: Payload = {};
309
+ if (typeof domain !== 'undefined') {
310
+ payload['domain'] = domain;
311
+ }
312
+ if (typeof teamId !== 'undefined') {
313
+ payload['teamId'] = teamId;
314
+ }
315
+ if (typeof firstName !== 'undefined') {
316
+ payload['firstName'] = firstName;
317
+ }
318
+ if (typeof lastName !== 'undefined') {
319
+ payload['lastName'] = lastName;
320
+ }
321
+ if (typeof email !== 'undefined') {
322
+ payload['email'] = email;
323
+ }
324
+ if (typeof phone !== 'undefined') {
325
+ payload['phone'] = phone;
326
+ }
327
+ if (typeof billingAddressId !== 'undefined') {
328
+ payload['billingAddressId'] = billingAddressId;
329
+ }
330
+ if (typeof addressLine3 !== 'undefined') {
331
+ payload['addressLine3'] = addressLine3;
332
+ }
333
+ if (typeof companyName !== 'undefined') {
334
+ payload['companyName'] = companyName;
335
+ }
336
+ if (typeof periodYears !== 'undefined') {
337
+ payload['periodYears'] = periodYears;
338
+ }
339
+ if (typeof paymentMethodId !== 'undefined') {
340
+ payload['paymentMethodId'] = paymentMethodId;
341
+ }
342
+ const uri = new URL(this.client.config.endpoint + apiPath);
343
+
344
+ const apiHeaders: { [header: string]: string } = {
345
+ 'content-type': 'application/json',
346
+ }
347
+
348
+ return this.client.call(
349
+ 'post',
350
+ uri,
351
+ apiHeaders,
352
+ payload
353
+ );
354
+ }
355
+
209
356
  /**
210
357
  * List domain suggestions.
211
358
  *
@@ -2496,33 +2496,38 @@ export class Organizations {
2496
2496
  * Get Scopes
2497
2497
  *
2498
2498
  * @param {string} params.organizationId - Organization id
2499
+ * @param {string} params.projectId - Project id
2499
2500
  * @throws {AppwriteException}
2500
2501
  * @returns {Promise<Models.Roles>}
2501
2502
  */
2502
- getScopes(params: { organizationId: string }): Promise<Models.Roles>;
2503
+ getScopes(params: { organizationId: string, projectId?: string }): Promise<Models.Roles>;
2503
2504
  /**
2504
2505
  * Get Scopes
2505
2506
  *
2506
2507
  * @param {string} organizationId - Organization id
2508
+ * @param {string} projectId - Project id
2507
2509
  * @throws {AppwriteException}
2508
2510
  * @returns {Promise<Models.Roles>}
2509
2511
  * @deprecated Use the object parameter style method for a better developer experience.
2510
2512
  */
2511
- getScopes(organizationId: string): Promise<Models.Roles>;
2513
+ getScopes(organizationId: string, projectId?: string): Promise<Models.Roles>;
2512
2514
  getScopes(
2513
- paramsOrFirst: { organizationId: string } | string
2515
+ paramsOrFirst: { organizationId: string, projectId?: string } | string,
2516
+ ...rest: [(string)?]
2514
2517
  ): Promise<Models.Roles> {
2515
- let params: { organizationId: string };
2518
+ let params: { organizationId: string, projectId?: string };
2516
2519
 
2517
2520
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2518
- params = (paramsOrFirst || {}) as { organizationId: string };
2521
+ params = (paramsOrFirst || {}) as { organizationId: string, projectId?: string };
2519
2522
  } else {
2520
2523
  params = {
2521
- organizationId: paramsOrFirst as string
2524
+ organizationId: paramsOrFirst as string,
2525
+ projectId: rest[0] as string
2522
2526
  };
2523
2527
  }
2524
2528
 
2525
2529
  const organizationId = params.organizationId;
2530
+ const projectId = params.projectId;
2526
2531
 
2527
2532
  if (typeof organizationId === 'undefined') {
2528
2533
  throw new AppwriteException('Missing required parameter: "organizationId"');
@@ -2530,6 +2535,9 @@ export class Organizations {
2530
2535
 
2531
2536
  const apiPath = '/organizations/{organizationId}/roles'.replace('{organizationId}', organizationId);
2532
2537
  const payload: Payload = {};
2538
+ if (typeof projectId !== 'undefined') {
2539
+ payload['projectId'] = projectId;
2540
+ }
2533
2541
  const uri = new URL(this.client.config.endpoint + apiPath);
2534
2542
 
2535
2543
  const apiHeaders: { [header: string]: string } = {
@@ -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",