@opengeni/contracts 5.5.0 → 5.5.2-canary.40656248492001

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 (543) hide show
  1. package/dist/agent-authored-durable-text.d.ts +9 -9
  2. package/dist/agent-config.d.ts +148 -37
  3. package/dist/api-key-presets.d.ts +19 -0
  4. package/dist/app-action-catalog-types.d.ts +32 -0
  5. package/dist/app-action-catalog.gen.d.ts +2 -0
  6. package/dist/app-actions.d.ts +91 -0
  7. package/dist/app-actions.js +10130 -0
  8. package/dist/app-actions.js.map +1 -0
  9. package/dist/app-shot.d.ts +55 -0
  10. package/dist/artifact-catalog.d.ts +33 -0
  11. package/dist/artifacts.d.ts +166 -0
  12. package/dist/atlassian-native-retirement.d.ts +16 -0
  13. package/dist/atlassian-native-retirement.js +30 -0
  14. package/dist/atlassian-native-retirement.js.map +1 -0
  15. package/dist/atlassian.js +48 -23
  16. package/dist/automation-templates.d.ts +434 -0
  17. package/dist/automation-templates.js +31 -0
  18. package/dist/automation-templates.js.map +1 -0
  19. package/dist/billing-subscriptions.d.ts +61 -0
  20. package/dist/bots.d.ts +583 -0
  21. package/dist/bundled-skills.d.ts +58 -2
  22. package/dist/canonical-human-identities.js +3 -1
  23. package/dist/child-lifecycle-notice-protocol.d.ts +45 -0
  24. package/dist/chunk-2QKIEAGY.js +396 -0
  25. package/dist/chunk-2QKIEAGY.js.map +1 -0
  26. package/dist/chunk-2WOWEWXV.js +426 -0
  27. package/dist/chunk-2WOWEWXV.js.map +1 -0
  28. package/dist/chunk-2ZIHHL72.js +153 -0
  29. package/dist/chunk-2ZIHHL72.js.map +1 -0
  30. package/dist/chunk-32U6NKQQ.js +389 -0
  31. package/dist/chunk-32U6NKQQ.js.map +1 -0
  32. package/dist/chunk-4YDDHSO2.js +799 -0
  33. package/dist/chunk-4YDDHSO2.js.map +1 -0
  34. package/dist/chunk-56SNIMDO.js +9 -0
  35. package/dist/chunk-56SNIMDO.js.map +1 -0
  36. package/dist/chunk-5RWB6QVL.js +101 -0
  37. package/dist/chunk-5RWB6QVL.js.map +1 -0
  38. package/dist/chunk-5UGUOT3L.js +243 -0
  39. package/dist/chunk-5UGUOT3L.js.map +1 -0
  40. package/dist/chunk-6LAT33BH.js +130 -0
  41. package/dist/chunk-6LAT33BH.js.map +1 -0
  42. package/dist/chunk-7272KVWZ.js +60 -0
  43. package/dist/chunk-7272KVWZ.js.map +1 -0
  44. package/dist/chunk-72QC2GTL.js +36 -0
  45. package/dist/chunk-72QC2GTL.js.map +1 -0
  46. package/dist/chunk-7EQGGZBY.js +105 -0
  47. package/dist/chunk-7EQGGZBY.js.map +1 -0
  48. package/dist/chunk-A3LXWVYU.js +382 -0
  49. package/dist/chunk-A3LXWVYU.js.map +1 -0
  50. package/dist/chunk-AQYDZUJV.js +34 -0
  51. package/dist/chunk-AQYDZUJV.js.map +1 -0
  52. package/dist/chunk-BHCEVVUP.js +93 -0
  53. package/dist/chunk-BHCEVVUP.js.map +1 -0
  54. package/dist/chunk-BMUTAZX5.js +486 -0
  55. package/dist/chunk-BMUTAZX5.js.map +1 -0
  56. package/dist/chunk-DGG6IBBK.js +150 -0
  57. package/dist/chunk-DGG6IBBK.js.map +1 -0
  58. package/dist/{chunk-YBW5JSA3.js → chunk-FBCTUMHI.js} +123 -102
  59. package/dist/chunk-FBCTUMHI.js.map +1 -0
  60. package/dist/chunk-G2KJTFIC.js +97 -0
  61. package/dist/chunk-G2KJTFIC.js.map +1 -0
  62. package/dist/chunk-G4RKARXZ.js +1167 -0
  63. package/dist/chunk-G4RKARXZ.js.map +1 -0
  64. package/dist/chunk-H6UJJIUM.js +350 -0
  65. package/dist/chunk-H6UJJIUM.js.map +1 -0
  66. package/dist/chunk-JOTHDW4H.js +18 -0
  67. package/dist/chunk-JOTHDW4H.js.map +1 -0
  68. package/dist/chunk-L4GUEP7K.js +56480 -0
  69. package/dist/chunk-L4GUEP7K.js.map +1 -0
  70. package/dist/{chunk-SIOU2K4U.js → chunk-LJH2EYGT.js} +23 -23
  71. package/dist/chunk-MTJKSIGA.js +161 -0
  72. package/dist/chunk-MTJKSIGA.js.map +1 -0
  73. package/dist/chunk-MYHMB6GZ.js +202 -0
  74. package/dist/chunk-MYHMB6GZ.js.map +1 -0
  75. package/dist/chunk-PI5VIKJY.js +660 -0
  76. package/dist/chunk-PI5VIKJY.js.map +1 -0
  77. package/dist/{chunk-RIY7GYQS.js → chunk-PTSROVDG.js} +2 -2
  78. package/dist/chunk-PUIUXIOL.js +189 -0
  79. package/dist/chunk-PUIUXIOL.js.map +1 -0
  80. package/dist/chunk-R6VXJIMB.js +19 -0
  81. package/dist/chunk-R6VXJIMB.js.map +1 -0
  82. package/dist/chunk-RLJUNVAM.js +15 -0
  83. package/dist/chunk-RLJUNVAM.js.map +1 -0
  84. package/dist/chunk-RR6APCBK.js +213 -0
  85. package/dist/chunk-RR6APCBK.js.map +1 -0
  86. package/dist/{chunk-TXTQIYCV.js → chunk-RUQ4I6DO.js} +59 -13
  87. package/dist/chunk-RUQ4I6DO.js.map +1 -0
  88. package/dist/{chunk-WYBDERIY.js → chunk-RWEEUDHD.js} +53 -42
  89. package/dist/chunk-RWEEUDHD.js.map +1 -0
  90. package/dist/chunk-S7MSQQL6.js +158 -0
  91. package/dist/chunk-S7MSQQL6.js.map +1 -0
  92. package/dist/{chunk-5Q54VCCH.js → chunk-SHO4YO4B.js} +20 -36
  93. package/dist/chunk-SHO4YO4B.js.map +1 -0
  94. package/dist/{chunk-HHZSZYYF.js → chunk-T3HSWMA5.js} +20 -4
  95. package/dist/chunk-T3HSWMA5.js.map +1 -0
  96. package/dist/{chunk-YRKRZ6OF.js → chunk-TOOJIBJC.js} +2 -2
  97. package/dist/chunk-UCUOTRS6.js +431 -0
  98. package/dist/chunk-UCUOTRS6.js.map +1 -0
  99. package/dist/chunk-UH4K7GP7.js +424 -0
  100. package/dist/chunk-UH4K7GP7.js.map +1 -0
  101. package/dist/chunk-UIZWGPHV.js +120 -0
  102. package/dist/chunk-UIZWGPHV.js.map +1 -0
  103. package/dist/chunk-VLUKBV6Y.js +1170 -0
  104. package/dist/chunk-VLUKBV6Y.js.map +1 -0
  105. package/dist/chunk-W2QQ5Y6K.js +55 -0
  106. package/dist/chunk-W2QQ5Y6K.js.map +1 -0
  107. package/dist/{chunk-Y3KNXVTD.js → chunk-W3NBPR4E.js} +131 -31
  108. package/dist/chunk-W3NBPR4E.js.map +1 -0
  109. package/dist/{chunk-NRMCVHAU.js → chunk-WMGO4HJU.js} +11 -9
  110. package/dist/chunk-WMGO4HJU.js.map +1 -0
  111. package/dist/{chunk-MYBZRDTY.js → chunk-WQI7VNN4.js} +19 -9
  112. package/dist/chunk-WQI7VNN4.js.map +1 -0
  113. package/dist/{chunk-PX3VCKAU.js → chunk-WVCFSOUZ.js} +1 -1
  114. package/dist/{chunk-PX3VCKAU.js.map → chunk-WVCFSOUZ.js.map} +1 -1
  115. package/dist/chunk-XB6GQLBH.js +76 -0
  116. package/dist/chunk-XB6GQLBH.js.map +1 -0
  117. package/dist/{chunk-D2HKF2EF.js → chunk-XP5M3IKT.js} +2 -2
  118. package/dist/{chunk-O77VSFYZ.js → chunk-ZMPU5BWE.js} +12 -2
  119. package/dist/chunk-ZMPU5BWE.js.map +1 -0
  120. package/dist/{chunk-3SIZGL3O.js → chunk-ZYVEJFNU.js} +22 -18
  121. package/dist/chunk-ZYVEJFNU.js.map +1 -0
  122. package/dist/claude-provider-account-authority.d.ts +18 -0
  123. package/dist/claude-subscription-oauth.d.ts +25 -0
  124. package/dist/claude-subscription-usage.d.ts +95 -1
  125. package/dist/client-error-report.d.ts +154 -8
  126. package/dist/client-error-report.js +157 -2
  127. package/dist/client-error-report.js.map +1 -1
  128. package/dist/code-search.d.ts +1 -1
  129. package/dist/code-search.js.map +1 -1
  130. package/dist/codex-provider-account-authority.js +23 -12
  131. package/dist/codex-provider-account-authority.js.map +1 -1
  132. package/dist/company-profile.d.ts +144 -0
  133. package/dist/connect.d.ts +38 -0
  134. package/dist/connect.js +244 -164
  135. package/dist/connect.js.map +1 -1
  136. package/dist/connection-account-label.d.ts +2 -0
  137. package/dist/connection-account-label.js +34 -0
  138. package/dist/connection-account-label.js.map +1 -0
  139. package/dist/connection-authority.js +49 -24
  140. package/dist/connector-attachments.js +3 -1
  141. package/dist/connector-destinations.js +3 -1
  142. package/dist/connector-tool-permissions.d.ts +68 -4
  143. package/dist/credential-profiles.d.ts +166 -0
  144. package/dist/cua-desktop-tools.d.ts +19 -0
  145. package/dist/define-schema.d.ts +8 -0
  146. package/dist/desktop-app.d.ts +28 -0
  147. package/dist/direct-model-provider.d.ts +38 -0
  148. package/dist/document-artifact-commands.js +2 -2
  149. package/dist/document-artifact-query.js +2 -2
  150. package/dist/editable-artifact-binary.d.ts +7 -0
  151. package/dist/editable-artifact-causal-frontier.js +2 -2
  152. package/dist/editable-artifact-codec-registry.js +7 -7
  153. package/dist/editable-artifact-committed-transaction.js +4 -2
  154. package/dist/editable-artifact-live.js +8 -8
  155. package/dist/editable-artifact-serialized-commit.js +9 -9
  156. package/dist/editable-artifact-versions.d.ts +7 -1
  157. package/dist/editable-artifact-versions.js +1 -1
  158. package/dist/editable-artifacts.js +49 -43
  159. package/dist/event-preview.d.ts +22 -0
  160. package/dist/event-triggers.d.ts +1253 -0
  161. package/dist/event-triggers.js +148 -0
  162. package/dist/event-triggers.js.map +1 -0
  163. package/dist/external-identities.d.ts +34 -0
  164. package/dist/external-identities.js +4 -2
  165. package/dist/feedback.d.ts +181 -0
  166. package/dist/file-access.d.ts +23 -0
  167. package/dist/first-party-tool-authorization.d.ts +852 -0
  168. package/dist/github-repository-contracts.js +64 -43
  169. package/dist/github-repository-contracts.js.map +1 -1
  170. package/dist/google-drive-native-retirement.d.ts +12 -0
  171. package/dist/google-drive-native-retirement.js +20 -0
  172. package/dist/google-drive-native-retirement.js.map +1 -0
  173. package/dist/google-drive.d.ts +1 -1
  174. package/dist/google-drive.js +323 -239
  175. package/dist/google-drive.js.map +1 -1
  176. package/dist/host-mcp-bindings.js +250 -198
  177. package/dist/host-mcp-bindings.js.map +1 -1
  178. package/dist/index.d.ts +29072 -20593
  179. package/dist/index.js +2432 -366
  180. package/dist/inference-residency.d.ts +22 -0
  181. package/dist/insights-usage.d.ts +948 -0
  182. package/dist/insights-usage.js +608 -0
  183. package/dist/insights-usage.js.map +1 -0
  184. package/dist/integration-capability-id.d.ts +8 -0
  185. package/dist/interaction-action-deadline.d.ts +48 -0
  186. package/dist/interaction-driver-diagnostic.d.ts +28 -0
  187. package/dist/interaction.d.ts +2126 -881
  188. package/dist/knowledge-entries.d.ts +38 -0
  189. package/dist/knowledge-preparation.d.ts +4 -0
  190. package/dist/learning-refusal.d.ts +43 -0
  191. package/dist/learning-refusal.js +49 -0
  192. package/dist/learning-refusal.js.map +1 -0
  193. package/dist/managed-auth-session-sets.d.ts +1 -0
  194. package/dist/managed-auth-session-sets.js +207 -146
  195. package/dist/managed-auth-session-sets.js.map +1 -1
  196. package/dist/managed-sign-in-methods.d.ts +96 -0
  197. package/dist/managed-sign-in-methods.js +157 -35
  198. package/dist/managed-sign-in-methods.js.map +1 -1
  199. package/dist/mcp-structured-content.d.ts +25 -0
  200. package/dist/message-time-zone.d.ts +38 -0
  201. package/dist/message-time-zone.js +19 -0
  202. package/dist/message-time-zone.js.map +1 -0
  203. package/dist/modal-native-proof-v2.d.ts +587 -0
  204. package/dist/modal-native-proof-v2.js +39 -0
  205. package/dist/modal-native-proof-v2.js.map +1 -0
  206. package/dist/model-account-choice.d.ts +237 -0
  207. package/dist/model-account-settings.d.ts +422 -0
  208. package/dist/model-availability.d.ts +15 -0
  209. package/dist/model-connection-access.d.ts +13 -0
  210. package/dist/model-context-inspector.d.ts +8 -0
  211. package/dist/model-display.d.ts +43 -0
  212. package/dist/model-display.js +17 -0
  213. package/dist/model-display.js.map +1 -0
  214. package/dist/model-picker-order.js.map +1 -1
  215. package/dist/model-residency.d.ts +304 -0
  216. package/dist/organization-access.d.ts +416 -0
  217. package/dist/organization-access.js +40 -0
  218. package/dist/organization-access.js.map +1 -0
  219. package/dist/organization-integration-policy.d.ts +18 -0
  220. package/dist/organization-membership-lifecycle.d.ts +66 -0
  221. package/dist/organization-model-usage.d.ts +146 -0
  222. package/dist/organization-model-usage.js +87 -0
  223. package/dist/organization-model-usage.js.map +1 -0
  224. package/dist/organization-recovery.js +3 -1
  225. package/dist/organization-usage.d.ts +12 -0
  226. package/dist/passkey-only-account.d.ts +14 -0
  227. package/dist/passkey-only-account.js +13 -0
  228. package/dist/passkey-only-account.js.map +1 -0
  229. package/dist/permissions.d.ts +19 -0
  230. package/dist/personal-github.js +220 -148
  231. package/dist/personal-github.js.map +1 -1
  232. package/dist/personal-integration-setup.d.ts +81 -0
  233. package/dist/personal-integration-setup.js +42 -0
  234. package/dist/personal-integration-setup.js.map +1 -0
  235. package/dist/prepared-mcp-setup.d.ts +54 -0
  236. package/dist/prepared-mcp-setup.js +13 -0
  237. package/dist/prepared-mcp-setup.js.map +1 -0
  238. package/dist/presentation-artifact-commands.js +2 -2
  239. package/dist/presentation-artifact-query.js +2 -2
  240. package/dist/primitives.d.ts +18 -0
  241. package/dist/product-analytics.d.ts +27 -10
  242. package/dist/product-lifecycle-facts.d.ts +26 -3
  243. package/dist/prompt-cache-diagnostics.d.ts +92 -0
  244. package/dist/recordings.d.ts +1371 -0
  245. package/dist/remember.d.ts +98 -2
  246. package/dist/retained-output.d.ts +4 -2
  247. package/dist/sandbox-file-artifacts.d.ts +19 -2
  248. package/dist/sandbox-provider-command.d.ts +5 -44
  249. package/dist/sandbox-recovery.d.ts +139 -8
  250. package/dist/secret-generator.d.ts +44 -0
  251. package/dist/secret-mask-strings.d.ts +32 -0
  252. package/dist/secret-references.d.ts +90 -0
  253. package/dist/secret-resolution.d.ts +143 -0
  254. package/dist/secret-shape-masking.d.ts +52 -0
  255. package/dist/secret-shape-masking.js +19 -0
  256. package/dist/secret-shape-masking.js.map +1 -0
  257. package/dist/secret-totp.d.ts +41 -0
  258. package/dist/secret-use-approval-question.d.ts +11 -0
  259. package/dist/secret-use-approval-question.js +11 -0
  260. package/dist/secret-use-approval-question.js.map +1 -0
  261. package/dist/secret-use-approvals.d.ts +106 -0
  262. package/dist/secret-value-masking.d.ts +299 -0
  263. package/dist/secret-value-masking.js +62 -0
  264. package/dist/secret-value-masking.js.map +1 -0
  265. package/dist/secret-value.d.ts +19 -0
  266. package/dist/session-history-import.d.ts +444 -8
  267. package/dist/session-history.d.ts +111 -0
  268. package/dist/session-history.js +35 -0
  269. package/dist/session-history.js.map +1 -0
  270. package/dist/session-list-entries.d.ts +8 -0
  271. package/dist/session-list-entries.js +61 -0
  272. package/dist/session-list-entries.js.map +1 -0
  273. package/dist/session-mcp-projections.d.ts +13 -1
  274. package/dist/session-mcp-tool-permissions.d.ts +62 -0
  275. package/dist/session-target.d.ts +18 -0
  276. package/dist/session-titles.d.ts +8 -0
  277. package/dist/session-titles.js +5 -1
  278. package/dist/session-usage-limit-refusal.d.ts +34 -0
  279. package/dist/session-usage-limit-refusal.js +15 -0
  280. package/dist/session-usage-limit-refusal.js.map +1 -0
  281. package/dist/session-usage-limits.d.ts +127 -0
  282. package/dist/session-usage-limits.js +43 -0
  283. package/dist/session-usage-limits.js.map +1 -0
  284. package/dist/site-data.d.ts +286 -0
  285. package/dist/site-operations.d.ts +39 -0
  286. package/dist/site-publishing.d.ts +813 -0
  287. package/dist/site-session-http.d.ts +103 -4
  288. package/dist/site-session-http.js +27 -1
  289. package/dist/site-sql.d.ts +425 -0
  290. package/dist/skills.d.ts +38 -0
  291. package/dist/slack-bot-scopes.d.ts +9 -7
  292. package/dist/slack-bot-scopes.js +6 -3
  293. package/dist/slack-rest-mcp.d.ts +36 -0
  294. package/dist/slack-rest-mcp.js +25 -0
  295. package/dist/slack-rest-mcp.js.map +1 -0
  296. package/dist/spreadsheet-artifact-commands.d.ts +14 -1
  297. package/dist/spreadsheet-artifact-commands.js +9 -2
  298. package/dist/spreadsheet-artifact-query.d.ts +13 -6
  299. package/dist/spreadsheet-artifact-query.js +4 -3
  300. package/dist/subscription-account-actions.d.ts +83 -0
  301. package/dist/subscription-account-pools.d.ts +326 -0
  302. package/dist/subscription-personal-authority-v2.d.ts +28 -0
  303. package/dist/subscription-personal-authority-v2.js +13 -0
  304. package/dist/subscription-personal-authority-v2.js.map +1 -0
  305. package/dist/subscription-plans.d.ts +38 -0
  306. package/dist/subscription-usage-pool.d.ts +89 -0
  307. package/dist/tool-action-review.d.ts +141 -0
  308. package/dist/tool-catalog.d.ts +479 -0
  309. package/dist/tool-policy.d.ts +5 -0
  310. package/dist/tool-review-presentation.d.ts +29 -0
  311. package/dist/tool-review-presentation.js +21 -0
  312. package/dist/tool-review-presentation.js.map +1 -0
  313. package/dist/turn-serving-policy.d.ts +223 -0
  314. package/dist/usage-allowances.d.ts +30 -0
  315. package/dist/usage-allowances.js +5 -1
  316. package/dist/values.d.ts +11 -0
  317. package/dist/values.js +19 -0
  318. package/dist/values.js.map +1 -0
  319. package/dist/vault-provider-wire.d.ts +907 -0
  320. package/dist/vault-provider-wire.js +74 -0
  321. package/dist/vault-provider-wire.js.map +1 -0
  322. package/dist/vaults.d.ts +2185 -0
  323. package/dist/video-generation.d.ts +75 -0
  324. package/dist/video-generation.js +8 -1
  325. package/dist/workspace-control-event.d.ts +18 -0
  326. package/dist/workspace-control-event.js +18 -0
  327. package/dist/workspace-control-event.js.map +1 -0
  328. package/dist/workspace-governance-context.d.ts +18 -0
  329. package/dist/workspace-integration-wire.d.ts +1 -1
  330. package/dist/workspace-integration-wire.js +1 -1
  331. package/dist/workspace-integrations.d.ts +212 -12
  332. package/dist/xai-provider-account-authority.js +3 -1
  333. package/package.json +121 -4
  334. package/src/agent-authored-durable-text.ts +14 -11
  335. package/src/agent-config.ts +382 -203
  336. package/src/agent-instruction-changes.ts +94 -74
  337. package/src/agent-learning.ts +94 -66
  338. package/src/agent-topology.ts +58 -52
  339. package/src/api-key-presets.ts +28 -0
  340. package/src/app-action-catalog-types.ts +32 -0
  341. package/src/app-action-catalog.gen.ts +9905 -0
  342. package/src/app-actions.ts +365 -0
  343. package/src/app-shot.ts +176 -0
  344. package/src/artifact-catalog.ts +81 -46
  345. package/src/artifacts.ts +360 -227
  346. package/src/atlassian-native-retirement.ts +33 -0
  347. package/src/atlassian.ts +136 -108
  348. package/src/automation-templates.ts +201 -0
  349. package/src/billing-subscriptions.ts +48 -0
  350. package/src/bots.ts +238 -0
  351. package/src/bundled-skills.ts +79 -22
  352. package/src/canonical-human-identities.ts +65 -62
  353. package/src/child-lifecycle-notice-protocol.gen.json +1310 -0
  354. package/src/child-lifecycle-notice-protocol.ts +224 -0
  355. package/src/claude-provider-account-authority.ts +12 -0
  356. package/src/claude-subscription-oauth.ts +61 -19
  357. package/src/claude-subscription-usage.ts +64 -35
  358. package/src/client-error-report.ts +344 -9
  359. package/src/code-search.ts +1 -1
  360. package/src/codex-provider-account-authority.ts +22 -16
  361. package/src/company-brain-governed-writes.ts +265 -244
  362. package/src/company-brain.ts +165 -154
  363. package/src/company-profile.ts +362 -297
  364. package/src/connect.ts +222 -173
  365. package/src/connection-account-label.ts +45 -0
  366. package/src/connection-authority.ts +172 -152
  367. package/src/connector-attachments.ts +139 -123
  368. package/src/connector-destinations.ts +48 -43
  369. package/src/connector-tool-permissions.ts +104 -46
  370. package/src/credential-profiles.ts +161 -0
  371. package/src/cua-desktop-tools.gen.json +6722 -0
  372. package/src/cua-desktop-tools.linux.gen.json +6798 -0
  373. package/src/cua-desktop-tools.ts +42 -0
  374. package/src/cua-desktop-tools.windows.gen.json +6739 -0
  375. package/src/define-schema.ts +10 -0
  376. package/src/desktop-app.ts +50 -0
  377. package/src/direct-model-provider.ts +112 -0
  378. package/src/editable-artifact-binary.ts +29 -8
  379. package/src/editable-artifact-committed-transaction.ts +19 -18
  380. package/src/editable-artifact-serialized-commit.ts +8 -2
  381. package/src/editable-artifact-versions.ts +7 -1
  382. package/src/event-preview.ts +53 -3
  383. package/src/event-triggers.ts +891 -0
  384. package/src/external-identities.ts +239 -195
  385. package/src/feedback.ts +125 -30
  386. package/src/file-access.ts +26 -0
  387. package/src/first-party-tool-authorization.ts +383 -0
  388. package/src/github-repository-contracts.ts +78 -64
  389. package/src/google-drive-native-retirement.ts +20 -0
  390. package/src/google-drive.ts +286 -234
  391. package/src/governed-learning-activation.ts +159 -137
  392. package/src/governed-learning-evaluator.ts +141 -133
  393. package/src/host-mcp-bindings.ts +244 -221
  394. package/src/image-generation.ts +105 -95
  395. package/src/index.ts +13928 -9899
  396. package/src/inference-residency.ts +36 -0
  397. package/src/insights-usage.ts +774 -0
  398. package/src/integration-capability-id.ts +16 -0
  399. package/src/interaction-action-deadline.ts +143 -0
  400. package/src/interaction-driver-diagnostic.ts +89 -0
  401. package/src/interaction.ts +3527 -2427
  402. package/src/knowledge-entries.ts +386 -299
  403. package/src/knowledge-preparation.ts +49 -41
  404. package/src/knowledge.ts +242 -213
  405. package/src/learning-refusal.ts +90 -0
  406. package/src/managed-auth-session-sets.ts +180 -133
  407. package/src/managed-sign-in-methods.ts +156 -34
  408. package/src/mcp-oauth.ts +58 -46
  409. package/src/mcp-receipts.ts +199 -194
  410. package/src/mcp-structured-content.ts +81 -0
  411. package/src/memory-slack-delivery.ts +172 -142
  412. package/src/message-time-zone.ts +109 -0
  413. package/src/modal-native-proof-v2.ts +430 -0
  414. package/src/model-account-choice.ts +178 -0
  415. package/src/model-account-settings.ts +210 -0
  416. package/src/model-availability.ts +22 -0
  417. package/src/model-connection-access.ts +62 -14
  418. package/src/model-context-inspector.ts +130 -109
  419. package/src/model-display.ts +221 -0
  420. package/src/model-picker-order.ts +1 -1
  421. package/src/model-residency.ts +535 -0
  422. package/src/organization-access.ts +216 -0
  423. package/src/organization-integration-policy.ts +47 -28
  424. package/src/organization-membership-lifecycle.ts +558 -384
  425. package/src/organization-model-usage.ts +82 -0
  426. package/src/organization-recovery.ts +148 -135
  427. package/src/organization-usage.ts +84 -52
  428. package/src/passkey-only-account.ts +29 -0
  429. package/src/permissions.ts +94 -52
  430. package/src/personal-github.ts +211 -171
  431. package/src/personal-integration-setup.ts +150 -0
  432. package/src/preference-registry.ts +319 -263
  433. package/src/prepared-mcp-setup.ts +190 -0
  434. package/src/primitives.ts +22 -0
  435. package/src/product-analytics.ts +40 -15
  436. package/src/product-lifecycle-facts.ts +50 -20
  437. package/src/prompt-cache-diagnostics.ts +212 -0
  438. package/src/recordings.ts +1153 -0
  439. package/src/remember.ts +184 -172
  440. package/src/retained-output.ts +181 -168
  441. package/src/sandbox-file-artifacts.ts +78 -57
  442. package/src/sandbox-provider-command.ts +55 -72
  443. package/src/sandbox-recovery.ts +163 -77
  444. package/src/scoped-knowledge.ts +62 -43
  445. package/src/secret-generator.ts +156 -0
  446. package/src/secret-mask-strings.ts +175 -0
  447. package/src/secret-references.ts +414 -0
  448. package/src/secret-resolution.ts +322 -0
  449. package/src/secret-shape-masking.ts +573 -0
  450. package/src/secret-totp.ts +188 -0
  451. package/src/secret-use-approval-question.ts +22 -0
  452. package/src/secret-use-approvals.ts +219 -0
  453. package/src/secret-value-masking.ts +1283 -0
  454. package/src/secret-value.ts +22 -0
  455. package/src/session-goal-reports.ts +55 -49
  456. package/src/session-history-import.ts +84 -68
  457. package/src/session-history.ts +197 -0
  458. package/src/session-list-entries.ts +106 -0
  459. package/src/session-mcp-projections.ts +21 -3
  460. package/src/session-mcp-tool-permissions.ts +109 -0
  461. package/src/session-message-search.ts +46 -38
  462. package/src/session-target.ts +58 -0
  463. package/src/session-titles.ts +40 -4
  464. package/src/session-topology-primitives.ts +20 -12
  465. package/src/session-usage-limit-refusal.ts +101 -0
  466. package/src/session-usage-limits.ts +169 -0
  467. package/src/signup-attribution.ts +20 -15
  468. package/src/site-data.ts +337 -0
  469. package/src/site-operations.ts +154 -0
  470. package/src/site-publishing.ts +903 -0
  471. package/src/site-session-http.ts +344 -16
  472. package/src/site-sql.ts +1120 -0
  473. package/src/skill-use.ts +18 -17
  474. package/src/skills.ts +105 -50
  475. package/src/slack-bot-scopes.ts +18 -35
  476. package/src/slack-rest-mcp.ts +222 -0
  477. package/src/slack-task-policy.ts +97 -73
  478. package/src/spreadsheet-artifact-commands.ts +74 -13
  479. package/src/spreadsheet-artifact-query.ts +188 -50
  480. package/src/subscription-account-actions.ts +103 -0
  481. package/src/subscription-account-pools.ts +74 -0
  482. package/src/subscription-personal-authority-v2.ts +69 -0
  483. package/src/subscription-plans.ts +51 -0
  484. package/src/subscription-usage-pool.ts +44 -0
  485. package/src/task-notes.ts +70 -68
  486. package/src/tool-action-review.ts +271 -0
  487. package/src/tool-catalog.ts +694 -379
  488. package/src/tool-policy.ts +82 -0
  489. package/src/tool-result-spill.ts +13 -9
  490. package/src/tool-review-presentation.ts +643 -0
  491. package/src/turn-serving-policy.ts +167 -0
  492. package/src/usage-allowances.ts +212 -136
  493. package/src/values.ts +25 -0
  494. package/src/vault-provider-wire.ts +580 -0
  495. package/src/vaults.ts +1296 -0
  496. package/src/video-generation.ts +430 -361
  497. package/src/work-claims.ts +183 -166
  498. package/src/workspace-control-event.ts +134 -0
  499. package/src/workspace-governance-context.ts +63 -0
  500. package/src/workspace-instruction-policies.ts +346 -279
  501. package/src/workspace-integration-wire.ts +10 -0
  502. package/src/workspace-integrations.ts +488 -398
  503. package/src/workspace-learning-administration.ts +58 -44
  504. package/src/workspace-learning-policy.ts +126 -99
  505. package/src/workspace-state.ts +239 -220
  506. package/src/xai-provider-account-authority.ts +23 -17
  507. package/dist/chunk-3SIZGL3O.js.map +0 -1
  508. package/dist/chunk-566IFOVP.js +0 -26133
  509. package/dist/chunk-566IFOVP.js.map +0 -1
  510. package/dist/chunk-5IXYF6XN.js +0 -728
  511. package/dist/chunk-5IXYF6XN.js.map +0 -1
  512. package/dist/chunk-5Q54VCCH.js.map +0 -1
  513. package/dist/chunk-BCS7WHCK.js +0 -139
  514. package/dist/chunk-BCS7WHCK.js.map +0 -1
  515. package/dist/chunk-EK7NDGFR.js +0 -128
  516. package/dist/chunk-EK7NDGFR.js.map +0 -1
  517. package/dist/chunk-GRG7PHWQ.js +0 -25
  518. package/dist/chunk-GRG7PHWQ.js.map +0 -1
  519. package/dist/chunk-HHZSZYYF.js.map +0 -1
  520. package/dist/chunk-ICDZGUX2.js +0 -186
  521. package/dist/chunk-ICDZGUX2.js.map +0 -1
  522. package/dist/chunk-JUFK3T4Q.js +0 -80
  523. package/dist/chunk-JUFK3T4Q.js.map +0 -1
  524. package/dist/chunk-MYBZRDTY.js.map +0 -1
  525. package/dist/chunk-NRMCVHAU.js.map +0 -1
  526. package/dist/chunk-O77VSFYZ.js.map +0 -1
  527. package/dist/chunk-P3HLDT77.js +0 -59
  528. package/dist/chunk-P3HLDT77.js.map +0 -1
  529. package/dist/chunk-TXTQIYCV.js.map +0 -1
  530. package/dist/chunk-WYBDERIY.js.map +0 -1
  531. package/dist/chunk-Y3KNXVTD.js.map +0 -1
  532. package/dist/chunk-YBW5JSA3.js.map +0 -1
  533. package/dist/chunk-YRXAWWCU.js +0 -45
  534. package/dist/chunk-YRXAWWCU.js.map +0 -1
  535. package/dist/chunk-YWMOIZ6A.js +0 -185
  536. package/dist/chunk-YWMOIZ6A.js.map +0 -1
  537. package/dist/site-request-headers.test.d.ts +0 -1
  538. package/dist/transcription-recordings.d.ts +0 -300
  539. package/src/transcription-recordings.ts +0 -169
  540. /package/dist/{chunk-SIOU2K4U.js.map → chunk-LJH2EYGT.js.map} +0 -0
  541. /package/dist/{chunk-RIY7GYQS.js.map → chunk-PTSROVDG.js.map} +0 -0
  542. /package/dist/{chunk-YRKRZ6OF.js.map → chunk-TOOJIBJC.js.map} +0 -0
  543. /package/dist/{chunk-D2HKF2EF.js.map → chunk-XP5M3IKT.js.map} +0 -0
