@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.
Files changed (108) hide show
  1. package/conversation-timeline.d.ts +2 -1
  2. package/conversation-timeline.d.ts.map +1 -1
  3. package/conversation.d.ts +47 -3
  4. package/conversation.d.ts.map +1 -1
  5. package/conversation2.d.ts +7 -0
  6. package/conversation2.d.ts.map +1 -0
  7. package/enums.d.ts +11 -0
  8. package/enums.d.ts.map +1 -0
  9. package/hooks/index.d.ts +1 -1
  10. package/identify-visitor2.d.ts +1 -0
  11. package/identify-visitor2.d.ts.map +1 -1
  12. package/index.d.ts +3 -3
  13. package/index10.d.ts +3 -0
  14. package/index2.d.ts +19 -24
  15. package/index2.d.ts.map +1 -0
  16. package/index2.parts.d.ts +2 -2
  17. package/index3.d.ts +24 -4
  18. package/index4.d.ts +1 -10
  19. package/index5.d.ts +13 -5
  20. package/index6.d.ts +5 -2
  21. package/index7.d.ts +2 -37
  22. package/index8.d.ts +1 -3
  23. package/index9.d.ts +39 -0
  24. package/index9.d.ts.map +1 -0
  25. package/keys.d.ts +2 -0
  26. package/keys.d.ts.map +1 -1
  27. package/package.json +3 -2
  28. package/primitives/index.d.ts +2 -2
  29. package/provider2.d.ts +3 -0
  30. package/provider2.d.ts.map +1 -1
  31. package/provider3.d.ts +1 -0
  32. package/provider3.d.ts.map +1 -1
  33. package/realtime/index.d.ts +1 -1
  34. package/realtime-events.d.ts +126 -0
  35. package/realtime-events.d.ts.map +1 -0
  36. package/schemas.d.ts +34 -0
  37. package/schemas.d.ts.map +1 -0
  38. package/seen-store.d.ts +4 -0
  39. package/seen-store.d.ts.map +1 -1
  40. package/support/index.d.ts +1 -1
  41. package/support-config2.d.ts +1 -0
  42. package/support-config2.d.ts.map +1 -1
  43. package/support-store.d.ts +4 -15
  44. package/support-store.d.ts.map +1 -1
  45. package/support.css +1 -1
  46. package/tailwind.css +404 -0
  47. package/timeline-item-group.d.ts +3 -1
  48. package/timeline-item-group.d.ts.map +1 -1
  49. package/timeline-item.d.ts +107 -50
  50. package/timeline-item.d.ts.map +1 -1
  51. package/timeline-item2.d.ts +55 -0
  52. package/timeline-item2.d.ts.map +1 -0
  53. package/typing-indicator.d.ts +1 -0
  54. package/typing-indicator.d.ts.map +1 -1
  55. package/typing-store.d.ts +3 -0
  56. package/typing-store.d.ts.map +1 -1
  57. package/typing.d.ts +2 -1
  58. package/typing.d.ts.map +1 -1
  59. package/use-client-query.d.ts +2 -0
  60. package/use-client-query.d.ts.map +1 -1
  61. package/use-conversation-auto-seen.d.ts +3 -1
  62. package/use-conversation-auto-seen.d.ts.map +1 -1
  63. package/use-conversation-history-page.d.ts +2 -0
  64. package/use-conversation-history-page.d.ts.map +1 -1
  65. package/use-conversation-page.d.ts +2 -0
  66. package/use-conversation-page.d.ts.map +1 -1
  67. package/use-conversation-preview.d.ts +2 -0
  68. package/use-conversation-preview.d.ts.map +1 -1
  69. package/use-conversation-seen.d.ts +2 -0
  70. package/use-conversation-seen.d.ts.map +1 -1
  71. package/use-conversation-timeline-items.d.ts +3 -1
  72. package/use-conversation-timeline-items.d.ts.map +1 -1
  73. package/use-conversation-timeline.d.ts +1 -0
  74. package/use-conversation-timeline.d.ts.map +1 -1
  75. package/use-conversation-typing.d.ts +2 -0
  76. package/use-conversation-typing.d.ts.map +1 -1
  77. package/use-conversation.d.ts +2 -0
  78. package/use-conversation.d.ts.map +1 -1
  79. package/use-conversations.d.ts +3 -1
  80. package/use-conversations.d.ts.map +1 -1
  81. package/use-create-conversation.d.ts +5 -1
  82. package/use-create-conversation.d.ts.map +1 -1
  83. package/use-default-messages.d.ts +2 -0
  84. package/use-default-messages.d.ts.map +1 -1
  85. package/use-grouped-messages.d.ts +4 -1
  86. package/use-grouped-messages.d.ts.map +1 -1
  87. package/use-home-page.d.ts +2 -0
  88. package/use-home-page.d.ts.map +1 -1
  89. package/use-message-composer.d.ts +2 -0
  90. package/use-message-composer.d.ts.map +1 -1
  91. package/use-realtime-support.d.ts +2 -0
  92. package/use-realtime-support.d.ts.map +1 -1
  93. package/use-realtime.d.ts +1 -0
  94. package/use-realtime.d.ts.map +1 -1
  95. package/use-rest-client.d.ts +2 -0
  96. package/use-rest-client.d.ts.map +1 -1
  97. package/use-send-message.d.ts +4 -1
  98. package/use-send-message.d.ts.map +1 -1
  99. package/use-visitor.d.ts +2 -0
  100. package/use-visitor.d.ts.map +1 -1
  101. package/utils/index.d.ts +2 -2
  102. package/visitor.d.ts +72 -0
  103. package/visitor.d.ts.map +1 -0
  104. package/website.d.ts +49 -0
  105. package/website.d.ts.map +1 -0
  106. package/websocket.d.ts +2 -1
  107. package/websocket.d.ts.map +1 -1
  108. 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"}
