@cossistant/core 0.0.24 → 0.0.26
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/_virtual/rolldown_runtime.js +1 -10
- package/client.d.ts +1 -1
- package/client.js +1 -1
- package/contact.d.ts +19 -22
- package/contact.d.ts.map +1 -1
- package/conversation.d.ts +316 -320
- package/conversation.d.ts.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +4 -2
- package/realtime-events.d.ts +324 -326
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +100 -670
- package/schemas.d.ts.map +1 -1
- package/store/seen-store.d.ts +1 -1
- package/store/timeline-items-store.js +1 -1
- package/timeline-item.d.ts +193 -197
- package/timeline-item.d.ts.map +1 -1
- package/types/src/api/timeline-item.js +120 -0
- package/types/src/api/timeline-item.js.map +1 -0
- package/types/src/enums.js.map +1 -0
- package/visitor-name.d.ts +36 -0
- package/visitor-name.d.ts.map +1 -0
- package/visitor-name.js +271 -0
- package/visitor-name.js.map +1 -0
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/packages/types/src/api/timeline-item.js +0 -122
- package/packages/types/src/api/timeline-item.js.map +0 -1
- package/packages/types/src/enums.js.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas2.d.ts +0 -320
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -105
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
- /package/{packages/types → types}/src/enums.js +0 -0
package/schemas.d.ts
CHANGED
|
@@ -1,673 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AnyFunc, Class, EnumLike, IsAny, JWTAlgorithm, Literal, LoosePartial, MakeReadonly, MaybeAsync, NoUndefined, Prettify, PrimitiveSet, PropValues } from "./util.js";
|
|
3
|
-
import { version } from "./versions.js";
|
|
4
|
-
import { $ZodCheck, $ZodCheckDef, $ZodCheckInternals, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals } from "./checks.js";
|
|
5
|
-
import { $ZodErrorMap, $ZodIssue, $ZodIssueBase, $ZodIssueInvalidKey, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueUnrecognizedKeys, $ZodRawIssue } from "./errors.js";
|
|
6
|
-
import { $constructor, input, output } from "./core.js";
|
|
1
|
+
import { z } from "zod";
|
|
7
2
|
|
|
8
|
-
//#region
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
declare const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
bag: LoosePartial<{
|
|
107
|
-
minimum: number;
|
|
108
|
-
maximum: number;
|
|
109
|
-
patterns: Set<RegExp>;
|
|
110
|
-
format: string;
|
|
111
|
-
contentEncoding: string;
|
|
112
|
-
}>;
|
|
113
|
-
}
|
|
114
|
-
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
115
|
-
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
116
|
-
def: $ZodStringFormatDef<Format>;
|
|
117
|
-
}
|
|
118
|
-
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
119
|
-
_zod: $ZodStringFormatInternals<Format>;
|
|
120
|
-
}
|
|
121
|
-
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
122
|
-
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
123
|
-
interface $ZodGUID extends $ZodType {
|
|
124
|
-
_zod: $ZodGUIDInternals;
|
|
125
|
-
}
|
|
126
|
-
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
127
|
-
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
128
|
-
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
129
|
-
}
|
|
130
|
-
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
131
|
-
def: $ZodUUIDDef;
|
|
132
|
-
}
|
|
133
|
-
interface $ZodUUID extends $ZodType {
|
|
134
|
-
_zod: $ZodUUIDInternals;
|
|
135
|
-
}
|
|
136
|
-
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
137
|
-
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
138
|
-
interface $ZodEmail extends $ZodType {
|
|
139
|
-
_zod: $ZodEmailInternals;
|
|
140
|
-
}
|
|
141
|
-
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
142
|
-
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
143
|
-
hostname?: RegExp | undefined;
|
|
144
|
-
protocol?: RegExp | undefined;
|
|
145
|
-
normalize?: boolean | undefined;
|
|
146
|
-
}
|
|
147
|
-
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
148
|
-
def: $ZodURLDef;
|
|
149
|
-
}
|
|
150
|
-
interface $ZodURL extends $ZodType {
|
|
151
|
-
_zod: $ZodURLInternals;
|
|
152
|
-
}
|
|
153
|
-
declare const $ZodURL: $constructor<$ZodURL>;
|
|
154
|
-
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
155
|
-
interface $ZodEmoji extends $ZodType {
|
|
156
|
-
_zod: $ZodEmojiInternals;
|
|
157
|
-
}
|
|
158
|
-
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
159
|
-
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
160
|
-
interface $ZodNanoID extends $ZodType {
|
|
161
|
-
_zod: $ZodNanoIDInternals;
|
|
162
|
-
}
|
|
163
|
-
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
164
|
-
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
165
|
-
interface $ZodCUID extends $ZodType {
|
|
166
|
-
_zod: $ZodCUIDInternals;
|
|
167
|
-
}
|
|
168
|
-
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
169
|
-
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
170
|
-
interface $ZodCUID2 extends $ZodType {
|
|
171
|
-
_zod: $ZodCUID2Internals;
|
|
172
|
-
}
|
|
173
|
-
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
174
|
-
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
175
|
-
interface $ZodULID extends $ZodType {
|
|
176
|
-
_zod: $ZodULIDInternals;
|
|
177
|
-
}
|
|
178
|
-
declare const $ZodULID: $constructor<$ZodULID>;
|
|
179
|
-
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
180
|
-
interface $ZodXID extends $ZodType {
|
|
181
|
-
_zod: $ZodXIDInternals;
|
|
182
|
-
}
|
|
183
|
-
declare const $ZodXID: $constructor<$ZodXID>;
|
|
184
|
-
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
185
|
-
interface $ZodKSUID extends $ZodType {
|
|
186
|
-
_zod: $ZodKSUIDInternals;
|
|
187
|
-
}
|
|
188
|
-
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
189
|
-
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
190
|
-
precision: number | null;
|
|
191
|
-
offset: boolean;
|
|
192
|
-
local: boolean;
|
|
193
|
-
}
|
|
194
|
-
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
195
|
-
def: $ZodISODateTimeDef;
|
|
196
|
-
}
|
|
197
|
-
interface $ZodISODateTime extends $ZodType {
|
|
198
|
-
_zod: $ZodISODateTimeInternals;
|
|
199
|
-
}
|
|
200
|
-
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
201
|
-
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
202
|
-
interface $ZodISODate extends $ZodType {
|
|
203
|
-
_zod: $ZodISODateInternals;
|
|
204
|
-
}
|
|
205
|
-
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
206
|
-
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
207
|
-
precision?: number | null;
|
|
208
|
-
}
|
|
209
|
-
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
210
|
-
def: $ZodISOTimeDef;
|
|
211
|
-
}
|
|
212
|
-
interface $ZodISOTime extends $ZodType {
|
|
213
|
-
_zod: $ZodISOTimeInternals;
|
|
214
|
-
}
|
|
215
|
-
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
216
|
-
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
217
|
-
interface $ZodISODuration extends $ZodType {
|
|
218
|
-
_zod: $ZodISODurationInternals;
|
|
219
|
-
}
|
|
220
|
-
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
221
|
-
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
222
|
-
version?: "v4";
|
|
223
|
-
}
|
|
224
|
-
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
225
|
-
def: $ZodIPv4Def;
|
|
226
|
-
}
|
|
227
|
-
interface $ZodIPv4 extends $ZodType {
|
|
228
|
-
_zod: $ZodIPv4Internals;
|
|
229
|
-
}
|
|
230
|
-
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
231
|
-
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
232
|
-
version?: "v6";
|
|
233
|
-
}
|
|
234
|
-
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
235
|
-
def: $ZodIPv6Def;
|
|
236
|
-
}
|
|
237
|
-
interface $ZodIPv6 extends $ZodType {
|
|
238
|
-
_zod: $ZodIPv6Internals;
|
|
239
|
-
}
|
|
240
|
-
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
241
|
-
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
242
|
-
version?: "v4";
|
|
243
|
-
}
|
|
244
|
-
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
245
|
-
def: $ZodCIDRv4Def;
|
|
246
|
-
}
|
|
247
|
-
interface $ZodCIDRv4 extends $ZodType {
|
|
248
|
-
_zod: $ZodCIDRv4Internals;
|
|
249
|
-
}
|
|
250
|
-
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
251
|
-
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
252
|
-
version?: "v6";
|
|
253
|
-
}
|
|
254
|
-
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
255
|
-
def: $ZodCIDRv6Def;
|
|
256
|
-
}
|
|
257
|
-
interface $ZodCIDRv6 extends $ZodType {
|
|
258
|
-
_zod: $ZodCIDRv6Internals;
|
|
259
|
-
}
|
|
260
|
-
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
261
|
-
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
262
|
-
interface $ZodBase64 extends $ZodType {
|
|
263
|
-
_zod: $ZodBase64Internals;
|
|
264
|
-
}
|
|
265
|
-
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
266
|
-
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
267
|
-
interface $ZodBase64URL extends $ZodType {
|
|
268
|
-
_zod: $ZodBase64URLInternals;
|
|
269
|
-
}
|
|
270
|
-
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
271
|
-
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
272
|
-
interface $ZodE164 extends $ZodType {
|
|
273
|
-
_zod: $ZodE164Internals;
|
|
274
|
-
}
|
|
275
|
-
declare const $ZodE164: $constructor<$ZodE164>;
|
|
276
|
-
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
277
|
-
alg?: JWTAlgorithm | undefined;
|
|
278
|
-
}
|
|
279
|
-
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
280
|
-
def: $ZodJWTDef;
|
|
281
|
-
}
|
|
282
|
-
interface $ZodJWT extends $ZodType {
|
|
283
|
-
_zod: $ZodJWTInternals;
|
|
284
|
-
}
|
|
285
|
-
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
286
|
-
interface $ZodNumberDef extends $ZodTypeDef {
|
|
287
|
-
type: "number";
|
|
288
|
-
coerce?: boolean;
|
|
289
|
-
}
|
|
290
|
-
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
291
|
-
def: $ZodNumberDef;
|
|
292
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
293
|
-
pattern: RegExp;
|
|
294
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
295
|
-
isst: $ZodIssueInvalidType;
|
|
296
|
-
bag: LoosePartial<{
|
|
297
|
-
minimum: number;
|
|
298
|
-
maximum: number;
|
|
299
|
-
exclusiveMinimum: number;
|
|
300
|
-
exclusiveMaximum: number;
|
|
301
|
-
format: string;
|
|
302
|
-
pattern: RegExp;
|
|
303
|
-
}>;
|
|
304
|
-
}
|
|
305
|
-
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
306
|
-
type: "boolean";
|
|
307
|
-
coerce?: boolean;
|
|
308
|
-
checks?: $ZodCheck<boolean>[];
|
|
309
|
-
}
|
|
310
|
-
interface $ZodBooleanInternals<T$1 = unknown> extends $ZodTypeInternals<boolean, T$1> {
|
|
311
|
-
pattern: RegExp;
|
|
312
|
-
def: $ZodBooleanDef;
|
|
313
|
-
isst: $ZodIssueInvalidType;
|
|
314
|
-
}
|
|
315
|
-
interface $ZodNullDef extends $ZodTypeDef {
|
|
316
|
-
type: "null";
|
|
317
|
-
}
|
|
318
|
-
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
319
|
-
pattern: RegExp;
|
|
320
|
-
def: $ZodNullDef;
|
|
321
|
-
values: PrimitiveSet;
|
|
322
|
-
isst: $ZodIssueInvalidType;
|
|
323
|
-
}
|
|
324
|
-
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
325
|
-
type: "unknown";
|
|
326
|
-
}
|
|
327
|
-
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
328
|
-
def: $ZodUnknownDef;
|
|
329
|
-
isst: never;
|
|
330
|
-
}
|
|
331
|
-
interface $ZodArrayDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
332
|
-
type: "array";
|
|
333
|
-
element: T$1;
|
|
334
|
-
}
|
|
335
|
-
interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
336
|
-
def: $ZodArrayDef<T$1>;
|
|
337
|
-
isst: $ZodIssueInvalidType;
|
|
338
|
-
output: output<T$1>[];
|
|
339
|
-
input: input<T$1>[];
|
|
340
|
-
}
|
|
341
|
-
interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
|
|
342
|
-
declare const $ZodArray: $constructor<$ZodArray>;
|
|
343
|
-
type OptionalOutSchema = {
|
|
344
|
-
_zod: {
|
|
345
|
-
optout: "optional";
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
type OptionalInSchema = {
|
|
349
|
-
_zod: {
|
|
350
|
-
optin: "optional";
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
|
|
354
|
-
type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
|
|
355
|
-
type $ZodObjectConfig = {
|
|
356
|
-
out: Record<string, unknown>;
|
|
357
|
-
in: Record<string, unknown>;
|
|
358
|
-
};
|
|
359
|
-
type $loose = {
|
|
360
|
-
out: Record<string, unknown>;
|
|
361
|
-
in: Record<string, unknown>;
|
|
362
|
-
};
|
|
363
|
-
type $strict = {
|
|
364
|
-
out: {};
|
|
365
|
-
in: {};
|
|
366
|
-
};
|
|
367
|
-
type $strip = {
|
|
368
|
-
out: {};
|
|
369
|
-
in: {};
|
|
370
|
-
};
|
|
371
|
-
type $catchall<T$1 extends SomeType> = {
|
|
372
|
-
out: {
|
|
373
|
-
[k: string]: output<T$1>;
|
|
374
|
-
};
|
|
375
|
-
in: {
|
|
376
|
-
[k: string]: input<T$1>;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
type $ZodShape = Readonly<{
|
|
380
|
-
[k: string]: $ZodType;
|
|
381
|
-
}>;
|
|
382
|
-
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
383
|
-
type: "object";
|
|
384
|
-
shape: Shape;
|
|
385
|
-
catchall?: $ZodType | undefined;
|
|
386
|
-
}
|
|
387
|
-
interface $ZodObjectInternals< /** @ts-ignore Cast variance */
|
|
388
|
-
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
389
|
-
def: $ZodObjectDef<Shape>;
|
|
390
|
-
config: Config;
|
|
391
|
-
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
392
|
-
propValues: PropValues;
|
|
393
|
-
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
394
|
-
input: $InferObjectInput<Shape, Config["in"]>;
|
|
395
|
-
optin?: "optional" | undefined;
|
|
396
|
-
optout?: "optional" | undefined;
|
|
397
|
-
}
|
|
398
|
-
type $ZodLooseShape = Record<string, any>;
|
|
399
|
-
interface $ZodObject< /** @ts-ignore Cast variance */
|
|
400
|
-
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
|
|
401
|
-
"~standard": $ZodStandardSchema<this>;
|
|
402
|
-
}
|
|
403
|
-
declare const $ZodObject: $constructor<$ZodObject>;
|
|
404
|
-
type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
|
|
405
|
-
type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
|
|
406
|
-
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
407
|
-
type: "union";
|
|
408
|
-
options: Options;
|
|
409
|
-
}
|
|
410
|
-
type IsOptionalIn<T$1 extends SomeType> = T$1 extends OptionalInSchema ? true : false;
|
|
411
|
-
type IsOptionalOut<T$1 extends SomeType> = T$1 extends OptionalOutSchema ? true : false;
|
|
412
|
-
interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
413
|
-
def: $ZodUnionDef<T$1>;
|
|
414
|
-
isst: $ZodIssueInvalidUnion;
|
|
415
|
-
pattern: T$1[number]["_zod"]["pattern"];
|
|
416
|
-
values: T$1[number]["_zod"]["values"];
|
|
417
|
-
output: $InferUnionOutput<T$1[number]>;
|
|
418
|
-
input: $InferUnionInput<T$1[number]>;
|
|
419
|
-
optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
420
|
-
optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
421
|
-
}
|
|
422
|
-
interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
|
|
423
|
-
_zod: $ZodUnionInternals<T$1>;
|
|
424
|
-
}
|
|
425
|
-
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
426
|
-
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
427
|
-
type: "intersection";
|
|
428
|
-
left: Left;
|
|
429
|
-
right: Right;
|
|
430
|
-
}
|
|
431
|
-
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
432
|
-
def: $ZodIntersectionDef<A, B>;
|
|
433
|
-
isst: never;
|
|
434
|
-
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
435
|
-
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
436
|
-
output: output<A> & output<B>;
|
|
437
|
-
input: input<A> & input<B>;
|
|
438
|
-
}
|
|
439
|
-
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
440
|
-
_zod: $ZodIntersectionInternals<A, B>;
|
|
441
|
-
}
|
|
442
|
-
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
443
|
-
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
|
444
|
-
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
445
|
-
type: "record";
|
|
446
|
-
keyType: Key;
|
|
447
|
-
valueType: Value;
|
|
448
|
-
}
|
|
449
|
-
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
450
|
-
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
|
|
451
|
-
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
452
|
-
def: $ZodRecordDef<Key, Value>;
|
|
453
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
454
|
-
optin?: "optional" | undefined;
|
|
455
|
-
optout?: "optional" | undefined;
|
|
456
|
-
}
|
|
457
|
-
type $partial = {
|
|
458
|
-
"~~partial": true;
|
|
459
|
-
};
|
|
460
|
-
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
461
|
-
_zod: $ZodRecordInternals<Key, Value>;
|
|
462
|
-
}
|
|
463
|
-
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
464
|
-
type $InferEnumOutput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
465
|
-
type $InferEnumInput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
466
|
-
interface $ZodEnumDef<T$1 extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
467
|
-
type: "enum";
|
|
468
|
-
entries: T$1;
|
|
469
|
-
}
|
|
470
|
-
interface $ZodEnumInternals< /** @ts-ignore Cast variance */
|
|
471
|
-
out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T$1>, $InferEnumInput<T$1>> {
|
|
472
|
-
def: $ZodEnumDef<T$1>;
|
|
473
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
474
|
-
values: PrimitiveSet;
|
|
475
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
476
|
-
pattern: RegExp;
|
|
477
|
-
isst: $ZodIssueInvalidValue;
|
|
478
|
-
}
|
|
479
|
-
interface $ZodEnum<T$1 extends EnumLike = EnumLike> extends $ZodType {
|
|
480
|
-
_zod: $ZodEnumInternals<T$1>;
|
|
481
|
-
}
|
|
482
|
-
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
483
|
-
interface $ZodLiteralDef<T$1 extends Literal> extends $ZodTypeDef {
|
|
484
|
-
type: "literal";
|
|
485
|
-
values: T$1[];
|
|
486
|
-
}
|
|
487
|
-
interface $ZodLiteralInternals<T$1 extends Literal = Literal> extends $ZodTypeInternals<T$1, T$1> {
|
|
488
|
-
def: $ZodLiteralDef<T$1>;
|
|
489
|
-
values: Set<T$1>;
|
|
490
|
-
pattern: RegExp;
|
|
491
|
-
isst: $ZodIssueInvalidValue;
|
|
492
|
-
}
|
|
493
|
-
interface $ZodLiteral<T$1 extends Literal = Literal> extends $ZodType {
|
|
494
|
-
_zod: $ZodLiteralInternals<T$1>;
|
|
495
|
-
}
|
|
496
|
-
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
497
|
-
interface $ZodTransformDef extends $ZodTypeDef {
|
|
498
|
-
type: "transform";
|
|
499
|
-
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
500
|
-
}
|
|
501
|
-
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
502
|
-
def: $ZodTransformDef;
|
|
503
|
-
isst: never;
|
|
504
|
-
}
|
|
505
|
-
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
506
|
-
_zod: $ZodTransformInternals<O, I>;
|
|
507
|
-
}
|
|
508
|
-
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
509
|
-
interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
510
|
-
type: "optional";
|
|
511
|
-
innerType: T$1;
|
|
512
|
-
}
|
|
513
|
-
interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
|
|
514
|
-
def: $ZodOptionalDef<T$1>;
|
|
515
|
-
optin: "optional";
|
|
516
|
-
optout: "optional";
|
|
517
|
-
isst: never;
|
|
518
|
-
values: T$1["_zod"]["values"];
|
|
519
|
-
pattern: T$1["_zod"]["pattern"];
|
|
520
|
-
}
|
|
521
|
-
interface $ZodOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
522
|
-
_zod: $ZodOptionalInternals<T$1>;
|
|
523
|
-
}
|
|
524
|
-
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
525
|
-
interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
526
|
-
type: "nullable";
|
|
527
|
-
innerType: T$1;
|
|
528
|
-
}
|
|
529
|
-
interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
|
|
530
|
-
def: $ZodNullableDef<T$1>;
|
|
531
|
-
optin: T$1["_zod"]["optin"];
|
|
532
|
-
optout: T$1["_zod"]["optout"];
|
|
533
|
-
isst: never;
|
|
534
|
-
values: T$1["_zod"]["values"];
|
|
535
|
-
pattern: T$1["_zod"]["pattern"];
|
|
536
|
-
}
|
|
537
|
-
interface $ZodNullable<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
538
|
-
_zod: $ZodNullableInternals<T$1>;
|
|
539
|
-
}
|
|
540
|
-
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
541
|
-
interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
542
|
-
type: "default";
|
|
543
|
-
innerType: T$1;
|
|
544
|
-
/** The default value. May be a getter. */
|
|
545
|
-
defaultValue: NoUndefined<output<T$1>>;
|
|
546
|
-
}
|
|
547
|
-
interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
548
|
-
def: $ZodDefaultDef<T$1>;
|
|
549
|
-
optin: "optional";
|
|
550
|
-
optout?: "optional" | undefined;
|
|
551
|
-
isst: never;
|
|
552
|
-
values: T$1["_zod"]["values"];
|
|
553
|
-
}
|
|
554
|
-
interface $ZodDefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
555
|
-
_zod: $ZodDefaultInternals<T$1>;
|
|
556
|
-
}
|
|
557
|
-
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
558
|
-
interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
559
|
-
type: "prefault";
|
|
560
|
-
innerType: T$1;
|
|
561
|
-
/** The default value. May be a getter. */
|
|
562
|
-
defaultValue: input<T$1>;
|
|
563
|
-
}
|
|
564
|
-
interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
565
|
-
def: $ZodPrefaultDef<T$1>;
|
|
566
|
-
optin: "optional";
|
|
567
|
-
optout?: "optional" | undefined;
|
|
568
|
-
isst: never;
|
|
569
|
-
values: T$1["_zod"]["values"];
|
|
570
|
-
}
|
|
571
|
-
interface $ZodPrefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
572
|
-
_zod: $ZodPrefaultInternals<T$1>;
|
|
573
|
-
}
|
|
574
|
-
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
575
|
-
interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
576
|
-
type: "nonoptional";
|
|
577
|
-
innerType: T$1;
|
|
578
|
-
}
|
|
579
|
-
interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
|
|
580
|
-
def: $ZodNonOptionalDef<T$1>;
|
|
581
|
-
isst: $ZodIssueInvalidType;
|
|
582
|
-
values: T$1["_zod"]["values"];
|
|
583
|
-
optin: "optional" | undefined;
|
|
584
|
-
optout: "optional" | undefined;
|
|
585
|
-
}
|
|
586
|
-
interface $ZodNonOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
587
|
-
_zod: $ZodNonOptionalInternals<T$1>;
|
|
588
|
-
}
|
|
589
|
-
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
590
|
-
interface $ZodCatchCtx extends ParsePayload {
|
|
591
|
-
/** @deprecated Use `ctx.issues` */
|
|
592
|
-
error: {
|
|
593
|
-
issues: $ZodIssue[];
|
|
594
|
-
};
|
|
595
|
-
/** @deprecated Use `ctx.value` */
|
|
596
|
-
input: unknown;
|
|
597
|
-
}
|
|
598
|
-
interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
599
|
-
type: "catch";
|
|
600
|
-
innerType: T$1;
|
|
601
|
-
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
602
|
-
}
|
|
603
|
-
interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
|
|
604
|
-
def: $ZodCatchDef<T$1>;
|
|
605
|
-
optin: T$1["_zod"]["optin"];
|
|
606
|
-
optout: T$1["_zod"]["optout"];
|
|
607
|
-
isst: never;
|
|
608
|
-
values: T$1["_zod"]["values"];
|
|
609
|
-
}
|
|
610
|
-
interface $ZodCatch<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
611
|
-
_zod: $ZodCatchInternals<T$1>;
|
|
612
|
-
}
|
|
613
|
-
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
614
|
-
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
615
|
-
type: "pipe";
|
|
616
|
-
in: A;
|
|
617
|
-
out: B;
|
|
618
|
-
/** Only defined inside $ZodCodec instances. */
|
|
619
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
620
|
-
/** Only defined inside $ZodCodec instances. */
|
|
621
|
-
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
622
|
-
}
|
|
623
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
624
|
-
def: $ZodPipeDef<A, B>;
|
|
625
|
-
isst: never;
|
|
626
|
-
values: A["_zod"]["values"];
|
|
627
|
-
optin: A["_zod"]["optin"];
|
|
628
|
-
optout: B["_zod"]["optout"];
|
|
629
|
-
propValues: A["_zod"]["propValues"];
|
|
630
|
-
}
|
|
631
|
-
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
632
|
-
_zod: $ZodPipeInternals<A, B>;
|
|
633
|
-
}
|
|
634
|
-
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
635
|
-
interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
636
|
-
type: "readonly";
|
|
637
|
-
innerType: T$1;
|
|
638
|
-
}
|
|
639
|
-
interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
|
|
640
|
-
def: $ZodReadonlyDef<T$1>;
|
|
641
|
-
optin: T$1["_zod"]["optin"];
|
|
642
|
-
optout: T$1["_zod"]["optout"];
|
|
643
|
-
isst: never;
|
|
644
|
-
propValues: T$1["_zod"]["propValues"];
|
|
645
|
-
values: T$1["_zod"]["values"];
|
|
646
|
-
}
|
|
647
|
-
interface $ZodReadonly<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
648
|
-
_zod: $ZodReadonlyInternals<T$1>;
|
|
649
|
-
}
|
|
650
|
-
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
651
|
-
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
652
|
-
type: "custom";
|
|
653
|
-
check: "custom";
|
|
654
|
-
path?: PropertyKey[] | undefined;
|
|
655
|
-
error?: $ZodErrorMap | undefined;
|
|
656
|
-
params?: Record<string, any> | undefined;
|
|
657
|
-
fn: (arg: O) => unknown;
|
|
658
|
-
}
|
|
659
|
-
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
660
|
-
def: $ZodCustomDef;
|
|
661
|
-
issc: $ZodIssue;
|
|
662
|
-
isst: never;
|
|
663
|
-
bag: LoosePartial<{
|
|
664
|
-
Class: typeof Class;
|
|
665
|
-
}>;
|
|
666
|
-
}
|
|
667
|
-
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
668
|
-
_zod: $ZodCustomInternals<O, I>;
|
|
669
|
-
}
|
|
670
|
-
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
3
|
+
//#region ../types/src/schemas.d.ts
|
|
4
|
+
|
|
5
|
+
declare const conversationSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
createdAt: z.ZodString;
|
|
9
|
+
updatedAt: z.ZodString;
|
|
10
|
+
visitorId: z.ZodString;
|
|
11
|
+
websiteId: z.ZodString;
|
|
12
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
resolved: "resolved";
|
|
14
|
+
open: "open";
|
|
15
|
+
spam: "spam";
|
|
16
|
+
}>>;
|
|
17
|
+
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
conversationId: z.ZodString;
|
|
21
|
+
organizationId: z.ZodString;
|
|
22
|
+
visibility: z.ZodEnum<{
|
|
23
|
+
public: "public";
|
|
24
|
+
private: "private";
|
|
25
|
+
}>;
|
|
26
|
+
type: z.ZodEnum<{
|
|
27
|
+
message: "message";
|
|
28
|
+
event: "event";
|
|
29
|
+
identification: "identification";
|
|
30
|
+
}>;
|
|
31
|
+
text: z.ZodNullable<z.ZodString>;
|
|
32
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<"text">;
|
|
35
|
+
text: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"event">;
|
|
38
|
+
eventType: z.ZodEnum<{
|
|
39
|
+
assigned: "assigned";
|
|
40
|
+
unassigned: "unassigned";
|
|
41
|
+
participant_requested: "participant_requested";
|
|
42
|
+
participant_joined: "participant_joined";
|
|
43
|
+
participant_left: "participant_left";
|
|
44
|
+
status_changed: "status_changed";
|
|
45
|
+
priority_changed: "priority_changed";
|
|
46
|
+
tag_added: "tag_added";
|
|
47
|
+
tag_removed: "tag_removed";
|
|
48
|
+
resolved: "resolved";
|
|
49
|
+
reopened: "reopened";
|
|
50
|
+
visitor_blocked: "visitor_blocked";
|
|
51
|
+
visitor_unblocked: "visitor_unblocked";
|
|
52
|
+
visitor_identified: "visitor_identified";
|
|
53
|
+
}>;
|
|
54
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
55
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
57
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
58
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<"image">;
|
|
61
|
+
url: z.ZodString;
|
|
62
|
+
mediaType: z.ZodString;
|
|
63
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
64
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
type: z.ZodLiteral<"file">;
|
|
69
|
+
url: z.ZodString;
|
|
70
|
+
mediaType: z.ZodString;
|
|
71
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
72
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"metadata">;
|
|
75
|
+
source: z.ZodEnum<{
|
|
76
|
+
email: "email";
|
|
77
|
+
widget: "widget";
|
|
78
|
+
api: "api";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>]>>;
|
|
81
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
82
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
83
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
84
|
+
createdAt: z.ZodString;
|
|
85
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
type Conversation = z.infer<typeof conversationSchema>;
|
|
89
|
+
declare const conversationSeenSchema: z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
conversationId: z.ZodString;
|
|
92
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
93
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
94
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
lastSeenAt: z.ZodString;
|
|
96
|
+
createdAt: z.ZodString;
|
|
97
|
+
updatedAt: z.ZodString;
|
|
98
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
type ConversationSeen = z.infer<typeof conversationSeenSchema>;
|
|
671
101
|
//#endregion
|
|
672
|
-
export {
|
|
102
|
+
export { Conversation, ConversationSeen };
|
|
673
103
|
//# sourceMappingURL=schemas.d.ts.map
|