@minca/core 0.1.14 → 0.1.15

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 (132) hide show
  1. package/README.md +2 -2
  2. package/dist/files/space-files.d.ts +15 -3
  3. package/dist/files/space-files.d.ts.map +1 -1
  4. package/dist/files/space-files.js +225 -37
  5. package/dist/files/space-files.js.map +1 -1
  6. package/dist/network/relay-minca.d.ts +12 -1
  7. package/dist/network/relay-minca.d.ts.map +1 -1
  8. package/dist/network/relay-minca.js +14 -6
  9. package/dist/network/relay-minca.js.map +1 -1
  10. package/dist/network/relay-nostr.d.ts +14 -3
  11. package/dist/network/relay-nostr.d.ts.map +1 -1
  12. package/dist/network/relay-nostr.js +11 -9
  13. package/dist/network/relay-nostr.js.map +1 -1
  14. package/dist/network/relays.d.ts +26 -17
  15. package/dist/network/relays.d.ts.map +1 -1
  16. package/dist/network/relays.js +21 -28
  17. package/dist/network/relays.js.map +1 -1
  18. package/dist/network/rendezvous.d.ts +1 -1
  19. package/dist/network/rendezvous.d.ts.map +1 -1
  20. package/dist/network/rendezvous.js +2 -2
  21. package/dist/network/rendezvous.js.map +1 -1
  22. package/dist/node/actions.d.ts.map +1 -1
  23. package/dist/node/actions.js +6 -1
  24. package/dist/node/actions.js.map +1 -1
  25. package/dist/node/node.d.ts.map +1 -1
  26. package/dist/node/node.js +7 -7
  27. package/dist/node/node.js.map +1 -1
  28. package/dist/node/space-runtime.d.ts +1 -1
  29. package/dist/node/space-runtime.d.ts.map +1 -1
  30. package/dist/node/space-runtime.js +17 -5
  31. package/dist/node/space-runtime.js.map +1 -1
  32. package/dist/node/types.d.ts +4 -3
  33. package/dist/node/types.d.ts.map +1 -1
  34. package/dist/schema/collection-def.d.ts.map +1 -1
  35. package/dist/schema/collection-def.js +16 -5
  36. package/dist/schema/collection-def.js.map +1 -1
  37. package/dist/schemas/automations.d.ts +8 -0
  38. package/dist/schemas/automations.d.ts.map +1 -1
  39. package/dist/schemas/connectors.d.ts +12 -0
  40. package/dist/schemas/connectors.d.ts.map +1 -1
  41. package/dist/schemas/fragments.d.ts +22 -2
  42. package/dist/schemas/fragments.d.ts.map +1 -1
  43. package/dist/schemas/fragments.js +20 -12
  44. package/dist/schemas/fragments.js.map +1 -1
  45. package/dist/schemas/library/annotations.d.ts +30 -0
  46. package/dist/schemas/library/annotations.d.ts.map +1 -1
  47. package/dist/schemas/library/annotations.js +1 -0
  48. package/dist/schemas/library/annotations.js.map +1 -1
  49. package/dist/schemas/library/community.d.ts +28 -0
  50. package/dist/schemas/library/community.d.ts.map +1 -1
  51. package/dist/schemas/library/life.d.ts +62 -2
  52. package/dist/schemas/library/life.d.ts.map +1 -1
  53. package/dist/schemas/library/media.d.ts +36 -0
  54. package/dist/schemas/library/media.d.ts.map +1 -1
  55. package/dist/schemas/library/money.d.ts +74 -2
  56. package/dist/schemas/library/money.d.ts.map +1 -1
  57. package/dist/schemas/library/planning.d.ts +56 -0
  58. package/dist/schemas/library/planning.d.ts.map +1 -1
  59. package/dist/schemas/library/publishing.d.ts +80 -4
  60. package/dist/schemas/library/publishing.d.ts.map +1 -1
  61. package/dist/schemas/library/social.d.ts +44 -0
  62. package/dist/schemas/library/social.d.ts.map +1 -1
  63. package/docs/README.md +2 -2
  64. package/docs/actions.md +47 -20
  65. package/docs/blueprints-and-guides.md +41 -13
  66. package/docs/building-an-app.md +4 -4
  67. package/docs/collections.md +31 -3
  68. package/docs/node.md +14 -12
  69. package/docs/standard-library.md +26 -25
  70. package/docs/storage.md +33 -10
  71. package/package.json +2 -21
  72. package/dist/calls/calls.d.ts +0 -140
  73. package/dist/calls/calls.d.ts.map +0 -1
  74. package/dist/calls/calls.js +0 -861
  75. package/dist/calls/calls.js.map +0 -1
  76. package/dist/calls/index.d.ts +0 -4
  77. package/dist/calls/index.d.ts.map +0 -1
  78. package/dist/calls/index.js +0 -3
  79. package/dist/calls/index.js.map +0 -1
  80. package/dist/react/context.d.ts +0 -81
  81. package/dist/react/context.d.ts.map +0 -1
  82. package/dist/react/context.js +0 -97
  83. package/dist/react/context.js.map +0 -1
  84. package/dist/react/follow.d.ts +0 -11
  85. package/dist/react/follow.d.ts.map +0 -1
  86. package/dist/react/follow.js +0 -7
  87. package/dist/react/follow.js.map +0 -1
  88. package/dist/react/index.d.ts +0 -44
  89. package/dist/react/index.d.ts.map +0 -1
  90. package/dist/react/index.js +0 -40
  91. package/dist/react/index.js.map +0 -1
  92. package/dist/react/minca-auth.d.ts +0 -19
  93. package/dist/react/minca-auth.d.ts.map +0 -1
  94. package/dist/react/minca-auth.js +0 -36
  95. package/dist/react/minca-auth.js.map +0 -1
  96. package/dist/react/use-calls.d.ts +0 -21
  97. package/dist/react/use-calls.d.ts.map +0 -1
  98. package/dist/react/use-calls.js +0 -39
  99. package/dist/react/use-calls.js.map +0 -1
  100. package/dist/react/use-invite-link.d.ts +0 -24
  101. package/dist/react/use-invite-link.d.ts.map +0 -1
  102. package/dist/react/use-invite-link.js +0 -62
  103. package/dist/react/use-invite-link.js.map +0 -1
  104. package/dist/react/use-live.d.ts +0 -16
  105. package/dist/react/use-live.d.ts.map +0 -1
  106. package/dist/react/use-live.js +0 -56
  107. package/dist/react/use-live.js.map +0 -1
  108. package/dist/react/use-my-name.d.ts +0 -12
  109. package/dist/react/use-my-name.d.ts.map +0 -1
  110. package/dist/react/use-my-name.js +0 -38
  111. package/dist/react/use-my-name.js.map +0 -1
  112. package/dist/react/use-names.d.ts +0 -7
  113. package/dist/react/use-names.d.ts.map +0 -1
  114. package/dist/react/use-names.js +0 -13
  115. package/dist/react/use-names.js.map +0 -1
  116. package/dist/react/use-network.d.ts +0 -9
  117. package/dist/react/use-network.d.ts.map +0 -1
  118. package/dist/react/use-network.js +0 -33
  119. package/dist/react/use-network.js.map +0 -1
  120. package/dist/react/use-query.d.ts +0 -14
  121. package/dist/react/use-query.d.ts.map +0 -1
  122. package/dist/react/use-query.js +0 -26
  123. package/dist/react/use-query.js.map +0 -1
  124. package/dist/react/use-space.d.ts +0 -29
  125. package/dist/react/use-space.d.ts.map +0 -1
  126. package/dist/react/use-space.js +0 -57
  127. package/dist/react/use-space.js.map +0 -1
  128. package/dist/react/use-spaces.d.ts +0 -29
  129. package/dist/react/use-spaces.d.ts.map +0 -1
  130. package/dist/react/use-spaces.js +0 -78
  131. package/dist/react/use-spaces.js.map +0 -1
  132. package/docs/calls.md +0 -189