@@ -1,3 +1,4 @@
1
+ import { AvailableAIAgent, AvailableHumanAgent } from "./website.js";
1
2
  import * as React$1 from "react";
2
3
 
3
4
  //#region ../react/src/support/components/typing-indicator.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"typing-indicator.d.ts","names":[],"sources":["../../react/src/support/components/typing-indicator.tsx"],"sourcesContent":[],"mappings":";;;KAKY,qBAAA;AAAA,KAEA,iBAAA,GAFqB;EAErB,EAAA,EAAA,MAAA;EAKA,IAAA,EAHL,qBAGyB;CAAwB;AAArB,KAAvB,oBAAA,GAAuB,OAAA,CAAM,cAAA,CAAe,cAAf,CAAA,GAAA;EAC1B,YAAA,EAAA,iBAAA,EAAA;EACM,iBAAA,CAAA,EAAA,gBAAA,EAAA;EACG,oBAAA,CAAA,EAAA,mBAAA,EAAA;EAAmB,WAAA,CAAA,EAAA,OAAA;AA+B3C,CAAA;AAhCqB,cAgCR,eAhCQ,EAgCO,OAAA,CAAA,yBAhCP,CAgCO,OAAA,CAAA,cAhCP,CAgCO,cAhCP,CAAA,GAAA;EACG,YAAA,EAFT,iBAES,EAAA;sBADH;yBACG;EA+BI,WAAA,CAAA,EAAA,OAAA;CAAA,wBAAA,eAAA,CAAA,CAAA"}
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
@@ -1,3 +1,6 @@
1
+ import { RealtimeEvent } from "./realtime-events.js";
2
+ import { TypingActorType } from "@cossistant/core";
3
+
1
4
  //#region ../react/src/realtime/typing-store.d.ts
2
5
 