@@ -1,11 +1,110 @@
1
+ import { type SiteOperation } from "./site-operations.js";
2
+ /** The list filter a frame without a published Site gets: it names no Site, so lists nothing. */
3
+ export declare const SITE_NO_ORIGIN_ID = "00000000-0000-0000-0000-000000000000";
4
+ /**
5
+ * The header a host sets on every request it forwards from a Site frame. The
6
+ * value names the host: `1` for the console bridge, `preview` for a Codemode
7
+ * local preview. The API treats a request carrying it (or the pinned Site id)
8
+ * as Site code: only `SITE_OPERATIONS`, only the frame's own sessions.
9
+ */
10
+ export declare const SITE_FRAME_HEADER = "x-opengeni-site-frame";
11
+ /** SITE_FRAME_HEADER value a Codemode local preview sets. */
12
+ export declare const SITE_PREVIEW_FRAME = "preview";
13
+ /**
14
+ * A random id the host mints per mounted frame. A frame without a published
15
+ * Site (inline HTML, previews) records it on the sessions it starts and may
16
+ * reach only those sessions afterwards.
17
+ */
18
+ export declare const SITE_FRAME_ID_HEADER = "x-opengeni-site-frame-id";
19
+ /** The published Site (artifact id) a host pinned the frame to. */
20
+ export declare const SITE_ID_HEADER = "x-opengeni-site-id";
21
+ /** The exact Site version the pinned frame runs. */
22
+ export declare const SITE_VERSION_HEADER = "x-opengeni-site-version";
23
+ /** The Site a console Site view conversation is about, as its messages name it. */
24
+ export type SiteConversationSite = {
25
+ siteId: string;
26
+ title: string;
27
+ versionId: string;
28
+ revision: number;
29
+ };
30
+ /**
31
+ * Message context for a conversation in the console's Site view, where the
32
+ * person edits the Site beside it: which Site and version "the Site" means,
33
+ * and that a change is published straight away. The API attaches it to the
34
+ * first message of a conversation started there; the console attaches it to
35
+ * each later message, with the version then current. It is ordinary,
36
+ * model-visible context (`modelContext`), never authority.
37
+ */
38
+ export declare function siteConversationContext(site: SiteConversationSite): string;
1
39
  /** A Site/Codemode SDK request named a route outside the proxied surface. */
