Files

249 lines
5.9 KiB
JSON
Raw Permalink Normal View History

{
"$defs": {
"ChangedFile": {
"additionalProperties": false,
"properties": {
"content_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Content Sha256",
"type": "string"
},
"path": {
"maxLength": 500,
"minLength": 1,
"title": "Path",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"path",
"content_sha256"
],
"title": "ChangedFile",
"type": "object"
},
"OwnerDecisionReference": {
"additionalProperties": false,
"properties": {
"challenge_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Challenge Id",
"type": "string"
},
"decided_at": {
"format": "date-time",
"title": "Decided At",
"type": "string"
},
"decision": {
"const": "authorize",
"default": "authorize",
"title": "Decision",
"type": "string"
},
"decision_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Decision Digest",
"type": "string"
},
"domains": {
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"maxItems": 100,
"minItems": 1,
"title": "Domains",
"type": "array"
},
"grant_version": {
"minimum": 1,
"title": "Grant Version",
"type": "integer"
},
"owner_principal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Owner Principal Id",
"type": "string"
},
"owner_session_id": {
"pattern": "^[a-f0-9]{64}$",
"title": "Owner Session Id",
"type": "string"
},
"rationale": {
"maxLength": 2000,
"minLength": 1,
"title": "Rationale",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"challenge_id",
"owner_principal_id",
"owner_session_id",
"decision_digest",
"domains",
"grant_version",
"rationale",
"decided_at"
],
"title": "OwnerDecisionReference",
"type": "object"
},
"PolicyBinding": {
"additionalProperties": false,
"properties": {
"policy_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Policy Id",
"type": "string"
},
"policy_version": {
"minimum": 1,
"title": "Policy Version",
"type": "integer"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"project_id",
"policy_id",
"policy_version"
],
"title": "PolicyBinding",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"actor_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Actor Id",
"type": "string"
},
"before_revision": {
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"title": "Before Revision",
"type": "string"
},
"changed_files": {
"items": {
"$ref": "#/$defs/ChangedFile"
},
"maxItems": 200,
"minItems": 1,
"title": "Changed Files",
"type": "array"
},
"credential_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Credential Id",
"type": "string"
},
"decided_at": {
"format": "date-time",
"title": "Decided At",
"type": "string"
},
"owner_decisions": {
"default": [],
"items": {
"$ref": "#/$defs/OwnerDecisionReference"
},
"maxItems": 100,
"title": "Owner Decisions",
"type": "array"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"policy_bindings": {
"items": {
"$ref": "#/$defs/PolicyBinding"
},
"title": "Policy Bindings",
"type": "array"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"proposal_revision": {
"minimum": 1,
"title": "Proposal Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"proposal_id",
"proposal_revision",
"payload_digest",
"before_revision",
"changed_files",
"actor_id",
"credential_id",
"policy_bindings",
"decided_at"
],
"title": "AcceptanceManifest",
"type": "object"
}