@jinn-network/client 0.1.3-canary.2d6b2676 → 0.1.3-canary.8e61ba74

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 (289) hide show
  1. package/dist/adapters/adapter.d.ts +15 -4
  2. package/dist/adapters/local/adapter.d.ts +9 -8
  3. package/dist/adapters/local/adapter.js +47 -74
  4. package/dist/adapters/local/adapter.js.map +1 -1
  5. package/dist/adapters/mech/adapter.d.ts +29 -13
  6. package/dist/adapters/mech/adapter.js +316 -311
  7. package/dist/adapters/mech/adapter.js.map +1 -1
  8. package/dist/adapters/mech/contracts.d.ts +62 -16
  9. package/dist/adapters/mech/contracts.js +226 -92
  10. package/dist/adapters/mech/contracts.js.map +1 -1
  11. package/dist/adapters/mech/safe-revert.js +0 -6
  12. package/dist/adapters/mech/safe-revert.js.map +1 -1
  13. package/dist/adapters/mech/types.d.ts +237 -84
  14. package/dist/adapters/mech/types.js +125 -50
  15. package/dist/adapters/mech/types.js.map +1 -1
  16. package/dist/agent/agent-ws.d.ts +1 -0
  17. package/dist/agent/agent-ws.js +13 -1
  18. package/dist/agent/agent-ws.js.map +1 -1
  19. package/dist/agent/operator-claude.js +4 -0
  20. package/dist/agent/operator-claude.js.map +1 -1
  21. package/dist/api/gather-status.d.ts +0 -1
  22. package/dist/api/gather-status.js +0 -1
  23. package/dist/api/gather-status.js.map +1 -1
  24. package/dist/api/setup-endpoints.d.ts +20 -0
  25. package/dist/api/setup-endpoints.js +110 -3
  26. package/dist/api/setup-endpoints.js.map +1 -1
  27. package/dist/build-info.json +4 -4
  28. package/dist/build-meta.json +1 -1
  29. package/dist/cli/commands/auth.js +6 -3
  30. package/dist/cli/commands/auth.js.map +1 -1
  31. package/dist/cli/commands/bootstrap.js +0 -1
  32. package/dist/cli/commands/bootstrap.js.map +1 -1
  33. package/dist/cli/commands/create.js +3 -3
  34. package/dist/cli/commands/doctor.js +4 -12
  35. package/dist/cli/commands/doctor.js.map +1 -1
  36. package/dist/cli/commands/fleet-scale.js +0 -1
  37. package/dist/cli/commands/fleet-scale.js.map +1 -1
  38. package/dist/cli/commands/fund-requirements.js +0 -1
  39. package/dist/cli/commands/fund-requirements.js.map +1 -1
  40. package/dist/cli/commands/migrate-agent-id.js +0 -1
  41. package/dist/cli/commands/migrate-agent-id.js.map +1 -1
  42. package/dist/cli/commands/solver-nets.js +1 -1
  43. package/dist/cli/commands/solver-plugins.js +3 -1
  44. package/dist/cli/commands/solver-plugins.js.map +1 -1
  45. package/dist/cli/commands/tasks.js +20 -11
  46. package/dist/cli/commands/tasks.js.map +1 -1
  47. package/dist/cli/commands/version.js +0 -1
  48. package/dist/cli/commands/version.js.map +1 -1
  49. package/dist/cli/deployment-digest.js +0 -5
  50. package/dist/cli/deployment-digest.js.map +1 -1
  51. package/dist/cli/execution-context.js +0 -1
  52. package/dist/cli/execution-context.js.map +1 -1
  53. package/dist/cli/introspection-context.js +0 -1
  54. package/dist/cli/introspection-context.js.map +1 -1
  55. package/dist/config.d.ts +410 -22
  56. package/dist/config.js +41 -30
  57. package/dist/config.js.map +1 -1
  58. package/dist/daemon/creator.d.ts +3 -3
  59. package/dist/daemon/creator.js +3 -3
  60. package/dist/daemon/creator.js.map +1 -1
  61. package/dist/daemon/daemon.d.ts +3 -6
  62. package/dist/daemon/daemon.js +30 -9
  63. package/dist/daemon/daemon.js.map +1 -1
  64. package/dist/daemon/jinn-claim-loop-canonical.d.ts +11 -11
  65. package/dist/daemon/jinn-claim-loop-canonical.js +17 -17
  66. package/dist/daemon/jinn-claim-loop-canonical.js.map +1 -1
  67. package/dist/daemon/jinn-claim-loop-mock.d.ts +4 -4
  68. package/dist/daemon/jinn-claim-loop-mock.js +7 -7
  69. package/dist/daemon/jinn-claim-loop-mock.js.map +1 -1
  70. package/dist/daemon/jinn-claim-loop.d.ts +4 -4
  71. package/dist/daemon/jinn-claim-loop.js +3 -3
  72. package/dist/dashboard/assets/{index-Bxlk5qpa.js → index-CaUOdCs6.js} +6 -6
  73. package/dist/dashboard/index.html +1 -1
  74. package/dist/earning/bootstrap.d.ts +0 -1
  75. package/dist/earning/bootstrap.js +0 -1
  76. package/dist/earning/bootstrap.js.map +1 -1
  77. package/dist/earning/contracts.d.ts +18 -20
  78. package/dist/earning/contracts.js +18 -29
  79. package/dist/earning/contracts.js.map +1 -1
  80. package/dist/earning/funding-plan.d.ts +0 -1
  81. package/dist/earning/funding-plan.js +0 -1
  82. package/dist/earning/funding-plan.js.map +1 -1
  83. package/dist/earning/migrate-agent-id.d.ts +0 -1
  84. package/dist/earning/migrate-agent-id.js +0 -1
  85. package/dist/earning/migrate-agent-id.js.map +1 -1
  86. package/dist/erc8004/reputation.d.ts +2 -2
  87. package/dist/erc8004/reputation.js +2 -2
  88. package/dist/events/types.d.ts +2 -2
  89. package/dist/harnesses/engine/delivery.d.ts +10 -6
  90. package/dist/harnesses/engine/delivery.js +10 -6
  91. package/dist/harnesses/engine/delivery.js.map +1 -1
  92. package/dist/harnesses/engine/engine.d.ts +16 -29
  93. package/dist/harnesses/engine/engine.js +67 -106
  94. package/dist/harnesses/engine/engine.js.map +1 -1
  95. package/dist/harnesses/engine/persistence.d.ts +5 -1
  96. package/dist/harnesses/engine/persistence.js +10 -2
  97. package/dist/harnesses/engine/persistence.js.map +1 -1
  98. package/dist/harnesses/external-impls/loader.d.ts +1 -1
  99. package/dist/harnesses/impls/claude-code-learner/types.d.ts +1 -1
  100. package/dist/harnesses/impls/claude-mcp-prediction/index.d.ts +1 -1
  101. package/dist/harnesses/impls/claude-mcp-prediction/index.js +6 -6
  102. package/dist/harnesses/impls/claude-mcp-prediction/types.d.ts +1 -1
  103. package/dist/harnesses/impls/claude-mcp-prediction/types.js +1 -1
  104. package/dist/harnesses/impls/index.js +5 -5
  105. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js +1 -1
  106. package/dist/harnesses/impls/portfolio-v0-evaluator/index.js.map +1 -1
  107. package/dist/harnesses/impls/prediction-v0-baseline/index.d.ts +4 -4
  108. package/dist/harnesses/impls/prediction-v0-baseline/index.js +10 -10
  109. package/dist/harnesses/impls/prediction-v0-evaluator/canonical-metrics.d.ts +3 -3
  110. package/dist/harnesses/impls/prediction-v0-evaluator/checks/availability.d.ts +1 -1
  111. package/dist/harnesses/impls/prediction-v0-evaluator/index.d.ts +4 -4
  112. package/dist/harnesses/impls/prediction-v0-evaluator/index.js +11 -11
  113. package/dist/harnesses/impls/prediction-v1-baseline/index.d.ts +31 -0
  114. package/dist/harnesses/impls/prediction-v1-baseline/index.js +79 -0
  115. package/dist/harnesses/impls/prediction-v1-baseline/index.js.map +1 -0
  116. package/dist/harnesses/impls/prediction-v1-evaluator/index.d.ts +32 -0
  117. package/dist/harnesses/impls/prediction-v1-evaluator/index.js +198 -0
  118. package/dist/harnesses/impls/prediction-v1-evaluator/index.js.map +1 -0
  119. package/dist/harnesses/manifest/types.d.ts +1 -1
  120. package/dist/harnesses/manifest/types.js +1 -1
  121. package/dist/harnesses/types.d.ts +2 -1
  122. package/dist/harnesses/types.js.map +1 -1
  123. package/dist/main.js +2 -26
  124. package/dist/main.js.map +1 -1
  125. package/dist/mcp/operator-server.js +1 -1
  126. package/dist/mcp/operator-server.js.map +1 -1
  127. package/dist/mcp/server.js +2 -2
  128. package/dist/plugins/manifest.d.ts +1 -1
  129. package/dist/plugins/manifest.js +1 -1
  130. package/dist/plugins/manifest.js.map +1 -1
  131. package/dist/plugins/registry.js +1 -1
  132. package/dist/plugins/registry.js.map +1 -1
  133. package/dist/plugins/resolvers.js +2 -1
  134. package/dist/plugins/resolvers.js.map +1 -1
  135. package/dist/plugins/types.d.ts +4 -8
  136. package/dist/plugins/validator.js +5 -7
  137. package/dist/plugins/validator.js.map +1 -1
  138. package/dist/preflight/claude-auth.d.ts +3 -1
  139. package/dist/preflight/claude-auth.js +5 -5
  140. package/dist/preflight/claude-auth.js.map +1 -1
  141. package/dist/setup/claude-code-install.d.ts +19 -0
  142. package/dist/setup/claude-code-install.js +51 -0
  143. package/dist/setup/claude-code-install.js.map +1 -0
  144. package/dist/solver-nets/contracts.d.ts +2 -0
  145. package/dist/solver-nets/contracts.js +2 -0
  146. package/dist/solver-nets/contracts.js.map +1 -0
  147. package/dist/solver-nets/registry.d.ts +2 -0
  148. package/dist/solver-nets/registry.js +13 -5
  149. package/dist/solver-nets/registry.js.map +1 -1
  150. package/dist/solver-types/constants.d.ts +1 -1
  151. package/dist/solver-types/constants.js +1 -1
  152. package/dist/solver-types/index.d.ts +5 -5
  153. package/dist/solver-types/index.js +5 -5
  154. package/dist/solver-types/prediction-apy-v0-auto.js +12 -0
  155. package/dist/solver-types/prediction-apy-v0-auto.js.map +1 -1
  156. package/dist/solver-types/prediction-v0-auto.d.ts +4 -4
  157. package/dist/solver-types/prediction-v0-auto.js +22 -10
  158. package/dist/solver-types/prediction-v0-auto.js.map +1 -1
  159. package/dist/solver-types/prediction-v0-template.d.ts +10 -10
  160. package/dist/solver-types/prediction-v0-template.js +16 -16
  161. package/dist/solver-types/prediction-v0-template.js.map +1 -1
  162. package/dist/solver-types/prediction-v0.d.ts +2 -2
  163. package/dist/solver-types/prediction-v0.js +11 -11
  164. package/dist/solver-types/prediction-v1-auto.d.ts +22 -0
  165. package/dist/solver-types/prediction-v1-auto.js +211 -0
  166. package/dist/solver-types/prediction-v1-auto.js.map +1 -0
  167. package/dist/solver-types/prediction-v1.d.ts +3 -0
  168. package/dist/solver-types/prediction-v1.js +29 -0
  169. package/dist/solver-types/prediction-v1.js.map +1 -0
  170. package/dist/solver-types/solver-type.d.ts +5 -4
  171. package/dist/store/store.d.ts +4 -0
  172. package/dist/store/store.js +28 -4
  173. package/dist/store/store.js.map +1 -1
  174. package/dist/tasks/posting-service.d.ts +5 -2
  175. package/dist/tasks/posting-service.js +12 -6
  176. package/dist/tasks/posting-service.js.map +1 -1
  177. package/dist/tasks/sources.d.ts +2 -2
  178. package/dist/tasks/sources.js +10 -7
  179. package/dist/tasks/sources.js.map +1 -1
  180. package/dist/templates/harnesses/alternative-harness/package.json.tmpl +1 -1
  181. package/dist/templates/harnesses/alternative-harness/src/coordinator.ts.tmpl +1 -1
  182. package/dist/templates/harnesses/alternative-harness/src/index.ts.tmpl +1 -1
  183. package/dist/templates/harnesses/alternative-harness/src/mock-harness.ts.tmpl +1 -1
  184. package/dist/templates/harnesses/alternative-harness/src/phases/debrief.ts.tmpl +1 -1
  185. package/dist/templates/harnesses/alternative-harness/src/phases/execute.ts.tmpl +1 -1
  186. package/dist/templates/harnesses/alternative-harness/src/phases/improve.ts.tmpl +1 -1
  187. package/dist/templates/harnesses/alternative-harness/src/phases/memory.ts.tmpl +1 -1
  188. package/dist/templates/harnesses/alternative-harness/src/phases/orient.ts.tmpl +1 -1
  189. package/dist/templates/harnesses/alternative-harness/src/phases/plan.ts.tmpl +1 -1
  190. package/dist/templates/harnesses/alternative-harness/src/phases/strategize.ts.tmpl +1 -1
  191. package/dist/templates/harnesses/alternative-harness/test/coordinator.test.ts.tmpl +1 -1
  192. package/dist/templates/harnesses/alternative-harness/test/unit.test.ts.tmpl +1 -1
  193. package/dist/templates/harnesses/evaluator/package.json.tmpl +1 -1
  194. package/dist/templates/harnesses/evaluator/src/index.ts.tmpl +1 -1
  195. package/dist/templates/harnesses/evaluator/test/unit.test.ts.tmpl +1 -1
  196. package/dist/templates/harnesses/forecaster/package.json.tmpl +1 -1
  197. package/dist/templates/harnesses/forecaster/src/index.ts.tmpl +1 -1
  198. package/dist/templates/harnesses/forecaster/test/unit.test.ts.tmpl +1 -1
  199. package/dist/trajectory/schema.d.ts +10 -10
  200. package/dist/types/index.d.ts +2 -2
  201. package/dist/types/index.js +1 -1
  202. package/dist/types/index.js.map +1 -1
  203. package/dist/types/payloads/index.d.ts +1 -0
  204. package/dist/types/payloads/index.js +6 -0
  205. package/dist/types/payloads/index.js.map +1 -1
  206. package/dist/types/payloads/prediction-v1.d.ts +2 -0
  207. package/dist/types/payloads/prediction-v1.js +2 -0
  208. package/dist/types/payloads/prediction-v1.js.map +1 -0
  209. package/dist/types/prediction-v1.d.ts +2 -0
  210. package/dist/types/prediction-v1.js +2 -0
  211. package/dist/types/prediction-v1.js.map +1 -0
  212. package/dist/types/prediction.d.ts +559 -19
  213. package/dist/types/prediction.js +12 -9
  214. package/dist/types/prediction.js.map +1 -1
  215. package/dist/types/task-document.d.ts +389 -0
  216. package/dist/types/task-document.js +11 -0
  217. package/dist/types/task-document.js.map +1 -1
  218. package/dist/types/task.d.ts +285 -1
  219. package/dist/types/task.js +6 -1
  220. package/dist/types/task.js.map +1 -1
  221. package/dist/vendor/@jinn-network/sdk/README.md +61 -0
  222. package/dist/vendor/@jinn-network/sdk/dist/capabilities.d.ts +52 -0
  223. package/dist/vendor/@jinn-network/sdk/dist/capabilities.js +1 -0
  224. package/dist/vendor/@jinn-network/sdk/dist/contracts.d.ts +105 -0
  225. package/dist/vendor/@jinn-network/sdk/dist/contracts.js +147 -0
  226. package/dist/vendor/@jinn-network/sdk/dist/harness.d.ts +69 -0
  227. package/dist/vendor/@jinn-network/sdk/dist/harness.js +1 -0
  228. package/dist/vendor/@jinn-network/sdk/dist/index.d.ts +2 -0
  229. package/dist/vendor/@jinn-network/sdk/dist/index.js +5 -0
  230. package/dist/vendor/@jinn-network/sdk/dist/manifest.d.ts +69 -0
  231. package/dist/vendor/@jinn-network/sdk/dist/manifest.js +3 -0
  232. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.d.ts +223 -0
  233. package/dist/vendor/@jinn-network/sdk/dist/payloads/prediction-v1.js +64 -0
  234. package/dist/vendor/@jinn-network/sdk/dist/plugins.d.ts +36 -0
  235. package/dist/vendor/@jinn-network/sdk/dist/plugins.js +54 -0
  236. package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.d.ts +870 -0
  237. package/dist/vendor/@jinn-network/sdk/dist/prediction-v1.js +80 -0
  238. package/dist/vendor/@jinn-network/sdk/dist/solvernets/index.d.ts +2 -0
  239. package/dist/vendor/@jinn-network/sdk/dist/solvernets/index.js +1 -0
  240. package/dist/vendor/@jinn-network/sdk/dist/solvernets/prediction-v1.d.ts +6 -0
  241. package/dist/vendor/@jinn-network/sdk/dist/solvernets/prediction-v1.js +3 -0
  242. package/dist/vendor/@jinn-network/sdk/dist/types.d.ts +116 -0
  243. package/dist/vendor/@jinn-network/sdk/dist/types.js +21 -0
  244. package/dist/vendor/@jinn-network/sdk/package.json +34 -0
  245. package/dist/venues/polymarket/client.d.ts +77 -0
  246. package/dist/venues/polymarket/client.js +309 -0
  247. package/dist/venues/polymarket/client.js.map +1 -0
  248. package/dist/withdraw/run-withdraw-plan.js +0 -2
  249. package/dist/withdraw/run-withdraw-plan.js.map +1 -1
  250. package/package.json +8 -6
  251. package/plugins/jinn-prediction-plugin/.claude-plugin/plugin.json +13 -86
  252. package/plugins/jinn-prediction-plugin/.mcp.json +8 -0
  253. package/plugins/jinn-prediction-plugin/GEMINI.md +3 -0
  254. package/plugins/jinn-prediction-plugin/gemini-extension.json +13 -0
  255. package/plugins/jinn-prediction-plugin/jinn.plugin.json +23 -0
  256. package/plugins/jinn-prediction-plugin/schemas/prediction-v1-solution.schema.json +34 -0
  257. package/plugins/jinn-prediction-plugin/schemas/prediction-v1-task.schema.json +118 -0
  258. package/plugins/jinn-prediction-plugin/schemas/prediction-v1-verdict.schema.json +84 -0
  259. package/templates/harnesses/alternative-harness/package.json.tmpl +1 -1
  260. package/templates/harnesses/alternative-harness/src/coordinator.ts.tmpl +1 -1
  261. package/templates/harnesses/alternative-harness/src/index.ts.tmpl +1 -1
  262. package/templates/harnesses/alternative-harness/src/mock-harness.ts.tmpl +1 -1
  263. package/templates/harnesses/alternative-harness/src/phases/debrief.ts.tmpl +1 -1
  264. package/templates/harnesses/alternative-harness/src/phases/execute.ts.tmpl +1 -1
  265. package/templates/harnesses/alternative-harness/src/phases/improve.ts.tmpl +1 -1
  266. package/templates/harnesses/alternative-harness/src/phases/memory.ts.tmpl +1 -1
  267. package/templates/harnesses/alternative-harness/src/phases/orient.ts.tmpl +1 -1
  268. package/templates/harnesses/alternative-harness/src/phases/plan.ts.tmpl +1 -1
  269. package/templates/harnesses/alternative-harness/src/phases/strategize.ts.tmpl +1 -1
  270. package/templates/harnesses/alternative-harness/test/coordinator.test.ts.tmpl +1 -1
  271. package/templates/harnesses/alternative-harness/test/unit.test.ts.tmpl +1 -1
  272. package/templates/harnesses/evaluator/package.json.tmpl +1 -1
  273. package/templates/harnesses/evaluator/src/index.ts.tmpl +1 -1
  274. package/templates/harnesses/evaluator/test/unit.test.ts.tmpl +1 -1
  275. package/templates/harnesses/forecaster/package.json.tmpl +1 -1
  276. package/templates/harnesses/forecaster/src/index.ts.tmpl +1 -1
  277. package/templates/harnesses/forecaster/test/unit.test.ts.tmpl +1 -1
  278. package/dist/adapters/claim-registry/abi.d.ts +0 -127
  279. package/dist/adapters/claim-registry/abi.js +0 -93
  280. package/dist/adapters/claim-registry/abi.js.map +0 -1
  281. package/dist/adapters/claim-registry/client.d.ts +0 -98
  282. package/dist/adapters/claim-registry/client.js +0 -225
  283. package/dist/adapters/claim-registry/client.js.map +0 -1
  284. package/dist/adapters/mech/claim-policy.d.ts +0 -40
  285. package/dist/adapters/mech/claim-policy.js +0 -104
  286. package/dist/adapters/mech/claim-policy.js.map +0 -1
  287. package/dist/harnesses/engine/claim.d.ts +0 -69
  288. package/dist/harnesses/engine/claim.js +0 -111
  289. package/dist/harnesses/engine/claim.js.map +0 -1
