@cossistant/types 0.0.22 → 0.0.24
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/api/conversation.d.ts +8 -8
- package/api/timeline-item.d.ts +6 -6
- package/api/timeline-item.d.ts.map +1 -1
- package/api/upload.d.ts.map +1 -1
- package/api/visitor.d.ts.map +1 -1
- package/core.d.ts.map +1 -1
- package/package.json +1 -1
- package/realtime-events.d.ts +73 -4
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +2 -2
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +6 -0
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/contact.js +7 -4
- package/trpc/contact.js.map +1 -1
- package/trpc/conversation.d.ts +145 -7
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/conversation.js +1 -0
- package/trpc/conversation.js.map +1 -1
- package/trpc/visitor.d.ts +1 -1
- package/util.d.ts.map +1 -1
package/api/conversation.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ declare const createConversationRequestSchema: ZodObject<{
|
|
|
29
29
|
}, $strip>, ZodObject<{
|
|
30
30
|
type: ZodLiteral<"event">;
|
|
31
31
|
eventType: ZodEnum<{
|
|
32
|
+
resolved: "resolved";
|
|
32
33
|
assigned: "assigned";
|
|
33
34
|
unassigned: "unassigned";
|
|
34
35
|
participant_requested: "participant_requested";
|
|
@@ -38,7 +39,6 @@ declare const createConversationRequestSchema: ZodObject<{
|
|
|
38
39
|
priority_changed: "priority_changed";
|
|
39
40
|
tag_added: "tag_added";
|
|
40
41
|
tag_removed: "tag_removed";
|
|
41
|
-
resolved: "resolved";
|
|
42
42
|
reopened: "reopened";
|
|
43
43
|
visitor_blocked: "visitor_blocked";
|
|
44
44
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -102,6 +102,7 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
102
102
|
}, $strip>, ZodObject<{
|
|
103
103
|
type: ZodLiteral<"event">;
|
|
104
104
|
eventType: ZodEnum<{
|
|
105
|
+
resolved: "resolved";
|
|
105
106
|
assigned: "assigned";
|
|
106
107
|
unassigned: "unassigned";
|
|
107
108
|
participant_requested: "participant_requested";
|
|
@@ -111,7 +112,6 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
111
112
|
priority_changed: "priority_changed";
|
|
112
113
|
tag_added: "tag_added";
|
|
113
114
|
tag_removed: "tag_removed";
|
|
114
|
-
resolved: "resolved";
|
|
115
115
|
reopened: "reopened";
|
|
116
116
|
visitor_blocked: "visitor_blocked";
|
|
117
117
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -158,8 +158,8 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
158
158
|
visitorId: ZodString;
|
|
159
159
|
websiteId: ZodString;
|
|
160
160
|
status: ZodDefault<ZodEnum<{
|
|
161
|
-
resolved: "resolved";
|
|
162
161
|
open: "open";
|
|
162
|
+
resolved: "resolved";
|
|
163
163
|
spam: "spam";
|
|
164
164
|
}>>;
|
|
165
165
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
@@ -184,6 +184,7 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
184
184
|
}, $strip>, ZodObject<{
|
|
185
185
|
type: ZodLiteral<"event">;
|
|
186
186
|
eventType: ZodEnum<{
|
|
187
|
+
resolved: "resolved";
|
|
187
188
|
assigned: "assigned";
|
|
188
189
|
unassigned: "unassigned";
|
|
189
190
|
participant_requested: "participant_requested";
|
|
@@ -193,7 +194,6 @@ declare const createConversationResponseSchema: ZodObject<{
|
|
|
193
194
|
priority_changed: "priority_changed";
|
|
194
195
|
tag_added: "tag_added";
|
|
195
196
|
tag_removed: "tag_removed";
|
|
196
|
-
resolved: "resolved";
|
|
197
197
|
reopened: "reopened";
|
|
198
198
|
visitor_blocked: "visitor_blocked";
|
|
199
199
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -262,8 +262,8 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
262
262
|
visitorId: ZodString;
|
|
263
263
|
websiteId: ZodString;
|
|
264
264
|
status: ZodDefault<ZodEnum<{
|
|
265
|
-
resolved: "resolved";
|
|
266
265
|
open: "open";
|
|
266
|
+
resolved: "resolved";
|
|
267
267
|
spam: "spam";
|
|
268
268
|
}>>;
|
|
269
269
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
@@ -288,6 +288,7 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
288
288
|
}, $strip>, ZodObject<{
|
|
289
289
|
type: ZodLiteral<"event">;
|
|
290
290
|
eventType: ZodEnum<{
|
|
291
|
+
resolved: "resolved";
|
|
291
292
|
assigned: "assigned";
|
|
292
293
|
unassigned: "unassigned";
|
|
293
294
|
participant_requested: "participant_requested";
|
|
@@ -297,7 +298,6 @@ declare const listConversationsResponseSchema: ZodObject<{
|
|
|
297
298
|
priority_changed: "priority_changed";
|
|
298
299
|
tag_added: "tag_added";
|
|
299
300
|
tag_removed: "tag_removed";
|
|
300
|
-
resolved: "resolved";
|
|
301
301
|
reopened: "reopened";
|
|
302
302
|
visitor_blocked: "visitor_blocked";
|
|
303
303
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -359,8 +359,8 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
359
359
|
visitorId: ZodString;
|
|
360
360
|
websiteId: ZodString;
|
|
361
361
|
status: ZodDefault<ZodEnum<{
|
|
362
|
-
resolved: "resolved";
|
|
363
362
|
open: "open";
|
|
363
|
+
resolved: "resolved";
|
|
364
364
|
spam: "spam";
|
|
365
365
|
}>>;
|
|
366
366
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
@@ -385,6 +385,7 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
385
385
|
}, $strip>, ZodObject<{
|
|
386
386
|
type: ZodLiteral<"event">;
|
|
387
387
|
eventType: ZodEnum<{
|
|
388
|
+
resolved: "resolved";
|
|
388
389
|
assigned: "assigned";
|
|
389
390
|
unassigned: "unassigned";
|
|
390
391
|
participant_requested: "participant_requested";
|
|
@@ -394,7 +395,6 @@ declare const getConversationResponseSchema: ZodObject<{
|
|
|
394
395
|
priority_changed: "priority_changed";
|
|
395
396
|
tag_added: "tag_added";
|
|
396
397
|
tag_removed: "tag_removed";
|
|
397
|
-
resolved: "resolved";
|
|
398
398
|
reopened: "reopened";
|
|
399
399
|
visitor_blocked: "visitor_blocked";
|
|
400
400
|
visitor_unblocked: "visitor_unblocked";
|
package/api/timeline-item.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare const timelineFileSchema: ZodObject<{
|
|
|
28
28
|
declare const timelinePartEventSchema: ZodObject<{
|
|
29
29
|
type: ZodLiteral<"event">;
|
|
30
30
|
eventType: ZodEnum<{
|
|
31
|
+
resolved: "resolved";
|
|
31
32
|
assigned: "assigned";
|
|
32
33
|
unassigned: "unassigned";
|
|
33
34
|
participant_requested: "participant_requested";
|
|
@@ -37,7 +38,6 @@ declare const timelinePartEventSchema: ZodObject<{
|
|
|
37
38
|
priority_changed: "priority_changed";
|
|
38
39
|
tag_added: "tag_added";
|
|
39
40
|
tag_removed: "tag_removed";
|
|
40
|
-
resolved: "resolved";
|
|
41
41
|
reopened: "reopened";
|
|
42
42
|
visitor_blocked: "visitor_blocked";
|
|
43
43
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -63,6 +63,7 @@ declare const timelineItemPartsSchema: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
|
63
63
|
}, $strip>, ZodObject<{
|
|
64
64
|
type: ZodLiteral<"event">;
|
|
65
65
|
eventType: ZodEnum<{
|
|
66
|
+
resolved: "resolved";
|
|
66
67
|
assigned: "assigned";
|
|
67
68
|
unassigned: "unassigned";
|
|
68
69
|
participant_requested: "participant_requested";
|
|
@@ -72,7 +73,6 @@ declare const timelineItemPartsSchema: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
|
72
73
|
priority_changed: "priority_changed";
|
|
73
74
|
tag_added: "tag_added";
|
|
74
75
|
tag_removed: "tag_removed";
|
|
75
|
-
resolved: "resolved";
|
|
76
76
|
reopened: "reopened";
|
|
77
77
|
visitor_blocked: "visitor_blocked";
|
|
78
78
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -126,6 +126,7 @@ declare const timelineItemSchema: ZodObject<{
|
|
|
126
126
|
}, $strip>, ZodObject<{
|
|
127
127
|
type: ZodLiteral<"event">;
|
|
128
128
|
eventType: ZodEnum<{
|
|
129
|
+
resolved: "resolved";
|
|
129
130
|
assigned: "assigned";
|
|
130
131
|
unassigned: "unassigned";
|
|
131
132
|
participant_requested: "participant_requested";
|
|
@@ -135,7 +136,6 @@ declare const timelineItemSchema: ZodObject<{
|
|
|
135
136
|
priority_changed: "priority_changed";
|
|
136
137
|
tag_added: "tag_added";
|
|
137
138
|
tag_removed: "tag_removed";
|
|
138
|
-
resolved: "resolved";
|
|
139
139
|
reopened: "reopened";
|
|
140
140
|
visitor_blocked: "visitor_blocked";
|
|
141
141
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -209,6 +209,7 @@ declare const getConversationTimelineItemsResponseSchema: ZodObject<{
|
|
|
209
209
|
}, $strip>, ZodObject<{
|
|
210
210
|
type: ZodLiteral<"event">;
|
|
211
211
|
eventType: ZodEnum<{
|
|
212
|
+
resolved: "resolved";
|
|
212
213
|
assigned: "assigned";
|
|
213
214
|
unassigned: "unassigned";
|
|
214
215
|
participant_requested: "participant_requested";
|
|
@@ -218,7 +219,6 @@ declare const getConversationTimelineItemsResponseSchema: ZodObject<{
|
|
|
218
219
|
priority_changed: "priority_changed";
|
|
219
220
|
tag_added: "tag_added";
|
|
220
221
|
tag_removed: "tag_removed";
|
|
221
|
-
resolved: "resolved";
|
|
222
222
|
reopened: "reopened";
|
|
223
223
|
visitor_blocked: "visitor_blocked";
|
|
224
224
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -276,6 +276,7 @@ declare const sendTimelineItemRequestSchema: ZodObject<{
|
|
|
276
276
|
}, $strip>, ZodObject<{
|
|
277
277
|
type: ZodLiteral<"event">;
|
|
278
278
|
eventType: ZodEnum<{
|
|
279
|
+
resolved: "resolved";
|
|
279
280
|
assigned: "assigned";
|
|
280
281
|
unassigned: "unassigned";
|
|
281
282
|
participant_requested: "participant_requested";
|
|
@@ -285,7 +286,6 @@ declare const sendTimelineItemRequestSchema: ZodObject<{
|
|
|
285
286
|
priority_changed: "priority_changed";
|
|
286
287
|
tag_added: "tag_added";
|
|
287
288
|
tag_removed: "tag_removed";
|
|
288
|
-
resolved: "resolved";
|
|
289
289
|
reopened: "reopened";
|
|
290
290
|
visitor_blocked: "visitor_blocked";
|
|
291
291
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -352,6 +352,7 @@ declare const sendTimelineItemResponseSchema: ZodObject<{
|
|
|
352
352
|
}, $strip>, ZodObject<{
|
|
353
353
|
type: ZodLiteral<"event">;
|
|
354
354
|
eventType: ZodEnum<{
|
|
355
|
+
resolved: "resolved";
|
|
355
356
|
assigned: "assigned";
|
|
356
357
|
unassigned: "unassigned";
|
|
357
358
|
participant_requested: "participant_requested";
|
|
@@ -361,7 +362,6 @@ declare const sendTimelineItemResponseSchema: ZodObject<{
|
|
|
361
362
|
priority_changed: "priority_changed";
|
|
362
363
|
tag_added: "tag_added";
|
|
363
364
|
tag_removed: "tag_removed";
|
|
364
|
-
resolved: "resolved";
|
|
365
365
|
reopened: "reopened";
|
|
366
366
|
visitor_blocked: "visitor_blocked";
|
|
367
367
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQM,yBAAuB;;;;;;EAAvB,KAAA,aAAA,UAsBJ,CAAA;;;cAEI,wBAAsB;;;;cAStB,oBAAkB;;;;;;CAjCK,QAAA,CAAA;cAmDvB,uBAnDuB,EAmDA,SAnDA,CAAA;EAwBvB,IAAA,YAAA,CAAA,OAOJ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X,EAsBgC,
|
|
1
|
+
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/api/upload.ts"],"sourcesContent":[],"mappings":";;;;;;cAIa,4BAA0B;cAK1B,uBAAqB;cAKrB,4BAA0B;cAK1B,oBAAkB;cAKlB,uBAAqB;AApBrB,cAyBA,qBAtBX,EAsBgC,SAtBhC;AAEW,cAyBA,gBAtBX,EAsB2B,SAtB3B;AAEW,cA0BA,oBAvBX,EAuB+B,SA1BM;AAK1B,cAgCA,yBAhCkB,EAgCO,SA7BpC;AAEW,cA2CA,6BAxCX,EAwCwC,SAxCxC,CAAA;EAEW,IAAA,YAAA,CAAA,cAGX,CAAA;EAEW,cAAA,WAIX;EAEW,cAAA,WASV;EAEU,SAAA,WAAA;AAgBb,CAAA,QAAa,CAAA;cAWA,uBAAqB;;;;;CAXQ,QAAA,CAAA;AAAA,cAsB7B,wBAtB6B,EAsBL,SAtBK,CAAA;EAW7B,IAAA,YAAA,CAAA,SASV,CAAA;;;;;cAaU,0BAAwB;EAtBH,IAAA,YAAA,CAAA,SAAA,CAAA;EAAA,SAAA,WAAA;EAWrB,cAAA,WASV;;;cAaU,mBAAiB,uBAAA;;;EAtBO,cAAA,WAAA;EAAA,SAAA,WAAA;AAWrC,CAAA,QAAa,CAAA,WAAA,CASV;;;;;;EATkC,IAAA,YAAA,CAAA,SAAA,CAAA;EAAA,SAAA,WAAA;EAWxB,cAAA,WAUV;;;;;;EAV2B,SAAA,WAAA;;cAYjB,gCAA8B;;;;;;;;;;;;;;;;;IAZb,SAAA,WAAA;EAAA,CAAA,QAAA,CAAA,WAAA,CAAA;IAYjB,IAAA,YAAA,CAAA,SAAA,CA8BV;;;;;;;;;;;KAES,wBAAA,GAA2B,cAC/B;cAGK,iCAA+B;;;;;;;;KAmChC,yBAAA,GAA4B,cAChC"}
|
package/api/visitor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.d.ts","names":[],"sources":["../../src/api/visitor.ts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CAAA,OAgCS,2BAhCT,CAAA;AAQrB,KA0BD,eAAA,GAAkB,MAJ5B,CAAA,OAI2C,qBAJ3C,CAAA;;;;cASW,4BAA0B;;;;;;;EA/BC,SAAA,aAAA,UAAA,CAAA;EAAA,MAAA,aAAA,UAAA,CAAA;EAwB5B,UAAA,aAAa,QAAkB,CAAA;IAE/B,OAAA,EAAA,SAAe;IAKd,OAAA,EAAA,SAAA;;;;;;;;;;;;;;;;;KAwJD,oBAAA,GAAuB,cAAe;cAErC,oCAAkC;;;KAOnC,4BAAA,GAA+B,cACnC;cAGK,sBAAoB;;;;;;;;;;;;;;;;;cA2BpB,uBAAqB;;;;;;;;;;;;;EAhMK,QAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAwJ3B,QAAA,aAAoB,UAAkB,CAAA;EAErC,QAAA,aAAA,UAAA,CAAA;;;;;;;;;;;EAAkC,OAAA,aAAA,UAAA,CAAA;IAAA,EAAA,SAAA;IAOnC,UAAA,aAAA,UAA4B,CAAA;IAI3B,IAAA,aAsBX,UAAA,CAAA;;;;;;;;;;;;KAkHU,OAAA,GAAU,cAAe;KACzB,eAAA,GAAkB;;;;cAKjB,6BAA2B;;;;;IA9IP,EAAA,SAAA;IAAA,IAAA,aAAA,UAAA,CAAA;IA2BpB,KAAA,aA2GX,UAAA,CAAA;;;;;KAiCU,aAAA,GAAgB,cAAe;KAC/B,qBAAA,GAAwB"}
|
package/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","names":["errors","schemas","Class","ZodTrait","$constructor","T","D","NEVER","$brand","$ZodBranded","Brand","SomeType","output","Record","$ZodAsyncError","Error","$ZodEncodeError","input","infer","$ZodConfig","$ZodErrorMap","globalConfig","config","Partial"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/core.d.cts"],"sourcesContent":["import type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nimport type { Class } from \"./util.cjs\";\ntype ZodTrait = {\n _zod: {\n def: any;\n [k: string]: any;\n };\n};\nexport interface $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]> {\n new (def: D): T;\n init(inst: T, def: D): asserts inst is T;\n}\n/** A special constant with type `never` */\nexport declare const NEVER: never;\nexport declare function $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]>(name: string, initializer: (inst: T, def: D) => void, params?: {\n Parent?: typeof Class;\n}): $constructor<T, D>;\nexport declare const $brand: unique symbol;\nexport type $brand<T extends string | number | symbol = string | number | symbol> = {\n [$brand]: {\n [k in T]: true;\n };\n};\nexport type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<\"_zod\", Record<\"output\", output<T> & $brand<Brand>>>;\nexport declare class $ZodAsyncError extends Error {\n constructor();\n}\nexport declare class $ZodEncodeError extends Error {\n constructor(name: string);\n}\nexport type input<T> = T extends {\n _zod: {\n input: any;\n };\n} ? T[\"_zod\"][\"input\"] : unknown;\nexport type output<T> = T extends {\n _zod: {\n output: any;\n };\n} ? T[\"_zod\"][\"output\"] : unknown;\nexport type { output as infer };\nexport interface $ZodConfig {\n /** Custom error map. Overrides `config().localeError`. */\n customError?: errors.$ZodErrorMap | undefined;\n /** Localized error map. Lowest priority. */\n localeError?: errors.$ZodErrorMap | undefined;\n /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */\n jitless?: boolean | undefined;\n}\nexport declare const globalConfig: $ZodConfig;\nexport declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;KAGKG,QAAAA;EAAAA,IAAAA,EAAAA;IAMYC,GAAAA,EAAAA,GAAAA;IAAuBD,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;EAAcE,CAAAA;CACxCC;AAAID,UADDD,YACCC,CAAAA,UADsBF,QACtBE,EAAAA,IADoCA,CACpCA,CAAAA,MAAAA,CAAAA,CAAAA,KAAAA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,GAWpGR,CAXoG,CAAA,MAAA,CAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAO5FY,KAKAL,MALK,
|
|
1
|
+
{"version":3,"file":"core.d.ts","names":["errors","schemas","Class","ZodTrait","$constructor","T","D","NEVER","$brand","$ZodBranded","Brand","SomeType","output","Record","$ZodAsyncError","Error","$ZodEncodeError","input","infer","$ZodConfig","$ZodErrorMap","globalConfig","config","Partial"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/core.d.cts"],"sourcesContent":["import type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nimport type { Class } from \"./util.cjs\";\ntype ZodTrait = {\n _zod: {\n def: any;\n [k: string]: any;\n };\n};\nexport interface $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]> {\n new (def: D): T;\n init(inst: T, def: D): asserts inst is T;\n}\n/** A special constant with type `never` */\nexport declare const NEVER: never;\nexport declare function $constructor<T extends ZodTrait, D = T[\"_zod\"][\"def\"]>(name: string, initializer: (inst: T, def: D) => void, params?: {\n Parent?: typeof Class;\n}): $constructor<T, D>;\nexport declare const $brand: unique symbol;\nexport type $brand<T extends string | number | symbol = string | number | symbol> = {\n [$brand]: {\n [k in T]: true;\n };\n};\nexport type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<\"_zod\", Record<\"output\", output<T> & $brand<Brand>>>;\nexport declare class $ZodAsyncError extends Error {\n constructor();\n}\nexport declare class $ZodEncodeError extends Error {\n constructor(name: string);\n}\nexport type input<T> = T extends {\n _zod: {\n input: any;\n };\n} ? T[\"_zod\"][\"input\"] : unknown;\nexport type output<T> = T extends {\n _zod: {\n output: any;\n };\n} ? T[\"_zod\"][\"output\"] : unknown;\nexport type { output as infer };\nexport interface $ZodConfig {\n /** Custom error map. Overrides `config().localeError`. */\n customError?: errors.$ZodErrorMap | undefined;\n /** Localized error map. Lowest priority. */\n localeError?: errors.$ZodErrorMap | undefined;\n /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */\n jitless?: boolean | undefined;\n}\nexport declare const globalConfig: $ZodConfig;\nexport declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;KAGKG,QAAAA;EAAAA,IAAAA,EAAAA;IAMYC,GAAAA,EAAAA,GAAAA;IAAuBD,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;EAAcE,CAAAA;CACxCC;AAAID,UADDD,YACCC,CAAAA,UADsBF,QACtBE,EAAAA,IADoCA,CACpCA,CAAAA,MAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA;EACHA,KAAAA,GAAAA,EADDC,CACCD,CAAAA,EADGA,CACHA;EAAQC,IAAAA,CAAAA,IAAAA,EAARD,CAAQC,EAAAA,GAAAA,EAAAA,CAAAA,CAAAA,EAAAA,QAAAA,IAAAA,IAAoBD,CAApBC;;AAIwBH,iBAAvBC,YAAuBD,CAAAA,UAAAA,QAAAA,EAAAA,IAAcE,CAAdF,CAAAA,MAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,IAAAA,EAAAA,MAAAA,EAAAA,WAAAA,EAAAA,CAAAA,IAAAA,EAAkEE,CAAlEF,EAAAA,GAAAA,EAA0EG,CAA1EH,EAAAA,GAAAA,IAAAA,EAAAA,MAAkEE,CAAlEF,EAAAA;EAAcE,MAAAA,CAAAA,EAAAA,OACzCH,KADyCG;CAAoDA,CAAAA,EAE7GD,YAF6GC,CAEhGA,CAFgGA,EAE7FC,CAF6FD,CAAAA;AAAQC,cAGpGE,MAHoGF,EAAAA,OAAAA,MAAAA;AACrGJ,KAGRM,MAHQN,CAAAA,UAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,CAAAA,GAAAA;EACHG,CAGZG,MAAAA,CAHYH,EAAAA,QAIHA,CAJMC,GAAAA,IAAAA,EAAhBF;CAAY;AACKI,KAMTC,WAN8B,CAAA,UAMRR,QANQ,EAAA,cAAA,MAAA,GAAA,MAAA,GAAA,MAAA,CAAA,GAMoDI,CANpD,GAMwDQ,MANxD,CAAA,MAAA,EAMuEA,MANvE,CAAA,QAAA,EAMwFD,MANxF,CAM+FP,CAN/F,CAAA,GAMoGG,MANpG,CAM2GE,KAN3G,CAAA,CAAA,CAAA;AAM2GA,KAOzIO,KAPyIP,CAAAA,CAAAA,CAAAA,GAO9HL,CAP8HK,SAAAA;EAAPF,IAAAA,EAAAA;IAA7BK,KAAAA,EAAAA,GAAAA;EAAfA,CAAAA;CAAM,GAWpGR,CAXoG,CAAA,MAAA,CAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AAO5FY,KAKAL,MALK,CAAAP,CAAAA,CAAAA,GAKOA,CALP,SAIZ;EACOO,IAAAA,EAAAA;;;IAIRP"}
|
package/package.json
CHANGED
package/realtime-events.d.ts
CHANGED
|
@@ -116,8 +116,8 @@ declare const realtimeSchema: {
|
|
|
116
116
|
visitorId: ZodString;
|
|
117
117
|
websiteId: ZodString;
|
|
118
118
|
status: ZodDefault<ZodEnum<{
|
|
119
|
-
resolved: "resolved";
|
|
120
119
|
open: "open";
|
|
120
|
+
resolved: "resolved";
|
|
121
121
|
spam: "spam";
|
|
122
122
|
}>>;
|
|
123
123
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
@@ -142,6 +142,7 @@ declare const realtimeSchema: {
|
|
|
142
142
|
}, $strip>, ZodObject<{
|
|
143
143
|
type: ZodLiteral<"event">;
|
|
144
144
|
eventType: ZodEnum<{
|
|
145
|
+
resolved: "resolved";
|
|
145
146
|
assigned: "assigned";
|
|
146
147
|
unassigned: "unassigned";
|
|
147
148
|
participant_requested: "participant_requested";
|
|
@@ -151,7 +152,6 @@ declare const realtimeSchema: {
|
|
|
151
152
|
priority_changed: "priority_changed";
|
|
152
153
|
tag_added: "tag_added";
|
|
153
154
|
tag_removed: "tag_removed";
|
|
154
|
-
resolved: "resolved";
|
|
155
155
|
reopened: "reopened";
|
|
156
156
|
visitor_blocked: "visitor_blocked";
|
|
157
157
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -194,8 +194,8 @@ declare const realtimeSchema: {
|
|
|
194
194
|
header: ZodObject<{
|
|
195
195
|
id: ZodString;
|
|
196
196
|
status: ZodEnum<{
|
|
197
|
-
resolved: "resolved";
|
|
198
197
|
open: "open";
|
|
198
|
+
resolved: "resolved";
|
|
199
199
|
spam: "spam";
|
|
200
200
|
}>;
|
|
201
201
|
priority: ZodEnum<{
|
|
@@ -234,7 +234,7 @@ declare const realtimeSchema: {
|
|
|
234
234
|
deletedAt: ZodNullable<ZodString>;
|
|
235
235
|
lastMessageAt: ZodNullable<ZodString>;
|
|
236
236
|
lastSeenAt: ZodNullable<ZodString>;
|
|
237
|
-
|
|
237
|
+
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
238
238
|
id: ZodOptional<ZodString>;
|
|
239
239
|
conversationId: ZodString;
|
|
240
240
|
organizationId: ZodString;
|
|
@@ -255,6 +255,7 @@ declare const realtimeSchema: {
|
|
|
255
255
|
}, $strip>, ZodObject<{
|
|
256
256
|
type: ZodLiteral<"event">;
|
|
257
257
|
eventType: ZodEnum<{
|
|
258
|
+
resolved: "resolved";
|
|
258
259
|
assigned: "assigned";
|
|
259
260
|
unassigned: "unassigned";
|
|
260
261
|
participant_requested: "participant_requested";
|
|
@@ -264,7 +265,75 @@ declare const realtimeSchema: {
|
|
|
264
265
|
priority_changed: "priority_changed";
|
|
265
266
|
tag_added: "tag_added";
|
|
266
267
|
tag_removed: "tag_removed";
|
|
268
|
+
reopened: "reopened";
|
|
269
|
+
visitor_blocked: "visitor_blocked";
|
|
270
|
+
visitor_unblocked: "visitor_unblocked";
|
|
271
|
+
visitor_identified: "visitor_identified";
|
|
272
|
+
}>;
|
|
273
|
+
actorUserId: ZodNullable<ZodString>;
|
|
274
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
275
|
+
targetUserId: ZodNullable<ZodString>;
|
|
276
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
277
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
278
|
+
}, $strip>, ZodObject<{
|
|
279
|
+
type: ZodLiteral<"image">;
|
|
280
|
+
url: ZodString;
|
|
281
|
+
mediaType: ZodString;
|
|
282
|
+
fileName: ZodOptional<ZodString>;
|
|
283
|
+
size: ZodOptional<ZodNumber>;
|
|
284
|
+
width: ZodOptional<ZodNumber>;
|
|
285
|
+
height: ZodOptional<ZodNumber>;
|
|
286
|
+
}, $strip>, ZodObject<{
|
|
287
|
+
type: ZodLiteral<"file">;
|
|
288
|
+
url: ZodString;
|
|
289
|
+
mediaType: ZodString;
|
|
290
|
+
fileName: ZodOptional<ZodString>;
|
|
291
|
+
size: ZodOptional<ZodNumber>;
|
|
292
|
+
}, $strip>, ZodObject<{
|
|
293
|
+
type: ZodLiteral<"metadata">;
|
|
294
|
+
source: ZodEnum<{
|
|
295
|
+
email: "email";
|
|
296
|
+
widget: "widget";
|
|
297
|
+
api: "api";
|
|
298
|
+
}>;
|
|
299
|
+
}, $strip>]>>;
|
|
300
|
+
userId: ZodNullable<ZodString>;
|
|
301
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
302
|
+
visitorId: ZodNullable<ZodString>;
|
|
303
|
+
createdAt: ZodString;
|
|
304
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
305
|
+
}, $strip>>;
|
|
306
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
307
|
+
id: ZodOptional<ZodString>;
|
|
308
|
+
conversationId: ZodString;
|
|
309
|
+
organizationId: ZodString;
|
|
310
|
+
visibility: ZodEnum<{
|
|
311
|
+
private: "private";
|
|
312
|
+
public: "public";
|
|
313
|
+
}>;
|
|
314
|
+
type: ZodEnum<{
|
|
315
|
+
message: "message";
|
|
316
|
+
event: "event";
|
|
317
|
+
identification: "identification";
|
|
318
|
+
}>;
|
|
319
|
+
text: ZodNullable<ZodString>;
|
|
320
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
321
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
322
|
+
type: ZodLiteral<"text">;
|
|
323
|
+
text: ZodString;
|
|
324
|
+
}, $strip>, ZodObject<{
|
|
325
|
+
type: ZodLiteral<"event">;
|
|
326
|
+
eventType: ZodEnum<{
|
|
267
327
|
resolved: "resolved";
|
|
328
|
+
assigned: "assigned";
|
|
329
|
+
unassigned: "unassigned";
|
|
330
|
+
participant_requested: "participant_requested";
|
|
331
|
+
participant_joined: "participant_joined";
|
|
332
|
+
participant_left: "participant_left";
|
|
333
|
+
status_changed: "status_changed";
|
|
334
|
+
priority_changed: "priority_changed";
|
|
335
|
+
tag_added: "tag_added";
|
|
336
|
+
tag_removed: "tag_removed";
|
|
268
337
|
reopened: "reopened";
|
|
269
338
|
visitor_blocked: "visitor_blocked";
|
|
270
339
|
visitor_unblocked: "visitor_unblocked";
|
package/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;cAMa,mBAAiB;;;;EAAjB,MAAA,aAKX,UAAA,CAAA;;;;;;cAMW;;IAXiB,SAAA,WAAA;IAAA,cAAA,WAAA;IAWjB,SAAA,aAiEH,UAAA,CAAA
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;cAMa,mBAAiB;;;;EAAjB,MAAA,aAKX,UAAA,CAAA;;;;;;cAMW;;IAXiB,SAAA,WAAA;IAAA,cAAA,WAAA;IAWjB,SAAA,aAiEH,UAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
|
package/schemas.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ declare const conversationSchema: ZodObject<{
|
|
|
23
23
|
visitorId: ZodString;
|
|
24
24
|
websiteId: ZodString;
|
|
25
25
|
status: ZodDefault<ZodEnum<{
|
|
26
|
-
resolved: "resolved";
|
|
27
26
|
open: "open";
|
|
27
|
+
resolved: "resolved";
|
|
28
28
|
spam: "spam";
|
|
29
29
|
}>>;
|
|
30
30
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
@@ -49,6 +49,7 @@ declare const conversationSchema: ZodObject<{
|
|
|
49
49
|
}, $strip>, ZodObject<{
|
|
50
50
|
type: ZodLiteral<"event">;
|
|
51
51
|
eventType: ZodEnum<{
|
|
52
|
+
resolved: "resolved";
|
|
52
53
|
assigned: "assigned";
|
|
53
54
|
unassigned: "unassigned";
|
|
54
55
|
participant_requested: "participant_requested";
|
|
@@ -58,7 +59,6 @@ declare const conversationSchema: ZodObject<{
|
|
|
58
59
|
priority_changed: "priority_changed";
|
|
59
60
|
tag_added: "tag_added";
|
|
60
61
|
tag_removed: "tag_removed";
|
|
61
|
-
resolved: "resolved";
|
|
62
62
|
reopened: "reopened";
|
|
63
63
|
visitor_blocked: "visitor_blocked";
|
|
64
64
|
visitor_unblocked: "visitor_unblocked";
|
package/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,YAAU;;;;EAAV,MAAA,aAUX,UAAA,CAAA;;;;;;;KAEU,SAAA,GAAY,cAAe;cAE1B,oBAAkB;;;;;;EAdR,SAAA,WAAA;EAAA,MAAA,YAAA,QAAA,CAAA;IAYX,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,YAAU;;;;EAAV,MAAA,aAUX,UAAA,CAAA;;;;;;;KAEU,SAAA,GAAY,cAAe;cAE1B,oBAAkB;;;;;;EAdR,SAAA,WAAA;EAAA,MAAA,YAAA,QAAA,CAAA;IAYX,IAAA,EAAA,MAAS;IAER,QAAA,EAAA,UAgBX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;;;;;CApBJ,QAAA,CAAA;AAAA,KAgCnB,gBAAA,GAAmB,MAhCA,CAAA,OAgCe,sBAhCf,CAAA"}
|
package/trpc/contact.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ declare const contactListItemSchema: ZodObject<{
|
|
|
11
11
|
createdAt: ZodString;
|
|
12
12
|
updatedAt: ZodString;
|
|
13
13
|
visitorCount: ZodNumber;
|
|
14
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
15
|
+
contactOrganizationId: ZodNullable<ZodString>;
|
|
16
|
+
contactOrganizationName: ZodNullable<ZodString>;
|
|
14
17
|
}, $strip>;
|
|
15
18
|
type ContactListItem = output<typeof contactListItemSchema>;
|
|
16
19
|
declare const contactListVisitorStatusSchema: ZodEnum<{
|
|
@@ -28,6 +31,9 @@ declare const listContactsResponseSchema: ZodObject<{
|
|
|
28
31
|
createdAt: ZodString;
|
|
29
32
|
updatedAt: ZodString;
|
|
30
33
|
visitorCount: ZodNumber;
|
|
34
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
35
|
+
contactOrganizationId: ZodNullable<ZodString>;
|
|
36
|
+
contactOrganizationName: ZodNullable<ZodString>;
|
|
31
37
|
}, $strip>>;
|
|
32
38
|
page: ZodNumber;
|
|
33
39
|
pageSize: ZodNumber;
|
package/trpc/contact.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,uBAAqB;;;;EAArB,KAAA,aAAA,
|
|
1
|
+
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,uBAAqB;;;;EAArB,KAAA,aAAA,UAWX,CAAA;;;;;;;;KAEU,eAAA,GAAkB,cAAe;cAEhC,gCAA8B;;;;;KAM/B,wBAAA,GAA2B,cAC/B;cAGK,4BAA0B;;;IAzBL,IAAA,aAAA,UAAA,CAAA;IAAA,KAAA,aAAA,UAAA,CAAA;IAatB,KAAA,aAAe,UAAkB,CAAA;IAEhC,SAAA,WAAA;IAMD,SAAA,WAAA;IAIC,YAAA,WAKX;;;;;;;;;KAEU,oBAAA,GAAuB,cAAe;cAErC,6BAA2B;;;;;;;;;;;;;KAc5B,qBAAA,GAAwB,cAAe;AAvBZ,cAyB1B,2BAzB0B,EAyBC,SAzBD,CAAA;EAAA,OAAA,WAAA,CAAA;IAO3B,EAAA,SAAA;IAEC,UAAA,aAAA,UAYX,CAAA;;;;;;;;;;;;;;;;;;;;;IAZsC,SAAA,aAAA,UAAA,CAAA;IAAA,eAAA,aAAA,UAAA,CAAA;IAc5B,SAAA,YAAqB;EAEpB,CAAA,QAAA,CAAA,CAAA;;KAKD,qBAAA,GAAwB,cAAe"}
|
package/trpc/contact.js
CHANGED
|
@@ -9,7 +9,10 @@ const contactListItemSchema = z.object({
|
|
|
9
9
|
image: z.string().nullable(),
|
|
10
10
|
createdAt: z.string(),
|
|
11
11
|
updatedAt: z.string(),
|
|
12
|
-
visitorCount: z.number().int().min(0)
|
|
12
|
+
visitorCount: z.number().int().min(0),
|
|
13
|
+
lastSeenAt: z.string().nullable(),
|
|
14
|
+
contactOrganizationId: z.string().nullable(),
|
|
15
|
+
contactOrganizationName: z.string().nullable()
|
|
13
16
|
});
|
|
14
17
|
const contactListVisitorStatusSchema = z.enum([
|
|
15
18
|
"all",
|
|
@@ -24,14 +27,14 @@ const listContactsResponseSchema = z.object({
|
|
|
24
27
|
});
|
|
25
28
|
const contactVisitorSummarySchema = z.object({
|
|
26
29
|
id: z.ulid(),
|
|
27
|
-
lastSeenAt: z.string().
|
|
28
|
-
createdAt: z.string()
|
|
30
|
+
lastSeenAt: z.string().nullable(),
|
|
31
|
+
createdAt: z.string(),
|
|
29
32
|
browser: z.string().nullable(),
|
|
30
33
|
device: z.string().nullable(),
|
|
31
34
|
country: z.string().nullable(),
|
|
32
35
|
city: z.string().nullable(),
|
|
33
36
|
language: z.string().nullable(),
|
|
34
|
-
blockedAt: z.string().
|
|
37
|
+
blockedAt: z.string().nullable(),
|
|
35
38
|
blockedByUserId: z.string().nullable(),
|
|
36
39
|
isBlocked: z.boolean()
|
|
37
40
|
});
|
package/trpc/contact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.js","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { contactResponseSchema } from \"../api/contact\";\n\nexport const contactListItemSchema = z.object({\n\tid: z.ulid(),\n\tname: z.string().nullable(),\n\temail: z.string().nullable(),\n\timage: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tvisitorCount: z.number().int().min(0),\n});\n\nexport type ContactListItem = z.infer<typeof contactListItemSchema>;\n\nexport const contactListVisitorStatusSchema = z.enum([\n\t\"all\",\n\t\"withVisitors\",\n\t\"withoutVisitors\",\n]);\n\nexport type ContactListVisitorStatus = z.infer<\n\ttypeof contactListVisitorStatusSchema\n>;\n\nexport const listContactsResponseSchema = z.object({\n\titems: z.array(contactListItemSchema),\n\tpage: z.number().int().min(1),\n\tpageSize: z.number().int().min(1),\n\ttotalCount: z.number().int().min(0),\n});\n\nexport type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;\n\nexport const contactVisitorSummarySchema = z.object({\n\tid: z.ulid(),\n\tlastSeenAt: z.string().
|
|
1
|
+
{"version":3,"file":"contact.js","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { contactResponseSchema } from \"../api/contact\";\n\nexport const contactListItemSchema = z.object({\n\tid: z.ulid(),\n\tname: z.string().nullable(),\n\temail: z.string().nullable(),\n\timage: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tvisitorCount: z.number().int().min(0),\n\tlastSeenAt: z.string().nullable(),\n\tcontactOrganizationId: z.string().nullable(),\n\tcontactOrganizationName: z.string().nullable(),\n});\n\nexport type ContactListItem = z.infer<typeof contactListItemSchema>;\n\nexport const contactListVisitorStatusSchema = z.enum([\n\t\"all\",\n\t\"withVisitors\",\n\t\"withoutVisitors\",\n]);\n\nexport type ContactListVisitorStatus = z.infer<\n\ttypeof contactListVisitorStatusSchema\n>;\n\nexport const listContactsResponseSchema = z.object({\n\titems: z.array(contactListItemSchema),\n\tpage: z.number().int().min(1),\n\tpageSize: z.number().int().min(1),\n\ttotalCount: z.number().int().min(0),\n});\n\nexport type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;\n\nexport const contactVisitorSummarySchema = z.object({\n\tid: z.ulid(),\n\tlastSeenAt: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tbrowser: z.string().nullable(),\n\tdevice: z.string().nullable(),\n\tcountry: z.string().nullable(),\n\tcity: z.string().nullable(),\n\tlanguage: z.string().nullable(),\n\tblockedAt: z.string().nullable(),\n\tblockedByUserId: z.string().nullable(),\n\tisBlocked: z.boolean(),\n});\n\nexport type ContactVisitorSummary = z.infer<typeof contactVisitorSummarySchema>;\n\nexport const contactDetailResponseSchema = z.object({\n\tcontact: contactResponseSchema,\n\tvisitors: z.array(contactVisitorSummarySchema),\n});\n\nexport type ContactDetailResponse = z.infer<typeof contactDetailResponseSchema>;\n"],"mappings":";;;;AAGA,MAAa,wBAAwB,EAAE,OAAO;CAC7C,IAAI,EAAE,MAAM;CACZ,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACrC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,uBAAuB,EAAE,QAAQ,CAAC,UAAU;CAC5C,yBAAyB,EAAE,QAAQ,CAAC,UAAU;CAC9C,CAAC;AAIF,MAAa,iCAAiC,EAAE,KAAK;CACpD;CACA;CACA;CACA,CAAC;AAMF,MAAa,6BAA6B,EAAE,OAAO;CAClD,OAAO,EAAE,MAAM,sBAAsB;CACrC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CAC7B,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACjC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACnC,CAAC;AAIF,MAAa,8BAA8B,EAAE,OAAO;CACnD,IAAI,EAAE,MAAM;CACZ,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,WAAW,EAAE,SAAS;CACtB,CAAC;AAIF,MAAa,8BAA8B,EAAE,OAAO;CACnD,SAAS;CACT,UAAU,EAAE,MAAM,4BAA4B;CAC9C,CAAC"}
|
package/trpc/conversation.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { ZodArray, ZodBoolean, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodO
|
|
|
4
4
|
|
|
5
5
|
//#region src/trpc/conversation.d.ts
|
|
6
6
|
declare const conversationStatusSchema: ZodEnum<{
|
|
7
|
-
resolved: "resolved";
|
|
8
7
|
open: "open";
|
|
8
|
+
resolved: "resolved";
|
|
9
9
|
spam: "spam";
|
|
10
10
|
}>;
|
|
11
11
|
declare const conversationPrioritySchema: ZodEnum<{
|
|
@@ -25,8 +25,8 @@ declare const conversationRecordSchema: ZodObject<{
|
|
|
25
25
|
visitorId: ZodString;
|
|
26
26
|
websiteId: ZodString;
|
|
27
27
|
status: ZodEnum<{
|
|
28
|
-
resolved: "resolved";
|
|
29
28
|
open: "open";
|
|
29
|
+
resolved: "resolved";
|
|
30
30
|
spam: "spam";
|
|
31
31
|
}>;
|
|
32
32
|
priority: ZodEnum<{
|
|
@@ -63,8 +63,8 @@ declare const conversationMutationResponseSchema: ZodObject<{
|
|
|
63
63
|
visitorId: ZodString;
|
|
64
64
|
websiteId: ZodString;
|
|
65
65
|
status: ZodEnum<{
|
|
66
|
-
resolved: "resolved";
|
|
67
66
|
open: "open";
|
|
67
|
+
resolved: "resolved";
|
|
68
68
|
spam: "spam";
|
|
69
69
|
}>;
|
|
70
70
|
priority: ZodEnum<{
|
|
@@ -97,8 +97,8 @@ declare const conversationMutationResponseSchema: ZodObject<{
|
|
|
97
97
|
declare const conversationHeaderSchema: ZodObject<{
|
|
98
98
|
id: ZodString;
|
|
99
99
|
status: ZodEnum<{
|
|
100
|
-
resolved: "resolved";
|
|
101
100
|
open: "open";
|
|
101
|
+
resolved: "resolved";
|
|
102
102
|
spam: "spam";
|
|
103
103
|
}>;
|
|
104
104
|
priority: ZodEnum<{
|
|
@@ -137,7 +137,7 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
137
137
|
deletedAt: ZodNullable<ZodString>;
|
|
138
138
|
lastMessageAt: ZodNullable<ZodString>;
|
|
139
139
|
lastSeenAt: ZodNullable<ZodString>;
|
|
140
|
-
|
|
140
|
+
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
141
141
|
id: ZodOptional<ZodString>;
|
|
142
142
|
conversationId: ZodString;
|
|
143
143
|
organizationId: ZodString;
|
|
@@ -158,6 +158,7 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
158
158
|
}, $strip>, ZodObject<{
|
|
159
159
|
type: ZodLiteral<"event">;
|
|
160
160
|
eventType: ZodEnum<{
|
|
161
|
+
resolved: "resolved";
|
|
161
162
|
assigned: "assigned";
|
|
162
163
|
unassigned: "unassigned";
|
|
163
164
|
participant_requested: "participant_requested";
|
|
@@ -167,7 +168,75 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
167
168
|
priority_changed: "priority_changed";
|
|
168
169
|
tag_added: "tag_added";
|
|
169
170
|
tag_removed: "tag_removed";
|
|
171
|
+
reopened: "reopened";
|
|
172
|
+
visitor_blocked: "visitor_blocked";
|
|
173
|
+
visitor_unblocked: "visitor_unblocked";
|
|
174
|
+
visitor_identified: "visitor_identified";
|
|
175
|
+
}>;
|
|
176
|
+
actorUserId: ZodNullable<ZodString>;
|
|
177
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
178
|
+
targetUserId: ZodNullable<ZodString>;
|
|
179
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
180
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
181
|
+
}, $strip>, ZodObject<{
|
|
182
|
+
type: ZodLiteral<"image">;
|
|
183
|
+
url: ZodString;
|
|
184
|
+
mediaType: ZodString;
|
|
185
|
+
fileName: ZodOptional<ZodString>;
|
|
186
|
+
size: ZodOptional<ZodNumber>;
|
|
187
|
+
width: ZodOptional<ZodNumber>;
|
|
188
|
+
height: ZodOptional<ZodNumber>;
|
|
189
|
+
}, $strip>, ZodObject<{
|
|
190
|
+
type: ZodLiteral<"file">;
|
|
191
|
+
url: ZodString;
|
|
192
|
+
mediaType: ZodString;
|
|
193
|
+
fileName: ZodOptional<ZodString>;
|
|
194
|
+
size: ZodOptional<ZodNumber>;
|
|
195
|
+
}, $strip>, ZodObject<{
|
|
196
|
+
type: ZodLiteral<"metadata">;
|
|
197
|
+
source: ZodEnum<{
|
|
198
|
+
email: "email";
|
|
199
|
+
widget: "widget";
|
|
200
|
+
api: "api";
|
|
201
|
+
}>;
|
|
202
|
+
}, $strip>]>>;
|
|
203
|
+
userId: ZodNullable<ZodString>;
|
|
204
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
205
|
+
visitorId: ZodNullable<ZodString>;
|
|
206
|
+
createdAt: ZodString;
|
|
207
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
208
|
+
}, $strip>>;
|
|
209
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
210
|
+
id: ZodOptional<ZodString>;
|
|
211
|
+
conversationId: ZodString;
|
|
212
|
+
organizationId: ZodString;
|
|
213
|
+
visibility: ZodEnum<{
|
|
214
|
+
private: "private";
|
|
215
|
+
public: "public";
|
|
216
|
+
}>;
|
|
217
|
+
type: ZodEnum<{
|
|
218
|
+
message: "message";
|
|
219
|
+
event: "event";
|
|
220
|
+
identification: "identification";
|
|
221
|
+
}>;
|
|
222
|
+
text: ZodNullable<ZodString>;
|
|
223
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
224
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
225
|
+
type: ZodLiteral<"text">;
|
|
226
|
+
text: ZodString;
|
|
227
|
+
}, $strip>, ZodObject<{
|
|
228
|
+
type: ZodLiteral<"event">;
|
|
229
|
+
eventType: ZodEnum<{
|
|
170
230
|
resolved: "resolved";
|
|
231
|
+
assigned: "assigned";
|
|
232
|
+
unassigned: "unassigned";
|
|
233
|
+
participant_requested: "participant_requested";
|
|
234
|
+
participant_joined: "participant_joined";
|
|
235
|
+
participant_left: "participant_left";
|
|
236
|
+
status_changed: "status_changed";
|
|
237
|
+
priority_changed: "priority_changed";
|
|
238
|
+
tag_added: "tag_added";
|
|
239
|
+
tag_removed: "tag_removed";
|
|
171
240
|
reopened: "reopened";
|
|
172
241
|
visitor_blocked: "visitor_blocked";
|
|
173
242
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -223,8 +292,8 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
223
292
|
items: ZodArray<ZodObject<{
|
|
224
293
|
id: ZodString;
|
|
225
294
|
status: ZodEnum<{
|
|
226
|
-
resolved: "resolved";
|
|
227
295
|
open: "open";
|
|
296
|
+
resolved: "resolved";
|
|
228
297
|
spam: "spam";
|
|
229
298
|
}>;
|
|
230
299
|
priority: ZodEnum<{
|
|
@@ -263,7 +332,7 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
263
332
|
deletedAt: ZodNullable<ZodString>;
|
|
264
333
|
lastMessageAt: ZodNullable<ZodString>;
|
|
265
334
|
lastSeenAt: ZodNullable<ZodString>;
|
|
266
|
-
|
|
335
|
+
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
267
336
|
id: ZodOptional<ZodString>;
|
|
268
337
|
conversationId: ZodString;
|
|
269
338
|
organizationId: ZodString;
|
|
@@ -284,6 +353,7 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
284
353
|
}, $strip>, ZodObject<{
|
|
285
354
|
type: ZodLiteral<"event">;
|
|
286
355
|
eventType: ZodEnum<{
|
|
356
|
+
resolved: "resolved";
|
|
287
357
|
assigned: "assigned";
|
|
288
358
|
unassigned: "unassigned";
|
|
289
359
|
participant_requested: "participant_requested";
|
|
@@ -293,7 +363,75 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
293
363
|
priority_changed: "priority_changed";
|
|
294
364
|
tag_added: "tag_added";
|
|
295
365
|
tag_removed: "tag_removed";
|
|
366
|
+
reopened: "reopened";
|
|
367
|
+
visitor_blocked: "visitor_blocked";
|
|
368
|
+
visitor_unblocked: "visitor_unblocked";
|
|
369
|
+
visitor_identified: "visitor_identified";
|
|
370
|
+
}>;
|
|
371
|
+
actorUserId: ZodNullable<ZodString>;
|
|
372
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
373
|
+
targetUserId: ZodNullable<ZodString>;
|
|
374
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
375
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
376
|
+
}, $strip>, ZodObject<{
|
|
377
|
+
type: ZodLiteral<"image">;
|
|
378
|
+
url: ZodString;
|
|
379
|
+
mediaType: ZodString;
|
|
380
|
+
fileName: ZodOptional<ZodString>;
|
|
381
|
+
size: ZodOptional<ZodNumber>;
|
|
382
|
+
width: ZodOptional<ZodNumber>;
|
|
383
|
+
height: ZodOptional<ZodNumber>;
|
|
384
|
+
}, $strip>, ZodObject<{
|
|
385
|
+
type: ZodLiteral<"file">;
|
|
386
|
+
url: ZodString;
|
|
387
|
+
mediaType: ZodString;
|
|
388
|
+
fileName: ZodOptional<ZodString>;
|
|
389
|
+
size: ZodOptional<ZodNumber>;
|
|
390
|
+
}, $strip>, ZodObject<{
|
|
391
|
+
type: ZodLiteral<"metadata">;
|
|
392
|
+
source: ZodEnum<{
|
|
393
|
+
email: "email";
|
|
394
|
+
widget: "widget";
|
|
395
|
+
api: "api";
|
|
396
|
+
}>;
|
|
397
|
+
}, $strip>]>>;
|
|
398
|
+
userId: ZodNullable<ZodString>;
|
|
399
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
400
|
+
visitorId: ZodNullable<ZodString>;
|
|
401
|
+
createdAt: ZodString;
|
|
402
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
403
|
+
}, $strip>>;
|
|
404
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
405
|
+
id: ZodOptional<ZodString>;
|
|
406
|
+
conversationId: ZodString;
|
|
407
|
+
organizationId: ZodString;
|
|
408
|
+
visibility: ZodEnum<{
|
|
409
|
+
private: "private";
|
|
410
|
+
public: "public";
|
|
411
|
+
}>;
|
|
412
|
+
type: ZodEnum<{
|
|
413
|
+
message: "message";
|
|
414
|
+
event: "event";
|
|
415
|
+
identification: "identification";
|
|
416
|
+
}>;
|
|
417
|
+
text: ZodNullable<ZodString>;
|
|
418
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
419
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
420
|
+
type: ZodLiteral<"text">;
|
|
421
|
+
text: ZodString;
|
|
422
|
+
}, $strip>, ZodObject<{
|
|
423
|
+
type: ZodLiteral<"event">;
|
|
424
|
+
eventType: ZodEnum<{
|
|
296
425
|
resolved: "resolved";
|
|
426
|
+
assigned: "assigned";
|
|
427
|
+
unassigned: "unassigned";
|
|
428
|
+
participant_requested: "participant_requested";
|
|
429
|
+
participant_joined: "participant_joined";
|
|
430
|
+
participant_left: "participant_left";
|
|
431
|
+
status_changed: "status_changed";
|
|
432
|
+
priority_changed: "priority_changed";
|
|
433
|
+
tag_added: "tag_added";
|
|
434
|
+
tag_removed: "tag_removed";
|
|
297
435
|
reopened: "reopened";
|
|
298
436
|
visitor_blocked: "visitor_blocked";
|
|
299
437
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,0BAAwB;;;;AAArC,CAAA,CAAA;AAMa,cAAA,0BAA0B,EAAA,OAAA,CAAA;EAO1B,GAAA,EAAA,KAAA;EAQA,MAAA,EAAA,QAAA;;;;cARA,6BAA2B,YAAA;;;;;cAQ3B,0BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,eAAA,aAAA,UAAA,CAAA;EAAA,UAAA,aAAA,UAAA,CAAA;EAwBzB,aAAA,aAAA,UAA0B,
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,0BAAwB;;;;AAArC,CAAA,CAAA;AAMa,cAAA,0BAA0B,EAAA,OAAA,CAAA;EAO1B,GAAA,EAAA,KAAA;EAQA,MAAA,EAAA,QAAA;;;;cARA,6BAA2B,YAAA;;;;;cAQ3B,0BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,eAAA,aAAA,UAAA,CAAA;EAAA,UAAA,aAAA,UAAA,CAAA;EAwBzB,aAAA,aAAA,UAA0B,CAC9B;EAGK,aAAA,aAAA,UAEX,CAAA;;;;;;;KANU,0BAAA,GAA6B,cACjC;cAGK,oCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,aAAA,aAAA,UAAA,CAAA;IAAA,aAAA,aAAA,UAAA,CAAA;IAIlC,gBAAA,aAyBX,UAAA,CAAA;;;;;;;cAzBW,0BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BxB,uCAAqC;;;;;;;;;;;;MA3Bb,MAAA,EAAA,QAAA;IAAA,CAAA,CAAA;IA2BxB,cAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKD,4BAAA,GAA+B,cACnC;KAGI,kBAAA,GAAqB,cAAe"}
|
package/trpc/conversation.js
CHANGED
|
@@ -66,6 +66,7 @@ const conversationHeaderSchema = z.object({
|
|
|
66
66
|
deletedAt: z.string().nullable(),
|
|
67
67
|
lastMessageAt: z.string().nullable(),
|
|
68
68
|
lastSeenAt: z.string().nullable(),
|
|
69
|
+
lastMessageTimelineItem: timelineItemSchema.nullable(),
|
|
69
70
|
lastTimelineItem: timelineItemSchema.nullable(),
|
|
70
71
|
viewIds: z.array(z.string()),
|
|
71
72
|
seenData: z.array(conversationSeenSchema)
|
package/trpc/conversation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { timelineItemSchema } from \"../api/timeline-item\";\nimport { visitorProfileSchema } from \"../api/visitor\";\nimport {\n\tConversationPriority,\n\tConversationSentiment,\n\tConversationStatus,\n} from \"../enums\";\nimport { conversationSeenSchema } from \"../schemas\";\n\nexport const conversationStatusSchema = z.enum([\n\tConversationStatus.OPEN,\n\tConversationStatus.RESOLVED,\n\tConversationStatus.SPAM,\n]);\n\nexport const conversationPrioritySchema = z.enum([\n\tConversationPriority.LOW,\n\tConversationPriority.NORMAL,\n\tConversationPriority.HIGH,\n\tConversationPriority.URGENT,\n]);\n\nexport const conversationSentimentSchema = z\n\t.enum([\n\t\tConversationSentiment.POSITIVE,\n\t\tConversationSentiment.NEGATIVE,\n\t\tConversationSentiment.NEUTRAL,\n\t])\n\t.nullable();\n\nexport const conversationRecordSchema = z.object({\n\tid: z.string(),\n\torganizationId: z.string(),\n\tvisitorId: z.string(),\n\twebsiteId: z.string(),\n\tstatus: conversationStatusSchema,\n\tpriority: conversationPrioritySchema,\n\tsentiment: conversationSentimentSchema,\n\tsentimentConfidence: z.number().nullable(),\n\tchannel: z.string(),\n\ttitle: z.string().nullable(),\n\tresolutionTime: z.number().nullable(),\n\tstartedAt: z.string().nullable(),\n\tfirstResponseAt: z.string().nullable(),\n\tresolvedAt: z.string().nullable(),\n\tlastMessageAt: z.string().nullable(),\n\tlastMessageBy: z.string().nullable(),\n\tresolvedByUserId: z.string().nullable(),\n\tresolvedByAiAgentId: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tdeletedAt: z.string().nullable(),\n});\n\nexport type ConversationRecordResponse = z.infer<\n\ttypeof conversationRecordSchema\n>;\n\nexport const conversationMutationResponseSchema = z.object({\n\tconversation: conversationRecordSchema,\n});\n\nexport const conversationHeaderSchema = z.object({\n\tid: z.string(),\n\tstatus: conversationStatusSchema,\n\tpriority: conversationPrioritySchema,\n\torganizationId: z.string(),\n\tvisitorId: z.string(),\n\tvisitor: visitorProfileSchema,\n\twebsiteId: z.string(),\n\tchannel: z.string(),\n\ttitle: z.string().nullable(),\n\tresolutionTime: z.number().nullable(),\n\tstartedAt: z.string().nullable(),\n\tfirstResponseAt: z.string().nullable(),\n\tresolvedAt: z.string().nullable(),\n\tresolvedByUserId: z.string().nullable(),\n\tresolvedByAiAgentId: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tdeletedAt: z.string().nullable(),\n\tlastMessageAt: z.string().nullable(),\n\tlastSeenAt: z.string().nullable(),\n\tlastTimelineItem: timelineItemSchema.nullable(),\n\tviewIds: z.array(z.string()),\n\tseenData: z.array(conversationSeenSchema),\n});\n\nexport const listConversationHeadersResponseSchema = z.object({\n\titems: z.array(conversationHeaderSchema),\n\tnextCursor: z.string().nullable(),\n});\n\nexport type ConversationMutationResponse = z.infer<\n\ttypeof conversationMutationResponseSchema\n>;\n\nexport type ConversationHeader = z.infer<typeof conversationHeaderSchema>;\n"],"mappings":";;;;;;;AAUA,MAAa,2BAA2B,EAAE,KAAK;CAC9C,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,CAAC;AAEF,MAAa,6BAA6B,EAAE,KAAK;CAChD,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,CAAC;AAEF,MAAa,8BAA8B,EACzC,KAAK;CACL,sBAAsB;CACtB,sBAAsB;CACtB,sBAAsB;CACtB,CAAC,CACD,UAAU;AAEZ,MAAa,2BAA2B,EAAE,OAAO;CAChD,IAAI,EAAE,QAAQ;CACd,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,QAAQ;CACR,UAAU;CACV,WAAW;CACX,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,SAAS,EAAE,QAAQ;CACnB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,CAAC;AAMF,MAAa,qCAAqC,EAAE,OAAO,EAC1D,cAAc,0BACd,CAAC;AAEF,MAAa,2BAA2B,EAAE,OAAO;CAChD,IAAI,EAAE,QAAQ;CACd,QAAQ;CACR,UAAU;CACV,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,SAAS;CACT,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,QAAQ;CACnB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,kBAAkB,mBAAmB,UAAU;CAC/C,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;CAC5B,UAAU,EAAE,MAAM,uBAAuB;CACzC,CAAC;AAEF,MAAa,wCAAwC,EAAE,OAAO;CAC7D,OAAO,EAAE,MAAM,yBAAyB;CACxC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"conversation.js","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { timelineItemSchema } from \"../api/timeline-item\";\nimport { visitorProfileSchema } from \"../api/visitor\";\nimport {\n\tConversationPriority,\n\tConversationSentiment,\n\tConversationStatus,\n} from \"../enums\";\nimport { conversationSeenSchema } from \"../schemas\";\n\nexport const conversationStatusSchema = z.enum([\n\tConversationStatus.OPEN,\n\tConversationStatus.RESOLVED,\n\tConversationStatus.SPAM,\n]);\n\nexport const conversationPrioritySchema = z.enum([\n\tConversationPriority.LOW,\n\tConversationPriority.NORMAL,\n\tConversationPriority.HIGH,\n\tConversationPriority.URGENT,\n]);\n\nexport const conversationSentimentSchema = z\n\t.enum([\n\t\tConversationSentiment.POSITIVE,\n\t\tConversationSentiment.NEGATIVE,\n\t\tConversationSentiment.NEUTRAL,\n\t])\n\t.nullable();\n\nexport const conversationRecordSchema = z.object({\n\tid: z.string(),\n\torganizationId: z.string(),\n\tvisitorId: z.string(),\n\twebsiteId: z.string(),\n\tstatus: conversationStatusSchema,\n\tpriority: conversationPrioritySchema,\n\tsentiment: conversationSentimentSchema,\n\tsentimentConfidence: z.number().nullable(),\n\tchannel: z.string(),\n\ttitle: z.string().nullable(),\n\tresolutionTime: z.number().nullable(),\n\tstartedAt: z.string().nullable(),\n\tfirstResponseAt: z.string().nullable(),\n\tresolvedAt: z.string().nullable(),\n\tlastMessageAt: z.string().nullable(),\n\tlastMessageBy: z.string().nullable(),\n\tresolvedByUserId: z.string().nullable(),\n\tresolvedByAiAgentId: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tdeletedAt: z.string().nullable(),\n});\n\nexport type ConversationRecordResponse = z.infer<\n\ttypeof conversationRecordSchema\n>;\n\nexport const conversationMutationResponseSchema = z.object({\n\tconversation: conversationRecordSchema,\n});\n\nexport const conversationHeaderSchema = z.object({\n\tid: z.string(),\n\tstatus: conversationStatusSchema,\n\tpriority: conversationPrioritySchema,\n\torganizationId: z.string(),\n\tvisitorId: z.string(),\n\tvisitor: visitorProfileSchema,\n\twebsiteId: z.string(),\n\tchannel: z.string(),\n\ttitle: z.string().nullable(),\n\tresolutionTime: z.number().nullable(),\n\tstartedAt: z.string().nullable(),\n\tfirstResponseAt: z.string().nullable(),\n\tresolvedAt: z.string().nullable(),\n\tresolvedByUserId: z.string().nullable(),\n\tresolvedByAiAgentId: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tdeletedAt: z.string().nullable(),\n\tlastMessageAt: z.string().nullable(),\n\tlastSeenAt: z.string().nullable(),\n\tlastMessageTimelineItem: timelineItemSchema.nullable(),\n\tlastTimelineItem: timelineItemSchema.nullable(),\n\tviewIds: z.array(z.string()),\n\tseenData: z.array(conversationSeenSchema),\n});\n\nexport const listConversationHeadersResponseSchema = z.object({\n\titems: z.array(conversationHeaderSchema),\n\tnextCursor: z.string().nullable(),\n});\n\nexport type ConversationMutationResponse = z.infer<\n\ttypeof conversationMutationResponseSchema\n>;\n\nexport type ConversationHeader = z.infer<typeof conversationHeaderSchema>;\n"],"mappings":";;;;;;;AAUA,MAAa,2BAA2B,EAAE,KAAK;CAC9C,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,CAAC;AAEF,MAAa,6BAA6B,EAAE,KAAK;CAChD,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,CAAC;AAEF,MAAa,8BAA8B,EACzC,KAAK;CACL,sBAAsB;CACtB,sBAAsB;CACtB,sBAAsB;CACtB,CAAC,CACD,UAAU;AAEZ,MAAa,2BAA2B,EAAE,OAAO;CAChD,IAAI,EAAE,QAAQ;CACd,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,QAAQ;CACR,UAAU;CACV,WAAW;CACX,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,SAAS,EAAE,QAAQ;CACnB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,CAAC;AAMF,MAAa,qCAAqC,EAAE,OAAO,EAC1D,cAAc,0BACd,CAAC;AAEF,MAAa,2BAA2B,EAAE,OAAO;CAChD,IAAI,EAAE,QAAQ;CACd,QAAQ;CACR,UAAU;CACV,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,SAAS;CACT,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,QAAQ;CACnB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,kBAAkB,EAAE,QAAQ,CAAC,UAAU;CACvC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,yBAAyB,mBAAmB,UAAU;CACtD,kBAAkB,mBAAmB,UAAU;CAC/C,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;CAC5B,UAAU,EAAE,MAAM,uBAAuB;CACzC,CAAC;AAEF,MAAa,wCAAwC,EAAE,OAAO;CAC7D,OAAO,EAAE,MAAM,yBAAyB;CACxC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC"}
|
package/trpc/visitor.d.ts
CHANGED
package/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","names":["checks","$ZodConfig","errors","schemas","JSONType","JWTAlgorithm","HashAlgorithm","HashEncoding","HashFormat","IPVersion","MimeTypes","ParsedTypes","AssertEqual","V","T","U","AssertNotEqual","AssertExtends","IsAny","Omit","K","Exclude","Pick","OmitKeys","MakePartial","InexactPartial","MakeRequired","Required","Exactly","X","Record","NoUndefined","Whatever","LoosePartial","Mask","Keys","PropertyKey","Writeable","P","EmptyObject","BuiltIn","Symbol","toStringTag","Date","Error","Generator","Promise","RegExp","MakeReadonly","Map","ReadonlyMap","Set","ReadonlySet","Head","Tail","Array","ReadonlyArray","Readonly","SomeObject","Identity","Flatten","k","Mapped","Prettify","NoNeverKeys","NoNever","Extend","A","B","TupleItems","SomeType","AnyFunc","IsProp","MaybeAsync","KeyOf","OmitIndexSignature","ExtractIndexSignature","SchemaClass","EnumValue","EnumLike","ToEnum","KeysEnum","KeysArray","Literal","LiteralArray","Primitive","PrimitiveArray","HasSize","HasLength","Numeric","SafeParseResult","SafeParseSuccess","SafeParseError","$ZodError","PropValues","PrimitiveSet","assertEqual","assertNotEqual","assertIs","assertNever","assert","getEnumValues","joinValues","jsonStringifyReplacer","cached","nullish","cleanRegex","floatSafeRemainder","defineLazy","objectClone","assignProp","mergeDefs","cloneDef","$ZodType","getElementAtPath","promiseAllObject","Awaited","randomString","esc","captureStackTrace","Function","isObject","allowsEval","isPlainObject","shallowClone","numKeys","getParsedType","propertyKeyTypes","primitiveTypes","escapeRegex","clone","EmptyToNever","Normalize","normalizeParams","createTransparentProxy","stringifyPrimitive","optionalKeys","$ZodShape","CleanKey","ToCleanMap","$ZodLooseShape","FromCleanMap","NUMBER_FORMAT_RANGES","$ZodNumberFormats","BIGINT_FORMAT_RANGES","$ZodBigIntFormats","pick","$ZodObject","omit","extend","safeExtend","merge","partial","$ZodOptional","required","$ZodNonOptional","Constructor","Def","aborted","ParsePayload","prefixIssues","$ZodRawIssue","unwrapMessage","finalizeIssue","ParseContextInternal","$ZodIssue","getSizableOrigin","getLengthableOrigin","issue","cleanEnum","base64ToUint8Array","Uint8Array","InstanceType","uint8ArrayToBase64","base64urlToUint8Array","uint8ArrayToBase64url","hexToUint8Array","uint8ArrayToHex","Class"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/util.d.cts"],"sourcesContent":["import type * as checks from \"./checks.cjs\";\nimport type { $ZodConfig } from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nexport type JSONType = string | number | boolean | null | JSONType[] | {\n [key: string]: JSONType;\n};\nexport type JWTAlgorithm = \"HS256\" | \"HS384\" | \"HS512\" | \"RS256\" | \"RS384\" | \"RS512\" | \"ES256\" | \"ES384\" | \"ES512\" | \"PS256\" | \"PS384\" | \"PS512\" | \"EdDSA\" | (string & {});\nexport type HashAlgorithm = \"md5\" | \"sha1\" | \"sha256\" | \"sha384\" | \"sha512\";\nexport type HashEncoding = \"hex\" | \"base64\" | \"base64url\";\nexport type HashFormat = `${HashAlgorithm}_${HashEncoding}`;\nexport type IPVersion = \"v4\" | \"v6\";\nexport type MimeTypes = \"application/json\" | \"application/xml\" | \"application/x-www-form-urlencoded\" | \"application/javascript\" | \"application/pdf\" | \"application/zip\" | \"application/vnd.ms-excel\" | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\" | \"application/msword\" | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" | \"application/vnd.ms-powerpoint\" | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\" | \"application/octet-stream\" | \"application/graphql\" | \"text/html\" | \"text/plain\" | \"text/css\" | \"text/javascript\" | \"text/csv\" | \"image/png\" | \"image/jpeg\" | \"image/gif\" | \"image/svg+xml\" | \"image/webp\" | \"audio/mpeg\" | \"audio/ogg\" | \"audio/wav\" | \"audio/webm\" | \"video/mp4\" | \"video/webm\" | \"video/ogg\" | \"font/woff\" | \"font/woff2\" | \"font/ttf\" | \"font/otf\" | \"multipart/form-data\" | (string & {});\nexport type ParsedTypes = \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\" | \"file\" | \"date\" | \"array\" | \"map\" | \"set\" | \"nan\" | \"null\" | \"promise\";\nexport type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\nexport type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;\nexport type AssertExtends<T, U> = T extends U ? T : never;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\nexport type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;\nexport type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;\nexport type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\nexport type NoUndefined<T> = T extends undefined ? never : T;\nexport type Whatever = {} | undefined | null;\nexport type LoosePartial<T extends object> = InexactPartial<T> & {\n [k: string]: unknown;\n};\nexport type Mask<Keys extends PropertyKey> = {\n [K in Keys]?: true;\n};\nexport type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n} & {};\nexport type InexactPartial<T> = {\n [P in keyof T]?: T[P] | undefined;\n};\nexport type EmptyObject = Record<string, never>;\nexport type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {\n readonly [Symbol.toStringTag]: string;\n} | Date | Error | Generator | Promise<unknown> | RegExp;\nexport type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;\nexport type SomeObject = Record<PropertyKey, any>;\nexport type Identity<T> = T;\nexport type Flatten<T> = Identity<{\n [k in keyof T]: T[k];\n}>;\nexport type Mapped<T> = {\n [k in keyof T]: T[k];\n};\nexport type Prettify<T> = {\n [K in keyof T]: T[K];\n} & {};\nexport type NoNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n}[keyof T];\nexport type NoNever<T> = Identity<{\n [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;\n}>;\nexport type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n} & {\n [K in keyof B]: B[K];\n}>;\nexport type TupleItems = ReadonlyArray<schemas.SomeType>;\nexport type AnyFunc = (...args: any[]) => any;\nexport type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;\nexport type MaybeAsync<T> = T | Promise<T>;\nexport type KeyOf<T> = keyof OmitIndexSignature<T>;\nexport type OmitIndexSignature<T> = {\n [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];\n};\nexport type ExtractIndexSignature<T> = {\n [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];\n};\nexport type Keys<T extends object> = keyof OmitIndexSignature<T>;\nexport type SchemaClass<T extends schemas.SomeType> = {\n new (def: T[\"_zod\"][\"def\"]): T;\n};\nexport type EnumValue = string | number;\nexport type EnumLike = Readonly<Record<string, EnumValue>>;\nexport type ToEnum<T extends EnumValue> = Flatten<{\n [k in T]: k;\n}>;\nexport type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;\nexport type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;\nexport type Literal = string | number | bigint | boolean | null | undefined;\nexport type LiteralArray = Array<Literal>;\nexport type Primitive = string | number | symbol | bigint | boolean | null | undefined;\nexport type PrimitiveArray = Array<Primitive>;\nexport type HasSize = {\n size: number;\n};\nexport type HasLength = {\n length: number;\n};\nexport type Numeric = number | bigint | Date;\nexport type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;\nexport type SafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type SafeParseError<T> = {\n success: false;\n data?: never;\n error: errors.$ZodError<T>;\n};\nexport type PropValues = Record<string, Set<Primitive>>;\nexport type PrimitiveSet = Set<Primitive>;\nexport declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;\nexport declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;\nexport declare function assertIs<T>(_arg: T): void;\nexport declare function assertNever(_x: never): never;\nexport declare function assert<T>(_: any): asserts _ is T;\nexport declare function getEnumValues(entries: EnumLike): EnumValue[];\nexport declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;\nexport declare function jsonStringifyReplacer(_: string, value: any): any;\nexport declare function cached<T>(getter: () => T): {\n value: T;\n};\nexport declare function nullish(input: any): boolean;\nexport declare function cleanRegex(source: string): string;\nexport declare function floatSafeRemainder(val: number, step: number): number;\nexport declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;\nexport declare function objectClone(obj: object): any;\nexport declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;\nexport declare function mergeDefs(...defs: Record<string, any>[]): any;\nexport declare function cloneDef(schema: schemas.$ZodType): any;\nexport declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;\nexport declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{\n [k in keyof T]: Awaited<T[k]>;\n}>;\nexport declare function randomString(length?: number): string;\nexport declare function esc(str: string): string;\nexport declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;\nexport declare function isObject(data: any): data is Record<PropertyKey, unknown>;\nexport declare const allowsEval: {\n value: boolean;\n};\nexport declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;\nexport declare function shallowClone(o: any): any;\nexport declare function numKeys(data: any): number;\nexport declare const getParsedType: (data: any) => ParsedTypes;\nexport declare const propertyKeyTypes: Set<string>;\nexport declare const primitiveTypes: Set<string>;\nexport declare function escapeRegex(str: string): string;\nexport declare function clone<T extends schemas.$ZodType>(inst: T, def?: T[\"_zod\"][\"def\"], params?: {\n parent: boolean;\n}): T;\nexport type EmptyToNever<T> = keyof T extends never ? never : T;\nexport type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{\n [k in keyof Omit<T, \"error\" | \"message\">]: T[k];\n} & (\"error\" extends keyof T ? {\n error?: Exclude<T[\"error\"], string>;\n} : unknown)> : never;\nexport declare function normalizeParams<T>(_params: T): Normalize<T>;\nexport declare function createTransparentProxy<T extends object>(getter: () => T): T;\nexport declare function stringifyPrimitive(value: any): string;\nexport declare function optionalKeys(shape: schemas.$ZodShape): string[];\nexport type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;\nexport type ToCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;\n};\nexport type FromCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;\n};\nexport declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;\nexport declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;\nexport declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;\nexport declare function omit(schema: schemas.$ZodObject, mask: object): any;\nexport declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function safeExtend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;\nexport declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;\nexport declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;\nexport declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];\nexport declare function unwrapMessage(message: string | {\n message: string;\n} | undefined | null): string | undefined;\nexport declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;\nexport declare function getSizableOrigin(input: any): \"set\" | \"map\" | \"file\" | \"unknown\";\nexport declare function getLengthableOrigin(input: any): \"array\" | \"string\" | \"unknown\";\nexport declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;\nexport declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;\nexport declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];\nexport declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64(bytes: Uint8Array): string;\nexport declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64url(bytes: Uint8Array): string;\nexport declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToHex(bytes: Uint8Array): string;\nexport declare abstract class Class {\n constructor(..._args: any[]);\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBkEoB,KAXtDf,YAAAA,GAWsDe,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,CAAAA,MAAAA,GAAAA,CAAAA,CAAAA,CAAAA;AAEkBA,KAHxEF,KAGwEE,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,SAAAA,CAAAA,GAH/CN,CAG+CM,GAAAA,IAAAA,GAAAA,KAAAA;AAARE,KAFhEH,IAEgEG,CAAAA,CAAAA,EAAAA,YAAAA,MAFxCR,CAEwCQ,CAAAA,GAFnCA,IAEmCA,CAF9BR,CAE8BQ,EAF3BD,OAE2BC,CAAAA,MAFbR,CAEaQ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BAAwBrH,0BAA0BA;uBA4ChCoK,KAAAA"}
|
|
1
|
+
{"version":3,"file":"util.d.ts","names":["checks","$ZodConfig","errors","schemas","JSONType","JWTAlgorithm","HashAlgorithm","HashEncoding","HashFormat","IPVersion","MimeTypes","ParsedTypes","AssertEqual","V","T","U","AssertNotEqual","AssertExtends","IsAny","Omit","K","Exclude","Pick","OmitKeys","MakePartial","InexactPartial","MakeRequired","Required","Exactly","X","Record","NoUndefined","Whatever","LoosePartial","Mask","Keys","PropertyKey","Writeable","P","EmptyObject","BuiltIn","Symbol","toStringTag","Date","Error","Generator","Promise","RegExp","MakeReadonly","Map","ReadonlyMap","Set","ReadonlySet","Head","Tail","Array","ReadonlyArray","Readonly","SomeObject","Identity","Flatten","k","Mapped","Prettify","NoNeverKeys","NoNever","Extend","A","B","TupleItems","SomeType","AnyFunc","IsProp","MaybeAsync","KeyOf","OmitIndexSignature","ExtractIndexSignature","SchemaClass","EnumValue","EnumLike","ToEnum","KeysEnum","KeysArray","Literal","LiteralArray","Primitive","PrimitiveArray","HasSize","HasLength","Numeric","SafeParseResult","SafeParseSuccess","SafeParseError","$ZodError","PropValues","PrimitiveSet","assertEqual","assertNotEqual","assertIs","assertNever","assert","getEnumValues","joinValues","jsonStringifyReplacer","cached","nullish","cleanRegex","floatSafeRemainder","defineLazy","objectClone","assignProp","mergeDefs","cloneDef","$ZodType","getElementAtPath","promiseAllObject","Awaited","randomString","esc","captureStackTrace","Function","isObject","allowsEval","isPlainObject","shallowClone","numKeys","getParsedType","propertyKeyTypes","primitiveTypes","escapeRegex","clone","EmptyToNever","Normalize","normalizeParams","createTransparentProxy","stringifyPrimitive","optionalKeys","$ZodShape","CleanKey","ToCleanMap","$ZodLooseShape","FromCleanMap","NUMBER_FORMAT_RANGES","$ZodNumberFormats","BIGINT_FORMAT_RANGES","$ZodBigIntFormats","pick","$ZodObject","omit","extend","safeExtend","merge","partial","$ZodOptional","required","$ZodNonOptional","Constructor","Def","aborted","ParsePayload","prefixIssues","$ZodRawIssue","unwrapMessage","finalizeIssue","ParseContextInternal","$ZodIssue","getSizableOrigin","getLengthableOrigin","issue","cleanEnum","base64ToUint8Array","Uint8Array","InstanceType","uint8ArrayToBase64","base64urlToUint8Array","uint8ArrayToBase64url","hexToUint8Array","uint8ArrayToHex","Class"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/util.d.cts"],"sourcesContent":["import type * as checks from \"./checks.cjs\";\nimport type { $ZodConfig } from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nexport type JSONType = string | number | boolean | null | JSONType[] | {\n [key: string]: JSONType;\n};\nexport type JWTAlgorithm = \"HS256\" | \"HS384\" | \"HS512\" | \"RS256\" | \"RS384\" | \"RS512\" | \"ES256\" | \"ES384\" | \"ES512\" | \"PS256\" | \"PS384\" | \"PS512\" | \"EdDSA\" | (string & {});\nexport type HashAlgorithm = \"md5\" | \"sha1\" | \"sha256\" | \"sha384\" | \"sha512\";\nexport type HashEncoding = \"hex\" | \"base64\" | \"base64url\";\nexport type HashFormat = `${HashAlgorithm}_${HashEncoding}`;\nexport type IPVersion = \"v4\" | \"v6\";\nexport type MimeTypes = \"application/json\" | \"application/xml\" | \"application/x-www-form-urlencoded\" | \"application/javascript\" | \"application/pdf\" | \"application/zip\" | \"application/vnd.ms-excel\" | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\" | \"application/msword\" | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" | \"application/vnd.ms-powerpoint\" | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\" | \"application/octet-stream\" | \"application/graphql\" | \"text/html\" | \"text/plain\" | \"text/css\" | \"text/javascript\" | \"text/csv\" | \"image/png\" | \"image/jpeg\" | \"image/gif\" | \"image/svg+xml\" | \"image/webp\" | \"audio/mpeg\" | \"audio/ogg\" | \"audio/wav\" | \"audio/webm\" | \"video/mp4\" | \"video/webm\" | \"video/ogg\" | \"font/woff\" | \"font/woff2\" | \"font/ttf\" | \"font/otf\" | \"multipart/form-data\" | (string & {});\nexport type ParsedTypes = \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\" | \"file\" | \"date\" | \"array\" | \"map\" | \"set\" | \"nan\" | \"null\" | \"promise\";\nexport type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\nexport type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;\nexport type AssertExtends<T, U> = T extends U ? T : never;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\nexport type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;\nexport type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;\nexport type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\nexport type NoUndefined<T> = T extends undefined ? never : T;\nexport type Whatever = {} | undefined | null;\nexport type LoosePartial<T extends object> = InexactPartial<T> & {\n [k: string]: unknown;\n};\nexport type Mask<Keys extends PropertyKey> = {\n [K in Keys]?: true;\n};\nexport type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n} & {};\nexport type InexactPartial<T> = {\n [P in keyof T]?: T[P] | undefined;\n};\nexport type EmptyObject = Record<string, never>;\nexport type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {\n readonly [Symbol.toStringTag]: string;\n} | Date | Error | Generator | Promise<unknown> | RegExp;\nexport type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;\nexport type SomeObject = Record<PropertyKey, any>;\nexport type Identity<T> = T;\nexport type Flatten<T> = Identity<{\n [k in keyof T]: T[k];\n}>;\nexport type Mapped<T> = {\n [k in keyof T]: T[k];\n};\nexport type Prettify<T> = {\n [K in keyof T]: T[K];\n} & {};\nexport type NoNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n}[keyof T];\nexport type NoNever<T> = Identity<{\n [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;\n}>;\nexport type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n} & {\n [K in keyof B]: B[K];\n}>;\nexport type TupleItems = ReadonlyArray<schemas.SomeType>;\nexport type AnyFunc = (...args: any[]) => any;\nexport type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;\nexport type MaybeAsync<T> = T | Promise<T>;\nexport type KeyOf<T> = keyof OmitIndexSignature<T>;\nexport type OmitIndexSignature<T> = {\n [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];\n};\nexport type ExtractIndexSignature<T> = {\n [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];\n};\nexport type Keys<T extends object> = keyof OmitIndexSignature<T>;\nexport type SchemaClass<T extends schemas.SomeType> = {\n new (def: T[\"_zod\"][\"def\"]): T;\n};\nexport type EnumValue = string | number;\nexport type EnumLike = Readonly<Record<string, EnumValue>>;\nexport type ToEnum<T extends EnumValue> = Flatten<{\n [k in T]: k;\n}>;\nexport type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;\nexport type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;\nexport type Literal = string | number | bigint | boolean | null | undefined;\nexport type LiteralArray = Array<Literal>;\nexport type Primitive = string | number | symbol | bigint | boolean | null | undefined;\nexport type PrimitiveArray = Array<Primitive>;\nexport type HasSize = {\n size: number;\n};\nexport type HasLength = {\n length: number;\n};\nexport type Numeric = number | bigint | Date;\nexport type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;\nexport type SafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type SafeParseError<T> = {\n success: false;\n data?: never;\n error: errors.$ZodError<T>;\n};\nexport type PropValues = Record<string, Set<Primitive>>;\nexport type PrimitiveSet = Set<Primitive>;\nexport declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;\nexport declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;\nexport declare function assertIs<T>(_arg: T): void;\nexport declare function assertNever(_x: never): never;\nexport declare function assert<T>(_: any): asserts _ is T;\nexport declare function getEnumValues(entries: EnumLike): EnumValue[];\nexport declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;\nexport declare function jsonStringifyReplacer(_: string, value: any): any;\nexport declare function cached<T>(getter: () => T): {\n value: T;\n};\nexport declare function nullish(input: any): boolean;\nexport declare function cleanRegex(source: string): string;\nexport declare function floatSafeRemainder(val: number, step: number): number;\nexport declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;\nexport declare function objectClone(obj: object): any;\nexport declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;\nexport declare function mergeDefs(...defs: Record<string, any>[]): any;\nexport declare function cloneDef(schema: schemas.$ZodType): any;\nexport declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;\nexport declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{\n [k in keyof T]: Awaited<T[k]>;\n}>;\nexport declare function randomString(length?: number): string;\nexport declare function esc(str: string): string;\nexport declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;\nexport declare function isObject(data: any): data is Record<PropertyKey, unknown>;\nexport declare const allowsEval: {\n value: boolean;\n};\nexport declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;\nexport declare function shallowClone(o: any): any;\nexport declare function numKeys(data: any): number;\nexport declare const getParsedType: (data: any) => ParsedTypes;\nexport declare const propertyKeyTypes: Set<string>;\nexport declare const primitiveTypes: Set<string>;\nexport declare function escapeRegex(str: string): string;\nexport declare function clone<T extends schemas.$ZodType>(inst: T, def?: T[\"_zod\"][\"def\"], params?: {\n parent: boolean;\n}): T;\nexport type EmptyToNever<T> = keyof T extends never ? never : T;\nexport type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{\n [k in keyof Omit<T, \"error\" | \"message\">]: T[k];\n} & (\"error\" extends keyof T ? {\n error?: Exclude<T[\"error\"], string>;\n} : unknown)> : never;\nexport declare function normalizeParams<T>(_params: T): Normalize<T>;\nexport declare function createTransparentProxy<T extends object>(getter: () => T): T;\nexport declare function stringifyPrimitive(value: any): string;\nexport declare function optionalKeys(shape: schemas.$ZodShape): string[];\nexport type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;\nexport type ToCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;\n};\nexport type FromCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;\n};\nexport declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;\nexport declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;\nexport declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;\nexport declare function omit(schema: schemas.$ZodObject, mask: object): any;\nexport declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function safeExtend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;\nexport declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;\nexport declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;\nexport declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];\nexport declare function unwrapMessage(message: string | {\n message: string;\n} | undefined | null): string | undefined;\nexport declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;\nexport declare function getSizableOrigin(input: any): \"set\" | \"map\" | \"file\" | \"unknown\";\nexport declare function getLengthableOrigin(input: any): \"array\" | \"string\" | \"unknown\";\nexport declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;\nexport declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;\nexport declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];\nexport declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64(bytes: Uint8Array): string;\nexport declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64url(bytes: Uint8Array): string;\nexport declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToHex(bytes: Uint8Array): string;\nexport declare abstract class Class {\n constructor(..._args: any[]);\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBkEoB,KAXtDf,YAAAA,GAWsDe,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,OAAAA,GAAAA,CAAAA,MAAAA,GAAAA,CAAAA,CAAAA,CAAAA;AAEkBA,KAHxEF,KAGwEE,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,SAAAA,CAAAA,GAH/CN,CAG+CM,GAAAA,IAAAA,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