appbuild-oceanbase-console 1.12.2 → 1.13.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 (53) hide show
  1. package/dist/cjs/package.json +3 -0
  2. package/dist/cjs/sdk.js +3837 -1017
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/package.json +3 -0
  5. package/dist/esm/sdk.js +3831 -1018
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +10131 -3554
  8. package/package.json +7 -2
  9. package/types/channel.d.ts +74 -0
  10. package/types/client.d.ts +84 -16
  11. package/types/enums/appwrite-migration-resource.d.ts +25 -0
  12. package/types/enums/backup-services.d.ts +5 -0
  13. package/types/enums/billing-plan-group.d.ts +5 -0
  14. package/types/enums/browser-permission.d.ts +22 -0
  15. package/types/enums/domain-purchase-status.d.ts +6 -0
  16. package/types/enums/domain-transfer-status-enum.d.ts +10 -0
  17. package/types/enums/filter-type.d.ts +4 -0
  18. package/types/enums/firebase-migration-resource.d.ts +12 -0
  19. package/types/enums/frameworks.d.ts +17 -0
  20. package/types/enums/n-host-migration-resource.d.ts +13 -0
  21. package/types/enums/order-by.d.ts +4 -0
  22. package/types/enums/registration-type.d.ts +6 -0
  23. package/types/enums/resource-type.d.ts +6 -0
  24. package/types/enums/runtimes.d.ts +180 -0
  25. package/types/enums/scopes.d.ts +70 -0
  26. package/types/enums/supabase-migration-resource.d.ts +13 -0
  27. package/types/enums/template-reference-type.d.ts +5 -0
  28. package/types/enums/use-cases.d.ts +11 -0
  29. package/types/enums/vcs-reference-type.d.ts +5 -0
  30. package/types/index.d.ts +119 -96
  31. package/types/migrations.d.ts +10 -9
  32. package/types/models.d.ts +1270 -136
  33. package/types/query.d.ts +60 -8
  34. package/types/services/account.d.ts +162 -39
  35. package/types/services/activities.d.ts +46 -0
  36. package/types/services/avatars.d.ts +9 -8
  37. package/types/services/backups.d.ts +13 -12
  38. package/types/services/console.d.ts +41 -3
  39. package/types/services/databases.d.ts +384 -68
  40. package/types/services/domains.d.ts +223 -0
  41. package/types/services/functions.d.ts +46 -31
  42. package/types/services/health.d.ts +49 -6
  43. package/types/services/messaging.d.ts +2 -2
  44. package/types/services/organizations.d.ts +203 -36
  45. package/types/services/projects.d.ts +151 -210
  46. package/types/services/realtime.d.ts +26 -10
  47. package/types/services/sites.d.ts +49 -29
  48. package/types/services/storage.d.ts +12 -12
  49. package/types/services/tables-db.d.ts +352 -34
  50. package/types/services/teams.d.ts +4 -4
  51. package/types/services/users.d.ts +26 -2
  52. package/types/services/vcs.d.ts +4 -1
  53. package/types/services/webhooks.d.ts +165 -0
@@ -1,7 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- import { BillingPlan } from '../enums/billing-plan';
4
3
  import { Platform } from '../enums/platform';
