@cossistant/react 0.0.28 → 0.0.30
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/README.md +1 -1
- package/_virtual/rolldown_runtime.js +9 -23
- package/hooks/index.d.ts +3 -3
- package/hooks/private/store/use-conversations-store.d.ts +2 -0
- package/hooks/private/store/use-conversations-store.d.ts.map +1 -1
- package/hooks/private/store/use-conversations-store.js +15 -8
- package/hooks/private/store/use-conversations-store.js.map +1 -1
- package/hooks/private/store/use-store-selector.d.ts +3 -0
- package/hooks/private/store/use-store-selector.d.ts.map +1 -1
- package/hooks/private/store/use-store-selector.js +4 -8
- package/hooks/private/store/use-store-selector.js.map +1 -1
- package/hooks/private/store/use-website-store.d.ts +3 -1
- package/hooks/private/store/use-website-store.d.ts.map +1 -1
- package/hooks/private/store/use-website-store.js +14 -6
- package/hooks/private/store/use-website-store.js.map +1 -1
- package/hooks/private/use-client-query.d.ts +1 -1
- package/hooks/private/use-client-query.d.ts.map +1 -1
- package/hooks/private/use-client-query.js +1 -0
- package/hooks/private/use-client-query.js.map +1 -1
- package/hooks/private/use-default-messages.d.ts +1 -1
- package/hooks/private/use-grouped-messages.d.ts +10 -7
- package/hooks/private/use-grouped-messages.d.ts.map +1 -1
- package/hooks/private/use-grouped-messages.js +44 -11
- package/hooks/private/use-grouped-messages.js.map +1 -1
- package/hooks/private/use-rest-client.d.ts +13 -3
- package/hooks/private/use-rest-client.d.ts.map +1 -1
- package/hooks/private/use-rest-client.js +49 -22
- package/hooks/private/use-rest-client.js.map +1 -1
- package/hooks/private/use-visitor-typing-reporter.d.ts +1 -1
- package/hooks/use-conversation-auto-seen.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts.map +1 -1
- package/hooks/use-conversation-page.js +10 -3
- package/hooks/use-conversation-page.js.map +1 -1
- package/hooks/use-conversation-preview.d.ts +3 -1
- package/hooks/use-conversation-preview.d.ts.map +1 -1
- package/hooks/use-conversation-preview.js +6 -3
- package/hooks/use-conversation-preview.js.map +1 -1
- package/hooks/use-conversation-seen.d.ts +1 -1
- package/hooks/use-conversation-seen.js +1 -1
- package/hooks/use-conversation-seen.js.map +1 -1
- package/hooks/use-conversation-timeline-items.d.ts +1 -1
- package/hooks/use-conversation-timeline-items.js +2 -3
- package/hooks/use-conversation-timeline-items.js.map +1 -1
- package/hooks/use-conversation-timeline.d.ts +1 -1
- package/hooks/use-conversation-timeline.d.ts.map +1 -1
- package/hooks/use-conversation-timeline.js +1 -3
- package/hooks/use-conversation-timeline.js.map +1 -1
- package/hooks/use-conversation.d.ts +1 -1
- package/hooks/use-conversation.js +2 -3
- package/hooks/use-conversation.js.map +1 -1
- package/hooks/use-conversations.d.ts +1 -1
- package/hooks/use-conversations.js +5 -3
- package/hooks/use-conversations.js.map +1 -1
- package/hooks/use-create-conversation.d.ts +3 -3
- package/hooks/use-create-conversation.js +1 -0
- package/hooks/use-create-conversation.js.map +1 -1
- package/hooks/use-file-upload.d.ts +1 -1
- package/hooks/use-file-upload.js +3 -3
- package/hooks/use-file-upload.js.map +1 -1
- package/hooks/use-home-page.js +3 -3
- package/hooks/use-home-page.js.map +1 -1
- package/hooks/use-message-composer.d.ts +10 -3
- package/hooks/use-message-composer.d.ts.map +1 -1
- package/hooks/use-message-composer.js +5 -2
- package/hooks/use-message-composer.js.map +1 -1
- package/hooks/use-realtime-support.d.ts +1 -1
- package/hooks/use-send-message.d.ts +8 -2
- package/hooks/use-send-message.d.ts.map +1 -1
- package/hooks/use-send-message.js +5 -3
- package/hooks/use-send-message.js.map +1 -1
- package/hooks/use-visitor.js +2 -2
- package/hooks/use-visitor.js.map +1 -1
- package/identify-visitor.d.ts.map +1 -1
- package/identify-visitor.js +15 -1
- package/identify-visitor.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +1 -1
- package/package.json +5 -3
- package/{conversation.d.ts → packages/types/src/api/conversation.d.ts} +368 -64
- package/packages/types/src/api/conversation.d.ts.map +1 -0
- package/packages/types/src/api/timeline-item.d.ts +460 -0
- package/packages/types/src/api/timeline-item.d.ts.map +1 -0
- package/packages/types/src/realtime-events.d.ts +1004 -0
- package/packages/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas3.d.ts → packages/types/src/schemas.d.ts} +95 -19
- package/packages/types/src/schemas.d.ts.map +1 -0
- package/primitives/avatar/avatar.js +1 -1
- package/primitives/avatar/avatar.js.map +1 -1
- package/primitives/avatar/fallback.d.ts.map +1 -1
- package/primitives/avatar/fallback.js +2 -2
- package/primitives/avatar/fallback.js.map +1 -1
- package/primitives/avatar/image.d.ts +1 -1
- package/primitives/avatar/image.js +1 -1
- package/primitives/avatar/image.js.map +1 -1
- package/primitives/button.js +1 -1
- package/primitives/button.js.map +1 -1
- package/primitives/conversation-timeline.d.ts +1 -1
- package/primitives/conversation-timeline.js +4 -4
- package/primitives/conversation-timeline.js.map +1 -1
- package/primitives/day-separator.d.ts +76 -0
- package/primitives/day-separator.d.ts.map +1 -0
- package/primitives/day-separator.js +111 -0
- package/primitives/day-separator.js.map +1 -0
- package/primitives/index.d.ts +3 -2
- package/primitives/index.js +6 -1
- package/primitives/index.parts.d.ts +2 -1
- package/primitives/index.parts.js +2 -1
- package/primitives/multimodal-input.d.ts +2 -2
- package/primitives/multimodal-input.d.ts.map +1 -1
- package/primitives/multimodal-input.js +2 -2
- package/primitives/multimodal-input.js.map +1 -1
- package/primitives/timeline-item-attachments.d.ts +1 -1
- package/primitives/timeline-item-attachments.js +6 -7
- package/primitives/timeline-item-attachments.js.map +1 -1
- package/primitives/timeline-item-group.d.ts +1 -1
- package/primitives/timeline-item-group.d.ts.map +1 -1
- package/primitives/timeline-item-group.js +8 -8
- package/primitives/timeline-item-group.js.map +1 -1
- package/primitives/timeline-item.d.ts +1 -1
- package/primitives/timeline-item.d.ts.map +1 -1
- package/primitives/timeline-item.js +33 -8
- package/primitives/timeline-item.js.map +1 -1
- package/primitives/trigger.js +1 -1
- package/primitives/trigger.js.map +1 -1
- package/primitives/window.js +1 -1
- package/primitives/window.js.map +1 -1
- package/provider.d.ts +4 -2
- package/provider.d.ts.map +1 -1
- package/provider.js +56 -8
- package/provider.js.map +1 -1
- package/realtime/event-filter.d.ts +4 -1
- package/realtime/event-filter.d.ts.map +1 -1
- package/realtime/event-filter.js +14 -0
- package/realtime/event-filter.js.map +1 -1
- package/realtime/provider.d.ts +1 -1
- package/realtime/provider.d.ts.map +1 -1
- package/realtime/provider.js +1 -2
- package/realtime/provider.js.map +1 -1
- package/realtime/seen-store.d.ts +2 -2
- package/realtime/support-provider.js +6 -1
- package/realtime/support-provider.js.map +1 -1
- package/realtime/typing-store.d.ts +1 -1
- package/realtime/use-realtime.d.ts +1 -1
- package/support/components/avatar-stack.d.ts.map +1 -1
- package/support/components/avatar-stack.js +32 -12
- package/support/components/avatar-stack.js.map +1 -1
- package/support/components/avatar.d.ts +34 -3
- package/support/components/avatar.d.ts.map +1 -1
- package/support/components/avatar.js +61 -8
- package/support/components/avatar.js.map +1 -1
- package/support/components/button.d.ts +4 -2
- package/support/components/button.d.ts.map +1 -1
- package/support/components/button.js +3 -3
- package/support/components/button.js.map +1 -1
- package/support/components/configuration-error.d.ts +16 -0
- package/support/components/configuration-error.d.ts.map +1 -0
- package/support/components/configuration-error.js +162 -0
- package/support/components/configuration-error.js.map +1 -0
- package/support/components/content.js +1 -2
- package/support/components/content.js.map +1 -1
- package/support/components/conversation-button-link.js +18 -23
- package/support/components/conversation-button-link.js.map +1 -1
- package/support/components/conversation-event.d.ts.map +1 -1
- package/support/components/conversation-event.js +7 -5
- package/support/components/conversation-event.js.map +1 -1
- package/support/components/conversation-timeline.d.ts +6 -1
- package/support/components/conversation-timeline.d.ts.map +1 -1
- package/support/components/conversation-timeline.js +22 -2
- package/support/components/conversation-timeline.js.map +1 -1
- package/support/components/header.js +1 -1
- package/support/components/image-lightbox.d.ts +1 -1
- package/support/components/image-lightbox.js +1 -2
- package/support/components/image-lightbox.js.map +1 -1
- package/support/components/index.js +1 -1
- package/support/components/multimodal-input.js +0 -1
- package/support/components/multimodal-input.js.map +1 -1
- package/support/components/navigation-tab.js +1 -1
- package/support/components/online-indicator.d.ts +50 -0
- package/support/components/online-indicator.d.ts.map +1 -0
- package/support/components/online-indicator.js +65 -0
- package/support/components/online-indicator.js.map +1 -0
- package/support/components/root.js +0 -1
- package/support/components/root.js.map +1 -1
- package/support/components/timeline-identification-tool.js +4 -4
- package/support/components/timeline-identification-tool.js.map +1 -1
- package/support/components/timeline-message-group.d.ts +1 -1
- package/support/components/timeline-message-group.d.ts.map +1 -1
- package/support/components/timeline-message-group.js +6 -4
- package/support/components/timeline-message-group.js.map +1 -1
- package/support/components/timeline-message-item.d.ts +1 -1
- package/support/components/timeline-message-item.js +4 -4
- package/support/components/timeline-message-item.js.map +1 -1
- package/support/components/trigger.js +1 -2
- package/support/components/trigger.js.map +1 -1
- package/support/components/typing-indicator.js +1 -1
- package/support/components/typing-indicator.js.map +1 -1
- package/support/context/controlled-state.js +0 -1
- package/support/context/controlled-state.js.map +1 -1
- package/support/context/events.d.ts +1 -1
- package/support/context/events.js +0 -1
- package/support/context/events.js.map +1 -1
- package/support/context/handle.js +0 -1
- package/support/context/handle.js.map +1 -1
- package/support/context/identification.d.ts +33 -0
- package/support/context/identification.d.ts.map +1 -0
- package/support/context/identification.js +34 -0
- package/support/context/identification.js.map +1 -0
- package/support/context/positioning.js +0 -1
- package/support/context/positioning.js.map +1 -1
- package/support/context/slots.js +0 -1
- package/support/context/slots.js.map +1 -1
- package/support/context/websocket.d.ts +1 -1
- package/support/context/websocket.js +0 -1
- package/support/context/websocket.js.map +1 -1
- package/support/index.d.ts.map +1 -1
- package/support/index.js +51 -18
- package/support/index.js.map +1 -1
- package/support/pages/conversation-history.js +2 -1
- package/support/pages/conversation-history.js.map +1 -1
- package/support/pages/conversation.d.ts +1 -1
- package/support/pages/conversation.js +1 -1
- package/support/pages/conversation.js.map +1 -1
- package/support/pages/home.js +5 -3
- package/support/pages/home.js.map +1 -1
- package/support/router.d.ts.map +1 -1
- package/support/router.js +4 -0
- package/support/router.js.map +1 -1
- package/support/store/support-store.js +0 -1
- package/support/store/support-store.js.map +1 -1
- package/support/{support-C7Xaw-N6.css → support-DmViRaga.css} +2 -2
- package/support/{support-C7Xaw-N6.css.map → support-DmViRaga.css.map} +1 -1
- package/support/text/index.d.ts +1 -1
- package/support/text/index.d.ts.map +1 -1
- package/support/text/index.js +1 -1
- package/support/text/index.js.map +1 -1
- package/support/text/locales/en.js +1 -1
- package/support/text/locales/en.js.map +1 -1
- package/support/text/locales/es.js +1 -1
- package/support/text/locales/es.js.map +1 -1
- package/support/text/locales/fr.js +1 -1
- package/support/text/locales/fr.js.map +1 -1
- package/support/utils/index.d.ts +1 -1
- package/support-config.js +0 -1
- package/support-config.js.map +1 -1
- package/support.css +1 -1
- package/tailwind.css +1 -1
- package/utils/conversation.d.ts.map +1 -1
- package/utils/conversation.js +1 -3
- package/utils/conversation.js.map +1 -1
- package/utils/use-render-element.d.ts.map +1 -1
- package/utils/use-render-element.js +20 -5
- package/utils/use-render-element.js.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/clsx.d.ts +0 -7
- package/clsx.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/conversation.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/realtime-events.d.ts +0 -482
- package/realtime-events.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas.d.ts +0 -673
- package/schemas.d.ts.map +0 -1
- package/schemas2.d.ts +0 -320
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/timeline-item.d.ts +0 -227
- package/timeline-item.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
package/realtime-events.d.ts
DELETED
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
import { $strip } from "./schemas.js";
|
|
2
|
-
import { output } from "./core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodDefault, ZodEmail, ZodEnum, ZodLiteral, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion, ZodUnknown } from "./schemas2.js";
|
|
4
|
-
|
|
5
|
-
//#region ../types/src/realtime-events.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Central event system for real-time communication
|
|
9
|
-
* All WebSocket and Redis Pub/Sub events are defined here
|
|
10
|
-
*/
|
|
11
|
-
declare const realtimeSchema: {
|
|
12
|
-
readonly userConnected: ZodObject<{
|
|
13
|
-
websiteId: ZodString;
|
|
14
|
-
organizationId: ZodString;
|
|
15
|
-
visitorId: ZodNullable<ZodString>;
|
|
16
|
-
userId: ZodNullable<ZodString>;
|
|
17
|
-
connectionId: ZodString;
|
|
18
|
-
}, $strip>;
|
|
19
|
-
readonly userDisconnected: ZodObject<{
|
|
20
|
-
websiteId: ZodString;
|
|
21
|
-
organizationId: ZodString;
|
|
22
|
-
visitorId: ZodNullable<ZodString>;
|
|
23
|
-
userId: ZodNullable<ZodString>;
|
|
24
|
-
connectionId: ZodString;
|
|
25
|
-
}, $strip>;
|
|
26
|
-
readonly visitorConnected: ZodObject<{
|
|
27
|
-
websiteId: ZodString;
|
|
28
|
-
organizationId: ZodString;
|
|
29
|
-
userId: ZodNullable<ZodString>;
|
|
30
|
-
visitorId: ZodString;
|
|
31
|
-
connectionId: ZodString;
|
|
32
|
-
}, $strip>;
|
|
33
|
-
readonly visitorDisconnected: ZodObject<{
|
|
34
|
-
websiteId: ZodString;
|
|
35
|
-
organizationId: ZodString;
|
|
36
|
-
userId: ZodNullable<ZodString>;
|
|
37
|
-
visitorId: ZodString;
|
|
38
|
-
connectionId: ZodString;
|
|
39
|
-
}, $strip>;
|
|
40
|
-
readonly userPresenceUpdate: ZodObject<{
|
|
41
|
-
websiteId: ZodString;
|
|
42
|
-
organizationId: ZodString;
|
|
43
|
-
visitorId: ZodNullable<ZodString>;
|
|
44
|
-
userId: ZodString;
|
|
45
|
-
status: ZodEnum<{
|
|
46
|
-
online: "online";
|
|
47
|
-
away: "away";
|
|
48
|
-
offline: "offline";
|
|
49
|
-
}>;
|
|
50
|
-
lastSeen: ZodString;
|
|
51
|
-
}, $strip>;
|
|
52
|
-
readonly conversationSeen: ZodObject<{
|
|
53
|
-
websiteId: ZodString;
|
|
54
|
-
organizationId: ZodString;
|
|
55
|
-
visitorId: ZodNullable<ZodString>;
|
|
56
|
-
userId: ZodNullable<ZodString>;
|
|
57
|
-
conversationId: ZodString;
|
|
58
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
59
|
-
lastSeenAt: ZodString;
|
|
60
|
-
}, $strip>;
|
|
61
|
-
readonly conversationTyping: ZodObject<{
|
|
62
|
-
websiteId: ZodString;
|
|
63
|
-
organizationId: ZodString;
|
|
64
|
-
visitorId: ZodNullable<ZodString>;
|
|
65
|
-
userId: ZodNullable<ZodString>;
|
|
66
|
-
conversationId: ZodString;
|
|
67
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
68
|
-
isTyping: ZodBoolean;
|
|
69
|
-
visitorPreview: ZodOptional<ZodNullable<ZodString>>;
|
|
70
|
-
}, $strip>;
|
|
71
|
-
readonly timelineItemCreated: ZodObject<{
|
|
72
|
-
websiteId: ZodString;
|
|
73
|
-
organizationId: ZodString;
|
|
74
|
-
visitorId: ZodNullable<ZodString>;
|
|
75
|
-
userId: ZodNullable<ZodString>;
|
|
76
|
-
conversationId: ZodString;
|
|
77
|
-
item: ZodObject<{
|
|
78
|
-
id: ZodString;
|
|
79
|
-
conversationId: ZodString;
|
|
80
|
-
organizationId: ZodString;
|
|
81
|
-
visibility: ZodEnum<{
|
|
82
|
-
public: "public";
|
|
83
|
-
private: "private";
|
|
84
|
-
}>;
|
|
85
|
-
type: ZodEnum<{
|
|
86
|
-
message: "message";
|
|
87
|
-
event: "event";
|
|
88
|
-
identification: "identification";
|
|
89
|
-
}>;
|
|
90
|
-
text: ZodNullable<ZodString>;
|
|
91
|
-
parts: ZodArray<ZodUnknown>;
|
|
92
|
-
userId: ZodNullable<ZodString>;
|
|
93
|
-
visitorId: ZodNullable<ZodString>;
|
|
94
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
95
|
-
createdAt: ZodString;
|
|
96
|
-
deletedAt: ZodNullable<ZodString>;
|
|
97
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
98
|
-
}, $strip>;
|
|
99
|
-
}, $strip>;
|
|
100
|
-
readonly conversationCreated: ZodObject<{
|
|
101
|
-
websiteId: ZodString;
|
|
102
|
-
organizationId: ZodString;
|
|
103
|
-
visitorId: ZodNullable<ZodString>;
|
|
104
|
-
userId: ZodNullable<ZodString>;
|
|
105
|
-
conversationId: ZodString;
|
|
106
|
-
conversation: ZodObject<{
|
|
107
|
-
id: ZodString;
|
|
108
|
-
title: ZodOptional<ZodString>;
|
|
109
|
-
createdAt: ZodString;
|
|
110
|
-
updatedAt: ZodString;
|
|
111
|
-
visitorId: ZodString;
|
|
112
|
-
websiteId: ZodString;
|
|
113
|
-
status: ZodDefault<ZodEnum<{
|
|
114
|
-
resolved: "resolved";
|
|
115
|
-
open: "open";
|
|
116
|
-
spam: "spam";
|
|
117
|
-
}>>;
|
|
118
|
-
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
119
|
-
visitorLastSeenAt: ZodOptional<ZodNullable<ZodString>>;
|
|
120
|
-
lastTimelineItem: ZodOptional<ZodObject<{
|
|
121
|
-
id: ZodOptional<ZodString>;
|
|
122
|
-
conversationId: ZodString;
|
|
123
|
-
organizationId: ZodString;
|
|
124
|
-
visibility: ZodEnum<{
|
|
125
|
-
public: "public";
|
|
126
|
-
private: "private";
|
|
127
|
-
}>;
|
|
128
|
-
type: ZodEnum<{
|
|
129
|
-
message: "message";
|
|
130
|
-
event: "event";
|
|
131
|
-
identification: "identification";
|
|
132
|
-
}>;
|
|
133
|
-
text: ZodNullable<ZodString>;
|
|
134
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
135
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
136
|
-
type: ZodLiteral<"text">;
|
|
137
|
-
text: ZodString;
|
|
138
|
-
}, $strip>, ZodObject<{
|
|
139
|
-
type: ZodLiteral<"event">;
|
|
140
|
-
eventType: ZodEnum<{
|
|
141
|
-
assigned: "assigned";
|
|
142
|
-
unassigned: "unassigned";
|
|
143
|
-
participant_requested: "participant_requested";
|
|
144
|
-
participant_joined: "participant_joined";
|
|
145
|
-
participant_left: "participant_left";
|
|
146
|
-
status_changed: "status_changed";
|
|
147
|
-
priority_changed: "priority_changed";
|
|
148
|
-
tag_added: "tag_added";
|
|
149
|
-
tag_removed: "tag_removed";
|
|
150
|
-
resolved: "resolved";
|
|
151
|
-
reopened: "reopened";
|
|
152
|
-
visitor_blocked: "visitor_blocked";
|
|
153
|
-
visitor_unblocked: "visitor_unblocked";
|
|
154
|
-
visitor_identified: "visitor_identified";
|
|
155
|
-
}>;
|
|
156
|
-
actorUserId: ZodNullable<ZodString>;
|
|
157
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
158
|
-
targetUserId: ZodNullable<ZodString>;
|
|
159
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
160
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
161
|
-
}, $strip>, ZodObject<{
|
|
162
|
-
type: ZodLiteral<"image">;
|
|
163
|
-
url: ZodString;
|
|
164
|
-
mediaType: ZodString;
|
|
165
|
-
fileName: ZodOptional<ZodString>;
|
|
166
|
-
size: ZodOptional<ZodNumber>;
|
|
167
|
-
width: ZodOptional<ZodNumber>;
|
|
168
|
-
height: ZodOptional<ZodNumber>;
|
|
169
|
-
}, $strip>, ZodObject<{
|
|
170
|
-
type: ZodLiteral<"file">;
|
|
171
|
-
url: ZodString;
|
|
172
|
-
mediaType: ZodString;
|
|
173
|
-
fileName: ZodOptional<ZodString>;
|
|
174
|
-
size: ZodOptional<ZodNumber>;
|
|
175
|
-
}, $strip>, ZodObject<{
|
|
176
|
-
type: ZodLiteral<"metadata">;
|
|
177
|
-
source: ZodEnum<{
|
|
178
|
-
email: "email";
|
|
179
|
-
widget: "widget";
|
|
180
|
-
api: "api";
|
|
181
|
-
}>;
|
|
182
|
-
}, $strip>]>>;
|
|
183
|
-
userId: ZodNullable<ZodString>;
|
|
184
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
185
|
-
visitorId: ZodNullable<ZodString>;
|
|
186
|
-
createdAt: ZodString;
|
|
187
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
188
|
-
}, $strip>>;
|
|
189
|
-
}, $strip>;
|
|
190
|
-
header: ZodObject<{
|
|
191
|
-
id: ZodString;
|
|
192
|
-
status: ZodEnum<{
|
|
193
|
-
resolved: "resolved";
|
|
194
|
-
open: "open";
|
|
195
|
-
spam: "spam";
|
|
196
|
-
}>;
|
|
197
|
-
priority: ZodEnum<{
|
|
198
|
-
high: "high";
|
|
199
|
-
low: "low";
|
|
200
|
-
normal: "normal";
|
|
201
|
-
urgent: "urgent";
|
|
202
|
-
}>;
|
|
203
|
-
organizationId: ZodString;
|
|
204
|
-
visitorId: ZodString;
|
|
205
|
-
visitor: ZodObject<{
|
|
206
|
-
id: ZodULID;
|
|
207
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
208
|
-
blockedAt: ZodNullable<ZodString>;
|
|
209
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
210
|
-
isBlocked: ZodBoolean;
|
|
211
|
-
contact: ZodNullable<ZodObject<{
|
|
212
|
-
id: ZodULID;
|
|
213
|
-
name: ZodNullable<ZodString>;
|
|
214
|
-
email: ZodNullable<ZodString>;
|
|
215
|
-
image: ZodNullable<ZodString>;
|
|
216
|
-
metadataHash: ZodOptional<ZodString>;
|
|
217
|
-
}, $strip>>;
|
|
218
|
-
}, $strip>;
|
|
219
|
-
websiteId: ZodString;
|
|
220
|
-
channel: ZodString;
|
|
221
|
-
title: ZodNullable<ZodString>;
|
|
222
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
223
|
-
startedAt: ZodNullable<ZodString>;
|
|
224
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
225
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
226
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
227
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
228
|
-
createdAt: ZodString;
|
|
229
|
-
updatedAt: ZodString;
|
|
230
|
-
deletedAt: ZodNullable<ZodString>;
|
|
231
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
232
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
233
|
-
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
234
|
-
id: ZodOptional<ZodString>;
|
|
235
|
-
conversationId: ZodString;
|
|
236
|
-
organizationId: ZodString;
|
|
237
|
-
visibility: ZodEnum<{
|
|
238
|
-
public: "public";
|
|
239
|
-
private: "private";
|
|
240
|
-
}>;
|
|
241
|
-
type: ZodEnum<{
|
|
242
|
-
message: "message";
|
|
243
|
-
event: "event";
|
|
244
|
-
identification: "identification";
|
|
245
|
-
}>;
|
|
246
|
-
text: ZodNullable<ZodString>;
|
|
247
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
248
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
249
|
-
type: ZodLiteral<"text">;
|
|
250
|
-
text: ZodString;
|
|
251
|
-
}, $strip>, ZodObject<{
|
|
252
|
-
type: ZodLiteral<"event">;
|
|
253
|
-
eventType: ZodEnum<{
|
|
254
|
-
assigned: "assigned";
|
|
255
|
-
unassigned: "unassigned";
|
|
256
|
-
participant_requested: "participant_requested";
|
|
257
|
-
participant_joined: "participant_joined";
|
|
258
|
-
participant_left: "participant_left";
|
|
259
|
-
status_changed: "status_changed";
|
|
260
|
-
priority_changed: "priority_changed";
|
|
261
|
-
tag_added: "tag_added";
|
|
262
|
-
tag_removed: "tag_removed";
|
|
263
|
-
resolved: "resolved";
|
|
264
|
-
reopened: "reopened";
|
|
265
|
-
visitor_blocked: "visitor_blocked";
|
|
266
|
-
visitor_unblocked: "visitor_unblocked";
|
|
267
|
-
visitor_identified: "visitor_identified";
|
|
268
|
-
}>;
|
|
269
|
-
actorUserId: ZodNullable<ZodString>;
|
|
270
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
271
|
-
targetUserId: ZodNullable<ZodString>;
|
|
272
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
273
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
274
|
-
}, $strip>, ZodObject<{
|
|
275
|
-
type: ZodLiteral<"image">;
|
|
276
|
-
url: ZodString;
|
|
277
|
-
mediaType: ZodString;
|
|
278
|
-
fileName: ZodOptional<ZodString>;
|
|
279
|
-
size: ZodOptional<ZodNumber>;
|
|
280
|
-
width: ZodOptional<ZodNumber>;
|
|
281
|
-
height: ZodOptional<ZodNumber>;
|
|
282
|
-
}, $strip>, ZodObject<{
|
|
283
|
-
type: ZodLiteral<"file">;
|
|
284
|
-
url: ZodString;
|
|
285
|
-
mediaType: ZodString;
|
|
286
|
-
fileName: ZodOptional<ZodString>;
|
|
287
|
-
size: ZodOptional<ZodNumber>;
|
|
288
|
-
}, $strip>, ZodObject<{
|
|
289
|
-
type: ZodLiteral<"metadata">;
|
|
290
|
-
source: ZodEnum<{
|
|
291
|
-
email: "email";
|
|
292
|
-
widget: "widget";
|
|
293
|
-
api: "api";
|
|
294
|
-
}>;
|
|
295
|
-
}, $strip>]>>;
|
|
296
|
-
userId: ZodNullable<ZodString>;
|
|
297
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
298
|
-
visitorId: ZodNullable<ZodString>;
|
|
299
|
-
createdAt: ZodString;
|
|
300
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
301
|
-
}, $strip>>;
|
|
302
|
-
lastTimelineItem: ZodNullable<ZodObject<{
|
|
303
|
-
id: ZodOptional<ZodString>;
|
|
304
|
-
conversationId: ZodString;
|
|
305
|
-
organizationId: ZodString;
|
|
306
|
-
visibility: ZodEnum<{
|
|
307
|
-
public: "public";
|
|
308
|
-
private: "private";
|
|
309
|
-
}>;
|
|
310
|
-
type: ZodEnum<{
|
|
311
|
-
message: "message";
|
|
312
|
-
event: "event";
|
|
313
|
-
identification: "identification";
|
|
314
|
-
}>;
|
|
315
|
-
text: ZodNullable<ZodString>;
|
|
316
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
317
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
318
|
-
type: ZodLiteral<"text">;
|
|
319
|
-
text: ZodString;
|
|
320
|
-
}, $strip>, ZodObject<{
|
|
321
|
-
type: ZodLiteral<"event">;
|
|
322
|
-
eventType: ZodEnum<{
|
|
323
|
-
assigned: "assigned";
|
|
324
|
-
unassigned: "unassigned";
|
|
325
|
-
participant_requested: "participant_requested";
|
|
326
|
-
participant_joined: "participant_joined";
|
|
327
|
-
participant_left: "participant_left";
|
|
328
|
-
status_changed: "status_changed";
|
|
329
|
-
priority_changed: "priority_changed";
|
|
330
|
-
tag_added: "tag_added";
|
|
331
|
-
tag_removed: "tag_removed";
|
|
332
|
-
resolved: "resolved";
|
|
333
|
-
reopened: "reopened";
|
|
334
|
-
visitor_blocked: "visitor_blocked";
|
|
335
|
-
visitor_unblocked: "visitor_unblocked";
|
|
336
|
-
visitor_identified: "visitor_identified";
|
|
337
|
-
}>;
|
|
338
|
-
actorUserId: ZodNullable<ZodString>;
|
|
339
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
340
|
-
targetUserId: ZodNullable<ZodString>;
|
|
341
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
342
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
343
|
-
}, $strip>, ZodObject<{
|
|
344
|
-
type: ZodLiteral<"image">;
|
|
345
|
-
url: ZodString;
|
|
346
|
-
mediaType: ZodString;
|
|
347
|
-
fileName: ZodOptional<ZodString>;
|
|
348
|
-
size: ZodOptional<ZodNumber>;
|
|
349
|
-
width: ZodOptional<ZodNumber>;
|
|
350
|
-
height: ZodOptional<ZodNumber>;
|
|
351
|
-
}, $strip>, ZodObject<{
|
|
352
|
-
type: ZodLiteral<"file">;
|
|
353
|
-
url: ZodString;
|
|
354
|
-
mediaType: ZodString;
|
|
355
|
-
fileName: ZodOptional<ZodString>;
|
|
356
|
-
size: ZodOptional<ZodNumber>;
|
|
357
|
-
}, $strip>, ZodObject<{
|
|
358
|
-
type: ZodLiteral<"metadata">;
|
|
359
|
-
source: ZodEnum<{
|
|
360
|
-
email: "email";
|
|
361
|
-
widget: "widget";
|
|
362
|
-
api: "api";
|
|
363
|
-
}>;
|
|
364
|
-
}, $strip>]>>;
|
|
365
|
-
userId: ZodNullable<ZodString>;
|
|
366
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
367
|
-
visitorId: ZodNullable<ZodString>;
|
|
368
|
-
createdAt: ZodString;
|
|
369
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
370
|
-
}, $strip>>;
|
|
371
|
-
viewIds: ZodArray<ZodString>;
|
|
372
|
-
seenData: ZodArray<ZodObject<{
|
|
373
|
-
id: ZodString;
|
|
374
|
-
conversationId: ZodString;
|
|
375
|
-
userId: ZodNullable<ZodString>;
|
|
376
|
-
visitorId: ZodNullable<ZodString>;
|
|
377
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
378
|
-
lastSeenAt: ZodString;
|
|
379
|
-
createdAt: ZodString;
|
|
380
|
-
updatedAt: ZodString;
|
|
381
|
-
deletedAt: ZodNullable<ZodString>;
|
|
382
|
-
}, $strip>>;
|
|
383
|
-
}, $strip>;
|
|
384
|
-
}, $strip>;
|
|
385
|
-
readonly visitorIdentified: ZodObject<{
|
|
386
|
-
websiteId: ZodString;
|
|
387
|
-
organizationId: ZodString;
|
|
388
|
-
userId: ZodNullable<ZodString>;
|
|
389
|
-
visitorId: ZodString;
|
|
390
|
-
visitor: ZodObject<{
|
|
391
|
-
id: ZodULID;
|
|
392
|
-
browser: ZodNullable<ZodString>;
|
|
393
|
-
browserVersion: ZodNullable<ZodString>;
|
|
394
|
-
os: ZodNullable<ZodString>;
|
|
395
|
-
osVersion: ZodNullable<ZodString>;
|
|
396
|
-
device: ZodNullable<ZodString>;
|
|
397
|
-
deviceType: ZodNullable<ZodString>;
|
|
398
|
-
ip: ZodNullable<ZodString>;
|
|
399
|
-
city: ZodNullable<ZodString>;
|
|
400
|
-
region: ZodNullable<ZodString>;
|
|
401
|
-
country: ZodNullable<ZodString>;
|
|
402
|
-
countryCode: ZodNullable<ZodString>;
|
|
403
|
-
latitude: ZodNullable<ZodNumber>;
|
|
404
|
-
longitude: ZodNullable<ZodNumber>;
|
|
405
|
-
language: ZodNullable<ZodString>;
|
|
406
|
-
timezone: ZodNullable<ZodString>;
|
|
407
|
-
screenResolution: ZodNullable<ZodString>;
|
|
408
|
-
viewport: ZodNullable<ZodString>;
|
|
409
|
-
createdAt: ZodString;
|
|
410
|
-
updatedAt: ZodString;
|
|
411
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
412
|
-
websiteId: ZodULID;
|
|
413
|
-
organizationId: ZodULID;
|
|
414
|
-
blockedAt: ZodNullable<ZodString>;
|
|
415
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
416
|
-
isBlocked: ZodBoolean;
|
|
417
|
-
contact: ZodNullable<ZodObject<{
|
|
418
|
-
id: ZodULID;
|
|
419
|
-
externalId: ZodNullable<ZodString>;
|
|
420
|
-
name: ZodNullable<ZodString>;
|
|
421
|
-
email: ZodNullable<ZodEmail>;
|
|
422
|
-
image: ZodNullable<ZodURL>;
|
|
423
|
-
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
424
|
-
contactOrganizationId: ZodNullable<ZodULID>;
|
|
425
|
-
websiteId: ZodULID;
|
|
426
|
-
organizationId: ZodULID;
|
|
427
|
-
userId: ZodNullable<ZodULID>;
|
|
428
|
-
createdAt: ZodString;
|
|
429
|
-
updatedAt: ZodString;
|
|
430
|
-
}, $strip>>;
|
|
431
|
-
}, $strip>;
|
|
432
|
-
}, $strip>;
|
|
433
|
-
readonly conversationEventCreated: ZodObject<{
|
|
434
|
-
websiteId: ZodString;
|
|
435
|
-
organizationId: ZodString;
|
|
436
|
-
visitorId: ZodNullable<ZodString>;
|
|
437
|
-
userId: ZodNullable<ZodString>;
|
|
438
|
-
conversationId: ZodString;
|
|
439
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
440
|
-
event: ZodObject<{
|
|
441
|
-
id: ZodString;
|
|
442
|
-
conversationId: ZodString;
|
|
443
|
-
organizationId: ZodString;
|
|
444
|
-
type: ZodEnum<{
|
|
445
|
-
assigned: "assigned";
|
|
446
|
-
unassigned: "unassigned";
|
|
447
|
-
participant_requested: "participant_requested";
|
|
448
|
-
participant_joined: "participant_joined";
|
|
449
|
-
participant_left: "participant_left";
|
|
450
|
-
status_changed: "status_changed";
|
|
451
|
-
priority_changed: "priority_changed";
|
|
452
|
-
tag_added: "tag_added";
|
|
453
|
-
tag_removed: "tag_removed";
|
|
454
|
-
resolved: "resolved";
|
|
455
|
-
reopened: "reopened";
|
|
456
|
-
visitor_blocked: "visitor_blocked";
|
|
457
|
-
visitor_unblocked: "visitor_unblocked";
|
|
458
|
-
visitor_identified: "visitor_identified";
|
|
459
|
-
}>;
|
|
460
|
-
actorUserId: ZodNullable<ZodString>;
|
|
461
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
462
|
-
targetUserId: ZodNullable<ZodString>;
|
|
463
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
464
|
-
message: ZodNullable<ZodString>;
|
|
465
|
-
metadata: ZodNullable<ZodRecord<ZodString, ZodUnknown>>;
|
|
466
|
-
createdAt: ZodString;
|
|
467
|
-
updatedAt: ZodString;
|
|
468
|
-
deletedAt: ZodNullable<ZodString>;
|
|
469
|
-
}, $strip>;
|
|
470
|
-
}, $strip>;
|
|
471
|
-
};
|
|
472
|
-
type RealtimeEventType = keyof typeof realtimeSchema;
|
|
473
|
-
type RealtimeEventPayload<T extends RealtimeEventType> = output<(typeof realtimeSchema)[T]>;
|
|
474
|
-
type RealtimeEvent<T extends RealtimeEventType> = {
|
|
475
|
-
type: T;
|
|
476
|
-
payload: RealtimeEventPayload<T>;
|
|
477
|
-
};
|
|
478
|
-
type AnyRealtimeEvent = { [K in RealtimeEventType]: RealtimeEvent<K> }[RealtimeEventType];
|
|
479
|
-
type RealtimeEventData<T extends RealtimeEventType> = RealtimeEventPayload<T>;
|
|
480
|
-
//#endregion
|
|
481
|
-
export { AnyRealtimeEvent, RealtimeEvent, RealtimeEventData, RealtimeEventType };
|
|
482
|
-
//# sourceMappingURL=realtime-events.d.ts.map
|
package/realtime-events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqGD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB"}
|
package/registries.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { $ZodType } from "./schemas.js";
|
|
2
|
-
import { input, output } from "./core.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/zod/v4/core/registries.d.cts
|
|
5
|
-
declare const $output: unique symbol;
|
|
6
|
-
type $output = typeof $output;
|
|
7
|
-
declare const $input: unique symbol;
|
|
8
|
-
type $input = typeof $input;
|
|
9
|
-
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
|
|
10
|
-
type MetadataType = object | undefined;
|
|
11
|
-
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
12
|
-
_meta: Meta;
|
|
13
|
-
_schema: Schema;
|
|
14
|
-
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
15
|
-
_idmap: Map<string, Schema>;
|
|
16
|
-
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
17
|
-
clear(): this;
|
|
18
|
-
remove(schema: Schema): this;
|
|
19
|
-
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
20
|
-
has(schema: Schema): boolean;
|
|
21
|
-
}
|
|
22
|
-
interface JSONSchemaMeta {
|
|
23
|
-
id?: string | undefined;
|
|
24
|
-
title?: string | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
deprecated?: boolean | undefined;
|
|
27
|
-
[k: string]: unknown;
|
|
28
|
-
}
|
|
29
|
-
interface GlobalMeta extends JSONSchemaMeta {}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { $ZodRegistry, $replace, GlobalMeta };
|
|
32
|
-
//# sourceMappingURL=registries.d.ts.map
|
package/registries.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registries.d.ts","names":["core","$ZodType","$output","$input","$replace","Meta","S","output","input","M","P","K","R","MetadataType","$ZodRegistry","Schema","WeakMap","Map","JSONSchemaMeta","GlobalMeta","registry","T","globalRegistry"],"sources":["../../../node_modules/zod/v4/core/registries.d.cts"],"sourcesContent":["import type * as core from \"./core.cjs\";\nimport type { $ZodType } from \"./schemas.cjs\";\nexport declare const $output: unique symbol;\nexport type $output = typeof $output;\nexport declare const $input: unique symbol;\nexport type $input = typeof $input;\nexport type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {\n [K in keyof P]: $replace<P[K], S>;\n}) => $replace<R, S> : Meta extends object ? {\n [K in keyof Meta]: $replace<Meta[K], S>;\n} : Meta;\ntype MetadataType = object | undefined;\nexport declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {\n _meta: Meta;\n _schema: Schema;\n _map: WeakMap<Schema, $replace<Meta, Schema>>;\n _idmap: Map<string, Schema>;\n add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;\n clear(): this;\n remove(schema: Schema): this;\n get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;\n has(schema: Schema): boolean;\n}\nexport interface JSONSchemaMeta {\n id?: string | undefined;\n title?: string | undefined;\n description?: string | undefined;\n deprecated?: boolean | undefined;\n [k: string]: unknown;\n}\nexport interface GlobalMeta extends JSONSchemaMeta {\n}\nexport declare function registry<T extends MetadataType = MetadataType, S extends $ZodType = $ZodType>(): $ZodRegistry<T, S>;\nexport declare const globalRegistry: $ZodRegistry<GlobalMeta>;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;cAEqBE;KACTA,OAAAA,UAAiBA;AADRA,cAEAC,MAFsB,EAAA,OAAA,MAAA;AAC/BD,KAEAC,MAAAA,GAFO,OAESA,MAFCD;AACRC,KAETC,QAF8B,CAAA,IAAA,EAAA,UAELH,QAFK,CAAA,GAEOI,IAFP,SAEoBH,OAFpB,GAE8BF,MAF9B,CAE0CM,CAF1C,CAAA,GAE+CD,IAF/C,SAE4DF,MAF5D,GAEqEH,KAFrE,CAEgFM,CAFhF,CAAA,GAEqFD,IAFrF,SAAA,CAAA,KAAA,EAAA,CAAA,EAAA,GAEgHD,QAFhH,CAEyHK,CAFzH,EAE4HH,CAF5H,CAAA,EAAA,GAEmID,IAFnI,UAAA,CAAA,GAAA,IAAA,EAAA,KAAA,EAAA,EAAA,GAAA,KAAA,EAAA,IAAA,CAAA,GAAA,IAAA,EAAA,QAC9BF,MAEIO,CAFE,GAEEN,QAFQD,CAECO,CAFDP,CAEGQ,CAFHR,CAAAA,EAEOG,CAFD,CAAA,EAClC,EAAA,GAEMF,QAFMA,CAEGQ,CAFK,EAEFN,CAFE,CAAA,GAEGD,IAFHA,SAAA,MAAA,GAAA,QAAiBJ,MAGrBI,IAHqBJ,GAGdG,QAHcH,CAGLI,IAHKJ,CAGAU,CAHAV,CAAAA,EAGIK,CAHJL,CAAAA,EAAYI,GAI7CA,IAJ6CA;KAK5CQ,YAAAA,GALyDX,MAAAA,GAAAA,SAAAA;AAAsBI,cAM/DQ,YAN+DR,CAAAA,aAMrCO,YANqCP,GAMtBO,YANsBP,EAAAA,eAMOL,QANPK,GAMkBL,QANlBK,CAAAA,CAAAA;EAAZN,KAAAA,EAO7DK,IAP6DL;EAAiBK,OAAAA,EAQ5EU,MAR4EV;EAAaF,IAAAA,EAS5Fa,OAT4Fb,CASpFY,MAToFZ,EAS5EC,QAT4ED,CASnEE,IATmEF,EAS7DY,MAT6DZ,CAAAA,CAAAA;EAAoBG,MAAAA,EAU9GW,GAV8GX,CAAAA,MAAAA,EAUlGS,MAVkGT,CAAAA;EAAXN,GAAAA,CAAAA,UAW7Fe,MAX6Ff,CAAAA,CAAAA,MAAAA,EAW7EM,CAX6EN,EAAAA,GAAAA,KAAAA,EAAAA,SAAAA,SAW9CK,IAX8CL,GAAAA,CAWtCI,QAXsCJ,CAW7BK,IAX6BL,EAWvBM,CAXuBN,CAAAA,CAAAA,CAAAA,GAAAA,CAWfI,QAXeJ,CAWNK,IAXML,EAWAM,CAXAN,CAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAgBK,KAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAoCI,MAAAA,CAAAA,MAAAA,EAahJM,MAbgJN,CAAAA,EAAAA,IAAAA;EAAGH,GAAAA,CAAAA,UAcpJS,MAdoJT,CAAAA,CAAAA,MAAAA,EAcpIA,CAdoIA,CAAAA,EAchIF,QAdgIE,CAcvHD,IAduHC,EAcjHA,CAdiHA,CAAAA,GAAAA,SAAAA;EAAZF,GAAAA,CAAAA,MAAAA,EAe1IW,MAf0IX,CAAAA,EAAAA,OAAAA;;AAC1IM,UAgBCQ,cAAAA,CAhBDR;EAAaA,EAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAEC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAIL,WAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAfF,UAAAA,CAAAA,EAAAA,OAAAA,GAAAA,SAAAA;EACLQ,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,OAAAA;;AAATR,UAsBWe,UAAAA,SAAmBD,cAtB9Bd,CAAAA"}
|