mailmeteor 0.0.3

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 (74) hide show
  1. package/README.md +49 -0
  2. package/dist/generated-sdk/client/client.gen.d.ts +3 -0
  3. package/dist/generated-sdk/client/client.gen.d.ts.map +1 -0
  4. package/dist/generated-sdk/client/index.d.ts +9 -0
  5. package/dist/generated-sdk/client/index.d.ts.map +1 -0
  6. package/dist/generated-sdk/client/types.gen.d.ts +118 -0
  7. package/dist/generated-sdk/client/types.gen.d.ts.map +1 -0
  8. package/dist/generated-sdk/client/utils.gen.d.ts +34 -0
  9. package/dist/generated-sdk/client/utils.gen.d.ts.map +1 -0
  10. package/dist/generated-sdk/client.gen.d.ts +13 -0
  11. package/dist/generated-sdk/client.gen.d.ts.map +1 -0
  12. package/dist/generated-sdk/core/auth.gen.d.ts +19 -0
  13. package/dist/generated-sdk/core/auth.gen.d.ts.map +1 -0
  14. package/dist/generated-sdk/core/bodySerializer.gen.d.ts +26 -0
  15. package/dist/generated-sdk/core/bodySerializer.gen.d.ts.map +1 -0
  16. package/dist/generated-sdk/core/params.gen.d.ts +44 -0
  17. package/dist/generated-sdk/core/params.gen.d.ts.map +1 -0
  18. package/dist/generated-sdk/core/pathSerializer.gen.d.ts +34 -0
  19. package/dist/generated-sdk/core/pathSerializer.gen.d.ts.map +1 -0
  20. package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts +19 -0
  21. package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts.map +1 -0
  22. package/dist/generated-sdk/core/serverSentEvents.gen.d.ts +72 -0
  23. package/dist/generated-sdk/core/serverSentEvents.gen.d.ts.map +1 -0
  24. package/dist/generated-sdk/core/types.gen.d.ts +79 -0
  25. package/dist/generated-sdk/core/types.gen.d.ts.map +1 -0
  26. package/dist/generated-sdk/core/utils.gen.d.ts +20 -0
  27. package/dist/generated-sdk/core/utils.gen.d.ts.map +1 -0
  28. package/dist/generated-sdk/index.d.ts +4 -0
  29. package/dist/generated-sdk/index.d.ts.map +1 -0
  30. package/dist/generated-sdk/sdk.gen.d.ts +112 -0
  31. package/dist/generated-sdk/sdk.gen.d.ts.map +1 -0
  32. package/dist/generated-sdk/types.gen.d.ts +426 -0
  33. package/dist/generated-sdk/types.gen.d.ts.map +1 -0
  34. package/dist/index.cjs +1323 -0
  35. package/dist/index.cjs.map +1 -0
  36. package/dist/index.d.ts +1420 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.mjs +1320 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/types/generated-sdk/client/client.gen.d.ts +3 -0
  41. package/dist/types/generated-sdk/client/client.gen.d.ts.map +1 -0
  42. package/dist/types/generated-sdk/client/index.d.ts +9 -0
  43. package/dist/types/generated-sdk/client/index.d.ts.map +1 -0
  44. package/dist/types/generated-sdk/client/types.gen.d.ts +118 -0
  45. package/dist/types/generated-sdk/client/types.gen.d.ts.map +1 -0
  46. package/dist/types/generated-sdk/client/utils.gen.d.ts +34 -0
  47. package/dist/types/generated-sdk/client/utils.gen.d.ts.map +1 -0
  48. package/dist/types/generated-sdk/client.gen.d.ts +13 -0
  49. package/dist/types/generated-sdk/client.gen.d.ts.map +1 -0
  50. package/dist/types/generated-sdk/core/auth.gen.d.ts +19 -0
  51. package/dist/types/generated-sdk/core/auth.gen.d.ts.map +1 -0
  52. package/dist/types/generated-sdk/core/bodySerializer.gen.d.ts +26 -0
  53. package/dist/types/generated-sdk/core/bodySerializer.gen.d.ts.map +1 -0
  54. package/dist/types/generated-sdk/core/params.gen.d.ts +44 -0
  55. package/dist/types/generated-sdk/core/params.gen.d.ts.map +1 -0
  56. package/dist/types/generated-sdk/core/pathSerializer.gen.d.ts +34 -0
  57. package/dist/types/generated-sdk/core/pathSerializer.gen.d.ts.map +1 -0
  58. package/dist/types/generated-sdk/core/queryKeySerializer.gen.d.ts +19 -0
  59. package/dist/types/generated-sdk/core/queryKeySerializer.gen.d.ts.map +1 -0
  60. package/dist/types/generated-sdk/core/serverSentEvents.gen.d.ts +72 -0
  61. package/dist/types/generated-sdk/core/serverSentEvents.gen.d.ts.map +1 -0
  62. package/dist/types/generated-sdk/core/types.gen.d.ts +79 -0
  63. package/dist/types/generated-sdk/core/types.gen.d.ts.map +1 -0
  64. package/dist/types/generated-sdk/core/utils.gen.d.ts +20 -0
  65. package/dist/types/generated-sdk/core/utils.gen.d.ts.map +1 -0
  66. package/dist/types/generated-sdk/index.d.ts +4 -0
  67. package/dist/types/generated-sdk/index.d.ts.map +1 -0
  68. package/dist/types/generated-sdk/sdk.gen.d.ts +183 -0
  69. package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -0
  70. package/dist/types/generated-sdk/types.gen.d.ts +906 -0
  71. package/dist/types/generated-sdk/types.gen.d.ts.map +1 -0
  72. package/dist/types/index.d.ts +24 -0
  73. package/dist/types/index.d.ts.map +1 -0
  74. package/package.json +39 -0
