@walkeros/core 2.2.0-next-1772811722420 → 2.2.0-next-1773136823705

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.
package/dist/dev.d.mts CHANGED
@@ -2794,9 +2794,6 @@ declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.Z
2794
2794
  * Definitions schema for reusable configurations.
2795
2795
  */
2796
2796
  declare const DefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2797
- /**
2798
- * Packages schema for build configuration.
2799
- */
2800
2797
  declare const PackagesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2801
2798
  version: z.ZodOptional<z.ZodString>;
2802
2799
  imports: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2960,14 +2957,14 @@ declare const ContractActionsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodS
2960
2957
  */
2961
2958
  declare const ContractSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>;
2962
2959
  /**
2963
- * Single flow configuration schema.
2960
+ * Single flow settings schema.
2964
2961
  *
2965
2962
  * @remarks
2966
2963
  * Represents a single deployment target (e.g., web_prod, server_stage).
2967
2964
  * Platform is determined by presence of `web` or `server` key.
2968
2965
  * Exactly one must be present.
2969
2966
  */
2970
- declare const ConfigSchema: z.ZodObject<{
2967
+ declare const SettingsSchema: z.ZodObject<{
2971
2968
  web: z.ZodOptional<z.ZodObject<{
2972
2969
  windowCollector: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2973
2970
  windowElb: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -3051,7 +3048,7 @@ declare const ConfigSchema: z.ZodObject<{
3051
3048
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3052
3049
  definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3053
3050
  }, z.core.$strip>;
3054
- declare const SetupV2Schema: z.ZodObject<{
3051
+ declare const ConfigV2Schema: z.ZodObject<{
3055
3052
  $schema: z.ZodOptional<z.ZodString>;
3056
3053
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3057
3054
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3143,7 +3140,7 @@ declare const SetupV2Schema: z.ZodObject<{
3143
3140
  version: z.ZodLiteral<2>;
3144
3141
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3145
3142
  }, z.core.$strip>;
3146
- declare const SetupSchema: z.ZodUnion<readonly [z.ZodObject<{
3143
+ declare const ConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
3147
3144
  $schema: z.ZodOptional<z.ZodString>;
3148
3145
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3149
3146
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3327,34 +3324,34 @@ declare const SetupSchema: z.ZodUnion<readonly [z.ZodObject<{
3327
3324
  }, z.core.$strip>]>;
3328
3325
 
3329
3326
  /**
3330
- * Parse and validate Flow.Setup configuration.
3327
+ * Parse and validate Flow.Config configuration.
3331
3328
  *
3332
3329
  * @param data - Raw JSON data from config file
3333
- * @returns Validated Flow.Setup object
3330
+ * @returns Validated Flow.Config object
3334
3331
  * @throws ZodError if validation fails with detailed error messages
3335
3332
  *
3336
3333
  * @example
3337
3334
  * ```typescript
3338
- * import { parseSetup } from '@walkeros/core/dev';
3335
+ * import { parseConfig } from '@walkeros/core/dev';
3339
3336
  * import { readFileSync } from 'fs';
3340
3337
  *
3341
3338
  * const raw = JSON.parse(readFileSync('walkeros.config.json', 'utf8'));
3342
- * const config = parseSetup(raw);
3339
+ * const config = parseConfig(raw);
3343
3340
  * console.log(`Found ${Object.keys(config.flows).length} flows`);
3344
3341
  * ```
3345
3342
  */
3346
- declare function parseSetup(data: unknown): z.infer<typeof SetupSchema>;
3343
+ declare function parseConfig(data: unknown): z.infer<typeof ConfigSchema>;
3347
3344
  /**
3348
- * Safely parse Flow.Setup configuration without throwing.
3345
+ * Safely parse Flow.Config configuration without throwing.
3349
3346
  *
3350
3347
  * @param data - Raw JSON data from config file
3351
3348
  * @returns Success result with data or error result with issues
3352
3349
  *
3353
3350
  * @example
3354
3351
  * ```typescript
3355
- * import { safeParseSetup } from '@walkeros/core/dev';
3352
+ * import { safeParseConfig } from '@walkeros/core/dev';
3356
3353
  *
3357
- * const result = safeParseSetup(rawData);
3354
+ * const result = safeParseConfig(rawData);
3358
3355
  * if (result.success) {
3359
3356
  * console.log('Valid config:', result.data);
3360
3357
  * } else {
@@ -3362,7 +3359,7 @@ declare function parseSetup(data: unknown): z.infer<typeof SetupSchema>;
3362
3359
  * }
3363
3360
  * ```
3364
3361
  */
3365
- declare function safeParseSetup(data: unknown): z.ZodSafeParseResult<{
3362
+ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3366
3363
  flows: Record<string, {
3367
3364
  web?: {
3368
3365
  windowCollector: string;
@@ -3549,28 +3546,28 @@ declare function safeParseSetup(data: unknown): z.ZodSafeParseResult<{
3549
3546
  contract?: Record<string, number | Record<string, Record<string, unknown>>> | undefined;
3550
3547
  }>;
3551
3548
  /**
3552
- * Parse and validate Flow.Config (single flow).
3549
+ * Parse and validate Flow.Settings (single flow).
3553
3550
  *
3554
3551
  * @param data - Raw JSON data for single flow
3555
- * @returns Validated Flow.Config object
3552
+ * @returns Validated Flow.Settings object
3556
3553
  * @throws ZodError if validation fails
3557
3554
  *
3558
3555
  * @example
3559
3556
  * ```typescript
3560
- * import { parseConfig } from '@walkeros/core/dev';
3557
+ * import { parseSettings } from '@walkeros/core/dev';
3561
3558
  *
3562
- * const flowConfig = parseConfig(rawFlowData);
3563
- * console.log(`Platform: ${flowConfig.web ? 'web' : 'server'}`);
3559
+ * const flowSettings = parseSettings(rawFlowData);
3560
+ * console.log(`Platform: ${flowSettings.web ? 'web' : 'server'}`);
3564
3561
  * ```
3565
3562
  */
3566
- declare function parseConfig(data: unknown): z.infer<typeof ConfigSchema>;
3563
+ declare function parseSettings(data: unknown): z.infer<typeof SettingsSchema>;
3567
3564
  /**
3568
- * Safely parse Flow.Config without throwing.
3565
+ * Safely parse Flow.Settings without throwing.
3569
3566
  *
3570
3567
  * @param data - Raw JSON data for single flow
3571
3568
  * @returns Success result with data or error result with issues
3572
3569
  */
3573
- declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3570
+ declare function safeParseSettings(data: unknown): z.ZodSafeParseResult<{
3574
3571
  web?: {
3575
3572
  windowCollector: string;
3576
3573
  windowElb: string;
@@ -3657,15 +3654,15 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3657
3654
  definitions?: Record<string, unknown> | undefined;
3658
3655
  }>;
3659
3656
  /**
3660
- * Generate JSON Schema for Flow.Setup.
3657
+ * Generate JSON Schema for Flow.Config.
3661
3658
  *
3662
3659
  * @remarks
3663
3660
  * Used for IDE validation and autocomplete.
3664
3661
  * Hosted at https://walkeros.io/schema/flow/v1.json
3665
3662
  *
3666
- * @returns JSON Schema (Draft 7) representation of SetupSchema
3663
+ * @returns JSON Schema (Draft 7) representation of ConfigSchema
3667
3664
  */
3668
- declare const setupJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
3665
+ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
3669
3666
  $schema: z.ZodOptional<z.ZodString>;
3670
3667
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3671
3668
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3848,13 +3845,13 @@ declare const setupJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<re
3848
3845
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3849
3846
  }, z.core.$strip>]>>;
3850
3847
  /**
3851
- * Generate JSON Schema for Flow.SetupV2.
3848
+ * Generate JSON Schema for Flow.ConfigV2.
3852
3849
  *
3853
3850
  * @remarks
3854
3851
  * Used for IDE validation of v2 configurations with data contracts.
3855
3852
  * Hosted at https://walkeros.io/schema/flow/v2.json
3856
3853
  */
3857
- declare const setupV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
3854
+ declare const configV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
3858
3855
  $schema: z.ZodOptional<z.ZodString>;
3859
3856
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3860
3857
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3947,14 +3944,14 @@ declare const setupV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject
3947
3944
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3948
3945
  }, z.core.$strip>>;
3949
3946
  /**
3950
- * Generate JSON Schema for Flow.Config.
3947
+ * Generate JSON Schema for Flow.Settings.
3951
3948
  *
3952
3949
  * @remarks
3953
- * Used for validating individual flow configurations.
3950
+ * Used for validating individual flow settings.
3954
3951
  *
3955
- * @returns JSON Schema (Draft 7) representation of ConfigSchema
3952
+ * @returns JSON Schema (Draft 7) representation of SettingsSchema
3956
3953
  */
3957
- declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3954
+ declare const settingsJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3958
3955
  /**
3959
3956
  * Generate JSON Schema for SourceReference.
3960
3957
  *
@@ -3993,6 +3990,7 @@ declare const transformerReferenceJsonSchema: z.core.ZodStandardJSONSchemaPayloa
3993
3990
  declare const storeReferenceJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3994
3991
 
3995
3992
  declare const flow_ConfigSchema: typeof ConfigSchema;
3993
+ declare const flow_ConfigV2Schema: typeof ConfigV2Schema;
3996
3994
  declare const flow_ContractActionsSchema: typeof ContractActionsSchema;
3997
3995
  declare const flow_ContractSchema: typeof ContractSchema;
3998
3996
  declare const flow_ContractSchemaEntry: typeof ContractSchemaEntry;
@@ -4002,8 +4000,7 @@ declare const flow_InlineCodeSchema: typeof InlineCodeSchema;
4002
4000
  declare const flow_PackagesSchema: typeof PackagesSchema;
4003
4001
  declare const flow_PrimitiveSchema: typeof PrimitiveSchema;
4004
4002
  declare const flow_ServerSchema: typeof ServerSchema;
4005
- declare const flow_SetupSchema: typeof SetupSchema;
4006
- declare const flow_SetupV2Schema: typeof SetupV2Schema;
4003
+ declare const flow_SettingsSchema: typeof SettingsSchema;
4007
4004
  declare const flow_SourceReferenceSchema: typeof SourceReferenceSchema;
4008
4005
  declare const flow_StepExampleSchema: typeof StepExampleSchema;
4009
4006
  declare const flow_StepExamplesSchema: typeof StepExamplesSchema;
@@ -4012,18 +4009,18 @@ declare const flow_TransformerReferenceSchema: typeof TransformerReferenceSchema
4012
4009
  declare const flow_VariablesSchema: typeof VariablesSchema;
4013
4010
  declare const flow_WebSchema: typeof WebSchema;
4014
4011
  declare const flow_configJsonSchema: typeof configJsonSchema;
4012
+ declare const flow_configV2JsonSchema: typeof configV2JsonSchema;
4015
4013
  declare const flow_destinationReferenceJsonSchema: typeof destinationReferenceJsonSchema;
4016
4014
  declare const flow_parseConfig: typeof parseConfig;
4017
- declare const flow_parseSetup: typeof parseSetup;
4015
+ declare const flow_parseSettings: typeof parseSettings;
4018
4016
  declare const flow_safeParseConfig: typeof safeParseConfig;
4019
- declare const flow_safeParseSetup: typeof safeParseSetup;
4020
- declare const flow_setupJsonSchema: typeof setupJsonSchema;
4021
- declare const flow_setupV2JsonSchema: typeof setupV2JsonSchema;
4017
+ declare const flow_safeParseSettings: typeof safeParseSettings;
4018
+ declare const flow_settingsJsonSchema: typeof settingsJsonSchema;
4022
4019
  declare const flow_sourceReferenceJsonSchema: typeof sourceReferenceJsonSchema;
4023
4020
  declare const flow_storeReferenceJsonSchema: typeof storeReferenceJsonSchema;
4024
4021
  declare const flow_transformerReferenceJsonSchema: typeof transformerReferenceJsonSchema;
4025
4022
  declare namespace flow {
4026
- export { flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationReferenceSchema as DestinationReferenceSchema, flow_InlineCodeSchema as InlineCodeSchema, flow_PackagesSchema as PackagesSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_ServerSchema as ServerSchema, flow_SetupSchema as SetupSchema, flow_SetupV2Schema as SetupV2Schema, flow_SourceReferenceSchema as SourceReferenceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreReferenceSchema as StoreReferenceSchema, flow_TransformerReferenceSchema as TransformerReferenceSchema, flow_VariablesSchema as VariablesSchema, flow_WebSchema as WebSchema, flow_configJsonSchema as configJsonSchema, flow_destinationReferenceJsonSchema as destinationReferenceJsonSchema, flow_parseConfig as parseConfig, flow_parseSetup as parseSetup, flow_safeParseConfig as safeParseConfig, flow_safeParseSetup as safeParseSetup, flow_setupJsonSchema as setupJsonSchema, flow_setupV2JsonSchema as setupV2JsonSchema, flow_sourceReferenceJsonSchema as sourceReferenceJsonSchema, flow_storeReferenceJsonSchema as storeReferenceJsonSchema, flow_transformerReferenceJsonSchema as transformerReferenceJsonSchema };
4023
+ export { flow_ConfigSchema as ConfigSchema, flow_ConfigV2Schema as ConfigV2Schema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationReferenceSchema as DestinationReferenceSchema, flow_InlineCodeSchema as InlineCodeSchema, flow_PackagesSchema as PackagesSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_ServerSchema as ServerSchema, flow_SettingsSchema as SettingsSchema, flow_SourceReferenceSchema as SourceReferenceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreReferenceSchema as StoreReferenceSchema, flow_TransformerReferenceSchema as TransformerReferenceSchema, flow_VariablesSchema as VariablesSchema, flow_WebSchema as WebSchema, flow_configJsonSchema as configJsonSchema, flow_configV2JsonSchema as configV2JsonSchema, flow_destinationReferenceJsonSchema as destinationReferenceJsonSchema, flow_parseConfig as parseConfig, flow_parseSettings as parseSettings, flow_safeParseConfig as safeParseConfig, flow_safeParseSettings as safeParseSettings, flow_settingsJsonSchema as settingsJsonSchema, flow_sourceReferenceJsonSchema as sourceReferenceJsonSchema, flow_storeReferenceJsonSchema as storeReferenceJsonSchema, flow_transformerReferenceJsonSchema as transformerReferenceJsonSchema };
4027
4024
  }
4028
4025
 
4029
4026
  /**
@@ -4149,17 +4146,17 @@ interface IntelliSenseContext {
4149
4146
  }
4150
4147
 
4151
4148
  /**
4152
- * Validate a Flow.Setup JSON string.
4149
+ * Validate a Flow.Config JSON string.
4153
4150
  *
4154
4151
  * Performs three levels of validation:
4155
4152
  * 1. JSON syntax — parse error with line/column
4156
- * 2. Schema — Zod SetupSchema validation with mapped positions
4153
+ * 2. Schema — Zod ConfigSchema validation with mapped positions
4157
4154
  * 3. References — checks $var., $def., $secret. against extracted context
4158
4155
  *
4159
4156
  * Returns errors, warnings, and extracted IntelliSenseContext as a byproduct.
4160
4157
  * Pure function — works in Node.js (CLI/MCP) and browser (CodeBox).
4161
4158
  */
4162
- declare function validateFlowSetup(json: string): ValidationResult;
4159
+ declare function validateFlowConfig(json: string): ValidationResult;
4163
4160
 
4164
4161
  interface ValidationIssue {
4165
4162
  message: string;
@@ -4409,8 +4406,6 @@ declare const index_RuleSchema: typeof RuleSchema;
4409
4406
  declare const index_RulesSchema: typeof RulesSchema;
4410
4407
  declare const index_RuntimeInstanceConfig: typeof RuntimeInstanceConfig;
4411
4408
  declare const index_SetSchema: typeof SetSchema;
4412
- declare const index_SetupSchema: typeof SetupSchema;
4413
- declare const index_SetupV2Schema: typeof SetupV2Schema;
4414
4409
  declare const index_SourceReferenceSchema: typeof SourceReferenceSchema;
4415
4410
  declare const index_SourceSchema: typeof SourceSchema;
4416
4411
  declare const index_SourceTypeSchema: typeof SourceTypeSchema;
@@ -4427,6 +4422,7 @@ declare const index_ValuesSchema: typeof ValuesSchema;
4427
4422
  declare const index_VerboseConfig: typeof VerboseConfig;
4428
4423
  declare const index_VersionSchema: typeof VersionSchema;
4429
4424
  declare const index_configJsonSchema: typeof configJsonSchema;
4425
+ declare const index_configV2JsonSchema: typeof configV2JsonSchema;
4430
4426
  declare const index_consentJsonSchema: typeof consentJsonSchema;
4431
4427
  declare const index_createArraySchema: typeof createArraySchema;
4432
4428
  declare const index_createConsentConfig: typeof createConsentConfig;
@@ -4443,28 +4439,27 @@ declare const index_loopJsonSchema: typeof loopJsonSchema;
4443
4439
  declare const index_mapJsonSchema: typeof mapJsonSchema;
4444
4440
  declare const index_orderedPropertiesJsonSchema: typeof orderedPropertiesJsonSchema;
4445
4441
  declare const index_parseConfig: typeof parseConfig;
4446
- declare const index_parseSetup: typeof parseSetup;
4442
+ declare const index_parseSettings: typeof parseSettings;
4447
4443
  declare const index_partialEventJsonSchema: typeof partialEventJsonSchema;
4448
4444
  declare const index_policyJsonSchema: typeof policyJsonSchema;
4449
4445
  declare const index_propertiesJsonSchema: typeof propertiesJsonSchema;
4450
4446
  declare const index_ruleJsonSchema: typeof ruleJsonSchema;
4451
4447
  declare const index_rulesJsonSchema: typeof rulesJsonSchema;
4452
4448
  declare const index_safeParseConfig: typeof safeParseConfig;
4453
- declare const index_safeParseSetup: typeof safeParseSetup;
4449
+ declare const index_safeParseSettings: typeof safeParseSettings;
4454
4450
  declare const index_setJsonSchema: typeof setJsonSchema;
4455
- declare const index_setupJsonSchema: typeof setupJsonSchema;
4456
- declare const index_setupV2JsonSchema: typeof setupV2JsonSchema;
4451
+ declare const index_settingsJsonSchema: typeof settingsJsonSchema;
4457
4452
  declare const index_sourceReferenceJsonSchema: typeof sourceReferenceJsonSchema;
4458
4453
  declare const index_sourceTypeJsonSchema: typeof sourceTypeJsonSchema;
4459
4454
  declare const index_storeReferenceJsonSchema: typeof storeReferenceJsonSchema;
4460
4455
  declare const index_userJsonSchema: typeof userJsonSchema;
4461
- declare const index_validateFlowSetup: typeof validateFlowSetup;
4456
+ declare const index_validateFlowConfig: typeof validateFlowConfig;
4462
4457
  declare const index_valueConfigJsonSchema: typeof valueConfigJsonSchema;
4463
4458
  declare const index_valueJsonSchema: typeof valueJsonSchema;
4464
4459
  declare const index_z: typeof z;
4465
4460
  declare const index_zodToSchema: typeof zodToSchema;
4466
4461
  declare namespace index {
4467
- export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, index_DestinationReferenceSchema as DestinationReferenceSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, ConfigSchema as FlowConfigSchema, flow as FlowSchemas, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_IdConfig as IdConfig, index_Identifier as Identifier, index_InitConfig as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, index_SetupSchema as SetupSchema, index_SetupV2Schema as SetupV2Schema, index_SourceReferenceSchema as SourceReferenceSchema, index_SourceSchema as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, index_StoreReferenceSchema as StoreReferenceSchema, index_TaggingVersion as TaggingVersion, index_Timestamp as Timestamp, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, index_VersionSchema as VersionSchema, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationReferenceJsonSchema as destinationReferenceJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseSetup as parseSetup, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseSetup as safeParseSetup, index_setJsonSchema as setJsonSchema, index_setupJsonSchema as setupJsonSchema, index_setupV2JsonSchema as setupV2JsonSchema, index_sourceReferenceJsonSchema as sourceReferenceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeReferenceJsonSchema as storeReferenceJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowSetup as validateFlowSetup, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
4462
+ export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, index_DestinationReferenceSchema as DestinationReferenceSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, ConfigSchema as FlowConfigSchema, ConfigV2Schema as FlowConfigV2Schema, flow as FlowSchemas, SettingsSchema as FlowSettingsSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_IdConfig as IdConfig, index_Identifier as Identifier, index_InitConfig as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, index_SourceReferenceSchema as SourceReferenceSchema, index_SourceSchema as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, index_StoreReferenceSchema as StoreReferenceSchema, index_TaggingVersion as TaggingVersion, index_Timestamp as Timestamp, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, index_VersionSchema as VersionSchema, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_configV2JsonSchema as configV2JsonSchema, index_consentJsonSchema as consentJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationReferenceJsonSchema as destinationReferenceJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseSettings as parseSettings, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseSettings as safeParseSettings, index_setJsonSchema as setJsonSchema, index_settingsJsonSchema as settingsJsonSchema, index_sourceReferenceJsonSchema as sourceReferenceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeReferenceJsonSchema as storeReferenceJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
4468
4463
  }
4469
4464
 
4470
4465
  export { type JSONSchema, index as schemas, zodToSchema };
package/dist/dev.d.ts CHANGED
@@ -2794,9 +2794,6 @@ declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.Z
2794
2794
  * Definitions schema for reusable configurations.
2795
2795
  */
2796
2796
  declare const DefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2797
- /**
2798
- * Packages schema for build configuration.
2799
- */
2800
2797
  declare const PackagesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2801
2798
  version: z.ZodOptional<z.ZodString>;
2802
2799
  imports: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2960,14 +2957,14 @@ declare const ContractActionsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodS
2960
2957
  */
2961
2958
  declare const ContractSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>;
2962
2959
  /**
2963
- * Single flow configuration schema.
2960
+ * Single flow settings schema.
2964
2961
  *
2965
2962
  * @remarks
2966
2963
  * Represents a single deployment target (e.g., web_prod, server_stage).
2967
2964
  * Platform is determined by presence of `web` or `server` key.
2968
2965
  * Exactly one must be present.
2969
2966
  */
2970
- declare const ConfigSchema: z.ZodObject<{
2967
+ declare const SettingsSchema: z.ZodObject<{
2971
2968
  web: z.ZodOptional<z.ZodObject<{
2972
2969
  windowCollector: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2973
2970
  windowElb: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -3051,7 +3048,7 @@ declare const ConfigSchema: z.ZodObject<{
3051
3048
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3052
3049
  definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3053
3050
  }, z.core.$strip>;
3054
- declare const SetupV2Schema: z.ZodObject<{
3051
+ declare const ConfigV2Schema: z.ZodObject<{
3055
3052
  $schema: z.ZodOptional<z.ZodString>;
3056
3053
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3057
3054
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3143,7 +3140,7 @@ declare const SetupV2Schema: z.ZodObject<{
3143
3140
  version: z.ZodLiteral<2>;
3144
3141
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3145
3142
  }, z.core.$strip>;
3146
- declare const SetupSchema: z.ZodUnion<readonly [z.ZodObject<{
3143
+ declare const ConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
3147
3144
  $schema: z.ZodOptional<z.ZodString>;
3148
3145
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3149
3146
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3327,34 +3324,34 @@ declare const SetupSchema: z.ZodUnion<readonly [z.ZodObject<{
3327
3324
  }, z.core.$strip>]>;
3328
3325
 
3329
3326
  /**
3330
- * Parse and validate Flow.Setup configuration.
3327
+ * Parse and validate Flow.Config configuration.
3331
3328
  *
3332
3329
  * @param data - Raw JSON data from config file
3333
- * @returns Validated Flow.Setup object
3330
+ * @returns Validated Flow.Config object
3334
3331
  * @throws ZodError if validation fails with detailed error messages
3335
3332
  *
3336
3333
  * @example
3337
3334
  * ```typescript
3338
- * import { parseSetup } from '@walkeros/core/dev';
3335
+ * import { parseConfig } from '@walkeros/core/dev';
3339
3336
  * import { readFileSync } from 'fs';
3340
3337
  *
3341
3338
  * const raw = JSON.parse(readFileSync('walkeros.config.json', 'utf8'));
3342
- * const config = parseSetup(raw);
3339
+ * const config = parseConfig(raw);
3343
3340
  * console.log(`Found ${Object.keys(config.flows).length} flows`);
3344
3341
  * ```
3345
3342
  */
3346
- declare function parseSetup(data: unknown): z.infer<typeof SetupSchema>;
3343
+ declare function parseConfig(data: unknown): z.infer<typeof ConfigSchema>;
3347
3344
  /**
3348
- * Safely parse Flow.Setup configuration without throwing.
3345
+ * Safely parse Flow.Config configuration without throwing.
3349
3346
  *
3350
3347
  * @param data - Raw JSON data from config file
3351
3348
  * @returns Success result with data or error result with issues
3352
3349
  *
3353
3350
  * @example
3354
3351
  * ```typescript
3355
- * import { safeParseSetup } from '@walkeros/core/dev';
3352
+ * import { safeParseConfig } from '@walkeros/core/dev';
3356
3353
  *
3357
- * const result = safeParseSetup(rawData);
3354
+ * const result = safeParseConfig(rawData);
3358
3355
  * if (result.success) {
3359
3356
  * console.log('Valid config:', result.data);
3360
3357
  * } else {
@@ -3362,7 +3359,7 @@ declare function parseSetup(data: unknown): z.infer<typeof SetupSchema>;
3362
3359
  * }
3363
3360
  * ```
3364
3361
  */
3365
- declare function safeParseSetup(data: unknown): z.ZodSafeParseResult<{
3362
+ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3366
3363
  flows: Record<string, {
3367
3364
  web?: {
3368
3365
  windowCollector: string;
@@ -3549,28 +3546,28 @@ declare function safeParseSetup(data: unknown): z.ZodSafeParseResult<{
3549
3546
  contract?: Record<string, number | Record<string, Record<string, unknown>>> | undefined;
3550
3547
  }>;
3551
3548
  /**
3552
- * Parse and validate Flow.Config (single flow).
3549
+ * Parse and validate Flow.Settings (single flow).
3553
3550
  *
3554
3551
  * @param data - Raw JSON data for single flow
3555
- * @returns Validated Flow.Config object
3552
+ * @returns Validated Flow.Settings object
3556
3553
  * @throws ZodError if validation fails
3557
3554
  *
3558
3555
  * @example
3559
3556
  * ```typescript
3560
- * import { parseConfig } from '@walkeros/core/dev';
3557
+ * import { parseSettings } from '@walkeros/core/dev';
3561
3558
  *
3562
- * const flowConfig = parseConfig(rawFlowData);
3563
- * console.log(`Platform: ${flowConfig.web ? 'web' : 'server'}`);
3559
+ * const flowSettings = parseSettings(rawFlowData);
3560
+ * console.log(`Platform: ${flowSettings.web ? 'web' : 'server'}`);
3564
3561
  * ```
3565
3562
  */
3566
- declare function parseConfig(data: unknown): z.infer<typeof ConfigSchema>;
3563
+ declare function parseSettings(data: unknown): z.infer<typeof SettingsSchema>;
3567
3564
  /**
3568
- * Safely parse Flow.Config without throwing.
3565
+ * Safely parse Flow.Settings without throwing.
3569
3566
  *
3570
3567
  * @param data - Raw JSON data for single flow
3571
3568
  * @returns Success result with data or error result with issues
3572
3569
  */
3573
- declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3570
+ declare function safeParseSettings(data: unknown): z.ZodSafeParseResult<{
3574
3571
  web?: {
3575
3572
  windowCollector: string;
3576
3573
  windowElb: string;
@@ -3657,15 +3654,15 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
3657
3654
  definitions?: Record<string, unknown> | undefined;
3658
3655
  }>;
3659
3656
  /**
3660
- * Generate JSON Schema for Flow.Setup.
3657
+ * Generate JSON Schema for Flow.Config.
3661
3658
  *
3662
3659
  * @remarks
3663
3660
  * Used for IDE validation and autocomplete.
3664
3661
  * Hosted at https://walkeros.io/schema/flow/v1.json
3665
3662
  *
3666
- * @returns JSON Schema (Draft 7) representation of SetupSchema
3663
+ * @returns JSON Schema (Draft 7) representation of ConfigSchema
3667
3664
  */
3668
- declare const setupJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
3665
+ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<readonly [z.ZodObject<{
3669
3666
  $schema: z.ZodOptional<z.ZodString>;
3670
3667
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3671
3668
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3848,13 +3845,13 @@ declare const setupJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodUnion<re
3848
3845
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3849
3846
  }, z.core.$strip>]>>;
3850
3847
  /**
3851
- * Generate JSON Schema for Flow.SetupV2.
3848
+ * Generate JSON Schema for Flow.ConfigV2.
3852
3849
  *
3853
3850
  * @remarks
3854
3851
  * Used for IDE validation of v2 configurations with data contracts.
3855
3852
  * Hosted at https://walkeros.io/schema/flow/v2.json
3856
3853
  */
3857
- declare const setupV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
3854
+ declare const configV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
3858
3855
  $schema: z.ZodOptional<z.ZodString>;
3859
3856
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3860
3857
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -3947,14 +3944,14 @@ declare const setupV2JsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject
3947
3944
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodNumber]>>>;
3948
3945
  }, z.core.$strip>>;
3949
3946
  /**
3950
- * Generate JSON Schema for Flow.Config.
3947
+ * Generate JSON Schema for Flow.Settings.
3951
3948
  *
3952
3949
  * @remarks
3953
- * Used for validating individual flow configurations.
3950
+ * Used for validating individual flow settings.
3954
3951
  *
3955
- * @returns JSON Schema (Draft 7) representation of ConfigSchema
3952
+ * @returns JSON Schema (Draft 7) representation of SettingsSchema
3956
3953
  */
3957
- declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3954
+ declare const settingsJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3958
3955
  /**
3959
3956
  * Generate JSON Schema for SourceReference.
3960
3957
  *
@@ -3993,6 +3990,7 @@ declare const transformerReferenceJsonSchema: z.core.ZodStandardJSONSchemaPayloa
3993
3990
  declare const storeReferenceJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3994
3991
 
3995
3992
  declare const flow_ConfigSchema: typeof ConfigSchema;
3993
+ declare const flow_ConfigV2Schema: typeof ConfigV2Schema;
3996
3994
  declare const flow_ContractActionsSchema: typeof ContractActionsSchema;
3997
3995
  declare const flow_ContractSchema: typeof ContractSchema;
3998
3996
  declare const flow_ContractSchemaEntry: typeof ContractSchemaEntry;
@@ -4002,8 +4000,7 @@ declare const flow_InlineCodeSchema: typeof InlineCodeSchema;
4002
4000
  declare const flow_PackagesSchema: typeof PackagesSchema;
4003
4001
  declare const flow_PrimitiveSchema: typeof PrimitiveSchema;
4004
4002
  declare const flow_ServerSchema: typeof ServerSchema;
4005
- declare const flow_SetupSchema: typeof SetupSchema;
4006
- declare const flow_SetupV2Schema: typeof SetupV2Schema;
4003
+ declare const flow_SettingsSchema: typeof SettingsSchema;
4007
4004
  declare const flow_SourceReferenceSchema: typeof SourceReferenceSchema;
4008
4005
  declare const flow_StepExampleSchema: typeof StepExampleSchema;
4009
4006
  declare const flow_StepExamplesSchema: typeof StepExamplesSchema;
@@ -4012,18 +4009,18 @@ declare const flow_TransformerReferenceSchema: typeof TransformerReferenceSchema
4012
4009
  declare const flow_VariablesSchema: typeof VariablesSchema;
4013
4010
  declare const flow_WebSchema: typeof WebSchema;
4014
4011
  declare const flow_configJsonSchema: typeof configJsonSchema;
4012
+ declare const flow_configV2JsonSchema: typeof configV2JsonSchema;
4015
4013
  declare const flow_destinationReferenceJsonSchema: typeof destinationReferenceJsonSchema;
4016
4014
  declare const flow_parseConfig: typeof parseConfig;
4017
- declare const flow_parseSetup: typeof parseSetup;
4015
+ declare const flow_parseSettings: typeof parseSettings;
4018
4016
  declare const flow_safeParseConfig: typeof safeParseConfig;
4019
- declare const flow_safeParseSetup: typeof safeParseSetup;
4020
- declare const flow_setupJsonSchema: typeof setupJsonSchema;
4021
- declare const flow_setupV2JsonSchema: typeof setupV2JsonSchema;
4017
+ declare const flow_safeParseSettings: typeof safeParseSettings;
4018
+ declare const flow_settingsJsonSchema: typeof settingsJsonSchema;
4022
4019
  declare const flow_sourceReferenceJsonSchema: typeof sourceReferenceJsonSchema;
4023
4020
  declare const flow_storeReferenceJsonSchema: typeof storeReferenceJsonSchema;
4024
4021
  declare const flow_transformerReferenceJsonSchema: typeof transformerReferenceJsonSchema;
4025
4022
  declare namespace flow {
4026
- export { flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationReferenceSchema as DestinationReferenceSchema, flow_InlineCodeSchema as InlineCodeSchema, flow_PackagesSchema as PackagesSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_ServerSchema as ServerSchema, flow_SetupSchema as SetupSchema, flow_SetupV2Schema as SetupV2Schema, flow_SourceReferenceSchema as SourceReferenceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreReferenceSchema as StoreReferenceSchema, flow_TransformerReferenceSchema as TransformerReferenceSchema, flow_VariablesSchema as VariablesSchema, flow_WebSchema as WebSchema, flow_configJsonSchema as configJsonSchema, flow_destinationReferenceJsonSchema as destinationReferenceJsonSchema, flow_parseConfig as parseConfig, flow_parseSetup as parseSetup, flow_safeParseConfig as safeParseConfig, flow_safeParseSetup as safeParseSetup, flow_setupJsonSchema as setupJsonSchema, flow_setupV2JsonSchema as setupV2JsonSchema, flow_sourceReferenceJsonSchema as sourceReferenceJsonSchema, flow_storeReferenceJsonSchema as storeReferenceJsonSchema, flow_transformerReferenceJsonSchema as transformerReferenceJsonSchema };
4023
+ export { flow_ConfigSchema as ConfigSchema, flow_ConfigV2Schema as ConfigV2Schema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationReferenceSchema as DestinationReferenceSchema, flow_InlineCodeSchema as InlineCodeSchema, flow_PackagesSchema as PackagesSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_ServerSchema as ServerSchema, flow_SettingsSchema as SettingsSchema, flow_SourceReferenceSchema as SourceReferenceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreReferenceSchema as StoreReferenceSchema, flow_TransformerReferenceSchema as TransformerReferenceSchema, flow_VariablesSchema as VariablesSchema, flow_WebSchema as WebSchema, flow_configJsonSchema as configJsonSchema, flow_configV2JsonSchema as configV2JsonSchema, flow_destinationReferenceJsonSchema as destinationReferenceJsonSchema, flow_parseConfig as parseConfig, flow_parseSettings as parseSettings, flow_safeParseConfig as safeParseConfig, flow_safeParseSettings as safeParseSettings, flow_settingsJsonSchema as settingsJsonSchema, flow_sourceReferenceJsonSchema as sourceReferenceJsonSchema, flow_storeReferenceJsonSchema as storeReferenceJsonSchema, flow_transformerReferenceJsonSchema as transformerReferenceJsonSchema };
4027
4024
  }
4028
4025
 
4029
4026
  /**
@@ -4149,17 +4146,17 @@ interface IntelliSenseContext {
4149
4146
  }
4150
4147
 
4151
4148
  /**
4152
- * Validate a Flow.Setup JSON string.
4149
+ * Validate a Flow.Config JSON string.
4153
4150
  *
4154
4151
  * Performs three levels of validation:
4155
4152
  * 1. JSON syntax — parse error with line/column
4156
- * 2. Schema — Zod SetupSchema validation with mapped positions
4153
+ * 2. Schema — Zod ConfigSchema validation with mapped positions
4157
4154
  * 3. References — checks $var., $def., $secret. against extracted context
4158
4155
  *
4159
4156
  * Returns errors, warnings, and extracted IntelliSenseContext as a byproduct.
4160
4157
  * Pure function — works in Node.js (CLI/MCP) and browser (CodeBox).
4161
4158
  */
4162
- declare function validateFlowSetup(json: string): ValidationResult;
4159
+ declare function validateFlowConfig(json: string): ValidationResult;
4163
4160
 
4164
4161
  interface ValidationIssue {
4165
4162
  message: string;
@@ -4409,8 +4406,6 @@ declare const index_RuleSchema: typeof RuleSchema;
4409
4406
  declare const index_RulesSchema: typeof RulesSchema;
4410
4407
  declare const index_RuntimeInstanceConfig: typeof RuntimeInstanceConfig;
4411
4408
  declare const index_SetSchema: typeof SetSchema;
4412
- declare const index_SetupSchema: typeof SetupSchema;
4413
- declare const index_SetupV2Schema: typeof SetupV2Schema;
4414
4409
  declare const index_SourceReferenceSchema: typeof SourceReferenceSchema;
4415
4410
  declare const index_SourceSchema: typeof SourceSchema;
4416
4411
  declare const index_SourceTypeSchema: typeof SourceTypeSchema;
@@ -4427,6 +4422,7 @@ declare const index_ValuesSchema: typeof ValuesSchema;
4427
4422
  declare const index_VerboseConfig: typeof VerboseConfig;
4428
4423
  declare const index_VersionSchema: typeof VersionSchema;
4429
4424
  declare const index_configJsonSchema: typeof configJsonSchema;
4425
+ declare const index_configV2JsonSchema: typeof configV2JsonSchema;
4430
4426
  declare const index_consentJsonSchema: typeof consentJsonSchema;
4431
4427
  declare const index_createArraySchema: typeof createArraySchema;
4432
4428
  declare const index_createConsentConfig: typeof createConsentConfig;
@@ -4443,28 +4439,27 @@ declare const index_loopJsonSchema: typeof loopJsonSchema;
4443
4439
  declare const index_mapJsonSchema: typeof mapJsonSchema;
4444
4440
  declare const index_orderedPropertiesJsonSchema: typeof orderedPropertiesJsonSchema;
4445
4441
  declare const index_parseConfig: typeof parseConfig;
4446
- declare const index_parseSetup: typeof parseSetup;
4442
+ declare const index_parseSettings: typeof parseSettings;
4447
4443
  declare const index_partialEventJsonSchema: typeof partialEventJsonSchema;
4448
4444
  declare const index_policyJsonSchema: typeof policyJsonSchema;
4449
4445
  declare const index_propertiesJsonSchema: typeof propertiesJsonSchema;
4450
4446
  declare const index_ruleJsonSchema: typeof ruleJsonSchema;
4451
4447
  declare const index_rulesJsonSchema: typeof rulesJsonSchema;
4452
4448
  declare const index_safeParseConfig: typeof safeParseConfig;
4453
- declare const index_safeParseSetup: typeof safeParseSetup;
4449
+ declare const index_safeParseSettings: typeof safeParseSettings;
4454
4450
  declare const index_setJsonSchema: typeof setJsonSchema;
4455
- declare const index_setupJsonSchema: typeof setupJsonSchema;
4456
- declare const index_setupV2JsonSchema: typeof setupV2JsonSchema;
4451
+ declare const index_settingsJsonSchema: typeof settingsJsonSchema;
4457
4452
  declare const index_sourceReferenceJsonSchema: typeof sourceReferenceJsonSchema;
4458
4453
  declare const index_sourceTypeJsonSchema: typeof sourceTypeJsonSchema;
4459
4454
  declare const index_storeReferenceJsonSchema: typeof storeReferenceJsonSchema;
4460
4455
  declare const index_userJsonSchema: typeof userJsonSchema;
4461
- declare const index_validateFlowSetup: typeof validateFlowSetup;
4456
+ declare const index_validateFlowConfig: typeof validateFlowConfig;
4462
4457
  declare const index_valueConfigJsonSchema: typeof valueConfigJsonSchema;
4463
4458
  declare const index_valueJsonSchema: typeof valueJsonSchema;
4464
4459
  declare const index_z: typeof z;
4465
4460
  declare const index_zodToSchema: typeof zodToSchema;
4466
4461
  declare namespace index {
4467
- export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, index_DestinationReferenceSchema as DestinationReferenceSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, ConfigSchema as FlowConfigSchema, flow as FlowSchemas, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_IdConfig as IdConfig, index_Identifier as Identifier, index_InitConfig as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, index_SetupSchema as SetupSchema, index_SetupV2Schema as SetupV2Schema, index_SourceReferenceSchema as SourceReferenceSchema, index_SourceSchema as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, index_StoreReferenceSchema as StoreReferenceSchema, index_TaggingVersion as TaggingVersion, index_Timestamp as Timestamp, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, index_VersionSchema as VersionSchema, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationReferenceJsonSchema as destinationReferenceJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseSetup as parseSetup, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseSetup as safeParseSetup, index_setJsonSchema as setJsonSchema, index_setupJsonSchema as setupJsonSchema, index_setupV2JsonSchema as setupV2JsonSchema, index_sourceReferenceJsonSchema as sourceReferenceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeReferenceJsonSchema as storeReferenceJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowSetup as validateFlowSetup, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
4462
+ export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, index_DestinationReferenceSchema as DestinationReferenceSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, ConfigSchema as FlowConfigSchema, ConfigV2Schema as FlowConfigV2Schema, flow as FlowSchemas, SettingsSchema as FlowSettingsSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_IdConfig as IdConfig, index_Identifier as Identifier, index_InitConfig as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, index_SourceReferenceSchema as SourceReferenceSchema, index_SourceSchema as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, index_StoreReferenceSchema as StoreReferenceSchema, index_TaggingVersion as TaggingVersion, index_Timestamp as Timestamp, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, index_VersionSchema as VersionSchema, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_configV2JsonSchema as configV2JsonSchema, index_consentJsonSchema as consentJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationReferenceJsonSchema as destinationReferenceJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseSettings as parseSettings, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseSettings as safeParseSettings, index_setJsonSchema as setJsonSchema, index_settingsJsonSchema as settingsJsonSchema, index_sourceReferenceJsonSchema as sourceReferenceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeReferenceJsonSchema as storeReferenceJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
4468
4463
  }
4469
4464
 
4470
4465
  export { type JSONSchema, index as schemas, zodToSchema };