@appwrite.io/console 8.2.0 → 8.3.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.
package/dist/iife/sdk.js CHANGED
@@ -4378,7 +4378,7 @@
4378
4378
  'x-sdk-name': 'Console',
4379
4379
  'x-sdk-platform': 'console',
4380
4380
  'x-sdk-language': 'web',
4381
- 'x-sdk-version': '8.2.0',
4381
+ 'x-sdk-version': '8.3.0',
4382
4382
  'X-Appwrite-Response-Format': '1.9.0',
4383
4383
  };
4384
4384
  this.realtime = {
@@ -19172,6 +19172,152 @@
19172
19172
  };
19173
19173
  return this.client.call('delete', uri, apiHeaders, payload);
19174
19174
  }
19175
+ listAddons(paramsOrFirst) {
19176
+ let params;
19177
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19178
+ params = (paramsOrFirst || {});
19179
+ }
19180
+ else {
19181
+ params = {
19182
+ organizationId: paramsOrFirst
19183
+ };
19184
+ }
19185
+ const organizationId = params.organizationId;
19186
+ if (typeof organizationId === 'undefined') {
19187
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19188
+ }
19189
+ const apiPath = '/organizations/{organizationId}/addons'.replace('{organizationId}', organizationId);
19190
+ const payload = {};
19191
+ const uri = new URL(this.client.config.endpoint + apiPath);
19192
+ const apiHeaders = {};
19193
+ return this.client.call('get', uri, apiHeaders, payload);
19194
+ }
19195
+ createBaaAddon(paramsOrFirst) {
19196
+ let params;
19197
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19198
+ params = (paramsOrFirst || {});
19199
+ }
19200
+ else {
19201
+ params = {
19202
+ organizationId: paramsOrFirst
19203
+ };
19204
+ }
19205
+ const organizationId = params.organizationId;
19206
+ if (typeof organizationId === 'undefined') {
19207
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19208
+ }
19209
+ const apiPath = '/organizations/{organizationId}/addons/baa'.replace('{organizationId}', organizationId);
19210
+ const payload = {};
19211
+ const uri = new URL(this.client.config.endpoint + apiPath);
19212
+ const apiHeaders = {
19213
+ 'content-type': 'application/json',
19214
+ };
19215
+ return this.client.call('post', uri, apiHeaders, payload);
19216
+ }
19217
+ getAddon(paramsOrFirst, ...rest) {
19218
+ let params;
19219
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19220
+ params = (paramsOrFirst || {});
19221
+ }
19222
+ else {
19223
+ params = {
19224
+ organizationId: paramsOrFirst,
19225
+ addonId: rest[0]
19226
+ };
19227
+ }
19228
+ const organizationId = params.organizationId;
19229
+ const addonId = params.addonId;
19230
+ if (typeof organizationId === 'undefined') {
19231
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19232
+ }
19233
+ if (typeof addonId === 'undefined') {
19234
+ throw new AppwriteException('Missing required parameter: "addonId"');
19235
+ }
19236
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
19237
+ const payload = {};
19238
+ const uri = new URL(this.client.config.endpoint + apiPath);
19239
+ const apiHeaders = {};
19240
+ return this.client.call('get', uri, apiHeaders, payload);
19241
+ }
19242
+ deleteAddon(paramsOrFirst, ...rest) {
19243
+ let params;
19244
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19245
+ params = (paramsOrFirst || {});
19246
+ }
19247
+ else {
19248
+ params = {
19249
+ organizationId: paramsOrFirst,
19250
+ addonId: rest[0]
19251
+ };
19252
+ }
19253
+ const organizationId = params.organizationId;
19254
+ const addonId = params.addonId;
19255
+ if (typeof organizationId === 'undefined') {
19256
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19257
+ }
19258
+ if (typeof addonId === 'undefined') {
19259
+ throw new AppwriteException('Missing required parameter: "addonId"');
19260
+ }
19261
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
19262
+ const payload = {};
19263
+ const uri = new URL(this.client.config.endpoint + apiPath);
19264
+ const apiHeaders = {
19265
+ 'content-type': 'application/json',
19266
+ };
19267
+ return this.client.call('delete', uri, apiHeaders, payload);
19268
+ }
19269
+ confirmAddonPayment(paramsOrFirst, ...rest) {
19270
+ let params;
19271
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19272
+ params = (paramsOrFirst || {});
19273
+ }
19274
+ else {
19275
+ params = {
19276
+ organizationId: paramsOrFirst,
19277
+ addonId: rest[0]
19278
+ };
19279
+ }
19280
+ const organizationId = params.organizationId;
19281
+ const addonId = params.addonId;
19282
+ if (typeof organizationId === 'undefined') {
19283
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19284
+ }
19285
+ if (typeof addonId === 'undefined') {
19286
+ throw new AppwriteException('Missing required parameter: "addonId"');
19287
+ }
19288
+ const apiPath = '/organizations/{organizationId}/addons/{addonId}/confirmations'.replace('{organizationId}', organizationId).replace('{addonId}', addonId);
19289
+ const payload = {};
19290
+ const uri = new URL(this.client.config.endpoint + apiPath);
19291
+ const apiHeaders = {
19292
+ 'content-type': 'application/json',
19293
+ };
19294
+ return this.client.call('post', uri, apiHeaders, payload);
19295
+ }
19296
+ getAddonPrice(paramsOrFirst, ...rest) {
19297
+ let params;
19298
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19299
+ params = (paramsOrFirst || {});
19300
+ }
19301
+ else {
19302
+ params = {
19303
+ organizationId: paramsOrFirst,
19304
+ addon: rest[0]
19305
+ };
19306
+ }
19307
+ const organizationId = params.organizationId;
19308
+ const addon = params.addon;
19309
+ if (typeof organizationId === 'undefined') {
19310
+ throw new AppwriteException('Missing required parameter: "organizationId"');
19311
+ }
19312
+ if (typeof addon === 'undefined') {
19313
+ throw new AppwriteException('Missing required parameter: "addon"');
19314
+ }
19315
+ const apiPath = '/organizations/{organizationId}/addons/{addon}/price'.replace('{organizationId}', organizationId).replace('{addon}', addon);
19316
+ const payload = {};
19317
+ const uri = new URL(this.client.config.endpoint + apiPath);
19318
+ const apiHeaders = {};
19319
+ return this.client.call('get', uri, apiHeaders, payload);
19320
+ }
19175
19321
  listAggregations(paramsOrFirst, ...rest) {
19176
19322
  let params;
19177
19323
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -32893,6 +33039,11 @@
32893
33039
  SupabaseMigrationResource["File"] = "file";
32894
33040
  })(exports.SupabaseMigrationResource || (exports.SupabaseMigrationResource = {}));
