@avow-finance/spec 0.0.0-stage → 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.
Files changed (179) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +119 -2
  3. package/dist/agent-connect.d.ts +82 -0
  4. package/dist/agent-connect.d.ts.map +1 -0
  5. package/dist/agent-connect.js +91 -0
  6. package/dist/agent-connect.js.map +1 -0
  7. package/dist/agent-session.d.ts +791 -0
  8. package/dist/agent-session.d.ts.map +1 -0
  9. package/dist/agent-session.js +176 -0
  10. package/dist/agent-session.js.map +1 -0
  11. package/dist/ap2.d.ts +79 -0
  12. package/dist/ap2.d.ts.map +1 -0
  13. package/dist/ap2.js +151 -0
  14. package/dist/ap2.js.map +1 -0
  15. package/dist/api-request.d.ts +144 -0
  16. package/dist/api-request.d.ts.map +1 -0
  17. package/dist/api-request.js +246 -0
  18. package/dist/api-request.js.map +1 -0
  19. package/dist/api.d.ts +288 -0
  20. package/dist/api.d.ts.map +1 -0
  21. package/dist/api.js +332 -0
  22. package/dist/api.js.map +1 -0
  23. package/dist/canonical.d.ts +22 -0
  24. package/dist/canonical.d.ts.map +1 -0
  25. package/dist/canonical.js +66 -0
  26. package/dist/canonical.js.map +1 -0
  27. package/dist/commitment-card.d.ts +78 -0
  28. package/dist/commitment-card.d.ts.map +1 -0
  29. package/dist/commitment-card.js +224 -0
  30. package/dist/commitment-card.js.map +1 -0
  31. package/dist/commitment.d.ts +185 -0
  32. package/dist/commitment.d.ts.map +1 -0
  33. package/dist/commitment.js +148 -0
  34. package/dist/commitment.js.map +1 -0
  35. package/dist/compute-offers.d.ts +128 -0
  36. package/dist/compute-offers.d.ts.map +1 -0
  37. package/dist/compute-offers.js +111 -0
  38. package/dist/compute-offers.js.map +1 -0
  39. package/dist/contest.d.ts +88 -0
  40. package/dist/contest.d.ts.map +1 -0
  41. package/dist/contest.js +131 -0
  42. package/dist/contest.js.map +1 -0
  43. package/dist/demo.d.ts +69 -0
  44. package/dist/demo.d.ts.map +1 -0
  45. package/dist/demo.js +152 -0
  46. package/dist/demo.js.map +1 -0
  47. package/dist/dependencies.d.ts +308 -0
  48. package/dist/dependencies.d.ts.map +1 -0
  49. package/dist/dependencies.js +133 -0
  50. package/dist/dependencies.js.map +1 -0
  51. package/dist/eip712.d.ts +1569 -0
  52. package/dist/eip712.d.ts.map +1 -0
  53. package/dist/eip712.js +550 -0
  54. package/dist/eip712.js.map +1 -0
  55. package/dist/elided-terms.d.ts +37 -0
  56. package/dist/elided-terms.d.ts.map +1 -0
  57. package/dist/elided-terms.js +48 -0
  58. package/dist/elided-terms.js.map +1 -0
  59. package/dist/erc8183.d.ts +78 -0
  60. package/dist/erc8183.d.ts.map +1 -0
  61. package/dist/erc8183.js +88 -0
  62. package/dist/erc8183.js.map +1 -0
  63. package/dist/facts.d.ts +70 -0
  64. package/dist/facts.d.ts.map +1 -0
  65. package/dist/facts.js +33 -0
  66. package/dist/facts.js.map +1 -0
  67. package/dist/gpu-reservation.d.ts +79 -0
  68. package/dist/gpu-reservation.d.ts.map +1 -0
  69. package/dist/gpu-reservation.js +135 -0
  70. package/dist/gpu-reservation.js.map +1 -0
  71. package/dist/index.d.ts +49 -0
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.js +49 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/job-session.d.ts +981 -0
  76. package/dist/job-session.d.ts.map +1 -0
  77. package/dist/job-session.js +170 -0
  78. package/dist/job-session.js.map +1 -0
  79. package/dist/job-verification.d.ts +244 -0
  80. package/dist/job-verification.d.ts.map +1 -0
  81. package/dist/job-verification.js +89 -0
  82. package/dist/job-verification.js.map +1 -0
  83. package/dist/job-wording.d.ts +48 -0
  84. package/dist/job-wording.d.ts.map +1 -0
  85. package/dist/job-wording.js +134 -0
  86. package/dist/job-wording.js.map +1 -0
  87. package/dist/job.d.ts +117 -0
  88. package/dist/job.d.ts.map +1 -0
  89. package/dist/job.js +166 -0
  90. package/dist/job.js.map +1 -0
  91. package/dist/json-fields.d.ts +13 -0
  92. package/dist/json-fields.d.ts.map +1 -0
  93. package/dist/json-fields.js +30 -0
  94. package/dist/json-fields.js.map +1 -0
  95. package/dist/keychain.d.ts +51 -0
  96. package/dist/keychain.d.ts.map +1 -0
  97. package/dist/keychain.js +133 -0
  98. package/dist/keychain.js.map +1 -0
  99. package/dist/mailbox.d.ts +1650 -0
  100. package/dist/mailbox.d.ts.map +1 -0
  101. package/dist/mailbox.js +87 -0
  102. package/dist/mailbox.js.map +1 -0
  103. package/dist/mandate.d.ts +53 -0
  104. package/dist/mandate.d.ts.map +1 -0
  105. package/dist/mandate.js +97 -0
  106. package/dist/mandate.js.map +1 -0
  107. package/dist/networks.d.ts +18 -0
  108. package/dist/networks.d.ts.map +1 -0
  109. package/dist/networks.js +24 -0
  110. package/dist/networks.js.map +1 -0
  111. package/dist/profiles.d.ts +31 -0
  112. package/dist/profiles.d.ts.map +1 -0
  113. package/dist/profiles.js +33 -0
  114. package/dist/profiles.js.map +1 -0
  115. package/dist/rail.d.ts +48 -0
  116. package/dist/rail.d.ts.map +1 -0
  117. package/dist/rail.js +28 -0
  118. package/dist/rail.js.map +1 -0
  119. package/dist/reasons.d.ts +173 -0
  120. package/dist/reasons.d.ts.map +1 -0
  121. package/dist/reasons.js +174 -0
  122. package/dist/reasons.js.map +1 -0
  123. package/dist/reference-link.d.ts +23 -0
  124. package/dist/reference-link.d.ts.map +1 -0
  125. package/dist/reference-link.js +56 -0
  126. package/dist/reference-link.js.map +1 -0
  127. package/dist/references.d.ts +125 -0
  128. package/dist/references.d.ts.map +1 -0
  129. package/dist/references.js +108 -0
  130. package/dist/references.js.map +1 -0
  131. package/dist/replay.d.ts +30 -0
  132. package/dist/replay.d.ts.map +1 -0
  133. package/dist/replay.js +27 -0
  134. package/dist/replay.js.map +1 -0
  135. package/dist/sandbox-registration.d.ts +200 -0
  136. package/dist/sandbox-registration.d.ts.map +1 -0
  137. package/dist/sandbox-registration.js +172 -0
  138. package/dist/sandbox-registration.js.map +1 -0
  139. package/dist/sandbox.d.ts +3478 -0
  140. package/dist/sandbox.d.ts.map +1 -0
  141. package/dist/sandbox.js +316 -0
  142. package/dist/sandbox.js.map +1 -0
  143. package/dist/session-fields.d.ts +203 -0
  144. package/dist/session-fields.d.ts.map +1 -0
  145. package/dist/session-fields.js +43 -0
  146. package/dist/session-fields.js.map +1 -0
  147. package/dist/supplier-adapter.d.ts +65 -0
  148. package/dist/supplier-adapter.d.ts.map +1 -0
  149. package/dist/supplier-adapter.js +91 -0
  150. package/dist/supplier-adapter.js.map +1 -0
  151. package/dist/terms-v1.d.ts +74 -0
  152. package/dist/terms-v1.d.ts.map +1 -0
  153. package/dist/terms-v1.js +156 -0
  154. package/dist/terms-v1.js.map +1 -0
  155. package/dist/terms.d.ts +341 -0
  156. package/dist/terms.d.ts.map +1 -0
  157. package/dist/terms.js +715 -0
  158. package/dist/terms.js.map +1 -0
  159. package/dist/test-customer.d.ts +1525 -0
  160. package/dist/test-customer.d.ts.map +1 -0
  161. package/dist/test-customer.js +260 -0
  162. package/dist/test-customer.js.map +1 -0
  163. package/dist/types.d.ts +272 -0
  164. package/dist/types.d.ts.map +1 -0
  165. package/dist/types.js +32 -0
  166. package/dist/types.js.map +1 -0
  167. package/dist/version.d.ts +51 -0
  168. package/dist/version.d.ts.map +1 -0
  169. package/dist/version.js +66 -0
  170. package/dist/version.js.map +1 -0
  171. package/dist/wire.d.ts +2698 -0
  172. package/dist/wire.d.ts.map +1 -0
  173. package/dist/wire.js +678 -0
  174. package/dist/wire.js.map +1 -0
  175. package/package.json +37 -3
  176. package/vectors/api-request-v1.json +53 -0
  177. package/vectors/contest-statement-v1.json +42 -0
  178. package/vectors/terms-v2.json +398 -0
  179. package/vectors/terms-v3.json +2103 -0
