@sockethub/platform-carddav 1.0.0-beta.4 → 1.0.0-beta.6

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/dist/schema.d.ts CHANGED
@@ -86,6 +86,23 @@ export declare const PlatformCardDavSchema: {
86
86
  maxLength: number;
87
87
  };
88
88
  };
89
+ } | {
90
+ required: string[];
91
+ type: string;
92
+ additionalProperties: boolean;
93
+ properties: {
94
+ syncToken: {
95
+ type: string;
96
+ minLength: number;
97
+ maxLength: number;
98
+ };
99
+ tokenOnly: {
100
+ const: boolean;
101
+ };
102
+ };
103
+ not: {
104
+ required: string[];
105
+ };
89
106
  })[];
90
107
  };
91
108
  };
@@ -139,6 +156,31 @@ export declare const PlatformCardDavSchema: {
139
156
  };
140
157
  required: string[];
141
158
  not?: undefined;
159
+ } | {
160
+ properties: {
161
+ type: {
162
+ const: string;
163
+ };
164
+ object: {
165
+ type: string;
166
+ additionalProperties: boolean;
167
+ properties: {
168
+ syncToken: {
169
+ type: string;
170
+ minLength: number;
171
+ maxLength: number;
172
+ };
173
+ tokenOnly: {
174
+ const: boolean;
175
+ };
176
+ };
177
+ not: {
178
+ required: string[];
179
+ };
180
+ };
181
+ };
182
+ required: string[];
183
+ not?: undefined;
142
184
  } | {
143
185
  properties: {
144
186
  type: {
@@ -522,6 +564,303 @@ export declare const PlatformCardDavSchema: {
522
564
  })[];
523
565
  };
524
566
  };
