@belonguniverseai/react-sdk 0.6.15 → 0.6.17

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 (82) hide show
  1. package/dist/api/account-connector-contract.d.ts +2 -0
  2. package/dist/api/account-connectors.d.ts +86 -0
  3. package/dist/api/client.d.ts +391 -2
  4. package/dist/api/connectors.d.ts +12 -0
  5. package/dist/api/query-keys.d.ts +1 -0
  6. package/dist/api/questions.d.ts +41 -0
  7. package/dist/api/task-schedules.d.ts +33 -1
  8. package/dist/component/{abnfDiagram-N423BO3Z-BHtc0bvC.js → abnfDiagram-N423BO3Z-DQQzuYZD.js} +4 -4
  9. package/dist/component/{arc-Cm9wcWlx.js → arc-DyP79PGf.js} +2 -2
  10. package/dist/component/{architectureDiagram-T3A2C74G-B5Uz6lDY.js → architectureDiagram-T3A2C74G-D_elSQ1O.js} +3 -3
  11. package/dist/component/{blockDiagram-VBNYF7ZC-DtXwzBny.js → blockDiagram-VBNYF7ZC-LCbtrdey.js} +4 -4
  12. package/dist/component/{c4Diagram-5PPSVZJV-BvFhvePm.js → c4Diagram-5PPSVZJV-BavpcOfZ.js} +3 -3
  13. package/dist/component/{channel-D3rCn2In.js → channel-BZqwTbw2.js} +2 -2
  14. package/dist/component/{chunk-2GRJ4B5K-BrKpH2JP.js → chunk-2GRJ4B5K-CUnqSIZ_.js} +2 -2
  15. package/dist/component/{chunk-2Q5K7J3B-BN7qA4Zt.js → chunk-2Q5K7J3B-BXbvDQmH.js} +2 -2
  16. package/dist/component/{chunk-5RXB4S5H-xmyGOu7k.js → chunk-5RXB4S5H-9sfSr0mD.js} +5 -5
  17. package/dist/component/{chunk-5VM5RSS4-Bo9mNteC.js → chunk-5VM5RSS4-VnYY-ckg.js} +2 -2
  18. package/dist/component/{chunk-6Q2QTUOP-o1oblyO-.js → chunk-6Q2QTUOP-cjY3qI3C.js} +2 -2
  19. package/dist/component/{chunk-GF5L2VYU-CBhzNfdK.js → chunk-GF5L2VYU-B4uiGrvB.js} +6 -6
  20. package/dist/component/{chunk-JWPE2WC7-CRCYILZC.js → chunk-JWPE2WC7-C_FwRGti.js} +2 -2
  21. package/dist/component/{chunk-KBJHAD2P-CC4Una6D.js → chunk-KBJHAD2P-BThvKHPK.js} +2 -2
  22. package/dist/component/{chunk-RYQCIY6F--pWAXq1Z.js → chunk-RYQCIY6F-CNf0rdtW.js} +2 -2
  23. package/dist/component/{chunk-XXDRQBXY-DuNREPyH.js → chunk-XXDRQBXY-BDEUQoWy.js} +2 -2
  24. package/dist/component/{classDiagram-JCYQIIEL-Hok8J7EG.js → classDiagram-JCYQIIEL-Dp0ahzb0.js} +3 -3
  25. package/dist/component/{classDiagram-v2-OCEON4UE-Hok8J7EG.js → classDiagram-v2-OCEON4UE-Dp0ahzb0.js} +3 -3
  26. package/dist/component/{cose-bilkent-JH36ORCC-BfqjApDt.js → cose-bilkent-JH36ORCC-Dc-CE5JY.js} +2 -2
  27. package/dist/component/{cynefinDiagram-MW4NZA55-BJZ-okQI.js → cynefinDiagram-MW4NZA55-BA2fEkMD.js} +3 -3
  28. package/dist/component/{dagre-VZM6K2ZE-6H6WAA1H.js → dagre-VZM6K2ZE-B4d8ixBl.js} +3 -3
  29. package/dist/component/{diagram-7IWD3JNH-BQQttfZd.js → diagram-7IWD3JNH-DKOeWl-_.js} +4 -4
  30. package/dist/component/{diagram-B4RE2ZJO-Cb17vtkY.js → diagram-B4RE2ZJO-DvvRtQm3.js} +3 -3
  31. package/dist/component/{diagram-LBJQPF4R-DnfooUZj.js → diagram-LBJQPF4R-DXFi21rR.js} +3 -3
  32. package/dist/component/{diagram-Q27KOJAE-BUHBKgXu.js → diagram-Q27KOJAE-BkZNFrtu.js} +4 -4
  33. package/dist/component/{diagram-UB23O5K3-B9W7R9HH.js → diagram-UB23O5K3-D_IJQzxk.js} +3 -3
  34. package/dist/component/{ebnfDiagram-BXEA7PRR-CzDJ9VKS.js → ebnfDiagram-BXEA7PRR-DD6VLDvv.js} +4 -4
  35. package/dist/component/{erDiagram-JOGREHBK-CiKy87rC.js → erDiagram-JOGREHBK-D2GUhORW.js} +5 -5
  36. package/dist/component/{flowDiagram-UKHOOZJN-BJXlwNPw.js → flowDiagram-UKHOOZJN-BO76VMQu.js} +7 -7
  37. package/dist/component/{ganttDiagram-PKOTCBZU-DTKr0mnS.js → ganttDiagram-PKOTCBZU-DiZEbOvk.js} +3 -3
  38. package/dist/component/{gitGraphDiagram-DS77QQ5N-BqE9LM8q.js → gitGraphDiagram-DS77QQ5N-3JU_fIgh.js} +4 -4
  39. package/dist/component/{highlighted-body-OFNGDK62-CIm9H1Wq.js → highlighted-body-OFNGDK62-DyUfTvlp.js} +2 -2
  40. package/dist/component/index.js +2 -2
  41. package/dist/component/{infoDiagram-6WML65LV-DFm8QCR-.js → infoDiagram-6WML65LV-wQDDhFdJ.js} +2 -2
  42. package/dist/component/{ishikawaDiagram-WSZJBQD7-Dzu5X93V.js → ishikawaDiagram-WSZJBQD7-ByqLAAAH.js} +2 -2
  43. package/dist/component/{journeyDiagram-NVQOT4AX-B2jpJoxA.js → journeyDiagram-NVQOT4AX-CJrAO9iO.js} +5 -5
  44. package/dist/component/{kanban-definition-27J2QSJJ-DqqjEEqN.js → kanban-definition-27J2QSJJ-BK-6EIGy.js} +3 -3
  45. package/dist/component/{linear-VKGrBjVp.js → linear-5HARV3Z1.js} +2 -2
  46. package/dist/component/{mermaid-GHXKKRXX-CvjBCI1T.js → mermaid-GHXKKRXX-BYmG2b26.js} +38064 -37241
  47. package/dist/component/{mindmap-definition-FAOFIHXS-BxXZphfo.js → mindmap-definition-FAOFIHXS-CWZ3W_zW.js} +4 -4
  48. package/dist/component/{pegDiagram-VL7TDLO6-BB6KBO45.js → pegDiagram-VL7TDLO6-DHCzlDWN.js} +4 -4
  49. package/dist/component/{pieDiagram-7S7Q4E2Y-BhUDtn0U.js → pieDiagram-7S7Q4E2Y-BbgPCeI4.js} +4 -4
  50. package/dist/component/{quadrantDiagram-CIZ2JOQS-BekTYpN9.js → quadrantDiagram-CIZ2JOQS-CVNb4Dn0.js} +3 -3
  51. package/dist/component/{railroadDiagram-AXF67PYL-NkCqFfeB.js → railroadDiagram-AXF67PYL-BZtclau2.js} +4 -4
  52. package/dist/component/{requirementDiagram-LRYGKXZP-DgUbvazW.js → requirementDiagram-LRYGKXZP-DJeluZaM.js} +4 -4
  53. package/dist/component/{sankeyDiagram-W5VNT64P-BaS-5dxg.js → sankeyDiagram-W5VNT64P-CxVyzRB-.js} +2 -2
  54. package/dist/component/{sequenceDiagram-SI44F4Z6-Brxy8LqB.js → sequenceDiagram-SI44F4Z6-DrkHqtHC.js} +4 -4
  55. package/dist/component/{sizeCapture-X5ZJPWSS-D3PazIzZ.js → sizeCapture-X5ZJPWSS-Ctgo1XlA.js} +2 -2
  56. package/dist/component/{stateDiagram-OKZ733FA-DzRMa7xz.js → stateDiagram-OKZ733FA-DhCABcA4.js} +3 -3
  57. package/dist/component/{stateDiagram-v2-UEYNNEHI-5JRd_Kex.js → stateDiagram-v2-UEYNNEHI-D_zLh09v.js} +3 -3
  58. package/dist/component/{swimlanes-SLNWSIFB-DZR-oUnN.js → swimlanes-SLNWSIFB-C40PaZQK.js} +4 -4
  59. package/dist/component/{swimlanesDiagram-ULZ7WXOC-Dn9jdzUC.js → swimlanesDiagram-ULZ7WXOC-BIpHviIl.js} +3 -3
  60. package/dist/component/{timeline-definition-Z64GVDOM-BTWa173z.js → timeline-definition-Z64GVDOM-Byx2AKIE.js} +3 -3
  61. package/dist/component/{vennDiagram-T6HMQDX7-BwE-iIK-.js → vennDiagram-T6HMQDX7-CqLQjKUJ.js} +2 -2
  62. package/dist/component/{wardleyDiagram-T6FBY63Y-H_pDULPZ.js → wardleyDiagram-T6FBY63Y-S9fJVDcY.js} +3 -3
  63. package/dist/component/{xychartDiagram-ELKLHX3M-DNBPqOgR.js → xychartDiagram-ELKLHX3M-B3t1Zyyn.js} +3 -3
  64. package/dist/components/connectors/AccountConnectorDialog.d.ts +8 -0
  65. package/dist/components/connectors/ConnectorBrandLogo.d.ts +1 -1
  66. package/dist/components/connectors/ConnectorMarketplaceDialog.d.ts +3 -1
  67. package/dist/components/connectors/NewConnectorDialog.d.ts +2 -2
  68. package/dist/components/embed/EmbedComposer.d.ts +6 -1
  69. package/dist/components/embed/QuestionCard.d.ts +25 -0
  70. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +3 -0
  71. package/dist/components/ui/badge.d.ts +1 -1
  72. package/dist/components/ui/button.d.ts +1 -1
  73. package/dist/components/ui/input-group.d.ts +1 -1
  74. package/dist/embed/copy.d.ts +3 -0
  75. package/dist/i18n/messages/en.d.ts +39 -1
  76. package/dist/i18n/messages/surfaces/connectors.d.ts +27 -0
  77. package/dist/i18n/messages/surfaces/scheduled.d.ts +33 -0
  78. package/dist/i18n/messages/surfaces/stream.d.ts +58 -3
  79. package/dist/stream/belong-chat-transport.d.ts +60 -36
  80. package/dist/stream/belong-data-parts.d.ts +51 -29
  81. package/dist/stream/pending-question-store.d.ts +22 -0
  82. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const accountConnectorCatalogEntryIdSchema: z.ZodString;
