evo360-types 1.3.326 → 1.3.328

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.
@@ -0,0 +1,755 @@
1
+ import { z } from "zod";
2
+ export declare const zCapabilityNameSchema: z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>;
3
+ export declare const zIntegrationsAdapterDocSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ ref: z.ZodAny;
6
+ tenant: z.ZodString;
7
+ model_ver: z.ZodDefault<z.ZodNumber>;
8
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
+ } & {
12
+ name: z.ZodString;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ category: z.ZodEnum<["clinic-agenda", "prontuario", "misc"]>;
15
+ status: z.ZodEnum<["active", "disabled", "beta"]>;
16
+ adapter_version: z.ZodString;
17
+ default_workflow_urls: z.ZodDefault<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
18
+ supported_capabilities: z.ZodArray<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, "many">;
19
+ auth_schema_version: z.ZodOptional<z.ZodNumber>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ id: string;
23
+ tenant: string;
24
+ model_ver: number;
25
+ status: "active" | "disabled" | "beta";
26
+ category: "clinic-agenda" | "prontuario" | "misc";
27
+ adapter_version: string;
28
+ default_workflow_urls: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>>;
29
+ supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
30
+ ref?: any;
31
+ created_at?: Date | null | undefined;
32
+ updated_at?: Date | null | undefined;
33
+ deleted_at?: Date | null | undefined;
34
+ description?: string | undefined;
35
+ auth_schema_version?: number | undefined;
36
+ }, {
37
+ name: string;
38
+ id: string;
39
+ tenant: string;
40
+ status: "active" | "disabled" | "beta";
41
+ category: "clinic-agenda" | "prontuario" | "misc";
42
+ adapter_version: string;
43
+ supported_capabilities: ("appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments")[];
44
+ ref?: any;
45
+ model_ver?: number | undefined;
46
+ created_at?: Date | null | undefined;
47
+ updated_at?: Date | null | undefined;
48
+ deleted_at?: Date | null | undefined;
49
+ description?: string | undefined;
50
+ default_workflow_urls?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
51
+ auth_schema_version?: number | undefined;
52
+ }>;
53
+ export type IIntegrationsAdapterDocZ = z.infer<typeof zIntegrationsAdapterDocSchema>;
54
+ export declare const zIntegrationsCredentialSchema: z.ZodObject<{
55
+ id: z.ZodString;
56
+ ref: z.ZodAny;
57
+ tenant: z.ZodString;
58
+ model_ver: z.ZodDefault<z.ZodNumber>;
59
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
60
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
61
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
62
+ } & {
63
+ adapter_id: z.ZodString;
64
+ name: z.ZodString;
65
+ secret_ref: z.ZodString;
66
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
67
+ status: z.ZodDefault<z.ZodEnum<["active", "paused", "revoked"]>>;
68
+ last_used_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ name: string;
71
+ id: string;
72
+ tenant: string;
73
+ model_ver: number;
74
+ status: "active" | "paused" | "revoked";
75
+ adapter_id: string;
76
+ secret_ref: string;
77
+ config?: Record<string, any> | undefined;
78
+ ref?: any;
79
+ created_at?: Date | null | undefined;
80
+ updated_at?: Date | null | undefined;
81
+ deleted_at?: Date | null | undefined;
82
+ last_used_at?: Date | null | undefined;
83
+ }, {
84
+ name: string;
85
+ id: string;
86
+ tenant: string;
87
+ adapter_id: string;
88
+ secret_ref: string;
89
+ config?: Record<string, any> | undefined;
90
+ ref?: any;
91
+ model_ver?: number | undefined;
92
+ created_at?: Date | null | undefined;
93
+ updated_at?: Date | null | undefined;
94
+ deleted_at?: Date | null | undefined;
95
+ status?: "active" | "paused" | "revoked" | undefined;
96
+ last_used_at?: Date | null | undefined;
97
+ }>;
98
+ export declare const zSyncWindowTypeSchema: z.ZodEnum<["hot", "warm", "recent_reconcile", "cold"]>;
99
+ export declare const zCoveredWindowSchema: z.ZodObject<{
100
+ start: z.ZodDate;
101
+ end: z.ZodDate;
102
+ }, "strip", z.ZodTypeAny, {
103
+ start: Date;
104
+ end: Date;
105
+ }, {
106
+ start: Date;
107
+ end: Date;
108
+ }>;
109
+ export declare const zSyncedHashesSchema: z.ZodObject<{
110
+ patients: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
111
+ appointments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ patients: Record<string, string>;
114
+ appointments: Record<string, string>;
115
+ }, {
116
+ patients?: Record<string, string> | undefined;
117
+ appointments?: Record<string, string> | undefined;
118
+ }>;
119
+ export declare const zSyncStateSchema: z.ZodObject<{
120
+ id: z.ZodString;
121
+ ref: z.ZodAny;
122
+ tenant: z.ZodString;
123
+ model_ver: z.ZodDefault<z.ZodNumber>;
124
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
125
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
126
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
127
+ } & {
128
+ calendar_id: z.ZodString;
129
+ last_sync_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
130
+ last_window_type: z.ZodOptional<z.ZodEnum<["hot", "warm", "recent_reconcile", "cold"]>>;
131
+ last_synced_hashes: z.ZodObject<{
132
+ patients: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
133
+ appointments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ patients: Record<string, string>;
136
+ appointments: Record<string, string>;
137
+ }, {
138
+ patients?: Record<string, string> | undefined;
139
+ appointments?: Record<string, string> | undefined;
140
+ }>;
141
+ last_coveredWindow: z.ZodOptional<z.ZodNullable<z.ZodObject<{
142
+ start: z.ZodDate;
143
+ end: z.ZodDate;
144
+ }, "strip", z.ZodTypeAny, {
145
+ start: Date;
146
+ end: Date;
147
+ }, {
148
+ start: Date;
149
+ end: Date;
150
+ }>>>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ id: string;
153
+ tenant: string;
154
+ model_ver: number;
155
+ calendar_id: string;
156
+ last_synced_hashes: {
157
+ patients: Record<string, string>;
158
+ appointments: Record<string, string>;
159
+ };
160
+ ref?: any;
161
+ created_at?: Date | null | undefined;
162
+ updated_at?: Date | null | undefined;
163
+ deleted_at?: Date | null | undefined;
164
+ last_sync_at?: Date | null | undefined;
165
+ last_window_type?: "hot" | "warm" | "recent_reconcile" | "cold" | undefined;
166
+ last_coveredWindow?: {
167
+ start: Date;
168
+ end: Date;
169
+ } | null | undefined;
170
+ }, {
171
+ id: string;
172
+ tenant: string;
173
+ calendar_id: string;
174
+ last_synced_hashes: {
175
+ patients?: Record<string, string> | undefined;
176
+ appointments?: Record<string, string> | undefined;
177
+ };
178
+ ref?: any;
179
+ model_ver?: number | undefined;
180
+ created_at?: Date | null | undefined;
181
+ updated_at?: Date | null | undefined;
182
+ deleted_at?: Date | null | undefined;
183
+ last_sync_at?: Date | null | undefined;
184
+ last_window_type?: "hot" | "warm" | "recent_reconcile" | "cold" | undefined;
185
+ last_coveredWindow?: {
186
+ start: Date;
187
+ end: Date;
188
+ } | null | undefined;
189
+ }>;
190
+ export declare const zSyncRunEventErrorSchema: z.ZodObject<{
191
+ code: z.ZodOptional<z.ZodString>;
192
+ message: z.ZodString;
193
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ message: string;
196
+ code?: string | undefined;
197
+ details?: Record<string, any> | undefined;
198
+ }, {
199
+ message: string;
200
+ code?: string | undefined;
201
+ details?: Record<string, any> | undefined;
202
+ }>;
203
+ export declare const zSyncRunEventSchema: z.ZodObject<{
204
+ run_id: z.ZodString;
205
+ tenant: z.ZodString;
206
+ calendar_id: z.ZodString;
207
+ adapter_id: z.ZodString;
208
+ window_type: z.ZodEnum<["hot", "warm", "recent_reconcile", "cold"]>;
209
+ started_at: z.ZodDate;
210
+ finished_at: z.ZodDate;
211
+ status: z.ZodEnum<["success", "partial", "error"]>;
212
+ patients_upserted: z.ZodDefault<z.ZodNumber>;
213
+ appointments_upserted: z.ZodDefault<z.ZodNumber>;
214
+ appointments_skipped: z.ZodDefault<z.ZodNumber>;
215
+ deletions_detected: z.ZodDefault<z.ZodNumber>;
216
+ coveredWindow_start: z.ZodOptional<z.ZodDate>;
217
+ coveredWindow_end: z.ZodOptional<z.ZodDate>;
218
+ duration_ms: z.ZodDefault<z.ZodNumber>;
219
+ firestore_reads: z.ZodDefault<z.ZodNumber>;
220
+ firestore_writes: z.ZodDefault<z.ZodNumber>;
221
+ n8n_calls: z.ZodDefault<z.ZodNumber>;
222
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
+ code: z.ZodOptional<z.ZodString>;
224
+ message: z.ZodString;
225
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ message: string;
228
+ code?: string | undefined;
229
+ details?: Record<string, any> | undefined;
230
+ }, {
231
+ message: string;
232
+ code?: string | undefined;
233
+ details?: Record<string, any> | undefined;
234
+ }>, "many">>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ tenant: string;
237
+ status: "success" | "error" | "partial";
238
+ started_at: Date;
239
+ adapter_id: string;
240
+ calendar_id: string;
241
+ finished_at: Date;
242
+ run_id: string;
243
+ window_type: "hot" | "warm" | "recent_reconcile" | "cold";
244
+ patients_upserted: number;
245
+ appointments_upserted: number;
246
+ appointments_skipped: number;
247
+ deletions_detected: number;
248
+ duration_ms: number;
249
+ firestore_reads: number;
250
+ firestore_writes: number;
251
+ n8n_calls: number;
252
+ coveredWindow_start?: Date | undefined;
253
+ coveredWindow_end?: Date | undefined;
254
+ errors?: {
255
+ message: string;
256
+ code?: string | undefined;
257
+ details?: Record<string, any> | undefined;
258
+ }[] | undefined;
259
+ }, {
260
+ tenant: string;
261
+ status: "success" | "error" | "partial";
262
+ started_at: Date;
263
+ adapter_id: string;
264
+ calendar_id: string;
265
+ finished_at: Date;
266
+ run_id: string;
267
+ window_type: "hot" | "warm" | "recent_reconcile" | "cold";
268
+ patients_upserted?: number | undefined;
269
+ appointments_upserted?: number | undefined;
270
+ appointments_skipped?: number | undefined;
271
+ deletions_detected?: number | undefined;
272
+ coveredWindow_start?: Date | undefined;
273
+ coveredWindow_end?: Date | undefined;
274
+ duration_ms?: number | undefined;
275
+ firestore_reads?: number | undefined;
276
+ firestore_writes?: number | undefined;
277
+ n8n_calls?: number | undefined;
278
+ errors?: {
279
+ message: string;
280
+ code?: string | undefined;
281
+ details?: Record<string, any> | undefined;
282
+ }[] | undefined;
283
+ }>;
284
+ export declare const zSyncWindowConfigSchema: z.ZodObject<{
285
+ enabled: z.ZodDefault<z.ZodBoolean>;
286
+ cadence_minutes: z.ZodNumber;
287
+ window_days: z.ZodObject<{
288
+ past: z.ZodNumber;
289
+ future: z.ZodNumber;
290
+ }, "strip", z.ZodTypeAny, {
291
+ past: number;
292
+ future: number;
293
+ }, {
294
+ past: number;
295
+ future: number;
296
+ }>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ enabled: boolean;
299
+ cadence_minutes: number;
300
+ window_days: {
301
+ past: number;
302
+ future: number;
303
+ };
304
+ }, {
305
+ cadence_minutes: number;
306
+ window_days: {
307
+ past: number;
308
+ future: number;
309
+ };
310
+ enabled?: boolean | undefined;
311
+ }>;
312
+ export declare const zSyncConfigSchema: z.ZodObject<{
313
+ hot: z.ZodOptional<z.ZodObject<{
314
+ enabled: z.ZodDefault<z.ZodBoolean>;
315
+ cadence_minutes: z.ZodNumber;
316
+ window_days: z.ZodObject<{
317
+ past: z.ZodNumber;
318
+ future: z.ZodNumber;
319
+ }, "strip", z.ZodTypeAny, {
320
+ past: number;
321
+ future: number;
322
+ }, {
323
+ past: number;
324
+ future: number;
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ enabled: boolean;
328
+ cadence_minutes: number;
329
+ window_days: {
330
+ past: number;
331
+ future: number;
332
+ };
333
+ }, {
334
+ cadence_minutes: number;
335
+ window_days: {
336
+ past: number;
337
+ future: number;
338
+ };
339
+ enabled?: boolean | undefined;
340
+ }>>;
341
+ warm: z.ZodOptional<z.ZodObject<{
342
+ enabled: z.ZodDefault<z.ZodBoolean>;
343
+ cadence_minutes: z.ZodNumber;
344
+ window_days: z.ZodObject<{
345
+ past: z.ZodNumber;
346
+ future: z.ZodNumber;
347
+ }, "strip", z.ZodTypeAny, {
348
+ past: number;
349
+ future: number;
350
+ }, {
351
+ past: number;
352
+ future: number;
353
+ }>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ enabled: boolean;
356
+ cadence_minutes: number;
357
+ window_days: {
358
+ past: number;
359
+ future: number;
360
+ };
361
+ }, {
362
+ cadence_minutes: number;
363
+ window_days: {
364
+ past: number;
365
+ future: number;
366
+ };
367
+ enabled?: boolean | undefined;
368
+ }>>;
369
+ recent_reconcile: z.ZodOptional<z.ZodObject<{
370
+ enabled: z.ZodDefault<z.ZodBoolean>;
371
+ cadence_minutes: z.ZodNumber;
372
+ window_days: z.ZodObject<{
373
+ past: z.ZodNumber;
374
+ future: z.ZodNumber;
375
+ }, "strip", z.ZodTypeAny, {
376
+ past: number;
377
+ future: number;
378
+ }, {
379
+ past: number;
380
+ future: number;
381
+ }>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ enabled: boolean;
384
+ cadence_minutes: number;
385
+ window_days: {
386
+ past: number;
387
+ future: number;
388
+ };
389
+ }, {
390
+ cadence_minutes: number;
391
+ window_days: {
392
+ past: number;
393
+ future: number;
394
+ };
395
+ enabled?: boolean | undefined;
396
+ }>>;
397
+ cold: z.ZodOptional<z.ZodObject<{
398
+ enabled: z.ZodDefault<z.ZodBoolean>;
399
+ cadence_minutes: z.ZodNumber;
400
+ window_days: z.ZodObject<{
401
+ past: z.ZodNumber;
402
+ future: z.ZodNumber;
403
+ }, "strip", z.ZodTypeAny, {
404
+ past: number;
405
+ future: number;
406
+ }, {
407
+ past: number;
408
+ future: number;
409
+ }>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ enabled: boolean;
412
+ cadence_minutes: number;
413
+ window_days: {
414
+ past: number;
415
+ future: number;
416
+ };
417
+ }, {
418
+ cadence_minutes: number;
419
+ window_days: {
420
+ past: number;
421
+ future: number;
422
+ };
423
+ enabled?: boolean | undefined;
424
+ }>>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ hot?: {
427
+ enabled: boolean;
428
+ cadence_minutes: number;
429
+ window_days: {
430
+ past: number;
431
+ future: number;
432
+ };
433
+ } | undefined;
434
+ warm?: {
435
+ enabled: boolean;
436
+ cadence_minutes: number;
437
+ window_days: {
438
+ past: number;
439
+ future: number;
440
+ };
441
+ } | undefined;
442
+ recent_reconcile?: {
443
+ enabled: boolean;
444
+ cadence_minutes: number;
445
+ window_days: {
446
+ past: number;
447
+ future: number;
448
+ };
449
+ } | undefined;
450
+ cold?: {
451
+ enabled: boolean;
452
+ cadence_minutes: number;
453
+ window_days: {
454
+ past: number;
455
+ future: number;
456
+ };
457
+ } | undefined;
458
+ }, {
459
+ hot?: {
460
+ cadence_minutes: number;
461
+ window_days: {
462
+ past: number;
463
+ future: number;
464
+ };
465
+ enabled?: boolean | undefined;
466
+ } | undefined;
467
+ warm?: {
468
+ cadence_minutes: number;
469
+ window_days: {
470
+ past: number;
471
+ future: number;
472
+ };
473
+ enabled?: boolean | undefined;
474
+ } | undefined;
475
+ recent_reconcile?: {
476
+ cadence_minutes: number;
477
+ window_days: {
478
+ past: number;
479
+ future: number;
480
+ };
481
+ enabled?: boolean | undefined;
482
+ } | undefined;
483
+ cold?: {
484
+ cadence_minutes: number;
485
+ window_days: {
486
+ past: number;
487
+ future: number;
488
+ };
489
+ enabled?: boolean | undefined;
490
+ } | undefined;
491
+ }>;
492
+ export declare const zMedCalendarIntegrationSchema: z.ZodObject<{
493
+ adapter_id: z.ZodString;
494
+ credentials_id: z.ZodString;
495
+ patient_prefix: z.ZodOptional<z.ZodString>;
496
+ sync_config: z.ZodObject<{
497
+ hot: z.ZodOptional<z.ZodObject<{
498
+ enabled: z.ZodDefault<z.ZodBoolean>;
499
+ cadence_minutes: z.ZodNumber;
500
+ window_days: z.ZodObject<{
501
+ past: z.ZodNumber;
502
+ future: z.ZodNumber;
503
+ }, "strip", z.ZodTypeAny, {
504
+ past: number;
505
+ future: number;
506
+ }, {
507
+ past: number;
508
+ future: number;
509
+ }>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ enabled: boolean;
512
+ cadence_minutes: number;
513
+ window_days: {
514
+ past: number;
515
+ future: number;
516
+ };
517
+ }, {
518
+ cadence_minutes: number;
519
+ window_days: {
520
+ past: number;
521
+ future: number;
522
+ };
523
+ enabled?: boolean | undefined;
524
+ }>>;
525
+ warm: z.ZodOptional<z.ZodObject<{
526
+ enabled: z.ZodDefault<z.ZodBoolean>;
527
+ cadence_minutes: z.ZodNumber;
528
+ window_days: z.ZodObject<{
529
+ past: z.ZodNumber;
530
+ future: z.ZodNumber;
531
+ }, "strip", z.ZodTypeAny, {
532
+ past: number;
533
+ future: number;
534
+ }, {
535
+ past: number;
536
+ future: number;
537
+ }>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ enabled: boolean;
540
+ cadence_minutes: number;
541
+ window_days: {
542
+ past: number;
543
+ future: number;
544
+ };
545
+ }, {
546
+ cadence_minutes: number;
547
+ window_days: {
548
+ past: number;
549
+ future: number;
550
+ };
551
+ enabled?: boolean | undefined;
552
+ }>>;
553
+ recent_reconcile: z.ZodOptional<z.ZodObject<{
554
+ enabled: z.ZodDefault<z.ZodBoolean>;
555
+ cadence_minutes: z.ZodNumber;
556
+ window_days: z.ZodObject<{
557
+ past: z.ZodNumber;
558
+ future: z.ZodNumber;
559
+ }, "strip", z.ZodTypeAny, {
560
+ past: number;
561
+ future: number;
562
+ }, {
563
+ past: number;
564
+ future: number;
565
+ }>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ enabled: boolean;
568
+ cadence_minutes: number;
569
+ window_days: {
570
+ past: number;
571
+ future: number;
572
+ };
573
+ }, {
574
+ cadence_minutes: number;
575
+ window_days: {
576
+ past: number;
577
+ future: number;
578
+ };
579
+ enabled?: boolean | undefined;
580
+ }>>;
581
+ cold: z.ZodOptional<z.ZodObject<{
582
+ enabled: z.ZodDefault<z.ZodBoolean>;
583
+ cadence_minutes: z.ZodNumber;
584
+ window_days: z.ZodObject<{
585
+ past: z.ZodNumber;
586
+ future: z.ZodNumber;
587
+ }, "strip", z.ZodTypeAny, {
588
+ past: number;
589
+ future: number;
590
+ }, {
591
+ past: number;
592
+ future: number;
593
+ }>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ enabled: boolean;
596
+ cadence_minutes: number;
597
+ window_days: {
598
+ past: number;
599
+ future: number;
600
+ };
601
+ }, {
602
+ cadence_minutes: number;
603
+ window_days: {
604
+ past: number;
605
+ future: number;
606
+ };
607
+ enabled?: boolean | undefined;
608
+ }>>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ hot?: {
611
+ enabled: boolean;
612
+ cadence_minutes: number;
613
+ window_days: {
614
+ past: number;
615
+ future: number;
616
+ };
617
+ } | undefined;
618
+ warm?: {
619
+ enabled: boolean;
620
+ cadence_minutes: number;
621
+ window_days: {
622
+ past: number;
623
+ future: number;
624
+ };
625
+ } | undefined;
626
+ recent_reconcile?: {
627
+ enabled: boolean;
628
+ cadence_minutes: number;
629
+ window_days: {
630
+ past: number;
631
+ future: number;
632
+ };
633
+ } | undefined;
634
+ cold?: {
635
+ enabled: boolean;
636
+ cadence_minutes: number;
637
+ window_days: {
638
+ past: number;
639
+ future: number;
640
+ };
641
+ } | undefined;
642
+ }, {
643
+ hot?: {
644
+ cadence_minutes: number;
645
+ window_days: {
646
+ past: number;
647
+ future: number;
648
+ };
649
+ enabled?: boolean | undefined;
650
+ } | undefined;
651
+ warm?: {
652
+ cadence_minutes: number;
653
+ window_days: {
654
+ past: number;
655
+ future: number;
656
+ };
657
+ enabled?: boolean | undefined;
658
+ } | undefined;
659
+ recent_reconcile?: {
660
+ cadence_minutes: number;
661
+ window_days: {
662
+ past: number;
663
+ future: number;
664
+ };
665
+ enabled?: boolean | undefined;
666
+ } | undefined;
667
+ cold?: {
668
+ cadence_minutes: number;
669
+ window_days: {
670
+ past: number;
671
+ future: number;
672
+ };
673
+ enabled?: boolean | undefined;
674
+ } | undefined;
675
+ }>;
676
+ workflow_overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.get", "appointment.list", "appointment.create", "appointment.update", "appointment.cancel", "appointment.confirm", "appointment.reschedule", "patient.get", "patient.list", "patient.create", "patient.update", "patient.document.upload", "payment.update", "sync.appointments"]>, z.ZodString>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ adapter_id: string;
679
+ credentials_id: string;
680
+ sync_config: {
681
+ hot?: {
682
+ enabled: boolean;
683
+ cadence_minutes: number;
684
+ window_days: {
685
+ past: number;
686
+ future: number;
687
+ };
688
+ } | undefined;
689
+ warm?: {
690
+ enabled: boolean;
691
+ cadence_minutes: number;
692
+ window_days: {
693
+ past: number;
694
+ future: number;
695
+ };
696
+ } | undefined;
697
+ recent_reconcile?: {
698
+ enabled: boolean;
699
+ cadence_minutes: number;
700
+ window_days: {
701
+ past: number;
702
+ future: number;
703
+ };
704
+ } | undefined;
705
+ cold?: {
706
+ enabled: boolean;
707
+ cadence_minutes: number;
708
+ window_days: {
709
+ past: number;
710
+ future: number;
711
+ };
712
+ } | undefined;
713
+ };
714
+ patient_prefix?: string | undefined;
715
+ workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
716
+ }, {
717
+ adapter_id: string;
718
+ credentials_id: string;
719
+ sync_config: {
720
+ hot?: {
721
+ cadence_minutes: number;
722
+ window_days: {
723
+ past: number;
724
+ future: number;
725
+ };
726
+ enabled?: boolean | undefined;
727
+ } | undefined;
728
+ warm?: {
729
+ cadence_minutes: number;
730
+ window_days: {
731
+ past: number;
732
+ future: number;
733
+ };
734
+ enabled?: boolean | undefined;
735
+ } | undefined;
736
+ recent_reconcile?: {
737
+ cadence_minutes: number;
738
+ window_days: {
739
+ past: number;
740
+ future: number;
741
+ };
742
+ enabled?: boolean | undefined;
743
+ } | undefined;
744
+ cold?: {
745
+ cadence_minutes: number;
746
+ window_days: {
747
+ past: number;
748
+ future: number;
749
+ };
750
+ enabled?: boolean | undefined;
751
+ } | undefined;
752
+ };
753
+ patient_prefix?: string | undefined;
754
+ workflow_overrides?: Partial<Record<"appointment.get" | "appointment.list" | "appointment.create" | "appointment.update" | "appointment.cancel" | "appointment.confirm" | "appointment.reschedule" | "patient.get" | "patient.list" | "patient.create" | "patient.update" | "patient.document.upload" | "payment.update" | "sync.appointments", string>> | undefined;
755
+ }>;