diff --git a/CHANGELOG.md b/CHANGELOG.md index 47428e6..ca6ffea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,30 @@ All notable changes to this specification and conformance suite are documented here. +## Runtime standard pack 0.2.1 and `@callumalpass/mdbase-runtime` 0.2.1 (2026-11-17) + +The specification itself is unchanged. + +- Runtime records leave the type declaration key to the collection. The ten + runtime record schemas required `type` and pinned it (`type: + runtime_workflow` and so on), and rejected any other top-level field. A + conforming engine writes a record's type under the collection's configured + `explicit_type_keys`, so in a collection that declares types with + `mdbase_type` every runtime record failed validation, and records carrying + both keys failed in every collection. The record contracts are now 1.1.0 and + the canonical types version 2: the schemas neither require nor declare + `type`, and they accept top-level fields outside the contract, while nested + structures stay closed. Every record valid under 1.0.0 is valid under 1.1.0. + Each type keeps its `match` rule for hand-written `type:` records. +- `standard-packs/mdbase-runtime/0.2.1` carries them, with the event and + action artifacts unchanged. It still installs the 1.0.0 record contracts, + byte-for-byte, so a collection type that implements 1.0.0 stays valid. Pack 0.2.0 stays published as it was, and the + generator now writes only the current pack. +- `@callumalpass/mdbase-runtime` 0.2.1 validates against the 1.1.0 schemas. + `validateRuntimeRecord(value, recordType?)` takes the record type for + records whose type is declared under another key, and the `type` field on + `RuntimeWorkflow` and `RuntimePolicy` is optional. + ## 0.3.0 (2026-11-15) The first stable specification freezes the rc.6 draft at diff --git a/README.md b/README.md index ad01148..601349b 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ order_by: | Reconcile concurrent edits | [Concurrent Edits Profile](./concurrent-edits/0.1.md) | | Install and upgrade types | [Type Packs Profile](./type-packs/0.1.md) | | Connect applications | [Event and Action Interoperability](./interop/0.1.md) | -| Define durable automation | [Durable Runtime Companion Profile](./runtime/0.2.md) and the [standard runtime pack](./standard-packs/mdbase-runtime/0.2.0/) | +| Define durable automation | [Durable Runtime Companion Profile](./runtime/0.2.md) and the [standard runtime pack](./standard-packs/mdbase-runtime/0.2.1/) | | Migrate a v0.2 collection | [Migrations And Compatibility](./13-migrations-and-compatibility.md) | | Use Obsidian Bases views | [Obsidian Bases adapter](./adapters/obsidian-bases.md) | | Exchange typed events and actions | [Event/action interoperability profile 0.1](./interop/0.1.md) and [canonical interoperability schemas](./schemas/interop/v0.1/) | diff --git a/examples/v0.3/canvas-runtime/README.md b/examples/v0.3/canvas-runtime/README.md index 98caaee..45dfc07 100644 --- a/examples/v0.3/canvas-runtime/README.md +++ b/examples/v0.3/canvas-runtime/README.md @@ -11,7 +11,7 @@ This collection demonstrates runtime companion profile 0.2: workflow runs. Install -[`mdbase.runtime.standard`](../../../standard-packs/mdbase-runtime/0.2.0/) +[`mdbase.runtime.standard`](../../../standard-packs/mdbase-runtime/0.2.1/) before opening the workflow and policy as typed records. The pack supplies the canonical `runtime_workflow` and `runtime_policy` type implementations. Pack installation does not activate the workflow. diff --git a/packages/runtime-contracts/package-lock.json b/packages/runtime-contracts/package-lock.json index 636d98a..5d65c7e 100644 --- a/packages/runtime-contracts/package-lock.json +++ b/packages/runtime-contracts/package-lock.json @@ -1,12 +1,12 @@ { "name": "@callumalpass/mdbase-runtime", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@callumalpass/mdbase-runtime", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "dependencies": { "ajv": "^8.17.1", diff --git a/packages/runtime-contracts/package.json b/packages/runtime-contracts/package.json index a6a2d47..8eb0a2c 100644 --- a/packages/runtime-contracts/package.json +++ b/packages/runtime-contracts/package.json @@ -1,6 +1,6 @@ { "name": "@callumalpass/mdbase-runtime", - "version": "0.2.0", + "version": "0.2.1", "type": "module", "description": "Durable mdbase workflow admission and runtime record contracts built on mdbase interoperability.", "license": "MIT", diff --git a/packages/runtime-contracts/scripts/generate-schema-module.mjs b/packages/runtime-contracts/scripts/generate-schema-module.mjs index 8b46c90..25133cc 100644 --- a/packages/runtime-contracts/scripts/generate-schema-module.mjs +++ b/packages/runtime-contracts/scripts/generate-schema-module.mjs @@ -3,7 +3,7 @@ import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), ".."); -const packRoot = resolve(packageRoot, "../../standard-packs/mdbase-runtime/0.2.0"); +const packRoot = resolve(packageRoot, "../../standard-packs/mdbase-runtime/0.2.1"); const outputPath = resolve(packageRoot, "src/generated-schemas.ts"); const runtimeRecords = { runtime_workflow: "mdbase.runtime.workflow", @@ -21,7 +21,7 @@ const runtimeRecords = { const schemas = {}; for (const [type, contract] of Object.entries(runtimeRecords)) { schemas[type] = JSON.parse( - await readFile(resolve(packRoot, `schemas/${contract}/1.0.0.schema.json`), "utf8") + await readFile(resolve(packRoot, `schemas/${contract}/1.1.0.schema.json`), "utf8") ); } diff --git a/packages/runtime-contracts/src/generated-schemas.ts b/packages/runtime-contracts/src/generated-schemas.ts index 35a1384..34c134b 100644 --- a/packages/runtime-contracts/src/generated-schemas.ts +++ b/packages/runtime-contracts/src/generated-schemas.ts @@ -6,7 +6,6 @@ export const GENERATED_RUNTIME_RECORD_SCHEMAS: Record { assert.deepEqual(result.diagnostics, []); }); +test("runtime records leave the type key to the collection", () => { + const { type, ...fields } = workflow; + assert.equal(type, "runtime_workflow"); + const declared = validateRuntimeRecord({ mdbase_type: "runtime_workflow", ...fields }, "runtime_workflow"); + assert.equal(declared.valid, true, JSON.stringify(declared.diagnostics)); + assert.equal(declared.schema, "mdbase.runtime.workflow"); + assert.equal(validateRuntimeRecord({ type: "runtime_workflow", mdbase_type: "runtime_workflow", ...fields }).valid, true); + assert.equal(validateRuntimeRecord(fields).diagnostics[0].code, "runtime_record_type_missing"); + const nested = validateRuntimeRecord({ ...fields, run: { on_error: "stop", unknown: true } }, "runtime_workflow"); + assert.equal(nested.valid, false); + assert.equal(nested.diagnostics[0].code, "schema_additionalProperties"); +}); + test("old parallel runtime contracts are rejected clearly", () => { const result = validateRuntimeRecord({ type: "action", diff --git a/runtime/0.2.md b/runtime/0.2.md index 3834476..92210a5 100644 --- a/runtime/0.2.md +++ b/runtime/0.2.md @@ -59,7 +59,7 @@ provider-supplied contract arrays are not runtime profile 0.2. ## Standard Runtime Pack The official `mdbase.runtime.standard` pack is at -[`standard-packs/mdbase-runtime/0.2.0`](https://github.com/mdbase-dev/mdbase-spec/tree/main/standard-packs/mdbase-runtime/0.2.0). +[`standard-packs/mdbase-runtime/0.2.1`](https://github.com/mdbase-dev/mdbase-spec/tree/main/standard-packs/mdbase-runtime/0.2.1). It installs atomically and contains: | Record contract | Canonical record type | Purpose | @@ -87,6 +87,17 @@ bundle the pack for offline use without copying it into each collection. Exporting a bundled artifact is an inspection feature; it does not create a new definition or alter precedence. +Pack 0.2.1 replaces 0.2.0, which stays published unchanged. Its record +contracts are version 1.1.0 and its types are version 2. A runtime record's type +belongs under the collection's configured explicit type key, so the 1.1.0 +record schemas neither require nor pin a `type` field and accept top-level +fields outside the contract; nested structures stay closed. The 1.0.0 schemas +required `type: runtime_workflow` (and so on) and rejected other top-level +fields, which made every record invalid in a collection whose type key is not +`type`. Every record valid under 1.0.0 is valid under 1.1.0. The event and +action artifacts are unchanged, and 0.2.1 still installs the 1.0.0 record +contracts so collection types that implement them stay valid. + ## Runtime Records Are Ordinary Implementations The canonical workflow type illustrates the model: @@ -94,18 +105,17 @@ The canonical workflow type illustrates the model: ```yaml kind: mdbase.type name: runtime_workflow -version: 1 +version: 2 match: where: type: runtime_workflow schema: dialect: json-schema-2020-12 - ref: ../schemas/mdbase.runtime.workflow/1.0.0.schema.json + ref: ../schemas/mdbase.runtime.workflow/1.1.0.schema.json implements: - contract: mdbase.runtime.workflow - version: 1.0.0 + version: 1.1.0 fields: - type: type id: id version: version name: name @@ -114,6 +124,13 @@ implements: steps: steps ``` +An application creates a workflow by naming the `runtime_workflow` type; the +engine writes the declaration under the collection's first explicit type key, +for example `type: runtime_workflow` by default or +`mdbase_type: runtime_workflow` where `type` is data. The `match` rule also +recognises hand-written `type: runtime_workflow` records in collections whose +type key is something else. + The core collection engine discovers and validates this exactly like any other record contract. A durable runtime asks the core engine for the verified descriptor and projected view. It does not scan for `workflows/`, special-case diff --git a/scripts/build_runtime_pack.mjs b/scripts/build_runtime_pack.mjs index ec2c39e..e1772f1 100644 --- a/scripts/build_runtime_pack.mjs +++ b/scripts/build_runtime_pack.mjs @@ -4,7 +4,14 @@ import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), ".."); -const packRoot = resolve(repoRoot, "standard-packs/mdbase-runtime/0.2.0"); +// Published pack versions are immutable: 0.2.0 stays in the repository as +// published, and this script generates only the current version. +const PACK_VERSION = "0.2.1"; +// Record contracts 1.1.0 leave the type declaration key to the collection. +const RECORD_CONTRACT_VERSION = "1.1.0"; +const RECORD_TYPE_VERSION = 2; +const EVENT_CONTRACT_VERSION = "1.0.0"; +const packRoot = resolve(repoRoot, `standard-packs/mdbase-runtime/${PACK_VERSION}`); const identifier = { type: "string", pattern: "^[A-Za-z][A-Za-z0-9._:-]*$" }; const semanticVersion = { @@ -86,6 +93,18 @@ function recordSchema(title, required, properties, defs = {}) { }; } +// A runtime record is an ordinary Markdown record. Its type is declared under +// whatever explicit type key the collection configures (`type` by default, +// `mdbase_type` in collections where `type` is data), so the record schema +// neither requires nor pins a `type` field, and it accepts top-level fields +// outside the contract. Nested structures stay closed. +function runtimeRecordSchema(title, required, properties, defs = {}) { + const schema = recordSchema(title, required, properties, defs); + delete schema.patternProperties; + delete schema.additionalProperties; + return schema; +} + const runtimeRecords = [ { slug: "workflow", @@ -93,11 +112,10 @@ const runtimeRecords = [ type: "runtime_workflow", title: "Durable workflow", description: "A portable workflow whose event and action references are resolved and pinned at admission.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime workflow", - ["type", "id", "version", "name", "enabled", "triggers", "steps"], + ["id", "version", "name", "enabled", "triggers", "steps"], { - type: { const: "runtime_workflow" }, id: identifier, version: semanticVersion, name: { type: "string", minLength: 1 }, @@ -170,11 +188,10 @@ const runtimeRecords = [ type: "runtime_policy", title: "Runtime policy", description: "Local authorization, executor, limit, and provider-selection policy.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime policy", - ["type", "id", "version", "enabled", "grants"], + ["id", "version", "enabled", "grants"], { - type: { const: "runtime_policy" }, id: identifier, version: semanticVersion, name: { type: "string", minLength: 1 }, @@ -210,11 +227,10 @@ const runtimeRecords = [ type: "runtime_provider_registration", title: "Provider registration evidence", description: "An optional audit snapshot of a verified interoperability declaration; it never activates code.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase runtime provider registration evidence", - ["type", "id", "declaration_kind", "declaration", "verified_at", "active"], + ["id", "declaration_kind", "declaration", "verified_at", "active"], { - type: { const: "runtime_provider_registration" }, id: identifier, declaration_kind: { enum: ["event_source", "action_provider"] }, declaration: { type: "object" }, @@ -229,11 +245,10 @@ const runtimeRecords = [ type: "runtime_capability_grant", title: "Capability grant evidence", description: "A materialized authorization grant scoped independently from contract conformance.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase runtime capability grant", - ["type", "id", "capability", "principal", "mode", "granted_at"], + ["id", "capability", "principal", "mode", "granted_at"], { - type: { const: "runtime_capability_grant" }, id: identifier, capability: identifier, principal: { $ref: "#/$defs/identity" }, @@ -251,10 +266,9 @@ const runtimeRecords = [ type: "runtime_run", title: "Durable run", description: "The durable state and immutable admitted plan for one workflow execution.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime run", [ - "type", "id", "workflow_id", "workflow_version", @@ -267,7 +281,6 @@ const runtimeRecords = [ "updated_at", ], { - type: { const: "runtime_run" }, id: identifier, workflow_id: identifier, workflow_version: semanticVersion, @@ -324,10 +337,9 @@ const runtimeRecords = [ type: "runtime_action_attempt", title: "Durable action attempt", description: "Durable invocation intent and outcome evidence using the shared interoperability envelope.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime action attempt", [ - "type", "id", "run_id", "step_id", @@ -342,7 +354,6 @@ const runtimeRecords = [ "updated_at", ], { - type: { const: "runtime_action_attempt" }, id: identifier, run_id: identifier, step_id: identifier, @@ -370,11 +381,10 @@ const runtimeRecords = [ type: "runtime_checkpoint", title: "Runtime checkpoint", description: "A durable, lease-safe workflow continuation.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime checkpoint", - ["type", "id", "run_id", "generation", "status", "state", "updated_at"], + ["id", "run_id", "generation", "status", "state", "updated_at"], { - type: { const: "runtime_checkpoint" }, id: identifier, run_id: identifier, generation: { type: "integer", minimum: 1 }, @@ -390,11 +400,10 @@ const runtimeRecords = [ type: "runtime_timer", title: "Runtime timer", description: "A generation-safe one-shot timer that publishes through the interoperability profile.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime timer", - ["type", "id", "generation", "status", "fire_at", "event", "created_at", "updated_at"], + ["id", "generation", "status", "fire_at", "event", "created_at", "updated_at"], { - type: { const: "runtime_timer" }, id: identifier, generation: { type: "integer", minimum: 1 }, status: { enum: ["scheduled", "firing", "fired", "cancelled"] }, @@ -419,11 +428,10 @@ const runtimeRecords = [ type: "runtime_diagnostic", title: "Runtime diagnostic", description: "A machine-readable durable runtime diagnostic.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime diagnostic", - ["type", "id", "severity", "code", "message", "created_at"], + ["id", "severity", "code", "message", "created_at"], { - type: { const: "runtime_diagnostic" }, id: identifier, severity: { enum: ["info", "warning", "error"] }, code: identifier, @@ -442,11 +450,10 @@ const runtimeRecords = [ type: "runtime_dead_letter", title: "Runtime dead letter", description: "Retained event or action evidence that cannot be processed safely.", - schema: recordSchema( + schema: runtimeRecordSchema( "mdbase durable runtime dead letter", - ["type", "id", "reason", "status", "evidence", "created_at"], + ["id", "reason", "status", "evidence", "created_at"], { - type: { const: "runtime_dead_letter" }, id: identifier, reason: identifier, status: { enum: ["unresolved", "acknowledged", "requeued"] }, @@ -624,10 +631,10 @@ await rm(packRoot, { recursive: true, force: true }); const resources = []; for (const definition of runtimeRecords) { - const schemaRelative = `schemas/${definition.id}/1.0.0.schema.json`; - const contractRelative = `_contracts/${definition.id}/1.0.0.md`; + const schemaRelative = `schemas/${definition.id}/${RECORD_CONTRACT_VERSION}.schema.json`; + const contractRelative = `_contracts/${definition.id}/${RECORD_CONTRACT_VERSION}.md`; const typeRelative = `_types/${definition.slug}.md`; - definition.schema.$id = `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/1.0.0.schema.json`; + definition.schema.$id = `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/${RECORD_CONTRACT_VERSION}.schema.json`; await output(schemaRelative, `${JSON.stringify(definition.schema, null, 2)}\n`); await output(contractRelative, recordContractMarkdown(definition, schemaRelative)); await output(typeRelative, typeMarkdown(definition, schemaRelative)); @@ -639,14 +646,14 @@ for (const definition of runtimeRecords) { } for (const definition of portableContracts) { - const schemaRelative = `schemas/${definition.id}/1.0.0.schema.json`; - const contractRelative = `_contracts/${definition.id}/1.0.0.md`; - definition.schema.$id = `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/1.0.0.schema.json`; + const schemaRelative = `schemas/${definition.id}/${EVENT_CONTRACT_VERSION}.schema.json`; + const contractRelative = `_contracts/${definition.id}/${EVENT_CONTRACT_VERSION}.md`; + definition.schema.$id = `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/${EVENT_CONTRACT_VERSION}.schema.json`; await output(schemaRelative, `${JSON.stringify(definition.schema, null, 2)}\n`); if (definition.outputSchema) { definition.outputSchema.$id = - `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/1.0.0.output.schema.json`; - const outputRelative = `schemas/${definition.id}/1.0.0.output.schema.json`; + `https://mdbase.dev/schemas/runtime/v0.2/${definition.id}/${EVENT_CONTRACT_VERSION}.output.schema.json`; + const outputRelative = `schemas/${definition.id}/${EVENT_CONTRACT_VERSION}.output.schema.json`; await output(outputRelative, `${JSON.stringify(definition.outputSchema, null, 2)}\n`); resources.push(resource("schema", outputRelative, outputRelative)); } @@ -657,6 +664,22 @@ for (const definition of portableContracts) { ); } +// Keep installing the record contracts earlier pack versions installed, so a +// collection type that still implements 1.0.0 stays valid after an upgrade. +// They are copied byte-for-byte from the published 0.2.0 pack. +const retainedRoot = resolve(repoRoot, "standard-packs/mdbase-runtime/0.2.0"); +for (const definition of runtimeRecords) { + const schemaRelative = `schemas/${definition.id}/1.0.0.schema.json`; + const contractRelative = `_contracts/${definition.id}/1.0.0.md`; + for (const relativePath of [schemaRelative, contractRelative]) { + await output(relativePath, await readFile(resolve(retainedRoot, relativePath), "utf8")); + } + resources.push( + resource("schema", schemaRelative, schemaRelative), + resource("contract", contractRelative, contractRelative), + ); +} + for (const item of resources) { item.digest = `sha256:${createHash("sha256") .update(await readFile(resolve(packRoot, item.source))) @@ -679,7 +702,7 @@ function recordContractMarkdown(definition, schemaRelative) { kind: mdbase.contract contract_type: record id: ${definition.id} -version: 1.0.0 +version: ${RECORD_CONTRACT_VERSION} name: ${definition.title} description: ${definition.description} record_schema: @@ -691,6 +714,11 @@ record_schema: ${definition.description} +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a \`type\` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + This artifact is passive. Installing it or a type that implements it grants no authority to execute workflows or invoke providers. `; @@ -703,7 +731,7 @@ function typeMarkdown(definition, schemaRelative) { return `--- kind: mdbase.type name: ${definition.type} -version: 1 +version: ${RECORD_TYPE_VERSION} description: Canonical Markdown implementation of ${definition.id}. match: where: @@ -713,7 +741,7 @@ schema: ref: ../${schemaRelative} implements: - contract: ${definition.id} - version: 1.0.0 + version: ${RECORD_CONTRACT_VERSION} fields: ${fields} --- @@ -722,6 +750,11 @@ ${fields} This canonical type makes \`${definition.type}\` records discoverable through the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The \`match\` rule also +recognises hand-written \`type: ${definition.type}\` records in collections +whose type key is something else. `; } @@ -729,7 +762,7 @@ function portableContractMarkdown(definition, schemaRelative) { const output = definition.outputSchema ? `output_schema: dialect: json-schema-2020-12 - ref: ../../schemas/${definition.id}/1.0.0.output.schema.json + ref: ../../schemas/${definition.id}/${EVENT_CONTRACT_VERSION}.output.schema.json ` : ""; const behavior = definition.behavior @@ -742,7 +775,7 @@ function portableContractMarkdown(definition, schemaRelative) { kind: mdbase.contract contract_type: ${definition.contractType} id: ${definition.id} -version: 1.0.0 +version: ${EVENT_CONTRACT_VERSION} name: ${definition.name} description: ${definition.description} ${definition.schemaField}: @@ -761,7 +794,7 @@ function packManifest(items) { const lines = [ "kind: mdbase.type-pack", "id: mdbase.runtime.standard", - "version: 0.2.0", + `version: ${PACK_VERSION}`, "name: mdbase durable runtime standard library", "description: Runtime record implementations and inspectable built-in event/action contracts.", "resources:", diff --git a/site/templates/runtime.html b/site/templates/runtime.html index 62aba71..ff37dbd 100644 --- a/site/templates/runtime.html +++ b/site/templates/runtime.html @@ -134,7 +134,7 @@

Read and inspect the complete model

cursors of workflow execution.

diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.created/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.created/1.0.0.md new file mode 100644 index 0000000..1a1c06c --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.created/1.0.0.md @@ -0,0 +1,16 @@ +--- +kind: mdbase.contract +contract_type: event +id: mdbase.record.created +version: 1.0.0 +name: Record created +description: Published after a record is created and derived collection state is consistent. +data_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.record.created/1.0.0.schema.json +--- + +# Record created + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.deleted/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.deleted/1.0.0.md new file mode 100644 index 0000000..3965bf9 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.deleted/1.0.0.md @@ -0,0 +1,16 @@ +--- +kind: mdbase.contract +contract_type: event +id: mdbase.record.deleted +version: 1.0.0 +name: Record deleted +description: Published after a record is deleted and derived collection state is consistent. +data_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.record.deleted/1.0.0.schema.json +--- + +# Record deleted + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.modified/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.modified/1.0.0.md new file mode 100644 index 0000000..2ccff27 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.modified/1.0.0.md @@ -0,0 +1,16 @@ +--- +kind: mdbase.contract +contract_type: event +id: mdbase.record.modified +version: 1.0.0 +name: Record modified +description: Published after a record is modified and derived collection state is consistent. +data_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.record.modified/1.0.0.schema.json +--- + +# Record modified + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.renamed/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.renamed/1.0.0.md new file mode 100644 index 0000000..bbeef56 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.record.renamed/1.0.0.md @@ -0,0 +1,16 @@ +--- +kind: mdbase.contract +contract_type: event +id: mdbase.record.renamed +version: 1.0.0 +name: Record renamed +description: Published after a record is renamed and derived collection state is consistent. +data_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.record.renamed/1.0.0.schema.json +--- + +# Record renamed + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.0.0.md new file mode 100644 index 0000000..db55d3a --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.action-attempt +version: 1.0.0 +name: Durable action attempt +description: Durable invocation intent and outcome evidence using the shared interoperability envelope. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.action-attempt/1.0.0.schema.json +--- + +# Durable action attempt + +Durable invocation intent and outcome evidence using the shared interoperability envelope. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.1.0.md new file mode 100644 index 0000000..23d62c2 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.action-attempt/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.action-attempt +version: 1.1.0 +name: Durable action attempt +description: Durable invocation intent and outcome evidence using the shared interoperability envelope. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.action-attempt/1.1.0.schema.json +--- + +# Durable action attempt + +Durable invocation intent and outcome evidence using the shared interoperability envelope. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.0.0.md new file mode 100644 index 0000000..5119e27 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.capability-grant +version: 1.0.0 +name: Capability grant evidence +description: A materialized authorization grant scoped independently from contract conformance. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.capability-grant/1.0.0.schema.json +--- + +# Capability grant evidence + +A materialized authorization grant scoped independently from contract conformance. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.1.0.md new file mode 100644 index 0000000..bdae78f --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.capability-grant/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.capability-grant +version: 1.1.0 +name: Capability grant evidence +description: A materialized authorization grant scoped independently from contract conformance. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.capability-grant/1.1.0.schema.json +--- + +# Capability grant evidence + +A materialized authorization grant scoped independently from contract conformance. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.0.0.md new file mode 100644 index 0000000..2f2fb16 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.checkpoint +version: 1.0.0 +name: Runtime checkpoint +description: A durable, lease-safe workflow continuation. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.checkpoint/1.0.0.schema.json +--- + +# Runtime checkpoint + +A durable, lease-safe workflow continuation. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.1.0.md new file mode 100644 index 0000000..e4d16e3 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.checkpoint/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.checkpoint +version: 1.1.0 +name: Runtime checkpoint +description: A durable, lease-safe workflow continuation. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.checkpoint/1.1.0.schema.json +--- + +# Runtime checkpoint + +A durable, lease-safe workflow continuation. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.0.0.md new file mode 100644 index 0000000..15f2466 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.dead-letter +version: 1.0.0 +name: Runtime dead letter +description: Retained event or action evidence that cannot be processed safely. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.dead-letter/1.0.0.schema.json +--- + +# Runtime dead letter + +Retained event or action evidence that cannot be processed safely. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.1.0.md new file mode 100644 index 0000000..00ec93e --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.dead-letter/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.dead-letter +version: 1.1.0 +name: Runtime dead letter +description: Retained event or action evidence that cannot be processed safely. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.dead-letter/1.1.0.schema.json +--- + +# Runtime dead letter + +Retained event or action evidence that cannot be processed safely. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.0.0.md new file mode 100644 index 0000000..82708f1 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.diagnostic +version: 1.0.0 +name: Runtime diagnostic +description: A machine-readable durable runtime diagnostic. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.diagnostic/1.0.0.schema.json +--- + +# Runtime diagnostic + +A machine-readable durable runtime diagnostic. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.1.0.md new file mode 100644 index 0000000..021a541 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.diagnostic/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.diagnostic +version: 1.1.0 +name: Runtime diagnostic +description: A machine-readable durable runtime diagnostic. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.diagnostic/1.1.0.schema.json +--- + +# Runtime diagnostic + +A machine-readable durable runtime diagnostic. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.0.0.md new file mode 100644 index 0000000..9845a29 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.policy +version: 1.0.0 +name: Runtime policy +description: Local authorization, executor, limit, and provider-selection policy. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.policy/1.0.0.schema.json +--- + +# Runtime policy + +Local authorization, executor, limit, and provider-selection policy. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.1.0.md new file mode 100644 index 0000000..51bbc75 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.policy/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.policy +version: 1.1.0 +name: Runtime policy +description: Local authorization, executor, limit, and provider-selection policy. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.policy/1.1.0.schema.json +--- + +# Runtime policy + +Local authorization, executor, limit, and provider-selection policy. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.0.0.md new file mode 100644 index 0000000..c2af919 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.provider-registration +version: 1.0.0 +name: Provider registration evidence +description: An optional audit snapshot of a verified interoperability declaration; it never activates code. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.provider-registration/1.0.0.schema.json +--- + +# Provider registration evidence + +An optional audit snapshot of a verified interoperability declaration; it never activates code. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.1.0.md new file mode 100644 index 0000000..b9ddb77 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.provider-registration/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.provider-registration +version: 1.1.0 +name: Provider registration evidence +description: An optional audit snapshot of a verified interoperability declaration; it never activates code. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.provider-registration/1.1.0.schema.json +--- + +# Provider registration evidence + +An optional audit snapshot of a verified interoperability declaration; it never activates code. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run.cancel/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run.cancel/1.0.0.md new file mode 100644 index 0000000..1f6af38 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run.cancel/1.0.0.md @@ -0,0 +1,22 @@ +--- +kind: mdbase.contract +contract_type: action +id: mdbase.runtime.run.cancel +version: 1.0.0 +name: Cancel durable runtime run +description: Request cooperative cancellation of one durable runtime run. +input_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.schema.json +output_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json +behavior: + idempotency: required + cancellation: none +--- + +# Cancel durable runtime run + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.0.0.md new file mode 100644 index 0000000..2ae260f --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.run +version: 1.0.0 +name: Durable run +description: The durable state and immutable admitted plan for one workflow execution. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.run/1.0.0.schema.json +--- + +# Durable run + +The durable state and immutable admitted plan for one workflow execution. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.1.0.md new file mode 100644 index 0000000..1651718 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.run/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.run +version: 1.1.0 +name: Durable run +description: The durable state and immutable admitted plan for one workflow execution. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.run/1.1.0.schema.json +--- + +# Durable run + +The durable state and immutable admitted plan for one workflow execution. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer.fired/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer.fired/1.0.0.md new file mode 100644 index 0000000..410b93a --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer.fired/1.0.0.md @@ -0,0 +1,16 @@ +--- +kind: mdbase.contract +contract_type: event +id: mdbase.runtime.timer.fired +version: 1.0.0 +name: Runtime timer fired +description: Published with scheduling evidence and opaque application data when the current generation of a durable timer fires. +data_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.timer.fired/1.0.0.schema.json +--- + +# Runtime timer fired + +This built-in is an ordinary, inspectable contract artifact. Runtime exchange +uses the mdbase interoperability profile unchanged. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.0.0.md new file mode 100644 index 0000000..7477f69 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.timer +version: 1.0.0 +name: Runtime timer +description: A generation-safe one-shot timer that publishes through the interoperability profile. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.timer/1.0.0.schema.json +--- + +# Runtime timer + +A generation-safe one-shot timer that publishes through the interoperability profile. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.1.0.md new file mode 100644 index 0000000..8ce06f1 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.timer/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.timer +version: 1.1.0 +name: Runtime timer +description: A generation-safe one-shot timer that publishes through the interoperability profile. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.timer/1.1.0.schema.json +--- + +# Runtime timer + +A generation-safe one-shot timer that publishes through the interoperability profile. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.0.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.0.0.md new file mode 100644 index 0000000..30bcc06 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.0.0.md @@ -0,0 +1,18 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.workflow +version: 1.0.0 +name: Durable workflow +description: A portable workflow whose event and action references are resolved and pinned at admission. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.workflow/1.0.0.schema.json +--- + +# Durable workflow + +A portable workflow whose event and action references are resolved and pinned at admission. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.1.0.md b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.1.0.md new file mode 100644 index 0000000..3b7f8e3 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.1.0.md @@ -0,0 +1,23 @@ +--- +kind: mdbase.contract +contract_type: record +id: mdbase.runtime.workflow +version: 1.1.0 +name: Durable workflow +description: A portable workflow whose event and action references are resolved and pinned at admission. +record_schema: + dialect: json-schema-2020-12 + ref: ../../schemas/mdbase.runtime.workflow/1.1.0.schema.json +--- + +# Durable workflow + +A portable workflow whose event and action references are resolved and pinned at admission. + +The record's type is declared under the collection's configured explicit type +key, so the schema neither requires nor pins a `type` field and accepts +top-level fields outside this contract. That is the only change from 1.0.0; +every record valid under 1.0.0 is also valid under 1.1.0. + +This artifact is passive. Installing it or a type that implements it grants no +authority to execute workflows or invoke providers. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/action-attempt.md b/standard-packs/mdbase-runtime/0.2.1/_types/action-attempt.md new file mode 100644 index 0000000..05bbafb --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/action-attempt.md @@ -0,0 +1,44 @@ +--- +kind: mdbase.type +name: runtime_action_attempt +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.action-attempt. +match: + where: + type: runtime_action_attempt +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.action-attempt/1.1.0.schema.json +implements: + - contract: mdbase.runtime.action-attempt + version: 1.1.0 + fields: + id: id + run_id: run_id + step_id: step_id + request_id: request_id + invocation_id: invocation_id + attempt_id: attempt_id + contract: contract + provider: provider + provider_declaration_digest: provider_declaration_digest + handler_id: handler_id + idempotency_key: idempotency_key + status: status + request: request + invocation: invocation + outcome: outcome + created_at: created_at + updated_at: updated_at + completed_at: completed_at +--- + +# Durable action attempt + +This canonical type makes `runtime_action_attempt` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_action_attempt` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/capability-grant.md b/standard-packs/mdbase-runtime/0.2.1/_types/capability-grant.md new file mode 100644 index 0000000..da4a015 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/capability-grant.md @@ -0,0 +1,34 @@ +--- +kind: mdbase.type +name: runtime_capability_grant +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.capability-grant. +match: + where: + type: runtime_capability_grant +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.capability-grant/1.1.0.schema.json +implements: + - contract: mdbase.runtime.capability-grant + version: 1.1.0 + fields: + id: id + capability: capability + principal: principal + mode: mode + actions: actions + providers: providers + granted_at: granted_at + expires_at: expires_at +--- + +# Capability grant evidence + +This canonical type makes `runtime_capability_grant` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_capability_grant` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/checkpoint.md b/standard-packs/mdbase-runtime/0.2.1/_types/checkpoint.md new file mode 100644 index 0000000..c99dab9 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/checkpoint.md @@ -0,0 +1,32 @@ +--- +kind: mdbase.type +name: runtime_checkpoint +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.checkpoint. +match: + where: + type: runtime_checkpoint +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.checkpoint/1.1.0.schema.json +implements: + - contract: mdbase.runtime.checkpoint + version: 1.1.0 + fields: + id: id + run_id: run_id + generation: generation + status: status + state: state + updated_at: updated_at +--- + +# Runtime checkpoint + +This canonical type makes `runtime_checkpoint` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_checkpoint` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/dead-letter.md b/standard-packs/mdbase-runtime/0.2.1/_types/dead-letter.md new file mode 100644 index 0000000..0b344ee --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/dead-letter.md @@ -0,0 +1,33 @@ +--- +kind: mdbase.type +name: runtime_dead_letter +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.dead-letter. +match: + where: + type: runtime_dead_letter +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.dead-letter/1.1.0.schema.json +implements: + - contract: mdbase.runtime.dead-letter + version: 1.1.0 + fields: + id: id + reason: reason + status: status + evidence_kind: evidence_kind + evidence: evidence + created_at: created_at + acknowledged_at: acknowledged_at +--- + +# Runtime dead letter + +This canonical type makes `runtime_dead_letter` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_dead_letter` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/diagnostic.md b/standard-packs/mdbase-runtime/0.2.1/_types/diagnostic.md new file mode 100644 index 0000000..60435ed --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/diagnostic.md @@ -0,0 +1,35 @@ +--- +kind: mdbase.type +name: runtime_diagnostic +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.diagnostic. +match: + where: + type: runtime_diagnostic +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.diagnostic/1.1.0.schema.json +implements: + - contract: mdbase.runtime.diagnostic + version: 1.1.0 + fields: + id: id + severity: severity + code: code + message: message + run_id: run_id + attempt_id: attempt_id + path: path + details: details + created_at: created_at +--- + +# Runtime diagnostic + +This canonical type makes `runtime_diagnostic` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_diagnostic` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/policy.md b/standard-packs/mdbase-runtime/0.2.1/_types/policy.md new file mode 100644 index 0000000..1a21eab --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/policy.md @@ -0,0 +1,33 @@ +--- +kind: mdbase.type +name: runtime_policy +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.policy. +match: + where: + type: runtime_policy +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.policy/1.1.0.schema.json +implements: + - contract: mdbase.runtime.policy + version: 1.1.0 + fields: + id: id + version: version + name: name + enabled: enabled + executors: executors + provider_selections: provider_selections + grants: grants +--- + +# Runtime policy + +This canonical type makes `runtime_policy` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_policy` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/provider-registration.md b/standard-packs/mdbase-runtime/0.2.1/_types/provider-registration.md new file mode 100644 index 0000000..2d6fa8a --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/provider-registration.md @@ -0,0 +1,31 @@ +--- +kind: mdbase.type +name: runtime_provider_registration +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.provider-registration. +match: + where: + type: runtime_provider_registration +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.provider-registration/1.1.0.schema.json +implements: + - contract: mdbase.runtime.provider-registration + version: 1.1.0 + fields: + id: id + declaration_kind: declaration_kind + declaration: declaration + verified_at: verified_at + active: active +--- + +# Provider registration evidence + +This canonical type makes `runtime_provider_registration` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_provider_registration` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/run.md b/standard-packs/mdbase-runtime/0.2.1/_types/run.md new file mode 100644 index 0000000..6c34e63 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/run.md @@ -0,0 +1,47 @@ +--- +kind: mdbase.type +name: runtime_run +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.run. +match: + where: + type: runtime_run +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.run/1.1.0.schema.json +implements: + - contract: mdbase.runtime.run + version: 1.1.0 + fields: + id: id + workflow_id: workflow_id + workflow_version: workflow_version + workflow_revision: workflow_revision + event_id: event_id + event_contract: event_contract + event_source: event_source + admitted_plan: admitted_plan + policy_id: policy_id + policy_revision: policy_revision + trigger_id: trigger_id + event_cursor: event_cursor + executor: executor + idempotency_key: idempotency_key + concurrency_group: concurrency_group + status: status + created_at: created_at + updated_at: updated_at + started_at: started_at + finished_at: finished_at + lease: lease +--- + +# Durable run + +This canonical type makes `runtime_run` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_run` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/timer.md b/standard-packs/mdbase-runtime/0.2.1/_types/timer.md new file mode 100644 index 0000000..4d8de4d --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/timer.md @@ -0,0 +1,35 @@ +--- +kind: mdbase.type +name: runtime_timer +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.timer. +match: + where: + type: runtime_timer +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.timer/1.1.0.schema.json +implements: + - contract: mdbase.runtime.timer + version: 1.1.0 + fields: + id: id + generation: generation + status: status + fire_at: fire_at + event: event + missed_run_policy: missed_run_policy + created_at: created_at + updated_at: updated_at + fired_at: fired_at +--- + +# Runtime timer + +This canonical type makes `runtime_timer` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_timer` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/_types/workflow.md b/standard-packs/mdbase-runtime/0.2.1/_types/workflow.md new file mode 100644 index 0000000..f9f0940 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/_types/workflow.md @@ -0,0 +1,36 @@ +--- +kind: mdbase.type +name: runtime_workflow +version: 2 +description: Canonical Markdown implementation of mdbase.runtime.workflow. +match: + where: + type: runtime_workflow +schema: + dialect: json-schema-2020-12 + ref: ../schemas/mdbase.runtime.workflow/1.1.0.schema.json +implements: + - contract: mdbase.runtime.workflow + version: 1.1.0 + fields: + id: id + version: version + name: name + description: description + enabled: enabled + requires: requires + vars: vars + triggers: triggers + steps: steps + run: run +--- + +# Durable workflow + +This canonical type makes `runtime_workflow` records discoverable through +the ordinary mdbase record-contract registry. + +Apps create these records by naming the type; the engine writes it under the +collection's configured explicit type key. The `match` rule also +recognises hand-written `type: runtime_workflow` records in collections +whose type key is something else. diff --git a/standard-packs/mdbase-runtime/0.2.1/mdbase-pack.yaml b/standard-packs/mdbase-runtime/0.2.1/mdbase-pack.yaml new file mode 100644 index 0000000..529e780 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/mdbase-pack.yaml @@ -0,0 +1,321 @@ +kind: mdbase.type-pack +id: mdbase.runtime.standard +version: 0.2.1 +name: mdbase durable runtime standard library +description: Runtime record implementations and inspectable built-in event/action contracts. +resources: + - kind: schema + mode: managed + source: schemas/mdbase.runtime.workflow/1.1.0.schema.json + target: schemas/mdbase.runtime.workflow/1.1.0.schema.json + digest: sha256:d5d4100ff7d66e8856f6959fbd318c39d2d2aa04aab03a6dd315f7dec082fd21 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.workflow/1.1.0.md + target: _contracts/mdbase.runtime.workflow/1.1.0.md + digest: sha256:763cce69ac9dd85502f9d9ca07be514adbad7f9e81bc69ca4d4e1e26d7b84b0b + - kind: type + mode: managed + source: _types/workflow.md + target: _types/workflow.md + digest: sha256:93a355e205d2f6735831fcd77eb942fbe932cc51f565a3b50848fdb974ea05bb + - kind: schema + mode: managed + source: schemas/mdbase.runtime.policy/1.1.0.schema.json + target: schemas/mdbase.runtime.policy/1.1.0.schema.json + digest: sha256:851d02b3132b857009182e4ac35029c62fe1862080629e8dd8448845e8f09195 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.policy/1.1.0.md + target: _contracts/mdbase.runtime.policy/1.1.0.md + digest: sha256:3c400824980207d94329945037f19a064cba2c368aa1caa8f737dd9fb1df3911 + - kind: type + mode: managed + source: _types/policy.md + target: _types/policy.md + digest: sha256:2d45c92786d85826e060ab68d2ce8ef96e33c42e41e3d9bf3ad13e620f3b388a + - kind: schema + mode: managed + source: schemas/mdbase.runtime.provider-registration/1.1.0.schema.json + target: schemas/mdbase.runtime.provider-registration/1.1.0.schema.json + digest: sha256:7ca141d856eb266b984ba39ecf7cd428f4ce04b8cf6c0368de89bf819a205f76 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.provider-registration/1.1.0.md + target: _contracts/mdbase.runtime.provider-registration/1.1.0.md + digest: sha256:9bd9bfbac90886ff882aeb3edd8b0446f2bfb342775faa52a48349156fc44b2a + - kind: type + mode: managed + source: _types/provider-registration.md + target: _types/provider-registration.md + digest: sha256:e4812beabae351906b67db5b1636b61e68f791a1508c3d3ef3af5ee6724bed77 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.capability-grant/1.1.0.schema.json + target: schemas/mdbase.runtime.capability-grant/1.1.0.schema.json + digest: sha256:d0c90f0da81c843968616fd6faa9af72c0309dd92cb86692609625892592ac96 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.capability-grant/1.1.0.md + target: _contracts/mdbase.runtime.capability-grant/1.1.0.md + digest: sha256:09a0be953976b05820484b2d6f3160c85aca870eae7dd874f815abea6f1756dd + - kind: type + mode: managed + source: _types/capability-grant.md + target: _types/capability-grant.md + digest: sha256:0f48b36d62377ea964fcea79b0474f85daf562026dc905998cf44d46281c5230 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.run/1.1.0.schema.json + target: schemas/mdbase.runtime.run/1.1.0.schema.json + digest: sha256:5f134b5f345edd72dab50a25cd99b58f60cacf7078d5eae30fe775c5ef63bc3b + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.run/1.1.0.md + target: _contracts/mdbase.runtime.run/1.1.0.md + digest: sha256:347fcf0b806bc969e555aadc07bc7dcd3b5b67ffb9063e8d613d890db45cae61 + - kind: type + mode: managed + source: _types/run.md + target: _types/run.md + digest: sha256:a93cba126d8a9964cc343e8a6cf41e49a620e0c985c3002842583f60e666f486 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.action-attempt/1.1.0.schema.json + target: schemas/mdbase.runtime.action-attempt/1.1.0.schema.json + digest: sha256:56007017db377c76374daaefddeb34a2ec42f5ae174e8b584d7371a316625d42 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.action-attempt/1.1.0.md + target: _contracts/mdbase.runtime.action-attempt/1.1.0.md + digest: sha256:0c43ed2d09c6979974ffe40546e84c5ee3f670e667b1f65ba8594f0a8c8ad5ed + - kind: type + mode: managed + source: _types/action-attempt.md + target: _types/action-attempt.md + digest: sha256:1e82fb5e926c5432bc7f1cb0e3450f652c658f2bc4372af959cd6f72b1cea79c + - kind: schema + mode: managed + source: schemas/mdbase.runtime.checkpoint/1.1.0.schema.json + target: schemas/mdbase.runtime.checkpoint/1.1.0.schema.json + digest: sha256:4b545da125ce4a4c1408108a33f8e48e8a9a09dc5bf62dff1ba4437268a2d1f4 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.checkpoint/1.1.0.md + target: _contracts/mdbase.runtime.checkpoint/1.1.0.md + digest: sha256:f7b7377b8b62f00aac57394f9d9f203e0aa027c4dfa30d12673d78c79d48fe08 + - kind: type + mode: managed + source: _types/checkpoint.md + target: _types/checkpoint.md + digest: sha256:8ce21ea95e3c4fa05f0709a010f8f6062be7adf20bd5324676e6236bd863156c + - kind: schema + mode: managed + source: schemas/mdbase.runtime.timer/1.1.0.schema.json + target: schemas/mdbase.runtime.timer/1.1.0.schema.json + digest: sha256:a8de8d60cb2bfdc9c40257136cef9940f9686f051d40616b7cc271da1cfd280f + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.timer/1.1.0.md + target: _contracts/mdbase.runtime.timer/1.1.0.md + digest: sha256:c54924aa0a6c88c7808cfbc94d36bdb6d56e0c7e19198c46bc71e5c11fbc4dc0 + - kind: type + mode: managed + source: _types/timer.md + target: _types/timer.md + digest: sha256:38357ad2d687ebe97bdc12b4106c996348bd4fe09d5fe474227d84b4f4ee60f8 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.diagnostic/1.1.0.schema.json + target: schemas/mdbase.runtime.diagnostic/1.1.0.schema.json + digest: sha256:e2c56738f9f75ce2000dc3f85d714212eabbc25d052651edba5e8dbd994c69c3 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.diagnostic/1.1.0.md + target: _contracts/mdbase.runtime.diagnostic/1.1.0.md + digest: sha256:bc188903c01074bd061b71a2a65727662989a4422ce620e1effb4b0d5247cba1 + - kind: type + mode: managed + source: _types/diagnostic.md + target: _types/diagnostic.md + digest: sha256:51012026f11b462fefa8dfafd5595cd15e13e54ef877de1d917acc17121fbbb6 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.dead-letter/1.1.0.schema.json + target: schemas/mdbase.runtime.dead-letter/1.1.0.schema.json + digest: sha256:a3e93d2986987a2c093789e1fc990c699165ec4a098dc48c4f2544f38edb10e6 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.dead-letter/1.1.0.md + target: _contracts/mdbase.runtime.dead-letter/1.1.0.md + digest: sha256:f724d7d2fc345e9fd731355e52917d950b689b48db809d8a7a126ad8c8e38007 + - kind: type + mode: managed + source: _types/dead-letter.md + target: _types/dead-letter.md + digest: sha256:5192ba183ad6796a52e8aea82fc30e28728de61cc464fcc5cb69343f97ba73e5 + - kind: schema + mode: managed + source: schemas/mdbase.record.created/1.0.0.schema.json + target: schemas/mdbase.record.created/1.0.0.schema.json + digest: sha256:8d28a2a32083ab9a55f53ad1a619da47022fa3ef291191c6c2e5a9848ce59fcc + - kind: contract + mode: managed + source: _contracts/mdbase.record.created/1.0.0.md + target: _contracts/mdbase.record.created/1.0.0.md + digest: sha256:4c157f94e63d1f4fb1a74da640e03264ccb6c78cfa9f88ddb71b09c8bd6d1d44 + - kind: schema + mode: managed + source: schemas/mdbase.record.modified/1.0.0.schema.json + target: schemas/mdbase.record.modified/1.0.0.schema.json + digest: sha256:1ecda771bdeb4b6cea32b81ee344257005b49c4dcf71cdf95a1577a7459b74b0 + - kind: contract + mode: managed + source: _contracts/mdbase.record.modified/1.0.0.md + target: _contracts/mdbase.record.modified/1.0.0.md + digest: sha256:2f670ef18bf7330fbba73861f41889ee946b33644074ca7366e88913f6e4d88a + - kind: schema + mode: managed + source: schemas/mdbase.record.deleted/1.0.0.schema.json + target: schemas/mdbase.record.deleted/1.0.0.schema.json + digest: sha256:b5a1fa20b6526ea8d857e03a2eebfc8b2ed126b1c4e7ca2d9735c59ddbeb7206 + - kind: contract + mode: managed + source: _contracts/mdbase.record.deleted/1.0.0.md + target: _contracts/mdbase.record.deleted/1.0.0.md + digest: sha256:cb4f4a09f9f9b1f7f5e2207de0074ce02fd89008c08386626fd964a29299f956 + - kind: schema + mode: managed + source: schemas/mdbase.record.renamed/1.0.0.schema.json + target: schemas/mdbase.record.renamed/1.0.0.schema.json + digest: sha256:11546c9497c9700ed48b2f634be8001a009b7cea92f19584ed8b8aafc783e990 + - kind: contract + mode: managed + source: _contracts/mdbase.record.renamed/1.0.0.md + target: _contracts/mdbase.record.renamed/1.0.0.md + digest: sha256:b6c507198379ba48408c9b48161a1c22d46dad2d291691af449167618484bb4c + - kind: schema + mode: managed + source: schemas/mdbase.runtime.timer.fired/1.0.0.schema.json + target: schemas/mdbase.runtime.timer.fired/1.0.0.schema.json + digest: sha256:986cdde8c88a6ff363062d056101141c436271608e565d2a02f250cd74853f74 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.timer.fired/1.0.0.md + target: _contracts/mdbase.runtime.timer.fired/1.0.0.md + digest: sha256:9381a2c6778a3268758ac235e3c3b66991a769fa8e19f7303d4404b1e7e62bc6 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json + target: schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json + digest: sha256:88cbccbfe0e4d087b67159a2cc36cc6ec92b1ea7e849a5c6a82e074f06b270bb + - kind: schema + mode: managed + source: schemas/mdbase.runtime.run.cancel/1.0.0.schema.json + target: schemas/mdbase.runtime.run.cancel/1.0.0.schema.json + digest: sha256:21dce4d30fd9848e43610c26990fd208476cdb27c5b489439f632384b4a76675 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.run.cancel/1.0.0.md + target: _contracts/mdbase.runtime.run.cancel/1.0.0.md + digest: sha256:949f039334cfc3f096beb870419baa08c3b40679b184e9849f9330a34a6f524d + - kind: schema + mode: managed + source: schemas/mdbase.runtime.workflow/1.0.0.schema.json + target: schemas/mdbase.runtime.workflow/1.0.0.schema.json + digest: sha256:e8f413663a2911be5a51b1f7aefae80e9e42ea5c729f04d6ccfd0bc4eb1965ea + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.workflow/1.0.0.md + target: _contracts/mdbase.runtime.workflow/1.0.0.md + digest: sha256:7cf8ed016bf6232d9c1abc8d8bb9bb25fd2af1ffa6c6094317aa65baf3c31049 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.policy/1.0.0.schema.json + target: schemas/mdbase.runtime.policy/1.0.0.schema.json + digest: sha256:4d1d2cb59df9991dcc47e269b21dab9e71c1628b99f71e5d9ff5948ba6f7bc45 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.policy/1.0.0.md + target: _contracts/mdbase.runtime.policy/1.0.0.md + digest: sha256:319a9bd4ca62a246871ee52e0ef0250a82c240cb14a95f88e4a505ad04450300 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.provider-registration/1.0.0.schema.json + target: schemas/mdbase.runtime.provider-registration/1.0.0.schema.json + digest: sha256:4cfd9649863835163baee7542b601991c18b21b75c63b48324383da674a1f797 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.provider-registration/1.0.0.md + target: _contracts/mdbase.runtime.provider-registration/1.0.0.md + digest: sha256:97d157efaeb311745fc84e2cbe01e8147aaf44109384090c154527b68838d766 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.capability-grant/1.0.0.schema.json + target: schemas/mdbase.runtime.capability-grant/1.0.0.schema.json + digest: sha256:14fcd3ad1fbe3d3c360024e869d8a52ec047aa8b2dd37755c63e2412535f50ca + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.capability-grant/1.0.0.md + target: _contracts/mdbase.runtime.capability-grant/1.0.0.md + digest: sha256:1cd3a2ff5fdc9294f766e538c371ed278ad4c54452480ba6fcc2870be08b47a1 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.run/1.0.0.schema.json + target: schemas/mdbase.runtime.run/1.0.0.schema.json + digest: sha256:0add08b601ebd15b80dc14812fc7fbf9c1b5bd8415daed7b7d566e33741d91c3 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.run/1.0.0.md + target: _contracts/mdbase.runtime.run/1.0.0.md + digest: sha256:7e46270c951e6634fe25519dff10523652365f8adf30b034f01e29e1ca48cadb + - kind: schema + mode: managed + source: schemas/mdbase.runtime.action-attempt/1.0.0.schema.json + target: schemas/mdbase.runtime.action-attempt/1.0.0.schema.json + digest: sha256:71c8cb274daa63ed8b428f474ec07d0053e65e06f42354cb7f36072cb136506c + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.action-attempt/1.0.0.md + target: _contracts/mdbase.runtime.action-attempt/1.0.0.md + digest: sha256:04c1bf55580d0d280d2be645c56177da25c2d0129f8fa71def7d5f96cf0ea629 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.checkpoint/1.0.0.schema.json + target: schemas/mdbase.runtime.checkpoint/1.0.0.schema.json + digest: sha256:0c4a550356b974814690bb2e5db1902c6c3cff13be1ea69a139e2e43781ecf2c + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.checkpoint/1.0.0.md + target: _contracts/mdbase.runtime.checkpoint/1.0.0.md + digest: sha256:6413676d7482a71b31cbe4abf8c5a543a54a530ef62f669f8ef8e21bcc6bc237 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.timer/1.0.0.schema.json + target: schemas/mdbase.runtime.timer/1.0.0.schema.json + digest: sha256:fd6fa1b8fa7a3e782160d1b0e1399f15392230d1560393e840e7869c7d407aac + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.timer/1.0.0.md + target: _contracts/mdbase.runtime.timer/1.0.0.md + digest: sha256:0500a421e81eef09c37bc4ef559e3805843e87a6e1b2cf2a393da4d76d4384fc + - kind: schema + mode: managed + source: schemas/mdbase.runtime.diagnostic/1.0.0.schema.json + target: schemas/mdbase.runtime.diagnostic/1.0.0.schema.json + digest: sha256:b4d78f97b4feadc6c1e79b214fac20f0c305609e20f152f878d23d5d4e370935 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.diagnostic/1.0.0.md + target: _contracts/mdbase.runtime.diagnostic/1.0.0.md + digest: sha256:2e7379de9ceefa6435e9c66a71f4292e4805e8038ed6496c83dad946900267f6 + - kind: schema + mode: managed + source: schemas/mdbase.runtime.dead-letter/1.0.0.schema.json + target: schemas/mdbase.runtime.dead-letter/1.0.0.schema.json + digest: sha256:1f866b1dfca061571a8dc3a87748fd9deb6268a6674fe5eaf764e8701d32fee9 + - kind: contract + mode: managed + source: _contracts/mdbase.runtime.dead-letter/1.0.0.md + target: _contracts/mdbase.runtime.dead-letter/1.0.0.md + digest: sha256:737d08bad6662e087c3393f6f17d24374f258d60b41112a3f864cb5138af8edd diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.created/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.created/1.0.0.schema.json new file mode 100644 index 0000000..f2f1c4e --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.created/1.0.0.schema.json @@ -0,0 +1,180 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase record-created event data", + "type": "object", + "required": [ + "path", + "after", + "changed_fields", + "revision", + "types" + ], + "properties": { + "path": { + "type": "string", + "minLength": 1 + }, + "after": { + "type": "object" + }, + "changed_fields": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "revision": { + "type": "string", + "minLength": 1 + }, + "types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.created/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.deleted/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.deleted/1.0.0.schema.json new file mode 100644 index 0000000..49a395f --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.deleted/1.0.0.schema.json @@ -0,0 +1,172 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase record-deleted event data", + "type": "object", + "required": [ + "path", + "before", + "previous_revision", + "types" + ], + "properties": { + "path": { + "type": "string", + "minLength": 1 + }, + "before": { + "type": "object" + }, + "previous_revision": { + "type": "string", + "minLength": 1 + }, + "types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.deleted/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.modified/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.modified/1.0.0.schema.json new file mode 100644 index 0000000..57ad051 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.modified/1.0.0.schema.json @@ -0,0 +1,198 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase record-modified event data", + "type": "object", + "required": [ + "path", + "before", + "after", + "changed_fields", + "previous_revision", + "revision", + "previous_types", + "types" + ], + "properties": { + "path": { + "type": "string", + "minLength": 1 + }, + "before": { + "type": "object" + }, + "after": { + "type": "object" + }, + "changed_fields": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "previous_revision": { + "type": "string", + "minLength": 1 + }, + "revision": { + "type": "string", + "minLength": 1 + }, + "previous_types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + }, + "types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.modified/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.renamed/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.renamed/1.0.0.schema.json new file mode 100644 index 0000000..4c11fc8 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.record.renamed/1.0.0.schema.json @@ -0,0 +1,195 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase record-renamed event data", + "type": "object", + "required": [ + "from", + "to", + "before", + "after", + "previous_revision", + "revision", + "previous_types", + "types" + ], + "properties": { + "from": { + "type": "string", + "minLength": 1 + }, + "to": { + "type": "string", + "minLength": 1 + }, + "before": { + "type": "object" + }, + "after": { + "type": "object" + }, + "previous_revision": { + "type": "string", + "minLength": 1 + }, + "revision": { + "type": "string", + "minLength": 1 + }, + "previous_types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + }, + "types": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.record.renamed/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.0.0.schema.json new file mode 100644 index 0000000..b02f7b7 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.0.0.schema.json @@ -0,0 +1,238 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime action attempt", + "type": "object", + "required": [ + "type", + "id", + "run_id", + "step_id", + "request_id", + "invocation_id", + "attempt_id", + "contract", + "provider", + "provider_declaration_digest", + "status", + "created_at", + "updated_at" + ], + "properties": { + "type": { + "const": "runtime_action_attempt" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "step_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "request_id": { + "type": "string", + "minLength": 1 + }, + "invocation_id": { + "type": "string", + "minLength": 1 + }, + "attempt_id": { + "type": "string", + "minLength": 1 + }, + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "provider": { + "$ref": "#/$defs/identity" + }, + "provider_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "handler_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "idempotency_key": { + "type": "string" + }, + "status": { + "enum": [ + "admitted", + "dispatching", + "succeeded", + "rejected", + "failed", + "cancelled", + "indeterminate" + ] + }, + "request": { + "type": "object" + }, + "invocation": { + "type": "object" + }, + "outcome": { + "type": "object" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "completed_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.action-attempt/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.1.0.schema.json new file mode 100644 index 0000000..70209ae --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.action-attempt/1.1.0.schema.json @@ -0,0 +1,230 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime action attempt", + "type": "object", + "required": [ + "id", + "run_id", + "step_id", + "request_id", + "invocation_id", + "attempt_id", + "contract", + "provider", + "provider_declaration_digest", + "status", + "created_at", + "updated_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "step_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "request_id": { + "type": "string", + "minLength": 1 + }, + "invocation_id": { + "type": "string", + "minLength": 1 + }, + "attempt_id": { + "type": "string", + "minLength": 1 + }, + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "provider": { + "$ref": "#/$defs/identity" + }, + "provider_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "handler_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "idempotency_key": { + "type": "string" + }, + "status": { + "enum": [ + "admitted", + "dispatching", + "succeeded", + "rejected", + "failed", + "cancelled", + "indeterminate" + ] + }, + "request": { + "type": "object" + }, + "invocation": { + "type": "object" + }, + "outcome": { + "type": "object" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "completed_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.action-attempt/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.0.0.schema.json new file mode 100644 index 0000000..9d6cc2d --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.0.0.schema.json @@ -0,0 +1,197 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime capability grant", + "type": "object", + "required": [ + "type", + "id", + "capability", + "principal", + "mode", + "granted_at" + ], + "properties": { + "type": { + "const": "runtime_capability_grant" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "capability": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "principal": { + "$ref": "#/$defs/identity" + }, + "mode": { + "enum": [ + "allow", + "deny" + ] + }, + "actions": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/contractRequirement" + } + }, + "providers": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/providerSelector" + } + }, + "granted_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.capability-grant/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.1.0.schema.json new file mode 100644 index 0000000..9b1c133 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.capability-grant/1.1.0.schema.json @@ -0,0 +1,189 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime capability grant", + "type": "object", + "required": [ + "id", + "capability", + "principal", + "mode", + "granted_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "capability": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "principal": { + "$ref": "#/$defs/identity" + }, + "mode": { + "enum": [ + "allow", + "deny" + ] + }, + "actions": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/contractRequirement" + } + }, + "providers": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/providerSelector" + } + }, + "granted_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.capability-grant/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.0.0.schema.json new file mode 100644 index 0000000..f14163b --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.0.0.schema.json @@ -0,0 +1,188 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime checkpoint", + "type": "object", + "required": [ + "type", + "id", + "run_id", + "generation", + "status", + "state", + "updated_at" + ], + "properties": { + "type": { + "const": "runtime_checkpoint" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "generation": { + "type": "integer", + "minimum": 1 + }, + "status": { + "enum": [ + "open", + "waiting", + "ready", + "completed", + "failed", + "cancelled" + ] + }, + "state": { + "type": "object" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.checkpoint/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.1.0.schema.json new file mode 100644 index 0000000..f4e5526 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.checkpoint/1.1.0.schema.json @@ -0,0 +1,180 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime checkpoint", + "type": "object", + "required": [ + "id", + "run_id", + "generation", + "status", + "state", + "updated_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "generation": { + "type": "integer", + "minimum": 1 + }, + "status": { + "enum": [ + "open", + "waiting", + "ready", + "completed", + "failed", + "cancelled" + ] + }, + "state": { + "type": "object" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.checkpoint/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.0.0.schema.json new file mode 100644 index 0000000..ea3be8b --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.0.0.schema.json @@ -0,0 +1,191 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime dead letter", + "type": "object", + "required": [ + "type", + "id", + "reason", + "status", + "evidence", + "created_at" + ], + "properties": { + "type": { + "const": "runtime_dead_letter" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "reason": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "status": { + "enum": [ + "unresolved", + "acknowledged", + "requeued" + ] + }, + "evidence_kind": { + "enum": [ + "event", + "action_request", + "action_outcome" + ] + }, + "evidence": { + "type": "object" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "acknowledged_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.dead-letter/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.1.0.schema.json new file mode 100644 index 0000000..f754108 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.dead-letter/1.1.0.schema.json @@ -0,0 +1,183 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime dead letter", + "type": "object", + "required": [ + "id", + "reason", + "status", + "evidence", + "created_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "reason": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "status": { + "enum": [ + "unresolved", + "acknowledged", + "requeued" + ] + }, + "evidence_kind": { + "enum": [ + "event", + "action_request", + "action_outcome" + ] + }, + "evidence": { + "type": "object" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "acknowledged_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.dead-letter/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.0.0.schema.json new file mode 100644 index 0000000..0dec633 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.0.0.schema.json @@ -0,0 +1,193 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime diagnostic", + "type": "object", + "required": [ + "type", + "id", + "severity", + "code", + "message", + "created_at" + ], + "properties": { + "type": { + "const": "runtime_diagnostic" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "severity": { + "enum": [ + "info", + "warning", + "error" + ] + }, + "code": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "message": { + "type": "string", + "minLength": 1 + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "attempt_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "path": { + "type": "string" + }, + "details": {}, + "created_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.diagnostic/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.1.0.schema.json new file mode 100644 index 0000000..dcfed28 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.diagnostic/1.1.0.schema.json @@ -0,0 +1,185 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime diagnostic", + "type": "object", + "required": [ + "id", + "severity", + "code", + "message", + "created_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "severity": { + "enum": [ + "info", + "warning", + "error" + ] + }, + "code": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "message": { + "type": "string", + "minLength": 1 + }, + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "attempt_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "path": { + "type": "string" + }, + "details": {}, + "created_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.diagnostic/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.0.0.schema.json new file mode 100644 index 0000000..a873c7b --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.0.0.schema.json @@ -0,0 +1,263 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime policy", + "type": "object", + "required": [ + "type", + "id", + "version", + "enabled", + "grants" + ], + "properties": { + "type": { + "const": "runtime_policy" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "enabled": { + "type": "boolean" + }, + "executors": { + "type": "object", + "required": [], + "properties": { + "default": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflows": { + "type": "object", + "additionalProperties": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "provider_selections": { + "type": "array", + "items": { + "type": "object", + "required": [ + "contract", + "selector" + ], + "properties": { + "contract": { + "$ref": "#/$defs/contractRequirement" + }, + "selector": { + "$ref": "#/$defs/providerSelector" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "grants": { + "type": "array", + "items": { + "type": "object", + "required": [ + "capability", + "mode" + ], + "properties": { + "capability": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "mode": { + "enum": [ + "allow", + "deny" + ] + }, + "actions": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/contractRequirement" + } + }, + "providers": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/providerSelector" + } + }, + "max_calls_per_run": { + "type": "integer", + "minimum": 1 + }, + "max_records_per_run": { + "type": "integer", + "minimum": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.policy/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.1.0.schema.json new file mode 100644 index 0000000..a85e1e7 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.policy/1.1.0.schema.json @@ -0,0 +1,255 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime policy", + "type": "object", + "required": [ + "id", + "version", + "enabled", + "grants" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "enabled": { + "type": "boolean" + }, + "executors": { + "type": "object", + "required": [], + "properties": { + "default": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflows": { + "type": "object", + "additionalProperties": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "provider_selections": { + "type": "array", + "items": { + "type": "object", + "required": [ + "contract", + "selector" + ], + "properties": { + "contract": { + "$ref": "#/$defs/contractRequirement" + }, + "selector": { + "$ref": "#/$defs/providerSelector" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "grants": { + "type": "array", + "items": { + "type": "object", + "required": [ + "capability", + "mode" + ], + "properties": { + "capability": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "mode": { + "enum": [ + "allow", + "deny" + ] + }, + "actions": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/contractRequirement" + } + }, + "providers": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/$defs/providerSelector" + } + }, + "max_calls_per_run": { + "type": "integer", + "minimum": 1 + }, + "max_records_per_run": { + "type": "integer", + "minimum": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.policy/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.0.0.schema.json new file mode 100644 index 0000000..1fb73c5 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.0.0.schema.json @@ -0,0 +1,178 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime provider registration evidence", + "type": "object", + "required": [ + "type", + "id", + "declaration_kind", + "declaration", + "verified_at", + "active" + ], + "properties": { + "type": { + "const": "runtime_provider_registration" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "declaration_kind": { + "enum": [ + "event_source", + "action_provider" + ] + }, + "declaration": { + "type": "object" + }, + "verified_at": { + "type": "string", + "format": "date-time" + }, + "active": { + "type": "boolean" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.provider-registration/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.1.0.schema.json new file mode 100644 index 0000000..0999753 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.provider-registration/1.1.0.schema.json @@ -0,0 +1,170 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime provider registration evidence", + "type": "object", + "required": [ + "id", + "declaration_kind", + "declaration", + "verified_at", + "active" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "declaration_kind": { + "enum": [ + "event_source", + "action_provider" + ] + }, + "declaration": { + "type": "object" + }, + "verified_at": { + "type": "string", + "format": "date-time" + }, + "active": { + "type": "boolean" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.provider-registration/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json new file mode 100644 index 0000000..8c3ed04 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.output.schema.json @@ -0,0 +1,161 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime run-cancel action output", + "type": "object", + "required": [ + "run_id", + "status" + ], + "properties": { + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "status": { + "enum": [ + "cancellation_requested", + "already_terminal" + ] + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run.cancel/1.0.0.output.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.schema.json new file mode 100644 index 0000000..e5fd257 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run.cancel/1.0.0.schema.json @@ -0,0 +1,157 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime run-cancel action input", + "type": "object", + "required": [ + "run_id" + ], + "properties": { + "run_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "reason": { + "type": "string" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run.cancel/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.0.0.schema.json new file mode 100644 index 0000000..3966490 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.0.0.schema.json @@ -0,0 +1,356 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime run", + "type": "object", + "required": [ + "type", + "id", + "workflow_id", + "workflow_version", + "workflow_revision", + "event_id", + "event_contract", + "admitted_plan", + "status", + "created_at", + "updated_at" + ], + "properties": { + "type": { + "const": "runtime_run" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflow_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflow_version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "workflow_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "event_id": { + "type": "string", + "minLength": 1 + }, + "event_contract": { + "$ref": "#/$defs/exactContractReference" + }, + "event_source": { + "$ref": "#/$defs/identity" + }, + "admitted_plan": { + "$ref": "#/$defs/admittedPlan" + }, + "policy_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "policy_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "trigger_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "event_cursor": { + "type": "integer", + "minimum": 1 + }, + "executor": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "idempotency_key": { + "type": "string" + }, + "concurrency_group": { + "type": "string" + }, + "status": { + "enum": [ + "queued", + "running", + "waiting", + "succeeded", + "failed", + "cancelled", + "indeterminate" + ] + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "lease": { + "$ref": "#/$defs/lease" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "admittedPlan": { + "type": "object", + "required": [ + "profile_version", + "workflow_revision", + "event", + "steps" + ], + "properties": { + "profile_version": { + "const": "0.2" + }, + "workflow_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "event": { + "type": "object", + "required": [ + "contract", + "source" + ], + "properties": { + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "source": { + "$ref": "#/$defs/identity" + }, + "source_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "steps": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "contract", + "provider", + "provider_declaration_digest", + "handler_id" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "provider": { + "$ref": "#/$defs/identity" + }, + "provider_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "handler_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "lease": { + "type": "object", + "required": [ + "owner", + "token", + "expires_at" + ], + "properties": { + "owner": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "token": { + "type": "string", + "minLength": 1 + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.1.0.schema.json new file mode 100644 index 0000000..4967455 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.run/1.1.0.schema.json @@ -0,0 +1,348 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime run", + "type": "object", + "required": [ + "id", + "workflow_id", + "workflow_version", + "workflow_revision", + "event_id", + "event_contract", + "admitted_plan", + "status", + "created_at", + "updated_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflow_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "workflow_version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "workflow_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "event_id": { + "type": "string", + "minLength": 1 + }, + "event_contract": { + "$ref": "#/$defs/exactContractReference" + }, + "event_source": { + "$ref": "#/$defs/identity" + }, + "admitted_plan": { + "$ref": "#/$defs/admittedPlan" + }, + "policy_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "policy_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "trigger_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "event_cursor": { + "type": "integer", + "minimum": 1 + }, + "executor": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "idempotency_key": { + "type": "string" + }, + "concurrency_group": { + "type": "string" + }, + "status": { + "enum": [ + "queued", + "running", + "waiting", + "succeeded", + "failed", + "cancelled", + "indeterminate" + ] + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "started_at": { + "type": "string", + "format": "date-time" + }, + "finished_at": { + "type": "string", + "format": "date-time" + }, + "lease": { + "$ref": "#/$defs/lease" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "admittedPlan": { + "type": "object", + "required": [ + "profile_version", + "workflow_revision", + "event", + "steps" + ], + "properties": { + "profile_version": { + "const": "0.2" + }, + "workflow_revision": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "event": { + "type": "object", + "required": [ + "contract", + "source" + ], + "properties": { + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "source": { + "$ref": "#/$defs/identity" + }, + "source_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "steps": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "contract", + "provider", + "provider_declaration_digest", + "handler_id" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "contract": { + "$ref": "#/$defs/exactContractReference" + }, + "provider": { + "$ref": "#/$defs/identity" + }, + "provider_declaration_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "handler_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "lease": { + "type": "object", + "required": [ + "owner", + "token", + "expires_at" + ], + "properties": { + "owner": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "token": { + "type": "string", + "minLength": 1 + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.run/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer.fired/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer.fired/1.0.0.schema.json new file mode 100644 index 0000000..26296a9 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer.fired/1.0.0.schema.json @@ -0,0 +1,178 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase runtime timer-fired event data", + "type": "object", + "required": [ + "timer_id", + "generation", + "scheduled_for", + "fired_at", + "late_by_ms", + "data" + ], + "properties": { + "timer_id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "generation": { + "type": "integer", + "minimum": 1 + }, + "scheduled_for": { + "type": "string", + "format": "date-time" + }, + "fired_at": { + "type": "string", + "format": "date-time" + }, + "late_by_ms": { + "type": "integer", + "minimum": 0 + }, + "data": { + "description": "Opaque application data supplied when the timer was scheduled." + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer.fired/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.0.0.schema.json new file mode 100644 index 0000000..a03fc67 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.0.0.schema.json @@ -0,0 +1,221 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime timer", + "type": "object", + "required": [ + "type", + "id", + "generation", + "status", + "fire_at", + "event", + "created_at", + "updated_at" + ], + "properties": { + "type": { + "const": "runtime_timer" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "generation": { + "type": "integer", + "minimum": 1 + }, + "status": { + "enum": [ + "scheduled", + "firing", + "fired", + "cancelled" + ] + }, + "fire_at": { + "type": "string", + "format": "date-time" + }, + "event": { + "type": "object", + "required": [ + "contract", + "data" + ], + "properties": { + "contract": { + "$ref": "#/$defs/contractRequirement" + }, + "subject": { + "type": "string" + }, + "correlation_id": { + "type": "string" + }, + "causation_id": { + "type": "string" + }, + "data": {} + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "missed_run_policy": { + "const": "fire_once" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "fired_at": { + "type": "string", + "format": "date-time" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.1.0.schema.json new file mode 100644 index 0000000..5a2862b --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.timer/1.1.0.schema.json @@ -0,0 +1,213 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime timer", + "type": "object", + "required": [ + "id", + "generation", + "status", + "fire_at", + "event", + "created_at", + "updated_at" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "generation": { + "type": "integer", + "minimum": 1 + }, + "status": { + "enum": [ + "scheduled", + "firing", + "fired", + "cancelled" + ] + }, + "fire_at": { + "type": "string", + "format": "date-time" + }, + "event": { + "type": "object", + "required": [ + "contract", + "data" + ], + "properties": { + "contract": { + "$ref": "#/$defs/contractRequirement" + }, + "subject": { + "type": "string" + }, + "correlation_id": { + "type": "string" + }, + "causation_id": { + "type": "string" + }, + "data": {} + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "missed_run_policy": { + "const": "fire_once" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "fired_at": { + "type": "string", + "format": "date-time" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.timer/1.1.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.0.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.0.0.schema.json new file mode 100644 index 0000000..60cf082 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.0.0.schema.json @@ -0,0 +1,392 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime workflow", + "type": "object", + "required": [ + "type", + "id", + "version", + "name", + "enabled", + "triggers", + "steps" + ], + "properties": { + "type": { + "const": "runtime_workflow" + }, + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "requires": { + "$ref": "#/$defs/requires" + }, + "vars": { + "type": "object", + "additionalProperties": {} + }, + "triggers": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/trigger" + } + }, + "steps": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/step" + } + }, + "run": { + "$ref": "#/$defs/runPolicy" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "requires": { + "type": "object", + "required": [], + "properties": { + "capabilities": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "trigger": { + "type": "object", + "required": [ + "id", + "event" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "event": { + "$ref": "#/$defs/contractRequirement" + }, + "if": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "debounce": { + "$ref": "#/$defs/duration" + }, + "minimum_interval": { + "$ref": "#/$defs/duration" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "step": { + "type": "object", + "required": [ + "id", + "action" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "name": { + "type": "string" + }, + "action": { + "$ref": "#/$defs/contractRequirement" + }, + "provider": { + "$ref": "#/$defs/providerSelector" + }, + "requires": { + "$ref": "#/$defs/requires" + }, + "if": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "input": { + "type": "object", + "additionalProperties": {} + }, + "for_each": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": {}, + "as": { + "type": "string", + "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "duration": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)(ms|s|m|h|d)$" + }, + "runPolicy": { + "type": "object", + "required": [], + "properties": { + "idempotency": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": {} + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "concurrency": { + "type": "object", + "required": [ + "policy" + ], + "properties": { + "group": {}, + "policy": { + "enum": [ + "skip", + "queue", + "replace", + "allow" + ] + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "limits": { + "type": "object", + "required": [], + "properties": { + "timeout": { + "$ref": "#/$defs/duration" + }, + "max_items": { + "type": "integer", + "minimum": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "on_error": { + "enum": [ + "stop", + "continue" + ] + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.workflow/1.0.0.schema.json" +} diff --git a/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.1.0.schema.json b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.1.0.schema.json new file mode 100644 index 0000000..fa23800 --- /dev/null +++ b/standard-packs/mdbase-runtime/0.2.1/schemas/mdbase.runtime.workflow/1.1.0.schema.json @@ -0,0 +1,384 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mdbase durable runtime workflow", + "type": "object", + "required": [ + "id", + "version", + "name", + "enabled", + "triggers", + "steps" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "requires": { + "$ref": "#/$defs/requires" + }, + "vars": { + "type": "object", + "additionalProperties": {} + }, + "triggers": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/trigger" + } + }, + "steps": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/step" + } + }, + "run": { + "$ref": "#/$defs/runPolicy" + } + }, + "$defs": { + "identifier": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "semanticVersion": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + }, + "dateTime": { + "type": "string", + "format": "date-time" + }, + "contractRequirement": { + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "exactContractReference": { + "type": "object", + "required": [ + "id", + "version", + "digest" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "identity": { + "type": "object", + "required": [ + "application", + "implementation", + "version" + ], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "providerSelector": { + "type": "object", + "required": [], + "properties": { + "application": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "implementation": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "instance_id": { + "type": "string", + "minLength": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false, + "minProperties": 1 + }, + "expression": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "requires": { + "type": "object", + "required": [], + "properties": { + "capabilities": { + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + } + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "trigger": { + "type": "object", + "required": [ + "id", + "event" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "event": { + "$ref": "#/$defs/contractRequirement" + }, + "if": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "debounce": { + "$ref": "#/$defs/duration" + }, + "minimum_interval": { + "$ref": "#/$defs/duration" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "step": { + "type": "object", + "required": [ + "id", + "action" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" + }, + "name": { + "type": "string" + }, + "action": { + "$ref": "#/$defs/contractRequirement" + }, + "provider": { + "$ref": "#/$defs/providerSelector" + }, + "requires": { + "$ref": "#/$defs/requires" + }, + "if": { + "type": "object", + "required": [ + "$expr" + ], + "properties": { + "$expr": { + "type": "string", + "minLength": 1 + } + }, + "additionalProperties": false + }, + "input": { + "type": "object", + "additionalProperties": {} + }, + "for_each": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": {}, + "as": { + "type": "string", + "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "duration": { + "type": "string", + "pattern": "^(0|[1-9][0-9]*)(ms|s|m|h|d)$" + }, + "runPolicy": { + "type": "object", + "required": [], + "properties": { + "idempotency": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": {} + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "concurrency": { + "type": "object", + "required": [ + "policy" + ], + "properties": { + "group": {}, + "policy": { + "enum": [ + "skip", + "queue", + "replace", + "allow" + ] + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "limits": { + "type": "object", + "required": [], + "properties": { + "timeout": { + "$ref": "#/$defs/duration" + }, + "max_items": { + "type": "integer", + "minimum": 1 + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + }, + "on_error": { + "enum": [ + "stop", + "continue" + ] + } + }, + "patternProperties": { + "^x-[A-Za-z0-9._:-]+$": true + }, + "additionalProperties": false + } + }, + "$id": "https://mdbase.dev/schemas/runtime/v0.2/mdbase.runtime.workflow/1.1.0.schema.json" +} diff --git a/tests/v0.3/runtime-contracts/runtime-contracts.yaml b/tests/v0.3/runtime-contracts/runtime-contracts.yaml index 38945de..0c2d214 100644 --- a/tests/v0.3/runtime-contracts/runtime-contracts.yaml +++ b/tests/v0.3/runtime-contracts/runtime-contracts.yaml @@ -12,7 +12,7 @@ groups: covers: [runtime/0.2.standard_runtime_pack] operation: type_pack_resources_validate input: - path: "standard-packs/mdbase-runtime/0.2.0/mdbase-pack.yaml" + path: "standard-packs/mdbase-runtime/0.2.1/mdbase-pack.yaml" expect: valid: true @@ -21,7 +21,7 @@ groups: operation: json_schema_meta_validate input: paths: - - "standard-packs/mdbase-runtime/0.2.0/schemas/**/*.schema.json" + - "standard-packs/mdbase-runtime/0.2.1/schemas/**/*.schema.json" expect: valid: true @@ -32,7 +32,7 @@ groups: input: schema: "schemas/v0.3/type-file.schema.json" paths: - - "standard-packs/mdbase-runtime/0.2.0/_types/*.md" + - "standard-packs/mdbase-runtime/0.2.1/_types/*.md" expect: valid: true @@ -43,7 +43,7 @@ groups: input: schema: "schemas/v0.3/data-contract.schema.json" paths: - - "standard-packs/mdbase-runtime/0.2.0/_contracts/**/*.md" + - "standard-packs/mdbase-runtime/0.2.1/_contracts/**/*.md" expect: valid: true @@ -52,7 +52,7 @@ groups: operation: data_contract_registry_validate input: paths: - - "standard-packs/mdbase-runtime/0.2.0/_contracts/**/*.md" + - "standard-packs/mdbase-runtime/0.2.1/_contracts/**/*.md" expect: valid: true @@ -60,12 +60,12 @@ groups: name: "the canonical workflow type validates its record-contract binding" operation: data_contract_implementation_validate input: - contract: "standard-packs/mdbase-runtime/0.2.0/_contracts/mdbase.runtime.workflow/1.0.0.md" - type: "standard-packs/mdbase-runtime/0.2.0/_types/workflow.md" + contract: "standard-packs/mdbase-runtime/0.2.1/_contracts/mdbase.runtime.workflow/1.1.0.md" + type: "standard-packs/mdbase-runtime/0.2.1/_types/workflow.md" expect: valid: true contract: mdbase.runtime.workflow - version: 1.0.0 + version: 1.1.0 - name: "preflight and admission boundary" tests: diff --git a/tests/v0.3/schema/schema-artifacts.yaml b/tests/v0.3/schema/schema-artifacts.yaml index 82a75a4..cab819c 100644 --- a/tests/v0.3/schema/schema-artifacts.yaml +++ b/tests/v0.3/schema/schema-artifacts.yaml @@ -193,7 +193,7 @@ groups: operation: json_schema_meta_validate input: paths: - - "standard-packs/mdbase-runtime/0.2.0/schemas/**/*.schema.json" + - "standard-packs/mdbase-runtime/0.2.1/schemas/**/*.schema.json" expect: valid: true @@ -202,7 +202,7 @@ groups: input: schema: "schemas/v0.3/type-file.schema.json" paths: - - "standard-packs/mdbase-runtime/0.2.0/_types/*.md" + - "standard-packs/mdbase-runtime/0.2.1/_types/*.md" expect: valid: true @@ -211,7 +211,7 @@ groups: input: schema: "schemas/v0.3/data-contract.schema.json" paths: - - "standard-packs/mdbase-runtime/0.2.0/_contracts/**/*.md" + - "standard-packs/mdbase-runtime/0.2.1/_contracts/**/*.md" expect: valid: true @@ -220,7 +220,7 @@ groups: input: schema: "schemas/v0.3/type-pack.schema.json" paths: - - "standard-packs/mdbase-runtime/0.2.0/mdbase-pack.yaml" + - "standard-packs/mdbase-runtime/0.2.1/mdbase-pack.yaml" expect: valid: true