@@ -0,0 +1,86 @@
1
+ import { z } from 'zod';
2
+ import { ApiClient } from './client.ts';
3
+ declare const accountConnectorSchema: z.ZodObject<{
4
+ catalogEntryId: z.ZodString;
5
+ status: z.ZodEnum<{
6
+ error: "error";
7
+ needs_auth: "needs_auth";
8
+ connected: "connected";
9
+ disconnected: "disconnected";
10
+ }>;
11
+ account: z.ZodNullable<z.ZodObject<{
12
+ displayName: z.ZodString;
13
+ principal: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ capabilities: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodString;
17
+ label: z.ZodString;
18
+ status: z.ZodEnum<{
19
+ error: "error";
20
+ needs_auth: "needs_auth";
21
+ ready: "ready";
22
+ needs_admin_consent: "needs_admin_consent";
23
+ disabled: "disabled";
24
+ }>;
25
+ }, z.core.$strip>>;
26
+ actions: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodString;
28
+ kind: z.ZodEnum<{
29
+ authorization: "authorization";
30
+ disconnect: "disconnect";
31
+ }>;
32
+ label: z.ZodEnum<{
33
+ disconnect: "disconnect";
34
+ connect: "connect";
35
+ reconnect: "reconnect";
36
+ grant_admin_consent: "grant_admin_consent";
37
+ }>;
38
+ tone: z.ZodEnum<{
39
+ primary: "primary";
40
+ destructive: "destructive";
41
+ secondary: "secondary";
42
+ }>;
43
+ requiresConfirmation: z.ZodBoolean;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ declare const accountConnectorActionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ kind: z.ZodLiteral<"authorization">;
48
+ authorizationUrl: z.ZodURL;
49
+ completion: z.ZodLiteral<"action_unavailable">;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"completed">;
52
+ }, z.core.$strip>], "kind">;
53
+ export type AccountConnector = z.infer<typeof accountConnectorSchema>;
54
+ export type AccountConnectorActionResult = z.infer<typeof accountConnectorActionResultSchema>;
55
+ export type AccountConnectorListResult = {
56
+ readonly status: "ready";
57
+ readonly connectors: readonly AccountConnector[];
58
+ } | {
59
+ readonly status: "featureAbsent";
60
+ };
61
+ export type RunAccountConnectorActionInput = {
62
+ readonly catalogEntryId: string;
63
+ readonly actionId: string;
64
+ readonly returnPath: string;
65
+ };
66
+ export type AccountConnectorActionFailure = {
67
+ readonly status: "invalid";
68
+ } | {
69
+ readonly status: "invalid_return_path";
70
+ } | {
71
+ readonly status: "forbidden";
72
+ } | {
73
+ readonly status: "not_found";
74
+ } | {
75
+ readonly status: "action_unavailable";
76
+ } | {
77
+ readonly status: "provider_unavailable";
78
+ } | {
79
+ readonly status: "error";
80
+ };
81
+ export type RunAccountConnectorActionResult = AccountConnectorActionResult | AccountConnectorActionFailure;
82
+ export declare const listAccountConnectorsRequest: (api: ApiClient, signal?: AbortSignal) => Promise<AccountConnectorListResult>;
83
+ export declare const runAccountConnectorActionRequest: (api: ApiClient, input: RunAccountConnectorActionInput) => Promise<RunAccountConnectorActionResult>;
84
+ export declare const useAccountConnectors: () => import('@tanstack/react-query').UseQueryResult<NoInfer<AccountConnectorListResult>, Error>;
85
+ export declare const useRunAccountConnectorAction: () => import('@tanstack/react-query').UseMutationResult<RunAccountConnectorActionResult, Error, RunAccountConnectorActionInput, unknown>;
86
+ export {};
@@ -1195,6 +1195,186 @@ export declare const createApiClient: (baseUrl: string) => {
1195
1195
  };
