core/src
Mostlyright TypeScript SDK / core/src
core/src
Section titled “core/src”Classes
Section titled “Classes”AuthenticationError
Section titled “AuthenticationError”Defined in: packages-ts/core/src/exceptions/index.ts:723
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new AuthenticationError()
Section titled “new AuthenticationError()”new AuthenticationError(
message,options):AuthenticationError
Defined in: packages-ts/core/src/exceptions/index.ts:726
Parameters
Section titled “Parameters”message
Section titled “message”string = "Authentication required"
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_UNAUTHORIZED"
Defined in: packages-ts/core/src/exceptions/index.ts:724
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”DataAvailabilityError
Section titled “DataAvailabilityError”Defined in: packages-ts/core/src/exceptions/index.ts:233
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”new DataAvailabilityError()
Section titled “new DataAvailabilityError()”new DataAvailabilityError(
options):DataAvailabilityError
Defined in: packages-ts/core/src/exceptions/index.ts:239
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="DATA_AVAILABILITY"
Defined in: packages-ts/core/src/exceptions/index.ts:234
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”
readonlyhint:string
Defined in: packages-ts/core/src/exceptions/index.ts:237
reason
Section titled “reason”
readonlyreason:"model_unavailable"|"out_of_window"|"cache_miss"|"source_404"|"source_5xx"|"rate_limited"
Defined in: packages-ts/core/src/exceptions/index.ts:236
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”DeferredMarketError
Section titled “DeferredMarketError”Defined in: packages-ts/core/src/exceptions/index.ts:641
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new DeferredMarketError()
Section titled “new DeferredMarketError()”new DeferredMarketError(
message,options):DeferredMarketError
Defined in: packages-ts/core/src/exceptions/index.ts:130
Parameters
Section titled “Parameters”message
Section titled “message”string = ""
options
Section titled “options”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="DEFERRED_MARKET"
Defined in: packages-ts/core/src/exceptions/index.ts:642
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”ForbiddenError
Section titled “ForbiddenError”Defined in: packages-ts/core/src/exceptions/index.ts:731
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new ForbiddenError()
Section titled “new ForbiddenError()”new ForbiddenError(
message,options):ForbiddenError
Defined in: packages-ts/core/src/exceptions/index.ts:734
Parameters
Section titled “Parameters”message
Section titled “message”string = "Access denied"
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_FORBIDDEN"
Defined in: packages-ts/core/src/exceptions/index.ts:732
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”IssuedAtMissingError
Section titled “IssuedAtMissingError”Defined in: packages-ts/core/src/exceptions/index.ts:492
A forecast row would land with issuedAt = null.
Phase 20 OM-04. Origin: Tarabcak/mostlyright#70 — the legacy
seamless-feed bug where /forecast_series proxied Open-Meteo’s
seamless endpoint without preserving issued_at, silently using
post-snapshot model runs in training data.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new IssuedAtMissingError()
Section titled “new IssuedAtMissingError()”new IssuedAtMissingError(
message,options):IssuedAtMissingError
Defined in: packages-ts/core/src/exceptions/index.ts:497
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”IssuedAtMissingErrorOptions = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”SchemaValidationError.constructor
Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="ISSUED_AT_MISSING"
Defined in: packages-ts/core/src/exceptions/index.ts:493
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”SchemaValidationError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”SchemaValidationError.errorCode
quarantineCount
Section titled “quarantineCount”
readonlyquarantineCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:372
Inherited from
Section titled “Inherited from”SchemaValidationError.quarantineCount
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”SchemaValidationError.requestId
sampleViolations
Section titled “sampleViolations”
readonlysampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:373
Inherited from
Section titled “Inherited from”SchemaValidationError.sampleViolations
schemaId
Section titled “schemaId”
readonlyschemaId:string
Defined in: packages-ts/core/src/exceptions/index.ts:370
Inherited from
Section titled “Inherited from”SchemaValidationError.schemaId
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”violatingCountRows
Section titled “violatingCountRows”
readonlyviolatingCountRows:number
Defined in: packages-ts/core/src/exceptions/index.ts:495
violations
Section titled “violations”
readonlyviolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:371
Inherited from
Section titled “Inherited from”SchemaValidationError.violations
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”LeakageError
Section titled “LeakageError”Defined in: packages-ts/core/src/exceptions/index.ts:451
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”new LeakageError()
Section titled “new LeakageError()”new LeakageError(
message,options):LeakageError
Defined in: packages-ts/core/src/exceptions/index.ts:458
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlyasOf:string
Defined in: packages-ts/core/src/exceptions/index.ts:454
defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="LEAKAGE_DETECTED"
Defined in: packages-ts/core/src/exceptions/index.ts:452
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”sampleViolations
Section titled “sampleViolations”
readonlysampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:456
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”violatingCount
Section titled “violatingCount”
readonlyviolatingCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:455
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”LiveStreamError
Section titled “LiveStreamError”Defined in: packages-ts/core/src/exceptions/index.ts:759
Base class for mostlyright.live.stream / live.latest failures.
Mirrors Python LiveStreamError. Live-streaming errors are a separate
sub-tree from SourceUnavailableError because the recovery path differs —
stream() swallows empty-tick errors and waits for the next polite-floor
cycle. Only latest() raises NoLiveDataError on empty responses.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”new LiveStreamError()
Section titled “new LiveStreamError()”new LiveStreamError(
message,options):LiveStreamError
Defined in: packages-ts/core/src/exceptions/index.ts:130
Parameters
Section titled “Parameters”message
Section titled “message”string = ""
options
Section titled “options”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="LIVE_STREAM_ERROR"
Defined in: packages-ts/core/src/exceptions/index.ts:760
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”MostlyRightError
Section titled “MostlyRightError”Defined in: packages-ts/core/src/exceptions/index.ts:122
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”SourceUnavailableErrorDataAvailabilityErrorSchemaValidationErrorSourceMismatchErrorLeakageErrorTemporalDriftErrorPayloadTooLargeErrorDeferredMarketErrorPolymarketEventErrorTherminalErrorLiveStreamErrorUnknownSchemaError
Constructors
Section titled “Constructors”new MostlyRightError()
Section titled “new MostlyRightError()”new MostlyRightError(
message,options):MostlyRightError
Defined in: packages-ts/core/src/exceptions/index.ts:130
Parameters
Section titled “Parameters”message
Section titled “message”string = ""
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="MOSTLYRIGHT_ERROR"
Defined in: packages-ts/core/src/exceptions/index.ts:124
Subclass override — the stable string enum surfaced via errorCode.
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
NoLiveDataError
Section titled “NoLiveDataError”Defined in: packages-ts/core/src/exceptions/index.ts:775
mostlyright.live.latest returned no observations for the station.
Carries the resolved ICAO station and the canonical source identity
tag ("awc.live" / "iem.live") so caller logs can branch by source
without re-parsing the message.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new NoLiveDataError()
Section titled “new NoLiveDataError()”new NoLiveDataError(
message,options):NoLiveDataError
Defined in: packages-ts/core/src/exceptions/index.ts:780
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="NO_LIVE_DATA"
Defined in: packages-ts/core/src/exceptions/index.ts:776
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”LiveStreamError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”station
Section titled “station”
readonlystation:string
Defined in: packages-ts/core/src/exceptions/index.ts:778
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”NotFoundError
Section titled “NotFoundError”Defined in: packages-ts/core/src/exceptions/index.ts:684
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new NotFoundError()
Section titled “new NotFoundError()”new NotFoundError(
message,options):NotFoundError
Defined in: packages-ts/core/src/exceptions/index.ts:687
Parameters
Section titled “Parameters”message
Section titled “message”string = "Resource not found"
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_NOT_FOUND"
Defined in: packages-ts/core/src/exceptions/index.ts:685
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”NwpNotAvailableError
Section titled “NwpNotAvailableError”Defined in: packages-ts/core/src/exceptions/index.ts:324
Raised when the TS forecastNwp() stub is called.
Why this exists: no production-ready browser GRIB2 decoder ships in v1.x (eccodes / cfgrib are C/Python only; WASM compile-time + bundle size make a browser port impractical today). The function signature is stable so callers can write code today; v2.0+ lands the execution body.
Recommended catch pattern:
import { forecastNwp } from '@mostlyrightmd/weather';import { NwpNotAvailableError } from '@mostlyrightmd/core';
try { const grid = await forecastNwp('KNYC', 'gfs');} catch (e) { if (e instanceof NwpNotAvailableError) { console.warn(`NWP deferred to v2.0+; ${e.hint}`); // Fall back to iemMosForecasts() when available, else Python SDK. } else { throw e; }}See docs/nwp-forecasts.md for the full architectural rationale and the v2.0+ roadmap.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new NwpNotAvailableError()
Section titled “new NwpNotAvailableError()”new NwpNotAvailableError(
options):NwpNotAvailableError
Defined in: packages-ts/core/src/exceptions/index.ts:330
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”DataAvailabilityError.constructor
Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="NWP_NOT_AVAILABLE"
Defined in: packages-ts/core/src/exceptions/index.ts:325
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”DataAvailabilityError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”DataAvailabilityError.errorCode
readonlyhint:string
Defined in: packages-ts/core/src/exceptions/index.ts:237
Inherited from
Section titled “Inherited from”
readonlymodel:string
Defined in: packages-ts/core/src/exceptions/index.ts:328
reason
Section titled “reason”
readonlyreason:"model_unavailable"|"out_of_window"|"cache_miss"|"source_404"|"source_5xx"|"rate_limited"
Defined in: packages-ts/core/src/exceptions/index.ts:236
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”DataAvailabilityError.requestId
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”station
Section titled “station”
readonlystation:string
Defined in: packages-ts/core/src/exceptions/index.ts:327
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”OpenMeteoSeamlessLeakageError
Section titled “OpenMeteoSeamlessLeakageError”Defined in: packages-ts/core/src/exceptions/index.ts:538
The Open-Meteo Historical Forecast (seamless) endpoint was used
without allowLeakage: true.
Phase 20 D-01 (locked decision): the seamless endpoint silently
stitches forecasts from multiple model cycles into a continuous
timeseries; the cycle that produced each value is unrecoverable from
the response. LeakageDetector rejects rows tagged
source="open_meteo.seamless" whenever as_of is asserted.
Origin: Tarabcak/mostlyright#70.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new OpenMeteoSeamlessLeakageError()
Section titled “new OpenMeteoSeamlessLeakageError()”new OpenMeteoSeamlessLeakageError(
message,options):OpenMeteoSeamlessLeakageError
Defined in: packages-ts/core/src/exceptions/index.ts:544
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”OpenMeteoSeamlessLeakageErrorOptions
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”
readonlyasOf:string
Defined in: packages-ts/core/src/exceptions/index.ts:454
Inherited from
Section titled “Inherited from”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="OPEN_METEO_SEAMLESS_LEAKAGE"
Defined in: packages-ts/core/src/exceptions/index.ts:539
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”endpointUrl
Section titled “endpointUrl”
readonlyendpointUrl:string
Defined in: packages-ts/core/src/exceptions/index.ts:542
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”
readonlymodel:string
Defined in: packages-ts/core/src/exceptions/index.ts:541
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”sampleViolations
Section titled “sampleViolations”
readonlysampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:456
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”violatingCount
Section titled “violatingCount”
readonlyviolatingCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:455
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”PayloadTooLargeError
Section titled “PayloadTooLargeError”Defined in: packages-ts/core/src/exceptions/index.ts:613
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new PayloadTooLargeError()
Section titled “new PayloadTooLargeError()”new PayloadTooLargeError(
message,options):PayloadTooLargeError
Defined in: packages-ts/core/src/exceptions/index.ts:620
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”acceptedModes
Section titled “acceptedModes”
readonlyacceptedModes:string[]
Defined in: packages-ts/core/src/exceptions/index.ts:618
declaredSize
Section titled “declaredSize”
readonlydeclaredSize:number
Defined in: packages-ts/core/src/exceptions/index.ts:616
defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="PAYLOAD_TOO_LARGE"
Defined in: packages-ts/core/src/exceptions/index.ts:614
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”
readonlylimit:number
Defined in: packages-ts/core/src/exceptions/index.ts:617
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”PolymarketEventError
Section titled “PolymarketEventError”Defined in: packages-ts/core/src/exceptions/index.ts:649
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new PolymarketEventError()
Section titled “new PolymarketEventError()”new PolymarketEventError(
message,options):PolymarketEventError
Defined in: packages-ts/core/src/exceptions/index.ts:130
Parameters
Section titled “Parameters”message
Section titled “message”string = ""
options
Section titled “options”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="POLYMARKET_EVENT_INVALID"
Defined in: packages-ts/core/src/exceptions/index.ts:650
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”RateLimitError
Section titled “RateLimitError”Defined in: packages-ts/core/src/exceptions/index.ts:696
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new RateLimitError()
Section titled “new RateLimitError()”new RateLimitError(
retryAfter,options):RateLimitError
Defined in: packages-ts/core/src/exceptions/index.ts:701
Parameters
Section titled “Parameters”retryAfter
Section titled “retryAfter”null | number
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_RATE_LIMITED"
Defined in: packages-ts/core/src/exceptions/index.ts:697
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”retryAfter
Section titled “retryAfter”
readonlyretryAfter:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:699
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”SchemaValidationError
Section titled “SchemaValidationError”Defined in: packages-ts/core/src/exceptions/index.ts:367
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”new SchemaValidationError()
Section titled “new SchemaValidationError()”new SchemaValidationError(
message,options):SchemaValidationError
Defined in: packages-ts/core/src/exceptions/index.ts:375
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="SCHEMA_VALIDATION_FAILED"
Defined in: packages-ts/core/src/exceptions/index.ts:368
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”quarantineCount
Section titled “quarantineCount”
readonlyquarantineCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:372
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”sampleViolations
Section titled “sampleViolations”
readonlysampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:373
schemaId
Section titled “schemaId”
readonlyschemaId:string
Defined in: packages-ts/core/src/exceptions/index.ts:370
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”violations
Section titled “violations”
readonlyviolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:371
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”ServerError
Section titled “ServerError”Defined in: packages-ts/core/src/exceptions/index.ts:739
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new ServerError()
Section titled “new ServerError()”new ServerError(
message,options):ServerError
Defined in: packages-ts/core/src/exceptions/index.ts:742
Parameters
Section titled “Parameters”message
Section titled “message”string = "Server error"
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_SERVER_ERROR"
Defined in: packages-ts/core/src/exceptions/index.ts:740
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”SourceMismatchError
Section titled “SourceMismatchError”Defined in: packages-ts/core/src/exceptions/index.ts:407
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new SourceMismatchError()
Section titled “new SourceMismatchError()”new SourceMismatchError(
message,options):SourceMismatchError
Defined in: packages-ts/core/src/exceptions/index.ts:422
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”catalogWarning
Section titled “catalogWarning”
readonlycatalogWarning:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:420
dataSource
Section titled “dataSource”
readonlydataSource:string
Defined in: packages-ts/core/src/exceptions/index.ts:418
defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="SOURCE_MISMATCH"
Defined in: packages-ts/core/src/exceptions/index.ts:408
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”
readonlyrole:null|SourceMismatchRole
Defined in: packages-ts/core/src/exceptions/index.ts:419
schemaSource
Section titled “schemaSource”
readonlyschemaSource:string
Defined in: packages-ts/core/src/exceptions/index.ts:417
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”VALID_ROLES
Section titled “VALID_ROLES”
readonlystaticVALID_ROLES:ReadonlySet<SourceMismatchRole>
Defined in: packages-ts/core/src/exceptions/index.ts:411
Canonical role-name vocabulary (design.md §R).
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”SourceUnavailableError
Section titled “SourceUnavailableError”Defined in: packages-ts/core/src/exceptions/index.ts:175
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new SourceUnavailableError()
Section titled “new SourceUnavailableError()”new SourceUnavailableError(
message,options):SourceUnavailableError
Defined in: packages-ts/core/src/exceptions/index.ts:184
Parameters
Section titled “Parameters”message
Section titled “message”string = ""
options
Section titled “options”SourceUnavailableErrorOptions = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="SOURCE_UNAVAILABLE"
Defined in: packages-ts/core/src/exceptions/index.ts:176
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”httpStatus
Section titled “httpStatus”
readonlyhttpStatus:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:178
requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”retryable
Section titled “retryable”
readonlyretryable:boolean
Defined in: packages-ts/core/src/exceptions/index.ts:179
retryAfterS
Section titled “retryAfterS”
readonlyretryAfterS:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:180
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”underlying
Section titled “underlying”
readonlyunderlying:string
Defined in: packages-ts/core/src/exceptions/index.ts:181
readonlyurl:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:182
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”StationCatalog
Section titled “StationCatalog”Defined in: packages-ts/core/src/stations/index.ts:33
Read-only view over the station registry with venue/country filters.
Lookups accept either the registry code (3-letter NWS code for US stations,
ICAO for international) or the 4-letter ICAO directly, so get("NYC"),
get("KNYC"), and get("EGLL") all resolve.
Constructors
Section titled “Constructors”new StationCatalog()
Section titled “new StationCatalog()”new StationCatalog(
stations):StationCatalog
Defined in: packages-ts/core/src/stations/index.ts:38
Parameters
Section titled “Parameters”stations
Section titled “stations”readonly StationInfo[] = STATIONS
Returns
Section titled “Returns”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get size():
number
Defined in: packages-ts/core/src/stations/index.ts:98
Returns
Section titled “Returns”number
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
Iterator<StationInfo>
Defined in: packages-ts/core/src/stations/index.ts:102
Returns
Section titled “Returns”Iterator<StationInfo>
filterByCountry()
Section titled “filterByCountry()”filterByCountry(
country):StationInfo[]
Defined in: packages-ts/core/src/stations/index.ts:78
Stations whose ISO 3166-1 alpha-2 country matches, sorted by ICAO.
Parameters
Section titled “Parameters”country
Section titled “country”string
Returns
Section titled “Returns”filterByVenue()
Section titled “filterByVenue()”filterByVenue(
venue):StationInfo[]
Defined in: packages-ts/core/src/stations/index.ts:71
Stations tagged with venue (e.g. “kalshi”), sorted by ICAO.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”get(
code):StationInfo
Defined in: packages-ts/core/src/stations/index.ts:60
Return the station for code (registry code or ICAO).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”if no station matches.
has(
code):boolean
Defined in: packages-ts/core/src/stations/index.ts:94
True iff code resolves to a station (by registry code or ICAO).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
venues()
Section titled “venues()”venues():
ReadonlySet<string>
Defined in: packages-ts/core/src/stations/index.ts:85
Union of all venue tags present in the catalog.
Returns
Section titled “Returns”ReadonlySet<string>
TemporalDriftError
Section titled “TemporalDriftError”Defined in: packages-ts/core/src/exceptions/index.ts:576
Base class for all mostlyright structured errors.
errorCode is a stable enum (e.g. “SOURCE_UNAVAILABLE”) used by callers /
agents to branch on without parsing message text. source is the source id
involved (e.g. “iem.archive”) when applicable, and requestId correlates a
JSON-RPC / MCP request id when applicable.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new TemporalDriftError()
Section titled “new TemporalDriftError()”new TemporalDriftError(
message,options):TemporalDriftError
Defined in: packages-ts/core/src/exceptions/index.ts:584
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”assertedRange
Section titled “assertedRange”
readonlyassertedRange: [string,string]
Defined in: packages-ts/core/src/exceptions/index.ts:580
defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="TEMPORAL_DRIFT"
Defined in: packages-ts/core/src/exceptions/index.ts:577
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”sampleViolations
Section titled “sampleViolations”
readonlysampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:582
schemaId
Section titled “schemaId”
readonlyschemaId:string
Defined in: packages-ts/core/src/exceptions/index.ts:579
source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”violatingRows
Section titled “violatingRows”
readonlyviolatingRows:number
Defined in: packages-ts/core/src/exceptions/index.ts:581
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”TherminalError
Section titled “TherminalError”Defined in: packages-ts/core/src/exceptions/index.ts:666
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”new TherminalError()
Section titled “new TherminalError()”new TherminalError(
message,options):TherminalError
Defined in: packages-ts/core/src/exceptions/index.ts:671
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_ERROR"
Defined in: packages-ts/core/src/exceptions/index.ts:667
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”MostlyRightError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”ValidationError
Section titled “ValidationError”Defined in: packages-ts/core/src/exceptions/index.ts:715
Base HTTP-layer marker. Subclass of MostlyRightError so callers that
catch MostlyRightError also catch transport errors.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”new ValidationError()
Section titled “new ValidationError()”new ValidationError(
message,options):ValidationError
Defined in: packages-ts/core/src/exceptions/index.ts:718
Parameters
Section titled “Parameters”message
Section titled “message”string = "Invalid request"
options
Section titled “options”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”defaultErrorCode
Section titled “defaultErrorCode”
staticdefaultErrorCode:string="HTTP_BAD_REQUEST"
Defined in: packages-ts/core/src/exceptions/index.ts:716
Subclass override — the stable string enum surfaced via errorCode.
Overrides
Section titled “Overrides”TherminalError.defaultErrorCode
errorCode
Section titled “errorCode”
readonlyerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:126
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”
readonlyrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:128
Inherited from
Section titled “Inherited from”source
Section titled “source”
readonlysource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:127
Inherited from
Section titled “Inherited from”statusCode
Section titled “statusCode”
readonlystatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:669
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toDict()
Section titled “toDict()”toDict():
Record<string,unknown>
Defined in: packages-ts/core/src/exceptions/index.ts:157
Return a JSON-safe dict suitable for MCP error.data.
Returns
Section titled “Returns”Record<string, unknown>
Inherited from
Section titled “Inherited from”Interfaces
Section titled “Interfaces”DataAvailabilityErrorOptions
Section titled “DataAvailabilityErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:228
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
hint:
string
Defined in: packages-ts/core/src/exceptions/index.ts:230
reason
Section titled “reason”reason:
"model_unavailable"|"out_of_window"|"cache_miss"|"source_404"|"source_5xx"|"rate_limited"
Defined in: packages-ts/core/src/exceptions/index.ts:229
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
FetchWithRetryOptions
Section titled “FetchWithRetryOptions”Defined in: packages-ts/core/src/internal/http.ts:38
Properties
Section titled “Properties”baseDelayMs?
Section titled “baseDelayMs?”
optionalbaseDelayMs:number
Defined in: packages-ts/core/src/internal/http.ts:40
Base backoff delay in milliseconds (default 1000).
optionalbody:null|BodyInit
Defined in: packages-ts/core/src/internal/http.ts:56
Optional request body (forwarded to fetch).
headers?
Section titled “headers?”
optionalheaders:Record<string,string>
Defined in: packages-ts/core/src/internal/http.ts:50
Request headers.
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries:number
Defined in: packages-ts/core/src/internal/http.ts:42
Total attempts (default 3).
method?
Section titled “method?”
optionalmethod:string
Defined in: packages-ts/core/src/internal/http.ts:54
HTTP method (default GET).
retryStatuses?
Section titled “retryStatuses?”
optionalretryStatuses:ReadonlySet<number>
Defined in: packages-ts/core/src/internal/http.ts:46
Statuses that trigger a retry. Default {429, 500, 502, 503, 504}.
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: packages-ts/core/src/internal/http.ts:48
Caller-supplied abort signal (composed with per-attempt timeout).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs:number
Defined in: packages-ts/core/src/internal/http.ts:44
Per-attempt timeout in milliseconds (default 60_000).
userAgent?
Section titled “userAgent?”
optionaluserAgent:string
Defined in: packages-ts/core/src/internal/http.ts:52
Convenience: set the User-Agent header.
ForecastIemMosV1
Section titled “ForecastIemMosV1”Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:5
Properties
Section titled “Properties”apparent_temp_c?
Section titled “apparent_temp_c?”
optionalapparent_temp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:9
units: celsius
cape_jkg?
Section titled “cape_jkg?”
optionalcape_jkg:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:13
units: J/kg
cloud_cover_pct?
Section titled “cloud_cover_pct?”
optionalcloud_cover_pct:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:17
units: percent
dew_point_c?
Section titled “dew_point_c?”
optionaldew_point_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:21
units: celsius
direct_radiation_wm2?
Section titled “direct_radiation_wm2?”
optionaldirect_radiation_wm2:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:25
units: W/m^2
forecast_hour
Section titled “forecast_hour”forecast_hour:
number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:29
units: hours — (valid_at - issued_at).total_seconds() / 3600
freezing_level_m?
Section titled “freezing_level_m?”
optionalfreezing_level_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:33
units: meters
issued_at?
Section titled “issued_at?”
optionalissued_at:null|string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:37
model run time (knowledge_time). Nullable to accommodate Phase 20 open_meteo.seamless rows whose cycle is unrecoverable from the response. LeakageDetector + assert_issued_at_populated() are the runtime gates that reject null issued_at in training-data paths.
model:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:41
e.g. NBE, GFS, LAV, MET, gfs_global, ecmwf_ifs025
precip_probability?
Section titled “precip_probability?”
optionalprecip_probability:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:45
units: probability — bounded [0, 1]
precipitation_mm?
Section titled “precipitation_mm?”
optionalprecipitation_mm:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:49
units: mm
pressure_msl_hpa?
Section titled “pressure_msl_hpa?”
optionalpressure_msl_hpa:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:53
units: hPa
retrieved_at
Section titled “retrieved_at”retrieved_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:57
wall-clock time the row was fetched from upstream
shortwave_radiation_wm2?
Section titled “shortwave_radiation_wm2?”
optionalshortwave_radiation_wm2:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:61
units: W/m^2
sky_cover_pct?
Section titled “sky_cover_pct?”
optionalsky_cover_pct:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:65
units: percent — bounded [0, 100]
snow_depth_m?
Section titled “snow_depth_m?”
optionalsnow_depth_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:69
units: meters
source
Section titled “source”source:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:73
iem.archive | open_meteo.previous_runs | open_meteo.single_run | open_meteo.live
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:74
surface_pressure_hpa?
Section titled “surface_pressure_hpa?”
optionalsurface_pressure_hpa:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:78
units: hPa
temp_c?
Section titled “temp_c?”
optionaltemp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:82
units: celsius
valid_at
Section titled “valid_at”valid_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:86
forecast target time (event_time)
visibility_m?
Section titled “visibility_m?”
optionalvisibility_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:90
units: meters
weather_code?
Section titled “weather_code?”
optionalweather_code:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:94
units: WMO 4677 — WMO weather code (clear, fog, rain, snow, etc.)
wind_dir_deg?
Section titled “wind_dir_deg?”
optionalwind_dir_deg:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:98
units: degrees
wind_gusts_ms?
Section titled “wind_gusts_ms?”
optionalwind_gusts_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:102
units: m/s
wind_speed_ms?
Section titled “wind_speed_ms?”
optionalwind_speed_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.iem_mos.v1.ts:106
units: m/s
ForecastNwpV1
Section titled “ForecastNwpV1”Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:5
Properties
Section titled “Properties”cloud_ceiling_m?
Section titled “cloud_ceiling_m?”
optionalcloud_ceiling_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:9
units: m
cloud_cover_pct?
Section titled “cloud_cover_pct?”
optionalcloud_cover_pct:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:13
units: percent
dewpoint_k_2m?
Section titled “dewpoint_k_2m?”
optionaldewpoint_k_2m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:17
units: K
forecast_hour
Section titled “forecast_hour”forecast_hour:
number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:21
units: hours — lead time in hours (alias: fxx)
grid_dist_km
Section titled “grid_dist_km”grid_dist_km:
number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:25
units: km — great-circle distance from station to nearest grid cell
grid_kind
Section titled “grid_kind”grid_kind:
string
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:29
grid-projection label (lambert_conformal_conus, regular_latlon_global_0p25, …)
issued_at
Section titled “issued_at”issued_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:33
model run / cycle reference time
mirror
Section titled “mirror”mirror:
"aws_bdp"|"azure_bdp"|"ecmwf_aws"|"ecmwf_azure"|"ecmwf_data_portal"|"ecmwf_gcp"|"gcp_bdp"|"msc"|"nomads"
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:37
NOAA BDP mirror that served the underlying bytes
model:
"cfs"|"ecmwf_aifs_ens"|"ecmwf_aifs_single"|"ecmwf_ifs_ens"|"ecmwf_ifs_hres"|"gdas"|"gdps"|"gefs"|"geps"|"gfs"|"hafs"|"hiresw"|"hrdps"|"href"|"hrrr"|"hrrrak"|"nam"|"nbm"|"rap"|"rdps"|"reps"|"rrfs"|"rtma"|"urma"
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:47
precip_mm_1h?
Section titled “precip_mm_1h?”
optionalprecip_mm_1h:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:75
units: mm
pressure_pa_mslp?
Section titled “pressure_pa_mslp?”
optionalpressure_pa_mslp:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:79
units: Pa
pressure_pa_surface?
Section titled “pressure_pa_surface?”
optionalpressure_pa_surface:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:83
units: Pa
qc_status
Section titled “qc_status”qc_status:
"clean"|"flagged"|"suspect"
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:87
inline physics-bounds verdict; finer-grained QC lands in Phase 3.4
relative_humidity_pct_2m?
Section titled “relative_humidity_pct_2m?”
optionalrelative_humidity_pct_2m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:91
units: percent
retrieved_at
Section titled “retrieved_at”retrieved_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:95
wall-clock UTC when the bytes were fetched
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:96
temp_k_2m?
Section titled “temp_k_2m?”
optionaltemp_k_2m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:100
units: K
valid_at
Section titled “valid_at”valid_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:104
forecast target time = issued_at + forecast_hour
visibility_m?
Section titled “visibility_m?”
optionalvisibility_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:108
units: m
wind_gust_ms?
Section titled “wind_gust_ms?”
optionalwind_gust_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:112
units: m/s
wind_u_ms_10m?
Section titled “wind_u_ms_10m?”
optionalwind_u_ms_10m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:116
units: m/s
wind_v_ms_10m?
Section titled “wind_v_ms_10m?”
optionalwind_v_ms_10m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast_nwp.v1.ts:120
units: m/s
ForecastStationV1
Section titled “ForecastStationV1”Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:5
Properties
Section titled “Properties”apparent_temp_c?
Section titled “apparent_temp_c?”
optionalapparent_temp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:9
units: celsius
cape_jkg?
Section titled “cape_jkg?”
optionalcape_jkg:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:13
units: J/kg
cloud_cover_pct?
Section titled “cloud_cover_pct?”
optionalcloud_cover_pct:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:17
units: percent
dew_point_c?
Section titled “dew_point_c?”
optionaldew_point_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:21
units: celsius
direct_radiation_wm2?
Section titled “direct_radiation_wm2?”
optionaldirect_radiation_wm2:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:25
units: W/m^2
forecast_hour
Section titled “forecast_hour”forecast_hour:
number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:29
units: hours — (valid_at - issued_at).total_seconds() / 3600
freezing_level_m?
Section titled “freezing_level_m?”
optionalfreezing_level_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:33
units: meters
issued_at?
Section titled “issued_at?”
optionalissued_at:null|string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:37
model run time (knowledge_time). Nullable to accommodate Phase 20 open_meteo.seamless rows whose cycle is unrecoverable from the response. LeakageDetector + assert_issued_at_populated() are the runtime gates that reject null issued_at in training-data paths.
model:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:41
e.g. NBE, GFS, LAV, MET, gfs_global, ecmwf_ifs025
precip_probability?
Section titled “precip_probability?”
optionalprecip_probability:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:45
units: probability — bounded [0, 1]
precipitation_mm?
Section titled “precipitation_mm?”
optionalprecipitation_mm:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:49
units: mm
pressure_msl_hpa?
Section titled “pressure_msl_hpa?”
optionalpressure_msl_hpa:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:53
units: hPa
retrieved_at
Section titled “retrieved_at”retrieved_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:57
wall-clock time the row was fetched from upstream
shortwave_radiation_wm2?
Section titled “shortwave_radiation_wm2?”
optionalshortwave_radiation_wm2:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:61
units: W/m^2
sky_cover_pct?
Section titled “sky_cover_pct?”
optionalsky_cover_pct:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:65
units: percent — bounded [0, 100]
snow_depth_m?
Section titled “snow_depth_m?”
optionalsnow_depth_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:69
units: meters
source
Section titled “source”source:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:73
iem.archive | open_meteo.previous_runs | open_meteo.single_run | open_meteo.live
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:74
surface_pressure_hpa?
Section titled “surface_pressure_hpa?”
optionalsurface_pressure_hpa:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:78
units: hPa
temp_c?
Section titled “temp_c?”
optionaltemp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:82
units: celsius
valid_at
Section titled “valid_at”valid_at:
string
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:86
forecast target time (event_time)
visibility_m?
Section titled “visibility_m?”
optionalvisibility_m:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:90
units: meters
weather_code?
Section titled “weather_code?”
optionalweather_code:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:94
units: WMO 4677 — WMO weather code (clear, fog, rain, snow, etc.)
wind_dir_deg?
Section titled “wind_dir_deg?”
optionalwind_dir_deg:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:98
units: degrees
wind_gusts_ms?
Section titled “wind_gusts_ms?”
optionalwind_gusts_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:102
units: m/s
wind_speed_ms?
Section titled “wind_speed_ms?”
optionalwind_speed_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/forecast.station.v1.ts:106
units: m/s
IssuedAtMissingErrorOptions
Section titled “IssuedAtMissingErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:479
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
sampleViolations?
Section titled “sampleViolations?”
optionalsampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:481
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
violatingCount?
Section titled “violatingCount?”
optionalviolatingCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:480
LeakageErrorOptions
Section titled “LeakageErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:445
Extends
Section titled “Extends”Properties
Section titled “Properties”asOf:
string
Defined in: packages-ts/core/src/exceptions/index.ts:446
errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
sampleViolations?
Section titled “sampleViolations?”
optionalsampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:448
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
violatingCount
Section titled “violatingCount”violatingCount:
number
Defined in: packages-ts/core/src/exceptions/index.ts:447
MostlyRightErrorOptions
Section titled “MostlyRightErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:108
Extended by
Section titled “Extended by”SourceUnavailableErrorOptionsDataAvailabilityErrorOptionsNwpNotAvailableErrorOptionsSchemaValidationErrorOptionsSourceMismatchErrorOptionsLeakageErrorOptionsIssuedAtMissingErrorOptionsOpenMeteoSeamlessLeakageErrorOptionsTemporalDriftErrorOptionsPayloadTooLargeErrorOptionsTherminalErrorOptionsNoLiveDataErrorOptions
Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
NoLiveDataErrorOptions
Section titled “NoLiveDataErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:763
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
source
Section titled “source”source:
string
Defined in: packages-ts/core/src/exceptions/index.ts:765
Overrides
Section titled “Overrides”MostlyRightErrorOptions.source
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/exceptions/index.ts:764
NwpNotAvailableErrorOptions
Section titled “NwpNotAvailableErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:286
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
hint:
string
Defined in: packages-ts/core/src/exceptions/index.ts:292
Operator-actionable hint. Required (matches DataAvailabilityError contract).
model:
string
Defined in: packages-ts/core/src/exceptions/index.ts:290
NWP model the caller asked for (e.g. "gfs", "hrrr").
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/exceptions/index.ts:288
Station the caller asked for (echoed back for log/error attribution).
ObservationLedgerV1
Section titled “ObservationLedgerV1”Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:5
Properties
Section titled “Properties”as_of_time?
Section titled “as_of_time?”
optionalas_of_time:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:6
dewpoint_c?
Section titled “dewpoint_c?”
optionaldewpoint_c:null|number
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:10
units: celsius
ingestion_id?
Section titled “ingestion_id?”
optionalingestion_id:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:11
observation_kind?
Section titled “observation_kind?”
optionalobservation_kind:null|"METAR"|"SPECI"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:12
observation_quality?
Section titled “observation_quality?”
optionalobservation_quality:null|"clean"|"flagged"|"suspect"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:16
Lineage row-quality flag per LINEAGE-01; distinct from qc_status enum slot AND distinct from the obs_qc_status bitmask column per QC-05.
observation_type
Section titled “observation_type”observation_type:
"METAR"|"SPECI"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:17
observed_at
Section titled “observed_at”observed_at:
string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:18
parser_name?
Section titled “parser_name?”
optionalparser_name:null|"ghcnh"|"iem"|"mostlyright_v1"|"ncei"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:19
parser_version?
Section titled “parser_version?”
optionalparser_version:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:20
provenance?
Section titled “provenance?”
optionalprovenance:null|"legacy"|"reingested"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:21
qc_status?
Section titled “qc_status?”
optionalqc_status:null|"clean"|"flagged"|"suspect"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:22
source
Section titled “source”source:
"ghcnh"|"iem"|"ncei"|"awc"
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:26
ncei reserved per D-2.1-09; never written in v0.1.0.
source_received_at?
Section titled “source_received_at?”
optionalsource_received_at:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:27
station_code
Section titled “station_code”station_code:
string
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:28
temp_c?
Section titled “temp_c?”
optionaltemp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/observation_ledger.v1.ts:32
units: celsius
ObservationQcV1
Section titled “ObservationQcV1”Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:5
Properties
Section titled “Properties”as_of_time?
Section titled “as_of_time?”
optionalas_of_time:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:6
detector_metadata?
Section titled “detector_metadata?”
optionaldetector_metadata:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:10
JSON-serialized detector payload; shape per qc_system.
field:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:14
Observation column the rule evaluated (e.g. temp_c).
flag:
"clean"|"flagged"|"suspect"
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:15
ingestion_id?
Section titled “ingestion_id?”
optionalingestion_id:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:16
observation_kind?
Section titled “observation_kind?”
optionalobservation_kind:null|"METAR"|"SPECI"
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:17
observed_at
Section titled “observed_at”observed_at:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:18
parser_name?
Section titled “parser_name?”
optionalparser_name:null|string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:19
qc_system
Section titled “qc_system”qc_system:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:20
qc_version
Section titled “qc_version”qc_version:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:21
rule_id
Section titled “rule_id”rule_id:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:22
source
Section titled “source”source:
"ghcnh"|"iem"|"ncei"|"awc"
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:23
station_code
Section titled “station_code”station_code:
string
Defined in: packages-ts/core/src/schemas/generated/observation_qc.v1.ts:24
ObservationV1
Section titled “ObservationV1”Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:5
Properties
Section titled “Properties”dew_point_c?
Section titled “dew_point_c?”
optionaldew_point_c:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:9
units: celsius — bounded
event_time
Section titled “event_time”event_time:
string
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:13
observation valid time
metar_raw?
Section titled “metar_raw?”
optionalmetar_raw:null|string
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:17
raw METAR text if source has it; null for AWC JSON (structured-only)
observation_type
Section titled “observation_type”observation_type:
"METAR"|"SPECI"
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:21
METAR | SPECI; defaults METAR when source can’t distinguish (e.g. AWC JSON)
precip_mm_1h?
Section titled “precip_mm_1h?”
optionalprecip_mm_1h:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:25
units: mm — hourly precip (METAR p01i, converted from inches)
sky_base_1_m?
Section titled “sky_base_1_m?”
optionalsky_base_1_m:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:29
units: meters — first cloud layer base height (converted from feet)
sky_base_2_m?
Section titled “sky_base_2_m?”
optionalsky_base_2_m:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:33
units: meters
sky_base_3_m?
Section titled “sky_base_3_m?”
optionalsky_base_3_m:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:37
units: meters
sky_base_4_m?
Section titled “sky_base_4_m?”
optionalsky_base_4_m:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:41
units: meters
sky_cover_1?
Section titled “sky_cover_1?”
optionalsky_cover_1:null|"BKN"|"CLR"|"FEW"|"OVC"|"SCT"|"VV"
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:45
first cloud layer cover code
sky_cover_2?
Section titled “sky_cover_2?”
optionalsky_cover_2:null|"BKN"|"CLR"|"FEW"|"OVC"|"SCT"|"VV"
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:49
second layer; null if not present
sky_cover_3?
Section titled “sky_cover_3?”
optionalsky_cover_3:null|"BKN"|"CLR"|"FEW"|"OVC"|"SCT"|"VV"
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:53
third layer; null if not present
sky_cover_4?
Section titled “sky_cover_4?”
optionalsky_cover_4:null|"BKN"|"CLR"|"FEW"|"OVC"|"SCT"|"VV"
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:57
fourth layer; null if not present
slp_hpa?
Section titled “slp_hpa?”
optionalslp_hpa:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:61
units: hPa — sea-level pressure (canonical aviation unit, not converted across modes)
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:65
ICAO/ASOS station ID (e.g. KORD)
temp_c?
Section titled “temp_c?”
optionaltemp_c:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:69
units: celsius — bounded TEMP_MIN_C..TEMP_MAX_C
visibility_m?
Section titled “visibility_m?”
optionalvisibility_m:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:73
units: meters — converted from statute miles
wind_dir_deg?
Section titled “wind_dir_deg?”
optionalwind_dir_deg:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:77
units: degrees — 0-360, bounded
wind_gust_ms?
Section titled “wind_gust_ms?”
optionalwind_gust_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:81
units: m/s — converted from kt
wind_speed_ms?
Section titled “wind_speed_ms?”
optionalwind_speed_ms:null|number
Defined in: packages-ts/core/src/schemas/generated/observation.v1.ts:85
units: m/s — converted from kt
OpenMeteoSeamlessLeakageErrorOptions
Section titled “OpenMeteoSeamlessLeakageErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:520
Extends
Section titled “Extends”Properties
Section titled “Properties”
optionalasOf:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:523
endpointUrl
Section titled “endpointUrl”endpointUrl:
string
Defined in: packages-ts/core/src/exceptions/index.ts:522
errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
model:
string
Defined in: packages-ts/core/src/exceptions/index.ts:521
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
PayloadTooLargeErrorOptions
Section titled “PayloadTooLargeErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:607
Extends
Section titled “Extends”Properties
Section titled “Properties”acceptedModes?
Section titled “acceptedModes?”
optionalacceptedModes:string[]
Defined in: packages-ts/core/src/exceptions/index.ts:610
declaredSize
Section titled “declaredSize”declaredSize:
number
Defined in: packages-ts/core/src/exceptions/index.ts:608
errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
limit:
number
Defined in: packages-ts/core/src/exceptions/index.ts:609
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
QcAlphaRule
Section titled “QcAlphaRule”Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:5
Properties
Section titled “Properties”bit_position
Section titled “bit_position”bit_position:
number
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:7
description
Section titled “description”description:
string
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:8
field:
string
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:9
rule_id
Section titled “rule_id”rule_id:
string
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:6
RateLimitErrorOptions
Section titled “RateLimitErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:692
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”TherminalErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”TherminalErrorOptions.requestId
retryAfter?
Section titled “retryAfter?”
optionalretryAfter:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:693
Overrides
Section titled “Overrides”TherminalErrorOptions.retryAfter
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”statusCode?
Section titled “statusCode?”
optionalstatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:658
Inherited from
Section titled “Inherited from”TherminalErrorOptions.statusCode
SchemaValidationErrorOptions
Section titled “SchemaValidationErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:360
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
quarantineCount?
Section titled “quarantineCount?”
optionalquarantineCount:number
Defined in: packages-ts/core/src/exceptions/index.ts:363
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
sampleViolations?
Section titled “sampleViolations?”
optionalsampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:364
schemaId
Section titled “schemaId”schemaId:
string
Defined in: packages-ts/core/src/exceptions/index.ts:361
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
violations?
Section titled “violations?”
optionalviolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:362
SettlementCliV1
Section titled “SettlementCliV1”Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:5
Properties
Section titled “Properties”cli_data_quality
Section titled “cli_data_quality”cli_data_quality:
"clean"|"flagged_instrument"|"flagged_late"|"flagged_other"|"missing"
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:9
NWS CLI data-quality marker (Pitfall 6/16). Allows downstream code to filter or weight settlement rows by issuer quality without re-parsing the product header.
event_time
Section titled “event_time”event_time:
string
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:13
00:00 local time on observation_date converted to UTC; for sort/join only
observation_date
Section titled “observation_date”observation_date:
string
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:17
local climate day per NWS convention (no timezone applied to the date itself)
precipitation_in?
Section titled “precipitation_in?”
optionalprecipitation_in:null|number
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:21
units: inches
product_release_time
Section titled “product_release_time”product_release_time:
string
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:25
parsed from CLI product header (_climate.py::_parse_product_timestamp)
report_type
Section titled “report_type”report_type:
"correction"|"final"|"preliminary"
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:29
preliminary | final | correction; dedup priority preliminary < final < correction
settlement_finality
Section titled “settlement_finality”settlement_finality:
"final"|"provisional"|"superseded"
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:33
provisional | final | superseded. Kalshi NHIGH/NLOW settlement contractually requires ‘final’; ‘provisional’ values are kept for early-look research only.
snowfall_in?
Section titled “snowfall_in?”
optionalsnowfall_in:null|number
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:37
units: inches
station
Section titled “station”station:
string
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:41
ICAO/ASOS station ID
station_tz
Section titled “station_tz”station_tz:
string
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:45
IANA timezone for the station (e.g. America/Chicago for KORD). Required for local-climate-day semantics; see §U.
temp_max_F?
Section titled “temp_max_F?”
optionaltemp_max_F:null|number
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:49
units: fahrenheit — daily high (uppercase F for consistency with obs imperial mode)
temp_min_F?
Section titled “temp_min_F?”
optionaltemp_min_F:null|number
Defined in: packages-ts/core/src/schemas/generated/settlement.cli.v1.ts:53
units: fahrenheit — daily low
SourceMismatchErrorOptions
Section titled “SourceMismatchErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:400
Extends
Section titled “Extends”Properties
Section titled “Properties”catalogWarning?
Section titled “catalogWarning?”
optionalcatalogWarning:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:404
dataSource
Section titled “dataSource”dataSource:
string
Defined in: packages-ts/core/src/exceptions/index.ts:402
errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
optionalrole:null|SourceMismatchRole
Defined in: packages-ts/core/src/exceptions/index.ts:403
schemaSource
Section titled “schemaSource”schemaSource:
string
Defined in: packages-ts/core/src/exceptions/index.ts:401
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
SourceUnavailableErrorOptions
Section titled “SourceUnavailableErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:167
Extends
Section titled “Extends”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
httpStatus?
Section titled “httpStatus?”
optionalhttpStatus:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:168
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
retryable?
Section titled “retryable?”
optionalretryable:boolean
Defined in: packages-ts/core/src/exceptions/index.ts:169
retryAfterS?
Section titled “retryAfterS?”
optionalretryAfterS:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:170
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
underlying?
Section titled “underlying?”
optionalunderlying:string
Defined in: packages-ts/core/src/exceptions/index.ts:171
optionalurl:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:172
StationInfo
Section titled “StationInfo”Defined in: packages-ts/core/src/data/generated/stations.ts:5
Properties
Section titled “Properties”code:
null|string
Defined in: packages-ts/core/src/data/generated/stations.ts:6
country
Section titled “country”country:
null|string
Defined in: packages-ts/core/src/data/generated/stations.ts:13
ghcnh_id
Section titled “ghcnh_id”ghcnh_id:
null|string
Defined in: packages-ts/core/src/data/generated/stations.ts:7
icao:
string
Defined in: packages-ts/core/src/data/generated/stations.ts:8
latitude
Section titled “latitude”latitude:
null|number
Defined in: packages-ts/core/src/data/generated/stations.ts:11
longitude
Section titled “longitude”longitude:
null|number
Defined in: packages-ts/core/src/data/generated/stations.ts:12
name:
null|string
Defined in: packages-ts/core/src/data/generated/stations.ts:9
tz:
string
Defined in: packages-ts/core/src/data/generated/stations.ts:10
venues
Section titled “venues”venues: readonly
string[]
Defined in: packages-ts/core/src/data/generated/stations.ts:14
TemporalDriftErrorOptions
Section titled “TemporalDriftErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:569
Extends
Section titled “Extends”Properties
Section titled “Properties”assertedRange
Section titled “assertedRange”assertedRange: [
string,string]
Defined in: packages-ts/core/src/exceptions/index.ts:571
errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
sampleViolations?
Section titled “sampleViolations?”
optionalsampleViolations:Record<string,unknown>[]
Defined in: packages-ts/core/src/exceptions/index.ts:573
schemaId
Section titled “schemaId”schemaId:
string
Defined in: packages-ts/core/src/exceptions/index.ts:570
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
violatingRows
Section titled “violatingRows”violatingRows:
number
Defined in: packages-ts/core/src/exceptions/index.ts:572
TherminalErrorOptions
Section titled “TherminalErrorOptions”Defined in: packages-ts/core/src/exceptions/index.ts:657
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Properties
Section titled “Properties”errorCode?
Section titled “errorCode?”
optionalerrorCode:string
Defined in: packages-ts/core/src/exceptions/index.ts:109
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.errorCode
requestId?
Section titled “requestId?”
optionalrequestId:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:111
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.requestId
retryAfter?
Section titled “retryAfter?”
optionalretryAfter:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:659
source?
Section titled “source?”
optionalsource:null|string
Defined in: packages-ts/core/src/exceptions/index.ts:110
Inherited from
Section titled “Inherited from”MostlyRightErrorOptions.source
statusCode?
Section titled “statusCode?”
optionalstatusCode:null|number
Defined in: packages-ts/core/src/exceptions/index.ts:658
Type Aliases
Section titled “Type Aliases”DataAvailabilityReason
Section titled “DataAvailabilityReason”DataAvailabilityReason: typeof
DATA_AVAILABILITY_REASONS[number]
Defined in: packages-ts/core/src/exceptions/index.ts:226
SourceMismatchRole
Section titled “SourceMismatchRole”SourceMismatchRole:
"observations"|"forecasts"|"settlement"
Defined in: packages-ts/core/src/exceptions/index.ts:398
Station
Section titled “Station”Station:
StationInfo
Defined in: packages-ts/core/src/stations/index.ts:24
Variables
Section titled “Variables”_CLI_PUBLICATION_DELAY_HOURS
Section titled “_CLI_PUBLICATION_DELAY_HOURS”
const_CLI_PUBLICATION_DELAY_HOURS:10=10.0
Defined in: packages-ts/core/src/snapshot.ts:134
NWS CLI typical publication delay: 10 h after midnight LST.
_JAN_REF
Section titled “_JAN_REF”
const_JAN_REF:Date
Defined in: packages-ts/core/src/snapshot.ts:131
Reference UTC moment in January (no DST in Northern Hemisphere US).
_MARKET_CLOSE_HOUR_LST
Section titled “_MARKET_CLOSE_HOUR_LST”
const_MARKET_CLOSE_HOUR_LST:16=16
Defined in: packages-ts/core/src/snapshot.ts:137
Kalshi market typical close time (LST).
_MARKET_CLOSE_MINUTE_LST
Section titled “_MARKET_CLOSE_MINUTE_LST”
const_MARKET_CLOSE_MINUTE_LST:30=30
Defined in: packages-ts/core/src/snapshot.ts:138
_STATION_TZ
Section titled “_STATION_TZ”
const_STATION_TZ:Readonly<Record<string,string>>
Defined in: packages-ts/core/src/snapshot.ts:22
CATALOG
Section titled “CATALOG”
constCATALOG:StationCatalog
Defined in: packages-ts/core/src/stations/index.ts:108
Process-wide default catalog over the codegen station registry.
CLIMATE_REPORT_TYPE_PRIORITY
Section titled “CLIMATE_REPORT_TYPE_PRIORITY”
constCLIMATE_REPORT_TYPE_PRIORITY:Readonly<Record<string,number>>
Defined in: packages-ts/core/src/data/generated/source-priority.ts:11
DATA_AVAILABILITY_REASONS
Section titled “DATA_AVAILABILITY_REASONS”
constDATA_AVAILABILITY_REASONS: readonly ["model_unavailable","out_of_window","cache_miss","source_404","source_5xx","rate_limited"]
Defined in: packages-ts/core/src/exceptions/index.ts:217
Shared reason enum — MUST match Python EXACTLY (Phase 21 D-04).
LIVE_V1_POLICY
Section titled “LIVE_V1_POLICY”
constLIVE_V1_POLICY:object
Defined in: packages-ts/core/src/data/generated/source-priority.ts:19
Type declaration
Section titled “Type declaration”name:
string
secondaryKey
Section titled “secondaryKey”secondaryKey:
ReadonlyArray<string>
sourcePriority
Section titled “sourcePriority”sourcePriority:
Readonly<Record<string,number>>
OBSERVATION_SOURCE_PRIORITY
Section titled “OBSERVATION_SOURCE_PRIORITY”
constOBSERVATION_SOURCE_PRIORITY:Readonly<Record<string,number>>
Defined in: packages-ts/core/src/data/generated/source-priority.ts:5
QC_ALPHA_RULES
Section titled “QC_ALPHA_RULES”
constQC_ALPHA_RULES:ReadonlyArray<QcAlphaRule>
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:12
QC_ALPHA_RULES_BY_ID
Section titled “QC_ALPHA_RULES_BY_ID”
constQC_ALPHA_RULES_BY_ID:ReadonlyMap<string,QcAlphaRule>
Defined in: packages-ts/core/src/data/generated/qc-alpha-rules.ts:45
STATION_BY_CODE
Section titled “STATION_BY_CODE”
constSTATION_BY_CODE:ReadonlyMap<string,StationInfo>
Defined in: packages-ts/core/src/data/generated/stations.ts:1190
STATION_BY_ICAO
Section titled “STATION_BY_ICAO”
constSTATION_BY_ICAO:ReadonlyMap<string,StationInfo>
Defined in: packages-ts/core/src/data/generated/stations.ts:1287
STATIONS
Section titled “STATIONS”
constSTATIONS:ReadonlyArray<StationInfo>
Defined in: packages-ts/core/src/data/generated/stations.ts:17
version
Section titled “version”
constversion:"1.15.0"="1.15.0"
Defined in: packages-ts/core/src/index.ts:9
Placeholder version string from the TS-W0 Wave 1 scaffold. The
authoritative package version lives in package.json#version
(currently 0.1.0-rc.7); this constant has not been bumped.
Functions
Section titled “Functions”_lstOffsetHours()
Section titled “_lstOffsetHours()”_lstOffsetHours(
stationTz):number
Defined in: packages-ts/core/src/snapshot.ts:154
Return the LOCAL STANDARD TIME UTC offset (in hours) for an IANA tz, sampled from January 15 2024 12:00 UTC so the result is never affected by DST in the Northern Hemisphere.
Implementation: format _JAN_REF in the target tz via Intl.DateTimeFormat
and diff against the UTC formatted view to recover the offset.
Parameters
Section titled “Parameters”stationTz
Section titled “stationTz”string
Returns
Section titled “Returns”number
_resolveStationTz()
Section titled “_resolveStationTz()”_resolveStationTz(
station,tzOverride?):string
Defined in: packages-ts/core/src/snapshot.ts:213
Resolve a station code (NWS 3-letter, ICAO 4-letter) to an IANA tz string.
Honors tzOverride first, then the built-in _STATION_TZ map.
Throws if no tz can be resolved.
Parameters
Section titled “Parameters”station
Section titled “station”string
tzOverride?
Section titled “tzOverride?”string
Returns
Section titled “Returns”string
cliAvailableAt()
Section titled “cliAvailableAt()”cliAvailableAt(
dateStr,station,delayHours,tzOverride?):Date
Defined in: packages-ts/core/src/snapshot.ts:315
Return the UTC time at which the NWS CLI for a date is expected to be available. Default delay is 10 h after midnight LST on the next day.
Parameters
Section titled “Parameters”dateStr
Section titled “dateStr”string
station
Section titled “station”string
delayHours
Section titled “delayHours”number = _CLI_PUBLICATION_DELAY_HOURS
tzOverride?
Section titled “tzOverride?”string
Returns
Section titled “Returns”Date
fetchWithRetry()
Section titled “fetchWithRetry()”fetchWithRetry(
url,opts):Promise<Response>
Defined in: packages-ts/core/src/internal/http.ts:130
GET (or other) a URL with exponential-backoff retry semantics.
Behaviour:
signalis composed with a per-attempt timeout viaAbortController.- On retryable status (default: 429/500/502/503/504), wait
baseDelayMs * 2^attempt(with ≤25% jitter) and retry, up tomaxRetriestotal attempts. - On 404 →
NotFoundError. On 400/401/403 →ValidationError/AuthenticationError/ForbiddenError. After retry exhaustion on 429 →RateLimitError(withretryAfterhonoured). After retry exhaustion on 5xx →ServerError. - On network/transport failure: retried under the same budget, last
error rethrown as a
TherminalErrorif it isn’t one already.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<Response>
helloCore()
Section titled “helloCore()”helloCore():
string
Defined in: packages-ts/core/src/index.ts:17
Smoke-test export from the TS-W0 Wave 1 scaffold. Returns the literal
string "hello @mostlyrightmd/core". Retained so the published package
has at least one importable runtime export until the scaffold is
removed in a later phase.
Returns
Section titled “Returns”string
marketCloseUtc()
Section titled “marketCloseUtc()”marketCloseUtc(
dateStr,station,tzOverride?):Date
Defined in: packages-ts/core/src/snapshot.ts:329
Return the UTC time of the Kalshi market close for a settlement date. Kalshi NHIGH/NLOW markets close at 4:30 PM LST on the day of settlement.
Parameters
Section titled “Parameters”dateStr
Section titled “dateStr”string
station
Section titled “station”string
tzOverride?
Section titled “tzOverride?”string
Returns
Section titled “Returns”Date
settlementDateFor()
Section titled “settlementDateFor()”settlementDateFor(
asOf,station,tzOverride?):string
Defined in: packages-ts/core/src/snapshot.ts:267
Return the Kalshi settlement date (YYYY-MM-DD LST) for a UTC moment.
Kalshi NHIGH/NLOW contracts cover midnight–midnight LOCAL STANDARD TIME. DST is ignored: the window is always fixed to the standard UTC offset.
Parameters
Section titled “Parameters”string | Date
station
Section titled “station”string
tzOverride?
Section titled “tzOverride?”string
Returns
Section titled “Returns”string
settlementWindowUtc()
Section titled “settlementWindowUtc()”settlementWindowUtc(
dateStr,station,tzOverride?): [Date,Date]
Defined in: packages-ts/core/src/snapshot.ts:286
Return UTC start/end of the Kalshi settlement window for a date. The window is midnight-midnight LST, expressed in UTC.
Parameters
Section titled “Parameters”dateStr
Section titled “dateStr”string
station
Section titled “station”string
tzOverride?
Section titled “tzOverride?”string
Returns
Section titled “Returns”[Date, Date]
toJsonSafe()
Section titled “toJsonSafe()”toJsonSafe(
value,seen?):unknown
Defined in: packages-ts/core/src/exceptions/index.ts:27
Recursively coerce value into a JSON-serializable structure.
Coercion rules (mirrors Python’s to_json_safe):
null/undefined/NaN/Infinity/-Infinity→nullDate→ ISO 8601 UTC string ending inZ- Numeric / boolean / string scalars pass through (non-finite numbers → null)
- Arrays + plain objects → recursive (cycles →
{ _cycle: true, value: String(obj) }) - Dict keys MUST be strings; non-string keys throw
TypeError. - Anything else (Symbol, function, class instance without
toJSON) →{ _repr_only: true, value: String(value) }.
Parameters
Section titled “Parameters”unknown
WeakSet<object>
Returns
Section titled “Returns”unknown