@rivi-software/radiotools-contract
v0.4.0
Published
RadioTools listener API contract (manifest and GraphQL schema)
Readme
@rivi-software/radiotools-contract
The RadioTools listener API contract (v1): the source of truth the SDK generators read from. Station-facing routes only; studio administration is out of scope.
Install
npm install @rivi-software/radiotools-contractWhat's inside
listenerSdkManifest: the public client methods, auth scopes and environment variables.LISTENER_CONTRACT_VERSIONandPUBLIC_SOCKET_PROTOCOL: version constants.readGraphqlSchema()andgraphqlSchemaPath(): access to the checked-in GraphQL schema.@rivi-software/radiotools-contract/graphql: the rawschema.graphqlfile.
import { listenerSdkManifest, readGraphqlSchema } from "@rivi-software/radiotools-contract";
console.log(listenerSdkManifest);
const sdl = readGraphqlSchema();Most applications want @rivi-software/radiotools-sdk instead. Use this package when building tooling or a new SDK target.
