cloudflare
Version:
The official TypeScript library for the Cloudflare API
52 lines • 1.6 kB
TypeScript
import { APIResource } from "../../../../resource.js";
import * as Core from "../../../../core.js";
import * as SCIMAPI from "./scim/scim.js";
export declare class AccessRequests extends APIResource {
/**
* Gets a list of Access authentication audit logs for an account.
*
* @example
* ```ts
* const accessRequests =
* await client.zeroTrust.access.logs.accessRequests.list({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
list(params: AccessRequestListParams, options?: Core.RequestOptions): Core.APIPromise<AccessRequestListResponse>;
}
export type AccessRequestListResponse = Array<SCIMAPI.AccessRequest>;
export interface AccessRequestListParams {
/**
* Path param: Identifier.
*/
account_id: string;
/**
* Query param: The chronological sorting order for the logs.
*/
direction?: 'desc' | 'asc';
/**
* Query param: The maximum number of log entries to retrieve.
*/
limit?: number;
/**
* Query param: Page number of results.
*/
page?: number;
/**
* Query param: Number of results per page.
*/
per_page?: number;
/**
* Query param: The earliest event timestamp to query.
*/
since?: string;
/**
* Query param: The latest event timestamp to query.
*/
until?: string;
}
export declare namespace AccessRequests {
export { type AccessRequestListResponse as AccessRequestListResponse, type AccessRequestListParams as AccessRequestListParams, };
}
//# sourceMappingURL=access-requests.d.ts.map