@cossistant/types 0.0.30 → 0.0.32
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/ai-agent.d.ts +147 -1
- package/api/ai-agent.d.ts.map +1 -1
- package/api/ai-agent.js +133 -1
- package/api/ai-agent.js.map +1 -1
- package/api/common.d.ts.map +1 -1
- package/api/conversation.d.ts +32 -9
- package/api/conversation.d.ts.map +1 -1
- package/api/conversation.js +14 -1
- package/api/conversation.js.map +1 -1
- package/api/feedback.d.ts +98 -0
- package/api/feedback.d.ts.map +1 -0
- package/api/feedback.js +68 -0
- package/api/feedback.js.map +1 -0
- package/api/index.d.ts +4 -3
- package/api/index.js +4 -3
- package/api/timeline-item.d.ts +9 -6
- package/api/timeline-item.d.ts.map +1 -1
- package/api/timeline-item.js +3 -2
- package/api/timeline-item.js.map +1 -1
- package/enums.d.ts +1 -0
- package/enums.d.ts.map +1 -1
- package/enums.js +2 -1
- package/enums.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.d.ts.map +1 -1
- package/index.js +5 -4
- package/package.json +1 -1
- package/realtime-events.d.ts +31 -6
- package/realtime-events.d.ts.map +1 -1
- package/realtime-events.js +22 -4
- package/realtime-events.js.map +1 -1
- package/schemas.d.ts +5 -2
- package/schemas.d.ts.map +1 -1
- package/schemas.js +2 -0
- package/schemas.js.map +1 -1
- package/trpc/conversation.d.ts +59 -10
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/conversation.js +32 -1
- package/trpc/conversation.js.map +1 -1
- package/trpc/visitor.d.ts +3 -1
- package/trpc/visitor.d.ts.map +1 -1
package/api/conversation.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
16
16
|
message: "message";
|
|
17
17
|
event: "event";
|
|
18
18
|
identification: "identification";
|
|
19
|
+
tool: "tool";
|
|
19
20
|
}>;
|
|
20
21
|
text: z.ZodNullable<z.ZodString>;
|
|
21
22
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -115,6 +116,7 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
115
116
|
}, z.core.$strip>, z.ZodObject<{
|
|
116
117
|
type: z.ZodLiteral<"event">;
|
|
117
118
|
eventType: z.ZodEnum<{
|
|
119
|
+
resolved: "resolved";
|
|
118
120
|
assigned: "assigned";
|
|
119
121
|
unassigned: "unassigned";
|
|
120
122
|
participant_requested: "participant_requested";
|
|
@@ -124,7 +126,6 @@ declare const createConversationRequestSchema: z.ZodObject<{
|
|
|
124
126
|
priority_changed: "priority_changed";
|
|
125
127
|
tag_added: "tag_added";
|
|
126
128
|
tag_removed: "tag_removed";
|
|
127
|
-
resolved: "resolved";
|
|
128
129
|
reopened: "reopened";
|
|
129
130
|
visitor_blocked: "visitor_blocked";
|
|
130
131
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -165,6 +166,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
165
166
|
message: "message";
|
|
166
167
|
event: "event";
|
|
167
168
|
identification: "identification";
|
|
169
|
+
tool: "tool";
|
|
168
170
|
}>;
|
|
169
171
|
text: z.ZodNullable<z.ZodString>;
|
|
170
172
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -264,6 +266,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
264
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
265
267
|
type: z.ZodLiteral<"event">;
|
|
266
268
|
eventType: z.ZodEnum<{
|
|
269
|
+
resolved: "resolved";
|
|
267
270
|
assigned: "assigned";
|
|
268
271
|
unassigned: "unassigned";
|
|
269
272
|
participant_requested: "participant_requested";
|
|
@@ -273,7 +276,6 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
273
276
|
priority_changed: "priority_changed";
|
|
274
277
|
tag_added: "tag_added";
|
|
275
278
|
tag_removed: "tag_removed";
|
|
276
|
-
resolved: "resolved";
|
|
277
279
|
reopened: "reopened";
|
|
278
280
|
visitor_blocked: "visitor_blocked";
|
|
279
281
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -306,10 +308,12 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
306
308
|
visitorId: z.ZodString;
|
|
307
309
|
websiteId: z.ZodString;
|
|
308
310
|
status: z.ZodDefault<z.ZodEnum<{
|
|
309
|
-
resolved: "resolved";
|
|
310
311
|
open: "open";
|
|
312
|
+
resolved: "resolved";
|
|
311
313
|
spam: "spam";
|
|
312
314
|
}>>;
|
|
315
|
+
visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
316
|
+
visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
317
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
314
318
|
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
319
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
@@ -324,6 +328,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
324
328
|
message: "message";
|
|
325
329
|
event: "event";
|
|
326
330
|
identification: "identification";
|
|
331
|
+
tool: "tool";
|
|
327
332
|
}>;
|
|
328
333
|
text: z.ZodNullable<z.ZodString>;
|
|
329
334
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -423,6 +428,7 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
423
428
|
}, z.core.$strip>, z.ZodObject<{
|
|
424
429
|
type: z.ZodLiteral<"event">;
|
|
425
430
|
eventType: z.ZodEnum<{
|
|
431
|
+
resolved: "resolved";
|
|
426
432
|
assigned: "assigned";
|
|
427
433
|
unassigned: "unassigned";
|
|
428
434
|
participant_requested: "participant_requested";
|
|
@@ -432,7 +438,6 @@ declare const createConversationResponseSchema: z.ZodObject<{
|
|
|
432
438
|
priority_changed: "priority_changed";
|
|
433
439
|
tag_added: "tag_added";
|
|
434
440
|
tag_removed: "tag_removed";
|
|
435
|
-
resolved: "resolved";
|
|
436
441
|
reopened: "reopened";
|
|
437
442
|
visitor_blocked: "visitor_blocked";
|
|
438
443
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -487,10 +492,12 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
487
492
|
visitorId: z.ZodString;
|
|
488
493
|
websiteId: z.ZodString;
|
|
489
494
|
status: z.ZodDefault<z.ZodEnum<{
|
|
490
|
-
resolved: "resolved";
|
|
491
495
|
open: "open";
|
|
496
|
+
resolved: "resolved";
|
|
492
497
|
spam: "spam";
|
|
493
498
|
}>>;
|
|
499
|
+
visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
500
|
+
visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
501
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
495
502
|
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
503
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
@@ -505,6 +512,7 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
505
512
|
message: "message";
|
|
506
513
|
event: "event";
|
|
507
514
|
identification: "identification";
|
|
515
|
+
tool: "tool";
|
|
508
516
|
}>;
|
|
509
517
|
text: z.ZodNullable<z.ZodString>;
|
|
510
518
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -604,6 +612,7 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
604
612
|
}, z.core.$strip>, z.ZodObject<{
|
|
605
613
|
type: z.ZodLiteral<"event">;
|
|
606
614
|
eventType: z.ZodEnum<{
|
|
615
|
+
resolved: "resolved";
|
|
607
616
|
assigned: "assigned";
|
|
608
617
|
unassigned: "unassigned";
|
|
609
618
|
participant_requested: "participant_requested";
|
|
@@ -613,7 +622,6 @@ declare const listConversationsResponseSchema: z.ZodObject<{
|
|
|
613
622
|
priority_changed: "priority_changed";
|
|
614
623
|
tag_added: "tag_added";
|
|
615
624
|
tag_removed: "tag_removed";
|
|
616
|
-
resolved: "resolved";
|
|
617
625
|
reopened: "reopened";
|
|
618
626
|
visitor_blocked: "visitor_blocked";
|
|
619
627
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -661,10 +669,12 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
661
669
|
visitorId: z.ZodString;
|
|
662
670
|
websiteId: z.ZodString;
|
|
663
671
|
status: z.ZodDefault<z.ZodEnum<{
|
|
664
|
-
resolved: "resolved";
|
|
665
672
|
open: "open";
|
|
673
|
+
resolved: "resolved";
|
|
666
674
|
spam: "spam";
|
|
667
675
|
}>>;
|
|
676
|
+
visitorRating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
677
|
+
visitorRatingAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
668
678
|
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
669
679
|
visitorLastSeenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
670
680
|
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
@@ -679,6 +689,7 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
679
689
|
message: "message";
|
|
680
690
|
event: "event";
|
|
681
691
|
identification: "identification";
|
|
692
|
+
tool: "tool";
|
|
682
693
|
}>;
|
|
683
694
|
text: z.ZodNullable<z.ZodString>;
|
|
684
695
|
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -778,6 +789,7 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
778
789
|
}, z.core.$strip>, z.ZodObject<{
|
|
779
790
|
type: z.ZodLiteral<"event">;
|
|
780
791
|
eventType: z.ZodEnum<{
|
|
792
|
+
resolved: "resolved";
|
|
781
793
|
assigned: "assigned";
|
|
782
794
|
unassigned: "unassigned";
|
|
783
795
|
participant_requested: "participant_requested";
|
|
@@ -787,7 +799,6 @@ declare const getConversationResponseSchema: z.ZodObject<{
|
|
|
787
799
|
priority_changed: "priority_changed";
|
|
788
800
|
tag_added: "tag_added";
|
|
789
801
|
tag_removed: "tag_removed";
|
|
790
|
-
resolved: "resolved";
|
|
791
802
|
reopened: "reopened";
|
|
792
803
|
visitor_blocked: "visitor_blocked";
|
|
793
804
|
visitor_unblocked: "visitor_unblocked";
|
|
@@ -837,6 +848,18 @@ declare const setConversationTypingResponseSchema: z.ZodObject<{
|
|
|
837
848
|
sentAt: z.ZodString;
|
|
838
849
|
}, z.core.$strip>;
|
|
839
850
|
type SetConversationTypingResponseBody = z.infer<typeof setConversationTypingResponseSchema>;
|
|
851
|
+
declare const submitConversationRatingRequestSchema: z.ZodObject<{
|
|
852
|
+
rating: z.ZodNumber;
|
|
853
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
854
|
+
visitorId: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
type SubmitConversationRatingRequestBody = z.infer<typeof submitConversationRatingRequestSchema>;
|
|
857
|
+
declare const submitConversationRatingResponseSchema: z.ZodObject<{
|
|
858
|
+
conversationId: z.ZodString;
|
|
859
|
+
rating: z.ZodNumber;
|
|
860
|
+
ratedAt: z.ZodString;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
type SubmitConversationRatingResponseBody = z.infer<typeof submitConversationRatingResponseSchema>;
|
|
840
863
|
declare const getConversationSeenDataResponseSchema: z.ZodObject<{
|
|
841
864
|
seenData: z.ZodArray<z.ZodObject<{
|
|
842
865
|
id: z.ZodString;
|
|
@@ -852,5 +875,5 @@ declare const getConversationSeenDataResponseSchema: z.ZodObject<{
|
|
|
852
875
|
}, z.core.$strip>;
|
|
853
876
|
type GetConversationSeenDataResponse = z.infer<typeof getConversationSeenDataResponseSchema>;
|
|
854
877
|
//#endregion
|
|
855
|
-
export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema };
|
|
878
|
+
export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SubmitConversationRatingRequestBody, SubmitConversationRatingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
856
879
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,6BAAA,GAAgC,CAAA,CAAE,aACtC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BAAA,GAAyB,CAAA,CAAE,aAC/B;cAGK,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAjCE,KAAA,EAAA,OAAA;UAAA,OAAA,EAAA,SAAA;UAehC,MAAA,EAAA,QAAyB;QAIxB,CAAA,CAAA;;;UAA4B,UAAA,eAAA,YAAA,CAAA;YAAA,UAAA,eAAA,UAAA,CAAA;cAU7B,MAAsB,EAAA,QAC1B;cAGK,OAAA,EAMV,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,uBAAA,GAA0B,CAAA,CAAE,aAChC;cAGK,mCAAiC,CAAA,CAAA;;;KAYlC,+BAAA,GAAkC,CAAA,CAAE,aACxC;cAGK,oCAAkC,CAAA,CAAA;;;;KAcnC,gCAAA,GAAmC,CAAA,CAAE,aACzC;cAGK,oCAAkC,CAAA,CAAA;;;;;KAmBnC,gCAAA,GAAmC,CAAA,CAAE,aACzC;cAGK,qCAAmC,CAAA,CAAA;;;;;;KAoBpC,iCAAA,GAAoC,CAAA,CAAE,aAC1C;cAGK,uCAAqC,CAAA,CAAA;;;;;KAkBtC,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,wCAAsC,CAAA,CAAA;;;;;KAgBvC,oCAAA,GAAuC,CAAA,CAAE,aAC7C;cAGK,uCAAqC,CAAA,CAAA;;;;;;;;;;;;;KAuCtC,+BAAA,GAAkC,CAAA,CAAE,aACxC"}
|
package/api/conversation.js
CHANGED
|
@@ -64,6 +64,19 @@ const setConversationTypingResponseSchema = z.object({
|
|
|
64
64
|
visitorPreview: z.string().nullable().openapi({ description: "Preview text that was forwarded with the typing event, or null when none was sent." }),
|
|
65
65
|
sentAt: z.string().openapi({ description: "Timestamp when the typing event was recorded" })
|
|
66
66
|
}).openapi({ description: "Response confirming the visitor typing state was recorded" });
|
|
67
|
+
const submitConversationRatingRequestSchema = z.object({
|
|
68
|
+
rating: z.number().int().min(1).max(5).openapi({
|
|
69
|
+
description: "Visitor rating for the conversation (1-5)",
|
|
70
|
+
example: 5
|
|
71
|
+
}),
|
|
72
|
+
comment: z.string().optional().openapi({ description: "Optional written feedback about the conversation" }),
|
|
73
|
+
visitorId: z.string().optional().openapi({ description: "Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header." })
|
|
74
|
+
}).openapi({ description: "Body for submitting a visitor rating on a conversation." });
|
|
75
|
+
const submitConversationRatingResponseSchema = z.object({
|
|
76
|
+
conversationId: z.string().openapi({ description: "The ID of the conversation that was rated" }),
|
|
77
|
+
rating: z.number().int().min(1).max(5).openapi({ description: "The rating that was saved" }),
|
|
78
|
+
ratedAt: z.string().openapi({ description: "Timestamp when the rating was recorded" })
|
|
79
|
+
}).openapi({ description: "Response confirming the conversation rating was recorded" });
|
|
67
80
|
const getConversationSeenDataResponseSchema = z.object({ seenData: z.array(z.object({
|
|
68
81
|
id: z.string().openapi({ description: "The seen record's unique identifier" }),
|
|
69
82
|
conversationId: z.string().openapi({ description: "The conversation ID" }),
|
|
@@ -77,5 +90,5 @@ const getConversationSeenDataResponseSchema = z.object({ seenData: z.array(z.obj
|
|
|
77
90
|
})) }).openapi({ description: "Response containing seen data for a conversation" });
|
|
78
91
|
|
|
79
92
|
//#endregion
|
|
80
|
-
export { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema };
|
|
93
|
+
export { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema };
|
|
81
94
|
//# sourceMappingURL=conversation.js.map
|
package/api/conversation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\nimport { conversationSchema } from \"../schemas\";\nimport { timelineItemSchema } from \"./timeline-item\";\n\nexport const createConversationRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID, if not provided you must provide a visitorId in the headers.\",\n\t\t}),\n\t\tconversationId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Default conversation ID, if not provided the ID will be automatically generated.\",\n\t\t}),\n\t\tdefaultTimelineItems: z.array(timelineItemSchema).openapi({\n\t\t\tdescription: \"Default timeline items to initiate the conversation with\",\n\t\t}),\n\t\tchannel: z.string().default(\"widget\").openapi({\n\t\t\tdescription: \"Which channel the conversation is from\",\n\t\t\tdefault: \"widget\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Body for creating a conversation.\",\n\t});\n\nexport type CreateConversationRequestBody = z.infer<\n\ttypeof createConversationRequestSchema\n>;\n\nexport const createConversationResponseSchema = z\n\t.object({\n\t\tinitialTimelineItems: z.array(timelineItemSchema),\n\t\tconversation: conversationSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Body including created conversation and default messages\",\n\t});\n\nexport type CreateConversationResponseBody = z.infer<\n\ttypeof createConversationResponseSchema\n>;\n\nexport const listConversationsRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription: \"Visitor ID to fetch conversations for.\",\n\t\t}),\n\t\tpage: z.coerce.number().min(1).default(1).openapi({\n\t\t\tdescription: \"Page number for pagination\",\n\t\t\tdefault: 1,\n\t\t}),\n\t\tlimit: z.coerce.number().min(1).max(100).default(6).openapi({\n\t\t\tdescription: \"Number of conversations per page\",\n\t\t\tdefault: 6,\n\t\t}),\n\t\tstatus: z.enum([\"open\", \"closed\"]).optional().openapi({\n\t\t\tdescription: \"Filter by conversation status\",\n\t\t}),\n\t\torderBy: z.enum([\"createdAt\", \"updatedAt\"]).default(\"updatedAt\").openapi({\n\t\t\tdescription: \"Field to order conversations by\",\n\t\t\tdefault: \"updatedAt\",\n\t\t}),\n\t\torder: z.enum([\"asc\", \"desc\"]).default(\"desc\").openapi({\n\t\t\tdescription: \"Order direction\",\n\t\t\tdefault: \"desc\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Query parameters for listing conversations\",\n\t});\n\nexport type ListConversationsRequest = z.infer<\n\ttypeof listConversationsRequestSchema\n>;\n\nexport const listConversationsResponseSchema = z\n\t.object({\n\t\tconversations: z.array(conversationSchema),\n\t\tpagination: z.object({\n\t\t\tpage: z.number(),\n\t\t\tlimit: z.number(),\n\t\t\ttotal: z.number(),\n\t\t\ttotalPages: z.number(),\n\t\t\thasMore: z.boolean(),\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Paginated list of conversations\",\n\t});\n\nexport type ListConversationsResponse = z.infer<\n\ttypeof listConversationsResponseSchema\n>;\n\nexport const getConversationRequestSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation to retrieve\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Parameters for retrieving a single conversation\",\n\t});\n\nexport type GetConversationRequest = z.infer<\n\ttypeof getConversationRequestSchema\n>;\n\nexport const getConversationResponseSchema = z\n\t.object({\n\t\tconversation: conversationSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing a single conversation\",\n\t});\n\nexport type GetConversationResponse = z.infer<\n\ttypeof getConversationResponseSchema\n>;\n\nexport const markConversationSeenRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Body for marking a conversation as seen. Either visitorId must be provided via body or headers.\",\n\t});\n\nexport type MarkConversationSeenRequestBody = z.infer<\n\ttypeof markConversationSeenRequestSchema\n>;\n\nexport const markConversationSeenResponseSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation that was marked as seen\",\n\t\t}),\n\t\tlastSeenAt: z.string().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Timestamp indicating when the visitor last saw the conversation\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response confirming the conversation has been marked as seen\",\n\t});\n\nexport type MarkConversationSeenResponseBody = z.infer<\n\ttypeof markConversationSeenResponseSchema\n>;\n\nexport const setConversationTypingRequestSchema = z\n\t.object({\n\t\tisTyping: z.boolean().openapi({\n\t\t\tdescription: \"Whether the visitor is currently typing\",\n\t\t}),\n\t\tvisitorPreview: z.string().max(2000).optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Optional preview of the visitor's message while typing. Only processed when the visitor is typing.\",\n\t\t}),\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Body for reporting a visitor typing state. Either visitorId must be provided via body or headers.\",\n\t});\n\nexport type SetConversationTypingRequestBody = z.infer<\n\ttypeof setConversationTypingRequestSchema\n>;\n\nexport const setConversationTypingResponseSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation receiving the typing update\",\n\t\t}),\n\t\tisTyping: z.boolean().openapi({\n\t\t\tdescription: \"Echo of the reported typing state\",\n\t\t}),\n\t\tvisitorPreview: z.string().nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Preview text that was forwarded with the typing event, or null when none was sent.\",\n\t\t}),\n\t\tsentAt: z.string().openapi({\n\t\t\tdescription: \"Timestamp when the typing event was recorded\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response confirming the visitor typing state was recorded\",\n\t});\n\nexport type SetConversationTypingResponseBody = z.infer<\n\ttypeof setConversationTypingResponseSchema\n>;\n\nexport const getConversationSeenDataResponseSchema = z\n\t.object({\n\t\tseenData: z.array(\n\t\t\tz.object({\n\t\t\t\tid: z.string().openapi({\n\t\t\t\t\tdescription: \"The seen record's unique identifier\",\n\t\t\t\t}),\n\t\t\t\tconversationId: z.string().openapi({\n\t\t\t\t\tdescription: \"The conversation ID\",\n\t\t\t\t}),\n\t\t\t\tuserId: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"The user ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\tvisitorId: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"The visitor ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\taiAgentId: z.string().nullable().openapi({\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t\"The AI agent ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\tlastSeenAt: z.string().openapi({\n\t\t\t\t\tdescription: \"Timestamp when the conversation was last seen\",\n\t\t\t\t}),\n\t\t\t\tcreatedAt: z.string().openapi({\n\t\t\t\t\tdescription: \"When the seen record was created\",\n\t\t\t\t}),\n\t\t\t\tupdatedAt: z.string().openapi({\n\t\t\t\t\tdescription: \"When the seen record was last updated\",\n\t\t\t\t}),\n\t\t\t\tdeletedAt: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"When the seen record was deleted, if applicable\",\n\t\t\t\t}),\n\t\t\t})\n\t\t),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing seen data for a conversation\",\n\t});\n\nexport type GetConversationSeenDataResponse = z.infer<\n\ttypeof getConversationSeenDataResponseSchema\n>;\n"],"mappings":";;;;;AAIA,MAAa,kCAAkC,EAC7C,OAAO;CACP,WAAW,E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U,EAAE,SAAS,CAAC,QAAQ,EAC7B,aAAa,qCACb,CAAC;CACF,gBAAgB,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC7C,aACC,sFACD,CAAC;CACF,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC1B,aAAa,gDACb,CAAC;CACF,CAAC,CACD,QAAQ,EACR,aAAa,6DACb,CAAC;AAMH,MAAa,wCAAwC,EACnD,OAAO,EACP,UAAU,EAAE,MACX,EAAE,OAAO;CACR,IAAI,EAAE,QAAQ,CAAC,QAAQ,EACtB,aAAa,uCACb,CAAC;CACF,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,EAClC,aAAa,uBACb,CAAC;CACF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACrC,aAAa,uDACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,0DACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aACC,2DACD,CAAC;CACF,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAC9B,aAAa,iDACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAC7B,aAAa,oCACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAC7B,aAAa,yCACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,mDACb,CAAC;CACF,CAAC,CACF,EACD,CAAC,CACD,QAAQ,EACR,aAAa,oDACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"conversation.js","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\nimport { conversationSchema } from \"../schemas\";\nimport { timelineItemSchema } from \"./timeline-item\";\n\nexport const createConversationRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID, if not provided you must provide a visitorId in the headers.\",\n\t\t}),\n\t\tconversationId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Default conversation ID, if not provided the ID will be automatically generated.\",\n\t\t}),\n\t\tdefaultTimelineItems: z.array(timelineItemSchema).openapi({\n\t\t\tdescription: \"Default timeline items to initiate the conversation with\",\n\t\t}),\n\t\tchannel: z.string().default(\"widget\").openapi({\n\t\t\tdescription: \"Which channel the conversation is from\",\n\t\t\tdefault: \"widget\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Body for creating a conversation.\",\n\t});\n\nexport type CreateConversationRequestBody = z.infer<\n\ttypeof createConversationRequestSchema\n>;\n\nexport const createConversationResponseSchema = z\n\t.object({\n\t\tinitialTimelineItems: z.array(timelineItemSchema),\n\t\tconversation: conversationSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Body including created conversation and default messages\",\n\t});\n\nexport type CreateConversationResponseBody = z.infer<\n\ttypeof createConversationResponseSchema\n>;\n\nexport const listConversationsRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription: \"Visitor ID to fetch conversations for.\",\n\t\t}),\n\t\tpage: z.coerce.number().min(1).default(1).openapi({\n\t\t\tdescription: \"Page number for pagination\",\n\t\t\tdefault: 1,\n\t\t}),\n\t\tlimit: z.coerce.number().min(1).max(100).default(6).openapi({\n\t\t\tdescription: \"Number of conversations per page\",\n\t\t\tdefault: 6,\n\t\t}),\n\t\tstatus: z.enum([\"open\", \"closed\"]).optional().openapi({\n\t\t\tdescription: \"Filter by conversation status\",\n\t\t}),\n\t\torderBy: z.enum([\"createdAt\", \"updatedAt\"]).default(\"updatedAt\").openapi({\n\t\t\tdescription: \"Field to order conversations by\",\n\t\t\tdefault: \"updatedAt\",\n\t\t}),\n\t\torder: z.enum([\"asc\", \"desc\"]).default(\"desc\").openapi({\n\t\t\tdescription: \"Order direction\",\n\t\t\tdefault: \"desc\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Query parameters for listing conversations\",\n\t});\n\nexport type ListConversationsRequest = z.infer<\n\ttypeof listConversationsRequestSchema\n>;\n\nexport const listConversationsResponseSchema = z\n\t.object({\n\t\tconversations: z.array(conversationSchema),\n\t\tpagination: z.object({\n\t\t\tpage: z.number(),\n\t\t\tlimit: z.number(),\n\t\t\ttotal: z.number(),\n\t\t\ttotalPages: z.number(),\n\t\t\thasMore: z.boolean(),\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Paginated list of conversations\",\n\t});\n\nexport type ListConversationsResponse = z.infer<\n\ttypeof listConversationsResponseSchema\n>;\n\nexport const getConversationRequestSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation to retrieve\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Parameters for retrieving a single conversation\",\n\t});\n\nexport type GetConversationRequest = z.infer<\n\ttypeof getConversationRequestSchema\n>;\n\nexport const getConversationResponseSchema = z\n\t.object({\n\t\tconversation: conversationSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing a single conversation\",\n\t});\n\nexport type GetConversationResponse = z.infer<\n\ttypeof getConversationResponseSchema\n>;\n\nexport const markConversationSeenRequestSchema = z\n\t.object({\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Body for marking a conversation as seen. Either visitorId must be provided via body or headers.\",\n\t});\n\nexport type MarkConversationSeenRequestBody = z.infer<\n\ttypeof markConversationSeenRequestSchema\n>;\n\nexport const markConversationSeenResponseSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation that was marked as seen\",\n\t\t}),\n\t\tlastSeenAt: z.string().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Timestamp indicating when the visitor last saw the conversation\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response confirming the conversation has been marked as seen\",\n\t});\n\nexport type MarkConversationSeenResponseBody = z.infer<\n\ttypeof markConversationSeenResponseSchema\n>;\n\nexport const setConversationTypingRequestSchema = z\n\t.object({\n\t\tisTyping: z.boolean().openapi({\n\t\t\tdescription: \"Whether the visitor is currently typing\",\n\t\t}),\n\t\tvisitorPreview: z.string().max(2000).optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Optional preview of the visitor's message while typing. Only processed when the visitor is typing.\",\n\t\t}),\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription:\n\t\t\t\"Body for reporting a visitor typing state. Either visitorId must be provided via body or headers.\",\n\t});\n\nexport type SetConversationTypingRequestBody = z.infer<\n\ttypeof setConversationTypingRequestSchema\n>;\n\nexport const setConversationTypingResponseSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation receiving the typing update\",\n\t\t}),\n\t\tisTyping: z.boolean().openapi({\n\t\t\tdescription: \"Echo of the reported typing state\",\n\t\t}),\n\t\tvisitorPreview: z.string().nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Preview text that was forwarded with the typing event, or null when none was sent.\",\n\t\t}),\n\t\tsentAt: z.string().openapi({\n\t\t\tdescription: \"Timestamp when the typing event was recorded\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response confirming the visitor typing state was recorded\",\n\t});\n\nexport type SetConversationTypingResponseBody = z.infer<\n\ttypeof setConversationTypingResponseSchema\n>;\n\nexport const submitConversationRatingRequestSchema = z\n\t.object({\n\t\trating: z.number().int().min(1).max(5).openapi({\n\t\t\tdescription: \"Visitor rating for the conversation (1-5)\",\n\t\t\texample: 5,\n\t\t}),\n\t\tcomment: z.string().optional().openapi({\n\t\t\tdescription: \"Optional written feedback about the conversation\",\n\t\t}),\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Body for submitting a visitor rating on a conversation.\",\n\t});\n\nexport type SubmitConversationRatingRequestBody = z.infer<\n\ttypeof submitConversationRatingRequestSchema\n>;\n\nexport const submitConversationRatingResponseSchema = z\n\t.object({\n\t\tconversationId: z.string().openapi({\n\t\t\tdescription: \"The ID of the conversation that was rated\",\n\t\t}),\n\t\trating: z.number().int().min(1).max(5).openapi({\n\t\t\tdescription: \"The rating that was saved\",\n\t\t}),\n\t\tratedAt: z.string().openapi({\n\t\t\tdescription: \"Timestamp when the rating was recorded\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Response confirming the conversation rating was recorded\",\n\t});\n\nexport type SubmitConversationRatingResponseBody = z.infer<\n\ttypeof submitConversationRatingResponseSchema\n>;\n\nexport const getConversationSeenDataResponseSchema = z\n\t.object({\n\t\tseenData: z.array(\n\t\t\tz.object({\n\t\t\t\tid: z.string().openapi({\n\t\t\t\t\tdescription: \"The seen record's unique identifier\",\n\t\t\t\t}),\n\t\t\t\tconversationId: z.string().openapi({\n\t\t\t\t\tdescription: \"The conversation ID\",\n\t\t\t\t}),\n\t\t\t\tuserId: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"The user ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\tvisitorId: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"The visitor ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\taiAgentId: z.string().nullable().openapi({\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t\"The AI agent ID who saw the conversation, if applicable\",\n\t\t\t\t}),\n\t\t\t\tlastSeenAt: z.string().openapi({\n\t\t\t\t\tdescription: \"Timestamp when the conversation was last seen\",\n\t\t\t\t}),\n\t\t\t\tcreatedAt: z.string().openapi({\n\t\t\t\t\tdescription: \"When the seen record was created\",\n\t\t\t\t}),\n\t\t\t\tupdatedAt: z.string().openapi({\n\t\t\t\t\tdescription: \"When the seen record was last updated\",\n\t\t\t\t}),\n\t\t\t\tdeletedAt: z.string().nullable().openapi({\n\t\t\t\t\tdescription: \"When the seen record was deleted, if applicable\",\n\t\t\t\t}),\n\t\t\t})\n\t\t),\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing seen data for a conversation\",\n\t});\n\nexport type GetConversationSeenDataResponse = z.infer<\n\ttypeof getConversationSeenDataResponseSchema\n>;\n"],"mappings":";;;;;AAIA,MAAa,kCAAkC,EAC7C,OAAO;CACP,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aACC,4EACD,CAAC;CACF,gBAAgB,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAC7C,aACC,oFACD,CAAC;CACF,sBAAsB,EAAE,MAAM,mBAAmB,CAAC,QAAQ,EACzD,aAAa,4DACb,CAAC;CACF,SAAS,EAAE,QAAQ,CAAC,QAAQ,SAAS,CAAC,QAAQ;EAC7C,aAAa;EACb,SAAS;EACT,CAAC;CACF,CAAC,CACD,QAAQ,EACR,aAAa,qCACb,CAAC;AAMH,MAAa,mCAAmC,EAC9C,OAAO;CACP,sBAAsB,EAAE,MAAM,mBAAmB;CACjD,cAAc;CACd,CAAC,CACD,QAAQ,EACR,aAAa,4DACb,CAAC;AAMH,MAAa,iCAAiC,EAC5C,OAAO;CACP,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,0CACb,CAAC;CACF,MAAM,EAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ;EACjD,aAAa;EACb,SAAS;EACT,CAAC;CACF,OAAO,EAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ;EAC3D,aAAa;EACb,SAAS;EACT,C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C,QAAQ,EAC3B,aAAa,0CACb,CAAC;CACF,CAAC,CACD,QAAQ,EACR,aAAa,4DACb,CAAC;AAMH,MAAa,wCAAwC,EACnD,OAAO,EACP,UAAU,EAAE,MACX,EAAE,OAAO;CACR,IAAI,EAAE,QAAQ,CAAC,QAAQ,EACtB,aAAa,uCACb,CAAC;CACF,gBAAgB,EAAE,QAAQ,CAAC,QAAQ,EAClC,aAAa,uBACb,CAAC;CACF,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACrC,aAAa,uDACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,0DACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aACC,2DACD,CAAC;CACF,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAC9B,aAAa,iDACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAC7B,aAAa,oCACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAC7B,aAAa,yCACb,CAAC;CACF,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,EACxC,aAAa,mDACb,CAAC;CACF,CAAC,CACF,EACD,CAAC,CACD,QAAQ,EACR,aAAa,oDACb,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
|
|
3
|
+
//#region src/api/feedback.d.ts
|
|
4
|
+
declare const feedbackSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
organizationId: z.ZodString;
|
|
7
|
+
websiteId: z.ZodString;
|
|
8
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
9
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
10
|
+
contactId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
rating: z.ZodNumber;
|
|
12
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
13
|
+
trigger: z.ZodNullable<z.ZodString>;
|
|
14
|
+
source: z.ZodString;
|
|
15
|
+
createdAt: z.ZodString;
|
|
16
|
+
updatedAt: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type Feedback = z.infer<typeof feedbackSchema>;
|
|
19
|
+
declare const submitFeedbackRequestSchema: z.ZodObject<{
|
|
20
|
+
rating: z.ZodNumber;
|
|
21
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
22
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
23
|
+
source: z.ZodDefault<z.ZodString>;
|
|
24
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
visitorId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
contactId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type SubmitFeedbackRequest = z.infer<typeof submitFeedbackRequestSchema>;
|
|
29
|
+
declare const submitFeedbackResponseSchema: z.ZodObject<{
|
|
30
|
+
feedback: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
organizationId: z.ZodString;
|
|
33
|
+
websiteId: z.ZodString;
|
|
34
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
contactId: z.ZodNullable<z.ZodString>;
|
|
37
|
+
rating: z.ZodNumber;
|
|
38
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
39
|
+
trigger: z.ZodNullable<z.ZodString>;
|
|
40
|
+
source: z.ZodString;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
updatedAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
type SubmitFeedbackResponse = z.infer<typeof submitFeedbackResponseSchema>;
|
|
46
|
+
declare const listFeedbackRequestSchema: z.ZodObject<{
|
|
47
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
48
|
+
source: z.ZodOptional<z.ZodString>;
|
|
49
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
visitorId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
52
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
type ListFeedbackRequest = z.infer<typeof listFeedbackRequestSchema>;
|
|
55
|
+
declare const listFeedbackResponseSchema: z.ZodObject<{
|
|
56
|
+
feedback: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
organizationId: z.ZodString;
|
|
59
|
+
websiteId: z.ZodString;
|
|
60
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
contactId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
rating: z.ZodNumber;
|
|
64
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
65
|
+
trigger: z.ZodNullable<z.ZodString>;
|
|
66
|
+
source: z.ZodString;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
updatedAt: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
pagination: z.ZodObject<{
|
|
71
|
+
page: z.ZodNumber;
|
|
72
|
+
limit: z.ZodNumber;
|
|
73
|
+
total: z.ZodNumber;
|
|
74
|
+
totalPages: z.ZodNumber;
|
|
75
|
+
hasMore: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
type ListFeedbackResponse = z.infer<typeof listFeedbackResponseSchema>;
|
|
79
|
+
declare const getFeedbackResponseSchema: z.ZodObject<{
|
|
80
|
+
feedback: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
organizationId: z.ZodString;
|
|
83
|
+
websiteId: z.ZodString;
|
|
84
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
86
|
+
contactId: z.ZodNullable<z.ZodString>;
|
|
87
|
+
rating: z.ZodNumber;
|
|
88
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
89
|
+
trigger: z.ZodNullable<z.ZodString>;
|
|
90
|
+
source: z.ZodString;
|
|
91
|
+
createdAt: z.ZodString;
|
|
92
|
+
updatedAt: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
type GetFeedbackResponse = z.infer<typeof getFeedbackResponseSchema>;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { Feedback, GetFeedbackResponse, ListFeedbackRequest, ListFeedbackResponse, SubmitFeedbackRequest, SubmitFeedbackResponse, feedbackSchema, getFeedbackResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema };
|
|
98
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","names":[],"sources":["../../src/api/feedback.ts"],"sourcesContent":[],"mappings":";;;cAGa,gBAAc,CAAA,CAAA;;EAAd,cAAA,aA4CV;;;;;;;;;;;;KAES,QAAA,GAAW,CAAA,CAAE,aAAa;cAGzB,6BAA2B,CAAA,CAAA;;;;;;EAjDb,SAAA,eAAA,YAAA,CAAA;EAAA,SAAA,eAAA,YAAA,CAAA;AA8C3B,CAAA,eAAoB,CAAA;AAGP,KA+BD,qBAAA,GAAwB,CAAA,CAAE,KAFnC,CAAA,OAEgD,2BAFhD,CAAA;cAIU,8BAA4B,CAAA,CAAA;;;;;;;;;;;;;;EAjCD,CAAA,eAAA,CAAA;CAAA,eAAA,CAAA;AA+B5B,KAUA,sBAAA,GAAyB,CAAA,CAAE,KAVY,CAAA,OAW3C,4BAXmC,CAAA;AAE9B,cAaA,yBAPV,EAOmC,CAAA,CAAA,SAPnC,CAAA;;;;;;;;KAkCS,mBAAA,GAAsB,CAAA,CAAE,aAAa;cAEpC,4BAA0B,CAAA,CAAA;;;;;;;;;;;;IA1CE,SAAA,aAAA;IAAA,SAAA,aAAA;EAQ7B,CAAA,eAAA,CAAA,CAAA;EAKC,UAAA,aAAA,CAAA;;;;;;;;KA4CD,oBAAA,GAAuB,CAAA,CAAE,aAAa;cAGrC,2BAAyB,CAAA,CAAA;;;;;IA/CA,cAAA,eAAA,YAAA,CAAA;IAAA,SAAA,eAAA,YAAA,CAAA;IA2B1B,SAAA,eAAmB,YAAkB,CAAA;IAEpC,MAAA,aAAA;;;;;;;;KA0BD,mBAAA,GAAsB,CAAA,CAAE,aAAa"}
|
package/api/feedback.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
|
|
3
|
+
//#region src/api/feedback.ts
|
|
4
|
+
const feedbackSchema = z.object({
|
|
5
|
+
id: z.string().openapi({ description: "Unique identifier for the feedback" }),
|
|
6
|
+
organizationId: z.string().openapi({ description: "Organization ID" }),
|
|
7
|
+
websiteId: z.string().openapi({ description: "Website ID the feedback belongs to" }),
|
|
8
|
+
conversationId: z.string().nullable().openapi({ description: "Conversation ID if feedback is tied to a conversation" }),
|
|
9
|
+
visitorId: z.string().nullable().openapi({ description: "Visitor ID who submitted the feedback" }),
|
|
10
|
+
contactId: z.string().nullable().openapi({ description: "Contact ID if visitor has one" }),
|
|
11
|
+
rating: z.number().int().min(1).max(5).openapi({
|
|
12
|
+
description: "Rating from 1 to 5",
|
|
13
|
+
example: 5
|
|
14
|
+
}),
|
|
15
|
+
comment: z.string().nullable().openapi({ description: "Optional written feedback" }),
|
|
16
|
+
trigger: z.string().nullable().openapi({ description: "What triggered this feedback (e.g., 'churn', 'conversation_resolved', 'nps_survey')" }),
|
|
17
|
+
source: z.string().openapi({
|
|
18
|
+
description: "Source of the feedback (e.g., 'widget', 'api', 'email')",
|
|
19
|
+
default: "widget"
|
|
20
|
+
}),
|
|
21
|
+
createdAt: z.string().openapi({ description: "When the feedback was submitted" }),
|
|
22
|
+
updatedAt: z.string().openapi({ description: "When the feedback was last updated" })
|
|
23
|
+
}).openapi({ description: "Feedback record" });
|
|
24
|
+
const submitFeedbackRequestSchema = z.object({
|
|
25
|
+
rating: z.number().int().min(1).max(5).openapi({
|
|
26
|
+
description: "Rating from 1 to 5",
|
|
27
|
+
example: 5
|
|
28
|
+
}),
|
|
29
|
+
comment: z.string().optional().openapi({ description: "Optional written feedback" }),
|
|
30
|
+
trigger: z.string().optional().openapi({ description: "What triggered this feedback (e.g., 'churn', 'conversation_resolved', 'nps_survey')" }),
|
|
31
|
+
source: z.string().default("widget").openapi({
|
|
32
|
+
description: "Source of the feedback (e.g., 'widget', 'api', 'email')",
|
|
33
|
+
default: "widget"
|
|
34
|
+
}),
|
|
35
|
+
conversationId: z.string().optional().openapi({ description: "Conversation ID if feedback is tied to a conversation" }),
|
|
36
|
+
visitorId: z.string().optional().openapi({ description: "Visitor ID who submitted the feedback" }),
|
|
37
|
+
contactId: z.string().optional().openapi({ description: "Contact ID if visitor has one" })
|
|
38
|
+
}).openapi({ description: "Request body for submitting feedback" });
|
|
39
|
+
const submitFeedbackResponseSchema = z.object({ feedback: feedbackSchema }).openapi({ description: "Response containing the created feedback" });
|
|
40
|
+
const listFeedbackRequestSchema = z.object({
|
|
41
|
+
trigger: z.string().optional().openapi({ description: "Filter by trigger type" }),
|
|
42
|
+
source: z.string().optional().openapi({ description: "Filter by source" }),
|
|
43
|
+
conversationId: z.string().optional().openapi({ description: "Filter by conversation ID" }),
|
|
44
|
+
visitorId: z.string().optional().openapi({ description: "Filter by visitor ID" }),
|
|
45
|
+
page: z.coerce.number().min(1).default(1).openapi({
|
|
46
|
+
description: "Page number for pagination",
|
|
47
|
+
default: 1
|
|
48
|
+
}),
|
|
49
|
+
limit: z.coerce.number().min(1).max(100).default(20).openapi({
|
|
50
|
+
description: "Number of items per page",
|
|
51
|
+
default: 20
|
|
52
|
+
})
|
|
53
|
+
}).openapi({ description: "Query parameters for listing feedback" });
|
|
54
|
+
const listFeedbackResponseSchema = z.object({
|
|
55
|
+
feedback: z.array(feedbackSchema),
|
|
56
|
+
pagination: z.object({
|
|
57
|
+
page: z.number(),
|
|
58
|
+
limit: z.number(),
|
|
59
|
+
total: z.number(),
|
|
60
|
+
totalPages: z.number(),
|
|
61
|
+
hasMore: z.boolean()
|
|
62
|
+
})
|
|
63
|
+
}).openapi({ description: "Paginated list of feedback" });
|
|
64
|
+
const getFeedbackResponseSchema = z.object({ feedback: feedbackSchema }).openapi({ description: "Response containing a single feedback record" });
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { feedbackSchema, getFeedbackResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema };
|
|
68
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.js","names":[],"sources":["../../src/api/feedback.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\n// Feedback schema for responses\nexport const feedbackSchema = z\n\t.object({\n\t\tid: z.string().openapi({\n\t\t\tdescription: \"Unique identifier for the feedback\",\n\t\t}),\n\t\torganizationId: z.string().openapi({\n\t\t\tdescription: \"Organization ID\",\n\t\t}),\n\t\twebsiteId: z.string().openapi({\n\t\t\tdescription: \"Website ID the feedback belongs to\",\n\t\t}),\n\t\tconversationId: z.string().nullable().openapi({\n\t\t\tdescription: \"Conversation ID if feedback is tied to a conversation\",\n\t\t}),\n\t\tvisitorId: z.string().nullable().openapi({\n\t\t\tdescription: \"Visitor ID who submitted the feedback\",\n\t\t}),\n\t\tcontactId: z.string().nullable().openapi({\n\t\t\tdescription: \"Contact ID if visitor has one\",\n\t\t}),\n\t\trating: z.number().int().min(1).max(5).openapi({\n\t\t\tdescription: \"Rating from 1 to 5\",\n\t\t\texample: 5,\n\t\t}),\n\t\tcomment: z.string().nullable().openapi({\n\t\t\tdescription: \"Optional written feedback\",\n\t\t}),\n\t\ttrigger: z.string().nullable().openapi({\n\t\t\tdescription:\n\t\t\t\t\"What triggered this feedback (e.g., 'churn', 'conversation_resolved', 'nps_survey')\",\n\t\t}),\n\t\tsource: z.string().openapi({\n\t\t\tdescription: \"Source of the feedback (e.g., 'widget', 'api', 'email')\",\n\t\t\tdefault: \"widget\",\n\t\t}),\n\t\tcreatedAt: z.string().openapi({\n\t\t\tdescription: \"When the feedback was submitted\",\n\t\t}),\n\t\tupdatedAt: z.string().openapi({\n\t\t\tdescription: \"When the feedback was last updated\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Feedback record\",\n\t});\n\nexport type Feedback = z.infer<typeof feedbackSchema>;\n\n// Submit feedback request\nexport const submitFeedbackRequestSchema = z\n\t.object({\n\t\trating: z.number().int().min(1).max(5).openapi({\n\t\t\tdescription: \"Rating from 1 to 5\",\n\t\t\texample: 5,\n\t\t}),\n\t\tcomment: z.string().optional().openapi({\n\t\t\tdescription: \"Optional written feedback\",\n\t\t}),\n\t\ttrigger: z.string().optional().openapi({\n\t\t\tdescription:\n\t\t\t\t\"What triggered this feedback (e.g., 'churn', 'conversation_resolved', 'nps_survey')\",\n\t\t}),\n\t\tsource: z.string().default(\"widget\").openapi({\n\t\t\tdescription: \"Source of the feedback (e.g., 'widget', 'api', 'email')\",\n\t\t\tdefault: \"widget\",\n\t\t}),\n\t\tconversationId: z.string().optional().openapi({\n\t\t\tdescription: \"Conversation ID if feedback is tied to a conversation\",\n\t\t}),\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription: \"Visitor ID who submitted the feedback\",\n\t\t}),\n\t\tcontactId: z.string().optional().openapi({\n\t\t\tdescription: \"Contact ID if visitor has one\",\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Request body for submitting feedback\",\n\t});\n\nexport type SubmitFeedbackRequest = z.infer<typeof submitFeedbackRequestSchema>;\n\nexport const submitFeedbackResponseSchema = z\n\t.object({\n\t\tfeedback: feedbackSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing the created feedback\",\n\t});\n\nexport type SubmitFeedbackResponse = z.infer<\n\ttypeof submitFeedbackResponseSchema\n>;\n\n// List feedback request\nexport const listFeedbackRequestSchema = z\n\t.object({\n\t\ttrigger: z.string().optional().openapi({\n\t\t\tdescription: \"Filter by trigger type\",\n\t\t}),\n\t\tsource: z.string().optional().openapi({\n\t\t\tdescription: \"Filter by source\",\n\t\t}),\n\t\tconversationId: z.string().optional().openapi({\n\t\t\tdescription: \"Filter by conversation ID\",\n\t\t}),\n\t\tvisitorId: z.string().optional().openapi({\n\t\t\tdescription: \"Filter by visitor ID\",\n\t\t}),\n\t\tpage: z.coerce.number().min(1).default(1).openapi({\n\t\t\tdescription: \"Page number for pagination\",\n\t\t\tdefault: 1,\n\t\t}),\n\t\tlimit: z.coerce.number().min(1).max(100).default(20).openapi({\n\t\t\tdescription: \"Number of items per page\",\n\t\t\tdefault: 20,\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Query parameters for listing feedback\",\n\t});\n\nexport type ListFeedbackRequest = z.infer<typeof listFeedbackRequestSchema>;\n\nexport const listFeedbackResponseSchema = z\n\t.object({\n\t\tfeedback: z.array(feedbackSchema),\n\t\tpagination: z.object({\n\t\t\tpage: z.number(),\n\t\t\tlimit: z.number(),\n\t\t\ttotal: z.number(),\n\t\t\ttotalPages: z.number(),\n\t\t\thasMore: z.boolean(),\n\t\t}),\n\t})\n\t.openapi({\n\t\tdescription: \"Paginated list of feedback\",\n\t});\n\nexport type ListFeedbackResponse = z.infer<typeof listFeedbackResponseSchema>;\n\n// Get feedback by ID\nexport const getFeedbackResponseSchema = z\n\t.object({\n\t\tfeedback: feedbackSchema,\n\t})\n\t.openapi({\n\t\tdescription: \"Response containing a single feedback record\",\n\t});\n\nexport type GetFeedbackResponse = z.infer<typeof getFeedbackResponseSchema>;\n"],"mappings":";;;AAGA,MAAa,iBAAiB,EAC5B,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Q;EACjB,YAAY,EAAE,QAAQ;EACtB,SAAS,EAAE,SAAS;EACpB,CAAC;CACF,CAAC,CACD,QAAQ,EACR,aAAa,8BACb,CAAC;AAKH,MAAa,4BAA4B,EACvC,OAAO,EACP,UAAU,gBACV,CAAC,CACD,QAAQ,EACR,aAAa,gDACb,CAAC"}
|
package/api/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentResponse, CreateAiAgentRequest, DeleteAiAgentRequest, GenerateBasePromptRequest, GenerateBasePromptResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, ToggleAiAgentActiveRequest, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, createAiAgentRequestSchema, deleteAiAgentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, toggleAiAgentActiveRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema } from "./ai-agent.js";
|
|
1
|
+
import { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentCorePromptDocumentName, AiAgentPromptDocumentResponse, AiAgentResponse, CreateAiAgentRequest, CreateSkillDocumentRequest, DeleteAiAgentRequest, DeleteSkillDocumentRequest, GenerateBasePromptRequest, GenerateBasePromptResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, ListPromptDocumentsRequest, ListPromptDocumentsResponse, ToggleAiAgentActiveRequest, ToggleSkillDocumentRequest, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateSkillDocumentRequest, UpsertCoreDocumentRequest, aiAgentBehaviorSettingsSchema, aiAgentCorePromptDocumentNameSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, createAiAgentRequestSchema, createSkillDocumentRequestSchema, deleteAiAgentRequestSchema, deleteSkillDocumentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, listPromptDocumentsRequestSchema, listPromptDocumentsResponseSchema, toggleAiAgentActiveRequestSchema, toggleSkillDocumentRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateSkillDocumentRequestSchema, upsertCoreDocumentRequestSchema } from "./ai-agent.js";
|
|
2
2
|
import { PaginationInput, PaginationResponse, emailSchema, optionalUserIdSchema, paginationResponseSchema, paginationSchema, userIdSchema } from "./common.js";
|
|
3
3
|
import { Contact, ContactMetadata, ContactOrganizationResponse, ContactResponse, CreateContactOrganizationRequest, CreateContactRequest, IdentifyContactRequest, IdentifyContactResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, contactMetadataSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema } from "./contact.js";
|
|
4
|
-
import { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema } from "./conversation.js";
|
|
4
|
+
import { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SubmitConversationRatingRequestBody, SubmitConversationRatingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema } from "./conversation.js";
|
|
5
|
+
import { Feedback, GetFeedbackResponse, ListFeedbackRequest, ListFeedbackResponse, SubmitFeedbackRequest, SubmitFeedbackResponse, feedbackSchema, getFeedbackResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema } from "./feedback.js";
|
|
5
6
|
import { ArticleKnowledgePayload, CreateKnowledgeRequest, CreateKnowledgeRestRequest, DeleteKnowledgeRequest, FaqKnowledgePayload, GetKnowledgeRequest, Knowledge, KnowledgeCreateInput, KnowledgeResponse, KnowledgeType, ListKnowledgeRequest, ListKnowledgeResponse, ListKnowledgeRestRequest, ToggleKnowledgeEntryIncludedRequest, UpdateKnowledgeRequest, UpdateKnowledgeRestRequest, UploadKnowledgeFileRequest, UrlKnowledgePayload, articleKnowledgePayloadSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, deleteKnowledgeRequestSchema, faqKnowledgePayloadSchema, getKnowledgeRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, uploadKnowledgeFileRequestSchema, urlKnowledgePayloadSchema } from "./knowledge.js";
|
|
6
7
|
import { CancelLinkSourceRequest, CrawlProgressPage, CreateLinkSourceRequest, DeleteLinkSourceRequest, DeletePageRequest, DiscoveredPage, GetCrawlStatusRequest, GetLinkSourceRequest, GetTrainingStatsRequest, IgnorePageRequest, LinkSourceResponse, LinkSourceStatus, ListKnowledgeByLinkSourceRequest, ListLinkSourcesRequest, ListLinkSourcesResponse, RecrawlLinkSourceRequest, ReindexPageRequest, ScanSubpagesRequest, ToggleKnowledgeIncludedRequest, TrainingStatsResponse, cancelLinkSourceRequestSchema, crawlProgressPageSchema, createLinkSourceRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, getCrawlStatusRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, ignorePageRequestSchema, linkSourceResponseSchema, linkSourceStatusSchema, listKnowledgeByLinkSourceRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, scanSubpagesRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema } from "./link-source.js";
|
|
7
8
|
import { ContactNotificationSettings, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, getDefaultMemberNotificationPreference, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema } from "./notification.js";
|
|
@@ -11,4 +12,4 @@ import { GenerateUploadUrlRequest, GenerateUploadUrlResponse, generateUploadUrlR
|
|
|
11
12
|
import { UpdateUserProfileRequest, UserResponse, updateUserProfileRequestSchema, userResponseSchema } from "./user.js";
|
|
12
13
|
import { PublicContact, PublicVisitor, PublicVisitorResponse, UpdateVisitorMetadataRequest, UpdateVisitorRequest, Visitor, VisitorMetadata, VisitorResponse, publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema } from "./visitor.js";
|
|
13
14
|
import { AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CheckWebsiteDomainRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, ListByOrganizationRequest, PublicWebsiteResponse, RevokeWebsiteApiKeyRequest, UpdateWebsiteRequest, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, listByOrganizationRequestSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, updateWebsiteRequestSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema } from "./website.js";
|
|
14
|
-
export { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentResponse, ArticleKnowledgePayload, AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CancelLinkSourceRequest, CheckWebsiteDomainRequest, Contact, ContactMetadata, ContactNotificationSettings, ContactOrganizationResponse, ContactResponse, CossistantProviderMetadata, CrawlProgressPage, CreateAiAgentRequest, CreateContactOrganizationRequest, CreateContactRequest, CreateConversationRequestBody, CreateConversationResponseBody, CreateKnowledgeRequest, CreateKnowledgeRestRequest, CreateLinkSourceRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, DeleteAiAgentRequest, DeleteKnowledgeRequest, DeleteLinkSourceRequest, DeletePageRequest, DiscoveredPage, FaqKnowledgePayload, FilePart, GenerateBasePromptRequest, GenerateBasePromptResponse, GenerateUploadUrlRequest, GenerateUploadUrlResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, GetCrawlStatusRequest, GetKnowledgeRequest, GetLinkSourceRequest, GetTrainingStatsRequest, IdentifyContactRequest, IdentifyContactResponse, IgnorePageRequest, ImagePart, Knowledge, KnowledgeCreateInput, KnowledgeResponse, KnowledgeType, LinkSourceResponse, LinkSourceStatus, ListByOrganizationRequest, ListConversationsRequest, ListConversationsResponse, ListKnowledgeByLinkSourceRequest, ListKnowledgeRequest, ListKnowledgeResponse, ListKnowledgeRestRequest, ListLinkSourcesRequest, ListLinkSourcesResponse, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, OrganizationResponse, PaginationInput, PaginationResponse, PublicContact, PublicVisitor, PublicVisitorResponse, PublicWebsiteResponse, ReasoningPart, RecrawlLinkSourceRequest, ReindexPageRequest, RevokeWebsiteApiKeyRequest, ScanSubpagesRequest, SendTimelineItemRequest, SendTimelineItemResponse, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SourceDocumentPart, SourceUrlPart, StepStartPart, TextPart, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, ToggleAiAgentActiveRequest, ToggleKnowledgeEntryIncludedRequest, ToggleKnowledgeIncludedRequest, ToolPart, ToolState, TrainingStatsResponse, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, UpdateKnowledgeRequest, UpdateKnowledgeRestRequest, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, UpdateUserProfileRequest, UpdateVisitorMetadataRequest, UpdateVisitorRequest, UpdateWebsiteRequest, UploadKnowledgeFileRequest, UrlKnowledgePayload, UserResponse, Visitor, VisitorMetadata, VisitorResponse, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, cossistantProviderMetadataSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, filePartSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, imagePartSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, reasoningPartSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, toggleKnowledgeIncludedRequestSchema, toolPartSchema, toolStateSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadKnowledgeFileRequestSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
|
15
|
+
export { AIAgentGoal, AIModel, AIModelConfig, AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AI_MODELS, AiAgentBehaviorSettings, AiAgentCorePromptDocumentName, AiAgentPromptDocumentResponse, AiAgentResponse, ArticleKnowledgePayload, AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, CancelLinkSourceRequest, CheckWebsiteDomainRequest, Contact, ContactMetadata, ContactNotificationSettings, ContactOrganizationResponse, ContactResponse, CossistantProviderMetadata, CrawlProgressPage, CreateAiAgentRequest, CreateContactOrganizationRequest, CreateContactRequest, CreateConversationRequestBody, CreateConversationResponseBody, CreateKnowledgeRequest, CreateKnowledgeRestRequest, CreateLinkSourceRequest, CreateSkillDocumentRequest, CreateWebsiteApiKeyRequest, CreateWebsiteRequest, CreateWebsiteResponse, DeleteAiAgentRequest, DeleteKnowledgeRequest, DeleteLinkSourceRequest, DeletePageRequest, DeleteSkillDocumentRequest, DiscoveredPage, FaqKnowledgePayload, Feedback, FilePart, GenerateBasePromptRequest, GenerateBasePromptResponse, GenerateUploadUrlRequest, GenerateUploadUrlResponse, GetAiAgentRequest, GetBehaviorSettingsRequest, GetBehaviorSettingsResponse, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, GetCrawlStatusRequest, GetFeedbackResponse, GetKnowledgeRequest, GetLinkSourceRequest, GetTrainingStatsRequest, IdentifyContactRequest, IdentifyContactResponse, IgnorePageRequest, ImagePart, Knowledge, KnowledgeCreateInput, KnowledgeResponse, KnowledgeType, LinkSourceResponse, LinkSourceStatus, ListByOrganizationRequest, ListConversationsRequest, ListConversationsResponse, ListFeedbackRequest, ListFeedbackResponse, ListKnowledgeByLinkSourceRequest, ListKnowledgeRequest, ListKnowledgeResponse, ListKnowledgeRestRequest, ListLinkSourcesRequest, ListLinkSourcesResponse, ListPromptDocumentsRequest, ListPromptDocumentsResponse, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, MemberNotificationChannel, MemberNotificationChannelDefinition, MemberNotificationPreference, MemberNotificationSettingsResponse, OrganizationResponse, PaginationInput, PaginationResponse, PublicContact, PublicVisitor, PublicVisitorResponse, PublicWebsiteResponse, ReasoningPart, RecrawlLinkSourceRequest, ReindexPageRequest, RevokeWebsiteApiKeyRequest, ScanSubpagesRequest, SendTimelineItemRequest, SendTimelineItemResponse, SetConversationTypingRequestBody, SetConversationTypingResponseBody, SourceDocumentPart, SourceUrlPart, StepStartPart, SubmitConversationRatingRequestBody, SubmitConversationRatingResponseBody, SubmitFeedbackRequest, SubmitFeedbackResponse, TextPart, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, ToggleAiAgentActiveRequest, ToggleKnowledgeEntryIncludedRequest, ToggleKnowledgeIncludedRequest, ToggleSkillDocumentRequest, ToolPart, ToolState, TrainingStatsResponse, UpdateAiAgentRequest, UpdateBehaviorSettingsRequest, UpdateBehaviorSettingsResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, UpdateKnowledgeRequest, UpdateKnowledgeRestRequest, UpdateMemberNotificationSettingsRequest, UpdateMemberNotificationSettingsResponse, UpdateSkillDocumentRequest, UpdateUserProfileRequest, UpdateVisitorMetadataRequest, UpdateVisitorRequest, UpdateWebsiteRequest, UploadKnowledgeFileRequest, UpsertCoreDocumentRequest, UrlKnowledgePayload, UserResponse, Visitor, VisitorMetadata, VisitorResponse, WebsiteApiKey, WebsiteDeveloperSettingsResponse, WebsiteListItem, WebsiteSummary, aiAgentBehaviorSettingsSchema, aiAgentCorePromptDocumentNameSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, cossistantProviderMetadataSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createSkillDocumentRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, deleteSkillDocumentRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, feedbackSchema, filePartSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getFeedbackResponseSchema, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, imagePartSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, listPromptDocumentsRequestSchema, listPromptDocumentsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, reasoningPartSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, toggleKnowledgeIncludedRequestSchema, toggleSkillDocumentRequestSchema, toolPartSchema, toolStateSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateSkillDocumentRequestSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadKnowledgeFileRequestSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, upsertCoreDocumentRequestSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
package/api/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AI_AGENT_GOALS, AI_MODELS, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, createAiAgentRequestSchema, deleteAiAgentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, toggleAiAgentActiveRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema } from "./ai-agent.js";
|
|
1
|
+
import { AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AI_MODELS, aiAgentBehaviorSettingsSchema, aiAgentCorePromptDocumentNameSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, createAiAgentRequestSchema, createSkillDocumentRequestSchema, deleteAiAgentRequestSchema, deleteSkillDocumentRequestSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, listPromptDocumentsRequestSchema, listPromptDocumentsResponseSchema, toggleAiAgentActiveRequestSchema, toggleSkillDocumentRequestSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateSkillDocumentRequestSchema, upsertCoreDocumentRequestSchema } from "./ai-agent.js";
|
|
2
2
|
import { emailSchema, optionalUserIdSchema, paginationResponseSchema, paginationSchema, userIdSchema } from "./common.js";
|
|
3
3
|
import { contactMetadataSchema, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema } from "./contact.js";
|
|
4
4
|
import { cossistantProviderMetadataSchema, filePartSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, imagePartSchema, reasoningPartSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toolPartSchema, toolStateSchema } from "./timeline-item.js";
|
|
5
|
-
import { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema } from "./conversation.js";
|
|
5
|
+
import { createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema } from "./conversation.js";
|
|
6
|
+
import { feedbackSchema, getFeedbackResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema } from "./feedback.js";
|
|
6
7
|
import { articleKnowledgePayloadSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, deleteKnowledgeRequestSchema, faqKnowledgePayloadSchema, getKnowledgeRequestSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, uploadKnowledgeFileRequestSchema, urlKnowledgePayloadSchema } from "./knowledge.js";
|
|
7
8
|
import { cancelLinkSourceRequestSchema, crawlProgressPageSchema, createLinkSourceRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, getCrawlStatusRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, ignorePageRequestSchema, linkSourceResponseSchema, linkSourceStatusSchema, listKnowledgeByLinkSourceRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, scanSubpagesRequestSchema, toggleKnowledgeIncludedRequestSchema, trainingStatsResponseSchema } from "./link-source.js";
|
|
8
9
|
import { MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, getDefaultMemberNotificationPreference, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema } from "./notification.js";
|
|
@@ -12,4 +13,4 @@ import { updateUserProfileRequestSchema, userResponseSchema } from "./user.js";
|
|
|
12
13
|
import { publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema } from "./visitor.js";
|
|
13
14
|
import { AvailableAIAgentSchema, availableHumanAgentSchema, checkWebsiteDomainRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, listByOrganizationRequestSchema, publicWebsiteResponseSchema, revokeWebsiteApiKeyRequestSchema, updateWebsiteRequestSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema } from "./website.js";
|
|
14
15
|
|
|
15
|
-
export { AI_AGENT_GOALS, AI_MODELS, AvailableAIAgentSchema, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, aiAgentBehaviorSettingsSchema, aiAgentResponseSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganizationResponseSchema, contactResponseSchema, cossistantProviderMetadataSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, filePartSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, imagePartSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, reasoningPartSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, toggleKnowledgeIncludedRequestSchema, toolPartSchema, toolStateSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadKnowledgeFileRequestSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|
|
16
|
+
export { AI_AGENT_CORE_PROMPT_DOCUMENT_NAMES, AI_AGENT_GOALS, AI_MODELS, AvailableAIAgentSchema, MEMBER_NOTIFICATION_CHANNEL_DEFINITIONS, MEMBER_NOTIFICATION_DEFINITION_MAP, MemberNotificationChannel, aiAgentBehaviorSettingsSchema, aiAgentCorePromptDocumentNameSchema, aiAgentPromptDocumentKindSchema, aiAgentPromptDocumentResponseSchema, aiAgentResponseSchema, aiAgentSkillPromptDocumentNameSchema, articleKnowledgePayloadSchema, availableHumanAgentSchema, cancelLinkSourceRequestSchema, checkWebsiteDomainRequestSchema, contactMetadataSchema, contactNotificationChannelConfigSchema, contactNotificationSettingsSchema, contactOrganizationResponseSchema, contactResponseSchema, cossistantProviderMetadataSchema, crawlProgressPageSchema, createAiAgentRequestSchema, createContactOrganizationRequestSchema, createContactRequestSchema, createConversationRequestSchema, createConversationResponseSchema, createKnowledgeRequestSchema, createKnowledgeRestRequestSchema, createLinkSourceRequestSchema, createSkillDocumentRequestSchema, createWebsiteApiKeyRequestSchema, createWebsiteRequestSchema, createWebsiteResponseSchema, deleteAiAgentRequestSchema, deleteKnowledgeRequestSchema, deleteLinkSourceRequestSchema, deletePageRequestSchema, deleteSkillDocumentRequestSchema, discoveredPageSchema, emailSchema, faqKnowledgePayloadSchema, feedbackSchema, filePartSchema, generateBasePromptRequestSchema, generateBasePromptResponseSchema, generateUploadUrlRequestSchema, generateUploadUrlResponseSchema, getAiAgentRequestSchema, getBehaviorSettingsRequestSchema, getBehaviorSettingsResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, getCrawlStatusRequestSchema, getDefaultMemberNotificationPreference, getFeedbackResponseSchema, getKnowledgeRequestSchema, getLinkSourceRequestSchema, getTrainingStatsRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, ignorePageRequestSchema, imagePartSchema, knowledgeCreateSchema, knowledgeResponseSchema, knowledgeSchema, knowledgeTypeSchema, linkSourceResponseSchema, linkSourceStatusSchema, listByOrganizationRequestSchema, listConversationsRequestSchema, listConversationsResponseSchema, listFeedbackRequestSchema, listFeedbackResponseSchema, listKnowledgeByLinkSourceRequestSchema, listKnowledgeRequestSchema, listKnowledgeResponseSchema, listKnowledgeRestRequestSchema, listLinkSourcesRequestSchema, listLinkSourcesResponseSchema, listPromptDocumentsRequestSchema, listPromptDocumentsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, memberNotificationChannelSchema, memberNotificationPreferenceSchema, memberNotificationSettingsResponseSchema, optionalUserIdSchema, organizationResponseSchema, paginationResponseSchema, paginationSchema, publicContactResponseSchema, publicVisitorResponseSchema, publicWebsiteResponseSchema, reasoningPartSchema, recrawlLinkSourceRequestSchema, reindexPageRequestSchema, revokeWebsiteApiKeyRequestSchema, scanSubpagesRequestSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, submitConversationRatingRequestSchema, submitConversationRatingResponseSchema, submitFeedbackRequestSchema, submitFeedbackResponseSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toggleAiAgentActiveRequestSchema, toggleKnowledgeEntryIncludedRequestSchema, toggleKnowledgeIncludedRequestSchema, toggleSkillDocumentRequestSchema, toolPartSchema, toolStateSchema, trainingStatsResponseSchema, updateAiAgentRequestSchema, updateBehaviorSettingsRequestSchema, updateBehaviorSettingsResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema, updateKnowledgeRequestSchema, updateKnowledgeRestRequestSchema, updateMemberNotificationSettingsRequestSchema, updateMemberNotificationSettingsResponseSchema, updateSkillDocumentRequestSchema, updateUserProfileRequestSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, updateWebsiteRequestSchema, uploadContactIdSchema, uploadConversationIdSchema, uploadFileExtensionSchema, uploadFileNameSchema, uploadKnowledgeFileRequestSchema, uploadOrganizationIdSchema, uploadPathSchema, uploadScopeContactSchema, uploadScopeConversationSchema, uploadScopeSchema, uploadScopeUserSchema, uploadScopeVisitorSchema, uploadUserIdSchema, uploadVisitorIdSchema, uploadWebsiteIdSchema, upsertCoreDocumentRequestSchema, urlKnowledgePayloadSchema, userIdSchema, userResponseSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema, websiteApiKeySchema, websiteDeveloperSettingsResponseSchema, websiteListItemSchema, websiteSummarySchema };
|