evo360-types 1.3.144 → 1.3.145

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.
@@ -1,18 +1,279 @@
1
1
  import { z } from "zod";
2
2
  export declare const zTaskActionSchema: z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>;
3
- export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
3
+ export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "failed", "cancelled", "on_hold", "suppressed"]>;
4
4
  export declare const zTaskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
5
+ export declare const zTaskSourceSchema: z.ZodEnum<["user", "automation_hub", "system"]>;
6
+ export declare const zTaskModeSchema: z.ZodEnum<["human", "auto"]>;
7
+ export declare const zTaskAutoHandlerSchema: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
8
+ export declare const zTaskRetryStrategySchema: z.ZodEnum<["fixed", "exponential"]>;
9
+ export declare const zTaskDedupScopeSchema: z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>;
10
+ export declare const zTaskDedupWindowSchema: z.ZodEnum<["same_day", "n_hours", "custom"]>;
5
11
  export declare const zTaskExternalObjectTypeSchema: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
6
- export declare const zIATaskTypeSchema: z.ZodEnum<["data_analysis", "content_generation", "classification", "extraction", "summarization", "translation", "sentiment_analysis", "question_answering", "send_reminder", "request_contact_info", "request_operator_info", "confirm_appointment", "send_documents", "create_appointment", "reschedule_appointment", "cancel_appointment", "financial_charge", "custom"]>;
12
+ export declare const zTaskExecutionStatusSchema: z.ZodEnum<["success", "error", "retry"]>;
7
13
  export declare const zTaskExternalLinkSchema: z.ZodObject<{
8
14
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
9
15
  id: z.ZodString;
16
+ label: z.ZodOptional<z.ZodString>;
10
17
  }, "strip", z.ZodTypeAny, {
11
18
  id: string;
12
19
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
20
+ label?: string | undefined;
13
21
  }, {
14
22
  id: string;
15
23
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
24
+ label?: string | undefined;
25
+ }>;
26
+ export declare const zTaskScheduleSchema: z.ZodObject<{
27
+ execute_at: z.ZodOptional<z.ZodDate>;
28
+ due_at: z.ZodOptional<z.ZodDate>;
29
+ timezone: z.ZodOptional<z.ZodString>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ timezone?: string | undefined;
32
+ execute_at?: Date | undefined;
33
+ due_at?: Date | undefined;
34
+ }, {
35
+ timezone?: string | undefined;
36
+ execute_at?: Date | undefined;
37
+ due_at?: Date | undefined;
38
+ }>;
39
+ export declare const zTaskUserAssigneeSchema: z.ZodObject<{
40
+ kind: z.ZodLiteral<"user">;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ ref: z.ZodOptional<z.ZodAny>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ kind: "user";
45
+ name?: string | undefined;
46
+ ref?: any;
47
+ }, {
48
+ kind: "user";
49
+ name?: string | undefined;
50
+ ref?: any;
51
+ }>;
52
+ export declare const zTaskLockSchema: z.ZodObject<{
53
+ locked_by: z.ZodString;
54
+ lock_until: z.ZodDate;
55
+ }, "strip", z.ZodTypeAny, {
56
+ locked_by: string;
57
+ lock_until: Date;
58
+ }, {
59
+ locked_by: string;
60
+ lock_until: Date;
61
+ }>;
62
+ export declare const zTaskRetryPolicySchema: z.ZodObject<{
63
+ max_attempts: z.ZodNumber;
64
+ attempt: z.ZodNumber;
65
+ strategy: z.ZodEnum<["fixed", "exponential"]>;
66
+ backoff_seconds: z.ZodNumber;
67
+ next_attempt_at: z.ZodOptional<z.ZodDate>;
68
+ last_error: z.ZodOptional<z.ZodObject<{
69
+ message: z.ZodString;
70
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
71
+ at: z.ZodDate;
72
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ message: string;
75
+ at: Date;
76
+ code?: string | number | undefined;
77
+ details?: Record<string, unknown> | undefined;
78
+ }, {
79
+ message: string;
80
+ at: Date;
81
+ code?: string | number | undefined;
82
+ details?: Record<string, unknown> | undefined;
83
+ }>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ max_attempts: number;
86
+ attempt: number;
87
+ strategy: "fixed" | "exponential";
88
+ backoff_seconds: number;
89
+ next_attempt_at?: Date | undefined;
90
+ last_error?: {
91
+ message: string;
92
+ at: Date;
93
+ code?: string | number | undefined;
94
+ details?: Record<string, unknown> | undefined;
95
+ } | undefined;
96
+ }, {
97
+ max_attempts: number;
98
+ attempt: number;
99
+ strategy: "fixed" | "exponential";
100
+ backoff_seconds: number;
101
+ next_attempt_at?: Date | undefined;
102
+ last_error?: {
103
+ message: string;
104
+ at: Date;
105
+ code?: string | number | undefined;
106
+ details?: Record<string, unknown> | undefined;
107
+ } | undefined;
108
+ }>;
109
+ export declare const zTaskDedupSchema: z.ZodObject<{
110
+ enabled: z.ZodBoolean;
111
+ key: z.ZodString;
112
+ group_key: z.ZodOptional<z.ZodString>;
113
+ scope: z.ZodOptional<z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>>;
114
+ window: z.ZodOptional<z.ZodEnum<["same_day", "n_hours", "custom"]>>;
115
+ window_hours: z.ZodOptional<z.ZodNumber>;
116
+ importance: z.ZodOptional<z.ZodNumber>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ enabled: boolean;
119
+ key: string;
120
+ group_key?: string | undefined;
121
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
122
+ window?: "custom" | "same_day" | "n_hours" | undefined;
123
+ window_hours?: number | undefined;
124
+ importance?: number | undefined;
125
+ }, {
126
+ enabled: boolean;
127
+ key: string;
128
+ group_key?: string | undefined;
129
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
130
+ window?: "custom" | "same_day" | "n_hours" | undefined;
131
+ window_hours?: number | undefined;
132
+ importance?: number | undefined;
133
+ }>;
134
+ export declare const zTaskAutoSpecSchema: z.ZodObject<{
135
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
136
+ kind: z.ZodString;
137
+ version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
138
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
139
+ idempotency_key: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ kind: string;
142
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
143
+ payload: Record<string, unknown>;
144
+ version?: string | number | undefined;
145
+ idempotency_key?: string | undefined;
146
+ }, {
147
+ kind: string;
148
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
149
+ payload: Record<string, unknown>;
150
+ version?: string | number | undefined;
151
+ idempotency_key?: string | undefined;
152
+ }>;
153
+ export declare const zTaskOnFailureSchema: z.ZodObject<{
154
+ handoff_to_user: z.ZodOptional<z.ZodObject<{
155
+ name: z.ZodOptional<z.ZodString>;
156
+ ref: z.ZodOptional<z.ZodAny>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ name?: string | undefined;
159
+ ref?: any;
160
+ }, {
161
+ name?: string | undefined;
162
+ ref?: any;
163
+ }>>;
164
+ create_handoff_task: z.ZodOptional<z.ZodObject<{
165
+ title: z.ZodOptional<z.ZodString>;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
168
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
169
+ name: z.ZodString;
170
+ color: z.ZodOptional<z.ZodString>;
171
+ hidden: z.ZodBoolean;
172
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ name: string;
176
+ hidden: boolean;
177
+ base?: boolean | undefined;
178
+ color?: string | undefined;
179
+ category?: string | null | undefined;
180
+ }, {
181
+ name: string;
182
+ hidden: boolean;
183
+ base?: boolean | undefined;
184
+ color?: string | undefined;
185
+ category?: string | null | undefined;
186
+ }>, "many">>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ tags?: {
189
+ name: string;
190
+ hidden: boolean;
191
+ base?: boolean | undefined;
192
+ color?: string | undefined;
193
+ category?: string | null | undefined;
194
+ }[] | null | undefined;
195
+ title?: string | undefined;
196
+ description?: string | undefined;
197
+ priority?: "low" | "medium" | "high" | undefined;
198
+ }, {
199
+ tags?: {
200
+ name: string;
201
+ hidden: boolean;
202
+ base?: boolean | undefined;
203
+ color?: string | undefined;
204
+ category?: string | null | undefined;
205
+ }[] | null | undefined;
206
+ title?: string | undefined;
207
+ description?: string | undefined;
208
+ priority?: "low" | "medium" | "high" | undefined;
209
+ }>>;
210
+ auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
212
+ kind: z.ZodString;
213
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ kind: string;
216
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
217
+ payload: Record<string, unknown>;
218
+ }, {
219
+ kind: string;
220
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
221
+ payload: Record<string, unknown>;
222
+ }>, "many">>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ handoff_to_user?: {
225
+ name?: string | undefined;
226
+ ref?: any;
227
+ } | undefined;
228
+ create_handoff_task?: {
229
+ tags?: {
230
+ name: string;
231
+ hidden: boolean;
232
+ base?: boolean | undefined;
233
+ color?: string | undefined;
234
+ category?: string | null | undefined;
235
+ }[] | null | undefined;
236
+ title?: string | undefined;
237
+ description?: string | undefined;
238
+ priority?: "low" | "medium" | "high" | undefined;
239
+ } | undefined;
240
+ auto_fallbacks?: {
241
+ kind: string;
242
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
243
+ payload: Record<string, unknown>;
244
+ }[] | undefined;
245
+ }, {
246
+ handoff_to_user?: {
247
+ name?: string | undefined;
248
+ ref?: any;
249
+ } | undefined;
250
+ create_handoff_task?: {
251
+ tags?: {
252
+ name: string;
253
+ hidden: boolean;
254
+ base?: boolean | undefined;
255
+ color?: string | undefined;
256
+ category?: string | null | undefined;
257
+ }[] | null | undefined;
258
+ title?: string | undefined;
259
+ description?: string | undefined;
260
+ priority?: "low" | "medium" | "high" | undefined;
261
+ } | undefined;
262
+ auto_fallbacks?: {
263
+ kind: string;
264
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
265
+ payload: Record<string, unknown>;
266
+ }[] | undefined;
267
+ }>;
268
+ export declare const zTaskCreatorSchema: z.ZodObject<{
269
+ name: z.ZodString;
270
+ ref: z.ZodOptional<z.ZodAny>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name: string;
273
+ ref?: any;
274
+ }, {
275
+ name: string;
276
+ ref?: any;
16
277
  }>;
