@belonguniverseai/react-sdk 0.3.0 → 0.3.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 (62) hide show
  1. package/dist/api/client.d.ts +143 -12
  2. package/dist/api/task-schedules.d.ts +198 -23
  3. package/dist/component/{arc-CMhGaHbE.js → arc-B7qwdj5Y.js} +2 -2
  4. package/dist/component/{architectureDiagram-3BPJPVTR-BPbeN6Nl.js → architectureDiagram-3BPJPVTR-DHEfxvGE.js} +3 -3
  5. package/dist/component/{blockDiagram-GPEHLZMM-BVn0uHLE.js → blockDiagram-GPEHLZMM-DO4_lzz8.js} +4 -4
  6. package/dist/component/{c4Diagram-AAUBKEIU-D3XBTnJa.js → c4Diagram-AAUBKEIU-BFvKjeX3.js} +3 -3
  7. package/dist/component/{channel-DpI8-a3_.js → channel-Be_mlBXd.js} +2 -2
  8. package/dist/component/{chunk-2J33WTMH-Bqhv40NQ.js → chunk-2J33WTMH-CJ_JyxkR.js} +2 -2
  9. package/dist/component/{chunk-4BX2VUAB-DtucQWno.js → chunk-4BX2VUAB-BRkYFXFB.js} +2 -2
  10. package/dist/component/{chunk-55IACEB6-CWb5s5u5.js → chunk-55IACEB6-D42tDKAF.js} +2 -2
  11. package/dist/component/{chunk-727SXJPM-C83L2sLw.js → chunk-727SXJPM-BYOAmsWs.js} +6 -6
  12. package/dist/component/{chunk-AQP2D5EJ-D00bX5Fy.js → chunk-AQP2D5EJ-CUNDVk4Z.js} +4 -4
  13. package/dist/component/{chunk-FMBD7UC4-CR6LCs0Q.js → chunk-FMBD7UC4-BQy-2qFB.js} +2 -2
  14. package/dist/component/{chunk-ND2GUHAM-DUfRBvcM.js → chunk-ND2GUHAM-ktW5vI-y.js} +2 -2
  15. package/dist/component/{chunk-QZHKN3VN-ZyFUERub.js → chunk-QZHKN3VN-CpSIn4cF.js} +2 -2
  16. package/dist/component/{classDiagram-4FO5ZUOK-nhACsjTQ.js → classDiagram-4FO5ZUOK-Cm-1lpI4.js} +3 -3
  17. package/dist/component/{classDiagram-v2-Q7XG4LA2-nhACsjTQ.js → classDiagram-v2-Q7XG4LA2-Cm-1lpI4.js} +3 -3
  18. package/dist/component/{cose-bilkent-S5V4N54A-CNyhXSKg.js → cose-bilkent-S5V4N54A-DqixgjwQ.js} +2 -2
  19. package/dist/component/{dagre-BM42HDAG-Dr_3n4A9.js → dagre-BM42HDAG-Dv-P7Krm.js} +2 -2
  20. package/dist/component/{diagram-2AECGRRQ-Y2n2wNX9.js → diagram-2AECGRRQ-kQGiD7lD.js} +3 -3
  21. package/dist/component/{diagram-5GNKFQAL-DHwEARtq.js → diagram-5GNKFQAL-DoQlkZPU.js} +4 -4
  22. package/dist/component/{diagram-KO2AKTUF-JBQc-Qhk.js → diagram-KO2AKTUF-CHX5UoXH.js} +3 -3
  23. package/dist/component/{diagram-LMA3HP47-B55TgguV.js → diagram-LMA3HP47-D5zUvZVG.js} +3 -3
  24. package/dist/component/{diagram-OG6HWLK6-BjQ8Y6zl.js → diagram-OG6HWLK6-B4npobs8.js} +4 -4
  25. package/dist/component/{erDiagram-TEJ5UH35-BNl5eT59.js → erDiagram-TEJ5UH35-6z0JmU6m.js} +5 -5
  26. package/dist/component/{flowDiagram-I6XJVG4X-_bWa0zJX.js → flowDiagram-I6XJVG4X-8Z4MRGGY.js} +7 -7
  27. package/dist/component/{ganttDiagram-6RSMTGT7-D12wJRpv.js → ganttDiagram-6RSMTGT7-Dx9QEDPc.js} +3 -3
  28. package/dist/component/{gitGraphDiagram-PVQCEYII-CKGKNDkP.js → gitGraphDiagram-PVQCEYII-BUHDP_7X.js} +4 -4
  29. package/dist/component/{highlighted-body-OFNGDK62-T6VnSue_.js → highlighted-body-OFNGDK62-DBPWZwq8.js} +2 -2
  30. package/dist/component/index.js +2 -2
  31. package/dist/component/{infoDiagram-5YYISTIA-CtbQ2PNx.js → infoDiagram-5YYISTIA-aiJg6_Qm.js} +2 -2
  32. package/dist/component/{ishikawaDiagram-YF4QCWOH-DWHoe0x7.js → ishikawaDiagram-YF4QCWOH-DL-CzUme.js} +2 -2
  33. package/dist/component/{journeyDiagram-JHISSGLW-Y8U0aQ2t.js → journeyDiagram-JHISSGLW-CYDK3R_C.js} +5 -5
  34. package/dist/component/{kanban-definition-UN3LZRKU-Cxa5quvJ.js → kanban-definition-UN3LZRKU-9ZNt06Tr.js} +3 -3
  35. package/dist/component/{linear-Deqp7k-y.js → linear-CtEJWK1N.js} +2 -2
  36. package/dist/component/{mermaid-GHXKKRXX-Bb3nq6cF.js → mermaid-GHXKKRXX-B00yz-X8.js} +23662 -23607
  37. package/dist/component/{mindmap-definition-RKZ34NQL-CJO5YIaF.js → mindmap-definition-RKZ34NQL-CHx9Cg9G.js} +4 -4
  38. package/dist/component/{pieDiagram-4H26LBE5-fLrS62rY.js → pieDiagram-4H26LBE5-B_dLoXY_.js} +4 -4
  39. package/dist/component/{quadrantDiagram-W4KKPZXB-BMjq2Lu4.js → quadrantDiagram-W4KKPZXB-DUL3njPs.js} +3 -3
  40. package/dist/component/{requirementDiagram-4Y6WPE33-BPUkO56k.js → requirementDiagram-4Y6WPE33-DJodprsF.js} +4 -4
  41. package/dist/component/{sankeyDiagram-5OEKKPKP-ekNfY75x.js → sankeyDiagram-5OEKKPKP-2Nn_RQ9h.js} +2 -2
  42. package/dist/component/{sequenceDiagram-3UESZ5HK-CyVmC9Rm.js → sequenceDiagram-3UESZ5HK-xJk0kY4S.js} +4 -4
  43. package/dist/component/{stateDiagram-AJRCARHV-DFkc559m.js → stateDiagram-AJRCARHV-D4QH9oBV.js} +3 -3
  44. package/dist/component/{stateDiagram-v2-BHNVJYJU-DyEtRcsV.js → stateDiagram-v2-BHNVJYJU-C6SRcIR1.js} +3 -3
  45. package/dist/component/{timeline-definition-PNZ67QCA-BDLP-x66.js → timeline-definition-PNZ67QCA-SaEQyBaf.js} +3 -3
  46. package/dist/component/{vennDiagram-CIIHVFJN-Bvhzsn8q.js → vennDiagram-CIIHVFJN-Bf8QpQpr.js} +2 -2
  47. package/dist/component/{wardleyDiagram-YWT4CUSO-SKdyvNF1.js → wardleyDiagram-YWT4CUSO-B0wVwumO.js} +3 -3
  48. package/dist/component/{xychartDiagram-2RQKCTM6-DHchnrpW.js → xychartDiagram-2RQKCTM6-Dl5itjjz.js} +3 -3
  49. package/dist/components/scheduled/ScheduledDetailSurface.d.ts +4 -1
  50. package/dist/components/scheduled/schedule-dialog-model.d.ts +6 -1
  51. package/dist/components/scheduled/schedule-format.d.ts +5 -1
  52. package/dist/embed/copy.d.ts +2 -0
  53. package/dist/embed/slash-commands.d.ts +44 -9
  54. package/dist/i18n/messages/en.d.ts +12 -10
  55. package/dist/i18n/messages/surfaces/aiElements.d.ts +3 -0
  56. package/dist/i18n/messages/surfaces/scheduled.d.ts +30 -0
  57. package/dist/i18n/messages/surfaces/stream.d.ts +3 -30
  58. package/dist/stream/ai-sdk-part-renderers.d.ts +8 -20
  59. package/dist/stream/belong-data-parts.d.ts +1 -1
  60. package/dist/stream/sandbox-output.d.ts +8 -4
  61. package/dist/types/public.d.ts +6 -1
  62. package/package.json +1 -1
