@papierapi/sdk 0.1.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/LICENSE +21 -0
- package/README.md +450 -0
- package/dist/chunk-JDUUPLUG.js +984 -0
- package/dist/chunk-JDUUPLUG.js.map +7 -0
- package/dist/client.d.ts +469 -0
- package/dist/errors.d.ts +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +343 -0
- package/dist/index.js.map +7 -0
- package/dist/internal/contracts/common.d.ts +108 -0
- package/dist/internal/contracts/dispatch.d.ts +979 -0
- package/dist/internal/contracts/fax.d.ts +49 -0
- package/dist/internal/contracts/index.d.ts +7 -0
- package/dist/internal/contracts/letter.d.ts +292 -0
- package/dist/internal/contracts/mcp.d.ts +395 -0
- package/dist/internal/contracts/platform.d.ts +424 -0
- package/dist/internal/contracts/rest.d.ts +1656 -0
- package/dist/operations.d.ts +1563 -0
- package/dist/operations.js +7 -0
- package/dist/operations.js.map +7 -0
- package/examples/get-dispatch.ts +13 -0
- package/package.json +68 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SenderProfilePayloadSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
company: z.ZodOptional<z.ZodString>;
|
|
5
|
+
street: z.ZodString;
|
|
6
|
+
house_number: z.ZodString;
|
|
7
|
+
postal_code: z.ZodString;
|
|
8
|
+
city: z.ZodString;
|
|
9
|
+
country: z.ZodLiteral<"DE">;
|
|
10
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export type SenderProfilePayload = z.infer<typeof SenderProfilePayloadSchema>;
|
|
13
|
+
export declare const SenderProfileUsageSchema: z.ZodEnum<{
|
|
14
|
+
saved: "saved";
|
|
15
|
+
one_off: "one_off";
|
|
16
|
+
}>;
|
|
17
|
+
export type SenderProfileUsage = z.infer<typeof SenderProfileUsageSchema>;
|
|
18
|
+
export declare const CreateSenderProfileSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
sender: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
company: z.ZodOptional<z.ZodString>;
|
|
23
|
+
street: z.ZodString;
|
|
24
|
+
house_number: z.ZodString;
|
|
25
|
+
postal_code: z.ZodString;
|
|
26
|
+
city: z.ZodString;
|
|
27
|
+
country: z.ZodLiteral<"DE">;
|
|
28
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
attest_authorized: z.ZodLiteral<true>;
|
|
31
|
+
usage: z.ZodDefault<z.ZodEnum<{
|
|
32
|
+
saved: "saved";
|
|
33
|
+
one_off: "one_off";
|
|
34
|
+
}>>;
|
|
35
|
+
make_default: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type CreateSenderProfile = z.infer<typeof CreateSenderProfileSchema>;
|
|
38
|
+
export declare const UpdateSenderProfileSchema: z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
sender: z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
company: z.ZodOptional<z.ZodString>;
|
|
43
|
+
street: z.ZodString;
|
|
44
|
+
house_number: z.ZodString;
|
|
45
|
+
postal_code: z.ZodString;
|
|
46
|
+
city: z.ZodString;
|
|
47
|
+
country: z.ZodLiteral<"DE">;
|
|
48
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
attest_authorized: z.ZodLiteral<true>;
|
|
51
|
+
make_default: z.ZodDefault<z.ZodBoolean>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
export type UpdateSenderProfile = z.infer<typeof UpdateSenderProfileSchema>;
|
|
54
|
+
export declare const SenderProfileSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
status: z.ZodLiteral<"verified">;
|
|
58
|
+
usage: z.ZodEnum<{
|
|
59
|
+
saved: "saved";
|
|
60
|
+
one_off: "one_off";
|
|
61
|
+
}>;
|
|
62
|
+
is_default: z.ZodBoolean;
|
|
63
|
+
supersedes_sender_profile_id: z.ZodNullable<z.ZodString>;
|
|
64
|
+
verified_at: z.ZodISODateTime;
|
|
65
|
+
archived_at: z.ZodNullable<z.ZodISODateTime>;
|
|
66
|
+
created_at: z.ZodISODateTime;
|
|
67
|
+
updated_at: z.ZodISODateTime;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type SenderProfile = z.infer<typeof SenderProfileSchema>;
|
|
70
|
+
export declare const SenderProfileVerificationStateSchema: z.ZodEnum<{
|
|
71
|
+
verified: "verified";
|
|
72
|
+
pending: "pending";
|
|
73
|
+
rejected: "rejected";
|
|
74
|
+
}>;
|
|
75
|
+
export declare const SenderProfileVerificationSchema: z.ZodObject<{
|
|
76
|
+
state: z.ZodEnum<{
|
|
77
|
+
verified: "verified";
|
|
78
|
+
pending: "pending";
|
|
79
|
+
rejected: "rejected";
|
|
80
|
+
}>;
|
|
81
|
+
verified_at: z.ZodNullable<z.ZodISODateTime>;
|
|
82
|
+
expires_at: z.ZodNullable<z.ZodISODateTime>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
export type SenderProfileVerification = z.infer<typeof SenderProfileVerificationSchema>;
|
|
85
|
+
export declare const ManagedSenderProfileSchema: z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
status: z.ZodLiteral<"verified">;
|
|
89
|
+
usage: z.ZodEnum<{
|
|
90
|
+
saved: "saved";
|
|
91
|
+
one_off: "one_off";
|
|
92
|
+
}>;
|
|
93
|
+
is_default: z.ZodBoolean;
|
|
94
|
+
supersedes_sender_profile_id: z.ZodNullable<z.ZodString>;
|
|
95
|
+
verified_at: z.ZodISODateTime;
|
|
96
|
+
archived_at: z.ZodNullable<z.ZodISODateTime>;
|
|
97
|
+
created_at: z.ZodISODateTime;
|
|
98
|
+
updated_at: z.ZodISODateTime;
|
|
99
|
+
verification: z.ZodObject<{
|
|
100
|
+
state: z.ZodEnum<{
|
|
101
|
+
verified: "verified";
|
|
102
|
+
pending: "pending";
|
|
103
|
+
rejected: "rejected";
|
|
104
|
+
}>;
|
|
105
|
+
verified_at: z.ZodNullable<z.ZodISODateTime>;
|
|
106
|
+
expires_at: z.ZodNullable<z.ZodISODateTime>;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
is_selectable: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export type ManagedSenderProfile = z.infer<typeof ManagedSenderProfileSchema>;
|
|
111
|
+
export declare const SelectableSenderProfileSchema: z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
status: z.ZodLiteral<"verified">;
|
|
115
|
+
usage: z.ZodEnum<{
|
|
116
|
+
saved: "saved";
|
|
117
|
+
one_off: "one_off";
|
|
118
|
+
}>;
|
|
119
|
+
is_default: z.ZodBoolean;
|
|
120
|
+
supersedes_sender_profile_id: z.ZodNullable<z.ZodString>;
|
|
121
|
+
verified_at: z.ZodISODateTime;
|
|
122
|
+
archived_at: z.ZodNullable<z.ZodISODateTime>;
|
|
123
|
+
created_at: z.ZodISODateTime;
|
|
124
|
+
updated_at: z.ZodISODateTime;
|
|
125
|
+
verification: z.ZodObject<{
|
|
126
|
+
verified_at: z.ZodNullable<z.ZodISODateTime>;
|
|
127
|
+
expires_at: z.ZodNullable<z.ZodISODateTime>;
|
|
128
|
+
state: z.ZodLiteral<"verified">;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
is_selectable: z.ZodLiteral<true>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export type SelectableSenderProfile = z.infer<typeof SelectableSenderProfileSchema>;
|
|
133
|
+
export declare const EditableSenderProfileSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
status: z.ZodLiteral<"verified">;
|
|
137
|
+
usage: z.ZodEnum<{
|
|
138
|
+
saved: "saved";
|
|
139
|
+
one_off: "one_off";
|
|
140
|
+
}>;
|
|
141
|
+
is_default: z.ZodBoolean;
|
|
142
|
+
supersedes_sender_profile_id: z.ZodNullable<z.ZodString>;
|
|
143
|
+
verified_at: z.ZodISODateTime;
|
|
144
|
+
archived_at: z.ZodNullable<z.ZodISODateTime>;
|
|
145
|
+
created_at: z.ZodISODateTime;
|
|
146
|
+
updated_at: z.ZodISODateTime;
|
|
147
|
+
verification: z.ZodObject<{
|
|
148
|
+
state: z.ZodEnum<{
|
|
149
|
+
verified: "verified";
|
|
150
|
+
pending: "pending";
|
|
151
|
+
rejected: "rejected";
|
|
152
|
+
}>;
|
|
153
|
+
verified_at: z.ZodNullable<z.ZodISODateTime>;
|
|
154
|
+
expires_at: z.ZodNullable<z.ZodISODateTime>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
is_selectable: z.ZodBoolean;
|
|
157
|
+
sender: z.ZodObject<{
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
company: z.ZodOptional<z.ZodString>;
|
|
160
|
+
street: z.ZodString;
|
|
161
|
+
house_number: z.ZodString;
|
|
162
|
+
postal_code: z.ZodString;
|
|
163
|
+
city: z.ZodString;
|
|
164
|
+
country: z.ZodLiteral<"DE">;
|
|
165
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
export type EditableSenderProfile = z.infer<typeof EditableSenderProfileSchema>;
|
|
169
|
+
export declare const OnboardingAccountTypeSchema: z.ZodEnum<{
|
|
170
|
+
personal: "personal";
|
|
171
|
+
organization: "organization";
|
|
172
|
+
}>;
|
|
173
|
+
export type OnboardingAccountType = z.infer<typeof OnboardingAccountTypeSchema>;
|
|
174
|
+
export declare const CompleteOnboardingSchema: z.ZodObject<{
|
|
175
|
+
account_type: z.ZodEnum<{
|
|
176
|
+
personal: "personal";
|
|
177
|
+
organization: "organization";
|
|
178
|
+
}>;
|
|
179
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
sender_profile: z.ZodObject<{
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
sender: z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
company: z.ZodOptional<z.ZodString>;
|
|
187
|
+
street: z.ZodString;
|
|
188
|
+
house_number: z.ZodString;
|
|
189
|
+
postal_code: z.ZodString;
|
|
190
|
+
city: z.ZodString;
|
|
191
|
+
country: z.ZodLiteral<"DE">;
|
|
192
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
attest_authorized: z.ZodLiteral<true>;
|
|
195
|
+
usage: z.ZodDefault<z.ZodEnum<{
|
|
196
|
+
saved: "saved";
|
|
197
|
+
one_off: "one_off";
|
|
198
|
+
}>>;
|
|
199
|
+
make_default: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
export declare const GuestOnboardingSchema: z.ZodObject<{
|
|
203
|
+
email: z.ZodEmail;
|
|
204
|
+
onboarding: z.ZodObject<{
|
|
205
|
+
account_type: z.ZodEnum<{
|
|
206
|
+
personal: "personal";
|
|
207
|
+
organization: "organization";
|
|
208
|
+
}>;
|
|
209
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
sender_profile: z.ZodObject<{
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
sender: z.ZodObject<{
|
|
215
|
+
name: z.ZodString;
|
|
216
|
+
company: z.ZodOptional<z.ZodString>;
|
|
217
|
+
street: z.ZodString;
|
|
218
|
+
house_number: z.ZodString;
|
|
219
|
+
postal_code: z.ZodString;
|
|
220
|
+
city: z.ZodString;
|
|
221
|
+
country: z.ZodLiteral<"DE">;
|
|
222
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
attest_authorized: z.ZodLiteral<true>;
|
|
225
|
+
usage: z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
saved: "saved";
|
|
227
|
+
one_off: "one_off";
|
|
228
|
+
}>>;
|
|
229
|
+
make_default: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
+
}, z.core.$strict>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
export type GuestOnboarding = z.infer<typeof GuestOnboardingSchema>;
|
|
234
|
+
export declare const CompleteOnboardingResultSchema: z.ZodObject<{
|
|
235
|
+
organization: z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
account_type: z.ZodEnum<{
|
|
238
|
+
personal: "personal";
|
|
239
|
+
organization: "organization";
|
|
240
|
+
}>;
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
plan: z.ZodEnum<{
|
|
243
|
+
developer: "developer";
|
|
244
|
+
growth: "growth";
|
|
245
|
+
enterprise: "enterprise";
|
|
246
|
+
}>;
|
|
247
|
+
status: z.ZodEnum<{
|
|
248
|
+
active: "active";
|
|
249
|
+
suspended: "suspended";
|
|
250
|
+
closed: "closed";
|
|
251
|
+
}>;
|
|
252
|
+
created_at: z.ZodISODateTime;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
membership: z.ZodObject<{
|
|
255
|
+
role: z.ZodLiteral<"owner">;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
sender_profile: z.ZodObject<{
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
name: z.ZodString;
|
|
260
|
+
status: z.ZodLiteral<"verified">;
|
|
261
|
+
verified_at: z.ZodISODateTime;
|
|
262
|
+
created_at: z.ZodISODateTime;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
export type CompleteOnboardingResult = z.infer<typeof CompleteOnboardingResultSchema>;
|
|
266
|
+
export declare const ApiKeyScopeSchema: z.ZodEnum<{
|
|
267
|
+
"documents:write": "documents:write";
|
|
268
|
+
"drafts:write": "drafts:write";
|
|
269
|
+
"drafts:read": "drafts:read";
|
|
270
|
+
"approvals:write": "approvals:write";
|
|
271
|
+
"dispatches:write": "dispatches:write";
|
|
272
|
+
"dispatches:read": "dispatches:read";
|
|
273
|
+
"wallet:read": "wallet:read";
|
|
274
|
+
"wallet:write": "wallet:write";
|
|
275
|
+
"webhooks:write": "webhooks:write";
|
|
276
|
+
}>;
|
|
277
|
+
export type ApiKeyScope = z.infer<typeof ApiKeyScopeSchema>;
|
|
278
|
+
export declare const CreateApiKeySchema: z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
281
|
+
"documents:write": "documents:write";
|
|
282
|
+
"drafts:write": "drafts:write";
|
|
283
|
+
"drafts:read": "drafts:read";
|
|
284
|
+
"approvals:write": "approvals:write";
|
|
285
|
+
"dispatches:write": "dispatches:write";
|
|
286
|
+
"dispatches:read": "dispatches:read";
|
|
287
|
+
"wallet:read": "wallet:read";
|
|
288
|
+
"wallet:write": "wallet:write";
|
|
289
|
+
"webhooks:write": "webhooks:write";
|
|
290
|
+
}>>;
|
|
291
|
+
expires_at: z.ZodOptional<z.ZodISODateTime>;
|
|
292
|
+
}, z.core.$strict>;
|
|
293
|
+
export declare const CreateApprovalRequestSchema: z.ZodObject<{
|
|
294
|
+
quote_id: z.ZodString;
|
|
295
|
+
expires_in_seconds: z.ZodDefault<z.ZodInt>;
|
|
296
|
+
}, z.core.$strict>;
|
|
297
|
+
export declare const CURRENT_TERMS_VERSION: "2026-07-18";
|
|
298
|
+
export declare const CURRENT_WITHDRAWAL_NOTICE_VERSION: "2026-07-18";
|
|
299
|
+
export declare const ImmediatePerformanceConsentSchema: z.ZodObject<{
|
|
300
|
+
requested_immediate_performance: z.ZodLiteral<true>;
|
|
301
|
+
acknowledged_withdrawal_expiry_on_full_performance: z.ZodLiteral<true>;
|
|
302
|
+
terms_version: z.ZodLiteral<"2026-07-18">;
|
|
303
|
+
withdrawal_notice_version: z.ZodLiteral<"2026-07-18">;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
export type ImmediatePerformanceConsent = z.infer<typeof ImmediatePerformanceConsentSchema>;
|
|
306
|
+
export declare const DecideApprovalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
307
|
+
decision: z.ZodLiteral<"approve">;
|
|
308
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
309
|
+
immediate_performance_consent: z.ZodObject<{
|
|
310
|
+
requested_immediate_performance: z.ZodLiteral<true>;
|
|
311
|
+
acknowledged_withdrawal_expiry_on_full_performance: z.ZodLiteral<true>;
|
|
312
|
+
terms_version: z.ZodLiteral<"2026-07-18">;
|
|
313
|
+
withdrawal_notice_version: z.ZodLiteral<"2026-07-18">;
|
|
314
|
+
}, z.core.$strict>;
|
|
315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
316
|
+
decision: z.ZodLiteral<"reject">;
|
|
317
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>], "decision">;
|
|
319
|
+
export declare const ApprovalReferenceSchema: z.ZodObject<{
|
|
320
|
+
approval_request_id: z.ZodString;
|
|
321
|
+
approval_id: z.ZodOptional<z.ZodString>;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
export declare const CreateTopUpSessionSchema: z.ZodObject<{
|
|
324
|
+
amount_cents: z.ZodInt;
|
|
325
|
+
success_url: z.ZodURL;
|
|
326
|
+
cancel_url: z.ZodURL;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
export declare const CreateDirectPaymentSessionSchema: z.ZodObject<{
|
|
329
|
+
quote_id: z.ZodString;
|
|
330
|
+
approval_id: z.ZodString;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
export declare const DirectPaymentStatusSchema: z.ZodEnum<{
|
|
333
|
+
pending: "pending";
|
|
334
|
+
checkout_open: "checkout_open";
|
|
335
|
+
dispatch_created: "dispatch_created";
|
|
336
|
+
expired: "expired";
|
|
337
|
+
payment_failed: "payment_failed";
|
|
338
|
+
refund_required: "refund_required";
|
|
339
|
+
refunded: "refunded";
|
|
340
|
+
}>;
|
|
341
|
+
export declare const DirectPaymentSchema: z.ZodObject<{
|
|
342
|
+
id: z.ZodString;
|
|
343
|
+
status: z.ZodEnum<{
|
|
344
|
+
pending: "pending";
|
|
345
|
+
checkout_open: "checkout_open";
|
|
346
|
+
dispatch_created: "dispatch_created";
|
|
347
|
+
expired: "expired";
|
|
348
|
+
payment_failed: "payment_failed";
|
|
349
|
+
refund_required: "refund_required";
|
|
350
|
+
refunded: "refunded";
|
|
351
|
+
}>;
|
|
352
|
+
amount_cents: z.ZodInt;
|
|
353
|
+
currency: z.ZodLiteral<"EUR">;
|
|
354
|
+
expires_at: z.ZodNullable<z.ZodISODateTime>;
|
|
355
|
+
checkout_url: z.ZodNullable<z.ZodURL>;
|
|
356
|
+
dispatch_id: z.ZodNullable<z.ZodString>;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
export type DirectPayment = z.infer<typeof DirectPaymentSchema>;
|
|
359
|
+
export declare const ApprovalPaymentOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
360
|
+
state: z.ZodLiteral<"none">;
|
|
361
|
+
approval_id: z.ZodString;
|
|
362
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
363
|
+
state: z.ZodLiteral<"wallet_dispatch">;
|
|
364
|
+
approval_id: z.ZodString;
|
|
365
|
+
dispatch_id: z.ZodString;
|
|
366
|
+
dispatch_status: z.ZodString;
|
|
367
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
368
|
+
state: z.ZodLiteral<"direct_payment">;
|
|
369
|
+
approval_id: z.ZodString;
|
|
370
|
+
direct_payment_id: z.ZodString;
|
|
371
|
+
direct_payment_status: z.ZodEnum<{
|
|
372
|
+
pending: "pending";
|
|
373
|
+
checkout_open: "checkout_open";
|
|
374
|
+
dispatch_created: "dispatch_created";
|
|
375
|
+
expired: "expired";
|
|
376
|
+
payment_failed: "payment_failed";
|
|
377
|
+
refund_required: "refund_required";
|
|
378
|
+
refunded: "refunded";
|
|
379
|
+
}>;
|
|
380
|
+
dispatch_id: z.ZodNullable<z.ZodString>;
|
|
381
|
+
}, z.core.$strict>], "state">;
|
|
382
|
+
export type ApprovalPaymentOutcome = z.infer<typeof ApprovalPaymentOutcomeSchema>;
|
|
383
|
+
export declare const CreateOrganizationSchema: z.ZodObject<{
|
|
384
|
+
id: z.ZodOptional<z.ZodString>;
|
|
385
|
+
name: z.ZodString;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
export declare const WebhookEventSchema: z.ZodEnum<{
|
|
388
|
+
"dispatch.*": "dispatch.*";
|
|
389
|
+
"dispatch.funds_reserved": "dispatch.funds_reserved";
|
|
390
|
+
"dispatch.scheduled": "dispatch.scheduled";
|
|
391
|
+
"dispatch.submitting": "dispatch.submitting";
|
|
392
|
+
"dispatch.provider_accepted": "dispatch.provider_accepted";
|
|
393
|
+
"dispatch.producing": "dispatch.producing";
|
|
394
|
+
"dispatch.sending": "dispatch.sending";
|
|
395
|
+
"dispatch.handed_to_carrier": "dispatch.handed_to_carrier";
|
|
396
|
+
"dispatch.delivered": "dispatch.delivered";
|
|
397
|
+
"dispatch.failed": "dispatch.failed";
|
|
398
|
+
"dispatch.returned": "dispatch.returned";
|
|
399
|
+
"dispatch.cancelled": "dispatch.cancelled";
|
|
400
|
+
}>;
|
|
401
|
+
export type WebhookEvent = z.infer<typeof WebhookEventSchema>;
|
|
402
|
+
export declare const CreateWebhookEndpointSchema: z.ZodObject<{
|
|
403
|
+
url: z.ZodURL;
|
|
404
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
405
|
+
"dispatch.*": "dispatch.*";
|
|
406
|
+
"dispatch.funds_reserved": "dispatch.funds_reserved";
|
|
407
|
+
"dispatch.scheduled": "dispatch.scheduled";
|
|
408
|
+
"dispatch.submitting": "dispatch.submitting";
|
|
409
|
+
"dispatch.provider_accepted": "dispatch.provider_accepted";
|
|
410
|
+
"dispatch.producing": "dispatch.producing";
|
|
411
|
+
"dispatch.sending": "dispatch.sending";
|
|
412
|
+
"dispatch.handed_to_carrier": "dispatch.handed_to_carrier";
|
|
413
|
+
"dispatch.delivered": "dispatch.delivered";
|
|
414
|
+
"dispatch.failed": "dispatch.failed";
|
|
415
|
+
"dispatch.returned": "dispatch.returned";
|
|
416
|
+
"dispatch.cancelled": "dispatch.cancelled";
|
|
417
|
+
}>>;
|
|
418
|
+
}, z.core.$strict>;
|
|
419
|
+
export declare const McpSendDispatchSchema: z.ZodObject<{
|
|
420
|
+
draft_id: z.ZodString;
|
|
421
|
+
quote_id: z.ZodString;
|
|
422
|
+
approval_id: z.ZodString;
|
|
423
|
+
idempotency_key: z.ZodString;
|
|
424
|
+
}, z.core.$strict>;
|