REST schemas GkbActivityItem to GkbVisualizationEdge#

Request and response bodies of the REST API.

GkbActivityItem#

A recently published artifact.

Field

Type

Required

Default

Description

artifact_id

string

yes

artifact_uri

string

yes

content_hash

string

yes

created_at

string (date-time)

yes

project_id

string

yes

subject

string

"Untitled artifact"

maxLength 512

GkbActivityResponse#

Recent artifacts of a project.

Field

Type

Required

Default

Description

items

array of GkbActivityItem

[]

GkbArtifactResponse#

A stored artifact’s canonical Markdown, content hash, schema version and metadata.

Field

Type

Required

Default

Description

artifact_id

string

yes

artifact_uri

string

yes

content_hash

string

yes

markdown

string

yes

maxLength 1000000

metadata

object

yes

schema_version

string

yes

GkbBrowseBounds#

Bounding boxes of an artifact’s geometry; two boxes when it crosses the antimeridian.

Field

Type

Required

Default

Description

boxes

array of array

yes

maxItems 2

crosses_antimeridian

boolean

false

GkbBrowseFreshness#

How current a browse result is: committed and indexed counts and whether the index has caught up.

Field

Type

Required

Default

Description

committed

integer or null

complete

boolean

false

indexed

integer or null

snapshot

string

yes

GkbBrowsePage#

A page of browse rows with cursors, the access path (database projection or filesystem fallback), freshness and warnings.

Field

Type

Required

Default

Description

access_path

one of "postgres_projection", "filesystem_fallback"

yes

freshness

GkbBrowseFreshness

yes

next_cursor

string or null

previous_cursor

string or null

rows

array of GkbBrowseRow

[]

maxItems 100

warnings

array of string

[]

GkbBrowseRequest#

A bounded lexical navigation query, independent of canonical retrieval.

Field

Type

Required

Default

Description

artifact_id

string or null

bbox

array or null

created_before

string (date-time) or null

created_from

string (date-time) or null

created_to

string (date-time) or null

cursor

string or null

limit

integer

50

minimum 1.0, maximum 100.0

project_id

string or null

ranking

"lexical"

"lexical"

sort

one of "auto", "project_created_desc", "relevance", "created_desc", "created_asc" or null

text

string or null

when_from

string (date-time) or null

when_to

string (date-time) or null

GkbBrowseRow#

Compact, length-bounded summary of one artifact, with *_truncated flags for shortened text.

Field

Type

Required

Default

Description

agent

string or null

artifact_id

string

yes

maxLength 255

committed_at

string (date-time) or null

confidence

number

yes

minimum 0.0, maximum 1.0

content_hash

string

yes

pattern ^[a-f0-9]{64}$

created_at

string (date-time)

yes

document_type

string

yes

maxLength 128

evidence_count

integer

0

minimum 0.0

geometry_bounds

GkbBrowseBounds or null

kind

string

yes

maxLength 128

outgoing_relation_count

integer

0

minimum 0.0

place_count

integer

0

minimum 0.0

places

array of string

[]

maxItems 3

producer

string

yes

maxLength 128

producer_truncated

boolean

false

project_id

string

yes

maxLength 128

relevance

number

0

review_state

string or null

run

string or null

schema_version

string

yes

maxLength 32

source_version

string or null

source_version_truncated

boolean

false

summary

string

yes

maxLength 512

summary_truncated

boolean

false

tag_count

integer

0

minimum 0.0

tags

array of string

[]

maxItems 3

title

string

yes

maxLength 256

title_truncated

boolean

false

valid_from

string (date-time) or null

valid_to

string (date-time) or null

visibility

string

yes

maxLength 32

GkbCommitRequest#

Field

Type

Required

Default

Description

draft

object or null

markdown

string or null

GkbEvent#

One canonical GKB publication, with its project sequence and publication origin.

Field

Type

Required

Default

Description

artifact_id

string

yes

content_hash

string

yes

id

string

yes

occurred_at

string (date-time)

yes

origin

EventOrigin or null

project_id

string

yes

sequence

integer

yes

minimum 1.0

type

"gkb.project.changed.v1"

yes

GkbEventPage#

Events after the requested sequence, oldest first; bounds as in the catalog page.

Field

Type

Required

Default

Description

earliest

integer or null

items

array of GkbEvent

yes

latest

integer

yes

minimum 0.0

GkbMapRequest#

Browse request limited to the boxes of a map viewport (one or two).

Field

Type

Required

Default

Description

artifact_id

string or null

bbox

array or null

created_before

string (date-time) or null

created_from

string (date-time) or null

created_to

string (date-time) or null

cursor

string or null

limit

integer

50

minimum 1.0, maximum 100.0

project_id

string or null

ranking

"lexical"

"lexical"

sort

one of "auto", "project_created_desc", "relevance", "created_desc", "created_asc" or null

text

string or null

viewport_boxes

array of array

yes

minItems 1, maxItems 2

when_from

string (date-time) or null

when_to

string (date-time) or null

GkbProjectInfo#

A project with its artifact count and latest activity.

Field

Type

Required

Default

Description

artifact_count

integer

0

minimum 0.0

latest_activity

string (date-time) or null

project_id

string

yes

GkbProjectList#

Projects returned by GET /v1/gkb/projects.

Field

Type

Required

Default

Description

items

array of GkbProjectInfo

[]

GkbProjectSummaries#

A page of project summaries; complete is false when the list may be partial.

Field

Type

Required

Default

