@interactive-inc/docs-client 0.0.11 → 0.0.14

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.
package/build/models.d.ts CHANGED
@@ -228,11 +228,16 @@ declare const zDocMetaFieldMultiBoolean: z.ZodArray<z.ZodBoolean>;
228
228
  declare const zDocMetaFieldMultiSelectText: z.ZodArray<z.ZodString>;
229
229
  declare const zDocMetaFieldMultiSelectNumber: z.ZodArray<z.ZodNumber>;
230
230
  declare const zDocMetaFieldMultiRelation: z.ZodArray<z.ZodString>;
231
- declare const zDocMetaField: z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>;
231
+ declare const zDocMetaField: z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>;
232
232
  /**
233
- * FrontMatter schema
233
+ * FrontMatter schema (internal use - only nullable)
234
234
  */
235
- declare const zDocFileMdMeta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>>;
235
+ declare const zDocFileMdMeta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>>;
236
+ /**
237
+ * FrontMatter input schema (allows undefined for external APIs)
238
+ * Transforms undefined to null for internal consistency
239
+ */
240
+ declare const zDocFileMdMetaInput: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>, z.ZodUndefined]>>;
236
241
  /**
237
242
  * Schema definition
238
243
  * Mapping of field names to schema fields
@@ -310,6 +315,82 @@ declare const zDocFileIndexSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly
310
315
  options: z.ZodArray<z.ZodNumber>;
311
316
  default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
312
317
  }, z.core.$strip>]>>;
318
+ /**
319
+ * Schema definition input (allows undefined for external APIs)
320
+ */
321
+ declare const zDocFileIndexSchemaInput: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<readonly [z.ZodObject<{
322
+ type: z.ZodLiteral<"text">;
323
+ required: z.ZodBoolean;
324
+ title: z.ZodNullable<z.ZodString>;
325
+ description: z.ZodNullable<z.ZodString>;
326
+ default: z.ZodNullable<z.ZodString>;
327
+ }, z.core.$strip>, z.ZodObject<{
328
+ type: z.ZodLiteral<"number">;
329
+ required: z.ZodBoolean;
330
+ title: z.ZodNullable<z.ZodString>;
331
+ description: z.ZodNullable<z.ZodString>;
332
+ default: z.ZodNullable<z.ZodNumber>;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ type: z.ZodLiteral<"boolean">;
335
+ required: z.ZodBoolean;
336
+ title: z.ZodNullable<z.ZodString>;
337
+ description: z.ZodNullable<z.ZodString>;
338
+ default: z.ZodNullable<z.ZodBoolean>;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ type: z.ZodLiteral<"multi-text">;
341
+ required: z.ZodBoolean;
342
+ title: z.ZodNullable<z.ZodString>;
343
+ description: z.ZodNullable<z.ZodString>;
344
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ type: z.ZodLiteral<"multi-number">;
347
+ required: z.ZodBoolean;
348
+ title: z.ZodNullable<z.ZodString>;
349
+ description: z.ZodNullable<z.ZodString>;
350
+ default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
351
+ }, z.core.$strip>, z.ZodObject<{
352
+ type: z.ZodLiteral<"relation">;
353
+ required: z.ZodBoolean;
354
+ title: z.ZodNullable<z.ZodString>;
355
+ description: z.ZodNullable<z.ZodString>;
356
+ path: z.ZodString;
357
+ default: z.ZodNullable<z.ZodString>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ type: z.ZodLiteral<"multi-relation">;
360
+ required: z.ZodBoolean;
361
+ title: z.ZodNullable<z.ZodString>;
362
+ description: z.ZodNullable<z.ZodString>;
363
+ path: z.ZodString;
364
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ type: z.ZodLiteral<"select-text">;
367
+ required: z.ZodBoolean;
368
+ title: z.ZodNullable<z.ZodString>;
369
+ description: z.ZodNullable<z.ZodString>;
370
+ options: z.ZodArray<z.ZodString>;
371
+ default: z.ZodNullable<z.ZodString>;
372
+ }, z.core.$strip>, z.ZodObject<{
373
+ type: z.ZodLiteral<"select-number">;
374
+ required: z.ZodBoolean;
375
+ title: z.ZodNullable<z.ZodString>;
376
+ description: z.ZodNullable<z.ZodString>;
377
+ options: z.ZodArray<z.ZodNumber>;
378
+ default: z.ZodNullable<z.ZodNumber>;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ type: z.ZodLiteral<"multi-select-text">;
381
+ required: z.ZodBoolean;
382
+ title: z.ZodNullable<z.ZodString>;
383
+ description: z.ZodNullable<z.ZodString>;
384
+ options: z.ZodArray<z.ZodString>;
385
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ type: z.ZodLiteral<"multi-select-number">;
388
+ required: z.ZodBoolean;
389
+ title: z.ZodNullable<z.ZodString>;
390
+ description: z.ZodNullable<z.ZodString>;
391
+ options: z.ZodArray<z.ZodNumber>;
392
+ default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
393
+ }, z.core.$strip>]>, z.ZodUndefined]>>;
313
394
  declare const zDocCustomSchemaFieldText: z.ZodObject<{
314
395
  type: z.ZodLiteral<"text">;
315
396
  required: z.ZodBoolean;
@@ -510,6 +591,86 @@ declare const zDocFileIndexMeta: z.ZodObject<{
510
591
  default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
511
592
  }, z.core.$strip>]>>;
