@codemem/core 0.46.3 → 0.47.0-beta.3

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 (481) hide show
  1. package/dist/address-utils.d.ts.map +1 -1
  2. package/dist/better-sqlite-coordinator-runtime.d.ts +2 -0
  3. package/dist/better-sqlite-coordinator-runtime.d.ts.map +1 -1
  4. package/dist/better-sqlite-coordinator-store.d.ts +109 -5
  5. package/dist/better-sqlite-coordinator-store.d.ts.map +1 -1
  6. package/dist/coordinator-account-change-browser.d.ts +39 -0
  7. package/dist/coordinator-account-change-browser.d.ts.map +1 -0
  8. package/dist/coordinator-account-change-contract.d.ts +4 -0
  9. package/dist/coordinator-account-change-contract.d.ts.map +1 -0
  10. package/dist/coordinator-account-change-http-test-fixtures.d.ts +101 -0
  11. package/dist/coordinator-account-change-http-test-fixtures.d.ts.map +1 -0
  12. package/dist/coordinator-account-change-schema.d.ts +5 -0
  13. package/dist/coordinator-account-change-schema.d.ts.map +1 -0
  14. package/dist/coordinator-account-change.d.ts +100 -0
  15. package/dist/coordinator-account-change.d.ts.map +1 -0
  16. package/dist/coordinator-account-connection-link.d.ts +25 -0
  17. package/dist/coordinator-account-connection-link.d.ts.map +1 -0
  18. package/dist/coordinator-account-connection-schema.d.ts +68 -0
  19. package/dist/coordinator-account-connection-schema.d.ts.map +1 -0
  20. package/dist/coordinator-account-connection-session.d.ts +15 -0
  21. package/dist/coordinator-account-connection-session.d.ts.map +1 -0
  22. package/dist/coordinator-account-connection-storage.d.ts +46 -0
  23. package/dist/coordinator-account-connection-storage.d.ts.map +1 -0
  24. package/dist/coordinator-account-historical-revoke.d.ts +7 -0
  25. package/dist/coordinator-account-historical-revoke.d.ts.map +1 -0
  26. package/dist/coordinator-account-link-receipt.d.ts +20 -0
  27. package/dist/coordinator-account-link-receipt.d.ts.map +1 -0
  28. package/dist/coordinator-account-link-receiver.d.ts +28 -0
  29. package/dist/coordinator-account-link-receiver.d.ts.map +1 -0
  30. package/dist/coordinator-account-link-runtime.d.ts +45 -0
  31. package/dist/coordinator-account-link-runtime.d.ts.map +1 -0
  32. package/dist/coordinator-account-link-signer.d.ts +15 -0
  33. package/dist/coordinator-account-link-signer.d.ts.map +1 -0
  34. package/dist/coordinator-account-link-status-client.d.ts +37 -0
  35. package/dist/coordinator-account-link-status-client.d.ts.map +1 -0
  36. package/dist/coordinator-account-link-status.d.ts +23 -0
  37. package/dist/coordinator-account-link-status.d.ts.map +1 -0
  38. package/dist/coordinator-account-unlink-schema.d.ts +7 -0
  39. package/dist/coordinator-account-unlink-schema.d.ts.map +1 -0
  40. package/dist/coordinator-actions.d.ts +29 -0
  41. package/dist/coordinator-actions.d.ts.map +1 -1
  42. package/dist/coordinator-api.d.ts +21 -1
  43. package/dist/coordinator-api.d.ts.map +1 -1
  44. package/dist/coordinator-auth-account-profile-contract.d.ts +41 -0
  45. package/dist/coordinator-auth-account-profile-contract.d.ts.map +1 -0
  46. package/dist/coordinator-auth-account-profile.d.ts +27 -0
  47. package/dist/coordinator-auth-account-profile.d.ts.map +1 -0
  48. package/dist/coordinator-auth-browser-migration-test-harness.d.ts +18 -0
  49. package/dist/coordinator-auth-browser-migration-test-harness.d.ts.map +1 -0
  50. package/dist/coordinator-auth-browser-owner-purpose-test-harness.d.ts +6 -0
  51. package/dist/coordinator-auth-browser-owner-purpose-test-harness.d.ts.map +1 -0
  52. package/dist/coordinator-auth-browser-proof-test-fixtures.d.ts +25 -0
  53. package/dist/coordinator-auth-browser-proof-test-fixtures.d.ts.map +1 -0
  54. package/dist/coordinator-auth-browser-schema-upgrade.d.ts +6 -0
  55. package/dist/coordinator-auth-browser-schema-upgrade.d.ts.map +1 -0
  56. package/dist/coordinator-auth-browser-style.d.ts +6 -0
  57. package/dist/coordinator-auth-browser-style.d.ts.map +1 -0
  58. package/dist/coordinator-auth-browser-transaction-contract.d.ts +130 -0
  59. package/dist/coordinator-auth-browser-transaction-contract.d.ts.map +1 -0
  60. package/dist/coordinator-auth-browser-transaction-test-fixtures.d.ts +14 -0
  61. package/dist/coordinator-auth-browser-transaction-test-fixtures.d.ts.map +1 -0
  62. package/dist/coordinator-auth-browser-transaction.d.ts +36 -0
  63. package/dist/coordinator-auth-browser-transaction.d.ts.map +1 -0
  64. package/dist/coordinator-auth-browser-view.d.ts +84 -0
  65. package/dist/coordinator-auth-browser-view.d.ts.map +1 -0
  66. package/dist/coordinator-auth-contract.d.ts +71 -0
  67. package/dist/coordinator-auth-contract.d.ts.map +1 -0
  68. package/dist/coordinator-auth-controller-review-route.d.ts +38 -0
  69. package/dist/coordinator-auth-controller-review-route.d.ts.map +1 -0
  70. package/dist/coordinator-auth-controller.d.ts +87 -0
  71. package/dist/coordinator-auth-controller.d.ts.map +1 -0
  72. package/dist/coordinator-auth-device-claim-eligibility.d.ts +43 -0
  73. package/dist/coordinator-auth-device-claim-eligibility.d.ts.map +1 -0
  74. package/dist/coordinator-auth-device-claim-schema.d.ts +116 -0
  75. package/dist/coordinator-auth-device-claim-schema.d.ts.map +1 -0
  76. package/dist/coordinator-auth-historical-migration-test-fixture.d.ts +2 -0
  77. package/dist/coordinator-auth-historical-migration-test-fixture.d.ts.map +1 -0
  78. package/dist/coordinator-auth-historical-store-test-fixture.d.ts +13 -0
  79. package/dist/coordinator-auth-historical-store-test-fixture.d.ts.map +1 -0
  80. package/dist/coordinator-auth-historical-test-fixture.d.ts +48 -0
  81. package/dist/coordinator-auth-historical-test-fixture.d.ts.map +1 -0
  82. package/dist/coordinator-auth-legacy-assignment.d.ts +12 -0
  83. package/dist/coordinator-auth-legacy-assignment.d.ts.map +1 -0
  84. package/dist/coordinator-auth-lifecycle-admission-schema.d.ts +28 -0
  85. package/dist/coordinator-auth-lifecycle-admission-schema.d.ts.map +1 -0
  86. package/dist/coordinator-auth-lifecycle-browser-schema.d.ts +15 -0
  87. package/dist/coordinator-auth-lifecycle-browser-schema.d.ts.map +1 -0
  88. package/dist/coordinator-auth-lifecycle-current-readiness.d.ts +7 -0
  89. package/dist/coordinator-auth-lifecycle-current-readiness.d.ts.map +1 -0
  90. package/dist/coordinator-auth-lifecycle-first-link.d.ts +17 -0
  91. package/dist/coordinator-auth-lifecycle-first-link.d.ts.map +1 -0
  92. package/dist/coordinator-auth-lifecycle-fresh-schema.d.ts +14 -0
  93. package/dist/coordinator-auth-lifecycle-fresh-schema.d.ts.map +1 -0
  94. package/dist/coordinator-auth-lifecycle-predecessor-shapes.d.ts +24 -0
  95. package/dist/coordinator-auth-lifecycle-predecessor-shapes.d.ts.map +1 -0
  96. package/dist/coordinator-auth-lifecycle-predecessor.d.ts +9 -0
  97. package/dist/coordinator-auth-lifecycle-predecessor.d.ts.map +1 -0
  98. package/dist/coordinator-auth-lifecycle-profile-schema.d.ts +13 -0
  99. package/dist/coordinator-auth-lifecycle-profile-schema.d.ts.map +1 -0
  100. package/dist/coordinator-auth-lifecycle-recognition.d.ts +22 -0
  101. package/dist/coordinator-auth-lifecycle-recognition.d.ts.map +1 -0
  102. package/dist/coordinator-auth-lifecycle-schema.d.ts +20 -0
  103. package/dist/coordinator-auth-lifecycle-schema.d.ts.map +1 -0
  104. package/dist/coordinator-auth-lifecycle-upgrade-copy.d.ts +36 -0
  105. package/dist/coordinator-auth-lifecycle-upgrade-copy.d.ts.map +1 -0
  106. package/dist/coordinator-auth-lifecycle-upgrade-sqlite.d.ts +11 -0
  107. package/dist/coordinator-auth-lifecycle-upgrade-sqlite.d.ts.map +1 -0
  108. package/dist/coordinator-auth-lifecycle-upgrade-test-fixture.d.ts +31 -0
  109. package/dist/coordinator-auth-lifecycle-upgrade-test-fixture.d.ts.map +1 -0
  110. package/dist/coordinator-auth-lifecycle-upgrade.d.ts +6 -0
  111. package/dist/coordinator-auth-lifecycle-upgrade.d.ts.map +1 -0
  112. package/dist/coordinator-auth-link-authority-upgrade.d.ts +17 -0
  113. package/dist/coordinator-auth-link-authority-upgrade.d.ts.map +1 -0
  114. package/dist/coordinator-auth-link-authority.d.ts +92 -0
  115. package/dist/coordinator-auth-link-authority.d.ts.map +1 -0
  116. package/dist/coordinator-auth-link-change-schema.d.ts +21 -0
  117. package/dist/coordinator-auth-link-change-schema.d.ts.map +1 -0
  118. package/dist/coordinator-auth-link-contract.d.ts +137 -0
  119. package/dist/coordinator-auth-link-contract.d.ts.map +1 -0
  120. package/dist/coordinator-auth-link-input.d.ts +7 -0
  121. package/dist/coordinator-auth-link-input.d.ts.map +1 -0
  122. package/dist/coordinator-auth-link-legacy-inline-test-fixture.d.ts +2 -0
  123. package/dist/coordinator-auth-link-legacy-inline-test-fixture.d.ts.map +1 -0
  124. package/dist/coordinator-auth-link-liveness.d.ts +8 -0
  125. package/dist/coordinator-auth-link-liveness.d.ts.map +1 -0
  126. package/dist/coordinator-auth-link-maintenance-fixtures.d.ts +14 -0
  127. package/dist/coordinator-auth-link-maintenance-fixtures.d.ts.map +1 -0
  128. package/dist/coordinator-auth-link-profile.d.ts +15 -0
  129. package/dist/coordinator-auth-link-profile.d.ts.map +1 -0
  130. package/dist/coordinator-auth-link-provenance.d.ts +17 -0
  131. package/dist/coordinator-auth-link-provenance.d.ts.map +1 -0
  132. package/dist/coordinator-auth-link-revocation-test-harness.d.ts +19 -0
  133. package/dist/coordinator-auth-link-revocation-test-harness.d.ts.map +1 -0
  134. package/dist/coordinator-auth-link-source.d.ts +15 -0
  135. package/dist/coordinator-auth-link-source.d.ts.map +1 -0
  136. package/dist/coordinator-auth-link-test-fixtures.d.ts +49 -0
  137. package/dist/coordinator-auth-link-test-fixtures.d.ts.map +1 -0
  138. package/dist/coordinator-auth-link.d.ts +91 -0
  139. package/dist/coordinator-auth-link.d.ts.map +1 -0
  140. package/dist/coordinator-auth-loopback.d.ts +11 -0
  141. package/dist/coordinator-auth-loopback.d.ts.map +1 -0
  142. package/dist/coordinator-auth-proof.d.ts +4 -0
  143. package/dist/coordinator-auth-proof.d.ts.map +1 -0
  144. package/dist/coordinator-auth-schema-operator.d.ts +6 -0
  145. package/dist/coordinator-auth-schema-operator.d.ts.map +1 -0
  146. package/dist/coordinator-auth-schema.d.ts +18 -0
  147. package/dist/coordinator-auth-schema.d.ts.map +1 -0
  148. package/dist/coordinator-auth-session-bound-test-fixtures.d.ts +7 -0
  149. package/dist/coordinator-auth-session-bound-test-fixtures.d.ts.map +1 -0
  150. package/dist/coordinator-auth-session-contract.d.ts +104 -0
  151. package/dist/coordinator-auth-session-contract.d.ts.map +1 -0
  152. package/dist/coordinator-auth-session-test-fixtures.d.ts +31 -0
  153. package/dist/coordinator-auth-session-test-fixtures.d.ts.map +1 -0
  154. package/dist/coordinator-auth-session.d.ts +44 -0
  155. package/dist/coordinator-auth-session.d.ts.map +1 -0
  156. package/dist/coordinator-auth-store-test-fixtures.d.ts +26 -0
  157. package/dist/coordinator-auth-store-test-fixtures.d.ts.map +1 -0
  158. package/dist/coordinator-bootstrap-authorization-api-test-harness.d.ts +5 -0
  159. package/dist/coordinator-bootstrap-authorization-api-test-harness.d.ts.map +1 -0
  160. package/dist/coordinator-bootstrap-authorization-test-harness.d.ts +11 -0
  161. package/dist/coordinator-bootstrap-authorization-test-harness.d.ts.map +1 -0
  162. package/dist/coordinator-bootstrap-grant-authorization.d.ts +28 -0
  163. package/dist/coordinator-bootstrap-grant-authorization.d.ts.map +1 -0
  164. package/dist/coordinator-bootstrap-grant-issuance.d.ts +22 -0
  165. package/dist/coordinator-bootstrap-grant-issuance.d.ts.map +1 -0
  166. package/dist/coordinator-bootstrap-revocation-test-harness.d.ts +11 -0
  167. package/dist/coordinator-bootstrap-revocation-test-harness.d.ts.map +1 -0
  168. package/dist/coordinator-browser-account.d.ts +36 -0
  169. package/dist/coordinator-browser-account.d.ts.map +1 -0
  170. package/dist/coordinator-browser-auth-app.d.ts +84 -0
  171. package/dist/coordinator-browser-auth-app.d.ts.map +1 -0
  172. package/dist/coordinator-browser-auth-callback.d.ts +47 -0
  173. package/dist/coordinator-browser-auth-callback.d.ts.map +1 -0
  174. package/dist/coordinator-browser-auth-config.d.ts +32 -0
  175. package/dist/coordinator-browser-auth-config.d.ts.map +1 -0
  176. package/dist/coordinator-browser-credential.d.ts +40 -0
  177. package/dist/coordinator-browser-credential.d.ts.map +1 -0
  178. package/dist/coordinator-browser-csrf.d.ts +19 -0
  179. package/dist/coordinator-browser-csrf.d.ts.map +1 -0
  180. package/dist/coordinator-browser-form-body.d.ts +42 -0
  181. package/dist/coordinator-browser-form-body.d.ts.map +1 -0
  182. package/dist/coordinator-browser-form-guard.d.ts +55 -0
  183. package/dist/coordinator-browser-form-guard.d.ts.map +1 -0
  184. package/dist/coordinator-browser-link-completion.d.ts +32 -0
  185. package/dist/coordinator-browser-link-completion.d.ts.map +1 -0
  186. package/dist/coordinator-browser-link-start.d.ts +39 -0
  187. package/dist/coordinator-browser-link-start.d.ts.map +1 -0
  188. package/dist/coordinator-browser-link.d.ts +36 -0
  189. package/dist/coordinator-browser-link.d.ts.map +1 -0
  190. package/dist/coordinator-browser-request.d.ts +10 -0
  191. package/dist/coordinator-browser-request.d.ts.map +1 -0
  192. package/dist/coordinator-browser-signin-start.d.ts +38 -0
  193. package/dist/coordinator-browser-signin-start.d.ts.map +1 -0
  194. package/dist/coordinator-browser-start-transaction.d.ts +6 -0
  195. package/dist/coordinator-browser-start-transaction.d.ts.map +1 -0
  196. package/dist/coordinator-controller-revocation-test-harness.d.ts +11 -0
  197. package/dist/coordinator-controller-revocation-test-harness.d.ts.map +1 -0
  198. package/dist/coordinator-d1-scope-authorization-test-harness.d.ts +14 -0
  199. package/dist/coordinator-d1-scope-authorization-test-harness.d.ts.map +1 -0
  200. package/dist/coordinator-device-account-change.d.ts +17 -0
  201. package/dist/coordinator-device-account-change.d.ts.map +1 -0
  202. package/dist/coordinator-device-auth-link.d.ts +43 -0
  203. package/dist/coordinator-device-auth-link.d.ts.map +1 -0
  204. package/dist/coordinator-device-local.d.ts +9 -0
  205. package/dist/coordinator-device-local.d.ts.map +1 -0
  206. package/dist/coordinator-device-ownership-schema.d.ts +3 -0
  207. package/dist/coordinator-device-ownership-schema.d.ts.map +1 -0
  208. package/dist/coordinator-device-ownership-test-harness.d.ts +17 -0
  209. package/dist/coordinator-device-ownership-test-harness.d.ts.map +1 -0
  210. package/dist/coordinator-device-revocation-client.d.ts +41 -0
  211. package/dist/coordinator-device-revocation-client.d.ts.map +1 -0
  212. package/dist/coordinator-device-revocation-handler-test-harness.d.ts +4 -0
  213. package/dist/coordinator-device-revocation-handler-test-harness.d.ts.map +1 -0
  214. package/dist/coordinator-device-revocation-handler.d.ts +17 -0
  215. package/dist/coordinator-device-revocation-handler.d.ts.map +1 -0
  216. package/dist/coordinator-device-revocation-route.d.ts +14 -0
  217. package/dist/coordinator-device-revocation-route.d.ts.map +1 -0
  218. package/dist/coordinator-device-revocation-test-harness.d.ts +34 -0
  219. package/dist/coordinator-device-revocation-test-harness.d.ts.map +1 -0
  220. package/dist/coordinator-device-revocation.d.ts +67 -0
  221. package/dist/coordinator-device-revocation.d.ts.map +1 -0
  222. package/dist/coordinator-ed25519-key-id-compat.d.ts +6 -0
  223. package/dist/coordinator-ed25519-key-id-compat.d.ts.map +1 -0
  224. package/dist/coordinator-ed25519-key-id-test-fixtures.d.ts +30 -0
  225. package/dist/coordinator-ed25519-key-id-test-fixtures.d.ts.map +1 -0
  226. package/dist/coordinator-ed25519-key-id.d.ts +21 -0
  227. package/dist/coordinator-ed25519-key-id.d.ts.map +1 -0
  228. package/dist/coordinator-enrollment-revocation-test-harness.d.ts +6 -0
  229. package/dist/coordinator-enrollment-revocation-test-harness.d.ts.map +1 -0
  230. package/dist/coordinator-hono-test-fixtures.d.ts +2 -0
  231. package/dist/coordinator-hono-test-fixtures.d.ts.map +1 -0
  232. package/dist/coordinator-identity-grant-revocation-test-harness.d.ts +11 -0
  233. package/dist/coordinator-identity-grant-revocation-test-harness.d.ts.map +1 -0
  234. package/dist/coordinator-identity-group-grant-client.d.ts +9 -0
  235. package/dist/coordinator-identity-group-grant-client.d.ts.map +1 -0
  236. package/dist/coordinator-identity-group-grant-input-test-harness.d.ts +3 -0
  237. package/dist/coordinator-identity-group-grant-input-test-harness.d.ts.map +1 -0
  238. package/dist/coordinator-identity-group-grant-test-harness.d.ts +17 -0
  239. package/dist/coordinator-identity-group-grant-test-harness.d.ts.map +1 -0
  240. package/dist/coordinator-identity-group-grant.d.ts +51 -0
  241. package/dist/coordinator-identity-group-grant.d.ts.map +1 -0
  242. package/dist/coordinator-invite-review.d.ts +64 -0
  243. package/dist/coordinator-invite-review.d.ts.map +1 -0
  244. package/dist/coordinator-join-review-guards.d.ts +22 -0
  245. package/dist/coordinator-join-review-guards.d.ts.map +1 -0
  246. package/dist/coordinator-join-revocation-test-harness.d.ts +23 -0
  247. package/dist/coordinator-join-revocation-test-harness.d.ts.map +1 -0
  248. package/dist/coordinator-legacy-device-ownership.d.ts +34 -0
  249. package/dist/coordinator-legacy-device-ownership.d.ts.map +1 -0
  250. package/dist/coordinator-oidc-test-fixtures.d.ts +50 -0
  251. package/dist/coordinator-oidc-test-fixtures.d.ts.map +1 -0
  252. package/dist/coordinator-oidc.d.ts +59 -0
  253. package/dist/coordinator-oidc.d.ts.map +1 -0
  254. package/dist/coordinator-owner-attempt-migration-test-harness.d.ts +16 -0
  255. package/dist/coordinator-owner-attempt-migration-test-harness.d.ts.map +1 -0
  256. package/dist/coordinator-owner-enrollment-client.d.ts +29 -0
  257. package/dist/coordinator-owner-enrollment-client.d.ts.map +1 -0
  258. package/dist/coordinator-owner-enrollment-commit-test-fixtures.d.ts +31 -0
  259. package/dist/coordinator-owner-enrollment-commit-test-fixtures.d.ts.map +1 -0
  260. package/dist/coordinator-owner-enrollment-commit.d.ts +23 -0
  261. package/dist/coordinator-owner-enrollment-commit.d.ts.map +1 -0
  262. package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts +11 -0
  263. package/dist/coordinator-owner-enrollment-historical-test-fixture.d.ts.map +1 -0
  264. package/dist/coordinator-owner-enrollment-http.d.ts +67 -0
  265. package/dist/coordinator-owner-enrollment-http.d.ts.map +1 -0
  266. package/dist/coordinator-owner-enrollment-proof.d.ts +67 -0
  267. package/dist/coordinator-owner-enrollment-proof.d.ts.map +1 -0
  268. package/dist/coordinator-owner-enrollment-qualification-schema.d.ts +107 -0
  269. package/dist/coordinator-owner-enrollment-qualification-schema.d.ts.map +1 -0
  270. package/dist/coordinator-owner-enrollment-qualification-test-harness.d.ts +39 -0
  271. package/dist/coordinator-owner-enrollment-qualification-test-harness.d.ts.map +1 -0
  272. package/dist/coordinator-owner-enrollment-qualification.d.ts +56 -0
  273. package/dist/coordinator-owner-enrollment-qualification.d.ts.map +1 -0
  274. package/dist/coordinator-owner-enrollment-schema.d.ts +7 -0
  275. package/dist/coordinator-owner-enrollment-schema.d.ts.map +1 -0
  276. package/dist/coordinator-owner-enrollment-start-test-fixtures.d.ts +54 -0
  277. package/dist/coordinator-owner-enrollment-start-test-fixtures.d.ts.map +1 -0
  278. package/dist/coordinator-owner-enrollment-test-harness.d.ts +72 -0
  279. package/dist/coordinator-owner-enrollment-test-harness.d.ts.map +1 -0
  280. package/dist/coordinator-owner-profile-adoption.d.ts +34 -0
  281. package/dist/coordinator-owner-profile-adoption.d.ts.map +1 -0
  282. package/dist/coordinator-owner-profile-client-test-harness.d.ts +57 -0
  283. package/dist/coordinator-owner-profile-client-test-harness.d.ts.map +1 -0
  284. package/dist/coordinator-owner-profile-client.d.ts +38 -0
  285. package/dist/coordinator-owner-profile-client.d.ts.map +1 -0
  286. package/dist/coordinator-owner-profile-files.d.ts +62 -0
  287. package/dist/coordinator-owner-profile-files.d.ts.map +1 -0
  288. package/dist/coordinator-owner-qualification-http.d.ts +14 -0
  289. package/dist/coordinator-owner-qualification-http.d.ts.map +1 -0
  290. package/dist/coordinator-owner-qualification-route.d.ts +16 -0
  291. package/dist/coordinator-owner-qualification-route.d.ts.map +1 -0
  292. package/dist/coordinator-owner-review-local.d.ts +35 -0
  293. package/dist/coordinator-owner-review-local.d.ts.map +1 -0
  294. package/dist/coordinator-peer-discovery-revocation-test-harness.d.ts +21 -0
  295. package/dist/coordinator-peer-discovery-revocation-test-harness.d.ts.map +1 -0
  296. package/dist/coordinator-peer-discovery.d.ts +15 -0
  297. package/dist/coordinator-peer-discovery.d.ts.map +1 -0
  298. package/dist/coordinator-project-invite-guards.d.ts +13 -0
  299. package/dist/coordinator-project-invite-guards.d.ts.map +1 -0
  300. package/dist/coordinator-project-revocation-test-harness.d.ts +25 -0
  301. package/dist/coordinator-project-revocation-test-harness.d.ts.map +1 -0
  302. package/dist/coordinator-recipient-revocation-test-harness.d.ts +30 -0
  303. package/dist/coordinator-recipient-revocation-test-harness.d.ts.map +1 -0
  304. package/dist/coordinator-runtime.d.ts +1 -0
  305. package/dist/coordinator-runtime.d.ts.map +1 -1
  306. package/dist/coordinator-scope-authorization-api-test-harness.d.ts +8 -0
  307. package/dist/coordinator-scope-authorization-api-test-harness.d.ts.map +1 -0
  308. package/dist/coordinator-scope-authorization-response.d.ts +10 -0
  309. package/dist/coordinator-scope-authorization-response.d.ts.map +1 -0
  310. package/dist/coordinator-scope-authorization.d.ts +25 -0
  311. package/dist/coordinator-scope-authorization.d.ts.map +1 -0
  312. package/dist/coordinator-store-contract.d.ts +48 -1
  313. package/dist/coordinator-store-contract.d.ts.map +1 -1
  314. package/dist/coordinator-store.d.ts +2 -1
  315. package/dist/coordinator-store.d.ts.map +1 -1
  316. package/dist/d1-coordinator-runtime.d.ts +9 -1
  317. package/dist/d1-coordinator-runtime.d.ts.map +1 -1
  318. package/dist/d1-coordinator-store.d.ts +108 -5
  319. package/dist/d1-coordinator-store.d.ts.map +1 -1
  320. package/dist/db.d.ts.map +1 -1
  321. package/dist/export-import.d.ts +2 -0
  322. package/dist/export-import.d.ts.map +1 -1
  323. package/dist/extraction-tier-routing.d.ts.map +1 -1
  324. package/dist/file-context-transport.d.ts +93 -0
  325. package/dist/file-context-transport.d.ts.map +1 -0
  326. package/dist/file-context.d.ts +58 -0
  327. package/dist/file-context.d.ts.map +1 -0
  328. package/dist/filters.d.ts +14 -3
  329. package/dist/filters.d.ts.map +1 -1
  330. package/dist/index.d.ts +43 -11
  331. package/dist/index.d.ts.map +1 -1
  332. package/dist/index.js +29731 -23760
  333. package/dist/index.js.map +1 -1
  334. package/dist/ingest-pipeline.d.ts +4 -0
  335. package/dist/ingest-pipeline.d.ts.map +1 -1
  336. package/dist/ingest-xml-parser.d.ts +2 -5
  337. package/dist/ingest-xml-parser.d.ts.map +1 -1
  338. package/dist/ingest-xml-scan.d.ts +30 -0
  339. package/dist/ingest-xml-scan.d.ts.map +1 -0
  340. package/dist/internal/cloudflare-coordinator.d.ts +23 -2
  341. package/dist/internal/cloudflare-coordinator.d.ts.map +1 -1
  342. package/dist/internal/cloudflare-coordinator.js +4109 -372
  343. package/dist/internal/cloudflare-coordinator.js.map +1 -1
  344. package/dist/legacy-recipient-policy-projection.d.ts.map +1 -1
  345. package/dist/maintenance/relink.d.ts.map +1 -1
  346. package/dist/managed-scope-test-fixtures.d.ts +25 -0
  347. package/dist/managed-scope-test-fixtures.d.ts.map +1 -0
  348. package/dist/memory-creation-provenance.d.ts +13 -0
  349. package/dist/memory-creation-provenance.d.ts.map +1 -0
  350. package/dist/memory-local-capture-test-fixtures.d.ts +39 -0
  351. package/dist/memory-local-capture-test-fixtures.d.ts.map +1 -0
  352. package/dist/memory-local-capture.d.ts +29 -0
  353. package/dist/memory-local-capture.d.ts.map +1 -0
  354. package/dist/memory-ownership-recovery.d.ts.map +1 -1
  355. package/dist/memory-retirement-delivery.d.ts.map +1 -1
  356. package/dist/memory-source-identity.d.ts +3 -0
  357. package/dist/memory-source-identity.d.ts.map +1 -1
  358. package/dist/observer-client.d.ts.map +1 -1
  359. package/dist/observer-output.d.ts.map +1 -1
  360. package/dist/opencode-v2-generation.d.ts.map +1 -1
  361. package/dist/owned-recipient-d1-test-harness.d.ts +7 -0
  362. package/dist/owned-recipient-d1-test-harness.d.ts.map +1 -0
  363. package/dist/owner-browser-admission-authority.d.ts +24 -0
  364. package/dist/owner-browser-admission-authority.d.ts.map +1 -0
  365. package/dist/owner-browser-admission-body.d.ts +8 -0
  366. package/dist/owner-browser-admission-body.d.ts.map +1 -0
  367. package/dist/owner-browser-admission.d.ts +30 -0
  368. package/dist/owner-browser-admission.d.ts.map +1 -0
  369. package/dist/owner-enrollment-admission.d.ts +58 -0
  370. package/dist/owner-enrollment-admission.d.ts.map +1 -0
  371. package/dist/owner-enrollment-link-authority.d.ts +26 -0
  372. package/dist/owner-enrollment-link-authority.d.ts.map +1 -0
  373. package/dist/owner-enrollment-owner-pin-test-harness.d.ts +21 -0
  374. package/dist/owner-enrollment-owner-pin-test-harness.d.ts.map +1 -0
  375. package/dist/owner-enrollment-owner-pin.d.ts +14 -0
  376. package/dist/owner-enrollment-owner-pin.d.ts.map +1 -0
  377. package/dist/owner-enrollment-start-xsoRbhG2.js +14318 -0
  378. package/dist/owner-enrollment-start-xsoRbhG2.js.map +1 -0
  379. package/dist/owner-enrollment-start.d.ts +109 -0
  380. package/dist/owner-enrollment-start.d.ts.map +1 -0
  381. package/dist/owner-qualified-consumer-access-test-harness.d.ts +3 -0
  382. package/dist/owner-qualified-consumer-access-test-harness.d.ts.map +1 -0
  383. package/dist/owner-qualified-consumer-adversarial-test-harness.d.ts +5 -0
  384. package/dist/owner-qualified-consumer-adversarial-test-harness.d.ts.map +1 -0
  385. package/dist/owner-qualified-consumer-test-fixture.d.ts +4 -0
  386. package/dist/owner-qualified-consumer-test-fixture.d.ts.map +1 -0
  387. package/dist/owner-qualified-consumer-test-harness.d.ts +69 -0
  388. package/dist/owner-qualified-consumer-test-harness.d.ts.map +1 -0
  389. package/dist/pack.d.ts.map +1 -1
  390. package/dist/pi-session-search.d.ts +73 -0
  391. package/dist/pi-session-search.d.ts.map +1 -0
  392. package/dist/pi-sessions-import.d.ts +72 -0
  393. package/dist/pi-sessions-import.d.ts.map +1 -0
  394. package/dist/policy-team-device-eligibility.d.ts.map +1 -1
  395. package/dist/project-scope-settings.d.ts +4 -0
  396. package/dist/project-scope-settings.d.ts.map +1 -1
  397. package/dist/{promise-B3UhYSzv.js → promise-BgC-VNzX.js} +436 -214
  398. package/dist/promise-BgC-VNzX.js.map +1 -0
  399. package/dist/{service-contender-9rqn6x4v-pocTjwT1.js → pty-handoff-9rqn6x4v-Dxw6kceQ.js} +2 -2
  400. package/dist/pty-handoff-9rqn6x4v-Dxw6kceQ.js.map +1 -0
  401. package/dist/raw-event-auth-recovery.d.ts +1 -1
  402. package/dist/raw-event-auth-recovery.d.ts.map +1 -1
  403. package/dist/raw-event-flush.d.ts.map +1 -1
  404. package/dist/recipient-policy-deny-overlay.d.ts +9 -0
  405. package/dist/recipient-policy-deny-overlay.d.ts.map +1 -0
  406. package/dist/recipient-policy-reconciliation.d.ts +1 -9
  407. package/dist/recipient-policy-reconciliation.d.ts.map +1 -1
  408. package/dist/ref-queries.d.ts +7 -2
  409. package/dist/ref-queries.d.ts.map +1 -1
  410. package/dist/schema-bootstrap.d.ts +2 -0
  411. package/dist/schema-bootstrap.d.ts.map +1 -1
  412. package/dist/schema.d.ts +160 -0
  413. package/dist/schema.d.ts.map +1 -1
  414. package/dist/scope-membership-cache-test-fixtures.d.ts +19 -0
  415. package/dist/scope-membership-cache-test-fixtures.d.ts.map +1 -0
  416. package/dist/scope-membership-cache.d.ts +15 -2
  417. package/dist/scope-membership-cache.d.ts.map +1 -1
  418. package/dist/scope-membership-evidence.d.ts +17 -0
  419. package/dist/scope-membership-evidence.d.ts.map +1 -0
  420. package/dist/scope-membership-snapshot.d.ts +22 -0
  421. package/dist/scope-membership-snapshot.d.ts.map +1 -0
  422. package/dist/scope-membership-wire.d.ts +4 -0
  423. package/dist/scope-membership-wire.d.ts.map +1 -0
  424. package/dist/scope-resolution.d.ts +15 -37
  425. package/dist/scope-resolution.d.ts.map +1 -1
  426. package/dist/scope-stamping.d.ts +7 -0
  427. package/dist/scope-stamping.d.ts.map +1 -1
  428. package/dist/scope-write-authority-error.d.ts +5 -0
  429. package/dist/scope-write-authority-error.d.ts.map +1 -0
  430. package/dist/search.d.ts +3 -1
  431. package/dist/search.d.ts.map +1 -1
  432. package/dist/session-export-identity-mutation.d.ts +4 -0
  433. package/dist/session-export-identity-mutation.d.ts.map +1 -0
  434. package/dist/session-export-identity.d.ts +7 -0
  435. package/dist/session-export-identity.d.ts.map +1 -0
  436. package/dist/shared-owned-device-enrollment-test-harness.d.ts +33 -0
  437. package/dist/shared-owned-device-enrollment-test-harness.d.ts.map +1 -0
  438. package/dist/shared-owned-join-approval-test-harness.d.ts +9 -0
  439. package/dist/shared-owned-join-approval-test-harness.d.ts.map +1 -0
  440. package/dist/shared-owned-project-invites-test-harness.d.ts +23 -0
  441. package/dist/shared-owned-project-invites-test-harness.d.ts.map +1 -0
  442. package/dist/shared-owned-recipient-invites-test-harness.d.ts +11 -0
  443. package/dist/shared-owned-recipient-invites-test-harness.d.ts.map +1 -0
  444. package/dist/shared-ownership-writer-lifecycle-test-harness.d.ts +19 -0
  445. package/dist/shared-ownership-writer-lifecycle-test-harness.d.ts.map +1 -0
  446. package/dist/store.d.ts +81 -13
  447. package/dist/store.d.ts.map +1 -1
  448. package/dist/summary-memory.d.ts +1 -1
  449. package/dist/summary-memory.d.ts.map +1 -1
  450. package/dist/sync-bootstrap.d.ts.map +1 -1
  451. package/dist/sync-http-client.d.ts +1 -0
  452. package/dist/sync-http-client.d.ts.map +1 -1
  453. package/dist/sync-identity.d.ts +6 -0
  454. package/dist/sync-identity.d.ts.map +1 -1
  455. package/dist/sync-pass.d.ts.map +1 -1
  456. package/dist/sync-replication.d.ts +6 -3
  457. package/dist/sync-replication.d.ts.map +1 -1
  458. package/dist/sync-scope-protocol.d.ts +6 -0
  459. package/dist/sync-scope-protocol.d.ts.map +1 -1
  460. package/dist/sync-status-test-fixtures.d.ts +21 -0
  461. package/dist/sync-status-test-fixtures.d.ts.map +1 -0
  462. package/dist/test-schema.generated.d.ts +1 -1
  463. package/dist/test-schema.generated.d.ts.map +1 -1
  464. package/dist/vector-corpus-epoch.d.ts +10 -0
  465. package/dist/vector-corpus-epoch.d.ts.map +1 -0
  466. package/dist/vector-cutover-validation.d.ts +19 -0
  467. package/dist/vector-cutover-validation.d.ts.map +1 -0
  468. package/dist/vector-metadata-snapshot.d.ts +21 -0
  469. package/dist/vector-metadata-snapshot.d.ts.map +1 -0
  470. package/dist/vector-migration.d.ts.map +1 -1
  471. package/dist/vectors.d.ts +8 -1
  472. package/dist/vectors.d.ts.map +1 -1
  473. package/dist/wildcard-match.d.ts +9 -0
  474. package/dist/wildcard-match.d.ts.map +1 -0
  475. package/dist/workspace-identity.d.ts +18 -0
  476. package/dist/workspace-identity.d.ts.map +1 -0
  477. package/package.json +5 -4
  478. package/dist/coordinator-api-CdUQtf5l.js +0 -3755
  479. package/dist/coordinator-api-CdUQtf5l.js.map +0 -1
  480. package/dist/promise-B3UhYSzv.js.map +0 -1
  481. package/dist/service-contender-9rqn6x4v-pocTjwT1.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { t as e } from "./service-contender-9rqn6x4v-pocTjwT1.js";
