@xemahq/agent-session-api-client 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/LICENSE +175 -201
  2. package/README.md +62 -0
  3. package/dist/custom-fetch.d.ts +1 -1
  4. package/dist/custom-fetch.js +1 -1
  5. package/dist/endpoints/output-surface-inspect/output-surface-inspect.d.ts +3 -3
  6. package/dist/endpoints/output-surface-inspect/output-surface-inspect.js +6 -6
  7. package/dist/endpoints/output-surfaces/output-surfaces.d.ts +8 -8
  8. package/dist/endpoints/output-surfaces/output-surfaces.js +21 -21
  9. package/dist/endpoints/sandbox-sessions/sandbox-sessions.d.ts +8 -8
  10. package/dist/endpoints/sandbox-sessions/sandbox-sessions.js +21 -21
  11. package/dist/endpoints/session-attachments/session-attachments.d.ts +4 -4
  12. package/dist/endpoints/session-attachments/session-attachments.js +9 -9
  13. package/dist/endpoints/session-blob-attachments/session-blob-attachments.d.ts +2 -2
  14. package/dist/endpoints/session-blob-attachments/session-blob-attachments.js +3 -3
  15. package/dist/endpoints/session-participants/session-participants.d.ts +5 -5
  16. package/dist/endpoints/session-participants/session-participants.js +12 -12
  17. package/dist/endpoints/sessions/sessions.d.ts +60 -50
  18. package/dist/endpoints/sessions/sessions.js +177 -143
  19. package/dist/endpoints/threads/threads.d.ts +9 -9
  20. package/dist/endpoints/threads/threads.js +24 -24
  21. package/dist/index.d.ts +0 -3
  22. package/dist/index.js +1 -4
  23. package/dist/models/addAttachmentDto.d.ts +2 -2
  24. package/dist/models/attachSkillDto.d.ts +1 -1
  25. package/dist/models/attachSkillDto.js +1 -1
  26. package/dist/models/attachmentClass.d.ts +1 -1
  27. package/dist/models/attachmentClass.js +1 -1
  28. package/dist/models/attachmentResponseDto.d.ts +3 -3
  29. package/dist/models/attachmentResponseDtoDataArrayEnvelope.d.ts +2 -2
  30. package/dist/models/attachmentResponseDtoDataEnvelope.d.ts +2 -2
  31. package/dist/models/attachmentUploadInitResponseDto.d.ts +2 -2
  32. package/dist/models/attachmentUploadInitResponseDtoDataEnvelope.d.ts +2 -2
  33. package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.d.ts +1 -1
  34. package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.js +1 -1
  35. package/dist/models/branchStrategy.d.ts +1 -1
  36. package/dist/models/branchStrategy.js +1 -1
  37. package/dist/models/buildImageResultDto.d.ts +1 -1
  38. package/dist/models/buildImageResultDto.js +1 -1
  39. package/dist/models/buildImageStartedResponseDto.d.ts +1 -1
  40. package/dist/models/buildImageStartedResponseDto.js +1 -1
  41. package/dist/models/buildImageStartedResponseDtoDataEnvelope.d.ts +2 -2
  42. package/dist/models/buildImageStatusResponseDto.d.ts +4 -4
  43. package/dist/models/buildImageStatusResponseDtoDataEnvelope.d.ts +2 -2
  44. package/dist/models/buildImageStatusResponseDtoFailureMessage.d.ts +1 -1
  45. package/dist/models/buildImageStatusResponseDtoFailureMessage.js +1 -1
  46. package/dist/models/buildImageStatusResponseDtoStatus.d.ts +1 -1
  47. package/dist/models/buildImageStatusResponseDtoStatus.js +1 -1
  48. package/dist/models/changeSessionInstructionsDto.d.ts +16 -0
  49. package/dist/models/changeSessionInstructionsDto.js +2 -0
  50. package/dist/models/changeSessionInstructionsDtoInstructions.d.ts +15 -0
  51. package/dist/models/changeSessionInstructionsDtoInstructions.js +9 -0
  52. package/dist/models/changeSessionModelDto.d.ts +2 -2
  53. package/dist/models/changeSessionModelDtoSelection.d.ts +1 -1
  54. package/dist/models/changeSessionModelDtoSelection.js +1 -1
  55. package/dist/models/changeSessionPermissionDto.d.ts +15 -0
  56. package/dist/models/changeSessionPermissionDto.js +2 -0
  57. package/dist/models/changeSessionPermissionDtoPermission.d.ts +14 -0
  58. package/dist/models/changeSessionPermissionDtoPermission.js +9 -0
  59. package/dist/models/changeSessionToolsDto.d.ts +3 -3
  60. package/dist/models/createSandboxSessionDto.d.ts +3 -3
  61. package/dist/models/createSessionDto.d.ts +44 -0
  62. package/dist/models/createSessionDto.js +2 -0
  63. package/dist/models/createSessionDtoCustomConfig.d.ts +13 -0
  64. package/dist/models/createSessionDtoCustomConfig.js +9 -0
  65. package/dist/models/createThreadDto.d.ts +1 -1
  66. package/dist/models/createThreadDto.js +1 -1
  67. package/dist/models/environmentDriftDetectedPayloadDto.d.ts +2 -2
  68. package/dist/models/environmentDriftEntryDto.d.ts +3 -3
  69. package/dist/models/environmentDriftEntryDtoAfter.d.ts +1 -1
  70. package/dist/models/environmentDriftEntryDtoAfter.js +1 -1
  71. package/dist/models/environmentDriftEntryDtoBefore.d.ts +1 -1
  72. package/dist/models/environmentDriftEntryDtoBefore.js +1 -1
  73. package/dist/models/errorDetailsDto.d.ts +2 -2
  74. package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
  75. package/dist/models/errorDetailsDtoDetails.js +1 -1
  76. package/dist/models/errorPayloadDto.d.ts +2 -2
  77. package/dist/models/errorResponseDto.d.ts +2 -2
  78. package/dist/models/externalInviteDeliveryMode.d.ts +1 -1
  79. package/dist/models/externalInviteDeliveryMode.js +1 -1
  80. package/dist/models/gitCommitEntryDto.d.ts +1 -1
  81. package/dist/models/gitCommitEntryDto.js +1 -1
  82. package/dist/models/gitCommitEntryDtoDataArrayEnvelope.d.ts +2 -2
  83. package/dist/models/gitCommitResponseDto.d.ts +1 -1
  84. package/dist/models/gitCommitResponseDto.js +1 -1
  85. package/dist/models/gitCommitResponseDtoDataEnvelope.d.ts +2 -2
  86. package/dist/models/gitStatusResponseDto.d.ts +2 -2
  87. package/dist/models/gitStatusResponseDtoDataEnvelope.d.ts +2 -2
  88. package/dist/models/index.d.ts +8 -13
  89. package/dist/models/index.js +8 -13
  90. package/dist/models/initAttachmentUploadDto.d.ts +1 -1
  91. package/dist/models/initAttachmentUploadDto.js +1 -1
  92. package/dist/models/inspectStepResultDto.d.ts +4 -4
  93. package/dist/models/inspectStepResultDtoData.d.ts +1 -1
  94. package/dist/models/inspectStepResultDtoData.js +1 -1
  95. package/dist/models/inspectStepResultDtoKind.d.ts +1 -1
  96. package/dist/models/inspectStepResultDtoKind.js +1 -1
  97. package/dist/models/inspectStepResultDtoStatus.d.ts +1 -1
  98. package/dist/models/inspectStepResultDtoStatus.js +1 -1
  99. package/dist/models/invitableParticipantRole.d.ts +1 -1
  100. package/dist/models/invitableParticipantRole.js +1 -1
  101. package/dist/models/inviteExternalDto.d.ts +3 -3
  102. package/dist/models/inviteParticipantDto.d.ts +2 -2
  103. package/dist/models/invitedExternalParticipantResponseDto.d.ts +1 -1
  104. package/dist/models/invitedExternalParticipantResponseDto.js +1 -1
  105. package/dist/models/invitedExternalParticipantResponseDtoDataEnvelope.d.ts +2 -2
  106. package/dist/models/kBPushResponseDto.d.ts +1 -1
  107. package/dist/models/kBPushResponseDto.js +1 -1
  108. package/dist/models/kBPushResponseDtoDataEnvelope.d.ts +2 -2
  109. package/dist/models/kbMountsResponseDto.d.ts +2 -2
  110. package/dist/models/kbMountsResponseDtoDataEnvelope.d.ts +2 -2
  111. package/dist/models/kbPageMountDto.d.ts +1 -1
  112. package/dist/models/kbPageMountDto.js +1 -1
  113. package/dist/models/listSessionParticipantsResponseDto.d.ts +2 -2
  114. package/dist/models/listSessionParticipantsResponseDtoDataEnvelope.d.ts +2 -2
  115. package/dist/models/mergeCheckResponseDto.d.ts +1 -1
  116. package/dist/models/mergeCheckResponseDto.js +1 -1
  117. package/dist/models/mergeCheckResponseDtoDataEnvelope.d.ts +2 -2
  118. package/dist/models/messageResponseDto.d.ts +3 -3
  119. package/dist/models/messageResponseDtoMetadata.d.ts +1 -1
  120. package/dist/models/messageResponseDtoMetadata.js +1 -1
  121. package/dist/models/messageResponseDtoPaginatedEnvelope.d.ts +3 -3
  122. package/dist/models/outputSurfaceAppResponseDto.d.ts +3 -3
  123. package/dist/models/outputSurfaceAppResponseDtoDataArrayEnvelope.d.ts +2 -2
  124. package/dist/models/outputSurfaceAppResponseDtoDataEnvelope.d.ts +2 -2
  125. package/dist/models/outputSurfaceAppStatus.d.ts +1 -1
  126. package/dist/models/outputSurfaceAppStatus.js +1 -1
  127. package/dist/models/outputSurfaceControllerRestartParams.d.ts +2 -2
  128. package/dist/models/outputSurfaceControllerScanParams.d.ts +2 -2
  129. package/dist/models/outputSurfaceRemediationKindInput.d.ts +1 -1
  130. package/dist/models/outputSurfaceRemediationKindInput.js +1 -1
  131. package/dist/models/outputSurfaceRestartMode.d.ts +1 -1
  132. package/dist/models/outputSurfaceRestartMode.js +1 -1
  133. package/dist/models/paginationMeta.d.ts +1 -1
  134. package/dist/models/paginationMeta.js +1 -1
  135. package/dist/models/participantRole.d.ts +1 -1
  136. package/dist/models/participantRole.js +1 -1
  137. package/dist/models/participantSubjectKind.d.ts +1 -1
  138. package/dist/models/participantSubjectKind.js +1 -1
  139. package/dist/models/projectKind.d.ts +1 -1
  140. package/dist/models/projectKind.js +1 -1
  141. package/dist/models/providerEntryDto.d.ts +3 -3
  142. package/dist/models/providerEntryDtoKind.d.ts +1 -1
  143. package/dist/models/providerEntryDtoKind.js +1 -1
  144. package/dist/models/pullRequestResponseDto.d.ts +2 -2
  145. package/dist/models/pullRequestResponseDtoDataEnvelope.d.ts +2 -2
  146. package/dist/models/pullRequestResponseDtoPrUrl.d.ts +1 -1
  147. package/dist/models/pullRequestResponseDtoPrUrl.js +1 -1
  148. package/dist/models/pushDocumentEditDto.d.ts +1 -1
  149. package/dist/models/pushDocumentEditDto.js +1 -1
  150. package/dist/models/reasoningDeltaPayloadDto.d.ts +1 -1
  151. package/dist/models/reasoningDeltaPayloadDto.js +1 -1
  152. package/dist/models/referenceAttachmentClass.d.ts +1 -1
  153. package/dist/models/referenceAttachmentClass.js +1 -1
  154. package/dist/models/remediateOutputSurfaceDto.d.ts +2 -2
  155. package/dist/models/remediateOutputSurfaceResponseDto.d.ts +1 -1
  156. package/dist/models/remediateOutputSurfaceResponseDto.js +1 -1
  157. package/dist/models/remediateOutputSurfaceResponseDtoDataEnvelope.d.ts +2 -2
  158. package/dist/models/repoGitStatusDto.d.ts +2 -2
  159. package/dist/models/repoRole.d.ts +1 -1
  160. package/dist/models/repoRole.js +1 -1
  161. package/dist/models/reportInspectPresenceDto.d.ts +3 -3
  162. package/dist/models/reportInspectPresenceDtoKind.d.ts +1 -1
  163. package/dist/models/reportInspectPresenceDtoKind.js +1 -1
  164. package/dist/models/reportInspectPresenceDtoReason.d.ts +1 -1
  165. package/dist/models/reportInspectPresenceDtoReason.js +1 -1
  166. package/dist/models/reportInspectResultDto.d.ts +2 -2
  167. package/dist/models/resumeSessionDto.d.ts +1 -1
  168. package/dist/models/resumeSessionDto.js +1 -1
  169. package/dist/models/rotateTokenResponseDto.d.ts +1 -1
  170. package/dist/models/rotateTokenResponseDto.js +1 -1
  171. package/dist/models/rotateTokenResponseDtoDataEnvelope.d.ts +2 -2
  172. package/dist/models/runSandboxEvalTurnDto.d.ts +1 -1
  173. package/dist/models/runSandboxEvalTurnDto.js +1 -1
  174. package/dist/models/sandboxEvalTurnResultDto.d.ts +1 -1
  175. package/dist/models/sandboxEvalTurnResultDto.js +1 -1
  176. package/dist/models/sandboxEvalTurnResultDtoDataEnvelope.d.ts +2 -2
  177. package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.d.ts +1 -1
  178. package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.js +1 -1
  179. package/dist/models/sandboxToolMockDto.d.ts +1 -1
  180. package/dist/models/sandboxToolMockDto.js +1 -1
  181. package/dist/models/sandboxToolMocksResponseDto.d.ts +1 -1
  182. package/dist/models/sandboxToolMocksResponseDto.js +1 -1
  183. package/dist/models/sandboxToolMocksResponseDtoDataEnvelope.d.ts +2 -2
  184. package/dist/models/sessionAttachmentStatus.d.ts +1 -1
  185. package/dist/models/sessionAttachmentStatus.js +1 -1
  186. package/dist/models/sessionBlobAttachmentDto.d.ts +2 -2
  187. package/dist/models/sessionBlobAttachmentDtoDataArrayEnvelope.d.ts +2 -2
  188. package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.d.ts +1 -1
  189. package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.js +1 -1
  190. package/dist/models/sessionContextWindowSnapshotDto.d.ts +1 -1
  191. package/dist/models/sessionContextWindowSnapshotDto.js +1 -1
  192. package/dist/models/sessionDebugCompositionNodeDto.d.ts +1 -1
  193. package/dist/models/sessionDebugCompositionNodeDto.js +1 -1
  194. package/dist/models/sessionDebugInfoDto.d.ts +7 -7
  195. package/dist/models/sessionDebugInfoDtoDataEnvelope.d.ts +2 -2
  196. package/dist/models/sessionDebugInfoDtoMountPlan.d.ts +1 -1
  197. package/dist/models/sessionDebugInfoDtoMountPlan.js +1 -1
  198. package/dist/models/sessionDebugModelDecisionDto.d.ts +1 -1
  199. package/dist/models/sessionDebugModelDecisionDto.js +1 -1
  200. package/dist/models/sessionDebugSkillDto.d.ts +2 -2
  201. package/dist/models/sessionDebugSkillDtoSnapshot.d.ts +1 -1
  202. package/dist/models/sessionDebugSkillDtoSnapshot.js +1 -1
  203. package/dist/models/sessionKind.d.ts +1 -1
  204. package/dist/models/sessionKind.js +1 -1
  205. package/dist/models/sessionLayer.d.ts +17 -0
  206. package/dist/models/sessionLayer.js +16 -0
  207. package/dist/models/sessionLockfileDto.d.ts +7 -7
  208. package/dist/models/sessionLockfileDtoAgents.d.ts +1 -1
  209. package/dist/models/sessionLockfileDtoAgents.js +1 -1
  210. package/dist/models/sessionLockfileDtoBiomes.d.ts +1 -1
  211. package/dist/models/sessionLockfileDtoBiomes.js +1 -1
  212. package/dist/models/sessionLockfileDtoCapabilities.d.ts +1 -1
  213. package/dist/models/sessionLockfileDtoCapabilities.js +1 -1
  214. package/dist/models/sessionLockfileDtoDataEnvelope.d.ts +2 -2
  215. package/dist/models/sessionLockfileDtoDeliverableSpecs.d.ts +1 -1
  216. package/dist/models/sessionLockfileDtoDeliverableSpecs.js +1 -1
  217. package/dist/models/sessionLockfileDtoSkills.d.ts +1 -1
  218. package/dist/models/sessionLockfileDtoSkills.js +1 -1
  219. package/dist/models/sessionLockfileDtoWorkflows.d.ts +1 -1
  220. package/dist/models/sessionLockfileDtoWorkflows.js +1 -1
  221. package/dist/models/sessionMessageRole.d.ts +1 -1
  222. package/dist/models/sessionMessageRole.js +1 -1
  223. package/dist/models/sessionParticipantDto.d.ts +3 -3
  224. package/dist/models/sessionParticipantDtoDataEnvelope.d.ts +2 -2
  225. package/dist/models/sessionPauseReason.d.ts +1 -1
  226. package/dist/models/sessionPauseReason.js +1 -1
  227. package/dist/models/sessionProvisioningPhase.d.ts +1 -1
  228. package/dist/models/sessionProvisioningPhase.js +1 -1
  229. package/dist/models/sessionResponseDto.d.ts +13 -13
  230. package/dist/models/sessionResponseDtoDataEnvelope.d.ts +2 -2
  231. package/dist/models/sessionResponseDtoFailureMetaJson.d.ts +1 -1
  232. package/dist/models/sessionResponseDtoFailureMetaJson.js +1 -1
  233. package/dist/models/sessionResponseDtoHandoffOutput.d.ts +1 -1
  234. package/dist/models/sessionResponseDtoHandoffOutput.js +1 -1
  235. package/dist/models/sessionResponseDtoModelSelection.d.ts +1 -1
  236. package/dist/models/sessionResponseDtoModelSelection.js +1 -1
  237. package/dist/models/sessionResponseDtoPaginatedEnvelope.d.ts +3 -3
  238. package/dist/models/sessionResponseDtoToolSelectionItem.d.ts +1 -1
  239. package/dist/models/sessionResponseDtoToolSelectionItem.js +1 -1
  240. package/dist/models/sessionStatus.d.ts +1 -1
  241. package/dist/models/sessionStatus.js +1 -1
  242. package/dist/models/sessionTimelineEntryDto.d.ts +3 -3
  243. package/dist/models/sessionTimelineEntryDtoEventType.d.ts +1 -1
  244. package/dist/models/sessionTimelineEntryDtoEventType.js +1 -1
  245. package/dist/models/sessionTimelineEntryDtoPayload.d.ts +5 -5
  246. package/dist/models/sessionTimelinePageDto.d.ts +2 -2
  247. package/dist/models/sessionTimelinePageDtoDataEnvelope.d.ts +2 -2
  248. package/dist/models/sessionTokenUsageDto.d.ts +1 -1
  249. package/dist/models/sessionTokenUsageDto.js +1 -1
  250. package/dist/models/sessionsControllerGetCommitHistoryParams.d.ts +1 -1
  251. package/dist/models/sessionsControllerGetCommitHistoryParams.js +1 -1
  252. package/dist/models/sessionsControllerGetGitDiffParams.d.ts +1 -1
  253. package/dist/models/sessionsControllerGetGitDiffParams.js +1 -1
  254. package/dist/models/sessionsControllerListFilesParams.d.ts +1 -1
  255. package/dist/models/sessionsControllerListFilesParams.js +1 -1
  256. package/dist/models/sessionsControllerListParams.d.ts +1 -1
  257. package/dist/models/sessionsControllerListParams.js +1 -1
  258. package/dist/models/sessionsControllerListTemplatesParams.d.ts +1 -1
  259. package/dist/models/sessionsControllerListTemplatesParams.js +1 -1
  260. package/dist/models/sessionsControllerMergeCheckParams.d.ts +1 -1
  261. package/dist/models/sessionsControllerMergeCheckParams.js +1 -1
  262. package/dist/models/sessionsControllerStreamEventsParams.d.ts +1 -1
  263. package/dist/models/sessionsControllerStreamEventsParams.js +1 -1
  264. package/dist/models/setSandboxToolMocksDto.d.ts +2 -2
  265. package/dist/models/shareAccessLevel.d.ts +1 -1
  266. package/dist/models/shareAccessLevel.js +1 -1
  267. package/dist/models/shareResponseDto.d.ts +3 -3
  268. package/dist/models/shareResponseDtoDataEnvelope.d.ts +2 -2
  269. package/dist/models/shareResponseDtoExpiresAt.d.ts +1 -1
  270. package/dist/models/shareResponseDtoExpiresAt.js +1 -1
  271. package/dist/models/startBuildImageDto.d.ts +1 -1
  272. package/dist/models/startBuildImageDto.js +1 -1
  273. package/dist/models/templateResponseDto.d.ts +6 -6
  274. package/dist/models/templateResponseDtoBudgetLimit.d.ts +1 -1
  275. package/dist/models/templateResponseDtoBudgetLimit.js +1 -1
  276. package/dist/models/templateResponseDtoCustomConfig.d.ts +1 -1
  277. package/dist/models/templateResponseDtoCustomConfig.js +1 -1
  278. package/dist/models/templateResponseDtoDataEnvelope.d.ts +2 -2
  279. package/dist/models/templateResponseDtoDescription.d.ts +1 -1
  280. package/dist/models/templateResponseDtoDescription.js +1 -1
  281. package/dist/models/templateResponseDtoPaginatedEnvelope.d.ts +3 -3
  282. package/dist/models/templateResponseDtoRepositoryId.d.ts +1 -1
  283. package/dist/models/templateResponseDtoRepositoryId.js +1 -1
  284. package/dist/models/textDeltaPayloadDto.d.ts +1 -1
  285. package/dist/models/textDeltaPayloadDto.js +1 -1
  286. package/dist/models/threadResponseDto.d.ts +4 -4
  287. package/dist/models/threadResponseDtoDataArrayEnvelope.d.ts +2 -2
  288. package/dist/models/threadResponseDtoDataEnvelope.d.ts +2 -2
  289. package/dist/models/threadResponseDtoModelSelection.d.ts +1 -1
  290. package/dist/models/threadResponseDtoModelSelection.js +1 -1
  291. package/dist/models/threadStatus.d.ts +1 -1
  292. package/dist/models/threadStatus.js +1 -1
  293. package/dist/models/threadsControllerGetMessagesParams.d.ts +1 -1
  294. package/dist/models/threadsControllerGetMessagesParams.js +1 -1
  295. package/dist/models/threadsControllerGetTimelineParams.d.ts +1 -1
  296. package/dist/models/threadsControllerGetTimelineParams.js +1 -1
  297. package/dist/models/toolCallPayloadDto.d.ts +2 -2
  298. package/dist/models/toolCallPayloadDtoStatus.d.ts +1 -1
  299. package/dist/models/toolCallPayloadDtoStatus.js +1 -1
  300. package/dist/models/toolEntryDto.d.ts +3 -3
  301. package/dist/models/toolEntryDtoKind.d.ts +1 -1
  302. package/dist/models/toolEntryDtoKind.js +1 -1
  303. package/dist/models/toolProviderKind.d.ts +1 -1
  304. package/dist/models/toolProviderKind.js +1 -1
  305. package/dist/models/toolUsageEntryDto.d.ts +1 -1
  306. package/dist/models/toolUsageEntryDto.js +1 -1
  307. package/dist/models/toolUsageResponseDto.d.ts +2 -2
  308. package/dist/models/toolUsageResponseDtoDataEnvelope.d.ts +2 -2
  309. package/dist/models/turnState.d.ts +1 -1
  310. package/dist/models/turnState.js +1 -1
  311. package/dist/models/updateKbMountsDto.d.ts +2 -2
  312. package/dist/models/updateThreadDto.d.ts +2 -2
  313. package/dist/models/usageResponseDto.d.ts +3 -3
  314. package/dist/models/usageResponseDtoBudgetLimit.d.ts +1 -1
  315. package/dist/models/usageResponseDtoBudgetLimit.js +1 -1
  316. package/dist/models/usageResponseDtoBudgetRatio.d.ts +1 -1
  317. package/dist/models/usageResponseDtoBudgetRatio.js +1 -1
  318. package/dist/models/usageResponseDtoDataEnvelope.d.ts +2 -2
  319. package/dist/models/workerRuntimeKind.d.ts +17 -0
  320. package/dist/models/workerRuntimeKind.js +16 -0
  321. package/package.json +12 -2
