@cossistant/types 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/api/common.d.ts +17 -20
  2. package/api/common.d.ts.map +1 -1
  3. package/api/contact.d.ts +99 -101
  4. package/api/contact.d.ts.map +1 -1
  5. package/api/conversation.d.ts +322 -326
  6. package/api/conversation.d.ts.map +1 -1
  7. package/api/notification.d.ts +70 -73
  8. package/api/notification.d.ts.map +1 -1
  9. package/api/organization.d.ts +7 -9
  10. package/api/organization.d.ts.map +1 -1
  11. package/api/timeline-item.d.ts +261 -265
  12. package/api/timeline-item.d.ts.map +1 -1
  13. package/api/upload.d.ts +95 -98
  14. package/api/upload.d.ts.map +1 -1
  15. package/api/user.d.ts +19 -21
  16. package/api/user.d.ts.map +1 -1
  17. package/api/visitor.d.ts +110 -112
  18. package/api/visitor.d.ts.map +1 -1
  19. package/api/website.d.ts +177 -179
  20. package/api/website.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/realtime-events.d.ts +330 -332
  23. package/realtime-events.d.ts.map +1 -1
  24. package/schemas.d.ts +80 -82
  25. package/schemas.d.ts.map +1 -1
  26. package/trpc/contact.d.ts +78 -74
  27. package/trpc/contact.d.ts.map +1 -1
  28. package/trpc/contact.js +7 -4
  29. package/trpc/contact.js.map +1 -1
  30. package/trpc/conversation.d.ts +328 -330
  31. package/trpc/conversation.d.ts.map +1 -1
  32. package/trpc/visitor.d.ts +105 -107
  33. package/trpc/visitor.d.ts.map +1 -1
  34. package/api.d.ts +0 -71
  35. package/api.d.ts.map +0 -1
  36. package/checks.d.ts +0 -189
  37. package/checks.d.ts.map +0 -1
  38. package/coerce.d.ts +0 -9
  39. package/coerce.d.ts.map +0 -1
  40. package/core.d.ts +0 -35
  41. package/core.d.ts.map +0 -1
  42. package/errors.d.ts +0 -121
  43. package/errors.d.ts.map +0 -1
  44. package/errors2.d.ts +0 -24
  45. package/errors2.d.ts.map +0 -1
  46. package/index2.d.ts +0 -4
  47. package/index3.d.ts +0 -1
  48. package/metadata.d.ts +0 -1
  49. package/openapi-generator.d.ts +0 -1
  50. package/openapi-generator2.d.ts +0 -1
  51. package/openapi-generator3.d.ts +0 -1
  52. package/openapi30.d.ts +0 -125
  53. package/openapi30.d.ts.map +0 -1
  54. package/openapi31.d.ts +0 -131
  55. package/openapi31.d.ts.map +0 -1
  56. package/parse.d.ts +0 -17
  57. package/parse.d.ts.map +0 -1
  58. package/registries.d.ts +0 -32
  59. package/registries.d.ts.map +0 -1
  60. package/schemas2.d.ts +0 -685
  61. package/schemas2.d.ts.map +0 -1
  62. package/schemas3.d.ts +0 -325
  63. package/schemas3.d.ts.map +0 -1
  64. package/specification-extension.d.ts +0 -9
  65. package/specification-extension.d.ts.map +0 -1
  66. package/standard-schema.d.ts +0 -59
  67. package/standard-schema.d.ts.map +0 -1
  68. package/util.d.ts +0 -41
  69. package/util.d.ts.map +0 -1
  70. package/versions.d.ts +0 -9
  71. package/versions.d.ts.map +0 -1
  72. package/zod-extensions.d.ts +0 -39
  73. package/zod-extensions.d.ts.map +0 -1
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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 { $strip } from "./schemas2.js";
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
- }, $strip>;
17
- type InboxView = output<typeof viewSchema>;
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
- }, $strip>, ZodObject<{
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
- }, $strip>, ZodObject<{
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
- }, $strip>, ZodObject<{
81
- type: ZodLiteral<"file">;
82
- url: ZodString;
83
- mediaType: ZodString;
84
- fileName: ZodOptional<ZodString>;
85
- size: ZodOptional<ZodNumber>;
86
- }, $strip>, ZodObject<{
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
- }, $strip>]>>;
94
- userId: ZodNullable<ZodString>;
95
- aiAgentId: ZodNullable<ZodString>;
96
- visitorId: ZodNullable<ZodString>;
97
- createdAt: ZodString;
98
- deletedAt: ZodOptional<ZodNullable<ZodString>>;
99
- }, $strip>>;
100
- }, $strip>;
101
- type Conversation = output<typeof conversationSchema>;
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
- }, $strip>;
113
- type ConversationSeen = output<typeof conversationSeenSchema>;
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":";;;;;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"}
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,83 +1,87 @@
1
- import { $strip } from "../schemas2.js";
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
- }, $strip>;
15
- type ContactListItem = output<typeof contactListItemSchema>;
16
- 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<{
17
18
  all: "all";
18
19
  withVisitors: "withVisitors";
19
20
  withoutVisitors: "withoutVisitors";
20
21
  }>;
