@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,813 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Published Sites: a workspace Site served on its own hostname under a
4
+ * configurable Sites domain (production `opengeni.site`, staging a separate
5
+ * domain). Shared by the API, the Site gateway Worker, the console and the
6
+ * SDK. See docs/design/published-sites-2026-10-14.md.
7
+ *
8
+ * Nothing here names a concrete domain: every domain is configuration.
9
+ */
10
+ export declare const SITE_HOSTNAME_LABEL_MIN = 3;
11
+ export declare const SITE_HOSTNAME_LABEL_MAX = 63;
12
+ /** A released hostname stays reserved to its workspace for at least this long. */
13
+ export declare const SITE_HOSTNAME_RELEASE_HOLD_DAYS = 30;
14
+ /** Labels no Site may take: platform, mail, auth and infrastructure names. */
15
+ export declare const SITE_RESERVED_HOSTNAME_LABELS: readonly string[];
16
+ /**
17
+ * Words that make a hostname look like a credential, payment or brand page.
18
+ * A label containing any of them is refused (substring match on the label
19
+ * with hyphens removed), whoever asks.
20
+ */
21
+ export declare const SITE_BLOCKED_HOSTNAME_WORDS: readonly string[];
22
+ export type SiteHostnameLabelProblem = "length" | "characters" | "hyphen" | "punycode" | "reserved" | "blocked";
23
+ export declare const SITE_HOSTNAME_PROBLEM_MESSAGES: Readonly<Record<SiteHostnameLabelProblem, string>>;
24
+ /**
25
+ * Validate one DNS label for a Site hostname. Pure and environment-neutral:
26
+ * the API, the gateway and the console all call it. Availability (global
27
+ * uniqueness and the release hold) is decided only by the API.
28
+ */
29
+ export declare function siteHostnameLabelProblem(label: string): SiteHostnameLabelProblem | null;
30
+ export declare const SiteHostnameLabel: z.ZodString;
31
+ export type SiteHostnameLabel = z.infer<typeof SiteHostnameLabel>;
32
+ /**
33
+ * Suggest a default label from a Site title: a slug plus a random
34
+ * four-character suffix (`team-dashboard-4k9x`), always valid by
35
+ * construction. `suffix` must be 4 chars of [a-z0-9]; callers supply it so
36
+ * this stays pure.
37
+ */
38
+ export declare function suggestSiteHostnameLabel(title: string, suffix: string): string;
39
+ /** Normalize a configured Sites domain (`opengeni.site`); throws when it is not a hostname. */
40
+ export declare function normalizeSitesDomain(domain: string): string;
41
+ /** `<label>.<domain>` for a valid label and configured domain. */
42
+ export declare function siteHostname(label: string, sitesDomain: string): string;
43
+ /**
44
+ * The label of a flat one-level Site hostname under the Sites domain, or null
45
+ * for the apex, deeper names, other domains and invalid labels. A port and a
46
+ * trailing dot are ignored.
47
+ */
48
+ export declare function parseSiteHostname(host: string, sitesDomain: string): string | null;
49
+ /**
50
+ * Who may open a published Site.
51
+ * - members: signed-in members of the Site's workspace.
52
+ * - invited: members plus people invited by email (they sign in to Opengeni).
53
+ * - public: anyone; anonymous visitors use a guest principal. On deployments
54
+ * configured login-only (staging), public means any signed-in Opengeni user.
55
+ */
56
+ export declare const SiteAccessMode: z.ZodEnum<{
57
+ invited: "invited";
58
+ members: "members";
59
+ public: "public";
60
+ }>;
61
+ export type SiteAccessMode = z.infer<typeof SiteAccessMode>;
62
+ /**
63
+ * active: served. unpublished: the owner turned publishing off (the hostname
64
+ * stays held). suspended: taken down by the owner, a workspace admin or a
65
+ * platform moderator; the gateway serves a takedown page.
66
+ */
67
+ export declare const SitePublicationStatus: z.ZodEnum<{
68
+ active: "active";
69
+ suspended: "suspended";
70
+ unpublished: "unpublished";
71
+ }>;
72
+ export type SitePublicationStatus = z.infer<typeof SitePublicationStatus>;
73
+ export declare const SiteLimitProfileKind: z.ZodEnum<{
74
+ credits: "credits";
75
+ custom: "custom";
76
+ free: "free";
77
+ standard: "standard";
78
+ unlimited: "unlimited";
79
+ }>;
80
+ export type SiteLimitProfileKind = z.infer<typeof SiteLimitProfileKind>;
81
+ /**
82
+ * Effective limits for a published Site. Money is in micro-USD
83
+ * (1_000_000 = $1). They apply to people outside the workspace only
84
+ * (invited people and public visitors, signed in or anonymous); workspace
85
+ * members are never limited by them and use the workspace's normal session
86
+ * limits, on any Site. Cloudflare cannot cap spend, so the edge applies only
87
+ * flood brakes; Opengeni enforces these values.
88
+ */
89
+ export declare const SiteLimits: z.ZodObject<{
90
+ requestsPerMinutePerVisitor: z.ZodNullable<z.ZodNumber>;
91
+ guestWritesPerMinute: z.ZodNullable<z.ZodNumber>;
92
+ agentsEnabled: z.ZodBoolean;
93
+ guestAgentsEnabled: z.ZodBoolean;
94
+ conversationsPerVisitorPerDay: z.ZodNullable<z.ZodNumber>;
95
+ conversationsPerSitePerDay: z.ZodNullable<z.ZodNumber>;
96
+ turnsPerConversation: z.ZodNullable<z.ZodNumber>;
97
+ agentMicrosPerConversation: z.ZodNullable<z.ZodNumber>;
98
+ agentMicrosPerVisitorPerDay: z.ZodNullable<z.ZodNumber>;
99
+ agentMicrosPerVisitorPerMonth: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
100
+ agentMicrosPerSitePerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
101
+ agentMicrosPerSitePerMonth: z.ZodNullable<z.ZodNumber>;
102
+ agentModels: z.ZodNullable<z.ZodArray<z.ZodString>>;
103
+ }, z.core.$strip>;
104
+ export type SiteLimits = z.infer<typeof SiteLimits>;
105
+ /**
106
+ * The standard limits: $10 per Site per month for everyone outside the
107
+ * workspace together, no per-person limit, and internal bot guards for
108
+ * anonymous guests (conversation and message counts are not shown to Site
109
+ * owners). Deployments override them through settings.
110
+ */
111
+ export declare const DEFAULT_SITE_LIMITS: Readonly<SiteLimits>;
112
+ /** @deprecated The former `free` profile; now the standard limits (DEFAULT_SITE_LIMITS). */
113
+ export declare const DEFAULT_FREE_SITE_LIMITS: Readonly<SiteLimits>;
114
+ /** Hard caps that still apply under every profile, unlimited included. */
115
+ export declare const UNLIMITED_SITE_FLOOD_BRAKES: Readonly<{
116
+ requestsPerMinutePerVisitor: 600;
117
+ conversationsPerSitePerDay: 10000;
118
+ agentMicrosPerConversation: 5000000;
119
+ }>;
120
+ export declare const SiteLimitProfile: z.ZodObject<{
121
+ kind: z.ZodEnum<{
122
+ credits: "credits";
123
+ custom: "custom";
124
+ free: "free";
125
+ standard: "standard";
126
+ unlimited: "unlimited";
127
+ }>;
128
+ overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
129
+ requestsPerMinutePerVisitor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
+ guestWritesPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
131
+ agentsEnabled: z.ZodOptional<z.ZodBoolean>;
132
+ guestAgentsEnabled: z.ZodOptional<z.ZodBoolean>;
133
+ conversationsPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
134
+ conversationsPerSitePerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
135
+ turnsPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
136
+ agentMicrosPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
+ agentMicrosPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
138
+ agentMicrosPerVisitorPerMonth: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
139
+ agentMicrosPerSitePerDay: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
140
+ agentMicrosPerSitePerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
141
+ agentModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
142
+ }, z.core.$strip>>>;
143
+ }, z.core.$strip>;
144
+ export type SiteLimitProfile = z.infer<typeof SiteLimitProfile>;
145
+ export declare const SiteEmbeddedAgent: z.ZodObject<{
146
+ enabled: z.ZodBoolean;
147
+ model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
148
+ instructions: z.ZodDefault<z.ZodNullable<z.ZodString>>;
149
+ tools: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
150
+ guestTools: z.ZodDefault<z.ZodBoolean>;
151
+ }, z.core.$strip>;
152
+ export type SiteEmbeddedAgent = z.infer<typeof SiteEmbeddedAgent>;
153
+ /** Changes to the embedded agent; omitted fields keep their current value. */
154
+ export declare const SiteEmbeddedAgentChanges: z.ZodObject<{
155
+ enabled: z.ZodOptional<z.ZodBoolean>;
156
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
159
+ guestTools: z.ZodOptional<z.ZodBoolean>;
160
+ }, z.core.$strip>;
161
+ export type SiteEmbeddedAgentChanges = z.infer<typeof SiteEmbeddedAgentChanges>;
162
+ /** A safe one-click fix for a readiness warning (applied through the ordinary APIs). */
163
+ export declare const SitePublishWarningFix: z.ZodDiscriminatedUnion<[z.ZodObject<{
164
+ kind: z.ZodLiteral<"site_data_guest_access">;
165
+ collection: z.ZodString;
166
+ guestAccess: z.ZodEnum<{
167
+ append: "append";
168
+ own: "own";
169
+ read: "read";
170
+ }>;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ kind: z.ZodLiteral<"site_sql_query_audience">;
173
+ query: z.ZodString;
174
+ audience: z.ZodEnum<{
175
+ everyone: "everyone";
176
+ signed_in: "signed_in";
177
+ }>;
178
+ }, z.core.$strip>], "kind">;
179
+ export type SitePublishWarningFix = z.infer<typeof SitePublishWarningFix>;
180
+ export declare const SITE_PUBLISH_WARNING_CODES: readonly ["workspace_tools_members_only", "agent_tools_members_only", "site_data_guest_read", "site_data_guest_write", "site_data_members_write", "site_sql_query_signed_in", "site_sql_query_managers",
181
+ /** No longer reported (the fallback shows as outsideAgentModel); kept for compatibility. */
182
+ "agent_model_outside_fallback", "agent_model_outside_unavailable",
183
+ /** The workspace has no credits for the outside model right now. */
184
+ "agent_model_outside_no_credits",
185
+ /** The workspace's usage allowance is used up, so outsiders' turns are refused. */
186
+ "agent_model_outside_allowance_used",
187
+ /** The page was too large to read, so what it uses was not checked. */
188
+ "page_not_checked",
189
+ /**
190
+ * A public Site on a login-only deployment: every visitor signs in to
191
+ * Opengeni first. A notice about the deployment, with nothing to fix.
192
+ */
193
+ "public_sign_in_required"];
194
+ /** Warnings that only inform: nothing on the Site can or needs to change. */
195
+ export declare const SITE_PUBLISH_NOTICE_CODES: ReadonlySet<(typeof SITE_PUBLISH_WARNING_CODES)[number]>;
196
+ /**
197
+ * Something the published version uses that its audience may not do. Found
198
+ * by a conservative static reading of the page source and the Site's
199
+ * declared tools, collections and queries (docs/published-sites.md).
200
+ */
201
+ export declare const SitePublishWarning: z.ZodObject<{
202
+ code: z.ZodEnum<{
203
+ agent_model_outside_allowance_used: "agent_model_outside_allowance_used";
204
+ agent_model_outside_fallback: "agent_model_outside_fallback";
205
+ agent_model_outside_no_credits: "agent_model_outside_no_credits";
206
+ agent_model_outside_unavailable: "agent_model_outside_unavailable";
207
+ agent_tools_members_only: "agent_tools_members_only";
208
+ page_not_checked: "page_not_checked";
209
+ public_sign_in_required: "public_sign_in_required";
210
+ site_data_guest_read: "site_data_guest_read";
211
+ site_data_guest_write: "site_data_guest_write";
212
+ site_data_members_write: "site_data_members_write";
213
+ site_sql_query_managers: "site_sql_query_managers";
214
+ site_sql_query_signed_in: "site_sql_query_signed_in";
215
+ workspace_tools_members_only: "workspace_tools_members_only";
216
+ }>;
217
+ message: z.ZodString;
218
+ suggestion: z.ZodString;
219
+ fix: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
220
+ kind: z.ZodLiteral<"site_data_guest_access">;
221
+ collection: z.ZodString;
222
+ guestAccess: z.ZodEnum<{
223
+ append: "append";
224
+ own: "own";
225
+ read: "read";
226
+ }>;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ kind: z.ZodLiteral<"site_sql_query_audience">;
229
+ query: z.ZodString;
230
+ audience: z.ZodEnum<{
231
+ everyone: "everyone";
232
+ signed_in: "signed_in";
233
+ }>;
234
+ }, z.core.$strip>], "kind">>>;
235
+ }, z.core.$strip>;
236
+ export type SitePublishWarning = z.infer<typeof SitePublishWarning>;
237
+ export declare const SitePublication: z.ZodObject<{
238
+ siteId: z.ZodString;
239
+ workspaceId: z.ZodString;
240
+ label: z.ZodString;
241
+ hostname: z.ZodString;
242
+ url: z.ZodString;
243
+ access: z.ZodEnum<{
244
+ invited: "invited";
245
+ members: "members";
246
+ public: "public";
247
+ }>;
248
+ status: z.ZodEnum<{
249
+ active: "active";
250
+ suspended: "suspended";
251
+ unpublished: "unpublished";
252
+ }>;
253
+ noindex: z.ZodBoolean;
254
+ agent: z.ZodObject<{
255
+ enabled: z.ZodBoolean;
256
+ model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
257
+ instructions: z.ZodDefault<z.ZodNullable<z.ZodString>>;
258
+ tools: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
259
+ guestTools: z.ZodDefault<z.ZodBoolean>;
260
+ }, z.core.$strip>;
261
+ limitProfile: z.ZodObject<{
262
+ kind: z.ZodEnum<{
263
+ credits: "credits";
264
+ custom: "custom";
265
+ free: "free";
266
+ standard: "standard";
267
+ unlimited: "unlimited";
268
+ }>;
269
+ overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
270
+ requestsPerMinutePerVisitor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
271
+ guestWritesPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
272
+ agentsEnabled: z.ZodOptional<z.ZodBoolean>;
273
+ guestAgentsEnabled: z.ZodOptional<z.ZodBoolean>;
274
+ conversationsPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
275
+ conversationsPerSitePerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
276
+ turnsPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
277
+ agentMicrosPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
278
+ agentMicrosPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
279
+ agentMicrosPerVisitorPerMonth: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
280
+ agentMicrosPerSitePerDay: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
281
+ agentMicrosPerSitePerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
282
+ agentModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
283
+ }, z.core.$strip>>>;
284
+ }, z.core.$strip>;
285
+ effectiveLimits: z.ZodObject<{
286
+ requestsPerMinutePerVisitor: z.ZodNullable<z.ZodNumber>;
287
+ guestWritesPerMinute: z.ZodNullable<z.ZodNumber>;
288
+ agentsEnabled: z.ZodBoolean;
289
+ guestAgentsEnabled: z.ZodBoolean;
290
+ conversationsPerVisitorPerDay: z.ZodNullable<z.ZodNumber>;
291
+ conversationsPerSitePerDay: z.ZodNullable<z.ZodNumber>;
292
+ turnsPerConversation: z.ZodNullable<z.ZodNumber>;
293
+ agentMicrosPerConversation: z.ZodNullable<z.ZodNumber>;
294
+ agentMicrosPerVisitorPerDay: z.ZodNullable<z.ZodNumber>;
295
+ agentMicrosPerVisitorPerMonth: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
296
+ agentMicrosPerSitePerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
297
+ agentMicrosPerSitePerMonth: z.ZodNullable<z.ZodNumber>;
298
+ agentModels: z.ZodNullable<z.ZodArray<z.ZodString>>;
299
+ }, z.core.$strip>;
300
+ invitedEmails: z.ZodArray<z.ZodString>;
301
+ moderation: z.ZodObject<{
302
+ openReports: z.ZodNumber;
303
+ suspendedAt: z.ZodNullable<z.ZodString>;
304
+ suspendedBy: z.ZodNullable<z.ZodEnum<{
305
+ admin: "admin";
306
+ owner: "owner";
307
+ platform: "platform";
308
+ }>>;
309
+ suspendedReason: z.ZodNullable<z.ZodString>;
310
+ }, z.core.$strip>;
311
+ usage: z.ZodObject<{
312
+ agentMicrosThisMonth: z.ZodNumber;
313
+ agentMicrosToday: z.ZodDefault<z.ZodNumber>;
314
+ conversationsToday: z.ZodNumber;
315
+ }, z.core.$strip>;
316
+ warnings: z.ZodDefault<z.ZodArray<z.ZodObject<{
317
+ code: z.ZodEnum<{
318
+ agent_model_outside_allowance_used: "agent_model_outside_allowance_used";
319
+ agent_model_outside_fallback: "agent_model_outside_fallback";
320
+ agent_model_outside_no_credits: "agent_model_outside_no_credits";
321
+ agent_model_outside_unavailable: "agent_model_outside_unavailable";
322
+ agent_tools_members_only: "agent_tools_members_only";
323
+ page_not_checked: "page_not_checked";
324
+ public_sign_in_required: "public_sign_in_required";
325
+ site_data_guest_read: "site_data_guest_read";
326
+ site_data_guest_write: "site_data_guest_write";
327
+ site_data_members_write: "site_data_members_write";
328
+ site_sql_query_managers: "site_sql_query_managers";
329
+ site_sql_query_signed_in: "site_sql_query_signed_in";
330
+ workspace_tools_members_only: "workspace_tools_members_only";
331
+ }>;
332
+ message: z.ZodString;
333
+ suggestion: z.ZodString;
334
+ fix: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
335
+ kind: z.ZodLiteral<"site_data_guest_access">;
336
+ collection: z.ZodString;
337
+ guestAccess: z.ZodEnum<{
338
+ append: "append";
339
+ own: "own";
340
+ read: "read";
341
+ }>;
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ kind: z.ZodLiteral<"site_sql_query_audience">;
344
+ query: z.ZodString;
345
+ audience: z.ZodEnum<{
346
+ everyone: "everyone";
347
+ signed_in: "signed_in";
348
+ }>;
349
+ }, z.core.$strip>], "kind">>>;
350
+ }, z.core.$strip>>>;
351
+ outsideAgentModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
352
+ createdAt: z.ZodString;
353
+ updatedAt: z.ZodString;
354
+ }, z.core.$strip>;
355
+ export type SitePublication = z.infer<typeof SitePublication>;
356
+ /**
357
+ * GET /v1/workspaces/:ws/published-artifacts/:siteId/publication/link
358
+ *
359
+ * Where a published Site lives, for anyone who can open the Site in the app:
360
+ * its primary public URL and whether it is on the web now. Managing the
361
+ * publication (access, limits, moderation) stays with `SitePublication`.
362
+ */
363
+ export declare const SitePublicationLink: z.ZodObject<{
364
+ siteId: z.ZodString;
365
+ hostname: z.ZodString;
366
+ url: z.ZodString;
367
+ status: z.ZodEnum<{
368
+ active: "active";
369
+ suspended: "suspended";
370
+ unpublished: "unpublished";
371
+ }>;
372
+ }, z.core.$strip>;
373
+ export type SitePublicationLink = z.infer<typeof SitePublicationLink>;
374
+ /** PUT /v1/workspaces/:ws/published-artifacts/:siteId/publication */
375
+ export declare const UpsertSitePublicationRequest: z.ZodObject<{
376
+ label: z.ZodOptional<z.ZodString>;
377
+ access: z.ZodOptional<z.ZodEnum<{
378
+ invited: "invited";
379
+ members: "members";
380
+ public: "public";
381
+ }>>;
382
+ status: z.ZodOptional<z.ZodEnum<{
383
+ active: "active";
384
+ unpublished: "unpublished";
385
+ }>>;
386
+ noindex: z.ZodOptional<z.ZodBoolean>;
387
+ agent: z.ZodOptional<z.ZodObject<{
388
+ enabled: z.ZodOptional<z.ZodBoolean>;
389
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
392
+ guestTools: z.ZodOptional<z.ZodBoolean>;
393
+ }, z.core.$strip>>;
394
+ limitProfile: z.ZodOptional<z.ZodObject<{
395
+ kind: z.ZodEnum<{
396
+ credits: "credits";
397
+ custom: "custom";
398
+ free: "free";
399
+ standard: "standard";
400
+ unlimited: "unlimited";
401
+ }>;
402
+ overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
403
+ requestsPerMinutePerVisitor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
404
+ guestWritesPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
405
+ agentsEnabled: z.ZodOptional<z.ZodBoolean>;
406
+ guestAgentsEnabled: z.ZodOptional<z.ZodBoolean>;
407
+ conversationsPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
408
+ conversationsPerSitePerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
409
+ turnsPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
410
+ agentMicrosPerConversation: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
411
+ agentMicrosPerVisitorPerDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
412
+ agentMicrosPerVisitorPerMonth: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
413
+ agentMicrosPerSitePerDay: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
414
+ agentMicrosPerSitePerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
415
+ agentModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
416
+ }, z.core.$strip>>>;
417
+ }, z.core.$strip>>;
418
+ invitedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ }, z.core.$strip>;
420
+ export type UpsertSitePublicationRequest = z.infer<typeof UpsertSitePublicationRequest>;
421
+ export declare const SiteHostnameAvailabilityProblem: z.ZodEnum<{
422
+ blocked: "blocked";
423
+ characters: "characters";
424
+ held: "held";
425
+ hyphen: "hyphen";
426
+ length: "length";
427
+ punycode: "punycode";
428
+ reserved: "reserved";
429
+ taken: "taken";
430
+ }>;
431
+ export type SiteHostnameAvailabilityProblem = z.infer<typeof SiteHostnameAvailabilityProblem>;
432
+ /** GET /v1/workspaces/:ws/site-hostnames/:label */
433
+ export declare const SiteHostnameAvailability: z.ZodObject<{
434
+ label: z.ZodString;
435
+ hostname: z.ZodNullable<z.ZodString>;
436
+ available: z.ZodBoolean;
437
+ problem: z.ZodNullable<z.ZodEnum<{
438
+ blocked: "blocked";
439
+ characters: "characters";
440
+ held: "held";
441
+ hyphen: "hyphen";
442
+ length: "length";
443
+ punycode: "punycode";
444
+ reserved: "reserved";
445
+ taken: "taken";
446
+ }>>;
447
+ message: z.ZodNullable<z.ZodString>;
448
+ }, z.core.$strip>;
449
+ export type SiteHostnameAvailability = z.infer<typeof SiteHostnameAvailability>;
450
+ /** POST .../publication/takedown (owner, workspace admin) and the platform admin route. */
451
+ export declare const SiteTakedownRequest: z.ZodObject<{
452
+ reason: z.ZodString;
453
+ }, z.core.$strip>;
454
+ export type SiteTakedownRequest = z.infer<typeof SiteTakedownRequest>;
455
+ export declare const SiteAbuseCategory: z.ZodEnum<{
456
+ copyright: "copyright";
457
+ harassment: "harassment";
458
+ illegal: "illegal";
459
+ malware: "malware";
460
+ other: "other";
461
+ phishing: "phishing";
462
+ spam: "spam";
463
+ }>;
464
+ export type SiteAbuseCategory = z.infer<typeof SiteAbuseCategory>;
465
+ /** POST /_og/report on a Site host, forwarded to /v1/site-runtime/site/reports. */
466
+ export declare const SiteAbuseReportRequest: z.ZodObject<{
467
+ category: z.ZodEnum<{
468
+ copyright: "copyright";
469
+ harassment: "harassment";
470
+ illegal: "illegal";
471
+ malware: "malware";
472
+ other: "other";
473
+ phishing: "phishing";
474
+ spam: "spam";
475
+ }>;
476
+ message: z.ZodDefault<z.ZodString>;
477
+ contactEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
478
+ }, z.core.$strip>;
479
+ export type SiteAbuseReportRequest = z.infer<typeof SiteAbuseReportRequest>;
480
+ export declare const SiteAbuseReport: z.ZodObject<{
481
+ id: z.ZodString;
482
+ siteId: z.ZodString;
483
+ hostname: z.ZodString;
484
+ category: z.ZodEnum<{
485
+ copyright: "copyright";
486
+ harassment: "harassment";
487
+ illegal: "illegal";
488
+ malware: "malware";
489
+ other: "other";
490
+ phishing: "phishing";
491
+ spam: "spam";
492
+ }>;
493
+ message: z.ZodString;
494
+ contactEmail: z.ZodNullable<z.ZodString>;
495
+ status: z.ZodEnum<{
496
+ actioned: "actioned";
497
+ dismissed: "dismissed";
498
+ open: "open";
499
+ }>;
500
+ createdAt: z.ZodString;
501
+ }, z.core.$strip>;
502
+ export type SiteAbuseReport = z.infer<typeof SiteAbuseReport>;
503
+ /**
504
+ * The viewer as a Site sees it (`site.viewer`). Guests have no name or
505
+ * email. `id` is stable per Site and is the Site Data owner principal
506
+ * (`user:<subject>` or `guest:<visitor>`); it is not an Opengeni subject id
507
+ * usable anywhere else.
508
+ */
509
+ export declare const SiteViewer: z.ZodObject<{
510
+ kind: z.ZodEnum<{
511
+ guest: "guest";
512
+ invited: "invited";
513
+ member: "member";
514
+ user: "user";
515
+ }>;
516
+ id: z.ZodString;
517
+ name: z.ZodNullable<z.ZodString>;
518
+ email: z.ZodNullable<z.ZodString>;
519
+ signedIn: z.ZodBoolean;
520
+ }, z.core.$strip>;
521
+ export type SiteViewer = z.infer<typeof SiteViewer>;
522
+ /** The roles an owner may preview their published Site as ("View as visitor"). */
523
+ export declare const SiteViewAs: z.ZodEnum<{
524
+ invited: "invited";
525
+ public: "public";
526
+ }>;
527
+ export type SiteViewAs = z.infer<typeof SiteViewAs>;
528
+ /** The query parameter that starts (`invited`, `public`) or ends (`off`) a preview. */
529
+ export declare const SITE_VIEW_AS_QUERY = "og_view_as";
530
+ /**
531
+ * What this viewer may do, cheaply, so a page can hide features instead of
532
+ * failing. Anything refused at call time still answers with the error
533
+ * `not_available_for_viewer`.
534
+ */
535
+ export declare const SiteViewerCapabilities: z.ZodObject<{
536
+ agent: z.ZodBoolean;
537
+ workspaceTools: z.ZodBoolean;
538
+ siteData: z.ZodEnum<{
539
+ guest: "guest";
540
+ viewer: "viewer";
541
+ }>;
542
+ sqlQueryAudiences: z.ZodArray<z.ZodEnum<{
543
+ everyone: "everyone";
544
+ signed_in: "signed_in";
545
+ }>>;
546
+ viewAs: z.ZodNullable<z.ZodEnum<{
547
+ invited: "invited";
548
+ public: "public";
549
+ }>>;
550
+ }, z.core.$strip>;
551
+ export type SiteViewerCapabilities = z.infer<typeof SiteViewerCapabilities>;
552
+ /** The error code (`error.details.code`) when the viewer may not do something on a Site. */
553
+ export declare const SITE_NOT_AVAILABLE_FOR_VIEWER_ERROR_CODE = "not_available_for_viewer";
554
+ /** GET /_og/api/site/config (gateway shell and `site.viewer`). */
555
+ export declare const SiteRuntimeConfig: z.ZodObject<{
556
+ siteId: z.ZodString;
557
+ title: z.ZodString;
558
+ hostname: z.ZodString;
559
+ versionId: z.ZodString;
560
+ access: z.ZodEnum<{
561
+ invited: "invited";
562
+ members: "members";
563
+ public: "public";
564
+ }>;
565
+ viewer: z.ZodObject<{
566
+ kind: z.ZodEnum<{
567
+ guest: "guest";
568
+ invited: "invited";
569
+ member: "member";
570
+ user: "user";
571
+ }>;
572
+ id: z.ZodString;
573
+ name: z.ZodNullable<z.ZodString>;
574
+ email: z.ZodNullable<z.ZodString>;
575
+ signedIn: z.ZodBoolean;
576
+ }, z.core.$strip>;
577
+ capabilities: z.ZodObject<{
578
+ agent: z.ZodBoolean;
579
+ workspaceTools: z.ZodBoolean;
580
+ siteData: z.ZodEnum<{
581
+ guest: "guest";
582
+ viewer: "viewer";
583
+ }>;
584
+ sqlQueryAudiences: z.ZodArray<z.ZodEnum<{
585
+ everyone: "everyone";
586
+ signed_in: "signed_in";
587
+ }>>;
588
+ viewAs: z.ZodNullable<z.ZodEnum<{
589
+ invited: "invited";
590
+ public: "public";
591
+ }>>;
592
+ }, z.core.$strip>;
593
+ agent: z.ZodObject<{
594
+ enabled: z.ZodBoolean;
595
+ model: z.ZodNullable<z.ZodString>;
596
+ }, z.core.$strip>;
597
+ siteData: z.ZodBoolean;
598
+ noindex: z.ZodBoolean;
599
+ abuseEmail: z.ZodNullable<z.ZodString>;
600
+ }, z.core.$strip>;
601
+ export type SiteRuntimeConfig = z.infer<typeof SiteRuntimeConfig>;
602
+ /**
603
+ * POST /v1/site-auth/authorize, called by the console page
604
+ * `/site-auth/authorize` with the signed-in user's ordinary credentials.
605
+ * Returns a one-time code bound to the host, PKCE challenge and redirect.
606
+ */
607
+ export declare const SiteAuthAuthorizeRequest: z.ZodObject<{
608
+ host: z.ZodString;
609
+ state: z.ZodString;
610
+ codeChallenge: z.ZodString;
611
+ codeChallengeMethod: z.ZodLiteral<"S256">;
612
+ redirectUri: z.ZodString;
613
+ }, z.core.$strip>;
614
+ export type SiteAuthAuthorizeRequest = z.infer<typeof SiteAuthAuthorizeRequest>;
615
+ export declare const SiteAuthAuthorizeResponse: z.ZodObject<{
616
+ redirectTo: z.ZodString;
617
+ site: z.ZodObject<{
618
+ title: z.ZodString;
619
+ hostname: z.ZodString;
620
+ }, z.core.$strip>;
621
+ }, z.core.$strip>;
622
+ export type SiteAuthAuthorizeResponse = z.infer<typeof SiteAuthAuthorizeResponse>;
623
+ /** POST /v1/site-runtime/auth/exchange (gateway only, signed). */
624
+ export declare const SiteAuthExchangeRequest: z.ZodObject<{
625
+ code: z.ZodString;
626
+ codeVerifier: z.ZodString;
627
+ redirectUri: z.ZodString;
628
+ }, z.core.$strip>;
629
+ export type SiteAuthExchangeRequest = z.infer<typeof SiteAuthExchangeRequest>;
630
+ export declare const SiteAuthExchangeResponse: z.ZodObject<{
631
+ sessionToken: z.ZodString;
632
+ expiresAt: z.ZodString;
633
+ viewer: z.ZodObject<{
634
+ kind: z.ZodEnum<{
635
+ guest: "guest";
636
+ invited: "invited";
637
+ member: "member";
638
+ user: "user";
639
+ }>;
640
+ id: z.ZodString;
641
+ name: z.ZodNullable<z.ZodString>;
642
+ email: z.ZodNullable<z.ZodString>;
643
+ signedIn: z.ZodBoolean;
644
+ }, z.core.$strip>;
645
+ }, z.core.$strip>;
646
+ export type SiteAuthExchangeResponse = z.infer<typeof SiteAuthExchangeResponse>;
647
+ export declare const SITE_SESSION_COOKIE = "__Host-og_session";
648
+ export declare const SITE_VISITOR_COOKIE = "__Host-og_v";
649
+ export declare const SITE_LOGIN_COOKIE = "__Host-og_login";
650
+ /** Paths the gateway owns on every Site host. */
651
+ export declare const SITE_GATEWAY_PREFIX = "/_og";
652
+ export declare const SITE_GATEWAY_API_PREFIX = "/_og/api";
653
+ export declare const SITE_GATEWAY_VERSION_PREFIX = "/_og/v";
654
+ export declare const SITE_GATEWAY_LOGIN_PATH = "/_og/auth/login";
655
+ export declare const SITE_GATEWAY_CALLBACK_PATH = "/_og/auth/callback";
656
+ export declare const SITE_GATEWAY_LOGOUT_PATH = "/_og/auth/logout";
657
+ export declare const SITE_GATEWAY_REPORT_PATH = "/_og/report";
658
+ /** The API prefix the gateway forwards `/_og/api/*` to. */
659
+ export declare const SITE_RUNTIME_API_PREFIX = "/v1/site-runtime";
660
+ export declare const SITE_GATEWAY_TIMESTAMP_HEADER = "x-opengeni-gateway-timestamp";
661
+ export declare const SITE_GATEWAY_SIGNATURE_HEADER = "x-opengeni-gateway-signature";
662
+ export declare const SITE_GATEWAY_HOST_HEADER = "x-opengeni-site-host";
663
+ export declare const SITE_GATEWAY_SESSION_HEADER = "x-opengeni-site-session";
664
+ export declare const SITE_GATEWAY_VISITOR_HEADER = "x-opengeni-site-visitor";
665
+ export declare const SITE_GATEWAY_CLIENT_IP_HEADER = "x-opengeni-site-client-ip";
666
+ export declare const SITE_GATEWAY_HUMAN_HEADER = "x-opengeni-site-human";
667
+ /**
668
+ * Required on every signed request: lowercase hex SHA-256 of the exact body
669
+ * bytes (of the empty string when there is no body), the same value the
670
+ * gateway signs as `bodySha256`. The API verifies the signature from the
671
+ * headers before it reads the body, then checks the body against this hash.
672
+ */
673
+ export declare const SITE_GATEWAY_BODY_SHA256_HEADER = "x-opengeni-site-body-sha256";
674
+ /** Reject signed requests whose timestamp differs from the API clock by more. */
675
+ export declare const SITE_GATEWAY_MAX_SKEW_SECONDS = 30;
676
+ export declare const SITE_GATEWAY_SIGNATURE_VERSION = "v1";
677
+ export type SiteGatewaySignedFields = {
678
+ method: string;
679
+ /** Path and query exactly as sent to the API, starting with /v1/site-runtime. */
680
+ pathWithQuery: string;
681
+ /** Unix seconds. */
682
+ timestamp: number;
683
+ /** Lowercase hex SHA-256 of the exact request body bytes (of "" when empty). */
684
+ bodySha256: string;
685
+ host: string;
686
+ /** Raw site-session token, or "" when the viewer is not signed in. */
687
+ session: string;
688
+ /** Gateway-minted visitor id, or "". */
689
+ visitor: string;
690
+ clientIp: string;
691
+ /** "1" when the gateway verified a bot challenge for this visitor, else "". */
692
+ human: string;
693
+ };
694
+ /**
695
+ * The exact string both sides HMAC-SHA256 with the shared gateway secret.
696
+ * The header carries `v1=<base64url signature>`; during secret rotation the
697
+ * API accepts the current or the previous secret.
698
+ */
699
+ export declare function siteGatewayCanonicalString(fields: SiteGatewaySignedFields): string;
700
+ /**
701
+ * The rebuildable host-map record the gateway reads from KV (`host:<hostname>`)
702
+ * and, on a miss, from GET /v1/site-runtime/host. Postgres is the source of truth.
703
+ */
704
+ export declare const SiteHostMapRecord: z.ZodObject<{
705
+ v: z.ZodLiteral<1>;
706
+ hostname: z.ZodString;
707
+ siteId: z.ZodString;
708
+ status: z.ZodEnum<{
709
+ active: "active";
710
+ suspended: "suspended";
711
+ unpublished: "unpublished";
712
+ }>;
713
+ access: z.ZodEnum<{
714
+ invited: "invited";
715
+ members: "members";
716
+ public: "public";
717
+ }>;
718
+ versionId: z.ZodNullable<z.ZodString>;
719
+ title: z.ZodString;
720
+ noindex: z.ZodBoolean;
721
+ generation: z.ZodNumber;
722
+ updatedAt: z.ZodString;
723
+ }, z.core.$strip>;
724
+ export type SiteHostMapRecord = z.infer<typeof SiteHostMapRecord>;
725
+ export declare function siteHostMapKey(hostname: string): string;
726
+ /**
727
+ * usage_only: meter, never charge (the default). shadow: compute what
728
+ * credits mode would charge, without charging. credits: charge organization
729
+ * credits for usage above the workspace's monthly allowance.
730
+ */
731
+ export declare const SitePlatformBillingMode: z.ZodEnum<{
732
+ credits: "credits";
733
+ shadow: "shadow";
734
+ usage_only: "usage_only";
735
+ }>;
736
+ export type SitePlatformBillingMode = z.infer<typeof SitePlatformBillingMode>;
737
+ /** Gateway requests, Site SQL rows read and written, and Site SQL plus Site Data storage. */
738
+ export declare const SitePlatformMeter: z.ZodEnum<{
739
+ requests: "requests";
740
+ sql_rows_read: "sql_rows_read";
741
+ sql_rows_written: "sql_rows_written";
742
+ storage_bytes: "storage_bytes";
743
+ }>;
744
+ export type SitePlatformMeter = z.infer<typeof SitePlatformMeter>;
745
+ export declare const SitePlatformMeterUsage: z.ZodObject<{
746
+ meter: z.ZodEnum<{
747
+ requests: "requests";
748
+ sql_rows_read: "sql_rows_read";
749
+ sql_rows_written: "sql_rows_written";
750
+ storage_bytes: "storage_bytes";
751
+ }>;
752
+ used: z.ZodNumber;
753
+ peak: z.ZodNumber;
754
+ allowance: z.ZodNumber;
755
+ priceMicros: z.ZodNumber;
756
+ priceUnit: z.ZodNumber;
757
+ estimatedMicros: z.ZodNumber;
758
+ }, z.core.$strip>;
759
+ export type SitePlatformMeterUsage = z.infer<typeof SitePlatformMeterUsage>;
760
+ /** The Opengeni-wide brake on Site platform usage (see docs/published-sites.md). */
761
+ export declare const SitePlatformBrakeState: z.ZodObject<{
762
+ engaged: z.ZodBoolean;
763
+ engagedAt: z.ZodNullable<z.ZodString>;
764
+ }, z.core.$strip>;
765
+ export type SitePlatformBrakeState = z.infer<typeof SitePlatformBrakeState>;
766
+ /** GET /v1/workspaces/:ws/site-platform-usage */
767
+ export declare const SitePlatformUsage: z.ZodObject<{
768
+ workspaceId: z.ZodString;
769
+ periodStart: z.ZodString;
770
+ billingMode: z.ZodEnum<{
771
+ credits: "credits";
772
+ shadow: "shadow";
773
+ usage_only: "usage_only";
774
+ }>;
775
+ meters: z.ZodArray<z.ZodObject<{
776
+ meter: z.ZodEnum<{
777
+ requests: "requests";
778
+ sql_rows_read: "sql_rows_read";
779
+ sql_rows_written: "sql_rows_written";
780
+ storage_bytes: "storage_bytes";
781
+ }>;
782
+ used: z.ZodNumber;
783
+ peak: z.ZodNumber;
784
+ allowance: z.ZodNumber;
785
+ priceMicros: z.ZodNumber;
786
+ priceUnit: z.ZodNumber;
787
+ estimatedMicros: z.ZodNumber;
788
+ }, z.core.$strip>>;
789
+ estimatedMicros: z.ZodNumber;
790
+ chargedMicros: z.ZodNumber;
791
+ shadowMicros: z.ZodNumber;
792
+ brake: z.ZodObject<{
793
+ engaged: z.ZodBoolean;
794
+ engagedAt: z.ZodNullable<z.ZodString>;
795
+ }, z.core.$strip>;
796
+ }, z.core.$strip>;
797
+ export type SitePlatformUsage = z.infer<typeof SitePlatformUsage>;
798
+ /** details.code of the 503 every brake refusal carries. */
799
+ export declare const SITE_PLATFORM_BRAKE_ERROR_CODE: "site_platform_brake_engaged";
800
+ /** details.code of the 402 a workspace past its allowance without credits gets (credits mode). */
801
+ export declare const SITE_PLATFORM_QUOTA_ERROR_CODE: "site_platform_quota_exhausted";
802
+ export * from "./site-operations.js";
803
+ /**
804
+ * Additional MessagePort bridge request methods, served by both hosts:
805
+ * - `viewer`: returns SiteViewer (console: the signed-in member).
806
+ * - `auth.signIn`: asks the host to sign the viewer in. The gateway shell
807
+ * navigates the top window to /_og/auth/login; the console resolves
808
+ * immediately because its viewer is already signed in. Returns
809
+ * `{ started: boolean }`.
810
+ * The ready message advertises them with `viewer: 1`.
811
+ */
812
+ export declare const SITE_BRIDGE_VIEWER_METHOD: "viewer";
813
+ export declare const SITE_BRIDGE_SIGN_IN_METHOD: "auth.signIn";