@belonguniverseai/react-sdk 0.6.35 → 0.6.37

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 (93) hide show
  1. package/dist/api/client.d.ts +120 -32
  2. package/dist/api/connectors.d.ts +11 -0
  3. package/dist/api/proactive.d.ts +12 -0
  4. package/dist/api/questions.d.ts +1 -1
  5. package/dist/api/task-schedules.d.ts +9 -9
  6. package/dist/app/dock-story-data.d.ts +2 -2
  7. package/dist/component/BelongWidget.d.ts +2 -2
  8. package/dist/component/{abnfDiagram-N423BO3Z-CRZoFiVH.js → abnfDiagram-N423BO3Z-rK11gCuw.js} +4 -4
  9. package/dist/component/{architectureDiagram-T3A2C74G-CaRtqw4X.js → architectureDiagram-T3A2C74G-C1fDFU4x.js} +6 -6
  10. package/dist/component/{blockDiagram-VBNYF7ZC-BK04msnb.js → blockDiagram-VBNYF7ZC-CIIYxs7W.js} +8 -8
  11. package/dist/component/{c4Diagram-5PPSVZJV-BMDcb-rm.js → c4Diagram-5PPSVZJV-D0xe0LhD.js} +4 -4
  12. package/dist/component/{channel-Da7DEnT8.js → channel-DHf95WkB.js} +2 -2
  13. package/dist/component/{chunk-2GRJ4B5K-CxwwCtK7.js → chunk-2GRJ4B5K-DJk-FbzK.js} +2 -2
  14. package/dist/component/{chunk-3NCLNEKW-C6R8qHlR.js → chunk-3NCLNEKW-_C9hD1ul.js} +2 -2
  15. package/dist/component/{chunk-4I5QYGJK-Ccf8L2Bk.js → chunk-4I5QYGJK-B_3nmgHd.js} +2 -2
  16. package/dist/component/{chunk-5RXB4S5H-V2z-LyAY.js → chunk-5RXB4S5H-DziHhBp7.js} +6 -6
  17. package/dist/component/{chunk-6Q2QTUOP-C6GL9-4r.js → chunk-6Q2QTUOP-CyeRnoqL.js} +3 -3
  18. package/dist/component/{chunk-7Z6QIM7H-BV6R4sWE.js → chunk-7Z6QIM7H-BvEk7IjN.js} +8 -8
  19. package/dist/component/{chunk-GF5L2VYU-DAD1p6ak.js → chunk-GF5L2VYU-DFdrfj8S.js} +6 -6
  20. package/dist/component/{chunk-I66GZJ75-DEykrnbu.js → chunk-I66GZJ75-BVlp1JJ3.js} +2 -2
  21. package/dist/component/{chunk-J7OUQ5F2-CEWcOukY.js → chunk-J7OUQ5F2-R59lQHxP.js} +7 -7
  22. package/dist/component/{chunk-JQJVKLGR-DCAX80x3.js → chunk-JQJVKLGR-BjFxgfuL.js} +8 -8
  23. package/dist/component/{chunk-KBJHAD2P-Bk8hJC_U.js → chunk-KBJHAD2P-D1ocoB1a.js} +2 -2
  24. package/dist/component/{chunk-NSK5VX7P-D-saWvpt.js → chunk-NSK5VX7P-CmvUkGFa.js} +2 -2
  25. package/dist/component/{chunk-QR6OTTB3-CMv_Vw9A.js → chunk-QR6OTTB3-6ofCyHE2.js} +7 -7
  26. package/dist/component/{chunk-UBXNYLIW-BfXPFCA1.js → chunk-UBXNYLIW-DgQyKHNe.js} +3 -3
  27. package/dist/component/{chunk-W5SLKNZC-BL-VPYuH.js → chunk-W5SLKNZC-DSgs5pb1.js} +2 -2
  28. package/dist/component/{chunk-WRU74C26-BXxIvhYq.js → chunk-WRU74C26-DzxU7J7M.js} +4 -4
  29. package/dist/component/{classDiagram-JCYQIIEL-CRKRQjr4.js → classDiagram-JCYQIIEL-BknOsFu3.js} +13 -13
  30. package/dist/component/{classDiagram-v2-OCEON4UE-ltwXlVlU.js → classDiagram-v2-OCEON4UE-CDIs8Rvl.js} +13 -13
  31. package/dist/component/{component-BNq6d1iV.js → component-DHNI8DmD.js} +17521 -17193
  32. package/dist/component/{cynefinDiagram-MW4NZA55-Bju0bDR1.js → cynefinDiagram-MW4NZA55-DRk2rLVG.js} +4 -4
  33. package/dist/component/{dagre-VZM6K2ZE-fMS2g5Lt.js → dagre-VZM6K2ZE-6dDo8vcv.js} +9 -9
  34. package/dist/component/{diagram-7IWD3JNH-CoDJAyv-.js → diagram-7IWD3JNH-CZkXMjIH.js} +5 -5
  35. package/dist/component/{diagram-B4RE2ZJO-nioVFGn5.js → diagram-B4RE2ZJO-DIoO4x6J.js} +3 -3
  36. package/dist/component/{diagram-LBJQPF4R-BuBX2Dz0.js → diagram-LBJQPF4R-o7HLLGFz.js} +4 -4
  37. package/dist/component/{diagram-Q27KOJAE-D6amwUDE.js → diagram-Q27KOJAE-BY-hokjN.js} +6 -6
  38. package/dist/component/{diagram-UB23O5K3-BfBhBu7Y.js → diagram-UB23O5K3-D9_7IpwX.js} +4 -4
  39. package/dist/component/{ebnfDiagram-BXEA7PRR-Cy3CaiTX.js → ebnfDiagram-BXEA7PRR-CA6DgX-J.js} +4 -4
  40. package/dist/component/{erDiagram-JOGREHBK-BUomkKWY.js → erDiagram-JOGREHBK-B2e6ieJI.js} +12 -12
  41. package/dist/component/flowDiagram-UKHOOZJN-KAoNtclS.js +19 -0
  42. package/dist/component/{ganttDiagram-PKOTCBZU-BWWeGylo.js → ganttDiagram-PKOTCBZU-CXWlDKZD.js} +3 -3
  43. package/dist/component/{gitGraphDiagram-DS77QQ5N-BFNi8KrJ.js → gitGraphDiagram-DS77QQ5N-ChosGXFO.js} +3 -3
  44. package/dist/component/index.d.ts +1 -1
  45. package/dist/component/index.js +2 -2
  46. package/dist/component/{infoDiagram-6WML65LV-Ba4nVdwJ.js → infoDiagram-6WML65LV-CWzYdOA_.js} +3 -3
  47. package/dist/component/{ishikawaDiagram-WSZJBQD7-JBSR3acP.js → ishikawaDiagram-WSZJBQD7-DCePzZHH.js} +4 -4
  48. package/dist/component/{journeyDiagram-NVQOT4AX-BAGUQhvd.js → journeyDiagram-NVQOT4AX-izcwbeeP.js} +3 -3
  49. package/dist/component/{kanban-definition-27J2QSJJ-CIBw8XVT.js → kanban-definition-27J2QSJJ-DR73dp4V.js} +9 -9
  50. package/dist/component/{line-BPXxX2mb.js → line-BZtHRQ5-.js} +2 -2
  51. package/dist/component/{mindmap-definition-FAOFIHXS-ZwmeO9Ju.js → mindmap-definition-FAOFIHXS-DLE_Fj51.js} +11 -11
  52. package/dist/component/{pegDiagram-VL7TDLO6-g6cHkKXH.js → pegDiagram-VL7TDLO6-DO3t9HIS.js} +4 -4
  53. package/dist/component/{pieDiagram-7S7Q4E2Y-6if4UZeA.js → pieDiagram-7S7Q4E2Y-BbwvXWvD.js} +4 -4
  54. package/dist/component/{quadrantDiagram-CIZ2JOQS-DW9Wi1_3.js → quadrantDiagram-CIZ2JOQS-UFgMo21N.js} +2 -2
  55. package/dist/component/{railroadDiagram-AXF67PYL-DRKsvNWu.js → railroadDiagram-AXF67PYL-BDh1A2ex.js} +4 -4
  56. package/dist/component/{requirementDiagram-LRYGKXZP-CKtakT6g.js → requirementDiagram-LRYGKXZP-MZZT3yVT.js} +11 -11
  57. package/dist/component/{sankeyDiagram-W5VNT64P-B-oejkos.js → sankeyDiagram-W5VNT64P-C0b2-i0q.js} +2 -2
  58. package/dist/component/{sequenceDiagram-SI44F4Z6-3RmdhrrK.js → sequenceDiagram-SI44F4Z6-BwL_YUO5.js} +4 -4
  59. package/dist/component/{stateDiagram-OKZ733FA-ChwQeLFK.js → stateDiagram-OKZ733FA-DEZXsS8t.js} +14 -14
  60. package/dist/component/{stateDiagram-v2-UEYNNEHI-Cu0mGIbX.js → stateDiagram-v2-UEYNNEHI-2MgNefm0.js} +13 -13
  61. package/dist/component/{swimlanes-SLNWSIFB-B1f2ZxW_.js → swimlanes-SLNWSIFB-X67Rhw2Q.js} +9 -9
  62. package/dist/component/{swimlanesDiagram-ULZ7WXOC-CspwK4RG.js → swimlanesDiagram-ULZ7WXOC-DZOs4i8X.js} +13 -13
  63. package/dist/component/{timeline-definition-Z64GVDOM-Bg9gKcBJ.js → timeline-definition-Z64GVDOM-7nBVxaU9.js} +4 -4
  64. package/dist/component/{vennDiagram-T6HMQDX7-BS7jr5XD.js → vennDiagram-T6HMQDX7-DiCHf_z0.js} +4 -4
  65. package/dist/component/{wardleyDiagram-T6FBY63Y-DVm3XZBO.js → wardleyDiagram-T6FBY63Y-ChtSGywV.js} +4 -4
  66. package/dist/component/{xychartDiagram-ELKLHX3M-Cg8qYbc9.js → xychartDiagram-ELKLHX3M-E-EkjY4L.js} +7 -7
  67. package/dist/components/embed/QuestionCard.d.ts +5 -5
  68. package/dist/components/embed/WorkspaceChip.d.ts +1 -0
  69. package/dist/components/pinned/profile/ProfileActivityTab.d.ts +2 -0
  70. package/dist/components/pinned/profile/ProfileSourcesTab.d.ts +9 -1
  71. package/dist/components/ui/dialog.d.ts +2 -1
  72. package/dist/embed/issue-report-bus.d.ts +2 -0
  73. package/dist/embed/presets.d.ts +2 -2
  74. package/dist/embed/screen-capture.d.ts +1 -2
  75. package/dist/embed/voice/session-create.d.ts +0 -18
  76. package/dist/embed/workspace-path-availability.d.ts +12 -0
  77. package/dist/embed/workspace-scope.d.ts +7 -1
  78. package/dist/i18n/messages/en.d.ts +17 -1
  79. package/dist/i18n/messages/surfaces/connectors.d.ts +8 -0
  80. package/dist/i18n/messages/surfaces/feedback.d.ts +12 -0
  81. package/dist/i18n/messages/surfaces/header.d.ts +4 -0
  82. package/dist/i18n/messages/surfaces/pinned.d.ts +36 -0
  83. package/dist/i18n/messages/surfaces/settings.d.ts +4 -0
  84. package/dist/i18n/messages/surfaces/stream.d.ts +1 -1
  85. package/dist/public-api.d.ts +1 -1
  86. package/dist/routes/chat/question-parts.d.ts +9 -12
  87. package/dist/routes/chat/queued-messages.d.ts +1 -0
  88. package/dist/stream/belong-chat-transport.d.ts +8 -7
  89. package/dist/stream/belong-data-parts.d.ts +5 -0
  90. package/dist/stream/pending-question-store.d.ts +7 -3
  91. package/dist/types/public.d.ts +14 -1
  92. package/package.json +1 -1
  93. package/dist/component/flowDiagram-UKHOOZJN-C0aiK5kF.js +0 -19