2
40
  export declare class SiteSessionPathError extends Error {
3
41
  readonly code = "site_session_path_unsupported";
4
42
  constructor();
5
43
  }
6
- /** Route browser/preview SDK requests to the host workspace. This is a URL
7
- * boundary, not an endpoint or HTTP-method allowlist. Ordinary API handlers
8
- * authorize every operation with the viewer or agent's existing authority. */
9
- export declare function siteSessionPath(path: string, workspaceId: string, _method?: string, siteId?: string): string;
44
+ /** The host serves no Site Data: it is not bound to a published Site (inline HTML, previews). */
45
+ export declare class SiteDataUnsupportedError extends Error {
46
+ readonly code = "site_data_unsupported";
47
+ constructor();
48
+ }
49
+ /**
50
+ * Route a request from Site code (the in-Site SDK, the console bridge, a
51
+ * Codemode preview) to the host workspace. This is the `SITE_OPERATIONS`
52
+ * allowlist: anything else is refused with SiteSessionPathError before any
53
+ * request is made. Ordinary API handlers still authorize every allowed
54
+ * operation with the viewer's own authority, and the API independently
55
+ * refuses frame requests outside the allowlist or to another Site's sessions.
56
+ *
57
+ * `workspaceId` `site-host` checks a path inside the Site without rewriting
58
+ * it. A session list must name `originSiteId=current` or `siteAccessId=current`; the host binds it to
59
+ * its pinned Site, or to no Site at all when the frame has none.
60
+ */
61
+ export declare function siteSessionPath(path: string, workspaceId: string, method?: string, siteId?: string): string;
62
+ /**
63
+ * Route an agent's own SDK request through the Codemode SDK proxy to its
64
+ * workspace. Unlike `siteSessionPath` this is a URL prefix boundary, not an
65
+ * operation allowlist: the proxy signs a short-lived credential bounded by
66
+ * the agent's own permission ceiling and ordinary handlers authorize every
67
+ * operation. Site Data is not served here (an agent uses its tools).
68
+ * Requests a Codemode preview forwards from Site code carry the frame marker
69
+ * and use `siteSessionPath` instead.
70
+ */
71
+ export declare function siteHostWorkspacePath(path: string, workspaceId: string): string;
72
+ /** The Site identity a host attached to a request, from its host-set headers. */
73
+ export type SiteFrameHeaders = {
74
+ /** The pinned published Site id, or null for a frame without one. */
75
+ siteId: string | null;
76
+ versionId: string | null;
77
+ /** The host's frame marker value (`1`, `preview`), or null when only the Site id was set. */
78
+ marker: string | null;
79
+ frameId: string | null;
80
+ };
81
+ /** Read the host-set frame headers. Null when the request did not come from a Site frame. */
82
+ export declare function siteFrameFromHeaders(header: (name: string) => string | null | undefined): SiteFrameHeaders | null;
83
+ /**
84
+ * Match a request that reached a workspace route from a Site frame against
85
+ * `SITE_OPERATIONS`. `pathname` is the raw request path
86
+ * (`/v1/workspaces/<id>/...` or `/v1/config/client`). The frame's own pinned
87
+ * Site id maps back to `current`; any other Site id does not match.
88
+ */
89
+ export declare function siteFrameOperation(method: string, pathname: string, workspaceId: string, frameSiteId: string | null): {
90
+ operation: SiteOperation;
91
+ suffix: string;
92
+ sessionId: string | null;
93
+ } | null;
10
94
  /** Preserve SDK request semantics while the host supplies identity and transport headers. */
