@interfere/types 9.0.0 → 9.0.3-canary.0
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 +3 -3
- package/dist/data/frame.cjs +1 -0
- package/dist/data/frame.d.cts +27 -0
- package/dist/data/frame.d.mts +18 -5
- package/dist/data/frame.mjs +2 -16
- package/dist/data/session.cjs +1 -0
- package/dist/data/session.d.cts +8 -0
- package/dist/data/session.d.mts +3 -2
- package/dist/data/session.mjs +2 -9
- package/dist/data/source-maps.cjs +1 -0
- package/dist/data/source-maps.d.cts +151 -0
- package/dist/data/source-maps.d.mts +138 -27
- package/dist/data/source-maps.mjs +2 -21
- package/dist/events/error.cjs +1 -0
- package/dist/events/error.d.cts +196 -0
- package/dist/events/error.d.mts +140 -35
- package/dist/events/error.mjs +2 -64
- package/dist/events/pageleave.cjs +1 -0
- package/dist/events/pageleave.d.cts +13 -0
- package/dist/events/pageleave.d.mts +3 -2
- package/dist/events/pageleave.mjs +2 -10
- package/dist/events/pageview.cjs +1 -0
- package/dist/events/pageview.d.cts +14 -0
- package/dist/events/pageview.d.mts +3 -2
- package/dist/events/pageview.mjs +2 -11
- package/dist/integrations/index.cjs +1 -0
- package/dist/integrations/index.d.cts +48 -0
- package/dist/integrations/index.d.mts +2 -1
- package/dist/integrations/index.mjs +2 -57
- package/dist/integrations/platforms/cli.cjs +1 -0
- package/dist/integrations/platforms/cli.d.cts +12 -0
- package/dist/integrations/platforms/cli.d.mts +12 -0
- package/dist/integrations/platforms/cli.mjs +2 -0
- package/dist/integrations/platforms/github.cjs +1 -0
- package/dist/integrations/platforms/github.d.cts +16 -0
- package/dist/integrations/platforms/github.d.mts +2 -1
- package/dist/integrations/platforms/github.mjs +2 -13
- package/dist/integrations/platforms/slack.cjs +1 -0
- package/dist/integrations/platforms/slack.d.cts +33 -0
- package/dist/integrations/platforms/slack.d.mts +33 -0
- package/dist/integrations/platforms/slack.mjs +2 -0
- package/dist/integrations/platforms/vercel.cjs +1 -0
- package/dist/integrations/platforms/vercel.d.cts +47 -0
- package/dist/integrations/platforms/vercel.d.mts +2 -1
- package/dist/integrations/platforms/vercel.mjs +2 -26
- package/dist/releases/definition.cjs +1 -0
- package/dist/releases/definition.d.cts +57 -0
- package/dist/releases/definition.d.mts +4 -2
- package/dist/releases/definition.mjs +2 -63
- package/dist/releases/slug.cjs +1 -0
- package/dist/releases/slug.d.cts +24 -0
- package/dist/releases/slug.d.mts +24 -0
- package/dist/releases/slug.mjs +2 -0
- package/dist/sdk/env.cjs +1 -0
- package/dist/sdk/env.d.cts +6 -0
- package/dist/sdk/env.d.mts +2 -1
- package/dist/sdk/env.mjs +2 -17
- package/dist/sdk/envelope.cjs +1 -0
- package/dist/sdk/envelope.d.cts +1489 -0
- package/dist/sdk/envelope.d.mts +163 -35
- package/dist/sdk/envelope.mjs +2 -114
- package/dist/sdk/errors.cjs +2 -0
- package/dist/sdk/errors.d.cts +154 -0
- package/dist/sdk/errors.d.mts +88 -30
- package/dist/sdk/errors.mjs +3 -253
- package/dist/sdk/geo.cjs +1 -0
- package/dist/sdk/geo.d.cts +11 -0
- package/dist/sdk/geo.d.mts +2 -1
- package/dist/sdk/geo.mjs +2 -17
- package/dist/sdk/identify.cjs +1 -0
- package/dist/sdk/identify.d.cts +35 -0
- package/dist/sdk/identify.d.mts +3 -2
- package/dist/sdk/identify.mjs +2 -43
- package/dist/sdk/plugins/context/browser.cjs +1 -0
- package/dist/sdk/plugins/context/browser.d.cts +92 -0
- package/dist/sdk/plugins/context/browser.d.mts +10 -1
- package/dist/sdk/plugins/context/browser.mjs +2 -81
- package/dist/sdk/plugins/context/edge.cjs +1 -0
- package/dist/sdk/plugins/context/edge.d.cts +10 -0
- package/dist/sdk/plugins/context/edge.d.mts +2 -1
- package/dist/sdk/plugins/context/edge.mjs +2 -9
- package/dist/sdk/plugins/context/next.cjs +1 -0
- package/dist/sdk/plugins/context/next.d.cts +62 -0
- package/dist/sdk/plugins/context/next.d.mts +2 -1
- package/dist/sdk/plugins/context/next.mjs +2 -50
- package/dist/sdk/plugins/context/node.cjs +1 -0
- package/dist/sdk/plugins/context/node.d.cts +13 -0
- package/dist/sdk/plugins/context/node.d.mts +13 -0
- package/dist/sdk/plugins/context/node.mjs +2 -0
- package/dist/sdk/plugins/manifest.cjs +1 -0
- package/dist/sdk/plugins/manifest.d.cts +60 -0
- package/dist/sdk/plugins/manifest.d.mts +7 -1
- package/dist/sdk/plugins/manifest.mjs +2 -62
- package/dist/sdk/plugins/payload/errors.cjs +1 -0
- package/dist/sdk/plugins/payload/errors.d.cts +65 -0
- package/dist/sdk/plugins/payload/errors.d.mts +29 -19
- package/dist/sdk/plugins/payload/errors.mjs +2 -37
- package/dist/sdk/plugins/payload/page-events.cjs +1 -0
- package/dist/sdk/plugins/payload/page-events.d.cts +20 -0
- package/dist/sdk/plugins/payload/page-events.d.mts +4 -3
- package/dist/sdk/plugins/payload/page-events.mjs +2 -25
- package/dist/sdk/plugins/payload/rage-click.cjs +1 -0
- package/dist/sdk/plugins/payload/rage-click.d.cts +16 -0
- package/dist/sdk/plugins/payload/rage-click.d.mts +2 -1
- package/dist/sdk/plugins/payload/rage-click.mjs +2 -17
- package/dist/sdk/plugins/payload/replay.cjs +1 -0
- package/dist/sdk/plugins/payload/replay.d.cts +14 -0
- package/dist/sdk/plugins/payload/replay.d.mts +2 -1
- package/dist/sdk/plugins/payload/replay.mjs +2 -17
- package/dist/sdk/remote-config.cjs +1 -0
- package/dist/sdk/remote-config.d.cts +39 -0
- package/dist/sdk/remote-config.d.mts +32 -4
- package/dist/sdk/remote-config.mjs +2 -5
- package/dist/sdk/runtime.cjs +1 -0
- package/dist/sdk/runtime.d.cts +22 -0
- package/dist/sdk/runtime.d.mts +2 -1
- package/dist/sdk/runtime.mjs +2 -35
- package/package.json +122 -53
- package/dist/data/frame.d.mts.map +0 -1
- package/dist/data/frame.mjs.map +0 -1
- package/dist/data/session.d.mts.map +0 -1
- package/dist/data/session.mjs.map +0 -1
- package/dist/data/source-maps.d.mts.map +0 -1
- package/dist/data/source-maps.mjs.map +0 -1
- package/dist/events/error.d.mts.map +0 -1
- package/dist/events/error.mjs.map +0 -1
- package/dist/events/pageleave.d.mts.map +0 -1
- package/dist/events/pageleave.mjs.map +0 -1
- package/dist/events/pageview.d.mts.map +0 -1
- package/dist/events/pageview.mjs.map +0 -1
- package/dist/integrations/index.d.mts.map +0 -1
- package/dist/integrations/index.mjs.map +0 -1
- package/dist/integrations/platforms/github.d.mts.map +0 -1
- package/dist/integrations/platforms/github.mjs.map +0 -1
- package/dist/integrations/platforms/vercel.d.mts.map +0 -1
- package/dist/integrations/platforms/vercel.mjs.map +0 -1
- package/dist/releases/definition.d.mts.map +0 -1
- package/dist/releases/definition.mjs.map +0 -1
- package/dist/sdk/env.d.mts.map +0 -1
- package/dist/sdk/env.mjs.map +0 -1
- package/dist/sdk/envelope.d.mts.map +0 -1
- package/dist/sdk/envelope.mjs.map +0 -1
- package/dist/sdk/errors.d.mts.map +0 -1
- package/dist/sdk/errors.mjs.map +0 -1
- package/dist/sdk/geo.d.mts.map +0 -1
- package/dist/sdk/geo.mjs.map +0 -1
- package/dist/sdk/identify.d.mts.map +0 -1
- package/dist/sdk/identify.mjs.map +0 -1
- package/dist/sdk/plugins/context/browser.d.mts.map +0 -1
- package/dist/sdk/plugins/context/browser.mjs.map +0 -1
- package/dist/sdk/plugins/context/edge.d.mts.map +0 -1
- package/dist/sdk/plugins/context/edge.mjs.map +0 -1
- package/dist/sdk/plugins/context/next.d.mts.map +0 -1
- package/dist/sdk/plugins/context/next.mjs.map +0 -1
- package/dist/sdk/plugins/manifest.d.mts.map +0 -1
- package/dist/sdk/plugins/manifest.mjs.map +0 -1
- package/dist/sdk/plugins/payload/errors.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/errors.mjs.map +0 -1
- package/dist/sdk/plugins/payload/page-events.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/page-events.mjs.map +0 -1
- package/dist/sdk/plugins/payload/rage-click.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/rage-click.mjs.map +0 -1
- package/dist/sdk/plugins/payload/replay.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/replay.mjs.map +0 -1
- package/dist/sdk/remote-config.d.mts.map +0 -1
- package/dist/sdk/remote-config.mjs.map +0 -1
- package/dist/sdk/runtime.d.mts.map +0 -1
- package/dist/sdk/runtime.mjs.map +0 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/events/error.d.ts
|
|
4
|
+
declare const resolvedFrameSchema: z.ZodObject<{
|
|
5
|
+
ingestedId: z.ZodString;
|
|
6
|
+
inApp: z.ZodBoolean;
|
|
7
|
+
file: z.ZodNullable<z.ZodString>;
|
|
8
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
11
|
+
resolved: z.ZodLiteral<true>;
|
|
12
|
+
originalFile: z.ZodNullable<z.ZodString>;
|
|
13
|
+
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const unresolvedFrameSchema: z.ZodObject<{
|
|
18
|
+
ingestedId: z.ZodString;
|
|
19
|
+
inApp: z.ZodBoolean;
|
|
20
|
+
file: z.ZodNullable<z.ZodString>;
|
|
21
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
24
|
+
resolved: z.ZodLiteral<false>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const enrichedFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
ingestedId: z.ZodString;
|
|
28
|
+
inApp: z.ZodBoolean;
|
|
29
|
+
file: z.ZodNullable<z.ZodString>;
|
|
30
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
33
|
+
resolved: z.ZodLiteral<true>;
|
|
34
|
+
originalFile: z.ZodNullable<z.ZodString>;
|
|
35
|
+
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
ingestedId: z.ZodString;
|
|
40
|
+
inApp: z.ZodBoolean;
|
|
41
|
+
file: z.ZodNullable<z.ZodString>;
|
|
42
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
45
|
+
resolved: z.ZodLiteral<false>;
|
|
46
|
+
}, z.core.$strip>], "resolved">;
|
|
47
|
+
type EnrichedFrame = z.infer<typeof enrichedFrameSchema>;
|
|
48
|
+
type ResolvedFrame = z.infer<typeof resolvedFrameSchema>;
|
|
49
|
+
type UnresolvedFrame = z.infer<typeof unresolvedFrameSchema>;
|
|
50
|
+
declare const errorMechanismSchema: z.ZodObject<{
|
|
51
|
+
type: z.ZodString;
|
|
52
|
+
handled: z.ZodBoolean;
|
|
53
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type ErrorMechanism = z.infer<typeof errorMechanismSchema>;
|
|
56
|
+
declare const errorContextSchema: z.ZodObject<{
|
|
57
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
58
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
"App Router": "App Router";
|
|
60
|
+
"Pages Router": "Pages Router";
|
|
61
|
+
}>>;
|
|
62
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
63
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
action: "action";
|
|
65
|
+
middleware: "middleware";
|
|
66
|
+
proxy: "proxy";
|
|
67
|
+
render: "render";
|
|
68
|
+
route: "route";
|
|
69
|
+
}>>;
|
|
70
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
"react-server-components": "react-server-components";
|
|
72
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
73
|
+
"server-rendering": "server-rendering";
|
|
74
|
+
}>>;
|
|
75
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
"on-demand": "on-demand";
|
|
77
|
+
stale: "stale";
|
|
78
|
+
}>>;
|
|
79
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
dynamic: "dynamic";
|
|
81
|
+
"dynamic-resume": "dynamic-resume";
|
|
82
|
+
}>>;
|
|
83
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
84
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
85
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const errorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
88
|
+
message: z.ZodNullable<z.ZodString>;
|
|
89
|
+
name: z.ZodNullable<z.ZodString>;
|
|
90
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
91
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
93
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
"App Router": "App Router";
|
|
95
|
+
"Pages Router": "Pages Router";
|
|
96
|
+
}>>;
|
|
97
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
98
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
action: "action";
|
|
100
|
+
middleware: "middleware";
|
|
101
|
+
proxy: "proxy";
|
|
102
|
+
render: "render";
|
|
103
|
+
route: "route";
|
|
104
|
+
}>>;
|
|
105
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
"react-server-components": "react-server-components";
|
|
107
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
108
|
+
"server-rendering": "server-rendering";
|
|
109
|
+
}>>;
|
|
110
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
"on-demand": "on-demand";
|
|
112
|
+
stale: "stale";
|
|
113
|
+
}>>;
|
|
114
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
dynamic: "dynamic";
|
|
116
|
+
"dynamic-resume": "dynamic-resume";
|
|
117
|
+
}>>;
|
|
118
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
119
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
120
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
type: z.ZodString;
|
|
124
|
+
handled: z.ZodBoolean;
|
|
125
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
captureSource: z.ZodOptional<z.ZodString>;
|
|
128
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
129
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodOptional<z.ZodString>;
|
|
131
|
+
file: z.ZodOptional<z.ZodString>;
|
|
132
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
133
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
source: z.ZodOptional<z.ZodString>;
|
|
136
|
+
debugId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
capture: z.ZodLiteral<"error">;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
message: z.ZodNullable<z.ZodString>;
|
|
141
|
+
name: z.ZodNullable<z.ZodString>;
|
|
142
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
143
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
145
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
"App Router": "App Router";
|
|
147
|
+
"Pages Router": "Pages Router";
|
|
148
|
+
}>>;
|
|
149
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
150
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
action: "action";
|
|
152
|
+
middleware: "middleware";
|
|
153
|
+
proxy: "proxy";
|
|
154
|
+
render: "render";
|
|
155
|
+
route: "route";
|
|
156
|
+
}>>;
|
|
157
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
"react-server-components": "react-server-components";
|
|
159
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
160
|
+
"server-rendering": "server-rendering";
|
|
161
|
+
}>>;
|
|
162
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
"on-demand": "on-demand";
|
|
164
|
+
stale: "stale";
|
|
165
|
+
}>>;
|
|
166
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
dynamic: "dynamic";
|
|
168
|
+
"dynamic-resume": "dynamic-resume";
|
|
169
|
+
}>>;
|
|
170
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
171
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
172
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
type: z.ZodString;
|
|
176
|
+
handled: z.ZodBoolean;
|
|
177
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
captureSource: z.ZodOptional<z.ZodString>;
|
|
180
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
181
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
182
|
+
id: z.ZodOptional<z.ZodString>;
|
|
183
|
+
file: z.ZodOptional<z.ZodString>;
|
|
184
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
185
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
source: z.ZodOptional<z.ZodString>;
|
|
188
|
+
debugId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
capture: z.ZodLiteral<"non-error">;
|
|
191
|
+
serialized: z.ZodJSONSchema;
|
|
192
|
+
}, z.core.$strip>], "capture">;
|
|
193
|
+
type ErrorPayload = z.infer<typeof errorPayloadSchema>;
|
|
194
|
+
//#endregion
|
|
195
|
+
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
196
|
+
//# sourceMappingURL=error.d.cts.map
|
package/dist/events/error.d.mts
CHANGED
|
@@ -1,52 +1,145 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/events/error.d.ts
|
|
4
|
-
declare const
|
|
4
|
+
declare const resolvedFrameSchema: z.ZodObject<{
|
|
5
|
+
ingestedId: z.ZodString;
|
|
6
|
+
inApp: z.ZodBoolean;
|
|
5
7
|
file: z.ZodNullable<z.ZodString>;
|
|
6
8
|
line: z.ZodNullable<z.ZodNumber>;
|
|
7
9
|
column: z.ZodNullable<z.ZodNumber>;
|
|
8
10
|
fn: z.ZodNullable<z.ZodString>;
|
|
11
|
+
resolved: z.ZodLiteral<true>;
|
|
9
12
|
originalFile: z.ZodNullable<z.ZodString>;
|
|
10
13
|
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
11
14
|
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
12
15
|
originalName: z.ZodNullable<z.ZodString>;
|
|
13
|
-
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const unresolvedFrameSchema: z.ZodObject<{
|
|
18
|
+
ingestedId: z.ZodString;
|
|
14
19
|
inApp: z.ZodBoolean;
|
|
15
|
-
|
|
20
|
+
file: z.ZodNullable<z.ZodString>;
|
|
21
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
24
|
+
resolved: z.ZodLiteral<false>;
|
|
16
25
|
}, z.core.$strip>;
|
|
26
|
+
declare const enrichedFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
ingestedId: z.ZodString;
|
|
28
|
+
inApp: z.ZodBoolean;
|
|
29
|
+
file: z.ZodNullable<z.ZodString>;
|
|
30
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
33
|
+
resolved: z.ZodLiteral<true>;
|
|
34
|
+
originalFile: z.ZodNullable<z.ZodString>;
|
|
35
|
+
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
ingestedId: z.ZodString;
|
|
40
|
+
inApp: z.ZodBoolean;
|
|
41
|
+
file: z.ZodNullable<z.ZodString>;
|
|
42
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
45
|
+
resolved: z.ZodLiteral<false>;
|
|
46
|
+
}, z.core.$strip>], "resolved">;
|
|
17
47
|
type EnrichedFrame = z.infer<typeof enrichedFrameSchema>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
type ResolvedFrame = z.infer<typeof resolvedFrameSchema>;
|
|
49
|
+
type UnresolvedFrame = z.infer<typeof unresolvedFrameSchema>;
|
|
50
|
+
declare const errorMechanismSchema: z.ZodObject<{
|
|
51
|
+
type: z.ZodString;
|
|
52
|
+
handled: z.ZodBoolean;
|
|
53
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type ErrorMechanism = z.infer<typeof errorMechanismSchema>;
|
|
56
|
+
declare const errorContextSchema: z.ZodObject<{
|
|
57
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
58
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
"App Router": "App Router";
|
|
60
|
+
"Pages Router": "Pages Router";
|
|
61
|
+
}>>;
|
|
62
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
63
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
action: "action";
|
|
65
|
+
middleware: "middleware";
|
|
66
|
+
proxy: "proxy";
|
|
67
|
+
render: "render";
|
|
68
|
+
route: "route";
|
|
69
|
+
}>>;
|
|
70
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
"react-server-components": "react-server-components";
|
|
72
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
73
|
+
"server-rendering": "server-rendering";
|
|
74
|
+
}>>;
|
|
75
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
"on-demand": "on-demand";
|
|
77
|
+
stale: "stale";
|
|
78
|
+
}>>;
|
|
79
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
dynamic: "dynamic";
|
|
81
|
+
"dynamic-resume": "dynamic-resume";
|
|
82
|
+
}>>;
|
|
83
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
84
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
85
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const errorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
88
|
message: z.ZodNullable<z.ZodString>;
|
|
43
89
|
name: z.ZodNullable<z.ZodString>;
|
|
44
90
|
stack: z.ZodNullable<z.ZodString>;
|
|
91
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
framework: z.ZodOptional<z.ZodString>;
|
|
93
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
"App Router": "App Router";
|
|
95
|
+
"Pages Router": "Pages Router";
|
|
96
|
+
}>>;
|
|
97
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
98
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
action: "action";
|
|
100
|
+
middleware: "middleware";
|
|
101
|
+
proxy: "proxy";
|
|
102
|
+
render: "render";
|
|
103
|
+
route: "route";
|
|
104
|
+
}>>;
|
|
105
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
"react-server-components": "react-server-components";
|
|
107
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
108
|
+
"server-rendering": "server-rendering";
|
|
109
|
+
}>>;
|
|
110
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
"on-demand": "on-demand";
|
|
112
|
+
stale: "stale";
|
|
113
|
+
}>>;
|
|
114
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
dynamic: "dynamic";
|
|
116
|
+
"dynamic-resume": "dynamic-resume";
|
|
117
|
+
}>>;
|
|
118
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
119
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
120
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
45
122
|
mechanism: z.ZodOptional<z.ZodObject<{
|
|
46
123
|
type: z.ZodString;
|
|
47
124
|
handled: z.ZodBoolean;
|
|
48
125
|
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
49
126
|
}, z.core.$strip>>;
|
|
127
|
+
captureSource: z.ZodOptional<z.ZodString>;
|
|
128
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
129
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
130
|
+
id: z.ZodOptional<z.ZodString>;
|
|
131
|
+
file: z.ZodOptional<z.ZodString>;
|
|
132
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
133
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
source: z.ZodOptional<z.ZodString>;
|
|
136
|
+
debugId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
capture: z.ZodLiteral<"error">;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
message: z.ZodNullable<z.ZodString>;
|
|
141
|
+
name: z.ZodNullable<z.ZodString>;
|
|
142
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
50
143
|
context: z.ZodOptional<z.ZodObject<{
|
|
51
144
|
framework: z.ZodOptional<z.ZodString>;
|
|
52
145
|
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -78,14 +171,26 @@ declare const errorFactsPayloadSchema: z.ZodObject<{
|
|
|
78
171
|
requestMethod: z.ZodOptional<z.ZodString>;
|
|
79
172
|
errorDigest: z.ZodOptional<z.ZodString>;
|
|
80
173
|
}, z.core.$strip>>;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
174
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
type: z.ZodString;
|
|
176
|
+
handled: z.ZodBoolean;
|
|
177
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
85
178
|
}, z.core.$strip>>;
|
|
179
|
+
captureSource: z.ZodOptional<z.ZodString>;
|
|
86
180
|
runtime: z.ZodOptional<z.ZodString>;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
181
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
182
|
+
id: z.ZodOptional<z.ZodString>;
|
|
183
|
+
file: z.ZodOptional<z.ZodString>;
|
|
184
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
185
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
source: z.ZodOptional<z.ZodString>;
|
|
188
|
+
debugId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
capture: z.ZodLiteral<"non-error">;
|
|
191
|
+
serialized: z.ZodJSONSchema;
|
|
192
|
+
}, z.core.$strip>], "capture">;
|
|
193
|
+
type ErrorPayload = z.infer<typeof errorPayloadSchema>;
|
|
90
194
|
//#endregion
|
|
91
|
-
export { EnrichedFrame,
|
|
195
|
+
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
196
|
+
//# sourceMappingURL=error.d.mts.map
|
package/dist/events/error.mjs
CHANGED
|
@@ -1,64 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/events/error.ts
|
|
4
|
-
const enrichedFrameSchema = z.object({
|
|
5
|
-
file: z.string().nullable(),
|
|
6
|
-
line: z.number().nullable(),
|
|
7
|
-
column: z.number().nullable(),
|
|
8
|
-
fn: z.string().nullable(),
|
|
9
|
-
originalFile: z.string().nullable(),
|
|
10
|
-
originalLine: z.number().nullable(),
|
|
11
|
-
originalColumn: z.number().nullable(),
|
|
12
|
-
originalName: z.string().nullable(),
|
|
13
|
-
sourceMapFound: z.boolean(),
|
|
14
|
-
inApp: z.boolean(),
|
|
15
|
-
rawId: z.string()
|
|
16
|
-
});
|
|
17
|
-
const errorMechanismSchema = z.object({
|
|
18
|
-
type: z.string(),
|
|
19
|
-
handled: z.boolean(),
|
|
20
|
-
synthetic: z.boolean().optional()
|
|
21
|
-
});
|
|
22
|
-
const errorContextSchema = z.object({
|
|
23
|
-
framework: z.string().optional(),
|
|
24
|
-
routerKind: z.enum(["Pages Router", "App Router"]).optional(),
|
|
25
|
-
routePath: z.string().optional(),
|
|
26
|
-
routeType: z.enum([
|
|
27
|
-
"render",
|
|
28
|
-
"route",
|
|
29
|
-
"action",
|
|
30
|
-
"middleware",
|
|
31
|
-
"proxy"
|
|
32
|
-
]).optional(),
|
|
33
|
-
renderSource: z.enum([
|
|
34
|
-
"react-server-components",
|
|
35
|
-
"react-server-components-payload",
|
|
36
|
-
"server-rendering"
|
|
37
|
-
]).optional(),
|
|
38
|
-
revalidateReason: z.enum(["on-demand", "stale"]).optional(),
|
|
39
|
-
renderType: z.enum(["dynamic", "dynamic-resume"]).optional(),
|
|
40
|
-
requestPath: z.string().optional(),
|
|
41
|
-
requestMethod: z.string().optional(),
|
|
42
|
-
errorDigest: z.string().optional()
|
|
43
|
-
});
|
|
44
|
-
const fingerprintSchema = z.object({
|
|
45
|
-
hash: z.string(),
|
|
46
|
-
components: z.array(z.string())
|
|
47
|
-
});
|
|
48
|
-
const errorFactsPayloadSchema = z.object({
|
|
49
|
-
frames: z.array(ingestedFrame),
|
|
50
|
-
enrichedFrames: z.array(enrichedFrameSchema).optional(),
|
|
51
|
-
frameCount: z.number().optional(),
|
|
52
|
-
enrichedFrameCount: z.number().optional(),
|
|
53
|
-
message: z.string().nullable(),
|
|
54
|
-
name: z.string().nullable(),
|
|
55
|
-
stack: z.string().nullable(),
|
|
56
|
-
mechanism: errorMechanismSchema.optional(),
|
|
57
|
-
context: errorContextSchema.optional(),
|
|
58
|
-
captureSource: z.string().optional(),
|
|
59
|
-
fingerprintComponents: fingerprintSchema.optional(),
|
|
60
|
-
runtime: z.string().optional(),
|
|
61
|
-
releaseId: z.string().nullable().optional()
|
|
62
|
-
});
|
|
63
|
-
//#endregion
|
|
64
|
-
export { errorFactsPayloadSchema };
|
|
1
|
+
import{z}from"zod";import{ingestedFrame}from"#data/frame";const baseEnrichedFrameSchema=z.object({ingestedId:z.string(),inApp:z.boolean(),file:z.string().nullable(),line:z.number().nullable(),column:z.number().nullable(),fn:z.string().nullable()}),resolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!0),originalFile:z.string().nullable(),originalLine:z.number().nullable(),originalColumn:z.number().nullable(),originalName:z.string().nullable()}),unresolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!1)}),enrichedFrameSchema=z.discriminatedUnion(`resolved`,[resolvedFrameSchema,unresolvedFrameSchema]),errorMechanismSchema=z.object({type:z.string(),handled:z.boolean(),synthetic:z.boolean().optional()}),errorContextSchema=z.object({framework:z.string().optional(),routerKind:z.enum([`Pages Router`,`App Router`]).optional(),routePath:z.string().optional(),routeType:z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).optional(),renderSource:z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).optional(),revalidateReason:z.enum([`on-demand`,`stale`]).optional(),renderType:z.enum([`dynamic`,`dynamic-resume`]).optional(),requestPath:z.string().optional(),requestMethod:z.string().optional(),errorDigest:z.string().optional()}),errorPayloadCommonSchema=z.object({message:z.string().nullable(),name:z.string().nullable(),stack:z.string().nullable(),context:errorContextSchema.optional(),mechanism:errorMechanismSchema.optional(),captureSource:z.string().optional(),runtime:z.string().optional(),frames:z.array(ingestedFrame)}),errorPayloadFromErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`error`)}),errorPayloadFromNonErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`non-error`),serialized:z.json()}),errorPayloadSchema=z.discriminatedUnion(`capture`,[errorPayloadFromErrorSchema,errorPayloadFromNonErrorSchema]);export{enrichedFrameSchema,errorContextSchema,errorMechanismSchema,errorPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=error.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const pageleaveFactsPayloadSchema=zod.z.object({url:zod.z.url(),durationMs:zod.z.number().optional(),runtime:zod.z.string().optional(),releaseId:zod.z.string().nullable().optional()});exports.pageleaveFactsPayloadSchema=pageleaveFactsPayloadSchema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/events/pageleave.d.ts
|
|
4
|
+
declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
5
|
+
url: z.ZodURL;
|
|
6
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
8
|
+
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
13
|
+
//# sourceMappingURL=pageleave.d.cts.map
|
|
@@ -2,11 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/events/pageleave.d.ts
|
|
4
4
|
declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
5
|
-
url: z.
|
|
5
|
+
url: z.ZodURL;
|
|
6
6
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
runtime: z.ZodOptional<z.ZodString>;
|
|
8
8
|
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
12
|
+
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
13
|
+
//# sourceMappingURL=pageleave.d.mts.map
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#
|
|
3
|
-
const pageleaveFactsPayloadSchema = z.object({
|
|
4
|
-
url: z.string(),
|
|
5
|
-
durationMs: z.number().optional(),
|
|
6
|
-
runtime: z.string().optional(),
|
|
7
|
-
releaseId: z.string().nullable().optional()
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
export { pageleaveFactsPayloadSchema };
|
|
1
|
+
import{z}from"zod";const pageleaveFactsPayloadSchema=z.object({url:z.url(),durationMs:z.number().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageleaveFactsPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=pageleave.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const pageviewFactsPayloadSchema=zod.z.object({url:zod.z.url(),title:zod.z.string().optional(),referrer:zod.z.string().optional(),runtime:zod.z.string().optional(),releaseId:zod.z.string().nullable().optional()});exports.pageviewFactsPayloadSchema=pageviewFactsPayloadSchema;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/events/pageview.d.ts
|
|
4
|
+
declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
5
|
+
url: z.ZodURL;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
7
|
+
referrer: z.ZodOptional<z.ZodString>;
|
|
8
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
9
|
+
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=pageview.d.cts.map
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/events/pageview.d.ts
|
|
4
4
|
declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
5
|
-
url: z.
|
|
5
|
+
url: z.ZodURL;
|
|
6
6
|
title: z.ZodOptional<z.ZodString>;
|
|
7
7
|
referrer: z.ZodOptional<z.ZodString>;
|
|
8
8
|
runtime: z.ZodOptional<z.ZodString>;
|
|
@@ -10,4 +10,5 @@ declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
13
|
+
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=pageview.d.mts.map
|
package/dist/events/pageview.mjs
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#
|
|
3
|
-
const pageviewFactsPayloadSchema = z.object({
|
|
4
|
-
url: z.string(),
|
|
5
|
-
title: z.string().optional(),
|
|
6
|
-
referrer: z.string().optional(),
|
|
7
|
-
runtime: z.string().optional(),
|
|
8
|
-
releaseId: z.string().nullable().optional()
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { pageviewFactsPayloadSchema };
|
|
1
|
+
import{z}from"zod";const pageviewFactsPayloadSchema=z.object({url:z.url(),title:z.string().optional(),referrer:z.string().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageviewFactsPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=pageview.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_integrations_platforms_github=require("./platforms/github.cjs"),require_integrations_platforms_vercel=require("./platforms/vercel.cjs");let zod=require("zod");const githubReleaseSourceSchema=zod.z.object({provider:zod.z.literal(`github`),commitMessage:zod.z.string(),branch:zod.z.string(),commitSha:zod.z.string().nullable()}).meta({id:`GithubReleaseSource`,title:`GithubReleaseSource`,description:`Release source metadata coming from GitHub.`}),releaseSourceMetadataSchema=zod.z.discriminatedUnion(`provider`,[githubReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),vercelReleaseDestinationSchema=zod.z.object({provider:zod.z.literal(`vercel`),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),deploymentId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable()}).meta({id:`VercelReleaseDestination`,title:`VercelReleaseDestination`,description:`Release destination metadata for a Vercel deployment.`}),releaseDestinationMetadataSchema=zod.z.discriminatedUnion(`provider`,[vercelReleaseDestinationSchema]).meta({id:`ReleaseDestination`,title:`ReleaseDestination`}),sourceProviderSchema=zod.z.enum([`github`]).meta({id:`SourceProvider`,title:`SourceProvider`}),destinationProviderSchema=zod.z.enum([`vercel`]).meta({id:`DestinationProvider`,title:`DestinationProvider`}),releaseSourceIdEnvKeys=zod.z.enum([`NEXT_PUBLIC_INTERFERE_BUILD_ID`,`INTERFERE_SOURCE_ID`,`NEXT_BUILD_ID`,...require_integrations_platforms_github.githubSourceIdEnvKeys]).options,releaseDestinationIdEnvKeys=zod.z.enum([`NEXT_PUBLIC_INTERFERE_RELEASE_ID`,`INTERFERE_DESTINATION_ID`,...require_integrations_platforms_vercel.vercelDestinationIdEnvKeys,...require_integrations_platforms_github.githubSourceIdEnvKeys]).options;exports.destinationProviderSchema=destinationProviderSchema,exports.githubReleaseSourceSchema=githubReleaseSourceSchema,exports.releaseDestinationIdEnvKeys=releaseDestinationIdEnvKeys,exports.releaseDestinationMetadataSchema=releaseDestinationMetadataSchema,exports.releaseSourceIdEnvKeys=releaseSourceIdEnvKeys,exports.releaseSourceMetadataSchema=releaseSourceMetadataSchema,exports.sourceProviderSchema=sourceProviderSchema,exports.vercelReleaseDestinationSchema=vercelReleaseDestinationSchema;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/index.d.ts
|
|
4
|
+
declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
5
|
+
provider: z.ZodLiteral<"github">;
|
|
6
|
+
commitMessage: z.ZodString;
|
|
7
|
+
branch: z.ZodString;
|
|
8
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
provider: z.ZodLiteral<"github">;
|
|
12
|
+
commitMessage: z.ZodString;
|
|
13
|
+
branch: z.ZodString;
|
|
14
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>], "provider">;
|
|
16
|
+
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
17
|
+
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
18
|
+
provider: z.ZodLiteral<"vercel">;
|
|
19
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
21
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
24
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
provider: z.ZodLiteral<"vercel">;
|
|
28
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
30
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
32
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
33
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>], "provider">;
|
|
35
|
+
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
36
|
+
declare const sourceProviderSchema: z.ZodEnum<{
|
|
37
|
+
github: "github";
|
|
38
|
+
}>;
|
|
39
|
+
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
40
|
+
declare const destinationProviderSchema: z.ZodEnum<{
|
|
41
|
+
vercel: "vercel";
|
|
42
|
+
}>;
|
|
43
|
+
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
44
|
+
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
45
|
+
declare const releaseDestinationIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
46
|
+
//#endregion
|
|
47
|
+
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
48
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -44,4 +44,5 @@ type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
|
44
44
|
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
45
45
|
declare const releaseDestinationIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
46
46
|
//#endregion
|
|
47
|
-
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
47
|
+
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
48
|
+
//# sourceMappingURL=index.d.mts.map
|