/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { Api, Connection } from '../types/ApiTypes.js'; import type { ILogger } from '../types/PlayerServices.types.js'; export declare function getConnectorAsync(connectorId: string, logger?: ILogger): Promise; export declare function getConnectionByNameAsync(connectionName: string, connectorId: string, logger?: ILogger): Promise; export declare function listConnectionsForConnectorAsync(connectorId: string, logger?: ILogger): Promise; export declare function listAllConnectionsAsync(search?: string, logger?: ILogger): Promise; export declare function listConnectorsAsync(search?: string, logger?: ILogger): Promise; export declare function isConnectionShareable(connector: Api, authType: string | undefined): boolean; /** * Creates a new connection via PUT to the connectivity API. * * When `ssoSetName` is provided (from `validateSsoEligible`), the body uses * `connectionParametersSet: { name, values: {} }` — required for connectors that * use `connectionParameterSets` (e.g. SQL). Otherwise falls back to * `connectionParameters: {}` for flat-parameter connectors (e.g. Office 365). */ export declare function putConnectionAsync(connectorId: string, connectionId: string, displayName: string, logger?: ILogger, ssoSetName?: string | null): Promise; /** * Deletes a connection. Used to clean up orphaned connections when a * later step of the creation flow fails. */ export declare function deleteConnectionAsync(connectorId: string, connectionId: string, logger?: ILogger): Promise; /** * Validates that a connector is eligible for silent SSO connection creation. * * When `connectionParameterSets` is present, it takes precedence over * `connectionParameters`. The function returns the name of the first * SSO-eligible set, or throws if none qualifies. * * When only `connectionParameters` is present, the same two-condition check * applies. Returns `null` to signal "use flat connectionParameters". * * @returns The name of the SSO-eligible `connectionParameterSet` to use, or * `null` if the connector uses flat `connectionParameters`. */ export declare function validateSsoEligible(connector: Api, connectorId: string): string | null; /** * Checks whether a connector supports SSO as its *only* authentication type. * Returns `true` when the connector has a single auth type (or flat params) * that is SSO-eligible. Returns `false` if there are multiple auth types * (even if one is SSO-capable) — in that case the user should choose * interactively. For flat-parameter connectors, the presence of parameters * scoped to a non-cloud capability (e.g. gateway-only) indicates an alternative * auth path, so the connector is not SSO-only (e.g. SharePoint). */ export declare function isSsoOnlyConnector(connector: Api): boolean; //# sourceMappingURL=ConnectivityService.d.ts.map