11
95
  export declare function siteRequestHeaders(input: HeadersInit): Headers;
96
+ /**
97
+ * Session create fields a Site frame may send. Agent/tool choices use the
98
+ * ordinary viewer's defaults, never a platform-imposed Site profile.
99
+ * Ownership, settings, approvals and credentials remain host-owned.
100
+ */
101
+ export declare const SITE_FRAME_SESSION_CREATE_FIELDS: readonly string[];
102
+ /**
103
+ * The first body field a Site frame may not send for this operation (for
104
+ * example `payload.resources` or `type`), or null when the body is allowed.
105
+ * `suffix` is the operation's site-host suffix (from `siteFrameOperation` or
106
+ * `matchSiteOperation`). A body that is not a JSON object is left to the
107
+ * route, which refuses it. Only `user.message` events are allowed:
108
+ * approvals and answers to questions happen in the console.
109
+ */
110
+ export declare function siteFrameBodyRefusal(operationId: string, suffix: string, body: unknown): string | null;
@@ -1,10 +1,36 @@
1
1
  import {
2
+ SITE_FRAME_HEADER,
3
+ SITE_FRAME_ID_HEADER,
4
+ SITE_FRAME_SESSION_CREATE_FIELDS,
5
+ SITE_ID_HEADER,
6
+ SITE_NO_ORIGIN_ID,
7
+ SITE_PREVIEW_FRAME,
8
+ SITE_VERSION_HEADER,
9
+ SiteDataUnsupportedError,
2
10
  SiteSessionPathError,
11
+ siteConversationContext,
12
+ siteFrameBodyRefusal,
13
+ siteFrameFromHeaders,
14
+ siteFrameOperation,
15
+ siteHostWorkspacePath,
3
16
  siteRequestHeaders,
4
17
  siteSessionPath
5
- } from "./chunk-YRXAWWCU.js";
18
+ } from "./chunk-H6UJJIUM.js";
6
19
  export {
20
+ SITE_FRAME_HEADER,
21
+ SITE_FRAME_ID_HEADER,
22
+ SITE_FRAME_SESSION_CREATE_FIELDS,
23
+ SITE_ID_HEADER,
24
+ SITE_NO_ORIGIN_ID,
25
+ SITE_PREVIEW_FRAME,
26
+ SITE_VERSION_HEADER,
27
+ SiteDataUnsupportedError,
7
28
  SiteSessionPathError,
29
+ siteConversationContext,
30
+ siteFrameBodyRefusal,
31
+ siteFrameFromHeaders,
32
+ siteFrameOperation,
33
+ siteHostWorkspacePath,
8
34
  siteRequestHeaders,
9
35
  siteSessionPath
10
36
  };
