@interfere/types 0.1.0-alpha.1 → 0.1.0-alpha.2
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/LICENSE +1 -1
- package/dist/auth/public-token.d.mts.map +1 -1
- package/dist/auth/public-token.mjs +1 -3
- package/dist/auth/public-token.mjs.map +1 -1
- package/dist/data/frame.d.mts +5 -12
- package/dist/data/frame.d.mts.map +1 -1
- package/dist/data/frame.mjs +6 -7
- package/dist/data/frame.mjs.map +1 -1
- package/dist/data/session.d.mts +2 -2
- package/dist/data/session.d.mts.map +1 -1
- package/dist/data/session.mjs +3 -5
- package/dist/data/session.mjs.map +1 -1
- package/dist/data/source-maps.d.mts +33 -82
- package/dist/data/source-maps.d.mts.map +1 -1
- package/dist/data/source-maps.mjs +14 -39
- package/dist/data/source-maps.mjs.map +1 -1
- package/dist/data/surface.d.mts.map +1 -1
- package/dist/data/surface.mjs +2 -6
- package/dist/data/surface.mjs.map +1 -1
- package/dist/events/error.d.mts +89 -0
- package/dist/events/error.d.mts.map +1 -0
- package/dist/events/error.mjs +63 -0
- package/dist/events/error.mjs.map +1 -0
- package/dist/events/identify.d.mts +13 -0
- package/dist/events/identify.d.mts.map +1 -0
- package/dist/events/identify.mjs +11 -0
- package/dist/events/identify.mjs.map +1 -0
- package/dist/events/index.d.mts +392 -0
- package/dist/events/index.d.mts.map +1 -0
- package/dist/events/index.mjs +82 -0
- package/dist/events/index.mjs.map +1 -0
- package/dist/events/pageleave.d.mts +12 -0
- package/dist/events/pageleave.d.mts.map +1 -0
- package/dist/events/pageleave.mjs +10 -0
- package/dist/events/pageleave.mjs.map +1 -0
- package/dist/events/pageview.d.mts +13 -0
- package/dist/events/pageview.d.mts.map +1 -0
- package/dist/events/pageview.mjs +11 -0
- package/dist/events/pageview.mjs.map +1 -0
- package/dist/events/rage-click.d.mts +17 -0
- package/dist/events/rage-click.d.mts.map +1 -0
- package/dist/events/rage-click.mjs +15 -0
- package/dist/events/rage-click.mjs.map +1 -0
- package/dist/events/replay-chunk.d.mts +15 -0
- package/dist/events/replay-chunk.d.mts.map +1 -0
- package/dist/events/replay-chunk.mjs +13 -0
- package/dist/events/replay-chunk.mjs.map +1 -0
- package/dist/events/session-summary.d.mts +15 -0
- package/dist/events/session-summary.d.mts.map +1 -0
- package/dist/events/session-summary.mjs +13 -0
- package/dist/events/session-summary.mjs.map +1 -0
- package/dist/events/ui-event.d.mts +11 -0
- package/dist/events/ui-event.d.mts.map +1 -0
- package/dist/events/ui-event.mjs +9 -0
- package/dist/events/ui-event.mjs.map +1 -0
- package/dist/integrations/index.d.mts +47 -0
- package/dist/integrations/index.d.mts.map +1 -0
- package/dist/integrations/index.mjs +25 -0
- package/dist/integrations/index.mjs.map +1 -0
- package/dist/integrations/platforms/github.d.mts +24 -0
- package/dist/integrations/platforms/github.d.mts.map +1 -0
- package/dist/integrations/platforms/github.mjs +19 -0
- package/dist/integrations/platforms/github.mjs.map +1 -0
- package/dist/integrations/platforms/vercel.d.mts +28 -0
- package/dist/integrations/platforms/vercel.d.mts.map +1 -0
- package/dist/integrations/platforms/vercel.mjs +24 -0
- package/dist/integrations/platforms/vercel.mjs.map +1 -0
- package/dist/releases/definition.d.mts +43 -80
- package/dist/releases/definition.d.mts.map +1 -1
- package/dist/releases/definition.mjs +24 -26
- package/dist/releases/definition.mjs.map +1 -1
- package/dist/sdk/capture.d.mts +2 -2
- package/dist/sdk/capture.d.mts.map +1 -1
- package/dist/sdk/capture.mjs +3 -7
- package/dist/sdk/capture.mjs.map +1 -1
- package/dist/sdk/config.d.mts +19 -25
- package/dist/sdk/config.d.mts.map +1 -1
- package/dist/sdk/config.mjs +2 -4
- package/dist/sdk/config.mjs.map +1 -1
- package/dist/sdk/env.d.mts +9 -0
- package/dist/sdk/env.d.mts.map +1 -0
- package/dist/sdk/env.mjs +17 -0
- package/dist/sdk/env.mjs.map +1 -0
- package/dist/sdk/envelope.d.mts +314 -97
- package/dist/sdk/envelope.d.mts.map +1 -1
- package/dist/sdk/envelope.mjs +46 -31
- package/dist/sdk/envelope.mjs.map +1 -1
- package/dist/sdk/errors.d.mts +7 -0
- package/dist/sdk/errors.d.mts.map +1 -0
- package/dist/sdk/errors.mjs +33 -0
- package/dist/sdk/errors.mjs.map +1 -0
- package/dist/sdk/identify.d.mts +13 -0
- package/dist/sdk/identify.d.mts.map +1 -0
- package/dist/sdk/identify.mjs +11 -0
- package/dist/sdk/identify.mjs.map +1 -0
- package/dist/sdk/packages.d.mts.map +1 -1
- package/dist/sdk/packages.mjs +1 -3
- package/dist/sdk/packages.mjs.map +1 -1
- package/dist/sdk/plugins/context/browser.d.mts +83 -0
- package/dist/sdk/plugins/context/browser.d.mts.map +1 -0
- package/dist/sdk/plugins/context/browser.mjs +41 -0
- package/dist/sdk/plugins/context/browser.mjs.map +1 -0
- package/dist/sdk/plugins/context/edge.d.mts +9 -0
- package/dist/sdk/plugins/context/edge.d.mts.map +1 -0
- package/dist/sdk/plugins/context/edge.mjs +5 -0
- package/dist/sdk/plugins/context/edge.mjs.map +1 -0
- package/dist/sdk/plugins/context/next.d.mts +37 -0
- package/dist/sdk/plugins/context/next.d.mts.map +1 -0
- package/dist/sdk/plugins/context/next.mjs +26 -0
- package/dist/sdk/plugins/context/next.mjs.map +1 -0
- package/dist/sdk/plugins/lib/schemas.d.mts +2 -3
- package/dist/sdk/plugins/lib/schemas.d.mts.map +1 -1
- package/dist/sdk/plugins/lib/schemas.mjs +1 -1
- package/dist/sdk/plugins/manifest.d.mts +24 -90
- package/dist/sdk/plugins/manifest.d.mts.map +1 -1
- package/dist/sdk/plugins/manifest.mjs +26 -49
- package/dist/sdk/plugins/manifest.mjs.map +1 -1
- package/dist/sdk/plugins/payload/ai-summary.d.mts.map +1 -1
- package/dist/sdk/plugins/payload/ai-summary.mjs +1 -3
- package/dist/sdk/plugins/payload/ai-summary.mjs.map +1 -1
- package/dist/sdk/plugins/payload/errors.d.mts +39 -22
- package/dist/sdk/plugins/payload/errors.d.mts.map +1 -1
- package/dist/sdk/plugins/payload/errors.mjs +12 -9
- package/dist/sdk/plugins/payload/errors.mjs.map +1 -1
- package/dist/sdk/plugins/payload/page-events.d.mts.map +1 -1
- package/dist/sdk/plugins/payload/page-events.mjs +1 -3
- package/dist/sdk/plugins/payload/page-events.mjs.map +1 -1
- package/dist/sdk/plugins/payload/rage-click.d.mts.map +1 -1
- package/dist/sdk/plugins/payload/rage-click.mjs +1 -3
- package/dist/sdk/plugins/payload/rage-click.mjs.map +1 -1
- package/dist/sdk/plugins/payload/replay.d.mts +2 -0
- package/dist/sdk/plugins/payload/replay.d.mts.map +1 -1
- package/dist/sdk/plugins/payload/replay.mjs +4 -4
- package/dist/sdk/plugins/payload/replay.mjs.map +1 -1
- package/dist/sdk/runtime.d.mts +4 -1
- package/dist/sdk/runtime.d.mts.map +1 -1
- package/dist/sdk/runtime.mjs +9 -4
- package/dist/sdk/runtime.mjs.map +1 -1
- package/package.json +52 -26
- package/dist/auth/secret-key.d.mts +0 -5
- package/dist/auth/secret-key.d.mts.map +0 -1
- package/dist/auth/secret-key.mjs +0 -6
- package/dist/auth/secret-key.mjs.map +0 -1
- package/dist/releases/sources/version-control.d.mts +0 -16
- package/dist/releases/sources/version-control.d.mts.map +0 -1
- package/dist/releases/sources/version-control.mjs +0 -13
- package/dist/releases/sources/version-control.mjs.map +0 -1
- package/dist/releases/targets/cloud-platform.d.mts +0 -27
- package/dist/releases/targets/cloud-platform.d.mts.map +0 -1
- package/dist/releases/targets/cloud-platform.mjs +0 -24
- package/dist/releases/targets/cloud-platform.mjs.map +0 -1
- package/dist/sdk/plugins/lib/types.d.mts +0 -19
- package/dist/sdk/plugins/lib/types.d.mts.map +0 -1
- package/dist/sdk/plugins/lib/types.mjs +0 -8
- package/dist/sdk/plugins/lib/types.mjs.map +0 -1
package/LICENSE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-token.d.mts","names":[],"sources":["../../src/auth/public-token.ts"],"
|
|
1
|
+
{"version":3,"file":"public-token.d.mts","names":[],"sources":["../../src/auth/public-token.ts"],"mappings":";;;cAEa,mBAAA;AAAA,cACA,kBAAA,EAAkB,MAAA;AAAA,cAElB,iBAAA,EAAiB,GAAA,CAAA,SAAA;AAAA,KAElB,WAAA,GAAc,GAAA,CAAE,KAAA,QAAa,iBAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import z$1 from "zod";
|
|
2
|
-
|
|
3
2
|
//#region src/auth/public-token.ts
|
|
4
3
|
const PUBLIC_TOKEN_PREFIX = "int_pub_";
|
|
5
4
|
const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;
|
|
6
5
|
const publicTokenSchema = z$1.string().startsWith(PUBLIC_TOKEN_PREFIX);
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
|
-
export { PUBLIC_TOKEN_PREFIX, PUBLIC_TOKEN_REGEX, publicTokenSchema };
|
|
7
|
+
export { PUBLIC_TOKEN_PREFIX, PUBLIC_TOKEN_REGEX, publicTokenSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-token.mjs","names":["z"],"sources":["../../src/auth/public-token.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const PUBLIC_TOKEN_PREFIX = \"int_pub_\";\nexport const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;\n\nexport const publicTokenSchema = z.string().startsWith(PUBLIC_TOKEN_PREFIX);\n\nexport type PublicToken = z.infer<typeof publicTokenSchema>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"public-token.mjs","names":["z"],"sources":["../../src/auth/public-token.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const PUBLIC_TOKEN_PREFIX = \"int_pub_\";\nexport const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;\n\nexport const publicTokenSchema = z.string().startsWith(PUBLIC_TOKEN_PREFIX);\n\nexport type PublicToken = z.infer<typeof publicTokenSchema>;\n"],"mappings":";;AAEA,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAElC,MAAa,oBAAoBA,IAAE,QAAQ,CAAC,WAAW,oBAAoB"}
|
package/dist/data/frame.d.mts
CHANGED
|
@@ -2,18 +2,11 @@ import z$1 from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/data/frame.d.ts
|
|
4
4
|
declare const ingestedFrame: z$1.ZodObject<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, z$1.core.$strip>;
|
|
11
|
-
column: z$1.ZodObject<{
|
|
12
|
-
reported: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13
|
-
}, z$1.core.$strip>;
|
|
14
|
-
fn: z$1.ZodObject<{
|
|
15
|
-
reported: z$1.ZodNullable<z$1.ZodString>;
|
|
16
|
-
}, z$1.core.$strip>;
|
|
5
|
+
fileName: z$1.ZodOptional<z$1.ZodString>;
|
|
6
|
+
functionName: z$1.ZodOptional<z$1.ZodString>;
|
|
7
|
+
lineNumber: z$1.ZodOptional<z$1.ZodNumber>;
|
|
8
|
+
columnNumber: z$1.ZodOptional<z$1.ZodNumber>;
|
|
9
|
+
source: z$1.ZodOptional<z$1.ZodString>;
|
|
17
10
|
}, z$1.core.$strip>;
|
|
18
11
|
type IngestedFrame = z$1.infer<typeof ingestedFrame>;
|
|
19
12
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.mts","names":[],"sources":["../../src/data/frame.ts"],"
|
|
1
|
+
{"version":3,"file":"frame.d.mts","names":[],"sources":["../../src/data/frame.ts"],"mappings":";;;cAEa,aAAA,EAAa,GAAA,CAAA,SAAA;;;;;;;KAQd,aAAA,GAAgB,GAAA,CAAE,KAAA,QAAa,aAAA"}
|
package/dist/data/frame.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import z$1 from "zod";
|
|
2
|
-
|
|
3
2
|
//#region src/data/frame.ts
|
|
4
3
|
const ingestedFrame = z$1.object({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
fileName: z$1.string().optional(),
|
|
5
|
+
functionName: z$1.string().optional(),
|
|
6
|
+
lineNumber: z$1.number().optional(),
|
|
7
|
+
columnNumber: z$1.number().optional(),
|
|
8
|
+
source: z$1.string().optional()
|
|
9
9
|
});
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
|
-
export { ingestedFrame };
|
|
11
|
+
export { ingestedFrame };
|
package/dist/data/frame.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame.mjs","names":["z"],"sources":["../../src/data/frame.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const ingestedFrame = z.object({\n
|
|
1
|
+
{"version":3,"file":"frame.mjs","names":["z"],"sources":["../../src/data/frame.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const ingestedFrame = z.object({\n fileName: z.string().optional(),\n functionName: z.string().optional(),\n lineNumber: z.number().optional(),\n columnNumber: z.number().optional(),\n source: z.string().optional(),\n});\n\nexport type IngestedFrame = z.infer<typeof ingestedFrame>;\n"],"mappings":";;AAEA,MAAa,gBAAgBA,IAAE,OAAO;CACpC,UAAUA,IAAE,QAAQ,CAAC,UAAU;CAC/B,cAAcA,IAAE,QAAQ,CAAC,UAAU;CACnC,YAAYA,IAAE,QAAQ,CAAC,UAAU;CACjC,cAAcA,IAAE,QAAQ,CAAC,UAAU;CACnC,QAAQA,IAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC"}
|
package/dist/data/session.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
2
|
|
|
3
3
|
//#region src/data/session.d.ts
|
|
4
|
-
declare const sessionIdSchema: z.ZodUUID
|
|
4
|
+
declare const sessionIdSchema: z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>;
|
|
5
5
|
type SessionId = z.infer<typeof sessionIdSchema>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SessionId, sessionIdSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.mts","names":[],"sources":["../../src/data/session.ts"],"
|
|
1
|
+
{"version":3,"file":"session.d.mts","names":[],"sources":["../../src/data/session.ts"],"mappings":";;;cAKa,eAAA,EAAe,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,OAAA,EAAA,CAAA,CAAA,kBAAA;AAAA,KAKhB,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA"}
|
package/dist/data/session.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
1
|
+
import { z } from "zod/v4";
|
|
3
2
|
//#region src/data/session.ts
|
|
4
|
-
const sessionIdSchema = z.uuidv7();
|
|
5
|
-
|
|
3
|
+
const sessionIdSchema = z.union([z.uuidv7(), z.templateLiteral(["server_", z.uuidv7()])]);
|
|
6
4
|
//#endregion
|
|
7
|
-
export { sessionIdSchema };
|
|
5
|
+
export { sessionIdSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.mjs","names":[],"sources":["../../src/data/session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const sessionIdSchema = z.uuidv7();\n\nexport type SessionId = z.infer<typeof sessionIdSchema>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"session.mjs","names":[],"sources":["../../src/data/session.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\n// Session IDs can be:\n// - Plain UUIDv7 (from client SDK)\n// - \"server_\" prefixed UUIDv7 (server-side fallback when no client session exists)\nexport const sessionIdSchema = z.union([\n z.uuidv7(),\n z.templateLiteral([\"server_\", z.uuidv7()]),\n]);\n\nexport type SessionId = z.infer<typeof sessionIdSchema>;\n"],"mappings":";;AAKA,MAAa,kBAAkB,EAAE,MAAM,CACrC,EAAE,QAAQ,EACV,EAAE,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAC3C,CAAC"}
|
|
@@ -1,95 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/data/source-maps.d.ts
|
|
4
|
-
declare const baseFileMetadataSchema: z.ZodObject<{
|
|
5
|
-
relativePath: z.ZodString;
|
|
6
|
-
hash: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
declare const sourceMapFileSchema: z.ZodObject<{
|
|
9
|
-
relativePath: z.ZodString;
|
|
10
|
-
hash: z.ZodString;
|
|
11
|
-
size: z.ZodNumber;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
type SourceMapFile = z.infer<typeof sourceMapFileSchema>;
|
|
14
|
-
declare const uploadTokenSchema: z.ZodObject<{
|
|
15
|
-
relativePath: z.ZodString;
|
|
16
|
-
uploadUrl: z.ZodURL;
|
|
17
|
-
expiresAt: z.ZodISODateTime;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
type UploadToken = z.infer<typeof uploadTokenSchema>;
|
|
20
|
-
declare const batchUploadPathsSchema: z.ZodObject<{
|
|
21
|
-
uploadPaths: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
22
|
-
uploadPath: z.ZodString;
|
|
23
|
-
contentType: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
expiresAt: z.ZodISODateTime;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
type BatchUploadPaths = z.infer<typeof batchUploadPathsSchema>;
|
|
28
|
-
declare const batchUploadTokensSchema: z.ZodObject<{
|
|
29
|
-
uploadPaths: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
30
|
-
uploadPath: z.ZodString;
|
|
31
|
-
contentType: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>;
|
|
33
|
-
expiresAt: z.ZodISODateTime;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
type BatchUploadTokens = BatchUploadPaths;
|
|
36
|
-
declare const uploadedBlobSchema: z.ZodObject<{
|
|
37
|
-
relativePath: z.ZodString;
|
|
38
|
-
hash: z.ZodString;
|
|
39
|
-
blobUrl: z.ZodURL;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
declare const uploadedSourceMapSchema: z.ZodObject<{
|
|
42
|
-
relativePath: z.ZodString;
|
|
43
|
-
hash: z.ZodString;
|
|
44
|
-
content: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
declare const uploadedJsFileSchema: z.ZodObject<{
|
|
47
|
-
relativePath: z.ZodString;
|
|
48
|
-
hash: z.ZodString;
|
|
49
|
-
content: z.ZodString;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
type UploadedSourceMap = z.infer<typeof uploadedSourceMapSchema>;
|
|
52
|
-
type UploadedJsFile = z.infer<typeof uploadedJsFileSchema>;
|
|
53
|
-
type UploadedBlob = z.infer<typeof uploadedBlobSchema>;
|
|
54
|
-
declare const sourceMapConfigSchema: z.ZodObject<{
|
|
55
|
-
uploadTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
56
|
-
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
57
|
-
concurrency: z.ZodDefault<z.ZodNumber>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
type SourceMapConfig = z.infer<typeof sourceMapConfigSchema>;
|
|
60
4
|
declare const getSourceMapPath: ({
|
|
61
|
-
|
|
5
|
+
organizationId,
|
|
62
6
|
surfaceId,
|
|
63
|
-
|
|
7
|
+
buildId,
|
|
64
8
|
relativePath
|
|
65
9
|
}: {
|
|
66
|
-
|
|
67
|
-
surfaceId:
|
|
68
|
-
|
|
10
|
+
organizationId: string;
|
|
11
|
+
surfaceId: string;
|
|
12
|
+
buildId: string;
|
|
69
13
|
relativePath: string;
|
|
70
14
|
}) => string;
|
|
71
|
-
declare const
|
|
72
|
-
|
|
15
|
+
declare const sourceMapManifestEntrySchema: z.ZodObject<{
|
|
16
|
+
relativePath: z.ZodString;
|
|
17
|
+
generatedFile: z.ZodString;
|
|
18
|
+
hash: z.ZodString;
|
|
19
|
+
blobUrl: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type SourceMapManifestEntry = z.infer<typeof sourceMapManifestEntrySchema>;
|
|
22
|
+
declare const sourceMapManifestSchema: z.ZodObject<{
|
|
23
|
+
buildId: z.ZodString;
|
|
24
|
+
releaseId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
surfaceId: z.ZodString;
|
|
26
|
+
organizationId: z.ZodString;
|
|
27
|
+
createdAt: z.ZodNumber;
|
|
28
|
+
files: z.ZodArray<z.ZodObject<{
|
|
29
|
+
relativePath: z.ZodString;
|
|
30
|
+
generatedFile: z.ZodString;
|
|
31
|
+
hash: z.ZodString;
|
|
32
|
+
blobUrl: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;
|
|
36
|
+
declare const getManifestPath: ({
|
|
37
|
+
organizationId,
|
|
73
38
|
surfaceId,
|
|
74
|
-
|
|
75
|
-
relativePath
|
|
39
|
+
buildId
|
|
76
40
|
}: {
|
|
77
|
-
|
|
78
|
-
surfaceId:
|
|
79
|
-
|
|
80
|
-
relativePath: string;
|
|
41
|
+
organizationId: string;
|
|
42
|
+
surfaceId: string;
|
|
43
|
+
buildId: string;
|
|
81
44
|
}) => string;
|
|
82
|
-
declare const sourceMapMappingSchema: z.ZodObject<{
|
|
83
|
-
releaseId: z.ZodNumber;
|
|
84
|
-
filePath: z.ZodString;
|
|
85
|
-
generatedFilePath: z.ZodString;
|
|
86
|
-
generatedLine: z.ZodNumber;
|
|
87
|
-
generatedColumn: z.ZodNumber;
|
|
88
|
-
originalFile: z.ZodNullable<z.ZodString>;
|
|
89
|
-
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
90
|
-
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
91
|
-
originalName: z.ZodNullable<z.ZodString>;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
type SourceMapMapping = z.infer<typeof sourceMapMappingSchema>;
|
|
94
45
|
//#endregion
|
|
95
|
-
export {
|
|
46
|
+
export { SourceMapManifest, SourceMapManifestEntry, getManifestPath, getSourceMapPath, sourceMapManifestEntrySchema, sourceMapManifestSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-maps.d.mts","names":[],"sources":["../../src/data/source-maps.ts"],"
|
|
1
|
+
{"version":3,"file":"source-maps.d.mts","names":[],"sources":["../../src/data/source-maps.ts"],"mappings":";;;cAEa,gBAAA;EAAoB,cAAA;EAAA,SAAA;EAAA,OAAA;EAAA;AAAA;EAM/B,cAAA;EACA,SAAA;EACA,OAAA;EACA,YAAA;AAAA;AAAA,cAIW,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;KAO7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAC9B,4BAAA;AAAA,cAGI,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;KASxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAElC,eAAA;EAAmB,cAAA;EAAA,SAAA;EAAA;AAAA;EAK9B,cAAA;EACA,SAAA;EACA,OAAA;AAAA"}
|
|
@@ -1,45 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
2
|
//#region src/data/source-maps.ts
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
hash: z.string().describe("SHA256 hash of the file content")
|
|
7
|
-
});
|
|
8
|
-
const sourceMapFileSchema = baseFileMetadataSchema.extend({ size: z.number().positive().describe("File size in bytes") });
|
|
9
|
-
const uploadTokenSchema = z.object({
|
|
3
|
+
const getSourceMapPath = ({ organizationId, surfaceId, buildId, relativePath }) => `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/${relativePath}`;
|
|
4
|
+
const sourceMapManifestEntrySchema = z.object({
|
|
10
5
|
relativePath: z.string(),
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const batchUploadPathsSchema = z.object({
|
|
15
|
-
uploadPaths: z.record(z.string(), z.object({
|
|
16
|
-
uploadPath: z.string(),
|
|
17
|
-
contentType: z.string()
|
|
18
|
-
})),
|
|
19
|
-
expiresAt: z.iso.datetime()
|
|
20
|
-
});
|
|
21
|
-
const batchUploadTokensSchema = batchUploadPathsSchema;
|
|
22
|
-
const uploadedBlobSchema = baseFileMetadataSchema.extend({ blobUrl: z.url() });
|
|
23
|
-
const uploadedSourceMapSchema = baseFileMetadataSchema.extend({ content: z.string() });
|
|
24
|
-
const uploadedJsFileSchema = baseFileMetadataSchema.extend({ content: z.string() });
|
|
25
|
-
const sourceMapConfigSchema = z.object({
|
|
26
|
-
uploadTimeoutMs: z.number().positive().default(3e4),
|
|
27
|
-
maxRetries: z.number().min(0).default(3),
|
|
28
|
-
concurrency: z.number().positive().default(5)
|
|
6
|
+
generatedFile: z.string(),
|
|
7
|
+
hash: z.string(),
|
|
8
|
+
blobUrl: z.string()
|
|
29
9
|
});
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
generatedColumn: z.number(),
|
|
38
|
-
originalFile: z.string().nullable(),
|
|
39
|
-
originalLine: z.number().nullable(),
|
|
40
|
-
originalColumn: z.number().nullable(),
|
|
41
|
-
originalName: z.string().nullable()
|
|
10
|
+
const sourceMapManifestSchema = z.object({
|
|
11
|
+
buildId: z.string(),
|
|
12
|
+
releaseId: z.string().optional(),
|
|
13
|
+
surfaceId: z.string(),
|
|
14
|
+
organizationId: z.string(),
|
|
15
|
+
createdAt: z.number(),
|
|
16
|
+
files: z.array(sourceMapManifestEntrySchema)
|
|
42
17
|
});
|
|
43
|
-
|
|
18
|
+
const getManifestPath = ({ organizationId, surfaceId, buildId }) => `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/_manifest.json`;
|
|
44
19
|
//#endregion
|
|
45
|
-
export {
|
|
20
|
+
export { getManifestPath, getSourceMapPath, sourceMapManifestEntrySchema, sourceMapManifestSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-maps.mjs","names":[],"sources":["../../src/data/source-maps.ts"],"sourcesContent":["import { z } from \"zod\";\n\
|
|
1
|
+
{"version":3,"file":"source-maps.mjs","names":[],"sources":["../../src/data/source-maps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const getSourceMapPath = ({\n organizationId,\n surfaceId,\n buildId,\n relativePath,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n relativePath: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/${relativePath}`;\n\nexport const sourceMapManifestEntrySchema = z.object({\n relativePath: z.string(),\n generatedFile: z.string(),\n hash: z.string(),\n blobUrl: z.string(),\n});\n\nexport type SourceMapManifestEntry = z.infer<\n typeof sourceMapManifestEntrySchema\n>;\n\nexport const sourceMapManifestSchema = z.object({\n buildId: z.string(),\n releaseId: z.string().optional(),\n surfaceId: z.string(),\n organizationId: z.string(),\n createdAt: z.number(),\n files: z.array(sourceMapManifestEntrySchema),\n});\n\nexport type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;\n\nexport const getManifestPath = ({\n organizationId,\n surfaceId,\n buildId,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/_manifest.json`;\n"],"mappings":";;AAEA,MAAa,oBAAoB,EAC/B,gBACA,WACA,SACA,mBAOA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ,GAAG;AAEhF,MAAa,+BAA+B,EAAE,OAAO;CACnD,cAAc,EAAE,QAAQ;CACxB,eAAe,EAAE,QAAQ;CACzB,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,QAAQ;CACpB,CAAC;AAMF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,SAAS,EAAE,QAAQ;CACnB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ;CACrB,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,OAAO,EAAE,MAAM,6BAA6B;CAC7C,CAAC;AAIF,MAAa,mBAAmB,EAC9B,gBACA,WACA,cAMA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.mts","names":[],"sources":["../../src/data/surface.ts"],"
|
|
1
|
+
{"version":3,"file":"surface.d.mts","names":[],"sources":["../../src/data/surface.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;AAAA,KAQlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA"}
|
package/dist/data/surface.mjs
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/data/surface.ts
|
|
4
|
-
const SURFACE_SLUG_LENGTH = 21;
|
|
5
|
-
const surfaceSlugSchema = z.string().length(SURFACE_SLUG_LENGTH);
|
|
6
|
-
|
|
2
|
+
const surfaceSlugSchema = z.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, { message: "Surface slug must be lowercase letters, numbers, and hyphens" });
|
|
7
3
|
//#endregion
|
|
8
|
-
export { surfaceSlugSchema };
|
|
4
|
+
export { surfaceSlugSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.mjs","names":[],"sources":["../../src/data/surface.ts"],"sourcesContent":["import { z } from \"zod\";\n\
|
|
1
|
+
{"version":3,"file":"surface.mjs","names":[],"sources":["../../src/data/surface.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst SURFACE_SLUG_MAX_LENGTH = 255;\n\nexport const surfaceSlugSchema = z\n .string()\n .min(1)\n .max(SURFACE_SLUG_MAX_LENGTH)\n .regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, {\n message: \"Surface slug must be lowercase letters, numbers, and hyphens\",\n });\n\nexport type SurfaceSlug = z.infer<typeof surfaceSlugSchema>;\n"],"mappings":";AAIA,MAAa,oBAAoB,EAC9B,QAAQ,CACR,IAAI,EAAE,CACN,IAL6B,IAKD,CAC5B,MAAM,8BAA8B,EACnC,SAAS,gEACV,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
|
|
3
|
+
//#region src/events/error.d.ts
|
|
4
|
+
declare const enrichedFrameSchema: z.ZodObject<{
|
|
5
|
+
file: z.ZodNullable<z.ZodString>;
|
|
6
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
9
|
+
originalFile: z.ZodNullable<z.ZodString>;
|
|
10
|
+
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
13
|
+
sourceMapFound: z.ZodBoolean;
|
|
14
|
+
inApp: z.ZodBoolean;
|
|
15
|
+
rawId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type EnrichedFrame = z.infer<typeof enrichedFrameSchema>;
|
|
18
|
+
declare const errorFactsPayloadSchema: z.ZodObject<{
|
|
19
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
20
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
21
|
+
functionName: z.ZodOptional<z.ZodString>;
|
|
22
|
+
lineNumber: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
source: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
enrichedFrames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
file: z.ZodNullable<z.ZodString>;
|
|
28
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
fn: z.ZodNullable<z.ZodString>;
|
|
31
|
+
originalFile: z.ZodNullable<z.ZodString>;
|
|
32
|
+
originalLine: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
originalColumn: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
35
|
+
sourceMapFound: z.ZodBoolean;
|
|
36
|
+
inApp: z.ZodBoolean;
|
|
37
|
+
rawId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
frameCount: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
enrichedFrameCount: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
message: z.ZodNullable<z.ZodString>;
|
|
42
|
+
name: z.ZodNullable<z.ZodString>;
|
|
43
|
+
stack: z.ZodNullable<z.ZodString>;
|
|
44
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
type: z.ZodString;
|
|
46
|
+
handled: z.ZodBoolean;
|
|
47
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
nextjs: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
routerKind: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
"Pages Router": "Pages Router";
|
|
52
|
+
"App Router": "App Router";
|
|
53
|
+
}>>;
|
|
54
|
+
routePath: z.ZodOptional<z.ZodString>;
|
|
55
|
+
routeType: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
render: "render";
|
|
57
|
+
route: "route";
|
|
58
|
+
action: "action";
|
|
59
|
+
middleware: "middleware";
|
|
60
|
+
proxy: "proxy";
|
|
61
|
+
}>>;
|
|
62
|
+
renderSource: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
"react-server-components": "react-server-components";
|
|
64
|
+
"react-server-components-payload": "react-server-components-payload";
|
|
65
|
+
"server-rendering": "server-rendering";
|
|
66
|
+
}>>;
|
|
67
|
+
revalidateReason: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
"on-demand": "on-demand";
|
|
69
|
+
stale: "stale";
|
|
70
|
+
}>>;
|
|
71
|
+
renderType: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
dynamic: "dynamic";
|
|
73
|
+
"dynamic-resume": "dynamic-resume";
|
|
74
|
+
}>>;
|
|
75
|
+
requestPath: z.ZodOptional<z.ZodString>;
|
|
76
|
+
requestMethod: z.ZodOptional<z.ZodString>;
|
|
77
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
captureSource: z.ZodOptional<z.ZodString>;
|
|
80
|
+
fingerprintComponents: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
hash: z.ZodString;
|
|
82
|
+
components: z.ZodArray<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
85
|
+
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
type ErrorFactsPayload = z.infer<typeof errorFactsPayloadSchema>;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { EnrichedFrame, ErrorFactsPayload, errorFactsPayloadSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.mts","names":[],"sources":["../../src/events/error.ts"],"mappings":";;;cAIM,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;KAcb,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA;AAAA,cAiC9B,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgBxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
import { ingestedFrame } from "#data/frame";
|
|
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 nextjsErrorContextSchema = z.object({
|
|
23
|
+
routerKind: z.enum(["Pages Router", "App Router"]).optional(),
|
|
24
|
+
routePath: z.string().optional(),
|
|
25
|
+
routeType: z.enum([
|
|
26
|
+
"render",
|
|
27
|
+
"route",
|
|
28
|
+
"action",
|
|
29
|
+
"middleware",
|
|
30
|
+
"proxy"
|
|
31
|
+
]).optional(),
|
|
32
|
+
renderSource: z.enum([
|
|
33
|
+
"react-server-components",
|
|
34
|
+
"react-server-components-payload",
|
|
35
|
+
"server-rendering"
|
|
36
|
+
]).optional(),
|
|
37
|
+
revalidateReason: z.enum(["on-demand", "stale"]).optional(),
|
|
38
|
+
renderType: z.enum(["dynamic", "dynamic-resume"]).optional(),
|
|
39
|
+
requestPath: z.string().optional(),
|
|
40
|
+
requestMethod: z.string().optional(),
|
|
41
|
+
errorDigest: z.string().optional()
|
|
42
|
+
});
|
|
43
|
+
const fingerprintSchema = z.object({
|
|
44
|
+
hash: z.string(),
|
|
45
|
+
components: z.array(z.string())
|
|
46
|
+
});
|
|
47
|
+
const errorFactsPayloadSchema = z.object({
|
|
48
|
+
frames: z.array(ingestedFrame),
|
|
49
|
+
enrichedFrames: z.array(enrichedFrameSchema).optional(),
|
|
50
|
+
frameCount: z.number().optional(),
|
|
51
|
+
enrichedFrameCount: z.number().optional(),
|
|
52
|
+
message: z.string().nullable(),
|
|
53
|
+
name: z.string().nullable(),
|
|
54
|
+
stack: z.string().nullable(),
|
|
55
|
+
mechanism: errorMechanismSchema.optional(),
|
|
56
|
+
nextjs: nextjsErrorContextSchema.optional(),
|
|
57
|
+
captureSource: z.string().optional(),
|
|
58
|
+
fingerprintComponents: fingerprintSchema.optional(),
|
|
59
|
+
runtime: z.string().optional(),
|
|
60
|
+
releaseId: z.string().nullable().optional()
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { errorFactsPayloadSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.mjs","names":[],"sources":["../../src/events/error.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport { ingestedFrame } from \"#data/frame\";\n\nconst enrichedFrameSchema = z.object({\n file: z.string().nullable(),\n line: z.number().nullable(),\n column: z.number().nullable(),\n fn: z.string().nullable(),\n originalFile: z.string().nullable(),\n originalLine: z.number().nullable(),\n originalColumn: z.number().nullable(),\n originalName: z.string().nullable(),\n sourceMapFound: z.boolean(),\n inApp: z.boolean(),\n rawId: z.string(),\n});\n\nexport type EnrichedFrame = z.infer<typeof enrichedFrameSchema>;\n\nconst errorMechanismSchema = z.object({\n type: z.string(),\n handled: z.boolean(),\n synthetic: z.boolean().optional(),\n});\n\nconst nextjsErrorContextSchema = z.object({\n routerKind: z.enum([\"Pages Router\", \"App Router\"]).optional(),\n routePath: z.string().optional(),\n routeType: z\n .enum([\"render\", \"route\", \"action\", \"middleware\", \"proxy\"])\n .optional(),\n renderSource: z\n .enum([\n \"react-server-components\",\n \"react-server-components-payload\",\n \"server-rendering\",\n ])\n .optional(),\n revalidateReason: z.enum([\"on-demand\", \"stale\"]).optional(),\n renderType: z.enum([\"dynamic\", \"dynamic-resume\"]).optional(),\n requestPath: z.string().optional(),\n requestMethod: z.string().optional(),\n errorDigest: z.string().optional(),\n});\n\nconst fingerprintSchema = z.object({\n hash: z.string(),\n components: z.array(z.string()),\n});\n\nexport const errorFactsPayloadSchema = z.object({\n frames: z.array(ingestedFrame),\n enrichedFrames: z.array(enrichedFrameSchema).optional(),\n frameCount: z.number().optional(),\n enrichedFrameCount: z.number().optional(),\n message: z.string().nullable(),\n name: z.string().nullable(),\n stack: z.string().nullable(),\n mechanism: errorMechanismSchema.optional(),\n nextjs: nextjsErrorContextSchema.optional(),\n captureSource: z.string().optional(),\n fingerprintComponents: fingerprintSchema.optional(),\n runtime: z.string().optional(),\n releaseId: z.string().nullable().optional(),\n});\n\nexport type ErrorFactsPayload = z.infer<typeof errorFactsPayloadSchema>;\n"],"mappings":";;;AAIA,MAAM,sBAAsB,EAAE,OAAO;CACnC,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,gBAAgB,EAAE,QAAQ,CAAC,UAAU;CACrC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,gBAAgB,EAAE,SAAS;CAC3B,OAAO,EAAE,SAAS;CAClB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAIF,MAAM,uBAAuB,EAAE,OAAO;CACpC,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,SAAS;CACpB,WAAW,EAAE,SAAS,CAAC,UAAU;CAClC,CAAC;AAEF,MAAM,2BAA2B,EAAE,OAAO;CACxC,YAAY,EAAE,KAAK,CAAC,gBAAgB,aAAa,CAAC,CAAC,UAAU;CAC7D,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EACR,KAAK;EAAC;EAAU;EAAS;EAAU;EAAc;EAAQ,CAAC,CAC1D,UAAU;CACb,cAAc,EACX,KAAK;EACJ;EACA;EACA;EACD,CAAC,CACD,UAAU;CACb,kBAAkB,EAAE,KAAK,CAAC,aAAa,QAAQ,CAAC,CAAC,UAAU;CAC3D,YAAY,EAAE,KAAK,CAAC,WAAW,iBAAiB,CAAC,CAAC,UAAU;CAC5D,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAM,oBAAoB,EAAE,OAAO;CACjC,MAAM,EAAE,QAAQ;CAChB,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC;CAChC,CAAC;AAEF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,MAAM,cAAc;CAC9B,gBAAgB,EAAE,MAAM,oBAAoB,CAAC,UAAU;CACvD,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,oBAAoB,EAAE,QAAQ,CAAC,UAAU;CACzC,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,qBAAqB,UAAU;CAC1C,QAAQ,yBAAyB,UAAU;CAC3C,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,uBAAuB,kBAAkB,UAAU;CACnD,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;CAC5C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
|
|
3
|
+
//#region src/events/identify.d.ts
|
|
4
|
+
declare const identifyFactsPayloadSchema: z.ZodObject<{
|
|
5
|
+
identifier: z.ZodString;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
9
|
+
traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type IdentifyFactsPayload = z.infer<typeof identifyFactsPayloadSchema>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { IdentifyFactsPayload, identifyFactsPayloadSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/events/identify.ts"],"mappings":";;;cAEa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;KAQ3B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
//#region src/events/identify.ts
|
|
3
|
+
const identifyFactsPayloadSchema = z.object({
|
|
4
|
+
identifier: z.string(),
|
|
5
|
+
email: z.string().optional(),
|
|
6
|
+
name: z.string().optional(),
|
|
7
|
+
avatar: z.string().optional(),
|
|
8
|
+
traits: z.record(z.string(), z.unknown()).optional()
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { identifyFactsPayloadSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.mjs","names":[],"sources":["../../src/events/identify.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const identifyFactsPayloadSchema = z.object({\n identifier: z.string(),\n email: z.string().optional(),\n name: z.string().optional(),\n avatar: z.string().optional(),\n traits: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type IdentifyFactsPayload = z.infer<typeof identifyFactsPayloadSchema>;\n"],"mappings":";;AAEA,MAAa,6BAA6B,EAAE,OAAO;CACjD,YAAY,EAAE,QAAQ;CACtB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;CACrD,CAAC"}
|