@vapi-network/core 0.8.0 → 0.9.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 (77) hide show
  1. package/README.md +14 -1
  2. package/dist/agent-link.d.ts.map +1 -1
  3. package/dist/agent-link.js +6 -1
  4. package/dist/agent-link.js.map +1 -1
  5. package/dist/agent-profile.d.ts +4 -0
  6. package/dist/agent-profile.d.ts.map +1 -1
  7. package/dist/api-key.js +47 -0
  8. package/dist/api-key.js.map +1 -1
  9. package/dist/backup.d.ts +2 -0
  10. package/dist/backup.d.ts.map +1 -1
  11. package/dist/backup.js +65 -0
  12. package/dist/backup.js.map +1 -1
  13. package/dist/cloud-backup.js +71 -1
  14. package/dist/cloud-backup.js.map +1 -1
  15. package/dist/config.d.ts +9 -0
  16. package/dist/config.d.ts.map +1 -1
  17. package/dist/docs.d.ts +40 -0
  18. package/dist/docs.d.ts.map +1 -0
  19. package/dist/funding-policy.d.ts +29 -0
  20. package/dist/funding-policy.d.ts.map +1 -0
  21. package/dist/index.d.ts +4 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +718 -35
  24. package/dist/index.js.map +3 -3
  25. package/dist/router-client.js +230 -33
  26. package/dist/router-client.js.map +2 -2
  27. package/dist/secrets.js +29 -1
  28. package/dist/secrets.js.map +1 -1
  29. package/dist/spend-policy.d.ts +41 -7
  30. package/dist/spend-policy.d.ts.map +1 -1
  31. package/dist/support-report.d.ts +1 -1
  32. package/dist/tasks/actions.d.ts +152 -0
  33. package/dist/tasks/actions.d.ts.map +1 -0
  34. package/dist/tasks/canonical-json.d.ts +6 -0
  35. package/dist/tasks/canonical-json.d.ts.map +1 -0
  36. package/dist/tasks/chain-error.d.ts +6 -0
  37. package/dist/tasks/chain-error.d.ts.map +1 -0
  38. package/dist/tasks/chain-port.d.ts +88 -0
  39. package/dist/tasks/chain-port.d.ts.map +1 -0
  40. package/dist/tasks/chain-verification.d.ts +36 -0
  41. package/dist/tasks/chain-verification.d.ts.map +1 -0
  42. package/dist/tasks/chain.d.ts +22 -0
  43. package/dist/tasks/chain.d.ts.map +1 -0
  44. package/dist/tasks/client.d.ts +76 -0
  45. package/dist/tasks/client.d.ts.map +1 -0
  46. package/dist/tasks/delivery-manifest.d.ts +24 -0
  47. package/dist/tasks/delivery-manifest.d.ts.map +1 -0
  48. package/dist/tasks/dispute-fee.d.ts +4 -0
  49. package/dist/tasks/dispute-fee.d.ts.map +1 -0
  50. package/dist/tasks/index.d.ts +22 -0
  51. package/dist/tasks/index.d.ts.map +1 -0
  52. package/dist/tasks/money.d.ts +17 -0
  53. package/dist/tasks/money.d.ts.map +1 -0
  54. package/dist/tasks/operation-support.d.ts +127 -0
  55. package/dist/tasks/operation-support.d.ts.map +1 -0
  56. package/dist/tasks/operations.d.ts +722 -0
  57. package/dist/tasks/operations.d.ts.map +1 -0
  58. package/dist/tasks/pending-transactions.d.ts +52 -0
  59. package/dist/tasks/pending-transactions.d.ts.map +1 -0
  60. package/dist/tasks/plan-guard.d.ts +326 -0
  61. package/dist/tasks/plan-guard.d.ts.map +1 -0
  62. package/dist/tasks/rpc.d.ts +8 -0
  63. package/dist/tasks/rpc.d.ts.map +1 -0
  64. package/dist/tasks/scope-bindings.d.ts +20 -0
  65. package/dist/tasks/scope-bindings.d.ts.map +1 -0
  66. package/dist/tasks/scope-terms.d.ts +75 -0
  67. package/dist/tasks/scope-terms.d.ts.map +1 -0
  68. package/dist/tasks/trusted-deployments.d.ts +14 -0
  69. package/dist/tasks/trusted-deployments.d.ts.map +1 -0
  70. package/dist/tasks/types.d.ts +4439 -0
  71. package/dist/tasks/types.d.ts.map +1 -0
  72. package/dist/tasks/verbs.d.ts +4 -0
  73. package/dist/tasks/verbs.d.ts.map +1 -0
  74. package/dist/tasks.js +43906 -0
  75. package/dist/tasks.js.map +6 -0
  76. package/dist/transfer.d.ts.map +1 -1
  77. package/package.json +5 -1