1196
1196
  };
1197
1197
  };
1198
+ } & {
1199
+ v1: {
1200
+ questions: {
1201
+ ":questionRequestId": {
1202
+ answer: import('hono/client').ClientRequest<string, "/v1/questions/:questionRequestId/answer", {
1203
+ $post: {
1204
+ input: {
1205
+ param: {
1206
+ questionRequestId: string;
1207
+ };
1208
+ } & {
1209
+ json: {
1210
+ answers: Record<string, {
1211
+ kind: "options";
1212
+ optionIds: string[];
1213
+ text?: string;
1214
+ } | {
1215
+ kind: "text";
1216
+ text: string;
1217
+ } | {
1218
+ kind: "skipped";
1219
+ }>;
1220
+ } | {
1221
+ reply: string;
1222
+ } | {
1223
+ dismissed: true;
1224
+ };
1225
+ };
1226
+ output: {
1227
+ continuation?: {
1228
+ readonly messageId: import('node_modules/@belong/cloud/src/platform/ids').MessageId;
1229
+ readonly taskId: import('node_modules/@belong/cloud/src/platform/ids').TaskId;
1230
+ readonly runId: import('node_modules/@belong/cloud/src/platform/ids').RunId;
1231
+ readonly text: string;
1232
+ } | undefined;
1233
+ status: "accepted";
1234
+ questionStatus: import('node_modules/@belong/cloud/src/features/runs/run-event.types').QuestionState;
1235
+ };
1236
+ outputFormat: "json";
1237
+ status: 200;
1238
+ } | {
1239
+ input: {
1240
+ param: {
1241
+ questionRequestId: string;
1242
+ };
1243
+ } & {
1244
+ json: {
1245
+ answers: Record<string, {
1246
+ kind: "options";
1247
+ optionIds: string[];
1248
+ text?: string;
1249
+ } | {
1250
+ kind: "text";
1251
+ text: string;
1252
+ } | {
1253
+ kind: "skipped";
1254
+ }>;
1255
+ } | {
1256
+ reply: string;
1257
+ } | {
1258
+ dismissed: true;
1259
+ };
1260
+ };
1261
+ output: {
1262
+ error: {
1263
+ type: string;
1264
+ };
1265
+ };
1266
+ outputFormat: "json";
1267
+ status: 404;
1268
+ } | {
1269
+ input: {
1270
+ param: {
1271
+ questionRequestId: string;
1272
+ };
1273
+ } & {
1274
+ json: {
1275
+ answers: Record<string, {
1276
+ kind: "options";
1277
+ optionIds: string[];
1278
+ text?: string;
1279
+ } | {
1280
+ kind: "text";
1281
+ text: string;
1282
+ } | {
1283
+ kind: "skipped";
1284
+ }>;
1285
+ } | {
1286
+ reply: string;
1287
+ } | {
1288
+ dismissed: true;
1289
+ };
1290
+ };
1291
+ output: {
1292
+ error: {
1293
+ reply?: string | undefined;
1294
+ answers?: {
1295
+ readonly [x: string]: {
1296
+ readonly kind: "options";
1297
+ readonly optionIds: readonly string[];
1298
+ readonly text?: string | undefined;
1299
+ } | {
1300
+ readonly kind: "text";
1301
+ readonly text: string;
1302
+ } | {
1303
+ readonly kind: "skipped";
1304
+ };
1305
+ } | undefined;
1306
+ type: string;
1307
+ questionStatus: import('node_modules/@belong/cloud/src/features/runs/run-event.types').QuestionState;
1308
+ };
1309
+ };
1310
+ outputFormat: "json";
1311
+ status: 409;
1312
+ } | {
1313
+ input: {
1314
+ param: {
1315
+ questionRequestId: string;
1316
+ };
1317
+ } & {
1318
+ json: {
1319
+ answers: Record<string, {
1320
+ kind: "options";
1321
+ optionIds: string[];
1322
+ text?: string;
1323
+ } | {
1324
+ kind: "text";
1325
+ text: string;
1326
+ } | {
1327
+ kind: "skipped";
1328
+ }>;
1329
+ } | {
1330
+ reply: string;
1331
+ } | {
1332
+ dismissed: true;
1333
+ };
1334
+ };
1335
+ output: {
1336
+ error: {
1337
+ type: string;
1338
+ };
1339
+ };
1340
+ outputFormat: "json";
1341
+ status: 403;
1342
+ } | {
1343
+ input: {
1344
+ param: {
1345
+ questionRequestId: string;
1346
+ };
1347
+ } & {
1348
+ json: {
1349
+ answers: Record<string, {
1350
+ kind: "options";
1351
+ optionIds: string[];
1352
+ text?: string;
1353
+ } | {
1354
+ kind: "text";
1355
+ text: string;
1356
+ } | {
1357
+ kind: "skipped";
1358
+ }>;
1359
+ } | {
1360
+ reply: string;
1361
+ } | {
1362
+ dismissed: true;
1363
+ };
1364
+ };
1365
+ output: {
1366
+ error: {
1367
+ type: string;
1368
+ reason: string;
1369
+ };
1370
+ };
1371
+ outputFormat: "json";
1372
+ status: 400;
1373
+ };
1374
+ }>;
1375
+ };
1376
+ };
1377
+ };
1198
1378
  } & {
1199
1379
  v1: {
1200
1380
  files: import('hono/client').ClientRequest<string, "/v1/files", {
@@ -3793,7 +3973,6 @@ export declare const createApiClient: (baseUrl: string) => {
3793
3973
  output: {
3794
3974
  error: {
3795
3975
  type: string;
3796
- maxPendingSchedules: number;
3797
3976
  };
3798
3977
  };
3799
3978
  outputFormat: "json";
@@ -3864,6 +4043,20 @@ export declare const createApiClient: (baseUrl: string) => {
3864
4043
  anchorAt: string;
3865
4044
  totalRunsCount: number;
3866
4045
  updatedAt: string;
4046
+ microsoftTeamsDelivery: {
4047
+ expiresAt: string;
4048
+ destination: {
4049
+ kind: "chat";
4050
+ chatId: string;
4051
+ } | {
4052
+ kind: "channel";
4053
+ teamId: string;
4054
+ channelId: string;
4055
+ };
4056
+ status: import('../../../../apps/belong-cloud/src/features/microsoft/microsoft.schemas').MicrosoftTeamsMandateStatus;
4057
+ allowExternalRecipients: boolean;
4058
+ maxMessagesPerRun: number;
4059
+ } | null;
3867
4060
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
3868
4061
  title: string;
3869
4062
  status: "active" | "completed" | "paused" | "deleted";
@@ -4323,7 +4516,7 @@ export declare const createApiClient: (baseUrl: string) => {
4323
4516
  };
4324
4517
  };
4325
4518
  output: {
4326
- status: "active" | "completed";
4519
+ status: "active" | "completed" | "needs_attention";
4327
4520
  nextRunAt: string | null;
4328
4521
  };
4329
4522
  outputFormat: "json";
@@ -5005,6 +5198,15 @@ export declare const createApiClient: (baseUrl: string) => {
5005
5198
  };
5006
5199
  outputFormat: "json";
5007
5200
  status: 503;
5201
+ } | {
5202
+ input: {};
5203
+ output: {
5204
+ error: {
5205
+ type: string;
5206
+ };
5207
+ };
5208
+ outputFormat: "json";
5209
+ status: 400;
5008
5210
  } | {
5009
5211
  input: {};
5010
5212
  output: {
@@ -5019,6 +5221,17 @@ export declare const createApiClient: (baseUrl: string) => {
5019
5221
  preview: boolean;
5020
5222
  } | {
5021
5223
  availability: "available";
5224
+ setupKind: "oauth_account";
5225
+ id: string;
5226
+ name: string;
5227
+ description: string;
5228
+ iconKey: string;
5229
+ category: string;
5230
+ featured: boolean;
5231
+ preview: boolean;
5232
+ } | {
5233
+ availability: "available";
5234
+ setupKind: "remote_mcp";
5022
5235
  serverUrl: string;
5023
5236
  serverUrlMode: "fixed" | "user_provided";
5024
5237
  transport: "streamable_http" | "sse";
@@ -5550,6 +5763,167 @@ export declare const createApiClient: (baseUrl: string) => {
5550
5763
  };
5551
5764
  };
5552
5765
  };
5766
+ } & {
5767
+ v1: {
5768
+ "account-connectors": import('hono/client').ClientRequest<string, "/v1/account-connectors", {
5769
+ $get: {
5770
+ input: {};
5771
+ output: {
5772
+ connectors: {
5773
+ catalogEntryId: string;
5774
+ status: "error" | "needs_auth" | "connected" | "disconnected";
5775
+ account: {
5776
+ displayName: string;
5777
+ principal: string;
5778
+ } | null;
5779
+ capabilities: {
5780
+ id: string;
5781
+ label: string;
5782
+ status: "error" | "needs_auth" | "ready" | "needs_admin_consent" | "disabled";
5783
+ }[];
5784
+ actions: {
5785
+ id: string;
5786
+ kind: "authorization" | "disconnect";
5787
+ label: "disconnect" | "connect" | "reconnect" | "grant_admin_consent";
5788
+ tone: "primary" | "destructive" | "secondary";
5789
+ requiresConfirmation: boolean;
5790
+ }[];
5791
+ }[];
5792
+ };
5793
+ outputFormat: "json";
5794
+ status: 200;
5795
+ };
5796
+ }>;
5797
+ };
5798
+ } & {
5799
+ v1: {
5800
+ "account-connectors": {
5801
+ ":catalogEntryId": {
5802
+ actions: {
5803
+ ":actionId": import('hono/client').ClientRequest<string, "/v1/account-connectors/:catalogEntryId/actions/:actionId", {
5804
+ $post: {
5805
+ input: {
5806
+ json: {
5807
+ returnPath: string;
5808
+ };
5809
+ } & {
5810
+ param: {
5811
+ catalogEntryId: string;
5812
+ } & {
5813
+ actionId: string;
5814
+ };
5815
+ };
5816
+ output: {
5817
+ error: {
5818
+ type: string;
5819
+ requiredScope: string;
5820
+ };
5821
+ };
5822
+ outputFormat: "json";
5823
+ status: 403;
5824
+ } | {
5825
+ input: {
5826
+ json: {
5827
+ returnPath: string;
5828
+ };
5829
+ } & {
5830
+ param: {
5831
+ catalogEntryId: string;
5832
+ } & {
5833
+ actionId: string;
5834
+ };
5835
+ };
5836
+ output: {
5837
+ error: {
5838
+ type: string;
5839
+ };
5840
+ };
5841
+ outputFormat: "json";
5842
+ status: 400;
5843
+ } | {
5844
+ input: {
5845
+ json: {
5846
+ returnPath: string;
5847
+ };
5848
+ } & {
5849
+ param: {
5850
+ catalogEntryId: string;
5851
+ } & {
5852
+ actionId: string;
5853
+ };
5854
+ };
5855
+ output: {
5856
+ readonly kind: "authorization";
5857
+ readonly authorizationUrl: string;
5858
+ readonly completion: "action_unavailable";
5859
+ } | {
5860
+ readonly kind: "completed";
5861
+ };
5862
+ outputFormat: "json";
5863
+ status: 200;
5864
+ } | {
5865
+ input: {
5866
+ json: {
5867
+ returnPath: string;
5868
+ };
5869
+ } & {
5870
+ param: {
5871
+ catalogEntryId: string;
5872
+ } & {
5873
+ actionId: string;
5874
+ };
5875
+ };
5876
+ output: {
5877
+ error: {
5878
+ type: string;
5879
+ };
5880
+ };
5881
+ outputFormat: "json";
5882
+ status: 404;
5883
+ } | {
5884
+ input: {
5885
+ json: {
5886
+ returnPath: string;
5887
+ };
5888
+ } & {
5889
+ param: {
5890
+ catalogEntryId: string;
5891
+ } & {
5892
+ actionId: string;
5893
+ };
5894
+ };
5895
+ output: {
5896
+ error: {
5897
+ type: string;
5898
+ };
5899
+ };
5900
+ outputFormat: "json";
5901
+ status: 409;
5902
+ } | {
5903
+ input: {
5904
+ json: {
5905
+ returnPath: string;
5906
+ };
5907
+ } & {
5908
+ param: {
5909
+ catalogEntryId: string;
5910
+ } & {
5911
+ actionId: string;
5912
+ };
5913
+ };
5914
+ output: {
5915
+ error: {
5916
+ type: string;
5917
+ };
5918
+ };
5919
+ outputFormat: "json";
5920
+ status: 503;
5921
+ };
5922
+ }>;
5923
+ };
5924
+ };
5925
+ };
5926
+ };
5553
5927
  } & {
5554
5928
  v1: {
5555
5929
  "connector-oauth": {
@@ -5563,6 +5937,21 @@ export declare const createApiClient: (baseUrl: string) => {
5563
5937
  }>;
5564
5938
  };
5565
5939
  };
5940
+ } & {
5941
+ v1: {
5942
+ microsoft: {
5943
+ oauth: {
5944
+ callback: import('hono/client').ClientRequest<string, "/v1/microsoft/oauth/callback", {
5945
+ $get: {
5946
+ input: {};
5947
+ output: {};
5948
+ outputFormat: string;
5949
+ status: import('hono/utils/http-status').StatusCode;
5950
+ };
5951
+ }>;
5952
+ };
5953
+ };
5954
+ };
5566
5955
  } & {
5567
5956
  v1: {
5568
5957
  admin: {
@@ -85,6 +85,7 @@ export type ConnectorCatalogEntry = (ConnectorCatalogEntryBase & {
85
85
  readonly availability: "coming_soon";
86
86
  }) | (ConnectorCatalogEntryBase & {
87
87
  readonly availability: "available";
88
+ readonly setupKind: "remote_mcp";
88
89
  readonly serverUrl: string;
89
90
  readonly serverUrlMode?: "fixed" | "user_provided";
90
91
  readonly transport: ConnectorTransport;
@@ -93,10 +94,21 @@ export type ConnectorCatalogEntry = (ConnectorCatalogEntryBase & {
93
94
  readonly oauthAuthorizationParams: Readonly<Record<string, string>> | null;
94
95
  readonly oauthAppCredentialsRequired: boolean;
95
96
  readonly documentationUrl: string;
97
+ }) | (ConnectorCatalogEntryBase & {
98
+ readonly availability: "available";
99
+ readonly setupKind: "oauth_account";
96
100
  });
97
101
  export type AvailableConnectorCatalogEntry = Extract<ConnectorCatalogEntry, {
98
102
  readonly availability: "available";
99
103
  }>;
104
+ export type AvailableRemoteConnectorCatalogEntry = Extract<ConnectorCatalogEntry, {
105
+ readonly availability: "available";
106
+ readonly setupKind: "remote_mcp";
107
+ }>;
108
+ export type AvailableAccountConnectorCatalogEntry = Extract<ConnectorCatalogEntry, {
109
+ readonly availability: "available";
110
+ readonly setupKind: "oauth_account";
111
+ }>;
100
112
  /**
101
113
  * The credential a CREATE sends.
102
114
  *
@@ -38,4 +38,5 @@ export declare const queryKeys: {
38
38
  connectors: readonly ["belong", "connectors"];
39
39
  connectorList: readonly ["belong", "connectors", "list"];
40
40
  connectorCatalog: readonly ["belong", "connectors", "catalog"];
41
+ accountConnectors: readonly ["belong", "account-connectors"];
41
42
  };
@@ -0,0 +1,41 @@
1
+ import { ChoiceAnswer, ChoiceState } from '../stream/belong-data-parts.ts';
2
+ export type AnswerQuestionBody = {
3
+ readonly answers: Readonly<Record<string, ChoiceAnswer>>;
4
+ } | {
5
+ readonly reply: string;
6
+ } | {
7
+ readonly dismissed: true;
8
+ };
9
+ /** The turn a late answer started — `sessions.postMessage`'s ids + the posted text. */
10
+ export type QuestionContinuation = {
11
+ readonly messageId: string;
12
+ readonly taskId: string;
13
+ readonly runId: string;
14
+ readonly text: string;
15
+ };
16
+ /**
17
+ * `already_resolved` is the 409 with the row of record. `rejected` is any
18
+ * other non-2xx (`status` is the HTTP status; `type` the backend's typed
19
+ * error — `question_not_found`, `not_owner`, `invalid_answer` — when the body
20
+ * carried one). `unreachable` means the request never reached the server
21
+ * (network reject / CORS mask).
22
+ */
23
+ export type AnswerQuestionResult = {
24
+ readonly ok: true;
25
+ readonly continuation?: QuestionContinuation;
26
+ } | {
27
+ readonly ok: false;
28
+ readonly reason: "already_resolved";
29
+ readonly questionStatus: ChoiceState;
30
+ readonly answers?: Readonly<Record<string, ChoiceAnswer>>;
31
+ readonly reply?: string;
32
+ } | {
33
+ readonly ok: false;
34
+ readonly reason: "unreachable";
35
+ } | {
36
+ readonly ok: false;
37
+ readonly reason: "rejected";
38
+ readonly status: number;
39
+ readonly type?: string;
40
+ };
41
+ export declare const answerQuestionRequest: (apiBaseUrl: string, questionRequestId: string, body: AnswerQuestionBody) => Promise<AnswerQuestionResult>;
@@ -169,7 +169,7 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
169
169
  createdAt: z.ZodISODateTime;
170
170
  }, z.core.$strip>;
171
171
  export type TaskScheduleListItem = z.infer<typeof taskScheduleListItemSchema>;
172
- declare const taskScheduleDetailSchema: z.ZodObject<{
172
+ export declare const taskScheduleDetailSchema: z.ZodObject<{
173
173
  taskScheduleId: z.ZodUUID;
174
174
  title: z.ZodString;
175
175
  status: z.ZodEnum<{
@@ -237,6 +237,24 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
237
237
  templatePath: z.ZodString;
238
238
  recipients: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
239
239
  }, z.core.$strip>], "kind">>;
240
+ microsoftTeamsDelivery: z.ZodDefault<z.ZodNullable<z.ZodObject<{
241
+ destination: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ kind: z.ZodLiteral<"chat">;
243
+ chatId: z.ZodString;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ kind: z.ZodLiteral<"channel">;
246
+ teamId: z.ZodString;
247
+ channelId: z.ZodString;
248
+ }, z.core.$strip>], "kind">;
249
+ status: z.ZodEnum<{
250
+ active: "active";
251
+ suspended: "suspended";
252
+ revoked: "revoked";
253
+ }>;
254
+ allowExternalRecipients: z.ZodBoolean;
255
+ maxMessagesPerRun: z.ZodNumber;
256
+ expiresAt: z.ZodISODateTime;
257
+ }, z.core.$strip>>>;
240
258
  }, z.core.$strip>;
241
259
  export type TaskScheduleDetail = z.infer<typeof taskScheduleDetailSchema>;
242
260
  declare const taskScheduleRunSchema: z.ZodObject<{
@@ -328,6 +346,20 @@ export declare const useTaskSchedule: (taskScheduleId: string | null) => import(
328
346
  templatePath: string;
329
347
  recipients?: string[] | undefined;
330
348
  };
349
+ microsoftTeamsDelivery: {
350
+ destination: {
351
+ kind: "chat";
352
+ chatId: string;
353
+ } | {
354
+ kind: "channel";
355
+ teamId: string;
356
+ channelId: string;
357
+ };
358
+ status: "active" | "suspended" | "revoked";
359
+ allowExternalRecipients: boolean;
360
+ maxMessagesPerRun: number;
361
+ expiresAt: string;
362
+ } | null;
331
363
  }>, Error>;
332
364
  export declare const useTaskScheduleRuns: (taskScheduleId: string | null) => import('@tanstack/react-query').UseInfiniteQueryResult<{
333
365
  taskScheduleRunId: string;
@@ -1,6 +1,6 @@
1
- import { g as p, r as u, d as n } from "./chunk-6Q2QTUOP-o1oblyO-.js";
2
- import { p as f } from "./chunk-JWPE2WC7-CRCYILZC.js";
3
- import { _ as a, l as o } from "./mermaid-GHXKKRXX-CvjBCI1T.js";
1
+ import { g as p, r as u, d as n } from "./chunk-6Q2QTUOP-cjY3qI3C.js";
2
+ import { p as f } from "./chunk-JWPE2WC7-C_FwRGti.js";
3
+ import { _ as a, l as o } from "./mermaid-GHXKKRXX-BYmG2b26.js";
4
4
  import { M as c, b as g } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
@@ -87,4 +87,4 @@ var b = g().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ a((e) => {
87
87
  export {
88
88
  T as diagram
89
89
  };
90
- //# sourceMappingURL=abnfDiagram-N423BO3Z-BHtc0bvC.js.map
90
+ //# sourceMappingURL=abnfDiagram-N423BO3Z-DQQzuYZD.js.map