@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.
Files changed (173) hide show
  1. package/dist/data/frame.cjs +1 -0
  2. package/dist/data/frame.d.cts +27 -0
  3. package/dist/data/frame.d.mts +2 -1
  4. package/dist/data/frame.mjs +2 -1
  5. package/dist/data/session.cjs +1 -0
  6. package/dist/data/session.d.cts +8 -0
  7. package/dist/data/session.d.mts +2 -1
  8. package/dist/data/session.mjs +2 -1
  9. package/dist/data/source-maps.cjs +1 -0
  10. package/dist/data/source-maps.d.cts +151 -0
  11. package/dist/data/source-maps.d.mts +7 -2
  12. package/dist/data/source-maps.mjs +2 -1
  13. package/dist/events/error.cjs +1 -0
  14. package/dist/events/error.d.cts +196 -0
  15. package/dist/events/error.d.mts +2 -1
  16. package/dist/events/error.mjs +2 -1
  17. package/dist/events/pageleave.cjs +1 -0
  18. package/dist/events/pageleave.d.cts +13 -0
  19. package/dist/events/pageleave.d.mts +2 -1
  20. package/dist/events/pageleave.mjs +2 -1
  21. package/dist/events/pageview.cjs +1 -0
  22. package/dist/events/pageview.d.cts +14 -0
  23. package/dist/events/pageview.d.mts +2 -1
  24. package/dist/events/pageview.mjs +2 -1
  25. package/dist/integrations/index.cjs +1 -0
  26. package/dist/integrations/index.d.cts +48 -0
  27. package/dist/integrations/index.d.mts +2 -1
  28. package/dist/integrations/index.mjs +2 -1
  29. package/dist/integrations/platforms/cli.cjs +1 -0
  30. package/dist/integrations/platforms/cli.d.cts +12 -0
  31. package/dist/integrations/platforms/cli.d.mts +12 -0
  32. package/dist/integrations/platforms/cli.mjs +2 -0
  33. package/dist/integrations/platforms/github.cjs +1 -0
  34. package/dist/integrations/platforms/github.d.cts +16 -0
  35. package/dist/integrations/platforms/github.d.mts +2 -1
  36. package/dist/integrations/platforms/github.mjs +2 -1
  37. package/dist/integrations/platforms/slack.cjs +1 -0
  38. package/dist/integrations/platforms/slack.d.cts +33 -0
  39. package/dist/integrations/platforms/slack.d.mts +2 -1
  40. package/dist/integrations/platforms/slack.mjs +2 -1
  41. package/dist/integrations/platforms/vercel.cjs +1 -0
  42. package/dist/integrations/platforms/vercel.d.cts +47 -0
  43. package/dist/integrations/platforms/vercel.d.mts +2 -1
  44. package/dist/integrations/platforms/vercel.mjs +2 -1
  45. package/dist/releases/definition.cjs +1 -0
  46. package/dist/releases/definition.d.cts +57 -0
  47. package/dist/releases/definition.d.mts +2 -1
  48. package/dist/releases/definition.mjs +2 -1
  49. package/dist/releases/slug.cjs +1 -0
  50. package/dist/releases/slug.d.cts +24 -0
  51. package/dist/releases/slug.d.mts +3 -1
  52. package/dist/releases/slug.mjs +2 -1
  53. package/dist/sdk/env.cjs +1 -0
  54. package/dist/sdk/env.d.cts +6 -0
  55. package/dist/sdk/env.d.mts +2 -1
  56. package/dist/sdk/env.mjs +2 -1
  57. package/dist/sdk/envelope.cjs +1 -0
  58. package/dist/sdk/envelope.d.cts +1489 -0
  59. package/dist/sdk/envelope.d.mts +2 -1
  60. package/dist/sdk/envelope.mjs +2 -1
  61. package/dist/sdk/errors.cjs +2 -0
  62. package/dist/sdk/errors.d.cts +154 -0
  63. package/dist/sdk/errors.d.mts +2 -1
  64. package/dist/sdk/errors.mjs +3 -2
  65. package/dist/sdk/geo.cjs +1 -0
  66. package/dist/sdk/geo.d.cts +11 -0
  67. package/dist/sdk/geo.d.mts +2 -1
  68. package/dist/sdk/geo.mjs +2 -1
  69. package/dist/sdk/identify.cjs +1 -0
  70. package/dist/sdk/identify.d.cts +35 -0
  71. package/dist/sdk/identify.d.mts +2 -1
  72. package/dist/sdk/identify.mjs +2 -1
  73. package/dist/sdk/plugins/context/browser.cjs +1 -0
  74. package/dist/sdk/plugins/context/browser.d.cts +92 -0
  75. package/dist/sdk/plugins/context/browser.d.mts +2 -1
  76. package/dist/sdk/plugins/context/browser.mjs +2 -1
  77. package/dist/sdk/plugins/context/edge.cjs +1 -0
  78. package/dist/sdk/plugins/context/edge.d.cts +10 -0
  79. package/dist/sdk/plugins/context/edge.d.mts +2 -1
  80. package/dist/sdk/plugins/context/edge.mjs +2 -1
  81. package/dist/sdk/plugins/context/next.cjs +1 -0
  82. package/dist/sdk/plugins/context/next.d.cts +62 -0
  83. package/dist/sdk/plugins/context/next.d.mts +2 -1
  84. package/dist/sdk/plugins/context/next.mjs +2 -1
  85. package/dist/sdk/plugins/context/node.cjs +1 -0
  86. package/dist/sdk/plugins/context/node.d.cts +13 -0
  87. package/dist/sdk/plugins/context/node.d.mts +2 -1
  88. package/dist/sdk/plugins/context/node.mjs +2 -1
  89. package/dist/sdk/plugins/manifest.cjs +1 -0
  90. package/dist/sdk/plugins/manifest.d.cts +60 -0
  91. package/dist/sdk/plugins/manifest.d.mts +2 -1
  92. package/dist/sdk/plugins/manifest.mjs +2 -1
  93. package/dist/sdk/plugins/payload/errors.cjs +1 -0
  94. package/dist/sdk/plugins/payload/errors.d.cts +65 -0
  95. package/dist/sdk/plugins/payload/errors.d.mts +2 -1
  96. package/dist/sdk/plugins/payload/errors.mjs +2 -1
  97. package/dist/sdk/plugins/payload/page-events.cjs +1 -0
  98. package/dist/sdk/plugins/payload/page-events.d.cts +20 -0
  99. package/dist/sdk/plugins/payload/page-events.d.mts +2 -1
  100. package/dist/sdk/plugins/payload/page-events.mjs +2 -1
  101. package/dist/sdk/plugins/payload/rage-click.cjs +1 -0
  102. package/dist/sdk/plugins/payload/rage-click.d.cts +16 -0
  103. package/dist/sdk/plugins/payload/rage-click.d.mts +2 -1
  104. package/dist/sdk/plugins/payload/rage-click.mjs +2 -1
  105. package/dist/sdk/plugins/payload/replay.cjs +1 -0
  106. package/dist/sdk/plugins/payload/replay.d.cts +14 -0
  107. package/dist/sdk/plugins/payload/replay.d.mts +2 -1
  108. package/dist/sdk/plugins/payload/replay.mjs +2 -1
  109. package/dist/sdk/remote-config.cjs +1 -0
  110. package/dist/sdk/remote-config.d.cts +39 -0
  111. package/dist/sdk/remote-config.d.mts +2 -1
  112. package/dist/sdk/remote-config.mjs +2 -1
  113. package/dist/sdk/runtime.cjs +1 -0
  114. package/dist/sdk/runtime.d.cts +22 -0
  115. package/dist/sdk/runtime.d.mts +2 -1
  116. package/dist/sdk/runtime.mjs +2 -1
  117. package/package.json +115 -40
  118. package/dist/data/frame.d.mts.map +0 -1
  119. package/dist/data/frame.mjs.map +0 -1
  120. package/dist/data/session.d.mts.map +0 -1
  121. package/dist/data/session.mjs.map +0 -1
  122. package/dist/data/source-maps.d.mts.map +0 -1
  123. package/dist/data/source-maps.mjs.map +0 -1
  124. package/dist/events/error.d.mts.map +0 -1
  125. package/dist/events/error.mjs.map +0 -1
  126. package/dist/events/pageleave.d.mts.map +0 -1
  127. package/dist/events/pageleave.mjs.map +0 -1
  128. package/dist/events/pageview.d.mts.map +0 -1
  129. package/dist/events/pageview.mjs.map +0 -1
  130. package/dist/integrations/index.d.mts.map +0 -1
  131. package/dist/integrations/index.mjs.map +0 -1
  132. package/dist/integrations/platforms/github.d.mts.map +0 -1
  133. package/dist/integrations/platforms/github.mjs.map +0 -1
  134. package/dist/integrations/platforms/slack.d.mts.map +0 -1
  135. package/dist/integrations/platforms/slack.mjs.map +0 -1
  136. package/dist/integrations/platforms/vercel.d.mts.map +0 -1
  137. package/dist/integrations/platforms/vercel.mjs.map +0 -1
  138. package/dist/releases/definition.d.mts.map +0 -1
  139. package/dist/releases/definition.mjs.map +0 -1
  140. package/dist/releases/slug.d.mts.map +0 -1
  141. package/dist/releases/slug.mjs.map +0 -1
  142. package/dist/sdk/env.d.mts.map +0 -1
  143. package/dist/sdk/env.mjs.map +0 -1
  144. package/dist/sdk/envelope.d.mts.map +0 -1
  145. package/dist/sdk/envelope.mjs.map +0 -1
  146. package/dist/sdk/errors.d.mts.map +0 -1
  147. package/dist/sdk/errors.mjs.map +0 -1
  148. package/dist/sdk/geo.d.mts.map +0 -1
  149. package/dist/sdk/geo.mjs.map +0 -1
  150. package/dist/sdk/identify.d.mts.map +0 -1
  151. package/dist/sdk/identify.mjs.map +0 -1
  152. package/dist/sdk/plugins/context/browser.d.mts.map +0 -1
  153. package/dist/sdk/plugins/context/browser.mjs.map +0 -1
  154. package/dist/sdk/plugins/context/edge.d.mts.map +0 -1
  155. package/dist/sdk/plugins/context/edge.mjs.map +0 -1
  156. package/dist/sdk/plugins/context/next.d.mts.map +0 -1
  157. package/dist/sdk/plugins/context/next.mjs.map +0 -1
  158. package/dist/sdk/plugins/context/node.d.mts.map +0 -1
  159. package/dist/sdk/plugins/context/node.mjs.map +0 -1
  160. package/dist/sdk/plugins/manifest.d.mts.map +0 -1
  161. package/dist/sdk/plugins/manifest.mjs.map +0 -1
  162. package/dist/sdk/plugins/payload/errors.d.mts.map +0 -1
  163. package/dist/sdk/plugins/payload/errors.mjs.map +0 -1
  164. package/dist/sdk/plugins/payload/page-events.d.mts.map +0 -1
  165. package/dist/sdk/plugins/payload/page-events.mjs.map +0 -1
  166. package/dist/sdk/plugins/payload/rage-click.d.mts.map +0 -1
  167. package/dist/sdk/plugins/payload/rage-click.mjs.map +0 -1
  168. package/dist/sdk/plugins/payload/replay.d.mts.map +0 -1
  169. package/dist/sdk/plugins/payload/replay.mjs.map +0 -1
  170. package/dist/sdk/remote-config.d.mts.map +0 -1
  171. package/dist/sdk/remote-config.mjs.map +0 -1
  172. package/dist/sdk/runtime.d.mts.map +0 -1
  173. package/dist/sdk/runtime.mjs.map +0 -1
