@interfere/types 0.2.0-alpha.2 → 0.2.0-alpha.5

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 (66) hide show
  1. package/dist/auth/public-token.d.mts +3 -3
  2. package/dist/auth/public-token.d.mts.map +1 -1
  3. package/dist/auth/public-token.mjs +2 -2
  4. package/dist/auth/public-token.mjs.map +1 -1
  5. package/dist/data/frame.d.mts +9 -9
  6. package/dist/data/frame.d.mts.map +1 -1
  7. package/dist/data/frame.mjs +7 -7
  8. package/dist/data/frame.mjs.map +1 -1
  9. package/dist/data/source-maps.d.mts +1 -1
  10. package/dist/data/source-maps.mjs +1 -1
  11. package/dist/data/source-maps.mjs.map +1 -1
  12. package/dist/data/surface.d.mts +1 -1
  13. package/dist/data/surface.mjs +1 -1
  14. package/dist/data/surface.mjs.map +1 -1
  15. package/dist/integrations/index.d.mts +6 -6
  16. package/dist/integrations/index.mjs +1 -1
  17. package/dist/integrations/index.mjs.map +1 -1
  18. package/dist/integrations/platforms/github.d.mts +1 -1
  19. package/dist/integrations/platforms/github.mjs +1 -1
  20. package/dist/integrations/platforms/github.mjs.map +1 -1
  21. package/dist/integrations/platforms/vercel.d.mts +1 -1
  22. package/dist/integrations/platforms/vercel.mjs +1 -1
  23. package/dist/integrations/platforms/vercel.mjs.map +1 -1
  24. package/dist/releases/definition.d.mts +1 -1
  25. package/dist/releases/definition.mjs +1 -1
  26. package/dist/releases/definition.mjs.map +1 -1
  27. package/dist/sdk/config.d.mts +5 -5
  28. package/dist/sdk/envelope.d.mts +5 -5
  29. package/dist/sdk/packages.d.mts +1 -1
  30. package/dist/sdk/packages.mjs +1 -1
  31. package/dist/sdk/packages.mjs.map +1 -1
  32. package/dist/sdk/plugins/context/browser.d.mts +1 -1
  33. package/dist/sdk/plugins/context/browser.mjs +1 -1
  34. package/dist/sdk/plugins/context/browser.mjs.map +1 -1
  35. package/dist/sdk/plugins/context/edge.d.mts +1 -1
  36. package/dist/sdk/plugins/context/edge.mjs +1 -1
  37. package/dist/sdk/plugins/context/edge.mjs.map +1 -1
  38. package/dist/sdk/plugins/context/next.d.mts +1 -1
  39. package/dist/sdk/plugins/context/next.mjs +1 -1
  40. package/dist/sdk/plugins/context/next.mjs.map +1 -1
  41. package/dist/sdk/plugins/lib/schemas.d.mts +2 -2
  42. package/dist/sdk/plugins/lib/schemas.d.mts.map +1 -1
  43. package/dist/sdk/plugins/manifest.d.mts +11 -1
  44. package/dist/sdk/plugins/manifest.d.mts.map +1 -1
  45. package/dist/sdk/plugins/manifest.mjs +11 -1
  46. package/dist/sdk/plugins/manifest.mjs.map +1 -1
  47. package/dist/sdk/plugins/payload/ai-summary.d.mts +9 -9
  48. package/dist/sdk/plugins/payload/ai-summary.d.mts.map +1 -1
  49. package/dist/sdk/plugins/payload/ai-summary.mjs +7 -7
  50. package/dist/sdk/plugins/payload/ai-summary.mjs.map +1 -1
  51. package/dist/sdk/plugins/payload/errors.d.mts +1 -1
  52. package/dist/sdk/plugins/payload/errors.mjs +1 -1
  53. package/dist/sdk/plugins/payload/errors.mjs.map +1 -1
  54. package/dist/sdk/plugins/payload/page-events.d.mts +15 -15
  55. package/dist/sdk/plugins/payload/page-events.d.mts.map +1 -1
  56. package/dist/sdk/plugins/payload/page-events.mjs +8 -8
  57. package/dist/sdk/plugins/payload/page-events.mjs.map +1 -1
  58. package/dist/sdk/plugins/payload/rage-click.d.mts +11 -11
  59. package/dist/sdk/plugins/payload/rage-click.d.mts.map +1 -1
  60. package/dist/sdk/plugins/payload/rage-click.mjs +9 -9
  61. package/dist/sdk/plugins/payload/rage-click.mjs.map +1 -1
  62. package/dist/sdk/runtime.d.mts +4 -2
  63. package/dist/sdk/runtime.d.mts.map +1 -1
  64. package/dist/sdk/runtime.mjs +2 -2
  65. package/dist/sdk/runtime.mjs.map +1 -1
  66. package/package.json +4 -4
@@ -1,9 +1,9 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/auth/public-token.d.ts
4
4
  declare const PUBLIC_TOKEN_PREFIX = "int_pub_";
5
5
  declare const PUBLIC_TOKEN_REGEX: RegExp;
6
- declare const publicTokenSchema: z$1.ZodString;
7
- type PublicToken = z$1.infer<typeof publicTokenSchema>;
6
+ declare const publicTokenSchema: z.ZodString;
7
+ type PublicToken = z.infer<typeof publicTokenSchema>;
8
8
  //#endregion
9
9
  export { PUBLIC_TOKEN_PREFIX, PUBLIC_TOKEN_REGEX, PublicToken, publicTokenSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"public-token.d.mts","names":[],"sources":["../../src/auth/public-token.ts"],"mappings":";;;cAEa,mBAAA;AAAA,cACA,kBAAA,EAAkB,MAAA;AAAA,cAElB,iBAAA,EAAiB,GAAA,CAAA,SAAA;AAAA,KAElB,WAAA,GAAc,GAAA,CAAE,KAAA,QAAa,iBAAA"}
1
+ {"version":3,"file":"public-token.d.mts","names":[],"sources":["../../src/auth/public-token.ts"],"mappings":";;;cAEa,mBAAA;AAAA,cACA,kBAAA,EAAkB,MAAA;AAAA,cAElB,iBAAA,EAAiB,CAAA,CAAA,SAAA;AAAA,KAElB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA"}
@@ -1,7 +1,7 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/auth/public-token.ts
3
3
  const PUBLIC_TOKEN_PREFIX = "int_pub_";
4
4
  const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;
5
- const publicTokenSchema = z$1.string().startsWith(PUBLIC_TOKEN_PREFIX);
5
+ const publicTokenSchema = z.string().startsWith(PUBLIC_TOKEN_PREFIX);
6
6
  //#endregion
7
7
  export { PUBLIC_TOKEN_PREFIX, PUBLIC_TOKEN_REGEX, publicTokenSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"public-token.mjs","names":["z"],"sources":["../../src/auth/public-token.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const PUBLIC_TOKEN_PREFIX = \"int_pub_\";\nexport const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;\n\nexport const publicTokenSchema = z.string().startsWith(PUBLIC_TOKEN_PREFIX);\n\nexport type PublicToken = z.infer<typeof publicTokenSchema>;\n"],"mappings":";;AAEA,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAElC,MAAa,oBAAoBA,IAAE,QAAQ,CAAC,WAAW,oBAAoB"}
