@opengeni/contracts 0.44.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/dist/agent-authored-durable-text.d.ts +70 -0
  2. package/dist/agent-config.d.ts +869 -0
  3. package/dist/agent-instruction-changes.d.ts +110 -0
  4. package/dist/agent-learning.d.ts +243 -0
  5. package/dist/agent-topology.d.ts +292 -0
  6. package/dist/allowance-refusal.d.ts +9 -0
  7. package/dist/allowance-refusal.js +50 -0
  8. package/dist/allowance-refusal.js.map +1 -0
  9. package/dist/analytics-consent-report.d.ts +19 -0
  10. package/dist/analytics-consent-report.js +10 -0
  11. package/dist/analytics-consent-report.js.map +1 -0
  12. package/dist/api-key-presets.d.ts +19 -0
  13. package/dist/artifact-catalog.d.ts +161 -0
  14. package/dist/artifacts.d.ts +135 -11
  15. package/dist/atlassian-native-retirement.d.ts +16 -0
  16. package/dist/atlassian-native-retirement.js +30 -0
  17. package/dist/atlassian-native-retirement.js.map +1 -0
  18. package/dist/atlassian.d.ts +2 -0
  19. package/dist/atlassian.js +27 -11
  20. package/dist/browser-storage.d.ts +5 -0
  21. package/dist/browser-storage.js +9 -0
  22. package/dist/browser-storage.js.map +1 -0
  23. package/dist/bundled-skills.d.ts +40 -0
  24. package/dist/canonical-human-identities.d.ts +157 -0
  25. package/dist/canonical-human-identities.js +23 -0
  26. package/dist/canonical-human-identities.js.map +1 -0
  27. package/dist/chunk-2ACYHZFB.js +292 -0
  28. package/dist/chunk-2ACYHZFB.js.map +1 -0
  29. package/dist/chunk-2VORLN2R.js +353 -0
  30. package/dist/chunk-2VORLN2R.js.map +1 -0
  31. package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
  32. package/dist/chunk-3SIZGL3O.js.map +1 -0
  33. package/dist/chunk-46KLD2UH.js +186 -0
  34. package/dist/chunk-46KLD2UH.js.map +1 -0
  35. package/dist/chunk-4JGHSSB7.js +11 -0
  36. package/dist/chunk-4JGHSSB7.js.map +1 -0
  37. package/dist/{chunk-52SGB2QO.js → chunk-5IXYF6XN.js} +50 -10
  38. package/dist/chunk-5IXYF6XN.js.map +1 -0
  39. package/dist/chunk-BCS7WHCK.js +139 -0
  40. package/dist/chunk-BCS7WHCK.js.map +1 -0
  41. package/dist/chunk-EK7NDGFR.js +128 -0
  42. package/dist/chunk-EK7NDGFR.js.map +1 -0
  43. package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
  44. package/dist/chunk-FZ6BXQHL.js.map +1 -0
  45. package/dist/chunk-GRG7PHWQ.js +25 -0
  46. package/dist/chunk-GRG7PHWQ.js.map +1 -0
  47. package/dist/chunk-JUFK3T4Q.js +80 -0
  48. package/dist/chunk-JUFK3T4Q.js.map +1 -0
  49. package/dist/chunk-KHHZTBP7.js +11 -0
  50. package/dist/chunk-KHHZTBP7.js.map +1 -0
  51. package/dist/chunk-KR2V42UZ.js +187 -0
  52. package/dist/chunk-KR2V42UZ.js.map +1 -0
  53. package/dist/chunk-MZLBPKFE.js +168 -0
  54. package/dist/chunk-MZLBPKFE.js.map +1 -0
  55. package/dist/{chunk-H5BVCZKF.js → chunk-NRMCVHAU.js} +6 -5
  56. package/dist/chunk-NRMCVHAU.js.map +1 -0
  57. package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
  58. package/dist/chunk-NVJMJWLL.js.map +1 -0
  59. package/dist/chunk-O77VSFYZ.js +70 -0
  60. package/dist/chunk-O77VSFYZ.js.map +1 -0
  61. package/dist/chunk-PX3VCKAU.js +29 -0
  62. package/dist/chunk-PX3VCKAU.js.map +1 -0
  63. package/dist/chunk-QR5D2IQC.js +61 -0
  64. package/dist/chunk-QR5D2IQC.js.map +1 -0
  65. package/dist/chunk-RJ76DRPO.js +117 -0
  66. package/dist/chunk-RJ76DRPO.js.map +1 -0
  67. package/dist/chunk-RKX3NQYS.js +28 -0
  68. package/dist/chunk-RKX3NQYS.js.map +1 -0
  69. package/dist/{chunk-FJBG5E4O.js → chunk-SIOU2K4U.js} +45 -22
  70. package/dist/chunk-SIOU2K4U.js.map +1 -0
  71. package/dist/chunk-TSCDAGET.js +75 -0
  72. package/dist/chunk-TSCDAGET.js.map +1 -0
  73. package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
  74. package/dist/chunk-TXTQIYCV.js.map +1 -0
  75. package/dist/chunk-X7ETVO4P.js +26544 -0
  76. package/dist/chunk-X7ETVO4P.js.map +1 -0
  77. package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
  78. package/dist/chunk-YBW5JSA3.js +251 -0
  79. package/dist/chunk-YBW5JSA3.js.map +1 -0
  80. package/dist/chunk-YRXAWWCU.js +45 -0
  81. package/dist/chunk-YRXAWWCU.js.map +1 -0
  82. package/dist/claude-provider-account-authority.d.ts +18 -0
  83. package/dist/claude-subscription-oauth.d.ts +42 -0
  84. package/dist/claude-subscription-usage.d.ts +159 -0
  85. package/dist/client-error-report.d.ts +109 -0
  86. package/dist/client-error-report.js +87 -0
  87. package/dist/client-error-report.js.map +1 -0
  88. package/dist/code-search.d.ts +52 -0
  89. package/dist/code-search.js +40 -0
  90. package/dist/code-search.js.map +1 -0
  91. package/dist/codex-provider-account-authority.d.ts +23 -0
  92. package/dist/codex-provider-account-authority.js +23 -0
  93. package/dist/codex-provider-account-authority.js.map +1 -0
  94. package/dist/company-brain-governed-writes.d.ts +475 -0
  95. package/dist/company-brain.d.ts +336 -0
  96. package/dist/company-profile.d.ts +566 -0
  97. package/dist/connect.d.ts +325 -0
  98. package/dist/connect.js +191 -0
  99. package/dist/connect.js.map +1 -0
  100. package/dist/connection-account-label.d.ts +2 -0
  101. package/dist/connection-account-label.js +35 -0
  102. package/dist/connection-account-label.js.map +1 -0
  103. package/dist/connection-authority.d.ts +193 -0
  104. package/dist/connection-authority.js +50 -0
  105. package/dist/connection-authority.js.map +1 -0
  106. package/dist/connector-attachments.d.ts +95 -0
  107. package/dist/connector-attachments.js +51 -0
  108. package/dist/connector-attachments.js.map +1 -0
  109. package/dist/connector-tool-permissions.d.ts +73 -0
  110. package/dist/direct-model-provider.d.ts +36 -0
  111. package/dist/editable-artifact-codec-registry.d.ts +16 -7
  112. package/dist/editable-artifact-codec-registry.js +19 -9
  113. package/dist/editable-artifact-committed-transaction.d.ts +2 -2
  114. package/dist/editable-artifact-committed-transaction.js +2 -2
  115. package/dist/editable-artifact-live.d.ts +11 -12
  116. package/dist/editable-artifact-live.js +110 -45
  117. package/dist/editable-artifact-live.js.map +1 -1
  118. package/dist/editable-artifact-serialized-commit.d.ts +2 -1
  119. package/dist/editable-artifact-serialized-commit.js +8 -7
  120. package/dist/editable-artifact-versions.d.ts +20 -5
  121. package/dist/editable-artifact-versions.js +23 -5
  122. package/dist/editable-artifacts.d.ts +2 -0
  123. package/dist/editable-artifacts.js +48 -36
  124. package/dist/external-identities.d.ts +784 -0
  125. package/dist/external-identities.js +44 -0
  126. package/dist/external-identities.js.map +1 -0
  127. package/dist/feedback.d.ts +51 -0
  128. package/dist/github-repository-contracts.d.ts +36 -0
  129. package/dist/github-repository-contracts.js +59 -0
  130. package/dist/github-repository-contracts.js.map +1 -0
  131. package/dist/github-repository.d.ts +14 -0
  132. package/dist/github-repository.js +36 -0
  133. package/dist/github-repository.js.map +1 -0
  134. package/dist/google-drive.d.ts +90 -1
  135. package/dist/google-drive.js +91 -15
  136. package/dist/google-drive.js.map +1 -1
  137. package/dist/governed-learning-activation.d.ts +154 -0
  138. package/dist/governed-learning-evaluator.d.ts +152 -0
  139. package/dist/host-mcp-bindings.d.ts +326 -0
  140. package/dist/host-mcp-bindings.js +252 -0
  141. package/dist/host-mcp-bindings.js.map +1 -0
  142. package/dist/image-generation.d.ts +1 -0
  143. package/dist/index.d.ts +27574 -5374
  144. package/dist/index.js +2531 -177
  145. package/dist/insights-usage.d.ts +877 -0
  146. package/dist/insights-usage.js +509 -0
  147. package/dist/insights-usage.js.map +1 -0
  148. package/dist/interaction.d.ts +1752 -13
  149. package/dist/knowledge-entries.d.ts +982 -0
  150. package/dist/knowledge-preparation.d.ts +237 -0
  151. package/dist/knowledge.d.ts +740 -0
  152. package/dist/managed-auth-session-sets.d.ts +241 -0
  153. package/dist/managed-auth-session-sets.js +191 -0
  154. package/dist/managed-auth-session-sets.js.map +1 -0
  155. package/dist/managed-sign-in-methods.d.ts +56 -0
  156. package/dist/managed-sign-in-methods.js +46 -0
  157. package/dist/managed-sign-in-methods.js.map +1 -0
  158. package/dist/mcp-catalog-limits.d.ts +2 -0
  159. package/dist/mcp-endpoint.d.ts +7 -0
  160. package/dist/mcp-endpoint.js +9 -0
  161. package/dist/mcp-endpoint.js.map +1 -0
  162. package/dist/mcp-oauth.d.ts +71 -0
  163. package/dist/modal-native-proof-v2.d.ts +587 -0
  164. package/dist/modal-native-proof-v2.js +37 -0
  165. package/dist/modal-native-proof-v2.js.map +1 -0
  166. package/dist/model-availability.d.ts +15 -0
  167. package/dist/model-connection-access.d.ts +24 -0
  168. package/dist/model-context-inspector.d.ts +329 -0
  169. package/dist/model-display.d.ts +38 -0
  170. package/dist/model-display.js +134 -0
  171. package/dist/model-display.js.map +1 -0
  172. package/dist/model-picker-order.d.ts +25 -0
  173. package/dist/model-picker-order.js +42 -0
  174. package/dist/model-picker-order.js.map +1 -0
  175. package/dist/organization-access.d.ts +231 -0
  176. package/dist/organization-access.js +34 -0
  177. package/dist/organization-access.js.map +1 -0
  178. package/dist/organization-integration-policy.d.ts +27 -0
  179. package/dist/organization-membership-lifecycle.d.ts +1022 -0
  180. package/dist/organization-model-usage.d.ts +146 -0
  181. package/dist/organization-model-usage.js +67 -0
  182. package/dist/organization-model-usage.js.map +1 -0
  183. package/dist/organization-recovery.d.ts +337 -0
  184. package/dist/organization-recovery.js +37 -0
  185. package/dist/organization-recovery.js.map +1 -0
  186. package/dist/organization-usage.d.ts +138 -0
  187. package/dist/permissions.d.ts +54 -0
  188. package/dist/personal-github.d.ts +320 -0
  189. package/dist/personal-github.js +222 -0
  190. package/dist/personal-github.js.map +1 -0
  191. package/dist/plugin-discovery.d.ts +35 -0
  192. package/dist/plugin-discovery.js +7 -0
  193. package/dist/plugin-discovery.js.map +1 -0
  194. package/dist/preference-registry.d.ts +44 -1
  195. package/dist/product-analytics.d.ts +113 -0
  196. package/dist/product-lifecycle-facts.d.ts +73 -0
  197. package/dist/remember.d.ts +350 -0
  198. package/dist/retained-output.d.ts +8 -0
  199. package/dist/sandbox-file-artifacts.d.ts +57 -0
  200. package/dist/sandbox-provider-command.d.ts +113 -0
  201. package/dist/sandbox-recovery.d.ts +146 -0
  202. package/dist/sandbox-snapshots.d.ts +39 -0
  203. package/dist/session-final-reply.d.ts +6 -0
  204. package/dist/session-final-reply.js +9 -0
  205. package/dist/session-final-reply.js.map +1 -0
  206. package/dist/session-goal-reports.d.ts +21 -0
  207. package/dist/session-history-import.d.ts +947 -0
  208. package/dist/session-list-entries.d.ts +4 -0
  209. package/dist/session-list-entries.js +51 -0
  210. package/dist/session-list-entries.js.map +1 -0
  211. package/dist/session-mcp-projections.d.ts +215 -0
  212. package/dist/session-message-search.d.ts +68 -0
  213. package/dist/session-titles.d.ts +68 -0
  214. package/dist/session-titles.js +25 -0
  215. package/dist/session-titles.js.map +1 -0
  216. package/dist/session-topology-primitives.d.ts +22 -0
  217. package/dist/signup-attribution.d.ts +39 -0
  218. package/dist/site-request-headers.test.d.ts +1 -0
  219. package/dist/site-session-http.d.ts +11 -0
  220. package/dist/site-session-http.js +11 -0
  221. package/dist/site-session-http.js.map +1 -0
  222. package/dist/skill-catalog-context.d.ts +7 -0
  223. package/dist/skill-files.d.ts +12 -0
  224. package/dist/skill-metadata.d.ts +9 -0
  225. package/dist/skill-use.d.ts +61 -0
  226. package/dist/skills.d.ts +185 -0
  227. package/dist/slack-bot-scopes.d.ts +46 -21
  228. package/dist/slack-bot-scopes.js +14 -3
  229. package/dist/slack-rest-mcp.d.ts +31 -0
  230. package/dist/slack-rest-mcp.js +19 -0
  231. package/dist/slack-rest-mcp.js.map +1 -0
  232. package/dist/slack-task-policy.d.ts +294 -0
  233. package/dist/spreadsheet-artifact-commands.d.ts +2 -3
  234. package/dist/spreadsheet-artifact-commands.js +4 -2
  235. package/dist/spreadsheet-artifact-query.js +3 -2
  236. package/dist/subscription-account-pools.d.ts +292 -0
  237. package/dist/task-notes.d.ts +169 -0
  238. package/dist/tool-catalog.d.ts +286 -0
  239. package/dist/tool-result-spill.d.ts +16 -0
  240. package/dist/usage-allowances.d.ts +285 -0
  241. package/dist/usage-allowances.js +49 -0
  242. package/dist/usage-allowances.js.map +1 -0
  243. package/dist/video-generation.d.ts +51 -0
  244. package/dist/video-generation.js +9 -1
  245. package/dist/work-claims.d.ts +411 -0
  246. package/dist/workspace-instruction-policies.d.ts +94 -0
  247. package/dist/workspace-integration-wire.d.ts +36 -0
  248. package/dist/workspace-integration-wire.js +23 -0
  249. package/dist/workspace-integration-wire.js.map +1 -0
  250. package/dist/workspace-integrations.d.ts +948 -0
  251. package/dist/workspace-learning-administration.d.ts +289 -0
  252. package/dist/workspace-learning-policy.d.ts +1 -1
  253. package/dist/workspace-state.d.ts +85 -416
  254. package/dist/xai-provider-account-authority.d.ts +26 -0
  255. package/dist/xai-provider-account-authority.js +9 -0
  256. package/dist/xai-provider-account-authority.js.map +1 -0
  257. package/package.json +146 -1
  258. package/src/agent-authored-durable-text.ts +116 -0
  259. package/src/agent-config.ts +1527 -0
  260. package/src/agent-instruction-changes.ts +98 -0
  261. package/src/agent-learning.ts +161 -0
  262. package/src/agent-topology.ts +69 -0
  263. package/src/allowance-refusal.ts +81 -0
  264. package/src/analytics-consent-report.ts +20 -0
  265. package/src/api-key-presets.ts +25 -0
  266. package/src/artifact-catalog.ts +60 -0
  267. package/src/artifacts.ts +146 -18
  268. package/src/atlassian-native-retirement.ts +33 -0
  269. package/src/browser-storage.ts +10 -0
  270. package/src/bundled-skills.ts +73 -0
  271. package/src/canonical-human-identities.ts +93 -0
  272. package/src/claude-provider-account-authority.ts +12 -0
  273. package/src/claude-subscription-oauth.ts +62 -0
  274. package/src/claude-subscription-usage.ts +59 -0
  275. package/src/client-error-report.ts +184 -0
  276. package/src/code-search.ts +105 -0
  277. package/src/codex-provider-account-authority.ts +37 -0
  278. package/src/company-brain-governed-writes.ts +356 -0
  279. package/src/company-brain.ts +201 -0
  280. package/src/company-profile.ts +167 -1
  281. package/src/connect.ts +202 -0
  282. package/src/connection-account-label.ts +46 -0
  283. package/src/connection-authority.ts +213 -0
  284. package/src/connector-attachments.ts +327 -0
  285. package/src/connector-tool-permissions.ts +60 -0
  286. package/src/direct-model-provider.ts +98 -0
  287. package/src/editable-artifact-codec-registry.ts +55 -17
  288. package/src/editable-artifact-committed-transaction.ts +44 -31
  289. package/src/editable-artifact-live.ts +123 -57
  290. package/src/editable-artifact-serialized-commit.ts +2 -1
  291. package/src/editable-artifact-versions.ts +26 -5
  292. package/src/editable-artifacts.ts +2 -0
  293. package/src/external-identities.ts +285 -0
  294. package/src/feedback.ts +39 -0
  295. package/src/github-repository-contracts.ts +85 -0
  296. package/src/github-repository.ts +59 -0
  297. package/src/google-drive.ts +76 -4
  298. package/src/governed-learning-activation.ts +191 -0
  299. package/src/governed-learning-evaluator.ts +176 -0
  300. package/src/host-mcp-bindings.ts +298 -0
  301. package/src/image-generation.ts +8 -2
  302. package/src/index.ts +8019 -1799
  303. package/src/insights-usage.ts +679 -0
  304. package/src/interaction.ts +1102 -6
  305. package/src/knowledge-entries.ts +375 -0
  306. package/src/knowledge-preparation.ts +50 -0
  307. package/src/knowledge.ts +335 -0
  308. package/src/managed-auth-session-sets.ts +253 -0
  309. package/src/managed-sign-in-methods.ts +37 -0
  310. package/src/mcp-catalog-limits.ts +2 -0
  311. package/src/mcp-endpoint.ts +30 -0
  312. package/src/mcp-oauth.ts +66 -0
  313. package/src/modal-native-proof-v2.ts +398 -0
  314. package/src/model-availability.ts +22 -0
  315. package/src/model-connection-access.ts +17 -0
  316. package/src/model-context-inspector.ts +139 -0
  317. package/src/model-display.ts +195 -0
  318. package/src/model-picker-order.ts +97 -0
  319. package/src/organization-access.ts +176 -0
  320. package/src/organization-integration-policy.ts +54 -0
  321. package/src/organization-membership-lifecycle.ts +559 -0
  322. package/src/organization-model-usage.ts +72 -0
  323. package/src/organization-recovery.ts +186 -0
  324. package/src/organization-usage.ts +79 -0
  325. package/src/permissions.ts +58 -0
  326. package/src/personal-github.ts +267 -0
  327. package/src/plugin-discovery.ts +33 -0
  328. package/src/preference-registry.ts +20 -1
  329. package/src/product-analytics.ts +253 -0
  330. package/src/product-lifecycle-facts.ts +121 -0
  331. package/src/remember.ts +243 -0
  332. package/src/retained-output.ts +20 -3
  333. package/src/sandbox-file-artifacts.ts +73 -0
  334. package/src/sandbox-provider-command.ts +82 -0
  335. package/src/sandbox-recovery.ts +116 -0
  336. package/src/sandbox-snapshots.ts +142 -0
  337. package/src/session-final-reply.ts +16 -0
  338. package/src/session-goal-reports.ts +55 -0
  339. package/src/session-history-import.ts +159 -0
  340. package/src/session-list-entries.ts +91 -0
  341. package/src/session-mcp-projections.ts +273 -0
  342. package/src/session-message-search.ts +54 -0
  343. package/src/session-titles.ts +467 -0
  344. package/src/session-topology-primitives.ts +21 -0
  345. package/src/signup-attribution.ts +81 -0
  346. package/src/site-request-headers.test.ts +28 -0
  347. package/src/site-session-http.ts +63 -0
  348. package/src/skill-catalog-context.ts +50 -0
  349. package/src/skill-files.ts +52 -0
  350. package/src/skill-metadata.ts +40 -0
  351. package/src/skill-use.ts +77 -0
  352. package/src/skills.ts +136 -0
  353. package/src/slack-bot-scopes.ts +106 -42
  354. package/src/slack-rest-mcp.ts +194 -0
  355. package/src/slack-task-policy.ts +215 -0
  356. package/src/spreadsheet-artifact-commands.ts +12 -13
  357. package/src/subscription-account-pools.ts +44 -0
  358. package/src/task-notes.ts +105 -0
  359. package/src/tool-catalog.ts +155 -0
  360. package/src/tool-result-spill.ts +35 -0
  361. package/src/usage-allowances.ts +187 -0
  362. package/src/video-generation.ts +43 -6
  363. package/src/work-claims.ts +266 -0
  364. package/src/workspace-instruction-policies.ts +31 -0
  365. package/src/workspace-integration-wire.ts +99 -0
  366. package/src/workspace-integrations.ts +640 -0
  367. package/src/workspace-learning-administration.ts +88 -0
  368. package/src/workspace-learning-policy.ts +4 -3
  369. package/src/workspace-state.ts +16 -126
  370. package/src/xai-provider-account-authority.ts +38 -0
  371. package/dist/chunk-52SGB2QO.js.map +0 -1
  372. package/dist/chunk-5UDNP7AO.js.map +0 -1
  373. package/dist/chunk-BVGIYW7D.js +0 -11
  374. package/dist/chunk-BVGIYW7D.js.map +0 -1
  375. package/dist/chunk-FJBG5E4O.js.map +0 -1
  376. package/dist/chunk-H5BVCZKF.js.map +0 -1
  377. package/dist/chunk-LSB7GRLG.js.map +0 -1
  378. package/dist/chunk-TZ6YEYN4.js.map +0 -1
  379. package/dist/chunk-VA22KRHS.js +0 -15177
  380. package/dist/chunk-VA22KRHS.js.map +0 -1
  381. package/dist/chunk-Y3MLSLB4.js.map +0 -1
  382. /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