@@ -57,11 +57,15 @@ export declare const listItem: {
57
57
  type: 'string';
58
58
  minLength?: number | undefined;
59
59
  maxLength: number;
60
+ } & {
61
+ readonly 'x-kind': "url";
60
62
  };
61
63
  readonly did: {
62
64
  type: 'string';
63
65
  minLength?: number | undefined;
64
66
  maxLength: number;
67
+ } & {
68
+ readonly 'x-kind': "did";
65
69
  };
66
70
  readonly checked: {
67
71
  readonly type: "boolean";
@@ -74,6 +78,8 @@ export declare const listItem: {
74
78
  type: 'string';
75
79
  minLength?: number | undefined;
76
80
  maxLength: number;
81
+ } & {
82
+ readonly 'x-kind': "position";
77
83
  };
78
84
  };
79
85
  };
@@ -155,11 +161,15 @@ export declare const file: {
155
161
  };
156
162
  };
157
163
  required: readonly ["hash", "size", "mime"];
164
+ } & {
165
+ readonly 'x-kind': "file";
158
166
  };
159
167
  readonly url: {
160
168
  type: 'string';
161
169
  minLength?: number | undefined;
162
170
  maxLength: number;
171
+ } & {
172
+ readonly 'x-kind': "url";
163
173
  };