512
593
  }, z.core.$strip>;
594
+ /**
595
+ * FrontMatter input schema for index.md files (allows undefined for external APIs)
596
+ */
597
+ declare const zDocFileIndexMetaInput: z.ZodObject<{
598
+ type: z.ZodLiteral<"index-meta">;
599
+ icon: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodUndefined]>;
600
+ schema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<readonly [z.ZodObject<{
601
+ type: z.ZodLiteral<"text">;
602
+ required: z.ZodBoolean;
603
+ title: z.ZodNullable<z.ZodString>;
604
+ description: z.ZodNullable<z.ZodString>;
605
+ default: z.ZodNullable<z.ZodString>;
606
+ }, z.core.$strip>, z.ZodObject<{
607
+ type: z.ZodLiteral<"number">;
608
+ required: z.ZodBoolean;
609
+ title: z.ZodNullable<z.ZodString>;
610
+ description: z.ZodNullable<z.ZodString>;
611
+ default: z.ZodNullable<z.ZodNumber>;
612
+ }, z.core.$strip>, z.ZodObject<{
613
+ type: z.ZodLiteral<"boolean">;
614
+ required: z.ZodBoolean;
615
+ title: z.ZodNullable<z.ZodString>;
616
+ description: z.ZodNullable<z.ZodString>;
617
+ default: z.ZodNullable<z.ZodBoolean>;
618
+ }, z.core.$strip>, z.ZodObject<{
619
+ type: z.ZodLiteral<"multi-text">;
620
+ required: z.ZodBoolean;
621
+ title: z.ZodNullable<z.ZodString>;
622
+ description: z.ZodNullable<z.ZodString>;
623
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ type: z.ZodLiteral<"multi-number">;
626
+ required: z.ZodBoolean;
627
+ title: z.ZodNullable<z.ZodString>;
628
+ description: z.ZodNullable<z.ZodString>;
629
+ default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ type: z.ZodLiteral<"relation">;
632
+ required: z.ZodBoolean;
633
+ title: z.ZodNullable<z.ZodString>;
634
+ description: z.ZodNullable<z.ZodString>;
635
+ path: z.ZodString;
636
+ default: z.ZodNullable<z.ZodString>;
637
+ }, z.core.$strip>, z.ZodObject<{
638
+ type: z.ZodLiteral<"multi-relation">;
639
+ required: z.ZodBoolean;
640
+ title: z.ZodNullable<z.ZodString>;
641
+ description: z.ZodNullable<z.ZodString>;
642
+ path: z.ZodString;
643
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
644
+ }, z.core.$strip>, z.ZodObject<{
645
+ type: z.ZodLiteral<"select-text">;
646
+ required: z.ZodBoolean;
647
+ title: z.ZodNullable<z.ZodString>;
648
+ description: z.ZodNullable<z.ZodString>;
649
+ options: z.ZodArray<z.ZodString>;
650
+ default: z.ZodNullable<z.ZodString>;
651
+ }, z.core.$strip>, z.ZodObject<{
652
+ type: z.ZodLiteral<"select-number">;
653
+ required: z.ZodBoolean;
654
+ title: z.ZodNullable<z.ZodString>;
655
+ description: z.ZodNullable<z.ZodString>;
656
+ options: z.ZodArray<z.ZodNumber>;
657
+ default: z.ZodNullable<z.ZodNumber>;
658
+ }, z.core.$strip>, z.ZodObject<{
659
+ type: z.ZodLiteral<"multi-select-text">;
660
+ required: z.ZodBoolean;
661
+ title: z.ZodNullable<z.ZodString>;
662
+ description: z.ZodNullable<z.ZodString>;
663
+ options: z.ZodArray<z.ZodString>;
664
+ default: z.ZodNullable<z.ZodArray<z.ZodString>>;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ type: z.ZodLiteral<"multi-select-number">;
667
+ required: z.ZodBoolean;
668
+ title: z.ZodNullable<z.ZodString>;
669
+ description: z.ZodNullable<z.ZodString>;
670
+ options: z.ZodArray<z.ZodNumber>;
671
+ default: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
672
+ }, z.core.$strip>]>, z.ZodUndefined]>>;
673
+ }, z.core.$strip>;
513
674
  /**
514
675
  * Relation field
515
676
  */
