2026-10-14 19:21:35 +08:00
|
|
|
{
|
|
|
|
|
"components": {
|
|
|
|
|
"schemas": {
|
|
|
|
|
"AcceptanceManifest": {
|
|
|
|
|
"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": "#/components/schemas/AcceptanceManifest__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": "#/components/schemas/AcceptanceManifest__OwnerDecisionReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Owner Decisions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"policy_bindings": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/AcceptanceManifest__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"
|
|
|
|
|
},
|
|
|
|
|
"AcceptanceManifest__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"
|
|
|
|
|
},
|
|
|
|
|
"AcceptanceManifest__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"
|
|
|
|
|
},
|
|
|
|
|
"AcceptanceManifest__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"
|
|
|
|
|
},
|
|
|
|
|
"AccountCreateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"password": {
|
|
|
|
|
"maxLength": 1024,
|
|
|
|
|
"minLength": 12,
|
|
|
|
|
"title": "Password",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"role": {
|
|
|
|
|
"default": "editor",
|
|
|
|
|
"enum": [
|
|
|
|
|
"viewer",
|
|
|
|
|
"editor",
|
|
|
|
|
"admin"
|
|
|
|
|
],
|
|
|
|
|
"title": "Role",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
|
|
|
|
|
"title": "Username",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"username",
|
|
|
|
|
"password"
|
|
|
|
|
],
|
|
|
|
|
"title": "AccountCreateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"AccountSummary": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"active": {
|
|
|
|
|
"title": "Active",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"principal_id": {
|
|
|
|
|
"title": "Principal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"role": {
|
|
|
|
|
"title": "Role",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"title": "Username",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"username",
|
|
|
|
|
"principal_id",
|
|
|
|
|
"role",
|
|
|
|
|
"project_ids",
|
|
|
|
|
"active"
|
|
|
|
|
],
|
|
|
|
|
"title": "AccountSummary",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"AccountUpdateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"role": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"viewer",
|
|
|
|
|
"editor",
|
|
|
|
|
"admin"
|
|
|
|
|
],
|
|
|
|
|
"title": "Role",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"role"
|
|
|
|
|
],
|
|
|
|
|
"title": "AccountUpdateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"AdminEvent": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"action": {
|
|
|
|
|
"title": "Action",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"actor": {
|
|
|
|
|
"title": "Actor",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"credential_id": {
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"event_id": {
|
|
|
|
|
"title": "Event Id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"occurred_at": {
|
|
|
|
|
"title": "Occurred At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"event_id",
|
|
|
|
|
"occurred_at",
|
|
|
|
|
"actor",
|
|
|
|
|
"action",
|
|
|
|
|
"credential_id"
|
|
|
|
|
],
|
|
|
|
|
"title": "AdminEvent",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"AgentCreateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"name": {
|
|
|
|
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
|
|
|
"title": "Name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"name",
|
|
|
|
|
"project_ids"
|
|
|
|
|
],
|
|
|
|
|
"title": "AgentCreateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"AutoAcceptPolicy": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"automatic_edge_types": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"solves",
|
|
|
|
|
"addresses",
|
|
|
|
|
"causes",
|
|
|
|
|
"supports",
|
|
|
|
|
"contradicts",
|
|
|
|
|
"instance_of",
|
|
|
|
|
"part_of",
|
|
|
|
|
"precedes",
|
|
|
|
|
"supersedes",
|
|
|
|
|
"compared_with",
|
|
|
|
|
"derived_from",
|
|
|
|
|
"applies_to"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Automatic Edge Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"automatic_node_types": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"finding",
|
|
|
|
|
"problem",
|
|
|
|
|
"technique",
|
|
|
|
|
"case",
|
|
|
|
|
"entity",
|
|
|
|
|
"event",
|
|
|
|
|
"concept",
|
|
|
|
|
"datapoint",
|
|
|
|
|
"synthesis"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Automatic Node Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"automatic_source_registration": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "Automatic Source Registration",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"policy_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Policy Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"policy_version": {
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"require_owner_decision_for": {
|
|
|
|
|
"default": [
|
|
|
|
|
"delete",
|
|
|
|
|
"merge",
|
|
|
|
|
"promote",
|
|
|
|
|
"intent",
|
|
|
|
|
"policy"
|
|
|
|
|
],
|
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"delete",
|
|
|
|
|
"merge",
|
|
|
|
|
"promote",
|
|
|
|
|
"intent",
|
|
|
|
|
"policy"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Require Owner Decision For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"require_supported_assessment": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Require Supported Assessment",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"policy_id",
|
|
|
|
|
"policy_version",
|
|
|
|
|
"project_id"
|
|
|
|
|
],
|
|
|
|
|
"title": "AutoAcceptPolicy",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"BudgetProfile": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"encoding": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Encoding",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"tokenizer": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Tokenizer",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"tokenizer",
|
|
|
|
|
"encoding"
|
|
|
|
|
],
|
|
|
|
|
"title": "BudgetProfile",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"Confidence": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "Confidence",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"CredentialCreateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"credential_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"principal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Principal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"role": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"viewer",
|
|
|
|
|
"editor",
|
|
|
|
|
"agent",
|
|
|
|
|
"admin"
|
|
|
|
|
],
|
|
|
|
|
"title": "Role",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"credential_id",
|
|
|
|
|
"principal_id",
|
|
|
|
|
"role"
|
|
|
|
|
],
|
|
|
|
|
"title": "CredentialCreateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"CredentialSummary": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"credential_id": {
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"owner_principal_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Owner Principal Id"
|
|
|
|
|
},
|
|
|
|
|
"principal_id": {
|
|
|
|
|
"title": "Principal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"revoked": {
|
|
|
|
|
"title": "Revoked",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"roles": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Roles",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"credential_id",
|
|
|
|
|
"principal_id",
|
|
|
|
|
"roles",
|
|
|
|
|
"project_ids",
|
|
|
|
|
"revoked"
|
|
|
|
|
],
|
|
|
|
|
"title": "CredentialSummary",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"CredentialUpdateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"role": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"viewer",
|
|
|
|
|
"editor",
|
|
|
|
|
"agent",
|
|
|
|
|
"admin"
|
|
|
|
|
],
|
|
|
|
|
"title": "Role",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"role"
|
|
|
|
|
],
|
|
|
|
|
"title": "CredentialUpdateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"CurrentUser": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"password_account": {
|
|
|
|
|
"title": "Password Account",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"principal_id": {
|
|
|
|
|
"title": "Principal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"project_ids": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Project Ids",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"roles": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Roles",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"principal_id",
|
|
|
|
|
"roles",
|
|
|
|
|
"project_ids",
|
|
|
|
|
"password_account"
|
|
|
|
|
],
|
|
|
|
|
"title": "CurrentUser",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"DomainError": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"$ref": "#/components/schemas/DomainError__ErrorCode"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/DomainError__Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"request_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Request Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"retryable": {
|
|
|
|
|
"title": "Retryable",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message",
|
|
|
|
|
"retryable",
|
|
|
|
|
"request_id"
|
|
|
|
|
],
|
|
|
|
|
"title": "DomainError",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"DomainError__ErrorCode": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"SCOPE_REQUIRED",
|
|
|
|
|
"OUT_OF_SCOPE",
|
|
|
|
|
"UNAUTHORIZED",
|
|
|
|
|
"OWNER_DECISION_REQUIRED",
|
|
|
|
|
"POLICY_MISSING",
|
|
|
|
|
"EVIDENCE_MISMATCH",
|
|
|
|
|
"SUPPORT_UNAVAILABLE",
|
|
|
|
|
"BASE_CONFLICT",
|
|
|
|
|
"IDEMPOTENCY_CONFLICT",
|
|
|
|
|
"BUDGET_TOO_SMALL",
|
|
|
|
|
"UPLOAD_EXPIRED",
|
|
|
|
|
"BUSY",
|
|
|
|
|
"RECOVERY_REQUIRED"
|
|
|
|
|
],
|
|
|
|
|
"title": "ErrorCode",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"DomainError__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"EvidenceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assertion_path": {
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Assertion Path",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/Locator"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"quote": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Quote",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"assertion_path",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"quote",
|
|
|
|
|
"locator",
|
|
|
|
|
"normalization_profile"
|
|
|
|
|
],
|
|
|
|
|
"title": "EvidenceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ExtractionRecord": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"blocks": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ExtractionRecord__ExtractionBlock"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100000,
|
|
|
|
|
"title": "Blocks",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parser_config_sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Parser Config Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parser_name": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Parser Name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"parser_version": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Parser Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"complete",
|
|
|
|
|
"partial",
|
|
|
|
|
"unavailable"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"warnings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Warnings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"parser_name",
|
|
|
|
|
"parser_version",
|
|
|
|
|
"parser_config_sha256",
|
|
|
|
|
"normalization_profile",
|
|
|
|
|
"status",
|
|
|
|
|
"blocks"
|
|
|
|
|
],
|
|
|
|
|
"title": "ExtractionRecord",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ExtractionRecord__ExtractionBlock": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"normalization_map": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxItems": 2,
|
|
|
|
|
"minItems": 2,
|
|
|
|
|
"prefixItems": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100000,
|
|
|
|
|
"title": "Normalization Map",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"normalized_text": {
|
|
|
|
|
"maxLength": 100000,
|
|
|
|
|
"title": "Normalized Text",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ordinal": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Ordinal",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"original_text": {
|
|
|
|
|
"maxLength": 100000,
|
|
|
|
|
"title": "Original Text",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"block_id",
|
|
|
|
|
"ordinal",
|
|
|
|
|
"original_text",
|
|
|
|
|
"normalized_text",
|
|
|
|
|
"normalization_map"
|
|
|
|
|
],
|
|
|
|
|
"title": "ExtractionBlock",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"HTTPValidationError": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"detail": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ValidationError"
|
|
|
|
|
},
|
|
|
|
|
"title": "Detail",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"title": "HTTPValidationError",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
2026-10-14 20:35:48 +08:00
|
|
|
"IngestReviewDecision": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"decision": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"include",
|
|
|
|
|
"exclude",
|
|
|
|
|
"defer"
|
|
|
|
|
],
|
|
|
|
|
"title": "Decision",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"decision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Decision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"guidance_rule": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Guidance Rule"
|
|
|
|
|
},
|
|
|
|
|
"rationale": {
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Rationale",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"review_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Review Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"save_as_guidance": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "Save As Guidance",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"decision_id",
|
|
|
|
|
"review_id",
|
|
|
|
|
"decision",
|
|
|
|
|
"rationale"
|
|
|
|
|
],
|
|
|
|
|
"title": "IngestReviewDecision",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"IngestReviewItem": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"created_at": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Created At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"excerpt": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Excerpt",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"jev_lens": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
"technical",
|
|
|
|
|
"conceptual",
|
|
|
|
|
"cultural-historical",
|
|
|
|
|
"financial-market"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Jev Lens"
|
|
|
|
|
},
|
|
|
|
|
"jev_lens_confidence": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maximum": 1.0,
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Jev Lens Confidence"
|
|
|
|
|
},
|
|
|
|
|
"jev_model": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Jev Model"
|
|
|
|
|
},
|
|
|
|
|
"jev_relation_probability": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maximum": 1.0,
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Jev Relation Probability"
|
|
|
|
|
},
|
|
|
|
|
"lens": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"technical",
|
|
|
|
|
"conceptual",
|
|
|
|
|
"cultural-historical",
|
|
|
|
|
"financial-market"
|
|
|
|
|
],
|
|
|
|
|
"title": "Lens",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/Locator"
|
|
|
|
|
},
|
|
|
|
|
"project_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"relevance": {
|
|
|
|
|
"default": "borderline",
|
|
|
|
|
"enum": [
|
|
|
|
|
"borderline",
|
|
|
|
|
"low"
|
|
|
|
|
],
|
|
|
|
|
"title": "Relevance",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"relevance_rationale": {
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Relevance Rationale",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"review_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Review Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"default": "needs-user-review",
|
|
|
|
|
"enum": [
|
|
|
|
|
"needs-user-review",
|
|
|
|
|
"included",
|
|
|
|
|
"excluded",
|
|
|
|
|
"deferred"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"submitted_by": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Submitted By",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"summary": {
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Summary",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"review_id",
|
|
|
|
|
"project_id",
|
|
|
|
|
"run_id",
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"locator",
|
|
|
|
|
"excerpt",
|
|
|
|
|
"lens",
|
|
|
|
|
"summary",
|
|
|
|
|
"relevance_rationale",
|
|
|
|
|
"submitted_by",
|
|
|
|
|
"created_at"
|
|
|
|
|
],
|
|
|
|
|
"title": "IngestReviewItem",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
2026-10-14 19:21:35 +08:00
|
|
|
"IssuedCredential": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"credential_id": {
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"token": {
|
|
|
|
|
"title": "Token",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"credential_id",
|
|
|
|
|
"token"
|
|
|
|
|
],
|
|
|
|
|
"title": "IssuedCredential",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"agent_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Agent Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"aliases": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Aliases",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"as_of": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "As Of"
|
|
|
|
|
},
|
|
|
|
|
"assumptions": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Assumptions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"audience": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Audience",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"claim_support": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"pending",
|
|
|
|
|
"supported",
|
|
|
|
|
"unsupported"
|
|
|
|
|
],
|
|
|
|
|
"title": "Claim Support",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"claims": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Claims",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"confidence": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Confidence"
|
|
|
|
|
},
|
|
|
|
|
"created": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Created",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"demographic": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Demographic"
|
|
|
|
|
},
|
|
|
|
|
"domain": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Domain",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"lens_fit": {
|
|
|
|
|
"maxProperties": 50,
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__LensFit"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"propertyNames": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1
|
|
|
|
|
},
|
|
|
|
|
"title": "Lens Fit",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"lifecycle": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Lifecycle"
|
|
|
|
|
},
|
|
|
|
|
"limitations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Limitations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"merged_from": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Merged From",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"model_id": {
|
|
|
|
|
"maxLength": 200,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Model Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"node_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"node_type": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__NodeType"
|
|
|
|
|
},
|
|
|
|
|
"project_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"reporting_year": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maximum": 9999,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Reporting Year"
|
|
|
|
|
},
|
|
|
|
|
"review_state": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__ReviewState"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"sample_size": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Sample Size"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"stale_after": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Stale After"
|
|
|
|
|
},
|
|
|
|
|
"summary": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Summary",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"superseded_by": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Superseded By",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"supersedes": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Supersedes",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Tags",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"maxLength": 300,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Title",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"unit": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Unit"
|
|
|
|
|
},
|
|
|
|
|
"updated": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Updated",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"use_for": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Use For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"value": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Value"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"node_id",
|
|
|
|
|
"project_id",
|
|
|
|
|
"node_type",
|
|
|
|
|
"title",
|
|
|
|
|
"summary",
|
|
|
|
|
"created",
|
|
|
|
|
"updated",
|
|
|
|
|
"review_state",
|
|
|
|
|
"lifecycle",
|
|
|
|
|
"confidence",
|
|
|
|
|
"claim_support",
|
|
|
|
|
"run_id",
|
|
|
|
|
"agent_id",
|
|
|
|
|
"model_id",
|
|
|
|
|
"claims"
|
|
|
|
|
],
|
|
|
|
|
"title": "KnowledgeNode",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__Claim": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assessment": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__SupportAssessment"
|
|
|
|
|
},
|
|
|
|
|
"claim_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Claim Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__EvidenceReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Evidence",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"evidence_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"measured",
|
|
|
|
|
"reported",
|
|
|
|
|
"opinion",
|
|
|
|
|
"vendor_marketing"
|
|
|
|
|
],
|
|
|
|
|
"title": "Evidence Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"text": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Text",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"claim_id",
|
|
|
|
|
"text",
|
|
|
|
|
"evidence_type",
|
|
|
|
|
"evidence",
|
|
|
|
|
"assessment"
|
|
|
|
|
],
|
|
|
|
|
"title": "Claim",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__Confidence": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "Confidence",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__EvidenceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assertion_path": {
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Assertion Path",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__Locator"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"quote": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Quote",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"assertion_path",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"quote",
|
|
|
|
|
"locator",
|
|
|
|
|
"normalization_profile"
|
|
|
|
|
],
|
|
|
|
|
"title": "EvidenceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__LensFit": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"horizon": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"H1",
|
|
|
|
|
"H2",
|
|
|
|
|
"H3"
|
|
|
|
|
],
|
|
|
|
|
"title": "Horizon",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"key_question": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Key Question"
|
|
|
|
|
},
|
|
|
|
|
"reason": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Reason",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"score": {
|
|
|
|
|
"maximum": 1,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Score",
|
|
|
|
|
"type": "number"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"score",
|
|
|
|
|
"horizon",
|
|
|
|
|
"reason"
|
|
|
|
|
],
|
|
|
|
|
"title": "LensFit",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__Lifecycle": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"superseded"
|
|
|
|
|
],
|
|
|
|
|
"title": "Lifecycle",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__Locator": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
|
|
|
|
"exclusiveMinimum": 0,
|
|
|
|
|
"title": "End",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"text_span",
|
|
|
|
|
"pdf_page_span",
|
|
|
|
|
"transcript_timestamp_span"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Start",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"block_id",
|
|
|
|
|
"start",
|
|
|
|
|
"end"
|
|
|
|
|
],
|
|
|
|
|
"title": "Locator",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__NodeType": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"finding",
|
|
|
|
|
"problem",
|
|
|
|
|
"technique",
|
|
|
|
|
"case",
|
|
|
|
|
"entity",
|
|
|
|
|
"event",
|
|
|
|
|
"concept",
|
|
|
|
|
"datapoint",
|
|
|
|
|
"synthesis"
|
|
|
|
|
],
|
|
|
|
|
"title": "NodeType",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__ReviewState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"draft",
|
|
|
|
|
"reviewed"
|
|
|
|
|
],
|
|
|
|
|
"title": "ReviewState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__SupportAssessment": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assessment_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Assessment Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assessor_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Assessor Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence_digests": {
|
|
|
|
|
"items": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Evidence Digests",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"method": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Method",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"rationale": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Rationale",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"$ref": "#/components/schemas/KnowledgeNode__SupportStatus"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"assessment_id",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"evidence_digests",
|
|
|
|
|
"assessor_id",
|
|
|
|
|
"run_id",
|
|
|
|
|
"method",
|
|
|
|
|
"status",
|
|
|
|
|
"rationale"
|
|
|
|
|
],
|
|
|
|
|
"title": "SupportAssessment",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"KnowledgeNode__SupportStatus": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"supported",
|
|
|
|
|
"unsupported",
|
|
|
|
|
"unavailable"
|
|
|
|
|
],
|
|
|
|
|
"title": "SupportStatus",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"Locator": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
|
|
|
|
"exclusiveMinimum": 0.0,
|
|
|
|
|
"title": "End",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"text_span",
|
|
|
|
|
"pdf_page_span",
|
|
|
|
|
"transcript_timestamp_span"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"title": "Start",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"block_id",
|
|
|
|
|
"start",
|
|
|
|
|
"end"
|
|
|
|
|
],
|
|
|
|
|
"title": "Locator",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"LoginBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"password": {
|
|
|
|
|
"maxLength": 1024,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Password",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
|
|
|
|
|
"title": "Username",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"username",
|
|
|
|
|
"password"
|
|
|
|
|
],
|
|
|
|
|
"title": "LoginBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"NeighborRequest": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"budget_tokens": {
|
|
|
|
|
"maximum": 50000,
|
|
|
|
|
"minimum": 256,
|
|
|
|
|
"title": "Budget Tokens",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 512,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Cursor"
|
|
|
|
|
},
|
|
|
|
|
"edge_types": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"solves",
|
|
|
|
|
"addresses",
|
|
|
|
|
"causes",
|
|
|
|
|
"supports",
|
|
|
|
|
"contradicts",
|
|
|
|
|
"instance_of",
|
|
|
|
|
"part_of",
|
|
|
|
|
"precedes",
|
|
|
|
|
"supersedes",
|
|
|
|
|
"compared_with",
|
|
|
|
|
"derived_from",
|
|
|
|
|
"applies_to"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 12,
|
|
|
|
|
"title": "Edge Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"maximum": 50,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"node_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/NeighborRequest__Scope"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"node_id",
|
|
|
|
|
"scope",
|
|
|
|
|
"budget_tokens"
|
|
|
|
|
],
|
|
|
|
|
"title": "NeighborRequest",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"NeighborRequestBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"budget_tokens": {
|
|
|
|
|
"maximum": 50000.0,
|
|
|
|
|
"minimum": 256.0,
|
|
|
|
|
"title": "Budget Tokens",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 512,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Cursor"
|
|
|
|
|
},
|
|
|
|
|
"edge_types": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 12,
|
|
|
|
|
"title": "Edge Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"maximum": 50.0,
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"node_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchScopeBody"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"node_id",
|
|
|
|
|
"scope",
|
|
|
|
|
"budget_tokens"
|
|
|
|
|
],
|
|
|
|
|
"title": "NeighborRequestBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"NeighborRequest__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"OwnerSessionRequestBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Short-lived owner authentication inputs; never accepted as a normal session.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"challenge_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Challenge Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"maxLength": 1024,
|
|
|
|
|
"minLength": 12,
|
|
|
|
|
"title": "Password",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"principal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Principal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"totp_code": {
|
|
|
|
|
"pattern": "^\\d{6}$",
|
|
|
|
|
"title": "Totp Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"principal_id",
|
|
|
|
|
"password",
|
|
|
|
|
"totp_code",
|
|
|
|
|
"challenge_id"
|
|
|
|
|
],
|
|
|
|
|
"title": "OwnerSessionRequestBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"PasswordChangeBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"current_password": {
|
|
|
|
|
"maxLength": 1024,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Current Password",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"new_password": {
|
|
|
|
|
"maxLength": 1024,
|
|
|
|
|
"minLength": 12,
|
|
|
|
|
"title": "New Password",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"current_password",
|
|
|
|
|
"new_password"
|
|
|
|
|
],
|
|
|
|
|
"title": "PasswordChangeBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProjectContentUpdateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Editable human-authored project intent fields.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"title": "Description",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"key_questions": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 30,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Key Questions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"north_star": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "North Star",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"description",
|
|
|
|
|
"north_star",
|
|
|
|
|
"key_questions"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProjectContentUpdateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProjectCreateBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "An administrator supplies the human-owned project lens and its initial policy.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"policy": {
|
|
|
|
|
"$ref": "#/components/schemas/AutoAcceptPolicy"
|
|
|
|
|
},
|
|
|
|
|
"project": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectRecord"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"project",
|
|
|
|
|
"policy"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProjectCreateBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProjectRecord": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"autonomy_policy_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Autonomy Policy Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"default_includes": {
|
|
|
|
|
"default": [
|
|
|
|
|
"shared"
|
|
|
|
|
],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Default Includes",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"default": "",
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"title": "Description",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"key_questions": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 30,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Key Questions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"north_star": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "North Star",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"owners": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Owners",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"project_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2026-10-14 20:35:48 +08:00
|
|
|
"research_lenses": {
|
|
|
|
|
"default": [
|
|
|
|
|
"technical",
|
|
|
|
|
"conceptual",
|
|
|
|
|
"cultural-historical",
|
|
|
|
|
"financial-market"
|
|
|
|
|
],
|
|
|
|
|
"items": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"technical",
|
|
|
|
|
"conceptual",
|
|
|
|
|
"cultural-historical",
|
|
|
|
|
"financial-market"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Research Lenses",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
2026-10-14 19:21:35 +08:00
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectStatus"
|
|
|
|
|
},
|
|
|
|
|
"taxonomy_extensions": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"maxProperties": 100,
|
|
|
|
|
"title": "Taxonomy Extensions",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"maxLength": 200,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Title",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"watch_list": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Watch List",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"project_id",
|
|
|
|
|
"title",
|
|
|
|
|
"status",
|
|
|
|
|
"north_star",
|
|
|
|
|
"key_questions",
|
|
|
|
|
"autonomy_policy_id"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProjectRecord",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProjectRecord__ProjectStatus": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"paused",
|
|
|
|
|
"archived"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProjectStatus",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProjectStatus": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"paused",
|
|
|
|
|
"archived"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProjectStatus",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalReceipt": {
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"commit_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Commit Id"
|
|
|
|
|
},
|
|
|
|
|
"decided_at": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Decided At"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalReceipt__Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"outcome": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"accepted",
|
|
|
|
|
"held",
|
|
|
|
|
"rejected",
|
|
|
|
|
"validation-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Outcome",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalReceipt__ProposalState"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"payload_digest",
|
|
|
|
|
"state",
|
|
|
|
|
"outcome"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalReceipt",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalReceipt__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalReceipt__ProposalState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"validating",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"base_commit": {
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"title": "Base Commit",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"initiating_project_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Initiating Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"operations": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__ProposalOperation"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Operations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposer_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposer Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Scope"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"initiating_project_id",
|
|
|
|
|
"scope",
|
|
|
|
|
"base_commit",
|
|
|
|
|
"payload_digest",
|
|
|
|
|
"proposer_id",
|
|
|
|
|
"run_id",
|
|
|
|
|
"operations"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalRevision",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__Claim": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assessment": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__SupportAssessment"
|
|
|
|
|
},
|
|
|
|
|
"claim_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Claim Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__EvidenceReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Evidence",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"evidence_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"measured",
|
|
|
|
|
"reported",
|
|
|
|
|
"opinion",
|
|
|
|
|
"vendor_marketing"
|
|
|
|
|
],
|
|
|
|
|
"title": "Evidence Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"text": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Text",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"claim_id",
|
|
|
|
|
"text",
|
|
|
|
|
"evidence_type",
|
|
|
|
|
"evidence",
|
|
|
|
|
"assessment"
|
|
|
|
|
],
|
|
|
|
|
"title": "Claim",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__Confidence": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "Confidence",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__EdgeEndpoint": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"node",
|
|
|
|
|
"source",
|
|
|
|
|
"project"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"id"
|
|
|
|
|
],
|
|
|
|
|
"title": "EdgeEndpoint",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__EvidenceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assertion_path": {
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Assertion Path",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Locator"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"quote": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Quote",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"assertion_path",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"quote",
|
|
|
|
|
"locator",
|
|
|
|
|
"normalization_profile"
|
|
|
|
|
],
|
|
|
|
|
"title": "EvidenceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__KnowledgeNode": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"agent_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Agent Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"aliases": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Aliases",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"as_of": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "As Of"
|
|
|
|
|
},
|
|
|
|
|
"assumptions": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Assumptions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"audience": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Audience",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"claim_support": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"pending",
|
|
|
|
|
"supported",
|
|
|
|
|
"unsupported"
|
|
|
|
|
],
|
|
|
|
|
"title": "Claim Support",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"claims": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Claims",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"confidence": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Confidence"
|
|
|
|
|
},
|
|
|
|
|
"created": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Created",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"demographic": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Demographic"
|
|
|
|
|
},
|
|
|
|
|
"domain": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Domain",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"lens_fit": {
|
|
|
|
|
"maxProperties": 50,
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__LensFit"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"propertyNames": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1
|
|
|
|
|
},
|
|
|
|
|
"title": "Lens Fit",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"lifecycle": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Lifecycle"
|
|
|
|
|
},
|
|
|
|
|
"limitations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__Claim"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Limitations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"merged_from": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Merged From",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"model_id": {
|
|
|
|
|
"maxLength": 200,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Model Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"node_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"node_type": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__NodeType"
|
|
|
|
|
},
|
|
|
|
|
"project_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"reporting_year": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maximum": 9999,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Reporting Year"
|
|
|
|
|
},
|
|
|
|
|
"review_state": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__ReviewState"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"sample_size": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Sample Size"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"stale_after": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Stale After"
|
|
|
|
|
},
|
|
|
|
|
"summary": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Summary",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"superseded_by": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Superseded By",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"supersedes": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Supersedes",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"title": "Tags",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"maxLength": 300,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Title",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"unit": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Unit"
|
|
|
|
|
},
|
|
|
|
|
"updated": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Updated",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"use_for": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Use For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"value": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Value"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"node_id",
|
|
|
|
|
"project_id",
|
|
|
|
|
"node_type",
|
|
|
|
|
"title",
|
|
|
|
|
"summary",
|
|
|
|
|
"created",
|
|
|
|
|
"updated",
|
|
|
|
|
"review_state",
|
|
|
|
|
"lifecycle",
|
|
|
|
|
"confidence",
|
|
|
|
|
"claim_support",
|
|
|
|
|
"run_id",
|
|
|
|
|
"agent_id",
|
|
|
|
|
"model_id",
|
|
|
|
|
"claims"
|
|
|
|
|
],
|
|
|
|
|
"title": "KnowledgeNode",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__LensFit": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"horizon": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"H1",
|
|
|
|
|
"H2",
|
|
|
|
|
"H3"
|
|
|
|
|
],
|
|
|
|
|
"title": "Horizon",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"key_question": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Key Question"
|
|
|
|
|
},
|
|
|
|
|
"reason": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Reason",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"score": {
|
|
|
|
|
"maximum": 1,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Score",
|
|
|
|
|
"type": "number"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"score",
|
|
|
|
|
"horizon",
|
|
|
|
|
"reason"
|
|
|
|
|
],
|
|
|
|
|
"title": "LensFit",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__Lifecycle": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"superseded"
|
|
|
|
|
],
|
|
|
|
|
"title": "Lifecycle",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__Locator": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
|
|
|
|
"exclusiveMinimum": 0,
|
|
|
|
|
"title": "End",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"text_span",
|
|
|
|
|
"pdf_page_span",
|
|
|
|
|
"transcript_timestamp_span"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Start",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"block_id",
|
|
|
|
|
"start",
|
|
|
|
|
"end"
|
|
|
|
|
],
|
|
|
|
|
"title": "Locator",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__NodeType": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"finding",
|
|
|
|
|
"problem",
|
|
|
|
|
"technique",
|
|
|
|
|
"case",
|
|
|
|
|
"entity",
|
|
|
|
|
"event",
|
|
|
|
|
"concept",
|
|
|
|
|
"datapoint",
|
|
|
|
|
"synthesis"
|
|
|
|
|
],
|
|
|
|
|
"title": "NodeType",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__ProposalOperation": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"edge": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__TypedEdge"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"node": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__KnowledgeNode"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"operation": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"register_source",
|
|
|
|
|
"upsert_node",
|
|
|
|
|
"add_edge",
|
|
|
|
|
"flag_stale"
|
|
|
|
|
],
|
|
|
|
|
"title": "Operation",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__SourceRevisionRecord"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"target_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Target Id"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"operation"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalOperation",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__ReliabilityGrade": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "ReliabilityGrade",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__ReviewState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"draft",
|
|
|
|
|
"reviewed"
|
|
|
|
|
],
|
|
|
|
|
"title": "ReviewState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__SourceRevisionRecord": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"archive_status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"archived",
|
|
|
|
|
"reference-only",
|
|
|
|
|
"capture-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Archive Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"artifact_sha256": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Artifact Sha256"
|
|
|
|
|
},
|
|
|
|
|
"authors": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Authors",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"byte_length": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Byte Length",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"capture_method": {
|
|
|
|
|
"default": "unspecified",
|
|
|
|
|
"enum": [
|
|
|
|
|
"unspecified",
|
|
|
|
|
"local-file",
|
|
|
|
|
"url-fetch",
|
|
|
|
|
"pasted-text",
|
|
|
|
|
"notebooklm-export",
|
|
|
|
|
"transcript"
|
|
|
|
|
],
|
|
|
|
|
"title": "Capture Method",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"captured_at": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Captured At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"final_url": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Final Url"
|
|
|
|
|
},
|
|
|
|
|
"ingested_for": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Ingested For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"license": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "License",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"media_type": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Media Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"original_url": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Original Url"
|
|
|
|
|
},
|
|
|
|
|
"publication_date": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Publication Date"
|
|
|
|
|
},
|
|
|
|
|
"publisher": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 300,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Publisher"
|
|
|
|
|
},
|
|
|
|
|
"reliability_grade": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__ReliabilityGrade"
|
|
|
|
|
},
|
|
|
|
|
"revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"source_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"paper",
|
|
|
|
|
"review",
|
|
|
|
|
"press",
|
|
|
|
|
"vendor",
|
|
|
|
|
"internal",
|
|
|
|
|
"talk",
|
|
|
|
|
"export",
|
|
|
|
|
"other"
|
|
|
|
|
],
|
|
|
|
|
"title": "Source Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Title",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_id",
|
|
|
|
|
"revision_id",
|
|
|
|
|
"media_type",
|
|
|
|
|
"byte_length",
|
|
|
|
|
"captured_at",
|
|
|
|
|
"title",
|
|
|
|
|
"license",
|
|
|
|
|
"source_type",
|
|
|
|
|
"reliability_grade",
|
|
|
|
|
"ingested_for",
|
|
|
|
|
"archive_status"
|
|
|
|
|
],
|
|
|
|
|
"title": "SourceRevisionRecord",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__SupportAssessment": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assessment_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Assessment Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assessor_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Assessor Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence_digests": {
|
|
|
|
|
"items": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Evidence Digests",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"method": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Method",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"rationale": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Rationale",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__SupportStatus"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"assessment_id",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"evidence_digests",
|
|
|
|
|
"assessor_id",
|
|
|
|
|
"run_id",
|
|
|
|
|
"method",
|
|
|
|
|
"status",
|
|
|
|
|
"rationale"
|
|
|
|
|
],
|
|
|
|
|
"title": "SupportAssessment",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__SupportStatus": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"supported",
|
|
|
|
|
"unsupported",
|
|
|
|
|
"unavailable"
|
|
|
|
|
],
|
|
|
|
|
"title": "SupportStatus",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ProposalRevision__TypedEdge": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"conditions": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Conditions"
|
|
|
|
|
},
|
|
|
|
|
"edge_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Edge Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"edge_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"solves",
|
|
|
|
|
"addresses",
|
|
|
|
|
"causes",
|
|
|
|
|
"supports",
|
|
|
|
|
"contradicts",
|
|
|
|
|
"instance_of",
|
|
|
|
|
"part_of",
|
|
|
|
|
"precedes",
|
|
|
|
|
"supersedes",
|
|
|
|
|
"compared_with",
|
|
|
|
|
"derived_from",
|
|
|
|
|
"applies_to"
|
|
|
|
|
],
|
|
|
|
|
"title": "Edge Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__EvidenceReference"
|
|
|
|
|
},
|
|
|
|
|
"title": "Evidence",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"interpretation_rationale": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Interpretation Rationale"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__EdgeEndpoint"
|
|
|
|
|
},
|
|
|
|
|
"target": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalRevision__EdgeEndpoint"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"edge_id",
|
|
|
|
|
"edge_type",
|
|
|
|
|
"source",
|
|
|
|
|
"target"
|
|
|
|
|
],
|
|
|
|
|
"title": "TypedEdge",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalStatus": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"canonical_revision": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Canonical Revision"
|
|
|
|
|
},
|
|
|
|
|
"eligible_for_auto_accept": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Eligible For Auto Accept"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalStatus__Finding"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 200,
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"lifecycle": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"evaluated",
|
|
|
|
|
"publishing",
|
|
|
|
|
"published-unreconciled",
|
|
|
|
|
"accepted",
|
|
|
|
|
"withdrawn"
|
|
|
|
|
],
|
|
|
|
|
"title": "Lifecycle",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"receipt": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/ProposalStatus__ProposalReceipt"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"validation_status": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
"eligible",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"invalid",
|
|
|
|
|
"conflict"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Validation Status"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"lifecycle"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalStatus",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalStatus__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalStatus__ProposalReceipt": {
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"commit_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Commit Id"
|
|
|
|
|
},
|
|
|
|
|
"decided_at": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Decided At"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalStatus__Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"outcome": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"accepted",
|
|
|
|
|
"held",
|
|
|
|
|
"rejected",
|
|
|
|
|
"validation-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Outcome",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/ProposalStatus__ProposalState"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"payload_digest",
|
|
|
|
|
"state",
|
|
|
|
|
"outcome"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalReceipt",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ProposalStatus__ProposalState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"validating",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"api_version": {
|
|
|
|
|
"const": "v1",
|
|
|
|
|
"default": "v1",
|
|
|
|
|
"title": "Api Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"budget_profile": {
|
|
|
|
|
"$ref": "#/components/schemas/BudgetProfile"
|
|
|
|
|
},
|
|
|
|
|
"canonical_revision": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Canonical Revision"
|
|
|
|
|
},
|
|
|
|
|
"citations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/EvidenceReference"
|
|
|
|
|
},
|
|
|
|
|
"title": "Citations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"data": {
|
|
|
|
|
"items": {
|
|
|
|
|
"additionalProperties": true,
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"title": "Data",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"index_revision": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Index Revision"
|
|
|
|
|
},
|
|
|
|
|
"next_cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Next Cursor"
|
|
|
|
|
},
|
|
|
|
|
"omissions": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Omissions",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"request_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Request Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"resolved_scope": {
|
|
|
|
|
"$ref": "#/components/schemas/Scope"
|
|
|
|
|
},
|
|
|
|
|
"retrieval_mode": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"keyword",
|
|
|
|
|
"hybrid",
|
|
|
|
|
"canonical"
|
|
|
|
|
],
|
|
|
|
|
"title": "Retrieval Mode",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"tokens_used": {
|
|
|
|
|
"minimum": 0.0,
|
|
|
|
|
"title": "Tokens Used",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"warnings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Warnings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"request_id",
|
|
|
|
|
"resolved_scope",
|
|
|
|
|
"data",
|
|
|
|
|
"canonical_revision",
|
|
|
|
|
"index_revision",
|
|
|
|
|
"retrieval_mode",
|
|
|
|
|
"budget_profile",
|
|
|
|
|
"tokens_used"
|
|
|
|
|
],
|
|
|
|
|
"title": "ReadEnvelope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope__BudgetProfile": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"encoding": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Encoding",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"tokenizer": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Tokenizer",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"tokenizer",
|
|
|
|
|
"encoding"
|
|
|
|
|
],
|
|
|
|
|
"title": "BudgetProfile",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope__EvidenceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assertion_path": {
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Assertion Path",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope__Locator"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"quote": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Quote",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"assertion_path",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"quote",
|
|
|
|
|
"locator",
|
|
|
|
|
"normalization_profile"
|
|
|
|
|
],
|
|
|
|
|
"title": "EvidenceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope__Locator": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
|
|
|
|
"exclusiveMinimum": 0,
|
|
|
|
|
"title": "End",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"text_span",
|
|
|
|
|
"pdf_page_span",
|
|
|
|
|
"transcript_timestamp_span"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Start",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"block_id",
|
|
|
|
|
"start",
|
|
|
|
|
"end"
|
|
|
|
|
],
|
|
|
|
|
"title": "Locator",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ReadEnvelope__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"budgets": {
|
|
|
|
|
"maxProperties": 100,
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"propertyNames": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1
|
|
|
|
|
},
|
|
|
|
|
"title": "Budgets",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"coverage": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunCoverage"
|
|
|
|
|
},
|
|
|
|
|
"expected_revision": {
|
|
|
|
|
"maximum": 2147483646,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Expected Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"output_hashes": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Output Hashes",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"pending_operations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunOperationReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Pending Operations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"proposals": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunProposalReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Proposals",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"sources": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunSourceReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 500,
|
|
|
|
|
"title": "Sources",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"stage": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Stage",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunState",
|
|
|
|
|
"default": "active"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"run_id",
|
|
|
|
|
"expected_revision",
|
|
|
|
|
"stage"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunCheckpointRequest",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__ProposalReceipt": {
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"commit_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Commit Id"
|
|
|
|
|
},
|
|
|
|
|
"decided_at": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Decided At"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"outcome": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"accepted",
|
|
|
|
|
"held",
|
|
|
|
|
"rejected",
|
|
|
|
|
"validation-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Outcome",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__ProposalState"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"payload_digest",
|
|
|
|
|
"state",
|
|
|
|
|
"outcome"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalReceipt",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__ProposalState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"validating",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunCoverage": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"excluded": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunCoverageItem"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Excluded",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"included": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Included",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"selected": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Selected",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"skipped": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__RunCoverageItem"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Skipped",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"title": "RunCoverage",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunCoverageItem": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"item": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Item",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"reason": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Reason",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"item",
|
|
|
|
|
"reason"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunCoverageItem",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunOperationReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"input_sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Input Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"operation_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Operation Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"pending",
|
|
|
|
|
"uncertain",
|
|
|
|
|
"complete",
|
|
|
|
|
"failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tool_name": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Tool Name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"operation_id",
|
|
|
|
|
"tool_name",
|
|
|
|
|
"input_sha256",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunOperationReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunProposalReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"receipt": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/RunCheckpointRequest__ProposalReceipt"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"evaluated",
|
|
|
|
|
"eligible",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"invalid",
|
|
|
|
|
"conflict",
|
|
|
|
|
"publishing",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn",
|
|
|
|
|
"uncertain"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunProposalReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunSourceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"artifact_sha256": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Artifact Sha256"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Extraction Id"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"selected",
|
|
|
|
|
"captured",
|
|
|
|
|
"extracted",
|
|
|
|
|
"unavailable",
|
|
|
|
|
"failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunSourceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCheckpointRequest__RunState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"completed",
|
|
|
|
|
"blocked"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"RunCreateRequest": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"lens": {
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Lens",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"module_pins": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCreateRequest__RunModulePin"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Module Pins",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"objective": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Objective",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pack_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Pack Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pack_snapshot_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Pack Snapshot Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pack_version": {
|
|
|
|
|
"maxLength": 64,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Pack Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/RunCreateRequest__Scope"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"run_id",
|
|
|
|
|
"objective",
|
|
|
|
|
"scope",
|
|
|
|
|
"lens",
|
|
|
|
|
"pack_id",
|
|
|
|
|
"pack_version",
|
|
|
|
|
"pack_snapshot_digest",
|
|
|
|
|
"module_pins"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunCreateRequest",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCreateRequest__RunModulePin": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"implementation_version": {
|
|
|
|
|
"maxLength": 64,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Implementation Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"module_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Module Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"module_id",
|
|
|
|
|
"implementation_version",
|
|
|
|
|
"sha256"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunModulePin",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunCreateRequest__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"budgets": {
|
|
|
|
|
"maxProperties": 100,
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"propertyNames": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1
|
|
|
|
|
},
|
|
|
|
|
"title": "Budgets",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"checkpoint_digest": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Checkpoint Digest"
|
|
|
|
|
},
|
|
|
|
|
"coverage": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunCoverage"
|
|
|
|
|
},
|
|
|
|
|
"created_at": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Created At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"lens": {
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Lens",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"module_pins": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunModulePin"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 100,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Module Pins",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"objective": {
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Objective",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"output_hashes": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Output Hashes",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"pack_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Pack Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pack_snapshot_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Pack Snapshot Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pack_version": {
|
|
|
|
|
"maxLength": 64,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Pack Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pending_operations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunOperationReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Pending Operations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"proposals": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunProposalReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 1000,
|
|
|
|
|
"title": "Proposals",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"run_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Run Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__Scope"
|
|
|
|
|
},
|
|
|
|
|
"sources": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunSourceReference"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 500,
|
|
|
|
|
"title": "Sources",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"stage": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Stage",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunState"
|
|
|
|
|
},
|
|
|
|
|
"updated_at": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Updated At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"run_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"state",
|
|
|
|
|
"objective",
|
|
|
|
|
"scope",
|
|
|
|
|
"lens",
|
|
|
|
|
"pack_id",
|
|
|
|
|
"pack_version",
|
|
|
|
|
"pack_snapshot_digest",
|
|
|
|
|
"module_pins",
|
|
|
|
|
"stage",
|
|
|
|
|
"created_at",
|
|
|
|
|
"updated_at"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunRecord",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__Finding": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Code",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Path"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"code",
|
|
|
|
|
"message"
|
|
|
|
|
],
|
|
|
|
|
"title": "Finding",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__ProposalReceipt": {
|
|
|
|
|
"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"
|
|
|
|
|
},
|
|
|
|
|
"commit_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Commit Id"
|
|
|
|
|
},
|
|
|
|
|
"decided_at": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Decided At"
|
|
|
|
|
},
|
|
|
|
|
"findings": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__Finding"
|
|
|
|
|
},
|
|
|
|
|
"title": "Findings",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"outcome": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"accepted",
|
|
|
|
|
"held",
|
|
|
|
|
"rejected",
|
|
|
|
|
"validation-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Outcome",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"payload_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Payload Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"state": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__ProposalState"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"payload_digest",
|
|
|
|
|
"state",
|
|
|
|
|
"outcome"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalReceipt",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__ProposalState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"validating",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn"
|
|
|
|
|
],
|
|
|
|
|
"title": "ProposalState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunCoverage": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"excluded": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunCoverageItem"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Excluded",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"included": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Included",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"selected": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Selected",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"skipped": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__RunCoverageItem"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 10000,
|
|
|
|
|
"title": "Skipped",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"title": "RunCoverage",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunCoverageItem": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"item": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Item",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"reason": {
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Reason",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"item",
|
|
|
|
|
"reason"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunCoverageItem",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunModulePin": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"implementation_version": {
|
|
|
|
|
"maxLength": 64,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Implementation Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"module_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Module Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"module_id",
|
|
|
|
|
"implementation_version",
|
|
|
|
|
"sha256"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunModulePin",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunOperationReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"input_sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Input Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"operation_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Operation Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"pending",
|
|
|
|
|
"uncertain",
|
|
|
|
|
"complete",
|
|
|
|
|
"failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"tool_name": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Tool Name",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"operation_id",
|
|
|
|
|
"tool_name",
|
|
|
|
|
"input_sha256",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunOperationReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunProposalReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"proposal_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Proposal Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"receipt": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/RunRecord__ProposalReceipt"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null
|
|
|
|
|
},
|
|
|
|
|
"revision": {
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Revision",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"staged",
|
|
|
|
|
"evaluated",
|
|
|
|
|
"eligible",
|
|
|
|
|
"needs-review",
|
|
|
|
|
"invalid",
|
|
|
|
|
"conflict",
|
|
|
|
|
"publishing",
|
|
|
|
|
"accepted",
|
|
|
|
|
"rejected",
|
|
|
|
|
"withdrawn",
|
|
|
|
|
"uncertain"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"proposal_id",
|
|
|
|
|
"revision",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunProposalReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunSourceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"artifact_sha256": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Artifact Sha256"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Extraction Id"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"selected",
|
|
|
|
|
"captured",
|
|
|
|
|
"extracted",
|
|
|
|
|
"unavailable",
|
|
|
|
|
"failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"status"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunSourceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__RunState": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"active",
|
|
|
|
|
"completed",
|
|
|
|
|
"blocked"
|
|
|
|
|
],
|
|
|
|
|
"title": "RunState",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"RunRecord__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SearchRequest": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"as_of_from": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "As Of From"
|
|
|
|
|
},
|
|
|
|
|
"as_of_to": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "As Of To"
|
|
|
|
|
},
|
|
|
|
|
"audience": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Audience",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"budget_tokens": {
|
|
|
|
|
"maximum": 50000,
|
|
|
|
|
"minimum": 256,
|
|
|
|
|
"title": "Budget Tokens",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"confidences": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchRequest__Confidence"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 3,
|
|
|
|
|
"title": "Confidences",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 512,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Cursor"
|
|
|
|
|
},
|
|
|
|
|
"domain": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Domain",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"maximum": 50,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"node_types": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchRequest__NodeType"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 9,
|
|
|
|
|
"title": "Node Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"query": {
|
|
|
|
|
"default": "",
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"title": "Query",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchRequest__Scope"
|
|
|
|
|
},
|
|
|
|
|
"stale_only": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "Stale Only",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Tags",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"use_for": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Use For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"scope",
|
|
|
|
|
"budget_tokens"
|
|
|
|
|
],
|
|
|
|
|
"title": "SearchRequest",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SearchRequestBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"as_of_from": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "As Of From"
|
|
|
|
|
},
|
|
|
|
|
"as_of_to": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "As Of To"
|
|
|
|
|
},
|
|
|
|
|
"audience": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Audience",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"budget_tokens": {
|
|
|
|
|
"maximum": 50000.0,
|
|
|
|
|
"minimum": 256.0,
|
|
|
|
|
"title": "Budget Tokens",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"confidences": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/Confidence"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 3,
|
|
|
|
|
"title": "Confidences",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 512,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Cursor"
|
|
|
|
|
},
|
|
|
|
|
"domain": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Domain",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"maximum": 50.0,
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"node_types": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 9,
|
|
|
|
|
"title": "Node Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"query": {
|
|
|
|
|
"default": "",
|
|
|
|
|
"maxLength": 1000,
|
|
|
|
|
"title": "Query",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchScopeBody"
|
|
|
|
|
},
|
|
|
|
|
"stale_only": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "Stale Only",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"tags": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Tags",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"use_for": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 100,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Use For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"scope",
|
|
|
|
|
"budget_tokens"
|
|
|
|
|
],
|
|
|
|
|
"title": "SearchRequestBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SearchRequest__Confidence": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "Confidence",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"SearchRequest__NodeType": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"finding",
|
|
|
|
|
"problem",
|
|
|
|
|
"technique",
|
|
|
|
|
"case",
|
|
|
|
|
"entity",
|
|
|
|
|
"event",
|
|
|
|
|
"concept",
|
|
|
|
|
"datapoint",
|
|
|
|
|
"synthesis"
|
|
|
|
|
],
|
|
|
|
|
"title": "NodeType",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"SearchRequest__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SearchScopeBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "SearchScopeBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ServiceDiagnostics": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"api_version": {
|
|
|
|
|
"const": "v1",
|
|
|
|
|
"default": "v1",
|
|
|
|
|
"title": "Api Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"authentication": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"bearer",
|
|
|
|
|
"browser_session"
|
|
|
|
|
],
|
|
|
|
|
"title": "Authentication",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"authorized_operations": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Authorized Operations",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"authorized_projects": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Authorized Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"canonical_revision": {
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"title": "Canonical Revision",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"capabilities": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Capabilities",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"catalog_sha256": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Catalog Sha256",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"connection_status": {
|
|
|
|
|
"const": "authenticated",
|
|
|
|
|
"default": "authenticated",
|
|
|
|
|
"title": "Connection Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"index_revision": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Index Revision"
|
|
|
|
|
},
|
|
|
|
|
"index_schema_version": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Index Schema Version"
|
|
|
|
|
},
|
|
|
|
|
"index_state": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"current",
|
|
|
|
|
"lagging",
|
|
|
|
|
"not_built",
|
|
|
|
|
"not_configured",
|
|
|
|
|
"unavailable"
|
|
|
|
|
],
|
|
|
|
|
"title": "Index State",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"max_upload_bytes": {
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"title": "Max Upload Bytes",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"roles": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Roles",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"selected_scope": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/components/schemas/Scope"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"service_version": {
|
|
|
|
|
"maxLength": 64,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Service Version",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"supported_media_types": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 20,
|
|
|
|
|
"title": "Supported Media Types",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"transport": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"http",
|
|
|
|
|
"mcp"
|
|
|
|
|
],
|
|
|
|
|
"title": "Transport",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"upload_chunk_bytes": {
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"title": "Upload Chunk Bytes",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"workflow_status": {
|
|
|
|
|
"const": "not_verified",
|
|
|
|
|
"default": "not_verified",
|
|
|
|
|
"title": "Workflow Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"service_version",
|
|
|
|
|
"catalog_sha256",
|
|
|
|
|
"transport",
|
|
|
|
|
"authentication",
|
|
|
|
|
"max_upload_bytes",
|
|
|
|
|
"upload_chunk_bytes",
|
|
|
|
|
"canonical_revision",
|
|
|
|
|
"index_state"
|
|
|
|
|
],
|
|
|
|
|
"title": "ServiceDiagnostics",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ServiceDiagnostics__Scope": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
|
|
|
"properties": {
|
|
|
|
|
"all_projects": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "All Projects",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"include_projects": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Include Projects"
|
|
|
|
|
},
|
|
|
|
|
"include_shared": {
|
|
|
|
|
"default": true,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"projects": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"projects"
|
|
|
|
|
],
|
|
|
|
|
"title": "Scope",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SourceListRequestBody": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"budget_tokens": {
|
|
|
|
|
"maximum": 50000.0,
|
|
|
|
|
"minimum": 256.0,
|
|
|
|
|
"title": "Budget Tokens",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"cursor": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 512,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Cursor"
|
|
|
|
|
},
|
|
|
|
|
"limit": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"maximum": 50.0,
|
|
|
|
|
"minimum": 1.0,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"scope": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchScopeBody"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"scope",
|
|
|
|
|
"budget_tokens"
|
|
|
|
|
],
|
|
|
|
|
"title": "SourceListRequestBody",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SourceRevisionRecord": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"archive_status": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"archived",
|
|
|
|
|
"reference-only",
|
|
|
|
|
"capture-failed"
|
|
|
|
|
],
|
|
|
|
|
"title": "Archive Status",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"artifact_sha256": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Artifact Sha256"
|
|
|
|
|
},
|
|
|
|
|
"authors": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"title": "Authors",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"byte_length": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Byte Length",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"capture_method": {
|
|
|
|
|
"default": "unspecified",
|
|
|
|
|
"enum": [
|
|
|
|
|
"unspecified",
|
|
|
|
|
"local-file",
|
|
|
|
|
"url-fetch",
|
|
|
|
|
"pasted-text",
|
|
|
|
|
"notebooklm-export",
|
|
|
|
|
"transcript"
|
|
|
|
|
],
|
|
|
|
|
"title": "Capture Method",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"captured_at": {
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"title": "Captured At",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"final_url": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Final Url"
|
|
|
|
|
},
|
|
|
|
|
"ingested_for": {
|
|
|
|
|
"items": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"maxItems": 50,
|
|
|
|
|
"minItems": 1,
|
|
|
|
|
"title": "Ingested For",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"license": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "License",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"media_type": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Media Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"original_url": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Original Url"
|
|
|
|
|
},
|
|
|
|
|
"publication_date": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"format": "date-time",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Publication Date"
|
|
|
|
|
},
|
|
|
|
|
"publisher": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 300,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Publisher"
|
|
|
|
|
},
|
|
|
|
|
"reliability_grade": {
|
|
|
|
|
"$ref": "#/components/schemas/SourceRevisionRecord__ReliabilityGrade"
|
|
|
|
|
},
|
|
|
|
|
"revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"source_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"paper",
|
|
|
|
|
"review",
|
|
|
|
|
"press",
|
|
|
|
|
"vendor",
|
|
|
|
|
"internal",
|
|
|
|
|
"talk",
|
|
|
|
|
"export",
|
|
|
|
|
"other"
|
|
|
|
|
],
|
|
|
|
|
"title": "Source Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
|
|
|
|
"maxLength": 500,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Title",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_id",
|
|
|
|
|
"revision_id",
|
|
|
|
|
"media_type",
|
|
|
|
|
"byte_length",
|
|
|
|
|
"captured_at",
|
|
|
|
|
"title",
|
|
|
|
|
"license",
|
|
|
|
|
"source_type",
|
|
|
|
|
"reliability_grade",
|
|
|
|
|
"ingested_for",
|
|
|
|
|
"archive_status"
|
|
|
|
|
],
|
|
|
|
|
"title": "SourceRevisionRecord",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"SourceRevisionRecord__ReliabilityGrade": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"low",
|
|
|
|
|
"medium",
|
|
|
|
|
"high"
|
|
|
|
|
],
|
|
|
|
|
"title": "ReliabilityGrade",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"TypedEdge": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"conditions": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 2000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Conditions"
|
|
|
|
|
},
|
|
|
|
|
"edge_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Edge Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"edge_type": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"solves",
|
|
|
|
|
"addresses",
|
|
|
|
|
"causes",
|
|
|
|
|
"supports",
|
|
|
|
|
"contradicts",
|
|
|
|
|
"instance_of",
|
|
|
|
|
"part_of",
|
|
|
|
|
"precedes",
|
|
|
|
|
"supersedes",
|
|
|
|
|
"compared_with",
|
|
|
|
|
"derived_from",
|
|
|
|
|
"applies_to"
|
|
|
|
|
],
|
|
|
|
|
"title": "Edge Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"evidence": {
|
|
|
|
|
"default": [],
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/TypedEdge__EvidenceReference"
|
|
|
|
|
},
|
|
|
|
|
"title": "Evidence",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"interpretation_rationale": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 4000,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Interpretation Rationale"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source": {
|
|
|
|
|
"$ref": "#/components/schemas/TypedEdge__EdgeEndpoint"
|
|
|
|
|
},
|
|
|
|
|
"target": {
|
|
|
|
|
"$ref": "#/components/schemas/TypedEdge__EdgeEndpoint"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"edge_id",
|
|
|
|
|
"edge_type",
|
|
|
|
|
"source",
|
|
|
|
|
"target"
|
|
|
|
|
],
|
|
|
|
|
"title": "TypedEdge",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"TypedEdge__EdgeEndpoint": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"node",
|
|
|
|
|
"source",
|
|
|
|
|
"project"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"id"
|
|
|
|
|
],
|
|
|
|
|
"title": "EdgeEndpoint",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"TypedEdge__EvidenceReference": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"assertion_digest": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Assertion Digest",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"assertion_path": {
|
|
|
|
|
"maxLength": 256,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Assertion Path",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"extraction_id": {
|
|
|
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"locator": {
|
|
|
|
|
"$ref": "#/components/schemas/TypedEdge__Locator"
|
|
|
|
|
},
|
|
|
|
|
"normalization_profile": {
|
|
|
|
|
"const": "unicode-nfc-lf-v1",
|
|
|
|
|
"title": "Normalization Profile",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"quote": {
|
|
|
|
|
"maxLength": 8000,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"title": "Quote",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"source_revision_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Source Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"source_revision_id",
|
|
|
|
|
"extraction_id",
|
|
|
|
|
"assertion_path",
|
|
|
|
|
"assertion_digest",
|
|
|
|
|
"quote",
|
|
|
|
|
"locator",
|
|
|
|
|
"normalization_profile"
|
|
|
|
|
],
|
|
|
|
|
"title": "EvidenceReference",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"TypedEdge__Locator": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"block_id": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"end": {
|
|
|
|
|
"exclusiveMinimum": 0,
|
|
|
|
|
"title": "End",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"kind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"text_span",
|
|
|
|
|
"pdf_page_span",
|
|
|
|
|
"transcript_timestamp_span"
|
|
|
|
|
],
|
|
|
|
|
"title": "Kind",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Page"
|
|
|
|
|
},
|
|
|
|
|
"schema_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"default": 1,
|
|
|
|
|
"title": "Schema Version",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"start": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Start",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"time_end_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time End Ms"
|
|
|
|
|
},
|
|
|
|
|
"time_start_ms": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": null,
|
|
|
|
|
"title": "Time Start Ms"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"kind",
|
|
|
|
|
"block_id",
|
|
|
|
|
"start",
|
|
|
|
|
"end"
|
|
|
|
|
],
|
|
|
|
|
"title": "Locator",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"ValidationError": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"ctx": {
|
|
|
|
|
"title": "Context",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"input": {
|
|
|
|
|
"title": "Input"
|
|
|
|
|
},
|
|
|
|
|
"loc": {
|
|
|
|
|
"items": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"title": "Location",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"msg": {
|
|
|
|
|
"title": "Message",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"title": "Error Type",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"loc",
|
|
|
|
|
"msg",
|
|
|
|
|
"type"
|
|
|
|
|
],
|
|
|
|
|
"title": "ValidationError",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"info": {
|
|
|
|
|
"title": "GEWU",
|
|
|
|
|
"version": "0.1.0"
|
|
|
|
|
},
|
|
|
|
|
"openapi": "3.1.0",
|
|
|
|
|
"paths": {
|
|
|
|
|
"/auth/owner-session": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "owner_session_create",
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/OwnerSessionRequestBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Owner Session Create",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Create Owner Session",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/health": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "health",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Health",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Health",
|
|
|
|
|
"tags": [
|
|
|
|
|
"health"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/credentials": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "admin_list_credentials",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 50,
|
|
|
|
|
"maximum": 100,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "offset",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Offset",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/CredentialSummary"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin List Credentials",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Credentials",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "admin_create_credential",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/CredentialCreateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/IssuedCredential"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Create",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/credentials/{credential_id}": {
|
|
|
|
|
"delete": {
|
|
|
|
|
"operationId": "admin_revoke_credential",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "credential_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin Revoke Credential",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Revoke",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"patch": {
|
|
|
|
|
"operationId": "admin_update_credential",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "credential_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/CredentialUpdateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/CredentialSummary"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Update Credential",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/events": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "admin_list_events",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 50,
|
|
|
|
|
"maximum": 100,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/AdminEvent"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin List Events",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Events",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/projects": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "admin_list_projects",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectRecord"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin List Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Admin List Projects",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "project_create",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectCreateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectRecord"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Project Create",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/projects/{project_id}": {
|
|
|
|
|
"patch": {
|
|
|
|
|
"operationId": "project_update_content",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectContentUpdateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectRecord"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Project Update Content",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/projects/{project_id}/archive": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "project_archive",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ProjectRecord"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Project Archive",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/users": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "admin_list_accounts",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 50,
|
|
|
|
|
"maximum": 100,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "offset",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Offset",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/AccountSummary"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin List Accounts",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Users",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "admin_create_account",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/AccountCreateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/AccountSummary"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Create User",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/admin/users/{username}": {
|
|
|
|
|
"delete": {
|
|
|
|
|
"operationId": "admin_disable_account",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "username",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
|
|
|
|
|
"title": "Username",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Admin Disable Account",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Disable User",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"patch": {
|
|
|
|
|
"operationId": "admin_update_account",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "username",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
|
|
|
|
|
"title": "Username",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/AccountUpdateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/AccountSummary"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Update User",
|
|
|
|
|
"tags": [
|
|
|
|
|
"control"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/diagnostics": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "diagnostics",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "projects",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Projects"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "include_shared",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": false,
|
|
|
|
|
"title": "Include Shared",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ServiceDiagnostics"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Diagnostics",
|
|
|
|
|
"tags": [
|
|
|
|
|
"diagnostics"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-10-14 20:35:48 +08:00
|
|
|
"/v1/ingest-reviews": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "ingest_review_list",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "status",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"maxLength": 32,
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"default": "needs-user-review",
|
|
|
|
|
"title": "Status"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 50,
|
|
|
|
|
"maximum": 100,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "offset",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Offset",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/IngestReviewItem"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Ingest Review List",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "List Reviews",
|
|
|
|
|
"tags": [
|
|
|
|
|
"ingest review"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/ingest-reviews/{review_id}/decision": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "ingest_review_decide",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "review_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Review Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/IngestReviewDecision"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": true,
|
|
|
|
|
"title": "Response Ingest Review Decide",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Decide Review",
|
|
|
|
|
"tags": [
|
|
|
|
|
"ingest review"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-10-14 19:21:35 +08:00
|
|
|
"/v1/me": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "account_current",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/CurrentUser"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Me",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/me/agent-credentials": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "account_list_agent_credentials",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 50,
|
|
|
|
|
"maximum": 100,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "offset",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Offset",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/components/schemas/CredentialSummary"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Account List Agent Credentials",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Agents",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "account_create_agent_credential",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/AgentCreateBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"201": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/IssuedCredential"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Create Agent",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/me/agent-credentials/{credential_id}": {
|
|
|
|
|
"delete": {
|
|
|
|
|
"operationId": "account_revoke_agent_credential",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "credential_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Credential Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Account Revoke Agent Credential",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Revoke Agent",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/me/password": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "account_change_password",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/PasswordChangeBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Account Change Password",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Change Password",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/neighbors": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "neighbors",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/NeighborRequestBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Neighbors",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "list_projects",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response List Projects",
|
|
|
|
|
"type": "array"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "List Projects",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects/{project_id}/nodes/{node_id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "get_node",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "node_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "revision",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Revision"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Get Node",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects/{project_id}/nodes/{node_id}/history": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "node_history",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "node_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Node Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "limit",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"default": 20,
|
|
|
|
|
"title": "Limit",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Get Node History",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects/{project_id}/sources/{revision_id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "get_source",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "revision_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Get Source",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects/{project_id}/sources/{revision_id}/artifact": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "get_source_artifact",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "revision_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Get Source Artifact",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/projects/{project_id}/sources/{revision_id}/extractions/{extraction_id}/blocks/{block_id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "get_source_location",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "project_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Project Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "revision_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Revision Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "extraction_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"title": "Extraction Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "path",
|
|
|
|
|
"name": "block_id",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maxLength": 128,
|
|
|
|
|
"minLength": 1,
|
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
|
|
|
"title": "Block Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "offset",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"minimum": 0,
|
|
|
|
|
"title": "Offset",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "query",
|
|
|
|
|
"name": "length",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"maximum": 12000,
|
|
|
|
|
"minimum": 1,
|
|
|
|
|
"title": "Length",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": true,
|
|
|
|
|
"title": "Response Get Source Location",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Get Source Location",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/search": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "search",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/SearchRequestBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Search",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/session": {
|
|
|
|
|
"delete": {
|
|
|
|
|
"operationId": "browser_session_revoke",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Browser Session Revoke",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Revoke Browser Session",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"get": {
|
|
|
|
|
"operationId": "browser_session_restore",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-Session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Session"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Browser Session Restore",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Restore Browser Session",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "browser_session_create",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Browser Session Create",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Create Browser Session",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/sources": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "list_sources",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "authorization",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Authorization"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "header",
|
|
|
|
|
"name": "X-GEWU-CSRF",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "X-Gewu-Csrf"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"in": "cookie",
|
|
|
|
|
"name": "gewu_session",
|
|
|
|
|
"required": false,
|
|
|
|
|
"schema": {
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "null"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"title": "Gewu Session"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/SourceListRequestBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/ReadEnvelope"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "List Sources",
|
|
|
|
|
"tags": [
|
|
|
|
|
"knowledge"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/v1/users/session": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "account_login",
|
|
|
|
|
"requestBody": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/LoginBody"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"additionalProperties": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": "Response Account Login",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Successful Response"
|
|
|
|
|
},
|
|
|
|
|
"422": {
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "Validation Error"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"summary": "Login",
|
|
|
|
|
"tags": [
|
|
|
|
|
"identity"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|