1
+ {"version":3,"file":"public-token.mjs","names":[],"sources":["../../src/auth/public-token.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const PUBLIC_TOKEN_PREFIX = \"int_pub_\";\nexport const PUBLIC_TOKEN_REGEX = /^int_pub_([a-zA-Z0-9]+)$/;\n\nexport const publicTokenSchema = z.string().startsWith(PUBLIC_TOKEN_PREFIX);\n\nexport type PublicToken = z.infer<typeof publicTokenSchema>;\n"],"mappings":";;AAEA,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAElC,MAAa,oBAAoB,EAAE,QAAQ,CAAC,WAAW,oBAAoB"}
@@ -1,13 +1,13 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/data/frame.d.ts
4
- declare const ingestedFrame: z$1.ZodObject<{
5
- fileName: z$1.ZodOptional<z$1.ZodString>;
6
- functionName: z$1.ZodOptional<z$1.ZodString>;
7
- lineNumber: z$1.ZodOptional<z$1.ZodNumber>;
8
- columnNumber: z$1.ZodOptional<z$1.ZodNumber>;
9
- source: z$1.ZodOptional<z$1.ZodString>;
10
- }, z$1.core.$strip>;
11
- type IngestedFrame = z$1.infer<typeof ingestedFrame>;
4
+ declare const ingestedFrame: z.ZodObject<{
5
+ fileName: z.ZodOptional<z.ZodString>;
6
+ functionName: z.ZodOptional<z.ZodString>;
7
+ lineNumber: z.ZodOptional<z.ZodNumber>;
8
+ columnNumber: z.ZodOptional<z.ZodNumber>;
9
+ source: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ type IngestedFrame = z.infer<typeof ingestedFrame>;
12
12
  //#endregion
13
13
  export { IngestedFrame, ingestedFrame };
@@ -1 +1 @@
1
- {"version":3,"file":"frame.d.mts","names":[],"sources":["../../src/data/frame.ts"],"mappings":";;;cAEa,aAAA,EAAa,GAAA,CAAA,SAAA;;;;;;;KAQd,aAAA,GAAgB,GAAA,CAAE,KAAA,QAAa,aAAA"}
1
+ {"version":3,"file":"frame.d.mts","names":[],"sources":["../../src/data/frame.ts"],"mappings":";;;cAEa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;KAQd,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,aAAA"}
@@ -1,11 +1,11 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/data/frame.ts
3
- const ingestedFrame = z$1.object({
4
- fileName: z$1.string().optional(),
5
- functionName: z$1.string().optional(),
6
- lineNumber: z$1.number().optional(),
7
- columnNumber: z$1.number().optional(),
8
- source: z$1.string().optional()
3
+ const ingestedFrame = z.object({
4
+ fileName: z.string().optional(),
5
+ functionName: z.string().optional(),
6
+ lineNumber: z.number().optional(),
7
+ columnNumber: z.number().optional(),
8
+ source: z.string().optional()
9
9
  });
10
10
  //#endregion
11
11
  export { ingestedFrame };
@@ -1 +1 @@
1
- {"version":3,"file":"frame.mjs","names":["z"],"sources":["../../src/data/frame.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const ingestedFrame = z.object({\n fileName: z.string().optional(),\n functionName: z.string().optional(),\n lineNumber: z.number().optional(),\n columnNumber: z.number().optional(),\n source: z.string().optional(),\n});\n\nexport type IngestedFrame = z.infer<typeof ingestedFrame>;\n"],"mappings":";;AAEA,MAAa,gBAAgBA,IAAE,OAAO;CACpC,UAAUA,IAAE,QAAQ,CAAC,UAAU;CAC/B,cAAcA,IAAE,QAAQ,CAAC,UAAU;CACnC,YAAYA,IAAE,QAAQ,CAAC,UAAU;CACjC,cAAcA,IAAE,QAAQ,CAAC,UAAU;CACnC,QAAQA,IAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC"}
1
+ {"version":3,"file":"frame.mjs","names":[],"sources":["../../src/data/frame.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const ingestedFrame = z.object({\n fileName: z.string().optional(),\n functionName: z.string().optional(),\n lineNumber: z.number().optional(),\n columnNumber: z.number().optional(),\n source: z.string().optional(),\n});\n\nexport type IngestedFrame = z.infer<typeof ingestedFrame>;\n"],"mappings":";;AAEA,MAAa,gBAAgB,EAAE,OAAO;CACpC,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/data/source-maps.d.ts
4
4
  declare const getSourceMapPath: ({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/data/source-maps.ts
3
3
  const getSourceMapPath = ({ organizationId, surfaceId, buildId, relativePath }) => `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/${relativePath}`;
4
4
  const sourceMapManifestEntrySchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"source-maps.mjs","names":[],"sources":["../../src/data/source-maps.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const getSourceMapPath = ({\n organizationId,\n surfaceId,\n buildId,\n relativePath,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n relativePath: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/${relativePath}`;\n\nexport const sourceMapManifestEntrySchema = z.object({\n relativePath: z.string(),\n generatedFile: z.string(),\n hash: z.string(),\n blobUrl: z.string(),\n});\n\nexport type SourceMapManifestEntry = z.infer<\n typeof sourceMapManifestEntrySchema\n>;\n\nexport const sourceMapManifestSchema = z.object({\n buildId: z.string(),\n releaseId: z.string().optional(),\n surfaceId: z.string(),\n organizationId: z.string(),\n createdAt: z.number(),\n files: z.array(sourceMapManifestEntrySchema),\n});\n\nexport type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;\n\nexport const getManifestPath = ({\n organizationId,\n surfaceId,\n buildId,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/_manifest.json`;\n"],"mappings":";;AAEA,MAAa,oBAAoB,EAC/B,gBACA,WACA,SACA,mBAOA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ,GAAG;AAEhF,MAAa,+BAA+B,EAAE,OAAO;CACnD,cAAc,EAAE,QAAQ;CACxB,eAAe,EAAE,QAAQ;CACzB,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,QAAQ;CACpB,CAAC;AAMF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,SAAS,EAAE,QAAQ;CACnB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ;CACrB,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,OAAO,EAAE,MAAM,6BAA6B;CAC7C,CAAC;AAIF,MAAa,mBAAmB,EAC9B,gBACA,WACA,cAMA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ"}
1
+ {"version":3,"file":"source-maps.mjs","names":[],"sources":["../../src/data/source-maps.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const getSourceMapPath = ({\n organizationId,\n surfaceId,\n buildId,\n relativePath,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n relativePath: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/${relativePath}`;\n\nexport const sourceMapManifestEntrySchema = z.object({\n relativePath: z.string(),\n generatedFile: z.string(),\n hash: z.string(),\n blobUrl: z.string(),\n});\n\nexport type SourceMapManifestEntry = z.infer<\n typeof sourceMapManifestEntrySchema\n>;\n\nexport const sourceMapManifestSchema = z.object({\n buildId: z.string(),\n releaseId: z.string().optional(),\n surfaceId: z.string(),\n organizationId: z.string(),\n createdAt: z.number(),\n files: z.array(sourceMapManifestEntrySchema),\n});\n\nexport type SourceMapManifest = z.infer<typeof sourceMapManifestSchema>;\n\nexport const getManifestPath = ({\n organizationId,\n surfaceId,\n buildId,\n}: {\n organizationId: string;\n surfaceId: string;\n buildId: string;\n}) =>\n `source-maps/orgs/${organizationId}/surfaces/${surfaceId}/builds/${buildId}/_manifest.json`;\n"],"mappings":";;AAEA,MAAa,oBAAoB,EAC/B,gBACA,WACA,SACA,mBAOA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ,GAAG;AAEhF,MAAa,+BAA+B,EAAE,OAAO;CACnD,cAAc,EAAE,QAAQ;CACxB,eAAe,EAAE,QAAQ;CACzB,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,QAAQ;CACpB,CAAC;AAMF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,SAAS,EAAE,QAAQ;CACnB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EAAE,QAAQ;CACrB,gBAAgB,EAAE,QAAQ;CAC1B,WAAW,EAAE,QAAQ;CACrB,OAAO,EAAE,MAAM,6BAA6B;CAC7C,CAAC;AAIF,MAAa,mBAAmB,EAC9B,gBACA,WACA,cAMA,oBAAoB,eAAe,YAAY,UAAU,UAAU,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/data/surface.d.ts
4
4
  declare const surfaceSlugSchema: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  const surfaceSlugSchema = z.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, { message: "Surface slug must be lowercase letters, numbers, and hyphens" });
3
3
  //#endregion
4
4
  export { surfaceSlugSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"surface.mjs","names":[],"sources":["../../src/data/surface.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst SURFACE_SLUG_MAX_LENGTH = 255;\n\nexport const surfaceSlugSchema = z\n .string()\n .min(1)\n .max(SURFACE_SLUG_MAX_LENGTH)\n .regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, {\n message: \"Surface slug must be lowercase letters, numbers, and hyphens\",\n });\n\nexport type SurfaceSlug = z.infer<typeof surfaceSlugSchema>;\n"],"mappings":";AAIA,MAAa,oBAAoB,EAC9B,QAAQ,CACR,IAAI,EAAE,CACN,IAL6B,IAKD,CAC5B,MAAM,8BAA8B,EACnC,SAAS,gEACV,CAAC"}
1
+ {"version":3,"file":"surface.mjs","names":[],"sources":["../../src/data/surface.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nconst SURFACE_SLUG_MAX_LENGTH = 255;\n\nexport const surfaceSlugSchema = z\n .string()\n .min(1)\n .max(SURFACE_SLUG_MAX_LENGTH)\n .regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, {\n message: \"Surface slug must be lowercase letters, numbers, and hyphens\",\n });\n\nexport type SurfaceSlug = z.infer<typeof surfaceSlugSchema>;\n"],"mappings":";AAIA,MAAa,oBAAoB,EAC9B,QAAQ,CACR,IAAI,EAAE,CACN,IAL6B,IAKD,CAC5B,MAAM,8BAA8B,EACnC,SAAS,gEACV,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/integrations/index.d.ts
4
4
  declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -26,22 +26,22 @@ declare const destinationProviderSchema: z.ZodEnum<{
26
26
  }>;
27
27
  type DestinationProvider = z.infer<typeof destinationProviderSchema>;
28
28
  declare const releaseSourceIdEnvKeySchema: z.ZodEnum<{
29
- VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
30
- GITHUB_SHA: "GITHUB_SHA";
31
29
  NEXT_PUBLIC_INTERFERE_BUILD_ID: "NEXT_PUBLIC_INTERFERE_BUILD_ID";
32
30
  INTERFERE_SOURCE_ID: "INTERFERE_SOURCE_ID";
33
31
  NEXT_BUILD_ID: "NEXT_BUILD_ID";
32
+ VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
33
+ GITHUB_SHA: "GITHUB_SHA";
34
34
  }>;
35
35
  type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;
36
- declare const releaseSourceIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID")[];
36
+ declare const releaseSourceIdEnvKeys: ("NEXT_PUBLIC_INTERFERE_BUILD_ID" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA")[];
37
37
  declare const releaseDestinationIdEnvKeySchema: z.ZodEnum<{
38
38
  VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
39
39
  GITHUB_SHA: "GITHUB_SHA";
40
- VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
41
40
  NEXT_PUBLIC_INTERFERE_RELEASE_ID: "NEXT_PUBLIC_INTERFERE_RELEASE_ID";
42
41
  INTERFERE_DESTINATION_ID: "INTERFERE_DESTINATION_ID";
42
+ VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
43
43
  }>;
44
44
  type ReleaseDestinationIdEnvKey = z.infer<typeof releaseDestinationIdEnvKeySchema>;
45
- declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "VERCEL_DEPLOYMENT_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "INTERFERE_DESTINATION_ID")[];
45
+ declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "INTERFERE_DESTINATION_ID" | "VERCEL_DEPLOYMENT_ID")[];
46
46
  //#endregion
47
47
  export { DestinationProvider, ReleaseDestinationIdEnvKey, ReleaseDestinationMetadata, ReleaseSourceIdEnvKey, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, releaseDestinationIdEnvKeySchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeySchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema };
@@ -1,6 +1,6 @@
1
1
  import { githubIntegration, githubSourceIdEnvKeys } from "./platforms/github.mjs";
2
2
  import { vercelDestinationIdEnvKeys, vercelIntegration } from "./platforms/vercel.mjs";
3
- import { z } from "zod";
3
+ import { z } from "zod/v4";
4
4
  //#region src/integrations/index.ts
5
5
  const releaseSourceMetadataSchema = z.discriminatedUnion("provider", [githubIntegration.shape.source.extend({ provider: githubIntegration.shape.name })]);
6
6
  const baseDestinationMetadataSchema = z.object({ environment: z.string().nullable() });
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/integrations/index.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n githubIntegration,\n githubSourceIdEnvKeys,\n} from \"./platforms/github.js\";\nimport {\n vercelDestinationIdEnvKeys,\n vercelIntegration,\n} from \"./platforms/vercel.js\";\n\nexport const releaseSourceMetadataSchema = z.discriminatedUnion(\"provider\", [\n githubIntegration.shape.source.extend({\n provider: githubIntegration.shape.name,\n }),\n]);\n\nexport type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;\n\nconst baseDestinationMetadataSchema = z.object({\n environment: z.string().nullable(),\n});\n\nexport const releaseDestinationMetadataSchema = z.discriminatedUnion(\n \"provider\",\n [\n baseDestinationMetadataSchema\n .extend(vercelIntegration.shape.destination.shape)\n .extend({\n provider: vercelIntegration.shape.name,\n }),\n ]\n);\n\nexport type ReleaseDestinationMetadata = z.infer<\n typeof releaseDestinationMetadataSchema\n>;\n\nexport const sourceProviderSchema = z.enum([\n githubIntegration.shape.name.value,\n]);\nexport type SourceProvider = z.infer<typeof sourceProviderSchema>;\n\nexport const destinationProviderSchema = z.enum([\n vercelIntegration.shape.name.value,\n]);\nexport type DestinationProvider = z.infer<typeof destinationProviderSchema>;\n\nexport const releaseSourceIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_BUILD_ID\",\n \"INTERFERE_SOURCE_ID\",\n \"NEXT_BUILD_ID\",\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;\nexport const releaseSourceIdEnvKeys = releaseSourceIdEnvKeySchema.options;\n\nexport const releaseDestinationIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_RELEASE_ID\",\n \"INTERFERE_DESTINATION_ID\",\n ...vercelDestinationIdEnvKeys,\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseDestinationIdEnvKey = z.infer<\n typeof releaseDestinationIdEnvKeySchema\n>;\nexport const releaseDestinationIdEnvKeys =\n releaseDestinationIdEnvKeySchema.options;\n"],"mappings":";;;;AAWA,MAAa,8BAA8B,EAAE,mBAAmB,YAAY,CAC1E,kBAAkB,MAAM,OAAO,OAAO,EACpC,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACH,CAAC;AAIF,MAAM,gCAAgC,EAAE,OAAO,EAC7C,aAAa,EAAE,QAAQ,CAAC,UAAU,EACnC,CAAC;AAEF,MAAa,mCAAmC,EAAE,mBAChD,YACA,CACE,8BACG,OAAO,kBAAkB,MAAM,YAAY,MAAM,CACjD,OAAO,EACN,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACL,CACF;AAMD,MAAa,uBAAuB,EAAE,KAAK,CACzC,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,4BAA4B,EAAE,KAAK,CAC9C,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,8BAA8B,EAAE,KAAK;CAChD;CACA;CACA;CACA,GAAG;CACJ,CAAC;AAEF,MAAa,yBAAyB,4BAA4B;AAElE,MAAa,mCAAmC,EAAE,KAAK;CACrD;CACA;CACA,GAAG;CACH,GAAG;CACJ,CAAC;AAIF,MAAa,8BACX,iCAAiC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/integrations/index.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport {\n githubIntegration,\n githubSourceIdEnvKeys,\n} from \"./platforms/github.js\";\nimport {\n vercelDestinationIdEnvKeys,\n vercelIntegration,\n} from \"./platforms/vercel.js\";\n\nexport const releaseSourceMetadataSchema = z.discriminatedUnion(\"provider\", [\n githubIntegration.shape.source.extend({\n provider: githubIntegration.shape.name,\n }),\n]);\n\nexport type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;\n\nconst baseDestinationMetadataSchema = z.object({\n environment: z.string().nullable(),\n});\n\nexport const releaseDestinationMetadataSchema = z.discriminatedUnion(\n \"provider\",\n [\n baseDestinationMetadataSchema\n .extend(vercelIntegration.shape.destination.shape)\n .extend({\n provider: vercelIntegration.shape.name,\n }),\n ]\n);\n\nexport type ReleaseDestinationMetadata = z.infer<\n typeof releaseDestinationMetadataSchema\n>;\n\nexport const sourceProviderSchema = z.enum([\n githubIntegration.shape.name.value,\n]);\nexport type SourceProvider = z.infer<typeof sourceProviderSchema>;\n\nexport const destinationProviderSchema = z.enum([\n vercelIntegration.shape.name.value,\n]);\nexport type DestinationProvider = z.infer<typeof destinationProviderSchema>;\n\nexport const releaseSourceIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_BUILD_ID\",\n \"INTERFERE_SOURCE_ID\",\n \"NEXT_BUILD_ID\",\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;\nexport const releaseSourceIdEnvKeys = releaseSourceIdEnvKeySchema.options;\n\nexport const releaseDestinationIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_RELEASE_ID\",\n \"INTERFERE_DESTINATION_ID\",\n ...vercelDestinationIdEnvKeys,\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseDestinationIdEnvKey = z.infer<\n typeof releaseDestinationIdEnvKeySchema\n>;\nexport const releaseDestinationIdEnvKeys =\n releaseDestinationIdEnvKeySchema.options;\n"],"mappings":";;;;AAWA,MAAa,8BAA8B,EAAE,mBAAmB,YAAY,CAC1E,kBAAkB,MAAM,OAAO,OAAO,EACpC,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACH,CAAC;AAIF,MAAM,gCAAgC,EAAE,OAAO,EAC7C,aAAa,EAAE,QAAQ,CAAC,UAAU,EACnC,CAAC;AAEF,MAAa,mCAAmC,EAAE,mBAChD,YACA,CACE,8BACG,OAAO,kBAAkB,MAAM,YAAY,MAAM,CACjD,OAAO,EACN,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACL,CACF;AAMD,MAAa,uBAAuB,EAAE,KAAK,CACzC,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,4BAA4B,EAAE,KAAK,CAC9C,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,8BAA8B,EAAE,KAAK;CAChD;CACA;CACA;CACA,GAAG;CACJ,CAAC;AAEF,MAAa,yBAAyB,4BAA4B;AAElE,MAAa,mCAAmC,EAAE,KAAK;CACrD;CACA;CACA,GAAG;CACH,GAAG;CACJ,CAAC;AAIF,MAAa,8BACX,iCAAiC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/integrations/platforms/github.d.ts
4
4
  declare const githubSourceIdEnvKeySchema: z.ZodEnum<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/integrations/platforms/github.ts
3
3
  const githubSourceIdEnvKeySchema = z.enum(["VERCEL_GIT_COMMIT_SHA", "GITHUB_SHA"]);
4
4
  const githubSourceIdEnvKeys = githubSourceIdEnvKeySchema.options;
@@ -1 +1 @@
1
- {"version":3,"file":"github.mjs","names":[],"sources":["../../../src/integrations/platforms/github.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const githubSourceIdEnvKeySchema = z.enum([\n \"VERCEL_GIT_COMMIT_SHA\",\n \"GITHUB_SHA\",\n]);\nexport type GithubSourceIdEnvKey = z.infer<typeof githubSourceIdEnvKeySchema>;\nexport const githubSourceIdEnvKeys = githubSourceIdEnvKeySchema.options;\n\nexport const githubIntegration = z.object({\n name: z.literal(\"github\"),\n metadata: z.object({\n accountType: z.string(),\n repositories: z.record(z.string(), z.string()),\n installationUrl: z.string().nullable(),\n }),\n source: z.object({\n commitMessage: z.string(),\n branch: z.string(),\n commitSha: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,6BAA6B,EAAE,KAAK,CAC/C,yBACA,aACD,CAAC;AAEF,MAAa,wBAAwB,2BAA2B;AAEhE,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,aAAa,EAAE,QAAQ;EACvB,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;EAC9C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACvC,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,eAAe,EAAE,QAAQ;EACzB,QAAQ,EAAE,QAAQ;EAClB,WAAW,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"github.mjs","names":[],"sources":["../../../src/integrations/platforms/github.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const githubSourceIdEnvKeySchema = z.enum([\n \"VERCEL_GIT_COMMIT_SHA\",\n \"GITHUB_SHA\",\n]);\nexport type GithubSourceIdEnvKey = z.infer<typeof githubSourceIdEnvKeySchema>;\nexport const githubSourceIdEnvKeys = githubSourceIdEnvKeySchema.options;\n\nexport const githubIntegration = z.object({\n name: z.literal(\"github\"),\n metadata: z.object({\n accountType: z.string(),\n repositories: z.record(z.string(), z.string()),\n installationUrl: z.string().nullable(),\n }),\n source: z.object({\n commitMessage: z.string(),\n branch: z.string(),\n commitSha: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,6BAA6B,EAAE,KAAK,CAC/C,yBACA,aACD,CAAC;AAEF,MAAa,wBAAwB,2BAA2B;AAEhE,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,aAAa,EAAE,QAAQ;EACvB,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;EAC9C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACvC,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,eAAe,EAAE,QAAQ;EACzB,QAAQ,EAAE,QAAQ;EAClB,WAAW,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC;CACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/integrations/platforms/vercel.d.ts
4
4
  declare const vercelDestinationIdEnvKeySchema: z.ZodEnum<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/integrations/platforms/vercel.ts
3
3
  const vercelDestinationIdEnvKeySchema = z.enum(["VERCEL_DEPLOYMENT_ID"]);
4
4
  const vercelDestinationIdEnvKeys = vercelDestinationIdEnvKeySchema.options;
@@ -1 +1 @@
1
- {"version":3,"file":"vercel.mjs","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const vercelDestinationIdEnvKeySchema = z.enum([\"VERCEL_DEPLOYMENT_ID\"]);\nexport type VercelDestinationIdEnvKey = z.infer<\n typeof vercelDestinationIdEnvKeySchema\n>;\nexport const vercelDestinationIdEnvKeys =\n vercelDestinationIdEnvKeySchema.options;\n\nexport const vercelIntegration = z.object({\n name: z.literal(\"vercel\"),\n metadata: z.object({\n teamId: z.string().nullable(),\n teamSlug: z.string().nullable(),\n installationUrl: z.string().nullable(),\n projectId: z.string().nullable(),\n productionUrl: z.string().nullable(),\n region: z.string().nullable(),\n skewProtectionEnabled: z.boolean().nullable(),\n }),\n destination: z.object({\n deploymentId: z.string().nullable(),\n deploymentUrl: z.string().nullable(),\n environmentName: z.string().nullable(),\n environmentTarget: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,kCAAkC,EAAE,KAAK,CAAC,uBAAuB,CAAC;AAI/E,MAAa,6BACX,gCAAgC;AAElC,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;EAC/B,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,uBAAuB,EAAE,SAAS,CAAC,UAAU;EAC9C,CAAC;CACF,aAAa,EAAE,OAAO;EACpB,cAAc,EAAE,QAAQ,CAAC,UAAU;EACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;EACzC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"vercel.mjs","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const vercelDestinationIdEnvKeySchema = z.enum([\"VERCEL_DEPLOYMENT_ID\"]);\nexport type VercelDestinationIdEnvKey = z.infer<\n typeof vercelDestinationIdEnvKeySchema\n>;\nexport const vercelDestinationIdEnvKeys =\n vercelDestinationIdEnvKeySchema.options;\n\nexport const vercelIntegration = z.object({\n name: z.literal(\"vercel\"),\n metadata: z.object({\n teamId: z.string().nullable(),\n teamSlug: z.string().nullable(),\n installationUrl: z.string().nullable(),\n projectId: z.string().nullable(),\n productionUrl: z.string().nullable(),\n region: z.string().nullable(),\n skewProtectionEnabled: z.boolean().nullable(),\n }),\n destination: z.object({\n deploymentId: z.string().nullable(),\n deploymentUrl: z.string().nullable(),\n environmentName: z.string().nullable(),\n environmentTarget: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,kCAAkC,EAAE,KAAK,CAAC,uBAAuB,CAAC;AAI/E,MAAa,6BACX,gCAAgC;AAElC,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;EAC/B,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,uBAAuB,EAAE,SAAS,CAAC,UAAU;EAC9C,CAAC;CACF,aAAa,EAAE,OAAO;EACpB,cAAc,EAAE,QAAQ,CAAC,UAAU;EACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;EACzC,CAAC;CACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/releases/definition.d.ts
4
4
  declare const releaseStatusSchema: z.ZodEnum<{
@@ -1,5 +1,5 @@
1
1
  import { releaseDestinationMetadataSchema, releaseSourceMetadataSchema } from "../integrations/index.mjs";
2
- import { z } from "zod";
2
+ import { z } from "zod/v4";
3
3
  //#region src/releases/definition.ts
4
4
  const releaseStatusSchema = z.enum([
5
5
  "pending",
@@ -1 +1 @@
1
- {"version":3,"file":"definition.mjs","names":[],"sources":["../../src/releases/definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport {\n releaseDestinationMetadataSchema,\n releaseSourceMetadataSchema,\n} from \"../integrations\";\n\nexport const releaseStatusSchema = z.enum([\n \"pending\",\n \"uploading\",\n \"processing\",\n \"ready\",\n \"failed\",\n]);\n\nexport const createReleaseRequest = z.object({\n source: releaseSourceMetadataSchema,\n destination: releaseDestinationMetadataSchema.nullable(),\n buildId: z.string(),\n});\n\nexport type CreateReleaseRequest = z.infer<typeof createReleaseRequest>;\n\nexport const createReleaseResponse = z.object({\n org: z.object({\n id: z.string(),\n slug: z.string(),\n }),\n surface: z.object({\n id: z.string(),\n slug: z.string(),\n }),\n source: z.object({\n id: z.string(),\n }),\n destination: z.object({\n id: z.string(),\n slug: z.string(),\n environment: z.string().nullable(),\n }),\n build: z.object({\n hash: z.string(),\n }),\n});\n\nexport type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;\n"],"mappings":";;;AAOA,MAAa,sBAAsB,EAAE,KAAK;CACxC;CACA;CACA;CACA;CACA;CACD,CAAC;AAEF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ;CACR,aAAa,iCAAiC,UAAU;CACxD,SAAS,EAAE,QAAQ;CACpB,CAAC;AAIF,MAAa,wBAAwB,EAAE,OAAO;CAC5C,KAAK,EAAE,OAAO;EACZ,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EACjB,CAAC;CACF,SAAS,EAAE,OAAO;EAChB,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EACjB,CAAC;CACF,QAAQ,EAAE,OAAO,EACf,IAAI,EAAE,QAAQ,EACf,CAAC;CACF,aAAa,EAAE,OAAO;EACpB,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EAChB,aAAa,EAAE,QAAQ,CAAC,UAAU;EACnC,CAAC;CACF,OAAO,EAAE,OAAO,EACd,MAAM,EAAE,QAAQ,EACjB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"definition.mjs","names":[],"sources":["../../src/releases/definition.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport {\n releaseDestinationMetadataSchema,\n releaseSourceMetadataSchema,\n} from \"../integrations\";\n\nexport const releaseStatusSchema = z.enum([\n \"pending\",\n \"uploading\",\n \"processing\",\n \"ready\",\n \"failed\",\n]);\n\nexport const createReleaseRequest = z.object({\n source: releaseSourceMetadataSchema,\n destination: releaseDestinationMetadataSchema.nullable(),\n buildId: z.string(),\n});\n\nexport type CreateReleaseRequest = z.infer<typeof createReleaseRequest>;\n\nexport const createReleaseResponse = z.object({\n org: z.object({\n id: z.string(),\n slug: z.string(),\n }),\n surface: z.object({\n id: z.string(),\n slug: z.string(),\n }),\n source: z.object({\n id: z.string(),\n }),\n destination: z.object({\n id: z.string(),\n slug: z.string(),\n environment: z.string().nullable(),\n }),\n build: z.object({\n hash: z.string(),\n }),\n});\n\nexport type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;\n"],"mappings":";;;AAOA,MAAa,sBAAsB,EAAE,KAAK;CACxC;CACA;CACA;CACA;CACA;CACD,CAAC;AAEF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ;CACR,aAAa,iCAAiC,UAAU;CACxD,SAAS,EAAE,QAAQ;CACpB,CAAC;AAIF,MAAa,wBAAwB,EAAE,OAAO;CAC5C,KAAK,EAAE,OAAO;EACZ,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EACjB,CAAC;CACF,SAAS,EAAE,OAAO;EAChB,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EACjB,CAAC;CACF,QAAQ,EAAE,OAAO,EACf,IAAI,EAAE,QAAQ,EACf,CAAC;CACF,aAAa,EAAE,OAAO;EACpB,IAAI,EAAE,QAAQ;EACd,MAAM,EAAE,QAAQ;EAChB,aAAa,EAAE,QAAQ,CAAC,UAAU;EACnC,CAAC;CACF,OAAO,EAAE,OAAO,EACd,MAAM,EAAE,QAAQ,EACjB,CAAC;CACH,CAAC"}
@@ -36,8 +36,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
36
36
  }>>;
37
37
  runtime: z.ZodNullable<z.ZodEnum<{
38
38
  browser: "browser";
39
- node: "node";
40
39
  edge: "edge";
40
+ node: "node";
41
41
  }>>;
42
42
  }, z.core.$strip>;
43
43
  batch: z.ZodDefault<z.ZodObject<{
@@ -65,7 +65,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
65
65
  buildId: string | null;
66
66
  releaseId: string | null;
67
67
  environment: "development" | "preview" | "production" | null;
68
- runtime: "browser" | "node" | "edge" | null;
68
+ runtime: "browser" | "edge" | "node" | null;
69
69
  };
70
70
  batch: {
71
71
  size: number;
@@ -89,7 +89,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
89
89
  buildId: string | null;
90
90
  releaseId: string | null;
91
91
  environment: "development" | "preview" | "production" | null;
92
- runtime: "browser" | "node" | "edge" | null;
92
+ runtime: "browser" | "edge" | "node" | null;
93
93
  };
94
94
  batch: {
95
95
  size: number;
@@ -114,7 +114,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
114
114
  buildId: string | null;
115
115
  releaseId: string | null;
116
116
  environment: "development" | "preview" | "production" | null;
117
- runtime: "browser" | "node" | "edge" | null;
117
+ runtime: "browser" | "edge" | "node" | null;
118
118
  };
119
119
  batch: {
120
120
  size: number;
@@ -149,8 +149,8 @@ declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
149
149
  }>>>;
150
150
  runtime: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
151
151
  browser: "browser";
152
- node: "node";
153
152
  edge: "edge";
153
+ node: "node";
154
154
  }>>>;
155
155
  }, z.core.$strip>>;
156
156
  batch: z.ZodOptional<z.ZodObject<{
@@ -12,10 +12,10 @@ type EnvelopeVersion = z.infer<typeof envelopeVersion>;
12
12
  * - "client": Session ID was set on the client (browser SDK)
13
13
  */
14
14
  declare const sessionSourceSchema: z.ZodOptional<z.ZodEnum<{
15
- client: "client";
16
15
  header: "header";
17
16
  async_context: "async_context";
18
17
  fallback: "fallback";
18
+ client: "client";
19
19
  }>>;
20
20
  type SessionSource = z.infer<typeof sessionSourceSchema>;
21
21
  declare const envelopeContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -172,15 +172,15 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
172
172
  releaseId: z.ZodNullable<z.ZodString>;
173
173
  runtime: z.ZodNullable<z.ZodEnum<{
174
174
  browser: "browser";
175
- node: "node";
176
175
  edge: "edge";
176
+ node: "node";
177
177
  }>>;
178
178
  sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
179
179
  sessionSource: z.ZodOptional<z.ZodEnum<{
180
- client: "client";
181
180
  header: "header";
182
181
  async_context: "async_context";
183
182
  fallback: "fallback";
183
+ client: "client";
184
184
  }>>;
185
185
  uuid: z.ZodUUID;
186
186
  v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
@@ -330,15 +330,15 @@ declare const stampedEnvelopeSchema: z.ZodIntersection<z.ZodIntersection<z.ZodOb
330
330
  releaseId: z.ZodNullable<z.ZodString>;
331
331
  runtime: z.ZodNullable<z.ZodEnum<{
332
332
  browser: "browser";
333
- node: "node";
334
333
  edge: "edge";
334
+ node: "node";
335
335
  }>>;
336
336
  sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
337
337
  sessionSource: z.ZodOptional<z.ZodEnum<{
338
- client: "client";
339
338
  header: "header";
340
339
  async_context: "async_context";
341
340
  fallback: "fallback";
341
+ client: "client";
342
342
  }>>;
343
343
  uuid: z.ZodUUID;
344
344
  v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/packages.d.ts
4
4
  declare const interferePackageSchema: z.ZodUnion<readonly [z.ZodLiteral<"react">, z.ZodLiteral<"next">, z.ZodString]>;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/packages.ts
3
3
  const interferePackageSchema = z.union([
4
4
  z.literal("react"),
@@ -1 +1 @@
1
- {"version":3,"file":"packages.mjs","names":[],"sources":["../../src/sdk/packages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const interferePackageSchema = z.union([\n z.literal(\"react\"),\n z.literal(\"next\"),\n z.string(),\n]);\n\nexport type InterferePackage = z.infer<typeof interferePackageSchema>;\n"],"mappings":";;AAEA,MAAa,yBAAyB,EAAE,MAAM;CAC5C,EAAE,QAAQ,QAAQ;CAClB,EAAE,QAAQ,OAAO;CACjB,EAAE,QAAQ;CACX,CAAC"}
1
+ {"version":3,"file":"packages.mjs","names":[],"sources":["../../src/sdk/packages.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const interferePackageSchema = z.union([\n z.literal(\"react\"),\n z.literal(\"next\"),\n z.string(),\n]);\n\nexport type InterferePackage = z.infer<typeof interferePackageSchema>;\n"],"mappings":";;AAEA,MAAa,yBAAyB,EAAE,MAAM;CAC5C,EAAE,QAAQ,QAAQ;CAClB,EAAE,QAAQ,OAAO;CACjB,EAAE,QAAQ;CACX,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/context/browser.d.ts
4
4
  declare const deviceMetadataSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/context/browser.ts
3
3
  const deviceMetadataSchema = z.object({
4
4
  browser: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"browser.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/browser.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const deviceMetadataSchema = z.object({\n browser: z.object({\n major: z.string().optional(),\n name: z.string().optional(),\n type: z.string().optional(),\n version: z.string().optional(),\n }),\n cpu: z.object({\n architecture: z.string().optional(),\n }),\n device: z.object({\n model: z.string().optional(),\n type: z.string().optional(),\n vendor: z.string().optional(),\n }),\n engine: z.object({\n name: z.string().optional(),\n version: z.string().optional(),\n }),\n os: z.object({\n name: z.string().optional(),\n version: z.string().optional(),\n }),\n ua: z.string(),\n});\n\nexport type DeviceMetadata = z.infer<typeof deviceMetadataSchema>;\n\nconst browserMetadataSchema = z.object({\n language: z.string().optional(),\n timezone: z.string().optional(),\n display: z.object({\n screen: z.object({\n height: z.number(),\n width: z.number(),\n orientation: z.string().optional(),\n }),\n }),\n});\n\nexport type BrowserMetadata = z.infer<typeof browserMetadataSchema>;\n\nexport const browserContextSchema = z.object({\n runtime: z.literal(\"browser\"),\n browser: browserMetadataSchema.nullable(),\n device: deviceMetadataSchema.nullable(),\n});\n\nexport type BrowserContext = z.infer<typeof browserContextSchema>;\n"],"mappings":";;AAEA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,SAAS,EAAE,OAAO;EAChB,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,KAAK,EAAE,OAAO,EACZ,cAAc,EAAE,QAAQ,CAAC,UAAU,EACpC,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC9B,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,IAAI,EAAE,OAAO;EACX,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,IAAI,EAAE,QAAQ;CACf,CAAC;AAIF,MAAM,wBAAwB,EAAE,OAAO;CACrC,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,SAAS,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO;EACf,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,QAAQ;EACjB,aAAa,EAAE,QAAQ,CAAC,UAAU;EACnC,CAAC,EACH,CAAC;CACH,CAAC;AAIF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,SAAS,EAAE,QAAQ,UAAU;CAC7B,SAAS,sBAAsB,UAAU;CACzC,QAAQ,qBAAqB,UAAU;CACxC,CAAC"}
1
+ {"version":3,"file":"browser.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/browser.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const deviceMetadataSchema = z.object({\n browser: z.object({\n major: z.string().optional(),\n name: z.string().optional(),\n type: z.string().optional(),\n version: z.string().optional(),\n }),\n cpu: z.object({\n architecture: z.string().optional(),\n }),\n device: z.object({\n model: z.string().optional(),\n type: z.string().optional(),\n vendor: z.string().optional(),\n }),\n engine: z.object({\n name: z.string().optional(),\n version: z.string().optional(),\n }),\n os: z.object({\n name: z.string().optional(),\n version: z.string().optional(),\n }),\n ua: z.string(),\n});\n\nexport type DeviceMetadata = z.infer<typeof deviceMetadataSchema>;\n\nconst browserMetadataSchema = z.object({\n language: z.string().optional(),\n timezone: z.string().optional(),\n display: z.object({\n screen: z.object({\n height: z.number(),\n width: z.number(),\n orientation: z.string().optional(),\n }),\n }),\n});\n\nexport type BrowserMetadata = z.infer<typeof browserMetadataSchema>;\n\nexport const browserContextSchema = z.object({\n runtime: z.literal(\"browser\"),\n browser: browserMetadataSchema.nullable(),\n device: deviceMetadataSchema.nullable(),\n});\n\nexport type BrowserContext = z.infer<typeof browserContextSchema>;\n"],"mappings":";;AAEA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,SAAS,EAAE,OAAO;EAChB,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,KAAK,EAAE,OAAO,EACZ,cAAc,EAAE,QAAQ,CAAC,UAAU,EACpC,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,OAAO,EAAE,QAAQ,CAAC,UAAU;EAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC9B,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,IAAI,EAAE,OAAO;EACX,MAAM,EAAE,QAAQ,CAAC,UAAU;EAC3B,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC/B,CAAC;CACF,IAAI,EAAE,QAAQ;CACf,CAAC;AAIF,MAAM,wBAAwB,EAAE,OAAO;CACrC,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,SAAS,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO;EACf,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,QAAQ;EACjB,aAAa,EAAE,QAAQ,CAAC,UAAU;EACnC,CAAC,EACH,CAAC;CACH,CAAC;AAIF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,SAAS,EAAE,QAAQ,UAAU;CAC7B,SAAS,sBAAsB,UAAU;CACzC,QAAQ,qBAAqB,UAAU;CACxC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/context/edge.d.ts
4
4
  declare const edgeContextSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/context/edge.ts
3
3
  const edgeContextSchema = z.object({ runtime: z.literal("edge") });
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"edge.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/edge.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const edgeContextSchema = z.object({\n runtime: z.literal(\"edge\"),\n});\n\nexport type EdgeContext = z.infer<typeof edgeContextSchema>;\n"],"mappings":";;AAEA,MAAa,oBAAoB,EAAE,OAAO,EACxC,SAAS,EAAE,QAAQ,OAAO,EAC3B,CAAC"}
1
+ {"version":3,"file":"edge.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/edge.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const edgeContextSchema = z.object({\n runtime: z.literal(\"edge\"),\n});\n\nexport type EdgeContext = z.infer<typeof edgeContextSchema>;\n"],"mappings":";;AAEA,MAAa,oBAAoB,EAAE,OAAO,EACxC,SAAS,EAAE,QAAQ,OAAO,EAC3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/context/next.d.ts
4
4
  declare const nextjsContextSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/context/next.ts
3
3
  const nextjsContextSchema = z.object({
4
4
  errorDigest: z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"next.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/next.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const nextjsContextSchema = z.object({\n errorDigest: z.string().optional(),\n renderSource: z\n .enum([\n \"react-server-components\",\n \"react-server-components-payload\",\n \"server-rendering\",\n ])\n .optional(),\n renderType: z.enum([\"dynamic\", \"dynamic-resume\"]).optional(),\n requestMethod: z.string().optional(),\n requestPath: z.string().optional(),\n revalidateReason: z.enum([\"on-demand\", \"stale\"]).optional(),\n routePath: z.string().optional(),\n routeType: z\n .enum([\"render\", \"route\", \"action\", \"middleware\", \"proxy\"])\n .optional(),\n routerKind: z.enum([\"Pages Router\", \"App Router\"]).optional(),\n runtime: z.literal(\"nextjs\"),\n});\n\nexport type NextjsContext = z.infer<typeof nextjsContextSchema>;\n"],"mappings":";;AAEA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EACX,KAAK;EACJ;EACA;EACA;EACD,CAAC,CACD,UAAU;CACb,YAAY,EAAE,KAAK,CAAC,WAAW,iBAAiB,CAAC,CAAC,UAAU;CAC5D,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,kBAAkB,EAAE,KAAK,CAAC,aAAa,QAAQ,CAAC,CAAC,UAAU;CAC3D,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EACR,KAAK;EAAC;EAAU;EAAS;EAAU;EAAc;EAAQ,CAAC,CAC1D,UAAU;CACb,YAAY,EAAE,KAAK,CAAC,gBAAgB,aAAa,CAAC,CAAC,UAAU;CAC7D,SAAS,EAAE,QAAQ,SAAS;CAC7B,CAAC"}
1
+ {"version":3,"file":"next.mjs","names":[],"sources":["../../../../src/sdk/plugins/context/next.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const nextjsContextSchema = z.object({\n errorDigest: z.string().optional(),\n renderSource: z\n .enum([\n \"react-server-components\",\n \"react-server-components-payload\",\n \"server-rendering\",\n ])\n .optional(),\n renderType: z.enum([\"dynamic\", \"dynamic-resume\"]).optional(),\n requestMethod: z.string().optional(),\n requestPath: z.string().optional(),\n revalidateReason: z.enum([\"on-demand\", \"stale\"]).optional(),\n routePath: z.string().optional(),\n routeType: z\n .enum([\"render\", \"route\", \"action\", \"middleware\", \"proxy\"])\n .optional(),\n routerKind: z.enum([\"Pages Router\", \"App Router\"]).optional(),\n runtime: z.literal(\"nextjs\"),\n});\n\nexport type NextjsContext = z.infer<typeof nextjsContextSchema>;\n"],"mappings":";;AAEA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EACX,KAAK;EACJ;EACA;EACA;EACD,CAAC,CACD,UAAU;CACb,YAAY,EAAE,KAAK,CAAC,WAAW,iBAAiB,CAAC,CAAC,UAAU;CAC5D,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,kBAAkB,EAAE,KAAK,CAAC,aAAa,QAAQ,CAAC,CAAC,UAAU;CAC3D,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,WAAW,EACR,KAAK;EAAC;EAAU;EAAS;EAAU;EAAc;EAAQ,CAAC,CAC1D,UAAU;CACb,YAAY,EAAE,KAAK,CAAC,gBAAgB,aAAa,CAAC,CAAC,UAAU;CAC7D,SAAS,EAAE,QAAQ,SAAS;CAC7B,CAAC"}
@@ -1,4 +1,4 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/lib/schemas.d.ts
4
4
  /**
@@ -8,7 +8,7 @@ import z$1 from "zod";
8
8
  interface PluginEventRegistration {
9
9
  readonly enrich: boolean;
10
10
  readonly name: string;
11
- readonly payloadSchema?: z$1.ZodTypeAny;
11
+ readonly payloadSchema?: z.ZodTypeAny;
12
12
  }
13
13
  /**
14
14
  * Shape of a single plugin registration.
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.mts","names":[],"sources":["../../../../src/sdk/plugins/lib/schemas.ts"],"mappings":";;;;;AAMA;;UAAiB,uBAAA;EAAA,SACN,MAAA;EAAA,SACA,IAAA;EAAA,SACA,aAAA,GAAgB,GAAA,CAAE,UAAA;AAAA;;;;UAMZ,kBAAA;EAAA,SACN,cAAA;EAAA,SACA,MAAA,WAAiB,uBAAA;EAAA,SACjB,IAAA;AAAA"}
1
+ {"version":3,"file":"schemas.d.mts","names":[],"sources":["../../../../src/sdk/plugins/lib/schemas.ts"],"mappings":";;;;;AAMA;;UAAiB,uBAAA;EAAA,SACN,MAAA;EAAA,SACA,IAAA;EAAA,SACA,aAAA,GAAgB,CAAA,CAAE,UAAA;AAAA;;;;UAMZ,kBAAA;EAAA,SACN,cAAA;EAAA,SACA,MAAA,WAAiB,uBAAA;EAAA,SACjB,IAAA;AAAA"}
@@ -1,5 +1,8 @@
1
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];
2
4
  declare const PLUGIN_MANIFEST: readonly [{
5
+ readonly consentCategory: "necessary";
3
6
  readonly defaultEnabled: true;
4
7
  readonly events: readonly [{
5
8
  readonly enrich: true;
@@ -7,10 +10,12 @@ declare const PLUGIN_MANIFEST: readonly [{
7
10
  }];
8
11
  readonly name: "errors";
9
12
  }, {
13
+ readonly consentCategory: "analytics";
10
14
  readonly defaultEnabled: true;
11
15
  readonly events: readonly [];
12
16
  readonly name: "fingerprint";
13
17
  }, {
18
+ readonly consentCategory: "analytics";
14
19
  readonly defaultEnabled: true;
15
20
  readonly events: readonly [{
16
21
  readonly enrich: true;
@@ -24,6 +29,7 @@ declare const PLUGIN_MANIFEST: readonly [{
24
29
  }];
25
30
  readonly name: "pageEvents";
26
31
  }, {
32
+ readonly consentCategory: "analytics";
27
33
  readonly defaultEnabled: true;
28
34
  readonly events: readonly [{
29
35
  readonly enrich: true;
@@ -31,6 +37,7 @@ declare const PLUGIN_MANIFEST: readonly [{
31
37
  }];
32
38
  readonly name: "rageClick";
33
39
  }, {
40
+ readonly consentCategory: "replay";
34
41
  readonly defaultEnabled: true;
35
42
  readonly events: readonly [{
36
43
  readonly enrich: false;
@@ -39,6 +46,9 @@ declare const PLUGIN_MANIFEST: readonly [{
39
46
  readonly name: "replay";
40
47
  }];
41
48
  type PluginManifest = typeof PLUGIN_MANIFEST;
49
+ type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];
42
50
  type PluginKey = PluginManifest[number]["name"];
51
+ type GateableCategory = Exclude<ConsentCategory, "necessary">;
52
+ type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;
43
53
  //#endregion
44
- export { PLUGIN_MANIFEST, PluginKey, PluginManifest };
54
+ export { CONSENT_CATEGORIES, ConsentCategory, ConsentState, GateableCategory, PLUGIN_MANIFEST, PluginKey, PluginManifest };
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.mts","names":[],"sources":["../../../src/sdk/plugins/manifest.ts"],"mappings":";cAAa,eAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,cAAA,UAAwB,eAAA;AAAA,KAExB,SAAA,GAAY,cAAA"}
1
+ {"version":3,"file":"manifest.d.mts","names":[],"sources":["../../../src/sdk/plugins/manifest.ts"],"mappings":";cAAa,kBAAA;AAAA,KAER,UAAA,oBACS,CAAA,KAAM,QAAA,CAAS,IAAA,CAAK,CAAA,EAAG,CAAA,KAAM,OAAA,CAAQ,CAAA,UAC3C,CAAA;AAAA,cAEK,eAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCD,cAAA,UAAwB,eAAA;AAAA,KAExB,eAAA,WAA0B,kBAAA;AAAA,KAC1B,SAAA,GAAY,cAAA;AAAA,KACZ,gBAAA,GAAmB,OAAA,CAAQ,eAAA;AAAA,KAC3B,YAAA,GAAe,UAAA,CAAW,MAAA,CAAO,gBAAA"}
@@ -1,6 +1,12 @@
1
1
  //#region src/sdk/plugins/manifest.ts
2
+ const CONSENT_CATEGORIES = [
3
+ "necessary",
4
+ "analytics",
5
+ "replay"
6
+ ];
2
7
  const PLUGIN_MANIFEST = [
3
8
  {
9
+ consentCategory: "necessary",
4
10
  defaultEnabled: true,
5
11
  events: [{
6
12
  enrich: true,
@@ -9,11 +15,13 @@ const PLUGIN_MANIFEST = [
9
15
  name: "errors"
10
16
  },
11
17
  {
18
+ consentCategory: "analytics",
12
19
  defaultEnabled: true,
13
20
  events: [],
14
21
  name: "fingerprint"
15
22
  },
16
23
  {
24
+ consentCategory: "analytics",
17
25
  defaultEnabled: true,
18
26
  events: [
19
27
  {
@@ -32,6 +40,7 @@ const PLUGIN_MANIFEST = [
32
40
  name: "pageEvents"
33
41
  },
34
42
  {
43
+ consentCategory: "analytics",
35
44
  defaultEnabled: true,
36
45
  events: [{
37
46
  enrich: true,
@@ -40,6 +49,7 @@ const PLUGIN_MANIFEST = [
40
49
  name: "rageClick"
41
50
  },
42
51
  {
52
+ consentCategory: "replay",
43
53
  defaultEnabled: true,
44
54
  events: [{
45
55
  enrich: false,
@@ -49,4 +59,4 @@ const PLUGIN_MANIFEST = [
49
59
  }
50
60
  ];
51
61
  //#endregion
52
- export { PLUGIN_MANIFEST };
62
+ export { CONSENT_CATEGORIES, PLUGIN_MANIFEST };
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.mjs","names":[],"sources":["../../../src/sdk/plugins/manifest.ts"],"sourcesContent":["export const PLUGIN_MANIFEST = [\n {\n defaultEnabled: true,\n events: [{ enrich: true, name: \"error\" }],\n name: \"errors\",\n },\n {\n defaultEnabled: true,\n events: [],\n name: \"fingerprint\",\n },\n {\n defaultEnabled: true,\n events: [\n { enrich: true, name: \"pageview\" },\n { enrich: true, name: \"pageleave\" },\n { enrich: true, name: \"ui_event\" },\n ],\n name: \"pageEvents\",\n },\n {\n defaultEnabled: true,\n events: [{ enrich: true, name: \"rage_click\" }],\n name: \"rageClick\",\n },\n {\n defaultEnabled: true,\n events: [{ enrich: false, name: \"replay_chunk\" }],\n name: \"replay\",\n },\n] as const;\n\nexport type PluginManifest = typeof PLUGIN_MANIFEST;\n\nexport type PluginKey = PluginManifest[number][\"name\"];\n"],"mappings":";AAAA,MAAa,kBAAkB;CAC7B;EACE,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAM,MAAM;GAAS,CAAC;EACzC,MAAM;EACP;CACD;EACE,gBAAgB;EAChB,QAAQ,EAAE;EACV,MAAM;EACP;CACD;EACE,gBAAgB;EAChB,QAAQ;GACN;IAAE,QAAQ;IAAM,MAAM;IAAY;GAClC;IAAE,QAAQ;IAAM,MAAM;IAAa;GACnC;IAAE,QAAQ;IAAM,MAAM;IAAY;GACnC;EACD,MAAM;EACP;CACD;EACE,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAM,MAAM;GAAc,CAAC;EAC9C,MAAM;EACP;CACD;EACE,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAO,MAAM;GAAgB,CAAC;EACjD,MAAM;EACP;CACF"}
1
+ {"version":3,"file":"manifest.mjs","names":[],"sources":["../../../src/sdk/plugins/manifest.ts"],"sourcesContent":["export const CONSENT_CATEGORIES = [\"necessary\", \"analytics\", \"replay\"] as const;\n\ntype AtLeastOne<T> = {\n [K in keyof T]-?: Required<Pick<T, K>> & Partial<T>;\n}[keyof T];\n\nexport const PLUGIN_MANIFEST = [\n {\n consentCategory: \"necessary\",\n defaultEnabled: true,\n events: [{ enrich: true, name: \"error\" }],\n name: \"errors\",\n },\n {\n consentCategory: \"analytics\",\n defaultEnabled: true,\n events: [],\n name: \"fingerprint\",\n },\n {\n consentCategory: \"analytics\",\n defaultEnabled: true,\n events: [\n { enrich: true, name: \"pageview\" },\n { enrich: true, name: \"pageleave\" },\n { enrich: true, name: \"ui_event\" },\n ],\n name: \"pageEvents\",\n },\n {\n consentCategory: \"analytics\",\n defaultEnabled: true,\n events: [{ enrich: true, name: \"rage_click\" }],\n name: \"rageClick\",\n },\n {\n consentCategory: \"replay\",\n defaultEnabled: true,\n events: [{ enrich: false, name: \"replay_chunk\" }],\n name: \"replay\",\n },\n] as const;\n\nexport type PluginManifest = typeof PLUGIN_MANIFEST;\n\nexport type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];\nexport type PluginKey = PluginManifest[number][\"name\"];\nexport type GateableCategory = Exclude<ConsentCategory, \"necessary\">;\nexport type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;\n"],"mappings":";AAAA,MAAa,qBAAqB;CAAC;CAAa;CAAa;CAAS;AAMtE,MAAa,kBAAkB;CAC7B;EACE,iBAAiB;EACjB,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAM,MAAM;GAAS,CAAC;EACzC,MAAM;EACP;CACD;EACE,iBAAiB;EACjB,gBAAgB;EAChB,QAAQ,EAAE;EACV,MAAM;EACP;CACD;EACE,iBAAiB;EACjB,gBAAgB;EAChB,QAAQ;GACN;IAAE,QAAQ;IAAM,MAAM;IAAY;GAClC;IAAE,QAAQ;IAAM,MAAM;IAAa;GACnC;IAAE,QAAQ;IAAM,MAAM;IAAY;GACnC;EACD,MAAM;EACP;CACD;EACE,iBAAiB;EACjB,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAM,MAAM;GAAc,CAAC;EAC9C,MAAM;EACP;CACD;EACE,iBAAiB;EACjB,gBAAgB;EAChB,QAAQ,CAAC;GAAE,QAAQ;GAAO,MAAM;GAAgB,CAAC;EACjD,MAAM;EACP;CACF"}
@@ -1,13 +1,13 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/payload/ai-summary.d.ts
4
- declare const sessionSummaryPayloadSchema: z$1.ZodObject<{
5
- summary: z$1.ZodString;
6
- pageTitle: z$1.ZodString;
7
- pageUrl: z$1.ZodURL;
8
- contentLength: z$1.ZodNumber;
9
- timestamp: z$1.ZodNumber;
10
- }, z$1.core.$strip>;
11
- type SessionSummaryPayload = z$1.infer<typeof sessionSummaryPayloadSchema>;
4
+ declare const sessionSummaryPayloadSchema: z.ZodObject<{
5
+ summary: z.ZodString;
6
+ pageTitle: z.ZodString;
7
+ pageUrl: z.ZodURL;
8
+ contentLength: z.ZodNumber;
9
+ timestamp: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ type SessionSummaryPayload = z.infer<typeof sessionSummaryPayloadSchema>;
12
12
  //#endregion
13
13
  export { SessionSummaryPayload, sessionSummaryPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"ai-summary.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/ai-summary.ts"],"mappings":";;;cAEa,2BAAA,EAA2B,GAAA,CAAA,SAAA;;;;;;;KAQ5B,qBAAA,GAAwB,GAAA,CAAE,KAAA,QAAa,2BAAA"}
1
+ {"version":3,"file":"ai-summary.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/ai-summary.ts"],"mappings":";;;cAEa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;KAQ5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA"}
@@ -1,11 +1,11 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/payload/ai-summary.ts
3
- const sessionSummaryPayloadSchema = z$1.object({
4
- summary: z$1.string(),
5
- pageTitle: z$1.string(),
6
- pageUrl: z$1.url(),
7
- contentLength: z$1.number(),
8
- timestamp: z$1.number()
3
+ const sessionSummaryPayloadSchema = z.object({
4
+ summary: z.string(),
5
+ pageTitle: z.string(),
6
+ pageUrl: z.url(),
7
+ contentLength: z.number(),
8
+ timestamp: z.number()
9
9
  });
10
10
  //#endregion
11
11
  export { sessionSummaryPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"ai-summary.mjs","names":["z"],"sources":["../../../../src/sdk/plugins/payload/ai-summary.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const sessionSummaryPayloadSchema = z.object({\n summary: z.string(),\n pageTitle: z.string(),\n pageUrl: z.url(),\n contentLength: z.number(),\n timestamp: z.number(),\n});\n\nexport type SessionSummaryPayload = z.infer<typeof sessionSummaryPayloadSchema>;\n"],"mappings":";;AAEA,MAAa,8BAA8BA,IAAE,OAAO;CAClD,SAASA,IAAE,QAAQ;CACnB,WAAWA,IAAE,QAAQ;CACrB,SAASA,IAAE,KAAK;CAChB,eAAeA,IAAE,QAAQ;CACzB,WAAWA,IAAE,QAAQ;CACtB,CAAC"}
1
+ {"version":3,"file":"ai-summary.mjs","names":[],"sources":["../../../../src/sdk/plugins/payload/ai-summary.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const sessionSummaryPayloadSchema = z.object({\n summary: z.string(),\n pageTitle: z.string(),\n pageUrl: z.url(),\n contentLength: z.number(),\n timestamp: z.number(),\n});\n\nexport type SessionSummaryPayload = z.infer<typeof sessionSummaryPayloadSchema>;\n"],"mappings":";;AAEA,MAAa,8BAA8B,EAAE,OAAO;CAClD,SAAS,EAAE,QAAQ;CACnB,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,KAAK;CAChB,eAAe,EAAE,QAAQ;CACzB,WAAW,EAAE,QAAQ;CACtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/payload/errors.d.ts
4
4
  declare const errorSourceSchema: z.ZodEnum<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from "zod/v4";
2
2
  import { ingestedFrame } from "#data/frame";
3
3
  //#region src/sdk/plugins/payload/errors.ts
4
4
  const errorSourceSchema = z.enum([
@@ -1 +1 @@
1
- {"version":3,"file":"errors.mjs","names":[],"sources":["../../../../src/sdk/plugins/payload/errors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ingestedFrame } from \"#data/frame\";\n\nexport const errorSourceSchema = z.enum([\"client\", \"server\", \"edge\"]);\n\nexport type ErrorSource = z.infer<typeof errorSourceSchema>;\n\nexport const errorMechanismSchema = z.object({\n type: z.string(),\n handled: z.boolean(),\n synthetic: z.boolean().optional(),\n});\n\nexport type ErrorMechanism = z.infer<typeof errorMechanismSchema>;\n\nexport const exceptionValueSchema = z.object({\n type: z.string(),\n value: z.string(),\n mechanism: errorMechanismSchema.optional(),\n frames: z.array(ingestedFrame),\n});\n\nexport type ExceptionValue = z.infer<typeof exceptionValueSchema>;\n\nexport const errorEnvelopePayloadSchema = z.object({\n exceptions: z.array(exceptionValueSchema).min(1),\n});\n\nexport type ErrorEnvelopePayload = z.infer<typeof errorEnvelopePayloadSchema>;\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAU;CAAO,CAAC;AAIrE,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,SAAS;CACpB,WAAW,EAAE,SAAS,CAAC,UAAU;CAClC,CAAC;AAIF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,WAAW,qBAAqB,UAAU;CAC1C,QAAQ,EAAE,MAAM,cAAc;CAC/B,CAAC;AAIF,MAAa,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,MAAM,qBAAqB,CAAC,IAAI,EAAE,EACjD,CAAC"}
1
+ {"version":3,"file":"errors.mjs","names":[],"sources":["../../../../src/sdk/plugins/payload/errors.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport { ingestedFrame } from \"#data/frame\";\n\nexport const errorSourceSchema = z.enum([\"client\", \"server\", \"edge\"]);\n\nexport type ErrorSource = z.infer<typeof errorSourceSchema>;\n\nexport const errorMechanismSchema = z.object({\n type: z.string(),\n handled: z.boolean(),\n synthetic: z.boolean().optional(),\n});\n\nexport type ErrorMechanism = z.infer<typeof errorMechanismSchema>;\n\nexport const exceptionValueSchema = z.object({\n type: z.string(),\n value: z.string(),\n mechanism: errorMechanismSchema.optional(),\n frames: z.array(ingestedFrame),\n});\n\nexport type ExceptionValue = z.infer<typeof exceptionValueSchema>;\n\nexport const errorEnvelopePayloadSchema = z.object({\n exceptions: z.array(exceptionValueSchema).min(1),\n});\n\nexport type ErrorEnvelopePayload = z.infer<typeof errorEnvelopePayloadSchema>;\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAU;CAAO,CAAC;AAIrE,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ;CAChB,SAAS,EAAE,SAAS;CACpB,WAAW,EAAE,SAAS,CAAC,UAAU;CAClC,CAAC;AAIF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ;CACjB,WAAW,qBAAqB,UAAU;CAC1C,QAAQ,EAAE,MAAM,cAAc;CAC/B,CAAC;AAIF,MAAa,6BAA6B,EAAE,OAAO,EACjD,YAAY,EAAE,MAAM,qBAAqB,CAAC,IAAI,EAAE,EACjD,CAAC"}
@@ -1,19 +1,19 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/payload/page-events.d.ts
4
- declare const uiEventPayloadSchema: z$1.ZodObject<{
5
- event: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
6
- }, z$1.core.$strip>;
7
- type UiEventPayload = z$1.infer<typeof uiEventPayloadSchema>;
8
- declare const pageviewPayloadSchema: z$1.ZodObject<{
9
- url: z$1.ZodString;
10
- title: z$1.ZodOptional<z$1.ZodString>;
11
- }, z$1.core.$strip>;
12
- type PageviewPayload = z$1.infer<typeof pageviewPayloadSchema>;
13
- declare const pageleavePayloadSchema: z$1.ZodObject<{
14
- url: z$1.ZodString;
15
- durationMs: z$1.ZodOptional<z$1.ZodNumber>;
16
- }, z$1.core.$strip>;
17
- type PageleavePayload = z$1.infer<typeof pageleavePayloadSchema>;
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.ZodString;
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.ZodString;
15
+ durationMs: z.ZodOptional<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ type PageleavePayload = z.infer<typeof pageleavePayloadSchema>;
18
18
  //#endregion
19
19
  export { PageleavePayload, PageviewPayload, UiEventPayload, pageleavePayloadSchema, pageviewPayloadSchema, uiEventPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"page-events.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/page-events.ts"],"mappings":";;;cAEa,oBAAA,EAAoB,GAAA,CAAA,SAAA;;;KAIrB,cAAA,GAAiB,GAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,qBAAA,EAAqB,GAAA,CAAA,SAAA;;;;KAKtB,eAAA,GAAkB,GAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAEhC,sBAAA,EAAsB,GAAA,CAAA,SAAA;;;;KAKvB,gBAAA,GAAmB,GAAA,CAAE,KAAA,QAAa,sBAAA"}
1
+ {"version":3,"file":"page-events.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/page-events.ts"],"mappings":";;;cAEa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;KAIrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;KAKtB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA;AAAA,cAEhC,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;KAKvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA"}
@@ -1,13 +1,13 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/payload/page-events.ts
3
- const uiEventPayloadSchema = z$1.object({ event: z$1.record(z$1.string(), z$1.unknown()) });
4
- const pageviewPayloadSchema = z$1.object({
5
- url: z$1.string(),
6
- title: z$1.string().optional()
3
+ const uiEventPayloadSchema = z.object({ event: z.record(z.string(), z.unknown()) });
4
+ const pageviewPayloadSchema = z.object({
5
+ url: z.string(),
6
+ title: z.string().optional()
7
7
  });
8
- const pageleavePayloadSchema = z$1.object({
9
- url: z$1.string(),
10
- durationMs: z$1.number().optional()
8
+ const pageleavePayloadSchema = z.object({
9
+ url: z.string(),
10
+ durationMs: z.number().optional()
11
11
  });
12
12
  //#endregion
13
13
  export { pageleavePayloadSchema, pageviewPayloadSchema, uiEventPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"page-events.mjs","names":["z"],"sources":["../../../../src/sdk/plugins/payload/page-events.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const uiEventPayloadSchema = z.object({\n event: z.record(z.string(), z.unknown()),\n});\n\nexport type UiEventPayload = z.infer<typeof uiEventPayloadSchema>;\n\nexport const pageviewPayloadSchema = z.object({\n url: z.string(),\n title: z.string().optional(),\n});\n\nexport type PageviewPayload = z.infer<typeof pageviewPayloadSchema>;\n\nexport const pageleavePayloadSchema = z.object({\n url: z.string(),\n durationMs: z.number().optional(),\n});\n\nexport type PageleavePayload = z.infer<typeof pageleavePayloadSchema>;\n"],"mappings":";;AAEA,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,OAAOA,IAAE,OAAOA,IAAE,QAAQ,EAAEA,IAAE,SAAS,CAAC,EACzC,CAAC;AAIF,MAAa,wBAAwBA,IAAE,OAAO;CAC5C,KAAKA,IAAE,QAAQ;CACf,OAAOA,IAAE,QAAQ,CAAC,UAAU;CAC7B,CAAC;AAIF,MAAa,yBAAyBA,IAAE,OAAO;CAC7C,KAAKA,IAAE,QAAQ;CACf,YAAYA,IAAE,QAAQ,CAAC,UAAU;CAClC,CAAC"}
1
+ {"version":3,"file":"page-events.mjs","names":[],"sources":["../../../../src/sdk/plugins/payload/page-events.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const uiEventPayloadSchema = z.object({\n event: z.record(z.string(), z.unknown()),\n});\n\nexport type UiEventPayload = z.infer<typeof uiEventPayloadSchema>;\n\nexport const pageviewPayloadSchema = z.object({\n url: z.string(),\n title: z.string().optional(),\n});\n\nexport type PageviewPayload = z.infer<typeof pageviewPayloadSchema>;\n\nexport const pageleavePayloadSchema = z.object({\n url: z.string(),\n durationMs: z.number().optional(),\n});\n\nexport type PageleavePayload = z.infer<typeof pageleavePayloadSchema>;\n"],"mappings":";;AAEA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,EACzC,CAAC;AAIF,MAAa,wBAAwB,EAAE,OAAO;CAC5C,KAAK,EAAE,QAAQ;CACf,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC7B,CAAC;AAIF,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,QAAQ;CACf,YAAY,EAAE,QAAQ,CAAC,UAAU;CAClC,CAAC"}
@@ -1,15 +1,15 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/sdk/plugins/payload/rage-click.d.ts
4
- declare const rageClickPayloadSchema: z$1.ZodObject<{
5
- count: z$1.ZodNumber;
6
- timeWindow: z$1.ZodNumber;
7
- selector: z$1.ZodString;
8
- text: z$1.ZodString;
9
- x: z$1.ZodNumber;
10
- y: z$1.ZodNumber;
11
- timestamp: z$1.ZodNumber;
12
- }, z$1.core.$strip>;
13
- type RageClickPayload = z$1.infer<typeof rageClickPayloadSchema>;
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
14
  //#endregion
15
15
  export { RageClickPayload, rageClickPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"rage-click.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/rage-click.ts"],"mappings":";;;cAEa,sBAAA,EAAsB,GAAA,CAAA,SAAA;;;;;;;;;KAUvB,gBAAA,GAAmB,GAAA,CAAE,KAAA,QAAa,sBAAA"}
1
+ {"version":3,"file":"rage-click.d.mts","names":[],"sources":["../../../../src/sdk/plugins/payload/rage-click.ts"],"mappings":";;;cAEa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;KAUvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA"}
@@ -1,13 +1,13 @@
1
- import z$1 from "zod";
1
+ import { z } from "zod/v4";
2
2
  //#region src/sdk/plugins/payload/rage-click.ts
3
- const rageClickPayloadSchema = z$1.object({
4
- count: z$1.number(),
5
- timeWindow: z$1.number(),
6
- selector: z$1.string(),
7
- text: z$1.string(),
8
- x: z$1.number(),
9
- y: z$1.number(),
10
- timestamp: z$1.number()
3
+ const rageClickPayloadSchema = z.object({
4
+ count: z.number(),
5
+ timeWindow: z.number(),
6
+ selector: z.string(),
7
+ text: z.string(),
8
+ x: z.number(),
9
+ y: z.number(),
10
+ timestamp: z.number()
11
11
  });
12
12
  //#endregion
13
13
  export { rageClickPayloadSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"rage-click.mjs","names":["z"],"sources":["../../../../src/sdk/plugins/payload/rage-click.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const rageClickPayloadSchema = z.object({\n count: z.number(),\n timeWindow: z.number(),\n selector: z.string(),\n text: z.string(),\n x: z.number(),\n y: z.number(),\n timestamp: z.number(),\n});\n\nexport type RageClickPayload = z.infer<typeof rageClickPayloadSchema>;\n"],"mappings":";;AAEA,MAAa,yBAAyBA,IAAE,OAAO;CAC7C,OAAOA,IAAE,QAAQ;CACjB,YAAYA,IAAE,QAAQ;CACtB,UAAUA,IAAE,QAAQ;CACpB,MAAMA,IAAE,QAAQ;CAChB,GAAGA,IAAE,QAAQ;CACb,GAAGA,IAAE,QAAQ;CACb,WAAWA,IAAE,QAAQ;CACtB,CAAC"}
1
+ {"version":3,"file":"rage-click.mjs","names":[],"sources":["../../../../src/sdk/plugins/payload/rage-click.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const rageClickPayloadSchema = z.object({\n count: z.number(),\n timeWindow: z.number(),\n selector: z.string(),\n text: z.string(),\n x: z.number(),\n y: z.number(),\n timestamp: z.number(),\n});\n\nexport type RageClickPayload = z.infer<typeof rageClickPayloadSchema>;\n"],"mappings":";;AAEA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,QAAQ;CACjB,YAAY,EAAE,QAAQ;CACtB,UAAU,EAAE,QAAQ;CACpB,MAAM,EAAE,QAAQ;CAChB,GAAG,EAAE,QAAQ;CACb,GAAG,EAAE,QAAQ;CACb,WAAW,EAAE,QAAQ;CACtB,CAAC"}
@@ -9,14 +9,16 @@ declare const envSchema: z.ZodNullable<z.ZodEnum<{
9
9
  type Env = z.infer<typeof envSchema>;
10
10
  declare const runtimeSchema: z.ZodNullable<z.ZodEnum<{
11
11
  browser: "browser";
12
- node: "node";
13
12
  edge: "edge";
13
+ node: "node";
14
14
  }>>;
15
15
  type Runtime = z.infer<typeof runtimeSchema>;
16
16
  declare function inferRuntime(options?: {
17
17
  readonly nextRuntime?: unknown;
18
18
  }): Runtime;
19
19
  declare function normalizeEnv(value: unknown): Env;
20
- declare function normalizeRuntime(value: unknown): Runtime;
20
+ declare function normalizeRuntime(value: unknown, options?: {
21
+ readonly nextRuntime?: unknown;
22
+ }): Runtime;
21
23
  //#endregion
22
24
  export { Env, Runtime, envSchema, inferRuntime, normalizeEnv, normalizeRuntime, runtimeSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../src/sdk/runtime.ts"],"mappings":";;;cAEa,SAAA,EAAS,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,OAAA;;;;;KAIV,GAAA,GAAM,CAAA,CAAE,KAAA,QAAa,SAAA;AAAA,cAEpB,aAAA,EAAa,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,OAAA;;;;;KAEd,OAAA,GAAU,CAAA,CAAE,KAAA,QAAa,aAAA;AAAA,iBAErB,YAAA,CAAa,OAAA;EAAA,SAClB,WAAA;AAAA,IACP,OAAA;AAAA,iBAiCY,YAAA,CAAa,KAAA,YAAiB,GAAA;AAAA,iBAc9B,gBAAA,CAAiB,KAAA,YAAiB,OAAA"}
1
+ {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../src/sdk/runtime.ts"],"mappings":";;;cAEa,SAAA,EAAS,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,OAAA;;;;;KAIV,GAAA,GAAM,CAAA,CAAE,KAAA,QAAa,SAAA;AAAA,cAEpB,aAAA,EAAa,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,OAAA;;;;;KAEd,OAAA,GAAU,CAAA,CAAE,KAAA,QAAa,aAAA;AAAA,iBAErB,YAAA,CAAa,OAAA;EAAA,SAClB,WAAA;AAAA,IACP,OAAA;AAAA,iBAiCY,YAAA,CAAa,KAAA,YAAiB,GAAA;AAAA,iBAc9B,gBAAA,CACd,KAAA,WACA,OAAA;EAAA,SAAqB,WAAA;AAAA,IACpB,OAAA"}
@@ -23,9 +23,9 @@ function normalizeEnv(value) {
23
23
  if (envSchema.safeParse(env).success) return env;
24
24
  return null;
25
25
  }
26
- function normalizeRuntime(value) {
26
+ function normalizeRuntime(value, options) {
27
27
  if (runtimeSchema.safeParse(value).success) return value;
28
- return inferRuntime({ nextRuntime: process.env.NEXT_RUNTIME });
28
+ return inferRuntime(options);
29
29
  }
30
30
  //#endregion
31
31
  export { envSchema, inferRuntime, normalizeEnv, normalizeRuntime, runtimeSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/sdk/runtime.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const envSchema = z\n .enum([\"development\", \"preview\", \"production\"])\n .nullable();\n\nexport type Env = z.infer<typeof envSchema>;\n\nexport const runtimeSchema = z.enum([\"browser\", \"node\", \"edge\"]).nullable();\n\nexport type Runtime = z.infer<typeof runtimeSchema>;\n\nexport function inferRuntime(options?: {\n readonly nextRuntime?: unknown;\n}): Runtime {\n // Browser\n if (\n typeof window !== \"undefined\" &&\n typeof document !== \"undefined\" &&\n typeof navigator !== \"undefined\"\n ) {\n return \"browser\";\n }\n\n // Edge (Vercel sets globalThis.EdgeRuntime = \"edge-runtime\")\n if (\n typeof (globalThis as { EdgeRuntime?: unknown }).EdgeRuntime === \"string\"\n ) {\n return \"edge\";\n }\n\n // Next.js Edge (explicit signal)\n if (options?.nextRuntime === \"edge\") {\n return \"edge\";\n }\n\n // Node\n if (\n typeof process !== \"undefined\" &&\n typeof process.versions?.node === \"string\"\n ) {\n return \"node\";\n }\n\n return null;\n}\n\nexport function normalizeEnv(value: unknown): Env {\n if (typeof value !== \"string\") {\n return null;\n }\n\n const env = value.toLowerCase();\n\n if (envSchema.safeParse(env).success) {\n return env as Env;\n }\n\n return null;\n}\n\nexport function normalizeRuntime(value: unknown): Runtime {\n if (runtimeSchema.safeParse(value).success) {\n return value as Runtime;\n }\n\n return inferRuntime({ nextRuntime: process.env.NEXT_RUNTIME });\n}\n"],"mappings":";;AAEA,MAAa,YAAY,EACtB,KAAK;CAAC;CAAe;CAAW;CAAa,CAAC,CAC9C,UAAU;AAIb,MAAa,gBAAgB,EAAE,KAAK;CAAC;CAAW;CAAQ;CAAO,CAAC,CAAC,UAAU;AAI3E,SAAgB,aAAa,SAEjB;AAEV,KACE,OAAO,WAAW,eAClB,OAAO,aAAa,eACpB,OAAO,cAAc,YAErB,QAAO;AAIT,KACE,OAAQ,WAAyC,gBAAgB,SAEjE,QAAO;AAIT,KAAI,SAAS,gBAAgB,OAC3B,QAAO;AAIT,KACE,OAAO,YAAY,eACnB,OAAO,QAAQ,UAAU,SAAS,SAElC,QAAO;AAGT,QAAO;;AAGT,SAAgB,aAAa,OAAqB;AAChD,KAAI,OAAO,UAAU,SACnB,QAAO;CAGT,MAAM,MAAM,MAAM,aAAa;AAE/B,KAAI,UAAU,UAAU,IAAI,CAAC,QAC3B,QAAO;AAGT,QAAO;;AAGT,SAAgB,iBAAiB,OAAyB;AACxD,KAAI,cAAc,UAAU,MAAM,CAAC,QACjC,QAAO;AAGT,QAAO,aAAa,EAAE,aAAa,QAAQ,IAAI,cAAc,CAAC"}
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/sdk/runtime.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const envSchema = z\n .enum([\"development\", \"preview\", \"production\"])\n .nullable();\n\nexport type Env = z.infer<typeof envSchema>;\n\nexport const runtimeSchema = z.enum([\"browser\", \"node\", \"edge\"]).nullable();\n\nexport type Runtime = z.infer<typeof runtimeSchema>;\n\nexport function inferRuntime(options?: {\n readonly nextRuntime?: unknown;\n}): Runtime {\n // Browser\n if (\n typeof window !== \"undefined\" &&\n typeof document !== \"undefined\" &&\n typeof navigator !== \"undefined\"\n ) {\n return \"browser\";\n }\n\n // Edge (Vercel sets globalThis.EdgeRuntime = \"edge-runtime\")\n if (\n typeof (globalThis as { EdgeRuntime?: unknown }).EdgeRuntime === \"string\"\n ) {\n return \"edge\";\n }\n\n // Next.js Edge (explicit signal)\n if (options?.nextRuntime === \"edge\") {\n return \"edge\";\n }\n\n // Node\n if (\n typeof process !== \"undefined\" &&\n typeof process.versions?.node === \"string\"\n ) {\n return \"node\";\n }\n\n return null;\n}\n\nexport function normalizeEnv(value: unknown): Env {\n if (typeof value !== \"string\") {\n return null;\n }\n\n const env = value.toLowerCase();\n\n if (envSchema.safeParse(env).success) {\n return env as Env;\n }\n\n return null;\n}\n\nexport function normalizeRuntime(\n value: unknown,\n options?: { readonly nextRuntime?: unknown }\n): Runtime {\n if (runtimeSchema.safeParse(value).success) {\n return value as Runtime;\n }\n\n return inferRuntime(options);\n}\n"],"mappings":";;AAEA,MAAa,YAAY,EACtB,KAAK;CAAC;CAAe;CAAW;CAAa,CAAC,CAC9C,UAAU;AAIb,MAAa,gBAAgB,EAAE,KAAK;CAAC;CAAW;CAAQ;CAAO,CAAC,CAAC,UAAU;AAI3E,SAAgB,aAAa,SAEjB;AAEV,KACE,OAAO,WAAW,eAClB,OAAO,aAAa,eACpB,OAAO,cAAc,YAErB,QAAO;AAIT,KACE,OAAQ,WAAyC,gBAAgB,SAEjE,QAAO;AAIT,KAAI,SAAS,gBAAgB,OAC3B,QAAO;AAIT,KACE,OAAO,YAAY,eACnB,OAAO,QAAQ,UAAU,SAAS,SAElC,QAAO;AAGT,QAAO;;AAGT,SAAgB,aAAa,OAAqB;AAChD,KAAI,OAAO,UAAU,SACnB,QAAO;CAGT,MAAM,MAAM,MAAM,aAAa;AAE/B,KAAI,UAAU,UAAU,IAAI,CAAC,QAC3B,QAAO;AAGT,QAAO;;AAGT,SAAgB,iBACd,OACA,SACS;AACT,KAAI,cAAc,UAAU,MAAM,CAAC,QACjC,QAAO;AAGT,QAAO,aAAa,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "0.2.0-alpha.2",
3
+ "version": "0.2.0-alpha.5",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -106,13 +106,13 @@
106
106
  "typecheck": "tsc --noEmit --incremental"
107
107
  },
108
108
  "dependencies": {
109
- "@interfere/constants": "0.2.0-alpha.2",
109
+ "@interfere/constants": "0.2.0-alpha.4",
110
110
  "error-stack-parser-es": "^1.0.5",
111
111
  "zod": "^4.3.6"
112
112
  },
113
113
  "devDependencies": {
114
- "@interfere/typescript-config": "1.1.0-alpha.4",
115
- "@interfere/vitest-config": "1.1.0-alpha.4",
114
+ "@interfere/typescript-config": "1.1.0-alpha.6",
115
+ "@interfere/vitest-config": "1.1.0-alpha.6",
116
116
  "@types/node": "^24.12.0",
117
117
  "@vitest/coverage-v8": "^4.0.18",
118
118
  "tsdown": "0.21.2",