21
- type ContactListVisitorStatus = output<typeof contactListVisitorStatusSchema>;
22
- declare const listContactsResponseSchema: ZodObject<{
23
- items: ZodArray<ZodObject<{
24
- id: ZodULID;
25
- name: ZodNullable<ZodString>;
26
- email: ZodNullable<ZodString>;
27
- image: ZodNullable<ZodString>;
28
- createdAt: ZodString;
29
- updatedAt: ZodString;
30
- visitorCount: ZodNumber;
31
- }, $strip>>;
32
- page: ZodNumber;
33
- pageSize: ZodNumber;
34
- totalCount: ZodNumber;
35
- }, $strip>;
36
- type ListContactsResponse = output<typeof listContactsResponseSchema>;
37
- declare const contactVisitorSummarySchema: ZodObject<{
38
- id: ZodULID;
39
- lastSeenAt: ZodNullable<ZodString>;
40
- createdAt: ZodString;
41
- browser: ZodNullable<ZodString>;
42
- device: ZodNullable<ZodString>;
43
- country: ZodNullable<ZodString>;
44
- city: ZodNullable<ZodString>;
45
- language: ZodNullable<ZodString>;
46
- blockedAt: ZodNullable<ZodString>;
47
- blockedByUserId: ZodNullable<ZodString>;
48
- isBlocked: ZodBoolean;
49
- }, $strip>;
50
- type ContactVisitorSummary = output<typeof contactVisitorSummarySchema>;
51
- declare const contactDetailResponseSchema: ZodObject<{
52
- contact: ZodObject<{
53
- id: ZodULID;
54
- externalId: ZodNullable<ZodString>;
55
- name: ZodNullable<ZodString>;
56
- email: ZodNullable<ZodEmail>;
57
- image: ZodNullable<ZodURL>;
58
- metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
59
- contactOrganizationId: ZodNullable<ZodULID>;
60
- websiteId: ZodULID;
61
- organizationId: ZodULID;
62
- userId: ZodNullable<ZodULID>;
63
- createdAt: ZodString;
64
- updatedAt: ZodString;
65
- }, $strip>;
66
- visitors: ZodArray<ZodObject<{
67
- id: ZodULID;
68
- lastSeenAt: ZodNullable<ZodString>;
69
- createdAt: ZodString;
70
- browser: ZodNullable<ZodString>;
71
- device: ZodNullable<ZodString>;
72
- country: ZodNullable<ZodString>;
73
- city: ZodNullable<ZodString>;
74
- language: ZodNullable<ZodString>;
75
- blockedAt: ZodNullable<ZodString>;
76
- blockedByUserId: ZodNullable<ZodString>;
77
- isBlocked: ZodBoolean;
78
- }, $strip>>;
79
- }, $strip>;
80
- type ContactDetailResponse = output<typeof contactDetailResponseSchema>;
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>;
81
85
  //#endregion
82
86
  export { ContactDetailResponse, ContactListItem, ContactListVisitorStatus, ContactVisitorSummary, ListContactsResponse, contactDetailResponseSchema, contactListItemSchema, contactListVisitorStatusSchema, contactVisitorSummarySchema, listContactsResponseSchema };
83
87
  //# sourceMappingURL=contact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,uBAAqB;;;;EAArB,KAAA,aAAA,UAQX,CAAA;;;;;KAEU,eAAA,GAAkB,cAAe;cAEhC,gCAA8B;;;;;KAM/B,wBAAA,GAA2B,cAC/B;AAnB0B,cAsBrB,0BAtBqB,EAsBK,SAtBL,CAAA;EAAA,KAAA,UAAA,UAAA,CAAA;IAUtB,EAAA,SAAA;IAEC,IAAA,aAAA,UAIX,CAAA;IAEU,KAAA,aAAA,UAAwB,CAAA;IAIvB,KAAA,aAAA,UAKX,CAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAe;cAErC,6BAA2B;;;;;;;;EATD,QAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAO3B,eAAA,aAAoB,UAAkB,CAAA;EAErC,SAAA,YAAA;;KAcD,qBAAA,GAAwB,cAAe;cAEtC,6BAA2B;;;;;;;;;;;;;;;;;;IAhBA,SAAA,WAAA;IAAA,OAAA,aAAA,UAAA,CAAA;IAc5B,MAAA,aAAqB,UAAkB,CAAA;IAEtC,OAAA,aAAA,UAGX,CAAA;;;;;;;;KAEU,qBAAA,GAAwB,cAAe"}
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"}
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().datetime().nullable(),
28
- createdAt: z.string().datetime(),
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().datetime().nullable(),
37
+ blockedAt: z.string().nullable(),
35
38
  blockedByUserId: z.string().nullable(),
36
39
  isBlocked: z.boolean()
37
40
  });
@@ -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().datetime().nullable(),\n\tcreatedAt: z.string().datetime(),\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().datetime().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,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,CAAC,UAAU;CAC5C,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,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,CAAC,UAAU;CAC3C,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"}
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"}