@xemahq/agent-session-api-client 0.1.2

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 (418) hide show
  1. package/LICENSE +201 -0
  2. package/dist/custom-fetch.d.ts +52 -0
  3. package/dist/custom-fetch.js +152 -0
  4. package/dist/endpoints/health/health.d.ts +15 -0
  5. package/dist/endpoints/health/health.js +53 -0
  6. package/dist/endpoints/internal/internal.d.ts +82 -0
  7. package/dist/endpoints/internal/internal.js +226 -0
  8. package/dist/endpoints/internal-session-dispatch/internal-session-dispatch.d.ts +20 -0
  9. package/dist/endpoints/internal-session-dispatch/internal-session-dispatch.js +38 -0
  10. package/dist/endpoints/output-surface-inspect/output-surface-inspect.d.ts +18 -0
  11. package/dist/endpoints/output-surface-inspect/output-surface-inspect.js +36 -0
  12. package/dist/endpoints/output-surfaces/output-surfaces.d.ts +43 -0
  13. package/dist/endpoints/output-surfaces/output-surfaces.js +142 -0
  14. package/dist/endpoints/sandbox-sessions/sandbox-sessions.d.ts +43 -0
  15. package/dist/endpoints/sandbox-sessions/sandbox-sessions.js +127 -0
  16. package/dist/endpoints/session-attachments/session-attachments.d.ts +23 -0
  17. package/dist/endpoints/session-attachments/session-attachments.js +48 -0
  18. package/dist/endpoints/session-blob-attachments/session-blob-attachments.d.ts +13 -0
  19. package/dist/endpoints/session-blob-attachments/session-blob-attachments.js +18 -0
  20. package/dist/endpoints/session-participants/session-participants.d.ts +28 -0
  21. package/dist/endpoints/session-participants/session-participants.js +64 -0
  22. package/dist/endpoints/sessions/sessions.d.ts +243 -0
  23. package/dist/endpoints/sessions/sessions.js +812 -0
  24. package/dist/endpoints/threads/threads.d.ts +48 -0
  25. package/dist/endpoints/threads/threads.js +158 -0
  26. package/dist/index.d.ts +13 -0
  27. package/dist/index.js +35 -0
  28. package/dist/models/addAttachmentDto.d.ts +20 -0
  29. package/dist/models/addAttachmentDto.js +2 -0
  30. package/dist/models/attachSkillDto.d.ts +10 -0
  31. package/dist/models/attachSkillDto.js +9 -0
  32. package/dist/models/attachmentClass.d.ts +16 -0
  33. package/dist/models/attachmentClass.js +18 -0
  34. package/dist/models/attachmentResponseDto.d.ts +27 -0
  35. package/dist/models/attachmentResponseDto.js +2 -0
  36. package/dist/models/attachmentResponseDtoDataArrayEnvelope.d.ts +11 -0
  37. package/dist/models/attachmentResponseDtoDataArrayEnvelope.js +2 -0
  38. package/dist/models/attachmentResponseDtoDataEnvelope.d.ts +11 -0
  39. package/dist/models/attachmentResponseDtoDataEnvelope.js +2 -0
  40. package/dist/models/attachmentUploadInitResponseDto.d.ts +20 -0
  41. package/dist/models/attachmentUploadInitResponseDto.js +2 -0
  42. package/dist/models/attachmentUploadInitResponseDtoDataEnvelope.d.ts +11 -0
  43. package/dist/models/attachmentUploadInitResponseDtoDataEnvelope.js +2 -0
  44. package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.d.ts +13 -0
  45. package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.js +9 -0
  46. package/dist/models/branchStrategy.d.ts +13 -0
  47. package/dist/models/branchStrategy.js +15 -0
  48. package/dist/models/buildImageResultDto.d.ts +15 -0
  49. package/dist/models/buildImageResultDto.js +9 -0
  50. package/dist/models/buildImageStartedResponseDto.d.ts +17 -0
  51. package/dist/models/buildImageStartedResponseDto.js +9 -0
  52. package/dist/models/buildImageStartedResponseDtoDataEnvelope.d.ts +11 -0
  53. package/dist/models/buildImageStartedResponseDtoDataEnvelope.js +2 -0
  54. package/dist/models/buildImageStatusResponseDto.d.ts +22 -0
  55. package/dist/models/buildImageStatusResponseDto.js +2 -0
  56. package/dist/models/buildImageStatusResponseDtoDataEnvelope.d.ts +11 -0
  57. package/dist/models/buildImageStatusResponseDtoDataEnvelope.js +2 -0
  58. package/dist/models/buildImageStatusResponseDtoFailureMessage.d.ts +14 -0
  59. package/dist/models/buildImageStatusResponseDtoFailureMessage.js +9 -0
  60. package/dist/models/buildImageStatusResponseDtoStatus.d.ts +20 -0
  61. package/dist/models/buildImageStatusResponseDtoStatus.js +22 -0
  62. package/dist/models/changeSessionModelDto.d.ts +15 -0
  63. package/dist/models/changeSessionModelDto.js +2 -0
  64. package/dist/models/changeSessionModelDtoSelection.d.ts +14 -0
  65. package/dist/models/changeSessionModelDtoSelection.js +9 -0
  66. package/dist/models/changeSessionToolsDto.d.ts +13 -0
  67. package/dist/models/changeSessionToolsDto.js +2 -0
  68. package/dist/models/createAndRunDispatchDto.d.ts +24 -0
  69. package/dist/models/createAndRunDispatchDto.js +2 -0
  70. package/dist/models/createAndRunDispatchDtoMode.d.ts +14 -0
  71. package/dist/models/createAndRunDispatchDtoMode.js +13 -0
  72. package/dist/models/createSandboxSessionDto.d.ts +26 -0
  73. package/dist/models/createSandboxSessionDto.js +2 -0
  74. package/dist/models/createThreadDto.d.ts +16 -0
  75. package/dist/models/createThreadDto.js +9 -0
  76. package/dist/models/dispatchEnvelopeDto.d.ts +21 -0
  77. package/dist/models/dispatchEnvelopeDto.js +2 -0
  78. package/dist/models/dispatchPromptContextDto.d.ts +15 -0
  79. package/dist/models/dispatchPromptContextDto.js +9 -0
  80. package/dist/models/environmentDriftDetectedPayloadDto.d.ts +16 -0
  81. package/dist/models/environmentDriftDetectedPayloadDto.js +2 -0
  82. package/dist/models/environmentDriftEntryDto.d.ts +21 -0
  83. package/dist/models/environmentDriftEntryDto.js +2 -0
  84. package/dist/models/environmentDriftEntryDtoAfter.d.ts +13 -0
  85. package/dist/models/environmentDriftEntryDtoAfter.js +9 -0
  86. package/dist/models/environmentDriftEntryDtoBefore.d.ts +13 -0
  87. package/dist/models/environmentDriftEntryDtoBefore.js +9 -0
  88. package/dist/models/errorDetailsDto.d.ts +12 -0
  89. package/dist/models/errorDetailsDto.js +2 -0
  90. package/dist/models/errorDetailsDtoDetails.d.ts +13 -0
  91. package/dist/models/errorDetailsDtoDetails.js +9 -0
  92. package/dist/models/errorPayloadDto.d.ts +13 -0
  93. package/dist/models/errorPayloadDto.js +2 -0
  94. package/dist/models/errorResponseDto.d.ts +11 -0
  95. package/dist/models/errorResponseDto.js +2 -0
  96. package/dist/models/externalInviteDeliveryMode.d.ts +15 -0
  97. package/dist/models/externalInviteDeliveryMode.js +14 -0
  98. package/dist/models/gitCommitEntryDto.d.ts +14 -0
  99. package/dist/models/gitCommitEntryDto.js +9 -0
  100. package/dist/models/gitCommitEntryDtoDataArrayEnvelope.d.ts +11 -0
  101. package/dist/models/gitCommitEntryDtoDataArrayEnvelope.js +2 -0
  102. package/dist/models/gitCommitResponseDto.d.ts +11 -0
  103. package/dist/models/gitCommitResponseDto.js +9 -0
  104. package/dist/models/gitCommitResponseDtoDataEnvelope.d.ts +11 -0
  105. package/dist/models/gitCommitResponseDtoDataEnvelope.js +2 -0
  106. package/dist/models/gitStatusResponseDto.d.ts +17 -0
  107. package/dist/models/gitStatusResponseDto.js +2 -0
  108. package/dist/models/gitStatusResponseDtoDataEnvelope.d.ts +11 -0
  109. package/dist/models/gitStatusResponseDtoDataEnvelope.js +2 -0
  110. package/dist/models/index.d.ts +194 -0
  111. package/dist/models/index.js +211 -0
  112. package/dist/models/initAttachmentUploadDto.d.ts +18 -0
  113. package/dist/models/initAttachmentUploadDto.js +9 -0
  114. package/dist/models/inputsAppendEnvelopeDto.d.ts +19 -0
  115. package/dist/models/inputsAppendEnvelopeDto.js +9 -0
  116. package/dist/models/inspectStepResultDto.d.ts +16 -0
  117. package/dist/models/inspectStepResultDto.js +2 -0
  118. package/dist/models/inspectStepResultDtoData.d.ts +10 -0
  119. package/dist/models/inspectStepResultDtoData.js +9 -0
  120. package/dist/models/inspectStepResultDtoKind.d.ts +25 -0
  121. package/dist/models/inspectStepResultDtoKind.js +27 -0
  122. package/dist/models/inspectStepResultDtoStatus.d.ts +17 -0
  123. package/dist/models/inspectStepResultDtoStatus.js +19 -0
  124. package/dist/models/invitableParticipantRole.d.ts +15 -0
  125. package/dist/models/invitableParticipantRole.js +14 -0
  126. package/dist/models/inviteExternalDto.d.ts +18 -0
  127. package/dist/models/inviteExternalDto.js +2 -0
  128. package/dist/models/inviteParticipantDto.d.ts +16 -0
  129. package/dist/models/inviteParticipantDto.js +2 -0
  130. package/dist/models/invitedExternalParticipantResponseDto.d.ts +17 -0
  131. package/dist/models/invitedExternalParticipantResponseDto.js +9 -0
  132. package/dist/models/invitedExternalParticipantResponseDtoDataEnvelope.d.ts +11 -0
  133. package/dist/models/invitedExternalParticipantResponseDtoDataEnvelope.js +2 -0
  134. package/dist/models/kBPushResponseDto.d.ts +13 -0
  135. package/dist/models/kBPushResponseDto.js +9 -0
  136. package/dist/models/kBPushResponseDtoDataEnvelope.d.ts +11 -0
  137. package/dist/models/kBPushResponseDtoDataEnvelope.js +2 -0
  138. package/dist/models/kbMountsResponseDto.d.ts +14 -0
  139. package/dist/models/kbMountsResponseDto.js +2 -0
  140. package/dist/models/kbMountsResponseDtoDataEnvelope.d.ts +11 -0
  141. package/dist/models/kbMountsResponseDtoDataEnvelope.js +2 -0
  142. package/dist/models/kbPageMountDto.d.ts +13 -0
  143. package/dist/models/kbPageMountDto.js +9 -0
  144. package/dist/models/launchFailRequestDto.d.ts +19 -0
  145. package/dist/models/launchFailRequestDto.js +9 -0
  146. package/dist/models/launchStepRequestDto.d.ts +15 -0
  147. package/dist/models/launchStepRequestDto.js +9 -0
  148. package/dist/models/listSessionParticipantsResponseDto.d.ts +11 -0
  149. package/dist/models/listSessionParticipantsResponseDto.js +2 -0
  150. package/dist/models/listSessionParticipantsResponseDtoDataEnvelope.d.ts +11 -0
  151. package/dist/models/listSessionParticipantsResponseDtoDataEnvelope.js +2 -0
  152. package/dist/models/mergeCheckResponseDto.d.ts +13 -0
  153. package/dist/models/mergeCheckResponseDto.js +9 -0
  154. package/dist/models/mergeCheckResponseDtoDataEnvelope.d.ts +11 -0
  155. package/dist/models/mergeCheckResponseDtoDataEnvelope.js +2 -0
  156. package/dist/models/messageResponseDto.d.ts +24 -0
  157. package/dist/models/messageResponseDto.js +2 -0
  158. package/dist/models/messageResponseDtoMetadata.d.ts +14 -0
  159. package/dist/models/messageResponseDtoMetadata.js +9 -0
  160. package/dist/models/messageResponseDtoPaginatedEnvelope.d.ts +13 -0
  161. package/dist/models/messageResponseDtoPaginatedEnvelope.js +2 -0
  162. package/dist/models/outputSurfaceAppResponseDto.d.ts +48 -0
  163. package/dist/models/outputSurfaceAppResponseDto.js +2 -0
  164. package/dist/models/outputSurfaceAppResponseDtoDataArrayEnvelope.d.ts +11 -0
  165. package/dist/models/outputSurfaceAppResponseDtoDataArrayEnvelope.js +2 -0
  166. package/dist/models/outputSurfaceAppResponseDtoDataEnvelope.d.ts +11 -0
  167. package/dist/models/outputSurfaceAppResponseDtoDataEnvelope.js +2 -0
  168. package/dist/models/outputSurfaceAppStatus.d.ts +18 -0
  169. package/dist/models/outputSurfaceAppStatus.js +20 -0
  170. package/dist/models/outputSurfaceControllerRestartParams.d.ts +11 -0
  171. package/dist/models/outputSurfaceControllerRestartParams.js +2 -0
  172. package/dist/models/outputSurfaceControllerScanParams.d.ts +11 -0
  173. package/dist/models/outputSurfaceControllerScanParams.js +2 -0
  174. package/dist/models/outputSurfaceRemediationKindInput.d.ts +17 -0
  175. package/dist/models/outputSurfaceRemediationKindInput.js +16 -0
  176. package/dist/models/outputSurfaceRestartMode.d.ts +13 -0
  177. package/dist/models/outputSurfaceRestartMode.js +15 -0
  178. package/dist/models/paginationMeta.d.ts +18 -0
  179. package/dist/models/paginationMeta.js +9 -0
  180. package/dist/models/participantRole.d.ts +16 -0
  181. package/dist/models/participantRole.js +15 -0
  182. package/dist/models/participantSubjectKind.d.ts +15 -0
  183. package/dist/models/participantSubjectKind.js +14 -0
  184. package/dist/models/projectKind.d.ts +24 -0
  185. package/dist/models/projectKind.js +26 -0
  186. package/dist/models/providerEntryDto.d.ts +14 -0
  187. package/dist/models/providerEntryDto.js +2 -0
  188. package/dist/models/providerEntryDtoKind.d.ts +11 -0
  189. package/dist/models/providerEntryDtoKind.js +13 -0
  190. package/dist/models/pullRequestResponseDto.d.ts +12 -0
  191. package/dist/models/pullRequestResponseDto.js +2 -0
  192. package/dist/models/pullRequestResponseDtoDataEnvelope.d.ts +11 -0
  193. package/dist/models/pullRequestResponseDtoDataEnvelope.js +2 -0
  194. package/dist/models/pullRequestResponseDtoPrUrl.d.ts +10 -0
  195. package/dist/models/pullRequestResponseDtoPrUrl.js +9 -0
  196. package/dist/models/pushDocumentEditDto.d.ts +11 -0
  197. package/dist/models/pushDocumentEditDto.js +9 -0
  198. package/dist/models/reasoningDeltaPayloadDto.d.ts +11 -0
  199. package/dist/models/reasoningDeltaPayloadDto.js +9 -0
  200. package/dist/models/referenceAttachmentClass.d.ts +18 -0
  201. package/dist/models/referenceAttachmentClass.js +17 -0
  202. package/dist/models/remediateOutputSurfaceDto.d.ts +14 -0
  203. package/dist/models/remediateOutputSurfaceDto.js +2 -0
  204. package/dist/models/remediateOutputSurfaceResponseDto.d.ts +13 -0
  205. package/dist/models/remediateOutputSurfaceResponseDto.js +9 -0
  206. package/dist/models/remediateOutputSurfaceResponseDtoDataEnvelope.d.ts +11 -0
  207. package/dist/models/remediateOutputSurfaceResponseDtoDataEnvelope.js +2 -0
  208. package/dist/models/repoGitStatusDto.d.ts +25 -0
  209. package/dist/models/repoGitStatusDto.js +2 -0
  210. package/dist/models/repoRole.d.ts +15 -0
  211. package/dist/models/repoRole.js +14 -0
  212. package/dist/models/reportInspectPresenceDto.d.ts +21 -0
  213. package/dist/models/reportInspectPresenceDto.js +2 -0
  214. package/dist/models/reportInspectPresenceDtoKind.d.ts +15 -0
  215. package/dist/models/reportInspectPresenceDtoKind.js +17 -0
  216. package/dist/models/reportInspectPresenceDtoReason.d.ts +15 -0
  217. package/dist/models/reportInspectPresenceDtoReason.js +14 -0
  218. package/dist/models/reportInspectResultDto.d.ts +13 -0
  219. package/dist/models/reportInspectResultDto.js +2 -0
  220. package/dist/models/resumeAndRunDispatchDto.d.ts +19 -0
  221. package/dist/models/resumeAndRunDispatchDto.js +2 -0
  222. package/dist/models/resumeAndRunDispatchDtoMode.d.ts +14 -0
  223. package/dist/models/resumeAndRunDispatchDtoMode.js +13 -0
  224. package/dist/models/resumeSessionDto.d.ts +14 -0
  225. package/dist/models/resumeSessionDto.js +9 -0
  226. package/dist/models/revisionInputDto.d.ts +13 -0
  227. package/dist/models/revisionInputDto.js +9 -0
  228. package/dist/models/rotateTokenResponseDto.d.ts +12 -0
  229. package/dist/models/rotateTokenResponseDto.js +9 -0
  230. package/dist/models/rotateTokenResponseDtoDataEnvelope.d.ts +11 -0
  231. package/dist/models/rotateTokenResponseDtoDataEnvelope.js +2 -0
  232. package/dist/models/runBackfillBatchRequestDto.d.ts +22 -0
  233. package/dist/models/runBackfillBatchRequestDto.js +9 -0
  234. package/dist/models/runBackfillBatchResponseDto.d.ts +15 -0
  235. package/dist/models/runBackfillBatchResponseDto.js +9 -0
  236. package/dist/models/runSandboxEvalTurnDto.d.ts +11 -0
  237. package/dist/models/runSandboxEvalTurnDto.js +9 -0
  238. package/dist/models/sandboxEvalTurnResultDto.d.ts +19 -0
  239. package/dist/models/sandboxEvalTurnResultDto.js +9 -0
  240. package/dist/models/sandboxEvalTurnResultDtoDataEnvelope.d.ts +11 -0
  241. package/dist/models/sandboxEvalTurnResultDtoDataEnvelope.js +2 -0
  242. package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.d.ts +13 -0
  243. package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.js +9 -0
  244. package/dist/models/sandboxToolMockDto.d.ts +15 -0
  245. package/dist/models/sandboxToolMockDto.js +9 -0
  246. package/dist/models/sandboxToolMocksResponseDto.d.ts +13 -0
  247. package/dist/models/sandboxToolMocksResponseDto.js +9 -0
  248. package/dist/models/sandboxToolMocksResponseDtoDataEnvelope.d.ts +11 -0
  249. package/dist/models/sandboxToolMocksResponseDtoDataEnvelope.js +2 -0
  250. package/dist/models/sessionAttachmentStatus.d.ts +16 -0
  251. package/dist/models/sessionAttachmentStatus.js +15 -0
  252. package/dist/models/sessionBlobAttachmentDto.d.ts +18 -0
  253. package/dist/models/sessionBlobAttachmentDto.js +2 -0
  254. package/dist/models/sessionBlobAttachmentDtoDataArrayEnvelope.d.ts +11 -0
  255. package/dist/models/sessionBlobAttachmentDtoDataArrayEnvelope.js +2 -0
  256. package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.d.ts +13 -0
  257. package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.js +9 -0
  258. package/dist/models/sessionContextWindowSnapshotDto.d.ts +31 -0
  259. package/dist/models/sessionContextWindowSnapshotDto.js +9 -0
  260. package/dist/models/sessionDebugCompositionNodeDto.d.ts +20 -0
  261. package/dist/models/sessionDebugCompositionNodeDto.js +9 -0
  262. package/dist/models/sessionDebugInfoDto.d.ts +38 -0
  263. package/dist/models/sessionDebugInfoDto.js +2 -0
  264. package/dist/models/sessionDebugInfoDtoDataEnvelope.d.ts +11 -0
  265. package/dist/models/sessionDebugInfoDtoDataEnvelope.js +2 -0
  266. package/dist/models/sessionDebugInfoDtoMountPlan.d.ts +14 -0
  267. package/dist/models/sessionDebugInfoDtoMountPlan.js +9 -0
  268. package/dist/models/sessionDebugModelDecisionDto.d.ts +27 -0
  269. package/dist/models/sessionDebugModelDecisionDto.js +9 -0
  270. package/dist/models/sessionDebugSkillDto.d.ts +23 -0
  271. package/dist/models/sessionDebugSkillDto.js +2 -0
  272. package/dist/models/sessionDebugSkillDtoSnapshot.d.ts +14 -0
  273. package/dist/models/sessionDebugSkillDtoSnapshot.js +9 -0
  274. package/dist/models/sessionKind.d.ts +15 -0
  275. package/dist/models/sessionKind.js +14 -0
  276. package/dist/models/sessionLockfileDto.d.ts +29 -0
  277. package/dist/models/sessionLockfileDto.js +2 -0
  278. package/dist/models/sessionLockfileDtoAgents.d.ts +13 -0
  279. package/dist/models/sessionLockfileDtoAgents.js +9 -0
  280. package/dist/models/sessionLockfileDtoBiomes.d.ts +13 -0
  281. package/dist/models/sessionLockfileDtoBiomes.js +9 -0
  282. package/dist/models/sessionLockfileDtoCapabilities.d.ts +13 -0
  283. package/dist/models/sessionLockfileDtoCapabilities.js +9 -0
  284. package/dist/models/sessionLockfileDtoDataEnvelope.d.ts +11 -0
  285. package/dist/models/sessionLockfileDtoDataEnvelope.js +2 -0
  286. package/dist/models/sessionLockfileDtoDeliverableSpecs.d.ts +13 -0
  287. package/dist/models/sessionLockfileDtoDeliverableSpecs.js +9 -0
  288. package/dist/models/sessionLockfileDtoSkills.d.ts +13 -0
  289. package/dist/models/sessionLockfileDtoSkills.js +9 -0
  290. package/dist/models/sessionLockfileDtoWorkflows.d.ts +13 -0
  291. package/dist/models/sessionLockfileDtoWorkflows.js +9 -0
  292. package/dist/models/sessionMessageRole.d.ts +14 -0
  293. package/dist/models/sessionMessageRole.js +16 -0
  294. package/dist/models/sessionParticipantDto.d.ts +29 -0
  295. package/dist/models/sessionParticipantDto.js +2 -0
  296. package/dist/models/sessionParticipantDtoDataEnvelope.d.ts +11 -0
  297. package/dist/models/sessionParticipantDtoDataEnvelope.js +2 -0
  298. package/dist/models/sessionPauseReason.d.ts +15 -0
  299. package/dist/models/sessionPauseReason.js +14 -0
  300. package/dist/models/sessionProvisioningPhase.d.ts +24 -0
  301. package/dist/models/sessionProvisioningPhase.js +23 -0
  302. package/dist/models/sessionResponseDto.d.ts +134 -0
  303. package/dist/models/sessionResponseDto.js +2 -0
  304. package/dist/models/sessionResponseDtoDataEnvelope.d.ts +11 -0
  305. package/dist/models/sessionResponseDtoDataEnvelope.js +2 -0
  306. package/dist/models/sessionResponseDtoFailureMetaJson.d.ts +14 -0
  307. package/dist/models/sessionResponseDtoFailureMetaJson.js +9 -0
  308. package/dist/models/sessionResponseDtoHandoffOutput.d.ts +14 -0
  309. package/dist/models/sessionResponseDtoHandoffOutput.js +9 -0
  310. package/dist/models/sessionResponseDtoModelSelection.d.ts +14 -0
  311. package/dist/models/sessionResponseDtoModelSelection.js +9 -0
  312. package/dist/models/sessionResponseDtoPaginatedEnvelope.d.ts +13 -0
  313. package/dist/models/sessionResponseDtoPaginatedEnvelope.js +2 -0
  314. package/dist/models/sessionResponseDtoToolSelectionItem.d.ts +10 -0
  315. package/dist/models/sessionResponseDtoToolSelectionItem.js +9 -0
  316. package/dist/models/sessionStatus.d.ts +19 -0
  317. package/dist/models/sessionStatus.js +21 -0
  318. package/dist/models/sessionTimelineEntryDto.d.ts +23 -0
  319. package/dist/models/sessionTimelineEntryDto.js +2 -0
  320. package/dist/models/sessionTimelineEntryDtoEventType.d.ts +69 -0
  321. package/dist/models/sessionTimelineEntryDtoEventType.js +68 -0
  322. package/dist/models/sessionTimelineEntryDtoPayload.d.ts +17 -0
  323. package/dist/models/sessionTimelineEntryDtoPayload.js +2 -0
  324. package/dist/models/sessionTimelinePageDto.d.ts +16 -0
  325. package/dist/models/sessionTimelinePageDto.js +2 -0
  326. package/dist/models/sessionTimelinePageDtoDataEnvelope.d.ts +11 -0
  327. package/dist/models/sessionTimelinePageDtoDataEnvelope.js +2 -0
  328. package/dist/models/sessionTokenUsageDto.d.ts +11 -0
  329. package/dist/models/sessionTokenUsageDto.js +9 -0
  330. package/dist/models/sessionsControllerGetCommitHistoryParams.d.ts +13 -0
  331. package/dist/models/sessionsControllerGetCommitHistoryParams.js +9 -0
  332. package/dist/models/sessionsControllerGetGitDiffParams.d.ts +17 -0
  333. package/dist/models/sessionsControllerGetGitDiffParams.js +9 -0
  334. package/dist/models/sessionsControllerListFilesParams.d.ts +13 -0
  335. package/dist/models/sessionsControllerListFilesParams.js +9 -0
  336. package/dist/models/sessionsControllerListParams.d.ts +45 -0
  337. package/dist/models/sessionsControllerListParams.js +9 -0
  338. package/dist/models/sessionsControllerListTemplatesParams.d.ts +11 -0
  339. package/dist/models/sessionsControllerListTemplatesParams.js +9 -0
  340. package/dist/models/sessionsControllerMergeCheckParams.d.ts +13 -0
  341. package/dist/models/sessionsControllerMergeCheckParams.js +9 -0
  342. package/dist/models/sessionsControllerStreamEventsParams.d.ts +13 -0
  343. package/dist/models/sessionsControllerStreamEventsParams.js +9 -0
  344. package/dist/models/setSandboxToolMocksDto.d.ts +12 -0
  345. package/dist/models/setSandboxToolMocksDto.js +2 -0
  346. package/dist/models/shareAccessLevel.d.ts +14 -0
  347. package/dist/models/shareAccessLevel.js +13 -0
  348. package/dist/models/shareResponseDto.d.ts +21 -0
  349. package/dist/models/shareResponseDto.js +2 -0
  350. package/dist/models/shareResponseDtoDataEnvelope.d.ts +11 -0
  351. package/dist/models/shareResponseDtoDataEnvelope.js +2 -0
  352. package/dist/models/shareResponseDtoExpiresAt.d.ts +14 -0
  353. package/dist/models/shareResponseDtoExpiresAt.js +9 -0
  354. package/dist/models/startBuildImageDto.d.ts +16 -0
  355. package/dist/models/startBuildImageDto.js +9 -0
  356. package/dist/models/sweeperTickResponseDto.d.ts +13 -0
  357. package/dist/models/sweeperTickResponseDto.js +9 -0
  358. package/dist/models/templateResponseDto.d.ts +33 -0
  359. package/dist/models/templateResponseDto.js +2 -0
  360. package/dist/models/templateResponseDtoBudgetLimit.d.ts +10 -0
  361. package/dist/models/templateResponseDtoBudgetLimit.js +9 -0
  362. package/dist/models/templateResponseDtoCustomConfig.d.ts +14 -0
  363. package/dist/models/templateResponseDtoCustomConfig.js +9 -0
  364. package/dist/models/templateResponseDtoDataEnvelope.d.ts +11 -0
  365. package/dist/models/templateResponseDtoDataEnvelope.js +2 -0
  366. package/dist/models/templateResponseDtoDescription.d.ts +10 -0
  367. package/dist/models/templateResponseDtoDescription.js +9 -0
  368. package/dist/models/templateResponseDtoPaginatedEnvelope.d.ts +13 -0
  369. package/dist/models/templateResponseDtoPaginatedEnvelope.js +2 -0
  370. package/dist/models/templateResponseDtoRepositoryId.d.ts +10 -0
  371. package/dist/models/templateResponseDtoRepositoryId.js +9 -0
  372. package/dist/models/textDeltaPayloadDto.d.ts +11 -0
  373. package/dist/models/textDeltaPayloadDto.js +9 -0
  374. package/dist/models/threadResponseDto.d.ts +35 -0
  375. package/dist/models/threadResponseDto.js +2 -0
  376. package/dist/models/threadResponseDtoDataArrayEnvelope.d.ts +11 -0
  377. package/dist/models/threadResponseDtoDataArrayEnvelope.js +2 -0
  378. package/dist/models/threadResponseDtoDataEnvelope.d.ts +11 -0
  379. package/dist/models/threadResponseDtoDataEnvelope.js +2 -0
  380. package/dist/models/threadResponseDtoModelSelection.d.ts +14 -0
  381. package/dist/models/threadResponseDtoModelSelection.js +9 -0
  382. package/dist/models/threadStatus.d.ts +12 -0
  383. package/dist/models/threadStatus.js +14 -0
  384. package/dist/models/threadsControllerGetMessagesParams.d.ts +17 -0
  385. package/dist/models/threadsControllerGetMessagesParams.js +9 -0
  386. package/dist/models/threadsControllerGetTimelineParams.d.ts +17 -0
  387. package/dist/models/threadsControllerGetTimelineParams.js +9 -0
  388. package/dist/models/toolCallPayloadDto.d.ts +18 -0
  389. package/dist/models/toolCallPayloadDto.js +2 -0
  390. package/dist/models/toolCallPayloadDtoStatus.d.ts +15 -0
  391. package/dist/models/toolCallPayloadDtoStatus.js +14 -0
  392. package/dist/models/toolEntryDto.d.ts +16 -0
  393. package/dist/models/toolEntryDto.js +2 -0
  394. package/dist/models/toolEntryDtoKind.d.ts +11 -0
  395. package/dist/models/toolEntryDtoKind.js +13 -0
  396. package/dist/models/toolProviderKind.d.ts +15 -0
  397. package/dist/models/toolProviderKind.js +17 -0
  398. package/dist/models/toolUsageEntryDto.d.ts +15 -0
  399. package/dist/models/toolUsageEntryDto.js +9 -0
  400. package/dist/models/toolUsageResponseDto.d.ts +14 -0
  401. package/dist/models/toolUsageResponseDto.js +2 -0
  402. package/dist/models/toolUsageResponseDtoDataEnvelope.d.ts +11 -0
  403. package/dist/models/toolUsageResponseDtoDataEnvelope.js +2 -0
  404. package/dist/models/turnState.d.ts +16 -0
  405. package/dist/models/turnState.js +15 -0
  406. package/dist/models/updateKbMountsDto.d.ts +14 -0
  407. package/dist/models/updateKbMountsDto.js +2 -0
  408. package/dist/models/updateThreadDto.d.ts +17 -0
  409. package/dist/models/updateThreadDto.js +2 -0
  410. package/dist/models/usageResponseDto.d.ts +18 -0
  411. package/dist/models/usageResponseDto.js +2 -0
  412. package/dist/models/usageResponseDtoBudgetLimit.d.ts +13 -0
  413. package/dist/models/usageResponseDtoBudgetLimit.js +9 -0
  414. package/dist/models/usageResponseDtoBudgetRatio.d.ts +13 -0
  415. package/dist/models/usageResponseDtoBudgetRatio.js +9 -0
  416. package/dist/models/usageResponseDtoDataEnvelope.d.ts +11 -0
  417. package/dist/models/usageResponseDtoDataEnvelope.js +2 -0
  418. package/package.json +18 -0
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sandboxSessionsControllerDebug = exports.getSandboxSessionsControllerDebugUrl = exports.sandboxSessionsControllerDispose = exports.getSandboxSessionsControllerDisposeUrl = exports.sandboxSessionsControllerRunEvalTurn = exports.getSandboxSessionsControllerRunEvalTurnUrl = exports.sandboxSessionsControllerDeleteToolMocks = exports.getSandboxSessionsControllerDeleteToolMocksUrl = exports.sandboxSessionsControllerListToolMocks = exports.getSandboxSessionsControllerListToolMocksUrl = exports.sandboxSessionsControllerSetToolMocks = exports.getSandboxSessionsControllerSetToolMocksUrl = exports.sandboxSessionsControllerCreate = exports.getSandboxSessionsControllerCreateUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary Create an ephemeral Agent Studio sandbox session bound to a DRAFT composition. The session is throwaway, lifecycle-bounded by a TTL, and isolated from every project side-effect (no artifact emit, no deliverable harvest, no KB push, no git, no snapshot persistence). When `toolMocks` is supplied the per-tool canned responses are registered with the mcp-gateway test-mode mock bridge as part of create.
7
+ */
8
+ const getSandboxSessionsControllerCreateUrl = () => {
9
+ return `/sessions/sandbox`;
10
+ };
11
+ exports.getSandboxSessionsControllerCreateUrl = getSandboxSessionsControllerCreateUrl;
12
+ const sandboxSessionsControllerCreate = async (createSandboxSessionDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerCreateUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(createSandboxSessionDto)
18
+ });
19
+ };
20
+ exports.sandboxSessionsControllerCreate = sandboxSessionsControllerCreate;
21
+ /**
22
+ * @summary Register (replace) the full set of per-tool canned mock responses for a sandbox session. When the sandbox runs with mocked tools, the mcp-gateway bridge serves these canned results instead of invoking live MCP services. Authorized as the sandbox owner; forwarded to mcp-gateway-api service-to-service.
23
+ */
24
+ const getSandboxSessionsControllerSetToolMocksUrl = (id) => {
25
+ return `/sessions/sandbox/${id}/tool-mocks`;
26
+ };
27
+ exports.getSandboxSessionsControllerSetToolMocksUrl = getSandboxSessionsControllerSetToolMocksUrl;
28
+ const sandboxSessionsControllerSetToolMocks = async (id, setSandboxToolMocksDto, options) => {
29
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerSetToolMocksUrl)(id), {
30
+ ...options,
31
+ method: 'PUT',
32
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
33
+ body: JSON.stringify(setSandboxToolMocksDto)
34
+ });
35
+ };
36
+ exports.sandboxSessionsControllerSetToolMocks = sandboxSessionsControllerSetToolMocks;
37
+ /**
38
+ * @summary List the canonical tool names a sandbox session currently has canned mock responses registered for.
39
+ */
40
+ const getSandboxSessionsControllerListToolMocksUrl = (id) => {
41
+ return `/sessions/sandbox/${id}/tool-mocks`;
42
+ };
43
+ exports.getSandboxSessionsControllerListToolMocksUrl = getSandboxSessionsControllerListToolMocksUrl;
44
+ const sandboxSessionsControllerListToolMocks = async (id, options) => {
45
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerListToolMocksUrl)(id), {
46
+ ...options,
47
+ method: 'GET'
48
+ });
49
+ };
50
+ exports.sandboxSessionsControllerListToolMocks = sandboxSessionsControllerListToolMocks;
51
+ /**
52
+ * @summary Delete one mocked tool from a sandbox session, or every mock for the session when the `toolName` query parameter is omitted.
53
+ */
54
+ const getSandboxSessionsControllerDeleteToolMocksUrl = (id, params) => {
55
+ const normalizedParams = new URLSearchParams();
56
+ Object.entries(params || {}).forEach(([key, value]) => {
57
+ if (value === undefined)
58
+ return;
59
+ if (value === null) {
60
+ normalizedParams.append(key, 'null');
61
+ return;
62
+ }
63
+ if (Array.isArray(value)) {
64
+ for (const item of value) {
65
+ if (item === undefined || item === null)
66
+ continue;
67
+ normalizedParams.append(key, item.toString());
68
+ }
69
+ return;
70
+ }
71
+ normalizedParams.append(key, value.toString());
72
+ });
73
+ const stringifiedParams = normalizedParams.toString();
74
+ return stringifiedParams.length > 0 ? `/sessions/sandbox/${id}/tool-mocks?${stringifiedParams}` : `/sessions/sandbox/${id}/tool-mocks`;
75
+ };
76
+ exports.getSandboxSessionsControllerDeleteToolMocksUrl = getSandboxSessionsControllerDeleteToolMocksUrl;
77
+ const sandboxSessionsControllerDeleteToolMocks = async (id, params, options) => {
78
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDeleteToolMocksUrl)(id, params), {
79
+ ...options,
80
+ method: 'DELETE'
81
+ });
82
+ };
83
+ exports.sandboxSessionsControllerDeleteToolMocks = sandboxSessionsControllerDeleteToolMocks;
84
+ /**
85
+ * @summary Drive ONE agent turn on a sandbox session to completion SYNCHRONOUSLY and return the captured assistant output + token/wall-clock timing. Unlike the SSE chat endpoint this blocks until the turn reaches its terminal state — built for the skill-registry-api eval harness, which is a service-to-service caller and cannot consume an event stream. Requires an `Idempotency-Key` header: it is the per-turn lock id, so a retried eval turn never double-drives the agent.
86
+ */
87
+ const getSandboxSessionsControllerRunEvalTurnUrl = (id) => {
88
+ return `/sessions/sandbox/${id}/eval-turn`;
89
+ };
90
+ exports.getSandboxSessionsControllerRunEvalTurnUrl = getSandboxSessionsControllerRunEvalTurnUrl;
91
+ const sandboxSessionsControllerRunEvalTurn = async (id, runSandboxEvalTurnDto, options) => {
92
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerRunEvalTurnUrl)(id), {
93
+ ...options,
94
+ method: 'POST',
95
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
96
+ body: JSON.stringify(runSandboxEvalTurnDto)
97
+ });
98
+ };
99
+ exports.sandboxSessionsControllerRunEvalTurn = sandboxSessionsControllerRunEvalTurn;
100
+ /**
101
+ * @summary Dispose a sandbox session — release its worker and drive it terminal. Idempotent.
102
+ */
103
+ const getSandboxSessionsControllerDisposeUrl = (id) => {
104
+ return `/sessions/sandbox/${id}`;
105
+ };
106
+ exports.getSandboxSessionsControllerDisposeUrl = getSandboxSessionsControllerDisposeUrl;
107
+ const sandboxSessionsControllerDispose = async (id, options) => {
108
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDisposeUrl)(id), {
109
+ ...options,
110
+ method: 'DELETE'
111
+ });
112
+ };
113
+ exports.sandboxSessionsControllerDispose = sandboxSessionsControllerDispose;
114
+ /**
115
+ * @summary Debug / decision-trace view of a (sandbox) session: the resolved composition tree (sub-agent tree + per-node model), the Model Resolution Matrix decision trace for the primary agent, skill activation, the injected-context view, and the projected mount plan. Valid for any session; built for the Studio sandbox harness.
116
+ */
117
+ const getSandboxSessionsControllerDebugUrl = (id) => {
118
+ return `/sessions/sandbox/${id}/debug`;
119
+ };
120
+ exports.getSandboxSessionsControllerDebugUrl = getSandboxSessionsControllerDebugUrl;
121
+ const sandboxSessionsControllerDebug = async (id, options) => {
122
+ return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDebugUrl)(id), {
123
+ ...options,
124
+ method: 'GET'
125
+ });
126
+ };
127
+ exports.sandboxSessionsControllerDebug = sandboxSessionsControllerDebug;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Interactive Session API
5
+ * Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AttachSkillDto } from '../../models';
9
+ /**
10
+ * @summary List skills attached to this session
11
+ */
12
+ export declare const getSessionAttachmentsControllerListSkillsUrl: (id: string) => string;
13
+ export declare const sessionAttachmentsControllerListSkills: (id: string, options?: RequestInit) => Promise<void>;
14
+ /**
15
+ * @summary Attach a skill to this session at runtime
16
+ */
17
+ export declare const getSessionAttachmentsControllerAttachSkillUrl: (id: string) => string;
18
+ export declare const sessionAttachmentsControllerAttachSkill: (id: string, attachSkillDto: AttachSkillDto, options?: RequestInit) => Promise<void>;
19
+ /**
20
+ * @summary Detach a skill from this session
21
+ */
22
+ export declare const getSessionAttachmentsControllerDetachSkillUrl: (id: string, skillSlug: string) => string;
23
+ export declare const sessionAttachmentsControllerDetachSkill: (id: string, skillSlug: string, options?: RequestInit) => Promise<void>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sessionAttachmentsControllerDetachSkill = exports.getSessionAttachmentsControllerDetachSkillUrl = exports.sessionAttachmentsControllerAttachSkill = exports.getSessionAttachmentsControllerAttachSkillUrl = exports.sessionAttachmentsControllerListSkills = exports.getSessionAttachmentsControllerListSkillsUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary List skills attached to this session
7
+ */
8
+ const getSessionAttachmentsControllerListSkillsUrl = (id) => {
9
+ return `/sessions/${id}/skills`;
10
+ };
11
+ exports.getSessionAttachmentsControllerListSkillsUrl = getSessionAttachmentsControllerListSkillsUrl;
12
+ const sessionAttachmentsControllerListSkills = async (id, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerListSkillsUrl)(id), {
14
+ ...options,
15
+ method: 'GET'
16
+ });
17
+ };
18
+ exports.sessionAttachmentsControllerListSkills = sessionAttachmentsControllerListSkills;
19
+ /**
20
+ * @summary Attach a skill to this session at runtime
21
+ */
22
+ const getSessionAttachmentsControllerAttachSkillUrl = (id) => {
23
+ return `/sessions/${id}/skills`;
24
+ };
25
+ exports.getSessionAttachmentsControllerAttachSkillUrl = getSessionAttachmentsControllerAttachSkillUrl;
26
+ const sessionAttachmentsControllerAttachSkill = async (id, attachSkillDto, options) => {
27
+ return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerAttachSkillUrl)(id), {
28
+ ...options,
29
+ method: 'POST',
30
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
31
+ body: JSON.stringify(attachSkillDto)
32
+ });
33
+ };
34
+ exports.sessionAttachmentsControllerAttachSkill = sessionAttachmentsControllerAttachSkill;
35
+ /**
36
+ * @summary Detach a skill from this session
37
+ */
38
+ const getSessionAttachmentsControllerDetachSkillUrl = (id, skillSlug) => {
39
+ return `/sessions/${id}/skills/${skillSlug}`;
40
+ };
41
+ exports.getSessionAttachmentsControllerDetachSkillUrl = getSessionAttachmentsControllerDetachSkillUrl;
42
+ const sessionAttachmentsControllerDetachSkill = async (id, skillSlug, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerDetachSkillUrl)(id, skillSlug), {
44
+ ...options,
45
+ method: 'DELETE'
46
+ });
47
+ };
48
+ exports.sessionAttachmentsControllerDetachSkill = sessionAttachmentsControllerDetachSkill;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Interactive Session API
5
+ * Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { SessionBlobAttachmentDtoDataArrayEnvelope } from '../../models';
9
+ /**
10
+ * @summary List uploaded-file attachments for a session with per-row SAS download URLs (mount-apply manifest)
11
+ */
12
+ export declare const getSessionBlobAttachmentsControllerListUrl: (id: string) => string;
13
+ export declare const sessionBlobAttachmentsControllerList: (id: string, options?: RequestInit) => Promise<SessionBlobAttachmentDtoDataArrayEnvelope>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sessionBlobAttachmentsControllerList = exports.getSessionBlobAttachmentsControllerListUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary List uploaded-file attachments for a session with per-row SAS download URLs (mount-apply manifest)
7
+ */
8
+ const getSessionBlobAttachmentsControllerListUrl = (id) => {
9
+ return `/sessions/${id}/attachments/blob-manifest`;
10
+ };
11
+ exports.getSessionBlobAttachmentsControllerListUrl = getSessionBlobAttachmentsControllerListUrl;
12
+ const sessionBlobAttachmentsControllerList = async (id, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getSessionBlobAttachmentsControllerListUrl)(id), {
14
+ ...options,
15
+ method: 'GET'
16
+ });
17
+ };
18
+ exports.sessionBlobAttachmentsControllerList = sessionBlobAttachmentsControllerList;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Interactive Session API
5
+ * Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { InviteExternalDto, InviteParticipantDto, InvitedExternalParticipantResponseDtoDataEnvelope, ListSessionParticipantsResponseDtoDataEnvelope, SessionParticipantDtoDataEnvelope } from '../../models';
9
+ /**
10
+ * @summary List the participants of a session (capability `workspace:session.read@1`). Returns every Xema user + external guest currently invited, including their role, invited-at, and last-seen-at.
11
+ */
12
+ export declare const getParticipantsControllerListUrl: (sessionId: string) => string;
13
+ export declare const participantsControllerList: (sessionId: string, options?: RequestInit) => Promise<ListSessionParticipantsResponseDtoDataEnvelope>;
14
+ /**
15
+ * @summary Invite an in-org Xema user to a session (capability `workspace:session.invite@1`). Use `POST /participants/external` for external guest invites.
16
+ */
17
+ export declare const getParticipantsControllerInviteUrl: (sessionId: string) => string;
18
+ export declare const participantsControllerInvite: (sessionId: string, inviteParticipantDto: InviteParticipantDto, options?: RequestInit) => Promise<SessionParticipantDtoDataEnvelope>;
19
+ /**
20
+ * @summary Invite an external guest (delegated-session subject) to an app-layer session (capability `workspace:session.invite-external@1`). Refuses with `SESSION_LAYER_REJECTS_EXTERNAL` (409) when the session is not on `layer == "app"`. Mints a short-lived delegated token via app-runtime-api and returns the join URL.
21
+ */
22
+ export declare const getParticipantsControllerInviteExternalUrl: (sessionId: string) => string;
23
+ export declare const participantsControllerInviteExternal: (sessionId: string, inviteExternalDto: InviteExternalDto, options?: RequestInit) => Promise<InvitedExternalParticipantResponseDtoDataEnvelope>;
24
+ /**
25
+ * @summary Remove a participant from a session (capability `workspace:session.invite@1`). The session owner cannot be removed.
26
+ */
27
+ export declare const getParticipantsControllerRemoveUrl: (sessionId: string, participantId: string) => string;
28
+ export declare const participantsControllerRemove: (sessionId: string, participantId: string, options?: RequestInit) => Promise<unknown>;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.participantsControllerRemove = exports.getParticipantsControllerRemoveUrl = exports.participantsControllerInviteExternal = exports.getParticipantsControllerInviteExternalUrl = exports.participantsControllerInvite = exports.getParticipantsControllerInviteUrl = exports.participantsControllerList = exports.getParticipantsControllerListUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary List the participants of a session (capability `workspace:session.read@1`). Returns every Xema user + external guest currently invited, including their role, invited-at, and last-seen-at.
7
+ */
8
+ const getParticipantsControllerListUrl = (sessionId) => {
9
+ return `/sessions/${sessionId}/participants`;
10
+ };
11
+ exports.getParticipantsControllerListUrl = getParticipantsControllerListUrl;
12
+ const participantsControllerList = async (sessionId, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerListUrl)(sessionId), {
14
+ ...options,
15
+ method: 'GET'
16
+ });
17
+ };
18
+ exports.participantsControllerList = participantsControllerList;
19
+ /**
20
+ * @summary Invite an in-org Xema user to a session (capability `workspace:session.invite@1`). Use `POST /participants/external` for external guest invites.
21
+ */
22
+ const getParticipantsControllerInviteUrl = (sessionId) => {
23
+ return `/sessions/${sessionId}/participants`;
24
+ };
25
+ exports.getParticipantsControllerInviteUrl = getParticipantsControllerInviteUrl;
26
+ const participantsControllerInvite = async (sessionId, inviteParticipantDto, options) => {
27
+ return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerInviteUrl)(sessionId), {
28
+ ...options,
29
+ method: 'POST',
30
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
31
+ body: JSON.stringify(inviteParticipantDto)
32
+ });
33
+ };
34
+ exports.participantsControllerInvite = participantsControllerInvite;
35
+ /**
36
+ * @summary Invite an external guest (delegated-session subject) to an app-layer session (capability `workspace:session.invite-external@1`). Refuses with `SESSION_LAYER_REJECTS_EXTERNAL` (409) when the session is not on `layer == "app"`. Mints a short-lived delegated token via app-runtime-api and returns the join URL.
37
+ */
38
+ const getParticipantsControllerInviteExternalUrl = (sessionId) => {
39
+ return `/sessions/${sessionId}/participants/external`;
40
+ };
41
+ exports.getParticipantsControllerInviteExternalUrl = getParticipantsControllerInviteExternalUrl;
42
+ const participantsControllerInviteExternal = async (sessionId, inviteExternalDto, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerInviteExternalUrl)(sessionId), {
44
+ ...options,
45
+ method: 'POST',
46
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
47
+ body: JSON.stringify(inviteExternalDto)
48
+ });
49
+ };
50
+ exports.participantsControllerInviteExternal = participantsControllerInviteExternal;
51
+ /**
52
+ * @summary Remove a participant from a session (capability `workspace:session.invite@1`). The session owner cannot be removed.
53
+ */
54
+ const getParticipantsControllerRemoveUrl = (sessionId, participantId) => {
55
+ return `/sessions/${sessionId}/participants/${participantId}`;
56
+ };
57
+ exports.getParticipantsControllerRemoveUrl = getParticipantsControllerRemoveUrl;
58
+ const participantsControllerRemove = async (sessionId, participantId, options) => {
59
+ return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerRemoveUrl)(sessionId, participantId), {
60
+ ...options,
61
+ method: 'DELETE'
62
+ });
63
+ };
64
+ exports.participantsControllerRemove = participantsControllerRemove;
@@ -0,0 +1,243 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Interactive Session API
5
+ * Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { AddAttachmentDto, AttachmentResponseDtoDataArrayEnvelope, AttachmentResponseDtoDataEnvelope, AttachmentUploadInitResponseDtoDataEnvelope, BuildImageStartedResponseDtoDataEnvelope, BuildImageStatusResponseDtoDataEnvelope, ChangeSessionModelDto, ChangeSessionToolsDto, GitCommitEntryDtoDataArrayEnvelope, GitCommitResponseDtoDataEnvelope, GitStatusResponseDtoDataEnvelope, InitAttachmentUploadDto, KBPushResponseDtoDataEnvelope, KbMountsResponseDtoDataEnvelope, MergeCheckResponseDtoDataEnvelope, PullRequestResponseDtoDataEnvelope, PushDocumentEditDto, ResumeSessionDto, SessionLockfileDtoDataEnvelope, SessionResponseDtoDataEnvelope, SessionResponseDtoPaginatedEnvelope, SessionsControllerGetCommitHistoryParams, SessionsControllerGetGitDiffParams, SessionsControllerListFilesParams, SessionsControllerListParams, SessionsControllerListTemplatesParams, SessionsControllerMergeCheckParams, SessionsControllerStreamEventsParams, ShareResponseDtoDataEnvelope, StartBuildImageDto, TemplateResponseDtoDataEnvelope, TemplateResponseDtoPaginatedEnvelope, ToolUsageResponseDtoDataEnvelope, UpdateKbMountsDto, UsageResponseDtoDataEnvelope } from '../../models';
9
+ /**
10
+ * @summary Create a new agent session
11
+ */
12
+ export declare const getSessionsControllerCreateUrl: () => string;
13
+ export declare const sessionsControllerCreate: (options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
14
+ /**
15
+ * @summary List sessions with pagination and filters
16
+ */
17
+ export declare const getSessionsControllerListUrl: (params?: SessionsControllerListParams) => string;
18
+ export declare const sessionsControllerList: (params?: SessionsControllerListParams, options?: RequestInit) => Promise<SessionResponseDtoPaginatedEnvelope>;
19
+ /**
20
+ * @summary Fork an existing session. Creates a new session that inherits the parent's profile, model, repository and branch strategy, then provisions a fresh worker — no chat history is copied. Use this to explore a parallel direction without disturbing the parent.
21
+ */
22
+ export declare const getSessionsControllerForkUrl: (id: string) => string;
23
+ export declare const sessionsControllerFork: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
24
+ /**
25
+ * @summary Get session detail
26
+ */
27
+ export declare const getSessionsControllerGetByIdUrl: (id: string) => string;
28
+ export declare const sessionsControllerGetById: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
29
+ /**
30
+ * @summary Terminate and archive a session
31
+ */
32
+ export declare const getSessionsControllerTerminateUrl: (id: string) => string;
33
+ export declare const sessionsControllerTerminate: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
34
+ /**
35
+ * @summary Get the pinned AppLockfile minted at session create time (plan §10.4 / §17.9 item 3). Returns 404 for sessions created before the lockfile column was introduced.
36
+ */
37
+ export declare const getSessionsControllerGetLockfileUrl: (id: string) => string;
38
+ export declare const sessionsControllerGetLockfile: (id: string, options?: RequestInit) => Promise<SessionLockfileDtoDataEnvelope>;
39
+ /**
40
+ * @summary Terminate all non-terminal sessions tied to a pipeline run. Intended for service-to-service calls (e.g. work-orchestrator stopPipeline) that need to release OpenCode workers held by agent sessions spawned inside a run the user has just halted.
41
+ */
42
+ export declare const getSessionsControllerTerminateByPipelineRunIdUrl: (pipelineRunId: string) => string;
43
+ export declare const sessionsControllerTerminateByPipelineRunId: (pipelineRunId: string, options?: RequestInit) => Promise<unknown>;
44
+ /**
45
+ * @summary Reply to a question posed by the agent during a turn
46
+ */
47
+ export declare const getSessionsControllerReplyToQuestionUrl: (id: string, requestId: string) => string;
48
+ export declare const sessionsControllerReplyToQuestion: (id: string, requestId: string, options?: RequestInit) => Promise<unknown>;
49
+ /**
50
+ * @summary Reject/dismiss a question posed by the agent during a turn
51
+ */
52
+ export declare const getSessionsControllerRejectQuestionUrl: (id: string, requestId: string) => string;
53
+ export declare const sessionsControllerRejectQuestion: (id: string, requestId: string, options?: RequestInit) => Promise<unknown>;
54
+ /**
55
+ * @summary Live SSE stream of session events — backlog from afterSequence, then live tail. Same wire shape as /timeline; reuse a single mapper on the FE.
56
+ */
57
+ export declare const getSessionsControllerStreamEventsUrl: (id: string, params?: SessionsControllerStreamEventsParams) => string;
58
+ export declare const sessionsControllerStreamEvents: (id: string, params?: SessionsControllerStreamEventsParams, options?: RequestInit) => Promise<unknown>;
59
+ /**
60
+ * @summary Browse workspace file tree (scoped proxy with security boundary)
61
+ */
62
+ export declare const getSessionsControllerListFilesUrl: (id: string, params?: SessionsControllerListFilesParams) => string;
63
+ export declare const sessionsControllerListFiles: (id: string, params?: SessionsControllerListFilesParams, options?: RequestInit) => Promise<unknown>;
64
+ /**
65
+ * @summary Read file content from workspace (scoped proxy, deny list enforced, 1MB limit)
66
+ */
67
+ export declare const getSessionsControllerReadFileUrl: (id: string, filePath: unknown) => string;
68
+ export declare const sessionsControllerReadFile: (id: string, filePath: unknown, options?: RequestInit) => Promise<unknown>;
69
+ /**
70
+ * @summary Document Buddy up-channel — stream a user editor edit into the document working file. The new base content is 3-way merged against the agent's working copy: the user edit folds into the accepted base, non-colliding agent suggestions survive, and agent hunks on the same lines are marked STALE (the user always wins). No turn gate.
71
+ */
72
+ export declare const getSessionsControllerPushDocumentEditUrl: (id: string) => string;
73
+ export declare const sessionsControllerPushDocumentEdit: (id: string, pushDocumentEditDto: PushDocumentEditDto, options?: RequestInit) => Promise<unknown>;
74
+ /**
75
+ * @summary Document Buddy — re-materialize the worker's document working file from knowledge-base-api after a patch decision (accept / reject). The frontend calls this best-effort once a decision succeeds so a discarded hunk's text actually leaves the worker file. A paused session returns `resynced: false` — its file re-materializes on resume.
76
+ */
77
+ export declare const getSessionsControllerResyncDocumentUrl: (id: string) => string;
78
+ export declare const sessionsControllerResyncDocument: (id: string, options?: RequestInit) => Promise<unknown>;
79
+ /**
80
+ * @summary Switch a session's model/provider override. Picks up on the NEXT user message — no worker restart. Send `selection: null` to clear the override and fall back to the agent's default modelClass strategy. Rejected for terminal sessions (completed/failed/archived).
81
+ */
82
+ export declare const getSessionsControllerChangeModelUrl: (id: string) => string;
83
+ export declare const sessionsControllerChangeModel: (id: string, changeSessionModelDto: ChangeSessionModelDto, options?: RequestInit) => Promise<unknown>;
84
+ /**
85
+ * @summary Replace a session's MCP tool selection. Takes a flat list of ToolSelectionEntry (provider-kind references + optional toolName for narrow selections). Each entry is tenancy-validated against the session's (orgId, projectId) BEFORE the column is written; cross-org references fail with 403. Phase D: applies HOT — the resolved `mcpServers` map is merged into the recomposed opencode.jsonc and pushed via `PUT /control/session-bundle`, triggering one opencode restart per real change (no restart when the fingerprint matches). Returns 409 `session_busy` when the session has an in-flight turn — wait for the agent to finish and retry. Default selection is `[]` (OpenCode built-ins only baseline).
86
+ */
87
+ export declare const getSessionsControllerChangeToolsUrl: (id: string) => string;
88
+ export declare const sessionsControllerChangeTools: (id: string, changeSessionToolsDto: ChangeSessionToolsDto, options?: RequestInit) => Promise<unknown>;
89
+ /**
90
+ * @summary List the KB spaces and per-space page selections currently mounted into this session's `/workspace/references/kb/` tree. Empty arrays on a session that has never set a selection.
91
+ */
92
+ export declare const getSessionsControllerListKbMountsUrl: (id: string) => string;
93
+ export declare const sessionsControllerListKbMounts: (id: string, options?: RequestInit) => Promise<KbMountsResponseDtoDataEnvelope>;
94
+ /**
95
+ * @summary Full-replace the session’s KB mount selection. Both `spaceIds` and `pageMounts` are total sets — the persisted selection is overwritten. If the session has a live worker, the workspace references slot is atomically re-applied so the agent sees the change on its next turn. If the session is paused, the change is persisted and materialized on the next resume. To clear all KB mounts, send `{ spaceIds: [], pageMounts: [] }`.
96
+ */
97
+ export declare const getSessionsControllerUpdateKbMountsUrl: (id: string) => string;
98
+ export declare const sessionsControllerUpdateKbMounts: (id: string, updateKbMountsDto: UpdateKbMountsDto, options?: RequestInit) => Promise<KbMountsResponseDtoDataEnvelope>;
99
+ /**
100
+ * @summary Pause session — snapshot to MinIO, release worker. Requires turnState=idle.
101
+ */
102
+ export declare const getSessionsControllerPauseUrl: (id: string) => string;
103
+ export declare const sessionsControllerPause: (id: string, options?: RequestInit) => Promise<unknown>;
104
+ /**
105
+ * @summary Resume paused session — acquire worker, restore snapshot. Pass `agentSlugOverride` to recover a session whose primary agent was removed.
106
+ */
107
+ export declare const getSessionsControllerResumeUrl: (id: string) => string;
108
+ export declare const sessionsControllerResume: (id: string, resumeSessionDto: ResumeSessionDto, options?: RequestInit) => Promise<unknown>;
109
+ /**
110
+ * @summary Trigger OpenCode-native conversation compaction. Auto-resumes paused sessions. The summary lands as a new assistant message inside OpenCode and `session.compacted` fires, which the event-bridge relays — `Session.contextWindowSnapshot` is reset to zeros and the FE chip drops via SSE without polling. Auto-compact still runs inside OpenCode on overflow independently of this endpoint.
111
+ */
112
+ export declare const getSessionsControllerCompactUrl: (id: string) => string;
113
+ export declare const sessionsControllerCompact: (id: string, options?: RequestInit) => Promise<unknown>;
114
+ /**
115
+ * @summary Archive session — deletes the MinIO snapshot and the `xema/session/<id>` branches on each DELIVERABLE repo, releases any active worker, and transitions the row to status=archived. Idempotent: a call against an already-archived session returns the prior archivedAt without re-running cleanup. Distinct from `/pause`: pause preserves state for resume; archive throws it away.
116
+ */
117
+ export declare const getSessionsControllerArchiveUrl: (id: string) => string;
118
+ export declare const sessionsControllerArchive: (id: string, options?: RequestInit) => Promise<unknown>;
119
+ /**
120
+ * @summary Add reference-class attachment to session (kb_page / org_document / internal_url / repo_ref)
121
+ */
122
+ export declare const getSessionsControllerAddAttachmentUrl: (id: string) => string;
123
+ export declare const sessionsControllerAddAttachment: (id: string, addAttachmentDto: AddAttachmentDto, options?: RequestInit) => Promise<AttachmentResponseDtoDataEnvelope>;
124
+ /**
125
+ * @summary List session attachments
126
+ */
127
+ export declare const getSessionsControllerListAttachmentsUrl: (id: string) => string;
128
+ export declare const sessionsControllerListAttachments: (id: string, options?: RequestInit) => Promise<AttachmentResponseDtoDataArrayEnvelope>;
129
+ /**
130
+ * @summary Remove attachment from session
131
+ */
132
+ export declare const getSessionsControllerRemoveAttachmentUrl: (id: string, attachmentId: string) => string;
133
+ export declare const sessionsControllerRemoveAttachment: (id: string, attachmentId: string, options?: RequestInit) => Promise<unknown>;
134
+ /**
135
+ * @summary Initiate a direct-to-blob upload for a file attachment. Returns a short-lived presigned URL the browser uses to PUT the bytes straight to object storage; session-api never sees the buffer.
136
+ */
137
+ export declare const getSessionsControllerInitAttachmentUploadUrl: (id: string) => string;
138
+ export declare const sessionsControllerInitAttachmentUpload: (id: string, initAttachmentUploadDto: InitAttachmentUploadDto, options?: RequestInit) => Promise<AttachmentUploadInitResponseDtoDataEnvelope>;
139
+ /**
140
+ * @summary Finalise a SAS upload. Verifies the blob landed in storage, flips the attachment to ready, and projects the file into the live workspace via the workspace-proxy SAS-pull endpoint so the agent sees it immediately.
141
+ */
142
+ export declare const getSessionsControllerCompleteAttachmentUploadUrl: (id: string, attachmentId: string) => string;
143
+ export declare const sessionsControllerCompleteAttachmentUpload: (id: string, attachmentId: string, options?: RequestInit) => Promise<AttachmentResponseDtoDataEnvelope>;
144
+ /**
145
+ * @summary Get session token usage and budget status
146
+ */
147
+ export declare const getSessionsControllerGetUsageUrl: (id: string) => string;
148
+ export declare const sessionsControllerGetUsage: (id: string, options?: RequestInit) => Promise<UsageResponseDtoDataEnvelope>;
149
+ /**
150
+ * @summary Per-session MCP tool-usage counters (Phase E telemetry). Returns one row per (mcpServiceSlug, command) tuple, sorted by count desc. Counters live in Redis with a 30-day TTL; an unreachable telemetry store yields an empty list plus a `warning` string instead of an error — the read is debug-grade and never blocks the UI.
151
+ */
152
+ export declare const getSessionsControllerGetToolUsageUrl: (id: string) => string;
153
+ export declare const sessionsControllerGetToolUsage: (id: string, options?: RequestInit) => Promise<ToolUsageResponseDtoDataEnvelope>;
154
+ /**
155
+ * @summary Create or switch git branch. Requires turnState=idle.
156
+ */
157
+ export declare const getSessionsControllerCreateBranchUrl: (id: string) => string;
158
+ export declare const sessionsControllerCreateBranch: (id: string, options?: RequestInit) => Promise<unknown>;
159
+ /**
160
+ * @summary Get git status (modified, staged, branch)
161
+ */
162
+ export declare const getSessionsControllerGetGitStatusUrl: (id: string) => string;
163
+ export declare const sessionsControllerGetGitStatus: (id: string, options?: RequestInit) => Promise<GitStatusResponseDtoDataEnvelope>;
164
+ /**
165
+ * @summary Get git diff (staged or unstaged). When `path` is provided, the diff is scoped to that single file — used by the UI to render a per-file diff viewer on top of the changed-files panel.
166
+ */
167
+ export declare const getSessionsControllerGetGitDiffUrl: (id: string, params?: SessionsControllerGetGitDiffParams) => string;
168
+ export declare const sessionsControllerGetGitDiff: (id: string, params?: SessionsControllerGetGitDiffParams, options?: RequestInit) => Promise<unknown>;
169
+ /**
170
+ * @summary Commit changes. Author=user, co-author=agent. Requires turnState=idle.
171
+ */
172
+ export declare const getSessionsControllerGitCommitUrl: (id: string) => string;
173
+ export declare const sessionsControllerGitCommit: (id: string, options?: RequestInit) => Promise<GitCommitResponseDtoDataEnvelope>;
174
+ /**
175
+ * @summary Push to remote. Requires turnState=idle.
176
+ */
177
+ export declare const getSessionsControllerGitPushUrl: (id: string) => string;
178
+ export declare const sessionsControllerGitPush: (id: string, options?: RequestInit) => Promise<unknown>;
179
+ /**
180
+ * @summary Create pull request from session branch
181
+ */
182
+ export declare const getSessionsControllerCreatePullRequestUrl: (id: string) => string;
183
+ export declare const sessionsControllerCreatePullRequest: (id: string, options?: RequestInit) => Promise<PullRequestResponseDtoDataEnvelope>;
184
+ /**
185
+ * @summary Get commit history for session branch
186
+ */
187
+ export declare const getSessionsControllerGetCommitHistoryUrl: (id: string, params?: SessionsControllerGetCommitHistoryParams) => string;
188
+ export declare const sessionsControllerGetCommitHistory: (id: string, params?: SessionsControllerGetCommitHistoryParams, options?: RequestInit) => Promise<GitCommitEntryDtoDataArrayEnvelope>;
189
+ /**
190
+ * @summary Check if the session branch can merge cleanly into the target branch. Uses git merge-tree (no workspace mutation).
191
+ */
192
+ export declare const getSessionsControllerMergeCheckUrl: (id: string, params?: SessionsControllerMergeCheckParams) => string;
193
+ export declare const sessionsControllerMergeCheck: (id: string, params?: SessionsControllerMergeCheckParams, options?: RequestInit) => Promise<MergeCheckResponseDtoDataEnvelope>;
194
+ /**
195
+ * @summary Push content to knowledge base as a new or updated page
196
+ */
197
+ export declare const getSessionsControllerPushToKBUrl: (id: string) => string;
198
+ export declare const sessionsControllerPushToKB: (id: string, options?: RequestInit) => Promise<KBPushResponseDtoDataEnvelope>;
199
+ /**
200
+ * @summary Create a session template
201
+ */
202
+ export declare const getSessionsControllerCreateTemplateUrl: () => string;
203
+ export declare const sessionsControllerCreateTemplate: (options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
204
+ /**
205
+ * @summary List session templates
206
+ */
207
+ export declare const getSessionsControllerListTemplatesUrl: (params?: SessionsControllerListTemplatesParams) => string;
208
+ export declare const sessionsControllerListTemplates: (params?: SessionsControllerListTemplatesParams, options?: RequestInit) => Promise<TemplateResponseDtoPaginatedEnvelope>;
209
+ /**
210
+ * @summary Get template by ID
211
+ */
212
+ export declare const getSessionsControllerGetTemplateUrl: (templateId: string) => string;
213
+ export declare const sessionsControllerGetTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
214
+ /**
215
+ * @summary Update a session template
216
+ */
217
+ export declare const getSessionsControllerUpdateTemplateUrl: (templateId: string) => string;
218
+ export declare const sessionsControllerUpdateTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
219
+ /**
220
+ * @summary Delete a session template
221
+ */
222
+ export declare const getSessionsControllerDeleteTemplateUrl: (templateId: string) => string;
223
+ export declare const sessionsControllerDeleteTemplate: (templateId: string, options?: RequestInit) => Promise<unknown>;
224
+ /**
225
+ * @summary Clone a session template
226
+ */
227
+ export declare const getSessionsControllerCloneTemplateUrl: (templateId: string) => string;
228
+ export declare const sessionsControllerCloneTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
229
+ /**
230
+ * @summary Generate a read-only sharing link for the session
231
+ */
232
+ export declare const getSessionsControllerCreateShareUrl: (id: string) => string;
233
+ export declare const sessionsControllerCreateShare: (id: string, options?: RequestInit) => Promise<ShareResponseDtoDataEnvelope>;
234
+ /**
235
+ * @summary Start a Kaniko-based container-image build for the session's primary repo HEAD. Dispatches `buildContainerImageWorkflow` on the xema-platform-worker. Idempotent per (sessionId, sha): a duplicate call returns the existing run id. Only standard interactive sessions can build — pipeline + sandbox sessions are rejected.
236
+ */
237
+ export declare const getBuildImageControllerStartUrl: (id: string) => string;
238
+ export declare const buildImageControllerStart: (id: string, startBuildImageDto: StartBuildImageDto, options?: RequestInit) => Promise<BuildImageStartedResponseDtoDataEnvelope>;
239
+ /**
240
+ * @summary Describe a previously-started build-image workflow. The FE polls this to flip the button between Building… / Completed / Failed.
241
+ */
242
+ export declare const getBuildImageControllerStatusUrl: (id: string, workflowId: string) => string;
243
+ export declare const buildImageControllerStatus: (id: string, workflowId: string, options?: RequestInit) => Promise<BuildImageStatusResponseDtoDataEnvelope>;