@murphai/contracts 0.1.14 → 0.1.17

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 (73) hide show
  1. package/LICENSE +201 -674
  2. package/dist/automation.d.ts +185 -0
  3. package/dist/automation.d.ts.map +1 -0
  4. package/dist/automation.js +110 -0
  5. package/dist/automation.js.map +1 -0
  6. package/dist/bank-entities.d.ts +6 -1
  7. package/dist/bank-entities.d.ts.map +1 -1
  8. package/dist/bank-entities.js +87 -10
  9. package/dist/bank-entities.js.map +1 -1
  10. package/dist/constants.d.ts +8 -1
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +8 -0
  13. package/dist/constants.js.map +1 -1
  14. package/dist/current-profile.d.ts +16 -0
  15. package/dist/current-profile.d.ts.map +1 -0
  16. package/dist/current-profile.js +163 -0
  17. package/dist/current-profile.js.map +1 -0
  18. package/dist/event-lifecycle.d.ts +28 -0
  19. package/dist/event-lifecycle.d.ts.map +1 -0
  20. package/dist/event-lifecycle.js +84 -0
  21. package/dist/event-lifecycle.js.map +1 -0
  22. package/dist/examples.d.ts.map +1 -1
  23. package/dist/examples.js +50 -96
  24. package/dist/examples.js.map +1 -1
  25. package/dist/health-entities.d.ts +44 -1
  26. package/dist/health-entities.d.ts.map +1 -1
  27. package/dist/health-entities.js +181 -11
  28. package/dist/health-entities.js.map +1 -1
  29. package/dist/index.d.ts +6 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +6 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/memory.d.ts +123 -0
  34. package/dist/memory.d.ts.map +1 -0
  35. package/dist/memory.js +295 -0
  36. package/dist/memory.js.map +1 -0
  37. package/dist/registry-helpers.d.ts.map +1 -1
  38. package/dist/registry-helpers.js +46 -5
  39. package/dist/registry-helpers.js.map +1 -1
  40. package/dist/relation-links.d.ts +67 -0
  41. package/dist/relation-links.d.ts.map +1 -0
  42. package/dist/relation-links.js +149 -0
  43. package/dist/relation-links.js.map +1 -0
  44. package/dist/scripts/verify.js +2 -0
  45. package/dist/scripts/verify.js.map +1 -1
  46. package/dist/shares.d.ts +222 -85
  47. package/dist/shares.d.ts.map +1 -1
  48. package/dist/shares.js +17 -5
  49. package/dist/shares.js.map +1 -1
  50. package/dist/vault.d.ts +32 -0
  51. package/dist/vault.d.ts.map +1 -0
  52. package/dist/vault.js +88 -0
  53. package/dist/vault.js.map +1 -0
  54. package/dist/zod.d.ts +468 -99
  55. package/dist/zod.d.ts.map +1 -1
  56. package/dist/zod.js +37 -74
  57. package/dist/zod.js.map +1 -1
  58. package/generated/assessment-response.schema.json +1 -1
  59. package/generated/audit-record.schema.json +2 -1
  60. package/generated/event-record.schema.json +4246 -500
  61. package/generated/frontmatter-allergy.schema.json +22 -0
  62. package/generated/frontmatter-condition.schema.json +44 -0
  63. package/generated/frontmatter-family-member.schema.json +22 -0
  64. package/generated/frontmatter-food.schema.json +22 -0
  65. package/generated/frontmatter-genetic-variant.schema.json +22 -0
  66. package/generated/frontmatter-goal.schema.json +62 -0
  67. package/generated/frontmatter-protocol.schema.json +70 -0
  68. package/generated/frontmatter-recipe.schema.json +44 -0
  69. package/generated/frontmatter-workout-format.schema.json +22 -102
  70. package/generated/inbox-capture-record.schema.json +0 -1
  71. package/generated/vault-metadata.schema.json +5 -291
  72. package/package.json +5 -11
  73. package/dist/tsconfig.build.tsbuildinfo +0 -1
package/dist/zod.d.ts CHANGED
@@ -99,6 +99,15 @@ export declare const storedMediaKindSchema: z.ZodEnum<{
99
99
  image: "image";
100
100
  other: "other";
101
101
  }>;