164
174
  readonly alt: {
165
175
  type: 'string';
@@ -185,6 +195,8 @@ export declare const file: {
185
195
  type: 'string';
186
196
  minLength?: number | undefined;
187
197
  maxLength: number;
198
+ } & {
199
+ readonly 'x-kind': "when";
188
200
  };
189
201
  readonly place: {
190
202
  type: 'object';
@@ -280,6 +292,8 @@ export declare const file: {
280
292
  };
281
293
  };
282
294
  required: readonly ["hash", "size", "mime"];
295
+ } & {
296
+ readonly 'x-kind': "file";
283
297
  };
284
298
  readonly captions: {
285
299
  type: 'object';
@@ -315,6 +329,8 @@ export declare const file: {
315
329
  };
316
330
  };
317
331
  required: readonly ["hash", "size", "mime"];
332
+ } & {
333
+ readonly 'x-kind': "file";
318
334
  };
319
335
  };
320
336
  readonly required: readonly ["name", "mime"];
@@ -474,6 +490,8 @@ export declare const play: {
474
490
  type: 'string';
475
491
  minLength?: number | undefined;
476
492
  maxLength: number;
493
+ } & {
494
+ readonly 'x-kind': "when";
477
495
  };
478
496
  };
479
497
  readonly required: readonly ["title", "playedAt"];
@@ -544,11 +562,15 @@ export declare const mediaGroups: {
544
562
  type: 'string';
545
563
  minLength?: number | undefined;
546
564
  maxLength: number;
565
+ } & {
566
+ readonly 'x-kind': "url";
547
567
  };
548
568
  readonly did: {
549
569
  type: 'string';
550
570
  minLength?: number | undefined;
551
571
  maxLength: number;
572
+ } & {
573
+ readonly 'x-kind': "did";
552
574
  };
553
575
  readonly checked: {
554
576
  readonly type: "boolean";
@@ -561,6 +583,8 @@ export declare const mediaGroups: {
561
583
  type: 'string';
562
584
  minLength?: number | undefined;
563
585
  maxLength: number;
586
+ } & {
587
+ readonly 'x-kind': "position";
564
588
  };
565
589
  };
566
590
  };
@@ -633,11 +657,15 @@ export declare const mediaGroups: {
633
657
  };
634
658
  };
635
659
  required: readonly ["hash", "size", "mime"];
660
+ } & {
661
+ readonly 'x-kind': "file";
636
662
  };
637
663
  readonly url: {
638
664
  type: 'string';
639
665
  minLength?: number | undefined;
640
666
  maxLength: number;
667
+ } & {
668
+ readonly 'x-kind': "url";
641
669
  };
642
670
  readonly alt: {
643
671
  type: 'string';
@@ -663,6 +691,8 @@ export declare const mediaGroups: {
663
691
  type: 'string';
664
692
  minLength?: number | undefined;
665
693
  maxLength: number;
694
+ } & {
695
+ readonly 'x-kind': "when";
666
696
  };
667
697
  readonly place: {
668
698
  type: 'object';
@@ -758,6 +788,8 @@ export declare const mediaGroups: {
758
788
  };
759
789
  };
760
790
  required: readonly ["hash", "size", "mime"];
791
+ } & {
792
+ readonly 'x-kind': "file";
761
793
  };
