hububb-models 1.0.73 → 1.0.74
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/schemas/thread.d.ts +22 -0
- package/dist/schemas/thread.js +4 -0
- package/package.json +1 -1
package/dist/schemas/thread.d.ts
CHANGED
@@ -155,6 +155,8 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
155
155
|
body: import("zod").ZodString;
|
156
156
|
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
|
157
157
|
lastSeen: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
|
158
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
159
|
+
externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
158
160
|
}, "strip", import("zod").ZodTypeAny, {
|
159
161
|
id: string;
|
160
162
|
body: string;
|
@@ -163,6 +165,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
163
165
|
authorId: string;
|
164
166
|
contentType: string;
|
165
167
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
168
|
+
source?: string | undefined;
|
166
169
|
author?: {
|
167
170
|
id: string;
|
168
171
|
email: string;
|
@@ -194,6 +197,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
194
197
|
favorites?: string[] | undefined;
|
195
198
|
} | undefined;
|
196
199
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
200
|
+
externalMessageId?: string | undefined;
|
197
201
|
}, {
|
198
202
|
id: string;
|
199
203
|
body: string;
|
@@ -202,6 +206,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
202
206
|
authorId: string;
|
203
207
|
contentType: string;
|
204
208
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
209
|
+
source?: string | undefined;
|
205
210
|
author?: {
|
206
211
|
id: string;
|
207
212
|
email: string;
|
@@ -233,6 +238,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
233
238
|
favorites?: string[] | undefined;
|
234
239
|
} | undefined;
|
235
240
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
241
|
+
externalMessageId?: string | undefined;
|
236
242
|
}>;
|
237
243
|
export declare const ChatThreadSchema: import("zod").ZodObject<{
|
238
244
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -395,6 +401,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
395
401
|
body: import("zod").ZodString;
|
396
402
|
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
|
397
403
|
lastSeen: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
|
404
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
405
|
+
externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
398
406
|
}, "strip", import("zod").ZodTypeAny, {
|
399
407
|
id: string;
|
400
408
|
body: string;
|
@@ -403,6 +411,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
403
411
|
authorId: string;
|
404
412
|
contentType: string;
|
405
413
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
414
|
+
source?: string | undefined;
|
406
415
|
author?: {
|
407
416
|
id: string;
|
408
417
|
email: string;
|
@@ -434,6 +443,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
434
443
|
favorites?: string[] | undefined;
|
435
444
|
} | undefined;
|
436
445
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
446
|
+
externalMessageId?: string | undefined;
|
437
447
|
}, {
|
438
448
|
id: string;
|
439
449
|
body: string;
|
@@ -442,6 +452,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
442
452
|
authorId: string;
|
443
453
|
contentType: string;
|
444
454
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
455
|
+
source?: string | undefined;
|
445
456
|
author?: {
|
446
457
|
id: string;
|
447
458
|
email: string;
|
@@ -473,6 +484,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
473
484
|
favorites?: string[] | undefined;
|
474
485
|
} | undefined;
|
475
486
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
487
|
+
externalMessageId?: string | undefined;
|
476
488
|
}>>;
|
477
489
|
participantIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
478
490
|
participants: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
@@ -625,6 +637,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
625
637
|
}>, "many">>;
|
626
638
|
type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
|
627
639
|
source: import("zod").ZodOptional<import("zod").ZodString>;
|
640
|
+
externalThreadId: import("zod").ZodOptional<import("zod").ZodString>;
|
641
|
+
externalSource: import("zod").ZodOptional<import("zod").ZodString>;
|
628
642
|
}, "strip", import("zod").ZodTypeAny, {
|
629
643
|
type: "ONE_TO_ONE" | "GROUP";
|
630
644
|
createdAt: import("@firebase/firestore").Timestamp;
|
@@ -640,6 +654,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
640
654
|
authorId: string;
|
641
655
|
contentType: string;
|
642
656
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
657
|
+
source?: string | undefined;
|
643
658
|
author?: {
|
644
659
|
id: string;
|
645
660
|
email: string;
|
@@ -671,6 +686,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
671
686
|
favorites?: string[] | undefined;
|
672
687
|
} | undefined;
|
673
688
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
689
|
+
externalMessageId?: string | undefined;
|
674
690
|
} | undefined;
|
675
691
|
participants?: {
|
676
692
|
id: string;
|
@@ -702,6 +718,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
702
718
|
klevioId?: string | undefined;
|
703
719
|
favorites?: string[] | undefined;
|
704
720
|
}[] | undefined;
|
721
|
+
externalThreadId?: string | undefined;
|
722
|
+
externalSource?: string | undefined;
|
705
723
|
}, {
|
706
724
|
type: "ONE_TO_ONE" | "GROUP";
|
707
725
|
createdAt: import("@firebase/firestore").Timestamp;
|
@@ -717,6 +735,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
717
735
|
authorId: string;
|
718
736
|
contentType: string;
|
719
737
|
seen: Record<string, import("@firebase/firestore").Timestamp>;
|
738
|
+
source?: string | undefined;
|
720
739
|
author?: {
|
721
740
|
id: string;
|
722
741
|
email: string;
|
@@ -748,6 +767,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
748
767
|
favorites?: string[] | undefined;
|
749
768
|
} | undefined;
|
750
769
|
lastSeen?: import("@firebase/firestore").Timestamp | undefined;
|
770
|
+
externalMessageId?: string | undefined;
|
751
771
|
} | undefined;
|
752
772
|
participants?: {
|
753
773
|
id: string;
|
@@ -779,4 +799,6 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
779
799
|
klevioId?: string | undefined;
|
780
800
|
favorites?: string[] | undefined;
|
781
801
|
}[] | undefined;
|
802
|
+
externalThreadId?: string | undefined;
|
803
|
+
externalSource?: string | undefined;
|
782
804
|
}>;
|
package/dist/schemas/thread.js
CHANGED
@@ -15,6 +15,8 @@ exports.ChatMessageSchema = (0, zod_1.object)({
|
|
15
15
|
body: (0, zod_1.string)(),
|
16
16
|
seen: SeenBySchema,
|
17
17
|
lastSeen: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
18
|
+
source: (0, zod_1.optional)((0, zod_1.string)()),
|
19
|
+
externalMessageId: (0, zod_1.optional)((0, zod_1.string)()),
|
18
20
|
});
|
19
21
|
exports.ChatThreadSchema = (0, zod_1.object)({
|
20
22
|
id: (0, zod_1.optional)((0, zod_1.string)()),
|
@@ -25,4 +27,6 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
25
27
|
participants: (0, zod_1.optional)((0, zod_1.array)(user_1.UserSchema)),
|
26
28
|
type: (0, zod_1.union)([(0, zod_1.literal)("ONE_TO_ONE"), (0, zod_1.literal)("GROUP")]),
|
27
29
|
source: (0, zod_1.optional)((0, zod_1.string)()),
|
30
|
+
externalThreadId: (0, zod_1.optional)((0, zod_1.string)()),
|
31
|
+
externalSource: (0, zod_1.optional)((0, zod_1.string)()),
|
28
32
|
});
|