@openmeter/sdk 1.0.0-beta.212 → 1.0.0-beta.214

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 (75) hide show
  1. package/dist/cjs/src/client/addons.cjs +105 -0
  2. package/dist/cjs/src/client/addons.d.cts +152 -0
  3. package/dist/cjs/src/client/addons.js.map +1 -0
  4. package/dist/cjs/src/client/billing.cjs +11 -3
  5. package/dist/cjs/src/client/billing.d.cts +32 -59
  6. package/dist/cjs/src/client/billing.js.map +1 -1
  7. package/dist/cjs/src/client/customers.cjs +17 -0
  8. package/dist/cjs/src/client/customers.d.cts +11 -0
  9. package/dist/cjs/src/client/customers.js.map +1 -1
  10. package/dist/cjs/src/client/events.cjs +67 -20
  11. package/dist/cjs/src/client/events.d.cts +21 -5
  12. package/dist/cjs/src/client/events.js.map +1 -1
  13. package/dist/cjs/src/client/index.cjs +6 -0
  14. package/dist/cjs/src/client/index.d.cts +4 -0
  15. package/dist/cjs/src/client/index.js.map +1 -1
  16. package/dist/cjs/src/client/meters.cjs +19 -0
  17. package/dist/cjs/src/client/meters.d.cts +24 -0
  18. package/dist/cjs/src/client/meters.js.map +1 -1
  19. package/dist/cjs/src/client/notifications.d.cts +214 -36
  20. package/dist/cjs/src/client/plans.cjs +127 -50
  21. package/dist/cjs/src/client/plans.d.cts +129 -24
  22. package/dist/cjs/src/client/plans.js.map +1 -1
  23. package/dist/cjs/src/client/schemas.d.cts +1943 -1350
  24. package/dist/cjs/src/client/subscription-addons.cjs +70 -0
  25. package/dist/cjs/src/client/subscription-addons.d.cts +123 -0
  26. package/dist/cjs/src/client/subscription-addons.js.map +1 -0
  27. package/dist/cjs/src/client/subscriptions.cjs +16 -0
  28. package/dist/cjs/src/client/subscriptions.d.cts +23 -0
  29. package/dist/cjs/src/client/subscriptions.js.map +1 -1
  30. package/dist/cjs/src/portal/index.cjs +35 -6
  31. package/dist/cjs/src/portal/index.js.map +1 -1
  32. package/dist/cjs/src/zod/index.cjs +11134 -0
  33. package/dist/cjs/src/zod/index.d.cts +18506 -0
  34. package/dist/cjs/src/zod/index.js.map +1 -0
  35. package/dist/cjs/tsconfig.4615b2f8.tsbuildinfo +1 -0
  36. package/dist/cjs/tsconfig.9c445eac.tsbuildinfo +1 -0
  37. package/dist/src/client/addons.d.ts +152 -0
  38. package/dist/src/client/addons.js +101 -0
  39. package/dist/src/client/addons.js.map +1 -0
  40. package/dist/src/client/billing.d.ts +32 -59
  41. package/dist/src/client/billing.js +11 -3
  42. package/dist/src/client/billing.js.map +1 -1
  43. package/dist/src/client/customers.d.ts +11 -0
  44. package/dist/src/client/customers.js +17 -0
  45. package/dist/src/client/customers.js.map +1 -1
  46. package/dist/src/client/events.d.ts +21 -5
  47. package/dist/src/client/events.js +67 -17
  48. package/dist/src/client/events.js.map +1 -1
  49. package/dist/src/client/index.d.ts +4 -0
  50. package/dist/src/client/index.js +6 -0
  51. package/dist/src/client/index.js.map +1 -1
  52. package/dist/src/client/meters.d.ts +24 -0
  53. package/dist/src/client/meters.js +19 -0
  54. package/dist/src/client/meters.js.map +1 -1
  55. package/dist/src/client/notifications.d.ts +214 -36
  56. package/dist/src/client/plans.d.ts +129 -24
  57. package/dist/src/client/plans.js +124 -48
  58. package/dist/src/client/plans.js.map +1 -1
  59. package/dist/src/client/schemas.d.ts +1943 -1350
  60. package/dist/src/client/subscription-addons.d.ts +123 -0
  61. package/dist/src/client/subscription-addons.js +66 -0
  62. package/dist/src/client/subscription-addons.js.map +1 -0
  63. package/dist/src/client/subscriptions.d.ts +23 -0
  64. package/dist/src/client/subscriptions.js +16 -0
  65. package/dist/src/client/subscriptions.js.map +1 -1
  66. package/dist/src/portal/index.js +1 -2
  67. package/dist/src/portal/index.js.map +1 -1
  68. package/dist/src/zod/index.d.ts +18506 -0
  69. package/dist/src/zod/index.js +11108 -0
  70. package/dist/src/zod/index.js.map +1 -0
  71. package/dist/tsconfig.tsbuildinfo +1 -1
  72. package/orval.config.ts +35 -0
  73. package/package.json +30 -16
  74. package/dist/cjs/tsconfig.065c79dd.tsbuildinfo +0 -1
  75. package/dist/cjs/tsconfig.9b7a0781.tsbuildinfo +0 -1
