SDK y paquetes@styx/domainvariables

Variable: SOURCES_ERROR_METADATA

Referencia de @styx/domain generada de su TSDoc.

ImplementadoSin versión del tren todavía· generada desde packages/domain/package.json

Página generada desde el TSDoc de @styx/domain. No se edita a mano: bun run docs:gen la regenera y bun run docs:check falla si difiere.

Variable: SOURCES_ERROR_METADATA

const SOURCES_ERROR_METADATA: object

Tabla estática: metadata por código. as const satisfies: conserva el httpStatus literal de cada código (lo usa problemResponses de @styx/api-contracts para tipar el response por status de las rutas HTTP) sin perder la comprobación de forma.

Type Declaration

SOURCES_ASSET_NOT_FOUND

readonly SOURCES_ASSET_NOT_FOUND: object

SOURCES_ASSET_NOT_FOUND.category

readonly category: "permanent" = 'permanent'

SOURCES_ASSET_NOT_FOUND.code

readonly code: "SOURCES_ASSET_NOT_FOUND" = 'SOURCES_ASSET_NOT_FOUND'

SOURCES_ASSET_NOT_FOUND.httpStatus

readonly httpStatus: 404 = 404

SOURCES_ASSET_NOT_FOUND.message

readonly message: "Asset no encontrado al resolver fuente" = 'Asset no encontrado al resolver fuente'

SOURCES_ASSET_NOT_FOUND.retryable

readonly retryable: false = false

SOURCES_ASSET_NOT_FOUND.suggestedAction

readonly suggestedAction: "Verificar que el asset está indexado en catalog-svc" = 'Verificar que el asset está indexado en catalog-svc'

SOURCES_CATALOG_UNAVAILABLE

readonly SOURCES_CATALOG_UNAVAILABLE: object

SOURCES_CATALOG_UNAVAILABLE.category

readonly category: "transient" = 'transient'

SOURCES_CATALOG_UNAVAILABLE.code

readonly code: "SOURCES_CATALOG_UNAVAILABLE" = 'SOURCES_CATALOG_UNAVAILABLE'

SOURCES_CATALOG_UNAVAILABLE.httpStatus

readonly httpStatus: 503 = 503

SOURCES_CATALOG_UNAVAILABLE.message

readonly message: "catalog-svc no responde al resolver fuente" = 'catalog-svc no responde al resolver fuente'

SOURCES_CATALOG_UNAVAILABLE.retryable

readonly retryable: true = true

SOURCES_CATALOG_UNAVAILABLE.suggestedAction

readonly suggestedAction: "Verificar disponibilidad de catalog-svc y reintentar" = 'Verificar disponibilidad de catalog-svc y reintentar'

SOURCES_DB_READ_FAILED

readonly SOURCES_DB_READ_FAILED: object

SOURCES_DB_READ_FAILED.category

readonly category: "transient" = 'transient'

SOURCES_DB_READ_FAILED.code

readonly code: "SOURCES_DB_READ_FAILED" = 'SOURCES_DB_READ_FAILED'

SOURCES_DB_READ_FAILED.httpStatus

readonly httpStatus: 503 = 503

SOURCES_DB_READ_FAILED.message

readonly message: "Falló la lectura de Postgres (sources repo)" = 'Falló la lectura de Postgres (sources repo)'

SOURCES_DB_READ_FAILED.retryable

readonly retryable: true = true

SOURCES_DB_READ_FAILED.suggestedAction

readonly suggestedAction: "Revisar la conexión con Postgres y reintentar" = 'Revisar la conexión con Postgres y reintentar'

SOURCES_DB_WRITE_FAILED

readonly SOURCES_DB_WRITE_FAILED: object

SOURCES_DB_WRITE_FAILED.category

readonly category: "transient" = 'transient'

SOURCES_DB_WRITE_FAILED.code

readonly code: "SOURCES_DB_WRITE_FAILED" = 'SOURCES_DB_WRITE_FAILED'

SOURCES_DB_WRITE_FAILED.httpStatus

readonly httpStatus: 503 = 503

SOURCES_DB_WRITE_FAILED.message

readonly message: "Falló la escritura a Postgres (sources repo)" = 'Falló la escritura a Postgres (sources repo)'

SOURCES_DB_WRITE_FAILED.retryable

readonly retryable: true = true

SOURCES_DB_WRITE_FAILED.suggestedAction

readonly suggestedAction: "Revisar la conexión con Postgres y reintentar" = 'Revisar la conexión con Postgres y reintentar'

SOURCES_INVALID_INPUT

readonly SOURCES_INVALID_INPUT: object

SOURCES_INVALID_INPUT.category

readonly category: "permanent" = 'permanent'

SOURCES_INVALID_INPUT.code

readonly code: "SOURCES_INVALID_INPUT" = 'SOURCES_INVALID_INPUT'

SOURCES_INVALID_INPUT.httpStatus

readonly httpStatus: 400 = 400

SOURCES_INVALID_INPUT.message

readonly message: "Input inválido para la operación de sources" = 'Input inválido para la operación de sources'

SOURCES_INVALID_INPUT.retryable

