@cossistant/types 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/api/common.d.ts +17 -20
- package/api/common.d.ts.map +1 -1
- package/api/contact.d.ts +99 -101
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +322 -326
- package/api/conversation.d.ts.map +1 -1
- package/api/notification.d.ts +70 -73
- package/api/notification.d.ts.map +1 -1
- package/api/organization.d.ts +7 -9
- package/api/organization.d.ts.map +1 -1
- package/api/timeline-item.d.ts +261 -265
- package/api/timeline-item.d.ts.map +1 -1
- package/api/upload.d.ts +95 -98
- package/api/upload.d.ts.map +1 -1
- package/api/user.d.ts +19 -21
- package/api/user.d.ts.map +1 -1
- package/api/visitor.d.ts +110 -112
- package/api/visitor.d.ts.map +1 -1
- package/api/website.d.ts +177 -179
- package/api/website.d.ts.map +1 -1
- package/package.json +1 -1
- package/realtime-events.d.ts +330 -332
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +80 -82
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +78 -80
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/conversation.d.ts +328 -330
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +105 -107
- package/trpc/visitor.d.ts.map +1 -1
- 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/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 -685
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -325
- 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/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;cAMa,mBAAiB,CAAA,CAAA;;EAAjB,cAAA,aAKX;;;;;;;;AAL4B,cAWjB,cAXiB,EAAA;EAAA,SAAA,aAAA,aAAA,CAAA;IAWjB,SAAA,aAiEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,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
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "./core.js";
|
|
3
|
-
import { ZodArray, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "./schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/schemas.d.ts
|
|
6
|
-
declare const viewSchema: ZodObject<{
|
|
7
|
-
id: ZodString;
|
|
8
|
-
name: ZodString;
|
|
9
|
-
description: ZodNullable<ZodString>;
|
|
10
|
-
prompt: ZodNullable<ZodString>;
|
|
11
|
-
organizationId: ZodString;
|
|
12
|
-
websiteId: ZodString;
|
|
13
|
-
createdAt: ZodString;
|
|
14
|
-
updatedAt: ZodString;
|
|
15
|
-
deletedAt: ZodNullable<ZodString>;
|
|
16
|
-
},
|
|
17
|
-
type InboxView =
|
|
18
|
-
declare const conversationSchema: ZodObject<{
|
|
19
|
-
id: ZodString;
|
|
20
|
-
title: ZodOptional<ZodString>;
|
|
21
|
-
createdAt: ZodString;
|
|
22
|
-
updatedAt: ZodString;
|
|
23
|
-
visitorId: ZodString;
|
|
24
|
-
websiteId: ZodString;
|
|
25
|
-
status: ZodDefault<ZodEnum<{
|
|
4
|
+
declare const viewSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
9
|
+
organizationId: z.ZodString;
|
|
10
|
+
websiteId: z.ZodString;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type InboxView = z.infer<typeof viewSchema>;
|
|
16
|
+
declare const conversationSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
title: z.ZodOptional<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
visitorId: z.ZodString;
|
|
22
|
+
websiteId: z.ZodString;
|
|
23
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
26
24
|
open: "open";
|
|
27
25
|
resolved: "resolved";
|
|
28
26
|
spam: "spam";
|
|
29
27
|
}>>;
|
|
30
|
-
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
31
|
-
lastTimelineItem: ZodOptional<ZodObject<{
|
|
32
|
-
id: ZodOptional<ZodString>;
|
|
33
|
-
conversationId: ZodString;
|
|
34
|
-
organizationId: ZodString;
|
|
35
|
-
visibility: ZodEnum<{
|
|
36
|
-
private: "private";
|
|
28
|
+
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
conversationId: z.ZodString;
|
|
32
|
+
organizationId: z.ZodString;
|
|
33
|
+
visibility: z.ZodEnum<{
|
|
37
34
|
public: "public";
|
|
35
|
+
private: "private";
|
|
38
36
|
}>;
|
|
39
|
-
type: ZodEnum<{
|
|
37
|
+
type: z.ZodEnum<{
|
|
40
38
|
message: "message";
|
|
41
39
|
event: "event";
|
|
42
40
|
identification: "identification";
|
|
43
41
|
}>;
|
|
44
|
-
text: ZodNullable<ZodString>;
|
|
45
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
46
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
47
|
-
type: ZodLiteral<"text">;
|
|
48
|
-
text: ZodString;
|
|
49
|
-
},
|
|
50
|
-
type: ZodLiteral<"event">;
|
|
51
|
-
eventType: ZodEnum<{
|
|
42
|
+
text: z.ZodNullable<z.ZodString>;
|
|
43
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"text">;
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"event">;
|
|
49
|
+
eventType: z.ZodEnum<{
|
|
52
50
|
resolved: "resolved";
|
|
53
51
|
assigned: "assigned";
|
|
54
52
|
unassigned: "unassigned";
|
|
@@ -64,53 +62,53 @@ declare const conversationSchema: ZodObject<{
|
|
|
64
62
|
visitor_unblocked: "visitor_unblocked";
|
|
65
63
|
visitor_identified: "visitor_identified";
|
|
66
64
|
}>;
|
|
67
|
-
actorUserId: ZodNullable<ZodString>;
|
|
68
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
69
|
-
targetUserId: ZodNullable<ZodString>;
|
|
70
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
71
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
72
|
-
},
|
|
73
|
-
type: ZodLiteral<"image">;
|
|
74
|
-
url: ZodString;
|
|
75
|
-
mediaType: ZodString;
|
|
76
|
-
fileName: ZodOptional<ZodString>;
|
|
77
|
-
size: ZodOptional<ZodNumber>;
|
|
78
|
-
width: ZodOptional<ZodNumber>;
|
|
79
|
-
height: ZodOptional<ZodNumber>;
|
|
80
|
-
},
|
|
81
|
-
type: ZodLiteral<"file">;
|
|
82
|
-
url: ZodString;
|
|
83
|
-
mediaType: ZodString;
|
|
84
|
-
fileName: ZodOptional<ZodString>;
|
|
85
|
-
size: ZodOptional<ZodNumber>;
|
|
86
|
-
},
|
|
87
|
-
type: ZodLiteral<"metadata">;
|
|
88
|
-
source: ZodEnum<{
|
|
65
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
66
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
68
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
69
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"image">;
|
|
72
|
+
url: z.ZodString;
|
|
73
|
+
mediaType: z.ZodString;
|
|
74
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
75
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"file">;
|
|
80
|
+
url: z.ZodString;
|
|
81
|
+
mediaType: z.ZodString;
|
|
82
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
83
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"metadata">;
|
|
86
|
+
source: z.ZodEnum<{
|
|
89
87
|
email: "email";
|
|
90
88
|
widget: "widget";
|
|
91
89
|
api: "api";
|
|
92
90
|
}>;
|
|
93
|
-
},
|
|
94
|
-
userId: ZodNullable<ZodString>;
|
|
95
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
96
|
-
visitorId: ZodNullable<ZodString>;
|
|
97
|
-
createdAt: ZodString;
|
|
98
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
type Conversation =
|
|
102
|
-
declare const conversationSeenSchema: ZodObject<{
|
|
103
|
-
id: ZodString;
|
|
104
|
-
conversationId: ZodString;
|
|
105
|
-
userId: ZodNullable<ZodString>;
|
|
106
|
-
visitorId: ZodNullable<ZodString>;
|
|
107
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
108
|
-
lastSeenAt: ZodString;
|
|
109
|
-
createdAt: ZodString;
|
|
110
|
-
updatedAt: ZodString;
|
|
111
|
-
deletedAt: ZodNullable<ZodString>;
|
|
112
|
-
},
|
|
113
|
-
type ConversationSeen =
|
|
91
|
+
}, z.core.$strip>]>>;
|
|
92
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
93
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
94
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
createdAt: z.ZodString;
|
|
96
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
type Conversation = z.infer<typeof conversationSchema>;
|
|
100
|
+
declare const conversationSeenSchema: z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
conversationId: z.ZodString;
|
|
103
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
104
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
106
|
+
lastSeenAt: z.ZodString;
|
|
107
|
+
createdAt: z.ZodString;
|
|
108
|
+
updatedAt: z.ZodString;
|
|
109
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
type ConversationSeen = z.infer<typeof conversationSeenSchema>;
|
|
114
112
|
//#endregion
|
|
115
113
|
export { Conversation, ConversationSeen, InboxView, conversationSchema, conversationSeenSchema, viewSchema };
|
|
116
114
|
//# sourceMappingURL=schemas.d.ts.map
|
package/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;cAIa,YAAU,CAAA,CAAA;;EAAV,IAAA,aAUX;;;;;;;;;KAEU,SAAA,GAAY,CAAA,CAAE,aAAa;cAE1B,oBAAkB,CAAA,CAAA;;;;EAdR,SAAA,aAAA;EAAA,SAAA,aAAA;EAYX,SAAA,aAAS;EAER,MAAA,cAAA,UAgBX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;;;;;EApBJ,SAAA,aAAA;EAAA,SAAA,eAAA,YAAA,CAAA;AAkB/B,CAAA,eAAY,CAAA;AAEC,KAYD,gBAAA,GAAmB,CAAA,CAAE,KAF/B,CAAA,OAE4C,sBAF5C,CAAA"}
|
package/trpc/contact.d.ts
CHANGED
|
@@ -1,89 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodEmail, ZodEnum, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion } from "../schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/trpc/contact.d.ts
|
|
6
|
-
declare const contactListItemSchema: ZodObject<{
|
|
7
|
-
id: ZodULID;
|
|
8
|
-
name: ZodNullable<ZodString>;
|
|
9
|
-
email: ZodNullable<ZodString>;
|
|
10
|
-
image: ZodNullable<ZodString>;
|
|
11
|
-
createdAt: ZodString;
|
|
12
|
-
updatedAt: ZodString;
|
|
13
|
-
visitorCount: ZodNumber;
|
|
14
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
15
|
-
contactOrganizationId: ZodNullable<ZodString>;
|
|
16
|
-
contactOrganizationName: ZodNullable<ZodString>;
|
|
17
|
-
},
|
|
18
|
-
type ContactListItem =
|
|
19
|
-
declare const contactListVisitorStatusSchema: ZodEnum<{
|
|
4
|
+
declare const contactListItemSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodULID;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
email: z.ZodNullable<z.ZodString>;
|
|
8
|
+
image: z.ZodNullable<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
updatedAt: z.ZodString;
|
|
11
|
+
visitorCount: z.ZodNumber;
|
|
12
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
13
|
+
contactOrganizationId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
contactOrganizationName: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type ContactListItem = z.infer<typeof contactListItemSchema>;
|
|
17
|
+
declare const contactListVisitorStatusSchema: z.ZodEnum<{
|
|
20
18
|
all: "all";
|
|
21
19
|
withVisitors: "withVisitors";
|
|
22
20
|
withoutVisitors: "withoutVisitors";
|
|
23
21
|
}>;
|
|
24
|
-
type ContactListVisitorStatus =
|
|
25
|
-
declare const listContactsResponseSchema: ZodObject<{
|
|
26
|
-
items: ZodArray<ZodObject<{
|
|
27
|
-
id: ZodULID;
|
|
28
|
-
name: ZodNullable<ZodString>;
|
|
29
|
-
email: ZodNullable<ZodString>;
|
|
30
|
-
image: ZodNullable<ZodString>;
|
|
31
|
-
createdAt: ZodString;
|
|
32
|
-
updatedAt: ZodString;
|
|
33
|
-
visitorCount: ZodNumber;
|
|
34
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
35
|
-
contactOrganizationId: ZodNullable<ZodString>;
|
|
36
|
-
contactOrganizationName: ZodNullable<ZodString>;
|
|
37
|
-
},
|
|
38
|
-
page: ZodNumber;
|
|
39
|
-
pageSize: ZodNumber;
|
|
40
|
-
totalCount: ZodNumber;
|
|
41
|
-
},
|
|
42
|
-
type ListContactsResponse =
|
|
43
|
-
declare const contactVisitorSummarySchema: ZodObject<{
|
|
44
|
-
id: ZodULID;
|
|
45
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
46
|
-
createdAt: ZodString;
|
|
47
|
-
browser: ZodNullable<ZodString>;
|
|
48
|
-
device: ZodNullable<ZodString>;
|
|
49
|
-
country: ZodNullable<ZodString>;
|
|
50
|
-
city: ZodNullable<ZodString>;
|
|
51
|
-
language: ZodNullable<ZodString>;
|
|
52
|
-
blockedAt: ZodNullable<ZodString>;
|
|
53
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
54
|
-
isBlocked: ZodBoolean;
|
|
55
|
-
},
|
|
56
|
-
type ContactVisitorSummary =
|
|
57
|
-
declare const contactDetailResponseSchema: ZodObject<{
|
|
58
|
-
contact: ZodObject<{
|
|
59
|
-
id: ZodULID;
|
|
60
|
-
externalId: ZodNullable<ZodString>;
|
|
61
|
-
name: ZodNullable<ZodString>;
|
|
62
|
-
email: ZodNullable<ZodEmail>;
|
|
63
|
-
image: ZodNullable<ZodURL>;
|
|
64
|
-
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
65
|
-
contactOrganizationId: ZodNullable<ZodULID>;
|
|
66
|
-
websiteId: ZodULID;
|
|
67
|
-
organizationId: ZodULID;
|
|
68
|
-
userId: ZodNullable<ZodULID>;
|
|
69
|
-
createdAt: ZodString;
|
|
70
|
-
updatedAt: ZodString;
|
|
71
|
-
},
|
|
72
|
-
visitors: ZodArray<ZodObject<{
|
|
73
|
-
id: ZodULID;
|
|
74
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
75
|
-
createdAt: ZodString;
|
|
76
|
-
browser: ZodNullable<ZodString>;
|
|
77
|
-
device: ZodNullable<ZodString>;
|
|
78
|
-
country: ZodNullable<ZodString>;
|
|
79
|
-
city: ZodNullable<ZodString>;
|
|
80
|
-
language: ZodNullable<ZodString>;
|
|
81
|
-
blockedAt: ZodNullable<ZodString>;
|
|
82
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
83
|
-
isBlocked: ZodBoolean;
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
type ContactDetailResponse =
|
|
22
|
+
type ContactListVisitorStatus = z.infer<typeof contactListVisitorStatusSchema>;
|
|
23
|
+
declare const listContactsResponseSchema: z.ZodObject<{
|
|
24
|
+
items: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodULID;
|
|
26
|
+
name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
email: z.ZodNullable<z.ZodString>;
|
|
28
|
+
image: z.ZodNullable<z.ZodString>;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
updatedAt: z.ZodString;
|
|
31
|
+
visitorCount: z.ZodNumber;
|
|
32
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
contactOrganizationId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
contactOrganizationName: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
page: z.ZodNumber;
|
|
37
|
+
pageSize: z.ZodNumber;
|
|
38
|
+
totalCount: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;
|
|
41
|
+
declare const contactVisitorSummarySchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodULID;
|
|
43
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
46
|
+
device: z.ZodNullable<z.ZodString>;
|
|
47
|
+
country: z.ZodNullable<z.ZodString>;
|
|
48
|
+
city: z.ZodNullable<z.ZodString>;
|
|
49
|
+
language: z.ZodNullable<z.ZodString>;
|
|
50
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
51
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
52
|
+
isBlocked: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
type ContactVisitorSummary = z.infer<typeof contactVisitorSummarySchema>;
|
|
55
|
+
declare const contactDetailResponseSchema: z.ZodObject<{
|
|
56
|
+
contact: z.ZodObject<{
|
|
57
|
+
id: z.ZodULID;
|
|
58
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
name: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
61
|
+
image: z.ZodNullable<z.ZodURL>;
|
|
62
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
|
|
63
|
+
contactOrganizationId: z.ZodNullable<z.ZodULID>;
|
|
64
|
+
websiteId: z.ZodULID;
|
|
65
|
+
organizationId: z.ZodULID;
|
|
66
|
+
userId: z.ZodNullable<z.ZodULID>;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
updatedAt: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
visitors: z.ZodArray<z.ZodObject<{
|
|
71
|
+
id: z.ZodULID;
|
|
72
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
73
|
+
createdAt: z.ZodString;
|
|
74
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
75
|
+
device: z.ZodNullable<z.ZodString>;
|
|
76
|
+
country: z.ZodNullable<z.ZodString>;
|
|
77
|
+
city: z.ZodNullable<z.ZodString>;
|
|
78
|
+
language: z.ZodNullable<z.ZodString>;
|
|
79
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
isBlocked: z.ZodBoolean;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
type ContactDetailResponse = z.infer<typeof contactDetailResponseSchema>;
|
|
87
85
|
//#endregion
|
|
88
86
|
export { ContactDetailResponse, ContactListItem, ContactListVisitorStatus, ContactVisitorSummary, ListContactsResponse, contactDetailResponseSchema, contactListItemSchema, contactListVisitorStatusSchema, contactVisitorSummarySchema, listContactsResponseSchema };
|
|
89
87
|
//# sourceMappingURL=contact.d.ts.map
|
package/trpc/contact.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAAqB,CAAA,CAAA;;EAArB,IAAA,eAAA,YAWX,CAAA;;;;;;;;;;KAEU,eAAA,GAAkB,CAAA,CAAE,aAAa;cAEhC,gCAA8B,CAAA,CAAA;;;;;KAM/B,wBAAA,GAA2B,CAAA,CAAE,aACjC;cAGK,4BAA0B,CAAA,CAAA;EAzBL,KAAA,YAAA,YAAA,CAAA;IAAA,EAAA,WAAA;IAatB,IAAA,eAAe,YAAkB,CAAA;IAEhC,KAAA,eAAA,YAIX,CAAA;IAEU,KAAA,eAAA,YAAwB,CAAA;IAIvB,SAAA,aAAA;;;;;;;;;;;KAOD,oBAAA,GAAuB,CAAA,CAAE,aAAa;cAErC,6BAA2B,CAAA,CAAA;;;;;;;;;;;;CATD,eAAA,CAAA;AAAA,KAuB3B,qBAAA,GAAwB,CAAA,CAAE,KAvBC,CAAA,OAuBY,2BAvBZ,CAAA;AAO3B,cAkBC,2BAlBqC,EAkBV,CAAA,CAAA,SAlBU,CAAA;EAErC,OAAA,aAAA,CAAA;;;;;;;;;;;;;;;;;;;;;IAA2B,IAAA,eAAA,YAAA,CAAA;IAAA,QAAA,eAAA,YAAA,CAAA;IAc5B,SAAA,eAAqB,YAAkB,CAAA;IAEtC,eAAA,eAGX,YAAA,CAAA;;;;KAEU,qBAAA,GAAwB,CAAA,CAAE,aAAa"}
|