@belonguniverseai/react-sdk 0.6.13 → 0.6.15-teams.1

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 (81) hide show
  1. package/dist/api/agent-grant-status.d.ts +16 -0
  2. package/dist/api/agent-grants.d.ts +21 -30
  3. package/dist/api/client.d.ts +147 -11
  4. package/dist/api/connectors.d.ts +8 -0
  5. package/dist/api/microsoft-teams.d.ts +66 -0
  6. package/dist/api/query-keys.d.ts +1 -0
  7. package/dist/api/task-schedules.d.ts +33 -1
  8. package/dist/component/{abnfDiagram-N423BO3Z-1jAg5xBk.js → abnfDiagram-N423BO3Z-CWpleAha.js} +4 -4
  9. package/dist/component/{arc-CDFFkGb0.js → arc-B_b5cvCE.js} +2 -2
  10. package/dist/component/{architectureDiagram-T3A2C74G-ByU1Wxh_.js → architectureDiagram-T3A2C74G-CjxSulY8.js} +3 -3
  11. package/dist/component/{blockDiagram-VBNYF7ZC-fyOz7paz.js → blockDiagram-VBNYF7ZC-DUz0K7l9.js} +4 -4
  12. package/dist/component/{c4Diagram-5PPSVZJV-C3ebxeOr.js → c4Diagram-5PPSVZJV-BSHKcbgg.js} +3 -3
  13. package/dist/component/{channel-CeS5gtys.js → channel-ul0OKf-Y.js} +2 -2
  14. package/dist/component/{chunk-2GRJ4B5K-DYPMFZWG.js → chunk-2GRJ4B5K-DWWubQIc.js} +2 -2
  15. package/dist/component/{chunk-2Q5K7J3B-Ddv1XUOw.js → chunk-2Q5K7J3B-Bf95TKrA.js} +2 -2
  16. package/dist/component/{chunk-5RXB4S5H-Od07ZDCa.js → chunk-5RXB4S5H-yt2pRekp.js} +5 -5
  17. package/dist/component/{chunk-5VM5RSS4-Dc35OxqJ.js → chunk-5VM5RSS4-DC-Dhh2F.js} +2 -2
  18. package/dist/component/{chunk-6Q2QTUOP-BxtFkf6_.js → chunk-6Q2QTUOP-BYQUMWPa.js} +2 -2
  19. package/dist/component/{chunk-GF5L2VYU-CM1evJg3.js → chunk-GF5L2VYU-DCL5XslZ.js} +6 -6
  20. package/dist/component/{chunk-JWPE2WC7-SKiXqz65.js → chunk-JWPE2WC7-CTNjfyTd.js} +2 -2
  21. package/dist/component/{chunk-KBJHAD2P-DDy_ApYZ.js → chunk-KBJHAD2P-BzFOsNsS.js} +2 -2
  22. package/dist/component/{chunk-RYQCIY6F-BI-KCeeR.js → chunk-RYQCIY6F-CxHVl87G.js} +2 -2
  23. package/dist/component/{chunk-XXDRQBXY-Dtkb1En7.js → chunk-XXDRQBXY-CybjH6JT.js} +2 -2
  24. package/dist/component/{classDiagram-JCYQIIEL-CEV0LDkZ.js → classDiagram-JCYQIIEL-CUfortSf.js} +3 -3
  25. package/dist/component/{classDiagram-v2-OCEON4UE-CEV0LDkZ.js → classDiagram-v2-OCEON4UE-CUfortSf.js} +3 -3
  26. package/dist/component/{cose-bilkent-JH36ORCC-rDSv8oyY.js → cose-bilkent-JH36ORCC-gAMaOS_x.js} +2 -2
  27. package/dist/component/{cynefinDiagram-MW4NZA55-B_jHg58B.js → cynefinDiagram-MW4NZA55-Cqq2ciOe.js} +3 -3
  28. package/dist/component/{dagre-VZM6K2ZE-DUItxpHG.js → dagre-VZM6K2ZE-gUatRBAz.js} +3 -3
  29. package/dist/component/{diagram-7IWD3JNH-Bo3o1RYb.js → diagram-7IWD3JNH-HVoXgPnd.js} +4 -4
  30. package/dist/component/{diagram-B4RE2ZJO-DUFgN93l.js → diagram-B4RE2ZJO-C3oEDsJq.js} +3 -3
  31. package/dist/component/{diagram-LBJQPF4R-DIPD6T7s.js → diagram-LBJQPF4R-F8VLVhYE.js} +3 -3
  32. package/dist/component/{diagram-Q27KOJAE-CDOaZ4oP.js → diagram-Q27KOJAE-ByrpCxab.js} +4 -4
  33. package/dist/component/{diagram-UB23O5K3-DINYVPaD.js → diagram-UB23O5K3-DuounLWf.js} +3 -3
  34. package/dist/component/{ebnfDiagram-BXEA7PRR-Do_73KGZ.js → ebnfDiagram-BXEA7PRR-cSRIjmQ1.js} +4 -4
  35. package/dist/component/{erDiagram-JOGREHBK-DAy957NY.js → erDiagram-JOGREHBK-bgcT-Jvh.js} +5 -5
  36. package/dist/component/{flowDiagram-UKHOOZJN-DoEx6jMf.js → flowDiagram-UKHOOZJN-DnUXqvIy.js} +7 -7
  37. package/dist/component/{ganttDiagram-PKOTCBZU-CBwmRsnK.js → ganttDiagram-PKOTCBZU-DLWRL_xy.js} +3 -3
  38. package/dist/component/{gitGraphDiagram-DS77QQ5N-BpeGghZm.js → gitGraphDiagram-DS77QQ5N-CZTzj16I.js} +4 -4
  39. package/dist/component/{highlighted-body-OFNGDK62-Do5ncKbB.js → highlighted-body-OFNGDK62-BHENhjL0.js} +2 -2
  40. package/dist/component/index.js +2 -2
  41. package/dist/component/{infoDiagram-6WML65LV-BHZTf5Aw.js → infoDiagram-6WML65LV-XO0w0gDi.js} +2 -2
  42. package/dist/component/{ishikawaDiagram-WSZJBQD7-CqXRBCNQ.js → ishikawaDiagram-WSZJBQD7-DxLtBuST.js} +2 -2
  43. package/dist/component/{journeyDiagram-NVQOT4AX-3_hFHGr-.js → journeyDiagram-NVQOT4AX-CzkQhFXA.js} +5 -5
  44. package/dist/component/{kanban-definition-27J2QSJJ-DioTqlwL.js → kanban-definition-27J2QSJJ-BiXQYLTj.js} +3 -3
  45. package/dist/component/{linear-DLhOzhfL.js → linear-dC8sen1J.js} +2 -2
  46. package/dist/component/{mermaid-GHXKKRXX-D-ncDD1D.js → mermaid-GHXKKRXX-Cf2opCv2.js} +25870 -25276
  47. package/dist/component/{mindmap-definition-FAOFIHXS-DWyT6VOe.js → mindmap-definition-FAOFIHXS-BY0E7zzr.js} +4 -4
  48. package/dist/component/{pegDiagram-VL7TDLO6-DXZ5vWXR.js → pegDiagram-VL7TDLO6-D9kAit8B.js} +4 -4
  49. package/dist/component/{pieDiagram-7S7Q4E2Y-CZ0t0mqm.js → pieDiagram-7S7Q4E2Y-dLT0WWrb.js} +4 -4
  50. package/dist/component/{quadrantDiagram-CIZ2JOQS-D4c-cYXW.js → quadrantDiagram-CIZ2JOQS-BH5V9bJL.js} +3 -3
  51. package/dist/component/{railroadDiagram-AXF67PYL-pXucuZ44.js → railroadDiagram-AXF67PYL-CR6KpTxS.js} +4 -4
  52. package/dist/component/{requirementDiagram-LRYGKXZP-t9AgoXzr.js → requirementDiagram-LRYGKXZP-BUT_vUQr.js} +4 -4
  53. package/dist/component/{sankeyDiagram-W5VNT64P-B5Zfqraj.js → sankeyDiagram-W5VNT64P-BJSC_sO5.js} +2 -2
  54. package/dist/component/{sequenceDiagram-SI44F4Z6-mhbhxh1C.js → sequenceDiagram-SI44F4Z6-Dru3TnX4.js} +4 -4
  55. package/dist/component/{sizeCapture-X5ZJPWSS-CZxwAcF1.js → sizeCapture-X5ZJPWSS-BayO20TJ.js} +2 -2
  56. package/dist/component/{stateDiagram-OKZ733FA-DzIorb_B.js → stateDiagram-OKZ733FA-BbteUIbr.js} +3 -3
  57. package/dist/component/{stateDiagram-v2-UEYNNEHI-DAkprsu8.js → stateDiagram-v2-UEYNNEHI-DvS2V3Sy.js} +3 -3
  58. package/dist/component/{swimlanes-SLNWSIFB-UGjx6QLM.js → swimlanes-SLNWSIFB-CUTDOFkf.js} +4 -4
  59. package/dist/component/{swimlanesDiagram-ULZ7WXOC-CoIThO8N.js → swimlanesDiagram-ULZ7WXOC-rwbZUP9Q.js} +3 -3
  60. package/dist/component/{timeline-definition-Z64GVDOM-DuqSSyF4.js → timeline-definition-Z64GVDOM-GmP2iBR1.js} +3 -3
  61. package/dist/component/{vennDiagram-T6HMQDX7-DhT0weGm.js → vennDiagram-T6HMQDX7-jV3XP4p2.js} +2 -2
  62. package/dist/component/{wardleyDiagram-T6FBY63Y-C0n5Afz3.js → wardleyDiagram-T6FBY63Y-CZJ-vYBr.js} +3 -3
  63. package/dist/component/{xychartDiagram-ELKLHX3M-CtatFdoJ.js → xychartDiagram-ELKLHX3M-x6JPK6Pc.js} +3 -3
  64. package/dist/components/connectors/ConnectorMarketplaceDialog.d.ts +2 -1
  65. package/dist/components/connectors/MicrosoftTeamsConnectionDialog.d.ts +4 -0
  66. package/dist/components/connectors/NewConnectorDialog.d.ts +2 -2
  67. package/dist/components/embed/AgentGrantAutoConnect.d.ts +35 -0
  68. package/dist/components/embed/call-model-badge.d.ts +12 -0
  69. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +3 -0
  70. package/dist/embed/agent-grant-lock.d.ts +14 -0
  71. package/dist/embed/agent-grant-refresh.d.ts +1 -1
  72. package/dist/embed/dev-mode.d.ts +16 -0
  73. package/dist/embed/voice/session-create.d.ts +15 -4
  74. package/dist/embed/voice-call-model.d.ts +45 -0
  75. package/dist/i18n/messages/en.d.ts +27 -0
  76. package/dist/i18n/messages/surfaces/connectors.d.ts +45 -0
  77. package/dist/i18n/messages/surfaces/embedMisc.d.ts +3 -0
  78. package/dist/i18n/messages/surfaces/scheduled.d.ts +33 -0
  79. package/dist/stream/belong-chat-transport.d.ts +16 -0
  80. package/dist/stream/belong-data-parts.d.ts +15 -0
  81. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const agentGrantStatusViewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ status: z.ZodLiteral<"none">;
