@belonguniverseai/react-sdk 0.6.1 → 0.6.3

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/agent-grants.d.ts +6 -0
  2. package/dist/api/client.d.ts +88 -27
  3. package/dist/api/task-schedules.d.ts +138 -255
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
  6. package/dist/component/arc-Cpnt_LFj.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
  10. package/dist/component/{channel-vtwXLQ1f.js → channel-DnM50Ep0.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-DondfmT2.js → linear-Bi0C-9d1.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-BaBCeViM.js} +34453 -35613
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
  65. package/dist/components/embed/BetaBadge.d.ts +12 -0
  66. package/dist/components/embed/DisclaimerGate.d.ts +16 -0
  67. package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
  68. package/dist/components/embed/LocalePills.d.ts +18 -0
  69. package/dist/components/embed/WelcomeIntro.d.ts +3 -1
  70. package/dist/embed/brand-marks.d.ts +5 -5
  71. package/dist/embed/copy.d.ts +13 -0
  72. package/dist/embed/legal-disclaimer.d.ts +23 -0
  73. package/dist/embed/presets.d.ts +5 -1
  74. package/dist/embed/task-schedule-store.d.ts +3 -13
  75. package/dist/embed/voice/call-active-marker.d.ts +1 -20
  76. package/dist/embed/voice/line-slots.d.ts +37 -2
  77. package/dist/embed/voice/voice-token.d.ts +2 -12
  78. package/dist/embed/voice-call.d.ts +12 -0
  79. package/dist/i18n/messages/en.d.ts +1 -2
  80. package/dist/lib/web-storage.d.ts +8 -0
  81. package/dist/stream/belong-chat-transport.d.ts +101 -587
  82. package/dist/stream/message-metadata.d.ts +6 -36
  83. package/dist/stream/stream-state-store.d.ts +14 -25
  84. package/dist/types/public.d.ts +3 -0
  85. package/package.json +1 -1
  86. package/dist/component/arc-BziuP1aB.js +0 -86
  87. package/dist/component/dagre-BM42HDAG-BmujNepD.js +0 -448
  88. package/dist/component/diagram-2AECGRRQ-Cbck9DRQ.js +0 -220
  89. package/dist/component/diagram-5GNKFQAL-csRK5clZ.js +0 -126
  90. package/dist/component/ganttDiagram-6RSMTGT7-C_dcTMQX.js +0 -2709
  91. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  92. package/dist/component/pieDiagram-4H26LBE5-DmYi_D3l.js +0 -166
  93. package/dist/component/vennDiagram-CIIHVFJN-5RYbksB1.js +0 -1560
