@aexhq/sdk 0.46.4-canary → 0.50.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 (337) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +38 -0
  3. package/README.md +23 -31
  4. package/dist/client/aex.d.ts +33 -0
  5. package/dist/client/aex.js +98 -0
  6. package/dist/client/aex.js.map +1 -0
  7. package/dist/client/credentials.d.ts +25 -0
  8. package/dist/client/credentials.js +97 -0
  9. package/dist/client/credentials.js.map +1 -0
  10. package/dist/client/routing.d.ts +7 -0
  11. package/dist/client/routing.js +29 -0
  12. package/dist/client/routing.js.map +1 -0
  13. package/dist/downloads/download.d.ts +25 -0
  14. package/dist/downloads/download.js +53 -0
  15. package/dist/downloads/download.js.map +1 -0
  16. package/dist/generated/errors.d.ts +12 -0
  17. package/dist/generated/errors.js +81 -0
  18. package/dist/generated/errors.js.map +1 -0
  19. package/dist/generated/resources.d.ts +730 -0
  20. package/dist/generated/resources.js +606 -0
  21. package/dist/generated/resources.js.map +1 -0
  22. package/dist/generated/routes.d.ts +42 -0
  23. package/dist/generated/routes.js +2101 -0
  24. package/dist/generated/routes.js.map +1 -0
  25. package/dist/index.d.ts +20 -50
  26. package/dist/index.js +11 -62
  27. package/dist/index.js.map +1 -1
  28. package/dist/observations/stream.d.ts +1 -0
  29. package/dist/observations/stream.js +18 -0
  30. package/dist/observations/stream.js.map +1 -0
  31. package/dist/transport/errors.d.ts +60 -0
  32. package/dist/transport/errors.js +107 -0
  33. package/dist/transport/errors.js.map +1 -0
  34. package/dist/transport/pagination.d.ts +8 -0
  35. package/dist/transport/pagination.js +34 -0
  36. package/dist/transport/pagination.js.map +1 -0
  37. package/dist/transport/retry.d.ts +21 -0
  38. package/dist/transport/retry.js +37 -0
  39. package/dist/transport/retry.js.map +1 -0
  40. package/dist/transport/transport.d.ts +25 -0
  41. package/dist/transport/transport.js +28 -0
  42. package/dist/transport/transport.js.map +1 -0
  43. package/package.json +63 -30
  44. package/dist/_contracts/account-operations.d.ts +0 -101
  45. package/dist/_contracts/account-operations.js +0 -242
  46. package/dist/_contracts/account-types.d.ts +0 -461
  47. package/dist/_contracts/account-types.js +0 -1
  48. package/dist/_contracts/api-key.d.ts +0 -61
  49. package/dist/_contracts/api-key.js +0 -101
  50. package/dist/_contracts/api-routes.d.ts +0 -20
  51. package/dist/_contracts/api-routes.js +0 -109
  52. package/dist/_contracts/archive-limits.d.ts +0 -3
  53. package/dist/_contracts/archive-limits.js +0 -23
  54. package/dist/_contracts/asset-authoring.d.ts +0 -22
  55. package/dist/_contracts/asset-authoring.js +0 -106
  56. package/dist/_contracts/asset-bundle.d.ts +0 -64
  57. package/dist/_contracts/asset-bundle.js +0 -263
  58. package/dist/_contracts/asset-upload-helper.d.ts +0 -31
  59. package/dist/_contracts/asset-upload-helper.js +0 -84
  60. package/dist/_contracts/billing-admission.d.ts +0 -29
  61. package/dist/_contracts/billing-admission.js +0 -28
  62. package/dist/_contracts/bundle-manifest.d.ts +0 -89
  63. package/dist/_contracts/bundle-manifest.js +0 -158
  64. package/dist/_contracts/canonical-sha256.d.ts +0 -8
  65. package/dist/_contracts/canonical-sha256.js +0 -8
  66. package/dist/_contracts/connection-ticket.d.ts +0 -22
  67. package/dist/_contracts/connection-ticket.js +0 -54
  68. package/dist/_contracts/continuation-event.d.ts +0 -31
  69. package/dist/_contracts/continuation-event.js +0 -6
  70. package/dist/_contracts/contract-parse-error.d.ts +0 -12
  71. package/dist/_contracts/contract-parse-error.js +0 -51
  72. package/dist/_contracts/error-codes.d.ts +0 -26
  73. package/dist/_contracts/error-codes.js +0 -116
  74. package/dist/_contracts/error-factory.d.ts +0 -32
  75. package/dist/_contracts/error-factory.js +0 -174
  76. package/dist/_contracts/event-envelope.d.ts +0 -471
  77. package/dist/_contracts/event-envelope.js +0 -501
  78. package/dist/_contracts/event-stream-client.d.ts +0 -122
  79. package/dist/_contracts/event-stream-client.js +0 -445
  80. package/dist/_contracts/event-view.d.ts +0 -44
  81. package/dist/_contracts/event-view.js +0 -69
  82. package/dist/_contracts/failure-class.d.ts +0 -29
  83. package/dist/_contracts/failure-class.js +0 -73
  84. package/dist/_contracts/http.d.ts +0 -135
  85. package/dist/_contracts/http.js +0 -434
  86. package/dist/_contracts/ids.d.ts +0 -66
  87. package/dist/_contracts/ids.js +0 -119
  88. package/dist/_contracts/index.d.ts +0 -42
  89. package/dist/_contracts/index.js +0 -52
  90. package/dist/_contracts/internal.d.ts +0 -55
  91. package/dist/_contracts/internal.js +0 -113
  92. package/dist/_contracts/models.d.ts +0 -30
  93. package/dist/_contracts/models.js +0 -28
  94. package/dist/_contracts/operation-core.d.ts +0 -36
  95. package/dist/_contracts/operation-core.js +0 -70
  96. package/dist/_contracts/operations.d.ts +0 -218
  97. package/dist/_contracts/operations.js +0 -1496
  98. package/dist/_contracts/otlp-projection.d.ts +0 -78
  99. package/dist/_contracts/otlp-projection.js +0 -171
  100. package/dist/_contracts/post-hook.d.ts +0 -31
  101. package/dist/_contracts/post-hook.js +0 -61
  102. package/dist/_contracts/provider-fault.d.ts +0 -34
  103. package/dist/_contracts/provider-fault.js +0 -68
  104. package/dist/_contracts/retry-core.d.ts +0 -29
  105. package/dist/_contracts/retry-core.js +0 -79
  106. package/dist/_contracts/runner-event.d.ts +0 -117
  107. package/dist/_contracts/runner-event.js +0 -172
  108. package/dist/_contracts/runtime-kind.d.ts +0 -60
  109. package/dist/_contracts/runtime-kind.js +0 -70
  110. package/dist/_contracts/runtime-manifest.d.ts +0 -121
  111. package/dist/_contracts/runtime-manifest.js +0 -83
  112. package/dist/_contracts/runtime-security-profile.d.ts +0 -26
  113. package/dist/_contracts/runtime-security-profile.js +0 -73
  114. package/dist/_contracts/runtime-sizes.d.ts +0 -104
  115. package/dist/_contracts/runtime-sizes.js +0 -111
  116. package/dist/_contracts/runtime-types.d.ts +0 -618
  117. package/dist/_contracts/runtime-types.js +0 -58
  118. package/dist/_contracts/schemas/asset-bundle.d.ts +0 -70
  119. package/dist/_contracts/schemas/asset-bundle.js +0 -107
  120. package/dist/_contracts/schemas/asset-ref.d.ts +0 -61
  121. package/dist/_contracts/schemas/asset-ref.js +0 -118
  122. package/dist/_contracts/schemas/bundle-manifest.d.ts +0 -66
  123. package/dist/_contracts/schemas/bundle-manifest.js +0 -77
  124. package/dist/_contracts/schemas/index.d.ts +0 -32
  125. package/dist/_contracts/schemas/index.js +0 -30
  126. package/dist/_contracts/schemas/mcp-server.d.ts +0 -99
  127. package/dist/_contracts/schemas/mcp-server.js +0 -209
  128. package/dist/_contracts/schemas/models.d.ts +0 -29
  129. package/dist/_contracts/schemas/models.js +0 -51
  130. package/dist/_contracts/schemas/numeric.d.ts +0 -18
  131. package/dist/_contracts/schemas/numeric.js +0 -28
  132. package/dist/_contracts/schemas/post-hook.d.ts +0 -45
  133. package/dist/_contracts/schemas/post-hook.js +0 -68
  134. package/dist/_contracts/schemas/response-assets.d.ts +0 -75
  135. package/dist/_contracts/schemas/response-assets.js +0 -81
  136. package/dist/_contracts/schemas/response-billing.d.ts +0 -208
  137. package/dist/_contracts/schemas/response-billing.js +0 -139
  138. package/dist/_contracts/schemas/response-common.d.ts +0 -132
  139. package/dist/_contracts/schemas/response-common.js +0 -162
  140. package/dist/_contracts/schemas/response-identity.d.ts +0 -648
  141. package/dist/_contracts/schemas/response-identity.js +0 -131
  142. package/dist/_contracts/schemas/response-mcp-servers.d.ts +0 -51
  143. package/dist/_contracts/schemas/response-mcp-servers.js +0 -32
  144. package/dist/_contracts/schemas/response-secrets.d.ts +0 -50
  145. package/dist/_contracts/schemas/response-secrets.js +0 -32
  146. package/dist/_contracts/schemas/response-sessions-internal.d.ts +0 -200
  147. package/dist/_contracts/schemas/response-sessions-internal.js +0 -142
  148. package/dist/_contracts/schemas/response-sessions.d.ts +0 -1598
  149. package/dist/_contracts/schemas/response-sessions.js +0 -377
  150. package/dist/_contracts/schemas/response-webhooks.d.ts +0 -76
  151. package/dist/_contracts/schemas/response-webhooks.js +0 -42
  152. package/dist/_contracts/schemas/response-workspace.d.ts +0 -225
  153. package/dist/_contracts/schemas/response-workspace.js +0 -99
  154. package/dist/_contracts/schemas/runtime-kind.d.ts +0 -31
  155. package/dist/_contracts/schemas/runtime-kind.js +0 -29
  156. package/dist/_contracts/schemas/runtime-security-profile.d.ts +0 -28
  157. package/dist/_contracts/schemas/runtime-security-profile.js +0 -26
  158. package/dist/_contracts/schemas/runtime-sizes.d.ts +0 -70
  159. package/dist/_contracts/schemas/runtime-sizes.js +0 -127
  160. package/dist/_contracts/schemas/session-limits.d.ts +0 -34
  161. package/dist/_contracts/schemas/session-limits.js +0 -39
  162. package/dist/_contracts/schemas/session-machine.d.ts +0 -23
  163. package/dist/_contracts/schemas/session-machine.js +0 -24
  164. package/dist/_contracts/schemas/session-request-config.d.ts +0 -58
  165. package/dist/_contracts/schemas/session-request-config.js +0 -134
  166. package/dist/_contracts/schemas/session-webhook.d.ts +0 -11
  167. package/dist/_contracts/schemas/session-webhook.js +0 -38
  168. package/dist/_contracts/schemas/side-effect-audit.d.ts +0 -98
  169. package/dist/_contracts/schemas/side-effect-audit.js +0 -102
  170. package/dist/_contracts/schemas/submission-assets.d.ts +0 -117
  171. package/dist/_contracts/schemas/submission-assets.js +0 -147
  172. package/dist/_contracts/schemas/submission-body.d.ts +0 -251
  173. package/dist/_contracts/schemas/submission-body.js +0 -378
  174. package/dist/_contracts/schemas/submission-environment.d.ts +0 -79
  175. package/dist/_contracts/schemas/submission-environment.js +0 -179
  176. package/dist/_contracts/schemas/submission-request.d.ts +0 -158
  177. package/dist/_contracts/schemas/submission-request.js +0 -49
  178. package/dist/_contracts/schemas/submission-secrets.d.ts +0 -47
  179. package/dist/_contracts/schemas/submission-secrets.js +0 -108
  180. package/dist/_contracts/schemas/wire.d.ts +0 -118
  181. package/dist/_contracts/schemas/wire.js +0 -171
  182. package/dist/_contracts/schemas/workspace-resources.d.ts +0 -50
  183. package/dist/_contracts/schemas/workspace-resources.js +0 -87
  184. package/dist/_contracts/sdk-errors.d.ts +0 -212
  185. package/dist/_contracts/sdk-errors.js +0 -313
  186. package/dist/_contracts/sdk-secrets.d.ts +0 -67
  187. package/dist/_contracts/sdk-secrets.js +0 -427
  188. package/dist/_contracts/session-archive.d.ts +0 -16
  189. package/dist/_contracts/session-archive.js +0 -92
  190. package/dist/_contracts/session-artifacts.d.ts +0 -189
  191. package/dist/_contracts/session-artifacts.js +0 -264
  192. package/dist/_contracts/session-config.d.ts +0 -373
  193. package/dist/_contracts/session-config.js +0 -562
  194. package/dist/_contracts/session-cost-types.d.ts +0 -211
  195. package/dist/_contracts/session-cost-types.js +0 -69
  196. package/dist/_contracts/session-cost.d.ts +0 -8
  197. package/dist/_contracts/session-cost.js +0 -582
  198. package/dist/_contracts/session-custody.d.ts +0 -165
  199. package/dist/_contracts/session-custody.js +0 -345
  200. package/dist/_contracts/session-file-query.d.ts +0 -14
  201. package/dist/_contracts/session-file-query.js +0 -178
  202. package/dist/_contracts/session-record.d.ts +0 -112
  203. package/dist/_contracts/session-record.js +0 -165
  204. package/dist/_contracts/session-retention.d.ts +0 -201
  205. package/dist/_contracts/session-retention.js +0 -450
  206. package/dist/_contracts/side-effect-audit.d.ts +0 -126
  207. package/dist/_contracts/side-effect-audit.js +0 -520
  208. package/dist/_contracts/sse.d.ts +0 -74
  209. package/dist/_contracts/sse.js +0 -227
  210. package/dist/_contracts/stable.d.ts +0 -45
  211. package/dist/_contracts/stable.js +0 -62
  212. package/dist/_contracts/status.d.ts +0 -25
  213. package/dist/_contracts/status.js +0 -57
  214. package/dist/_contracts/submission-limits.d.ts +0 -61
  215. package/dist/_contracts/submission-limits.js +0 -60
  216. package/dist/_contracts/submission.d.ts +0 -547
  217. package/dist/_contracts/submission.js +0 -812
  218. package/dist/_contracts/suggest.d.ts +0 -15
  219. package/dist/_contracts/suggest.js +0 -53
  220. package/dist/_contracts/testing/response-bindings.d.ts +0 -45
  221. package/dist/_contracts/testing/response-bindings.js +0 -256
  222. package/dist/_contracts/testing/wire-conformance-entry.d.ts +0 -10
  223. package/dist/_contracts/testing/wire-conformance-entry.js +0 -8
  224. package/dist/_contracts/testing/wire-conformance.d.ts +0 -169
  225. package/dist/_contracts/testing/wire-conformance.js +0 -276
  226. package/dist/_contracts/turn-trace.d.ts +0 -28
  227. package/dist/_contracts/turn-trace.js +0 -1
  228. package/dist/_contracts/unknown-field-error.d.ts +0 -13
  229. package/dist/_contracts/unknown-field-error.js +0 -21
  230. package/dist/_contracts/value-guards.d.ts +0 -20
  231. package/dist/_contracts/value-guards.js +0 -34
  232. package/dist/_contracts/webhook-verify.d.ts +0 -34
  233. package/dist/_contracts/webhook-verify.js +0 -93
  234. package/dist/_contracts/wire-observer.d.ts +0 -49
  235. package/dist/_contracts/wire-observer.js +0 -34
  236. package/dist/_contracts/workflow-status.d.ts +0 -7
  237. package/dist/_contracts/workflow-status.js +0 -43
  238. package/dist/_contracts/workspace-resources.d.ts +0 -98
  239. package/dist/_contracts/workspace-resources.js +0 -39
  240. package/dist/archive-limits.d.ts +0 -1
  241. package/dist/archive-limits.js +0 -2
  242. package/dist/archive-limits.js.map +0 -1
  243. package/dist/asset-upload.d.ts +0 -47
  244. package/dist/asset-upload.js +0 -269
  245. package/dist/asset-upload.js.map +0 -1
  246. package/dist/bundle.d.ts +0 -9
  247. package/dist/bundle.js +0 -20
  248. package/dist/bundle.js.map +0 -1
  249. package/dist/canonical-zip.d.ts +0 -68
  250. package/dist/canonical-zip.js +0 -355
  251. package/dist/canonical-zip.js.map +0 -1
  252. package/dist/cli.mjs +0 -12048
  253. package/dist/cli.mjs.sha256 +0 -1
  254. package/dist/client-types.d.ts +0 -192
  255. package/dist/client-types.js +0 -2
  256. package/dist/client-types.js.map +0 -1
  257. package/dist/client.d.ts +0 -464
  258. package/dist/client.js +0 -1207
  259. package/dist/client.js.map +0 -1
  260. package/dist/event-projection.d.ts +0 -22
  261. package/dist/event-projection.js +0 -380
  262. package/dist/event-projection.js.map +0 -1
  263. package/dist/fetch-archive.d.ts +0 -16
  264. package/dist/fetch-archive.js +0 -252
  265. package/dist/fetch-archive.js.map +0 -1
  266. package/dist/file.d.ts +0 -96
  267. package/dist/file.js +0 -272
  268. package/dist/file.js.map +0 -1
  269. package/dist/instructions.d.ts +0 -20
  270. package/dist/instructions.js +0 -40
  271. package/dist/instructions.js.map +0 -1
  272. package/dist/legacy-session-provider-fault.d.ts +0 -7
  273. package/dist/legacy-session-provider-fault.js +0 -38
  274. package/dist/legacy-session-provider-fault.js.map +0 -1
  275. package/dist/mcp-server.d.ts +0 -84
  276. package/dist/mcp-server.js +0 -117
  277. package/dist/mcp-server.js.map +0 -1
  278. package/dist/node-fs.d.ts +0 -29
  279. package/dist/node-fs.js +0 -19
  280. package/dist/node-fs.js.map +0 -1
  281. package/dist/node-walk.d.ts +0 -69
  282. package/dist/node-walk.js +0 -151
  283. package/dist/node-walk.js.map +0 -1
  284. package/dist/path-basename.d.ts +0 -5
  285. package/dist/path-basename.js +0 -9
  286. package/dist/path-basename.js.map +0 -1
  287. package/dist/retry.d.ts +0 -70
  288. package/dist/retry.js +0 -155
  289. package/dist/retry.js.map +0 -1
  290. package/dist/secret.d.ts +0 -65
  291. package/dist/secret.js +0 -110
  292. package/dist/secret.js.map +0 -1
  293. package/dist/session-validate.d.ts +0 -100
  294. package/dist/session-validate.js +0 -303
  295. package/dist/session-validate.js.map +0 -1
  296. package/dist/skill.d.ts +0 -99
  297. package/dist/skill.js +0 -169
  298. package/dist/skill.js.map +0 -1
  299. package/dist/submission-wire.d.ts +0 -13
  300. package/dist/submission-wire.js +0 -69
  301. package/dist/submission-wire.js.map +0 -1
  302. package/dist/tool.d.ts +0 -41
  303. package/dist/tool.js +0 -76
  304. package/dist/tool.js.map +0 -1
  305. package/dist/version.d.ts +0 -9
  306. package/dist/version.js +0 -10
  307. package/dist/version.js.map +0 -1
  308. package/docs/authentication.md +0 -125
  309. package/docs/billing.md +0 -164
  310. package/docs/cleanup.md +0 -27
  311. package/docs/concepts/agent-tools.md +0 -47
  312. package/docs/concepts/composition.md +0 -60
  313. package/docs/concepts/providers-and-runtimes.md +0 -121
  314. package/docs/concepts/sessions.md +0 -51
  315. package/docs/concepts/subagents.md +0 -35
  316. package/docs/credentials.md +0 -116
  317. package/docs/defaults.md +0 -51
  318. package/docs/errors.md +0 -258
  319. package/docs/events.md +0 -143
  320. package/docs/files.md +0 -130
  321. package/docs/limits-and-quotas.md +0 -114
  322. package/docs/limits.md +0 -51
  323. package/docs/mcp.md +0 -47
  324. package/docs/networking.md +0 -114
  325. package/docs/provider-runtime-capabilities.md +0 -32
  326. package/docs/public-surface.json +0 -73
  327. package/docs/quickstart.md +0 -135
  328. package/docs/release.md +0 -44
  329. package/docs/retries.md +0 -108
  330. package/docs/secrets.md +0 -141
  331. package/docs/session-config.md +0 -51
  332. package/docs/session-record.md +0 -58
  333. package/docs/skills.md +0 -65
  334. package/docs/telemetry.md +0 -66
  335. package/docs/testing.md +0 -35
  336. package/docs/vision-skills.md +0 -94
  337. package/docs/webhooks.md +0 -143