@@ -0,0 +1,870 @@
1
+ import { z } from 'zod';
2
+ export declare const DecimalProbabilitySchema: z.ZodString;
3
+ export declare const IsoDateTimeSchema: z.ZodString;
4
+ export declare const PredictionV1ClaimPolicySchema: z.ZodObject<{
5
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
6
+ maxClaims: z.ZodNumber;
7
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
8
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
9
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
10
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
11
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
12
+ policyHook: z.ZodOptional<z.ZodString>;
13
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
14
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
15
+ maxClaims: z.ZodNumber;
16
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
17
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
18
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
19
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
20
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
21
+ policyHook: z.ZodOptional<z.ZodString>;
22
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
23
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
24
+ maxClaims: z.ZodNumber;
25
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
26
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
27
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
28
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
29
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
30
+ policyHook: z.ZodOptional<z.ZodString>;
31
+ }, z.ZodTypeAny, "passthrough">>;
32
+ export declare const PredictionV1SpecSchema: z.ZodObject<{
33
+ question: z.ZodObject<{
34
+ kind: z.ZodLiteral<"binary">;
35
+ text: z.ZodString;
36
+ yesLabel: z.ZodLiteral<"YES">;
37
+ noLabel: z.ZodLiteral<"NO">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ kind: "binary";
40
+ text: string;
41
+ yesLabel: "YES";
42
+ noLabel: "NO";
43
+ }, {
44
+ kind: "binary";
45
+ text: string;
46
+ yesLabel: "YES";
47
+ noLabel: "NO";
48
+ }>;
49
+ source: z.ZodObject<{
50
+ type: z.ZodLiteral<"prediction-market">;
51
+ venue: z.ZodLiteral<"polymarket">;
52
+ url: z.ZodString;
53
+ identifiers: z.ZodObject<{
54
+ marketId: z.ZodString;
55
+ conditionId: z.ZodString;
56
+ yesTokenId: z.ZodString;
57
+ noTokenId: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ marketId: string;
60
+ conditionId: string;
61
+ yesTokenId: string;
62
+ noTokenId: string;
63
+ }, {
64
+ marketId: string;
65
+ conditionId: string;
66
+ yesTokenId: string;
67
+ noTokenId: string;
68
+ }>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "prediction-market";
71
+ venue: "polymarket";
72
+ url: string;
73
+ identifiers: {
74
+ marketId: string;
75
+ conditionId: string;
76
+ yesTokenId: string;
77
+ noTokenId: string;
78
+ };
79
+ }, {
80
+ type: "prediction-market";
81
+ venue: "polymarket";
82
+ url: string;
83
+ identifiers: {
84
+ marketId: string;
85
+ conditionId: string;
86
+ yesTokenId: string;
87
+ noTokenId: string;
88
+ };
89
+ }>;
90
+ resolution: z.ZodObject<{
91
+ expectedResolutionTime: z.ZodString;
92
+ rulesText: z.ZodString;
93
+ rulesUrl: z.ZodString;
94
+ timezone: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ expectedResolutionTime: string;
97
+ rulesText: string;
98
+ rulesUrl: string;
99
+ timezone?: string | undefined;
100
+ }, {
101
+ expectedResolutionTime: string;
102
+ rulesText: string;
103
+ rulesUrl: string;
104
+ timezone?: string | undefined;
105
+ }>;
106
+ consensusSnapshot: z.ZodObject<{
107
+ sampledAt: z.ZodString;
108
+ probabilityYes: z.ZodString;
109
+ method: z.ZodLiteral<"best-bid-ask-midpoint">;
110
+ bestBidYes: z.ZodString;
111
+ bestAskYes: z.ZodString;
112
+ spread: z.ZodString;
113
+ source: z.ZodLiteral<"polymarket-clob">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ source: "polymarket-clob";
116
+ sampledAt: string;
117
+ probabilityYes: string;
118
+ method: "best-bid-ask-midpoint";
119
+ bestBidYes: string;
120
+ bestAskYes: string;
121
+ spread: string;
122
+ }, {
123
+ source: "polymarket-clob";
124
+ sampledAt: string;
125
+ probabilityYes: string;
126
+ method: "best-bid-ask-midpoint";
127
+ bestBidYes: string;
128
+ bestAskYes: string;
129
+ spread: string;
130
+ }>;
131
+ eligibilitySnapshot: z.ZodObject<{
132
+ sampledAt: z.ZodString;
133
+ timeToResolutionHours: z.ZodNumber;
134
+ liquidityUsd: z.ZodString;
135
+ volume24hUsd: z.ZodString;
136
+ orderbookAgeSeconds: z.ZodNumber;
137
+ selectionReason: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ sampledAt: string;
140
+ timeToResolutionHours: number;
141
+ liquidityUsd: string;
142
+ volume24hUsd: string;
143
+ orderbookAgeSeconds: number;
144
+ selectionReason: string;
145
+ }, {
146
+ sampledAt: string;
147
+ timeToResolutionHours: number;
148
+ liquidityUsd: string;
149
+ volume24hUsd: string;
150
+ orderbookAgeSeconds: number;
151
+ selectionReason: string;
152
+ }>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ question: {
155
+ kind: "binary";
156
+ text: string;
157
+ yesLabel: "YES";
158
+ noLabel: "NO";
159
+ };
160
+ source: {
161
+ type: "prediction-market";
162
+ venue: "polymarket";
163
+ url: string;
164
+ identifiers: {
165
+ marketId: string;
166
+ conditionId: string;
167
+ yesTokenId: string;
168
+ noTokenId: string;
169
+ };
170
+ };
171
+ resolution: {
172
+ expectedResolutionTime: string;
173
+ rulesText: string;
174
+ rulesUrl: string;
175
+ timezone?: string | undefined;
176
+ };
177
+ consensusSnapshot: {
178
+ source: "polymarket-clob";
179
+ sampledAt: string;
180
+ probabilityYes: string;
181
+ method: "best-bid-ask-midpoint";
182
+ bestBidYes: string;
183
+ bestAskYes: string;
184
+ spread: string;
185
+ };
186
+ eligibilitySnapshot: {
187
+ sampledAt: string;
188
+ timeToResolutionHours: number;
189
+ liquidityUsd: string;
190
+ volume24hUsd: string;
191
+ orderbookAgeSeconds: number;
192
+ selectionReason: string;
193
+ };
194
+ }, {
195
+ question: {
196
+ kind: "binary";
197
+ text: string;
198
+ yesLabel: "YES";
199
+ noLabel: "NO";
200
+ };
201
+ source: {
202
+ type: "prediction-market";
203
+ venue: "polymarket";
204
+ url: string;
205
+ identifiers: {
206
+ marketId: string;
207
+ conditionId: string;
208
+ yesTokenId: string;
209
+ noTokenId: string;
210
+ };
211
+ };
212
+ resolution: {
213
+ expectedResolutionTime: string;
214
+ rulesText: string;
215
+ rulesUrl: string;
216
+ timezone?: string | undefined;
217
+ };
218
+ consensusSnapshot: {
219
+ source: "polymarket-clob";
220
+ sampledAt: string;
221
+ probabilityYes: string;
222
+ method: "best-bid-ask-midpoint";
223
+ bestBidYes: string;
224
+ bestAskYes: string;
225
+ spread: string;
226
+ };
227
+ eligibilitySnapshot: {
228
+ sampledAt: string;
229
+ timeToResolutionHours: number;
230
+ liquidityUsd: string;
231
+ volume24hUsd: string;
232
+ orderbookAgeSeconds: number;
233
+ selectionReason: string;
234
+ };
235
+ }>;
236
+ export type PredictionV1Spec = z.infer<typeof PredictionV1SpecSchema>;
237
+ export declare const PredictionV1TaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
238
+ id: z.ZodString;
239
+ description: z.ZodString;
240
+ solverType: z.ZodLiteral<"prediction.v1">;
241
+ role: z.ZodOptional<z.ZodEnum<["restoration", "evaluation"]>>;
242
+ window: z.ZodObject<{
243
+ startTs: z.ZodNumber;
244
+ endTs: z.ZodNumber;
245
+ }, "strip", z.ZodTypeAny, {
246
+ startTs: number;
247
+ endTs: number;
248
+ }, {
249
+ startTs: number;
250
+ endTs: number;
251
+ }>;
252
+ claimPolicy: z.ZodObject<{
253
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
254
+ maxClaims: z.ZodNumber;
255
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
256
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
257
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
258
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
259
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
260
+ policyHook: z.ZodOptional<z.ZodString>;
261
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
262
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
263
+ maxClaims: z.ZodNumber;
264
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
265
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
266
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
267
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
268
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
269
+ policyHook: z.ZodOptional<z.ZodString>;
270
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
271
+ mode: z.ZodDefault<z.ZodEnum<["exclusive", "parallel"]>>;
272
+ maxClaims: z.ZodNumber;
273
+ maxClaimsPerOperator: z.ZodDefault<z.ZodNumber>;
274
+ claimWindowStartTs: z.ZodOptional<z.ZodNumber>;
275
+ claimWindowEndTs: z.ZodOptional<z.ZodNumber>;
276
+ submissionDeadlineTs: z.ZodOptional<z.ZodNumber>;
277
+ claimLeaseTtlSeconds: z.ZodDefault<z.ZodNumber>;
278
+ policyHook: z.ZodOptional<z.ZodString>;
279
+ }, z.ZodTypeAny, "passthrough">>;
280
+ spec: z.ZodObject<{
281
+ question: z.ZodObject<{
282
+ kind: z.ZodLiteral<"binary">;
283
+ text: z.ZodString;
284
+ yesLabel: z.ZodLiteral<"YES">;
285
+ noLabel: z.ZodLiteral<"NO">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ kind: "binary";
288
+ text: string;
289
+ yesLabel: "YES";
290
+ noLabel: "NO";
291
+ }, {
292
+ kind: "binary";
293
+ text: string;
294
+ yesLabel: "YES";
295
+ noLabel: "NO";
296
+ }>;
297
+ source: z.ZodObject<{
298
+ type: z.ZodLiteral<"prediction-market">;
299
+ venue: z.ZodLiteral<"polymarket">;
300
+ url: z.ZodString;
301
+ identifiers: z.ZodObject<{
302
+ marketId: z.ZodString;
303
+ conditionId: z.ZodString;
304
+ yesTokenId: z.ZodString;
305
+ noTokenId: z.ZodString;
306
+ }, "strip", z.ZodTypeAny, {
307
+ marketId: string;
308
+ conditionId: string;
309
+ yesTokenId: string;
310
+ noTokenId: string;
311
+ }, {
312
+ marketId: string;
313
+ conditionId: string;
314
+ yesTokenId: string;
315
+ noTokenId: string;
316
+ }>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "prediction-market";
319
+ venue: "polymarket";
320
+ url: string;
321
+ identifiers: {
322
+ marketId: string;
323
+ conditionId: string;
324
+ yesTokenId: string;
325
+ noTokenId: string;
326
+ };
327
+ }, {
328
+ type: "prediction-market";
329
+ venue: "polymarket";
330
+ url: string;
331
+ identifiers: {
332
+ marketId: string;
333
+ conditionId: string;
334
+ yesTokenId: string;
335
+ noTokenId: string;
336
+ };
337
+ }>;
338
+ resolution: z.ZodObject<{
339
+ expectedResolutionTime: z.ZodString;
340
+ rulesText: z.ZodString;
341
+ rulesUrl: z.ZodString;
342
+ timezone: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ expectedResolutionTime: string;
345
+ rulesText: string;
346
+ rulesUrl: string;
347
+ timezone?: string | undefined;
348
+ }, {
349
+ expectedResolutionTime: string;
350
+ rulesText: string;
351
+ rulesUrl: string;
352
+ timezone?: string | undefined;
353
+ }>;
354
+ consensusSnapshot: z.ZodObject<{
355
+ sampledAt: z.ZodString;
356
+ probabilityYes: z.ZodString;
357
+ method: z.ZodLiteral<"best-bid-ask-midpoint">;
358
+ bestBidYes: z.ZodString;
359
+ bestAskYes: z.ZodString;
360
+ spread: z.ZodString;
361
+ source: z.ZodLiteral<"polymarket-clob">;
362
+ }, "strip", z.ZodTypeAny, {
363
+ source: "polymarket-clob";
364
+ sampledAt: string;
365
+ probabilityYes: string;
366
+ method: "best-bid-ask-midpoint";
367
+ bestBidYes: string;
368
+ bestAskYes: string;
369
+ spread: string;
370
+ }, {
371
+ source: "polymarket-clob";
372
+ sampledAt: string;
373
+ probabilityYes: string;
374
+ method: "best-bid-ask-midpoint";
375
+ bestBidYes: string;
376
+ bestAskYes: string;
377
+ spread: string;
378
+ }>;
379
+ eligibilitySnapshot: z.ZodObject<{
380
+ sampledAt: z.ZodString;
381
+ timeToResolutionHours: z.ZodNumber;
382
+ liquidityUsd: z.ZodString;
383
+ volume24hUsd: z.ZodString;
384
+ orderbookAgeSeconds: z.ZodNumber;
385
+ selectionReason: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ sampledAt: string;
388
+ timeToResolutionHours: number;
389
+ liquidityUsd: string;
390
+ volume24hUsd: string;
391
+ orderbookAgeSeconds: number;
392
+ selectionReason: string;
393
+ }, {
394
+ sampledAt: string;
395
+ timeToResolutionHours: number;
396
+ liquidityUsd: string;
397
+ volume24hUsd: string;
398
+ orderbookAgeSeconds: number;
399
+ selectionReason: string;
400
+ }>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ question: {
403
+ kind: "binary";
404
+ text: string;
405
+ yesLabel: "YES";
406
+ noLabel: "NO";
407
+ };
408
+ source: {
409
+ type: "prediction-market";
410
+ venue: "polymarket";
411
+ url: string;
412
+ identifiers: {
413
+ marketId: string;
414
+ conditionId: string;
415
+ yesTokenId: string;
416
+ noTokenId: string;
417
+ };
418
+ };
419
+ resolution: {
420
+ expectedResolutionTime: string;
421
+ rulesText: string;
422
+ rulesUrl: string;
423
+ timezone?: string | undefined;
424
+ };
425
+ consensusSnapshot: {
426
+ source: "polymarket-clob";
427
+ sampledAt: string;
428
+ probabilityYes: string;
429
+ method: "best-bid-ask-midpoint";
430
+ bestBidYes: string;
431
+ bestAskYes: string;
432
+ spread: string;
433
+ };
434
+ eligibilitySnapshot: {
435
+ sampledAt: string;
436
+ timeToResolutionHours: number;
437
+ liquidityUsd: string;
438
+ volume24hUsd: string;
439
+ orderbookAgeSeconds: number;
440
+ selectionReason: string;
441
+ };
442
+ }, {
443
+ question: {
444
+ kind: "binary";
445
+ text: string;
446
+ yesLabel: "YES";
447
+ noLabel: "NO";
448
+ };
449
+ source: {
450
+ type: "prediction-market";
451
+ venue: "polymarket";
452
+ url: string;
453
+ identifiers: {
454
+ marketId: string;
455
+ conditionId: string;
456
+ yesTokenId: string;
457
+ noTokenId: string;
458
+ };
459
+ };
460
+ resolution: {
461
+ expectedResolutionTime: string;
462
+ rulesText: string;
463
+ rulesUrl: string;
464
+ timezone?: string | undefined;
465
+ };
466
+ consensusSnapshot: {
467
+ source: "polymarket-clob";
468
+ sampledAt: string;
469
+ probabilityYes: string;
470
+ method: "best-bid-ask-midpoint";
471
+ bestBidYes: string;
472
+ bestAskYes: string;
473
+ spread: string;
474
+ };
475
+ eligibilitySnapshot: {
476
+ sampledAt: string;
477
+ timeToResolutionHours: number;
478
+ liquidityUsd: string;
479
+ volume24hUsd: string;
480
+ orderbookAgeSeconds: number;
481
+ selectionReason: string;
482
+ };
483
+ }>;
484
+ eligibility: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ description: string;
487
+ id: string;
488
+ solverType: "prediction.v1";
489
+ window: {
490
+ startTs: number;
491
+ endTs: number;
492
+ };
493
+ claimPolicy: {
494
+ mode: "exclusive" | "parallel";
495
+ maxClaims: number;
496
+ maxClaimsPerOperator: number;
497
+ claimLeaseTtlSeconds: number;
498
+ claimWindowStartTs?: number | undefined;
499
+ claimWindowEndTs?: number | undefined;
500
+ submissionDeadlineTs?: number | undefined;
501
+ policyHook?: string | undefined;
502
+ } & {
503
+ [k: string]: unknown;
504
+ };
505
+ spec: {
506
+ question: {
507
+ kind: "binary";
508
+ text: string;
509
+ yesLabel: "YES";
510
+ noLabel: "NO";
511
+ };
512
+ source: {
513
+ type: "prediction-market";
514
+ venue: "polymarket";
515
+ url: string;
516
+ identifiers: {
517
+ marketId: string;
518
+ conditionId: string;
519
+ yesTokenId: string;
520
+ noTokenId: string;
521
+ };
522
+ };
523
+ resolution: {
524
+ expectedResolutionTime: string;
525
+ rulesText: string;
526
+ rulesUrl: string;
527
+ timezone?: string | undefined;
528
+ };
529
+ consensusSnapshot: {
530
+ source: "polymarket-clob";
531
+ sampledAt: string;
532
+ probabilityYes: string;
533
+ method: "best-bid-ask-midpoint";
534
+ bestBidYes: string;
535
+ bestAskYes: string;
536
+ spread: string;
537
+ };
538
+ eligibilitySnapshot: {
539
+ sampledAt: string;
540
+ timeToResolutionHours: number;
541
+ liquidityUsd: string;
542
+ volume24hUsd: string;
543
+ orderbookAgeSeconds: number;
544
+ selectionReason: string;
545
+ };
546
+ };
547
+ eligibility: Record<string, unknown>;
548
+ role?: "restoration" | "evaluation" | undefined;
549
+ }, {
550
+ description: string;
551
+ id: string;
552
+ solverType: "prediction.v1";
553
+ window: {
554
+ startTs: number;
555
+ endTs: number;
556
+ };
557
+ claimPolicy: {
558
+ maxClaims: number;
559
+ mode?: "exclusive" | "parallel" | undefined;
560
+ maxClaimsPerOperator?: number | undefined;
561
+ claimWindowStartTs?: number | undefined;
562
+ claimWindowEndTs?: number | undefined;
563
+ submissionDeadlineTs?: number | undefined;
564
+ claimLeaseTtlSeconds?: number | undefined;
565
+ policyHook?: string | undefined;
566
+ } & {
567
+ [k: string]: unknown;
568
+ };
569
+ spec: {
570
+ question: {
571
+ kind: "binary";
572
+ text: string;
573
+ yesLabel: "YES";
574
+ noLabel: "NO";
575
+ };
576
+ source: {
577
+ type: "prediction-market";
578
+ venue: "polymarket";
579
+ url: string;
580
+ identifiers: {
581
+ marketId: string;
582
+ conditionId: string;
583
+ yesTokenId: string;
584
+ noTokenId: string;
585
+ };
586
+ };
587
+ resolution: {
588
+ expectedResolutionTime: string;
589
+ rulesText: string;
590
+ rulesUrl: string;
591
+ timezone?: string | undefined;
592
+ };
593
+ consensusSnapshot: {
594
+ source: "polymarket-clob";
595
+ sampledAt: string;
596
+ probabilityYes: string;
597
+ method: "best-bid-ask-midpoint";
598
+ bestBidYes: string;
599
+ bestAskYes: string;
600
+ spread: string;
601
+ };
602
+ eligibilitySnapshot: {
603
+ sampledAt: string;
604
+ timeToResolutionHours: number;
605
+ liquidityUsd: string;
606
+ volume24hUsd: string;
607
+ orderbookAgeSeconds: number;
608
+ selectionReason: string;
609
+ };
610
+ };
611
+ role?: "restoration" | "evaluation" | undefined;
612
+ eligibility?: Record<string, unknown> | undefined;
613
+ }>, {
614
+ description: string;
615
+ id: string;
616
+ solverType: "prediction.v1";
617
+ window: {
618
+ startTs: number;
619
+ endTs: number;
620
+ };
621
+ claimPolicy: {
622
+ mode: "exclusive" | "parallel";
623
+ maxClaims: number;
624
+ maxClaimsPerOperator: number;
625
+ claimLeaseTtlSeconds: number;
626
+ claimWindowStartTs?: number | undefined;
627
+ claimWindowEndTs?: number | undefined;
628
+ submissionDeadlineTs?: number | undefined;
629
+ policyHook?: string | undefined;
630
+ } & {
631
+ [k: string]: unknown;
632
+ };
633
+ spec: {
634
+ question: {
635
+ kind: "binary";
636
+ text: string;
637
+ yesLabel: "YES";
638
+ noLabel: "NO";
639
+ };
640
+ source: {
641
+ type: "prediction-market";
642
+ venue: "polymarket";
643
+ url: string;
644
+ identifiers: {
645
+ marketId: string;
646
+ conditionId: string;
647
+ yesTokenId: string;
648
+ noTokenId: string;
649
+ };
650
+ };
651
+ resolution: {
652
+ expectedResolutionTime: string;
653
+ rulesText: string;
654
+ rulesUrl: string;
655
+ timezone?: string | undefined;
656
+ };
657
+ consensusSnapshot: {
658
+ source: "polymarket-clob";
659
+ sampledAt: string;
660
+ probabilityYes: string;
661
+ method: "best-bid-ask-midpoint";
662
+ bestBidYes: string;
663
+ bestAskYes: string;
664
+ spread: string;
665
+ };
666
+ eligibilitySnapshot: {
667
+ sampledAt: string;
668
+ timeToResolutionHours: number;
669
+ liquidityUsd: string;
670
+ volume24hUsd: string;
671
+ orderbookAgeSeconds: number;
672
+ selectionReason: string;
673
+ };
674
+ };
675
+ eligibility: Record<string, unknown>;
676
+ role?: "restoration" | "evaluation" | undefined;
677
+ }, {
678
+ description: string;
679
+ id: string;
680
+ solverType: "prediction.v1";
681
+ window: {
682
+ startTs: number;
683
+ endTs: number;
684
+ };
685
+ claimPolicy: {
686
+ maxClaims: number;
687
+ mode?: "exclusive" | "parallel" | undefined;
688
+ maxClaimsPerOperator?: number | undefined;
689
+ claimWindowStartTs?: number | undefined;
690
+ claimWindowEndTs?: number | undefined;
691
+ submissionDeadlineTs?: number | undefined;
692
+ claimLeaseTtlSeconds?: number | undefined;
693
+ policyHook?: string | undefined;
694
+ } & {
695
+ [k: string]: unknown;
696
+ };
697
+ spec: {
698
+ question: {
699
+ kind: "binary";
700
+ text: string;
701
+ yesLabel: "YES";
702
+ noLabel: "NO";
703
+ };
704
+ source: {
705
+ type: "prediction-market";
706
+ venue: "polymarket";
707
+ url: string;
708
+ identifiers: {
709
+ marketId: string;
710
+ conditionId: string;
711
+ yesTokenId: string;
712
+ noTokenId: string;
713
+ };
714
+ };
715
+ resolution: {
716
+ expectedResolutionTime: string;
717
+ rulesText: string;
718
+ rulesUrl: string;
719
+ timezone?: string | undefined;
720
+ };
721
+ consensusSnapshot: {
722
+ source: "polymarket-clob";
723
+ sampledAt: string;
724
+ probabilityYes: string;
725
+ method: "best-bid-ask-midpoint";
726
+ bestBidYes: string;
727
+ bestAskYes: string;
728
+ spread: string;
729
+ };
730
+ eligibilitySnapshot: {
731
+ sampledAt: string;
732
+ timeToResolutionHours: number;
733
+ liquidityUsd: string;
734
+ volume24hUsd: string;
735
+ orderbookAgeSeconds: number;
736
+ selectionReason: string;
737
+ };
738
+ };
739
+ role?: "restoration" | "evaluation" | undefined;
740
+ eligibility?: Record<string, unknown> | undefined;
741
+ }>, {
742
+ description: string;
743
+ id: string;
744
+ solverType: "prediction.v1";
745
+ window: {
746
+ startTs: number;
747
+ endTs: number;
748
+ };
749
+ claimPolicy: {
750
+ mode: "exclusive" | "parallel";
751
+ maxClaims: number;
752
+ maxClaimsPerOperator: number;
753
+ claimLeaseTtlSeconds: number;
754
+ claimWindowStartTs?: number | undefined;
755
+ claimWindowEndTs?: number | undefined;
756
+ submissionDeadlineTs?: number | undefined;
757
+ policyHook?: string | undefined;
758
+ } & {
759
+ [k: string]: unknown;
760
+ };
761
+ spec: {
762
+ question: {
763
+ kind: "binary";
764
+ text: string;
765
+ yesLabel: "YES";
766
+ noLabel: "NO";
767
+ };
768
+ source: {
769
+ type: "prediction-market";
770
+ venue: "polymarket";
771
+ url: string;
772
+ identifiers: {
773
+ marketId: string;
774
+ conditionId: string;
775
+ yesTokenId: string;
776
+ noTokenId: string;
777
+ };
778
+ };
779
+ resolution: {
780
+ expectedResolutionTime: string;
781
+ rulesText: string;
782
+ rulesUrl: string;
783
+ timezone?: string | undefined;
784
+ };
785
+ consensusSnapshot: {
786
+ source: "polymarket-clob";
787
+ sampledAt: string;
788
+ probabilityYes: string;
789
+ method: "best-bid-ask-midpoint";
790
+ bestBidYes: string;
791
+ bestAskYes: string;
792
+ spread: string;
793
+ };
794
+ eligibilitySnapshot: {
795
+ sampledAt: string;
796
+ timeToResolutionHours: number;
797
+ liquidityUsd: string;
798
+ volume24hUsd: string;
799
+ orderbookAgeSeconds: number;
800
+ selectionReason: string;
801
+ };
802
+ };
803
+ eligibility: Record<string, unknown>;
804
+ role?: "restoration" | "evaluation" | undefined;
805
+ }, {
806
+ description: string;
807
+ id: string;
808
+ solverType: "prediction.v1";
809
+ window: {
810
+ startTs: number;
811
+ endTs: number;
812
+ };
813
+ claimPolicy: {
814
+ maxClaims: number;
815
+ mode?: "exclusive" | "parallel" | undefined;
816
+ maxClaimsPerOperator?: number | undefined;
817
+ claimWindowStartTs?: number | undefined;
818
+ claimWindowEndTs?: number | undefined;
819
+ submissionDeadlineTs?: number | undefined;
820
+ claimLeaseTtlSeconds?: number | undefined;
821
+ policyHook?: string | undefined;
822
+ } & {
823
+ [k: string]: unknown;
824
+ };
825
+ spec: {
826
+ question: {
827
+ kind: "binary";
828
+ text: string;
829
+ yesLabel: "YES";
830
+ noLabel: "NO";
831
+ };
832
+ source: {
833
+ type: "prediction-market";
834
+ venue: "polymarket";
835
+ url: string;
836
+ identifiers: {
837
+ marketId: string;
838
+ conditionId: string;
839
+ yesTokenId: string;
840
+ noTokenId: string;
841
+ };
842
+ };
843
+ resolution: {
844
+ expectedResolutionTime: string;
845
+ rulesText: string;
846
+ rulesUrl: string;
847
+ timezone?: string | undefined;
848
+ };
849
+ consensusSnapshot: {
850
+ source: "polymarket-clob";
851
+ sampledAt: string;
852
+ probabilityYes: string;
853
+ method: "best-bid-ask-midpoint";
854
+ bestBidYes: string;
855
+ bestAskYes: string;
856
+ spread: string;
857
+ };
858
+ eligibilitySnapshot: {
859
+ sampledAt: string;
860
+ timeToResolutionHours: number;
861
+ liquidityUsd: string;
862
+ volume24hUsd: string;
863
+ orderbookAgeSeconds: number;
864
+ selectionReason: string;
865
+ };
866
+ };
867
+ role?: "restoration" | "evaluation" | undefined;
868
+ eligibility?: Record<string, unknown> | undefined;
869
+ }>;
870
+ export type PredictionV1Task = z.infer<typeof PredictionV1TaskSchema>;