4
+ import { Scopes } from '../enums/scopes';
5
5
  export declare class Organizations {
6
6
  client: Client;
7
7
  constructor(client: Client);
@@ -33,7 +33,7 @@ export declare class Organizations {
33
33
  *
34
34
  * @param {string} params.organizationId - Organization ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
35
35
  * @param {string} params.name - Organization name. Max length: 128 chars.
36
- * @param {BillingPlan} params.billingPlan - Organization billing plan chosen
36
+ * @param {string} params.billingPlan - Organization billing plan chosen
37
37
  * @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
38
38
  * @param {string} params.billingAddressId - Unique ID of billing address
39
39
  * @param {string[]} params.invites - Additional member invites
@@ -42,12 +42,12 @@ export declare class Organizations {
42
42
  * @param {number} params.budget - Budget limit for additional usage set for the organization
43
43
  * @param {Platform} params.platform - Platform type
44
44
  * @throws {AppwriteException}
45
- * @returns {Promise<Models.Organization<Preferences>>}
45
+ * @returns {Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>}
46
46
  */
47
47
  create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
48
48
  organizationId: string;
49
49
  name: string;
50
- billingPlan: BillingPlan;
50
+ billingPlan: string;
51
51
  paymentMethodId?: string;
52
52
  billingAddressId?: string;
53
53
  invites?: string[];
@@ -55,14 +55,14 @@ export declare class Organizations {
55
55
  taxId?: string;
56
56
  budget?: number;
57
57
  platform?: Platform;
58
- }): Promise<Models.Organization<Preferences>>;
58
+ }): Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>;
59
59
  /**
60
60
  * Create a new organization.
61
61
  *
62
62
  *
63
63
  * @param {string} organizationId - Organization ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
64
64
  * @param {string} name - Organization name. Max length: 128 chars.
65
- * @param {BillingPlan} billingPlan - Organization billing plan chosen
65
+ * @param {string} billingPlan - Organization billing plan chosen
66
66
  * @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
67
67
  * @param {string} billingAddressId - Unique ID of billing address
68
68
  * @param {string[]} invites - Additional member invites
@@ -71,38 +71,41 @@ export declare class Organizations {
71
71
  * @param {number} budget - Budget limit for additional usage set for the organization
72
72
  * @param {Platform} platform - Platform type
73
73
  * @throws {AppwriteException}
74
- * @returns {Promise<Models.Organization<Preferences>>}
74
+ * @returns {Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>}
75
75
  * @deprecated Use the object parameter style method for a better developer experience.
76
76
  */
77
- create<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, name: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number, platform?: Platform): Promise<Models.Organization<Preferences>>;
77
+ create<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, name: string, billingPlan: string, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number, platform?: Platform): Promise<Models.Organization<Preferences> | Models.PaymentAuthentication>;
78
78
  /**
79
79
  * Get estimation for creating an organization.
80
80
  *
81
- * @param {BillingPlan} params.billingPlan - Organization billing plan chosen
81
+ * @param {string} params.billingPlan - Organization billing plan chosen
82
82
  * @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
83
83
  * @param {string[]} params.invites - Additional member invites
84
84
  * @param {string} params.couponId - Coupon id
85
+ * @param {Platform} params.platform - Platform type
85
86
  * @throws {AppwriteException}
86
87
  * @returns {Promise<Models.Estimation>}
87
88
  */
88
89
  estimationCreateOrganization(params: {
89
- billingPlan: BillingPlan;
90
+ billingPlan: string;
90
91
  paymentMethodId?: string;
91
92
  invites?: string[];
92
93
  couponId?: string;
94
+ platform?: Platform;
93
95
  }): Promise<Models.Estimation>;
94
96
  /**
95
97
  * Get estimation for creating an organization.
96
98
  *
97
- * @param {BillingPlan} billingPlan - Organization billing plan chosen
99
+ * @param {string} billingPlan - Organization billing plan chosen
98
100
  * @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
99
101
  * @param {string[]} invites - Additional member invites
100
102
  * @param {string} couponId - Coupon id
103
+ * @param {Platform} platform - Platform type
101
104
  * @throws {AppwriteException}
102
105
  * @returns {Promise<Models.Estimation>}
103
106
  * @deprecated Use the object parameter style method for a better developer experience.
104
107
  */