@@ -836,8 +836,10 @@ export declare const createApiClient: (baseUrl: string) => {
836
836
  json: {
837
837
  title?: string | undefined;
838
838
  workspaceExternalId?: string | undefined;
839
+ workspacePath?: string | undefined;
840
+ workspaceName?: string | undefined;
839
841
  origin?: "user" | "benchmark" | undefined;
840
- surface?: "unknown" | "dock" | "connector" | "api" | undefined;
842
+ surface?: "dock" | "unknown" | "connector" | "api" | undefined;
841
843
  };
842
844
  };
843
845
  output: {
@@ -850,8 +852,10 @@ export declare const createApiClient: (baseUrl: string) => {
850
852
  json: {
851
853
  title?: string | undefined;
852
854
  workspaceExternalId?: string | undefined;
855
+ workspacePath?: string | undefined;
856
+ workspaceName?: string | undefined;
853
857
  origin?: "user" | "benchmark" | undefined;
854
- surface?: "unknown" | "dock" | "connector" | "api" | undefined;
858
+ surface?: "dock" | "unknown" | "connector" | "api" | undefined;
855
859
  };
856
860
  };
857
861
  output: {
@@ -1101,7 +1105,7 @@ export declare const createApiClient: (baseUrl: string) => {
1101
1105
  } | undefined;
1102
1106
  workspaceScope?: "open" | "strict" | undefined;
1103
1107
  questionPresentation?: "text" | "card" | undefined;
1104
- cliReconnect?: "none" | "dock" | undefined;
1108
+ cliReconnect?: "dock" | "none" | undefined;
1105
1109
  workspaceExternalId?: string | undefined;
1106
1110
  goal?: {
1107
1111
  objective: string;
@@ -1141,7 +1145,7 @@ export declare const createApiClient: (baseUrl: string) => {
1141
1145
  } | undefined;
1142
1146
  workspaceScope?: "open" | "strict" | undefined;
1143
1147
  questionPresentation?: "text" | "card" | undefined;
1144
- cliReconnect?: "none" | "dock" | undefined;
1148
+ cliReconnect?: "dock" | "none" | undefined;
1145
1149
  workspaceExternalId?: string | undefined;
1146
1150
  goal?: {
1147
1151
  objective: string;
@@ -1181,7 +1185,7 @@ export declare const createApiClient: (baseUrl: string) => {
1181
1185
  } | undefined;
1182
1186
  workspaceScope?: "open" | "strict" | undefined;
1183
1187
  questionPresentation?: "text" | "card" | undefined;
1184
- cliReconnect?: "none" | "dock" | undefined;
1188
+ cliReconnect?: "dock" | "none" | undefined;
1185
1189
  workspaceExternalId?: string | undefined;
1186
1190
  goal?: {
1187
1191
  objective: string;
@@ -1220,7 +1224,7 @@ export declare const createApiClient: (baseUrl: string) => {
1220
1224
  } | undefined;
1221
1225
  workspaceScope?: "open" | "strict" | undefined;
1222
1226
  questionPresentation?: "text" | "card" | undefined;
1223
- cliReconnect?: "none" | "dock" | undefined;
1227
+ cliReconnect?: "dock" | "none" | undefined;
1224
1228
  workspaceExternalId?: string | undefined;
1225
1229
  goal?: {
1226
1230
  objective: string;
@@ -1259,7 +1263,7 @@ export declare const createApiClient: (baseUrl: string) => {
1259
1263
  } | undefined;
1260
1264
  workspaceScope?: "open" | "strict" | undefined;
1261
1265
  questionPresentation?: "text" | "card" | undefined;
1262
- cliReconnect?: "none" | "dock" | undefined;
1266
+ cliReconnect?: "dock" | "none" | undefined;
1263
1267
  workspaceExternalId?: string | undefined;
1264
1268
  goal?: {
1265
1269
  objective: string;
@@ -1298,7 +1302,7 @@ export declare const createApiClient: (baseUrl: string) => {
1298
1302
  } | undefined;
1299
1303
  workspaceScope?: "open" | "strict" | undefined;
1300
1304
  questionPresentation?: "text" | "card" | undefined;
1301
- cliReconnect?: "none" | "dock" | undefined;
1305
+ cliReconnect?: "dock" | "none" | undefined;
1302
1306
  workspaceExternalId?: string | undefined;
1303
1307
  goal?: {
1304
1308
  objective: string;
@@ -1337,7 +1341,7 @@ export declare const createApiClient: (baseUrl: string) => {
1337
1341
  } | undefined;
1338
1342
  workspaceScope?: "open" | "strict" | undefined;
1339
1343
  questionPresentation?: "text" | "card" | undefined;
1340
- cliReconnect?: "none" | "dock" | undefined;
1344
+ cliReconnect?: "dock" | "none" | undefined;
1341
1345
  workspaceExternalId?: string | undefined;
1342
1346
  goal?: {
1343
1347
  objective: string;
@@ -1376,7 +1380,7 @@ export declare const createApiClient: (baseUrl: string) => {
1376
1380
  } | undefined;
1377
1381
  workspaceScope?: "open" | "strict" | undefined;
1378
1382
  questionPresentation?: "text" | "card" | undefined;
1379
- cliReconnect?: "none" | "dock" | undefined;
1383
+ cliReconnect?: "dock" | "none" | undefined;
1380
1384
  workspaceExternalId?: string | undefined;
1381
1385
  goal?: {
1382
1386
  objective: string;
@@ -1416,7 +1420,7 @@ export declare const createApiClient: (baseUrl: string) => {
1416
1420
  } | undefined;
1417
1421
  workspaceScope?: "open" | "strict" | undefined;
1418
1422
  questionPresentation?: "text" | "card" | undefined;
1419
- cliReconnect?: "none" | "dock" | undefined;
1423
+ cliReconnect?: "dock" | "none" | undefined;
1420
1424
  workspaceExternalId?: string | undefined;
1421
1425
  goal?: {
1422
1426
  objective: string;
@@ -1925,7 +1929,7 @@ export declare const createApiClient: (baseUrl: string) => {
1925
1929
  };
1926
1930
  output: {
1927
1931
  exportId: import('../../../../apps/belong-cloud/src/platform/ids').SessionExportId;
1928
- status: "ready" | "queued" | "running" | "failed";
1932
+ status: "ready" | "failed" | "queued" | "running";
1929
1933
  error: string | null;
1930
1934
  };
1931
1935
  outputFormat: "json";
@@ -1969,7 +1973,7 @@ export declare const createApiClient: (baseUrl: string) => {
1969
1973
  output: {
1970
1974
  error: {
1971
1975
  type: string;
1972
- status: "queued" | "running" | "failed";
1976
+ status: "failed" | "queued" | "running";
1973
1977
  };
1974
1978
  };
1975
1979
  outputFormat: "json";
@@ -2116,6 +2120,13 @@ export declare const createApiClient: (baseUrl: string) => {
2116
2120
  emailEnabled: boolean;
2117
2121
  emailAddress: string | null;
2118
2122
  watchedApps: readonly string[];
2123
+ sources: {
2124
+ app: string;
2125
+ lastReadAt: string;
2126
+ lastSuccessAt: string | null;
2127
+ failingSince: string | null;
2128
+ failureReason: import('../../../../apps/belong-cloud/src/features/proactive/proactive-connection-readers').SourceFailureReason | null;
2129
+ }[];
2119
2130
  readsConnectedApps: boolean;
2120
2131
  readsSimetrik: boolean;
2121
2132
  chat: {
@@ -2292,6 +2303,34 @@ export declare const createApiClient: (baseUrl: string) => {
2292
2303
  };
2293
2304
  outputFormat: "json";
2294
2305
  status: 202;
2306
+ } | {
2307
+ input: {};
2308
+ output: {
2309
+ error: "proactive_check_timed_out";
2310
+ };
2311
+ outputFormat: "json";
2312
+ status: 504;
2313
+ } | {
2314
+ input: {};
2315
+ output: {
2316
+ error: "proactive_check_failed";
2317
+ };
2318
+ outputFormat: "json";
2319
+ status: 503;
2320
+ } | {
2321
+ input: {};
2322
+ output: {
2323
+ error: "proactive_check_lost";
2324
+ };
2325
+ outputFormat: "json";
2326
+ status: 503;
2327
+ } | {
2328
+ input: {};
2329
+ output: {
2330
+ error: "proactive_check_not_queued";
2331
+ };
2332
+ outputFormat: "json";
2333
+ status: 503;
2295
2334
  } | {
2296
2335
  input: {};
2297
2336
  output: {
@@ -3032,6 +3071,36 @@ export declare const createApiClient: (baseUrl: string) => {
3032
3071
  };
3033
3072
  outputFormat: "json";
3034
3073
  status: 400;
3074
+ } | {
3075
+ input: {
3076
+ param: {
3077
+ questionRequestId: string;
3078
+ };
3079
+ } & {
3080
+ json: {
3081
+ answers: Record<string, {
3082
+ kind: "options";
3083
+ optionIds: string[];
3084
+ text?: string;
3085
+ } | {
3086
+ kind: "text";
3087
+ text: string;
3088
+ } | {
3089
+ kind: "skipped";
3090
+ }>;
3091
+ } | {
3092
+ reply: string;
3093
+ } | {
3094
+ dismissed: true;
3095
+ };
3096
+ };
3097
+ output: {
3098
+ error: {
3099
+ type: string;
3100
+ };
3101
+ };
3102
+ outputFormat: "json";
3103
+ status: 503;
3035
3104
  };
3036
3105
  }>;
3037
3106
  };
@@ -3435,7 +3504,7 @@ export declare const createApiClient: (baseUrl: string) => {
3435
3504
  artifactId: string;
3436
3505
  actionId: string;
3437
3506
  scriptVersion: string;
3438
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
3507
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
3439
3508
  settled: boolean;
3440
3509
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
3441
3510
  createdAt: string;
@@ -3447,7 +3516,7 @@ export declare const createApiClient: (baseUrl: string) => {
3447
3516
  } | undefined;
3448
3517
  } | undefined;
3449
3518
  result?: {
3450
- outcome: "unknown" | "failed" | "partial" | "confirmed";
3519
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
3451
3520
  summary: string;
3452
3521
  affectedIds: string[];
3453
3522
  failedIds: string[];
@@ -3615,7 +3684,7 @@ export declare const createApiClient: (baseUrl: string) => {
3615
3684
  artifactId: string;
3616
3685
  actionId: string;
3617
3686
  scriptVersion: string;
3618
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
3687
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
3619
3688
  settled: boolean;
3620
3689
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
3621
3690
  createdAt: string;
@@ -3627,7 +3696,7 @@ export declare const createApiClient: (baseUrl: string) => {
3627
3696
  } | undefined;
3628
3697
  } | undefined;
3629
3698
  result?: {
3630
- outcome: "unknown" | "failed" | "partial" | "confirmed";
3699
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
3631
3700
  summary: string;
3632
3701
  affectedIds: string[];
3633
3702
  failedIds: string[];
@@ -3738,7 +3807,7 @@ export declare const createApiClient: (baseUrl: string) => {
3738
3807
  artifactId: string;
3739
3808
  actionId: string;
3740
3809
  scriptVersion: string;
3741
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
3810
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
3742
3811
  settled: boolean;
3743
3812
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
3744
3813
  createdAt: string;
@@ -3750,7 +3819,7 @@ export declare const createApiClient: (baseUrl: string) => {
3750
3819
  } | undefined;
3751
3820
  } | undefined;
3752
3821
  result?: {
3753
- outcome: "unknown" | "failed" | "partial" | "confirmed";
3822
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
3754
3823
  summary: string;
3755
3824
  affectedIds: string[];
3756
3825
  failedIds: string[];
@@ -4015,7 +4084,7 @@ export declare const createApiClient: (baseUrl: string) => {
4015
4084
  artifactId: string;
4016
4085
  actionId: string;
4017
4086
  scriptVersion: string;
4018
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
4087
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
4019
4088
  settled: boolean;
4020
4089
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
4021
4090
  createdAt: string;
@@ -4027,7 +4096,7 @@ export declare const createApiClient: (baseUrl: string) => {
4027
4096
  } | undefined;
4028
4097
  } | undefined;
4029
4098
  result?: {
4030
- outcome: "unknown" | "failed" | "partial" | "confirmed";
4099
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
4031
4100
  summary: string;
4032
4101
  affectedIds: string[];
4033
4102
  failedIds: string[];
@@ -4174,7 +4243,7 @@ export declare const createApiClient: (baseUrl: string) => {
4174
4243
  artifactId: string;
4175
4244
  actionId: string;
4176
4245
  scriptVersion: string;
4177
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
4246
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
4178
4247
  settled: boolean;
4179
4248
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
4180
4249
  createdAt: string;
@@ -4186,7 +4255,7 @@ export declare const createApiClient: (baseUrl: string) => {
4186
4255
  } | undefined;
4187
4256
  } | undefined;
4188
4257
  result?: {
4189
- outcome: "unknown" | "failed" | "partial" | "confirmed";
4258
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
4190
4259
  summary: string;
4191
4260
  affectedIds: string[];
4192
4261
  failedIds: string[];
@@ -4335,7 +4404,7 @@ export declare const createApiClient: (baseUrl: string) => {
4335
4404
  artifactId: string;
4336
4405
  actionId: string;
4337
4406
  scriptVersion: string;
4338
- status: "unknown" | "queued" | "running" | "completed" | "failed" | "waiting_for_approval" | "cancelled";
4407
+ status: "failed" | "unknown" | "queued" | "running" | "completed" | "waiting_for_approval" | "cancelled";
4339
4408
  settled: boolean;
4340
4409
  stopEvidence: "pending" | "not_launched" | "confirmed" | "assumed";
4341
4410
  createdAt: string;
@@ -4347,7 +4416,7 @@ export declare const createApiClient: (baseUrl: string) => {
4347
4416
  } | undefined;
4348
4417
  } | undefined;
4349
4418
  result?: {
4350
- outcome: "unknown" | "failed" | "partial" | "confirmed";
4419
+ outcome: "failed" | "unknown" | "partial" | "confirmed";
4351
4420
  summary: string;
4352
4421
  affectedIds: string[];
4353
4422
  failedIds: string[];
@@ -7088,6 +7157,21 @@ export declare const createApiClient: (baseUrl: string) => {
7088
7157
  }>;
7089
7158
  };
7090
7159
  };
7160
+ } & {
7161
+ v1: {
7162
+ config: {
7163
+ "workspace-paths": import('hono/client').ClientRequest<string, "/v1/config/workspace-paths", {
7164
+ $get: {
7165
+ input: {};
7166
+ output: {
7167
+ enabled: boolean;
7168
+ };
7169
+ outputFormat: "json";
7170
+ status: 200;
7171
+ };
7172
+ }>;
7173
+ };
7174
+ };
7091
7175
  } & {
7092
7176
  v1: {
7093
7177
  config: {
@@ -7136,7 +7220,7 @@ export declare const createApiClient: (baseUrl: string) => {
7136
7220
  articles: {
7137
7221
  id: string;
7138
7222
  kind: "question" | "topic";
7139
- icon: "target" | "messages" | "lock" | "users" | "settings" | "folder" | "sparkles" | "ban" | "shield-check" | "calendar-clock" | "file-text" | "slash" | "gauge" | "life-buoy" | "mic" | "help-circle" | "plug" | "compass";
7223
+ icon: "target" | "messages" | "users" | "settings" | "folder" | "sparkles" | "ban" | "shield-check" | "calendar-clock" | "file-text" | "slash" | "gauge" | "life-buoy" | "mic" | "lock" | "help-circle" | "plug" | "compass";
7140
7224
  title: string;
7141
7225
  markdown: string;
7142
7226
  }[];
@@ -8289,7 +8373,7 @@ export declare const createApiClient: (baseUrl: string) => {
8289
8373
  };
8290
8374
  output: {
8291
8375
  taskScheduleId: import('../../../../apps/belong-cloud/src/platform/ids').TaskScheduleSeriesId;
8292
- status: "scheduled" | "running" | "completed" | "failed";
8376
+ status: "failed" | "scheduled" | "running" | "completed";
8293
8377
  scheduledFor: string;
8294
8378
  seriesStatus: "active" | "completed" | "paused" | "deleted";
8295
8379
  recurrence: {
@@ -8454,7 +8538,7 @@ export declare const createApiClient: (baseUrl: string) => {
8454
8538
  timezone: string;
8455
8539
  nextRunAt: string | null;
8456
8540
  lastRun: {
8457
- status: "running" | "completed" | "failed";
8541
+ status: "failed" | "running" | "completed";
8458
8542
  at: string | null;
8459
8543
  } | null;
8460
8544
  messagePreview: string;
@@ -8629,7 +8713,7 @@ export declare const createApiClient: (baseUrl: string) => {
8629
8713
  timezone: string;
8630
8714
  nextRunAt: string | null;
8631
8715
  lastRun: {
8632
- status: "running" | "completed" | "failed";
8716
+ status: "failed" | "running" | "completed";
8633
8717
  at: string | null;
8634
8718
  } | null;
8635
8719
  messagePreview: string;
@@ -9629,7 +9713,7 @@ export declare const createApiClient: (baseUrl: string) => {
9629
9713
  };
9630
9714
  output: {
9631
9715
  taskScheduleId: import('../../../../apps/belong-cloud/src/platform/ids').TaskScheduleSeriesId;
9632
- status: "scheduled" | "running" | "completed" | "failed";
9716
+ status: "failed" | "scheduled" | "running" | "completed";
9633
9717
  scheduledFor: string;
9634
9718
  seriesStatus: "active" | "completed" | "paused" | "deleted";
9635
9719
  recurrence: {
@@ -9794,7 +9878,7 @@ export declare const createApiClient: (baseUrl: string) => {
9794
9878
  timezone: string;
9795
9879
  nextRunAt: string | null;
9796
9880
  lastRun: {
9797
- status: "running" | "completed" | "failed";
9881
+ status: "failed" | "running" | "completed";
9798
9882
  at: string | null;
9799
9883
  } | null;
9800
9884
  messagePreview: string;
@@ -9969,7 +10053,7 @@ export declare const createApiClient: (baseUrl: string) => {
9969
10053
  timezone: string;
9970
10054
  nextRunAt: string | null;
9971
10055
  lastRun: {
9972
- status: "running" | "completed" | "failed";
10056
+ status: "failed" | "running" | "completed";
9973
10057
  at: string | null;
9974
10058
  } | null;
9975
10059
  messagePreview: string;
@@ -15204,6 +15288,10 @@ export declare const createApiClient: (baseUrl: string) => {
15204
15288
  readonly message: string;
15205
15289
  }[];
15206
15290
  lastDiscoveredAt: string | null;
15291
+ toolsDrift: {
15292
+ kind: "added" | "changed";
15293
+ since: string;
15294
+ } | null;
15207
15295
  createdAt: string;
15208
15296
  }[];
15209
15297
  };
@@ -69,8 +69,19 @@ export type ConnectorSummary = {
69
69
  readonly tools: readonly ConnectorTool[];
70
70
  readonly refusedTools: readonly ConnectorRefusedTool[];
71
71
  readonly lastDiscoveredAt: string | null;
72
+ /**
73
+ * The server's tools moved off what was set up, and Refresh is what takes the
74
+ * new ones: `added` = new tools waiting, `changed` = some no longer work as
75
+ * set up. Null = nothing waiting.
76
+ */
77
+ readonly toolsDrift: ConnectorToolsDrift | null;
72
78
  readonly createdAt: string;
73
79
  };
80
+ export type ConnectorToolsDrift = {
81
+ readonly kind: "added" | "changed";
82
+ /** ISO-8601: when it was first seen. */
83
+ readonly since: string;
84
+ };
74
85
  /** Platform-owned setup metadata for one marketplace card. It never carries a
75
86
  * token, client secret, or any other user credential. */
76
87
  type ConnectorCatalogEntryBase = {
@@ -9,6 +9,17 @@ declare const proactiveSchema: z.ZodObject<{
9
9
  emailEnabled: z.ZodDefault<z.ZodBoolean>;
10
10
  emailAddress: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11
11
  watchedApps: z.ZodDefault<z.ZodArray<z.ZodString>>;
12
+ sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
13
+ app: z.ZodString;
14
+ lastReadAt: z.ZodISODateTime;
15
+ lastSuccessAt: z.ZodNullable<z.ZodISODateTime>;
16
+ failingSince: z.ZodNullable<z.ZodISODateTime>;
17
+ failureReason: z.ZodCatch<z.ZodNullable<z.ZodEnum<{
18
+ unavailable: "unavailable";
19
+ needs_refresh: "needs_refresh";
20
+ needs_sign_in: "needs_sign_in";
21
+ }>>>;
22
+ }, z.core.$strip>>>;
12
23
  readsConnectedApps: z.ZodDefault<z.ZodBoolean>;
13
24
  readsSimetrik: z.ZodDefault<z.ZodBoolean>;
14
25
  chat: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -20,6 +31,7 @@ declare const proactiveSchema: z.ZodObject<{
20
31
  }, z.core.$strip>>>;
21
32
  }, z.core.$strip>;
22
33
  export type Proactive = z.infer<typeof proactiveSchema>;
34
+ export type ProactiveSource = Proactive["sources"][number];
23
35
  export type ProactiveState = {
24
36
  readonly status: "ready";
25
37
  readonly proactive: Proactive;
@@ -7,7 +7,7 @@ export type AnswerQuestionBody = {
7
7
  } | {
8
8
  readonly dismissed: true;
9
9
  };
10
- /** The turn a late answer started — `sessions.postMessage`'s ids + the posted text. */
10
+ /** The turn an answer continues or starts — `sessions.postMessage`'s ids + the posted text. */
11
11
  export type QuestionContinuation = MessageContinuation;
12
12
  /**
13
13
  * `already_resolved` is the 409 with the row of record. `rejected` is any
@@ -193,9 +193,9 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
193
193
  nextRunAt: z.ZodNullable<z.ZodISODateTime>;
194
194
  lastRun: z.ZodNullable<z.ZodObject<{
195
195
  status: z.ZodEnum<{
196
+ failed: "failed";
196
197
  running: "running";
197
198
  completed: "completed";
198
- failed: "failed";
199
199
  }>;
200
200
  at: z.ZodNullable<z.ZodISODateTime>;
201
201
  }, z.core.$strip>>;
@@ -252,9 +252,9 @@ export declare const taskScheduleDetailSchema: z.ZodObject<{
252
252
  nextRunAt: z.ZodNullable<z.ZodISODateTime>;
253
253
  lastRun: z.ZodNullable<z.ZodObject<{
254
254
  status: z.ZodEnum<{
255
+ failed: "failed";
255
256
  running: "running";
256
257
  completed: "completed";
257
- failed: "failed";
258
258
  }>;
259
259
  at: z.ZodNullable<z.ZodISODateTime>;
260
260
  }, z.core.$strip>>;
@@ -357,9 +357,9 @@ export declare const taskScheduleRunSchema: z.ZodObject<{
357
357
  paused: "paused";
358
358
  }>>>;
359
359
  displayStatus: z.ZodEnum<{
360
+ failed: "failed";
360
361
  running: "running";
361
362
  completed: "completed";
362
- failed: "failed";
363
363
  needs_attention: "needs_attention";
364
364
  stopped_early: "stopped_early";
365
365
  }>;
@@ -388,9 +388,9 @@ export declare const taskScheduleRunSchema: z.ZodObject<{
388
388
  schedule_email: "schedule_email";
389
389
  }>;
390
390
  status: z.ZodEnum<{
391
+ failed: "failed";
391
392
  unknown: "unknown";
392
393
  pending: "pending";
393
- failed: "failed";
394
394
  skipped: "skipped";
395
395
  sent: "sent";
396
396
  }>;
@@ -474,7 +474,7 @@ export declare const useTaskSchedules: (filter: TaskScheduleFilter, q: string, p
474
474
  timezone: string;
475
475
  nextRunAt: string | null;
476
476
  lastRun: {
477
- status: "running" | "completed" | "failed";
477
+ status: "failed" | "running" | "completed";
478
478
  at: string | null;
479
479
  } | null;
480
480
  messagePreview: string;
@@ -513,7 +513,7 @@ export declare const useTaskSchedulesFirstPage: (filter: "active" | "completed")
513
513
  timezone: string;
514
514
  nextRunAt: string | null;
515
515
  lastRun: {
516
- status: "running" | "completed" | "failed";
516
+ status: "failed" | "running" | "completed";
517
517
  at: string | null;
518
518
  } | null;
519
519
  messagePreview: string;
@@ -546,7 +546,7 @@ export declare const useTaskSchedule: (taskScheduleId: string | null) => import(
546
546
  timezone: string;
547
547
  nextRunAt: string | null;
548
548
  lastRun: {
549
- status: "running" | "completed" | "failed";
549
+ status: "failed" | "running" | "completed";
550
550
  at: string | null;
551
551
  } | null;
552
552
  messagePreview: string;
@@ -620,7 +620,7 @@ export declare const useTaskScheduleRuns: (taskScheduleId: string | null) => imp
620
620
  taskScheduleRunId: string;
621
621
  occurrenceKind: "manual" | "scheduled";
622
622
  seriesStatusAtRequest: "active" | "paused" | null;
623
- displayStatus: "running" | "completed" | "failed" | "needs_attention" | "stopped_early";
623
+ displayStatus: "failed" | "running" | "completed" | "needs_attention" | "stopped_early";
624
624
  scheduledFor: string;
625
625
  startedAt: string | null;
626
626
  finishedAt: string | null;
@@ -633,7 +633,7 @@ export declare const useTaskScheduleRuns: (taskScheduleId: string | null) => imp
633
633
  reason: "no_match" | "missing_outcome" | "provider_failed" | null;
634
634
  emails: {
635
635
  source: "send_email" | "schedule_email";
636
- status: "unknown" | "pending" | "failed" | "skipped" | "sent";
636
+ status: "failed" | "unknown" | "pending" | "skipped" | "sent";
637
637
  recipientCount: number | null;
638
638
  subject: string | null;
639
639
  providerMessageId: string | null;
@@ -37,7 +37,7 @@ export declare function dockStoryData(brand: "belong" | "simetrik"): {
37
37
  timezone: string;
38
38
  nextRunAt: string | null;
39
39
  lastRun: {
40
- status: "running" | "completed" | "failed";
40
+ status: "failed" | "running" | "completed";
41
41
  at: string | null;
42
42
  } | null;
43
43
  messagePreview: string;
@@ -70,7 +70,7 @@ export declare function dockStoryData(brand: "belong" | "simetrik"): {
70
70
  timezone: string;
71
71
  nextRunAt: string | null;
72
72
  lastRun: {
73
- status: "running" | "completed" | "failed";
73
+ status: "failed" | "running" | "completed";
74
74
  at: string | null;
75
75
  } | null;
76
76
  messagePreview: string;
@@ -1,4 +1,4 @@
1
- import { BelongLocale, BelongTokenGetter } from '../types/public.ts';
1
+ import { BelongWorkspace, BelongLocale, BelongTokenGetter } from '../types/public.ts';
2
2
  export type BelongWidgetProps = {
3
3
  /**
4
4
  * The primary auth point. Returns a raw JWT for the Belong audience. Called
@@ -73,7 +73,7 @@ export type BelongWidgetProps = {
73
73
  * the host's active workspace is still resolving.
74
74
  * • `undefined` → the host isn't using workspace isolation on this mount.
75
75
  */
76
- readonly workspace?: string | null;
76
+ readonly workspace?: string | BelongWorkspace | null;
77
77
  /**
78
78
  * Who is signed in, for the greeting ("Hi Ana — …") and the avatar menu.
79
79
  * Optional; change the prop to change it. The prop states the host's intent
@@ -1,10 +1,10 @@
1
1
  globalThis.process = globalThis.process || { env: {} }, globalThis.global = globalThis.global || globalThis;
2
2
  import { n as e } from "./chunk-Y2CYZVJY-CiUSrfaV.js";
3
3
  import { m as t } from "./src-CKo8cHWB.js";
4
- import "./chunk-I66GZJ75-DEykrnbu.js";
5
- import "./chunk-3NCLNEKW-C6R8qHlR.js";
4
+ import "./chunk-I66GZJ75-BVlp1JJ3.js";
5
+ import "./chunk-3NCLNEKW-_C9hD1ul.js";
6
6
  import { m as n, t as r } from "./mermaid-parser.core-DVpMXhB2.js";
7
- import { n as i, r as a, t as o } from "./chunk-6Q2QTUOP-C6GL9-4r.js";
7
+ import { n as i, r as a, t as o } from "./chunk-6Q2QTUOP-CyeRnoqL.js";
8
8
  import { t as s } from "./chunk-JWPE2WC7-Bsffqeu1.js";
9
9
  //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-N423BO3Z.mjs
10
10
  var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ e((e) => {
@@ -89,4 +89,4 @@ var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ e((e) => {
89
89
  //#endregion
90
90
  export { g as diagram };
91
91
 
92
- //# sourceMappingURL=abnfDiagram-N423BO3Z-CRZoFiVH.js.map
92
+ //# sourceMappingURL=abnfDiagram-N423BO3Z-rK11gCuw.js.map
@@ -2,11 +2,11 @@ globalThis.process = globalThis.process || { env: {} }, globalThis.global = glob
2
2
  import { a as e, t } from "./rolldown-runtime-DlZaaczM.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-CiUSrfaV.js";
4
4
  import { m as r, p as i } from "./src-CKo8cHWB.js";
5
- import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-I66GZJ75-DEykrnbu.js";
6
- import { c as _, i as v } from "./chunk-NSK5VX7P-D-saWvpt.js";
7
- import { t as y } from "./chunk-3NCLNEKW-C6R8qHlR.js";
8
- import { i as b, r as x, t as S } from "./chunk-4I5QYGJK-Ccf8L2Bk.js";
9
- import { n as C } from "./chunk-WRU74C26-BXxIvhYq.js";
5
+ import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-I66GZJ75-BVlp1JJ3.js";
6
+ import { c as _, i as v } from "./chunk-NSK5VX7P-CmvUkGFa.js";
7
+ import { t as y } from "./chunk-3NCLNEKW-_C9hD1ul.js";
8
+ import { i as b, r as x, t as S } from "./chunk-4I5QYGJK-B_3nmgHd.js";
9
+ import { n as C } from "./chunk-WRU74C26-DzxU7J7M.js";
10
10
  import { n as w } from "./mermaid-parser.core-DVpMXhB2.js";
11
11
  import { t as T } from "./chunk-JWPE2WC7-Bsffqeu1.js";
12
12
  import { t as E } from "./cytoscape.esm-vwcZ217B.js";
@@ -4139,4 +4139,4 @@ var _e = {
4139
4139
  //#endregion
4140
4140
  export { _e as diagram };
4141
4141
 
4142
- //# sourceMappingURL=architectureDiagram-T3A2C74G-CaRtqw4X.js.map
4142
+ //# sourceMappingURL=architectureDiagram-T3A2C74G-C1fDFU4x.js.map