@@ -1485,4 +1485,5 @@ type Envelope<T extends EventType | undefined = undefined> = T extends EventType
1485
1485
  }> : EnvelopeBase;
1486
1486
  type EnvelopePayload<T extends EventType> = Envelope<T>["payload"];
1487
1487
  //#endregion
1488
- export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, errorEnvelopeSchema, pageleaveEnvelopeSchema, pageviewEnvelopeSchema, rageClickEnvelopeSchema, replayChunkEnvelopeSchema, sessionSourceSchema, uiEventEnvelopeSchema };
1488
+ export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, errorEnvelopeSchema, pageleaveEnvelopeSchema, pageviewEnvelopeSchema, rageClickEnvelopeSchema, replayChunkEnvelopeSchema, sessionSourceSchema, uiEventEnvelopeSchema };
1489
+ //# sourceMappingURL=envelope.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";import{sessionIdSchema as t}from"#data/session";import{browserContextSchema as n}from"#sdk/plugins/context/browser";import{edgeContextSchema as r}from"#sdk/plugins/context/edge";import{nextjsContextSchema as i}from"#sdk/plugins/context/next";import{nodeContextSchema as a}from"#sdk/plugins/context/node";import{errorEnvelopePayloadSchema as o}from"#sdk/plugins/payload/errors";import{pageleavePayloadSchema as s,pageviewPayloadSchema as c,uiEventPayloadSchema as l}from"#sdk/plugins/payload/page-events";import{rageClickPayloadSchema as u}from"#sdk/plugins/payload/rage-click";import{replayChunkPayloadSchema as d}from"#sdk/plugins/payload/replay";import{envSchema as f,runtimeSchema as p}from"#sdk/runtime";const m=e.enum([`header`,`async_context`,`fallback`,`client`]).optional().meta({id:`SessionSource`,title:`SessionSource`,description:`How the server resolved the sessionId for this envelope.`}),h=e.discriminatedUnion(`runtime`,[n,i,r,a]).meta({id:`EnvelopeContext`,title:`EnvelopeContext`,description:`Runtime-specific request context attached to every envelope.`}),g={buildId:e.string(),clientTs:e.int(),context:h.optional(),environment:f,producerVersion:e.string().optional(),releaseId:e.string().nullable(),runtime:p,sdkStack:e.array(e.string()).optional(),sessionId:t.nullable(),sessionSource:m,uuid:e.uuidv7(),v:e.literal(0)},_=e.object({...g,type:e.literal(`error`),payload:o}).meta({id:`ErrorEnvelope`,title:`ErrorEnvelope`}),v=e.object({...g,type:e.literal(`pageview`),payload:c}).meta({id:`PageviewEnvelope`,title:`PageviewEnvelope`}),y=e.object({...g,type:e.literal(`pageleave`),payload:s}).meta({id:`PageleaveEnvelope`,title:`PageleaveEnvelope`}),b=e.object({...g,type:e.literal(`ui_event`),payload:l}).meta({id:`UiEventEnvelope`,title:`UiEventEnvelope`}),x=e.object({...g,type:e.literal(`replay_chunk`),payload:d}).meta({id:`ReplayChunkEnvelope`,title:`ReplayChunkEnvelope`}),S=e.object({...g,type:e.literal(`rage_click`),payload:u}).meta({id:`RageClickEnvelope`,title:`RageClickEnvelope`}),C=e.discriminatedUnion(`type`,[_,v,y,b,x,S]).meta({id:`Envelope`,title:`Envelope`,description:`A single event envelope accepted by the collector.`});export{h as envelopeContextSchema,C as envelopeSchema,_ as errorEnvelopeSchema,y as pageleaveEnvelopeSchema,v as pageviewEnvelopeSchema,S as rageClickEnvelopeSchema,x as replayChunkEnvelopeSchema,m as sessionSourceSchema,b as uiEventEnvelopeSchema};
1
+ import{z}from"zod";import{sessionIdSchema}from"#data/session";import{browserContextSchema}from"#sdk/plugins/context/browser";import{edgeContextSchema}from"#sdk/plugins/context/edge";import{nextjsContextSchema}from"#sdk/plugins/context/next";import{nodeContextSchema}from"#sdk/plugins/context/node";import{errorEnvelopePayloadSchema}from"#sdk/plugins/payload/errors";import{pageleavePayloadSchema,pageviewPayloadSchema,uiEventPayloadSchema}from"#sdk/plugins/payload/page-events";import{rageClickPayloadSchema}from"#sdk/plugins/payload/rage-click";import{replayChunkPayloadSchema}from"#sdk/plugins/payload/replay";import{envSchema,runtimeSchema}from"#sdk/runtime";const sessionSourceSchema=z.enum([`header`,`async_context`,`fallback`,`client`]).optional().meta({id:`SessionSource`,title:`SessionSource`,description:`How the server resolved the sessionId for this envelope.`}),envelopeContextSchema=z.discriminatedUnion(`runtime`,[browserContextSchema,nextjsContextSchema,edgeContextSchema,nodeContextSchema]).meta({id:`EnvelopeContext`,title:`EnvelopeContext`,description:`Runtime-specific request context attached to every envelope.`}),envelopeHeadersShape={buildId:z.string(),clientTs:z.int(),context:envelopeContextSchema.optional(),environment:envSchema,producerVersion:z.string().optional(),releaseId:z.string().nullable(),runtime:runtimeSchema,sdkStack:z.array(z.string()).optional(),sessionId:sessionIdSchema.nullable(),sessionSource:sessionSourceSchema,uuid:z.uuidv7(),v:z.literal(0)},errorEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`error`),payload:errorEnvelopePayloadSchema}).meta({id:`ErrorEnvelope`,title:`ErrorEnvelope`}),pageviewEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`pageview`),payload:pageviewPayloadSchema}).meta({id:`PageviewEnvelope`,title:`PageviewEnvelope`}),pageleaveEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`pageleave`),payload:pageleavePayloadSchema}).meta({id:`PageleaveEnvelope`,title:`PageleaveEnvelope`}),uiEventEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`ui_event`),payload:uiEventPayloadSchema}).meta({id:`UiEventEnvelope`,title:`UiEventEnvelope`}),replayChunkEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`replay_chunk`),payload:replayChunkPayloadSchema}).meta({id:`ReplayChunkEnvelope`,title:`ReplayChunkEnvelope`}),rageClickEnvelopeSchema=z.object({...envelopeHeadersShape,type:z.literal(`rage_click`),payload:rageClickPayloadSchema}).meta({id:`RageClickEnvelope`,title:`RageClickEnvelope`}),envelopeSchema=z.discriminatedUnion(`type`,[errorEnvelopeSchema,pageviewEnvelopeSchema,pageleaveEnvelopeSchema,uiEventEnvelopeSchema,replayChunkEnvelopeSchema,rageClickEnvelopeSchema]).meta({id:`Envelope`,title:`Envelope`,description:`A single event envelope accepted by the collector.`});export{envelopeContextSchema,envelopeSchema,errorEnvelopeSchema,pageleaveEnvelopeSchema,pageviewEnvelopeSchema,rageClickEnvelopeSchema,replayChunkEnvelopeSchema,sessionSourceSchema,uiEventEnvelopeSchema};
2
+ //# sourceMappingURL=envelope.mjs.map
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const MECHANISM_TYPE={browser:{onerror:`auto.browser.global_handlers.onerror`,onunhandledrejection:`auto.browser.global_handlers.onunhandledrejection`,consoleError:`auto.browser.console.error`},react:{errorBoundary:`auto.function.react.error_boundary`,captureBoundary:`auto.function.react.capture_boundary`,caughtError:`auto.function.react.caught_error`,uncaughtError:`auto.function.react.uncaught_error`,recoverableError:`auto.function.react.recoverable_error`},nextjs:{onRequestError:`auto.function.nextjs.on_request_error`,captureError:`auto.function.nextjs.capture_error`},node:{captureError:`auto.function.node.capture_error`,uncaughtException:`auto.node.global_handlers.uncaught_exception`,unhandledRejection:`auto.node.global_handlers.unhandled_rejection`},manual:{capture:`manual.api.capture`}},EXTENSION_URL_RE=/\b(?:chrome|moz|safari-web|safari|ms-browser|webkit-masked)-(?:extension|url):\/\//;function shouldDropBrowserExtensionNoise(stacks){return stacks.some(stack=>EXTENSION_URL_RE.test(stack))}const HAS_SOURCE_LOCATION_RE=/(?:https?|file|blob|webpack-internal):\/\/|\sat\s+[\w$.<>]+\s+\([^)]+:\d/;function shouldDropUnresolvableStack(stacks){if(stacks.length===0)return!1;for(let stack of stacks)if(HAS_SOURCE_LOCATION_RE.test(stack))return!1;return!0}const COMPONENT_STACK_RE=/^(?:in|at)\s+([^\s(]+)(?:\s+\(([^\s:)]+):(\d+)(?::(\d+))?\))?/;function parseReactComponentStack(componentStack){let frames=[];for(let rawLine of componentStack.split(`
2
+ `)){let line=rawLine.trim();if(!line)continue;let match=COMPONENT_STACK_RE.exec(line);if(!match)continue;let[,name,fileName,lineStr,colStr]=match;if(!name)continue;let frame={id:`react-${frames.length}`,fn:name};fileName&&(frame.file=fileName),lineStr&&(frame.line=Number(lineStr)),colStr&&(frame.column=Number(colStr)),frames.push(frame)}return frames}function toError(error){return error instanceof Error?error:typeof error==`string`?Error(error):typeof error==`object`&&error?tryUnwrapNestedError(error)||tagAsNonError(safeJson(error)??String(error)):tagAsNonError(String(error))}function tryUnwrapNestedError(record){if(record.cause instanceof Error)return record.cause;for(let value of Object.values(record))if(value instanceof Error)return value}function tagAsNonError(message){let e=Error(message);return e.name=`NonError`,e}function safeJson(value){try{return JSON.stringify(value)}catch{return null}}function classify(value){if(value===null)return`null`;let t=typeof value;if(t!==`object`)return t;let tag=Object.prototype.toString.call(value).slice(8,-1);return tag===`Object`?`PlainObject`:tag}function describe(value){if(value==null)return`Non-Error captured: ${String(value)}`;if(typeof value==`object`){let keys=Object.keys(value).sort();return keys.length===0?`Non-Error captured: empty object`:`Non-Error captured with keys: ${keys.join(`, `)}`}return`Non-Error captured: ${String(value)}`}function serializeBoundedDepth(value,maxDepth){let seen=new WeakSet,walk=(current,depth)=>{if(current===null)return null;let t=typeof current;if(t===`string`||t===`number`||t===`boolean`)return current;if(t===`undefined`)return;if(t===`function`||t===`symbol`||t===`bigint`)return String(current);if(depth>maxDepth)return`[depth-limit]`;if(seen.has(current))return`[circular]`;if(seen.add(current),Array.isArray(current))return current.map(item=>walk(item,depth+1));let out={};for(let[k,v]of Object.entries(current))out[k]=walk(v,depth+1);return out};return walk(value,0)}function toException(value){if(value instanceof Error)return value;if(typeof value==`string`)return Error(value);if(typeof value==`object`&&value){let nested=tryUnwrapNestedError(value);if(nested)return nested}return{kind:`non-error`,type:classify(value),value:describe(value),serialized:serializeBoundedDepth(value,4)}}function isNonErrorException(value){return typeof value==`object`&&!!value&&value.kind===`non-error`}function toExceptions(value,mechanism){if(isNonErrorException(value))return[{kind:`non-error`,type:value.type,value:value.value,mechanism,serialized:value.serialized}];let exceptions=[],current=value;for(let depth=0;current&&depth<5;depth+=1)exceptions.push({kind:`error`,type:current.name,value:current.message,mechanism:depth===0?mechanism:void 0,stack:current.stack??``}),current=current.cause instanceof Error?current.cause:void 0;return exceptions}exports.MECHANISM_TYPE=MECHANISM_TYPE,exports.isNonErrorException=isNonErrorException,exports.parseReactComponentStack=parseReactComponentStack,exports.shouldDropBrowserExtensionNoise=shouldDropBrowserExtensionNoise,exports.shouldDropUnresolvableStack=shouldDropUnresolvableStack,exports.toError=toError,exports.toException=toException,exports.toExceptions=toExceptions;
@@ -0,0 +1,154 @@
1
+ import { IngestedFrame } from "#data/frame";
2
+ import { ErrorMechanism, ExceptionValue } from "#sdk/plugins/payload/errors";
3
+
4
+ //#region src/sdk/errors.d.ts
5
+ /**
6
+ * Structured taxonomy of capture sources, tagged onto each
7
+ * `ErrorMechanism.type`. Follows the `auto.<surface>.<library>.<method>`
8
+ * convention Sentry also uses, so downstream analytics / classification can
9
+ * group on common prefixes:
10
+ *
11
+ * `auto.browser.*` — captured by SDK global handlers in the browser
12
+ * `auto.function.*` — captured by SDK functions (boundaries, callbacks,
13
+ * server wrappers)
14
+ *
15
+ * Leaves (`.onerror`, `.error_boundary`, `.on_request_error`, …) identify
16
+ * the specific capture site, which lets the agent's skill classifier reason
17
+ * about what "kind" of event this is without string-matching loose names.
18
+ */
19
+ declare const MECHANISM_TYPE: {
20
+ readonly browser: {
21
+ readonly onerror: "auto.browser.global_handlers.onerror";
22
+ readonly onunhandledrejection: "auto.browser.global_handlers.onunhandledrejection";
23
+ readonly consoleError: "auto.browser.console.error";
24
+ };
25
+ readonly react: {
26
+ readonly errorBoundary: "auto.function.react.error_boundary";
27
+ readonly captureBoundary: "auto.function.react.capture_boundary";
28
+ readonly caughtError: "auto.function.react.caught_error";
29
+ readonly uncaughtError: "auto.function.react.uncaught_error";
30
+ readonly recoverableError: "auto.function.react.recoverable_error";
31
+ };
32
+ readonly nextjs: {
33
+ readonly onRequestError: "auto.function.nextjs.on_request_error";
34
+ readonly captureError: "auto.function.nextjs.capture_error";
35
+ };
36
+ readonly node: {
37
+ readonly captureError: "auto.function.node.capture_error";
38
+ readonly uncaughtException: "auto.node.global_handlers.uncaught_exception";
39
+ readonly unhandledRejection: "auto.node.global_handlers.unhandled_rejection";
40
+ };
41
+ readonly manual: {
42
+ /** Customer called `capture(error)` from `@interfere/react/api`. */readonly capture: "manual.api.capture";
43
+ };
44
+ };
45
+ /**
46
+ * True when the raw stack mentions any browser-extension URL scheme
47
+ * anywhere. Catches extension-only stacks, extension interceptors
48
+ * (extension frames above app), and app errors whose stack still
49
+ * includes extension code (e.g. extension hydration). Cause-chain
50
+ * variants are caught by passing the chain entries' stacks to this
51
+ * check separately.
52
+ *
53
+ * Server-side parsing has full structured fidelity, but the noise
54
+ * filter runs at capture time before a parsed stack exists — regex
55
+ * over the raw string is sufficient and avoids pulling a parser into
56
+ * the customer bundle.
57
+ */
58
+ declare function shouldDropBrowserExtensionNoise(stacks: readonly string[]): boolean;
59
+ /**
60
+ * True when **none** of the supplied stacks (head + cause chain entries)
61
+ * carries any source-location anchor. Non-Error rejections (no stack at
62
+ * all) are exempt at the call site — they ship structured payloads the
63
+ * agent can reason over without frames.
64
+ */
65
+ declare function shouldDropUnresolvableStack(stacks: readonly string[]): boolean;
66
+ /**
67
+ * Parses a React `errorInfo.componentStack` string into synthetic frames.
68
+ * Server-side stack parsing handles JS frames; component-stack frames are
69
+ * supplementary context React emits separately and have a different shape,
70
+ * so they're parsed at capture time and shipped via `appendFrames`.
71
+ *
72
+ * React produces different formats across versions:
73
+ * - React 16–18 legacy: ` in ComponentName`
74
+ * ` in ComponentName (created by Parent)`
75
+ * - React 19 owner stacks: ` at ComponentName`
76
+ * ` at ComponentName (file.tsx:10:5)`
77
+ */
78
+ declare function parseReactComponentStack(componentStack: string): IngestedFrame[];
79
+ /**
80
+ * Coerces any thrown value into an `Error` instance, preferring a nested
81
+ * `Error` inside a plain-object rejection over a stringified fallback.
82
+ *
83
+ * Motivated by the common `Promise.reject({ error: realErr })` pattern
84
+ * (tRPC, GraphQL clients, some fetch wrappers). Without this, the captured
85
+ * exception would be `new Error("[object Object]")` and the nested Error's
86
+ * stack/message would be lost entirely.
87
+ *
88
+ * When multiple candidate Error values exist on the object, the first one
89
+ * found (in declaration order) wins. `cause` is preferred if present, since
90
+ * it's the documented ES2022 convention.
91
+ */
92
+ declare function toError(error: unknown): Error;
93
+ /**
94
+ * Capture-side variant for thrown values that aren't Errors and don't
95
+ * carry a nested Error (e.g. `Promise.reject({ code: 401, body: "..." })`,
96
+ * `Promise.reject(42)`). The structured payload rides on `serialized`
97
+ * so downstream consumers can render the original shape instead of
98
+ * parsing JSON back out of an Error's message string.
99
+ *
100
+ * Strings are *not* represented here — `Promise.reject("boom")` maps
101
+ * cleanly to `new Error("boom")` without lying about the shape, so it
102
+ * goes through `toException`'s Error branch.
103
+ */
104
+ interface NonErrorException {
105
+ readonly kind: "non-error";
106
+ /**
107
+ * Original payload, depth-bounded and circular-safe. Anything beyond
108
+ * `MAX_NON_ERROR_DEPTH` is collapsed to `"[depth-limit]"`; circular
109
+ * back-edges become `"[circular]"`. Primitives pass through unchanged.
110
+ */
111
+ readonly serialized: unknown;
112
+ /**
113
+ * Stable label for grouping. `"PlainObject"` / `"Array"` / `"number"`
114
+ * etc. — derived from the value's structural class, not its content,
115
+ * so two `Promise.reject({ code: 401 })` calls land in the same group
116
+ * regardless of which keys the object carries.
117
+ */
118
+ readonly type: string;
119
+ /**
120
+ * Best-effort one-liner. For objects: a sorted list of keys. For
121
+ * primitives: `String(value)`. The dashboard shows this; the
122
+ * `serialized` field carries the actual payload.
123
+ */
124
+ readonly value: string;
125
+ }
126
+ /**
127
+ * Coerces any thrown value into either an `Error` (when one is
128
+ * recoverable — direct Error, or nested Error inside an object via
129
+ * `cause` / first-Error-valued property — or a string, which maps
130
+ * cleanly to `new Error(str)`) or a structured `NonErrorException`
131
+ * carrying the original payload.
132
+ *
133
+ * Replaces `toError` for capture sites that handle both branches
134
+ * (today: `unhandledrejection`). `toError` is kept for callers that
135
+ * specifically need an `Error` (`<ErrorBoundary>` interop, browser
136
+ * APIs that take Error-typed args).
137
+ */
138
+ declare function toException(value: unknown): Error | NonErrorException;
139
+ declare function isNonErrorException(value: unknown): value is NonErrorException;
140
+ /**
141
+ * Walks `Error.cause` to flatten the chain into the wire shape the
142
+ * collector expects. Each entry carries `type` / `value` / `mechanism?`
143
+ * plus the raw `stack` string — the SDK ships **no parsed frames**.
144
+ * Server-side ingest parses `stack` into structured `IngestedFrame[]`
145
+ * via the collector's stack parser (see
146
+ * `src/services/collector/src/lib/stack-parser.ts`).
147
+ *
148
+ * Non-Error rejections short-circuit to a single `kind: "non-error"`
149
+ * entry with the structured payload on `serialized`.
150
+ */
151
+ declare function toExceptions(value: Error | NonErrorException, mechanism: ErrorMechanism): ExceptionValue[];
152
+ //#endregion
153
+ export { MECHANISM_TYPE, NonErrorException, isNonErrorException, parseReactComponentStack, shouldDropBrowserExtensionNoise, shouldDropUnresolvableStack, toError, toException, toExceptions };
154
+ //# sourceMappingURL=errors.d.cts.map
@@ -150,4 +150,5 @@ declare function isNonErrorException(value: unknown): value is NonErrorException
150
150
  */
151
151
  declare function toExceptions(value: Error | NonErrorException, mechanism: ErrorMechanism): ExceptionValue[];
152
152
  //#endregion
153
- export { MECHANISM_TYPE, NonErrorException, isNonErrorException, parseReactComponentStack, shouldDropBrowserExtensionNoise, shouldDropUnresolvableStack, toError, toException, toExceptions };
153
+ export { MECHANISM_TYPE, NonErrorException, isNonErrorException, parseReactComponentStack, shouldDropBrowserExtensionNoise, shouldDropUnresolvableStack, toError, toException, toExceptions };
154
+ //# sourceMappingURL=errors.d.mts.map
@@ -1,2 +1,3 @@
1
- const e={browser:{onerror:`auto.browser.global_handlers.onerror`,onunhandledrejection:`auto.browser.global_handlers.onunhandledrejection`,consoleError:`auto.browser.console.error`},react:{errorBoundary:`auto.function.react.error_boundary`,captureBoundary:`auto.function.react.capture_boundary`,caughtError:`auto.function.react.caught_error`,uncaughtError:`auto.function.react.uncaught_error`,recoverableError:`auto.function.react.recoverable_error`},nextjs:{onRequestError:`auto.function.nextjs.on_request_error`,captureError:`auto.function.nextjs.capture_error`},node:{captureError:`auto.function.node.capture_error`,uncaughtException:`auto.node.global_handlers.uncaught_exception`,unhandledRejection:`auto.node.global_handlers.unhandled_rejection`},manual:{capture:`manual.api.capture`}},t=/\b(?:chrome|moz|safari-web|safari|ms-browser|webkit-masked)-(?:extension|url):\/\//;function n(e){return e.some(e=>t.test(e))}const r=/(?:https?|file|blob|webpack-internal):\/\/|\sat\s+[\w$.<>]+\s+\([^)]+:\d/;function i(e){if(e.length===0)return!1;for(let t of e)if(r.test(t))return!1;return!0}const a=/^(?:in|at)\s+([^\s(]+)(?:\s+\(([^\s:)]+):(\d+)(?::(\d+))?\))?/;function o(e){let t=[];for(let n of e.split(`
2
- `)){let e=n.trim();if(!e)continue;let r=a.exec(e);if(!r)continue;let[,i,o,s,c]=r;if(!i)continue;let l={id:`react-${t.length}`,fn:i};o&&(l.file=o),s&&(l.line=Number(s)),c&&(l.column=Number(c)),t.push(l)}return t}function s(e){return e instanceof Error?e:typeof e==`string`?Error(e):typeof e==`object`&&e?c(e)||l(u(e)??String(e)):l(String(e))}function c(e){if(e.cause instanceof Error)return e.cause;for(let t of Object.values(e))if(t instanceof Error)return t}function l(e){let t=Error(e);return t.name=`NonError`,t}function u(e){try{return JSON.stringify(e)}catch{return null}}function d(e){if(e===null)return`null`;let t=typeof e;if(t!==`object`)return t;let n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`?`PlainObject`:n}function f(e){if(e==null)return`Non-Error captured: ${String(e)}`;if(typeof e==`object`){let t=Object.keys(e).sort();return t.length===0?`Non-Error captured: empty object`:`Non-Error captured with keys: ${t.join(`, `)}`}return`Non-Error captured: ${String(e)}`}function p(e,t){let n=new WeakSet,r=(e,i)=>{if(e===null)return null;let a=typeof e;if(a===`string`||a===`number`||a===`boolean`)return e;if(a===`undefined`)return;if(a===`function`||a===`symbol`||a===`bigint`)return String(e);if(i>t)return`[depth-limit]`;if(n.has(e))return`[circular]`;if(n.add(e),Array.isArray(e))return e.map(e=>r(e,i+1));let o={};for(let[t,n]of Object.entries(e))o[t]=r(n,i+1);return o};return r(e,0)}function m(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(typeof e==`object`&&e){let t=c(e);if(t)return t}return{kind:`non-error`,type:d(e),value:f(e),serialized:p(e,4)}}function h(e){return typeof e==`object`&&!!e&&e.kind===`non-error`}function g(e,t){if(h(e))return[{kind:`non-error`,type:e.type,value:e.value,mechanism:t,serialized:e.serialized}];let n=[],r=e;for(let e=0;r&&e<5;e+=1)n.push({kind:`error`,type:r.name,value:r.message,mechanism:e===0?t:void 0,stack:r.stack??``}),r=r.cause instanceof Error?r.cause:void 0;return n}export{e as MECHANISM_TYPE,h as isNonErrorException,o as parseReactComponentStack,n as shouldDropBrowserExtensionNoise,i as shouldDropUnresolvableStack,s as toError,m as toException,g as toExceptions};
1
+ const MECHANISM_TYPE={browser:{onerror:`auto.browser.global_handlers.onerror`,onunhandledrejection:`auto.browser.global_handlers.onunhandledrejection`,consoleError:`auto.browser.console.error`},react:{errorBoundary:`auto.function.react.error_boundary`,captureBoundary:`auto.function.react.capture_boundary`,caughtError:`auto.function.react.caught_error`,uncaughtError:`auto.function.react.uncaught_error`,recoverableError:`auto.function.react.recoverable_error`},nextjs:{onRequestError:`auto.function.nextjs.on_request_error`,captureError:`auto.function.nextjs.capture_error`},node:{captureError:`auto.function.node.capture_error`,uncaughtException:`auto.node.global_handlers.uncaught_exception`,unhandledRejection:`auto.node.global_handlers.unhandled_rejection`},manual:{capture:`manual.api.capture`}},EXTENSION_URL_RE=/\b(?:chrome|moz|safari-web|safari|ms-browser|webkit-masked)-(?:extension|url):\/\//;function shouldDropBrowserExtensionNoise(stacks){return stacks.some(stack=>EXTENSION_URL_RE.test(stack))}const HAS_SOURCE_LOCATION_RE=/(?:https?|file|blob|webpack-internal):\/\/|\sat\s+[\w$.<>]+\s+\([^)]+:\d/;function shouldDropUnresolvableStack(stacks){if(stacks.length===0)return!1;for(let stack of stacks)if(HAS_SOURCE_LOCATION_RE.test(stack))return!1;return!0}const COMPONENT_STACK_RE=/^(?:in|at)\s+([^\s(]+)(?:\s+\(([^\s:)]+):(\d+)(?::(\d+))?\))?/;function parseReactComponentStack(componentStack){let frames=[];for(let rawLine of componentStack.split(`
2
+ `)){let line=rawLine.trim();if(!line)continue;let match=COMPONENT_STACK_RE.exec(line);if(!match)continue;let[,name,fileName,lineStr,colStr]=match;if(!name)continue;let frame={id:`react-${frames.length}`,fn:name};fileName&&(frame.file=fileName),lineStr&&(frame.line=Number(lineStr)),colStr&&(frame.column=Number(colStr)),frames.push(frame)}return frames}function toError(error){return error instanceof Error?error:typeof error==`string`?Error(error):typeof error==`object`&&error?tryUnwrapNestedError(error)||tagAsNonError(safeJson(error)??String(error)):tagAsNonError(String(error))}function tryUnwrapNestedError(record){if(record.cause instanceof Error)return record.cause;for(let value of Object.values(record))if(value instanceof Error)return value}function tagAsNonError(message){let e=Error(message);return e.name=`NonError`,e}function safeJson(value){try{return JSON.stringify(value)}catch{return null}}function classify(value){if(value===null)return`null`;let t=typeof value;if(t!==`object`)return t;let tag=Object.prototype.toString.call(value).slice(8,-1);return tag===`Object`?`PlainObject`:tag}function describe(value){if(value==null)return`Non-Error captured: ${String(value)}`;if(typeof value==`object`){let keys=Object.keys(value).sort();return keys.length===0?`Non-Error captured: empty object`:`Non-Error captured with keys: ${keys.join(`, `)}`}return`Non-Error captured: ${String(value)}`}function serializeBoundedDepth(value,maxDepth){let seen=new WeakSet,walk=(current,depth)=>{if(current===null)return null;let t=typeof current;if(t===`string`||t===`number`||t===`boolean`)return current;if(t===`undefined`)return;if(t===`function`||t===`symbol`||t===`bigint`)return String(current);if(depth>maxDepth)return`[depth-limit]`;if(seen.has(current))return`[circular]`;if(seen.add(current),Array.isArray(current))return current.map(item=>walk(item,depth+1));let out={};for(let[k,v]of Object.entries(current))out[k]=walk(v,depth+1);return out};return walk(value,0)}function toException(value){if(value instanceof Error)return value;if(typeof value==`string`)return Error(value);if(typeof value==`object`&&value){let nested=tryUnwrapNestedError(value);if(nested)return nested}return{kind:`non-error`,type:classify(value),value:describe(value),serialized:serializeBoundedDepth(value,4)}}function isNonErrorException(value){return typeof value==`object`&&!!value&&value.kind===`non-error`}function toExceptions(value,mechanism){if(isNonErrorException(value))return[{kind:`non-error`,type:value.type,value:value.value,mechanism,serialized:value.serialized}];let exceptions=[],current=value;for(let depth=0;current&&depth<5;depth+=1)exceptions.push({kind:`error`,type:current.name,value:current.message,mechanism:depth===0?mechanism:void 0,stack:current.stack??``}),current=current.cause instanceof Error?current.cause:void 0;return exceptions}export{MECHANISM_TYPE,isNonErrorException,parseReactComponentStack,shouldDropBrowserExtensionNoise,shouldDropUnresolvableStack,toError,toException,toExceptions};
3
+ //# sourceMappingURL=errors.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const cloudflareTraceSchema=zod.z.object({loc:zod.z.string().length(2)}).loose(),GEO_COUNTRY_HEADERS=[`cf-ipcountry`,`x-vercel-ip-country`,`x-country-code`];function extractCountryHeader(request){for(let header of GEO_COUNTRY_HEADERS){let value=request.headers.get(header);if(value&&value.length===2)return value.toUpperCase()}return null}exports.cloudflareTraceSchema=cloudflareTraceSchema,exports.extractCountryHeader=extractCountryHeader;
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/geo.d.ts
4
+ declare const cloudflareTraceSchema: z.ZodObject<{
5
+ loc: z.ZodString;
6
+ }, z.core.$loose>;
7
+ type CloudflareTrace = z.infer<typeof cloudflareTraceSchema>;
8
+ declare function extractCountryHeader(request: Request): string | null;
9
+ //#endregion
10
+ export { CloudflareTrace, cloudflareTraceSchema, extractCountryHeader };
11
+ //# sourceMappingURL=geo.d.cts.map
@@ -7,4 +7,5 @@ declare const cloudflareTraceSchema: z.ZodObject<{
7
7
  type CloudflareTrace = z.infer<typeof cloudflareTraceSchema>;
8
8
  declare function extractCountryHeader(request: Request): string | null;
9
9
  //#endregion
10
- export { CloudflareTrace, cloudflareTraceSchema, extractCountryHeader };
10
+ export { CloudflareTrace, cloudflareTraceSchema, extractCountryHeader };
11
+ //# sourceMappingURL=geo.d.mts.map
package/dist/sdk/geo.mjs CHANGED
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.object({loc:e.string().length(2)}).loose(),n=[`cf-ipcountry`,`x-vercel-ip-country`,`x-country-code`];function r(e){for(let t of n){let n=e.headers.get(t);if(n&&n.length===2)return n.toUpperCase()}return null}export{t as cloudflareTraceSchema,r as extractCountryHeader};
1
+ import{z}from"zod";const cloudflareTraceSchema=z.object({loc:z.string().length(2)}).loose(),GEO_COUNTRY_HEADERS=[`cf-ipcountry`,`x-vercel-ip-country`,`x-country-code`];function extractCountryHeader(request){for(let header of GEO_COUNTRY_HEADERS){let value=request.headers.get(header);if(value&&value.length===2)return value.toUpperCase()}return null}export{cloudflareTraceSchema,extractCountryHeader};
2
+ //# sourceMappingURL=geo.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const identifySourceSchema=zod.z.discriminatedUnion(`type`,[zod.z.object({type:zod.z.literal(`clerk`),name:zod.z.literal(`Clerk`)}).meta({id:`ClerkIdentifySource`,title:`ClerkIdentifySource`}),zod.z.object({type:zod.z.literal(`auth0`),name:zod.z.literal(`Auth0`)}).meta({id:`Auth0IdentifySource`,title:`Auth0IdentifySource`}),zod.z.object({type:zod.z.literal(`custom`),name:zod.z.string()}).meta({id:`CustomIdentifySource`,title:`CustomIdentifySource`})]).meta({id:`IdentifySource`,title:`IdentifySource`,description:`Auth provider that surfaced this identification.`}),traitsSchema=zod.z.record(zod.z.string(),zod.z.unknown()).meta({id:`IdentifyTraits`,title:`IdentifyTraits`,description:`Free-form key/value bag of user attributes attached when identifying a session.`}),identifyParamsSchema=zod.z.object({avatar:zod.z.string().optional(),email:zod.z.email().optional(),identifier:zod.z.string(),name:zod.z.string().optional(),source:identifySourceSchema,traits:traitsSchema.optional()}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});exports.identifyParamsSchema=identifyParamsSchema,exports.identifySourceSchema=identifySourceSchema;
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/identify.d.ts
4
+ declare const identifySourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ type: z.ZodLiteral<"clerk">;
6
+ name: z.ZodLiteral<"Clerk">;
7
+ }, z.core.$strip>, z.ZodObject<{
8
+ type: z.ZodLiteral<"auth0">;
9
+ name: z.ZodLiteral<"Auth0">;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ type: z.ZodLiteral<"custom">;
12
+ name: z.ZodString;
13
+ }, z.core.$strip>], "type">;
14
+ type IdentifySource = z.infer<typeof identifySourceSchema>;
15
+ declare const identifyParamsSchema: z.ZodObject<{
16
+ avatar: z.ZodOptional<z.ZodString>;
17
+ email: z.ZodOptional<z.ZodEmail>;
18
+ identifier: z.ZodString;
19
+ name: z.ZodOptional<z.ZodString>;
20
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ type: z.ZodLiteral<"clerk">;
22
+ name: z.ZodLiteral<"Clerk">;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ type: z.ZodLiteral<"auth0">;
25
+ name: z.ZodLiteral<"Auth0">;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ type: z.ZodLiteral<"custom">;
28
+ name: z.ZodString;
29
+ }, z.core.$strip>], "type">;
30
+ traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
+ }, z.core.$strip>;
32
+ type IdentifyParams = z.infer<typeof identifyParamsSchema>;
33
+ //#endregion
34
+ export { IdentifyParams, IdentifySource, identifyParamsSchema, identifySourceSchema };
35
+ //# sourceMappingURL=identify.d.cts.map
@@ -31,4 +31,5 @@ declare const identifyParamsSchema: z.ZodObject<{
31
31
  }, z.core.$strip>;
32
32
  type IdentifyParams = z.infer<typeof identifyParamsSchema>;
33
33
  //#endregion
34
- export { IdentifyParams, IdentifySource, identifyParamsSchema, identifySourceSchema };
34
+ export { IdentifyParams, IdentifySource, identifyParamsSchema, identifySourceSchema };
35
+ //# sourceMappingURL=identify.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.discriminatedUnion(`type`,[e.object({type:e.literal(`clerk`),name:e.literal(`Clerk`)}).meta({id:`ClerkIdentifySource`,title:`ClerkIdentifySource`}),e.object({type:e.literal(`auth0`),name:e.literal(`Auth0`)}).meta({id:`Auth0IdentifySource`,title:`Auth0IdentifySource`}),e.object({type:e.literal(`custom`),name:e.string()}).meta({id:`CustomIdentifySource`,title:`CustomIdentifySource`})]).meta({id:`IdentifySource`,title:`IdentifySource`,description:`Auth provider that surfaced this identification.`}),n=e.record(e.string(),e.unknown()).meta({id:`IdentifyTraits`,title:`IdentifyTraits`,description:`Free-form key/value bag of user attributes attached when identifying a session.`}),r=e.object({avatar:e.string().optional(),email:e.email().optional(),identifier:e.string(),name:e.string().optional(),source:t,traits:n.optional()}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});export{r as identifyParamsSchema,t as identifySourceSchema};
1
+ import{z}from"zod";const identifySourceSchema=z.discriminatedUnion(`type`,[z.object({type:z.literal(`clerk`),name:z.literal(`Clerk`)}).meta({id:`ClerkIdentifySource`,title:`ClerkIdentifySource`}),z.object({type:z.literal(`auth0`),name:z.literal(`Auth0`)}).meta({id:`Auth0IdentifySource`,title:`Auth0IdentifySource`}),z.object({type:z.literal(`custom`),name:z.string()}).meta({id:`CustomIdentifySource`,title:`CustomIdentifySource`})]).meta({id:`IdentifySource`,title:`IdentifySource`,description:`Auth provider that surfaced this identification.`}),traitsSchema=z.record(z.string(),z.unknown()).meta({id:`IdentifyTraits`,title:`IdentifyTraits`,description:`Free-form key/value bag of user attributes attached when identifying a session.`}),identifyParamsSchema=z.object({avatar:z.string().optional(),email:z.email().optional(),identifier:z.string(),name:z.string().optional(),source:identifySourceSchema,traits:traitsSchema.optional()}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});export{identifyParamsSchema,identifySourceSchema};
2
+ //# sourceMappingURL=identify.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const deviceBrowserSchema=zod.z.object({major:zod.z.string().optional(),name:zod.z.string().optional(),type:zod.z.string().optional(),version:zod.z.string().optional(),fullVersion:zod.z.string().optional()}).meta({id:`DeviceBrowser`,title:`DeviceBrowser`}),deviceCpuSchema=zod.z.object({architecture:zod.z.string().optional(),bitness:zod.z.string().optional()}).meta({id:`DeviceCpu`,title:`DeviceCpu`}),deviceInfoSchema=zod.z.object({model:zod.z.string().optional(),type:zod.z.string().optional(),vendor:zod.z.string().optional()}).meta({id:`DeviceInfo`,title:`DeviceInfo`}),deviceEngineSchema=zod.z.object({name:zod.z.string().optional(),version:zod.z.string().optional()}).meta({id:`DeviceEngine`,title:`DeviceEngine`}),deviceOsSchema=zod.z.object({name:zod.z.string().optional(),version:zod.z.string().optional(),versionFull:zod.z.string().optional()}).meta({id:`DeviceOs`,title:`DeviceOs`}),deviceMetadataSchema=zod.z.object({browser:deviceBrowserSchema,cpu:deviceCpuSchema,device:deviceInfoSchema,engine:deviceEngineSchema,os:deviceOsSchema,ua:zod.z.string(),frozenUa:zod.z.boolean().optional()}).meta({id:`DeviceMetadata`,title:`DeviceMetadata`,description:`Device/browser metadata extracted from the user agent.`}),displayScreenSchema=zod.z.object({height:zod.z.number(),width:zod.z.number(),orientation:zod.z.string().optional()}).meta({id:`Screen`,title:`Screen`}),displaySchema=zod.z.object({screen:displayScreenSchema}).meta({id:`Display`,title:`Display`}),browserMetadataSchema=zod.z.object({language:zod.z.string().optional(),timezone:zod.z.string().optional(),display:displaySchema}).meta({id:`BrowserMetadata`,title:`BrowserMetadata`,description:`Browser locale and display metadata.`}),browserContextSchema=zod.z.object({runtime:zod.z.literal(`browser`),browser:browserMetadataSchema.nullable(),device:deviceMetadataSchema.nullable()}).meta({id:`BrowserContext`,title:`BrowserContext`,description:`Request context for the browser runtime.`});exports.browserContextSchema=browserContextSchema,exports.deviceMetadataSchema=deviceMetadataSchema;
@@ -0,0 +1,92 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/plugins/context/browser.d.ts
4
+ declare const deviceMetadataSchema: z.ZodObject<{
5
+ browser: z.ZodObject<{
6
+ major: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ type: z.ZodOptional<z.ZodString>;
9
+ version: z.ZodOptional<z.ZodString>;
10
+ fullVersion: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ cpu: z.ZodObject<{
13
+ architecture: z.ZodOptional<z.ZodString>;
14
+ bitness: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ device: z.ZodObject<{
17
+ model: z.ZodOptional<z.ZodString>;
18
+ type: z.ZodOptional<z.ZodString>;
19
+ vendor: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ engine: z.ZodObject<{
22
+ name: z.ZodOptional<z.ZodString>;
23
+ version: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ os: z.ZodObject<{
26
+ name: z.ZodOptional<z.ZodString>;
27
+ version: z.ZodOptional<z.ZodString>;
28
+ versionFull: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ ua: z.ZodString;
31
+ frozenUa: z.ZodOptional<z.ZodBoolean>;
32
+ }, z.core.$strip>;
33
+ type DeviceMetadata = z.infer<typeof deviceMetadataSchema>;
34
+ declare const browserMetadataSchema: z.ZodObject<{
35
+ language: z.ZodOptional<z.ZodString>;
36
+ timezone: z.ZodOptional<z.ZodString>;
37
+ display: z.ZodObject<{
38
+ screen: z.ZodObject<{
39
+ height: z.ZodNumber;
40
+ width: z.ZodNumber;
41
+ orientation: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>;
44
+ }, z.core.$strip>;
45
+ type BrowserMetadata = z.infer<typeof browserMetadataSchema>;
46
+ declare const browserContextSchema: z.ZodObject<{
47
+ runtime: z.ZodLiteral<"browser">;
48
+ browser: z.ZodNullable<z.ZodObject<{
49
+ language: z.ZodOptional<z.ZodString>;
50
+ timezone: z.ZodOptional<z.ZodString>;
51
+ display: z.ZodObject<{
52
+ screen: z.ZodObject<{
53
+ height: z.ZodNumber;
54
+ width: z.ZodNumber;
55
+ orientation: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>>;
59
+ device: z.ZodNullable<z.ZodObject<{
60
+ browser: z.ZodObject<{
61
+ major: z.ZodOptional<z.ZodString>;
62
+ name: z.ZodOptional<z.ZodString>;
63
+ type: z.ZodOptional<z.ZodString>;
64
+ version: z.ZodOptional<z.ZodString>;
65
+ fullVersion: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ cpu: z.ZodObject<{
68
+ architecture: z.ZodOptional<z.ZodString>;
69
+ bitness: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>;
71
+ device: z.ZodObject<{
72
+ model: z.ZodOptional<z.ZodString>;
73
+ type: z.ZodOptional<z.ZodString>;
74
+ vendor: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ engine: z.ZodObject<{
77
+ name: z.ZodOptional<z.ZodString>;
78
+ version: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ os: z.ZodObject<{
81
+ name: z.ZodOptional<z.ZodString>;
82
+ version: z.ZodOptional<z.ZodString>;
83
+ versionFull: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ ua: z.ZodString;
86
+ frozenUa: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>;
89
+ type BrowserContext = z.infer<typeof browserContextSchema>;
90
+ //#endregion
91
+ export { BrowserContext, BrowserMetadata, DeviceMetadata, browserContextSchema, deviceMetadataSchema };
92
+ //# sourceMappingURL=browser.d.cts.map
@@ -88,4 +88,5 @@ declare const browserContextSchema: z.ZodObject<{
88
88
  }, z.core.$strip>;
89
89
  type BrowserContext = z.infer<typeof browserContextSchema>;
90
90
  //#endregion
91
- export { BrowserContext, BrowserMetadata, DeviceMetadata, browserContextSchema, deviceMetadataSchema };
91
+ export { BrowserContext, BrowserMetadata, DeviceMetadata, browserContextSchema, deviceMetadataSchema };
92
+ //# sourceMappingURL=browser.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.object({major:e.string().optional(),name:e.string().optional(),type:e.string().optional(),version:e.string().optional(),fullVersion:e.string().optional()}).meta({id:`DeviceBrowser`,title:`DeviceBrowser`}),n=e.object({architecture:e.string().optional(),bitness:e.string().optional()}).meta({id:`DeviceCpu`,title:`DeviceCpu`}),r=e.object({model:e.string().optional(),type:e.string().optional(),vendor:e.string().optional()}).meta({id:`DeviceInfo`,title:`DeviceInfo`}),i=e.object({name:e.string().optional(),version:e.string().optional()}).meta({id:`DeviceEngine`,title:`DeviceEngine`}),a=e.object({name:e.string().optional(),version:e.string().optional(),versionFull:e.string().optional()}).meta({id:`DeviceOs`,title:`DeviceOs`}),o=e.object({browser:t,cpu:n,device:r,engine:i,os:a,ua:e.string(),frozenUa:e.boolean().optional()}).meta({id:`DeviceMetadata`,title:`DeviceMetadata`,description:`Device/browser metadata extracted from the user agent.`}),s=e.object({height:e.number(),width:e.number(),orientation:e.string().optional()}).meta({id:`Screen`,title:`Screen`}),c=e.object({screen:s}).meta({id:`Display`,title:`Display`}),l=e.object({language:e.string().optional(),timezone:e.string().optional(),display:c}).meta({id:`BrowserMetadata`,title:`BrowserMetadata`,description:`Browser locale and display metadata.`}),u=e.object({runtime:e.literal(`browser`),browser:l.nullable(),device:o.nullable()}).meta({id:`BrowserContext`,title:`BrowserContext`,description:`Request context for the browser runtime.`});export{u as browserContextSchema,o as deviceMetadataSchema};
1
+ import{z}from"zod";const deviceBrowserSchema=z.object({major:z.string().optional(),name:z.string().optional(),type:z.string().optional(),version:z.string().optional(),fullVersion:z.string().optional()}).meta({id:`DeviceBrowser`,title:`DeviceBrowser`}),deviceCpuSchema=z.object({architecture:z.string().optional(),bitness:z.string().optional()}).meta({id:`DeviceCpu`,title:`DeviceCpu`}),deviceInfoSchema=z.object({model:z.string().optional(),type:z.string().optional(),vendor:z.string().optional()}).meta({id:`DeviceInfo`,title:`DeviceInfo`}),deviceEngineSchema=z.object({name:z.string().optional(),version:z.string().optional()}).meta({id:`DeviceEngine`,title:`DeviceEngine`}),deviceOsSchema=z.object({name:z.string().optional(),version:z.string().optional(),versionFull:z.string().optional()}).meta({id:`DeviceOs`,title:`DeviceOs`}),deviceMetadataSchema=z.object({browser:deviceBrowserSchema,cpu:deviceCpuSchema,device:deviceInfoSchema,engine:deviceEngineSchema,os:deviceOsSchema,ua:z.string(),frozenUa:z.boolean().optional()}).meta({id:`DeviceMetadata`,title:`DeviceMetadata`,description:`Device/browser metadata extracted from the user agent.`}),displayScreenSchema=z.object({height:z.number(),width:z.number(),orientation:z.string().optional()}).meta({id:`Screen`,title:`Screen`}),displaySchema=z.object({screen:displayScreenSchema}).meta({id:`Display`,title:`Display`}),browserMetadataSchema=z.object({language:z.string().optional(),timezone:z.string().optional(),display:displaySchema}).meta({id:`BrowserMetadata`,title:`BrowserMetadata`,description:`Browser locale and display metadata.`}),browserContextSchema=z.object({runtime:z.literal(`browser`),browser:browserMetadataSchema.nullable(),device:deviceMetadataSchema.nullable()}).meta({id:`BrowserContext`,title:`BrowserContext`,description:`Request context for the browser runtime.`});export{browserContextSchema,deviceMetadataSchema};
2
+ //# sourceMappingURL=browser.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const edgeContextSchema=zod.z.object({runtime:zod.z.literal(`edge`)}).meta({id:`EdgeContext`,title:`EdgeContext`,description:`Request context for the Edge runtime.`});exports.edgeContextSchema=edgeContextSchema;
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/plugins/context/edge.d.ts
4
+ declare const edgeContextSchema: z.ZodObject<{
5
+ runtime: z.ZodLiteral<"edge">;
6
+ }, z.core.$strip>;
7
+ type EdgeContext = z.infer<typeof edgeContextSchema>;
8
+ //#endregion
9
+ export { EdgeContext, edgeContextSchema };
10
+ //# sourceMappingURL=edge.d.cts.map
@@ -6,4 +6,5 @@ declare const edgeContextSchema: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  type EdgeContext = z.infer<typeof edgeContextSchema>;
8
8
  //#endregion
9
- export { EdgeContext, edgeContextSchema };
9
+ export { EdgeContext, edgeContextSchema };
10
+ //# sourceMappingURL=edge.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.object({runtime:e.literal(`edge`)}).meta({id:`EdgeContext`,title:`EdgeContext`,description:`Request context for the Edge runtime.`});export{t as edgeContextSchema};
1
+ import{z}from"zod";const edgeContextSchema=z.object({runtime:z.literal(`edge`)}).meta({id:`EdgeContext`,title:`EdgeContext`,description:`Request context for the Edge runtime.`});export{edgeContextSchema};
2
+ //# sourceMappingURL=edge.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const renderSourceSchema=zod.z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).meta({id:`RenderSource`,title:`RenderSource`}),renderTypeSchema=zod.z.enum([`dynamic`,`dynamic-resume`]).meta({id:`RenderType`,title:`RenderType`}),revalidateReasonSchema=zod.z.enum([`on-demand`,`stale`]).meta({id:`RevalidateReason`,title:`RevalidateReason`}),routeTypeSchema=zod.z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).meta({id:`RouteType`,title:`RouteType`}),routerKindSchema=zod.z.enum([`Pages Router`,`App Router`]).meta({id:`RouterKind`,title:`RouterKind`}),nextjsContextSchema=zod.z.object({errorDigest:zod.z.string().optional(),renderSource:renderSourceSchema.optional(),renderType:renderTypeSchema.optional(),requestMethod:zod.z.string().optional(),requestPath:zod.z.string().optional(),revalidateReason:revalidateReasonSchema.optional(),routePath:zod.z.string().optional(),routeType:routeTypeSchema.optional(),routerKind:routerKindSchema.optional(),runtime:zod.z.literal(`nextjs`)}).meta({id:`NextjsContext`,title:`NextjsContext`,description:`Request context for the Next.js runtime.`});exports.nextjsContextSchema=nextjsContextSchema,exports.renderSourceSchema=renderSourceSchema,exports.renderTypeSchema=renderTypeSchema,exports.revalidateReasonSchema=revalidateReasonSchema,exports.routeTypeSchema=routeTypeSchema,exports.routerKindSchema=routerKindSchema;
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/plugins/context/next.d.ts
4
+ declare const renderSourceSchema: z.ZodEnum<{
5
+ "react-server-components": "react-server-components";
6
+ "react-server-components-payload": "react-server-components-payload";
7
+ "server-rendering": "server-rendering";
8
+ }>;
9
+ declare const renderTypeSchema: z.ZodEnum<{
10
+ dynamic: "dynamic";
11
+ "dynamic-resume": "dynamic-resume";
12
+ }>;
13
+ declare const revalidateReasonSchema: z.ZodEnum<{
14
+ "on-demand": "on-demand";
15
+ stale: "stale";
16
+ }>;
17
+ declare const routeTypeSchema: z.ZodEnum<{
18
+ action: "action";
19
+ middleware: "middleware";
20
+ proxy: "proxy";
21
+ render: "render";
22
+ route: "route";
23
+ }>;
24
+ declare const routerKindSchema: z.ZodEnum<{
25
+ "App Router": "App Router";
26
+ "Pages Router": "Pages Router";
27
+ }>;
28
+ declare const nextjsContextSchema: z.ZodObject<{
29
+ errorDigest: z.ZodOptional<z.ZodString>;
30
+ renderSource: z.ZodOptional<z.ZodEnum<{
31
+ "react-server-components": "react-server-components";
32
+ "react-server-components-payload": "react-server-components-payload";
33
+ "server-rendering": "server-rendering";
34
+ }>>;
35
+ renderType: z.ZodOptional<z.ZodEnum<{
36
+ dynamic: "dynamic";
37
+ "dynamic-resume": "dynamic-resume";
38
+ }>>;
39
+ requestMethod: z.ZodOptional<z.ZodString>;
40
+ requestPath: z.ZodOptional<z.ZodString>;
41
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
42
+ "on-demand": "on-demand";
43
+ stale: "stale";
44
+ }>>;
45
+ routePath: z.ZodOptional<z.ZodString>;
46
+ routeType: z.ZodOptional<z.ZodEnum<{
47
+ action: "action";
48
+ middleware: "middleware";
49
+ proxy: "proxy";
50
+ render: "render";
51
+ route: "route";
52
+ }>>;
53
+ routerKind: z.ZodOptional<z.ZodEnum<{
54
+ "App Router": "App Router";
55
+ "Pages Router": "Pages Router";
56
+ }>>;
57
+ runtime: z.ZodLiteral<"nextjs">;
58
+ }, z.core.$strip>;
59
+ type NextjsContext = z.infer<typeof nextjsContextSchema>;
60
+ //#endregion
61
+ export { NextjsContext, nextjsContextSchema, renderSourceSchema, renderTypeSchema, revalidateReasonSchema, routeTypeSchema, routerKindSchema };
62
+ //# sourceMappingURL=next.d.cts.map
@@ -58,4 +58,5 @@ declare const nextjsContextSchema: z.ZodObject<{
58
58
  }, z.core.$strip>;
59
59
  type NextjsContext = z.infer<typeof nextjsContextSchema>;
60
60
  //#endregion
61
- export { NextjsContext, nextjsContextSchema, renderSourceSchema, renderTypeSchema, revalidateReasonSchema, routeTypeSchema, routerKindSchema };
61
+ export { NextjsContext, nextjsContextSchema, renderSourceSchema, renderTypeSchema, revalidateReasonSchema, routeTypeSchema, routerKindSchema };
62
+ //# sourceMappingURL=next.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).meta({id:`RenderSource`,title:`RenderSource`}),n=e.enum([`dynamic`,`dynamic-resume`]).meta({id:`RenderType`,title:`RenderType`}),r=e.enum([`on-demand`,`stale`]).meta({id:`RevalidateReason`,title:`RevalidateReason`}),i=e.enum([`render`,`route`,`action`,`middleware`,`proxy`]).meta({id:`RouteType`,title:`RouteType`}),a=e.enum([`Pages Router`,`App Router`]).meta({id:`RouterKind`,title:`RouterKind`}),o=e.object({errorDigest:e.string().optional(),renderSource:t.optional(),renderType:n.optional(),requestMethod:e.string().optional(),requestPath:e.string().optional(),revalidateReason:r.optional(),routePath:e.string().optional(),routeType:i.optional(),routerKind:a.optional(),runtime:e.literal(`nextjs`)}).meta({id:`NextjsContext`,title:`NextjsContext`,description:`Request context for the Next.js runtime.`});export{o as nextjsContextSchema,t as renderSourceSchema,n as renderTypeSchema,r as revalidateReasonSchema,i as routeTypeSchema,a as routerKindSchema};
1
+ import{z}from"zod";const renderSourceSchema=z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).meta({id:`RenderSource`,title:`RenderSource`}),renderTypeSchema=z.enum([`dynamic`,`dynamic-resume`]).meta({id:`RenderType`,title:`RenderType`}),revalidateReasonSchema=z.enum([`on-demand`,`stale`]).meta({id:`RevalidateReason`,title:`RevalidateReason`}),routeTypeSchema=z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).meta({id:`RouteType`,title:`RouteType`}),routerKindSchema=z.enum([`Pages Router`,`App Router`]).meta({id:`RouterKind`,title:`RouterKind`}),nextjsContextSchema=z.object({errorDigest:z.string().optional(),renderSource:renderSourceSchema.optional(),renderType:renderTypeSchema.optional(),requestMethod:z.string().optional(),requestPath:z.string().optional(),revalidateReason:revalidateReasonSchema.optional(),routePath:z.string().optional(),routeType:routeTypeSchema.optional(),routerKind:routerKindSchema.optional(),runtime:z.literal(`nextjs`)}).meta({id:`NextjsContext`,title:`NextjsContext`,description:`Request context for the Next.js runtime.`});export{nextjsContextSchema,renderSourceSchema,renderTypeSchema,revalidateReasonSchema,routeTypeSchema,routerKindSchema};
2
+ //# sourceMappingURL=next.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const nodeContextSchema=zod.z.object({errorDigest:zod.z.string().optional(),requestMethod:zod.z.string().optional(),requestPath:zod.z.string().optional(),runtime:zod.z.literal(`node`)}).meta({id:`NodeContext`,title:`NodeContext`,description:`Request context for the Node.js runtime.`});exports.nodeContextSchema=nodeContextSchema;
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/sdk/plugins/context/node.d.ts
4
+ declare const nodeContextSchema: z.ZodObject<{
5
+ errorDigest: z.ZodOptional<z.ZodString>;
6
+ requestMethod: z.ZodOptional<z.ZodString>;
7
+ requestPath: z.ZodOptional<z.ZodString>;
8
+ runtime: z.ZodLiteral<"node">;
9
+ }, z.core.$strip>;
10
+ type NodeContext = z.infer<typeof nodeContextSchema>;
11
+ //#endregion
12
+ export { NodeContext, nodeContextSchema };
13
+ //# sourceMappingURL=node.d.cts.map
@@ -9,4 +9,5 @@ declare const nodeContextSchema: z.ZodObject<{
9
9
  }, z.core.$strip>;
10
10
  type NodeContext = z.infer<typeof nodeContextSchema>;
11
11
  //#endregion
12
- export { NodeContext, nodeContextSchema };
12
+ export { NodeContext, nodeContextSchema };
13
+ //# sourceMappingURL=node.d.mts.map
@@ -1 +1,2 @@
1
- import{z as e}from"zod";const t=e.object({errorDigest:e.string().optional(),requestMethod:e.string().optional(),requestPath:e.string().optional(),runtime:e.literal(`node`)}).meta({id:`NodeContext`,title:`NodeContext`,description:`Request context for the Node.js runtime.`});export{t as nodeContextSchema};
1
+ import{z}from"zod";const nodeContextSchema=z.object({errorDigest:z.string().optional(),requestMethod:z.string().optional(),requestPath:z.string().optional(),runtime:z.literal(`node`)}).meta({id:`NodeContext`,title:`NodeContext`,description:`Request context for the Node.js runtime.`});export{nodeContextSchema};
2
+ //# sourceMappingURL=node.mjs.map
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});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`}];exports.CONSENT_CATEGORIES=CONSENT_CATEGORIES,exports.PLUGIN_MANIFEST=PLUGIN_MANIFEST;