@opengeni/contracts 0.50.0 → 1.0.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 (369) hide show
  1. package/dist/agent-authored-durable-text.d.ts +70 -0
  2. package/dist/agent-config.d.ts +869 -0
  3. package/dist/agent-instruction-changes.d.ts +110 -0
  4. package/dist/agent-learning.d.ts +243 -0
  5. package/dist/agent-topology.d.ts +292 -0
  6. package/dist/allowance-refusal.d.ts +9 -0
  7. package/dist/allowance-refusal.js +50 -0
  8. package/dist/allowance-refusal.js.map +1 -0
  9. package/dist/analytics-consent-report.d.ts +19 -0
  10. package/dist/analytics-consent-report.js +10 -0
  11. package/dist/analytics-consent-report.js.map +1 -0
  12. package/dist/api-key-presets.d.ts +19 -0
  13. package/dist/artifact-catalog.d.ts +161 -0
  14. package/dist/artifacts.d.ts +135 -11
  15. package/dist/atlassian-native-retirement.d.ts +16 -0
  16. package/dist/atlassian-native-retirement.js +30 -0
  17. package/dist/atlassian-native-retirement.js.map +1 -0
  18. package/dist/atlassian.d.ts +2 -0
  19. package/dist/atlassian.js +26 -12
  20. package/dist/browser-storage.d.ts +5 -0
  21. package/dist/browser-storage.js +9 -0
  22. package/dist/browser-storage.js.map +1 -0
  23. package/dist/bundled-skills.d.ts +40 -0
  24. package/dist/chunk-2ACYHZFB.js +292 -0
  25. package/dist/chunk-2ACYHZFB.js.map +1 -0
  26. package/dist/chunk-2VORLN2R.js +353 -0
  27. package/dist/chunk-2VORLN2R.js.map +1 -0
  28. package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
  29. package/dist/chunk-3SIZGL3O.js.map +1 -0
  30. package/dist/chunk-46KLD2UH.js +186 -0
  31. package/dist/chunk-46KLD2UH.js.map +1 -0
  32. package/dist/chunk-4JGHSSB7.js +11 -0
  33. package/dist/chunk-4JGHSSB7.js.map +1 -0
  34. package/dist/{chunk-M5ZGRVIQ.js → chunk-5IXYF6XN.js} +14 -5
  35. package/dist/chunk-5IXYF6XN.js.map +1 -0
  36. package/dist/chunk-BCS7WHCK.js +139 -0
  37. package/dist/chunk-BCS7WHCK.js.map +1 -0
  38. package/dist/chunk-EK7NDGFR.js +128 -0
  39. package/dist/chunk-EK7NDGFR.js.map +1 -0
  40. package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
  41. package/dist/chunk-FZ6BXQHL.js.map +1 -0
  42. package/dist/{chunk-CM6BMECR.js → chunk-GRG7PHWQ.js} +2 -1
  43. package/dist/chunk-GRG7PHWQ.js.map +1 -0
  44. package/dist/chunk-KHHZTBP7.js +11 -0
  45. package/dist/chunk-KHHZTBP7.js.map +1 -0
  46. package/dist/chunk-KR2V42UZ.js +187 -0
  47. package/dist/chunk-KR2V42UZ.js.map +1 -0
  48. package/dist/chunk-MZLBPKFE.js +168 -0
  49. package/dist/chunk-MZLBPKFE.js.map +1 -0
  50. package/dist/{chunk-LW7OH6CS.js → chunk-NRMCVHAU.js} +6 -5
  51. package/dist/chunk-NRMCVHAU.js.map +1 -0
  52. package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
  53. package/dist/chunk-NVJMJWLL.js.map +1 -0
  54. package/dist/chunk-O77VSFYZ.js +70 -0
  55. package/dist/chunk-O77VSFYZ.js.map +1 -0
  56. package/dist/chunk-PX3VCKAU.js +29 -0
  57. package/dist/chunk-PX3VCKAU.js.map +1 -0
  58. package/dist/chunk-QR5D2IQC.js +61 -0
  59. package/dist/chunk-QR5D2IQC.js.map +1 -0
  60. package/dist/chunk-RJ76DRPO.js +117 -0
  61. package/dist/chunk-RJ76DRPO.js.map +1 -0
  62. package/dist/chunk-RKX3NQYS.js +28 -0
  63. package/dist/chunk-RKX3NQYS.js.map +1 -0
  64. package/dist/{chunk-JBCIY7QD.js → chunk-SIOU2K4U.js} +45 -22
  65. package/dist/chunk-SIOU2K4U.js.map +1 -0
  66. package/dist/chunk-TSCDAGET.js +75 -0
  67. package/dist/chunk-TSCDAGET.js.map +1 -0
  68. package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
  69. package/dist/chunk-TXTQIYCV.js.map +1 -0
  70. package/dist/chunk-X7ETVO4P.js +26544 -0
  71. package/dist/chunk-X7ETVO4P.js.map +1 -0
  72. package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
  73. package/dist/chunk-YBW5JSA3.js +251 -0
  74. package/dist/chunk-YBW5JSA3.js.map +1 -0
  75. package/dist/chunk-YRXAWWCU.js +45 -0
  76. package/dist/chunk-YRXAWWCU.js.map +1 -0
  77. package/dist/claude-provider-account-authority.d.ts +18 -0
  78. package/dist/claude-subscription-oauth.d.ts +42 -0
  79. package/dist/claude-subscription-usage.d.ts +159 -0
  80. package/dist/client-error-report.d.ts +109 -0
  81. package/dist/client-error-report.js +87 -0
  82. package/dist/client-error-report.js.map +1 -0
  83. package/dist/code-search.d.ts +52 -0
  84. package/dist/code-search.js +40 -0
  85. package/dist/code-search.js.map +1 -0
  86. package/dist/company-brain-governed-writes.d.ts +475 -0
  87. package/dist/company-brain.d.ts +336 -0
  88. package/dist/company-profile.d.ts +566 -0
  89. package/dist/connect.d.ts +325 -0
  90. package/dist/connect.js +191 -0
  91. package/dist/connect.js.map +1 -0
  92. package/dist/connection-account-label.d.ts +2 -0
  93. package/dist/connection-account-label.js +35 -0
  94. package/dist/connection-account-label.js.map +1 -0
  95. package/dist/connection-authority.d.ts +193 -0
  96. package/dist/connection-authority.js +50 -0
  97. package/dist/connection-authority.js.map +1 -0
  98. package/dist/connector-attachments.d.ts +95 -0
  99. package/dist/connector-attachments.js +51 -0
  100. package/dist/connector-attachments.js.map +1 -0
  101. package/dist/connector-tool-permissions.d.ts +73 -0
  102. package/dist/direct-model-provider.d.ts +36 -0
  103. package/dist/editable-artifact-codec-registry.d.ts +16 -7
  104. package/dist/editable-artifact-codec-registry.js +18 -8
  105. package/dist/editable-artifact-committed-transaction.d.ts +2 -2
  106. package/dist/editable-artifact-committed-transaction.js +2 -2
  107. package/dist/editable-artifact-live.d.ts +11 -12
  108. package/dist/editable-artifact-live.js +110 -45
  109. package/dist/editable-artifact-live.js.map +1 -1
  110. package/dist/editable-artifact-serialized-commit.d.ts +2 -1
  111. package/dist/editable-artifact-serialized-commit.js +8 -7
  112. package/dist/editable-artifact-versions.d.ts +20 -5
  113. package/dist/editable-artifact-versions.js +23 -5
  114. package/dist/editable-artifacts.d.ts +2 -0
  115. package/dist/editable-artifacts.js +47 -35
  116. package/dist/external-identities.d.ts +784 -0
  117. package/dist/external-identities.js +44 -0
  118. package/dist/external-identities.js.map +1 -0
  119. package/dist/feedback.d.ts +51 -0
  120. package/dist/github-repository-contracts.d.ts +36 -0
  121. package/dist/github-repository-contracts.js +59 -0
  122. package/dist/github-repository-contracts.js.map +1 -0
  123. package/dist/github-repository.d.ts +14 -0
  124. package/dist/github-repository.js +36 -0
  125. package/dist/github-repository.js.map +1 -0
  126. package/dist/google-drive.d.ts +90 -1
  127. package/dist/google-drive.js +90 -16
  128. package/dist/google-drive.js.map +1 -1
  129. package/dist/governed-learning-activation.d.ts +154 -0
  130. package/dist/governed-learning-evaluator.d.ts +152 -0
  131. package/dist/host-mcp-bindings.d.ts +326 -0
  132. package/dist/host-mcp-bindings.js +252 -0
  133. package/dist/host-mcp-bindings.js.map +1 -0
  134. package/dist/image-generation.d.ts +1 -0
  135. package/dist/index.d.ts +32396 -11386
  136. package/dist/index.js +2198 -164
  137. package/dist/insights-usage.d.ts +877 -0
  138. package/dist/insights-usage.js +509 -0
  139. package/dist/insights-usage.js.map +1 -0
  140. package/dist/interaction.d.ts +344 -0
  141. package/dist/knowledge-entries.d.ts +982 -0
  142. package/dist/knowledge-preparation.d.ts +237 -0
  143. package/dist/knowledge.d.ts +197 -0
  144. package/dist/managed-auth-session-sets.d.ts +241 -0
  145. package/dist/managed-auth-session-sets.js +191 -0
  146. package/dist/managed-auth-session-sets.js.map +1 -0
  147. package/dist/managed-sign-in-methods.d.ts +56 -0
  148. package/dist/managed-sign-in-methods.js +46 -0
  149. package/dist/managed-sign-in-methods.js.map +1 -0
  150. package/dist/mcp-catalog-limits.d.ts +2 -0
  151. package/dist/mcp-endpoint.d.ts +7 -0
  152. package/dist/mcp-endpoint.js +9 -0
  153. package/dist/mcp-endpoint.js.map +1 -0
  154. package/dist/mcp-oauth.d.ts +71 -0
  155. package/dist/modal-native-proof-v2.d.ts +587 -0
  156. package/dist/modal-native-proof-v2.js +37 -0
  157. package/dist/modal-native-proof-v2.js.map +1 -0
  158. package/dist/model-availability.d.ts +15 -0
  159. package/dist/model-connection-access.d.ts +24 -0
  160. package/dist/model-context-inspector.d.ts +329 -0
  161. package/dist/model-display.d.ts +38 -0
  162. package/dist/model-display.js +134 -0
  163. package/dist/model-display.js.map +1 -0
  164. package/dist/model-picker-order.d.ts +25 -0
  165. package/dist/model-picker-order.js +42 -0
  166. package/dist/model-picker-order.js.map +1 -0
  167. package/dist/organization-access.d.ts +231 -0
  168. package/dist/organization-access.js +34 -0
  169. package/dist/organization-access.js.map +1 -0
  170. package/dist/organization-integration-policy.d.ts +27 -0
  171. package/dist/organization-membership-lifecycle.d.ts +1022 -0
  172. package/dist/organization-model-usage.d.ts +146 -0
  173. package/dist/organization-model-usage.js +67 -0
  174. package/dist/organization-model-usage.js.map +1 -0
  175. package/dist/organization-recovery.d.ts +337 -0
  176. package/dist/organization-recovery.js +37 -0
  177. package/dist/organization-recovery.js.map +1 -0
  178. package/dist/organization-usage.d.ts +138 -0
  179. package/dist/permissions.d.ts +54 -0
  180. package/dist/personal-github.d.ts +320 -0
  181. package/dist/personal-github.js +222 -0
  182. package/dist/personal-github.js.map +1 -0
  183. package/dist/plugin-discovery.d.ts +35 -0
  184. package/dist/plugin-discovery.js +7 -0
  185. package/dist/plugin-discovery.js.map +1 -0
  186. package/dist/preference-registry.d.ts +44 -1
  187. package/dist/product-analytics.d.ts +113 -0
  188. package/dist/product-lifecycle-facts.d.ts +73 -0
  189. package/dist/remember.d.ts +350 -0
  190. package/dist/retained-output.d.ts +8 -0
  191. package/dist/sandbox-file-artifacts.d.ts +57 -0
  192. package/dist/sandbox-provider-command.d.ts +113 -0
  193. package/dist/sandbox-recovery.d.ts +146 -0
  194. package/dist/sandbox-snapshots.d.ts +39 -0
  195. package/dist/session-final-reply.d.ts +6 -0
  196. package/dist/session-final-reply.js +9 -0
  197. package/dist/session-final-reply.js.map +1 -0
  198. package/dist/session-goal-reports.d.ts +21 -0
  199. package/dist/session-history-import.d.ts +947 -0
  200. package/dist/session-list-entries.d.ts +4 -0
  201. package/dist/session-list-entries.js +51 -0
  202. package/dist/session-list-entries.js.map +1 -0
  203. package/dist/session-mcp-projections.d.ts +215 -0
  204. package/dist/session-message-search.d.ts +68 -0
  205. package/dist/session-titles.d.ts +68 -0
  206. package/dist/session-titles.js +25 -0
  207. package/dist/session-titles.js.map +1 -0
  208. package/dist/session-topology-primitives.d.ts +22 -0
  209. package/dist/signup-attribution.d.ts +39 -0
  210. package/dist/site-request-headers.test.d.ts +1 -0
  211. package/dist/site-session-http.d.ts +11 -0
  212. package/dist/site-session-http.js +11 -0
  213. package/dist/site-session-http.js.map +1 -0
  214. package/dist/skill-catalog-context.d.ts +7 -0
  215. package/dist/skill-files.d.ts +12 -0
  216. package/dist/skill-metadata.d.ts +9 -0
  217. package/dist/skill-use.d.ts +61 -0
  218. package/dist/skills.d.ts +185 -0
  219. package/dist/slack-bot-scopes.d.ts +46 -21
  220. package/dist/slack-bot-scopes.js +14 -3
  221. package/dist/slack-rest-mcp.d.ts +31 -0
  222. package/dist/slack-rest-mcp.js +19 -0
  223. package/dist/slack-rest-mcp.js.map +1 -0
  224. package/dist/spreadsheet-artifact-commands.d.ts +2 -3
  225. package/dist/spreadsheet-artifact-commands.js +4 -2
  226. package/dist/spreadsheet-artifact-query.js +3 -2
  227. package/dist/subscription-account-pools.d.ts +292 -0
  228. package/dist/task-notes.d.ts +42 -1
  229. package/dist/tool-catalog.d.ts +286 -0
  230. package/dist/tool-result-spill.d.ts +16 -0
  231. package/dist/usage-allowances.d.ts +285 -0
  232. package/dist/usage-allowances.js +49 -0
  233. package/dist/usage-allowances.js.map +1 -0
  234. package/dist/video-generation.d.ts +3 -0
  235. package/dist/video-generation.js +1 -1
  236. package/dist/work-claims.d.ts +411 -0
  237. package/dist/workspace-instruction-policies.d.ts +94 -0
  238. package/dist/workspace-integration-wire.d.ts +36 -0
  239. package/dist/workspace-integration-wire.js +23 -0
  240. package/dist/workspace-integration-wire.js.map +1 -0
  241. package/dist/workspace-integrations.d.ts +948 -0
  242. package/dist/workspace-learning-administration.d.ts +289 -0
  243. package/dist/workspace-learning-policy.d.ts +1 -1
  244. package/dist/workspace-state.d.ts +85 -416
  245. package/dist/xai-provider-account-authority.d.ts +3 -0
  246. package/dist/xai-provider-account-authority.js +1 -1
  247. package/package.json +134 -1
  248. package/src/agent-authored-durable-text.ts +116 -0
  249. package/src/agent-config.ts +1527 -0
  250. package/src/agent-instruction-changes.ts +98 -0
  251. package/src/agent-learning.ts +161 -0
  252. package/src/agent-topology.ts +69 -0
  253. package/src/allowance-refusal.ts +81 -0
  254. package/src/analytics-consent-report.ts +20 -0
  255. package/src/api-key-presets.ts +25 -0
  256. package/src/artifact-catalog.ts +60 -0
  257. package/src/artifacts.ts +146 -18
  258. package/src/atlassian-native-retirement.ts +33 -0
  259. package/src/browser-storage.ts +10 -0
  260. package/src/bundled-skills.ts +73 -0
  261. package/src/claude-provider-account-authority.ts +12 -0
  262. package/src/claude-subscription-oauth.ts +62 -0
  263. package/src/claude-subscription-usage.ts +59 -0
  264. package/src/client-error-report.ts +184 -0
  265. package/src/code-search.ts +105 -0
  266. package/src/company-brain-governed-writes.ts +356 -0
  267. package/src/company-brain.ts +201 -0
  268. package/src/company-profile.ts +167 -1
  269. package/src/connect.ts +202 -0
  270. package/src/connection-account-label.ts +46 -0
  271. package/src/connection-authority.ts +213 -0
  272. package/src/connector-attachments.ts +327 -0
  273. package/src/connector-tool-permissions.ts +60 -0
  274. package/src/direct-model-provider.ts +98 -0
  275. package/src/editable-artifact-codec-registry.ts +55 -17
  276. package/src/editable-artifact-committed-transaction.ts +44 -31
  277. package/src/editable-artifact-live.ts +123 -57
  278. package/src/editable-artifact-serialized-commit.ts +2 -1
  279. package/src/editable-artifact-versions.ts +26 -5
  280. package/src/editable-artifacts.ts +2 -0
  281. package/src/external-identities.ts +285 -0
  282. package/src/feedback.ts +39 -0
  283. package/src/github-repository-contracts.ts +85 -0
  284. package/src/github-repository.ts +59 -0
  285. package/src/google-drive.ts +76 -4
  286. package/src/governed-learning-activation.ts +191 -0
  287. package/src/governed-learning-evaluator.ts +176 -0
  288. package/src/host-mcp-bindings.ts +298 -0
  289. package/src/image-generation.ts +8 -2
  290. package/src/index.ts +7093 -1466
  291. package/src/insights-usage.ts +679 -0
  292. package/src/interaction.ts +220 -5
  293. package/src/knowledge-entries.ts +375 -0
  294. package/src/knowledge-preparation.ts +50 -0
  295. package/src/knowledge.ts +134 -6
  296. package/src/managed-auth-session-sets.ts +253 -0
  297. package/src/managed-sign-in-methods.ts +37 -0
  298. package/src/mcp-catalog-limits.ts +2 -0
  299. package/src/mcp-endpoint.ts +30 -0
  300. package/src/mcp-oauth.ts +66 -0
  301. package/src/modal-native-proof-v2.ts +398 -0
  302. package/src/model-availability.ts +22 -0
  303. package/src/model-connection-access.ts +17 -0
  304. package/src/model-context-inspector.ts +139 -0
  305. package/src/model-display.ts +195 -0
  306. package/src/model-picker-order.ts +97 -0
  307. package/src/organization-access.ts +176 -0
  308. package/src/organization-integration-policy.ts +54 -0
  309. package/src/organization-membership-lifecycle.ts +559 -0
  310. package/src/organization-model-usage.ts +72 -0
  311. package/src/organization-recovery.ts +186 -0
  312. package/src/organization-usage.ts +79 -0
  313. package/src/permissions.ts +58 -0
  314. package/src/personal-github.ts +267 -0
  315. package/src/plugin-discovery.ts +33 -0
  316. package/src/preference-registry.ts +20 -1
  317. package/src/product-analytics.ts +253 -0
  318. package/src/product-lifecycle-facts.ts +121 -0
  319. package/src/remember.ts +243 -0
  320. package/src/retained-output.ts +20 -3
  321. package/src/sandbox-file-artifacts.ts +73 -0
  322. package/src/sandbox-provider-command.ts +82 -0
  323. package/src/sandbox-recovery.ts +116 -0
  324. package/src/sandbox-snapshots.ts +142 -0
  325. package/src/session-final-reply.ts +16 -0
  326. package/src/session-goal-reports.ts +55 -0
  327. package/src/session-history-import.ts +159 -0
  328. package/src/session-list-entries.ts +91 -0
  329. package/src/session-mcp-projections.ts +273 -0
  330. package/src/session-message-search.ts +54 -0
  331. package/src/session-titles.ts +467 -0
  332. package/src/session-topology-primitives.ts +21 -0
  333. package/src/signup-attribution.ts +81 -0
  334. package/src/site-request-headers.test.ts +28 -0
  335. package/src/site-session-http.ts +63 -0
  336. package/src/skill-catalog-context.ts +50 -0
  337. package/src/skill-files.ts +52 -0
  338. package/src/skill-metadata.ts +40 -0
  339. package/src/skill-use.ts +77 -0
  340. package/src/skills.ts +136 -0
  341. package/src/slack-bot-scopes.ts +106 -42
  342. package/src/slack-rest-mcp.ts +194 -0
  343. package/src/spreadsheet-artifact-commands.ts +12 -13
  344. package/src/subscription-account-pools.ts +44 -0
  345. package/src/task-notes.ts +14 -1
  346. package/src/tool-catalog.ts +155 -0
  347. package/src/tool-result-spill.ts +35 -0
  348. package/src/usage-allowances.ts +187 -0
  349. package/src/work-claims.ts +266 -0
  350. package/src/workspace-instruction-policies.ts +31 -0
  351. package/src/workspace-integration-wire.ts +99 -0
  352. package/src/workspace-integrations.ts +640 -0
  353. package/src/workspace-learning-administration.ts +88 -0
  354. package/src/workspace-learning-policy.ts +4 -3
  355. package/src/workspace-state.ts +16 -126
  356. package/src/xai-provider-account-authority.ts +1 -0
  357. package/dist/chunk-5UDNP7AO.js.map +0 -1
  358. package/dist/chunk-BVGIYW7D.js +0 -11
  359. package/dist/chunk-BVGIYW7D.js.map +0 -1
  360. package/dist/chunk-CM6BMECR.js.map +0 -1
  361. package/dist/chunk-JBCIY7QD.js.map +0 -1
  362. package/dist/chunk-LSB7GRLG.js.map +0 -1
  363. package/dist/chunk-LW7OH6CS.js.map +0 -1
  364. package/dist/chunk-M5ZGRVIQ.js.map +0 -1
  365. package/dist/chunk-Q6A7XT2N.js +0 -16734
  366. package/dist/chunk-Q6A7XT2N.js.map +0 -1
  367. package/dist/chunk-TZ6YEYN4.js.map +0 -1
  368. package/dist/chunk-Y3MLSLB4.js.map +0 -1
  369. /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Content-free per-person product lifecycle facts.