@@ -1,243 +1,253 @@
1
1
  /**
2
- * Generated by orval v8.6.2 🍺
2
+ * Generated by orval v8.16.0 🍺
3
3
  * Do not edit manually.
4
4
  * Interactive Session API
5
5
  * Real-time interactive AI coding sessions with agent management, file browsing, and activity streaming
6
6
  * OpenAPI spec version: 0.1.0
7
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';
8
+ import type { AddAttachmentDto, AttachmentResponseDtoDataArrayEnvelope, AttachmentResponseDtoDataEnvelope, AttachmentUploadInitResponseDtoDataEnvelope, BuildImageStartedResponseDtoDataEnvelope, BuildImageStatusResponseDtoDataEnvelope, ChangeSessionInstructionsDto, ChangeSessionModelDto, ChangeSessionPermissionDto, ChangeSessionToolsDto, CreateSessionDto, 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
+ export declare const getSessionsControllerCreateUrl: () => string;
9
10
  /**
10
11
  * @summary Create a new agent session
11
12
  */
12
- export declare const getSessionsControllerCreateUrl: () => string;
13
- export declare const sessionsControllerCreate: (options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
13
+ export declare const sessionsControllerCreate: (createSessionDto: CreateSessionDto, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
14
+ export declare const getSessionsControllerListUrl: (params?: SessionsControllerListParams) => string;
14
15
  /**
15
16
  * @summary List sessions with pagination and filters
16
17
  */
17
- export declare const getSessionsControllerListUrl: (params?: SessionsControllerListParams) => string;
18
18
  export declare const sessionsControllerList: (params?: SessionsControllerListParams, options?: RequestInit) => Promise<SessionResponseDtoPaginatedEnvelope>;
19
+ export declare const getSessionsControllerForkUrl: (id: string) => string;
19
20
  /**
20
21
  * @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
  */
22
- export declare const getSessionsControllerForkUrl: (id: string) => string;
23
23
  export declare const sessionsControllerFork: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
24
+ export declare const getSessionsControllerGetByIdUrl: (id: string) => string;
24
25
  /**
25
26
  * @summary Get session detail
26
27
  */
27
- export declare const getSessionsControllerGetByIdUrl: (id: string) => string;
28
28
  export declare const sessionsControllerGetById: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
29
+ export declare const getSessionsControllerTerminateUrl: (id: string) => string;
29
30
  /**
30
31
  * @summary Terminate and archive a session
31
32
  */
32
- export declare const getSessionsControllerTerminateUrl: (id: string) => string;
33
33
  export declare const sessionsControllerTerminate: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
34
+ export declare const getSessionsControllerGetLockfileUrl: (id: string) => string;
34
35
  /**
35
36
  * @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
  */
37
- export declare const getSessionsControllerGetLockfileUrl: (id: string) => string;
38
38
  export declare const sessionsControllerGetLockfile: (id: string, options?: RequestInit) => Promise<SessionLockfileDtoDataEnvelope>;
39
+ export declare const getSessionsControllerTerminateByPipelineRunIdUrl: (pipelineRunId: string) => string;
39
40
  /**
40
41
  * @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
  */
42
- export declare const getSessionsControllerTerminateByPipelineRunIdUrl: (pipelineRunId: string) => string;
43
43
  export declare const sessionsControllerTerminateByPipelineRunId: (pipelineRunId: string, options?: RequestInit) => Promise<unknown>;
44
+ export declare const getSessionsControllerReplyToQuestionUrl: (id: string, requestId: string) => string;
44
45
  /**
45
46
  * @summary Reply to a question posed by the agent during a turn
46
47
  */
47
- export declare const getSessionsControllerReplyToQuestionUrl: (id: string, requestId: string) => string;
48
48
  export declare const sessionsControllerReplyToQuestion: (id: string, requestId: string, options?: RequestInit) => Promise<unknown>;
49
+ export declare const getSessionsControllerRejectQuestionUrl: (id: string, requestId: string) => string;
49
50
  /**
50
51
  * @summary Reject/dismiss a question posed by the agent during a turn
51
52
  */
52
- export declare const getSessionsControllerRejectQuestionUrl: (id: string, requestId: string) => string;
53
53
  export declare const sessionsControllerRejectQuestion: (id: string, requestId: string, options?: RequestInit) => Promise<unknown>;
54
+ export declare const getSessionsControllerStreamEventsUrl: (id: string, params?: SessionsControllerStreamEventsParams) => string;
54
55
  /**
55
56
  * @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
  */
57
- export declare const getSessionsControllerStreamEventsUrl: (id: string, params?: SessionsControllerStreamEventsParams) => string;
58
58
  export declare const sessionsControllerStreamEvents: (id: string, params?: SessionsControllerStreamEventsParams, options?: RequestInit) => Promise<unknown>;
59
+ export declare const getSessionsControllerListFilesUrl: (id: string, params?: SessionsControllerListFilesParams) => string;
59
60
  /**
60
61
  * @summary Browse workspace file tree (scoped proxy with security boundary)
61
62
  */
62
- export declare const getSessionsControllerListFilesUrl: (id: string, params?: SessionsControllerListFilesParams) => string;
63
63
  export declare const sessionsControllerListFiles: (id: string, params?: SessionsControllerListFilesParams, options?: RequestInit) => Promise<unknown>;
64
+ export declare const getSessionsControllerReadFileUrl: (id: string, filePath: unknown) => string;
64
65
  /**
65
66
  * @summary Read file content from workspace (scoped proxy, deny list enforced, 1MB limit)
66
67
  */
67
- export declare const getSessionsControllerReadFileUrl: (id: string, filePath: unknown) => string;
68
68
  export declare const sessionsControllerReadFile: (id: string, filePath: unknown, options?: RequestInit) => Promise<unknown>;
69
+ export declare const getSessionsControllerPushDocumentEditUrl: (id: string) => string;
69
70
  /**
70
71
  * @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
  */
72
- export declare const getSessionsControllerPushDocumentEditUrl: (id: string) => string;
73
73
  export declare const sessionsControllerPushDocumentEdit: (id: string, pushDocumentEditDto: PushDocumentEditDto, options?: RequestInit) => Promise<unknown>;
74
+ export declare const getSessionsControllerResyncDocumentUrl: (id: string) => string;
74
75
  /**
75
76
  * @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
  */
77
- export declare const getSessionsControllerResyncDocumentUrl: (id: string) => string;
78
78
  export declare const sessionsControllerResyncDocument: (id: string, options?: RequestInit) => Promise<unknown>;
79
+ export declare const getSessionsControllerChangeModelUrl: (id: string) => string;
79
80
  /**
80
81
  * @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
  */
82
- export declare const getSessionsControllerChangeModelUrl: (id: string) => string;
83
83
  export declare const sessionsControllerChangeModel: (id: string, changeSessionModelDto: ChangeSessionModelDto, options?: RequestInit) => Promise<unknown>;
84
+ export declare const getSessionsControllerChangeToolsUrl: (id: string) => string;
84
85
  /**
85
86
  * @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
  */
87
- export declare const getSessionsControllerChangeToolsUrl: (id: string) => string;
88
88
  export declare const sessionsControllerChangeTools: (id: string, changeSessionToolsDto: ChangeSessionToolsDto, options?: RequestInit) => Promise<unknown>;
89
+ export declare const getSessionsControllerChangeInstructionsUrl: (id: string) => string;
89
90
  /**
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
+ * @summary Set or clear the session-level instructions overlay (W4 for sessions). APPEND semantics: the text is appended AFTER the resolved primary system prompt + the composition's own root-node instructions. Send `instructions: null` (or omit) to clear it. Applies HOT via the same bundle rebuild path as model/tools (one opencode restart per real change; no-op when the fingerprint matches). Returns 409 `session_busy` during an in-flight turn; rejected for terminal sessions.
92
+ */
93
+ export declare const sessionsControllerChangeInstructions: (id: string, changeSessionInstructionsDto: ChangeSessionInstructionsDto, options?: RequestInit) => Promise<unknown>;
94
+ export declare const getSessionsControllerChangePermissionUrl: (id: string) => string;
95
+ /**
96
+ * @summary Set or clear a RESTRICT-only permission overlay for the session (W4 for sessions). The map narrows the resolved primary permission map at the runtime boundary — keys are members of the closed permission-key set and values are `ask` | `deny` (or a nested per-resource sub-map); `allow` is rejected (an overlay may only narrow, never grant). Send `permission: null` (or omit) to clear it. Applies HOT via the same bundle rebuild path as model/tools. Returns 409 `session_busy` during an in-flight turn; rejected for terminal sessions.
91
97
  */
98
+ export declare const sessionsControllerChangePermission: (id: string, changeSessionPermissionDto: ChangeSessionPermissionDto, options?: RequestInit) => Promise<unknown>;
92
99
  export declare const getSessionsControllerListKbMountsUrl: (id: string) => string;
100
+ /**
101
+ * @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.
102
+ */
93
103
  export declare const sessionsControllerListKbMounts: (id: string, options?: RequestInit) => Promise<KbMountsResponseDtoDataEnvelope>;
104
+ export declare const getSessionsControllerUpdateKbMountsUrl: (id: string) => string;
94
105
  /**
95
106
  * @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
107
  */
97
- export declare const getSessionsControllerUpdateKbMountsUrl: (id: string) => string;
98
108
  export declare const sessionsControllerUpdateKbMounts: (id: string, updateKbMountsDto: UpdateKbMountsDto, options?: RequestInit) => Promise<KbMountsResponseDtoDataEnvelope>;
109
+ export declare const getSessionsControllerPauseUrl: (id: string) => string;
99
110
  /**
100
111
  * @summary Pause session — snapshot to MinIO, release worker. Requires turnState=idle.
101
112
  */
102
- export declare const getSessionsControllerPauseUrl: (id: string) => string;
103
113
  export declare const sessionsControllerPause: (id: string, options?: RequestInit) => Promise<unknown>;
114
+ export declare const getSessionsControllerResumeUrl: (id: string) => string;
104
115
  /**
105
116
  * @summary Resume paused session — acquire worker, restore snapshot. Pass `agentSlugOverride` to recover a session whose primary agent was removed.
106
117
  */
107
- export declare const getSessionsControllerResumeUrl: (id: string) => string;
108
118
  export declare const sessionsControllerResume: (id: string, resumeSessionDto: ResumeSessionDto, options?: RequestInit) => Promise<unknown>;
119
+ export declare const getSessionsControllerCompactUrl: (id: string) => string;
109
120
  /**
110
121
  * @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
122
  */
112
- export declare const getSessionsControllerCompactUrl: (id: string) => string;
113
123
  export declare const sessionsControllerCompact: (id: string, options?: RequestInit) => Promise<unknown>;
124
+ export declare const getSessionsControllerArchiveUrl: (id: string) => string;
114
125
  /**
115
126
  * @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
127
  */
117
- export declare const getSessionsControllerArchiveUrl: (id: string) => string;
118
128
  export declare const sessionsControllerArchive: (id: string, options?: RequestInit) => Promise<unknown>;
129
+ export declare const getSessionsControllerAddAttachmentUrl: (id: string) => string;
119
130
  /**
120
131
  * @summary Add reference-class attachment to session (kb_page / org_document / internal_url / repo_ref)
121
132
  */
122
- export declare const getSessionsControllerAddAttachmentUrl: (id: string) => string;
123
133
  export declare const sessionsControllerAddAttachment: (id: string, addAttachmentDto: AddAttachmentDto, options?: RequestInit) => Promise<AttachmentResponseDtoDataEnvelope>;
134
+ export declare const getSessionsControllerListAttachmentsUrl: (id: string) => string;
124
135
  /**
125
136
  * @summary List session attachments
126
137
  */
127
- export declare const getSessionsControllerListAttachmentsUrl: (id: string) => string;
128
138
  export declare const sessionsControllerListAttachments: (id: string, options?: RequestInit) => Promise<AttachmentResponseDtoDataArrayEnvelope>;
139
+ export declare const getSessionsControllerRemoveAttachmentUrl: (id: string, attachmentId: string) => string;
129
140
  /**
130
141
  * @summary Remove attachment from session
131
142
  */
132
- export declare const getSessionsControllerRemoveAttachmentUrl: (id: string, attachmentId: string) => string;
133
143
  export declare const sessionsControllerRemoveAttachment: (id: string, attachmentId: string, options?: RequestInit) => Promise<unknown>;
144
+ export declare const getSessionsControllerInitAttachmentUploadUrl: (id: string) => string;
134
145
  /**
135
146
  * @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
147
  */
137
- export declare const getSessionsControllerInitAttachmentUploadUrl: (id: string) => string;
138
148
  export declare const sessionsControllerInitAttachmentUpload: (id: string, initAttachmentUploadDto: InitAttachmentUploadDto, options?: RequestInit) => Promise<AttachmentUploadInitResponseDtoDataEnvelope>;
149
+ export declare const getSessionsControllerCompleteAttachmentUploadUrl: (id: string, attachmentId: string) => string;
139
150
  /**
140
151
  * @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
152
  */
142
- export declare const getSessionsControllerCompleteAttachmentUploadUrl: (id: string, attachmentId: string) => string;
143
153
  export declare const sessionsControllerCompleteAttachmentUpload: (id: string, attachmentId: string, options?: RequestInit) => Promise<AttachmentResponseDtoDataEnvelope>;
154
+ export declare const getSessionsControllerGetUsageUrl: (id: string) => string;
144
155
  /**
145
156
  * @summary Get session token usage and budget status
146
157
  */
147
- export declare const getSessionsControllerGetUsageUrl: (id: string) => string;
148
158
  export declare const sessionsControllerGetUsage: (id: string, options?: RequestInit) => Promise<UsageResponseDtoDataEnvelope>;
159
+ export declare const getSessionsControllerGetToolUsageUrl: (id: string) => string;
149
160
  /**
150
161
  * @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
162
  */
152
- export declare const getSessionsControllerGetToolUsageUrl: (id: string) => string;
153
163
  export declare const sessionsControllerGetToolUsage: (id: string, options?: RequestInit) => Promise<ToolUsageResponseDtoDataEnvelope>;
164
+ export declare const getSessionsControllerCreateBranchUrl: (id: string) => string;
154
165
  /**
155
166
  * @summary Create or switch git branch. Requires turnState=idle.
156
167
  */
157
- export declare const getSessionsControllerCreateBranchUrl: (id: string) => string;
158
168
  export declare const sessionsControllerCreateBranch: (id: string, options?: RequestInit) => Promise<unknown>;
169
+ export declare const getSessionsControllerGetGitStatusUrl: (id: string) => string;
159
170
  /**
160
171
  * @summary Get git status (modified, staged, branch)
161
172
  */
162
- export declare const getSessionsControllerGetGitStatusUrl: (id: string) => string;
163
173
  export declare const sessionsControllerGetGitStatus: (id: string, options?: RequestInit) => Promise<GitStatusResponseDtoDataEnvelope>;
174
+ export declare const getSessionsControllerGetGitDiffUrl: (id: string, params?: SessionsControllerGetGitDiffParams) => string;
164
175
  /**
165
176
  * @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
177
  */
167
- export declare const getSessionsControllerGetGitDiffUrl: (id: string, params?: SessionsControllerGetGitDiffParams) => string;
168
178
  export declare const sessionsControllerGetGitDiff: (id: string, params?: SessionsControllerGetGitDiffParams, options?: RequestInit) => Promise<unknown>;
179
+ export declare const getSessionsControllerGitCommitUrl: (id: string) => string;
169
180
  /**
170
181
  * @summary Commit changes. Author=user, co-author=agent. Requires turnState=idle.
171
182
  */
172
- export declare const getSessionsControllerGitCommitUrl: (id: string) => string;
173
183
  export declare const sessionsControllerGitCommit: (id: string, options?: RequestInit) => Promise<GitCommitResponseDtoDataEnvelope>;
184
+ export declare const getSessionsControllerGitPushUrl: (id: string) => string;
174
185
  /**
175
186
  * @summary Push to remote. Requires turnState=idle.
176
187
  */
177
- export declare const getSessionsControllerGitPushUrl: (id: string) => string;
178
188
  export declare const sessionsControllerGitPush: (id: string, options?: RequestInit) => Promise<unknown>;
189
+ export declare const getSessionsControllerCreatePullRequestUrl: (id: string) => string;
179
190
  /**
180
191
  * @summary Create pull request from session branch
181
192
  */
182
- export declare const getSessionsControllerCreatePullRequestUrl: (id: string) => string;
183
193
  export declare const sessionsControllerCreatePullRequest: (id: string, options?: RequestInit) => Promise<PullRequestResponseDtoDataEnvelope>;
194
+ export declare const getSessionsControllerGetCommitHistoryUrl: (id: string, params?: SessionsControllerGetCommitHistoryParams) => string;
184
195
  /**
185
196
  * @summary Get commit history for session branch
186
197
  */
187
- export declare const getSessionsControllerGetCommitHistoryUrl: (id: string, params?: SessionsControllerGetCommitHistoryParams) => string;
188
198
  export declare const sessionsControllerGetCommitHistory: (id: string, params?: SessionsControllerGetCommitHistoryParams, options?: RequestInit) => Promise<GitCommitEntryDtoDataArrayEnvelope>;
199
+ export declare const getSessionsControllerMergeCheckUrl: (id: string, params?: SessionsControllerMergeCheckParams) => string;
189
200
  /**
190
201
  * @summary Check if the session branch can merge cleanly into the target branch. Uses git merge-tree (no workspace mutation).
191
202
  */
192
- export declare const getSessionsControllerMergeCheckUrl: (id: string, params?: SessionsControllerMergeCheckParams) => string;
193
203
  export declare const sessionsControllerMergeCheck: (id: string, params?: SessionsControllerMergeCheckParams, options?: RequestInit) => Promise<MergeCheckResponseDtoDataEnvelope>;
204
+ export declare const getSessionsControllerPushToKBUrl: (id: string) => string;
194
205
  /**
195
206
  * @summary Push content to knowledge base as a new or updated page
196
207
  */
197
- export declare const getSessionsControllerPushToKBUrl: (id: string) => string;
198
208
  export declare const sessionsControllerPushToKB: (id: string, options?: RequestInit) => Promise<KBPushResponseDtoDataEnvelope>;
209
+ export declare const getSessionsControllerCreateTemplateUrl: () => string;
199
210
  /**
200
211
  * @summary Create a session template
201
212
  */
202
- export declare const getSessionsControllerCreateTemplateUrl: () => string;
203
213
  export declare const sessionsControllerCreateTemplate: (options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
214
+ export declare const getSessionsControllerListTemplatesUrl: (params?: SessionsControllerListTemplatesParams) => string;
204
215
  /**
205
216
  * @summary List session templates
206
217
  */
207
- export declare const getSessionsControllerListTemplatesUrl: (params?: SessionsControllerListTemplatesParams) => string;
208
218
  export declare const sessionsControllerListTemplates: (params?: SessionsControllerListTemplatesParams, options?: RequestInit) => Promise<TemplateResponseDtoPaginatedEnvelope>;
219
+ export declare const getSessionsControllerGetTemplateUrl: (templateId: string) => string;
209
220
  /**
210
221
  * @summary Get template by ID
211
222
  */
212
- export declare const getSessionsControllerGetTemplateUrl: (templateId: string) => string;
213
223
  export declare const sessionsControllerGetTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
224
+ export declare const getSessionsControllerUpdateTemplateUrl: (templateId: string) => string;
214
225
  /**
215
226
  * @summary Update a session template
216
227
  */
217
- export declare const getSessionsControllerUpdateTemplateUrl: (templateId: string) => string;
218
228
  export declare const sessionsControllerUpdateTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
229
+ export declare const getSessionsControllerDeleteTemplateUrl: (templateId: string) => string;
219
230
  /**
220
231
  * @summary Delete a session template
221
232
  */
222
- export declare const getSessionsControllerDeleteTemplateUrl: (templateId: string) => string;
223
233
  export declare const sessionsControllerDeleteTemplate: (templateId: string, options?: RequestInit) => Promise<unknown>;
234
+ export declare const getSessionsControllerCloneTemplateUrl: (templateId: string) => string;
224
235
  /**
225
236
  * @summary Clone a session template
226
237
  */
227
- export declare const getSessionsControllerCloneTemplateUrl: (templateId: string) => string;
228
238
  export declare const sessionsControllerCloneTemplate: (templateId: string, options?: RequestInit) => Promise<TemplateResponseDtoDataEnvelope>;
239
+ export declare const getSessionsControllerCreateShareUrl: (id: string) => string;
229
240
  /**
230
241
  * @summary Generate a read-only sharing link for the session
231
242
  */
232
- export declare const getSessionsControllerCreateShareUrl: (id: string) => string;
233
243
  export declare const sessionsControllerCreateShare: (id: string, options?: RequestInit) => Promise<ShareResponseDtoDataEnvelope>;
244
+ export declare const getBuildImageControllerStartUrl: (id: string) => string;
234
245
  /**
235
246
  * @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
247
  */
237
- export declare const getBuildImageControllerStartUrl: (id: string) => string;
238
248
  export declare const buildImageControllerStart: (id: string, startBuildImageDto: StartBuildImageDto, options?: RequestInit) => Promise<BuildImageStartedResponseDtoDataEnvelope>;
249
+ export declare const getBuildImageControllerStatusUrl: (id: string, workflowId: string) => string;
239
250
  /**
240
251
  * @summary Describe a previously-started build-image workflow. The FE polls this to flip the button between Building… / Completed / Failed.
241
252
  */
242
- export declare const getBuildImageControllerStatusUrl: (id: string, workflowId: string) => string;
243
253
  export declare const buildImageControllerStatus: (id: string, workflowId: string, options?: RequestInit) => Promise<BuildImageStatusResponseDtoDataEnvelope>;