@@ -0,0 +1,44 @@
1
+ import {
2
+ AddExternalWorkspaceMemberRequest,
3
+ BeginExternalIdentityLinkRequest,
4
+ BeginExternalIdentityLinkResponse,
5
+ CancelExternalWorkspaceMemberGrantRequest,
6
+ CancelExternalWorkspaceMemberGrantResponse,
7
+ ConfirmExternalIdentityLinkRequest,
8
+ ExternalActorAttribution,
9
+ ExternalActorContinuation,
10
+ ExternalActorSelection,
11
+ ExternalIdentity,
12
+ ExternalIdentityLink,
13
+ ExternalIdentityLinkPage,
14
+ ExternalIdentityLinkPreview,
15
+ ExternalIdentityLookup,
16
+ ExternalIdentityReference,
17
+ ExternalLinkWorkSnapshot,
18
+ UpdateExternalIdentityMembershipRequest,
19
+ UpdateExternalWorkspaceMemberRequest,
20
+ UpdateExternalWorkspaceMemberResponse
21
+ } from "./chunk-KR2V42UZ.js";
22
+ import "./chunk-QR5D2IQC.js";
23
+ export {
24
+ AddExternalWorkspaceMemberRequest,
25
+ BeginExternalIdentityLinkRequest,
26
+ BeginExternalIdentityLinkResponse,
27
+ CancelExternalWorkspaceMemberGrantRequest,
28
+ CancelExternalWorkspaceMemberGrantResponse,
29
+ ConfirmExternalIdentityLinkRequest,
30
+ ExternalActorAttribution,
31
+ ExternalActorContinuation,
32
+ ExternalActorSelection,
33
+ ExternalIdentity,
34
+ ExternalIdentityLink,
35
+ ExternalIdentityLinkPage,
36
+ ExternalIdentityLinkPreview,
37
+ ExternalIdentityLookup,
38
+ ExternalIdentityReference,
39
+ ExternalLinkWorkSnapshot,
40
+ UpdateExternalIdentityMembershipRequest,
41
+ UpdateExternalWorkspaceMemberRequest,
42
+ UpdateExternalWorkspaceMemberResponse
43
+ };
44
+ //# sourceMappingURL=external-identities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,51 @@
1
+ import { z } from "zod";
2
+ export declare const FeedbackSentiment: z.ZodEnum<{
3
+ negative: "negative";
4
+ positive: "positive";
5
+ }>;
6
+ export type FeedbackSentiment = z.infer<typeof FeedbackSentiment>;
7
+ /** A new key means a new submission; retry the same payload with the same key. */
8
+ export declare const CreateFeedbackRequest: z.ZodObject<{
9
+ idempotencyKey: z.ZodString;
10
+ sessionId: z.ZodOptional<z.ZodString>;
11
+ turnId: z.ZodOptional<z.ZodString>;
12
+ sentiment: z.ZodOptional<z.ZodEnum<{
13
+ negative: "negative";
14
+ positive: "positive";
15
+ }>>;
16
+ comment: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strict>;
18
+ export type CreateFeedbackRequest = z.infer<typeof CreateFeedbackRequest>;
19
+ export declare const Feedback: z.ZodObject<{
20
+ id: z.ZodString;
21
+ workspaceId: z.ZodString;
22
+ subjectId: z.ZodString;
23
+ principalKind: z.ZodNullable<z.ZodString>;
24
+ sessionId: z.ZodNullable<z.ZodString>;
25
+ turnId: z.ZodNullable<z.ZodString>;
26
+ sentiment: z.ZodNullable<z.ZodEnum<{
27
+ negative: "negative";
28
+ positive: "positive";
29
+ }>>;
30
+ comment: z.ZodNullable<z.ZodString>;
31
+ createdAt: z.ZodString;
32
+ }, z.core.$strip>;
33
+ export type Feedback = z.infer<typeof Feedback>;
34
+ export declare const FeedbackSubmissionResponse: z.ZodObject<{
35
+ feedback: z.ZodObject<{
36
+ id: z.ZodString;
37
+ workspaceId: z.ZodString;
38
+ subjectId: z.ZodString;
39
+ principalKind: z.ZodNullable<z.ZodString>;
40
+ sessionId: z.ZodNullable<z.ZodString>;
41
+ turnId: z.ZodNullable<z.ZodString>;
42
+ sentiment: z.ZodNullable<z.ZodEnum<{
43
+ negative: "negative";
44
+ positive: "positive";
45
+ }>>;
46
+ comment: z.ZodNullable<z.ZodString>;
47
+ createdAt: z.ZodString;
48
+ }, z.core.$strip>;
49
+ replayed: z.ZodBoolean;
50
+ }, z.core.$strip>;
51
+ export type FeedbackSubmissionResponse = z.infer<typeof FeedbackSubmissionResponse>;
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ export declare const VerifyPublicGitHubRepositoryRefRequest: z.ZodObject<{
3
+ url: z.ZodString;
4
+ ref: z.ZodString;
5
+ }, z.core.$strict>;
6
+ export type VerifyPublicGitHubRepositoryRefRequest = z.infer<typeof VerifyPublicGitHubRepositoryRefRequest>;
7
+ export declare const VerifyPublicGitHubRepositoryRefResponse: z.ZodObject<{
8
+ owner: z.ZodString;
9
+ name: z.ZodString;
10
+ fullName: z.ZodString;
11
+ canonicalUrl: z.ZodString;
12
+ cloneUrl: z.ZodString;
13
+ defaultBranch: z.ZodString;
14
+ ref: z.ZodString;
15
+ commitSha: z.ZodString;
16
+ }, z.core.$strict>;
17
+ export type VerifyPublicGitHubRepositoryRefResponse = z.infer<typeof VerifyPublicGitHubRepositoryRefResponse>;
18
+ export declare const GITHUB_REPOSITORY_BRANCH_PAGE_MAX: 100;
19
+ export declare const ListGitHubRepositoryBranchesQuery: z.ZodObject<{
20
+ cursor: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
21
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
22
+ }, z.core.$strict>;
23
+ export type ListGitHubRepositoryBranchesQuery = z.infer<typeof ListGitHubRepositoryBranchesQuery>;
24
+ export declare const GitHubRepositoryBranch: z.ZodObject<{
25
+ name: z.ZodString;
26
+ isDefault: z.ZodBoolean;
27
+ }, z.core.$strict>;
28
+ export type GitHubRepositoryBranch = z.infer<typeof GitHubRepositoryBranch>;
29
+ export declare const GitHubRepositoryBranchesResponse: z.ZodObject<{
30
+ branches: z.ZodArray<z.ZodObject<{
31
+ name: z.ZodString;
32
+ isDefault: z.ZodBoolean;
33
+ }, z.core.$strict>>;
34
+ nextCursor: z.ZodNullable<z.ZodNumber>;
35
+ }, z.core.$strict>;
36
+ export type GitHubRepositoryBranchesResponse = z.infer<typeof GitHubRepositoryBranchesResponse>;
@@ -0,0 +1,59 @@
1
+ // src/github-repository-contracts.ts
2
+ import { z } from "zod";
3
+ var VerifyPublicGitHubRepositoryRefRequest = z.object({
4
+ url: z.string().min(1).max(2048),
5
+ ref: z.string().trim().min(1).max(1024).refine((value) => !/[\u0000-\u001f\u007f]/u.test(value), "ref contains control characters")
6
+ }).strict();
7
+ var VerifyPublicGitHubRepositoryRefResponse = z.object({
8
+ owner: z.string().min(1).max(39),
9
+ name: z.string().min(1).max(100),
10
+ fullName: z.string().min(3).max(140),
11
+ canonicalUrl: z.string().url(),
12
+ cloneUrl: z.string().url(),
13
+ defaultBranch: z.string().min(1).max(1024),
14
+ ref: z.string().min(1).max(1024),
15
+ commitSha: z.string().regex(/^[0-9a-f]{40}$/u)
16
+ }).strict();
17
+ var GITHUB_REPOSITORY_BRANCH_PAGE_MAX = 100;
18
+ var ListGitHubRepositoryBranchesQuery = z.object({
19
+ cursor: z.coerce.number().int().positive().max(1e4).default(1),
20
+ limit: z.coerce.number().int().min(1).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX).default(GITHUB_REPOSITORY_BRANCH_PAGE_MAX)
21
+ }).strict();
22
+ var GitHubRepositoryBranch = z.object({
23
+ name: z.string().min(1).max(1024),
24
+ isDefault: z.boolean()
25
+ }).strict();
26
+ var GitHubRepositoryBranchesResponse = z.object({
27
+ branches: z.array(GitHubRepositoryBranch).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),
28
+ nextCursor: z.number().int().positive().max(1e4).nullable()
29
+ }).strict().superRefine((response, context) => {
30
+ const names = /* @__PURE__ */ new Set();
31
+ let defaultCount = 0;
32
+ response.branches.forEach((branch, index) => {
33
+ if (names.has(branch.name)) {
34
+ context.addIssue({
35
+ code: "custom",
36
+ path: ["branches", index, "name"],
37
+ message: "branch names must be unique"
38
+ });
39
+ }
40
+ names.add(branch.name);
41
+ if (branch.isDefault) defaultCount += 1;
42
+ });
43
+ if (defaultCount > 1) {
44
+ context.addIssue({
45
+ code: "custom",
46
+ path: ["branches"],
47
+ message: "at most one branch may be marked as default"
48
+ });
49
+ }
50
+ });
51
+ export {
52
+ GITHUB_REPOSITORY_BRANCH_PAGE_MAX,
53
+ GitHubRepositoryBranch,
54
+ GitHubRepositoryBranchesResponse,
55
+ ListGitHubRepositoryBranchesQuery,
56
+ VerifyPublicGitHubRepositoryRefRequest,
57
+ VerifyPublicGitHubRepositoryRefResponse
58
+ };
59
+ //# sourceMappingURL=github-repository-contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/github-repository-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const VerifyPublicGitHubRepositoryRefRequest = z\n .object({\n url: z.string().min(1).max(2048),\n ref: z\n .string()\n .trim()\n .min(1)\n .max(1024)\n .refine((value) => !/[\\u0000-\\u001f\\u007f]/u.test(value), \"ref contains control characters\"),\n })\n .strict();\nexport type VerifyPublicGitHubRepositoryRefRequest = z.infer<\n typeof VerifyPublicGitHubRepositoryRefRequest\n>;\n\nexport const VerifyPublicGitHubRepositoryRefResponse = z\n .object({\n owner: z.string().min(1).max(39),\n name: z.string().min(1).max(100),\n fullName: z.string().min(3).max(140),\n canonicalUrl: z.string().url(),\n cloneUrl: z.string().url(),\n defaultBranch: z.string().min(1).max(1024),\n ref: z.string().min(1).max(1024),\n commitSha: z.string().regex(/^[0-9a-f]{40}$/u),\n })\n .strict();\nexport type VerifyPublicGitHubRepositoryRefResponse = z.infer<\n typeof VerifyPublicGitHubRepositoryRefResponse\n>;\n\nexport const GITHUB_REPOSITORY_BRANCH_PAGE_MAX = 100 as const;\n\nexport const ListGitHubRepositoryBranchesQuery = z\n .object({\n cursor: z.coerce.number().int().positive().max(10_000).default(1),\n limit: z.coerce\n .number()\n .int()\n .min(1)\n .max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX)\n .default(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),\n })\n .strict();\nexport type ListGitHubRepositoryBranchesQuery = z.infer<typeof ListGitHubRepositoryBranchesQuery>;\n\nexport const GitHubRepositoryBranch = z\n .object({\n name: z.string().min(1).max(1024),\n isDefault: z.boolean(),\n })\n .strict();\nexport type GitHubRepositoryBranch = z.infer<typeof GitHubRepositoryBranch>;\n\nexport const GitHubRepositoryBranchesResponse = z\n .object({\n branches: z.array(GitHubRepositoryBranch).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),\n nextCursor: z.number().int().positive().max(10_000).nullable(),\n })\n .strict()\n .superRefine((response, context) => {\n const names = new Set<string>();\n let defaultCount = 0;\n response.branches.forEach((branch, index) => {\n if (names.has(branch.name)) {\n context.addIssue({\n code: \"custom\",\n path: [\"branches\", index, \"name\"],\n message: \"branch names must be unique\",\n });\n }\n names.add(branch.name);\n if (branch.isDefault) defaultCount += 1;\n });\n if (defaultCount > 1) {\n context.addIssue({\n code: \"custom\",\n path: [\"branches\"],\n message: \"at most one branch may be marked as default\",\n });\n }\n });\nexport type GitHubRepositoryBranchesResponse = z.infer<typeof GitHubRepositoryBranchesResponse>;\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,yCAAyC,EACnD,OAAO;AAAA,EACN,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAC/B,KAAK,EACF,OAAO,EACP,KAAK,EACL,IAAI,CAAC,EACL,IAAI,IAAI,EACR,OAAO,CAAC,UAAU,CAAC,yBAAyB,KAAK,KAAK,GAAG,iCAAiC;AAC/F,CAAC,EACA,OAAO;AAKH,IAAM,0CAA0C,EACpD,OAAO;AAAA,EACN,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AAAA,EAC/B,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,EAC/B,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,EACnC,cAAc,EAAE,OAAO,EAAE,IAAI;AAAA,EAC7B,UAAU,EAAE,OAAO,EAAE,IAAI;AAAA,EACzB,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EACzC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAC/B,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB;AAC/C,CAAC,EACA,OAAO;AAKH,IAAM,oCAAoC;AAE1C,IAAM,oCAAoC,EAC9C,OAAO;AAAA,EACN,QAAQ,EAAE,OAAO,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAM,EAAE,QAAQ,CAAC;AAAA,EAChE,OAAO,EAAE,OACN,OAAO,EACP,IAAI,EACJ,IAAI,CAAC,EACL,IAAI,iCAAiC,EACrC,QAAQ,iCAAiC;AAC9C,CAAC,EACA,OAAO;AAGH,IAAM,yBAAyB,EACnC,OAAO;AAAA,EACN,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAChC,WAAW,EAAE,QAAQ;AACvB,CAAC,EACA,OAAO;AAGH,IAAM,mCAAmC,EAC7C,OAAO;AAAA,EACN,UAAU,EAAE,MAAM,sBAAsB,EAAE,IAAI,iCAAiC;AAAA,EAC/E,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAM,EAAE,SAAS;AAC/D,CAAC,EACA,OAAO,EACP,YAAY,CAAC,UAAU,YAAY;AAClC,QAAM,QAAQ,oBAAI,IAAY;AAC9B,MAAI,eAAe;AACnB,WAAS,SAAS,QAAQ,CAAC,QAAQ,UAAU;AAC3C,QAAI,MAAM,IAAI,OAAO,IAAI,GAAG;AAC1B,cAAQ,SAAS;AAAA,QACf,MAAM;AAAA,QACN,MAAM,CAAC,YAAY,OAAO,MAAM;AAAA,QAChC,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AACA,UAAM,IAAI,OAAO,IAAI;AACrB,QAAI,OAAO,UAAW,iBAAgB;AAAA,EACxC,CAAC;AACD,MAAI,eAAe,GAAG;AACpB,YAAQ,SAAS;AAAA,MACf,MAAM;AAAA,MACN,MAAM,CAAC,UAAU;AAAA,MACjB,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AACF,CAAC;","names":[]}
@@ -0,0 +1,14 @@
1
+ export type CanonicalGitHubRepository = {
2
+ owner: string;
3
+ name: string;
4
+ fullName: string;
5
+ canonicalUrl: string;
6
+ cloneUrl: string;
7
+ };
8
+ /**
9
+ * Parse only a canonical public github.com repository URL. This deliberately
10
+ * rejects aliases, credentials, ports, query/fragment state, encoded paths,
11
+ * and repository subpaths so callers cannot accidentally verify one target
12
+ * and attach another.
13
+ */
14
+ export declare function parseCanonicalGitHubRepositoryUrl(value: string): CanonicalGitHubRepository;
@@ -0,0 +1,36 @@
1
+ // src/github-repository.ts
2
+ function parseCanonicalGitHubRepositoryUrl(value) {
3
+ if (!value.startsWith("https://github.com/")) {
4
+ throw new Error("GitHub repository URL must use the exact https://github.com host.");
5
+ }
6
+ let url;
7
+ try {
8
+ url = new URL(value);
9
+ } catch {
10
+ throw new TypeError("GitHub repository URL is invalid.");
11
+ }
12
+ if (url.protocol !== "https:" || url.hostname !== "github.com" || url.host !== "github.com" || url.username || url.password || url.search || url.hash || url.pathname.includes("%")) {
13
+ throw new TypeError("Use a canonical https://github.com/owner/repository URL.");
14
+ }
15
+ const match = /^\/([^/]+)\/([^/]+?)\/?$/u.exec(url.pathname);
16
+ if (!match) {
17
+ throw new TypeError("GitHub repository URL must contain exactly owner/repository.");
18
+ }
19
+ const owner = match[1];
20
+ const name = match[2].replace(/\.git$/iu, "");
21
+ if (!/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u.test(owner) || !/^[A-Za-z0-9_.-]{1,100}$/u.test(name) || name === "." || name === "..") {
22
+ throw new TypeError("GitHub repository owner or name is invalid.");
23
+ }
24
+ const fullName = `${owner}/${name}`;
25
+ return {
26
+ owner,
27
+ name,
28
+ fullName,
29
+ canonicalUrl: `https://github.com/${fullName}`,
30
+ cloneUrl: `https://github.com/${fullName}.git`
31
+ };
32
+ }
33
+ export {
34
+ parseCanonicalGitHubRepositoryUrl
35
+ };
36
+ //# sourceMappingURL=github-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/github-repository.ts"],"sourcesContent":["export type CanonicalGitHubRepository = {\n owner: string;\n name: string;\n fullName: string;\n canonicalUrl: string;\n cloneUrl: string;\n};\n\n/**\n * Parse only a canonical public github.com repository URL. This deliberately\n * rejects aliases, credentials, ports, query/fragment state, encoded paths,\n * and repository subpaths so callers cannot accidentally verify one target\n * and attach another.\n */\nexport function parseCanonicalGitHubRepositoryUrl(value: string): CanonicalGitHubRepository {\n if (!value.startsWith(\"https://github.com/\")) {\n throw new Error(\"GitHub repository URL must use the exact https://github.com host.\");\n }\n let url: URL;\n try {\n url = new URL(value);\n } catch {\n throw new TypeError(\"GitHub repository URL is invalid.\");\n }\n if (\n url.protocol !== \"https:\" ||\n url.hostname !== \"github.com\" ||\n url.host !== \"github.com\" ||\n url.username ||\n url.password ||\n url.search ||\n url.hash ||\n url.pathname.includes(\"%\")\n ) {\n throw new TypeError(\"Use a canonical https://github.com/owner/repository URL.\");\n }\n const match = /^\\/([^/]+)\\/([^/]+?)\\/?$/u.exec(url.pathname);\n if (!match) {\n throw new TypeError(\"GitHub repository URL must contain exactly owner/repository.\");\n }\n const owner = match[1]!;\n const name = match[2]!.replace(/\\.git$/iu, \"\");\n if (\n !/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u.test(owner) ||\n !/^[A-Za-z0-9_.-]{1,100}$/u.test(name) ||\n name === \".\" ||\n name === \"..\"\n ) {\n throw new TypeError(\"GitHub repository owner or name is invalid.\");\n }\n const fullName = `${owner}/${name}`;\n return {\n owner,\n name,\n fullName,\n canonicalUrl: `https://github.com/${fullName}`,\n cloneUrl: `https://github.com/${fullName}.git`,\n };\n}\n"],"mappings":";AAcO,SAAS,kCAAkC,OAA0C;AAC1F,MAAI,CAAC,MAAM,WAAW,qBAAqB,GAAG;AAC5C,UAAM,IAAI,MAAM,mEAAmE;AAAA,EACrF;AACA,MAAI;AACJ,MAAI;AACF,UAAM,IAAI,IAAI,KAAK;AAAA,EACrB,QAAQ;AACN,UAAM,IAAI,UAAU,mCAAmC;AAAA,EACzD;AACA,MACE,IAAI,aAAa,YACjB,IAAI,aAAa,gBACjB,IAAI,SAAS,gBACb,IAAI,YACJ,IAAI,YACJ,IAAI,UACJ,IAAI,QACJ,IAAI,SAAS,SAAS,GAAG,GACzB;AACA,UAAM,IAAI,UAAU,0DAA0D;AAAA,EAChF;AACA,QAAM,QAAQ,4BAA4B,KAAK,IAAI,QAAQ;AAC3D,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,UAAU,8DAA8D;AAAA,EACpF;AACA,QAAM,QAAQ,MAAM,CAAC;AACrB,QAAM,OAAO,MAAM,CAAC,EAAG,QAAQ,YAAY,EAAE;AAC7C,MACE,CAAC,mDAAmD,KAAK,KAAK,KAC9D,CAAC,2BAA2B,KAAK,IAAI,KACrC,SAAS,OACT,SAAS,MACT;AACA,UAAM,IAAI,UAAU,6CAA6C;AAAA,EACnE;AACA,QAAM,WAAW,GAAG,KAAK,IAAI,IAAI;AACjC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc,sBAAsB,QAAQ;AAAA,IAC5C,UAAU,sBAAsB,QAAQ;AAAA,EAC1C;AACF;","names":[]}
@@ -8,15 +8,19 @@ export declare const GOOGLE_DRIVE_READONLY_SCOPE: "https://www.googleapis.com/au
8
8
  export declare const GOOGLE_DRIVE_CREDENTIAL_ROLE: "google_drive_metadata";