762
794
  readonly captions: {
763
795
  type: 'object';
@@ -793,6 +825,8 @@ export declare const mediaGroups: {
793
825
  };
794
826
  };
795
827
  required: readonly ["hash", "size", "mime"];
828
+ } & {
829
+ readonly 'x-kind': "file";
796
830
  };
797
831
  };
798
832
  readonly required: readonly ["name", "mime"];
@@ -946,6 +980,8 @@ export declare const mediaGroups: {
946
980
  type: 'string';
947
981
  minLength?: number | undefined;
948
982
  maxLength: number;
983
+ } & {
984
+ readonly 'x-kind': "when";
949
985
  };
950
986
  };
951
987
  readonly required: readonly ["title", "playedAt"];
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/media.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;;YAQX,KAAK;;;;;YACL,WAAW;;;;;YACX,IAAI;;;;;YACJ,IAAI;;;;;;;;;;;;;EAIR,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,uFAAuF;AACvF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAeV,EAAE;QAA0C,KAAK;;;;;;;;;;EAE1D,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwBN,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAzCR,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAMH,IAAI,EAAE,OAAO;6BAAE,QAAQ,EAAE,EAAE;6BAAE,KAAK;;;;;;;;;;;;6BAEjC,IAAI,EAAE,QAAQ;6BAAE,OAAO,EAAE,CAAC;6BAAE,WAAW,EAAE,SAAS;;;;;;;;;;;;;;;;YAYrD,IAAI;;;;;;;;;;;;;;;;;;;;;;6BAdF,IAAI,EAAE,OAAO;6BAAE,QAAQ,EAAE,EAAE;6BAAE,KAAK;;;;;;;;;;;;6BAEjC,IAAI,EAAE,QAAQ;6BAAE,OAAO,EAAE,CAAC;6BAAE,WAAW,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;YA0BrD,KAAK;;;;;;;;;;;CAQf,CAAC"}
@@ -16,6 +16,8 @@ export declare const expense: {
16
16
  type: 'string';
17
17
  minLength?: number | undefined;
18
18
  maxLength: number;
19
+ } & {
20
+ readonly 'x-kind': "did";
19
21
  };
20
22
  maxItems: number;
21
23
  };
@@ -39,11 +41,15 @@ export declare const expense: {
39
41
  };
40
42
  };
41
43
  required: readonly ["amount", "currency"];
44
+ } & {
45
+ readonly 'x-kind': "money";
42
46
  };
43
47
  readonly paidBy: {
44
48
  type: 'string';
45
49
  minLength?: number | undefined;
46
50
  maxLength: number;
51
+ } & {
52
+ readonly 'x-kind': "did";
47
53
  };
48
54
  readonly split: {
49
55
  readonly type: "array";
@@ -56,6 +62,8 @@ export declare const expense: {
56
62
  type: 'string';
57
63
  minLength?: number | undefined;
58
64
  maxLength: number;
65
+ } & {
66
+ readonly 'x-kind': "did";
59
67
  };
60
68
  share: {
61
69
  type: 'string';
@@ -70,6 +78,8 @@ export declare const expense: {
70
78
  type: 'string';
71
79
  minLength: number;
72
80
  maxLength: number;
81
+ } & {
82
+ readonly 'x-kind': "day";
73
83
  };
74
84
  readonly note: {
75
85
  type: 'string';
@@ -109,11 +119,15 @@ export declare const settlement: {
109
119
  type: 'string';
110
120
  minLength?: number | undefined;
111
121
  maxLength: number;
122
+ } & {
123
+ readonly 'x-kind': "did";
112
124
  };
113
125
  to: {
114
126
  type: 'string';
115
127
  minLength?: number | undefined;
116
128
  maxLength: number;
129
+ } & {
130
+ readonly 'x-kind': "did";
117
131
  };
118
132
  amount: {
119
133
  type: 'object';
@@ -130,11 +144,15 @@ export declare const settlement: {
130
144
  };
131
145
  };
132
146
  required: readonly ["amount", "currency"];
147
+ } & {
148
+ readonly 'x-kind': "money";
133
149
  };
134
150
  date: {
135
151
  type: 'string';
136
152
  minLength: number;
137
153
  maxLength: number;
154
+ } & {
155
+ readonly 'x-kind': "day";
138
156
  };
139
157
  note: {
140
158
  type: 'string';
@@ -215,11 +233,15 @@ export declare const transaction: {
215
233
  };
216
234
  };
217
235
  required: readonly ["amount", "currency"];
236
+ } & {
237
+ readonly 'x-kind': "money";
218
238
  };
219
239
  readonly date: {
220
240
  type: 'string';
221
241
  minLength: number;
222
242
  maxLength: number;
243
+ } & {
244
+ readonly 'x-kind': "day";
223
245
  };
224
246
  readonly payee: {
225
247
  type: 'string';
@@ -290,6 +312,8 @@ export declare const listing: {
290
312
  };
291
313
  };
292
314
  required: readonly ["amount", "currency"];
315
+ } & {
316
+ readonly 'x-kind': "money";
293
317
  };
