@primitivedotdev/sdk 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +5 -3
- package/dist/api/index.js +4 -3
- package/dist/{api-CnUa6o4r.js → api-3znV8SSN.js} +176 -99
- package/dist/contract/index.d.ts +8 -2
- package/dist/contract/index.js +7 -2
- package/dist/{errors-x91I_yEt.js → errors-BPJGp9I6.js} +1 -1
- package/dist/{errors-C53fe686.d.ts → errors-CO-rv_nK.d.ts} +1 -1
- package/dist/{index-BbEVpN5e.d.ts → index-BKeS9sOb.d.ts} +294 -92
- package/dist/{index-Dbx9udpX.d.ts → index-D_v8-0zX.d.ts} +19 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/openapi/index.d.ts +1 -52
- package/dist/openapi/index.js +1 -7631
- package/dist/operations.generated-BJERV_56.d.ts +53 -0
- package/dist/operations.generated-x1Go1Xkb.js +8106 -0
- package/dist/parser/index.d.ts +2 -1
- package/dist/parser/index.js +3 -1
- package/dist/{types-9vXGZjPd.d.ts → types-BRWDMD7H.d.ts} +8 -0
- package/dist/webhook/index.d.ts +3 -3
- package/dist/webhook/index.js +2 -2
- package/dist/{webhook-DJkfUnFZ.js → webhook-D4FTpj38.js} +644 -461
- package/package.json +5 -8
- /package/dist/{address-parser-BYn8oW5r.js → address-parser-CQbFjgRC.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as ReceivedEmail } from "./errors-
|
|
1
|
+
import { m as ReceivedEmail } from "./errors-CO-rv_nK.js";
|
|
2
2
|
|
|
3
|
-
//#region src/api/
|
|
3
|
+
//#region ../packages/api-core/src/api/core/auth.gen.d.ts
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
6
6
|
/**
|
|
@@ -19,7 +19,7 @@ interface Auth {
|
|
|
19
19
|
type: 'apiKey' | 'http';
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region src/api/
|
|
22
|
+
//#region ../packages/api-core/src/api/core/pathSerializer.gen.d.ts
|
|
23
23
|
interface SerializerOptions<T> {
|
|
24
24
|
/**
|
|
25
25
|
* @default true
|
|
@@ -30,7 +30,7 @@ interface SerializerOptions<T> {
|
|
|
30
30
|
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
31
31
|
type ObjectStyle = 'form' | 'deepObject';
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region src/api/
|
|
33
|
+
//#region ../packages/api-core/src/api/core/bodySerializer.gen.d.ts
|
|
34
34
|
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
35
35
|
type BodySerializer = (body: unknown) => unknown;
|
|
36
36
|
type QuerySerializerOptionsObject = {
|
|
@@ -46,7 +46,7 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
|
46
46
|
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region src/api/
|
|
49
|
+
//#region ../packages/api-core/src/api/core/types.gen.d.ts
|
|
50
50
|
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
51
51
|
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
52
52
|
/**
|
|
@@ -115,7 +115,7 @@ interface Config$1 {
|
|
|
115
115
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
|
-
//#region src/api/
|
|
118
|
+
//#region ../packages/api-core/src/api/core/serverSentEvents.gen.d.ts
|
|
119
119
|
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
120
120
|
/**
|
|
121
121
|
* Fetch API implementation. You can use this option to provide a custom
|
|
@@ -186,7 +186,7 @@ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> =
|
|
|
186
186
|
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
187
187
|
};
|
|
188
188
|
//#endregion
|
|
189
|
-
//#region src/api/
|
|
189
|
+
//#region ../packages/api-core/src/api/client/utils.gen.d.ts
|
|
190
190
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
191
191
|
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
192
192
|
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
@@ -204,10 +204,11 @@ interface Middleware<Req, Res, Err, Options> {
|
|
|
204
204
|
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
205
205
|
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
206
206
|
}
|
|
207
|
+
declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
|
|
207
208
|
//#endregion
|
|
208
|
-
//#region src/api/
|
|
209
|
+
//#region ../packages/api-core/src/api/client/types.gen.d.ts
|
|
209
210
|
type ResponseStyle = 'data' | 'fields';
|
|
210
|
-
interface Config<T extends ClientOptions
|
|
211
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
211
212
|
/**
|
|
212
213
|
* Base URL for all requests made by this client.
|
|
213
214
|
*/
|
|
@@ -248,7 +249,7 @@ interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Reque
|
|
|
248
249
|
*/
|
|
249
250
|
throwOnError?: T['throwOnError'];
|
|
250
251
|
}
|
|
251
|
-
interface RequestOptions$
|
|
252
|
+
interface RequestOptions$2<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
252
253
|
responseStyle: TResponseStyle;
|
|
253
254
|
throwOnError: ThrowOnError;
|
|
254
255
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -266,7 +267,7 @@ interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
266
267
|
security?: ReadonlyArray<Auth>;
|
|
267
268
|
url: Url;
|
|
268
269
|
}
|
|
269
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$
|
|
270
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$2<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
270
271
|
serializedBody?: string;
|
|
271
272
|
}
|
|
272
273
|
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 : {
|
|
@@ -283,14 +284,14 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
|
|
|
283
284
|
request: Request;
|
|
284
285
|
response: Response;
|
|
285
286
|
}>;
|
|
286
|
-
interface ClientOptions
|
|
287
|
+
interface ClientOptions {
|
|
287
288
|
baseUrl?: string;
|
|
288
289
|
responseStyle?: ResponseStyle;
|
|
289
290
|
throwOnError?: boolean;
|
|
290
291
|
}
|
|
291
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$
|
|
292
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$
|
|
293
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$
|
|
292
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$2<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
293
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$2<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
294
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions$2<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$2<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
294
295
|
type BuildUrlFn = <TData extends {
|
|
295
296
|
body?: unknown;
|
|
296
297
|
path?: Record<string, unknown>;
|
|
@@ -308,7 +309,7 @@ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
|
308
309
|
* `setConfig()`. This is useful for example if you're using Next.js
|
|
309
310
|
* to ensure your client always has the correct values.
|
|
310
311
|
*/
|
|
311
|
-
type CreateClientConfig<T extends ClientOptions
|
|
312
|
+
type CreateClientConfig<T extends ClientOptions = ClientOptions> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
312
313
|
interface TDataShape {
|
|
313
314
|
body?: unknown;
|
|
314
315
|
headers?: unknown;
|
|
@@ -317,12 +318,12 @@ interface TDataShape {
|
|
|
317
318
|
url: string;
|
|
318
319
|
}
|
|
319
320
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
320
|
-
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions$
|
|
321
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions$2<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
321
322
|
//#endregion
|
|
322
|
-
//#region src/api/
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
//#region ../packages/api-core/src/api/client/client.gen.d.ts
|
|
324
|
+
declare const createClient: (config?: Config) => Client;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region ../packages/api-core/src/api/types.gen.d.ts
|
|
326
327
|
type SuccessEnvelope = {
|
|
327
328
|
success: boolean;
|
|
328
329
|
};
|
|
@@ -481,6 +482,76 @@ type CliLoginPollResult = {
|
|
|
481
482
|
org_id: string;
|
|
482
483
|
org_name: string | null;
|
|
483
484
|
};
|
|
485
|
+
type StartCliSignupInput = {
|
|
486
|
+
email: string;
|
|
487
|
+
signup_code: string;
|
|
488
|
+
/**
|
|
489
|
+
* Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
|
|
490
|
+
*/
|
|
491
|
+
terms_accepted: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Human-readable device name used for the created CLI API key
|
|
494
|
+
*/
|
|
495
|
+
device_name?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer
|
|
498
|
+
*/
|
|
499
|
+
metadata?: {
|
|
500
|
+
[key: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
type CliSignupStartResult = {
|
|
504
|
+
/**
|
|
505
|
+
* Opaque token used to verify or resend the pending CLI signup
|
|
506
|
+
*/
|
|
507
|
+
signup_token: string;
|
|
508
|
+
email: string;
|
|
509
|
+
/**
|
|
510
|
+
* Seconds until the pending signup expires
|
|
511
|
+
*/
|
|
512
|
+
expires_in: number;
|
|
513
|
+
/**
|
|
514
|
+
* Minimum seconds before requesting another verification email
|
|
515
|
+
*/
|
|
516
|
+
resend_after: number;
|
|
517
|
+
/**
|
|
518
|
+
* Number of digits in the emailed verification code
|
|
519
|
+
*/
|
|
520
|
+
verification_code_length: number;
|
|
521
|
+
};
|
|
522
|
+
type ResendCliSignupVerificationInput = {
|
|
523
|
+
signup_token: string;
|
|
524
|
+
};
|
|
525
|
+
type CliSignupResendResult = {
|
|
526
|
+
email: string;
|
|
527
|
+
/**
|
|
528
|
+
* Seconds until the pending signup expires
|
|
529
|
+
*/
|
|
530
|
+
expires_in: number;
|
|
531
|
+
/**
|
|
532
|
+
* Minimum seconds before requesting another verification email
|
|
533
|
+
*/
|
|
534
|
+
resend_after: number;
|
|
535
|
+
/**
|
|
536
|
+
* Number of digits in the emailed verification code
|
|
537
|
+
*/
|
|
538
|
+
verification_code_length: number;
|
|
539
|
+
};
|
|
540
|
+
type VerifyCliSignupInput = {
|
|
541
|
+
signup_token: string;
|
|
542
|
+
verification_code: string;
|
|
543
|
+
password: string;
|
|
544
|
+
};
|
|
545
|
+
type CliSignupVerifyResult = {
|
|
546
|
+
/**
|
|
547
|
+
* Newly-created API key for CLI authentication
|
|
548
|
+
*/
|
|
549
|
+
api_key: string;
|
|
550
|
+
key_id: string;
|
|
551
|
+
key_prefix: string;
|
|
552
|
+
org_id: string;
|
|
553
|
+
org_name: string | null;
|
|
554
|
+
};
|
|
484
555
|
type CliLogoutInput = {
|
|
485
556
|
/**
|
|
486
557
|
* Optional key id guard; when provided it must match the authenticated API key
|
|
@@ -1640,9 +1711,8 @@ type CreateFunctionInput = {
|
|
|
1640
1711
|
code: string;
|
|
1641
1712
|
/**
|
|
1642
1713
|
* Optional source map for the bundle. Up to 5 MiB UTF-8.
|
|
1643
|
-
* Stored
|
|
1644
|
-
*
|
|
1645
|
-
* function's logs.
|
|
1714
|
+
* Stored with the deployment attempt and sent to the runtime
|
|
1715
|
+
* to symbolicate stack traces in the function's logs.
|
|
1646
1716
|
*
|
|
1647
1717
|
*/
|
|
1648
1718
|
sourceMap?: string;
|
|
@@ -1887,6 +1957,84 @@ type PollCliLoginResponses = {
|
|
|
1887
1957
|
};
|
|
1888
1958
|
};
|
|
1889
1959
|
type PollCliLoginResponse = PollCliLoginResponses[keyof PollCliLoginResponses];
|
|
1960
|
+
type StartCliSignupData = {
|
|
1961
|
+
body: StartCliSignupInput;
|
|
1962
|
+
path?: never;
|
|
1963
|
+
query?: never;
|
|
1964
|
+
url: '/cli/signup/start';
|
|
1965
|
+
};
|
|
1966
|
+
type StartCliSignupErrors = {
|
|
1967
|
+
/**
|
|
1968
|
+
* Invalid request parameters
|
|
1969
|
+
*/
|
|
1970
|
+
400: ErrorResponse;
|
|
1971
|
+
/**
|
|
1972
|
+
* Rate limit exceeded
|
|
1973
|
+
*/
|
|
1974
|
+
429: ErrorResponse;
|
|
1975
|
+
};
|
|
1976
|
+
type StartCliSignupError = StartCliSignupErrors[keyof StartCliSignupErrors];
|
|
1977
|
+
type StartCliSignupResponses = {
|
|
1978
|
+
/**
|
|
1979
|
+
* CLI signup session created and verification email sent
|
|
1980
|
+
*/
|
|
1981
|
+
201: SuccessEnvelope & {
|
|
1982
|
+
data?: CliSignupStartResult;
|
|
1983
|
+
};
|
|
1984
|
+
};
|
|
1985
|
+
type StartCliSignupResponse = StartCliSignupResponses[keyof StartCliSignupResponses];
|
|
1986
|
+
type ResendCliSignupVerificationData = {
|
|
1987
|
+
body: ResendCliSignupVerificationInput;
|
|
1988
|
+
path?: never;
|
|
1989
|
+
query?: never;
|
|
1990
|
+
url: '/cli/signup/resend';
|
|
1991
|
+
};
|
|
1992
|
+
type ResendCliSignupVerificationErrors = {
|
|
1993
|
+
/**
|
|
1994
|
+
* Invalid token or expired token
|
|
1995
|
+
*/
|
|
1996
|
+
400: ErrorResponse;
|
|
1997
|
+
/**
|
|
1998
|
+
* Global rate limit exceeded or resend requested too quickly
|
|
1999
|
+
*/
|
|
2000
|
+
429: ErrorResponse;
|
|
2001
|
+
};
|
|
2002
|
+
type ResendCliSignupVerificationError = ResendCliSignupVerificationErrors[keyof ResendCliSignupVerificationErrors];
|
|
2003
|
+
type ResendCliSignupVerificationResponses = {
|
|
2004
|
+
/**
|
|
2005
|
+
* Verification email resent
|
|
2006
|
+
*/
|
|
2007
|
+
200: SuccessEnvelope & {
|
|
2008
|
+
data?: CliSignupResendResult;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
type ResendCliSignupVerificationResponse = ResendCliSignupVerificationResponses[keyof ResendCliSignupVerificationResponses];
|
|
2012
|
+
type VerifyCliSignupData = {
|
|
2013
|
+
body: VerifyCliSignupInput;
|
|
2014
|
+
path?: never;
|
|
2015
|
+
query?: never;
|
|
2016
|
+
url: '/cli/signup/verify';
|
|
2017
|
+
};
|
|
2018
|
+
type VerifyCliSignupErrors = {
|
|
2019
|
+
/**
|
|
2020
|
+
* Invalid request, invalid verification code, expired token, invalid signup code, rejected password, or account creation failure
|
|
2021
|
+
*/
|
|
2022
|
+
400: ErrorResponse;
|
|
2023
|
+
/**
|
|
2024
|
+
* Rate limit exceeded
|
|
2025
|
+
*/
|
|
2026
|
+
429: ErrorResponse;
|
|
2027
|
+
};
|
|
2028
|
+
type VerifyCliSignupError = VerifyCliSignupErrors[keyof VerifyCliSignupErrors];
|
|
2029
|
+
type VerifyCliSignupResponses = {
|
|
2030
|
+
/**
|
|
2031
|
+
* CLI signup verified and API key created
|
|
2032
|
+
*/
|
|
2033
|
+
200: SuccessEnvelope & {
|
|
2034
|
+
data?: CliSignupVerifyResult;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
type VerifyCliSignupResponse = VerifyCliSignupResponses[keyof VerifyCliSignupResponses];
|
|
1890
2038
|
type CliLogoutData = {
|
|
1891
2039
|
body?: CliLogoutInput;
|
|
1892
2040
|
path?: never;
|
|
@@ -3281,7 +3429,7 @@ type CreateFunctionData = {
|
|
|
3281
3429
|
};
|
|
3282
3430
|
type CreateFunctionErrors = {
|
|
3283
3431
|
/**
|
|
3284
|
-
* Invalid request parameters
|
|
3432
|
+
* Invalid request parameters or customer-correctable deploy rejection
|
|
3285
3433
|
*/
|
|
3286
3434
|
400: ErrorResponse;
|
|
3287
3435
|
/**
|
|
@@ -3293,9 +3441,17 @@ type CreateFunctionErrors = {
|
|
|
3293
3441
|
*/
|
|
3294
3442
|
409: ErrorResponse;
|
|
3295
3443
|
/**
|
|
3296
|
-
*
|
|
3444
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3297
3445
|
*/
|
|
3298
|
-
|
|
3446
|
+
424: ErrorResponse;
|
|
3447
|
+
/**
|
|
3448
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3449
|
+
*/
|
|
3450
|
+
429: ErrorResponse;
|
|
3451
|
+
/**
|
|
3452
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3453
|
+
*/
|
|
3454
|
+
503: ErrorResponse;
|
|
3299
3455
|
};
|
|
3300
3456
|
type CreateFunctionError = CreateFunctionErrors[keyof CreateFunctionErrors];
|
|
3301
3457
|
type CreateFunctionResponses = {
|
|
@@ -3388,7 +3544,7 @@ type UpdateFunctionData = {
|
|
|
3388
3544
|
};
|
|
3389
3545
|
type UpdateFunctionErrors = {
|
|
3390
3546
|
/**
|
|
3391
|
-
* Invalid request parameters
|
|
3547
|
+
* Invalid request parameters or customer-correctable deploy rejection
|
|
3392
3548
|
*/
|
|
3393
3549
|
400: ErrorResponse;
|
|
3394
3550
|
/**
|
|
@@ -3400,9 +3556,17 @@ type UpdateFunctionErrors = {
|
|
|
3400
3556
|
*/
|
|
3401
3557
|
404: ErrorResponse;
|
|
3402
3558
|
/**
|
|
3403
|
-
*
|
|
3559
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3404
3560
|
*/
|
|
3405
|
-
|
|
3561
|
+
424: ErrorResponse;
|
|
3562
|
+
/**
|
|
3563
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3564
|
+
*/
|
|
3565
|
+
429: ErrorResponse;
|
|
3566
|
+
/**
|
|
3567
|
+
* Function deploy could not be completed; previously deployed code remains live
|
|
3568
|
+
*/
|
|
3569
|
+
503: ErrorResponse;
|
|
3406
3570
|
};
|
|
3407
3571
|
type UpdateFunctionError = UpdateFunctionErrors[keyof UpdateFunctionErrors];
|
|
3408
3572
|
type UpdateFunctionResponses = {
|
|
@@ -3690,7 +3854,7 @@ type ListFunctionLogsResponses = {
|
|
|
3690
3854
|
};
|
|
3691
3855
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
3692
3856
|
declare namespace sdk_gen_d_exports {
|
|
3693
|
-
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyDomain };
|
|
3857
|
+
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyCliSignup, verifyDomain };
|
|
3694
3858
|
}
|
|
3695
3859
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
3696
3860
|
/**
|
|
@@ -3723,6 +3887,33 @@ declare const startCliLogin: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
3723
3887
|
*
|
|
3724
3888
|
*/
|
|
3725
3889
|
declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Options<PollCliLoginData, ThrowOnError>) => RequestResult<PollCliLoginResponses, PollCliLoginErrors, ThrowOnError, "fields">;
|
|
3890
|
+
/**
|
|
3891
|
+
* Start CLI account signup
|
|
3892
|
+
*
|
|
3893
|
+
* Starts a terminal-native CLI signup. The API validates the signup code,
|
|
3894
|
+
* creates a pending signup session, sends an email verification code, and
|
|
3895
|
+
* returns an opaque signup token used by the resend and verify steps. This
|
|
3896
|
+
* endpoint does not require an API key.
|
|
3897
|
+
*
|
|
3898
|
+
*/
|
|
3899
|
+
declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Options<StartCliSignupData, ThrowOnError>) => RequestResult<StartCliSignupResponses, StartCliSignupErrors, ThrowOnError, "fields">;
|
|
3900
|
+
/**
|
|
3901
|
+
* Resend CLI signup verification code
|
|
3902
|
+
*
|
|
3903
|
+
* Sends a new email verification code for a pending CLI signup session.
|
|
3904
|
+
* This endpoint does not require an API key.
|
|
3905
|
+
*
|
|
3906
|
+
*/
|
|
3907
|
+
declare const resendCliSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendCliSignupVerificationData, ThrowOnError>) => RequestResult<ResendCliSignupVerificationResponses, ResendCliSignupVerificationErrors, ThrowOnError, "fields">;
|
|
3908
|
+
/**
|
|
3909
|
+
* Verify CLI signup and create API key
|
|
3910
|
+
*
|
|
3911
|
+
* Verifies the email code for a CLI signup session, creates the account,
|
|
3912
|
+
* redeems the reserved signup code, mints an org-scoped CLI API key, and
|
|
3913
|
+
* returns the raw key exactly once. This endpoint does not require an API key.
|
|
3914
|
+
*
|
|
3915
|
+
*/
|
|
3916
|
+
declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
|
|
3726
3917
|
/**
|
|
3727
3918
|
* Revoke the current CLI API key
|
|
3728
3919
|
*
|
|
@@ -4164,8 +4355,9 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
4164
4355
|
* than relying on external imports.
|
|
4165
4356
|
*
|
|
4166
4357
|
* **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
|
|
4167
|
-
* (optional) is capped at 5 MiB UTF-8
|
|
4168
|
-
*
|
|
4358
|
+
* (optional) is capped at 5 MiB UTF-8, stored with each deployment
|
|
4359
|
+
* attempt, and sent to the runtime so stack traces can resolve to
|
|
4360
|
+
* original source files.
|
|
4169
4361
|
*
|
|
4170
4362
|
* **Auto-wiring.** On successful deploy, Primitive automatically
|
|
4171
4363
|
* creates a webhook endpoint that delivers inbound mail to the
|
|
@@ -4213,11 +4405,10 @@ declare const getFunction: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
4213
4405
|
* passing the same `code` re-runs the deploy and refreshes the
|
|
4214
4406
|
* binding set with the latest values from the secrets table.
|
|
4215
4407
|
*
|
|
4216
|
-
* On
|
|
4217
|
-
*
|
|
4218
|
-
* `
|
|
4219
|
-
*
|
|
4220
|
-
* without polling.
|
|
4408
|
+
* On deploy failure, the previously-deployed code stays live; the
|
|
4409
|
+
* runtime never serves a half-built bundle. The response uses
|
|
4410
|
+
* `error.code` `deploy_failed`, and the function's `deploy_error`
|
|
4411
|
+
* field carries the latest deploy error for dashboard/API reads.
|
|
4221
4412
|
*
|
|
4222
4413
|
*/
|
|
4223
4414
|
declare const updateFunction: <ThrowOnError extends boolean = false>(options: Options<UpdateFunctionData, ThrowOnError>) => RequestResult<UpdateFunctionResponses, UpdateFunctionErrors, ThrowOnError, "fields">;
|
|
@@ -4316,6 +4507,70 @@ declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options:
|
|
|
4316
4507
|
*/
|
|
4317
4508
|
declare const listFunctionLogs: <ThrowOnError extends boolean = false>(options: Options<ListFunctionLogsData, ThrowOnError>) => RequestResult<ListFunctionLogsResponses, ListFunctionLogsErrors, ThrowOnError, "fields">;
|
|
4318
4509
|
//#endregion
|
|
4510
|
+
//#region ../packages/api-core/src/client.d.ts
|
|
4511
|
+
declare const DEFAULT_API_BASE_URL_1 = "https://www.primitive.dev/api/v1";
|
|
4512
|
+
declare const DEFAULT_API_BASE_URL_2 = "https://api.primitive.dev/v1";
|
|
4513
|
+
interface PrimitiveApiClientOptions extends Omit<Config, "auth" | "baseUrl"> {
|
|
4514
|
+
apiKey?: string;
|
|
4515
|
+
auth?: Config["auth"];
|
|
4516
|
+
/** @internal Override for the primary API host. Production default is correct; this exists for staging/local testing only. */
|
|
4517
|
+
apiBaseUrl1?: string;
|
|
4518
|
+
/** @internal Override for the attachments-supporting send host. Production default is correct; this exists for staging/local testing only. */
|
|
4519
|
+
apiBaseUrl2?: string;
|
|
4520
|
+
}
|
|
4521
|
+
interface RequestOptions$1 {
|
|
4522
|
+
/** Cancel the in-flight request when this signal fires. Surfaces as AbortError. */
|
|
4523
|
+
signal?: AbortSignal;
|
|
4524
|
+
/** Per-call timeout in milliseconds. Composed with `signal` via AbortSignal.any so either fires AbortError. */
|
|
4525
|
+
timeout?: number;
|
|
4526
|
+
/** Per-call headers merged on top of client-level headers. Last write wins. */
|
|
4527
|
+
headers?: Record<string, string>;
|
|
4528
|
+
/** Idempotency key for safe retries. Sent as the Idempotency-Key request header. */
|
|
4529
|
+
idempotencyKey?: string;
|
|
4530
|
+
}
|
|
4531
|
+
type PrimitiveApiErrorDetails = NonNullable<ErrorResponse["error"]["details"]>;
|
|
4532
|
+
declare class PrimitiveApiError extends Error {
|
|
4533
|
+
readonly status: number | undefined;
|
|
4534
|
+
readonly code: string | undefined;
|
|
4535
|
+
readonly gates: GateDenial[] | undefined;
|
|
4536
|
+
readonly requestId: string | undefined;
|
|
4537
|
+
readonly retryAfter: number | undefined;
|
|
4538
|
+
readonly details: PrimitiveApiErrorDetails | undefined;
|
|
4539
|
+
readonly payload: unknown;
|
|
4540
|
+
constructor(message: string, options: {
|
|
4541
|
+
payload: unknown;
|
|
4542
|
+
status?: number;
|
|
4543
|
+
code?: string;
|
|
4544
|
+
gates?: GateDenial[];
|
|
4545
|
+
requestId?: string;
|
|
4546
|
+
retryAfter?: number;
|
|
4547
|
+
details?: PrimitiveApiErrorDetails;
|
|
4548
|
+
});
|
|
4549
|
+
}
|
|
4550
|
+
declare class PrimitiveApiClient {
|
|
4551
|
+
/**
|
|
4552
|
+
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
4553
|
+
* this when passing `client: ...` to a generated operation function
|
|
4554
|
+
* for every endpoint EXCEPT /send-mail. The hand-written
|
|
4555
|
+
* PrimitiveClient.send / .reply / .forward methods on the subclass
|
|
4556
|
+
* route /send-mail to the host-2 client internally.
|
|
4557
|
+
*/
|
|
4558
|
+
readonly client: Client;
|
|
4559
|
+
/**
|
|
4560
|
+
* @internal Generated client targeting the attachments-supporting
|
|
4561
|
+
* send host (apiBaseUrl2). Used by PrimitiveClient.send() under the
|
|
4562
|
+
* hood. Exposed for the CLI's hand-rolled send command, which calls
|
|
4563
|
+
* the generated sendEmail directly; not part of the publicly-
|
|
4564
|
+
* documented SDK surface. Customer code should call .send() on the
|
|
4565
|
+
* subclass instead.
|
|
4566
|
+
*/
|
|
4567
|
+
readonly _sendClient: Client;
|
|
4568
|
+
constructor(options?: PrimitiveApiClientOptions);
|
|
4569
|
+
getConfig(): Config<ClientOptions>;
|
|
4570
|
+
setConfig(config: Config): Config<ClientOptions>;
|
|
4571
|
+
}
|
|
4572
|
+
declare function createPrimitiveApiClient(options?: PrimitiveApiClientOptions): PrimitiveApiClient;
|
|
4573
|
+
//#endregion
|
|
4319
4574
|
//#region src/api/verify-signature.d.ts
|
|
4320
4575
|
/**
|
|
4321
4576
|
* Workers-safe webhook signature verification.
|
|
@@ -4397,16 +4652,6 @@ interface VerifyOptions {
|
|
|
4397
4652
|
declare function verifyWebhookSignature(opts: VerifyOptions): Promise<true>;
|
|
4398
4653
|
//#endregion
|
|
4399
4654
|
//#region src/api/index.d.ts
|
|
4400
|
-
declare const DEFAULT_API_BASE_URL_1 = "https://www.primitive.dev/api/v1";
|
|
4401
|
-
declare const DEFAULT_API_BASE_URL_2 = "https://api.primitive.dev/v1";
|
|
4402
|
-
interface PrimitiveApiClientOptions extends Omit<Config, "auth" | "baseUrl"> {
|
|
4403
|
-
apiKey?: string;
|
|
4404
|
-
auth?: Config["auth"];
|
|
4405
|
-
/** @internal Override for the primary API host. Production default is correct; this exists for staging/local testing only. */
|
|
4406
|
-
apiBaseUrl1?: string;
|
|
4407
|
-
/** @internal Override for the attachments-supporting send host. Production default is correct; this exists for staging/local testing only. */
|
|
4408
|
-
apiBaseUrl2?: string;
|
|
4409
|
-
}
|
|
4410
4655
|
interface SendThreadInput {
|
|
4411
4656
|
inReplyTo?: string;
|
|
4412
4657
|
references?: string[];
|
|
@@ -4485,47 +4730,6 @@ interface SendResult {
|
|
|
4485
4730
|
smtpResponseCode?: number | null;
|
|
4486
4731
|
smtpResponseText?: string;
|
|
4487
4732
|
}
|
|
4488
|
-
type PrimitiveApiErrorDetails = NonNullable<ErrorResponse["error"]["details"]>;
|
|
4489
|
-
declare class PrimitiveApiError extends Error {
|
|
4490
|
-
readonly status: number | undefined;
|
|
4491
|
-
readonly code: string | undefined;
|
|
4492
|
-
readonly gates: GateDenial[] | undefined;
|
|
4493
|
-
readonly requestId: string | undefined;
|
|
4494
|
-
readonly retryAfter: number | undefined;
|
|
4495
|
-
readonly details: PrimitiveApiErrorDetails | undefined;
|
|
4496
|
-
readonly payload: unknown;
|
|
4497
|
-
constructor(message: string, options: {
|
|
4498
|
-
payload: unknown;
|
|
4499
|
-
status?: number;
|
|
4500
|
-
code?: string;
|
|
4501
|
-
gates?: GateDenial[];
|
|
4502
|
-
requestId?: string;
|
|
4503
|
-
retryAfter?: number;
|
|
4504
|
-
details?: PrimitiveApiErrorDetails;
|
|
4505
|
-
});
|
|
4506
|
-
}
|
|
4507
|
-
declare class PrimitiveApiClient {
|
|
4508
|
-
/**
|
|
4509
|
-
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
4510
|
-
* this when passing `client: ...` to a generated operation function
|
|
4511
|
-
* for every endpoint EXCEPT /send-mail. The hand-written
|
|
4512
|
-
* PrimitiveClient.send / .reply / .forward methods on the subclass
|
|
4513
|
-
* route /send-mail to the host-2 client internally.
|
|
4514
|
-
*/
|
|
4515
|
-
readonly client: Client;
|
|
4516
|
-
/**
|
|
4517
|
-
* @internal Generated client targeting the attachments-supporting
|
|
4518
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send() under the
|
|
4519
|
-
* hood. Exposed for the CLI's hand-rolled send command, which calls
|
|
4520
|
-
* the generated sendEmail directly; not part of the publicly-
|
|
4521
|
-
* documented SDK surface. Customer code should call .send() on the
|
|
4522
|
-
* subclass instead.
|
|
4523
|
-
*/
|
|
4524
|
-
readonly _sendClient: Client;
|
|
4525
|
-
constructor(options?: PrimitiveApiClientOptions);
|
|
4526
|
-
getConfig(): Config<ClientOptions$1>;
|
|
4527
|
-
setConfig(config: Config): Config<ClientOptions$1>;
|
|
4528
|
-
}
|
|
4529
4733
|
type PrimitiveClientOptions = PrimitiveApiClientOptions;
|
|
4530
4734
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
4531
4735
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
@@ -4546,9 +4750,7 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
4546
4750
|
reply(email: ReceivedEmail, input: ReplyInput, options?: RequestOptions): Promise<SendResult>;
|
|
4547
4751
|
forward(email: ReceivedEmail, input: ForwardInput, options?: RequestOptions): Promise<SendResult>;
|
|
4548
4752
|
}
|
|
4549
|
-
declare function createPrimitiveApiClient(options?: PrimitiveApiClientOptions): PrimitiveApiClient;
|
|
4550
4753
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
4551
4754
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
4552
|
-
declare const operations: typeof sdk_gen_d_exports;
|
|
4553
4755
|
//#endregion
|
|
4554
|
-
export { listSentEmails as $, SetFunctionSecretResponses as $a, PollCliLoginData as $i, DownloadRawEmailError as $n, VerifyDomainError as $o, GetStorageStatsResponses as $r, CreateFunctionResult as $t, deleteEmail as A, SearchEmailsResponse as Aa, ListFiltersResponse as Ai, DeleteFunctionResponse as An, UpdateDomainInput as Ao, GetEmailError as Ar, CliLogoutInput as At, getFunction as B, SendPermissionAnyRecipient as Ba, ListFunctionSecretsResponse as Bi, DiscardEmailContentData as Bn, UpdateFilterError as Bo, GetSendPermissionsError as Br, CreateEndpointResponses as Bt, addDomain as C, RotateWebhookSecretError as Ca, ListEndpointsErrors as Ci, DeleteFilterError as Cn, UpdateAccountErrors as Co, GateFix as Cr, AddDomainResponse as Ct, createFunction as D, SearchEmailsData as Da, ListFiltersData as Di, DeleteFunctionData as Dn, UpdateDomainData as Do, GetAccountResponse as Dr, CliLogoutData as Dt, createFilter as E, RotateWebhookSecretResponses as Ea, ListEnvelope as Ei, DeleteFilterResponses as En, UpdateAccountResponses as Eo, GetAccountErrors as Er, CliLoginStartResult as Et, discardEmailContent as F, SendEmailResponse as Fa, ListFunctionLogsResponse as Fi, DeleteFunctionSecretResponse as Fn, UpdateEndpointErrors as Fo, GetFunctionError as Fr, CreateEndpointData as Ft, listDeliveries as G, SentEmailDetail as Ga, ListFunctionsResponse as Gi, Domain as Gn, UpdateFunctionData as Go, GetSentEmailError as Gr, CreateFilterResponse as Gt, getSentEmail as H, SendPermissionRule as Ha, ListFunctionsData as Hi, DiscardEmailContentErrors as Hn, UpdateFilterInput as Ho, GetSendPermissionsResponse as Hr, CreateFilterError as Ht, downloadAttachments as I, SendEmailResponses as Ia, ListFunctionLogsResponses as Ii, DeleteFunctionSecretResponses as In, UpdateEndpointInput as Io, GetFunctionErrors as Ir, CreateEndpointError as It, listEndpoints as J, SetFunctionSecretData as Ja, ListSentEmailsError as Ji, DownloadAttachmentsError as Jn, UpdateFunctionInput as Jo, GetSentEmailResponses as Jr, CreateFunctionError as Jt, listDomains as K, SentEmailStatus as Ka, ListFunctionsResponses as Ki, DomainVerifyResult as Kn, UpdateFunctionError as Ko, GetSentEmailErrors as Kr, CreateFilterResponses as Kt, downloadRawEmail as L, SendMailInput as La, ListFunctionSecretsData as Li, DeliveryStatus as Ln, UpdateEndpointResponse as Lo, GetFunctionResponse as Lr, CreateEndpointErrors as Lt, deleteFilter as M, SendEmailData as Ma, ListFunctionLogsData as Mi, DeleteFunctionSecretData as Mn, UpdateDomainResponses as Mo, GetEmailResponse as Mr, CliLogoutResponses as Mt, deleteFunction as N, SendEmailError as Na, ListFunctionLogsError as Ni, DeleteFunctionSecretError as Nn, UpdateEndpointData as No, GetEmailResponses as Nr, CliLogoutResult as Nt, createFunctionSecret as O, SearchEmailsError as Oa, ListFiltersError as Oi, DeleteFunctionError as On, UpdateDomainError as Oo, GetAccountResponses as Or, CliLogoutError as Ot, deleteFunctionSecret as P, SendEmailErrors as Pa, ListFunctionLogsErrors as Pi, DeleteFunctionSecretErrors as Pn, UpdateEndpointError as Po, GetFunctionData as Pr, ClientOptions as Pt, listFunctions as Q, SetFunctionSecretResponse as Qa, PaginationMeta as Qi, DownloadRawEmailData as Qn, VerifyDomainData as Qo, GetStorageStatsResponse as Qr, CreateFunctionResponses as Qt, getAccount as R, SendMailResult as Ra, ListFunctionSecretsError as Ri, DeliverySummary as Rn, UpdateEndpointResponses as Ro, GetFunctionResponses as Rr, CreateEndpointInput as Rt, Options as S, RotateWebhookSecretData as Sa, ListEndpointsError as Si, DeleteFilterData as Sn, UpdateAccountError as So, GateDenial as Sr, AddDomainInput as St, createEndpoint as T, RotateWebhookSecretResponse as Ta, ListEndpointsResponses as Ti, DeleteFilterResponse as Tn, UpdateAccountResponse as To, GetAccountError as Tr, CliLoginPollResult as Tt, getStorageStats as U, SendPermissionYourDomain as Ua, ListFunctionsError as Ui, DiscardEmailContentResponse as Un, UpdateFilterResponse as Uo, GetSendPermissionsResponses as Ur, CreateFilterErrors as Ut, getSendPermissions as V, SendPermissionManagedZone as Va, ListFunctionSecretsResponses as Vi, DiscardEmailContentError as Vn, UpdateFilterErrors as Vo, GetSendPermissionsErrors as Vr, CreateFilterData as Vt, getWebhookSecret as W, SendPermissionsMeta as Wa, ListFunctionsErrors as Wi, DiscardEmailContentResponses as Wn, UpdateFilterResponses as Wo, GetSentEmailData as Wr, CreateFilterInput as Wt, listFunctionLogs as X, SetFunctionSecretErrors as Xa, ListSentEmailsResponse as Xi, DownloadAttachmentsResponse as Xn, UpdateFunctionResponses as Xo, GetStorageStatsError as Xr, CreateFunctionInput as Xt, listFilters as Y, SetFunctionSecretError as Ya, ListSentEmailsErrors as Yi, DownloadAttachmentsErrors as Yn, UpdateFunctionResponse as Yo, GetStorageStatsData as Yr, CreateFunctionErrors as Yt, listFunctionSecrets as Z, SetFunctionSecretInput as Za, ListSentEmailsResponses as Zi, DownloadAttachmentsResponses as Zn, VerifiedDomain as Zo, GetStorageStatsErrors as Zr, CreateFunctionResponse as Zt, createPrimitiveClient as _, ReplyToEmailError as _a, ListEmailsError as _i, DeleteEndpointData as _n, TestFunctionResponses as _o, FunctionDetail as _r, Account as _t, PrimitiveApiClientOptions as a, ReplayDeliveryData as aa, Limit as ai, CreateFunctionSecretResponses as an, StartCliLoginResponses as ao, EmailSearchFacetBucket as ar, ClientOptions$1 as as, searchEmails as at, VerifyOptions as b, ReplyToEmailResponses as ba, ListEmailsResponses as bi, DeleteEndpointResponse as bn, UnverifiedDomain as bo, FunctionSecretListItem as br, AddDomainError as bt, PrimitiveClient as c, ReplayDeliveryResponse as ca, ListDeliveriesErrors as ci, DeleteDomainError as cn, TestEndpointData as co, EmailSearchMeta as cr, Options$1 as cs, startCliLogin as ct, RequestOptions as d, ReplayEmailWebhooksError as da, ListDomainsData as di, DeleteDomainResponses as dn, TestEndpointResponse as do, EmailSummary as dr, ResponseStyle as ds, updateAccount as dt, PollCliLoginError as ea, GetWebhookSecretData as ei, CreateFunctionSecretData as en, StartCliLoginData as eo, DownloadRawEmailErrors as er, VerifyDomainErrors as es, pollCliLogin as et, SendInput as f, ReplayEmailWebhooksErrors as fa, ListDomainsError as fi, DeleteEmailData as fn, TestEndpointResponses as fo, EmailWebhookStatus as fr, Auth as fs, updateDomain as ft, createPrimitiveApiClient as g, ReplyToEmailData as ga, ListEmailsData as gi, DeleteEmailResponses as gn, TestFunctionResponse as go, FunctionDeployStatus as gr, verifyDomain as gt, client as h, ReplayResult as ha, ListDomainsResponses as hi, DeleteEmailResponse as hn, TestFunctionErrors as ho, Filter as hr, updateFunction as ht, PrimitiveApiClient as i, PollCliLoginResponses as ia, GetWebhookSecretResponses as ii, CreateFunctionSecretResponse as in, StartCliLoginResponse as io, EmailDetailReply as ir, Client as is, rotateWebhookSecret as it, deleteEndpoint as j, SearchEmailsResponses as ja, ListFiltersResponses as ji, DeleteFunctionResponses as jn, UpdateDomainResponse as jo, GetEmailErrors as jr, CliLogoutResponse as jt, deleteDomain as k, SearchEmailsErrors as ka, ListFiltersErrors as ki, DeleteFunctionErrors as kn, UpdateDomainErrors as ko, GetEmailData as kr, CliLogoutErrors as kt, PrimitiveClientOptions as l, ReplayDeliveryResponses as la, ListDeliveriesResponse as li, DeleteDomainErrors as ln, TestEndpointError as lo, EmailSearchResult as lr, RequestOptions$1 as ls, testEndpoint as lt, SendThreadInput as m, ReplayEmailWebhooksResponses as ma, ListDomainsResponse as mi, DeleteEmailErrors as mn, TestFunctionError as mo, ErrorResponse as mr, updateFilter as mt, DEFAULT_API_BASE_URL_2 as n, PollCliLoginInput as na, GetWebhookSecretErrors as ni, CreateFunctionSecretErrors as nn, StartCliLoginErrors as no, DownloadRawEmailResponses as nr, VerifyDomainResponses as ns, replayEmailWebhooks as nt, PrimitiveApiError as o, ReplayDeliveryError as oa, ListDeliveriesData as oi, Cursor as on, StorageStats as oo, EmailSearchFacets as or, Config as os, sendEmail as ot, SendResult as p, ReplayEmailWebhooksResponse as pa, ListDomainsErrors as pi, DeleteEmailError as pn, TestFunctionData as po, Endpoint as pr, updateEndpoint as pt, listEmails as q, SentEmailSummary as qa, ListSentEmailsData as qi, DownloadAttachmentsData as qn, UpdateFunctionErrors as qo, GetSentEmailResponse as qr, CreateFunctionData as qt, ForwardInput as r, PollCliLoginResponse as ra, GetWebhookSecretResponse as ri, CreateFunctionSecretInput as rn, StartCliLoginInput as ro, EmailDetail as rr, WebhookSecret as rs, replyToEmail as rt, PrimitiveApiErrorDetails as s, ReplayDeliveryErrors as sa, ListDeliveriesError as si, DeleteDomainData as sn, SuccessEnvelope as so, EmailSearchHighlights as sr, CreateClientConfig as ss, setFunctionSecret as st, DEFAULT_API_BASE_URL_1 as t, PollCliLoginErrors as ta, GetWebhookSecretError as ti, CreateFunctionSecretError as tn, StartCliLoginError as to, DownloadRawEmailResponse as tr, VerifyDomainResponse as ts, replayDelivery as tt, ReplyInput as u, ReplayEmailWebhooksData as ua, ListDeliveriesResponses as ui, DeleteDomainResponse as un, TestEndpointErrors as uo, EmailStatus as ur, RequestResult as us, testFunction as ut, operations as v, ReplyToEmailErrors as va, ListEmailsErrors as vi, DeleteEndpointError as vn, TestInvocationResult as vo, FunctionListItem as vr, AccountUpdated as vt, cliLogout as w, RotateWebhookSecretErrors as wa, ListEndpointsResponse as wi, DeleteFilterErrors as wn, UpdateAccountInput as wo, GetAccountData as wr, AddDomainResponses as wt, verifyWebhookSignature as x, ResourceId as xa, ListEndpointsData as xi, DeleteEndpointResponses as xn, UpdateAccountData as xo, FunctionSecretWriteResult as xr, AddDomainErrors as xt, PRIMITIVE_SIGNATURE_HEADER as y, ReplyToEmailResponse as ya, ListEmailsResponse as yi, DeleteEndpointErrors as yn, TestResult as yo, FunctionLogRow as yr, AddDomainData as yt, getEmail as z, SendPermissionAddress as za, ListFunctionSecretsErrors as zi, DiscardContentResult as zn, UpdateFilterData as zo, GetSendPermissionsData as zr, CreateEndpointResponse as zt };
|
|
4756
|
+
export { pollCliLogin as $, SendPermissionRule as $a, ListSentEmailsError as $i, DownloadAttachmentsError as $n, UpdateEndpointInput as $o, GetSentEmailResponses as $r, CreateFunctionError as $t, deleteEndpoint as A, ResendCliSignupVerificationResponse as Aa, ListEndpointsResponses as Ai, DeleteFilterResponse as An, TestFunctionData as Ao, GetAccountError as Ar, Config as As, CliLogoutData as At, getSendPermissions as B, SearchEmailsErrors as Ba, ListFunctionLogsResponse as Bi, DeleteFunctionSecretResponse as Bn, UpdateAccountErrors as Bo, GetFunctionError as Br, CreateEndpointData as Bt, cliLogout as C, ReplyToEmailErrors as Ca, ListEmailsErrors as Ci, DeleteEndpointError as Cn, StorageStats as Co, FunctionListItem as Cr, VerifyDomainErrors as Cs, AddDomainError as Ct, createFunctionSecret as D, ResendCliSignupVerificationError as Da, ListEndpointsError as Di, DeleteFilterData as Dn, TestEndpointErrors as Do, GateDenial as Dr, createClient as Ds, AddDomainResponses as Dt, createFunction as E, ResendCliSignupVerificationData as Ea, ListEndpointsData as Ei, DeleteEndpointResponses as En, TestEndpointError as Eo, FunctionSecretWriteResult as Er, WebhookSecret as Es, AddDomainResponse as Et, downloadAttachments as F, RotateWebhookSecretErrors as Fa, ListFiltersResponse as Fi, DeleteFunctionResponse as Fn, TestInvocationResult as Fo, GetEmailError as Fr, ResponseStyle as Fs, CliLogoutResponses as Ft, listDomains as G, SendEmailErrors as Ga, ListFunctionSecretsResponse as Gi, DiscardEmailContentData as Gn, UpdateDomainError as Go, GetSendPermissionsError as Gr, CreateEndpointResponses as Gt, getStorageStats as H, SearchEmailsResponses as Ha, ListFunctionSecretsData as Hi, DeliveryStatus as Hn, UpdateAccountResponse as Ho, GetFunctionResponse as Hr, CreateEndpointErrors as Ht, downloadRawEmail as I, RotateWebhookSecretResponse as Ia, ListFiltersResponses as Ii, DeleteFunctionResponses as In, TestResult as Io, GetEmailErrors as Ir, createConfig as Is, CliLogoutResult as It, listFilters as J, SendMailInput as Ja, ListFunctionsError as Ji, DiscardEmailContentResponse as Jn, UpdateDomainResponse as Jo, GetSendPermissionsResponses as Jr, CreateFilterErrors as Jt, listEmails as K, SendEmailResponse as Ka, ListFunctionSecretsResponses as Ki, DiscardEmailContentError as Kn, UpdateDomainErrors as Ko, GetSendPermissionsErrors as Kr, CreateFilterData as Kt, getAccount as L, RotateWebhookSecretResponses as La, ListFunctionLogsData as Li, DeleteFunctionSecretData as Ln, UnverifiedDomain as Lo, GetEmailResponse as Lr, Auth as Ls, CliSignupResendResult as Lt, deleteFunction as M, ResourceId as Ma, ListFiltersData as Mi, DeleteFunctionData as Mn, TestFunctionErrors as Mo, GetAccountResponse as Mr, Options$1 as Ms, CliLogoutErrors as Mt, deleteFunctionSecret as N, RotateWebhookSecretData as Na, ListFiltersError as Ni, DeleteFunctionError as Nn, TestFunctionResponse as No, GetAccountResponses as Nr, RequestOptions$2 as Ns, CliLogoutInput as Nt, deleteDomain as O, ResendCliSignupVerificationErrors as Oa, ListEndpointsErrors as Oi, DeleteFilterError as On, TestEndpointResponse as Oo, GateFix as Or, Client as Os, CliLoginPollResult as Ot, discardEmailContent as P, RotateWebhookSecretError as Pa, ListFiltersErrors as Pi, DeleteFunctionErrors as Pn, TestFunctionResponses as Po, GetEmailData as Pr, RequestResult as Ps, CliLogoutResponse as Pt, listSentEmails as Q, SendPermissionManagedZone as Qa, ListSentEmailsData as Qi, DownloadAttachmentsData as Qn, UpdateEndpointErrors as Qo, GetSentEmailResponse as Qr, CreateFunctionData as Qt, getEmail as R, SearchEmailsData as Ra, ListFunctionLogsError as Ri, DeleteFunctionSecretError as Rn, UpdateAccountData as Ro, GetEmailResponses as Rr, CliSignupStartResult as Rt, addDomain as S, ReplyToEmailError as Sa, ListEmailsError as Si, DeleteEndpointData as Sn, StartCliSignupResponses as So, FunctionDetail as Sr, VerifyDomainError as Ss, AddDomainData as St, createFilter as T, ReplyToEmailResponses as Ta, ListEmailsResponses as Ti, DeleteEndpointResponse as Tn, TestEndpointData as To, FunctionSecretListItem as Tr, VerifyDomainResponses as Ts, AddDomainInput as Tt, getWebhookSecret as U, SendEmailData as Ua, ListFunctionSecretsError as Ui, DeliverySummary as Un, UpdateAccountResponses as Uo, GetFunctionResponses as Ur, CreateEndpointInput as Ut, getSentEmail as V, SearchEmailsResponse as Va, ListFunctionLogsResponses as Vi, DeleteFunctionSecretResponses as Vn, UpdateAccountInput as Vo, GetFunctionErrors as Vr, CreateEndpointError as Vt, listDeliveries as W, SendEmailError as Wa, ListFunctionSecretsErrors as Wi, DiscardContentResult as Wn, UpdateDomainData as Wo, GetSendPermissionsData as Wr, CreateEndpointResponse as Wt, listFunctionSecrets as X, SendPermissionAddress as Xa, ListFunctionsResponse as Xi, Domain as Xn, UpdateEndpointData as Xo, GetSentEmailError as Xr, CreateFilterResponse as Xt, listFunctionLogs as Y, SendMailResult as Ya, ListFunctionsErrors as Yi, DiscardEmailContentResponses as Yn, UpdateDomainResponses as Yo, GetSentEmailData as Yr, CreateFilterInput as Yt, listFunctions as Z, SendPermissionAnyRecipient as Za, ListFunctionsResponses as Zi, DomainVerifyResult as Zn, UpdateEndpointError as Zo, GetSentEmailErrors as Zr, CreateFilterResponses as Zt, PrimitiveApiClientOptions as _, ReplayEmailWebhooksErrors as _a, ListDomainsError as _i, DeleteEmailData as _n, StartCliSignupData as _o, EmailWebhookStatus as _r, VerifyCliSignupErrors as _s, updateFunction as _t, RequestOptions as a, PollCliLoginError as aa, GetWebhookSecretData as ai, CreateFunctionSecretData as an, SetFunctionSecretData as ao, DownloadRawEmailErrors as ar, UpdateFilterInput as as, sdk_gen_d_exports as at, RequestOptions$1 as b, ReplayResult as ba, ListDomainsResponses as bi, DeleteEmailResponse as bn, StartCliSignupInput as bo, Filter as br, VerifyCliSignupResponses as bs, Account as bt, SendThreadInput as c, PollCliLoginResponse as ca, GetWebhookSecretResponse as ci, CreateFunctionSecretInput as cn, SetFunctionSecretInput as co, EmailDetail as cr, UpdateFunctionData as cs, setFunctionSecret as ct, PRIMITIVE_SIGNATURE_HEADER as d, ReplayDeliveryError as da, ListDeliveriesData as di, Cursor as dn, StartCliLoginData as do, EmailSearchFacets as dr, UpdateFunctionInput as ds, testEndpoint as dt, ListSentEmailsErrors as ea, GetStorageStatsData as ei, CreateFunctionErrors as en, SendPermissionYourDomain as eo, DownloadAttachmentsErrors as er, UpdateEndpointResponse as es, replayDelivery as et, VerifyOptions as f, ReplayDeliveryErrors as fa, ListDeliveriesError as fi, DeleteDomainData as fn, StartCliLoginError as fo, EmailSearchHighlights as fr, UpdateFunctionResponse as fs, testFunction as ft, PrimitiveApiClient as g, ReplayEmailWebhooksError as ga, ListDomainsData as gi, DeleteDomainResponses as gn, StartCliLoginResponses as go, EmailSummary as gr, VerifyCliSignupError as gs, updateFilter as gt, DEFAULT_API_BASE_URL_2 as h, ReplayEmailWebhooksData as ha, ListDeliveriesResponses as hi, DeleteDomainResponse as hn, StartCliLoginResponse as ho, EmailStatus as hr, VerifyCliSignupData as hs, updateEndpoint as ht, ReplyInput as i, PollCliLoginData as ia, GetStorageStatsResponses as ii, CreateFunctionResult as in, SentEmailSummary as io, DownloadRawEmailError as ir, UpdateFilterErrors as is, rotateWebhookSecret as it, deleteFilter as j, ResendCliSignupVerificationResponses as ja, ListEnvelope as ji, DeleteFilterResponses as jn, TestFunctionError as jo, GetAccountErrors as jr, CreateClientConfig as js, CliLogoutError as jt, deleteEmail as k, ResendCliSignupVerificationInput as ka, ListEndpointsResponse as ki, DeleteFilterErrors as kn, TestEndpointResponses as ko, GetAccountData as kr, ClientOptions as ks, CliLoginStartResult as kt, client as l, PollCliLoginResponses as la, GetWebhookSecretResponses as li, CreateFunctionSecretResponse as ln, SetFunctionSecretResponse as lo, EmailDetailReply as lr, UpdateFunctionError as ls, startCliLogin as lt, DEFAULT_API_BASE_URL_1 as m, ReplayDeliveryResponses as ma, ListDeliveriesResponse as mi, DeleteDomainErrors as mn, StartCliLoginInput as mo, EmailSearchResult as mr, VerifiedDomain as ms, updateDomain as mt, PrimitiveClient as n, ListSentEmailsResponses as na, GetStorageStatsErrors as ni, CreateFunctionResponse as nn, SentEmailDetail as no, DownloadAttachmentsResponses as nr, UpdateFilterData as ns, replyToEmail as nt, SendInput as o, PollCliLoginErrors as oa, GetWebhookSecretError as oi, CreateFunctionSecretError as on, SetFunctionSecretError as oo, DownloadRawEmailResponse as or, UpdateFilterResponse as os, searchEmails as ot, verifyWebhookSignature as p, ReplayDeliveryResponse as pa, ListDeliveriesErrors as pi, DeleteDomainError as pn, StartCliLoginErrors as po, EmailSearchMeta as pr, UpdateFunctionResponses as ps, updateAccount as pt, listEndpoints as q, SendEmailResponses as qa, ListFunctionsData as qi, DiscardEmailContentErrors as qn, UpdateDomainInput as qo, GetSendPermissionsResponse as qr, CreateFilterError as qt, PrimitiveClientOptions as r, PaginationMeta as ra, GetStorageStatsResponse as ri, CreateFunctionResponses as rn, SentEmailStatus as ro, DownloadRawEmailData as rr, UpdateFilterError as rs, resendCliSignupVerification as rt, SendResult as s, PollCliLoginInput as sa, GetWebhookSecretErrors as si, CreateFunctionSecretErrors as sn, SetFunctionSecretErrors as so, DownloadRawEmailResponses as sr, UpdateFilterResponses as ss, sendEmail as st, ForwardInput as t, ListSentEmailsResponse as ta, GetStorageStatsError as ti, CreateFunctionInput as tn, SendPermissionsMeta as to, DownloadAttachmentsResponse as tr, UpdateEndpointResponses as ts, replayEmailWebhooks as tt, createPrimitiveClient as u, ReplayDeliveryData as ua, Limit as ui, CreateFunctionSecretResponses as un, SetFunctionSecretResponses as uo, EmailSearchFacetBucket as ur, UpdateFunctionErrors as us, startCliSignup as ut, PrimitiveApiError as v, ReplayEmailWebhooksResponse as va, ListDomainsErrors as vi, DeleteEmailError as vn, StartCliSignupError as vo, Endpoint as vr, VerifyCliSignupInput as vs, verifyCliSignup as vt, createEndpoint as w, ReplyToEmailResponse as wa, ListEmailsResponse as wi, DeleteEndpointErrors as wn, SuccessEnvelope as wo, FunctionLogRow as wr, VerifyDomainResponse as ws, AddDomainErrors as wt, createPrimitiveApiClient as x, ReplyToEmailData as xa, ListEmailsData as xi, DeleteEmailResponses as xn, StartCliSignupResponse as xo, FunctionDeployStatus as xr, VerifyDomainData as xs, AccountUpdated as xt, PrimitiveApiErrorDetails as y, ReplayEmailWebhooksResponses as ya, ListDomainsResponse as yi, DeleteEmailErrors as yn, StartCliSignupErrors as yo, ErrorResponse as yr, VerifyCliSignupResponse as ys, verifyDomain as yt, getFunction as z, SearchEmailsError as za, ListFunctionLogsErrors as zi, DeleteFunctionSecretErrors as zn, UpdateAccountError as zo, GetFunctionData as zr, CliSignupVerifyResult as zt };
|