Skip to Content

Types glossary

Constants and interfaces below are exported from @gloocan/cat-inspector (unless noted as Socket.IO-only payloads matching the same shapes).

CatMode

'service' | 'api_candidate' | 'api' — see Cat modes.

QaFileWireMode and QaMediaUploadTarget

  • QaFileWireMode: 'ref' | 'url' — catalog + RPC file placeholder strategy.
  • QaMediaUploadTarget: 'admin' | 'host' — hint for where tenant UI uploads before emitting __qaFileUrl.

ParamKind

'json' | 'file' | 'files' — classifies a parameter for QA file pickers and materialization.

RegistryParam

FieldTypeRole
namestringPositional parameter name.
typestringDeclared / inferred type string for catalog.
kindParamKind?Optional classification.
filePathsstring[]?Nested single-file paths inside object params.
fileArrayPathsstring[]?Nested multi-file paths.
qaFileWireQaFileWireMode?Echoed wire hint for QA UI.
qaMediaUploadQaMediaUploadTarget?Echoed upload target hint.

RegistryEntry

FieldTypeRole
modeCatModeService vs Express.
className, methodstringDisplay names from fnKey.
styleclass or functionInstance vs direct function invoke.
bodystringSource text snippet (may be redacted from snapshots).
paramsRegistryParam[]Positional metadata.
declaredReturnstringReturn type string.
returnsReturnEntry[]Labeled return branches.
errorsErrorEntry[]Labeled error branches.
children, parentsstring[]Relationship keys.
route, httpMethod, pipelineId, pipelineIndexnullableExpress routing metadata.
apiResponsesApiResponseEntry[]Labeled HTTP response slots.
serviceLinksstring[]Linked service fnKeys from analysis.
paramsJsonSchema, returnJsonSchemaRecord<string, unknown> | nullOptional JSON Schemas.
invokeKind'rpc' | 'http_synthetic'RPC vs HTTP bridge execution.
originalFnFunctionHost-only callable (not on wire).

ReturnEntry / ErrorEntry / ApiResponseEntry

TypeKey fields
ReturnEntrylabel, type, status: 'pending' | 'resolved'.
ErrorEntrylabel, type, message, status.
ApiResponseEntrylabel, statusCode, bodyShape, status.

RpcErrorDetail

FieldType
messagestring
stackstring | null
layer'validation' | 'expected' | 'unexpected'
codestring?

RpcResponse

FieldType
type'RPC_RESPONSE'
requestId, fnKeystring
status'ok' | 'error'
resultunknown
returnTypestring
returnShapestring | null
labelstring | null
durationstring
errorRpcErrorDetail | null
artifactsRpcArtifactRef[]?

BootstrapEvent

Adds to the core bootstrap payload: optional qaFileWire, qaMediaUpload, fileUrl, qaMediaUploadHostUploadUrl, qaHostMediaUploadViaSocket (see Protocol bootstrap).

Inspector events (discriminated union)

InspectorWireEvent covers shapes including:

VariantDistinguisher
Bootstrapevent: 'BOOTSTRAP'
Return resolvedevent: 'RETURN_RESOLVED'
Error thrownevent: 'ERROR_THROWN'
API responseevent: 'API_RESPONSE'
Middleware nextevent: 'MIDDLEWARE_NEXT'
RPC executedevent: 'RPC_EXECUTED'
RPC responsetype: 'RPC_RESPONSE'
Coverage reporttype: 'COVERAGE_REPORT'
Job progressevent: 'JOB_PROGRESS'

Each carries protocolVersion where applicable.

See also