Description

access_path

one of "postgres_projection", "filesystem_fallback"

yes

complete

boolean

false

items

array of GkbProjectSummary

[]

maxItems 200

next_cursor

string or null

GkbProjectSummary#

A project’s artifact and indexed counts and latest activity.

Field

Type

Required

Default

Description

artifact_count

integer or null

indexed_count

integer or null

latest_activity

string (date-time) or null

project_id

string

yes

maxLength 128

GkbRelationship#

A typed relation between two artifacts, with its confidence.

Field

Type

Required

Default

Description

confidence

number

yes

minimum 0.0, maximum 1.0

relation_type

string

yes

maxLength 128

source_artifact_id

string

yes

maxLength 255

target_artifact_id

string

yes

maxLength 255

GkbRelationshipRequest#

Request for the explicit relations of up to 100 artifacts, optionally within one project.

Field

Type

Required

Default

Description

artifact_ids

array of string

yes

maxItems 100

project_id

string or null

GkbRelationships#

Relations found for a request; complete is false when the list may be partial.

Field

Type

Required

Default

Description

complete

boolean

false

items

array of GkbRelationship

[]

maxItems 500

GkbSearchPageResponse#

A search page that also carries the previous cursor and whether the result is complete.

Field

Type

Required

Default

Description

access_path

string

yes

complete

boolean

true

hits

array of KnowledgeHit

[]

next_cursor

string or null

previous_cursor

string or null

total

integer

0

minimum 0.0

GkbSearchRequest#

An artifact query plus a cursor to continue a paged search.

Field

Type

Required

Default

Description

bbox

array or null

created_from

string (date-time) or null

created_to

string (date-time) or null

cursor

string or null

limit

integer

20

minimum 1.0, maximum 500.0

project_id

string or null

ranking

"lexical"

"lexical"

sort

one of "auto", "project_created_desc", "relevance", "created_desc", "created_asc" or null

text

string or null

when_from

string (date-time) or null

when_to

string (date-time) or null

GkbSearchResponse#

A page of search hits with the cursor for the next page and the total match count.

Field

Type

Required

Default

Description

access_path

string

yes

hits

array of KnowledgeHit

[]

next_cursor

string or null

total

integer

0

minimum 0.0

GkbShipTileSource#

Field

Type

Required

Default

Description

artifact_id

string

yes

candidate_pixels

map of array or null

yes

content_hash

string

yes

pattern ^[0-9a-f]{64}$

height

integer

yes

exclusiveMinimum 0.0

max_level

integer

yes

minimum 0.0, maximum 30.0

renderer_revision

string

yes

pattern ^[0-9a-f]{64}$

revision

string

yes

pattern ^[0-9a-f]{64}$

tile_endpoint

string

yes

tile_size

256

256

width

integer

yes

exclusiveMinimum 0.0

GkbShipVisualization#

Field

Type

Required

Default

Description

artifact_id

string

yes

cached

boolean

false

content_hash

string

yes

error

ShipVisualizationError or null

manifest

object or null

renderer_revision

string

yes

resources

array of GkbShipVisualizationResource

[]

status

one of "queued", "running", "ready", "failed"

yes

visualization_complete

boolean

false

GkbShipVisualizationResource#

Field

Type

Required

Default

Description

byte_size

integer

yes

minimum 0.0

kind

string

yes

minLength 1, maxLength 64

media_type

string

yes

minLength 1, maxLength 128

name

string

yes

pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,255}$

resource_uri

string

yes

pattern ^/v1/gkb/artifacts/[A-Za-z0-9][A-Za-z0-9._-]{0,127}/ship-visualization/artifacts/[A-Za-z0-9][A-Za-z0-9._-]{0,255}$

sha256

string

yes

pattern ^[0-9a-f]{64}$

GkbTimelineBucket#

Number of matching artifacts in one time bucket.

Field

Type

Required

Default

Description

count

integer

yes

minimum 0.0

end

string (date-time)

yes

start

string (date-time)

yes

GkbTimelineOverview#

Time buckets of the matching artifacts, with the matching count and the full time range.

Field

Type

Required

Default

Description

access_path

"postgres_projection"

"postgres_projection"

buckets

array of GkbTimelineBucket

[]

maxItems 200

freshness

GkbBrowseFreshness

yes

full_before

string (date-time) or null

full_from

string (date-time) or null

matching_count

integer

yes

minimum 0.0

warnings

array of string

[]

GkbTimelineRequest#

Browse request that also sets the time range and number of buckets (default 100, at most 200) of a timeline overview.

Field

Type

Required

Default

Description

artifact_id

string or null

bbox

array or null

bucket_count

integer

100

minimum 1.0, maximum 200.0

created_before

string (date-time) or null

created_from

string (date-time) or null

created_to

string (date-time) or null

cursor

string or null

limit

integer

50

minimum 1.0, maximum 100.0

project_id

string or null

range_before

string (date-time) or null

range_from

string (date-time) or null

ranking

"lexical"

"lexical"

sort

one of "auto", "project_created_desc", "relevance", "created_desc", "created_asc" or null

text

string or null

when_from

string (date-time) or null

when_to

string (date-time) or null

GkbValidateRequest#

Field

Type

Required

Default

Description

markdown

string

yes

minLength 1, maxLength 1000000

GkbVisualizationEdge#

A relation between two nodes of a project graph.

Field

Type

Required

Default

Description

relation

string

"related"

maxLength 128

source

string

yes

target

string

yes