@interfere/types 10.6.0 → 10.6.1

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`});const require_sdk_log_sourcing=require("./log-sourcing.cjs"),require_sdk_plugins_manifest=require("./plugins/manifest.cjs"),require_integrations_platforms_hosting=require("../integrations/platforms/hosting.cjs"),require_sdk_server_tracing=require("./server-tracing.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({ingestUrl:zod.z.url().optional(),logSourcing:require_sdk_log_sourcing.logSourcingModeSchema.optional(),platform:require_integrations_platforms_hosting.hostingPlatformSchema.optional(),plugins:remotePluginConfigSchema,serverTracing:require_sdk_server_tracing.serverTracingModeSchema.optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),partialRemotePluginConfigSchema=remotePluginConfigSchema.partial(),remoteConfigInputSchema=remoteConfigSchema.extend({plugins:partialRemotePluginConfigSchema.optional()}),PLUGINS_GLOBAL=`__INTERFERE_PLUGINS__`;function readBakedPlugins(){let scope=globalThis,injected=`__INTERFERE_PLUGINS__`in scope?scope[PLUGINS_GLOBAL]:void 0;if(injected==null)return null;let parsed=partialRemotePluginConfigSchema.safeParse(injected);return parsed.success?parsed.data:null}const 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.PLUGINS_GLOBAL=PLUGINS_GLOBAL,exports.readBakedPlugins=readBakedPlugins,exports.remoteConfigInputSchema=remoteConfigInputSchema,exports.remoteConfigSchema=remoteConfigSchema,exports.remotePluginConfigSchema=remotePluginConfigSchema;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_log_sourcing=require("./log-sourcing.cjs"),require_sdk_plugins_manifest=require("./plugins/manifest.cjs"),require_integrations_platforms_hosting=require("../integrations/platforms/hosting.cjs"),require_sdk_server_tracing=require("./server-tracing.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`}),backendHostsSchema=zod.z.array(zod.z.string()).optional(),remoteConfigSchema=zod.z.object({backendHosts:backendHostsSchema,ingestUrl:zod.z.url().optional(),logSourcing:require_sdk_log_sourcing.logSourcingModeSchema.optional(),platform:require_integrations_platforms_hosting.hostingPlatformSchema.optional(),plugins:remotePluginConfigSchema,serverTracing:require_sdk_server_tracing.serverTracingModeSchema.optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),partialRemotePluginConfigSchema=remotePluginConfigSchema.partial(),remoteConfigInputSchema=remoteConfigSchema.extend({backendHosts:(0,zod.catch)(backendHostsSchema,void 0),plugins:partialRemotePluginConfigSchema.optional()}),PLUGINS_GLOBAL=`__INTERFERE_PLUGINS__`;function readBakedPlugins(){let scope=globalThis,injected=`__INTERFERE_PLUGINS__`in scope?scope[PLUGINS_GLOBAL]:void 0;if(injected==null)return null;let parsed=partialRemotePluginConfigSchema.safeParse(injected);return parsed.success?parsed.data:null}const 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.PLUGINS_GLOBAL=PLUGINS_GLOBAL,exports.readBakedPlugins=readBakedPlugins,exports.remoteConfigInputSchema=remoteConfigInputSchema,exports.remoteConfigSchema=remoteConfigSchema,exports.remotePluginConfigSchema=remotePluginConfigSchema;
@@ -12,6 +12,7 @@ export declare const remotePluginConfigSchema: z.ZodObject<{
12
12
  replay: z.ZodBoolean;
13
13
  }, z.core.$strip>;
14
14
  export declare const remoteConfigSchema: z.ZodObject<{
15
+ backendHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
16
  ingestUrl: z.ZodOptional<z.ZodURL>;
16
17
  logSourcing: z.ZodOptional<z.ZodEnum<{
17
18
  drain: "drain";
@@ -57,6 +58,7 @@ export declare const remoteConfigInputSchema: z.ZodObject<{
57
58
  drain: "drain";
58
59
  full: "full";
59
60
  }>>;
61
+ backendHosts: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString>>>;
60
62
  plugins: z.ZodOptional<z.ZodObject<{
61
63
  device: z.ZodOptional<z.ZodBoolean>;
62
64
  errors: z.ZodOptional<z.ZodBoolean>;
@@ -12,6 +12,7 @@ export declare const remotePluginConfigSchema: z.ZodObject<{
12
12
  replay: z.ZodBoolean;
13
13
  }, z.core.$strip>;
14
14
  export declare const remoteConfigSchema: z.ZodObject<{
15
+ backendHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
16
  ingestUrl: z.ZodOptional<z.ZodURL>;
16
17
  logSourcing: z.ZodOptional<z.ZodEnum<{
17
18
  drain: "drain";
@@ -57,6 +58,7 @@ export declare const remoteConfigInputSchema: z.ZodObject<{
57
58
  drain: "drain";
58
59
  full: "full";
59
60
  }>>;
61
+ backendHosts: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString>>>;
60
62
  plugins: z.ZodOptional<z.ZodObject<{
61
63
  device: z.ZodOptional<z.ZodBoolean>;
62
64
  errors: z.ZodOptional<z.ZodBoolean>;
@@ -1 +1 @@
1
- import{logSourcingModeSchema}from"./log-sourcing.mjs";import{PLUGIN_MANIFEST}from"./plugins/manifest.mjs";import{hostingPlatformSchema}from"../integrations/platforms/hosting.mjs";import{serverTracingModeSchema}from"./server-tracing.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({ingestUrl:z.url().optional(),logSourcing:logSourcingModeSchema.optional(),platform:hostingPlatformSchema.optional(),plugins:remotePluginConfigSchema,serverTracing:serverTracingModeSchema.optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),partialRemotePluginConfigSchema=remotePluginConfigSchema.partial(),remoteConfigInputSchema=remoteConfigSchema.extend({plugins:partialRemotePluginConfigSchema.optional()}),PLUGINS_GLOBAL=`__INTERFERE_PLUGINS__`;function readBakedPlugins(){let scope=globalThis,injected=`__INTERFERE_PLUGINS__`in scope?scope[PLUGINS_GLOBAL]:void 0;if(injected==null)return null;let parsed=partialRemotePluginConfigSchema.safeParse(injected);return parsed.success?parsed.data:null}const EVENT_TYPE_TO_PLUGIN=Object.fromEntries(PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));export{EVENT_TYPE_TO_PLUGIN,PLUGINS_GLOBAL,readBakedPlugins,remoteConfigInputSchema,remoteConfigSchema,remotePluginConfigSchema};
1
+ import{logSourcingModeSchema}from"./log-sourcing.mjs";import{PLUGIN_MANIFEST}from"./plugins/manifest.mjs";import{hostingPlatformSchema}from"../integrations/platforms/hosting.mjs";import{serverTracingModeSchema}from"./server-tracing.mjs";import{catch as catch$1,z}from"zod";const remotePluginConfigSchema=z.object(Object.fromEntries(PLUGIN_MANIFEST.map(p=>[p.name,z.boolean()]))).meta({id:`RemotePluginConfig`,title:`RemotePluginConfig`}),backendHostsSchema=z.array(z.string()).optional(),remoteConfigSchema=z.object({backendHosts:backendHostsSchema,ingestUrl:z.url().optional(),logSourcing:logSourcingModeSchema.optional(),platform:hostingPlatformSchema.optional(),plugins:remotePluginConfigSchema,serverTracing:serverTracingModeSchema.optional()}).meta({id:`RemoteConfig`,title:`RemoteConfig`}),partialRemotePluginConfigSchema=remotePluginConfigSchema.partial(),remoteConfigInputSchema=remoteConfigSchema.extend({backendHosts:catch$1(backendHostsSchema,void 0),plugins:partialRemotePluginConfigSchema.optional()}),PLUGINS_GLOBAL=`__INTERFERE_PLUGINS__`;function readBakedPlugins(){let scope=globalThis,injected=`__INTERFERE_PLUGINS__`in scope?scope[PLUGINS_GLOBAL]:void 0;if(injected==null)return null;let parsed=partialRemotePluginConfigSchema.safeParse(injected);return parsed.success?parsed.data:null}const EVENT_TYPE_TO_PLUGIN=Object.fromEntries(PLUGIN_MANIFEST.flatMap(plugin=>plugin.events.map(event=>[event.name,plugin.name])));export{EVENT_TYPE_TO_PLUGIN,PLUGINS_GLOBAL,readBakedPlugins,remoteConfigInputSchema,remoteConfigSchema,remotePluginConfigSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "TypeScript & Zod types for Interfere",
5
5
  "keywords": [
6
6
  "logging",