import { type Client } from '../../../../../seam/connect/client.js'; import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../seam/connect/options.js'; import type { UnmanagedAccessGrant } from '../../../../../seam/connect/resources/unmanaged-access-grant.js'; import { SeamHttpRequest } from '../../../../../seam/connect/seam-http-request.js'; import { SeamPaginator } from '../../../../../seam/connect/seam-paginator.js'; export declare class SeamHttpAccessGrantsUnmanaged { client: Client; readonly defaults: Required; readonly ltsVersion = "1.0.0"; static ltsVersion: string; constructor(apiKeyOrOptions?: string | SeamHttpOptions); static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit): SeamHttpAccessGrantsUnmanaged; static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit): SeamHttpAccessGrantsUnmanaged; static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit): SeamHttpAccessGrantsUnmanaged; static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise; static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit): SeamHttpAccessGrantsUnmanaged; static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit): SeamHttpAccessGrantsUnmanaged; createPaginator(request: SeamHttpRequest): SeamPaginator; updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise; /** * Get an unmanaged Access Grant (where is_managed = false). */ get(parameters: AccessGrantsUnmanagedGetParameters, options?: AccessGrantsUnmanagedGetOptions): AccessGrantsUnmanagedGetRequest; /** * Gets unmanaged Access Grants (where is_managed = false). */ list(parameters?: AccessGrantsUnmanagedListParameters, options?: AccessGrantsUnmanagedListOptions): AccessGrantsUnmanagedListRequest; /** * Updates an unmanaged Access Grant to make it managed. * * This endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged. * * When converting an unmanaged access grant to managed, all associated access methods will also be converted to managed. */ update(parameters: AccessGrantsUnmanagedUpdateParameters, options?: AccessGrantsUnmanagedUpdateOptions): AccessGrantsUnmanagedUpdateRequest; } export type AccessGrantsUnmanagedGetParameters = { /** * ID of unmanaged Access Grant to get. */ access_grant_id: string; }; /** * @deprecated Use AccessGrantsUnmanagedGetRequest instead. */ export type AccessGrantsUnmanagedGetResponse = { access_grant: UnmanagedAccessGrant; }; export type AccessGrantsUnmanagedGetRequest = SeamHttpRequest; export interface AccessGrantsUnmanagedGetOptions { } export type AccessGrantsUnmanagedListParameters = { /** * ID of the entrance by which you want to filter the list of unmanaged Access Grants. */ acs_entrance_id?: string | undefined; /** * ID of the access system by which you want to filter the list of unmanaged Access Grants. */ acs_system_id?: string | undefined; /** * Numerical limit on the number of unmanaged access grants to return. */ limit?: number | undefined; /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: string | undefined; /** * Filter unmanaged Access Grants by reservation_key. */ reservation_key?: string | undefined; /** * ID of user identity by which you want to filter the list of unmanaged Access Grants. */ user_identity_id?: string | undefined; }; /** * @deprecated Use AccessGrantsUnmanagedListRequest instead. */ export type AccessGrantsUnmanagedListResponse = { access_grants: Array; }; export type AccessGrantsUnmanagedListRequest = SeamHttpRequest; export interface AccessGrantsUnmanagedListOptions { } export type AccessGrantsUnmanagedUpdateParameters = { /** * ID of the unmanaged Access Grant to update. */ access_grant_id: string; /** * Unique key for the access grant. If not provided, the existing key will be preserved. */ access_grant_key?: string | undefined; /** * Must be set to true to convert the unmanaged access grant to managed. */ is_managed: boolean; }; /** * @deprecated Use AccessGrantsUnmanagedUpdateRequest instead. */ export type AccessGrantsUnmanagedUpdateResponse = void; export type AccessGrantsUnmanagedUpdateRequest = SeamHttpRequest; export interface AccessGrantsUnmanagedUpdateOptions { }