UNPKG

magicbell

Version:
30 lines (29 loc) 1.31 kB
import { type FromSchema } from 'json-schema-to-ts'; import { type IterablePromise } from '../../client/method.js'; import { Resource } from '../../client/resource.js'; import { type RequestOptions } from '../../client/types.js'; import * as schemas from '../../schemas/broadcasts/notifications.js'; type ListBroadcastsNotificationsResponse = FromSchema<typeof schemas.ListBroadcastsNotificationsResponseSchema>; type ListBroadcastsNotificationsPayload = FromSchema<typeof schemas.ListBroadcastsNotificationsPayloadSchema>; export declare class BroadcastsNotifications extends Resource { path: string; entity: string; /** * Fetch the notifications for a broadcast. * * @param broadcastId - ID of the broadcast. * @param options - override client request options. * @returns **/ list(broadcastId: string, options?: RequestOptions): IterablePromise<ListBroadcastsNotificationsResponse>; /** * Fetch the notifications for a broadcast. * * @param broadcastId - ID of the broadcast. * @param data * @param options - override client request options. * @returns **/ list(broadcastId: string, data: ListBroadcastsNotificationsPayload, options?: RequestOptions): IterablePromise<ListBroadcastsNotificationsResponse>; } export {};