17
278
  export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
18
279
  id: z.ZodString;
@@ -25,14 +286,33 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
25
286
  }, {
26
287
  title: z.ZodString;
27
288
  description: z.ZodOptional<z.ZodString>;
28
- creatorName: z.ZodString;
29
- creatorRef: z.ZodOptional<z.ZodAny>;
30
- startDate: z.ZodDate;
31
- dueDate: z.ZodOptional<z.ZodDate>;
32
- status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
289
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "failed", "cancelled", "on_hold", "suppressed"]>;
33
290
  priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
34
- assigneeName: z.ZodOptional<z.ZodString>;
35
- assigneeRef: z.ZodOptional<z.ZodAny>;
291
+ importance: z.ZodOptional<z.ZodNumber>;
292
+ source: z.ZodEnum<["user", "automation_hub", "system"]>;
293
+ creator: z.ZodObject<{
294
+ name: z.ZodString;
295
+ ref: z.ZodOptional<z.ZodAny>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ name: string;
298
+ ref?: any;
299
+ }, {
300
+ name: string;
301
+ ref?: any;
302
+ }>;
303
+ schedule: z.ZodOptional<z.ZodObject<{
304
+ execute_at: z.ZodOptional<z.ZodDate>;
305
+ due_at: z.ZodOptional<z.ZodDate>;
306
+ timezone: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ timezone?: string | undefined;
309
+ execute_at?: Date | undefined;
310
+ due_at?: Date | undefined;
311
+ }, {
312
+ timezone?: string | undefined;
313
+ execute_at?: Date | undefined;
314
+ due_at?: Date | undefined;
315
+ }>>;
36
316
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
37
317
  name: z.ZodString;
38
318
  color: z.ZodOptional<z.ZodString>;
@@ -52,30 +332,251 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
52
332
  color?: string | undefined;
53
333
  category?: string | null | undefined;
54
334
  }>, "many">>>;
55
- ia_assigned: z.ZodOptional<z.ZodBoolean>;
56
- ia_agent: z.ZodOptional<z.ZodString>;
57
- ia_duescheduled: z.ZodOptional<z.ZodDate>;
58
- ia_task_type: z.ZodOptional<z.ZodEnum<["data_analysis", "content_generation", "classification", "extraction", "summarization", "translation", "sentiment_analysis", "question_answering", "send_reminder", "request_contact_info", "request_operator_info", "confirm_appointment", "send_documents", "create_appointment", "reschedule_appointment", "cancel_appointment", "financial_charge", "custom"]>>;
59
- ia_result: z.ZodOptional<z.ZodString>;
60
- ia_result_code: z.ZodOptional<z.ZodNumber>;
61
- ia_started_at: z.ZodOptional<z.ZodDate>;
62
- ia_completed_at: z.ZodOptional<z.ZodDate>;
63
- ia_error: z.ZodOptional<z.ZodString>;
64
- ia_retry_count: z.ZodOptional<z.ZodNumber>;
65
- ia_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
- ia_prompt: z.ZodOptional<z.ZodString>;
67
- ia_model: z.ZodOptional<z.ZodString>;
68
- ia_progress: z.ZodOptional<z.ZodNumber>;
69
335
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
336
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
71
337
  id: z.ZodString;
338
+ label: z.ZodOptional<z.ZodString>;
72
339
  }, "strip", z.ZodTypeAny, {
73
340
  id: string;
74
341
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
342
+ label?: string | undefined;
75
343
  }, {
76
344
  id: string;
77
345
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
346
+ label?: string | undefined;
78
347
  }>, "many">>;
348
+ idempotency_key: z.ZodOptional<z.ZodString>;
349
+ dedup: z.ZodOptional<z.ZodObject<{
350
+ enabled: z.ZodBoolean;
351
+ key: z.ZodString;
352
+ group_key: z.ZodOptional<z.ZodString>;
353
+ scope: z.ZodOptional<z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>>;
354
+ window: z.ZodOptional<z.ZodEnum<["same_day", "n_hours", "custom"]>>;
355
+ window_hours: z.ZodOptional<z.ZodNumber>;
356
+ importance: z.ZodOptional<z.ZodNumber>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ enabled: boolean;
359
+ key: string;
360
+ group_key?: string | undefined;
361
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
362
+ window?: "custom" | "same_day" | "n_hours" | undefined;
363
+ window_hours?: number | undefined;
364
+ importance?: number | undefined;
365
+ }, {
366
+ enabled: boolean;
367
+ key: string;
368
+ group_key?: string | undefined;
369
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
370
+ window?: "custom" | "same_day" | "n_hours" | undefined;
371
+ window_hours?: number | undefined;
372
+ importance?: number | undefined;
373
+ }>>;
374
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
375
+ mode: z.ZodEnum<["human", "auto"]>;
376
+ assignee: z.ZodOptional<z.ZodObject<{
377
+ kind: z.ZodLiteral<"user">;
378
+ name: z.ZodOptional<z.ZodString>;
379
+ ref: z.ZodOptional<z.ZodAny>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ kind: "user";
382
+ name?: string | undefined;
383
+ ref?: any;
384
+ }, {
385
+ kind: "user";
386
+ name?: string | undefined;
387
+ ref?: any;
388
+ }>>;
389
+ lock: z.ZodOptional<z.ZodObject<{
390
+ locked_by: z.ZodString;
391
+ lock_until: z.ZodDate;
392
+ }, "strip", z.ZodTypeAny, {
393
+ locked_by: string;
394
+ lock_until: Date;
395
+ }, {
396
+ locked_by: string;
397
+ lock_until: Date;
398
+ }>>;
399
+ retry: z.ZodOptional<z.ZodObject<{
400
+ max_attempts: z.ZodNumber;
401
+ attempt: z.ZodNumber;
402
+ strategy: z.ZodEnum<["fixed", "exponential"]>;
403
+ backoff_seconds: z.ZodNumber;
404
+ next_attempt_at: z.ZodOptional<z.ZodDate>;
405
+ last_error: z.ZodOptional<z.ZodObject<{
406
+ message: z.ZodString;
407
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
408
+ at: z.ZodDate;
409
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ message: string;
412
+ at: Date;
413
+ code?: string | number | undefined;
414
+ details?: Record<string, unknown> | undefined;
415
+ }, {
416
+ message: string;
417
+ at: Date;
418
+ code?: string | number | undefined;
419
+ details?: Record<string, unknown> | undefined;
420
+ }>>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ max_attempts: number;
423
+ attempt: number;
424
+ strategy: "fixed" | "exponential";
425
+ backoff_seconds: number;
426
+ next_attempt_at?: Date | undefined;
427
+ last_error?: {
428
+ message: string;
429
+ at: Date;
430
+ code?: string | number | undefined;
431
+ details?: Record<string, unknown> | undefined;
432
+ } | undefined;
433
+ }, {
434
+ max_attempts: number;
435
+ attempt: number;
436
+ strategy: "fixed" | "exponential";
437
+ backoff_seconds: number;
438
+ next_attempt_at?: Date | undefined;
439
+ last_error?: {
440
+ message: string;
441
+ at: Date;
442
+ code?: string | number | undefined;
443
+ details?: Record<string, unknown> | undefined;
444
+ } | undefined;
445
+ }>>;
446
+ on_failure: z.ZodOptional<z.ZodObject<{
447
+ handoff_to_user: z.ZodOptional<z.ZodObject<{
448
+ name: z.ZodOptional<z.ZodString>;
449
+ ref: z.ZodOptional<z.ZodAny>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ name?: string | undefined;
452
+ ref?: any;
453
+ }, {
454
+ name?: string | undefined;
455
+ ref?: any;
456
+ }>>;
457
+ create_handoff_task: z.ZodOptional<z.ZodObject<{
458
+ title: z.ZodOptional<z.ZodString>;
459
+ description: z.ZodOptional<z.ZodString>;
460
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
461
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
462
+ name: z.ZodString;
463
+ color: z.ZodOptional<z.ZodString>;
464
+ hidden: z.ZodBoolean;
465
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ name: string;
469
+ hidden: boolean;
470
+ base?: boolean | undefined;
471
+ color?: string | undefined;
472
+ category?: string | null | undefined;
473
+ }, {
474
+ name: string;
475
+ hidden: boolean;
476
+ base?: boolean | undefined;
477
+ color?: string | undefined;
478
+ category?: string | null | undefined;
479
+ }>, "many">>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ tags?: {
482
+ name: string;
483
+ hidden: boolean;
484
+ base?: boolean | undefined;
485
+ color?: string | undefined;
486
+ category?: string | null | undefined;
487
+ }[] | null | undefined;
488
+ title?: string | undefined;
489
+ description?: string | undefined;
490
+ priority?: "low" | "medium" | "high" | undefined;
491
+ }, {
492
+ tags?: {
493
+ name: string;
494
+ hidden: boolean;
495
+ base?: boolean | undefined;
496
+ color?: string | undefined;
497
+ category?: string | null | undefined;
498
+ }[] | null | undefined;
499
+ title?: string | undefined;
500
+ description?: string | undefined;
501
+ priority?: "low" | "medium" | "high" | undefined;
502
+ }>>;
503
+ auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
504
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
505
+ kind: z.ZodString;
506
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ kind: string;
509
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
510
+ payload: Record<string, unknown>;
511
+ }, {
512
+ kind: string;
513
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
514
+ payload: Record<string, unknown>;
515
+ }>, "many">>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ handoff_to_user?: {
518
+ name?: string | undefined;
519
+ ref?: any;
520
+ } | undefined;
521
+ create_handoff_task?: {
522
+ tags?: {
523
+ name: string;
524
+ hidden: boolean;
525
+ base?: boolean | undefined;
526
+ color?: string | undefined;
527
+ category?: string | null | undefined;
528
+ }[] | null | undefined;
529
+ title?: string | undefined;
530
+ description?: string | undefined;
531
+ priority?: "low" | "medium" | "high" | undefined;
532
+ } | undefined;
533
+ auto_fallbacks?: {
534
+ kind: string;
535
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
536
+ payload: Record<string, unknown>;
537
+ }[] | undefined;
538
+ }, {
539
+ handoff_to_user?: {
540
+ name?: string | undefined;
541
+ ref?: any;
542
+ } | undefined;
543
+ create_handoff_task?: {
544
+ tags?: {
545
+ name: string;
546
+ hidden: boolean;
547
+ base?: boolean | undefined;
548
+ color?: string | undefined;
549
+ category?: string | null | undefined;
550
+ }[] | null | undefined;
551
+ title?: string | undefined;
552
+ description?: string | undefined;
553
+ priority?: "low" | "medium" | "high" | undefined;
554
+ } | undefined;
555
+ auto_fallbacks?: {
556
+ kind: string;
557
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
558
+ payload: Record<string, unknown>;
559
+ }[] | undefined;
560
+ }>>;
561
+ auto: z.ZodOptional<z.ZodObject<{
562
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
563
+ kind: z.ZodString;
564
+ version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
565
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
566
+ idempotency_key: z.ZodOptional<z.ZodString>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ kind: string;
569
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
570
+ payload: Record<string, unknown>;
571
+ version?: string | number | undefined;
572
+ idempotency_key?: string | undefined;
573
+ }, {
574
+ kind: string;
575
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
576
+ payload: Record<string, unknown>;
577
+ version?: string | number | undefined;
578
+ idempotency_key?: string | undefined;
579
+ }>>;
79
580
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
80
581
  id: z.ZodString;
