@interfere/types 10.1.2 → 10.2.1
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/dist/data/frame.cjs +1 -1
- package/dist/data/frame.d.cts +6 -7
- package/dist/data/frame.d.mts +6 -7
- package/dist/data/frame.mjs +1 -1
- package/dist/data/session.cjs +1 -1
- package/dist/data/session.d.cts +3 -4
- package/dist/data/session.d.mts +3 -4
- package/dist/data/session.mjs +1 -1
- package/dist/data/source-map-batch.cjs +1 -0
- package/dist/data/source-map-batch.d.cts +4 -0
- package/dist/data/source-map-batch.d.mts +4 -0
- package/dist/data/source-map-batch.mjs +1 -0
- package/dist/data/source-map-diagnostics.cjs +1 -0
- package/dist/data/source-map-diagnostics.d.cts +49 -0
- package/dist/data/source-map-diagnostics.d.mts +49 -0
- package/dist/data/source-map-diagnostics.mjs +1 -0
- package/dist/data/source-map-status.cjs +1 -0
- package/dist/data/source-map-status.d.cts +65 -0
- package/dist/data/source-map-status.d.mts +65 -0
- package/dist/data/source-map-status.mjs +1 -0
- package/dist/data/source-map-upload-batch.cjs +1 -0
- package/dist/data/source-map-upload-batch.d.cts +22 -0
- package/dist/data/source-map-upload-batch.d.mts +22 -0
- package/dist/data/source-map-upload-batch.mjs +1 -0
- package/dist/data/source-maps.cjs +1 -1
- package/dist/data/source-maps.d.cts +73 -63
- package/dist/data/source-maps.d.mts +73 -63
- package/dist/data/source-maps.mjs +1 -1
- package/dist/events/error.cjs +1 -1
- package/dist/events/error.d.cts +118 -111
- package/dist/events/error.d.mts +118 -111
- package/dist/events/error.mjs +1 -1
- package/dist/events/pageleave.cjs +1 -1
- package/dist/events/pageleave.d.cts +5 -6
- package/dist/events/pageleave.d.mts +5 -6
- package/dist/events/pageleave.mjs +1 -1
- package/dist/events/pageview.cjs +1 -1
- package/dist/events/pageview.d.cts +6 -7
- package/dist/events/pageview.d.mts +6 -7
- package/dist/events/pageview.mjs +1 -1
- package/dist/integrations/index.cjs +1 -1
- package/dist/integrations/index.d.cts +62 -63
- package/dist/integrations/index.d.mts +62 -63
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/platforms/cli.cjs +1 -1
- package/dist/integrations/platforms/cli.d.cts +3 -4
- package/dist/integrations/platforms/cli.d.mts +3 -4
- package/dist/integrations/platforms/cli.mjs +1 -1
- package/dist/integrations/platforms/cloudflare.cjs +1 -1
- package/dist/integrations/platforms/cloudflare.d.cts +12 -13
- package/dist/integrations/platforms/cloudflare.d.mts +12 -13
- package/dist/integrations/platforms/cloudflare.mjs +1 -1
- package/dist/integrations/platforms/github.cjs +1 -1
- package/dist/integrations/platforms/github.d.cts +30 -31
- package/dist/integrations/platforms/github.d.mts +30 -31
- package/dist/integrations/platforms/github.mjs +1 -1
- package/dist/integrations/platforms/slack.cjs +1 -1
- package/dist/integrations/platforms/slack.d.cts +7 -8
- package/dist/integrations/platforms/slack.d.mts +7 -8
- package/dist/integrations/platforms/slack.mjs +1 -1
- package/dist/integrations/platforms/vercel.cjs +1 -1
- package/dist/integrations/platforms/vercel.d.cts +12 -13
- package/dist/integrations/platforms/vercel.d.mts +12 -13
- package/dist/integrations/platforms/vercel.mjs +1 -1
- package/dist/releases/build-telemetry.d.cts +8 -9
- package/dist/releases/build-telemetry.d.mts +8 -9
- package/dist/releases/definition.cjs +1 -1
- package/dist/releases/definition.d.cts +48 -49
- package/dist/releases/definition.d.mts +48 -49
- package/dist/releases/definition.mjs +1 -1
- package/dist/releases/slug.d.cts +5 -6
- package/dist/releases/slug.d.mts +5 -6
- package/dist/sdk/build-config.cjs +1 -0
- package/dist/sdk/build-config.d.cts +22 -0
- package/dist/sdk/build-config.d.mts +22 -0
- package/dist/sdk/build-config.mjs +1 -0
- package/dist/sdk/build-diagnostics.cjs +1 -1
- package/dist/sdk/build-diagnostics.d.cts +11 -12
- package/dist/sdk/build-diagnostics.d.mts +11 -12
- package/dist/sdk/build-diagnostics.mjs +1 -1
- package/dist/sdk/cli-destination.cjs +1 -1
- package/dist/sdk/cli-destination.d.cts +7 -4
- package/dist/sdk/cli-destination.d.mts +7 -4
- package/dist/sdk/cli-destination.mjs +1 -1
- package/dist/sdk/deploy-environment.cjs +1 -1
- package/dist/sdk/deploy-environment.d.cts +28 -6
- package/dist/sdk/deploy-environment.d.mts +28 -6
- package/dist/sdk/deploy-environment.mjs +1 -1
- package/dist/sdk/env.d.cts +3 -4
- package/dist/sdk/env.d.mts +3 -4
- package/dist/sdk/envelope.cjs +1 -1
- package/dist/sdk/envelope.d.cts +129 -130
- package/dist/sdk/envelope.d.mts +129 -130
- package/dist/sdk/envelope.mjs +1 -1
- package/dist/sdk/errors.cjs +2 -2
- package/dist/sdk/errors.d.cts +70 -28
- package/dist/sdk/errors.d.mts +70 -28
- package/dist/sdk/errors.mjs +2 -2
- package/dist/sdk/geo.cjs +1 -1
- package/dist/sdk/geo.d.cts +4 -5
- package/dist/sdk/geo.d.mts +4 -5
- package/dist/sdk/geo.mjs +1 -1
- package/dist/sdk/github-source.cjs +1 -1
- package/dist/sdk/github-source.d.cts +9 -9
- package/dist/sdk/github-source.d.mts +9 -9
- package/dist/sdk/github-source.mjs +1 -1
- package/dist/sdk/identify.cjs +1 -1
- package/dist/sdk/identify.d.cts +13 -14
- package/dist/sdk/identify.d.mts +13 -14
- package/dist/sdk/identify.mjs +1 -1
- package/dist/sdk/injected-globals.d.cts +9 -10
- package/dist/sdk/injected-globals.d.mts +9 -10
- package/dist/sdk/log-sourcing.cjs +1 -1
- package/dist/sdk/log-sourcing.d.cts +9 -10
- package/dist/sdk/log-sourcing.d.mts +9 -10
- package/dist/sdk/log-sourcing.mjs +1 -1
- package/dist/sdk/plugins/context/browser.cjs +1 -1
- package/dist/sdk/plugins/context/browser.d.cts +17 -18
- package/dist/sdk/plugins/context/browser.d.mts +17 -18
- package/dist/sdk/plugins/context/browser.mjs +1 -1
- package/dist/sdk/plugins/context/edge.cjs +1 -1
- package/dist/sdk/plugins/context/edge.d.cts +3 -4
- package/dist/sdk/plugins/context/edge.d.mts +3 -4
- package/dist/sdk/plugins/context/edge.mjs +1 -1
- package/dist/sdk/plugins/context/next.cjs +1 -1
- package/dist/sdk/plugins/context/next.d.cts +8 -9
- package/dist/sdk/plugins/context/next.d.mts +8 -9
- package/dist/sdk/plugins/context/next.mjs +1 -1
- package/dist/sdk/plugins/context/node.cjs +1 -1
- package/dist/sdk/plugins/context/node.d.cts +3 -4
- package/dist/sdk/plugins/context/node.d.mts +3 -4
- package/dist/sdk/plugins/context/node.mjs +1 -1
- package/dist/sdk/plugins/manifest.d.cts +10 -9
- package/dist/sdk/plugins/manifest.d.mts +10 -9
- package/dist/sdk/plugins/payload/errors.cjs +1 -1
- package/dist/sdk/plugins/payload/errors.d.cts +23 -24
- package/dist/sdk/plugins/payload/errors.d.mts +23 -24
- package/dist/sdk/plugins/payload/errors.mjs +1 -1
- package/dist/sdk/plugins/payload/page-events.cjs +1 -1
- package/dist/sdk/plugins/payload/page-events.d.cts +9 -10
- package/dist/sdk/plugins/payload/page-events.d.mts +9 -10
- package/dist/sdk/plugins/payload/page-events.mjs +1 -1
- package/dist/sdk/plugins/payload/rage-click.cjs +1 -1
- package/dist/sdk/plugins/payload/rage-click.d.cts +5 -6
- package/dist/sdk/plugins/payload/rage-click.d.mts +5 -6
- package/dist/sdk/plugins/payload/rage-click.mjs +1 -1
- package/dist/sdk/plugins/payload/replay.cjs +1 -1
- package/dist/sdk/plugins/payload/replay.d.cts +4 -5
- package/dist/sdk/plugins/payload/replay.d.mts +4 -5
- package/dist/sdk/plugins/payload/replay.mjs +1 -1
- package/dist/sdk/remote-config.cjs +1 -1
- package/dist/sdk/remote-config.d.cts +43 -20
- package/dist/sdk/remote-config.d.mts +43 -20
- package/dist/sdk/remote-config.mjs +1 -1
- package/dist/sdk/runtime.cjs +1 -1
- package/dist/sdk/runtime.d.cts +11 -12
- package/dist/sdk/runtime.d.mts +11 -12
- package/dist/sdk/runtime.mjs +1 -1
- package/dist/sdk/server-tracing.cjs +1 -1
- package/dist/sdk/server-tracing.d.cts +9 -10
- package/dist/sdk/server-tracing.d.mts +9 -10
- package/dist/sdk/server-tracing.mjs +1 -1
- package/dist/sdk/source-map-richness.cjs +1 -0
- package/dist/sdk/source-map-richness.d.cts +9 -0
- package/dist/sdk/source-map-richness.d.mts +9 -0
- package/dist/sdk/source-map-richness.mjs +1 -0
- package/dist/sdk/trace-freshness.cjs +1 -0
- package/dist/sdk/trace-freshness.d.cts +6 -0
- package/dist/sdk/trace-freshness.d.mts +6 -0
- package/dist/sdk/trace-freshness.mjs +1 -0
- package/package.json +13 -13
|
@@ -8,17 +8,14 @@ import { z } from "zod";
|
|
|
8
8
|
* useful for diagnostics (different bundlers exhibit different stack
|
|
9
9
|
* shapes; we want that pivot when investigating resolution issues).
|
|
10
10
|
*/
|
|
11
|
-
declare const manifestBundlerSchema: z.ZodEnum<{
|
|
11
|
+
export declare const manifestBundlerSchema: z.ZodEnum<{
|
|
12
12
|
rollup: "rollup";
|
|
13
13
|
tsc: "tsc";
|
|
14
14
|
turbopack: "turbopack";
|
|
15
15
|
webpack: "webpack";
|
|
16
16
|
}>;
|
|
17
|
-
type ManifestBundler = z.infer<typeof manifestBundlerSchema>;
|
|
18
|
-
declare const sourceMapManifestSchema: z.ZodObject<{
|
|
19
|
-
releaseSlug: z.ZodString;
|
|
20
|
-
surfaceId: z.ZodString;
|
|
21
|
-
organizationId: z.ZodString;
|
|
17
|
+
export type ManifestBundler = z.infer<typeof manifestBundlerSchema>;
|
|
18
|
+
export declare const sourceMapManifestSchema: z.ZodObject<{
|
|
22
19
|
bundler: z.ZodEnum<{
|
|
23
20
|
rollup: "rollup";
|
|
24
21
|
tsc: "tsc";
|
|
@@ -29,11 +26,14 @@ declare const sourceMapManifestSchema: z.ZodObject<{
|
|
|
29
26
|
files: z.ZodArray<z.ZodObject<{
|
|
30
27
|
chunkUrl: z.ZodString;
|
|
31
28
|
debugId: z.ZodString;
|
|
32
|
-
objectKey: z.ZodString;
|
|
33
29
|
mapHash: z.ZodString;
|
|
30
|
+
objectKey: z.ZodString;
|
|
34
31
|
}, z.core.$strip>>;
|
|
32
|
+
organizationId: z.ZodString;
|
|
33
|
+
releaseSlug: z.ZodString;
|
|
34
|
+
surfaceId: z.ZodString;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
|
-
type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
36
|
+
export type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
37
37
|
/**
|
|
38
38
|
* Per-entry metadata for the legacy multipart upload endpoint
|
|
39
39
|
* (`POST /v1/releases/:slug/source-maps`). One entry per source-map file
|
|
@@ -43,13 +43,13 @@ type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
|
43
43
|
* chunk from) and `debugId` — both mandatory now. The legacy multipart
|
|
44
44
|
* endpoint accepts the same shape as the new presigned-URL flow.
|
|
45
45
|
*/
|
|
46
|
-
declare const uploadSourceMapEntry: z.ZodObject<{
|
|
47
|
-
path: z.ZodString;
|
|
48
|
-
hash: z.ZodString;
|
|
49
|
-
debugId: z.ZodString;
|
|
46
|
+
export declare const uploadSourceMapEntry: z.ZodObject<{
|
|
50
47
|
chunkUrl: z.ZodString;
|
|
48
|
+
debugId: z.ZodString;
|
|
49
|
+
hash: z.ZodString;
|
|
50
|
+
path: z.ZodString;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
|
-
type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
52
|
+
export type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
53
53
|
/**
|
|
54
54
|
* Multipart metadata for the legacy upload endpoint. The `files` field
|
|
55
55
|
* carries the actual JSON bodies as multipart File parts; this `metadata`
|
|
@@ -62,89 +62,100 @@ type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
|
62
62
|
*
|
|
63
63
|
* @deprecated
|
|
64
64
|
*/
|
|
65
|
-
declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
66
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
67
|
-
path: z.ZodString;
|
|
68
|
-
hash: z.ZodString;
|
|
69
|
-
debugId: z.ZodString;
|
|
70
|
-
chunkUrl: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
export declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
73
66
|
bundler: z.ZodEnum<{
|
|
74
67
|
rollup: "rollup";
|
|
75
68
|
tsc: "tsc";
|
|
76
69
|
turbopack: "turbopack";
|
|
77
70
|
webpack: "webpack";
|
|
78
71
|
}>;
|
|
72
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
73
|
+
chunkUrl: z.ZodString;
|
|
74
|
+
debugId: z.ZodString;
|
|
75
|
+
hash: z.ZodString;
|
|
76
|
+
path: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
|
-
type UploadSourceMapsMetadata = z.infer<typeof uploadSourceMapsMetadata>;
|
|
81
|
-
declare const uploadSourceMapsResponse: z.ZodObject<{
|
|
80
|
+
export type UploadSourceMapsMetadata = z.infer<typeof uploadSourceMapsMetadata>;
|
|
81
|
+
export declare const uploadSourceMapsResponse: z.ZodObject<{
|
|
82
|
+
fileCount: z.ZodNumber;
|
|
83
|
+
message: z.ZodString;
|
|
82
84
|
ok: z.ZodBoolean;
|
|
83
85
|
processed: z.ZodNumber;
|
|
84
|
-
message: z.ZodString;
|
|
85
|
-
fileCount: z.ZodNumber;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
|
-
type UploadSourceMapsResponse = z.infer<typeof uploadSourceMapsResponse>;
|
|
88
|
-
declare const signSourceMapFile: z.ZodObject<{
|
|
89
|
-
path: z.ZodString;
|
|
90
|
-
sizeBytes: z.ZodNumber;
|
|
91
|
-
hasSourcesContent: z.ZodBoolean;
|
|
92
|
-
hasNames: z.ZodBoolean;
|
|
87
|
+
export type UploadSourceMapsResponse = z.infer<typeof uploadSourceMapsResponse>;
|
|
88
|
+
export declare const signSourceMapFile: z.ZodObject<{
|
|
93
89
|
hasFile: z.ZodBoolean;
|
|
90
|
+
hasNames: z.ZodBoolean;
|
|
91
|
+
hasSourcesContent: z.ZodBoolean;
|
|
94
92
|
mappingsPresent: z.ZodBoolean;
|
|
93
|
+
path: z.ZodString;
|
|
94
|
+
sizeBytes: z.ZodNumber;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
|
-
declare const signSourceMapsRequest: z.ZodObject<{
|
|
96
|
+
export declare const signSourceMapsRequest: z.ZodObject<{
|
|
97
97
|
files: z.ZodArray<z.ZodObject<{
|
|
98
|
-
path: z.ZodString;
|
|
99
|
-
sizeBytes: z.ZodNumber;
|
|
100
|
-
hasSourcesContent: z.ZodBoolean;
|
|
101
|
-
hasNames: z.ZodBoolean;
|
|
102
98
|
hasFile: z.ZodBoolean;
|
|
99
|
+
hasNames: z.ZodBoolean;
|
|
100
|
+
hasSourcesContent: z.ZodBoolean;
|
|
103
101
|
mappingsPresent: z.ZodBoolean;
|
|
102
|
+
path: z.ZodString;
|
|
103
|
+
sizeBytes: z.ZodNumber;
|
|
104
104
|
}, z.core.$strip>>;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
|
-
type SignSourceMapsRequest = z.infer<typeof signSourceMapsRequest>;
|
|
107
|
-
declare const signSourceMapUpload: z.ZodObject<{
|
|
108
|
-
path: z.ZodString;
|
|
106
|
+
export type SignSourceMapsRequest = z.infer<typeof signSourceMapsRequest>;
|
|
107
|
+
export declare const signSourceMapUpload: z.ZodObject<{
|
|
109
108
|
objectKey: z.ZodString;
|
|
109
|
+
path: z.ZodString;
|
|
110
110
|
presignedUrl: z.ZodString;
|
|
111
111
|
}, z.core.$strip>;
|
|
112
|
-
declare const signSourceMapsResponse: z.ZodObject<{
|
|
112
|
+
export declare const signSourceMapsResponse: z.ZodObject<{
|
|
113
|
+
expiresAt: z.ZodNumber;
|
|
113
114
|
uploads: z.ZodArray<z.ZodObject<{
|
|
114
|
-
path: z.ZodString;
|
|
115
115
|
objectKey: z.ZodString;
|
|
116
|
+
path: z.ZodString;
|
|
116
117
|
presignedUrl: z.ZodString;
|
|
117
118
|
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type SignSourceMapsResponse = z.infer<typeof signSourceMapsResponse>;
|
|
121
|
+
export declare const sourceMapUploadSessionResponse: z.ZodObject<{
|
|
122
|
+
batchUpload: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
version: z.ZodLiteral<1>;
|
|
124
|
+
maxBodyBytes: z.ZodNumber;
|
|
125
|
+
maxFiles: z.ZodNumber;
|
|
126
|
+
}, z.core.$strict>>;
|
|
118
127
|
expiresAt: z.ZodNumber;
|
|
128
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
119
131
|
}, z.core.$strip>;
|
|
120
|
-
|
|
121
|
-
declare const completeSourceMapFile: z.ZodObject<{
|
|
122
|
-
path: z.ZodString;
|
|
123
|
-
hash: z.ZodString;
|
|
124
|
-
debugId: z.ZodString;
|
|
132
|
+
export declare const completeSourceMapFile: z.ZodObject<{
|
|
125
133
|
chunkUrl: z.ZodString;
|
|
134
|
+
debugId: z.ZodString;
|
|
135
|
+
hash: z.ZodString;
|
|
136
|
+
path: z.ZodString;
|
|
126
137
|
}, z.core.$strip>;
|
|
127
|
-
declare const completeSourceMapsRequest: z.ZodObject<{
|
|
128
|
-
files: z.ZodArray<z.ZodObject<{
|
|
129
|
-
path: z.ZodString;
|
|
130
|
-
hash: z.ZodString;
|
|
131
|
-
debugId: z.ZodString;
|
|
132
|
-
chunkUrl: z.ZodString;
|
|
133
|
-
}, z.core.$strip>>;
|
|
134
|
-
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
export declare const completeSourceMapsRequest: z.ZodObject<{
|
|
135
139
|
bundler: z.ZodEnum<{
|
|
136
140
|
rollup: "rollup";
|
|
137
141
|
tsc: "tsc";
|
|
138
142
|
turbopack: "turbopack";
|
|
139
143
|
webpack: "webpack";
|
|
140
144
|
}>;
|
|
145
|
+
files: z.ZodArray<z.ZodObject<{
|
|
146
|
+
chunkUrl: z.ZodString;
|
|
147
|
+
debugId: z.ZodString;
|
|
148
|
+
hash: z.ZodString;
|
|
149
|
+
path: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
141
152
|
}, z.core.$strip>;
|
|
142
|
-
type CompleteSourceMapsRequest = z.infer<typeof completeSourceMapsRequest>;
|
|
143
|
-
declare const completeSourceMapsResponse: z.ZodObject<{
|
|
144
|
-
ok: z.ZodBoolean;
|
|
153
|
+
export type CompleteSourceMapsRequest = z.infer<typeof completeSourceMapsRequest>;
|
|
154
|
+
export declare const completeSourceMapsResponse: z.ZodObject<{
|
|
145
155
|
fileCount: z.ZodNumber;
|
|
156
|
+
ok: z.ZodBoolean;
|
|
146
157
|
}, z.core.$strip>;
|
|
147
|
-
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
158
|
+
export type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
148
159
|
/**
|
|
149
160
|
* Self-registering snippet appended to a built JS chunk so the runtime
|
|
150
161
|
* can recover the chunk's `debugId` from a live `Error().stack`. Mirrors
|
|
@@ -155,13 +166,13 @@ type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
|
155
166
|
* Appended (never prepended) so it lands past the source map's mapped
|
|
156
167
|
* region and cannot shift original line positions.
|
|
157
168
|
*/
|
|
158
|
-
declare function debugIdRuntimeSnippet(debugId: string): string;
|
|
169
|
+
export declare function debugIdRuntimeSnippet(debugId: string): string;
|
|
159
170
|
/**
|
|
160
171
|
* Reads an existing `//# debugId=…` comment from the bundle source.
|
|
161
172
|
* Returns `null` when no debug ID comment is present — the caller is
|
|
162
173
|
* expected to generate and inject one.
|
|
163
174
|
*/
|
|
164
|
-
declare function readDebugIdFromJs(content: string): string | null;
|
|
175
|
+
export declare function readDebugIdFromJs(content: string): string | null;
|
|
165
176
|
/**
|
|
166
177
|
* Inserts a `//# debugId=…` comment plus the `_debugIds` runtime snippet
|
|
167
178
|
* into a built JS chunk. Idempotent: if a spec-compliant comment is
|
|
@@ -178,6 +189,5 @@ declare function readDebugIdFromJs(content: string): string | null;
|
|
|
178
189
|
* Throws (via {@link debugIdRuntimeSnippet}) on a non-hex/dashes id in every
|
|
179
190
|
* branch, so an unsanitized id can never reach the constructed output.
|
|
180
191
|
*/
|
|
181
|
-
declare function injectDebugIdIntoJs(content: string, debugId: string): string;
|
|
182
|
-
//#endregion
|
|
183
|
-
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, debugIdRuntimeSnippet, injectDebugIdIntoJs, manifestBundlerSchema, readDebugIdFromJs, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
192
|
+
export declare function injectDebugIdIntoJs(content: string, debugId: string): string;
|
|
193
|
+
//#endregion
|
|
@@ -8,17 +8,14 @@ import { z } from "zod";
|
|
|
8
8
|
* useful for diagnostics (different bundlers exhibit different stack
|
|
9
9
|
* shapes; we want that pivot when investigating resolution issues).
|
|
10
10
|
*/
|
|
11
|
-
declare const manifestBundlerSchema: z.ZodEnum<{
|
|
11
|
+
export declare const manifestBundlerSchema: z.ZodEnum<{
|
|
12
12
|
rollup: "rollup";
|
|
13
13
|
tsc: "tsc";
|
|
14
14
|
turbopack: "turbopack";
|
|
15
15
|
webpack: "webpack";
|
|
16
16
|
}>;
|
|
17
|
-
type ManifestBundler = z.infer<typeof manifestBundlerSchema>;
|
|
18
|
-
declare const sourceMapManifestSchema: z.ZodObject<{
|
|
19
|
-
releaseSlug: z.ZodString;
|
|
20
|
-
surfaceId: z.ZodString;
|
|
21
|
-
organizationId: z.ZodString;
|
|
17
|
+
export type ManifestBundler = z.infer<typeof manifestBundlerSchema>;
|
|
18
|
+
export declare const sourceMapManifestSchema: z.ZodObject<{
|
|
22
19
|
bundler: z.ZodEnum<{
|
|
23
20
|
rollup: "rollup";
|
|
24
21
|
tsc: "tsc";
|
|
@@ -29,11 +26,14 @@ declare const sourceMapManifestSchema: z.ZodObject<{
|
|
|
29
26
|
files: z.ZodArray<z.ZodObject<{
|
|
30
27
|
chunkUrl: z.ZodString;
|
|
31
28
|
debugId: z.ZodString;
|
|
32
|
-
objectKey: z.ZodString;
|
|
33
29
|
mapHash: z.ZodString;
|
|
30
|
+
objectKey: z.ZodString;
|
|
34
31
|
}, z.core.$strip>>;
|
|
32
|
+
organizationId: z.ZodString;
|
|
33
|
+
releaseSlug: z.ZodString;
|
|
34
|
+
surfaceId: z.ZodString;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
|
-
type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
36
|
+
export type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
37
37
|
/**
|
|
38
38
|
* Per-entry metadata for the legacy multipart upload endpoint
|
|
39
39
|
* (`POST /v1/releases/:slug/source-maps`). One entry per source-map file
|
|
@@ -43,13 +43,13 @@ type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
|
43
43
|
* chunk from) and `debugId` — both mandatory now. The legacy multipart
|
|
44
44
|
* endpoint accepts the same shape as the new presigned-URL flow.
|
|
45
45
|
*/
|
|
46
|
-
declare const uploadSourceMapEntry: z.ZodObject<{
|
|
47
|
-
path: z.ZodString;
|
|
48
|
-
hash: z.ZodString;
|
|
49
|
-
debugId: z.ZodString;
|
|
46
|
+
export declare const uploadSourceMapEntry: z.ZodObject<{
|
|
50
47
|
chunkUrl: z.ZodString;
|
|
48
|
+
debugId: z.ZodString;
|
|
49
|
+
hash: z.ZodString;
|
|
50
|
+
path: z.ZodString;
|
|
51
51
|
}, z.core.$strip>;
|
|
52
|
-
type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
52
|
+
export type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
53
53
|
/**
|
|
54
54
|
* Multipart metadata for the legacy upload endpoint. The `files` field
|
|
55
55
|
* carries the actual JSON bodies as multipart File parts; this `metadata`
|
|
@@ -62,89 +62,100 @@ type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
|
62
62
|
*
|
|
63
63
|
* @deprecated
|
|
64
64
|
*/
|
|
65
|
-
declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
66
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
67
|
-
path: z.ZodString;
|
|
68
|
-
hash: z.ZodString;
|
|
69
|
-
debugId: z.ZodString;
|
|
70
|
-
chunkUrl: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
export declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
73
66
|
bundler: z.ZodEnum<{
|
|
74
67
|
rollup: "rollup";
|
|
75
68
|
tsc: "tsc";
|
|
76
69
|
turbopack: "turbopack";
|
|
77
70
|
webpack: "webpack";
|
|
78
71
|
}>;
|
|
72
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
73
|
+
chunkUrl: z.ZodString;
|
|
74
|
+
debugId: z.ZodString;
|
|
75
|
+
hash: z.ZodString;
|
|
76
|
+
path: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
|
-
type UploadSourceMapsMetadata = z.infer<typeof uploadSourceMapsMetadata>;
|
|
81
|
-
declare const uploadSourceMapsResponse: z.ZodObject<{
|
|
80
|
+
export type UploadSourceMapsMetadata = z.infer<typeof uploadSourceMapsMetadata>;
|
|
81
|
+
export declare const uploadSourceMapsResponse: z.ZodObject<{
|
|
82
|
+
fileCount: z.ZodNumber;
|
|
83
|
+
message: z.ZodString;
|
|
82
84
|
ok: z.ZodBoolean;
|
|
83
85
|
processed: z.ZodNumber;
|
|
84
|
-
message: z.ZodString;
|
|
85
|
-
fileCount: z.ZodNumber;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
|
-
type UploadSourceMapsResponse = z.infer<typeof uploadSourceMapsResponse>;
|
|
88
|
-
declare const signSourceMapFile: z.ZodObject<{
|
|
89
|
-
path: z.ZodString;
|
|
90
|
-
sizeBytes: z.ZodNumber;
|
|
91
|
-
hasSourcesContent: z.ZodBoolean;
|
|
92
|
-
hasNames: z.ZodBoolean;
|
|
87
|
+
export type UploadSourceMapsResponse = z.infer<typeof uploadSourceMapsResponse>;
|
|
88
|
+
export declare const signSourceMapFile: z.ZodObject<{
|
|
93
89
|
hasFile: z.ZodBoolean;
|
|
90
|
+
hasNames: z.ZodBoolean;
|
|
91
|
+
hasSourcesContent: z.ZodBoolean;
|
|
94
92
|
mappingsPresent: z.ZodBoolean;
|
|
93
|
+
path: z.ZodString;
|
|
94
|
+
sizeBytes: z.ZodNumber;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
|
-
declare const signSourceMapsRequest: z.ZodObject<{
|
|
96
|
+
export declare const signSourceMapsRequest: z.ZodObject<{
|
|
97
97
|
files: z.ZodArray<z.ZodObject<{
|
|
98
|
-
path: z.ZodString;
|
|
99
|
-
sizeBytes: z.ZodNumber;
|
|
100
|
-
hasSourcesContent: z.ZodBoolean;
|
|
101
|
-
hasNames: z.ZodBoolean;
|
|
102
98
|
hasFile: z.ZodBoolean;
|
|
99
|
+
hasNames: z.ZodBoolean;
|
|
100
|
+
hasSourcesContent: z.ZodBoolean;
|
|
103
101
|
mappingsPresent: z.ZodBoolean;
|
|
102
|
+
path: z.ZodString;
|
|
103
|
+
sizeBytes: z.ZodNumber;
|
|
104
104
|
}, z.core.$strip>>;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
|
-
type SignSourceMapsRequest = z.infer<typeof signSourceMapsRequest>;
|
|
107
|
-
declare const signSourceMapUpload: z.ZodObject<{
|
|
108
|
-
path: z.ZodString;
|
|
106
|
+
export type SignSourceMapsRequest = z.infer<typeof signSourceMapsRequest>;
|
|
107
|
+
export declare const signSourceMapUpload: z.ZodObject<{
|
|
109
108
|
objectKey: z.ZodString;
|
|
109
|
+
path: z.ZodString;
|
|
110
110
|
presignedUrl: z.ZodString;
|
|
111
111
|
}, z.core.$strip>;
|
|
112
|
-
declare const signSourceMapsResponse: z.ZodObject<{
|
|
112
|
+
export declare const signSourceMapsResponse: z.ZodObject<{
|
|
113
|
+
expiresAt: z.ZodNumber;
|
|
113
114
|
uploads: z.ZodArray<z.ZodObject<{
|
|
114
|
-
path: z.ZodString;
|
|
115
115
|
objectKey: z.ZodString;
|
|
116
|
+
path: z.ZodString;
|
|
116
117
|
presignedUrl: z.ZodString;
|
|
117
118
|
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type SignSourceMapsResponse = z.infer<typeof signSourceMapsResponse>;
|
|
121
|
+
export declare const sourceMapUploadSessionResponse: z.ZodObject<{
|
|
122
|
+
batchUpload: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
version: z.ZodLiteral<1>;
|
|
124
|
+
maxBodyBytes: z.ZodNumber;
|
|
125
|
+
maxFiles: z.ZodNumber;
|
|
126
|
+
}, z.core.$strict>>;
|
|
118
127
|
expiresAt: z.ZodNumber;
|
|
128
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
119
131
|
}, z.core.$strip>;
|
|
120
|
-
|
|
121
|
-
declare const completeSourceMapFile: z.ZodObject<{
|
|
122
|
-
path: z.ZodString;
|
|
123
|
-
hash: z.ZodString;
|
|
124
|
-
debugId: z.ZodString;
|
|
132
|
+
export declare const completeSourceMapFile: z.ZodObject<{
|
|
125
133
|
chunkUrl: z.ZodString;
|
|
134
|
+
debugId: z.ZodString;
|
|
135
|
+
hash: z.ZodString;
|
|
136
|
+
path: z.ZodString;
|
|
126
137
|
}, z.core.$strip>;
|
|
127
|
-
declare const completeSourceMapsRequest: z.ZodObject<{
|
|
128
|
-
files: z.ZodArray<z.ZodObject<{
|
|
129
|
-
path: z.ZodString;
|
|
130
|
-
hash: z.ZodString;
|
|
131
|
-
debugId: z.ZodString;
|
|
132
|
-
chunkUrl: z.ZodString;
|
|
133
|
-
}, z.core.$strip>>;
|
|
134
|
-
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
export declare const completeSourceMapsRequest: z.ZodObject<{
|
|
135
139
|
bundler: z.ZodEnum<{
|
|
136
140
|
rollup: "rollup";
|
|
137
141
|
tsc: "tsc";
|
|
138
142
|
turbopack: "turbopack";
|
|
139
143
|
webpack: "webpack";
|
|
140
144
|
}>;
|
|
145
|
+
files: z.ZodArray<z.ZodObject<{
|
|
146
|
+
chunkUrl: z.ZodString;
|
|
147
|
+
debugId: z.ZodString;
|
|
148
|
+
hash: z.ZodString;
|
|
149
|
+
path: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
141
152
|
}, z.core.$strip>;
|
|
142
|
-
type CompleteSourceMapsRequest = z.infer<typeof completeSourceMapsRequest>;
|
|
143
|
-
declare const completeSourceMapsResponse: z.ZodObject<{
|
|
144
|
-
ok: z.ZodBoolean;
|
|
153
|
+
export type CompleteSourceMapsRequest = z.infer<typeof completeSourceMapsRequest>;
|
|
154
|
+
export declare const completeSourceMapsResponse: z.ZodObject<{
|
|
145
155
|
fileCount: z.ZodNumber;
|
|
156
|
+
ok: z.ZodBoolean;
|
|
146
157
|
}, z.core.$strip>;
|
|
147
|
-
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
158
|
+
export type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
148
159
|
/**
|
|
149
160
|
* Self-registering snippet appended to a built JS chunk so the runtime
|
|
150
161
|
* can recover the chunk's `debugId` from a live `Error().stack`. Mirrors
|
|
@@ -155,13 +166,13 @@ type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
|
155
166
|
* Appended (never prepended) so it lands past the source map's mapped
|
|
156
167
|
* region and cannot shift original line positions.
|
|
157
168
|
*/
|
|
158
|
-
declare function debugIdRuntimeSnippet(debugId: string): string;
|
|
169
|
+
export declare function debugIdRuntimeSnippet(debugId: string): string;
|
|
159
170
|
/**
|
|
160
171
|
* Reads an existing `//# debugId=…` comment from the bundle source.
|
|
161
172
|
* Returns `null` when no debug ID comment is present — the caller is
|
|
162
173
|
* expected to generate and inject one.
|
|
163
174
|
*/
|
|
164
|
-
declare function readDebugIdFromJs(content: string): string | null;
|
|
175
|
+
export declare function readDebugIdFromJs(content: string): string | null;
|
|
165
176
|
/**
|
|
166
177
|
* Inserts a `//# debugId=…` comment plus the `_debugIds` runtime snippet
|
|
167
178
|
* into a built JS chunk. Idempotent: if a spec-compliant comment is
|
|
@@ -178,6 +189,5 @@ declare function readDebugIdFromJs(content: string): string | null;
|
|
|
178
189
|
* Throws (via {@link debugIdRuntimeSnippet}) on a non-hex/dashes id in every
|
|
179
190
|
* branch, so an unsanitized id can never reach the constructed output.
|
|
180
191
|
*/
|
|
181
|
-
declare function injectDebugIdIntoJs(content: string, debugId: string): string;
|
|
182
|
-
//#endregion
|
|
183
|
-
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, debugIdRuntimeSnippet, injectDebugIdIntoJs, manifestBundlerSchema, readDebugIdFromJs, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
192
|
+
export declare function injectDebugIdIntoJs(content: string, debugId: string): string;
|
|
193
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from"zod";const manifestBundlerSchema=z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=z.object({chunkUrl:z.string(),debugId:z.string(),
|
|
1
|
+
import{sourceMapBatchCapability}from"./source-map-upload-batch.mjs";import{z}from"zod";const manifestBundlerSchema=z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=z.object({chunkUrl:z.string(),debugId:z.string(),mapHash:z.string(),objectKey:z.string()}),sourceMapManifestSchema=z.object({bundler:manifestBundlerSchema,createdAt:z.number(),files:z.array(sourceMapManifestEntrySchema),organizationId:z.string(),releaseSlug:z.string(),surfaceId:z.string()}),uploadSourceMapEntry=z.object({chunkUrl:z.string(),debugId:z.string(),hash:z.string(),path:z.string().min(1)}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=z.object({bundler:manifestBundlerSchema,entries:z.array(uploadSourceMapEntry),sourceFileCount:z.number().int().nonnegative().optional()}).meta({description:`Metadata attached alongside uploaded source map files.`,id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`}),uploadSourceMapsResponse=z.object({fileCount:z.number().int().nonnegative(),message:z.string(),ok:z.boolean(),processed:z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=z.object({hasFile:z.boolean(),hasNames:z.boolean(),hasSourcesContent:z.boolean(),mappingsPresent:z.boolean(),path:z.string().min(1),sizeBytes:z.number().int().nonnegative()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=z.object({files:z.array(signSourceMapFile)}).meta({description:`Initializes an upload session with the file inventory and declared sizes. Upload each file through the source-map endpoint using ordered byte offsets, then finalize the complete batch before the session expires.`,id:`SignSourceMapsRequest`,title:`SignSourceMapsRequest`}),signSourceMapUpload=z.object({objectKey:z.string(),path:z.string(),presignedUrl:z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=z.object({expiresAt:z.number().int(),uploads:z.array(signSourceMapUpload)}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),sourceMapUploadSessionResponse=z.object({batchUpload:sourceMapBatchCapability.optional(),expiresAt:z.number().int(),uploads:z.array(z.object({path:z.string()}))}).meta({id:`SourceMapUploadSessionResponse`}),completeSourceMapFile=z.object({chunkUrl:z.string(),debugId:z.string(),hash:z.string(),path:z.string().min(1)}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=z.object({bundler:manifestBundlerSchema,files:z.array(completeSourceMapFile),sourceFileCount:z.number().int().nonnegative().optional()}).meta({description:`Finalizes an upload session after all file chunks are durably accepted. Verifies the complete file inventory and schedules publication of the source-map manifest. Safe to retry.`,id:`CompleteSourceMapsRequest`,title:`CompleteSourceMapsRequest`}),completeSourceMapsResponse=z.object({fileCount:z.number().int().nonnegative(),ok:z.boolean()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`}),DEBUG_ID_RE=/^[a-fA-F0-9-]+$/u;function debugIdRuntimeSnippet(debugId){if(!DEBUG_ID_RE.test(debugId))throw Error(`debugId must be hex and dashes only, got: ${debugId}`);return`;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._debugIds=e._debugIds||{},e._debugIds[n]="${debugId}")}catch(e){}}();`}const SOURCEMAPPING_RE=/\/\/[#@]\s*sourceMappingURL=\S+\s*$/u,SPEC_LAST_DEBUG_ID_RE=/\/\/# debugId=(?<id>[a-fA-F0-9-]+)(?![\s\S]*\/\/# debugId=)/mu,RUNTIME_DEBUG_ID_RE=/(?<prefix>_debugIds\[[^\]]*\]=")[a-fA-F0-9-]+(?<suffix>")/gu;function readDebugIdFromJs(content){return SPEC_LAST_DEBUG_ID_RE.exec(content)?.[1]??null}function injectDebugIdIntoJs(content,debugId){let snippet=debugIdRuntimeSnippet(debugId),debugIdComment=`//# debugId=${debugId}`;if(SPEC_LAST_DEBUG_ID_RE.test(content))return content.replace(SPEC_LAST_DEBUG_ID_RE,debugIdComment).replace(RUNTIME_DEBUG_ID_RE,`$1${debugId}$2`);let match=SOURCEMAPPING_RE.exec(content);return match?`${content.slice(0,match.index).trimEnd()}\n${snippet}\n${debugIdComment}\n${match[0]}`:`${content}\n${snippet}\n${debugIdComment}`}export{completeSourceMapFile,completeSourceMapsRequest,completeSourceMapsResponse,debugIdRuntimeSnippet,injectDebugIdIntoJs,manifestBundlerSchema,readDebugIdFromJs,signSourceMapFile,signSourceMapUpload,signSourceMapsRequest,signSourceMapsResponse,sourceMapManifestSchema,sourceMapUploadSessionResponse,uploadSourceMapEntry,uploadSourceMapsMetadata,uploadSourceMapsResponse};
|
package/dist/events/error.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod"),_data_frame=require("#data/frame");const baseEnrichedFrameSchema=zod.z.object({
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod"),_data_frame=require("#data/frame");const baseEnrichedFrameSchema=zod.z.object({column:zod.z.number().nullable(),file:zod.z.string().nullable(),fn:zod.z.string().nullable(),inApp:zod.z.boolean(),ingestedId:zod.z.string(),line:zod.z.number().nullable()}),resolvedFrameSchema=baseEnrichedFrameSchema.extend({filePath:zod.z.string().nullable(),fileReference:zod.z.string().nullable(),originalColumn:zod.z.number().nullable(),originalLine:zod.z.number().nullable(),originalName:zod.z.string().nullable(),resolved:zod.z.literal(!0),sourceContext:zod.z.object({startLine:zod.z.number().int().positive(),code:zod.z.string()}).optional()}),unresolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:zod.z.literal(!1)}),enrichedFrameSchema=zod.z.discriminatedUnion(`resolved`,[resolvedFrameSchema,unresolvedFrameSchema]),errorMechanismSchema=zod.z.object({handled:zod.z.boolean(),synthetic:zod.z.boolean().optional(),type:zod.z.string()}),errorContextSchema=zod.z.object({errorDigest:zod.z.string().optional(),framework:zod.z.string().optional(),renderSource:zod.z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).optional(),renderType:zod.z.enum([`dynamic`,`dynamic-resume`]).optional(),requestMethod:zod.z.string().optional(),requestPath:zod.z.string().optional(),revalidateReason:zod.z.enum([`on-demand`,`stale`]).optional(),routePath:zod.z.string().optional(),routeType:zod.z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).optional(),routerKind:zod.z.enum([`Pages Router`,`App Router`]).optional()}),errorPayloadCommonSchema=zod.z.object({captureSource:zod.z.string().optional(),context:errorContextSchema.optional(),frames:zod.z.array(_data_frame.ingestedFrame),mechanism:errorMechanismSchema.optional(),message:zod.z.string().nullable(),name:zod.z.string().nullable(),runtime:zod.z.string().optional(),stack:zod.z.string().nullable()}),errorPayloadFromErrorSchema=errorPayloadCommonSchema.extend({capture:zod.z.literal(`error`)}),errorPayloadFromNonErrorSchema=errorPayloadCommonSchema.extend({capture:zod.z.literal(`non-error`),serialized:zod.z.json()}),errorPayloadSchema=zod.z.discriminatedUnion(`capture`,[errorPayloadFromErrorSchema,errorPayloadFromNonErrorSchema]);exports.enrichedFrameSchema=enrichedFrameSchema,exports.errorContextSchema=errorContextSchema,exports.errorMechanismSchema=errorMechanismSchema,exports.errorPayloadSchema=errorPayloadSchema;
|