@avow-finance/spec 0.7.0 → 0.8.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.
Files changed (83) hide show
  1. package/dist/agent-session.d.ts +8 -0
  2. package/dist/agent-session.d.ts.map +1 -1
  3. package/dist/api.d.ts +24 -0
  4. package/dist/api.d.ts.map +1 -1
  5. package/dist/dependencies.d.ts.map +1 -1
  6. package/dist/dependencies.js +8 -2
  7. package/dist/dependencies.js.map +1 -1
  8. package/dist/eip712.d.ts +212 -1
  9. package/dist/eip712.d.ts.map +1 -1
  10. package/dist/eip712.js +34 -0
  11. package/dist/eip712.js.map +1 -1
  12. package/dist/gpu-reservation.d.ts.map +1 -1
  13. package/dist/gpu-reservation.js +1 -1
  14. package/dist/gpu-reservation.js.map +1 -1
  15. package/dist/index.d.ts +4 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +4 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/job-session.d.ts +16 -0
  20. package/dist/job-session.d.ts.map +1 -1
  21. package/dist/job.d.ts.map +1 -1
  22. package/dist/job.js +1 -1
  23. package/dist/job.js.map +1 -1
  24. package/dist/json-fields.d.ts +2 -0
  25. package/dist/json-fields.d.ts.map +1 -1
  26. package/dist/json-fields.js +2 -0
  27. package/dist/json-fields.js.map +1 -1
  28. package/dist/mailbox.d.ts +77 -104
  29. package/dist/mailbox.d.ts.map +1 -1
  30. package/dist/mailbox.js +8 -30
  31. package/dist/mailbox.js.map +1 -1
  32. package/dist/negotiation.d.ts +514 -0
  33. package/dist/negotiation.d.ts.map +1 -0
  34. package/dist/negotiation.js +490 -0
  35. package/dist/negotiation.js.map +1 -0
  36. package/dist/offer-search.d.ts +282 -0
  37. package/dist/offer-search.d.ts.map +1 -0
  38. package/dist/offer-search.js +252 -0
  39. package/dist/offer-search.js.map +1 -0
  40. package/dist/order-wire.d.ts +73 -0
  41. package/dist/order-wire.d.ts.map +1 -0
  42. package/dist/order-wire.js +33 -0
  43. package/dist/order-wire.js.map +1 -0
  44. package/dist/reasons.d.ts +10 -2
  45. package/dist/reasons.d.ts.map +1 -1
  46. package/dist/reasons.js +10 -2
  47. package/dist/reasons.js.map +1 -1
  48. package/dist/sandbox.d.ts +81 -0
  49. package/dist/sandbox.d.ts.map +1 -1
  50. package/dist/sandbox.js +18 -0
  51. package/dist/sandbox.js.map +1 -1
  52. package/dist/service-order.d.ts +747 -0
  53. package/dist/service-order.d.ts.map +1 -0
  54. package/dist/service-order.js +182 -0
  55. package/dist/service-order.js.map +1 -0
  56. package/dist/service.d.ts +248 -0
  57. package/dist/service.d.ts.map +1 -0
  58. package/dist/service.js +379 -0
  59. package/dist/service.js.map +1 -0
  60. package/dist/session-fields.d.ts +8 -0
  61. package/dist/session-fields.d.ts.map +1 -1
  62. package/dist/terms.d.ts.map +1 -1
  63. package/dist/terms.js +4 -0
  64. package/dist/terms.js.map +1 -1
  65. package/dist/test-customer.d.ts +16 -0
  66. package/dist/test-customer.d.ts.map +1 -1
  67. package/dist/text.d.ts +5 -0
  68. package/dist/text.d.ts.map +1 -0
  69. package/dist/text.js +5 -0
  70. package/dist/text.js.map +1 -0
  71. package/dist/types.d.ts +7 -4
  72. package/dist/types.d.ts.map +1 -1
  73. package/dist/types.js +6 -3
  74. package/dist/types.js.map +1 -1
  75. package/dist/version.d.ts +1 -0
  76. package/dist/version.d.ts.map +1 -1
  77. package/dist/version.js +2 -0
  78. package/dist/version.js.map +1 -1
  79. package/dist/wire.d.ts +312 -0
  80. package/dist/wire.d.ts.map +1 -1
  81. package/dist/wire.js +28 -1
  82. package/dist/wire.js.map +1 -1
  83. package/package.json +1 -1