81
582
  ref: z.ZodAny;
@@ -87,14 +588,33 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
87
588
  }, {
88
589
  title: z.ZodString;
89
590
  description: z.ZodOptional<z.ZodString>;
90
- creatorName: z.ZodString;
91
- creatorRef: z.ZodOptional<z.ZodAny>;
92
- startDate: z.ZodDate;
93
- dueDate: z.ZodOptional<z.ZodDate>;
94
- status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
591
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "failed", "cancelled", "on_hold", "suppressed"]>;
95
592
  priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
96
- assigneeName: z.ZodOptional<z.ZodString>;
97
- assigneeRef: z.ZodOptional<z.ZodAny>;
593
+ importance: z.ZodOptional<z.ZodNumber>;
594
+ source: z.ZodEnum<["user", "automation_hub", "system"]>;
595
+ creator: z.ZodObject<{
596
+ name: z.ZodString;
597
+ ref: z.ZodOptional<z.ZodAny>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ name: string;
600
+ ref?: any;
601
+ }, {
602
+ name: string;
603
+ ref?: any;
604
+ }>;
605
+ schedule: z.ZodOptional<z.ZodObject<{
606
+ execute_at: z.ZodOptional<z.ZodDate>;
607
+ due_at: z.ZodOptional<z.ZodDate>;
608
+ timezone: z.ZodOptional<z.ZodString>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ timezone?: string | undefined;
611
+ execute_at?: Date | undefined;
612
+ due_at?: Date | undefined;
613
+ }, {
614
+ timezone?: string | undefined;
615
+ execute_at?: Date | undefined;
616
+ due_at?: Date | undefined;
617
+ }>>;
98
618
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
99
619
  name: z.ZodString;
100
620
  color: z.ZodOptional<z.ZodString>;
@@ -114,30 +634,251 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
114
634
  color?: string | undefined;
115
635
  category?: string | null | undefined;
116
636
  }>, "many">>>;
117
- ia_assigned: z.ZodOptional<z.ZodBoolean>;
118
- ia_agent: z.ZodOptional<z.ZodString>;
119
- ia_duescheduled: z.ZodOptional<z.ZodDate>;
120
- ia_task_type: z.ZodOptional<z.ZodEnum<["data_analysis", "content_generation", "classification", "extraction", "summarization", "translation", "sentiment_analysis", "question_answering", "send_reminder", "request_contact_info", "request_operator_info", "confirm_appointment", "send_documents", "create_appointment", "reschedule_appointment", "cancel_appointment", "financial_charge", "custom"]>>;
121
- ia_result: z.ZodOptional<z.ZodString>;
122
- ia_result_code: z.ZodOptional<z.ZodNumber>;
123
- ia_started_at: z.ZodOptional<z.ZodDate>;
124
- ia_completed_at: z.ZodOptional<z.ZodDate>;
125
- ia_error: z.ZodOptional<z.ZodString>;
126
- ia_retry_count: z.ZodOptional<z.ZodNumber>;
127
- ia_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
128
- ia_prompt: z.ZodOptional<z.ZodString>;
129
- ia_model: z.ZodOptional<z.ZodString>;
130
- ia_progress: z.ZodOptional<z.ZodNumber>;
131
637
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
638
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
133
639
  id: z.ZodString;
640
+ label: z.ZodOptional<z.ZodString>;
134
641
  }, "strip", z.ZodTypeAny, {
135
642
  id: string;
136
643
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
644
+ label?: string | undefined;
137
645
  }, {
138
646
  id: string;
139
647
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
648
+ label?: string | undefined;
140
649
  }>, "many">>;
650
+ idempotency_key: z.ZodOptional<z.ZodString>;
651
+ dedup: z.ZodOptional<z.ZodObject<{
652
+ enabled: z.ZodBoolean;
653
+ key: z.ZodString;
654
+ group_key: z.ZodOptional<z.ZodString>;
655
+ scope: z.ZodOptional<z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>>;
656
+ window: z.ZodOptional<z.ZodEnum<["same_day", "n_hours", "custom"]>>;
657
+ window_hours: z.ZodOptional<z.ZodNumber>;
658
+ importance: z.ZodOptional<z.ZodNumber>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ enabled: boolean;
661
+ key: string;
662
+ group_key?: string | undefined;
663
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
664
+ window?: "custom" | "same_day" | "n_hours" | undefined;
665
+ window_hours?: number | undefined;
666
+ importance?: number | undefined;
667
+ }, {
668
+ enabled: boolean;
669
+ key: string;
670
+ group_key?: string | undefined;
671
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
672
+ window?: "custom" | "same_day" | "n_hours" | undefined;
673
+ window_hours?: number | undefined;
674
+ importance?: number | undefined;
675
+ }>>;
676
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
677
+ mode: z.ZodEnum<["human", "auto"]>;
678
+ assignee: z.ZodOptional<z.ZodObject<{
679
+ kind: z.ZodLiteral<"user">;
680
+ name: z.ZodOptional<z.ZodString>;
681
+ ref: z.ZodOptional<z.ZodAny>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ kind: "user";
684
+ name?: string | undefined;
685
+ ref?: any;
686
+ }, {
687
+ kind: "user";
688
+ name?: string | undefined;
689
+ ref?: any;
690
+ }>>;
691
+ lock: z.ZodOptional<z.ZodObject<{
692
+ locked_by: z.ZodString;
693
+ lock_until: z.ZodDate;
694
+ }, "strip", z.ZodTypeAny, {
695
+ locked_by: string;
696
+ lock_until: Date;
697
+ }, {
698
+ locked_by: string;
699
+ lock_until: Date;
700
+ }>>;
701
+ retry: z.ZodOptional<z.ZodObject<{
702
+ max_attempts: z.ZodNumber;
703
+ attempt: z.ZodNumber;
704
+ strategy: z.ZodEnum<["fixed", "exponential"]>;
705
+ backoff_seconds: z.ZodNumber;
706
+ next_attempt_at: z.ZodOptional<z.ZodDate>;
707
+ last_error: z.ZodOptional<z.ZodObject<{
708
+ message: z.ZodString;
709
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
710
+ at: z.ZodDate;
711
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ message: string;
714
+ at: Date;
715
+ code?: string | number | undefined;
716
+ details?: Record<string, unknown> | undefined;
717
+ }, {
718
+ message: string;
719
+ at: Date;
720
+ code?: string | number | undefined;
721
+ details?: Record<string, unknown> | undefined;
722
+ }>>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ max_attempts: number;
725
+ attempt: number;
726
+ strategy: "fixed" | "exponential";
727
+ backoff_seconds: number;
728
+ next_attempt_at?: Date | undefined;
729
+ last_error?: {
730
+ message: string;
731
+ at: Date;
732
+ code?: string | number | undefined;
733
+ details?: Record<string, unknown> | undefined;
734
+ } | undefined;
735
+ }, {
736
+ max_attempts: number;
737
+ attempt: number;
738
+ strategy: "fixed" | "exponential";
739
+ backoff_seconds: number;
740
+ next_attempt_at?: Date | undefined;
741
+ last_error?: {
742
+ message: string;
743
+ at: Date;
744
+ code?: string | number | undefined;
745
+ details?: Record<string, unknown> | undefined;
746
+ } | undefined;
747
+ }>>;
748
+ on_failure: z.ZodOptional<z.ZodObject<{
749
+ handoff_to_user: z.ZodOptional<z.ZodObject<{
750
+ name: z.ZodOptional<z.ZodString>;
751
+ ref: z.ZodOptional<z.ZodAny>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ name?: string | undefined;
754
+ ref?: any;
755
+ }, {
756
+ name?: string | undefined;
757
+ ref?: any;
758
+ }>>;
759
+ create_handoff_task: z.ZodOptional<z.ZodObject<{
760
+ title: z.ZodOptional<z.ZodString>;
761
+ description: z.ZodOptional<z.ZodString>;
762
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
763
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
764
+ name: z.ZodString;
765
+ color: z.ZodOptional<z.ZodString>;
766
+ hidden: z.ZodBoolean;
767
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
768
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ name: string;
771
+ hidden: boolean;
772
+ base?: boolean | undefined;
773
+ color?: string | undefined;
774
+ category?: string | null | undefined;
775
+ }, {
776
+ name: string;
777
+ hidden: boolean;
778
+ base?: boolean | undefined;
779
+ color?: string | undefined;
780
+ category?: string | null | undefined;
781
+ }>, "many">>>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ tags?: {
784
+ name: string;
785
+ hidden: boolean;
786
+ base?: boolean | undefined;
787
+ color?: string | undefined;
788
+ category?: string | null | undefined;
789
+ }[] | null | undefined;
790
+ title?: string | undefined;
791
+ description?: string | undefined;
792
+ priority?: "low" | "medium" | "high" | undefined;
793
+ }, {
794
+ tags?: {
795
+ name: string;
796
+ hidden: boolean;
797
+ base?: boolean | undefined;
798
+ color?: string | undefined;
799
+ category?: string | null | undefined;
800
+ }[] | null | undefined;
801
+ title?: string | undefined;
802
+ description?: string | undefined;
803
+ priority?: "low" | "medium" | "high" | undefined;
804
+ }>>;
805
+ auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
806
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
807
+ kind: z.ZodString;
808
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ kind: string;
811
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
812
+ payload: Record<string, unknown>;
813
+ }, {
814
+ kind: string;
815
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
816
+ payload: Record<string, unknown>;
817
+ }>, "many">>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ handoff_to_user?: {
820
+ name?: string | undefined;
821
+ ref?: any;
822
+ } | undefined;
823
+ create_handoff_task?: {
824
+ tags?: {
825
+ name: string;
826
+ hidden: boolean;
827
+ base?: boolean | undefined;
828
+ color?: string | undefined;
829
+ category?: string | null | undefined;
830
+ }[] | null | undefined;
831
+ title?: string | undefined;
832
+ description?: string | undefined;
833
+ priority?: "low" | "medium" | "high" | undefined;
834
+ } | undefined;
835
+ auto_fallbacks?: {
836
+ kind: string;
837
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
838
+ payload: Record<string, unknown>;
839
+ }[] | undefined;
840
+ }, {
841
+ handoff_to_user?: {
842
+ name?: string | undefined;
843
+ ref?: any;
844
+ } | undefined;
845
+ create_handoff_task?: {
846
+ tags?: {
847
+ name: string;
848
+ hidden: boolean;
849
+ base?: boolean | undefined;
850
+ color?: string | undefined;
851
+ category?: string | null | undefined;
852
+ }[] | null | undefined;
853
+ title?: string | undefined;
854
+ description?: string | undefined;
855
+ priority?: "low" | "medium" | "high" | undefined;
856
+ } | undefined;
857
+ auto_fallbacks?: {
858
+ kind: string;
859
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
860
+ payload: Record<string, unknown>;
861
+ }[] | undefined;
862
+ }>>;
863
+ auto: z.ZodOptional<z.ZodObject<{
864
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
865
+ kind: z.ZodString;
866
+ version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
867
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
868
+ idempotency_key: z.ZodOptional<z.ZodString>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ kind: string;
871
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
872
+ payload: Record<string, unknown>;
873
+ version?: string | number | undefined;
874
+ idempotency_key?: string | undefined;
875
+ }, {
876
+ kind: string;
877
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
878
+ payload: Record<string, unknown>;
879
+ version?: string | number | undefined;
880
+ idempotency_key?: string | undefined;
881
+ }>>;
141
882
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
142
883
  id: z.ZodString;
143
884
  ref: z.ZodAny;
@@ -149,14 +890,33 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
149
890
  }, {
150
891
  title: z.ZodString;
151
892
  description: z.ZodOptional<z.ZodString>;
152
- creatorName: z.ZodString;
153
- creatorRef: z.ZodOptional<z.ZodAny>;
154
- startDate: z.ZodDate;
155
- dueDate: z.ZodOptional<z.ZodDate>;
156
- status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
893
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "failed", "cancelled", "on_hold", "suppressed"]>;
157
894
  priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
158
- assigneeName: z.ZodOptional<z.ZodString>;
159
- assigneeRef: z.ZodOptional<z.ZodAny>;
895
+ importance: z.ZodOptional<z.ZodNumber>;
896
+ source: z.ZodEnum<["user", "automation_hub", "system"]>;
897
+ creator: z.ZodObject<{
898
+ name: z.ZodString;
899
+ ref: z.ZodOptional<z.ZodAny>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ name: string;
902
+ ref?: any;
903
+ }, {
904
+ name: string;
905
+ ref?: any;
906
+ }>;
907
+ schedule: z.ZodOptional<z.ZodObject<{
908
+ execute_at: z.ZodOptional<z.ZodDate>;
909
+ due_at: z.ZodOptional<z.ZodDate>;
910
+ timezone: z.ZodOptional<z.ZodString>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ timezone?: string | undefined;
913
+ execute_at?: Date | undefined;
914
+ due_at?: Date | undefined;
915
+ }, {
916
+ timezone?: string | undefined;
917
+ execute_at?: Date | undefined;
918
+ due_at?: Date | undefined;
919
+ }>>;
160
920
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
161
921
  name: z.ZodString;
162
922
  color: z.ZodOptional<z.ZodString>;
@@ -176,31 +936,262 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
176
936
  color?: string | undefined;
177
937
  category?: string | null | undefined;
178
938
  }>, "many">>>;
179
- ia_assigned: z.ZodOptional<z.ZodBoolean>;
180
- ia_agent: z.ZodOptional<z.ZodString>;
181
- ia_duescheduled: z.ZodOptional<z.ZodDate>;
182
- ia_task_type: z.ZodOptional<z.ZodEnum<["data_analysis", "content_generation", "classification", "extraction", "summarization", "translation", "sentiment_analysis", "question_answering", "send_reminder", "request_contact_info", "request_operator_info", "confirm_appointment", "send_documents", "create_appointment", "reschedule_appointment", "cancel_appointment", "financial_charge", "custom"]>>;
183
- ia_result: z.ZodOptional<z.ZodString>;
184
- ia_result_code: z.ZodOptional<z.ZodNumber>;
185
- ia_started_at: z.ZodOptional<z.ZodDate>;
186
- ia_completed_at: z.ZodOptional<z.ZodDate>;
187
- ia_error: z.ZodOptional<z.ZodString>;
188
- ia_retry_count: z.ZodOptional<z.ZodNumber>;
189
- ia_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
- ia_prompt: z.ZodOptional<z.ZodString>;
191
- ia_model: z.ZodOptional<z.ZodString>;
192
- ia_progress: z.ZodOptional<z.ZodNumber>;
193
939
  externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
940
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
195
941
  id: z.ZodString;
942
+ label: z.ZodOptional<z.ZodString>;
196
943
  }, "strip", z.ZodTypeAny, {
197
944
  id: string;
198
945
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
946
+ label?: string | undefined;
199
947
  }, {
200
948
  id: string;
201
949
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
950
+ label?: string | undefined;
202
951
  }>, "many">>;
952
+ idempotency_key: z.ZodOptional<z.ZodString>;
953
+ dedup: z.ZodOptional<z.ZodObject<{
954
+ enabled: z.ZodBoolean;
955
+ key: z.ZodString;
956
+ group_key: z.ZodOptional<z.ZodString>;
957
+ scope: z.ZodOptional<z.ZodEnum<["per_recipient", "per_recipient_and_object", "custom"]>>;
958
+ window: z.ZodOptional<z.ZodEnum<["same_day", "n_hours", "custom"]>>;
959
+ window_hours: z.ZodOptional<z.ZodNumber>;
960
+ importance: z.ZodOptional<z.ZodNumber>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ enabled: boolean;
963
+ key: string;
964
+ group_key?: string | undefined;
965
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
966
+ window?: "custom" | "same_day" | "n_hours" | undefined;
967
+ window_hours?: number | undefined;
968
+ importance?: number | undefined;
969
+ }, {
970
+ enabled: boolean;
971
+ key: string;
972
+ group_key?: string | undefined;
973
+ scope?: "custom" | "per_recipient" | "per_recipient_and_object" | undefined;
974
+ window?: "custom" | "same_day" | "n_hours" | undefined;
975
+ window_hours?: number | undefined;
976
+ importance?: number | undefined;
977
+ }>>;
978
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
+ mode: z.ZodEnum<["human", "auto"]>;
980
+ assignee: z.ZodOptional<z.ZodObject<{
981
+ kind: z.ZodLiteral<"user">;
982
+ name: z.ZodOptional<z.ZodString>;
983
+ ref: z.ZodOptional<z.ZodAny>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ kind: "user";
986
+ name?: string | undefined;
987
+ ref?: any;
988
+ }, {
989
+ kind: "user";
990
+ name?: string | undefined;
991
+ ref?: any;
992
+ }>>;
993
+ lock: z.ZodOptional<z.ZodObject<{
994
+ locked_by: z.ZodString;
995
+ lock_until: z.ZodDate;
996
+ }, "strip", z.ZodTypeAny, {
997
+ locked_by: string;
998
+ lock_until: Date;
999
+ }, {
1000
+ locked_by: string;
1001
+ lock_until: Date;
1002
+ }>>;
1003
+ retry: z.ZodOptional<z.ZodObject<{
1004
+ max_attempts: z.ZodNumber;
1005
+ attempt: z.ZodNumber;
1006
+ strategy: z.ZodEnum<["fixed", "exponential"]>;
1007
+ backoff_seconds: z.ZodNumber;
1008
+ next_attempt_at: z.ZodOptional<z.ZodDate>;
1009
+ last_error: z.ZodOptional<z.ZodObject<{
1010
+ message: z.ZodString;
1011
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1012
+ at: z.ZodDate;
1013
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ message: string;
1016
+ at: Date;
1017
+ code?: string | number | undefined;
1018
+ details?: Record<string, unknown> | undefined;
1019
+ }, {
1020
+ message: string;
1021
+ at: Date;
1022
+ code?: string | number | undefined;
1023
+ details?: Record<string, unknown> | undefined;
1024
+ }>>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ max_attempts: number;
1027
+ attempt: number;
1028
+ strategy: "fixed" | "exponential";
1029
+ backoff_seconds: number;
1030
+ next_attempt_at?: Date | undefined;
1031
+ last_error?: {
1032
+ message: string;
1033
+ at: Date;
1034
+ code?: string | number | undefined;
1035
+ details?: Record<string, unknown> | undefined;
1036
+ } | undefined;
1037
+ }, {
1038
+ max_attempts: number;
1039
+ attempt: number;
1040
+ strategy: "fixed" | "exponential";
1041
+ backoff_seconds: number;
1042
+ next_attempt_at?: Date | undefined;
1043
+ last_error?: {
1044
+ message: string;
1045
+ at: Date;
1046
+ code?: string | number | undefined;
1047
+ details?: Record<string, unknown> | undefined;
1048
+ } | undefined;
1049
+ }>>;
1050
+ on_failure: z.ZodOptional<z.ZodObject<{
1051
+ handoff_to_user: z.ZodOptional<z.ZodObject<{
1052
+ name: z.ZodOptional<z.ZodString>;
1053
+ ref: z.ZodOptional<z.ZodAny>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ name?: string | undefined;
1056
+ ref?: any;
1057
+ }, {
1058
+ name?: string | undefined;
1059
+ ref?: any;
1060
+ }>>;
1061
+ create_handoff_task: z.ZodOptional<z.ZodObject<{
1062
+ title: z.ZodOptional<z.ZodString>;
1063
+ description: z.ZodOptional<z.ZodString>;
1064
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1065
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1066
+ name: z.ZodString;
1067
+ color: z.ZodOptional<z.ZodString>;
1068
+ hidden: z.ZodBoolean;
1069
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1070
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ name: string;
1073
+ hidden: boolean;
1074
+ base?: boolean | undefined;
1075
+ color?: string | undefined;
1076
+ category?: string | null | undefined;
1077
+ }, {
1078
+ name: string;
1079
+ hidden: boolean;
1080
+ base?: boolean | undefined;
1081
+ color?: string | undefined;
1082
+ category?: string | null | undefined;
1083
+ }>, "many">>>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ tags?: {
1086
+ name: string;
1087
+ hidden: boolean;
1088
+ base?: boolean | undefined;
1089
+ color?: string | undefined;
1090
+ category?: string | null | undefined;
1091
+ }[] | null | undefined;
1092
+ title?: string | undefined;
1093
+ description?: string | undefined;
1094
+ priority?: "low" | "medium" | "high" | undefined;
1095
+ }, {
1096
+ tags?: {
1097
+ name: string;
1098
+ hidden: boolean;
1099
+ base?: boolean | undefined;
1100
+ color?: string | undefined;
1101
+ category?: string | null | undefined;
1102
+ }[] | null | undefined;
1103
+ title?: string | undefined;
1104
+ description?: string | undefined;
1105
+ priority?: "low" | "medium" | "high" | undefined;
1106
+ }>>;
1107
+ auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
1109
+ kind: z.ZodString;
1110
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ kind: string;
1113
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1114
+ payload: Record<string, unknown>;
1115
+ }, {
1116
+ kind: string;
1117
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1118
+ payload: Record<string, unknown>;
1119
+ }>, "many">>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ handoff_to_user?: {
1122
+ name?: string | undefined;
1123
+ ref?: any;
1124
+ } | undefined;
1125
+ create_handoff_task?: {
1126
+ tags?: {
1127
+ name: string;
1128
+ hidden: boolean;
1129
+ base?: boolean | undefined;
1130
+ color?: string | undefined;
1131
+ category?: string | null | undefined;
1132
+ }[] | null | undefined;
1133
+ title?: string | undefined;
1134
+ description?: string | undefined;
1135
+ priority?: "low" | "medium" | "high" | undefined;
1136
+ } | undefined;
1137
+ auto_fallbacks?: {
1138
+ kind: string;
1139
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1140
+ payload: Record<string, unknown>;
1141
+ }[] | undefined;
1142
+ }, {
1143
+ handoff_to_user?: {
1144
+ name?: string | undefined;
1145
+ ref?: any;
1146
+ } | undefined;
1147
+ create_handoff_task?: {
1148
+ tags?: {
1149
+ name: string;
1150
+ hidden: boolean;
1151
+ base?: boolean | undefined;
1152
+ color?: string | undefined;
1153
+ category?: string | null | undefined;
1154
+ }[] | null | undefined;
1155
+ title?: string | undefined;
1156
+ description?: string | undefined;
1157
+ priority?: "low" | "medium" | "high" | undefined;
1158
+ } | undefined;
1159
+ auto_fallbacks?: {
1160
+ kind: string;
1161
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1162
+ payload: Record<string, unknown>;
1163
+ }[] | undefined;
1164
+ }>>;
1165
+ auto: z.ZodOptional<z.ZodObject<{
1166
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
1167
+ kind: z.ZodString;
1168
+ version: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1169
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1170
+ idempotency_key: z.ZodOptional<z.ZodString>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ kind: string;
1173
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1174
+ payload: Record<string, unknown>;
1175
+ version?: string | number | undefined;
1176
+ idempotency_key?: string | undefined;
1177
+ }, {
1178
+ kind: string;
1179
+ handler: "notifications" | "ai_agent" | "invoices" | "webhook" | "custom";
1180
+ payload: Record<string, unknown>;
1181
+ version?: string | number | undefined;
1182
+ idempotency_key?: string | undefined;
1183
+ }>>;
203
1184
  }>, z.ZodTypeAny, "passthrough">>;
1185
+ export declare const zTaskCommentAuthorSchema: z.ZodObject<{
1186
+ name: z.ZodString;
1187
+ ref: z.ZodOptional<z.ZodAny>;
1188
+ }, "strip", z.ZodTypeAny, {
1189
+ name: string;
1190
+ ref?: any;
1191
+ }, {
1192
+ name: string;
1193
+ ref?: any;
1194
+ }>;
204
1195
  export declare const zTaskCommentSchema: z.ZodObject<z.objectUtil.extendShape<{
205
1196
  id: z.ZodString;
206
1197
  ref: z.ZodAny;
@@ -212,8 +1203,16 @@ export declare const zTaskCommentSchema: z.ZodObject<z.objectUtil.extendShape<{
212
1203
  }, {
213
1204
  taskId: z.ZodString;
214
1205
  text: z.ZodString;
215
- authorName: z.ZodString;
216
- authorRef: z.ZodOptional<z.ZodAny>;
1206
+ author: z.ZodObject<{
1207
+ name: z.ZodString;
1208
+ ref: z.ZodOptional<z.ZodAny>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ name: string;
1211
+ ref?: any;
1212
+ }, {
1213
+ name: string;
1214
+ ref?: any;
1215
+ }>;
217
1216
  edited: z.ZodOptional<z.ZodBoolean>;
218
1217
  edited_at: z.ZodOptional<z.ZodDate>;
219
1218
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
@@ -227,8 +1226,16 @@ export declare const zTaskCommentSchema: z.ZodObject<z.objectUtil.extendShape<{
227
1226
  }, {
228
1227
  taskId: z.ZodString;
229
1228
  text: z.ZodString;
230
- authorName: z.ZodString;
231
- authorRef: z.ZodOptional<z.ZodAny>;
1229
+ author: z.ZodObject<{
1230
+ name: z.ZodString;
1231
+ ref: z.ZodOptional<z.ZodAny>;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ name: string;
1234
+ ref?: any;
1235
+ }, {
1236
+ name: string;
1237
+ ref?: any;
1238
+ }>;
232
1239
  edited: z.ZodOptional<z.ZodBoolean>;
233
1240
  edited_at: z.ZodOptional<z.ZodDate>;
234
1241
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
@@ -242,8 +1249,203 @@ export declare const zTaskCommentSchema: z.ZodObject<z.objectUtil.extendShape<{
242
1249
  }, {
243
1250
  taskId: z.ZodString;
244
1251
  text: z.ZodString;
245
- authorName: z.ZodString;
246
- authorRef: z.ZodOptional<z.ZodAny>;
1252
+ author: z.ZodObject<{
1253
+ name: z.ZodString;
1254
+ ref: z.ZodOptional<z.ZodAny>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ name: string;
1257
+ ref?: any;
1258
+ }, {
1259
+ name: string;
1260
+ ref?: any;
1261
+ }>;
247
1262
  edited: z.ZodOptional<z.ZodBoolean>;
248
1263
  edited_at: z.ZodOptional<z.ZodDate>;
249
1264
  }>, z.ZodTypeAny, "passthrough">>;
1265
+ export declare const zTaskExecutionErrorSchema: z.ZodObject<{
1266
+ message: z.ZodString;
1267
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1268
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ message: string;
1271
+ code?: string | number | undefined;
1272
+ details?: Record<string, unknown> | undefined;
1273
+ }, {
1274
+ message: string;
1275
+ code?: string | number | undefined;
1276
+ details?: Record<string, unknown> | undefined;
1277
+ }>;
1278
+ export declare const zTaskExecutionProviderSchema: z.ZodObject<{
1279
+ name: z.ZodOptional<z.ZodString>;
1280
+ message_id: z.ZodOptional<z.ZodString>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ name?: string | undefined;
1283
+ message_id?: string | undefined;
1284
+ }, {
1285
+ name?: string | undefined;
1286
+ message_id?: string | undefined;
1287
+ }>;
1288
+ export declare const zTaskExecutionSchema: z.ZodObject<z.objectUtil.extendShape<{
1289
+ id: z.ZodString;
1290
+ ref: z.ZodAny;
1291
+ tenant: z.ZodString;
1292
+ model_ver: z.ZodDefault<z.ZodNumber>;
1293
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1294
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1295
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1296
+ }, {
1297
+ taskId: z.ZodString;
1298
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
1299
+ kind: z.ZodString;
1300
+ status: z.ZodEnum<["success", "error", "retry"]>;
1301
+ attempt: z.ZodNumber;
1302
+ started_at: z.ZodDate;
1303
+ completed_at: z.ZodOptional<z.ZodDate>;
1304
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1305
+ error: z.ZodOptional<z.ZodObject<{
1306
+ message: z.ZodString;
1307
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1308
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ message: string;
1311
+ code?: string | number | undefined;
1312
+ details?: Record<string, unknown> | undefined;
1313
+ }, {
1314
+ message: string;
1315
+ code?: string | number | undefined;
1316
+ details?: Record<string, unknown> | undefined;
1317
+ }>>;
1318
+ provider: z.ZodOptional<z.ZodObject<{
1319
+ name: z.ZodOptional<z.ZodString>;
1320
+ message_id: z.ZodOptional<z.ZodString>;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ name?: string | undefined;
1323
+ message_id?: string | undefined;
1324
+ }, {
1325
+ name?: string | undefined;
1326
+ message_id?: string | undefined;
1327
+ }>>;
1328
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
1329
+ id: z.ZodString;
1330
+ ref: z.ZodAny;
1331
+ tenant: z.ZodString;
1332
+ model_ver: z.ZodDefault<z.ZodNumber>;
1333
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1334
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1335
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1336
+ }, {
1337
+ taskId: z.ZodString;
1338
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
1339
+ kind: z.ZodString;
1340
+ status: z.ZodEnum<["success", "error", "retry"]>;
1341
+ attempt: z.ZodNumber;
1342
+ started_at: z.ZodDate;
1343
+ completed_at: z.ZodOptional<z.ZodDate>;
1344
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1345
+ error: z.ZodOptional<z.ZodObject<{
1346
+ message: z.ZodString;
1347
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1348
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ message: string;
1351
+ code?: string | number | undefined;
1352
+ details?: Record<string, unknown> | undefined;
1353
+ }, {
1354
+ message: string;
1355
+ code?: string | number | undefined;
1356
+ details?: Record<string, unknown> | undefined;
1357
+ }>>;
1358
+ provider: z.ZodOptional<z.ZodObject<{
1359
+ name: z.ZodOptional<z.ZodString>;
1360
+ message_id: z.ZodOptional<z.ZodString>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ name?: string | undefined;
1363
+ message_id?: string | undefined;
1364
+ }, {
1365
+ name?: string | undefined;
1366
+ message_id?: string | undefined;
1367
+ }>>;
1368
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
1369
+ id: z.ZodString;
1370
+ ref: z.ZodAny;
1371
+ tenant: z.ZodString;
1372
+ model_ver: z.ZodDefault<z.ZodNumber>;
1373
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1374
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1375
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1376
+ }, {
1377
+ taskId: z.ZodString;
1378
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom"]>;
1379
+ kind: z.ZodString;
1380
+ status: z.ZodEnum<["success", "error", "retry"]>;
1381
+ attempt: z.ZodNumber;
1382
+ started_at: z.ZodDate;
1383
+ completed_at: z.ZodOptional<z.ZodDate>;
1384
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1385
+ error: z.ZodOptional<z.ZodObject<{
1386
+ message: z.ZodString;
1387
+ code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1388
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ message: string;
1391
+ code?: string | number | undefined;
1392
+ details?: Record<string, unknown> | undefined;
1393
+ }, {
1394
+ message: string;
1395
+ code?: string | number | undefined;
1396
+ details?: Record<string, unknown> | undefined;
1397
+ }>>;
1398
+ provider: z.ZodOptional<z.ZodObject<{
1399
+ name: z.ZodOptional<z.ZodString>;
1400
+ message_id: z.ZodOptional<z.ZodString>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ name?: string | undefined;
1403
+ message_id?: string | undefined;
1404
+ }, {
1405
+ name?: string | undefined;
1406
+ message_id?: string | undefined;
1407
+ }>>;
1408
+ }>, z.ZodTypeAny, "passthrough">>;
1409
+ export declare const zTaskLogSchema: z.ZodObject<z.objectUtil.extendShape<{
1410
+ id: z.ZodString;
1411
+ ref: z.ZodAny;
1412
+ tenant: z.ZodString;
1413
+ model_ver: z.ZodDefault<z.ZodNumber>;
1414
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1415
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1416
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1417
+ }, {
1418
+ taskId: z.ZodString;
1419
+ level: z.ZodEnum<["debug", "info", "warn", "error"]>;
1420
+ message: z.ZodString;
1421
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1422
+ at: z.ZodDate;
1423
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
1424
+ id: z.ZodString;
1425
+ ref: z.ZodAny;
1426
+ tenant: z.ZodString;
1427
+ model_ver: z.ZodDefault<z.ZodNumber>;
1428
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1429
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1430
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1431
+ }, {
1432
+ taskId: z.ZodString;
1433
+ level: z.ZodEnum<["debug", "info", "warn", "error"]>;
1434
+ message: z.ZodString;
1435
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1436
+ at: z.ZodDate;
1437
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
1438
+ id: z.ZodString;
1439
+ ref: z.ZodAny;
1440
+ tenant: z.ZodString;
1441
+ model_ver: z.ZodDefault<z.ZodNumber>;
1442
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1443
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1444
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1445
+ }, {
1446
+ taskId: z.ZodString;
1447
+ level: z.ZodEnum<["debug", "info", "warn", "error"]>;
1448
+ message: z.ZodString;
1449
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1450
+ at: z.ZodDate;
1451
+ }>, z.ZodTypeAny, "passthrough">>;