@@ -45,6 +45,12 @@ export type GrantRetryOptions = {
45
45
  * into a limiter that is, by then, demonstrably saturated.
46
46
  */
47
47
  export declare const isRateLimitedGrantError: (error: unknown) => boolean;
48
+ /**
49
+ * A scope-cap error reaches callers only after the inner recovery attempt has
50
+ * either remained unconfirmed or retried once and still failed. Outer retry
51
+ * ladders must stop instead of repeating the whole mint + revoke pipeline.
52
+ */
53
+ export declare const isSessionLimitedGrantError: (error: unknown) => boolean;
48
54
  /**
49
55
  * POST a grant create with two layers of self-heal:
50
56
  * 1. Per attempt — the 409/429 anti-replay / session-cap force-mint retry
@@ -1012,6 +1012,38 @@ export declare const createApiClient: (baseUrl: string) => {
1012
1012
  };
1013
1013
  };
1014
1014
  };
1015
+ } & {
1016
+ v1: {
1017
+ legal: {
1018
+ "disclaimer-acceptance": import('hono/client').ClientRequest<string, "/v1/legal/disclaimer-acceptance", {
1019
+ $get: {
1020
+ input: {
1021
+ query: {
1022
+ version: string;
1023
+ };
1024
+ };
1025
+ output: {
1026
+ readonly accepted: boolean;
1027
+ };
1028
+ outputFormat: "json";
1029
+ status: 200;
1030
+ };
1031
+ $post: {
1032
+ input: {
1033
+ json: {
1034
+ version: string;
1035
+ locale: "en" | "es" | "pt";
1036
+ };
1037
+ };
1038
+ output: {
1039
+ readonly status: "accepted";
1040
+ };
1041
+ outputFormat: "json";
1042
+ status: 200;
1043
+ };
1044
+ }>;
1045
+ };
1046
+ };
1015
1047
  } & {
1016
1048
  v1: {
1017
1049
  runs: {
@@ -2670,33 +2702,7 @@ export declare const createApiClient: (baseUrl: string) => {
2670
2702
  input: {};
2671
2703
  output: {
2672
2704
  theme: {
2673
- brand?: {
2674
- name?: string | undefined;
2675
- initials?: string | undefined;
2676
- logo?: string | undefined;
2677
- } | undefined;
2678
2705
  mode?: "light" | "dark" | undefined;
2679
- copy?: {
2680
- en?: {
2681
- capabilities?: string[] | undefined;
2682
- subtitle?: string | undefined;
2683
- introBody?: string | undefined;
2684
- suggestions?: string[] | undefined;
2685
- } | undefined;
2686
- es?: {
2687
- capabilities?: string[] | undefined;
2688
- subtitle?: string | undefined;
2689
- introBody?: string | undefined;
2690
- suggestions?: string[] | undefined;
2691
- } | undefined;
2692
- pt?: {
2693
- capabilities?: string[] | undefined;
2694
- subtitle?: string | undefined;
2695
- introBody?: string | undefined;
2696
- suggestions?: string[] | undefined;
2697
- } | undefined;
2698
- } | undefined;
2699
- accent?: string | undefined;
2700
2706
  side?: "right" | "left" | undefined;
2701
2707
  density?: "comfortable" | "compact" | undefined;
2702
2708
  panelWidth?: number | undefined;
@@ -2738,9 +2744,35 @@ export declare const createApiClient: (baseUrl: string) => {
2738
2744
  assistantBubbleForeground?: string | undefined;
2739
2745
  } | undefined;
2740
2746
  } | undefined;
2747
+ brand?: {
2748
+ name?: string | undefined;
2749
+ initials?: string | undefined;
2750
+ logo?: string | undefined;
2751
+ } | undefined;
2752
+ accent?: string | undefined;
2741
2753
  cssVars?: {
2742
2754
  [x: string]: string;
2743
2755
  } | undefined;
2756
+ copy?: {
2757
+ en?: {
2758
+ subtitle?: string | undefined;
2759
+ capabilities?: string[] | undefined;
2760
+ introBody?: string | undefined;
2761
+ suggestions?: string[] | undefined;
2762
+ } | undefined;
2763
+ es?: {
2764
+ subtitle?: string | undefined;
2765
+ capabilities?: string[] | undefined;
2766
+ introBody?: string | undefined;
2767
+ suggestions?: string[] | undefined;
2768
+ } | undefined;
2769
+ pt?: {
2770
+ subtitle?: string | undefined;
2771
+ capabilities?: string[] | undefined;
2772
+ introBody?: string | undefined;
2773
+ suggestions?: string[] | undefined;
2774
+ } | undefined;
2775
+ } | undefined;
2744
2776
  };
2745
2777
  };
2746
2778
  outputFormat: "json";
@@ -3241,7 +3273,23 @@ export declare const createApiClient: (baseUrl: string) => {
3241
3273
  };
3242
3274
  output: {
3243
3275
  error: {
3244
- type: string;
3276
+ type: "scope_session_limit";
3277
+ recovery: "provider_sessions_revoked" | "unconfirmed";
3278
+ };
3279
+ };
3280
+ outputFormat: "json";
3281
+ status: 429;
3282
+ } | {
3283
+ input: {
3284
+ json: {
3285
+ provider: string;
3286
+ scopeExternalId: string;
3287
+ };
3288
+ };
3289
+ output: {
3290
+ error: {
3291
+ type: "rate_limited";
3292
+ retryAfterMs: number;
3245
3293
  };
3246
3294
  };
3247
3295
  outputFormat: "json";
@@ -3350,6 +3398,19 @@ export declare const createApiClient: (baseUrl: string) => {
3350
3398
  };
3351
3399
  outputFormat: "json";
3352
3400
  status: 404;
3401
+ } | {
3402
+ input: {
3403
+ param: {
3404
+ grantId: string;
3405
+ };
3406
+ };
3407
+ output: {
3408
+ error: {
3409
+ type: string;
3410
+ };
3411
+ };
3412
+ outputFormat: "json";
3413
+ status: 503;
3353
3414
  };
3354
3415
  }>;
3355
3416
  };
@@ -44,7 +44,14 @@ export type CreateTaskScheduleRequest = {
44
44
  };
45
45
  export declare const createTaskSchedule: (apiBaseUrl: string, input: CreateTaskScheduleRequest) => Promise<CreateTaskScheduleOutcome>;
46
46
  export declare const deleteTaskSchedule: (apiBaseUrl: string, taskScheduleId: string) => Promise<DeleteTaskScheduleOutcome>;
47
- export declare const recurrenceKindSchema: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
47
+ export declare const recurrenceKindSchema: z.ZodEnum<{
48
+ none: "none";
49
+ manual: "manual";
50
+ daily: "daily";
51
+ weekdays: "weekdays";
52
+ weekly: "weekly";
53
+ interval: "interval";
54
+ }>;
48
55
  export type RecurrenceKind = z.infer<typeof recurrenceKindSchema>;
49
56
  /** Bounds for the `interval` cadence (BEL-157): 1 minute up to a full day. */
50
57
  export declare const MIN_RECURRENCE_INTERVAL_MINUTES = 1;
@@ -77,16 +84,17 @@ export type Recurrence = {
77
84
  * `interval` without a width (and dropping a stray width on any other kind) so
78
85
  * malformed wire state fails here, not three renders downstream.
79
86
  */
80
- export declare const recurrenceSchema: z.ZodEffects<z.ZodObject<{
81
- kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
87
+ export declare const recurrenceSchema: z.ZodPipe<z.ZodObject<{
88
+ kind: z.ZodEnum<{
89
+ none: "none";
90
+ manual: "manual";
91
+ daily: "daily";
92
+ weekdays: "weekdays";
93
+ weekly: "weekly";
94
+ interval: "interval";
95
+ }>;
82
96
  intervalMinutes: z.ZodOptional<z.ZodNumber>;
83
- }, "strip", z.ZodTypeAny, {
84
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
85
- intervalMinutes?: number | undefined;
86
- }, {
87
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
88
- intervalMinutes?: number | undefined;
89
- }>, {
97
+ }, z.core.$strip>, z.ZodTransform<{
90
98
  readonly kind: "none";
91
99
  } | {
92
100
  readonly kind: "daily";
@@ -102,24 +110,35 @@ export declare const recurrenceSchema: z.ZodEffects<z.ZodObject<{
102
110
  }, {
103
111
  kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
104
112
  intervalMinutes?: number | undefined;
113
+ }>>;
114
+ export declare const taskScheduleSeriesStatusSchema: z.ZodEnum<{
115
+ active: "active";
116
+ completed: "completed";
117
+ paused: "paused";
118
+ deleted: "deleted";
105
119
  }>;
106
- export declare const taskScheduleSeriesStatusSchema: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
107
120
  export type TaskScheduleSeriesStatus = z.infer<typeof taskScheduleSeriesStatusSchema>;
108
121
  export type TaskScheduleFilter = "all" | "upcoming" | "completed";
109
122
  declare const taskScheduleListItemSchema: z.ZodObject<{
110
- taskScheduleId: z.ZodString;
123
+ taskScheduleId: z.ZodUUID;
111
124
  title: z.ZodString;
112
- status: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
113
- recurrence: z.ZodEffects<z.ZodObject<{
114
- kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
125
+ status: z.ZodEnum<{
126
+ active: "active";
127
+ completed: "completed";
128
+ paused: "paused";
129
+ deleted: "deleted";
130
+ }>;
131
+ recurrence: z.ZodPipe<z.ZodObject<{
132
+ kind: z.ZodEnum<{
133
+ none: "none";
134
+ manual: "manual";
135
+ daily: "daily";
136
+ weekdays: "weekdays";
137
+ weekly: "weekly";
138
+ interval: "interval";
139
+ }>;
115
140
  intervalMinutes: z.ZodOptional<z.ZodNumber>;
116
- }, "strip", z.ZodTypeAny, {
117
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
118
- intervalMinutes?: number | undefined;
119
- }, {
120
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
121
- intervalMinutes?: number | undefined;
122
- }>, {
141
+ }, z.core.$strip>, z.ZodTransform<{
123
142
  readonly kind: "none";
124
143
  } | {
125
144
  readonly kind: "daily";
@@ -135,79 +154,41 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
135
154
  }, {
136
155
  kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
137
156
  intervalMinutes?: number | undefined;
138
- }>;
157
+ }>>;
139
158
  timezone: z.ZodString;
140
- nextRunAt: z.ZodNullable<z.ZodString>;
159
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
141
160
  lastRun: z.ZodNullable<z.ZodObject<{
142
- status: z.ZodEnum<["running", "completed", "failed"]>;
143
- at: z.ZodNullable<z.ZodString>;
144
- }, "strip", z.ZodTypeAny, {
145
- at: string | null;
146
- status: "completed" | "failed" | "running";
147
- }, {
148
- at: string | null;
149
- status: "completed" | "failed" | "running";
150
- }>>;
161
+ status: z.ZodEnum<{
162
+ completed: "completed";
163
+ failed: "failed";
164
+ running: "running";
165
+ }>;
166
+ at: z.ZodNullable<z.ZodISODateTime>;
167
+ }, z.core.$strip>>;
151
168
  messagePreview: z.ZodString;
152
- createdAt: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- status: "active" | "completed" | "paused" | "deleted";
155
- title: string;
156
- createdAt: string;
157
- timezone: string;
158
- nextRunAt: string | null;
159
- taskScheduleId: string;
160
- recurrence: {
161
- readonly kind: "none";
162
- } | {
163
- readonly kind: "daily";
164
- } | {
165
- readonly kind: "weekdays";
166
- } | {
167
- readonly kind: "weekly";
168
- } | {
169
- readonly kind: "manual";
170
- } | {
171
- readonly kind: "interval";
172
- readonly intervalMinutes: number;
173
- };
174
- lastRun: {
175
- at: string | null;
176
- status: "completed" | "failed" | "running";
177
- } | null;
178
- messagePreview: string;
179
- }, {
180
- status: "active" | "completed" | "paused" | "deleted";
181
- title: string;
182
- createdAt: string;
183
- timezone: string;
184
- nextRunAt: string | null;
185
- taskScheduleId: string;
186
- recurrence: {
187
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
188
- intervalMinutes?: number | undefined;
189
- };
190
- lastRun: {
191
- at: string | null;
192
- status: "completed" | "failed" | "running";
193
- } | null;
194
- messagePreview: string;
195
- }>;
169
+ createdAt: z.ZodISODateTime;
170
+ }, z.core.$strip>;
196
171
  export type TaskScheduleListItem = z.infer<typeof taskScheduleListItemSchema>;
197
172
  declare const taskScheduleDetailSchema: z.ZodObject<{
198
- taskScheduleId: z.ZodString;
173
+ taskScheduleId: z.ZodUUID;
199
174
  title: z.ZodString;
200
- status: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
201
- recurrence: z.ZodEffects<z.ZodObject<{
202
- kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
175
+ status: z.ZodEnum<{
176
+ active: "active";
177
+ completed: "completed";
178
+ paused: "paused";
179
+ deleted: "deleted";
180
+ }>;
181
+ recurrence: z.ZodPipe<z.ZodObject<{
182
+ kind: z.ZodEnum<{
183
+ none: "none";
184
+ manual: "manual";
185
+ daily: "daily";
186
+ weekdays: "weekdays";
187
+ weekly: "weekly";
188
+ interval: "interval";
189
+ }>;
203
190
  intervalMinutes: z.ZodOptional<z.ZodNumber>;
204
- }, "strip", z.ZodTypeAny, {
205
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
206
- intervalMinutes?: number | undefined;
207
- }, {
208
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
209
- intervalMinutes?: number | undefined;
210
- }>, {
191
+ }, z.core.$strip>, z.ZodTransform<{
211
192
  readonly kind: "none";
212
193
  } | {
213
194
  readonly kind: "daily";
@@ -223,71 +204,66 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
223
204
  }, {
224
205
  kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
225
206
  intervalMinutes?: number | undefined;
226
- }>;
207
+ }>>;
227
208
  timezone: z.ZodString;
228
- nextRunAt: z.ZodNullable<z.ZodString>;
209
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
229
210
  lastRun: z.ZodNullable<z.ZodObject<{
230
- status: z.ZodEnum<["running", "completed", "failed"]>;
231
- at: z.ZodNullable<z.ZodString>;
232
- }, "strip", z.ZodTypeAny, {
233
- at: string | null;
234
- status: "completed" | "failed" | "running";
235
- }, {
236
- at: string | null;
237
- status: "completed" | "failed" | "running";
238
- }>>;
211
+ status: z.ZodEnum<{
212
+ completed: "completed";
213
+ failed: "failed";
214
+ running: "running";
215
+ }>;
216
+ at: z.ZodNullable<z.ZodISODateTime>;
217
+ }, z.core.$strip>>;
239
218
  messagePreview: z.ZodString;
240
- createdAt: z.ZodString;
241
- } & {
219
+ createdAt: z.ZodISODateTime;
242
220
  explicitTitle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
243
221
  message: z.ZodString;
244
- mode: z.ZodEnum<["plan", "approve", "balanced", "bypass"]>;
222
+ mode: z.ZodEnum<{
223
+ plan: "plan";
224
+ approve: "approve";
225
+ balanced: "balanced";
226
+ bypass: "bypass";
227
+ }>;
245
228
  timeExpression: z.ZodString;
246
- anchorAt: z.ZodString;
229
+ anchorAt: z.ZodISODateTime;
247
230
  totalRunsCount: z.ZodNumber;
248
- updatedAt: z.ZodString;
249
- notification: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
231
+ updatedAt: z.ZodISODateTime;
232
+ notification: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
250
233
  kind: z.ZodLiteral<"completion_email">;
251
- recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
- }, "strip", z.ZodTypeAny, {
253
- kind: "completion_email";
254
- recipients?: string[] | undefined;
255
- }, {
256
- kind: "completion_email";
257
- recipients?: string[] | undefined;
258
- }>, z.ZodObject<{
234
+ recipients: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
235
+ }, z.core.$strip>, z.ZodObject<{
259
236
  kind: z.ZodLiteral<"custom_email">;
260
237
  templatePath: z.ZodString;
261
- recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
- }, "strip", z.ZodTypeAny, {
263
- kind: "custom_email";
264
- templatePath: string;
265
- recipients?: string[] | undefined;
266
- }, {
267
- kind: "custom_email";
268
- templatePath: string;
269
- recipients?: string[] | undefined;
270
- }>]>>;
271
- }, "strip", z.ZodTypeAny, {
272
- status: "active" | "completed" | "paused" | "deleted";
273
- title: string;
274
- mode: "plan" | "approve" | "balanced" | "bypass";
275
- createdAt: string;
276
- updatedAt: string;
277
- message: string;
278
- timeExpression: string;
279
- timezone: string;
280
- anchorAt: string;
281
- nextRunAt: string | null;
238
+ recipients: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
239
+ }, z.core.$strip>], "kind">>;
240
+ }, z.core.$strip>;
241
+ export type TaskScheduleDetail = z.infer<typeof taskScheduleDetailSchema>;
242
+ declare const taskScheduleRunSchema: z.ZodObject<{
243
+ taskScheduleRunId: z.ZodUUID;
244
+ occurrenceKind: z.ZodEnum<{
245
+ scheduled: "scheduled";
246
+ manual: "manual";
247
+ }>;
248
+ displayStatus: z.ZodEnum<{
249
+ completed: "completed";
250
+ failed: "failed";
251
+ running: "running";
252
+ needs_attention: "needs_attention";
253
+ }>;
254
+ scheduledFor: z.ZodISODateTime;
255
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
256
+ finishedAt: z.ZodNullable<z.ZodISODateTime>;
257
+ failureReason: z.ZodNullable<z.ZodString>;
258
+ sessionId: z.ZodNullable<z.ZodUUID>;
259
+ taskId: z.ZodNullable<z.ZodUUID>;
260
+ runId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
261
+ }, z.core.$strip>;
262
+ export type TaskScheduleRun = z.infer<typeof taskScheduleRunSchema>;
263
+ export declare const useTaskSchedules: (filter: TaskScheduleFilter, q: string) => import('@tanstack/react-query').UseInfiniteQueryResult<{
282
264
  taskScheduleId: string;
283
- notification: {
284
- kind: "completion_email";
285
- recipients?: string[] | undefined;
286
- } | {
287
- kind: "custom_email";
288
- templatePath: string;
289
- recipients?: string[] | undefined;
290
- };
265
+ title: string;
266
+ status: "active" | "completed" | "paused" | "deleted";
291
267
  recurrence: {
292
268
  readonly kind: "none";
293
269
  } | {
@@ -302,88 +278,19 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
302
278
  readonly kind: "interval";
303
279
  readonly intervalMinutes: number;
304
280
  };
305
- explicitTitle: string | null;
306
- totalRunsCount: number;
307
- lastRun: {
308
- at: string | null;
309
- status: "completed" | "failed" | "running";
310
- } | null;
311
- messagePreview: string;
312
- }, {
313
- status: "active" | "completed" | "paused" | "deleted";
314
- title: string;
315
- mode: "plan" | "approve" | "balanced" | "bypass";
316
- createdAt: string;
317
- updatedAt: string;
318
- message: string;
319
- timeExpression: string;
320
281
  timezone: string;
321
- anchorAt: string;
322
282
  nextRunAt: string | null;
323
- taskScheduleId: string;
324
- recurrence: {
325
- kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
326
- intervalMinutes?: number | undefined;
327
- };
328
- totalRunsCount: number;
329
283
  lastRun: {
330
- at: string | null;
331
284
  status: "completed" | "failed" | "running";
285
+ at: string | null;
332
286
  } | null;
333
287
  messagePreview: string;
334
- notification?: {
335
- kind: "completion_email";
336
- recipients?: string[] | undefined;
337
- } | {
338
- kind: "custom_email";
339
- templatePath: string;
340
- recipients?: string[] | undefined;
341
- } | undefined;
342
- explicitTitle?: string | null | undefined;
343
- }>;
344
- export type TaskScheduleDetail = z.infer<typeof taskScheduleDetailSchema>;
345
- declare const taskScheduleRunSchema: z.ZodObject<{
346
- taskScheduleRunId: z.ZodString;
347
- occurrenceKind: z.ZodEnum<["scheduled", "manual"]>;
348
- displayStatus: z.ZodEnum<["running", "needs_attention", "completed", "failed"]>;
349
- scheduledFor: z.ZodString;
350
- startedAt: z.ZodNullable<z.ZodString>;
351
- finishedAt: z.ZodNullable<z.ZodString>;
352
- failureReason: z.ZodNullable<z.ZodString>;
353
- sessionId: z.ZodNullable<z.ZodString>;
354
- taskId: z.ZodNullable<z.ZodString>;
355
- runId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
356
- }, "strip", z.ZodTypeAny, {
357
- sessionId: string | null;
358
- taskId: string | null;
359
- runId: string | null;
360
- failureReason: string | null;
361
- occurrenceKind: "scheduled" | "manual";
362
- scheduledFor: string;
363
- startedAt: string | null;
364
- finishedAt: string | null;
365
- taskScheduleRunId: string;
366
- displayStatus: "completed" | "failed" | "running" | "needs_attention";
367
- }, {
368
- sessionId: string | null;
369
- taskId: string | null;
370
- failureReason: string | null;
371
- occurrenceKind: "scheduled" | "manual";
372
- scheduledFor: string;
373
- startedAt: string | null;
374
- finishedAt: string | null;
375
- taskScheduleRunId: string;
376
- displayStatus: "completed" | "failed" | "running" | "needs_attention";
377
- runId?: string | null | undefined;
378
- }>;
379
- export type TaskScheduleRun = z.infer<typeof taskScheduleRunSchema>;
380
- export declare const useTaskSchedules: (filter: TaskScheduleFilter, q: string) => import('@tanstack/react-query').UseInfiniteQueryResult<{
381
- status: "active" | "completed" | "paused" | "deleted";
382
- title: string;
383
288
  createdAt: string;
384
- timezone: string;
385
- nextRunAt: string | null;
289
+ }[], Error>;
290
+ export declare const useTaskSchedule: (taskScheduleId: string | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
386
291
  taskScheduleId: string;
292
+ title: string;
293
+ status: "active" | "completed" | "paused" | "deleted";
387
294
  recurrence: {
388
295
  readonly kind: "none";
389
296
  } | {
@@ -398,24 +305,21 @@ export declare const useTaskSchedules: (filter: TaskScheduleFilter, q: string) =
398
305
  readonly kind: "interval";
399
306
  readonly intervalMinutes: number;
400
307
  };
308
+ timezone: string;
309
+ nextRunAt: string | null;
401
310
  lastRun: {
402
- at: string | null;
403
311
  status: "completed" | "failed" | "running";
312
+ at: string | null;
404
313
  } | null;
405
314
  messagePreview: string;
406
- }[], Error>;
407
- export declare const useTaskSchedule: (taskScheduleId: string | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
408
- status: "active" | "completed" | "paused" | "deleted";
409
- title: string;
410
- mode: "plan" | "approve" | "balanced" | "bypass";
411
315
  createdAt: string;
412
- updatedAt: string;
316
+ explicitTitle: string | null;
413
317
  message: string;
318
+ mode: "plan" | "approve" | "balanced" | "bypass";
414
319
  timeExpression: string;
415
- timezone: string;
416
320
  anchorAt: string;
417
- nextRunAt: string | null;
418
- taskScheduleId: string;
321
+ totalRunsCount: number;
322
+ updatedAt: string;
419
323
  notification: {
420
324
  kind: "completion_email";
421
325
  recipients?: string[] | undefined;
@@ -424,39 +328,18 @@ export declare const useTaskSchedule: (taskScheduleId: string | null) => import(
424
328
  templatePath: string;
425
329
  recipients?: string[] | undefined;
426
330
  };
427
- recurrence: {
428
- readonly kind: "none";
429
- } | {
430
- readonly kind: "daily";
431
- } | {
432
- readonly kind: "weekdays";
433
- } | {
434
- readonly kind: "weekly";
435
- } | {
436
- readonly kind: "manual";
437
- } | {
438
- readonly kind: "interval";
439
- readonly intervalMinutes: number;
440
- };
441
- explicitTitle: string | null;
442
- totalRunsCount: number;
443
- lastRun: {
444
- at: string | null;
445
- status: "completed" | "failed" | "running";
446
- } | null;
447
- messagePreview: string;
448
331
  }>, Error>;
449
332
  export declare const useTaskScheduleRuns: (taskScheduleId: string | null) => import('@tanstack/react-query').UseInfiniteQueryResult<{
450
- sessionId: string | null;
451
- taskId: string | null;
452
- runId: string | null;
453
- failureReason: string | null;
333
+ taskScheduleRunId: string;
454
334
  occurrenceKind: "scheduled" | "manual";
335
+ displayStatus: "completed" | "failed" | "running" | "needs_attention";
455
336
  scheduledFor: string;
456
337
  startedAt: string | null;
457
338
  finishedAt: string | null;
458
- taskScheduleRunId: string;
459
- displayStatus: "completed" | "failed" | "running" | "needs_attention";
339
+ failureReason: string | null;
340
+ sessionId: string | null;
341
+ taskId: string | null;
342
+ runId: string | null;
460
343
  }[], Error>;
461
344
  export type CreateTaskScheduleSeriesInput = {
462
345
  readonly scheduledFor: string;
@@ -480,13 +363,13 @@ export type UpdateTaskScheduleSeriesInput = {
480
363
  };
481
364
  };
482
365
  export declare const useCreateTaskSchedule: () => import('@tanstack/react-query').UseMutationResult<{
483
- nextRunAt: string | null;
484
366
  taskScheduleId: string;
367
+ nextRunAt: string | null;
485
368
  }, Error, CreateTaskScheduleSeriesInput, unknown>;
486
369
  export declare const useUpdateTaskSchedule: () => import('@tanstack/react-query').UseMutationResult<{
370
+ taskScheduleId: string;
487
371
  status: "active" | "completed" | "paused" | "deleted";
488
372
  nextRunAt: string | null;
489
- taskScheduleId: string;
490
373
  }, Error, UpdateTaskScheduleSeriesInput, unknown>;
491
374
  export declare const usePauseTaskSchedule: () => import('@tanstack/react-query').UseMutationResult<{
492
375
  status: "paused";