@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.
- package/LICENSE +175 -201
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +1 -1
- package/dist/custom-fetch.js +1 -1
- package/dist/endpoints/output-surface-inspect/output-surface-inspect.d.ts +3 -3
- package/dist/endpoints/output-surface-inspect/output-surface-inspect.js +6 -6
- package/dist/endpoints/output-surfaces/output-surfaces.d.ts +8 -8
- package/dist/endpoints/output-surfaces/output-surfaces.js +21 -21
- package/dist/endpoints/sandbox-sessions/sandbox-sessions.d.ts +8 -8
- package/dist/endpoints/sandbox-sessions/sandbox-sessions.js +21 -21
- package/dist/endpoints/session-attachments/session-attachments.d.ts +4 -4
- package/dist/endpoints/session-attachments/session-attachments.js +9 -9
- package/dist/endpoints/session-blob-attachments/session-blob-attachments.d.ts +2 -2
- package/dist/endpoints/session-blob-attachments/session-blob-attachments.js +3 -3
- package/dist/endpoints/session-participants/session-participants.d.ts +5 -5
- package/dist/endpoints/session-participants/session-participants.js +12 -12
- package/dist/endpoints/sessions/sessions.d.ts +60 -50
- package/dist/endpoints/sessions/sessions.js +177 -143
- package/dist/endpoints/threads/threads.d.ts +9 -9
- package/dist/endpoints/threads/threads.js +24 -24
- package/dist/index.d.ts +0 -3
- package/dist/index.js +1 -4
- package/dist/models/addAttachmentDto.d.ts +2 -2
- package/dist/models/attachSkillDto.d.ts +1 -1
- package/dist/models/attachSkillDto.js +1 -1
- package/dist/models/attachmentClass.d.ts +1 -1
- package/dist/models/attachmentClass.js +1 -1
- package/dist/models/attachmentResponseDto.d.ts +3 -3
- package/dist/models/attachmentResponseDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/attachmentResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/attachmentUploadInitResponseDto.d.ts +2 -2
- package/dist/models/attachmentUploadInitResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.d.ts +1 -1
- package/dist/models/attachmentUploadInitResponseDtoRequiredHeaders.js +1 -1
- package/dist/models/branchStrategy.d.ts +1 -1
- package/dist/models/branchStrategy.js +1 -1
- package/dist/models/buildImageResultDto.d.ts +1 -1
- package/dist/models/buildImageResultDto.js +1 -1
- package/dist/models/buildImageStartedResponseDto.d.ts +1 -1
- package/dist/models/buildImageStartedResponseDto.js +1 -1
- package/dist/models/buildImageStartedResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/buildImageStatusResponseDto.d.ts +4 -4
- package/dist/models/buildImageStatusResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/buildImageStatusResponseDtoFailureMessage.d.ts +1 -1
- package/dist/models/buildImageStatusResponseDtoFailureMessage.js +1 -1
- package/dist/models/buildImageStatusResponseDtoStatus.d.ts +1 -1
- package/dist/models/buildImageStatusResponseDtoStatus.js +1 -1
- package/dist/models/changeSessionInstructionsDto.d.ts +16 -0
- package/dist/models/changeSessionInstructionsDto.js +2 -0
- package/dist/models/changeSessionInstructionsDtoInstructions.d.ts +15 -0
- package/dist/models/changeSessionInstructionsDtoInstructions.js +9 -0
- package/dist/models/changeSessionModelDto.d.ts +2 -2
- package/dist/models/changeSessionModelDtoSelection.d.ts +1 -1
- package/dist/models/changeSessionModelDtoSelection.js +1 -1
- package/dist/models/changeSessionPermissionDto.d.ts +15 -0
- package/dist/models/changeSessionPermissionDto.js +2 -0
- package/dist/models/changeSessionPermissionDtoPermission.d.ts +14 -0
- package/dist/models/changeSessionPermissionDtoPermission.js +9 -0
- package/dist/models/changeSessionToolsDto.d.ts +3 -3
- package/dist/models/createSandboxSessionDto.d.ts +3 -3
- package/dist/models/createSessionDto.d.ts +44 -0
- package/dist/models/createSessionDto.js +2 -0
- package/dist/models/createSessionDtoCustomConfig.d.ts +13 -0
- package/dist/models/createSessionDtoCustomConfig.js +9 -0
- package/dist/models/createThreadDto.d.ts +1 -1
- package/dist/models/createThreadDto.js +1 -1
- package/dist/models/environmentDriftDetectedPayloadDto.d.ts +2 -2
- package/dist/models/environmentDriftEntryDto.d.ts +3 -3
- package/dist/models/environmentDriftEntryDtoAfter.d.ts +1 -1
- package/dist/models/environmentDriftEntryDtoAfter.js +1 -1
- package/dist/models/environmentDriftEntryDtoBefore.d.ts +1 -1
- package/dist/models/environmentDriftEntryDtoBefore.js +1 -1
- package/dist/models/errorDetailsDto.d.ts +2 -2
- package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
- package/dist/models/errorDetailsDtoDetails.js +1 -1
- package/dist/models/errorPayloadDto.d.ts +2 -2
- package/dist/models/errorResponseDto.d.ts +2 -2
- package/dist/models/externalInviteDeliveryMode.d.ts +1 -1
- package/dist/models/externalInviteDeliveryMode.js +1 -1
- package/dist/models/gitCommitEntryDto.d.ts +1 -1
- package/dist/models/gitCommitEntryDto.js +1 -1
- package/dist/models/gitCommitEntryDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/gitCommitResponseDto.d.ts +1 -1
- package/dist/models/gitCommitResponseDto.js +1 -1
- package/dist/models/gitCommitResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/gitStatusResponseDto.d.ts +2 -2
- package/dist/models/gitStatusResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/index.d.ts +8 -13
- package/dist/models/index.js +8 -13
- package/dist/models/initAttachmentUploadDto.d.ts +1 -1
- package/dist/models/initAttachmentUploadDto.js +1 -1
- package/dist/models/inspectStepResultDto.d.ts +4 -4
- package/dist/models/inspectStepResultDtoData.d.ts +1 -1
- package/dist/models/inspectStepResultDtoData.js +1 -1
- package/dist/models/inspectStepResultDtoKind.d.ts +1 -1
- package/dist/models/inspectStepResultDtoKind.js +1 -1
- package/dist/models/inspectStepResultDtoStatus.d.ts +1 -1
- package/dist/models/inspectStepResultDtoStatus.js +1 -1
- package/dist/models/invitableParticipantRole.d.ts +1 -1
- package/dist/models/invitableParticipantRole.js +1 -1
- package/dist/models/inviteExternalDto.d.ts +3 -3
- package/dist/models/inviteParticipantDto.d.ts +2 -2
- package/dist/models/invitedExternalParticipantResponseDto.d.ts +1 -1
- package/dist/models/invitedExternalParticipantResponseDto.js +1 -1
- package/dist/models/invitedExternalParticipantResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/kBPushResponseDto.d.ts +1 -1
- package/dist/models/kBPushResponseDto.js +1 -1
- package/dist/models/kBPushResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/kbMountsResponseDto.d.ts +2 -2
- package/dist/models/kbMountsResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/kbPageMountDto.d.ts +1 -1
- package/dist/models/kbPageMountDto.js +1 -1
- package/dist/models/listSessionParticipantsResponseDto.d.ts +2 -2
- package/dist/models/listSessionParticipantsResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/mergeCheckResponseDto.d.ts +1 -1
- package/dist/models/mergeCheckResponseDto.js +1 -1
- package/dist/models/mergeCheckResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/messageResponseDto.d.ts +3 -3
- package/dist/models/messageResponseDtoMetadata.d.ts +1 -1
- package/dist/models/messageResponseDtoMetadata.js +1 -1
- package/dist/models/messageResponseDtoPaginatedEnvelope.d.ts +3 -3
- package/dist/models/outputSurfaceAppResponseDto.d.ts +3 -3
- package/dist/models/outputSurfaceAppResponseDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/outputSurfaceAppResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/outputSurfaceAppStatus.d.ts +1 -1
- package/dist/models/outputSurfaceAppStatus.js +1 -1
- package/dist/models/outputSurfaceControllerRestartParams.d.ts +2 -2
- package/dist/models/outputSurfaceControllerScanParams.d.ts +2 -2
- package/dist/models/outputSurfaceRemediationKindInput.d.ts +1 -1
- package/dist/models/outputSurfaceRemediationKindInput.js +1 -1
- package/dist/models/outputSurfaceRestartMode.d.ts +1 -1
- package/dist/models/outputSurfaceRestartMode.js +1 -1
- package/dist/models/paginationMeta.d.ts +1 -1
- package/dist/models/paginationMeta.js +1 -1
- package/dist/models/participantRole.d.ts +1 -1
- package/dist/models/participantRole.js +1 -1
- package/dist/models/participantSubjectKind.d.ts +1 -1
- package/dist/models/participantSubjectKind.js +1 -1
- package/dist/models/projectKind.d.ts +1 -1
- package/dist/models/projectKind.js +1 -1
- package/dist/models/providerEntryDto.d.ts +3 -3
- package/dist/models/providerEntryDtoKind.d.ts +1 -1
- package/dist/models/providerEntryDtoKind.js +1 -1
- package/dist/models/pullRequestResponseDto.d.ts +2 -2
- package/dist/models/pullRequestResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/pullRequestResponseDtoPrUrl.d.ts +1 -1
- package/dist/models/pullRequestResponseDtoPrUrl.js +1 -1
- package/dist/models/pushDocumentEditDto.d.ts +1 -1
- package/dist/models/pushDocumentEditDto.js +1 -1
- package/dist/models/reasoningDeltaPayloadDto.d.ts +1 -1
- package/dist/models/reasoningDeltaPayloadDto.js +1 -1
- package/dist/models/referenceAttachmentClass.d.ts +1 -1
- package/dist/models/referenceAttachmentClass.js +1 -1
- package/dist/models/remediateOutputSurfaceDto.d.ts +2 -2
- package/dist/models/remediateOutputSurfaceResponseDto.d.ts +1 -1
- package/dist/models/remediateOutputSurfaceResponseDto.js +1 -1
- package/dist/models/remediateOutputSurfaceResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/repoGitStatusDto.d.ts +2 -2
- package/dist/models/repoRole.d.ts +1 -1
- package/dist/models/repoRole.js +1 -1
- package/dist/models/reportInspectPresenceDto.d.ts +3 -3
- package/dist/models/reportInspectPresenceDtoKind.d.ts +1 -1
- package/dist/models/reportInspectPresenceDtoKind.js +1 -1
- package/dist/models/reportInspectPresenceDtoReason.d.ts +1 -1
- package/dist/models/reportInspectPresenceDtoReason.js +1 -1
- package/dist/models/reportInspectResultDto.d.ts +2 -2
- package/dist/models/resumeSessionDto.d.ts +1 -1
- package/dist/models/resumeSessionDto.js +1 -1
- package/dist/models/rotateTokenResponseDto.d.ts +1 -1
- package/dist/models/rotateTokenResponseDto.js +1 -1
- package/dist/models/rotateTokenResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/runSandboxEvalTurnDto.d.ts +1 -1
- package/dist/models/runSandboxEvalTurnDto.js +1 -1
- package/dist/models/sandboxEvalTurnResultDto.d.ts +1 -1
- package/dist/models/sandboxEvalTurnResultDto.js +1 -1
- package/dist/models/sandboxEvalTurnResultDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.d.ts +1 -1
- package/dist/models/sandboxSessionsControllerDeleteToolMocksParams.js +1 -1
- package/dist/models/sandboxToolMockDto.d.ts +1 -1
- package/dist/models/sandboxToolMockDto.js +1 -1
- package/dist/models/sandboxToolMocksResponseDto.d.ts +1 -1
- package/dist/models/sandboxToolMocksResponseDto.js +1 -1
- package/dist/models/sandboxToolMocksResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionAttachmentStatus.d.ts +1 -1
- package/dist/models/sessionAttachmentStatus.js +1 -1
- package/dist/models/sessionBlobAttachmentDto.d.ts +2 -2
- package/dist/models/sessionBlobAttachmentDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.d.ts +1 -1
- package/dist/models/sessionBlobAttachmentDtoRequiredHeaders.js +1 -1
- package/dist/models/sessionContextWindowSnapshotDto.d.ts +1 -1
- package/dist/models/sessionContextWindowSnapshotDto.js +1 -1
- package/dist/models/sessionDebugCompositionNodeDto.d.ts +1 -1
- package/dist/models/sessionDebugCompositionNodeDto.js +1 -1
- package/dist/models/sessionDebugInfoDto.d.ts +7 -7
- package/dist/models/sessionDebugInfoDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionDebugInfoDtoMountPlan.d.ts +1 -1
- package/dist/models/sessionDebugInfoDtoMountPlan.js +1 -1
- package/dist/models/sessionDebugModelDecisionDto.d.ts +1 -1
- package/dist/models/sessionDebugModelDecisionDto.js +1 -1
- package/dist/models/sessionDebugSkillDto.d.ts +2 -2
- package/dist/models/sessionDebugSkillDtoSnapshot.d.ts +1 -1
- package/dist/models/sessionDebugSkillDtoSnapshot.js +1 -1
- package/dist/models/sessionKind.d.ts +1 -1
- package/dist/models/sessionKind.js +1 -1
- package/dist/models/sessionLayer.d.ts +17 -0
- package/dist/models/sessionLayer.js +16 -0
- package/dist/models/sessionLockfileDto.d.ts +7 -7
- package/dist/models/sessionLockfileDtoAgents.d.ts +1 -1
- package/dist/models/sessionLockfileDtoAgents.js +1 -1
- package/dist/models/sessionLockfileDtoBiomes.d.ts +1 -1
- package/dist/models/sessionLockfileDtoBiomes.js +1 -1
- package/dist/models/sessionLockfileDtoCapabilities.d.ts +1 -1
- package/dist/models/sessionLockfileDtoCapabilities.js +1 -1
- package/dist/models/sessionLockfileDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionLockfileDtoDeliverableSpecs.d.ts +1 -1
- package/dist/models/sessionLockfileDtoDeliverableSpecs.js +1 -1
- package/dist/models/sessionLockfileDtoSkills.d.ts +1 -1
- package/dist/models/sessionLockfileDtoSkills.js +1 -1
- package/dist/models/sessionLockfileDtoWorkflows.d.ts +1 -1
- package/dist/models/sessionLockfileDtoWorkflows.js +1 -1
- package/dist/models/sessionMessageRole.d.ts +1 -1
- package/dist/models/sessionMessageRole.js +1 -1
- package/dist/models/sessionParticipantDto.d.ts +3 -3
- package/dist/models/sessionParticipantDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionPauseReason.d.ts +1 -1
- package/dist/models/sessionPauseReason.js +1 -1
- package/dist/models/sessionProvisioningPhase.d.ts +1 -1
- package/dist/models/sessionProvisioningPhase.js +1 -1
- package/dist/models/sessionResponseDto.d.ts +13 -13
- package/dist/models/sessionResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionResponseDtoFailureMetaJson.d.ts +1 -1
- package/dist/models/sessionResponseDtoFailureMetaJson.js +1 -1
- package/dist/models/sessionResponseDtoHandoffOutput.d.ts +1 -1
- package/dist/models/sessionResponseDtoHandoffOutput.js +1 -1
- package/dist/models/sessionResponseDtoModelSelection.d.ts +1 -1
- package/dist/models/sessionResponseDtoModelSelection.js +1 -1
- package/dist/models/sessionResponseDtoPaginatedEnvelope.d.ts +3 -3
- package/dist/models/sessionResponseDtoToolSelectionItem.d.ts +1 -1
- package/dist/models/sessionResponseDtoToolSelectionItem.js +1 -1
- package/dist/models/sessionStatus.d.ts +1 -1
- package/dist/models/sessionStatus.js +1 -1
- package/dist/models/sessionTimelineEntryDto.d.ts +3 -3
- package/dist/models/sessionTimelineEntryDtoEventType.d.ts +1 -1
- package/dist/models/sessionTimelineEntryDtoEventType.js +1 -1
- package/dist/models/sessionTimelineEntryDtoPayload.d.ts +5 -5
- package/dist/models/sessionTimelinePageDto.d.ts +2 -2
- package/dist/models/sessionTimelinePageDtoDataEnvelope.d.ts +2 -2
- package/dist/models/sessionTokenUsageDto.d.ts +1 -1
- package/dist/models/sessionTokenUsageDto.js +1 -1
- package/dist/models/sessionsControllerGetCommitHistoryParams.d.ts +1 -1
- package/dist/models/sessionsControllerGetCommitHistoryParams.js +1 -1
- package/dist/models/sessionsControllerGetGitDiffParams.d.ts +1 -1
- package/dist/models/sessionsControllerGetGitDiffParams.js +1 -1
- package/dist/models/sessionsControllerListFilesParams.d.ts +1 -1
- package/dist/models/sessionsControllerListFilesParams.js +1 -1
- package/dist/models/sessionsControllerListParams.d.ts +1 -1
- package/dist/models/sessionsControllerListParams.js +1 -1
- package/dist/models/sessionsControllerListTemplatesParams.d.ts +1 -1
- package/dist/models/sessionsControllerListTemplatesParams.js +1 -1
- package/dist/models/sessionsControllerMergeCheckParams.d.ts +1 -1
- package/dist/models/sessionsControllerMergeCheckParams.js +1 -1
- package/dist/models/sessionsControllerStreamEventsParams.d.ts +1 -1
- package/dist/models/sessionsControllerStreamEventsParams.js +1 -1
- package/dist/models/setSandboxToolMocksDto.d.ts +2 -2
- package/dist/models/shareAccessLevel.d.ts +1 -1
- package/dist/models/shareAccessLevel.js +1 -1
- package/dist/models/shareResponseDto.d.ts +3 -3
- package/dist/models/shareResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/shareResponseDtoExpiresAt.d.ts +1 -1
- package/dist/models/shareResponseDtoExpiresAt.js +1 -1
- package/dist/models/startBuildImageDto.d.ts +1 -1
- package/dist/models/startBuildImageDto.js +1 -1
- package/dist/models/templateResponseDto.d.ts +6 -6
- package/dist/models/templateResponseDtoBudgetLimit.d.ts +1 -1
- package/dist/models/templateResponseDtoBudgetLimit.js +1 -1
- package/dist/models/templateResponseDtoCustomConfig.d.ts +1 -1
- package/dist/models/templateResponseDtoCustomConfig.js +1 -1
- package/dist/models/templateResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/templateResponseDtoDescription.d.ts +1 -1
- package/dist/models/templateResponseDtoDescription.js +1 -1
- package/dist/models/templateResponseDtoPaginatedEnvelope.d.ts +3 -3
- package/dist/models/templateResponseDtoRepositoryId.d.ts +1 -1
- package/dist/models/templateResponseDtoRepositoryId.js +1 -1
- package/dist/models/textDeltaPayloadDto.d.ts +1 -1
- package/dist/models/textDeltaPayloadDto.js +1 -1
- package/dist/models/threadResponseDto.d.ts +4 -4
- package/dist/models/threadResponseDtoDataArrayEnvelope.d.ts +2 -2
- package/dist/models/threadResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/threadResponseDtoModelSelection.d.ts +1 -1
- package/dist/models/threadResponseDtoModelSelection.js +1 -1
- package/dist/models/threadStatus.d.ts +1 -1
- package/dist/models/threadStatus.js +1 -1
- package/dist/models/threadsControllerGetMessagesParams.d.ts +1 -1
- package/dist/models/threadsControllerGetMessagesParams.js +1 -1
- package/dist/models/threadsControllerGetTimelineParams.d.ts +1 -1
- package/dist/models/threadsControllerGetTimelineParams.js +1 -1
- package/dist/models/toolCallPayloadDto.d.ts +2 -2
- package/dist/models/toolCallPayloadDtoStatus.d.ts +1 -1
- package/dist/models/toolCallPayloadDtoStatus.js +1 -1
- package/dist/models/toolEntryDto.d.ts +3 -3
- package/dist/models/toolEntryDtoKind.d.ts +1 -1
- package/dist/models/toolEntryDtoKind.js +1 -1
- package/dist/models/toolProviderKind.d.ts +1 -1
- package/dist/models/toolProviderKind.js +1 -1
- package/dist/models/toolUsageEntryDto.d.ts +1 -1
- package/dist/models/toolUsageEntryDto.js +1 -1
- package/dist/models/toolUsageResponseDto.d.ts +2 -2
- package/dist/models/toolUsageResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/turnState.d.ts +1 -1
- package/dist/models/turnState.js +1 -1
- package/dist/models/updateKbMountsDto.d.ts +2 -2
- package/dist/models/updateThreadDto.d.ts +2 -2
- package/dist/models/usageResponseDto.d.ts +3 -3
- package/dist/models/usageResponseDtoBudgetLimit.d.ts +1 -1
- package/dist/models/usageResponseDtoBudgetLimit.js +1 -1
- package/dist/models/usageResponseDtoBudgetRatio.d.ts +1 -1
- package/dist/models/usageResponseDtoBudgetRatio.js +1 -1
- package/dist/models/usageResponseDtoDataEnvelope.d.ts +2 -2
- package/dist/models/workerRuntimeKind.d.ts +17 -0
- package/dist/models/workerRuntimeKind.js +16 -0
- package/package.json +12 -2
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.outputSurfaceControllerRotateToken = exports.getOutputSurfaceControllerRotateTokenUrl = exports.outputSurfaceControllerRemediate = exports.getOutputSurfaceControllerRemediateUrl = exports.outputSurfaceControllerStop = exports.getOutputSurfaceControllerStopUrl = exports.outputSurfaceControllerStreamLogs = exports.getOutputSurfaceControllerStreamLogsUrl = exports.outputSurfaceControllerRestart = exports.getOutputSurfaceControllerRestartUrl = exports.outputSurfaceControllerScan = exports.getOutputSurfaceControllerScanUrl = exports.outputSurfaceControllerListApps = exports.getOutputSurfaceControllerListAppsUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary List runnable output surface apps for this session.
|
|
7
|
-
*/
|
|
8
5
|
const getOutputSurfaceControllerListAppsUrl = (id) => {
|
|
9
6
|
return `/sessions/${id}/output-surfaces/apps`;
|
|
10
7
|
};
|
|
11
8
|
exports.getOutputSurfaceControllerListAppsUrl = getOutputSurfaceControllerListAppsUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List runnable output surface apps for this session.
|
|
11
|
+
*/
|
|
12
12
|
const outputSurfaceControllerListApps = async (id, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerListAppsUrl)(id), {
|
|
14
14
|
...options,
|
|
@@ -16,9 +16,6 @@ const outputSurfaceControllerListApps = async (id, options) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.outputSurfaceControllerListApps = outputSurfaceControllerListApps;
|
|
19
|
-
/**
|
|
20
|
-
* @summary Request the worker to rescan the workspace for runnable apps.
|
|
21
|
-
*/
|
|
22
19
|
const getOutputSurfaceControllerScanUrl = (id, params) => {
|
|
23
20
|
const normalizedParams = new URLSearchParams();
|
|
24
21
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -42,6 +39,9 @@ const getOutputSurfaceControllerScanUrl = (id, params) => {
|
|
|
42
39
|
return stringifiedParams.length > 0 ? `/sessions/${id}/output-surfaces/scan?${stringifiedParams}` : `/sessions/${id}/output-surfaces/scan`;
|
|
43
40
|
};
|
|
44
41
|
exports.getOutputSurfaceControllerScanUrl = getOutputSurfaceControllerScanUrl;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Request the worker to rescan the workspace for runnable apps.
|
|
44
|
+
*/
|
|
45
45
|
const outputSurfaceControllerScan = async (id, params, options) => {
|
|
46
46
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerScanUrl)(id, params), {
|
|
47
47
|
...options,
|
|
@@ -49,9 +49,6 @@ const outputSurfaceControllerScan = async (id, params, options) => {
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
exports.outputSurfaceControllerScan = outputSurfaceControllerScan;
|
|
52
|
-
/**
|
|
53
|
-
* @summary Hard-restart an output surface app (stop then spawn).
|
|
54
|
-
*/
|
|
55
52
|
const getOutputSurfaceControllerRestartUrl = (id, appId, params) => {
|
|
56
53
|
const normalizedParams = new URLSearchParams();
|
|
57
54
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -75,6 +72,9 @@ const getOutputSurfaceControllerRestartUrl = (id, appId, params) => {
|
|
|
75
72
|
return stringifiedParams.length > 0 ? `/sessions/${id}/output-surfaces/apps/${appId}/restart?${stringifiedParams}` : `/sessions/${id}/output-surfaces/apps/${appId}/restart`;
|
|
76
73
|
};
|
|
77
74
|
exports.getOutputSurfaceControllerRestartUrl = getOutputSurfaceControllerRestartUrl;
|
|
75
|
+
/**
|
|
76
|
+
* @summary Hard-restart an output surface app (stop then spawn).
|
|
77
|
+
*/
|
|
78
78
|
const outputSurfaceControllerRestart = async (id, appId, params, options) => {
|
|
79
79
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerRestartUrl)(id, appId, params), {
|
|
80
80
|
...options,
|
|
@@ -82,13 +82,13 @@ const outputSurfaceControllerRestart = async (id, appId, params, options) => {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
exports.outputSurfaceControllerRestart = outputSurfaceControllerRestart;
|
|
85
|
-
/**
|
|
86
|
-
* @summary Stream stdout/stderr from the running output surface app as Server-Sent Events. Each frame is `data: {"seq","ts","stream","line"}\n\n`. The stream stays open until the client disconnects or the worker stops the app; closing the client connection aborts the upstream subscription on the worker.
|
|
87
|
-
*/
|
|
88
85
|
const getOutputSurfaceControllerStreamLogsUrl = (id, appId) => {
|
|
89
86
|
return `/sessions/${id}/output-surfaces/apps/${appId}/logs`;
|
|
90
87
|
};
|
|
91
88
|
exports.getOutputSurfaceControllerStreamLogsUrl = getOutputSurfaceControllerStreamLogsUrl;
|
|
89
|
+
/**
|
|
90
|
+
* @summary Stream stdout/stderr from the running output surface app as Server-Sent Events. Each frame is `data: {"seq","ts","stream","line"}\n\n`. The stream stays open until the client disconnects or the worker stops the app; closing the client connection aborts the upstream subscription on the worker.
|
|
91
|
+
*/
|
|
92
92
|
const outputSurfaceControllerStreamLogs = async (id, appId, options) => {
|
|
93
93
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerStreamLogsUrl)(id, appId), {
|
|
94
94
|
...options,
|
|
@@ -96,13 +96,13 @@ const outputSurfaceControllerStreamLogs = async (id, appId, options) => {
|
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
98
|
exports.outputSurfaceControllerStreamLogs = outputSurfaceControllerStreamLogs;
|
|
99
|
-
/**
|
|
100
|
-
* @summary Stop an output surface app and release its port.
|
|
101
|
-
*/
|
|
102
99
|
const getOutputSurfaceControllerStopUrl = (id, appId) => {
|
|
103
100
|
return `/sessions/${id}/output-surfaces/apps/${appId}/stop`;
|
|
104
101
|
};
|
|
105
102
|
exports.getOutputSurfaceControllerStopUrl = getOutputSurfaceControllerStopUrl;
|
|
103
|
+
/**
|
|
104
|
+
* @summary Stop an output surface app and release its port.
|
|
105
|
+
*/
|
|
106
106
|
const outputSurfaceControllerStop = async (id, appId, options) => {
|
|
107
107
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerStopUrl)(id, appId), {
|
|
108
108
|
...options,
|
|
@@ -110,13 +110,13 @@ const outputSurfaceControllerStop = async (id, appId, options) => {
|
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
exports.outputSurfaceControllerStop = outputSurfaceControllerStop;
|
|
113
|
-
/**
|
|
114
|
-
* @summary Dispatch an agent remediation for a stuck output-surface app (install_failed / declaration_needed / crashed / stopped). The server reads the current SessionOutputSurfaceApp row as source of truth — status, kind, port, lastError, install metadata — and validates `status` matches the requested `remediationKind` (409 otherwise). Renders a templated prompt that includes the runtime port contract + per-kind cheatsheet, then injects it into the opencode session as a user message. The agent is instructed to edit files and then call the `output_surface_rescan` MCP tool — it must NOT run install or dev commands directly.
|
|
115
|
-
*/
|
|
116
113
|
const getOutputSurfaceControllerRemediateUrl = (id) => {
|
|
117
114
|
return `/sessions/${id}/output-surfaces/remediate`;
|
|
118
115
|
};
|
|
119
116
|
exports.getOutputSurfaceControllerRemediateUrl = getOutputSurfaceControllerRemediateUrl;
|
|
117
|
+
/**
|
|
118
|
+
* @summary Dispatch an agent remediation for a stuck output-surface app (install_failed / declaration_needed / crashed / stopped). The server reads the current SessionOutputSurfaceApp row as source of truth — status, kind, port, lastError, install metadata — and validates `status` matches the requested `remediationKind` (409 otherwise). Renders a templated prompt that includes the runtime port contract + per-kind cheatsheet, then injects it into the opencode session as a user message. The agent is instructed to edit files and then call the `output_surface_rescan` MCP tool — it must NOT run install or dev commands directly.
|
|
119
|
+
*/
|
|
120
120
|
const outputSurfaceControllerRemediate = async (id, remediateOutputSurfaceDto, options) => {
|
|
121
121
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerRemediateUrl)(id), {
|
|
122
122
|
...options,
|
|
@@ -126,13 +126,13 @@ const outputSurfaceControllerRemediate = async (id, remediateOutputSurfaceDto, o
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
exports.outputSurfaceControllerRemediate = outputSurfaceControllerRemediate;
|
|
129
|
-
/**
|
|
130
|
-
* @summary Revoke the current share token and mint a new one; updates the external URL.
|
|
131
|
-
*/
|
|
132
129
|
const getOutputSurfaceControllerRotateTokenUrl = (id, appId) => {
|
|
133
130
|
return `/sessions/${id}/output-surfaces/apps/${appId}/token/rotate`;
|
|
134
131
|
};
|
|
135
132
|
exports.getOutputSurfaceControllerRotateTokenUrl = getOutputSurfaceControllerRotateTokenUrl;
|
|
133
|
+
/**
|
|
134
|
+
* @summary Revoke the current share token and mint a new one; updates the external URL.
|
|
135
|
+
*/
|
|
136
136
|
const outputSurfaceControllerRotateToken = async (id, appId, options) => {
|
|
137
137
|
return (0, custom_fetch_1.customFetch)((0, exports.getOutputSurfaceControllerRotateTokenUrl)(id, appId), {
|
|
138
138
|
...options,
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
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
8
|
import type { CreateSandboxSessionDto, RunSandboxEvalTurnDto, SandboxEvalTurnResultDtoDataEnvelope, SandboxSessionsControllerDeleteToolMocksParams, SandboxToolMocksResponseDtoDataEnvelope, SessionDebugInfoDtoDataEnvelope, SessionResponseDtoDataEnvelope, SetSandboxToolMocksDto } from '../../models';
|
|
9
|
+
export declare const getSandboxSessionsControllerCreateUrl: () => string;
|
|
9
10
|
/**
|
|
10
11
|
* @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.
|
|
11
12
|
*/
|
|
12
|
-
export declare const getSandboxSessionsControllerCreateUrl: () => string;
|
|
13
13
|
export declare const sandboxSessionsControllerCreate: (createSandboxSessionDto: CreateSandboxSessionDto, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
|
|
14
|
+
export declare const getSandboxSessionsControllerSetToolMocksUrl: (id: string) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @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.
|
|
16
17
|
*/
|
|
17
|
-
export declare const getSandboxSessionsControllerSetToolMocksUrl: (id: string) => string;
|
|
18
18
|
export declare const sandboxSessionsControllerSetToolMocks: (id: string, setSandboxToolMocksDto: SetSandboxToolMocksDto, options?: RequestInit) => Promise<SandboxToolMocksResponseDtoDataEnvelope>;
|
|
19
|
+
export declare const getSandboxSessionsControllerListToolMocksUrl: (id: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary List the canonical tool names a sandbox session currently has canned mock responses registered for.
|
|
21
22
|
*/
|
|
22
|
-
export declare const getSandboxSessionsControllerListToolMocksUrl: (id: string) => string;
|
|
23
23
|
export declare const sandboxSessionsControllerListToolMocks: (id: string, options?: RequestInit) => Promise<SandboxToolMocksResponseDtoDataEnvelope>;
|
|
24
|
+
export declare const getSandboxSessionsControllerDeleteToolMocksUrl: (id: string, params?: SandboxSessionsControllerDeleteToolMocksParams) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Delete one mocked tool from a sandbox session, or every mock for the session when the `toolName` query parameter is omitted.
|
|
26
27
|
*/
|
|
27
|
-
export declare const getSandboxSessionsControllerDeleteToolMocksUrl: (id: string, params?: SandboxSessionsControllerDeleteToolMocksParams) => string;
|
|
28
28
|
export declare const sandboxSessionsControllerDeleteToolMocks: (id: string, params?: SandboxSessionsControllerDeleteToolMocksParams, options?: RequestInit) => Promise<unknown>;
|
|
29
|
+
export declare const getSandboxSessionsControllerRunEvalTurnUrl: (id: string) => string;
|
|
29
30
|
/**
|
|
30
31
|
* @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.
|
|
31
32
|
*/
|
|
32
|
-
export declare const getSandboxSessionsControllerRunEvalTurnUrl: (id: string) => string;
|
|
33
33
|
export declare const sandboxSessionsControllerRunEvalTurn: (id: string, runSandboxEvalTurnDto: RunSandboxEvalTurnDto, options?: RequestInit) => Promise<SandboxEvalTurnResultDtoDataEnvelope>;
|
|
34
|
+
export declare const getSandboxSessionsControllerDisposeUrl: (id: string) => string;
|
|
34
35
|
/**
|
|
35
36
|
* @summary Dispose a sandbox session — release its worker and drive it terminal. Idempotent.
|
|
36
37
|
*/
|
|
37
|
-
export declare const getSandboxSessionsControllerDisposeUrl: (id: string) => string;
|
|
38
38
|
export declare const sandboxSessionsControllerDispose: (id: string, options?: RequestInit) => Promise<SessionResponseDtoDataEnvelope>;
|
|
39
|
+
export declare const getSandboxSessionsControllerDebugUrl: (id: string) => string;
|
|
39
40
|
/**
|
|
40
41
|
* @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.
|
|
41
42
|
*/
|
|
42
|
-
export declare const getSandboxSessionsControllerDebugUrl: (id: string) => string;
|
|
43
43
|
export declare const sandboxSessionsControllerDebug: (id: string, options?: RequestInit) => Promise<SessionDebugInfoDtoDataEnvelope>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
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
5
|
const getSandboxSessionsControllerCreateUrl = () => {
|
|
9
6
|
return `/sessions/sandbox`;
|
|
10
7
|
};
|
|
11
8
|
exports.getSandboxSessionsControllerCreateUrl = getSandboxSessionsControllerCreateUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @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.
|
|
11
|
+
*/
|
|
12
12
|
const sandboxSessionsControllerCreate = async (createSandboxSessionDto, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerCreateUrl)(), {
|
|
14
14
|
...options,
|
|
@@ -18,13 +18,13 @@ const sandboxSessionsControllerCreate = async (createSandboxSessionDto, options)
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
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
21
|
const getSandboxSessionsControllerSetToolMocksUrl = (id) => {
|
|
25
22
|
return `/sessions/sandbox/${id}/tool-mocks`;
|
|
26
23
|
};
|
|
27
24
|
exports.getSandboxSessionsControllerSetToolMocksUrl = getSandboxSessionsControllerSetToolMocksUrl;
|
|
25
|
+
/**
|
|
26
|
+
* @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.
|
|
27
|
+
*/
|
|
28
28
|
const sandboxSessionsControllerSetToolMocks = async (id, setSandboxToolMocksDto, options) => {
|
|
29
29
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerSetToolMocksUrl)(id), {
|
|
30
30
|
...options,
|
|
@@ -34,13 +34,13 @@ const sandboxSessionsControllerSetToolMocks = async (id, setSandboxToolMocksDto,
|
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
exports.sandboxSessionsControllerSetToolMocks = sandboxSessionsControllerSetToolMocks;
|
|
37
|
-
/**
|
|
38
|
-
* @summary List the canonical tool names a sandbox session currently has canned mock responses registered for.
|
|
39
|
-
*/
|
|
40
37
|
const getSandboxSessionsControllerListToolMocksUrl = (id) => {
|
|
41
38
|
return `/sessions/sandbox/${id}/tool-mocks`;
|
|
42
39
|
};
|
|
43
40
|
exports.getSandboxSessionsControllerListToolMocksUrl = getSandboxSessionsControllerListToolMocksUrl;
|
|
41
|
+
/**
|
|
42
|
+
* @summary List the canonical tool names a sandbox session currently has canned mock responses registered for.
|
|
43
|
+
*/
|
|
44
44
|
const sandboxSessionsControllerListToolMocks = async (id, options) => {
|
|
45
45
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerListToolMocksUrl)(id), {
|
|
46
46
|
...options,
|
|
@@ -48,9 +48,6 @@ const sandboxSessionsControllerListToolMocks = async (id, options) => {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
51
|
const getSandboxSessionsControllerDeleteToolMocksUrl = (id, params) => {
|
|
55
52
|
const normalizedParams = new URLSearchParams();
|
|
56
53
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -74,6 +71,9 @@ const getSandboxSessionsControllerDeleteToolMocksUrl = (id, params) => {
|
|
|
74
71
|
return stringifiedParams.length > 0 ? `/sessions/sandbox/${id}/tool-mocks?${stringifiedParams}` : `/sessions/sandbox/${id}/tool-mocks`;
|
|
75
72
|
};
|
|
76
73
|
exports.getSandboxSessionsControllerDeleteToolMocksUrl = getSandboxSessionsControllerDeleteToolMocksUrl;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Delete one mocked tool from a sandbox session, or every mock for the session when the `toolName` query parameter is omitted.
|
|
76
|
+
*/
|
|
77
77
|
const sandboxSessionsControllerDeleteToolMocks = async (id, params, options) => {
|
|
78
78
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDeleteToolMocksUrl)(id, params), {
|
|
79
79
|
...options,
|
|
@@ -81,13 +81,13 @@ const sandboxSessionsControllerDeleteToolMocks = async (id, params, options) =>
|
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
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
84
|
const getSandboxSessionsControllerRunEvalTurnUrl = (id) => {
|
|
88
85
|
return `/sessions/sandbox/${id}/eval-turn`;
|
|
89
86
|
};
|
|
90
87
|
exports.getSandboxSessionsControllerRunEvalTurnUrl = getSandboxSessionsControllerRunEvalTurnUrl;
|
|
88
|
+
/**
|
|
89
|
+
* @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.
|
|
90
|
+
*/
|
|
91
91
|
const sandboxSessionsControllerRunEvalTurn = async (id, runSandboxEvalTurnDto, options) => {
|
|
92
92
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerRunEvalTurnUrl)(id), {
|
|
93
93
|
...options,
|
|
@@ -97,13 +97,13 @@ const sandboxSessionsControllerRunEvalTurn = async (id, runSandboxEvalTurnDto, o
|
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
exports.sandboxSessionsControllerRunEvalTurn = sandboxSessionsControllerRunEvalTurn;
|
|
100
|
-
/**
|
|
101
|
-
* @summary Dispose a sandbox session — release its worker and drive it terminal. Idempotent.
|
|
102
|
-
*/
|
|
103
100
|
const getSandboxSessionsControllerDisposeUrl = (id) => {
|
|
104
101
|
return `/sessions/sandbox/${id}`;
|
|
105
102
|
};
|
|
106
103
|
exports.getSandboxSessionsControllerDisposeUrl = getSandboxSessionsControllerDisposeUrl;
|
|
104
|
+
/**
|
|
105
|
+
* @summary Dispose a sandbox session — release its worker and drive it terminal. Idempotent.
|
|
106
|
+
*/
|
|
107
107
|
const sandboxSessionsControllerDispose = async (id, options) => {
|
|
108
108
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDisposeUrl)(id), {
|
|
109
109
|
...options,
|
|
@@ -111,13 +111,13 @@ const sandboxSessionsControllerDispose = async (id, options) => {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
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
114
|
const getSandboxSessionsControllerDebugUrl = (id) => {
|
|
118
115
|
return `/sessions/sandbox/${id}/debug`;
|
|
119
116
|
};
|
|
120
117
|
exports.getSandboxSessionsControllerDebugUrl = getSandboxSessionsControllerDebugUrl;
|
|
118
|
+
/**
|
|
119
|
+
* @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.
|
|
120
|
+
*/
|
|
121
121
|
const sandboxSessionsControllerDebug = async (id, options) => {
|
|
122
122
|
return (0, custom_fetch_1.customFetch)((0, exports.getSandboxSessionsControllerDebugUrl)(id), {
|
|
123
123
|
...options,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
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
8
|
import type { AttachSkillDto } from '../../models';
|
|
9
|
+
export declare const getSessionAttachmentsControllerListSkillsUrl: (id: string) => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary List skills attached to this session
|
|
11
12
|
*/
|
|
12
|
-
export declare const getSessionAttachmentsControllerListSkillsUrl: (id: string) => string;
|
|
13
13
|
export declare const sessionAttachmentsControllerListSkills: (id: string, options?: RequestInit) => Promise<void>;
|
|
14
|
+
export declare const getSessionAttachmentsControllerAttachSkillUrl: (id: string) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @summary Attach a skill to this session at runtime
|
|
16
17
|
*/
|
|
17
|
-
export declare const getSessionAttachmentsControllerAttachSkillUrl: (id: string) => string;
|
|
18
18
|
export declare const sessionAttachmentsControllerAttachSkill: (id: string, attachSkillDto: AttachSkillDto, options?: RequestInit) => Promise<void>;
|
|
19
|
+
export declare const getSessionAttachmentsControllerDetachSkillUrl: (id: string, skillSlug: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @summary Detach a skill from this session
|
|
21
22
|
*/
|
|
22
|
-
export declare const getSessionAttachmentsControllerDetachSkillUrl: (id: string, skillSlug: string) => string;
|
|
23
23
|
export declare const sessionAttachmentsControllerDetachSkill: (id: string, skillSlug: string, options?: RequestInit) => Promise<void>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sessionAttachmentsControllerDetachSkill = exports.getSessionAttachmentsControllerDetachSkillUrl = exports.sessionAttachmentsControllerAttachSkill = exports.getSessionAttachmentsControllerAttachSkillUrl = exports.sessionAttachmentsControllerListSkills = exports.getSessionAttachmentsControllerListSkillsUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* @summary List skills attached to this session
|
|
7
|
-
*/
|
|
8
5
|
const getSessionAttachmentsControllerListSkillsUrl = (id) => {
|
|
9
6
|
return `/sessions/${id}/skills`;
|
|
10
7
|
};
|
|
11
8
|
exports.getSessionAttachmentsControllerListSkillsUrl = getSessionAttachmentsControllerListSkillsUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List skills attached to this session
|
|
11
|
+
*/
|
|
12
12
|
const sessionAttachmentsControllerListSkills = async (id, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerListSkillsUrl)(id), {
|
|
14
14
|
...options,
|
|
@@ -16,13 +16,13 @@ const sessionAttachmentsControllerListSkills = async (id, options) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.sessionAttachmentsControllerListSkills = sessionAttachmentsControllerListSkills;
|
|
19
|
-
/**
|
|
20
|
-
* @summary Attach a skill to this session at runtime
|
|
21
|
-
*/
|
|
22
19
|
const getSessionAttachmentsControllerAttachSkillUrl = (id) => {
|
|
23
20
|
return `/sessions/${id}/skills`;
|
|
24
21
|
};
|
|
25
22
|
exports.getSessionAttachmentsControllerAttachSkillUrl = getSessionAttachmentsControllerAttachSkillUrl;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Attach a skill to this session at runtime
|
|
25
|
+
*/
|
|
26
26
|
const sessionAttachmentsControllerAttachSkill = async (id, attachSkillDto, options) => {
|
|
27
27
|
return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerAttachSkillUrl)(id), {
|
|
28
28
|
...options,
|
|
@@ -32,13 +32,13 @@ const sessionAttachmentsControllerAttachSkill = async (id, attachSkillDto, optio
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
exports.sessionAttachmentsControllerAttachSkill = sessionAttachmentsControllerAttachSkill;
|
|
35
|
-
/**
|
|
36
|
-
* @summary Detach a skill from this session
|
|
37
|
-
*/
|
|
38
35
|
const getSessionAttachmentsControllerDetachSkillUrl = (id, skillSlug) => {
|
|
39
36
|
return `/sessions/${id}/skills/${skillSlug}`;
|
|
40
37
|
};
|
|
41
38
|
exports.getSessionAttachmentsControllerDetachSkillUrl = getSessionAttachmentsControllerDetachSkillUrl;
|
|
39
|
+
/**
|
|
40
|
+
* @summary Detach a skill from this session
|
|
41
|
+
*/
|
|
42
42
|
const sessionAttachmentsControllerDetachSkill = async (id, skillSlug, options) => {
|
|
43
43
|
return (0, custom_fetch_1.customFetch)((0, exports.getSessionAttachmentsControllerDetachSkillUrl)(id, skillSlug), {
|
|
44
44
|
...options,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
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
8
|
import type { SessionBlobAttachmentDtoDataArrayEnvelope } from '../../models';
|
|
9
|
+
export declare const getSessionBlobAttachmentsControllerListUrl: (id: string) => string;
|
|
9
10
|
/**
|
|
10
11
|
* @summary List uploaded-file attachments for a session with per-row SAS download URLs (mount-apply manifest)
|
|
11
12
|
*/
|
|
12
|
-
export declare const getSessionBlobAttachmentsControllerListUrl: (id: string) => string;
|
|
13
13
|
export declare const sessionBlobAttachmentsControllerList: (id: string, options?: RequestInit) => Promise<SessionBlobAttachmentDtoDataArrayEnvelope>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sessionBlobAttachmentsControllerList = exports.getSessionBlobAttachmentsControllerListUrl = void 0;
|
|
4
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
5
|
const getSessionBlobAttachmentsControllerListUrl = (id) => {
|
|
9
6
|
return `/sessions/${id}/attachments/blob-manifest`;
|
|
10
7
|
};
|
|
11
8
|
exports.getSessionBlobAttachmentsControllerListUrl = getSessionBlobAttachmentsControllerListUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary List uploaded-file attachments for a session with per-row SAS download URLs (mount-apply manifest)
|
|
11
|
+
*/
|
|
12
12
|
const sessionBlobAttachmentsControllerList = async (id, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getSessionBlobAttachmentsControllerListUrl)(id), {
|
|
14
14
|
...options,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
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
8
|
import type { InviteExternalDto, InviteParticipantDto, InvitedExternalParticipantResponseDtoDataEnvelope, ListSessionParticipantsResponseDtoDataEnvelope, SessionParticipantDtoDataEnvelope } from '../../models';
|
|
9
|
+
export declare const getParticipantsControllerListUrl: (sessionId: string) => string;
|
|
9
10
|
/**
|
|
10
11
|
* @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
|
*/
|
|
12
|
-
export declare const getParticipantsControllerListUrl: (sessionId: string) => string;
|
|
13
13
|
export declare const participantsControllerList: (sessionId: string, options?: RequestInit) => Promise<ListSessionParticipantsResponseDtoDataEnvelope>;
|
|
14
|
+
export declare const getParticipantsControllerInviteUrl: (sessionId: string) => string;
|
|
14
15
|
/**
|
|
15
16
|
* @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
|
*/
|
|
17
|
-
export declare const getParticipantsControllerInviteUrl: (sessionId: string) => string;
|
|
18
18
|
export declare const participantsControllerInvite: (sessionId: string, inviteParticipantDto: InviteParticipantDto, options?: RequestInit) => Promise<SessionParticipantDtoDataEnvelope>;
|
|
19
|
+
export declare const getParticipantsControllerInviteExternalUrl: (sessionId: string) => string;
|
|
19
20
|
/**
|
|
20
21
|
* @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
|
*/
|
|
22
|
-
export declare const getParticipantsControllerInviteExternalUrl: (sessionId: string) => string;
|
|
23
23
|
export declare const participantsControllerInviteExternal: (sessionId: string, inviteExternalDto: InviteExternalDto, options?: RequestInit) => Promise<InvitedExternalParticipantResponseDtoDataEnvelope>;
|
|
24
|
+
export declare const getParticipantsControllerRemoveUrl: (sessionId: string, participantId: string) => string;
|
|
24
25
|
/**
|
|
25
26
|
* @summary Remove a participant from a session (capability `workspace:session.invite@1`). The session owner cannot be removed.
|
|
26
27
|
*/
|
|
27
|
-
export declare const getParticipantsControllerRemoveUrl: (sessionId: string, participantId: string) => string;
|
|
28
28
|
export declare const participantsControllerRemove: (sessionId: string, participantId: string, options?: RequestInit) => Promise<unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.participantsControllerRemove = exports.getParticipantsControllerRemoveUrl = exports.participantsControllerInviteExternal = exports.getParticipantsControllerInviteExternalUrl = exports.participantsControllerInvite = exports.getParticipantsControllerInviteUrl = exports.participantsControllerList = exports.getParticipantsControllerListUrl = void 0;
|
|
4
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
5
|
const getParticipantsControllerListUrl = (sessionId) => {
|
|
9
6
|
return `/sessions/${sessionId}/participants`;
|
|
10
7
|
};
|
|
11
8
|
exports.getParticipantsControllerListUrl = getParticipantsControllerListUrl;
|
|
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
12
|
const participantsControllerList = async (sessionId, options) => {
|
|
13
13
|
return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerListUrl)(sessionId), {
|
|
14
14
|
...options,
|
|
@@ -16,13 +16,13 @@ const participantsControllerList = async (sessionId, options) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
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
19
|
const getParticipantsControllerInviteUrl = (sessionId) => {
|
|
23
20
|
return `/sessions/${sessionId}/participants`;
|
|
24
21
|
};
|
|
25
22
|
exports.getParticipantsControllerInviteUrl = getParticipantsControllerInviteUrl;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Invite an in-org Xema user to a session (capability `workspace:session.invite@1`). Use `POST /participants/external` for external guest invites.
|
|
25
|
+
*/
|
|
26
26
|
const participantsControllerInvite = async (sessionId, inviteParticipantDto, options) => {
|
|
27
27
|
return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerInviteUrl)(sessionId), {
|
|
28
28
|
...options,
|
|
@@ -32,13 +32,13 @@ const participantsControllerInvite = async (sessionId, inviteParticipantDto, opt
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
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
35
|
const getParticipantsControllerInviteExternalUrl = (sessionId) => {
|
|
39
36
|
return `/sessions/${sessionId}/participants/external`;
|
|
40
37
|
};
|
|
41
38
|
exports.getParticipantsControllerInviteExternalUrl = getParticipantsControllerInviteExternalUrl;
|
|
39
|
+
/**
|
|
40
|
+
* @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.
|
|
41
|
+
*/
|
|
42
42
|
const participantsControllerInviteExternal = async (sessionId, inviteExternalDto, options) => {
|
|
43
43
|
return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerInviteExternalUrl)(sessionId), {
|
|
44
44
|
...options,
|
|
@@ -48,13 +48,13 @@ const participantsControllerInviteExternal = async (sessionId, inviteExternalDto
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
51
|
const getParticipantsControllerRemoveUrl = (sessionId, participantId) => {
|
|
55
52
|
return `/sessions/${sessionId}/participants/${participantId}`;
|
|
56
53
|
};
|
|
57
54
|
exports.getParticipantsControllerRemoveUrl = getParticipantsControllerRemoveUrl;
|
|
55
|
+
/**
|
|
56
|
+
* @summary Remove a participant from a session (capability `workspace:session.invite@1`). The session owner cannot be removed.
|
|
57
|
+
*/
|
|
58
58
|
const participantsControllerRemove = async (sessionId, participantId, options) => {
|
|
59
59
|
return (0, custom_fetch_1.customFetch)((0, exports.getParticipantsControllerRemoveUrl)(sessionId, participantId), {
|
|
60
60
|
...options,
|