3
6
  /**
@@ -1 +1 @@
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"}
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
@@ -1,5 +1,6 @@
1
- //#region ../react/src/hooks/private/typing.d.ts
1
+ import { TypingEntry } from "@cossistant/core";
2
2
 
3
+ //#region ../react/src/hooks/private/typing.d.ts
3
4
  type TimelineTypingParticipant = {
4
5
  id: string;
5
6
  type: "team_member" | "ai";
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":";;KAIY,yBAAA;;;;KAKA,wBAAA,GAA2B"}
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"}
@@ -1,3 +1,5 @@
1
+ import { CossistantClient } from "@cossistant/core";
2
+
1
3
  //#region ../react/src/hooks/private/use-client-query.d.ts
2
4
  type QueryFn<TData, TArgs> = (client: CossistantClient, args?: TArgs | undefined) => Promise<TData>;
3
5
  type UseClientQueryOptions<TData, TArgs> = {
@@ -1 +1 @@
1
- {"version":3,"file":"use-client-query.d.ts","names":[],"sources":["../../react/src/hooks/private/use-client-query.ts"],"sourcesContent":[],"mappings":";AAAyD,KAGpD,OAAA,CAAA,KAAO,EAAA,KAAA,CAAA,GAAA,CAAA,MAAA,EACH,gBADG,EAAA,IAAA,CAAA,EAEJ,KAFI,GAAA,SAAA,EAAA,GAGP,OAHO,CAGC,KAHD,CAAA;KAKP,qBAJI,CAAA,KAAA,EAAA,KAAA,CAAA,GAAA;EACD,MAAA,EAIC,gBAJD;EACK,OAAA,EAIH,OAJG,CAIK,KAJL,EAIY,KAJZ,CAAA;EAAR,OAAA,CAAA,EAAA,OAAA;EAAO,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAEP,oBAAA,CAAA,EAAA,OAAqB;EACjB,cAAA,CAAA,EAAA,OAAA;EACS,WAAA,CAAA,EAKH,KALG;EAAO,WAAA,CAAA,EAMV,KANU;EAAf,YAAA,CAAA,EAAA,SAAA,OAAA,EAAA;CAKK;KAKV,oBAJU,CAAA,KAAA,EAAA,KAAA,CAAA,GAAA;EAAK,IAAA,EAKb,KALa,GAAA,SAAA;EAIf,KAAA,EAEG,KAFH,GAAA,IAAA;EACE,SAAA,EAAA,OAAA;EACC,OAAA,EAAA,CAAA,IAAA,CAAA,EAEU,KAFV,EAAA,GAEoB,OAFpB,CAE4B,KAF5B,GAAA,SAAA,CAAA;CAEU;;;;AAkBlB;;AACuC,iBADvB,cACuB,CAAA,KAAA,EAAA,QAAA,IAAA,CAAA,CAAA,OAAA,EAA7B,qBAA6B,CAAP,KAAO,EAAA,KAAA,CAAA,CAAA,EACpC,oBADoC,CACf,KADe,EACR,KADQ,CAAA"}
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
- //#region ../react/src/hooks/use-conversation-auto-seen.d.ts
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":";;AAWY,cAFC,+BAAA,GAMJ,IAAA;AAwDO,KA5DJ,8BAAA,GA6DF;;;;UAzDD;;;;;;;;;;;;;oBAgBU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,uBAAA,UACN"}
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,3 +1,5 @@
1
+ import { Conversation } from "./schemas.js";
2
+
1
3
  //#region ../react/src/hooks/use-conversation-history-page.d.ts
2
4
  type UseConversationHistoryPageOptions = {
3
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-history-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-history-page.ts"],"sourcesContent":[],"mappings":";AAKY,KAAA,iCAAA,GAAiC;EAwBjC;;;;EAOuB,mBAAA,CAAA,EAAA,MAAA;EA0DnB;;;;;;;;;;;;;;KAjEJ,gCAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DP,0BAAA,WACN,oCACP"}
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,3 +1,5 @@
1
+ import { TimelineItem } from "./timeline-item.js";
2
+
1
3
  //#region ../react/src/hooks/use-conversation-page.d.ts
2
4
  type UseConversationPageOptions = {
3
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-page.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-page.ts"],"sourcesContent":[],"mappings":";AAaY,KAAA,0BAAA,GAA0B;EA+B1B;;;;EAeQ,cAAA,EAAA,MAAA;EAOD;;AAuCnB;;;;;;;;;;UAvES;;;;;;;;KAUG,yBAAA;;;SAIJ;;SAEA;;;WAKC;;;;sBAIW;;;;;oBAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCH,mBAAA,UACN,6BACP"}
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,3 +1,5 @@
1
+ import { TimelineItem } from "./timeline-item.js";
2
+ import { Conversation } from "./schemas.js";
1
3
  import { PreviewTypingParticipant } from "./typing.js";
2
4
  import { useConversationTimelineItems } from "./use-conversation-timeline-items.js";
3
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-preview.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-preview.ts"],"sourcesContent":[],"mappings":";;;;AAcY,KAAA,8BAAA,GAA8B;EAQ9B,OAAA,EAAA,MAAA;EAMA,IAAA,EAAA,MAAA;EAEA,aAAA,EAAA,OAAA;EAOA,UAAA,CAAA,EAAA,MAAA;EAqBA,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CACG;AAED,KAvCF,gCAAA,GAuCE;EACE,IAAA,EAAA,MAAA;EACP,KAAA,EAAA,MAAA,GAAA,IAAA;EACoB,IAAA,EAAA,OAAA,GAAA,IAAA,GAAA,UAAA;CAAlB;AAAU,KApCT,oCAAA,GAAuC,wBAoC9B;AA0BL,KA5DJ,8BAAA,GA6DF;gBA5DK;sBACM;;;;KAKT,6BAAA;gBACG;;;;;;;;;yBASS;;;;;;;;;;KAWZ,4BAAA;gBACG;;eAED;iBACE;UACP;YACE,kBAAkB;;;;;;iBA0Bb,sBAAA,UACN,gCACP"}
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,3 +1,5 @@
1
+ import { ConversationSeen } from "./schemas.js";
2
+
1
3
  //#region ../react/src/hooks/use-conversation-seen.d.ts
2
4
  type UseConversationSeenOptions = {
3
5
  initialData?: ConversationSeen[];
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-seen.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-seen.ts"],"sourcesContent":[],"mappings":";AAAkE,KAI7D,0BAAA,GAA0B;EAgBf,WAAA,CAAA,EAfD,gBAeoB,EAAA;AAwDnC,CAAA;;;;;iBAxDgB,mBAAA,sDAEN,6BACP;;;;;;;iBAqDa,4BAAA,sDAEN,6CAEP"}
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
- //#region ../react/src/hooks/use-conversation-timeline-items.d.ts
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":";;AA4BY,KARA,mCAAA,GAQkC;EAC7C,KAAA,CAAA,EAAA,MAAA;EAEQ,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAEM,OAAA,CAAA,EAAA,OAAA;EAAL,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EACK,oBAAA,CAAA,EAAA,OAAA;CAAR;AAEJ,KARS,kCAAA,GACX,8BAOE,GAAA;EADoB,SAAA,EAAA,OAAA;EAAO,KAAA,EAJrB,KAIqB,GAAA,IAAA;EASd,OAAA,EAAA,CAAA,IAEN,CAFM,EAXN,IAWM,CAXD,mCAaL,EAAA,QAAA,GAAA,OAAA,CAAA,EAAA,GAZH,OAaJ,CAbY,oCAasB,GAAA,SAAA,CAAA;uBAZd,QACpB;;;;;;iBAQa,4BAAA,sDAEN,sCACP"}
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,3 +1,4 @@
1
+ import { TimelineItem } from "./timeline-item.js";
1
2
  import { useGroupedMessages } from "./use-grouped-messages.js";
2
3
  import { TimelineTypingParticipant } from "./typing.js";
3
4
  import { useDebouncedConversationSeen } from "./use-conversation-seen.js";
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-timeline.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-timeline.ts"],"sourcesContent":[],"mappings":";;;;;;KAYY,qCAAA,GAAwC;AAAxC,KAEA,8BAAA,GAFqC;EAErC,cAAA,EAAA,MAAA;EAMA,KAAA,EAJJ,YAII,EAAA;EACwB,gBAAA,CAAA,EAAA,MAAA;CAAlB;AACW,KAFjB,6BAAA,GAEiB;EAAlB,eAAA,EADO,UACP,CAAA,OADyB,kBACzB,CAAA;EACuB,QAAA,EADvB,UACuB,CAAA,OADL,4BACK,CAAA;EAAlB,aAAA,EAAA,UAAA,CAAA,OAAkB,qBAAlB,CAAA;EACK,kBAAA,EAAA,qCAAA,EAAA;EAAqC,4BAAA,EAAA,MAAA;AAQ1D,CAAA;;;;;AAIoC,iBAJpB,uBAAA,CAIoB;EAAA,cAAA;EAAA,KAAA,EAF5B,aAE4B;EAAA;AAAA,CAAA,EAAjC,8BAAiC,CAAA,EAAA,6BAAA"}
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,3 +1,5 @@
1
+ import { TypingEntry } from "@cossistant/core";
2
+
1
3
  //#region ../react/src/hooks/use-conversation-typing.d.ts
2
4
  type ConversationTypingParticipant = TypingEntry;
3
5
  type UseConversationTypingOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation-typing.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation-typing.ts"],"sourcesContent":[],"mappings":";AAIY,KAAA,6BAAA,GAAgC,WAAA;AAAY,KAEnD,4BAAA,GAA4B;EA6BjB,gBAAA,CAAA,EAAA,MAAqB,GAAA,IAAA;;;;;;;;iBAArB,qBAAA,sDAEN,+BACP"}
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"}
@@ -1,3 +1,5 @@
1
+ import { GetConversationRequest, GetConversationResponse } from "./conversation.js";
2
+
1
3
  //#region ../react/src/hooks/use-conversation.d.ts
2
4
  type UseConversationOptions = {
3
5
  enabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"use-conversation.d.ts","names":[],"sources":["../../react/src/hooks/use-conversation.ts"],"sourcesContent":[],"mappings":";AAQY,KAAA,sBAAA,GAAsB;EAMtB,OAAA,CAAA,EAAA,OAAA;EACG,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAEP,oBAAA,CAAA,EAAA,OAAA;CAEC;AACK,KANF,qBAAA,GAME;EAAR,YAAA,EALS,uBAKT,CAAA,cAAA,CAAA,GAAA,IAAA;EAAO,SAAA,EAAA,OAAA;EAcG,KAAA,EAjBR,KAiBQ,GAAA,IAAe;mBAftB,2BACH,QAAQ;;;;;;;;;;;;;iBAcE,eAAA,0CAEN,yBACP"}
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"}
@@ -1,5 +1,7 @@
1
- //#region ../react/src/hooks/use-conversations.d.ts
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":";;AA2CM,KADM,uBAAA,GAA0B,OAChC,CAAL,IAAK,CAAA,wBAAA,EAAA,WAAA,CAAA,CAAA,GAAA;EAAL,OAAA,CAAA,EAAA,OAAA;EADqC,eAAA,CAAA,EAAA,MAAA,GAAA,KAAA;EAAO,oBAAA,CAAA,EAAA,OAAA;AAQ7C,CAAA;AACgB,KADJ,sBAAA,GACI;EACH,aAAA,EADG,yBACH,CAAA,eAAA,CAAA;EAEL,UAAA,EAFK,sBAEL,GAAA,IAAA;EAES,SAAA,EAAA,OAAA;EAAR,KAAA,EAFD,KAEC,GAAA,IAAA;EACK,OAAA,EAAA,CAAA,IAAA,CAAA,EADL,OACK,CADG,wBACH,CAAA,EAAA,GAAR,OAAQ,CAAA,yBAAA,GAAA,SAAA,CAAA;CAAR;;AAeN;;;;;;;;;;;iBAAgB,gBAAA,WACN,0BACP"}
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
- //#region ../react/src/hooks/use-create-conversation.d.ts
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":";;AAUmB,KAHP,4BAAA,GAGO;EAAK,MAAA,CAAA,EAFd,gBAEc;EAGZ,SAAA,CAAA,EAAA,CAAA,IAAA,EAJQ,8BAMI,EAAA,GAAA,IAGd;EAIE,OAAA,CAAA,EAAA,CAAA,KAAA,EAZO,KAYP,EAAA,GAAA,IAA2B;CACjB;AAER,KAZF,2BAAA,GAYE;EACA,cAAA,CAAA,EAAA,MAAA;EAAR,oBAAA,CAAA,EAXkB,YAWlB,EAAA;EAEE,SAAA,CAAA,EAAA,MAAA;EAAK,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAqBG,MAAA,CAAA,EA/BN,YA+BM,CAAA,QAAqB,CAAA;;;KA3BzB,2BAAA;uBACU;4BAER,gCACR,QAAQ;;SAEN;;;;;;;;iBAqBQ,qBAAA,WACN,+BACP"}
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,3 +1,5 @@
1
+ import { TimelineItem } from "./timeline-item.js";
2
+
1
3
  //#region ../react/src/hooks/private/use-default-messages.d.ts
2
4
  type UseDefaultMessagesParams = {
3
5
  conversationId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-default-messages.d.ts","names":[],"sources":["../../react/src/hooks/private/use-default-messages.ts"],"sourcesContent":[],"mappings":";AAEwE,KAInE,wBAAA,GAAwB;EAUb,cAAA,EAAA,MAAkB;CACjC;;;;;;;iBADe,kBAAA;;GAEb,2BAA2B"}
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
- //#region ../react/src/hooks/private/use-grouped-messages.d.ts
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":";;AASQ,KAJI,cAAA,GAIJ;EAGW,IAAA,EAAA,eAAA;EACD,QAAA,EAAA,MAAA;EAAI,UAAA,EALT,UAKS;EAGV,KAAA,EAPJ,YAOI,EAAiB;EAMjB,cAAA,EAAA,MAAgB;EAOhB,aAAA,EAAA,MAAgB;EACzB,gBAAA,EAlBgB,IAkBhB;EACA,eAAA,EAlBe,IAkBf;CACA;AAAgB,KAhBP,iBAAA,GAgBO;EAEP,IAAA,EAAA,gBAAA;EACJ,IAAA,EAjBD,YAiBC;EACI,SAAA,EAjBA,IAiBA;CAEE;AAAU,KAhBZ,gBAAA,GAgBY;EAGZ,IAAA,EAAA,eAAA;EAwNC,IAAA,EAzON,YAyOM;EAAsB,IAAA,EAAA,MAAA,GAAA,IAAA;EAAA,SAAA,EAvOvB,IAuOuB;CAAA;AAAA,KApOvB,gBAAA,GACT,cAmOgC,GAlOhC,iBAkOgC,GAjOhC,gBAiOgC;AAKhC,KApOS,yBAAA,GAoOT;SAnOK;aACI;;eAEE;;KAGF,uBAAA,GAA0B;;;;;;;cAwNzB;;;;;GAKV"}
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"}
@@ -1,3 +1,5 @@
1
+ import { Conversation } from "./schemas.js";
2
+
1
3
  //#region ../react/src/hooks/use-home-page.d.ts
2
4
  type UseHomePageOptions = {
3
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"use-home-page.d.ts","names":[],"sources":["../../react/src/hooks/use-home-page.ts"],"sourcesContent":[],"mappings":";AAKY,KAAA,kBAAA,GAAkB;EAuBlB;;;;EAOuB,OAAA,CAAA,EAAA,OAAA;EAuDnB;;;;;;;;;;;;;KA9DJ,iBAAA;iBAEI;;SAER;wBAGe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuDP,WAAA,WACN,qBACP"}
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":";;;AAUY,KAAA,yBAAA,GAAyB;EAI5B;;;EAkCP,MAAA,EAlCO,gBAkCP;EADa;;AAMf;;EAIQ,cAAA,EAAA,MAAA,GAAA,IAAA;EAQW;;AAwCnB;yBAhFwB;;;;;;;;;;;;;;oBAiBL;;;;gBAKJ,KACb;;KAKU,wBAAA;;SAGJ;SACA;;;;oBAQW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCH,kBAAA,UACN,4BACP"}
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,3 +1,5 @@
1
+ import { AnyRealtimeEvent } from "./realtime-events.js";
2
+
1
3
  //#region ../react/src/hooks/use-realtime-support.d.ts
2
4
  type UseRealtimeSupportOptions = {
3
5
  onEvent?: (event: AnyRealtimeEvent) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-realtime-support.d.ts","names":[],"sources":["../../react/src/hooks/use-realtime-support.ts"],"sourcesContent":[],"mappings":";AAIY,KAAA,yBAAA,GAAyB;EAIzB,OAAA,CAAA,EAAA,CAAA,KAAA,EAHO,gBAGiB,EAAA,GAAA,IAAA;CAG5B;AACO,KAJH,wBAAA,GAIG;EACH,WAAA,EAAA,OAAA;EAEE,YAAA,EAAA,OAAA;EACgB,KAAA,EALtB,KAKsB,GAAA,IAAA;EAAgB,IAAA,EAAA,CAAA,KAAA,EAJ/B,gBAI+B,EAAA,GAAA,IAAA;EAQ9B,SAAA,EAXJ,gBAWsB,GAAA,IACxB;;eAVI;+BACgB;;;;;;;iBAQd,kBAAA,WACN,4BACP"}
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
@@ -1,3 +1,4 @@
1
+ import { RealtimeEvent, RealtimeEventData, RealtimeEventType } from "./realtime-events.js";
1
2
  import { RealtimeContextValue } from "./provider3.js";
2
3
 
3
4
  //#region ../react/src/realtime/use-realtime.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"use-realtime.d.ts","names":[],"sources":["../../react/src/realtime/use-realtime.ts"],"sourcesContent":[],"mappings":";;;KAUY,mCAAmC;KAEnC,kCAAgC;EAFhC,KAAA,EAGJ,aAHI,CAGU,OAHY,CAAA;EAEtB,OAAA,EAEF,sBAFmB,CAEI,QAFJ,CAAA;CAAe;AACtB,KAIV,oBAJU,CAAA,gBAIyB,iBAJzB,EAAA,QAAA,CAAA,GAAA,CAAA,IAAA,EAKf,iBALe,CAKG,OALH,CAAA,EAAA,IAAA,EAMf,iBANe,CAMG,OANH,EAMU,QANV,CAAA,EAAA,GAAA,IAAA,GAOV,OAPU,CAAA,IAAA,CAAA;AAAd,KASI,yBATJ,CAAA,gBAUO,iBAVP,EAAA,QAAA,CAAA,GAaL,oBAbK,CAagB,OAbhB,EAauB,QAbvB,CAAA,GAcL,oBAdK,CAcgB,OAdhB,EAcuB,QAdvB,CAAA,EAAA;AACyB,KAerB,wBAfqB,CAAA,QAAA,CAAA,GAegB,OAfhB,CAAA,YAgBtB,iBAhBD,GAgBqB,yBAhBrB,CAgB+C,KAhB/C,EAgBsD,QAhBtD,CAAA,EAAsB,CAAA;AAGhC,KAgBK,kBAhBO,CAAA,QAAoB,EAAA,kBAkBb,wBAlBa,CAkBY,QAlBZ,CAAA,CAAA,GAAA;EAAe,MAAA,EAoBtC,SApBsC;EACtB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAAlB,SAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EACkB,OAAA,CAAA,EAqBd,QArBc;EAAO,YAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAwBvB,aAxBuB,CAwBT,iBAxBS,CAAA,EAAA,GAAA,IAAA;CAAzB;;;AAGP;;AAIwB,iBAyBR,WAzBQ,CAAA,WAAA,IAAA,EAAA,kBA4BtB,wBA5BsB,CA4BG,QA5BH,CAAA,GA4Be,wBA5Bf,CA4BwC,QA5BxC,CAAA,CAAA,CAAA;EAAA,MAAA;EAAA,SAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAmCrB,kBAnCqB,CAmCF,QAnCE,EAmCQ,SAnCR,CAAA,CAAA,EAmCH,oBAnCG"}
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"}
@@ -1,3 +1,5 @@
1
+ import { CossistantClient } from "@cossistant/core";
2
+
1
3
  //#region ../react/src/hooks/private/use-rest-client.d.ts
2
4
  type UseClientResult = {
3
5
  client: CossistantClient;
@@ -1 +1 @@
1
- {"version":3,"file":"use-rest-client.d.ts","names":[],"sources":["../../react/src/hooks/private/use-rest-client.ts"],"sourcesContent":[],"mappings":";AAMY,KAAA,eAAA,GAAe;EAWX,MAAA,EAVP,gBAUgB;SATjB;;;;;;;;iBASQ,SAAA,kEAIb"}
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"}
@@ -1,5 +1,8 @@
1
- //#region ../react/src/hooks/use-send-message.d.ts
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":";;AAYwB,KAJZ,kBAAA,GAIY;EAQL,cAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAAK,OAAA,EAAA,MAAA;EAGZ,KAAA,CAAA,EAZH,IAYG,EAAA;EAOA,oBAAA,CAAA,EAlBY,YAkBQ,EAAA;EACb,SAAA,CAAA,EAAA,MAAA;EAER;;;;EAGE,SAAA,CAAA,EAAA,MAAA;EAID,SAAA,CAAA,EAAA,CAAA,cAAqB,EAAA,MAAA,EACvB,SAAA,EAAA,MAAgB,EAAA,GAAA,IAAA;EA4CV,OAAA,CAAA,EAAA,CAAA,KAAA,EAjEG,KAiEW,EAAA,GAAA,IACpB;;KA/DE,iBAAA;;;iBAGI;yBACQ;;KAGZ,oBAAA;oBACO;yBAER,uBACL,QAAQ;;SAEN;;;KAII,qBAAA;WACF;;;;;;iBA4CM,cAAA,WACN,wBACP"}
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
@@ -1,3 +1,5 @@
1
+ import { PublicVisitor, VisitorMetadata, VisitorResponse } from "./visitor.js";
2
+
1
3
  //#region ../react/src/hooks/use-visitor.d.ts
2
4
  type UseVisitorReturn = {
3
5
  visitor: PublicVisitor | null;
@@ -1 +1 @@
1
- {"version":3,"file":"use-visitor.d.ts","names":[],"sources":["../../react/src/hooks/use-visitor.ts"],"sourcesContent":[],"mappings":";AAQY,KAAA,gBAAA,GAAgB;EAClB,OAAA,EAAA,aAAA,GAAA,IAAA;EAEE,kBAAA,EAAA,CAAA,QAAA,EAAA,eAAA,EAAA,GACN,OADM,CACE,eADF,GAAA,IAAA,CAAA;EACE,QAAA,EAAA,CAAA,MAAA,EAAA;IAAR,UAAA,CAAA,EAAA,MAAA;IAMO,KAAA,CAAA,EAAA,MAAA;IACN,IAAA,CAAA,EAAA,MAAA;IAAO,KAAA,CAAA,EAAA,MAAA;IAsBE,QAAA,CAAU,EAvBb,MAuBa,CAAA,MAAI,EAAA,OAAA,CAAA;QAtBvB;;;;;;;;;;;;iBAsBS,UAAA,CAAA,GAAc"}
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 "../conversation.js";
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 "../index8.js";
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
@@ -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