@@ -0,0 +1,425 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Site SQL: optional per-Site SQLite storage on Cloudflare (one SQLite-backed
4
+ * Durable Object per Site, `idFromName(siteId)`), offered next to Site Data.
5
+ * Postgres keeps the definitions (settings, migrations and named queries) so
6
+ * the database can always be rebuilt; the Durable Object holds the data.
7
+ * Shared by the API, the Site gateway Worker (which runs the Durable Object)
8
+ * and the SDK. See docs/design/published-sites-2026-10-14.md (PR B).
9
+ *
10
+ * Sites never send SQL: they call named, parameterized queries an owner
11
+ * defined (`site.sql.run(name, params)`). Every statement, whoever wrote it,
12
+ * passes `compileSiteSql` on the API and again in the Durable Object.
13
+ */
14
+ /** A value a statement parameter may take. Booleans bind as 1 and 0. */
15
+ export type SiteSqlValue = string | number | boolean | null;
16
+ export type SiteSqlStatementKind = "read" | "write" | "schema";
17
+ /**
18
+ * Who wrote the SQL, which decides what it may do:
19
+ * - `named`: a named query Site pages call. One read or write statement; no
20
+ * schema changes, PRAGMA, EXPLAIN or recursive CTEs (no RECURSIVE keyword,
21
+ * no CTE that refers to itself and no UNION/INTERSECT/EXCEPT inside a CTE).
22
+ * - `agent`: one read or write statement an owner's agent runs (query,
23
+ * execute), plus read-only PRAGMA and EXPLAIN. Schema changes go through
24
+ * migrations so the database can always be rebuilt from Postgres.
25
+ * - `script`: migrations and SQL imports. Many statements, run together,
26
+ * schema changes included.
27
+ */
28
+ export type SiteSqlProfile = "named" | "agent" | "script";
29
+ export type SiteSqlProblem = "empty" | "too_long" | "syntax" | "multiple_statements" | "too_many_statements" | "statement_not_allowed" | "attach" | "vacuum" | "transaction" | "pragma" | "load_extension" | "reserved_name" | "parameter_style" | "parameter_name" | "too_many_parameters" | "recursive";
30
+ export type SiteSqlStatement = {
31
+ /** The statement with every `:name` replaced by `?`, comments removed, no trailing semicolon. */
32
+ sql: string;
33
+ kind: SiteSqlStatementKind;
34
+ /** Parameter names in bind order (a name used twice appears twice). */
35
+ params: string[];
36
+ };
37
+ export type SiteSqlCompileResult = {
38
+ ok: true;
39
+ statements: SiteSqlStatement[];
40
+ /** Distinct parameter names in first-use order. */
41
+ paramNames: string[];
42
+ } | {
43
+ ok: false;
44
+ problem: SiteSqlProblem;
45
+ message: string;
46
+ };
47
+ /** Longest SQL text per profile, in UTF-16 code units. */
48
+ export declare const SITE_SQL_MAX_NAMED_LENGTH: number;
49
+ export declare const SITE_SQL_MAX_AGENT_LENGTH: number;
50
+ export declare const SITE_SQL_MAX_SCRIPT_LENGTH: number;
51
+ export declare const SITE_SQL_MAX_SCRIPT_STATEMENTS = 2000;
52
+ export declare const SITE_SQL_MAX_PARAMETERS = 100;
53
+ /** PRAGMAs that only read the schema. Anything else (and any `=` form) is refused. */
54
+ export declare const SITE_SQL_READ_PRAGMAS: readonly string[];
55
+ /**
56
+ * Identifier prefixes Site SQL may not name: Cloudflare's own tables
57
+ * (`_cf_`) and names kept for Opengeni (`_og_`). Quoted identifiers count,
58
+ * and so do string literals that start with one (SQLite accepts any string
59
+ * as a table name, as in `FROM '_cf_KV'`), so such a value must be passed as
60
+ * a parameter.
61
+ */
62
+ export declare const SITE_SQL_RESERVED_PREFIXES: readonly string[];
63
+ /**
64
+ * Parameters the API binds from the verified viewer; a Site may never supply
65
+ * them. `:viewer` is the viewer's stable per-Site principal (`user:<id>`,
66
+ * `guest:<visitor>`, ...), `:viewer_kind` its principal kind (`user`,
67
+ * `guest`, ...), `:viewer_signed_in` 1 or 0, `:viewer_access` how the viewer
68
+ * reaches the Site (`member`, `invited`, `user` or `guest`; NULL for callers
69
+ * with no person behind them) and `:viewer_email` the viewer's verified email
70
+ * address in lowercase (NULL for guests and people without one).
71
+ */
72
+ export declare const SITE_SQL_PRINCIPAL_PARAMS: readonly string[];
73
+ /** `viewer` and every `viewer_*` name are reserved for the API. */
74
+ export declare function isSiteSqlPrincipalParam(name: string): boolean;
75
+ /**
76
+ * Check and compile Site SQL. Refuses ATTACH/DETACH, VACUUM, transaction
77
+ * control, PRAGMA writes, `pragma_*` functions outside the schema readers,
78
+ * load_extension, reserved table names, positional or `@`/`$`/`#`
79
+ * parameters and, per profile, more than one statement, schema changes and
80
+ * recursive CTEs. Parameters are `:name` only and are rewritten to `?` with
81
+ * their bind order, so values are always bound, never spliced.
82
+ */
83
+ export declare function compileSiteSql(sql: string, profile: SiteSqlProfile): SiteSqlCompileResult;
84
+ /** Bind values for one compiled statement; a missing name binds null. Booleans become 1 or 0. */
85
+ export declare function siteSqlBindings(statement: SiteSqlStatement, params: Readonly<Record<string, SiteSqlValue | undefined>>): Array<string | number | null>;
86
+ /** A SQLite identifier quoted for splicing (table and column names only, never values). */
87
+ export declare function quoteSiteSqlIdentifier(name: string): string;
88
+ /** Table and column names Site SQL tools accept as arguments. */
89
+ export declare const SITE_SQL_IDENTIFIER: RegExp;
90
+ export declare function isSiteSqlTableName(name: string): boolean;
91
+ /** Hard ceilings that hold whatever the profile or settings say. */
92
+ export declare const SITE_SQL_HARD_LIMITS: Readonly<{
93
+ maxRowsPerCall: 5000;
94
+ maxResponseBytes: number;
95
+ storageBytesPerSite: number;
96
+ exportBytesPerCall: number;
97
+ importRowsPerCall: 5000;
98
+ /** UTF-8 bytes of SQL all of a Site's migrations hold together, so a rebuild fits in bounded calls. */
99
+ migrationBytesPerSite: number;
100
+ /** Bytes one export call returns at most; follow nextCursor for the rest. */
101
+ exportBytesPerResponse: number;
102
+ }>;
103
+ /** Response header of the HTTP export: the cursor of the next piece, when there is one. */
104
+ export declare const SITE_SQL_EXPORT_NEXT_CURSOR_HEADER = "X-OpenGeni-Export-Next-Cursor";
105
+ /**
106
+ * Effective Site SQL limits for one Site. Null means no Opengeni cap (the
107
+ * hard limits still hold).
108
+ */
109
+ export type SiteSqlLimits = {
110
+ storageBytesPerSite: number;
111
+ rowsReadPerSitePerMonth: number | null;
112
+ rowsWrittenPerSitePerMonth: number | null;
113
+ callsPerMinutePerViewer: number | null;
114
+ callsPerMinutePerSite: number | null;
115
+ maxRowsPerCall: number;
116
+ maxResponseBytes: number;
117
+ };
118
+ export declare const SITE_SQL_NAME: RegExp;
119
+ export declare const SiteSqlValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
120
+ export declare const SiteSqlParams: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
121
+ export type SiteSqlParams = z.infer<typeof SiteSqlParams>;
122
+ /**
123
+ * Who may run a named query from a Site page:
124
+ * - everyone: every viewer, including anonymous guests of public Sites;
125
+ * - signed_in: viewers signed in as a person (workspace members, invited
126
+ * people and, on public Sites, any signed-in user). Callers with no person
127
+ * behind them (service keys, agents and schedules acting on their own) are
128
+ * refused unless they manage the Site;
129
+ * - managers: only the Site's managers, through agent tools and the console's
130
+ * Data view; Site pages cannot run it.
131
+ */
132
+ export declare const SiteSqlQueryAudience: z.ZodEnum<{
133
+ everyone: "everyone";
134
+ managers: "managers";
135
+ signed_in: "signed_in";
136
+ }>;
137
+ export type SiteSqlQueryAudience = z.infer<typeof SiteSqlQueryAudience>;
138
+ /** site_sql_define_query and PUT .../sql/queries/:name. */
139
+ export declare const SiteSqlQueryDefinitionRequest: z.ZodObject<{
140
+ sql: z.ZodString;
141
+ audience: z.ZodOptional<z.ZodEnum<{
142
+ everyone: "everyone";
143
+ managers: "managers";
144
+ signed_in: "signed_in";
145
+ }>>;
146
+ description: z.ZodOptional<z.ZodString>;
147
+ maxRows: z.ZodOptional<z.ZodNumber>;
148
+ }, z.core.$strip>;
149
+ export type SiteSqlQueryDefinitionRequest = z.infer<typeof SiteSqlQueryDefinitionRequest>;
150
+ /** POST .../published-artifacts/current/sql/queries/:name (Site pages, `site.sql.run`). */
151
+ export declare const SiteSqlRunRequest: z.ZodObject<{
152
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
153
+ }, z.core.$strip>;
154
+ export type SiteSqlRunRequest = z.infer<typeof SiteSqlRunRequest>;
155
+ /** POST .../sql/query and .../sql/execute: one ad hoc statement from a manager. */
156
+ export declare const SiteSqlStatementRequest: z.ZodObject<{
157
+ sql: z.ZodString;
158
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
159
+ maxRows: z.ZodOptional<z.ZodNumber>;
160
+ }, z.core.$strip>;
161
+ export type SiteSqlStatementRequest = z.infer<typeof SiteSqlStatementRequest>;
162
+ /** POST .../sql/reset. */
163
+ export declare const SiteSqlResetRequest: z.ZodObject<{
164
+ confirm: z.ZodLiteral<true>;
165
+ schema: z.ZodOptional<z.ZodEnum<{
166
+ drop: "drop";
167
+ keep: "keep";
168
+ }>>;
169
+ }, z.core.$strip>;
170
+ export type SiteSqlResetRequest = z.infer<typeof SiteSqlResetRequest>;
171
+ export declare const SiteSqlMigrationRequest: z.ZodObject<{
172
+ name: z.ZodString;
173
+ sql: z.ZodString;
174
+ }, z.core.$strip>;
175
+ export type SiteSqlMigrationRequest = z.infer<typeof SiteSqlMigrationRequest>;
176
+ export declare const SiteSqlExportFormat: z.ZodEnum<{
177
+ csv: "csv";
178
+ json: "json";
179
+ sql: "sql";
180
+ }>;
181
+ export type SiteSqlExportFormat = z.infer<typeof SiteSqlExportFormat>;
182
+ export declare const SiteSqlImportRequest: z.ZodObject<{
183
+ format: z.ZodEnum<{
184
+ csv: "csv";
185
+ json: "json";
186
+ sql: "sql";
187
+ }>;
188
+ sql: z.ZodOptional<z.ZodString>;
189
+ table: z.ZodOptional<z.ZodString>;
190
+ csv: z.ZodOptional<z.ZodString>;
191
+ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
192
+ onConflict: z.ZodOptional<z.ZodEnum<{
193
+ fail: "fail";
194
+ ignore: "ignore";
195
+ replace: "replace";
196
+ }>>;
197
+ }, z.core.$strip>;
198
+ export type SiteSqlImportRequest = z.infer<typeof SiteSqlImportRequest>;
199
+ /** PUT .../sql/settings: the owner turns Site SQL on or off for one Site. */
200
+ export declare const SiteSqlSettingsRequest: z.ZodObject<{
201
+ enabled: z.ZodBoolean;
202
+ }, z.core.$strip>;
203
+ export type SiteSqlSettingsRequest = z.infer<typeof SiteSqlSettingsRequest>;
204
+ export declare const SiteSqlErrorCode: z.ZodEnum<{
205
+ conflict: "conflict";
206
+ disabled: "disabled";
207
+ forbidden: "forbidden";
208
+ not_found: "not_found";
209
+ quota_exceeded: "quota_exceeded";
210
+ rate_limited: "rate_limited";
211
+ sql_error: "sql_error";
212
+ unavailable: "unavailable";
213
+ validation: "validation";
214
+ }>;
215
+ export type SiteSqlErrorCode = z.infer<typeof SiteSqlErrorCode>;
216
+ export declare const SITE_SQL_ERROR_STATUS: Readonly<Record<SiteSqlErrorCode, number>>;
217
+ /** A row as a Site sees it. Blobs come back as `{ "$base64": "..." }`. */
218
+ export type SiteSqlRow = Record<string, unknown>;
219
+ export type SiteSqlRunResponse = {
220
+ columns: string[];
221
+ rows: SiteSqlRow[];
222
+ /** True when maxRows or the response size cut the result short. */
223
+ truncated: boolean;
224
+ rowsRead: number;
225
+ rowsWritten: number;
226
+ };
227
+ export type SiteSqlQueryResponse = {
228
+ name: string;
229
+ sql: string;
230
+ mode: "read" | "write";
231
+ params: string[];
232
+ audience: SiteSqlQueryAudience;
233
+ description: string | null;
234
+ maxRows: number | null;
235
+ createdAt: string;
236
+ updatedAt: string;
237
+ };
238
+ export type SiteSqlMigrationResponse = {
239
+ ordinal: number;
240
+ name: string;
241
+ sql: string;
242
+ checksum: string;
243
+ createdAt: string;
244
+ };
245
+ export type SiteSqlUsageResponse = {
246
+ storageBytes: number;
247
+ rowsReadThisMonth: number;
248
+ rowsWrittenThisMonth: number;
249
+ };
250
+ export type SiteSqlDescribeResponse = {
251
+ siteId: string;
252
+ /** Site SQL is configured on this deployment. */
253
+ available: boolean;
254
+ /** The owner turned Site SQL on for this Site. */
255
+ enabled: boolean;
256
+ migrations: SiteSqlMigrationResponse[];
257
+ queries: SiteSqlQueryResponse[];
258
+ usage: SiteSqlUsageResponse;
259
+ limits: SiteSqlLimits;
260
+ };
261
+ export type SiteSqlMigrateResponse = {
262
+ migration: SiteSqlMigrationResponse;
263
+ /** Migrations the database applied now (earlier ones it was missing, then this one). */
264
+ applied: string[];
265
+ };
266
+ export type SiteSqlImportResponse = {
267
+ /** Rows inserted (csv, json) or data statements run (sql). */
268
+ imported: number;
269
+ /** The migration a sql import recorded for its schema statements (before the data), if any. */
270
+ migration: string | null;
271
+ /**
272
+ * Every migration a sql import recorded, in order: its schema statements
273
+ * before the data, then its triggers after the data (so they do not fire
274
+ * on imported rows).
275
+ */
276
+ migrations: string[];
277
+ rowsWritten: number;
278
+ };
279
+ export type SiteSqlResetResponse = {
280
+ applied: string[];
281
+ droppedSchema: boolean;
282
+ };
283
+ /**
284
+ * The gateway route the API calls for a Site's Durable Object:
285
+ * `POST <gateway internal origin>/_og/internal/site-db/<siteId>/<operation>`,
286
+ * signed like gateway -> API requests (`siteGatewayCanonicalString` over the
287
+ * internal path and the gateway's host, empty session, visitor, IP and human
288
+ * fields, the shared gateway secret, 30 s skew). The path prefix keeps these
289
+ * signatures distinct from any site-runtime request.
290
+ */
291
+ export declare const SITE_DB_INTERNAL_PREFIX = "/_og/internal/site-db";
292
+ export declare const SITE_DB_OPERATIONS: readonly ["run", "script", "migrate", "insert", "export", "inspect", "reset"];
293
+ export type SiteDbOperation = (typeof SITE_DB_OPERATIONS)[number];
294
+ export declare function siteDbInternalPath(siteId: string, operation: SiteDbOperation): string;
295
+ /** Every internal request names a fresh id; the Durable Object refuses a replay within the skew window. */
296
+ type SiteDbBase = {
297
+ requestId: string;
298
+ };
299
+ export type SiteDbRunRequest = SiteDbBase & {
300
+ sql: string;
301
+ profile: "named" | "agent";
302
+ params: Record<string, SiteSqlValue>;
303
+ /** The mode a named query was defined with; a read that writes is rolled back. */
304
+ expect?: "read" | "write";
305
+ maxRows: number;
306
+ maxResponseBytes: number;
307
+ maxDatabaseBytes: number;
308
+ };
309
+ export type SiteDbScriptRequest = SiteDbBase & {
310
+ sql: string;
311
+ maxDatabaseBytes: number;
312
+ };
313
+ export type SiteDbMigrateRequest = SiteDbBase & {
314
+ /**
315
+ * Migrations to apply in order; ones already applied (same checksum) are
316
+ * skipped. `position` is the migration's ordinal in Postgres, so the
317
+ * database keeps the order when the API sends only the missing ones.
318
+ * `checksum` is the lowercase hex SHA-256 of `sql` (UTF-8); the Durable
319
+ * Object recomputes it and refuses a mismatch.
320
+ */
321
+ migrations: Array<{
322
+ name: string;
323
+ sql: string;
324
+ checksum: string;
325
+ position?: number;
326
+ }>;
327
+ /**
328
+ * Delete everything first, then apply these migrations (the first call of
329
+ * a rebuild from Postgres; later calls send the rest without it).
330
+ */
331
+ rebuild?: boolean;
332
+ maxDatabaseBytes: number;
333
+ };
334
+ /** Inspect; `migrationsOnly` skips the tables (and their row counts). */
335
+ export type SiteDbInspectRequest = SiteDbBase & {
336
+ migrationsOnly?: boolean;
337
+ };
338
+ export type SiteDbInsertRequest = SiteDbBase & {
339
+ table: string;
340
+ columns: string[];
341
+ rows: SiteSqlValue[][];
342
+ onConflict: "fail" | "replace" | "ignore";
343
+ maxDatabaseBytes: number;
344
+ };
345
+ export type SiteDbExportRequest = SiteDbBase & {
346
+ /** Tables to export; all user tables when omitted. */
347
+ tables?: string[];
348
+ /** nextCursor from the previous page. */
349
+ cursor?: string | null;
350
+ maxRows: number;
351
+ maxBytes: number;
352
+ };
353
+ export type SiteDbMeter = {
354
+ rowsRead: number;
355
+ rowsWritten: number;
356
+ /** Database size after the operation. */
357
+ databaseBytes: number;
358
+ };
359
+ export type SiteDbSchemaEntry = {
360
+ type: "table" | "index" | "view" | "trigger";
361
+ name: string;
362
+ table: string;
363
+ sql: string | null;
364
+ };
365
+ export type SiteDbRunResponse = SiteDbMeter & {
366
+ columns: string[];
367
+ rows: SiteSqlRow[];
368
+ truncated: boolean;
369
+ };
370
+ export type SiteDbMigrateResponse = SiteDbMeter & {
371
+ applied: string[];
372
+ };
373
+ export type SiteDbExportResponse = SiteDbMeter & {
374
+ /** The whole database schema, on every page. */
375
+ schema: SiteDbSchemaEntry[];
376
+ /** Row values in column order; blobs as `{ "$base64": "..." }`. */
377
+ tables: Array<{
378
+ name: string;
379
+ columns: string[];
380
+ rows: unknown[][];
381
+ }>;
382
+ nextCursor: string | null;
383
+ };
384
+ export type SiteDbInspectResponse = SiteDbMeter & {
385
+ tables: Array<{
386
+ name: string;
387
+ type: "table" | "view";
388
+ sql: string | null;
389
+ columns: Array<{
390
+ name: string;
391
+ type: string;
392
+ notNull: boolean;
393
+ primaryKey: boolean;
394
+ defaultValue: string | null;
395
+ }>;
396
+ /** Rows, counted up to 100,000 (rowCountCapped says the count stopped there). */
397
+ rowCount: number;
398
+ rowCountCapped: boolean;
399
+ }>;
400
+ indexes: SiteDbSchemaEntry[];
401
+ migrations: Array<{
402
+ name: string;
403
+ checksum: string;
404
+ appliedAt: string;
405
+ }>;
406
+ };
407
+ /** GET .../sql/inspect: the database as the Durable Object sees it. */
408
+ export type SiteSqlInspectResponse = Omit<SiteDbInspectResponse, "rowsRead" | "rowsWritten"> & {
409
+ /** Migrations Postgres has that the database has not applied (migrate or reset to apply). */
410
+ pendingMigrations: string[];
411
+ };
412
+ export type SiteDbErrorCode = "validation" | "sql_error" | "quota_exceeded" | "conflict" | "replayed" | "too_large" | "unauthorized" | "not_found"
413
+ /** SQLite or Durable Object failures that are not the caller's (busy, I/O, corruption); 500. */
414
+ | "internal";
415
+ export type SiteDbErrorBody = {
416
+ error: {
417
+ code: SiteDbErrorCode;
418
+ message: string;
419
+ };
420
+ };
421
+ /** Encode a SQLite blob for JSON. */
422
+ export declare function siteSqlBlobValue(bytes: Uint8Array): {
423
+ $base64: string;
424
+ };
425
+ export {};
package/dist/skills.d.ts CHANGED
@@ -28,6 +28,44 @@ export declare const SkillActor: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
28
  }, z.core.$strip>], "kind">;
