@interfere/types 9.0.2 → 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/dist/data/frame.cjs +1 -0
- package/dist/data/frame.d.cts +27 -0
- package/dist/data/frame.d.mts +2 -1
- package/dist/data/frame.mjs +2 -1
- package/dist/data/session.cjs +1 -0
- package/dist/data/session.d.cts +8 -0
- package/dist/data/session.d.mts +2 -1
- package/dist/data/session.mjs +2 -1
- package/dist/data/source-maps.cjs +1 -0
- package/dist/data/source-maps.d.cts +151 -0
- package/dist/data/source-maps.d.mts +7 -2
- package/dist/data/source-maps.mjs +2 -1
- package/dist/events/error.cjs +1 -0
- package/dist/events/error.d.cts +196 -0
- package/dist/events/error.d.mts +2 -1
- package/dist/events/error.mjs +2 -1
- package/dist/events/pageleave.cjs +1 -0
- package/dist/events/pageleave.d.cts +13 -0
- package/dist/events/pageleave.d.mts +2 -1
- package/dist/events/pageleave.mjs +2 -1
- package/dist/events/pageview.cjs +1 -0
- package/dist/events/pageview.d.cts +14 -0
- package/dist/events/pageview.d.mts +2 -1
- package/dist/events/pageview.mjs +2 -1
- 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 -1
- 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 -1
- package/dist/integrations/platforms/slack.cjs +1 -0
- package/dist/integrations/platforms/slack.d.cts +33 -0
- package/dist/integrations/platforms/slack.d.mts +2 -1
- package/dist/integrations/platforms/slack.mjs +2 -1
- 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 -1
- package/dist/releases/definition.cjs +1 -0
- package/dist/releases/definition.d.cts +57 -0
- package/dist/releases/definition.d.mts +2 -1
- package/dist/releases/definition.mjs +2 -1
- package/dist/releases/slug.cjs +1 -0
- package/dist/releases/slug.d.cts +24 -0
- package/dist/releases/slug.d.mts +3 -1
- package/dist/releases/slug.mjs +2 -1
- 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 -1
- package/dist/sdk/envelope.cjs +1 -0
- package/dist/sdk/envelope.d.cts +1489 -0
- package/dist/sdk/envelope.d.mts +2 -1
- package/dist/sdk/envelope.mjs +2 -1
- package/dist/sdk/errors.cjs +2 -0
- package/dist/sdk/errors.d.cts +154 -0
- package/dist/sdk/errors.d.mts +2 -1
- package/dist/sdk/errors.mjs +3 -2
- 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 -1
- package/dist/sdk/identify.cjs +1 -0
- package/dist/sdk/identify.d.cts +35 -0
- package/dist/sdk/identify.d.mts +2 -1
- package/dist/sdk/identify.mjs +2 -1
- 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 +2 -1
- package/dist/sdk/plugins/context/browser.mjs +2 -1
- 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 -1
- 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 -1
- 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 +2 -1
- package/dist/sdk/plugins/context/node.mjs +2 -1
- package/dist/sdk/plugins/manifest.cjs +1 -0
- package/dist/sdk/plugins/manifest.d.cts +60 -0
- package/dist/sdk/plugins/manifest.d.mts +2 -1
- package/dist/sdk/plugins/manifest.mjs +2 -1
- 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 +2 -1
- package/dist/sdk/plugins/payload/errors.mjs +2 -1
- 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 +2 -1
- package/dist/sdk/plugins/payload/page-events.mjs +2 -1
- 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 -1
- 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 -1
- package/dist/sdk/remote-config.cjs +1 -0
- package/dist/sdk/remote-config.d.cts +39 -0
- package/dist/sdk/remote-config.d.mts +2 -1
- package/dist/sdk/remote-config.mjs +2 -1
- 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 -1
- package/package.json +115 -40
- 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/slack.d.mts.map +0 -1
- package/dist/integrations/platforms/slack.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/releases/slug.d.mts.map +0 -1
- package/dist/releases/slug.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/context/node.d.mts.map +0 -1
- package/dist/sdk/plugins/context/node.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 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const ingestedFrame=zod.z.object({id:zod.z.string().optional(),file:zod.z.string().optional(),fn:zod.z.string().optional(),line:zod.z.number().optional(),column:zod.z.number().optional(),source:zod.z.string().optional(),debugId:zod.z.string().optional()}).meta({id:`Frame`,title:`Frame`,description:`A single stack frame captured from an error.`});exports.ingestedFrame=ingestedFrame;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/data/frame.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* One stack frame as it lands at the collector — pre-source-map
|
|
6
|
+
* resolution. Produced by the collector's stack parser from the OTel
|
|
7
|
+
* `exception.stacktrace` string, supplemented by SDK-side parsed
|
|
8
|
+
* frames (React component stack, `window.onerror` fallback).
|
|
9
|
+
*
|
|
10
|
+
* Field names match the post-resolution `EnrichedFrame` shape so
|
|
11
|
+
* consumers reading "the file the frame is in" don't have to remember
|
|
12
|
+
* which lifecycle stage they're at. The wire format is the same
|
|
13
|
+
* across SDK + collector + enrichment + storage.
|
|
14
|
+
*/
|
|
15
|
+
declare const ingestedFrame: z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
file: z.ZodOptional<z.ZodString>;
|
|
18
|
+
fn: z.ZodOptional<z.ZodString>;
|
|
19
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
source: z.ZodOptional<z.ZodString>;
|
|
22
|
+
debugId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type IngestedFrame = z.infer<typeof ingestedFrame>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { IngestedFrame, ingestedFrame };
|
|
27
|
+
//# sourceMappingURL=frame.d.cts.map
|
package/dist/data/frame.d.mts
CHANGED
package/dist/data/frame.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const ingestedFrame=z.object({id:z.string().optional(),file:z.string().optional(),fn:z.string().optional(),line:z.number().optional(),column:z.number().optional(),source:z.string().optional(),debugId:z.string().optional()}).meta({id:`Frame`,title:`Frame`,description:`A single stack frame captured from an error.`});export{ingestedFrame};
|
|
2
|
+
//# sourceMappingURL=frame.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const sessionIdSchema=zod.z.union([zod.z.uuidv7(),zod.z.templateLiteral([`server_`,zod.z.uuidv7()])]).meta({id:`SessionId`,title:`SessionId`,description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`}).brand();exports.sessionIdSchema=sessionIdSchema;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/data/session.d.ts
|
|
4
|
+
declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
|
|
5
|
+
type SessionId = z.infer<typeof sessionIdSchema>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SessionId, sessionIdSchema };
|
|
8
|
+
//# sourceMappingURL=session.d.cts.map
|
package/dist/data/session.d.mts
CHANGED
|
@@ -4,4 +4,5 @@ import { z } from "zod";
|
|
|
4
4
|
declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
|
|
5
5
|
type SessionId = z.infer<typeof sessionIdSchema>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { SessionId, sessionIdSchema };
|
|
7
|
+
export { SessionId, sessionIdSchema };
|
|
8
|
+
//# sourceMappingURL=session.d.mts.map
|
package/dist/data/session.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const sessionIdSchema=z.union([z.uuidv7(),z.templateLiteral([`server_`,z.uuidv7()])]).meta({id:`SessionId`,title:`SessionId`,description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`}).brand();export{sessionIdSchema};
|
|
2
|
+
//# sourceMappingURL=session.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const manifestBundlerSchema=zod.z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=zod.z.object({chunkUrl:zod.z.string(),debugId:zod.z.string(),objectKey:zod.z.string(),mapHash:zod.z.string()}),sourceMapManifestSchema=zod.z.object({releaseSlug:zod.z.string(),surfaceId:zod.z.string(),organizationId:zod.z.string(),bundler:manifestBundlerSchema,createdAt:zod.z.number(),files:zod.z.array(sourceMapManifestEntrySchema)}),uploadSourceMapEntry=zod.z.object({path:zod.z.string().min(1),hash:zod.z.string(),debugId:zod.z.string(),chunkUrl:zod.z.string()}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=zod.z.object({entries:zod.z.array(uploadSourceMapEntry),sourceFileCount:zod.z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`,description:`Metadata attached alongside uploaded source map files.`}),uploadSourceMapsResponse=zod.z.object({ok:zod.z.boolean(),processed:zod.z.number().int().nonnegative(),message:zod.z.string(),fileCount:zod.z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=zod.z.object({path:zod.z.string().min(1),sizeBytes:zod.z.number().int().nonnegative(),hasSourcesContent:zod.z.boolean(),hasNames:zod.z.boolean(),hasFile:zod.z.boolean(),mappingsPresent:zod.z.boolean()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=zod.z.object({files:zod.z.array(signSourceMapFile)}).meta({id:`SignSourceMapsRequest`,title:`SignSourceMapsRequest`,description:"Per-file metadata the SDK uses to obtain presigned PUT URLs. The server validates per-file size and total file count, then issues short-lived URLs scoped to the release's R2 prefix. The SDK uploads to R2 directly and follows up with a `complete` call to materialize the manifest."}),signSourceMapUpload=zod.z.object({path:zod.z.string(),objectKey:zod.z.string(),presignedUrl:zod.z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=zod.z.object({uploads:zod.z.array(signSourceMapUpload),expiresAt:zod.z.number().int()}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),completeSourceMapFile=zod.z.object({path:zod.z.string().min(1),hash:zod.z.string(),debugId:zod.z.string(),chunkUrl:zod.z.string()}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=zod.z.object({files:zod.z.array(completeSourceMapFile),sourceFileCount:zod.z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`CompleteSourceMapsRequest`,title:`CompleteSourceMapsRequest`,description:"Finalizes a presigned-URL upload batch. Writes the source-map manifest and updates the release's `sourceMapCount` / `sourceFileCount`. Idempotent — safe to retry."}),completeSourceMapsResponse=zod.z.object({ok:zod.z.boolean(),fileCount:zod.z.number().int().nonnegative()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`});exports.completeSourceMapFile=completeSourceMapFile,exports.completeSourceMapsRequest=completeSourceMapsRequest,exports.completeSourceMapsResponse=completeSourceMapsResponse,exports.manifestBundlerSchema=manifestBundlerSchema,exports.signSourceMapFile=signSourceMapFile,exports.signSourceMapUpload=signSourceMapUpload,exports.signSourceMapsRequest=signSourceMapsRequest,exports.signSourceMapsResponse=signSourceMapsResponse,exports.sourceMapManifestSchema=sourceMapManifestSchema,exports.uploadSourceMapEntry=uploadSourceMapEntry,exports.uploadSourceMapsMetadata=uploadSourceMapsMetadata,exports.uploadSourceMapsResponse=uploadSourceMapsResponse;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/data/source-maps.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Bundler that produced this release metadata. Reported back in the
|
|
6
|
+
* SDK `bundler` upload metric for diagnostics. Mandatory now —
|
|
7
|
+
* server-side suffix-matching against `chunkUrl` is uniform across
|
|
8
|
+
* bundlers, but knowing which bundler produced the manifest is still
|
|
9
|
+
* useful for diagnostics (different bundlers exhibit different stack
|
|
10
|
+
* shapes; we want that pivot when investigating resolution issues).
|
|
11
|
+
*/
|
|
12
|
+
declare const manifestBundlerSchema: z.ZodEnum<{
|
|
13
|
+
rollup: "rollup";
|
|
14
|
+
tsc: "tsc";
|
|
15
|
+
turbopack: "turbopack";
|
|
16
|
+
webpack: "webpack";
|
|
17
|
+
}>;
|
|
18
|
+
type ManifestBundler = z.infer<typeof manifestBundlerSchema>;
|
|
19
|
+
declare const sourceMapManifestSchema: z.ZodObject<{
|
|
20
|
+
releaseSlug: z.ZodString;
|
|
21
|
+
surfaceId: z.ZodString;
|
|
22
|
+
organizationId: z.ZodString;
|
|
23
|
+
bundler: z.ZodEnum<{
|
|
24
|
+
rollup: "rollup";
|
|
25
|
+
tsc: "tsc";
|
|
26
|
+
turbopack: "turbopack";
|
|
27
|
+
webpack: "webpack";
|
|
28
|
+
}>;
|
|
29
|
+
createdAt: z.ZodNumber;
|
|
30
|
+
files: z.ZodArray<z.ZodObject<{
|
|
31
|
+
chunkUrl: z.ZodString;
|
|
32
|
+
debugId: z.ZodString;
|
|
33
|
+
objectKey: z.ZodString;
|
|
34
|
+
mapHash: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* Per-entry metadata for the legacy multipart upload endpoint
|
|
40
|
+
* (`POST /v1/releases/:slug/source-maps`). One entry per source-map file
|
|
41
|
+
* in the multipart body, paired by `path` matching the multipart filename.
|
|
42
|
+
*
|
|
43
|
+
* Every entry carries `chunkUrl` (the public URL the runtime loads the
|
|
44
|
+
* chunk from) and `debugId` — both mandatory now. The legacy multipart
|
|
45
|
+
* endpoint accepts the same shape as the new presigned-URL flow.
|
|
46
|
+
*/
|
|
47
|
+
declare const uploadSourceMapEntry: z.ZodObject<{
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
hash: z.ZodString;
|
|
50
|
+
debugId: z.ZodString;
|
|
51
|
+
chunkUrl: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
type UploadSourceMapEntry = z.infer<typeof uploadSourceMapEntry>;
|
|
54
|
+
/**
|
|
55
|
+
* Multipart metadata for the legacy upload endpoint. The `files` field
|
|
56
|
+
* carries the actual JSON bodies as multipart File parts; this `metadata`
|
|
57
|
+
* object travels alongside as a JSON-encoded form field.
|
|
58
|
+
*
|
|
59
|
+
* This endpoint is deprecated in favour of the `/sign` + direct R2 PUT
|
|
60
|
+
* + `/complete` flow, which scales beyond the body-size limits of any
|
|
61
|
+
* worker / load balancer in front of the collector. Kept for backwards
|
|
62
|
+
* compatibility with deployed SDKs during the deprecation window.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
66
|
+
declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
67
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
68
|
+
path: z.ZodString;
|
|
69
|
+
hash: z.ZodString;
|
|
70
|
+
debugId: z.ZodString;
|
|
71
|
+
chunkUrl: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
bundler: z.ZodEnum<{
|
|
75
|
+
rollup: "rollup";
|
|
76
|
+
tsc: "tsc";
|
|
77
|
+
turbopack: "turbopack";
|
|
78
|
+
webpack: "webpack";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
type UploadSourceMapsMetadata = z.infer<typeof uploadSourceMapsMetadata>;
|
|
82
|
+
declare const uploadSourceMapsResponse: z.ZodObject<{
|
|
83
|
+
ok: z.ZodBoolean;
|
|
84
|
+
processed: z.ZodNumber;
|
|
85
|
+
message: z.ZodString;
|
|
86
|
+
fileCount: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
type UploadSourceMapsResponse = z.infer<typeof uploadSourceMapsResponse>;
|
|
89
|
+
declare const signSourceMapFile: z.ZodObject<{
|
|
90
|
+
path: z.ZodString;
|
|
91
|
+
sizeBytes: z.ZodNumber;
|
|
92
|
+
hasSourcesContent: z.ZodBoolean;
|
|
93
|
+
hasNames: z.ZodBoolean;
|
|
94
|
+
hasFile: z.ZodBoolean;
|
|
95
|
+
mappingsPresent: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
declare const signSourceMapsRequest: z.ZodObject<{
|
|
98
|
+
files: z.ZodArray<z.ZodObject<{
|
|
99
|
+
path: z.ZodString;
|
|
100
|
+
sizeBytes: z.ZodNumber;
|
|
101
|
+
hasSourcesContent: z.ZodBoolean;
|
|
102
|
+
hasNames: z.ZodBoolean;
|
|
103
|
+
hasFile: z.ZodBoolean;
|
|
104
|
+
mappingsPresent: z.ZodBoolean;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
type SignSourceMapsRequest = z.infer<typeof signSourceMapsRequest>;
|
|
108
|
+
declare const signSourceMapUpload: z.ZodObject<{
|
|
109
|
+
path: z.ZodString;
|
|
110
|
+
objectKey: z.ZodString;
|
|
111
|
+
presignedUrl: z.ZodString;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
declare const signSourceMapsResponse: z.ZodObject<{
|
|
114
|
+
uploads: z.ZodArray<z.ZodObject<{
|
|
115
|
+
path: z.ZodString;
|
|
116
|
+
objectKey: z.ZodString;
|
|
117
|
+
presignedUrl: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
expiresAt: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
type SignSourceMapsResponse = z.infer<typeof signSourceMapsResponse>;
|
|
122
|
+
declare const completeSourceMapFile: z.ZodObject<{
|
|
123
|
+
path: z.ZodString;
|
|
124
|
+
hash: z.ZodString;
|
|
125
|
+
debugId: z.ZodString;
|
|
126
|
+
chunkUrl: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
declare const completeSourceMapsRequest: z.ZodObject<{
|
|
129
|
+
files: z.ZodArray<z.ZodObject<{
|
|
130
|
+
path: z.ZodString;
|
|
131
|
+
hash: z.ZodString;
|
|
132
|
+
debugId: z.ZodString;
|
|
133
|
+
chunkUrl: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
bundler: z.ZodEnum<{
|
|
137
|
+
rollup: "rollup";
|
|
138
|
+
tsc: "tsc";
|
|
139
|
+
turbopack: "turbopack";
|
|
140
|
+
webpack: "webpack";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
type CompleteSourceMapsRequest = z.infer<typeof completeSourceMapsRequest>;
|
|
144
|
+
declare const completeSourceMapsResponse: z.ZodObject<{
|
|
145
|
+
ok: z.ZodBoolean;
|
|
146
|
+
fileCount: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
149
|
+
//#endregion
|
|
150
|
+
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
151
|
+
//# sourceMappingURL=source-maps.d.cts.map
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/data/source-maps.d.ts
|
|
4
4
|
/**
|
|
5
|
-
* Bundler that produced this
|
|
5
|
+
* Bundler that produced this release metadata. Reported back in the
|
|
6
6
|
* SDK `bundler` upload metric for diagnostics. Mandatory now —
|
|
7
7
|
* server-side suffix-matching against `chunkUrl` is uniform across
|
|
8
8
|
* bundlers, but knowing which bundler produced the manifest is still
|
|
@@ -10,6 +10,7 @@ import { z } from "zod";
|
|
|
10
10
|
* shapes; we want that pivot when investigating resolution issues).
|
|
11
11
|
*/
|
|
12
12
|
declare const manifestBundlerSchema: z.ZodEnum<{
|
|
13
|
+
rollup: "rollup";
|
|
13
14
|
tsc: "tsc";
|
|
14
15
|
turbopack: "turbopack";
|
|
15
16
|
webpack: "webpack";
|
|
@@ -20,6 +21,7 @@ declare const sourceMapManifestSchema: z.ZodObject<{
|
|
|
20
21
|
surfaceId: z.ZodString;
|
|
21
22
|
organizationId: z.ZodString;
|
|
22
23
|
bundler: z.ZodEnum<{
|
|
24
|
+
rollup: "rollup";
|
|
23
25
|
tsc: "tsc";
|
|
24
26
|
turbopack: "turbopack";
|
|
25
27
|
webpack: "webpack";
|
|
@@ -70,6 +72,7 @@ declare const uploadSourceMapsMetadata: z.ZodObject<{
|
|
|
70
72
|
}, z.core.$strip>>;
|
|
71
73
|
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
72
74
|
bundler: z.ZodEnum<{
|
|
75
|
+
rollup: "rollup";
|
|
73
76
|
tsc: "tsc";
|
|
74
77
|
turbopack: "turbopack";
|
|
75
78
|
webpack: "webpack";
|
|
@@ -131,6 +134,7 @@ declare const completeSourceMapsRequest: z.ZodObject<{
|
|
|
131
134
|
}, z.core.$strip>>;
|
|
132
135
|
sourceFileCount: z.ZodOptional<z.ZodNumber>;
|
|
133
136
|
bundler: z.ZodEnum<{
|
|
137
|
+
rollup: "rollup";
|
|
134
138
|
tsc: "tsc";
|
|
135
139
|
turbopack: "turbopack";
|
|
136
140
|
webpack: "webpack";
|
|
@@ -143,4 +147,5 @@ declare const completeSourceMapsResponse: z.ZodObject<{
|
|
|
143
147
|
}, z.core.$strip>;
|
|
144
148
|
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
145
149
|
//#endregion
|
|
146
|
-
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
150
|
+
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
151
|
+
//# sourceMappingURL=source-maps.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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(),objectKey:z.string(),mapHash:z.string()}),sourceMapManifestSchema=z.object({releaseSlug:z.string(),surfaceId:z.string(),organizationId:z.string(),bundler:manifestBundlerSchema,createdAt:z.number(),files:z.array(sourceMapManifestEntrySchema)}),uploadSourceMapEntry=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=z.object({entries:z.array(uploadSourceMapEntry),sourceFileCount:z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`,description:`Metadata attached alongside uploaded source map files.`}),uploadSourceMapsResponse=z.object({ok:z.boolean(),processed:z.number().int().nonnegative(),message:z.string(),fileCount:z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=z.object({path:z.string().min(1),sizeBytes:z.number().int().nonnegative(),hasSourcesContent:z.boolean(),hasNames:z.boolean(),hasFile:z.boolean(),mappingsPresent:z.boolean()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=z.object({files:z.array(signSourceMapFile)}).meta({id:`SignSourceMapsRequest`,title:`SignSourceMapsRequest`,description:"Per-file metadata the SDK uses to obtain presigned PUT URLs. The server validates per-file size and total file count, then issues short-lived URLs scoped to the release's R2 prefix. The SDK uploads to R2 directly and follows up with a `complete` call to materialize the manifest."}),signSourceMapUpload=z.object({path:z.string(),objectKey:z.string(),presignedUrl:z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=z.object({uploads:z.array(signSourceMapUpload),expiresAt:z.number().int()}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),completeSourceMapFile=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=z.object({files:z.array(completeSourceMapFile),sourceFileCount:z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`CompleteSourceMapsRequest`,title:`CompleteSourceMapsRequest`,description:"Finalizes a presigned-URL upload batch. Writes the source-map manifest and updates the release's `sourceMapCount` / `sourceFileCount`. Idempotent — safe to retry."}),completeSourceMapsResponse=z.object({ok:z.boolean(),fileCount:z.number().int().nonnegative()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`});export{completeSourceMapFile,completeSourceMapsRequest,completeSourceMapsResponse,manifestBundlerSchema,signSourceMapFile,signSourceMapUpload,signSourceMapsRequest,signSourceMapsResponse,sourceMapManifestSchema,uploadSourceMapEntry,uploadSourceMapsMetadata,uploadSourceMapsResponse};
|
|
2
|
+
//# sourceMappingURL=source-maps.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod"),_data_frame=require("#data/frame");const baseEnrichedFrameSchema=zod.z.object({ingestedId:zod.z.string(),inApp:zod.z.boolean(),file:zod.z.string().nullable(),line:zod.z.number().nullable(),column:zod.z.number().nullable(),fn:zod.z.string().nullable()}),resolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:zod.z.literal(!0),originalFile:zod.z.string().nullable(),originalLine:zod.z.number().nullable(),originalColumn:zod.z.number().nullable(),originalName:zod.z.string().nullable()}),unresolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:zod.z.literal(!1)}),enrichedFrameSchema=zod.z.discriminatedUnion(`resolved`,[resolvedFrameSchema,unresolvedFrameSchema]),errorMechanismSchema=zod.z.object({type:zod.z.string(),handled:zod.z.boolean(),synthetic:zod.z.boolean().optional()}),errorContextSchema=zod.z.object({framework:zod.z.string().optional(),routerKind:zod.z.enum([`Pages Router`,`App Router`]).optional(),routePath:zod.z.string().optional(),routeType:zod.z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).optional(),renderSource:zod.z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).optional(),revalidateReason:zod.z.enum([`on-demand`,`stale`]).optional(),renderType:zod.z.enum([`dynamic`,`dynamic-resume`]).optional(),requestPath:zod.z.string().optional(),requestMethod:zod.z.string().optional(),errorDigest:zod.z.string().optional()}),errorPayloadCommonSchema=zod.z.object({message:zod.z.string().nullable(),name:zod.z.string().nullable(),stack:zod.z.string().nullable(),context:errorContextSchema.optional(),mechanism:errorMechanismSchema.optional(),captureSource:zod.z.string().optional(),runtime:zod.z.string().optional(),frames:zod.z.array(_data_frame.ingestedFrame)}),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;
|
|
@@ -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
|
@@ -192,4 +192,5 @@ declare const errorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
192
192
|
}, z.core.$strip>], "capture">;
|
|
193
193
|
type ErrorPayload = z.infer<typeof errorPayloadSchema>;
|
|
194
194
|
//#endregion
|
|
195
|
-
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
195
|
+
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
196
|
+
//# sourceMappingURL=error.d.mts.map
|
package/dist/events/error.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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
|
|
@@ -9,4 +9,5 @@ declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
|
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 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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
|
|
@@ -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 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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;
|