Skip to content

RevTurbineConfigProvider

Provider abstraction for Playbook access inside the SDK.

Local mode typically uses a static provider backed by localRuntime.playbook (or its deprecated exportedConfig alias). Other modes can provide custom or REST-backed resolvers via refresh().

Implement getPlaybook() — getExportedConfig() is the deprecated spelling of the same accessor, kept so an already-shipped implementation keeps compiling. Both are optional on this interface so that neither spelling breaks an existing implements clause; the RevTurbineInitOptions.configProvider option intersects this with a union that still requires exactly one of them, so a provider supplying neither remains a compile error at the call site it is passed to.

optional getExportedConfig(): ConfigArtifact | undefined

ConfigArtifact | undefined


optional getPlaybook(): ConfigArtifact | undefined

Return the latest available Playbook snapshot.

ConfigArtifact | undefined


optional refresh(): Promise<ConfigArtifact | undefined>

Optionally refresh the snapshot (for example, from a REST API).

Promise<ConfigArtifact | undefined>