567
+ removed?: undefined;
568
+ syncToken?: undefined;
569
+ truncated?: undefined;
570
+ actor?: undefined;
571
+ target?: undefined;
572
+ object?: undefined;
573
+ };
574
+ } | {
575
+ type: string;
576
+ required: string[];
577
+ additionalProperties: boolean;
578
+ properties: {
579
+ "@context": {
580
+ type: string;
581
+ items: {
582
+ type: string;
583
+ };
584
+ };
585
+ id: {
586
+ type: string[];
587
+ };
588
+ type: {
589
+ const: string;
590
+ enum?: undefined;
591
+ };
592
+ summary: {
593
+ type: string;
594
+ };
595
+ totalItems: {
596
+ type: string;
597
+ minimum: number;
598
+ };
599
+ items: {
600
+ type: string;
601
+ items: {
602
+ required: string[];
603
+ type: string;
604
+ additionalProperties: boolean;
605
+ properties: {
606
+ id: {
607
+ type: string;
608
+ format: string;
609
+ maxLength: number;
610
+ };
611
+ etag: {
612
+ type: string;
613
+ minLength: number;
614
+ maxLength: number;
615
+ };
616
+ uid: {
617
+ type: string;
618
+ minLength: number;
619
+ maxLength: number;
620
+ };
621
+ type: {
622
+ const: string;
623
+ };
624
+ name: {
625
+ type: string;
626
+ minLength: number;
627
+ maxLength: number;
628
+ };
629
+ givenName: {
630
+ type: string;
631
+ maxLength: number;
632
+ };
633
+ additionalNames: {
634
+ type: string;
635
+ maxItems: number;
636
+ items: {
637
+ type: string;
638
+ maxLength: number;
639
+ };
640
+ };
641
+ familyName: {
642
+ type: string;
643
+ maxLength: number;
644
+ };
645
+ honorificPrefixes: {
646
+ type: string;
647
+ maxItems: number;
648
+ items: {
649
+ type: string;
650
+ maxLength: number;
651
+ };
652
+ };
653
+ honorificSuffixes: {
654
+ type: string;
655
+ maxItems: number;
656
+ items: {
657
+ type: string;
658
+ maxLength: number;
659
+ };
660
+ };
661
+ nickname: {
662
+ type: string;
663
+ maxLength: number;
664
+ };
665
+ emails: {
666
+ type: string;
667
+ maxItems: number;
668
+ items: {
669
+ type: string;
670
+ required: string[];
671
+ additionalProperties: boolean;
672
+ properties: {
673
+ value: {
674
+ type: string;
675
+ minLength: number;
676
+ maxLength: number;
677
+ };
678
+ types: {
679
+ type: string;
680
+ uniqueItems: boolean;
681
+ maxItems: number;
682
+ items: {
683
+ type: string;
684
+ minLength: number;
685
+ maxLength: number;
686
+ pattern: string;
687
+ };
688
+ };
689
+ preferred: {
690
+ type: string;
691
+ };
692
+ };
693
+ };
694
+ };
695
+ telephones: {
696
+ type: string;
697
+ maxItems: number;
698
+ items: {
699
+ type: string;
700
+ required: string[];
701
+ additionalProperties: boolean;
702
+ properties: {
703
+ value: {
704
+ type: string;
705
+ minLength: number;
706
+ maxLength: number;
707
+ };
708
+ types: {
709
+ type: string;
710
+ uniqueItems: boolean;
711
+ maxItems: number;
712
+ items: {
713
+ type: string;
714
+ minLength: number;
715
+ maxLength: number;
716
+ pattern: string;
717
+ };
718
+ };
719
+ preferred: {
720
+ type: string;
721
+ };
722
+ };
723
+ };
724
+ };
725
+ addresses: {
726
+ type: string;
727
+ maxItems: number;
728
+ items: {
729
+ type: string;
730
+ additionalProperties: boolean;
731
+ properties: {
732
+ types: {
733
+ type: string;
734
+ uniqueItems: boolean;
735
+ maxItems: number;
736
+ items: {
737
+ type: string;
738
+ minLength: number;
739
+ maxLength: number;
740
+ pattern: string;
741
+ };
742
+ };
743
+ preferred: {
744
+ type: string;
745
+ };
746
+ postOfficeBox: {
747
+ type: string;
748
+ maxLength: number;
749
+ };
750
+ extendedAddress: {
751
+ type: string;
752
+ maxLength: number;
753
+ };
754
+ street: {
755
+ type: string;
756
+ maxLength: number;
757
+ };
758
+ locality: {
759
+ type: string;
760
+ maxLength: number;
761
+ };
762
+ region: {
763
+ type: string;
764
+ maxLength: number;
765
+ };
766
+ postalCode: {
767
+ type: string;
768
+ maxLength: number;
769
+ };
770
+ country: {
771
+ type: string;
772
+ maxLength: number;
773
+ };
774
+ };
775
+ };
776
+ };
777
+ organization: {
778
+ type: string;
779
+ maxLength: number;
780
+ };
781
+ title: {
782
+ type: string;
783
+ maxLength: number;
784
+ };
785
+ role: {
786
+ type: string;
787
+ maxLength: number;
788
+ };
789
+ urls: {
790
+ type: string;
791
+ maxItems: number;
792
+ items: {
793
+ type: string;
794
+ required: string[];
795
+ additionalProperties: boolean;
796
+ properties: {
797
+ value: {
798
+ type: string;
799
+ minLength: number;
800
+ maxLength: number;
801
+ };
802
+ types: {
803
+ type: string;
804
+ uniqueItems: boolean;
805
+ maxItems: number;
806
+ items: {
807
+ type: string;
808
+ minLength: number;
809
+ maxLength: number;
810
+ pattern: string;
811
+ };
812
+ };
813
+ preferred: {
814
+ type: string;
815
+ };
816
+ };
817
+ };
818
+ };
819
+ photoUrls: {
820
+ type: string;
821
+ maxItems: number;
822
+ items: {
823
+ type: string;
824
+ format: string;
825
+ pattern: string;
826
+ maxLength: number;
827
+ };
828
+ };
829
+ note: {
830
+ type: string;
831
+ maxLength: number;
832
+ };
833
+ birthday: {
834
+ type: string;
835
+ minLength: number;
836
+ maxLength: number;
837
+ pattern: string;
838
+ };
839
+ vcardVersion: {
840
+ enum: string[];
841
+ };
842
+ updateSupported: {
843
+ type: string;
844
+ };
845
+ };
846
+ };
847
+ };
848
+ removed: {
849
+ type: string;
850
+ items: {
851
+ type: string;
852
+ format: string;
853
+ maxLength: number;
854
+ };
855
+ };
856
+ syncToken: {
857
+ type: string;
858
+ minLength: number;
859
+ maxLength: number;
860
+ };
861
+ truncated: {
862
+ type: string;
863
+ };
525
864
  actor?: undefined;
526
865
  target?: undefined;
527
866
  object?: undefined;
@@ -602,6 +941,9 @@ export declare const PlatformCardDavSchema: {
602
941
  summary?: undefined;
603
942
  totalItems?: undefined;
604
943
  items?: undefined;
944
+ removed?: undefined;
945
+ syncToken?: undefined;
946
+ truncated?: undefined;
605
947
  };
606
948
  })[];
607
949
  };
package/dist/types.d.ts CHANGED
@@ -79,3 +79,13 @@ export interface DeleteInput {
79
79
  type: "person";
80
80
  etag: string;
81
81
  }
82
+ export interface SyncInput {
83
+ syncToken?: string;
84
+ tokenOnly?: true;
85
+ }
86
+ export interface ContactSyncResult {
87
+ items: Contact[];
88
+ removed: string[];
89
+ syncToken: string;
90
+ truncated: boolean;
91
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/platform-carddav",
3
3
  "description": "A Sockethub platform for CardDAV address books and contacts",
4
- "version": "1.0.0-beta.4",
4
+ "version": "1.0.0-beta.6",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "LGPL-3.0+",
@@ -30,19 +30,19 @@
30
30
  "test": "bun test src/"
31
31
  },
32
32
  "dependencies": {
33
- "@sockethub/dav": "^1.0.0-beta.4",
34
- "@sockethub/schemas": "^3.0.0-beta.4"
33
+ "@sockethub/dav": "^1.0.0-beta.6",
34
+ "@sockethub/schemas": "^3.0.0-beta.6"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/bun": "latest"
38
38
  },
39
39
  "peerDependencies": {
40
- "@sockethub/server": "^5.0.0-beta.4"
40
+ "@sockethub/server": "^5.0.0-beta.6"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "@sockethub/server": {
44
44
  "optional": true
45
45
  }
46
46
  },
47
- "gitHead": "2839403a8add67c25f39e164d4ba24ddb8a7ed3e"
47
+ "gitHead": "9d6fb334b8c72b2e618f16cb0218cf0719f4c7cf"
48
48
  }