UNPKG

@shi-corp/sdk-url-shortener

Version:

SDK client used to interface with the URL Shortener application.

12 lines (11 loc) 849 B
import type { TokenCredential } from '@azure/core-auth'; import { createUrlShortenerClient } from './sdk/urlShortenerClient.js'; export type * from './sdk/models/index.js'; /** * Function that initializes the URL Shortener SDK. * @param credential Configured authentication session from Entra ID. * @param baseUrl Root of the URL that should have endpoints appended to it by the query building system. * @param scopeList Where each array item is a different Entra ID standard scope to request on token retrieval. E.g. `['313f3894-325a-4aae-ba2b-bbdfdc1f063b/.default']`. * @returns Configured API client that is able to make requests against the specified URL Shortener instance. */ export declare function urlShortenerClientFactory(credential: TokenCredential, baseUrl: URL, scopeList: string[]): ReturnType<typeof createUrlShortenerClient>;