@belonguniverseai/react-sdk 0.6.21 → 0.6.22
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/README.md +69 -0
- package/dist/api/client.d.ts +667 -4
- package/dist/api/goals.d.ts +179 -0
- package/dist/api/issue-reports.d.ts +13 -0
- package/dist/api/query-keys.d.ts +18 -0
- package/dist/api/report-client-error.d.ts +3 -0
- package/dist/api/retry-fetch.d.ts +19 -0
- package/dist/api/skill-library.d.ts +100 -0
- package/dist/api/skills.d.ts +3 -1
- package/dist/app/dock-outlet.d.ts +15 -5
- package/dist/browser/allowed-ops.d.ts +18 -0
- package/dist/browser/host-mcp.d.ts +31 -0
- package/dist/component/{abnfDiagram-N423BO3Z-DZRUOUZQ.js → abnfDiagram-N423BO3Z-D4mVRMw9.js} +4 -4
- package/dist/component/{arc-B4biduil.js → arc-GBp6w3tF.js} +2 -2
- package/dist/component/{architectureDiagram-T3A2C74G-q8voStNN.js → architectureDiagram-T3A2C74G-Cxm-USYQ.js} +3 -3
- package/dist/component/{blockDiagram-VBNYF7ZC-C0TDyTgw.js → blockDiagram-VBNYF7ZC-BAiLpxJf.js} +4 -4
- package/dist/component/{c4Diagram-5PPSVZJV-rxRyd6rh.js → c4Diagram-5PPSVZJV-Sy6sLJOj.js} +3 -3
- package/dist/component/{channel-CUruDJSx.js → channel-DPbaAkCI.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-Kff5Fvbi.js → chunk-2GRJ4B5K-8r8YJzCc.js} +2 -2
- package/dist/component/{chunk-2Q5K7J3B-BT3ZD31a.js → chunk-2Q5K7J3B-RZqny7-R.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-CYZ36tQD.js → chunk-5RXB4S5H-QFCY9Dtl.js} +5 -5
- package/dist/component/{chunk-5VM5RSS4-BweQRk7u.js → chunk-5VM5RSS4-BG8q5ODa.js} +2 -2
- package/dist/component/{chunk-6Q2QTUOP-DHcoXRhe.js → chunk-6Q2QTUOP-D6ec2nI7.js} +2 -2
- package/dist/component/{chunk-GF5L2VYU-DtE5ljCc.js → chunk-GF5L2VYU-D7yROYf0.js} +6 -6
- package/dist/component/{chunk-JWPE2WC7-ClHq4gN2.js → chunk-JWPE2WC7-CmGlHqne.js} +2 -2
- package/dist/component/{chunk-KBJHAD2P-BeCfHf5W.js → chunk-KBJHAD2P-W03s7swc.js} +2 -2
- package/dist/component/{chunk-RYQCIY6F-CuAngwHt.js → chunk-RYQCIY6F-D0oyMUJ7.js} +2 -2
- package/dist/component/{chunk-XXDRQBXY-D9c0CJyR.js → chunk-XXDRQBXY-D4s0eyp4.js} +2 -2
- package/dist/component/{classDiagram-JCYQIIEL-DdzIbKj1.js → classDiagram-JCYQIIEL-DwNAC2XG.js} +3 -3
- package/dist/component/{classDiagram-v2-OCEON4UE-DdzIbKj1.js → classDiagram-v2-OCEON4UE-DwNAC2XG.js} +3 -3
- package/dist/component/{cose-bilkent-JH36ORCC-hME9BYGm.js → cose-bilkent-JH36ORCC-DhGvXDdi.js} +2 -2
- package/dist/component/{cynefinDiagram-MW4NZA55-BiceKBPh.js → cynefinDiagram-MW4NZA55-BCUeX7pB.js} +3 -3
- package/dist/component/{dagre-VZM6K2ZE-DiPOLAUX.js → dagre-VZM6K2ZE-DWofHoga.js} +3 -3
- package/dist/component/{diagram-7IWD3JNH-BSDWgxjs.js → diagram-7IWD3JNH-DjCFF_Dr.js} +4 -4
- package/dist/component/{diagram-B4RE2ZJO-BdpGOPaT.js → diagram-B4RE2ZJO-CSovrpFW.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-B0V6_5ih.js → diagram-LBJQPF4R-Cgpae-sR.js} +3 -3
- package/dist/component/{diagram-Q27KOJAE-CYDb40TJ.js → diagram-Q27KOJAE-DikMPfLU.js} +4 -4
- package/dist/component/{diagram-UB23O5K3-DgwjRdl5.js → diagram-UB23O5K3-sQU6rZbO.js} +3 -3
- package/dist/component/{ebnfDiagram-BXEA7PRR-D-C7SWec.js → ebnfDiagram-BXEA7PRR-B9t8-G8R.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-DLJCjcXM.js → erDiagram-JOGREHBK-DKg1HhSl.js} +5 -5
- package/dist/component/{flowDiagram-UKHOOZJN-BZfBucKB.js → flowDiagram-UKHOOZJN-BO8jpT1D.js} +7 -7
- package/dist/component/{ganttDiagram-PKOTCBZU-CxTHmusv.js → ganttDiagram-PKOTCBZU-BPXYyB9Q.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-B_dWXxMf.js → gitGraphDiagram-DS77QQ5N-BjVLFBUS.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-CQ1ZdhQ-.js → highlighted-body-OFNGDK62-BKot66c3.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-P4GO-aVw.js → infoDiagram-6WML65LV-BkAC5Bwv.js} +2 -2
- package/dist/component/{ishikawaDiagram-WSZJBQD7-BMXMrxKI.js → ishikawaDiagram-WSZJBQD7-oplkIs_t.js} +2 -2
- package/dist/component/{journeyDiagram-NVQOT4AX-DPdTmxkF.js → journeyDiagram-NVQOT4AX-CuliMCSv.js} +5 -5
- package/dist/component/{kanban-definition-27J2QSJJ-sYw64NrE.js → kanban-definition-27J2QSJJ-DdzOdEiL.js} +3 -3
- package/dist/component/{linear-DYjDg3gl.js → linear-zZDwdGmK.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-DfdCmrs3.js → mermaid-GHXKKRXX-aX5umm-y.js} +46587 -40943
- package/dist/component/{mindmap-definition-FAOFIHXS-UkAbrucA.js → mindmap-definition-FAOFIHXS-DD2HF9oE.js} +4 -4
- package/dist/component/{pegDiagram-VL7TDLO6-BGab1it6.js → pegDiagram-VL7TDLO6-DyiDl9bF.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-BnY70Pr-.js → pieDiagram-7S7Q4E2Y-DflxKS_B.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-Cv1bjdQb.js → quadrantDiagram-CIZ2JOQS-nwwayVOP.js} +3 -3
- package/dist/component/{railroadDiagram-AXF67PYL-DJhLbGB_.js → railroadDiagram-AXF67PYL-BTtD2eN9.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-CLW3CgbU.js → requirementDiagram-LRYGKXZP-B37q1LKL.js} +4 -4
- package/dist/component/{sankeyDiagram-W5VNT64P-vnapx0yf.js → sankeyDiagram-W5VNT64P-zY0W9eje.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-I43iQsY0.js → sequenceDiagram-SI44F4Z6-CmQiqB8F.js} +4 -4
- package/dist/component/{sizeCapture-X5ZJPWSS-D9LGwwwC.js → sizeCapture-X5ZJPWSS-dF3FvIT8.js} +2 -2
- package/dist/component/snapdom-DkzCA8S0.js +7061 -0
- package/dist/component/{stateDiagram-OKZ733FA-BXejMYGk.js → stateDiagram-OKZ733FA-CX61F3L0.js} +3 -3
- package/dist/component/{stateDiagram-v2-UEYNNEHI-BP05TJSl.js → stateDiagram-v2-UEYNNEHI-DnFZhhu3.js} +3 -3
- package/dist/component/{swimlanes-SLNWSIFB-CfmDVYhs.js → swimlanes-SLNWSIFB-CX9XGBvw.js} +4 -4
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-DfjQBUfV.js → swimlanesDiagram-ULZ7WXOC-Bqkgx7qk.js} +3 -3
- package/dist/component/{timeline-definition-Z64GVDOM-C0BwzTs3.js → timeline-definition-Z64GVDOM-BUX4OSm1.js} +3 -3
- package/dist/component/{vennDiagram-T6HMQDX7-CRf8sGBL.js → vennDiagram-T6HMQDX7-BpVOq4Rh.js} +2 -2
- package/dist/component/{wardleyDiagram-T6FBY63Y-C2h7TQ4a.js → wardleyDiagram-T6FBY63Y-BUDGa8Mv.js} +3 -3
- package/dist/component/{xychartDiagram-ELKLHX3M-CBcAwmdF.js → xychartDiagram-ELKLHX3M-FIA_LnIu.js} +3 -3
- package/dist/components/embed/EmbedComposer.d.ts +11 -1
- package/dist/components/embed/EmbedHeader.d.ts +7 -1
- package/dist/components/embed/EmbedRail.d.ts +18 -2
- package/dist/components/embed/GoalActions.d.ts +15 -0
- package/dist/components/embed/GoalBadge.d.ts +17 -0
- package/dist/components/embed/GoalClearDialog.d.ts +6 -0
- package/dist/components/embed/GoalClearedLine.d.ts +3 -0
- package/dist/components/embed/GoalCompletionCard.d.ts +12 -0
- package/dist/components/embed/GoalComposeSheet.d.ts +19 -0
- package/dist/components/embed/GoalProposalCard.d.ts +29 -0
- package/dist/components/embed/GoalRailView.d.ts +15 -0
- package/dist/components/embed/GoalRefusalCard.d.ts +22 -0
- package/dist/components/embed/GoalSetCard.d.ts +5 -0
- package/dist/components/embed/GoalSnoozeMenu.d.ts +14 -0
- package/dist/components/embed/GoalStatusRow.d.ts +6 -0
- package/dist/components/embed/GoalTimeline.d.ts +6 -0
- package/dist/components/embed/MobileNavBar.d.ts +5 -1
- package/dist/components/embed/QuestionCard.d.ts +12 -1
- package/dist/components/embed/ScheduleNotices.d.ts +23 -0
- package/dist/components/embed/SentAsGoalTag.d.ts +1 -0
- package/dist/components/embed/SubagentsPaneBody.d.ts +3 -0
- package/dist/components/embed/rail-flags.d.ts +13 -0
- package/dist/components/feedback/IssueReportController.d.ts +1 -0
- package/dist/components/feedback/IssueReportDialog.d.ts +6 -0
- package/dist/components/skills/ConfirmDeleteSkillDialog.d.ts +9 -0
- package/dist/components/skills/SkillLibraryToolSync.d.ts +4 -0
- package/dist/components/skills/SkillsListSurface.d.ts +26 -0
- package/dist/components/skills/UploadSkillDialog.d.ts +32 -0
- package/dist/components/skills/skill-archive-file.d.ts +15 -0
- package/dist/embed/client-error-log.d.ts +72 -0
- package/dist/embed/dock-open-request.d.ts +32 -0
- package/dist/embed/dock-state.d.ts +1 -1
- package/dist/embed/goal-actions-model.d.ts +9 -0
- package/dist/embed/goal-cap-notice.d.ts +36 -0
- package/dist/embed/goal-deep-link.d.ts +24 -0
- package/dist/embed/goal-edit-command.d.ts +25 -0
- package/dist/embed/goal-journal.d.ts +53 -0
- package/dist/embed/goal-live-status.d.ts +2 -0
- package/dist/embed/goal-plain-units.d.ts +35 -0
- package/dist/embed/goal-progress.d.ts +15 -0
- package/dist/embed/goal-proposal-dismissal.d.ts +11 -0
- package/dist/embed/goal-resume-time.d.ts +22 -0
- package/dist/embed/goal-row-model.d.ts +27 -0
- package/dist/embed/goal-runway.d.ts +5 -0
- package/dist/embed/goal-schedule-handoff.d.ts +12 -0
- package/dist/embed/goal-status-label.d.ts +3 -0
- package/dist/embed/goal-time-usage.d.ts +19 -0
- package/dist/embed/issue-report-bus.d.ts +14 -0
- package/dist/embed/issue-report-open.d.ts +8 -0
- package/dist/embed/issue-report.d.ts +41 -0
- package/dist/embed/screen-capture.d.ts +74 -0
- package/dist/embed/slash-commands.d.ts +24 -0
- package/dist/embed/task-schedule-command.d.ts +7 -0
- package/dist/i18n/messages/en.d.ts +372 -8
- package/dist/i18n/messages/surfaces/feedback.d.ts +84 -0
- package/dist/i18n/messages/surfaces/header.d.ts +16 -0
- package/dist/i18n/messages/surfaces/skills.d.ts +216 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +152 -29
- package/dist/i18n/messages/surfaces/workspace.d.ts +20 -0
- package/dist/public-api.d.ts +1 -1
- package/dist/routes/chat/part-renderer-extra-props.d.ts +43 -0
- package/dist/routes/chat/use-goal-receipt.d.ts +37 -0
- package/dist/routes/chat/use-host-draft-request.d.ts +2 -0
- package/dist/routes/chat/use-session-goal.d.ts +226 -0
- package/dist/routes/chat.d.ts +10 -1
- package/dist/routes/goal.d.ts +1 -0
- package/dist/routes/skills.d.ts +2 -0
- package/dist/stream/activity-items.d.ts +25 -0
- package/dist/stream/ai-sdk-part-renderers.d.ts +64 -25
- package/dist/stream/belong-chat-transport.d.ts +142 -2
- package/dist/stream/belong-data-parts.d.ts +48 -4
- package/dist/stream/goal-store.d.ts +43 -0
- package/dist/stream/message-metadata.d.ts +1 -0
- package/dist/stream/message-parts.d.ts +42 -0
- package/dist/stream/select-goal-set-part-id.d.ts +2 -0
- package/dist/stream/select-latest-goal.d.ts +13 -0
- package/dist/stream/subagent-controls-store.d.ts +20 -0
- package/dist/stream/subagent-lanes-model.d.ts +175 -0
- package/dist/stream/subagent-lanes.d.ts +89 -0
- package/dist/stream/use-publish-subagent-controls.d.ts +11 -0
- package/dist/stream/workspace-focus-store.d.ts +7 -1
- package/dist/test/render.d.ts +18 -1
- package/dist/test/subagent-fixtures.d.ts +24 -0
- package/dist/types/public.d.ts +54 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -888,6 +888,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
888
888
|
};
|
|
889
889
|
output: {
|
|
890
890
|
messages: {
|
|
891
|
+
clientMessageId?: string | null | undefined;
|
|
891
892
|
metadata?: {
|
|
892
893
|
taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId;
|
|
893
894
|
feedback: {
|
|
@@ -941,6 +942,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
941
942
|
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
942
943
|
questionPresentation?: "text" | "card" | undefined;
|
|
943
944
|
workspaceExternalId?: string | undefined;
|
|
945
|
+
goal?: {
|
|
946
|
+
objective: string;
|
|
947
|
+
criteria?: string[] | undefined;
|
|
948
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
949
|
+
} | undefined;
|
|
944
950
|
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
945
951
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
946
952
|
llmModel?: string | undefined;
|
|
@@ -970,6 +976,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
970
976
|
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
971
977
|
questionPresentation?: "text" | "card" | undefined;
|
|
972
978
|
workspaceExternalId?: string | undefined;
|
|
979
|
+
goal?: {
|
|
980
|
+
objective: string;
|
|
981
|
+
criteria?: string[] | undefined;
|
|
982
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
983
|
+
} | undefined;
|
|
973
984
|
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
974
985
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
975
986
|
llmModel?: string | undefined;
|
|
@@ -998,6 +1009,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
998
1009
|
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
999
1010
|
questionPresentation?: "text" | "card" | undefined;
|
|
1000
1011
|
workspaceExternalId?: string | undefined;
|
|
1012
|
+
goal?: {
|
|
1013
|
+
objective: string;
|
|
1014
|
+
criteria?: string[] | undefined;
|
|
1015
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
1016
|
+
} | undefined;
|
|
1001
1017
|
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
1002
1018
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
1003
1019
|
llmModel?: string | undefined;
|
|
@@ -1026,6 +1042,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1026
1042
|
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
1027
1043
|
questionPresentation?: "text" | "card" | undefined;
|
|
1028
1044
|
workspaceExternalId?: string | undefined;
|
|
1045
|
+
goal?: {
|
|
1046
|
+
objective: string;
|
|
1047
|
+
criteria?: string[] | undefined;
|
|
1048
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
1049
|
+
} | undefined;
|
|
1029
1050
|
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
1030
1051
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
1031
1052
|
llmModel?: string | undefined;
|
|
@@ -1046,6 +1067,106 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1046
1067
|
};
|
|
1047
1068
|
outputFormat: "json";
|
|
1048
1069
|
status: 403;
|
|
1070
|
+
} | {
|
|
1071
|
+
input: {
|
|
1072
|
+
json: {
|
|
1073
|
+
text: string;
|
|
1074
|
+
timezone?: string | undefined;
|
|
1075
|
+
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
1076
|
+
questionPresentation?: "text" | "card" | undefined;
|
|
1077
|
+
workspaceExternalId?: string | undefined;
|
|
1078
|
+
goal?: {
|
|
1079
|
+
objective: string;
|
|
1080
|
+
criteria?: string[] | undefined;
|
|
1081
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
1084
|
+
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
1085
|
+
llmModel?: string | undefined;
|
|
1086
|
+
fileIds?: string[] | undefined;
|
|
1087
|
+
clientMessageId?: string | undefined;
|
|
1088
|
+
skill?: string | undefined;
|
|
1089
|
+
mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
|
|
1090
|
+
};
|
|
1091
|
+
} & {
|
|
1092
|
+
param: {
|
|
1093
|
+
sessionId: string;
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
output: {
|
|
1097
|
+
error: {
|
|
1098
|
+
type: string;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
outputFormat: "json";
|
|
1102
|
+
status: 503;
|
|
1103
|
+
} | {
|
|
1104
|
+
input: {
|
|
1105
|
+
json: {
|
|
1106
|
+
text: string;
|
|
1107
|
+
timezone?: string | undefined;
|
|
1108
|
+
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
1109
|
+
questionPresentation?: "text" | "card" | undefined;
|
|
1110
|
+
workspaceExternalId?: string | undefined;
|
|
1111
|
+
goal?: {
|
|
1112
|
+
objective: string;
|
|
1113
|
+
criteria?: string[] | undefined;
|
|
1114
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
1115
|
+
} | undefined;
|
|
1116
|
+
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
1117
|
+
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
1118
|
+
llmModel?: string | undefined;
|
|
1119
|
+
fileIds?: string[] | undefined;
|
|
1120
|
+
clientMessageId?: string | undefined;
|
|
1121
|
+
skill?: string | undefined;
|
|
1122
|
+
mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
|
|
1123
|
+
};
|
|
1124
|
+
} & {
|
|
1125
|
+
param: {
|
|
1126
|
+
sessionId: string;
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
output: {
|
|
1130
|
+
error: {
|
|
1131
|
+
type: string;
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
outputFormat: "json";
|
|
1135
|
+
status: 422;
|
|
1136
|
+
} | {
|
|
1137
|
+
input: {
|
|
1138
|
+
json: {
|
|
1139
|
+
text: string;
|
|
1140
|
+
timezone?: string | undefined;
|
|
1141
|
+
locale?: "en" | "es" | "pt" | "it" | undefined;
|
|
1142
|
+
questionPresentation?: "text" | "card" | undefined;
|
|
1143
|
+
workspaceExternalId?: string | undefined;
|
|
1144
|
+
goal?: {
|
|
1145
|
+
objective: string;
|
|
1146
|
+
criteria?: string[] | undefined;
|
|
1147
|
+
runway?: "quick" | "normal" | "long" | undefined;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
|
|
1150
|
+
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
|
|
1151
|
+
llmModel?: string | undefined;
|
|
1152
|
+
fileIds?: string[] | undefined;
|
|
1153
|
+
clientMessageId?: string | undefined;
|
|
1154
|
+
skill?: string | undefined;
|
|
1155
|
+
mode?: "plan" | "execute" | "approve" | "balanced" | "bypass" | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
} & {
|
|
1158
|
+
param: {
|
|
1159
|
+
sessionId: string;
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
output: {
|
|
1163
|
+
error: {
|
|
1164
|
+
type: string;
|
|
1165
|
+
limit: number;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
outputFormat: "json";
|
|
1169
|
+
status: 429;
|
|
1049
1170
|
};
|
|
1050
1171
|
}>;
|
|
1051
1172
|
};
|
|
@@ -1193,6 +1314,140 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1193
1314
|
};
|
|
1194
1315
|
};
|
|
1195
1316
|
};
|
|
1317
|
+
} & {
|
|
1318
|
+
v1: {
|
|
1319
|
+
sessions: {
|
|
1320
|
+
":sessionId": {
|
|
1321
|
+
goal: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal", {
|
|
1322
|
+
$get: {
|
|
1323
|
+
input: {
|
|
1324
|
+
param: {
|
|
1325
|
+
sessionId: string;
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
output: {};
|
|
1329
|
+
outputFormat: string;
|
|
1330
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1331
|
+
};
|
|
1332
|
+
}>;
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
} & {
|
|
1337
|
+
v1: {
|
|
1338
|
+
sessions: {
|
|
1339
|
+
":sessionId": {
|
|
1340
|
+
goal: {
|
|
1341
|
+
pause: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/pause", {
|
|
1342
|
+
$post: {
|
|
1343
|
+
input: {
|
|
1344
|
+
param: {
|
|
1345
|
+
sessionId: string;
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
output: {};
|
|
1349
|
+
outputFormat: string;
|
|
1350
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1351
|
+
};
|
|
1352
|
+
}>;
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
} & {
|
|
1358
|
+
v1: {
|
|
1359
|
+
sessions: {
|
|
1360
|
+
":sessionId": {
|
|
1361
|
+
goal: {
|
|
1362
|
+
resume: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/resume", {
|
|
1363
|
+
$post: {
|
|
1364
|
+
input: {
|
|
1365
|
+
param: {
|
|
1366
|
+
sessionId: string;
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
output: {};
|
|
1370
|
+
outputFormat: string;
|
|
1371
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1372
|
+
};
|
|
1373
|
+
}>;
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
} & {
|
|
1379
|
+
v1: {
|
|
1380
|
+
sessions: {
|
|
1381
|
+
":sessionId": {
|
|
1382
|
+
goal: {
|
|
1383
|
+
clear: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/clear", {
|
|
1384
|
+
$post: {
|
|
1385
|
+
input: {
|
|
1386
|
+
param: {
|
|
1387
|
+
sessionId: string;
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
output: {};
|
|
1391
|
+
outputFormat: string;
|
|
1392
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1393
|
+
};
|
|
1394
|
+
}>;
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
} & {
|
|
1400
|
+
v1: {
|
|
1401
|
+
sessions: {
|
|
1402
|
+
":sessionId": {
|
|
1403
|
+
goal: {
|
|
1404
|
+
edit: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/edit", {
|
|
1405
|
+
$post: {
|
|
1406
|
+
input: {
|
|
1407
|
+
json: {
|
|
1408
|
+
objective?: string | undefined;
|
|
1409
|
+
tokenBudget?: number | undefined;
|
|
1410
|
+
maxTurns?: number | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
} & {
|
|
1413
|
+
param: {
|
|
1414
|
+
sessionId: string;
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
output: {};
|
|
1418
|
+
outputFormat: string;
|
|
1419
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1420
|
+
};
|
|
1421
|
+
}>;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
} & {
|
|
1427
|
+
v1: {
|
|
1428
|
+
sessions: {
|
|
1429
|
+
":sessionId": {
|
|
1430
|
+
goal: {
|
|
1431
|
+
snooze: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/goal/snooze", {
|
|
1432
|
+
$post: {
|
|
1433
|
+
input: {
|
|
1434
|
+
json: {
|
|
1435
|
+
wakeAt: string;
|
|
1436
|
+
};
|
|
1437
|
+
} & {
|
|
1438
|
+
param: {
|
|
1439
|
+
sessionId: string;
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1442
|
+
output: {};
|
|
1443
|
+
outputFormat: string;
|
|
1444
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
1445
|
+
};
|
|
1446
|
+
}>;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1196
1451
|
} & {
|
|
1197
1452
|
v1: {
|
|
1198
1453
|
sessions: {
|
|
@@ -1526,6 +1781,56 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1526
1781
|
};
|
|
1527
1782
|
};
|
|
1528
1783
|
};
|
|
1784
|
+
} & {
|
|
1785
|
+
v1: {
|
|
1786
|
+
"issue-reports": import('hono/client').ClientRequest<string, "/v1/issue-reports", {
|
|
1787
|
+
$post: {
|
|
1788
|
+
input: {};
|
|
1789
|
+
output: {
|
|
1790
|
+
readonly error: {
|
|
1791
|
+
readonly type: "screenshot_too_large";
|
|
1792
|
+
readonly maxBytes: 2000000;
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
outputFormat: "json";
|
|
1796
|
+
status: 413;
|
|
1797
|
+
} | {
|
|
1798
|
+
input: {};
|
|
1799
|
+
output: {
|
|
1800
|
+
error: {
|
|
1801
|
+
type: string;
|
|
1802
|
+
};
|
|
1803
|
+
};
|
|
1804
|
+
outputFormat: "json";
|
|
1805
|
+
status: 400;
|
|
1806
|
+
} | {
|
|
1807
|
+
input: {};
|
|
1808
|
+
output: {
|
|
1809
|
+
error: {
|
|
1810
|
+
type: string;
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
outputFormat: "json";
|
|
1814
|
+
status: 415;
|
|
1815
|
+
} | {
|
|
1816
|
+
input: {};
|
|
1817
|
+
output: {
|
|
1818
|
+
reportId: import('node_modules/@belong/cloud/src/platform/ids').IssueReportId;
|
|
1819
|
+
};
|
|
1820
|
+
outputFormat: "json";
|
|
1821
|
+
status: 202;
|
|
1822
|
+
} | {
|
|
1823
|
+
input: {};
|
|
1824
|
+
output: {
|
|
1825
|
+
error: {
|
|
1826
|
+
type: string;
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
outputFormat: "json";
|
|
1830
|
+
status: 404;
|
|
1831
|
+
};
|
|
1832
|
+
}>;
|
|
1833
|
+
};
|
|
1529
1834
|
} & {
|
|
1530
1835
|
v1: {
|
|
1531
1836
|
legal: {
|
|
@@ -1616,6 +1921,63 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1616
1921
|
};
|
|
1617
1922
|
};
|
|
1618
1923
|
};
|
|
1924
|
+
} & {
|
|
1925
|
+
v1: {
|
|
1926
|
+
runs: {
|
|
1927
|
+
":runId": {
|
|
1928
|
+
subagents: {
|
|
1929
|
+
":subagentId": {
|
|
1930
|
+
stop: import('hono/client').ClientRequest<string, "/v1/runs/:runId/subagents/:subagentId/stop", {
|
|
1931
|
+
$post: {
|
|
1932
|
+
input: {
|
|
1933
|
+
param: {
|
|
1934
|
+
runId: string;
|
|
1935
|
+
} & {
|
|
1936
|
+
subagentId: string;
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
output: {
|
|
1940
|
+
error: {
|
|
1941
|
+
type: string;
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
outputFormat: "json";
|
|
1945
|
+
status: 404;
|
|
1946
|
+
} | {
|
|
1947
|
+
input: {
|
|
1948
|
+
param: {
|
|
1949
|
+
runId: string;
|
|
1950
|
+
} & {
|
|
1951
|
+
subagentId: string;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
output: {
|
|
1955
|
+
status: string;
|
|
1956
|
+
};
|
|
1957
|
+
outputFormat: "json";
|
|
1958
|
+
status: 202;
|
|
1959
|
+
} | {
|
|
1960
|
+
input: {
|
|
1961
|
+
param: {
|
|
1962
|
+
runId: string;
|
|
1963
|
+
} & {
|
|
1964
|
+
subagentId: string;
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
output: {
|
|
1968
|
+
error: {
|
|
1969
|
+
type: string;
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
outputFormat: "json";
|
|
1973
|
+
status: 409;
|
|
1974
|
+
};
|
|
1975
|
+
}>;
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
};
|
|
1619
1981
|
} & {
|
|
1620
1982
|
v1: {
|
|
1621
1983
|
approvals: {
|
|
@@ -3000,11 +3362,17 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3000
3362
|
snapshot?: string | undefined;
|
|
3001
3363
|
text?: string | undefined;
|
|
3002
3364
|
url?: string | undefined;
|
|
3365
|
+
http?: {
|
|
3366
|
+
status: number;
|
|
3367
|
+
body: string;
|
|
3368
|
+
truncated: boolean;
|
|
3369
|
+
redirected: boolean;
|
|
3370
|
+
} | undefined;
|
|
3003
3371
|
};
|
|
3004
3372
|
} | {
|
|
3005
3373
|
ok: false;
|
|
3006
3374
|
error: {
|
|
3007
|
-
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
|
|
3375
|
+
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
|
|
3008
3376
|
message: string;
|
|
3009
3377
|
};
|
|
3010
3378
|
};
|
|
@@ -3025,11 +3393,17 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3025
3393
|
snapshot?: string | undefined;
|
|
3026
3394
|
text?: string | undefined;
|
|
3027
3395
|
url?: string | undefined;
|
|
3396
|
+
http?: {
|
|
3397
|
+
status: number;
|
|
3398
|
+
body: string;
|
|
3399
|
+
truncated: boolean;
|
|
3400
|
+
redirected: boolean;
|
|
3401
|
+
} | undefined;
|
|
3028
3402
|
};
|
|
3029
3403
|
} | {
|
|
3030
3404
|
ok: false;
|
|
3031
3405
|
error: {
|
|
3032
|
-
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
|
|
3406
|
+
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
|
|
3033
3407
|
message: string;
|
|
3034
3408
|
};
|
|
3035
3409
|
};
|
|
@@ -3078,6 +3452,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3078
3452
|
} | {
|
|
3079
3453
|
op: "eval";
|
|
3080
3454
|
code: string;
|
|
3455
|
+
} | {
|
|
3456
|
+
op: "mcp_call";
|
|
3457
|
+
path: string;
|
|
3458
|
+
tool: string;
|
|
3459
|
+
arguments: Record<string, unknown>;
|
|
3081
3460
|
} | {
|
|
3082
3461
|
command: {
|
|
3083
3462
|
op: "snapshot";
|
|
@@ -3105,6 +3484,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3105
3484
|
} | {
|
|
3106
3485
|
op: "eval";
|
|
3107
3486
|
code: string;
|
|
3487
|
+
} | {
|
|
3488
|
+
op: "mcp_call";
|
|
3489
|
+
path: string;
|
|
3490
|
+
tool: string;
|
|
3491
|
+
arguments: Record<string, unknown>;
|
|
3108
3492
|
};
|
|
3109
3493
|
sessionId?: string | null | undefined;
|
|
3110
3494
|
};
|
|
@@ -3116,11 +3500,17 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3116
3500
|
snapshot?: string | undefined;
|
|
3117
3501
|
text?: string | undefined;
|
|
3118
3502
|
url?: string | undefined;
|
|
3503
|
+
http?: {
|
|
3504
|
+
status: number;
|
|
3505
|
+
body: string;
|
|
3506
|
+
truncated: boolean;
|
|
3507
|
+
redirected: boolean;
|
|
3508
|
+
} | undefined;
|
|
3119
3509
|
};
|
|
3120
3510
|
} | {
|
|
3121
3511
|
ok: false;
|
|
3122
3512
|
error: {
|
|
3123
|
-
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op";
|
|
3513
|
+
code: "timeout" | "stale_ref" | "not_typable" | "navigation_blocked" | "dom_error" | "eval_error" | "unsupported_op" | "mcp_not_allowed" | "mcp_fetch_failed" | "op_not_allowed";
|
|
3124
3514
|
message: string;
|
|
3125
3515
|
};
|
|
3126
3516
|
};
|
|
@@ -3155,6 +3545,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3155
3545
|
} | {
|
|
3156
3546
|
op: "eval";
|
|
3157
3547
|
code: string;
|
|
3548
|
+
} | {
|
|
3549
|
+
op: "mcp_call";
|
|
3550
|
+
path: string;
|
|
3551
|
+
tool: string;
|
|
3552
|
+
arguments: Record<string, unknown>;
|
|
3158
3553
|
} | {
|
|
3159
3554
|
command: {
|
|
3160
3555
|
op: "snapshot";
|
|
@@ -3182,6 +3577,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3182
3577
|
} | {
|
|
3183
3578
|
op: "eval";
|
|
3184
3579
|
code: string;
|
|
3580
|
+
} | {
|
|
3581
|
+
op: "mcp_call";
|
|
3582
|
+
path: string;
|
|
3583
|
+
tool: string;
|
|
3584
|
+
arguments: Record<string, unknown>;
|
|
3185
3585
|
};
|
|
3186
3586
|
sessionId?: string | null | undefined;
|
|
3187
3587
|
};
|
|
@@ -3221,6 +3621,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3221
3621
|
} | {
|
|
3222
3622
|
op: "eval";
|
|
3223
3623
|
code: string;
|
|
3624
|
+
} | {
|
|
3625
|
+
op: "mcp_call";
|
|
3626
|
+
path: string;
|
|
3627
|
+
tool: string;
|
|
3628
|
+
arguments: Record<string, unknown>;
|
|
3224
3629
|
} | {
|
|
3225
3630
|
command: {
|
|
3226
3631
|
op: "snapshot";
|
|
@@ -3248,6 +3653,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3248
3653
|
} | {
|
|
3249
3654
|
op: "eval";
|
|
3250
3655
|
code: string;
|
|
3656
|
+
} | {
|
|
3657
|
+
op: "mcp_call";
|
|
3658
|
+
path: string;
|
|
3659
|
+
tool: string;
|
|
3660
|
+
arguments: Record<string, unknown>;
|
|
3251
3661
|
};
|
|
3252
3662
|
sessionId?: string | null | undefined;
|
|
3253
3663
|
};
|
|
@@ -3287,6 +3697,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3287
3697
|
} | {
|
|
3288
3698
|
op: "eval";
|
|
3289
3699
|
code: string;
|
|
3700
|
+
} | {
|
|
3701
|
+
op: "mcp_call";
|
|
3702
|
+
path: string;
|
|
3703
|
+
tool: string;
|
|
3704
|
+
arguments: Record<string, unknown>;
|
|
3290
3705
|
} | {
|
|
3291
3706
|
command: {
|
|
3292
3707
|
op: "snapshot";
|
|
@@ -3314,6 +3729,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3314
3729
|
} | {
|
|
3315
3730
|
op: "eval";
|
|
3316
3731
|
code: string;
|
|
3732
|
+
} | {
|
|
3733
|
+
op: "mcp_call";
|
|
3734
|
+
path: string;
|
|
3735
|
+
tool: string;
|
|
3736
|
+
arguments: Record<string, unknown>;
|
|
3317
3737
|
};
|
|
3318
3738
|
sessionId?: string | null | undefined;
|
|
3319
3739
|
};
|
|
@@ -3353,6 +3773,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3353
3773
|
} | {
|
|
3354
3774
|
op: "eval";
|
|
3355
3775
|
code: string;
|
|
3776
|
+
} | {
|
|
3777
|
+
op: "mcp_call";
|
|
3778
|
+
path: string;
|
|
3779
|
+
tool: string;
|
|
3780
|
+
arguments: Record<string, unknown>;
|
|
3356
3781
|
} | {
|
|
3357
3782
|
command: {
|
|
3358
3783
|
op: "snapshot";
|
|
@@ -3380,6 +3805,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3380
3805
|
} | {
|
|
3381
3806
|
op: "eval";
|
|
3382
3807
|
code: string;
|
|
3808
|
+
} | {
|
|
3809
|
+
op: "mcp_call";
|
|
3810
|
+
path: string;
|
|
3811
|
+
tool: string;
|
|
3812
|
+
arguments: Record<string, unknown>;
|
|
3383
3813
|
};
|
|
3384
3814
|
sessionId?: string | null | undefined;
|
|
3385
3815
|
};
|
|
@@ -3419,6 +3849,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3419
3849
|
} | {
|
|
3420
3850
|
op: "eval";
|
|
3421
3851
|
code: string;
|
|
3852
|
+
} | {
|
|
3853
|
+
op: "mcp_call";
|
|
3854
|
+
path: string;
|
|
3855
|
+
tool: string;
|
|
3856
|
+
arguments: Record<string, unknown>;
|
|
3422
3857
|
} | {
|
|
3423
3858
|
command: {
|
|
3424
3859
|
op: "snapshot";
|
|
@@ -3446,6 +3881,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3446
3881
|
} | {
|
|
3447
3882
|
op: "eval";
|
|
3448
3883
|
code: string;
|
|
3884
|
+
} | {
|
|
3885
|
+
op: "mcp_call";
|
|
3886
|
+
path: string;
|
|
3887
|
+
tool: string;
|
|
3888
|
+
arguments: Record<string, unknown>;
|
|
3449
3889
|
};
|
|
3450
3890
|
sessionId?: string | null | undefined;
|
|
3451
3891
|
};
|
|
@@ -3951,7 +4391,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3951
4391
|
v1: {
|
|
3952
4392
|
skills: import('hono/client').ClientRequest<string, "/v1/skills", {
|
|
3953
4393
|
$get: {
|
|
3954
|
-
input: {
|
|
4394
|
+
input: {
|
|
4395
|
+
query: {
|
|
4396
|
+
workspaceExternalId?: string | string[];
|
|
4397
|
+
};
|
|
4398
|
+
};
|
|
3955
4399
|
output: {
|
|
3956
4400
|
skills: readonly {
|
|
3957
4401
|
readonly name: string;
|
|
@@ -5435,6 +5879,225 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
5435
5879
|
}>;
|
|
5436
5880
|
};
|
|
5437
5881
|
};
|
|
5882
|
+
} & {
|
|
5883
|
+
v1: {
|
|
5884
|
+
"skill-library": import('hono/client').ClientRequest<string, "/v1/skill-library", {
|
|
5885
|
+
$get: {
|
|
5886
|
+
input: {
|
|
5887
|
+
query: {
|
|
5888
|
+
workspaceExternalId?: string | string[];
|
|
5889
|
+
};
|
|
5890
|
+
};
|
|
5891
|
+
output: {
|
|
5892
|
+
skills: {
|
|
5893
|
+
userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
|
|
5894
|
+
name: string;
|
|
5895
|
+
description: string;
|
|
5896
|
+
enabled: boolean;
|
|
5897
|
+
revision: number;
|
|
5898
|
+
hasScripts: boolean;
|
|
5899
|
+
filesCount: number;
|
|
5900
|
+
archiveSizeBytes: number;
|
|
5901
|
+
updatedAt: string;
|
|
5902
|
+
}[];
|
|
5903
|
+
};
|
|
5904
|
+
outputFormat: "json";
|
|
5905
|
+
status: 200;
|
|
5906
|
+
};
|
|
5907
|
+
}>;
|
|
5908
|
+
};
|
|
5909
|
+
} & {
|
|
5910
|
+
v1: {
|
|
5911
|
+
"skill-library": {
|
|
5912
|
+
import: import('hono/client').ClientRequest<string, "/v1/skill-library/import", {
|
|
5913
|
+
$post: {
|
|
5914
|
+
input: {};
|
|
5915
|
+
output: {
|
|
5916
|
+
readonly error: {
|
|
5917
|
+
readonly type: "missing_scope";
|
|
5918
|
+
readonly requiredScope: "session:write";
|
|
5919
|
+
};
|
|
5920
|
+
};
|
|
5921
|
+
outputFormat: "json";
|
|
5922
|
+
status: 403;
|
|
5923
|
+
} | {
|
|
5924
|
+
input: {};
|
|
5925
|
+
output: {
|
|
5926
|
+
readonly error: {
|
|
5927
|
+
readonly type: "invalid_workspace_external_id";
|
|
5928
|
+
};
|
|
5929
|
+
};
|
|
5930
|
+
outputFormat: "json";
|
|
5931
|
+
status: 400;
|
|
5932
|
+
} | {
|
|
5933
|
+
input: {};
|
|
5934
|
+
output: {
|
|
5935
|
+
readonly error: {
|
|
5936
|
+
readonly type: "archive_too_large";
|
|
5937
|
+
readonly maxArchiveBytes: 10485760;
|
|
5938
|
+
};
|
|
5939
|
+
};
|
|
5940
|
+
outputFormat: "json";
|
|
5941
|
+
status: 413;
|
|
5942
|
+
} | {
|
|
5943
|
+
input: {};
|
|
5944
|
+
output: {
|
|
5945
|
+
error: {
|
|
5946
|
+
type: string;
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5949
|
+
outputFormat: "json";
|
|
5950
|
+
status: 400;
|
|
5951
|
+
} | {
|
|
5952
|
+
input: {};
|
|
5953
|
+
output: {
|
|
5954
|
+
userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
|
|
5955
|
+
name: string;
|
|
5956
|
+
revision: number;
|
|
5957
|
+
outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
|
|
5958
|
+
hasScripts: boolean;
|
|
5959
|
+
};
|
|
5960
|
+
outputFormat: "json";
|
|
5961
|
+
status: 200 | 201;
|
|
5962
|
+
} | {
|
|
5963
|
+
input: {};
|
|
5964
|
+
output: {
|
|
5965
|
+
error: {
|
|
5966
|
+
type: string;
|
|
5967
|
+
};
|
|
5968
|
+
};
|
|
5969
|
+
outputFormat: "json";
|
|
5970
|
+
status: 422;
|
|
5971
|
+
} | {
|
|
5972
|
+
input: {};
|
|
5973
|
+
output: {
|
|
5974
|
+
error: {
|
|
5975
|
+
type: string;
|
|
5976
|
+
name: string;
|
|
5977
|
+
userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
|
|
5978
|
+
};
|
|
5979
|
+
};
|
|
5980
|
+
outputFormat: "json";
|
|
5981
|
+
status: 409;
|
|
5982
|
+
};
|
|
5983
|
+
}>;
|
|
5984
|
+
};
|
|
5985
|
+
};
|
|
5986
|
+
} & {
|
|
5987
|
+
v1: {
|
|
5988
|
+
"skill-library": {
|
|
5989
|
+
":userSkillId": import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId", {
|
|
5990
|
+
$patch: {
|
|
5991
|
+
input: {
|
|
5992
|
+
param: {
|
|
5993
|
+
userSkillId: string;
|
|
5994
|
+
};
|
|
5995
|
+
} & {
|
|
5996
|
+
json: {
|
|
5997
|
+
enabled: boolean;
|
|
5998
|
+
};
|
|
5999
|
+
};
|
|
6000
|
+
output: {
|
|
6001
|
+
readonly error: {
|
|
6002
|
+
readonly type: "missing_scope";
|
|
6003
|
+
readonly requiredScope: "session:write";
|
|
6004
|
+
};
|
|
6005
|
+
};
|
|
6006
|
+
outputFormat: "json";
|
|
6007
|
+
status: 403;
|
|
6008
|
+
} | {
|
|
6009
|
+
input: {
|
|
6010
|
+
param: {
|
|
6011
|
+
userSkillId: string;
|
|
6012
|
+
};
|
|
6013
|
+
} & {
|
|
6014
|
+
json: {
|
|
6015
|
+
enabled: boolean;
|
|
6016
|
+
};
|
|
6017
|
+
};
|
|
6018
|
+
output: {
|
|
6019
|
+
readonly error: {
|
|
6020
|
+
readonly type: "not_found";
|
|
6021
|
+
};
|
|
6022
|
+
};
|
|
6023
|
+
outputFormat: "json";
|
|
6024
|
+
status: 404;
|
|
6025
|
+
} | {
|
|
6026
|
+
input: {
|
|
6027
|
+
param: {
|
|
6028
|
+
userSkillId: string;
|
|
6029
|
+
};
|
|
6030
|
+
} & {
|
|
6031
|
+
json: {
|
|
6032
|
+
enabled: boolean;
|
|
6033
|
+
};
|
|
6034
|
+
};
|
|
6035
|
+
output: {
|
|
6036
|
+
userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
|
|
6037
|
+
enabled: boolean;
|
|
6038
|
+
};
|
|
6039
|
+
outputFormat: "json";
|
|
6040
|
+
status: 200;
|
|
6041
|
+
};
|
|
6042
|
+
$delete: {
|
|
6043
|
+
input: {
|
|
6044
|
+
param: {
|
|
6045
|
+
userSkillId: string;
|
|
6046
|
+
};
|
|
6047
|
+
};
|
|
6048
|
+
output: null;
|
|
6049
|
+
outputFormat: "body";
|
|
6050
|
+
status: 204;
|
|
6051
|
+
} | {
|
|
6052
|
+
input: {
|
|
6053
|
+
param: {
|
|
6054
|
+
userSkillId: string;
|
|
6055
|
+
};
|
|
6056
|
+
};
|
|
6057
|
+
output: {
|
|
6058
|
+
readonly error: {
|
|
6059
|
+
readonly type: "missing_scope";
|
|
6060
|
+
readonly requiredScope: "session:write";
|
|
6061
|
+
};
|
|
6062
|
+
};
|
|
6063
|
+
outputFormat: "json";
|
|
6064
|
+
status: 403;
|
|
6065
|
+
} | {
|
|
6066
|
+
input: {
|
|
6067
|
+
param: {
|
|
6068
|
+
userSkillId: string;
|
|
6069
|
+
};
|
|
6070
|
+
};
|
|
6071
|
+
output: {
|
|
6072
|
+
readonly error: {
|
|
6073
|
+
readonly type: "not_found";
|
|
6074
|
+
};
|
|
6075
|
+
};
|
|
6076
|
+
outputFormat: "json";
|
|
6077
|
+
status: 404;
|
|
6078
|
+
};
|
|
6079
|
+
}>;
|
|
6080
|
+
};
|
|
6081
|
+
};
|
|
6082
|
+
} & {
|
|
6083
|
+
v1: {
|
|
6084
|
+
"skill-library": {
|
|
6085
|
+
":userSkillId": {
|
|
6086
|
+
download: import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId/download", {
|
|
6087
|
+
$get: {
|
|
6088
|
+
input: {
|
|
6089
|
+
param: {
|
|
6090
|
+
userSkillId: string;
|
|
6091
|
+
};
|
|
6092
|
+
};
|
|
6093
|
+
output: {};
|
|
6094
|
+
outputFormat: string;
|
|
6095
|
+
status: import('hono/utils/http-status').StatusCode;
|
|
6096
|
+
};
|
|
6097
|
+
}>;
|
|
6098
|
+
};
|
|
6099
|
+
};
|
|
6100
|
+
};
|
|
5438
6101
|
} & {
|
|
5439
6102
|
v1: {
|
|
5440
6103
|
connectors: import('hono/client').ClientRequest<string, "/v1/connectors", {
|