32895
33041
 
33042
+ exports.Addon = void 0;
33043
+ (function (Addon) {
33044
+ Addon["Baa"] = "baa";
33045
+ })(exports.Addon || (exports.Addon = {}));
33046
+
32896
33047
  exports.ProjectUsageRange = void 0;
32897
33048
  (function (ProjectUsageRange) {
32898
33049
  ProjectUsageRange["OneHour"] = "1h";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "8.2.0",
5
+ "version": "8.3.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -0,0 +1,3 @@
1
+ export declare enum Addon {
2
+ Baa = "baa"
3
+ }
package/types/index.d.ts CHANGED
@@ -76,6 +76,7 @@ export { AppwriteMigrationResource } from './enums/appwrite-migration-resource';
76
76
  export { FirebaseMigrationResource } from './enums/firebase-migration-resource';
77
77
  export { NHostMigrationResource } from './enums/n-host-migration-resource';
78
78
  export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
79
+ export { Addon } from './enums/addon';
79
80
  export { ProjectUsageRange } from './enums/project-usage-range';
80
81
  export { Region } from './enums/region';
81
82
  export { Api } from './enums/api';
package/types/models.d.ts CHANGED
@@ -4475,6 +4475,18 @@ export declare namespace Models {
4475
4475
  * Whether or not to check the user password for similarity with their personal data.
4476
4476
  */
4477
4477
  authPersonalDataCheck: boolean;
4478
+ /**
4479
+ * Whether or not to disallow disposable email addresses during signup and email updates.
4480
+ */
4481
+ authDisposableEmails: boolean;
4482
+ /**
4483
+ * Whether or not to require canonical email addresses during signup and email updates.
4484
+ */
4485
+ authCanonicalEmails: boolean;
4486
+ /**
4487
+ * Whether or not to disallow free email addresses during signup and email updates.
4488
+ */
4489
+ authFreeEmails: boolean;
4478
4490
  /**
4479
4491
  * An array of mock numbers and their corresponding verification codes (OTPs).
4480
4492
  */
@@ -6230,27 +6242,27 @@ export declare namespace Models {
6230
6242
  */
6231
6243
  trigger: string;
6232
6244
  /**
6233
- * URL to redirect to. Only applicable if type is "redirect", otherwise empty string.
6245
+ * URL to redirect to. Used if type is "redirect"
6234
6246
  */
6235
6247
  redirectUrl: string;
6236
6248
  /**
6237
- * Status code to apply during redirect. Only applicable if type is "redirect", defaults to 301.
6249
+ * Status code to apply during redirect. Used if type is "redirect"
6238
6250
  */
6239
6251
  redirectStatusCode: number;
6240
6252
  /**
6241
- * ID of deployment. Only applicable if type is "deployment", otherwise empty string.
6253
+ * ID of deployment. Used if type is "deployment"
6242
6254
  */
6243
6255
  deploymentId: string;
6244
6256
  /**
6245
- * Type of deployment. Possible values are "function", "site". Only applicable if type is "deployment", otherwise empty string.
6257
+ * Type of deployment. Possible values are "function", "site". Used if rule's type is "deployment".
6246
6258
  */
6247
6259
  deploymentResourceType: ProxyRuleDeploymentResourceType;
6248
6260
  /**
6249
- * ID of deployment's resource. Only applicable if type is "deployment", otherwise empty string.
6261
+ * ID deployment's resource. Used if type is "deployment"
6250
6262
  */
6251
6263
  deploymentResourceId: string;
6252
6264
  /**
6253
- * Name of Git branch that updates rule. Only applicable if type is "deployment", otherwise empty string.
6265
+ * Name of Git branch that updates rule. Used if type is "deployment"
6254
6266
  */
6255
6267
  deploymentVcsProviderBranch: string;
6256
6268
  /**
@@ -6473,6 +6485,10 @@ export declare namespace Models {
6473
6485
  * Whether the database adapter uses integer sequence IDs.
6474
6486
  */
6475
6487
  supportForIntegerIds: boolean;
6488
+ /**
6489
+ * Whether email verification for console users is required. Can be "true" or "false".
6490
+ */
6491
+ _APP_CONSOLE_EMAIL_VERIFICATION: string;
6476
6492
  };
6477
6493
  /**
6478
6494
  * MFA Challenge
@@ -7512,6 +7528,10 @@ export declare namespace Models {
7512
7528
  * Whether usage addons are calculated per project.
7513
7529
  */
7514
7530
  usagePerProject: boolean;
7531
+ /**
7532
+ * Supported addons for this plan
7533
+ */
7534
+ supportedAddons: BillingPlanSupportedAddons;
7515
7535
  /**
7516
7536
  * How many policies does plan support
7517
7537
  */
@@ -7604,6 +7624,15 @@ export declare namespace Models {
7604
7624
  */
7605
7625
  dailyCredits?: number;
7606
7626
  };
7627
+ /**
7628
+ * BillingPlanSupportedAddons
7629
+ */
7630
+ export type BillingPlanSupportedAddons = {
7631
+ /**
7632
+ * Whether the plan supports BAA (Business Associate Agreement) addon
7633
+ */
7634
+ baa: boolean;
7635
+ };
7607
7636
  /**
7608
7637
  * BillingLimits
7609
7638
  */
@@ -8175,6 +8204,10 @@ export declare namespace Models {
8175
8204
  * Invoice ID against which the payment needs to be validated.
8176
8205
  */
8177
8206
  invoiceId: string;
8207
+ /**
8208
+ * Addon ID to use when calling the addon validate endpoint. Empty when authentication is not for an addon.
8209
+ */
8210
+ addonId: string;
8178
8211
  };
8179
8212
  /**
8180
8213
  * paymentMethod
@@ -9027,6 +9060,88 @@ export declare namespace Models {
9027
9060
  */
9028
9061
  available: boolean;
9029
9062
  };
9063
+ /**
9064
+ * Addon
9065
+ */
9066
+ export type Addon = {
9067
+ /**
9068
+ * Addon ID.
9069
+ */
9070
+ $id: string;
9071
+ /**
9072
+ * Addon creation time in ISO 8601 format.
9073
+ */
9074
+ $createdAt: string;
9075
+ /**
9076
+ * Addon update date in ISO 8601 format.
9077
+ */
9078
+ $updatedAt: string;
9079
+ /**
9080
+ * Addon permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
9081
+ */
9082
+ $permissions: string[];
9083
+ /**
9084
+ * Addon key
9085
+ */
9086
+ key: string;
9087
+ /**
9088
+ * Resource type (organization or project)
9089
+ */
9090
+ resourceType: string;
9091
+ /**
9092
+ * Resource ID
9093
+ */
9094
+ resourceId: string;
9095
+ /**
9096
+ * Payment status. Possible values: pending (awaiting payment confirmation e.g. 3DS), active (payment confirmed and addon is running).
9097
+ */
9098
+ status: string;
9099
+ /**
9100
+ * Current value for this billing cycle. For toggle addons: 1 (on) or 0 (off). For numeric addons: the active quantity.
9101
+ */
9102
+ currentValue: number;
9103
+ /**
9104
+ * Value to apply at the start of the next billing cycle. Null means no change is scheduled. For toggle addons, 0 means the addon will be removed at the next cycle.
9105
+ */
9106
+ nextValue?: number;
9107
+ };
9108
+ /**
9109
+ * AddonPrice
9110
+ */
9111
+ export type AddonPrice = {
9112
+ /**
9113
+ * Addon key.
9114
+ */
9115
+ addonKey: string;
9116
+ /**
9117
+ * Addon display name.
9118
+ */
9119
+ name: string;
9120
+ /**
9121
+ * Full monthly price of the addon.
9122
+ */
9123
+ monthlyPrice: number;
9124
+ /**
9125
+ * Calculated prorated amount for the current billing cycle.
9126
+ */
9127
+ proratedAmount: number;
9128
+ /**
9129
+ * Days remaining in the current billing cycle.
9130
+ */
9131
+ remainingDays: number;
9132
+ /**
9133
+ * Total days in the billing cycle.
9134
+ */
9135
+ totalCycleDays: number;
9136
+ /**
9137
+ * Currency code.
9138
+ */
9139
+ currency: string;
9140
+ /**
9141
+ * When the current billing cycle ends.
9142
+ */
9143
+ billingCycleEnd: string;
9144
+ };
9030
9145
  /**
9031
9146
  * domainTransferOut
9032
9147
  */
@@ -9053,6 +9168,19 @@ export declare namespace Models {
9053
9168
  */
9054
9169
  timestamp: string;
9055
9170
  };
9171
+ /**
9172
+ * Addons list
9173
+ */
9174
+ export type AddonList = {
9175
+ /**
9176
+ * Total number of addons that matched your query.
9177
+ */
9178
+ total: number;
9179
+ /**
9180
+ * List of addons.
9181
+ */
9182
+ addons: Addon[];
9183
+ };
9056
9184
  /**
9057
9185
  * Activity event list
9058
9186
  */
@@ -204,6 +204,8 @@ export declare class Migrations {
204
204
  */
205
205
  getFirebaseReport(resources: FirebaseMigrationResource[], serviceAccount: string): Promise<Models.MigrationReport>;
206
206
  /**
207
+ * Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
208
+ *
207
209
  *
208
210
  * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
209
211
  * @param {string} params.filename - The name of the file to be created for the export, excluding the .json extension.
@@ -221,6 +223,8 @@ export declare class Migrations {
221
223
  notify?: boolean;
222
224
  }): Promise<Models.Migration>;
223
225
  /**
226
+ * Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
227
+ *
224
228
  *
225
229
  * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
226
230
  * @param {string} filename - The name of the file to be created for the export, excluding the .json extension.
@@ -233,6 +237,8 @@ export declare class Migrations {
233
237
  */
234
238
  createJSONExport(resourceId: string, filename: string, columns?: string[], queries?: string[], notify?: boolean): Promise<Models.Migration>;
235
239
  /**
240
+ * Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
241
+ *
236
242
  *
237
243
  * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
238
244
  * @param {string} params.fileId - File ID.
@@ -248,6 +254,8 @@ export declare class Migrations {
248
254
  internalFile?: boolean;
249
255
  }): Promise<Models.Migration>;
250
256
  /**
257
+ * Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
258
+ *
251
259
  *
252
260
  * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
253
261
  * @param {string} fileId - File ID.
@@ -1,6 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { Platform } from '../enums/platform';
4
+ import { Addon } from '../enums/addon';
4
5
  import { Scopes } from '../enums/scopes';
5
6
  export declare class Organizations {
6
7
  client: Client;
@@ -125,6 +126,144 @@ export declare class Organizations {
125
126
  * @deprecated Use the object parameter style method for a better developer experience.
126
127
  */
127
128
  delete(organizationId: string): Promise<{}>;
129
+ /**
130
+ * List all billing addons for an organization.
131
+ *
132
+ *
133
+ * @param {string} params.organizationId - Organization ID
134
+ * @throws {AppwriteException}
135
+ * @returns {Promise<Models.AddonList>}
136
+ */
137
+ listAddons(params: {
138
+ organizationId: string;
139
+ }): Promise<Models.AddonList>;
140
+ /**
141
+ * List all billing addons for an organization.
142
+ *
143
+ *
144
+ * @param {string} organizationId - Organization ID
145
+ * @throws {AppwriteException}
146
+ * @returns {Promise<Models.AddonList>}
147
+ * @deprecated Use the object parameter style method for a better developer experience.
148
+ */
149
+ listAddons(organizationId: string): Promise<Models.AddonList>;
150
+ /**
151
+ * Create the BAA billing addon for an organization.
152
+ *
153
+ *
154
+ * @param {string} params.organizationId - Organization ID
155
+ * @throws {AppwriteException}
156
+ * @returns {Promise<Models.Addon>}
157
+ */
158
+ createBaaAddon(params: {
159
+ organizationId: string;
160
+ }): Promise<Models.Addon>;
161
+ /**
162
+ * Create the BAA billing addon for an organization.
163
+ *
164
+ *
165
+ * @param {string} organizationId - Organization ID
166
+ * @throws {AppwriteException}
167
+ * @returns {Promise<Models.Addon>}
168
+ * @deprecated Use the object parameter style method for a better developer experience.
169
+ */
170
+ createBaaAddon(organizationId: string): Promise<Models.Addon>;
171
+ /**
172
+ * Get the details of a billing addon for an organization.
173
+ *
174
+ *
175
+ * @param {string} params.organizationId - Organization ID
176
+ * @param {string} params.addonId - Addon ID
177
+ * @throws {AppwriteException}
178
+ * @returns {Promise<Models.Addon>}
179
+ */
180
+ getAddon(params: {
181
+ organizationId: string;
182
+ addonId: string;
183
+ }): Promise<Models.Addon>;
184
+ /**
185
+ * Get the details of a billing addon for an organization.
186
+ *
187
+ *
188
+ * @param {string} organizationId - Organization ID
189
+ * @param {string} addonId - Addon ID
190
+ * @throws {AppwriteException}
191
+ * @returns {Promise<Models.Addon>}
192
+ * @deprecated Use the object parameter style method for a better developer experience.
193
+ */
194
+ getAddon(organizationId: string, addonId: string): Promise<Models.Addon>;
195
+ /**
196
+ * Delete a billing addon for an organization.
197
+ *
198
+ *
199
+ * @param {string} params.organizationId - Organization ID
200
+ * @param {string} params.addonId - Addon ID
201
+ * @throws {AppwriteException}
202
+ * @returns {Promise<{}>}
203
+ */
204
+ deleteAddon(params: {
205
+ organizationId: string;
206
+ addonId: string;
207
+ }): Promise<{}>;
208
+ /**
209
+ * Delete a billing addon for an organization.
210
+ *
211
+ *
212
+ * @param {string} organizationId - Organization ID
213
+ * @param {string} addonId - Addon ID
214
+ * @throws {AppwriteException}
215
+ * @returns {Promise<{}>}
216
+ * @deprecated Use the object parameter style method for a better developer experience.
217
+ */
218
+ deleteAddon(organizationId: string, addonId: string): Promise<{}>;
219
+ /**
220
+ * Confirm payment for a billing addon for an organization.
221
+ *
222
+ *
223
+ * @param {string} params.organizationId - Organization ID
224
+ * @param {string} params.addonId - Addon ID
225
+ * @throws {AppwriteException}
226
+ * @returns {Promise<Models.Addon>}
227
+ */
228
+ confirmAddonPayment(params: {
229
+ organizationId: string;
230
+ addonId: string;
231
+ }): Promise<Models.Addon>;
232
+ /**
233
+ * Confirm payment for a billing addon for an organization.
234
+ *
235
+ *
236
+ * @param {string} organizationId - Organization ID
237
+ * @param {string} addonId - Addon ID
238
+ * @throws {AppwriteException}
239
+ * @returns {Promise<Models.Addon>}
240
+ * @deprecated Use the object parameter style method for a better developer experience.
241
+ */
242
+ confirmAddonPayment(organizationId: string, addonId: string): Promise<Models.Addon>;
243
+ /**
244
+ * Get the price details for a billing addon for an organization.
245
+ *
246
+ *
247
+ * @param {string} params.organizationId - Organization ID
248
+ * @param {Addon} params.addon - Addon key identifier (e.g. baa).
249
+ * @throws {AppwriteException}
250
+ * @returns {Promise<Models.AddonPrice>}
251
+ */
252
+ getAddonPrice(params: {
253
+ organizationId: string;
254
+ addon: Addon;
255
+ }): Promise<Models.AddonPrice>;
256
+ /**
257
+ * Get the price details for a billing addon for an organization.
258
+ *
259
+ *
260
+ * @param {string} organizationId - Organization ID
261
+ * @param {Addon} addon - Addon key identifier (e.g. baa).
262
+ * @throws {AppwriteException}
263
+ * @returns {Promise<Models.AddonPrice>}
264
+ * @deprecated Use the object parameter style method for a better developer experience.
265
+ */
266
+ getAddonPrice(organizationId: string, addon: Addon): Promise<Models.AddonPrice>;
128
267
  /**
129
268
  * Get a list of all aggregations for an organization.
130
269
  *