{
  "version": 3,
  "sources": ["../../src/Config.ts", "../../src/Schema.ts"],
  "sourcesContent": ["import {\n  zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { DivinerConfig } from '@xyo-network/sdk/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/sdk/diviner-model'\nimport type { Schema } from '@xyo-network/sdk-protocol'\nimport { asSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: string & {\n  readonly __schema: true\n} = asSchema(`${JsonPathDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = typeof JsonPathDivinerConfigSchema\n\n/**\n * The Zod schema for the JSON Path diviner config\n */\nexport const JsonPathDivinerConfigZod: z.ZodMiniObject<\n  Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n    destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n    schema: z.ZodMiniLiteral<JsonPathDivinerConfigSchema>\n    transforms: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<JsonPathTransformExpression, JsonPathTransformExpression>>>\n  },\n  z.core.$strip\n> = z.extend(DivinerConfigZod, {\n  destinationSchema: z.optional(z.custom<Schema>()),\n  schema: z.literal(JsonPathDivinerConfigSchema),\n  transforms: z.optional(z.array(z.custom<JsonPathTransformExpression>())),\n})\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n  {\n    /**\n     * The schema to use for the destination payloads\n     */\n    destinationSchema?: Schema\n    /**\n     * The JSON Path transform expressions to apply to the payloads\n     */\n    transforms?: JsonPathTransformExpression[]\n  } & { schema: JsonPathDivinerConfigSchema }\n>\n\nexport const isJsonPathDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathDivinerConfig>> = zodIsFactory(JsonPathDivinerConfigZod)\nexport const asJsonPathDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathDivinerConfig>> = zodAsFactory(JsonPathDivinerConfigZod, 'asJsonPathDivinerConfig')\nexport const toJsonPathDivinerConfig: ReturnType<typeof zodToFactory<JsonPathDivinerConfig>> = zodToFactory(JsonPathDivinerConfigZod, 'toJsonPathDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: 'network.xyo.diviner.jsonpath' & {\n  readonly __schema: true\n} = asSchema('network.xyo.diviner.jsonpath', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = typeof JsonPathDivinerSchema\n"],
  "mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AAEP,SAAS,wBAAwB;AAEjC,SAAS,YAAAA,iBAAgB;AACzB,YAAY,OAAO;;;ACPnB,SAAS,gBAAgB;AAIlB,IAAM,wBAET,SAAS,gCAAgC,IAAI;;;ADS1C,IAAM,8BAETC,UAAS,GAAG,qBAAqB,WAAW,IAAI;AAU7C,IAAM,2BAOP,SAAO,kBAAkB;AAAA,EAC7B,mBAAqB,WAAW,SAAe,CAAC;AAAA,EAChD,QAAU,UAAQ,2BAA2B;AAAA,EAC7C,YAAc,WAAW,QAAQ,SAAoC,CAAC,CAAC;AACzE,CAAC;AAkBM,IAAM,0BAAkF,aAAa,wBAAwB;AAC7H,IAAM,0BAAkF,aAAa,0BAA0B,yBAAyB;AACxJ,IAAM,0BAAkF,aAAa,0BAA0B,yBAAyB;",
  "names": ["asSchema", "asSchema"]
}
