export type ForceValidateDomainRequestDto = Record; export type UpdateApiResourcesSsoV1ConfigurationsDomainsDomainForceValidateArgs = {domain: string, body: ForceValidateDomainRequestDto}; export type UpdateApiResourcesSsoV1ConfigurationsDomainsDomainForceValidateOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Vendor only - Force SSO domain validation * * PUT /resources/sso/v1/configurations/domains/{domain}/force-validate */ export const updateApiResourcesSsoV1ConfigurationsDomainsDomainForceValidate = async (args: UpdateApiResourcesSsoV1ConfigurationsDomainsDomainForceValidateArgs, options?: UpdateApiResourcesSsoV1ConfigurationsDomainsDomainForceValidateOptions) => { const {baseUrl = "http://localhost:8181", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/resources/sso/v1/configurations/domains/${encodeURIComponent(String(args.domain))}/force-validate${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", 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 undefined };