/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { IAuthenticationProvider } from '../../Types/PlayerActions.types.js'; import type { Api, Connection } from '../types/ApiTypes.js'; import type { ILogger } from '../types/PlayerServices.types.js'; export declare function isEncoded(str: string): boolean; export declare function isDoubleEncoded(str: string): boolean; export declare function ensureEncoded(str: string): string; export interface IConnectedDataset { Name: string; DisplayName: string; Categories?: string[]; } export interface IConnectedDatasetListMetadata { value: IConnectedDataset[]; } export interface IConnectedDataTable { Name: string; DisplayName: string; Categories?: string[]; Type?: string; } export interface IConnectedDataTableListMetadata { value: IConnectedDataTable[]; } export declare function getResourceMetadataAsync(connection: Connection, connector: Api, dataset: string, resourceName: string, resourceType: string, logger: ILogger): Promise; export declare function getDatasetsAsync(connection: Connection, connector: Api, logger: ILogger): Promise; export declare function getTablesAsync(connection: Connection, connector: Api, dataset: string, logger: ILogger): Promise; export declare function getSqlStoredProceduresAsync(connection: Connection, connector: Api, dataset: string, logger: ILogger): Promise; export declare function getSqlStoredProcedureMetadataAsync(connection: Connection, connector: Api, dataset: string, storedProcedure: string, logger: ILogger): Promise; export declare function getTableMetadataAsync(connection: Connection, connector: Api, dataset: string, tableName: string, logger: ILogger): Promise; /** * Returns the tabular API version string for a connector (e.g. 'v2', or '' for v1). * Determined by the highest-numbered production revision of the CDPTabular interface. */ export declare function getTabularConnectorVersion(connector: Api): string; /** * Handles the first party login step of connection creation by POSTing the OBO token to the * provided firstPartyLoginUri. * * Calls httpClient.post with no authResource so that the underlying HTTP client omits the * Authorization header — the consent server rejects requests that carry one. The token is sent * only in the request body as { accessToken }. */ export declare function connectionFirstPartyLoginAsync(authProvider: IAuthenticationProvider, firstPartyLoginUri: string, logger: ILogger): Promise; /** * Verifies the connection is live by calling the server-provided test link. * * The connection PUT/GET response may include `properties.testLinks`, an array * of `{ requestUri, method }` entries owned by the API Hub runtime. When present, * we invoke the first entry, using the API Hub bearer audience for the current * region. `testLinks` is optional — when it is absent we skip verification and * trust the PUT. */ export declare function testConnectionAsync(connection: Connection, logger?: ILogger): Promise; //# sourceMappingURL=ApimService.d.ts.map