@cossistant/core 0.0.25 → 0.0.28

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 (89) hide show
  1. package/_virtual/rolldown_runtime.js +1 -10
  2. package/client.d.ts +37 -5
  3. package/client.d.ts.map +1 -1
  4. package/client.js +19 -1
  5. package/client.js.map +1 -1
  6. package/contact.d.ts +19 -22
  7. package/contact.d.ts.map +1 -1
  8. package/conversation.d.ts +314 -315
  9. package/conversation.d.ts.map +1 -1
  10. package/index.d.ts +6 -4
  11. package/index.js +3 -1
  12. package/package.json +4 -2
  13. package/realtime-events.d.ts +359 -322
  14. package/realtime-events.d.ts.map +1 -1
  15. package/rest-client.d.ts +32 -1
  16. package/rest-client.d.ts.map +1 -1
  17. package/rest-client.js +75 -0
  18. package/rest-client.js.map +1 -1
  19. package/schemas.d.ts +101 -670
  20. package/schemas.d.ts.map +1 -1
  21. package/store/conversations-store.d.ts +6 -6
  22. package/store/conversations-store.d.ts.map +1 -1
  23. package/store/conversations-store.js +2 -1
  24. package/store/conversations-store.js.map +1 -1
  25. package/store/create-store.d.ts.map +1 -1
  26. package/store/seen-store.d.ts +1 -1
  27. package/store/timeline-items-store.js +1 -1
  28. package/store/typing-store.d.ts.map +1 -1
  29. package/store/typing-store.js +6 -6
  30. package/store/typing-store.js.map +1 -1
  31. package/timeline-item.d.ts +189 -193
  32. package/timeline-item.d.ts.map +1 -1
  33. package/types/src/api/timeline-item.js +120 -0
  34. package/types/src/api/timeline-item.js.map +1 -0
  35. package/types/src/enums.js.map +1 -0
  36. package/typing-reporter.d.ts +71 -0
  37. package/typing-reporter.d.ts.map +1 -0
  38. package/typing-reporter.js +145 -0
  39. package/typing-reporter.js.map +1 -0
  40. package/upload-constants.d.ts +40 -0
  41. package/upload-constants.d.ts.map +1 -0
  42. package/upload-constants.js +70 -0
  43. package/upload-constants.js.map +1 -0
  44. package/upload.d.ts +47 -0
  45. package/upload.d.ts.map +1 -0
  46. package/api.d.ts +0 -71
  47. package/api.d.ts.map +0 -1
  48. package/checks.d.ts +0 -189
  49. package/checks.d.ts.map +0 -1
  50. package/coerce.d.ts +0 -9
  51. package/coerce.d.ts.map +0 -1
  52. package/core.d.ts +0 -35
  53. package/core.d.ts.map +0 -1
  54. package/errors.d.ts +0 -121
  55. package/errors.d.ts.map +0 -1
  56. package/errors2.d.ts +0 -24
  57. package/errors2.d.ts.map +0 -1
  58. package/index2.d.ts +0 -4
  59. package/index3.d.ts +0 -1
  60. package/metadata.d.ts +0 -1
  61. package/openapi-generator.d.ts +0 -1
  62. package/openapi-generator2.d.ts +0 -1
  63. package/openapi-generator3.d.ts +0 -1
  64. package/openapi30.d.ts +0 -125
  65. package/openapi30.d.ts.map +0 -1
  66. package/openapi31.d.ts +0 -131
  67. package/openapi31.d.ts.map +0 -1
  68. package/packages/types/src/api/timeline-item.js +0 -122
  69. package/packages/types/src/api/timeline-item.js.map +0 -1
  70. package/packages/types/src/enums.js.map +0 -1
  71. package/parse.d.ts +0 -17
  72. package/parse.d.ts.map +0 -1
  73. package/registries.d.ts +0 -32
  74. package/registries.d.ts.map +0 -1
  75. package/schemas2.d.ts +0 -320
  76. package/schemas2.d.ts.map +0 -1
  77. package/schemas3.d.ts +0 -105
  78. package/schemas3.d.ts.map +0 -1
  79. package/specification-extension.d.ts +0 -9
  80. package/specification-extension.d.ts.map +0 -1
  81. package/standard-schema.d.ts +0 -59
  82. package/standard-schema.d.ts.map +0 -1
  83. package/util.d.ts +0 -41
  84. package/util.d.ts.map +0 -1
  85. package/versions.d.ts +0 -9
  86. package/versions.d.ts.map +0 -1
  87. package/zod-extensions.d.ts +0 -39
  88. package/zod-extensions.d.ts.map +0 -1
  89. /package/{packages/types → types}/src/enums.js +0 -0
