@vapi-network/core 0.15.2 → 0.16.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 (65) hide show
  1. package/README.md +6 -2
  2. package/dist/index.js +45 -5
  3. package/dist/index.js.map +1 -1
  4. package/dist/router-client.js +31 -5
  5. package/dist/router-client.js.map +1 -1
  6. package/dist/support-report.d.ts +1 -1
  7. package/dist/tasks/actions.d.ts +1 -0
  8. package/dist/tasks/actions.d.ts.map +1 -1
  9. package/dist/tasks/ballots.d.ts +43 -0
  10. package/dist/tasks/ballots.d.ts.map +1 -0
  11. package/dist/tasks/chain-port.d.ts +26 -0
  12. package/dist/tasks/chain-port.d.ts.map +1 -1
  13. package/dist/tasks/chain.d.ts +5 -0
  14. package/dist/tasks/chain.d.ts.map +1 -1
  15. package/dist/tasks/client.d.ts +33 -3
  16. package/dist/tasks/client.d.ts.map +1 -1
  17. package/dist/tasks/funding-attempts.d.ts +58 -0
  18. package/dist/tasks/funding-attempts.d.ts.map +1 -0
  19. package/dist/tasks/funding-intent.d.ts +11 -0
  20. package/dist/tasks/funding-intent.d.ts.map +1 -0
  21. package/dist/tasks/index.d.ts +13 -2
  22. package/dist/tasks/index.d.ts.map +1 -1
  23. package/dist/tasks/money.d.ts +2 -0
  24. package/dist/tasks/money.d.ts.map +1 -1
  25. package/dist/tasks/operation-support.d.ts +10 -2
  26. package/dist/tasks/operation-support.d.ts.map +1 -1
  27. package/dist/tasks/operations.d.ts +651 -13
  28. package/dist/tasks/operations.d.ts.map +1 -1
  29. package/dist/tasks/pending-transactions.d.ts +11 -0
  30. package/dist/tasks/pending-transactions.d.ts.map +1 -1
  31. package/dist/tasks/post-options.d.ts +144 -0
  32. package/dist/tasks/post-options.d.ts.map +1 -0
  33. package/dist/tasks/types.d.ts +5505 -74
  34. package/dist/tasks/types.d.ts.map +1 -1
  35. package/dist/tasks/v2-abi.d.ts +12 -0
  36. package/dist/tasks/v2-abi.d.ts.map +1 -0
  37. package/dist/tasks/v2-abi.generated.d.ts +5966 -0
  38. package/dist/tasks/v2-abi.generated.d.ts.map +1 -0
  39. package/dist/tasks/v2-events.d.ts +6460 -0
  40. package/dist/tasks/v2-events.d.ts.map +1 -0
  41. package/dist/tasks/v2-execution.d.ts +1070 -0
  42. package/dist/tasks/v2-execution.d.ts.map +1 -0
  43. package/dist/tasks/v2-jury.d.ts +863 -0
  44. package/dist/tasks/v2-jury.d.ts.map +1 -0
  45. package/dist/tasks/v2-plan-guard.d.ts +100 -0
  46. package/dist/tasks/v2-plan-guard.d.ts.map +1 -0
  47. package/dist/tasks/v2-public.d.ts +154 -0
  48. package/dist/tasks/v2-public.d.ts.map +1 -0
  49. package/dist/tasks/v2-trust.d.ts +27 -0
  50. package/dist/tasks/v2-trust.d.ts.map +1 -0
  51. package/dist/tasks/v2-write.d.ts +886 -0
  52. package/dist/tasks/v2-write.d.ts.map +1 -0
  53. package/dist/tasks/v2.d.ts +847 -0
  54. package/dist/tasks/v2.d.ts.map +1 -0
  55. package/dist/tasks/verbs.d.ts +1 -1
  56. package/dist/tasks/verbs.d.ts.map +1 -1
  57. package/dist/tasks/x402-funding.d.ts +49 -0
  58. package/dist/tasks/x402-funding.d.ts.map +1 -0
  59. package/dist/tasks.js +17039 -3750
  60. package/dist/tasks.js.map +3 -3
  61. package/dist/x402-pay.d.ts +11 -1
  62. package/dist/x402-pay.d.ts.map +1 -1
  63. package/dist/x402.d.ts +6 -0
  64. package/dist/x402.d.ts.map +1 -1
  65. package/package.json +1 -1
