@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
@@ -0,0 +1,2185 @@
1
+ /**
2
+ * Vaults: the Opengeni secrets model (replaces variable sets).
3
+ *
4
+ * A vault holds a flat list of items; an item holds named fields; hosted
5
+ * fields keep encrypted versions. Every type here is `z.infer` of its schema.
6
+ *
7
+ * This module must not import runtime values from `./index` (the index
8
+ * re-exports it); only types cross that edge.
9
+ */
10
+ import { z } from "zod";
11
+ export declare const VaultOwnerKind: z.ZodEnum<{
12
+ organization: "organization";
13
+ task: "task";
14
+ user: "user";
15
+ workspace: "workspace";
16
+ }>;
17
+ export type VaultOwnerKind = z.infer<typeof VaultOwnerKind>;
18
+ export declare const VaultSource: z.ZodEnum<{
19
+ bitwarden: "bitwarden";
20
+ external: "external";
21
+ host: "host";
22
+ keeper: "keeper";
23
+ onepassword: "onepassword";
24
+ opengeni: "opengeni";
25
+ protonpass: "protonpass";
26
+ }>;
27
+ export type VaultSource = z.infer<typeof VaultSource>;
28
+ export declare const VaultMode: z.ZodEnum<{
29
+ read_only: "read_only";
30
+ read_write: "read_write";
31
+ }>;
32
+ export type VaultMode = z.infer<typeof VaultMode>;
33
+ export declare const VaultSyncStatus: z.ZodEnum<{
34
+ auth_expired: "auth_expired";
35
+ error: "error";
36
+ ok: "ok";
37
+ rate_limited: "rate_limited";
38
+ syncing: "syncing";
39
+ }>;
40
+ export type VaultSyncStatus = z.infer<typeof VaultSyncStatus>;
41
+ /**
42
+ * The kind of item, which decides its standard fields and its primary field.
43
+ * Each provider item maps to one type; anything more specific (a database
44
+ * login, a bank account, a passport) is its `category` (see
45
+ * `VAULT_ITEM_CATEGORIES`), so an item keeps both when it moves between
46
+ * providers.
47
+ */
48
+ export declare const VaultItemType: z.ZodEnum<{
49
+ api_key: "api_key";
50
+ card: "card";
51
+ file: "file";
52
+ identity: "identity";
53
+ login: "login";
54
+ note: "note";
55
+ passkey: "passkey";
56
+ ssh_key: "ssh_key";
57
+ }>;
58
+ export type VaultItemType = z.infer<typeof VaultItemType>;
59
+ /** The item types that exist; `createItemTypes` lists at most all of them. */
60
+ export declare const VAULT_ITEM_TYPE_COUNT = 8;
61
+ /**
62
+ * A provider-specific kind of item, as a lower-case snake_case token. Known
63
+ * categories use the names in `VAULT_ITEM_CATEGORIES`; a provider category
64
+ * Opengeni does not know is kept as the snake_case form of its own name.
65
+ */
66
+ export declare const VAULT_ITEM_CATEGORY_PATTERN: RegExp;
67
+ export declare const VaultItemCategory: z.ZodString;
68
+ export type VaultItemCategory = z.infer<typeof VaultItemCategory>;
69
+ /**
70
+ * Categories with a shared meaning across providers, and the item type each
71
+ * belongs to. An item with no category is the plain form of its type.
72
+ */
73
+ export declare const VAULT_ITEM_CATEGORIES: {
74
+ readonly password: "api_key";
75
+ readonly database: "api_key";
76
+ readonly server: "api_key";
77
+ readonly wifi: "api_key";
78
+ readonly email_account: "api_key";
79
+ readonly software_license: "api_key";
80
+ readonly crypto_wallet: "api_key";
81
+ readonly bank_account: "note";
82
+ readonly membership: "note";
83
+ readonly passport: "note";
84
+ readonly driver_license: "note";
85
+ readonly outdoor_license: "note";
86
+ readonly reward_program: "note";
87
+ readonly national_id: "note";
88
+ readonly medical_record: "note";
89
+ readonly health_insurance: "note";
90
+ readonly birth_certificate: "note";
91
+ readonly email_alias: "note";
92
+ readonly address: "identity";
93
+ readonly person: "identity";
94
+ readonly photo: "file";
95
+ };
96
+ export type KnownVaultItemCategory = keyof typeof VAULT_ITEM_CATEGORIES;
97
+ /**
98
+ * The category token for a provider's own category or record-type name:
99
+ * "BankAccount", "bank account" and "bankAccount" all become "bank_account".
100
+ * Null when nothing usable remains.
101
+ */
102
+ export declare function vaultItemCategoryToken(raw: string): string | null;
103
+ /**
104
+ * The standard fields of each type, in display order, as Opengeni names them
105
+ * in every vault. Providers store them in their own built-in slots; any other
106
+ * field is kept as a custom field under its own name.
107
+ */
108
+ export declare const VAULT_ITEM_TYPE_FIELDS: Readonly<Record<VaultItemType, ReadonlyArray<{
109
+ name: string;
110
+ kind: "text" | "concealed" | "totp";
111
+ }>>>;
112
+ /**
113
+ * A freshly generated SSH key pair for an `ssh_key` item's "private key"
114
+ * field. Opengeni writes the private key in OpenSSH format and fills in the
115
+ * "public key" and "fingerprint" fields; the private key never leaves the
116
+ * vault.
117
+ */
118
+ export declare const GenerateSshKeySpec: z.ZodObject<{
119
+ algorithm: z.ZodDefault<z.ZodEnum<{
120
+ ed25519: "ed25519";
121
+ rsa4096: "rsa4096";
122
+ }>>;
123
+ }, z.core.$strict>;
124
+ export type GenerateSshKeySpec = z.infer<typeof GenerateSshKeySpec>;
125
+ /**
126
+ * Other names password managers give a type's standard fields (1Password's
127
+ * "verification number" is Bitwarden's "security code"). A write stores a
128
+ * field under any of these names in the provider's own slot, and a reference
129
+ * that names one of them still resolves when the item names it another way.
130
+ */
131
+ export declare const VAULT_FIELD_NAME_SYNONYMS: Readonly<Partial<Record<VaultItemType, Readonly<Record<string, readonly string[]>>>>>;
132
+ /**
133
+ * The standard field a field name stands for in an item of this type, as
134
+ * Opengeni names it ("cvv" is a card's "security code"), or null for a
135
+ * custom field.
136
+ */
137
+ export declare function standardVaultFieldName(type: VaultItemType, name: string): string | null;
138
+ /**
139
+ * Every other name a reference's field name may have in another password
140
+ * manager, across all types: a group's names when it belongs to one, else
141
+ * nothing. Used only when the exact name finds no field.
142
+ */
143
+ export declare function vaultFieldNameAlternatives(name: string): string[];
144
+ export declare const VaultFieldKind: z.ZodEnum<{
145
+ concealed: "concealed";
146
+ file: "file";
147
+ text: "text";
148
+ totp: "totp";
149
+ }>;
150
+ export type VaultFieldKind = z.infer<typeof VaultFieldKind>;
151
+ /** Effective operations, not a promise that upstream permissions cannot change. */
152
+ export declare const VaultProviderOperations: z.ZodObject<{
153
+ createItemTypes: z.ZodArray<z.ZodEnum<{
154
+ api_key: "api_key";
155
+ card: "card";
156
+ file: "file";
157
+ identity: "identity";
158
+ login: "login";
159
+ note: "note";
160
+ passkey: "passkey";
161
+ ssh_key: "ssh_key";
162
+ }>>;
163
+ updateItem: z.ZodBoolean;
164
+ removeField: z.ZodBoolean;
165
+ archiveItem: z.ZodBoolean;
166
+ archiveKind: z.ZodEnum<{
167
+ archive: "archive";
168
+ none: "none";
169
+ trash: "trash";
170
+ }>;
171
+ deleteItem: z.ZodLiteral<false>;
172
+ restoreItem: z.ZodBoolean;
173
+ readFiles: z.ZodBoolean;
174
+ writeFiles: z.ZodBoolean;
175
+ createTotp: z.ZodBoolean;
176
+ updateTotp: z.ZodBoolean;
177
+ createVault: z.ZodBoolean;
178
+ restoreFieldHistory: z.ZodBoolean;
179
+ }, z.core.$strict>;
180
+ export type VaultProviderOperations = z.infer<typeof VaultProviderOperations>;
181
+ /**
182
+ * The weaker of two archive kinds: an archive (hidden, restorable as is) is
183
+ * stronger than a trash (restorable until emptied), which is stronger than
184
+ * none. A vault may narrow its adapter's archive to a trash, never widen it.
185
+ */
186
+ export declare function weakerArchiveKind(left: VaultProviderOperations["archiveKind"], right: VaultProviderOperations["archiveKind"]): VaultProviderOperations["archiveKind"];
187
+ /** A successful mirror check does not prove a customer's upstream cache is current. */
188
+ export declare const VaultProviderFreshness: z.ZodObject<{
189
+ state: z.ZodEnum<{
190
+ current: "current";
191
+ refreshing: "refreshing";
192
+ stale: "stale";
193
+ unavailable: "unavailable";
194
+ }>;
195
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
196
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
197
+ source: z.ZodEnum<{
198
+ cache: "cache";
199
+ live: "live";
200
+ unknown: "unknown";
201
+ }>;
202
+ errorCode: z.ZodNullable<z.ZodString>;
203
+ retryAt: z.ZodNullable<z.ZodString>;
204
+ }, z.core.$strict>;
205
+ export type VaultProviderFreshness = z.infer<typeof VaultProviderFreshness>;
206
+ /** Lookup order for references that name no vault; index = tier. */
207
+ export declare const VAULT_LOOKUP_TIERS: readonly ["task", "user", "workspace", "organization"];
208
+ export type VaultLookupTier = (typeof VAULT_LOOKUP_TIERS)[number];
209
+ export declare const VAULT_LIMITS: {
210
+ readonly vaultsPerOwnerScope: 200;
211
+ readonly itemsPerVault: 2000;
212
+ readonly fieldsPerItem: 50;
213
+ readonly versionsPerField: 10;
214
+ readonly nameMaxChars: 120;
215
+ readonly descriptionMaxChars: 2000;
216
+ readonly websitesPerItem: 20;
217
+ readonly websiteMaxChars: 2048;
218
+ readonly usernameMaxChars: 1024;
219
+ readonly textValueMaxBytes: 65536;
220
+ readonly fileValueMaxBytes: 262144;
221
+ readonly referenceMaxChars: 300;
222
+ readonly execEnvMaxBytes: 262144;
223
+ readonly execValueMaxBytes: 102400;
224
+ readonly policyVaultIdsMax: 200;
225
+ readonly searchResultsMax: 50;
226
+ /** Items one agent search call examines before it returns a cursor. */
227
+ readonly searchScanMax: 1000;
228
+ readonly searchCursorMaxChars: 1024;
229
+ readonly providerReadsPerAttempt: 50;
230
+ readonly providerValueCacheMs: 60000;
231
+ };
232
+ /** Default names of lazily created hosted vaults (Q-06). */
233
+ export declare const DEFAULT_VAULT_NAMES: {
234
+ readonly user: "Private";
235
+ readonly workspace: "Shared";
236
+ readonly task: "Task";
237
+ };
238
+ /**
239
+ * Default primary field per item type (§10B.2); passkeys have none, and an
240
+ * identity's primary is its first concealed field.
241
+ */
242
+ export declare const VAULT_DEFAULT_PRIMARY_FIELD: Readonly<Record<VaultItemType, string | null>>;
243
+ /** Fixed passkey fields (D20). `privateKey` is concealed; the rest are text. */
244
+ export declare const PASSKEY_FIELD_NAMES: readonly ["rpId", "credentialId", "userHandle", "userName", "privateKey"];
245
+ /**
246
+ * Q-10: 1–120 characters, no `/ { } # \` or control characters, no leading
247
+ * or trailing whitespace, and not starting with `id:` (reserved for the ID
248
+ * reference form). Interior spaces and any other Unicode are allowed.
249
+ */
250
+ export declare function isValidSecretName(name: string): boolean;
251
+ /** True when `name` is reserved as a field name (the `/otp` suffix). */
252
+ export declare function isReservedVaultFieldName(name: string): boolean;
253
+ export declare const VaultName: z.ZodString;
254
+ export declare const VaultFieldName: z.ZodString;
255
+ export declare const VaultPolicy: z.ZodDiscriminatedUnion<[z.ZodObject<{
256
+ mode: z.ZodLiteral<"all">;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ mode: z.ZodLiteral<"selected">;
259
+ vaultIds: z.ZodArray<z.ZodString>;
260
+ }, z.core.$strict>], "mode">;
261
+ export type VaultPolicy = z.infer<typeof VaultPolicy>;
262
+ export declare const VAULT_POLICY_ALL: VaultPolicy;
263
+ /**
264
+ * Intersect two policies. `all` is the identity; two selections keep the IDs
265
+ * present in both (order of `a`).
266
+ */
267
+ export declare function intersectVaultPolicies(a: VaultPolicy, b: VaultPolicy): VaultPolicy;
268
+ export declare const VaultAvailability: z.ZodObject<{
269
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
270
+ allowPersonalWorkspaces: z.ZodBoolean;
271
+ }, z.core.$strict>;
272
+ export type VaultAvailability = z.infer<typeof VaultAvailability>;
273
+ export declare const VaultSummary: z.ZodObject<{
274
+ id: z.ZodString;
275
+ workspaceId: z.ZodString;
276
+ ownerKind: z.ZodEnum<{
277
+ organization: "organization";
278
+ task: "task";
279
+ user: "user";
280
+ workspace: "workspace";
281
+ }>;
282
+ ownerLabel: z.ZodString;
283
+ rootSessionId: z.ZodNullable<z.ZodString>;
284
+ name: z.ZodString;
285
+ description: z.ZodNullable<z.ZodString>;
286
+ source: z.ZodEnum<{
287
+ bitwarden: "bitwarden";
288
+ external: "external";
289
+ host: "host";
290
+ keeper: "keeper";
291
+ onepassword: "onepassword";
292
+ opengeni: "opengeni";
293
+ protonpass: "protonpass";
294
+ }>;
295
+ mode: z.ZodEnum<{
296
+ read_only: "read_only";
297
+ read_write: "read_write";
298
+ }>;
299
+ syncStatus: z.ZodEnum<{
300
+ auth_expired: "auth_expired";
301
+ error: "error";
302
+ ok: "ok";
303
+ rate_limited: "rate_limited";
304
+ syncing: "syncing";
305
+ }>;
306
+ syncErrorCode: z.ZodNullable<z.ZodString>;
307
+ syncErrorMessage: z.ZodNullable<z.ZodString>;
308
+ lastSyncedAt: z.ZodNullable<z.ZodString>;
309
+ rateLimitedUntil: z.ZodNullable<z.ZodString>;
310
+ providerConnectionId: z.ZodNullable<z.ZodString>;
311
+ providerOperations: z.ZodOptional<z.ZodObject<{
312
+ createItemTypes: z.ZodArray<z.ZodEnum<{
313
+ api_key: "api_key";
314
+ card: "card";
315
+ file: "file";
316
+ identity: "identity";
317
+ login: "login";
318
+ note: "note";
319
+ passkey: "passkey";
320
+ ssh_key: "ssh_key";
321
+ }>>;
322
+ updateItem: z.ZodBoolean;
323
+ removeField: z.ZodBoolean;
324
+ archiveItem: z.ZodBoolean;
325
+ archiveKind: z.ZodEnum<{
326
+ archive: "archive";
327
+ none: "none";
328
+ trash: "trash";
329
+ }>;
330
+ deleteItem: z.ZodLiteral<false>;
331
+ restoreItem: z.ZodBoolean;
332
+ readFiles: z.ZodBoolean;
333
+ writeFiles: z.ZodBoolean;
334
+ createTotp: z.ZodBoolean;
335
+ updateTotp: z.ZodBoolean;
336
+ createVault: z.ZodBoolean;
337
+ restoreFieldHistory: z.ZodBoolean;
338
+ }, z.core.$strict>>;
339
+ freshness: z.ZodOptional<z.ZodObject<{
340
+ state: z.ZodEnum<{
341
+ current: "current";
342
+ refreshing: "refreshing";
343
+ stale: "stale";
344
+ unavailable: "unavailable";
345
+ }>;
346
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
347
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
348
+ source: z.ZodEnum<{
349
+ cache: "cache";
350
+ live: "live";
351
+ unknown: "unknown";
352
+ }>;
353
+ errorCode: z.ZodNullable<z.ZodString>;
354
+ retryAt: z.ZodNullable<z.ZodString>;
355
+ }, z.core.$strict>>;
356
+ availability: z.ZodNullable<z.ZodObject<{
357
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
358
+ allowPersonalWorkspaces: z.ZodBoolean;
359
+ }, z.core.$strict>>;
360
+ isDefault: z.ZodBoolean;
361
+ itemCount: z.ZodNumber;
362
+ canWrite: z.ZodBoolean;
363
+ canManage: z.ZodBoolean;
364
+ generation: z.ZodNumber;
365
+ createdAt: z.ZodString;
366
+ updatedAt: z.ZodString;
367
+ }, z.core.$strip>;
368
+ export type VaultSummary = z.infer<typeof VaultSummary>;
369
+ export declare const VaultItemReferences: z.ZodObject<{
370
+ primary: z.ZodNullable<z.ZodString>;
371
+ otp: z.ZodNullable<z.ZodString>;
372
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
373
+ }, z.core.$strip>;
374
+ export type VaultItemReferences = z.infer<typeof VaultItemReferences>;
375
+ export declare const VaultItemSummary: z.ZodObject<{
376
+ id: z.ZodString;
377
+ vaultId: z.ZodString;
378
+ type: z.ZodEnum<{
379
+ api_key: "api_key";
380
+ card: "card";
381
+ file: "file";
382
+ identity: "identity";
383
+ login: "login";
384
+ note: "note";
385
+ passkey: "passkey";
386
+ ssh_key: "ssh_key";
387
+ }>;
388
+ category: z.ZodNullable<z.ZodString>;
389
+ name: z.ZodString;
390
+ websites: z.ZodArray<z.ZodString>;
391
+ username: z.ZodNullable<z.ZodString>;
392
+ hasTotp: z.ZodBoolean;
393
+ hasPasskey: z.ZodBoolean;
394
+ expiresAt: z.ZodNullable<z.ZodString>;
395
+ archivedAt: z.ZodNullable<z.ZodString>;
396
+ lastUsedAt: z.ZodNullable<z.ZodString>;
397
+ updatedAt: z.ZodString;
398
+ references: z.ZodObject<{
399
+ primary: z.ZodNullable<z.ZodString>;
400
+ otp: z.ZodNullable<z.ZodString>;
401
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
402
+ }, z.core.$strip>;
403
+ }, z.core.$strip>;
404
+ export type VaultItemSummary = z.infer<typeof VaultItemSummary>;
405
+ export declare const VaultItemField: z.ZodObject<{
406
+ id: z.ZodString;
407
+ name: z.ZodString;
408
+ kind: z.ZodEnum<{
409
+ concealed: "concealed";
410
+ file: "file";
411
+ text: "text";
412
+ totp: "totp";
413
+ }>;
414
+ position: z.ZodNumber;
415
+ currentVersion: z.ZodNullable<z.ZodNumber>;
416
+ value: z.ZodNullable<z.ZodString>;
417
+ fileName: z.ZodNullable<z.ZodString>;
418
+ fileSize: z.ZodNullable<z.ZodNumber>;
419
+ reference: z.ZodString;
420
+ updatedAt: z.ZodString;
421
+ }, z.core.$strip>;
422
+ export type VaultItemField = z.infer<typeof VaultItemField>;
423
+ export declare const PasskeySummary: z.ZodObject<{
424
+ rpId: z.ZodString;
425
+ userName: z.ZodNullable<z.ZodString>;
426
+ credentialIdSuffix: z.ZodString;
427
+ signCount: z.ZodNumber;
428
+ leasedUntil: z.ZodNullable<z.ZodString>;
429
+ lastUsedAt: z.ZodNullable<z.ZodString>;
430
+ }, z.core.$strip>;
431
+ export type PasskeySummary = z.infer<typeof PasskeySummary>;
432
+ export declare const VaultItem: z.ZodObject<{
433
+ id: z.ZodString;
434
+ vaultId: z.ZodString;
435
+ type: z.ZodEnum<{
436
+ api_key: "api_key";
437
+ card: "card";
438
+ file: "file";
439
+ identity: "identity";
440
+ login: "login";
441
+ note: "note";
442
+ passkey: "passkey";
443
+ ssh_key: "ssh_key";
444
+ }>;
445
+ category: z.ZodNullable<z.ZodString>;
446
+ name: z.ZodString;
447
+ websites: z.ZodArray<z.ZodString>;
448
+ username: z.ZodNullable<z.ZodString>;
449
+ hasTotp: z.ZodBoolean;
450
+ hasPasskey: z.ZodBoolean;
451
+ expiresAt: z.ZodNullable<z.ZodString>;
452
+ archivedAt: z.ZodNullable<z.ZodString>;
453
+ lastUsedAt: z.ZodNullable<z.ZodString>;
454
+ updatedAt: z.ZodString;
455
+ references: z.ZodObject<{
456
+ primary: z.ZodNullable<z.ZodString>;
457
+ otp: z.ZodNullable<z.ZodString>;
458
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
459
+ }, z.core.$strip>;
460
+ fields: z.ZodArray<z.ZodObject<{
461
+ id: z.ZodString;
462
+ name: z.ZodString;
463
+ kind: z.ZodEnum<{
464
+ concealed: "concealed";
465
+ file: "file";
466
+ text: "text";
467
+ totp: "totp";
468
+ }>;
469
+ position: z.ZodNumber;
470
+ currentVersion: z.ZodNullable<z.ZodNumber>;
471
+ value: z.ZodNullable<z.ZodString>;
472
+ fileName: z.ZodNullable<z.ZodString>;
473
+ fileSize: z.ZodNullable<z.ZodNumber>;
474
+ reference: z.ZodString;
475
+ updatedAt: z.ZodString;
476
+ }, z.core.$strip>>;
477
+ passkey: z.ZodNullable<z.ZodObject<{
478
+ rpId: z.ZodString;
479
+ userName: z.ZodNullable<z.ZodString>;
480
+ credentialIdSuffix: z.ZodString;
481
+ signCount: z.ZodNumber;
482
+ leasedUntil: z.ZodNullable<z.ZodString>;
483
+ lastUsedAt: z.ZodNullable<z.ZodString>;
484
+ }, z.core.$strip>>;
485
+ aliases: z.ZodArray<z.ZodString>;
486
+ primaryFieldId: z.ZodNullable<z.ZodString>;
487
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
488
+ createdAt: z.ZodString;
489
+ generation: z.ZodNumber;
490
+ }, z.core.$strip>;
491
+ export type VaultItem = z.infer<typeof VaultItem>;
492
+ export declare const VaultVersionCreatedByKind: z.ZodEnum<{
493
+ agent: "agent";
494
+ api_key: "api_key";
495
+ human: "human";
496
+ migration: "migration";
497
+ provider: "provider";
498
+ system: "system";
499
+ }>;
500
+ export type VaultVersionCreatedByKind = z.infer<typeof VaultVersionCreatedByKind>;
501
+ export declare const VaultFieldVersionMeta: z.ZodObject<{
502
+ version: z.ZodNumber;
503
+ current: z.ZodBoolean;
504
+ createdAt: z.ZodString;
505
+ createdByKind: z.ZodEnum<{
506
+ agent: "agent";
507
+ api_key: "api_key";
508
+ human: "human";
509
+ migration: "migration";
510
+ provider: "provider";
511
+ system: "system";
512
+ }>;
513
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
514
+ }, z.core.$strip>;
515
+ export type VaultFieldVersionMeta = z.infer<typeof VaultFieldVersionMeta>;
516
+ export declare const CreateVaultRequest: z.ZodObject<{
517
+ name: z.ZodString;
518
+ description: z.ZodOptional<z.ZodString>;
519
+ ownerKind: z.ZodEnum<{
520
+ organization: "organization";
521
+ user: "user";
522
+ workspace: "workspace";
523
+ }>;
524
+ availability: z.ZodOptional<z.ZodObject<{
525
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
526
+ allowPersonalWorkspaces: z.ZodBoolean;
527
+ }, z.core.$strict>>;
528
+ }, z.core.$strict>;
529
+ export type CreateVaultRequest = z.infer<typeof CreateVaultRequest>;
530
+ export declare const UpdateVaultRequest: z.ZodObject<{
531
+ expectedGeneration: z.ZodNumber;
532
+ name: z.ZodOptional<z.ZodString>;
533
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
+ availability: z.ZodOptional<z.ZodObject<{
535
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
536
+ allowPersonalWorkspaces: z.ZodBoolean;
537
+ }, z.core.$strict>>;
538
+ }, z.core.$strict>;
539
+ export type UpdateVaultRequest = z.infer<typeof UpdateVaultRequest>;
540
+ export declare const DeleteVaultRequest: z.ZodObject<{
541
+ confirmName: z.ZodString;
542
+ }, z.core.$strict>;
543
+ export type DeleteVaultRequest = z.infer<typeof DeleteVaultRequest>;
544
+ declare const VALUE_SOURCE_KEYS: readonly ["value", "generate", "generateKey", "fromReference", "fileBase64", "restoreVersion", "remove"];
545
+ /** Exactly one value source per field input. */
546
+ export declare function exactlyOneValueSource(input: Partial<Record<(typeof VALUE_SOURCE_KEYS)[number], unknown>>): boolean;
547
+ export declare const VaultFieldInput: z.ZodObject<{
548
+ fieldId: z.ZodOptional<z.ZodString>;
549
+ name: z.ZodString;
550
+ kind: z.ZodOptional<z.ZodEnum<{
551
+ concealed: "concealed";
552
+ file: "file";
553
+ text: "text";
554
+ totp: "totp";
555
+ }>>;
556
+ value: z.ZodOptional<z.ZodString>;
557
+ generate: z.ZodOptional<z.ZodObject<{
558
+ length: z.ZodDefault<z.ZodNumber>;
559
+ lowercase: z.ZodDefault<z.ZodBoolean>;
560
+ uppercase: z.ZodDefault<z.ZodBoolean>;
561
+ digits: z.ZodDefault<z.ZodBoolean>;
562
+ symbols: z.ZodDefault<z.ZodBoolean>;
563
+ symbolSet: z.ZodDefault<z.ZodString>;
564
+ excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
565
+ requireEachClass: z.ZodDefault<z.ZodBoolean>;
566
+ }, z.core.$strict>>;
567
+ generateKey: z.ZodOptional<z.ZodObject<{
568
+ algorithm: z.ZodDefault<z.ZodEnum<{
569
+ ed25519: "ed25519";
570
+ rsa4096: "rsa4096";
571
+ }>>;
572
+ }, z.core.$strict>>;
573
+ fromReference: z.ZodOptional<z.ZodString>;
574
+ fileBase64: z.ZodOptional<z.ZodString>;
575
+ fileName: z.ZodOptional<z.ZodString>;
576
+ restoreVersion: z.ZodOptional<z.ZodNumber>;
577
+ remove: z.ZodOptional<z.ZodLiteral<true>>;
578
+ }, z.core.$strict>;
579
+ export type VaultFieldInput = z.infer<typeof VaultFieldInput>;
580
+ export declare const CreateVaultItemRequest: z.ZodObject<{
581
+ type: z.ZodEnum<{
582
+ api_key: "api_key";
583
+ card: "card";
584
+ file: "file";
585
+ identity: "identity";
586
+ login: "login";
587
+ note: "note";
588
+ passkey: "passkey";
589
+ ssh_key: "ssh_key";
590
+ }>;
591
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
+ name: z.ZodString;
593
+ websites: z.ZodOptional<z.ZodArray<z.ZodString>>;
594
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ fields: z.ZodArray<z.ZodObject<{
596
+ fieldId: z.ZodOptional<z.ZodString>;
597
+ name: z.ZodString;
598
+ kind: z.ZodOptional<z.ZodEnum<{
599
+ concealed: "concealed";
600
+ file: "file";
601
+ text: "text";
602
+ totp: "totp";
603
+ }>>;
604
+ value: z.ZodOptional<z.ZodString>;
605
+ generate: z.ZodOptional<z.ZodObject<{
606
+ length: z.ZodDefault<z.ZodNumber>;
607
+ lowercase: z.ZodDefault<z.ZodBoolean>;
608
+ uppercase: z.ZodDefault<z.ZodBoolean>;
609
+ digits: z.ZodDefault<z.ZodBoolean>;
610
+ symbols: z.ZodDefault<z.ZodBoolean>;
611
+ symbolSet: z.ZodDefault<z.ZodString>;
612
+ excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
613
+ requireEachClass: z.ZodDefault<z.ZodBoolean>;
614
+ }, z.core.$strict>>;
615
+ generateKey: z.ZodOptional<z.ZodObject<{
616
+ algorithm: z.ZodDefault<z.ZodEnum<{
617
+ ed25519: "ed25519";
618
+ rsa4096: "rsa4096";
619
+ }>>;
620
+ }, z.core.$strict>>;
621
+ fromReference: z.ZodOptional<z.ZodString>;
622
+ fileBase64: z.ZodOptional<z.ZodString>;
623
+ fileName: z.ZodOptional<z.ZodString>;
624
+ restoreVersion: z.ZodOptional<z.ZodNumber>;
625
+ remove: z.ZodOptional<z.ZodLiteral<true>>;
626
+ }, z.core.$strict>>;
627
+ primaryFieldName: z.ZodOptional<z.ZodString>;
628
+ }, z.core.$strict>;
629
+ export type CreateVaultItemRequest = z.infer<typeof CreateVaultItemRequest>;
630
+ export declare const UpdateVaultItemRequest: z.ZodObject<{
631
+ type: z.ZodOptional<z.ZodEnum<{
632
+ api_key: "api_key";
633
+ card: "card";
634
+ file: "file";
635
+ identity: "identity";
636
+ login: "login";
637
+ note: "note";
638
+ passkey: "passkey";
639
+ ssh_key: "ssh_key";
640
+ }>>;
641
+ category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
642
+ name: z.ZodOptional<z.ZodString>;
643
+ websites: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
644
+ expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
645
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
646
+ fieldId: z.ZodOptional<z.ZodString>;
647
+ name: z.ZodString;
648
+ kind: z.ZodOptional<z.ZodEnum<{
649
+ concealed: "concealed";
650
+ file: "file";
651
+ text: "text";
652
+ totp: "totp";
653
+ }>>;
654
+ value: z.ZodOptional<z.ZodString>;
655
+ generate: z.ZodOptional<z.ZodObject<{
656
+ length: z.ZodDefault<z.ZodNumber>;
657
+ lowercase: z.ZodDefault<z.ZodBoolean>;
658
+ uppercase: z.ZodDefault<z.ZodBoolean>;
659
+ digits: z.ZodDefault<z.ZodBoolean>;
660
+ symbols: z.ZodDefault<z.ZodBoolean>;
661
+ symbolSet: z.ZodDefault<z.ZodString>;
662
+ excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
663
+ requireEachClass: z.ZodDefault<z.ZodBoolean>;
664
+ }, z.core.$strict>>;
665
+ generateKey: z.ZodOptional<z.ZodObject<{
666
+ algorithm: z.ZodDefault<z.ZodEnum<{
667
+ ed25519: "ed25519";
668
+ rsa4096: "rsa4096";
669
+ }>>;
670
+ }, z.core.$strict>>;
671
+ fromReference: z.ZodOptional<z.ZodString>;
672
+ fileBase64: z.ZodOptional<z.ZodString>;
673
+ fileName: z.ZodOptional<z.ZodString>;
674
+ restoreVersion: z.ZodOptional<z.ZodNumber>;
675
+ remove: z.ZodOptional<z.ZodLiteral<true>>;
676
+ }, z.core.$strict>>>;
677
+ primaryFieldName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
678
+ expectedGeneration: z.ZodNumber;
679
+ }, z.core.$strict>;
680
+ export type UpdateVaultItemRequest = z.infer<typeof UpdateVaultItemRequest>;
681
+ export declare const MoveVaultItemRequest: z.ZodObject<{
682
+ targetVaultId: z.ZodString;
683
+ mode: z.ZodEnum<{
684
+ copy: "copy";
685
+ move: "move";
686
+ }>;
687
+ newName: z.ZodOptional<z.ZodString>;
688
+ }, z.core.$strict>;
689
+ export type MoveVaultItemRequest = z.infer<typeof MoveVaultItemRequest>;
690
+ export declare const RevealVaultFieldRequest: z.ZodObject<{
691
+ version: z.ZodOptional<z.ZodNumber>;
692
+ }, z.core.$strict>;
693
+ export type RevealVaultFieldRequest = z.infer<typeof RevealVaultFieldRequest>;
694
+ export declare const RevealVaultFieldResponse: z.ZodObject<{
695
+ value: z.ZodString;
696
+ encoding: z.ZodEnum<{
697
+ base64: "base64";
698
+ utf8: "utf8";
699
+ }>;
700
+ version: z.ZodNullable<z.ZodNumber>;
701
+ totp: z.ZodNullable<z.ZodObject<{
702
+ code: z.ZodString;
703
+ periodSeconds: z.ZodNumber;
704
+ expiresAt: z.ZodString;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>;
707
+ export type RevealVaultFieldResponse = z.infer<typeof RevealVaultFieldResponse>;
708
+ export declare const RestoreVaultFieldVersionRequest: z.ZodObject<{
709
+ version: z.ZodNumber;
710
+ }, z.core.$strict>;
711
+ export type RestoreVaultFieldVersionRequest = z.infer<typeof RestoreVaultFieldVersionRequest>;
712
+ /**
713
+ * Query strings are accepted as strings too ("true", "1", "50"). Archived
714
+ * items are left out unless `includeArchived` is set; a connected vault's
715
+ * archived items are the ones its connected account archived.
716
+ */
717
+ export declare const ListVaultItemsQuery: z.ZodObject<{
718
+ q: z.ZodOptional<z.ZodString>;
719
+ type: z.ZodOptional<z.ZodEnum<{
720
+ api_key: "api_key";
721
+ card: "card";
722
+ file: "file";
723
+ identity: "identity";
724
+ login: "login";
725
+ note: "note";
726
+ passkey: "passkey";
727
+ ssh_key: "ssh_key";
728
+ }>>;
729
+ includeArchived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
730
+ cursor: z.ZodOptional<z.ZodString>;
731
+ limit: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
732
+ }, z.core.$strip>;
733
+ export type ListVaultItemsQuery = z.infer<typeof ListVaultItemsQuery>;
734
+ export declare const ListVaultsResponse: z.ZodObject<{
735
+ vaults: z.ZodArray<z.ZodObject<{
736
+ id: z.ZodString;
737
+ workspaceId: z.ZodString;
738
+ ownerKind: z.ZodEnum<{
739
+ organization: "organization";
740
+ task: "task";
741
+ user: "user";
742
+ workspace: "workspace";
743
+ }>;
744
+ ownerLabel: z.ZodString;
745
+ rootSessionId: z.ZodNullable<z.ZodString>;
746
+ name: z.ZodString;
747
+ description: z.ZodNullable<z.ZodString>;
748
+ source: z.ZodEnum<{
749
+ bitwarden: "bitwarden";
750
+ external: "external";
751
+ host: "host";
752
+ keeper: "keeper";
753
+ onepassword: "onepassword";
754
+ opengeni: "opengeni";
755
+ protonpass: "protonpass";
756
+ }>;
757
+ mode: z.ZodEnum<{
758
+ read_only: "read_only";
759
+ read_write: "read_write";
760
+ }>;
761
+ syncStatus: z.ZodEnum<{
762
+ auth_expired: "auth_expired";
763
+ error: "error";
764
+ ok: "ok";
765
+ rate_limited: "rate_limited";
766
+ syncing: "syncing";
767
+ }>;
768
+ syncErrorCode: z.ZodNullable<z.ZodString>;
769
+ syncErrorMessage: z.ZodNullable<z.ZodString>;
770
+ lastSyncedAt: z.ZodNullable<z.ZodString>;
771
+ rateLimitedUntil: z.ZodNullable<z.ZodString>;
772
+ providerConnectionId: z.ZodNullable<z.ZodString>;
773
+ providerOperations: z.ZodOptional<z.ZodObject<{
774
+ createItemTypes: z.ZodArray<z.ZodEnum<{
775
+ api_key: "api_key";
776
+ card: "card";
777
+ file: "file";
778
+ identity: "identity";
779
+ login: "login";
780
+ note: "note";
781
+ passkey: "passkey";
782
+ ssh_key: "ssh_key";
783
+ }>>;
784
+ updateItem: z.ZodBoolean;
785
+ removeField: z.ZodBoolean;
786
+ archiveItem: z.ZodBoolean;
787
+ archiveKind: z.ZodEnum<{
788
+ archive: "archive";
789
+ none: "none";
790
+ trash: "trash";
791
+ }>;
792
+ deleteItem: z.ZodLiteral<false>;
793
+ restoreItem: z.ZodBoolean;
794
+ readFiles: z.ZodBoolean;
795
+ writeFiles: z.ZodBoolean;
796
+ createTotp: z.ZodBoolean;
797
+ updateTotp: z.ZodBoolean;
798
+ createVault: z.ZodBoolean;
799
+ restoreFieldHistory: z.ZodBoolean;
800
+ }, z.core.$strict>>;
801
+ freshness: z.ZodOptional<z.ZodObject<{
802
+ state: z.ZodEnum<{
803
+ current: "current";
804
+ refreshing: "refreshing";
805
+ stale: "stale";
806
+ unavailable: "unavailable";
807
+ }>;
808
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
809
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
810
+ source: z.ZodEnum<{
811
+ cache: "cache";
812
+ live: "live";
813
+ unknown: "unknown";
814
+ }>;
815
+ errorCode: z.ZodNullable<z.ZodString>;
816
+ retryAt: z.ZodNullable<z.ZodString>;
817
+ }, z.core.$strict>>;
818
+ availability: z.ZodNullable<z.ZodObject<{
819
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
820
+ allowPersonalWorkspaces: z.ZodBoolean;
821
+ }, z.core.$strict>>;
822
+ isDefault: z.ZodBoolean;
823
+ itemCount: z.ZodNumber;
824
+ canWrite: z.ZodBoolean;
825
+ canManage: z.ZodBoolean;
826
+ generation: z.ZodNumber;
827
+ createdAt: z.ZodString;
828
+ updatedAt: z.ZodString;
829
+ }, z.core.$strip>>;
830
+ }, z.core.$strip>;
831
+ export type ListVaultsResponse = z.infer<typeof ListVaultsResponse>;
832
+ export declare const ListVaultItemsResponse: z.ZodObject<{
833
+ items: z.ZodArray<z.ZodObject<{
834
+ id: z.ZodString;
835
+ vaultId: z.ZodString;
836
+ type: z.ZodEnum<{
837
+ api_key: "api_key";
838
+ card: "card";
839
+ file: "file";
840
+ identity: "identity";
841
+ login: "login";
842
+ note: "note";
843
+ passkey: "passkey";
844
+ ssh_key: "ssh_key";
845
+ }>;
846
+ category: z.ZodNullable<z.ZodString>;
847
+ name: z.ZodString;
848
+ websites: z.ZodArray<z.ZodString>;
849
+ username: z.ZodNullable<z.ZodString>;
850
+ hasTotp: z.ZodBoolean;
851
+ hasPasskey: z.ZodBoolean;
852
+ expiresAt: z.ZodNullable<z.ZodString>;
853
+ archivedAt: z.ZodNullable<z.ZodString>;
854
+ lastUsedAt: z.ZodNullable<z.ZodString>;
855
+ updatedAt: z.ZodString;
856
+ references: z.ZodObject<{
857
+ primary: z.ZodNullable<z.ZodString>;
858
+ otp: z.ZodNullable<z.ZodString>;
859
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
860
+ }, z.core.$strip>;
861
+ }, z.core.$strip>>;
862
+ nextCursor: z.ZodNullable<z.ZodString>;
863
+ }, z.core.$strip>;
864
+ export type ListVaultItemsResponse = z.infer<typeof ListVaultItemsResponse>;
865
+ export declare const ListVaultFieldVersionsResponse: z.ZodObject<{
866
+ versions: z.ZodArray<z.ZodObject<{
867
+ version: z.ZodNumber;
868
+ current: z.ZodBoolean;
869
+ createdAt: z.ZodString;
870
+ createdByKind: z.ZodEnum<{
871
+ agent: "agent";
872
+ api_key: "api_key";
873
+ human: "human";
874
+ migration: "migration";
875
+ provider: "provider";
876
+ system: "system";
877
+ }>;
878
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
879
+ }, z.core.$strip>>;
880
+ }, z.core.$strip>;
881
+ export type ListVaultFieldVersionsResponse = z.infer<typeof ListVaultFieldVersionsResponse>;
882
+ export declare const SetSessionVaultPolicyRequest: z.ZodObject<{
883
+ policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
884
+ mode: z.ZodLiteral<"all">;
885
+ }, z.core.$strict>, z.ZodObject<{
886
+ mode: z.ZodLiteral<"selected">;
887
+ vaultIds: z.ZodArray<z.ZodString>;
888
+ }, z.core.$strict>], "mode">;
889
+ }, z.core.$strict>;
890
+ export type SetSessionVaultPolicyRequest = z.infer<typeof SetSessionVaultPolicyRequest>;
891
+ export declare const SessionSecretsView: z.ZodObject<{
892
+ capabilityEnabled: z.ZodBoolean;
893
+ policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
894
+ mode: z.ZodLiteral<"all">;
895
+ }, z.core.$strict>, z.ZodObject<{
896
+ mode: z.ZodLiteral<"selected">;
897
+ vaultIds: z.ZodArray<z.ZodString>;
898
+ }, z.core.$strict>], "mode">;
899
+ effectiveVaultIds: z.ZodArray<z.ZodString>;
900
+ narrowedBySessionId: z.ZodNullable<z.ZodString>;
901
+ taskVault: z.ZodNullable<z.ZodObject<{
902
+ id: z.ZodString;
903
+ workspaceId: z.ZodString;
904
+ ownerKind: z.ZodEnum<{
905
+ organization: "organization";
906
+ task: "task";
907
+ user: "user";
908
+ workspace: "workspace";
909
+ }>;
910
+ ownerLabel: z.ZodString;
911
+ rootSessionId: z.ZodNullable<z.ZodString>;
912
+ name: z.ZodString;
913
+ description: z.ZodNullable<z.ZodString>;
914
+ source: z.ZodEnum<{
915
+ bitwarden: "bitwarden";
916
+ external: "external";
917
+ host: "host";
918
+ keeper: "keeper";
919
+ onepassword: "onepassword";
920
+ opengeni: "opengeni";
921
+ protonpass: "protonpass";
922
+ }>;
923
+ mode: z.ZodEnum<{
924
+ read_only: "read_only";
925
+ read_write: "read_write";
926
+ }>;
927
+ syncStatus: z.ZodEnum<{
928
+ auth_expired: "auth_expired";
929
+ error: "error";
930
+ ok: "ok";
931
+ rate_limited: "rate_limited";
932
+ syncing: "syncing";
933
+ }>;
934
+ syncErrorCode: z.ZodNullable<z.ZodString>;
935
+ syncErrorMessage: z.ZodNullable<z.ZodString>;
936
+ lastSyncedAt: z.ZodNullable<z.ZodString>;
937
+ rateLimitedUntil: z.ZodNullable<z.ZodString>;
938
+ providerConnectionId: z.ZodNullable<z.ZodString>;
939
+ providerOperations: z.ZodOptional<z.ZodObject<{
940
+ createItemTypes: z.ZodArray<z.ZodEnum<{
941
+ api_key: "api_key";
942
+ card: "card";
943
+ file: "file";
944
+ identity: "identity";
945
+ login: "login";
946
+ note: "note";
947
+ passkey: "passkey";
948
+ ssh_key: "ssh_key";
949
+ }>>;
950
+ updateItem: z.ZodBoolean;
951
+ removeField: z.ZodBoolean;
952
+ archiveItem: z.ZodBoolean;
953
+ archiveKind: z.ZodEnum<{
954
+ archive: "archive";
955
+ none: "none";
956
+ trash: "trash";
957
+ }>;
958
+ deleteItem: z.ZodLiteral<false>;
959
+ restoreItem: z.ZodBoolean;
960
+ readFiles: z.ZodBoolean;
961
+ writeFiles: z.ZodBoolean;
962
+ createTotp: z.ZodBoolean;
963
+ updateTotp: z.ZodBoolean;
964
+ createVault: z.ZodBoolean;
965
+ restoreFieldHistory: z.ZodBoolean;
966
+ }, z.core.$strict>>;
967
+ freshness: z.ZodOptional<z.ZodObject<{
968
+ state: z.ZodEnum<{
969
+ current: "current";
970
+ refreshing: "refreshing";
971
+ stale: "stale";
972
+ unavailable: "unavailable";
973
+ }>;
974
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
975
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
976
+ source: z.ZodEnum<{
977
+ cache: "cache";
978
+ live: "live";
979
+ unknown: "unknown";
980
+ }>;
981
+ errorCode: z.ZodNullable<z.ZodString>;
982
+ retryAt: z.ZodNullable<z.ZodString>;
983
+ }, z.core.$strict>>;
984
+ availability: z.ZodNullable<z.ZodObject<{
985
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
986
+ allowPersonalWorkspaces: z.ZodBoolean;
987
+ }, z.core.$strict>>;
988
+ isDefault: z.ZodBoolean;
989
+ itemCount: z.ZodNumber;
990
+ canWrite: z.ZodBoolean;
991
+ canManage: z.ZodBoolean;
992
+ generation: z.ZodNumber;
993
+ createdAt: z.ZodString;
994
+ updatedAt: z.ZodString;
995
+ }, z.core.$strip>>;
996
+ taskItems: z.ZodArray<z.ZodObject<{
997
+ id: z.ZodString;
998
+ vaultId: z.ZodString;
999
+ type: z.ZodEnum<{
1000
+ api_key: "api_key";
1001
+ card: "card";
1002
+ file: "file";
1003
+ identity: "identity";
1004
+ login: "login";
1005
+ note: "note";
1006
+ passkey: "passkey";
1007
+ ssh_key: "ssh_key";
1008
+ }>;
1009
+ category: z.ZodNullable<z.ZodString>;
1010
+ name: z.ZodString;
1011
+ websites: z.ZodArray<z.ZodString>;
1012
+ username: z.ZodNullable<z.ZodString>;
1013
+ hasTotp: z.ZodBoolean;
1014
+ hasPasskey: z.ZodBoolean;
1015
+ expiresAt: z.ZodNullable<z.ZodString>;
1016
+ archivedAt: z.ZodNullable<z.ZodString>;
1017
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1018
+ updatedAt: z.ZodString;
1019
+ references: z.ZodObject<{
1020
+ primary: z.ZodNullable<z.ZodString>;
1021
+ otp: z.ZodNullable<z.ZodString>;
1022
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
1023
+ }, z.core.$strip>;
1024
+ }, z.core.$strip>>;
1025
+ reachableVaults: z.ZodArray<z.ZodObject<{
1026
+ id: z.ZodString;
1027
+ workspaceId: z.ZodString;
1028
+ ownerKind: z.ZodEnum<{
1029
+ organization: "organization";
1030
+ task: "task";
1031
+ user: "user";
1032
+ workspace: "workspace";
1033
+ }>;
1034
+ ownerLabel: z.ZodString;
1035
+ rootSessionId: z.ZodNullable<z.ZodString>;
1036
+ name: z.ZodString;
1037
+ description: z.ZodNullable<z.ZodString>;
1038
+ source: z.ZodEnum<{
1039
+ bitwarden: "bitwarden";
1040
+ external: "external";
1041
+ host: "host";
1042
+ keeper: "keeper";
1043
+ onepassword: "onepassword";
1044
+ opengeni: "opengeni";
1045
+ protonpass: "protonpass";
1046
+ }>;
1047
+ mode: z.ZodEnum<{
1048
+ read_only: "read_only";
1049
+ read_write: "read_write";
1050
+ }>;
1051
+ syncStatus: z.ZodEnum<{
1052
+ auth_expired: "auth_expired";
1053
+ error: "error";
1054
+ ok: "ok";
1055
+ rate_limited: "rate_limited";
1056
+ syncing: "syncing";
1057
+ }>;
1058
+ syncErrorCode: z.ZodNullable<z.ZodString>;
1059
+ syncErrorMessage: z.ZodNullable<z.ZodString>;
1060
+ lastSyncedAt: z.ZodNullable<z.ZodString>;
1061
+ rateLimitedUntil: z.ZodNullable<z.ZodString>;
1062
+ providerConnectionId: z.ZodNullable<z.ZodString>;
1063
+ providerOperations: z.ZodOptional<z.ZodObject<{
1064
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1065
+ api_key: "api_key";
1066
+ card: "card";
1067
+ file: "file";
1068
+ identity: "identity";
1069
+ login: "login";
1070
+ note: "note";
1071
+ passkey: "passkey";
1072
+ ssh_key: "ssh_key";
1073
+ }>>;
1074
+ updateItem: z.ZodBoolean;
1075
+ removeField: z.ZodBoolean;
1076
+ archiveItem: z.ZodBoolean;
1077
+ archiveKind: z.ZodEnum<{
1078
+ archive: "archive";
1079
+ none: "none";
1080
+ trash: "trash";
1081
+ }>;
1082
+ deleteItem: z.ZodLiteral<false>;
1083
+ restoreItem: z.ZodBoolean;
1084
+ readFiles: z.ZodBoolean;
1085
+ writeFiles: z.ZodBoolean;
1086
+ createTotp: z.ZodBoolean;
1087
+ updateTotp: z.ZodBoolean;
1088
+ createVault: z.ZodBoolean;
1089
+ restoreFieldHistory: z.ZodBoolean;
1090
+ }, z.core.$strict>>;
1091
+ freshness: z.ZodOptional<z.ZodObject<{
1092
+ state: z.ZodEnum<{
1093
+ current: "current";
1094
+ refreshing: "refreshing";
1095
+ stale: "stale";
1096
+ unavailable: "unavailable";
1097
+ }>;
1098
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1099
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
1100
+ source: z.ZodEnum<{
1101
+ cache: "cache";
1102
+ live: "live";
1103
+ unknown: "unknown";
1104
+ }>;
1105
+ errorCode: z.ZodNullable<z.ZodString>;
1106
+ retryAt: z.ZodNullable<z.ZodString>;
1107
+ }, z.core.$strict>>;
1108
+ availability: z.ZodNullable<z.ZodObject<{
1109
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1110
+ allowPersonalWorkspaces: z.ZodBoolean;
1111
+ }, z.core.$strict>>;
1112
+ isDefault: z.ZodBoolean;
1113
+ itemCount: z.ZodNumber;
1114
+ canWrite: z.ZodBoolean;
1115
+ canManage: z.ZodBoolean;
1116
+ generation: z.ZodNumber;
1117
+ createdAt: z.ZodString;
1118
+ updatedAt: z.ZodString;
1119
+ selected: z.ZodBoolean;
1120
+ selectable: z.ZodBoolean;
1121
+ }, z.core.$strip>>;
1122
+ }, z.core.$strip>;
1123
+ export type SessionSecretsView = z.infer<typeof SessionSecretsView>;
1124
+ export declare const InstallOnePasswordRequest: z.ZodObject<{
1125
+ token: z.ZodString;
1126
+ ownership: z.ZodEnum<{
1127
+ organization: "organization";
1128
+ user: "user";
1129
+ workspace: "workspace";
1130
+ }>;
1131
+ planTier: z.ZodDefault<z.ZodEnum<{
1132
+ business: "business";
1133
+ family: "family";
1134
+ teams: "teams";
1135
+ }>>;
1136
+ label: z.ZodOptional<z.ZodString>;
1137
+ }, z.core.$strict>;
1138
+ export type InstallOnePasswordRequest = z.infer<typeof InstallOnePasswordRequest>;
1139
+ export declare const ProviderVaultMeta: z.ZodObject<{
1140
+ externalVaultId: z.ZodString;
1141
+ name: z.ZodString;
1142
+ itemCount: z.ZodNullable<z.ZodNumber>;
1143
+ linkedVaultId: z.ZodNullable<z.ZodString>;
1144
+ writeAccess: z.ZodOptional<z.ZodEnum<{
1145
+ read_only: "read_only";
1146
+ read_write: "read_write";
1147
+ unknown: "unknown";
1148
+ }>>;
1149
+ operations: z.ZodOptional<z.ZodObject<{
1150
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1151
+ api_key: "api_key";
1152
+ card: "card";
1153
+ file: "file";
1154
+ identity: "identity";
1155
+ login: "login";
1156
+ note: "note";
1157
+ passkey: "passkey";
1158
+ ssh_key: "ssh_key";
1159
+ }>>;
1160
+ updateItem: z.ZodBoolean;
1161
+ removeField: z.ZodBoolean;
1162
+ archiveItem: z.ZodBoolean;
1163
+ archiveKind: z.ZodEnum<{
1164
+ archive: "archive";
1165
+ none: "none";
1166
+ trash: "trash";
1167
+ }>;
1168
+ deleteItem: z.ZodLiteral<false>;
1169
+ restoreItem: z.ZodBoolean;
1170
+ readFiles: z.ZodBoolean;
1171
+ writeFiles: z.ZodBoolean;
1172
+ createTotp: z.ZodBoolean;
1173
+ updateTotp: z.ZodBoolean;
1174
+ createVault: z.ZodBoolean;
1175
+ restoreFieldHistory: z.ZodBoolean;
1176
+ }, z.core.$strict>>;
1177
+ }, z.core.$strip>;
1178
+ export type ProviderVaultMeta = z.infer<typeof ProviderVaultMeta>;
1179
+ export declare const InstallOnePasswordResponse: z.ZodObject<{
1180
+ connectionId: z.ZodString;
1181
+ accountName: z.ZodNullable<z.ZodString>;
1182
+ vaults: z.ZodArray<z.ZodObject<{
1183
+ externalVaultId: z.ZodString;
1184
+ name: z.ZodString;
1185
+ itemCount: z.ZodNullable<z.ZodNumber>;
1186
+ linkedVaultId: z.ZodNullable<z.ZodString>;
1187
+ writeAccess: z.ZodOptional<z.ZodEnum<{
1188
+ read_only: "read_only";
1189
+ read_write: "read_write";
1190
+ unknown: "unknown";
1191
+ }>>;
1192
+ operations: z.ZodOptional<z.ZodObject<{
1193
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1194
+ api_key: "api_key";
1195
+ card: "card";
1196
+ file: "file";
1197
+ identity: "identity";
1198
+ login: "login";
1199
+ note: "note";
1200
+ passkey: "passkey";
1201
+ ssh_key: "ssh_key";
1202
+ }>>;
1203
+ updateItem: z.ZodBoolean;
1204
+ removeField: z.ZodBoolean;
1205
+ archiveItem: z.ZodBoolean;
1206
+ archiveKind: z.ZodEnum<{
1207
+ archive: "archive";
1208
+ none: "none";
1209
+ trash: "trash";
1210
+ }>;
1211
+ deleteItem: z.ZodLiteral<false>;
1212
+ restoreItem: z.ZodBoolean;
1213
+ readFiles: z.ZodBoolean;
1214
+ writeFiles: z.ZodBoolean;
1215
+ createTotp: z.ZodBoolean;
1216
+ updateTotp: z.ZodBoolean;
1217
+ createVault: z.ZodBoolean;
1218
+ restoreFieldHistory: z.ZodBoolean;
1219
+ }, z.core.$strict>>;
1220
+ }, z.core.$strip>>;
1221
+ }, z.core.$strip>;
1222
+ export type InstallOnePasswordResponse = z.infer<typeof InstallOnePasswordResponse>;
1223
+ /** A 1Password service account connected in a workspace. Never carries the token. */
1224
+ export declare const OnePasswordConnectionSummary: z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ ownership: z.ZodEnum<{
1227
+ organization: "organization";
1228
+ user: "user";
1229
+ workspace: "workspace";
1230
+ }>;
1231
+ accountName: z.ZodNullable<z.ZodString>;
1232
+ label: z.ZodNullable<z.ZodString>;
1233
+ planTier: z.ZodEnum<{
1234
+ business: "business";
1235
+ family: "family";
1236
+ teams: "teams";
1237
+ }>;
1238
+ verifiedAt: z.ZodString;
1239
+ createdAt: z.ZodString;
1240
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
1241
+ canManage: z.ZodBoolean;
1242
+ }, z.core.$strip>;
1243
+ export type OnePasswordConnectionSummary = z.infer<typeof OnePasswordConnectionSummary>;
1244
+ export declare const ListOnePasswordConnectionsResponse: z.ZodObject<{
1245
+ connections: z.ZodArray<z.ZodObject<{
1246
+ id: z.ZodString;
1247
+ ownership: z.ZodEnum<{
1248
+ organization: "organization";
1249
+ user: "user";
1250
+ workspace: "workspace";
1251
+ }>;
1252
+ accountName: z.ZodNullable<z.ZodString>;
1253
+ label: z.ZodNullable<z.ZodString>;
1254
+ planTier: z.ZodEnum<{
1255
+ business: "business";
1256
+ family: "family";
1257
+ teams: "teams";
1258
+ }>;
1259
+ verifiedAt: z.ZodString;
1260
+ createdAt: z.ZodString;
1261
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
1262
+ canManage: z.ZodBoolean;
1263
+ }, z.core.$strip>>;
1264
+ }, z.core.$strip>;
1265
+ export type ListOnePasswordConnectionsResponse = z.infer<typeof ListOnePasswordConnectionsResponse>;
1266
+ /** A new token for an existing connection; its linked vaults keep working. */
1267
+ export declare const ReplaceOnePasswordTokenRequest: z.ZodObject<{
1268
+ token: z.ZodString;
1269
+ planTier: z.ZodOptional<z.ZodEnum<{
1270
+ business: "business";
1271
+ family: "family";
1272
+ teams: "teams";
1273
+ }>>;
1274
+ }, z.core.$strict>;
1275
+ export type ReplaceOnePasswordTokenRequest = z.infer<typeof ReplaceOnePasswordTokenRequest>;
1276
+ export declare const DisconnectOnePasswordResponse: z.ZodObject<{
1277
+ unlinkedVaultIds: z.ZodArray<z.ZodString>;
1278
+ }, z.core.$strip>;
1279
+ export type DisconnectOnePasswordResponse = z.infer<typeof DisconnectOnePasswordResponse>;
1280
+ /** Providers installed through the generic connection lifecycle. */
1281
+ export declare const ExternalVaultProviderKind: z.ZodEnum<{
1282
+ bitwarden: "bitwarden";
1283
+ external: "external";
1284
+ keeper: "keeper";
1285
+ protonpass: "protonpass";
1286
+ }>;
1287
+ export type ExternalVaultProviderKind = z.infer<typeof ExternalVaultProviderKind>;
1288
+ /** Write-only setup material. Never included in connection summaries or logs. */
1289
+ export declare const VaultProviderCredentials: z.ZodDiscriminatedUnion<[z.ZodObject<{
1290
+ provider: z.ZodLiteral<"external">;
1291
+ endpoint: z.ZodString;
1292
+ signingSecret: z.ZodString;
1293
+ }, z.core.$strict>, z.ZodObject<{
1294
+ provider: z.ZodLiteral<"bitwarden">;
1295
+ serverUrl: z.ZodString;
1296
+ clientId: z.ZodString;
1297
+ clientSecret: z.ZodString;
1298
+ masterPassword: z.ZodString;
1299
+ }, z.core.$strict>, z.ZodObject<{
1300
+ provider: z.ZodLiteral<"protonpass">;
1301
+ token: z.ZodString;
1302
+ }, z.core.$strict>, z.ZodObject<{
1303
+ provider: z.ZodLiteral<"keeper">;
1304
+ oneTimeToken: z.ZodString;
1305
+ hostname: z.ZodOptional<z.ZodString>;
1306
+ }, z.core.$strict>], "provider">;
1307
+ export type VaultProviderCredentials = z.infer<typeof VaultProviderCredentials>;
1308
+ export declare const InstallVaultProviderRequest: z.ZodObject<{
1309
+ credentials: z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
+ provider: z.ZodLiteral<"external">;
1311
+ endpoint: z.ZodString;
1312
+ signingSecret: z.ZodString;
1313
+ }, z.core.$strict>, z.ZodObject<{
1314
+ provider: z.ZodLiteral<"bitwarden">;
1315
+ serverUrl: z.ZodString;
1316
+ clientId: z.ZodString;
1317
+ clientSecret: z.ZodString;
1318
+ masterPassword: z.ZodString;
1319
+ }, z.core.$strict>, z.ZodObject<{
1320
+ provider: z.ZodLiteral<"protonpass">;
1321
+ token: z.ZodString;
1322
+ }, z.core.$strict>, z.ZodObject<{
1323
+ provider: z.ZodLiteral<"keeper">;
1324
+ oneTimeToken: z.ZodString;
1325
+ hostname: z.ZodOptional<z.ZodString>;
1326
+ }, z.core.$strict>], "provider">;
1327
+ ownership: z.ZodEnum<{
1328
+ organization: "organization";
1329
+ user: "user";
1330
+ workspace: "workspace";
1331
+ }>;
1332
+ label: z.ZodOptional<z.ZodString>;
1333
+ }, z.core.$strict>;
1334
+ export type InstallVaultProviderRequest = z.infer<typeof InstallVaultProviderRequest>;
1335
+ export declare const ReplaceVaultProviderCredentialsRequest: z.ZodObject<{
1336
+ credentials: z.ZodDiscriminatedUnion<[z.ZodObject<{
1337
+ provider: z.ZodLiteral<"external">;
1338
+ endpoint: z.ZodString;
1339
+ signingSecret: z.ZodString;
1340
+ }, z.core.$strict>, z.ZodObject<{
1341
+ provider: z.ZodLiteral<"bitwarden">;
1342
+ serverUrl: z.ZodString;
1343
+ clientId: z.ZodString;
1344
+ clientSecret: z.ZodString;
1345
+ masterPassword: z.ZodString;
1346
+ }, z.core.$strict>, z.ZodObject<{
1347
+ provider: z.ZodLiteral<"protonpass">;
1348
+ token: z.ZodString;
1349
+ }, z.core.$strict>, z.ZodObject<{
1350
+ provider: z.ZodLiteral<"keeper">;
1351
+ oneTimeToken: z.ZodString;
1352
+ hostname: z.ZodOptional<z.ZodString>;
1353
+ }, z.core.$strict>], "provider">;
1354
+ }, z.core.$strict>;
1355
+ export type ReplaceVaultProviderCredentialsRequest = z.infer<typeof ReplaceVaultProviderCredentialsRequest>;
1356
+ /** Includes legacy 1Password connections; existing 1Password routes remain supported. */
1357
+ export declare const VaultProviderConnectionSummary: z.ZodObject<{
1358
+ id: z.ZodString;
1359
+ provider: z.ZodEnum<{
1360
+ bitwarden: "bitwarden";
1361
+ external: "external";
1362
+ keeper: "keeper";
1363
+ onepassword: "onepassword";
1364
+ protonpass: "protonpass";
1365
+ }>;
1366
+ ownership: z.ZodEnum<{
1367
+ organization: "organization";
1368
+ user: "user";
1369
+ workspace: "workspace";
1370
+ }>;
1371
+ accountName: z.ZodNullable<z.ZodString>;
1372
+ label: z.ZodNullable<z.ZodString>;
1373
+ verifiedAt: z.ZodString;
1374
+ createdAt: z.ZodString;
1375
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
1376
+ canManage: z.ZodBoolean;
1377
+ operations: z.ZodObject<{
1378
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1379
+ api_key: "api_key";
1380
+ card: "card";
1381
+ file: "file";
1382
+ identity: "identity";
1383
+ login: "login";
1384
+ note: "note";
1385
+ passkey: "passkey";
1386
+ ssh_key: "ssh_key";
1387
+ }>>;
1388
+ updateItem: z.ZodBoolean;
1389
+ removeField: z.ZodBoolean;
1390
+ archiveItem: z.ZodBoolean;
1391
+ archiveKind: z.ZodEnum<{
1392
+ archive: "archive";
1393
+ none: "none";
1394
+ trash: "trash";
1395
+ }>;
1396
+ deleteItem: z.ZodLiteral<false>;
1397
+ restoreItem: z.ZodBoolean;
1398
+ readFiles: z.ZodBoolean;
1399
+ writeFiles: z.ZodBoolean;
1400
+ createTotp: z.ZodBoolean;
1401
+ updateTotp: z.ZodBoolean;
1402
+ createVault: z.ZodBoolean;
1403
+ restoreFieldHistory: z.ZodBoolean;
1404
+ }, z.core.$strict>;
1405
+ planTier: z.ZodOptional<z.ZodEnum<{
1406
+ business: "business";
1407
+ family: "family";
1408
+ teams: "teams";
1409
+ }>>;
1410
+ available: z.ZodBoolean;
1411
+ verificationStatus: z.ZodOptional<z.ZodEnum<{
1412
+ pending: "pending";
1413
+ ready: "ready";
1414
+ }>>;
1415
+ }, z.core.$strip>;
1416
+ export type VaultProviderConnectionSummary = z.infer<typeof VaultProviderConnectionSummary>;
1417
+ /** Deployment configuration, independent of whether anyone has connected yet. */
1418
+ export declare const VaultProviderAvailability: z.ZodObject<{
1419
+ provider: z.ZodEnum<{
1420
+ bitwarden: "bitwarden";
1421
+ external: "external";
1422
+ keeper: "keeper";
1423
+ onepassword: "onepassword";
1424
+ protonpass: "protonpass";
1425
+ }>;
1426
+ available: z.ZodBoolean;
1427
+ reason: z.ZodNullable<z.ZodEnum<{
1428
+ not_enabled: "not_enabled";
1429
+ }>>;
1430
+ }, z.core.$strip>;
1431
+ export type VaultProviderAvailability = z.infer<typeof VaultProviderAvailability>;
1432
+ export declare const ListVaultProviderConnectionsResponse: z.ZodObject<{
1433
+ connections: z.ZodArray<z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ provider: z.ZodEnum<{
1436
+ bitwarden: "bitwarden";
1437
+ external: "external";
1438
+ keeper: "keeper";
1439
+ onepassword: "onepassword";
1440
+ protonpass: "protonpass";
1441
+ }>;
1442
+ ownership: z.ZodEnum<{
1443
+ organization: "organization";
1444
+ user: "user";
1445
+ workspace: "workspace";
1446
+ }>;
1447
+ accountName: z.ZodNullable<z.ZodString>;
1448
+ label: z.ZodNullable<z.ZodString>;
1449
+ verifiedAt: z.ZodString;
1450
+ createdAt: z.ZodString;
1451
+ createdBySubjectId: z.ZodNullable<z.ZodString>;
1452
+ canManage: z.ZodBoolean;
1453
+ operations: z.ZodObject<{
1454
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1455
+ api_key: "api_key";
1456
+ card: "card";
1457
+ file: "file";
1458
+ identity: "identity";
1459
+ login: "login";
1460
+ note: "note";
1461
+ passkey: "passkey";
1462
+ ssh_key: "ssh_key";
1463
+ }>>;
1464
+ updateItem: z.ZodBoolean;
1465
+ removeField: z.ZodBoolean;
1466
+ archiveItem: z.ZodBoolean;
1467
+ archiveKind: z.ZodEnum<{
1468
+ archive: "archive";
1469
+ none: "none";
1470
+ trash: "trash";
1471
+ }>;
1472
+ deleteItem: z.ZodLiteral<false>;
1473
+ restoreItem: z.ZodBoolean;
1474
+ readFiles: z.ZodBoolean;
1475
+ writeFiles: z.ZodBoolean;
1476
+ createTotp: z.ZodBoolean;
1477
+ updateTotp: z.ZodBoolean;
1478
+ createVault: z.ZodBoolean;
1479
+ restoreFieldHistory: z.ZodBoolean;
1480
+ }, z.core.$strict>;
1481
+ planTier: z.ZodOptional<z.ZodEnum<{
1482
+ business: "business";
1483
+ family: "family";
1484
+ teams: "teams";
1485
+ }>>;
1486
+ available: z.ZodBoolean;
1487
+ verificationStatus: z.ZodOptional<z.ZodEnum<{
1488
+ pending: "pending";
1489
+ ready: "ready";
1490
+ }>>;
1491
+ }, z.core.$strip>>;
1492
+ providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1493
+ provider: z.ZodEnum<{
1494
+ bitwarden: "bitwarden";
1495
+ external: "external";
1496
+ keeper: "keeper";
1497
+ onepassword: "onepassword";
1498
+ protonpass: "protonpass";
1499
+ }>;
1500
+ available: z.ZodBoolean;
1501
+ reason: z.ZodNullable<z.ZodEnum<{
1502
+ not_enabled: "not_enabled";
1503
+ }>>;
1504
+ }, z.core.$strip>>>;
1505
+ }, z.core.$strip>;
1506
+ export type ListVaultProviderConnectionsResponse = z.infer<typeof ListVaultProviderConnectionsResponse>;
1507
+ export declare const InstallVaultProviderResponse: z.ZodObject<{
1508
+ connectionId: z.ZodString;
1509
+ accountName: z.ZodNullable<z.ZodString>;
1510
+ provider: z.ZodEnum<{
1511
+ bitwarden: "bitwarden";
1512
+ external: "external";
1513
+ keeper: "keeper";
1514
+ protonpass: "protonpass";
1515
+ }>;
1516
+ operations: z.ZodObject<{
1517
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1518
+ api_key: "api_key";
1519
+ card: "card";
1520
+ file: "file";
1521
+ identity: "identity";
1522
+ login: "login";
1523
+ note: "note";
1524
+ passkey: "passkey";
1525
+ ssh_key: "ssh_key";
1526
+ }>>;
1527
+ updateItem: z.ZodBoolean;
1528
+ removeField: z.ZodBoolean;
1529
+ archiveItem: z.ZodBoolean;
1530
+ archiveKind: z.ZodEnum<{
1531
+ archive: "archive";
1532
+ none: "none";
1533
+ trash: "trash";
1534
+ }>;
1535
+ deleteItem: z.ZodLiteral<false>;
1536
+ restoreItem: z.ZodBoolean;
1537
+ readFiles: z.ZodBoolean;
1538
+ writeFiles: z.ZodBoolean;
1539
+ createTotp: z.ZodBoolean;
1540
+ updateTotp: z.ZodBoolean;
1541
+ createVault: z.ZodBoolean;
1542
+ restoreFieldHistory: z.ZodBoolean;
1543
+ }, z.core.$strict>;
1544
+ vaults: z.ZodArray<z.ZodObject<{
1545
+ externalVaultId: z.ZodString;
1546
+ name: z.ZodString;
1547
+ itemCount: z.ZodNullable<z.ZodNumber>;
1548
+ linkedVaultId: z.ZodNullable<z.ZodString>;
1549
+ writeAccess: z.ZodOptional<z.ZodEnum<{
1550
+ read_only: "read_only";
1551
+ read_write: "read_write";
1552
+ unknown: "unknown";
1553
+ }>>;
1554
+ operations: z.ZodOptional<z.ZodObject<{
1555
+ createItemTypes: z.ZodArray<z.ZodEnum<{
1556
+ api_key: "api_key";
1557
+ card: "card";
1558
+ file: "file";
1559
+ identity: "identity";
1560
+ login: "login";
1561
+ note: "note";
1562
+ passkey: "passkey";
1563
+ ssh_key: "ssh_key";
1564
+ }>>;
1565
+ updateItem: z.ZodBoolean;
1566
+ removeField: z.ZodBoolean;
1567
+ archiveItem: z.ZodBoolean;
1568
+ archiveKind: z.ZodEnum<{
1569
+ archive: "archive";
1570
+ none: "none";
1571
+ trash: "trash";
1572
+ }>;
1573
+ deleteItem: z.ZodLiteral<false>;
1574
+ restoreItem: z.ZodBoolean;
1575
+ readFiles: z.ZodBoolean;
1576
+ writeFiles: z.ZodBoolean;
1577
+ createTotp: z.ZodBoolean;
1578
+ updateTotp: z.ZodBoolean;
1579
+ createVault: z.ZodBoolean;
1580
+ restoreFieldHistory: z.ZodBoolean;
1581
+ }, z.core.$strict>>;
1582
+ }, z.core.$strip>>;
1583
+ discoveryPending: z.ZodOptional<z.ZodBoolean>;
1584
+ errorCode: z.ZodOptional<z.ZodString>;
1585
+ }, z.core.$strip>;
1586
+ export type InstallVaultProviderResponse = z.infer<typeof InstallVaultProviderResponse>;
1587
+ export declare const DisconnectVaultProviderResponse: z.ZodObject<{
1588
+ unlinkedVaultIds: z.ZodArray<z.ZodString>;
1589
+ }, z.core.$strip>;
1590
+ export type DisconnectVaultProviderResponse = z.infer<typeof DisconnectVaultProviderResponse>;
1591
+ export declare const LinkProviderVaultRequest: z.ZodObject<{
1592
+ provider: z.ZodEnum<{
1593
+ bitwarden: "bitwarden";
1594
+ external: "external";
1595
+ host: "host";
1596
+ keeper: "keeper";
1597
+ onepassword: "onepassword";
1598
+ protonpass: "protonpass";
1599
+ }>;
1600
+ connectionId: z.ZodOptional<z.ZodString>;
1601
+ externalVaultId: z.ZodString;
1602
+ ownerKind: z.ZodEnum<{
1603
+ organization: "organization";
1604
+ user: "user";
1605
+ workspace: "workspace";
1606
+ }>;
1607
+ mode: z.ZodEnum<{
1608
+ read_only: "read_only";
1609
+ read_write: "read_write";
1610
+ }>;
1611
+ name: z.ZodOptional<z.ZodString>;
1612
+ availability: z.ZodOptional<z.ZodObject<{
1613
+ allowedWorkspaceIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1614
+ allowPersonalWorkspaces: z.ZodBoolean;
1615
+ }, z.core.$strict>>;
1616
+ }, z.core.$strict>;
1617
+ export type LinkProviderVaultRequest = z.infer<typeof LinkProviderVaultRequest>;
1618
+ export declare const CreateManagedProviderVaultRequest: z.ZodObject<{
1619
+ name: z.ZodString;
1620
+ ownerKind: z.ZodEnum<{
1621
+ organization: "organization";
1622
+ user: "user";
1623
+ workspace: "workspace";
1624
+ }>;
1625
+ groupId: z.ZodOptional<z.ZodString>;
1626
+ }, z.core.$strict>;
1627
+ export type CreateManagedProviderVaultRequest = z.infer<typeof CreateManagedProviderVaultRequest>;
1628
+ export declare const VaultErrorCode: z.ZodEnum<{
1629
+ encryption_key_missing: "encryption_key_missing";
1630
+ human_auth_required: "human_auth_required";
1631
+ invalid_secret_name: "invalid_secret_name";
1632
+ provider_auth_expired: "provider_auth_expired";
1633
+ provider_auth_invalid: "provider_auth_invalid";
1634
+ provider_conflict: "provider_conflict";
1635
+ provider_inventory_incomplete: "provider_inventory_incomplete";
1636
+ provider_locked: "provider_locked";
1637
+ provider_outcome_unknown: "provider_outcome_unknown";
1638
+ provider_rate_limited: "provider_rate_limited";
1639
+ provider_unavailable: "provider_unavailable";
1640
+ secret_save_forbidden: "secret_save_forbidden";
1641
+ secret_search_cursor_invalid: "secret_search_cursor_invalid";
1642
+ secret_value_too_large: "secret_value_too_large";
1643
+ variable_sets_removed: "variable_sets_removed";
1644
+ vault_field_not_found: "vault_field_not_found";
1645
+ vault_generation_conflict: "vault_generation_conflict";
1646
+ vault_item_name_conflict: "vault_item_name_conflict";
1647
+ vault_item_not_found: "vault_item_not_found";
1648
+ vault_limit_reached: "vault_limit_reached";
1649
+ vault_name_conflict: "vault_name_conflict";
1650
+ vault_not_found: "vault_not_found";
1651
+ vault_operation_unsupported: "vault_operation_unsupported";
1652
+ vault_permission_denied: "vault_permission_denied";
1653
+ vault_policy_outside_parent: "vault_policy_outside_parent";
1654
+ vault_read_only: "vault_read_only";
1655
+ vault_reveal_requires_human: "vault_reveal_requires_human";
1656
+ }>;
1657
+ export type VaultErrorCode = z.infer<typeof VaultErrorCode>;
1658
+ export declare const VaultApiError: z.ZodObject<{
1659
+ error: z.ZodEnum<{
1660
+ encryption_key_missing: "encryption_key_missing";
1661
+ human_auth_required: "human_auth_required";
1662
+ invalid_secret_name: "invalid_secret_name";
1663
+ provider_auth_expired: "provider_auth_expired";
1664
+ provider_auth_invalid: "provider_auth_invalid";
1665
+ provider_conflict: "provider_conflict";
1666
+ provider_inventory_incomplete: "provider_inventory_incomplete";
1667
+ provider_locked: "provider_locked";
1668
+ provider_outcome_unknown: "provider_outcome_unknown";
1669
+ provider_rate_limited: "provider_rate_limited";
1670
+ provider_unavailable: "provider_unavailable";
1671
+ secret_save_forbidden: "secret_save_forbidden";
1672
+ secret_search_cursor_invalid: "secret_search_cursor_invalid";
1673
+ secret_value_too_large: "secret_value_too_large";
1674
+ variable_sets_removed: "variable_sets_removed";
1675
+ vault_field_not_found: "vault_field_not_found";
1676
+ vault_generation_conflict: "vault_generation_conflict";
1677
+ vault_item_name_conflict: "vault_item_name_conflict";
1678
+ vault_item_not_found: "vault_item_not_found";
1679
+ vault_limit_reached: "vault_limit_reached";
1680
+ vault_name_conflict: "vault_name_conflict";
1681
+ vault_not_found: "vault_not_found";
1682
+ vault_operation_unsupported: "vault_operation_unsupported";
1683
+ vault_permission_denied: "vault_permission_denied";
1684
+ vault_policy_outside_parent: "vault_policy_outside_parent";
1685
+ vault_read_only: "vault_read_only";
1686
+ vault_reveal_requires_human: "vault_reveal_requires_human";
1687
+ }>;
1688
+ message: z.ZodString;
1689
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1690
+ }, z.core.$strip>;
1691
+ export type VaultApiError = z.infer<typeof VaultApiError>;
1692
+ /** HTTP status for every vault error code (§10B.1.1). */
1693
+ export declare const VAULT_ERROR_HTTP_STATUS: Readonly<Record<VaultErrorCode, number>>;
1694
+ export declare const SECRET_TOOL_NAMES: readonly ["secret_search", "secret_save", "secret_get", "secret_move", "secret_delete"];
1695
+ export type SecretToolName = (typeof SECRET_TOOL_NAMES)[number];
1696
+ export declare const SECRET_SAVE_TO: z.ZodEnum<{
1697
+ task: "task";
1698
+ user: "user";
1699
+ workspace: "workspace";
1700
+ }>;
1701
+ export type SecretSaveTo = z.infer<typeof SECRET_SAVE_TO>;
1702
+ export declare const SecretSearchInput: z.ZodObject<{
1703
+ query: z.ZodOptional<z.ZodString>;
1704
+ website: z.ZodOptional<z.ZodString>;
1705
+ type: z.ZodOptional<z.ZodEnum<{
1706
+ api_key: "api_key";
1707
+ card: "card";
1708
+ file: "file";
1709
+ identity: "identity";
1710
+ login: "login";
1711
+ note: "note";
1712
+ passkey: "passkey";
1713
+ ssh_key: "ssh_key";
1714
+ }>>;
1715
+ vault: z.ZodOptional<z.ZodString>;
1716
+ limit: z.ZodDefault<z.ZodNumber>;
1717
+ cursor: z.ZodOptional<z.ZodString>;
1718
+ refresh: z.ZodOptional<z.ZodBoolean>;
1719
+ }, z.core.$strict>;
1720
+ export type SecretSearchInput = z.infer<typeof SecretSearchInput>;
1721
+ export declare const SecretSearchResult: z.ZodObject<{
1722
+ vault: z.ZodObject<{
1723
+ id: z.ZodString;
1724
+ name: z.ZodString;
1725
+ ownerKind: z.ZodEnum<{
1726
+ organization: "organization";
1727
+ task: "task";
1728
+ user: "user";
1729
+ workspace: "workspace";
1730
+ }>;
1731
+ source: z.ZodEnum<{
1732
+ bitwarden: "bitwarden";
1733
+ external: "external";
1734
+ host: "host";
1735
+ keeper: "keeper";
1736
+ onepassword: "onepassword";
1737
+ opengeni: "opengeni";
1738
+ protonpass: "protonpass";
1739
+ }>;
1740
+ mode: z.ZodEnum<{
1741
+ read_only: "read_only";
1742
+ read_write: "read_write";
1743
+ }>;
1744
+ }, z.core.$strip>;
1745
+ item: z.ZodObject<{
1746
+ id: z.ZodString;
1747
+ name: z.ZodString;
1748
+ type: z.ZodEnum<{
1749
+ api_key: "api_key";
1750
+ card: "card";
1751
+ file: "file";
1752
+ identity: "identity";
1753
+ login: "login";
1754
+ note: "note";
1755
+ passkey: "passkey";
1756
+ ssh_key: "ssh_key";
1757
+ }>;
1758
+ category: z.ZodNullable<z.ZodString>;
1759
+ websites: z.ZodArray<z.ZodString>;
1760
+ username: z.ZodNullable<z.ZodString>;
1761
+ hasTotp: z.ZodBoolean;
1762
+ hasPasskey: z.ZodBoolean;
1763
+ expiresAt: z.ZodNullable<z.ZodString>;
1764
+ }, z.core.$strip>;
1765
+ fields: z.ZodArray<z.ZodObject<{
1766
+ name: z.ZodString;
1767
+ kind: z.ZodEnum<{
1768
+ concealed: "concealed";
1769
+ file: "file";
1770
+ text: "text";
1771
+ totp: "totp";
1772
+ }>;
1773
+ }, z.core.$strip>>;
1774
+ references: z.ZodObject<{
1775
+ primary: z.ZodNullable<z.ZodString>;
1776
+ otp: z.ZodNullable<z.ZodString>;
1777
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
1778
+ }, z.core.$strip>;
1779
+ }, z.core.$strip>;
1780
+ export type SecretSearchResult = z.infer<typeof SecretSearchResult>;
1781
+ export declare const SecretSearchVault: z.ZodObject<{
1782
+ id: z.ZodString;
1783
+ name: z.ZodString;
1784
+ ownerKind: z.ZodEnum<{
1785
+ organization: "organization";
1786
+ task: "task";
1787
+ user: "user";
1788
+ workspace: "workspace";
1789
+ }>;
1790
+ source: z.ZodEnum<{
1791
+ bitwarden: "bitwarden";
1792
+ external: "external";
1793
+ host: "host";
1794
+ keeper: "keeper";
1795
+ onepassword: "onepassword";
1796
+ opengeni: "opengeni";
1797
+ protonpass: "protonpass";
1798
+ }>;
1799
+ mode: z.ZodEnum<{
1800
+ read_only: "read_only";
1801
+ read_write: "read_write";
1802
+ }>;
1803
+ itemCount: z.ZodNumber;
1804
+ freshness: z.ZodOptional<z.ZodObject<{
1805
+ state: z.ZodEnum<{
1806
+ current: "current";
1807
+ refreshing: "refreshing";
1808
+ stale: "stale";
1809
+ unavailable: "unavailable";
1810
+ }>;
1811
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1812
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
1813
+ source: z.ZodEnum<{
1814
+ cache: "cache";
1815
+ live: "live";
1816
+ unknown: "unknown";
1817
+ }>;
1818
+ errorCode: z.ZodNullable<z.ZodString>;
1819
+ retryAt: z.ZodNullable<z.ZodString>;
1820
+ }, z.core.$strict>>;
1821
+ }, z.core.$strip>;
1822
+ export type SecretSearchVault = z.infer<typeof SecretSearchVault>;
1823
+ export declare const SecretSearchOutput: z.ZodObject<{
1824
+ items: z.ZodArray<z.ZodObject<{
1825
+ vault: z.ZodObject<{
1826
+ id: z.ZodString;
1827
+ name: z.ZodString;
1828
+ ownerKind: z.ZodEnum<{
1829
+ organization: "organization";
1830
+ task: "task";
1831
+ user: "user";
1832
+ workspace: "workspace";
1833
+ }>;
1834
+ source: z.ZodEnum<{
1835
+ bitwarden: "bitwarden";
1836
+ external: "external";
1837
+ host: "host";
1838
+ keeper: "keeper";
1839
+ onepassword: "onepassword";
1840
+ opengeni: "opengeni";
1841
+ protonpass: "protonpass";
1842
+ }>;
1843
+ mode: z.ZodEnum<{
1844
+ read_only: "read_only";
1845
+ read_write: "read_write";
1846
+ }>;
1847
+ }, z.core.$strip>;
1848
+ item: z.ZodObject<{
1849
+ id: z.ZodString;
1850
+ name: z.ZodString;
1851
+ type: z.ZodEnum<{
1852
+ api_key: "api_key";
1853
+ card: "card";
1854
+ file: "file";
1855
+ identity: "identity";
1856
+ login: "login";
1857
+ note: "note";
1858
+ passkey: "passkey";
1859
+ ssh_key: "ssh_key";
1860
+ }>;
1861
+ category: z.ZodNullable<z.ZodString>;
1862
+ websites: z.ZodArray<z.ZodString>;
1863
+ username: z.ZodNullable<z.ZodString>;
1864
+ hasTotp: z.ZodBoolean;
1865
+ hasPasskey: z.ZodBoolean;
1866
+ expiresAt: z.ZodNullable<z.ZodString>;
1867
+ }, z.core.$strip>;
1868
+ fields: z.ZodArray<z.ZodObject<{
1869
+ name: z.ZodString;
1870
+ kind: z.ZodEnum<{
1871
+ concealed: "concealed";
1872
+ file: "file";
1873
+ text: "text";
1874
+ totp: "totp";
1875
+ }>;
1876
+ }, z.core.$strip>>;
1877
+ references: z.ZodObject<{
1878
+ primary: z.ZodNullable<z.ZodString>;
1879
+ otp: z.ZodNullable<z.ZodString>;
1880
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
1881
+ }, z.core.$strip>;
1882
+ }, z.core.$strip>>;
1883
+ truncated: z.ZodBoolean;
1884
+ nextCursor: z.ZodNullable<z.ZodString>;
1885
+ vaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ name: z.ZodString;
1888
+ ownerKind: z.ZodEnum<{
1889
+ organization: "organization";
1890
+ task: "task";
1891
+ user: "user";
1892
+ workspace: "workspace";
1893
+ }>;
1894
+ source: z.ZodEnum<{
1895
+ bitwarden: "bitwarden";
1896
+ external: "external";
1897
+ host: "host";
1898
+ keeper: "keeper";
1899
+ onepassword: "onepassword";
1900
+ opengeni: "opengeni";
1901
+ protonpass: "protonpass";
1902
+ }>;
1903
+ mode: z.ZodEnum<{
1904
+ read_only: "read_only";
1905
+ read_write: "read_write";
1906
+ }>;
1907
+ itemCount: z.ZodNumber;
1908
+ freshness: z.ZodOptional<z.ZodObject<{
1909
+ state: z.ZodEnum<{
1910
+ current: "current";
1911
+ refreshing: "refreshing";
1912
+ stale: "stale";
1913
+ unavailable: "unavailable";
1914
+ }>;
1915
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1916
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
1917
+ source: z.ZodEnum<{
1918
+ cache: "cache";
1919
+ live: "live";
1920
+ unknown: "unknown";
1921
+ }>;
1922
+ errorCode: z.ZodNullable<z.ZodString>;
1923
+ retryAt: z.ZodNullable<z.ZodString>;
1924
+ }, z.core.$strict>>;
1925
+ }, z.core.$strip>>>;
1926
+ complete: z.ZodOptional<z.ZodBoolean>;
1927
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
1928
+ vaultId: z.ZodString;
1929
+ freshness: z.ZodObject<{
1930
+ state: z.ZodEnum<{
1931
+ current: "current";
1932
+ refreshing: "refreshing";
1933
+ stale: "stale";
1934
+ unavailable: "unavailable";
1935
+ }>;
1936
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1937
+ sourceSyncedAt: z.ZodNullable<z.ZodString>;
1938
+ source: z.ZodEnum<{
1939
+ cache: "cache";
1940
+ live: "live";
1941
+ unknown: "unknown";
1942
+ }>;
1943
+ errorCode: z.ZodNullable<z.ZodString>;
1944
+ retryAt: z.ZodNullable<z.ZodString>;
1945
+ }, z.core.$strict>;
1946
+ }, z.core.$strip>>>;
1947
+ }, z.core.$strip>;
1948
+ export type SecretSearchOutput = z.infer<typeof SecretSearchOutput>;
1949
+ export declare const SecretSaveFieldInput: z.ZodObject<{
1950
+ name: z.ZodString;
1951
+ kind: z.ZodOptional<z.ZodEnum<{
1952
+ concealed: "concealed";
1953
+ file: "file";
1954
+ text: "text";
1955
+ totp: "totp";
1956
+ }>>;
1957
+ value: z.ZodOptional<z.ZodString>;
1958
+ generate: z.ZodOptional<z.ZodObject<{
1959
+ length: z.ZodDefault<z.ZodNumber>;
1960
+ lowercase: z.ZodDefault<z.ZodBoolean>;
1961
+ uppercase: z.ZodDefault<z.ZodBoolean>;
1962
+ digits: z.ZodDefault<z.ZodBoolean>;
1963
+ symbols: z.ZodDefault<z.ZodBoolean>;
1964
+ symbolSet: z.ZodDefault<z.ZodString>;
1965
+ excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
1966
+ requireEachClass: z.ZodDefault<z.ZodBoolean>;
1967
+ }, z.core.$strict>>;
1968
+ generateKey: z.ZodOptional<z.ZodObject<{
1969
+ algorithm: z.ZodDefault<z.ZodEnum<{
1970
+ ed25519: "ed25519";
1971
+ rsa4096: "rsa4096";
1972
+ }>>;
1973
+ }, z.core.$strict>>;
1974
+ fromReference: z.ZodOptional<z.ZodString>;
1975
+ restoreVersion: z.ZodOptional<z.ZodNumber>;
1976
+ }, z.core.$strict>;
1977
+ export type SecretSaveFieldInput = z.infer<typeof SecretSaveFieldInput>;
1978
+ export declare const SecretSaveInput: z.ZodObject<{
1979
+ item: z.ZodString;
1980
+ vault: z.ZodOptional<z.ZodString>;
1981
+ saveTo: z.ZodOptional<z.ZodEnum<{
1982
+ task: "task";
1983
+ user: "user";
1984
+ workspace: "workspace";
1985
+ }>>;
1986
+ type: z.ZodDefault<z.ZodEnum<{
1987
+ api_key: "api_key";
1988
+ card: "card";
1989
+ file: "file";
1990
+ identity: "identity";
1991
+ login: "login";
1992
+ note: "note";
1993
+ passkey: "passkey";
1994
+ ssh_key: "ssh_key";
1995
+ }>>;
1996
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1997
+ websites: z.ZodOptional<z.ZodArray<z.ZodString>>;
1998
+ username: z.ZodOptional<z.ZodString>;
1999
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2000
+ name: z.ZodString;
2001
+ kind: z.ZodOptional<z.ZodEnum<{
2002
+ concealed: "concealed";
2003
+ file: "file";
2004
+ text: "text";
2005
+ totp: "totp";
2006
+ }>>;
2007
+ value: z.ZodOptional<z.ZodString>;
2008
+ generate: z.ZodOptional<z.ZodObject<{
2009
+ length: z.ZodDefault<z.ZodNumber>;
2010
+ lowercase: z.ZodDefault<z.ZodBoolean>;
2011
+ uppercase: z.ZodDefault<z.ZodBoolean>;
2012
+ digits: z.ZodDefault<z.ZodBoolean>;
2013
+ symbols: z.ZodDefault<z.ZodBoolean>;
2014
+ symbolSet: z.ZodDefault<z.ZodString>;
2015
+ excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
2016
+ requireEachClass: z.ZodDefault<z.ZodBoolean>;
2017
+ }, z.core.$strict>>;
2018
+ generateKey: z.ZodOptional<z.ZodObject<{
2019
+ algorithm: z.ZodDefault<z.ZodEnum<{
2020
+ ed25519: "ed25519";
2021
+ rsa4096: "rsa4096";
2022
+ }>>;
2023
+ }, z.core.$strict>>;
2024
+ fromReference: z.ZodOptional<z.ZodString>;
2025
+ restoreVersion: z.ZodOptional<z.ZodNumber>;
2026
+ }, z.core.$strict>>>;
2027
+ mode: z.ZodDefault<z.ZodEnum<{
2028
+ create: "create";
2029
+ update: "update";
2030
+ upsert: "upsert";
2031
+ }>>;
2032
+ }, z.core.$strict>;
2033
+ export type SecretSaveInput = z.infer<typeof SecretSaveInput>;
2034
+ export declare const SecretSaveOutput: z.ZodObject<{
2035
+ item: z.ZodObject<{
2036
+ id: z.ZodString;
2037
+ vaultId: z.ZodString;
2038
+ type: z.ZodEnum<{
2039
+ api_key: "api_key";
2040
+ card: "card";
2041
+ file: "file";
2042
+ identity: "identity";
2043
+ login: "login";
2044
+ note: "note";
2045
+ passkey: "passkey";
2046
+ ssh_key: "ssh_key";
2047
+ }>;
2048
+ category: z.ZodNullable<z.ZodString>;
2049
+ name: z.ZodString;
2050
+ websites: z.ZodArray<z.ZodString>;
2051
+ username: z.ZodNullable<z.ZodString>;
2052
+ hasTotp: z.ZodBoolean;
2053
+ hasPasskey: z.ZodBoolean;
2054
+ expiresAt: z.ZodNullable<z.ZodString>;
2055
+ archivedAt: z.ZodNullable<z.ZodString>;
2056
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2057
+ updatedAt: z.ZodString;
2058
+ references: z.ZodObject<{
2059
+ primary: z.ZodNullable<z.ZodString>;
2060
+ otp: z.ZodNullable<z.ZodString>;
2061
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
2062
+ }, z.core.$strip>;
2063
+ }, z.core.$strip>;
2064
+ references: z.ZodObject<{
2065
+ primary: z.ZodNullable<z.ZodString>;
2066
+ otp: z.ZodNullable<z.ZodString>;
2067
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
2068
+ }, z.core.$strip>;
2069
+ generatedFields: z.ZodArray<z.ZodString>;
2070
+ }, z.core.$strip>;
2071
+ export type SecretSaveOutput = z.infer<typeof SecretSaveOutput>;
2072
+ export declare const SecretGetInput: z.ZodObject<{
2073
+ reference: z.ZodString;
2074
+ version: z.ZodOptional<z.ZodNumber>;
2075
+ }, z.core.$strict>;
2076
+ export type SecretGetInput = z.infer<typeof SecretGetInput>;
2077
+ export declare const SecretGetOutput: z.ZodObject<{
2078
+ value: z.ZodString;
2079
+ encoding: z.ZodEnum<{
2080
+ base64: "base64";
2081
+ utf8: "utf8";
2082
+ }>;
2083
+ version: z.ZodNullable<z.ZodNumber>;
2084
+ totp: z.ZodNullable<z.ZodObject<{
2085
+ code: z.ZodString;
2086
+ periodSeconds: z.ZodNumber;
2087
+ expiresAt: z.ZodString;
2088
+ }, z.core.$strip>>;
2089
+ }, z.core.$strip>;
2090
+ export type SecretGetOutput = RevealVaultFieldResponse;
2091
+ export declare const SecretMoveInput: z.ZodObject<{
2092
+ reference: z.ZodString;
2093
+ toVault: z.ZodString;
2094
+ mode: z.ZodDefault<z.ZodEnum<{
2095
+ copy: "copy";
2096
+ move: "move";
2097
+ }>>;
2098
+ newName: z.ZodOptional<z.ZodString>;
2099
+ }, z.core.$strict>;
2100
+ export type SecretMoveInput = z.infer<typeof SecretMoveInput>;
2101
+ export declare const SecretMoveOutput: z.ZodObject<{
2102
+ item: z.ZodObject<{
2103
+ id: z.ZodString;
2104
+ vaultId: z.ZodString;
2105
+ type: z.ZodEnum<{
2106
+ api_key: "api_key";
2107
+ card: "card";
2108
+ file: "file";
2109
+ identity: "identity";
2110
+ login: "login";
2111
+ note: "note";
2112
+ passkey: "passkey";
2113
+ ssh_key: "ssh_key";
2114
+ }>;
2115
+ category: z.ZodNullable<z.ZodString>;
2116
+ name: z.ZodString;
2117
+ websites: z.ZodArray<z.ZodString>;
2118
+ username: z.ZodNullable<z.ZodString>;
2119
+ hasTotp: z.ZodBoolean;
2120
+ hasPasskey: z.ZodBoolean;
2121
+ expiresAt: z.ZodNullable<z.ZodString>;
2122
+ archivedAt: z.ZodNullable<z.ZodString>;
2123
+ lastUsedAt: z.ZodNullable<z.ZodString>;
2124
+ updatedAt: z.ZodString;
2125
+ references: z.ZodObject<{
2126
+ primary: z.ZodNullable<z.ZodString>;
2127
+ otp: z.ZodNullable<z.ZodString>;
2128
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
2129
+ }, z.core.$strip>;
2130
+ }, z.core.$strip>;
2131
+ references: z.ZodObject<{
2132
+ primary: z.ZodNullable<z.ZodString>;
2133
+ otp: z.ZodNullable<z.ZodString>;
2134
+ byField: z.ZodRecord<z.ZodString, z.ZodString>;
2135
+ }, z.core.$strip>;
2136
+ }, z.core.$strip>;
2137
+ export type SecretMoveOutput = z.infer<typeof SecretMoveOutput>;
2138
+ export declare const SecretDeleteInput: z.ZodObject<{
2139
+ reference: z.ZodString;
2140
+ }, z.core.$strict>;
2141
+ export type SecretDeleteInput = z.infer<typeof SecretDeleteInput>;
2142
+ export declare const SecretDeleteOutput: z.ZodObject<{
2143
+ archived: z.ZodLiteral<true>;
2144
+ restoreHint: z.ZodString;
2145
+ }, z.core.$strip>;
2146
+ export type SecretDeleteOutput = z.infer<typeof SecretDeleteOutput>;
2147
+ export declare const VAULT_POLICY_UPDATED_EVENT_TYPE: "session.vaultPolicy.updated";
2148
+ export declare const VAULT_AUDIT_ACTIONS: readonly ["vault.created", "vault.updated", "vault.deleted", "vault.item.created", "vault.item.updated", "vault.item.archived", "vault.item.restored", "vault.item.deleted", "vault.item.moved", "vault.item.copied", "vault.field.set", "vault.field.revealed", "vault.secret.used", "vault.secret.read", "vault.secret.read.denied", "vault.reference.failed", "vault.provider.connected", "vault.provider.linked", "vault.provider.synced", "vault.provider.error", "vault.passkey.registered", "vault.passkey.asserted", "vault.policy.updated", "vault.migrated"];
2149
+ export declare const VaultAuditAction: z.ZodEnum<{
2150
+ "vault.created": "vault.created";
2151
+ "vault.deleted": "vault.deleted";
2152
+ "vault.field.revealed": "vault.field.revealed";
2153
+ "vault.field.set": "vault.field.set";
2154
+ "vault.item.archived": "vault.item.archived";
2155
+ "vault.item.copied": "vault.item.copied";
2156
+ "vault.item.created": "vault.item.created";
2157
+ "vault.item.deleted": "vault.item.deleted";
2158
+ "vault.item.moved": "vault.item.moved";
2159
+ "vault.item.restored": "vault.item.restored";
2160
+ "vault.item.updated": "vault.item.updated";
2161
+ "vault.migrated": "vault.migrated";
2162
+ "vault.passkey.asserted": "vault.passkey.asserted";
2163
+ "vault.passkey.registered": "vault.passkey.registered";
2164
+ "vault.policy.updated": "vault.policy.updated";
2165
+ "vault.provider.connected": "vault.provider.connected";
2166
+ "vault.provider.error": "vault.provider.error";
2167
+ "vault.provider.linked": "vault.provider.linked";
2168
+ "vault.provider.synced": "vault.provider.synced";
2169
+ "vault.reference.failed": "vault.reference.failed";
2170
+ "vault.secret.read": "vault.secret.read";
2171
+ "vault.secret.read.denied": "vault.secret.read.denied";
2172
+ "vault.secret.used": "vault.secret.used";
2173
+ "vault.updated": "vault.updated";
2174
+ }>;
2175
+ export type VaultAuditAction = z.infer<typeof VaultAuditAction>;
2176
+ export declare const VAULT_AUDIT_TARGET_TYPES: readonly ["vault", "vault_item"];
2177
+ export declare const VAULT_METRIC_NAMES: {
2178
+ readonly resolutions: "opengeni_secret_resolutions_total";
2179
+ readonly resolutionDuration: "opengeni_secret_resolution_duration_seconds";
2180
+ readonly execEnvBytes: "opengeni_secret_exec_env_bytes";
2181
+ readonly providerCalls: "opengeni_vault_provider_calls_total";
2182
+ readonly providerRateLimited: "opengeni_vault_provider_rate_limited_total";
2183
+ readonly passkeyAssertions: "opengeni_passkey_assertions_total";
2184
+ };
2185
+ export {};