@cossistant/next 0.0.5 → 0.0.7
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/conversation-timeline.d.ts +2 -1
- package/conversation-timeline.d.ts.map +1 -1
- package/conversation.d.ts +47 -3
- package/conversation.d.ts.map +1 -1
- package/conversation2.d.ts +7 -0
- package/conversation2.d.ts.map +1 -0
- package/enums.d.ts +11 -0
- package/enums.d.ts.map +1 -0
- package/hooks/index.d.ts +1 -1
- package/identify-visitor2.d.ts +1 -0
- package/identify-visitor2.d.ts.map +1 -1
- package/index.d.ts +3 -3
- package/index10.d.ts +3 -0
- package/index2.d.ts +19 -24
- package/index2.d.ts.map +1 -0
- package/index2.parts.d.ts +2 -2
- package/index3.d.ts +24 -4
- package/index4.d.ts +1 -10
- package/index5.d.ts +13 -5
- package/index6.d.ts +5 -2
- package/index7.d.ts +2 -37
- package/index8.d.ts +1 -3
- package/index9.d.ts +39 -0
- package/index9.d.ts.map +1 -0
- package/keys.d.ts +2 -0
- package/keys.d.ts.map +1 -1
- package/package.json +3 -2
- package/primitives/index.d.ts +2 -2
- package/provider2.d.ts +3 -0
- package/provider2.d.ts.map +1 -1
- package/provider3.d.ts +1 -0
- package/provider3.d.ts.map +1 -1
- package/realtime/index.d.ts +1 -1
- package/realtime-events.d.ts +126 -0
- package/realtime-events.d.ts.map +1 -0
- package/schemas.d.ts +34 -0
- package/schemas.d.ts.map +1 -0
- package/seen-store.d.ts +4 -0
- package/seen-store.d.ts.map +1 -1
- package/support/index.d.ts +1 -1
- package/support-config2.d.ts +1 -0
- package/support-config2.d.ts.map +1 -1
- package/support-store.d.ts +4 -15
- package/support-store.d.ts.map +1 -1
- package/support.css +1 -1
- package/tailwind.css +404 -0
- package/timeline-item-group.d.ts +3 -1
- package/timeline-item-group.d.ts.map +1 -1
- package/timeline-item.d.ts +107 -50
- package/timeline-item.d.ts.map +1 -1
- package/timeline-item2.d.ts +55 -0
- package/timeline-item2.d.ts.map +1 -0
- package/typing-indicator.d.ts +1 -0
- package/typing-indicator.d.ts.map +1 -1
- package/typing-store.d.ts +3 -0
- package/typing-store.d.ts.map +1 -1
- package/typing.d.ts +2 -1
- package/typing.d.ts.map +1 -1
- package/use-client-query.d.ts +2 -0
- package/use-client-query.d.ts.map +1 -1
- package/use-conversation-auto-seen.d.ts +3 -1
- package/use-conversation-auto-seen.d.ts.map +1 -1
- package/use-conversation-history-page.d.ts +2 -0
- package/use-conversation-history-page.d.ts.map +1 -1
- package/use-conversation-page.d.ts +2 -0
- package/use-conversation-page.d.ts.map +1 -1
- package/use-conversation-preview.d.ts +2 -0
- package/use-conversation-preview.d.ts.map +1 -1
- package/use-conversation-seen.d.ts +2 -0
- package/use-conversation-seen.d.ts.map +1 -1
- package/use-conversation-timeline-items.d.ts +3 -1
- package/use-conversation-timeline-items.d.ts.map +1 -1
- package/use-conversation-timeline.d.ts +1 -0
- package/use-conversation-timeline.d.ts.map +1 -1
- package/use-conversation-typing.d.ts +2 -0
- package/use-conversation-typing.d.ts.map +1 -1
- package/use-conversation.d.ts +2 -0
- package/use-conversation.d.ts.map +1 -1
- package/use-conversations.d.ts +3 -1
- package/use-conversations.d.ts.map +1 -1
- package/use-create-conversation.d.ts +5 -1
- package/use-create-conversation.d.ts.map +1 -1
- package/use-default-messages.d.ts +2 -0
- package/use-default-messages.d.ts.map +1 -1
- package/use-grouped-messages.d.ts +4 -1
- package/use-grouped-messages.d.ts.map +1 -1
- package/use-home-page.d.ts +2 -0
- package/use-home-page.d.ts.map +1 -1
- package/use-message-composer.d.ts +2 -0
- package/use-message-composer.d.ts.map +1 -1
- package/use-realtime-support.d.ts +2 -0
- package/use-realtime-support.d.ts.map +1 -1
- package/use-realtime.d.ts +1 -0
- package/use-realtime.d.ts.map +1 -1
- package/use-rest-client.d.ts +2 -0
- package/use-rest-client.d.ts.map +1 -1
- package/use-send-message.d.ts +4 -1
- package/use-send-message.d.ts.map +1 -1
- package/use-visitor.d.ts +2 -0
- package/use-visitor.d.ts.map +1 -1
- package/utils/index.d.ts +2 -2
- package/visitor.d.ts +72 -0
- package/visitor.d.ts.map +1 -0
- package/website.d.ts +49 -0
- package/website.d.ts.map +1 -0
- package/websocket.d.ts +2 -1
- package/websocket.d.ts.map +1 -1
- package/index7.d.ts.map +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region ../react/src/primitives/timeline-item.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Metadata describing the origin of a timeline item and pre-parsed content that can
|
|
8
|
+
* be consumed by render-prop children.
|
|
9
|
+
*/
|
|
10
|
+
type TimelineItemRenderProps = {
|
|
11
|
+
isVisitor: boolean;
|
|
12
|
+
isAI: boolean;
|
|
13
|
+
isHuman: boolean;
|
|
14
|
+
timestamp: Date;
|
|
15
|
+
text: string | null;
|
|
16
|
+
senderType: "visitor" | "ai" | "human";
|
|
17
|
+
itemType: "message" | "event" | "identification";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Generic timeline item wrapper that adds accessibility attributes and resolves the
|
|
21
|
+
* sender type into convenient render props for custom layouts. Works with
|
|
22
|
+
* both MESSAGE and EVENT timeline item types.
|
|
23
|
+
*/
|
|
24
|
+
declare const TimelineItem$1: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
25
|
+
children?: React$1.ReactNode | ((props: TimelineItemRenderProps) => React$1.ReactNode);
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
item: TimelineItem;
|
|
29
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* Renders the content of a timeline item, optionally piping Markdown content through a
|
|
32
|
+
* memoised renderer or handing the raw text to a render prop for custom
|
|
33
|
+
* formatting.
|
|
34
|
+
*/
|
|
35
|
+
declare const TimelineItemContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
36
|
+
children?: React$1.ReactNode | ((content: string) => React$1.ReactNode);
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
text?: string | null;
|
|
40
|
+
renderMarkdown?: boolean;
|
|
41
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp helper that renders a formatted date or allows callers to supply a
|
|
44
|
+
* render prop for custom time displays while preserving semantic markup.
|
|
45
|
+
*/
|
|
46
|
+
declare const TimelineItemTimestamp: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
47
|
+
children?: React$1.ReactNode | ((timestamp: Date) => React$1.ReactNode);
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
className?: string;
|
|
50
|
+
timestamp: Date;
|
|
51
|
+
format?: (date: Date) => string;
|
|
52
|
+
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { TimelineItem$1 as TimelineItem, TimelineItemContent, TimelineItemTimestamp };
|
|
55
|
+
//# sourceMappingURL=timeline-item2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-item2.d.ts","names":[],"sources":["../../react/src/primitives/timeline-item.tsx"],"sourcesContent":[],"mappings":";;;;;;;AASA;AA2BA;AAAyB,KA3Bb,uBAAA,GA2Ba;EAAA,SAAA,EAAA,OAAA;EAAA,IAAA,EAAA,OAAA;EAZrB,OAAM,EAAA,OAAA;EACG,SAAA,EAZD,IAYC;EAA4B,IAAA,EAAM,MAAA,GAAA,IAAA;EAGxC,UAAA,EAAA,SAAA,GAAA,IAAA,GAAA,OAAA;;;;;;;;AAiJyB,cAzInB,cAyImB,EAzIP,OAAA,CAAA,yBAyIO,CAzIP,IAyIO,CAzIP,OAAA,CAAA,cAyIO,CAzIP,cAyIO,CAAA,EAAA,UAAA,CAAA,GAAA;EAkEnB,QAAA,CAAA,EAvNT,OAAA,CAAM,SAmQN,GAAA,CAAA,CAAA,KAAA,EAlQS,uBAkQT,EAAA,GAlQqC,OAAA,CAAM,SAkQ3C,CAAA;EA5C8B,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA;EAAA,IAAA,EAnN3B,YAmN2B;CAXtB,wBAAM,eAAA,CAAA,CAAA;;;;;;cAvDL,qBAAmB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAZpB,OAAA,CAAM,kCAAkC,OAAA,CAAM;;;;;;;;;;cA8E7C,uBAAqB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAXtB,OAAA,CAAM,yBAAyB,SAAS,OAAA,CAAM;;;aAG9C;kBACK"}
|
package/typing-indicator.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-indicator.d.ts","names":[],"sources":["../../react/src/support/components/typing-indicator.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing-indicator.d.ts","names":[],"sources":["../../react/src/support/components/typing-indicator.tsx"],"sourcesContent":[],"mappings":";;;;KAKY,qBAAA;KAEA,iBAAA;EAFA,EAAA,EAAA,MAAA;EAEA,IAAA,EAEL,qBAFsB;AAK7B,CAAA;AAAwD,KAA5C,oBAAA,GAAuB,OAAA,CAAM,cAAe,CAAA,cAAA,CAAA,GAAA;EAArB,YAAM,EAC1B,iBAD0B,EAAA;EAC1B,iBAAA,CAAA,EACM,gBADN,EAAA;EACM,oBAAA,CAAA,EACG,mBADH,EAAA;EACG,WAAA,CAAA,EAAA,OAAA;CAAmB;AAF5B,cAiCF,eAjCE,EAiCa,OAAA,CAAA,yBAjCb,CAiCa,OAAA,CAAA,cAjCb,CAiCa,cAjCb,CAAA,GAAA;EACM,YAAA,EADN,iBACM,EAAA;EACG,iBAAA,CAAA,EADH,gBACG,EAAA;yBAAA;;CA+BI,wBAAA,eAAA,CAAA,CAAA"}
|
package/typing-store.d.ts
CHANGED
package/typing-store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-store.d.ts","names":[],"sources":["../../react/src/realtime/typing-store.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing-store.d.ts","names":[],"sources":["../../react/src/realtime/typing-store.ts"],"sourcesContent":[],"mappings":";;;;;;;;;iBA+DgB,cAAA;;aAEJ;;;;;;;;;iBAYI,gBAAA;;aAEJ;;;;;;;iBAUI,4BAAA,QACR;;;;;;;;;;iBAeQ,2BAAA,QACR"}
|
package/typing.d.ts
CHANGED
package/typing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing.d.ts","names":[],"sources":["../../react/src/hooks/private/typing.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typing.d.ts","names":[],"sources":["../../react/src/hooks/private/typing.ts"],"sourcesContent":[],"mappings":";;;AAIY,KAAA,yBAAA,GAAyB;EAKzB,EAAA,EAAA,MAAA;;;KAAA,wBAAA,GAA2B"}
|
package/use-client-query.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-client-query.d.ts","names":[],"sources":["../../react/src/hooks/private/use-client-query.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-client-query.d.ts","names":[],"sources":["../../react/src/hooks/private/use-client-query.ts"],"sourcesContent":[],"mappings":";;;KAGK,iCACI,yBACD,sBACH,QAAQ;KAER;EALA,MAAA,EAMI,gBANG;EACH,OAAA,EAMC,OAND,CAMS,KANT,EAMgB,KANhB,CAAA;EACD,OAAA,CAAA,EAAA,OAAA;EACK,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAAR,oBAAA,CAAA,EAAA,OAAA;EAAO,cAAA,CAAA,EAAA,OAAA;EAEP,WAAA,CAAA,EAOU,KAPV;EACI,WAAA,CAAA,EAOM,KAPN;EACS,YAAA,CAAA,EAAA,SAAA,OAAA,EAAA;CAAO;KAUpB,oBAVK,CAAA,KAAA,EAAA,KAAA,CAAA,GAAA;EAKK,IAAA,EAMR,KANQ,GAAA,SAAA;EACA,KAAA,EAMP,KANO,GAAA,IAAA;EAAK,SAAA,EAAA,OAAA;EAIf,OAAA,EAAA,CAAA,IAAA,CAAA,EAIa,KAJb,EAAoB,GAIG,OAJH,CAIW,KAJX,GAAA,SAAA,CAAA;CAClB;;;;;;AAqBS,iBAAA,cAAc,CAAA,KAAA,EAAA,QAAA,IAAA,CAAA,CAAA,OAAA,EACpB,qBADoB,CACE,KADF,EACS,KADT,CAAA,CAAA,EAE3B,oBAF2B,CAEN,KAFM,EAEC,KAFD,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
3
|
|
|
4
|
+
//#region ../react/src/hooks/use-conversation-auto-seen.d.ts
|
|
3
5
|
declare const CONVERSATION_AUTO_SEEN_DELAY_MS = 2000;
|
|
4
6
|
type UseConversationAutoSeenOptions = {
|
|
5
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-auto-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-auto-seen.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-auto-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-auto-seen.ts"],"sourcesContent":[],"mappings":";;;;cASa,+BAAA;KAED,8BAAA;EAFC;AAEb;AA4DA;UAxDS;;;;;;;;;;;;;oBAgBU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,uBAAA,UACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-history-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-history-page.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-history-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-history-page.ts"],"sourcesContent":[],"mappings":";;;KAKY,iCAAA;;AAAZ;AAwBA;;EAIQ,mBAAA,CAAA,EAAA,MAAA;EAGe;;AA0DvB;;;;;;;;;;;;KAjEY,gCAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DP,0BAAA,WACN,oCACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-page.ts"],"sourcesContent":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-conversation-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-page.ts"],"sourcesContent":[],"mappings":";;;KAaY,0BAAA;;AAAZ;AA+BA;;EAMQ,cAAA,EAAA,MAAA;EAKC;;;EAWsB,cAAA,CAAA,EAAA,MAAA;EAuCf;;;;;;;;UAvEP;;;;;;;;KAUG,yBAAA;;;SAIJ;;SAEA;;;WAKC;;;;sBAIW;;;;;oBAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCH,mBAAA,UACN,6BACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-preview.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-preview.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-preview.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-preview.ts"],"sourcesContent":[],"mappings":";;;;;;KAcY,8BAAA;;EAAA,IAAA,EAAA,MAAA;EAQA,aAAA,EAAA,OAAA;EAMA,UAAA,CAAA,EAAA,MAAA;EAEA,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;AAOZ,CAAA;AAqBY,KApCA,gCAAA,GAoC4B;EACzB,IAAA,EAAA,MAAA;EAED,KAAA,EAAA,MAAA,GAAA,IAAA;EACE,IAAA,EAAA,OAAA,GAAA,IAAA,GAAA,UAAA;CACP;AACoB,KApCjB,oCAAA,GAAuC,wBAoCtB;AAAlB,KAlCC,8BAAA,GAkCD;EAAU,YAAA,EAjCN,oCAiCM,EAAA;EA0BL,kBAAA,EA1DK,oCA2DX,GAAA,IAAA;;;;KAtDE,6BAAA;gBACG;;;;;;;;;yBASS;;;;;;;;;;KAWZ,4BAAA;gBACG;;eAED;iBACE;UACP;YACE,kBAAkB;;;;;;iBA0Bb,sBAAA,UACN,gCACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-seen.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-seen.ts"],"sourcesContent":[],"mappings":";;;KAIK,0BAAA;gBACU;AALmD,CAAA;AAoBlE;AAwDA;;;iBAxDgB,mBAAA,sDAEN,6BACP;;;;;;;iBAqDa,4BAAA,sDAEN,6CAEP"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse } from "./timeline-item.js";
|
|
2
|
+
import { ConversationTimelineItemsState } from "@cossistant/core";
|
|
2
3
|
|
|
4
|
+
//#region ../react/src/hooks/use-conversation-timeline-items.d.ts
|
|
3
5
|
type UseConversationTimelineItemsOptions = {
|
|
4
6
|
limit?: number;
|
|
5
7
|
cursor?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-timeline-items.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline-items.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-timeline-items.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline-items.ts"],"sourcesContent":[],"mappings":";;;;KAoBY,mCAAA;;EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAQA,OAAA,CAAA,EAAA,OAAA;EACX,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAEQ,oBAAA,CAAA,EAAA,OAAA;CAEM;AAAL,KALE,kCAAA,GACX,8BAIS,GAAA;EACK,SAAA,EAAA,OAAA;EAAR,KAAA,EAHE,KAGF,GAAA,IAAA;EAEJ,OAAA,EAAA,CAAA,IAAA,CAAA,EAHO,IAGP,CAHY,mCAGZ,EAAA,QAAA,GAAA,OAAA,CAAA,EAAA,GAFI,OAEJ,CAFY,oCAEZ,GAAA,SAAA,CAAA;EADoB,aAAA,EAAA,GAAA,GAAA,OAAA,CACpB,oCADoB,GAAA,SAAA,CAAA;CAAO;AAS9B;;;;iBAAgB,4BAAA,sDAEN,sCACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-timeline.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-timeline.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline.ts"],"sourcesContent":[],"mappings":";;;;;;;KAYY,qCAAA,GAAwC;KAExC,8BAAA;EAFA,cAAA,EAAA,MAAA;EAEA,KAAA,EAEJ,YAFI,EAAA;EAMA,gBAAA,CAAA,EAAA,MAAA;CACwB;AAAlB,KADN,6BAAA,GACM;EACW,eAAA,EADX,UACW,CAAA,OADO,kBACP,CAAA;EAAlB,QAAA,EAAA,UAAA,CAAA,OAAkB,4BAAlB,CAAA;EACuB,aAAA,EAAlB,UAAkB,CAAA,OAAA,qBAAA,CAAA;EAAlB,kBAAA,EACK,qCADL,EAAA;EACK,4BAAA,EAAA,MAAA;CAAqC;AAQ1D;;;;AAIG,iBAJa,uBAAA,CAIb;EAAA,cAAA;EAAA,KAAA,EAFK,aAEL;EAAA;AAAA,CAAA,EAAA,8BAAA,CAAA,EAAiC,6BAAjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation-typing.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-typing.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation-typing.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-typing.ts"],"sourcesContent":[],"mappings":";;;KAIY,6BAAA,GAAgC;KAEvC,4BAAA;EAFO,gBAAA,CAAA,EAAA,MAAA,GAAA,IAA6B;EAEpC,aAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EA6BW,gBAAA,CAAA,EAAA,MAAqB,GAAA,IAAA;;;;;;iBAArB,qBAAA,sDAEN,+BACP"}
|
package/use-conversation.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation.ts"],"sourcesContent":[],"mappings":";;;KAQY,sBAAA;;EAAA,eAAA,CAAA,EAAA,MAAA,GAAsB,KAAA;EAMtB,oBAAA,CAAA,EAAA,OAAqB;CAClB;AAEP,KAHI,qBAAA,GAGJ;EAEC,YAAA,EAJM,uBAIN,CAAA,cAAA,CAAA,GAAA,IAAA;EACK,SAAA,EAAA,OAAA;EAAR,KAAA,EAHE,KAGF,GAAA,IAAA;EAAO,OAAA,EAAA,CAAA,IAAA,CAAA,EADJ,sBACI,EAAA,GAAP,OAAO,CAAC,uBAAD,GAAA,SAAA,CAAA;AAcb,CAAA;;;;;;;;;;;;iBAAgB,eAAA,0CAEN,yBACP"}
|
package/use-conversations.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ListConversationsRequest, ListConversationsResponse } from "./conversation.js";
|
|
2
|
+
import { ConversationPagination } from "@cossistant/core";
|
|
2
3
|
|
|
4
|
+
//#region ../react/src/hooks/use-conversations.d.ts
|
|
3
5
|
type UseConversationsOptions = Partial<Omit<ListConversationsRequest, "visitorId">> & {
|
|
4
6
|
enabled?: boolean;
|
|
5
7
|
refetchInterval?: number | false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-conversations.d.ts","names":[],"sources":["../../react/src/hooks/use-conversations.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-conversations.d.ts","names":[],"sources":["../../react/src/hooks/use-conversations.ts"],"sourcesContent":[],"mappings":";;;;KA0CY,uBAAA,GAA0B,QACrC,KAAK;;EADM,eAAA,CAAA,EAAA,MAAA,GAAuB,KAAA;EAC7B,oBAAA,CAAA,EAAA,OAAA;CAAL;AADqC,KAQ1B,sBAAA,GAR0B;EAAO,aAAA,EAS7B,yBAT6B,CAAA,eAAA,CAAA;EAQjC,UAAA,EAEC,sBAFqB,GAAA,IAAA;EAClB,SAAA,EAAA,OAAA;EACH,KAAA,EAEL,KAFK,GAAA,IAAA;EAEL,OAAA,EAAA,CAAA,IAAA,CAAA,EAEC,OAFD,CAES,wBAFT,CAAA,EAAA,GAGF,OAHE,CAGM,yBAHN,GAAA,SAAA,CAAA;CAES;;;;;AAgBjB;;;;;;;;iBAAgB,gBAAA,WACN,0BACP"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import { CreateConversationResponseBody } from "./conversation.js";
|
|
3
|
+
import { Conversation } from "./schemas.js";
|
|
4
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
5
|
|
|
6
|
+
//#region ../react/src/hooks/use-create-conversation.d.ts
|
|
3
7
|
type UseCreateConversationOptions = {
|
|
4
8
|
client?: CossistantClient;
|
|
5
9
|
onSuccess?: (data: CreateConversationResponseBody) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-create-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-create-conversation.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-create-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-create-conversation.ts"],"sourcesContent":[],"mappings":";;;;;;KAOY,4BAAA;WACF;EADE,SAAA,CAAA,EAAA,CAAA,IAAA,EAEQ,8BAFoB,EAAA,GAAA,IAAA;EAC9B,OAAA,CAAA,EAAA,CAAA,KAAA,EAES,KAFT,EAAA,GAAA,IAAA;CACU;AACD,KAGP,2BAAA,GAHO;EAAK,cAAA,CAAA,EAAA,MAAA;EAGZ,oBAAA,CAAA,EAEY,YAFe,EAAA;EAS3B,SAAA,CAAA,EAAA,MAAA;EACU,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAER,MAAA,CAAA,EAPJ,YAOI,CAAA,QAAA,CAAA;EACA,KAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CAAR;AAEE,KANI,2BAAA,GAMJ;EAAK,MAAA,EAAA,CAAA,SAAA,CAAA,EALS,2BAKT,EAAA,GAAA,IAAA;EAqBG,WAAA,EAAA,CAAA,SACN,CAD2B,EAxBvB,2BAyBJ,EAAA,GAxBJ,OAwBI,CAxBI,8BAyBgB,GAAA,IAAA,CAAA;;SAvBtB;;;;;;;;iBAqBQ,qBAAA,WACN,+BACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-default-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-default-messages.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-default-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-default-messages.ts"],"sourcesContent":[],"mappings":";;;KAMK,wBAAA;;AAJmE,CAAA;AAcxE;;;;;;iBAAgB,kBAAA;;GAEb,2BAA2B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import { SenderType } from "./enums.js";
|
|
3
|
+
import { ConversationSeen } from "./schemas.js";
|
|
2
4
|
|
|
5
|
+
//#region ../react/src/hooks/private/use-grouped-messages.d.ts
|
|
3
6
|
type GroupedMessage = {
|
|
4
7
|
type: "message_group";
|
|
5
8
|
senderId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-grouped-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-grouped-messages.ts"],"sourcesContent":[],"mappings":";;;;;KAKY,cAAA;;EAAA,QAAA,EAAA,MAAA;EAGC,UAAA,EAAA,UAAA;EACL,KAAA,EAAA,YAAA,EAAA;EAGW,cAAA,EAAA,MAAA;EACD,aAAA,EAAA,MAAA;EAAI,gBAAA,EADH,IACG;EAGV,eAAA,EAHM,IAGW;AAM7B,CAAA;AAOY,KAbA,iBAAA,GAagB;EACzB,IAAA,EAAA,gBAAA;EACA,IAAA,EAbI,YAaJ;EACA,SAAA,EAbS,IAaT;CAAgB;AAEP,KAZA,gBAAA,GAYA;EACJ,IAAA,EAAA,eAAA;EACI,IAAA,EAZL,YAYK;EAEE,IAAA,EAAA,MAAA,GAAA,IAAA;EAAU,SAAA,EAZZ,IAYY;AAGxB,CAAA;AAwNa,KApOD,gBAAA,GACT,cAuSF,GAtSE,iBAsSF,GArSE,gBAqSF;AApEkC,KA/NvB,yBAAA,GA+NuB;EAAA,KAAA,EA9N3B,YA8N2B,EAAA;EAAA,QAAA,CAAA,EA7NvB,gBA6NuB,EAAA;EAAA,eAAA,CAAA,EAAA,MAAA;EAKhC,UAAA,CAAA,EAhOW,UAgOX;;KA7NS,uBAAA,GAA0B;;;;;;;cAwNzB;;;;;GAKV"}
|
package/use-home-page.d.ts
CHANGED
package/use-home-page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-home-page.d.ts","names":[],"sources":["../../react/src/hooks/use-home-page.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-home-page.d.ts","names":[],"sources":["../../react/src/hooks/use-home-page.ts"],"sourcesContent":[],"mappings":";;;KAKY,kBAAA;;AAAZ;AAuBA;;EAIQ,OAAA,CAAA,EAAA,OAAA;EAGe;;AAuDvB;;;;;;;;;;;KA9DY,iBAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuDP,WAAA,WACN,qBACP"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
1
2
|
import { UseMultimodalInputOptions } from "./use-multimodal-input.js";
|
|
3
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
4
|
|
|
3
5
|
//#region ../react/src/hooks/use-message-composer.d.ts
|
|
4
6
|
type UseMessageComposerOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-message-composer.d.ts","names":[],"sources":["../../react/src/hooks/use-message-composer.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-message-composer.d.ts","names":[],"sources":["../../react/src/hooks/use-message-composer.ts"],"sourcesContent":[],"mappings":";;;;;KAUY,yBAAA;;AAAZ;;EAewB,MAAA,EAXf,gBAWe;EAiBL;;;;EAWP,cAAA,EAAA,MAAA,GAAA,IAAwB;EAG5B;;;EASe,oBAAA,CAAA,EAxCC,YAwCD,EAAA;EAwCP;;;;;;;;;;;;;oBA/DG;;;;gBAKJ,KACb;;KAKU,wBAAA;;SAGJ;SACA;;;;oBAQW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,kBAAA,UACN,4BACP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-realtime-support.d.ts","names":[],"sources":["../../react/src/hooks/use-realtime-support.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-realtime-support.d.ts","names":[],"sources":["../../react/src/hooks/use-realtime-support.ts"],"sourcesContent":[],"mappings":";;;KAIY,yBAAA;oBACO;AADnB,CAAA;AAIY,KAAA,wBAAA,GAAwB;EAG5B,WAAA,EAAA,OAAA;EACO,YAAA,EAAA,OAAA;EACH,KAAA,EAFJ,KAEI,GAAA,IAAA;EAEE,IAAA,EAAA,CAAA,KAAA,EAHC,gBAGD,EAAA,GAAA,IAAA;EACgB,SAAA,EAHlB,gBAGkB,GAAA,IAAA;EAAgB;EAQ9B,WAAA,EATF,gBASoB,GAAA,IACxB;+BAToB;;;;;;;iBAQd,kBAAA,WACN,4BACP"}
|
package/use-realtime.d.ts
CHANGED
package/use-realtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-realtime.d.ts","names":[],"sources":["../../react/src/realtime/use-realtime.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-realtime.d.ts","names":[],"sources":["../../react/src/realtime/use-realtime.ts"],"sourcesContent":[],"mappings":";;;;KAUY,mCAAmC;KAEnC,kCAAgC;SACpC,cAAc;EAHV,OAAA,EAIF,sBAJwB,CAID,QAJC,CAAA;AAElC,CAAA;AAA4C,KAKhC,oBALgC,CAAA,gBAKG,iBALH,EAAA,QAAA,CAAA,GAAA,CAAA,IAAA,EAMrC,iBANqC,CAMnB,OANmB,CAAA,EAAA,IAAA,EAOrC,iBAPqC,CAOnB,OAPmB,EAOZ,QAPY,CAAA,EAAA,GAAA,IAAA,GAQhC,OARgC,CAAA,IAAA,CAAA;AACtB,KASV,yBATU,CAAA,gBAUP,iBAVO,EAAA,QAAA,CAAA,GAanB,oBAbmB,CAaE,OAbF,EAaS,QAbT,CAAA,GAcnB,oBAdmB,CAcE,OAdF,EAcS,QAdT,CAAA,EAAA;AAAd,KAgBI,wBAhBJ,CAAA,QAAA,CAAA,GAgByC,OAhBzC,CAAA,YAiBG,iBAhBsB,GAgBF,yBAhBE,CAgBwB,KAhBxB,EAgB+B,QAhB/B,CAAA,EAAvB,CAAA;KAmBL,kBAnB2B,CAAA,QAAA,EAAA,kBAqBb,wBArBa,CAqBY,QArBZ,CAAA,CAAA,GAAA;EAGpB,MAAA,EAoBH,SApBG;EAAmC,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EACtB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAAlB,OAAA,CAAA,EAsBI,QAtBJ;EACkB,YAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAwBhB,aAxBgB,CAwBF,iBAxBE,CAAA,EAAA,GAAA,IAAA;CAAO;;;;AAGhC;AACe,iBA4BC,WA5BD,CAAA,WAAA,IAAA,EAAA,kBA+Bb,wBA/Ba,CA+BY,QA/BZ,CAAA,GA+BwB,wBA/BxB,CA+BiD,QA/BjD,CAAA,CAAA,CAAA;EAAA,MAAA;EAAA,SAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAsCZ,kBAtCY,CAsCO,QAtCP,EAsCiB,SAtCjB,CAAA,CAAA,EAsCM,oBAtCN"}
|
package/use-rest-client.d.ts
CHANGED
package/use-rest-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-rest-client.d.ts","names":[],"sources":["../../react/src/hooks/private/use-rest-client.ts"],"sourcesContent":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-rest-client.d.ts","names":[],"sources":["../../react/src/hooks/private/use-rest-client.ts"],"sourcesContent":[],"mappings":";;;KAMY,eAAA;UACH;EADG,KAAA,EAEJ,KAFI,GAAA,IAAe;AAW3B,CAAA;;;;;;;iBAAgB,SAAA,kEAIb"}
|
package/use-send-message.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { TimelineItem } from "./timeline-item.js";
|
|
2
|
+
import { CreateConversationResponseBody } from "./conversation.js";
|
|
3
|
+
import { CossistantClient } from "@cossistant/core";
|
|
2
4
|
|
|
5
|
+
//#region ../react/src/hooks/use-send-message.d.ts
|
|
3
6
|
type SendMessageOptions = {
|
|
4
7
|
conversationId?: string | null;
|
|
5
8
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-send-message.d.ts","names":[],"sources":["../../react/src/hooks/use-send-message.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-send-message.d.ts","names":[],"sources":["../../react/src/hooks/use-send-message.ts"],"sourcesContent":[],"mappings":";;;;;KAQY,kBAAA;;EAAA,OAAA,EAAA,MAAA;EAGH,KAAA,CAAA,EAAA,IAAA,EAAA;EACe,oBAAA,CAAA,EAAA,YAAA,EAAA;EAQL,SAAA,CAAA,EAAA,MAAA;EAAK;AAGxB;AAOA;;EAGW,SAAA,CAAA,EAAA,MAAA;EACG,SAAA,CAAA,EAAA,CAAA,cAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAR,OAAA,CAAA,EAAA,CAAA,KAAA,EAda,KAcb,EAAA,GAAA,IAAA;CAEE;AAAK,KAbD,iBAAA,GAaC;EAID,cAAA,EAAA,MAAA;EA6CI,SAAA,EAAA,MAAc;iBA3Dd;yBACQ;;KAGZ,oBAAA;oBACO;yBAER,uBACL,QAAQ;;SAEN;;;KAII,qBAAA;WACF;;;;;;iBA4CM,cAAA,WACN,wBACP"}
|
package/use-visitor.d.ts
CHANGED
package/use-visitor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-visitor.d.ts","names":[],"sources":["../../react/src/hooks/use-visitor.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-visitor.d.ts","names":[],"sources":["../../react/src/hooks/use-visitor.ts"],"sourcesContent":[],"mappings":";;;KAQY,gBAAA;WACF;EADE,kBAAA,EAAgB,CAAA,QAAA,EAGhB,eAHgB,EAAA,GAItB,OAJsB,CAId,eAJc,GAAA,IAAA,CAAA;EAClB,QAAA,EAAA,CAAA,MAAA,EAAA;IAEE,UAAA,CAAA,EAAA,MAAA;IACE,KAAA,CAAA,EAAA,MAAA;IAAR,IAAA,CAAA,EAAA,MAAA;IAMO,KAAA,CAAA,EAAA,MAAA;IACN,QAAA,CAAA,EADM,MACN,CAAA,MAAA,EAAA,OAAA,CAAA;EAAO,CAAA,EAAA,GAAP,OAAO,CAAA;IAsBE,SAAU,EAAA,MAAA;;;;;;;;;;;iBAAV,UAAA,CAAA,GAAc"}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shouldDisplayConversation } from "../
|
|
1
|
+
import { shouldDisplayConversation } from "../conversation2.js";
|
|
2
2
|
import { PENDING_CONVERSATION_ID, generateShortPrimaryId } from "../id.js";
|
|
3
3
|
import { useRenderElement } from "../use-render-element.js";
|
|
4
|
-
import "../
|
|
4
|
+
import "../index10.js";
|
|
5
5
|
export { PENDING_CONVERSATION_ID, generateShortPrimaryId, shouldDisplayConversation, useRenderElement };
|
package/visitor.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
|
|
3
|
+
//#region ../types/dist/api/visitor.d.ts
|
|
4
|
+
|
|
5
|
+
//#region src/api/visitor.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Visitor metadata are stored as key value pairs
|
|
8
|
+
* Values can be strings, numbers, booleans, or null
|
|
9
|
+
*/
|
|
10
|
+
declare const visitorMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;
|
|
11
|
+
/**
|
|
12
|
+
* Contact information for identified visitors
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
type VisitorMetadata = z.infer<typeof visitorMetadataSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Visitor data update request schema
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Visitor response schema
|
|
22
|
+
*/
|
|
23
|
+
declare const visitorResponseSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodULID;
|
|
25
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
26
|
+
browserVersion: z.ZodNullable<z.ZodString>;
|
|
27
|
+
os: z.ZodNullable<z.ZodString>;
|
|
28
|
+
osVersion: z.ZodNullable<z.ZodString>;
|
|
29
|
+
device: z.ZodNullable<z.ZodString>;
|
|
30
|
+
deviceType: z.ZodNullable<z.ZodString>;
|
|
31
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
32
|
+
city: z.ZodNullable<z.ZodString>;
|
|
33
|
+
region: z.ZodNullable<z.ZodString>;
|
|
34
|
+
country: z.ZodNullable<z.ZodString>;
|
|
35
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
36
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
language: z.ZodNullable<z.ZodString>;
|
|
39
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
40
|
+
screenResolution: z.ZodNullable<z.ZodString>;
|
|
41
|
+
viewport: z.ZodNullable<z.ZodString>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
45
|
+
websiteId: z.ZodULID;
|
|
46
|
+
organizationId: z.ZodULID;
|
|
47
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
48
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
isBlocked: z.ZodBoolean;
|
|
50
|
+
contact: any;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
type Visitor = z.infer<typeof visitorResponseSchema>;
|
|
53
|
+
type VisitorResponse = Visitor;
|
|
54
|
+
/**
|
|
55
|
+
* Visitor response schema
|
|
56
|
+
*/
|
|
57
|
+
declare const publicVisitorResponseSchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodULID;
|
|
59
|
+
isBlocked: z.ZodBoolean;
|
|
60
|
+
language: z.ZodNullable<z.ZodString>;
|
|
61
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
62
|
+
id: z.ZodULID;
|
|
63
|
+
name: z.ZodNullable<z.ZodString>;
|
|
64
|
+
email: z.ZodNullable<z.ZodString>;
|
|
65
|
+
image: z.ZodNullable<z.ZodString>;
|
|
66
|
+
metadataHash: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
type PublicVisitor = z.infer<typeof publicVisitorResponseSchema>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { PublicVisitor, Visitor, VisitorMetadata, VisitorResponse, publicVisitorResponseSchema, visitorMetadataSchema, visitorResponseSchema };
|
|
72
|
+
//# sourceMappingURL=visitor.d.ts.map
|
package/visitor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visitor.d.ts","names":["z","visitorMetadataSchema","ZodString","ZodNumber","ZodUnion","ZodBoolean","ZodNull","ZodRecord","publicContactResponseSchema","ZodULID","ZodNullable","ZodOptional","core","$strip","ZodObject","PublicContact","infer","VisitorMetadata","updateVisitorRequestSchema","ZodEnum","UpdateVisitorRequest","updateVisitorMetadataRequestSchema","UpdateVisitorMetadataRequest","visitorProfileSchema","visitorResponseSchema","Visitor","VisitorResponse","publicVisitorResponseSchema","PublicVisitor","PublicVisitorResponse"],"sources":["../../types/dist/api/visitor.d.ts"],"sourcesContent":["import { z } from \"@hono/zod-openapi\";\n\n//#region src/api/visitor.d.ts\n\n/**\n * Visitor metadata are stored as key value pairs\n * Values can be strings, numbers, booleans, or null\n */\ndeclare const visitorMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;\n/**\n * Contact information for identified visitors\n */\ndeclare const publicContactResponseSchema: z.ZodObject<{\n id: z.ZodULID;\n name: z.ZodNullable<z.ZodString>;\n email: z.ZodNullable<z.ZodString>;\n image: z.ZodNullable<z.ZodString>;\n metadataHash: z.ZodOptional<z.ZodString>;\n}, z.core.$strip>;\ntype PublicContact = z.infer<typeof publicContactResponseSchema>;\ntype VisitorMetadata = z.infer<typeof visitorMetadataSchema>;\n/**\n * Visitor data update request schema\n */\ndeclare const updateVisitorRequestSchema: z.ZodObject<{\n externalId: z.ZodOptional<z.ZodString>;\n name: z.ZodOptional<z.ZodString>;\n email: z.ZodOptional<z.ZodString>;\n browser: z.ZodOptional<z.ZodString>;\n browserVersion: z.ZodOptional<z.ZodString>;\n os: z.ZodOptional<z.ZodString>;\n osVersion: z.ZodOptional<z.ZodString>;\n device: z.ZodOptional<z.ZodString>;\n deviceType: z.ZodOptional<z.ZodEnum<{\n unknown: \"unknown\";\n desktop: \"desktop\";\n mobile: \"mobile\";\n tablet: \"tablet\";\n }>>;\n ip: z.ZodOptional<z.ZodString>;\n city: z.ZodOptional<z.ZodString>;\n region: z.ZodOptional<z.ZodString>;\n country: z.ZodOptional<z.ZodString>;\n countryCode: z.ZodOptional<z.ZodString>;\n latitude: z.ZodOptional<z.ZodNumber>;\n longitude: z.ZodOptional<z.ZodNumber>;\n language: z.ZodOptional<z.ZodString>;\n timezone: z.ZodOptional<z.ZodString>;\n screenResolution: z.ZodOptional<z.ZodString>;\n viewport: z.ZodOptional<z.ZodString>;\n metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;\n}, z.core.$strip>;\ntype UpdateVisitorRequest = z.infer<typeof updateVisitorRequestSchema>;\ndeclare const updateVisitorMetadataRequestSchema: z.ZodObject<{\n metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;\n}, z.core.$strip>;\ntype UpdateVisitorMetadataRequest = z.infer<typeof updateVisitorMetadataRequestSchema>;\ndeclare const visitorProfileSchema: z.ZodObject<{\n id: z.ZodULID;\n lastSeenAt: z.ZodNullable<z.ZodString>;\n blockedAt: z.ZodNullable<z.ZodString>;\n blockedByUserId: z.ZodNullable<z.ZodString>;\n isBlocked: z.ZodBoolean;\n contact: z.ZodNullable<z.ZodObject<{\n id: z.ZodULID;\n name: z.ZodNullable<z.ZodString>;\n email: z.ZodNullable<z.ZodString>;\n image: z.ZodNullable<z.ZodString>;\n metadataHash: z.ZodOptional<z.ZodString>;\n }, z.core.$strip>>;\n}, z.core.$strip>;\n/**\n * Visitor response schema\n */\ndeclare const visitorResponseSchema: z.ZodObject<{\n id: z.ZodULID;\n browser: z.ZodNullable<z.ZodString>;\n browserVersion: z.ZodNullable<z.ZodString>;\n os: z.ZodNullable<z.ZodString>;\n osVersion: z.ZodNullable<z.ZodString>;\n device: z.ZodNullable<z.ZodString>;\n deviceType: z.ZodNullable<z.ZodString>;\n ip: z.ZodNullable<z.ZodString>;\n city: z.ZodNullable<z.ZodString>;\n region: z.ZodNullable<z.ZodString>;\n country: z.ZodNullable<z.ZodString>;\n countryCode: z.ZodNullable<z.ZodString>;\n latitude: z.ZodNullable<z.ZodNumber>;\n longitude: z.ZodNullable<z.ZodNumber>;\n language: z.ZodNullable<z.ZodString>;\n timezone: z.ZodNullable<z.ZodString>;\n screenResolution: z.ZodNullable<z.ZodString>;\n viewport: z.ZodNullable<z.ZodString>;\n createdAt: z.ZodString;\n updatedAt: z.ZodString;\n lastSeenAt: z.ZodNullable<z.ZodString>;\n websiteId: z.ZodULID;\n organizationId: z.ZodULID;\n blockedAt: z.ZodNullable<z.ZodString>;\n blockedByUserId: z.ZodNullable<z.ZodString>;\n isBlocked: z.ZodBoolean;\n contact: any;\n}, z.core.$strip>;\ntype Visitor = z.infer<typeof visitorResponseSchema>;\ntype VisitorResponse = Visitor;\n/**\n * Visitor response schema\n */\ndeclare const publicVisitorResponseSchema: z.ZodObject<{\n id: z.ZodULID;\n isBlocked: z.ZodBoolean;\n language: z.ZodNullable<z.ZodString>;\n contact: z.ZodNullable<z.ZodObject<{\n id: z.ZodULID;\n name: z.ZodNullable<z.ZodString>;\n email: z.ZodNullable<z.ZodString>;\n image: z.ZodNullable<z.ZodString>;\n metadataHash: z.ZodOptional<z.ZodString>;\n }, z.core.$strip>>;\n}, z.core.$strip>;\ntype PublicVisitor = z.infer<typeof publicVisitorResponseSchema>;\ntype PublicVisitorResponse = PublicVisitor;\n//#endregion\nexport { PublicContact, PublicVisitor, PublicVisitorResponse, UpdateVisitorMetadataRequest, UpdateVisitorRequest, Visitor, VisitorMetadata, VisitorResponse, publicContactResponseSchema, publicVisitorResponseSchema, updateVisitorMetadataRequestSchema, updateVisitorRequestSchema, visitorMetadataSchema, visitorProfileSchema, visitorResponseSchema };\n//# sourceMappingURL=visitor.d.ts.map"],"mappings":"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"}
|
package/website.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
|
|
3
|
+
//#region ../types/dist/api/website.d.ts
|
|
4
|
+
|
|
5
|
+
declare const availableHumanAgentSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodULID;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
image: z.ZodNullable<z.ZodString>;
|
|
9
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const AvailableAIAgentSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodULID;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
image: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
/**
|
|
17
|
+
* Website information response schema
|
|
18
|
+
*/
|
|
19
|
+
declare const publicWebsiteResponseSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodULID;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
domain: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
25
|
+
organizationId: z.ZodULID;
|
|
26
|
+
status: z.ZodString;
|
|
27
|
+
lastOnlineAt: z.ZodNullable<z.ZodString>;
|
|
28
|
+
availableHumanAgents: z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodULID;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
image: z.ZodNullable<z.ZodString>;
|
|
32
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
availableAIAgents: z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodULID;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
image: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
visitor: any;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
type PublicWebsiteResponse = z.infer<typeof publicWebsiteResponseSchema>;
|
|
42
|
+
type AvailableHumanAgent = z.infer<typeof availableHumanAgentSchema>;
|
|
43
|
+
type AvailableAIAgent = z.infer<typeof AvailableAIAgentSchema>;
|
|
44
|
+
/**
|
|
45
|
+
* List websites by organization request schema
|
|
46
|
+
*/
|
|
47
|
+
//#endregion
|
|
48
|
+
export { AvailableAIAgent, AvailableAIAgentSchema, AvailableHumanAgent, PublicWebsiteResponse, availableHumanAgentSchema, publicWebsiteResponseSchema };
|
|
49
|
+
//# sourceMappingURL=website.d.ts.map
|