@@ -0,0 +1,847 @@
1
+ /** Tasks v2 wire contracts, mirrored from vapi-app tasks-v1 (T7, PR #468).
2
+ * Apache-2.0. Keep base-unit amounts as strings across every transport boundary.
3
+ */
4
+ import { z } from "zod";
5
+ export declare const proofRequirementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ mustContain: z.ZodOptional<z.ZodString>;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ preset: z.ZodLiteral<"link">;
9
+ }, z.core.$strict>, z.ZodObject<{
10
+ label: z.ZodOptional<z.ZodString>;
11
+ preset: z.ZodLiteral<"file">;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
14
+ mustContain: z.ZodOptional<z.ZodString>;
15
+ label: z.ZodOptional<z.ZodString>;
16
+ preset: z.ZodLiteral<"x-post">;
17
+ }, z.core.$strict>, z.ZodObject<{
18
+ chain: z.ZodOptional<z.ZodEnum<{
19
+ base: "base";
20
+ solana: "solana";
21
+ "base-sepolia": "base-sepolia";
22
+ }>>;
23
+ label: z.ZodOptional<z.ZodString>;
24
+ preset: z.ZodLiteral<"onchain-tx">;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ mustContain: z.ZodOptional<z.ZodString>;
27
+ label: z.ZodOptional<z.ZodString>;
28
+ preset: z.ZodLiteral<"pr">;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ minLength: z.ZodOptional<z.ZodNumber>;
31
+ label: z.ZodOptional<z.ZodString>;
32
+ preset: z.ZodLiteral<"text">;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
35
+ kinds: z.ZodArray<z.ZodEnum<{
36
+ photo: "photo";
37
+ video: "video";
38
+ }>>;
39
+ window: z.ZodOptional<z.ZodObject<{
40
+ fromIso: z.ZodISODateTime;
41
+ toIso: z.ZodISODateTime;
42
+ }, z.core.$strict>>;
43
+ geofence: z.ZodOptional<z.ZodObject<{
44
+ lat: z.ZodNumber;
45
+ lng: z.ZodNumber;
46
+ radiusKm: z.ZodNumber;
47
+ }, z.core.$strict>>;
48
+ label: z.ZodOptional<z.ZodString>;
49
+ preset: z.ZodLiteral<"media">;
50
+ }, z.core.$strict>], "preset">;
51
+ export declare const proofSpecSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ mustContain: z.ZodOptional<z.ZodString>;
53
+ label: z.ZodOptional<z.ZodString>;
54
+ preset: z.ZodLiteral<"link">;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ label: z.ZodOptional<z.ZodString>;
57
+ preset: z.ZodLiteral<"file">;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
60
+ mustContain: z.ZodOptional<z.ZodString>;
61
+ label: z.ZodOptional<z.ZodString>;
62
+ preset: z.ZodLiteral<"x-post">;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ chain: z.ZodOptional<z.ZodEnum<{
65
+ base: "base";
66
+ solana: "solana";
67
+ "base-sepolia": "base-sepolia";
68
+ }>>;
69
+ label: z.ZodOptional<z.ZodString>;
70
+ preset: z.ZodLiteral<"onchain-tx">;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ mustContain: z.ZodOptional<z.ZodString>;
73
+ label: z.ZodOptional<z.ZodString>;
74
+ preset: z.ZodLiteral<"pr">;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ minLength: z.ZodOptional<z.ZodNumber>;
77
+ label: z.ZodOptional<z.ZodString>;
78
+ preset: z.ZodLiteral<"text">;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
81
+ kinds: z.ZodArray<z.ZodEnum<{
82
+ photo: "photo";
83
+ video: "video";
84
+ }>>;
85
+ window: z.ZodOptional<z.ZodObject<{
86
+ fromIso: z.ZodISODateTime;
87
+ toIso: z.ZodISODateTime;
88
+ }, z.core.$strict>>;
89
+ geofence: z.ZodOptional<z.ZodObject<{
90
+ lat: z.ZodNumber;
91
+ lng: z.ZodNumber;
92
+ radiusKm: z.ZodNumber;
93
+ }, z.core.$strict>>;
94
+ label: z.ZodOptional<z.ZodString>;
95
+ preset: z.ZodLiteral<"media">;
96
+ }, z.core.$strict>], "preset">>, z.ZodObject<{
97
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ mustContain: z.ZodOptional<z.ZodString>;
99
+ label: z.ZodOptional<z.ZodString>;
100
+ preset: z.ZodLiteral<"link">;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ label: z.ZodOptional<z.ZodString>;
103
+ preset: z.ZodLiteral<"file">;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
106
+ mustContain: z.ZodOptional<z.ZodString>;
107
+ label: z.ZodOptional<z.ZodString>;
108
+ preset: z.ZodLiteral<"x-post">;
109
+ }, z.core.$strict>, z.ZodObject<{
110
+ chain: z.ZodOptional<z.ZodEnum<{
111
+ base: "base";
112
+ solana: "solana";
113
+ "base-sepolia": "base-sepolia";
114
+ }>>;
115
+ label: z.ZodOptional<z.ZodString>;
116
+ preset: z.ZodLiteral<"onchain-tx">;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ mustContain: z.ZodOptional<z.ZodString>;
119
+ label: z.ZodOptional<z.ZodString>;
120
+ preset: z.ZodLiteral<"pr">;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ minLength: z.ZodOptional<z.ZodNumber>;
123
+ label: z.ZodOptional<z.ZodString>;
124
+ preset: z.ZodLiteral<"text">;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
127
+ kinds: z.ZodArray<z.ZodEnum<{
128
+ photo: "photo";
129
+ video: "video";
130
+ }>>;
131
+ window: z.ZodOptional<z.ZodObject<{
132
+ fromIso: z.ZodISODateTime;
133
+ toIso: z.ZodISODateTime;
134
+ }, z.core.$strict>>;
135
+ geofence: z.ZodOptional<z.ZodObject<{
136
+ lat: z.ZodNumber;
137
+ lng: z.ZodNumber;
138
+ radiusKm: z.ZodNumber;
139
+ }, z.core.$strict>>;
140
+ label: z.ZodOptional<z.ZodString>;
141
+ preset: z.ZodLiteral<"media">;
142
+ }, z.core.$strict>], "preset">>;
143
+ anyOf: z.ZodOptional<z.ZodBoolean>;
144
+ }, z.core.$strict>]>;
145
+ export declare const taskShapeSchema: z.ZodEnum<{
146
+ task: "task";
147
+ bounty: "bounty";
148
+ pool: "pool";
149
+ }>;
150
+ export declare const checkinCadenceSchema: z.ZodEnum<{
151
+ none: "none";
152
+ "6h": "6h";
153
+ "24h": "24h";
154
+ "72h": "72h";
155
+ "7d": "7d";
156
+ }>;
157
+ export declare const declaredMilestonesSchema: z.ZodArray<z.ZodObject<{
158
+ index: z.ZodNumber;
159
+ amountBaseUnits: z.ZodString;
160
+ acceptance: z.ZodString;
161
+ deadlineAt: z.ZodISODateTime;
162
+ }, z.core.$strict>>;
163
+ export declare const bountyTermsSchema: z.ZodObject<{
164
+ winners: z.ZodNumber;
165
+ rewardPerWinnerBaseUnits: z.ZodString;
166
+ deadlineAt: z.ZodISODateTime;
167
+ choiceWindowSeconds: z.ZodOptional<z.ZodNumber>;
168
+ }, z.core.$strict>;
169
+ export declare const poolTermsSchema: z.ZodObject<{
170
+ rewardPerClaimBaseUnits: z.ZodString;
171
+ budgetBaseUnits: z.ZodString;
172
+ gate: z.ZodOptional<z.ZodEnum<{
173
+ open: "open";
174
+ proven: "proven";
175
+ }>>;
176
+ verifier: z.ZodOptional<z.ZodEnum<{
177
+ vapi: "vapi";
178
+ poster: "poster";
179
+ }>>;
180
+ openCheck: z.ZodOptional<z.ZodEnum<{
181
+ allowlist: "allowlist";
182
+ invite: "invite";
183
+ "x-age": "x-age";
184
+ phone: "phone";
185
+ }>>;
186
+ }, z.core.$strict>;
187
+ export declare const taskTermsFields: {
188
+ shape: z.ZodOptional<z.ZodEnum<{
189
+ task: "task";
190
+ bounty: "bounty";
191
+ pool: "pool";
192
+ }>>;
193
+ milestones: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
+ index: z.ZodNumber;
195
+ amountBaseUnits: z.ZodString;
196
+ acceptance: z.ZodString;
197
+ deadlineAt: z.ZodISODateTime;
198
+ }, z.core.$strict>>>;
199
+ proofSpec: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
200
+ mustContain: z.ZodOptional<z.ZodString>;
201
+ label: z.ZodOptional<z.ZodString>;
202
+ preset: z.ZodLiteral<"link">;
203
+ }, z.core.$strict>, z.ZodObject<{
204
+ label: z.ZodOptional<z.ZodString>;
205
+ preset: z.ZodLiteral<"file">;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
208
+ mustContain: z.ZodOptional<z.ZodString>;
209
+ label: z.ZodOptional<z.ZodString>;
210
+ preset: z.ZodLiteral<"x-post">;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ chain: z.ZodOptional<z.ZodEnum<{
213
+ base: "base";
214
+ solana: "solana";
215
+ "base-sepolia": "base-sepolia";
216
+ }>>;
217
+ label: z.ZodOptional<z.ZodString>;
218
+ preset: z.ZodLiteral<"onchain-tx">;
219
+ }, z.core.$strict>, z.ZodObject<{
220
+ mustContain: z.ZodOptional<z.ZodString>;
221
+ label: z.ZodOptional<z.ZodString>;
222
+ preset: z.ZodLiteral<"pr">;
223
+ }, z.core.$strict>, z.ZodObject<{
224
+ minLength: z.ZodOptional<z.ZodNumber>;
225
+ label: z.ZodOptional<z.ZodString>;
226
+ preset: z.ZodLiteral<"text">;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
229
+ kinds: z.ZodArray<z.ZodEnum<{
230
+ photo: "photo";
231
+ video: "video";
232
+ }>>;
233
+ window: z.ZodOptional<z.ZodObject<{
234
+ fromIso: z.ZodISODateTime;
235
+ toIso: z.ZodISODateTime;
236
+ }, z.core.$strict>>;
237
+ geofence: z.ZodOptional<z.ZodObject<{
238
+ lat: z.ZodNumber;
239
+ lng: z.ZodNumber;
240
+ radiusKm: z.ZodNumber;
241
+ }, z.core.$strict>>;
242
+ label: z.ZodOptional<z.ZodString>;
243
+ preset: z.ZodLiteral<"media">;
244
+ }, z.core.$strict>], "preset">>, z.ZodObject<{
245
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
246
+ mustContain: z.ZodOptional<z.ZodString>;
247
+ label: z.ZodOptional<z.ZodString>;
248
+ preset: z.ZodLiteral<"link">;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ label: z.ZodOptional<z.ZodString>;
251
+ preset: z.ZodLiteral<"file">;
252
+ }, z.core.$strict>, z.ZodObject<{
253
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
254
+ mustContain: z.ZodOptional<z.ZodString>;
255
+ label: z.ZodOptional<z.ZodString>;
256
+ preset: z.ZodLiteral<"x-post">;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ chain: z.ZodOptional<z.ZodEnum<{
259
+ base: "base";
260
+ solana: "solana";
261
+ "base-sepolia": "base-sepolia";
262
+ }>>;
263
+ label: z.ZodOptional<z.ZodString>;
264
+ preset: z.ZodLiteral<"onchain-tx">;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ mustContain: z.ZodOptional<z.ZodString>;
267
+ label: z.ZodOptional<z.ZodString>;
268
+ preset: z.ZodLiteral<"pr">;
269
+ }, z.core.$strict>, z.ZodObject<{
270
+ minLength: z.ZodOptional<z.ZodNumber>;
271
+ label: z.ZodOptional<z.ZodString>;
272
+ preset: z.ZodLiteral<"text">;
273
+ }, z.core.$strict>, z.ZodObject<{
274
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
275
+ kinds: z.ZodArray<z.ZodEnum<{
276
+ photo: "photo";
277
+ video: "video";
278
+ }>>;
279
+ window: z.ZodOptional<z.ZodObject<{
280
+ fromIso: z.ZodISODateTime;
281
+ toIso: z.ZodISODateTime;
282
+ }, z.core.$strict>>;
283
+ geofence: z.ZodOptional<z.ZodObject<{
284
+ lat: z.ZodNumber;
285
+ lng: z.ZodNumber;
286
+ radiusKm: z.ZodNumber;
287
+ }, z.core.$strict>>;
288
+ label: z.ZodOptional<z.ZodString>;
289
+ preset: z.ZodLiteral<"media">;
290
+ }, z.core.$strict>], "preset">>;
291
+ anyOf: z.ZodOptional<z.ZodBoolean>;
292
+ }, z.core.$strict>]>>;
293
+ checkin: z.ZodOptional<z.ZodEnum<{
294
+ none: "none";
295
+ "6h": "6h";
296
+ "24h": "24h";
297
+ "72h": "72h";
298
+ "7d": "7d";
299
+ }>>;
300
+ workerBondBp: z.ZodOptional<z.ZodNumber>;
301
+ bounty: z.ZodOptional<z.ZodObject<{
302
+ winners: z.ZodNumber;
303
+ rewardPerWinnerBaseUnits: z.ZodString;
304
+ deadlineAt: z.ZodISODateTime;
305
+ choiceWindowSeconds: z.ZodOptional<z.ZodNumber>;
306
+ }, z.core.$strict>>;
307
+ pool: z.ZodOptional<z.ZodObject<{
308
+ rewardPerClaimBaseUnits: z.ZodString;
309
+ budgetBaseUnits: z.ZodString;
310
+ gate: z.ZodOptional<z.ZodEnum<{
311
+ open: "open";
312
+ proven: "proven";
313
+ }>>;
314
+ verifier: z.ZodOptional<z.ZodEnum<{
315
+ vapi: "vapi";
316
+ poster: "poster";
317
+ }>>;
318
+ openCheck: z.ZodOptional<z.ZodEnum<{
319
+ allowlist: "allowlist";
320
+ invite: "invite";
321
+ "x-age": "x-age";
322
+ phone: "phone";
323
+ }>>;
324
+ }, z.core.$strict>>;
325
+ };
326
+ export declare const taskTermsSchema: z.ZodObject<{
327
+ shape: z.ZodEnum<{
328
+ task: "task";
329
+ bounty: "bounty";
330
+ pool: "pool";
331
+ }>;
332
+ liveness: z.ZodOptional<z.ZodObject<{
333
+ nextDueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
334
+ stalledAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
335
+ }, z.core.$loose>>;
336
+ milestones: z.ZodOptional<z.ZodArray<z.ZodObject<{
337
+ index: z.ZodNumber;
338
+ amountBaseUnits: z.ZodString;
339
+ acceptance: z.ZodString;
340
+ deadlineAt: z.ZodISODateTime;
341
+ }, z.core.$strict>>>;
342
+ proofSpec: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ mustContain: z.ZodOptional<z.ZodString>;
344
+ label: z.ZodOptional<z.ZodString>;
345
+ preset: z.ZodLiteral<"link">;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ label: z.ZodOptional<z.ZodString>;
348
+ preset: z.ZodLiteral<"file">;
349
+ }, z.core.$strict>, z.ZodObject<{
350
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
351
+ mustContain: z.ZodOptional<z.ZodString>;
352
+ label: z.ZodOptional<z.ZodString>;
353
+ preset: z.ZodLiteral<"x-post">;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ chain: z.ZodOptional<z.ZodEnum<{
356
+ base: "base";
357
+ solana: "solana";
358
+ "base-sepolia": "base-sepolia";
359
+ }>>;
360
+ label: z.ZodOptional<z.ZodString>;
361
+ preset: z.ZodLiteral<"onchain-tx">;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ mustContain: z.ZodOptional<z.ZodString>;
364
+ label: z.ZodOptional<z.ZodString>;
365
+ preset: z.ZodLiteral<"pr">;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ minLength: z.ZodOptional<z.ZodNumber>;
368
+ label: z.ZodOptional<z.ZodString>;
369
+ preset: z.ZodLiteral<"text">;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
372
+ kinds: z.ZodArray<z.ZodEnum<{
373
+ photo: "photo";
374
+ video: "video";
375
+ }>>;
376
+ window: z.ZodOptional<z.ZodObject<{
377
+ fromIso: z.ZodISODateTime;
378
+ toIso: z.ZodISODateTime;
379
+ }, z.core.$strict>>;
380
+ geofence: z.ZodOptional<z.ZodObject<{
381
+ lat: z.ZodNumber;
382
+ lng: z.ZodNumber;
383
+ radiusKm: z.ZodNumber;
384
+ }, z.core.$strict>>;
385
+ label: z.ZodOptional<z.ZodString>;
386
+ preset: z.ZodLiteral<"media">;
387
+ }, z.core.$strict>], "preset">>, z.ZodObject<{
388
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
389
+ mustContain: z.ZodOptional<z.ZodString>;
390
+ label: z.ZodOptional<z.ZodString>;
391
+ preset: z.ZodLiteral<"link">;
392
+ }, z.core.$strict>, z.ZodObject<{
393
+ label: z.ZodOptional<z.ZodString>;
394
+ preset: z.ZodLiteral<"file">;
395
+ }, z.core.$strict>, z.ZodObject<{
396
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
397
+ mustContain: z.ZodOptional<z.ZodString>;
398
+ label: z.ZodOptional<z.ZodString>;
399
+ preset: z.ZodLiteral<"x-post">;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ chain: z.ZodOptional<z.ZodEnum<{
402
+ base: "base";
403
+ solana: "solana";
404
+ "base-sepolia": "base-sepolia";
405
+ }>>;
406
+ label: z.ZodOptional<z.ZodString>;
407
+ preset: z.ZodLiteral<"onchain-tx">;
408
+ }, z.core.$strict>, z.ZodObject<{
409
+ mustContain: z.ZodOptional<z.ZodString>;
410
+ label: z.ZodOptional<z.ZodString>;
411
+ preset: z.ZodLiteral<"pr">;
412
+ }, z.core.$strict>, z.ZodObject<{
413
+ minLength: z.ZodOptional<z.ZodNumber>;
414
+ label: z.ZodOptional<z.ZodString>;
415
+ preset: z.ZodLiteral<"text">;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
418
+ kinds: z.ZodArray<z.ZodEnum<{
419
+ photo: "photo";
420
+ video: "video";
421
+ }>>;
422
+ window: z.ZodOptional<z.ZodObject<{
423
+ fromIso: z.ZodISODateTime;
424
+ toIso: z.ZodISODateTime;
425
+ }, z.core.$strict>>;
426
+ geofence: z.ZodOptional<z.ZodObject<{
427
+ lat: z.ZodNumber;
428
+ lng: z.ZodNumber;
429
+ radiusKm: z.ZodNumber;
430
+ }, z.core.$strict>>;
431
+ label: z.ZodOptional<z.ZodString>;
432
+ preset: z.ZodLiteral<"media">;
433
+ }, z.core.$strict>], "preset">>;
434
+ anyOf: z.ZodOptional<z.ZodBoolean>;
435
+ }, z.core.$strict>]>>;
436
+ checkin: z.ZodOptional<z.ZodEnum<{
437
+ none: "none";
438
+ "6h": "6h";
439
+ "24h": "24h";
440
+ "72h": "72h";
441
+ "7d": "7d";
442
+ }>>;
443
+ workerBondBp: z.ZodOptional<z.ZodNumber>;
444
+ bounty: z.ZodOptional<z.ZodObject<{
445
+ winners: z.ZodNumber;
446
+ rewardPerWinnerBaseUnits: z.ZodString;
447
+ deadlineAt: z.ZodISODateTime;
448
+ choiceWindowSeconds: z.ZodOptional<z.ZodNumber>;
449
+ }, z.core.$strict>>;
450
+ pool: z.ZodOptional<z.ZodObject<{
451
+ rewardPerClaimBaseUnits: z.ZodString;
452
+ budgetBaseUnits: z.ZodString;
453
+ gate: z.ZodOptional<z.ZodEnum<{
454
+ open: "open";
455
+ proven: "proven";
456
+ }>>;
457
+ verifier: z.ZodOptional<z.ZodEnum<{
458
+ vapi: "vapi";
459
+ poster: "poster";
460
+ }>>;
461
+ openCheck: z.ZodOptional<z.ZodEnum<{
462
+ allowlist: "allowlist";
463
+ invite: "invite";
464
+ "x-age": "x-age";
465
+ phone: "phone";
466
+ }>>;
467
+ }, z.core.$strict>>;
468
+ }, z.core.$loose>;
469
+ export declare const checkinInputSchema: z.ZodObject<{
470
+ status: z.ZodEnum<{
471
+ blocked: "blocked";
472
+ "on-track": "on-track";
473
+ "need-input": "need-input";
474
+ }>;
475
+ note: z.ZodString;
476
+ link: z.ZodOptional<z.ZodURL>;
477
+ }, z.core.$strict>;
478
+ export declare const checkinResponseSchema: z.ZodObject<{
479
+ entries: z.ZodArray<z.ZodObject<{
480
+ status: z.ZodEnum<{
481
+ blocked: "blocked";
482
+ "on-track": "on-track";
483
+ "need-input": "need-input";
484
+ }>;
485
+ note: z.ZodString;
486
+ link: z.ZodOptional<z.ZodURL>;
487
+ at: z.ZodISODateTime;
488
+ byAddress: z.ZodString;
489
+ idempotencyKey: z.ZodOptional<z.ZodUUID>;
490
+ }, z.core.$strict>>;
491
+ nextDueAt: z.ZodOptional<z.ZodISODateTime>;
492
+ stalledAt: z.ZodOptional<z.ZodISODateTime>;
493
+ }, z.core.$loose>;
494
+ export declare const nextActionSchema: z.ZodObject<{
495
+ action: z.ZodEnum<{
496
+ none: "none";
497
+ release: "release";
498
+ award: "award";
499
+ deliver: "deliver";
500
+ "counter-evidence": "counter-evidence";
501
+ checkin: "checkin";
502
+ judge: "judge";
503
+ }>;
504
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
505
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
506
+ }, z.core.$loose>;
507
+ export declare const taskLifecycleSchema: z.ZodUnion<readonly [z.ZodObject<{
508
+ state: z.ZodEnum<{
509
+ Draft: "Draft";
510
+ Open: "Open";
511
+ Active: "Active";
512
+ Settled: "Settled";
513
+ Refunded: "Refunded";
514
+ Cancelled: "Cancelled";
515
+ }>;
516
+ substate: z.ZodOptional<z.ZodEnum<{
517
+ InProgress: "InProgress";
518
+ Submitted: "Submitted";
519
+ Stalled: "Stalled";
520
+ Disputed: "Disputed";
521
+ }>>;
522
+ milestones: z.ZodArray<z.ZodObject<{
523
+ id: z.ZodString;
524
+ status: z.ZodEnum<{
525
+ split: "split";
526
+ released: "released";
527
+ pending: "pending";
528
+ submitted: "submitted";
529
+ refunded: "refunded";
530
+ disputed: "disputed";
531
+ }>;
532
+ amountBaseUnits: z.ZodString;
533
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
534
+ cause: z.ZodOptional<z.ZodNumber>;
535
+ disputed: z.ZodOptional<z.ZodBoolean>;
536
+ disputeWinner: z.ZodOptional<z.ZodNumber>;
537
+ summary: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$loose>>;
539
+ cause: z.ZodOptional<z.ZodNumber>;
540
+ disputed: z.ZodOptional<z.ZodBoolean>;
541
+ disputeWinner: z.ZodOptional<z.ZodNumber>;
542
+ summary: z.ZodOptional<z.ZodString>;
543
+ shape: z.ZodLiteral<"task">;
544
+ }, z.core.$loose>, z.ZodObject<{
545
+ shape: z.ZodLiteral<"bounty">;
546
+ state: z.ZodEnum<{
547
+ Draft: "Draft";
548
+ Open: "Open";
549
+ Refunded: "Refunded";
550
+ Cancelled: "Cancelled";
551
+ Judging: "Judging";
552
+ Awarded: "Awarded";
553
+ }>;
554
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
555
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
556
+ }, z.core.$loose>, z.ZodObject<{
557
+ shape: z.ZodLiteral<"pool">;
558
+ state: z.ZodEnum<{
559
+ Draft: "Draft";
560
+ Open: "Open";
561
+ Paused: "Paused";
562
+ Closed: "Closed";
563
+ }>;
564
+ }, z.core.$loose>]>;
565
+ export declare const taskViewFields: {
566
+ terms: z.ZodOptional<z.ZodObject<{
567
+ shape: z.ZodEnum<{
568
+ task: "task";
569
+ bounty: "bounty";
570
+ pool: "pool";
571
+ }>;
572
+ liveness: z.ZodOptional<z.ZodObject<{
573
+ nextDueAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
574
+ stalledAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
575
+ }, z.core.$loose>>;
576
+ milestones: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
+ index: z.ZodNumber;
578
+ amountBaseUnits: z.ZodString;
579
+ acceptance: z.ZodString;
580
+ deadlineAt: z.ZodISODateTime;
581
+ }, z.core.$strict>>>;
582
+ proofSpec: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
583
+ mustContain: z.ZodOptional<z.ZodString>;
584
+ label: z.ZodOptional<z.ZodString>;
585
+ preset: z.ZodLiteral<"link">;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ label: z.ZodOptional<z.ZodString>;
588
+ preset: z.ZodLiteral<"file">;
589
+ }, z.core.$strict>, z.ZodObject<{
590
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
591
+ mustContain: z.ZodOptional<z.ZodString>;
592
+ label: z.ZodOptional<z.ZodString>;
593
+ preset: z.ZodLiteral<"x-post">;
594
+ }, z.core.$strict>, z.ZodObject<{
595
+ chain: z.ZodOptional<z.ZodEnum<{
596
+ base: "base";
597
+ solana: "solana";
598
+ "base-sepolia": "base-sepolia";
599
+ }>>;
600
+ label: z.ZodOptional<z.ZodString>;
601
+ preset: z.ZodLiteral<"onchain-tx">;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ mustContain: z.ZodOptional<z.ZodString>;
604
+ label: z.ZodOptional<z.ZodString>;
605
+ preset: z.ZodLiteral<"pr">;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ minLength: z.ZodOptional<z.ZodNumber>;
608
+ label: z.ZodOptional<z.ZodString>;
609
+ preset: z.ZodLiteral<"text">;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
612
+ kinds: z.ZodArray<z.ZodEnum<{
613
+ photo: "photo";
614
+ video: "video";
615
+ }>>;
616
+ window: z.ZodOptional<z.ZodObject<{
617
+ fromIso: z.ZodISODateTime;
618
+ toIso: z.ZodISODateTime;
619
+ }, z.core.$strict>>;
620
+ geofence: z.ZodOptional<z.ZodObject<{
621
+ lat: z.ZodNumber;
622
+ lng: z.ZodNumber;
623
+ radiusKm: z.ZodNumber;
624
+ }, z.core.$strict>>;
625
+ label: z.ZodOptional<z.ZodString>;
626
+ preset: z.ZodLiteral<"media">;
627
+ }, z.core.$strict>], "preset">>, z.ZodObject<{
628
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
629
+ mustContain: z.ZodOptional<z.ZodString>;
630
+ label: z.ZodOptional<z.ZodString>;
631
+ preset: z.ZodLiteral<"link">;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ label: z.ZodOptional<z.ZodString>;
634
+ preset: z.ZodLiteral<"file">;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ holdForSeconds: z.ZodOptional<z.ZodNumber>;
637
+ mustContain: z.ZodOptional<z.ZodString>;
638
+ label: z.ZodOptional<z.ZodString>;
639
+ preset: z.ZodLiteral<"x-post">;
640
+ }, z.core.$strict>, z.ZodObject<{
641
+ chain: z.ZodOptional<z.ZodEnum<{
642
+ base: "base";
643
+ solana: "solana";
644
+ "base-sepolia": "base-sepolia";
645
+ }>>;
646
+ label: z.ZodOptional<z.ZodString>;
647
+ preset: z.ZodLiteral<"onchain-tx">;
648
+ }, z.core.$strict>, z.ZodObject<{
649
+ mustContain: z.ZodOptional<z.ZodString>;
650
+ label: z.ZodOptional<z.ZodString>;
651
+ preset: z.ZodLiteral<"pr">;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ minLength: z.ZodOptional<z.ZodNumber>;
654
+ label: z.ZodOptional<z.ZodString>;
655
+ preset: z.ZodLiteral<"text">;
656
+ }, z.core.$strict>, z.ZodObject<{
657
+ maxSizeMb: z.ZodOptional<z.ZodNumber>;
658
+ kinds: z.ZodArray<z.ZodEnum<{
659
+ photo: "photo";
660
+ video: "video";
661
+ }>>;
662
+ window: z.ZodOptional<z.ZodObject<{
663
+ fromIso: z.ZodISODateTime;
664
+ toIso: z.ZodISODateTime;
665
+ }, z.core.$strict>>;
666
+ geofence: z.ZodOptional<z.ZodObject<{
667
+ lat: z.ZodNumber;
668
+ lng: z.ZodNumber;
669
+ radiusKm: z.ZodNumber;
670
+ }, z.core.$strict>>;
671
+ label: z.ZodOptional<z.ZodString>;
672
+ preset: z.ZodLiteral<"media">;
673
+ }, z.core.$strict>], "preset">>;
674
+ anyOf: z.ZodOptional<z.ZodBoolean>;
675
+ }, z.core.$strict>]>>;
676
+ checkin: z.ZodOptional<z.ZodEnum<{
677
+ none: "none";
678
+ "6h": "6h";
679
+ "24h": "24h";
680
+ "72h": "72h";
681
+ "7d": "7d";
682
+ }>>;
683
+ workerBondBp: z.ZodOptional<z.ZodNumber>;
684
+ bounty: z.ZodOptional<z.ZodObject<{
685
+ winners: z.ZodNumber;
686
+ rewardPerWinnerBaseUnits: z.ZodString;
687
+ deadlineAt: z.ZodISODateTime;
688
+ choiceWindowSeconds: z.ZodOptional<z.ZodNumber>;
689
+ }, z.core.$strict>>;
690
+ pool: z.ZodOptional<z.ZodObject<{
691
+ rewardPerClaimBaseUnits: z.ZodString;
692
+ budgetBaseUnits: z.ZodString;
693
+ gate: z.ZodOptional<z.ZodEnum<{
694
+ open: "open";
695
+ proven: "proven";
696
+ }>>;
697
+ verifier: z.ZodOptional<z.ZodEnum<{
698
+ vapi: "vapi";
699
+ poster: "poster";
700
+ }>>;
701
+ openCheck: z.ZodOptional<z.ZodEnum<{
702
+ allowlist: "allowlist";
703
+ invite: "invite";
704
+ "x-age": "x-age";
705
+ phone: "phone";
706
+ }>>;
707
+ }, z.core.$strict>>;
708
+ }, z.core.$loose>>;
709
+ lifecycle: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
710
+ state: z.ZodEnum<{
711
+ Draft: "Draft";
712
+ Open: "Open";
713
+ Active: "Active";
714
+ Settled: "Settled";
715
+ Refunded: "Refunded";
716
+ Cancelled: "Cancelled";
717
+ }>;
718
+ substate: z.ZodOptional<z.ZodEnum<{
719
+ InProgress: "InProgress";
720
+ Submitted: "Submitted";
721
+ Stalled: "Stalled";
722
+ Disputed: "Disputed";
723
+ }>>;
724
+ milestones: z.ZodArray<z.ZodObject<{
725
+ id: z.ZodString;
726
+ status: z.ZodEnum<{
727
+ split: "split";
728
+ released: "released";
729
+ pending: "pending";
730
+ submitted: "submitted";
731
+ refunded: "refunded";
732
+ disputed: "disputed";
733
+ }>;
734
+ amountBaseUnits: z.ZodString;
735
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
736
+ cause: z.ZodOptional<z.ZodNumber>;
737
+ disputed: z.ZodOptional<z.ZodBoolean>;
738
+ disputeWinner: z.ZodOptional<z.ZodNumber>;
739
+ summary: z.ZodOptional<z.ZodString>;
740
+ }, z.core.$loose>>;
741
+ cause: z.ZodOptional<z.ZodNumber>;
742
+ disputed: z.ZodOptional<z.ZodBoolean>;
743
+ disputeWinner: z.ZodOptional<z.ZodNumber>;
744
+ summary: z.ZodOptional<z.ZodString>;
745
+ shape: z.ZodLiteral<"task">;
746
+ }, z.core.$loose>, z.ZodObject<{
747
+ shape: z.ZodLiteral<"bounty">;
748
+ state: z.ZodEnum<{
749
+ Draft: "Draft";
750
+ Open: "Open";
751
+ Refunded: "Refunded";
752
+ Cancelled: "Cancelled";
753
+ Judging: "Judging";
754
+ Awarded: "Awarded";
755
+ }>;
756
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
757
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
758
+ }, z.core.$loose>, z.ZodObject<{
759
+ shape: z.ZodLiteral<"pool">;
760
+ state: z.ZodEnum<{
761
+ Draft: "Draft";
762
+ Open: "Open";
763
+ Paused: "Paused";
764
+ Closed: "Closed";
765
+ }>;
766
+ }, z.core.$loose>]>>>;
767
+ nextAction: z.ZodOptional<z.ZodObject<{
768
+ action: z.ZodEnum<{
769
+ none: "none";
770
+ release: "release";
771
+ award: "award";
772
+ deliver: "deliver";
773
+ "counter-evidence": "counter-evidence";
774
+ checkin: "checkin";
775
+ judge: "judge";
776
+ }>;
777
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
778
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
779
+ }, z.core.$loose>>;
780
+ };
781
+ export declare const pendingActionsResponseSchema: z.ZodObject<{
782
+ pendingActions: z.ZodArray<z.ZodObject<{
783
+ action: z.ZodEnum<{
784
+ none: "none";
785
+ release: "release";
786
+ award: "award";
787
+ deliver: "deliver";
788
+ "counter-evidence": "counter-evidence";
789
+ checkin: "checkin";
790
+ judge: "judge";
791
+ }>;
792
+ amountBaseUnits: z.ZodOptional<z.ZodString>;
793
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
794
+ orderId: z.ZodString;
795
+ title: z.ZodString;
796
+ role: z.ZodEnum<{
797
+ poster: "poster";
798
+ worker: "worker";
799
+ }>;
800
+ clientVerb: z.ZodString;
801
+ deepLink: z.ZodString;
802
+ }, z.core.$loose>>;
803
+ }, z.core.$loose>;
804
+ export type TaskTerms = z.infer<typeof taskTermsSchema>;
805
+ export type TaskShape = z.infer<typeof taskShapeSchema>;
806
+ export type TaskLifecycle = z.infer<typeof taskLifecycleSchema>;
807
+ export type TaskNextAction = z.infer<typeof nextActionSchema>;
808
+ export type CheckinInput = z.infer<typeof checkinInputSchema>;
809
+ export type CheckinResponse = z.infer<typeof checkinResponseSchema>;
810
+ export type PendingActionsResponse = z.infer<typeof pendingActionsResponseSchema>;
811
+ export type ProofRequirement = z.infer<typeof proofRequirementSchema>;
812
+ /** Typed payloads for the Tasks v2 alerts. Existing event envelopes remain forward compatible. */
813
+ export type TasksV2Event = {
814
+ type: "task.claimed";
815
+ payload: {
816
+ taskId: string;
817
+ submissionCount: 1;
818
+ };
819
+ } | {
820
+ type: "task.judging";
821
+ payload: {
822
+ taskId: string;
823
+ submissionCount: number;
824
+ choiceDeadline: string;
825
+ };
826
+ } | {
827
+ type: "task.checkin";
828
+ payload: {
829
+ taskId: string;
830
+ status: CheckinInput["status"];
831
+ note?: string;
832
+ link?: string;
833
+ };
834
+ } | {
835
+ type: "task.stalled";
836
+ payload: {
837
+ taskId: string;
838
+ reason?: string;
839
+ };
840
+ } | {
841
+ type: "task.milestone" | "task.released";
842
+ payload: {
843
+ taskId: string;
844
+ milestoneId?: string;
845
+ };
846
+ };
847
+ //# sourceMappingURL=v2.d.ts.map