3
+ *
4
+ * Migration `0532_product_lifecycle_fact_export.sql` captures one fact per
5
+ * product change with row triggers and writes it to the durable host export as
6
+ * the `lifecycle_fact` kind; `0565_usage_analytics_presence_and_facts.sql` adds
7
+ * `user.active`, `credits.granted` and `connection.revoked`. Every value is drawn from a fixed list; the
8
+ * database function `opengeni_private.product_lifecycle_fact_valid` enforces
9
+ * the same lists and a test keeps the two copies identical.
10
+ */
11
+ /**
12
+ * Closed class of a positive credit grant (`grant` or `manual_credit_grant`
13
+ * ledger row). `opengeni_private.credit_grant_class` mirrors this mapping:
14
+ * - `signup_trial`: the one-time verified-signup trial (source `verified_signup_trial`).
15
+ * - `coupon`: a fully discounted Stripe checkout (source `stripe_checkout_coupon`).
16
+ * - `manual`: an operator grant (`manual_credit_grant` or source `operator_adjustment`).
17
+ * - `other`: any other grant source.
18
+ */
19
+ export declare const CREDIT_GRANT_CLASSES: readonly ["signup_trial", "coupon", "manual", "other"];
20
+ export type CreditGrantClass = (typeof CREDIT_GRANT_CLASSES)[number];
21
+ /** Each fact type and the fixed values its `attribute` may carry. */
22
+ export declare const PRODUCT_LIFECYCLE_FACT_ATTRIBUTES: {
23
+ /** A managed account was created. Attribute: first sign-in method. */
24
+ readonly "auth.sign_up": readonly ["email", "google", "github", "other"];
25
+ /**
26
+ * The account email became verified: by the verification link, or at
27
+ * creation when a social provider already verified it.
28
+ */
29
+ readonly "auth.email_verified": readonly [];
30
+ /** A live sign-in session was created. Attribute: method of that session. */
31
+ readonly "auth.sign_in": readonly ["email", "google", "github", "other"];
32
+ /** An organization was created by self-service setup or as an additional one. */
33
+ readonly "organization.setup": readonly ["created", "additional"];
34
+ /** A model subscription or organization model provider was connected. */
35
+ readonly "model.connected": readonly ["codex", "supergrok", "vercel_gateway", "openrouter", "anthropic", "claude_subscription"];
36
+ /** A credit top-up payment was granted. */
37
+ readonly "credits.purchased": readonly [];
38
+ /** Credits were granted without a purchase. Attribute: grant class. */
39
+ readonly "credits.granted": readonly ["signup_trial", "coupon", "manual", "other"];
40
+ /** An integration connection was created. Attribute: provider class. */
41
+ readonly "connection.created": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
42
+ /**
43
+ * An integration connection was revoked, or deleted while still live.
44
+ * Attribute: provider class, the same list as `connection.created`.
45
+ */
46
+ readonly "connection.revoked": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
47
+ readonly "scheduled_task.created": readonly [];
48
+ /** A catalog Skill was installed into a workspace. */
49
+ readonly "skill.installed": readonly [];
50
+ /** A Slack user was linked to an OpenGeni user. */
51
+ readonly "slack.user_linked": readonly [];
52
+ /** A new Connected Machine was enrolled. */
53
+ readonly "machine.enrolled": readonly [];
54
+ /** A person became an active member of an organization that already had one. */
55
+ readonly "member.joined": readonly [];
56
+ /**
57
+ * A managed person was active in an authenticated browser session on a new
58
+ * UTC day: at most one fact per person per UTC day, with no organization.
59
+ */
60
+ readonly "user.active": readonly [];
61
+ };
62
+ export type ProductLifecycleFactType = keyof typeof PRODUCT_LIFECYCLE_FACT_ATTRIBUTES;
63
+ export declare const PRODUCT_LIFECYCLE_FACT_TYPES: ProductLifecycleFactType[];
64
+ /**
65
+ * What kind of subject caused the fact. Only `user` and `api_key` facts carry
66
+ * their opaque subject id; every other subject string is reduced to its kind
67
+ * because embedded hosts may put their own identifiers in it.
68
+ */
69
+ export declare const PRODUCT_LIFECYCLE_SUBJECT_KINDS: readonly ["user", "api_key", "service", "other", "none"];
70
+ export type ProductLifecycleSubjectKind = (typeof PRODUCT_LIFECYCLE_SUBJECT_KINDS)[number];
71
+ /** Pseudonymous subject ids that may leave the database. */
72
+ export declare const PRODUCT_LIFECYCLE_SUBJECT_ID_PATTERN: RegExp;
73
+ export declare function isProductLifecycleFact(type: string, attribute: string | null): boolean;
@@ -0,0 +1,350 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Explicit user-directed durable write ("remember X for this workspace").
4
+ *
5
+ * The lane is the Agent Knowledge area the content belongs to:
6
+ * - `preference`: a Ways-of-working preference (how agents should act);
7
+ * - `instruction_policy`: a mandatory workspace rule ("always"/"never");
8
+ * - `knowledge`: a company/product/people fact.
9
+ *
10
+ * v1 supports the workspace scope only. Personal and organization scopes are
11
+ * separate authorities that are not yet active for governed writes.
12
+ */
13
+ export declare const RememberLane: z.ZodEnum<{
14
+ instruction_policy: "instruction_policy";
15
+ knowledge: "knowledge";
16
+ preference: "preference";
17
+ }>;
18
+ export type RememberLane = z.infer<typeof RememberLane>;
19
+ export declare const RememberScope: z.ZodEnum<{
20
+ workspace: "workspace";
21
+ }>;
22
+ export type RememberScope = z.infer<typeof RememberScope>;
23
+ /**
24
+ * Ceiling for the Knowledge lane, which is retrieval evidence rather than
25
+ * always-composed prompt text. Other lanes have their own destination bounds:
26
+ * see `AGENT_AUTHORED_INSTRUCTION_POLICY_CONTENT_MAX_CHARS` and
27
+ * `AGENT_AUTHORED_PREFERENCE_CONTENT_MAX_CHARS`.
28
+ */
29
+ export declare const REMEMBER_CONTENT_MAX_CHARS = 4000;
30
+ export declare const RememberRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
+ operationId: z.ZodString;
32
+ scope: z.ZodDefault<z.ZodEnum<{
33
+ workspace: "workspace";
34
+ }>>;
35
+ reason: z.ZodString;
36
+ lane: z.ZodLiteral<"preference">;
37
+ content: z.ZodString;
38
+ stableKey: z.ZodString;
39
+ title: z.ZodString;
40
+ description: z.ZodString;
41
+ }, z.core.$strict>, z.ZodObject<{
42
+ operationId: z.ZodString;
43
+ scope: z.ZodDefault<z.ZodEnum<{
44
+ workspace: "workspace";
45
+ }>>;
46
+ reason: z.ZodString;
47
+ lane: z.ZodLiteral<"instruction_policy">;
48
+ content: z.ZodString;
49
+ target: z.ZodDefault<z.ZodObject<{
50
+ kind: z.ZodEnum<{
51
+ charter: "charter";
52
+ policy: "policy";
53
+ }>;
54
+ scope: z.ZodEnum<{
55
+ global: "global";
56
+ role: "role";
57
+ }>;
58
+ roleKey: z.ZodNullable<z.ZodString>;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ operationId: z.ZodString;
62
+ scope: z.ZodDefault<z.ZodEnum<{
63
+ workspace: "workspace";
64
+ }>>;
65
+ content: z.ZodString;
66
+ reason: z.ZodString;
67
+ lane: z.ZodLiteral<"knowledge">;
68
+ subject: z.ZodString;
69
+ }, z.core.$strict>], "lane">;
70
+ export type RememberRequest = z.infer<typeof RememberRequest>;
71
+ /**
72
+ * Bound structured human-input question that authorizes a confirmed remember.
73
+ * The question id binds the exact confirmation target: the
74
+ * `knowledge_change_proposals` id for Ways-of-working lanes, or the
75
+ * `knowledge_claims` id for the Knowledge lane.
76
+ */
77
+ export declare const REMEMBER_HUMAN_INPUT_SAVE_OPTION: "save";
78
+ export declare const REMEMBER_HUMAN_INPUT_SKIP_OPTION: "skip";
79
+ export declare function rememberHumanInputQuestionId(targetId: string): string;
80
+ export declare const RememberHumanInputPrompt: z.ZodObject<{
81
+ questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
82
+ id: z.ZodString;
83
+ kind: z.ZodEnum<{
84
+ multi_select: "multi_select";
85
+ single_select: "single_select";
86
+ text: "text";
87
+ }>;
88
+ prompt: z.ZodString;
89
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
92
+ removalOperationId: z.ZodOptional<z.ZodUUID>;
93
+ sourceOperationId: z.ZodUUID;
94
+ skillId: z.ZodUUID;
95
+ revisionId: z.ZodUUID;
96
+ expectedRevisionId: z.ZodNullable<z.ZodUUID>;
97
+ expectedScopeVersion: z.ZodNumber;
98
+ }, z.core.$strip>>>;
99
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ label: z.ZodString;
102
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ }, z.core.$strip>>>;
104
+ required: z.ZodDefault<z.ZodBoolean>;
105
+ allowOther: z.ZodDefault<z.ZodBoolean>;
106
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
107
+ minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
108
+ maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
109
+ }, z.core.$strip>>>;
110
+ }, z.core.$strip>>>;
111
+ allowSkip: z.ZodLiteral<false>;
112
+ }, z.core.$strip>;
113
+ export type RememberHumanInputPrompt = z.infer<typeof RememberHumanInputPrompt>;
114
+ export declare const RememberActivationSummary: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ destination: z.ZodEnum<{
116
+ instruction_policy: "instruction_policy";
117
+ preference: "preference";
118
+ }>;
119
+ receiptId: z.ZodString;
120
+ destinationRevisionId: z.ZodNullable<z.ZodString>;
121
+ effectiveAt: z.ZodNullable<z.ZodString>;
122
+ authorityKind: z.ZodEnum<{
123
+ automatic: "automatic";
124
+ human_confirmed: "human_confirmed";
125
+ }>;
126
+ undo: z.ZodLiteral<"learning_history">;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ destination: z.ZodLiteral<"knowledge">;
129
+ receiptId: z.ZodString;
130
+ claimId: z.ZodString;
131
+ memoryId: z.ZodString;
132
+ approvalReviewId: z.ZodString;
133
+ effectiveAt: z.ZodNullable<z.ZodString>;
134
+ authorityKind: z.ZodLiteral<"human_confirmed">;
135
+ undo: z.ZodLiteral<"memory_management">;
136
+ }, z.core.$strip>], "destination">;
137
+ export type RememberActivationSummary = z.infer<typeof RememberActivationSummary>;
138
+ export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
139
+ status: z.ZodLiteral<"blocked">;
140
+ operationId: z.ZodString;
141
+ lane: z.ZodEnum<{
142
+ instruction_policy: "instruction_policy";
143
+ knowledge: "knowledge";
144
+ preference: "preference";
145
+ }>;
146
+ scope: z.ZodEnum<{
147
+ workspace: "workspace";
148
+ }>;
149
+ reason: z.ZodLiteral<"learning_policy_off">;
150
+ }, z.core.$strip>, z.ZodObject<{
151
+ status: z.ZodLiteral<"proposed_for_review">;
152
+ operationId: z.ZodString;
153
+ lane: z.ZodEnum<{
154
+ instruction_policy: "instruction_policy";
155
+ knowledge: "knowledge";
156
+ preference: "preference";
157
+ }>;
158
+ scope: z.ZodEnum<{
159
+ workspace: "workspace";
160
+ }>;
161
+ noteId: z.ZodString;
162
+ claimId: z.ZodString;
163
+ evidenceId: z.ZodString;
164
+ reviewId: z.ZodNullable<z.ZodString>;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ status: z.ZodLiteral<"activated">;
167
+ operationId: z.ZodString;
168
+ lane: z.ZodEnum<{
169
+ instruction_policy: "instruction_policy";
170
+ knowledge: "knowledge";
171
+ preference: "preference";
172
+ }>;
173
+ scope: z.ZodEnum<{
174
+ workspace: "workspace";
175
+ }>;
176
+ noteId: z.ZodString;
177
+ proposalId: z.ZodString;
178
+ learning: z.ZodNullable<z.ZodObject<{
179
+ receiptId: z.ZodString;
180
+ outcome: z.ZodEnum<{
181
+ automatic: "automatic";
182
+ confidence: "confidence";
183
+ conflict: "conflict";
184
+ off: "off";
185
+ revoked: "revoked";
186
+ stale: "stale";
187
+ suggest: "suggest";
188
+ }>;
189
+ automaticEligible: z.ZodBoolean;
190
+ reasons: z.ZodArray<z.ZodEnum<{
191
+ confidence_below_floor: "confidence_below_floor";
192
+ evidence_conflict: "evidence_conflict";
193
+ evidence_revoked: "evidence_revoked";
194
+ policy_automatic: "policy_automatic";
195
+ policy_off: "policy_off";
196
+ policy_suggest: "policy_suggest";
197
+ proposal_stale: "proposal_stale";
198
+ }>>;
199
+ }, z.core.$strip>>;
200
+ activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
201
+ destination: z.ZodEnum<{
202
+ instruction_policy: "instruction_policy";
203
+ preference: "preference";
204
+ }>;
205
+ receiptId: z.ZodString;
206
+ destinationRevisionId: z.ZodNullable<z.ZodString>;
207
+ effectiveAt: z.ZodNullable<z.ZodString>;
208
+ authorityKind: z.ZodEnum<{
209
+ automatic: "automatic";
210
+ human_confirmed: "human_confirmed";
211
+ }>;
212
+ undo: z.ZodLiteral<"learning_history">;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ destination: z.ZodLiteral<"knowledge">;
215
+ receiptId: z.ZodString;
216
+ claimId: z.ZodString;
217
+ memoryId: z.ZodString;
218
+ approvalReviewId: z.ZodString;
219
+ effectiveAt: z.ZodNullable<z.ZodString>;
220
+ authorityKind: z.ZodLiteral<"human_confirmed">;
221
+ undo: z.ZodLiteral<"memory_management">;
222
+ }, z.core.$strip>], "destination">;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ status: z.ZodLiteral<"confirmation_required">;
225
+ operationId: z.ZodString;
226
+ lane: z.ZodEnum<{
227
+ instruction_policy: "instruction_policy";
228
+ knowledge: "knowledge";
229
+ preference: "preference";
230
+ }>;
231
+ scope: z.ZodEnum<{
232
+ workspace: "workspace";
233
+ }>;
234
+ noteId: z.ZodString;
235
+ proposalId: z.ZodNullable<z.ZodString>;
236
+ claimId: z.ZodString;
237
+ learning: z.ZodNullable<z.ZodObject<{
238
+ receiptId: z.ZodString;
239
+ outcome: z.ZodEnum<{
240
+ automatic: "automatic";
241
+ confidence: "confidence";
242
+ conflict: "conflict";
243
+ off: "off";
244
+ revoked: "revoked";
245
+ stale: "stale";
246
+ suggest: "suggest";
247
+ }>;
248
+ automaticEligible: z.ZodBoolean;
249
+ reasons: z.ZodArray<z.ZodEnum<{
250
+ confidence_below_floor: "confidence_below_floor";
251
+ evidence_conflict: "evidence_conflict";
252
+ evidence_revoked: "evidence_revoked";
253
+ policy_automatic: "policy_automatic";
254
+ policy_off: "policy_off";
255
+ policy_suggest: "policy_suggest";
256
+ proposal_stale: "proposal_stale";
257
+ }>>;
258
+ }, z.core.$strip>>;
259
+ learningFailure: z.ZodNullable<z.ZodObject<{
260
+ stage: z.ZodEnum<{
261
+ activation: "activation";
262
+ evaluation: "evaluation";
263
+ }>;
264
+ code: z.ZodEnum<{
265
+ authority: "authority";
266
+ conflict: "conflict";
267
+ invalid_operation: "invalid_operation";
268
+ unavailable: "unavailable";
269
+ }>;
270
+ }, z.core.$strip>>;
271
+ humanInput: z.ZodObject<{
272
+ questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
273
+ id: z.ZodString;
274
+ kind: z.ZodEnum<{
275
+ multi_select: "multi_select";
276
+ single_select: "single_select";
277
+ text: "text";
278
+ }>;
279
+ prompt: z.ZodString;
280
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
283
+ removalOperationId: z.ZodOptional<z.ZodUUID>;
284
+ sourceOperationId: z.ZodUUID;
285
+ skillId: z.ZodUUID;
286
+ revisionId: z.ZodUUID;
287
+ expectedRevisionId: z.ZodNullable<z.ZodUUID>;
288
+ expectedScopeVersion: z.ZodNumber;
289
+ }, z.core.$strip>>>;
290
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
291
+ id: z.ZodString;
292
+ label: z.ZodString;
293
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ }, z.core.$strip>>>;
295
+ required: z.ZodDefault<z.ZodBoolean>;
296
+ allowOther: z.ZodDefault<z.ZodBoolean>;
297
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
298
+ minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
299
+ maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
300
+ }, z.core.$strip>>>;
301
+ }, z.core.$strip>>>;
302
+ allowSkip: z.ZodLiteral<false>;
303
+ }, z.core.$strip>;
304
+ confirmWith: z.ZodLiteral<"remember_confirm">;
305
+ }, z.core.$strip>], "status">;
306
+ export type RememberReceipt = z.infer<typeof RememberReceipt>;
307
+ export declare const RememberConfirmRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ target: z.ZodLiteral<"proposal">;
309
+ operationId: z.ZodString;
310
+ proposalId: z.ZodString;
311
+ decisionReceiptId: z.ZodString;
312
+ humanInputRequestId: z.ZodString;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ target: z.ZodLiteral<"knowledge_claim">;
315
+ operationId: z.ZodString;
316
+ claimId: z.ZodString;
317
+ humanInputRequestId: z.ZodString;
318
+ }, z.core.$strict>], "target">;
319
+ export type RememberConfirmRequest = z.infer<typeof RememberConfirmRequest>;
320
+ export declare const RememberConfirmReceipt: z.ZodObject<{
321
+ status: z.ZodLiteral<"activated">;
322
+ operationId: z.ZodString;
323
+ proposalId: z.ZodNullable<z.ZodString>;
324
+ claimId: z.ZodString;
325
+ decisionReceiptId: z.ZodNullable<z.ZodString>;
326
+ activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
+ destination: z.ZodEnum<{
328
+ instruction_policy: "instruction_policy";
329
+ preference: "preference";
330
+ }>;
331
+ receiptId: z.ZodString;
332
+ destinationRevisionId: z.ZodNullable<z.ZodString>;
333
+ effectiveAt: z.ZodNullable<z.ZodString>;
334
+ authorityKind: z.ZodEnum<{
335
+ automatic: "automatic";
336
+ human_confirmed: "human_confirmed";
337
+ }>;
338
+ undo: z.ZodLiteral<"learning_history">;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ destination: z.ZodLiteral<"knowledge">;
341
+ receiptId: z.ZodString;
342
+ claimId: z.ZodString;
343
+ memoryId: z.ZodString;
344
+ approvalReviewId: z.ZodString;
345
+ effectiveAt: z.ZodNullable<z.ZodString>;
346
+ authorityKind: z.ZodLiteral<"human_confirmed">;
347
+ undo: z.ZodLiteral<"memory_management">;
348
+ }, z.core.$strip>], "destination">;
349
+ }, z.core.$strip>;
350
+ export type RememberConfirmReceipt = z.infer<typeof RememberConfirmReceipt>;
@@ -19,6 +19,7 @@ export declare const GENERATED_IMAGE_MAX_BYTES: number;
19
19
  export declare const GENERATED_VIDEO_MAX_BYTES: number;