294
318
  readonly category: {
295
319
  type: 'string';
@@ -339,6 +363,8 @@ export declare const listing: {
339
363
  };
340
364
  };
341
365
  required: readonly ["hash", "size", "mime"];
366
+ } & {
367
+ readonly 'x-kind': "file";
342
368
  };
343
369
  alt: {
344
370
  type: 'string';
@@ -346,7 +372,9 @@ export declare const listing: {
346
372
  maxLength: number;
347
373
  };
348
374
  };
349
- required: readonly ['blob'];
375
+ required: readonly ["blob"];
376
+ } & {
377
+ readonly 'x-kind': "image";
350
378
  };
351
379
  };
352
380
  readonly status: {
@@ -467,6 +495,8 @@ export declare const order: {
467
495
  type: 'string';
468
496
  minLength?: number | undefined;
469
497
  maxLength: number;
498
+ } & {
499
+ readonly 'x-kind': "did";
470
500
  };
471
501
  readonly items: {
472
502
  readonly type: "array";
@@ -500,6 +530,8 @@ export declare const order: {
500
530
  };
501
531
  };
502
532
  required: readonly ["amount", "currency"];
533
+ } & {
534
+ readonly 'x-kind': "money";
503
535
  };
504
536
  };
505
537
  readonly required: readonly ["title", "quantity"];
@@ -520,6 +552,8 @@ export declare const order: {
520
552
  };
521
553
  };
522
554
  required: readonly ["amount", "currency"];
555
+ } & {
556
+ readonly 'x-kind': "money";
523
557
  };
524
558
  readonly note: {
525
559
  type: 'string';
@@ -562,6 +596,8 @@ export declare const orderUpdate: {
562
596
  type: 'string';
563
597
  minLength?: number | undefined;
564
598
  maxLength: number;
599
+ } & {
600
+ readonly 'x-kind': "did";
565
601
  };
566
602
  status: {
567
603
  enum: ("accepted" | "cancelled" | "delivered" | "paid" | "refunded" | "shipped")[];
@@ -599,6 +635,8 @@ export declare const moneyGroups: {
599
635
  type: 'string';
600
636
  minLength?: number | undefined;
601
637
  maxLength: number;
638
+ } & {
639
+ readonly 'x-kind': "did";
602
640
  };
603
641
  maxItems: number;
604
642
  };
@@ -622,11 +660,15 @@ export declare const moneyGroups: {
622
660
  };
623
661
  };
624
662
  required: readonly ["amount", "currency"];
663
+ } & {
664
+ readonly 'x-kind': "money";
625
665
  };
626
666
  readonly paidBy: {
627
667
  type: 'string';
628
668
  minLength?: number | undefined;
629
669
  maxLength: number;
670
+ } & {
671
+ readonly 'x-kind': "did";
630
672
  };
