UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

63 lines 2.11 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as UserPolicyChecksAPI from 'cloudflare/resources/zero-trust/access/applications/user-policy-checks'; export declare class UserPolicyChecks extends APIResource { /** * Tests if a specific user has permission to access an application. */ list(appId: string | string, params?: UserPolicyCheckListParams, options?: Core.RequestOptions): Core.APIPromise<UserPolicyCheckListResponse>; list(appId: string | string, options?: Core.RequestOptions): Core.APIPromise<UserPolicyCheckListResponse>; } export interface UserPolicyCheckListResponse { app_state?: UserPolicyCheckListResponse.AppState; user_identity?: UserPolicyCheckListResponse.UserIdentity; } export declare namespace UserPolicyCheckListResponse { interface AppState { /** * UUID */ app_uid?: string; aud?: string; hostname?: string; name?: string; policies?: Array<unknown>; status?: string; } interface UserIdentity { id?: string; account_id?: string; device_sessions?: unknown; email?: string; geo?: UserIdentity.Geo; iat?: number; is_gateway?: boolean; is_warp?: boolean; name?: string; /** * UUID */ user_uuid?: string; version?: number; } namespace UserIdentity { interface Geo { country?: string; } } } export interface UserPolicyCheckListParams { /** * The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ account_id?: string; /** * The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zone_id?: string; } export declare namespace UserPolicyChecks { export import UserPolicyCheckListResponse = UserPolicyChecksAPI.UserPolicyCheckListResponse; export import UserPolicyCheckListParams = UserPolicyChecksAPI.UserPolicyCheckListParams; } //# sourceMappingURL=user-policy-checks.d.ts.map