@@ -540,14 +701,24 @@ declare const zDocRelation: z.ZodObject<{
540
701
  }, z.core.$strip>>;
541
702
  }, z.core.$strip>;
542
703
  /**
543
- * Markdown content information (for regular MD files)
704
+ * Markdown content information (for regular MD files) - internal use
544
705
  */
545
706
  declare const zDocFileMdContent: z.ZodObject<{
546
707
  type: z.ZodLiteral<"markdown-content">;
547
708
  body: z.ZodString;
548
709
  title: z.ZodString;
549
710
  description: z.ZodString;
550
- meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>>;
711
+ meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>>;
712
+ }, z.core.$strip>;
713
+ /**
714
+ * Markdown content input (allows undefined in meta) - for external APIs
715
+ */
716
+ declare const zDocFileMdContentInput: z.ZodObject<{
717
+ type: z.ZodLiteral<"markdown-content">;
718
+ body: z.ZodString;
719
+ title: z.ZodString;
720
+ description: z.ZodString;
721
+ meta: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>, z.ZodUndefined]>>;
551
722
  }, z.core.$strip>;
552
723
  /**
553
724
  * Markdown content information (for index files)
@@ -747,7 +918,7 @@ declare const zDocFileUnknown: z.ZodObject<{
747
918
  isArchived: z.ZodBoolean;
748
919
  }, z.core.$strip>;
749
920
  /**
750
- * Markdown file (excluding index.md)
921
+ * Markdown file (excluding index.md) - internal use
751
922
  */
752
923
  declare const zDocFileMd: z.ZodObject<{
753
924
  type: z.ZodLiteral<"markdown">;
@@ -762,7 +933,27 @@ declare const zDocFileMd: z.ZodObject<{
762
933
  body: z.ZodString;
763
934
  title: z.ZodString;
764
935
  description: z.ZodString;
765
- meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>>;
936
+ meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>>;
937
+ }, z.core.$strip>;
938
+ isArchived: z.ZodBoolean;
939
+ }, z.core.$strip>;
940
+ /**
941
+ * Markdown file input (allows undefined in meta) - for external APIs
942
+ */
943
+ declare const zDocFileMdInput: z.ZodObject<{
944
+ type: z.ZodLiteral<"markdown">;
945
+ path: z.ZodObject<{
946
+ name: z.ZodString;
947
+ path: z.ZodString;
948
+ fullPath: z.ZodString;
949
+ nameWithExtension: z.ZodString;
950
+ }, z.core.$strip>;
951
+ content: z.ZodObject<{
952
+ type: z.ZodLiteral<"markdown-content">;
953
+ body: z.ZodString;
954
+ title: z.ZodString;
955
+ description: z.ZodString;
956
+ meta: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>, z.ZodUndefined]>>;
766
957
  }, z.core.$strip>;
