mailmeteor 0.0.3 → 0.0.4
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/index.cjs +270 -151
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +860 -514
- package/dist/index.mjs +270 -151
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/client/client.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/client/types.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/client/utils.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/auth.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/params.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/types.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/core/utils.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/index.d.ts +2 -2
- package/dist/types/generated-sdk/index.d.ts.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +111 -71
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +741 -489
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/generated-sdk/client/client.gen.d.ts +0 -3
- package/dist/generated-sdk/client/client.gen.d.ts.map +0 -1
- package/dist/generated-sdk/client/index.d.ts +0 -9
- package/dist/generated-sdk/client/index.d.ts.map +0 -1
- package/dist/generated-sdk/client/types.gen.d.ts +0 -118
- package/dist/generated-sdk/client/types.gen.d.ts.map +0 -1
- package/dist/generated-sdk/client/utils.gen.d.ts +0 -34
- package/dist/generated-sdk/client/utils.gen.d.ts.map +0 -1
- package/dist/generated-sdk/client.gen.d.ts +0 -13
- package/dist/generated-sdk/client.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/auth.gen.d.ts +0 -19
- package/dist/generated-sdk/core/auth.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/bodySerializer.gen.d.ts +0 -26
- package/dist/generated-sdk/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/params.gen.d.ts +0 -44
- package/dist/generated-sdk/core/params.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/pathSerializer.gen.d.ts +0 -34
- package/dist/generated-sdk/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/generated-sdk/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/generated-sdk/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/types.gen.d.ts +0 -79
- package/dist/generated-sdk/core/types.gen.d.ts.map +0 -1
- package/dist/generated-sdk/core/utils.gen.d.ts +0 -20
- package/dist/generated-sdk/core/utils.gen.d.ts.map +0 -1
- package/dist/generated-sdk/index.d.ts +0 -4
- package/dist/generated-sdk/index.d.ts.map +0 -1
- package/dist/generated-sdk/sdk.gen.d.ts +0 -112
- package/dist/generated-sdk/sdk.gen.d.ts.map +0 -1
- package/dist/generated-sdk/types.gen.d.ts +0 -426
- package/dist/generated-sdk/types.gen.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { Auth, AuthToken } from './auth.gen';
|
|
2
|
-
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
|
|
3
|
-
export type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
4
|
-
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
|
-
/**
|
|
6
|
-
* Returns the final request URL.
|
|
7
|
-
*/
|
|
8
|
-
buildUrl: BuildUrlFn;
|
|
9
|
-
getConfig: () => Config;
|
|
10
|
-
request: RequestFn;
|
|
11
|
-
setConfig: (config: Config) => Config;
|
|
12
|
-
} & {
|
|
13
|
-
[K in HttpMethod]: MethodFn;
|
|
14
|
-
} & ([SseFn] extends [never] ? {
|
|
15
|
-
sse?: never;
|
|
16
|
-
} : {
|
|
17
|
-
sse: {
|
|
18
|
-
[K in HttpMethod]: SseFn;
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
export interface Config {
|
|
22
|
-
/**
|
|
23
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
24
|
-
* added to the request payload as defined by its `security` array.
|
|
25
|
-
*/
|
|
26
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
27
|
-
/**
|
|
28
|
-
* A function for serializing request body parameter. By default,
|
|
29
|
-
* {@link JSON.stringify()} will be used.
|
|
30
|
-
*/
|
|
31
|
-
bodySerializer?: BodySerializer | null;
|
|
32
|
-
/**
|
|
33
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
34
|
-
* `Headers` object with.
|
|
35
|
-
*
|
|
36
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
37
|
-
*/
|
|
38
|
-
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* The request method.
|
|
41
|
-
*
|
|
42
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
43
|
-
*/
|
|
44
|
-
method?: Uppercase<HttpMethod>;
|
|
45
|
-
/**
|
|
46
|
-
* A function for serializing request query parameters. By default, arrays
|
|
47
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
48
|
-
* style, and reserved characters are percent-encoded.
|
|
49
|
-
*
|
|
50
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
51
|
-
* API function is used.
|
|
52
|
-
*
|
|
53
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
54
|
-
*/
|
|
55
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
56
|
-
/**
|
|
57
|
-
* A function validating request data. This is useful if you want to ensure
|
|
58
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
59
|
-
* the server.
|
|
60
|
-
*/
|
|
61
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
62
|
-
/**
|
|
63
|
-
* A function transforming response data before it's returned. This is useful
|
|
64
|
-
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
65
|
-
*/
|
|
66
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
67
|
-
/**
|
|
68
|
-
* A function validating response data. This is useful if you want to ensure
|
|
69
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
70
|
-
* the transformers and returned to the user.
|
|
71
|
-
*/
|
|
72
|
-
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
|
-
}
|
|
74
|
-
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
|
-
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
|
-
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
77
|
-
};
|
|
78
|
-
export {};
|
|
79
|
-
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/generated-sdk/core/types.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,sBA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CAAC;IAC/B;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,eAAe,GAAG,sBAAsB,CAAC;IAC3D;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1D;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACzD;AAED,KAAK,8BAA8B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACxD,IAAI,GACJ,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC,GAC7B,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GACrB,KAAK,GACL,IAAI,GACN,KAAK,CAAC;AAEZ,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACxD,CAAC,IAAI,MAAM,CAAC,IAAI,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAC9D,KAAK,GACL,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACb,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
2
|
-
export interface PathSerializer {
|
|
3
|
-
path: Record<string, unknown>;
|
|
4
|
-
url: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const PATH_PARAM_RE: RegExp;
|
|
7
|
-
export declare const defaultPathSerializer: ({ path, url: _url }: PathSerializer) => string;
|
|
8
|
-
export declare const getUrl: ({ baseUrl, path, query, querySerializer, url: _url, }: {
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
path?: Record<string, unknown>;
|
|
11
|
-
query?: Record<string, unknown>;
|
|
12
|
-
querySerializer: QuerySerializer;
|
|
13
|
-
url: string;
|
|
14
|
-
}) => string;
|
|
15
|
-
export declare function getValidRequestBody(options: {
|
|
16
|
-
body?: unknown;
|
|
17
|
-
bodySerializer?: BodySerializer | null;
|
|
18
|
-
serializedBody?: unknown;
|
|
19
|
-
}): unknown;
|
|
20
|
-
//# sourceMappingURL=utils.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.gen.d.ts","sourceRoot":"","sources":["../../../../src/generated-sdk/core/utils.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQ5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,aAAa,QAAgB,CAAC;AAE3C,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,cAAc,WAoExE,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uDAMpB;IACD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;CACb,WAcA,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,WAuBA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { client, type CreateClientConfig } from './client.gen';
|
|
2
|
-
export { Billing, Billing2, BillingAddons, BillingAddons2, BillingSubscription, BillingSubscription2, Default, type Options } from './sdk.gen';
|
|
3
|
-
export type { AddonBody, AddonParams, AddonResponse200, AddonsResponse200, BillingAddonsGetAddonsData, BillingAddonsGetAddonsError, BillingAddonsGetAddonsErrors, BillingAddonsGetAddonsResponse, BillingAddonsGetAddonsResponses, BillingAddonsGetAddonUsagesData, BillingAddonsGetAddonUsagesError, BillingAddonsGetAddonUsagesErrors, BillingAddonsGetAddonUsagesResponse, BillingAddonsGetAddonUsagesResponses, BillingAddonsPreviewUpdateData, BillingAddonsPreviewUpdateError, BillingAddonsPreviewUpdateErrors, BillingAddonsPreviewUpdateResponse, BillingAddonsPreviewUpdateResponses, BillingAddonsUpdateData, BillingAddonsUpdateError, BillingAddonsUpdateErrors, BillingAddonsUpdateResponse, BillingAddonsUpdateResponses, BillingGetPricesData, BillingGetPricesError, BillingGetPricesErrors, BillingGetPricesResponse, BillingGetPricesResponses, BillingSubscriptionGetData, BillingSubscriptionGetError, BillingSubscriptionGetErrors, BillingSubscriptionGetResponse, BillingSubscriptionGetResponses, BillingSubscriptionPreviewUpdateData, BillingSubscriptionPreviewUpdateError, BillingSubscriptionPreviewUpdateErrors, BillingSubscriptionPreviewUpdateResponse, BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionUpdateData, BillingSubscriptionUpdateError, BillingSubscriptionUpdateErrors, BillingSubscriptionUpdateResponse, BillingSubscriptionUpdateResponses, ClientOptions, ErrorResponse, GetOpenapiJsonData, GetOpenapiJsonError, GetOpenapiJsonErrors, GetOpenapiJsonResponses, OpenapiJsonResponse200, PreviewBody, PreviewParams, PreviewResponse200, PricesQuery, PricesResponse200, SubscriptionBody, SubscriptionResponse200 } from './types.gen';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated-sdk/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/I,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,mCAAmC,EAAE,oCAAoC,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,mCAAmC,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,oCAAoC,EAAE,qCAAqC,EAAE,sCAAsC,EAAE,wCAAwC,EAAE,yCAAyC,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { type Client, type Options as Options2, type TDataShape } from './client';
|
|
2
|
-
import type { BillingAddonsGetAddonsErrors, BillingAddonsGetAddonsResponses, BillingAddonsGetAddonUsagesErrors, BillingAddonsGetAddonUsagesResponses, BillingAddonsPreviewUpdateErrors, BillingAddonsPreviewUpdateResponses, BillingAddonsUpdateErrors, BillingAddonsUpdateResponses, BillingGetPricesErrors, BillingGetPricesResponses, BillingSubscriptionGetErrors, BillingSubscriptionGetResponses, BillingSubscriptionPreviewUpdateErrors, BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionUpdateErrors, BillingSubscriptionUpdateResponses, GetOpenapiJsonErrors, GetOpenapiJsonResponses } from './types.gen';
|
|
3
|
-
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
-
/**
|
|
5
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
-
* individual options. This might be also useful if you want to implement a
|
|
7
|
-
* custom client.
|
|
8
|
-
*/
|
|
9
|
-
client?: Client;
|
|
10
|
-
/**
|
|
11
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
-
*/
|
|
14
|
-
meta?: Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
declare class HeyApiClient {
|
|
17
|
-
protected client: Client;
|
|
18
|
-
constructor(args?: {
|
|
19
|
-
client?: Client;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
declare class HeyApiRegistry<T> {
|
|
23
|
-
private readonly defaultKey;
|
|
24
|
-
private readonly instances;
|
|
25
|
-
get(key?: string): T;
|
|
26
|
-
set(value: T, key?: string): void;
|
|
27
|
-
}
|
|
28
|
-
declare class HeyApiRegistry2<T> {
|
|
29
|
-
private readonly defaultKey;
|
|
30
|
-
private readonly instances;
|
|
31
|
-
get(key?: string): T;
|
|
32
|
-
set(value: T, key?: string): void;
|
|
33
|
-
}
|
|
34
|
-
declare class HeyApiRegistry3<T> {
|
|
35
|
-
private readonly defaultKey;
|
|
36
|
-
private readonly instances;
|
|
37
|
-
get(key?: string): T;
|
|
38
|
-
set(value: T, key?: string): void;
|
|
39
|
-
}
|
|
40
|
-
declare class HeyApiRegistry4<T> {
|
|
41
|
-
private readonly defaultKey;
|
|
42
|
-
private readonly instances;
|
|
43
|
-
get(key?: string): T;
|
|
44
|
-
set(value: T, key?: string): void;
|
|
45
|
-
}
|
|
46
|
-
export declare class BillingAddons extends HeyApiClient {
|
|
47
|
-
getAddons<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
|
|
48
|
-
previewUpdate<ThrowOnError extends boolean = false>(parameters: {
|
|
49
|
-
addon: 'senders' | 'email_warmups';
|
|
50
|
-
quantity?: number;
|
|
51
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
|
|
52
|
-
getAddonUsages<ThrowOnError extends boolean = false>(parameters: {
|
|
53
|
-
addon: 'senders' | 'email_warmups';
|
|
54
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
|
|
55
|
-
update<ThrowOnError extends boolean = false>(parameters: {
|
|
56
|
-
addon: 'senders' | 'email_warmups';
|
|
57
|
-
quantity?: number;
|
|
58
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
|
|
59
|
-
}
|
|
60
|
-
export declare class BillingAddons2 extends HeyApiClient {
|
|
61
|
-
static readonly __registry: HeyApiRegistry<BillingAddons2>;
|
|
62
|
-
constructor(args?: {
|
|
63
|
-
client?: Client;
|
|
64
|
-
key?: string;
|
|
65
|
-
});
|
|
66
|
-
private _billingAddons?;
|
|
67
|
-
get billingAddons(): BillingAddons;
|
|
68
|
-
}
|
|
69
|
-
export declare class BillingSubscription extends HeyApiClient {
|
|
70
|
-
get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
|
|
71
|
-
update<ThrowOnError extends boolean = false>(parameters?: {
|
|
72
|
-
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
73
|
-
billing_period?: 'month' | 'year';
|
|
74
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
|
|
75
|
-
previewUpdate<ThrowOnError extends boolean = false>(parameters?: {
|
|
76
|
-
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
77
|
-
billing_period?: 'month' | 'year';
|
|
78
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
|
|
79
|
-
}
|
|
80
|
-
export declare class BillingSubscription2 extends HeyApiClient {
|
|
81
|
-
static readonly __registry: HeyApiRegistry2<BillingSubscription2>;
|
|
82
|
-
constructor(args?: {
|
|
83
|
-
client?: Client;
|
|
84
|
-
key?: string;
|
|
85
|
-
});
|
|
86
|
-
private _billingSubscription?;
|
|
87
|
-
get billingSubscription(): BillingSubscription;
|
|
88
|
-
}
|
|
89
|
-
export declare class Billing extends HeyApiClient {
|
|
90
|
-
getPrices<ThrowOnError extends boolean = false>(parameters: {
|
|
91
|
-
currency: string;
|
|
92
|
-
}, options?: Options<never, ThrowOnError>): import("./client").RequestResult<BillingGetPricesResponses, BillingGetPricesErrors, ThrowOnError, "data">;
|
|
93
|
-
}
|
|
94
|
-
export declare class Billing2 extends HeyApiClient {
|
|
95
|
-
static readonly __registry: HeyApiRegistry3<Billing2>;
|
|
96
|
-
constructor(args?: {
|
|
97
|
-
client?: Client;
|
|
98
|
-
key?: string;
|
|
99
|
-
});
|
|
100
|
-
private _billing?;
|
|
101
|
-
get billing(): Billing;
|
|
102
|
-
}
|
|
103
|
-
export declare class Default extends HeyApiClient {
|
|
104
|
-
static readonly __registry: HeyApiRegistry4<Default>;
|
|
105
|
-
constructor(args?: {
|
|
106
|
-
client?: Client;
|
|
107
|
-
key?: string;
|
|
108
|
-
});
|
|
109
|
-
getOpenapiJson<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<GetOpenapiJsonResponses, GetOpenapiJsonErrors, ThrowOnError, "data">;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
112
|
-
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/generated-sdk/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,MAAM,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAErG,OAAO,KAAK,EAAE,4BAA4B,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,oCAAoC,EAAE,gCAAgC,EAAE,mCAAmC,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,+BAA+B,EAAE,sCAAsC,EAAE,yCAAyC,EAAE,+BAA+B,EAAE,kCAAkC,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEnmB,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,YAAY,SAAS,OAAO,GAAG,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG;IACjI;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,cAAM,YAAY;IACd,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEb,IAAI,C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,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,YAAY,CAAC;CAOrG"}
|
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
export type ClientOptions = {
|
|
2
|
-
baseUrl: `${string}://${string}/v1` | (string & {});
|
|
3
|
-
};
|
|
4
|
-
export type ErrorResponse = {
|
|
5
|
-
error: {
|
|
6
|
-
status: number;
|
|
7
|
-
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';
|
|
8
|
-
message: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
details?: {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
message: string;
|
|
15
|
-
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';
|
|
16
|
-
};
|
|
17
|
-
export type AddonsResponse200 = {
|
|
18
|
-
senders?: {
|
|
19
|
-
included_per_seat: number;
|
|
20
|
-
included_total: number;
|
|
21
|
-
used: number;
|
|
22
|
-
extra: {
|
|
23
|
-
price_amount: number;
|
|
24
|
-
currency: string;
|
|
25
|
-
quantity_per_addon: number;
|
|
26
|
-
interval: 'day' | 'week' | 'month' | 'year';
|
|
27
|
-
subscribed: number;
|
|
28
|
-
} | null;
|
|
29
|
-
};
|
|
30
|
-
email_warmups?: {
|
|
31
|
-
included_per_seat: number;
|
|
32
|
-
included_total: number;
|
|
33
|
-
used: number;
|
|
34
|
-
extra: {
|
|
35
|
-
price_amount: number;
|
|
36
|
-
currency: string;
|
|
37
|
-
quantity_per_addon: number;
|
|
38
|
-
interval: 'day' | 'week' | 'month' | 'year';
|
|
39
|
-
subscribed: number;
|
|
40
|
-
} | null;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export type PreviewBody = {
|
|
44
|
-
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
45
|
-
billing_period: 'month' | 'year';
|
|
46
|
-
};
|
|
47
|
-
export type PreviewParams = {
|
|
48
|
-
addon: 'senders' | 'email_warmups';
|
|
49
|
-
};
|
|
50
|
-
export type PreviewResponse200 = {
|
|
51
|
-
discount_percents: Array<number>;
|
|
52
|
-
total_excluding_tax: number;
|
|
53
|
-
total: number;
|
|
54
|
-
amount_due: number;
|
|
55
|
-
added_from_balance: number;
|
|
56
|
-
consumed_balance: number;
|
|
57
|
-
credited_to_balance: number;
|
|
58
|
-
lines: Array<{
|
|
59
|
-
amount: number;
|
|
60
|
-
billing_period: 'day' | 'week' | 'month' | 'year';
|
|
61
|
-
proration: boolean;
|
|
62
|
-
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
63
|
-
addon?: 'senders' | 'email_warmups';
|
|
64
|
-
}>;
|
|
65
|
-
next_renewal: number;
|
|
66
|
-
total_tax_amounts: Array<{
|
|
67
|
-
amount: number;
|
|
68
|
-
}>;
|
|
69
|
-
};
|
|
70
|
-
export type AddonBody = {
|
|
71
|
-
quantity: number;
|
|
72
|
-
};
|
|
73
|
-
export type AddonParams = {
|
|
74
|
-
addon: 'senders' | 'email_warmups';
|
|
75
|
-
};
|
|
76
|
-
export type AddonResponse200 = Array<{
|
|
77
|
-
id: string;
|
|
78
|
-
email: string;
|
|
79
|
-
usage: number;
|
|
80
|
-
}>;
|
|
81
|
-
export type SubscriptionResponse200 = {
|
|
82
|
-
status: 'confirmation_required' | 'success' | 'payment_failed';
|
|
83
|
-
client_secret?: string;
|
|
84
|
-
failure_code?: string;
|
|
85
|
-
};
|
|
86
|
-
export type SubscriptionBody = {
|
|
87
|
-
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
88
|
-
billing_period: 'month' | 'year';
|
|
89
|
-
};
|
|
90
|
-
export type PricesQuery = {
|
|
91
|
-
currency: string;
|
|
92
|
-
};
|
|
93
|
-
export type PricesResponse200 = {
|
|
94
|
-
free?: {
|
|
95
|
-
month: number;
|
|
96
|
-
year: number;
|
|
97
|
-
};
|
|
98
|
-
starter?: {
|
|
99
|
-
month: number;
|
|
100
|
-
year: number;
|
|
101
|
-
};
|
|
102
|
-
pro?: {
|
|
103
|
-
month: number;
|
|
104
|
-
year: number;
|
|
105
|
-
};
|
|
106
|
-
premium?: {
|
|
107
|
-
month: number;
|
|
108
|
-
year: number;
|
|
109
|
-
};
|
|
110
|
-
business?: {
|
|
111
|
-
month: number;
|
|
112
|
-
year: number;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export type OpenapiJsonResponse200 = unknown;
|
|
116
|
-
export type BillingAddonsGetAddonsData = {
|
|
117
|
-
body?: never;
|
|
118
|
-
path?: never;
|
|
119
|
-
query?: never;
|
|
120
|
-
url: '/billing/addons';
|
|
121
|
-
};
|
|
122
|
-
export type BillingAddonsGetAddonsErrors = {
|
|
123
|
-
/**
|
|
124
|
-
* Error response
|
|
125
|
-
*/
|
|
126
|
-
default: ErrorResponse;
|
|
127
|
-
};
|
|
128
|
-
export type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
|
|
129
|
-
export type BillingAddonsGetAddonsResponses = {
|
|
130
|
-
/**
|
|
131
|
-
* Response
|
|
132
|
-
*/
|
|
133
|
-
200: {
|
|
134
|
-
senders?: {
|
|
135
|
-
included_per_seat: number;
|
|
136
|
-
included_total: number;
|
|
137
|
-
used: number;
|
|
138
|
-
extra: {
|
|
139
|
-
price_amount: number;
|
|
140
|
-
currency: string;
|
|
141
|
-
quantity_per_addon: number;
|
|
142
|
-
interval: 'day' | 'week' | 'month' | 'year';
|
|
143
|
-
subscribed: number;
|
|
144
|
-
} | null;
|
|
145
|
-
};
|
|
146
|
-
email_warmups?: {
|
|
147
|
-
included_per_seat: number;
|
|
148
|
-
included_total: number;
|
|
149
|
-
used: number;
|
|
150
|
-
extra: {
|
|
151
|
-
price_amount: number;
|
|
152
|
-
currency: string;
|
|
153
|
-
quantity_per_addon: number;
|
|
154
|
-
interval: 'day' | 'week' | 'month' | 'year';
|
|
155
|
-
subscribed: number;
|
|
156
|
-
} | null;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
export type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
|
|
161
|
-
export type BillingAddonsPreviewUpdateData = {
|
|
162
|
-
body?: {
|
|
163
|
-
quantity: number;
|
|
164
|
-
};
|
|
165
|
-
path: {
|
|
166
|
-
addon: 'senders' | 'email_warmups';
|
|
167
|
-
};
|
|
168
|
-
query?: never;
|
|
169
|
-
url: '/billing/addons/{addon}/preview';
|
|
170
|
-
};
|
|
171
|
-
export type BillingAddonsPreviewUpdateErrors = {
|
|
172
|
-
/**
|
|
173
|
-
* Error response
|
|
174
|
-
*/
|
|
175
|
-
default: ErrorResponse;
|
|
176
|
-
};
|
|
177
|
-
export type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
|
|
178
|
-
export type BillingAddonsPreviewUpdateResponses = {
|
|
179
|
-
/**
|
|
180
|
-
* Response
|
|
181
|
-
*/
|
|
182
|
-
200: {
|
|
183
|
-
discount_percents: Array<number>;
|
|
184
|
-
total_excluding_tax: number;
|
|
185
|
-
total: number;
|
|
186
|
-
amount_due: number;
|
|
187
|
-
added_from_balance: number;
|
|
188
|
-
consumed_balance: number;
|
|
189
|
-
credited_to_balance: number;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
export type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
|
|
193
|
-
export type BillingAddonsGetAddonUsagesData = {
|
|
194
|
-
body?: never;
|
|
195
|
-
path: {
|
|
196
|
-
addon: 'senders' | 'email_warmups';
|
|
197
|
-
};
|
|
198
|
-
query?: never;
|
|
199
|
-
url: '/billing/addons/{addon}';
|
|
200
|
-
};
|
|
201
|
-
export type BillingAddonsGetAddonUsagesErrors = {
|
|
202
|
-
/**
|
|
203
|
-
* Error response
|
|
204
|
-
*/
|
|
205
|
-
default: ErrorResponse;
|
|
206
|
-
};
|
|
207
|
-
export type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
|
|
208
|
-
export type BillingAddonsGetAddonUsagesResponses = {
|
|
209
|
-
/**
|
|
210
|
-
* Response
|
|
211
|
-
*/
|
|
212
|
-
200: Array<{
|
|
213
|
-
id: string;
|
|
214
|
-
email: string;
|
|
215
|
-
usage: number;
|
|
216
|
-
}>;
|
|
217
|
-
};
|
|
218
|
-
export type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
|
|
219
|
-
export type BillingAddonsUpdateData = {
|
|
220
|
-
body?: {
|
|
221
|
-
quantity: number;
|
|
222
|
-
};
|
|
223
|
-
path: {
|
|
224
|
-
addon: 'senders' | 'email_warmups';
|
|
225
|
-
};
|
|
226
|
-
query?: never;
|
|
227
|
-
url: '/billing/addons/{addon}';
|
|
228
|
-
};
|
|
229
|
-
export type BillingAddonsUpdateErrors = {
|
|
230
|
-
/**
|
|
231
|
-
* Error response
|
|
232
|
-
*/
|
|
233
|
-
default: ErrorResponse;
|
|
234
|
-
};
|
|
235
|
-
export type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
|
|
236
|
-
export type BillingAddonsUpdateResponses = {
|
|
237
|
-
/**
|
|
238
|
-
* Response
|
|
239
|
-
*/
|
|
240
|
-
200: {
|
|
241
|
-
status: 'confirmation_required' | 'success' | 'payment_failed';
|
|
242
|
-
client_secret?: string;
|
|
243
|
-
failure_code?: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
export type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
|
|
247
|
-
export type BillingSubscriptionGetData = {
|
|
248
|
-
body?: never;
|
|
249
|
-
path?: never;
|
|
250
|
-
query?: never;
|
|
251
|
-
url: '/billing/subscription';
|
|
252
|
-
};
|
|
253
|
-
export type BillingSubscriptionGetErrors = {
|
|
254
|
-
/**
|
|
255
|
-
* Error response
|
|
256
|
-
*/
|
|
257
|
-
default: ErrorResponse;
|
|
258
|
-
};
|
|
259
|
-
export type BillingSubscriptionGetError = BillingSubscriptionGetErrors[keyof BillingSubscriptionGetErrors];
|
|
260
|
-
export type BillingSubscriptionGetResponses = {
|
|
261
|
-
/**
|
|
262
|
-
* Response
|
|
263
|
-
*/
|
|
264
|
-
200: {
|
|
265
|
-
id: string;
|
|
266
|
-
created_at: number;
|
|
267
|
-
current_period_start: number;
|
|
268
|
-
current_period_end: number;
|
|
269
|
-
quantity: number;
|
|
270
|
-
currency: string;
|
|
271
|
-
amount: number | null;
|
|
272
|
-
discount_percentage?: number | null;
|
|
273
|
-
name: string | null;
|
|
274
|
-
billing_period: 'day' | 'week' | 'month' | 'year' | null;
|
|
275
|
-
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business' | null;
|
|
276
|
-
default_payment_method: {
|
|
277
|
-
type: string;
|
|
278
|
-
brand?: string | null;
|
|
279
|
-
last4: string | null;
|
|
280
|
-
exp_month: number | null;
|
|
281
|
-
exp_year: number | null;
|
|
282
|
-
bank_name?: string | null;
|
|
283
|
-
} | null;
|
|
284
|
-
addons: {
|
|
285
|
-
senders?: {
|
|
286
|
-
quantity: number;
|
|
287
|
-
};
|
|
288
|
-
email_warmups?: {
|
|
289
|
-
quantity: number;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
} | null;
|
|
293
|
-
};
|
|
294
|
-
export type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
|
|
295
|
-
export type BillingSubscriptionUpdateData = {
|
|
296
|
-
body?: {
|
|
297
|
-
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
298
|
-
billing_period: 'month' | 'year';
|
|
299
|
-
};
|
|
300
|
-
path?: never;
|
|
301
|
-
query?: never;
|
|
302
|
-
url: '/billing/subscription';
|
|
303
|
-
};
|
|
304
|
-
export type BillingSubscriptionUpdateErrors = {
|
|
305
|
-
/**
|
|
306
|
-
* Error response
|
|
307
|
-
*/
|
|
308
|
-
default: ErrorResponse;
|
|
309
|
-
};
|
|
310
|
-
export type BillingSubscriptionUpdateError = BillingSubscriptionUpdateErrors[keyof BillingSubscriptionUpdateErrors];
|
|
311
|
-
export type BillingSubscriptionUpdateResponses = {
|
|
312
|
-
/**
|
|
313
|
-
* Response
|
|
314
|
-
*/
|
|
315
|
-
200: {
|
|
316
|
-
status: 'confirmation_required' | 'success' | 'payment_failed';
|
|
317
|
-
client_secret?: string;
|
|
318
|
-
failure_code?: string;
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
export type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
|
|
322
|
-
export type BillingSubscriptionPreviewUpdateData = {
|
|
323
|
-
body?: {
|
|
324
|
-
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
325
|
-
billing_period: 'month' | 'year';
|
|
326
|
-
};
|
|
327
|
-
path?: never;
|
|
328
|
-
query?: never;
|
|
329
|
-
url: '/billing/subscription/preview';
|
|
330
|
-
};
|
|
331
|
-
export type BillingSubscriptionPreviewUpdateErrors = {
|
|
332
|
-
/**
|
|
333
|
-
* Error response
|
|
334
|
-
*/
|
|
335
|
-
default: ErrorResponse;
|
|
336
|
-
};
|
|
337
|
-
export type BillingSubscriptionPreviewUpdateError = BillingSubscriptionPreviewUpdateErrors[keyof BillingSubscriptionPreviewUpdateErrors];
|
|
338
|
-
export type BillingSubscriptionPreviewUpdateResponses = {
|
|
339
|
-
/**
|
|
340
|
-
* Response
|
|
341
|
-
*/
|
|
342
|
-
200: {
|
|
343
|
-
discount_percents: Array<number>;
|
|
344
|
-
total_excluding_tax: number;
|
|
345
|
-
total: number;
|
|
346
|
-
amount_due: number;
|
|
347
|
-
added_from_balance: number;
|
|
348
|
-
consumed_balance: number;
|
|
349
|
-
credited_to_balance: number;
|
|
350
|
-
lines: Array<{
|
|
351
|
-
amount: number;
|
|
352
|
-
billing_period: 'day' | 'week' | 'month' | 'year';
|
|
353
|
-
proration: boolean;
|
|
354
|
-
plan?: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
355
|
-
addon?: 'senders' | 'email_warmups';
|
|
356
|
-
}>;
|
|
357
|
-
next_renewal: number;
|
|
358
|
-
total_tax_amounts: Array<{
|
|
359
|
-
amount: number;
|
|
360
|
-
}>;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
export type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
|
|
364
|
-
export type BillingGetPricesData = {
|
|
365
|
-
body?: never;
|
|
366
|
-
path?: never;
|
|
367
|
-
query: {
|
|
368
|
-
currency: string;
|
|
369
|
-
};
|
|
370
|
-
url: '/billing/prices';
|
|
371
|
-
};
|
|
372
|
-
export type BillingGetPricesErrors = {
|
|
373
|
-
/**
|
|
374
|
-
* Error response
|
|
375
|
-
*/
|
|
376
|
-
default: ErrorResponse;
|
|
377
|
-
};
|
|
378
|
-
export type BillingGetPricesError = BillingGetPricesErrors[keyof BillingGetPricesErrors];
|
|
379
|
-
export type BillingGetPricesResponses = {
|
|
380
|
-
/**
|
|
381
|
-
* Response
|
|
382
|
-
*/
|
|
383
|
-
200: {
|
|
384
|
-
free?: {
|
|
385
|
-
month: number;
|
|
386
|
-
year: number;
|
|
387
|
-
};
|
|
388
|
-
starter?: {
|
|
389
|
-
month: number;
|
|
390
|
-
year: number;
|
|
391
|
-
};
|
|
392
|
-
pro?: {
|
|
393
|
-
month: number;
|
|
394
|
-
year: number;
|
|
395
|
-
};
|
|
396
|
-
premium?: {
|
|
397
|
-
month: number;
|
|
398
|
-
year: number;
|
|
399
|
-
};
|
|
400
|
-
business?: {
|
|
401
|
-
month: number;
|
|
402
|
-
year: number;
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
export type BillingGetPricesResponse = BillingGetPricesResponses[keyof BillingGetPricesResponses];
|
|
407
|
-
export type GetOpenapiJsonData = {
|
|
408
|
-
body?: never;
|
|
409
|
-
path?: never;
|
|
410
|
-
query?: never;
|
|
411
|
-
url: '/openapi.json';
|
|
412
|
-
};
|
|
413
|
-
export type GetOpenapiJsonErrors = {
|
|
414
|
-
/**
|
|
415
|
-
* Error response
|
|
416
|
-
*/
|
|
417
|
-
default: ErrorResponse;
|
|
418
|
-
};
|
|
419
|
-
export type GetOpenapiJsonError = GetOpenapiJsonErrors[keyof GetOpenapiJsonErrors];
|
|
420
|
-
export type GetOpenapiJsonResponses = {
|
|
421
|
-
/**
|
|
422
|
-
* Response
|
|
423
|
-
*/
|
|
424
|
-
200: unknown;
|
|
425
|
-
};
|
|
426
|
-
//# sourceMappingURL=types.gen.d.ts.map
|