/** * 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. */ import * as runtime from '../runtime'; import type { WaitNotificationResponse } from '../models/index'; export interface WaitNotificationRequest { since?: Date; } /** * */ export declare class NotificationsApi extends runtime.BaseAPI { /** * Creates request options for waitNotification without sending the request */ waitNotificationRequestOpts(requestParameters: WaitNotificationRequest): Promise; /** * Long-polls for wallet notifications. Returns all notifications received since the given timestamp. If no timestamp is provided, returns all notifications in the buffer. Returned notifications are sorted by timestamp in ascending order. * Long-poll for wallet notifications */ waitNotificationRaw(requestParameters: WaitNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Long-polls for wallet notifications. Returns all notifications received since the given timestamp. If no timestamp is provided, returns all notifications in the buffer. Returned notifications are sorted by timestamp in ascending order. * Long-poll for wallet notifications */ waitNotification(requestParameters?: WaitNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for websocketTicket without sending the request */ websocketTicketRequestOpts(): Promise; /** * Creates a single-use ticket that authenticates a websocket connection at `ws:///api/v1/notifications/ws?ticket=`. The ticket must be used within 10 minutes of creation; the resulting websocket connection is long-lived. * Create a websocket ticket */ websocketTicketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Creates a single-use ticket that authenticates a websocket connection at `ws:///api/v1/notifications/ws?ticket=`. The ticket must be used within 10 minutes of creation; the resulting websocket connection is long-lived. * Create a websocket ticket */ websocketTicket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }