@belonguniverseai/react-sdk 0.6.23 → 0.6.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/api/client.d.ts +363 -29
  2. package/dist/api/mutations.d.ts +9 -1
  3. package/dist/api/query-keys.d.ts +19 -0
  4. package/dist/api/skill-library.d.ts +81 -0
  5. package/dist/component/{abnfDiagram-N423BO3Z-bM1BoI0O.js → abnfDiagram-N423BO3Z-D7OrqwMe.js} +4 -4
  6. package/dist/component/{arc-DaSgre52.js → arc-CZN7i2F-.js} +2 -2
  7. package/dist/component/{architectureDiagram-T3A2C74G-avMCXzQw.js → architectureDiagram-T3A2C74G-CVX4aJSk.js} +3 -3
  8. package/dist/component/{blockDiagram-VBNYF7ZC-Cg6EDrdt.js → blockDiagram-VBNYF7ZC-DrT23ReK.js} +4 -4
  9. package/dist/component/{c4Diagram-5PPSVZJV-DhUs6wdK.js → c4Diagram-5PPSVZJV-yA6JuHOr.js} +3 -3
  10. package/dist/component/{channel-DlmuDpcv.js → channel-vZcyyovp.js} +2 -2
  11. package/dist/component/{chunk-2GRJ4B5K-Drdf-9Az.js → chunk-2GRJ4B5K-C5DL0bNM.js} +2 -2
  12. package/dist/component/{chunk-2Q5K7J3B-CG6mCJjr.js → chunk-2Q5K7J3B-B5BiYW__.js} +2 -2
  13. package/dist/component/{chunk-5RXB4S5H-DYJwqjr4.js → chunk-5RXB4S5H-wnHQNeJ5.js} +5 -5
  14. package/dist/component/{chunk-5VM5RSS4-B21XfkBj.js → chunk-5VM5RSS4-CdjvYb3M.js} +2 -2
  15. package/dist/component/{chunk-6Q2QTUOP-DZkWqf90.js → chunk-6Q2QTUOP-CNSvyjis.js} +2 -2
  16. package/dist/component/{chunk-GF5L2VYU-5hBEo1f5.js → chunk-GF5L2VYU-D7BI1tvK.js} +6 -6
  17. package/dist/component/{chunk-JWPE2WC7-DAn-TcDC.js → chunk-JWPE2WC7-CeLQPuLU.js} +2 -2
  18. package/dist/component/{chunk-KBJHAD2P-CEMDhN2A.js → chunk-KBJHAD2P-DgAf9tRz.js} +2 -2
  19. package/dist/component/{chunk-RYQCIY6F-BWL1otLK.js → chunk-RYQCIY6F-DjFej6-h.js} +2 -2
  20. package/dist/component/{chunk-XXDRQBXY-D0TWnqlD.js → chunk-XXDRQBXY-CkNxuLox.js} +2 -2
  21. package/dist/component/{classDiagram-JCYQIIEL-CjU-7xK0.js → classDiagram-JCYQIIEL-TyORp-Xl.js} +3 -3
  22. package/dist/component/{classDiagram-v2-OCEON4UE-CjU-7xK0.js → classDiagram-v2-OCEON4UE-TyORp-Xl.js} +3 -3
  23. package/dist/component/{cose-bilkent-JH36ORCC-MkPQhZKJ.js → cose-bilkent-JH36ORCC-C_lOBXUY.js} +2 -2
  24. package/dist/component/{cynefinDiagram-MW4NZA55-Wf-Eh_MR.js → cynefinDiagram-MW4NZA55-DqMIe0ZV.js} +3 -3
  25. package/dist/component/{dagre-VZM6K2ZE-D1ND11ws.js → dagre-VZM6K2ZE-B3HtBfbf.js} +3 -3
  26. package/dist/component/{diagram-7IWD3JNH-ChO63Ikp.js → diagram-7IWD3JNH-1uYIe-Fx.js} +4 -4
  27. package/dist/component/{diagram-B4RE2ZJO-CFVIZBxd.js → diagram-B4RE2ZJO-DLvDbgTV.js} +3 -3
  28. package/dist/component/{diagram-LBJQPF4R-BFErKt-H.js → diagram-LBJQPF4R-CdaGcjGt.js} +3 -3
  29. package/dist/component/{diagram-Q27KOJAE-3EA2fDKz.js → diagram-Q27KOJAE-u24QPtAZ.js} +4 -4
  30. package/dist/component/{diagram-UB23O5K3-D914yr1r.js → diagram-UB23O5K3-D0YnNMp3.js} +3 -3
  31. package/dist/component/{ebnfDiagram-BXEA7PRR-BlRDglJm.js → ebnfDiagram-BXEA7PRR-DdL9-qpf.js} +4 -4
  32. package/dist/component/{erDiagram-JOGREHBK-BgHUzm41.js → erDiagram-JOGREHBK-1mtJehIC.js} +5 -5
  33. package/dist/component/{flowDiagram-UKHOOZJN-Cf42sXVK.js → flowDiagram-UKHOOZJN-BPwuBLmT.js} +7 -7
  34. package/dist/component/{ganttDiagram-PKOTCBZU-Bqai8Nqw.js → ganttDiagram-PKOTCBZU-C0dhxKZn.js} +3 -3
  35. package/dist/component/{gitGraphDiagram-DS77QQ5N-M6yX_E4b.js → gitGraphDiagram-DS77QQ5N-9pn8I5Ww.js} +4 -4
  36. package/dist/component/{highlighted-body-OFNGDK62-C2rmuXAs.js → highlighted-body-OFNGDK62-BtE2oU8T.js} +2 -2
  37. package/dist/component/index.js +2 -2
  38. package/dist/component/{infoDiagram-6WML65LV-Bk4qDfY4.js → infoDiagram-6WML65LV-Un5rOho6.js} +2 -2
  39. package/dist/component/{ishikawaDiagram-WSZJBQD7-CQ0-i0XP.js → ishikawaDiagram-WSZJBQD7-B_Q76Ncg.js} +2 -2
  40. package/dist/component/{journeyDiagram-NVQOT4AX-CK9lX22d.js → journeyDiagram-NVQOT4AX-CvjCKkXJ.js} +5 -5
  41. package/dist/component/{kanban-definition-27J2QSJJ-CrIKfzfe.js → kanban-definition-27J2QSJJ-DTk-MzTa.js} +3 -3
  42. package/dist/component/{linear-CzN3Xd3g.js → linear-Bjkwtb4n.js} +2 -2
  43. package/dist/component/{mermaid-GHXKKRXX-B-ea5OKA.js → mermaid-GHXKKRXX-CUdhS07I.js} +51014 -48010
  44. package/dist/component/{mindmap-definition-FAOFIHXS-DUDsEObz.js → mindmap-definition-FAOFIHXS-NMNGkbeM.js} +4 -4
  45. package/dist/component/{pegDiagram-VL7TDLO6-DFJ-rOLH.js → pegDiagram-VL7TDLO6-DP8ndDG1.js} +4 -4
  46. package/dist/component/{pieDiagram-7S7Q4E2Y-OwliOUdN.js → pieDiagram-7S7Q4E2Y-CneShL4n.js} +4 -4
  47. package/dist/component/{quadrantDiagram-CIZ2JOQS-CLKxzqPi.js → quadrantDiagram-CIZ2JOQS-DwKlYHP_.js} +3 -3
  48. package/dist/component/{railroadDiagram-AXF67PYL-_jBOX7-D.js → railroadDiagram-AXF67PYL-D7hQRdO5.js} +4 -4
  49. package/dist/component/{requirementDiagram-LRYGKXZP-CxfMaDPH.js → requirementDiagram-LRYGKXZP-BLxtMc17.js} +4 -4
  50. package/dist/component/{sankeyDiagram-W5VNT64P-D-qOUzh7.js → sankeyDiagram-W5VNT64P-CXp6dM_4.js} +2 -2
  51. package/dist/component/{sequenceDiagram-SI44F4Z6-B57h29Ae.js → sequenceDiagram-SI44F4Z6-Ce7VH5G7.js} +4 -4
  52. package/dist/component/{sizeCapture-X5ZJPWSS-DlIoKfk1.js → sizeCapture-X5ZJPWSS-CUTOnfZv.js} +2 -2
  53. package/dist/component/{stateDiagram-OKZ733FA-CNNoDNwB.js → stateDiagram-OKZ733FA-Bu73CVSq.js} +3 -3
  54. package/dist/component/{stateDiagram-v2-UEYNNEHI-xYjW9R-s.js → stateDiagram-v2-UEYNNEHI-ktw3g3Qt.js} +3 -3
  55. package/dist/component/{swimlanes-SLNWSIFB-Chjr6NCU.js → swimlanes-SLNWSIFB-DBKvCdnJ.js} +4 -4
  56. package/dist/component/{swimlanesDiagram-ULZ7WXOC-A9mWwnCX.js → swimlanesDiagram-ULZ7WXOC-CEWTxRuN.js} +3 -3
  57. package/dist/component/{timeline-definition-Z64GVDOM-DldyCd1l.js → timeline-definition-Z64GVDOM-C3MMj2z6.js} +3 -3
  58. package/dist/component/{vennDiagram-T6HMQDX7-BGfiPWG2.js → vennDiagram-T6HMQDX7-BRuneBor.js} +2 -2
  59. package/dist/component/{wardleyDiagram-T6FBY63Y-Bzn9DJ27.js → wardleyDiagram-T6FBY63Y-Dyd4EEZv.js} +3 -3
  60. package/dist/component/{xychartDiagram-ELKLHX3M-nMaNgT12.js → xychartDiagram-ELKLHX3M-BDUULgvJ.js} +3 -3
  61. package/dist/components/ai-elements/markdown-repair-samples.d.ts +27 -0
  62. package/dist/components/ai-elements/terminal-task.d.ts +3 -1
  63. package/dist/components/embed/ChatTitleEditor.d.ts +17 -0
  64. package/dist/components/embed/ComposerContext.d.ts +7 -7
  65. package/dist/components/embed/EarlierMessages.d.ts +17 -0
  66. package/dist/components/embed/EmbedAvatar.d.ts +1 -3
  67. package/dist/components/embed/EmbedConversation.d.ts +6 -1
  68. package/dist/components/embed/EmbedHeader.d.ts +14 -2
  69. package/dist/components/embed/VirtualTranscript.d.ts +12 -0
  70. package/dist/components/embed/context-occupancy.d.ts +15 -0
  71. package/dist/components/embed/session-intent.d.ts +3 -0
  72. package/dist/components/embed/use-agent-identity.d.ts +1 -0
  73. package/dist/components/embed/virtual-transcript-settings.d.ts +15 -0
  74. package/dist/components/feedback/feedback-votes.d.ts +3 -0
  75. package/dist/components/feedback/message-feedback.d.ts +2 -2
  76. package/dist/components/skills/EditSkillDialog.d.ts +8 -0
  77. package/dist/components/skills/SkillsListSurface.d.ts +3 -2
  78. package/dist/components/skills/skill-refusal-copy.d.ts +8 -0
  79. package/dist/embed/conversation-scroll.d.ts +18 -0
  80. package/dist/embed/copy.d.ts +0 -1
  81. package/dist/embed/voice-call-lines.d.ts +14 -5
  82. package/dist/i18n/messages/en.d.ts +21 -12
  83. package/dist/i18n/messages/surfaces/skills.d.ts +71 -3
  84. package/dist/i18n/messages/surfaces/usage.d.ts +12 -44
  85. package/dist/i18n/messages/surfaces/workspace.d.ts +7 -5
  86. package/dist/lib/remembered-state.d.ts +9 -0
  87. package/dist/lib/use-remembered-disclosure.d.ts +2 -0
  88. package/dist/routes/chat/draft-updaters.d.ts +16 -0
  89. package/dist/routes/chat/history-cache.d.ts +47 -0
  90. package/dist/routes/chat/history-paging.d.ts +61 -0
  91. package/dist/routes/chat/kept-chats.d.ts +39 -0
  92. package/dist/routes/chat/live-chats.d.ts +14 -0
  93. package/dist/routes/chat/transcript-pins.d.ts +4 -0
  94. package/dist/routes/chat/transcript-row.d.ts +49 -0
  95. package/dist/routes/chat/use-session-goal.d.ts +6 -1
  96. package/dist/routes/chat.d.ts +8 -21
  97. package/dist/stream/activity-items.d.ts +2 -0
  98. package/dist/stream/agent-deliverable-path.d.ts +1 -0
  99. package/dist/stream/ai-sdk-part-renderers.d.ts +14 -1
  100. package/dist/stream/belong-chat-transport.d.ts +23 -1
  101. package/dist/stream/belong-data-parts.d.ts +13 -0
  102. package/dist/stream/dispatch-once.d.ts +12 -0
  103. package/dist/stream/sandbox-output-store.d.ts +14 -0
  104. package/dist/stream/sandbox-output.d.ts +8 -3
  105. package/dist/stream/select-session-usage.d.ts +15 -1
  106. package/dist/stream/tool-call-detail.d.ts +16 -0
  107. package/dist/types/public.d.ts +11 -0
  108. package/package.json +1 -1