@@ -0,0 +1,4439 @@
1
+ import { z } from "zod";
2
+ export { milestoneTermsSchema, scopeBriefSchema, scopeSigningPayloadSchema, scopeStructuredTermsSchema, } from "./scope-terms.js";
3
+ export declare const workPolicyFamilySchema: z.ZodEnum<{
4
+ "general-digital": "general-digital";
5
+ "software-api": "software-api";
6
+ "research-data": "research-data";
7
+ "design-content": "design-content";
8
+ }>;
9
+ export declare const submissionProofSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ kind: z.ZodLiteral<"url">;
11
+ value: z.ZodURL;
12
+ label: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ kind: z.ZodLiteral<"file">;
15
+ value: z.ZodString;
16
+ label: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>], "kind">;
18
+ export declare const proposalSigningPayloadSchema: z.ZodObject<{
19
+ version: z.ZodLiteral<"work-proposal-v1">;
20
+ workOrderId: z.ZodUUID;
21
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
22
+ pricingModel: z.ZodLiteral<"fixed">;
23
+ milestones: z.ZodArray<z.ZodObject<{
24
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
25
+ title: z.ZodString;
26
+ description: z.ZodString;
27
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
28
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
29
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
30
+ escrow: z.ZodObject<{
31
+ protocol: z.ZodLiteral<"escrow-v1">;
32
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
33
+ }, z.core.$strip>;
34
+ evidenceRules: z.ZodObject<{
35
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
36
+ text: "text";
37
+ "private-file": "private-file";
38
+ "git-commit": "git-commit";
39
+ }>>;
40
+ exactCommitRequired: z.ZodBoolean;
41
+ }, z.core.$strip>;
42
+ budget: z.ZodObject<{
43
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
44
+ asset: z.ZodString;
45
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strict>>;
48
+ kind: z.ZodOptional<z.ZodEnum<{
49
+ proposal: "proposal";
50
+ submission: "submission";
51
+ }>>;
52
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
53
+ kind: z.ZodLiteral<"url">;
54
+ value: z.ZodURL;
55
+ label: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"file">;
58
+ value: z.ZodString;
59
+ label: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>], "kind">>>;
61
+ }, z.core.$strip>;
62
+ export declare const createOrderInputSchema: z.ZodObject<{
63
+ title: z.ZodString;
64
+ description: z.ZodString;
65
+ policyFamily: z.ZodEnum<{
66
+ "general-digital": "general-digital";
67
+ "software-api": "software-api";
68
+ "research-data": "research-data";
69
+ "design-content": "design-content";
70
+ }>;
71
+ listingDeliveryTimeSeconds: z.ZodOptional<z.ZodNumber>;
72
+ invitedProviderAddress: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
73
+ market: z.ZodOptional<z.ZodObject<{
74
+ intake: z.ZodOptional<z.ZodEnum<{
75
+ proposals: "proposals";
76
+ submissions: "submissions";
77
+ }>>;
78
+ maxAwards: z.ZodOptional<z.ZodNumber>;
79
+ audience: z.ZodOptional<z.ZodEnum<{
80
+ agents: "agents";
81
+ verified: "verified";
82
+ anyone: "anyone";
83
+ humans: "humans";
84
+ invited: "invited";
85
+ }>>;
86
+ proofKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
87
+ file: "file";
88
+ url: "url";
89
+ photo: "photo";
90
+ }>>>;
91
+ budget: z.ZodOptional<z.ZodObject<{
92
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
93
+ asset: z.ZodLiteral<"USDC">;
94
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
95
+ }, z.core.$strict>>;
96
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
97
+ }, z.core.$strict>>;
98
+ }, z.core.$strict>;
99
+ export declare const proposeInputSchema: z.ZodObject<{
100
+ signedPayload: z.ZodObject<{
101
+ version: z.ZodLiteral<"work-proposal-v1">;
102
+ workOrderId: z.ZodUUID;
103
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
104
+ pricingModel: z.ZodLiteral<"fixed">;
105
+ milestones: z.ZodArray<z.ZodObject<{
106
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
107
+ title: z.ZodString;
108
+ description: z.ZodString;
109
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
110
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
111
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
112
+ escrow: z.ZodObject<{
113
+ protocol: z.ZodLiteral<"escrow-v1">;
114
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
115
+ }, z.core.$strip>;
116
+ evidenceRules: z.ZodObject<{
117
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
118
+ text: "text";
119
+ "private-file": "private-file";
120
+ "git-commit": "git-commit";
121
+ }>>;
122
+ exactCommitRequired: z.ZodBoolean;
123
+ }, z.core.$strip>;
124
+ budget: z.ZodObject<{
125
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
126
+ asset: z.ZodString;
127
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
128
+ }, z.core.$strip>;
129
+ }, z.core.$strict>>;
130
+ kind: z.ZodOptional<z.ZodEnum<{
131
+ proposal: "proposal";
132
+ submission: "submission";
133
+ }>>;
134
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
135
+ kind: z.ZodLiteral<"url">;
136
+ value: z.ZodURL;
137
+ label: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"file">;
140
+ value: z.ZodString;
141
+ label: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>], "kind">>>;
143
+ }, z.core.$strip>;
144
+ signature: z.ZodString;
145
+ }, z.core.$strip>;
146
+ export declare const submitInputSchema: z.ZodObject<{
147
+ signedPayload: z.ZodObject<{
148
+ version: z.ZodLiteral<"work-proposal-v1">;
149
+ workOrderId: z.ZodUUID;
150
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
151
+ pricingModel: z.ZodLiteral<"fixed">;
152
+ milestones: z.ZodArray<z.ZodObject<{
153
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
154
+ title: z.ZodString;
155
+ description: z.ZodString;
156
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
157
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
158
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
159
+ escrow: z.ZodObject<{
160
+ protocol: z.ZodLiteral<"escrow-v1">;
161
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
162
+ }, z.core.$strip>;
163
+ evidenceRules: z.ZodObject<{
164
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
165
+ text: "text";
166
+ "private-file": "private-file";
167
+ "git-commit": "git-commit";
168
+ }>>;
169
+ exactCommitRequired: z.ZodBoolean;
170
+ }, z.core.$strip>;
171
+ budget: z.ZodObject<{
172
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
173
+ asset: z.ZodString;
174
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
175
+ }, z.core.$strip>;
176
+ }, z.core.$strict>>;
177
+ kind: z.ZodLiteral<"submission">;
178
+ proof: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
179
+ kind: z.ZodLiteral<"url">;
180
+ value: z.ZodURL;
181
+ label: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ kind: z.ZodLiteral<"file">;
184
+ value: z.ZodString;
185
+ label: z.ZodOptional<z.ZodString>;
186
+ }, z.core.$strip>], "kind">>;
187
+ }, z.core.$strip>;
188
+ signature: z.ZodString;
189
+ }, z.core.$strip>;
190
+ export declare const acceptProposalInputSchema: z.ZodObject<{
191
+ proposalId: z.ZodUUID;
192
+ }, z.core.$strip>;
193
+ export declare const proposeScopeInputSchema: z.ZodObject<{
194
+ structuredTerms: z.ZodObject<{
195
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
196
+ title: z.ZodString;
197
+ description: z.ZodString;
198
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
199
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
200
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
201
+ escrow: z.ZodObject<{
202
+ protocol: z.ZodLiteral<"escrow-v1">;
203
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
204
+ }, z.core.$strip>;
205
+ evidenceRules: z.ZodObject<{
206
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
207
+ text: "text";
208
+ "private-file": "private-file";
209
+ "git-commit": "git-commit";
210
+ }>>;
211
+ exactCommitRequired: z.ZodBoolean;
212
+ }, z.core.$strip>;
213
+ deliverables: z.ZodArray<z.ZodString>;
214
+ revisionCount: z.ZodNumber;
215
+ deadline: z.ZodISODateTime;
216
+ budget: z.ZodObject<{
217
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
218
+ asset: z.ZodString;
219
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strict>;
222
+ brief: z.ZodString;
223
+ signedPayload: z.ZodObject<{
224
+ version: z.ZodLiteral<"work-scope-signature-v1">;
225
+ workOrderId: z.ZodUUID;
226
+ trancheOrdinal: z.ZodNumber;
227
+ scopeVersion: z.ZodNumber;
228
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
229
+ }, z.core.$strict>;
230
+ signature: z.ZodString;
231
+ }, z.core.$strip>;
232
+ export declare const signScopeInputSchema: z.ZodObject<{
233
+ signedPayload: z.ZodObject<{
234
+ version: z.ZodLiteral<"work-scope-signature-v1">;
235
+ workOrderId: z.ZodUUID;
236
+ trancheOrdinal: z.ZodNumber;
237
+ scopeVersion: z.ZodNumber;
238
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
239
+ }, z.core.$strict>;
240
+ signature: z.ZodString;
241
+ }, z.core.$strip>;
242
+ export declare const fundEscrowInputSchema: z.ZodUnion<readonly [z.ZodObject<{
243
+ authorization: z.ZodObject<{
244
+ validAfter: z.ZodString;
245
+ validBefore: z.ZodString;
246
+ nonce: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
247
+ signature: z.ZodString;
248
+ }, z.core.$strip>;
249
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodNever>]>;
250
+ export declare const deliverEscrowInputSchema: z.ZodObject<{
251
+ fileIds: z.ZodArray<z.ZodUUID>;
252
+ note: z.ZodString;
253
+ }, z.core.$strip>;
254
+ export declare const disputeEscrowInputSchema: z.ZodObject<{
255
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
256
+ }, z.core.$strip>;
257
+ export declare const counterEvidenceEscrowInputSchema: z.ZodObject<{
258
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
259
+ }, z.core.$strip>;
260
+ export declare const workFileMimeTypeSchema: z.ZodEnum<{
261
+ "application/json": "application/json";
262
+ "text/markdown": "text/markdown";
263
+ "image/png": "image/png";
264
+ "image/jpeg": "image/jpeg";
265
+ "image/webp": "image/webp";
266
+ "image/gif": "image/gif";
267
+ "application/pdf": "application/pdf";
268
+ "application/zip": "application/zip";
269
+ "text/plain": "text/plain";
270
+ "text/csv": "text/csv";
271
+ }>;
272
+ export declare const workFilePurposeSchema: z.ZodEnum<{
273
+ "message-attachment": "message-attachment";
274
+ delivery: "delivery";
275
+ portfolio: "portfolio";
276
+ }>;
277
+ export declare const createUploadInputSchema: z.ZodObject<{
278
+ purpose: z.ZodEnum<{
279
+ "message-attachment": "message-attachment";
280
+ delivery: "delivery";
281
+ portfolio: "portfolio";
282
+ }>;
283
+ fileName: z.ZodString;
284
+ mimeType: z.ZodEnum<{
285
+ "application/json": "application/json";
286
+ "text/markdown": "text/markdown";
287
+ "image/png": "image/png";
288
+ "image/jpeg": "image/jpeg";
289
+ "image/webp": "image/webp";
290
+ "image/gif": "image/gif";
291
+ "application/pdf": "application/pdf";
292
+ "application/zip": "application/zip";
293
+ "text/plain": "text/plain";
294
+ "text/csv": "text/csv";
295
+ }>;
296
+ sizeBytes: z.ZodNumber;
297
+ }, z.core.$strip>;
298
+ export declare const listOrdersQuerySchema: z.ZodObject<{
299
+ scope: z.ZodOptional<z.ZodEnum<{
300
+ public: "public";
301
+ private: "private";
302
+ }>>;
303
+ cursor: z.ZodOptional<z.ZodUUID>;
304
+ }, z.core.$strip>;
305
+ export declare const listMessagesQuerySchema: z.ZodObject<{
306
+ beforeSeq: z.ZodOptional<z.ZodNumber>;
307
+ }, z.core.$strip>;
308
+ export declare const sendMessageInputSchema: z.ZodObject<{
309
+ body: z.ZodString;
310
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
311
+ }, z.core.$strip>;
312
+ export declare const eventsQuerySchema: z.ZodObject<{
313
+ after: z.ZodOptional<z.ZodNumber>;
314
+ wait: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
315
+ }, z.core.$strip>;
316
+ export declare const operationMutationInputSchema: z.ZodObject<{
317
+ step: z.ZodUnion<readonly [z.ZodEnum<{
318
+ "create-escrow": "create-escrow";
319
+ "approve-usdc": "approve-usdc";
320
+ "deposit-funds": "deposit-funds";
321
+ "fund-with-authorization": "fund-with-authorization";
322
+ "submit-delivery": "submit-delivery";
323
+ "release-funds": "release-funds";
324
+ "refund-buyer": "refund-buyer";
325
+ "raise-dispute": "raise-dispute";
326
+ "submit-counter-evidence": "submit-counter-evidence";
327
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
328
+ "timeout-refund": "timeout-refund";
329
+ finalize: "finalize";
330
+ "vote-dispute": "vote-dispute";
331
+ "mint-vendor-credential": "mint-vendor-credential";
332
+ }>, z.ZodLiteral<"register-erc8004">]>;
333
+ transactionHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
334
+ }, z.core.$strict>;
335
+ export declare const operationStepInputSchema: z.ZodObject<{
336
+ step: z.ZodUnion<readonly [z.ZodEnum<{
337
+ "create-escrow": "create-escrow";
338
+ "approve-usdc": "approve-usdc";
339
+ "deposit-funds": "deposit-funds";
340
+ "fund-with-authorization": "fund-with-authorization";
341
+ "submit-delivery": "submit-delivery";
342
+ "release-funds": "release-funds";
343
+ "refund-buyer": "refund-buyer";
344
+ "raise-dispute": "raise-dispute";
345
+ "submit-counter-evidence": "submit-counter-evidence";
346
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
347
+ "timeout-refund": "timeout-refund";
348
+ finalize: "finalize";
349
+ "vote-dispute": "vote-dispute";
350
+ "mint-vendor-credential": "mint-vendor-credential";
351
+ }>, z.ZodLiteral<"register-erc8004">]>;
352
+ }, z.core.$strict>;
353
+ export declare const configureWebhookInputSchema: z.ZodObject<{
354
+ url: z.ZodNullable<z.ZodURL>;
355
+ }, z.core.$strict>;
356
+ export declare const boardQuerySchema: z.ZodObject<{
357
+ tab: z.ZodOptional<z.ZodEnum<{
358
+ paid: "paid";
359
+ trending: "trending";
360
+ new: "new";
361
+ closing: "closing";
362
+ }>>;
363
+ limit: z.ZodOptional<z.ZodNumber>;
364
+ cursor: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strip>;
366
+ export declare const feedQuerySchema: z.ZodObject<{
367
+ after: z.ZodOptional<z.ZodString>;
368
+ limit: z.ZodOptional<z.ZodNumber>;
369
+ }, z.core.$strip>;
370
+ export declare const partyBadgeSchema: z.ZodObject<{
371
+ kind: z.ZodEnum<{
372
+ agent: "agent";
373
+ human: "human";
374
+ }>;
375
+ source: z.ZodEnum<{
376
+ none: "none";
377
+ "agent-link": "agent-link";
378
+ erc8004: "erc8004";
379
+ }>;
380
+ owner: z.ZodNullable<z.ZodObject<{
381
+ profileId: z.ZodString;
382
+ label: z.ZodString;
383
+ }, z.core.$loose>>;
384
+ verifiedWorker: z.ZodBoolean;
385
+ }, z.core.$loose>;
386
+ export declare const publicTaskCardSchema: z.ZodObject<{
387
+ id: z.ZodString;
388
+ title: z.ZodString;
389
+ brief: z.ZodString;
390
+ shape: z.ZodEnum<{
391
+ task: "task";
392
+ "open-bounty": "open-bounty";
393
+ }>;
394
+ amount: z.ZodNullable<z.ZodObject<{
395
+ gross: z.ZodString;
396
+ fee: z.ZodNullable<z.ZodString>;
397
+ net: z.ZodNullable<z.ZodString>;
398
+ asset: z.ZodLiteral<"USDC">;
399
+ feeBp: z.ZodNullable<z.ZodNumber>;
400
+ }, z.core.$loose>>;
401
+ deadlineAt: z.ZodNullable<z.ZodString>;
402
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
403
+ createdAt: z.ZodString;
404
+ state: z.ZodEnum<{
405
+ paid: "paid";
406
+ expired: "expired";
407
+ open: "open";
408
+ disputed: "disputed";
409
+ funded: "funded";
410
+ delivered: "delivered";
411
+ refunded: "refunded";
412
+ awarded: "awarded";
413
+ closed: "closed";
414
+ }>;
415
+ poster: z.ZodObject<{
416
+ address: z.ZodString;
417
+ badge: z.ZodObject<{
418
+ kind: z.ZodEnum<{
419
+ agent: "agent";
420
+ human: "human";
421
+ }>;
422
+ source: z.ZodEnum<{
423
+ none: "none";
424
+ "agent-link": "agent-link";
425
+ erc8004: "erc8004";
426
+ }>;
427
+ owner: z.ZodNullable<z.ZodObject<{
428
+ profileId: z.ZodString;
429
+ label: z.ZodString;
430
+ }, z.core.$loose>>;
431
+ verifiedWorker: z.ZodBoolean;
432
+ }, z.core.$loose>;
433
+ }, z.core.$loose>;
434
+ takers: z.ZodNumber;
435
+ awards: z.ZodNumber;
436
+ maxAwards: z.ZodNumber;
437
+ proofKinds: z.ZodArray<z.ZodString>;
438
+ audience: z.ZodString;
439
+ receiptUrl: z.ZodNullable<z.ZodString>;
440
+ }, z.core.$loose>;
441
+ export declare const publicReceiptSchema: z.ZodObject<{
442
+ escrow: z.ZodString;
443
+ orderId: z.ZodString;
444
+ title: z.ZodString;
445
+ poster: z.ZodObject<{
446
+ address: z.ZodString;
447
+ badge: z.ZodObject<{
448
+ kind: z.ZodEnum<{
449
+ agent: "agent";
450
+ human: "human";
451
+ }>;
452
+ source: z.ZodEnum<{
453
+ none: "none";
454
+ "agent-link": "agent-link";
455
+ erc8004: "erc8004";
456
+ }>;
457
+ owner: z.ZodNullable<z.ZodObject<{
458
+ profileId: z.ZodString;
459
+ label: z.ZodString;
460
+ }, z.core.$loose>>;
461
+ verifiedWorker: z.ZodBoolean;
462
+ }, z.core.$loose>;
463
+ }, z.core.$loose>;
464
+ worker: z.ZodObject<{
465
+ address: z.ZodString;
466
+ badge: z.ZodObject<{
467
+ kind: z.ZodEnum<{
468
+ agent: "agent";
469
+ human: "human";
470
+ }>;
471
+ source: z.ZodEnum<{
472
+ none: "none";
473
+ "agent-link": "agent-link";
474
+ erc8004: "erc8004";
475
+ }>;
476
+ owner: z.ZodNullable<z.ZodObject<{
477
+ profileId: z.ZodString;
478
+ label: z.ZodString;
479
+ }, z.core.$loose>>;
480
+ verifiedWorker: z.ZodBoolean;
481
+ }, z.core.$loose>;
482
+ }, z.core.$loose>;
483
+ amount: z.ZodObject<{
484
+ gross: z.ZodString;
485
+ fee: z.ZodNullable<z.ZodString>;
486
+ net: z.ZodNullable<z.ZodString>;
487
+ asset: z.ZodLiteral<"USDC">;
488
+ feeBp: z.ZodNullable<z.ZodNumber>;
489
+ }, z.core.$loose>;
490
+ postedAt: z.ZodString;
491
+ fundedAt: z.ZodNullable<z.ZodString>;
492
+ deliveredAt: z.ZodNullable<z.ZodString>;
493
+ settledAt: z.ZodString;
494
+ outcome: z.ZodEnum<{
495
+ split: "split";
496
+ released: "released";
497
+ expired: "expired";
498
+ refunded: "refunded";
499
+ }>;
500
+ allocations: z.ZodNullable<z.ZodObject<{
501
+ worker: z.ZodString;
502
+ poster: z.ZodString;
503
+ fee: z.ZodString;
504
+ reviewers: z.ZodString;
505
+ }, z.core.$loose>>;
506
+ txs: z.ZodObject<{
507
+ funded: z.ZodNullable<z.ZodString>;
508
+ settled: z.ZodNullable<z.ZodString>;
509
+ }, z.core.$loose>;
510
+ explorerUrl: z.ZodString;
511
+ disputed: z.ZodBoolean;
512
+ network: z.ZodString;
513
+ }, z.core.$loose>;
514
+ export declare const boardNumbersSchema: z.ZodObject<{
515
+ escrowedNow: z.ZodString;
516
+ paidOutAllTime: z.ZodString;
517
+ tasksSettled: z.ZodNumber;
518
+ agentsActive30d: z.ZodNumber;
519
+ feeBp: z.ZodNullable<z.ZodNumber>;
520
+ call: z.ZodOptional<z.ZodNullable<z.ZodObject<{
521
+ routedThroughVapi30d: z.ZodNumber;
522
+ paymentsOnBase30d: z.ZodNumber;
523
+ volumeUsdOnBase30d: z.ZodString;
524
+ asOf: z.ZodString;
525
+ }, z.core.$loose>>>;
526
+ }, z.core.$loose>;
527
+ export declare const feedRowSchema: z.ZodObject<{
528
+ cursor: z.ZodString;
529
+ at: z.ZodString;
530
+ kind: z.ZodEnum<{
531
+ paid: "paid";
532
+ disputed: "disputed";
533
+ funded: "funded";
534
+ delivered: "delivered";
535
+ refunded: "refunded";
536
+ awarded: "awarded";
537
+ posted: "posted";
538
+ taken: "taken";
539
+ }>;
540
+ orderId: z.ZodString;
541
+ title: z.ZodString;
542
+ amount: z.ZodNullable<z.ZodString>;
543
+ actor: z.ZodObject<{
544
+ address: z.ZodString;
545
+ badge: z.ZodObject<{
546
+ kind: z.ZodEnum<{
547
+ agent: "agent";
548
+ human: "human";
549
+ }>;
550
+ source: z.ZodEnum<{
551
+ none: "none";
552
+ "agent-link": "agent-link";
553
+ erc8004: "erc8004";
554
+ }>;
555
+ owner: z.ZodNullable<z.ZodObject<{
556
+ profileId: z.ZodString;
557
+ label: z.ZodString;
558
+ }, z.core.$loose>>;
559
+ verifiedWorker: z.ZodBoolean;
560
+ }, z.core.$loose>;
561
+ }, z.core.$loose>;
562
+ counterparty: z.ZodNullable<z.ZodObject<{
563
+ address: z.ZodString;
564
+ badge: z.ZodObject<{
565
+ kind: z.ZodEnum<{
566
+ agent: "agent";
567
+ human: "human";
568
+ }>;
569
+ source: z.ZodEnum<{
570
+ none: "none";
571
+ "agent-link": "agent-link";
572
+ erc8004: "erc8004";
573
+ }>;
574
+ owner: z.ZodNullable<z.ZodObject<{
575
+ profileId: z.ZodString;
576
+ label: z.ZodString;
577
+ }, z.core.$loose>>;
578
+ verifiedWorker: z.ZodBoolean;
579
+ }, z.core.$loose>;
580
+ }, z.core.$loose>>;
581
+ receiptUrl: z.ZodNullable<z.ZodString>;
582
+ }, z.core.$loose>;
583
+ export declare const publicTaskDetailSchema: z.ZodObject<{
584
+ id: z.ZodString;
585
+ title: z.ZodString;
586
+ brief: z.ZodString;
587
+ shape: z.ZodEnum<{
588
+ task: "task";
589
+ "open-bounty": "open-bounty";
590
+ }>;
591
+ amount: z.ZodNullable<z.ZodObject<{
592
+ gross: z.ZodString;
593
+ fee: z.ZodNullable<z.ZodString>;
594
+ net: z.ZodNullable<z.ZodString>;
595
+ asset: z.ZodLiteral<"USDC">;
596
+ feeBp: z.ZodNullable<z.ZodNumber>;
597
+ }, z.core.$loose>>;
598
+ deadlineAt: z.ZodNullable<z.ZodString>;
599
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
600
+ createdAt: z.ZodString;
601
+ state: z.ZodEnum<{
602
+ paid: "paid";
603
+ expired: "expired";
604
+ open: "open";
605
+ disputed: "disputed";
606
+ funded: "funded";
607
+ delivered: "delivered";
608
+ refunded: "refunded";
609
+ awarded: "awarded";
610
+ closed: "closed";
611
+ }>;
612
+ poster: z.ZodObject<{
613
+ address: z.ZodString;
614
+ badge: z.ZodObject<{
615
+ kind: z.ZodEnum<{
616
+ agent: "agent";
617
+ human: "human";
618
+ }>;
619
+ source: z.ZodEnum<{
620
+ none: "none";
621
+ "agent-link": "agent-link";
622
+ erc8004: "erc8004";
623
+ }>;
624
+ owner: z.ZodNullable<z.ZodObject<{
625
+ profileId: z.ZodString;
626
+ label: z.ZodString;
627
+ }, z.core.$loose>>;
628
+ verifiedWorker: z.ZodBoolean;
629
+ }, z.core.$loose>;
630
+ }, z.core.$loose>;
631
+ takers: z.ZodNumber;
632
+ awards: z.ZodNumber;
633
+ maxAwards: z.ZodNumber;
634
+ proofKinds: z.ZodArray<z.ZodString>;
635
+ audience: z.ZodString;
636
+ receiptUrl: z.ZodNullable<z.ZodString>;
637
+ briefFull: z.ZodString;
638
+ children: z.ZodArray<z.ZodObject<{
639
+ orderId: z.ZodString;
640
+ worker: z.ZodObject<{
641
+ address: z.ZodString;
642
+ badge: z.ZodObject<{
643
+ kind: z.ZodEnum<{
644
+ agent: "agent";
645
+ human: "human";
646
+ }>;
647
+ source: z.ZodEnum<{
648
+ none: "none";
649
+ "agent-link": "agent-link";
650
+ erc8004: "erc8004";
651
+ }>;
652
+ owner: z.ZodNullable<z.ZodObject<{
653
+ profileId: z.ZodString;
654
+ label: z.ZodString;
655
+ }, z.core.$loose>>;
656
+ verifiedWorker: z.ZodBoolean;
657
+ }, z.core.$loose>;
658
+ }, z.core.$loose>;
659
+ state: z.ZodEnum<{
660
+ paid: "paid";
661
+ expired: "expired";
662
+ open: "open";
663
+ disputed: "disputed";
664
+ funded: "funded";
665
+ delivered: "delivered";
666
+ refunded: "refunded";
667
+ awarded: "awarded";
668
+ closed: "closed";
669
+ }>;
670
+ receiptUrl: z.ZodNullable<z.ZodString>;
671
+ }, z.core.$loose>>;
672
+ }, z.core.$loose>;
673
+ export declare const boardResponseSchema: z.ZodObject<{
674
+ pinned: z.ZodNullable<z.ZodObject<{
675
+ id: z.ZodString;
676
+ title: z.ZodString;
677
+ brief: z.ZodString;
678
+ shape: z.ZodEnum<{
679
+ task: "task";
680
+ "open-bounty": "open-bounty";
681
+ }>;
682
+ amount: z.ZodNullable<z.ZodObject<{
683
+ gross: z.ZodString;
684
+ fee: z.ZodNullable<z.ZodString>;
685
+ net: z.ZodNullable<z.ZodString>;
686
+ asset: z.ZodLiteral<"USDC">;
687
+ feeBp: z.ZodNullable<z.ZodNumber>;
688
+ }, z.core.$loose>>;
689
+ deadlineAt: z.ZodNullable<z.ZodString>;
690
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
691
+ createdAt: z.ZodString;
692
+ state: z.ZodEnum<{
693
+ paid: "paid";
694
+ expired: "expired";
695
+ open: "open";
696
+ disputed: "disputed";
697
+ funded: "funded";
698
+ delivered: "delivered";
699
+ refunded: "refunded";
700
+ awarded: "awarded";
701
+ closed: "closed";
702
+ }>;
703
+ poster: z.ZodObject<{
704
+ address: z.ZodString;
705
+ badge: z.ZodObject<{
706
+ kind: z.ZodEnum<{
707
+ agent: "agent";
708
+ human: "human";
709
+ }>;
710
+ source: z.ZodEnum<{
711
+ none: "none";
712
+ "agent-link": "agent-link";
713
+ erc8004: "erc8004";
714
+ }>;
715
+ owner: z.ZodNullable<z.ZodObject<{
716
+ profileId: z.ZodString;
717
+ label: z.ZodString;
718
+ }, z.core.$loose>>;
719
+ verifiedWorker: z.ZodBoolean;
720
+ }, z.core.$loose>;
721
+ }, z.core.$loose>;
722
+ takers: z.ZodNumber;
723
+ awards: z.ZodNumber;
724
+ maxAwards: z.ZodNumber;
725
+ proofKinds: z.ZodArray<z.ZodString>;
726
+ audience: z.ZodString;
727
+ receiptUrl: z.ZodNullable<z.ZodString>;
728
+ }, z.core.$loose>>;
729
+ numbers: z.ZodObject<{
730
+ escrowedNow: z.ZodString;
731
+ paidOutAllTime: z.ZodString;
732
+ tasksSettled: z.ZodNumber;
733
+ agentsActive30d: z.ZodNumber;
734
+ feeBp: z.ZodNullable<z.ZodNumber>;
735
+ call: z.ZodOptional<z.ZodNullable<z.ZodObject<{
736
+ routedThroughVapi30d: z.ZodNumber;
737
+ paymentsOnBase30d: z.ZodNumber;
738
+ volumeUsdOnBase30d: z.ZodString;
739
+ asOf: z.ZodString;
740
+ }, z.core.$loose>>>;
741
+ }, z.core.$loose>;
742
+ cards: z.ZodArray<z.ZodObject<{
743
+ id: z.ZodString;
744
+ title: z.ZodString;
745
+ brief: z.ZodString;
746
+ shape: z.ZodEnum<{
747
+ task: "task";
748
+ "open-bounty": "open-bounty";
749
+ }>;
750
+ amount: z.ZodNullable<z.ZodObject<{
751
+ gross: z.ZodString;
752
+ fee: z.ZodNullable<z.ZodString>;
753
+ net: z.ZodNullable<z.ZodString>;
754
+ asset: z.ZodLiteral<"USDC">;
755
+ feeBp: z.ZodNullable<z.ZodNumber>;
756
+ }, z.core.$loose>>;
757
+ deadlineAt: z.ZodNullable<z.ZodString>;
758
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
759
+ createdAt: z.ZodString;
760
+ state: z.ZodEnum<{
761
+ paid: "paid";
762
+ expired: "expired";
763
+ open: "open";
764
+ disputed: "disputed";
765
+ funded: "funded";
766
+ delivered: "delivered";
767
+ refunded: "refunded";
768
+ awarded: "awarded";
769
+ closed: "closed";
770
+ }>;
771
+ poster: z.ZodObject<{
772
+ address: z.ZodString;
773
+ badge: z.ZodObject<{
774
+ kind: z.ZodEnum<{
775
+ agent: "agent";
776
+ human: "human";
777
+ }>;
778
+ source: z.ZodEnum<{
779
+ none: "none";
780
+ "agent-link": "agent-link";
781
+ erc8004: "erc8004";
782
+ }>;
783
+ owner: z.ZodNullable<z.ZodObject<{
784
+ profileId: z.ZodString;
785
+ label: z.ZodString;
786
+ }, z.core.$loose>>;
787
+ verifiedWorker: z.ZodBoolean;
788
+ }, z.core.$loose>;
789
+ }, z.core.$loose>;
790
+ takers: z.ZodNumber;
791
+ awards: z.ZodNumber;
792
+ maxAwards: z.ZodNumber;
793
+ proofKinds: z.ZodArray<z.ZodString>;
794
+ audience: z.ZodString;
795
+ receiptUrl: z.ZodNullable<z.ZodString>;
796
+ }, z.core.$loose>>;
797
+ nextCursor: z.ZodNullable<z.ZodString>;
798
+ }, z.core.$loose>;
799
+ export declare const feedResponseSchema: z.ZodObject<{
800
+ rows: z.ZodArray<z.ZodObject<{
801
+ cursor: z.ZodString;
802
+ at: z.ZodString;
803
+ kind: z.ZodEnum<{
804
+ paid: "paid";
805
+ disputed: "disputed";
806
+ funded: "funded";
807
+ delivered: "delivered";
808
+ refunded: "refunded";
809
+ awarded: "awarded";
810
+ posted: "posted";
811
+ taken: "taken";
812
+ }>;
813
+ orderId: z.ZodString;
814
+ title: z.ZodString;
815
+ amount: z.ZodNullable<z.ZodString>;
816
+ actor: z.ZodObject<{
817
+ address: z.ZodString;
818
+ badge: z.ZodObject<{
819
+ kind: z.ZodEnum<{
820
+ agent: "agent";
821
+ human: "human";
822
+ }>;
823
+ source: z.ZodEnum<{
824
+ none: "none";
825
+ "agent-link": "agent-link";
826
+ erc8004: "erc8004";
827
+ }>;
828
+ owner: z.ZodNullable<z.ZodObject<{
829
+ profileId: z.ZodString;
830
+ label: z.ZodString;
831
+ }, z.core.$loose>>;
832
+ verifiedWorker: z.ZodBoolean;
833
+ }, z.core.$loose>;
834
+ }, z.core.$loose>;
835
+ counterparty: z.ZodNullable<z.ZodObject<{
836
+ address: z.ZodString;
837
+ badge: z.ZodObject<{
838
+ kind: z.ZodEnum<{
839
+ agent: "agent";
840
+ human: "human";
841
+ }>;
842
+ source: z.ZodEnum<{
843
+ none: "none";
844
+ "agent-link": "agent-link";
845
+ erc8004: "erc8004";
846
+ }>;
847
+ owner: z.ZodNullable<z.ZodObject<{
848
+ profileId: z.ZodString;
849
+ label: z.ZodString;
850
+ }, z.core.$loose>>;
851
+ verifiedWorker: z.ZodBoolean;
852
+ }, z.core.$loose>;
853
+ }, z.core.$loose>>;
854
+ receiptUrl: z.ZodNullable<z.ZodString>;
855
+ }, z.core.$loose>>;
856
+ nextCursor: z.ZodNullable<z.ZodString>;
857
+ }, z.core.$loose>;
858
+ export declare const earnResponseSchema: z.ZodObject<{
859
+ numbers: z.ZodObject<{
860
+ escrowedNow: z.ZodString;
861
+ paidOutAllTime: z.ZodString;
862
+ tasksSettled: z.ZodNumber;
863
+ agentsActive30d: z.ZodNumber;
864
+ feeBp: z.ZodNullable<z.ZodNumber>;
865
+ call: z.ZodOptional<z.ZodNullable<z.ZodObject<{
866
+ routedThroughVapi30d: z.ZodNumber;
867
+ paymentsOnBase30d: z.ZodNumber;
868
+ volumeUsdOnBase30d: z.ZodString;
869
+ asOf: z.ZodString;
870
+ }, z.core.$loose>>>;
871
+ }, z.core.$loose>;
872
+ topEarners: z.ZodObject<{
873
+ humans: z.ZodArray<z.ZodObject<{
874
+ address: z.ZodString;
875
+ badge: z.ZodObject<{
876
+ kind: z.ZodEnum<{
877
+ agent: "agent";
878
+ human: "human";
879
+ }>;
880
+ source: z.ZodEnum<{
881
+ none: "none";
882
+ "agent-link": "agent-link";
883
+ erc8004: "erc8004";
884
+ }>;
885
+ owner: z.ZodNullable<z.ZodObject<{
886
+ profileId: z.ZodString;
887
+ label: z.ZodString;
888
+ }, z.core.$loose>>;
889
+ verifiedWorker: z.ZodBoolean;
890
+ }, z.core.$loose>;
891
+ paidOut30d: z.ZodString;
892
+ tasks: z.ZodNumber;
893
+ }, z.core.$loose>>;
894
+ agents: z.ZodArray<z.ZodObject<{
895
+ address: z.ZodString;
896
+ badge: z.ZodObject<{
897
+ kind: z.ZodEnum<{
898
+ agent: "agent";
899
+ human: "human";
900
+ }>;
901
+ source: z.ZodEnum<{
902
+ none: "none";
903
+ "agent-link": "agent-link";
904
+ erc8004: "erc8004";
905
+ }>;
906
+ owner: z.ZodNullable<z.ZodObject<{
907
+ profileId: z.ZodString;
908
+ label: z.ZodString;
909
+ }, z.core.$loose>>;
910
+ verifiedWorker: z.ZodBoolean;
911
+ }, z.core.$loose>;
912
+ paidOut30d: z.ZodString;
913
+ tasks: z.ZodNumber;
914
+ }, z.core.$loose>>;
915
+ }, z.core.$loose>;
916
+ openByPayout: z.ZodArray<z.ZodObject<{
917
+ id: z.ZodString;
918
+ title: z.ZodString;
919
+ brief: z.ZodString;
920
+ shape: z.ZodEnum<{
921
+ task: "task";
922
+ "open-bounty": "open-bounty";
923
+ }>;
924
+ amount: z.ZodNullable<z.ZodObject<{
925
+ gross: z.ZodString;
926
+ fee: z.ZodNullable<z.ZodString>;
927
+ net: z.ZodNullable<z.ZodString>;
928
+ asset: z.ZodLiteral<"USDC">;
929
+ feeBp: z.ZodNullable<z.ZodNumber>;
930
+ }, z.core.$loose>>;
931
+ deadlineAt: z.ZodNullable<z.ZodString>;
932
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
933
+ createdAt: z.ZodString;
934
+ state: z.ZodEnum<{
935
+ paid: "paid";
936
+ expired: "expired";
937
+ open: "open";
938
+ disputed: "disputed";
939
+ funded: "funded";
940
+ delivered: "delivered";
941
+ refunded: "refunded";
942
+ awarded: "awarded";
943
+ closed: "closed";
944
+ }>;
945
+ poster: z.ZodObject<{
946
+ address: z.ZodString;
947
+ badge: z.ZodObject<{
948
+ kind: z.ZodEnum<{
949
+ agent: "agent";
950
+ human: "human";
951
+ }>;
952
+ source: z.ZodEnum<{
953
+ none: "none";
954
+ "agent-link": "agent-link";
955
+ erc8004: "erc8004";
956
+ }>;
957
+ owner: z.ZodNullable<z.ZodObject<{
958
+ profileId: z.ZodString;
959
+ label: z.ZodString;
960
+ }, z.core.$loose>>;
961
+ verifiedWorker: z.ZodBoolean;
962
+ }, z.core.$loose>;
963
+ }, z.core.$loose>;
964
+ takers: z.ZodNumber;
965
+ awards: z.ZodNumber;
966
+ maxAwards: z.ZodNumber;
967
+ proofKinds: z.ZodArray<z.ZodString>;
968
+ audience: z.ZodString;
969
+ receiptUrl: z.ZodNullable<z.ZodString>;
970
+ }, z.core.$loose>>;
971
+ }, z.core.$loose>;
972
+ export declare const eventsResponseSchema: z.ZodObject<{
973
+ events: z.ZodArray<z.ZodObject<{
974
+ sequence: z.ZodNumber;
975
+ type: z.ZodString;
976
+ at: z.ZodString;
977
+ actor: z.ZodString;
978
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
979
+ }, z.core.$loose>>;
980
+ nextAfter: z.ZodNumber;
981
+ }, z.core.$loose>;
982
+ export declare const tasksResponseSchemas: {
983
+ readonly listOrders: z.ZodObject<{
984
+ workOrders: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
985
+ version: z.ZodLiteral<"work-order-view-v1">;
986
+ id: z.ZodUUID;
987
+ state: z.ZodEnum<{
988
+ cancelled: "cancelled";
989
+ open: "open";
990
+ awarded: "awarded";
991
+ completed: "completed";
992
+ }>;
993
+ title: z.ZodString;
994
+ description: z.ZodString;
995
+ policyFamily: z.ZodEnum<{
996
+ "general-digital": "general-digital";
997
+ "software-api": "software-api";
998
+ "research-data": "research-data";
999
+ "design-content": "design-content";
1000
+ }>;
1001
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
1002
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1003
+ invitedProviderAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1004
+ acceptedProposalId: z.ZodNullable<z.ZodUUID>;
1005
+ threadId: z.ZodNullable<z.ZodUUID>;
1006
+ role: z.ZodEnum<{
1007
+ client: "client";
1008
+ provider: "provider";
1009
+ proposer: "proposer";
1010
+ }>;
1011
+ canFinalize: z.ZodBoolean;
1012
+ proposals: z.ZodArray<z.ZodObject<{
1013
+ id: z.ZodUUID;
1014
+ workOrderId: z.ZodUUID;
1015
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1016
+ state: z.ZodEnum<{
1017
+ pending: "pending";
1018
+ rejected: "rejected";
1019
+ accepted: "accepted";
1020
+ }>;
1021
+ signedPayload: z.ZodObject<{
1022
+ version: z.ZodLiteral<"work-proposal-v1">;
1023
+ workOrderId: z.ZodUUID;
1024
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1025
+ pricingModel: z.ZodLiteral<"fixed">;
1026
+ milestones: z.ZodArray<z.ZodObject<{
1027
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1028
+ title: z.ZodString;
1029
+ description: z.ZodString;
1030
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1031
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1032
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1033
+ escrow: z.ZodObject<{
1034
+ protocol: z.ZodLiteral<"escrow-v1">;
1035
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1036
+ }, z.core.$strip>;
1037
+ evidenceRules: z.ZodObject<{
1038
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1039
+ text: "text";
1040
+ "private-file": "private-file";
1041
+ "git-commit": "git-commit";
1042
+ }>>;
1043
+ exactCommitRequired: z.ZodBoolean;
1044
+ }, z.core.$strip>;
1045
+ budget: z.ZodObject<{
1046
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1047
+ asset: z.ZodString;
1048
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1049
+ }, z.core.$strip>;
1050
+ }, z.core.$strict>>;
1051
+ kind: z.ZodOptional<z.ZodEnum<{
1052
+ proposal: "proposal";
1053
+ submission: "submission";
1054
+ }>>;
1055
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1056
+ kind: z.ZodLiteral<"url">;
1057
+ value: z.ZodURL;
1058
+ label: z.ZodOptional<z.ZodString>;
1059
+ }, z.core.$strip>, z.ZodObject<{
1060
+ kind: z.ZodLiteral<"file">;
1061
+ value: z.ZodString;
1062
+ label: z.ZodOptional<z.ZodString>;
1063
+ }, z.core.$strip>], "kind">>>;
1064
+ }, z.core.$loose>;
1065
+ signature: z.ZodString;
1066
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1067
+ proposedMilestones: z.ZodArray<z.ZodObject<{
1068
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1069
+ title: z.ZodString;
1070
+ description: z.ZodString;
1071
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1072
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1073
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1074
+ escrow: z.ZodObject<{
1075
+ protocol: z.ZodLiteral<"escrow-v1">;
1076
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1077
+ }, z.core.$strip>;
1078
+ evidenceRules: z.ZodObject<{
1079
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1080
+ text: "text";
1081
+ "private-file": "private-file";
1082
+ "git-commit": "git-commit";
1083
+ }>>;
1084
+ exactCommitRequired: z.ZodBoolean;
1085
+ }, z.core.$strip>;
1086
+ budget: z.ZodObject<{
1087
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1088
+ asset: z.ZodString;
1089
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1090
+ }, z.core.$strip>;
1091
+ }, z.core.$strict>>;
1092
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
1093
+ createdAt: z.ZodISODateTime;
1094
+ updatedAt: z.ZodISODateTime;
1095
+ }, z.core.$loose>>;
1096
+ milestones: z.ZodArray<z.ZodObject<{
1097
+ id: z.ZodUUID;
1098
+ workOrderId: z.ZodUUID;
1099
+ ordinal: z.ZodNumber;
1100
+ state: z.ZodEnum<{
1101
+ released: "released";
1102
+ agreed: "agreed";
1103
+ funding: "funding";
1104
+ funded: "funded";
1105
+ delivering: "delivering";
1106
+ delivered: "delivered";
1107
+ evaluating: "evaluating";
1108
+ refunded: "refunded";
1109
+ }>;
1110
+ terms: z.ZodObject<{
1111
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1112
+ title: z.ZodString;
1113
+ description: z.ZodString;
1114
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1115
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1116
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1117
+ escrow: z.ZodObject<{
1118
+ protocol: z.ZodLiteral<"escrow-v1">;
1119
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1120
+ }, z.core.$strip>;
1121
+ evidenceRules: z.ZodObject<{
1122
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1123
+ text: "text";
1124
+ "private-file": "private-file";
1125
+ "git-commit": "git-commit";
1126
+ }>>;
1127
+ exactCommitRequired: z.ZodBoolean;
1128
+ }, z.core.$strip>;
1129
+ budget: z.ZodObject<{
1130
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1131
+ asset: z.ZodString;
1132
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1133
+ }, z.core.$strip>;
1134
+ }, z.core.$strict>;
1135
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1136
+ termsFrozenAt: z.ZodISODateTime;
1137
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1138
+ asset: z.ZodString;
1139
+ amountBaseUnits: z.ZodString;
1140
+ escrowProtocol: z.ZodLiteral<"escrow-v1">;
1141
+ escrowContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1142
+ escrowState: z.ZodNullable<z.ZodEnum<{
1143
+ created: "created";
1144
+ expired: "expired";
1145
+ submitted: "submitted";
1146
+ locked: "locked";
1147
+ disputed: "disputed";
1148
+ resolved: "resolved";
1149
+ }>>;
1150
+ resolution: z.ZodNullable<z.ZodEnum<{
1151
+ split: "split";
1152
+ release: "release";
1153
+ refund: "refund";
1154
+ }>>;
1155
+ offerDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1156
+ workDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1157
+ acceptanceDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1158
+ dispute: z.ZodNullable<z.ZodObject<{
1159
+ id: z.ZodString;
1160
+ state: z.ZodEnum<{
1161
+ evidence: "evidence";
1162
+ open: "open";
1163
+ resolvable: "resolvable";
1164
+ executed: "executed";
1165
+ }>;
1166
+ network: z.ZodString;
1167
+ escrowAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1168
+ raisedByRole: z.ZodEnum<{
1169
+ client: "client";
1170
+ vendor: "vendor";
1171
+ }>;
1172
+ raisedByAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1173
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1174
+ evidenceDeadlineAt: z.ZodISODateTime;
1175
+ reviewers: z.ZodArray<z.ZodObject<{
1176
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1177
+ vote: z.ZodNullable<z.ZodObject<{
1178
+ outcome: z.ZodEnum<{
1179
+ split: "split";
1180
+ release: "release";
1181
+ refund: "refund";
1182
+ }>;
1183
+ txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1184
+ votedAt: z.ZodISODateTime;
1185
+ }, z.core.$loose>>;
1186
+ }, z.core.$loose>>;
1187
+ outcome: z.ZodNullable<z.ZodEnum<{
1188
+ split: "split";
1189
+ release: "release";
1190
+ refund: "refund";
1191
+ }>>;
1192
+ executedTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1193
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
1194
+ }, z.core.$loose>>;
1195
+ chainOperation: z.ZodNullable<z.ZodObject<{
1196
+ id: z.ZodUUID;
1197
+ kind: z.ZodEnum<{
1198
+ "escrow-funding": "escrow-funding";
1199
+ "escrow-create": "escrow-create";
1200
+ "escrow-delivery": "escrow-delivery";
1201
+ "escrow-release": "escrow-release";
1202
+ "escrow-dispute": "escrow-dispute";
1203
+ "escrow-counter-evidence": "escrow-counter-evidence";
1204
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
1205
+ "escrow-vote": "escrow-vote";
1206
+ "escrow-finalize": "escrow-finalize";
1207
+ "vendor-credential-mint": "vendor-credential-mint";
1208
+ }>;
1209
+ state: z.ZodEnum<{
1210
+ confirmed: "confirmed";
1211
+ prepared: "prepared";
1212
+ submitted: "submitted";
1213
+ }>;
1214
+ step: z.ZodEnum<{
1215
+ "create-escrow": "create-escrow";
1216
+ "approve-usdc": "approve-usdc";
1217
+ "deposit-funds": "deposit-funds";
1218
+ "fund-with-authorization": "fund-with-authorization";
1219
+ "submit-delivery": "submit-delivery";
1220
+ "release-funds": "release-funds";
1221
+ "refund-buyer": "refund-buyer";
1222
+ "raise-dispute": "raise-dispute";
1223
+ "submit-counter-evidence": "submit-counter-evidence";
1224
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1225
+ "timeout-refund": "timeout-refund";
1226
+ finalize: "finalize";
1227
+ "vote-dispute": "vote-dispute";
1228
+ "mint-vendor-credential": "mint-vendor-credential";
1229
+ }>;
1230
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1231
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1232
+ plan: z.ZodNullable<z.ZodObject<{
1233
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
1234
+ operationId: z.ZodUUID;
1235
+ step: z.ZodEnum<{
1236
+ "create-escrow": "create-escrow";
1237
+ "approve-usdc": "approve-usdc";
1238
+ "deposit-funds": "deposit-funds";
1239
+ "fund-with-authorization": "fund-with-authorization";
1240
+ "submit-delivery": "submit-delivery";
1241
+ "release-funds": "release-funds";
1242
+ "refund-buyer": "refund-buyer";
1243
+ "raise-dispute": "raise-dispute";
1244
+ "submit-counter-evidence": "submit-counter-evidence";
1245
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1246
+ "timeout-refund": "timeout-refund";
1247
+ finalize: "finalize";
1248
+ "vote-dispute": "vote-dispute";
1249
+ "mint-vendor-credential": "mint-vendor-credential";
1250
+ "register-erc8004": "register-erc8004";
1251
+ }>;
1252
+ chainId: z.ZodNumber;
1253
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
1254
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1255
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1256
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1257
+ value: z.ZodLiteral<"0">;
1258
+ }, z.core.$loose>>;
1259
+ }, z.core.$loose>>;
1260
+ artifact: z.ZodNullable<z.ZodObject<{
1261
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1262
+ }, z.core.$loose>>;
1263
+ delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1264
+ id: z.ZodUUID;
1265
+ version: z.ZodNumber;
1266
+ note: z.ZodString;
1267
+ manifest: z.ZodObject<{
1268
+ files: z.ZodArray<z.ZodObject<{
1269
+ fileId: z.ZodUUID;
1270
+ fileName: z.ZodString;
1271
+ sha256: z.ZodString;
1272
+ sizeBytes: z.ZodNumber;
1273
+ }, z.core.$loose>>;
1274
+ noteSha256: z.ZodString;
1275
+ }, z.core.$loose>;
1276
+ manifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1277
+ submittedAt: z.ZodISODateTime;
1278
+ }, z.core.$loose>>>;
1279
+ fundingTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1280
+ settlementTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1281
+ fundedAt: z.ZodNullable<z.ZodISODateTime>;
1282
+ deliveredAt: z.ZodNullable<z.ZodISODateTime>;
1283
+ settledAt: z.ZodNullable<z.ZodISODateTime>;
1284
+ createdAt: z.ZodISODateTime;
1285
+ updatedAt: z.ZodISODateTime;
1286
+ }, z.core.$loose>>;
1287
+ events: z.ZodArray<z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ sequence: z.ZodNumber;
1290
+ type: z.ZodString;
1291
+ actor: z.ZodString;
1292
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1293
+ payload: z.ZodJSONSchema;
1294
+ txHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1295
+ createdAt: z.ZodISODateTime;
1296
+ }, z.core.$loose>>;
1297
+ review: z.ZodNullable<z.ZodObject<{
1298
+ id: z.ZodUUID;
1299
+ workOrderId: z.ZodUUID;
1300
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1301
+ vendorProfileId: z.ZodUUID;
1302
+ rating: z.ZodNumber;
1303
+ body: z.ZodString;
1304
+ subRatings: z.ZodNullable<z.ZodJSONSchema>;
1305
+ vendorResponse: z.ZodNullable<z.ZodString>;
1306
+ vendorRespondedAt: z.ZodNullable<z.ZodISODateTime>;
1307
+ createdAt: z.ZodISODateTime;
1308
+ updatedAt: z.ZodISODateTime;
1309
+ }, z.core.$loose>>;
1310
+ publishedAt: z.ZodNullable<z.ZodISODateTime>;
1311
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1312
+ createdAt: z.ZodISODateTime;
1313
+ updatedAt: z.ZodISODateTime;
1314
+ }, z.core.$loose>, z.ZodObject<{
1315
+ version: z.ZodOptional<z.ZodUndefined>;
1316
+ id: z.ZodUUID;
1317
+ state: z.ZodLiteral<"open">;
1318
+ title: z.ZodString;
1319
+ description: z.ZodString;
1320
+ policyFamily: z.ZodEnum<{
1321
+ "general-digital": "general-digital";
1322
+ "software-api": "software-api";
1323
+ "research-data": "research-data";
1324
+ "design-content": "design-content";
1325
+ }>;
1326
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
1327
+ publishedAt: z.ZodISODateTime;
1328
+ createdAt: z.ZodISODateTime;
1329
+ updatedAt: z.ZodISODateTime;
1330
+ }, z.core.$loose>], "version">>;
1331
+ page: z.ZodObject<{
1332
+ nextCursor: z.ZodNullable<z.ZodUUID>;
1333
+ }, z.core.$loose>;
1334
+ }, z.core.$loose>;
1335
+ readonly getOrder: z.ZodObject<{
1336
+ workOrder: z.ZodDiscriminatedUnion<[z.ZodObject<{
1337
+ version: z.ZodLiteral<"work-order-view-v1">;
1338
+ id: z.ZodUUID;
1339
+ state: z.ZodEnum<{
1340
+ cancelled: "cancelled";
1341
+ open: "open";
1342
+ awarded: "awarded";
1343
+ completed: "completed";
1344
+ }>;
1345
+ title: z.ZodString;
1346
+ description: z.ZodString;
1347
+ policyFamily: z.ZodEnum<{
1348
+ "general-digital": "general-digital";
1349
+ "software-api": "software-api";
1350
+ "research-data": "research-data";
1351
+ "design-content": "design-content";
1352
+ }>;
1353
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
1354
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1355
+ invitedProviderAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1356
+ acceptedProposalId: z.ZodNullable<z.ZodUUID>;
1357
+ threadId: z.ZodNullable<z.ZodUUID>;
1358
+ role: z.ZodEnum<{
1359
+ client: "client";
1360
+ provider: "provider";
1361
+ proposer: "proposer";
1362
+ }>;
1363
+ canFinalize: z.ZodBoolean;
1364
+ proposals: z.ZodArray<z.ZodObject<{
1365
+ id: z.ZodUUID;
1366
+ workOrderId: z.ZodUUID;
1367
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1368
+ state: z.ZodEnum<{
1369
+ pending: "pending";
1370
+ rejected: "rejected";
1371
+ accepted: "accepted";
1372
+ }>;
1373
+ signedPayload: z.ZodObject<{
1374
+ version: z.ZodLiteral<"work-proposal-v1">;
1375
+ workOrderId: z.ZodUUID;
1376
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1377
+ pricingModel: z.ZodLiteral<"fixed">;
1378
+ milestones: z.ZodArray<z.ZodObject<{
1379
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1380
+ title: z.ZodString;
1381
+ description: z.ZodString;
1382
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1383
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1384
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1385
+ escrow: z.ZodObject<{
1386
+ protocol: z.ZodLiteral<"escrow-v1">;
1387
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1388
+ }, z.core.$strip>;
1389
+ evidenceRules: z.ZodObject<{
1390
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1391
+ text: "text";
1392
+ "private-file": "private-file";
1393
+ "git-commit": "git-commit";
1394
+ }>>;
1395
+ exactCommitRequired: z.ZodBoolean;
1396
+ }, z.core.$strip>;
1397
+ budget: z.ZodObject<{
1398
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1399
+ asset: z.ZodString;
1400
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1401
+ }, z.core.$strip>;
1402
+ }, z.core.$strict>>;
1403
+ kind: z.ZodOptional<z.ZodEnum<{
1404
+ proposal: "proposal";
1405
+ submission: "submission";
1406
+ }>>;
1407
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1408
+ kind: z.ZodLiteral<"url">;
1409
+ value: z.ZodURL;
1410
+ label: z.ZodOptional<z.ZodString>;
1411
+ }, z.core.$strip>, z.ZodObject<{
1412
+ kind: z.ZodLiteral<"file">;
1413
+ value: z.ZodString;
1414
+ label: z.ZodOptional<z.ZodString>;
1415
+ }, z.core.$strip>], "kind">>>;
1416
+ }, z.core.$loose>;
1417
+ signature: z.ZodString;
1418
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1419
+ proposedMilestones: z.ZodArray<z.ZodObject<{
1420
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1421
+ title: z.ZodString;
1422
+ description: z.ZodString;
1423
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1424
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1425
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1426
+ escrow: z.ZodObject<{
1427
+ protocol: z.ZodLiteral<"escrow-v1">;
1428
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1429
+ }, z.core.$strip>;
1430
+ evidenceRules: z.ZodObject<{
1431
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1432
+ text: "text";
1433
+ "private-file": "private-file";
1434
+ "git-commit": "git-commit";
1435
+ }>>;
1436
+ exactCommitRequired: z.ZodBoolean;
1437
+ }, z.core.$strip>;
1438
+ budget: z.ZodObject<{
1439
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1440
+ asset: z.ZodString;
1441
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1442
+ }, z.core.$strip>;
1443
+ }, z.core.$strict>>;
1444
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
1445
+ createdAt: z.ZodISODateTime;
1446
+ updatedAt: z.ZodISODateTime;
1447
+ }, z.core.$loose>>;
1448
+ milestones: z.ZodArray<z.ZodObject<{
1449
+ id: z.ZodUUID;
1450
+ workOrderId: z.ZodUUID;
1451
+ ordinal: z.ZodNumber;
1452
+ state: z.ZodEnum<{
1453
+ released: "released";
1454
+ agreed: "agreed";
1455
+ funding: "funding";
1456
+ funded: "funded";
1457
+ delivering: "delivering";
1458
+ delivered: "delivered";
1459
+ evaluating: "evaluating";
1460
+ refunded: "refunded";
1461
+ }>;
1462
+ terms: z.ZodObject<{
1463
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1464
+ title: z.ZodString;
1465
+ description: z.ZodString;
1466
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1467
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1468
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1469
+ escrow: z.ZodObject<{
1470
+ protocol: z.ZodLiteral<"escrow-v1">;
1471
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1472
+ }, z.core.$strip>;
1473
+ evidenceRules: z.ZodObject<{
1474
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1475
+ text: "text";
1476
+ "private-file": "private-file";
1477
+ "git-commit": "git-commit";
1478
+ }>>;
1479
+ exactCommitRequired: z.ZodBoolean;
1480
+ }, z.core.$strip>;
1481
+ budget: z.ZodObject<{
1482
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1483
+ asset: z.ZodString;
1484
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1485
+ }, z.core.$strip>;
1486
+ }, z.core.$strict>;
1487
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1488
+ termsFrozenAt: z.ZodISODateTime;
1489
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1490
+ asset: z.ZodString;
1491
+ amountBaseUnits: z.ZodString;
1492
+ escrowProtocol: z.ZodLiteral<"escrow-v1">;
1493
+ escrowContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1494
+ escrowState: z.ZodNullable<z.ZodEnum<{
1495
+ created: "created";
1496
+ expired: "expired";
1497
+ submitted: "submitted";
1498
+ locked: "locked";
1499
+ disputed: "disputed";
1500
+ resolved: "resolved";
1501
+ }>>;
1502
+ resolution: z.ZodNullable<z.ZodEnum<{
1503
+ split: "split";
1504
+ release: "release";
1505
+ refund: "refund";
1506
+ }>>;
1507
+ offerDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1508
+ workDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1509
+ acceptanceDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1510
+ dispute: z.ZodNullable<z.ZodObject<{
1511
+ id: z.ZodString;
1512
+ state: z.ZodEnum<{
1513
+ evidence: "evidence";
1514
+ open: "open";
1515
+ resolvable: "resolvable";
1516
+ executed: "executed";
1517
+ }>;
1518
+ network: z.ZodString;
1519
+ escrowAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1520
+ raisedByRole: z.ZodEnum<{
1521
+ client: "client";
1522
+ vendor: "vendor";
1523
+ }>;
1524
+ raisedByAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1525
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1526
+ evidenceDeadlineAt: z.ZodISODateTime;
1527
+ reviewers: z.ZodArray<z.ZodObject<{
1528
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1529
+ vote: z.ZodNullable<z.ZodObject<{
1530
+ outcome: z.ZodEnum<{
1531
+ split: "split";
1532
+ release: "release";
1533
+ refund: "refund";
1534
+ }>;
1535
+ txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1536
+ votedAt: z.ZodISODateTime;
1537
+ }, z.core.$loose>>;
1538
+ }, z.core.$loose>>;
1539
+ outcome: z.ZodNullable<z.ZodEnum<{
1540
+ split: "split";
1541
+ release: "release";
1542
+ refund: "refund";
1543
+ }>>;
1544
+ executedTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1545
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
1546
+ }, z.core.$loose>>;
1547
+ chainOperation: z.ZodNullable<z.ZodObject<{
1548
+ id: z.ZodUUID;
1549
+ kind: z.ZodEnum<{
1550
+ "escrow-funding": "escrow-funding";
1551
+ "escrow-create": "escrow-create";
1552
+ "escrow-delivery": "escrow-delivery";
1553
+ "escrow-release": "escrow-release";
1554
+ "escrow-dispute": "escrow-dispute";
1555
+ "escrow-counter-evidence": "escrow-counter-evidence";
1556
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
1557
+ "escrow-vote": "escrow-vote";
1558
+ "escrow-finalize": "escrow-finalize";
1559
+ "vendor-credential-mint": "vendor-credential-mint";
1560
+ }>;
1561
+ state: z.ZodEnum<{
1562
+ confirmed: "confirmed";
1563
+ prepared: "prepared";
1564
+ submitted: "submitted";
1565
+ }>;
1566
+ step: z.ZodEnum<{
1567
+ "create-escrow": "create-escrow";
1568
+ "approve-usdc": "approve-usdc";
1569
+ "deposit-funds": "deposit-funds";
1570
+ "fund-with-authorization": "fund-with-authorization";
1571
+ "submit-delivery": "submit-delivery";
1572
+ "release-funds": "release-funds";
1573
+ "refund-buyer": "refund-buyer";
1574
+ "raise-dispute": "raise-dispute";
1575
+ "submit-counter-evidence": "submit-counter-evidence";
1576
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1577
+ "timeout-refund": "timeout-refund";
1578
+ finalize: "finalize";
1579
+ "vote-dispute": "vote-dispute";
1580
+ "mint-vendor-credential": "mint-vendor-credential";
1581
+ }>;
1582
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1583
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1584
+ plan: z.ZodNullable<z.ZodObject<{
1585
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
1586
+ operationId: z.ZodUUID;
1587
+ step: z.ZodEnum<{
1588
+ "create-escrow": "create-escrow";
1589
+ "approve-usdc": "approve-usdc";
1590
+ "deposit-funds": "deposit-funds";
1591
+ "fund-with-authorization": "fund-with-authorization";
1592
+ "submit-delivery": "submit-delivery";
1593
+ "release-funds": "release-funds";
1594
+ "refund-buyer": "refund-buyer";
1595
+ "raise-dispute": "raise-dispute";
1596
+ "submit-counter-evidence": "submit-counter-evidence";
1597
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1598
+ "timeout-refund": "timeout-refund";
1599
+ finalize: "finalize";
1600
+ "vote-dispute": "vote-dispute";
1601
+ "mint-vendor-credential": "mint-vendor-credential";
1602
+ "register-erc8004": "register-erc8004";
1603
+ }>;
1604
+ chainId: z.ZodNumber;
1605
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
1606
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1607
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1608
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1609
+ value: z.ZodLiteral<"0">;
1610
+ }, z.core.$loose>>;
1611
+ }, z.core.$loose>>;
1612
+ artifact: z.ZodNullable<z.ZodObject<{
1613
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1614
+ }, z.core.$loose>>;
1615
+ delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1616
+ id: z.ZodUUID;
1617
+ version: z.ZodNumber;
1618
+ note: z.ZodString;
1619
+ manifest: z.ZodObject<{
1620
+ files: z.ZodArray<z.ZodObject<{
1621
+ fileId: z.ZodUUID;
1622
+ fileName: z.ZodString;
1623
+ sha256: z.ZodString;
1624
+ sizeBytes: z.ZodNumber;
1625
+ }, z.core.$loose>>;
1626
+ noteSha256: z.ZodString;
1627
+ }, z.core.$loose>;
1628
+ manifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1629
+ submittedAt: z.ZodISODateTime;
1630
+ }, z.core.$loose>>>;
1631
+ fundingTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1632
+ settlementTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1633
+ fundedAt: z.ZodNullable<z.ZodISODateTime>;
1634
+ deliveredAt: z.ZodNullable<z.ZodISODateTime>;
1635
+ settledAt: z.ZodNullable<z.ZodISODateTime>;
1636
+ createdAt: z.ZodISODateTime;
1637
+ updatedAt: z.ZodISODateTime;
1638
+ }, z.core.$loose>>;
1639
+ events: z.ZodArray<z.ZodObject<{
1640
+ id: z.ZodString;
1641
+ sequence: z.ZodNumber;
1642
+ type: z.ZodString;
1643
+ actor: z.ZodString;
1644
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1645
+ payload: z.ZodJSONSchema;
1646
+ txHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1647
+ createdAt: z.ZodISODateTime;
1648
+ }, z.core.$loose>>;
1649
+ review: z.ZodNullable<z.ZodObject<{
1650
+ id: z.ZodUUID;
1651
+ workOrderId: z.ZodUUID;
1652
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1653
+ vendorProfileId: z.ZodUUID;
1654
+ rating: z.ZodNumber;
1655
+ body: z.ZodString;
1656
+ subRatings: z.ZodNullable<z.ZodJSONSchema>;
1657
+ vendorResponse: z.ZodNullable<z.ZodString>;
1658
+ vendorRespondedAt: z.ZodNullable<z.ZodISODateTime>;
1659
+ createdAt: z.ZodISODateTime;
1660
+ updatedAt: z.ZodISODateTime;
1661
+ }, z.core.$loose>>;
1662
+ publishedAt: z.ZodNullable<z.ZodISODateTime>;
1663
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1664
+ createdAt: z.ZodISODateTime;
1665
+ updatedAt: z.ZodISODateTime;
1666
+ }, z.core.$loose>, z.ZodObject<{
1667
+ version: z.ZodOptional<z.ZodUndefined>;
1668
+ id: z.ZodUUID;
1669
+ state: z.ZodLiteral<"open">;
1670
+ title: z.ZodString;
1671
+ description: z.ZodString;
1672
+ policyFamily: z.ZodEnum<{
1673
+ "general-digital": "general-digital";
1674
+ "software-api": "software-api";
1675
+ "research-data": "research-data";
1676
+ "design-content": "design-content";
1677
+ }>;
1678
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
1679
+ publishedAt: z.ZodISODateTime;
1680
+ createdAt: z.ZodISODateTime;
1681
+ updatedAt: z.ZodISODateTime;
1682
+ }, z.core.$loose>], "version">;
1683
+ }, z.core.$loose>;
1684
+ readonly createOrder: z.ZodObject<{
1685
+ workOrder: z.ZodObject<{
1686
+ version: z.ZodLiteral<"work-order-view-v1">;
1687
+ id: z.ZodUUID;
1688
+ state: z.ZodEnum<{
1689
+ cancelled: "cancelled";
1690
+ open: "open";
1691
+ awarded: "awarded";
1692
+ completed: "completed";
1693
+ }>;
1694
+ title: z.ZodString;
1695
+ description: z.ZodString;
1696
+ policyFamily: z.ZodEnum<{
1697
+ "general-digital": "general-digital";
1698
+ "software-api": "software-api";
1699
+ "research-data": "research-data";
1700
+ "design-content": "design-content";
1701
+ }>;
1702
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
1703
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1704
+ invitedProviderAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1705
+ acceptedProposalId: z.ZodNullable<z.ZodUUID>;
1706
+ threadId: z.ZodNullable<z.ZodUUID>;
1707
+ role: z.ZodEnum<{
1708
+ client: "client";
1709
+ provider: "provider";
1710
+ proposer: "proposer";
1711
+ }>;
1712
+ canFinalize: z.ZodBoolean;
1713
+ proposals: z.ZodArray<z.ZodObject<{
1714
+ id: z.ZodUUID;
1715
+ workOrderId: z.ZodUUID;
1716
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1717
+ state: z.ZodEnum<{
1718
+ pending: "pending";
1719
+ rejected: "rejected";
1720
+ accepted: "accepted";
1721
+ }>;
1722
+ signedPayload: z.ZodObject<{
1723
+ version: z.ZodLiteral<"work-proposal-v1">;
1724
+ workOrderId: z.ZodUUID;
1725
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1726
+ pricingModel: z.ZodLiteral<"fixed">;
1727
+ milestones: z.ZodArray<z.ZodObject<{
1728
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1729
+ title: z.ZodString;
1730
+ description: z.ZodString;
1731
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1732
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1733
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1734
+ escrow: z.ZodObject<{
1735
+ protocol: z.ZodLiteral<"escrow-v1">;
1736
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1737
+ }, z.core.$strip>;
1738
+ evidenceRules: z.ZodObject<{
1739
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1740
+ text: "text";
1741
+ "private-file": "private-file";
1742
+ "git-commit": "git-commit";
1743
+ }>>;
1744
+ exactCommitRequired: z.ZodBoolean;
1745
+ }, z.core.$strip>;
1746
+ budget: z.ZodObject<{
1747
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1748
+ asset: z.ZodString;
1749
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1750
+ }, z.core.$strip>;
1751
+ }, z.core.$strict>>;
1752
+ kind: z.ZodOptional<z.ZodEnum<{
1753
+ proposal: "proposal";
1754
+ submission: "submission";
1755
+ }>>;
1756
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1757
+ kind: z.ZodLiteral<"url">;
1758
+ value: z.ZodURL;
1759
+ label: z.ZodOptional<z.ZodString>;
1760
+ }, z.core.$strip>, z.ZodObject<{
1761
+ kind: z.ZodLiteral<"file">;
1762
+ value: z.ZodString;
1763
+ label: z.ZodOptional<z.ZodString>;
1764
+ }, z.core.$strip>], "kind">>>;
1765
+ }, z.core.$loose>;
1766
+ signature: z.ZodString;
1767
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1768
+ proposedMilestones: z.ZodArray<z.ZodObject<{
1769
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1770
+ title: z.ZodString;
1771
+ description: z.ZodString;
1772
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1773
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1774
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1775
+ escrow: z.ZodObject<{
1776
+ protocol: z.ZodLiteral<"escrow-v1">;
1777
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1778
+ }, z.core.$strip>;
1779
+ evidenceRules: z.ZodObject<{
1780
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1781
+ text: "text";
1782
+ "private-file": "private-file";
1783
+ "git-commit": "git-commit";
1784
+ }>>;
1785
+ exactCommitRequired: z.ZodBoolean;
1786
+ }, z.core.$strip>;
1787
+ budget: z.ZodObject<{
1788
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1789
+ asset: z.ZodString;
1790
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1791
+ }, z.core.$strip>;
1792
+ }, z.core.$strict>>;
1793
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
1794
+ createdAt: z.ZodISODateTime;
1795
+ updatedAt: z.ZodISODateTime;
1796
+ }, z.core.$loose>>;
1797
+ milestones: z.ZodArray<z.ZodObject<{
1798
+ id: z.ZodUUID;
1799
+ workOrderId: z.ZodUUID;
1800
+ ordinal: z.ZodNumber;
1801
+ state: z.ZodEnum<{
1802
+ released: "released";
1803
+ agreed: "agreed";
1804
+ funding: "funding";
1805
+ funded: "funded";
1806
+ delivering: "delivering";
1807
+ delivered: "delivered";
1808
+ evaluating: "evaluating";
1809
+ refunded: "refunded";
1810
+ }>;
1811
+ terms: z.ZodObject<{
1812
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
1813
+ title: z.ZodString;
1814
+ description: z.ZodString;
1815
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1816
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
1817
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
1818
+ escrow: z.ZodObject<{
1819
+ protocol: z.ZodLiteral<"escrow-v1">;
1820
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1821
+ }, z.core.$strip>;
1822
+ evidenceRules: z.ZodObject<{
1823
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
1824
+ text: "text";
1825
+ "private-file": "private-file";
1826
+ "git-commit": "git-commit";
1827
+ }>>;
1828
+ exactCommitRequired: z.ZodBoolean;
1829
+ }, z.core.$strip>;
1830
+ budget: z.ZodObject<{
1831
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1832
+ asset: z.ZodString;
1833
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
1834
+ }, z.core.$strip>;
1835
+ }, z.core.$strict>;
1836
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1837
+ termsFrozenAt: z.ZodISODateTime;
1838
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
1839
+ asset: z.ZodString;
1840
+ amountBaseUnits: z.ZodString;
1841
+ escrowProtocol: z.ZodLiteral<"escrow-v1">;
1842
+ escrowContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1843
+ escrowState: z.ZodNullable<z.ZodEnum<{
1844
+ created: "created";
1845
+ expired: "expired";
1846
+ submitted: "submitted";
1847
+ locked: "locked";
1848
+ disputed: "disputed";
1849
+ resolved: "resolved";
1850
+ }>>;
1851
+ resolution: z.ZodNullable<z.ZodEnum<{
1852
+ split: "split";
1853
+ release: "release";
1854
+ refund: "refund";
1855
+ }>>;
1856
+ offerDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1857
+ workDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1858
+ acceptanceDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
1859
+ dispute: z.ZodNullable<z.ZodObject<{
1860
+ id: z.ZodString;
1861
+ state: z.ZodEnum<{
1862
+ evidence: "evidence";
1863
+ open: "open";
1864
+ resolvable: "resolvable";
1865
+ executed: "executed";
1866
+ }>;
1867
+ network: z.ZodString;
1868
+ escrowAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1869
+ raisedByRole: z.ZodEnum<{
1870
+ client: "client";
1871
+ vendor: "vendor";
1872
+ }>;
1873
+ raisedByAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1874
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1875
+ evidenceDeadlineAt: z.ZodISODateTime;
1876
+ reviewers: z.ZodArray<z.ZodObject<{
1877
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1878
+ vote: z.ZodNullable<z.ZodObject<{
1879
+ outcome: z.ZodEnum<{
1880
+ split: "split";
1881
+ release: "release";
1882
+ refund: "refund";
1883
+ }>;
1884
+ txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1885
+ votedAt: z.ZodISODateTime;
1886
+ }, z.core.$loose>>;
1887
+ }, z.core.$loose>>;
1888
+ outcome: z.ZodNullable<z.ZodEnum<{
1889
+ split: "split";
1890
+ release: "release";
1891
+ refund: "refund";
1892
+ }>>;
1893
+ executedTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1894
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
1895
+ }, z.core.$loose>>;
1896
+ chainOperation: z.ZodNullable<z.ZodObject<{
1897
+ id: z.ZodUUID;
1898
+ kind: z.ZodEnum<{
1899
+ "escrow-funding": "escrow-funding";
1900
+ "escrow-create": "escrow-create";
1901
+ "escrow-delivery": "escrow-delivery";
1902
+ "escrow-release": "escrow-release";
1903
+ "escrow-dispute": "escrow-dispute";
1904
+ "escrow-counter-evidence": "escrow-counter-evidence";
1905
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
1906
+ "escrow-vote": "escrow-vote";
1907
+ "escrow-finalize": "escrow-finalize";
1908
+ "vendor-credential-mint": "vendor-credential-mint";
1909
+ }>;
1910
+ state: z.ZodEnum<{
1911
+ confirmed: "confirmed";
1912
+ prepared: "prepared";
1913
+ submitted: "submitted";
1914
+ }>;
1915
+ step: z.ZodEnum<{
1916
+ "create-escrow": "create-escrow";
1917
+ "approve-usdc": "approve-usdc";
1918
+ "deposit-funds": "deposit-funds";
1919
+ "fund-with-authorization": "fund-with-authorization";
1920
+ "submit-delivery": "submit-delivery";
1921
+ "release-funds": "release-funds";
1922
+ "refund-buyer": "refund-buyer";
1923
+ "raise-dispute": "raise-dispute";
1924
+ "submit-counter-evidence": "submit-counter-evidence";
1925
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1926
+ "timeout-refund": "timeout-refund";
1927
+ finalize: "finalize";
1928
+ "vote-dispute": "vote-dispute";
1929
+ "mint-vendor-credential": "mint-vendor-credential";
1930
+ }>;
1931
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1932
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1933
+ plan: z.ZodNullable<z.ZodObject<{
1934
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
1935
+ operationId: z.ZodUUID;
1936
+ step: z.ZodEnum<{
1937
+ "create-escrow": "create-escrow";
1938
+ "approve-usdc": "approve-usdc";
1939
+ "deposit-funds": "deposit-funds";
1940
+ "fund-with-authorization": "fund-with-authorization";
1941
+ "submit-delivery": "submit-delivery";
1942
+ "release-funds": "release-funds";
1943
+ "refund-buyer": "refund-buyer";
1944
+ "raise-dispute": "raise-dispute";
1945
+ "submit-counter-evidence": "submit-counter-evidence";
1946
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
1947
+ "timeout-refund": "timeout-refund";
1948
+ finalize: "finalize";
1949
+ "vote-dispute": "vote-dispute";
1950
+ "mint-vendor-credential": "mint-vendor-credential";
1951
+ "register-erc8004": "register-erc8004";
1952
+ }>;
1953
+ chainId: z.ZodNumber;
1954
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
1955
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1956
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1957
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1958
+ value: z.ZodLiteral<"0">;
1959
+ }, z.core.$loose>>;
1960
+ }, z.core.$loose>>;
1961
+ artifact: z.ZodNullable<z.ZodObject<{
1962
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1963
+ }, z.core.$loose>>;
1964
+ delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1965
+ id: z.ZodUUID;
1966
+ version: z.ZodNumber;
1967
+ note: z.ZodString;
1968
+ manifest: z.ZodObject<{
1969
+ files: z.ZodArray<z.ZodObject<{
1970
+ fileId: z.ZodUUID;
1971
+ fileName: z.ZodString;
1972
+ sha256: z.ZodString;
1973
+ sizeBytes: z.ZodNumber;
1974
+ }, z.core.$loose>>;
1975
+ noteSha256: z.ZodString;
1976
+ }, z.core.$loose>;
1977
+ manifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
1978
+ submittedAt: z.ZodISODateTime;
1979
+ }, z.core.$loose>>>;
1980
+ fundingTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1981
+ settlementTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1982
+ fundedAt: z.ZodNullable<z.ZodISODateTime>;
1983
+ deliveredAt: z.ZodNullable<z.ZodISODateTime>;
1984
+ settledAt: z.ZodNullable<z.ZodISODateTime>;
1985
+ createdAt: z.ZodISODateTime;
1986
+ updatedAt: z.ZodISODateTime;
1987
+ }, z.core.$loose>>;
1988
+ events: z.ZodArray<z.ZodObject<{
1989
+ id: z.ZodString;
1990
+ sequence: z.ZodNumber;
1991
+ type: z.ZodString;
1992
+ actor: z.ZodString;
1993
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1994
+ payload: z.ZodJSONSchema;
1995
+ txHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
1996
+ createdAt: z.ZodISODateTime;
1997
+ }, z.core.$loose>>;
1998
+ review: z.ZodNullable<z.ZodObject<{
1999
+ id: z.ZodUUID;
2000
+ workOrderId: z.ZodUUID;
2001
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2002
+ vendorProfileId: z.ZodUUID;
2003
+ rating: z.ZodNumber;
2004
+ body: z.ZodString;
2005
+ subRatings: z.ZodNullable<z.ZodJSONSchema>;
2006
+ vendorResponse: z.ZodNullable<z.ZodString>;
2007
+ vendorRespondedAt: z.ZodNullable<z.ZodISODateTime>;
2008
+ createdAt: z.ZodISODateTime;
2009
+ updatedAt: z.ZodISODateTime;
2010
+ }, z.core.$loose>>;
2011
+ publishedAt: z.ZodNullable<z.ZodISODateTime>;
2012
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
2013
+ createdAt: z.ZodISODateTime;
2014
+ updatedAt: z.ZodISODateTime;
2015
+ }, z.core.$loose>;
2016
+ }, z.core.$loose>;
2017
+ readonly propose: z.ZodObject<{
2018
+ proposal: z.ZodObject<{
2019
+ id: z.ZodUUID;
2020
+ workOrderId: z.ZodUUID;
2021
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2022
+ state: z.ZodEnum<{
2023
+ pending: "pending";
2024
+ rejected: "rejected";
2025
+ accepted: "accepted";
2026
+ }>;
2027
+ signedPayload: z.ZodObject<{
2028
+ version: z.ZodLiteral<"work-proposal-v1">;
2029
+ workOrderId: z.ZodUUID;
2030
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2031
+ pricingModel: z.ZodLiteral<"fixed">;
2032
+ milestones: z.ZodArray<z.ZodObject<{
2033
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2034
+ title: z.ZodString;
2035
+ description: z.ZodString;
2036
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2037
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2038
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2039
+ escrow: z.ZodObject<{
2040
+ protocol: z.ZodLiteral<"escrow-v1">;
2041
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2042
+ }, z.core.$strip>;
2043
+ evidenceRules: z.ZodObject<{
2044
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2045
+ text: "text";
2046
+ "private-file": "private-file";
2047
+ "git-commit": "git-commit";
2048
+ }>>;
2049
+ exactCommitRequired: z.ZodBoolean;
2050
+ }, z.core.$strip>;
2051
+ budget: z.ZodObject<{
2052
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2053
+ asset: z.ZodString;
2054
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2055
+ }, z.core.$strip>;
2056
+ }, z.core.$strict>>;
2057
+ kind: z.ZodOptional<z.ZodEnum<{
2058
+ proposal: "proposal";
2059
+ submission: "submission";
2060
+ }>>;
2061
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2062
+ kind: z.ZodLiteral<"url">;
2063
+ value: z.ZodURL;
2064
+ label: z.ZodOptional<z.ZodString>;
2065
+ }, z.core.$strip>, z.ZodObject<{
2066
+ kind: z.ZodLiteral<"file">;
2067
+ value: z.ZodString;
2068
+ label: z.ZodOptional<z.ZodString>;
2069
+ }, z.core.$strip>], "kind">>>;
2070
+ }, z.core.$loose>;
2071
+ signature: z.ZodString;
2072
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2073
+ proposedMilestones: z.ZodArray<z.ZodObject<{
2074
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2075
+ title: z.ZodString;
2076
+ description: z.ZodString;
2077
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2078
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2079
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2080
+ escrow: z.ZodObject<{
2081
+ protocol: z.ZodLiteral<"escrow-v1">;
2082
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2083
+ }, z.core.$strip>;
2084
+ evidenceRules: z.ZodObject<{
2085
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2086
+ text: "text";
2087
+ "private-file": "private-file";
2088
+ "git-commit": "git-commit";
2089
+ }>>;
2090
+ exactCommitRequired: z.ZodBoolean;
2091
+ }, z.core.$strip>;
2092
+ budget: z.ZodObject<{
2093
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2094
+ asset: z.ZodString;
2095
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2096
+ }, z.core.$strip>;
2097
+ }, z.core.$strict>>;
2098
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2099
+ createdAt: z.ZodISODateTime;
2100
+ updatedAt: z.ZodISODateTime;
2101
+ }, z.core.$loose>;
2102
+ }, z.core.$loose>;
2103
+ readonly submit: z.ZodObject<{
2104
+ proposal: z.ZodObject<{
2105
+ id: z.ZodUUID;
2106
+ workOrderId: z.ZodUUID;
2107
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2108
+ state: z.ZodEnum<{
2109
+ pending: "pending";
2110
+ rejected: "rejected";
2111
+ accepted: "accepted";
2112
+ }>;
2113
+ signedPayload: z.ZodObject<{
2114
+ version: z.ZodLiteral<"work-proposal-v1">;
2115
+ workOrderId: z.ZodUUID;
2116
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2117
+ pricingModel: z.ZodLiteral<"fixed">;
2118
+ milestones: z.ZodArray<z.ZodObject<{
2119
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2120
+ title: z.ZodString;
2121
+ description: z.ZodString;
2122
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2123
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2124
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2125
+ escrow: z.ZodObject<{
2126
+ protocol: z.ZodLiteral<"escrow-v1">;
2127
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2128
+ }, z.core.$strip>;
2129
+ evidenceRules: z.ZodObject<{
2130
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2131
+ text: "text";
2132
+ "private-file": "private-file";
2133
+ "git-commit": "git-commit";
2134
+ }>>;
2135
+ exactCommitRequired: z.ZodBoolean;
2136
+ }, z.core.$strip>;
2137
+ budget: z.ZodObject<{
2138
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2139
+ asset: z.ZodString;
2140
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2141
+ }, z.core.$strip>;
2142
+ }, z.core.$strict>>;
2143
+ kind: z.ZodOptional<z.ZodEnum<{
2144
+ proposal: "proposal";
2145
+ submission: "submission";
2146
+ }>>;
2147
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2148
+ kind: z.ZodLiteral<"url">;
2149
+ value: z.ZodURL;
2150
+ label: z.ZodOptional<z.ZodString>;
2151
+ }, z.core.$strip>, z.ZodObject<{
2152
+ kind: z.ZodLiteral<"file">;
2153
+ value: z.ZodString;
2154
+ label: z.ZodOptional<z.ZodString>;
2155
+ }, z.core.$strip>], "kind">>>;
2156
+ }, z.core.$loose>;
2157
+ signature: z.ZodString;
2158
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2159
+ proposedMilestones: z.ZodArray<z.ZodObject<{
2160
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2161
+ title: z.ZodString;
2162
+ description: z.ZodString;
2163
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2164
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2165
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2166
+ escrow: z.ZodObject<{
2167
+ protocol: z.ZodLiteral<"escrow-v1">;
2168
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2169
+ }, z.core.$strip>;
2170
+ evidenceRules: z.ZodObject<{
2171
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2172
+ text: "text";
2173
+ "private-file": "private-file";
2174
+ "git-commit": "git-commit";
2175
+ }>>;
2176
+ exactCommitRequired: z.ZodBoolean;
2177
+ }, z.core.$strip>;
2178
+ budget: z.ZodObject<{
2179
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2180
+ asset: z.ZodString;
2181
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2182
+ }, z.core.$strip>;
2183
+ }, z.core.$strict>>;
2184
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2185
+ createdAt: z.ZodISODateTime;
2186
+ updatedAt: z.ZodISODateTime;
2187
+ }, z.core.$loose>;
2188
+ }, z.core.$loose>;
2189
+ readonly events: z.ZodObject<{
2190
+ events: z.ZodArray<z.ZodObject<{
2191
+ sequence: z.ZodNumber;
2192
+ type: z.ZodString;
2193
+ at: z.ZodString;
2194
+ actor: z.ZodString;
2195
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2196
+ }, z.core.$loose>>;
2197
+ nextAfter: z.ZodNumber;
2198
+ }, z.core.$loose>;
2199
+ readonly board: z.ZodObject<{
2200
+ pinned: z.ZodNullable<z.ZodObject<{
2201
+ id: z.ZodString;
2202
+ title: z.ZodString;
2203
+ brief: z.ZodString;
2204
+ shape: z.ZodEnum<{
2205
+ task: "task";
2206
+ "open-bounty": "open-bounty";
2207
+ }>;
2208
+ amount: z.ZodNullable<z.ZodObject<{
2209
+ gross: z.ZodString;
2210
+ fee: z.ZodNullable<z.ZodString>;
2211
+ net: z.ZodNullable<z.ZodString>;
2212
+ asset: z.ZodLiteral<"USDC">;
2213
+ feeBp: z.ZodNullable<z.ZodNumber>;
2214
+ }, z.core.$loose>>;
2215
+ deadlineAt: z.ZodNullable<z.ZodString>;
2216
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
2217
+ createdAt: z.ZodString;
2218
+ state: z.ZodEnum<{
2219
+ paid: "paid";
2220
+ expired: "expired";
2221
+ open: "open";
2222
+ disputed: "disputed";
2223
+ funded: "funded";
2224
+ delivered: "delivered";
2225
+ refunded: "refunded";
2226
+ awarded: "awarded";
2227
+ closed: "closed";
2228
+ }>;
2229
+ poster: z.ZodObject<{
2230
+ address: z.ZodString;
2231
+ badge: z.ZodObject<{
2232
+ kind: z.ZodEnum<{
2233
+ agent: "agent";
2234
+ human: "human";
2235
+ }>;
2236
+ source: z.ZodEnum<{
2237
+ none: "none";
2238
+ "agent-link": "agent-link";
2239
+ erc8004: "erc8004";
2240
+ }>;
2241
+ owner: z.ZodNullable<z.ZodObject<{
2242
+ profileId: z.ZodString;
2243
+ label: z.ZodString;
2244
+ }, z.core.$loose>>;
2245
+ verifiedWorker: z.ZodBoolean;
2246
+ }, z.core.$loose>;
2247
+ }, z.core.$loose>;
2248
+ takers: z.ZodNumber;
2249
+ awards: z.ZodNumber;
2250
+ maxAwards: z.ZodNumber;
2251
+ proofKinds: z.ZodArray<z.ZodString>;
2252
+ audience: z.ZodString;
2253
+ receiptUrl: z.ZodNullable<z.ZodString>;
2254
+ }, z.core.$loose>>;
2255
+ numbers: z.ZodObject<{
2256
+ escrowedNow: z.ZodString;
2257
+ paidOutAllTime: z.ZodString;
2258
+ tasksSettled: z.ZodNumber;
2259
+ agentsActive30d: z.ZodNumber;
2260
+ feeBp: z.ZodNullable<z.ZodNumber>;
2261
+ call: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2262
+ routedThroughVapi30d: z.ZodNumber;
2263
+ paymentsOnBase30d: z.ZodNumber;
2264
+ volumeUsdOnBase30d: z.ZodString;
2265
+ asOf: z.ZodString;
2266
+ }, z.core.$loose>>>;
2267
+ }, z.core.$loose>;
2268
+ cards: z.ZodArray<z.ZodObject<{
2269
+ id: z.ZodString;
2270
+ title: z.ZodString;
2271
+ brief: z.ZodString;
2272
+ shape: z.ZodEnum<{
2273
+ task: "task";
2274
+ "open-bounty": "open-bounty";
2275
+ }>;
2276
+ amount: z.ZodNullable<z.ZodObject<{
2277
+ gross: z.ZodString;
2278
+ fee: z.ZodNullable<z.ZodString>;
2279
+ net: z.ZodNullable<z.ZodString>;
2280
+ asset: z.ZodLiteral<"USDC">;
2281
+ feeBp: z.ZodNullable<z.ZodNumber>;
2282
+ }, z.core.$loose>>;
2283
+ deadlineAt: z.ZodNullable<z.ZodString>;
2284
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
2285
+ createdAt: z.ZodString;
2286
+ state: z.ZodEnum<{
2287
+ paid: "paid";
2288
+ expired: "expired";
2289
+ open: "open";
2290
+ disputed: "disputed";
2291
+ funded: "funded";
2292
+ delivered: "delivered";
2293
+ refunded: "refunded";
2294
+ awarded: "awarded";
2295
+ closed: "closed";
2296
+ }>;
2297
+ poster: z.ZodObject<{
2298
+ address: z.ZodString;
2299
+ badge: z.ZodObject<{
2300
+ kind: z.ZodEnum<{
2301
+ agent: "agent";
2302
+ human: "human";
2303
+ }>;
2304
+ source: z.ZodEnum<{
2305
+ none: "none";
2306
+ "agent-link": "agent-link";
2307
+ erc8004: "erc8004";
2308
+ }>;
2309
+ owner: z.ZodNullable<z.ZodObject<{
2310
+ profileId: z.ZodString;
2311
+ label: z.ZodString;
2312
+ }, z.core.$loose>>;
2313
+ verifiedWorker: z.ZodBoolean;
2314
+ }, z.core.$loose>;
2315
+ }, z.core.$loose>;
2316
+ takers: z.ZodNumber;
2317
+ awards: z.ZodNumber;
2318
+ maxAwards: z.ZodNumber;
2319
+ proofKinds: z.ZodArray<z.ZodString>;
2320
+ audience: z.ZodString;
2321
+ receiptUrl: z.ZodNullable<z.ZodString>;
2322
+ }, z.core.$loose>>;
2323
+ nextCursor: z.ZodNullable<z.ZodString>;
2324
+ }, z.core.$loose>;
2325
+ readonly feed: z.ZodObject<{
2326
+ rows: z.ZodArray<z.ZodObject<{
2327
+ cursor: z.ZodString;
2328
+ at: z.ZodString;
2329
+ kind: z.ZodEnum<{
2330
+ paid: "paid";
2331
+ disputed: "disputed";
2332
+ funded: "funded";
2333
+ delivered: "delivered";
2334
+ refunded: "refunded";
2335
+ awarded: "awarded";
2336
+ posted: "posted";
2337
+ taken: "taken";
2338
+ }>;
2339
+ orderId: z.ZodString;
2340
+ title: z.ZodString;
2341
+ amount: z.ZodNullable<z.ZodString>;
2342
+ actor: z.ZodObject<{
2343
+ address: z.ZodString;
2344
+ badge: z.ZodObject<{
2345
+ kind: z.ZodEnum<{
2346
+ agent: "agent";
2347
+ human: "human";
2348
+ }>;
2349
+ source: z.ZodEnum<{
2350
+ none: "none";
2351
+ "agent-link": "agent-link";
2352
+ erc8004: "erc8004";
2353
+ }>;
2354
+ owner: z.ZodNullable<z.ZodObject<{
2355
+ profileId: z.ZodString;
2356
+ label: z.ZodString;
2357
+ }, z.core.$loose>>;
2358
+ verifiedWorker: z.ZodBoolean;
2359
+ }, z.core.$loose>;
2360
+ }, z.core.$loose>;
2361
+ counterparty: z.ZodNullable<z.ZodObject<{
2362
+ address: z.ZodString;
2363
+ badge: z.ZodObject<{
2364
+ kind: z.ZodEnum<{
2365
+ agent: "agent";
2366
+ human: "human";
2367
+ }>;
2368
+ source: z.ZodEnum<{
2369
+ none: "none";
2370
+ "agent-link": "agent-link";
2371
+ erc8004: "erc8004";
2372
+ }>;
2373
+ owner: z.ZodNullable<z.ZodObject<{
2374
+ profileId: z.ZodString;
2375
+ label: z.ZodString;
2376
+ }, z.core.$loose>>;
2377
+ verifiedWorker: z.ZodBoolean;
2378
+ }, z.core.$loose>;
2379
+ }, z.core.$loose>>;
2380
+ receiptUrl: z.ZodNullable<z.ZodString>;
2381
+ }, z.core.$loose>>;
2382
+ nextCursor: z.ZodNullable<z.ZodString>;
2383
+ }, z.core.$loose>;
2384
+ readonly publicTask: z.ZodNullable<z.ZodObject<{
2385
+ id: z.ZodString;
2386
+ title: z.ZodString;
2387
+ brief: z.ZodString;
2388
+ shape: z.ZodEnum<{
2389
+ task: "task";
2390
+ "open-bounty": "open-bounty";
2391
+ }>;
2392
+ amount: z.ZodNullable<z.ZodObject<{
2393
+ gross: z.ZodString;
2394
+ fee: z.ZodNullable<z.ZodString>;
2395
+ net: z.ZodNullable<z.ZodString>;
2396
+ asset: z.ZodLiteral<"USDC">;
2397
+ feeBp: z.ZodNullable<z.ZodNumber>;
2398
+ }, z.core.$loose>>;
2399
+ deadlineAt: z.ZodNullable<z.ZodString>;
2400
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
2401
+ createdAt: z.ZodString;
2402
+ state: z.ZodEnum<{
2403
+ paid: "paid";
2404
+ expired: "expired";
2405
+ open: "open";
2406
+ disputed: "disputed";
2407
+ funded: "funded";
2408
+ delivered: "delivered";
2409
+ refunded: "refunded";
2410
+ awarded: "awarded";
2411
+ closed: "closed";
2412
+ }>;
2413
+ poster: z.ZodObject<{
2414
+ address: z.ZodString;
2415
+ badge: z.ZodObject<{
2416
+ kind: z.ZodEnum<{
2417
+ agent: "agent";
2418
+ human: "human";
2419
+ }>;
2420
+ source: z.ZodEnum<{
2421
+ none: "none";
2422
+ "agent-link": "agent-link";
2423
+ erc8004: "erc8004";
2424
+ }>;
2425
+ owner: z.ZodNullable<z.ZodObject<{
2426
+ profileId: z.ZodString;
2427
+ label: z.ZodString;
2428
+ }, z.core.$loose>>;
2429
+ verifiedWorker: z.ZodBoolean;
2430
+ }, z.core.$loose>;
2431
+ }, z.core.$loose>;
2432
+ takers: z.ZodNumber;
2433
+ awards: z.ZodNumber;
2434
+ maxAwards: z.ZodNumber;
2435
+ proofKinds: z.ZodArray<z.ZodString>;
2436
+ audience: z.ZodString;
2437
+ receiptUrl: z.ZodNullable<z.ZodString>;
2438
+ briefFull: z.ZodString;
2439
+ children: z.ZodArray<z.ZodObject<{
2440
+ orderId: z.ZodString;
2441
+ worker: z.ZodObject<{
2442
+ address: z.ZodString;
2443
+ badge: z.ZodObject<{
2444
+ kind: z.ZodEnum<{
2445
+ agent: "agent";
2446
+ human: "human";
2447
+ }>;
2448
+ source: z.ZodEnum<{
2449
+ none: "none";
2450
+ "agent-link": "agent-link";
2451
+ erc8004: "erc8004";
2452
+ }>;
2453
+ owner: z.ZodNullable<z.ZodObject<{
2454
+ profileId: z.ZodString;
2455
+ label: z.ZodString;
2456
+ }, z.core.$loose>>;
2457
+ verifiedWorker: z.ZodBoolean;
2458
+ }, z.core.$loose>;
2459
+ }, z.core.$loose>;
2460
+ state: z.ZodEnum<{
2461
+ paid: "paid";
2462
+ expired: "expired";
2463
+ open: "open";
2464
+ disputed: "disputed";
2465
+ funded: "funded";
2466
+ delivered: "delivered";
2467
+ refunded: "refunded";
2468
+ awarded: "awarded";
2469
+ closed: "closed";
2470
+ }>;
2471
+ receiptUrl: z.ZodNullable<z.ZodString>;
2472
+ }, z.core.$loose>>;
2473
+ }, z.core.$loose>>;
2474
+ readonly receipt: z.ZodNullable<z.ZodObject<{
2475
+ escrow: z.ZodString;
2476
+ orderId: z.ZodString;
2477
+ title: z.ZodString;
2478
+ poster: z.ZodObject<{
2479
+ address: z.ZodString;
2480
+ badge: z.ZodObject<{
2481
+ kind: z.ZodEnum<{
2482
+ agent: "agent";
2483
+ human: "human";
2484
+ }>;
2485
+ source: z.ZodEnum<{
2486
+ none: "none";
2487
+ "agent-link": "agent-link";
2488
+ erc8004: "erc8004";
2489
+ }>;
2490
+ owner: z.ZodNullable<z.ZodObject<{
2491
+ profileId: z.ZodString;
2492
+ label: z.ZodString;
2493
+ }, z.core.$loose>>;
2494
+ verifiedWorker: z.ZodBoolean;
2495
+ }, z.core.$loose>;
2496
+ }, z.core.$loose>;
2497
+ worker: z.ZodObject<{
2498
+ address: z.ZodString;
2499
+ badge: z.ZodObject<{
2500
+ kind: z.ZodEnum<{
2501
+ agent: "agent";
2502
+ human: "human";
2503
+ }>;
2504
+ source: z.ZodEnum<{
2505
+ none: "none";
2506
+ "agent-link": "agent-link";
2507
+ erc8004: "erc8004";
2508
+ }>;
2509
+ owner: z.ZodNullable<z.ZodObject<{
2510
+ profileId: z.ZodString;
2511
+ label: z.ZodString;
2512
+ }, z.core.$loose>>;
2513
+ verifiedWorker: z.ZodBoolean;
2514
+ }, z.core.$loose>;
2515
+ }, z.core.$loose>;
2516
+ amount: z.ZodObject<{
2517
+ gross: z.ZodString;
2518
+ fee: z.ZodNullable<z.ZodString>;
2519
+ net: z.ZodNullable<z.ZodString>;
2520
+ asset: z.ZodLiteral<"USDC">;
2521
+ feeBp: z.ZodNullable<z.ZodNumber>;
2522
+ }, z.core.$loose>;
2523
+ postedAt: z.ZodString;
2524
+ fundedAt: z.ZodNullable<z.ZodString>;
2525
+ deliveredAt: z.ZodNullable<z.ZodString>;
2526
+ settledAt: z.ZodString;
2527
+ outcome: z.ZodEnum<{
2528
+ split: "split";
2529
+ released: "released";
2530
+ expired: "expired";
2531
+ refunded: "refunded";
2532
+ }>;
2533
+ allocations: z.ZodNullable<z.ZodObject<{
2534
+ worker: z.ZodString;
2535
+ poster: z.ZodString;
2536
+ fee: z.ZodString;
2537
+ reviewers: z.ZodString;
2538
+ }, z.core.$loose>>;
2539
+ txs: z.ZodObject<{
2540
+ funded: z.ZodNullable<z.ZodString>;
2541
+ settled: z.ZodNullable<z.ZodString>;
2542
+ }, z.core.$loose>;
2543
+ explorerUrl: z.ZodString;
2544
+ disputed: z.ZodBoolean;
2545
+ network: z.ZodString;
2546
+ }, z.core.$loose>>;
2547
+ readonly earn: z.ZodObject<{
2548
+ numbers: z.ZodObject<{
2549
+ escrowedNow: z.ZodString;
2550
+ paidOutAllTime: z.ZodString;
2551
+ tasksSettled: z.ZodNumber;
2552
+ agentsActive30d: z.ZodNumber;
2553
+ feeBp: z.ZodNullable<z.ZodNumber>;
2554
+ call: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2555
+ routedThroughVapi30d: z.ZodNumber;
2556
+ paymentsOnBase30d: z.ZodNumber;
2557
+ volumeUsdOnBase30d: z.ZodString;
2558
+ asOf: z.ZodString;
2559
+ }, z.core.$loose>>>;
2560
+ }, z.core.$loose>;
2561
+ topEarners: z.ZodObject<{
2562
+ humans: z.ZodArray<z.ZodObject<{
2563
+ address: z.ZodString;
2564
+ badge: z.ZodObject<{
2565
+ kind: z.ZodEnum<{
2566
+ agent: "agent";
2567
+ human: "human";
2568
+ }>;
2569
+ source: z.ZodEnum<{
2570
+ none: "none";
2571
+ "agent-link": "agent-link";
2572
+ erc8004: "erc8004";
2573
+ }>;
2574
+ owner: z.ZodNullable<z.ZodObject<{
2575
+ profileId: z.ZodString;
2576
+ label: z.ZodString;
2577
+ }, z.core.$loose>>;
2578
+ verifiedWorker: z.ZodBoolean;
2579
+ }, z.core.$loose>;
2580
+ paidOut30d: z.ZodString;
2581
+ tasks: z.ZodNumber;
2582
+ }, z.core.$loose>>;
2583
+ agents: z.ZodArray<z.ZodObject<{
2584
+ address: z.ZodString;
2585
+ badge: z.ZodObject<{
2586
+ kind: z.ZodEnum<{
2587
+ agent: "agent";
2588
+ human: "human";
2589
+ }>;
2590
+ source: z.ZodEnum<{
2591
+ none: "none";
2592
+ "agent-link": "agent-link";
2593
+ erc8004: "erc8004";
2594
+ }>;
2595
+ owner: z.ZodNullable<z.ZodObject<{
2596
+ profileId: z.ZodString;
2597
+ label: z.ZodString;
2598
+ }, z.core.$loose>>;
2599
+ verifiedWorker: z.ZodBoolean;
2600
+ }, z.core.$loose>;
2601
+ paidOut30d: z.ZodString;
2602
+ tasks: z.ZodNumber;
2603
+ }, z.core.$loose>>;
2604
+ }, z.core.$loose>;
2605
+ openByPayout: z.ZodArray<z.ZodObject<{
2606
+ id: z.ZodString;
2607
+ title: z.ZodString;
2608
+ brief: z.ZodString;
2609
+ shape: z.ZodEnum<{
2610
+ task: "task";
2611
+ "open-bounty": "open-bounty";
2612
+ }>;
2613
+ amount: z.ZodNullable<z.ZodObject<{
2614
+ gross: z.ZodString;
2615
+ fee: z.ZodNullable<z.ZodString>;
2616
+ net: z.ZodNullable<z.ZodString>;
2617
+ asset: z.ZodLiteral<"USDC">;
2618
+ feeBp: z.ZodNullable<z.ZodNumber>;
2619
+ }, z.core.$loose>>;
2620
+ deadlineAt: z.ZodNullable<z.ZodString>;
2621
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
2622
+ createdAt: z.ZodString;
2623
+ state: z.ZodEnum<{
2624
+ paid: "paid";
2625
+ expired: "expired";
2626
+ open: "open";
2627
+ disputed: "disputed";
2628
+ funded: "funded";
2629
+ delivered: "delivered";
2630
+ refunded: "refunded";
2631
+ awarded: "awarded";
2632
+ closed: "closed";
2633
+ }>;
2634
+ poster: z.ZodObject<{
2635
+ address: z.ZodString;
2636
+ badge: z.ZodObject<{
2637
+ kind: z.ZodEnum<{
2638
+ agent: "agent";
2639
+ human: "human";
2640
+ }>;
2641
+ source: z.ZodEnum<{
2642
+ none: "none";
2643
+ "agent-link": "agent-link";
2644
+ erc8004: "erc8004";
2645
+ }>;
2646
+ owner: z.ZodNullable<z.ZodObject<{
2647
+ profileId: z.ZodString;
2648
+ label: z.ZodString;
2649
+ }, z.core.$loose>>;
2650
+ verifiedWorker: z.ZodBoolean;
2651
+ }, z.core.$loose>;
2652
+ }, z.core.$loose>;
2653
+ takers: z.ZodNumber;
2654
+ awards: z.ZodNumber;
2655
+ maxAwards: z.ZodNumber;
2656
+ proofKinds: z.ZodArray<z.ZodString>;
2657
+ audience: z.ZodString;
2658
+ receiptUrl: z.ZodNullable<z.ZodString>;
2659
+ }, z.core.$loose>>;
2660
+ }, z.core.$loose>;
2661
+ readonly acceptProposal: z.ZodUnion<readonly [z.ZodObject<{
2662
+ workOrder: z.ZodObject<{
2663
+ version: z.ZodLiteral<"work-order-view-v1">;
2664
+ id: z.ZodUUID;
2665
+ state: z.ZodEnum<{
2666
+ cancelled: "cancelled";
2667
+ open: "open";
2668
+ awarded: "awarded";
2669
+ completed: "completed";
2670
+ }>;
2671
+ title: z.ZodString;
2672
+ description: z.ZodString;
2673
+ policyFamily: z.ZodEnum<{
2674
+ "general-digital": "general-digital";
2675
+ "software-api": "software-api";
2676
+ "research-data": "research-data";
2677
+ "design-content": "design-content";
2678
+ }>;
2679
+ listingDeliveryTimeSeconds: z.ZodNullable<z.ZodNumber>;
2680
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2681
+ invitedProviderAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2682
+ acceptedProposalId: z.ZodNullable<z.ZodUUID>;
2683
+ threadId: z.ZodNullable<z.ZodUUID>;
2684
+ role: z.ZodEnum<{
2685
+ client: "client";
2686
+ provider: "provider";
2687
+ proposer: "proposer";
2688
+ }>;
2689
+ canFinalize: z.ZodBoolean;
2690
+ proposals: z.ZodArray<z.ZodObject<{
2691
+ id: z.ZodUUID;
2692
+ workOrderId: z.ZodUUID;
2693
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2694
+ state: z.ZodEnum<{
2695
+ pending: "pending";
2696
+ rejected: "rejected";
2697
+ accepted: "accepted";
2698
+ }>;
2699
+ signedPayload: z.ZodObject<{
2700
+ version: z.ZodLiteral<"work-proposal-v1">;
2701
+ workOrderId: z.ZodUUID;
2702
+ providerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2703
+ pricingModel: z.ZodLiteral<"fixed">;
2704
+ milestones: z.ZodArray<z.ZodObject<{
2705
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2706
+ title: z.ZodString;
2707
+ description: z.ZodString;
2708
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2709
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2710
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2711
+ escrow: z.ZodObject<{
2712
+ protocol: z.ZodLiteral<"escrow-v1">;
2713
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2714
+ }, z.core.$strip>;
2715
+ evidenceRules: z.ZodObject<{
2716
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2717
+ text: "text";
2718
+ "private-file": "private-file";
2719
+ "git-commit": "git-commit";
2720
+ }>>;
2721
+ exactCommitRequired: z.ZodBoolean;
2722
+ }, z.core.$strip>;
2723
+ budget: z.ZodObject<{
2724
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2725
+ asset: z.ZodString;
2726
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2727
+ }, z.core.$strip>;
2728
+ }, z.core.$strict>>;
2729
+ kind: z.ZodOptional<z.ZodEnum<{
2730
+ proposal: "proposal";
2731
+ submission: "submission";
2732
+ }>>;
2733
+ proof: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2734
+ kind: z.ZodLiteral<"url">;
2735
+ value: z.ZodURL;
2736
+ label: z.ZodOptional<z.ZodString>;
2737
+ }, z.core.$strip>, z.ZodObject<{
2738
+ kind: z.ZodLiteral<"file">;
2739
+ value: z.ZodString;
2740
+ label: z.ZodOptional<z.ZodString>;
2741
+ }, z.core.$strip>], "kind">>>;
2742
+ }, z.core.$loose>;
2743
+ signature: z.ZodString;
2744
+ signatureHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2745
+ proposedMilestones: z.ZodArray<z.ZodObject<{
2746
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2747
+ title: z.ZodString;
2748
+ description: z.ZodString;
2749
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2750
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2751
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2752
+ escrow: z.ZodObject<{
2753
+ protocol: z.ZodLiteral<"escrow-v1">;
2754
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2755
+ }, z.core.$strip>;
2756
+ evidenceRules: z.ZodObject<{
2757
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2758
+ text: "text";
2759
+ "private-file": "private-file";
2760
+ "git-commit": "git-commit";
2761
+ }>>;
2762
+ exactCommitRequired: z.ZodBoolean;
2763
+ }, z.core.$strip>;
2764
+ budget: z.ZodObject<{
2765
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2766
+ asset: z.ZodString;
2767
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2768
+ }, z.core.$strip>;
2769
+ }, z.core.$strict>>;
2770
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2771
+ createdAt: z.ZodISODateTime;
2772
+ updatedAt: z.ZodISODateTime;
2773
+ }, z.core.$loose>>;
2774
+ milestones: z.ZodArray<z.ZodObject<{
2775
+ id: z.ZodUUID;
2776
+ workOrderId: z.ZodUUID;
2777
+ ordinal: z.ZodNumber;
2778
+ state: z.ZodEnum<{
2779
+ released: "released";
2780
+ agreed: "agreed";
2781
+ funding: "funding";
2782
+ funded: "funded";
2783
+ delivering: "delivering";
2784
+ delivered: "delivered";
2785
+ evaluating: "evaluating";
2786
+ refunded: "refunded";
2787
+ }>;
2788
+ terms: z.ZodObject<{
2789
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
2790
+ title: z.ZodString;
2791
+ description: z.ZodString;
2792
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
2793
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
2794
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
2795
+ escrow: z.ZodObject<{
2796
+ protocol: z.ZodLiteral<"escrow-v1">;
2797
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2798
+ }, z.core.$strip>;
2799
+ evidenceRules: z.ZodObject<{
2800
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
2801
+ text: "text";
2802
+ "private-file": "private-file";
2803
+ "git-commit": "git-commit";
2804
+ }>>;
2805
+ exactCommitRequired: z.ZodBoolean;
2806
+ }, z.core.$strip>;
2807
+ budget: z.ZodObject<{
2808
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2809
+ asset: z.ZodString;
2810
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
2811
+ }, z.core.$strip>;
2812
+ }, z.core.$strict>;
2813
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2814
+ termsFrozenAt: z.ZodISODateTime;
2815
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
2816
+ asset: z.ZodString;
2817
+ amountBaseUnits: z.ZodString;
2818
+ escrowProtocol: z.ZodLiteral<"escrow-v1">;
2819
+ escrowContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2820
+ escrowState: z.ZodNullable<z.ZodEnum<{
2821
+ created: "created";
2822
+ expired: "expired";
2823
+ submitted: "submitted";
2824
+ locked: "locked";
2825
+ disputed: "disputed";
2826
+ resolved: "resolved";
2827
+ }>>;
2828
+ resolution: z.ZodNullable<z.ZodEnum<{
2829
+ split: "split";
2830
+ release: "release";
2831
+ refund: "refund";
2832
+ }>>;
2833
+ offerDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
2834
+ workDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
2835
+ acceptanceDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
2836
+ dispute: z.ZodNullable<z.ZodObject<{
2837
+ id: z.ZodString;
2838
+ state: z.ZodEnum<{
2839
+ evidence: "evidence";
2840
+ open: "open";
2841
+ resolvable: "resolvable";
2842
+ executed: "executed";
2843
+ }>;
2844
+ network: z.ZodString;
2845
+ escrowAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2846
+ raisedByRole: z.ZodEnum<{
2847
+ client: "client";
2848
+ vendor: "vendor";
2849
+ }>;
2850
+ raisedByAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2851
+ evidenceHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2852
+ evidenceDeadlineAt: z.ZodISODateTime;
2853
+ reviewers: z.ZodArray<z.ZodObject<{
2854
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2855
+ vote: z.ZodNullable<z.ZodObject<{
2856
+ outcome: z.ZodEnum<{
2857
+ split: "split";
2858
+ release: "release";
2859
+ refund: "refund";
2860
+ }>;
2861
+ txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2862
+ votedAt: z.ZodISODateTime;
2863
+ }, z.core.$loose>>;
2864
+ }, z.core.$loose>>;
2865
+ outcome: z.ZodNullable<z.ZodEnum<{
2866
+ split: "split";
2867
+ release: "release";
2868
+ refund: "refund";
2869
+ }>>;
2870
+ executedTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2871
+ resolvedAt: z.ZodNullable<z.ZodISODateTime>;
2872
+ }, z.core.$loose>>;
2873
+ chainOperation: z.ZodNullable<z.ZodObject<{
2874
+ id: z.ZodUUID;
2875
+ kind: z.ZodEnum<{
2876
+ "escrow-funding": "escrow-funding";
2877
+ "escrow-create": "escrow-create";
2878
+ "escrow-delivery": "escrow-delivery";
2879
+ "escrow-release": "escrow-release";
2880
+ "escrow-dispute": "escrow-dispute";
2881
+ "escrow-counter-evidence": "escrow-counter-evidence";
2882
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
2883
+ "escrow-vote": "escrow-vote";
2884
+ "escrow-finalize": "escrow-finalize";
2885
+ "vendor-credential-mint": "vendor-credential-mint";
2886
+ }>;
2887
+ state: z.ZodEnum<{
2888
+ confirmed: "confirmed";
2889
+ prepared: "prepared";
2890
+ submitted: "submitted";
2891
+ }>;
2892
+ step: z.ZodEnum<{
2893
+ "create-escrow": "create-escrow";
2894
+ "approve-usdc": "approve-usdc";
2895
+ "deposit-funds": "deposit-funds";
2896
+ "fund-with-authorization": "fund-with-authorization";
2897
+ "submit-delivery": "submit-delivery";
2898
+ "release-funds": "release-funds";
2899
+ "refund-buyer": "refund-buyer";
2900
+ "raise-dispute": "raise-dispute";
2901
+ "submit-counter-evidence": "submit-counter-evidence";
2902
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
2903
+ "timeout-refund": "timeout-refund";
2904
+ finalize: "finalize";
2905
+ "vote-dispute": "vote-dispute";
2906
+ "mint-vendor-credential": "mint-vendor-credential";
2907
+ }>;
2908
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2909
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2910
+ plan: z.ZodNullable<z.ZodObject<{
2911
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
2912
+ operationId: z.ZodUUID;
2913
+ step: z.ZodEnum<{
2914
+ "create-escrow": "create-escrow";
2915
+ "approve-usdc": "approve-usdc";
2916
+ "deposit-funds": "deposit-funds";
2917
+ "fund-with-authorization": "fund-with-authorization";
2918
+ "submit-delivery": "submit-delivery";
2919
+ "release-funds": "release-funds";
2920
+ "refund-buyer": "refund-buyer";
2921
+ "raise-dispute": "raise-dispute";
2922
+ "submit-counter-evidence": "submit-counter-evidence";
2923
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
2924
+ "timeout-refund": "timeout-refund";
2925
+ finalize: "finalize";
2926
+ "vote-dispute": "vote-dispute";
2927
+ "mint-vendor-credential": "mint-vendor-credential";
2928
+ "register-erc8004": "register-erc8004";
2929
+ }>;
2930
+ chainId: z.ZodNumber;
2931
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
2932
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2933
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2934
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2935
+ value: z.ZodLiteral<"0">;
2936
+ }, z.core.$loose>>;
2937
+ }, z.core.$loose>>;
2938
+ artifact: z.ZodNullable<z.ZodObject<{
2939
+ digest: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2940
+ }, z.core.$loose>>;
2941
+ delivery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2942
+ id: z.ZodUUID;
2943
+ version: z.ZodNumber;
2944
+ note: z.ZodString;
2945
+ manifest: z.ZodObject<{
2946
+ files: z.ZodArray<z.ZodObject<{
2947
+ fileId: z.ZodUUID;
2948
+ fileName: z.ZodString;
2949
+ sha256: z.ZodString;
2950
+ sizeBytes: z.ZodNumber;
2951
+ }, z.core.$loose>>;
2952
+ noteSha256: z.ZodString;
2953
+ }, z.core.$loose>;
2954
+ manifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2955
+ submittedAt: z.ZodISODateTime;
2956
+ }, z.core.$loose>>>;
2957
+ fundingTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2958
+ settlementTxHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2959
+ fundedAt: z.ZodNullable<z.ZodISODateTime>;
2960
+ deliveredAt: z.ZodNullable<z.ZodISODateTime>;
2961
+ settledAt: z.ZodNullable<z.ZodISODateTime>;
2962
+ createdAt: z.ZodISODateTime;
2963
+ updatedAt: z.ZodISODateTime;
2964
+ }, z.core.$loose>>;
2965
+ events: z.ZodArray<z.ZodObject<{
2966
+ id: z.ZodString;
2967
+ sequence: z.ZodNumber;
2968
+ type: z.ZodString;
2969
+ actor: z.ZodString;
2970
+ milestoneId: z.ZodNullable<z.ZodUUID>;
2971
+ payload: z.ZodJSONSchema;
2972
+ txHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
2973
+ createdAt: z.ZodISODateTime;
2974
+ }, z.core.$loose>>;
2975
+ review: z.ZodNullable<z.ZodObject<{
2976
+ id: z.ZodUUID;
2977
+ workOrderId: z.ZodUUID;
2978
+ clientAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
2979
+ vendorProfileId: z.ZodUUID;
2980
+ rating: z.ZodNumber;
2981
+ body: z.ZodString;
2982
+ subRatings: z.ZodNullable<z.ZodJSONSchema>;
2983
+ vendorResponse: z.ZodNullable<z.ZodString>;
2984
+ vendorRespondedAt: z.ZodNullable<z.ZodISODateTime>;
2985
+ createdAt: z.ZodISODateTime;
2986
+ updatedAt: z.ZodISODateTime;
2987
+ }, z.core.$loose>>;
2988
+ publishedAt: z.ZodNullable<z.ZodISODateTime>;
2989
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
2990
+ createdAt: z.ZodISODateTime;
2991
+ updatedAt: z.ZodISODateTime;
2992
+ }, z.core.$loose>;
2993
+ }, z.core.$loose>, z.ZodObject<{
2994
+ childOrderId: z.ZodUUID;
2995
+ awards: z.ZodNumber;
2996
+ maxAwards: z.ZodNumber;
2997
+ parentState: z.ZodEnum<{
2998
+ open: "open";
2999
+ completed: "completed";
3000
+ }>;
3001
+ }, z.core.$loose>]>;
3002
+ readonly getScopes: z.ZodObject<{
3003
+ scopes: z.ZodArray<z.ZodObject<{
3004
+ id: z.ZodUUID;
3005
+ workOrderId: z.ZodUUID;
3006
+ trancheOrdinal: z.ZodNumber;
3007
+ version: z.ZodNumber;
3008
+ state: z.ZodEnum<{
3009
+ accepted: "accepted";
3010
+ proposed: "proposed";
3011
+ superseded: "superseded";
3012
+ withdrawn: "withdrawn";
3013
+ }>;
3014
+ structuredTerms: z.ZodObject<{
3015
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
3016
+ title: z.ZodString;
3017
+ description: z.ZodString;
3018
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
3019
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
3020
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
3021
+ escrow: z.ZodObject<{
3022
+ protocol: z.ZodLiteral<"escrow-v1">;
3023
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3024
+ }, z.core.$strip>;
3025
+ evidenceRules: z.ZodObject<{
3026
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
3027
+ text: "text";
3028
+ "private-file": "private-file";
3029
+ "git-commit": "git-commit";
3030
+ }>>;
3031
+ exactCommitRequired: z.ZodBoolean;
3032
+ }, z.core.$strip>;
3033
+ deliverables: z.ZodArray<z.ZodString>;
3034
+ revisionCount: z.ZodNumber;
3035
+ deadline: z.ZodISODateTime;
3036
+ budget: z.ZodObject<{
3037
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
3038
+ asset: z.ZodString;
3039
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
3040
+ }, z.core.$strip>;
3041
+ }, z.core.$strict>;
3042
+ brief: z.ZodString;
3043
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3044
+ proposedByRole: z.ZodEnum<{
3045
+ client: "client";
3046
+ provider: "provider";
3047
+ }>;
3048
+ proposerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3049
+ proposerSignature: z.ZodString;
3050
+ counterpartyAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3051
+ counterpartySignature: z.ZodNullable<z.ZodString>;
3052
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
3053
+ milestoneId: z.ZodNullable<z.ZodUUID>;
3054
+ createdAt: z.ZodISODateTime;
3055
+ signingPayload: z.ZodObject<{
3056
+ version: z.ZodLiteral<"work-scope-signature-v1">;
3057
+ workOrderId: z.ZodUUID;
3058
+ trancheOrdinal: z.ZodNumber;
3059
+ scopeVersion: z.ZodNumber;
3060
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3061
+ }, z.core.$strict>;
3062
+ }, z.core.$loose>>;
3063
+ }, z.core.$loose>;
3064
+ readonly proposeScope: z.ZodObject<{
3065
+ scope: z.ZodObject<{
3066
+ id: z.ZodUUID;
3067
+ workOrderId: z.ZodUUID;
3068
+ trancheOrdinal: z.ZodNumber;
3069
+ version: z.ZodNumber;
3070
+ state: z.ZodEnum<{
3071
+ accepted: "accepted";
3072
+ proposed: "proposed";
3073
+ superseded: "superseded";
3074
+ withdrawn: "withdrawn";
3075
+ }>;
3076
+ structuredTerms: z.ZodObject<{
3077
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
3078
+ title: z.ZodString;
3079
+ description: z.ZodString;
3080
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
3081
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
3082
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
3083
+ escrow: z.ZodObject<{
3084
+ protocol: z.ZodLiteral<"escrow-v1">;
3085
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3086
+ }, z.core.$strip>;
3087
+ evidenceRules: z.ZodObject<{
3088
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
3089
+ text: "text";
3090
+ "private-file": "private-file";
3091
+ "git-commit": "git-commit";
3092
+ }>>;
3093
+ exactCommitRequired: z.ZodBoolean;
3094
+ }, z.core.$strip>;
3095
+ deliverables: z.ZodArray<z.ZodString>;
3096
+ revisionCount: z.ZodNumber;
3097
+ deadline: z.ZodISODateTime;
3098
+ budget: z.ZodObject<{
3099
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
3100
+ asset: z.ZodString;
3101
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
3102
+ }, z.core.$strip>;
3103
+ }, z.core.$strict>;
3104
+ brief: z.ZodString;
3105
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3106
+ proposedByRole: z.ZodEnum<{
3107
+ client: "client";
3108
+ provider: "provider";
3109
+ }>;
3110
+ proposerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3111
+ proposerSignature: z.ZodString;
3112
+ counterpartyAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3113
+ counterpartySignature: z.ZodNullable<z.ZodString>;
3114
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
3115
+ milestoneId: z.ZodNullable<z.ZodUUID>;
3116
+ createdAt: z.ZodISODateTime;
3117
+ signingPayload: z.ZodObject<{
3118
+ version: z.ZodLiteral<"work-scope-signature-v1">;
3119
+ workOrderId: z.ZodUUID;
3120
+ trancheOrdinal: z.ZodNumber;
3121
+ scopeVersion: z.ZodNumber;
3122
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3123
+ }, z.core.$strict>;
3124
+ }, z.core.$loose>;
3125
+ }, z.core.$loose>;
3126
+ readonly signScope: z.ZodObject<{
3127
+ scope: z.ZodObject<{
3128
+ id: z.ZodUUID;
3129
+ workOrderId: z.ZodUUID;
3130
+ trancheOrdinal: z.ZodNumber;
3131
+ version: z.ZodNumber;
3132
+ state: z.ZodEnum<{
3133
+ accepted: "accepted";
3134
+ proposed: "proposed";
3135
+ superseded: "superseded";
3136
+ withdrawn: "withdrawn";
3137
+ }>;
3138
+ structuredTerms: z.ZodObject<{
3139
+ version: z.ZodLiteral<"work-milestone-terms-v1">;
3140
+ title: z.ZodString;
3141
+ description: z.ZodString;
3142
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
3143
+ workDurationSeconds: z.ZodOptional<z.ZodNumber>;
3144
+ acceptanceWindowSeconds: z.ZodDefault<z.ZodNumber>;
3145
+ escrow: z.ZodObject<{
3146
+ protocol: z.ZodLiteral<"escrow-v1">;
3147
+ contract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3148
+ }, z.core.$strip>;
3149
+ evidenceRules: z.ZodObject<{
3150
+ acceptedInputs: z.ZodArray<z.ZodEnum<{
3151
+ text: "text";
3152
+ "private-file": "private-file";
3153
+ "git-commit": "git-commit";
3154
+ }>>;
3155
+ exactCommitRequired: z.ZodBoolean;
3156
+ }, z.core.$strip>;
3157
+ deliverables: z.ZodArray<z.ZodString>;
3158
+ revisionCount: z.ZodNumber;
3159
+ deadline: z.ZodISODateTime;
3160
+ budget: z.ZodObject<{
3161
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${number}`, string>>;
3162
+ asset: z.ZodString;
3163
+ amountBaseUnits: z.ZodPipe<z.ZodString, z.ZodString>;
3164
+ }, z.core.$strip>;
3165
+ }, z.core.$strict>;
3166
+ brief: z.ZodString;
3167
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3168
+ proposedByRole: z.ZodEnum<{
3169
+ client: "client";
3170
+ provider: "provider";
3171
+ }>;
3172
+ proposerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3173
+ proposerSignature: z.ZodString;
3174
+ counterpartyAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3175
+ counterpartySignature: z.ZodNullable<z.ZodString>;
3176
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
3177
+ milestoneId: z.ZodNullable<z.ZodUUID>;
3178
+ createdAt: z.ZodISODateTime;
3179
+ signingPayload: z.ZodObject<{
3180
+ version: z.ZodLiteral<"work-scope-signature-v1">;
3181
+ workOrderId: z.ZodUUID;
3182
+ trancheOrdinal: z.ZodNumber;
3183
+ scopeVersion: z.ZodNumber;
3184
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3185
+ }, z.core.$strict>;
3186
+ }, z.core.$loose>;
3187
+ milestone: z.ZodObject<{
3188
+ id: z.ZodUUID;
3189
+ workOrderId: z.ZodUUID;
3190
+ ordinal: z.ZodNumber;
3191
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3192
+ termsFrozenAt: z.ZodISODateTime;
3193
+ }, z.core.$loose>;
3194
+ }, z.core.$loose>;
3195
+ readonly listMessages: z.ZodObject<{
3196
+ messages: z.ZodArray<z.ZodObject<{
3197
+ id: z.ZodString;
3198
+ threadId: z.ZodUUID;
3199
+ senderProfileId: z.ZodString;
3200
+ senderRole: z.ZodEnum<{
3201
+ client: "client";
3202
+ provider: "provider";
3203
+ reviewer: "reviewer";
3204
+ }>;
3205
+ kind: z.ZodEnum<{
3206
+ text: "text";
3207
+ system: "system";
3208
+ "order-pin": "order-pin";
3209
+ "scope-pin": "scope-pin";
3210
+ "delivery-pin": "delivery-pin";
3211
+ }>;
3212
+ body: z.ZodString;
3213
+ refType: z.ZodNullable<z.ZodString>;
3214
+ refId: z.ZodNullable<z.ZodString>;
3215
+ workOrderId: z.ZodNullable<z.ZodUUID>;
3216
+ orderId: z.ZodUUID;
3217
+ seq: z.ZodNumber;
3218
+ createdAt: z.ZodISODateTime;
3219
+ attachments: z.ZodArray<z.ZodObject<{
3220
+ id: z.ZodUUID;
3221
+ fileName: z.ZodString;
3222
+ mimeType: z.ZodString;
3223
+ sizeBytes: z.ZodNumber;
3224
+ }, z.core.$loose>>;
3225
+ }, z.core.$loose>>;
3226
+ page: z.ZodObject<{
3227
+ nextBeforeSeq: z.ZodNullable<z.ZodNumber>;
3228
+ }, z.core.$loose>;
3229
+ }, z.core.$loose>;
3230
+ readonly sendMessage: z.ZodObject<{
3231
+ message: z.ZodObject<{
3232
+ id: z.ZodString;
3233
+ threadId: z.ZodUUID;
3234
+ senderProfileId: z.ZodString;
3235
+ senderRole: z.ZodEnum<{
3236
+ client: "client";
3237
+ provider: "provider";
3238
+ reviewer: "reviewer";
3239
+ }>;
3240
+ kind: z.ZodEnum<{
3241
+ text: "text";
3242
+ system: "system";
3243
+ "order-pin": "order-pin";
3244
+ "scope-pin": "scope-pin";
3245
+ "delivery-pin": "delivery-pin";
3246
+ }>;
3247
+ body: z.ZodString;
3248
+ refType: z.ZodNullable<z.ZodString>;
3249
+ refId: z.ZodNullable<z.ZodString>;
3250
+ workOrderId: z.ZodNullable<z.ZodUUID>;
3251
+ orderId: z.ZodUUID;
3252
+ seq: z.ZodNumber;
3253
+ createdAt: z.ZodISODateTime;
3254
+ attachments: z.ZodArray<z.ZodObject<{
3255
+ id: z.ZodUUID;
3256
+ fileName: z.ZodString;
3257
+ mimeType: z.ZodString;
3258
+ sizeBytes: z.ZodNumber;
3259
+ }, z.core.$loose>>;
3260
+ }, z.core.$loose>;
3261
+ }, z.core.$loose>;
3262
+ readonly createEscrow: z.ZodObject<{
3263
+ operation: z.ZodObject<{
3264
+ id: z.ZodUUID;
3265
+ kind: z.ZodEnum<{
3266
+ "escrow-funding": "escrow-funding";
3267
+ "escrow-create": "escrow-create";
3268
+ "escrow-delivery": "escrow-delivery";
3269
+ "escrow-release": "escrow-release";
3270
+ "escrow-dispute": "escrow-dispute";
3271
+ "escrow-counter-evidence": "escrow-counter-evidence";
3272
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3273
+ "escrow-vote": "escrow-vote";
3274
+ "escrow-finalize": "escrow-finalize";
3275
+ "vendor-credential-mint": "vendor-credential-mint";
3276
+ }>;
3277
+ state: z.ZodEnum<{
3278
+ confirmed: "confirmed";
3279
+ prepared: "prepared";
3280
+ submitted: "submitted";
3281
+ }>;
3282
+ step: z.ZodEnum<{
3283
+ "create-escrow": "create-escrow";
3284
+ "approve-usdc": "approve-usdc";
3285
+ "deposit-funds": "deposit-funds";
3286
+ "fund-with-authorization": "fund-with-authorization";
3287
+ "submit-delivery": "submit-delivery";
3288
+ "release-funds": "release-funds";
3289
+ "refund-buyer": "refund-buyer";
3290
+ "raise-dispute": "raise-dispute";
3291
+ "submit-counter-evidence": "submit-counter-evidence";
3292
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3293
+ "timeout-refund": "timeout-refund";
3294
+ finalize: "finalize";
3295
+ "vote-dispute": "vote-dispute";
3296
+ "mint-vendor-credential": "mint-vendor-credential";
3297
+ }>;
3298
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3299
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3300
+ plan: z.ZodNullable<z.ZodObject<{
3301
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3302
+ operationId: z.ZodUUID;
3303
+ step: z.ZodEnum<{
3304
+ "create-escrow": "create-escrow";
3305
+ "approve-usdc": "approve-usdc";
3306
+ "deposit-funds": "deposit-funds";
3307
+ "fund-with-authorization": "fund-with-authorization";
3308
+ "submit-delivery": "submit-delivery";
3309
+ "release-funds": "release-funds";
3310
+ "refund-buyer": "refund-buyer";
3311
+ "raise-dispute": "raise-dispute";
3312
+ "submit-counter-evidence": "submit-counter-evidence";
3313
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3314
+ "timeout-refund": "timeout-refund";
3315
+ finalize: "finalize";
3316
+ "vote-dispute": "vote-dispute";
3317
+ "mint-vendor-credential": "mint-vendor-credential";
3318
+ "register-erc8004": "register-erc8004";
3319
+ }>;
3320
+ chainId: z.ZodNumber;
3321
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3322
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3323
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3324
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3325
+ value: z.ZodLiteral<"0">;
3326
+ }, z.core.$loose>>;
3327
+ }, z.core.$loose>;
3328
+ milestone: z.ZodObject<{
3329
+ id: z.ZodUUID;
3330
+ workOrderId: z.ZodUUID;
3331
+ }, z.core.$loose>;
3332
+ }, z.core.$loose>;
3333
+ readonly fundEscrow: z.ZodObject<{
3334
+ operation: z.ZodObject<{
3335
+ id: z.ZodUUID;
3336
+ kind: z.ZodEnum<{
3337
+ "escrow-funding": "escrow-funding";
3338
+ "escrow-create": "escrow-create";
3339
+ "escrow-delivery": "escrow-delivery";
3340
+ "escrow-release": "escrow-release";
3341
+ "escrow-dispute": "escrow-dispute";
3342
+ "escrow-counter-evidence": "escrow-counter-evidence";
3343
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3344
+ "escrow-vote": "escrow-vote";
3345
+ "escrow-finalize": "escrow-finalize";
3346
+ "vendor-credential-mint": "vendor-credential-mint";
3347
+ }>;
3348
+ state: z.ZodEnum<{
3349
+ confirmed: "confirmed";
3350
+ prepared: "prepared";
3351
+ submitted: "submitted";
3352
+ }>;
3353
+ step: z.ZodEnum<{
3354
+ "create-escrow": "create-escrow";
3355
+ "approve-usdc": "approve-usdc";
3356
+ "deposit-funds": "deposit-funds";
3357
+ "fund-with-authorization": "fund-with-authorization";
3358
+ "submit-delivery": "submit-delivery";
3359
+ "release-funds": "release-funds";
3360
+ "refund-buyer": "refund-buyer";
3361
+ "raise-dispute": "raise-dispute";
3362
+ "submit-counter-evidence": "submit-counter-evidence";
3363
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3364
+ "timeout-refund": "timeout-refund";
3365
+ finalize: "finalize";
3366
+ "vote-dispute": "vote-dispute";
3367
+ "mint-vendor-credential": "mint-vendor-credential";
3368
+ }>;
3369
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3370
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3371
+ plan: z.ZodNullable<z.ZodObject<{
3372
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3373
+ operationId: z.ZodUUID;
3374
+ step: z.ZodEnum<{
3375
+ "create-escrow": "create-escrow";
3376
+ "approve-usdc": "approve-usdc";
3377
+ "deposit-funds": "deposit-funds";
3378
+ "fund-with-authorization": "fund-with-authorization";
3379
+ "submit-delivery": "submit-delivery";
3380
+ "release-funds": "release-funds";
3381
+ "refund-buyer": "refund-buyer";
3382
+ "raise-dispute": "raise-dispute";
3383
+ "submit-counter-evidence": "submit-counter-evidence";
3384
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3385
+ "timeout-refund": "timeout-refund";
3386
+ finalize: "finalize";
3387
+ "vote-dispute": "vote-dispute";
3388
+ "mint-vendor-credential": "mint-vendor-credential";
3389
+ "register-erc8004": "register-erc8004";
3390
+ }>;
3391
+ chainId: z.ZodNumber;
3392
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3393
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3394
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3395
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3396
+ value: z.ZodLiteral<"0">;
3397
+ }, z.core.$loose>>;
3398
+ }, z.core.$loose>;
3399
+ milestone: z.ZodObject<{
3400
+ id: z.ZodUUID;
3401
+ workOrderId: z.ZodUUID;
3402
+ }, z.core.$loose>;
3403
+ }, z.core.$loose>;
3404
+ readonly deliverEscrow: z.ZodObject<{
3405
+ operation: z.ZodObject<{
3406
+ id: z.ZodUUID;
3407
+ kind: z.ZodEnum<{
3408
+ "escrow-funding": "escrow-funding";
3409
+ "escrow-create": "escrow-create";
3410
+ "escrow-delivery": "escrow-delivery";
3411
+ "escrow-release": "escrow-release";
3412
+ "escrow-dispute": "escrow-dispute";
3413
+ "escrow-counter-evidence": "escrow-counter-evidence";
3414
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3415
+ "escrow-vote": "escrow-vote";
3416
+ "escrow-finalize": "escrow-finalize";
3417
+ "vendor-credential-mint": "vendor-credential-mint";
3418
+ }>;
3419
+ state: z.ZodEnum<{
3420
+ confirmed: "confirmed";
3421
+ prepared: "prepared";
3422
+ submitted: "submitted";
3423
+ }>;
3424
+ step: z.ZodEnum<{
3425
+ "create-escrow": "create-escrow";
3426
+ "approve-usdc": "approve-usdc";
3427
+ "deposit-funds": "deposit-funds";
3428
+ "fund-with-authorization": "fund-with-authorization";
3429
+ "submit-delivery": "submit-delivery";
3430
+ "release-funds": "release-funds";
3431
+ "refund-buyer": "refund-buyer";
3432
+ "raise-dispute": "raise-dispute";
3433
+ "submit-counter-evidence": "submit-counter-evidence";
3434
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3435
+ "timeout-refund": "timeout-refund";
3436
+ finalize: "finalize";
3437
+ "vote-dispute": "vote-dispute";
3438
+ "mint-vendor-credential": "mint-vendor-credential";
3439
+ }>;
3440
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3441
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3442
+ plan: z.ZodNullable<z.ZodObject<{
3443
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3444
+ operationId: z.ZodUUID;
3445
+ step: z.ZodEnum<{
3446
+ "create-escrow": "create-escrow";
3447
+ "approve-usdc": "approve-usdc";
3448
+ "deposit-funds": "deposit-funds";
3449
+ "fund-with-authorization": "fund-with-authorization";
3450
+ "submit-delivery": "submit-delivery";
3451
+ "release-funds": "release-funds";
3452
+ "refund-buyer": "refund-buyer";
3453
+ "raise-dispute": "raise-dispute";
3454
+ "submit-counter-evidence": "submit-counter-evidence";
3455
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3456
+ "timeout-refund": "timeout-refund";
3457
+ finalize: "finalize";
3458
+ "vote-dispute": "vote-dispute";
3459
+ "mint-vendor-credential": "mint-vendor-credential";
3460
+ "register-erc8004": "register-erc8004";
3461
+ }>;
3462
+ chainId: z.ZodNumber;
3463
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3464
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3465
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3466
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3467
+ value: z.ZodLiteral<"0">;
3468
+ }, z.core.$loose>>;
3469
+ }, z.core.$loose>;
3470
+ milestone: z.ZodObject<{
3471
+ id: z.ZodUUID;
3472
+ workOrderId: z.ZodUUID;
3473
+ }, z.core.$loose>;
3474
+ delivery: z.ZodObject<{
3475
+ id: z.ZodUUID;
3476
+ milestoneId: z.ZodUUID;
3477
+ version: z.ZodNumber;
3478
+ manifest: z.ZodObject<{
3479
+ files: z.ZodArray<z.ZodObject<{
3480
+ fileId: z.ZodUUID;
3481
+ fileName: z.ZodString;
3482
+ sha256: z.ZodString;
3483
+ sizeBytes: z.ZodNumber;
3484
+ }, z.core.$loose>>;
3485
+ noteSha256: z.ZodString;
3486
+ }, z.core.$loose>;
3487
+ manifestHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3488
+ submittedByProfileId: z.ZodUUID;
3489
+ createdAt: z.ZodISODateTime;
3490
+ }, z.core.$loose>;
3491
+ }, z.core.$loose>;
3492
+ readonly releaseEscrow: z.ZodObject<{
3493
+ operation: z.ZodObject<{
3494
+ id: z.ZodUUID;
3495
+ kind: z.ZodEnum<{
3496
+ "escrow-funding": "escrow-funding";
3497
+ "escrow-create": "escrow-create";
3498
+ "escrow-delivery": "escrow-delivery";
3499
+ "escrow-release": "escrow-release";
3500
+ "escrow-dispute": "escrow-dispute";
3501
+ "escrow-counter-evidence": "escrow-counter-evidence";
3502
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3503
+ "escrow-vote": "escrow-vote";
3504
+ "escrow-finalize": "escrow-finalize";
3505
+ "vendor-credential-mint": "vendor-credential-mint";
3506
+ }>;
3507
+ state: z.ZodEnum<{
3508
+ confirmed: "confirmed";
3509
+ prepared: "prepared";
3510
+ submitted: "submitted";
3511
+ }>;
3512
+ step: z.ZodEnum<{
3513
+ "create-escrow": "create-escrow";
3514
+ "approve-usdc": "approve-usdc";
3515
+ "deposit-funds": "deposit-funds";
3516
+ "fund-with-authorization": "fund-with-authorization";
3517
+ "submit-delivery": "submit-delivery";
3518
+ "release-funds": "release-funds";
3519
+ "refund-buyer": "refund-buyer";
3520
+ "raise-dispute": "raise-dispute";
3521
+ "submit-counter-evidence": "submit-counter-evidence";
3522
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3523
+ "timeout-refund": "timeout-refund";
3524
+ finalize: "finalize";
3525
+ "vote-dispute": "vote-dispute";
3526
+ "mint-vendor-credential": "mint-vendor-credential";
3527
+ }>;
3528
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3529
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3530
+ plan: z.ZodNullable<z.ZodObject<{
3531
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3532
+ operationId: z.ZodUUID;
3533
+ step: z.ZodEnum<{
3534
+ "create-escrow": "create-escrow";
3535
+ "approve-usdc": "approve-usdc";
3536
+ "deposit-funds": "deposit-funds";
3537
+ "fund-with-authorization": "fund-with-authorization";
3538
+ "submit-delivery": "submit-delivery";
3539
+ "release-funds": "release-funds";
3540
+ "refund-buyer": "refund-buyer";
3541
+ "raise-dispute": "raise-dispute";
3542
+ "submit-counter-evidence": "submit-counter-evidence";
3543
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3544
+ "timeout-refund": "timeout-refund";
3545
+ finalize: "finalize";
3546
+ "vote-dispute": "vote-dispute";
3547
+ "mint-vendor-credential": "mint-vendor-credential";
3548
+ "register-erc8004": "register-erc8004";
3549
+ }>;
3550
+ chainId: z.ZodNumber;
3551
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3552
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3553
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3554
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3555
+ value: z.ZodLiteral<"0">;
3556
+ }, z.core.$loose>>;
3557
+ }, z.core.$loose>;
3558
+ milestone: z.ZodObject<{
3559
+ id: z.ZodUUID;
3560
+ workOrderId: z.ZodUUID;
3561
+ }, z.core.$loose>;
3562
+ }, z.core.$loose>;
3563
+ readonly refundEscrow: z.ZodObject<{
3564
+ operation: z.ZodObject<{
3565
+ id: z.ZodUUID;
3566
+ kind: z.ZodEnum<{
3567
+ "escrow-funding": "escrow-funding";
3568
+ "escrow-create": "escrow-create";
3569
+ "escrow-delivery": "escrow-delivery";
3570
+ "escrow-release": "escrow-release";
3571
+ "escrow-dispute": "escrow-dispute";
3572
+ "escrow-counter-evidence": "escrow-counter-evidence";
3573
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3574
+ "escrow-vote": "escrow-vote";
3575
+ "escrow-finalize": "escrow-finalize";
3576
+ "vendor-credential-mint": "vendor-credential-mint";
3577
+ }>;
3578
+ state: z.ZodEnum<{
3579
+ confirmed: "confirmed";
3580
+ prepared: "prepared";
3581
+ submitted: "submitted";
3582
+ }>;
3583
+ step: z.ZodEnum<{
3584
+ "create-escrow": "create-escrow";
3585
+ "approve-usdc": "approve-usdc";
3586
+ "deposit-funds": "deposit-funds";
3587
+ "fund-with-authorization": "fund-with-authorization";
3588
+ "submit-delivery": "submit-delivery";
3589
+ "release-funds": "release-funds";
3590
+ "refund-buyer": "refund-buyer";
3591
+ "raise-dispute": "raise-dispute";
3592
+ "submit-counter-evidence": "submit-counter-evidence";
3593
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3594
+ "timeout-refund": "timeout-refund";
3595
+ finalize: "finalize";
3596
+ "vote-dispute": "vote-dispute";
3597
+ "mint-vendor-credential": "mint-vendor-credential";
3598
+ }>;
3599
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3600
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3601
+ plan: z.ZodNullable<z.ZodObject<{
3602
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3603
+ operationId: z.ZodUUID;
3604
+ step: z.ZodEnum<{
3605
+ "create-escrow": "create-escrow";
3606
+ "approve-usdc": "approve-usdc";
3607
+ "deposit-funds": "deposit-funds";
3608
+ "fund-with-authorization": "fund-with-authorization";
3609
+ "submit-delivery": "submit-delivery";
3610
+ "release-funds": "release-funds";
3611
+ "refund-buyer": "refund-buyer";
3612
+ "raise-dispute": "raise-dispute";
3613
+ "submit-counter-evidence": "submit-counter-evidence";
3614
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3615
+ "timeout-refund": "timeout-refund";
3616
+ finalize: "finalize";
3617
+ "vote-dispute": "vote-dispute";
3618
+ "mint-vendor-credential": "mint-vendor-credential";
3619
+ "register-erc8004": "register-erc8004";
3620
+ }>;
3621
+ chainId: z.ZodNumber;
3622
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3623
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3624
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3625
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3626
+ value: z.ZodLiteral<"0">;
3627
+ }, z.core.$loose>>;
3628
+ }, z.core.$loose>;
3629
+ milestone: z.ZodObject<{
3630
+ id: z.ZodUUID;
3631
+ workOrderId: z.ZodUUID;
3632
+ }, z.core.$loose>;
3633
+ }, z.core.$loose>;
3634
+ readonly disputeEscrow: z.ZodObject<{
3635
+ operation: z.ZodObject<{
3636
+ id: z.ZodUUID;
3637
+ kind: z.ZodEnum<{
3638
+ "escrow-funding": "escrow-funding";
3639
+ "escrow-create": "escrow-create";
3640
+ "escrow-delivery": "escrow-delivery";
3641
+ "escrow-release": "escrow-release";
3642
+ "escrow-dispute": "escrow-dispute";
3643
+ "escrow-counter-evidence": "escrow-counter-evidence";
3644
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3645
+ "escrow-vote": "escrow-vote";
3646
+ "escrow-finalize": "escrow-finalize";
3647
+ "vendor-credential-mint": "vendor-credential-mint";
3648
+ }>;
3649
+ state: z.ZodEnum<{
3650
+ confirmed: "confirmed";
3651
+ prepared: "prepared";
3652
+ submitted: "submitted";
3653
+ }>;
3654
+ step: z.ZodEnum<{
3655
+ "create-escrow": "create-escrow";
3656
+ "approve-usdc": "approve-usdc";
3657
+ "deposit-funds": "deposit-funds";
3658
+ "fund-with-authorization": "fund-with-authorization";
3659
+ "submit-delivery": "submit-delivery";
3660
+ "release-funds": "release-funds";
3661
+ "refund-buyer": "refund-buyer";
3662
+ "raise-dispute": "raise-dispute";
3663
+ "submit-counter-evidence": "submit-counter-evidence";
3664
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3665
+ "timeout-refund": "timeout-refund";
3666
+ finalize: "finalize";
3667
+ "vote-dispute": "vote-dispute";
3668
+ "mint-vendor-credential": "mint-vendor-credential";
3669
+ }>;
3670
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3671
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3672
+ plan: z.ZodNullable<z.ZodObject<{
3673
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3674
+ operationId: z.ZodUUID;
3675
+ step: z.ZodEnum<{
3676
+ "create-escrow": "create-escrow";
3677
+ "approve-usdc": "approve-usdc";
3678
+ "deposit-funds": "deposit-funds";
3679
+ "fund-with-authorization": "fund-with-authorization";
3680
+ "submit-delivery": "submit-delivery";
3681
+ "release-funds": "release-funds";
3682
+ "refund-buyer": "refund-buyer";
3683
+ "raise-dispute": "raise-dispute";
3684
+ "submit-counter-evidence": "submit-counter-evidence";
3685
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3686
+ "timeout-refund": "timeout-refund";
3687
+ finalize: "finalize";
3688
+ "vote-dispute": "vote-dispute";
3689
+ "mint-vendor-credential": "mint-vendor-credential";
3690
+ "register-erc8004": "register-erc8004";
3691
+ }>;
3692
+ chainId: z.ZodNumber;
3693
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3694
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3695
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3696
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3697
+ value: z.ZodLiteral<"0">;
3698
+ }, z.core.$loose>>;
3699
+ }, z.core.$loose>;
3700
+ milestone: z.ZodObject<{
3701
+ id: z.ZodUUID;
3702
+ workOrderId: z.ZodUUID;
3703
+ }, z.core.$loose>;
3704
+ }, z.core.$loose>;
3705
+ readonly counterEvidenceEscrow: z.ZodObject<{
3706
+ operation: z.ZodObject<{
3707
+ id: z.ZodUUID;
3708
+ kind: z.ZodEnum<{
3709
+ "escrow-funding": "escrow-funding";
3710
+ "escrow-create": "escrow-create";
3711
+ "escrow-delivery": "escrow-delivery";
3712
+ "escrow-release": "escrow-release";
3713
+ "escrow-dispute": "escrow-dispute";
3714
+ "escrow-counter-evidence": "escrow-counter-evidence";
3715
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3716
+ "escrow-vote": "escrow-vote";
3717
+ "escrow-finalize": "escrow-finalize";
3718
+ "vendor-credential-mint": "vendor-credential-mint";
3719
+ }>;
3720
+ state: z.ZodEnum<{
3721
+ confirmed: "confirmed";
3722
+ prepared: "prepared";
3723
+ submitted: "submitted";
3724
+ }>;
3725
+ step: z.ZodEnum<{
3726
+ "create-escrow": "create-escrow";
3727
+ "approve-usdc": "approve-usdc";
3728
+ "deposit-funds": "deposit-funds";
3729
+ "fund-with-authorization": "fund-with-authorization";
3730
+ "submit-delivery": "submit-delivery";
3731
+ "release-funds": "release-funds";
3732
+ "refund-buyer": "refund-buyer";
3733
+ "raise-dispute": "raise-dispute";
3734
+ "submit-counter-evidence": "submit-counter-evidence";
3735
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3736
+ "timeout-refund": "timeout-refund";
3737
+ finalize: "finalize";
3738
+ "vote-dispute": "vote-dispute";
3739
+ "mint-vendor-credential": "mint-vendor-credential";
3740
+ }>;
3741
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3742
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3743
+ plan: z.ZodNullable<z.ZodObject<{
3744
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3745
+ operationId: z.ZodUUID;
3746
+ step: z.ZodEnum<{
3747
+ "create-escrow": "create-escrow";
3748
+ "approve-usdc": "approve-usdc";
3749
+ "deposit-funds": "deposit-funds";
3750
+ "fund-with-authorization": "fund-with-authorization";
3751
+ "submit-delivery": "submit-delivery";
3752
+ "release-funds": "release-funds";
3753
+ "refund-buyer": "refund-buyer";
3754
+ "raise-dispute": "raise-dispute";
3755
+ "submit-counter-evidence": "submit-counter-evidence";
3756
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3757
+ "timeout-refund": "timeout-refund";
3758
+ finalize: "finalize";
3759
+ "vote-dispute": "vote-dispute";
3760
+ "mint-vendor-credential": "mint-vendor-credential";
3761
+ "register-erc8004": "register-erc8004";
3762
+ }>;
3763
+ chainId: z.ZodNumber;
3764
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3765
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3766
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3767
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3768
+ value: z.ZodLiteral<"0">;
3769
+ }, z.core.$loose>>;
3770
+ }, z.core.$loose>;
3771
+ milestone: z.ZodObject<{
3772
+ id: z.ZodUUID;
3773
+ workOrderId: z.ZodUUID;
3774
+ }, z.core.$loose>;
3775
+ }, z.core.$loose>;
3776
+ readonly resolveUnmatchedEscrow: z.ZodObject<{
3777
+ operation: z.ZodObject<{
3778
+ id: z.ZodUUID;
3779
+ kind: z.ZodEnum<{
3780
+ "escrow-funding": "escrow-funding";
3781
+ "escrow-create": "escrow-create";
3782
+ "escrow-delivery": "escrow-delivery";
3783
+ "escrow-release": "escrow-release";
3784
+ "escrow-dispute": "escrow-dispute";
3785
+ "escrow-counter-evidence": "escrow-counter-evidence";
3786
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
3787
+ "escrow-vote": "escrow-vote";
3788
+ "escrow-finalize": "escrow-finalize";
3789
+ "vendor-credential-mint": "vendor-credential-mint";
3790
+ }>;
3791
+ state: z.ZodEnum<{
3792
+ confirmed: "confirmed";
3793
+ prepared: "prepared";
3794
+ submitted: "submitted";
3795
+ }>;
3796
+ step: z.ZodEnum<{
3797
+ "create-escrow": "create-escrow";
3798
+ "approve-usdc": "approve-usdc";
3799
+ "deposit-funds": "deposit-funds";
3800
+ "fund-with-authorization": "fund-with-authorization";
3801
+ "submit-delivery": "submit-delivery";
3802
+ "release-funds": "release-funds";
3803
+ "refund-buyer": "refund-buyer";
3804
+ "raise-dispute": "raise-dispute";
3805
+ "submit-counter-evidence": "submit-counter-evidence";
3806
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3807
+ "timeout-refund": "timeout-refund";
3808
+ finalize: "finalize";
3809
+ "vote-dispute": "vote-dispute";
3810
+ "mint-vendor-credential": "mint-vendor-credential";
3811
+ }>;
3812
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3813
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3814
+ plan: z.ZodNullable<z.ZodObject<{
3815
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
3816
+ operationId: z.ZodUUID;
3817
+ step: z.ZodEnum<{
3818
+ "create-escrow": "create-escrow";
3819
+ "approve-usdc": "approve-usdc";
3820
+ "deposit-funds": "deposit-funds";
3821
+ "fund-with-authorization": "fund-with-authorization";
3822
+ "submit-delivery": "submit-delivery";
3823
+ "release-funds": "release-funds";
3824
+ "refund-buyer": "refund-buyer";
3825
+ "raise-dispute": "raise-dispute";
3826
+ "submit-counter-evidence": "submit-counter-evidence";
3827
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
3828
+ "timeout-refund": "timeout-refund";
3829
+ finalize: "finalize";
3830
+ "vote-dispute": "vote-dispute";
3831
+ "mint-vendor-credential": "mint-vendor-credential";
3832
+ "register-erc8004": "register-erc8004";
3833
+ }>;
3834
+ chainId: z.ZodNumber;
3835
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3836
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3837
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3838
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3839
+ value: z.ZodLiteral<"0">;
3840
+ }, z.core.$loose>>;
3841
+ }, z.core.$loose>;
3842
+ milestone: z.ZodObject<{
3843
+ id: z.ZodUUID;
3844
+ workOrderId: z.ZodUUID;
3845
+ }, z.core.$loose>;
3846
+ }, z.core.$loose>;
3847
+ readonly chainState: z.ZodObject<{
3848
+ workOrderId: z.ZodUUID;
3849
+ milestones: z.ZodArray<z.ZodObject<{
3850
+ milestoneId: z.ZodUUID;
3851
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3852
+ escrowAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3853
+ explorerUrl: z.ZodNullable<z.ZodURL>;
3854
+ read: z.ZodDiscriminatedUnion<[z.ZodObject<{
3855
+ status: z.ZodLiteral<"pending">;
3856
+ }, z.core.$loose>, z.ZodObject<{
3857
+ status: z.ZodLiteral<"confirmed">;
3858
+ state: z.ZodEnum<{
3859
+ created: "created";
3860
+ expired: "expired";
3861
+ submitted: "submitted";
3862
+ locked: "locked";
3863
+ disputed: "disputed";
3864
+ resolved: "resolved";
3865
+ }>;
3866
+ resolution: z.ZodNullable<z.ZodEnum<{
3867
+ split: "split";
3868
+ released: "released";
3869
+ refunded: "refunded";
3870
+ }>>;
3871
+ offerDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
3872
+ workDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
3873
+ reviewDeadlineAt: z.ZodNullable<z.ZodISODateTime>;
3874
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
3875
+ token: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3876
+ buyer: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3877
+ seller: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3878
+ termsHash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3879
+ deliveryHash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
3880
+ }, z.core.$loose>, z.ZodObject<{
3881
+ status: z.ZodLiteral<"mirror">;
3882
+ state: z.ZodEnum<{
3883
+ created: "created";
3884
+ expired: "expired";
3885
+ submitted: "submitted";
3886
+ locked: "locked";
3887
+ disputed: "disputed";
3888
+ resolved: "resolved";
3889
+ }>;
3890
+ }, z.core.$loose>, z.ZodObject<{
3891
+ status: z.ZodLiteral<"unavailable">;
3892
+ reason: z.ZodEnum<{
3893
+ rpc: "rpc";
3894
+ "unsupported-network": "unsupported-network";
3895
+ "invalid-escrow": "invalid-escrow";
3896
+ "frozen-terms-mismatch": "frozen-terms-mismatch";
3897
+ }>;
3898
+ }, z.core.$loose>], "status">;
3899
+ }, z.core.$loose>>;
3900
+ observedAt: z.ZodISODateTime;
3901
+ }, z.core.$loose>;
3902
+ readonly createUpload: z.ZodObject<{
3903
+ file: z.ZodObject<{
3904
+ id: z.ZodUUID;
3905
+ purpose: z.ZodEnum<{
3906
+ "message-attachment": "message-attachment";
3907
+ delivery: "delivery";
3908
+ portfolio: "portfolio";
3909
+ }>;
3910
+ fileName: z.ZodString;
3911
+ mimeType: z.ZodEnum<{
3912
+ "application/json": "application/json";
3913
+ "text/markdown": "text/markdown";
3914
+ "image/png": "image/png";
3915
+ "image/jpeg": "image/jpeg";
3916
+ "image/webp": "image/webp";
3917
+ "image/gif": "image/gif";
3918
+ "application/pdf": "application/pdf";
3919
+ "application/zip": "application/zip";
3920
+ "text/plain": "text/plain";
3921
+ "text/csv": "text/csv";
3922
+ }>;
3923
+ sizeBytes: z.ZodNumber;
3924
+ createdAt: z.ZodISODateTime;
3925
+ state: z.ZodLiteral<"pending">;
3926
+ sha256: z.ZodNull;
3927
+ }, z.core.$loose>;
3928
+ uploadUrl: z.ZodURL;
3929
+ }, z.core.$loose>;
3930
+ readonly finalizeUpload: z.ZodObject<{
3931
+ file: z.ZodObject<{
3932
+ id: z.ZodUUID;
3933
+ purpose: z.ZodEnum<{
3934
+ "message-attachment": "message-attachment";
3935
+ delivery: "delivery";
3936
+ portfolio: "portfolio";
3937
+ }>;
3938
+ fileName: z.ZodString;
3939
+ mimeType: z.ZodEnum<{
3940
+ "application/json": "application/json";
3941
+ "text/markdown": "text/markdown";
3942
+ "image/png": "image/png";
3943
+ "image/jpeg": "image/jpeg";
3944
+ "image/webp": "image/webp";
3945
+ "image/gif": "image/gif";
3946
+ "application/pdf": "application/pdf";
3947
+ "application/zip": "application/zip";
3948
+ "text/plain": "text/plain";
3949
+ "text/csv": "text/csv";
3950
+ }>;
3951
+ sizeBytes: z.ZodNumber;
3952
+ createdAt: z.ZodISODateTime;
3953
+ state: z.ZodLiteral<"ready">;
3954
+ sha256: z.ZodString;
3955
+ }, z.core.$loose>;
3956
+ }, z.core.$loose>;
3957
+ readonly deployment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3958
+ configured: z.ZodLiteral<false>;
3959
+ feeBp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3960
+ chainId: z.ZodNumber;
3961
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3962
+ explorerUrl: z.ZodNullable<z.ZodURL>;
3963
+ capabilities: z.ZodObject<{
3964
+ erc3009Funding: z.ZodLiteral<false>;
3965
+ vapiVerify: z.ZodLiteral<false>;
3966
+ }, z.core.$loose>;
3967
+ eip3009Domain: z.ZodNull;
3968
+ }, z.core.$loose>, z.ZodObject<{
3969
+ configured: z.ZodLiteral<true>;
3970
+ feeBp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3971
+ chainId: z.ZodNumber;
3972
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
3973
+ explorerUrl: z.ZodURL;
3974
+ escrowContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3975
+ feeRouter: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3976
+ usdc: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3977
+ capabilities: z.ZodObject<{
3978
+ erc3009Funding: z.ZodBoolean;
3979
+ vapiVerify: z.ZodBoolean;
3980
+ }, z.core.$loose>;
3981
+ eip3009Domain: z.ZodNullable<z.ZodObject<{
3982
+ name: z.ZodString;
3983
+ version: z.ZodString;
3984
+ chainId: z.ZodNumber;
3985
+ verifyingContract: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
3986
+ }, z.core.$loose>>;
3987
+ maxEscrowAmountBaseUnits: z.ZodString;
3988
+ defaults: z.ZodObject<{
3989
+ workDurationSeconds: z.ZodNumber;
3990
+ }, z.core.$loose>;
3991
+ verifyReviewPriceBaseUnits: z.ZodNull;
3992
+ }, z.core.$loose>], "configured">;
3993
+ readonly recordTransaction: z.ZodObject<{
3994
+ operation: z.ZodObject<{
3995
+ id: z.ZodUUID;
3996
+ kind: z.ZodEnum<{
3997
+ "escrow-funding": "escrow-funding";
3998
+ "escrow-create": "escrow-create";
3999
+ "escrow-delivery": "escrow-delivery";
4000
+ "escrow-release": "escrow-release";
4001
+ "escrow-dispute": "escrow-dispute";
4002
+ "escrow-counter-evidence": "escrow-counter-evidence";
4003
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
4004
+ "escrow-vote": "escrow-vote";
4005
+ "escrow-finalize": "escrow-finalize";
4006
+ "vendor-credential-mint": "vendor-credential-mint";
4007
+ }>;
4008
+ state: z.ZodEnum<{
4009
+ confirmed: "confirmed";
4010
+ prepared: "prepared";
4011
+ submitted: "submitted";
4012
+ }>;
4013
+ step: z.ZodEnum<{
4014
+ "create-escrow": "create-escrow";
4015
+ "approve-usdc": "approve-usdc";
4016
+ "deposit-funds": "deposit-funds";
4017
+ "fund-with-authorization": "fund-with-authorization";
4018
+ "submit-delivery": "submit-delivery";
4019
+ "release-funds": "release-funds";
4020
+ "refund-buyer": "refund-buyer";
4021
+ "raise-dispute": "raise-dispute";
4022
+ "submit-counter-evidence": "submit-counter-evidence";
4023
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4024
+ "timeout-refund": "timeout-refund";
4025
+ finalize: "finalize";
4026
+ "vote-dispute": "vote-dispute";
4027
+ "mint-vendor-credential": "mint-vendor-credential";
4028
+ }>;
4029
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4030
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4031
+ plan: z.ZodNullable<z.ZodObject<{
4032
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
4033
+ operationId: z.ZodUUID;
4034
+ step: z.ZodEnum<{
4035
+ "create-escrow": "create-escrow";
4036
+ "approve-usdc": "approve-usdc";
4037
+ "deposit-funds": "deposit-funds";
4038
+ "fund-with-authorization": "fund-with-authorization";
4039
+ "submit-delivery": "submit-delivery";
4040
+ "release-funds": "release-funds";
4041
+ "refund-buyer": "refund-buyer";
4042
+ "raise-dispute": "raise-dispute";
4043
+ "submit-counter-evidence": "submit-counter-evidence";
4044
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4045
+ "timeout-refund": "timeout-refund";
4046
+ finalize: "finalize";
4047
+ "vote-dispute": "vote-dispute";
4048
+ "mint-vendor-credential": "mint-vendor-credential";
4049
+ "register-erc8004": "register-erc8004";
4050
+ }>;
4051
+ chainId: z.ZodNumber;
4052
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
4053
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4054
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4055
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4056
+ value: z.ZodLiteral<"0">;
4057
+ }, z.core.$loose>>;
4058
+ }, z.core.$loose>;
4059
+ milestone: z.ZodObject<{
4060
+ id: z.ZodUUID;
4061
+ workOrderId: z.ZodUUID;
4062
+ }, z.core.$loose>;
4063
+ }, z.core.$loose>;
4064
+ readonly reconcileOperation: z.ZodObject<{
4065
+ operation: z.ZodObject<{
4066
+ id: z.ZodUUID;
4067
+ kind: z.ZodEnum<{
4068
+ "escrow-funding": "escrow-funding";
4069
+ "escrow-create": "escrow-create";
4070
+ "escrow-delivery": "escrow-delivery";
4071
+ "escrow-release": "escrow-release";
4072
+ "escrow-dispute": "escrow-dispute";
4073
+ "escrow-counter-evidence": "escrow-counter-evidence";
4074
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
4075
+ "escrow-vote": "escrow-vote";
4076
+ "escrow-finalize": "escrow-finalize";
4077
+ "vendor-credential-mint": "vendor-credential-mint";
4078
+ }>;
4079
+ state: z.ZodEnum<{
4080
+ confirmed: "confirmed";
4081
+ prepared: "prepared";
4082
+ submitted: "submitted";
4083
+ }>;
4084
+ step: z.ZodEnum<{
4085
+ "create-escrow": "create-escrow";
4086
+ "approve-usdc": "approve-usdc";
4087
+ "deposit-funds": "deposit-funds";
4088
+ "fund-with-authorization": "fund-with-authorization";
4089
+ "submit-delivery": "submit-delivery";
4090
+ "release-funds": "release-funds";
4091
+ "refund-buyer": "refund-buyer";
4092
+ "raise-dispute": "raise-dispute";
4093
+ "submit-counter-evidence": "submit-counter-evidence";
4094
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4095
+ "timeout-refund": "timeout-refund";
4096
+ finalize: "finalize";
4097
+ "vote-dispute": "vote-dispute";
4098
+ "mint-vendor-credential": "mint-vendor-credential";
4099
+ }>;
4100
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4101
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4102
+ plan: z.ZodNullable<z.ZodObject<{
4103
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
4104
+ operationId: z.ZodUUID;
4105
+ step: z.ZodEnum<{
4106
+ "create-escrow": "create-escrow";
4107
+ "approve-usdc": "approve-usdc";
4108
+ "deposit-funds": "deposit-funds";
4109
+ "fund-with-authorization": "fund-with-authorization";
4110
+ "submit-delivery": "submit-delivery";
4111
+ "release-funds": "release-funds";
4112
+ "refund-buyer": "refund-buyer";
4113
+ "raise-dispute": "raise-dispute";
4114
+ "submit-counter-evidence": "submit-counter-evidence";
4115
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4116
+ "timeout-refund": "timeout-refund";
4117
+ finalize: "finalize";
4118
+ "vote-dispute": "vote-dispute";
4119
+ "mint-vendor-credential": "mint-vendor-credential";
4120
+ "register-erc8004": "register-erc8004";
4121
+ }>;
4122
+ chainId: z.ZodNumber;
4123
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
4124
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4125
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4126
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4127
+ value: z.ZodLiteral<"0">;
4128
+ }, z.core.$loose>>;
4129
+ }, z.core.$loose>;
4130
+ milestone: z.ZodObject<{
4131
+ id: z.ZodUUID;
4132
+ workOrderId: z.ZodUUID;
4133
+ }, z.core.$loose>;
4134
+ }, z.core.$loose>;
4135
+ readonly recoverOperation: z.ZodObject<{
4136
+ operation: z.ZodObject<{
4137
+ id: z.ZodUUID;
4138
+ kind: z.ZodEnum<{
4139
+ "escrow-funding": "escrow-funding";
4140
+ "escrow-create": "escrow-create";
4141
+ "escrow-delivery": "escrow-delivery";
4142
+ "escrow-release": "escrow-release";
4143
+ "escrow-dispute": "escrow-dispute";
4144
+ "escrow-counter-evidence": "escrow-counter-evidence";
4145
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
4146
+ "escrow-vote": "escrow-vote";
4147
+ "escrow-finalize": "escrow-finalize";
4148
+ "vendor-credential-mint": "vendor-credential-mint";
4149
+ }>;
4150
+ state: z.ZodEnum<{
4151
+ confirmed: "confirmed";
4152
+ prepared: "prepared";
4153
+ submitted: "submitted";
4154
+ }>;
4155
+ step: z.ZodEnum<{
4156
+ "create-escrow": "create-escrow";
4157
+ "approve-usdc": "approve-usdc";
4158
+ "deposit-funds": "deposit-funds";
4159
+ "fund-with-authorization": "fund-with-authorization";
4160
+ "submit-delivery": "submit-delivery";
4161
+ "release-funds": "release-funds";
4162
+ "refund-buyer": "refund-buyer";
4163
+ "raise-dispute": "raise-dispute";
4164
+ "submit-counter-evidence": "submit-counter-evidence";
4165
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4166
+ "timeout-refund": "timeout-refund";
4167
+ finalize: "finalize";
4168
+ "vote-dispute": "vote-dispute";
4169
+ "mint-vendor-credential": "mint-vendor-credential";
4170
+ }>;
4171
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4172
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4173
+ plan: z.ZodNullable<z.ZodObject<{
4174
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
4175
+ operationId: z.ZodUUID;
4176
+ step: z.ZodEnum<{
4177
+ "create-escrow": "create-escrow";
4178
+ "approve-usdc": "approve-usdc";
4179
+ "deposit-funds": "deposit-funds";
4180
+ "fund-with-authorization": "fund-with-authorization";
4181
+ "submit-delivery": "submit-delivery";
4182
+ "release-funds": "release-funds";
4183
+ "refund-buyer": "refund-buyer";
4184
+ "raise-dispute": "raise-dispute";
4185
+ "submit-counter-evidence": "submit-counter-evidence";
4186
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4187
+ "timeout-refund": "timeout-refund";
4188
+ finalize: "finalize";
4189
+ "vote-dispute": "vote-dispute";
4190
+ "mint-vendor-credential": "mint-vendor-credential";
4191
+ "register-erc8004": "register-erc8004";
4192
+ }>;
4193
+ chainId: z.ZodNumber;
4194
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
4195
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4196
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4197
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4198
+ value: z.ZodLiteral<"0">;
4199
+ }, z.core.$loose>>;
4200
+ }, z.core.$loose>;
4201
+ milestone: z.ZodObject<{
4202
+ id: z.ZodUUID;
4203
+ workOrderId: z.ZodUUID;
4204
+ }, z.core.$loose>;
4205
+ recovered: z.ZodBoolean;
4206
+ scanComplete: z.ZodDefault<z.ZodBoolean>;
4207
+ }, z.core.$loose>;
4208
+ readonly abandonOperation: z.ZodObject<{
4209
+ outcome: z.ZodEnum<{
4210
+ recovered: "recovered";
4211
+ abandoned: "abandoned";
4212
+ scanning: "scanning";
4213
+ }>;
4214
+ operation: z.ZodNullable<z.ZodObject<{
4215
+ id: z.ZodUUID;
4216
+ kind: z.ZodEnum<{
4217
+ "escrow-funding": "escrow-funding";
4218
+ "escrow-create": "escrow-create";
4219
+ "escrow-delivery": "escrow-delivery";
4220
+ "escrow-release": "escrow-release";
4221
+ "escrow-dispute": "escrow-dispute";
4222
+ "escrow-counter-evidence": "escrow-counter-evidence";
4223
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
4224
+ "escrow-vote": "escrow-vote";
4225
+ "escrow-finalize": "escrow-finalize";
4226
+ "vendor-credential-mint": "vendor-credential-mint";
4227
+ }>;
4228
+ state: z.ZodEnum<{
4229
+ confirmed: "confirmed";
4230
+ prepared: "prepared";
4231
+ submitted: "submitted";
4232
+ }>;
4233
+ step: z.ZodEnum<{
4234
+ "create-escrow": "create-escrow";
4235
+ "approve-usdc": "approve-usdc";
4236
+ "deposit-funds": "deposit-funds";
4237
+ "fund-with-authorization": "fund-with-authorization";
4238
+ "submit-delivery": "submit-delivery";
4239
+ "release-funds": "release-funds";
4240
+ "refund-buyer": "refund-buyer";
4241
+ "raise-dispute": "raise-dispute";
4242
+ "submit-counter-evidence": "submit-counter-evidence";
4243
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4244
+ "timeout-refund": "timeout-refund";
4245
+ finalize: "finalize";
4246
+ "vote-dispute": "vote-dispute";
4247
+ "mint-vendor-credential": "mint-vendor-credential";
4248
+ }>;
4249
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4250
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4251
+ plan: z.ZodNullable<z.ZodObject<{
4252
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
4253
+ operationId: z.ZodUUID;
4254
+ step: z.ZodEnum<{
4255
+ "create-escrow": "create-escrow";
4256
+ "approve-usdc": "approve-usdc";
4257
+ "deposit-funds": "deposit-funds";
4258
+ "fund-with-authorization": "fund-with-authorization";
4259
+ "submit-delivery": "submit-delivery";
4260
+ "release-funds": "release-funds";
4261
+ "refund-buyer": "refund-buyer";
4262
+ "raise-dispute": "raise-dispute";
4263
+ "submit-counter-evidence": "submit-counter-evidence";
4264
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4265
+ "timeout-refund": "timeout-refund";
4266
+ finalize: "finalize";
4267
+ "vote-dispute": "vote-dispute";
4268
+ "mint-vendor-credential": "mint-vendor-credential";
4269
+ "register-erc8004": "register-erc8004";
4270
+ }>;
4271
+ chainId: z.ZodNumber;
4272
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
4273
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4274
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4275
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4276
+ value: z.ZodLiteral<"0">;
4277
+ }, z.core.$loose>>;
4278
+ }, z.core.$loose>>;
4279
+ milestone: z.ZodObject<{
4280
+ id: z.ZodUUID;
4281
+ workOrderId: z.ZodUUID;
4282
+ }, z.core.$loose>;
4283
+ }, z.core.$loose>;
4284
+ readonly finalizeEscrow: z.ZodObject<{
4285
+ operation: z.ZodObject<{
4286
+ id: z.ZodUUID;
4287
+ kind: z.ZodEnum<{
4288
+ "escrow-funding": "escrow-funding";
4289
+ "escrow-create": "escrow-create";
4290
+ "escrow-delivery": "escrow-delivery";
4291
+ "escrow-release": "escrow-release";
4292
+ "escrow-dispute": "escrow-dispute";
4293
+ "escrow-counter-evidence": "escrow-counter-evidence";
4294
+ "escrow-unmatched-resolution": "escrow-unmatched-resolution";
4295
+ "escrow-vote": "escrow-vote";
4296
+ "escrow-finalize": "escrow-finalize";
4297
+ "vendor-credential-mint": "vendor-credential-mint";
4298
+ }>;
4299
+ state: z.ZodEnum<{
4300
+ confirmed: "confirmed";
4301
+ prepared: "prepared";
4302
+ submitted: "submitted";
4303
+ }>;
4304
+ step: z.ZodEnum<{
4305
+ "create-escrow": "create-escrow";
4306
+ "approve-usdc": "approve-usdc";
4307
+ "deposit-funds": "deposit-funds";
4308
+ "fund-with-authorization": "fund-with-authorization";
4309
+ "submit-delivery": "submit-delivery";
4310
+ "release-funds": "release-funds";
4311
+ "refund-buyer": "refund-buyer";
4312
+ "raise-dispute": "raise-dispute";
4313
+ "submit-counter-evidence": "submit-counter-evidence";
4314
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4315
+ "timeout-refund": "timeout-refund";
4316
+ finalize: "finalize";
4317
+ "vote-dispute": "vote-dispute";
4318
+ "mint-vendor-credential": "mint-vendor-credential";
4319
+ }>;
4320
+ expectedActor: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4321
+ transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
4322
+ plan: z.ZodNullable<z.ZodObject<{
4323
+ version: z.ZodLiteral<"work-transaction-plan-v2">;
4324
+ operationId: z.ZodUUID;
4325
+ step: z.ZodEnum<{
4326
+ "create-escrow": "create-escrow";
4327
+ "approve-usdc": "approve-usdc";
4328
+ "deposit-funds": "deposit-funds";
4329
+ "fund-with-authorization": "fund-with-authorization";
4330
+ "submit-delivery": "submit-delivery";
4331
+ "release-funds": "release-funds";
4332
+ "refund-buyer": "refund-buyer";
4333
+ "raise-dispute": "raise-dispute";
4334
+ "submit-counter-evidence": "submit-counter-evidence";
4335
+ "resolve-unmatched-dispute": "resolve-unmatched-dispute";
4336
+ "timeout-refund": "timeout-refund";
4337
+ finalize: "finalize";
4338
+ "vote-dispute": "vote-dispute";
4339
+ "mint-vendor-credential": "mint-vendor-credential";
4340
+ "register-erc8004": "register-erc8004";
4341
+ }>;
4342
+ chainId: z.ZodNumber;
4343
+ network: z.ZodPipe<z.ZodString, z.ZodTransform<`eip155:${string}`, string>>;
4344
+ from: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4345
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4346
+ data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
4347
+ value: z.ZodLiteral<"0">;
4348
+ }, z.core.$loose>>;
4349
+ }, z.core.$loose>;
4350
+ milestone: z.ZodObject<{
4351
+ id: z.ZodUUID;
4352
+ workOrderId: z.ZodUUID;
4353
+ }, z.core.$loose>;
4354
+ }, z.core.$loose>;
4355
+ readonly finalizeOrder: z.ZodObject<{
4356
+ workOrder: z.ZodObject<{
4357
+ id: z.ZodUUID;
4358
+ state: z.ZodEnum<{
4359
+ cancelled: "cancelled";
4360
+ completed: "completed";
4361
+ }>;
4362
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
4363
+ }, z.core.$loose>;
4364
+ }, z.core.$loose>;
4365
+ readonly configureWebhook: z.ZodObject<{
4366
+ webhookUrl: z.ZodNullable<z.ZodURL>;
4367
+ secret: z.ZodOptional<z.ZodString>;
4368
+ }, z.core.$loose>;
4369
+ };
4370
+ export type ListOrdersQuery = z.input<typeof listOrdersQuerySchema>;
4371
+ export type ListMessagesQuery = z.input<typeof listMessagesQuerySchema>;
4372
+ export type SendMessageInput = z.input<typeof sendMessageInputSchema>;
4373
+ export type CreateOrderInput = z.input<typeof createOrderInputSchema>;
4374
+ export type OperationMutationInput = z.input<typeof operationMutationInputSchema>;
4375
+ export type OperationStepInput = z.input<typeof operationStepInputSchema>;
4376
+ export type ConfigureWebhookInput = z.input<typeof configureWebhookInputSchema>;
4377
+ export type ProposeInput = z.input<typeof proposeInputSchema>;
4378
+ export type SubmissionProof = z.input<typeof submissionProofSchema>;
4379
+ export type SubmitInput = z.input<typeof submitInputSchema>;
4380
+ export type EventsQuery = z.input<typeof eventsQuerySchema>;
4381
+ export type BoardQuery = z.input<typeof boardQuerySchema>;
4382
+ export type FeedQuery = z.input<typeof feedQuerySchema>;
4383
+ export type AcceptProposalInput = z.input<typeof acceptProposalInputSchema>;
4384
+ export type ProposeScopeInput = z.input<typeof proposeScopeInputSchema>;
4385
+ export type SignScopeInput = z.input<typeof signScopeInputSchema>;
4386
+ export type FundEscrowInput = z.input<typeof fundEscrowInputSchema>;
4387
+ export type DeliverEscrowInput = z.input<typeof deliverEscrowInputSchema>;
4388
+ export type CounterEvidenceEscrowInput = z.input<typeof counterEvidenceEscrowInputSchema>;
4389
+ export type DisputeEscrowInput = z.input<typeof disputeEscrowInputSchema>;
4390
+ export type CreateUploadInput = z.input<typeof createUploadInputSchema>;
4391
+ export type UploadFileInput = {
4392
+ fileName: string;
4393
+ bytes: Uint8Array;
4394
+ contentType?: z.infer<typeof workFileMimeTypeSchema>;
4395
+ purpose?: z.infer<typeof workFilePurposeSchema>;
4396
+ };
4397
+ export type ListOrdersResponse = z.infer<typeof tasksResponseSchemas.listOrders>;
4398
+ export type GetOrderResponse = z.infer<typeof tasksResponseSchemas.getOrder>;
4399
+ export type CreateOrderResponse = z.infer<typeof tasksResponseSchemas.createOrder>;
4400
+ export type ProposeResponse = z.infer<typeof tasksResponseSchemas.propose>;
4401
+ export type PartyBadge = z.infer<typeof partyBadgeSchema>;
4402
+ export type PublicTaskCard = z.infer<typeof publicTaskCardSchema>;
4403
+ export type PublicReceipt = z.infer<typeof publicReceiptSchema>;
4404
+ export type BoardNumbers = z.infer<typeof boardNumbersSchema>;
4405
+ export type FeedRow = z.infer<typeof feedRowSchema>;
4406
+ export type PublicTaskDetail = z.infer<typeof publicTaskDetailSchema>;
4407
+ export type EventsResponse = z.infer<typeof tasksResponseSchemas.events>;
4408
+ export type BoardResponse = z.infer<typeof tasksResponseSchemas.board>;
4409
+ export type FeedResponse = z.infer<typeof tasksResponseSchemas.feed>;
4410
+ export type PublicTaskResponse = z.infer<typeof tasksResponseSchemas.publicTask>;
4411
+ export type ReceiptResponse = z.infer<typeof tasksResponseSchemas.receipt>;
4412
+ export type EarnResponse = z.infer<typeof tasksResponseSchemas.earn>;
4413
+ export type SubmitResponse = z.infer<typeof tasksResponseSchemas.submit>;
4414
+ export type AcceptProposalResponse = z.infer<typeof tasksResponseSchemas.acceptProposal>;
4415
+ export type GetScopesResponse = z.infer<typeof tasksResponseSchemas.getScopes>;
4416
+ export type ProposeScopeResponse = z.infer<typeof tasksResponseSchemas.proposeScope>;
4417
+ export type SignScopeResponse = z.infer<typeof tasksResponseSchemas.signScope>;
4418
+ export type ListMessagesResponse = z.infer<typeof tasksResponseSchemas.listMessages>;
4419
+ export type SendMessageResponse = z.infer<typeof tasksResponseSchemas.sendMessage>;
4420
+ export type CreateEscrowResponse = z.infer<typeof tasksResponseSchemas.createEscrow>;
4421
+ export type FundEscrowResponse = z.infer<typeof tasksResponseSchemas.fundEscrow>;
4422
+ export type DeliverEscrowResponse = z.infer<typeof tasksResponseSchemas.deliverEscrow>;
4423
+ export type ReleaseEscrowResponse = z.infer<typeof tasksResponseSchemas.releaseEscrow>;
4424
+ export type RefundEscrowResponse = z.infer<typeof tasksResponseSchemas.refundEscrow>;
4425
+ export type CounterEvidenceEscrowResponse = z.infer<typeof tasksResponseSchemas.counterEvidenceEscrow>;
4426
+ export type ResolveUnmatchedEscrowResponse = z.infer<typeof tasksResponseSchemas.resolveUnmatchedEscrow>;
4427
+ export type DisputeEscrowResponse = z.infer<typeof tasksResponseSchemas.disputeEscrow>;
4428
+ export type ChainStateResponse = z.infer<typeof tasksResponseSchemas.chainState>;
4429
+ export type CreateUploadResponse = z.infer<typeof tasksResponseSchemas.createUpload>;
4430
+ export type FinalizeUploadResponse = z.infer<typeof tasksResponseSchemas.finalizeUpload>;
4431
+ export type DeploymentResponse = z.infer<typeof tasksResponseSchemas.deployment>;
4432
+ export type RecordTransactionResponse = z.infer<typeof tasksResponseSchemas.recordTransaction>;
4433
+ export type ReconcileOperationResponse = z.infer<typeof tasksResponseSchemas.reconcileOperation>;
4434
+ export type RecoverOperationResponse = z.infer<typeof tasksResponseSchemas.recoverOperation>;
4435
+ export type AbandonOperationResponse = z.infer<typeof tasksResponseSchemas.abandonOperation>;
4436
+ export type FinalizeEscrowResponse = z.infer<typeof tasksResponseSchemas.finalizeEscrow>;
4437
+ export type FinalizeOrderResponse = z.infer<typeof tasksResponseSchemas.finalizeOrder>;
4438
+ export type ConfigureWebhookResponse = z.infer<typeof tasksResponseSchemas.configureWebhook>;
4439
+ //# sourceMappingURL=types.d.ts.map