9
9
  export declare const GOOGLE_DRIVE_CREDENTIAL_LABEL: "Google Drive read-only source sync";
10
10
  export declare const GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL: "Google Drive metadata browser";
11
+ export declare const GOOGLE_DRIVE_PUBLICATION_SERVER_ID: "google-drive-publishing";
12
+ export declare const GOOGLE_DRIVE_PUBLICATION_TOOL_NAME: "google_drive_publish_file";
13
+ export declare const GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION: "create";
11
14
  export declare const GoogleDriveOAuthCapability: z.ZodEnum<{
12
15
  picker_file_read: "picker_file_read";
16
+ publish_file: "publish_file";
13
17
  recursive_source_sync: "recursive_source_sync";
14
18
  source_content_read: "source_content_read";
15
19
  source_metadata_discovery: "source_metadata_discovery";
16
20
  }>;
17
21
  export type GoogleDriveOAuthCapability = z.infer<typeof GoogleDriveOAuthCapability>;
18
22
  export type GoogleDriveOAuthScopeDecision = {
19
- accessMode: "metadata_readonly" | "readonly" | null;
23
+ accessMode: "file_only" | "metadata_readonly" | "readonly" | null;
20
24
  capabilities: GoogleDriveOAuthCapability[];
21
25
  };