2
- //#region ../../node_modules/.pnpm/@opencode+client@2.0.12_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/service-contender-frbwqjmf.js
1
+ import { t as e } from "./pty-handoff-9rqn6x4v-Dxw6kceQ.js";
2
+ //#region ../../node_modules/.pnpm/@opencode+client@2.0.24_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/pty-handoff-frbwqjmf.js
3
3
  var t = {};
4
4
  e(t, {
5
5
  SharedEvents: () => t,
@@ -106,29 +106,32 @@ function n(e) {
106
106
  } };
107
107
  }
108
108
  //#endregion
109
- //#region ../../node_modules/.pnpm/@opencode+client@2.0.12_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/service-contender-qc0tvgb4.js
109
+ //#region ../../node_modules/.pnpm/@opencode+client@2.0.24_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/pty-handoff-js54wxgp.js
110
110
  var r = class extends Error {
111
111
  reason;
112
112
  name = "ClientError";
113
113
  constructor(e, t) {
114
- super(e, t), this.reason = e;
114
+ let n = t?.detail ?? (t?.cause instanceof Error ? t.cause.message : void 0);
115
+ super(n ? `${e}: ${n}` : e, t), this.reason = e;
115
116
  }
116
117
  };
117
118
  e({}, { make: () => a });
118
119
  var i = 16777216;