@@ -0,0 +1,1420 @@
1
+ type AuthToken = string | undefined;
2
+ interface Auth {
3
+ /**
4
+ * Which part of the request do we use to send the auth?
5
+ *
6
+ * @default 'header'
7
+ */
8
+ in?: 'header' | 'query' | 'cookie';
9
+ /**
10
+ * Header or query parameter name.
11
+ *
12
+ * @default 'Authorization'
13
+ */
14
+ name?: string;
15
+ scheme?: 'basic' | 'bearer';
16
+ type: 'apiKey' | 'http';
17
+ }
18
+
19
+ interface SerializerOptions<T> {
20
+ /**
21
+ * @default true
22
+ */
23
+ explode: boolean;
24
+ style: T;
25
+ }
26
+ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
27
+ type ObjectStyle = 'form' | 'deepObject';
28
+
29
+ type QuerySerializer = (query: Record<string, unknown>) => string;
30
+ type BodySerializer = (body: any) => any;
31
+ type QuerySerializerOptionsObject = {
32
+ allowReserved?: boolean;
33
+ array?: Partial<SerializerOptions<ArrayStyle>>;
34
+ object?: Partial<SerializerOptions<ObjectStyle>>;
35
+ };
36
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
37
+ /**
38
+ * Per-parameter serialization overrides. When provided, these settings
39
+ * override the global array/object settings for specific parameter names.
40
+ */
41
+ parameters?: Record<string, QuerySerializerOptionsObject>;
42
+ };
43
+
44
+ type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
45
+ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
46
+ /**
47
+ * Returns the final request URL.
48
+ */
49
+ buildUrl: BuildUrlFn;
50
+ getConfig: () => Config;
51
+ request: RequestFn;
52
+ setConfig: (config: Config) => Config;
53
+ } & {
54
+ [K in HttpMethod]: MethodFn;
55
+ } & ([SseFn] extends [never] ? {
56
+ sse?: never;
57
+ } : {
58
+ sse: {
59
+ [K in HttpMethod]: SseFn;
60
+ };
61
+ });
62
+ interface Config$1 {
63
+ /**
64
+ * Auth token or a function returning auth token. The resolved value will be
65
+ * added to the request payload as defined by its `security` array.
66
+ */
67
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
68
+ /**
69
+ * A function for serializing request body parameter. By default,
70
+ * {@link JSON.stringify()} will be used.
71
+ */
72
+ bodySerializer?: BodySerializer | null;
73
+ /**
74
+ * An object containing any HTTP headers that you want to pre-populate your
75
+ * `Headers` object with.
76
+ *
77
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
78
+ */
79
+ headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
80
+ /**
81
+ * The request method.
82
+ *
83
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
84
+ */
85
+ method?: Uppercase<HttpMethod>;
86
+ /**
87
+ * A function for serializing request query parameters. By default, arrays
88
+ * will be exploded in form style, objects will be exploded in deepObject
89
+ * style, and reserved characters are percent-encoded.
90
+ *
91
+ * This method will have no effect if the native `paramsSerializer()` Axios
92
+ * API function is used.
93
+ *
94
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
95
+ */
96
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
97
+ /**
98
+ * A function validating request data. This is useful if you want to ensure
99
+ * the request conforms to the desired shape, so it can be safely sent to
100
+ * the server.
101
+ */
102
+ requestValidator?: (data: unknown) => Promise<unknown>;
103
+ /**
104
+ * A function transforming response data before it's returned. This is useful
105
+ * for post-processing data, e.g. converting ISO strings into Date objects.
106
+ */
107
+ responseTransformer?: (data: unknown) => Promise<unknown>;
108
+ /**
109
+ * A function validating response data. This is useful if you want to ensure
110
+ * the response conforms to the desired shape, so it can be safely passed to
111
+ * the transformers and returned to the user.
112
+ */
113
+ responseValidator?: (data: unknown) => Promise<unknown>;
114
+ }
115
+
116
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
117
+ /**
118
+ * Fetch API implementation. You can use this option to provide a custom
119
+ * fetch instance.
120
+ *
121
+ * @default globalThis.fetch
122
+ */
123
+ fetch?: typeof fetch;
124
+ /**
125
+ * Implementing clients can call request interceptors inside this hook.
126
+ */
127
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
128
+ /**
129
+ * Callback invoked when a network or parsing error occurs during streaming.
130
+ *
131
+ * This option applies only if the endpoint returns a stream of events.
132
+ *
133
+ * @param error The error that occurred.
134
+ */
135
+ onSseError?: (error: unknown) => void;
136
+ /**
137
+ * Callback invoked when an event is streamed from the server.
138
+ *
139
+ * This option applies only if the endpoint returns a stream of events.
140
+ *
141
+ * @param event Event streamed from the server.
142
+ * @returns Nothing (void).
143
+ */
144
+ onSseEvent?: (event: StreamEvent<TData>) => void;
145
+ serializedBody?: RequestInit['body'];
146
+ /**
147
+ * Default retry delay in milliseconds.
148
+ *
149
+ * This option applies only if the endpoint returns a stream of events.
150
+ *
151
+ * @default 3000
152
+ */
153
+ sseDefaultRetryDelay?: number;
154
+ /**
155
+ * Maximum number of retry attempts before giving up.
156
+ */
157
+ sseMaxRetryAttempts?: number;
158
+ /**
159
+ * Maximum retry delay in milliseconds.
160
+ *
161
+ * Applies only when exponential backoff is used.
162
+ *
163
+ * This option applies only if the endpoint returns a stream of events.
164
+ *
165
+ * @default 30000
166
+ */
167
+ sseMaxRetryDelay?: number;
168
+ /**
169
+ * Optional sleep function for retry backoff.
170
+ *
171
+ * Defaults to using `setTimeout`.
172
+ */
173
+ sseSleepFn?: (ms: number) => Promise<void>;
174
+ url: string;
175
+ };
176
+ interface StreamEvent<TData = unknown> {
177
+ data: TData;
178
+ event?: string;
179
+ id?: string;
180
+ retry?: number;
181
+ }
182
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
183
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
184
+ };
185
+
186
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
187
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
188
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
189
+ declare class Interceptors<Interceptor> {
190
+ fns: Array<Interceptor | null>;
191
+ clear(): void;
192
+ eject(id: number | Interceptor): void;
193
+ exists(id: number | Interceptor): boolean;
194
+ getInterceptorIndex(id: number | Interceptor): number;
195
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
196
+ use(fn: Interceptor): number;
197
+ }
198
+ interface Middleware<Req, Res, Err, Options> {
199
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
200
+ request: Interceptors<ReqInterceptor<Req, Options>>;
201
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
202
+ }
203
+
204
+ type ResponseStyle = 'data' | 'fields';
205
+ interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
206
+ /**
207
+ * Base URL for all requests made by this client.
208
+ */
209
+ baseUrl?: T['baseUrl'];
210
+ /**
211
+ * Fetch API implementation. You can use this option to provide a custom
212
+ * fetch instance.
213
+ *
214
+ * @default globalThis.fetch
215
+ */
216
+ fetch?: typeof fetch;
217
+ /**
218
+ * Please don't use the Fetch client for Next.js applications. The `next`
219
+ * options won't have any effect.
220
+ *
221
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
222
+ */
223
+ next?: never;
224
+ /**
225
+ * Return the response data parsed in a specified format. By default, `auto`
226
+ * will infer the appropriate method from the `Content-Type` response header.
227
+ * You can override this behavior with any of the {@link Body} methods.
228
+ * Select `stream` if you don't want to parse response data at all.
229
+ *
230
+ * @default 'auto'
231
+ */
232
+ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
233
+ /**
234
+ * Should we return only data or multiple fields (data, error, response, etc.)?
235
+ *
236
+ * @default 'fields'
237
+ */
238
+ responseStyle?: ResponseStyle;
239
+ /**
240
+ * Throw an error instead of returning it in the response?
241
+ *
242
+ * @default false
243
+ */
244
+ throwOnError?: T['throwOnError'];
245
+ }
246
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
247
+ responseStyle: TResponseStyle;
248
+ throwOnError: ThrowOnError;
249
+ }>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
250
+ /**
251
+ * Any body that you want to add to your request.
252
+ *
253
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
254
+ */
255
+ body?: unknown;
256
+ path?: Record<string, unknown>;
257
+ query?: Record<string, unknown>;
258
+ /**
259
+ * Security mechanism(s) to use for the request.
260
+ */
261
+ security?: ReadonlyArray<Auth>;
262
+ url: Url;
263
+ }
264
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
265
+ serializedBody?: string;
266
+ }
267
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
268
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
269
+ request: Request;
270
+ response: Response;
271
+ }> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
272
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
273
+ error: undefined;
274
+ } | {
275
+ data: undefined;
276
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
277
+ }) & {
278
+ request: Request;
279
+ response: Response;
280
+ }>;
281
+ interface ClientOptions$1 {
282
+ baseUrl?: string;
283
+ responseStyle?: ResponseStyle;
284
+ throwOnError?: boolean;
285
+ }
286
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
287
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
288
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
289
+ type BuildUrlFn = <TData extends {
290
+ body?: unknown;
291
+ path?: Record<string, unknown>;
292
+ query?: Record<string, unknown>;
293
+ url: string;
294
+ }>(options: TData & Options$1<TData>) => string;
295
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
296
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
297
+ };
298
+ interface TDataShape {
299
+ body?: unknown;
300
+ headers?: unknown;
301
+ path?: unknown;
302
+ query?: unknown;
303
+ url: string;
304
+ }
305
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
306
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
307
+
308
+ type ClientOptions = {
309
+ baseUrl: `${string}://${string}/v1` | (string & {});
310
+ };
311
+ type ErrorResponse = {
312
+ error: {
313
+ status: number;
314
+ code?: 'url_invalid' | 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'admin_role_required' | 'TEST_ERROR';
315
+ message: string;
316
+ type?: string;
317
+ details?: {
318
+ [key: string]: unknown;
319
+ };
320
+ };
321
+ message: string;
322
+ code?: 'url_invalid' | 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'admin_role_required' | 'TEST_ERROR';
323
+ };
324
+ type AddonsResponse200 = {
325
+ senders?: {
326
+ included_per_seat: number;
327
+ included_total: number;
328
+ used: number;
329
+ extra: {
330
+ price_amount: number;
331
+ currency: string;
332
+ quantity_per_addon: number;
333
+ interval: 'day' | 'week' | 'month' | 'year';
334
+ subscribed: number;
335
+ } | null;
336
+ };
337
+ email_warmups?: {
338
+ included_per_seat: number;
339
+ included_total: number;
340
+ used: number;
341
+ extra: {
342
+ price_amount: number;
343
+ currency: string;
344
+ quantity_per_addon: number;
345
+ interval: 'day' | 'week' | 'month' | 'year';
346
+ subscribed: number;
347
+ } | null;
348
+ };
349
+ };
350
+ type PreviewBody = {
351
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
352
+ billing_period: 'month' | 'year';
353
+ };
354
+ type PreviewParams = {
355
+ addon: 'senders' | 'email_warmups';
356
+ };
357
+ type PreviewResponse200 = {
358
+ discount_percents: Array<number>;
359
+ total_excluding_tax: number;
360
+ total: number;
361
+ amount_due: number;
362
+ added_from_balance: number;
363
+ consumed_balance: number;
364
+ credited_to_balance: number;
365
+ lines: Array<{
366
+ amount: number;
367
+ billing_period: 'day' | 'week' | 'month' | 'year';
368
+ proration: boolean;
369
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
370
+ addon?: 'senders' | 'email_warmups';
371
+ }>;
372
+ next_renewal: number;
373
+ total_tax_amounts: Array<{
374
+ amount: number;
375
+ }>;
376
+ };
377
+ type AddonBody = {
378
+ quantity: number;
379
+ };
380
+ type AddonParams = {
381
+ addon: 'senders' | 'email_warmups';
382
+ };
383
+ type AddonResponse200 = Array<{
384
+ id: string;
385
+ email: string;
386
+ usage: number;
387
+ }>;
388
+ type SubscriptionResponse200 = {
389
+ status: 'confirmation_required' | 'success' | 'payment_failed';
390
+ client_secret?: string;
391
+ failure_code?: string;
392
+ };
393
+ type SubscriptionBody = {
394
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
395
+ billing_period: 'month' | 'year';
396
+ };
397
+ type PricesQuery = {
398
+ currency: string;
399
+ };
400
+ type PricesResponse200 = {
401
+ free?: {
402
+ month: number;
403
+ year: number;
404
+ };
405
+ starter?: {
406
+ month: number;
407
+ year: number;
408
+ };
409
+ pro?: {
410
+ month: number;
411
+ year: number;
412
+ };
413
+ premium?: {
414
+ month: number;
415
+ year: number;
416
+ };
417
+ business?: {
418
+ month: number;
419
+ year: number;
420
+ };
421
+ };
422
+ type CurrentResponse200 = {
423
+ current_organization_id: string | null;
424
+ };
425
+ type CurrentBody = {
426
+ organization_id?: string | null;
427
+ };
428
+ type OrganizationsResponse200 = Array<{
429
+ name: string;
430
+ owner: string;
431
+ /**
432
+ * Creation date
433
+ */
434
+ created_at: string;
435
+ /**
436
+ * Last Update date
437
+ */
438
+ updated_at?: string;
439
+ id: string;
440
+ object: 'organization';
441
+ }>;
442
+ type OrganizationsBody = {
443
+ name: string;
444
+ };
445
+ type OrganizationsResponse201 = {
446
+ name: string;
447
+ owner: string;
448
+ /**
449
+ * Creation date
450
+ */
451
+ created_at: string;
452
+ /**
453
+ * Last Update date
454
+ */
455
+ updated_at?: string;
456
+ id: string;
457
+ object: 'organization';
458
+ };
459
+ type OrganizationIdParams = {
460
+ organization_id: string;
461
+ };
462
+ type OrganizationIdResponse200 = {
463
+ name: string;
464
+ owner: string;
465
+ /**
466
+ * Creation date
467
+ */
468
+ created_at: string;
469
+ /**
470
+ * Last Update date
471
+ */
472
+ updated_at?: string;
473
+ id: string;
474
+ object: 'organization';
475
+ };
476
+ type OrganizationIdBody = {
477
+ name?: string;
478
+ };
479
+ type MembersQuery = {
480
+ limit?: number;
481
+ starting_after?: string;
482
+ };
483
+ type MembersParams = {
484
+ organization_id: string;
485
+ };
486
+ type MembersResponse200 = Array<{
487
+ email: string;
488
+ name?: string;
489
+ profile_picture_url?: string;
490
+ role: 'admin' | 'member';
491
+ /**
492
+ * Creation date
493
+ */
494
+ created_at: string;
495
+ /**
496
+ * Last Update date
497
+ */
498
+ updated_at?: string;
499
+ id: string;
500
+ organization_id: string;
501
+ object: 'organization_member';
502
+ }>;
503
+ type MembersBody = {
504
+ email: string;
505
+ role: 'admin' | 'member';
506
+ };
507
+ type MembersResponse201 = {
508
+ email: string;
509
+ name?: string;
510
+ profile_picture_url?: string;
511
+ role: 'admin' | 'member';
512
+ /**
513
+ * Creation date
514
+ */
515
+ created_at: string;
516
+ /**
517
+ * Last Update date
518
+ */
519
+ updated_at?: string;
520
+ id: string;
521
+ organization_id: string;
522
+ object: 'organization_member';
523
+ };
524
+ type MemberIdBody = {
525
+ role: 'admin' | 'member';
526
+ };
527
+ type MemberIdParams = {
528
+ organization_id: string;
529
+ member_id: string;
530
+ };
531
+ type MemberIdResponse200 = {
532
+ email: string;
533
+ name?: string;
534
+ profile_picture_url?: string;
535
+ role: 'admin' | 'member';
536
+ /**
537
+ * Creation date
538
+ */
539
+ created_at: string;
540
+ /**
541
+ * Last Update date
542
+ */
543
+ updated_at?: string;
544
+ id: string;
545
+ organization_id: string;
546
+ object: 'organization_member';
547
+ };
548
+ type OpenapiJsonResponse200 = unknown;
549
+ type BillingAddonsGetAddonsData = {
550
+ body?: never;
551
+ path?: never;
552
+ query?: never;
553
+ url: '/billing/addons';
554
+ };
555
+ type BillingAddonsGetAddonsErrors = {
556
+ /**
557
+ * Error response
558
+ */
559
+ default: ErrorResponse;
560
+ };
561
+ type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
562
+ type BillingAddonsGetAddonsResponses = {
563
+ /**
564
+ * Response
565
+ */
566
+ 200: {
567
+ senders?: {
568
+ included_per_seat: number;
569
+ included_total: number;
570
+ used: number;
571
+ extra: {
572
+ price_amount: number;
573
+ currency: string;
574
+ quantity_per_addon: number;
575
+ interval: 'day' | 'week' | 'month' | 'year';
576
+ subscribed: number;
577
+ } | null;
578
+ };
579
+ email_warmups?: {
580
+ included_per_seat: number;
581
+ included_total: number;
582
+ used: number;
583
+ extra: {
584
+ price_amount: number;
585
+ currency: string;
586
+ quantity_per_addon: number;
587
+ interval: 'day' | 'week' | 'month' | 'year';
588
+ subscribed: number;
589
+ } | null;
590
+ };
591
+ };
592
+ };
593
+ type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
594
+ type BillingAddonsPreviewUpdateData = {
595
+ body?: {
596
+ quantity: number;
597
+ };
598
+ path: {
599
+ addon: 'senders' | 'email_warmups';
600
+ };
601
+ query?: never;
602
+ url: '/billing/addons/{addon}/preview';
603
+ };
604
+ type BillingAddonsPreviewUpdateErrors = {
605
+ /**
606
+ * Error response
607
+ */
608
+ default: ErrorResponse;
609
+ };
610
+ type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
611
+ type BillingAddonsPreviewUpdateResponses = {
612
+ /**
613
+ * Response
614
+ */
615
+ 200: {
616
+ discount_percents: Array<number>;
617
+ total_excluding_tax: number;
618
+ total: number;
619
+ amount_due: number;
620
+ added_from_balance: number;
621
+ consumed_balance: number;
622
+ credited_to_balance: number;
623
+ };
624
+ };
625
+ type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
626
+ type BillingAddonsGetAddonUsagesData = {
627
+ body?: never;
628
+ path: {
629
+ addon: 'senders' | 'email_warmups';
630
+ };
631
+ query?: never;
632
+ url: '/billing/addons/{addon}';
633
+ };
634
+ type BillingAddonsGetAddonUsagesErrors = {
635
+ /**
636
+ * Error response
637
+ */
638
+ default: ErrorResponse;
639
+ };
640
+ type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
641
+ type BillingAddonsGetAddonUsagesResponses = {
642
+ /**
643
+ * Response
644
+ */
645
+ 200: Array<{
646
+ id: string;
647
+ email: string;
648
+ usage: number;
649
+ }>;
650
+ };
651
+ type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
652
+ type BillingAddonsUpdateData = {
653
+ body?: {
654
+ quantity: number;
655
+ };
656
+ path: {
657
+ addon: 'senders' | 'email_warmups';
658
+ };
659
+ query?: never;
660
+ url: '/billing/addons/{addon}';
661
+ };
662
+ type BillingAddonsUpdateErrors = {
663
+ /**
664
+ * Error response
665
+ */
666
+ default: ErrorResponse;
667
+ };
668
+ type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
669
+ type BillingAddonsUpdateResponses = {
670
+ /**
671
+ * Response
672
+ */
673
+ 200: {
674
+ status: 'confirmation_required' | 'success' | 'payment_failed';
675
+ client_secret?: string;
676
+ failure_code?: string;
677
+ };
678
+ };
679
+ type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
680
+ type BillingSubscriptionGetData = {
681
+ body?: never;
682
+ path?: never;
683
+ query?: never;
684
+ url: '/billing/subscription';
685
+ };
686
+ type BillingSubscriptionGetErrors = {
687
+ /**
688
+ * Error response
689
+ */
690
+ default: ErrorResponse;
691
+ };
692
+ type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
693
+ type BillingSubscriptionGetResponses = {
694
+ /**
695
+ * Response
696
+ */
697
+ 200: {
698
+ id: string;
699
+ created_at: number;
700
+ current_period_start: number;
701
+ current_period_end: number;
702
+ quantity: number;
703
+ currency: string;
704
+ amount: number | null;
705
+ discount_percentage?: number | null;
706
+ name: string | null;
707
+ billing_period: 'day' | 'week' | 'month' | 'year' | null;
708
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
709
+ default_payment_method: {
710
+ type: string;
711
+ brand?: string | null;
712
+ last4: string | null;
713
+ exp_month: number | null;
714
+ exp_year: number | null;
715
+ bank_name?: string | null;
716
+ } | null;
717
+ addons: {
718
+ senders?: {
719
+ quantity: number;
720
+ };
721
+ email_warmups?: {
722
+ quantity: number;
723
+ };
724
+ };
725
+ } | null;
726
+ };
727
+ type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
728
+ type BillingSubscriptionUpdateData = {
729
+ body?: {
730
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
731
+ billing_period: 'month' | 'year';
732
+ };
733
+ path?: never;
734
+ query?: never;
735
+ url: '/billing/subscription';
736
+ };
737
+ type BillingSubscriptionUpdateErrors = {
738
+ /**
739
+ * Error response
740
+ */
741
+ default: ErrorResponse;
742
+ };
743
+ type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
744
+ type BillingSubscriptionUpdateResponses = {
745
+ /**
746
+ * Response
747
+ */
748
+ 200: {
749
+ status: 'confirmation_required' | 'success' | 'payment_failed';
750
+ client_secret?: string;
751
+ failure_code?: string;
752
+ };
753
+ };
754
+ type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
755
+ type BillingSubscriptionPreviewUpdateData = {
756
+ body?: {
757
+ plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
758
+ billing_period: 'month' | 'year';
759
+ };
760
+ path?: never;
761
+ query?: never;
762
+ url: '/billing/subscription/preview';
763
+ };
764
+ type BillingSubscriptionPreviewUpdateErrors = {
765
+ /**
766
+ * Error response
767
+ */
768
+ default: ErrorResponse;
769
+ };
770
+ type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
771
+ type BillingSubscriptionPreviewUpdateResponses = {
772
+ /**
773
+ * Response
774
+ */
775
+ 200: {
776
+ discount_percents: Array<number>;
777
+ total_excluding_tax: number;
778
+ total: number;
779
+ amount_due: number;
780
+ added_from_balance: number;
781
+ consumed_balance: number;
782
+ credited_to_balance: number;
783
+ lines: Array<{
784
+ amount: number;
785
+ billing_period: 'day' | 'week' | 'month' | 'year';
786
+ proration: boolean;
787
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
788
+ addon?: 'senders' | 'email_warmups';
789
+ }>;
790
+ next_renewal: number;
791
+ total_tax_amounts: Array<{
792
+ amount: number;
793
+ }>;
794
+ };
795
+ };
796
+ type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
797
+ type BillingGetPricesData = {
798
+ body?: never;
799
+ path?: never;
800
+ query: {
801
+ currency: string;
802
+ };
803
+ url: '/billing/prices';
804
+ };
805
+ type BillingGetPricesErrors = {
806
+ /**
807
+ * Error response
808
+ */
809
+ default: ErrorResponse;
810
+ };
811
+ type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
812
+ type BillingGetPricesResponses = {
813
+ /**
814
+ * Response
815
+ */
816
+ 200: {
817
+ free?: {
818
+ month: number;
819
+ year: number;
820
+ };
821
+ starter?: {
822
+ month: number;
823
+ year: number;
824
+ };
825
+ pro?: {
826
+ month: number;
827
+ year: number;
828
+ };
829
+ premium?: {
830
+ month: number;
831
+ year: number;
832
+ };
833
+ business?: {
834
+ month: number;
835
+ year: number;
836
+ };
837
+ };
838
+ };
839
+ type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
840
+ type OrganizationGetCurrentData = {
841
+ body?: never;
842
+ path?: never;
843
+ query?: never;
844
+ url: '/organizations/current';
845
+ };
846
+ type OrganizationGetCurrentErrors = {
847
+ /**
848
+ * Error response
849
+ */
850
+ default: ErrorResponse;
851
+ };
852
+ type OrganizationGetCurrentError = OrganizationGetCurrentErrors[keyof OrganizationGetCurrentErrors];
853
+ type OrganizationGetCurrentResponses = {
854
+ /**
855
+ * Response
856
+ */
857
+ 200: {
858
+ current_organization_id: string | null;
859
+ };
860
+ };
861
+ type OrganizationGetCurrentResponse = OrganizationGetCurrentResponses[keyof OrganizationGetCurrentResponses];
862
+ type OrganizationSetCurrentData = {
863
+ body?: {
864
+ organization_id?: string | null;
865
+ };
866
+ path?: never;
867
+ query?: never;
868
+ url: '/organizations/current';
869
+ };
870
+ type OrganizationSetCurrentErrors = {
871
+ /**
872
+ * Error response
873
+ */
874
+ default: ErrorResponse;
875
+ };
876
+ type OrganizationSetCurrentError = OrganizationSetCurrentErrors[keyof OrganizationSetCurrentErrors];
877
+ type OrganizationSetCurrentResponses = {
878
+ /**
879
+ * Response
880
+ */
881
+ 200: {
882
+ current_organization_id: string | null;
883
+ };
884
+ };
885
+ type OrganizationSetCurrentResponse = OrganizationSetCurrentResponses[keyof OrganizationSetCurrentResponses];
886
+ type OrganizationListData = {
887
+ body?: never;
888
+ path?: never;
889
+ query?: never;
890
+ url: '/organizations';
891
+ };
892
+ type OrganizationListErrors = {
893
+ /**
894
+ * Error response
895
+ */
896
+ default: ErrorResponse;
897
+ };
898
+ type OrganizationListError = OrganizationListErrors[keyof OrganizationListErrors];
899
+ type OrganizationListResponses = {
900
+ /**
901
+ * Response
902
+ */
903
+ 200: Array<{
904
+ name: string;
905
+ owner: string;
906
+ /**
907
+ * Creation date
908
+ */
909
+ created_at: string;
910
+ /**
911
+ * Last Update date
912
+ */
913
+ updated_at?: string;
914
+ id: string;
915
+ object: 'organization';
916
+ }>;
917
+ };
918
+ type OrganizationListResponse = OrganizationListResponses[keyof OrganizationListResponses];
919
+ type OrganizationCreateData = {
920
+ body?: {
921
+ name: string;
922
+ };
923
+ path?: never;
924
+ query?: never;
925
+ url: '/organizations';
926
+ };
927
+ type OrganizationCreateErrors = {
928
+ /**
929
+ * Error response
930
+ */
931
+ default: ErrorResponse;
932
+ };
933
+ type OrganizationCreateError = OrganizationCreateErrors[keyof OrganizationCreateErrors];
934
+ type OrganizationCreateResponses = {
935
+ /**
936
+ * Response
937
+ */
938
+ 201: {
939
+ name: string;
940
+ owner: string;
941
+ /**
942
+ * Creation date
943
+ */
944
+ created_at: string;
945
+ /**
946
+ * Last Update date
947
+ */
948
+ updated_at?: string;
949
+ id: string;
950
+ object: 'organization';
951
+ };
952
+ };
953
+ type OrganizationCreateResponse = OrganizationCreateResponses[keyof OrganizationCreateResponses];
954
+ type OrganizationDeleteData = {
955
+ body?: never;
956
+ path: {
957
+ organization_id: string;
958
+ };
959
+ query?: never;
960
+ url: '/organizations/{organization_id}';
961
+ };
962
+ type OrganizationDeleteErrors = {
963
+ /**
964
+ * Error response
965
+ */
966
+ default: ErrorResponse;
967
+ };
968
+ type OrganizationDeleteError = OrganizationDeleteErrors[keyof OrganizationDeleteErrors];
969
+ type OrganizationDeleteResponses = {
970
+ /**
971
+ * Response
972
+ */
973
+ 204: void;
974
+ };
975
+ type OrganizationDeleteResponse = OrganizationDeleteResponses[keyof OrganizationDeleteResponses];
976
+ type OrganizationRetrieveData = {
977
+ body?: never;
978
+ path: {
979
+ organization_id: string;
980
+ };
981
+ query?: never;
982
+ url: '/organizations/{organization_id}';
983
+ };
984
+ type OrganizationRetrieveErrors = {
985
+ /**
986
+ * Error response
987
+ */
988
+ default: ErrorResponse;
989
+ };
990
+ type OrganizationRetrieveError = OrganizationRetrieveErrors[keyof OrganizationRetrieveErrors];
991
+ type OrganizationRetrieveResponses = {
992
+ /**
993
+ * Response
994
+ */
995
+ 200: {
996
+ name: string;
997
+ owner: string;
998
+ /**
999
+ * Creation date
1000
+ */
1001
+ created_at: string;
1002
+ /**
1003
+ * Last Update date
1004
+ */
1005
+ updated_at?: string;
1006
+ id: string;
1007
+ object: 'organization';
1008
+ };
1009
+ };
1010
+ type OrganizationRetrieveResponse = OrganizationRetrieveResponses[keyof OrganizationRetrieveResponses];
1011
+ type OrganizationUpdateData = {
1012
+ body?: {
1013
+ name?: string;
1014
+ };
1015
+ path: {
1016
+ organization_id: string;
1017
+ };
1018
+ query?: never;
1019
+ url: '/organizations/{organization_id}';
1020
+ };
1021
+ type OrganizationUpdateErrors = {
1022
+ /**
1023
+ * Error response
1024
+ */
1025
+ default: ErrorResponse;
1026
+ };
1027
+ type OrganizationUpdateError = OrganizationUpdateErrors[keyof OrganizationUpdateErrors];
1028
+ type OrganizationUpdateResponses = {
1029
+ /**
1030
+ * Response
1031
+ */
1032
+ 200: {
1033
+ name: string;
1034
+ owner: string;
1035
+ /**
1036
+ * Creation date
1037
+ */
1038
+ created_at: string;
1039
+ /**
1040
+ * Last Update date
1041
+ */
1042
+ updated_at?: string;
1043
+ id: string;
1044
+ object: 'organization';
1045
+ };
1046
+ };
1047
+ type OrganizationUpdateResponse = OrganizationUpdateResponses[keyof OrganizationUpdateResponses];
1048
+ type OrganizationMemberListData = {
1049
+ body?: never;
1050
+ path: {
1051
+ organization_id: string;
1052
+ };
1053
+ query?: {
1054
+ limit?: number;
1055
+ starting_after?: string;
1056
+ };
1057
+ url: '/organizations/{organization_id}/members';
1058
+ };
1059
+ type OrganizationMemberListErrors = {
1060
+ /**
1061
+ * Error response
1062
+ */
1063
+ default: ErrorResponse;
1064
+ };
1065
+ type OrganizationMemberListError = OrganizationMemberListErrors[keyof OrganizationMemberListErrors];
1066
+ type OrganizationMemberListResponses = {
1067
+ /**
1068
+ * Response
1069
+ */
1070
+ 200: Array<{
1071
+ email: string;
1072
+ name?: string;
1073
+ profile_picture_url?: string;
1074
+ role: 'admin' | 'member';
1075
+ /**
1076
+ * Creation date
1077
+ */
1078
+ created_at: string;
1079
+ /**
1080
+ * Last Update date
1081
+ */
1082
+ updated_at?: string;
1083
+ id: string;
1084
+ organization_id: string;
1085
+ object: 'organization_member';
1086
+ }>;
1087
+ };
1088
+ type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
1089
+ type OrganizationMemberCreateData = {
1090
+ body?: {
1091
+ email: string;
1092
+ role: 'admin' | 'member';
1093
+ };
1094
+ path: {
1095
+ organization_id: string;
1096
+ };
1097
+ query?: never;
1098
+ url: '/organizations/{organization_id}/members';
1099
+ };
1100
+ type OrganizationMemberCreateErrors = {
1101
+ /**
1102
+ * Error response
1103
+ */
1104
+ default: ErrorResponse;
1105
+ };
1106
+ type OrganizationMemberCreateError = OrganizationMemberCreateErrors[keyof OrganizationMemberCreateErrors];
1107
+ type OrganizationMemberCreateResponses = {
1108
+ /**
1109
+ * Response
1110
+ */
1111
+ 201: {
1112
+ email: string;
1113
+ name?: string;
1114
+ profile_picture_url?: string;
1115
+ role: 'admin' | 'member';
1116
+ /**
1117
+ * Creation date
1118
+ */
1119
+ created_at: string;
1120
+ /**
1121
+ * Last Update date
1122
+ */
1123
+ updated_at?: string;
1124
+ id: string;
1125
+ organization_id: string;
1126
+ object: 'organization_member';
1127
+ };
1128
+ };
1129
+ type OrganizationMemberCreateResponse = OrganizationMemberCreateResponses[keyof OrganizationMemberCreateResponses];
1130
+ type OrganizationMemberDeleteData = {
1131
+ body?: never;
1132
+ path: {
1133
+ organization_id: string;
1134
+ member_id: string;
1135
+ };
1136
+ query?: never;
1137
+ url: '/organizations/{organization_id}/members/{member_id}';
1138
+ };
1139
+ type OrganizationMemberDeleteErrors = {
1140
+ /**
1141
+ * Error response
1142
+ */
1143
+ default: ErrorResponse;
1144
+ };
1145
+ type OrganizationMemberDeleteError = OrganizationMemberDeleteErrors[keyof OrganizationMemberDeleteErrors];
1146
+ type OrganizationMemberDeleteResponses = {
1147
+ /**
1148
+ * Response
1149
+ */
1150
+ 204: void;
1151
+ };
1152
+ type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
1153
+ type OrganizationMemberUpdateData = {
1154
+ body?: {
1155
+ role: 'admin' | 'member';
1156
+ };
1157
+ path: {
1158
+ organization_id: string;
1159
+ member_id: string;
1160
+ };
1161
+ query?: never;
1162
+ url: '/organizations/{organization_id}/members/{member_id}';
1163
+ };
1164
+ type OrganizationMemberUpdateErrors = {
1165
+ /**
1166
+ * Error response
1167
+ */
1168
+ default: ErrorResponse;
1169
+ };
1170
+ type OrganizationMemberUpdateError = OrganizationMemberUpdateErrors[keyof OrganizationMemberUpdateErrors];
1171
+ type OrganizationMemberUpdateResponses = {
1172
+ /**
1173
+ * Response
1174
+ */
1175
+ 200: {
1176
+ email: string;
1177
+ name?: string;
1178
+ profile_picture_url?: string;
1179
+ role: 'admin' | 'member';
1180
+ /**
1181
+ * Creation date
1182
+ */
1183
+ created_at: string;
1184
+ /**
1185
+ * Last Update date
1186
+ */
1187
+ updated_at?: string;
1188
+ id: string;
1189
+ organization_id: string;
1190
+ object: 'organization_member';
1191
+ };
1192
+ };
1193
+ type OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponses[keyof OrganizationMemberUpdateResponses];
1194
+ type GetOpenapiJsonData = {
1195
+ body?: never;
1196
+ path?: never;
1197
+ query?: never;
1198
+ url: '/openapi.json';
1199
+ };
1200
+ type GetOpenapiJsonErrors = {
1201
+ /**
1202
+ * Error response
1203
+ */
1204
+ default: ErrorResponse;
1205
+ };
1206
+ type GetOpenapiJsonError = GetOpenapiJsonErrors[keyof GetOpenapiJsonErrors];
1207
+ type GetOpenapiJsonResponses = {
1208
+ /**
1209
+ * Response
1210
+ */
1211
+ 200: unknown;
1212
+ };
1213
+
1214
+ type types_gen_d_AddonBody = AddonBody;
1215
+ type types_gen_d_AddonParams = AddonParams;
1216
+ type types_gen_d_AddonResponse200 = AddonResponse200;
1217
+ type types_gen_d_AddonsResponse200 = AddonsResponse200;
1218
+ type types_gen_d_BillingAddonsGetAddonUsagesData = BillingAddonsGetAddonUsagesData;
1219
+ type types_gen_d_BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesError;
1220
+ type types_gen_d_BillingAddonsGetAddonUsagesErrors = BillingAddonsGetAddonUsagesErrors;
1221
+ type types_gen_d_BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponse;
1222
+ type types_gen_d_BillingAddonsGetAddonUsagesResponses = BillingAddonsGetAddonUsagesResponses;
1223
+ type types_gen_d_BillingAddonsGetAddonsData = BillingAddonsGetAddonsData;
1224
+ type types_gen_d_BillingAddonsGetAddonsError = BillingAddonsGetAddonsError;
1225
+ type types_gen_d_BillingAddonsGetAddonsErrors = BillingAddonsGetAddonsErrors;
1226
+ type types_gen_d_BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponse;
1227
+ type types_gen_d_BillingAddonsGetAddonsResponses = BillingAddonsGetAddonsResponses;
1228
+ type types_gen_d_BillingAddonsPreviewUpdateData = BillingAddonsPreviewUpdateData;
1229
+ type types_gen_d_BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateError;
1230
+ type types_gen_d_BillingAddonsPreviewUpdateErrors = BillingAddonsPreviewUpdateErrors;
1231
+ type types_gen_d_BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponse;
1232
+ type types_gen_d_BillingAddonsPreviewUpdateResponses = BillingAddonsPreviewUpdateResponses;
1233
+ type types_gen_d_BillingAddonsUpdateData = BillingAddonsUpdateData;
1234
+ type types_gen_d_BillingAddonsUpdateError = BillingAddonsUpdateError;
1235
+ type types_gen_d_BillingAddonsUpdateErrors = BillingAddonsUpdateErrors;
1236
+ type types_gen_d_BillingAddonsUpdateResponse = BillingAddonsUpdateResponse;
1237
+ type types_gen_d_BillingAddonsUpdateResponses = BillingAddonsUpdateResponses;
1238
+ type types_gen_d_BillingGetPricesData = BillingGetPricesData;
1239
+ type types_gen_d_BillingGetPricesError = BillingGetPricesError;
1240
+ type types_gen_d_BillingGetPricesErrors = BillingGetPricesErrors;
1241
+ type types_gen_d_BillingGetPricesResponse = BillingGetPricesResponse;
1242
+ type types_gen_d_BillingGetPricesResponses = BillingGetPricesResponses;
1243
+ type types_gen_d_BillingSubscriptionGetData = BillingSubscriptionGetData;
1244
+ type types_gen_d_BillingSubscriptionGetError = BillingSubscriptionGetError;
1245
+ type types_gen_d_BillingSubscriptionGetErrors = BillingSubscriptionGetErrors;
1246
+ type types_gen_d_BillingSubscriptionGetResponse = BillingSubscriptionGetResponse;
1247
+ type types_gen_d_BillingSubscriptionGetResponses = BillingSubscriptionGetResponses;
1248
+ type types_gen_d_BillingSubscriptionPreviewUpdateData = BillingSubscriptionPreviewUpdateData;
1249
+ type types_gen_d_BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateError;
1250
+ type types_gen_d_BillingSubscriptionPreviewUpdateErrors = BillingSubscriptionPreviewUpdateErrors;
1251
+ type types_gen_d_BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponse;
1252
+ type types_gen_d_BillingSubscriptionPreviewUpdateResponses = BillingSubscriptionPreviewUpdateResponses;
1253
+ type types_gen_d_BillingSubscriptionUpdateData = BillingSubscriptionUpdateData;
1254
+ type types_gen_d_BillingSubscriptionUpdateError = BillingSubscriptionUpdateError;
1255
+ type types_gen_d_BillingSubscriptionUpdateErrors = BillingSubscriptionUpdateErrors;
1256
+ type types_gen_d_BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponse;
1257
+ type types_gen_d_BillingSubscriptionUpdateResponses = BillingSubscriptionUpdateResponses;
1258
+ type types_gen_d_ClientOptions = ClientOptions;
1259
+ type types_gen_d_CurrentBody = CurrentBody;
1260
+ type types_gen_d_CurrentResponse200 = CurrentResponse200;
1261
+ type types_gen_d_ErrorResponse = ErrorResponse;
1262
+ type types_gen_d_GetOpenapiJsonData = GetOpenapiJsonData;
1263
+ type types_gen_d_GetOpenapiJsonError = GetOpenapiJsonError;
1264
+ type types_gen_d_GetOpenapiJsonErrors = GetOpenapiJsonErrors;
1265
+ type types_gen_d_GetOpenapiJsonResponses = GetOpenapiJsonResponses;
1266
+ type types_gen_d_MemberIdBody = MemberIdBody;
1267
+ type types_gen_d_MemberIdParams = MemberIdParams;
1268
+ type types_gen_d_MemberIdResponse200 = MemberIdResponse200;
1269
+ type types_gen_d_MembersBody = MembersBody;
1270
+ type types_gen_d_MembersParams = MembersParams;
1271
+ type types_gen_d_MembersQuery = MembersQuery;
1272
+ type types_gen_d_MembersResponse200 = MembersResponse200;
1273
+ type types_gen_d_MembersResponse201 = MembersResponse201;
1274
+ type types_gen_d_OpenapiJsonResponse200 = OpenapiJsonResponse200;
1275
+ type types_gen_d_OrganizationCreateData = OrganizationCreateData;
1276
+ type types_gen_d_OrganizationCreateError = OrganizationCreateError;
1277
+ type types_gen_d_OrganizationCreateErrors = OrganizationCreateErrors;
1278
+ type types_gen_d_OrganizationCreateResponse = OrganizationCreateResponse;
1279
+ type types_gen_d_OrganizationCreateResponses = OrganizationCreateResponses;
1280
+ type types_gen_d_OrganizationDeleteData = OrganizationDeleteData;
1281
+ type types_gen_d_OrganizationDeleteError = OrganizationDeleteError;
1282
+ type types_gen_d_OrganizationDeleteErrors = OrganizationDeleteErrors;
1283
+ type types_gen_d_OrganizationDeleteResponse = OrganizationDeleteResponse;
1284
+ type types_gen_d_OrganizationDeleteResponses = OrganizationDeleteResponses;
1285
+ type types_gen_d_OrganizationGetCurrentData = OrganizationGetCurrentData;
1286
+ type types_gen_d_OrganizationGetCurrentError = OrganizationGetCurrentError;
1287
+ type types_gen_d_OrganizationGetCurrentErrors = OrganizationGetCurrentErrors;
1288
+ type types_gen_d_OrganizationGetCurrentResponse = OrganizationGetCurrentResponse;
1289
+ type types_gen_d_OrganizationGetCurrentResponses = OrganizationGetCurrentResponses;
1290
+ type types_gen_d_OrganizationIdBody = OrganizationIdBody;
1291
+ type types_gen_d_OrganizationIdParams = OrganizationIdParams;
1292
+ type types_gen_d_OrganizationIdResponse200 = OrganizationIdResponse200;
1293
+ type types_gen_d_OrganizationListData = OrganizationListData;
1294
+ type types_gen_d_OrganizationListError = OrganizationListError;
1295
+ type types_gen_d_OrganizationListErrors = OrganizationListErrors;
1296
+ type types_gen_d_OrganizationListResponse = OrganizationListResponse;
1297
+ type types_gen_d_OrganizationListResponses = OrganizationListResponses;
1298
+ type types_gen_d_OrganizationMemberCreateData = OrganizationMemberCreateData;
1299
+ type types_gen_d_OrganizationMemberCreateError = OrganizationMemberCreateError;
1300
+ type types_gen_d_OrganizationMemberCreateErrors = OrganizationMemberCreateErrors;
1301
+ type types_gen_d_OrganizationMemberCreateResponse = OrganizationMemberCreateResponse;
1302
+ type types_gen_d_OrganizationMemberCreateResponses = OrganizationMemberCreateResponses;
1303
+ type types_gen_d_OrganizationMemberDeleteData = OrganizationMemberDeleteData;
1304
+ type types_gen_d_OrganizationMemberDeleteError = OrganizationMemberDeleteError;
1305
+ type types_gen_d_OrganizationMemberDeleteErrors = OrganizationMemberDeleteErrors;
1306
+ type types_gen_d_OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponse;
1307
+ type types_gen_d_OrganizationMemberDeleteResponses = OrganizationMemberDeleteResponses;
1308
+ type types_gen_d_OrganizationMemberListData = OrganizationMemberListData;
1309
+ type types_gen_d_OrganizationMemberListError = OrganizationMemberListError;
1310
+ type types_gen_d_OrganizationMemberListErrors = OrganizationMemberListErrors;
1311
+ type types_gen_d_OrganizationMemberListResponse = OrganizationMemberListResponse;
1312
+ type types_gen_d_OrganizationMemberListResponses = OrganizationMemberListResponses;
1313
+ type types_gen_d_OrganizationMemberUpdateData = OrganizationMemberUpdateData;
1314
+ type types_gen_d_OrganizationMemberUpdateError = OrganizationMemberUpdateError;
1315
+ type types_gen_d_OrganizationMemberUpdateErrors = OrganizationMemberUpdateErrors;
1316
+ type types_gen_d_OrganizationMemberUpdateResponse = OrganizationMemberUpdateResponse;
1317
+ type types_gen_d_OrganizationMemberUpdateResponses = OrganizationMemberUpdateResponses;
1318
+ type types_gen_d_OrganizationRetrieveData = OrganizationRetrieveData;
1319
+ type types_gen_d_OrganizationRetrieveError = OrganizationRetrieveError;
1320
+ type types_gen_d_OrganizationRetrieveErrors = OrganizationRetrieveErrors;
1321
+ type types_gen_d_OrganizationRetrieveResponse = OrganizationRetrieveResponse;
1322
+ type types_gen_d_OrganizationRetrieveResponses = OrganizationRetrieveResponses;
1323
+ type types_gen_d_OrganizationSetCurrentData = OrganizationSetCurrentData;
1324
+ type types_gen_d_OrganizationSetCurrentError = OrganizationSetCurrentError;
1325
+ type types_gen_d_OrganizationSetCurrentErrors = OrganizationSetCurrentErrors;
1326
+ type types_gen_d_OrganizationSetCurrentResponse = OrganizationSetCurrentResponse;
1327
+ type types_gen_d_OrganizationSetCurrentResponses = OrganizationSetCurrentResponses;
1328
+ type types_gen_d_OrganizationUpdateData = OrganizationUpdateData;
1329
+ type types_gen_d_OrganizationUpdateError = OrganizationUpdateError;
1330
+ type types_gen_d_OrganizationUpdateErrors = OrganizationUpdateErrors;
1331
+ type types_gen_d_OrganizationUpdateResponse = OrganizationUpdateResponse;
1332
+ type types_gen_d_OrganizationUpdateResponses = OrganizationUpdateResponses;
1333
+ type types_gen_d_OrganizationsBody = OrganizationsBody;
1334
+ type types_gen_d_OrganizationsResponse200 = OrganizationsResponse200;
1335
+ type types_gen_d_OrganizationsResponse201 = OrganizationsResponse201;
1336
+ type types_gen_d_PreviewBody = PreviewBody;
1337
+ type types_gen_d_PreviewParams = PreviewParams;
1338
+ type types_gen_d_PreviewResponse200 = PreviewResponse200;
1339
+ type types_gen_d_PricesQuery = PricesQuery;
1340
+ type types_gen_d_PricesResponse200 = PricesResponse200;
1341
+ type types_gen_d_SubscriptionBody = SubscriptionBody;
1342
+ type types_gen_d_SubscriptionResponse200 = SubscriptionResponse200;
1343
+ declare namespace types_gen_d {
1344
+ export type { types_gen_d_AddonBody as AddonBody, types_gen_d_AddonParams as AddonParams, types_gen_d_AddonResponse200 as AddonResponse200, types_gen_d_AddonsResponse200 as AddonsResponse200, types_gen_d_BillingAddonsGetAddonUsagesData as BillingAddonsGetAddonUsagesData, types_gen_d_BillingAddonsGetAddonUsagesError as BillingAddonsGetAddonUsagesError, types_gen_d_BillingAddonsGetAddonUsagesErrors as BillingAddonsGetAddonUsagesErrors, types_gen_d_BillingAddonsGetAddonUsagesResponse as BillingAddonsGetAddonUsagesResponse, types_gen_d_BillingAddonsGetAddonUsagesResponses as BillingAddonsGetAddonUsagesResponses, types_gen_d_BillingAddonsGetAddonsData as BillingAddonsGetAddonsData, types_gen_d_BillingAddonsGetAddonsError as BillingAddonsGetAddonsError, types_gen_d_BillingAddonsGetAddonsErrors as BillingAddonsGetAddonsErrors, types_gen_d_BillingAddonsGetAddonsResponse as BillingAddonsGetAddonsResponse, types_gen_d_BillingAddonsGetAddonsResponses as BillingAddonsGetAddonsResponses, types_gen_d_BillingAddonsPreviewUpdateData as BillingAddonsPreviewUpdateData, types_gen_d_BillingAddonsPreviewUpdateError as BillingAddonsPreviewUpdateError, types_gen_d_BillingAddonsPreviewUpdateErrors as BillingAddonsPreviewUpdateErrors, types_gen_d_BillingAddonsPreviewUpdateResponse as BillingAddonsPreviewUpdateResponse, types_gen_d_BillingAddonsPreviewUpdateResponses as BillingAddonsPreviewUpdateResponses, types_gen_d_BillingAddonsUpdateData as BillingAddonsUpdateData, types_gen_d_BillingAddonsUpdateError as BillingAddonsUpdateError, types_gen_d_BillingAddonsUpdateErrors as BillingAddonsUpdateErrors, types_gen_d_BillingAddonsUpdateResponse as BillingAddonsUpdateResponse, types_gen_d_BillingAddonsUpdateResponses as BillingAddonsUpdateResponses, types_gen_d_BillingGetPricesData as BillingGetPricesData, types_gen_d_BillingGetPricesError as BillingGetPricesError, types_gen_d_BillingGetPricesErrors as BillingGetPricesErrors, types_gen_d_BillingGetPricesResponse as BillingGetPricesResponse, types_gen_d_BillingGetPricesResponses as BillingGetPricesResponses, types_gen_d_BillingSubscriptionGetData as BillingSubscriptionGetData, types_gen_d_BillingSubscriptionGetError as BillingSubscriptionGetError, types_gen_d_BillingSubscriptionGetErrors as BillingSubscriptionGetErrors, types_gen_d_BillingSubscriptionGetResponse as BillingSubscriptionGetResponse, types_gen_d_BillingSubscriptionGetResponses as BillingSubscriptionGetResponses, types_gen_d_BillingSubscriptionPreviewUpdateData as BillingSubscriptionPreviewUpdateData, types_gen_d_BillingSubscriptionPreviewUpdateError as BillingSubscriptionPreviewUpdateError, types_gen_d_BillingSubscriptionPreviewUpdateErrors as BillingSubscriptionPreviewUpdateErrors, types_gen_d_BillingSubscriptionPreviewUpdateResponse as BillingSubscriptionPreviewUpdateResponse, types_gen_d_BillingSubscriptionPreviewUpdateResponses as BillingSubscriptionPreviewUpdateResponses, types_gen_d_BillingSubscriptionUpdateData as BillingSubscriptionUpdateData, types_gen_d_BillingSubscriptionUpdateError as BillingSubscriptionUpdateError, types_gen_d_BillingSubscriptionUpdateErrors as BillingSubscriptionUpdateErrors, types_gen_d_BillingSubscriptionUpdateResponse as BillingSubscriptionUpdateResponse, types_gen_d_BillingSubscriptionUpdateResponses as BillingSubscriptionUpdateResponses, types_gen_d_ClientOptions as ClientOptions, types_gen_d_CurrentBody as CurrentBody, types_gen_d_CurrentResponse200 as CurrentResponse200, types_gen_d_ErrorResponse as ErrorResponse, types_gen_d_GetOpenapiJsonData as GetOpenapiJsonData, types_gen_d_GetOpenapiJsonError as GetOpenapiJsonError, types_gen_d_GetOpenapiJsonErrors as GetOpenapiJsonErrors, types_gen_d_GetOpenapiJsonResponses as GetOpenapiJsonResponses, types_gen_d_MemberIdBody as MemberIdBody, types_gen_d_MemberIdParams as MemberIdParams, types_gen_d_MemberIdResponse200 as MemberIdResponse200, types_gen_d_MembersBody as MembersBody, types_gen_d_MembersParams as MembersParams, types_gen_d_MembersQuery as MembersQuery, types_gen_d_MembersResponse200 as MembersResponse200, types_gen_d_MembersResponse201 as MembersResponse201, types_gen_d_OpenapiJsonResponse200 as OpenapiJsonResponse200, types_gen_d_OrganizationCreateData as OrganizationCreateData, types_gen_d_OrganizationCreateError as OrganizationCreateError, types_gen_d_OrganizationCreateErrors as OrganizationCreateErrors, types_gen_d_OrganizationCreateResponse as OrganizationCreateResponse, types_gen_d_OrganizationCreateResponses as OrganizationCreateResponses, types_gen_d_OrganizationDeleteData as OrganizationDeleteData, types_gen_d_OrganizationDeleteError as OrganizationDeleteError, types_gen_d_OrganizationDeleteErrors as OrganizationDeleteErrors, types_gen_d_OrganizationDeleteResponse as OrganizationDeleteResponse, types_gen_d_OrganizationDeleteResponses as OrganizationDeleteResponses, types_gen_d_OrganizationGetCurrentData as OrganizationGetCurrentData, types_gen_d_OrganizationGetCurrentError as OrganizationGetCurrentError, types_gen_d_OrganizationGetCurrentErrors as OrganizationGetCurrentErrors, types_gen_d_OrganizationGetCurrentResponse as OrganizationGetCurrentResponse, types_gen_d_OrganizationGetCurrentResponses as OrganizationGetCurrentResponses, types_gen_d_OrganizationIdBody as OrganizationIdBody, types_gen_d_OrganizationIdParams as OrganizationIdParams, types_gen_d_OrganizationIdResponse200 as OrganizationIdResponse200, types_gen_d_OrganizationListData as OrganizationListData, types_gen_d_OrganizationListError as OrganizationListError, types_gen_d_OrganizationListErrors as OrganizationListErrors, types_gen_d_OrganizationListResponse as OrganizationListResponse, types_gen_d_OrganizationListResponses as OrganizationListResponses, types_gen_d_OrganizationMemberCreateData as OrganizationMemberCreateData, types_gen_d_OrganizationMemberCreateError as OrganizationMemberCreateError, types_gen_d_OrganizationMemberCreateErrors as OrganizationMemberCreateErrors, types_gen_d_OrganizationMemberCreateResponse as OrganizationMemberCreateResponse, types_gen_d_OrganizationMemberCreateResponses as OrganizationMemberCreateResponses, types_gen_d_OrganizationMemberDeleteData as OrganizationMemberDeleteData, types_gen_d_OrganizationMemberDeleteError as OrganizationMemberDeleteError, types_gen_d_OrganizationMemberDeleteErrors as OrganizationMemberDeleteErrors, types_gen_d_OrganizationMemberDeleteResponse as OrganizationMemberDeleteResponse, types_gen_d_OrganizationMemberDeleteResponses as OrganizationMemberDeleteResponses, types_gen_d_OrganizationMemberListData as OrganizationMemberListData, types_gen_d_OrganizationMemberListError as OrganizationMemberListError, types_gen_d_OrganizationMemberListErrors as OrganizationMemberListErrors, types_gen_d_OrganizationMemberListResponse as OrganizationMemberListResponse, types_gen_d_OrganizationMemberListResponses as OrganizationMemberListResponses, types_gen_d_OrganizationMemberUpdateData as OrganizationMemberUpdateData, types_gen_d_OrganizationMemberUpdateError as OrganizationMemberUpdateError, types_gen_d_OrganizationMemberUpdateErrors as OrganizationMemberUpdateErrors, types_gen_d_OrganizationMemberUpdateResponse as OrganizationMemberUpdateResponse, types_gen_d_OrganizationMemberUpdateResponses as OrganizationMemberUpdateResponses, types_gen_d_OrganizationRetrieveData as OrganizationRetrieveData, types_gen_d_OrganizationRetrieveError as OrganizationRetrieveError, types_gen_d_OrganizationRetrieveErrors as OrganizationRetrieveErrors, types_gen_d_OrganizationRetrieveResponse as OrganizationRetrieveResponse, types_gen_d_OrganizationRetrieveResponses as OrganizationRetrieveResponses, types_gen_d_OrganizationSetCurrentData as OrganizationSetCurrentData, types_gen_d_OrganizationSetCurrentError as OrganizationSetCurrentError, types_gen_d_OrganizationSetCurrentErrors as OrganizationSetCurrentErrors, types_gen_d_OrganizationSetCurrentResponse as OrganizationSetCurrentResponse, types_gen_d_OrganizationSetCurrentResponses as OrganizationSetCurrentResponses, types_gen_d_OrganizationUpdateData as OrganizationUpdateData, types_gen_d_OrganizationUpdateError as OrganizationUpdateError, types_gen_d_OrganizationUpdateErrors as OrganizationUpdateErrors, types_gen_d_OrganizationUpdateResponse as OrganizationUpdateResponse, types_gen_d_OrganizationUpdateResponses as OrganizationUpdateResponses, types_gen_d_OrganizationsBody as OrganizationsBody, types_gen_d_OrganizationsResponse200 as OrganizationsResponse200, types_gen_d_OrganizationsResponse201 as OrganizationsResponse201, types_gen_d_PreviewBody as PreviewBody, types_gen_d_PreviewParams as PreviewParams, types_gen_d_PreviewResponse200 as PreviewResponse200, types_gen_d_PricesQuery as PricesQuery, types_gen_d_PricesResponse200 as PricesResponse200, types_gen_d_SubscriptionBody as SubscriptionBody, types_gen_d_SubscriptionResponse200 as SubscriptionResponse200 };
1345
+ }
1346
+
1347
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
1348
+ /**
1349
+ * You can provide a client instance returned by `createClient()` instead of
1350
+ * individual options. This might be also useful if you want to implement a
1351
+ * custom client.
1352
+ */
1353
+ client?: Client;
1354
+ /**
1355
+ * You can pass arbitrary values through the `meta` object. This can be
1356
+ * used to access values that aren't defined as part of the SDK function.
1357
+ */
1358
+ meta?: Record<string, unknown>;
1359
+ };
1360
+ declare class HeyApiClient {
1361
+ protected client: Client;
1362
+ constructor(args?: {
1363
+ client?: Client;
1364
+ });
1365
+ }
1366
+ declare class BillingAddons extends HeyApiClient {
1367
+ getAddons<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
1368
+ previewUpdate<ThrowOnError extends boolean = false>(parameters: {
1369
+ addon: 'senders' | 'email_warmups';
1370
+ quantity?: number;
1371
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
1372
+ getAddonUsages<ThrowOnError extends boolean = false>(parameters: {
1373
+ addon: 'senders' | 'email_warmups';
1374
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
1375
+ update<ThrowOnError extends boolean = false>(parameters: {
1376
+ addon: 'senders' | 'email_warmups';
1377
+ quantity?: number;
1378
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
1379
+ }
1380
+ declare class BillingSubscription extends HeyApiClient {
1381
+ get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
1382
+ update<ThrowOnError extends boolean = false>(parameters?: {
1383
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1384
+ billing_period?: 'month' | 'year';
1385
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
1386
+ previewUpdate<ThrowOnError extends boolean = false>(parameters?: {
1387
+ plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
1388
+ billing_period?: 'month' | 'year';
1389
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
1390
+ }
1391
+ declare class Billing extends HeyApiClient {
1392
+ getPrices<ThrowOnError extends boolean = false>(parameters: {
1393
+ currency: string;
1394
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingGetPricesResponses, BillingGetPricesErrors, ThrowOnError, "data">;
1395
+ }
1396
+
1397
+ interface MailmeteorConfig {
1398
+ /**
1399
+ * Base URL for the API (optional)
1400
+ * Defaults to the value from API_BASE_URL environment variable or https://api.mailmeteor.com/v1
1401
+ */
1402
+ baseUrl?: string;
1403
+ }
1404
+ /**
1405
+ * Main Mailmeteor SDK class
1406
+ */
1407
+ declare class Mailmeteor {
1408
+ private client;
1409
+ readonly billingAddons: BillingAddons;
1410
+ readonly billingSubscription: BillingSubscription;
1411
+ readonly billing: Billing;
1412
+ constructor(key: string, config?: MailmeteorConfig);
1413
+ /**
1414
+ * Update the API key for authentication
1415
+ */
1416
+ setApiKey(key: string): void;
1417
+ }
1418
+
1419
+ export { Mailmeteor, types_gen_d as MailmeteorTypes };
1420
+ export type { MailmeteorConfig };