@@ -113,36 +113,152 @@ export declare class NotificationRules {
113
113
  * @param signal - An optional abort signal
114
114
  * @returns The created rule
115
115
  */
116
- create(rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<{
117
- readonly createdAt: Date;
118
- readonly updatedAt: Date;
119
- readonly deletedAt?: Date;
120
- readonly id: string;
121
- type: "entitlements.balance.threshold";
122
- name: string;
123
- disabled?: boolean;
124
- channels: import("./schemas.js").components["schemas"]["NotificationChannelMeta"][];
125
- thresholds: import("./schemas.js").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
126
- features?: import("./schemas.js").components["schemas"]["FeatureMeta"][];
127
- }>;
116
+ create(rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
117
+ 201: {
118
+ headers: {
119
+ [name: string]: unknown;
120
+ };
121
+ content: {
122
+ "application/json": import("./schemas.js").components["schemas"]["NotificationRule"];
123
+ };
124
+ };
125
+ 400: {
126
+ headers: {
127
+ [name: string]: unknown;
128
+ };
129
+ content: {
130
+ "application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
131
+ };
132
+ };
133
+ 401: {
134
+ headers: {
135
+ [name: string]: unknown;
136
+ };
137
+ content: {
138
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
139
+ };
140
+ };
141
+ 403: {
142
+ headers: {
143
+ [name: string]: unknown;
144
+ };
145
+ content: {
146
+ "application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
147
+ };
148
+ };
149
+ 412: {
150
+ headers: {
151
+ [name: string]: unknown;
152
+ };
153
+ content: {
154
+ "application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
155
+ };
156
+ };
157
+ 500: {
158
+ headers: {
159
+ [name: string]: unknown;
160
+ };
161
+ content: {
162
+ "application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
163
+ };
164
+ };
165
+ 503: {
166
+ headers: {
167
+ [name: string]: unknown;
168
+ };
169
+ content: {
170
+ "application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
171
+ };
172
+ };
173
+ default: {
174
+ headers: {
175
+ [name: string]: unknown;
176
+ };
177
+ content: {
178
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
179
+ };
180
+ };
181
+ }, `${string}/${string}`>>;
128
182
  /**
129
183
  * Get a notification rule by ID
130
184
  * @param id - The ID of the notification rule
131
185
  * @param signal - An optional abort signal
132
186
  * @returns The notification rule
133
187
  */
134
- get(id: operations['getNotificationRule']['parameters']['path']['ruleId'], options?: RequestOptions): Promise<{
135
- readonly createdAt: Date;
136
- readonly updatedAt: Date;
137
- readonly deletedAt?: Date;
138
- readonly id: string;
139
- type: "entitlements.balance.threshold";
140
- name: string;
141
- disabled?: boolean;
142
- channels: import("./schemas.js").components["schemas"]["NotificationChannelMeta"][];
143
- thresholds: import("./schemas.js").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
144
- features?: import("./schemas.js").components["schemas"]["FeatureMeta"][];
145
- }>;
188
+ get(id: operations['getNotificationRule']['parameters']['path']['ruleId'], options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
189
+ 200: {
190
+ headers: {
191
+ [name: string]: unknown;
192
+ };
193
+ content: {
194
+ "application/json": import("./schemas.js").components["schemas"]["NotificationRule"];
195
+ };
196
+ };
197
+ 400: {
198
+ headers: {
199
+ [name: string]: unknown;
200
+ };
201
+ content: {
202
+ "application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
203
+ };
204
+ };
205
+ 401: {
206
+ headers: {
207
+ [name: string]: unknown;
208
+ };
209
+ content: {
210
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
211
+ };
212
+ };
213
+ 403: {
214
+ headers: {
215
+ [name: string]: unknown;
216
+ };
217
+ content: {
218
+ "application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
219
+ };
220
+ };
221
+ 404: {
222
+ headers: {
223
+ [name: string]: unknown;
224
+ };
225
+ content: {
226
+ "application/problem+json": import("./schemas.js").components["schemas"]["NotFoundProblemResponse"];
227
+ };
228
+ };
229
+ 412: {
230
+ headers: {
231
+ [name: string]: unknown;
232
+ };
233
+ content: {
234
+ "application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
235
+ };
236
+ };
237
+ 500: {
238
+ headers: {
239
+ [name: string]: unknown;
240
+ };
241
+ content: {
242
+ "application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
243
+ };
244
+ };
245
+ 503: {
246
+ headers: {
247
+ [name: string]: unknown;
248
+ };
249
+ content: {
250
+ "application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
251
+ };
252
+ };
253
+ default: {
254
+ headers: {
255
+ [name: string]: unknown;
256
+ };
257
+ content: {
258
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
259
+ };
260
+ };
261
+ }, `${string}/${string}`>>;
146
262
  /**
147
263
  * Update a notification rule
148
264
  * @param id - The ID of the notification rule
@@ -150,18 +266,80 @@ export declare class NotificationRules {
150
266
  * @param signal - An optional abort signal
151
267
  * @returns The updated rule
152
268
  */
153
- update(id: operations['updateNotificationRule']['parameters']['path']['ruleId'], rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<{
154
- readonly createdAt: Date;
155
- readonly updatedAt: Date;
156
- readonly deletedAt?: Date;
157
- readonly id: string;
158
- type: "entitlements.balance.threshold";
159
- name: string;
160
- disabled?: boolean;
161
- channels: import("./schemas.js").components["schemas"]["NotificationChannelMeta"][];
162
- thresholds: import("./schemas.js").components["schemas"]["NotificationRuleBalanceThresholdValue"][];
163
- features?: import("./schemas.js").components["schemas"]["FeatureMeta"][];
164
- }>;
269
+ update(id: operations['updateNotificationRule']['parameters']['path']['ruleId'], rule: NotificationRuleCreateRequest, options?: RequestOptions): Promise<import("openapi-typescript-helpers").SuccessResponse<{
270
+ 200: {
271
+ headers: {
272
+ [name: string]: unknown;
273
+ };
274
+ content: {
275
+ "application/json": import("./schemas.js").components["schemas"]["NotificationRule"];
276
+ };
277
+ };
278
+ 400: {
279
+ headers: {
280
+ [name: string]: unknown;
281
+ };
282
+ content: {
283
+ "application/problem+json": import("./schemas.js").components["schemas"]["BadRequestProblemResponse"];
284
+ };
285
+ };
286
+ 401: {
287
+ headers: {
288
+ [name: string]: unknown;
289
+ };
290
+ content: {
291
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnauthorizedProblemResponse"];
292
+ };
293
+ };
294
+ 403: {
295
+ headers: {
296
+ [name: string]: unknown;
297
+ };
298
+ content: {
299
+ "application/problem+json": import("./schemas.js").components["schemas"]["ForbiddenProblemResponse"];
300
+ };
301
+ };
302
+ 404: {
303
+ headers: {
304
+ [name: string]: unknown;
305
+ };
306
+ content: {
307
+ "application/problem+json": import("./schemas.js").components["schemas"]["NotFoundProblemResponse"];
308
+ };
309
+ };
310
+ 412: {
311
+ headers: {
312
+ [name: string]: unknown;
313
+ };
314
+ content: {
315
+ "application/problem+json": import("./schemas.js").components["schemas"]["PreconditionFailedProblemResponse"];
316
+ };
317
+ };
318
+ 500: {
319
+ headers: {
320
+ [name: string]: unknown;
321
+ };
322
+ content: {
323
+ "application/problem+json": import("./schemas.js").components["schemas"]["InternalServerErrorProblemResponse"];
324
+ };
325
+ };
326
+ 503: {
327
+ headers: {
328
+ [name: string]: unknown;
329
+ };
330
+ content: {
331
+ "application/problem+json": import("./schemas.js").components["schemas"]["ServiceUnavailableProblemResponse"];
332
+ };
333
+ };
334
+ default: {
335
+ headers: {
336
+ [name: string]: unknown;
337
+ };
338
+ content: {
339
+ "application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
340
+ };
341
+ };
342
+ }, `${string}/${string}`>>;
165
343
  /**
166
344
  * List notification rules
167
345
  * @param query - The query parameters
@@ -1,13 +1,18 @@
1
1
  import type { RequestOptions } from './common.js';
2
2
  import type { operations, paths, PlanCreate, PlanReplaceUpdate } from './schemas.js';
3
3
  import type { Client } from 'openapi-fetch';
4
+ /**
5
+ * Plans
6
+ * Manage customer subscription plans and addon assignments.
7
+ */
4
8
  export declare class Plans {
5
9
  private client;
10
+ addons: PlanAddons;
6
11
  constructor(client: Client<paths, `${string}/${string}`>);
7
12
  /**
8
13
  * Create a plan
9
14
  * @param plan - The plan to create
10
- * @param signal - An optional abort signal
15
+ * @param options - Optional request options
11
16
  * @returns The created plan
12
17
  */
13
18
  create(plan: PlanCreate, options?: RequestOptions): Promise<{
@@ -22,18 +27,22 @@ export declare class Plans {
22
27
  alignment?: import("./schemas.js").components["schemas"]["Alignment"];
23
28
  readonly version: number;
24
29
  currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
30
+ billingCadence: string;
31
+ proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
25
32
  readonly effectiveFrom?: Date;
26
33
  readonly effectiveTo?: Date;
27
34
  readonly status: import("./schemas.js").components["schemas"]["PlanStatus"];
28
35
  phases: import("./schemas.js").components["schemas"]["PlanPhase"][];
36
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
29
37
  }>;
30
38
  /**
31
- * Get a plan by ID or key
32
- * @param idOrKey - The ID or key of the plan
33
- * @param signal - An optional abort signal
39
+ * Get a plan by ID
40
+ * @param planId - The ID of the plan to retrieve
41
+ * @param params - Optional query parameters
42
+ * @param options - Optional request options
34
43
  * @returns The plan
35
44
  */
36
- get(id: operations['getPlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
45
+ get(planId: operations['getPlan']['parameters']['path']['planId'], params?: operations['getPlan']['parameters']['query'], options?: RequestOptions): Promise<{
37
46
  readonly id: string;
38
47
  name: string;
39
48
  description?: string;
@@ -45,18 +54,21 @@ export declare class Plans {
45
54
  alignment?: import("./schemas.js").components["schemas"]["Alignment"];
46
55
  readonly version: number;
47
56
  currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
57
+ billingCadence: string;
58
+ proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
48
59
  readonly effectiveFrom?: Date;
49
60
  readonly effectiveTo?: Date;
50
61
  readonly status: import("./schemas.js").components["schemas"]["PlanStatus"];
51
62
  phases: import("./schemas.js").components["schemas"]["PlanPhase"][];
63
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
52
64
  }>;
53
65
  /**
54
66
  * List plans
55
- * @param query - The query parameters
56
- * @param signal - An optional abort signal
57
- * @returns The list of plans
67
+ * @param params - Optional parameters for listing plans
68
+ * @param options - Optional request options
69
+ * @returns A list of plans
58
70
  */
59
- list(query?: operations['listPlans']['parameters']['query'], options?: RequestOptions): Promise<{
71
+ list(params?: operations['listPlans']['parameters']['query'], options?: RequestOptions): Promise<{
60
72
  totalCount: number;
61
73
  page: number;
62
74
  pageSize: number;
@@ -64,12 +76,12 @@ export declare class Plans {
64
76
  }>;
65
77
  /**
66
78
  * Update a plan
67
- * @param id - The ID of the plan
68
- * @param plan - The plan to update
69
- * @param signal - An optional abort signal
79
+ * @param planId - The ID of the plan to update
80
+ * @param plan - The plan data to update
81
+ * @param options - Optional request options
70
82
  * @returns The updated plan
71
83
  */
72
- update(id: operations['updatePlan']['parameters']['path']['planId'], plan: PlanReplaceUpdate, options?: RequestOptions): Promise<{
84
+ update(planId: operations['updatePlan']['parameters']['path']['planId'], plan: PlanReplaceUpdate, options?: RequestOptions): Promise<{
73
85
  readonly id: string;
74
86
  name: string;
75
87
  description?: string;
@@ -81,25 +93,28 @@ export declare class Plans {
81
93
  alignment?: import("./schemas.js").components["schemas"]["Alignment"];
82
94
  readonly version: number;
83
95
  currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
96
+ billingCadence: string;
97
+ proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
84
98
  readonly effectiveFrom?: Date;
85
99
  readonly effectiveTo?: Date;
86
100
  readonly status: import("./schemas.js").components["schemas"]["PlanStatus"];
87
101
  phases: import("./schemas.js").components["schemas"]["PlanPhase"][];
102
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
88
103
  }>;
89
104
  /**
90
- * Delete a plan
91
- * @param id - The ID of the plan
92
- * @param signal - An optional abort signal
93
- * @returns The deleted plan
105
+ * Delete a plan by ID
106
+ * @param planId - The ID of the plan to delete
107
+ * @param options - Optional request options
108
+ * @returns void or standard error response structure
94
109
  */
95
- delete(id: operations['deletePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<undefined>;
110
+ delete(planId: operations['deletePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<undefined>;
96
111
  /**
97
112
  * Archive a plan
98
- * @param id - The ID of the plan
99
- * @param signal - An optional abort signal
113
+ * @param planId - The ID of the plan to archive
114
+ * @param options - Optional request options
100
115
  * @returns The archived plan
101
116
  */
102
- archive(id: operations['archivePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
117
+ archive(planId: operations['archivePlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
103
118
  readonly id: string;
104
119
  name: string;
105
120
  description?: string;
@@ -111,18 +126,21 @@ export declare class Plans {
111
126
  alignment?: import("./schemas.js").components["schemas"]["Alignment"];
112
127
  readonly version: number;
113
128
  currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
129
+ billingCadence: string;
130
+ proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
114
131
  readonly effectiveFrom?: Date;
115
132
  readonly effectiveTo?: Date;
116
133
  readonly status: import("./schemas.js").components["schemas"]["PlanStatus"];
117
134
  phases: import("./schemas.js").components["schemas"]["PlanPhase"][];
135
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
118
136
  }>;
119
137
  /**
120
138
  * Publish a plan
121
- * @param id - The ID of the plan
122
- * @param signal - An optional abort signal
139
+ * @param planId - The ID of the plan to publish
140
+ * @param options - Optional request options
123
141
  * @returns The published plan
124
142
  */
125
- publish(id: operations['publishPlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
143
+ publish(planId: operations['publishPlan']['parameters']['path']['planId'], options?: RequestOptions): Promise<{
126
144
  readonly id: string;
127
145
  name: string;
128
146
  description?: string;
@@ -134,9 +152,96 @@ export declare class Plans {
134
152
  alignment?: import("./schemas.js").components["schemas"]["Alignment"];
135
153
  readonly version: number;
136
154
  currency: import("./schemas.js").components["schemas"]["CurrencyCode"];
155
+ billingCadence: string;
156
+ proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
137
157
  readonly effectiveFrom?: Date;
138
158
  readonly effectiveTo?: Date;
139
159
  readonly status: import("./schemas.js").components["schemas"]["PlanStatus"];
140
160
  phases: import("./schemas.js").components["schemas"]["PlanPhase"][];
161
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
141
162
  }>;
142
163
  }
164
+ /**
165
+ * Plan Addons
166
+ * Manage addon assignments for plans.
167
+ */
168
+ export declare class PlanAddons {
169
+ private client;
170
+ constructor(client: Client<paths, `${string}/${string}`>);
171
+ /**
172
+ * List plan addons
173
+ * @param planId - The ID of the plan
174
+ * @param params - Optional query parameters
175
+ * @param options - Optional request options
176
+ * @returns A list of plan addons
177
+ */
178
+ list(planId: operations['listPlanAddons']['parameters']['path']['planId'], params?: operations['listPlanAddons']['parameters']['query'], options?: RequestOptions): Promise<{
179
+ totalCount: number;
180
+ page: number;
181
+ pageSize: number;
182
+ items: import("./schemas.js").components["schemas"]["PlanAddon"][];
183
+ }>;
184
+ /**
185
+ * Create a plan addon
186
+ * @param planId - The ID of the plan
187
+ * @param planAddon - The plan addon to create
188
+ * @param options - Optional request options
189
+ * @returns The created plan addon
190
+ */
191
+ create(planId: operations['createPlanAddon']['parameters']['path']['planId'], planAddon: operations['createPlanAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
192
+ readonly createdAt: Date;
193
+ readonly updatedAt: Date;
194
+ readonly deletedAt?: Date;
195
+ readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
196
+ metadata?: import("./schemas.js").components["schemas"]["Metadata"];
197
+ readonly addon: import("./schemas.js").components["schemas"]["Addon"];
198
+ fromPlanPhase: string;
199
+ maxQuantity?: number;
200
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
201
+ }>;
202
+ /**
203
+ * Get a plan addon by ID
204
+ * @param planId - The ID of the plan
205
+ * @param planAddonId - The ID of the plan addon
206
+ * @param options - Optional request options
207
+ * @returns The plan addon
208
+ */
209
+ get(planId: operations['getPlanAddon']['parameters']['path']['planId'], planAddonId: operations['getPlanAddon']['parameters']['path']['planAddonId'], options?: RequestOptions): Promise<{
210
+ readonly createdAt: Date;
211
+ readonly updatedAt: Date;
212
+ readonly deletedAt?: Date;
213
+ readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
214
+ metadata?: import("./schemas.js").components["schemas"]["Metadata"];
215
+ readonly addon: import("./schemas.js").components["schemas"]["Addon"];
216
+ fromPlanPhase: string;
217
+ maxQuantity?: number;
218
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
219
+ }>;
220
+ /**
221
+ * Update a plan addon
222
+ * @param planId - The ID of the plan
223
+ * @param planAddonId - The ID of the plan addon to update
224
+ * @param planAddon - The plan addon data to update
225
+ * @param options - Optional request options
226
+ * @returns The updated plan addon
227
+ */
228
+ update(planId: operations['updatePlanAddon']['parameters']['path']['planId'], planAddonId: operations['updatePlanAddon']['parameters']['path']['planAddonId'], planAddon: operations['updatePlanAddon']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
229
+ readonly createdAt: Date;
230
+ readonly updatedAt: Date;
231
+ readonly deletedAt?: Date;
232
+ readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
233
+ metadata?: import("./schemas.js").components["schemas"]["Metadata"];
234
+ readonly addon: import("./schemas.js").components["schemas"]["Addon"];
235
+ fromPlanPhase: string;
236
+ maxQuantity?: number;
237
+ readonly validationErrors: import("./schemas.js").components["schemas"]["ValidationError"][] | null;
238
+ }>;
239
+ /**
240
+ * Delete a plan addon by ID
241
+ * @param planId - The ID of the plan
242
+ * @param planAddonId - The ID of the plan addon to delete
243
+ * @param options - Optional request options
244
+ * @returns void or standard error response structure
245
+ */
246
+ delete(planId: operations['deletePlanAddon']['parameters']['path']['planId'], planAddonId: operations['deletePlanAddon']['parameters']['path']['planAddonId'], options?: RequestOptions): Promise<undefined>;
247
+ }