105
- estimationCreateOrganization(billingPlan: BillingPlan, paymentMethodId?: string, invites?: string[], couponId?: string): Promise<Models.Estimation>;
108
+ estimationCreateOrganization(billingPlan: string, paymentMethodId?: string, invites?: string[], couponId?: string, platform?: Platform): Promise<Models.Estimation>;
106
109
  /**
107
110
  * Delete an organization.
108
111
  *
@@ -149,23 +152,29 @@ export declare class Organizations {
149
152
  *
150
153
  * @param {string} params.organizationId - Organization ID
151
154
  * @param {string} params.aggregationId - Invoice unique ID
155
+ * @param {number} params.limit - Maximum number of project aggregations to return in response. By default will return maximum 5 results. Maximum of 10 results allowed per request.
156
+ * @param {number} params.offset - Offset value. The default value is 0. Use this param to manage pagination.
152
157
  * @throws {AppwriteException}
153
158
  * @returns {Promise<Models.AggregationTeam>}
154
159
  */
155
160
  getAggregation(params: {
156
161
  organizationId: string;
157
162
  aggregationId: string;
163
+ limit?: number;
164
+ offset?: number;
158
165
  }): Promise<Models.AggregationTeam>;
159
166
  /**
160
167
  * Get a specific aggregation using it's aggregation ID.
161
168
  *
162
169
  * @param {string} organizationId - Organization ID
163
170
  * @param {string} aggregationId - Invoice unique ID
171
+ * @param {number} limit - Maximum number of project aggregations to return in response. By default will return maximum 5 results. Maximum of 10 results allowed per request.
172
+ * @param {number} offset - Offset value. The default value is 0. Use this param to manage pagination.
164
173
  * @throws {AppwriteException}
165
174
  * @returns {Promise<Models.AggregationTeam>}
166
175
  * @deprecated Use the object parameter style method for a better developer experience.
167
176
  */
168
- getAggregation(organizationId: string, aggregationId: string): Promise<Models.AggregationTeam>;
177
+ getAggregation(organizationId: string, aggregationId: string, limit?: number, offset?: number): Promise<Models.AggregationTeam>;
169
178
  /**
170
179
  * Set a billing address for an organization.
171
180
  *
@@ -386,7 +395,7 @@ export declare class Organizations {
386
395
  * Get estimation for updating the organization plan.
387
396
  *
388
397
  * @param {string} params.organizationId - Organization ID
389
- * @param {BillingPlan} params.billingPlan - Organization billing plan chosen
398
+ * @param {string} params.billingPlan - Organization billing plan chosen
390
399
  * @param {string[]} params.invites - Additional member invites
391
400
  * @param {string} params.couponId - Coupon id
392
401
  * @throws {AppwriteException}
@@ -394,7 +403,7 @@ export declare class Organizations {
394
403
  */
395
404
  estimationUpdatePlan(params: {
396
405
  organizationId: string;
397
- billingPlan: BillingPlan;
406
+ billingPlan: string;
398
407
  invites?: string[];
399
408
  couponId?: string;
400
409
  }): Promise<Models.EstimationUpdatePlan>;