package/dist/wire.d.ts ADDED
@@ -0,0 +1,2698 @@
1
+ import type { Address, Hex } from 'viem';
2
+ import { z } from 'zod';
3
+ import { type Commitment } from './commitment.js';
4
+ import { type MessageType, type Signed, type SignedAgreement } from './eip712.js';
5
+ import type { ElidedTerms } from './elided-terms.js';
6
+ import type { ReasonCode } from './reasons.js';
7
+ import { type Attribution, type Reference } from './references.js';
8
+ import { type AnyTerms, type SectionDisclosure } from './terms.js';
9
+ import type { ChainedTerms, Mandate, ReserveRequest, Terms } from './types.js';
10
+ /** JSON forms of the records and signed messages, for the API, the SDK and the verifier. */
11
+ /** Version 1 terms, flat and with no version field. Frozen, so commitments made under it stay readable. */
12
+ export declare const computeTermsV1Json: z.ZodObject<{
13
+ kind: z.ZodLiteral<"compute">;
14
+ resource: z.ZodObject<{
15
+ gpu: z.ZodString;
16
+ count: z.ZodNumber;
17
+ region: z.ZodString;
18
+ sku: z.ZodString;
19
+ }, z.core.$strict>;
20
+ currency: z.ZodEnum<{
21
+ USD: "USD";
22
+ }>;
23
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
24
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
25
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
26
+ price: z.ZodObject<{
27
+ perGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
28
+ }, z.core.$strict>;
29
+ reserve: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
30
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
31
+ lateCancellation: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
32
+ noShow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
33
+ gracePeriod: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
34
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
35
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
36
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
37
+ dispute: z.ZodObject<{
38
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
39
+ day90SupplierShareBps: z.ZodNumber;
40
+ }, z.core.$strict>;
41
+ }, z.core.$strict>;
42
+ /** What a GPU reservation promises, the subject of the `gpu-reservation/1` template. */
43
+ export declare const gpuSubjectJson: z.ZodObject<{
44
+ resource: z.ZodObject<{
45
+ gpu: z.ZodString;
46
+ count: z.ZodNumber;
47
+ region: z.ZodString;
48
+ sku: z.ZodString;
49
+ }, z.core.$strict>;
50
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
51
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
52
+ }, z.core.$strict>;
53
+ export declare const considerationJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ kind: z.ZodLiteral<"rate">;
55
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
56
+ unit: z.ZodString;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"fixed">;
59
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
60
+ }, z.core.$strict>], "kind">;
61
+ export declare const remediesJson: z.ZodObject<{
62
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
63
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
64
+ charges: z.ZodArray<z.ZodObject<{
65
+ kind: z.ZodEnum<{
66
+ lateCancellation: "lateCancellation";
67
+ noShow: "noShow";
68
+ }>;
69
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
70
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
71
+ }, z.core.$strict>>;
72
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
73
+ }, z.core.$strict>;
74
+ export declare const resolutionJson: z.ZodObject<{
75
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
76
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
77
+ day90SupplierShareBps: z.ZodNumber;
78
+ }, z.core.$strict>;
79
+ export declare const backingJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
+ kind: z.ZodLiteral<"reserve">;
81
+ side: z.ZodLiteral<"buyer">;
82
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
83
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
84
+ }, z.core.$strict>], "kind">;
85
+ /** Version 2 terms under the GPU reservation template. */
86
+ export declare const gpuReservationTermsJson: z.ZodObject<{
87
+ version: z.ZodLiteral<2>;
88
+ currency: z.ZodEnum<{
89
+ USD: "USD";
90
+ }>;
91
+ amountDecimals: z.ZodLiteral<6>;
92
+ template: z.ZodLiteral<"gpu-reservation/1">;
93
+ subject: z.ZodObject<{
94
+ resource: z.ZodObject<{
95
+ gpu: z.ZodString;
96
+ count: z.ZodNumber;
97
+ region: z.ZodString;
98
+ sku: z.ZodString;
99
+ }, z.core.$strict>;
100
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
101
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
102
+ }, z.core.$strict>;
103
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ kind: z.ZodLiteral<"rate">;
105
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
106
+ unit: z.ZodString;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"fixed">;
109
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
110
+ }, z.core.$strict>], "kind">;
111
+ remedies: z.ZodObject<{
112
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
113
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
114
+ charges: z.ZodArray<z.ZodObject<{
115
+ kind: z.ZodEnum<{
116
+ lateCancellation: "lateCancellation";
117
+ noShow: "noShow";
118
+ }>;
119
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
120
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
121
+ }, z.core.$strict>>;
122
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
123
+ }, z.core.$strict>;
124
+ resolution: z.ZodObject<{
125
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
126
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
127
+ day90SupplierShareBps: z.ZodNumber;
128
+ }, z.core.$strict>;
129
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ kind: z.ZodLiteral<"reserve">;
131
+ side: z.ZodLiteral<"buyer">;
132
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
133
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
134
+ }, z.core.$strict>], "kind">;
135
+ }, z.core.$strict>;
136
+ /** What a job promises, the subject of the `job/1` template. */
137
+ export declare const jobSubjectJson: z.ZodObject<{
138
+ work: z.ZodObject<{
139
+ kind: z.ZodString;
140
+ summary: z.ZodString;
141
+ }, z.core.$strict>;
142
+ compute: z.ZodObject<{
143
+ gpu: z.ZodString;
144
+ count: z.ZodNumber;
145
+ region: z.ZodString;
146
+ }, z.core.$strict>;
147
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
148
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
149
+ }, z.core.$strict>;
150
+ /**
151
+ * Job terms in version 2's shape, as a customer proposes them before compute is named. They read
152
+ * here so a check can refuse them with `dependency.required`, since a job commits only under
153
+ * version 3.
154
+ */
155
+ export declare const jobTermsJson: z.ZodObject<{
156
+ version: z.ZodLiteral<2>;
157
+ currency: z.ZodEnum<{
158
+ USD: "USD";
159
+ }>;
160
+ amountDecimals: z.ZodLiteral<6>;
161
+ template: z.ZodLiteral<"job/1">;
162
+ subject: z.ZodObject<{
163
+ work: z.ZodObject<{
164
+ kind: z.ZodString;
165
+ summary: z.ZodString;
166
+ }, z.core.$strict>;
167
+ compute: z.ZodObject<{
168
+ gpu: z.ZodString;
169
+ count: z.ZodNumber;
170
+ region: z.ZodString;
171
+ }, z.core.$strict>;
172
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
173
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
174
+ }, z.core.$strict>;
175
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ kind: z.ZodLiteral<"rate">;
177
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
178
+ unit: z.ZodString;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ kind: z.ZodLiteral<"fixed">;
181
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
182
+ }, z.core.$strict>], "kind">;
183
+ remedies: z.ZodObject<{
184
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
185
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
186
+ charges: z.ZodArray<z.ZodObject<{
187
+ kind: z.ZodEnum<{
188
+ lateCancellation: "lateCancellation";
189
+ noShow: "noShow";
190
+ }>;
191
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
192
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
193
+ }, z.core.$strict>>;
194
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
195
+ }, z.core.$strict>;
196
+ resolution: z.ZodObject<{
197
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
198
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
199
+ day90SupplierShareBps: z.ZodNumber;
200
+ }, z.core.$strict>;
201
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
202
+ kind: z.ZodLiteral<"reserve">;
203
+ side: z.ZodLiteral<"buyer">;
204
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
205
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
206
+ }, z.core.$strict>], "kind">;
207
+ }, z.core.$strict>;
208
+ /** Version 2 terms under any template this code knows. */
209
+ export declare const termsJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
210
+ version: z.ZodLiteral<2>;
211
+ currency: z.ZodEnum<{
212
+ USD: "USD";
213
+ }>;
214
+ amountDecimals: z.ZodLiteral<6>;
215
+ template: z.ZodLiteral<"gpu-reservation/1">;
216
+ subject: z.ZodObject<{
217
+ resource: z.ZodObject<{
218
+ gpu: z.ZodString;
219
+ count: z.ZodNumber;
220
+ region: z.ZodString;
221
+ sku: z.ZodString;
222
+ }, z.core.$strict>;
223
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
224
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
225
+ }, z.core.$strict>;
226
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ kind: z.ZodLiteral<"rate">;
228
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
229
+ unit: z.ZodString;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ kind: z.ZodLiteral<"fixed">;
232
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
233
+ }, z.core.$strict>], "kind">;
234
+ remedies: z.ZodObject<{
235
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
236
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
237
+ charges: z.ZodArray<z.ZodObject<{
238
+ kind: z.ZodEnum<{
239
+ lateCancellation: "lateCancellation";
240
+ noShow: "noShow";
241
+ }>;
242
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
243
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
244
+ }, z.core.$strict>>;
245
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
246
+ }, z.core.$strict>;
247
+ resolution: z.ZodObject<{
248
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
249
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
250
+ day90SupplierShareBps: z.ZodNumber;
251
+ }, z.core.$strict>;
252
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ kind: z.ZodLiteral<"reserve">;
254
+ side: z.ZodLiteral<"buyer">;
255
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
256
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
257
+ }, z.core.$strict>], "kind">;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ version: z.ZodLiteral<2>;
260
+ currency: z.ZodEnum<{
261
+ USD: "USD";
262
+ }>;
263
+ amountDecimals: z.ZodLiteral<6>;
264
+ template: z.ZodLiteral<"job/1">;
265
+ subject: z.ZodObject<{
266
+ work: z.ZodObject<{
267
+ kind: z.ZodString;
268
+ summary: z.ZodString;
269
+ }, z.core.$strict>;
270
+ compute: z.ZodObject<{
271
+ gpu: z.ZodString;
272
+ count: z.ZodNumber;
273
+ region: z.ZodString;
274
+ }, z.core.$strict>;
275
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
276
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
277
+ }, z.core.$strict>;
278
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
279
+ kind: z.ZodLiteral<"rate">;
280
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
281
+ unit: z.ZodString;
282
+ }, z.core.$strict>, z.ZodObject<{
283
+ kind: z.ZodLiteral<"fixed">;
284
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
285
+ }, z.core.$strict>], "kind">;
286
+ remedies: z.ZodObject<{
287
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
288
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
289
+ charges: z.ZodArray<z.ZodObject<{
290
+ kind: z.ZodEnum<{
291
+ lateCancellation: "lateCancellation";
292
+ noShow: "noShow";
293
+ }>;
294
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
295
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
296
+ }, z.core.$strict>>;
297
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
298
+ }, z.core.$strict>;
299
+ resolution: z.ZodObject<{
300
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
301
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
302
+ day90SupplierShareBps: z.ZodNumber;
303
+ }, z.core.$strict>;
304
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
305
+ kind: z.ZodLiteral<"reserve">;
306
+ side: z.ZodLiteral<"buyer">;
307
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
308
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
309
+ }, z.core.$strict>], "kind">;
310
+ }, z.core.$strict>], "template">;
311
+ /**
312
+ * Version 3 terms under the GPU reservation template, version 2's with the setting for who checks
313
+ * the bookings relied on and the dependencies section.
314
+ */
315
+ export declare const chainedGpuReservationTermsJson: z.ZodObject<{
316
+ currency: z.ZodEnum<{
317
+ USD: "USD";
318
+ }>;
319
+ amountDecimals: z.ZodLiteral<6>;
320
+ template: z.ZodLiteral<"gpu-reservation/1">;
321
+ subject: z.ZodObject<{
322
+ resource: z.ZodObject<{
323
+ gpu: z.ZodString;
324
+ count: z.ZodNumber;
325
+ region: z.ZodString;
326
+ sku: z.ZodString;
327
+ }, z.core.$strict>;
328
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
329
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
330
+ }, z.core.$strict>;
331
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ kind: z.ZodLiteral<"rate">;
333
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
334
+ unit: z.ZodString;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ kind: z.ZodLiteral<"fixed">;
337
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
338
+ }, z.core.$strict>], "kind">;
339
+ remedies: z.ZodObject<{
340
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
341
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
342
+ charges: z.ZodArray<z.ZodObject<{
343
+ kind: z.ZodEnum<{
344
+ lateCancellation: "lateCancellation";
345
+ noShow: "noShow";
346
+ }>;
347
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
348
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
349
+ }, z.core.$strict>>;
350
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
351
+ }, z.core.$strict>;
352
+ resolution: z.ZodObject<{
353
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
354
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
355
+ day90SupplierShareBps: z.ZodNumber;
356
+ }, z.core.$strict>;
357
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
358
+ kind: z.ZodLiteral<"reserve">;
359
+ side: z.ZodLiteral<"buyer">;
360
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
361
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
362
+ }, z.core.$strict>], "kind">;
363
+ version: z.ZodLiteral<3>;
364
+ dependencyCheck: z.ZodEnum<{
365
+ avow: "avow";
366
+ buyer: "buyer";
367
+ }>;
368
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
369
+ on: z.ZodObject<{
370
+ kind: z.ZodLiteral<"commitment">;
371
+ chainId: z.ZodNumber;
372
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
373
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
374
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
375
+ side: z.ZodLiteral<"buyer">;
376
+ }, z.core.$strict>;
377
+ condition: z.ZodEnum<{
378
+ accepted: "accepted";
379
+ }>;
380
+ disclosed: z.ZodEnum<{
381
+ subject: "subject";
382
+ }>;
383
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
384
+ on: z.ZodObject<{
385
+ kind: z.ZodLiteral<"commitment">;
386
+ chainId: z.ZodNumber;
387
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
388
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
389
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
390
+ side: z.ZodLiteral<"buyer">;
391
+ }, z.core.$strict>;
392
+ condition: z.ZodEnum<{
393
+ accepted: "accepted";
394
+ }>;
395
+ disclosed: z.ZodEnum<{
396
+ subject: "subject";
397
+ }>;
398
+ }, z.core.$strict>, z.ZodObject<{
399
+ on: z.ZodObject<{
400
+ kind: z.ZodLiteral<"commitment">;
401
+ chainId: z.ZodNumber;
402
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
403
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
404
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
405
+ side: z.ZodLiteral<"buyer">;
406
+ }, z.core.$strict>;
407
+ condition: z.ZodEnum<{
408
+ accepted: "accepted";
409
+ }>;
410
+ disclosed: z.ZodEnum<{
411
+ subject: "subject";
412
+ }>;
413
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
414
+ on: z.ZodObject<{
415
+ kind: z.ZodLiteral<"commitment">;
416
+ chainId: z.ZodNumber;
417
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
418
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
419
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
420
+ side: z.ZodLiteral<"buyer">;
421
+ }, z.core.$strict>;
422
+ condition: z.ZodEnum<{
423
+ accepted: "accepted";
424
+ }>;
425
+ disclosed: z.ZodEnum<{
426
+ subject: "subject";
427
+ }>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ on: z.ZodObject<{
430
+ kind: z.ZodLiteral<"commitment">;
431
+ chainId: z.ZodNumber;
432
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
433
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
434
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
435
+ side: z.ZodLiteral<"buyer">;
436
+ }, z.core.$strict>;
437
+ condition: z.ZodEnum<{
438
+ accepted: "accepted";
439
+ }>;
440
+ disclosed: z.ZodEnum<{
441
+ subject: "subject";
442
+ }>;
443
+ }, z.core.$strict>, z.ZodObject<{
444
+ on: z.ZodObject<{
445
+ kind: z.ZodLiteral<"commitment">;
446
+ chainId: z.ZodNumber;
447
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
448
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
449
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
450
+ side: z.ZodLiteral<"buyer">;
451
+ }, z.core.$strict>;
452
+ condition: z.ZodEnum<{
453
+ accepted: "accepted";
454
+ }>;
455
+ disclosed: z.ZodEnum<{
456
+ subject: "subject";
457
+ }>;
458
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
459
+ on: z.ZodObject<{
460
+ kind: z.ZodLiteral<"commitment">;
461
+ chainId: z.ZodNumber;
462
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
463
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
464
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
465
+ side: z.ZodLiteral<"buyer">;
466
+ }, z.core.$strict>;
467
+ condition: z.ZodEnum<{
468
+ accepted: "accepted";
469
+ }>;
470
+ disclosed: z.ZodEnum<{
471
+ subject: "subject";
472
+ }>;
473
+ }, z.core.$strict>, z.ZodObject<{
474
+ on: z.ZodObject<{
475
+ kind: z.ZodLiteral<"commitment">;
476
+ chainId: z.ZodNumber;
477
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
478
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
479
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
480
+ side: z.ZodLiteral<"buyer">;
481
+ }, z.core.$strict>;
482
+ condition: z.ZodEnum<{
483
+ accepted: "accepted";
484
+ }>;
485
+ disclosed: z.ZodEnum<{
486
+ subject: "subject";
487
+ }>;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ on: z.ZodObject<{
490
+ kind: z.ZodLiteral<"commitment">;
491
+ chainId: z.ZodNumber;
492
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
493
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
494
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
495
+ side: z.ZodLiteral<"buyer">;
496
+ }, z.core.$strict>;
497
+ condition: z.ZodEnum<{
498
+ accepted: "accepted";
499
+ }>;
500
+ disclosed: z.ZodEnum<{
501
+ subject: "subject";
502
+ }>;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ on: z.ZodObject<{
505
+ kind: z.ZodLiteral<"commitment">;
506
+ chainId: z.ZodNumber;
507
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
508
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
509
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
510
+ side: z.ZodLiteral<"buyer">;
511
+ }, z.core.$strict>;
512
+ condition: z.ZodEnum<{
513
+ accepted: "accepted";
514
+ }>;
515
+ disclosed: z.ZodEnum<{
516
+ subject: "subject";
517
+ }>;
518
+ }, z.core.$strict>], null>]>;
519
+ }, z.core.$strict>;
520
+ /** Version 3 job terms, which name the booking of the compute the job runs on and say the buyer checks it. */
521
+ export declare const chainedJobTermsJson: z.ZodObject<{
522
+ currency: z.ZodEnum<{
523
+ USD: "USD";
524
+ }>;
525
+ amountDecimals: z.ZodLiteral<6>;
526
+ template: z.ZodLiteral<"job/1">;
527
+ subject: z.ZodObject<{
528
+ work: z.ZodObject<{
529
+ kind: z.ZodString;
530
+ summary: z.ZodString;
531
+ }, z.core.$strict>;
532
+ compute: z.ZodObject<{
533
+ gpu: z.ZodString;
534
+ count: z.ZodNumber;
535
+ region: z.ZodString;
536
+ }, z.core.$strict>;
537
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
538
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
539
+ }, z.core.$strict>;
540
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
541
+ kind: z.ZodLiteral<"rate">;
542
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
543
+ unit: z.ZodString;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"fixed">;
546
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
547
+ }, z.core.$strict>], "kind">;
548
+ remedies: z.ZodObject<{
549
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
550
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
551
+ charges: z.ZodArray<z.ZodObject<{
552
+ kind: z.ZodEnum<{
553
+ lateCancellation: "lateCancellation";
554
+ noShow: "noShow";
555
+ }>;
556
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
557
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
558
+ }, z.core.$strict>>;
559
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
560
+ }, z.core.$strict>;
561
+ resolution: z.ZodObject<{
562
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
563
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
564
+ day90SupplierShareBps: z.ZodNumber;
565
+ }, z.core.$strict>;
566
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ kind: z.ZodLiteral<"reserve">;
568
+ side: z.ZodLiteral<"buyer">;
569
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
570
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
571
+ }, z.core.$strict>], "kind">;
572
+ version: z.ZodLiteral<3>;
573
+ dependencyCheck: z.ZodEnum<{
574
+ buyer: "buyer";
575
+ }>;
576
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
577
+ on: z.ZodObject<{
578
+ kind: z.ZodLiteral<"commitment">;
579
+ chainId: z.ZodNumber;
580
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
581
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
582
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
583
+ side: z.ZodLiteral<"buyer">;
584
+ }, z.core.$strict>;
585
+ condition: z.ZodEnum<{
586
+ accepted: "accepted";
587
+ }>;
588
+ disclosed: z.ZodEnum<{
589
+ subject: "subject";
590
+ }>;
591
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
592
+ on: z.ZodObject<{
593
+ kind: z.ZodLiteral<"commitment">;
594
+ chainId: z.ZodNumber;
595
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
596
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
597
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
598
+ side: z.ZodLiteral<"buyer">;
599
+ }, z.core.$strict>;
600
+ condition: z.ZodEnum<{
601
+ accepted: "accepted";
602
+ }>;
603
+ disclosed: z.ZodEnum<{
604
+ subject: "subject";
605
+ }>;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ on: z.ZodObject<{
608
+ kind: z.ZodLiteral<"commitment">;
609
+ chainId: z.ZodNumber;
610
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
611
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
612
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
613
+ side: z.ZodLiteral<"buyer">;
614
+ }, z.core.$strict>;
615
+ condition: z.ZodEnum<{
616
+ accepted: "accepted";
617
+ }>;
618
+ disclosed: z.ZodEnum<{
619
+ subject: "subject";
620
+ }>;
621
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
622
+ on: z.ZodObject<{
623
+ kind: z.ZodLiteral<"commitment">;
624
+ chainId: z.ZodNumber;
625
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
626
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
627
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
628
+ side: z.ZodLiteral<"buyer">;
629
+ }, z.core.$strict>;
630
+ condition: z.ZodEnum<{
631
+ accepted: "accepted";
632
+ }>;
633
+ disclosed: z.ZodEnum<{
634
+ subject: "subject";
635
+ }>;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ on: z.ZodObject<{
638
+ kind: z.ZodLiteral<"commitment">;
639
+ chainId: z.ZodNumber;
640
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
641
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
642
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
643
+ side: z.ZodLiteral<"buyer">;
644
+ }, z.core.$strict>;
645
+ condition: z.ZodEnum<{
646
+ accepted: "accepted";
647
+ }>;
648
+ disclosed: z.ZodEnum<{
649
+ subject: "subject";
650
+ }>;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ on: z.ZodObject<{
653
+ kind: z.ZodLiteral<"commitment">;
654
+ chainId: z.ZodNumber;
655
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
656
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
657
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
658
+ side: z.ZodLiteral<"buyer">;
659
+ }, z.core.$strict>;
660
+ condition: z.ZodEnum<{
661
+ accepted: "accepted";
662
+ }>;
663
+ disclosed: z.ZodEnum<{
664
+ subject: "subject";
665
+ }>;
666
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
667
+ on: z.ZodObject<{
668
+ kind: z.ZodLiteral<"commitment">;
669
+ chainId: z.ZodNumber;
670
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
671
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
672
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
673
+ side: z.ZodLiteral<"buyer">;
674
+ }, z.core.$strict>;
675
+ condition: z.ZodEnum<{
676
+ accepted: "accepted";
677
+ }>;
678
+ disclosed: z.ZodEnum<{
679
+ subject: "subject";
680
+ }>;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ on: z.ZodObject<{
683
+ kind: z.ZodLiteral<"commitment">;
684
+ chainId: z.ZodNumber;
685
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
686
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
687
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
688
+ side: z.ZodLiteral<"buyer">;
689
+ }, z.core.$strict>;
690
+ condition: z.ZodEnum<{
691
+ accepted: "accepted";
692
+ }>;
693
+ disclosed: z.ZodEnum<{
694
+ subject: "subject";
695
+ }>;
696
+ }, z.core.$strict>, z.ZodObject<{
697
+ on: z.ZodObject<{
698
+ kind: z.ZodLiteral<"commitment">;
699
+ chainId: z.ZodNumber;
700
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
701
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
702
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
703
+ side: z.ZodLiteral<"buyer">;
704
+ }, z.core.$strict>;
705
+ condition: z.ZodEnum<{
706
+ accepted: "accepted";
707
+ }>;
708
+ disclosed: z.ZodEnum<{
709
+ subject: "subject";
710
+ }>;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ on: z.ZodObject<{
713
+ kind: z.ZodLiteral<"commitment">;
714
+ chainId: z.ZodNumber;
715
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
716
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
717
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
718
+ side: z.ZodLiteral<"buyer">;
719
+ }, z.core.$strict>;
720
+ condition: z.ZodEnum<{
721
+ accepted: "accepted";
722
+ }>;
723
+ disclosed: z.ZodEnum<{
724
+ subject: "subject";
725
+ }>;
726
+ }, z.core.$strict>], null>]>;
727
+ }, z.core.$strict>;
728
+ /** Version 3 terms under any template this code knows. */
729
+ export declare const chainedTermsJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
730
+ currency: z.ZodEnum<{
731
+ USD: "USD";
732
+ }>;
733
+ amountDecimals: z.ZodLiteral<6>;
734
+ template: z.ZodLiteral<"gpu-reservation/1">;
735
+ subject: z.ZodObject<{
736
+ resource: z.ZodObject<{
737
+ gpu: z.ZodString;
738
+ count: z.ZodNumber;
739
+ region: z.ZodString;
740
+ sku: z.ZodString;
741
+ }, z.core.$strict>;
742
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
743
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
744
+ }, z.core.$strict>;
745
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
746
+ kind: z.ZodLiteral<"rate">;
747
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
748
+ unit: z.ZodString;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ kind: z.ZodLiteral<"fixed">;
751
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
752
+ }, z.core.$strict>], "kind">;
753
+ remedies: z.ZodObject<{
754
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
755
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
756
+ charges: z.ZodArray<z.ZodObject<{
757
+ kind: z.ZodEnum<{
758
+ lateCancellation: "lateCancellation";
759
+ noShow: "noShow";
760
+ }>;
761
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
762
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
763
+ }, z.core.$strict>>;
764
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
765
+ }, z.core.$strict>;
766
+ resolution: z.ZodObject<{
767
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
768
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
769
+ day90SupplierShareBps: z.ZodNumber;
770
+ }, z.core.$strict>;
771
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
+ kind: z.ZodLiteral<"reserve">;
773
+ side: z.ZodLiteral<"buyer">;
774
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
775
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
776
+ }, z.core.$strict>], "kind">;
777
+ version: z.ZodLiteral<3>;
778
+ dependencyCheck: z.ZodEnum<{
779
+ avow: "avow";
780
+ buyer: "buyer";
781
+ }>;
782
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
783
+ on: z.ZodObject<{
784
+ kind: z.ZodLiteral<"commitment">;
785
+ chainId: z.ZodNumber;
786
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
787
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
788
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
789
+ side: z.ZodLiteral<"buyer">;
790
+ }, z.core.$strict>;
791
+ condition: z.ZodEnum<{
792
+ accepted: "accepted";
793
+ }>;
794
+ disclosed: z.ZodEnum<{
795
+ subject: "subject";
796
+ }>;
797
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
798
+ on: z.ZodObject<{
799
+ kind: z.ZodLiteral<"commitment">;
800
+ chainId: z.ZodNumber;
801
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
802
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
803
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
804
+ side: z.ZodLiteral<"buyer">;
805
+ }, z.core.$strict>;
806
+ condition: z.ZodEnum<{
807
+ accepted: "accepted";
808
+ }>;
809
+ disclosed: z.ZodEnum<{
810
+ subject: "subject";
811
+ }>;
812
+ }, z.core.$strict>, z.ZodObject<{
813
+ on: z.ZodObject<{
814
+ kind: z.ZodLiteral<"commitment">;
815
+ chainId: z.ZodNumber;
816
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
817
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
818
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
819
+ side: z.ZodLiteral<"buyer">;
820
+ }, z.core.$strict>;
821
+ condition: z.ZodEnum<{
822
+ accepted: "accepted";
823
+ }>;
824
+ disclosed: z.ZodEnum<{
825
+ subject: "subject";
826
+ }>;
827
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
828
+ on: z.ZodObject<{
829
+ kind: z.ZodLiteral<"commitment">;
830
+ chainId: z.ZodNumber;
831
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
832
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
833
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
834
+ side: z.ZodLiteral<"buyer">;
835
+ }, z.core.$strict>;
836
+ condition: z.ZodEnum<{
837
+ accepted: "accepted";
838
+ }>;
839
+ disclosed: z.ZodEnum<{
840
+ subject: "subject";
841
+ }>;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ on: z.ZodObject<{
844
+ kind: z.ZodLiteral<"commitment">;
845
+ chainId: z.ZodNumber;
846
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
847
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
848
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
849
+ side: z.ZodLiteral<"buyer">;
850
+ }, z.core.$strict>;
851
+ condition: z.ZodEnum<{
852
+ accepted: "accepted";
853
+ }>;
854
+ disclosed: z.ZodEnum<{
855
+ subject: "subject";
856
+ }>;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ on: z.ZodObject<{
859
+ kind: z.ZodLiteral<"commitment">;
860
+ chainId: z.ZodNumber;
861
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
862
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
863
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
864
+ side: z.ZodLiteral<"buyer">;
865
+ }, z.core.$strict>;
866
+ condition: z.ZodEnum<{
867
+ accepted: "accepted";
868
+ }>;
869
+ disclosed: z.ZodEnum<{
870
+ subject: "subject";
871
+ }>;
872
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
873
+ on: z.ZodObject<{
874
+ kind: z.ZodLiteral<"commitment">;
875
+ chainId: z.ZodNumber;
876
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
877
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
878
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
879
+ side: z.ZodLiteral<"buyer">;
880
+ }, z.core.$strict>;
881
+ condition: z.ZodEnum<{
882
+ accepted: "accepted";
883
+ }>;
884
+ disclosed: z.ZodEnum<{
885
+ subject: "subject";
886
+ }>;
887
+ }, z.core.$strict>, z.ZodObject<{
888
+ on: z.ZodObject<{
889
+ kind: z.ZodLiteral<"commitment">;
890
+ chainId: z.ZodNumber;
891
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
892
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
893
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
894
+ side: z.ZodLiteral<"buyer">;
895
+ }, z.core.$strict>;
896
+ condition: z.ZodEnum<{
897
+ accepted: "accepted";
898
+ }>;
899
+ disclosed: z.ZodEnum<{
900
+ subject: "subject";
901
+ }>;
902
+ }, z.core.$strict>, z.ZodObject<{
903
+ on: z.ZodObject<{
904
+ kind: z.ZodLiteral<"commitment">;
905
+ chainId: z.ZodNumber;
906
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
907
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
908
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
909
+ side: z.ZodLiteral<"buyer">;
910
+ }, z.core.$strict>;
911
+ condition: z.ZodEnum<{
912
+ accepted: "accepted";
913
+ }>;
914
+ disclosed: z.ZodEnum<{
915
+ subject: "subject";
916
+ }>;
917
+ }, z.core.$strict>, z.ZodObject<{
918
+ on: z.ZodObject<{
919
+ kind: z.ZodLiteral<"commitment">;
920
+ chainId: z.ZodNumber;
921
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
922
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
923
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
924
+ side: z.ZodLiteral<"buyer">;
925
+ }, z.core.$strict>;
926
+ condition: z.ZodEnum<{
927
+ accepted: "accepted";
928
+ }>;
929
+ disclosed: z.ZodEnum<{
930
+ subject: "subject";
931
+ }>;
932
+ }, z.core.$strict>], null>]>;
933
+ }, z.core.$strict>, z.ZodObject<{
934
+ currency: z.ZodEnum<{
935
+ USD: "USD";
936
+ }>;
937
+ amountDecimals: z.ZodLiteral<6>;
938
+ template: z.ZodLiteral<"job/1">;
939
+ subject: z.ZodObject<{
940
+ work: z.ZodObject<{
941
+ kind: z.ZodString;
942
+ summary: z.ZodString;
943
+ }, z.core.$strict>;
944
+ compute: z.ZodObject<{
945
+ gpu: z.ZodString;
946
+ count: z.ZodNumber;
947
+ region: z.ZodString;
948
+ }, z.core.$strict>;
949
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
950
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
951
+ }, z.core.$strict>;
952
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
953
+ kind: z.ZodLiteral<"rate">;
954
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
955
+ unit: z.ZodString;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ kind: z.ZodLiteral<"fixed">;
958
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
959
+ }, z.core.$strict>], "kind">;
960
+ remedies: z.ZodObject<{
961
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
962
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
963
+ charges: z.ZodArray<z.ZodObject<{
964
+ kind: z.ZodEnum<{
965
+ lateCancellation: "lateCancellation";
966
+ noShow: "noShow";
967
+ }>;
968
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
969
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
970
+ }, z.core.$strict>>;
971
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
972
+ }, z.core.$strict>;
973
+ resolution: z.ZodObject<{
974
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
975
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
976
+ day90SupplierShareBps: z.ZodNumber;
977
+ }, z.core.$strict>;
978
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
979
+ kind: z.ZodLiteral<"reserve">;
980
+ side: z.ZodLiteral<"buyer">;
981
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
982
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
983
+ }, z.core.$strict>], "kind">;
984
+ version: z.ZodLiteral<3>;
985
+ dependencyCheck: z.ZodEnum<{
986
+ buyer: "buyer";
987
+ }>;
988
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
989
+ on: z.ZodObject<{
990
+ kind: z.ZodLiteral<"commitment">;
991
+ chainId: z.ZodNumber;
992
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
993
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
994
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
995
+ side: z.ZodLiteral<"buyer">;
996
+ }, z.core.$strict>;
997
+ condition: z.ZodEnum<{
998
+ accepted: "accepted";
999
+ }>;
1000
+ disclosed: z.ZodEnum<{
1001
+ subject: "subject";
1002
+ }>;
1003
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1004
+ on: z.ZodObject<{
1005
+ kind: z.ZodLiteral<"commitment">;
1006
+ chainId: z.ZodNumber;
1007
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1008
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1009
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1010
+ side: z.ZodLiteral<"buyer">;
1011
+ }, z.core.$strict>;
1012
+ condition: z.ZodEnum<{
1013
+ accepted: "accepted";
1014
+ }>;
1015
+ disclosed: z.ZodEnum<{
1016
+ subject: "subject";
1017
+ }>;
1018
+ }, z.core.$strict>, z.ZodObject<{
1019
+ on: z.ZodObject<{
1020
+ kind: z.ZodLiteral<"commitment">;
1021
+ chainId: z.ZodNumber;
1022
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1023
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1024
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1025
+ side: z.ZodLiteral<"buyer">;
1026
+ }, z.core.$strict>;
1027
+ condition: z.ZodEnum<{
1028
+ accepted: "accepted";
1029
+ }>;
1030
+ disclosed: z.ZodEnum<{
1031
+ subject: "subject";
1032
+ }>;
1033
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1034
+ on: z.ZodObject<{
1035
+ kind: z.ZodLiteral<"commitment">;
1036
+ chainId: z.ZodNumber;
1037
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1038
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1039
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1040
+ side: z.ZodLiteral<"buyer">;
1041
+ }, z.core.$strict>;
1042
+ condition: z.ZodEnum<{
1043
+ accepted: "accepted";
1044
+ }>;
1045
+ disclosed: z.ZodEnum<{
1046
+ subject: "subject";
1047
+ }>;
1048
+ }, z.core.$strict>, z.ZodObject<{
1049
+ on: z.ZodObject<{
1050
+ kind: z.ZodLiteral<"commitment">;
1051
+ chainId: z.ZodNumber;
1052
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1053
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1054
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1055
+ side: z.ZodLiteral<"buyer">;
1056
+ }, z.core.$strict>;
1057
+ condition: z.ZodEnum<{
1058
+ accepted: "accepted";
1059
+ }>;
1060
+ disclosed: z.ZodEnum<{
1061
+ subject: "subject";
1062
+ }>;
1063
+ }, z.core.$strict>, z.ZodObject<{
1064
+ on: z.ZodObject<{
1065
+ kind: z.ZodLiteral<"commitment">;
1066
+ chainId: z.ZodNumber;
1067
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1068
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1069
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1070
+ side: z.ZodLiteral<"buyer">;
1071
+ }, z.core.$strict>;
1072
+ condition: z.ZodEnum<{
1073
+ accepted: "accepted";
1074
+ }>;
1075
+ disclosed: z.ZodEnum<{
1076
+ subject: "subject";
1077
+ }>;
1078
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1079
+ on: z.ZodObject<{
1080
+ kind: z.ZodLiteral<"commitment">;
1081
+ chainId: z.ZodNumber;
1082
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1083
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1084
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1085
+ side: z.ZodLiteral<"buyer">;
1086
+ }, z.core.$strict>;
1087
+ condition: z.ZodEnum<{
1088
+ accepted: "accepted";
1089
+ }>;
1090
+ disclosed: z.ZodEnum<{
1091
+ subject: "subject";
1092
+ }>;
1093
+ }, z.core.$strict>, z.ZodObject<{
1094
+ on: z.ZodObject<{
1095
+ kind: z.ZodLiteral<"commitment">;
1096
+ chainId: z.ZodNumber;
1097
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1098
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1099
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1100
+ side: z.ZodLiteral<"buyer">;
1101
+ }, z.core.$strict>;
1102
+ condition: z.ZodEnum<{
1103
+ accepted: "accepted";
1104
+ }>;
1105
+ disclosed: z.ZodEnum<{
1106
+ subject: "subject";
1107
+ }>;
1108
+ }, z.core.$strict>, z.ZodObject<{
1109
+ on: z.ZodObject<{
1110
+ kind: z.ZodLiteral<"commitment">;
1111
+ chainId: z.ZodNumber;
1112
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1113
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1114
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1115
+ side: z.ZodLiteral<"buyer">;
1116
+ }, z.core.$strict>;
1117
+ condition: z.ZodEnum<{
1118
+ accepted: "accepted";
1119
+ }>;
1120
+ disclosed: z.ZodEnum<{
1121
+ subject: "subject";
1122
+ }>;
1123
+ }, z.core.$strict>, z.ZodObject<{
1124
+ on: z.ZodObject<{
1125
+ kind: z.ZodLiteral<"commitment">;
1126
+ chainId: z.ZodNumber;
1127
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1128
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1129
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1130
+ side: z.ZodLiteral<"buyer">;
1131
+ }, z.core.$strict>;
1132
+ condition: z.ZodEnum<{
1133
+ accepted: "accepted";
1134
+ }>;
1135
+ disclosed: z.ZodEnum<{
1136
+ subject: "subject";
1137
+ }>;
1138
+ }, z.core.$strict>], null>]>;
1139
+ }, z.core.$strict>], "template">;
1140
+ /**
1141
+ * The buyer's view of version 3 GPU reservation terms Avow checks. The header says Avow checks,
1142
+ * every section but dependencies is in clear with its own salt, and dependencies is exactly its
1143
+ * label and digest.
1144
+ */
1145
+ export declare const elidedGpuReservationTermsJson: z.ZodObject<{
1146
+ currency: z.ZodEnum<{
1147
+ USD: "USD";
1148
+ }>;
1149
+ amountDecimals: z.ZodLiteral<6>;
1150
+ template: z.ZodLiteral<"gpu-reservation/1">;
1151
+ subject: z.ZodObject<{
1152
+ resource: z.ZodObject<{
1153
+ gpu: z.ZodString;
1154
+ count: z.ZodNumber;
1155
+ region: z.ZodString;
1156
+ sku: z.ZodString;
1157
+ }, z.core.$strict>;
1158
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1159
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1160
+ }, z.core.$strict>;
1161
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1162
+ kind: z.ZodLiteral<"rate">;
1163
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1164
+ unit: z.ZodString;
1165
+ }, z.core.$strict>, z.ZodObject<{
1166
+ kind: z.ZodLiteral<"fixed">;
1167
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1168
+ }, z.core.$strict>], "kind">;
1169
+ remedies: z.ZodObject<{
1170
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1171
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1172
+ charges: z.ZodArray<z.ZodObject<{
1173
+ kind: z.ZodEnum<{
1174
+ lateCancellation: "lateCancellation";
1175
+ noShow: "noShow";
1176
+ }>;
1177
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1178
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1179
+ }, z.core.$strict>>;
1180
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1181
+ }, z.core.$strict>;
1182
+ resolution: z.ZodObject<{
1183
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1184
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1185
+ day90SupplierShareBps: z.ZodNumber;
1186
+ }, z.core.$strict>;
1187
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1188
+ kind: z.ZodLiteral<"reserve">;
1189
+ side: z.ZodLiteral<"buyer">;
1190
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1191
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1192
+ }, z.core.$strict>], "kind">;
1193
+ version: z.ZodLiteral<3>;
1194
+ dependencyCheck: z.ZodLiteral<"avow">;
1195
+ dependencies: z.ZodObject<{
1196
+ label: z.ZodLiteral<string>;
1197
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1198
+ }, z.core.$strict>;
1199
+ salts: z.ZodObject<{
1200
+ subject: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1201
+ consideration: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1202
+ remedies: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1203
+ resolution: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1204
+ backing: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1205
+ }, z.core.$strict>;
1206
+ }, z.core.$strict>;
1207
+ /** The buyer's view of version 3 terms under any template this code knows. */
1208
+ export declare const elidedTermsJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
1209
+ currency: z.ZodEnum<{
1210
+ USD: "USD";
1211
+ }>;
1212
+ amountDecimals: z.ZodLiteral<6>;
1213
+ template: z.ZodLiteral<"gpu-reservation/1">;
1214
+ subject: z.ZodObject<{
1215
+ resource: z.ZodObject<{
1216
+ gpu: z.ZodString;
1217
+ count: z.ZodNumber;
1218
+ region: z.ZodString;
1219
+ sku: z.ZodString;
1220
+ }, z.core.$strict>;
1221
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1222
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1223
+ }, z.core.$strict>;
1224
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1225
+ kind: z.ZodLiteral<"rate">;
1226
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1227
+ unit: z.ZodString;
1228
+ }, z.core.$strict>, z.ZodObject<{
1229
+ kind: z.ZodLiteral<"fixed">;
1230
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1231
+ }, z.core.$strict>], "kind">;
1232
+ remedies: z.ZodObject<{
1233
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1234
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1235
+ charges: z.ZodArray<z.ZodObject<{
1236
+ kind: z.ZodEnum<{
1237
+ lateCancellation: "lateCancellation";
1238
+ noShow: "noShow";
1239
+ }>;
1240
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1241
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1242
+ }, z.core.$strict>>;
1243
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1244
+ }, z.core.$strict>;
1245
+ resolution: z.ZodObject<{
1246
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1247
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1248
+ day90SupplierShareBps: z.ZodNumber;
1249
+ }, z.core.$strict>;
1250
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1251
+ kind: z.ZodLiteral<"reserve">;
1252
+ side: z.ZodLiteral<"buyer">;
1253
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1254
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1255
+ }, z.core.$strict>], "kind">;
1256
+ version: z.ZodLiteral<3>;
1257
+ dependencyCheck: z.ZodLiteral<"avow">;
1258
+ dependencies: z.ZodObject<{
1259
+ label: z.ZodLiteral<string>;
1260
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1261
+ }, z.core.$strict>;
1262
+ salts: z.ZodObject<{
1263
+ subject: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1264
+ consideration: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1265
+ remedies: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1266
+ resolution: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1267
+ backing: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1268
+ }, z.core.$strict>;
1269
+ }, z.core.$strict>], "template">;
1270
+ export declare const mandateJson: z.ZodObject<{
1271
+ mandateId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1272
+ businessId: z.ZodString;
1273
+ agentId: z.ZodString;
1274
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1275
+ agentKey: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1276
+ actions: z.ZodArray<z.ZodEnum<{
1277
+ cancel: "cancel";
1278
+ pay: "pay";
1279
+ reserve: "reserve";
1280
+ start: "start";
1281
+ }>>;
1282
+ currency: z.ZodEnum<{
1283
+ USD: "USD";
1284
+ }>;
1285
+ capPerCommitment: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1286
+ capOpenReserves: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1287
+ suppliers: z.ZodArray<z.ZodString>;
1288
+ categories: z.ZodArray<z.ZodString>;
1289
+ paymentLimits: z.ZodArray<z.ZodObject<{
1290
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1291
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1292
+ period: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1293
+ }, z.core.$strict>>;
1294
+ approvalRule: z.ZodDiscriminatedUnion<[z.ZodObject<{
1295
+ kind: z.ZodLiteral<"never">;
1296
+ }, z.core.$strict>, z.ZodObject<{
1297
+ kind: z.ZodLiteral<"always">;
1298
+ }, z.core.$strict>, z.ZodObject<{
1299
+ kind: z.ZodLiteral<"above">;
1300
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1301
+ }, z.core.$strict>], "kind">;
1302
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1303
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1304
+ }, z.core.$strict>;
1305
+ export declare const reserveRequestJson: z.ZodObject<{
1306
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1307
+ agentKey: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1308
+ supplier: z.ZodString;
1309
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1310
+ category: z.ZodString;
1311
+ terms: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1312
+ version: z.ZodLiteral<2>;
1313
+ currency: z.ZodEnum<{
1314
+ USD: "USD";
1315
+ }>;
1316
+ amountDecimals: z.ZodLiteral<6>;
1317
+ template: z.ZodLiteral<"gpu-reservation/1">;
1318
+ subject: z.ZodObject<{
1319
+ resource: z.ZodObject<{
1320
+ gpu: z.ZodString;
1321
+ count: z.ZodNumber;
1322
+ region: z.ZodString;
1323
+ sku: z.ZodString;
1324
+ }, z.core.$strict>;
1325
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1326
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1327
+ }, z.core.$strict>;
1328
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1329
+ kind: z.ZodLiteral<"rate">;
1330
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1331
+ unit: z.ZodString;
1332
+ }, z.core.$strict>, z.ZodObject<{
1333
+ kind: z.ZodLiteral<"fixed">;
1334
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1335
+ }, z.core.$strict>], "kind">;
1336
+ remedies: z.ZodObject<{
1337
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1338
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1339
+ charges: z.ZodArray<z.ZodObject<{
1340
+ kind: z.ZodEnum<{
1341
+ lateCancellation: "lateCancellation";
1342
+ noShow: "noShow";
1343
+ }>;
1344
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1345
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1346
+ }, z.core.$strict>>;
1347
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1348
+ }, z.core.$strict>;
1349
+ resolution: z.ZodObject<{
1350
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1351
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1352
+ day90SupplierShareBps: z.ZodNumber;
1353
+ }, z.core.$strict>;
1354
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1355
+ kind: z.ZodLiteral<"reserve">;
1356
+ side: z.ZodLiteral<"buyer">;
1357
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1358
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1359
+ }, z.core.$strict>], "kind">;
1360
+ }, z.core.$strict>, z.ZodObject<{
1361
+ version: z.ZodLiteral<2>;
1362
+ currency: z.ZodEnum<{
1363
+ USD: "USD";
1364
+ }>;
1365
+ amountDecimals: z.ZodLiteral<6>;
1366
+ template: z.ZodLiteral<"job/1">;
1367
+ subject: z.ZodObject<{
1368
+ work: z.ZodObject<{
1369
+ kind: z.ZodString;
1370
+ summary: z.ZodString;
1371
+ }, z.core.$strict>;
1372
+ compute: z.ZodObject<{
1373
+ gpu: z.ZodString;
1374
+ count: z.ZodNumber;
1375
+ region: z.ZodString;
1376
+ }, z.core.$strict>;
1377
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1378
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1379
+ }, z.core.$strict>;
1380
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1381
+ kind: z.ZodLiteral<"rate">;
1382
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1383
+ unit: z.ZodString;
1384
+ }, z.core.$strict>, z.ZodObject<{
1385
+ kind: z.ZodLiteral<"fixed">;
1386
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1387
+ }, z.core.$strict>], "kind">;
1388
+ remedies: z.ZodObject<{
1389
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1390
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1391
+ charges: z.ZodArray<z.ZodObject<{
1392
+ kind: z.ZodEnum<{
1393
+ lateCancellation: "lateCancellation";
1394
+ noShow: "noShow";
1395
+ }>;
1396
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1397
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1398
+ }, z.core.$strict>>;
1399
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1400
+ }, z.core.$strict>;
1401
+ resolution: z.ZodObject<{
1402
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1403
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1404
+ day90SupplierShareBps: z.ZodNumber;
1405
+ }, z.core.$strict>;
1406
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1407
+ kind: z.ZodLiteral<"reserve">;
1408
+ side: z.ZodLiteral<"buyer">;
1409
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1410
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1411
+ }, z.core.$strict>], "kind">;
1412
+ }, z.core.$strict>], "template">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1413
+ currency: z.ZodEnum<{
1414
+ USD: "USD";
1415
+ }>;
1416
+ amountDecimals: z.ZodLiteral<6>;
1417
+ template: z.ZodLiteral<"gpu-reservation/1">;
1418
+ subject: z.ZodObject<{
1419
+ resource: z.ZodObject<{
1420
+ gpu: z.ZodString;
1421
+ count: z.ZodNumber;
1422
+ region: z.ZodString;
1423
+ sku: z.ZodString;
1424
+ }, z.core.$strict>;
1425
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1426
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1427
+ }, z.core.$strict>;
1428
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1429
+ kind: z.ZodLiteral<"rate">;
1430
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1431
+ unit: z.ZodString;
1432
+ }, z.core.$strict>, z.ZodObject<{
1433
+ kind: z.ZodLiteral<"fixed">;
1434
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1435
+ }, z.core.$strict>], "kind">;
1436
+ remedies: z.ZodObject<{
1437
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1438
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1439
+ charges: z.ZodArray<z.ZodObject<{
1440
+ kind: z.ZodEnum<{
1441
+ lateCancellation: "lateCancellation";
1442
+ noShow: "noShow";
1443
+ }>;
1444
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1445
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1446
+ }, z.core.$strict>>;
1447
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1448
+ }, z.core.$strict>;
1449
+ resolution: z.ZodObject<{
1450
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1451
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1452
+ day90SupplierShareBps: z.ZodNumber;
1453
+ }, z.core.$strict>;
1454
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1455
+ kind: z.ZodLiteral<"reserve">;
1456
+ side: z.ZodLiteral<"buyer">;
1457
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1458
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1459
+ }, z.core.$strict>], "kind">;
1460
+ version: z.ZodLiteral<3>;
1461
+ dependencyCheck: z.ZodEnum<{
1462
+ avow: "avow";
1463
+ buyer: "buyer";
1464
+ }>;
1465
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
1466
+ on: z.ZodObject<{
1467
+ kind: z.ZodLiteral<"commitment">;
1468
+ chainId: z.ZodNumber;
1469
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1470
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1471
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1472
+ side: z.ZodLiteral<"buyer">;
1473
+ }, z.core.$strict>;
1474
+ condition: z.ZodEnum<{
1475
+ accepted: "accepted";
1476
+ }>;
1477
+ disclosed: z.ZodEnum<{
1478
+ subject: "subject";
1479
+ }>;
1480
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1481
+ on: z.ZodObject<{
1482
+ kind: z.ZodLiteral<"commitment">;
1483
+ chainId: z.ZodNumber;
1484
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1485
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1486
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1487
+ side: z.ZodLiteral<"buyer">;
1488
+ }, z.core.$strict>;
1489
+ condition: z.ZodEnum<{
1490
+ accepted: "accepted";
1491
+ }>;
1492
+ disclosed: z.ZodEnum<{
1493
+ subject: "subject";
1494
+ }>;
1495
+ }, z.core.$strict>, z.ZodObject<{
1496
+ on: z.ZodObject<{
1497
+ kind: z.ZodLiteral<"commitment">;
1498
+ chainId: z.ZodNumber;
1499
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1500
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1501
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1502
+ side: z.ZodLiteral<"buyer">;
1503
+ }, z.core.$strict>;
1504
+ condition: z.ZodEnum<{
1505
+ accepted: "accepted";
1506
+ }>;
1507
+ disclosed: z.ZodEnum<{
1508
+ subject: "subject";
1509
+ }>;
1510
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1511
+ on: z.ZodObject<{
1512
+ kind: z.ZodLiteral<"commitment">;
1513
+ chainId: z.ZodNumber;
1514
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1515
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1516
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1517
+ side: z.ZodLiteral<"buyer">;
1518
+ }, z.core.$strict>;
1519
+ condition: z.ZodEnum<{
1520
+ accepted: "accepted";
1521
+ }>;
1522
+ disclosed: z.ZodEnum<{
1523
+ subject: "subject";
1524
+ }>;
1525
+ }, z.core.$strict>, z.ZodObject<{
1526
+ on: z.ZodObject<{
1527
+ kind: z.ZodLiteral<"commitment">;
1528
+ chainId: z.ZodNumber;
1529
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1530
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1531
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1532
+ side: z.ZodLiteral<"buyer">;
1533
+ }, z.core.$strict>;
1534
+ condition: z.ZodEnum<{
1535
+ accepted: "accepted";
1536
+ }>;
1537
+ disclosed: z.ZodEnum<{
1538
+ subject: "subject";
1539
+ }>;
1540
+ }, z.core.$strict>, z.ZodObject<{
1541
+ on: z.ZodObject<{
1542
+ kind: z.ZodLiteral<"commitment">;
1543
+ chainId: z.ZodNumber;
1544
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1545
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1546
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1547
+ side: z.ZodLiteral<"buyer">;
1548
+ }, z.core.$strict>;
1549
+ condition: z.ZodEnum<{
1550
+ accepted: "accepted";
1551
+ }>;
1552
+ disclosed: z.ZodEnum<{
1553
+ subject: "subject";
1554
+ }>;
1555
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1556
+ on: z.ZodObject<{
1557
+ kind: z.ZodLiteral<"commitment">;
1558
+ chainId: z.ZodNumber;
1559
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1560
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1561
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1562
+ side: z.ZodLiteral<"buyer">;
1563
+ }, z.core.$strict>;
1564
+ condition: z.ZodEnum<{
1565
+ accepted: "accepted";
1566
+ }>;
1567
+ disclosed: z.ZodEnum<{
1568
+ subject: "subject";
1569
+ }>;
1570
+ }, z.core.$strict>, z.ZodObject<{
1571
+ on: z.ZodObject<{
1572
+ kind: z.ZodLiteral<"commitment">;
1573
+ chainId: z.ZodNumber;
1574
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1575
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1576
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1577
+ side: z.ZodLiteral<"buyer">;
1578
+ }, z.core.$strict>;
1579
+ condition: z.ZodEnum<{
1580
+ accepted: "accepted";
1581
+ }>;
1582
+ disclosed: z.ZodEnum<{
1583
+ subject: "subject";
1584
+ }>;
1585
+ }, z.core.$strict>, z.ZodObject<{
1586
+ on: z.ZodObject<{
1587
+ kind: z.ZodLiteral<"commitment">;
1588
+ chainId: z.ZodNumber;
1589
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1590
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1591
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1592
+ side: z.ZodLiteral<"buyer">;
1593
+ }, z.core.$strict>;
1594
+ condition: z.ZodEnum<{
1595
+ accepted: "accepted";
1596
+ }>;
1597
+ disclosed: z.ZodEnum<{
1598
+ subject: "subject";
1599
+ }>;
1600
+ }, z.core.$strict>, z.ZodObject<{
1601
+ on: z.ZodObject<{
1602
+ kind: z.ZodLiteral<"commitment">;
1603
+ chainId: z.ZodNumber;
1604
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1605
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1606
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1607
+ side: z.ZodLiteral<"buyer">;
1608
+ }, z.core.$strict>;
1609
+ condition: z.ZodEnum<{
1610
+ accepted: "accepted";
1611
+ }>;
1612
+ disclosed: z.ZodEnum<{
1613
+ subject: "subject";
1614
+ }>;
1615
+ }, z.core.$strict>], null>]>;
1616
+ }, z.core.$strict>, z.ZodObject<{
1617
+ currency: z.ZodEnum<{
1618
+ USD: "USD";
1619
+ }>;
1620
+ amountDecimals: z.ZodLiteral<6>;
1621
+ template: z.ZodLiteral<"job/1">;
1622
+ subject: z.ZodObject<{
1623
+ work: z.ZodObject<{
1624
+ kind: z.ZodString;
1625
+ summary: z.ZodString;
1626
+ }, z.core.$strict>;
1627
+ compute: z.ZodObject<{
1628
+ gpu: z.ZodString;
1629
+ count: z.ZodNumber;
1630
+ region: z.ZodString;
1631
+ }, z.core.$strict>;
1632
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1633
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1634
+ }, z.core.$strict>;
1635
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1636
+ kind: z.ZodLiteral<"rate">;
1637
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1638
+ unit: z.ZodString;
1639
+ }, z.core.$strict>, z.ZodObject<{
1640
+ kind: z.ZodLiteral<"fixed">;
1641
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1642
+ }, z.core.$strict>], "kind">;
1643
+ remedies: z.ZodObject<{
1644
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1645
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1646
+ charges: z.ZodArray<z.ZodObject<{
1647
+ kind: z.ZodEnum<{
1648
+ lateCancellation: "lateCancellation";
1649
+ noShow: "noShow";
1650
+ }>;
1651
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1652
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1653
+ }, z.core.$strict>>;
1654
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1655
+ }, z.core.$strict>;
1656
+ resolution: z.ZodObject<{
1657
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1658
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1659
+ day90SupplierShareBps: z.ZodNumber;
1660
+ }, z.core.$strict>;
1661
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
1662
+ kind: z.ZodLiteral<"reserve">;
1663
+ side: z.ZodLiteral<"buyer">;
1664
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1665
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1666
+ }, z.core.$strict>], "kind">;
1667
+ version: z.ZodLiteral<3>;
1668
+ dependencyCheck: z.ZodEnum<{
1669
+ buyer: "buyer";
1670
+ }>;
1671
+ dependencies: z.ZodUnion<readonly [z.ZodTuple<[z.ZodObject<{
1672
+ on: z.ZodObject<{
1673
+ kind: z.ZodLiteral<"commitment">;
1674
+ chainId: z.ZodNumber;
1675
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1676
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1677
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1678
+ side: z.ZodLiteral<"buyer">;
1679
+ }, z.core.$strict>;
1680
+ condition: z.ZodEnum<{
1681
+ accepted: "accepted";
1682
+ }>;
1683
+ disclosed: z.ZodEnum<{
1684
+ subject: "subject";
1685
+ }>;
1686
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1687
+ on: z.ZodObject<{
1688
+ kind: z.ZodLiteral<"commitment">;
1689
+ chainId: z.ZodNumber;
1690
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1691
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1692
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1693
+ side: z.ZodLiteral<"buyer">;
1694
+ }, z.core.$strict>;
1695
+ condition: z.ZodEnum<{
1696
+ accepted: "accepted";
1697
+ }>;
1698
+ disclosed: z.ZodEnum<{
1699
+ subject: "subject";
1700
+ }>;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ on: z.ZodObject<{
1703
+ kind: z.ZodLiteral<"commitment">;
1704
+ chainId: z.ZodNumber;
1705
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1706
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1707
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1708
+ side: z.ZodLiteral<"buyer">;
1709
+ }, z.core.$strict>;
1710
+ condition: z.ZodEnum<{
1711
+ accepted: "accepted";
1712
+ }>;
1713
+ disclosed: z.ZodEnum<{
1714
+ subject: "subject";
1715
+ }>;
1716
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1717
+ on: z.ZodObject<{
1718
+ kind: z.ZodLiteral<"commitment">;
1719
+ chainId: z.ZodNumber;
1720
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1721
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1722
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1723
+ side: z.ZodLiteral<"buyer">;
1724
+ }, z.core.$strict>;
1725
+ condition: z.ZodEnum<{
1726
+ accepted: "accepted";
1727
+ }>;
1728
+ disclosed: z.ZodEnum<{
1729
+ subject: "subject";
1730
+ }>;
1731
+ }, z.core.$strict>, z.ZodObject<{
1732
+ on: z.ZodObject<{
1733
+ kind: z.ZodLiteral<"commitment">;
1734
+ chainId: z.ZodNumber;
1735
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1736
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1737
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1738
+ side: z.ZodLiteral<"buyer">;
1739
+ }, z.core.$strict>;
1740
+ condition: z.ZodEnum<{
1741
+ accepted: "accepted";
1742
+ }>;
1743
+ disclosed: z.ZodEnum<{
1744
+ subject: "subject";
1745
+ }>;
1746
+ }, z.core.$strict>, z.ZodObject<{
1747
+ on: z.ZodObject<{
1748
+ kind: z.ZodLiteral<"commitment">;
1749
+ chainId: z.ZodNumber;
1750
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1751
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1752
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1753
+ side: z.ZodLiteral<"buyer">;
1754
+ }, z.core.$strict>;
1755
+ condition: z.ZodEnum<{
1756
+ accepted: "accepted";
1757
+ }>;
1758
+ disclosed: z.ZodEnum<{
1759
+ subject: "subject";
1760
+ }>;
1761
+ }, z.core.$strict>], null>, z.ZodTuple<[z.ZodObject<{
1762
+ on: z.ZodObject<{
1763
+ kind: z.ZodLiteral<"commitment">;
1764
+ chainId: z.ZodNumber;
1765
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1766
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1767
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1768
+ side: z.ZodLiteral<"buyer">;
1769
+ }, z.core.$strict>;
1770
+ condition: z.ZodEnum<{
1771
+ accepted: "accepted";
1772
+ }>;
1773
+ disclosed: z.ZodEnum<{
1774
+ subject: "subject";
1775
+ }>;
1776
+ }, z.core.$strict>, z.ZodObject<{
1777
+ on: z.ZodObject<{
1778
+ kind: z.ZodLiteral<"commitment">;
1779
+ chainId: z.ZodNumber;
1780
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1781
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1782
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1783
+ side: z.ZodLiteral<"buyer">;
1784
+ }, z.core.$strict>;
1785
+ condition: z.ZodEnum<{
1786
+ accepted: "accepted";
1787
+ }>;
1788
+ disclosed: z.ZodEnum<{
1789
+ subject: "subject";
1790
+ }>;
1791
+ }, z.core.$strict>, z.ZodObject<{
1792
+ on: z.ZodObject<{
1793
+ kind: z.ZodLiteral<"commitment">;
1794
+ chainId: z.ZodNumber;
1795
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1796
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1797
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1798
+ side: z.ZodLiteral<"buyer">;
1799
+ }, z.core.$strict>;
1800
+ condition: z.ZodEnum<{
1801
+ accepted: "accepted";
1802
+ }>;
1803
+ disclosed: z.ZodEnum<{
1804
+ subject: "subject";
1805
+ }>;
1806
+ }, z.core.$strict>, z.ZodObject<{
1807
+ on: z.ZodObject<{
1808
+ kind: z.ZodLiteral<"commitment">;
1809
+ chainId: z.ZodNumber;
1810
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1811
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1812
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1813
+ side: z.ZodLiteral<"buyer">;
1814
+ }, z.core.$strict>;
1815
+ condition: z.ZodEnum<{
1816
+ accepted: "accepted";
1817
+ }>;
1818
+ disclosed: z.ZodEnum<{
1819
+ subject: "subject";
1820
+ }>;
1821
+ }, z.core.$strict>], null>]>;
1822
+ }, z.core.$strict>], "template">]>;
1823
+ }, z.core.$strict>;
1824
+ export declare const termsAgreementJson: z.ZodObject<{
1825
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1826
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1827
+ category: z.ZodString;
1828
+ buyerBusinessId: z.ZodString;
1829
+ supplierBusinessId: z.ZodString;
1830
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1831
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1832
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1833
+ }, z.core.$strict>;
1834
+ /** Avow's approval, field for field as the lock checks it. */
1835
+ export declare const approvalJson: z.ZodObject<{
1836
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1837
+ side: z.ZodEnum<{
1838
+ buyer: "buyer";
1839
+ supplier: "supplier";
1840
+ }>;
1841
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1842
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1843
+ supplier: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1844
+ supplierSigner: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1845
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1846
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1847
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1848
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1849
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1850
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1851
+ charges: z.ZodArray<z.ZodObject<{
1852
+ kind: z.ZodEnum<{
1853
+ lateCancellation: "lateCancellation";
1854
+ noShow: "noShow";
1855
+ }>;
1856
+ most: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1857
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1858
+ }, z.core.$strict>>;
1859
+ day90SupplierShareBps: z.ZodNumber;
1860
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1861
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1862
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1863
+ capPerCommitment: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1864
+ capOpenReserves: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1865
+ fundingKey: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1866
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1867
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1868
+ }, z.core.$strict>;
1869
+ export declare const supplierAuthorizationJson: z.ZodObject<{
1870
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1871
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1872
+ salt: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1873
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1874
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1875
+ buyerBusinessId: z.ZodString;
1876
+ kybReference: z.ZodString;
1877
+ kybTestData: z.ZodBoolean;
1878
+ agentKey: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1879
+ agentKeyAuthorizedIn: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1880
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1881
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1882
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1883
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1884
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1885
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1886
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1887
+ }, z.core.$strict>;
1888
+ export declare const humanApprovalJson: z.ZodObject<{
1889
+ mandateHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1890
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1891
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1892
+ supplier: z.ZodString;
1893
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1894
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1895
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1896
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1897
+ }, z.core.$strict>;
1898
+ export declare const startReceiptJson: z.ZodObject<{
1899
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1900
+ side: z.ZodEnum<{
1901
+ buyer: "buyer";
1902
+ supplier: "supplier";
1903
+ }>;
1904
+ startRequestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1905
+ startedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1906
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1907
+ expiry: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1908
+ }, z.core.$strict>;
1909
+ export declare const timestampJson: z.ZodObject<{
1910
+ requestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1911
+ receivedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1912
+ }, z.core.$strict>;
1913
+ /** A version 1 record, written before records cited references and while all terms were version 1. */
1914
+ export declare const commitmentJsonV1: z.ZodObject<{
1915
+ schemaVersion: z.ZodString;
1916
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1917
+ category: z.ZodString;
1918
+ buyer: z.ZodObject<{
1919
+ businessId: z.ZodString;
1920
+ agentId: z.ZodString;
1921
+ mandateId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1922
+ }, z.core.$strict>;
1923
+ supplier: z.ZodObject<{
1924
+ businessId: z.ZodString;
1925
+ agentId: z.ZodNullable<z.ZodString>;
1926
+ }, z.core.$strict>;
1927
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1928
+ state: z.ZodEnum<{
1929
+ accepted: "accepted";
1930
+ agreed: "agreed";
1931
+ awaiting_approval: "awaiting_approval";
1932
+ charge_pending: "charge_pending";
1933
+ charged: "charged";
1934
+ draft: "draft";
1935
+ expired: "expired";
1936
+ paused: "paused";
1937
+ released: "released";
1938
+ reserved: "reserved";
1939
+ resolved: "resolved";
1940
+ }>;
1941
+ backing: z.ZodArray<z.ZodObject<{
1942
+ side: z.ZodEnum<{
1943
+ buyer: "buyer";
1944
+ supplier: "supplier";
1945
+ }>;
1946
+ type: z.ZodLiteral<"cash">;
1947
+ provider: z.ZodString;
1948
+ enforcement: z.ZodEnum<{
1949
+ agreement: "agreement";
1950
+ partner: "partner";
1951
+ reserve: "reserve";
1952
+ }>;
1953
+ ref: z.ZodObject<{
1954
+ rail: z.ZodLiteral<"tempo">;
1955
+ chainId: z.ZodNumber;
1956
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1957
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1958
+ side: z.ZodEnum<{
1959
+ buyer: "buyer";
1960
+ supplier: "supplier";
1961
+ }>;
1962
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1963
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1964
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1965
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1966
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1967
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1968
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1969
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1970
+ }, z.core.$strict>;
1971
+ status: z.ZodEnum<{
1972
+ accepted: "accepted";
1973
+ charge_pending: "charge_pending";
1974
+ charged: "charged";
1975
+ none: "none";
1976
+ paused: "paused";
1977
+ released: "released";
1978
+ reserved: "reserved";
1979
+ resolved: "resolved";
1980
+ }>;
1981
+ }, z.core.$strict>>;
1982
+ start: z.ZodNullable<z.ZodObject<{
1983
+ requestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1984
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1985
+ receipt: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1986
+ }, z.core.$strict>>;
1987
+ contest: z.ZodNullable<z.ZodObject<{
1988
+ reasonCode: z.ZodEnum<{
1989
+ cancelled_in_time: "cancelled_in_time";
1990
+ job_started: "job_started";
1991
+ never_cancelled: "never_cancelled";
1992
+ other: "other";
1993
+ supplier_did_not_provide: "supplier_did_not_provide";
1994
+ wrong_charge: "wrong_charge";
1995
+ }>;
1996
+ statementHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1997
+ evidenceHashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1998
+ contestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
1999
+ }, z.core.$strict>>;
2000
+ outcome: z.ZodNullable<z.ZodObject<{
2001
+ kind: z.ZodEnum<{
2002
+ agent_revoked: "agent_revoked";
2003
+ cancelled_in_time: "cancelled_in_time";
2004
+ cancelled_late: "cancelled_late";
2005
+ day_90_default: "day_90_default";
2006
+ expired: "expired";
2007
+ kept: "kept";
2008
+ no_show: "no_show";
2009
+ not_accepted: "not_accepted";
2010
+ reached_release_date: "reached_release_date";
2011
+ ruled: "ruled";
2012
+ supplier_failed: "supplier_failed";
2013
+ }>;
2014
+ charged: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2015
+ released: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2016
+ }, z.core.$strict>>;
2017
+ terms: z.ZodObject<{
2018
+ kind: z.ZodLiteral<"compute">;
2019
+ resource: z.ZodObject<{
2020
+ gpu: z.ZodString;
2021
+ count: z.ZodNumber;
2022
+ region: z.ZodString;
2023
+ sku: z.ZodString;
2024
+ }, z.core.$strict>;
2025
+ currency: z.ZodEnum<{
2026
+ USD: "USD";
2027
+ }>;
2028
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2029
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2030
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2031
+ price: z.ZodObject<{
2032
+ perGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2033
+ }, z.core.$strict>;
2034
+ reserve: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2035
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2036
+ lateCancellation: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2037
+ noShow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2038
+ gracePeriod: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2039
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2040
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2041
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2042
+ dispute: z.ZodObject<{
2043
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2044
+ day90SupplierShareBps: z.ZodNumber;
2045
+ }, z.core.$strict>;
2046
+ }, z.core.$strict>;
2047
+ }, z.core.$strict>;
2048
+ /** A version 2 record, written before a return at the release date had its own kind of outcome. */
2049
+ export declare const commitmentJsonV2: z.ZodObject<{
2050
+ schemaVersion: z.ZodString;
2051
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2052
+ category: z.ZodString;
2053
+ buyer: z.ZodObject<{
2054
+ businessId: z.ZodString;
2055
+ agentId: z.ZodString;
2056
+ mandateId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2057
+ }, z.core.$strict>;
2058
+ supplier: z.ZodObject<{
2059
+ businessId: z.ZodString;
2060
+ agentId: z.ZodNullable<z.ZodString>;
2061
+ }, z.core.$strict>;
2062
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2063
+ state: z.ZodEnum<{
2064
+ accepted: "accepted";
2065
+ agreed: "agreed";
2066
+ awaiting_approval: "awaiting_approval";
2067
+ charge_pending: "charge_pending";
2068
+ charged: "charged";
2069
+ draft: "draft";
2070
+ expired: "expired";
2071
+ paused: "paused";
2072
+ released: "released";
2073
+ reserved: "reserved";
2074
+ resolved: "resolved";
2075
+ }>;
2076
+ backing: z.ZodArray<z.ZodObject<{
2077
+ side: z.ZodEnum<{
2078
+ buyer: "buyer";
2079
+ supplier: "supplier";
2080
+ }>;
2081
+ type: z.ZodLiteral<"cash">;
2082
+ provider: z.ZodString;
2083
+ enforcement: z.ZodEnum<{
2084
+ agreement: "agreement";
2085
+ partner: "partner";
2086
+ reserve: "reserve";
2087
+ }>;
2088
+ ref: z.ZodObject<{
2089
+ rail: z.ZodLiteral<"tempo">;
2090
+ chainId: z.ZodNumber;
2091
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2092
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2093
+ side: z.ZodEnum<{
2094
+ buyer: "buyer";
2095
+ supplier: "supplier";
2096
+ }>;
2097
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2098
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2099
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2100
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2101
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2102
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2103
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2104
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2105
+ }, z.core.$strict>;
2106
+ status: z.ZodEnum<{
2107
+ accepted: "accepted";
2108
+ charge_pending: "charge_pending";
2109
+ charged: "charged";
2110
+ none: "none";
2111
+ paused: "paused";
2112
+ released: "released";
2113
+ reserved: "reserved";
2114
+ resolved: "resolved";
2115
+ }>;
2116
+ }, z.core.$strict>>;
2117
+ start: z.ZodNullable<z.ZodObject<{
2118
+ requestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2119
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2120
+ receipt: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2121
+ }, z.core.$strict>>;
2122
+ contest: z.ZodNullable<z.ZodObject<{
2123
+ reasonCode: z.ZodEnum<{
2124
+ cancelled_in_time: "cancelled_in_time";
2125
+ job_started: "job_started";
2126
+ never_cancelled: "never_cancelled";
2127
+ other: "other";
2128
+ supplier_did_not_provide: "supplier_did_not_provide";
2129
+ wrong_charge: "wrong_charge";
2130
+ }>;
2131
+ statementHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2132
+ evidenceHashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2133
+ contestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2134
+ }, z.core.$strict>>;
2135
+ terms: z.ZodUnion<readonly [z.ZodObject<{
2136
+ kind: z.ZodLiteral<"compute">;
2137
+ resource: z.ZodObject<{
2138
+ gpu: z.ZodString;
2139
+ count: z.ZodNumber;
2140
+ region: z.ZodString;
2141
+ sku: z.ZodString;
2142
+ }, z.core.$strict>;
2143
+ currency: z.ZodEnum<{
2144
+ USD: "USD";
2145
+ }>;
2146
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2147
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2148
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2149
+ price: z.ZodObject<{
2150
+ perGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2151
+ }, z.core.$strict>;
2152
+ reserve: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2153
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2154
+ lateCancellation: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2155
+ noShow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2156
+ gracePeriod: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2157
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2158
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2159
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2160
+ dispute: z.ZodObject<{
2161
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2162
+ day90SupplierShareBps: z.ZodNumber;
2163
+ }, z.core.$strict>;
2164
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2165
+ version: z.ZodLiteral<2>;
2166
+ currency: z.ZodEnum<{
2167
+ USD: "USD";
2168
+ }>;
2169
+ amountDecimals: z.ZodLiteral<6>;
2170
+ template: z.ZodLiteral<"gpu-reservation/1">;
2171
+ subject: z.ZodObject<{
2172
+ resource: z.ZodObject<{
2173
+ gpu: z.ZodString;
2174
+ count: z.ZodNumber;
2175
+ region: z.ZodString;
2176
+ sku: z.ZodString;
2177
+ }, z.core.$strict>;
2178
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2179
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2180
+ }, z.core.$strict>;
2181
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
2182
+ kind: z.ZodLiteral<"rate">;
2183
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2184
+ unit: z.ZodString;
2185
+ }, z.core.$strict>, z.ZodObject<{
2186
+ kind: z.ZodLiteral<"fixed">;
2187
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2188
+ }, z.core.$strict>], "kind">;
2189
+ remedies: z.ZodObject<{
2190
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2191
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2192
+ charges: z.ZodArray<z.ZodObject<{
2193
+ kind: z.ZodEnum<{
2194
+ lateCancellation: "lateCancellation";
2195
+ noShow: "noShow";
2196
+ }>;
2197
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2198
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2199
+ }, z.core.$strict>>;
2200
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2201
+ }, z.core.$strict>;
2202
+ resolution: z.ZodObject<{
2203
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2204
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2205
+ day90SupplierShareBps: z.ZodNumber;
2206
+ }, z.core.$strict>;
2207
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
2208
+ kind: z.ZodLiteral<"reserve">;
2209
+ side: z.ZodLiteral<"buyer">;
2210
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2211
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2212
+ }, z.core.$strict>], "kind">;
2213
+ }, z.core.$strict>, z.ZodObject<{
2214
+ version: z.ZodLiteral<2>;
2215
+ currency: z.ZodEnum<{
2216
+ USD: "USD";
2217
+ }>;
2218
+ amountDecimals: z.ZodLiteral<6>;
2219
+ template: z.ZodLiteral<"job/1">;
2220
+ subject: z.ZodObject<{
2221
+ work: z.ZodObject<{
2222
+ kind: z.ZodString;
2223
+ summary: z.ZodString;
2224
+ }, z.core.$strict>;
2225
+ compute: z.ZodObject<{
2226
+ gpu: z.ZodString;
2227
+ count: z.ZodNumber;
2228
+ region: z.ZodString;
2229
+ }, z.core.$strict>;
2230
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2231
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2232
+ }, z.core.$strict>;
2233
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
2234
+ kind: z.ZodLiteral<"rate">;
2235
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2236
+ unit: z.ZodString;
2237
+ }, z.core.$strict>, z.ZodObject<{
2238
+ kind: z.ZodLiteral<"fixed">;
2239
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2240
+ }, z.core.$strict>], "kind">;
2241
+ remedies: z.ZodObject<{
2242
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2243
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2244
+ charges: z.ZodArray<z.ZodObject<{
2245
+ kind: z.ZodEnum<{
2246
+ lateCancellation: "lateCancellation";
2247
+ noShow: "noShow";
2248
+ }>;
2249
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2250
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2251
+ }, z.core.$strict>>;
2252
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2253
+ }, z.core.$strict>;
2254
+ resolution: z.ZodObject<{
2255
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2256
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2257
+ day90SupplierShareBps: z.ZodNumber;
2258
+ }, z.core.$strict>;
2259
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
2260
+ kind: z.ZodLiteral<"reserve">;
2261
+ side: z.ZodLiteral<"buyer">;
2262
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2263
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2264
+ }, z.core.$strict>], "kind">;
2265
+ }, z.core.$strict>], "template">]>;
2266
+ references: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
2267
+ kind: z.ZodLiteral<"commitment">;
2268
+ chainId: z.ZodNumber;
2269
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2270
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2271
+ side: z.ZodEnum<{
2272
+ buyer: "buyer";
2273
+ supplier: "supplier";
2274
+ }>;
2275
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2276
+ }, z.core.$strict>, z.ZodObject<{
2277
+ kind: z.ZodLiteral<"payment">;
2278
+ chainId: z.ZodNumber;
2279
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2280
+ logIndex: z.ZodNumber;
2281
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2282
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2283
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2284
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2285
+ memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2286
+ }, z.core.$strict>], "kind">>>;
2287
+ outcome: z.ZodNullable<z.ZodObject<{
2288
+ kind: z.ZodEnum<{
2289
+ agent_revoked: "agent_revoked";
2290
+ cancelled_in_time: "cancelled_in_time";
2291
+ cancelled_late: "cancelled_late";
2292
+ day_90_default: "day_90_default";
2293
+ expired: "expired";
2294
+ kept: "kept";
2295
+ no_show: "no_show";
2296
+ not_accepted: "not_accepted";
2297
+ reached_release_date: "reached_release_date";
2298
+ ruled: "ruled";
2299
+ supplier_failed: "supplier_failed";
2300
+ }>;
2301
+ charged: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2302
+ released: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2303
+ }, z.core.$strict>>;
2304
+ }, z.core.$strict>;
2305
+ /** A version 3 record, the version this code writes. */
2306
+ export declare const commitmentJson: z.ZodObject<{
2307
+ schemaVersion: z.ZodString;
2308
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2309
+ category: z.ZodString;
2310
+ buyer: z.ZodObject<{
2311
+ businessId: z.ZodString;
2312
+ agentId: z.ZodString;
2313
+ mandateId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2314
+ }, z.core.$strict>;
2315
+ supplier: z.ZodObject<{
2316
+ businessId: z.ZodString;
2317
+ agentId: z.ZodNullable<z.ZodString>;
2318
+ }, z.core.$strict>;
2319
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2320
+ state: z.ZodEnum<{
2321
+ accepted: "accepted";
2322
+ agreed: "agreed";
2323
+ awaiting_approval: "awaiting_approval";
2324
+ charge_pending: "charge_pending";
2325
+ charged: "charged";
2326
+ draft: "draft";
2327
+ expired: "expired";
2328
+ paused: "paused";
2329
+ released: "released";
2330
+ reserved: "reserved";
2331
+ resolved: "resolved";
2332
+ }>;
2333
+ backing: z.ZodArray<z.ZodObject<{
2334
+ side: z.ZodEnum<{
2335
+ buyer: "buyer";
2336
+ supplier: "supplier";
2337
+ }>;
2338
+ type: z.ZodLiteral<"cash">;
2339
+ provider: z.ZodString;
2340
+ enforcement: z.ZodEnum<{
2341
+ agreement: "agreement";
2342
+ partner: "partner";
2343
+ reserve: "reserve";
2344
+ }>;
2345
+ ref: z.ZodObject<{
2346
+ rail: z.ZodLiteral<"tempo">;
2347
+ chainId: z.ZodNumber;
2348
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2349
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2350
+ side: z.ZodEnum<{
2351
+ buyer: "buyer";
2352
+ supplier: "supplier";
2353
+ }>;
2354
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2355
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2356
+ payee: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2357
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2358
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2359
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2360
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2361
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2362
+ }, z.core.$strict>;
2363
+ status: z.ZodEnum<{
2364
+ accepted: "accepted";
2365
+ charge_pending: "charge_pending";
2366
+ charged: "charged";
2367
+ none: "none";
2368
+ paused: "paused";
2369
+ released: "released";
2370
+ reserved: "reserved";
2371
+ resolved: "resolved";
2372
+ }>;
2373
+ }, z.core.$strict>>;
2374
+ start: z.ZodNullable<z.ZodObject<{
2375
+ requestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2376
+ requestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2377
+ receipt: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2378
+ }, z.core.$strict>>;
2379
+ contest: z.ZodNullable<z.ZodObject<{
2380
+ reasonCode: z.ZodEnum<{
2381
+ cancelled_in_time: "cancelled_in_time";
2382
+ job_started: "job_started";
2383
+ never_cancelled: "never_cancelled";
2384
+ other: "other";
2385
+ supplier_did_not_provide: "supplier_did_not_provide";
2386
+ wrong_charge: "wrong_charge";
2387
+ }>;
2388
+ statementHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2389
+ evidenceHashes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2390
+ contestedAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2391
+ }, z.core.$strict>>;
2392
+ terms: z.ZodUnion<readonly [z.ZodObject<{
2393
+ kind: z.ZodLiteral<"compute">;
2394
+ resource: z.ZodObject<{
2395
+ gpu: z.ZodString;
2396
+ count: z.ZodNumber;
2397
+ region: z.ZodString;
2398
+ sku: z.ZodString;
2399
+ }, z.core.$strict>;
2400
+ currency: z.ZodEnum<{
2401
+ USD: "USD";
2402
+ }>;
2403
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2404
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2405
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2406
+ price: z.ZodObject<{
2407
+ perGpuHour: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2408
+ }, z.core.$strict>;
2409
+ reserve: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2410
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2411
+ lateCancellation: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2412
+ noShow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2413
+ gracePeriod: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2414
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2415
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2416
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2417
+ dispute: z.ZodObject<{
2418
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2419
+ day90SupplierShareBps: z.ZodNumber;
2420
+ }, z.core.$strict>;
2421
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2422
+ version: z.ZodLiteral<2>;
2423
+ currency: z.ZodEnum<{
2424
+ USD: "USD";
2425
+ }>;
2426
+ amountDecimals: z.ZodLiteral<6>;
2427
+ template: z.ZodLiteral<"gpu-reservation/1">;
2428
+ subject: z.ZodObject<{
2429
+ resource: z.ZodObject<{
2430
+ gpu: z.ZodString;
2431
+ count: z.ZodNumber;
2432
+ region: z.ZodString;
2433
+ sku: z.ZodString;
2434
+ }, z.core.$strict>;
2435
+ windowStart: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2436
+ windowDuration: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2437
+ }, z.core.$strict>;
2438
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
2439
+ kind: z.ZodLiteral<"rate">;
2440
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2441
+ unit: z.ZodString;
2442
+ }, z.core.$strict>, z.ZodObject<{
2443
+ kind: z.ZodLiteral<"fixed">;
2444
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2445
+ }, z.core.$strict>], "kind">;
2446
+ remedies: z.ZodObject<{
2447
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2448
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2449
+ charges: z.ZodArray<z.ZodObject<{
2450
+ kind: z.ZodEnum<{
2451
+ lateCancellation: "lateCancellation";
2452
+ noShow: "noShow";
2453
+ }>;
2454
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2455
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2456
+ }, z.core.$strict>>;
2457
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2458
+ }, z.core.$strict>;
2459
+ resolution: z.ZodObject<{
2460
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2461
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2462
+ day90SupplierShareBps: z.ZodNumber;
2463
+ }, z.core.$strict>;
2464
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
2465
+ kind: z.ZodLiteral<"reserve">;
2466
+ side: z.ZodLiteral<"buyer">;
2467
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2468
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2469
+ }, z.core.$strict>], "kind">;
2470
+ }, z.core.$strict>, z.ZodObject<{
2471
+ version: z.ZodLiteral<2>;
2472
+ currency: z.ZodEnum<{
2473
+ USD: "USD";
2474
+ }>;
2475
+ amountDecimals: z.ZodLiteral<6>;
2476
+ template: z.ZodLiteral<"job/1">;
2477
+ subject: z.ZodObject<{
2478
+ work: z.ZodObject<{
2479
+ kind: z.ZodString;
2480
+ summary: z.ZodString;
2481
+ }, z.core.$strict>;
2482
+ compute: z.ZodObject<{
2483
+ gpu: z.ZodString;
2484
+ count: z.ZodNumber;
2485
+ region: z.ZodString;
2486
+ }, z.core.$strict>;
2487
+ startsAt: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2488
+ deliverBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2489
+ }, z.core.$strict>;
2490
+ consideration: z.ZodDiscriminatedUnion<[z.ZodObject<{
2491
+ kind: z.ZodLiteral<"rate">;
2492
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2493
+ unit: z.ZodString;
2494
+ }, z.core.$strict>, z.ZodObject<{
2495
+ kind: z.ZodLiteral<"fixed">;
2496
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2497
+ }, z.core.$strict>], "kind">;
2498
+ remedies: z.ZodObject<{
2499
+ acceptBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2500
+ freeCancelBy: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2501
+ charges: z.ZodArray<z.ZodObject<{
2502
+ kind: z.ZodEnum<{
2503
+ lateCancellation: "lateCancellation";
2504
+ noShow: "noShow";
2505
+ }>;
2506
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2507
+ earliest: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2508
+ }, z.core.$strict>>;
2509
+ chargeDeadline: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2510
+ }, z.core.$strict>;
2511
+ resolution: z.ZodObject<{
2512
+ contestWindow: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2513
+ arbiter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2514
+ day90SupplierShareBps: z.ZodNumber;
2515
+ }, z.core.$strict>;
2516
+ backing: z.ZodDiscriminatedUnion<[z.ZodObject<{
2517
+ kind: z.ZodLiteral<"reserve">;
2518
+ side: z.ZodLiteral<"buyer">;
2519
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2520
+ releaseDate: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2521
+ }, z.core.$strict>], "kind">;
2522
+ }, z.core.$strict>], "template">]>;
2523
+ references: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
2524
+ kind: z.ZodLiteral<"commitment">;
2525
+ chainId: z.ZodNumber;
2526
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2527
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2528
+ side: z.ZodEnum<{
2529
+ buyer: "buyer";
2530
+ supplier: "supplier";
2531
+ }>;
2532
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2533
+ }, z.core.$strict>, z.ZodObject<{
2534
+ kind: z.ZodLiteral<"payment">;
2535
+ chainId: z.ZodNumber;
2536
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2537
+ logIndex: z.ZodNumber;
2538
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2539
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2540
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2541
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2542
+ memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2543
+ }, z.core.$strict>], "kind">>>;
2544
+ outcome: z.ZodNullable<z.ZodObject<{
2545
+ kind: z.ZodEnum<{
2546
+ agent_revoked: "agent_revoked";
2547
+ cancelled_in_time: "cancelled_in_time";
2548
+ cancelled_late: "cancelled_late";
2549
+ day_90_default: "day_90_default";
2550
+ expired: "expired";
2551
+ kept: "kept";
2552
+ no_show: "no_show";
2553
+ not_accepted: "not_accepted";
2554
+ reached_release_date: "reached_release_date";
2555
+ ruled: "ruled";
2556
+ supplier_failed: "supplier_failed";
2557
+ }>;
2558
+ charged: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2559
+ released: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2560
+ }, z.core.$strict>>;
2561
+ }, z.core.$strict>;
2562
+ export declare const paymentReferenceJson: z.ZodObject<{
2563
+ kind: z.ZodLiteral<"payment">;
2564
+ chainId: z.ZodNumber;
2565
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2566
+ logIndex: z.ZodNumber;
2567
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2568
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2569
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2570
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2571
+ memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2572
+ }, z.core.$strict>;
2573
+ export declare const referenceJson: z.ZodDiscriminatedUnion<[z.ZodObject<{
2574
+ kind: z.ZodLiteral<"commitment">;
2575
+ chainId: z.ZodNumber;
2576
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2577
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2578
+ side: z.ZodEnum<{
2579
+ buyer: "buyer";
2580
+ supplier: "supplier";
2581
+ }>;
2582
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2583
+ }, z.core.$strict>, z.ZodObject<{
2584
+ kind: z.ZodLiteral<"payment">;
2585
+ chainId: z.ZodNumber;
2586
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2587
+ logIndex: z.ZodNumber;
2588
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2589
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2590
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2591
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2592
+ memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2593
+ }, z.core.$strict>], "kind">;
2594
+ export declare const attributionJson: z.ZodObject<{
2595
+ payment: z.ZodObject<{
2596
+ kind: z.ZodLiteral<"payment">;
2597
+ chainId: z.ZodNumber;
2598
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2599
+ logIndex: z.ZodNumber;
2600
+ token: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2601
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2602
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2603
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<bigint, string>>;
2604
+ memo: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2605
+ }, z.core.$strict>;
2606
+ obligation: z.ZodObject<{
2607
+ kind: z.ZodLiteral<"commitment">;
2608
+ chainId: z.ZodNumber;
2609
+ lock: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2610
+ commitmentId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2611
+ side: z.ZodEnum<{
2612
+ buyer: "buyer";
2613
+ supplier: "supplier";
2614
+ }>;
2615
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2616
+ }, z.core.$strict>;
2617
+ use: z.ZodEnum<{
2618
+ evidence: "evidence";
2619
+ value: "value";
2620
+ }>;
2621
+ }, z.core.$strict>;
2622
+ /** A parse result: the value, or the reason code a reader refuses it with. */
2623
+ export type Parsed<T> = {
2624
+ ok: true;
2625
+ value: T;
2626
+ } | {
2627
+ ok: false;
2628
+ reason: ReasonCode;
2629
+ };
2630
+ /**
2631
+ * Parses version 2 terms, the version a plain booking takes. It refuses every other version,
2632
+ * version 3 included, so a reader that takes only plain bookings never reads one that relies on
2633
+ * another booking.
2634
+ */
2635
+ export declare function parseTerms(json: unknown): Parsed<Terms>;
2636
+ /**
2637
+ * Parses version 3 terms, the version a booking takes when it relies on other bookings. It refuses
2638
+ * every other version, and terms carrying the dependencies section only as its digest are
2639
+ * `dependency.elided`, since these are the terms in full and `parseElidedTerms` reads the buyer's
2640
+ * view.
2641
+ */
2642
+ export declare function parseChainedTerms(json: unknown): Parsed<ChainedTerms>;
2643
+ /**
2644
+ * Parses the buyer's view of version 3 terms Avow checks, which `elideDependencies` makes. It
2645
+ * refuses a view whose header says the buyer checks, which would hide entries the buyer has to
2646
+ * read, a view that hides any other section, and a dependencies section that isn't exactly its
2647
+ * label and digest. `elidedTermsHash` gives the terms hash the view stands for.
2648
+ */
2649
+ export declare function parseElidedTerms(json: unknown): Parsed<ElidedTerms>;
2650
+ /**
2651
+ * Parses terms of any version a plain booking takes, for checking a commitment already made. Terms
2652
+ * with no version field are version 1 and parse under its frozen schema. Version 3 terms are
2653
+ * refused as a version this reads, and `parseChainedTerms` reads them.
2654
+ */
2655
+ export declare function parseAnyTerms(json: unknown): Parsed<AnyTerms>;
2656
+ /**
2657
+ * Parses one section shown on its own, checking the section's shape for its template. A section
2658
+ * of version 2 terms is one of its five, and of version 3 terms one of its six.
2659
+ */
2660
+ export declare function parseSectionDisclosure(json: unknown): Parsed<SectionDisclosure>;
2661
+ export declare function parseReference(json: unknown): Parsed<Reference>;
2662
+ export declare function parseAttributions(json: unknown): Parsed<Attribution[]>;
2663
+ /**
2664
+ * Reads a commitment id from text, such as a command's argument, as 32 bytes of hex. It gives the
2665
+ * id in lower case, the form every message and record carries, or null for text that isn't one.
2666
+ */
2667
+ export declare function readCommitmentId(text: string): Hex | null;
2668
+ export declare function parseMandate(json: unknown): Mandate;
2669
+ /** Parses a reserve request, whose terms are version 2 or version 3. Throws on anything else. */
2670
+ export declare function parseReserveRequest(json: unknown): ReserveRequest;
2671
+ /**
2672
+ * Parses a stored or sent commitment record. A version 1 or 2 record reads as version 3, citing
2673
+ * nothing when it's version 1, and one that ended as `kept` stays version 2. A record version this
2674
+ * code doesn't read is refused as unknown. A record whose contest or outcome
2675
+ * its state can't hold, such as a draft with an outcome or a release that charged something, is
2676
+ * refused as invalid.
2677
+ */
2678
+ export declare function parseCommitment(json: unknown): Parsed<Commitment>;
2679
+ /**
2680
+ * Parses a signed message and checks its envelope. The version is read before the message
2681
+ * itself, so a message of a version this code doesn't read for its type is refused as unknown
2682
+ * rather than as malformed.
2683
+ */
2684
+ export declare function parseSigned<S extends z.ZodType>(json: unknown, type: MessageType, message: S, expected: {
2685
+ chainId: number;
2686
+ lock?: Address;
2687
+ }): Parsed<Signed<z.output<S>>>;
2688
+ /**
2689
+ * Parses a terms agreement both sides signed, which carries two signatures in place of one, and
2690
+ * checks its envelope the way `parseSigned` does.
2691
+ */
2692
+ export declare function parseSignedAgreement(json: unknown, expected: {
2693
+ chainId: number;
2694
+ lock?: Address;
2695
+ }): Parsed<SignedAgreement>;
2696
+ /** Turns bigints into decimal strings, so a record or message can go through JSON.stringify. */
2697
+ export declare function toWire(value: unknown): unknown;
2698
+ //# sourceMappingURL=wire.d.ts.map