22
26
  /**
@@ -122,6 +126,17 @@ export declare const GoogleDriveSelectedSource: z.ZodObject<{
122
126
  selectedAt: z.ZodString;
123
127
  }, z.core.$strip>;
124
128
  export type GoogleDriveSelectedSource = z.infer<typeof GoogleDriveSelectedSource>;
129
+ export declare const GoogleDriveOutputDestination: z.ZodObject<{
130
+ folderId: z.ZodString;
131
+ folderName: z.ZodString;
132
+ driveId: z.ZodNullable<z.ZodString>;
133
+ location: z.ZodEnum<{
134
+ my_drive: "my_drive";
135
+ shared_drive: "shared_drive";
136
+ }>;
137
+ selectedAt: z.ZodString;
138
+ }, z.core.$strict>;
139
+ export type GoogleDriveOutputDestination = z.infer<typeof GoogleDriveOutputDestination>;
125
140
  export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
126
141
  credentialRole: z.ZodLiteral<"google_drive_metadata">;
127
142
  credentialLabel: z.ZodUnion<readonly [z.ZodLiteral<"Google Drive read-only source sync">, z.ZodLiteral<"Google Drive metadata browser">]>;
@@ -130,6 +145,7 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
130
145
  googleDisplayName: z.ZodNullable<z.ZodString>;
131
146
  verifiedAt: z.ZodString;
132
147
  accessMode: z.ZodEnum<{
148
+ file_only: "file_only";
133
149
  metadata_readonly: "metadata_readonly";
134
150
  readonly: "readonly";
135
151
  }>;
@@ -162,6 +178,16 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
162
178
  recoverable: z.ZodLiteral<true>;
163
179
  observedAt: z.ZodString;
164
180
  }, z.core.$strip>], "state">>;
181
+ outputDestination: z.ZodOptional<z.ZodObject<{
182
+ folderId: z.ZodString;
183
+ folderName: z.ZodString;
184
+ driveId: z.ZodNullable<z.ZodString>;
185
+ location: z.ZodEnum<{
186
+ my_drive: "my_drive";
187
+ shared_drive: "shared_drive";
188
+ }>;
189
+ selectedAt: z.ZodString;
190
+ }, z.core.$strict>>;
165
191
  documentDestination: z.ZodOptional<z.ZodObject<{
166
192
  authorityKind: z.ZodEnum<{
167
193
  organization: "organization";
@@ -247,6 +273,10 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
247
273
  export type GoogleDriveConnectionMetadata = z.infer<typeof GoogleDriveConnectionMetadata>;
248
274
  export declare const GoogleDriveOAuthStartRequest: z.ZodObject<{
249
275
  connectionId: z.ZodOptional<z.ZodString>;
276
+ capability: z.ZodDefault<z.ZodEnum<{
277
+ publish: "publish";
278
+ source_read: "source_read";
279
+ }>>;
250
280
  }, z.core.$strip>;
251
281
  export type GoogleDriveOAuthStartRequest = z.infer<typeof GoogleDriveOAuthStartRequest>;
252
282
  export declare const GoogleDriveOAuthStartResponse: z.ZodObject<{
@@ -267,6 +297,63 @@ export declare const GoogleDriveDisconnectRequest: z.ZodObject<{
267
297
  idempotencyKey: z.ZodString;
268
298
  }, z.core.$strip>;
269
299
  export type GoogleDriveDisconnectRequest = z.infer<typeof GoogleDriveDisconnectRequest>;
300
+ export declare const GoogleDrivePublicationExportFile: z.ZodObject<{
301
+ fileId: z.ZodString;
302
+ filename: z.ZodString;
303
+ contentType: z.ZodString;
304
+ sizeBytes: z.ZodNumber;
305
+ sha256: z.ZodString;
306
+ artifactId: z.ZodString;
307
+ versionId: z.ZodString;
308
+ materializationJobId: z.ZodString;
309
+ sourceHeadSequence: z.ZodNumber;
310
+ sourceStateHash: z.ZodString;
311
+ }, z.core.$strict>;
312
+ export type GoogleDrivePublicationExportFile = z.infer<typeof GoogleDrivePublicationExportFile>;
313
+ export declare const GoogleDrivePublicationToolInput: z.ZodObject<{
314
+ title: z.ZodString;
315
+ modality: z.ZodEnum<{
316
+ document: "document";
317
+ presentation: "presentation";
318
+ spreadsheet: "spreadsheet";
319
+ }>;
320
+ file: z.ZodObject<{
321
+ fileId: z.ZodString;
322
+ filename: z.ZodString;
323
+ contentType: z.ZodString;
324
+ sizeBytes: z.ZodNumber;
325
+ sha256: z.ZodString;
326
+ artifactId: z.ZodString;
327
+ versionId: z.ZodString;
328
+ materializationJobId: z.ZodString;
329
+ sourceHeadSequence: z.ZodNumber;
330
+ sourceStateHash: z.ZodString;
331
+ }, z.core.$strict>;
332
+ idempotencyKey: z.ZodString;
333
+ }, z.core.$strict>;
334
+ export type GoogleDrivePublicationToolInput = z.infer<typeof GoogleDrivePublicationToolInput>;
335
+ export declare const GoogleDrivePublicationReceipt: z.ZodObject<{
336
+ connectionId: z.ZodString;
337
+ providerFileId: z.ZodString;
338
+ webViewLink: z.ZodString;
339
+ mimeType: z.ZodEnum<{
340
+ "application/vnd.google-apps.document": "application/vnd.google-apps.document";
341
+ "application/vnd.google-apps.presentation": "application/vnd.google-apps.presentation";
342
+ "application/vnd.google-apps.spreadsheet": "application/vnd.google-apps.spreadsheet";
343
+ }>;
344
+ destination: z.ZodObject<{
345
+ folderId: z.ZodString;
346
+ folderName: z.ZodString;
347
+ driveId: z.ZodNullable<z.ZodString>;
348
+ location: z.ZodEnum<{
349
+ my_drive: "my_drive";
350
+ shared_drive: "shared_drive";
351
+ }>;
352
+ selectedAt: z.ZodString;
353
+ }, z.core.$strict>;
354
+ replayed: z.ZodBoolean;
355
+ }, z.core.$strict>;
356
+ export type GoogleDrivePublicationReceipt = z.infer<typeof GoogleDrivePublicationReceipt>;
270
357
  export declare const GoogleDriveBrowseItem: z.ZodObject<{
271
358
  id: z.ZodString;
272
359
  name: z.ZodString;
@@ -284,6 +371,8 @@ export type GoogleDriveBrowseItem = z.infer<typeof GoogleDriveBrowseItem>;
284
371
  export declare const GoogleDriveBrowseResponse: z.ZodObject<{
285
372
  connection: z.ZodLazy<z.ZodObject<{
286
373
  id: z.ZodString;
374
+ authorityId: z.ZodOptional<z.ZodString>;
375
+ connectionAuthorityGeneration: z.ZodOptional<z.ZodNumber>;
287
376
  accountId: z.ZodString;
288
377
  workspaceId: z.ZodString;
289
378
  subjectId: z.ZodNullable<z.ZodString>;
@@ -1,23 +1,39 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-VA22KRHS.js";
4
- import "./chunk-H5BVCZKF.js";
5
- import "./chunk-5UDNP7AO.js";
6
- import "./chunk-52SGB2QO.js";
7
- import "./chunk-TZ6YEYN4.js";
8
- import "./chunk-YRKRZ6OF.js";
3
+ } from "./chunk-X7ETVO4P.js";
4
+ import "./chunk-5IXYF6XN.js";
5
+ import "./chunk-NRMCVHAU.js";
9
6
  import {
10
7
  ConnectorDocumentDestination,
11
8
  ConnectorDocumentDestinationSelection
12
9
  } from "./chunk-WYBDERIY.js";
13
- import "./chunk-Y3MLSLB4.js";
14
- import "./chunk-FJBG5E4O.js";
15
- import "./chunk-CADSX6UN.js";
10
+ import "./chunk-4JGHSSB7.js";
11
+ import "./chunk-EK7NDGFR.js";
12
+ import "./chunk-O77VSFYZ.js";
13
+ import "./chunk-NVJMJWLL.js";
14
+ import "./chunk-SIOU2K4U.js";
15
+ import "./chunk-YRKRZ6OF.js";
16
+ import "./chunk-2VORLN2R.js";
17
+ import "./chunk-FZ6BXQHL.js";
18
+ import "./chunk-GRG7PHWQ.js";
19
+ import "./chunk-YRXAWWCU.js";
20
+ import "./chunk-2ACYHZFB.js";
21
+ import "./chunk-KHHZTBP7.js";
22
+ import "./chunk-YBW5JSA3.js";
23
+ import "./chunk-RJ76DRPO.js";
24
+ import "./chunk-QR5D2IQC.js";
25
+ import "./chunk-3SIZGL3O.js";
16
26
  import "./chunk-RIY7GYQS.js";
17
- import "./chunk-BVGIYW7D.js";
27
+ import "./chunk-JUFK3T4Q.js";
28
+ import "./chunk-TSCDAGET.js";
29
+ import "./chunk-BCS7WHCK.js";
18
30
  import "./chunk-D2HKF2EF.js";
19
31
  import "./chunk-MYBZRDTY.js";
20
- import "./chunk-LSB7GRLG.js";
32
+ import "./chunk-MZLBPKFE.js";
33
+ import "./chunk-RKX3NQYS.js";
34
+ import "./chunk-Y3KNXVTD.js";
35
+ import "./chunk-TXTQIYCV.js";
36
+ import "./chunk-PX3VCKAU.js";
21
37
 
22
38
  // src/google-drive.ts
23
39
  import { z } from "zod";
@@ -29,8 +45,12 @@ var GOOGLE_DRIVE_READONLY_SCOPE = "https://www.googleapis.com/auth/drive.readonl
29
45
  var GOOGLE_DRIVE_CREDENTIAL_ROLE = "google_drive_metadata";
30
46
  var GOOGLE_DRIVE_CREDENTIAL_LABEL = "Google Drive read-only source sync";
31
47
  var GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL = "Google Drive metadata browser";
48
+ var GOOGLE_DRIVE_PUBLICATION_SERVER_ID = "google-drive-publishing";
49
+ var GOOGLE_DRIVE_PUBLICATION_TOOL_NAME = "google_drive_publish_file";
50
+ var GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION = "create";
32
51
  var GoogleDriveOAuthCapability = z.enum([
33
52
  "picker_file_read",
53
+ "publish_file",
34
54
  "source_metadata_discovery",
35
55
  "source_content_read",
36
56
  "recursive_source_sync"
@@ -39,16 +59,18 @@ function googleDriveOAuthScopeDecision(grantedScopes) {
39
59
  const granted = new Set(grantedScopes);
40
60
  const hasFullDrive = granted.has(GOOGLE_DRIVE_FULL_SCOPE);
41
61
  const hasSourceContentRead = hasFullDrive || granted.has(GOOGLE_DRIVE_READONLY_SCOPE);
62
+ const hasFileWrite = hasFullDrive || granted.has(GOOGLE_DRIVE_FILE_SCOPE);
42
63
  const hasSourceMetadataDiscovery = hasSourceContentRead || granted.has(GOOGLE_DRIVE_METADATA_READONLY_SCOPE);
43
- const hasPickerFileRead = hasSourceContentRead || granted.has(GOOGLE_DRIVE_FILE_SCOPE);
64
+ const hasPickerFileRead = hasSourceContentRead || hasFileWrite;
44
65
  const capabilities = [];
45
66
  if (hasPickerFileRead) capabilities.push("picker_file_read");
67
+ if (hasFileWrite) capabilities.push("publish_file");
46
68
  if (hasSourceMetadataDiscovery) capabilities.push("source_metadata_discovery");
47
69
  if (hasSourceContentRead) {
48
70
  capabilities.push("source_content_read", "recursive_source_sync");
49
71
  }
50
72
  return {
51
- accessMode: hasSourceContentRead ? "readonly" : hasSourceMetadataDiscovery ? "metadata_readonly" : null,
73
+ accessMode: hasSourceContentRead ? "readonly" : hasSourceMetadataDiscovery ? "metadata_readonly" : hasFileWrite ? "file_only" : null,
52
74
  capabilities
53
75
  };
54
76
  }
@@ -119,6 +141,21 @@ var GoogleDriveSelectedSource = z.object({
119
141
  readPolicy: GoogleDriveReadPolicy.default("allow"),
120
142
  selectedAt: z.string().datetime({ offset: true })
121
143
  });
144
+ var GoogleDriveOutputDestination = z.object({
145
+ folderId: z.string().min(1).max(256),
146
+ folderName: z.string().min(1).max(1024),
147
+ driveId: z.string().min(1).max(256).nullable(),
148
+ location: z.enum(["my_drive", "shared_drive"]),
149
+ selectedAt: z.string().datetime({ offset: true })
150
+ }).strict().superRefine((value, context) => {
151
+ if (value.location === "my_drive" !== (value.driveId === null)) {
152
+ context.addIssue({
153
+ code: "custom",
154
+ path: ["driveId"],
155
+ message: "Google Drive destination location does not match its drive identity"
156
+ });
157
+ }
158
+ });
122
159
  var GoogleDriveConnectionMetadata = z.object({
123
160
  credentialRole: z.literal(GOOGLE_DRIVE_CREDENTIAL_ROLE),
124
161
  credentialLabel: z.union([
@@ -129,15 +166,17 @@ var GoogleDriveConnectionMetadata = z.object({
129
166
  googleEmail: z.string().email().max(320),
130
167
  googleDisplayName: z.string().min(1).max(512).nullable(),
131
168
  verifiedAt: z.string().datetime({ offset: true }),
132
- accessMode: z.enum(["metadata_readonly", "readonly"]),
169
+ accessMode: z.enum(["file_only", "metadata_readonly", "readonly"]),
133
170
  lifecycle: GoogleDriveConnectionLifecycle.optional(),
171
+ outputDestination: GoogleDriveOutputDestination.optional(),
134
172
  documentDestination: ConnectorDocumentDestination.optional(),
135
173
  selectedSources: z.array(GoogleDriveSelectedSource).max(100).optional(),
136
174
  /** @deprecated Read `selectedSources`; retained while existing connections migrate. */