@@ -0,0 +1,71 @@
1
+ //#region src/typing-reporter.d.ts
2
+ /**
3
+ * Shared typing reporter logic for throttling and scheduling typing events.
4
+ * This is a framework-agnostic utility used by both React widget and dashboard hooks.
5
+ */
6
+ /** Minimum interval between typing event sends (ms) */
7
+ declare const TYPING_SEND_INTERVAL_MS = 800;
8
+ /** Keep-alive interval for typing events (ms) */
9
+ declare const TYPING_KEEP_ALIVE_MS = 4000;
10
+ /** Delay before auto-stop typing on inactivity (ms) */
11
+ declare const TYPING_STOP_DELAY_MS = 2000;
12
+ /** Maximum length for typing preview text */
13
+ declare const TYPING_PREVIEW_MAX_LENGTH = 2000;
14
+ type TypingReporterState = {
15
+ isActive: boolean;
16
+ lastSentAt: number;
17
+ latestPreview: string;
18
+ };
19
+ type TypingReporterSendFn = (isTyping: boolean, preview?: string | null) => void | Promise<void>;
20
+ type TypingReporterConfig = {
21
+ /** Function to send the typing event */
22
+ send: TypingReporterSendFn;
23
+ /** Custom send interval (default: 800ms) */
24
+ sendIntervalMs?: number;
25
+ /** Custom keep-alive interval (default: 4000ms) */
26
+ keepAliveMs?: number;
27
+ /** Custom stop delay (default: 2000ms) */
28
+ stopDelayMs?: number;
29
+ /** Maximum preview length (default: 2000) */
30
+ previewMaxLength?: number;
31
+ /** Whether to include preview text (default: true) */
32
+ includePreview?: boolean;
33
+ };
34
+ type TypingReporter = {
35
+ /** Call when input value changes */
36
+ handleInputChange: (value: string) => void;
37
+ /** Call when message is submitted */
38
+ handleSubmit: () => void;
39
+ /** Force stop typing indicator */
40
+ stop: () => void;
41
+ /** Clean up timers (call on unmount) */
42
+ dispose: () => void;
43
+ /** Get current state (for testing) */
44
+ getState: () => TypingReporterState;
45
+ };
46
+ /**
47
+ * Creates a typing reporter instance that handles throttling and scheduling
48
+ * of typing events.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * const reporter = createTypingReporter({
53
+ * send: async (isTyping, preview) => {
54
+ * await api.sendTypingEvent({ isTyping, preview });
55
+ * },
56
+ * });
57
+ *
58
+ * // On input change
59
+ * reporter.handleInputChange(inputValue);
60
+ *
61
+ * // On submit
62
+ * reporter.handleSubmit();
63
+ *
64
+ * // On unmount
65
+ * reporter.dispose();
66
+ * ```
67
+ */
68
+ declare function createTypingReporter(config: TypingReporterConfig): TypingReporter;
69
+ //#endregion
70
+ export { TYPING_KEEP_ALIVE_MS, TYPING_PREVIEW_MAX_LENGTH, TYPING_SEND_INTERVAL_MS, TYPING_STOP_DELAY_MS, TypingReporter, TypingReporterConfig, createTypingReporter };
71
+ //# sourceMappingURL=typing-reporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing-reporter.d.ts","names":[],"sources":["../src/typing-reporter.ts"],"sourcesContent":[],"mappings":";;AAMA;AAGA;AAGA;AAGA;AAEK,cAXQ,uBAAA,GAWW,GAAA;AAAA;AAgBZ,cAxBC,oBAAA,GA0BN,IAAA;AAaP;AAmCgB,cAvEH,oBAAA,GAwEJ,IAAA;;cArEI,yBAAA;KAER,mBAAA;;;;;KAWA,oBAAA,0DAGO;KAEA,oBAAA;;QAEL;;;;;;;;;;;;KAaK,cAAA;;;;;;;;;;kBAUK;;;;;;;;;;;;;;;;;;;;;;;;iBAyBD,oBAAA,SACP,uBACN"}
@@ -0,0 +1,145 @@
1
+ //#region src/typing-reporter.ts
2
+ /**
3
+ * Shared typing reporter logic for throttling and scheduling typing events.
4
+ * This is a framework-agnostic utility used by both React widget and dashboard hooks.
5
+ */
6
+ /** Minimum interval between typing event sends (ms) */
7
+ const TYPING_SEND_INTERVAL_MS = 800;
8
+ /** Keep-alive interval for typing events (ms) */
9
+ const TYPING_KEEP_ALIVE_MS = 4e3;
10
+ /** Delay before auto-stop typing on inactivity (ms) */
11
+ const TYPING_STOP_DELAY_MS = 2e3;
12
+ /** Maximum length for typing preview text */
13
+ const TYPING_PREVIEW_MAX_LENGTH = 2e3;
14
+ /**
15
+ * Creates a typing reporter instance that handles throttling and scheduling
16
+ * of typing events.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const reporter = createTypingReporter({
21
+ * send: async (isTyping, preview) => {
22
+ * await api.sendTypingEvent({ isTyping, preview });
23
+ * },
24
+ * });
25
+ *
26
+ * // On input change
27
+ * reporter.handleInputChange(inputValue);
28
+ *
29
+ * // On submit
30
+ * reporter.handleSubmit();
31
+ *
32
+ * // On unmount
33
+ * reporter.dispose();
34
+ * ```
35
+ */
36
+ function createTypingReporter(config) {
37
+ const { send, sendIntervalMs = TYPING_SEND_INTERVAL_MS, keepAliveMs = TYPING_KEEP_ALIVE_MS, stopDelayMs = TYPING_STOP_DELAY_MS, previewMaxLength = TYPING_PREVIEW_MAX_LENGTH, includePreview = true } = config;
38
+ const state = {
39
+ isActive: false,
40
+ lastSentAt: 0,
41
+ latestPreview: ""
42
+ };
43
+ const timers = {
44
+ keepAlive: null,
45
+ stopTyping: null
46
+ };
47
+ const clearKeepAlive = () => {
48
+ if (timers.keepAlive) {
49
+ clearTimeout(timers.keepAlive);
50
+ timers.keepAlive = null;
51
+ }
52
+ };
53
+ const clearStopTypingTimeout = () => {
54
+ if (timers.stopTyping) {
55
+ clearTimeout(timers.stopTyping);
56
+ timers.stopTyping = null;
57
+ }
58
+ };
59
+ const sendTyping = (isTyping) => {
60
+ const preview = includePreview && isTyping ? state.latestPreview : null;
61
+ Promise.resolve(send(isTyping, preview)).catch((error) => {
62
+ console.error("[TypingReporter] Failed to send typing event", error);
63
+ });
64
+ };
65
+ const scheduleKeepAlive = () => {
66
+ clearKeepAlive();
67
+ timers.keepAlive = setTimeout(() => {
68
+ if (state.isActive) {
69
+ sendTyping(true);
70
+ scheduleKeepAlive();
71
+ }
72
+ }, keepAliveMs);
73
+ };
74
+ const scheduleStopTyping = () => {
75
+ clearStopTypingTimeout();
76
+ timers.stopTyping = setTimeout(() => {
77
+ if (state.isActive) {
78
+ state.isActive = false;
79
+ clearKeepAlive();
80
+ sendTyping(false);
81
+ }
82
+ }, stopDelayMs);
83
+ };
84
+ const handleInputChange = (value) => {
85
+ const trimmed = value.trim();
86
+ state.latestPreview = trimmed.slice(0, previewMaxLength);
87
+ const now = typeof globalThis !== "undefined" && "Date" in globalThis ? Date.now() : 0;
88
+ if (trimmed.length === 0) {
89
+ if (state.isActive) {
90
+ state.isActive = false;
91
+ state.lastSentAt = now;
92
+ clearKeepAlive();
93
+ clearStopTypingTimeout();
94
+ sendTyping(false);
95
+ }
96
+ return;
97
+ }
98
+ scheduleStopTyping();
99
+ if (!state.isActive) {
100
+ state.isActive = true;
101
+ state.lastSentAt = now;
102
+ sendTyping(true);
103
+ scheduleKeepAlive();
104
+ return;
105
+ }
106
+ if (now - state.lastSentAt >= sendIntervalMs) {
107
+ state.lastSentAt = now;
108
+ sendTyping(true);
109
+ scheduleKeepAlive();
110
+ }
111
+ };
112
+ const handleSubmit = () => {
113
+ if (!state.isActive) return;
114
+ state.isActive = false;
115
+ state.lastSentAt = typeof globalThis !== "undefined" && "Date" in globalThis ? Date.now() : 0;
116
+ clearKeepAlive();
117
+ clearStopTypingTimeout();
118
+ sendTyping(false);
119
+ };
120
+ const stop = () => {
121
+ if (!state.isActive) return;
122
+ state.isActive = false;
123
+ state.lastSentAt = typeof globalThis !== "undefined" && "Date" in globalThis ? Date.now() : 0;
124
+ clearKeepAlive();
125
+ clearStopTypingTimeout();
126
+ sendTyping(false);
127
+ };
128
+ const dispose = () => {
129
+ if (state.isActive) sendTyping(false);
130
+ clearKeepAlive();
131
+ clearStopTypingTimeout();
132
+ };
133
+ const getState = () => ({ ...state });
134
+ return {
135
+ handleInputChange,
136
+ handleSubmit,
137
+ stop,
138
+ dispose,
139
+ getState
140
+ };
141
+ }
142
+
143
+ //#endregion
144
+ export { TYPING_KEEP_ALIVE_MS, TYPING_PREVIEW_MAX_LENGTH, TYPING_SEND_INTERVAL_MS, TYPING_STOP_DELAY_MS, createTypingReporter };
145
+ //# sourceMappingURL=typing-reporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing-reporter.js","names":["state: TypingReporterState","timers: TypingReporterTimers"],"sources":["../src/typing-reporter.ts"],"sourcesContent":["/**\n * Shared typing reporter logic for throttling and scheduling typing events.\n * This is a framework-agnostic utility used by both React widget and dashboard hooks.\n */\n\n/** Minimum interval between typing event sends (ms) */\nexport const TYPING_SEND_INTERVAL_MS = 800;\n\n/** Keep-alive interval for typing events (ms) */\nexport const TYPING_KEEP_ALIVE_MS = 4000;\n\n/** Delay before auto-stop typing on inactivity (ms) */\nexport const TYPING_STOP_DELAY_MS = 2000;\n\n/** Maximum length for typing preview text */\nexport const TYPING_PREVIEW_MAX_LENGTH = 2000;\n\ntype TypingReporterState = {\n\tisActive: boolean;\n\tlastSentAt: number;\n\tlatestPreview: string;\n};\n\ntype TypingReporterTimers = {\n\tkeepAlive: ReturnType<typeof setTimeout> | null;\n\tstopTyping: ReturnType<typeof setTimeout> | null;\n};\n\ntype TypingReporterSendFn = (\n\tisTyping: boolean,\n\tpreview?: string | null\n) => void | Promise<void>;\n\nexport type TypingReporterConfig = {\n\t/** Function to send the typing event */\n\tsend: TypingReporterSendFn;\n\t/** Custom send interval (default: 800ms) */\n\tsendIntervalMs?: number;\n\t/** Custom keep-alive interval (default: 4000ms) */\n\tkeepAliveMs?: number;\n\t/** Custom stop delay (default: 2000ms) */\n\tstopDelayMs?: number;\n\t/** Maximum preview length (default: 2000) */\n\tpreviewMaxLength?: number;\n\t/** Whether to include preview text (default: true) */\n\tincludePreview?: boolean;\n};\n\nexport type TypingReporter = {\n\t/** Call when input value changes */\n\thandleInputChange: (value: string) => void;\n\t/** Call when message is submitted */\n\thandleSubmit: () => void;\n\t/** Force stop typing indicator */\n\tstop: () => void;\n\t/** Clean up timers (call on unmount) */\n\tdispose: () => void;\n\t/** Get current state (for testing) */\n\tgetState: () => TypingReporterState;\n};\n\n/**\n * Creates a typing reporter instance that handles throttling and scheduling\n * of typing events.\n *\n * @example\n * ```ts\n * const reporter = createTypingReporter({\n * send: async (isTyping, preview) => {\n * await api.sendTypingEvent({ isTyping, preview });\n * },\n * });\n *\n * // On input change\n * reporter.handleInputChange(inputValue);\n *\n * // On submit\n * reporter.handleSubmit();\n *\n * // On unmount\n * reporter.dispose();\n * ```\n */\nexport function createTypingReporter(\n\tconfig: TypingReporterConfig\n): TypingReporter {\n\tconst {\n\t\tsend,\n\t\tsendIntervalMs = TYPING_SEND_INTERVAL_MS,\n\t\tkeepAliveMs = TYPING_KEEP_ALIVE_MS,\n\t\tstopDelayMs = TYPING_STOP_DELAY_MS,\n\t\tpreviewMaxLength = TYPING_PREVIEW_MAX_LENGTH,\n\t\tincludePreview = true,\n\t} = config;\n\n\tconst state: TypingReporterState = {\n\t\tisActive: false,\n\t\tlastSentAt: 0,\n\t\tlatestPreview: \"\",\n\t};\n\n\tconst timers: TypingReporterTimers = {\n\t\tkeepAlive: null,\n\t\tstopTyping: null,\n\t};\n\n\tconst clearKeepAlive = () => {\n\t\tif (timers.keepAlive) {\n\t\t\tclearTimeout(timers.keepAlive);\n\t\t\ttimers.keepAlive = null;\n\t\t}\n\t};\n\n\tconst clearStopTypingTimeout = () => {\n\t\tif (timers.stopTyping) {\n\t\t\tclearTimeout(timers.stopTyping);\n\t\t\ttimers.stopTyping = null;\n\t\t}\n\t};\n\n\tconst sendTyping = (isTyping: boolean) => {\n\t\tconst preview = includePreview && isTyping ? state.latestPreview : null;\n\t\tvoid Promise.resolve(send(isTyping, preview)).catch((error) => {\n\t\t\tconsole.error(\"[TypingReporter] Failed to send typing event\", error);\n\t\t});\n\t};\n\n\tconst scheduleKeepAlive = () => {\n\t\tclearKeepAlive();\n\t\ttimers.keepAlive = setTimeout(() => {\n\t\t\tif (state.isActive) {\n\t\t\t\tsendTyping(true);\n\t\t\t\tscheduleKeepAlive();\n\t\t\t}\n\t\t}, keepAliveMs);\n\t};\n\n\tconst scheduleStopTyping = () => {\n\t\tclearStopTypingTimeout();\n\t\ttimers.stopTyping = setTimeout(() => {\n\t\t\tif (state.isActive) {\n\t\t\t\tstate.isActive = false;\n\t\t\t\tclearKeepAlive();\n\t\t\t\tsendTyping(false);\n\t\t\t}\n\t\t}, stopDelayMs);\n\t};\n\n\tconst handleInputChange = (value: string) => {\n\t\tconst trimmed = value.trim();\n\t\tstate.latestPreview = trimmed.slice(0, previewMaxLength);\n\t\tconst now =\n\t\t\ttypeof globalThis !== \"undefined\" && \"Date\" in globalThis\n\t\t\t\t? Date.now()\n\t\t\t\t: 0;\n\n\t\tif (trimmed.length === 0) {\n\t\t\tif (state.isActive) {\n\t\t\t\tstate.isActive = false;\n\t\t\t\tstate.lastSentAt = now;\n\t\t\t\tclearKeepAlive();\n\t\t\t\tclearStopTypingTimeout();\n\t\t\t\tsendTyping(false);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// Schedule auto-stop after inactivity\n\t\tscheduleStopTyping();\n\n\t\tif (!state.isActive) {\n\t\t\tstate.isActive = true;\n\t\t\tstate.lastSentAt = now;\n\t\t\tsendTyping(true);\n\t\t\tscheduleKeepAlive();\n\t\t\treturn;\n\t\t}\n\n\t\tif (now - state.lastSentAt >= sendIntervalMs) {\n\t\t\tstate.lastSentAt = now;\n\t\t\tsendTyping(true);\n\t\t\tscheduleKeepAlive();\n\t\t}\n\t};\n\n\tconst handleSubmit = () => {\n\t\tif (!state.isActive) {\n\t\t\treturn;\n\t\t}\n\n\t\tstate.isActive = false;\n\t\tstate.lastSentAt =\n\t\t\ttypeof globalThis !== \"undefined\" && \"Date\" in globalThis\n\t\t\t\t? Date.now()\n\t\t\t\t: 0;\n\t\tclearKeepAlive();\n\t\tclearStopTypingTimeout();\n\t\tsendTyping(false);\n\t};\n\n\tconst stop = () => {\n\t\tif (!state.isActive) {\n\t\t\treturn;\n\t\t}\n\n\t\tstate.isActive = false;\n\t\tstate.lastSentAt =\n\t\t\ttypeof globalThis !== \"undefined\" && \"Date\" in globalThis\n\t\t\t\t? Date.now()\n\t\t\t\t: 0;\n\t\tclearKeepAlive();\n\t\tclearStopTypingTimeout();\n\t\tsendTyping(false);\n\t};\n\n\tconst dispose = () => {\n\t\tif (state.isActive) {\n\t\t\tsendTyping(false);\n\t\t}\n\t\tclearKeepAlive();\n\t\tclearStopTypingTimeout();\n\t};\n\n\tconst getState = () => ({ ...state });\n\n\treturn {\n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,UAAU,aAC5C,KAAK,KAAK,GACV;AAEJ,MAAI,QAAQ,WAAW,GAAG;AACzB,OAAI,MAAM,UAAU;AACnB,UAAM,WAAW;AACjB,UAAM,aAAa;AACnB,oBAAgB;AAChB,4BAAwB;AACxB,eAAW,MAAM;;AAElB;;AAID,sBAAoB;AAEpB,MAAI,CAAC,MAAM,UAAU;AACpB,SAAM,WAAW;AACjB,SAAM,aAAa;AACnB,cAAW,KAAK;AAChB,sBAAmB;AACnB;;AAGD,MAAI,MAAM,MAAM,cAAc,gBAAgB;AAC7C,SAAM,aAAa;AACnB,cAAW,KAAK;AAChB,sBAAmB;;;CAIrB,MAAM,qBAAqB;AAC1B,MAAI,CAAC,MAAM,SACV;AAGD,QAAM,WAAW;AACjB,QAAM,aACL,OAAO,eAAe,eAAe,UAAU,aAC5C,KAAK,KAAK,GACV;AACJ,kBAAgB;AAChB,0BAAwB;AACxB,aAAW,MAAM;;CAGlB,MAAM,aAAa;AAClB,MAAI,CAAC,MAAM,SACV;AAGD,QAAM,WAAW;AACjB,QAAM,aACL,OAAO,eAAe,eAAe,UAAU,aAC5C,KAAK,KAAK,GACV;AACJ,kBAAgB;AAChB,0BAAwB;AACxB,aAAW,MAAM;;CAGlB,MAAM,gBAAgB;AACrB,MAAI,MAAM,SACT,YAAW,MAAM;AAElB,kBAAgB;AAChB,0BAAwB;;CAGzB,MAAM,kBAAkB,EAAE,GAAG,OAAO;AAEpC,QAAO;EACN;EACA;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,40 @@
1
+ //#region src/upload-constants.d.ts
2
+ /**
3
+ * File upload constants for cost/API protection.
4
+ * These limits are enforced on both client and server side.
5
+ */
6
+ /** Maximum file size in bytes (5 MB) */
7
+ declare const MAX_FILE_SIZE: number;
8
+ /** Maximum number of files per message */
9
+ declare const MAX_FILES_PER_MESSAGE = 3;
10
+ /** Allowed MIME types for file uploads */
11
+ declare const ALLOWED_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "application/pdf", "text/plain", "text/csv", "text/markdown", "application/zip"];
12
+ /** Human-readable file type descriptions for error messages */
13
+ declare const ALLOWED_FILE_TYPES_DESCRIPTION = "images (JPEG, PNG, GIF, WebP), PDF, text files (TXT, CSV, MD), and ZIP archives";
14
+ /** Accept string for file input elements */
15
+ declare const FILE_INPUT_ACCEPT: string;
16
+ /**
17
+ * Check if a MIME type is allowed for upload
18
+ */
19
+ declare function isAllowedMimeType(mimeType: string): boolean;
20
+ /**
21
+ * Check if a file is an image based on MIME type
22
+ */
23
+ declare function isImageMimeType(mimeType: string): boolean;
24
+ /**
25
+ * Format file size for display
26
+ */
27
+ declare function formatFileSize(bytes: number): string;
28
+ /**
29
+ * Validate a file against upload constraints
30
+ * @returns null if valid, error message if invalid
31
+ */
32
+ declare function validateFile(file: File): string | null;
33
+ /**
34
+ * Validate multiple files against upload constraints
35
+ * @returns null if all valid, error message if any invalid
36
+ */
37
+ declare function validateFiles(files: File[]): string | null;
38
+ //#endregion
39
+ export { ALLOWED_FILE_TYPES_DESCRIPTION, ALLOWED_MIME_TYPES, FILE_INPUT_ACCEPT, MAX_FILES_PER_MESSAGE, MAX_FILE_SIZE, formatFileSize, isAllowedMimeType, isImageMimeType, validateFile, validateFiles };
40
+ //# sourceMappingURL=upload-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-constants.d.ts","names":[],"sources":["../src/upload-constants.ts"],"sourcesContent":[],"mappings":";;AAMA;AAGA;AAGA;AAiBA;AAIa,cA3BA,aA2BgD,EAAA,MAAA;AAK7D;AAOgB,cApCH,qBAAA,GAoCkB,CAAA;AAO/B;AAcgB,cAtDH,kBAsD0B,EAAA,SAAA,CAAA,YAAA,EAAA,WAAA,EAAA,WAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,eAAA,EAAA,iBAAA,CAAA;AAgBvC;cArDa,8BAAA;;cAIA;;;;iBAKG,iBAAA;;;;iBAOA,eAAA;;;;iBAOA,cAAA;;;;;iBAcA,YAAA,OAAmB;;;;;iBAgBnB,aAAA,QAAqB"}
@@ -0,0 +1,70 @@
1
+ //#region src/upload-constants.ts
2
+ /**
3
+ * File upload constants for cost/API protection.
4
+ * These limits are enforced on both client and server side.
5
+ */
6
+ /** Maximum file size in bytes (5 MB) */
7
+ const MAX_FILE_SIZE = 5 * 1024 * 1024;
8
+ /** Maximum number of files per message */
9
+ const MAX_FILES_PER_MESSAGE = 3;
10
+ /** Allowed MIME types for file uploads */
11
+ const ALLOWED_MIME_TYPES = [
12
+ "image/jpeg",
13
+ "image/png",
14
+ "image/gif",
15
+ "image/webp",
16
+ "application/pdf",
17
+ "text/plain",
18
+ "text/csv",
19
+ "text/markdown",
20
+ "application/zip"
21
+ ];
22
+ /** Human-readable file type descriptions for error messages */
23
+ const ALLOWED_FILE_TYPES_DESCRIPTION = "images (JPEG, PNG, GIF, WebP), PDF, text files (TXT, CSV, MD), and ZIP archives";
24
+ /** Accept string for file input elements */
25
+ const FILE_INPUT_ACCEPT = ALLOWED_MIME_TYPES.join(",");
26
+ /**
27
+ * Check if a MIME type is allowed for upload
28
+ */
29
+ function isAllowedMimeType(mimeType) {
30
+ return ALLOWED_MIME_TYPES.includes(mimeType);
31
+ }
32
+ /**
33
+ * Check if a file is an image based on MIME type
34
+ */
35
+ function isImageMimeType(mimeType) {
36
+ return mimeType.startsWith("image/");
37
+ }
38
+ /**
39
+ * Format file size for display
40
+ */
41
+ function formatFileSize(bytes) {
42
+ if (bytes < 1024) return `${bytes} B`;
43
+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
44
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
45
+ }
46
+ /**
47
+ * Validate a file against upload constraints
48
+ * @returns null if valid, error message if invalid
49
+ */
50
+ function validateFile(file) {
51
+ if (file.size > MAX_FILE_SIZE) return `File "${file.name}" exceeds maximum size of ${formatFileSize(MAX_FILE_SIZE)}`;
52
+ if (!isAllowedMimeType(file.type)) return `File type "${file.type || "unknown"}" is not allowed. Allowed types: ${ALLOWED_FILE_TYPES_DESCRIPTION}`;
53
+ return null;
54
+ }
55
+ /**
56
+ * Validate multiple files against upload constraints
57
+ * @returns null if all valid, error message if any invalid
58
+ */
59
+ function validateFiles(files) {
60
+ if (files.length > MAX_FILES_PER_MESSAGE) return `Cannot attach more than ${MAX_FILES_PER_MESSAGE} files per message`;
61
+ for (const file of files) {
62
+ const error = validateFile(file);
63
+ if (error) return error;
64
+ }
65
+ return null;
66
+ }
67
+
68
+ //#endregion
69
+ export { ALLOWED_FILE_TYPES_DESCRIPTION, ALLOWED_MIME_TYPES, FILE_INPUT_ACCEPT, MAX_FILES_PER_MESSAGE, MAX_FILE_SIZE, formatFileSize, isAllowedMimeType, isImageMimeType, validateFile, validateFiles };
70
+ //# sourceMappingURL=upload-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-constants.js","names":[],"sources":["../src/upload-constants.ts"],"sourcesContent":["/**\n * File upload constants for cost/API protection.\n * These limits are enforced on both client and server side.\n */\n\n/** Maximum file size in bytes (5 MB) */\nexport const MAX_FILE_SIZE = 5 * 1024 * 1024;\n\n/** Maximum number of files per message */\nexport const MAX_FILES_PER_MESSAGE = 3;\n\n/** Allowed MIME types for file uploads */\nexport const ALLOWED_MIME_TYPES = [\n\t// Images\n\t\"image/jpeg\",\n\t\"image/png\",\n\t\"image/gif\",\n\t\"image/webp\",\n\t// Documents\n\t\"application/pdf\",\n\t// Text files\n\t\"text/plain\",\n\t\"text/csv\",\n\t\"text/markdown\",\n\t// Archives\n\t\"application/zip\",\n] as const;\n\n/** Human-readable file type descriptions for error messages */\nexport const ALLOWED_FILE_TYPES_DESCRIPTION =\n\t\"images (JPEG, PNG, GIF, WebP), PDF, text files (TXT, CSV, MD), and ZIP archives\";\n\n/** Accept string for file input elements */\nexport const FILE_INPUT_ACCEPT = ALLOWED_MIME_TYPES.join(\",\");\n\n/**\n * Check if a MIME type is allowed for upload\n */\nexport function isAllowedMimeType(mimeType: string): boolean {\n\treturn (ALLOWED_MIME_TYPES as readonly string[]).includes(mimeType);\n}\n\n/**\n * Check if a file is an image based on MIME type\n */\nexport function isImageMimeType(mimeType: string): boolean {\n\treturn mimeType.startsWith(\"image/\");\n}\n\n/**\n * Format file size for display\n */\nexport function formatFileSize(bytes: number): string {\n\tif (bytes < 1024) {\n\t\treturn `${bytes} B`;\n\t}\n\tif (bytes < 1024 * 1024) {\n\t\treturn `${(bytes / 1024).toFixed(1)} KB`;\n\t}\n\treturn `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n\n/**\n * Validate a file against upload constraints\n * @returns null if valid, error message if invalid\n */\nexport function validateFile(file: File): string | null {\n\tif (file.size > MAX_FILE_SIZE) {\n\t\treturn `File \"${file.name}\" exceeds maximum size of ${formatFileSize(MAX_FILE_SIZE)}`;\n\t}\n\n\tif (!isAllowedMimeType(file.type)) {\n\t\treturn `File type \"${file.type || \"unknown\"}\" is not allowed. Allowed types: ${ALLOWED_FILE_TYPES_DESCRIPTION}`;\n\t}\n\n\treturn null;\n}\n\n/**\n * Validate multiple files against upload constraints\n * @returns null if all valid, error message if any invalid\n */\nexport function validateFiles(files: File[]): string | null {\n\tif (files.length > MAX_FILES_PER_MESSAGE) {\n\t\treturn `Cannot attach more than ${MAX_FILES_PER_MESSAGE} files per message`;\n\t}\n\n\tfor (const file of files) {\n\t\tconst error = validateFile(file);\n\t\tif (error) {\n\t\t\treturn error;\n\t\t}\n\t}\n\n\treturn null;\n}\n"],"mappings":";;;;;;AAMA,MAAa,gBAAgB,IAAI,OAAO;;AAGxC,MAAa,wBAAwB;;AAGrC,MAAa,qBAAqB;CAEjC;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;;AAGD,MAAa,iCACZ;;AAGD,MAAa,oBAAoB,mBAAmB,KAAK,IAAI;;;;AAK7D,SAAgB,kBAAkB,UAA2B;AAC5D,QAAQ,mBAAyC,SAAS,SAAS;;;;;AAMpE,SAAgB,gBAAgB,UAA2B;AAC1D,QAAO,SAAS,WAAW,SAAS;;;;;AAMrC,SAAgB,eAAe,OAAuB;AACrD,KAAI,QAAQ,KACX,QAAO,GAAG,MAAM;AAEjB,KAAI,QAAQ,OAAO,KAClB,QAAO,IAAI,QAAQ,MAAM,QAAQ,EAAE,CAAC;AAErC,QAAO,IAAI,SAAS,OAAO,OAAO,QAAQ,EAAE,CAAC;;;;;;AAO9C,SAAgB,aAAa,MAA2B;AACvD,KAAI,KAAK,OAAO,cACf,QAAO,SAAS,KAAK,KAAK,4BAA4B,eAAe,cAAc;AAGpF,KAAI,CAAC,kBAAkB,KAAK,KAAK,CAChC,QAAO,cAAc,KAAK,QAAQ,UAAU,mCAAmC;AAGhF,QAAO;;;;;;AAOR,SAAgB,cAAc,OAA8B;AAC3D,KAAI,MAAM,SAAS,sBAClB,QAAO,2BAA2B,sBAAsB;AAGzD,MAAK,MAAM,QAAQ,OAAO;EACzB,MAAM,QAAQ,aAAa,KAAK;AAChC,MAAI,MACH,QAAO;;AAIT,QAAO"}
package/upload.d.ts ADDED
@@ -0,0 +1,47 @@
1
+ import { z } from "@hono/zod-openapi";
2
+
3
+ //#region ../types/src/api/upload.d.ts
4
+
5
+ declare const generateUploadUrlRequestSchema: z.ZodObject<{
6
+ contentType: z.ZodString;
7
+ websiteId: z.ZodString;
8
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
+ type: z.ZodLiteral<"conversation">;
10
+ conversationId: z.ZodString;
11
+ organizationId: z.ZodString;
12
+ websiteId: z.ZodString;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodLiteral<"user">;
15
+ userId: z.ZodString;
16
+ organizationId: z.ZodString;
17
+ websiteId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ type: z.ZodLiteral<"contact">;
20
+ contactId: z.ZodString;
21
+ organizationId: z.ZodString;
22
+ websiteId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ type: z.ZodLiteral<"visitor">;
25
+ visitorId: z.ZodString;
26
+ organizationId: z.ZodString;
27
+ websiteId: z.ZodString;
28
+ }, z.core.$strip>], "type">;
29
+ path: z.ZodOptional<z.ZodString>;
30
+ fileName: z.ZodOptional<z.ZodString>;
31
+ fileExtension: z.ZodOptional<z.ZodString>;
32
+ useCdn: z.ZodOptional<z.ZodBoolean>;
33
+ expiresInSeconds: z.ZodOptional<z.ZodNumber>;
34
+ }, z.core.$strip>;
35
+ type GenerateUploadUrlRequest = z.infer<typeof generateUploadUrlRequestSchema>;
36
+ declare const generateUploadUrlResponseSchema: z.ZodObject<{
37
+ uploadUrl: z.ZodURL;
38
+ key: z.ZodString;
39
+ bucket: z.ZodString;
40
+ expiresAt: z.ZodString;
41
+ contentType: z.ZodString;
42
+ publicUrl: z.ZodURL;
43
+ }, z.core.$strip>;
44
+ type GenerateUploadUrlResponse = z.infer<typeof generateUploadUrlResponseSchema>;
45
+ //#endregion
46
+ export { GenerateUploadUrlRequest, GenerateUploadUrlResponse };
47
+ //# sourceMappingURL=upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.d.ts","names":[],"sources":["../../types/src/api/upload.ts"],"sourcesContent":[],"mappings":";;;;AAkMY,cAvEC,8BAwEL,EAxEmC,CAAA,CAAA,SAwEnC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAxCI,wBAAA,GAA2B,CAAA,CAAE,aACjC;cAGK,iCAA+B,CAAA,CAAA;;;;;;;;KAmChC,yBAAA,GAA4B,CAAA,CAAE,aAClC"}
package/api.d.ts DELETED
@@ -1,71 +0,0 @@
1
- import { EmptyToNever, Flatten, MakePartial } from "./util.js";
2
- import { $ZodBase64, $ZodBase64URL, $ZodCIDRv4, $ZodCIDRv6, $ZodCUID, $ZodCUID2, $ZodCustom, $ZodE164, $ZodEmail, $ZodEmoji, $ZodEnum, $ZodGUID, $ZodIPv4, $ZodIPv6, $ZodISODate, $ZodISODateTime, $ZodISODuration, $ZodISOTime, $ZodJWT, $ZodKSUID, $ZodNanoID, $ZodNonOptional, $ZodStringFormat, $ZodType, $ZodULID, $ZodURL, $ZodUUID, $ZodXID, ParsePayload } from "./schemas.js";
3
- import { $ZodCheck, $ZodCheckEndsWith, $ZodCheckGreaterThan, $ZodCheckIncludes, $ZodCheckLengthEquals, $ZodCheckLessThan, $ZodCheckLowerCase, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckRegex, $ZodCheckStartsWith, $ZodCheckUpperCase } from "./checks.js";
4
- import { $ZodErrorMap, $ZodIssue, $ZodIssueBase } from "./errors.js";
5
-
6
- //#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/api.d.cts
7
- type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
8
- error?: string | $ZodErrorMap<IssueTypes> | undefined;
9
- /** @deprecated This parameter is deprecated. Use `error` instead. */
10
- message?: string | undefined;
11
- })>>>;
12
- type TypeParams<T extends $ZodType = $ZodType & {
13
- _isst: never;
14
- }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
15
- type CheckParams<T extends $ZodCheck = $ZodCheck,
16
- // & { _issc: never },
17
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
18
- type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
19
- type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
20
- type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
21
- type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
22
- type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
23
- type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
24
- type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
25
- type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
26
- type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
27
- type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
28
- type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
29
- type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
30
- type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
31
- type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
32
- type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
33
- type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
34
- type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
35
- type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
36
- type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
37
- type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
38
- type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
39
- type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
40
- type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
41
- type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
42
- type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
43
- type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
44
- type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
45
- type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
46
- type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
47
- type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
48
- type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
49
- type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
50
- type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
51
- type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
52
- type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
53
- type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
54
- type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
55
- type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
56
- type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
57
- type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
58
- type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
59
- type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
60
- type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
61
- /** The schema or check that originated this issue. */
62
- readonly inst?: $ZodType | $ZodCheck;
63
- /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
64
- readonly continue?: boolean | undefined;
65
- } & Record<string, unknown>> : never;
66
- interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
67
- addIssue(arg: string | $ZodSuperRefineIssue): void;
68
- }
69
- //#endregion
70
- export { $RefinementCtx, $ZodCheckBase64Params, $ZodCheckBase64URLParams, $ZodCheckCIDRv4Params, $ZodCheckCIDRv6Params, $ZodCheckCUID2Params, $ZodCheckCUIDParams, $ZodCheckE164Params, $ZodCheckEmailParams, $ZodCheckEmojiParams, $ZodCheckEndsWithParams, $ZodCheckGUIDParams, $ZodCheckGreaterThanParams, $ZodCheckIPv4Params, $ZodCheckIPv6Params, $ZodCheckISODateParams, $ZodCheckISODateTimeParams, $ZodCheckISODurationParams, $ZodCheckISOTimeParams, $ZodCheckIncludesParams, $ZodCheckJWTParams, $ZodCheckKSUIDParams, $ZodCheckLengthEqualsParams, $ZodCheckLessThanParams, $ZodCheckLowerCaseParams, $ZodCheckMaxLengthParams, $ZodCheckMinLengthParams, $ZodCheckMultipleOfParams, $ZodCheckNanoIDParams, $ZodCheckNumberFormatParams, $ZodCheckRegexParams, $ZodCheckStartsWithParams, $ZodCheckULIDParams, $ZodCheckURLParams, $ZodCheckUUIDParams, $ZodCheckUpperCaseParams, $ZodCheckXIDParams, $ZodCustomParams, $ZodEnumParams, $ZodNonOptionalParams };
71
- //# sourceMappingURL=api.d.ts.map
package/api.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","names":["checks","core","errors","schemas","util","Params","T","IssueTypes","OmitKeys","$ZodType","$ZodCheck","$ZodIssueBase","Omit","$ZodErrorMap","EmptyToNever","Partial","Flatten","TypeParams","AlsoOmit","Exclude","NonNullable","CheckParams","StringFormatParams","$ZodStringFormat","CheckStringFormatParams","CheckTypeParams","$ZodStringParams","$ZodString","_string","SchemaClass","_coercedString","$ZodStringFormatParams","$ZodCheckStringFormatParams","$ZodCheckStringFormat","$ZodEmailParams","$ZodEmail","$ZodCheckEmailParams","_email","$ZodGUIDParams","$ZodGUID","$ZodCheckGUIDParams","_guid","$ZodUUIDParams","$ZodUUID","$ZodCheckUUIDParams","_uuid","$ZodUUIDv4Params","$ZodCheckUUIDv4Params","_uuidv4","$ZodUUIDv6Params","$ZodCheckUUIDv6Params","_uuidv6","$ZodUUIDv7Params","$ZodCheckUUIDv7Params","_uuidv7","$ZodURLParams","$ZodURL","$ZodCheckURLParams","_url","$ZodEmojiParams","$ZodEmoji","$ZodCheckEmojiParams","_emoji","$ZodNanoIDParams","$ZodNanoID","$ZodCheckNanoIDParams","_nanoid","$ZodCUIDParams","$ZodCUID","$ZodCheckCUIDParams","_cuid","$ZodCUID2Params","$ZodCUID2","$ZodCheckCUID2Params","_cuid2","$ZodULIDParams","$ZodULID","$ZodCheckULIDParams","_ulid","$ZodXIDParams","$ZodXID","$ZodCheckXIDParams","_xid","$ZodKSUIDParams","$ZodKSUID","$ZodCheckKSUIDParams","_ksuid","$ZodIPv4Params","$ZodIPv4","$ZodCheckIPv4Params","_ipv4","$ZodIPv6Params","$ZodIPv6","$ZodCheckIPv6Params","_ipv6","$ZodCIDRv4Params","$ZodCIDRv4","$ZodCheckCIDRv4Params","_cidrv4","$ZodCIDRv6Params","$ZodCIDRv6","$ZodCheckCIDRv6Params","_cidrv6","$ZodBase64Params","$ZodBase64","$ZodCheckBase64Params","_base64","$ZodBase64URLParams","$ZodBase64URL","$ZodCheckBase64URLParams","_base64url","$ZodE164Params","$ZodE164","$ZodCheckE164Params","_e164","$ZodJWTParams","$ZodJWT","$ZodCheckJWTParams","_jwt","TimePrecision","$ZodISODateTimeParams","$ZodISODateTime","$ZodCheckISODateTimeParams","_isoDateTime","$ZodISODateParams","$ZodISODate","$ZodCheckISODateParams","_isoDate","$ZodISOTimeParams","$ZodISOTime","$ZodCheckISOTimeParams","_isoTime","$ZodISODurationParams","$ZodISODuration","$ZodCheckISODurationParams","_isoDuration","$ZodNumberParams","$ZodNumber","$ZodNumberFormatParams","$ZodNumberFormat","$ZodCheckNumberFormatParams","$ZodCheckNumberFormat","_number","_coercedNumber","_int","_float32","_float64","_int32","_uint32","$ZodBooleanParams","$ZodBoolean","_boolean","_coercedBoolean","$ZodBigIntParams","$ZodBigInt","$ZodBigIntFormatParams","$ZodBigIntFormat","$ZodCheckBigIntFormatParams","$ZodCheckBigIntFormat","_bigint","_coercedBigint","_int64","_uint64","$ZodSymbolParams","$ZodSymbol","_symbol","$ZodUndefinedParams","$ZodUndefined","_undefined","$ZodNullParams","$ZodNull","_null","$ZodAnyParams","$ZodAny","_any","$ZodUnknownParams","$ZodUnknown","_unknown","$ZodNeverParams","$ZodNever","_never","$ZodVoidParams","$ZodVoid","_void","$ZodDateParams","$ZodDate","_date","_coercedDate","$ZodNaNParams","$ZodNaN","_nan","$ZodCheckLessThanParams","$ZodCheckLessThan","_lt","Numeric","_lte","_max","$ZodCheckGreaterThanParams","$ZodCheckGreaterThan","_gt","_gte","_min","_positive","_negative","_nonpositive","_nonnegative","$ZodCheckMultipleOfParams","$ZodCheckMultipleOf","_multipleOf","$ZodCheckMaxSizeParams","$ZodCheckMaxSize","_maxSize","HasSize","$ZodCheckMinSizeParams","$ZodCheckMinSize","_minSize","$ZodCheckSizeEqualsParams","$ZodCheckSizeEquals","_size","$ZodCheckMaxLengthParams","$ZodCheckMaxLength","_maxLength","HasLength","$ZodCheckMinLengthParams","$ZodCheckMinLength","_minLength","$ZodCheckLengthEqualsParams","$ZodCheckLengthEquals","_length","$ZodCheckRegexParams","$ZodCheckRegex","_regex","RegExp","$ZodCheckLowerCaseParams","$ZodCheckLowerCase","_lowercase","$ZodCheckUpperCaseParams","$ZodCheckUpperCase","_uppercase","$ZodCheckIncludesParams","$ZodCheckIncludes","_includes","$ZodCheckStartsWithParams","$ZodCheckStartsWith","_startsWith","$ZodCheckEndsWithParams","$ZodCheckEndsWith","_endsWith","$ZodCheckPropertyParams","$ZodCheckProperty","_property","K","output","$ZodCheckMimeTypeParams","$ZodCheckMimeType","_mime","MimeTypes","_overwrite","$ZodCheckOverwrite","_normalize","_trim","_toLowerCase","_toUpperCase","$ZodArrayParams","$ZodArray","_array","$ZodObjectParams","$ZodObject","$ZodUnionParams","$ZodUnion","_union","$ZodTypeDiscriminableInternals","PropValues","$ZodTypeInternals","$ZodTypeDiscriminable","$ZodDiscriminatedUnionParams","$ZodDiscriminatedUnion","_discriminatedUnion","Types","Disc","$ZodIntersectionParams","$ZodIntersection","_intersection","U","$ZodTupleParams","$ZodTuple","_tuple","Rest","$ZodRecordParams","$ZodRecord","_record","Key","Value","$ZodRecordKey","$ZodMapParams","$ZodMap","_map","$ZodSetParams","$ZodSet","_set","$ZodEnumParams","$ZodEnum","_enum","ToEnum","EnumLike","_nativeEnum","$ZodLiteralParams","$ZodLiteral","_literal","Literal","Array","$ZodFileParams","$ZodFile","_file","$ZodTransformParams","$ZodTransform","_transform","I","O","ParsePayload","Awaited","$ZodOptionalParams","$ZodOptional","_optional","$ZodNullableParams","$ZodNullable","_nullable","$ZodDefaultParams","$ZodDefault","_default","NoUndefined","$ZodNonOptionalParams","$ZodNonOptional","_nonoptional","$ZodSuccessParams","$ZodSuccess","_success","$ZodCatchParams","$ZodCatch","_catch","$ZodCatchCtx","$ZodPipeParams","$ZodPipe","_pipe","A","B","$ZodReadonlyParams","$ZodReadonly","_readonly","$ZodTemplateLiteralParams","$ZodTemplateLiteral","_templateLiteral","Parts","$ZodTemplateLiteralPart","$PartsToTemplateLiteral","$ZodLazyParams","$ZodLazy","_lazy","$ZodPromiseParams","$ZodPromise","_promise","$ZodCustomParams","$ZodCustom","_custom","_refine","$ZodSuperRefineIssue","$ZodIssue","RawIssue","MakePartial","Record","$RefinementCtx","_superRefine","Promise","_check","CheckFn","$ZodStringBoolParams","_stringbool","$ZodCodec","_stringFormat","Format","$ZodCustomStringFormat","MaybeAsync"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/api.d.cts"],"sourcesContent":["import * as checks from \"./checks.cjs\";\nimport type * as core from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport * as schemas from \"./schemas.cjs\";\nimport * as util from \"./util.cjs\";\nexport type Params<T extends schemas.$ZodType | checks.$ZodCheck, IssueTypes extends errors.$ZodIssueBase, OmitKeys extends keyof T[\"_zod\"][\"def\"] = never> = util.Flatten<Partial<util.EmptyToNever<Omit<T[\"_zod\"][\"def\"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {\n error?: string | errors.$ZodErrorMap<IssueTypes> | undefined;\n /** @deprecated This parameter is deprecated. Use `error` instead. */\n message?: string | undefined;\n})>>>;\nexport type TypeParams<T extends schemas.$ZodType = schemas.$ZodType & {\n _isst: never;\n}, AlsoOmit extends Exclude<keyof T[\"_zod\"][\"def\"], \"type\" | \"checks\" | \"error\"> = never> = Params<T, NonNullable<T[\"_zod\"][\"isst\"]>, \"type\" | \"checks\" | \"error\" | AlsoOmit>;\nexport type CheckParams<T extends checks.$ZodCheck = checks.$ZodCheck, // & { _issc: never },\nAlsoOmit extends Exclude<keyof T[\"_zod\"][\"def\"], \"check\" | \"error\"> = never> = Params<T, NonNullable<T[\"_zod\"][\"issc\"]>, \"check\" | \"error\" | AlsoOmit>;\nexport type StringFormatParams<T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat, AlsoOmit extends Exclude<keyof T[\"_zod\"][\"def\"], \"type\" | \"coerce\" | \"checks\" | \"error\" | \"check\" | \"format\"> = never> = Params<T, NonNullable<T[\"_zod\"][\"isst\"] | T[\"_zod\"][\"issc\"]>, \"type\" | \"coerce\" | \"checks\" | \"error\" | \"check\" | \"format\" | AlsoOmit>;\nexport type CheckStringFormatParams<T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat, AlsoOmit extends Exclude<keyof T[\"_zod\"][\"def\"], \"type\" | \"coerce\" | \"checks\" | \"error\" | \"check\" | \"format\"> = never> = Params<T, NonNullable<T[\"_zod\"][\"issc\"]>, \"type\" | \"coerce\" | \"checks\" | \"error\" | \"check\" | \"format\" | AlsoOmit>;\nexport type CheckTypeParams<T extends schemas.$ZodType & checks.$ZodCheck = schemas.$ZodType & checks.$ZodCheck, AlsoOmit extends Exclude<keyof T[\"_zod\"][\"def\"], \"type\" | \"checks\" | \"error\" | \"check\"> = never> = Params<T, NonNullable<T[\"_zod\"][\"isst\"] | T[\"_zod\"][\"issc\"]>, \"type\" | \"checks\" | \"error\" | \"check\" | AlsoOmit>;\nexport type $ZodStringParams = TypeParams<schemas.$ZodString<string>, \"coerce\">;\nexport declare function _string<T extends schemas.$ZodString>(Class: util.SchemaClass<T>, params?: string | $ZodStringParams): T;\nexport declare function _coercedString<T extends schemas.$ZodString>(Class: util.SchemaClass<T>, params?: string | $ZodStringParams): T;\nexport type $ZodStringFormatParams = CheckTypeParams<schemas.$ZodStringFormat, \"format\" | \"coerce\" | \"when\" | \"pattern\">;\nexport type $ZodCheckStringFormatParams = CheckParams<checks.$ZodCheckStringFormat, \"format\">;\nexport type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail, \"when\">;\nexport type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail, \"when\">;\nexport declare function _email<T extends schemas.$ZodEmail>(Class: util.SchemaClass<T>, params?: string | $ZodEmailParams | $ZodCheckEmailParams): T;\nexport type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, \"pattern\" | \"when\">;\nexport type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, \"pattern\" | \"when\">;\nexport declare function _guid<T extends schemas.$ZodGUID>(Class: util.SchemaClass<T>, params?: string | $ZodGUIDParams | $ZodCheckGUIDParams): T;\nexport type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport declare function _uuid<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDParams | $ZodCheckUUIDParams): T;\nexport type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport declare function _uuidv4<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params): T;\nexport type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport declare function _uuidv6<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params): T;\nexport type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, \"pattern\" | \"when\">;\nexport declare function _uuidv7<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params): T;\nexport type $ZodURLParams = StringFormatParams<schemas.$ZodURL, \"when\">;\nexport type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL, \"when\">;\nexport declare function _url<T extends schemas.$ZodURL>(Class: util.SchemaClass<T>, params?: string | $ZodURLParams | $ZodCheckURLParams): T;\nexport type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji, \"when\">;\nexport type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji, \"when\">;\nexport declare function _emoji<T extends schemas.$ZodEmoji>(Class: util.SchemaClass<T>, params?: string | $ZodEmojiParams | $ZodCheckEmojiParams): T;\nexport type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID, \"when\">;\nexport type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID, \"when\">;\nexport declare function _nanoid<T extends schemas.$ZodNanoID>(Class: util.SchemaClass<T>, params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams): T;\nexport type $ZodCUIDParams = StringFormatParams<schemas.$ZodCUID, \"when\">;\nexport type $ZodCheckCUIDParams = CheckStringFormatParams<schemas.$ZodCUID, \"when\">;\nexport declare function _cuid<T extends schemas.$ZodCUID>(Class: util.SchemaClass<T>, params?: string | $ZodCUIDParams | $ZodCheckCUIDParams): T;\nexport type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2, \"when\">;\nexport type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2, \"when\">;\nexport declare function _cuid2<T extends schemas.$ZodCUID2>(Class: util.SchemaClass<T>, params?: string | $ZodCUID2Params | $ZodCheckCUID2Params): T;\nexport type $ZodULIDParams = StringFormatParams<schemas.$ZodULID, \"when\">;\nexport type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID, \"when\">;\nexport declare function _ulid<T extends schemas.$ZodULID>(Class: util.SchemaClass<T>, params?: string | $ZodULIDParams | $ZodCheckULIDParams): T;\nexport type $ZodXIDParams = StringFormatParams<schemas.$ZodXID, \"when\">;\nexport type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID, \"when\">;\nexport declare function _xid<T extends schemas.$ZodXID>(Class: util.SchemaClass<T>, params?: string | $ZodXIDParams | $ZodCheckXIDParams): T;\nexport type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID, \"when\">;\nexport type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID, \"when\">;\nexport declare function _ksuid<T extends schemas.$ZodKSUID>(Class: util.SchemaClass<T>, params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams): T;\nexport type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, \"pattern\" | \"when\" | \"version\">;\nexport type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, \"pattern\" | \"when\" | \"version\">;\nexport declare function _ipv4<T extends schemas.$ZodIPv4>(Class: util.SchemaClass<T>, params?: string | $ZodIPv4Params | $ZodCheckIPv4Params): T;\nexport type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, \"pattern\" | \"when\" | \"version\">;\nexport type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, \"pattern\" | \"when\" | \"version\">;\nexport declare function _ipv6<T extends schemas.$ZodIPv6>(Class: util.SchemaClass<T>, params?: string | $ZodIPv6Params | $ZodCheckIPv6Params): T;\nexport type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, \"pattern\" | \"when\">;\nexport type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, \"pattern\" | \"when\">;\nexport declare function _cidrv4<T extends schemas.$ZodCIDRv4>(Class: util.SchemaClass<T>, params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params): T;\nexport type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, \"pattern\" | \"when\">;\nexport type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, \"pattern\" | \"when\">;\nexport declare function _cidrv6<T extends schemas.$ZodCIDRv6>(Class: util.SchemaClass<T>, params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params): T;\nexport type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, \"pattern\" | \"when\">;\nexport type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, \"pattern\" | \"when\">;\nexport declare function _base64<T extends schemas.$ZodBase64>(Class: util.SchemaClass<T>, params?: string | $ZodBase64Params | $ZodCheckBase64Params): T;\nexport type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, \"pattern\" | \"when\">;\nexport type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, \"pattern\" | \"when\">;\nexport declare function _base64url<T extends schemas.$ZodBase64URL>(Class: util.SchemaClass<T>, params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams): T;\nexport type $ZodE164Params = StringFormatParams<schemas.$ZodE164, \"when\">;\nexport type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164, \"when\">;\nexport declare function _e164<T extends schemas.$ZodE164>(Class: util.SchemaClass<T>, params?: string | $ZodE164Params | $ZodCheckE164Params): T;\nexport type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, \"pattern\" | \"when\">;\nexport type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, \"pattern\" | \"when\">;\nexport declare function _jwt<T extends schemas.$ZodJWT>(Class: util.SchemaClass<T>, params?: string | $ZodJWTParams | $ZodCheckJWTParams): T;\nexport declare const TimePrecision: {\n readonly Any: null;\n readonly Minute: -1;\n readonly Second: 0;\n readonly Millisecond: 3;\n readonly Microsecond: 6;\n};\nexport type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, \"pattern\" | \"when\">;\nexport type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, \"pattern\" | \"when\">;\nexport declare function _isoDateTime<T extends schemas.$ZodISODateTime>(Class: util.SchemaClass<T>, params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams): T;\nexport type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, \"pattern\" | \"when\">;\nexport type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, \"pattern\" | \"when\">;\nexport declare function _isoDate<T extends schemas.$ZodISODate>(Class: util.SchemaClass<T>, params?: string | $ZodISODateParams | $ZodCheckISODateParams): T;\nexport type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, \"pattern\" | \"when\">;\nexport type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, \"pattern\" | \"when\">;\nexport declare function _isoTime<T extends schemas.$ZodISOTime>(Class: util.SchemaClass<T>, params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams): T;\nexport type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration, \"when\">;\nexport type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration, \"when\">;\nexport declare function _isoDuration<T extends schemas.$ZodISODuration>(Class: util.SchemaClass<T>, params?: string | $ZodISODurationParams | $ZodCheckISODurationParams): T;\nexport type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, \"coerce\">;\nexport type $ZodNumberFormatParams = CheckTypeParams<schemas.$ZodNumberFormat, \"format\" | \"coerce\">;\nexport type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, \"format\" | \"when\">;\nexport declare function _number<T extends schemas.$ZodNumber>(Class: util.SchemaClass<T>, params?: string | $ZodNumberParams): T;\nexport declare function _coercedNumber<T extends schemas.$ZodNumber>(Class: util.SchemaClass<T>, params?: string | $ZodNumberParams): T;\nexport declare function _int<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;\nexport declare function _float32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;\nexport declare function _float64<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;\nexport declare function _int32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;\nexport declare function _uint32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T;\nexport type $ZodBooleanParams = TypeParams<schemas.$ZodBoolean<boolean>, \"coerce\">;\nexport declare function _boolean<T extends schemas.$ZodBoolean>(Class: util.SchemaClass<T>, params?: string | $ZodBooleanParams): T;\nexport declare function _coercedBoolean<T extends schemas.$ZodBoolean>(Class: util.SchemaClass<T>, params?: string | $ZodBooleanParams): T;\nexport type $ZodBigIntParams = TypeParams<schemas.$ZodBigInt<bigint>>;\nexport type $ZodBigIntFormatParams = CheckTypeParams<schemas.$ZodBigIntFormat, \"format\" | \"coerce\">;\nexport type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, \"format\" | \"when\">;\nexport declare function _bigint<T extends schemas.$ZodBigInt>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntParams): T;\nexport declare function _coercedBigint<T extends schemas.$ZodBigInt>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntParams): T;\nexport declare function _int64<T extends schemas.$ZodBigIntFormat>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;\nexport declare function _uint64<T extends schemas.$ZodBigIntFormat>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T;\nexport type $ZodSymbolParams = TypeParams<schemas.$ZodSymbol>;\nexport declare function _symbol<T extends schemas.$ZodSymbol>(Class: util.SchemaClass<T>, params?: string | $ZodSymbolParams): T;\nexport type $ZodUndefinedParams = TypeParams<schemas.$ZodUndefined>;\nexport declare function _undefined<T extends schemas.$ZodUndefined>(Class: util.SchemaClass<T>, params?: string | $ZodUndefinedParams): T;\nexport type $ZodNullParams = TypeParams<schemas.$ZodNull>;\nexport declare function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, params?: string | $ZodNullParams): T;\nexport type $ZodAnyParams = TypeParams<schemas.$ZodAny>;\nexport declare function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T;\nexport type $ZodUnknownParams = TypeParams<schemas.$ZodUnknown>;\nexport declare function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<T>): T;\nexport type $ZodNeverParams = TypeParams<schemas.$ZodNever>;\nexport declare function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>, params?: string | $ZodNeverParams): T;\nexport type $ZodVoidParams = TypeParams<schemas.$ZodVoid>;\nexport declare function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, params?: string | $ZodVoidParams): T;\nexport type $ZodDateParams = TypeParams<schemas.$ZodDate, \"coerce\">;\nexport declare function _date<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T;\nexport declare function _coercedDate<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T;\nexport type $ZodNaNParams = TypeParams<schemas.$ZodNaN>;\nexport declare function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, params?: string | $ZodNaNParams): T;\nexport type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, \"inclusive\" | \"value\" | \"when\">;\nexport declare function _lt(value: util.Numeric, params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan<util.Numeric>;\nexport declare function _lte(value: util.Numeric, params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan<util.Numeric>;\nexport { \n/** @deprecated Use `z.lte()` instead. */\n_lte as _max, };\nexport type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, \"inclusive\" | \"value\" | \"when\">;\nexport declare function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan;\nexport declare function _gte(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan;\nexport { \n/** @deprecated Use `z.gte()` instead. */\n_gte as _min, };\nexport declare function _positive(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan;\nexport declare function _negative(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan;\nexport declare function _nonpositive(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan;\nexport declare function _nonnegative(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan;\nexport type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, \"value\" | \"when\">;\nexport declare function _multipleOf(value: number | bigint, params?: string | $ZodCheckMultipleOfParams): checks.$ZodCheckMultipleOf;\nexport type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, \"maximum\" | \"when\">;\nexport declare function _maxSize(maximum: number, params?: string | $ZodCheckMaxSizeParams): checks.$ZodCheckMaxSize<util.HasSize>;\nexport type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, \"minimum\" | \"when\">;\nexport declare function _minSize(minimum: number, params?: string | $ZodCheckMinSizeParams): checks.$ZodCheckMinSize<util.HasSize>;\nexport type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, \"size\" | \"when\">;\nexport declare function _size(size: number, params?: string | $ZodCheckSizeEqualsParams): checks.$ZodCheckSizeEquals<util.HasSize>;\nexport type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, \"maximum\" | \"when\">;\nexport declare function _maxLength(maximum: number, params?: string | $ZodCheckMaxLengthParams): checks.$ZodCheckMaxLength<util.HasLength>;\nexport type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, \"minimum\" | \"when\">;\nexport declare function _minLength(minimum: number, params?: string | $ZodCheckMinLengthParams): checks.$ZodCheckMinLength<util.HasLength>;\nexport type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, \"length\" | \"when\">;\nexport declare function _length(length: number, params?: string | $ZodCheckLengthEqualsParams): checks.$ZodCheckLengthEquals<util.HasLength>;\nexport type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, \"format\" | \"pattern\" | \"when\">;\nexport declare function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): checks.$ZodCheckRegex;\nexport type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, \"format\" | \"when\">;\nexport declare function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$ZodCheckLowerCase;\nexport type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, \"format\" | \"when\">;\nexport declare function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$ZodCheckUpperCase;\nexport type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, \"includes\" | \"format\" | \"when\" | \"pattern\">;\nexport declare function _includes(includes: string, params?: string | $ZodCheckIncludesParams): checks.$ZodCheckIncludes;\nexport type $ZodCheckStartsWithParams = CheckParams<checks.$ZodCheckStartsWith, \"prefix\" | \"format\" | \"when\" | \"pattern\">;\nexport declare function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): checks.$ZodCheckStartsWith;\nexport type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, \"suffix\" | \"format\" | \"pattern\" | \"when\">;\nexport declare function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): checks.$ZodCheckEndsWith;\nexport type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, \"property\" | \"schema\" | \"when\">;\nexport declare function _property<K extends string, T extends schemas.$ZodType>(property: K, schema: T, params?: string | $ZodCheckPropertyParams): checks.$ZodCheckProperty<{\n [k in K]: core.output<T>;\n}>;\nexport type $ZodCheckMimeTypeParams = CheckParams<checks.$ZodCheckMimeType, \"mime\" | \"when\">;\nexport declare function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTypeParams): checks.$ZodCheckMimeType;\nexport declare function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T>;\nexport declare function _normalize(form?: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\" | (string & {})): checks.$ZodCheckOverwrite<string>;\nexport declare function _trim(): checks.$ZodCheckOverwrite<string>;\nexport declare function _toLowerCase(): checks.$ZodCheckOverwrite<string>;\nexport declare function _toUpperCase(): checks.$ZodCheckOverwrite<string>;\nexport type $ZodArrayParams = TypeParams<schemas.$ZodArray, \"element\">;\nexport declare function _array<T extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodArray>, element: T, params?: string | $ZodArrayParams): schemas.$ZodArray<T>;\nexport type $ZodObjectParams = TypeParams<schemas.$ZodObject, \"shape\" | \"catchall\">;\nexport type $ZodUnionParams = TypeParams<schemas.$ZodUnion, \"options\">;\nexport declare function _union<const T extends readonly schemas.$ZodObject[]>(Class: util.SchemaClass<schemas.$ZodUnion>, options: T, params?: string | $ZodUnionParams): schemas.$ZodUnion<T>;\nexport interface $ZodTypeDiscriminableInternals extends schemas.$ZodTypeInternals {\n propValues: util.PropValues;\n}\nexport interface $ZodTypeDiscriminable extends schemas.$ZodType {\n _zod: $ZodTypeDiscriminableInternals;\n}\nexport type $ZodDiscriminatedUnionParams = TypeParams<schemas.$ZodDiscriminatedUnion, \"options\" | \"discriminator\">;\nexport declare function _discriminatedUnion<Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]], Disc extends string>(Class: util.SchemaClass<schemas.$ZodDiscriminatedUnion>, discriminator: Disc, options: Types, params?: string | $ZodDiscriminatedUnionParams): schemas.$ZodDiscriminatedUnion<Types, Disc>;\nexport type $ZodIntersectionParams = TypeParams<schemas.$ZodIntersection, \"left\" | \"right\">;\nexport declare function _intersection<T extends schemas.$ZodObject, U extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodIntersection>, left: T, right: U): schemas.$ZodIntersection<T, U>;\nexport type $ZodTupleParams = TypeParams<schemas.$ZodTuple, \"items\" | \"rest\">;\nexport declare function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]]>(Class: util.SchemaClass<schemas.$ZodTuple>, items: T, params?: string | $ZodTupleParams): schemas.$ZodTuple<T, null>;\nexport declare function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]], Rest extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodTuple>, items: T, rest: Rest, params?: string | $ZodTupleParams): schemas.$ZodTuple<T, Rest>;\nexport type $ZodRecordParams = TypeParams<schemas.$ZodRecord, \"keyType\" | \"valueType\">;\nexport declare function _record<Key extends schemas.$ZodRecordKey, Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodRecord>, keyType: Key, valueType: Value, params?: string | $ZodRecordParams): schemas.$ZodRecord<Key, Value>;\nexport type $ZodMapParams = TypeParams<schemas.$ZodMap, \"keyType\" | \"valueType\">;\nexport declare function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodMap>, keyType: Key, valueType: Value, params?: string | $ZodMapParams): schemas.$ZodMap<Key, Value>;\nexport type $ZodSetParams = TypeParams<schemas.$ZodSet, \"valueType\">;\nexport declare function _set<Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodSet>, valueType: Value, params?: string | $ZodSetParams): schemas.$ZodSet<Value>;\nexport type $ZodEnumParams = TypeParams<schemas.$ZodEnum, \"entries\">;\nexport declare function _enum<const T extends string[]>(Class: util.SchemaClass<schemas.$ZodEnum>, values: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<util.ToEnum<T[number]>>;\nexport declare function _enum<T extends util.EnumLike>(Class: util.SchemaClass<schemas.$ZodEnum>, entries: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<T>;\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport declare function _nativeEnum<T extends util.EnumLike>(Class: util.SchemaClass<schemas.$ZodEnum>, entries: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<T>;\nexport type $ZodLiteralParams = TypeParams<schemas.$ZodLiteral, \"values\">;\nexport declare function _literal<const T extends Array<util.Literal>>(Class: util.SchemaClass<schemas.$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): schemas.$ZodLiteral<T[number]>;\nexport declare function _literal<const T extends util.Literal>(Class: util.SchemaClass<schemas.$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): schemas.$ZodLiteral<T>;\nexport type $ZodFileParams = TypeParams<schemas.$ZodFile>;\nexport declare function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string | $ZodFileParams): schemas.$ZodFile;\nexport type $ZodTransformParams = TypeParams<schemas.$ZodTransform, \"transform\">;\nexport declare function _transform<I = unknown, O = I>(Class: util.SchemaClass<schemas.$ZodTransform>, fn: (input: I, ctx?: schemas.ParsePayload) => O): schemas.$ZodTransform<Awaited<O>, I>;\nexport type $ZodOptionalParams = TypeParams<schemas.$ZodOptional, \"innerType\">;\nexport declare function _optional<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodOptional>, innerType: T): schemas.$ZodOptional<T>;\nexport type $ZodNullableParams = TypeParams<schemas.$ZodNullable, \"innerType\">;\nexport declare function _nullable<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodNullable>, innerType: T): schemas.$ZodNullable<T>;\nexport type $ZodDefaultParams = TypeParams<schemas.$ZodDefault, \"innerType\" | \"defaultValue\">;\nexport declare function _default<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodDefault>, innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): schemas.$ZodDefault<T>;\nexport type $ZodNonOptionalParams = TypeParams<schemas.$ZodNonOptional, \"innerType\">;\nexport declare function _nonoptional<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodNonOptional>, innerType: T, params?: string | $ZodNonOptionalParams): schemas.$ZodNonOptional<T>;\nexport type $ZodSuccessParams = TypeParams<schemas.$ZodSuccess, \"innerType\">;\nexport declare function _success<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodSuccess>, innerType: T): schemas.$ZodSuccess<T>;\nexport type $ZodCatchParams = TypeParams<schemas.$ZodCatch, \"innerType\" | \"catchValue\">;\nexport declare function _catch<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodCatch>, innerType: T, catchValue: core.output<T> | ((ctx: schemas.$ZodCatchCtx) => core.output<T>)): schemas.$ZodCatch<T>;\nexport type $ZodPipeParams = TypeParams<schemas.$ZodPipe, \"in\" | \"out\">;\nexport declare function _pipe<const A extends schemas.$ZodType, B extends schemas.$ZodType<unknown, core.output<A>> = schemas.$ZodType<unknown, core.output<A>>>(Class: util.SchemaClass<schemas.$ZodPipe>, in_: A, out: B | schemas.$ZodType<unknown, core.output<A>>): schemas.$ZodPipe<A, B>;\nexport type $ZodReadonlyParams = TypeParams<schemas.$ZodReadonly, \"innerType\">;\nexport declare function _readonly<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodReadonly>, innerType: T): schemas.$ZodReadonly<T>;\nexport type $ZodTemplateLiteralParams = TypeParams<schemas.$ZodTemplateLiteral, \"parts\">;\nexport declare function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteralPart[]>(Class: util.SchemaClass<schemas.$ZodTemplateLiteral>, parts: Parts, params?: string | $ZodTemplateLiteralParams): schemas.$ZodTemplateLiteral<schemas.$PartsToTemplateLiteral<Parts>>;\nexport type $ZodLazyParams = TypeParams<schemas.$ZodLazy, \"getter\">;\nexport declare function _lazy<T extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodLazy>, getter: () => T): schemas.$ZodLazy<T>;\nexport type $ZodPromiseParams = TypeParams<schemas.$ZodPromise, \"innerType\">;\nexport declare function _promise<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodPromise>, innerType: T): schemas.$ZodPromise<T>;\nexport type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, \"fn\">;\nexport declare function _custom<O = unknown, I = O>(Class: util.SchemaClass<schemas.$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): schemas.$ZodCustom<O, I>;\nexport declare function _refine<O = unknown, I = O>(Class: util.SchemaClass<schemas.$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): schemas.$ZodCustom<O, I>;\nexport type $ZodSuperRefineIssue<T extends errors.$ZodIssueBase = errors.$ZodIssue> = T extends any ? RawIssue<T> : never;\ntype RawIssue<T extends errors.$ZodIssueBase> = T extends any ? util.Flatten<util.MakePartial<T, \"message\" | \"path\"> & {\n /** The schema or check that originated this issue. */\n readonly inst?: schemas.$ZodType | checks.$ZodCheck;\n /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */\n readonly continue?: boolean | undefined;\n} & Record<string, unknown>> : never;\nexport interface $RefinementCtx<T = unknown> extends schemas.ParsePayload<T> {\n addIssue(arg: string | $ZodSuperRefineIssue): void;\n}\nexport declare function _superRefine<T>(fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>): checks.$ZodCheck<T>;\nexport declare function _check<O = unknown>(fn: schemas.CheckFn<O>, params?: string | $ZodCustomParams): checks.$ZodCheck<O>;\nexport interface $ZodStringBoolParams extends TypeParams {\n truthy?: string[];\n falsy?: string[];\n /**\n * Options: `\"sensitive\"`, `\"insensitive\"`\n *\n * @default `\"insensitive\"`\n */\n case?: \"sensitive\" | \"insensitive\" | undefined;\n}\nexport declare function _stringbool(Classes: {\n Codec?: typeof schemas.$ZodCodec;\n Boolean?: typeof schemas.$ZodBoolean;\n String?: typeof schemas.$ZodString;\n}, _params?: string | $ZodStringBoolParams): schemas.$ZodCodec<schemas.$ZodString, schemas.$ZodBoolean>;\nexport declare function _stringFormat<Format extends string>(Class: typeof schemas.$ZodCustomStringFormat, format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): schemas.$ZodCustomStringFormat<Format>;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;KAKYK,iBAAiBF,WAAmBH,8BAAqCE,sCAA6CI,4BAA4BF,QAAaW,QAAQX,aAAkBQ,KAAKN,kBAAkBE,cAAcD;EAA9NF,KAAAA,CAAAA,EAAAA,MAAM,GACGH,YADHM,CACuBD,UADvB,CAAA,GAAA,SAAA;EAAWJ;EAAmBH,OAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;CAAqCE,CAAAA,CAAAA,CAAAA,CAAAA;AAA6CI,KAKtHW,UALsHX,CAAAA,UAKjGH,QALiGG,GAK9EH,QAL8EG,GAAAA;EAAwEA,KAAAA,EAAAA,KAAAA;CAAkBE,EAAAA,iBAOxMW,OAPwMX,CAAAA,MAO1L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