/* tslint:disable */ /* eslint-disable */ /** * barkd REST API * A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis. * * The version of the OpenAPI document: 0.6.1 * Contact: hello@second.tech * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A flat, data-free discriminator for [ExitState]. The serde representation matches * [ExitState]'s `type` tag (kebab-case). * @export */ export const ExitStateKind = { Start: 'start', Processing: 'processing', AwaitingDelta: 'awaiting-delta', Claimable: 'claimable', ClaimInProgress: 'claim-in-progress', Claimed: 'claimed', VtxoAlreadySpent: 'vtxo-already-spent', Canceled: 'canceled' } as const; export type ExitStateKind = typeof ExitStateKind[keyof typeof ExitStateKind]; export function instanceOfExitStateKind(value: any): boolean { for (const key in ExitStateKind) { if (Object.prototype.hasOwnProperty.call(ExitStateKind, key)) { if (ExitStateKind[key as keyof typeof ExitStateKind] === value) { return true; } } } return false; } export function ExitStateKindFromJSON(json: any): ExitStateKind { return ExitStateKindFromJSONTyped(json, false); } export function ExitStateKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExitStateKind { return json as ExitStateKind; } export function ExitStateKindToJSON(value?: ExitStateKind | null): any { return value as any; } export function ExitStateKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ExitStateKind { return value as ExitStateKind; }