/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 627e108b9d4b */ import { authenticationCheckdatasourceauth } from "../funcs/authenticationCheckdatasourceauth.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Authentication extends ClientSDK { /** * Check datasource authorization * * @remarks * Returns all datasource instances that require per-user OAuth authorization * for the authenticated user, along with a transient auth token that can be * appended to auth URLs to complete OAuth flows. * * Clients construct the full OAuth URL by combining the backend base URL, * the `authUrlRelativePath` from each instance, and the transient auth token: * `/?transient_auth_token=`. */ async checkdatasourceauth( options?: RequestOptions, ): Promise { return unwrapAsync(authenticationCheckdatasourceauth( this, options, )); } }