102
+ export declare const eventAttachmentKindSchema: z.ZodEnum<{
103
+ document: "document";
104
+ photo: "photo";
105
+ video: "video";
106
+ gif: "gif";
107
+ image: "image";
108
+ other: "other";
109
+ audio: "audio";
110
+ }>;
102
111
  export declare const bodyMeasurementTypeSchema: z.ZodEnum<{
103
112
  weight: "weight";
104
113
  body_fat_pct: "body_fat_pct";
@@ -144,6 +153,22 @@ export declare const storedMediaSchema: z.ZodObject<{
144
153
  mediaType: z.ZodOptional<z.ZodString>;
145
154
  caption: z.ZodOptional<z.ZodString>;
146
155
  }, z.core.$strict>;
156
+ export declare const eventAttachmentSchema: z.ZodObject<{
157
+ role: z.ZodString;
158
+ kind: z.ZodEnum<{
159
+ document: "document";
160
+ photo: "photo";
161
+ video: "video";
162
+ gif: "gif";
163
+ image: "image";
164
+ other: "other";
165
+ audio: "audio";
166
+ }>;
167
+ relativePath: z.ZodString;
168
+ mediaType: z.ZodString;
169
+ sha256: z.ZodString;
170
+ originalFileName: z.ZodString;
171
+ }, z.core.$strict>;
147
172
  export declare const workoutSetSchema: z.ZodObject<{
148
173
  order: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
149
174
  type: z.ZodOptional<z.ZodEnum<{
@@ -416,11 +441,11 @@ export declare const bloodTestResultSchema: z.ZodObject<{
416
441
  }>>;
417
442
  unit: z.ZodOptional<z.ZodString>;
418
443
  flag: z.ZodOptional<z.ZodEnum<{
444
+ unknown: "unknown";
419
445
  low: "low";
420
446
  high: "high";
421
447
  normal: "normal";
422
448
  abnormal: "abnormal";
423
- unknown: "unknown";
424
449
  critical: "critical";
425
450
  }>>;
426
451
  biomarkerSlug: z.ZodOptional<z.ZodString>;
@@ -432,74 +457,38 @@ export declare const bloodTestResultSchema: z.ZodObject<{
432
457
  note: z.ZodOptional<z.ZodString>;
433
458
  }, z.core.$strict>;
434
459
  export declare const vaultMetadataSchema: z.ZodObject<{
435
- schemaVersion: z.ZodLiteral<"murph.vault.v1">;
460
+ formatVersion: z.ZodLiteral<1>;
436
461
  vaultId: z.ZodString;
437
462
  createdAt: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
438
463
  title: z.ZodString;
439
464
  timezone: z.ZodString;
440
- idPolicy: z.ZodObject<{
441
- format: z.ZodLiteral<"prefix_ulid">;
442
- prefixes: z.ZodObject<{
443
- allergy: z.ZodLiteral<"alg">;
444
- assessment: z.ZodLiteral<"asmt">;
445
- audit: z.ZodLiteral<"aud">;
446
- condition: z.ZodLiteral<"cond">;
447
- document: z.ZodLiteral<"doc">;
448
- event: z.ZodLiteral<"evt">;
449
- experiment: z.ZodLiteral<"exp">;
450
- family: z.ZodLiteral<"fam">;
451
- food: z.ZodLiteral<"food">;
452
- goal: z.ZodLiteral<"goal">;
453
- meal: z.ZodLiteral<"meal">;
454
- pack: z.ZodLiteral<"pack">;
455
- profileSnapshot: z.ZodLiteral<"psnap">;
456
- provider: z.ZodLiteral<"prov">;
457
- recipe: z.ZodLiteral<"rcp">;
458
- protocol: z.ZodLiteral<"prot">;
459
- sample: z.ZodLiteral<"smp">;
460
- transform: z.ZodLiteral<"xfm">;
461
- variant: z.ZodLiteral<"var">;
462
- vault: z.ZodLiteral<"vault">;
463
- workoutFormat: z.ZodLiteral<"wfmt">;
464
- }, z.core.$strict>;
465
- }, z.core.$strict>;
466
- paths: z.ZodObject<{
467
- allergiesRoot: z.ZodLiteral<"bank/allergies">;
468
- assessmentLedgerRoot: z.ZodLiteral<"ledger/assessments">;
469
- conditionsRoot: z.ZodLiteral<"bank/conditions">;
470
- coreDocument: z.ZodLiteral<"CORE.md">;
471
- familyRoot: z.ZodLiteral<"bank/family">;
472
- foodsRoot: z.ZodLiteral<"bank/foods">;
473
- geneticsRoot: z.ZodLiteral<"bank/genetics">;
474
- goalsRoot: z.ZodLiteral<"bank/goals">;
475
- journalRoot: z.ZodLiteral<"journal">;
476
- experimentsRoot: z.ZodLiteral<"bank/experiments">;
477
- profileCurrentDocument: z.ZodLiteral<"bank/profile/current.md">;
478
- profileRoot: z.ZodLiteral<"bank/profile">;
479
- profileSnapshotsRoot: z.ZodLiteral<"ledger/profile-snapshots">;
480
- providersRoot: z.ZodLiteral<"bank/providers">;
481
- recipesRoot: z.ZodLiteral<"bank/recipes">;
482
- workoutFormatsRoot: z.ZodLiteral<"bank/workout-formats">;
483
- rawAssessmentsRoot: z.ZodLiteral<"raw/assessments">;
484
- rawRoot: z.ZodLiteral<"raw">;
485
- eventsRoot: z.ZodLiteral<"ledger/events">;
486
- protocolsRoot: z.ZodLiteral<"bank/protocols">;
487
- samplesRoot: z.ZodLiteral<"ledger/samples">;
488
- auditRoot: z.ZodLiteral<"audit">;
489
- exportsRoot: z.ZodLiteral<"exports">;
490
- }, z.core.$strict>;
491
- shards: z.ZodObject<{
492
- assessments: z.ZodLiteral<"ledger/assessments/YYYY/YYYY-MM.jsonl">;
493
- events: z.ZodLiteral<"ledger/events/YYYY/YYYY-MM.jsonl">;
494
- profileSnapshots: z.ZodLiteral<"ledger/profile-snapshots/YYYY/YYYY-MM.jsonl">;
495
- samples: z.ZodLiteral<"ledger/samples/<stream>/YYYY/YYYY-MM.jsonl">;
496
- audit: z.ZodLiteral<"audit/YYYY/YYYY-MM.jsonl">;
497
- }, z.core.$strict>;
498
465
  }, z.core.$strict>;
499
466
  export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
500
467
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
468
+ links: z.ZodOptional<z.ZodType<{
469
+ type: string;
470
+ targetId: string;
471
+ }[], unknown, z.core.$ZodTypeInternals<{
472
+ type: string;
473
+ targetId: string;
474
+ }[], unknown>>>;
501
475
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
502
476
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
477
+ attachments: z.ZodOptional<z.ZodType<{
478
+ role: string;
479
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
480
+ relativePath: string;
481
+ mediaType: string;
482
+ sha256: string;
483
+ originalFileName: string;
484
+ }[], unknown, z.core.$ZodTypeInternals<{
485
+ role: string;
486
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
487
+ relativePath: string;
488
+ mediaType: string;
489
+ sha256: string;
490
+ originalFileName: string;
491
+ }[], unknown>>>;
503
492
  externalRef: z.ZodOptional<z.ZodObject<{
504
493
  system: z.ZodString;
505
494
  resourceType: z.ZodString;
@@ -534,8 +523,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
534
523
  providerId: z.ZodOptional<z.ZodString>;
535
524
  }, z.core.$strict>, z.ZodObject<{
536
525
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
526
+ links: z.ZodOptional<z.ZodType<{
527
+ type: string;
528
+ targetId: string;
529
+ }[], unknown, z.core.$ZodTypeInternals<{
530
+ type: string;
531
+ targetId: string;
532
+ }[], unknown>>>;
537
533
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
538
534
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
535
+ attachments: z.ZodOptional<z.ZodType<{
536
+ role: string;
537
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
538
+ relativePath: string;
539
+ mediaType: string;
540
+ sha256: string;
541
+ originalFileName: string;
542
+ }[], unknown, z.core.$ZodTypeInternals<{
543
+ role: string;
544
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
545
+ relativePath: string;
546
+ mediaType: string;
547
+ sha256: string;
548
+ originalFileName: string;
549
+ }[], unknown>>>;
539
550
  externalRef: z.ZodOptional<z.ZodObject<{
540
551
  system: z.ZodString;
541
552
  resourceType: z.ZodString;
@@ -569,8 +580,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
569
580
  providerId: z.ZodOptional<z.ZodString>;
570
581
  }, z.core.$strict>, z.ZodObject<{
571
582
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
583
+ links: z.ZodOptional<z.ZodType<{
584
+ type: string;
585
+ targetId: string;
586
+ }[], unknown, z.core.$ZodTypeInternals<{
587
+ type: string;
588
+ targetId: string;
589
+ }[], unknown>>>;
572
590
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
573
591
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
592
+ attachments: z.ZodOptional<z.ZodType<{
593
+ role: string;
594
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
595
+ relativePath: string;
596
+ mediaType: string;
597
+ sha256: string;
598
+ originalFileName: string;
599
+ }[], unknown, z.core.$ZodTypeInternals<{
600
+ role: string;
601
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
602
+ relativePath: string;
603
+ mediaType: string;
604
+ sha256: string;
605
+ originalFileName: string;
606
+ }[], unknown>>>;
574
607
  externalRef: z.ZodOptional<z.ZodObject<{
575
608
  system: z.ZodString;
576
609
  resourceType: z.ZodString;
@@ -605,8 +638,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
605
638
  ingredients: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
606
639
  }, z.core.$strict>, z.ZodObject<{
607
640
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
641
+ links: z.ZodOptional<z.ZodType<{
642
+ type: string;
643
+ targetId: string;
644
+ }[], unknown, z.core.$ZodTypeInternals<{
645
+ type: string;
646
+ targetId: string;
647
+ }[], unknown>>>;
608
648
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
609
649
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
650
+ attachments: z.ZodOptional<z.ZodType<{
651
+ role: string;
652
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
653
+ relativePath: string;
654
+ mediaType: string;
655
+ sha256: string;
656
+ originalFileName: string;
657
+ }[], unknown, z.core.$ZodTypeInternals<{
658
+ role: string;
659
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
660
+ relativePath: string;
661
+ mediaType: string;
662
+ sha256: string;
663
+ originalFileName: string;
664
+ }[], unknown>>>;
610
665
  externalRef: z.ZodOptional<z.ZodObject<{
611
666
  system: z.ZodString;
612
667
  resourceType: z.ZodString;
@@ -641,8 +696,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
641
696
  }, z.core.$strict>, z.ZodObject<{
642
697
  note: z.ZodString;
643
698
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
699
+ links: z.ZodOptional<z.ZodType<{
700
+ type: string;
701
+ targetId: string;
702
+ }[], unknown, z.core.$ZodTypeInternals<{
703
+ type: string;
704
+ targetId: string;
705
+ }[], unknown>>>;
644
706
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
645
707
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
708
+ attachments: z.ZodOptional<z.ZodType<{
709
+ role: string;
710
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
711
+ relativePath: string;
712
+ mediaType: string;
713
+ sha256: string;
714
+ originalFileName: string;
715
+ }[], unknown, z.core.$ZodTypeInternals<{
716
+ role: string;
717
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
718
+ relativePath: string;
719
+ mediaType: string;
720
+ sha256: string;
721
+ originalFileName: string;
722
+ }[], unknown>>>;
646
723
  externalRef: z.ZodOptional<z.ZodObject<{
647
724
  system: z.ZodString;
648
725
  resourceType: z.ZodString;
@@ -672,8 +749,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
672
749
  title: z.ZodString;
673
750
  }, z.core.$strict>, z.ZodObject<{
674
751
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
752
+ links: z.ZodOptional<z.ZodType<{
753
+ type: string;
754
+ targetId: string;
755
+ }[], unknown, z.core.$ZodTypeInternals<{
756
+ type: string;
757
+ targetId: string;
758
+ }[], unknown>>>;
675
759
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
676
760
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
761
+ attachments: z.ZodOptional<z.ZodType<{
762
+ role: string;
763
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
764
+ relativePath: string;
765
+ mediaType: string;
766
+ sha256: string;
767
+ originalFileName: string;
768
+ }[], unknown, z.core.$ZodTypeInternals<{
769
+ role: string;
770
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
771
+ relativePath: string;
772
+ mediaType: string;
773
+ sha256: string;
774
+ originalFileName: string;
775
+ }[], unknown>>>;
677
776
  externalRef: z.ZodOptional<z.ZodObject<{
678
777
  system: z.ZodString;
679
778
  resourceType: z.ZodString;
@@ -707,8 +806,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
707
806
  unit: z.ZodString;
708
807
  }, z.core.$strict>, z.ZodObject<{
709
808
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
809
+ links: z.ZodOptional<z.ZodType<{
810
+ type: string;
811
+ targetId: string;
812
+ }[], unknown, z.core.$ZodTypeInternals<{
813
+ type: string;
814
+ targetId: string;
815
+ }[], unknown>>>;
710
816
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
711
817
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
818
+ attachments: z.ZodOptional<z.ZodType<{
819
+ role: string;
820
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
821
+ relativePath: string;
822
+ mediaType: string;
823
+ sha256: string;
824
+ originalFileName: string;
825
+ }[], unknown, z.core.$ZodTypeInternals<{
826
+ role: string;
827
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
828
+ relativePath: string;
829
+ mediaType: string;
830
+ sha256: string;
831
+ originalFileName: string;
832
+ }[], unknown>>>;
712
833
  externalRef: z.ZodOptional<z.ZodObject<{
713
834
  system: z.ZodString;
714
835
  resourceType: z.ZodString;
@@ -746,8 +867,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
746
867
  }>;
747
868
  }, z.core.$strict>, z.ZodObject<{
748
869
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
870
+ links: z.ZodOptional<z.ZodType<{
871
+ type: string;
872
+ targetId: string;
873
+ }[], unknown, z.core.$ZodTypeInternals<{
874
+ type: string;
875
+ targetId: string;
876
+ }[], unknown>>>;
749
877
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
750
878
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
879
+ attachments: z.ZodOptional<z.ZodType<{
880
+ role: string;
881
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
882
+ relativePath: string;
883
+ mediaType: string;
884
+ sha256: string;
885
+ originalFileName: string;
886
+ }[], unknown, z.core.$ZodTypeInternals<{
887
+ role: string;
888
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
889
+ relativePath: string;
890
+ mediaType: string;
891
+ sha256: string;
892
+ originalFileName: string;
893
+ }[], unknown>>>;
751
894
  externalRef: z.ZodOptional<z.ZodObject<{
752
895
  system: z.ZodString;
753
896
  resourceType: z.ZodString;
@@ -781,8 +924,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
781
924
  unit: z.ZodString;
782
925
  }, z.core.$strict>, z.ZodObject<{
783
926
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
927
+ links: z.ZodOptional<z.ZodType<{
928
+ type: string;
929
+ targetId: string;
930
+ }[], unknown, z.core.$ZodTypeInternals<{
931
+ type: string;
932
+ targetId: string;
933
+ }[], unknown>>>;
784
934
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
785
935
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
936
+ attachments: z.ZodOptional<z.ZodType<{
937
+ role: string;
938
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
939
+ relativePath: string;
940
+ mediaType: string;
941
+ sha256: string;
942
+ originalFileName: string;
943
+ }[], unknown, z.core.$ZodTypeInternals<{
944
+ role: string;
945
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
946
+ relativePath: string;
947
+ mediaType: string;
948
+ sha256: string;
949
+ originalFileName: string;
950
+ }[], unknown>>>;
786
951
  externalRef: z.ZodOptional<z.ZodObject<{
787
952
  system: z.ZodString;
788
953
  resourceType: z.ZodString;
@@ -815,8 +980,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
815
980
  status: z.ZodString;
816
981
  }, z.core.$strict>, z.ZodObject<{
817
982
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
983
+ links: z.ZodOptional<z.ZodType<{
984
+ type: string;
985
+ targetId: string;
986
+ }[], unknown, z.core.$ZodTypeInternals<{
987
+ type: string;
988
+ targetId: string;
989
+ }[], unknown>>>;
818
990
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
819
991
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
992
+ attachments: z.ZodOptional<z.ZodType<{
993
+ role: string;
994
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
995
+ relativePath: string;
996
+ mediaType: string;
997
+ sha256: string;
998
+ originalFileName: string;
999
+ }[], unknown, z.core.$ZodTypeInternals<{
1000
+ role: string;
1001
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1002
+ relativePath: string;
1003
+ mediaType: string;
1004
+ sha256: string;
1005
+ originalFileName: string;
1006
+ }[], unknown>>>;
820
1007
  externalRef: z.ZodOptional<z.ZodObject<{
821
1008
  system: z.ZodString;
822
1009
  resourceType: z.ZodString;
@@ -850,8 +1037,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
850
1037
  unit: z.ZodString;
851
1038
  }, z.core.$strict>, z.ZodObject<{
852
1039
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1040
+ links: z.ZodOptional<z.ZodType<{
1041
+ type: string;
1042
+ targetId: string;
1043
+ }[], unknown, z.core.$ZodTypeInternals<{
1044
+ type: string;
1045
+ targetId: string;
1046
+ }[], unknown>>>;
853
1047
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
854
1048
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1049
+ attachments: z.ZodOptional<z.ZodType<{
1050
+ role: string;
1051
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1052
+ relativePath: string;
1053
+ mediaType: string;
1054
+ sha256: string;
1055
+ originalFileName: string;
1056
+ }[], unknown, z.core.$ZodTypeInternals<{
1057
+ role: string;
1058
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1059
+ relativePath: string;
1060
+ mediaType: string;
1061
+ sha256: string;
1062
+ originalFileName: string;
1063
+ }[], unknown>>>;
855
1064
  externalRef: z.ZodOptional<z.ZodObject<{
856
1065
  system: z.ZodString;
857
1066
  resourceType: z.ZodString;
@@ -882,11 +1091,11 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
882
1091
  title: z.ZodString;
883
1092
  testName: z.ZodString;
884
1093
  resultStatus: z.ZodEnum<{
1094
+ unknown: "unknown";
885
1095
  pending: "pending";
886
1096
  normal: "normal";
887
1097
  abnormal: "abnormal";
888
1098
  mixed: "mixed";
889
- unknown: "unknown";
890
1099
  }>;
891
1100
  summary: z.ZodOptional<z.ZodString>;
892
1101
  testCategory: z.ZodOptional<z.ZodString>;
@@ -913,11 +1122,11 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
913
1122
  }>>;
914
1123
  unit: z.ZodOptional<z.ZodString>;
915
1124
  flag: z.ZodOptional<z.ZodEnum<{
1125
+ unknown: "unknown";
916
1126
  low: "low";
917
1127
  high: "high";
918
1128
  normal: "normal";
919
1129
  abnormal: "abnormal";
920
- unknown: "unknown";
921
1130
  critical: "critical";
922
1131
  }>>;
923
1132
  biomarkerSlug: z.ZodOptional<z.ZodString>;
@@ -930,8 +1139,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
930
1139
  }, z.core.$strict>>>;
931
1140
  }, z.core.$strict>, z.ZodObject<{
932
1141
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1142
+ links: z.ZodOptional<z.ZodType<{
1143
+ type: string;
1144
+ targetId: string;
1145
+ }[], unknown, z.core.$ZodTypeInternals<{
1146
+ type: string;
1147
+ targetId: string;
1148
+ }[], unknown>>>;
933
1149
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
934
1150
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1151
+ attachments: z.ZodOptional<z.ZodType<{
1152
+ role: string;
1153
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1154
+ relativePath: string;
1155
+ mediaType: string;
1156
+ sha256: string;
1157
+ originalFileName: string;
1158
+ }[], unknown, z.core.$ZodTypeInternals<{
1159
+ role: string;
1160
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1161
+ relativePath: string;
1162
+ mediaType: string;
1163
+ sha256: string;
1164
+ originalFileName: string;
1165
+ }[], unknown>>>;
935
1166
  externalRef: z.ZodOptional<z.ZodObject<{
936
1167
  system: z.ZodString;
937
1168
  resourceType: z.ZodString;
@@ -963,23 +1194,7 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
963
1194
  activityType: z.ZodString;
964
1195
  durationMinutes: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
965
1196
  distanceKm: z.ZodOptional<z.ZodNumber>;
966
- strengthExercises: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
967
- exercise: z.ZodString;
968
- setCount: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
969
- repsPerSet: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
970
- loadDescription: z.ZodOptional<z.ZodString>;
971
- }, z.core.$strict>, z.ZodObject<{
972
- load: z.ZodNumber;
973
- loadUnit: z.ZodEnum<{
974
- lb: "lb";
975
- kg: "kg";
976
- }>;
977
- exercise: z.ZodString;
978
- setCount: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
979
- repsPerSet: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
980
- loadDescription: z.ZodOptional<z.ZodString>;
981
- }, z.core.$strict>]>>>;
982
- workout: z.ZodOptional<z.ZodObject<{
1197
+ workout: z.ZodObject<{
983
1198
  sourceApp: z.ZodOptional<z.ZodString>;
984
1199
  sourceWorkoutId: z.ZodOptional<z.ZodString>;
985
1200
  startedAt: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
@@ -1039,11 +1254,33 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1039
1254
  addedWeightKg: z.ZodOptional<z.ZodNumber>;
1040
1255
  }, z.core.$strict>>;
1041
1256
  }, z.core.$strict>>;
1042
- }, z.core.$strict>>;
1257
+ }, z.core.$strict>;
1043
1258
  }, z.core.$strict>, z.ZodObject<{
1044
1259
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1260
+ links: z.ZodOptional<z.ZodType<{
1261
+ type: string;
1262
+ targetId: string;
1263
+ }[], unknown, z.core.$ZodTypeInternals<{
1264
+ type: string;
1265
+ targetId: string;
1266
+ }[], unknown>>>;
1045
1267
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1046
1268
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1269
+ attachments: z.ZodOptional<z.ZodType<{
1270
+ role: string;
1271
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1272
+ relativePath: string;
1273
+ mediaType: string;
1274
+ sha256: string;
1275
+ originalFileName: string;
1276
+ }[], unknown, z.core.$ZodTypeInternals<{
1277
+ role: string;
1278
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1279
+ relativePath: string;
1280
+ mediaType: string;
1281
+ sha256: string;
1282
+ originalFileName: string;
1283
+ }[], unknown>>>;
1047
1284
  externalRef: z.ZodOptional<z.ZodObject<{
1048
1285
  system: z.ZodString;
1049
1286
  resourceType: z.ZodString;
@@ -1111,8 +1348,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
1348
  }, z.core.$strict>>>;
1112
1349
  }, z.core.$strict>, z.ZodObject<{
1113
1350
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1351
+ links: z.ZodOptional<z.ZodType<{
1352
+ type: string;
1353
+ targetId: string;
1354
+ }[], unknown, z.core.$ZodTypeInternals<{
1355
+ type: string;
1356
+ targetId: string;
1357
+ }[], unknown>>>;
1114
1358
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1115
1359
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1360
+ attachments: z.ZodOptional<z.ZodType<{
1361
+ role: string;
1362
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1363
+ relativePath: string;
1364
+ mediaType: string;
1365
+ sha256: string;
1366
+ originalFileName: string;
1367
+ }[], unknown, z.core.$ZodTypeInternals<{
1368
+ role: string;
1369
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1370
+ relativePath: string;
1371
+ mediaType: string;
1372
+ sha256: string;
1373
+ originalFileName: string;
1374
+ }[], unknown>>>;
1116
1375
  externalRef: z.ZodOptional<z.ZodObject<{
1117
1376
  system: z.ZodString;
1118
1377
  resourceType: z.ZodString;
@@ -1146,8 +1405,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1146
1405
  durationMinutes: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1147
1406
  }, z.core.$strict>, z.ZodObject<{
1148
1407
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1408
+ links: z.ZodOptional<z.ZodType<{
1409
+ type: string;
1410
+ targetId: string;
1411
+ }[], unknown, z.core.$ZodTypeInternals<{
1412
+ type: string;
1413
+ targetId: string;
1414
+ }[], unknown>>>;
1149
1415
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1150
1416
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1417
+ attachments: z.ZodOptional<z.ZodType<{
1418
+ role: string;
1419
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1420
+ relativePath: string;
1421
+ mediaType: string;
1422
+ sha256: string;
1423
+ originalFileName: string;
1424
+ }[], unknown, z.core.$ZodTypeInternals<{
1425
+ role: string;
1426
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1427
+ relativePath: string;
1428
+ mediaType: string;
1429
+ sha256: string;
1430
+ originalFileName: string;
1431
+ }[], unknown>>>;
1151
1432
  externalRef: z.ZodOptional<z.ZodObject<{
1152
1433
  system: z.ZodString;
1153
1434
  resourceType: z.ZodString;
@@ -1181,8 +1462,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1181
1462
  protocolId: z.ZodOptional<z.ZodString>;
1182
1463
  }, z.core.$strict>, z.ZodObject<{
1183
1464
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1465
+ links: z.ZodOptional<z.ZodType<{
1466
+ type: string;
1467
+ targetId: string;
1468
+ }[], unknown, z.core.$ZodTypeInternals<{
1469
+ type: string;
1470
+ targetId: string;
1471
+ }[], unknown>>>;
1184
1472
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1185
1473
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1474
+ attachments: z.ZodOptional<z.ZodType<{
1475
+ role: string;
1476
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1477
+ relativePath: string;
1478
+ mediaType: string;
1479
+ sha256: string;
1480
+ originalFileName: string;
1481
+ }[], unknown, z.core.$ZodTypeInternals<{
1482
+ role: string;
1483
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1484
+ relativePath: string;
1485
+ mediaType: string;
1486
+ sha256: string;
1487
+ originalFileName: string;
1488
+ }[], unknown>>>;
1186
1489
  externalRef: z.ZodOptional<z.ZodObject<{
1187
1490
  system: z.ZodString;
1188
1491
  resourceType: z.ZodString;
@@ -1220,8 +1523,30 @@ export declare const eventRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1220
1523
  }>;
1221
1524
  }, z.core.$strict>, z.ZodObject<{
1222
1525
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1526
+ links: z.ZodOptional<z.ZodType<{
1527
+ type: string;
1528
+ targetId: string;
1529
+ }[], unknown, z.core.$ZodTypeInternals<{
1530
+ type: string;
1531
+ targetId: string;
1532
+ }[], unknown>>>;
1223
1533
  relatedIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1224
1534
  rawRefs: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1535
+ attachments: z.ZodOptional<z.ZodType<{
1536
+ role: string;
1537
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1538
+ relativePath: string;
1539
+ mediaType: string;
1540
+ sha256: string;
1541
+ originalFileName: string;
1542
+ }[], unknown, z.core.$ZodTypeInternals<{
1543
+ role: string;
1544
+ kind: "document" | "photo" | "video" | "gif" | "image" | "other" | "audio";
1545
+ relativePath: string;
1546
+ mediaType: string;
1547
+ sha256: string;
1548
+ originalFileName: string;
1549
+ }[], unknown>>>;
1225
1550
  externalRef: z.ZodOptional<z.ZodObject<{
1226
1551
  system: z.ZodString;
1227
1552
  resourceType: z.ZodString;
@@ -1465,6 +1790,7 @@ export declare const auditRecordSchema: z.ZodObject<{
1465
1790
  intake_import: "intake_import";
1466
1791
  intake_project: "intake_project";
1467
1792
  vault_init: "vault_init";
1793
+ vault_upgrade: "vault_upgrade";
1468
1794
  vault_repair: "vault_repair";
1469
1795
  document_import: "document_import";
1470
1796
  device_import: "device_import";
@@ -1546,7 +1872,7 @@ export declare const inboxCaptureRecordSchema: z.ZodObject<{
1546
1872
  captureId: z.ZodString;
1547
1873
  identityKey: z.ZodString;
1548
1874
  eventId: z.ZodString;
1549
- auditId: z.ZodString;
1875
+ auditId: z.ZodOptional<z.ZodString>;
1550
1876
  source: z.ZodString;
1551
1877
  accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1552
1878
  externalId: z.ZodString;
@@ -1657,6 +1983,13 @@ export declare const foodFrontmatterSchema: z.ZodObject<{
1657
1983
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1658
1984
  note: z.ZodOptional<z.ZodString>;
1659
1985
  attachedProtocolIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1986
+ links: z.ZodOptional<z.ZodType<{
1987
+ type: string;
1988
+ targetId: string;
1989
+ }[], unknown, z.core.$ZodTypeInternals<{
1990
+ type: string;
1991
+ targetId: string;
1992
+ }[], unknown>>>;
1660
1993
  autoLogDaily: z.ZodOptional<z.ZodObject<{
1661
1994
  time: z.ZodString;
1662
1995
  }, z.core.$strict>>;
@@ -1685,6 +2018,13 @@ export declare const recipeFrontmatterSchema: z.ZodObject<{
1685
2018
  steps: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1686
2019
  relatedGoalIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1687
2020
  relatedConditionIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2021
+ links: z.ZodOptional<z.ZodType<{
2022
+ type: string;
2023
+ targetId: string;
2024
+ }[], unknown, z.core.$ZodTypeInternals<{
2025
+ type: string;
2026
+ targetId: string;
2027
+ }[], unknown>>>;
1688
2028
  }, z.core.$strict>;
1689
2029
  export declare const workoutFormatFrontmatterSchema: z.ZodObject<{
1690
2030
  schemaVersion: z.ZodLiteral<"murph.frontmatter.workout-format.v1">;
@@ -1700,23 +2040,7 @@ export declare const workoutFormatFrontmatterSchema: z.ZodObject<{
1700
2040
  activityType: z.ZodString;
1701
2041
  durationMinutes: z.ZodOptional<z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
1702
2042
  distanceKm: z.ZodOptional<z.ZodNumber>;
1703
- strengthExercises: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1704
- exercise: z.ZodString;
1705
- setCount: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1706
- repsPerSet: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1707
- loadDescription: z.ZodOptional<z.ZodString>;
1708
- }, z.core.$strict>, z.ZodObject<{
1709
- load: z.ZodNumber;
1710
- loadUnit: z.ZodEnum<{
1711
- lb: "lb";
1712
- kg: "kg";
1713
- }>;
1714
- exercise: z.ZodString;
1715
- setCount: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1716
- repsPerSet: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1717
- loadDescription: z.ZodOptional<z.ZodString>;
1718
- }, z.core.$strict>]>>>;
1719
- template: z.ZodOptional<z.ZodObject<{
2043
+ template: z.ZodObject<{
1720
2044
  routineNote: z.ZodOptional<z.ZodString>;
1721
2045
  exercises: z.ZodArray<z.ZodObject<{
1722
2046
  name: z.ZodString;
@@ -1754,7 +2078,7 @@ export declare const workoutFormatFrontmatterSchema: z.ZodObject<{
1754
2078
  targetRpe: z.ZodOptional<z.ZodNumber>;
1755
2079
  }, z.core.$strict>>;
1756
2080
  }, z.core.$strict>>;
1757
- }, z.core.$strict>>;
2081
+ }, z.core.$strict>;
1758
2082
  tags: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1759
2083
  note: z.ZodOptional<z.ZodString>;
1760
2084
  templateText: z.ZodOptional<z.ZodString>;
@@ -1931,6 +2255,13 @@ export declare const goalFrontmatterSchema: z.ZodObject<{
1931
2255
  parentGoalId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
1932
2256
  relatedGoalIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1933
2257
  relatedExperimentIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2258
+ links: z.ZodOptional<z.ZodType<{
2259
+ type: string;
2260
+ targetId: string;
2261
+ }[], unknown, z.core.$ZodTypeInternals<{
2262
+ type: string;
2263
+ targetId: string;
2264
+ }[], unknown>>>;
1934
2265
  domains: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1935
2266
  }, z.core.$strict>;
1936
2267
  export declare const conditionFrontmatterSchema: z.ZodObject<{
@@ -1960,6 +2291,13 @@ export declare const conditionFrontmatterSchema: z.ZodObject<{
1960
2291
  bodySites: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1961
2292
  relatedGoalIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
1962
2293
  relatedProtocolIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2294
+ links: z.ZodOptional<z.ZodType<{
2295
+ type: string;
2296
+ targetId: string;
2297
+ }[], unknown, z.core.$ZodTypeInternals<{
2298
+ type: string;
2299
+ targetId: string;
2300
+ }[], unknown>>>;
1963
2301
  note: z.ZodOptional<z.ZodString>;
1964
2302
  }, z.core.$strict>;
1965
2303
  export declare const allergyFrontmatterSchema: z.ZodObject<{
@@ -1982,6 +2320,13 @@ export declare const allergyFrontmatterSchema: z.ZodObject<{
1982
2320
  reaction: z.ZodOptional<z.ZodString>;
1983
2321
  recordedOn: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
1984
2322
  relatedConditionIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2323
+ links: z.ZodOptional<z.ZodType<{
2324
+ type: string;
2325
+ targetId: string;
2326
+ }[], unknown, z.core.$ZodTypeInternals<{
2327
+ type: string;
2328
+ targetId: string;
2329
+ }[], unknown>>>;
1985
2330
  note: z.ZodOptional<z.ZodString>;
1986
2331
  }, z.core.$strict>;
1987
2332
  export declare const protocolFrontmatterSchema: z.ZodObject<{
@@ -2021,6 +2366,14 @@ export declare const protocolFrontmatterSchema: z.ZodObject<{
2021
2366
  }, z.core.$strict>>>;
2022
2367
  relatedGoalIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2023
2368
  relatedConditionIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2369
+ relatedProtocolIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2370
+ links: z.ZodOptional<z.ZodType<{
2371
+ type: string;
2372
+ targetId: string;
2373
+ }[], unknown, z.core.$ZodTypeInternals<{
2374
+ type: string;
2375
+ targetId: string;
2376
+ }[], unknown>>>;
2024
2377
  }, z.core.$strict>;
2025
2378
  export declare const familyMemberFrontmatterSchema: z.ZodObject<{
2026
2379
  schemaVersion: z.ZodLiteral<"murph.frontmatter.family-member.v1">;
@@ -2033,6 +2386,13 @@ export declare const familyMemberFrontmatterSchema: z.ZodObject<{
2033
2386
  deceased: z.ZodOptional<z.ZodBoolean>;
2034
2387
  note: z.ZodOptional<z.ZodString>;
2035
2388
  relatedVariantIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2389
+ links: z.ZodOptional<z.ZodType<{
2390
+ type: string;
2391
+ targetId: string;
2392
+ }[], unknown, z.core.$ZodTypeInternals<{
2393
+ type: string;
2394
+ targetId: string;
2395
+ }[], unknown>>>;
2036
2396
  }, z.core.$strict>;
2037
2397
  export declare const geneticVariantFrontmatterSchema: z.ZodObject<{
2038
2398
  schemaVersion: z.ZodLiteral<"murph.frontmatter.genetic-variant.v1">;
@@ -2057,6 +2417,13 @@ export declare const geneticVariantFrontmatterSchema: z.ZodObject<{
2057
2417
  }>>;
2058
2418
  inheritance: z.ZodOptional<z.ZodString>;
2059
2419
  sourceFamilyMemberIds: z.ZodOptional<z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>>;
2420
+ links: z.ZodOptional<z.ZodType<{
2421
+ type: string;
2422
+ targetId: string;
2423
+ }[], unknown, z.core.$ZodTypeInternals<{
2424
+ type: string;
2425
+ targetId: string;
2426
+ }[], unknown>>>;
2060
2427
  note: z.ZodOptional<z.ZodString>;
2061
2428
  }, z.core.$strict>;
2062
2429
  export type ExternalRef = z.infer<typeof externalRefSchema>;
@@ -2066,6 +2433,8 @@ export type WorkoutExerciseMode = z.infer<typeof workoutExerciseModeSchema>;
2066
2433
  export type WorkoutLoadUnit = z.infer<typeof workoutLoadUnitSchema>;
2067
2434
  export type StoredMediaKind = z.infer<typeof storedMediaKindSchema>;
2068
2435
  export type StoredMedia = z.infer<typeof storedMediaSchema>;
2436
+ export type EventAttachmentKind = z.infer<typeof eventAttachmentKindSchema>;
2437
+ export type EventAttachment = z.infer<typeof eventAttachmentSchema>;
2069
2438
  export type BodyMeasurementType = z.infer<typeof bodyMeasurementTypeSchema>;
2070
2439
  export type BodyMeasurementUnit = z.infer<typeof bodyMeasurementUnitSchema>;
2071
2440
  export type BodyMeasurementEntry = z.infer<typeof bodyMeasurementEntrySchema>;