readonly retryable: false = false

SOURCES_INVALID_INPUT.suggestedAction

readonly suggestedAction: "Revisar los parámetros de entrada (assetId, client profile)" = 'Revisar los parámetros de entrada (assetId, client profile)'

SOURCES_INVALID_KIND

readonly SOURCES_INVALID_KIND: object

SOURCES_INVALID_KIND.category

readonly category: "permanent" = 'permanent'

SOURCES_INVALID_KIND.code

readonly code: "SOURCES_INVALID_KIND" = 'SOURCES_INVALID_KIND'

SOURCES_INVALID_KIND.httpStatus

readonly httpStatus: 400 = 400

SOURCES_INVALID_KIND.message

readonly message: "SourceKind inválido para la fuente solicitada" = 'SourceKind inválido para la fuente solicitada'

SOURCES_INVALID_KIND.retryable

readonly retryable: false = false

SOURCES_INVALID_KIND.suggestedAction

readonly suggestedAction: "Verificar que el SourceKind está soportado por el adapter" = 'Verificar que el SourceKind está soportado por el adapter'

SOURCES_NATS_PUBLISH_FAILED

readonly SOURCES_NATS_PUBLISH_FAILED: object

SOURCES_NATS_PUBLISH_FAILED.category

readonly category: "transient" = 'transient'

SOURCES_NATS_PUBLISH_FAILED.code

readonly code: "SOURCES_NATS_PUBLISH_FAILED" = 'SOURCES_NATS_PUBLISH_FAILED'

SOURCES_NATS_PUBLISH_FAILED.httpStatus

readonly httpStatus: 503 = 503

SOURCES_NATS_PUBLISH_FAILED.message

readonly message: "Falló la publicación del evento NATS de sources" = 'Falló la publicación del evento NATS de sources'

SOURCES_NATS_PUBLISH_FAILED.retryable

readonly retryable: true = true

SOURCES_NATS_PUBLISH_FAILED.suggestedAction

readonly suggestedAction: "Revisar la conexión con NATS JetStream y reintentar" = 'Revisar la conexión con NATS JetStream y reintentar'

SOURCES_NO_ADAPTER

readonly SOURCES_NO_ADAPTER: object

SOURCES_NO_ADAPTER.category

readonly category: "permanent" = 'permanent'

SOURCES_NO_ADAPTER.code

readonly code: "SOURCES_NO_ADAPTER" = 'SOURCES_NO_ADAPTER'

SOURCES_NO_ADAPTER.httpStatus

readonly httpStatus: 501 = 501

SOURCES_NO_ADAPTER.message

readonly message: "No hay adapter source-sdk registrado para el SourceKind solicitado" = 'No hay adapter source-sdk registrado para el SourceKind solicitado'

SOURCES_NO_ADAPTER.retryable

readonly retryable: false = false

SOURCES_NO_ADAPTER.suggestedAction

readonly suggestedAction: "Registrar el adapter o usar un SourceKind soportado" = 'Registrar el adapter o usar un SourceKind soportado'

SOURCES_PROBE_FAILED

readonly SOURCES_PROBE_FAILED: object

SOURCES_PROBE_FAILED.category

readonly category: "transient" = 'transient'

SOURCES_PROBE_FAILED.code

readonly code: "SOURCES_PROBE_FAILED" = 'SOURCES_PROBE_FAILED'

SOURCES_PROBE_FAILED.httpStatus

readonly httpStatus: 502 = 502

SOURCES_PROBE_FAILED.message

readonly message: "El probe de la fuente falló" = 'El probe de la fuente falló'

SOURCES_PROBE_FAILED.retryable

readonly retryable: true = true

SOURCES_PROBE_FAILED.suggestedAction

readonly suggestedAction: "Reintentar; si persiste, revisar upstream (HTTP 5xx, file read, etc.)" = 'Reintentar; si persiste, revisar upstream (HTTP 5xx, file read, etc.)'

SOURCES_PROBE_TIMEOUT

readonly SOURCES_PROBE_TIMEOUT: object

SOURCES_PROBE_TIMEOUT.category

readonly category: "transient" = 'transient'

SOURCES_PROBE_TIMEOUT.code

readonly code: "SOURCES_PROBE_TIMEOUT" = 'SOURCES_PROBE_TIMEOUT'

SOURCES_PROBE_TIMEOUT.httpStatus

readonly httpStatus: 504 = 504

SOURCES_PROBE_TIMEOUT.message

readonly message: "El probe de la fuente excedió el timeout" = 'El probe de la fuente excedió el timeout'

SOURCES_PROBE_TIMEOUT.retryable

readonly retryable: true = true

SOURCES_PROBE_TIMEOUT.suggestedAction

readonly suggestedAction: "Reintentar con un timeout mayor o descartar la fuente" = 'Reintentar con un timeout mayor o descartar la fuente'

SOURCES_UPSTREAM_UNREACHABLE

readonly SOURCES_UPSTREAM_UNREACHABLE: object

SOURCES_UPSTREAM_UNREACHABLE.category

readonly category: "transient" = 'transient'

SOURCES_UPSTREAM_UNREACHABLE.code

