@nuanu-ai/agentify-contracts 0.3.2

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.
@@ -0,0 +1,1008 @@
1
+ /**
2
+ * Agentify contracts — the single source of truth for the card, the order, the
3
+ * price check, the receipt and everything else that crosses the boundary
4
+ * between us, a merchant and an agent. Everything that goes outside or arrives
5
+ * from outside is described here by a zod schema; consumers get their types by
6
+ * inference from the schema instead of writing them by hand (ADR-0003 §5).
7
+ *
8
+ * This package owns the wire vocabulary: the field names, the values an agent
9
+ * or a merchant can see, the refusal codes, the event names. What the gateway
10
+ * calls things inside itself is its own business, and the two are tied
11
+ * together where they meet rather than by one importing the other.
12
+ *
13
+ * Two shapes here are read by nobody outside our own two parts, and they are
14
+ * described anyway. The worker envelope carries orders, price questions and
15
+ * events on one stream (ADR-0004 §2), and the merchant never sees it, because
16
+ * the SDK hands a handler an order rather than the wrapper it arrived in. The
17
+ * route table says which calls exist, at which addresses, with which document
18
+ * going each way. Both are formats between the gateway and the SDK, read by
19
+ * both and owned by neither — which is the same reason a card lives here, and
20
+ * the reason a shape agreed in two places is a shape that has already
21
+ * disagreed once.
22
+ */
23
+ import { z } from "zod";
24
+ export type { AgentOrderStatus, AuthMode, CatalogPage, ErrorCode, ErrorEnvelope, HttpMethod, MerchantCardList, OrderAcceptResponse, OrderCallResponse, OrderList, OrderListQuery, OrderWithStatus, PurchaseRequest, QuoteAnswerAck, ReceiptList, RouteDefinition, RouteName, RouteResponse, WorkerPollRequest, WorkerPollResponse, } from "./api.js";
25
+ export { AgentOrderStatusSchema, API_ROUTES, AUTH_MODES, CatalogPageSchema, ERROR_CODES, ErrorEnvelopeSchema, expandPath, HTTP_METHODS, MERCHANT_KEY_HEADER, MerchantCardListSchema, merchantKeyFrom, merchantKeyHeaderValue, mountableRoutes, OrderAcceptResponseSchema, OrderCallResponseSchema, OrderListQuerySchema, OrderListSchema, OrderWithStatusSchema, PurchaseRequestSchema, pathParamsOf, QuoteAnswerAckSchema, ReceiptListSchema, WorkerPollRequestSchema, WorkerPollResponseSchema, } from "./api.js";
26
+ export type { BazaarDeclaration, Card, CardInput, Fulfillment, MerchantCard, PriceCheck, PublicCard, } from "./card.js";
27
+ export { bazaarDeclarationOf, CardSchema, deliveryCheckFor, FulfillmentSchema, MerchantCardSchema, PriceCheckSchema, PublicCardSchema, publicCardOf, purchaseCheckFor, ServiceNameSchema, TagsSchema, } from "./card.js";
28
+ export type { WorkerEnvelope, WorkerEnvelopeKind } from "./envelope.js";
29
+ export { WORKER_ENVELOPE_KINDS, WORKER_ENVELOPE_PAYLOADS, WorkerEnvelopeSchema, } from "./envelope.js";
30
+ export type { OrderEvent, RefundDueReason } from "./events.js";
31
+ export { ORDER_EVENT_TYPES, OrderEventSchema, RefundDueReasonSchema } from "./events.js";
32
+ export type { EvmAddress } from "./evm-address.js";
33
+ export { checksummedAddressOf, EvmAddressSchema } from "./evm-address.js";
34
+ export type { Acceptance, Delivery, HandlerAnswer, Refusal, RefusalCode } from "./handler.js";
35
+ export { AcceptanceSchema, DeliverySchema, HandlerAnswerSchema, RECOMMENDED_REFUSAL_CODES, RefusalCodeSchema, RefusalSchema, } from "./handler.js";
36
+ export type { CabinetKey, DisabledKey, ForgottenCabinetKey, IssuedKey, IssueKeyRequest, MerchantKey, MerchantKeyList, PayoutWallet, PayoutWalletRequest, RegisteredMerchant, RegistrationRequest, SellerName, SellerNameRequest, } from "./merchant.js";
37
+ export { CabinetKeySchema, DisabledKeySchema, ForgottenCabinetKeySchema, IssuedKeySchema, IssueKeyRequestSchema, MerchantKeyListSchema, MerchantKeySchema, PayoutWalletRequestSchema, PayoutWalletSchema, RegisteredMerchantSchema, RegistrationRequestSchema, SellerNameRequestSchema, SellerNameSchema, } from "./merchant.js";
38
+ export type { Order } from "./order.js";
39
+ export { OrderSchema } from "./order.js";
40
+ export type { OrderStatus } from "./order-status.js";
41
+ export { ORDER_STATUSES, OrderStatusSchema } from "./order-status.js";
42
+ export type { FieldSpec, FieldSpecInput, ParamSpec, ParamSpecDirection, ParamSpecInput, ParamType, } from "./param-spec.js";
43
+ export { FieldSpecSchema, ParamNameSchema, ParamSpecSchema, ParamTypeSchema, PROTOTYPE_KEY_IS_DROPPED, paramSpecToValidator, } from "./param-spec.js";
44
+ export type { Amount, CurrencyCode, Identifier, Money, SalePrice, Timestamp, } from "./primitives.js";
45
+ export { AmountSchema, CurrencyCodeSchema, IdentifierSchema, MoneySchema, SalePriceSchema, TimestampSchema, } from "./primitives.js";
46
+ export type { QuotePurpose, QuoteRequest, QuoteResponse } from "./quote.js";
47
+ export { QuotePurposeSchema, QuoteRequestSchema, QuoteResponseSchema } from "./quote.js";
48
+ export type { Receipt, ReceiptOutcome } from "./receipt.js";
49
+ export { ReceiptOutcomeSchema, ReceiptSchema } from "./receipt.js";
50
+ export type { CallError, OrderCallResult, Problem, PublishResult } from "./results.js";
51
+ export { CARD_REJECTED, CallErrorSchema, ORDER_CALL_ERROR_CODES, ORDER_CALL_RESULTS, OrderCallResultSchema, ProblemSchema, PublishResultSchema, } from "./results.js";
52
+ export type { SellingState } from "./selling.js";
53
+ export { SELLING_STATES, SellingStateSchema } from "./selling.js";
54
+ /**
55
+ * The version of the public contract. It grows when the meaning of the fields
56
+ * changes, not when a schema is added: a consumer uses it to decide whether it
57
+ * understands the other side.
58
+ */
59
+ export declare const CONTRACT_VERSION = "2";
60
+ /**
61
+ * Every schema of the public contract, under the name it is known by outside
62
+ * TypeScript.
63
+ *
64
+ * The registry is what makes the contract readable by something that is not
65
+ * this package: the JSON Schema export below walks it, and a merchant's
66
+ * engineer working in another language reads that. It carries the building
67
+ * blocks as well as the whole documents, because a merchant validating one
68
+ * amount should not have to lift it out of a card.
69
+ *
70
+ * A schema that exists and is not here is a schema nobody outside TypeScript
71
+ * can see, so a test holds the two in step.
72
+ */
73
+ export declare const schemas: Readonly<{
74
+ acceptance: z.ZodObject<{
75
+ eta_seconds: z.ZodOptional<z.ZodInt>;
76
+ }, z.core.$strict>;
77
+ agent_order_status: z.ZodObject<{
78
+ order_id: z.ZodString;
79
+ status: z.ZodEnum<{
80
+ delivered: "delivered";
81
+ in_progress: "in_progress";
82
+ rejected: "rejected";
83
+ payment_unresolved: "payment_unresolved";
84
+ declined: "declined";
85
+ expired: "expired";
86
+ cancelled: "cancelled";
87
+ refund_due: "refund_due";
88
+ refunded: "refunded";
89
+ delivered_unpaid: "delivered_unpaid";
90
+ }>;
91
+ price: z.ZodNullable<z.ZodObject<{
92
+ amount: z.ZodString;
93
+ currency: z.ZodString;
94
+ at: z.ZodISODateTime;
95
+ as_of: z.ZodISODateTime;
96
+ }, z.core.$strict>>;
97
+ delivered: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ test: z.ZodBoolean;
99
+ refusal: z.ZodOptional<z.ZodObject<{
100
+ code: z.ZodString;
101
+ message: z.ZodString;
102
+ }, z.core.$strict>>;
103
+ }, z.core.$strict>;
104
+ amount: z.ZodString;
105
+ cabinet_key: z.ZodObject<{
106
+ secret: z.ZodString;
107
+ }, z.core.$strict>;
108
+ call_error: z.ZodObject<{
109
+ code: z.ZodString;
110
+ message: z.ZodString;
111
+ retryable: z.ZodBoolean;
112
+ problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ path: z.ZodArray<z.ZodString>;
114
+ code: z.ZodString;
115
+ message: z.ZodString;
116
+ }, z.core.$strict>>>;
117
+ }, z.core.$strict>;
118
+ card: z.ZodObject<{
119
+ merchant_item_id: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodString;
122
+ price: z.ZodPreprocess<z.ZodObject<{
123
+ amount: z.ZodString;
124
+ currency: z.ZodString;
125
+ }, z.core.$strict>>;
126
+ params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
127
+ type: z.ZodEnum<{
128
+ string: "string";
129
+ number: "number";
130
+ boolean: "boolean";
131
+ integer: "integer";
132
+ }>;
133
+ required: z.ZodOptional<z.ZodBoolean>;
134
+ title: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strict>>>>;
136
+ result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
137
+ type: z.ZodEnum<{
138
+ string: "string";
139
+ number: "number";
140
+ boolean: "boolean";
141
+ integer: "integer";
142
+ }>;
143
+ required: z.ZodOptional<z.ZodBoolean>;
144
+ title: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strict>>>;
146
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
+ fulfillment: z.ZodDefault<z.ZodEnum<{
148
+ sync: "sync";
149
+ async: "async";
150
+ confirm: "confirm";
151
+ }>>;
152
+ price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
153
+ url: z.ZodURL;
154
+ }, z.core.$strict>]>>;
155
+ confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
156
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
157
+ }, z.core.$strict>;
158
+ catalog_page: z.ZodObject<{
159
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
160
+ id: z.ZodString;
161
+ title: z.ZodString;
162
+ description: z.ZodString;
163
+ price: z.ZodObject<{
164
+ amount: z.ZodString;
165
+ currency: z.ZodString;
166
+ }, z.core.$strict>;
167
+ as_of: z.ZodISODateTime;
168
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
169
+ type: z.ZodEnum<{
170
+ string: "string";
171
+ number: "number";
172
+ boolean: "boolean";
173
+ integer: "integer";
174
+ }>;
175
+ required: z.ZodOptional<z.ZodBoolean>;
176
+ title: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strict>>>;
178
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
179
+ type: z.ZodEnum<{
180
+ string: "string";
181
+ number: "number";
182
+ boolean: "boolean";
183
+ integer: "integer";
184
+ }>;
185
+ required: z.ZodOptional<z.ZodBoolean>;
186
+ title: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strict>>;
188
+ price_checked_at_purchase: z.ZodBoolean;
189
+ fulfillment: z.ZodLiteral<"sync">;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ id: z.ZodString;
192
+ title: z.ZodString;
193
+ description: z.ZodString;
194
+ price: z.ZodObject<{
195
+ amount: z.ZodString;
196
+ currency: z.ZodString;
197
+ }, z.core.$strict>;
198
+ as_of: z.ZodISODateTime;
199
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
200
+ type: z.ZodEnum<{
201
+ string: "string";
202
+ number: "number";
203
+ boolean: "boolean";
204
+ integer: "integer";
205
+ }>;
206
+ required: z.ZodOptional<z.ZodBoolean>;
207
+ title: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strict>>>;
209
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
210
+ type: z.ZodEnum<{
211
+ string: "string";
212
+ number: "number";
213
+ boolean: "boolean";
214
+ integer: "integer";
215
+ }>;
216
+ required: z.ZodOptional<z.ZodBoolean>;
217
+ title: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strict>>;
219
+ price_checked_at_purchase: z.ZodBoolean;
220
+ fulfillment: z.ZodLiteral<"async">;
221
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ id: z.ZodString;
224
+ title: z.ZodString;
225
+ description: z.ZodString;
226
+ price: z.ZodObject<{
227
+ amount: z.ZodString;
228
+ currency: z.ZodString;
229
+ }, z.core.$strict>;
230
+ as_of: z.ZodISODateTime;
231
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
232
+ type: z.ZodEnum<{
233
+ string: "string";
234
+ number: "number";
235
+ boolean: "boolean";
236
+ integer: "integer";
237
+ }>;
238
+ required: z.ZodOptional<z.ZodBoolean>;
239
+ title: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strict>>>;
241
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
242
+ type: z.ZodEnum<{
243
+ string: "string";
244
+ number: "number";
245
+ boolean: "boolean";
246
+ integer: "integer";
247
+ }>;
248
+ required: z.ZodOptional<z.ZodBoolean>;
249
+ title: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strict>>;
251
+ price_checked_at_purchase: z.ZodBoolean;
252
+ fulfillment: z.ZodLiteral<"confirm">;
253
+ confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
254
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
255
+ }, z.core.$strict>], "fulfillment">>;
256
+ }, z.core.$strict>;
257
+ currency_code: z.ZodString;
258
+ delivery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
259
+ disabled_key: z.ZodObject<{
260
+ key: z.ZodObject<{
261
+ id: z.ZodString;
262
+ label: z.ZodString;
263
+ created_at: z.ZodISODateTime;
264
+ last_used_at: z.ZodNullable<z.ZodISODateTime>;
265
+ disabled_at: z.ZodNullable<z.ZodISODateTime>;
266
+ }, z.core.$strict>;
267
+ }, z.core.$strict>;
268
+ error_envelope: z.ZodObject<{
269
+ error: z.ZodObject<{
270
+ code: z.ZodString;
271
+ message: z.ZodString;
272
+ retryable: z.ZodBoolean;
273
+ }, z.core.$loose>;
274
+ }, z.core.$strict>;
275
+ evm_address: z.ZodString;
276
+ field_spec: z.ZodObject<{
277
+ type: z.ZodEnum<{
278
+ string: "string";
279
+ number: "number";
280
+ boolean: "boolean";
281
+ integer: "integer";
282
+ }>;
283
+ required: z.ZodOptional<z.ZodBoolean>;
284
+ title: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strict>;
286
+ forgotten_cabinet_key: z.ZodObject<{
287
+ forgotten: z.ZodLiteral<true>;
288
+ }, z.core.$strict>;
289
+ fulfillment: z.ZodEnum<{
290
+ sync: "sync";
291
+ async: "async";
292
+ confirm: "confirm";
293
+ }>;
294
+ handler_answer: z.ZodUnion<readonly [z.ZodObject<{
295
+ delivered: z.ZodRecord<z.ZodString, z.ZodUnknown>;
296
+ }, z.core.$strict>, z.ZodObject<{
297
+ refused: z.ZodObject<{
298
+ code: z.ZodString;
299
+ message: z.ZodString;
300
+ }, z.core.$strict>;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ accepted: z.ZodObject<{
303
+ eta_seconds: z.ZodOptional<z.ZodInt>;
304
+ }, z.core.$strict>;
305
+ }, z.core.$strict>]>;
306
+ identifier: z.ZodString;
307
+ issue_key_request: z.ZodObject<{
308
+ label: z.ZodString;
309
+ }, z.core.$strict>;
310
+ issued_key: z.ZodObject<{
311
+ key: z.ZodObject<{
312
+ id: z.ZodString;
313
+ label: z.ZodString;
314
+ created_at: z.ZodISODateTime;
315
+ last_used_at: z.ZodNullable<z.ZodISODateTime>;
316
+ disabled_at: z.ZodNullable<z.ZodISODateTime>;
317
+ }, z.core.$strict>;
318
+ secret: z.ZodString;
319
+ }, z.core.$strict>;
320
+ merchant_card: z.ZodObject<{
321
+ id: z.ZodString;
322
+ as_of: z.ZodISODateTime;
323
+ card: z.ZodObject<{
324
+ merchant_item_id: z.ZodString;
325
+ title: z.ZodString;
326
+ description: z.ZodString;
327
+ price: z.ZodPreprocess<z.ZodObject<{
328
+ amount: z.ZodString;
329
+ currency: z.ZodString;
330
+ }, z.core.$strict>>;
331
+ params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
332
+ type: z.ZodEnum<{
333
+ string: "string";
334
+ number: "number";
335
+ boolean: "boolean";
336
+ integer: "integer";
337
+ }>;
338
+ required: z.ZodOptional<z.ZodBoolean>;
339
+ title: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strict>>>>;
341
+ result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
342
+ type: z.ZodEnum<{
343
+ string: "string";
344
+ number: "number";
345
+ boolean: "boolean";
346
+ integer: "integer";
347
+ }>;
348
+ required: z.ZodOptional<z.ZodBoolean>;
349
+ title: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>>>;
351
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
+ fulfillment: z.ZodDefault<z.ZodEnum<{
353
+ sync: "sync";
354
+ async: "async";
355
+ confirm: "confirm";
356
+ }>>;
357
+ price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
358
+ url: z.ZodURL;
359
+ }, z.core.$strict>]>>;
360
+ confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
361
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
362
+ }, z.core.$strict>;
363
+ selling: z.ZodEnum<{
364
+ open: "open";
365
+ paused: "paused";
366
+ departed: "departed";
367
+ }>;
368
+ paused: z.ZodBoolean;
369
+ }, z.core.$strict>;
370
+ merchant_card_list: z.ZodObject<{
371
+ selling: z.ZodEnum<{
372
+ open: "open";
373
+ paused: "paused";
374
+ departed: "departed";
375
+ }>;
376
+ cards: z.ZodArray<z.ZodObject<{
377
+ id: z.ZodString;
378
+ as_of: z.ZodISODateTime;
379
+ card: z.ZodObject<{
380
+ merchant_item_id: z.ZodString;
381
+ title: z.ZodString;
382
+ description: z.ZodString;
383
+ price: z.ZodPreprocess<z.ZodObject<{
384
+ amount: z.ZodString;
385
+ currency: z.ZodString;
386
+ }, z.core.$strict>>;
387
+ params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
388
+ type: z.ZodEnum<{
389
+ string: "string";
390
+ number: "number";
391
+ boolean: "boolean";
392
+ integer: "integer";
393
+ }>;
394
+ required: z.ZodOptional<z.ZodBoolean>;
395
+ title: z.ZodOptional<z.ZodString>;
396
+ }, z.core.$strict>>>>;
397
+ result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
398
+ type: z.ZodEnum<{
399
+ string: "string";
400
+ number: "number";
401
+ boolean: "boolean";
402
+ integer: "integer";
403
+ }>;
404
+ required: z.ZodOptional<z.ZodBoolean>;
405
+ title: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strict>>>;
407
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
+ fulfillment: z.ZodDefault<z.ZodEnum<{
409
+ sync: "sync";
410
+ async: "async";
411
+ confirm: "confirm";
412
+ }>>;
413
+ price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
414
+ url: z.ZodURL;
415
+ }, z.core.$strict>]>>;
416
+ confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
417
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
418
+ }, z.core.$strict>;
419
+ selling: z.ZodEnum<{
420
+ open: "open";
421
+ paused: "paused";
422
+ departed: "departed";
423
+ }>;
424
+ paused: z.ZodBoolean;
425
+ }, z.core.$strict>>;
426
+ }, z.core.$strict>;
427
+ merchant_key: z.ZodObject<{
428
+ id: z.ZodString;
429
+ label: z.ZodString;
430
+ created_at: z.ZodISODateTime;
431
+ last_used_at: z.ZodNullable<z.ZodISODateTime>;
432
+ disabled_at: z.ZodNullable<z.ZodISODateTime>;
433
+ }, z.core.$strict>;
434
+ merchant_key_list: z.ZodObject<{
435
+ keys: z.ZodArray<z.ZodObject<{
436
+ id: z.ZodString;
437
+ label: z.ZodString;
438
+ created_at: z.ZodISODateTime;
439
+ last_used_at: z.ZodNullable<z.ZodISODateTime>;
440
+ disabled_at: z.ZodNullable<z.ZodISODateTime>;
441
+ }, z.core.$strict>>;
442
+ this_call: z.ZodString;
443
+ }, z.core.$strict>;
444
+ money: z.ZodObject<{
445
+ amount: z.ZodString;
446
+ currency: z.ZodString;
447
+ }, z.core.$strict>;
448
+ order: z.ZodObject<{
449
+ id: z.ZodString;
450
+ merchant_item_id: z.ZodString;
451
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
452
+ price: z.ZodObject<{
453
+ amount: z.ZodString;
454
+ currency: z.ZodString;
455
+ at: z.ZodISODateTime;
456
+ as_of: z.ZodISODateTime;
457
+ }, z.core.$strict>;
458
+ price_id: z.ZodOptional<z.ZodString>;
459
+ test: z.ZodBoolean;
460
+ }, z.core.$strict>;
461
+ order_accept_response: z.ZodDiscriminatedUnion<[z.ZodObject<{
462
+ ok: z.ZodLiteral<true>;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ ok: z.ZodLiteral<false>;
465
+ error: z.ZodObject<{
466
+ code: z.ZodString;
467
+ message: z.ZodString;
468
+ retryable: z.ZodBoolean;
469
+ problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
+ path: z.ZodArray<z.ZodString>;
471
+ code: z.ZodString;
472
+ message: z.ZodString;
473
+ }, z.core.$strict>>>;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>], "ok">;
476
+ order_call_response: z.ZodDiscriminatedUnion<[z.ZodObject<{
477
+ ok: z.ZodLiteral<true>;
478
+ result: z.ZodEnum<{
479
+ refused: "refused";
480
+ delivered: "delivered";
481
+ accepted: "accepted";
482
+ already_delivered: "already_delivered";
483
+ debt_closed_by_delivery: "debt_closed_by_delivery";
484
+ purchase_already_closed: "purchase_already_closed";
485
+ }>;
486
+ }, z.core.$strict>, z.ZodObject<{
487
+ ok: z.ZodLiteral<false>;
488
+ error: z.ZodObject<{
489
+ code: z.ZodString;
490
+ message: z.ZodString;
491
+ retryable: z.ZodBoolean;
492
+ problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
493
+ path: z.ZodArray<z.ZodString>;
494
+ code: z.ZodString;
495
+ message: z.ZodString;
496
+ }, z.core.$strict>>>;
497
+ }, z.core.$strict>;
498
+ }, z.core.$strict>], "ok">;
499
+ order_call_result: z.ZodEnum<{
500
+ refused: "refused";
501
+ delivered: "delivered";
502
+ accepted: "accepted";
503
+ already_delivered: "already_delivered";
504
+ debt_closed_by_delivery: "debt_closed_by_delivery";
505
+ purchase_already_closed: "purchase_already_closed";
506
+ }>;
507
+ order_event: z.ZodDiscriminatedUnion<[z.ZodObject<{
508
+ type: z.ZodLiteral<"order.refund_due">;
509
+ order_id: z.ZodString;
510
+ at: z.ZodISODateTime;
511
+ price: z.ZodObject<{
512
+ amount: z.ZodString;
513
+ currency: z.ZodString;
514
+ }, z.core.$strict>;
515
+ reason: z.ZodEnum<{
516
+ refused: "refused";
517
+ deadline_passed: "deadline_passed";
518
+ merchant_left: "merchant_left";
519
+ }>;
520
+ }, z.core.$strict>, z.ZodObject<{
521
+ type: z.ZodLiteral<"order.unpaid_after_confirmation">;
522
+ order_id: z.ZodString;
523
+ at: z.ZodISODateTime;
524
+ }, z.core.$strict>, z.ZodObject<{
525
+ type: z.ZodLiteral<"order.payment_failed_after_delivery">;
526
+ order_id: z.ZodString;
527
+ at: z.ZodISODateTime;
528
+ }, z.core.$strict>], "type">;
529
+ order_list: z.ZodObject<{
530
+ orders: z.ZodArray<z.ZodObject<{
531
+ id: z.ZodString;
532
+ merchant_item_id: z.ZodString;
533
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
534
+ price: z.ZodObject<{
535
+ amount: z.ZodString;
536
+ currency: z.ZodString;
537
+ at: z.ZodISODateTime;
538
+ as_of: z.ZodISODateTime;
539
+ }, z.core.$strict>;
540
+ price_id: z.ZodOptional<z.ZodString>;
541
+ test: z.ZodBoolean;
542
+ status: z.ZodEnum<{
543
+ delivered: "delivered";
544
+ in_progress: "in_progress";
545
+ rejected: "rejected";
546
+ payment_unresolved: "payment_unresolved";
547
+ declined: "declined";
548
+ expired: "expired";
549
+ cancelled: "cancelled";
550
+ refund_due: "refund_due";
551
+ refunded: "refunded";
552
+ delivered_unpaid: "delivered_unpaid";
553
+ }>;
554
+ }, z.core.$strict>>;
555
+ }, z.core.$strict>;
556
+ order_list_query: z.ZodObject<{
557
+ open: z.ZodOptional<z.ZodEnum<{
558
+ true: "true";
559
+ false: "false";
560
+ }>>;
561
+ }, z.core.$strict>;
562
+ order_status: z.ZodEnum<{
563
+ delivered: "delivered";
564
+ in_progress: "in_progress";
565
+ rejected: "rejected";
566
+ payment_unresolved: "payment_unresolved";
567
+ declined: "declined";
568
+ expired: "expired";
569
+ cancelled: "cancelled";
570
+ refund_due: "refund_due";
571
+ refunded: "refunded";
572
+ delivered_unpaid: "delivered_unpaid";
573
+ }>;
574
+ order_with_status: z.ZodObject<{
575
+ id: z.ZodString;
576
+ merchant_item_id: z.ZodString;
577
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
578
+ price: z.ZodObject<{
579
+ amount: z.ZodString;
580
+ currency: z.ZodString;
581
+ at: z.ZodISODateTime;
582
+ as_of: z.ZodISODateTime;
583
+ }, z.core.$strict>;
584
+ price_id: z.ZodOptional<z.ZodString>;
585
+ test: z.ZodBoolean;
586
+ status: z.ZodEnum<{
587
+ delivered: "delivered";
588
+ in_progress: "in_progress";
589
+ rejected: "rejected";
590
+ payment_unresolved: "payment_unresolved";
591
+ declined: "declined";
592
+ expired: "expired";
593
+ cancelled: "cancelled";
594
+ refund_due: "refund_due";
595
+ refunded: "refunded";
596
+ delivered_unpaid: "delivered_unpaid";
597
+ }>;
598
+ }, z.core.$strict>;
599
+ param_name: z.ZodString;
600
+ param_spec: z.ZodRecord<z.ZodString, z.ZodObject<{
601
+ type: z.ZodEnum<{
602
+ string: "string";
603
+ number: "number";
604
+ boolean: "boolean";
605
+ integer: "integer";
606
+ }>;
607
+ required: z.ZodOptional<z.ZodBoolean>;
608
+ title: z.ZodOptional<z.ZodString>;
609
+ }, z.core.$strict>>;
610
+ param_type: z.ZodEnum<{
611
+ string: "string";
612
+ number: "number";
613
+ boolean: "boolean";
614
+ integer: "integer";
615
+ }>;
616
+ payout_wallet: z.ZodObject<{
617
+ payout_wallet: z.ZodNullable<z.ZodString>;
618
+ }, z.core.$strict>;
619
+ payout_wallet_request: z.ZodObject<{
620
+ payout_wallet: z.ZodPipe<z.ZodString, z.ZodString>;
621
+ }, z.core.$strict>;
622
+ price_check: z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
623
+ url: z.ZodURL;
624
+ }, z.core.$strict>]>;
625
+ problem: z.ZodObject<{
626
+ path: z.ZodArray<z.ZodString>;
627
+ code: z.ZodString;
628
+ message: z.ZodString;
629
+ }, z.core.$strict>;
630
+ public_card: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ id: z.ZodString;
632
+ title: z.ZodString;
633
+ description: z.ZodString;
634
+ price: z.ZodObject<{
635
+ amount: z.ZodString;
636
+ currency: z.ZodString;
637
+ }, z.core.$strict>;
638
+ as_of: z.ZodISODateTime;
639
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
640
+ type: z.ZodEnum<{
641
+ string: "string";
642
+ number: "number";
643
+ boolean: "boolean";
644
+ integer: "integer";
645
+ }>;
646
+ required: z.ZodOptional<z.ZodBoolean>;
647
+ title: z.ZodOptional<z.ZodString>;
648
+ }, z.core.$strict>>>;
649
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
650
+ type: z.ZodEnum<{
651
+ string: "string";
652
+ number: "number";
653
+ boolean: "boolean";
654
+ integer: "integer";
655
+ }>;
656
+ required: z.ZodOptional<z.ZodBoolean>;
657
+ title: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strict>>;
659
+ price_checked_at_purchase: z.ZodBoolean;
660
+ fulfillment: z.ZodLiteral<"sync">;
661
+ }, z.core.$strict>, z.ZodObject<{
662
+ id: z.ZodString;
663
+ title: z.ZodString;
664
+ description: z.ZodString;
665
+ price: z.ZodObject<{
666
+ amount: z.ZodString;
667
+ currency: z.ZodString;
668
+ }, z.core.$strict>;
669
+ as_of: z.ZodISODateTime;
670
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
671
+ type: z.ZodEnum<{
672
+ string: "string";
673
+ number: "number";
674
+ boolean: "boolean";
675
+ integer: "integer";
676
+ }>;
677
+ required: z.ZodOptional<z.ZodBoolean>;
678
+ title: z.ZodOptional<z.ZodString>;
679
+ }, z.core.$strict>>>;
680
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
681
+ type: z.ZodEnum<{
682
+ string: "string";
683
+ number: "number";
684
+ boolean: "boolean";
685
+ integer: "integer";
686
+ }>;
687
+ required: z.ZodOptional<z.ZodBoolean>;
688
+ title: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$strict>>;
690
+ price_checked_at_purchase: z.ZodBoolean;
691
+ fulfillment: z.ZodLiteral<"async">;
692
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ id: z.ZodString;
695
+ title: z.ZodString;
696
+ description: z.ZodString;
697
+ price: z.ZodObject<{
698
+ amount: z.ZodString;
699
+ currency: z.ZodString;
700
+ }, z.core.$strict>;
701
+ as_of: z.ZodISODateTime;
702
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
703
+ type: z.ZodEnum<{
704
+ string: "string";
705
+ number: "number";
706
+ boolean: "boolean";
707
+ integer: "integer";
708
+ }>;
709
+ required: z.ZodOptional<z.ZodBoolean>;
710
+ title: z.ZodOptional<z.ZodString>;
711
+ }, z.core.$strict>>>;
712
+ result: z.ZodRecord<z.ZodString, z.ZodObject<{
713
+ type: z.ZodEnum<{
714
+ string: "string";
715
+ number: "number";
716
+ boolean: "boolean";
717
+ integer: "integer";
718
+ }>;
719
+ required: z.ZodOptional<z.ZodBoolean>;
720
+ title: z.ZodOptional<z.ZodString>;
721
+ }, z.core.$strict>>;
722
+ price_checked_at_purchase: z.ZodBoolean;
723
+ fulfillment: z.ZodLiteral<"confirm">;
724
+ confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
725
+ fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
726
+ }, z.core.$strict>], "fulfillment">;
727
+ publish_result: z.ZodDiscriminatedUnion<[z.ZodObject<{
728
+ ok: z.ZodLiteral<true>;
729
+ id: z.ZodString;
730
+ }, z.core.$strict>, z.ZodObject<{
731
+ ok: z.ZodLiteral<false>;
732
+ error: z.ZodObject<{
733
+ code: z.ZodString;
734
+ message: z.ZodString;
735
+ retryable: z.ZodBoolean;
736
+ problems: z.ZodArray<z.ZodObject<{
737
+ path: z.ZodArray<z.ZodString>;
738
+ code: z.ZodString;
739
+ message: z.ZodString;
740
+ }, z.core.$strict>>;
741
+ }, z.core.$strict>;
742
+ }, z.core.$strict>], "ok">;
743
+ purchase_request: z.ZodObject<{
744
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
745
+ }, z.core.$strict>;
746
+ quote_answer_ack: z.ZodObject<{
747
+ used: z.ZodBoolean;
748
+ }, z.core.$strict>;
749
+ quote_purpose: z.ZodEnum<{
750
+ purchase: "purchase";
751
+ poll: "poll";
752
+ }>;
753
+ quote_request: z.ZodObject<{
754
+ merchant_item_id: z.ZodString;
755
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
756
+ price_id: z.ZodString;
757
+ purpose: z.ZodEnum<{
758
+ purchase: "purchase";
759
+ poll: "poll";
760
+ }>;
761
+ expires_at: z.ZodISODateTime;
762
+ }, z.core.$strict>;
763
+ quote_response: z.ZodDiscriminatedUnion<[z.ZodObject<{
764
+ available: z.ZodLiteral<true>;
765
+ price: z.ZodObject<{
766
+ amount: z.ZodString;
767
+ currency: z.ZodString;
768
+ }, z.core.$strict>;
769
+ as_of: z.ZodISODateTime;
770
+ }, z.core.$strict>, z.ZodObject<{
771
+ available: z.ZodLiteral<false>;
772
+ as_of: z.ZodISODateTime;
773
+ }, z.core.$strict>], "available">;
774
+ receipt: z.ZodObject<{
775
+ id: z.ZodString;
776
+ order_id: z.ZodString;
777
+ item_id: z.ZodString;
778
+ price: z.ZodObject<{
779
+ amount: z.ZodString;
780
+ currency: z.ZodString;
781
+ at: z.ZodISODateTime;
782
+ as_of: z.ZodISODateTime;
783
+ }, z.core.$strict>;
784
+ price_id: z.ZodOptional<z.ZodString>;
785
+ paid_at: z.ZodISODateTime;
786
+ outcome: z.ZodEnum<{
787
+ delivered: "delivered";
788
+ in_progress: "in_progress";
789
+ refund_due: "refund_due";
790
+ refunded: "refunded";
791
+ }>;
792
+ test: z.ZodBoolean;
793
+ }, z.core.$strict>;
794
+ receipt_list: z.ZodObject<{
795
+ receipts: z.ZodArray<z.ZodObject<{
796
+ id: z.ZodString;
797
+ order_id: z.ZodString;
798
+ item_id: z.ZodString;
799
+ price: z.ZodObject<{
800
+ amount: z.ZodString;
801
+ currency: z.ZodString;
802
+ at: z.ZodISODateTime;
803
+ as_of: z.ZodISODateTime;
804
+ }, z.core.$strict>;
805
+ price_id: z.ZodOptional<z.ZodString>;
806
+ paid_at: z.ZodISODateTime;
807
+ outcome: z.ZodEnum<{
808
+ delivered: "delivered";
809
+ in_progress: "in_progress";
810
+ refund_due: "refund_due";
811
+ refunded: "refunded";
812
+ }>;
813
+ test: z.ZodBoolean;
814
+ }, z.core.$strict>>;
815
+ }, z.core.$strict>;
816
+ receipt_outcome: z.ZodEnum<{
817
+ delivered: "delivered";
818
+ in_progress: "in_progress";
819
+ refund_due: "refund_due";
820
+ refunded: "refunded";
821
+ }>;
822
+ registered_merchant: z.ZodObject<{
823
+ merchant_id: z.ZodString;
824
+ secret: z.ZodString;
825
+ }, z.core.$strict>;
826
+ registration_request: z.ZodObject<{
827
+ invitation: z.ZodString;
828
+ }, z.core.$strict>;
829
+ refund_due_reason: z.ZodEnum<{
830
+ refused: "refused";
831
+ deadline_passed: "deadline_passed";
832
+ merchant_left: "merchant_left";
833
+ }>;
834
+ refusal: z.ZodObject<{
835
+ code: z.ZodString;
836
+ message: z.ZodString;
837
+ }, z.core.$strict>;
838
+ refusal_code: z.ZodString;
839
+ sale_price: z.ZodObject<{
840
+ amount: z.ZodString;
841
+ currency: z.ZodString;
842
+ at: z.ZodISODateTime;
843
+ as_of: z.ZodISODateTime;
844
+ }, z.core.$strict>;
845
+ seller_name: z.ZodObject<{
846
+ seller_name: z.ZodNullable<z.ZodString>;
847
+ }, z.core.$strict>;
848
+ seller_name_request: z.ZodObject<{
849
+ seller_name: z.ZodPipe<z.ZodString, z.ZodString>;
850
+ }, z.core.$strict>;
851
+ selling_state: z.ZodEnum<{
852
+ open: "open";
853
+ paused: "paused";
854
+ departed: "departed";
855
+ }>;
856
+ service_name: z.ZodString;
857
+ tags: z.ZodArray<z.ZodString>;
858
+ timestamp: z.ZodISODateTime;
859
+ worker_envelope: z.ZodDiscriminatedUnion<[z.ZodObject<{
860
+ kind: z.ZodLiteral<"order">;
861
+ id: z.ZodString;
862
+ sent_at: z.ZodISODateTime;
863
+ payload: z.ZodObject<{
864
+ id: z.ZodString;
865
+ merchant_item_id: z.ZodString;
866
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
867
+ price: z.ZodObject<{
868
+ amount: z.ZodString;
869
+ currency: z.ZodString;
870
+ at: z.ZodISODateTime;
871
+ as_of: z.ZodISODateTime;
872
+ }, z.core.$strict>;
873
+ price_id: z.ZodOptional<z.ZodString>;
874
+ test: z.ZodBoolean;
875
+ }, z.core.$strict>;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ kind: z.ZodLiteral<"quote_request">;
878
+ id: z.ZodString;
879
+ sent_at: z.ZodISODateTime;
880
+ payload: z.ZodObject<{
881
+ merchant_item_id: z.ZodString;
882
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
883
+ price_id: z.ZodString;
884
+ purpose: z.ZodEnum<{
885
+ purchase: "purchase";
886
+ poll: "poll";
887
+ }>;
888
+ expires_at: z.ZodISODateTime;
889
+ }, z.core.$strict>;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ kind: z.ZodLiteral<"order_event">;
892
+ id: z.ZodString;
893
+ sent_at: z.ZodISODateTime;
894
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
895
+ type: z.ZodLiteral<"order.refund_due">;
896
+ order_id: z.ZodString;
897
+ at: z.ZodISODateTime;
898
+ price: z.ZodObject<{
899
+ amount: z.ZodString;
900
+ currency: z.ZodString;
901
+ }, z.core.$strict>;
902
+ reason: z.ZodEnum<{
903
+ refused: "refused";
904
+ deadline_passed: "deadline_passed";
905
+ merchant_left: "merchant_left";
906
+ }>;
907
+ }, z.core.$strict>, z.ZodObject<{
908
+ type: z.ZodLiteral<"order.unpaid_after_confirmation">;
909
+ order_id: z.ZodString;
910
+ at: z.ZodISODateTime;
911
+ }, z.core.$strict>, z.ZodObject<{
912
+ type: z.ZodLiteral<"order.payment_failed_after_delivery">;
913
+ order_id: z.ZodString;
914
+ at: z.ZodISODateTime;
915
+ }, z.core.$strict>], "type">;
916
+ }, z.core.$strict>], "kind">;
917
+ worker_poll_request: z.ZodObject<{
918
+ wait_seconds: z.ZodOptional<z.ZodInt>;
919
+ max: z.ZodOptional<z.ZodInt>;
920
+ }, z.core.$strict>;
921
+ worker_poll_response: z.ZodObject<{
922
+ contract_version: z.ZodString;
923
+ envelopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
924
+ kind: z.ZodLiteral<"order">;
925
+ id: z.ZodString;
926
+ sent_at: z.ZodISODateTime;
927
+ payload: z.ZodObject<{
928
+ id: z.ZodString;
929
+ merchant_item_id: z.ZodString;
930
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
931
+ price: z.ZodObject<{
932
+ amount: z.ZodString;
933
+ currency: z.ZodString;
934
+ at: z.ZodISODateTime;
935
+ as_of: z.ZodISODateTime;
936
+ }, z.core.$strict>;
937
+ price_id: z.ZodOptional<z.ZodString>;
938
+ test: z.ZodBoolean;
939
+ }, z.core.$strict>;
940
+ }, z.core.$strict>, z.ZodObject<{
941
+ kind: z.ZodLiteral<"quote_request">;
942
+ id: z.ZodString;
943
+ sent_at: z.ZodISODateTime;
944
+ payload: z.ZodObject<{
945
+ merchant_item_id: z.ZodString;
946
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
947
+ price_id: z.ZodString;
948
+ purpose: z.ZodEnum<{
949
+ purchase: "purchase";
950
+ poll: "poll";
951
+ }>;
952
+ expires_at: z.ZodISODateTime;
953
+ }, z.core.$strict>;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ kind: z.ZodLiteral<"order_event">;
956
+ id: z.ZodString;
957
+ sent_at: z.ZodISODateTime;
958
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
959
+ type: z.ZodLiteral<"order.refund_due">;
960
+ order_id: z.ZodString;
961
+ at: z.ZodISODateTime;
962
+ price: z.ZodObject<{
963
+ amount: z.ZodString;
964
+ currency: z.ZodString;
965
+ }, z.core.$strict>;
966
+ reason: z.ZodEnum<{
967
+ refused: "refused";
968
+ deadline_passed: "deadline_passed";
969
+ merchant_left: "merchant_left";
970
+ }>;
971
+ }, z.core.$strict>, z.ZodObject<{
972
+ type: z.ZodLiteral<"order.unpaid_after_confirmation">;
973
+ order_id: z.ZodString;
974
+ at: z.ZodISODateTime;
975
+ }, z.core.$strict>, z.ZodObject<{
976
+ type: z.ZodLiteral<"order.payment_failed_after_delivery">;
977
+ order_id: z.ZodString;
978
+ at: z.ZodISODateTime;
979
+ }, z.core.$strict>], "type">;
980
+ }, z.core.$strict>], "kind">>;
981
+ }, z.core.$strict>;
982
+ }>;
983
+ /** The name of one schema in the registry. */
984
+ export type SchemaName = keyof typeof schemas;
985
+ /** One JSON Schema document, as zod renders it. */
986
+ export type JsonSchemaDocument = z.core.JSONSchema.BaseSchema;
987
+ /** The identifier a rendered document carries, so a reader knows what it holds. */
988
+ export declare const jsonSchemaIdOf: (name: SchemaName) => string;
989
+ /**
990
+ * The whole contract as JSON Schema, one document per registry entry.
991
+ *
992
+ * A function rather than a constant: the conversion costs something, and a
993
+ * consumer who only needs to validate a card in TypeScript should not pay for
994
+ * a description of everything else at import time.
995
+ *
996
+ * What the documents carry and what they do not is worth saying plainly,
997
+ * because the difference is invisible from the outside. Structure crosses
998
+ * intact — fields, types, which are required, whether unknown keys are
999
+ * allowed, enumerations, patterns, the branches of a union. Rules that look at
1000
+ * more than one field at a time do not: JSON Schema cannot say "this field
1001
+ * only when that one has this value", and zod drops such a rule without a
1002
+ * word. Every schema that has one says so in its own `description`, which does
1003
+ * cross, so a reader of the document is told what it is not checking rather
1004
+ * than left to assume it checks everything.
1005
+ *
1006
+ * Each document is stamped with the contract version it came from.
1007
+ */
1008
+ export declare const toJsonSchemas: () => Record<SchemaName, JsonSchemaDocument>;