UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

46 lines 1.38 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as SeatsAPI from 'cloudflare/resources/zero-trust/seats'; export declare class Seats extends APIResource { /** * Removes a user from a Zero Trust seat when both `access_seat` and `gateway_seat` * are set to false. */ edit(identifier: string, body: SeatEditParams, options?: Core.RequestOptions): Core.APIPromise<SeatEditResponse | null>; } export interface Seat { /** * True if the seat is part of Access. */ access_seat?: boolean; created_at?: string; /** * True if the seat is part of Gateway. */ gateway_seat?: boolean; /** * Identifier */ seat_uid?: string; updated_at?: string; } export type SeatEditResponse = Array<Seat>; export type SeatEditParams = Array<SeatEditParams.Body>; export declare namespace SeatEditParams { interface Body { /** * True if the seat is part of Access. */ access_seat: boolean; /** * True if the seat is part of Gateway. */ gateway_seat: boolean; } } export declare namespace Seats { export import Seat = SeatsAPI.Seat; export import SeatEditResponse = SeatsAPI.SeatEditResponse; export import SeatEditParams = SeatsAPI.SeatEditParams; } //# sourceMappingURL=seats.d.ts.map