119
120
  function a(e) {
120
121
  let t = e.fetch ?? globalThis.fetch, n = (t, n) => {
121
- let r = new URL(t.path, e.baseUrl);
122
- for (let [e, n] of Object.entries(t.query ?? {})) s(r.searchParams, e, n);
123
- let i = new Headers(e.headers);
124
- for (let [e, n] of Object.entries(t.headers ?? {})) n != null && i.set(e, String(n));
125
- for (let [e, t] of new Headers(n?.headers)) i.set(e, t);
126
- return t.body !== void 0 && !i.has("content-type") && i.set("content-type", t.binaryBody ? "application/octet-stream" : "application/json"), {
127
- url: r,
122
+ let r = new URL(e.baseUrl);
123
+ r.pathname.endsWith("/") || (r.pathname += "/");
124
+ let i = new URL(t.path.slice(1), r);
125
+ for (let [e, n] of Object.entries(t.query ?? {})) s(i.searchParams, e, n);
126
+ let a = new Headers(e.headers);
127
+ for (let [e, n] of Object.entries(t.headers ?? {})) n != null && a.set(e, String(n));
128
+ for (let [e, t] of new Headers(n?.headers)) a.set(e, t);
129
+ return t.body !== void 0 && !a.has("content-type") && a.set("content-type", t.binaryBody ? "application/octet-stream" : "application/json"), {
130
+ url: i,
128
131
  init: {
129
132
  method: t.method,
130
133
  signal: n?.signal,
131
- headers: i,
134
+ headers: a,
132
135
  body: t.body === void 0 ? void 0 : t.binaryBody ? t.body : JSON.stringify(t.body)
133
136
  }
134
137
  };
@@ -139,15 +142,18 @@ function a(e) {
139
142
  } catch (e) {
140
143
  throw new r("Transport", { cause: e });
141
144
  }
142
- }, u = async (e, t) => {
143
- if (t.declaredStatuses.includes(e.status)) throw await c(e);
145
+ }, d = async (e, t) => {
146
+ if (t.declaredStatuses.includes(e.status)) throw l(await c(e));
144
147
  try {
145
148
  await e.body?.cancel();
146
149
  } catch {}
147
- throw new r("UnexpectedStatus", { cause: { status: e.status } });
148
- }, d = async (e, t) => {
150
+ throw new r("UnexpectedStatus", {
151
+ cause: { status: e.status },
152
+ detail: String(e.status)
153
+ });
154
+ }, f = async (e, t) => {
149
155
  let n = await a(e, t);
150
- if (n.status !== e.successStatus) return u(n, e);
156
+ if (n.status !== e.successStatus) return d(n, e);
151
157
  if (e.binary) return new Uint8Array(await n.arrayBuffer());
152
158
  if (e.empty) {
153
159
  try {
@@ -156,13 +162,13 @@ function a(e) {
156
162
  return;
157
163
  }
158
164
  return await c(n);
159
- }, f = (e, t) => ({ async *[Symbol.asyncIterator]() {
165
+ }, p = (e, t) => ({ async *[Symbol.asyncIterator]() {
160
166
  let n = await a(e, t);
161
- if (n.status !== e.successStatus && await u(n, e), !l(n, "text/event-stream")) {
167
+ if (n.status !== e.successStatus && await d(n, e), !u(n, "text/event-stream")) {
162
168
  try {
163
169
  await n.body?.cancel();
164
170
  } catch {}
165
- throw new r("UnsupportedContentType");
171
+ throw new r("UnsupportedContentType", { detail: n.headers.get("content-type") });
166
172
  }
167
173
  if (n.body === null) throw new r("MalformedResponse");
168
174
  let o = n.body.getReader(), s = new TextDecoder(), c = "";
@@ -199,23 +205,43 @@ function a(e) {
199
205
  }
200
206
  } });
201
207
  return {
202
- server: { info: (e) => d({
203
- method: "GET",
204
- path: "/api/info",
205
- successStatus: 200,
206
- declaredStatuses: [400, 401],
207
- empty: !1
208
- }, e) },
208
+ server: {
209
+ info: (e) => f({
210
+ method: "GET",
211
+ path: "/api/info",
212
+ successStatus: 200,
213
+ declaredStatuses: [400, 401],
214
+ empty: !1
215
+ }, e),
216
+ pair: (e) => f({
217
+ method: "POST",
218
+ path: "/api/pair",
219
+ successStatus: 200,
220
+ declaredStatuses: [400, 401],
221
+ empty: !1
222
+ }, e),
223
+ connect: (e, t) => f({
224
+ method: "GET",
225
+ path: `/auth/connect/${encodeURIComponent(e.code)}`,
226
+ successStatus: 200,
227
+ declaredStatuses: [400, 401],
228
+ empty: !1
229
+ }, t)
230
+ },
209
231
  location: {
210
- get: (e, t) => d({
232
+ get: (e, t) => f({
211
233
  method: "GET",
212
234
  path: "/api/location",
213
235
  query: { location: e?.location },
214
236
  successStatus: 200,
215
- declaredStatuses: [400, 401],
237
+ declaredStatuses: [
238
+ 400,
239
+ 401,
240
+ 404
241
+ ],
216
242
  empty: !1
217
243
  }, t),
218
- reload: (e) => d({
244
+ reload: (e) => f({
219
245
  method: "POST",
220
246
  path: "/api/location/reload",
221
247
  successStatus: 204,
@@ -228,15 +254,19 @@ function a(e) {
228
254
  }, e)
229
255
  },
230
256
  agent: {
231
- list: (e, t) => d({
257
+ list: (e, t) => f({
232
258
  method: "GET",
233
259
  path: "/api/agent",
234
260
  query: { location: e?.location },
235
261
  successStatus: 200,
236
- declaredStatuses: [400, 401],
262
+ declaredStatuses: [
263
+ 400,
264
+ 401,
265
+ 404
266
+ ],
237
267
  empty: !1
238
268
  }, t),
239
- get: (e, t) => d({
269
+ get: (e, t) => f({
240
270
  method: "GET",
241
271
  path: `/api/agent/${encodeURIComponent(e.agentID)}`,
242
272
  query: { location: e.location },
@@ -250,24 +280,32 @@ function a(e) {
250
280
  }, t)
251
281
  },
252
282
  plugin: {
253
- list: (e, t) => d({
283
+ list: (e, t) => f({
254
284
  method: "GET",
255
285
  path: "/api/plugin",
256
286
  query: { location: e?.location },
257
287
  successStatus: 200,
258
- declaredStatuses: [400, 401],
288
+ declaredStatuses: [
289
+ 400,
290
+ 401,
291
+ 404
292
+ ],
259
293
  empty: !1
260
294
  }, t),
261
- check: (e, t) => d({
295
+ check: (e, t) => f({
262
296
  method: "POST",
263
297
  path: "/api/plugin/check",
264
298
  query: { location: e?.location },
265
299
  body: { target: e?.target },
266
300
  successStatus: 200,
267
- declaredStatuses: [400, 401],
301
+ declaredStatuses: [
302
+ 400,
303
+ 401,
304
+ 404
305
+ ],
268
306
  empty: !1
269
307
  }, t),
270
- update: (e, t) => d({
308
+ update: (e, t) => f({
271
309
  method: "POST",
272
310
  path: "/api/plugin/update",
273
311
  query: { location: e.location },
@@ -276,13 +314,14 @@ function a(e) {
276
314
  declaredStatuses: [
277
315
  400,
278
316
  401,
317
+ 404,
279
318
  503
280
319
  ],
281
320
  empty: !0
282
321
  }, t)
283
322
  },
284
323
  session: {
285
- list: (e, t) => d({
324
+ list: (e, t) => f({
286
325
  method: "GET",
287
326
  path: "/api/session",
288
327
  query: {
@@ -299,7 +338,7 @@ function a(e) {
299
338
  declaredStatuses: [400, 401],
300
339
  empty: !1
301
340
  }, t),
302
- stats: (e, t) => d({
341
+ stats: (e, t) => f({
303
342
  method: "GET",
304
343
  path: "/api/experimental/session/stats",
305
344
  query: {
@@ -313,11 +352,12 @@ function a(e) {
313
352
  declaredStatuses: [400, 401],
314
353
  empty: !1
315
354
  }, t).then((e) => e.data),
316
- create: (e, t) => d({
355
+ create: (e, t) => f({
317
356
  method: "POST",
318
357
  path: "/api/session",
319
358
  body: {
320
359
  id: e?.id,
360
+ parentID: e?.parentID,
321
361
  title: e?.title,
322
362
  agent: e?.agent,
323
363
  model: e?.model,
@@ -326,10 +366,14 @@ function a(e) {
326
366
  permissions: e?.permissions
327
367
  },
328
368
  successStatus: 200,
329
- declaredStatuses: [400, 401],
369
+ declaredStatuses: [
370
+ 400,
371
+ 401,
372
+ 404
373
+ ],
330
374
  empty: !1
331
375
  }, t).then((e) => e.data),
332
- import: (e, t) => d({
376
+ import: (e, t) => f({
333
377
  method: "POST",
334
378
  path: "/api/experimental/session/import",
335
379
  body: {
@@ -346,7 +390,7 @@ function a(e) {
346
390
  ],
347
391
  empty: !1
348
392
  }, t).then((e) => e.data),
349
- export: (e, t) => d({
393
+ export: (e, t) => f({
350
394
  method: "GET",
351
395
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/export`,
352
396
  query: { sanitize: e.sanitize },
@@ -359,14 +403,14 @@ function a(e) {
359
403
  ],
360
404
  empty: !1
361
405
  }, t).then((e) => e.data),
362
- active: (e) => d({
406
+ active: (e) => f({
363
407
  method: "GET",
364
408
  path: "/api/session/active",
365
409
  successStatus: 200,
366
410
  declaredStatuses: [400, 401],
367
411
  empty: !1
368
412
  }, e).then((e) => e.data),
369
- get: (e, t) => d({
413
+ get: (e, t) => f({
370
414
  method: "GET",
371
415
  path: `/api/session/${encodeURIComponent(e.sessionID)}`,
372
416
  successStatus: 200,
@@ -377,7 +421,7 @@ function a(e) {
377
421
  ],
378
422
  empty: !1
379
423
  }, t).then((e) => e.data),
380
- remove: (e, t) => d({
424
+ remove: (e, t) => f({
381
425
  method: "DELETE",
382
426
  path: `/api/session/${encodeURIComponent(e.sessionID)}`,
383
427
  successStatus: 204,
@@ -388,7 +432,7 @@ function a(e) {
388
432
  ],
389
433
  empty: !0
390
434
  }, t),
391
- fork: (e, t) => d({
435
+ fork: (e, t) => f({
392
436
  method: "POST",
393
437
  path: `/api/session/${encodeURIComponent(e.sessionID)}/fork`,
394
438
  body: { before: e.before },
@@ -400,7 +444,7 @@ function a(e) {
400
444
  ],
401
445
  empty: !1
402
446
  }, t).then((e) => e.data),
403
- switchAgent: (e, t) => d({
447
+ switchAgent: (e, t) => f({
404
448
  method: "POST",
405
449
  path: `/api/session/${encodeURIComponent(e.sessionID)}/agent`,
406
450
  body: { agent: e.agent },
@@ -412,7 +456,7 @@ function a(e) {
412
456
  ],
413
457
  empty: !0
414
458
  }, t),
415
- switchModel: (e, t) => d({
459
+ switchModel: (e, t) => f({
416
460
  method: "POST",
417
461
  path: `/api/session/${encodeURIComponent(e.sessionID)}/model`,
418
462
  body: { model: e.model },
@@ -424,11 +468,12 @@ function a(e) {
424
468
  ],
425
469
  empty: !0
426
470
  }, t),
427
- update: (e, t) => d({
471
+ update: (e, t) => f({
428
472
  method: "PATCH",
429
473
  path: `/api/session/${encodeURIComponent(e.sessionID)}`,
430
474
  body: {
431
475
  title: e.title,
476
+ metadata: e.metadata,
432
477
  permissions: e.permissions
433
478
  },
434
479
  successStatus: 204,
@@ -439,7 +484,7 @@ function a(e) {
439
484
  ],
440
485
  empty: !0
441
486
  }, t),
442
- move: (e, t) => d({
487
+ move: (e, t) => f({
443
488
  method: "POST",
444
489
  path: `/api/session/${encodeURIComponent(e.sessionID)}/move`,
445
490
  body: {
@@ -454,7 +499,7 @@ function a(e) {
454
499
  ],
455
500
  empty: !0
456
501
  }, t),
457
- prompt: (e, t) => d({
502
+ prompt: (e, t) => f({
458
503
  method: "POST",
459
504
  path: `/api/session/${encodeURIComponent(e.sessionID)}/prompt`,
460
505
  body: {
@@ -476,7 +521,7 @@ function a(e) {
476
521
  ],
477
522
  empty: !1
478
523
  }, t).then((e) => e.data),
479
- command: (e, t) => d({
524
+ command: (e, t) => f({
480
525
  method: "POST",
481
526
  path: `/api/session/${encodeURIComponent(e.sessionID)}/command`,
482
527
  body: {
@@ -496,7 +541,7 @@ function a(e) {
496
541
  ],
497
542
  empty: !0
498
543
  }, t),
499
- skill: (e, t) => d({
544
+ skill: (e, t) => f({
500
545
  method: "POST",
501
546
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/skill`,
502
547
  body: {
@@ -511,7 +556,7 @@ function a(e) {
511
556
  ],
512
557
  empty: !0
513
558
  }, t),
514
- synthetic: (e, t) => d({
559
+ synthetic: (e, t) => f({
515
560
  method: "POST",
516
561
  path: `/api/session/${encodeURIComponent(e.sessionID)}/synthetic`,
517
562
  body: {
@@ -531,7 +576,7 @@ function a(e) {
531
576
  ],
532
577
  empty: !1
533
578
  }, t).then((e) => e.data),
534
- shell: (e, t) => d({
579
+ shell: (e, t) => f({
535
580
  method: "POST",
536
581
  path: `/api/session/${encodeURIComponent(e.sessionID)}/shell`,
537
582
  body: {
@@ -546,7 +591,7 @@ function a(e) {
546
591
  ],
547
592
  empty: !0
548
593
  }, t),
549
- compact: (e, t) => d({
594
+ compact: (e, t) => f({
550
595
  method: "POST",
551
596
  path: `/api/session/${encodeURIComponent(e.sessionID)}/compact`,
552
597
  body: {
@@ -562,7 +607,7 @@ function a(e) {
562
607
  ],
563
608
  empty: !1
564
609
  }, t).then((e) => e.data),
565
- wait: (e, t) => d({
610
+ wait: (e, t) => f({
566
611
  method: "POST",
567
612
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/wait`,
568
613
  successStatus: 204,
@@ -575,7 +620,7 @@ function a(e) {
575
620
  empty: !0
576
621
  }, t),
577
622
  revert: {
578
- stage: (e, t) => d({
623
+ stage: (e, t) => f({
579
624
  method: "POST",
580
625
  path: `/api/session/${encodeURIComponent(e.sessionID)}/revert/stage`,
581
626
  body: {
@@ -592,7 +637,7 @@ function a(e) {
592
637
  ],
593
638
  empty: !1
594
639
  }, t).then((e) => e.data),
595
- clear: (e, t) => d({
640
+ clear: (e, t) => f({
596
641
  method: "DELETE",
597
642
  path: `/api/session/${encodeURIComponent(e.sessionID)}/revert`,
598
643
  successStatus: 204,
@@ -605,7 +650,7 @@ function a(e) {
605
650
  ],
606
651
  empty: !0
607
652
  }, t),
608
- commit: (e, t) => d({
653
+ commit: (e, t) => f({
609
654
  method: "POST",
610
655
  path: `/api/session/${encodeURIComponent(e.sessionID)}/revert/commit`,
611
656
  successStatus: 204,
@@ -618,7 +663,7 @@ function a(e) {
618
663
  empty: !0
619
664
  }, t)
620
665
  },
621
- context: (e, t) => d({
666
+ context: (e, t) => f({
622
667
  method: "GET",
623
668
  path: `/api/session/${encodeURIComponent(e.sessionID)}/context`,
624
669
  successStatus: 200,
@@ -630,7 +675,7 @@ function a(e) {
630
675
  ],
631
676
  empty: !1
632
677
  }, t).then((e) => e.data),
633
- diff: (e, t) => d({
678
+ diff: (e, t) => f({
634
679
  method: "GET",
635
680
  path: `/api/session/${encodeURIComponent(e.sessionID)}/diff`,
636
681
  query: {
@@ -648,7 +693,7 @@ function a(e) {
648
693
  empty: !1
649
694
  }, t).then((e) => e.data),
650
695
  inbox: {
651
- list: (e, t) => d({
696
+ list: (e, t) => f({
652
697
  method: "GET",
653
698
  path: `/api/session/${encodeURIComponent(e.sessionID)}/inbox`,
654
699
  successStatus: 200,
@@ -659,7 +704,7 @@ function a(e) {
659
704
  ],
660
705
  empty: !1
661
706
  }, t).then((e) => e.data),
662
- cancel: (e, t) => d({
707
+ cancel: (e, t) => f({
663
708
  method: "DELETE",
664
709
  path: `/api/session/${encodeURIComponent(e.sessionID)}/inbox/${encodeURIComponent(e.inboxID)}`,
665
710
  successStatus: 204,
@@ -670,7 +715,7 @@ function a(e) {
670
715
  ],
671
716
  empty: !0
672
717
  }, t),
673
- update: (e, t) => d({
718
+ update: (e, t) => f({
674
719
  method: "PATCH",
675
720
  path: `/api/session/${encodeURIComponent(e.sessionID)}/inbox/${encodeURIComponent(e.inboxID)}`,
676
721
  body: { delivery: e.delivery },
@@ -685,7 +730,7 @@ function a(e) {
685
730
  }, t)
686
731
  },
687
732
  instructions: { entry: {
688
- list: (e, t) => d({
733
+ list: (e, t) => f({
689
734
  method: "GET",
690
735
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/instructions/entries`,
691
736
  successStatus: 200,
@@ -696,7 +741,7 @@ function a(e) {
696
741
  ],
697
742
  empty: !1
698
743
  }, t).then((e) => e.data),
699
- put: (e, t) => d({
744
+ put: (e, t) => f({
700
745
  method: "PUT",
701
746
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/instructions/entries/${encodeURIComponent(e.key)}`,
702
747
  body: { value: e.value },
@@ -709,7 +754,7 @@ function a(e) {
709
754
  ],
710
755
  empty: !0
711
756
  }, t),
712
- remove: (e, t) => d({
757
+ remove: (e, t) => f({
713
758
  method: "DELETE",
714
759
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/instructions/entries/${encodeURIComponent(e.key)}`,
715
760
  successStatus: 204,
@@ -721,7 +766,7 @@ function a(e) {
721
766
  empty: !0
722
767
  }, t)
723
768
  } },
724
- generate: (e, t) => d({
769
+ generate: (e, t) => f({
725
770
  method: "POST",
726
771
  path: `/api/session/${encodeURIComponent(e.sessionID)}/generate`,
727
772
  body: { prompt: e.prompt },
@@ -734,7 +779,7 @@ function a(e) {
734
779
  ],
735
780
  empty: !1
736
781
  }, t).then((e) => e.data),
737
- log: (e, t) => f({
782
+ log: (e, t) => p({
738
783
  method: "GET",
739
784
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/log`,
740
785
  query: {
@@ -749,7 +794,7 @@ function a(e) {
749
794
  ],
750
795
  empty: !1
751
796
  }, t),
752
- interrupt: (e, t) => d({
797
+ interrupt: (e, t) => f({
753
798
  method: "POST",
754
799
  path: `/api/session/${encodeURIComponent(e.sessionID)}/interrupt`,
755
800
  query: { resume: e.resume },
@@ -761,7 +806,7 @@ function a(e) {
761
806
  ],
762
807
  empty: !1
763
808
  }, t),
764
- background: (e, t) => d({
809
+ background: (e, t) => f({
765
810
  method: "POST",
766
811
  path: `/api/session/${encodeURIComponent(e.sessionID)}/background`,
767
812
  successStatus: 204,
@@ -772,7 +817,7 @@ function a(e) {
772
817
  ],
773
818
  empty: !0
774
819
  }, t),
775
- message: { get: (e, t) => d({
820
+ message: { get: (e, t) => f({
776
821
  method: "GET",
777
822
  path: `/api/session/${encodeURIComponent(e.sessionID)}/message/${encodeURIComponent(e.messageID)}`,
778
823
  successStatus: 200,
@@ -784,7 +829,7 @@ function a(e) {
784
829
  empty: !1
785
830
  }, t).then((e) => e.data) },
786
831
  form: {
787
- list: (e, t) => d({
832
+ list: (e, t) => f({
788
833
  method: "GET",
789
834
  path: `/api/session/${encodeURIComponent(e.sessionID)}/form`,
790
835
  successStatus: 200,
@@ -795,7 +840,7 @@ function a(e) {
795
840
  ],
796
841
  empty: !1
797
842
  }, t).then((e) => e.data),
798
- create: (e, t) => d({
843
+ create: (e, t) => f({
799
844
  method: "POST",
800
845
  path: `/api/session/${encodeURIComponent(e.sessionID)}/form`,
801
846
  body: {
@@ -813,7 +858,7 @@ function a(e) {
813
858
  ],
814
859
  empty: !1
815
860
  }, t).then((e) => e.data),
816
- get: (e, t) => d({
861
+ get: (e, t) => f({
817
862
  method: "GET",
818
863
  path: `/api/session/${encodeURIComponent(e.sessionID)}/form/${encodeURIComponent(e.formID)}`,
819
864
  successStatus: 200,
@@ -824,7 +869,7 @@ function a(e) {
824
869
  ],
825
870
  empty: !1
826
871
  }, t).then((e) => e.data),
827
- reply: (e, t) => d({
872
+ reply: (e, t) => f({
828
873
  method: "POST",
829
874
  path: `/api/session/${encodeURIComponent(e.sessionID)}/form/${encodeURIComponent(e.formID)}/reply`,
830
875
  body: { answer: e.answer },
@@ -837,9 +882,10 @@ function a(e) {
837
882
  ],
838
883
  empty: !0
839
884
  }, t),
840
- cancel: (e, t) => d({
885
+ cancel: (e, t) => f({
841
886
  method: "DELETE",
842
887
  path: `/api/session/${encodeURIComponent(e.sessionID)}/form/${encodeURIComponent(e.formID)}`,
888
+ query: { message: e.message },
843
889
  successStatus: 204,
844
890
  declaredStatuses: [
845
891
  400,
@@ -850,7 +896,7 @@ function a(e) {
850
896
  empty: !0
851
897
  }, t)
852
898
  },
853
- environment: (e, t) => d({
899
+ environment: (e, t) => f({
854
900
  method: "PUT",
855
901
  path: `/api/session/${encodeURIComponent(e.sessionID)}/environment`,
856
902
  body: { variables: e.variables },
@@ -862,7 +908,7 @@ function a(e) {
862
908
  ],
863
909
  empty: !0
864
910
  }, t),
865
- view: (e, t) => d({
911
+ view: (e, t) => f({
866
912
  method: "POST",
867
913
  path: `/api/session/${encodeURIComponent(e.sessionID)}/view`,
868
914
  body: { idle: e.idle },
@@ -875,7 +921,7 @@ function a(e) {
875
921
  empty: !0
876
922
  }, t)
877
923
  },
878
- message: { list: (e, t) => d({
924
+ message: { list: (e, t) => f({
879
925
  method: "GET",
880
926
  path: `/api/session/${encodeURIComponent(e.sessionID)}/message`,
881
927
  query: {
@@ -894,7 +940,7 @@ function a(e) {
894
940
  empty: !1
895
941
  }, t) },
896
942
  model: {
897
- list: (e, t) => d({
943
+ list: (e, t) => f({
898
944
  method: "GET",
899
945
  path: "/api/model",
900
946
  query: { location: e?.location },
@@ -902,11 +948,12 @@ function a(e) {
902
948
  declaredStatuses: [
903
949
  400,
904
950
  401,
951
+ 404,
905
952
  503
906
953
  ],
907
954
  empty: !1
908
955
  }, t),
909
- default: (e, t) => d({
956
+ default: (e, t) => f({
910
957
  method: "GET",
911
958
  path: "/api/model/default",
912
959
  query: { location: e?.location },
@@ -914,12 +961,13 @@ function a(e) {
914
961
  declaredStatuses: [
915
962
  400,
916
963
  401,
964
+ 404,
917
965
  503
918
966
  ],
919
967
  empty: !1
920
968
  }, t)
921
969
  },
922
- generate: { text: (e, t) => d({
970
+ generate: { text: (e, t) => f({
923
971
  method: "POST",
924
972
  path: "/api/experimental/generate",
925
973
  body: {
@@ -930,12 +978,13 @@ function a(e) {
930
978
  declaredStatuses: [
931
979
  400,
932
980
  401,
981
+ 404,
933
982
  503
934
983
  ],
935
984
  empty: !1
936
985
  }, t).then((e) => e.data) },
937
986
  provider: {
938
- list: (e, t) => d({
987
+ list: (e, t) => f({
939
988
  method: "GET",
940
989
  path: "/api/provider",
941
990
  query: { location: e?.location },
@@ -943,11 +992,12 @@ function a(e) {
943
992
  declaredStatuses: [
944
993
  400,
945
994
  401,
995
+ 404,
946
996
  503
947
997
  ],
948
998
  empty: !1
949
999
  }, t),
950
- get: (e, t) => d({
1000
+ get: (e, t) => f({
951
1001
  method: "GET",
952
1002
  path: `/api/provider/${encodeURIComponent(e.providerID)}`,
953
1003
  query: { location: e.location },
@@ -962,15 +1012,19 @@ function a(e) {
962
1012
  }, t)
963
1013
  },
964
1014
  integration: {
965
- list: (e, t) => d({
1015
+ list: (e, t) => f({
966
1016
  method: "GET",
967
1017
  path: "/api/integration",
968
1018
  query: { location: e?.location },
969
1019
  successStatus: 200,
970
- declaredStatuses: [400, 401],
1020
+ declaredStatuses: [
1021
+ 400,
1022
+ 401,
1023
+ 404
1024
+ ],
971
1025
  empty: !1
972
1026
  }, t),
973
- get: (e, t) => d({
1027
+ get: (e, t) => f({
974
1028
  method: "GET",
975
1029
  path: `/api/integration/${encodeURIComponent(e.integrationID)}`,
976
1030
  query: { location: e.location },
@@ -982,16 +1036,20 @@ function a(e) {
982
1036
  ],
983
1037
  empty: !1
984
1038
  }, t),
985
- wellknown: { add: (e, t) => d({
1039
+ wellknown: { add: (e, t) => f({
986
1040
  method: "POST",
987
1041
  path: "/api/experimental/integration/wellknown",
988
1042
  query: { location: e.location },
989
1043
  body: { url: e.url },
990
1044
  successStatus: 204,
991
- declaredStatuses: [400, 401],
1045
+ declaredStatuses: [
1046
+ 400,
1047
+ 401,
1048
+ 404
1049
+ ],
992
1050
  empty: !0
993
1051
  }, t) },
994
- connect: { key: (e, t) => d({
1052
+ connect: { key: (e, t) => f({
995
1053
  method: "POST",
996
1054
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/key`,
997
1055
  query: { location: e.location },
@@ -1009,7 +1067,7 @@ function a(e) {
1009
1067
  empty: !0
1010
1068
  }, t) },
1011
1069
  oauth: {
1012
- connect: (e, t) => d({
1070
+ connect: (e, t) => f({
1013
1071
  method: "POST",
1014
1072
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/oauth`,
1015
1073
  query: { location: e.location },
@@ -1019,10 +1077,14 @@ function a(e) {
1019
1077
  label: e.label
1020
1078
  },
1021
1079
  successStatus: 200,
1022
- declaredStatuses: [400, 401],
1080
+ declaredStatuses: [
1081
+ 400,
1082
+ 401,
1083
+ 404
1084
+ ],
1023
1085
  empty: !1
1024
1086
  }, t),
1025
- status: (e, t) => d({
1087
+ status: (e, t) => f({
1026
1088
  method: "GET",
1027
1089
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/oauth/${encodeURIComponent(e.attemptID)}`,
1028
1090
  query: { location: e.location },
@@ -1034,7 +1096,7 @@ function a(e) {
1034
1096
  ],
1035
1097
  empty: !1
1036
1098
  }, t),
1037
- complete: (e, t) => d({
1099
+ complete: (e, t) => f({
1038
1100
  method: "POST",
1039
1101
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/oauth/${encodeURIComponent(e.attemptID)}/complete`,
1040
1102
  query: { location: e.location },
@@ -1047,17 +1109,21 @@ function a(e) {
1047
1109
  ],
1048
1110
  empty: !0
1049
1111
  }, t),
1050
- cancel: (e, t) => d({
1112
+ cancel: (e, t) => f({
1051
1113
  method: "DELETE",
1052
1114
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/oauth/${encodeURIComponent(e.attemptID)}`,
1053
1115
  query: { location: e.location },
1054
1116
  successStatus: 204,
1055
- declaredStatuses: [400, 401],
1117
+ declaredStatuses: [
1118
+ 400,
1119
+ 401,
1120
+ 404
1121
+ ],
1056
1122
  empty: !0
1057
1123
  }, t)
1058
1124
  },
1059
1125
  command: {
1060
- connect: (e, t) => d({
1126
+ connect: (e, t) => f({
1061
1127
  method: "POST",
1062
1128
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/command`,
1063
1129
  query: { location: e.location },
@@ -1073,7 +1139,7 @@ function a(e) {
1073
1139
  ],
1074
1140
  empty: !1
1075
1141
  }, t),
1076
- status: (e, t) => d({
1142
+ status: (e, t) => f({
1077
1143
  method: "GET",
1078
1144
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/command/${encodeURIComponent(e.attemptID)}`,
1079
1145
  query: { location: e.location },
@@ -1085,35 +1151,47 @@ function a(e) {
1085
1151
  ],
1086
1152
  empty: !1
1087
1153
  }, t),
1088
- cancel: (e, t) => d({
1154
+ cancel: (e, t) => f({
1089
1155
  method: "DELETE",
1090
1156
  path: `/api/integration/${encodeURIComponent(e.integrationID)}/connect/command/${encodeURIComponent(e.attemptID)}`,
1091
1157
  query: { location: e.location },
1092
1158
  successStatus: 204,
1093
- declaredStatuses: [400, 401],
1159
+ declaredStatuses: [
1160
+ 400,
1161
+ 401,
1162
+ 404
1163
+ ],
1094
1164
  empty: !0
1095
1165
  }, t)
1096
1166
  }
1097
1167
  },
1098
1168
  mcp: {
1099
- list: (e, t) => d({
1169
+ list: (e, t) => f({
1100
1170
  method: "GET",
1101
1171
  path: "/api/mcp",
1102
1172
  query: { location: e?.location },
1103
1173
  successStatus: 200,
1104
- declaredStatuses: [400, 401],
1174
+ declaredStatuses: [
1175
+ 400,
1176
+ 401,
1177
+ 404
1178
+ ],
1105
1179
  empty: !1
1106
1180
  }, t),
1107
- add: (e, t) => d({
1181
+ add: (e, t) => f({
1108
1182
  method: "PUT",
1109
1183
  path: `/api/experimental/mcp/${encodeURIComponent(e.server)}`,
1110
1184
  query: { location: e.location },
1111
1185
  body: { config: e.config },
1112
1186
  successStatus: 204,
1113
- declaredStatuses: [400, 401],
1187
+ declaredStatuses: [
1188
+ 400,
1189
+ 401,
1190
+ 404
1191
+ ],
1114
1192
  empty: !0
1115
1193
  }, t),
1116
- remove: (e, t) => d({
1194
+ remove: (e, t) => f({
1117
1195
  method: "DELETE",
1118
1196
  path: `/api/experimental/mcp/${encodeURIComponent(e.server)}`,
1119
1197
  query: { location: e.location },
@@ -1125,7 +1203,7 @@ function a(e) {
1125
1203
  ],
1126
1204
  empty: !0
1127
1205
  }, t),
1128
- connect: (e, t) => d({
1206
+ connect: (e, t) => f({
1129
1207
  method: "POST",
1130
1208
  path: `/api/experimental/mcp/${encodeURIComponent(e.server)}/connect`,
1131
1209
  query: { location: e.location },
@@ -1137,7 +1215,7 @@ function a(e) {
1137
1215
  ],
1138
1216
  empty: !0
1139
1217
  }, t),
1140
- disconnect: (e, t) => d({
1218
+ disconnect: (e, t) => f({
1141
1219
  method: "POST",
1142
1220
  path: `/api/experimental/mcp/${encodeURIComponent(e.server)}/disconnect`,
1143
1221
  query: { location: e.location },
@@ -1149,17 +1227,46 @@ function a(e) {
1149
1227
  ],
1150
1228
  empty: !0
1151
1229
  }, t),
1152
- resource: { catalog: (e, t) => d({
1230
+ resource: { catalog: (e, t) => f({
1153
1231
  method: "GET",
1154
1232
  path: "/api/mcp/resource",
1155
1233
  query: { location: e?.location },
1156
1234
  successStatus: 200,
1157
- declaredStatuses: [400, 401],
1235
+ declaredStatuses: [
1236
+ 400,
1237
+ 401,
1238
+ 404
1239
+ ],
1158
1240
  empty: !1
1159
1241
  }, t) }
1160
1242
  },
1161
1243
  credential: {
1162
- update: (e, t) => d({
1244
+ list: (e) => f({
1245
+ method: "GET",
1246
+ path: "/api/credential",
1247
+ successStatus: 200,
1248
+ declaredStatuses: [400, 401],
1249
+ empty: !1
1250
+ }, e).then((e) => e.data),
1251
+ create: (e, t) => f({
1252
+ method: "POST",
1253
+ path: "/api/credential",
1254
+ body: {
1255
+ id: e.id,
1256
+ integrationID: e.integrationID,
1257
+ label: e.label,
1258
+ value: e.value,
1259
+ activate: e.activate
1260
+ },
1261
+ successStatus: 200,
1262
+ declaredStatuses: [
1263
+ 400,
1264
+ 401,
1265
+ 409
1266
+ ],
1267
+ empty: !1
1268
+ }, t).then((e) => e.data),
1269
+ update: (e, t) => f({
1163
1270
  method: "PATCH",
1164
1271
  path: `/api/credential/${encodeURIComponent(e.credentialID)}`,
1165
1272
  body: { label: e.label },
@@ -1167,14 +1274,14 @@ function a(e) {
1167
1274
  declaredStatuses: [400, 401],
1168
1275
  empty: !0
1169
1276
  }, t),
1170
- activate: (e, t) => d({
1277
+ activate: (e, t) => f({
1171
1278
  method: "POST",
1172
1279
  path: `/api/credential/${encodeURIComponent(e.credentialID)}/activate`,
1173
1280
  successStatus: 204,
1174
1281
  declaredStatuses: [400, 401],
1175
1282
  empty: !0
1176
1283
  }, t),
1177
- remove: (e, t) => d({
1284
+ remove: (e, t) => f({
1178
1285
  method: "DELETE",
1179
1286
  path: `/api/credential/${encodeURIComponent(e.credentialID)}`,
1180
1287
  successStatus: 204,
@@ -1183,14 +1290,18 @@ function a(e) {
1183
1290
  }, t)
1184
1291
  },
1185
1292
  project: {
1186
- list: (e) => d({
1293
+ list: (e) => f({
1187
1294
  method: "GET",
1188
1295
  path: "/api/project",
1189
1296
  successStatus: 200,
1190
- declaredStatuses: [400, 401],
1297
+ declaredStatuses: [
1298
+ 400,
1299
+ 401,
1300
+ 404
1301
+ ],
1191
1302
  empty: !1
1192
1303
  }, e),
1193
- update: (e, t) => d({
1304
+ update: (e, t) => f({
1194
1305
  method: "PATCH",
1195
1306
  path: `/api/project/${encodeURIComponent(e.projectID)}`,
1196
1307
  body: {
@@ -1208,41 +1319,57 @@ function a(e) {
1208
1319
  empty: !1
1209
1320
  }, t)
1210
1321
  },
1211
- form: { list: (e, t) => d({
1322
+ form: { list: (e, t) => f({
1212
1323
  method: "GET",
1213
1324
  path: "/api/form",
1214
1325
  query: { location: e?.location },
1215
1326
  successStatus: 200,
1216
- declaredStatuses: [400, 401],
1327
+ declaredStatuses: [
1328
+ 400,
1329
+ 401,
1330
+ 404
1331
+ ],
1217
1332
  empty: !1
1218
1333
  }, t) },
1219
1334
  permission: {
1220
- request: { list: (e, t) => d({
1335
+ request: { list: (e, t) => f({
1221
1336
  method: "GET",
1222
1337
  path: "/api/permission/request",
1223
1338
  query: { location: e?.location },
1224
1339
  successStatus: 200,
1225
- declaredStatuses: [400, 401],
1340
+ declaredStatuses: [
1341
+ 400,
1342
+ 401,
1343
+ 404
1344
+ ],
1226
1345
  empty: !1
1227
1346
  }, t) },
1228
1347
  saved: {
1229
- list: (e, t) => d({
1348
+ list: (e, t) => f({
1230
1349
  method: "GET",
1231
1350
  path: "/api/permission/saved",
1232
1351
  query: { projectID: e?.projectID },
1233
1352
  successStatus: 200,
1234
- declaredStatuses: [400, 401],
1353
+ declaredStatuses: [
1354
+ 400,
1355
+ 401,
1356
+ 404
1357
+ ],
1235
1358
  empty: !1
1236
1359
  }, t).then((e) => e.data),
1237
- remove: (e, t) => d({
1360
+ remove: (e, t) => f({
1238
1361
  method: "DELETE",
1239
1362
  path: `/api/permission/saved/${encodeURIComponent(e.id)}`,
1240
1363
  successStatus: 204,
1241
- declaredStatuses: [400, 401],
1364
+ declaredStatuses: [
1365
+ 400,
1366
+ 401,
1367
+ 404
1368
+ ],
1242
1369
  empty: !0
1243
1370
  }, t)
1244
1371
  },
1245
- create: (e, t) => d({
1372
+ create: (e, t) => f({
1246
1373
  method: "POST",
1247
1374
  path: `/api/session/${encodeURIComponent(e.sessionID)}/permission`,
1248
1375
  body: {
@@ -1262,7 +1389,7 @@ function a(e) {
1262
1389
  ],
1263
1390
  empty: !1
1264
1391
  }, t).then((e) => e.data),
1265
- list: (e, t) => d({
1392
+ list: (e, t) => f({
1266
1393
  method: "GET",
1267
1394
  path: `/api/session/${encodeURIComponent(e.sessionID)}/permission`,
1268
1395
  successStatus: 200,
@@ -1273,7 +1400,7 @@ function a(e) {
1273
1400
  ],
1274
1401
  empty: !1
1275
1402
  }, t).then((e) => e.data),
1276
- get: (e, t) => d({
1403
+ get: (e, t) => f({
1277
1404
  method: "GET",
1278
1405
  path: `/api/session/${encodeURIComponent(e.sessionID)}/permission/${encodeURIComponent(e.requestID)}`,
1279
1406
  successStatus: 200,
@@ -1284,7 +1411,7 @@ function a(e) {
1284
1411
  ],
1285
1412
  empty: !1
1286
1413
  }, t).then((e) => e.data),
1287
- reply: (e, t) => d({
1414
+ reply: (e, t) => f({
1288
1415
  method: "POST",
1289
1416
  path: `/api/session/${encodeURIComponent(e.sessionID)}/permission/${encodeURIComponent(e.requestID)}/reply`,
1290
1417
  body: {
@@ -1301,7 +1428,7 @@ function a(e) {
1301
1428
  }, t)
1302
1429
  },
1303
1430
  file: {
1304
- read: (e, t) => d({
1431
+ read: (e, t) => f({
1305
1432
  method: "GET",
1306
1433
  path: `/api/fs/read/${o(e.path)}`,
1307
1434
  query: { location: e.location },
@@ -1314,7 +1441,7 @@ function a(e) {
1314
1441
  empty: !1,
1315
1442
  binary: !0
1316
1443
  }, t),
1317
- list: (e, t) => d({
1444
+ list: (e, t) => f({
1318
1445
  method: "GET",
1319
1446
  path: "/api/fs/list",
1320
1447
  query: {
@@ -1322,10 +1449,14 @@ function a(e) {
1322
1449
  path: e?.path
1323
1450
  },
1324
1451
  successStatus: 200,
1325
- declaredStatuses: [400, 401],
1452
+ declaredStatuses: [
1453
+ 400,
1454
+ 401,
1455
+ 404
1456
+ ],
1326
1457
  empty: !1
1327
1458
  }, t),
1328
- find: (e, t) => d({
1459
+ find: (e, t) => f({
1329
1460
  method: "GET",
1330
1461
  path: "/api/fs/find",
1331
1462
  query: {
@@ -1335,10 +1466,14 @@ function a(e) {
1335
1466
  limit: e.limit
1336
1467
  },
1337
1468
  successStatus: 200,
1338
- declaredStatuses: [400, 401],
1469
+ declaredStatuses: [
1470
+ 400,
1471
+ 401,
1472
+ 404
1473
+ ],
1339
1474
  empty: !1
1340
1475
  }, t),
1341
- write: (e, t) => d({
1476
+ write: (e, t) => f({
1342
1477
  method: "POST",
1343
1478
  path: "/api/experimental/fs/write",
1344
1479
  query: {
@@ -1347,28 +1482,40 @@ function a(e) {
1347
1482
  },
1348
1483
  body: e.payload,
1349
1484
  successStatus: 200,
1350
- declaredStatuses: [400, 401],
1485
+ declaredStatuses: [
1486
+ 400,
1487
+ 401,
1488
+ 404
1489
+ ],
1351
1490
  empty: !1,
1352
1491
  binaryBody: !0
1353
1492
  }, t)
1354
1493
  },
1355
- command: { list: (e, t) => d({
1494
+ command: { list: (e, t) => f({
1356
1495
  method: "GET",
1357
1496
  path: "/api/command",
1358
1497
  query: { location: e?.location },
1359
1498
  successStatus: 200,
1360
- declaredStatuses: [400, 401],
1499
+ declaredStatuses: [
1500
+ 400,
1501
+ 401,
1502
+ 404
1503
+ ],
1361
1504
  empty: !1
1362
1505
  }, t) },
1363
- skill: { list: (e, t) => d({
1506
+ skill: { list: (e, t) => f({
1364
1507
  method: "GET",
1365
1508
  path: "/api/skill",
1366
1509
  query: { location: e?.location },
1367
1510
  successStatus: 200,
1368
- declaredStatuses: [400, 401],
1511
+ declaredStatuses: [
1512
+ 400,
1513
+ 401,
1514
+ 404
1515
+ ],
1369
1516
  empty: !1
1370
1517
  }, t) },
1371
- rpc: { call: (e, t) => d({
1518
+ rpc: { call: (e, t) => f({
1372
1519
  method: "POST",
1373
1520
  path: `/api/rpc/${encodeURIComponent(e.rpcID)}/${encodeURIComponent(e.method)}`,
1374
1521
  query: { location: e.location },
@@ -1377,11 +1524,12 @@ function a(e) {
1377
1524
  declaredStatuses: [
1378
1525
  400,
1379
1526
  401,
1527
+ 404,
1380
1528
  500
1381
1529
  ],
1382
1530
  empty: !1
1383
1531
  }, t) },
1384
- event: { subscribe: (e) => f({
1532
+ event: { subscribe: (e) => p({
1385
1533
  method: "GET",
1386
1534
  path: "/api/event",
1387
1535
  successStatus: 200,
@@ -1389,15 +1537,19 @@ function a(e) {
1389
1537
  empty: !1
1390
1538
  }, e) },
1391
1539
  pty: {
1392
- list: (e, t) => d({
1540
+ list: (e, t) => f({
1393
1541
  method: "GET",
1394
1542
  path: "/api/pty",
1395
1543
  query: { location: e?.location },
1396
1544
  successStatus: 200,
1397
- declaredStatuses: [400, 401],
1545
+ declaredStatuses: [
1546
+ 400,
1547
+ 401,
1548
+ 404
1549
+ ],
1398
1550
  empty: !1
1399
1551
  }, t),
1400
- create: (e, t) => d({
1552
+ create: (e, t) => f({
1401
1553
  method: "POST",
1402
1554
  path: "/api/pty",
1403
1555
  query: { location: e?.location },
@@ -1409,10 +1561,14 @@ function a(e) {
1409
1561
  env: e?.env
1410
1562
  },
1411
1563
  successStatus: 200,
1412
- declaredStatuses: [400, 401],
1564
+ declaredStatuses: [
1565
+ 400,
1566
+ 401,
1567
+ 404
1568
+ ],
1413
1569
  empty: !1
1414
1570
  }, t),
1415
- get: (e, t) => d({
1571
+ get: (e, t) => f({
1416
1572
  method: "GET",
1417
1573
  path: `/api/pty/${encodeURIComponent(e.ptyID)}`,
1418
1574
  query: { location: e.location },
@@ -1424,7 +1580,7 @@ function a(e) {
1424
1580
  ],
1425
1581
  empty: !1
1426
1582
  }, t),
1427
- update: (e, t) => d({
1583
+ update: (e, t) => f({
1428
1584
  method: "PUT",
1429
1585
  path: `/api/pty/${encodeURIComponent(e.ptyID)}`,
1430
1586
  query: { location: e.location },
@@ -1440,7 +1596,7 @@ function a(e) {
1440
1596
  ],
1441
1597
  empty: !1
1442
1598
  }, t),
1443
- remove: (e, t) => d({
1599
+ remove: (e, t) => f({
1444
1600
  method: "DELETE",
1445
1601
  path: `/api/pty/${encodeURIComponent(e.ptyID)}`,
1446
1602
  query: { location: e.location },
@@ -1452,7 +1608,7 @@ function a(e) {
1452
1608
  ],
1453
1609
  empty: !0
1454
1610
  }, t),
1455
- connect: { token: (e, t) => d({
1611
+ connect: { token: (e, t) => f({
1456
1612
  method: "POST",
1457
1613
  path: `/api/pty/${encodeURIComponent(e.ptyID)}/connect-token`,
1458
1614
  query: { location: e.location },
@@ -1468,7 +1624,7 @@ function a(e) {
1468
1624
  }, t) }
1469
1625
  },
1470
1626
  experimental: { persistentPty: {
1471
- read: (e, t) => d({
1627
+ read: (e, t) => f({
1472
1628
  method: "GET",
1473
1629
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/terminal/read`,
1474
1630
  query: { lines: e.lines },
@@ -1480,7 +1636,7 @@ function a(e) {
1480
1636
  ],
1481
1637
  empty: !1
1482
1638
  }, t).then((e) => e.data),
1483
- list: (e, t) => d({
1639
+ list: (e, t) => f({
1484
1640
  method: "GET",
1485
1641
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/terminal`,
1486
1642
  successStatus: 200,
@@ -1491,7 +1647,7 @@ function a(e) {
1491
1647
  ],
1492
1648
  empty: !1
1493
1649
  }, t).then((e) => e.data),
1494
- create: (e, t) => d({
1650
+ create: (e, t) => f({
1495
1651
  method: "POST",
1496
1652
  path: `/api/experimental/session/${encodeURIComponent(e.sessionID)}/terminal`,
1497
1653
  body: {
@@ -1510,7 +1666,7 @@ function a(e) {
1510
1666
  ],
1511
1667
  empty: !1
1512
1668
  }, t).then((e) => e.data),
1513
- shutdown: (e) => d({
1669
+ shutdown: (e) => f({
1514
1670
  method: "POST",
1515
1671
  path: "/api/experimental/persistent-pty/shutdown",
1516
1672
  successStatus: 204,
@@ -1521,7 +1677,7 @@ function a(e) {
1521
1677
  ],
1522
1678
  empty: !0
1523
1679
  }, e),
1524
- handoff: (e) => d({
1680
+ handoff: (e) => f({
1525
1681
  method: "POST",
1526
1682
  path: "/api/experimental/persistent-pty/handoff",
1527
1683
  successStatus: 200,
@@ -1532,7 +1688,7 @@ function a(e) {
1532
1688
  ],
1533
1689
  empty: !1
1534
1690
  }, e),
1535
- get: (e, t) => d({
1691
+ get: (e, t) => f({
1536
1692
  method: "GET",
1537
1693
  path: `/api/experimental/persistent-pty/${encodeURIComponent(e.ptyID)}`,
1538
1694
  successStatus: 200,
@@ -1544,7 +1700,7 @@ function a(e) {
1544
1700
  ],
1545
1701
  empty: !1
1546
1702
  }, t).then((e) => e.data),
1547
- update: (e, t) => d({
1703
+ update: (e, t) => f({
1548
1704
  method: "PUT",
1549
1705
  path: `/api/experimental/persistent-pty/${encodeURIComponent(e.ptyID)}`,
1550
1706
  body: {
@@ -1560,7 +1716,7 @@ function a(e) {
1560
1716
  ],
1561
1717
  empty: !1
1562
1718
  }, t).then((e) => e.data),
1563
- snapshot: (e, t) => d({
1719
+ snapshot: (e, t) => f({
1564
1720
  method: "GET",
1565
1721
  path: `/api/experimental/persistent-pty/${encodeURIComponent(e.ptyID)}/snapshot`,
1566
1722
  successStatus: 200,
@@ -1572,7 +1728,7 @@ function a(e) {
1572
1728
  ],
1573
1729
  empty: !1
1574
1730
  }, t).then((e) => e.data),
1575
- remove: (e, t) => d({
1731
+ remove: (e, t) => f({
1576
1732
  method: "DELETE",
1577
1733
  path: `/api/experimental/persistent-pty/${encodeURIComponent(e.ptyID)}`,
1578
1734
  successStatus: 204,
@@ -1584,7 +1740,7 @@ function a(e) {
1584
1740
  ],
1585
1741
  empty: !0
1586
1742
  }, t),
1587
- connectToken: (e, t) => d({
1743
+ connectToken: (e, t) => f({
1588
1744
  method: "POST",
1589
1745
  path: `/api/experimental/persistent-pty/${encodeURIComponent(e.ptyID)}/connect-token`,
1590
1746
  headers: { "x-opencode-ticket": e["x-opencode-ticket"] },
@@ -1600,15 +1756,19 @@ function a(e) {
1600
1756
  }, t).then((e) => e.data)
1601
1757
  } },
1602
1758
  shell: {
1603
- list: (e, t) => d({
1759
+ list: (e, t) => f({
1604
1760
  method: "GET",
1605
1761
  path: "/api/shell",
1606
1762
  query: { location: e?.location },
1607
1763
  successStatus: 200,
1608
- declaredStatuses: [400, 401],
1764
+ declaredStatuses: [
1765
+ 400,
1766
+ 401,
1767
+ 404
1768
+ ],
1609
1769
  empty: !1
1610
1770
  }, t),
1611
- create: (e, t) => d({
1771
+ create: (e, t) => f({
1612
1772
  method: "POST",
1613
1773
  path: "/api/shell",
1614
1774
  query: { location: e.location },
@@ -1619,10 +1779,14 @@ function a(e) {
1619
1779
  metadata: e.metadata
1620
1780
  },
1621
1781
  successStatus: 200,
1622
- declaredStatuses: [400, 401],
1782
+ declaredStatuses: [
1783
+ 400,
1784
+ 401,
1785
+ 404
1786
+ ],
1623
1787
  empty: !1
1624
1788
  }, t),
1625
- get: (e, t) => d({
1789
+ get: (e, t) => f({
1626
1790
  method: "GET",
1627
1791
  path: `/api/shell/${encodeURIComponent(e.id)}`,
1628
1792
  query: { location: e.location },
@@ -1634,7 +1798,7 @@ function a(e) {
1634
1798
  ],
1635
1799
  empty: !1
1636
1800
  }, t),
1637
- output: (e, t) => d({
1801
+ output: (e, t) => f({
1638
1802
  method: "GET",
1639
1803
  path: `/api/shell/${encodeURIComponent(e.id)}/output`,
1640
1804
  query: {
@@ -1650,25 +1814,33 @@ function a(e) {
1650
1814
  ],
1651
1815
  empty: !1
1652
1816
  }, t),
1653
- remove: (e, t) => d({
1817
+ remove: (e, t) => f({
1654
1818
  method: "DELETE",
1655
1819
  path: `/api/shell/${encodeURIComponent(e.id)}`,
1656
1820
  query: { location: e.location },
1657
1821
  successStatus: 204,
1658
- declaredStatuses: [400, 401],
1822
+ declaredStatuses: [
1823
+ 400,
1824
+ 401,
1825
+ 404
1826
+ ],
1659
1827
  empty: !0
1660
1828
  }, t)
1661
1829
  },
1662
- reference: { list: (e, t) => d({
1830
+ reference: { list: (e, t) => f({
1663
1831
  method: "GET",
1664
1832
  path: "/api/reference",
1665
1833
  query: { location: e?.location },
1666
1834
  successStatus: 200,
1667
- declaredStatuses: [400, 401],
1835
+ declaredStatuses: [
1836
+ 400,
1837
+ 401,
1838
+ 404
1839
+ ],
1668
1840
  empty: !1
1669
1841
  }, t) },
1670
1842
  worktree: {
1671
- list: (e, t) => d({
1843
+ list: (e, t) => f({
1672
1844
  method: "GET",
1673
1845
  path: "/api/worktree",
1674
1846
  query: { projectID: e.projectID },
@@ -1680,7 +1852,7 @@ function a(e) {
1680
1852
  ],
1681
1853
  empty: !1
1682
1854
  }, t),
1683
- create: (e, t) => d({
1855
+ create: (e, t) => f({
1684
1856
  method: "POST",
1685
1857
  path: "/api/worktree",
1686
1858
  body: {
@@ -1698,7 +1870,7 @@ function a(e) {
1698
1870
  ],
1699
1871
  empty: !1
1700
1872
  }, t),
1701
- remove: (e, t) => d({
1873
+ remove: (e, t) => f({
1702
1874
  method: "DELETE",
1703
1875
  path: "/api/worktree",
1704
1876
  body: {
@@ -1714,7 +1886,7 @@ function a(e) {
1714
1886
  ],
1715
1887
  empty: !0
1716
1888
  }, t),
1717
- refresh: (e, t) => d({
1889
+ refresh: (e, t) => f({
1718
1890
  method: "POST",
1719
1891
  path: "/api/worktree/refresh",
1720
1892
  body: { projectID: e.projectID },
@@ -1728,15 +1900,37 @@ function a(e) {
1728
1900
  }, t)
1729
1901
  },
1730
1902
  vcs: {
1731
- get: (e, t) => d({
1903
+ init: (e, t) => f({
1904
+ method: "POST",
1905
+ path: "/api/vcs/init",
1906
+ query: {
1907
+ location: e?.location,
1908
+ provider: e?.provider
1909
+ },
1910
+ successStatus: 204,
1911
+ declaredStatuses: [
1912
+ 400,
1913
+ 401,
1914
+ 404,
1915
+ 409,
1916
+ 501,
1917
+ 503
1918
+ ],
1919
+ empty: !0
1920
+ }, t),
1921
+ get: (e, t) => f({
1732
1922
  method: "GET",
1733
1923
  path: "/api/vcs",
1734
1924
  query: { location: e?.location },
1735
1925
  successStatus: 200,
1736
- declaredStatuses: [400, 401],
1926
+ declaredStatuses: [
1927
+ 400,
1928
+ 401,
1929
+ 404
1930
+ ],
1737
1931
  empty: !1
1738
1932
  }, t),
1739
- base: (e, t) => d({
1933
+ base: (e, t) => f({
1740
1934
  method: "GET",
1741
1935
  path: "/api/vcs/base",
1742
1936
  query: { location: e?.location },
@@ -1744,19 +1938,24 @@ function a(e) {
1744
1938
  declaredStatuses: [
1745
1939
  400,
1746
1940
  401,
1941
+ 404,
1747
1942
  503
1748
1943
  ],
1749
1944
  empty: !1
1750
1945
  }, t),
1751
- status: (e, t) => d({
1946
+ status: (e, t) => f({
1752
1947
  method: "GET",
1753
1948
  path: "/api/vcs/status",
1754
1949
  query: { location: e?.location },
1755
1950
  successStatus: 200,
1756
- declaredStatuses: [400, 401],
1951
+ declaredStatuses: [
1952
+ 400,
1953
+ 401,
1954
+ 404
1955
+ ],
1757
1956
  empty: !1
1758
1957
  }, t),
1759
- branch: { list: (e, t) => d({
1958
+ branch: { list: (e, t) => f({
1760
1959
  method: "GET",
1761
1960
  path: "/api/vcs/branch",
1762
1961
  query: {
@@ -1765,10 +1964,14 @@ function a(e) {
1765
1964
  limit: e?.limit
1766
1965
  },
1767
1966
  successStatus: 200,
1768
- declaredStatuses: [400, 401],
1967
+ declaredStatuses: [
1968
+ 400,
1969
+ 401,
1970
+ 404
1971
+ ],
1769
1972
  empty: !1
1770
1973
  }, t) },
1771
- diff: (e, t) => d({
1974
+ diff: (e, t) => f({
1772
1975
  method: "GET",
1773
1976
  path: "/api/vcs/diff",
1774
1977
  query: {
@@ -1781,20 +1984,21 @@ function a(e) {
1781
1984
  declaredStatuses: [
1782
1985
  400,
1783
1986
  401,
1987
+ 404,
1784
1988
  503
1785
1989
  ],
1786
1990
  empty: !1
1787
1991
  }, t)
1788
1992
  },
1789
1993
  debug: { location: {
1790
- list: (e) => d({
1994
+ list: (e) => f({
1791
1995
  method: "GET",
1792
1996
  path: "/api/debug/location",
1793
1997
  successStatus: 200,
1794
1998
  declaredStatuses: [400, 401],
1795
1999
  empty: !1
1796
2000
  }, e),
1797
- evict: (e, t) => d({
2001
+ evict: (e, t) => f({
1798
2002
  method: "DELETE",
1799
2003
  path: "/api/debug/location",
1800
2004
  query: { location: e?.location },
@@ -1803,7 +2007,7 @@ function a(e) {
1803
2007
  empty: !0
1804
2008
  }, t)
1805
2009
  } },
1806
- migration: { v1: { status: (e) => d({
2010
+ migration: { v1: { status: (e) => f({
1807
2011
  method: "GET",
1808
2012
  path: "/api/experimental/migration/v1",
1809
2013
  successStatus: 200,
@@ -1811,7 +2015,7 @@ function a(e) {
1811
2015
  empty: !1
1812
2016
  }, e) } },
1813
2017
  websearch: {
1814
- providers: (e, t) => d({
2018
+ providers: (e, t) => f({
1815
2019
  method: "GET",
1816
2020
  path: "/api/websearch/provider",
1817
2021
  query: { location: e?.location },
@@ -1819,11 +2023,12 @@ function a(e) {
1819
2023
  declaredStatuses: [
1820
2024
  400,
1821
2025
  401,
2026
+ 404,
1822
2027
  503
1823
2028
  ],
1824
2029
  empty: !1
1825
2030
  }, t),
1826
- query: (e, t) => d({
2031
+ query: (e, t) => f({
1827
2032
  method: "POST",
1828
2033
  path: "/api/websearch",
1829
2034
  query: { location: e.location },
@@ -1835,33 +2040,46 @@ function a(e) {
1835
2040
  declaredStatuses: [
1836
2041
  400,
1837
2042
  401,
2043
+ 404,
1838
2044
  503
1839
2045
  ],
1840
2046
  empty: !1
1841
2047
  }, t)
1842
2048
  },
1843
2049
  config: {
1844
- get: (e, t) => d({
2050
+ get: (e, t) => f({
1845
2051
  method: "GET",
1846
2052
  path: "/api/config",
1847
2053
  query: { location: e?.location },
1848
2054
  successStatus: 200,
1849
- declaredStatuses: [400, 401],
2055
+ declaredStatuses: [
2056
+ 400,
2057
+ 401,
2058
+ 404
2059
+ ],
1850
2060
  empty: !1
1851
2061
  }, t),
1852
- shells: (e) => d({
2062
+ shells: (e) => f({
1853
2063
  method: "GET",
1854
2064
  path: "/api/config/shell",
1855
2065
  successStatus: 200,
1856
- declaredStatuses: [400, 401],
2066
+ declaredStatuses: [
2067
+ 400,
2068
+ 401,
2069
+ 404
2070
+ ],
1857
2071
  empty: !1
1858
2072
  }, e),
1859
- update: (e, t) => d({
2073
+ update: (e, t) => f({
1860
2074
  method: "PATCH",
1861
2075
  path: "/api/experimental/config",
1862
2076
  body: { shell: e.shell },
1863
2077
  successStatus: 204,
1864
- declaredStatuses: [400, 401],
2078
+ declaredStatuses: [
2079
+ 400,
2080
+ 401,
2081
+ 404
2082
+ ],
1865
2083
  empty: !0
1866
2084
  }, t)
1867
2085
  }
@@ -1888,11 +2106,11 @@ function s(e, t, n) {
1888
2106
  }
1889
2107
  }
1890
2108
  async function c(e) {
1891
- if (!l(e, "application/json") && !e.headers.get("content-type")?.includes("+json")) {
2109
+ if (!u(e, "application/json") && !e.headers.get("content-type")?.includes("+json")) {
1892
2110
  try {
1893
2111
  await e.body?.cancel();
1894
2112
  } catch {}
1895
- throw new r("UnsupportedContentType");
2113
+ throw new r("UnsupportedContentType", { detail: e.headers.get("content-type") });
1896
2114
  }
1897
2115
  let t;
1898
2116
  try {
@@ -1907,19 +2125,23 @@ async function c(e) {
1907
2125
  throw new r("MalformedResponse", { cause: e });
1908
2126
  }
1909
2127
  }
1910
- function l(e, t) {
2128
+ function l(e) {
2129
+ let t = Object.assign(Error(e.message ?? e.data?.message), e);
2130
+ return e._tag && (t.name = e._tag), t;
2131
+ }
2132
+ function u(e, t) {
1911
2133
  return e.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase() === t;
1912
2134
  }
1913
2135
  //#endregion
1914
- //#region ../../node_modules/.pnpm/@opencode+client@2.0.12_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/service-contender-4tveyqeh.js
1915
- var u = (e) => typeof e == "object" && !!e && "_tag" in e && e._tag === "RpcError", d = (e) => typeof e == "object" && !!e && "_tag" in e && e._tag === "RpcInternalError";
2136
+ //#region ../../node_modules/.pnpm/@opencode+client@2.0.24_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/pty-handoff-vt9jbch8.js
2137
+ var d = (e) => typeof e == "object" && !!e && "_tag" in e && e._tag === "RpcError", f = (e) => typeof e == "object" && !!e && "_tag" in e && e._tag === "RpcInternalError";
1916
2138
  //#endregion
1917
- //#region ../../node_modules/.pnpm/@opencode+client@2.0.12_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/service-contender-1tbj6z39.js
1918
- function f(e, t) {
2139
+ //#region ../../node_modules/.pnpm/@opencode+client@2.0.24_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/pty-handoff-1y4a697q.js
2140
+ function p(e, t) {
1919
2141
  return (n) => {
1920
2142
  let r = (e, r) => {
1921
2143
  if (!Object.hasOwn(n.events, e)) throw Error(`Unknown RPC event: ${n.id}.${e}`);
1922
- let i = p(n, e);
2144
+ let i = m(n, e);
1923
2145
  return { [Symbol.asyncIterator]() {
1924
2146
  let e = new AbortController(), n = r?.signal ? AbortSignal.any([e.signal, r.signal]) : e.signal, a = async function* () {
1925
2147
  try {
@@ -1951,7 +2173,7 @@ function f(e, t) {
1951
2173
  headers: i?.headers
1952
2174
  })).output;
1953
2175
  } catch (e) {
1954
- throw !u(e) && !d(e) ? e : e.data === void 0 ? {
2176
+ throw !d(e) && !f(e) ? e : e.data === void 0 ? {
1955
2177
  type: e.type,
1956
2178
  message: e.message
1957
2179
  } : {
@@ -1971,28 +2193,28 @@ function f(e, t) {
1971
2193
  } });
1972
2194
  };
1973
2195
  }
1974
- function p(e, t) {
2196
+ function m(e, t) {
1975
2197
  return `rpc.${e.id}.${t}`;
1976
2198
  }
1977
2199
  //#endregion
1978
- //#region ../../node_modules/.pnpm/@opencode+client@2.0.12_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/service-contender-sehc34my.js
1979
- var m = {};
1980
- e(m, {
1981
- OpenCode: () => m,
1982
- make: () => h
2200
+ //#region ../../node_modules/.pnpm/@opencode+client@2.0.24_effect@4.0.0-rc.112/node_modules/@opencode/client/dist/chunks/pty-handoff-cqfz2qxq.js
2201
+ var h = {};
2202
+ e(h, {
2203
+ OpenCode: () => h,
2204
+ make: () => g
1983
2205
  });
1984
- function h(e) {
2206
+ function g(e) {
1985
2207
  let t = a(e), r = n((e, n) => t.event.subscribe({
1986
2208
  signal: e,
1987
2209
  onActivity: n
1988
2210
  }));
1989
2211
  return {
1990
2212
  ...t,
1991
- rpc: Object.assign(f(t, r), t.rpc),
2213
+ rpc: Object.assign(p(t, r), t.rpc),
1992
2214
  event: r
1993
2215
  };
1994
2216
  }
1995
2217
  //#endregion
1996
- export { r as ClientError, m as OpenCode };
2218
+ export { h as OpenCode };
1997
2219
 
1998
- //# sourceMappingURL=promise-B3UhYSzv.js.map
2220
+ //# sourceMappingURL=promise-BgC-VNzX.js.map