@onereach/state-machine-contracts 1.0.0-framework.12 → 1.0.0-framework.13

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
- {"version":3,"file":"index.mjs","names":["__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","canonical","creation","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","instance","binding","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","instanceRequest","executionRequest","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","isValid","fields","validate","validator","isValid","fields","validate","validator","functionKind","implementation","functionDefinition","isValid","fields","validate","validator","embeddedSchema","embeddedObjectSchema"],"sources":["../src/contracts/contract-issues.ts","../src/contracts/contract-values.ts","../src/contracts/contract.ts","../generated/CreateStateMachineTemplateSchema.mjs","../generated/StateMachineTemplateSchema.mjs","../src/contracts/projection.ts","../src/contracts/template-creation.ts","../src/contracts/template-semantics.ts","../src/contracts/templates.ts","../generated/StateMachineInstanceSchema.mjs","../generated/StateMachineTemplateBindingSchema.mjs","../src/contracts/instances.ts","../generated/CreateStateMachineInstanceRequestSchema.mjs","../generated/ExecuteStateMachineFunctionRequestSchema.mjs","../src/contracts/requests.ts","../generated/FunctionImplementationSchema.mjs","../generated/FunctionKindSchema.mjs","../generated/StateMachineFunctionDefinitionSchema.mjs","../src/contracts/functions.ts","../generated/JsonSchemaSchema.mjs","../generated/ObjectJsonSchemaSchema.mjs","../src/contracts/json-schema.ts"],"sourcesContent":["import type { ContractIssue, StandardContractIssue } from './types.ts';\n\nexport interface CompiledContractIssue {\n instancePath?: string;\n path?: string;\n message?: string;\n keyword?: string;\n schemaPath?: string;\n params?: unknown;\n}\n\nexport function appendJsonPointer(path: string, key: string | number): string {\n const escaped = String(key).replaceAll('~', '~0').replaceAll('/', '~1');\n return `${path}/${escaped}`;\n}\n\nexport function normalizeContractIssue(issue: CompiledContractIssue): ContractIssue {\n let path = issue.instancePath ?? issue.path ?? '';\n const parameters = issue.params;\n if (\n parameters !== null &&\n typeof parameters === 'object' &&\n issue.keyword === 'required' &&\n 'missingProperty' in parameters &&\n typeof parameters.missingProperty === 'string'\n )\n path = appendJsonPointer(path, parameters.missingProperty);\n return {\n path,\n message: issue.message ?? 'Invalid value',\n };\n}\n\nexport function toStandardIssue(issue: ContractIssue): StandardContractIssue {\n return {\n message: issue.message,\n path:\n issue.path === ''\n ? []\n : issue.path\n .slice(1)\n .split('/')\n .map((part) => part.replaceAll('~1', '/').replaceAll('~0', '~')),\n };\n}\n\nexport function fromStandardIssue(issue: StandardContractIssue): ContractIssue {\n let path = '';\n for (const key of issue.path) path = appendJsonPointer(path, key);\n return {\n path,\n message: issue.message,\n };\n}\n","import { appendJsonPointer } from './contract-issues.ts';\nimport type { ContractIssue } from './types.ts';\n\n/**\n * The value-preparation subset used by authored contracts, not a general JSON Schema interpreter.\n */\nexport interface ContractSchema {\n description?: string;\n const?: unknown;\n enum?: readonly unknown[];\n type?: string;\n properties?: Record<string, ContractSchema>;\n items?: ContractSchema;\n additionalProperties?: boolean;\n default?: unknown;\n}\n\n/**\n * Copy supported records/arrays and reject unknown closed-contract keys.\n * This never applies defaults or mutates input.\n */\nexport function prepareContractValue(\n schema: ContractSchema,\n value: unknown,\n): { data: unknown; issues: ContractIssue[] } {\n const issues: ContractIssue[] = [];\n const data = prepare(schema, value, '', issues);\n return { data, issues };\n}\n\n/**\n * Recognize Object.prototype across realms without invoking an input-owned constructor getter.\n */\nfunction isPlainRecord(value: object): boolean {\n const prototype: unknown = Object.getPrototypeOf(value);\n if (prototype === null || prototype === Object.prototype) return true;\n if (typeof prototype !== 'object' || Object.getPrototypeOf(prototype) !== null) return false;\n const constructor: unknown = Object.getOwnPropertyDescriptor(prototype, 'constructor')?.value;\n return (\n typeof constructor === 'function' &&\n Function.prototype.toString.call(constructor) === Function.prototype.toString.call(Object)\n );\n}\n\nfunction prepare(schema: ContractSchema, value: unknown, path: string, issues: ContractIssue[]): unknown {\n if (schema.type === 'array' && Array.isArray(value) && schema.items) {\n const items = schema.items;\n const result: unknown[] = [];\n // eslint-disable-next-line unicorn/no-for-loop -- Input-owned iterators and array methods must not execute.\n for (let index = 0; index < value.length; index++) {\n const item: unknown = value[index];\n result.push(prepare(items, item, appendJsonPointer(path, index), issues));\n }\n return result;\n }\n if (schema.type !== 'object') return value;\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return value;\n if (!isPlainRecord(value)) {\n issues.push({ path, message: 'Expected a plain object' });\n return value;\n }\n if (schema.additionalProperties === false) {\n for (const key of Object.keys(value)) {\n if (!Object.hasOwn(schema.properties ?? {}, key))\n issues.push({\n path: appendJsonPointer(path, key),\n message: `Unknown contract property: ${key}`,\n });\n }\n }\n // Do not enumerate values of rejected keys: unknown getters must never run.\n const result: Record<string, unknown> =\n schema.additionalProperties === false ? {} : Object.fromEntries(Object.entries(value));\n const properties = Object.entries(schema.properties ?? {});\n for (const [key, property] of properties) {\n const isPresent = Object.hasOwn(value, key);\n const child: unknown = isPresent ? (value as Record<string, unknown>)[key] : undefined;\n if (isPresent && child === undefined && Object.hasOwn(property, 'default')) {\n issues.push({\n path: appendJsonPointer(path, key),\n message: 'A supplied defaulted field must not be undefined',\n });\n }\n const data = prepare(property, child, appendJsonPointer(path, key), issues);\n if (data !== undefined)\n Object.defineProperty(result, key, { value: data, enumerable: true, writable: true, configurable: true });\n }\n return result;\n}\n","import type { StandardSchemaV1 } from '@standard-schema/spec';\n\nimport { fromStandardIssue, normalizeContractIssue, toStandardIssue } from './contract-issues.ts';\nimport type { CompiledContractIssue } from './contract-issues.ts';\nimport { prepareContractValue } from './contract-values.ts';\nimport type { ContractSchema } from './contract-values.ts';\nimport type { ContractIssue, StandardContractResult } from './types.ts';\n\nexport class ContractValidationError extends Error {\n readonly issues: readonly ContractIssue[];\n\n constructor(issues: readonly ContractIssue[]) {\n super('Invalid state-machine contract');\n this.name = 'ContractValidationError';\n this.issues = issues;\n }\n}\n\nexport type ContractValidationResult<T> =\n { success: true; data: T } | { success: false; error: ContractValidationError };\n\nexport interface CompiledContract {\n validate(value: unknown): { valid: boolean; errors: readonly CompiledContractIssue[] };\n}\n\nexport interface ContractValidator<Input, Output> extends StandardSchemaV1<Input, Output> {\n readonly '~standard': Omit<StandardSchemaV1.Props<Input, Output>, 'validate'> & {\n readonly validate: (value: unknown) => StandardContractResult<Output>;\n };\n /**\n * Validate and copy declared contract structures, not opaque nested data.\n * Open-record descendants may retain input references; this is not a deep clone.\n */\n parse(value: unknown): Output;\n /**\n * Return the same data ownership semantics as parse without throwing on invalid input.\n */\n safeParse(value: unknown): ContractValidationResult<Output>;\n}\n\nexport function contract<T>(\n schema: ContractSchema,\n compiled: CompiledContract,\n semantic?: (value: T) => ContractIssue[],\n): ContractValidator<T, T> {\n return contractFromStandard<T, T>((value) => {\n const prepared = prepareContractValue(schema, value);\n if (prepared.issues.length > 0) return { issues: prepared.issues.map((issue) => toStandardIssue(issue)) };\n const { data } = prepared;\n const result = compiled.validate(data);\n const issues = result.valid\n ? (semantic?.(data as T) ?? [])\n : result.errors.map((issue) => normalizeContractIssue(issue));\n return result.valid && issues.length === 0\n ? { value: data as T }\n : { issues: issues.map((issue) => toStandardIssue(issue)) };\n });\n}\n\n/**\n * Attach parsing conveniences to one canonical synchronous Standard Schema operation.\n * Only conveniences construct exceptions or convert paths back to JSON Pointers.\n */\nexport function contractFromStandard<Input, Output>(\n validate: (value: unknown) => StandardContractResult<Output>,\n): ContractValidator<Input, Output> {\n const standard: ContractValidator<Input, Output>['~standard'] = {\n version: 1,\n vendor: '@onereach/state-machine-contracts',\n validate,\n };\n const safeParse = (value: unknown): ContractValidationResult<Output> => {\n const result = standard.validate(value);\n return result.issues\n ? { success: false, error: new ContractValidationError(result.issues.map((issue) => fromStandardIssue(issue))) }\n : { success: true, data: result.value };\n };\n return {\n '~standard': standard,\n safeParse,\n parse(value: unknown): Output {\n const result = safeParse(value);\n if (!result.success) throw result.error;\n return result.data;\n },\n };\n}\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/CreateStateMachineTemplateSchema.mjs\nconst isValid = validate22;\nconst schema33 = {\n\t\"description\": \"Persisted state-machine template defining shared state, initial state, and available functions.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"stateSchema\",\n\t\t\"initialState\",\n\t\t\"functions\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted template format, not the logical application version.\",\n\t\t\t\"const\": 1,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"version\": {\n\t\t\t\"description\": \"Optional logical application version. This is different from a storage-driver revision.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the state machine.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"stateSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema shared by every function to validate instance state. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"initialState\": {\n\t\t\t\"description\": \"Default state used when creating an instance without an explicit state override. Must satisfy stateSchema when the template is prepared.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"functions\": {\n\t\t\t\"description\": \"Functions available on instances of this template. Names must be unique; the template parser enforces this semantic rule.\",\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"name\",\n\t\t\t\t\t\"kind\",\n\t\t\t\t\t\"inputSchema\",\n\t\t\t\t\t\"implementation\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"maxLength\": 64,\n\t\t\t\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"kind\": {\n\t\t\t\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"inputSchema\": {\n\t\t\t\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\"type\"],\n\t\t\t\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\t\t\t\"const\": \"object\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t} }\n\t\t\t\t\t},\n\t\t\t\t\t\"outputSchema\": {\n\t\t\t\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t},\n\t\t\t\t\t\"implementation\": {\n\t\t\t\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\"abi\",\n\t\t\t\t\t\t\t\"format\",\n\t\t\t\t\t\t\t\"code\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"runtime\": {\n\t\t\t\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"abi\": {\n\t\t\t\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"format\": {\n\t\t\t\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Creation defaults an omitted list to [].\",\n\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"default\": []\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"annotations\": {\n\t\t\t\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"pure\": {\n\t\t\t\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"destructive\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the template. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate22(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate22.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.stateSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"stateSchema\" },\n\t\t\t\tmessage: \"must have required property 'stateSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.initialState === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"initialState\" },\n\t\t\t\tmessage: \"must have required property 'initialState'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functions === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functions\" },\n\t\t\t\tmessage: \"must have required property 'functions'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"schemaVersion\" || key0 === \"id\" || key0 === \"version\" || key0 === \"description\" || key0 === \"stateSchema\" || key0 === \"initialState\" || key0 === \"functions\" || key0 === \"metadata\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (1 !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 1 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.stateSchema !== void 0) {\n\t\t\tlet data4 = data.stateSchema;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {\n\t\t\t\tif (data4.type === void 0) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data4.type !== void 0) {\n\t\t\t\t\tlet data5 = data4.type;\n\t\t\t\t\tif (typeof data5 !== \"string\") {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data5) {\n\t\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/stateSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.initialState !== void 0) {\n\t\t\tlet data6 = data.initialState;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {} else {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/initialState\",\n\t\t\t\t\tschemaPath: \"#/properties/initialState/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functions !== void 0) {\n\t\t\tlet data7 = data.functions;\n\t\t\tif (Array.isArray(data7)) {\n\t\t\t\tconst len0 = data7.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) {\n\t\t\t\t\tlet data8 = data7[i0];\n\t\t\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {\n\t\t\t\t\t\tif (data8.name === void 0) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind === void 0) {\n\t\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema === void 0) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation === void 0) {\n\t\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const key1 in data8) if (!(key1 === \"name\" || key1 === \"description\" || key1 === \"kind\" || key1 === \"inputSchema\" || key1 === \"outputSchema\" || key1 === \"implementation\" || key1 === \"annotations\" || key1 === \"metadata\")) {\n\t\t\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/additionalProperties\",\n\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.name !== void 0) {\n\t\t\t\t\t\t\tlet data9 = data8.name;\n\t\t\t\t\t\t\tif (typeof data9 === \"string\") {\n\t\t\t\t\t\t\t\tif (func1(data9) > 64) {\n\t\t\t\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/maxLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (func1(data9) < 1) {\n\t\t\t\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/minLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!pattern4.test(data9)) {\n\t\t\t\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/pattern\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.description !== void 0) {\n\t\t\t\t\t\t\tif (typeof data8.description !== \"string\") {\n\t\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/description\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/description/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind !== void 0) {\n\t\t\t\t\t\t\tlet data11 = data8.kind;\n\t\t\t\t\t\t\tif (!(data11 === \"query\" || data11 === \"mutation\")) {\n\t\t\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/kind\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/kind/enum\",\n\t\t\t\t\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\t\t\t\t\tparams: { allowedValues: schema33.properties.functions.items.properties.kind.enum },\n\t\t\t\t\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data12 = data8.inputSchema;\n\t\t\t\t\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {\n\t\t\t\t\t\t\t\tif (data12.type === void 0) {\n\t\t\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data12.type !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data13 = data12.type;\n\t\t\t\t\t\t\t\t\tif (typeof data13 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"object\" !== data13) {\n\t\t\t\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.outputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data14 = data8.outputSchema;\n\t\t\t\t\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {} else {\n\t\t\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/outputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/outputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation !== void 0) {\n\t\t\t\t\t\t\tlet data15 = data8.implementation;\n\t\t\t\t\t\t\tif (data15 && typeof data15 == \"object\" && !Array.isArray(data15)) {\n\t\t\t\t\t\t\t\tif (data15.runtime === void 0) {\n\t\t\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi === void 0) {\n\t\t\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format === void 0) {\n\t\t\t\t\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code === void 0) {\n\t\t\t\t\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const key2 in data15) if (!(key2 === \"runtime\" || key2 === \"abi\" || key2 === \"format\" || key2 === \"code\" || key2 === \"capabilities\" || key2 === \"timeoutMs\")) {\n\t\t\t\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.runtime !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data16 = data15.runtime;\n\t\t\t\t\t\t\t\t\tif (typeof data16 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"javascript\" !== data16) {\n\t\t\t\t\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data17 = data15.abi;\n\t\t\t\t\t\t\t\t\tif (typeof data17 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"state-machine-function-v1\" !== data17) {\n\t\t\t\t\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data18 = data15.format;\n\t\t\t\t\t\t\t\t\tif (typeof data18 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err42 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err42);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"async-function-body\" !== data18) {\n\t\t\t\t\t\t\t\t\t\tconst err43 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err43);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data19 = data15.code;\n\t\t\t\t\t\t\t\t\tif (typeof data19 === \"string\") {\n\t\t\t\t\t\t\t\t\t\tif (func1(data19) < 1) {\n\t\t\t\t\t\t\t\t\t\t\tconst err44 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err44];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err44);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err45 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err45];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err45);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data20 = data15.capabilities;\n\t\t\t\t\t\t\t\t\tif (Array.isArray(data20)) {\n\t\t\t\t\t\t\t\t\t\tconst len1 = data20.length;\n\t\t\t\t\t\t\t\t\t\tfor (let i1 = 0; i1 < len1; i1++) if (typeof data20[i1] !== \"string\") {\n\t\t\t\t\t\t\t\t\t\t\tconst err46 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities/\" + i1,\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err46];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err46);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err47 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err47];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err47);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.timeoutMs !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data22 = data15.timeoutMs;\n\t\t\t\t\t\t\t\t\tif (!(typeof data22 == \"number\" && !(data22 % 1) && !isNaN(data22) && isFinite(data22))) {\n\t\t\t\t\t\t\t\t\t\tconst err48 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err48];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err48);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (typeof data22 == \"number\" && isFinite(data22)) {\n\t\t\t\t\t\t\t\t\t\tif (data22 > 9007199254740991 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err49 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err49];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err49);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (data22 < 1 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err50 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err50];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err50);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err51 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err51];\n\t\t\t\t\t\t\t\telse vErrors.push(err51);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.annotations !== void 0) {\n\t\t\t\t\t\t\tlet data23 = data8.annotations;\n\t\t\t\t\t\t\tif (data23 && typeof data23 == \"object\" && !Array.isArray(data23)) {\n\t\t\t\t\t\t\t\tfor (const key3 in data23) if (!(key3 === \"exposeAsTool\" || key3 === \"pure\" || key3 === \"idempotent\" || key3 === \"destructive\" || key3 === \"deprecated\")) {\n\t\t\t\t\t\t\t\t\tconst err52 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key3 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err52];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err52);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.exposeAsTool !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err53 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err53];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err53);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.pure !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.pure !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err54 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/pure\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err54];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err54);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.idempotent !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.idempotent !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err55 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/idempotent\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err55];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err55);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.destructive !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.destructive !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err56 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/destructive\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err56];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err56);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.deprecated !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.deprecated !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err57 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/deprecated\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err57];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err57);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err58 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err58];\n\t\t\t\t\t\t\t\telse vErrors.push(err58);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.metadata !== void 0) {\n\t\t\t\t\t\t\tlet data29 = data8.metadata;\n\t\t\t\t\t\t\tif (data29 && typeof data29 == \"object\" && !Array.isArray(data29)) {} else {\n\t\t\t\t\t\t\t\tconst err59 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/metadata\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/metadata/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err59];\n\t\t\t\t\t\t\t\telse vErrors.push(err59);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err60 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err60];\n\t\t\t\t\t\telse vErrors.push(err60);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err61 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functions\",\n\t\t\t\t\tschemaPath: \"#/properties/functions/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err61];\n\t\t\t\telse vErrors.push(err61);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data30 = data.metadata;\n\t\t\tif (data30 && typeof data30 == \"object\" && !Array.isArray(data30)) {} else {\n\t\t\t\tconst err62 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err62];\n\t\t\t\telse vErrors.push(err62);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err63 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err63];\n\t\telse vErrors.push(err63);\n\t\terrors++;\n\t}\n\tvalidate22.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate22.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"version\",\n\t\"description\",\n\t\"stateSchema\",\n\t\"initialState\",\n\t\"functions\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/StateMachineTemplateSchema.mjs\nconst isValid = validate31;\nconst schema42 = {\n\t\"description\": \"Persisted state-machine template defining shared state, initial state, and available functions.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"stateSchema\",\n\t\t\"initialState\",\n\t\t\"functions\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted template format, not the logical application version.\",\n\t\t\t\"const\": 1,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"version\": {\n\t\t\t\"description\": \"Optional logical application version. This is different from a storage-driver revision.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the state machine.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"stateSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema shared by every function to validate instance state. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"initialState\": {\n\t\t\t\"description\": \"Default state used when creating an instance without an explicit state override. Must satisfy stateSchema when the template is prepared.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"functions\": {\n\t\t\t\"description\": \"Functions available on instances of this template. Names must be unique; the template parser enforces this semantic rule.\",\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"name\",\n\t\t\t\t\t\"kind\",\n\t\t\t\t\t\"inputSchema\",\n\t\t\t\t\t\"implementation\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"maxLength\": 64,\n\t\t\t\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"kind\": {\n\t\t\t\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"inputSchema\": {\n\t\t\t\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\"type\"],\n\t\t\t\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\t\t\t\"const\": \"object\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t} }\n\t\t\t\t\t},\n\t\t\t\t\t\"outputSchema\": {\n\t\t\t\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t},\n\t\t\t\t\t\"implementation\": {\n\t\t\t\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\"abi\",\n\t\t\t\t\t\t\t\"format\",\n\t\t\t\t\t\t\t\"code\",\n\t\t\t\t\t\t\t\"capabilities\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"runtime\": {\n\t\t\t\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"abi\": {\n\t\t\t\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"format\": {\n\t\t\t\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Required in canonical definitions.\",\n\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"annotations\": {\n\t\t\t\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"pure\": {\n\t\t\t\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"destructive\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the template. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate31(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate31.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.stateSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"stateSchema\" },\n\t\t\t\tmessage: \"must have required property 'stateSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.initialState === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"initialState\" },\n\t\t\t\tmessage: \"must have required property 'initialState'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functions === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functions\" },\n\t\t\t\tmessage: \"must have required property 'functions'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"schemaVersion\" || key0 === \"id\" || key0 === \"version\" || key0 === \"description\" || key0 === \"stateSchema\" || key0 === \"initialState\" || key0 === \"functions\" || key0 === \"metadata\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (1 !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 1 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.stateSchema !== void 0) {\n\t\t\tlet data4 = data.stateSchema;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {\n\t\t\t\tif (data4.type === void 0) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data4.type !== void 0) {\n\t\t\t\t\tlet data5 = data4.type;\n\t\t\t\t\tif (typeof data5 !== \"string\") {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data5) {\n\t\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/stateSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.initialState !== void 0) {\n\t\t\tlet data6 = data.initialState;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {} else {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/initialState\",\n\t\t\t\t\tschemaPath: \"#/properties/initialState/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functions !== void 0) {\n\t\t\tlet data7 = data.functions;\n\t\t\tif (Array.isArray(data7)) {\n\t\t\t\tconst len0 = data7.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) {\n\t\t\t\t\tlet data8 = data7[i0];\n\t\t\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {\n\t\t\t\t\t\tif (data8.name === void 0) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind === void 0) {\n\t\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema === void 0) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation === void 0) {\n\t\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const key1 in data8) if (!(key1 === \"name\" || key1 === \"description\" || key1 === \"kind\" || key1 === \"inputSchema\" || key1 === \"outputSchema\" || key1 === \"implementation\" || key1 === \"annotations\" || key1 === \"metadata\")) {\n\t\t\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/additionalProperties\",\n\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.name !== void 0) {\n\t\t\t\t\t\t\tlet data9 = data8.name;\n\t\t\t\t\t\t\tif (typeof data9 === \"string\") {\n\t\t\t\t\t\t\t\tif (func1(data9) > 64) {\n\t\t\t\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/maxLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (func1(data9) < 1) {\n\t\t\t\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/minLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!pattern4.test(data9)) {\n\t\t\t\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/pattern\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.description !== void 0) {\n\t\t\t\t\t\t\tif (typeof data8.description !== \"string\") {\n\t\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/description\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/description/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind !== void 0) {\n\t\t\t\t\t\t\tlet data11 = data8.kind;\n\t\t\t\t\t\t\tif (!(data11 === \"query\" || data11 === \"mutation\")) {\n\t\t\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/kind\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/kind/enum\",\n\t\t\t\t\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\t\t\t\t\tparams: { allowedValues: schema42.properties.functions.items.properties.kind.enum },\n\t\t\t\t\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data12 = data8.inputSchema;\n\t\t\t\t\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {\n\t\t\t\t\t\t\t\tif (data12.type === void 0) {\n\t\t\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data12.type !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data13 = data12.type;\n\t\t\t\t\t\t\t\t\tif (typeof data13 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"object\" !== data13) {\n\t\t\t\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.outputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data14 = data8.outputSchema;\n\t\t\t\t\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {} else {\n\t\t\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/outputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/outputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation !== void 0) {\n\t\t\t\t\t\t\tlet data15 = data8.implementation;\n\t\t\t\t\t\t\tif (data15 && typeof data15 == \"object\" && !Array.isArray(data15)) {\n\t\t\t\t\t\t\t\tif (data15.runtime === void 0) {\n\t\t\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi === void 0) {\n\t\t\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format === void 0) {\n\t\t\t\t\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code === void 0) {\n\t\t\t\t\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities === void 0) {\n\t\t\t\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const key2 in data15) if (!(key2 === \"runtime\" || key2 === \"abi\" || key2 === \"format\" || key2 === \"code\" || key2 === \"capabilities\" || key2 === \"timeoutMs\")) {\n\t\t\t\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.runtime !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data16 = data15.runtime;\n\t\t\t\t\t\t\t\t\tif (typeof data16 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"javascript\" !== data16) {\n\t\t\t\t\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data17 = data15.abi;\n\t\t\t\t\t\t\t\t\tif (typeof data17 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"state-machine-function-v1\" !== data17) {\n\t\t\t\t\t\t\t\t\t\tconst err42 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err42);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data18 = data15.format;\n\t\t\t\t\t\t\t\t\tif (typeof data18 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err43 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err43);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"async-function-body\" !== data18) {\n\t\t\t\t\t\t\t\t\t\tconst err44 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err44];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err44);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data19 = data15.code;\n\t\t\t\t\t\t\t\t\tif (typeof data19 === \"string\") {\n\t\t\t\t\t\t\t\t\t\tif (func1(data19) < 1) {\n\t\t\t\t\t\t\t\t\t\t\tconst err45 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err45];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err45);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err46 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err46];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err46);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data20 = data15.capabilities;\n\t\t\t\t\t\t\t\t\tif (Array.isArray(data20)) {\n\t\t\t\t\t\t\t\t\t\tconst len1 = data20.length;\n\t\t\t\t\t\t\t\t\t\tfor (let i1 = 0; i1 < len1; i1++) if (typeof data20[i1] !== \"string\") {\n\t\t\t\t\t\t\t\t\t\t\tconst err47 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities/\" + i1,\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err47];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err47);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err48 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err48];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err48);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.timeoutMs !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data22 = data15.timeoutMs;\n\t\t\t\t\t\t\t\t\tif (!(typeof data22 == \"number\" && !(data22 % 1) && !isNaN(data22) && isFinite(data22))) {\n\t\t\t\t\t\t\t\t\t\tconst err49 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err49];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err49);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (typeof data22 == \"number\" && isFinite(data22)) {\n\t\t\t\t\t\t\t\t\t\tif (data22 > 9007199254740991 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err50 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err50];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err50);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (data22 < 1 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err51 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err51];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err51);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err52 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err52];\n\t\t\t\t\t\t\t\telse vErrors.push(err52);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.annotations !== void 0) {\n\t\t\t\t\t\t\tlet data23 = data8.annotations;\n\t\t\t\t\t\t\tif (data23 && typeof data23 == \"object\" && !Array.isArray(data23)) {\n\t\t\t\t\t\t\t\tfor (const key3 in data23) if (!(key3 === \"exposeAsTool\" || key3 === \"pure\" || key3 === \"idempotent\" || key3 === \"destructive\" || key3 === \"deprecated\")) {\n\t\t\t\t\t\t\t\t\tconst err53 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key3 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err53];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err53);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.exposeAsTool !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err54 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err54];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err54);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.pure !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.pure !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err55 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/pure\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err55];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err55);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.idempotent !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.idempotent !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err56 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/idempotent\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err56];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err56);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.destructive !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.destructive !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err57 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/destructive\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err57];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err57);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.deprecated !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.deprecated !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err58 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/deprecated\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err58];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err58);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err59 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err59];\n\t\t\t\t\t\t\t\telse vErrors.push(err59);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.metadata !== void 0) {\n\t\t\t\t\t\t\tlet data29 = data8.metadata;\n\t\t\t\t\t\t\tif (data29 && typeof data29 == \"object\" && !Array.isArray(data29)) {} else {\n\t\t\t\t\t\t\t\tconst err60 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/metadata\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/metadata/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err60];\n\t\t\t\t\t\t\t\telse vErrors.push(err60);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err61 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err61];\n\t\t\t\t\t\telse vErrors.push(err61);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err62 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functions\",\n\t\t\t\t\tschemaPath: \"#/properties/functions/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err62];\n\t\t\t\telse vErrors.push(err62);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data30 = data.metadata;\n\t\t\tif (data30 && typeof data30 == \"object\" && !Array.isArray(data30)) {} else {\n\t\t\t\tconst err63 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err63];\n\t\t\t\telse vErrors.push(err63);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err64 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err64];\n\t\telse vErrors.push(err64);\n\t\terrors++;\n\t}\n\tvalidate31.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate31.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"version\",\n\t\"description\",\n\t\"stateSchema\",\n\t\"initialState\",\n\t\"functions\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import type { StandardJSONSchemaV1 } from '@standard-schema/spec';\n\nimport type { ContractSchema } from './contract-values.ts';\nimport { contract } from './contract.ts';\nimport type { CompiledContract, ContractValidator } from './contract.ts';\nimport type { ContractIssue } from './types.ts';\n\nexport type Contract<Input, Output = Input> = StandardJSONSchemaV1<Input, Output> & ContractValidator<Input, Output>;\n\nfunction jsonSchema(schema: Record<string, unknown>, options: StandardJSONSchemaV1.Options): Record<string, unknown> {\n if (options.target !== 'draft-2020-12') throw new Error(`Unsupported JSON Schema target: ${options.target}`);\n if (options.libraryOptions && Object.keys(options.libraryOptions).length > 0)\n throw new Error('JSON Schema library options are unsupported; only structural projection is available');\n // Converters return independent structural projections, not full semantic validators.\n return structuredClone({ $schema: 'https://json-schema.org/draft/2020-12/schema', ...schema });\n}\n\nexport function withJsonSchema<Input, Output>(\n validator: ContractValidator<Input, Output>,\n input: Record<string, unknown>,\n output: Record<string, unknown> = input,\n): Contract<Input, Output> {\n return {\n ...validator,\n '~standard': {\n ...validator['~standard'],\n jsonSchema: {\n input: (options) => jsonSchema(input, options),\n output: (options) => jsonSchema(output, options),\n },\n },\n };\n}\n\nexport function canonicalContract<T>(\n schema: ContractSchema & Record<string, unknown>,\n compiled: CompiledContract,\n semantic?: (value: T) => ContractIssue[],\n): Contract<T> {\n return withJsonSchema(contract<T>(schema, compiled, semantic), schema);\n}\n","import { CreateStateMachineTemplateSchema } from '../schemas.ts';\nimport type { StateMachineTemplate, StateMachineTemplateDraft } from '../types.ts';\n\n/**\n * Transform a validated draft into a canonical candidate using fresh authored defaults.\n * Canonical validation remains the final boundary.\n */\nexport function applyTemplateCreationDefaults(draft: StateMachineTemplateDraft): StateMachineTemplate {\n const capabilitiesDefault =\n CreateStateMachineTemplateSchema.properties.functions.items.properties.implementation.properties.capabilities\n .default;\n return {\n ...draft,\n functions: draft.functions.map((function_) => ({\n ...function_,\n implementation: {\n ...function_.implementation,\n capabilities: function_.implementation.capabilities ?? [...capabilitiesDefault],\n },\n })),\n };\n}\n","import type { StateMachineTemplate } from '../types.ts';\n\nimport type { ContractIssue } from './types.ts';\n\nexport function validateTemplateSemantics(value: StateMachineTemplate): ContractIssue[] {\n const names = new Set<string>();\n const issues: ContractIssue[] = [];\n for (const [index, definition] of value.functions.entries()) {\n if (names.has(definition.name)) {\n issues.push({\n path: `/functions/${index}/name`,\n message: `Duplicate function name: ${definition.name}`,\n });\n }\n names.add(definition.name);\n }\n return issues;\n}\n","import * as creation from '../../generated/CreateStateMachineTemplateSchema.mjs';\nimport * as canonical from '../../generated/StateMachineTemplateSchema.mjs';\nimport { CreateStateMachineTemplateSchema, StateMachineTemplateSchema } from '../schemas.ts';\nimport type { StateMachineTemplate, StateMachineTemplateDraft } from '../types.ts';\n\nimport { contract, contractFromStandard } from './contract.ts';\nimport { canonicalContract, withJsonSchema } from './projection.ts';\nimport type { Contract } from './projection.ts';\nimport { applyTemplateCreationDefaults } from './template-creation.ts';\nimport { validateTemplateSemantics } from './template-semantics.ts';\n\n/**\n * Strict validation: no defaults, coercion, stripping, or implicit migration.\n */\nexport const StateMachineTemplateContract: Contract<StateMachineTemplate, StateMachineTemplate> =\n canonicalContract<StateMachineTemplate>(StateMachineTemplateSchema, canonical, validateTemplateSemantics);\n\nconst draftValidator = contract<StateMachineTemplateDraft>(CreateStateMachineTemplateSchema, creation);\n\nconst creationValidator = contractFromStandard<StateMachineTemplateDraft, StateMachineTemplate>((value) => {\n const draft = draftValidator['~standard'].validate(value);\n return draft.issues\n ? draft\n : StateMachineTemplateContract['~standard'].validate(applyTemplateCreationDefaults(draft.value));\n});\n\n/**\n * Creation supplies fresh defaults, then validates the canonical result.\n */\nexport const CreateStateMachineTemplateContract: Contract<StateMachineTemplateDraft, StateMachineTemplate> =\n withJsonSchema(creationValidator, CreateStateMachineTemplateSchema, StateMachineTemplateSchema);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js\nvar require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.formatNames = exports.fastFormats = exports.fullFormats = void 0;\n\tfunction fmtDef(validate, compare) {\n\t\treturn {\n\t\t\tvalidate,\n\t\t\tcompare\n\t\t};\n\t}\n\texports.fullFormats = {\n\t\tdate: fmtDef(date, compareDate),\n\t\ttime: fmtDef(getTime(true), compareTime),\n\t\t\"date-time\": fmtDef(getDateTime(true), compareDateTime),\n\t\t\"iso-time\": fmtDef(getTime(), compareIsoTime),\n\t\t\"iso-date-time\": fmtDef(getDateTime(), compareIsoDateTime),\n\t\tduration: /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/,\n\t\turi,\n\t\t\"uri-reference\": /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?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4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,\n\t\tregex,\n\t\tuuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n\t\t\"json-pointer\": /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n\t\t\"json-pointer-uri-fragment\": /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n\t\t\"relative-json-pointer\": /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n\t\tbyte,\n\t\tint32: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateInt32\n\t\t},\n\t\tint64: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateInt64\n\t\t},\n\t\tfloat: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateNumber\n\t\t},\n\t\tdouble: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateNumber\n\t\t},\n\t\tpassword: true,\n\t\tbinary: true\n\t};\n\texports.fastFormats = {\n\t\t...exports.fullFormats,\n\t\tdate: fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/, compareDate),\n\t\ttime: fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareTime),\n\t\t\"date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\dt(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareDateTime),\n\t\t\"iso-time\": fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoTime),\n\t\t\"iso-date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoDateTime),\n\t\turi: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n\t\t\"uri-reference\": /^(?:(?:[a-z][a-z0-9+\\-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n\t\temail: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i\n\t};\n\texports.formatNames = Object.keys(exports.fullFormats);\n\tfunction isLeapYear(year) {\n\t\treturn year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n\t}\n\tconst DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/;\n\tconst DAYS = [\n\t\t0,\n\t\t31,\n\t\t28,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t30,\n\t\t31\n\t];\n\tfunction date(str) {\n\t\tconst matches = DATE.exec(str);\n\t\tif (!matches) return false;\n\t\tconst year = +matches[1];\n\t\tconst month = +matches[2];\n\t\tconst day = +matches[3];\n\t\treturn month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);\n\t}\n\tfunction compareDate(d1, d2) {\n\t\tif (!(d1 && d2)) return void 0;\n\t\tif (d1 > d2) return 1;\n\t\tif (d1 < d2) return -1;\n\t\treturn 0;\n\t}\n\tconst TIME = /^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i;\n\tfunction getTime(strictTimeZone) {\n\t\treturn function time(str) {\n\t\t\tconst matches = TIME.exec(str);\n\t\t\tif (!matches) return false;\n\t\t\tconst hr = +matches[1];\n\t\t\tconst min = +matches[2];\n\t\t\tconst sec = +matches[3];\n\t\t\tconst tz = matches[4];\n\t\t\tconst tzSign = matches[5] === \"-\" ? -1 : 1;\n\t\t\tconst tzH = +(matches[6] || 0);\n\t\t\tconst tzM = +(matches[7] || 0);\n\t\t\tif (tzH > 23 || tzM > 59 || strictTimeZone && !tz) return false;\n\t\t\tif (hr <= 23 && min <= 59 && sec < 60) return true;\n\t\t\tconst utcMin = min - tzM * tzSign;\n\t\t\tconst utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);\n\t\t\treturn (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;\n\t\t};\n\t}\n\tfunction compareTime(s1, s2) {\n\t\tif (!(s1 && s2)) return void 0;\n\t\tconst t1 = (/* @__PURE__ */ new Date(\"2020-01-01T\" + s1)).valueOf();\n\t\tconst t2 = (/* @__PURE__ */ new Date(\"2020-01-01T\" + s2)).valueOf();\n\t\tif (!(t1 && t2)) return void 0;\n\t\treturn t1 - t2;\n\t}\n\tfunction compareIsoTime(t1, t2) {\n\t\tif (!(t1 && t2)) return void 0;\n\t\tconst a1 = TIME.exec(t1);\n\t\tconst a2 = TIME.exec(t2);\n\t\tif (!(a1 && a2)) return void 0;\n\t\tt1 = a1[1] + a1[2] + a1[3];\n\t\tt2 = a2[1] + a2[2] + a2[3];\n\t\tif (t1 > t2) return 1;\n\t\tif (t1 < t2) return -1;\n\t\treturn 0;\n\t}\n\tconst DATE_TIME_SEPARATOR = /t|\\s/i;\n\tfunction getDateTime(strictTimeZone) {\n\t\tconst time = getTime(strictTimeZone);\n\t\treturn function date_time(str) {\n\t\t\tconst dateTime = str.split(DATE_TIME_SEPARATOR);\n\t\t\treturn dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);\n\t\t};\n\t}\n\tfunction compareDateTime(dt1, dt2) {\n\t\tif (!(dt1 && dt2)) return void 0;\n\t\tconst d1 = new Date(dt1).valueOf();\n\t\tconst d2 = new Date(dt2).valueOf();\n\t\tif (!(d1 && d2)) return void 0;\n\t\treturn d1 - d2;\n\t}\n\tfunction compareIsoDateTime(dt1, dt2) {\n\t\tif (!(dt1 && dt2)) return void 0;\n\t\tconst [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);\n\t\tconst [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);\n\t\tconst res = compareDate(d1, d2);\n\t\tif (res === void 0) return void 0;\n\t\treturn res || compareTime(t1, t2);\n\t}\n\tconst NOT_URI_FRAGMENT = /\\/|:/;\n\tconst URI = /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;\n\tfunction uri(str) {\n\t\treturn NOT_URI_FRAGMENT.test(str) && URI.test(str);\n\t}\n\tconst BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;\n\tfunction byte(str) {\n\t\tBYTE.lastIndex = 0;\n\t\treturn BYTE.test(str);\n\t}\n\tconst MIN_INT32 = -(2 ** 31);\n\tconst MAX_INT32 = 2 ** 31 - 1;\n\tfunction validateInt32(value) {\n\t\treturn Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;\n\t}\n\tfunction validateInt64(value) {\n\t\treturn Number.isInteger(value);\n\t}\n\tfunction validateNumber() {\n\t\treturn true;\n\t}\n\tconst Z_ANCHOR = /[^\\\\]\\\\Z/;\n\tfunction regex(str) {\n\t\tif (Z_ANCHOR.test(str)) return false;\n\t\ttry {\n\t\t\tnew RegExp(str);\n\t\t\treturn true;\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t}\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/StateMachineInstanceSchema.mjs\nconst isValid = validate29;\nconst schema40 = {\n\t\"description\": \"Persisted state-machine instance, pinned to a template revision and tracking its current state.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"template\",\n\t\t\"retention\",\n\t\t\"state\",\n\t\t\"sequence\",\n\t\t\"createdAt\",\n\t\t\"updatedAt\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted instance format, not the logical instance sequence.\",\n\t\t\t\"const\": 2,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the instance.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"template\": {\n\t\t\t\"description\": \"Template identity and storage revision bound to a state-machine instance.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"id\", \"revision\"],\n\t\t\t\"properties\": {\n\t\t\t\t\"id\": {\n\t\t\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"version\": {\n\t\t\t\t\t\"description\": \"Logical application version of the template. Optional because the template may have no version.\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"revision\": {\n\t\t\t\t\t\"description\": \"Storage-driver revision of the template used to create this instance. Pins execution to that revision so changing a stored template cannot silently change instance behavior.\",\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"retention\": {\n\t\t\t\"description\": \"Instance-owned retention policy, independent of execution callers and application state.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"ttlMs\"],\n\t\t\t\"properties\": { \"ttlMs\": {\n\t\t\t\t\"description\": \"Sliding expiration duration in milliseconds, renewed on successful persisted updates. Zero means no expiration.\",\n\t\t\t\t\"minimum\": 0,\n\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\"type\": \"integer\"\n\t\t\t} }\n\t\t},\n\t\t\"state\": {\n\t\t\t\"description\": \"Current instance state, validated against the bound template's stateSchema during execution and storage operations.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"sequence\": {\n\t\t\t\"description\": \"Logical instance version. Increased for every successful persisted update; independent of the storage-driver revision.\",\n\t\t\t\"minimum\": 0,\n\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\"type\": \"integer\"\n\t\t},\n\t\t\"createdAt\": {\n\t\t\t\"format\": \"date-time\",\n\t\t\t\"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\",\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Date and time the instance was created, as an ISO 8601 UTC datetime ending in Z.\"\n\t\t},\n\t\t\"updatedAt\": {\n\t\t\t\"format\": \"date-time\",\n\t\t\t\"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\",\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Date and time the instance was last updated, as an ISO 8601 UTC datetime ending in Z.\"\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the instance. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func14 = Object.prototype.hasOwnProperty;\nconst func1 = require_ucs2length().default;\nconst formats0 = require_formats().fullFormats[\"date-time\"];\nconst pattern7 = /* @__PURE__ */ new RegExp(\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\", \"u\");\nfunction validate29(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate29.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.template === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"template\" },\n\t\t\t\tmessage: \"must have required property 'template'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.retention === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"retention\" },\n\t\t\t\tmessage: \"must have required property 'retention'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.state === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"state\" },\n\t\t\t\tmessage: \"must have required property 'state'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.sequence === void 0) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"sequence\" },\n\t\t\t\tmessage: \"must have required property 'sequence'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.createdAt === void 0) {\n\t\t\tconst err6 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"createdAt\" },\n\t\t\t\tmessage: \"must have required property 'createdAt'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\telse vErrors.push(err6);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.updatedAt === void 0) {\n\t\t\tconst err7 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"updatedAt\" },\n\t\t\t\tmessage: \"must have required property 'updatedAt'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\telse vErrors.push(err7);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!func14.call(schema40.properties, key0)) {\n\t\t\tconst err8 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\telse vErrors.push(err8);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (2 !== data0) {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 2 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.template !== void 0) {\n\t\t\tlet data2 = data.template;\n\t\t\tif (data2 && typeof data2 == \"object\" && !Array.isArray(data2)) {\n\t\t\t\tif (data2.id === void 0) {\n\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data2.revision === void 0) {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"revision\" },\n\t\t\t\t\t\tmessage: \"must have required property 'revision'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data2) if (!(key1 === \"id\" || key1 === \"version\" || key1 === \"revision\")) {\n\t\t\t\t\tconst err15 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\t\telse vErrors.push(err15);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data2.id !== void 0) {\n\t\t\t\t\tlet data3 = data2.id;\n\t\t\t\t\tif (typeof data3 === \"string\") {\n\t\t\t\t\t\tif (func1(data3) < 1) {\n\t\t\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data2.version !== void 0) {\n\t\t\t\t\tif (typeof data2.version !== \"string\") {\n\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/version\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/version/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data2.revision !== void 0) {\n\t\t\t\t\tlet data5 = data2.revision;\n\t\t\t\t\tif (typeof data5 === \"string\") {\n\t\t\t\t\t\tif (func1(data5) < 1) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/revision\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/revision/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/revision\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/revision/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err21 = {\n\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\tschemaPath: \"#/properties/template/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\telse vErrors.push(err21);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.retention !== void 0) {\n\t\t\tlet data6 = data.retention;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.ttlMs === void 0) {\n\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"ttlMs\" },\n\t\t\t\t\t\tmessage: \"must have required property 'ttlMs'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key2 in data6) if (!(key2 === \"ttlMs\")) {\n\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.ttlMs !== void 0) {\n\t\t\t\t\tlet data7 = data6.ttlMs;\n\t\t\t\t\tif (!(typeof data7 == \"number\" && !(data7 % 1) && !isNaN(data7) && isFinite(data7))) {\n\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data7 == \"number\" && isFinite(data7)) {\n\t\t\t\t\t\tif (data7 > 9007199254740991 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data7 < 0 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err27 = {\n\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\tschemaPath: \"#/properties/retention/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\telse vErrors.push(err27);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.state !== void 0) {\n\t\t\tlet data8 = data.state;\n\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {} else {\n\t\t\t\tconst err28 = {\n\t\t\t\t\tinstancePath: instancePath + \"/state\",\n\t\t\t\t\tschemaPath: \"#/properties/state/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\telse vErrors.push(err28);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.sequence !== void 0) {\n\t\t\tlet data9 = data.sequence;\n\t\t\tif (!(typeof data9 == \"number\" && !(data9 % 1) && !isNaN(data9) && isFinite(data9))) {\n\t\t\t\tconst err29 = {\n\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\tschemaPath: \"#/properties/sequence/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\telse vErrors.push(err29);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (typeof data9 == \"number\" && isFinite(data9)) {\n\t\t\t\tif (data9 > 9007199254740991 || isNaN(data9)) {\n\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\t\tschemaPath: \"#/properties/sequence/maximum\",\n\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data9 < 0 || isNaN(data9)) {\n\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\t\tschemaPath: \"#/properties/sequence/minimum\",\n\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (data.createdAt !== void 0) {\n\t\t\tlet data10 = data.createdAt;\n\t\t\tif (typeof data10 === \"string\") {\n\t\t\t\tif (!pattern7.test(data10)) {\n\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/createdAt/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!formats0.validate(data10)) {\n\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/createdAt/format\",\n\t\t\t\t\t\tkeyword: \"format\",\n\t\t\t\t\t\tparams: { format: \"date-time\" },\n\t\t\t\t\t\tmessage: \"must match format \\\"date-time\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err34 = {\n\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\tschemaPath: \"#/properties/createdAt/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\telse vErrors.push(err34);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.updatedAt !== void 0) {\n\t\t\tlet data11 = data.updatedAt;\n\t\t\tif (typeof data11 === \"string\") {\n\t\t\t\tif (!pattern7.test(data11)) {\n\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/updatedAt/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!formats0.validate(data11)) {\n\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/updatedAt/format\",\n\t\t\t\t\t\tkeyword: \"format\",\n\t\t\t\t\t\tparams: { format: \"date-time\" },\n\t\t\t\t\t\tmessage: \"must match format \\\"date-time\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err37 = {\n\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\tschemaPath: \"#/properties/updatedAt/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\telse vErrors.push(err37);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data12 = data.metadata;\n\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {} else {\n\t\t\t\tconst err38 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\telse vErrors.push(err38);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err39 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err39];\n\t\telse vErrors.push(err39);\n\t\terrors++;\n\t}\n\tvalidate29.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate29.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"template\",\n\t\"retention\",\n\t\"state\",\n\t\"sequence\",\n\t\"createdAt\",\n\t\"updatedAt\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/StateMachineTemplateBindingSchema.mjs\nconst isValid = validate30;\nconst func1 = require_ucs2length().default;\nfunction validate30(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate30.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.id === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.revision === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"revision\" },\n\t\t\t\tmessage: \"must have required property 'revision'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"id\" || key0 === \"version\" || key0 === \"revision\")) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data0 = data.id;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err3 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\t\t\telse vErrors.push(err3);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err4 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\telse vErrors.push(err4);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err5 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\telse vErrors.push(err5);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.revision !== void 0) {\n\t\t\tlet data2 = data.revision;\n\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/revision\",\n\t\t\t\t\t\tschemaPath: \"#/properties/revision/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/revision\",\n\t\t\t\t\tschemaPath: \"#/properties/revision/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err8 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err8];\n\t\telse vErrors.push(err8);\n\t\terrors++;\n\t}\n\tvalidate30.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate30.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"id\",\n\t\"version\",\n\t\"revision\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as instance from '../../generated/StateMachineInstanceSchema.mjs';\nimport * as binding from '../../generated/StateMachineTemplateBindingSchema.mjs';\nimport { StateMachineInstanceSchema, StateMachineTemplateBindingSchema } from '../schemas.ts';\nimport type { StateMachineInstance, StateMachineTemplateBinding } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Canonical instance validation; creation fields are assigned by domain operations.\n */\nexport const StateMachineInstanceContract = canonicalContract<StateMachineInstance>(\n StateMachineInstanceSchema,\n instance,\n);\nexport const StateMachineTemplateBindingContract = canonicalContract<StateMachineTemplateBinding>(\n StateMachineTemplateBindingSchema,\n binding,\n);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/CreateStateMachineInstanceRequestSchema.mjs\nconst isValid = validate20;\nconst func1 = require_ucs2length().default;\nfunction validate20(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate20.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.id === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.template === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"template\" },\n\t\t\t\tmessage: \"must have required property 'template'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"id\" || key0 === \"template\" || key0 === \"state\" || key0 === \"metadata\" || key0 === \"retention\")) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data0 = data.id;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err3 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\t\t\telse vErrors.push(err3);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err4 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\telse vErrors.push(err4);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.template !== void 0) {\n\t\t\tlet data1 = data.template;\n\t\t\tif (data1 && typeof data1 == \"object\" && !Array.isArray(data1)) {\n\t\t\t\tif (data1.id === void 0) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data1) if (!(key1 === \"id\" || key1 === \"version\")) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data1.id !== void 0) {\n\t\t\t\t\tlet data2 = data1.id;\n\t\t\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data1.version !== void 0) {\n\t\t\t\t\tif (typeof data1.version !== \"string\") {\n\t\t\t\t\t\tconst err9 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/version\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/version/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\t\t\telse vErrors.push(err9);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\tschemaPath: \"#/properties/template/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.state !== void 0) {\n\t\t\tlet data4 = data.state;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {} else {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/state\",\n\t\t\t\t\tschemaPath: \"#/properties/state/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data5 = data.metadata;\n\t\t\tif (data5 && typeof data5 == \"object\" && !Array.isArray(data5)) {} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.retention !== void 0) {\n\t\t\tlet data6 = data.retention;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.ttlMs === void 0) {\n\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"ttlMs\" },\n\t\t\t\t\t\tmessage: \"must have required property 'ttlMs'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key2 in data6) if (!(key2 === \"ttlMs\")) {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.ttlMs !== void 0) {\n\t\t\t\t\tlet data7 = data6.ttlMs;\n\t\t\t\t\tif (!(typeof data7 == \"number\" && !(data7 % 1) && !isNaN(data7) && isFinite(data7))) {\n\t\t\t\t\t\tconst err15 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\t\t\telse vErrors.push(err15);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data7 == \"number\" && isFinite(data7)) {\n\t\t\t\t\t\tif (data7 > 9007199254740991 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data7 < 0 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err18 = {\n\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\tschemaPath: \"#/properties/retention/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\telse vErrors.push(err18);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err19 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err19];\n\t\telse vErrors.push(err19);\n\t\terrors++;\n\t}\n\tvalidate20.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate20.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"id\",\n\t\"template\",\n\t\"state\",\n\t\"metadata\",\n\t\"retention\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/ExecuteStateMachineFunctionRequestSchema.mjs\nconst isValid = validate23;\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate23(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate23.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.instance === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"instance\" },\n\t\t\t\tmessage: \"must have required property 'instance'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functionName === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functionName\" },\n\t\t\t\tmessage: \"must have required property 'functionName'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.input === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"input\" },\n\t\t\t\tmessage: \"must have required property 'input'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"instance\" || key0 === \"functionName\" || key0 === \"input\")) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.instance !== void 0) {\n\t\t\tlet data0 = data.instance;\n\t\t\tif (data0 && typeof data0 == \"object\" && !Array.isArray(data0)) {\n\t\t\t\tif (data0.id === void 0) {\n\t\t\t\t\tconst err4 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\t\tschemaPath: \"#/properties/instance/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\t\telse vErrors.push(err4);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data0) if (!(key1 === \"id\")) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\t\tschemaPath: \"#/properties/instance/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data0.id !== void 0) {\n\t\t\t\t\tlet data1 = data0.id;\n\t\t\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/instance/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/instance/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/instance/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/instance/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\tschemaPath: \"#/properties/instance/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functionName !== void 0) {\n\t\t\tlet data2 = data.functionName;\n\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\tif (func1(data2) > 64) {\n\t\t\t\t\tconst err9 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/maxLength\",\n\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\t\telse vErrors.push(err9);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\tconst err10 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\t\telse vErrors.push(err10);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!pattern4.test(data2)) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\tschemaPath: \"#/properties/functionName/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err13 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err13];\n\t\telse vErrors.push(err13);\n\t\terrors++;\n\t}\n\tvalidate23.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate23.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"instance\",\n\t\"functionName\",\n\t\"input\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as instanceRequest from '../../generated/CreateStateMachineInstanceRequestSchema.mjs';\nimport * as executionRequest from '../../generated/ExecuteStateMachineFunctionRequestSchema.mjs';\nimport { ExecuteStateMachineFunctionRequestSchema, CreateStateMachineInstanceRequestSchema } from '../schemas.ts';\nimport type { CreateStateMachineInstanceRequest, ExecuteStateMachineFunctionRequest } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Pure request validation; does not create an instance or populate domain-owned fields.\n */\nexport const CreateStateMachineInstanceRequestContract = canonicalContract<CreateStateMachineInstanceRequest>(\n CreateStateMachineInstanceRequestSchema,\n instanceRequest,\n);\n\n/**\n * Validate the envelope only; context and function-specific validation stay separate.\n */\nexport const ExecuteStateMachineFunctionRequestContract = canonicalContract<ExecuteStateMachineFunctionRequest>(\n ExecuteStateMachineFunctionRequestSchema,\n executionRequest,\n);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/FunctionImplementationSchema.mjs\nconst isValid = validate24;\nconst func1 = require_ucs2length().default;\nfunction validate24(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate24.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.runtime === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.abi === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.format === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.code === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.capabilities === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"runtime\" || key0 === \"abi\" || key0 === \"format\" || key0 === \"code\" || key0 === \"capabilities\" || key0 === \"timeoutMs\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.runtime !== void 0) {\n\t\t\tlet data0 = data.runtime;\n\t\t\tif (typeof data0 !== \"string\") {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/runtime\",\n\t\t\t\t\tschemaPath: \"#/properties/runtime/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"javascript\" !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/runtime\",\n\t\t\t\t\tschemaPath: \"#/properties/runtime/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.abi !== void 0) {\n\t\t\tlet data1 = data.abi;\n\t\t\tif (typeof data1 !== \"string\") {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/abi\",\n\t\t\t\t\tschemaPath: \"#/properties/abi/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"state-machine-function-v1\" !== data1) {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/abi\",\n\t\t\t\t\tschemaPath: \"#/properties/abi/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.format !== void 0) {\n\t\t\tlet data2 = data.format;\n\t\t\tif (typeof data2 !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/format\",\n\t\t\t\t\tschemaPath: \"#/properties/format/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"async-function-body\" !== data2) {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/format\",\n\t\t\t\t\tschemaPath: \"#/properties/format/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.code !== void 0) {\n\t\t\tlet data3 = data.code;\n\t\t\tif (typeof data3 === \"string\") {\n\t\t\t\tif (func1(data3) < 1) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/code\",\n\t\t\t\t\t\tschemaPath: \"#/properties/code/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err13 = {\n\t\t\t\t\tinstancePath: instancePath + \"/code\",\n\t\t\t\t\tschemaPath: \"#/properties/code/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\telse vErrors.push(err13);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.capabilities !== void 0) {\n\t\t\tlet data4 = data.capabilities;\n\t\t\tif (Array.isArray(data4)) {\n\t\t\t\tconst len0 = data4.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) if (typeof data4[i0] !== \"string\") {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/capabilities/\" + i0,\n\t\t\t\t\t\tschemaPath: \"#/properties/capabilities/items/type\",\n\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/capabilities\",\n\t\t\t\t\tschemaPath: \"#/properties/capabilities/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.timeoutMs !== void 0) {\n\t\t\tlet data6 = data.timeoutMs;\n\t\t\tif (!(typeof data6 == \"number\" && !(data6 % 1) && !isNaN(data6) && isFinite(data6))) {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (typeof data6 == \"number\" && isFinite(data6)) {\n\t\t\t\tif (data6 > 9007199254740991 || isNaN(data6)) {\n\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/maximum\",\n\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6 < 1 || isNaN(data6)) {\n\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/minimum\",\n\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err19 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err19];\n\t\telse vErrors.push(err19);\n\t\terrors++;\n\t}\n\tvalidate24.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate24.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"runtime\",\n\t\"abi\",\n\t\"format\",\n\t\"code\",\n\t\"capabilities\",\n\t\"timeoutMs\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/FunctionKindSchema.mjs\nconst isValid = validate25;\nconst schema36 = {\n\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\"enum\": [\"query\", \"mutation\"]\n};\nfunction validate25(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate25.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (!(data === \"query\" || data === \"mutation\")) {\n\t\tconst err0 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/enum\",\n\t\t\tkeyword: \"enum\",\n\t\t\tparams: { allowedValues: schema36.enum },\n\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err0];\n\t\telse vErrors.push(err0);\n\t\terrors++;\n\t}\n\tvalidate25.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate25.evaluated = {\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/StateMachineFunctionDefinitionSchema.mjs\nconst isValid = validate28;\nconst schema39 = {\n\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"name\",\n\t\t\"kind\",\n\t\t\"inputSchema\",\n\t\t\"implementation\"\n\t],\n\t\"properties\": {\n\t\t\"name\": {\n\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"maxLength\": 64,\n\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"kind\": {\n\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t},\n\t\t\"inputSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"outputSchema\": {\n\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"implementation\": {\n\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\n\t\t\t\t\"runtime\",\n\t\t\t\t\"abi\",\n\t\t\t\t\"format\",\n\t\t\t\t\"code\",\n\t\t\t\t\"capabilities\"\n\t\t\t],\n\t\t\t\"properties\": {\n\t\t\t\t\"runtime\": {\n\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"abi\": {\n\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"format\": {\n\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"code\": {\n\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Required in canonical definitions.\",\n\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"annotations\": {\n\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {\n\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"pure\": {\n\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"destructive\": {\n\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate28(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate28.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.name === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.kind === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.inputSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.implementation === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"name\" || key0 === \"description\" || key0 === \"kind\" || key0 === \"inputSchema\" || key0 === \"outputSchema\" || key0 === \"implementation\" || key0 === \"annotations\" || key0 === \"metadata\")) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.name !== void 0) {\n\t\t\tlet data0 = data.name;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) > 64) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/maxLength\",\n\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!pattern4.test(data0)) {\n\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\tschemaPath: \"#/properties/name/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.kind !== void 0) {\n\t\t\tlet data2 = data.kind;\n\t\t\tif (!(data2 === \"query\" || data2 === \"mutation\")) {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/kind\",\n\t\t\t\t\tschemaPath: \"#/properties/kind/enum\",\n\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\tparams: { allowedValues: schema39.properties.kind.enum },\n\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.inputSchema !== void 0) {\n\t\t\tlet data3 = data.inputSchema;\n\t\t\tif (data3 && typeof data3 == \"object\" && !Array.isArray(data3)) {\n\t\t\t\tif (data3.type === void 0) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data3.type !== void 0) {\n\t\t\t\t\tlet data4 = data3.type;\n\t\t\t\t\tif (typeof data4 !== \"string\") {\n\t\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data4) {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err14 = {\n\t\t\t\t\tinstancePath: instancePath + \"/inputSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/inputSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\telse vErrors.push(err14);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.outputSchema !== void 0) {\n\t\t\tlet data5 = data.outputSchema;\n\t\t\tif (data5 && typeof data5 == \"object\" && !Array.isArray(data5)) {} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/outputSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/outputSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.implementation !== void 0) {\n\t\t\tlet data6 = data.implementation;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.runtime === void 0) {\n\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.abi === void 0) {\n\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.format === void 0) {\n\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.code === void 0) {\n\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.capabilities === void 0) {\n\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data6) if (!(key1 === \"runtime\" || key1 === \"abi\" || key1 === \"format\" || key1 === \"code\" || key1 === \"capabilities\" || key1 === \"timeoutMs\")) {\n\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.runtime !== void 0) {\n\t\t\t\t\tlet data7 = data6.runtime;\n\t\t\t\t\tif (typeof data7 !== \"string\") {\n\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/runtime\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"javascript\" !== data7) {\n\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/runtime\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.abi !== void 0) {\n\t\t\t\t\tlet data8 = data6.abi;\n\t\t\t\t\tif (typeof data8 !== \"string\") {\n\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/abi\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"state-machine-function-v1\" !== data8) {\n\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/abi\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.format !== void 0) {\n\t\t\t\t\tlet data9 = data6.format;\n\t\t\t\t\tif (typeof data9 !== \"string\") {\n\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/format\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"async-function-body\" !== data9) {\n\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/format\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.code !== void 0) {\n\t\t\t\t\tlet data10 = data6.code;\n\t\t\t\t\tif (typeof data10 === \"string\") {\n\t\t\t\t\t\tif (func1(data10) < 1) {\n\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/code\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/code\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.capabilities !== void 0) {\n\t\t\t\t\tlet data11 = data6.capabilities;\n\t\t\t\t\tif (Array.isArray(data11)) {\n\t\t\t\t\t\tconst len0 = data11.length;\n\t\t\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) if (typeof data11[i0] !== \"string\") {\n\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/capabilities/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/capabilities\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.timeoutMs !== void 0) {\n\t\t\t\t\tlet data13 = data6.timeoutMs;\n\t\t\t\t\tif (!(typeof data13 == \"number\" && !(data13 % 1) && !isNaN(data13) && isFinite(data13))) {\n\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data13 == \"number\" && isFinite(data13)) {\n\t\t\t\t\t\tif (data13 > 9007199254740991 || isNaN(data13)) {\n\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data13 < 1 || isNaN(data13)) {\n\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err35 = {\n\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\tschemaPath: \"#/properties/implementation/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\telse vErrors.push(err35);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.annotations !== void 0) {\n\t\t\tlet data14 = data.annotations;\n\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {\n\t\t\t\tfor (const key2 in data14) if (!(key2 === \"exposeAsTool\" || key2 === \"pure\" || key2 === \"idempotent\" || key2 === \"destructive\" || key2 === \"deprecated\")) {\n\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/annotations\",\n\t\t\t\t\t\tschemaPath: \"#/properties/annotations/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data14.exposeAsTool !== void 0) {\n\t\t\t\t\tif (typeof data14.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.pure !== void 0) {\n\t\t\t\t\tif (typeof data14.pure !== \"boolean\") {\n\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/pure\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.idempotent !== void 0) {\n\t\t\t\t\tif (typeof data14.idempotent !== \"boolean\") {\n\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/idempotent\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.destructive !== void 0) {\n\t\t\t\t\tif (typeof data14.destructive !== \"boolean\") {\n\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/destructive\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.deprecated !== void 0) {\n\t\t\t\t\tif (typeof data14.deprecated !== \"boolean\") {\n\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/deprecated\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err42 = {\n\t\t\t\t\tinstancePath: instancePath + \"/annotations\",\n\t\t\t\t\tschemaPath: \"#/properties/annotations/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\telse vErrors.push(err42);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data20 = data.metadata;\n\t\t\tif (data20 && typeof data20 == \"object\" && !Array.isArray(data20)) {} else {\n\t\t\t\tconst err43 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\telse vErrors.push(err43);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err44 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err44];\n\t\telse vErrors.push(err44);\n\t\terrors++;\n\t}\n\tvalidate28.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate28.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"name\",\n\t\"description\",\n\t\"kind\",\n\t\"inputSchema\",\n\t\"outputSchema\",\n\t\"implementation\",\n\t\"annotations\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as implementation from '../../generated/FunctionImplementationSchema.mjs';\nimport * as functionKind from '../../generated/FunctionKindSchema.mjs';\nimport * as functionDefinition from '../../generated/StateMachineFunctionDefinitionSchema.mjs';\nimport { FunctionImplementationSchema, FunctionKindSchema, StateMachineFunctionDefinitionSchema } from '../schemas.ts';\nimport type { FunctionImplementation, FunctionKind, StateMachineFunctionDefinition } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\nexport const FunctionKindContract = canonicalContract<FunctionKind>(FunctionKindSchema, functionKind);\nexport const FunctionImplementationContract = canonicalContract<FunctionImplementation>(\n FunctionImplementationSchema,\n implementation,\n);\nexport const StateMachineFunctionDefinitionContract = canonicalContract<StateMachineFunctionDefinition>(\n StateMachineFunctionDefinitionSchema,\n functionDefinition,\n);\n","//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/JsonSchemaSchema.mjs\nconst isValid = validate26;\nfunction validate26(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate26.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {} else {\n\t\tconst err0 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err0];\n\t\telse vErrors.push(err0);\n\t\terrors++;\n\t}\n\tvalidate26.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate26.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region .build/schema-entry-VeQdcz/temporary/json-schema-aot-Kk2e4s/ObjectJsonSchemaSchema.mjs\nconst isValid = validate27;\nfunction validate27(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate27.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.type === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.type !== void 0) {\n\t\t\tlet data0 = data.type;\n\t\t\tif (typeof data0 !== \"string\") {\n\t\t\t\tconst err1 = {\n\t\t\t\t\tinstancePath: instancePath + \"/type\",\n\t\t\t\t\tschemaPath: \"#/properties/type/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\t\telse vErrors.push(err1);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"object\" !== data0) {\n\t\t\t\tconst err2 = {\n\t\t\t\t\tinstancePath: instancePath + \"/type\",\n\t\t\t\t\tschemaPath: \"#/properties/type/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\t\telse vErrors.push(err2);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err3 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err3];\n\t\telse vErrors.push(err3);\n\t\terrors++;\n\t}\n\tvalidate27.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate27.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\"type\"];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as embeddedSchema from '../../generated/JsonSchemaSchema.mjs';\nimport * as embeddedObjectSchema from '../../generated/ObjectJsonSchemaSchema.mjs';\nimport { JsonSchemaSchema, ObjectJsonSchemaSchema } from '../schemas.ts';\nimport type { JsonSchema, ObjectJsonSchema } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Embedded-schema contracts check object shape only, not dialect or keyword validity.\n */\nexport const JsonSchemaContract = canonicalContract<JsonSchema>(JsonSchemaSchema, embeddedSchema);\nexport const ObjectJsonSchemaContract = canonicalContract<ObjectJsonSchema>(\n ObjectJsonSchemaSchema,\n embeddedObjectSchema,\n);\n"],"mappings":"mjBAWA,SAAgB,EAAkB,EAAc,EAA8B,CAE5E,MAAO,GAAG,EAAK,GADC,OAAO,CAAG,CAAC,CAAC,WAAW,IAAK,IAAI,CAAC,CAAC,WAAW,IAAK,IAC1C,GAC1B,CAEA,SAAgB,EAAuB,EAA6C,CAClF,IAAI,EAAO,EAAM,cAAgB,EAAM,MAAQ,GACzC,EAAa,EAAM,OASzB,OANE,OAAO,GAAe,UADtB,GAEA,EAAM,UAAY,YAClB,oBAAqB,GACrB,OAAO,EAAW,iBAAoB,WAEtC,EAAO,EAAkB,EAAM,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GACD,CAEA,MADA,GAAW,OAAS,EACb,IAAW,CACnB,CACA,EAAW,UAAY,CACtB,MAAS,GACT,aAAgB,GAChB,aAAgB,EACjB,EACA,MAAM,GAAS,CAAC,MAAM,EACtB,SAAS,GAAS,EAAO,CACxB,IAAM,EAAQ,EAAQ,CAAK,EAC3B,MAAO,CACN,QACA,OAAQ,EAAQ,CAAC,EAAI,EAAQ,MAC9B,CACD,CACA,MAAM,GAAY,CAAE,YAAa,CAChC,QAAS,EACT,OAAQ,4BACR,SAAS,EAAO,CAEf,OADI,EAAQ,CAAK,EAAU,CAAE,OAAM,EAC5B,CAAE,OAAQ,EAAQ,OAAO,IAAK,GAAU,CAC9C,IAAI,EAAU,EAAM,aAEpB,OADI,EAAM,UAAY,aAAY,GAAW,IAAM,EAAM,OAAO,gBAAgB,WAAW,IAAK,IAAI,CAAC,CAAC,WAAW,IAAK,IAAI,GACnH,CACN,QAAS,EAAM,SAAW,gBAC1B,KAAM,IAAY,GAAK,CAAC,EAAI,EAAQ,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAK,GAAS,EAAK,WAAW,KAAM,GAAG,CAAC,CAAC,WAAW,KAAM,GAAG,CAAC,CACvH,CACD,CAAC,CAAE,CACJ,CACD,CAAE,EChFW,GAAqB,EAA8B,EAAkBI,EAAc,EACnF,GAA2B,EACtC,EACAC,EACF"}
1
+ {"version":3,"file":"index.mjs","names":["__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","canonical","creation","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","instance","binding","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","__commonJSMin","require_ucs2length","isValid","func1","pattern4","fields","validate","validator","instanceRequest","executionRequest","__commonJSMin","require_ucs2length","isValid","func1","fields","validate","validator","isValid","fields","validate","validator","isValid","fields","validate","validator","functionKind","implementation","functionDefinition","isValid","fields","validate","validator","embeddedSchema","embeddedObjectSchema"],"sources":["../src/contracts/contract-issues.ts","../src/contracts/contract-values.ts","../src/contracts/contract.ts","../generated/CreateStateMachineTemplateSchema.mjs","../generated/StateMachineTemplateSchema.mjs","../src/contracts/projection.ts","../src/contracts/template-creation.ts","../src/contracts/template-semantics.ts","../src/contracts/templates.ts","../generated/StateMachineInstanceSchema.mjs","../generated/StateMachineTemplateBindingSchema.mjs","../src/contracts/instances.ts","../generated/CreateStateMachineInstanceRequestSchema.mjs","../generated/ExecuteStateMachineFunctionRequestSchema.mjs","../src/contracts/requests.ts","../generated/FunctionImplementationSchema.mjs","../generated/FunctionKindSchema.mjs","../generated/StateMachineFunctionDefinitionSchema.mjs","../src/contracts/functions.ts","../generated/JsonSchemaSchema.mjs","../generated/ObjectJsonSchemaSchema.mjs","../src/contracts/json-schema.ts"],"sourcesContent":["import type { ContractIssue, StandardContractIssue } from './types.ts';\n\nexport interface CompiledContractIssue {\n instancePath?: string;\n path?: string;\n message?: string;\n keyword?: string;\n schemaPath?: string;\n params?: unknown;\n}\n\nexport function appendJsonPointer(path: string, key: string | number): string {\n const escaped = String(key).replaceAll('~', '~0').replaceAll('/', '~1');\n return `${path}/${escaped}`;\n}\n\nexport function normalizeContractIssue(issue: CompiledContractIssue): ContractIssue {\n let path = issue.instancePath ?? issue.path ?? '';\n const parameters = issue.params;\n if (\n parameters !== null &&\n typeof parameters === 'object' &&\n issue.keyword === 'required' &&\n 'missingProperty' in parameters &&\n typeof parameters.missingProperty === 'string'\n )\n path = appendJsonPointer(path, parameters.missingProperty);\n return {\n path,\n message: issue.message ?? 'Invalid value',\n };\n}\n\nexport function toStandardIssue(issue: ContractIssue): StandardContractIssue {\n return {\n message: issue.message,\n path:\n issue.path === ''\n ? []\n : issue.path\n .slice(1)\n .split('/')\n .map((part) => part.replaceAll('~1', '/').replaceAll('~0', '~')),\n };\n}\n\nexport function fromStandardIssue(issue: StandardContractIssue): ContractIssue {\n let path = '';\n for (const key of issue.path) path = appendJsonPointer(path, key);\n return {\n path,\n message: issue.message,\n };\n}\n","import { appendJsonPointer } from './contract-issues.ts';\nimport type { ContractIssue } from './types.ts';\n\n/**\n * The value-preparation subset used by authored contracts, not a general JSON Schema interpreter.\n */\nexport interface ContractSchema {\n description?: string;\n const?: unknown;\n enum?: readonly unknown[];\n type?: string;\n properties?: Record<string, ContractSchema>;\n items?: ContractSchema;\n additionalProperties?: boolean;\n default?: unknown;\n}\n\n/**\n * Copy supported records/arrays and reject unknown closed-contract keys.\n * This never applies defaults or mutates input.\n */\nexport function prepareContractValue(\n schema: ContractSchema,\n value: unknown,\n): { data: unknown; issues: ContractIssue[] } {\n const issues: ContractIssue[] = [];\n const data = prepare(schema, value, '', issues);\n return { data, issues };\n}\n\n/**\n * Recognize Object.prototype across realms without invoking an input-owned constructor getter.\n */\nfunction isPlainRecord(value: object): boolean {\n const prototype: unknown = Object.getPrototypeOf(value);\n if (prototype === null || prototype === Object.prototype) return true;\n if (typeof prototype !== 'object' || Object.getPrototypeOf(prototype) !== null) return false;\n const constructor: unknown = Object.getOwnPropertyDescriptor(prototype, 'constructor')?.value;\n return (\n typeof constructor === 'function' &&\n Function.prototype.toString.call(constructor) === Function.prototype.toString.call(Object)\n );\n}\n\nfunction prepare(schema: ContractSchema, value: unknown, path: string, issues: ContractIssue[]): unknown {\n if (schema.type === 'array' && Array.isArray(value) && schema.items) {\n const items = schema.items;\n const result: unknown[] = [];\n // eslint-disable-next-line unicorn/no-for-loop -- Input-owned iterators and array methods must not execute.\n for (let index = 0; index < value.length; index++) {\n const item: unknown = value[index];\n result.push(prepare(items, item, appendJsonPointer(path, index), issues));\n }\n return result;\n }\n if (schema.type !== 'object') return value;\n if (value === null || typeof value !== 'object' || Array.isArray(value)) return value;\n if (!isPlainRecord(value)) {\n issues.push({ path, message: 'Expected a plain object' });\n return value;\n }\n if (schema.additionalProperties === false) {\n for (const key of Object.keys(value)) {\n if (!Object.hasOwn(schema.properties ?? {}, key))\n issues.push({\n path: appendJsonPointer(path, key),\n message: `Unknown contract property: ${key}`,\n });\n }\n }\n // Do not enumerate values of rejected keys: unknown getters must never run.\n const result: Record<string, unknown> =\n schema.additionalProperties === false ? {} : Object.fromEntries(Object.entries(value));\n const properties = Object.entries(schema.properties ?? {});\n for (const [key, property] of properties) {\n const isPresent = Object.hasOwn(value, key);\n const child: unknown = isPresent ? (value as Record<string, unknown>)[key] : undefined;\n if (isPresent && child === undefined && Object.hasOwn(property, 'default')) {\n issues.push({\n path: appendJsonPointer(path, key),\n message: 'A supplied defaulted field must not be undefined',\n });\n }\n const data = prepare(property, child, appendJsonPointer(path, key), issues);\n if (data !== undefined)\n Object.defineProperty(result, key, { value: data, enumerable: true, writable: true, configurable: true });\n }\n return result;\n}\n","import type { StandardSchemaV1 } from '@standard-schema/spec';\n\nimport { fromStandardIssue, normalizeContractIssue, toStandardIssue } from './contract-issues.ts';\nimport type { CompiledContractIssue } from './contract-issues.ts';\nimport { prepareContractValue } from './contract-values.ts';\nimport type { ContractSchema } from './contract-values.ts';\nimport type { ContractIssue, StandardContractResult } from './types.ts';\n\nexport class ContractValidationError extends Error {\n readonly issues: readonly ContractIssue[];\n\n constructor(issues: readonly ContractIssue[]) {\n super('Invalid state-machine contract');\n this.name = 'ContractValidationError';\n this.issues = issues;\n }\n}\n\nexport type ContractValidationResult<T> =\n { success: true; data: T } | { success: false; error: ContractValidationError };\n\nexport interface CompiledContract {\n validate(value: unknown): { valid: boolean; errors: readonly CompiledContractIssue[] };\n}\n\nexport interface ContractValidator<Input, Output> extends StandardSchemaV1<Input, Output> {\n readonly '~standard': Omit<StandardSchemaV1.Props<Input, Output>, 'validate'> & {\n readonly validate: (value: unknown) => StandardContractResult<Output>;\n };\n /**\n * Validate and copy declared contract structures, not opaque nested data.\n * Open-record descendants may retain input references; this is not a deep clone.\n */\n parse(value: unknown): Output;\n /**\n * Return the same data ownership semantics as parse without throwing on invalid input.\n */\n safeParse(value: unknown): ContractValidationResult<Output>;\n}\n\nexport function contract<T>(\n schema: ContractSchema,\n compiled: CompiledContract,\n semantic?: (value: T) => ContractIssue[],\n): ContractValidator<T, T> {\n return contractFromStandard<T, T>((value) => {\n const prepared = prepareContractValue(schema, value);\n if (prepared.issues.length > 0) return { issues: prepared.issues.map((issue) => toStandardIssue(issue)) };\n const { data } = prepared;\n const result = compiled.validate(data);\n const issues = result.valid\n ? (semantic?.(data as T) ?? [])\n : result.errors.map((issue) => normalizeContractIssue(issue));\n return result.valid && issues.length === 0\n ? { value: data as T }\n : { issues: issues.map((issue) => toStandardIssue(issue)) };\n });\n}\n\n/**\n * Attach parsing conveniences to one canonical synchronous Standard Schema operation.\n * Only conveniences construct exceptions or convert paths back to JSON Pointers.\n */\nexport function contractFromStandard<Input, Output>(\n validate: (value: unknown) => StandardContractResult<Output>,\n): ContractValidator<Input, Output> {\n const standard: ContractValidator<Input, Output>['~standard'] = {\n version: 1,\n vendor: '@onereach/state-machine-contracts',\n validate,\n };\n const safeParse = (value: unknown): ContractValidationResult<Output> => {\n const result = standard.validate(value);\n return result.issues\n ? { success: false, error: new ContractValidationError(result.issues.map((issue) => fromStandardIssue(issue))) }\n : { success: true, data: result.value };\n };\n return {\n '~standard': standard,\n safeParse,\n parse(value: unknown): Output {\n const result = safeParse(value);\n if (!result.success) throw result.error;\n return result.data;\n },\n };\n}\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/CreateStateMachineTemplateSchema.mjs\nconst isValid = validate22;\nconst schema33 = {\n\t\"description\": \"Persisted state-machine template defining shared state, initial state, and available functions.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"stateSchema\",\n\t\t\"initialState\",\n\t\t\"functions\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted template format, not the logical application version.\",\n\t\t\t\"const\": 1,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"version\": {\n\t\t\t\"description\": \"Optional logical application version. This is different from a storage-driver revision.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the state machine.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"stateSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema shared by every function to validate instance state. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"initialState\": {\n\t\t\t\"description\": \"Default state used when creating an instance without an explicit state override. Must satisfy stateSchema when the template is prepared.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"functions\": {\n\t\t\t\"description\": \"Functions available on instances of this template. Names must be unique; the template parser enforces this semantic rule.\",\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"name\",\n\t\t\t\t\t\"kind\",\n\t\t\t\t\t\"inputSchema\",\n\t\t\t\t\t\"implementation\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"maxLength\": 64,\n\t\t\t\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"kind\": {\n\t\t\t\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"inputSchema\": {\n\t\t\t\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\"type\"],\n\t\t\t\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\t\t\t\"const\": \"object\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t} }\n\t\t\t\t\t},\n\t\t\t\t\t\"outputSchema\": {\n\t\t\t\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t},\n\t\t\t\t\t\"implementation\": {\n\t\t\t\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\"abi\",\n\t\t\t\t\t\t\t\"format\",\n\t\t\t\t\t\t\t\"code\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"runtime\": {\n\t\t\t\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"abi\": {\n\t\t\t\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"format\": {\n\t\t\t\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Creation defaults an omitted list to [].\",\n\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"default\": []\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"annotations\": {\n\t\t\t\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"pure\": {\n\t\t\t\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"destructive\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the template. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate22(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate22.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.stateSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"stateSchema\" },\n\t\t\t\tmessage: \"must have required property 'stateSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.initialState === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"initialState\" },\n\t\t\t\tmessage: \"must have required property 'initialState'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functions === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functions\" },\n\t\t\t\tmessage: \"must have required property 'functions'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"schemaVersion\" || key0 === \"id\" || key0 === \"version\" || key0 === \"description\" || key0 === \"stateSchema\" || key0 === \"initialState\" || key0 === \"functions\" || key0 === \"metadata\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (1 !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 1 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.stateSchema !== void 0) {\n\t\t\tlet data4 = data.stateSchema;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {\n\t\t\t\tif (data4.type === void 0) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data4.type !== void 0) {\n\t\t\t\t\tlet data5 = data4.type;\n\t\t\t\t\tif (typeof data5 !== \"string\") {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data5) {\n\t\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/stateSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.initialState !== void 0) {\n\t\t\tlet data6 = data.initialState;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {} else {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/initialState\",\n\t\t\t\t\tschemaPath: \"#/properties/initialState/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functions !== void 0) {\n\t\t\tlet data7 = data.functions;\n\t\t\tif (Array.isArray(data7)) {\n\t\t\t\tconst len0 = data7.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) {\n\t\t\t\t\tlet data8 = data7[i0];\n\t\t\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {\n\t\t\t\t\t\tif (data8.name === void 0) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind === void 0) {\n\t\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema === void 0) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation === void 0) {\n\t\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const key1 in data8) if (!(key1 === \"name\" || key1 === \"description\" || key1 === \"kind\" || key1 === \"inputSchema\" || key1 === \"outputSchema\" || key1 === \"implementation\" || key1 === \"annotations\" || key1 === \"metadata\")) {\n\t\t\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/additionalProperties\",\n\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.name !== void 0) {\n\t\t\t\t\t\t\tlet data9 = data8.name;\n\t\t\t\t\t\t\tif (typeof data9 === \"string\") {\n\t\t\t\t\t\t\t\tif (func1(data9) > 64) {\n\t\t\t\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/maxLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (func1(data9) < 1) {\n\t\t\t\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/minLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!pattern4.test(data9)) {\n\t\t\t\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/pattern\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.description !== void 0) {\n\t\t\t\t\t\t\tif (typeof data8.description !== \"string\") {\n\t\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/description\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/description/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind !== void 0) {\n\t\t\t\t\t\t\tlet data11 = data8.kind;\n\t\t\t\t\t\t\tif (!(data11 === \"query\" || data11 === \"mutation\")) {\n\t\t\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/kind\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/kind/enum\",\n\t\t\t\t\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\t\t\t\t\tparams: { allowedValues: schema33.properties.functions.items.properties.kind.enum },\n\t\t\t\t\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data12 = data8.inputSchema;\n\t\t\t\t\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {\n\t\t\t\t\t\t\t\tif (data12.type === void 0) {\n\t\t\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data12.type !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data13 = data12.type;\n\t\t\t\t\t\t\t\t\tif (typeof data13 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"object\" !== data13) {\n\t\t\t\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.outputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data14 = data8.outputSchema;\n\t\t\t\t\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {} else {\n\t\t\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/outputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/outputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation !== void 0) {\n\t\t\t\t\t\t\tlet data15 = data8.implementation;\n\t\t\t\t\t\t\tif (data15 && typeof data15 == \"object\" && !Array.isArray(data15)) {\n\t\t\t\t\t\t\t\tif (data15.runtime === void 0) {\n\t\t\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi === void 0) {\n\t\t\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format === void 0) {\n\t\t\t\t\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code === void 0) {\n\t\t\t\t\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const key2 in data15) if (!(key2 === \"runtime\" || key2 === \"abi\" || key2 === \"format\" || key2 === \"code\" || key2 === \"capabilities\" || key2 === \"timeoutMs\")) {\n\t\t\t\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.runtime !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data16 = data15.runtime;\n\t\t\t\t\t\t\t\t\tif (typeof data16 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"javascript\" !== data16) {\n\t\t\t\t\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data17 = data15.abi;\n\t\t\t\t\t\t\t\t\tif (typeof data17 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"state-machine-function-v1\" !== data17) {\n\t\t\t\t\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data18 = data15.format;\n\t\t\t\t\t\t\t\t\tif (typeof data18 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err42 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err42);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"async-function-body\" !== data18) {\n\t\t\t\t\t\t\t\t\t\tconst err43 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err43);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data19 = data15.code;\n\t\t\t\t\t\t\t\t\tif (typeof data19 === \"string\") {\n\t\t\t\t\t\t\t\t\t\tif (func1(data19) < 1) {\n\t\t\t\t\t\t\t\t\t\t\tconst err44 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err44];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err44);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err45 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err45];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err45);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data20 = data15.capabilities;\n\t\t\t\t\t\t\t\t\tif (Array.isArray(data20)) {\n\t\t\t\t\t\t\t\t\t\tconst len1 = data20.length;\n\t\t\t\t\t\t\t\t\t\tfor (let i1 = 0; i1 < len1; i1++) if (typeof data20[i1] !== \"string\") {\n\t\t\t\t\t\t\t\t\t\t\tconst err46 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities/\" + i1,\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err46];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err46);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err47 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err47];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err47);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.timeoutMs !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data22 = data15.timeoutMs;\n\t\t\t\t\t\t\t\t\tif (!(typeof data22 == \"number\" && !(data22 % 1) && !isNaN(data22) && isFinite(data22))) {\n\t\t\t\t\t\t\t\t\t\tconst err48 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err48];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err48);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (typeof data22 == \"number\" && isFinite(data22)) {\n\t\t\t\t\t\t\t\t\t\tif (data22 > 9007199254740991 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err49 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err49];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err49);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (data22 < 1 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err50 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err50];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err50);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err51 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err51];\n\t\t\t\t\t\t\t\telse vErrors.push(err51);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.annotations !== void 0) {\n\t\t\t\t\t\t\tlet data23 = data8.annotations;\n\t\t\t\t\t\t\tif (data23 && typeof data23 == \"object\" && !Array.isArray(data23)) {\n\t\t\t\t\t\t\t\tfor (const key3 in data23) if (!(key3 === \"exposeAsTool\" || key3 === \"pure\" || key3 === \"idempotent\" || key3 === \"destructive\" || key3 === \"deprecated\")) {\n\t\t\t\t\t\t\t\t\tconst err52 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key3 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err52];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err52);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.exposeAsTool !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err53 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err53];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err53);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.pure !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.pure !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err54 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/pure\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err54];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err54);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.idempotent !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.idempotent !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err55 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/idempotent\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err55];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err55);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.destructive !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.destructive !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err56 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/destructive\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err56];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err56);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.deprecated !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.deprecated !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err57 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/deprecated\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err57];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err57);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err58 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err58];\n\t\t\t\t\t\t\t\telse vErrors.push(err58);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.metadata !== void 0) {\n\t\t\t\t\t\t\tlet data29 = data8.metadata;\n\t\t\t\t\t\t\tif (data29 && typeof data29 == \"object\" && !Array.isArray(data29)) {} else {\n\t\t\t\t\t\t\t\tconst err59 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/metadata\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/metadata/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err59];\n\t\t\t\t\t\t\t\telse vErrors.push(err59);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err60 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err60];\n\t\t\t\t\t\telse vErrors.push(err60);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err61 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functions\",\n\t\t\t\t\tschemaPath: \"#/properties/functions/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err61];\n\t\t\t\telse vErrors.push(err61);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data30 = data.metadata;\n\t\t\tif (data30 && typeof data30 == \"object\" && !Array.isArray(data30)) {} else {\n\t\t\t\tconst err62 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err62];\n\t\t\t\telse vErrors.push(err62);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err63 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err63];\n\t\telse vErrors.push(err63);\n\t\terrors++;\n\t}\n\tvalidate22.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate22.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"version\",\n\t\"description\",\n\t\"stateSchema\",\n\t\"initialState\",\n\t\"functions\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/StateMachineTemplateSchema.mjs\nconst isValid = validate31;\nconst schema42 = {\n\t\"description\": \"Persisted state-machine template defining shared state, initial state, and available functions.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"stateSchema\",\n\t\t\"initialState\",\n\t\t\"functions\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted template format, not the logical application version.\",\n\t\t\t\"const\": 1,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"version\": {\n\t\t\t\"description\": \"Optional logical application version. This is different from a storage-driver revision.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the state machine.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"stateSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema shared by every function to validate instance state. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"initialState\": {\n\t\t\t\"description\": \"Default state used when creating an instance without an explicit state override. Must satisfy stateSchema when the template is prepared.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"functions\": {\n\t\t\t\"description\": \"Functions available on instances of this template. Names must be unique; the template parser enforces this semantic rule.\",\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"name\",\n\t\t\t\t\t\"kind\",\n\t\t\t\t\t\"inputSchema\",\n\t\t\t\t\t\"implementation\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"maxLength\": 64,\n\t\t\t\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"kind\": {\n\t\t\t\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"inputSchema\": {\n\t\t\t\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\"type\"],\n\t\t\t\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\t\t\t\"const\": \"object\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t} }\n\t\t\t\t\t},\n\t\t\t\t\t\"outputSchema\": {\n\t\t\t\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t},\n\t\t\t\t\t\"implementation\": {\n\t\t\t\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"required\": [\n\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\"abi\",\n\t\t\t\t\t\t\t\"format\",\n\t\t\t\t\t\t\t\"code\",\n\t\t\t\t\t\t\t\"capabilities\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"runtime\": {\n\t\t\t\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"abi\": {\n\t\t\t\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"format\": {\n\t\t\t\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Required in canonical definitions.\",\n\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"annotations\": {\n\t\t\t\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\t\t\t\"additionalProperties\": false,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"pure\": {\n\t\t\t\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"destructive\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the template. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate31(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate31.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.stateSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"stateSchema\" },\n\t\t\t\tmessage: \"must have required property 'stateSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.initialState === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"initialState\" },\n\t\t\t\tmessage: \"must have required property 'initialState'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functions === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functions\" },\n\t\t\t\tmessage: \"must have required property 'functions'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"schemaVersion\" || key0 === \"id\" || key0 === \"version\" || key0 === \"description\" || key0 === \"stateSchema\" || key0 === \"initialState\" || key0 === \"functions\" || key0 === \"metadata\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (1 !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 1 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.stateSchema !== void 0) {\n\t\t\tlet data4 = data.stateSchema;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {\n\t\t\t\tif (data4.type === void 0) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data4.type !== void 0) {\n\t\t\t\t\tlet data5 = data4.type;\n\t\t\t\t\tif (typeof data5 !== \"string\") {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data5) {\n\t\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/stateSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/stateSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/stateSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/stateSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.initialState !== void 0) {\n\t\t\tlet data6 = data.initialState;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {} else {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/initialState\",\n\t\t\t\t\tschemaPath: \"#/properties/initialState/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functions !== void 0) {\n\t\t\tlet data7 = data.functions;\n\t\t\tif (Array.isArray(data7)) {\n\t\t\t\tconst len0 = data7.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) {\n\t\t\t\t\tlet data8 = data7[i0];\n\t\t\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {\n\t\t\t\t\t\tif (data8.name === void 0) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind === void 0) {\n\t\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema === void 0) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation === void 0) {\n\t\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/required\",\n\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\t\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const key1 in data8) if (!(key1 === \"name\" || key1 === \"description\" || key1 === \"kind\" || key1 === \"inputSchema\" || key1 === \"outputSchema\" || key1 === \"implementation\" || key1 === \"annotations\" || key1 === \"metadata\")) {\n\t\t\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/additionalProperties\",\n\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.name !== void 0) {\n\t\t\t\t\t\t\tlet data9 = data8.name;\n\t\t\t\t\t\t\tif (typeof data9 === \"string\") {\n\t\t\t\t\t\t\t\tif (func1(data9) > 64) {\n\t\t\t\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/maxLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (func1(data9) < 1) {\n\t\t\t\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/minLength\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!pattern4.test(data9)) {\n\t\t\t\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/pattern\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/name\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/name/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.description !== void 0) {\n\t\t\t\t\t\t\tif (typeof data8.description !== \"string\") {\n\t\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/description\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/description/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.kind !== void 0) {\n\t\t\t\t\t\t\tlet data11 = data8.kind;\n\t\t\t\t\t\t\tif (!(data11 === \"query\" || data11 === \"mutation\")) {\n\t\t\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/kind\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/kind/enum\",\n\t\t\t\t\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\t\t\t\t\tparams: { allowedValues: schema42.properties.functions.items.properties.kind.enum },\n\t\t\t\t\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.inputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data12 = data8.inputSchema;\n\t\t\t\t\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {\n\t\t\t\t\t\t\t\tif (data12.type === void 0) {\n\t\t\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data12.type !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data13 = data12.type;\n\t\t\t\t\t\t\t\t\tif (typeof data13 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"object\" !== data13) {\n\t\t\t\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema/type\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/inputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/inputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.outputSchema !== void 0) {\n\t\t\t\t\t\t\tlet data14 = data8.outputSchema;\n\t\t\t\t\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {} else {\n\t\t\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/outputSchema\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/outputSchema/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.implementation !== void 0) {\n\t\t\t\t\t\t\tlet data15 = data8.implementation;\n\t\t\t\t\t\t\tif (data15 && typeof data15 == \"object\" && !Array.isArray(data15)) {\n\t\t\t\t\t\t\t\tif (data15.runtime === void 0) {\n\t\t\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi === void 0) {\n\t\t\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format === void 0) {\n\t\t\t\t\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code === void 0) {\n\t\t\t\t\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities === void 0) {\n\t\t\t\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/required\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\t\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const key2 in data15) if (!(key2 === \"runtime\" || key2 === \"abi\" || key2 === \"format\" || key2 === \"code\" || key2 === \"capabilities\" || key2 === \"timeoutMs\")) {\n\t\t\t\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.runtime !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data16 = data15.runtime;\n\t\t\t\t\t\t\t\t\tif (typeof data16 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"javascript\" !== data16) {\n\t\t\t\t\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/runtime\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.abi !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data17 = data15.abi;\n\t\t\t\t\t\t\t\t\tif (typeof data17 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"state-machine-function-v1\" !== data17) {\n\t\t\t\t\t\t\t\t\t\tconst err42 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/abi\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err42);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.format !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data18 = data15.format;\n\t\t\t\t\t\t\t\t\tif (typeof data18 !== \"string\") {\n\t\t\t\t\t\t\t\t\t\tconst err43 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err43);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (\"async-function-body\" !== data18) {\n\t\t\t\t\t\t\t\t\t\tconst err44 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/format\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err44];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err44);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.code !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data19 = data15.code;\n\t\t\t\t\t\t\t\t\tif (typeof data19 === \"string\") {\n\t\t\t\t\t\t\t\t\t\tif (func1(data19) < 1) {\n\t\t\t\t\t\t\t\t\t\t\tconst err45 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err45];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err45);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err46 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/code\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err46];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err46);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.capabilities !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data20 = data15.capabilities;\n\t\t\t\t\t\t\t\t\tif (Array.isArray(data20)) {\n\t\t\t\t\t\t\t\t\t\tconst len1 = data20.length;\n\t\t\t\t\t\t\t\t\t\tfor (let i1 = 0; i1 < len1; i1++) if (typeof data20[i1] !== \"string\") {\n\t\t\t\t\t\t\t\t\t\t\tconst err47 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities/\" + i1,\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err47];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err47);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tconst err48 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/capabilities\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err48];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err48);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data15.timeoutMs !== void 0) {\n\t\t\t\t\t\t\t\t\tlet data22 = data15.timeoutMs;\n\t\t\t\t\t\t\t\t\tif (!(typeof data22 == \"number\" && !(data22 % 1) && !isNaN(data22) && isFinite(data22))) {\n\t\t\t\t\t\t\t\t\t\tconst err49 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err49];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err49);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (typeof data22 == \"number\" && isFinite(data22)) {\n\t\t\t\t\t\t\t\t\t\tif (data22 > 9007199254740991 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err50 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err50];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err50);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (data22 < 1 || isNaN(data22)) {\n\t\t\t\t\t\t\t\t\t\t\tconst err51 = {\n\t\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err51];\n\t\t\t\t\t\t\t\t\t\t\telse vErrors.push(err51);\n\t\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err52 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/implementation\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/implementation/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err52];\n\t\t\t\t\t\t\t\telse vErrors.push(err52);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.annotations !== void 0) {\n\t\t\t\t\t\t\tlet data23 = data8.annotations;\n\t\t\t\t\t\t\tif (data23 && typeof data23 == \"object\" && !Array.isArray(data23)) {\n\t\t\t\t\t\t\t\tfor (const key3 in data23) if (!(key3 === \"exposeAsTool\" || key3 === \"pure\" || key3 === \"idempotent\" || key3 === \"destructive\" || key3 === \"deprecated\")) {\n\t\t\t\t\t\t\t\t\tconst err53 = {\n\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\t\t\t\t\tparams: { additionalProperty: key3 },\n\t\t\t\t\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err53];\n\t\t\t\t\t\t\t\t\telse vErrors.push(err53);\n\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.exposeAsTool !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err54 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err54];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err54);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.pure !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.pure !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err55 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/pure\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err55];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err55);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.idempotent !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.idempotent !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err56 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/idempotent\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err56];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err56);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.destructive !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.destructive !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err57 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/destructive\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err57];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err57);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (data23.deprecated !== void 0) {\n\t\t\t\t\t\t\t\t\tif (typeof data23.deprecated !== \"boolean\") {\n\t\t\t\t\t\t\t\t\t\tconst err58 = {\n\t\t\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations/deprecated\",\n\t\t\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err58];\n\t\t\t\t\t\t\t\t\t\telse vErrors.push(err58);\n\t\t\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst err59 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/annotations\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/annotations/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err59];\n\t\t\t\t\t\t\t\telse vErrors.push(err59);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data8.metadata !== void 0) {\n\t\t\t\t\t\t\tlet data29 = data8.metadata;\n\t\t\t\t\t\t\tif (data29 && typeof data29 == \"object\" && !Array.isArray(data29)) {} else {\n\t\t\t\t\t\t\t\tconst err60 = {\n\t\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0 + \"/metadata\",\n\t\t\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/properties/metadata/type\",\n\t\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err60];\n\t\t\t\t\t\t\t\telse vErrors.push(err60);\n\t\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err61 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/functions/\" + i0,\n\t\t\t\t\t\t\tschemaPath: \"#/properties/functions/items/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err61];\n\t\t\t\t\t\telse vErrors.push(err61);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err62 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functions\",\n\t\t\t\t\tschemaPath: \"#/properties/functions/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err62];\n\t\t\t\telse vErrors.push(err62);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data30 = data.metadata;\n\t\t\tif (data30 && typeof data30 == \"object\" && !Array.isArray(data30)) {} else {\n\t\t\t\tconst err63 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err63];\n\t\t\t\telse vErrors.push(err63);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err64 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err64];\n\t\telse vErrors.push(err64);\n\t\terrors++;\n\t}\n\tvalidate31.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate31.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"version\",\n\t\"description\",\n\t\"stateSchema\",\n\t\"initialState\",\n\t\"functions\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import type { StandardJSONSchemaV1 } from '@standard-schema/spec';\n\nimport type { ContractSchema } from './contract-values.ts';\nimport { contract } from './contract.ts';\nimport type { CompiledContract, ContractValidator } from './contract.ts';\nimport type { ContractIssue } from './types.ts';\n\nexport type Contract<Input, Output = Input> = StandardJSONSchemaV1<Input, Output> & ContractValidator<Input, Output>;\n\nfunction jsonSchema(schema: Record<string, unknown>, options: StandardJSONSchemaV1.Options): Record<string, unknown> {\n if (options.target !== 'draft-2020-12') throw new Error(`Unsupported JSON Schema target: ${options.target}`);\n if (options.libraryOptions && Object.keys(options.libraryOptions).length > 0)\n throw new Error('JSON Schema library options are unsupported; only structural projection is available');\n // Converters return independent structural projections, not full semantic validators.\n return structuredClone({ $schema: 'https://json-schema.org/draft/2020-12/schema', ...schema });\n}\n\nexport function withJsonSchema<Input, Output>(\n validator: ContractValidator<Input, Output>,\n input: Record<string, unknown>,\n output: Record<string, unknown> = input,\n): Contract<Input, Output> {\n return {\n ...validator,\n '~standard': {\n ...validator['~standard'],\n jsonSchema: {\n input: (options) => jsonSchema(input, options),\n output: (options) => jsonSchema(output, options),\n },\n },\n };\n}\n\nexport function canonicalContract<T>(\n schema: ContractSchema & Record<string, unknown>,\n compiled: CompiledContract,\n semantic?: (value: T) => ContractIssue[],\n): Contract<T> {\n return withJsonSchema(contract<T>(schema, compiled, semantic), schema);\n}\n","import { CreateStateMachineTemplateSchema } from '../schemas.ts';\nimport type { StateMachineTemplate, StateMachineTemplateDraft } from '../types.ts';\n\n/**\n * Transform a validated draft into a canonical candidate using fresh authored defaults.\n * Canonical validation remains the final boundary.\n */\nexport function applyTemplateCreationDefaults(draft: StateMachineTemplateDraft): StateMachineTemplate {\n const capabilitiesDefault =\n CreateStateMachineTemplateSchema.properties.functions.items.properties.implementation.properties.capabilities\n .default;\n return {\n ...draft,\n functions: draft.functions.map((function_) => ({\n ...function_,\n implementation: {\n ...function_.implementation,\n capabilities: function_.implementation.capabilities ?? [...capabilitiesDefault],\n },\n })),\n };\n}\n","import type { StateMachineTemplate } from '../types.ts';\n\nimport type { ContractIssue } from './types.ts';\n\nexport function validateTemplateSemantics(value: StateMachineTemplate): ContractIssue[] {\n const names = new Set<string>();\n const issues: ContractIssue[] = [];\n for (const [index, definition] of value.functions.entries()) {\n if (names.has(definition.name)) {\n issues.push({\n path: `/functions/${index}/name`,\n message: `Duplicate function name: ${definition.name}`,\n });\n }\n names.add(definition.name);\n }\n return issues;\n}\n","import * as creation from '../../generated/CreateStateMachineTemplateSchema.mjs';\nimport * as canonical from '../../generated/StateMachineTemplateSchema.mjs';\nimport { CreateStateMachineTemplateSchema, StateMachineTemplateSchema } from '../schemas.ts';\nimport type { StateMachineTemplate, StateMachineTemplateDraft } from '../types.ts';\n\nimport { contract, contractFromStandard } from './contract.ts';\nimport { canonicalContract, withJsonSchema } from './projection.ts';\nimport type { Contract } from './projection.ts';\nimport { applyTemplateCreationDefaults } from './template-creation.ts';\nimport { validateTemplateSemantics } from './template-semantics.ts';\n\n/**\n * Strict validation: no defaults, coercion, stripping, or implicit migration.\n */\nexport const StateMachineTemplateContract: Contract<StateMachineTemplate, StateMachineTemplate> =\n canonicalContract<StateMachineTemplate>(StateMachineTemplateSchema, canonical, validateTemplateSemantics);\n\nconst draftValidator = contract<StateMachineTemplateDraft>(CreateStateMachineTemplateSchema, creation);\n\nconst creationValidator = contractFromStandard<StateMachineTemplateDraft, StateMachineTemplate>((value) => {\n const draft = draftValidator['~standard'].validate(value);\n return draft.issues\n ? draft\n : StateMachineTemplateContract['~standard'].validate(applyTemplateCreationDefaults(draft.value));\n});\n\n/**\n * Creation supplies fresh defaults, then validates the canonical result.\n */\nexport const CreateStateMachineTemplateContract: Contract<StateMachineTemplateDraft, StateMachineTemplate> =\n withJsonSchema(creationValidator, CreateStateMachineTemplateSchema, StateMachineTemplateSchema);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js\nvar require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.formatNames = exports.fastFormats = exports.fullFormats = void 0;\n\tfunction fmtDef(validate, compare) {\n\t\treturn {\n\t\t\tvalidate,\n\t\t\tcompare\n\t\t};\n\t}\n\texports.fullFormats = {\n\t\tdate: fmtDef(date, compareDate),\n\t\ttime: fmtDef(getTime(true), compareTime),\n\t\t\"date-time\": fmtDef(getDateTime(true), compareDateTime),\n\t\t\"iso-time\": fmtDef(getTime(), compareIsoTime),\n\t\t\"iso-date-time\": fmtDef(getDateTime(), compareIsoDateTime),\n\t\tduration: /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/,\n\t\turi,\n\t\t\"uri-reference\": /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(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uri-template\": /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\n\t\turl: /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,\n\t\temail: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n\t\thostname: /^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,\n\t\tipv4: /^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/,\n\t\tipv6: /^((([0-9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-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n\t\t\"json-pointer\": /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n\t\t\"json-pointer-uri-fragment\": /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n\t\t\"relative-json-pointer\": /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n\t\tbyte,\n\t\tint32: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateInt32\n\t\t},\n\t\tint64: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateInt64\n\t\t},\n\t\tfloat: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateNumber\n\t\t},\n\t\tdouble: {\n\t\t\ttype: \"number\",\n\t\t\tvalidate: validateNumber\n\t\t},\n\t\tpassword: true,\n\t\tbinary: true\n\t};\n\texports.fastFormats = {\n\t\t...exports.fullFormats,\n\t\tdate: fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/, compareDate),\n\t\ttime: fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareTime),\n\t\t\"date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\dt(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i, compareDateTime),\n\t\t\"iso-time\": fmtDef(/^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoTime),\n\t\t\"iso-date-time\": fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i, compareIsoDateTime),\n\t\turi: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n\t\t\"uri-reference\": /^(?:(?:[a-z][a-z0-9+\\-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n\t\temail: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i\n\t};\n\texports.formatNames = Object.keys(exports.fullFormats);\n\tfunction isLeapYear(year) {\n\t\treturn year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n\t}\n\tconst DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/;\n\tconst DAYS = [\n\t\t0,\n\t\t31,\n\t\t28,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t31,\n\t\t30,\n\t\t31,\n\t\t30,\n\t\t31\n\t];\n\tfunction date(str) {\n\t\tconst matches = DATE.exec(str);\n\t\tif (!matches) return false;\n\t\tconst year = +matches[1];\n\t\tconst month = +matches[2];\n\t\tconst day = +matches[3];\n\t\treturn month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);\n\t}\n\tfunction compareDate(d1, d2) {\n\t\tif (!(d1 && d2)) return void 0;\n\t\tif (d1 > d2) return 1;\n\t\tif (d1 < d2) return -1;\n\t\treturn 0;\n\t}\n\tconst TIME = /^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i;\n\tfunction getTime(strictTimeZone) {\n\t\treturn function time(str) {\n\t\t\tconst matches = TIME.exec(str);\n\t\t\tif (!matches) return false;\n\t\t\tconst hr = +matches[1];\n\t\t\tconst min = +matches[2];\n\t\t\tconst sec = +matches[3];\n\t\t\tconst tz = matches[4];\n\t\t\tconst tzSign = matches[5] === \"-\" ? -1 : 1;\n\t\t\tconst tzH = +(matches[6] || 0);\n\t\t\tconst tzM = +(matches[7] || 0);\n\t\t\tif (tzH > 23 || tzM > 59 || strictTimeZone && !tz) return false;\n\t\t\tif (hr <= 23 && min <= 59 && sec < 60) return true;\n\t\t\tconst utcMin = min - tzM * tzSign;\n\t\t\tconst utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);\n\t\t\treturn (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;\n\t\t};\n\t}\n\tfunction compareTime(s1, s2) {\n\t\tif (!(s1 && s2)) return void 0;\n\t\tconst t1 = (/* @__PURE__ */ new Date(\"2020-01-01T\" + s1)).valueOf();\n\t\tconst t2 = (/* @__PURE__ */ new Date(\"2020-01-01T\" + s2)).valueOf();\n\t\tif (!(t1 && t2)) return void 0;\n\t\treturn t1 - t2;\n\t}\n\tfunction compareIsoTime(t1, t2) {\n\t\tif (!(t1 && t2)) return void 0;\n\t\tconst a1 = TIME.exec(t1);\n\t\tconst a2 = TIME.exec(t2);\n\t\tif (!(a1 && a2)) return void 0;\n\t\tt1 = a1[1] + a1[2] + a1[3];\n\t\tt2 = a2[1] + a2[2] + a2[3];\n\t\tif (t1 > t2) return 1;\n\t\tif (t1 < t2) return -1;\n\t\treturn 0;\n\t}\n\tconst DATE_TIME_SEPARATOR = /t|\\s/i;\n\tfunction getDateTime(strictTimeZone) {\n\t\tconst time = getTime(strictTimeZone);\n\t\treturn function date_time(str) {\n\t\t\tconst dateTime = str.split(DATE_TIME_SEPARATOR);\n\t\t\treturn dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);\n\t\t};\n\t}\n\tfunction compareDateTime(dt1, dt2) {\n\t\tif (!(dt1 && dt2)) return void 0;\n\t\tconst d1 = new Date(dt1).valueOf();\n\t\tconst d2 = new Date(dt2).valueOf();\n\t\tif (!(d1 && d2)) return void 0;\n\t\treturn d1 - d2;\n\t}\n\tfunction compareIsoDateTime(dt1, dt2) {\n\t\tif (!(dt1 && dt2)) return void 0;\n\t\tconst [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);\n\t\tconst [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);\n\t\tconst res = compareDate(d1, d2);\n\t\tif (res === void 0) return void 0;\n\t\treturn res || compareTime(t1, t2);\n\t}\n\tconst NOT_URI_FRAGMENT = /\\/|:/;\n\tconst URI = /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;\n\tfunction uri(str) {\n\t\treturn NOT_URI_FRAGMENT.test(str) && URI.test(str);\n\t}\n\tconst BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;\n\tfunction byte(str) {\n\t\tBYTE.lastIndex = 0;\n\t\treturn BYTE.test(str);\n\t}\n\tconst MIN_INT32 = -(2 ** 31);\n\tconst MAX_INT32 = 2 ** 31 - 1;\n\tfunction validateInt32(value) {\n\t\treturn Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;\n\t}\n\tfunction validateInt64(value) {\n\t\treturn Number.isInteger(value);\n\t}\n\tfunction validateNumber() {\n\t\treturn true;\n\t}\n\tconst Z_ANCHOR = /[^\\\\]\\\\Z/;\n\tfunction regex(str) {\n\t\tif (Z_ANCHOR.test(str)) return false;\n\t\ttry {\n\t\t\tnew RegExp(str);\n\t\t\treturn true;\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t}\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/StateMachineInstanceSchema.mjs\nconst isValid = validate29;\nconst schema40 = {\n\t\"description\": \"Persisted state-machine instance, pinned to a template revision and tracking its current state.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"schemaVersion\",\n\t\t\"id\",\n\t\t\"template\",\n\t\t\"retention\",\n\t\t\"state\",\n\t\t\"sequence\",\n\t\t\"createdAt\",\n\t\t\"updatedAt\"\n\t],\n\t\"properties\": {\n\t\t\"schemaVersion\": {\n\t\t\t\"description\": \"Version of the persisted instance format, not the logical instance sequence.\",\n\t\t\t\"const\": 2,\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"id\": {\n\t\t\t\"description\": \"Unique identifier of the instance.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"template\": {\n\t\t\t\"description\": \"Template identity and storage revision bound to a state-machine instance.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"id\", \"revision\"],\n\t\t\t\"properties\": {\n\t\t\t\t\"id\": {\n\t\t\t\t\t\"description\": \"Unique identifier of the template.\",\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"version\": {\n\t\t\t\t\t\"description\": \"Logical application version of the template. Optional because the template may have no version.\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"revision\": {\n\t\t\t\t\t\"description\": \"Storage-driver revision of the template used to create this instance. Pins execution to that revision so changing a stored template cannot silently change instance behavior.\",\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"retention\": {\n\t\t\t\"description\": \"Instance-owned retention policy, independent of execution callers and application state.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"ttlMs\"],\n\t\t\t\"properties\": { \"ttlMs\": {\n\t\t\t\t\"description\": \"Sliding expiration duration in milliseconds, renewed on successful persisted updates. Zero means no expiration.\",\n\t\t\t\t\"minimum\": 0,\n\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\"type\": \"integer\"\n\t\t\t} }\n\t\t},\n\t\t\"state\": {\n\t\t\t\"description\": \"Current instance state, validated against the bound template's stateSchema during execution and storage operations.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"sequence\": {\n\t\t\t\"description\": \"Logical instance version. Increased for every successful persisted update; independent of the storage-driver revision.\",\n\t\t\t\"minimum\": 0,\n\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\"type\": \"integer\"\n\t\t},\n\t\t\"createdAt\": {\n\t\t\t\"format\": \"date-time\",\n\t\t\t\"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\",\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Date and time the instance was created, as an ISO 8601 UTC datetime ending in Z.\"\n\t\t},\n\t\t\"updatedAt\": {\n\t\t\t\"format\": \"date-time\",\n\t\t\t\"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\",\n\t\t\t\"type\": \"string\",\n\t\t\t\"description\": \"Date and time the instance was last updated, as an ISO 8601 UTC datetime ending in Z.\"\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the instance. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func14 = Object.prototype.hasOwnProperty;\nconst func1 = require_ucs2length().default;\nconst formats0 = require_formats().fullFormats[\"date-time\"];\nconst pattern7 = /* @__PURE__ */ new RegExp(\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\", \"u\");\nfunction validate29(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate29.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.schemaVersion === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"schemaVersion\" },\n\t\t\t\tmessage: \"must have required property 'schemaVersion'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.template === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"template\" },\n\t\t\t\tmessage: \"must have required property 'template'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.retention === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"retention\" },\n\t\t\t\tmessage: \"must have required property 'retention'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.state === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"state\" },\n\t\t\t\tmessage: \"must have required property 'state'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.sequence === void 0) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"sequence\" },\n\t\t\t\tmessage: \"must have required property 'sequence'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.createdAt === void 0) {\n\t\t\tconst err6 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"createdAt\" },\n\t\t\t\tmessage: \"must have required property 'createdAt'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\telse vErrors.push(err6);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.updatedAt === void 0) {\n\t\t\tconst err7 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"updatedAt\" },\n\t\t\t\tmessage: \"must have required property 'updatedAt'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\telse vErrors.push(err7);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!func14.call(schema40.properties, key0)) {\n\t\t\tconst err8 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\telse vErrors.push(err8);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.schemaVersion !== void 0) {\n\t\t\tlet data0 = data.schemaVersion;\n\t\t\tif (!(typeof data0 == \"number\" && isFinite(data0))) {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"number\" },\n\t\t\t\t\tmessage: \"must be number\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (2 !== data0) {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/schemaVersion\",\n\t\t\t\t\tschemaPath: \"#/properties/schemaVersion/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: 2 },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data1 = data.id;\n\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.template !== void 0) {\n\t\t\tlet data2 = data.template;\n\t\t\tif (data2 && typeof data2 == \"object\" && !Array.isArray(data2)) {\n\t\t\t\tif (data2.id === void 0) {\n\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data2.revision === void 0) {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"revision\" },\n\t\t\t\t\t\tmessage: \"must have required property 'revision'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data2) if (!(key1 === \"id\" || key1 === \"version\" || key1 === \"revision\")) {\n\t\t\t\t\tconst err15 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\t\telse vErrors.push(err15);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data2.id !== void 0) {\n\t\t\t\t\tlet data3 = data2.id;\n\t\t\t\t\tif (typeof data3 === \"string\") {\n\t\t\t\t\t\tif (func1(data3) < 1) {\n\t\t\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data2.version !== void 0) {\n\t\t\t\t\tif (typeof data2.version !== \"string\") {\n\t\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/version\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/version/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data2.revision !== void 0) {\n\t\t\t\t\tlet data5 = data2.revision;\n\t\t\t\t\tif (typeof data5 === \"string\") {\n\t\t\t\t\t\tif (func1(data5) < 1) {\n\t\t\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/revision\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/revision/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/revision\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/revision/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err21 = {\n\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\tschemaPath: \"#/properties/template/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\telse vErrors.push(err21);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.retention !== void 0) {\n\t\t\tlet data6 = data.retention;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.ttlMs === void 0) {\n\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"ttlMs\" },\n\t\t\t\t\t\tmessage: \"must have required property 'ttlMs'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key2 in data6) if (!(key2 === \"ttlMs\")) {\n\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.ttlMs !== void 0) {\n\t\t\t\t\tlet data7 = data6.ttlMs;\n\t\t\t\t\tif (!(typeof data7 == \"number\" && !(data7 % 1) && !isNaN(data7) && isFinite(data7))) {\n\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data7 == \"number\" && isFinite(data7)) {\n\t\t\t\t\t\tif (data7 > 9007199254740991 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data7 < 0 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err27 = {\n\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\tschemaPath: \"#/properties/retention/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\telse vErrors.push(err27);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.state !== void 0) {\n\t\t\tlet data8 = data.state;\n\t\t\tif (data8 && typeof data8 == \"object\" && !Array.isArray(data8)) {} else {\n\t\t\t\tconst err28 = {\n\t\t\t\t\tinstancePath: instancePath + \"/state\",\n\t\t\t\t\tschemaPath: \"#/properties/state/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\telse vErrors.push(err28);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.sequence !== void 0) {\n\t\t\tlet data9 = data.sequence;\n\t\t\tif (!(typeof data9 == \"number\" && !(data9 % 1) && !isNaN(data9) && isFinite(data9))) {\n\t\t\t\tconst err29 = {\n\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\tschemaPath: \"#/properties/sequence/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\telse vErrors.push(err29);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (typeof data9 == \"number\" && isFinite(data9)) {\n\t\t\t\tif (data9 > 9007199254740991 || isNaN(data9)) {\n\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\t\tschemaPath: \"#/properties/sequence/maximum\",\n\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data9 < 0 || isNaN(data9)) {\n\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/sequence\",\n\t\t\t\t\t\tschemaPath: \"#/properties/sequence/minimum\",\n\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (data.createdAt !== void 0) {\n\t\t\tlet data10 = data.createdAt;\n\t\t\tif (typeof data10 === \"string\") {\n\t\t\t\tif (!pattern7.test(data10)) {\n\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/createdAt/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!formats0.validate(data10)) {\n\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/createdAt/format\",\n\t\t\t\t\t\tkeyword: \"format\",\n\t\t\t\t\t\tparams: { format: \"date-time\" },\n\t\t\t\t\t\tmessage: \"must match format \\\"date-time\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err34 = {\n\t\t\t\t\tinstancePath: instancePath + \"/createdAt\",\n\t\t\t\t\tschemaPath: \"#/properties/createdAt/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\telse vErrors.push(err34);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.updatedAt !== void 0) {\n\t\t\tlet data11 = data.updatedAt;\n\t\t\tif (typeof data11 === \"string\") {\n\t\t\t\tif (!pattern7.test(data11)) {\n\t\t\t\t\tconst err35 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/updatedAt/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^\\\\d{4}-\\\\d{2}-\\\\d{2}T(?:[01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d(?:\\\\.\\\\d+)?Z$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\t\telse vErrors.push(err35);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!formats0.validate(data11)) {\n\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\t\tschemaPath: \"#/properties/updatedAt/format\",\n\t\t\t\t\t\tkeyword: \"format\",\n\t\t\t\t\t\tparams: { format: \"date-time\" },\n\t\t\t\t\t\tmessage: \"must match format \\\"date-time\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err37 = {\n\t\t\t\t\tinstancePath: instancePath + \"/updatedAt\",\n\t\t\t\t\tschemaPath: \"#/properties/updatedAt/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\telse vErrors.push(err37);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data12 = data.metadata;\n\t\t\tif (data12 && typeof data12 == \"object\" && !Array.isArray(data12)) {} else {\n\t\t\t\tconst err38 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\telse vErrors.push(err38);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err39 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err39];\n\t\telse vErrors.push(err39);\n\t\terrors++;\n\t}\n\tvalidate29.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate29.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"schemaVersion\",\n\t\"id\",\n\t\"template\",\n\t\"retention\",\n\t\"state\",\n\t\"sequence\",\n\t\"createdAt\",\n\t\"updatedAt\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/StateMachineTemplateBindingSchema.mjs\nconst isValid = validate30;\nconst func1 = require_ucs2length().default;\nfunction validate30(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate30.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.id === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.revision === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"revision\" },\n\t\t\t\tmessage: \"must have required property 'revision'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"id\" || key0 === \"version\" || key0 === \"revision\")) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data0 = data.id;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err3 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\t\t\telse vErrors.push(err3);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err4 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\telse vErrors.push(err4);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.version !== void 0) {\n\t\t\tif (typeof data.version !== \"string\") {\n\t\t\t\tconst err5 = {\n\t\t\t\t\tinstancePath: instancePath + \"/version\",\n\t\t\t\t\tschemaPath: \"#/properties/version/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\telse vErrors.push(err5);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.revision !== void 0) {\n\t\t\tlet data2 = data.revision;\n\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/revision\",\n\t\t\t\t\t\tschemaPath: \"#/properties/revision/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/revision\",\n\t\t\t\t\tschemaPath: \"#/properties/revision/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err8 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err8];\n\t\telse vErrors.push(err8);\n\t\terrors++;\n\t}\n\tvalidate30.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate30.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"id\",\n\t\"version\",\n\t\"revision\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as instance from '../../generated/StateMachineInstanceSchema.mjs';\nimport * as binding from '../../generated/StateMachineTemplateBindingSchema.mjs';\nimport { StateMachineInstanceSchema, StateMachineTemplateBindingSchema } from '../schemas.ts';\nimport type { StateMachineInstance, StateMachineTemplateBinding } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Canonical instance validation; creation fields are assigned by domain operations.\n */\nexport const StateMachineInstanceContract = canonicalContract<StateMachineInstance>(\n StateMachineInstanceSchema,\n instance,\n);\nexport const StateMachineTemplateBindingContract = canonicalContract<StateMachineTemplateBinding>(\n StateMachineTemplateBindingSchema,\n binding,\n);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/CreateStateMachineInstanceRequestSchema.mjs\nconst isValid = validate20;\nconst func1 = require_ucs2length().default;\nfunction validate20(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate20.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.id === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.template === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"template\" },\n\t\t\t\tmessage: \"must have required property 'template'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"id\" || key0 === \"template\" || key0 === \"state\" || key0 === \"metadata\" || key0 === \"retention\")) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.id !== void 0) {\n\t\t\tlet data0 = data.id;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err3 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\t\tschemaPath: \"#/properties/id/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\t\t\telse vErrors.push(err3);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err4 = {\n\t\t\t\t\tinstancePath: instancePath + \"/id\",\n\t\t\t\t\tschemaPath: \"#/properties/id/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\telse vErrors.push(err4);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.template !== void 0) {\n\t\t\tlet data1 = data.template;\n\t\t\tif (data1 && typeof data1 == \"object\" && !Array.isArray(data1)) {\n\t\t\t\tif (data1.id === void 0) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data1) if (!(key1 === \"id\" || key1 === \"version\")) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\t\tschemaPath: \"#/properties/template/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data1.id !== void 0) {\n\t\t\t\t\tlet data2 = data1.id;\n\t\t\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err8 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\t\t\telse vErrors.push(err8);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data1.version !== void 0) {\n\t\t\t\t\tif (typeof data1.version !== \"string\") {\n\t\t\t\t\t\tconst err9 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/template/version\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/template/properties/version/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\t\t\telse vErrors.push(err9);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/template\",\n\t\t\t\t\tschemaPath: \"#/properties/template/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.state !== void 0) {\n\t\t\tlet data4 = data.state;\n\t\t\tif (data4 && typeof data4 == \"object\" && !Array.isArray(data4)) {} else {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/state\",\n\t\t\t\t\tschemaPath: \"#/properties/state/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data5 = data.metadata;\n\t\t\tif (data5 && typeof data5 == \"object\" && !Array.isArray(data5)) {} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.retention !== void 0) {\n\t\t\tlet data6 = data.retention;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.ttlMs === void 0) {\n\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"ttlMs\" },\n\t\t\t\t\t\tmessage: \"must have required property 'ttlMs'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key2 in data6) if (!(key2 === \"ttlMs\")) {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\t\tschemaPath: \"#/properties/retention/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.ttlMs !== void 0) {\n\t\t\t\t\tlet data7 = data6.ttlMs;\n\t\t\t\t\tif (!(typeof data7 == \"number\" && !(data7 % 1) && !isNaN(data7) && isFinite(data7))) {\n\t\t\t\t\t\tconst err15 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\t\t\telse vErrors.push(err15);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data7 == \"number\" && isFinite(data7)) {\n\t\t\t\t\t\tif (data7 > 9007199254740991 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data7 < 0 || isNaN(data7)) {\n\t\t\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/retention/ttlMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/retention/properties/ttlMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 0\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 0\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err18 = {\n\t\t\t\t\tinstancePath: instancePath + \"/retention\",\n\t\t\t\t\tschemaPath: \"#/properties/retention/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\telse vErrors.push(err18);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err19 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err19];\n\t\telse vErrors.push(err19);\n\t\terrors++;\n\t}\n\tvalidate20.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate20.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"id\",\n\t\"template\",\n\t\"state\",\n\t\"metadata\",\n\t\"retention\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/ExecuteStateMachineFunctionRequestSchema.mjs\nconst isValid = validate23;\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate23(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate23.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.instance === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"instance\" },\n\t\t\t\tmessage: \"must have required property 'instance'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.functionName === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"functionName\" },\n\t\t\t\tmessage: \"must have required property 'functionName'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.input === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"input\" },\n\t\t\t\tmessage: \"must have required property 'input'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"instance\" || key0 === \"functionName\" || key0 === \"input\")) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.instance !== void 0) {\n\t\t\tlet data0 = data.instance;\n\t\t\tif (data0 && typeof data0 == \"object\" && !Array.isArray(data0)) {\n\t\t\t\tif (data0.id === void 0) {\n\t\t\t\t\tconst err4 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\t\tschemaPath: \"#/properties/instance/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"id\" },\n\t\t\t\t\t\tmessage: \"must have required property 'id'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\t\t\telse vErrors.push(err4);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data0) if (!(key1 === \"id\")) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\t\tschemaPath: \"#/properties/instance/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data0.id !== void 0) {\n\t\t\t\t\tlet data1 = data0.id;\n\t\t\t\t\tif (typeof data1 === \"string\") {\n\t\t\t\t\t\tif (func1(data1) < 1) {\n\t\t\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/instance/id\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/instance/properties/id/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/instance/id\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/instance/properties/id/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/instance\",\n\t\t\t\t\tschemaPath: \"#/properties/instance/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.functionName !== void 0) {\n\t\t\tlet data2 = data.functionName;\n\t\t\tif (typeof data2 === \"string\") {\n\t\t\t\tif (func1(data2) > 64) {\n\t\t\t\t\tconst err9 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/maxLength\",\n\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\t\telse vErrors.push(err9);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (func1(data2) < 1) {\n\t\t\t\t\tconst err10 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\t\telse vErrors.push(err10);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!pattern4.test(data2)) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\t\tschemaPath: \"#/properties/functionName/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err12 = {\n\t\t\t\t\tinstancePath: instancePath + \"/functionName\",\n\t\t\t\t\tschemaPath: \"#/properties/functionName/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\telse vErrors.push(err12);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err13 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err13];\n\t\telse vErrors.push(err13);\n\t\terrors++;\n\t}\n\tvalidate23.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate23.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"instance\",\n\t\"functionName\",\n\t\"input\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as instanceRequest from '../../generated/CreateStateMachineInstanceRequestSchema.mjs';\nimport * as executionRequest from '../../generated/ExecuteStateMachineFunctionRequestSchema.mjs';\nimport { ExecuteStateMachineFunctionRequestSchema, CreateStateMachineInstanceRequestSchema } from '../schemas.ts';\nimport type { CreateStateMachineInstanceRequest, ExecuteStateMachineFunctionRequest } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Pure request validation; does not create an instance or populate domain-owned fields.\n */\nexport const CreateStateMachineInstanceRequestContract = canonicalContract<CreateStateMachineInstanceRequest>(\n CreateStateMachineInstanceRequestSchema,\n instanceRequest,\n);\n\n/**\n * Validate the envelope only; context and function-specific validation stay separate.\n */\nexport const ExecuteStateMachineFunctionRequestContract = canonicalContract<ExecuteStateMachineFunctionRequest>(\n ExecuteStateMachineFunctionRequestSchema,\n executionRequest,\n);\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/FunctionImplementationSchema.mjs\nconst isValid = validate24;\nconst func1 = require_ucs2length().default;\nfunction validate24(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate24.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.runtime === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.abi === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.format === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.code === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.capabilities === void 0) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"runtime\" || key0 === \"abi\" || key0 === \"format\" || key0 === \"code\" || key0 === \"capabilities\" || key0 === \"timeoutMs\")) {\n\t\t\tconst err5 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\telse vErrors.push(err5);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.runtime !== void 0) {\n\t\t\tlet data0 = data.runtime;\n\t\t\tif (typeof data0 !== \"string\") {\n\t\t\t\tconst err6 = {\n\t\t\t\t\tinstancePath: instancePath + \"/runtime\",\n\t\t\t\t\tschemaPath: \"#/properties/runtime/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\telse vErrors.push(err6);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"javascript\" !== data0) {\n\t\t\t\tconst err7 = {\n\t\t\t\t\tinstancePath: instancePath + \"/runtime\",\n\t\t\t\t\tschemaPath: \"#/properties/runtime/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\telse vErrors.push(err7);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.abi !== void 0) {\n\t\t\tlet data1 = data.abi;\n\t\t\tif (typeof data1 !== \"string\") {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/abi\",\n\t\t\t\t\tschemaPath: \"#/properties/abi/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"state-machine-function-v1\" !== data1) {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/abi\",\n\t\t\t\t\tschemaPath: \"#/properties/abi/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.format !== void 0) {\n\t\t\tlet data2 = data.format;\n\t\t\tif (typeof data2 !== \"string\") {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/format\",\n\t\t\t\t\tschemaPath: \"#/properties/format/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"async-function-body\" !== data2) {\n\t\t\t\tconst err11 = {\n\t\t\t\t\tinstancePath: instancePath + \"/format\",\n\t\t\t\t\tschemaPath: \"#/properties/format/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\telse vErrors.push(err11);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.code !== void 0) {\n\t\t\tlet data3 = data.code;\n\t\t\tif (typeof data3 === \"string\") {\n\t\t\t\tif (func1(data3) < 1) {\n\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/code\",\n\t\t\t\t\t\tschemaPath: \"#/properties/code/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err13 = {\n\t\t\t\t\tinstancePath: instancePath + \"/code\",\n\t\t\t\t\tschemaPath: \"#/properties/code/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\telse vErrors.push(err13);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.capabilities !== void 0) {\n\t\t\tlet data4 = data.capabilities;\n\t\t\tif (Array.isArray(data4)) {\n\t\t\t\tconst len0 = data4.length;\n\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) if (typeof data4[i0] !== \"string\") {\n\t\t\t\t\tconst err14 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/capabilities/\" + i0,\n\t\t\t\t\t\tschemaPath: \"#/properties/capabilities/items/type\",\n\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\t\telse vErrors.push(err14);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/capabilities\",\n\t\t\t\t\tschemaPath: \"#/properties/capabilities/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.timeoutMs !== void 0) {\n\t\t\tlet data6 = data.timeoutMs;\n\t\t\tif (!(typeof data6 == \"number\" && !(data6 % 1) && !isNaN(data6) && isFinite(data6))) {\n\t\t\t\tconst err16 = {\n\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\telse vErrors.push(err16);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (typeof data6 == \"number\" && isFinite(data6)) {\n\t\t\t\tif (data6 > 9007199254740991 || isNaN(data6)) {\n\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/maximum\",\n\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6 < 1 || isNaN(data6)) {\n\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/timeoutMs\",\n\t\t\t\t\t\tschemaPath: \"#/properties/timeoutMs/minimum\",\n\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t},\n\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err19 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err19];\n\t\telse vErrors.push(err19);\n\t\terrors++;\n\t}\n\tvalidate24.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate24.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"runtime\",\n\t\"abi\",\n\t\"format\",\n\t\"code\",\n\t\"capabilities\",\n\t\"timeoutMs\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/FunctionKindSchema.mjs\nconst isValid = validate25;\nconst schema36 = {\n\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\"enum\": [\"query\", \"mutation\"]\n};\nfunction validate25(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate25.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (!(data === \"query\" || data === \"mutation\")) {\n\t\tconst err0 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/enum\",\n\t\t\tkeyword: \"enum\",\n\t\t\tparams: { allowedValues: schema36.enum },\n\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err0];\n\t\telse vErrors.push(err0);\n\t\terrors++;\n\t}\n\tvalidate25.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate25.evaluated = {\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region \\0rolldown/runtime.js\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\n//#endregion\n//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js\nvar require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction ucs2length(str) {\n\t\tconst len = str.length;\n\t\tlet length = 0;\n\t\tlet pos = 0;\n\t\tlet value;\n\t\twhile (pos < len) {\n\t\t\tlength++;\n\t\t\tvalue = str.charCodeAt(pos++);\n\t\t\tif (value >= 55296 && value <= 56319 && pos < len) {\n\t\t\t\tvalue = str.charCodeAt(pos);\n\t\t\t\tif ((value & 64512) === 56320) pos++;\n\t\t\t}\n\t\t}\n\t\treturn length;\n\t}\n\texports.default = ucs2length;\n\tucs2length.code = \"require(\\\"ajv/dist/runtime/ucs2length\\\").default\";\n}));\n//#endregion\n//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/StateMachineFunctionDefinitionSchema.mjs\nconst isValid = validate28;\nconst schema39 = {\n\t\"description\": \"Named state-machine function, including its input/output contracts and executable implementation.\",\n\t\"additionalProperties\": false,\n\t\"type\": \"object\",\n\t\"required\": [\n\t\t\"name\",\n\t\t\"kind\",\n\t\t\"inputSchema\",\n\t\t\"implementation\"\n\t],\n\t\"properties\": {\n\t\t\"name\": {\n\t\t\t\"description\": \"Function name, unique within the template. Must contain 1–64 ASCII letters, digits, underscores, or hyphens.\",\n\t\t\t\"minLength\": 1,\n\t\t\t\"maxLength\": 64,\n\t\t\t\"pattern\": \"^[a-zA-Z0-9_-]{1,64}$\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"description\": {\n\t\t\t\"description\": \"Optional human-readable explanation of the function.\",\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"kind\": {\n\t\t\t\"description\": \"Function classification: queries read state; mutations may update state.\",\n\t\t\t\"enum\": [\"query\", \"mutation\"]\n\t\t},\n\t\t\"inputSchema\": {\n\t\t\t\"description\": \"Object-form JSON Schema for input, the first implementation argument. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\"type\"],\n\t\t\t\"properties\": { \"type\": {\n\t\t\t\t\"description\": \"Explicit root instance type required for state and function-input schemas.\",\n\t\t\t\t\"const\": \"object\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t} }\n\t\t},\n\t\t\"outputSchema\": {\n\t\t\t\"description\": \"Optional object-form JSON Schema for the returned value. If omitted, no output schema validator is prepared. Core checks its shape only; the injected schema compiler validates and compiles its constraints.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t},\n\t\t\"implementation\": {\n\t\t\t\"description\": \"Executable JavaScript implementation and its execution requirements.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"required\": [\n\t\t\t\t\"runtime\",\n\t\t\t\t\"abi\",\n\t\t\t\t\"format\",\n\t\t\t\t\"code\",\n\t\t\t\t\"capabilities\"\n\t\t\t],\n\t\t\t\"properties\": {\n\t\t\t\t\"runtime\": {\n\t\t\t\t\t\"description\": \"Runtime used to execute the implementation.\",\n\t\t\t\t\t\"const\": \"javascript\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"abi\": {\n\t\t\t\t\t\"description\": \"Calling convention: async function(input, state, ctx). The stored implementation.code runs as its body. The arguments are function input, instance state, and the execution context, in that order.\",\n\t\t\t\t\t\"examples\": [\"async function(input, state, ctx) {\\n // implementation.code\\n}\"],\n\t\t\t\t\t\"const\": \"state-machine-function-v1\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"format\": {\n\t\t\t\t\t\"description\": \"Source format: the body of an async function, not a complete function declaration.\",\n\t\t\t\t\t\"const\": \"async-function-body\",\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"code\": {\n\t\t\t\t\t\"description\": \"JavaScript async-function body. Do not wrap it in async function(...) { ... }. The body can await context operations, access input and state, and return the function result.\",\n\t\t\t\t\t\"examples\": [\"const x = await ctx.foo(input);\\nstate.foo = x;\\nreturn x;\"],\n\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"capabilities\": {\n\t\t\t\t\t\"description\": \"Capability names requested by the implementation. Required in canonical definitions.\",\n\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\"description\": \"Name of a capability requested by the implementation.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"timeoutMs\": {\n\t\t\t\t\t\"description\": \"Optional execution timeout in milliseconds, expressed as a positive safe integer.\",\n\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\"maximum\": 9007199254740991,\n\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"annotations\": {\n\t\t\t\"description\": \"Optional descriptive hints about the function, not additional schema validation rules.\",\n\t\t\t\"additionalProperties\": false,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {\n\t\t\t\t\"exposeAsTool\": {\n\t\t\t\t\t\"description\": \"Whether tool adapters may advertise this function. Omission means true. Controls discovery only, not execution authorization.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"pure\": {\n\t\t\t\t\t\"description\": \"Author declaration of context-free execution using only input/state and local computation, without external effects. When true, allows an explicitly configured backend to select isolated execution; false or omission retains trusted execution. Not a purity proof, security sandbox, idempotency declaration, or permission to retry.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"idempotent\": {\n\t\t\t\t\t\"description\": \"Whether the function is declared to be idempotent.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"destructive\": {\n\t\t\t\t\t\"description\": \"Whether the function is declared to perform destructive operations.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"deprecated\": {\n\t\t\t\t\t\"description\": \"Whether use of this function is deprecated.\",\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"metadata\": {\n\t\t\t\"description\": \"Optional application-defined metadata about the function. Arbitrary keys are preserved.\",\n\t\t\t\"additionalProperties\": true,\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {}\n\t\t}\n\t}\n};\nconst func1 = require_ucs2length().default;\nconst pattern4 = /* @__PURE__ */ new RegExp(\"^[a-zA-Z0-9_-]{1,64}$\", \"u\");\nfunction validate28(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate28.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.name === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"name\" },\n\t\t\t\tmessage: \"must have required property 'name'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.kind === void 0) {\n\t\t\tconst err1 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"kind\" },\n\t\t\t\tmessage: \"must have required property 'kind'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\telse vErrors.push(err1);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.inputSchema === void 0) {\n\t\t\tconst err2 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"inputSchema\" },\n\t\t\t\tmessage: \"must have required property 'inputSchema'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\telse vErrors.push(err2);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.implementation === void 0) {\n\t\t\tconst err3 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"implementation\" },\n\t\t\t\tmessage: \"must have required property 'implementation'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err3];\n\t\t\telse vErrors.push(err3);\n\t\t\terrors++;\n\t\t}\n\t\tfor (const key0 in data) if (!(key0 === \"name\" || key0 === \"description\" || key0 === \"kind\" || key0 === \"inputSchema\" || key0 === \"outputSchema\" || key0 === \"implementation\" || key0 === \"annotations\" || key0 === \"metadata\")) {\n\t\t\tconst err4 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/additionalProperties\",\n\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\tparams: { additionalProperty: key0 },\n\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err4];\n\t\t\telse vErrors.push(err4);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.name !== void 0) {\n\t\t\tlet data0 = data.name;\n\t\t\tif (typeof data0 === \"string\") {\n\t\t\t\tif (func1(data0) > 64) {\n\t\t\t\t\tconst err5 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/maxLength\",\n\t\t\t\t\t\tkeyword: \"maxLength\",\n\t\t\t\t\t\tparams: { limit: 64 },\n\t\t\t\t\t\tmessage: \"must NOT have more than 64 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err5];\n\t\t\t\t\telse vErrors.push(err5);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (func1(data0) < 1) {\n\t\t\t\t\tconst err6 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/minLength\",\n\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err6];\n\t\t\t\t\telse vErrors.push(err6);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (!pattern4.test(data0)) {\n\t\t\t\t\tconst err7 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\t\tschemaPath: \"#/properties/name/pattern\",\n\t\t\t\t\t\tkeyword: \"pattern\",\n\t\t\t\t\t\tparams: { pattern: \"^[a-zA-Z0-9_-]{1,64}$\" },\n\t\t\t\t\t\tmessage: \"must match pattern \\\"^[a-zA-Z0-9_-]{1,64}$\\\"\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err7];\n\t\t\t\t\telse vErrors.push(err7);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err8 = {\n\t\t\t\t\tinstancePath: instancePath + \"/name\",\n\t\t\t\t\tschemaPath: \"#/properties/name/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err8];\n\t\t\t\telse vErrors.push(err8);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.description !== void 0) {\n\t\t\tif (typeof data.description !== \"string\") {\n\t\t\t\tconst err9 = {\n\t\t\t\t\tinstancePath: instancePath + \"/description\",\n\t\t\t\t\tschemaPath: \"#/properties/description/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err9];\n\t\t\t\telse vErrors.push(err9);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.kind !== void 0) {\n\t\t\tlet data2 = data.kind;\n\t\t\tif (!(data2 === \"query\" || data2 === \"mutation\")) {\n\t\t\t\tconst err10 = {\n\t\t\t\t\tinstancePath: instancePath + \"/kind\",\n\t\t\t\t\tschemaPath: \"#/properties/kind/enum\",\n\t\t\t\t\tkeyword: \"enum\",\n\t\t\t\t\tparams: { allowedValues: schema39.properties.kind.enum },\n\t\t\t\t\tmessage: \"must be equal to one of the allowed values\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err10];\n\t\t\t\telse vErrors.push(err10);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.inputSchema !== void 0) {\n\t\t\tlet data3 = data.inputSchema;\n\t\t\tif (data3 && typeof data3 == \"object\" && !Array.isArray(data3)) {\n\t\t\t\tif (data3.type === void 0) {\n\t\t\t\t\tconst err11 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema\",\n\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err11];\n\t\t\t\t\telse vErrors.push(err11);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data3.type !== void 0) {\n\t\t\t\t\tlet data4 = data3.type;\n\t\t\t\t\tif (typeof data4 !== \"string\") {\n\t\t\t\t\t\tconst err12 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/properties/type/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err12];\n\t\t\t\t\t\telse vErrors.push(err12);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"object\" !== data4) {\n\t\t\t\t\t\tconst err13 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/inputSchema/type\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/inputSchema/properties/type/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err13];\n\t\t\t\t\t\telse vErrors.push(err13);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err14 = {\n\t\t\t\t\tinstancePath: instancePath + \"/inputSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/inputSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err14];\n\t\t\t\telse vErrors.push(err14);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.outputSchema !== void 0) {\n\t\t\tlet data5 = data.outputSchema;\n\t\t\tif (data5 && typeof data5 == \"object\" && !Array.isArray(data5)) {} else {\n\t\t\t\tconst err15 = {\n\t\t\t\t\tinstancePath: instancePath + \"/outputSchema\",\n\t\t\t\t\tschemaPath: \"#/properties/outputSchema/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err15];\n\t\t\t\telse vErrors.push(err15);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.implementation !== void 0) {\n\t\t\tlet data6 = data.implementation;\n\t\t\tif (data6 && typeof data6 == \"object\" && !Array.isArray(data6)) {\n\t\t\t\tif (data6.runtime === void 0) {\n\t\t\t\t\tconst err16 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"runtime\" },\n\t\t\t\t\t\tmessage: \"must have required property 'runtime'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err16];\n\t\t\t\t\telse vErrors.push(err16);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.abi === void 0) {\n\t\t\t\t\tconst err17 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"abi\" },\n\t\t\t\t\t\tmessage: \"must have required property 'abi'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err17];\n\t\t\t\t\telse vErrors.push(err17);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.format === void 0) {\n\t\t\t\t\tconst err18 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"format\" },\n\t\t\t\t\t\tmessage: \"must have required property 'format'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err18];\n\t\t\t\t\telse vErrors.push(err18);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.code === void 0) {\n\t\t\t\t\tconst err19 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"code\" },\n\t\t\t\t\t\tmessage: \"must have required property 'code'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err19];\n\t\t\t\t\telse vErrors.push(err19);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.capabilities === void 0) {\n\t\t\t\t\tconst err20 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/required\",\n\t\t\t\t\t\tkeyword: \"required\",\n\t\t\t\t\t\tparams: { missingProperty: \"capabilities\" },\n\t\t\t\t\t\tmessage: \"must have required property 'capabilities'\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err20];\n\t\t\t\t\telse vErrors.push(err20);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tfor (const key1 in data6) if (!(key1 === \"runtime\" || key1 === \"abi\" || key1 === \"format\" || key1 === \"code\" || key1 === \"capabilities\" || key1 === \"timeoutMs\")) {\n\t\t\t\t\tconst err21 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\t\tschemaPath: \"#/properties/implementation/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key1 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err21];\n\t\t\t\t\telse vErrors.push(err21);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data6.runtime !== void 0) {\n\t\t\t\t\tlet data7 = data6.runtime;\n\t\t\t\t\tif (typeof data7 !== \"string\") {\n\t\t\t\t\t\tconst err22 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/runtime\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/runtime/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err22];\n\t\t\t\t\t\telse vErrors.push(err22);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"javascript\" !== data7) {\n\t\t\t\t\t\tconst err23 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/runtime\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/runtime/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"javascript\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err23];\n\t\t\t\t\t\telse vErrors.push(err23);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.abi !== void 0) {\n\t\t\t\t\tlet data8 = data6.abi;\n\t\t\t\t\tif (typeof data8 !== \"string\") {\n\t\t\t\t\t\tconst err24 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/abi\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/abi/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err24];\n\t\t\t\t\t\telse vErrors.push(err24);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"state-machine-function-v1\" !== data8) {\n\t\t\t\t\t\tconst err25 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/abi\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/abi/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"state-machine-function-v1\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err25];\n\t\t\t\t\t\telse vErrors.push(err25);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.format !== void 0) {\n\t\t\t\t\tlet data9 = data6.format;\n\t\t\t\t\tif (typeof data9 !== \"string\") {\n\t\t\t\t\t\tconst err26 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/format\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/format/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err26];\n\t\t\t\t\t\telse vErrors.push(err26);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"async-function-body\" !== data9) {\n\t\t\t\t\t\tconst err27 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/format\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/format/const\",\n\t\t\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\t\t\tparams: { allowedValue: \"async-function-body\" },\n\t\t\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err27];\n\t\t\t\t\t\telse vErrors.push(err27);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.code !== void 0) {\n\t\t\t\t\tlet data10 = data6.code;\n\t\t\t\t\tif (typeof data10 === \"string\") {\n\t\t\t\t\t\tif (func1(data10) < 1) {\n\t\t\t\t\t\t\tconst err28 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/code\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/code/minLength\",\n\t\t\t\t\t\t\t\tkeyword: \"minLength\",\n\t\t\t\t\t\t\t\tparams: { limit: 1 },\n\t\t\t\t\t\t\t\tmessage: \"must NOT have fewer than 1 characters\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err28];\n\t\t\t\t\t\t\telse vErrors.push(err28);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err29 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/code\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/code/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err29];\n\t\t\t\t\t\telse vErrors.push(err29);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.capabilities !== void 0) {\n\t\t\t\t\tlet data11 = data6.capabilities;\n\t\t\t\t\tif (Array.isArray(data11)) {\n\t\t\t\t\t\tconst len0 = data11.length;\n\t\t\t\t\t\tfor (let i0 = 0; i0 < len0; i0++) if (typeof data11[i0] !== \"string\") {\n\t\t\t\t\t\t\tconst err30 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/capabilities/\" + i0,\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/capabilities/items/type\",\n\t\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err30];\n\t\t\t\t\t\t\telse vErrors.push(err30);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst err31 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/capabilities\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/capabilities/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"array\" },\n\t\t\t\t\t\t\tmessage: \"must be array\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err31];\n\t\t\t\t\t\telse vErrors.push(err31);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data6.timeoutMs !== void 0) {\n\t\t\t\t\tlet data13 = data6.timeoutMs;\n\t\t\t\t\tif (!(typeof data13 == \"number\" && !(data13 % 1) && !isNaN(data13) && isFinite(data13))) {\n\t\t\t\t\t\tconst err32 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"integer\" },\n\t\t\t\t\t\t\tmessage: \"must be integer\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err32];\n\t\t\t\t\t\telse vErrors.push(err32);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof data13 == \"number\" && isFinite(data13)) {\n\t\t\t\t\t\tif (data13 > 9007199254740991 || isNaN(data13)) {\n\t\t\t\t\t\t\tconst err33 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/maximum\",\n\t\t\t\t\t\t\t\tkeyword: \"maximum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \"<=\",\n\t\t\t\t\t\t\t\t\tlimit: 9007199254740991\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be <= 9007199254740991\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err33];\n\t\t\t\t\t\t\telse vErrors.push(err33);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data13 < 1 || isNaN(data13)) {\n\t\t\t\t\t\t\tconst err34 = {\n\t\t\t\t\t\t\t\tinstancePath: instancePath + \"/implementation/timeoutMs\",\n\t\t\t\t\t\t\t\tschemaPath: \"#/properties/implementation/properties/timeoutMs/minimum\",\n\t\t\t\t\t\t\t\tkeyword: \"minimum\",\n\t\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t\tcomparison: \">=\",\n\t\t\t\t\t\t\t\t\tlimit: 1\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tmessage: \"must be >= 1\"\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (vErrors === null) vErrors = [err34];\n\t\t\t\t\t\t\telse vErrors.push(err34);\n\t\t\t\t\t\t\terrors++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err35 = {\n\t\t\t\t\tinstancePath: instancePath + \"/implementation\",\n\t\t\t\t\tschemaPath: \"#/properties/implementation/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err35];\n\t\t\t\telse vErrors.push(err35);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.annotations !== void 0) {\n\t\t\tlet data14 = data.annotations;\n\t\t\tif (data14 && typeof data14 == \"object\" && !Array.isArray(data14)) {\n\t\t\t\tfor (const key2 in data14) if (!(key2 === \"exposeAsTool\" || key2 === \"pure\" || key2 === \"idempotent\" || key2 === \"destructive\" || key2 === \"deprecated\")) {\n\t\t\t\t\tconst err36 = {\n\t\t\t\t\t\tinstancePath: instancePath + \"/annotations\",\n\t\t\t\t\t\tschemaPath: \"#/properties/annotations/additionalProperties\",\n\t\t\t\t\t\tkeyword: \"additionalProperties\",\n\t\t\t\t\t\tparams: { additionalProperty: key2 },\n\t\t\t\t\t\tmessage: \"must NOT have additional properties\"\n\t\t\t\t\t};\n\t\t\t\t\tif (vErrors === null) vErrors = [err36];\n\t\t\t\t\telse vErrors.push(err36);\n\t\t\t\t\terrors++;\n\t\t\t\t}\n\t\t\t\tif (data14.exposeAsTool !== void 0) {\n\t\t\t\t\tif (typeof data14.exposeAsTool !== \"boolean\") {\n\t\t\t\t\t\tconst err37 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/exposeAsTool\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/exposeAsTool/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err37];\n\t\t\t\t\t\telse vErrors.push(err37);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.pure !== void 0) {\n\t\t\t\t\tif (typeof data14.pure !== \"boolean\") {\n\t\t\t\t\t\tconst err38 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/pure\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/pure/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err38];\n\t\t\t\t\t\telse vErrors.push(err38);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.idempotent !== void 0) {\n\t\t\t\t\tif (typeof data14.idempotent !== \"boolean\") {\n\t\t\t\t\t\tconst err39 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/idempotent\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/idempotent/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err39];\n\t\t\t\t\t\telse vErrors.push(err39);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.destructive !== void 0) {\n\t\t\t\t\tif (typeof data14.destructive !== \"boolean\") {\n\t\t\t\t\t\tconst err40 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/destructive\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/destructive/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err40];\n\t\t\t\t\t\telse vErrors.push(err40);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (data14.deprecated !== void 0) {\n\t\t\t\t\tif (typeof data14.deprecated !== \"boolean\") {\n\t\t\t\t\t\tconst err41 = {\n\t\t\t\t\t\t\tinstancePath: instancePath + \"/annotations/deprecated\",\n\t\t\t\t\t\t\tschemaPath: \"#/properties/annotations/properties/deprecated/type\",\n\t\t\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\t\t\tparams: { type: \"boolean\" },\n\t\t\t\t\t\t\tmessage: \"must be boolean\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif (vErrors === null) vErrors = [err41];\n\t\t\t\t\t\telse vErrors.push(err41);\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst err42 = {\n\t\t\t\t\tinstancePath: instancePath + \"/annotations\",\n\t\t\t\t\tschemaPath: \"#/properties/annotations/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err42];\n\t\t\t\telse vErrors.push(err42);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t\tif (data.metadata !== void 0) {\n\t\t\tlet data20 = data.metadata;\n\t\t\tif (data20 && typeof data20 == \"object\" && !Array.isArray(data20)) {} else {\n\t\t\t\tconst err43 = {\n\t\t\t\t\tinstancePath: instancePath + \"/metadata\",\n\t\t\t\t\tschemaPath: \"#/properties/metadata/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"object\" },\n\t\t\t\t\tmessage: \"must be object\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err43];\n\t\t\t\telse vErrors.push(err43);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err44 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err44];\n\t\telse vErrors.push(err44);\n\t\terrors++;\n\t}\n\tvalidate28.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate28.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\n\t\"name\",\n\t\"description\",\n\t\"kind\",\n\t\"inputSchema\",\n\t\"outputSchema\",\n\t\"implementation\",\n\t\"annotations\",\n\t\"metadata\"\n];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as implementation from '../../generated/FunctionImplementationSchema.mjs';\nimport * as functionKind from '../../generated/FunctionKindSchema.mjs';\nimport * as functionDefinition from '../../generated/StateMachineFunctionDefinitionSchema.mjs';\nimport { FunctionImplementationSchema, FunctionKindSchema, StateMachineFunctionDefinitionSchema } from '../schemas.ts';\nimport type { FunctionImplementation, FunctionKind, StateMachineFunctionDefinition } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\nexport const FunctionKindContract = canonicalContract<FunctionKind>(FunctionKindSchema, functionKind);\nexport const FunctionImplementationContract = canonicalContract<FunctionImplementation>(\n FunctionImplementationSchema,\n implementation,\n);\nexport const StateMachineFunctionDefinitionContract = canonicalContract<StateMachineFunctionDefinition>(\n StateMachineFunctionDefinitionSchema,\n functionDefinition,\n);\n","//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/JsonSchemaSchema.mjs\nconst isValid = validate26;\nfunction validate26(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate26.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {} else {\n\t\tconst err0 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err0];\n\t\telse vErrors.push(err0);\n\t\terrors++;\n\t}\n\tvalidate26.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate26.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","//#region .build/schema-entry-iozZeN/temporary/json-schema-aot-mX57Tv/ObjectJsonSchemaSchema.mjs\nconst isValid = validate27;\nfunction validate27(data, { instancePath = \"\", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {\n\tlet vErrors = null;\n\tlet errors = 0;\n\tconst evaluated0 = validate27.evaluated;\n\tif (evaluated0.dynamicProps) evaluated0.props = void 0;\n\tif (evaluated0.dynamicItems) evaluated0.items = void 0;\n\tif (data && typeof data == \"object\" && !Array.isArray(data)) {\n\t\tif (data.type === void 0) {\n\t\t\tconst err0 = {\n\t\t\t\tinstancePath,\n\t\t\t\tschemaPath: \"#/required\",\n\t\t\t\tkeyword: \"required\",\n\t\t\t\tparams: { missingProperty: \"type\" },\n\t\t\t\tmessage: \"must have required property 'type'\"\n\t\t\t};\n\t\t\tif (vErrors === null) vErrors = [err0];\n\t\t\telse vErrors.push(err0);\n\t\t\terrors++;\n\t\t}\n\t\tif (data.type !== void 0) {\n\t\t\tlet data0 = data.type;\n\t\t\tif (typeof data0 !== \"string\") {\n\t\t\t\tconst err1 = {\n\t\t\t\t\tinstancePath: instancePath + \"/type\",\n\t\t\t\t\tschemaPath: \"#/properties/type/type\",\n\t\t\t\t\tkeyword: \"type\",\n\t\t\t\t\tparams: { type: \"string\" },\n\t\t\t\t\tmessage: \"must be string\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err1];\n\t\t\t\telse vErrors.push(err1);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t\tif (\"object\" !== data0) {\n\t\t\t\tconst err2 = {\n\t\t\t\t\tinstancePath: instancePath + \"/type\",\n\t\t\t\t\tschemaPath: \"#/properties/type/const\",\n\t\t\t\t\tkeyword: \"const\",\n\t\t\t\t\tparams: { allowedValue: \"object\" },\n\t\t\t\t\tmessage: \"must be equal to constant\"\n\t\t\t\t};\n\t\t\t\tif (vErrors === null) vErrors = [err2];\n\t\t\t\telse vErrors.push(err2);\n\t\t\t\terrors++;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconst err3 = {\n\t\t\tinstancePath,\n\t\t\tschemaPath: \"#/type\",\n\t\t\tkeyword: \"type\",\n\t\t\tparams: { type: \"object\" },\n\t\t\tmessage: \"must be object\"\n\t\t};\n\t\tif (vErrors === null) vErrors = [err3];\n\t\telse vErrors.push(err3);\n\t\terrors++;\n\t}\n\tvalidate27.errors = vErrors;\n\treturn errors === 0;\n}\nvalidate27.evaluated = {\n\t\"props\": true,\n\t\"dynamicProps\": false,\n\t\"dynamicItems\": false\n};\nconst fields = [\"type\"];\nfunction validate(value) {\n\tconst valid = isValid(value);\n\treturn {\n\t\tvalid,\n\t\terrors: valid ? [] : isValid.errors\n\t};\n}\nconst validator = { \"~standard\": {\n\tversion: 1,\n\tvendor: \"@onereach/json-schema-aot\",\n\tvalidate(value) {\n\t\tif (isValid(value)) return { value };\n\t\treturn { issues: isValid.errors.map((error) => {\n\t\t\tlet pointer = error.instancePath;\n\t\t\tif (error.keyword === \"required\") pointer += \"/\" + error.params.missingProperty.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\n\t\t\treturn {\n\t\t\t\tmessage: error.message ?? \"Invalid value\",\n\t\t\t\tpath: pointer === \"\" ? [] : pointer.slice(1).split(\"/\").map((part) => part.replaceAll(\"~1\", \"/\").replaceAll(\"~0\", \"~\"))\n\t\t\t};\n\t\t}) };\n\t}\n} };\n//#endregion\nexport { fields, isValid, validate, validator };\n","import * as embeddedSchema from '../../generated/JsonSchemaSchema.mjs';\nimport * as embeddedObjectSchema from '../../generated/ObjectJsonSchemaSchema.mjs';\nimport { JsonSchemaSchema, ObjectJsonSchemaSchema } from '../schemas.ts';\nimport type { JsonSchema, ObjectJsonSchema } from '../types.ts';\n\nimport { canonicalContract } from './projection.ts';\n\n/**\n * Embedded-schema contracts check object shape only, not dialect or keyword validity.\n */\nexport const JsonSchemaContract = canonicalContract<JsonSchema>(JsonSchemaSchema, embeddedSchema);\nexport const ObjectJsonSchemaContract = canonicalContract<ObjectJsonSchema>(\n ObjectJsonSchemaSchema,\n embeddedObjectSchema,\n);\n"],"mappings":"mjBAWA,SAAgB,EAAkB,EAAc,EAA8B,CAE5E,MAAO,GAAG,EAAK,GADC,OAAO,CAAG,CAAC,CAAC,WAAW,IAAK,IAAI,CAAC,CAAC,WAAW,IAAK,IAC1C,GAC1B,CAEA,SAAgB,EAAuB,EAA6C,CAClF,IAAI,EAAO,EAAM,cAAgB,EAAM,MAAQ,GACzC,EAAa,EAAM,OASzB,OANE,OAAO,GAAe,UADtB,GAEA,EAAM,UAAY,YAClB,oBAAqB,GACrB,OAAO,EAAW,iBAAoB,WAEtC,EAAO,EAAkB,EAAM,EAAW,eAAe,GACpD,CACL,OACA,QAAS,EAAM,SAAW,eAC5B,CACF,CAEA,SAAgB,EAAgB,EAA6C,CAC3E,MAAO,CACL,QAAS,EAAM,QACf,KACE,EAAM,OAAS,GACX,CAAC,EACD,EAAM,KACH,MAAM,CAAC,CAAC,CACR,MAAM,GAAG,CAAC,CACV,IAAK,GAAS,EAAK,WAAW,KAAM,GAAG,CAAC,CAAC,WAAW,KAAM,GAAG,CAAC,CACzE,CACF,CAEA,SAAgB,GAAkB,EAA6C,CAC7E,IAAI,EAAO,GACX,IAAK,IAAM,KAAO,EAAM,KAAM,EAAO,EAAkB,EAAM,CAAG,EAChE,MAAO,CACL,OACA,QAAS,EAAM,OACjB,CACF,CChCA,SAAgB,GACd,EACA,EAC4C,CAC5C,IAAM,EAA0B,CAAC,EAEjC,MAAO,CAAE,KADI,EAAQ,EAAQ,EAAO,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