767
958
  isArchived: z.ZodBoolean;
768
959
  }, z.core.$strip>;
@@ -874,7 +1065,7 @@ declare const zDocFile: z.ZodUnion<readonly [z.ZodObject<{
874
1065
  body: z.ZodString;
875
1066
  title: z.ZodString;
876
1067
  description: z.ZodString;
877
- meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>>;
1068
+ meta: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodBoolean>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodNumber>, z.ZodNullable<z.ZodString>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>, z.ZodNull]>>;
878
1069
  }, z.core.$strip>;
879
1070
  isArchived: z.ZodBoolean;
880
1071
  }, z.core.$strip>, z.ZodObject<{
@@ -916,27 +1107,13 @@ declare const zDocTreeNode: z.ZodUnion<readonly [z.ZodObject<{
916
1107
  /**
917
1108
  * DocClient configuration
918
1109
  */
919
- declare const zDocClientConfig: z.ZodPipe<z.ZodObject<{
920
- defaultIndexIcon: z.ZodOptional<z.ZodString>;
921
- indexFileName: z.ZodOptional<z.ZodString>;
922
- archiveDirectoryName: z.ZodOptional<z.ZodString>;
923
- defaultDirectoryName: z.ZodOptional<z.ZodString>;
924
- indexMetaIncludes: z.ZodOptional<z.ZodArray<z.ZodString>>;
925
- directoryExcludes: z.ZodOptional<z.ZodArray<z.ZodString>>;
926
- }, z.core.$strip>, z.ZodTransform<{
927
- defaultIndexIcon: string;
928
- indexFileName: string;
929
- archiveDirectoryName: string;
930
- defaultDirectoryName: string;
931
- indexMetaIncludes: string[];
932
- directoryExcludes: string[];
933
- }, {
934
- defaultIndexIcon?: string | undefined;
935
- indexFileName?: string | undefined;
936
- archiveDirectoryName?: string | undefined;
937
- defaultDirectoryName?: string | undefined;
938
- indexMetaIncludes?: string[] | undefined;
939
- directoryExcludes?: string[] | undefined;
940
- }>>;
1110
+ declare const zDocClientConfig: z.ZodObject<{
1111
+ defaultIndexIcon: z.ZodString;
1112
+ indexFileName: z.ZodString;
1113
+ archiveDirectoryName: z.ZodString;
1114
+ defaultDirectoryName: z.ZodString;
1115
+ indexMetaIncludes: z.ZodArray<z.ZodString>;
1116
+ directoryExcludes: z.ZodArray<z.ZodString>;
1117
+ }, z.core.$strip>;
941
1118
 
942
- export { zDocClientConfig, zDocCustomSchema, zDocCustomSchemaField, zDocCustomSchemaFieldBoolean, zDocCustomSchemaFieldMultiNumber, zDocCustomSchemaFieldMultiRelation, zDocCustomSchemaFieldMultiSelectNumber, zDocCustomSchemaFieldMultiSelectText, zDocCustomSchemaFieldMultiText, zDocCustomSchemaFieldNumber, zDocCustomSchemaFieldRelation, zDocCustomSchemaFieldSelectNumber, zDocCustomSchemaFieldSelectText, zDocCustomSchemaFieldText, zDocFile, zDocFileIndex, zDocFileIndexContent, zDocFileIndexMeta, zDocFileIndexSchema, zDocFileIndexSchemaField, zDocFileMd, zDocFileMdContent, zDocFileMdMeta, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeMultiNumber, zDocMetaFieldTypeMultiRelation, zDocMetaFieldTypeMultiSelectNumber, zDocMetaFieldTypeMultiSelectText, zDocMetaFieldTypeMultiText, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText, zDocTreeDirectoryNode, zDocTreeFileNode, zDocTreeNode };
1119
+ export { zDocClientConfig, zDocCustomSchema, zDocCustomSchemaField, zDocCustomSchemaFieldBoolean, zDocCustomSchemaFieldMultiNumber, zDocCustomSchemaFieldMultiRelation, zDocCustomSchemaFieldMultiSelectNumber, zDocCustomSchemaFieldMultiSelectText, zDocCustomSchemaFieldMultiText, zDocCustomSchemaFieldNumber, zDocCustomSchemaFieldRelation, zDocCustomSchemaFieldSelectNumber, zDocCustomSchemaFieldSelectText, zDocCustomSchemaFieldText, zDocFile, zDocFileIndex, zDocFileIndexContent, zDocFileIndexMeta, zDocFileIndexMetaInput, zDocFileIndexSchema, zDocFileIndexSchemaField, zDocFileIndexSchemaInput, zDocFileMd, zDocFileMdContent, zDocFileMdContentInput, zDocFileMdInput, zDocFileMdMeta, zDocFileMdMetaInput, zDocFilePath, zDocFileUnknown, zDocMetaField, zDocMetaFieldBoolean, zDocMetaFieldMultiBoolean, zDocMetaFieldMultiNumber, zDocMetaFieldMultiRelation, zDocMetaFieldMultiSelectNumber, zDocMetaFieldMultiSelectText, zDocMetaFieldMultiText, zDocMetaFieldNumber, zDocMetaFieldRelation, zDocMetaFieldSelectNumber, zDocMetaFieldSelectText, zDocMetaFieldText, zDocMetaFieldType, zDocMetaFieldTypeBoolean, zDocMetaFieldTypeMultiNumber, zDocMetaFieldTypeMultiRelation, zDocMetaFieldTypeMultiSelectNumber, zDocMetaFieldTypeMultiSelectText, zDocMetaFieldTypeMultiText, zDocMetaFieldTypeNumber, zDocMetaFieldTypeRelation, zDocMetaFieldTypeSelectNumber, zDocMetaFieldTypeSelectText, zDocMetaFieldTypeText, zDocRelation, zDocRelationField, zDocRelationFile, zDocSchemaFieldBoolean, zDocSchemaFieldMultiNumber, zDocSchemaFieldMultiRelation, zDocSchemaFieldMultiSelectNumber, zDocSchemaFieldMultiSelectText, zDocSchemaFieldMultiText, zDocSchemaFieldNumber, zDocSchemaFieldRelation, zDocSchemaFieldSelectNumber, zDocSchemaFieldSelectText, zDocSchemaFieldText, zDocTreeDirectoryNode, zDocTreeFileNode, zDocTreeNode };
package/build/models.js CHANGED
@@ -152,13 +152,22 @@ var zDocMetaField = z.union([
152
152
  zDocMetaFieldMultiBoolean,
153
153
  zDocMetaFieldMultiSelectText,
154
154
  zDocMetaFieldMultiSelectNumber,
155
- zDocMetaFieldMultiRelation
155
+ zDocMetaFieldMultiRelation,
156
+ z.null()
156
157
  ]);
157
158
  var zDocFileMdMeta = z.record(z.string(), zDocMetaField);
159
+ var zDocFileMdMetaInput = z.record(
160
+ z.string(),
161
+ zDocMetaField.or(z.undefined())
162
+ );
158
163
  var zDocFileIndexSchema = z.record(
159
164
  z.string(),
160
165
  zDocFileIndexSchemaField
161
166
  );
167
+ var zDocFileIndexSchemaInput = z.record(
168
+ z.string(),
169
+ zDocFileIndexSchemaField.or(z.undefined())
170
+ );
162
171
  var zDocCustomSchemaFieldText = z.object({
163
172
  type: zDocMetaFieldTypeText,
164
173
  required: z.boolean()
@@ -222,6 +231,11 @@ var zDocFileIndexMeta = z.object({
222
231
  icon: z.string().nullable(),
223
232
  schema: zDocFileIndexSchema
224
233
  });
234
+ var zDocFileIndexMetaInput = z.object({
235
+ type: z.literal("index-meta"),
236
+ icon: z.string().nullable().or(z.undefined()),
237
+ schema: zDocFileIndexSchemaInput
238
+ });
225
239
  var zDocRelationField = z.object({
226
240
  fieldName: z.string(),
227
241
  filePath: z.string(),
@@ -244,6 +258,13 @@ var zDocFileMdContent = z.object({
244
258
  description: z.string(),
245
259
  meta: zDocFileMdMeta
246
260
  });
261
+ var zDocFileMdContentInput = z.object({
262
+ type: z.literal("markdown-content"),
263
+ body: z.string(),
264
+ title: z.string(),
265
+ description: z.string(),
266
+ meta: zDocFileMdMetaInput
267
+ });
247
268
  var zDocFileIndexContent = z.object({
248
269
  type: z.literal("markdown-index"),
249
270
  body: z.string(),
@@ -270,6 +291,12 @@ var zDocFileMd = z.object({
270
291
  content: zDocFileMdContent,
271
292
  isArchived: z.boolean()
272
293
  });
294
+ var zDocFileMdInput = z.object({
295
+ type: z.literal("markdown"),
296
+ path: zDocFilePath,
297
+ content: zDocFileMdContentInput,
298
+ isArchived: z.boolean()
299
+ });
273
300
  var zDocFile = z.union([zDocFileIndex, zDocFileMd, zDocFileUnknown]);
274
301
  var zDocTreeFileNode = z.object({
275
302
  type: z.literal("file"),
@@ -290,20 +317,13 @@ var zDocTreeDirectoryNode = z.lazy(() => {
290
317
  });
291
318
  var zDocTreeNode = z.union([zDocTreeFileNode, zDocTreeDirectoryNode]);
292
319
  var zDocClientConfig = z.object({
293
- defaultIndexIcon: z.string().optional(),
294
- indexFileName: z.string().optional(),
295
- archiveDirectoryName: z.string().optional(),
296
- defaultDirectoryName: z.string().optional(),
297
- indexMetaIncludes: z.array(z.string()).optional(),
298
- directoryExcludes: z.array(z.string()).optional()
299
- }).transform((data) => ({
300
- defaultIndexIcon: data.defaultIndexIcon ?? "\u{1F4C3}",
301
- indexFileName: data.indexFileName ?? "index.md",
302
- archiveDirectoryName: data.archiveDirectoryName ?? "_",
303
- defaultDirectoryName: data.defaultDirectoryName ?? "Directory",
304
- indexMetaIncludes: data.indexMetaIncludes ?? [],
305
- directoryExcludes: data.directoryExcludes ?? [".vitepress"]
306
- }));
320
+ defaultIndexIcon: z.string(),
321
+ indexFileName: z.string(),
322
+ archiveDirectoryName: z.string(),
323
+ defaultDirectoryName: z.string(),
324
+ indexMetaIncludes: z.array(z.string()),
325
+ directoryExcludes: z.array(z.string())
326
+ });
307
327
  export {
308
328
  zDocClientConfig,
309
329
  zDocCustomSchema,
@@ -323,11 +343,16 @@ export {
323
343
  zDocFileIndex,
324
344
  zDocFileIndexContent,
325
345
  zDocFileIndexMeta,
346
+ zDocFileIndexMetaInput,
326
347
  zDocFileIndexSchema,
327
348
  zDocFileIndexSchemaField,
349
+ zDocFileIndexSchemaInput,
328
350
  zDocFileMd,
329
351
  zDocFileMdContent,
352
+ zDocFileMdContentInput,
353
+ zDocFileMdInput,
330
354
  zDocFileMdMeta,
355
+ zDocFileMdMetaInput,
331
356
  zDocFilePath,
332
357
  zDocFileUnknown,
333
358
  zDocMetaField,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interactive-inc/docs-client",
3
- "version": "0.0.11",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsgo --noEmit",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "yaml": "^2.8.0",
12
- "zod": "^4.0.5"
12
+ "zod": "^4.0.10"
13
13
  },
14
14
  "publishConfig": {
15
15
  "access": "public"