@fragno-dev/api-fragment 0.0.0-stage → 0.0.1
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/LICENSE.md +16 -0
- package/README.md +249 -2
- package/dist/browser/client/client-3ZV9sw3i.js +2580 -0
- package/dist/browser/client/client-3ZV9sw3i.js.map +1 -0
- package/dist/browser/client/client-DPjmoaJQ.d.ts +711 -0
- package/dist/browser/client/client-DPjmoaJQ.d.ts.map +1 -0
- package/dist/browser/client/client.d.ts +1645 -0
- package/dist/browser/client/client.d.ts.map +1 -0
- package/dist/browser/client/client.js +2 -0
- package/dist/browser/client/react.d.ts +1665 -0
- package/dist/browser/client/react.d.ts.map +1 -0
- package/dist/browser/client/react.js +194 -0
- package/dist/browser/client/react.js.map +1 -0
- package/dist/browser/client/solid.d.ts +1668 -0
- package/dist/browser/client/solid.d.ts.map +1 -0
- package/dist/browser/client/solid.js +129 -0
- package/dist/browser/client/solid.js.map +1 -0
- package/dist/browser/client/svelte.d.ts +1668 -0
- package/dist/browser/client/svelte.d.ts.map +1 -0
- package/dist/browser/client/svelte.js +131 -0
- package/dist/browser/client/svelte.js.map +1 -0
- package/dist/browser/client/vanilla.d.ts +1695 -0
- package/dist/browser/client/vanilla.d.ts.map +1 -0
- package/dist/browser/client/vanilla.js +159 -0
- package/dist/browser/client/vanilla.js.map +1 -0
- package/dist/browser/client/vue.d.ts +1668 -0
- package/dist/browser/client/vue.d.ts.map +1 -0
- package/dist/browser/client/vue.js +127 -0
- package/dist/browser/client/vue.js.map +1 -0
- package/dist/browser/client-D4NnY-zV.d.ts +713 -0
- package/dist/browser/client-D4NnY-zV.d.ts.map +1 -0
- package/dist/browser/client-DQE0c7GI.d.ts +711 -0
- package/dist/browser/client-DQE0c7GI.d.ts.map +1 -0
- package/dist/browser/index.d.ts +3130 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/src-BrYPVbAN.js +2404 -0
- package/dist/browser/src-BrYPVbAN.js.map +1 -0
- package/dist/browser/src-t-4wp9-f.js +2400 -0
- package/dist/browser/src-t-4wp9-f.js.map +1 -0
- package/dist/node/api-types.d.ts +731 -0
- package/dist/node/api-types.d.ts.map +1 -0
- package/dist/node/api-types.js +281 -0
- package/dist/node/api-types.js.map +1 -0
- package/dist/node/crypto.d.ts +6 -0
- package/dist/node/crypto.d.ts.map +1 -0
- package/dist/node/crypto.js +103 -0
- package/dist/node/crypto.js.map +1 -0
- package/dist/node/definition.d.ts +638 -0
- package/dist/node/definition.d.ts.map +1 -0
- package/dist/node/definition.js +315 -0
- package/dist/node/definition.js.map +1 -0
- package/dist/node/oauth.js +124 -0
- package/dist/node/oauth.js.map +1 -0
- package/dist/node/routes.d.ts +1585 -0
- package/dist/node/routes.d.ts.map +1 -0
- package/dist/node/routes.js +1100 -0
- package/dist/node/routes.js.map +1 -0
- package/dist/node/schema.d.ts +99 -0
- package/dist/node/schema.d.ts.map +1 -0
- package/dist/node/schema.js +16 -0
- package/dist/node/schema.js.map +1 -0
- package/dist/node/server.d.ts +1585 -0
- package/dist/node/server.d.ts.map +1 -0
- package/dist/node/server.js +12 -0
- package/dist/node/server.js.map +1 -0
- package/dist/node/services.d.ts +10 -0
- package/dist/node/services.d.ts.map +1 -0
- package/dist/node/services.js +304 -0
- package/dist/node/services.js.map +1 -0
- package/dist/node/webhooks/auth.d.ts +133 -0
- package/dist/node/webhooks/auth.d.ts.map +1 -0
- package/dist/node/webhooks/auth.js +268 -0
- package/dist/node/webhooks/auth.js.map +1 -0
- package/dist/node/webhooks/verification.d.ts +102 -0
- package/dist/node/webhooks/verification.d.ts.map +1 -0
- package/dist/node/webhooks/verification.js +119 -0
- package/dist/node/webhooks/verification.js.map +1 -0
- package/package.json +136 -3
|
@@ -0,0 +1,731 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/api-types.d.ts
|
|
3
|
+
interface ApiFragmentConfig {
|
|
4
|
+
/** Optional URL allow-list. If omitted, only http(s) URL syntax is checked. */
|
|
5
|
+
allowedBaseUrls?: (url: URL) => boolean;
|
|
6
|
+
/** Allows OAuth callback URLs. OAuth start is rejected when this policy is omitted. */
|
|
7
|
+
allowedOAuthRedirectUris?: (url: URL) => boolean;
|
|
8
|
+
/** Optional fetch implementation for tests/custom runtimes. */
|
|
9
|
+
fetch?: typeof fetch;
|
|
10
|
+
}
|
|
11
|
+
declare const authConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"none">;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"bearer">;
|
|
15
|
+
token: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"basic">;
|
|
18
|
+
username: z.ZodString;
|
|
19
|
+
password: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<"client_credentials">;
|
|
22
|
+
tokenEndpoint: z.ZodURL;
|
|
23
|
+
clientId: z.ZodString;
|
|
24
|
+
clientSecret: z.ZodString;
|
|
25
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tokenEndpointAuthMethod: z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
client_secret_basic: "client_secret_basic";
|
|
29
|
+
client_secret_post: "client_secret_post";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"oauth">;
|
|
33
|
+
authorizationEndpoint: z.ZodURL;
|
|
34
|
+
tokenEndpoint: z.ZodURL;
|
|
35
|
+
clientId: z.ZodString;
|
|
36
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
37
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
tokenEndpointAuthMethod: z.ZodDefault<z.ZodEnum<{
|
|
39
|
+
none: "none";
|
|
40
|
+
client_secret_basic: "client_secret_basic";
|
|
41
|
+
client_secret_post: "client_secret_post";
|
|
42
|
+
}>>;
|
|
43
|
+
extraAuthorizationParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
|
+
extraTokenParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>], "type">;
|
|
46
|
+
/** Slugs are URL path segments; whitespace and dot segments would make a connection unaddressable. */
|
|
47
|
+
declare const apiConnectionSlugSchema: z.ZodString;
|
|
48
|
+
declare const createApiConnectionInputSchema: z.ZodObject<{
|
|
49
|
+
name: z.ZodOptional<z.ZodString>;
|
|
50
|
+
baseUrl: z.ZodURL;
|
|
51
|
+
auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"none">;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"bearer">;
|
|
55
|
+
token: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"basic">;
|
|
58
|
+
username: z.ZodString;
|
|
59
|
+
password: z.ZodString;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"client_credentials">;
|
|
62
|
+
tokenEndpoint: z.ZodURL;
|
|
63
|
+
clientId: z.ZodString;
|
|
64
|
+
clientSecret: z.ZodString;
|
|
65
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
67
|
+
tokenEndpointAuthMethod: z.ZodDefault<z.ZodEnum<{
|
|
68
|
+
client_secret_basic: "client_secret_basic";
|
|
69
|
+
client_secret_post: "client_secret_post";
|
|
70
|
+
}>>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"oauth">;
|
|
73
|
+
authorizationEndpoint: z.ZodURL;
|
|
74
|
+
tokenEndpoint: z.ZodURL;
|
|
75
|
+
clientId: z.ZodString;
|
|
76
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
77
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
tokenEndpointAuthMethod: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
none: "none";
|
|
80
|
+
client_secret_basic: "client_secret_basic";
|
|
81
|
+
client_secret_post: "client_secret_post";
|
|
82
|
+
}>>;
|
|
83
|
+
extraAuthorizationParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
84
|
+
extraTokenParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
|
+
}, z.core.$strip>], "type">>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const apiConnectionOutputSchema: z.ZodObject<{
|
|
88
|
+
slug: z.ZodString;
|
|
89
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
baseUrl: z.ZodString;
|
|
91
|
+
authMode: z.ZodString;
|
|
92
|
+
status: z.ZodString;
|
|
93
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
94
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
declare const apiConnectionsPageSchema: z.ZodObject<{
|
|
97
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
98
|
+
slug: z.ZodString;
|
|
99
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
baseUrl: z.ZodString;
|
|
101
|
+
authMode: z.ZodString;
|
|
102
|
+
status: z.ZodString;
|
|
103
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
104
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
/** Sanitized auth state derived from stored configuration; it never proves live provider access. */
|
|
109
|
+
declare const apiAuthStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
+
mode: z.ZodLiteral<"none">;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
mode: z.ZodLiteral<"bearer">;
|
|
113
|
+
credentials: z.ZodEnum<{
|
|
114
|
+
present: "present";
|
|
115
|
+
missing: "missing";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
mode: z.ZodLiteral<"basic">;
|
|
119
|
+
credentials: z.ZodEnum<{
|
|
120
|
+
present: "present";
|
|
121
|
+
missing: "missing";
|
|
122
|
+
}>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
mode: z.ZodLiteral<"client_credentials">;
|
|
125
|
+
credentials: z.ZodEnum<{
|
|
126
|
+
present: "present";
|
|
127
|
+
missing: "missing";
|
|
128
|
+
}>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
mode: z.ZodLiteral<"oauth">;
|
|
131
|
+
state: z.ZodEnum<{
|
|
132
|
+
"client-missing": "client-missing";
|
|
133
|
+
"consent-required": "consent-required";
|
|
134
|
+
"consent-pending": "consent-pending";
|
|
135
|
+
authorized: "authorized";
|
|
136
|
+
expired: "expired";
|
|
137
|
+
}>;
|
|
138
|
+
}, z.core.$strip>], "mode">;
|
|
139
|
+
/** The pending link embeds the callback state, so reading it requires connection-create authority. */
|
|
140
|
+
declare const apiOAuthPendingSchema: z.ZodObject<{
|
|
141
|
+
pending: z.ZodNullable<z.ZodObject<{
|
|
142
|
+
authorizationUrl: z.ZodURL;
|
|
143
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodDate]>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const tokenAuthInputSchema: z.ZodObject<{
|
|
147
|
+
token: z.ZodString;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
/** Query parameter carrying the OAuth callback URI for an OAuth start request. */
|
|
150
|
+
declare const API_OAUTH_REDIRECT_URI_QUERY_PARAMETER = "redirectUri";
|
|
151
|
+
declare const oauthRedirectUriSchema: z.ZodURL;
|
|
152
|
+
declare const oauthStartInputSchema: z.ZodObject<{
|
|
153
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
extraAuthorizationParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
155
|
+
discardTokens: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
declare const apiRequestBodySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"empty">;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"json">;
|
|
161
|
+
value: z.ZodUnknown;
|
|
162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
+
type: z.ZodLiteral<"text">;
|
|
164
|
+
value: z.ZodString;
|
|
165
|
+
}, z.core.$strip>], "type">;
|
|
166
|
+
declare const apiRequestInputSchema: z.ZodObject<{
|
|
167
|
+
method: z.ZodEnum<{
|
|
168
|
+
GET: "GET";
|
|
169
|
+
POST: "POST";
|
|
170
|
+
PUT: "PUT";
|
|
171
|
+
PATCH: "PATCH";
|
|
172
|
+
DELETE: "DELETE";
|
|
173
|
+
}>;
|
|
174
|
+
path: z.ZodString;
|
|
175
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
177
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"empty">;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"json">;
|
|
181
|
+
value: z.ZodUnknown;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"text">;
|
|
184
|
+
value: z.ZodString;
|
|
185
|
+
}, z.core.$strip>], "type">;
|
|
186
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
declare const apiResponseBodySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"json">;
|
|
190
|
+
value: z.ZodUnknown;
|
|
191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
+
type: z.ZodLiteral<"text">;
|
|
193
|
+
value: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
type: z.ZodLiteral<"empty">;
|
|
196
|
+
value: z.ZodNull;
|
|
197
|
+
}, z.core.$strip>], "type">;
|
|
198
|
+
declare const apiHttpResponseSchema: z.ZodObject<{
|
|
199
|
+
status: z.ZodNumber;
|
|
200
|
+
statusText: z.ZodString;
|
|
201
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
202
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
203
|
+
type: z.ZodLiteral<"json">;
|
|
204
|
+
value: z.ZodUnknown;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"text">;
|
|
207
|
+
value: z.ZodString;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
type: z.ZodLiteral<"empty">;
|
|
210
|
+
value: z.ZodNull;
|
|
211
|
+
}, z.core.$strip>], "type">;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
declare const apiRequestOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
214
|
+
ok: z.ZodLiteral<true>;
|
|
215
|
+
response: z.ZodObject<{
|
|
216
|
+
status: z.ZodNumber;
|
|
217
|
+
statusText: z.ZodString;
|
|
218
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
219
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"json">;
|
|
221
|
+
value: z.ZodUnknown;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
type: z.ZodLiteral<"text">;
|
|
224
|
+
value: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"empty">;
|
|
227
|
+
value: z.ZodNull;
|
|
228
|
+
}, z.core.$strip>], "type">;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
error: z.ZodNull;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
ok: z.ZodLiteral<false>;
|
|
233
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
234
|
+
status: z.ZodNumber;
|
|
235
|
+
statusText: z.ZodString;
|
|
236
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
237
|
+
body: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
+
type: z.ZodLiteral<"json">;
|
|
239
|
+
value: z.ZodUnknown;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<"text">;
|
|
242
|
+
value: z.ZodString;
|
|
243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
|
+
type: z.ZodLiteral<"empty">;
|
|
245
|
+
value: z.ZodNull;
|
|
246
|
+
}, z.core.$strip>], "type">;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
error: z.ZodObject<{
|
|
249
|
+
code: z.ZodEnum<{
|
|
250
|
+
CONNECTION_NOT_FOUND: "CONNECTION_NOT_FOUND";
|
|
251
|
+
HTTP_ERROR: "HTTP_ERROR";
|
|
252
|
+
REQUEST_ERROR: "REQUEST_ERROR";
|
|
253
|
+
RESPONSE_DECODING_ERROR: "RESPONSE_DECODING_ERROR";
|
|
254
|
+
CONNECTION_DISABLED: "CONNECTION_DISABLED";
|
|
255
|
+
}>;
|
|
256
|
+
message: z.ZodString;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
}, z.core.$strip>], "ok">;
|
|
259
|
+
declare const webhookDeliveryIdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
260
|
+
type: z.ZodLiteral<"header">;
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"query">;
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
267
|
+
path: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>], "type">;
|
|
269
|
+
declare const webhookEndpointAuthInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"none">;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"bearer">;
|
|
273
|
+
token: z.ZodString;
|
|
274
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
+
type: z.ZodLiteral<"apiKey">;
|
|
276
|
+
location: z.ZodEnum<{
|
|
277
|
+
header: "header";
|
|
278
|
+
query: "query";
|
|
279
|
+
}>;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
secret: z.ZodString;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
type: z.ZodLiteral<"basic">;
|
|
284
|
+
username: z.ZodString;
|
|
285
|
+
password: z.ZodString;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
type: z.ZodLiteral<"hmac">;
|
|
288
|
+
secret: z.ZodString;
|
|
289
|
+
algorithm: z.ZodEnum<{
|
|
290
|
+
sha1: "sha1";
|
|
291
|
+
sha256: "sha256";
|
|
292
|
+
sha512: "sha512";
|
|
293
|
+
}>;
|
|
294
|
+
signature: z.ZodObject<{
|
|
295
|
+
location: z.ZodEnum<{
|
|
296
|
+
header: "header";
|
|
297
|
+
query: "query";
|
|
298
|
+
}>;
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
encoding: z.ZodEnum<{
|
|
301
|
+
hex: "hex";
|
|
302
|
+
base64: "base64";
|
|
303
|
+
base64url: "base64url";
|
|
304
|
+
}>;
|
|
305
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
signedPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
308
|
+
type: z.ZodLiteral<"rawBody">;
|
|
309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
310
|
+
type: z.ZodLiteral<"timestampedBody">;
|
|
311
|
+
prefix: z.ZodString;
|
|
312
|
+
timestampHeader: z.ZodString;
|
|
313
|
+
delimiter: z.ZodString;
|
|
314
|
+
toleranceSeconds: z.ZodNumber;
|
|
315
|
+
}, z.core.$strip>], "type">;
|
|
316
|
+
}, z.core.$strip>], "type">;
|
|
317
|
+
declare const webhookEndpointStatusSchema: z.ZodEnum<{
|
|
318
|
+
draft: "draft";
|
|
319
|
+
active: "active";
|
|
320
|
+
disabled: "disabled";
|
|
321
|
+
}>;
|
|
322
|
+
/** Why the receive routes refused a request for an existing endpoint. */
|
|
323
|
+
declare const webhookRejectionCodeSchema: z.ZodEnum<{
|
|
324
|
+
WEBHOOK_ENDPOINT_DISABLED: "WEBHOOK_ENDPOINT_DISABLED";
|
|
325
|
+
WEBHOOK_ENDPOINT_DRAFT: "WEBHOOK_ENDPOINT_DRAFT";
|
|
326
|
+
WEBHOOK_AUTH_FAILED: "WEBHOOK_AUTH_FAILED";
|
|
327
|
+
WEBHOOK_VERIFICATION_NOT_MATCHED: "WEBHOOK_VERIFICATION_NOT_MATCHED";
|
|
328
|
+
WEBHOOK_VERIFICATION_RESPONSE_INVALID: "WEBHOOK_VERIFICATION_RESPONSE_INVALID";
|
|
329
|
+
WEBHOOK_BODY_INVALID: "WEBHOOK_BODY_INVALID";
|
|
330
|
+
WEBHOOK_DELIVERY_ID_MISSING: "WEBHOOK_DELIVERY_ID_MISSING";
|
|
331
|
+
WEBHOOK_DELIVERY_ID_INVALID: "WEBHOOK_DELIVERY_ID_INVALID";
|
|
332
|
+
}>;
|
|
333
|
+
declare const webhookDeliveryEvidenceSchema: z.ZodObject<{
|
|
334
|
+
lastAcceptedAt: z.ZodNullable<z.ZodString>;
|
|
335
|
+
lastRejection: z.ZodNullable<z.ZodObject<{
|
|
336
|
+
receivedAt: z.ZodString;
|
|
337
|
+
code: z.ZodEnum<{
|
|
338
|
+
WEBHOOK_ENDPOINT_DISABLED: "WEBHOOK_ENDPOINT_DISABLED";
|
|
339
|
+
WEBHOOK_ENDPOINT_DRAFT: "WEBHOOK_ENDPOINT_DRAFT";
|
|
340
|
+
WEBHOOK_AUTH_FAILED: "WEBHOOK_AUTH_FAILED";
|
|
341
|
+
WEBHOOK_VERIFICATION_NOT_MATCHED: "WEBHOOK_VERIFICATION_NOT_MATCHED";
|
|
342
|
+
WEBHOOK_VERIFICATION_RESPONSE_INVALID: "WEBHOOK_VERIFICATION_RESPONSE_INVALID";
|
|
343
|
+
WEBHOOK_BODY_INVALID: "WEBHOOK_BODY_INVALID";
|
|
344
|
+
WEBHOOK_DELIVERY_ID_MISSING: "WEBHOOK_DELIVERY_ID_MISSING";
|
|
345
|
+
WEBHOOK_DELIVERY_ID_INVALID: "WEBHOOK_DELIVERY_ID_INVALID";
|
|
346
|
+
}>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
declare const webhookEndpointOutputSchema: z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
name: z.ZodString;
|
|
352
|
+
status: z.ZodEnum<{
|
|
353
|
+
draft: "draft";
|
|
354
|
+
active: "active";
|
|
355
|
+
disabled: "disabled";
|
|
356
|
+
}>;
|
|
357
|
+
authConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"none">;
|
|
359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
+
type: z.ZodLiteral<"bearer">;
|
|
361
|
+
tokenRef: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
type: z.ZodLiteral<"apiKey">;
|
|
364
|
+
location: z.ZodEnum<{
|
|
365
|
+
header: "header";
|
|
366
|
+
query: "query";
|
|
367
|
+
}>;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
secretRef: z.ZodString;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"basic">;
|
|
372
|
+
usernameRef: z.ZodString;
|
|
373
|
+
passwordRef: z.ZodString;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
type: z.ZodLiteral<"hmac">;
|
|
376
|
+
secretRef: z.ZodString;
|
|
377
|
+
algorithm: z.ZodEnum<{
|
|
378
|
+
sha1: "sha1";
|
|
379
|
+
sha256: "sha256";
|
|
380
|
+
sha512: "sha512";
|
|
381
|
+
}>;
|
|
382
|
+
signature: z.ZodObject<{
|
|
383
|
+
location: z.ZodEnum<{
|
|
384
|
+
header: "header";
|
|
385
|
+
query: "query";
|
|
386
|
+
}>;
|
|
387
|
+
name: z.ZodString;
|
|
388
|
+
encoding: z.ZodEnum<{
|
|
389
|
+
hex: "hex";
|
|
390
|
+
base64: "base64";
|
|
391
|
+
base64url: "base64url";
|
|
392
|
+
}>;
|
|
393
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
signedPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
396
|
+
type: z.ZodLiteral<"rawBody">;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
type: z.ZodLiteral<"timestampedBody">;
|
|
399
|
+
prefix: z.ZodString;
|
|
400
|
+
timestampHeader: z.ZodString;
|
|
401
|
+
delimiter: z.ZodString;
|
|
402
|
+
toleranceSeconds: z.ZodNumber;
|
|
403
|
+
}, z.core.$strip>], "type">;
|
|
404
|
+
}, z.core.$strip>], "type">;
|
|
405
|
+
verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"none">;
|
|
407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
+
type: z.ZodLiteral<"challenge">;
|
|
409
|
+
method: z.ZodEnum<{
|
|
410
|
+
GET: "GET";
|
|
411
|
+
POST: "POST";
|
|
412
|
+
}>;
|
|
413
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
414
|
+
type: z.ZodLiteral<"present">;
|
|
415
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
416
|
+
type: z.ZodLiteral<"header">;
|
|
417
|
+
name: z.ZodString;
|
|
418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
+
type: z.ZodLiteral<"query">;
|
|
420
|
+
name: z.ZodString;
|
|
421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
423
|
+
path: z.ZodArray<z.ZodString>;
|
|
424
|
+
}, z.core.$strip>], "type">;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
type: z.ZodLiteral<"equals">;
|
|
427
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"header">;
|
|
429
|
+
name: z.ZodString;
|
|
430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
431
|
+
type: z.ZodLiteral<"query">;
|
|
432
|
+
name: z.ZodString;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
435
|
+
path: z.ZodArray<z.ZodString>;
|
|
436
|
+
}, z.core.$strip>], "type">;
|
|
437
|
+
value: z.ZodString;
|
|
438
|
+
}, z.core.$strip>], "type">;
|
|
439
|
+
response: z.ZodObject<{
|
|
440
|
+
type: z.ZodLiteral<"echoText">;
|
|
441
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"header">;
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
445
|
+
type: z.ZodLiteral<"query">;
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
449
|
+
path: z.ZodArray<z.ZodString>;
|
|
450
|
+
}, z.core.$strip>], "type">;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>], "type">;
|
|
453
|
+
deliveryIdentity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
454
|
+
type: z.ZodLiteral<"header">;
|
|
455
|
+
name: z.ZodString;
|
|
456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
457
|
+
type: z.ZodLiteral<"query">;
|
|
458
|
+
name: z.ZodString;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
461
|
+
path: z.ZodArray<z.ZodString>;
|
|
462
|
+
}, z.core.$strip>], "type">;
|
|
463
|
+
secretRefs: z.ZodArray<z.ZodString>;
|
|
464
|
+
deliveries: z.ZodObject<{
|
|
465
|
+
lastAcceptedAt: z.ZodNullable<z.ZodString>;
|
|
466
|
+
lastRejection: z.ZodNullable<z.ZodObject<{
|
|
467
|
+
receivedAt: z.ZodString;
|
|
468
|
+
code: z.ZodEnum<{
|
|
469
|
+
WEBHOOK_ENDPOINT_DISABLED: "WEBHOOK_ENDPOINT_DISABLED";
|
|
470
|
+
WEBHOOK_ENDPOINT_DRAFT: "WEBHOOK_ENDPOINT_DRAFT";
|
|
471
|
+
WEBHOOK_AUTH_FAILED: "WEBHOOK_AUTH_FAILED";
|
|
472
|
+
WEBHOOK_VERIFICATION_NOT_MATCHED: "WEBHOOK_VERIFICATION_NOT_MATCHED";
|
|
473
|
+
WEBHOOK_VERIFICATION_RESPONSE_INVALID: "WEBHOOK_VERIFICATION_RESPONSE_INVALID";
|
|
474
|
+
WEBHOOK_BODY_INVALID: "WEBHOOK_BODY_INVALID";
|
|
475
|
+
WEBHOOK_DELIVERY_ID_MISSING: "WEBHOOK_DELIVERY_ID_MISSING";
|
|
476
|
+
WEBHOOK_DELIVERY_ID_INVALID: "WEBHOOK_DELIVERY_ID_INVALID";
|
|
477
|
+
}>;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
481
|
+
updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
declare const createWebhookEndpointInputSchema: z.ZodObject<{
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
486
|
+
draft: "draft";
|
|
487
|
+
active: "active";
|
|
488
|
+
disabled: "disabled";
|
|
489
|
+
}>>;
|
|
490
|
+
verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
491
|
+
type: z.ZodLiteral<"none">;
|
|
492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
493
|
+
type: z.ZodLiteral<"challenge">;
|
|
494
|
+
method: z.ZodEnum<{
|
|
495
|
+
GET: "GET";
|
|
496
|
+
POST: "POST";
|
|
497
|
+
}>;
|
|
498
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
499
|
+
type: z.ZodLiteral<"present">;
|
|
500
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
501
|
+
type: z.ZodLiteral<"header">;
|
|
502
|
+
name: z.ZodString;
|
|
503
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
504
|
+
type: z.ZodLiteral<"query">;
|
|
505
|
+
name: z.ZodString;
|
|
506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
508
|
+
path: z.ZodArray<z.ZodString>;
|
|
509
|
+
}, z.core.$strip>], "type">;
|
|
510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
511
|
+
type: z.ZodLiteral<"equals">;
|
|
512
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"header">;
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
516
|
+
type: z.ZodLiteral<"query">;
|
|
517
|
+
name: z.ZodString;
|
|
518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
519
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
520
|
+
path: z.ZodArray<z.ZodString>;
|
|
521
|
+
}, z.core.$strip>], "type">;
|
|
522
|
+
value: z.ZodString;
|
|
523
|
+
}, z.core.$strip>], "type">;
|
|
524
|
+
response: z.ZodObject<{
|
|
525
|
+
type: z.ZodLiteral<"echoText">;
|
|
526
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
527
|
+
type: z.ZodLiteral<"header">;
|
|
528
|
+
name: z.ZodString;
|
|
529
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
530
|
+
type: z.ZodLiteral<"query">;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
534
|
+
path: z.ZodArray<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>], "type">;
|
|
536
|
+
}, z.core.$strip>;
|
|
537
|
+
}, z.core.$strip>], "type">;
|
|
538
|
+
deliveryIdentity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
539
|
+
type: z.ZodLiteral<"header">;
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
+
type: z.ZodLiteral<"query">;
|
|
543
|
+
name: z.ZodString;
|
|
544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
545
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
546
|
+
path: z.ZodArray<z.ZodString>;
|
|
547
|
+
}, z.core.$strip>], "type">;
|
|
548
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
549
|
+
type: z.ZodLiteral<"none">;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
type: z.ZodLiteral<"bearer">;
|
|
552
|
+
token: z.ZodString;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"apiKey">;
|
|
555
|
+
location: z.ZodEnum<{
|
|
556
|
+
header: "header";
|
|
557
|
+
query: "query";
|
|
558
|
+
}>;
|
|
559
|
+
name: z.ZodString;
|
|
560
|
+
secret: z.ZodString;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
type: z.ZodLiteral<"basic">;
|
|
563
|
+
username: z.ZodString;
|
|
564
|
+
password: z.ZodString;
|
|
565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
566
|
+
type: z.ZodLiteral<"hmac">;
|
|
567
|
+
secret: z.ZodString;
|
|
568
|
+
algorithm: z.ZodEnum<{
|
|
569
|
+
sha1: "sha1";
|
|
570
|
+
sha256: "sha256";
|
|
571
|
+
sha512: "sha512";
|
|
572
|
+
}>;
|
|
573
|
+
signature: z.ZodObject<{
|
|
574
|
+
location: z.ZodEnum<{
|
|
575
|
+
header: "header";
|
|
576
|
+
query: "query";
|
|
577
|
+
}>;
|
|
578
|
+
name: z.ZodString;
|
|
579
|
+
encoding: z.ZodEnum<{
|
|
580
|
+
hex: "hex";
|
|
581
|
+
base64: "base64";
|
|
582
|
+
base64url: "base64url";
|
|
583
|
+
}>;
|
|
584
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>;
|
|
586
|
+
signedPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
587
|
+
type: z.ZodLiteral<"rawBody">;
|
|
588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
589
|
+
type: z.ZodLiteral<"timestampedBody">;
|
|
590
|
+
prefix: z.ZodString;
|
|
591
|
+
timestampHeader: z.ZodString;
|
|
592
|
+
delimiter: z.ZodString;
|
|
593
|
+
toleranceSeconds: z.ZodNumber;
|
|
594
|
+
}, z.core.$strip>], "type">;
|
|
595
|
+
}, z.core.$strip>], "type">;
|
|
596
|
+
}, z.core.$strip>;
|
|
597
|
+
declare const updateWebhookEndpointInputSchema: z.ZodObject<{
|
|
598
|
+
name: z.ZodOptional<z.ZodString>;
|
|
599
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
draft: "draft";
|
|
601
|
+
active: "active";
|
|
602
|
+
disabled: "disabled";
|
|
603
|
+
}>>;
|
|
604
|
+
verification: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
605
|
+
type: z.ZodLiteral<"none">;
|
|
606
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
607
|
+
type: z.ZodLiteral<"challenge">;
|
|
608
|
+
method: z.ZodEnum<{
|
|
609
|
+
GET: "GET";
|
|
610
|
+
POST: "POST";
|
|
611
|
+
}>;
|
|
612
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
613
|
+
type: z.ZodLiteral<"present">;
|
|
614
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
615
|
+
type: z.ZodLiteral<"header">;
|
|
616
|
+
name: z.ZodString;
|
|
617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
618
|
+
type: z.ZodLiteral<"query">;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
621
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
622
|
+
path: z.ZodArray<z.ZodString>;
|
|
623
|
+
}, z.core.$strip>], "type">;
|
|
624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
625
|
+
type: z.ZodLiteral<"equals">;
|
|
626
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
627
|
+
type: z.ZodLiteral<"header">;
|
|
628
|
+
name: z.ZodString;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
type: z.ZodLiteral<"query">;
|
|
631
|
+
name: z.ZodString;
|
|
632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
634
|
+
path: z.ZodArray<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>], "type">;
|
|
636
|
+
value: z.ZodString;
|
|
637
|
+
}, z.core.$strip>], "type">;
|
|
638
|
+
response: z.ZodObject<{
|
|
639
|
+
type: z.ZodLiteral<"echoText">;
|
|
640
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
641
|
+
type: z.ZodLiteral<"header">;
|
|
642
|
+
name: z.ZodString;
|
|
643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
644
|
+
type: z.ZodLiteral<"query">;
|
|
645
|
+
name: z.ZodString;
|
|
646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
648
|
+
path: z.ZodArray<z.ZodString>;
|
|
649
|
+
}, z.core.$strip>], "type">;
|
|
650
|
+
}, z.core.$strip>;
|
|
651
|
+
}, z.core.$strip>], "type">>;
|
|
652
|
+
deliveryIdentity: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
653
|
+
type: z.ZodLiteral<"header">;
|
|
654
|
+
name: z.ZodString;
|
|
655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
656
|
+
type: z.ZodLiteral<"query">;
|
|
657
|
+
name: z.ZodString;
|
|
658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
+
type: z.ZodLiteral<"jsonBodyPath">;
|
|
660
|
+
path: z.ZodArray<z.ZodString>;
|
|
661
|
+
}, z.core.$strip>], "type">>;
|
|
662
|
+
auth: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"none">;
|
|
664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
+
type: z.ZodLiteral<"bearer">;
|
|
666
|
+
token: z.ZodString;
|
|
667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
+
type: z.ZodLiteral<"apiKey">;
|
|
669
|
+
location: z.ZodEnum<{
|
|
670
|
+
header: "header";
|
|
671
|
+
query: "query";
|
|
672
|
+
}>;
|
|
673
|
+
name: z.ZodString;
|
|
674
|
+
secret: z.ZodString;
|
|
675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
|
+
type: z.ZodLiteral<"basic">;
|
|
677
|
+
username: z.ZodString;
|
|
678
|
+
password: z.ZodString;
|
|
679
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
680
|
+
type: z.ZodLiteral<"hmac">;
|
|
681
|
+
secret: z.ZodString;
|
|
682
|
+
algorithm: z.ZodEnum<{
|
|
683
|
+
sha1: "sha1";
|
|
684
|
+
sha256: "sha256";
|
|
685
|
+
sha512: "sha512";
|
|
686
|
+
}>;
|
|
687
|
+
signature: z.ZodObject<{
|
|
688
|
+
location: z.ZodEnum<{
|
|
689
|
+
header: "header";
|
|
690
|
+
query: "query";
|
|
691
|
+
}>;
|
|
692
|
+
name: z.ZodString;
|
|
693
|
+
encoding: z.ZodEnum<{
|
|
694
|
+
hex: "hex";
|
|
695
|
+
base64: "base64";
|
|
696
|
+
base64url: "base64url";
|
|
697
|
+
}>;
|
|
698
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
699
|
+
}, z.core.$strip>;
|
|
700
|
+
signedPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
701
|
+
type: z.ZodLiteral<"rawBody">;
|
|
702
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
703
|
+
type: z.ZodLiteral<"timestampedBody">;
|
|
704
|
+
prefix: z.ZodString;
|
|
705
|
+
timestampHeader: z.ZodString;
|
|
706
|
+
delimiter: z.ZodString;
|
|
707
|
+
toleranceSeconds: z.ZodNumber;
|
|
708
|
+
}, z.core.$strip>], "type">;
|
|
709
|
+
}, z.core.$strip>], "type">>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
type AuthConfig = z.infer<typeof authConfigSchema>;
|
|
712
|
+
type ApiConnectionInput = z.infer<typeof createApiConnectionInputSchema>;
|
|
713
|
+
type ApiConnection = z.infer<typeof apiConnectionOutputSchema>;
|
|
714
|
+
type ApiConnectionsPage = z.infer<typeof apiConnectionsPageSchema>;
|
|
715
|
+
type ApiAuthStatus = z.infer<typeof apiAuthStatusSchema>;
|
|
716
|
+
type ApiOAuthPending = z.infer<typeof apiOAuthPendingSchema>;
|
|
717
|
+
type ApiRequestBody = z.infer<typeof apiRequestBodySchema>;
|
|
718
|
+
type ApiRequestInput = z.infer<typeof apiRequestInputSchema>;
|
|
719
|
+
type ApiResponseBody = z.infer<typeof apiResponseBodySchema>;
|
|
720
|
+
type ApiHttpResponse = z.infer<typeof apiHttpResponseSchema>;
|
|
721
|
+
type ApiRequestOutput = z.infer<typeof apiRequestOutputSchema>;
|
|
722
|
+
type WebhookDeliveryIdentity = z.infer<typeof webhookDeliveryIdentitySchema>;
|
|
723
|
+
type WebhookEndpointAuthInput = z.infer<typeof webhookEndpointAuthInputSchema>;
|
|
724
|
+
type WebhookEndpointInput = z.infer<typeof createWebhookEndpointInputSchema>;
|
|
725
|
+
type UpdateWebhookEndpointInput = z.infer<typeof updateWebhookEndpointInputSchema>;
|
|
726
|
+
type WebhookEndpoint = z.infer<typeof webhookEndpointOutputSchema>;
|
|
727
|
+
type WebhookRejectionCode = z.infer<typeof webhookRejectionCodeSchema>;
|
|
728
|
+
type WebhookDeliveryEvidence = z.infer<typeof webhookDeliveryEvidenceSchema>;
|
|
729
|
+
//#endregion
|
|
730
|
+
export { API_OAUTH_REDIRECT_URI_QUERY_PARAMETER, ApiAuthStatus, ApiConnection, ApiConnectionInput, ApiConnectionsPage, ApiFragmentConfig, ApiHttpResponse, ApiOAuthPending, ApiRequestBody, ApiRequestInput, ApiRequestOutput, ApiResponseBody, AuthConfig, UpdateWebhookEndpointInput, WebhookDeliveryEvidence, WebhookDeliveryIdentity, WebhookEndpoint, WebhookEndpointAuthInput, WebhookEndpointInput, WebhookRejectionCode, apiAuthStatusSchema, apiConnectionOutputSchema, apiConnectionSlugSchema, apiConnectionsPageSchema, apiHttpResponseSchema, apiOAuthPendingSchema, apiRequestBodySchema, apiRequestInputSchema, apiRequestOutputSchema, apiResponseBodySchema, authConfigSchema, createApiConnectionInputSchema, createWebhookEndpointInputSchema, oauthRedirectUriSchema, oauthStartInputSchema, tokenAuthInputSchema, updateWebhookEndpointInputSchema, webhookDeliveryEvidenceSchema, webhookDeliveryIdentitySchema, webhookEndpointAuthInputSchema, webhookEndpointOutputSchema, webhookEndpointStatusSchema, webhookRejectionCodeSchema };
|
|
731
|
+
//# sourceMappingURL=api-types.d.ts.map
|