4
+ }, z.core.$strip>, z.ZodObject<{
5
+ status: z.ZodEnum<{
6
+ active: "active";
7
+ expired: "expired";
8
+ revoked: "revoked";
9
+ }>;
10
+ grantId: z.ZodString;
11
+ provider: z.ZodString;
12
+ scopeExternalId: z.ZodString;
13
+ grantedAt: z.ZodNullable<z.ZodISODateTime>;
14
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
15
+ }, z.core.$strip>], "status">;
16
+ export type AgentGrantStatusView = z.infer<typeof agentGrantStatusViewSchema>;
@@ -1,14 +1,6 @@
1
1
  import { ApiClient } from './client.ts';
2
- export type AgentGrantStatusView = {
3
- readonly status: "none";
4
- } | {
5
- readonly status: "active" | "expired" | "revoked";
6
- readonly grantId: string;
7
- readonly provider: string;
8
- readonly scopeExternalId: string;
9
- readonly grantedAt: string | null;
10
- readonly expiresAt: string | null;
11
- };
2
+ import { AgentGrantLock } from '../embed/agent-grant-lock.ts';
3
+ export type { AgentGrantStatusView } from './agent-grant-status.ts';
12
4
  export type AgentGrantSourceTrigger = "auto_connect" | "preemptive_refresh" | "reactive_reconnect";