137
175
  selectedSource: GoogleDriveSelectedSource.nullable().optional()
138
176
  }).passthrough();
139
177
  var GoogleDriveOAuthStartRequest = z.object({
140
- connectionId: z.string().uuid().optional()
178
+ connectionId: z.string().uuid().optional(),
179
+ capability: z.enum(["source_read", "publish"]).default("source_read")
141
180
  });
142
181
  var GoogleDriveOAuthStartResponse = z.object({
143
182
  authorizationUrl: z.string().url(),
@@ -151,6 +190,36 @@ var GoogleDriveDisconnectRequest = z.object({
151
190
  expectedVersion: z.number().int().positive(),
152
191
  idempotencyKey: z.string().trim().min(1).max(200)
153
192
  });
193
+ var GoogleDrivePublicationExportFile = z.object({
194
+ fileId: z.string().uuid(),
195
+ filename: z.string().trim().min(1).max(512),
196
+ contentType: z.string().trim().min(1).max(256),
197
+ sizeBytes: z.number().int().positive(),
198
+ sha256: z.string().regex(/^[0-9a-f]{64}$/u),
199
+ artifactId: z.string().regex(/^[0-9a-f]{32}$/u),
200
+ versionId: z.string().regex(/^[0-9a-f]{32}$/u),
201
+ materializationJobId: z.string().regex(/^[0-9a-f]{32}$/u),
202
+ sourceHeadSequence: z.number().int().nonnegative(),
203
+ sourceStateHash: z.string().regex(/^sha256:[0-9a-f]{64}$/u)
204
+ }).strict();
205
+ var GoogleDrivePublicationToolInput = z.object({
206
+ title: z.string().trim().min(1).max(512),
207
+ modality: z.enum(["document", "spreadsheet", "presentation"]),
208
+ file: GoogleDrivePublicationExportFile,
209
+ idempotencyKey: z.string().trim().min(1).max(200)
210
+ }).strict();
211
+ var GoogleDrivePublicationReceipt = z.object({
212
+ connectionId: z.string().uuid(),
213
+ providerFileId: z.string().min(1).max(256),
214
+ webViewLink: z.string().url(),
215
+ mimeType: z.enum([
216
+ "application/vnd.google-apps.document",
217
+ "application/vnd.google-apps.spreadsheet",
218
+ "application/vnd.google-apps.presentation"
219
+ ]),
220
+ destination: GoogleDriveOutputDestination,
221
+ replayed: z.boolean()
222
+ }).strict();
154
223
  var GoogleDriveBrowseItem = z.object({
155
224
  id: z.string().min(1).max(256),
156
225
  name: z.string().min(1).max(1024),
@@ -229,6 +298,9 @@ export {
229
298
  GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL,
230
299
  GOOGLE_DRIVE_METADATA_READONLY_SCOPE,
231
300
  GOOGLE_DRIVE_PROVIDER_DOMAIN,
301
+ GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION,
302
+ GOOGLE_DRIVE_PUBLICATION_SERVER_ID,
303
+ GOOGLE_DRIVE_PUBLICATION_TOOL_NAME,
232
304
  GOOGLE_DRIVE_READONLY_SCOPE,
233
305
  GoogleDriveBrowseItem,
234
306
  GoogleDriveBrowseResponse,
@@ -243,6 +315,10 @@ export {
243
315
  GoogleDriveOAuthCapability,
244
316
  GoogleDriveOAuthStartRequest,
245
317
  GoogleDriveOAuthStartResponse,
318
+ GoogleDriveOutputDestination,
319
+ GoogleDrivePublicationExportFile,
320
+ GoogleDrivePublicationReceipt,
321
+ GoogleDrivePublicationToolInput,
246
322
  GoogleDriveReadPolicy,
247
323
  GoogleDriveSelectedSource,
248
324
  GoogleDriveSyncCadence,