@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,60 @@
|
|
|
1
|
+
//#region src/sdk/plugins/manifest.d.ts
|
|
2
|
+
declare const CONSENT_CATEGORIES: readonly ["necessary", "analytics", "replay"];
|
|
3
|
+
type AtLeastOne<T> = { [K in keyof T]-?: Required<Pick<T, K>> & Partial<T> }[keyof T];
|
|
4
|
+
declare const PLUGIN_MANIFEST: readonly [{
|
|
5
|
+
readonly consentCategory: "necessary";
|
|
6
|
+
readonly defaultEnabled: true;
|
|
7
|
+
readonly events: readonly [{
|
|
8
|
+
readonly enrich: true;
|
|
9
|
+
readonly name: "error";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "errors";
|
|
12
|
+
}, {
|
|
13
|
+
readonly consentCategory: "analytics";
|
|
14
|
+
readonly defaultEnabled: true;
|
|
15
|
+
readonly events: readonly [];
|
|
16
|
+
readonly name: "device";
|
|
17
|
+
}, {
|
|
18
|
+
readonly consentCategory: "analytics";
|
|
19
|
+
readonly defaultEnabled: true;
|
|
20
|
+
readonly events: readonly [{
|
|
21
|
+
readonly enrich: true;
|
|
22
|
+
readonly name: "pageview";
|
|
23
|
+
}, {
|
|
24
|
+
readonly enrich: true;
|
|
25
|
+
readonly name: "pageleave";
|
|
26
|
+
}, {
|
|
27
|
+
readonly enrich: true;
|
|
28
|
+
readonly name: "ui_event";
|
|
29
|
+
}];
|
|
30
|
+
readonly name: "pageEvents";
|
|
31
|
+
}, {
|
|
32
|
+
readonly consentCategory: "analytics";
|
|
33
|
+
readonly defaultEnabled: true;
|
|
34
|
+
readonly events: readonly [{
|
|
35
|
+
readonly enrich: true;
|
|
36
|
+
readonly name: "rage_click";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "rageClick";
|
|
39
|
+
}, {
|
|
40
|
+
readonly consentCategory: "replay";
|
|
41
|
+
readonly defaultEnabled: true;
|
|
42
|
+
readonly events: readonly [{
|
|
43
|
+
readonly enrich: false;
|
|
44
|
+
readonly name: "replay_chunk";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "replay";
|
|
47
|
+
}, {
|
|
48
|
+
readonly consentCategory: "necessary";
|
|
49
|
+
readonly defaultEnabled: true;
|
|
50
|
+
readonly events: readonly [];
|
|
51
|
+
readonly name: "logs";
|
|
52
|
+
}];
|
|
53
|
+
type PluginManifest = typeof PLUGIN_MANIFEST;
|
|
54
|
+
type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];
|
|
55
|
+
type PluginKey = PluginManifest[number]["name"];
|
|
56
|
+
type GateableCategory = Exclude<ConsentCategory, "necessary">;
|
|
57
|
+
type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { CONSENT_CATEGORIES, ConsentCategory, ConsentState, GateableCategory, PLUGIN_MANIFEST, PluginKey, PluginManifest };
|
|
60
|
+
//# sourceMappingURL=manifest.d.cts.map
|
|
@@ -56,4 +56,5 @@ type PluginKey = PluginManifest[number]["name"];
|
|
|
56
56
|
type GateableCategory = Exclude<ConsentCategory, "necessary">;
|
|
57
57
|
type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;
|
|
58
58
|
//#endregion
|
|
59
|
-
export { CONSENT_CATEGORIES, ConsentCategory, ConsentState, GateableCategory, PLUGIN_MANIFEST, PluginKey, PluginManifest };
|
|
59
|
+
export { CONSENT_CATEGORIES, ConsentCategory, ConsentState, GateableCategory, PLUGIN_MANIFEST, PluginKey, PluginManifest };
|
|
60
|
+
//# sourceMappingURL=manifest.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const CONSENT_CATEGORIES=[`necessary`,`analytics`,`replay`],PLUGIN_MANIFEST=[{consentCategory:`necessary`,defaultEnabled:!0,events:[{enrich:!0,name:`error`}],name:`errors`},{consentCategory:`analytics`,defaultEnabled:!0,events:[],name:`device`},{consentCategory:`analytics`,defaultEnabled:!0,events:[{enrich:!0,name:`pageview`},{enrich:!0,name:`pageleave`},{enrich:!0,name:`ui_event`}],name:`pageEvents`},{consentCategory:`analytics`,defaultEnabled:!0,events:[{enrich:!0,name:`rage_click`}],name:`rageClick`},{consentCategory:`replay`,defaultEnabled:!0,events:[{enrich:!1,name:`replay_chunk`}],name:`replay`},{consentCategory:`necessary`,defaultEnabled:!0,events:[],name:`logs`}];export{CONSENT_CATEGORIES,PLUGIN_MANIFEST};
|
|
2
|
+
//# sourceMappingURL=manifest.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const errorSourceSchema=zod.z.enum([`client`,`server`,`edge`]).meta({id:`ErrorSource`,title:`ErrorSource`}),errorMechanismSchema=zod.z.object({type:zod.z.string(),handled:zod.z.boolean(),synthetic:zod.z.boolean().optional()}).meta({id:`ErrorMechanism`,title:`ErrorMechanism`,description:`How the exception was captured by the SDK.`}),errorExceptionSchema=zod.z.object({kind:zod.z.literal(`error`),type:zod.z.string(),value:zod.z.string(),mechanism:errorMechanismSchema.optional(),stack:zod.z.string()}),nonErrorExceptionSchema=zod.z.object({kind:zod.z.literal(`non-error`),type:zod.z.string(),value:zod.z.string(),mechanism:errorMechanismSchema.optional(),serialized:zod.z.unknown()}),exceptionValueSchema=zod.z.union([errorExceptionSchema,nonErrorExceptionSchema]).meta({id:`Exception`,title:`Exception`,description:"A single exception. Error-shaped exceptions carry the raw `error.stack` string; non-Error rejections (e.g. `Promise.reject({ code: 401 })`) carry the structured payload as `serialized` instead."}),errorEnvelopePayloadSchema=zod.z.object({exceptions:zod.z.array(exceptionValueSchema).min(1),errorDigest:zod.z.string().optional()}).meta({id:`ErrorPayload`,title:`ErrorPayload`,description:`Payload for an error envelope.`});exports.errorEnvelopePayloadSchema=errorEnvelopePayloadSchema,exports.errorMechanismSchema=errorMechanismSchema,exports.errorSourceSchema=errorSourceSchema,exports.exceptionValueSchema=exceptionValueSchema;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/sdk/plugins/payload/errors.d.ts
|
|
4
|
+
declare const errorSourceSchema: z.ZodEnum<{
|
|
5
|
+
client: "client";
|
|
6
|
+
edge: "edge";
|
|
7
|
+
server: "server";
|
|
8
|
+
}>;
|
|
9
|
+
type ErrorSource = z.infer<typeof errorSourceSchema>;
|
|
10
|
+
declare const errorMechanismSchema: z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
handled: z.ZodBoolean;
|
|
13
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type ErrorMechanism = z.infer<typeof errorMechanismSchema>;
|
|
16
|
+
declare const exceptionValueSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"error">;
|
|
18
|
+
type: z.ZodString;
|
|
19
|
+
value: z.ZodString;
|
|
20
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
type: z.ZodString;
|
|
22
|
+
handled: z.ZodBoolean;
|
|
23
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
stack: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
kind: z.ZodLiteral<"non-error">;
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
type: z.ZodString;
|
|
32
|
+
handled: z.ZodBoolean;
|
|
33
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
serialized: z.ZodUnknown;
|
|
36
|
+
}, z.core.$strip>]>;
|
|
37
|
+
type ExceptionValue = z.infer<typeof exceptionValueSchema>;
|
|
38
|
+
declare const errorEnvelopePayloadSchema: z.ZodObject<{
|
|
39
|
+
exceptions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"error">;
|
|
41
|
+
type: z.ZodString;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
handled: z.ZodBoolean;
|
|
46
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
stack: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"non-error">;
|
|
51
|
+
type: z.ZodString;
|
|
52
|
+
value: z.ZodString;
|
|
53
|
+
mechanism: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
type: z.ZodString;
|
|
55
|
+
handled: z.ZodBoolean;
|
|
56
|
+
synthetic: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
serialized: z.ZodUnknown;
|
|
59
|
+
}, z.core.$strip>]>>;
|
|
60
|
+
errorDigest: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
type ErrorEnvelopePayload = z.infer<typeof errorEnvelopePayloadSchema>;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ErrorEnvelopePayload, ErrorMechanism, ErrorSource, ExceptionValue, errorEnvelopePayloadSchema, errorMechanismSchema, errorSourceSchema, exceptionValueSchema };
|
|
65
|
+
//# sourceMappingURL=errors.d.cts.map
|
|
@@ -61,4 +61,5 @@ declare const errorEnvelopePayloadSchema: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
type ErrorEnvelopePayload = z.infer<typeof errorEnvelopePayloadSchema>;
|
|
63
63
|
//#endregion
|
|
64
|
-
export { ErrorEnvelopePayload, ErrorMechanism, ErrorSource, ExceptionValue, errorEnvelopePayloadSchema, errorMechanismSchema, errorSourceSchema, exceptionValueSchema };
|
|
64
|
+
export { ErrorEnvelopePayload, ErrorMechanism, ErrorSource, ExceptionValue, errorEnvelopePayloadSchema, errorMechanismSchema, errorSourceSchema, exceptionValueSchema };
|
|
65
|
+
//# sourceMappingURL=errors.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const errorSourceSchema=z.enum([`client`,`server`,`edge`]).meta({id:`ErrorSource`,title:`ErrorSource`}),errorMechanismSchema=z.object({type:z.string(),handled:z.boolean(),synthetic:z.boolean().optional()}).meta({id:`ErrorMechanism`,title:`ErrorMechanism`,description:`How the exception was captured by the SDK.`}),errorExceptionSchema=z.object({kind:z.literal(`error`),type:z.string(),value:z.string(),mechanism:errorMechanismSchema.optional(),stack:z.string()}),nonErrorExceptionSchema=z.object({kind:z.literal(`non-error`),type:z.string(),value:z.string(),mechanism:errorMechanismSchema.optional(),serialized:z.unknown()}),exceptionValueSchema=z.union([errorExceptionSchema,nonErrorExceptionSchema]).meta({id:`Exception`,title:`Exception`,description:"A single exception. Error-shaped exceptions carry the raw `error.stack` string; non-Error rejections (e.g. `Promise.reject({ code: 401 })`) carry the structured payload as `serialized` instead."}),errorEnvelopePayloadSchema=z.object({exceptions:z.array(exceptionValueSchema).min(1),errorDigest:z.string().optional()}).meta({id:`ErrorPayload`,title:`ErrorPayload`,description:`Payload for an error envelope.`});export{errorEnvelopePayloadSchema,errorMechanismSchema,errorSourceSchema,exceptionValueSchema};
|
|
2
|
+
//# sourceMappingURL=errors.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const uiEventPayloadSchema=zod.z.object({event:zod.z.record(zod.z.string(),zod.z.unknown())}).meta({id:`UiEventPayload`,title:`UiEventPayload`,description:`Payload for a UI event envelope.`}),pageviewPayloadSchema=zod.z.object({url:zod.z.url(),title:zod.z.string().optional()}).meta({id:`PageviewPayload`,title:`PageviewPayload`,description:`Payload for a pageview envelope.`}),pageleavePayloadSchema=zod.z.object({url:zod.z.url(),durationMs:zod.z.number().optional()}).meta({id:`PageleavePayload`,title:`PageleavePayload`,description:`Payload for a pageleave envelope.`});exports.pageleavePayloadSchema=pageleavePayloadSchema,exports.pageviewPayloadSchema=pageviewPayloadSchema,exports.uiEventPayloadSchema=uiEventPayloadSchema;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/sdk/plugins/payload/page-events.d.ts
|
|
4
|
+
declare const uiEventPayloadSchema: z.ZodObject<{
|
|
5
|
+
event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type UiEventPayload = z.infer<typeof uiEventPayloadSchema>;
|
|
8
|
+
declare const pageviewPayloadSchema: z.ZodObject<{
|
|
9
|
+
url: z.ZodURL;
|
|
10
|
+
title: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type PageviewPayload = z.infer<typeof pageviewPayloadSchema>;
|
|
13
|
+
declare const pageleavePayloadSchema: z.ZodObject<{
|
|
14
|
+
url: z.ZodURL;
|
|
15
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type PageleavePayload = z.infer<typeof pageleavePayloadSchema>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PageleavePayload, PageviewPayload, UiEventPayload, pageleavePayloadSchema, pageviewPayloadSchema, uiEventPayloadSchema };
|
|
20
|
+
//# sourceMappingURL=page-events.d.cts.map
|
|
@@ -16,4 +16,5 @@ declare const pageleavePayloadSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
type PageleavePayload = z.infer<typeof pageleavePayloadSchema>;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { PageleavePayload, PageviewPayload, UiEventPayload, pageleavePayloadSchema, pageviewPayloadSchema, uiEventPayloadSchema };
|
|
19
|
+
export { PageleavePayload, PageviewPayload, UiEventPayload, pageleavePayloadSchema, pageviewPayloadSchema, uiEventPayloadSchema };
|
|
20
|
+
//# sourceMappingURL=page-events.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const uiEventPayloadSchema=z.object({event:z.record(z.string(),z.unknown())}).meta({id:`UiEventPayload`,title:`UiEventPayload`,description:`Payload for a UI event envelope.`}),pageviewPayloadSchema=z.object({url:z.url(),title:z.string().optional()}).meta({id:`PageviewPayload`,title:`PageviewPayload`,description:`Payload for a pageview envelope.`}),pageleavePayloadSchema=z.object({url:z.url(),durationMs:z.number().optional()}).meta({id:`PageleavePayload`,title:`PageleavePayload`,description:`Payload for a pageleave envelope.`});export{pageleavePayloadSchema,pageviewPayloadSchema,uiEventPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=page-events.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const rageClickPayloadSchema=zod.z.object({count:zod.z.number(),timeWindow:zod.z.number(),selector:zod.z.string(),text:zod.z.string(),x:zod.z.number(),y:zod.z.number(),timestamp:zod.z.number()}).meta({id:`RageClickPayload`,title:`RageClickPayload`,description:`Payload for a rage-click envelope.`});exports.rageClickPayloadSchema=rageClickPayloadSchema;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/sdk/plugins/payload/rage-click.d.ts
|
|
4
|
+
declare const rageClickPayloadSchema: z.ZodObject<{
|
|
5
|
+
count: z.ZodNumber;
|
|
6
|
+
timeWindow: z.ZodNumber;
|
|
7
|
+
selector: z.ZodString;
|
|
8
|
+
text: z.ZodString;
|
|
9
|
+
x: z.ZodNumber;
|
|
10
|
+
y: z.ZodNumber;
|
|
11
|
+
timestamp: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type RageClickPayload = z.infer<typeof rageClickPayloadSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RageClickPayload, rageClickPayloadSchema };
|
|
16
|
+
//# sourceMappingURL=rage-click.d.cts.map
|
|
@@ -12,4 +12,5 @@ declare const rageClickPayloadSchema: z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
type RageClickPayload = z.infer<typeof rageClickPayloadSchema>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { RageClickPayload, rageClickPayloadSchema };
|
|
15
|
+
export { RageClickPayload, rageClickPayloadSchema };
|
|
16
|
+
//# sourceMappingURL=rage-click.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const rageClickPayloadSchema=z.object({count:z.number(),timeWindow:z.number(),selector:z.string(),text:z.string(),x:z.number(),y:z.number(),timestamp:z.number()}).meta({id:`RageClickPayload`,title:`RageClickPayload`,description:`Payload for a rage-click envelope.`});export{rageClickPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=rage-click.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const replayChunkPayloadSchema=zod.z.object({ts:zod.z.number(),count:zod.z.number(),events:zod.z.array(zod.z.string()),first_event_ts:zod.z.number().optional(),last_event_ts:zod.z.number().optional()}).meta({id:`ReplayChunkPayload`,title:`ReplayChunkPayload`,description:`Payload for a replay-chunk envelope.`});exports.replayChunkPayloadSchema=replayChunkPayloadSchema;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/sdk/plugins/payload/replay.d.ts
|
|
4
|
+
declare const replayChunkPayloadSchema: z.ZodObject<{
|
|
5
|
+
ts: z.ZodNumber;
|
|
6
|
+
count: z.ZodNumber;
|
|
7
|
+
events: z.ZodArray<z.ZodString>;
|
|
8
|
+
first_event_ts: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
last_event_ts: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type ReplayChunkPayload = z.infer<typeof replayChunkPayloadSchema>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ReplayChunkPayload, replayChunkPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=replay.d.cts.map
|
|
@@ -10,4 +10,5 @@ declare const replayChunkPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
type ReplayChunkPayload = z.infer<typeof replayChunkPayloadSchema>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ReplayChunkPayload, replayChunkPayloadSchema };
|
|
13
|
+
export { ReplayChunkPayload, replayChunkPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=replay.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const replayChunkPayloadSchema=z.object({ts:z.number(),count:z.number(),events:z.array(z.string()),first_event_ts:z.number().optional(),last_event_ts:z.number().optional()}).meta({id:`ReplayChunkPayload`,title:`ReplayChunkPayload`,description:`Payload for a replay-chunk envelope.`});export{replayChunkPayloadSchema};
|
|
2
|
+
//# sourceMappingURL=replay.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_plugins_manifest=require("./plugins/manifest.cjs");let zod=require("zod");const remotePluginConfigSchema=zod.z.object(Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.map(p=>[p.name,zod.z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=zod.z.object({plugins:remotePluginConfigSchema}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));exports.EVENT_TYPE_TO_PLUGIN=EVENT_TYPE_TO_PLUGIN,exports.remoteConfigSchema=remoteConfigSchema,exports.remotePluginConfigSchema=remotePluginConfigSchema;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventType } from "./envelope.cjs";
|
|
2
|
+
import { PluginKey } from "./plugins/manifest.cjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/sdk/remote-config.d.ts
|
|
6
|
+
type RemotePluginConfig = Partial<Record<PluginKey, boolean>>;
|
|
7
|
+
/**
|
|
8
|
+
* Closed-shape schema for the SDK's per-plugin enabled state. Derived
|
|
9
|
+
* from `PLUGIN_MANIFEST` so adding a plugin to the manifest extends
|
|
10
|
+
* this schema automatically — no separate place to keep in sync.
|
|
11
|
+
*
|
|
12
|
+
* The closed shape (vs `Record<string, boolean>`) is what makes Speakeasy
|
|
13
|
+
* generate a typed `{ errors?: boolean, replay?: boolean, ... }` instead
|
|
14
|
+
* of a generic dictionary, and lets the SDK reject typo'd plugin names
|
|
15
|
+
* before they silently drop on the wire.
|
|
16
|
+
*/
|
|
17
|
+
declare const remotePluginConfigSchema: z.ZodObject<{
|
|
18
|
+
device: z.ZodBoolean;
|
|
19
|
+
errors: z.ZodBoolean;
|
|
20
|
+
logs: z.ZodBoolean;
|
|
21
|
+
pageEvents: z.ZodBoolean;
|
|
22
|
+
rageClick: z.ZodBoolean;
|
|
23
|
+
replay: z.ZodBoolean;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const remoteConfigSchema: z.ZodObject<{
|
|
26
|
+
plugins: z.ZodObject<{
|
|
27
|
+
device: z.ZodBoolean;
|
|
28
|
+
errors: z.ZodBoolean;
|
|
29
|
+
logs: z.ZodBoolean;
|
|
30
|
+
pageEvents: z.ZodBoolean;
|
|
31
|
+
rageClick: z.ZodBoolean;
|
|
32
|
+
replay: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type RemoteConfig = z.infer<typeof remoteConfigSchema>;
|
|
36
|
+
declare const EVENT_TYPE_TO_PLUGIN: Record<EventType, PluginKey>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { EVENT_TYPE_TO_PLUGIN, RemoteConfig, RemotePluginConfig, remoteConfigSchema, remotePluginConfigSchema };
|
|
39
|
+
//# sourceMappingURL=remote-config.d.cts.map
|
|
@@ -35,4 +35,5 @@ declare const remoteConfigSchema: z.ZodObject<{
|
|
|
35
35
|
type RemoteConfig = z.infer<typeof remoteConfigSchema>;
|
|
36
36
|
declare const EVENT_TYPE_TO_PLUGIN: Record<EventType, PluginKey>;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { EVENT_TYPE_TO_PLUGIN, RemoteConfig, RemotePluginConfig, remoteConfigSchema, remotePluginConfigSchema };
|
|
38
|
+
export { EVENT_TYPE_TO_PLUGIN, RemoteConfig, RemotePluginConfig, remoteConfigSchema, remotePluginConfigSchema };
|
|
39
|
+
//# sourceMappingURL=remote-config.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{PLUGIN_MANIFEST
|
|
1
|
+
import{PLUGIN_MANIFEST}from"./plugins/manifest.mjs";import{z}from"zod";const remotePluginConfigSchema=z.object(Object.fromEntries(PLUGIN_MANIFEST.map(p=>[p.name,z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=z.object({plugins:remotePluginConfigSchema}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));export{EVENT_TYPE_TO_PLUGIN,remoteConfigSchema,remotePluginConfigSchema};
|
|
2
|
+
//# sourceMappingURL=remote-config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const envSchema=zod.z.enum([`development`,`preview`,`production`]).nullable().meta({id:`Environment`,title:`Environment`,description:`Deployment environment the SDK is running in.`}),runtimeSchema=zod.z.enum([`browser`,`node`,`edge`]).nullable().meta({id:`Runtime`,title:`Runtime`,description:`JavaScript runtime the SDK is running in.`});function inferRuntime(options){return typeof window<`u`&&typeof document<`u`&&typeof navigator<`u`?`browser`:typeof globalThis.EdgeRuntime==`string`||options?.nextRuntime===`edge`?`edge`:typeof process<`u`&&typeof process.versions?.node==`string`?`node`:null}function normalizeEnv(value){if(typeof value!=`string`)return null;let env=value.toLowerCase();return envSchema.safeParse(env).success?env:null}exports.envSchema=envSchema,exports.inferRuntime=inferRuntime,exports.normalizeEnv=normalizeEnv,exports.runtimeSchema=runtimeSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/sdk/runtime.d.ts
|
|
4
|
+
declare const envSchema: z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
development: "development";
|
|
6
|
+
preview: "preview";
|
|
7
|
+
production: "production";
|
|
8
|
+
}>>;
|
|
9
|
+
type Env = z.infer<typeof envSchema>;
|
|
10
|
+
declare const runtimeSchema: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
browser: "browser";
|
|
12
|
+
edge: "edge";
|
|
13
|
+
node: "node";
|
|
14
|
+
}>>;
|
|
15
|
+
type Runtime = z.infer<typeof runtimeSchema>;
|
|
16
|
+
declare function inferRuntime(options?: {
|
|
17
|
+
readonly nextRuntime?: unknown;
|
|
18
|
+
}): Runtime;
|
|
19
|
+
declare function normalizeEnv(value: unknown): Env;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Env, Runtime, envSchema, inferRuntime, normalizeEnv, runtimeSchema };
|
|
22
|
+
//# sourceMappingURL=runtime.d.cts.map
|
package/dist/sdk/runtime.d.mts
CHANGED
|
@@ -18,4 +18,5 @@ declare function inferRuntime(options?: {
|
|
|
18
18
|
}): Runtime;
|
|
19
19
|
declare function normalizeEnv(value: unknown): Env;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { Env, Runtime, envSchema, inferRuntime, normalizeEnv, runtimeSchema };
|
|
21
|
+
export { Env, Runtime, envSchema, inferRuntime, normalizeEnv, runtimeSchema };
|
|
22
|
+
//# sourceMappingURL=runtime.d.mts.map
|
package/dist/sdk/runtime.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
1
|
+
import{z}from"zod";const envSchema=z.enum([`development`,`preview`,`production`]).nullable().meta({id:`Environment`,title:`Environment`,description:`Deployment environment the SDK is running in.`}),runtimeSchema=z.enum([`browser`,`node`,`edge`]).nullable().meta({id:`Runtime`,title:`Runtime`,description:`JavaScript runtime the SDK is running in.`});function inferRuntime(options){return typeof window<`u`&&typeof document<`u`&&typeof navigator<`u`?`browser`:typeof globalThis.EdgeRuntime==`string`||options?.nextRuntime===`edge`?`edge`:typeof process<`u`&&typeof process.versions?.node==`string`?`node`:null}function normalizeEnv(value){if(typeof value!=`string`)return null;let env=value.toLowerCase();return envSchema.safeParse(env).success?env:null}export{envSchema,inferRuntime,normalizeEnv,runtimeSchema};
|
|
2
|
+
//# sourceMappingURL=runtime.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interfere/types",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3-canary.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript & Zod types for Interfere",
|
|
6
6
|
"keywords": [
|
|
@@ -19,71 +19,147 @@
|
|
|
19
19
|
"directory": "src/packages/public/types"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
|
-
"dist"
|
|
22
|
+
"dist/**/*.cjs",
|
|
23
|
+
"dist/**/*.mjs",
|
|
24
|
+
"dist/**/*.d.cts",
|
|
25
|
+
"dist/**/*.d.mts",
|
|
26
|
+
"README.md"
|
|
23
27
|
],
|
|
24
28
|
"type": "module",
|
|
25
29
|
"imports": {
|
|
26
30
|
"#data/*": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
31
|
+
"monorepo": "./src/data/*.ts",
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/data/*.d.mts",
|
|
34
|
+
"default": "./dist/data/*.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/data/*.d.cts",
|
|
38
|
+
"default": "./dist/data/*.cjs"
|
|
39
|
+
}
|
|
30
40
|
},
|
|
31
41
|
"#auth/*": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
42
|
+
"monorepo": "./src/auth/*.ts",
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/auth/*.d.mts",
|
|
45
|
+
"default": "./dist/auth/*.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/auth/*.d.cts",
|
|
49
|
+
"default": "./dist/auth/*.cjs"
|
|
50
|
+
}
|
|
35
51
|
},
|
|
36
52
|
"#sdk/*": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
53
|
+
"monorepo": "./src/sdk/*.ts",
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/sdk/*.d.mts",
|
|
56
|
+
"default": "./dist/sdk/*.mjs"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/sdk/*.d.cts",
|
|
60
|
+
"default": "./dist/sdk/*.cjs"
|
|
61
|
+
}
|
|
40
62
|
},
|
|
41
63
|
"#events/*": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
64
|
+
"monorepo": "./src/events/*.ts",
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./dist/events/*.d.mts",
|
|
67
|
+
"default": "./dist/events/*.mjs"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./dist/events/*.d.cts",
|
|
71
|
+
"default": "./dist/events/*.cjs"
|
|
72
|
+
}
|
|
45
73
|
}
|
|
46
74
|
},
|
|
47
75
|
"exports": {
|
|
48
76
|
"./data/*": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
77
|
+
"monorepo": "./src/data/*.ts",
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./dist/data/*.d.mts",
|
|
80
|
+
"default": "./dist/data/*.mjs"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./dist/data/*.d.cts",
|
|
84
|
+
"default": "./dist/data/*.cjs"
|
|
85
|
+
}
|
|
52
86
|
},
|
|
53
87
|
"./auth/*": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
88
|
+
"monorepo": "./src/auth/*.ts",
|
|
89
|
+
"import": {
|
|
90
|
+
"types": "./dist/auth/*.d.mts",
|
|
91
|
+
"default": "./dist/auth/*.mjs"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/auth/*.d.cts",
|
|
95
|
+
"default": "./dist/auth/*.cjs"
|
|
96
|
+
}
|
|
57
97
|
},
|
|
58
98
|
"./sdk/plugins/*": {
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
99
|
+
"monorepo": "./src/sdk/plugins/*.ts",
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/sdk/plugins/*.d.mts",
|
|
102
|
+
"default": "./dist/sdk/plugins/*.mjs"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./dist/sdk/plugins/*.d.cts",
|
|
106
|
+
"default": "./dist/sdk/plugins/*.cjs"
|
|
107
|
+
}
|
|
62
108
|
},
|
|
63
109
|
"./sdk/*": {
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
110
|
+
"monorepo": "./src/sdk/*.ts",
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/sdk/*.d.mts",
|
|
113
|
+
"default": "./dist/sdk/*.mjs"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/sdk/*.d.cts",
|
|
117
|
+
"default": "./dist/sdk/*.cjs"
|
|
118
|
+
}
|
|
67
119
|
},
|
|
68
120
|
"./releases/*": {
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
121
|
+
"monorepo": "./src/releases/*.ts",
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/releases/*.d.mts",
|
|
124
|
+
"default": "./dist/releases/*.mjs"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/releases/*.d.cts",
|
|
128
|
+
"default": "./dist/releases/*.cjs"
|
|
129
|
+
}
|
|
72
130
|
},
|
|
73
131
|
"./events/*": {
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
132
|
+
"monorepo": "./src/events/*.ts",
|
|
133
|
+
"import": {
|
|
134
|
+
"types": "./dist/events/*.d.mts",
|
|
135
|
+
"default": "./dist/events/*.mjs"
|
|
136
|
+
},
|
|
137
|
+
"require": {
|
|
138
|
+
"types": "./dist/events/*.d.cts",
|
|
139
|
+
"default": "./dist/events/*.cjs"
|
|
140
|
+
}
|
|
77
141
|
},
|
|
78
142
|
"./integrations": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
143
|
+
"monorepo": "./src/integrations/index.ts",
|
|
144
|
+
"import": {
|
|
145
|
+
"types": "./dist/integrations/index.d.mts",
|
|
146
|
+
"default": "./dist/integrations/index.mjs"
|
|
147
|
+
},
|
|
148
|
+
"require": {
|
|
149
|
+
"types": "./dist/integrations/index.d.cts",
|
|
150
|
+
"default": "./dist/integrations/index.cjs"
|
|
151
|
+
}
|
|
82
152
|
},
|
|
83
153
|
"./integrations/platforms/*": {
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
154
|
+
"monorepo": "./src/integrations/platforms/*.ts",
|
|
155
|
+
"import": {
|
|
156
|
+
"types": "./dist/integrations/platforms/*.d.mts",
|
|
157
|
+
"default": "./dist/integrations/platforms/*.mjs"
|
|
158
|
+
},
|
|
159
|
+
"require": {
|
|
160
|
+
"types": "./dist/integrations/platforms/*.d.cts",
|
|
161
|
+
"default": "./dist/integrations/platforms/*.cjs"
|
|
162
|
+
}
|
|
87
163
|
}
|
|
88
164
|
},
|
|
89
165
|
"publishConfig": {
|
|
@@ -95,14 +171,13 @@
|
|
|
95
171
|
"typecheck": "tsgo --noEmit --incremental"
|
|
96
172
|
},
|
|
97
173
|
"dependencies": {
|
|
98
|
-
"@interfere/constants": "^9.0.1",
|
|
99
174
|
"zod": "^4.4.3"
|
|
100
175
|
},
|
|
101
176
|
"devDependencies": {
|
|
102
177
|
"@interfere/test-utils": "^9.0.0",
|
|
103
178
|
"@interfere/typescript-config": "^9.0.0",
|
|
104
179
|
"@types/node": "^24.12.0",
|
|
105
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
180
|
+
"@typescript/native-preview": "7.0.0-dev.20260522.1",
|
|
106
181
|
"@vitest/coverage-v8": "^4.1.6",
|
|
107
182
|
"tsdown": "^0.22.0",
|
|
108
183
|
"vitest": "^4.1.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frame.d.mts","names":[],"sources":["../../src/data/frame.ts"],"mappings":";;;;;AAaA;;;;;;;;;cAAa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;KA+Bd,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,aAAA"}
|
package/dist/data/frame.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frame.mjs","names":[],"sources":["../../src/data/frame.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * One stack frame as it lands at the collector — pre-source-map\n * resolution. Produced by the collector's stack parser from the OTel\n * `exception.stacktrace` string, supplemented by SDK-side parsed\n * frames (React component stack, `window.onerror` fallback).\n *\n * Field names match the post-resolution `EnrichedFrame` shape so\n * consumers reading \"the file the frame is in\" don't have to remember\n * which lifecycle stage they're at. The wire format is the same\n * across SDK + collector + enrichment + storage.\n */\nexport const ingestedFrame = z\n .object({\n /**\n * Stable id within a payload's `frames[]`. The collector mapper\n * sets this to the array index it produced (`\"frame-0\"`,\n * `\"frame-1\"`, ...) so post-resolution frames can reference back\n * to their pre-resolution origin via `EnrichedFrame.ingestedId`.\n */\n id: z.string().optional(),\n /** URL or path of the JS file the frame is in. */\n file: z.string().optional(),\n /** Function name. */\n fn: z.string().optional(),\n line: z.number().optional(),\n column: z.number().optional(),\n /** Pre-context source code line, when the SDK happened to capture it. */\n source: z.string().optional(),\n /**\n * Build-time injected debug id (webpack/turbopack/rollup). When\n * present, enrichment uses this to look up the source map from the\n * release manifest directly; absent, it falls back to suffix-\n * matching `file` against `manifest.files[].chunkUrl`.\n */\n debugId: z.string().optional(),\n })\n .meta({\n id: \"Frame\",\n title: \"Frame\",\n description: \"A single stack frame captured from an error.\",\n });\n\nexport type IngestedFrame = z.infer<typeof ingestedFrame>;\n"],"mappings":"wBAaA,MAAa,EAAgB,EAC1B,OAAO,CAON,GAAI,EAAE,QAAQ,CAAC,UAAU,CAEzB,KAAM,EAAE,QAAQ,CAAC,UAAU,CAE3B,GAAI,EAAE,QAAQ,CAAC,UAAU,CACzB,KAAM,EAAE,QAAQ,CAAC,UAAU,CAC3B,OAAQ,EAAE,QAAQ,CAAC,UAAU,CAE7B,OAAQ,EAAE,QAAQ,CAAC,UAAU,CAO7B,QAAS,EAAE,QAAQ,CAAC,UAAU,CAC/B,CAAC,CACD,KAAK,CACJ,GAAI,QACJ,MAAO,QACP,YAAa,+CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.mts","names":[],"sources":["../../src/data/session.ts"],"mappings":";;;cAKa,eAAA,EAAe,CAAA,CAAA,IAAA,CAAA,WAAA,CAAA,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,OAAA,EAAA,CAAA,CAAA,kBAAA;AAAA,KAUhB,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session.mjs","names":[],"sources":["../../src/data/session.ts"],"sourcesContent":["import { z } from \"zod\";\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\n .union([z.uuidv7(), z.templateLiteral([\"server_\", z.uuidv7()])])\n .meta({\n id: \"SessionId\",\n title: \"SessionId\",\n description:\n \"UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).\",\n })\n .brand<\"SessionId\">();\n\nexport type SessionId = z.infer<typeof sessionIdSchema>;\n"],"mappings":"wBAKA,MAAa,EAAkB,EAC5B,MAAM,CAAC,EAAE,QAAQ,CAAE,EAAE,gBAAgB,CAAC,UAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAC/D,KAAK,CACJ,GAAI,YACJ,MAAO,YACP,YACE,0EACH,CAAC,CACD,OAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-maps.d.mts","names":[],"sources":["../../src/data/source-maps.ts"],"mappings":";;;;;AAkBA;;;;;;cAAa,qBAAA,EAAqB,CAAA,CAAA,OAAA;;;;;KAItB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAgChC,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;KASxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;;;;;;;;;;cAWlC,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;KAcrB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,oBAAA;;;;;;;;;;;;;cAcrC,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;KAYzB,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,cAEzC,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;KASzB,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,cAEzC,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAWjB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;KAWtB,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAEtC,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAQnB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;KAUvB,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,cAEvC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;cAgBrB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;KAa1B,yBAAA,GAA4B,CAAA,CAAE,KAAA,QACjC,yBAAA;AAAA,cAGI,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;KAU3B,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAClC,0BAAA"}
|