@@ -2998,10 +2998,27 @@ export declare const createApiClient: (baseUrl: string) => {
2998
2998
  timezone: string;
2999
2999
  message: string;
3000
3000
  clientScheduleId: string;
3001
+ notification?: {
3002
+ kind: "completion_email";
3003
+ } | {
3004
+ kind: "custom_email";
3005
+ templatePath: string;
3006
+ } | undefined;
3001
3007
  title?: string | undefined;
3002
3008
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3003
3009
  recurrence?: {
3004
- kind: "none" | "daily" | "weekdays" | "weekly";
3010
+ kind: "none";
3011
+ } | {
3012
+ kind: "daily";
3013
+ } | {
3014
+ kind: "weekdays";
3015
+ } | {
3016
+ kind: "weekly";
3017
+ } | {
3018
+ kind: "manual";
3019
+ } | {
3020
+ kind: "interval";
3021
+ intervalMinutes: number;
3005
3022
  } | undefined;
3006
3023
  originatingSessionId?: string | undefined;
3007
3024
  workspaceExternalId?: string | undefined;
@@ -3026,10 +3043,27 @@ export declare const createApiClient: (baseUrl: string) => {
3026
3043
  timezone: string;
3027
3044
  message: string;
3028
3045
  clientScheduleId: string;
3046
+ notification?: {
3047
+ kind: "completion_email";
3048
+ } | {
3049
+ kind: "custom_email";
3050
+ templatePath: string;
3051
+ } | undefined;
3029
3052
  title?: string | undefined;
3030
3053
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3031
3054
  recurrence?: {
3032
- kind: "none" | "daily" | "weekdays" | "weekly";
3055
+ kind: "none";
3056
+ } | {
3057
+ kind: "daily";
3058
+ } | {
3059
+ kind: "weekdays";
3060
+ } | {
3061
+ kind: "weekly";
3062
+ } | {
3063
+ kind: "manual";
3064
+ } | {
3065
+ kind: "interval";
3066
+ intervalMinutes: number;
3033
3067
  } | undefined;
3034
3068
  originatingSessionId?: string | undefined;
3035
3069
  workspaceExternalId?: string | undefined;
@@ -3044,7 +3078,7 @@ export declare const createApiClient: (baseUrl: string) => {
3044
3078
  scheduledFor: string;
3045
3079
  seriesStatus: "active" | "completed" | "paused" | "deleted";
3046
3080
  recurrence: {
3047
- kind: "none" | "daily" | "weekdays" | "weekly";
3081
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
3048
3082
  };
3049
3083
  nextRunAt: string | null;
3050
3084
  title: string;
@@ -3059,10 +3093,27 @@ export declare const createApiClient: (baseUrl: string) => {
3059
3093
  timezone: string;
3060
3094
  message: string;
3061
3095
  clientScheduleId: string;
3096
+ notification?: {
3097
+ kind: "completion_email";
3098
+ } | {
3099
+ kind: "custom_email";
3100
+ templatePath: string;
3101
+ } | undefined;
3062
3102
  title?: string | undefined;
3063
3103
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3064
3104
  recurrence?: {
3065
- kind: "none" | "daily" | "weekdays" | "weekly";
3105
+ kind: "none";
3106
+ } | {
3107
+ kind: "daily";
3108
+ } | {
3109
+ kind: "weekdays";
3110
+ } | {
3111
+ kind: "weekly";
3112
+ } | {
3113
+ kind: "manual";
3114
+ } | {
3115
+ kind: "interval";
3116
+ intervalMinutes: number;
3066
3117
  } | undefined;
3067
3118
  originatingSessionId?: string | undefined;
3068
3119
  workspaceExternalId?: string | undefined;
@@ -3086,10 +3137,27 @@ export declare const createApiClient: (baseUrl: string) => {
3086
3137
  timezone: string;
3087
3138
  message: string;
3088
3139
  clientScheduleId: string;
3140
+ notification?: {
3141
+ kind: "completion_email";
3142
+ } | {
3143
+ kind: "custom_email";
3144
+ templatePath: string;
3145
+ } | undefined;
3089
3146
  title?: string | undefined;
3090
3147
  mode?: "plan" | "approve" | "balanced" | "bypass" | undefined;
3091
3148
  recurrence?: {
3092
- kind: "none" | "daily" | "weekdays" | "weekly";
3149
+ kind: "none";
3150
+ } | {
3151
+ kind: "daily";
3152
+ } | {
3153
+ kind: "weekdays";
3154
+ } | {
3155
+ kind: "weekly";
3156
+ } | {
3157
+ kind: "manual";
3158
+ } | {
3159
+ kind: "interval";
3160
+ intervalMinutes: number;
3093
3161
  } | undefined;
3094
3162
  originatingSessionId?: string | undefined;
3095
3163
  workspaceExternalId?: string | undefined;
@@ -3123,7 +3191,8 @@ export declare const createApiClient: (baseUrl: string) => {
3123
3191
  title: string;
3124
3192
  status: "active" | "completed" | "paused" | "deleted";
3125
3193
  recurrence: {
3126
- kind: "none" | "daily" | "weekdays" | "weekly";
3194
+ intervalMinutes?: number | undefined;
3195
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
3127
3196
  };
3128
3197
  timezone: string;
3129
3198
  nextRunAt: string | null;
@@ -3158,6 +3227,12 @@ export declare const createApiClient: (baseUrl: string) => {
3158
3227
  output: {
3159
3228
  explicitTitle: string | null;
3160
3229
  message: string;
3230
+ notification: {
3231
+ kind: "completion_email";
3232
+ } | {
3233
+ kind: "custom_email";
3234
+ templatePath: string;
3235
+ };
3161
3236
  mode: "plan" | "approve" | "balanced" | "bypass";
3162
3237
  timeExpression: string;
3163
3238
  anchorAt: string;
@@ -3167,7 +3242,8 @@ export declare const createApiClient: (baseUrl: string) => {
3167
3242
  title: string;
3168
3243
  status: "active" | "completed" | "paused" | "deleted";
3169
3244
  recurrence: {
3170
- kind: "none" | "daily" | "weekdays" | "weekly";
3245
+ intervalMinutes?: number | undefined;
3246
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
3171
3247
  };
3172
3248
  timezone: string;
3173
3249
  nextRunAt: string | null;
@@ -3216,7 +3292,18 @@ export declare const createApiClient: (baseUrl: string) => {
3216
3292
  timeExpression?: string | undefined;
3217
3293
  timezone?: string | undefined;
3218
3294
  recurrence?: {
3219
- kind: "none" | "daily" | "weekdays" | "weekly";
3295
+ kind: "none";
3296
+ } | {
3297
+ kind: "daily";
3298
+ } | {
3299
+ kind: "weekdays";
3300
+ } | {
3301
+ kind: "weekly";
3302
+ } | {
3303
+ kind: "manual";
3304
+ } | {
3305
+ kind: "interval";
3306
+ intervalMinutes: number;
3220
3307
  } | undefined;
3221
3308
  };
3222
3309
  };
@@ -3246,7 +3333,18 @@ export declare const createApiClient: (baseUrl: string) => {
3246
3333
  timeExpression?: string | undefined;
3247
3334
  timezone?: string | undefined;
3248
3335
  recurrence?: {
3249
- kind: "none" | "daily" | "weekdays" | "weekly";
3336
+ kind: "none";
3337
+ } | {
3338
+ kind: "daily";
3339
+ } | {
3340
+ kind: "weekdays";
3341
+ } | {
3342
+ kind: "weekly";
3343
+ } | {
3344
+ kind: "manual";
3345
+ } | {
3346
+ kind: "interval";
3347
+ intervalMinutes: number;
3250
3348
  } | undefined;
3251
3349
  };
3252
3350
  };
@@ -3275,7 +3373,18 @@ export declare const createApiClient: (baseUrl: string) => {
3275
3373
  timeExpression?: string | undefined;
3276
3374
  timezone?: string | undefined;
3277
3375
  recurrence?: {
3278
- kind: "none" | "daily" | "weekdays" | "weekly";
3376
+ kind: "none";
3377
+ } | {
3378
+ kind: "daily";
3379
+ } | {
3380
+ kind: "weekdays";
3381
+ } | {
3382
+ kind: "weekly";
3383
+ } | {
3384
+ kind: "manual";
3385
+ } | {
3386
+ kind: "interval";
3387
+ intervalMinutes: number;
3279
3388
  } | undefined;
3280
3389
  };
3281
3390
  };
@@ -3304,7 +3413,18 @@ export declare const createApiClient: (baseUrl: string) => {
3304
3413
  timeExpression?: string | undefined;
3305
3414
  timezone?: string | undefined;
3306
3415
  recurrence?: {
3307
- kind: "none" | "daily" | "weekdays" | "weekly";
3416
+ kind: "none";
3417
+ } | {
3418
+ kind: "daily";
3419
+ } | {
3420
+ kind: "weekdays";
3421
+ } | {
3422
+ kind: "weekly";
3423
+ } | {
3424
+ kind: "manual";
3425
+ } | {
3426
+ kind: "interval";
3427
+ intervalMinutes: number;
3308
3428
  } | undefined;
3309
3429
  };
3310
3430
  };
@@ -3333,7 +3453,18 @@ export declare const createApiClient: (baseUrl: string) => {
3333
3453
  timeExpression?: string | undefined;
3334
3454
  timezone?: string | undefined;
3335
3455
  recurrence?: {
3336
- kind: "none" | "daily" | "weekdays" | "weekly";
3456
+ kind: "none";
3457
+ } | {
3458
+ kind: "daily";
3459
+ } | {
3460
+ kind: "weekdays";
3461
+ } | {
3462
+ kind: "weekly";
3463
+ } | {
3464
+ kind: "manual";
3465
+ } | {
3466
+ kind: "interval";
3467
+ intervalMinutes: number;
3337
3468
  } | undefined;
3338
3469
  };
3339
3470
  };
@@ -24,8 +24,12 @@ export type CreateTaskScheduleRequest = {
24
24
  readonly timeExpression: string;
25
25
  readonly timezone: string;
26
26
  readonly message: string;
27
- readonly recurrence?: {
28
- readonly kind: RecurrenceKind;
27
+ readonly recurrence?: Recurrence;
28
+ readonly notification?: {
29
+ readonly kind: "completion_email";
30
+ } | {
31
+ readonly kind: "custom_email";
32
+ readonly templatePath: string;
29
33
  };
30
34
  readonly mode: ChatMode;
31
35
  readonly clientScheduleId: string;
@@ -38,8 +42,65 @@ export type CreateTaskScheduleRequest = {
38
42
  };
39
43
  export declare const createTaskSchedule: (apiBaseUrl: string, input: CreateTaskScheduleRequest) => Promise<CreateTaskScheduleOutcome>;
40
44
  export declare const deleteTaskSchedule: (apiBaseUrl: string, taskScheduleId: string) => Promise<DeleteTaskScheduleOutcome>;
41
- export declare const recurrenceKindSchema: z.ZodEnum<["none", "daily", "weekdays", "weekly"]>;
45
+ export declare const recurrenceKindSchema: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
42
46
  export type RecurrenceKind = z.infer<typeof recurrenceKindSchema>;
47
+ /** Bounds for the `interval` cadence (BEL-157): 1 minute up to a full day. */
48
+ export declare const MIN_RECURRENCE_INTERVAL_MINUTES = 1;
49
+ export declare const MAX_RECURRENCE_INTERVAL_MINUTES = 1440;
50
+ /**
51
+ * Recurrence as a discriminated union: only `interval` carries a width. Used
52
+ * for both parsed RESPONSES and dialog-built REQUEST bodies, so a value with a
53
+ * missing/extra `intervalMinutes` can't exist past the perimeter (a malformed
54
+ * `{ kind: "interval" }` would otherwise render "Every 0 min" and edit-default
55
+ * the width to 10). Hand-written rather than `z.infer` of a zod union so the
56
+ * SDK never restates the backend's authoritative schema verbatim.
57
+ */
58
+ export type Recurrence = {
59
+ readonly kind: "none";
60
+ } | {
61
+ readonly kind: "daily";
62
+ } | {
63
+ readonly kind: "weekdays";
64
+ } | {
65
+ readonly kind: "weekly";
66
+ } | {
67
+ readonly kind: "manual";
68
+ } | {
69
+ readonly kind: "interval";
70
+ readonly intervalMinutes: number;
71
+ };
72
+ /**
73
+ * PERIMETER parser (§4) for the recurrence on server RESPONSES. Parses a flat
74
+ * wire object, then narrows it to the discriminated `Recurrence` — rejecting
75
+ * `interval` without a width (and dropping a stray width on any other kind) so
76
+ * malformed wire state fails here, not three renders downstream.
77
+ */
78
+ export declare const recurrenceSchema: z.ZodEffects<z.ZodObject<{
79
+ kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
80
+ intervalMinutes: z.ZodOptional<z.ZodNumber>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
83
+ intervalMinutes?: number | undefined;
84
+ }, {
85
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
86
+ intervalMinutes?: number | undefined;
87
+ }>, {
88
+ readonly kind: "none";
89
+ } | {
90
+ readonly kind: "daily";
91
+ } | {
92
+ readonly kind: "weekdays";
93
+ } | {
94
+ readonly kind: "weekly";
95
+ } | {
96
+ readonly kind: "manual";
97
+ } | {
98
+ readonly kind: "interval";
99
+ readonly intervalMinutes: number;
100
+ }, {
101
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
102
+ intervalMinutes?: number | undefined;
103
+ }>;
43
104
  export declare const taskScheduleSeriesStatusSchema: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
44
105
  export type TaskScheduleSeriesStatus = z.infer<typeof taskScheduleSeriesStatusSchema>;
45
106
  export type TaskScheduleFilter = "all" | "upcoming" | "completed";
@@ -47,12 +108,31 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
47
108
  taskScheduleId: z.ZodString;
48
109
  title: z.ZodString;
49
110
  status: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
50
- recurrence: z.ZodObject<{
51
- kind: z.ZodEnum<["none", "daily", "weekdays", "weekly"]>;
111
+ recurrence: z.ZodEffects<z.ZodObject<{
112
+ kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
113
+ intervalMinutes: z.ZodOptional<z.ZodNumber>;
52
114
  }, "strip", z.ZodTypeAny, {
53
- kind: "none" | "daily" | "weekdays" | "weekly";
115
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
116
+ intervalMinutes?: number | undefined;
54
117
  }, {
55
- kind: "none" | "daily" | "weekdays" | "weekly";
118
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
119
+ intervalMinutes?: number | undefined;
120
+ }>, {
121
+ readonly kind: "none";
122
+ } | {
123
+ readonly kind: "daily";
124
+ } | {
125
+ readonly kind: "weekdays";
126
+ } | {
127
+ readonly kind: "weekly";
128
+ } | {
129
+ readonly kind: "manual";
130
+ } | {
131
+ readonly kind: "interval";
132
+ readonly intervalMinutes: number;
133
+ }, {
134
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
135
+ intervalMinutes?: number | undefined;
56
136
  }>;
57
137
  timezone: z.ZodString;
58
138
  nextRunAt: z.ZodNullable<z.ZodString>;
@@ -76,7 +156,18 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
76
156
  nextRunAt: string | null;
77
157
  taskScheduleId: string;
78
158
  recurrence: {
79
- kind: "none" | "daily" | "weekdays" | "weekly";
159
+ readonly kind: "none";
160
+ } | {
161
+ readonly kind: "daily";
162
+ } | {
163
+ readonly kind: "weekdays";
164
+ } | {
165
+ readonly kind: "weekly";
166
+ } | {
167
+ readonly kind: "manual";
168
+ } | {
169
+ readonly kind: "interval";
170
+ readonly intervalMinutes: number;
80
171
  };
81
172
  lastRun: {
82
173
  at: string | null;
@@ -91,7 +182,8 @@ declare const taskScheduleListItemSchema: z.ZodObject<{
91
182
  nextRunAt: string | null;
92
183
  taskScheduleId: string;
93
184
  recurrence: {
94
- kind: "none" | "daily" | "weekdays" | "weekly";
185
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
186
+ intervalMinutes?: number | undefined;
95
187
  };
96
188
  lastRun: {
97
189
  at: string | null;
@@ -104,12 +196,31 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
104
196
  taskScheduleId: z.ZodString;
105
197
  title: z.ZodString;
106
198
  status: z.ZodEnum<["active", "paused", "completed", "deleted"]>;
107
- recurrence: z.ZodObject<{
108
- kind: z.ZodEnum<["none", "daily", "weekdays", "weekly"]>;
199
+ recurrence: z.ZodEffects<z.ZodObject<{
200
+ kind: z.ZodEnum<["none", "daily", "weekdays", "weekly", "interval", "manual"]>;
201
+ intervalMinutes: z.ZodOptional<z.ZodNumber>;
109
202
  }, "strip", z.ZodTypeAny, {
110
- kind: "none" | "daily" | "weekdays" | "weekly";
203
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
204
+ intervalMinutes?: number | undefined;
205
+ }, {
206
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
207
+ intervalMinutes?: number | undefined;
208
+ }>, {
209
+ readonly kind: "none";
210
+ } | {
211
+ readonly kind: "daily";
212
+ } | {
213
+ readonly kind: "weekdays";
214
+ } | {
215
+ readonly kind: "weekly";
216
+ } | {
217
+ readonly kind: "manual";
218
+ } | {
219
+ readonly kind: "interval";
220
+ readonly intervalMinutes: number;
111
221
  }, {
112
- kind: "none" | "daily" | "weekdays" | "weekly";
222
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
223
+ intervalMinutes?: number | undefined;
113
224
  }>;
114
225
  timezone: z.ZodString;
115
226
  nextRunAt: z.ZodNullable<z.ZodString>;
@@ -133,6 +244,22 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
133
244
  anchorAt: z.ZodString;
134
245
  totalRunsCount: z.ZodNumber;
135
246
  updatedAt: z.ZodString;
247
+ notification: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
248
+ kind: z.ZodLiteral<"completion_email">;
249
+ }, "strip", z.ZodTypeAny, {
250
+ kind: "completion_email";
251
+ }, {
252
+ kind: "completion_email";
253
+ }>, z.ZodObject<{
254
+ kind: z.ZodLiteral<"custom_email">;
255
+ templatePath: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ kind: "custom_email";
258
+ templatePath: string;
259
+ }, {
260
+ kind: "custom_email";
261
+ templatePath: string;
262
+ }>]>>;
136
263
  }, "strip", z.ZodTypeAny, {
137
264
  status: "active" | "completed" | "paused" | "deleted";
138
265
  title: string;
@@ -145,8 +272,25 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
145
272
  anchorAt: string;
146
273
  nextRunAt: string | null;
147
274
  taskScheduleId: string;
275
+ notification: {
276
+ kind: "completion_email";
277
+ } | {
278
+ kind: "custom_email";
279
+ templatePath: string;
280
+ };
148
281
  recurrence: {
149
- kind: "none" | "daily" | "weekdays" | "weekly";
282
+ readonly kind: "none";
283
+ } | {
284
+ readonly kind: "daily";
285
+ } | {
286
+ readonly kind: "weekdays";
287
+ } | {
288
+ readonly kind: "weekly";
289
+ } | {
290
+ readonly kind: "manual";
291
+ } | {
292
+ readonly kind: "interval";
293
+ readonly intervalMinutes: number;
150
294
  };
151
295
  explicitTitle: string | null;
152
296
  totalRunsCount: number;
@@ -168,7 +312,8 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
168
312
  nextRunAt: string | null;
169
313
  taskScheduleId: string;
170
314
  recurrence: {
171
- kind: "none" | "daily" | "weekdays" | "weekly";
315
+ kind: "none" | "manual" | "daily" | "weekdays" | "weekly" | "interval";
316
+ intervalMinutes?: number | undefined;
172
317
  };
173
318
  totalRunsCount: number;
174
319
  lastRun: {
@@ -176,6 +321,12 @@ declare const taskScheduleDetailSchema: z.ZodObject<{
176
321
  status: "completed" | "failed" | "running";
177
322
  } | null;
178
323
  messagePreview: string;
324
+ notification?: {
325
+ kind: "completion_email";
326
+ } | {
327
+ kind: "custom_email";
328
+ templatePath: string;
329
+ } | undefined;
179
330
  explicitTitle?: string | null | undefined;
180
331
  }>;
181
332
  export type TaskScheduleDetail = z.infer<typeof taskScheduleDetailSchema>;
@@ -222,7 +373,18 @@ export declare const useTaskSchedules: (filter: TaskScheduleFilter, q: string) =
222
373
  nextRunAt: string | null;
223
374
  taskScheduleId: string;
224
375
  recurrence: {
225
- kind: "none" | "daily" | "weekdays" | "weekly";
376
+ readonly kind: "none";
377
+ } | {
378
+ readonly kind: "daily";
379
+ } | {
380
+ readonly kind: "weekdays";
381
+ } | {
382
+ readonly kind: "weekly";
383
+ } | {
384
+ readonly kind: "manual";
385
+ } | {
386
+ readonly kind: "interval";
387
+ readonly intervalMinutes: number;
226
388
  };
227
389
  lastRun: {
228
390
  at: string | null;
@@ -242,8 +404,25 @@ export declare const useTaskSchedule: (taskScheduleId: string | null) => import(
242
404
  anchorAt: string;
243
405
  nextRunAt: string | null;
244
406
  taskScheduleId: string;
407
+ notification: {
408
+ kind: "completion_email";
409
+ } | {
410
+ kind: "custom_email";
411
+ templatePath: string;
412
+ };
245
413
  recurrence: {
246
- kind: "none" | "daily" | "weekdays" | "weekly";
414
+ readonly kind: "none";
415
+ } | {
416
+ readonly kind: "daily";
417
+ } | {
418
+ readonly kind: "weekdays";
419
+ } | {
420
+ readonly kind: "weekly";
421
+ } | {
422
+ readonly kind: "manual";
423
+ } | {
424
+ readonly kind: "interval";
425
+ readonly intervalMinutes: number;
247
426
  };
248
427
  explicitTitle: string | null;
249
428
  totalRunsCount: number;
@@ -271,9 +450,7 @@ export type CreateTaskScheduleSeriesInput = {
271
450
  readonly timezone: string;
272
451
  readonly message: string;
273
452
  readonly title?: string;
274
- readonly recurrence: {
275
- readonly kind: RecurrenceKind;
276
- };
453
+ readonly recurrence: Recurrence;
277
454
  readonly clientScheduleId: string;
278
455
  readonly workspaceExternalId?: string;
279
456
  };
@@ -285,9 +462,7 @@ export type UpdateTaskScheduleSeriesInput = {
285
462
  readonly scheduledFor?: string;
286
463
  readonly timeExpression?: string;
287
464
  readonly timezone?: string;
288
- readonly recurrence?: {
289
- readonly kind: RecurrenceKind;
290
- };
465
+ readonly recurrence?: Recurrence;
291
466
  };
292
467
  };
293
468
  export declare const useCreateTaskSchedule: () => import('@tanstack/react-query').UseMutationResult<{
@@ -1,4 +1,4 @@
1
- import { O as ln, P as an, Q as g, S as on, T as Z, V as w, W as _, X as sn, Y as rn, Z as z, $ as t, a0 as V, a1 as un, a2 as tn, a3 as fn } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
1
+ import { O as ln, P as an, Q as g, S as on, T as Z, V as w, W as _, X as sn, Y as rn, Z as z, $ as t, a0 as V, a1 as un, a2 as tn, a3 as fn } from "./mermaid-GHXKKRXX-B00yz-X8.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-CMhGaHbE.js.map
86
+ //# sourceMappingURL=arc-B7qwdj5Y.js.map
@@ -1,5 +1,5 @@
1
- import { b7 as $e, _ as dt, N as ke, ai as Ze, l as Re, b as qe, a as Qe, q as Je, t as Ke, g as je, s as _e, B as tr, I as er, G as rr, K as ir, c as ye, aR as Ee, b8 as ve, i as ar, d as nr, y as or, b9 as sr, ba as hr } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
2
- import { p as lr } from "./chunk-4BX2VUAB-DtucQWno.js";
1
+ import { b7 as $e, _ as dt, N as ke, ai as Ze, l as Re, b as qe, a as Qe, q as Je, t as Ke, g as je, s as _e, B as tr, I as er, G as rr, K as ir, c as ye, aR as Ee, b8 as ve, i as ar, d as nr, y as or, b9 as sr, ba as hr } from "./mermaid-GHXKKRXX-B00yz-X8.js";
2
+ import { p as lr } from "./chunk-4BX2VUAB-BRkYFXFB.js";
3
3
  import { p as fr } from "./wardley-L42UT6IY-HA1eSIS_.js";
4
4
  import { c as Se } from "./cytoscape.esm-C31R6JOv.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
@@ -4694,4 +4694,4 @@ var Pr = /* @__PURE__ */ dt(async (C, G, w, U) => {
4694
4694
  export {
4695
4695
  Wr as diagram
4696
4696
  };
4697
- //# sourceMappingURL=architectureDiagram-3BPJPVTR-BPbeN6Nl.js.map
4697
+ //# sourceMappingURL=architectureDiagram-3BPJPVTR-DHEfxvGE.js.map
@@ -1,7 +1,7 @@
1
- import { g as pe } from "./chunk-FMBD7UC4-CR6LCs0Q.js";
2
- import { aq as fe, ar as Ut, as as xe, at as ye, au as be, av as we, aw as me, ax as Se, ay as Le, az as ke, aA as ve, aB as Ee, aC as _e, aD as Te, aE as De, aF as Be, aG as Ne, aH as Ie, aI as Ce, aJ as Oe, aK as Re, aL as Ae, aM as ze, aN as Me, aO as Pe, _ as d, G as at, d as D, e as Fe, l as k, B as We, D as Ye, aP as He, ac as Ke, ad as Ue, c as A, a9 as Xe, aQ as P, aR as vt, aS as $, aT as Ve, u as tt, k as je, aU as Ge, i as Ot, aV as Rt, aW as Ze } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
1
+ import { g as pe } from "./chunk-FMBD7UC4-BQy-2qFB.js";
2
+ import { aq as fe, ar as Ut, as as xe, at as ye, au as be, av as we, aw as me, ax as Se, ay as Le, az as ke, aA as ve, aB as Ee, aC as _e, aD as Te, aE as De, aF as Be, aG as Ne, aH as Ie, aI as Ce, aJ as Oe, aK as Re, aL as Ae, aM as ze, aN as Me, aO as Pe, _ as d, G as at, d as D, e as Fe, l as k, B as We, D as Ye, aP as He, ac as Ke, ad as Ue, c as A, a9 as Xe, aQ as P, aR as vt, aS as $, aT as Ve, u as tt, k as je, aU as Ge, i as Ot, aV as Rt, aW as Ze } from "./mermaid-GHXKKRXX-B00yz-X8.js";
3
3
  import { G as qe } from "./graph-BZLHvygk.js";
4
- import { c as Je } from "./channel-DpI8-a3_.js";
4
+ import { c as Je } from "./channel-Be_mlBXd.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
7
7
  function Qe(e) {
@@ -2418,4 +2418,4 @@ var Ta = /* @__PURE__ */ d(function(e, t) {
2418
2418
  export {
2419
2419
  Ra as diagram
2420
2420
  };
2421
- //# sourceMappingURL=blockDiagram-GPEHLZMM-BVn0uHLE.js.map
2421
+ //# sourceMappingURL=blockDiagram-GPEHLZMM-DO4_lzz8.js.map
@@ -1,5 +1,5 @@
1
- import { g as Oe, d as Re } from "./chunk-ND2GUHAM-DUfRBvcM.js";
2
- import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
1
+ import { g as Oe, d as Re } from "./chunk-ND2GUHAM-ktW5vI-y.js";
2
+ import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./mermaid-GHXKKRXX-B00yz-X8.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var jt = (function() {
@@ -1583,4 +1583,4 @@ var T0 = /* @__PURE__ */ y(function(e, t, s, o) {
1583
1583
  export {
1584
1584
  P0 as diagram
1585
1585
  };
1586
- //# sourceMappingURL=c4Diagram-AAUBKEIU-D3XBTnJa.js.map
1586
+ //# sourceMappingURL=c4Diagram-AAUBKEIU-BFvKjeX3.js.map
@@ -1,8 +1,8 @@
1
- import { U as s, E as a } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
1
+ import { U as s, E as a } from "./mermaid-GHXKKRXX-B00yz-X8.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  const g = (l, o) => s.lang.round(a.parse(l)[o]);
5
5
  export {
6
6
  g as c
7
7
  };
8
- //# sourceMappingURL=channel-DpI8-a3_.js.map
8
+ //# sourceMappingURL=channel-Be_mlBXd.js.map
@@ -1,4 +1,4 @@
1
- import { _ as s, e as n, l as g } from "./mermaid-GHXKKRXX-Bb3nq6cF.js";
1
+ import { _ as s, e as n, l as g } from "./mermaid-GHXKKRXX-B00yz-X8.js";
2
2
  globalThis.process = globalThis.process || { env: {} };
3
3
  globalThis.global = globalThis.global || globalThis;
4
4
  var b = /* @__PURE__ */ s((e, o, t, a) => {
@@ -19,4 +19,4 @@ var b = /* @__PURE__ */ s((e, o, t, a) => {
19
19
  export {
20
20
  b as s
21
21
  };
22
- //# sourceMappingURL=chunk-2J33WTMH-Bqhv40NQ.js.map
22
+ //# sourceMappingURL=chunk-2J33WTMH-CJ_JyxkR.js.map