13
5
  export type CreateAgentGrantRequestInput = {
14
6
  readonly provider: string;
@@ -21,7 +13,16 @@ export type CreateAgentGrantRequestInput = {
21
13
  export declare const useAgentGrantStatus: (input: {
22
14
  readonly provider: string;
23
15
  readonly scopeExternalId: string;
24
- } | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<AgentGrantStatusView>, Error>;
16
+ } | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
17
+ status: "none";
18
+ } | {
19
+ status: "active" | "expired" | "revoked";
20
+ grantId: string;
21
+ provider: string;
22
+ scopeExternalId: string;
23
+ grantedAt: string | null;
24
+ expiresAt: string | null;
25
+ }>, Error>;
25
26
  /**
26
27
  * The backend error type for a rate-limited mint (BEL-178). Its own status +
27
28
  * type precisely so the dock can tell "wait, the provider is throttling" apart
@@ -29,7 +30,7 @@ export declare const useAgentGrantStatus: (input: {
29
30
  * 2026-07-24, when a rate limit arrived as a 502 and the ladder below turned
30
31
  * one user action into 10–15 provider calls.
31
32
  */
32
- export declare const GRANT_RATE_LIMITED = "rate_limited";
33
+ export declare const GRANT_PROVIDER_RATE_LIMITED = "provider_rate_limited";
33
34
  /** Injectable timing/randomness so the backoff loop is deterministic in tests. */
34
35
  export type GrantRetryOptions = {
35
36
  readonly maxRetries?: number;
@@ -37,6 +38,8 @@ export type GrantRetryOptions = {
37
38
  readonly sleep?: (ms: number) => Promise<void>;
38
39
  readonly random?: () => number;
39
40
  readonly now?: () => number;
41
+ /** Injectable only so cross-tab serialization is deterministic in tests. */
42
+ readonly agentGrantLock?: AgentGrantLock;
40
43
  /**
41
44
  * Fired once, BEFORE the rate-limit wait, so the surface can say why nothing
42
45
  * is happening ("retrying automatically in 60 s") instead of showing a
@@ -54,6 +57,7 @@ export type GrantRetryOptions = {
54
57
  * into a limiter that is, by then, demonstrably saturated.
55
58
  */
56
59
  export declare const isRateLimitedGrantError: (error: unknown) => boolean;
60
+ export declare const isMintBoundaryGrantError: (error: unknown) => boolean;
57
61
  /**
58
62
  * A scope-cap error reaches callers only after the inner recovery attempt has
59
63
  * either remained unconfirmed or retried once and still failed. Outer retry
@@ -67,24 +71,11 @@ export declare const isSessionLimitedGrantError: (error: unknown) => boolean;
67
71
  */
68
72
  export declare const isPostMintGrantError: (error: unknown) => boolean;
69
73
  /**
70
- * POST a grant create with two layers of self-heal:
71
- * 1. Per attempt the 409/429 anti-replay / session-cap force-mint retry
72
- * (see `attemptGrantOnce`).
73
- * 2. Across attempts a bounded backoff retry for TRANSIENT infra failures
74
- * (502, 503 sandbox_unavailable, network errors — see `runGrantIteration` /
75
- * `isTransientGrantFailure`): up to `maxRetries` retries with full-jitter
76
- * backoff under a total time budget, so a passing Daytona runner blip or a
77
- * sandbox write hiccup self-heals instead of surfacing to the user.
78
- * 3. Rate limiting (BEL-178) — a 429 `rate_limited` schedules EXACTLY ONE
79
- * retry, at the `retryAfterMs` the backend passed through from the
80
- * provider. It is deliberately outside layer 2's count and time budget:
81
- * the provider's window (60 s) is four times the ladder's whole budget,
82
- * so folding it in would either truncate the wait or spend the budget on
83
- * requests guaranteed to be refused. One retry, at the honest time — and
84
- * if that one is refused too, the failure surfaces instead of looping,
85
- * because a second consecutive refusal means the limiter is saturated by
86
- * something we can't fix by asking again.
87
- * Injectable timing/randomness so the whole loop is unit-testable.
74
+ * Serialize same-origin browser requests for one provider scope. Once the lock
75
+ * is held, re-read current state so a waiting tab can adopt the winner instead
76
+ * of sending another non-idempotent mint. Web Locks are only an optimization;
77
+ * the server-side Redis coordinator still owns correctness across browsers and
78
+ * devices.
88
79
  */
89
80
  export declare const createAgentGrantRequest: (api: ApiClient, input: CreateAgentGrantRequestInput, opts?: GrantRetryOptions) => Promise<unknown>;
90
81
  /**
@@ -232,6 +232,7 @@ export declare const createApiClient: (baseUrl: string) => {
232
232
  title?: string | undefined;
233
233
  workspaceExternalId?: string | undefined;
234
234
  origin?: "user" | "benchmark" | undefined;
235
+ surface?: "unknown" | "dock" | "connector" | "api" | undefined;
235
236
  };
236
237
  };
237
238
  output: {
@@ -245,6 +246,7 @@ export declare const createApiClient: (baseUrl: string) => {
245
246
  title?: string | undefined;
246
247
  workspaceExternalId?: string | undefined;
247
248
  origin?: "user" | "benchmark" | undefined;
249
+ surface?: "unknown" | "dock" | "connector" | "api" | undefined;
248
250
  };
249
251
  };
250
252
  output: {
@@ -438,7 +440,7 @@ export declare const createApiClient: (baseUrl: string) => {
438
440
  skill?: string | undefined;
439
441
  mode?: "plan" | "approve" | "balanced" | "bypass" | "execute" | undefined;
440
442
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
441
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
443
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
442
444
  llmModel?: string | undefined;
443
445
  timezone?: string | undefined;
444
446
  locale?: "en" | "es" | "pt" | undefined;
@@ -466,7 +468,7 @@ export declare const createApiClient: (baseUrl: string) => {
466
468
  skill?: string | undefined;
467
469
  mode?: "plan" | "approve" | "balanced" | "bypass" | "execute" | undefined;
468
470
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
469
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
471
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
470
472
  llmModel?: string | undefined;
471
473
  timezone?: string | undefined;
472
474
  locale?: "en" | "es" | "pt" | undefined;
@@ -493,7 +495,7 @@ export declare const createApiClient: (baseUrl: string) => {
493
495
  skill?: string | undefined;
494
496
  mode?: "plan" | "approve" | "balanced" | "bypass" | "execute" | undefined;
495
497
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
496
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
498
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
497
499
  llmModel?: string | undefined;
498
500
  timezone?: string | undefined;
499
501
  locale?: "en" | "es" | "pt" | undefined;
@@ -520,7 +522,7 @@ export declare const createApiClient: (baseUrl: string) => {
520
522
  skill?: string | undefined;
521
523
  mode?: "plan" | "approve" | "balanced" | "bypass" | "execute" | undefined;
522
524
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
523
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
525
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
524
526
  llmModel?: string | undefined;
525
527
  timezone?: string | undefined;
526
528
  locale?: "en" | "es" | "pt" | undefined;
@@ -1701,6 +1703,7 @@ export declare const createApiClient: (baseUrl: string) => {
1701
1703
  input: {
1702
1704
  json: {
1703
1705
  sessionId?: string | undefined;
1706
+ modelTier?: "default" | "best" | undefined;
1704
1707
  };
1705
1708
  };
1706
1709
  output: {
@@ -1715,6 +1718,7 @@ export declare const createApiClient: (baseUrl: string) => {
1715
1718
  input: {
1716
1719
  json: {
1717
1720
  sessionId?: string | undefined;
1721
+ modelTier?: "default" | "best" | undefined;
1718
1722
  };
1719
1723
  };
1720
1724
  output: {
@@ -1728,6 +1732,7 @@ export declare const createApiClient: (baseUrl: string) => {
1728
1732
  input: {
1729
1733
  json: {
1730
1734
  sessionId?: string | undefined;
1735
+ modelTier?: "default" | "best" | undefined;
1731
1736
  };
1732
1737
  };
1733
1738
  output: {
@@ -1741,6 +1746,7 @@ export declare const createApiClient: (baseUrl: string) => {
1741
1746
  input: {
1742
1747
  json: {
1743
1748
  sessionId?: string | undefined;
1749
+ modelTier?: "default" | "best" | undefined;
1744
1750
  };
1745
1751
  };
1746
1752
  output: {
@@ -1754,6 +1760,7 @@ export declare const createApiClient: (baseUrl: string) => {
1754
1760
  input: {
1755
1761
  json: {
1756
1762
  sessionId?: string | undefined;
1763
+ modelTier?: "default" | "best" | undefined;
1757
1764
  };
1758
1765
  };
1759
1766
  output: {
@@ -3308,12 +3315,50 @@ export declare const createApiClient: (baseUrl: string) => {
3308
3315
  };
3309
3316
  output: {
3310
3317
  error: {
3311
- type: "rate_limited";
3318
+ type: string;
3319
+ boundary: "provider_rate_limited";
3320
+ retryAfterMs: number;
3321
+ };
3322
+ };
3323
+ outputFormat: "json";
3324
+ status: 429;
3325
+ } | {
3326
+ input: {
3327
+ json: {
3328
+ provider: string;
3329
+ scopeExternalId: string;
3330
+ sourceTrigger?: "reactive_reconnect" | "auto_connect" | "preemptive_refresh" | undefined;
3331
+ reconnectId?: string | undefined;
3332
+ };
3333
+ };
3334
+ output: {
3335
+ error: {
3336
+ type: string;
3337
+ boundary: "mint_budget_exhausted";
3312
3338
  retryAfterMs: number;
3313
3339
  };
3314
3340
  };
3315
3341
  outputFormat: "json";
3316
3342
  status: 429;
3343
+ } | {
3344
+ input: {
3345
+ json: {
3346
+ provider: string;
3347
+ scopeExternalId: string;
3348
+ sourceTrigger?: "reactive_reconnect" | "auto_connect" | "preemptive_refresh" | undefined;
3349
+ reconnectId?: string | undefined;
3350
+ };
3351
+ };
3352
+ output: {
3353
+ error: {
3354
+ type: string;
3355
+ boundary: "cooldown_active";
3356
+ retryAfterMs: number;
3357
+ cause: "validation" | "install";
3358
+ };
3359
+ };
3360
+ outputFormat: "json";
3361
+ status: 429;
3317
3362
  } | {
3318
3363
  input: {
3319
3364
  json: {
@@ -3476,7 +3521,7 @@ export declare const createApiClient: (baseUrl: string) => {
3476
3521
  originatingSessionId?: string | undefined;
3477
3522
  workspaceExternalId?: string | undefined;
3478
3523
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
3479
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
3524
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
3480
3525
  llmModel?: string | undefined;
3481
3526
  };
3482
3527
  };
@@ -3523,7 +3568,7 @@ export declare const createApiClient: (baseUrl: string) => {
3523
3568
  originatingSessionId?: string | undefined;
3524
3569
  workspaceExternalId?: string | undefined;
3525
3570
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
3526
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
3571
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
3527
3572
  llmModel?: string | undefined;
3528
3573
  };
3529
3574
  };
@@ -3575,7 +3620,7 @@ export declare const createApiClient: (baseUrl: string) => {
3575
3620
  originatingSessionId?: string | undefined;
3576
3621
  workspaceExternalId?: string | undefined;
3577
3622
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
3578
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
3623
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
3579
3624
  llmModel?: string | undefined;
3580
3625
  };
3581
3626
  };
@@ -3621,14 +3666,13 @@ export declare const createApiClient: (baseUrl: string) => {
3621
3666
  originatingSessionId?: string | undefined;
3622
3667
  workspaceExternalId?: string | undefined;
3623
3668
  runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
3624
- llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
3669
+ llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | "vertex" | undefined;
3625
3670
  llmModel?: string | undefined;
3626
3671
  };
3627
3672
  };
3628
3673
  output: {
3629
3674
  error: {
3630
3675
  type: string;
3631
- maxPendingSchedules: number;
3632
3676
  };
3633
3677
  };
3634
3678
  outputFormat: "json";
@@ -3699,6 +3743,20 @@ export declare const createApiClient: (baseUrl: string) => {
3699
3743
  anchorAt: string;
3700
3744
  totalRunsCount: number;
3701
3745
  updatedAt: string;
3746
+ microsoftTeamsDelivery: {
3747
+ expiresAt: string;
3748
+ destination: {
3749
+ kind: "chat";
3750
+ chatId: string;
3751
+ } | {
3752
+ kind: "channel";
3753
+ teamId: string;
3754
+ channelId: string;
3755
+ };
3756
+ status: import('../../../../apps/belong-cloud/src/features/microsoft/microsoft.schemas').MicrosoftTeamsMandateStatus;
3757
+ allowExternalRecipients: boolean;
3758
+ maxMessagesPerRun: number;
3759
+ } | null;
3702
3760
  taskScheduleId: import('node_modules/@belong/cloud/src/platform/ids').TaskScheduleSeriesId;
3703
3761
  title: string;
3704
3762
  status: "active" | "completed" | "paused" | "deleted";
@@ -4158,7 +4216,7 @@ export declare const createApiClient: (baseUrl: string) => {
4158
4216
  };
4159
4217
  };
4160
4218
  output: {
4161
- status: "active" | "completed";
4219
+ status: "active" | "completed" | "needs_attention";
4162
4220
  nextRunAt: string | null;
4163
4221
  };
4164
4222
  outputFormat: "json";
@@ -4854,6 +4912,17 @@ export declare const createApiClient: (baseUrl: string) => {
4854
4912
  preview: boolean;
4855
4913
  } | {
4856
4914
  availability: "available";
4915
+ setupKind: "microsoft_teams";
4916
+ id: string;
4917
+ name: string;
4918
+ description: string;
4919
+ iconKey: string;
4920
+ category: string;
4921
+ featured: boolean;
4922
+ preview: boolean;
4923
+ } | {
4924
+ availability: "available";
4925
+ setupKind: "remote_mcp";
4857
4926
  serverUrl: string;
4858
4927
  serverUrlMode: "fixed" | "user_provided";
4859
4928
  transport: "streamable_http" | "sse";
@@ -5398,6 +5467,70 @@ export declare const createApiClient: (baseUrl: string) => {
5398
5467
  }>;
5399
5468
  };
5400
5469
  };
5470
+ } & {
5471
+ v1: {
5472
+ microsoft: {
5473
+ oauth: {
5474
+ callback: import('hono/client').ClientRequest<string, "/v1/microsoft/oauth/callback", {
5475
+ $get: {
5476
+ input: {};
5477
+ output: {};
5478
+ outputFormat: string;
5479
+ status: import('hono/utils/http-status').StatusCode;
5480
+ };
5481
+ }>;
5482
+ };
5483
+ };
5484
+ };
5485
+ } & {
5486
+ v1: {
5487
+ microsoft: {
5488
+ connection: import('hono/client').ClientRequest<string, "/v1/microsoft/connection", {
5489
+ $get: {
5490
+ input: {};
5491
+ output: {};
5492
+ outputFormat: string;
5493
+ status: import('hono/utils/http-status').StatusCode;
5494
+ };
5495
+ $delete: {
5496
+ input: {};
5497
+ output: {};
5498
+ outputFormat: string;
5499
+ status: import('hono/utils/http-status').StatusCode;
5500
+ };
5501
+ }>;
5502
+ };
5503
+ };
5504
+ } & {
5505
+ v1: {
5506
+ microsoft: {
5507
+ oauth: {
5508
+ start: import('hono/client').ClientRequest<string, "/v1/microsoft/oauth/start", {
5509
+ $post: {
5510
+ input: {};
5511
+ output: {};
5512
+ outputFormat: string;
5513
+ status: import('hono/utils/http-status').StatusCode;
5514
+ };
5515
+ }>;
5516
+ };
5517
+ };
5518
+ };
5519
+ } & {
5520
+ v1: {
5521
+ microsoft: {
5522
+ "admin-consent": {
5523
+ start: import('hono/client').ClientRequest<string, "/v1/microsoft/admin-consent/start", {
5524
+ $post: {
5525
+ input: {};
5526
+ output: {};
5527
+ outputFormat: string;
5528
+ status: import('hono/utils/http-status').StatusCode;
5529
+ };
5530
+ }>;
5531
+ };
5532
+ };
5533
+ };
5401
5534
  } & {
5402
5535
  v1: {
5403
5536
  admin: {
@@ -5467,6 +5600,7 @@ export declare const createApiClient: (baseUrl: string) => {
5467
5600
  readonly createdAt: string;
5468
5601
  readonly updatedAt: string;
5469
5602
  readonly hasHs256Secret: boolean;
5603
+ readonly hs256SecretStrength: "absent" | "ok" | "weak";
5470
5604
  readonly hasPublishToken: boolean;
5471
5605
  readonly hasResendApiKey: boolean;
5472
5606
  readonly hasRestToolSecret: boolean;
@@ -5552,6 +5686,7 @@ export declare const createApiClient: (baseUrl: string) => {
5552
5686
  readonly createdAt: string;
5553
5687
  readonly updatedAt: string;
5554
5688
  readonly hasHs256Secret: boolean;
5689
+ readonly hs256SecretStrength: "absent" | "ok" | "weak";
5555
5690
  readonly hasPublishToken: boolean;
5556
5691
  readonly hasResendApiKey: boolean;
5557
5692
  readonly hasRestToolSecret: boolean;
@@ -5646,6 +5781,7 @@ export declare const createApiClient: (baseUrl: string) => {
5646
5781
  readonly createdAt: string;
5647
5782
  readonly updatedAt: string;
5648
5783
  readonly hasHs256Secret: boolean;
5784
+ readonly hs256SecretStrength: "absent" | "ok" | "weak";
5649
5785
  readonly hasPublishToken: boolean;
5650
5786
  readonly hasResendApiKey: boolean;
5651
5787
  readonly hasRestToolSecret: boolean;
@@ -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,17 @@ 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: "microsoft_teams";
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
+ }>;
100
108
  /**
101
109
  * The credential a CREATE sends.
102
110
  *
@@ -0,0 +1,66 @@
1
+ import { z } from 'zod';
2
+ import { ApiClient } from './client.ts';
3
+ declare const microsoftTeamsConnectionSchema: z.ZodObject<{
4
+ connected: z.ZodBoolean;
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
+ userPrincipalName: z.ZodString;
14
+ }, z.core.$strip>>;
15
+ capabilities: z.ZodObject<{
16
+ baseline: z.ZodEnum<{
17
+ error: "error";
18
+ needs_auth: "needs_auth";
19
+ ready: "ready";
20
+ }>;
21
+ channelHistory: z.ZodEnum<{
22
+ error: "error";
23
+ ready: "ready";
24
+ needs_admin_consent: "needs_admin_consent";
25
+ }>;
26
+ transcripts: z.ZodEnum<{
27
+ error: "error";
28
+ ready: "ready";
29
+ needs_admin_consent: "needs_admin_consent";
30
+ transcript_access_disabled: "transcript_access_disabled";
31
+ }>;
32
+ messageSearch: z.ZodEnum<{
33
+ error: "error";
34
+ needs_auth: "needs_auth";
35
+ ready: "ready";
36
+ disabled: "disabled";
37
+ }>;
38
+ }, z.core.$strip>;
39
+ }, z.core.$strip>;
40
+ export type MicrosoftTeamsConnection = z.infer<typeof microsoftTeamsConnectionSchema>;
41
+ export type MicrosoftTeamsConnectionResult = {
42
+ readonly status: "ready";
43
+ readonly connection: MicrosoftTeamsConnection;
44
+ } | {
45
+ readonly status: "featureAbsent";
46
+ };
47
+ export type MicrosoftTeamsAuthorizationOutcome = {
48
+ readonly status: "started";
49
+ readonly authorizationUrl: string;
50
+ } | {
51
+ readonly status: "invalid_return_path" | "connection_not_found" | "provider_unavailable" | "forbidden" | "featureAbsent" | "error";
52
+ };
53
+ export type DisconnectMicrosoftTeamsOutcome = {
54
+ readonly status: "disconnected";
55
+ } | {
56
+ readonly status: "forbidden" | "featureAbsent" | "error";
57
+ };
58
+ export declare const getMicrosoftTeamsConnectionRequest: (api: ApiClient, signal?: AbortSignal) => Promise<MicrosoftTeamsConnectionResult>;
59
+ export declare const startMicrosoftTeamsOAuthRequest: (api: ApiClient, returnPath: string) => Promise<MicrosoftTeamsAuthorizationOutcome>;
60
+ export declare const startMicrosoftTeamsAdminConsentRequest: (api: ApiClient, returnPath: string) => Promise<MicrosoftTeamsAuthorizationOutcome>;
61
+ export declare const disconnectMicrosoftTeamsRequest: (api: ApiClient) => Promise<DisconnectMicrosoftTeamsOutcome>;
62
+ export declare const useMicrosoftTeamsConnection: () => import('@tanstack/react-query').UseQueryResult<NoInfer<MicrosoftTeamsConnectionResult>, Error>;
63
+ export declare const useStartMicrosoftTeamsOAuth: () => import('@tanstack/react-query').UseMutationResult<MicrosoftTeamsAuthorizationOutcome, Error, string, unknown>;
64
+ export declare const useStartMicrosoftTeamsAdminConsent: () => import('@tanstack/react-query').UseMutationResult<MicrosoftTeamsAuthorizationOutcome, Error, string, unknown>;
65
+ export declare const useDisconnectMicrosoftTeams: () => import('@tanstack/react-query').UseMutationResult<DisconnectMicrosoftTeamsOutcome, Error, void, unknown>;
66
+ export {};
@@ -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
+ microsoftTeamsConnection: readonly ["belong", "microsoft-teams", "connection"];
41
42
  };
@@ -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-BxtFkf6_.js";
2
- import { p as f } from "./chunk-JWPE2WC7-SKiXqz65.js";
3
- import { _ as a, l as o } from "./mermaid-GHXKKRXX-D-ncDD1D.js";
1
+ import { g as p, r as u, d as n } from "./chunk-6Q2QTUOP-BYQUMWPa.js";
2
+ import { p as f } from "./chunk-JWPE2WC7-CTNjfyTd.js";
3
+ import { _ as a, l as o } from "./mermaid-GHXKKRXX-Cf2opCv2.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-1jAg5xBk.js.map
90
+ //# sourceMappingURL=abnfDiagram-N423BO3Z-CWpleAha.js.map
@@ -1,4 +1,4 @@
1
- import { H as ln, I as an, J as g, K as on, M as Q, N as w, O as _, P as sn, Q as rn, S as X, T as t, V as J, W as un, X as tn, Y as fn } from "./mermaid-GHXKKRXX-D-ncDD1D.js";
1
+ import { H as ln, I as an, J as g, K as on, M as Q, N as w, O as _, P as sn, Q as rn, S as X, T as t, V as J, W as un, X as tn, Y as fn } from "./mermaid-GHXKKRXX-Cf2opCv2.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  function cn(l) {
@@ -83,4 +83,4 @@ function xn() {
83
83
  export {
84
84
  xn as d
85
85
  };
86
- //# sourceMappingURL=arc-CDFFkGb0.js.map
86
+ //# sourceMappingURL=arc-B_b5cvCE.js.map
@@ -1,5 +1,5 @@
1
- import { p as ke } from "./chunk-JWPE2WC7-SKiXqz65.js";
2
- import { ba as qe, _ as ct, G as Qe, ag as Je, l as Se, b as Ke, a as je, o as _e, p as tr, g as er, s as rr, q as ir, D as ar, z as nr, E as or, c as me, b2 as Ee, al as ve, i as sr, d as hr, r as lr, am as fr, bb as cr } from "./mermaid-GHXKKRXX-D-ncDD1D.js";
1
+ import { p as ke } from "./chunk-JWPE2WC7-CTNjfyTd.js";
2
+ import { ba as qe, _ as ct, G as Qe, ag as Je, l as Se, b as Ke, a as je, o as _e, p as tr, g as er, s as rr, q as ir, D as ar, z as nr, E as or, c as me, b2 as Ee, al as ve, i as sr, d as hr, r as lr, am as fr, bb as cr } from "./mermaid-GHXKKRXX-Cf2opCv2.js";
3
3
  import { p as gr } from "./cynefin-VYW2F7L2-DAyxamLw.js";
4
4
  import { c as Fe } from "./cytoscape.esm-C31R6JOv.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
@@ -4781,4 +4781,4 @@ var Ur = /* @__PURE__ */ ct(async (w, F, M, P) => {
4781
4781
  export {
4782
4782
  zr as diagram
4783
4783
  };
4784
- //# sourceMappingURL=architectureDiagram-T3A2C74G-ByU1Wxh_.js.map
4784
+ //# sourceMappingURL=architectureDiagram-T3A2C74G-CjxSulY8.js.map
@@ -1,7 +1,7 @@
1
- import { g as de } from "./chunk-5VM5RSS4-Dc35OxqJ.js";
2
- import { aD as pe, aE as Kt, aF as fe, aG as xe, aH as ye, aI as be, aJ as we, aK as me, aL as Se, aM as Le, aN as ke, aO as ve, aP as Ee, aQ as _e, aR as Te, aS as De, aT as Be, aU as Ne, aV as Ie, aW as Ce, aX as Oe, aY as Re, aZ as Ae, a_ as ze, a$ as Me, _ as g, z as rt, d as D, e as Pe, l as k, q as Fe, t as We, c as R, b0 as Ye, aa as He, ab as Ke, a6 as Ue, b1 as M, b2 as kt, b3 as Q, av as Xe, y as $, k as Ve, b4 as je, i as Ct, b5 as Ot, b6 as Ge } from "./mermaid-GHXKKRXX-D-ncDD1D.js";
1
+ import { g as de } from "./chunk-5VM5RSS4-DC-Dhh2F.js";
2
+ import { aD as pe, aE as Kt, aF as fe, aG as xe, aH as ye, aI as be, aJ as we, aK as me, aL as Se, aM as Le, aN as ke, aO as ve, aP as Ee, aQ as _e, aR as Te, aS as De, aT as Be, aU as Ne, aV as Ie, aW as Ce, aX as Oe, aY as Re, aZ as Ae, a_ as ze, a$ as Me, _ as g, z as rt, d as D, e as Pe, l as k, q as Fe, t as We, c as R, b0 as Ye, aa as He, ab as Ke, a6 as Ue, b1 as M, b2 as kt, b3 as Q, av as Xe, y as $, k as Ve, b4 as je, i as Ct, b5 as Ot, b6 as Ge } from "./mermaid-GHXKKRXX-Cf2opCv2.js";
3
3
  import { G as Ze } from "./graph-CWpEkm4G.js";
4
- import { c as qe } from "./channel-CeS5gtys.js";
4
+ import { c as qe } from "./channel-ul0OKf-Y.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
7
7
  function Je(e) {
@@ -2419,4 +2419,4 @@ var Ea = /* @__PURE__ */ g(function(e, t) {
2419
2419
  export {
2420
2420
  Ca as diagram
2421
2421
  };
2422
- //# sourceMappingURL=blockDiagram-VBNYF7ZC-fyOz7paz.js.map
2422
+ //# sourceMappingURL=blockDiagram-VBNYF7ZC-DUz0K7l9.js.map