export type PageSortKe1 = {type?: ('ASC' | 'DESC') | undefined, field?: string | undefined}; export type PageSearchKe1 = {field?: string | undefined, value?: string | undefined, caseSensitivity?: ('SENSITIVE' | 'INSENSITIVE') | undefined, matchingType?: ('START_WITH' | 'EQUALS' | 'CONTAINS' | 'NOT_CONTAINS' | 'MATCH_REGEXP') | undefined}; export type PageRequestKe1 = {index?: number | undefined, size?: number | undefined, sort?: PageSortKe1 | undefined, search?: PageSearchKe1 | undefined}; export type CreateApiAdminOauthClientsPaginatedArgs = {body: PageRequestKe1}; export type CreateApiAdminOauthClientsPaginatedOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * POST /admin/oauth/clients/paginated */ export const createApiAdminOauthClientsPaginated = async (args: CreateApiAdminOauthClientsPaginatedArgs, options?: CreateApiAdminOauthClientsPaginatedOptions) => { const {baseUrl = "https://api.octoperf.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/admin/oauth/clients/paginated${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };