{ "$defs": { "RunModulePin": { "additionalProperties": false, "properties": { "implementation_version": { "maxLength": 64, "minLength": 1, "title": "Implementation Version", "type": "string" }, "module_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Module Id", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "sha256": { "pattern": "^[a-f0-9]{64}$", "title": "Sha256", "type": "string" } }, "required": [ "module_id", "implementation_version", "sha256" ], "title": "RunModulePin", "type": "object" }, "Scope": { "additionalProperties": false, "description": "Project context plus optional project includes; all-project access is deliberate.", "properties": { "all_projects": { "default": false, "title": "All Projects", "type": "boolean" }, "include_projects": { "anyOf": [ { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "type": "string" }, "maxItems": 50, "type": "array" }, { "type": "null" } ], "default": null, "title": "Include Projects" }, "include_shared": { "default": true, "title": "Include Shared", "type": "boolean" }, "projects": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "type": "string" }, "maxItems": 50, "minItems": 1, "title": "Projects", "type": "array" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" } }, "required": [ "projects" ], "title": "Scope", "type": "object" } }, "additionalProperties": false, "properties": { "lens": { "maxLength": 2000, "minLength": 1, "title": "Lens", "type": "string" }, "module_pins": { "items": { "$ref": "#/$defs/RunModulePin" }, "maxItems": 100, "minItems": 1, "title": "Module Pins", "type": "array" }, "objective": { "maxLength": 4000, "minLength": 1, "title": "Objective", "type": "string" }, "pack_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Pack Id", "type": "string" }, "pack_snapshot_digest": { "pattern": "^[a-f0-9]{64}$", "title": "Pack Snapshot Digest", "type": "string" }, "pack_version": { "maxLength": 64, "minLength": 1, "title": "Pack Version", "type": "string" }, "run_id": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "title": "Run Id", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "scope": { "$ref": "#/$defs/Scope" } }, "required": [ "run_id", "objective", "scope", "lens", "pack_id", "pack_version", "pack_snapshot_digest", "module_pins" ], "title": "RunCreateRequest", "type": "object" }