@@ -1,117 +0,0 @@
1
- /**
2
- * Schemas for `submission.assets` — the four lists of immutable, version-pinned
3
- * workspace resources a run materializes.
4
- *
5
- * Each list is an array of a per-kind element schema, so the wire shape of a
6
- * submitted resource is stated once here rather than reconstructed field by
7
- * field in `submission.ts`.
8
- *
9
- * **What deliberately stays in the parser** (D4/L1): the *name grammars*
10
- * (`assertWorkspaceFileResourceName`, the skill and tool name rules), the mount
11
- * path assert, the `assetId`/`contentHash` agreement, the `entry` bundle-path
12
- * normalisation and per-list duplicate detection. The grammars are asserts the
13
- * SDK builders call directly on values they already hold, and the skill/tool
14
- * ones are declared in `session-config.ts`, which imports `submission.ts` — a
15
- * cycle if this module reached for them. Everything a schema *can* state — the
16
- * kind discriminator, the pinned identity quartet, string/number envelopes,
17
- * description bounds, the tool input schema — is stated here.
18
- *
19
- * Messages carry the element's INDEX (`submission.assets.files[3].mountPath`),
20
- * which is read off the position Zod reports rather than baked in, so one
21
- * element schema serves the whole list at any mount depth — see `indexedPath` /
22
- * `indexedFieldPath` in `wire.ts`.
23
- */
24
- import * as z from "zod/mini";
25
- /** `submission.assets.files[i]` — a mounted workspace file. */
26
- export declare const WorkspaceFileRefSchema: z.ZodMiniObject<{
27
- name: z.ZodMiniString<string>;
28
- mountPath: z.ZodMiniString<string>;
29
- kind: z.ZodMiniLiteral<"file">;
30
- resourceId: z.ZodMiniString<string>;
31
- version: z.ZodMiniNumber<number>;
32
- assetId: z.ZodMiniString<string>;
33
- contentHash: z.ZodMiniString<string>;
34
- }, z.core.$strict>;
35
- /** `submission.assets.skills[i]` — a loadable skill bundle. */
36
- export declare const WorkspaceSkillRefSchema: z.ZodMiniObject<{
37
- name: z.ZodMiniString<string>;
38
- description: z.ZodMiniString<string>;
39
- kind: z.ZodMiniLiteral<"skill">;
40
- resourceId: z.ZodMiniString<string>;
41
- version: z.ZodMiniNumber<number>;
42
- assetId: z.ZodMiniString<string>;
43
- contentHash: z.ZodMiniString<string>;
44
- }, z.core.$strict>;
45
- /** `submission.assets.tools[i]` — a custom tool bundle plus its input schema. */
46
- export declare const WorkspaceToolRefSchema: z.ZodMiniObject<{
47
- name: z.ZodMiniString<string>;
48
- description: z.ZodMiniString<string>;
49
- input_schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
50
- entry: z.ZodMiniString<string>;
51
- kind: z.ZodMiniLiteral<"tool">;
52
- resourceId: z.ZodMiniString<string>;
53
- version: z.ZodMiniNumber<number>;
54
- assetId: z.ZodMiniString<string>;
55
- contentHash: z.ZodMiniString<string>;
56
- }, z.core.$strict>;
57
- /** `submission.assets.instructions[i]` — an injected instruction document. */
58
- export declare const WorkspaceInstructionRefSchema: z.ZodMiniObject<{
59
- name: z.ZodMiniString<string>;
60
- kind: z.ZodMiniLiteral<"instruction">;
61
- resourceId: z.ZodMiniString<string>;
62
- version: z.ZodMiniNumber<number>;
63
- assetId: z.ZodMiniString<string>;
64
- contentHash: z.ZodMiniString<string>;
65
- }, z.core.$strict>;
66
- /**
67
- * The four asset lists.
68
- *
69
- * Its unknown-key sentence is deliberately the shorter "is not allowed" wording
70
- * rather than the "is not an allowed field" the siblings use; both are pinned
71
- * byte-for-byte by `test/allowed-keys-parser-golden.test.ts`, so neither can be
72
- * normalised toward the other without a contract change.
73
- */
74
- export declare const SubmissionAssetsSchema: z.ZodMiniObject<{
75
- files: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
76
- name: z.ZodMiniString<string>;
77
- mountPath: z.ZodMiniString<string>;
78
- kind: z.ZodMiniLiteral<"file">;
79
- resourceId: z.ZodMiniString<string>;
80
- version: z.ZodMiniNumber<number>;
81
- assetId: z.ZodMiniString<string>;
82
- contentHash: z.ZodMiniString<string>;
83
- }, z.core.$strict>>>;
84
- skills: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
85
- name: z.ZodMiniString<string>;
86
- description: z.ZodMiniString<string>;
87
- kind: z.ZodMiniLiteral<"skill">;
88
- resourceId: z.ZodMiniString<string>;
89
- version: z.ZodMiniNumber<number>;
90
- assetId: z.ZodMiniString<string>;
91
- contentHash: z.ZodMiniString<string>;
92
- }, z.core.$strict>>>;
93
- tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
94
- name: z.ZodMiniString<string>;
95
- description: z.ZodMiniString<string>;
96
- input_schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
97
- entry: z.ZodMiniString<string>;
98
- kind: z.ZodMiniLiteral<"tool">;
99
- resourceId: z.ZodMiniString<string>;
100
- version: z.ZodMiniNumber<number>;
101
- assetId: z.ZodMiniString<string>;
102
- contentHash: z.ZodMiniString<string>;
103
- }, z.core.$strict>>>;
104
- instructions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
105
- name: z.ZodMiniString<string>;
106
- kind: z.ZodMiniLiteral<"instruction">;
107
- resourceId: z.ZodMiniString<string>;
108
- version: z.ZodMiniNumber<number>;
109
- assetId: z.ZodMiniString<string>;
110
- contentHash: z.ZodMiniString<string>;
111
- }, z.core.$strict>>>;
112
- }, z.core.$strict>;
113
- export type SubmissionAssetsWire = z.infer<typeof SubmissionAssetsSchema>;
114
- export type WorkspaceFileRefWire = z.infer<typeof WorkspaceFileRefSchema>;
115
- export type WorkspaceSkillRefWire = z.infer<typeof WorkspaceSkillRefSchema>;
116
- export type WorkspaceToolRefWire = z.infer<typeof WorkspaceToolRefSchema>;
117
- export type WorkspaceInstructionRefWire = z.infer<typeof WorkspaceInstructionRefSchema>;
@@ -1,147 +0,0 @@
1
- /**
2
- * Schemas for `submission.assets` — the four lists of immutable, version-pinned
3
- * workspace resources a run materializes.
4
- *
5
- * Each list is an array of a per-kind element schema, so the wire shape of a
6
- * submitted resource is stated once here rather than reconstructed field by
7
- * field in `submission.ts`.
8
- *
9
- * **What deliberately stays in the parser** (D4/L1): the *name grammars*
10
- * (`assertWorkspaceFileResourceName`, the skill and tool name rules), the mount
11
- * path assert, the `assetId`/`contentHash` agreement, the `entry` bundle-path
12
- * normalisation and per-list duplicate detection. The grammars are asserts the
13
- * SDK builders call directly on values they already hold, and the skill/tool
14
- * ones are declared in `session-config.ts`, which imports `submission.ts` — a
15
- * cycle if this module reached for them. Everything a schema *can* state — the
16
- * kind discriminator, the pinned identity quartet, string/number envelopes,
17
- * description bounds, the tool input schema — is stated here.
18
- *
19
- * Messages carry the element's INDEX (`submission.assets.files[3].mountPath`),
20
- * which is read off the position Zod reports rather than baked in, so one
21
- * element schema serves the whole list at any mount depth — see `indexedPath` /
22
- * `indexedFieldPath` in `wire.ts`.
23
- */
24
- import * as z from "zod/mini";
25
- import { isJsonValue } from "../value-guards.js";
26
- import { indexedFieldPath, indexedPath, wireObject } from "./wire.js";
27
- const ASSETS = "submission.assets";
28
- /** Maximum length of a resource description shown to the model. */
29
- const RESOURCE_DESCRIPTION_MAX_CHARS = 2048;
30
- /**
31
- * A rejected key on a resource element names the key and stops — the permitted
32
- * list is deliberately absent, because the per-kind list differs across the four
33
- * lists and the caller already knows which list it wrote to.
34
- */
35
- const resourceRefText = {
36
- unknownKey: (path, key) => `${path}.${key} is not allowed`
37
- };
38
- /** A required, non-empty string field of the element at an indexed position. */
39
- function refString(list) {
40
- const message = (issue) => `${indexedFieldPath(list, issue.path)} must be a non-empty string`;
41
- return z.string({ error: message }).check(z.minLength(1, { error: message, abort: true }));
42
- }
43
- /** The pinned `version` counter: a positive safe integer. */
44
- function refVersion(list) {
45
- const message = (issue) => `${indexedFieldPath(list, issue.path)} must be a positive integer`;
46
- return z
47
- .number({ error: message })
48
- .check(z.refine((value) => Number.isSafeInteger(value) && value >= 1, {
49
- error: message,
50
- abort: true
51
- }));
52
- }
53
- /**
54
- * The kind discriminator. Declared first so a mislabelled element is rejected
55
- * before its identity fields are read, matching the parser's order.
56
- */
57
- function refKind(list, kind) {
58
- return z.literal(kind, {
59
- error: (issue) => `${indexedFieldPath(list, issue.path)} must be '${kind}'`
60
- });
61
- }
62
- /**
63
- * A model-facing description: non-empty after trimming and within
64
- * {@link RESOURCE_DESCRIPTION_MAX_CHARS}. The envelope and the bound report
65
- * separately, as the `requireResourceDescription` ladder they replace did.
66
- */
67
- function refDescription(list) {
68
- const envelope = (issue) => `${indexedFieldPath(list, issue.path)} must be a non-empty string`;
69
- const bound = (issue) => `${indexedFieldPath(list, issue.path)} must be non-empty and <= ${RESOURCE_DESCRIPTION_MAX_CHARS} chars`;
70
- return z.string({ error: envelope }).check(z.minLength(1, { error: envelope, abort: true }), z.refine((value) => value.trim().length > 0 && value.length <= RESOURCE_DESCRIPTION_MAX_CHARS, { error: bound, abort: true }));
71
- }
72
- /** A custom tool's JSON Schema: an object literal whose `type` is `"object"`. */
73
- function refInputSchema(list) {
74
- const notObject = (issue) => `${indexedFieldPath(list, issue.path)} must be an object`;
75
- const notToolSchema = (issue) => `${indexedFieldPath(list, issue.path)} must be a JSON Schema object with type 'object'`;
76
- return z.record(z.string(), z.unknown(), { error: notObject }).check(z.refine((value) => isJsonValue(value) && value.type === "object", { error: notToolSchema, abort: true }));
77
- }
78
- /** The immutable identity every submitted resource carries, in assertion order. */
79
- function pinnedRefKeys(list, kind) {
80
- return {
81
- kind: refKind(list, kind),
82
- resourceId: refString(list),
83
- version: refVersion(list),
84
- assetId: refString(list),
85
- contentHash: refString(list)
86
- };
87
- }
88
- /**
89
- * One resource element, strict over its per-kind key set.
90
- *
91
- * Declaration order is the order the sequential assertions this replaces ran in,
92
- * and `errorFromZod` reports the shallowest issue first, so a rejected key still
93
- * outranks a field complaint on the same element.
94
- */
95
- function refObject(list, shape) {
96
- return wireObject(indexedPath(list), shape, resourceRefText);
97
- }
98
- const FILES = `${ASSETS}.files`;
99
- const SKILLS = `${ASSETS}.skills`;
100
- const TOOLS = `${ASSETS}.tools`;
101
- const INSTRUCTIONS = `${ASSETS}.instructions`;
102
- /** `submission.assets.files[i]` — a mounted workspace file. */
103
- export const WorkspaceFileRefSchema = refObject(FILES, {
104
- ...pinnedRefKeys(FILES, "file"),
105
- name: refString(FILES),
106
- mountPath: refString(FILES)
107
- });
108
- /** `submission.assets.skills[i]` — a loadable skill bundle. */
109
- export const WorkspaceSkillRefSchema = refObject(SKILLS, {
110
- ...pinnedRefKeys(SKILLS, "skill"),
111
- name: refString(SKILLS),
112
- description: refDescription(SKILLS)
113
- });
114
- /** `submission.assets.tools[i]` — a custom tool bundle plus its input schema. */
115
- export const WorkspaceToolRefSchema = refObject(TOOLS, {
116
- ...pinnedRefKeys(TOOLS, "tool"),
117
- name: refString(TOOLS),
118
- description: refDescription(TOOLS),
119
- input_schema: refInputSchema(TOOLS),
120
- entry: refString(TOOLS)
121
- });
122
- /** `submission.assets.instructions[i]` — an injected instruction document. */
123
- export const WorkspaceInstructionRefSchema = refObject(INSTRUCTIONS, {
124
- ...pinnedRefKeys(INSTRUCTIONS, "instruction"),
125
- name: refString(INSTRUCTIONS)
126
- });
127
- /**
128
- * The four asset lists.
129
- *
130
- * Its unknown-key sentence is deliberately the shorter "is not allowed" wording
131
- * rather than the "is not an allowed field" the siblings use; both are pinned
132
- * byte-for-byte by `test/allowed-keys-parser-golden.test.ts`, so neither can be
133
- * normalised toward the other without a contract change.
134
- */
135
- export const SubmissionAssetsSchema = wireObject(ASSETS, {
136
- files: z.optional(z.array(WorkspaceFileRefSchema, { error: `${FILES} must be an array` })),
137
- skills: z.optional(z.array(WorkspaceSkillRefSchema, { error: `${SKILLS} must be an array` })),
138
- tools: z.optional(z.array(WorkspaceToolRefSchema, { error: `${TOOLS} must be an array` })),
139
- instructions: z.optional(z.array(WorkspaceInstructionRefSchema, { error: `${INSTRUCTIONS} must be an array` }))
140
- }, {
141
- unknownKey: (path, key, permitted) => `${path}.${key} is not allowed; permitted: ${permitted.join(", ")}`
142
- }).register(z.globalRegistry, {
143
- id: "SubmissionAssets",
144
- description: "Immutable, version-pinned workspace resources materialized for the run. Resource name " +
145
- "grammars, the mount-path rules, the assetId/contentHash agreement and per-list duplicate " +
146
- "detection are enforced in packages/contracts/src/submission.ts and are not expressible here."
147
- });
@@ -1,251 +0,0 @@
1
- /**
2
- * Schemas for the submission BRIEF — `request.submission` — and for the inline
3
- * policy objects that hang directly off it: platform injection, file capture,
4
- * response format and the HITL approval gate.
5
- *
6
- * Declaration order is the permitted-key order reported on an unknown field, and
7
- * `test/allowed-keys-parser-golden.test.ts` pins every sentence below
8
- * byte-for-byte — including the three different wordings, which are historical
9
- * and deliberately not normalised toward each other.
10
- *
11
- * **What stays in `submission.ts`** (D4/L1): every transform and every
12
- * cross-field rule. Splitting `"pip:pandas"`, decoding a duration, collapsing an
13
- * empty object to `undefined`, canonicalising a capture path, deduplicating a
14
- * tool list, reconciling `secretEnv` against `secrets.envSecrets` — none of
15
- * those are shapes, and a `.transform()` here would make the response half of
16
- * the generated spec ungenerable. Rule sets whose ORDER decides which message
17
- * fires (`prompt`, `secretEnv`, the capture-path ladders) are single
18
- * `z.check()`s for the reason `submission-environment.ts` documents: composed
19
- * schemas report in Zod's order, not the ladder's.
20
- */
21
- import * as z from "zod/mini";
22
- /** Assistant-output granularity values. Buffered is the platform default. */
23
- export declare const OUTPUT_MODES: readonly ["buffered", "stream"];
24
- /** Response-format kinds: free-form `text` (default) or provider-native `json_schema`. */
25
- export declare const RESPONSE_FORMAT_KINDS: readonly ["text", "json_schema"];
26
- /**
27
- * Maximum number of file capture entries accepted per list.
28
- *
29
- * 32 is enough room for the typical "one or two capture roots" pattern plus a
30
- * generous margin for legitimate multi-root use cases (per-tool file directory +
31
- * scratch state + logs, repeated across a few subdirectories), without inviting
32
- * abuse of the synthetic-turn path the platform capture path drives at session
33
- * terminal.
34
- */
35
- export declare const MAX_FILE_CAPTURE_DIRS = 32;
36
- /**
37
- * Maximum byte length of a single file capture entry (after UTF-8 encoding).
38
- * 512 bytes comfortably covers `/very/long/nested/path` style entries without
39
- * letting a misuse smuggle large blobs through the field.
40
- */
41
- export declare const MAX_FILE_CAPTURE_DIR_BYTES = 512;
42
- /**
43
- * The prompt as a single string or an ordered list of parts.
44
- *
45
- * The union admits ANY array rather than an array of strings, and the per-entry
46
- * rules ride the ladder below, because a union reports its own failure — the
47
- * caller would learn "must be a string or an array of strings" for
48
- * `["ok", 7]` instead of which entry is wrong. The ladder is the parser's own
49
- * order: length, then each entry, then the all-whitespace check that only makes
50
- * sense once every entry is a string.
51
- */
52
- export declare const PromptSchema: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniUnknown>]>;
53
- /**
54
- * The non-secret half of the MCP server declarations.
55
- *
56
- * Deliberately an array of unvalidated entries: the per-entry rules
57
- * (`mcpServerRefSchema`) need the SSRF host deny-list and the transport parser,
58
- * which `schemas/mcp-server.ts` takes as an injected `McpWirePolicy` because
59
- * they must stay inside `session-config.ts` for the cross-repo parity check —
60
- * and `session-config.ts` imports `submission.ts`, so this module cannot reach
61
- * them without a cycle. `parseMcpServers` applies them one entry at a time.
62
- */
63
- export declare const McpServerRefsSchema: z.ZodMiniArray<z.ZodMiniUnknown>;
64
- /**
65
- * Value-free env-var secret bindings, keyed by env name.
66
- *
67
- * One ordered `z.check()` rather than a record of a union, for the reason
68
- * `EnvSecretsSchema` documents: each rung has its own message and the key rule
69
- * must beat the value rule, which a composed schema cannot promise.
70
- */
71
- export declare const SecretEnvSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
72
- /** Caller-owned metadata: any JSON-serializable value per key. */
73
- export declare const MetadataSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
74
- /**
75
- * The builtin-capability selection.
76
- *
77
- * The array branch admits any entry: the closed name set lives on
78
- * `submission.ts` (`BUILTIN_TOOL_NAMES`, pinned equal to the platform's
79
- * `HANDS_TOOLS`), which imports this module, and `resolveBuiltinToolNames` both
80
- * validates membership and re-orders the result — a transform either way.
81
- */
82
- export declare const BuiltinToolsSchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"default">, z.ZodMiniLiteral<"none">, z.ZodMiniArray<z.ZodMiniUnknown>]>;
83
- /** Assistant-output granularity. */
84
- export declare const OutputModeSchema: z.ZodMiniEnum<{
85
- buffered: "buffered";
86
- stream: "stream";
87
- }>;
88
- /** `submission.fileCapture` — the post-run capture policy. */
89
- export declare const FileCaptureSchema: z.ZodMiniObject<{
90
- allowedDirs: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
91
- deniedDirs: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
92
- captureTimeoutMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
93
- maxFileBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
94
- maxTotalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
95
- maxFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
96
- }, z.core.$strict>;
97
- /**
98
- * `submission.responseFormat` when `kind` is `"text"` — a free-form response
99
- * admits no other field, and says so in its own words rather than listing a
100
- * permitted set of one.
101
- */
102
- export declare const ResponseFormatTextSchema: z.ZodMiniObject<{
103
- kind: z.ZodMiniLiteral<"text">;
104
- }, z.core.$strict>;
105
- /** `submission.responseFormat` when `kind` is `"json_schema"`. */
106
- export declare const ResponseFormatJsonSchemaSchema: z.ZodMiniObject<{
107
- kind: z.ZodMiniLiteral<"json_schema">;
108
- schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
109
- strict: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
110
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
111
- }, z.core.$strict>;
112
- /**
113
- * The structured-output policy, selected by `kind`.
114
- *
115
- * A DISCRIMINATED union rather than a plain one: `kind` picks the variant before
116
- * either member runs, so a bad `kind` outranks an unknown key and each variant
117
- * words its own rejection — which is exactly the two-stage sequencing the
118
- * hand-written parser had. A plain `z.union` would report its own failure for
119
- * both cases and lose the distinction.
120
- *
121
- * The union's own message therefore covers only what routing itself can fail on:
122
- * a non-object, or an object whose `kind` names no variant.
123
- */
124
- export declare const ResponseFormatSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
125
- kind: z.ZodMiniLiteral<"text">;
126
- }, z.core.$strict>, z.ZodMiniObject<{
127
- kind: z.ZodMiniLiteral<"json_schema">;
128
- schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
129
- strict: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
130
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
131
- }, z.core.$strict>], "kind">;
132
- /** `submission.approvalGate` — the declarative HITL write-gate. */
133
- export declare const ApprovalGateSchema: z.ZodMiniObject<{
134
- tools: z.ZodMiniArray<z.ZodMiniString<string>>;
135
- }, z.core.$strict>;
136
- /** `submission.platform` — platform-injection controls. */
137
- export declare const PlatformInjectionSchema: z.ZodMiniObject<{
138
- systemPrompt: z.ZodMiniOptional<z.ZodMiniEnum<{
139
- default: "default";
140
- off: "off";
141
- }>>;
142
- }, z.core.$strict>;
143
- /**
144
- * Wire shape of the submission brief.
145
- *
146
- * The two diagnostics report under DIFFERENT paths and always have: an unknown
147
- * key is `submission.<key> …` (the brief's fields are the caller's
148
- * `submission.*` fields), while a non-object brief is `submission.submission …`
149
- * (the brief's own position inside the request envelope). Both are pinned.
150
- *
151
- * `null` is admitted wherever the parser treated it as "unset" — that
152
- * back-compat is the parser's, and the schema states it rather than letting a
153
- * null reach a normaliser that would have to re-check it.
154
- */
155
- export declare const SubmissionSchema: z.ZodMiniObject<{
156
- model: z.ZodMiniString<string>;
157
- system: z.ZodMiniOptional<z.ZodMiniString<string>>;
158
- prompt: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniUnknown>]>;
159
- assets: z.ZodMiniObject<{
160
- files: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
161
- name: z.ZodMiniString<string>;
162
- mountPath: z.ZodMiniString<string>;
163
- kind: z.ZodMiniLiteral<"file">;
164
- resourceId: z.ZodMiniString<string>;
165
- version: z.ZodMiniNumber<number>;
166
- assetId: z.ZodMiniString<string>;
167
- contentHash: z.ZodMiniString<string>;
168
- }, z.core.$strict>>>;
169
- skills: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
170
- name: z.ZodMiniString<string>;
171
- description: z.ZodMiniString<string>;
172
- kind: z.ZodMiniLiteral<"skill">;
173
- resourceId: z.ZodMiniString<string>;
174
- version: z.ZodMiniNumber<number>;
175
- assetId: z.ZodMiniString<string>;
176
- contentHash: z.ZodMiniString<string>;
177
- }, z.core.$strict>>>;
178
- tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
179
- name: z.ZodMiniString<string>;
180
- description: z.ZodMiniString<string>;
181
- input_schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
182
- entry: z.ZodMiniString<string>;
183
- kind: z.ZodMiniLiteral<"tool">;
184
- resourceId: z.ZodMiniString<string>;
185
- version: z.ZodMiniNumber<number>;
186
- assetId: z.ZodMiniString<string>;
187
- contentHash: z.ZodMiniString<string>;
188
- }, z.core.$strict>>>;
189
- instructions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
190
- name: z.ZodMiniString<string>;
191
- kind: z.ZodMiniLiteral<"instruction">;
192
- resourceId: z.ZodMiniString<string>;
193
- version: z.ZodMiniNumber<number>;
194
- assetId: z.ZodMiniString<string>;
195
- contentHash: z.ZodMiniString<string>;
196
- }, z.core.$strict>>>;
197
- }, z.core.$strict>;
198
- mcpServers: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
199
- secretEnv: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>>;
200
- environment: z.ZodMiniOptional<z.ZodMiniObject<{
201
- networking: z.ZodMiniOptional<z.ZodMiniObject<{
202
- mode: z.ZodMiniOptional<z.ZodMiniEnum<{
203
- limited: "limited";
204
- open: "open";
205
- }>>;
206
- allowedHosts: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
207
- }, z.core.$strict>>;
208
- packages: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
209
- name: z.ZodMiniString<string>;
210
- version: z.ZodMiniOptional<z.ZodMiniString<string>>;
211
- }, z.core.$strict>>>;
212
- envVars: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
213
- }, z.core.$strict>>;
214
- securityProfile: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<{
215
- strict: "strict";
216
- standard: "standard";
217
- developer: "developer";
218
- }>>>;
219
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
220
- fileCapture: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
221
- allowedDirs: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
222
- deniedDirs: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniUnknown>>;
223
- captureTimeoutMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
224
- maxFileBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
225
- maxTotalBytes: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
226
- maxFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
227
- }, z.core.$strict>>>;
228
- builtinTools: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"default">, z.ZodMiniLiteral<"none">, z.ZodMiniArray<z.ZodMiniUnknown>]>>>;
229
- outputMode: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<{
230
- buffered: "buffered";
231
- stream: "stream";
232
- }>>>;
233
- responseFormat: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
234
- kind: z.ZodMiniLiteral<"text">;
235
- }, z.core.$strict>, z.ZodMiniObject<{
236
- kind: z.ZodMiniLiteral<"json_schema">;
237
- schema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
238
- strict: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
239
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
240
- }, z.core.$strict>], "kind">>>;
241
- approvalGate: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
242
- tools: z.ZodMiniArray<z.ZodMiniString<string>>;
243
- }, z.core.$strict>>>;
244
- platform: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
245
- systemPrompt: z.ZodMiniOptional<z.ZodMiniEnum<{
246
- default: "default";
247
- off: "off";
248
- }>>;
249
- }, z.core.$strict>>>;
250
- }, z.core.$strict>;
251
- export type SubmissionWire = z.infer<typeof SubmissionSchema>;