import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const CallsAppNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class CallsAppNotFound extends /*@__PURE__*/ CallsAppNotFound_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const TurnKeyNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class TurnKeyNotFound extends /*@__PURE__*/ TurnKeyNotFound_base { } export interface CreateSfuRequest { /** The account identifier tag. */ accountId: string; /** A short description of Calls app, not shown to end users. */ name?: string; } export declare const CreateSfuRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateSfuResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** Bearer token */ secret?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const CreateSfuResponse: S.Schema; export interface CreateTurnRequest { /** The account identifier tag. */ accountId: string; /** A short description of a TURN key, not shown to end users. */ name?: string; } export declare const CreateTurnRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateTurnResponse { /** The date and time the item was created. */ created?: string | null; /** Bearer token */ key?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of a TURN key, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const CreateTurnResponse: S.Schema; export interface DeleteSfuRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ appId: string; } export declare const DeleteSfuRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteSfuResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const DeleteSfuResponse: S.Schema; export interface DeleteTurnRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ keyId: string; } export declare const DeleteTurnRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteTurnResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const DeleteTurnResponse: S.Schema; export interface GetSfuRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ appId: string; } export declare const GetSfuRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetSfuResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const GetSfuResponse: S.Schema; export interface GetTurnRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ keyId: string; } export declare const GetTurnRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetTurnResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const GetTurnResponse: S.Schema; export interface ListSfusRequest { /** The account identifier tag. */ accountId: string; } export declare const ListSfusRequest: S.Schema; export interface SfuListResultItem { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const SfuListResultItem: S.Schema; export type SfuListResultList = Array; export declare const SfuListResultList: S.Schema; export interface ListSfusResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: SfuListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListSfusResponse: S.Schema; export interface ListTurnsRequest { /** The account identifier tag. */ accountId: string; } export declare const ListTurnsRequest: S.Schema; export type TurnListResultItem = SfuListResultItem; export declare const TurnListResultItem: S.Schema; export type TurnListResultList = Array; export declare const TurnListResultList: S.Schema; export interface ListTurnsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: TurnListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListTurnsResponse: S.Schema; export interface UpdateSfuRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ appId: string; /** A short description of Calls app, not shown to end users. */ name?: string; } export declare const UpdateSfuRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateSfuResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const UpdateSfuResponse: S.Schema; export interface UpdateTurnRequest { /** The account identifier tag. */ accountId: string; /** A Cloudflare-generated unique identifier for a item. */ keyId: string; /** A short description of a TURN key, not shown to end users. */ name?: string; } export declare const UpdateTurnRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateTurnResponse { /** The date and time the item was created. */ created?: string | null; /** The date and time the item was last modified. */ modified?: string | null; /** A short description of Calls app, not shown to end users. */ name?: string | null; /** A Cloudflare-generated unique identifier for a item. */ uid?: string | null; } export declare const UpdateTurnResponse: S.Schema; export type CreateSfuError = Forbidden | CloudflareOpError; /** Creates a new Cloudflare calls app. An app is an unique enviroment where each Session can access all Tracks within the app. */ export declare const createSfu: API.OperationMethod; export type CreateTurnError = Forbidden | CloudflareOpError; /** Creates a new Cloudflare Calls TURN key. */ export declare const createTurn: API.OperationMethod; export type DeleteSfuError = CallsAppNotFound | Forbidden | CloudflareOpError; /** Deletes an app from Cloudflare Calls */ export declare const deleteSfu: API.OperationMethod; export type DeleteTurnError = TurnKeyNotFound | Forbidden | CloudflareOpError; /** Deletes a TURN key from Cloudflare Calls */ export declare const deleteTurn: API.OperationMethod; export type GetSfuError = CallsAppNotFound | Forbidden | CloudflareOpError; /** Fetches details for a single Calls app. */ export declare const getSfu: API.OperationMethod; export type GetTurnError = TurnKeyNotFound | Forbidden | CloudflareOpError; /** Fetches details for a single TURN key. */ export declare const getTurn: API.OperationMethod; export type ListSfusError = CloudflareOpError; /** Lists all apps in the Cloudflare account */ export declare const listSfus: API.PaginatedOperationMethod; export type ListTurnsError = CloudflareOpError; /** Lists all TURN keys in the Cloudflare account */ export declare const listTurns: API.PaginatedOperationMethod; export type UpdateSfuError = CallsAppNotFound | Forbidden | CloudflareOpError; /** Edit details for a single app. */ export declare const updateSfu: API.OperationMethod; export type UpdateTurnError = TurnKeyNotFound | Forbidden | CloudflareOpError; /** Edit details for a single TURN key. */ export declare const updateTurn: API.OperationMethod; //# sourceMappingURL=calls.d.ts.map