readonly code: "SOURCES_UPSTREAM_UNREACHABLE" = 'SOURCES_UPSTREAM_UNREACHABLE'

SOURCES_UPSTREAM_UNREACHABLE.httpStatus

readonly httpStatus: 503 = 503

SOURCES_UPSTREAM_UNREACHABLE.message

readonly message: "Upstream de la fuente inaccesible (HTTP/torrent/S3/etc.)" = 'Upstream de la fuente inaccesible (HTTP/torrent/S3/etc.)'

SOURCES_UPSTREAM_UNREACHABLE.retryable

readonly retryable: true = true

SOURCES_UPSTREAM_UNREACHABLE.suggestedAction

readonly suggestedAction: "Verificar conectividad con el upstream y reintentar" = 'Verificar conectividad con el upstream y reintentar'

Variable: SOURCES_ERROR_METADATA
Type Declaration
SOURCES_ASSET_NOT_FOUND
SOURCES_ASSET_NOT_FOUND.category
SOURCES_ASSET_NOT_FOUND.code
SOURCES_ASSET_NOT_FOUND.httpStatus
SOURCES_ASSET_NOT_FOUND.message
SOURCES_ASSET_NOT_FOUND.retryable
SOURCES_ASSET_NOT_FOUND.suggestedAction
SOURCES_CATALOG_UNAVAILABLE
SOURCES_CATALOG_UNAVAILABLE.category
SOURCES_CATALOG_UNAVAILABLE.code
SOURCES_CATALOG_UNAVAILABLE.httpStatus
SOURCES_CATALOG_UNAVAILABLE.message
SOURCES_CATALOG_UNAVAILABLE.retryable
SOURCES_CATALOG_UNAVAILABLE.suggestedAction
SOURCES_DB_READ_FAILED
SOURCES_DB_READ_FAILED.category
SOURCES_DB_READ_FAILED.code
SOURCES_DB_READ_FAILED.httpStatus
SOURCES_DB_READ_FAILED.message
SOURCES_DB_READ_FAILED.retryable
SOURCES_DB_READ_FAILED.suggestedAction
SOURCES_DB_WRITE_FAILED
SOURCES_DB_WRITE_FAILED.category
SOURCES_DB_WRITE_FAILED.code
SOURCES_DB_WRITE_FAILED.httpStatus
SOURCES_DB_WRITE_FAILED.message
SOURCES_DB_WRITE_FAILED.retryable
SOURCES_DB_WRITE_FAILED.suggestedAction
SOURCES_INVALID_INPUT
SOURCES_INVALID_INPUT.category
SOURCES_INVALID_INPUT.code
SOURCES_INVALID_INPUT.httpStatus
SOURCES_INVALID_INPUT.message
SOURCES_INVALID_INPUT.retryable
SOURCES_INVALID_INPUT.suggestedAction
SOURCES_INVALID_KIND
SOURCES_INVALID_KIND.category
SOURCES_INVALID_KIND.code
SOURCES_INVALID_KIND.httpStatus
SOURCES_INVALID_KIND.message
SOURCES_INVALID_KIND.retryable
SOURCES_INVALID_KIND.suggestedAction
SOURCES_NATS_PUBLISH_FAILED
SOURCES_NATS_PUBLISH_FAILED.category
SOURCES_NATS_PUBLISH_FAILED.code
SOURCES_NATS_PUBLISH_FAILED.httpStatus
SOURCES_NATS_PUBLISH_FAILED.message
SOURCES_NATS_PUBLISH_FAILED.retryable
SOURCES_NATS_PUBLISH_FAILED.suggestedAction
SOURCES_NO_ADAPTER
SOURCES_NO_ADAPTER.category
SOURCES_NO_ADAPTER.code
SOURCES_NO_ADAPTER.httpStatus
SOURCES_NO_ADAPTER.message
SOURCES_NO_ADAPTER.retryable
SOURCES_NO_ADAPTER.suggestedAction
SOURCES_PROBE_FAILED
SOURCES_PROBE_FAILED.category
SOURCES_PROBE_FAILED.code
SOURCES_PROBE_FAILED.httpStatus
SOURCES_PROBE_FAILED.message
SOURCES_PROBE_FAILED.retryable
SOURCES_PROBE_FAILED.suggestedAction
SOURCES_PROBE_TIMEOUT
SOURCES_PROBE_TIMEOUT.category
SOURCES_PROBE_TIMEOUT.code
SOURCES_PROBE_TIMEOUT.httpStatus
SOURCES_PROBE_TIMEOUT.message
SOURCES_PROBE_TIMEOUT.retryable
SOURCES_PROBE_TIMEOUT.suggestedAction
SOURCES_UPSTREAM_UNREACHABLE
SOURCES_UPSTREAM_UNREACHABLE.category
SOURCES_UPSTREAM_UNREACHABLE.code
SOURCES_UPSTREAM_UNREACHABLE.httpStatus
SOURCES_UPSTREAM_UNREACHABLE.message
SOURCES_UPSTREAM_UNREACHABLE.retryable
SOURCES_UPSTREAM_UNREACHABLE.suggestedAction