@@ -402,19 +411,52 @@ export declare class Organizations {
402
411
  * Get estimation for updating the organization plan.
403
412
  *
404
413
  * @param {string} organizationId - Organization ID
405
- * @param {BillingPlan} billingPlan - Organization billing plan chosen
414
+ * @param {string} billingPlan - Organization billing plan chosen
406
415
  * @param {string[]} invites - Additional member invites
407
416
  * @param {string} couponId - Coupon id
408
417
  * @throws {AppwriteException}
409
418
  * @returns {Promise<Models.EstimationUpdatePlan>}
410
419
  * @deprecated Use the object parameter style method for a better developer experience.
411
420
  */
412
- estimationUpdatePlan(organizationId: string, billingPlan: BillingPlan, invites?: string[], couponId?: string): Promise<Models.EstimationUpdatePlan>;
421
+ estimationUpdatePlan(organizationId: string, billingPlan: string, invites?: string[], couponId?: string): Promise<Models.EstimationUpdatePlan>;
422
+ /**
423
+ * Submit feedback about downgrading from a paid plan to a lower tier. This helps the team understand user experience and improve the platform.
424
+ *
425
+ *
426
+ * @param {string} params.organizationId - Organization Unique ID
427
+ * @param {string} params.reason - Feedback reason
428
+ * @param {string} params.message - Feedback message
429
+ * @param {string} params.fromPlanId - Plan downgrading from
430
+ * @param {string} params.toPlanId - Plan downgrading to
431
+ * @throws {AppwriteException}
432
+ * @returns {Promise<Models.DowngradeFeedback>}
433
+ */
434
+ createDowngradeFeedback(params: {
435
+ organizationId: string;
436
+ reason: string;
437
+ message: string;
438
+ fromPlanId: string;
439
+ toPlanId: string;
440
+ }): Promise<Models.DowngradeFeedback>;
441
+ /**
442
+ * Submit feedback about downgrading from a paid plan to a lower tier. This helps the team understand user experience and improve the platform.
443
+ *
444
+ *
445
+ * @param {string} organizationId - Organization Unique ID
446
+ * @param {string} reason - Feedback reason
447
+ * @param {string} message - Feedback message
448
+ * @param {string} fromPlanId - Plan downgrading from
449
+ * @param {string} toPlanId - Plan downgrading to
450
+ * @throws {AppwriteException}
451
+ * @returns {Promise<Models.DowngradeFeedback>}
452
+ * @deprecated Use the object parameter style method for a better developer experience.
453
+ */
454
+ createDowngradeFeedback(organizationId: string, reason: string, message: string, fromPlanId: string, toPlanId: string): Promise<Models.DowngradeFeedback>;
413
455
  /**
414
456
  * List all invoices for an organization.
415
457
  *
416
458
  * @param {string} params.organizationId - Organization ID
417
- * @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/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
459
+ * @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/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
418
460
  * @throws {AppwriteException}
419
461
  * @returns {Promise<Models.InvoiceList>}
420
462
  */
@@ -426,7 +468,7 @@ export declare class Organizations {
426
468
  * List all invoices for an organization.
427
469
  *
428
470
  * @param {string} organizationId - Organization ID
429
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount
471
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount
430
472
  * @throws {AppwriteException}
431
473
  * @returns {Promise<Models.InvoiceList>}
432
474
  * @deprecated Use the object parameter style method for a better developer experience.
@@ -545,6 +587,131 @@ export declare class Organizations {
545
587
  * @deprecated Use the object parameter style method for a better developer experience.
546
588
  */
547
589
  getInvoiceView(organizationId: string, invoiceId: string): Promise<Models.PaymentMethod>;
590
+ /**
591
+ * Get a list of all API keys from the current organization.
592
+ *
593
+ * @param {string} params.organizationId - Organization Unique ID
594
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
595
+ * @throws {AppwriteException}
596
+ * @returns {Promise<Models.KeyList>}
597
+ */
598
+ listKeys(params: {
599
+ organizationId: string;
600
+ total?: boolean;
601
+ }): Promise<Models.KeyList>;
602
+ /**
603
+ * Get a list of all API keys from the current organization.
604
+ *
605
+ * @param {string} organizationId - Organization Unique ID
606
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
607
+ * @throws {AppwriteException}
608
+ * @returns {Promise<Models.KeyList>}
609
+ * @deprecated Use the object parameter style method for a better developer experience.
610
+ */
611
+ listKeys(organizationId: string, total?: boolean): Promise<Models.KeyList>;
612
+ /**
613
+ * Create a new organization API key.
614
+ *
615
+ * @param {string} params.organizationId - Organization Unique ID
616
+ * @param {string} params.name - Key name. Max length: 128 chars.
617
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
618
+ * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
619
+ * @throws {AppwriteException}
620
+ * @returns {Promise<Models.Key>}
621
+ */
622
+ createKey(params: {
623
+ organizationId: string;
624
+ name: string;
625
+ scopes: Scopes[];
626
+ expire?: string;
627
+ }): Promise<Models.Key>;
628
+ /**
629
+ * Create a new organization API key.
630
+ *
631
+ * @param {string} organizationId - Organization Unique ID
632
+ * @param {string} name - Key name. Max length: 128 chars.
633
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
634
+ * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
635
+ * @throws {AppwriteException}
636
+ * @returns {Promise<Models.Key>}
637
+ * @deprecated Use the object parameter style method for a better developer experience.
638
+ */
639
+ createKey(organizationId: string, name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
640
+ /**
641
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your organization including it's scopes.
642
+ *
643
+ * @param {string} params.organizationId - Organization Unique ID
644
+ * @param {string} params.keyId - Key unique ID.
645
+ * @throws {AppwriteException}
646
+ * @returns {Promise<Models.Key>}
647
+ */
648
+ getKey(params: {
649
+ organizationId: string;
650
+ keyId: string;
651
+ }): Promise<Models.Key>;
652
+ /**
653
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your organization including it's scopes.
654
+ *
655
+ * @param {string} organizationId - Organization Unique ID
656
+ * @param {string} keyId - Key unique ID.
657
+ * @throws {AppwriteException}
658
+ * @returns {Promise<Models.Key>}
659
+ * @deprecated Use the object parameter style method for a better developer experience.
660
+ */
661
+ getKey(organizationId: string, keyId: string): Promise<Models.Key>;
662
+ /**
663
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
664
+ *
665
+ * @param {string} params.organizationId - Organization Unique ID
666
+ * @param {string} params.keyId - Key unique ID.
667
+ * @param {string} params.name - Key name. Max length: 128 chars.
668
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
669
+ * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
670
+ * @throws {AppwriteException}
671
+ * @returns {Promise<Models.Key>}
672
+ */
673
+ updateKey(params: {
674
+ organizationId: string;
675
+ keyId: string;
676
+ name: string;
677
+ scopes: Scopes[];
678
+ expire?: string;
679
+ }): Promise<Models.Key>;
680
+ /**
681
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
682
+ *
683
+ * @param {string} organizationId - Organization Unique ID
684
+ * @param {string} keyId - Key unique ID.
685
+ * @param {string} name - Key name. Max length: 128 chars.
686
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
687
+ * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
688
+ * @throws {AppwriteException}
689
+ * @returns {Promise<Models.Key>}
690
+ * @deprecated Use the object parameter style method for a better developer experience.
691
+ */
692
+ updateKey(organizationId: string, keyId: string, name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
693
+ /**
694
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
695
+ *
696
+ * @param {string} params.organizationId - Organization Unique ID
697
+ * @param {string} params.keyId - Key unique ID.
698
+ * @throws {AppwriteException}
699
+ * @returns {Promise<{}>}
700
+ */
701
+ deleteKey(params: {
702
+ organizationId: string;
703
+ keyId: string;
704
+ }): Promise<{}>;
705
+ /**
706
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
707
+ *
708
+ * @param {string} organizationId - Organization Unique ID
709
+ * @param {string} keyId - Key unique ID.
710
+ * @throws {AppwriteException}
711
+ * @returns {Promise<{}>}
712
+ * @deprecated Use the object parameter style method for a better developer experience.
713
+ */
714
+ deleteKey(organizationId: string, keyId: string): Promise<{}>;
548
715
  /**
549
716
  * Set a organization's default payment method.
550
717
  *
@@ -674,7 +841,7 @@ export declare class Organizations {
674
841
  * Update the billing plan for an organization.
675
842
  *
676
843
  * @param {string} params.organizationId - Organization Unique ID
677
- * @param {BillingPlan} params.billingPlan - Organization billing plan chosen
844
+ * @param {string} params.billingPlan - Organization billing plan chosen
678
845
  * @param {string} params.paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
679
846
  * @param {string} params.billingAddressId - Unique ID of billing address
680
847
  * @param {string[]} params.invites - Additional member invites
@@ -686,7 +853,7 @@ export declare class Organizations {
686
853
  */
687
854
  updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
688
855
  organizationId: string;
689
- billingPlan: BillingPlan;
856
+ billingPlan: string;
690
857
  paymentMethodId?: string;
691
858
  billingAddressId?: string;
692
859
  invites?: string[];
@@ -698,7 +865,7 @@ export declare class Organizations {
698
865
  * Update the billing plan for an organization.
699
866
  *
700
867
  * @param {string} organizationId - Organization Unique ID
701
- * @param {BillingPlan} billingPlan - Organization billing plan chosen
868
+ * @param {string} billingPlan - Organization billing plan chosen
702
869
  * @param {string} paymentMethodId - Payment method ID. Required for pro plans when trial is not available and user doesn't have default payment method set.
703
870
  * @param {string} billingAddressId - Unique ID of billing address
704
871
  * @param {string[]} invites - Additional member invites
@@ -709,7 +876,7 @@ export declare class Organizations {
709
876
  * @returns {Promise<Models.Organization<Preferences>>}
710
877
  * @deprecated Use the object parameter style method for a better developer experience.
711
878
  */
712
- updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, billingPlan: BillingPlan, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
879
+ updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, billingPlan: string, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
713
880
  /**
714
881
  * Cancel the downgrade initiated for an organization.
715
882
  *
@@ -730,46 +897,46 @@ export declare class Organizations {
730
897
  */
731
898
  cancelDowngrade<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string): Promise<Models.Organization<Preferences>>;
732
899
  /**
733
- * Update selected projects to keep in the organization.
900
+ * Get all available regions for an organization.
734
901
  *
735
- * @param {string} params.organizationId - Organization Unique ID
736
- * @param {string[]} params.projects - List of project IDs to be selected for the organization
902
+ * @param {string} params.organizationId - Team ID.
737
903
  * @throws {AppwriteException}
738
- * @returns {Promise<Models.Organization<Preferences>>}
904
+ * @returns {Promise<Models.ConsoleRegionList>}
739
905
  */
740
- updateProjects<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
906
+ listRegions(params: {
741
907
  organizationId: string;
742
- projects?: string[];
743
- }): Promise<Models.Organization<Preferences>>;
908
+ }): Promise<Models.ConsoleRegionList>;
744
909
  /**
745
- * Update selected projects to keep in the organization.
910
+ * Get all available regions for an organization.
746
911
  *
747
- * @param {string} organizationId - Organization Unique ID
748
- * @param {string[]} projects - List of project IDs to be selected for the organization
912
+ * @param {string} organizationId - Team ID.
749
913
  * @throws {AppwriteException}
750
- * @returns {Promise<Models.Organization<Preferences>>}
914
+ * @returns {Promise<Models.ConsoleRegionList>}
751
915
  * @deprecated Use the object parameter style method for a better developer experience.
752
916
  */
753
- updateProjects<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, projects?: string[]): Promise<Models.Organization<Preferences>>;
917
+ listRegions(organizationId: string): Promise<Models.ConsoleRegionList>;
754
918
  /**
755
919
  * Get Scopes
756
920
  *
757
921
  * @param {string} params.organizationId - Organization id
922
+ * @param {string} params.projectId - Project id
758
923
  * @throws {AppwriteException}
759
924
  * @returns {Promise<Models.Roles>}
760
925
  */
761
926
  getScopes(params: {
762
927
  organizationId: string;
928
+ projectId?: string;
763
929
  }): Promise<Models.Roles>;
764
930
  /**
765
931
  * Get Scopes
766
932
  *
767
933
  * @param {string} organizationId - Organization id
934
+ * @param {string} projectId - Project id
768
935
  * @throws {AppwriteException}
769
936
  * @returns {Promise<Models.Roles>}
770
937
  * @deprecated Use the object parameter style method for a better developer experience.
771
938
  */
772
- getScopes(organizationId: string): Promise<Models.Roles>;
939
+ getScopes(organizationId: string, projectId?: string): Promise<Models.Roles>;
773
940
  /**
774
941
  * Set an organization's billing tax ID.
775
942
  *