20
20
  export declare const RetainedOutputKind: z.ZodEnum<{
21
21
  assistant_completion: "assistant_completion";
22
+ browser_screenshot: "browser_screenshot";
22
23
  computer_screenshot: "computer_screenshot";
23
24
  event_media: "event_media";
24
25
  file: "file";
@@ -47,6 +48,7 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
47
48
  artifactId: z.ZodString;
48
49
  kind: z.ZodEnum<{
49
50
  assistant_completion: "assistant_completion";
51
+ browser_screenshot: "browser_screenshot";
50
52
  computer_screenshot: "computer_screenshot";
51
53
  event_media: "event_media";
52
54
  file: "file";
@@ -104,6 +106,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
104
106
  artifactId: z.ZodString;
105
107
  kind: z.ZodEnum<{
106
108
  assistant_completion: "assistant_completion";
109
+ browser_screenshot: "browser_screenshot";
107
110
  computer_screenshot: "computer_screenshot";
108
111
  event_media: "event_media";
109
112
  file: "file";
@@ -162,6 +165,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
162
165
  artifactId: z.ZodString;
163
166
  kind: z.ZodEnum<{
164
167
  assistant_completion: "assistant_completion";
168
+ browser_screenshot: "browser_screenshot";
165
169
  computer_screenshot: "computer_screenshot";
166
170
  event_media: "event_media";
167
171
  file: "file";
@@ -223,7 +227,11 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
223
227
  width: number;
224
228
  height: number;
225
229
  expiresAt: string;
230
+ kind?: "computer_screenshot" | "browser_screenshot";
226
231
  };
232
+ export type RetainedSessionScreenshotKind = "computer_screenshot" | "browser_screenshot";
233
+ /** The persisted, server-authored storage key distinguishes browser captures from legacy computer captures. */
234
+ export declare function retainedSessionScreenshotKindFromObjectKey(objectKey: string): RetainedSessionScreenshotKind | null;
227
235
  export type RetainedGeneratedImageArtifactInput = RetainedArtifactFileInput & {
228
236
  width: number;
229
237
  height: number;
@@ -0,0 +1,57 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Channel-A currently returns one bounded binary-safe read. Keep publication
4
+ * below that ceiling so an extra sentinel byte can distinguish an exact file
5
+ * from a truncated prefix.
6
+ */
7
+ export declare const SANDBOX_FILE_ARTIFACT_MAX_BYTES: number;
8
+ export declare const PublishSandboxFileArtifactRequest: z.ZodObject<{
9
+ path: z.ZodString;
10
+ }, z.core.$strict>;
11
+ export type PublishSandboxFileArtifactRequest = z.infer<typeof PublishSandboxFileArtifactRequest>;
12
+ /**
13
+ * Closed model/UI receipt for one exact sandbox-file publication. Storage
14
+ * locators and signed URLs never cross this boundary.
15
+ */
16
+ export declare const SandboxFileArtifactReceipt: z.ZodObject<{
17
+ type: z.ZodLiteral<"sandbox_file">;
18
+ sandboxPath: z.ZodString;
19
+ filename: z.ZodString;
20
+ artifact: z.ZodObject<{
21
+ available: z.ZodLiteral<true>;
22
+ artifactId: z.ZodString;
23
+ kind: z.ZodEnum<{
24
+ assistant_completion: "assistant_completion";
25
+ browser_screenshot: "browser_screenshot";
26
+ computer_screenshot: "computer_screenshot";
27
+ event_media: "event_media";
28
+ file: "file";
29
+ generated_image: "generated_image";
30
+ generated_video: "generated_video";
31
+ internal_update: "internal_update";
32
+ tool_result: "tool_result";
33
+ }>;
34
+ contentType: z.ZodString;
35
+ originalBytes: z.ZodNumber;
36
+ sha256: z.ZodString;
37
+ retainedAt: z.ZodString;
38
+ dimensions: z.ZodOptional<z.ZodObject<{
39
+ width: z.ZodNumber;
40
+ height: z.ZodNumber;
41
+ }, z.core.$strict>>;
42
+ retention: z.ZodUnion<readonly [z.ZodObject<{
43
+ policy: z.ZodLiteral<"workspace_file">;
44
+ expiresAt: z.ZodNull;
45
+ }, z.core.$strict>, z.ZodObject<{
46
+ policy: z.ZodLiteral<"session_screenshot">;
47
+ expiresAt: z.ZodString;
48
+ }, z.core.$strict>]>;
49
+ retrieval: z.ZodObject<{
50
+ method: z.ZodLiteral<"GET">;
51
+ path: z.ZodString;
52
+ acceptRanges: z.ZodLiteral<"bytes">;
53
+ maxRangeBytes: z.ZodNumber;
54
+ }, z.core.$strict>;
55
+ }, z.core.$strict>;
56
+ }, z.core.$strict>;
57
+ export type SandboxFileArtifactReceipt = z.infer<typeof SandboxFileArtifactReceipt>;
@@ -0,0 +1,113 @@
1
+ import { z } from "zod";
2
+ /** Provider-owned execution identity and acknowledged output cursors. These
3
+ * values are retained by the control plane, never recovered from sandbox files. */
4
+ export declare const ModalLegacyProviderCommand: z.ZodObject<{
5
+ kind: z.ZodLiteral<"modal-control-v1">;
6
+ sandboxId: z.ZodString;
7
+ taskId: z.ZodString;
8
+ execId: z.ZodString;
9
+ pty: z.ZodOptional<z.ZodBoolean>;
10
+ streams: z.ZodObject<{
11
+ stdout: z.ZodObject<{
12
+ batchIndex: z.ZodNumber;
13
+ utf8Remainder: z.ZodString;
14
+ exitCode: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$strict>;
16
+ stderr: z.ZodObject<{
17
+ batchIndex: z.ZodNumber;
18
+ utf8Remainder: z.ZodString;
19
+ exitCode: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$strict>;
21
+ }, z.core.$strict>;
22
+ }, z.core.$strict>;
23
+ export type ModalLegacyProviderCommand = z.infer<typeof ModalLegacyProviderCommand>;
24
+ export declare const CommandSupervisionDescriptor: z.ZodObject<{
25
+ protocol: z.ZodLiteral<"native-subreaper-v1">;
26
+ invocationId: z.ZodString;
27
+ nonce: z.ZodString;
28
+ controlPath: z.ZodString;
29
+ }, z.core.$strict>;
30
+ export type CommandSupervisionDescriptor = z.infer<typeof CommandSupervisionDescriptor>;
31
+ export declare const CommandSupervisionReceipt: z.ZodObject<{
32
+ protocol: z.ZodLiteral<"native-subreaper-v1">;
33
+ invocationId: z.ZodString;
34
+ receiptId: z.ZodString;
35
+ leaderExitCode: z.ZodNumber;
36
+ }, z.core.$strict>;
37
+ export type CommandSupervisionReceipt = z.infer<typeof CommandSupervisionReceipt>;
38
+ export declare const ModalRouterProviderCommand: z.ZodObject<{
39
+ kind: z.ZodLiteral<"modal-router-v1">;
40
+ sandboxId: z.ZodString;
41
+ taskId: z.ZodString;
42
+ execId: z.ZodString;
43
+ pty: z.ZodOptional<z.ZodBoolean>;
44
+ supervision: z.ZodOptional<z.ZodObject<{
45
+ protocol: z.ZodLiteral<"native-subreaper-v1">;
46
+ invocationId: z.ZodString;
47
+ nonce: z.ZodString;
48
+ controlPath: z.ZodString;
49
+ }, z.core.$strict>>;
50
+ streams: z.ZodObject<{
51
+ stdout: z.ZodObject<{
52
+ byteOffset: z.ZodNumber;
53
+ utf8Remainder: z.ZodString;
54
+ eof: z.ZodBoolean;
55
+ exitCode: z.ZodNullable<z.ZodNumber>;
56
+ }, z.core.$strict>;
57
+ stderr: z.ZodObject<{
58
+ byteOffset: z.ZodNumber;
59
+ utf8Remainder: z.ZodString;
60
+ eof: z.ZodBoolean;
61
+ exitCode: z.ZodNullable<z.ZodNumber>;
62
+ }, z.core.$strict>;
63
+ }, z.core.$strict>;
64
+ }, z.core.$strict>;
65
+ export type ModalRouterProviderCommand = z.infer<typeof ModalRouterProviderCommand>;
66
+ /** Legacy locators are read-only compatibility for already launched commands;
67
+ * new starts use authenticated task-router byte offsets, never batch indices. */
68
+ export declare const SandboxProviderCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
69
+ kind: z.ZodLiteral<"modal-control-v1">;
70
+ sandboxId: z.ZodString;
71
+ taskId: z.ZodString;
72
+ execId: z.ZodString;
73
+ pty: z.ZodOptional<z.ZodBoolean>;
74
+ streams: z.ZodObject<{
75
+ stdout: z.ZodObject<{
76
+ batchIndex: z.ZodNumber;
77
+ utf8Remainder: z.ZodString;
78
+ exitCode: z.ZodNullable<z.ZodNumber>;
79
+ }, z.core.$strict>;
80
+ stderr: z.ZodObject<{
81
+ batchIndex: z.ZodNumber;
82
+ utf8Remainder: z.ZodString;
83
+ exitCode: z.ZodNullable<z.ZodNumber>;
84
+ }, z.core.$strict>;
85
+ }, z.core.$strict>;
86
+ }, z.core.$strict>, z.ZodObject<{
87
+ kind: z.ZodLiteral<"modal-router-v1">;
88
+ sandboxId: z.ZodString;
89
+ taskId: z.ZodString;
90
+ execId: z.ZodString;
91
+ pty: z.ZodOptional<z.ZodBoolean>;
92
+ supervision: z.ZodOptional<z.ZodObject<{
93
+ protocol: z.ZodLiteral<"native-subreaper-v1">;
94
+ invocationId: z.ZodString;
95
+ nonce: z.ZodString;
96
+ controlPath: z.ZodString;
97
+ }, z.core.$strict>>;
98
+ streams: z.ZodObject<{
99
+ stdout: z.ZodObject<{
100
+ byteOffset: z.ZodNumber;
101
+ utf8Remainder: z.ZodString;
102
+ eof: z.ZodBoolean;
103
+ exitCode: z.ZodNullable<z.ZodNumber>;
104
+ }, z.core.$strict>;
105
+ stderr: z.ZodObject<{
106
+ byteOffset: z.ZodNumber;
107
+ utf8Remainder: z.ZodString;
108
+ eof: z.ZodBoolean;
109
+ exitCode: z.ZodNullable<z.ZodNumber>;
110
+ }, z.core.$strict>;
111
+ }, z.core.$strict>;
112
+ }, z.core.$strict>], "kind">;
113
+ export type SandboxProviderCommand = z.infer<typeof SandboxProviderCommand>;