Referencia de @styx/domain generada de su TSDoc.
packages/domain/package.jsonPágina generada desde
el TSDoc de @styx/domain. No se edita a mano:bun run docs:genla regenera ybun run docs:checkfalla si difiere.
constSOURCES_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.
readonlySOURCES_ASSET_NOT_FOUND:object
readonlycategory:"permanent"='permanent'
readonlycode:"SOURCES_ASSET_NOT_FOUND"='SOURCES_ASSET_NOT_FOUND'
readonlyhttpStatus:404=404
readonlymessage:"Asset no encontrado al resolver fuente"='Asset no encontrado al resolver fuente'
readonlyretryable:false=false
readonlysuggestedAction:"Verificar que el asset está indexado en catalog-svc"='Verificar que el asset está indexado en catalog-svc'
readonlySOURCES_CATALOG_UNAVAILABLE:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_CATALOG_UNAVAILABLE"='SOURCES_CATALOG_UNAVAILABLE'
readonlyhttpStatus:503=503
readonlymessage:"catalog-svc no responde al resolver fuente"='catalog-svc no responde al resolver fuente'
readonlyretryable:true=true
readonlysuggestedAction:"Verificar disponibilidad de catalog-svc y reintentar"='Verificar disponibilidad de catalog-svc y reintentar'
readonlySOURCES_DB_READ_FAILED:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_DB_READ_FAILED"='SOURCES_DB_READ_FAILED'
readonlyhttpStatus:503=503
readonlymessage:"Falló la lectura de Postgres (sources repo)"='Falló la lectura de Postgres (sources repo)'
readonlyretryable:true=true
readonlysuggestedAction:"Revisar la conexión con Postgres y reintentar"='Revisar la conexión con Postgres y reintentar'
readonlySOURCES_DB_WRITE_FAILED:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_DB_WRITE_FAILED"='SOURCES_DB_WRITE_FAILED'
readonlyhttpStatus:503=503
readonlymessage:"Falló la escritura a Postgres (sources repo)"='Falló la escritura a Postgres (sources repo)'
readonlyretryable:true=true
readonlysuggestedAction:"Revisar la conexión con Postgres y reintentar"='Revisar la conexión con Postgres y reintentar'
readonlySOURCES_INVALID_INPUT:object
readonlycategory:"permanent"='permanent'
readonlycode:"SOURCES_INVALID_INPUT"='SOURCES_INVALID_INPUT'
readonlyhttpStatus:400=400
readonlymessage:"Input inválido para la operación de sources"='Input inválido para la operación de sources'
readonlyretryable:false=false
readonlysuggestedAction:"Revisar los parámetros de entrada (assetId, client profile)"='Revisar los parámetros de entrada (assetId, client profile)'
readonlySOURCES_INVALID_KIND:object
readonlycategory:"permanent"='permanent'
readonlycode:"SOURCES_INVALID_KIND"='SOURCES_INVALID_KIND'
readonlyhttpStatus:400=400
readonlymessage:"SourceKind inválido para la fuente solicitada"='SourceKind inválido para la fuente solicitada'
readonlyretryable:false=false
readonlysuggestedAction:"Verificar que el SourceKind está soportado por el adapter"='Verificar que el SourceKind está soportado por el adapter'
readonlySOURCES_NATS_PUBLISH_FAILED:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_NATS_PUBLISH_FAILED"='SOURCES_NATS_PUBLISH_FAILED'
readonlyhttpStatus:503=503
readonlymessage:"Falló la publicación del evento NATS de sources"='Falló la publicación del evento NATS de sources'
readonlyretryable:true=true
readonlysuggestedAction:"Revisar la conexión con NATS JetStream y reintentar"='Revisar la conexión con NATS JetStream y reintentar'
readonlySOURCES_NO_ADAPTER:object
readonlycategory:"permanent"='permanent'
readonlycode:"SOURCES_NO_ADAPTER"='SOURCES_NO_ADAPTER'
readonlyhttpStatus:501=501
readonlymessage:"No hay adapter source-sdk registrado para el SourceKind solicitado"='No hay adapter source-sdk registrado para el SourceKind solicitado'
readonlyretryable:false=false
readonlysuggestedAction:"Registrar el adapter o usar un SourceKind soportado"='Registrar el adapter o usar un SourceKind soportado'
readonlySOURCES_PROBE_FAILED:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_PROBE_FAILED"='SOURCES_PROBE_FAILED'
readonlyhttpStatus:502=502
readonlymessage:"El probe de la fuente falló"='El probe de la fuente falló'
readonlyretryable:true=true
readonlysuggestedAction:"Reintentar; si persiste, revisar upstream (HTTP 5xx, file read, etc.)"='Reintentar; si persiste, revisar upstream (HTTP 5xx, file read, etc.)'
readonlySOURCES_PROBE_TIMEOUT:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_PROBE_TIMEOUT"='SOURCES_PROBE_TIMEOUT'
readonlyhttpStatus:504=504
readonlymessage:"El probe de la fuente excedió el timeout"='El probe de la fuente excedió el timeout'
readonlyretryable:true=true
readonlysuggestedAction:"Reintentar con un timeout mayor o descartar la fuente"='Reintentar con un timeout mayor o descartar la fuente'
readonlySOURCES_UPSTREAM_UNREACHABLE:object
readonlycategory:"transient"='transient'
readonlycode:"SOURCES_UPSTREAM_UNREACHABLE"='SOURCES_UPSTREAM_UNREACHABLE'
readonlyhttpStatus:503=503
readonlymessage:"Upstream de la fuente inaccesible (HTTP/torrent/S3/etc.)"='Upstream de la fuente inaccesible (HTTP/torrent/S3/etc.)'
readonlyretryable:true=true
readonlysuggestedAction:"Verificar conectividad con el upstream y reintentar"='Verificar conectividad con el upstream y reintentar'