PSA/ee/docs/schemas/workflow-bundle.v1.schema.json
Hermes 284313f908
Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Initial import of AlgaPSA codebase from PSA server
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz

Source: /opt/alga-psa on psa.joliet.tech
2026-06-22 16:12:17 -05:00

129 lines
4.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://alga.example.com/schemas/workflow-bundle.v1.schema.json",
"title": "Alga Workflow Bundle v1",
"type": "object",
"additionalProperties": false,
"required": ["format", "formatVersion", "exportedAt", "workflows"],
"properties": {
"format": { "type": "string", "const": "alga-psa.workflow-bundle" },
"formatVersion": { "type": "integer", "const": 1 },
"exportedAt": { "type": "string", "format": "date-time" },
"workflows": {
"type": "array",
"items": { "$ref": "#/definitions/workflow" },
"minItems": 1
}
},
"definitions": {
"workflow": {
"type": "object",
"additionalProperties": false,
"required": ["key", "metadata", "dependencies", "draft", "publishedVersions"],
"properties": {
"key": {
"type": "string",
"minLength": 1,
"pattern": "^[a-z0-9][a-z0-9._-]*$"
},
"metadata": { "$ref": "#/definitions/metadata" },
"dependencies": { "$ref": "#/definitions/dependencies" },
"draft": { "$ref": "#/definitions/draft" },
"publishedVersions": {
"type": "array",
"items": { "$ref": "#/definitions/publishedVersion" }
}
}
},
"dependencies": {
"type": "object",
"additionalProperties": false,
"required": ["actions", "nodeTypes", "schemaRefs"],
"properties": {
"actions": {
"type": "array",
"items": { "$ref": "#/definitions/actionRef" },
"uniqueItems": true,
"default": []
},
"nodeTypes": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true,
"default": []
},
"schemaRefs": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true,
"default": []
}
}
},
"actionRef": {
"type": "object",
"additionalProperties": false,
"required": ["actionId", "version"],
"properties": {
"actionId": { "type": "string", "minLength": 1 },
"version": { "type": "integer", "minimum": 1 }
}
},
"metadata": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"description",
"payloadSchemaRef",
"payloadSchemaMode",
"pinnedPayloadSchemaRef",
"trigger",
"isSystem",
"isVisible",
"isPaused",
"concurrencyLimit",
"autoPauseOnFailure",
"failureRateThreshold",
"failureRateMinRuns",
"retentionPolicyOverride"
],
"properties": {
"name": { "type": "string", "minLength": 1 },
"description": { "type": ["string", "null"] },
"payloadSchemaRef": { "type": "string", "minLength": 1 },
"payloadSchemaMode": { "type": ["string", "null"] },
"pinnedPayloadSchemaRef": { "type": ["string", "null"] },
"trigger": { "type": ["object", "null"], "additionalProperties": true },
"isSystem": { "type": "boolean" },
"isVisible": { "type": "boolean" },
"isPaused": { "type": "boolean" },
"concurrencyLimit": { "type": ["integer", "null"] },
"autoPauseOnFailure": { "type": "boolean" },
"failureRateThreshold": { "type": ["number", "string", "null"] },
"failureRateMinRuns": { "type": ["integer", "null"] },
"retentionPolicyOverride": { "type": ["object", "null"], "additionalProperties": true }
}
},
"draft": {
"type": "object",
"additionalProperties": false,
"required": ["draftVersion", "definition"],
"properties": {
"draftVersion": { "type": "integer" },
"definition": { "type": "object", "additionalProperties": true }
}
},
"publishedVersion": {
"type": "object",
"additionalProperties": false,
"required": ["version", "definition", "payloadSchemaJson"],
"properties": {
"version": { "type": "integer" },
"definition": { "type": "object", "additionalProperties": true },
"payloadSchemaJson": { "type": ["object", "null"], "additionalProperties": true }
}
}
}
}