631
673
  readonly split: {
632
674
  readonly type: "array";
@@ -639,6 +681,8 @@ export declare const moneyGroups: {
639
681
  type: 'string';
640
682
  minLength?: number | undefined;
641
683
  maxLength: number;
684
+ } & {
685
+ readonly 'x-kind': "did";
642
686
  };
643
687
  share: {
644
688
  type: 'string';
@@ -653,6 +697,8 @@ export declare const moneyGroups: {
653
697
  type: 'string';
654
698
  minLength: number;
655
699
  maxLength: number;
700
+ } & {
701
+ readonly 'x-kind': "day";
656
702
  };
657
703
  readonly note: {
658
704
  type: 'string';
@@ -689,11 +735,15 @@ export declare const moneyGroups: {
689
735
  type: 'string';
690
736
  minLength?: number | undefined;
691
737
  maxLength: number;
738
+ } & {
739
+ readonly 'x-kind': "did";
692
740
  };
693
741
  to: {
694
742
  type: 'string';
695
743
  minLength?: number | undefined;
696
744
  maxLength: number;
745
+ } & {
746
+ readonly 'x-kind': "did";
697
747
  };
698
748
  amount: {
699
749
  type: 'object';
@@ -710,11 +760,15 @@ export declare const moneyGroups: {
710
760
  };
711
761
  };
712
762
  required: readonly ["amount", "currency"];
763
+ } & {
764
+ readonly 'x-kind': "money";
713
765
  };
714
766
  date: {
715
767
  type: 'string';
716
768
  minLength: number;
717
769
  maxLength: number;
770
+ } & {
771
+ readonly 'x-kind': "day";
718
772
  };
719
773
  note: {
720
774
  type: 'string';
@@ -789,11 +843,15 @@ export declare const moneyGroups: {
789
843
  };
790
844
  };
791
845
  required: readonly ["amount", "currency"];
846
+ } & {
847
+ readonly 'x-kind': "money";
792
848
  };
793
849
  readonly date: {
794
850
  type: 'string';
795
851
  minLength: number;
796
852
  maxLength: number;
853
+ } & {
854
+ readonly 'x-kind': "day";
797
855
  };
798
856
  readonly payee: {
799
857
  type: 'string';
@@ -861,6 +919,8 @@ export declare const moneyGroups: {
861
919
  };
862
920
  };
863
921
  required: readonly ["amount", "currency"];
922
+ } & {
923
+ readonly 'x-kind': "money";
864
924
  };
865
925
  readonly category: {
866
926
  type: 'string';
@@ -910,6 +970,8 @@ export declare const moneyGroups: {
910
970
  };
911
971
  };
912
972
  required: readonly ["hash", "size", "mime"];
973
+ } & {
974
+ readonly 'x-kind': "file";
913
975
  };
914
976
  alt: {
915
977
  type: 'string';
@@ -917,7 +979,9 @@ export declare const moneyGroups: {
917
979
  maxLength: number;
918
980
  };
919
981
  };
920
- required: readonly ['blob'];
982
+ required: readonly ["blob"];
983
+ } & {
984
+ readonly 'x-kind': "image";
921
985
  };
922
986
  };
923
987
  readonly status: {
@@ -1032,6 +1096,8 @@ export declare const moneyGroups: {
1032
1096
  type: 'string';
1033
1097
  minLength?: number | undefined;
1034
1098
  maxLength: number;
1099
+ } & {
1100
+ readonly 'x-kind': "did";
1035
1101
  };
1036
1102
  readonly items: {
1037
1103
  readonly type: "array";
@@ -1065,6 +1131,8 @@ export declare const moneyGroups: {
1065
1131
  };
1066
1132
  };
1067
1133
  required: readonly ["amount", "currency"];
1134
+ } & {
1135
+ readonly 'x-kind': "money";
1068
1136
  };
1069
1137
  };
1070
1138
  readonly required: readonly ["title", "quantity"];
@@ -1085,6 +1153,8 @@ export declare const moneyGroups: {
1085
1153
  };
1086
1154
  };
1087
1155
  required: readonly ["amount", "currency"];
1156
+ } & {
1157
+ readonly 'x-kind': "money";
1088
1158
  };
1089
1159
  readonly note: {
1090
1160
  type: 'string';
@@ -1124,6 +1194,8 @@ export declare const moneyGroups: {
1124
1194
  type: 'string';
1125
1195
  minLength?: number | undefined;
1126
1196
  maxLength: number;
1197
+ } & {
1198
+ readonly 'x-kind': "did";
1127
1199
  };
1128
1200
  status: {
1129
1201
  enum: ("accepted" | "cancelled" | "delivered" | "paid" | "refunded" | "shipped")[];
@@ -1 +1 @@
1
- {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/money.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmBR,GAA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