@@ -0,0 +1,747 @@
1
+ import type { Address, Hex } from 'viem';
2
+ import { z } from 'zod';
3
+ import type { TermsAgreement } from './eip712.js';
4
+ import { type JobBuyer } from './mailbox.js';
5
+ import { type OrderStage } from './order-wire.js';
6
+ import type { ReasonCode } from './reasons.js';
7
+ import { type ServiceOfferVersion, type ServiceTerms } from './service.js';
8
+ /**
9
+ * A service order, which is to carry one booking of a supplier's offer between two businesses'
10
+ * agents through Avow's sandbox mailbox, wherever each agent runs. It takes the four steps a job
11
+ * order takes, each signed by the key that sends it.
12
+ *
13
+ * 1. The buyer's agent sends the offer version it wants, how many units, and the moment the terms
14
+ * are built from. Nothing is reserved.
15
+ * 2. The supplier's agent reads the order from its inbox, checks the version is one it published,
16
+ * and sends the terms `serviceOfferTerms` builds from the order with its signed agreement.
17
+ * 3. The buyer's agent checks the quote against its own order, funds the commitment under its
18
+ * mandate, and tells the mailbox, which reads the reserve on chain.
19
+ * 4. The supplier's agent accepts on chain with its own signing key, and tells the mailbox, which
20
+ * reads the acceptance on chain.
21
+ *
22
+ * A service order has paths and a shape of its own, so a reader that knows only job orders never
23
+ * meets one. This module holds the messages and what each side can check for itself. Avow's
24
+ * testnet sandbox serves the paths.
25
+ */
26
+ /** How far ahead of a reader's clock an order's build moment may be, in seconds. */
27
+ export declare const SERVICE_ORDER_CLOCK_SKEW = 60n;
28
+ /**
29
+ * How long before the supplier's deadline to accept an order has to lapse, in seconds. A reserve
30
+ * funded at the order's last moment still leaves the supplier this long to accept it.
31
+ */
32
+ export declare const SERVICE_ORDER_ACCEPT_MARGIN: bigint;
33
+ /**
34
+ * Whether something that stands until `expiry` leaves the supplier its time to accept terms built
35
+ * at `builtAt`. The terms give the supplier `SERVICE_ACCEPT_WITHIN` from the build moment, so a
36
+ * reserve funded at the last moment still leaves it `SERVICE_ORDER_ACCEPT_MARGIN`.
37
+ */
38
+ export declare const leavesTimeToAccept: (expiry: bigint, builtAt: bigint) => boolean;
39
+ /** What a buyer's agent sends to order units of a business's offer. */
40
+ export interface ServiceOrderRequest {
41
+ orderId: string;
42
+ /** The commitment id the buyer chose, which the quote's agreement has to name. */
43
+ commitmentId: Hex;
44
+ /**
45
+ * The offer version ordered, whole. It names the supplier the order is for, and the supplier
46
+ * checks it against the versions it published.
47
+ */
48
+ offer: ServiceOfferVersion;
49
+ /** How many units are ordered. */
50
+ quantity: number;
51
+ /** The moment the terms are built from, in unix seconds. Every time in them counts from it. */
52
+ builtAt: bigint;
53
+ /** When the order lapses unless it's funded, in unix seconds. */
54
+ expiry: bigint;
55
+ }
56
+ /**
57
+ * The supplier's answer to a service order: the terms, the salt they hash under, and its signing
58
+ * key's agreement to that hash for the order's commitment.
59
+ */
60
+ export interface ServiceQuote {
61
+ terms: ServiceTerms;
62
+ salt: Hex;
63
+ agreement: TermsAgreement;
64
+ supplierSignature: Hex;
65
+ }
66
+ interface ServiceOrderBase extends ServiceOrderRequest {
67
+ buyer: JobBuyer;
68
+ requestedAt: bigint;
69
+ }
70
+ /** A service order as the mailbox answers it, to either side or to either business's console. */
71
+ export type ServiceOrder = ServiceOrderBase & OrderStage<ServiceQuote>;
72
+ /** What the terms' arbiter and day-90 share come from, which Avow's approvals name. */
73
+ export interface ServiceSettlement {
74
+ arbiter: Address;
75
+ day90SupplierShareBps: number;
76
+ }
77
+ /**
78
+ * Why an order can't be taken at `now`, or null when it can. Its offer has to be one the template
79
+ * takes, in a quantity the offer takes. Its times have to leave the supplier room to accept: the
80
+ * terms give the supplier `SERVICE_ACCEPT_WITHIN` from the build moment, so the order lapses
81
+ * `SERVICE_ORDER_ACCEPT_MARGIN` before that.
82
+ *
83
+ * It can't tell whether the supplier ever published the offer. A buyer can write any offer it
84
+ * likes under a supplier's name, so the supplier checks that with `publishedOffer` before it
85
+ * quotes, and nothing is agreed until it does.
86
+ */
87
+ export declare function serviceOrderProblem(order: ServiceOrderRequest, now: bigint): ReasonCode | null;
88
+ /**
89
+ * The version among those a supplier published that an order's offer is, or null when it's none
90
+ * of them. The supplier's agent runs it on every order before it quotes, since the offer in an
91
+ * order is the buyer's copy and the buyer could have written anything.
92
+ */
93
+ export declare function publishedOffer(order: Pick<ServiceOrderRequest, 'offer'>, published: readonly ServiceOfferVersion[]): ServiceOfferVersion | null;
94
+ /**
95
+ * Why a supplier's agreement isn't to these terms for this booking, or null when it is. It has to
96
+ * carry the hash of the terms under the salt given, name the commitment and the supplier, and be
97
+ * for a service. Given the buyer, it has to name the buyer's business and mandate too. It never
98
+ * throws, and it leaves the supplier's signature and the agreement's expiry to its callers.
99
+ */
100
+ export declare function serviceAgreementProblem(booking: {
101
+ commitmentId: Hex;
102
+ supplier: string;
103
+ buyer?: Pick<JobBuyer, 'businessId' | 'mandateHash'>;
104
+ }, terms: ServiceTerms, quote: Pick<ServiceQuote, 'salt' | 'agreement'>): ReasonCode | null;
105
+ /**
106
+ * Why a quote doesn't answer its order, or null when it does. The quote's terms have to be the
107
+ * ones `serviceOfferTerms` builds from the order, with nothing moved. Its agreement has to be for
108
+ * a service, name the order's commitment and the offer's supplier, and carry the hash of those
109
+ * terms under the quote's salt. Given the buyer, it has to name the buyer's business and mandate
110
+ * too.
111
+ *
112
+ * It leaves two checks to others. The buyer's agent checks the agreement's expiry and its own
113
+ * authority when it commits, and Avow checks the supplier's signature when it approves the
114
+ * reserve. It never throws, whatever a quote that parsed holds.
115
+ */
116
+ export declare function serviceQuoteProblem(order: Pick<ServiceOrderRequest, 'offer' | 'quantity' | 'builtAt' | 'commitmentId'> & {
117
+ buyer?: Pick<JobBuyer, 'businessId' | 'mandateHash'>;
118
+ }, quote: ServiceQuote, settlement: ServiceSettlement): ReasonCode | null;
119
+ export declare const serviceOrderRequestJson: z.ZodObject<{
120
+ orderId: z.ZodString;
121
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
122
+ offer: z.ZodObject<{
123
+ supplier: z.ZodString;
124
+ item: z.ZodObject<{
125
+ name: z.ZodString;
126
+ summary: z.ZodString;
127
+ }, z.core.$strict>;
128
+ currency: z.ZodEnum<{
129
+ USD: "USD";
130
+ }>;
131
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
132
+ rules: z.ZodObject<{
133
+ evidence: z.ZodString;
134
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
135
+ maxPerBooking: z.ZodNumber;
136
+ dailyCapacity: z.ZodNumber;
137
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
138
+ lateCancellationBps: z.ZodNumber;
139
+ noShowBps: z.ZodNumber;
140
+ payment: z.ZodObject<{
141
+ route: z.ZodEnum<{
142
+ invoice: "invoice";
143
+ transfer: "transfer";
144
+ }>;
145
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
146
+ }, z.core.$strict>;
147
+ }, z.core.$strict>;
148
+ }, z.core.$strict>;
149
+ quantity: z.ZodNumber;
150
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
151
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
152
+ }, z.core.$strict>;
153
+ export declare const serviceQuoteJson: z.ZodObject<{
154
+ terms: z.ZodObject<{
155
+ version: z.ZodLiteral<2>;
156
+ currency: z.ZodEnum<{
157
+ USD: "USD";
158
+ }>;
159
+ amountDecimals: z.ZodLiteral<6>;
160
+ template: z.ZodLiteral<"service/1">;
161
+ subject: z.ZodObject<{
162
+ offer: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
163
+ item: z.ZodObject<{
164
+ name: z.ZodString;
165
+ summary: z.ZodString;
166
+ }, z.core.$strict>;
167
+ quantity: z.ZodNumber;
168
+ delivery: z.ZodObject<{
169
+ by: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
170
+ evidence: z.ZodString;
171
+ }, z.core.$strict>;
172
+ payment: z.ZodObject<{
173
+ route: z.ZodEnum<{
174
+ invoice: "invoice";
175
+ transfer: "transfer";
176
+ }>;
177
+ dueBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
178
+ }, z.core.$strict>;
179
+ }, z.core.$strict>;
180
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
181
+ kind: z.ZodLiteral<"rate">;
182
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
183
+ unit: z.ZodString;
184
+ }, z.core.$strict>, z.ZodObject<{
185
+ kind: z.ZodLiteral<"fixed">;
186
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
187
+ }, z.core.$strict>], "kind">;
188
+ remedies: z.ZodObject<{
189
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
190
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
191
+ charges: z.ZodArray<z.ZodObject<{
192
+ kind: z.ZodEnum<{
193
+ lateCancellation: "lateCancellation";
194
+ noShow: "noShow";
195
+ }>;
196
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
197
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
198
+ }, z.core.$strict>>;
199
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
200
+ }, z.core.$strict>;
201
+ resolution: z.ZodObject<{
202
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
203
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
204
+ day90SupplierShareBps: z.ZodNumber;
205
+ }, z.core.$strict>;
206
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
207
+ kind: z.ZodLiteral<"reserve">;
208
+ side: z.ZodLiteral<"buyer">;
209
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
210
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
211
+ }, z.core.$strict>], "kind">;
212
+ }, z.core.$strict>;
213
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
214
+ agreement: z.ZodObject<{
215
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
216
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
217
+ category: z.ZodString;
218
+ buyerBusinessId: z.ZodString;
219
+ supplierBusinessId: z.ZodString;
220
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
221
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
222
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
223
+ }, z.core.$strict>;
224
+ supplierSignature: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
225
+ }, z.core.$strict>;
226
+ export declare const serviceOrderJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ status: z.ZodLiteral<"requested">;
228
+ orderId: z.ZodString;
229
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
230
+ offer: z.ZodObject<{
231
+ supplier: z.ZodString;
232
+ item: z.ZodObject<{
233
+ name: z.ZodString;
234
+ summary: z.ZodString;
235
+ }, z.core.$strict>;
236
+ currency: z.ZodEnum<{
237
+ USD: "USD";
238
+ }>;
239
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
240
+ rules: z.ZodObject<{
241
+ evidence: z.ZodString;
242
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
243
+ maxPerBooking: z.ZodNumber;
244
+ dailyCapacity: z.ZodNumber;
245
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
246
+ lateCancellationBps: z.ZodNumber;
247
+ noShowBps: z.ZodNumber;
248
+ payment: z.ZodObject<{
249
+ route: z.ZodEnum<{
250
+ invoice: "invoice";
251
+ transfer: "transfer";
252
+ }>;
253
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
254
+ }, z.core.$strict>;
255
+ }, z.core.$strict>;
256
+ }, z.core.$strict>;
257
+ quantity: z.ZodNumber;
258
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
259
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
260
+ buyer: z.ZodObject<{
261
+ businessId: z.ZodString;
262
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
263
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
264
+ chainId: z.ZodNumber;
265
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
266
+ }, z.core.$strict>;
267
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ status: z.ZodLiteral<"expired">;
270
+ quote: z.ZodNullable<z.ZodObject<{
271
+ terms: z.ZodObject<{
272
+ version: z.ZodLiteral<2>;
273
+ currency: z.ZodEnum<{
274
+ USD: "USD";
275
+ }>;
276
+ amountDecimals: z.ZodLiteral<6>;
277
+ template: z.ZodLiteral<"service/1">;
278
+ subject: z.ZodObject<{
279
+ offer: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
280
+ item: z.ZodObject<{
281
+ name: z.ZodString;
282
+ summary: z.ZodString;
283
+ }, z.core.$strict>;
284
+ quantity: z.ZodNumber;
285
+ delivery: z.ZodObject<{
286
+ by: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
287
+ evidence: z.ZodString;
288
+ }, z.core.$strict>;
289
+ payment: z.ZodObject<{
290
+ route: z.ZodEnum<{
291
+ invoice: "invoice";
292
+ transfer: "transfer";
293
+ }>;
294
+ dueBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
295
+ }, z.core.$strict>;
296
+ }, z.core.$strict>;
297
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
+ kind: z.ZodLiteral<"rate">;
299
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
300
+ unit: z.ZodString;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"fixed">;
303
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
304
+ }, z.core.$strict>], "kind">;
305
+ remedies: z.ZodObject<{
306
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
307
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
308
+ charges: z.ZodArray<z.ZodObject<{
309
+ kind: z.ZodEnum<{
310
+ lateCancellation: "lateCancellation";
311
+ noShow: "noShow";
312
+ }>;
313
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
314
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
315
+ }, z.core.$strict>>;
316
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
317
+ }, z.core.$strict>;
318
+ resolution: z.ZodObject<{
319
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
320
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
321
+ day90SupplierShareBps: z.ZodNumber;
322
+ }, z.core.$strict>;
323
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
324
+ kind: z.ZodLiteral<"reserve">;
325
+ side: z.ZodLiteral<"buyer">;
326
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
327
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
328
+ }, z.core.$strict>], "kind">;
329
+ }, z.core.$strict>;
330
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
331
+ agreement: z.ZodObject<{
332
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
333
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
334
+ category: z.ZodString;
335
+ buyerBusinessId: z.ZodString;
336
+ supplierBusinessId: z.ZodString;
337
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
338
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
339
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
340
+ }, z.core.$strict>;
341
+ supplierSignature: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
342
+ }, z.core.$strict>>;
343
+ orderId: z.ZodString;
344
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
345
+ offer: z.ZodObject<{
346
+ supplier: z.ZodString;
347
+ item: z.ZodObject<{
348
+ name: z.ZodString;
349
+ summary: z.ZodString;
350
+ }, z.core.$strict>;
351
+ currency: z.ZodEnum<{
352
+ USD: "USD";
353
+ }>;
354
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
355
+ rules: z.ZodObject<{
356
+ evidence: z.ZodString;
357
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
358
+ maxPerBooking: z.ZodNumber;
359
+ dailyCapacity: z.ZodNumber;
360
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
361
+ lateCancellationBps: z.ZodNumber;
362
+ noShowBps: z.ZodNumber;
363
+ payment: z.ZodObject<{
364
+ route: z.ZodEnum<{
365
+ invoice: "invoice";
366
+ transfer: "transfer";
367
+ }>;
368
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
369
+ }, z.core.$strict>;
370
+ }, z.core.$strict>;
371
+ }, z.core.$strict>;
372
+ quantity: z.ZodNumber;
373
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
374
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
375
+ buyer: z.ZodObject<{
376
+ businessId: z.ZodString;
377
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
378
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
379
+ chainId: z.ZodNumber;
380
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
381
+ }, z.core.$strict>;
382
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ status: z.ZodLiteral<"quoted">;
385
+ quote: z.ZodObject<{
386
+ terms: z.ZodObject<{
387
+ version: z.ZodLiteral<2>;
388
+ currency: z.ZodEnum<{
389
+ USD: "USD";
390
+ }>;
391
+ amountDecimals: z.ZodLiteral<6>;
392
+ template: z.ZodLiteral<"service/1">;
393
+ subject: z.ZodObject<{
394
+ offer: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
395
+ item: z.ZodObject<{
396
+ name: z.ZodString;
397
+ summary: z.ZodString;
398
+ }, z.core.$strict>;
399
+ quantity: z.ZodNumber;
400
+ delivery: z.ZodObject<{
401
+ by: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
402
+ evidence: z.ZodString;
403
+ }, z.core.$strict>;
404
+ payment: z.ZodObject<{
405
+ route: z.ZodEnum<{
406
+ invoice: "invoice";
407
+ transfer: "transfer";
408
+ }>;
409
+ dueBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
410
+ }, z.core.$strict>;
411
+ }, z.core.$strict>;
412
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
413
+ kind: z.ZodLiteral<"rate">;
414
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
415
+ unit: z.ZodString;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ kind: z.ZodLiteral<"fixed">;
418
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
419
+ }, z.core.$strict>], "kind">;
420
+ remedies: z.ZodObject<{
421
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
422
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
423
+ charges: z.ZodArray<z.ZodObject<{
424
+ kind: z.ZodEnum<{
425
+ lateCancellation: "lateCancellation";
426
+ noShow: "noShow";
427
+ }>;
428
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
429
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
430
+ }, z.core.$strict>>;
431
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
432
+ }, z.core.$strict>;
433
+ resolution: z.ZodObject<{
434
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
435
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
436
+ day90SupplierShareBps: z.ZodNumber;
437
+ }, z.core.$strict>;
438
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
439
+ kind: z.ZodLiteral<"reserve">;
440
+ side: z.ZodLiteral<"buyer">;
441
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
442
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
443
+ }, z.core.$strict>], "kind">;
444
+ }, z.core.$strict>;
445
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
446
+ agreement: z.ZodObject<{
447
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
448
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
449
+ category: z.ZodString;
450
+ buyerBusinessId: z.ZodString;
451
+ supplierBusinessId: z.ZodString;
452
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
453
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
454
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
455
+ }, z.core.$strict>;
456
+ supplierSignature: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
457
+ }, z.core.$strict>;
458
+ orderId: z.ZodString;
459
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
460
+ offer: z.ZodObject<{
461
+ supplier: z.ZodString;
462
+ item: z.ZodObject<{
463
+ name: z.ZodString;
464
+ summary: z.ZodString;
465
+ }, z.core.$strict>;
466
+ currency: z.ZodEnum<{
467
+ USD: "USD";
468
+ }>;
469
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
470
+ rules: z.ZodObject<{
471
+ evidence: z.ZodString;
472
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
473
+ maxPerBooking: z.ZodNumber;
474
+ dailyCapacity: z.ZodNumber;
475
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
476
+ lateCancellationBps: z.ZodNumber;
477
+ noShowBps: z.ZodNumber;
478
+ payment: z.ZodObject<{
479
+ route: z.ZodEnum<{
480
+ invoice: "invoice";
481
+ transfer: "transfer";
482
+ }>;
483
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
484
+ }, z.core.$strict>;
485
+ }, z.core.$strict>;
486
+ }, z.core.$strict>;
487
+ quantity: z.ZodNumber;
488
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
489
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
490
+ buyer: z.ZodObject<{
491
+ businessId: z.ZodString;
492
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
493
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
494
+ chainId: z.ZodNumber;
495
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
496
+ }, z.core.$strict>;
497
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
498
+ }, z.core.$strict>, z.ZodObject<{
499
+ status: z.ZodLiteral<"reserved">;
500
+ quote: z.ZodObject<{
501
+ terms: z.ZodObject<{
502
+ version: z.ZodLiteral<2>;
503
+ currency: z.ZodEnum<{
504
+ USD: "USD";
505
+ }>;
506
+ amountDecimals: z.ZodLiteral<6>;
507
+ template: z.ZodLiteral<"service/1">;
508
+ subject: z.ZodObject<{
509
+ offer: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
510
+ item: z.ZodObject<{
511
+ name: z.ZodString;
512
+ summary: z.ZodString;
513
+ }, z.core.$strict>;
514
+ quantity: z.ZodNumber;
515
+ delivery: z.ZodObject<{
516
+ by: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
517
+ evidence: z.ZodString;
518
+ }, z.core.$strict>;
519
+ payment: z.ZodObject<{
520
+ route: z.ZodEnum<{
521
+ invoice: "invoice";
522
+ transfer: "transfer";
523
+ }>;
524
+ dueBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
525
+ }, z.core.$strict>;
526
+ }, z.core.$strict>;
527
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
528
+ kind: z.ZodLiteral<"rate">;
529
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
530
+ unit: z.ZodString;
531
+ }, z.core.$strict>, z.ZodObject<{
532
+ kind: z.ZodLiteral<"fixed">;
533
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
534
+ }, z.core.$strict>], "kind">;
535
+ remedies: z.ZodObject<{
536
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
537
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
538
+ charges: z.ZodArray<z.ZodObject<{
539
+ kind: z.ZodEnum<{
540
+ lateCancellation: "lateCancellation";
541
+ noShow: "noShow";
542
+ }>;
543
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
544
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
545
+ }, z.core.$strict>>;
546
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
547
+ }, z.core.$strict>;
548
+ resolution: z.ZodObject<{
549
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
550
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
551
+ day90SupplierShareBps: z.ZodNumber;
552
+ }, z.core.$strict>;
553
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
554
+ kind: z.ZodLiteral<"reserve">;
555
+ side: z.ZodLiteral<"buyer">;
556
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
557
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
558
+ }, z.core.$strict>], "kind">;
559
+ }, z.core.$strict>;
560
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
561
+ agreement: z.ZodObject<{
562
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
563
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
564
+ category: z.ZodString;
565
+ buyerBusinessId: z.ZodString;
566
+ supplierBusinessId: z.ZodString;
567
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
568
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
569
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
570
+ }, z.core.$strict>;
571
+ supplierSignature: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
572
+ }, z.core.$strict>;
573
+ reserve: z.ZodObject<{
574
+ fundedIn: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
575
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
576
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
577
+ }, z.core.$strict>;
578
+ orderId: z.ZodString;
579
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
580
+ offer: z.ZodObject<{
581
+ supplier: z.ZodString;
582
+ item: z.ZodObject<{
583
+ name: z.ZodString;
584
+ summary: z.ZodString;
585
+ }, z.core.$strict>;
586
+ currency: z.ZodEnum<{
587
+ USD: "USD";
588
+ }>;
589
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
590
+ rules: z.ZodObject<{
591
+ evidence: z.ZodString;
592
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
593
+ maxPerBooking: z.ZodNumber;
594
+ dailyCapacity: z.ZodNumber;
595
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
596
+ lateCancellationBps: z.ZodNumber;
597
+ noShowBps: z.ZodNumber;
598
+ payment: z.ZodObject<{
599
+ route: z.ZodEnum<{
600
+ invoice: "invoice";
601
+ transfer: "transfer";
602
+ }>;
603
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
604
+ }, z.core.$strict>;
605
+ }, z.core.$strict>;
606
+ }, z.core.$strict>;
607
+ quantity: z.ZodNumber;
608
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
609
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
610
+ buyer: z.ZodObject<{
611
+ businessId: z.ZodString;
612
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
613
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
614
+ chainId: z.ZodNumber;
615
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
616
+ }, z.core.$strict>;
617
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ status: z.ZodLiteral<"accepted">;
620
+ quote: z.ZodObject<{
621
+ terms: z.ZodObject<{
622
+ version: z.ZodLiteral<2>;
623
+ currency: z.ZodEnum<{
624
+ USD: "USD";
625
+ }>;
626
+ amountDecimals: z.ZodLiteral<6>;
627
+ template: z.ZodLiteral<"service/1">;
628
+ subject: z.ZodObject<{
629
+ offer: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
630
+ item: z.ZodObject<{
631
+ name: z.ZodString;
632
+ summary: z.ZodString;
633
+ }, z.core.$strict>;
634
+ quantity: z.ZodNumber;
635
+ delivery: z.ZodObject<{
636
+ by: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
637
+ evidence: z.ZodString;
638
+ }, z.core.$strict>;
639
+ payment: z.ZodObject<{
640
+ route: z.ZodEnum<{
641
+ invoice: "invoice";
642
+ transfer: "transfer";
643
+ }>;
644
+ dueBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
645
+ }, z.core.$strict>;
646
+ }, z.core.$strict>;
647
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
648
+ kind: z.ZodLiteral<"rate">;
649
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
650
+ unit: z.ZodString;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ kind: z.ZodLiteral<"fixed">;
653
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
654
+ }, z.core.$strict>], "kind">;
655
+ remedies: z.ZodObject<{
656
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
657
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
658
+ charges: z.ZodArray<z.ZodObject<{
659
+ kind: z.ZodEnum<{
660
+ lateCancellation: "lateCancellation";
661
+ noShow: "noShow";
662
+ }>;
663
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
664
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
665
+ }, z.core.$strict>>;
666
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
667
+ }, z.core.$strict>;
668
+ resolution: z.ZodObject<{
669
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
670
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
671
+ day90SupplierShareBps: z.ZodNumber;
672
+ }, z.core.$strict>;
673
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ kind: z.ZodLiteral<"reserve">;
675
+ side: z.ZodLiteral<"buyer">;
676
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
677
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
678
+ }, z.core.$strict>], "kind">;
679
+ }, z.core.$strict>;
680
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
681
+ agreement: z.ZodObject<{
682
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
683
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
684
+ category: z.ZodString;
685
+ buyerBusinessId: z.ZodString;
686
+ supplierBusinessId: z.ZodString;
687
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
688
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
689
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
690
+ }, z.core.$strict>;
691
+ supplierSignature: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
692
+ }, z.core.$strict>;
693
+ reserve: z.ZodObject<{
694
+ fundedIn: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
695
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
696
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
697
+ }, z.core.$strict>;
698
+ acceptedIn: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
699
+ orderId: z.ZodString;
700
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
701
+ offer: z.ZodObject<{
702
+ supplier: z.ZodString;
703
+ item: z.ZodObject<{
704
+ name: z.ZodString;
705
+ summary: z.ZodString;
706
+ }, z.core.$strict>;
707
+ currency: z.ZodEnum<{
708
+ USD: "USD";
709
+ }>;
710
+ unitPrice: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
711
+ rules: z.ZodObject<{
712
+ evidence: z.ZodString;
713
+ leadTime: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
714
+ maxPerBooking: z.ZodNumber;
715
+ dailyCapacity: z.ZodNumber;
716
+ freeCancelWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
717
+ lateCancellationBps: z.ZodNumber;
718
+ noShowBps: z.ZodNumber;
719
+ payment: z.ZodObject<{
720
+ route: z.ZodEnum<{
721
+ invoice: "invoice";
722
+ transfer: "transfer";
723
+ }>;
724
+ dueAfterDelivery: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
725
+ }, z.core.$strict>;
726
+ }, z.core.$strict>;
727
+ }, z.core.$strict>;
728
+ quantity: z.ZodNumber;
729
+ builtAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
730
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
731
+ buyer: z.ZodObject<{
732
+ businessId: z.ZodString;
733
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
734
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
735
+ chainId: z.ZodNumber;
736
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
737
+ }, z.core.$strict>;
738
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
739
+ }, z.core.$strict>], "status">;
740
+ export declare const parseServiceOrderRequest: (json: unknown) => ServiceOrderRequest | null;
741
+ export declare const parseServiceQuote: (json: unknown) => ServiceQuote | null;
742
+ export declare const parseServiceOrder: (json: unknown) => ServiceOrder | null;
743
+ export declare const parseServiceInbox: (json: unknown) => {
744
+ orders: ServiceOrder[];
745
+ } | null;
746
+ export {};
747
+ //# sourceMappingURL=service-order.d.ts.map