@@ -888,6 +888,12 @@ export declare const createApiClient: (baseUrl: string) => {
888
888
  messages: import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/messages", {
889
889
  $get: {
890
890
  input: {
891
+ query: {
892
+ limit?: string | string[];
893
+ before?: string | string[];
894
+ parts?: string | string[];
895
+ };
896
+ } & {
891
897
  param: {
892
898
  sessionId: string;
893
899
  };
@@ -928,6 +934,12 @@ export declare const createApiClient: (baseUrl: string) => {
928
934
  status: import('hono/utils/http-status').ContentfulStatusCode;
929
935
  } | {
930
936
  input: {
937
+ query: {
938
+ limit?: string | string[];
939
+ before?: string | string[];
940
+ parts?: string | string[];
941
+ };
942
+ } & {
931
943
  param: {
932
944
  sessionId: string;
933
945
  };
@@ -939,6 +951,25 @@ export declare const createApiClient: (baseUrl: string) => {
939
951
  };
940
952
  outputFormat: "json";
941
953
  status: 404;
954
+ } | {
955
+ input: {
956
+ query: {
957
+ limit?: string | string[];
958
+ before?: string | string[];
959
+ parts?: string | string[];
960
+ };
961
+ } & {
962
+ param: {
963
+ sessionId: string;
964
+ };
965
+ };
966
+ output: {
967
+ error: {
968
+ type: string;
969
+ };
970
+ };
971
+ outputFormat: "json";
972
+ status: 400;
942
973
  };
943
974
  $post: {
944
975
  input: {
@@ -954,7 +985,7 @@ export declare const createApiClient: (baseUrl: string) => {
954
985
  runway?: "quick" | "normal" | "long" | undefined;
955
986
  } | undefined;
956
987
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
957
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
988
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
958
989
  llmModel?: string | undefined;
959
990
  fileIds?: string[] | undefined;
960
991
  clientMessageId?: string | undefined;
@@ -988,7 +1019,7 @@ export declare const createApiClient: (baseUrl: string) => {
988
1019
  runway?: "quick" | "normal" | "long" | undefined;
989
1020
  } | undefined;
990
1021
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
991
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1022
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
992
1023
  llmModel?: string | undefined;
993
1024
  fileIds?: string[] | undefined;
994
1025
  clientMessageId?: string | undefined;
@@ -1021,7 +1052,7 @@ export declare const createApiClient: (baseUrl: string) => {
1021
1052
  runway?: "quick" | "normal" | "long" | undefined;
1022
1053
  } | undefined;
1023
1054
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1024
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1055
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1025
1056
  llmModel?: string | undefined;
1026
1057
  fileIds?: string[] | undefined;
1027
1058
  clientMessageId?: string | undefined;
@@ -1054,7 +1085,7 @@ export declare const createApiClient: (baseUrl: string) => {
1054
1085
  runway?: "quick" | "normal" | "long" | undefined;
1055
1086
  } | undefined;
1056
1087
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1057
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1088
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1058
1089
  llmModel?: string | undefined;
1059
1090
  fileIds?: string[] | undefined;
1060
1091
  clientMessageId?: string | undefined;
@@ -1087,7 +1118,7 @@ export declare const createApiClient: (baseUrl: string) => {
1087
1118
  runway?: "quick" | "normal" | "long" | undefined;
1088
1119
  } | undefined;
1089
1120
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1090
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1121
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1091
1122
  llmModel?: string | undefined;
1092
1123
  fileIds?: string[] | undefined;
1093
1124
  clientMessageId?: string | undefined;
@@ -1120,7 +1151,7 @@ export declare const createApiClient: (baseUrl: string) => {
1120
1151
  runway?: "quick" | "normal" | "long" | undefined;
1121
1152
  } | undefined;
1122
1153
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1123
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1154
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1124
1155
  llmModel?: string | undefined;
1125
1156
  fileIds?: string[] | undefined;
1126
1157
  clientMessageId?: string | undefined;
@@ -1153,7 +1184,7 @@ export declare const createApiClient: (baseUrl: string) => {
1153
1184
  runway?: "quick" | "normal" | "long" | undefined;
1154
1185
  } | undefined;
1155
1186
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
1156
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
1187
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
1157
1188
  llmModel?: string | undefined;
1158
1189
  fileIds?: string[] | undefined;
1159
1190
  clientMessageId?: string | undefined;
@@ -1178,6 +1209,60 @@ export declare const createApiClient: (baseUrl: string) => {
1178
1209
  };
1179
1210
  };
1180
1211
  };
1212
+ } & {
1213
+ v1: {
1214
+ sessions: {
1215
+ ":sessionId": {
1216
+ "tool-calls": {
1217
+ ":toolCallId": import('hono/client').ClientRequest<string, "/v1/sessions/:sessionId/tool-calls/:toolCallId", {
1218
+ $get: {
1219
+ input: {
1220
+ param: {
1221
+ sessionId: string;
1222
+ toolCallId: string;
1223
+ };
1224
+ };
1225
+ output: {
1226
+ readonly parts: readonly ({
1227
+ [x: string]: import('hono/utils/types').JSONValue;
1228
+ type: string;
1229
+ id?: string | undefined;
1230
+ data?: import('hono/utils/types').JSONValue;
1231
+ text?: string | undefined;
1232
+ } | {
1233
+ readonly type: "file";
1234
+ readonly url: string;
1235
+ readonly mediaType: string;
1236
+ readonly filename: string;
1237
+ readonly providerMetadata: {
1238
+ readonly belong: {
1239
+ readonly fileId: string;
1240
+ };
1241
+ };
1242
+ })[];
1243
+ };
1244
+ outputFormat: "json";
1245
+ status: import('hono/utils/http-status').ContentfulStatusCode;
1246
+ } | {
1247
+ input: {
1248
+ param: {
1249
+ sessionId: string;
1250
+ toolCallId: string;
1251
+ };
1252
+ };
1253
+ output: {
1254
+ error: {
1255
+ type: string;
1256
+ };
1257
+ };
1258
+ outputFormat: "json";
1259
+ status: 404;
1260
+ };
1261
+ }>;
1262
+ };
1263
+ };
1264
+ };
1265
+ };
1181
1266
  } & {
1182
1267
  v1: {
1183
1268
  sessions: {
@@ -2668,6 +2753,29 @@ export declare const createApiClient: (baseUrl: string) => {
2668
2753
  previews: {
2669
2754
  mint: import('hono/client').ClientRequest<string, "/v1/previews/mint", {
2670
2755
  $post: {
2756
+ input: {
2757
+ json: {
2758
+ target: {
2759
+ kind: "artifact";
2760
+ artifactId: string;
2761
+ } | {
2762
+ kind: "file";
2763
+ fileId: string;
2764
+ } | {
2765
+ kind: "workspace";
2766
+ path: string;
2767
+ workspaceExternalId: string | null;
2768
+ };
2769
+ };
2770
+ };
2771
+ output: {
2772
+ error: {
2773
+ type: string;
2774
+ };
2775
+ };
2776
+ outputFormat: "json";
2777
+ status: 404;
2778
+ } | {
2671
2779
  input: {
2672
2780
  json: {
2673
2781
  target: {
@@ -4989,7 +5097,7 @@ export declare const createApiClient: (baseUrl: string) => {
4989
5097
  originatingSessionId?: string | undefined;
4990
5098
  workspaceExternalId?: string | undefined;
4991
5099
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
4992
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5100
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
4993
5101
  llmModel?: string | undefined;
4994
5102
  };
4995
5103
  };
@@ -5036,7 +5144,7 @@ export declare const createApiClient: (baseUrl: string) => {
5036
5144
  originatingSessionId?: string | undefined;
5037
5145
  workspaceExternalId?: string | undefined;
5038
5146
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5039
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5147
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
5040
5148
  llmModel?: string | undefined;
5041
5149
  };
5042
5150
  };
@@ -5088,7 +5196,7 @@ export declare const createApiClient: (baseUrl: string) => {
5088
5196
  originatingSessionId?: string | undefined;
5089
5197
  workspaceExternalId?: string | undefined;
5090
5198
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5091
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5199
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
5092
5200
  llmModel?: string | undefined;
5093
5201
  };
5094
5202
  };
@@ -5134,7 +5242,7 @@ export declare const createApiClient: (baseUrl: string) => {
5134
5242
  originatingSessionId?: string | undefined;
5135
5243
  workspaceExternalId?: string | undefined;
5136
5244
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5137
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
5245
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
5138
5246
  llmModel?: string | undefined;
5139
5247
  };
5140
5248
  };
@@ -5341,6 +5449,7 @@ export declare const createApiClient: (baseUrl: string) => {
5341
5449
  } & {
5342
5450
  json: {
5343
5451
  expectedRevision?: number | undefined;
5452
+ recipients?: string[] | undefined;
5344
5453
  title?: string | null | undefined;
5345
5454
  message?: string | undefined;
5346
5455
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5382,6 +5491,7 @@ export declare const createApiClient: (baseUrl: string) => {
5382
5491
  } & {
5383
5492
  json: {
5384
5493
  expectedRevision?: number | undefined;
5494
+ recipients?: string[] | undefined;
5385
5495
  title?: string | null | undefined;
5386
5496
  message?: string | undefined;
5387
5497
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5423,6 +5533,7 @@ export declare const createApiClient: (baseUrl: string) => {
5423
5533
  } & {
5424
5534
  json: {
5425
5535
  expectedRevision?: number | undefined;
5536
+ recipients?: string[] | undefined;
5426
5537
  title?: string | null | undefined;
5427
5538
  message?: string | undefined;
5428
5539
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5464,6 +5575,7 @@ export declare const createApiClient: (baseUrl: string) => {
5464
5575
  } & {
5465
5576
  json: {
5466
5577
  expectedRevision?: number | undefined;
5578
+ recipients?: string[] | undefined;
5467
5579
  title?: string | null | undefined;
5468
5580
  message?: string | undefined;
5469
5581
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5505,6 +5617,7 @@ export declare const createApiClient: (baseUrl: string) => {
5505
5617
  } & {
5506
5618
  json: {
5507
5619
  expectedRevision?: number | undefined;
5620
+ recipients?: string[] | undefined;
5508
5621
  title?: string | null | undefined;
5509
5622
  message?: string | undefined;
5510
5623
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -5952,7 +6065,7 @@ export declare const createApiClient: (baseUrl: string) => {
5952
6065
  originatingSessionId?: string | undefined;
5953
6066
  workspaceExternalId?: string | undefined;
5954
6067
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
5955
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6068
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
5956
6069
  llmModel?: string | undefined;
5957
6070
  };
5958
6071
  };
@@ -5999,7 +6112,7 @@ export declare const createApiClient: (baseUrl: string) => {
5999
6112
  originatingSessionId?: string | undefined;
6000
6113
  workspaceExternalId?: string | undefined;
6001
6114
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6002
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6115
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6003
6116
  llmModel?: string | undefined;
6004
6117
  };
6005
6118
  };
@@ -6051,7 +6164,7 @@ export declare const createApiClient: (baseUrl: string) => {
6051
6164
  originatingSessionId?: string | undefined;
6052
6165
  workspaceExternalId?: string | undefined;
6053
6166
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6054
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6167
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6055
6168
  llmModel?: string | undefined;
6056
6169
  };
6057
6170
  };
@@ -6097,7 +6210,7 @@ export declare const createApiClient: (baseUrl: string) => {
6097
6210
  originatingSessionId?: string | undefined;
6098
6211
  workspaceExternalId?: string | undefined;
6099
6212
  runtime?: "fake" | "claude-agent-sdk" | "mastra" | "claude-managed" | undefined;
6100
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "openrouter" | "vertex" | undefined;
6213
+ llmProvider?: "anthropic" | "openai" | "google" | "gateway" | "cerebras" | "openrouter" | "vertex" | undefined;
6101
6214
  llmModel?: string | undefined;
6102
6215
  };
6103
6216
  };
@@ -6304,6 +6417,7 @@ export declare const createApiClient: (baseUrl: string) => {
6304
6417
  } & {
6305
6418
  json: {
6306
6419
  expectedRevision?: number | undefined;
6420
+ recipients?: string[] | undefined;
6307
6421
  title?: string | null | undefined;
6308
6422
  message?: string | undefined;
6309
6423
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -6345,6 +6459,7 @@ export declare const createApiClient: (baseUrl: string) => {
6345
6459
  } & {
6346
6460
  json: {
6347
6461
  expectedRevision?: number | undefined;
6462
+ recipients?: string[] | undefined;
6348
6463
  title?: string | null | undefined;
6349
6464
  message?: string | undefined;
6350
6465
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -6386,6 +6501,7 @@ export declare const createApiClient: (baseUrl: string) => {
6386
6501
  } & {
6387
6502
  json: {
6388
6503
  expectedRevision?: number | undefined;
6504
+ recipients?: string[] | undefined;
6389
6505
  title?: string | null | undefined;
6390
6506
  message?: string | undefined;
6391
6507
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -6427,6 +6543,7 @@ export declare const createApiClient: (baseUrl: string) => {
6427
6543
  } & {
6428
6544
  json: {
6429
6545
  expectedRevision?: number | undefined;
6546
+ recipients?: string[] | undefined;
6430
6547
  title?: string | null | undefined;
6431
6548
  message?: string | undefined;
6432
6549
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -6468,6 +6585,7 @@ export declare const createApiClient: (baseUrl: string) => {
6468
6585
  } & {
6469
6586
  json: {
6470
6587
  expectedRevision?: number | undefined;
6588
+ recipients?: string[] | undefined;
6471
6589
  title?: string | null | undefined;
6472
6590
  message?: string | undefined;
6473
6591
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
@@ -7042,6 +7160,7 @@ export declare const createApiClient: (baseUrl: string) => {
7042
7160
  intervalMinutes: number;
7043
7161
  } | undefined;
7044
7162
  mode?: undefined;
7163
+ recipients?: undefined;
7045
7164
  };
7046
7165
  };
7047
7166
  output: {
@@ -7079,6 +7198,7 @@ export declare const createApiClient: (baseUrl: string) => {
7079
7198
  intervalMinutes: number;
7080
7199
  } | undefined;
7081
7200
  mode?: undefined;
7201
+ recipients?: undefined;
7082
7202
  };
7083
7203
  };
7084
7204
  output: {
@@ -7115,6 +7235,7 @@ export declare const createApiClient: (baseUrl: string) => {
7115
7235
  intervalMinutes: number;
7116
7236
  } | undefined;
7117
7237
  mode?: undefined;
7238
+ recipients?: undefined;
7118
7239
  };
7119
7240
  };
7120
7241
  output: {
@@ -7644,18 +7765,18 @@ export declare const createApiClient: (baseUrl: string) => {
7644
7765
  };
7645
7766
  };
7646
7767
  outputFormat: "json";
7647
- status: 400;
7768
+ status: 422;
7648
7769
  } | {
7649
7770
  input: {};
7650
7771
  output: {
7651
- userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7652
- name: string;
7653
- revision: number;
7654
- outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
7655
- hasScripts: boolean;
7772
+ error: {
7773
+ type: string;
7774
+ name: string;
7775
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7776
+ };
7656
7777
  };
7657
7778
  outputFormat: "json";
7658
- status: 200 | 201;
7779
+ status: 409;
7659
7780
  } | {
7660
7781
  input: {};
7661
7782
  output: {
@@ -7664,18 +7785,18 @@ export declare const createApiClient: (baseUrl: string) => {
7664
7785
  };
7665
7786
  };
7666
7787
  outputFormat: "json";
7667
- status: 422;
7788
+ status: 400;
7668
7789
  } | {
7669
7790
  input: {};
7670
7791
  output: {
7671
- error: {
7672
- type: string;
7673
- name: string;
7674
- userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7675
- };
7792
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7793
+ name: string;
7794
+ revision: number;
7795
+ outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillSaveOutcome;
7796
+ hasScripts: boolean;
7676
7797
  };
7677
7798
  outputFormat: "json";
7678
- status: 409;
7799
+ status: 200 | 201;
7679
7800
  };
7680
7801
  }>;
7681
7802
  };
@@ -7795,6 +7916,219 @@ export declare const createApiClient: (baseUrl: string) => {
7795
7916
  };
7796
7917
  };
7797
7918
  };
7919
+ } & {
7920
+ v1: {
7921
+ "skill-library": {
7922
+ ":userSkillId": {
7923
+ content: import('hono/client').ClientRequest<string, "/v1/skill-library/:userSkillId/content", {
7924
+ $get: {
7925
+ input: {
7926
+ param: {
7927
+ userSkillId: string;
7928
+ };
7929
+ };
7930
+ output: {
7931
+ readonly error: {
7932
+ readonly type: "not_found";
7933
+ };
7934
+ };
7935
+ outputFormat: "json";
7936
+ status: 404;
7937
+ } | {
7938
+ input: {
7939
+ param: {
7940
+ userSkillId: string;
7941
+ };
7942
+ };
7943
+ output: {
7944
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
7945
+ name: string;
7946
+ description: string;
7947
+ skillMd: string;
7948
+ revision: number;
7949
+ enabled: boolean;
7950
+ hasScripts: boolean;
7951
+ files: string[];
7952
+ };
7953
+ outputFormat: "json";
7954
+ status: 200;
7955
+ };
7956
+ $put: {
7957
+ input: {
7958
+ param: {
7959
+ userSkillId: string;
7960
+ };
7961
+ } & {
7962
+ json: {
7963
+ skillMd: string;
7964
+ expectedRevision: number;
7965
+ };
7966
+ };
7967
+ output: {
7968
+ readonly error: {
7969
+ readonly type: "missing_scope";
7970
+ readonly requiredScope: "session:write";
7971
+ };
7972
+ };
7973
+ outputFormat: "json";
7974
+ status: 403;
7975
+ } | {
7976
+ input: {
7977
+ param: {
7978
+ userSkillId: string;
7979
+ };
7980
+ } & {
7981
+ json: {
7982
+ skillMd: string;
7983
+ expectedRevision: number;
7984
+ };
7985
+ };
7986
+ output: {
7987
+ readonly error: {
7988
+ readonly type: "not_found";
7989
+ };
7990
+ };
7991
+ outputFormat: "json";
7992
+ status: 404;
7993
+ } | {
7994
+ input: {
7995
+ param: {
7996
+ userSkillId: string;
7997
+ };
7998
+ } & {
7999
+ json: {
8000
+ skillMd: string;
8001
+ expectedRevision: number;
8002
+ };
8003
+ };
8004
+ output: {
8005
+ readonly error: {
8006
+ readonly type: "archive_too_large";
8007
+ readonly maxArchiveBytes: 10485760;
8008
+ };
8009
+ };
8010
+ outputFormat: "json";
8011
+ status: 413;
8012
+ } | {
8013
+ input: {
8014
+ param: {
8015
+ userSkillId: string;
8016
+ };
8017
+ } & {
8018
+ json: {
8019
+ skillMd: string;
8020
+ expectedRevision: number;
8021
+ };
8022
+ };
8023
+ output: {
8024
+ error: {
8025
+ type: string;
8026
+ reason: import('node_modules/@belong/cloud/src/features/skill-library/skill-archive').SkillArchiveRejectionType;
8027
+ };
8028
+ };
8029
+ outputFormat: "json";
8030
+ status: 422;
8031
+ } | {
8032
+ input: {
8033
+ param: {
8034
+ userSkillId: string;
8035
+ };
8036
+ } & {
8037
+ json: {
8038
+ skillMd: string;
8039
+ expectedRevision: number;
8040
+ };
8041
+ };
8042
+ output: {
8043
+ error: {
8044
+ type: string;
8045
+ name: string;
8046
+ reservedBy: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').NameReservedBy;
8047
+ };
8048
+ };
8049
+ outputFormat: "json";
8050
+ status: 422;
8051
+ } | {
8052
+ input: {
8053
+ param: {
8054
+ userSkillId: string;
8055
+ };
8056
+ } & {
8057
+ json: {
8058
+ skillMd: string;
8059
+ expectedRevision: number;
8060
+ };
8061
+ };
8062
+ output: {
8063
+ error: {
8064
+ type: string;
8065
+ };
8066
+ };
8067
+ outputFormat: "json";
8068
+ status: 422;
8069
+ } | {
8070
+ input: {
8071
+ param: {
8072
+ userSkillId: string;
8073
+ };
8074
+ } & {
8075
+ json: {
8076
+ skillMd: string;
8077
+ expectedRevision: number;
8078
+ };
8079
+ };
8080
+ output: {
8081
+ error: {
8082
+ type: string;
8083
+ name: string;
8084
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
8085
+ };
8086
+ };
8087
+ outputFormat: "json";
8088
+ status: 409;
8089
+ } | {
8090
+ input: {
8091
+ param: {
8092
+ userSkillId: string;
8093
+ };
8094
+ } & {
8095
+ json: {
8096
+ skillMd: string;
8097
+ expectedRevision: number;
8098
+ };
8099
+ };
8100
+ output: {
8101
+ userSkillId: import('node_modules/@belong/cloud/src/platform/ids').UserSkillId;
8102
+ name: string;
8103
+ revision: number;
8104
+ outcome: import('node_modules/@belong/cloud/src/features/skill-library/skill-library.service').SkillContentOutcome;
8105
+ };
8106
+ outputFormat: "json";
8107
+ status: 200;
8108
+ } | {
8109
+ input: {
8110
+ param: {
8111
+ userSkillId: string;
8112
+ };
8113
+ } & {
8114
+ json: {
8115
+ skillMd: string;
8116
+ expectedRevision: number;
8117
+ };
8118
+ };
8119
+ output: {
8120
+ error: {
8121
+ type: string;
8122
+ revision: number;
8123
+ };
8124
+ };
8125
+ outputFormat: "json";
8126
+ status: 409;
8127
+ };
8128
+ }>;
8129
+ };
8130
+ };
8131
+ };
7798
8132
  } & {
7799
8133
  v1: {
7800
8134
  connectors: import('hono/client').ClientRequest<string, "/v1/connectors", {
@@ -2,7 +2,15 @@ import { ApiClient } from './client.ts';
2
2
  export declare const deleteSessionRequest: (api: ApiClient, sessionId: string) => Promise<void>;
3
3
  export declare const useDeleteSession: () => import('@tanstack/react-query').UseMutationResult<void, Error, string, unknown>;
4
4
  export declare const renameSessionRequest: (api: ApiClient, sessionId: string, title: string) => Promise<void>;
5
+ /**
6
+ * A cached sessions list with one row renamed — the optimistic half of a
7
+ * rename. `unknown` in and out because it runs as a `setQueriesData` updater;
8
+ * anything that is not a sessions list comes back unchanged.
9
+ */
10
+ export declare const renameInSessionList: (data: unknown, sessionId: string, title: string) => unknown;
5
11
  export declare const useRenameSession: () => import('@tanstack/react-query').UseMutationResult<void, Error, {
6
12
  readonly sessionId: string;
7
13
  readonly title: string;
8
- }, unknown>;
14
+ }, {
15
+ snapshot: [readonly unknown[], unknown][];
16
+ }>;