@interfere/types 10.0.0-canary.6 → 10.0.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.
@@ -1 +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()}).superRefine((params,ctx)=>{params.source.type===`clerk`&&!params.identifier.startsWith(`user_`)&&ctx.addIssue({code:`custom`,message:`Clerk identifiers must be raw Clerk user ids starting with user_.`,path:[`identifier`]})}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});exports.identifyParamsSchema=identifyParamsSchema,exports.identifySourceSchema=identifySourceSchema;
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(`workos`),name:zod.z.literal(`WorkOS`)}).meta({id:`WorkOSIdentifySource`,title:`WorkOSIdentifySource`}),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()}).superRefine((params,ctx)=>{params.source.type===`clerk`&&!params.identifier.startsWith(`user_`)&&ctx.addIssue({code:`custom`,message:`Clerk identifiers must be raw Clerk user ids starting with user_.`,path:[`identifier`]})}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});exports.identifyParamsSchema=identifyParamsSchema,exports.identifySourceSchema=identifySourceSchema;
@@ -7,6 +7,9 @@ declare const identifySourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
7
  }, z.core.$strip>, z.ZodObject<{
8
8
  type: z.ZodLiteral<"auth0">;
9
9
  name: z.ZodLiteral<"Auth0">;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ type: z.ZodLiteral<"workos">;
12
+ name: z.ZodLiteral<"WorkOS">;
10
13
  }, z.core.$strip>, z.ZodObject<{
11
14
  type: z.ZodLiteral<"custom">;
12
15
  name: z.ZodString;
@@ -23,6 +26,9 @@ declare const identifyParamsSchema: z.ZodObject<{
23
26
  }, z.core.$strip>, z.ZodObject<{
24
27
  type: z.ZodLiteral<"auth0">;
25
28
  name: z.ZodLiteral<"Auth0">;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ type: z.ZodLiteral<"workos">;
31
+ name: z.ZodLiteral<"WorkOS">;
26
32
  }, z.core.$strip>, z.ZodObject<{
27
33
  type: z.ZodLiteral<"custom">;
28
34
  name: z.ZodString;
@@ -7,6 +7,9 @@ declare const identifySourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
7
  }, z.core.$strip>, z.ZodObject<{
8
8
  type: z.ZodLiteral<"auth0">;
9
9
  name: z.ZodLiteral<"Auth0">;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ type: z.ZodLiteral<"workos">;
12
+ name: z.ZodLiteral<"WorkOS">;
10
13
  }, z.core.$strip>, z.ZodObject<{
11
14
  type: z.ZodLiteral<"custom">;
12
15
  name: z.ZodString;
@@ -23,6 +26,9 @@ declare const identifyParamsSchema: z.ZodObject<{
23
26
  }, z.core.$strip>, z.ZodObject<{
24
27
  type: z.ZodLiteral<"auth0">;
25
28
  name: z.ZodLiteral<"Auth0">;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ type: z.ZodLiteral<"workos">;
31
+ name: z.ZodLiteral<"WorkOS">;
26
32
  }, z.core.$strip>, z.ZodObject<{
27
33
  type: z.ZodLiteral<"custom">;
28
34
  name: z.ZodString;
@@ -1 +1 @@
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()}).superRefine((params,ctx)=>{params.source.type===`clerk`&&!params.identifier.startsWith(`user_`)&&ctx.addIssue({code:`custom`,message:`Clerk identifiers must be raw Clerk user ids starting with user_.`,path:[`identifier`]})}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});export{identifyParamsSchema,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(`workos`),name:z.literal(`WorkOS`)}).meta({id:`WorkOSIdentifySource`,title:`WorkOSIdentifySource`}),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()}).superRefine((params,ctx)=>{params.source.type===`clerk`&&!params.identifier.startsWith(`user_`)&&ctx.addIssue({code:`custom`,message:`Clerk identifiers must be raw Clerk user ids starting with user_.`,path:[`identifier`]})}).meta({id:`IdentifyParams`,title:`IdentifyParams`,description:`User attributes attached when identifying a session.`});export{identifyParamsSchema,identifySourceSchema};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_plugins_manifest=require("./plugins/manifest.cjs");let zod=require("zod");const remotePluginConfigSchema=zod.z.object(Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.map(p=>[p.name,zod.z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=zod.z.object({plugins:remotePluginConfigSchema}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));exports.EVENT_TYPE_TO_PLUGIN=EVENT_TYPE_TO_PLUGIN,exports.remoteConfigSchema=remoteConfigSchema,exports.remotePluginConfigSchema=remotePluginConfigSchema;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_plugins_manifest=require("./plugins/manifest.cjs");let zod=require("zod");const remotePluginConfigSchema=zod.z.object(Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.map(p=>[p.name,zod.z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=zod.z.object({plugins:remotePluginConfigSchema,ingestUrl:zod.z.url().optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(require_sdk_plugins_manifest.PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));exports.EVENT_TYPE_TO_PLUGIN=EVENT_TYPE_TO_PLUGIN,exports.remoteConfigSchema=remoteConfigSchema,exports.remotePluginConfigSchema=remotePluginConfigSchema;
@@ -31,6 +31,7 @@ declare const remoteConfigSchema: z.ZodObject<{
31
31
  rageClick: z.ZodBoolean;
32
32
  replay: z.ZodBoolean;
33
33
  }, z.core.$strip>;
34
+ ingestUrl: z.ZodOptional<z.ZodURL>;
34
35
  }, z.core.$strip>;
35
36
  type RemoteConfig = z.infer<typeof remoteConfigSchema>;
36
37
  declare const EVENT_TYPE_TO_PLUGIN: Record<EventType, PluginKey>;
@@ -31,6 +31,7 @@ declare const remoteConfigSchema: z.ZodObject<{
31
31
  rageClick: z.ZodBoolean;
32
32
  replay: z.ZodBoolean;
33
33
  }, z.core.$strip>;
34
+ ingestUrl: z.ZodOptional<z.ZodURL>;
34
35
  }, z.core.$strip>;
35
36
  type RemoteConfig = z.infer<typeof remoteConfigSchema>;
36
37
  declare const EVENT_TYPE_TO_PLUGIN: Record<EventType, PluginKey>;
@@ -1 +1 @@
1
- import{PLUGIN_MANIFEST}from"./plugins/manifest.mjs";import{z}from"zod";const remotePluginConfigSchema=z.object(Object.fromEntries(PLUGIN_MANIFEST.map(p=>[p.name,z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=z.object({plugins:remotePluginConfigSchema}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));export{EVENT_TYPE_TO_PLUGIN,remoteConfigSchema,remotePluginConfigSchema};
1
+ import{PLUGIN_MANIFEST}from"./plugins/manifest.mjs";import{z}from"zod";const remotePluginConfigSchema=z.object(Object.fromEntries(PLUGIN_MANIFEST.map(p=>[p.name,z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),remoteConfigSchema=z.object({plugins:remotePluginConfigSchema,ingestUrl:z.url().optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),EVENT_TYPE_TO_PLUGIN=Object.fromEntries(PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));export{EVENT_TYPE_TO_PLUGIN,remoteConfigSchema,remotePluginConfigSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "10.0.0-canary.6",
3
+ "version": "10.0.0",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -152,8 +152,8 @@
152
152
  "zod": "^4.4.3"
153
153
  },
154
154
  "devDependencies": {
155
- "@interfere/sdk": "^11.0.0-canary.6",
156
- "@interfere/test-utils": "^9.0.1-canary.1",
155
+ "@interfere/sdk": "^11.0.0-canary.7",
156
+ "@interfere/test-utils": "^9.0.1-canary.2",
157
157
  "@interfere/typescript-config": "^9.0.1-canary.1",
158
158
  "@types/node": "^26.1.0",
159
159
  "@typescript/native-preview": "7.0.0-dev.20260701.1",