29
29
  export type SkillActor = z.infer<typeof SkillActor>;
30
30
  export type SkillScope = "workspace" | "organization" | "user";
31
+ /** Save a personal, workspace or organization Skill folder (`saveWorkspaceSkill`). */
32
+ export declare const SaveWorkspaceSkillRequest: z.ZodObject<{
33
+ operationId: z.ZodUUID;
34
+ skillId: z.ZodUUID;
35
+ expectedRevisionId: z.ZodNullable<z.ZodUUID>;
36
+ expectedScopeVersion: z.ZodNumber;
37
+ scope: z.ZodDefault<z.ZodEnum<{
38
+ organization: "organization";
39
+ user: "user";
40
+ workspace: "workspace";
41
+ }>>;
42
+ stableKey: z.ZodString;
43
+ files: z.ZodArray<z.ZodObject<{
44
+ path: z.ZodString;
45
+ content: z.ZodString;
46
+ }, z.core.$strip>>;
47
+ deletions: z.ZodDefault<z.ZodArray<z.ZodString>>;
48
+ reason: z.ZodString;
49
+ }, z.core.$strict>;
50
+ export type SaveWorkspaceSkillRequest = z.infer<typeof SaveWorkspaceSkillRequest>;
51
+ /** Approve, reject or restore one Skill revision. */
52
+ export declare const ApplyWorkspaceSkillRevisionRequest: z.ZodObject<{
53
+ removalOperationId: z.ZodOptional<z.ZodUUID>;
54
+ operationId: z.ZodUUID;
55
+ revisionId: z.ZodUUID;
56
+ expectedRevisionId: z.ZodNullable<z.ZodUUID>;
57
+ expectedScopeVersion: z.ZodNumber;
58
+ reason: z.ZodString;
59
+ }, z.core.$strict>;
60
+ export type ApplyWorkspaceSkillRevisionRequest = z.infer<typeof ApplyWorkspaceSkillRevisionRequest>;
61
+ /** Permanently remove a Skill and all its saved revisions. */
62
+ export declare const RemoveWorkspaceSkillRequest: z.ZodObject<{
63
+ operationId: z.ZodUUID;
64
+ expectedRevisionId: z.ZodNullable<z.ZodUUID>;
65
+ expectedScopeVersion: z.ZodNumber;
66
+ reason: z.ZodString;
67
+ }, z.core.$strict>;
68
+ export type RemoveWorkspaceSkillRequest = z.infer<typeof RemoveWorkspaceSkillRequest>;
31
69
  export type SkillWriteContext = {
32
70
  accountId: string;
33
71
  workspaceId: string;
@@ -19,16 +19,18 @@ export declare const OPENGENI_SLACK_BOT_SEARCH_SCOPES: readonly ["search:read.pu
19
19
  * Slack interactions and tools while the reaction setting stays disabled, bot
20
20
  * search and file delivery stay unavailable, and the tools ask an admin to reinstall.
21
21
  */
22
- export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read", "files:write", "search:read.public", "search:read.files", "search:read.users"];
22
+ export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read", "files:write"];
23
+ export declare function openGeniSlackBotRequestedScopes(mode?: "limited" | "full"): string[];
23
24
  export declare const OPENGENI_SLACK_BOT_EVENTS: readonly ["app_home_opened", "app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
24
- /** Full user-token scope set for every tool currently exposed by Slack's hosted MCP server. */
25
- export declare const OPENGENI_SLACK_MCP_USER_SCOPES: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
25
+ /** User grants required by the reviewed Slack API MCP tools. */
26
+ export declare const OPENGENI_SLACK_MCP_USER_SCOPES: readonly ["channels:read", "groups:read", "im:read", "mpim:read", "channels:history", "groups:history", "im:history", "mpim:history", "users:read", "files:read", "im:write", "chat:write"];
26
27
  export declare const OPENGENI_MANAGED_PUBLIC_BASE_URL: "https://app.opengeni.ai";
27
28
  export type OpenGeniSlackBotManifestOptions = Readonly<{
28
29
  appName?: string;
29
30
  botDisplayName?: string;
30
31
  slashCommand?: string;
31
32
  shortcutName?: string;
33
+ accessMode?: "limited" | "full";
32
34
  }>;
33
35
  /** Canonical managed/self-hosted Slack app manifest. Slack accepts JSON manifests. */
34
36
  export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string, options?: OpenGeniSlackBotManifestOptions): {
@@ -47,13 +49,13 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string, opt
47
49
  };
48
50
  readonly slash_commands: readonly [{
49
51
  readonly command: string;
50
- readonly description: "Start an OpenGeni task in this channel";
52
+ readonly description: "Start an Opengeni task in this channel";
51
53
  readonly should_escape: false;
52
54
  readonly url: `${string}/v1/integrations/slack/commands`;
53
55
  }];
54
56
  readonly shortcuts: readonly [{
55
57
  readonly callback_id: "opengeni_message";
56
- readonly description: "Start an OpenGeni task from this Slack message";
58
+ readonly description: "Start an Opengeni task from this Slack message";
57
59
  readonly name: string;
58
60
  readonly type: "message";
59
61
  }];
@@ -61,8 +63,8 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string, opt
61
63
  readonly oauth_config: {
62
64
  readonly redirect_urls: readonly [`${string}/v1/integrations/oauth/callback`, `${string}/v1/integrations/slack/callback`];
63
65
  readonly scopes: {
64
- readonly bot: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read", "files:write", "search:read.public", "search:read.files", "search:read.users"];
65
- readonly user: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
66
+ readonly bot: string[];
67
+ readonly user: readonly ["channels:read", "groups:read", "im:read", "mpim:read", "channels:history", "groups:history", "im:history", "mpim:history", "users:read", "files:read", "im:write", "chat:write"];
66
68
  };
67
69
  };
68
70
  readonly settings: {