From 04d92215c4466bf48c29f084e4901e1b073242e3 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 1 Jul 2025 17:01:03 -0700 Subject: [PATCH 1/3] fix: Only generate endpoints with supported auth method --- codegen/lib/connect.ts | 26 +- package-lock.json | 8 +- package.json | 2 +- .../connect/routes/seam-http-endpoints.ts | 196 --------- .../seam/connect/routes/seam/bridge/index.ts | 6 - .../bridge-client-sessions.ts | 398 ------------------ .../bridge/v1/bridge-client-sessions/index.ts | 6 - .../bridge-connected-systems.ts | 215 ---------- .../v1/bridge-connected-systems/index.ts | 6 - .../connect/routes/seam/bridge/v1/index.ts | 8 - .../seam/connect/routes/seam/bridge/v1/v1.ts | 184 -------- src/lib/seam/connect/routes/seam/index.ts | 2 - .../connect/routes/seam/instant-key/index.ts | 6 - .../v1/client-sessions/client-sessions.ts | 219 ---------- .../instant-key/v1/client-sessions/index.ts | 6 - .../routes/seam/instant-key/v1/index.ts | 7 - .../connect/routes/seam/instant-key/v1/v1.ts | 176 -------- 17 files changed, 27 insertions(+), 1444 deletions(-) delete mode 100644 src/lib/seam/connect/routes/seam/bridge/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/bridge/v1/v1.ts delete mode 100644 src/lib/seam/connect/routes/seam/instant-key/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.ts delete mode 100644 src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/instant-key/v1/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/instant-key/v1/v1.ts diff --git a/codegen/lib/connect.ts b/codegen/lib/connect.ts index db319edc..41b082be 100644 --- a/codegen/lib/connect.ts +++ b/codegen/lib/connect.ts @@ -1,4 +1,4 @@ -import type { Blueprint } from '@seamapi/blueprint' +import type { Blueprint, SeamAuthMethod } from '@seamapi/blueprint' import { kebabCase } from 'change-case' import type Metalsmith from 'metalsmith' @@ -23,14 +23,32 @@ type File = RouteLayoutContext & const rootPath = 'src/lib/seam/connect/routes' +const supportedAuthMethods: SeamAuthMethod[] = [ + 'api_key', + 'publishable_key', + 'client_session_token', + 'personal_access_token', + 'console_session_token', +] + export const connect = ( files: Metalsmith.Files, metalsmith: Metalsmith, ): void => { const metadata = metalsmith.metadata() as Metadata - const { - blueprint: { namespaces, routes }, - } = metadata + const { blueprint } = metadata + + const routes = blueprint.routes.filter((route) => + route.endpoints.some((endpoint) => + endpoint.authMethods.some((authMethod) => + supportedAuthMethods.includes(authMethod), + ), + ), + ) + + const namespaces = blueprint.namespaces.filter((namespace) => + routes.some((route) => route.parentPath === namespace.path), + ) const nodes = [...namespaces, ...routes] diff --git a/package-lock.json b/package-lock.json index 64e31131..e5807734 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "axios-retry": "^4.4.2" }, "devDependencies": { - "@seamapi/blueprint": "^0.50.1", + "@seamapi/blueprint": "^0.51.0", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.4.4", "@seamapi/types": "1.420.2", @@ -1123,9 +1123,9 @@ "peer": true }, "node_modules/@seamapi/blueprint": { - "version": "0.50.1", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-0.50.1.tgz", - "integrity": "sha512-EvSOSmN7+o5IYP+KJyVhkt/AyTe13iGKUjcyAzg/5kTPd1W2P88QKF02L1/zmcEpaqM18w7rLrROOYXVS3UXzw==", + "version": "0.51.0", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-0.51.0.tgz", + "integrity": "sha512-431gXXk0N9Fws3igHXGIii6zoalrGVzUANH99VavOiU78a9vhLkIZ07jwWL27EZL3/mHPmH4M7NwO2eaC+5AqA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index bdaa4e90..5fee877b 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "axios-retry": "^4.4.2" }, "devDependencies": { - "@seamapi/blueprint": "^0.50.1", + "@seamapi/blueprint": "^0.51.0", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.4.4", "@seamapi/types": "1.420.2", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index a31ed1df..35a9f48a 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -512,36 +512,6 @@ import { type PhonesSimulateCreateSandboxPhoneRequest, SeamHttpPhonesSimulate, } from './phones/simulate/index.js' -import { - type SeamBridgeV1BridgeClientSessionsCreateOptions, - type SeamBridgeV1BridgeClientSessionsCreateParameters, - type SeamBridgeV1BridgeClientSessionsCreateRequest, - type SeamBridgeV1BridgeClientSessionsGetOptions, - type SeamBridgeV1BridgeClientSessionsGetParameters, - type SeamBridgeV1BridgeClientSessionsGetRequest, - type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenOptions, - type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters, - type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenRequest, - type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeOptions, - type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters, - type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeRequest, - type SeamBridgeV1BridgeClientSessionsReportStatusOptions, - type SeamBridgeV1BridgeClientSessionsReportStatusParameters, - type SeamBridgeV1BridgeClientSessionsReportStatusRequest, - SeamHttpSeamBridgeV1BridgeClientSessions, -} from './seam/bridge/v1/bridge-client-sessions/index.js' -import { - type SeamBridgeV1BridgeConnectedSystemsListOptions, - type SeamBridgeV1BridgeConnectedSystemsListParameters, - type SeamBridgeV1BridgeConnectedSystemsListRequest, - SeamHttpSeamBridgeV1BridgeConnectedSystems, -} from './seam/bridge/v1/bridge-connected-systems/index.js' -import { - SeamHttpSeamInstantKeyV1ClientSessions, - type SeamInstantKeyV1ClientSessionsExchangeShortCodeOptions, - type SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters, - type SeamInstantKeyV1ClientSessionsExchangeShortCodeRequest, -} from './seam/instant-key/v1/client-sessions/index.js' import { SeamHttpSeamMobileSdkV1AcsCredentials, type SeamMobileSdkV1AcsCredentialsListOptions, @@ -2738,165 +2708,6 @@ export class SeamHttpEndpoints { } } - get ['/seam/bridge/v1/bridge_client_sessions/create'](): ( - parameters?: SeamBridgeV1BridgeClientSessionsCreateParameters, - options?: SeamBridgeV1BridgeClientSessionsCreateOptions, - ) => SeamBridgeV1BridgeClientSessionsCreateRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeClientSessionsCreate( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - client, - defaults, - ) - return seam.create(...args) - } - } - - get ['/seam/bridge/v1/bridge_client_sessions/get'](): ( - parameters?: SeamBridgeV1BridgeClientSessionsGetParameters, - options?: SeamBridgeV1BridgeClientSessionsGetOptions, - ) => SeamBridgeV1BridgeClientSessionsGetRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeClientSessionsGet( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - client, - defaults, - ) - return seam.get(...args) - } - } - - get ['/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token'](): ( - parameters?: SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters, - options?: SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenOptions, - ) => SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeClientSessionsRefreshTelemetryToken( - ...args: Parameters< - SeamHttpSeamBridgeV1BridgeClientSessions['refreshTelemetryToken'] - > - ): ReturnType< - SeamHttpSeamBridgeV1BridgeClientSessions['refreshTelemetryToken'] - > { - const seam = SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - client, - defaults, - ) - return seam.refreshTelemetryToken(...args) - } - } - - get ['/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code'](): ( - parameters?: SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters, - options?: SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeOptions, - ) => SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeClientSessionsRegeneratePairingCode( - ...args: Parameters< - SeamHttpSeamBridgeV1BridgeClientSessions['regeneratePairingCode'] - > - ): ReturnType< - SeamHttpSeamBridgeV1BridgeClientSessions['regeneratePairingCode'] - > { - const seam = SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - client, - defaults, - ) - return seam.regeneratePairingCode(...args) - } - } - - get ['/seam/bridge/v1/bridge_client_sessions/report_status'](): ( - parameters?: SeamBridgeV1BridgeClientSessionsReportStatusParameters, - options?: SeamBridgeV1BridgeClientSessionsReportStatusOptions, - ) => SeamBridgeV1BridgeClientSessionsReportStatusRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeClientSessionsReportStatus( - ...args: Parameters< - SeamHttpSeamBridgeV1BridgeClientSessions['reportStatus'] - > - ): ReturnType { - const seam = SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - client, - defaults, - ) - return seam.reportStatus(...args) - } - } - - get ['/seam/bridge/v1/bridge_connected_systems/list'](): ( - parameters?: SeamBridgeV1BridgeConnectedSystemsListParameters, - options?: SeamBridgeV1BridgeConnectedSystemsListOptions, - ) => SeamBridgeV1BridgeConnectedSystemsListRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamBridgeV1BridgeConnectedSystemsList( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpSeamBridgeV1BridgeConnectedSystems.fromClient( - client, - defaults, - ) - return seam.list(...args) - } - } - - get ['/seam/instant_key/v1/client_sessions/exchange_short_code'](): ( - parameters?: SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters, - options?: SeamInstantKeyV1ClientSessionsExchangeShortCodeOptions, - ) => SeamInstantKeyV1ClientSessionsExchangeShortCodeRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamInstantKeyV1ClientSessionsExchangeShortCode( - ...args: Parameters< - SeamHttpSeamInstantKeyV1ClientSessions['exchangeShortCode'] - > - ): ReturnType { - const seam = SeamHttpSeamInstantKeyV1ClientSessions.fromClient( - client, - defaults, - ) - return seam.exchangeShortCode(...args) - } - } - get ['/seam/mobile_sdk/v1/acs/credentials/list'](): ( parameters?: SeamMobileSdkV1AcsCredentialsListParameters, options?: SeamMobileSdkV1AcsCredentialsListOptions, @@ -4251,8 +4062,6 @@ export type SeamHttpEndpointQueryPaths = | '/phones/get' | '/phones/list' | '/phones/simulate/create_sandbox_phone' - | '/seam/bridge/v1/bridge_client_sessions/get' - | '/seam/bridge/v1/bridge_connected_systems/list' | '/seam/mobile_sdk/v1/acs/credentials/list' | '/seam/partner/v1/building_blocks/spaces/auto_map' | '/seam/partner/v1/resources/list' @@ -4354,11 +4163,6 @@ export type SeamHttpEndpointMutationPaths = | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' - | '/seam/bridge/v1/bridge_client_sessions/create' - | '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token' - | '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code' - | '/seam/bridge/v1/bridge_client_sessions/report_status' - | '/seam/instant_key/v1/client_sessions/exchange_short_code' | '/seam/mobile_sdk/v1/phone_sessions/get_or_create' | '/spaces/add_acs_entrances' | '/spaces/add_devices' diff --git a/src/lib/seam/connect/routes/seam/bridge/index.ts b/src/lib/seam/connect/routes/seam/bridge/index.ts deleted file mode 100644 index 2e9499e7..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './v1/index.js' diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.ts b/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.ts deleted file mode 100644 index b5375de8..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/bridge-client-sessions.ts +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { - RouteRequestBody, - RouteRequestParams, - RouteResponse, -} from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpSeamBridgeV1BridgeClientSessions { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1BridgeClientSessions { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamBridgeV1BridgeClientSessions(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1BridgeClientSessions { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamBridgeV1BridgeClientSessions(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamBridgeV1BridgeClientSessions { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamBridgeV1BridgeClientSessions(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamBridgeV1BridgeClientSessions.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamBridgeV1BridgeClientSessions.fromClientSessionToken( - token, - options, - ) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1BridgeClientSessions { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1BridgeClientSessions(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1BridgeClientSessions { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1BridgeClientSessions(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - create( - parameters?: SeamBridgeV1BridgeClientSessionsCreateParameters, - options: SeamBridgeV1BridgeClientSessionsCreateOptions = {}, - ): SeamBridgeV1BridgeClientSessionsCreateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/bridge/v1/bridge_client_sessions/create', - method: 'POST', - body: parameters, - responseKey: 'bridge_client_session', - options, - }) - } - - get( - parameters?: SeamBridgeV1BridgeClientSessionsGetParameters, - options: SeamBridgeV1BridgeClientSessionsGetOptions = {}, - ): SeamBridgeV1BridgeClientSessionsGetRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/bridge/v1/bridge_client_sessions/get', - method: 'GET', - params: parameters, - responseKey: 'bridge_client_session', - options, - }) - } - - refreshTelemetryToken( - parameters?: SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters, - options: SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenOptions = {}, - ): SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: - '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token', - method: 'POST', - body: parameters, - responseKey: 'bridge_client_session', - options, - }) - } - - regeneratePairingCode( - parameters?: SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters, - options: SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeOptions = {}, - ): SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: - '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code', - method: 'POST', - body: parameters, - responseKey: 'bridge_client_session', - options, - }) - } - - reportStatus( - parameters?: SeamBridgeV1BridgeClientSessionsReportStatusParameters, - options: SeamBridgeV1BridgeClientSessionsReportStatusOptions = {}, - ): SeamBridgeV1BridgeClientSessionsReportStatusRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/bridge/v1/bridge_client_sessions/report_status', - method: 'POST', - body: parameters, - responseKey: undefined, - options, - }) - } -} - -export type SeamBridgeV1BridgeClientSessionsCreateParameters = - RouteRequestBody<'/seam/bridge/v1/bridge_client_sessions/create'> - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsCreateParameters instead. - */ -export type SeamBridgeV1BridgeClientSessionsCreateBody = - SeamBridgeV1BridgeClientSessionsCreateParameters - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsCreateRequest instead. - */ -export type SeamBridgeV1BridgeClientSessionsCreateResponse = SetNonNullable< - Required> -> - -export type SeamBridgeV1BridgeClientSessionsCreateRequest = SeamHttpRequest< - SeamBridgeV1BridgeClientSessionsCreateResponse, - 'bridge_client_session' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeClientSessionsCreateOptions {} - -export type SeamBridgeV1BridgeClientSessionsGetParameters = - RouteRequestParams<'/seam/bridge/v1/bridge_client_sessions/get'> - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsGetParameters instead. - */ -export type SeamBridgeV1BridgeClientSessionsGetParams = - SeamBridgeV1BridgeClientSessionsGetParameters - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsGetRequest instead. - */ -export type SeamBridgeV1BridgeClientSessionsGetResponse = SetNonNullable< - Required> -> - -export type SeamBridgeV1BridgeClientSessionsGetRequest = SeamHttpRequest< - SeamBridgeV1BridgeClientSessionsGetResponse, - 'bridge_client_session' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeClientSessionsGetOptions {} - -export type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters = - RouteRequestBody<'/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token'> - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters instead. - */ -export type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenBody = - SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenParameters - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenRequest instead. - */ -export type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenResponse = - SetNonNullable< - Required< - RouteResponse<'/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token'> - > - > - -export type SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenRequest = - SeamHttpRequest< - SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenResponse, - 'bridge_client_session' - > - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeClientSessionsRefreshTelemetryTokenOptions {} - -export type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters = - RouteRequestBody<'/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code'> - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters instead. - */ -export type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeBody = - SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeParameters - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeRequest instead. - */ -export type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeResponse = - SetNonNullable< - Required< - RouteResponse<'/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code'> - > - > - -export type SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeRequest = - SeamHttpRequest< - SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeResponse, - 'bridge_client_session' - > - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeClientSessionsRegeneratePairingCodeOptions {} - -export type SeamBridgeV1BridgeClientSessionsReportStatusParameters = - RouteRequestBody<'/seam/bridge/v1/bridge_client_sessions/report_status'> - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsReportStatusParameters instead. - */ -export type SeamBridgeV1BridgeClientSessionsReportStatusBody = - SeamBridgeV1BridgeClientSessionsReportStatusParameters - -/** - * @deprecated Use SeamBridgeV1BridgeClientSessionsReportStatusRequest instead. - */ -export type SeamBridgeV1BridgeClientSessionsReportStatusResponse = - SetNonNullable< - Required< - RouteResponse<'/seam/bridge/v1/bridge_client_sessions/report_status'> - > - > - -export type SeamBridgeV1BridgeClientSessionsReportStatusRequest = - SeamHttpRequest - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeClientSessionsReportStatusOptions {} diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/index.ts b/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/index.ts deleted file mode 100644 index b12eb3c0..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-client-sessions/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './bridge-client-sessions.js' diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.ts b/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.ts deleted file mode 100644 index a705c030..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/bridge-connected-systems.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { RouteRequestParams, RouteResponse } from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpSeamBridgeV1BridgeConnectedSystems { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1BridgeConnectedSystems { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamBridgeV1BridgeConnectedSystems(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1BridgeConnectedSystems { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamBridgeV1BridgeConnectedSystems(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamBridgeV1BridgeConnectedSystems { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamBridgeV1BridgeConnectedSystems(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamBridgeV1BridgeConnectedSystems.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamBridgeV1BridgeConnectedSystems.fromClientSessionToken( - token, - options, - ) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1BridgeConnectedSystems { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1BridgeConnectedSystems(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1BridgeConnectedSystems { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1BridgeConnectedSystems(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - list( - parameters?: SeamBridgeV1BridgeConnectedSystemsListParameters, - options: SeamBridgeV1BridgeConnectedSystemsListOptions = {}, - ): SeamBridgeV1BridgeConnectedSystemsListRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/bridge/v1/bridge_connected_systems/list', - method: 'GET', - params: parameters, - responseKey: 'bridge_connected_systems', - options, - }) - } -} - -export type SeamBridgeV1BridgeConnectedSystemsListParameters = - RouteRequestParams<'/seam/bridge/v1/bridge_connected_systems/list'> - -/** - * @deprecated Use SeamBridgeV1BridgeConnectedSystemsListParameters instead. - */ -export type SeamBridgeV1BridgeConnectedSystemsListParams = - SeamBridgeV1BridgeConnectedSystemsListParameters - -/** - * @deprecated Use SeamBridgeV1BridgeConnectedSystemsListRequest instead. - */ -export type SeamBridgeV1BridgeConnectedSystemsListResponse = SetNonNullable< - Required> -> - -export type SeamBridgeV1BridgeConnectedSystemsListRequest = SeamHttpRequest< - SeamBridgeV1BridgeConnectedSystemsListResponse, - 'bridge_connected_systems' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamBridgeV1BridgeConnectedSystemsListOptions {} diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/index.ts b/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/index.ts deleted file mode 100644 index 52e1a0dc..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/bridge-connected-systems/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './bridge-connected-systems.js' diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/index.ts b/src/lib/seam/connect/routes/seam/bridge/v1/index.ts deleted file mode 100644 index b4a51de3..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './bridge-client-sessions/index.js' -export * from './bridge-connected-systems/index.js' -export * from './v1.js' diff --git a/src/lib/seam/connect/routes/seam/bridge/v1/v1.ts b/src/lib/seam/connect/routes/seam/bridge/v1/v1.ts deleted file mode 100644 index 882d6476..00000000 --- a/src/lib/seam/connect/routes/seam/bridge/v1/v1.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' - -import { SeamHttpSeamBridgeV1BridgeClientSessions } from './bridge-client-sessions/index.js' -import { SeamHttpSeamBridgeV1BridgeConnectedSystems } from './bridge-connected-systems/index.js' - -export class SeamHttpSeamBridgeV1 { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1 { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamBridgeV1(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamBridgeV1 { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamBridgeV1(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamBridgeV1 { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamBridgeV1(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamBridgeV1.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamBridgeV1.fromClientSessionToken(token, options) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1 { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamBridgeV1 { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamBridgeV1(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - get bridgeClientSessions(): SeamHttpSeamBridgeV1BridgeClientSessions { - return SeamHttpSeamBridgeV1BridgeClientSessions.fromClient( - this.client, - this.defaults, - ) - } - - get bridgeConnectedSystems(): SeamHttpSeamBridgeV1BridgeConnectedSystems { - return SeamHttpSeamBridgeV1BridgeConnectedSystems.fromClient( - this.client, - this.defaults, - ) - } -} diff --git a/src/lib/seam/connect/routes/seam/index.ts b/src/lib/seam/connect/routes/seam/index.ts index 1e723249..f902dceb 100644 --- a/src/lib/seam/connect/routes/seam/index.ts +++ b/src/lib/seam/connect/routes/seam/index.ts @@ -3,7 +3,5 @@ * Do not edit this file or add other files to this directory. */ -export * from './bridge/index.js' -export * from './instant-key/index.js' export * from './mobile-sdk/index.js' export * from './partner/index.js' diff --git a/src/lib/seam/connect/routes/seam/instant-key/index.ts b/src/lib/seam/connect/routes/seam/instant-key/index.ts deleted file mode 100644 index 2e9499e7..00000000 --- a/src/lib/seam/connect/routes/seam/instant-key/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './v1/index.js' diff --git a/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.ts b/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.ts deleted file mode 100644 index 406a8a1a..00000000 --- a/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/client-sessions.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpSeamInstantKeyV1ClientSessions { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamInstantKeyV1ClientSessions { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamInstantKeyV1ClientSessions(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamInstantKeyV1ClientSessions { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamInstantKeyV1ClientSessions(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamInstantKeyV1ClientSessions { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamInstantKeyV1ClientSessions(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamInstantKeyV1ClientSessions.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamInstantKeyV1ClientSessions.fromClientSessionToken( - token, - options, - ) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamInstantKeyV1ClientSessions { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamInstantKeyV1ClientSessions(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamInstantKeyV1ClientSessions { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamInstantKeyV1ClientSessions(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - exchangeShortCode( - parameters?: SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters, - options: SeamInstantKeyV1ClientSessionsExchangeShortCodeOptions = {}, - ): SeamInstantKeyV1ClientSessionsExchangeShortCodeRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/instant_key/v1/client_sessions/exchange_short_code', - method: 'POST', - body: parameters, - responseKey: 'client_session', - options, - }) - } -} - -export type SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters = - RouteRequestBody<'/seam/instant_key/v1/client_sessions/exchange_short_code'> - -/** - * @deprecated Use SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters instead. - */ -export type SeamInstantKeyV1ClientSessionsExchangeShortCodeBody = - SeamInstantKeyV1ClientSessionsExchangeShortCodeParameters - -/** - * @deprecated Use SeamInstantKeyV1ClientSessionsExchangeShortCodeRequest instead. - */ -export type SeamInstantKeyV1ClientSessionsExchangeShortCodeResponse = - SetNonNullable< - Required< - RouteResponse<'/seam/instant_key/v1/client_sessions/exchange_short_code'> - > - > - -export type SeamInstantKeyV1ClientSessionsExchangeShortCodeRequest = - SeamHttpRequest< - SeamInstantKeyV1ClientSessionsExchangeShortCodeResponse, - 'client_session' - > - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamInstantKeyV1ClientSessionsExchangeShortCodeOptions {} diff --git a/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/index.ts b/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/index.ts deleted file mode 100644 index 83896398..00000000 --- a/src/lib/seam/connect/routes/seam/instant-key/v1/client-sessions/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './client-sessions.js' diff --git a/src/lib/seam/connect/routes/seam/instant-key/v1/index.ts b/src/lib/seam/connect/routes/seam/instant-key/v1/index.ts deleted file mode 100644 index 2d03f348..00000000 --- a/src/lib/seam/connect/routes/seam/instant-key/v1/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './client-sessions/index.js' -export * from './v1.js' diff --git a/src/lib/seam/connect/routes/seam/instant-key/v1/v1.ts b/src/lib/seam/connect/routes/seam/instant-key/v1/v1.ts deleted file mode 100644 index edefe6d9..00000000 --- a/src/lib/seam/connect/routes/seam/instant-key/v1/v1.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' - -import { SeamHttpSeamInstantKeyV1ClientSessions } from './client-sessions/index.js' - -export class SeamHttpSeamInstantKeyV1 { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamInstantKeyV1 { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamInstantKeyV1(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamInstantKeyV1 { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamInstantKeyV1(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamInstantKeyV1 { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamInstantKeyV1(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamInstantKeyV1.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamInstantKeyV1.fromClientSessionToken(token, options) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamInstantKeyV1 { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamInstantKeyV1(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamInstantKeyV1 { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamInstantKeyV1(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - get clientSessions(): SeamHttpSeamInstantKeyV1ClientSessions { - return SeamHttpSeamInstantKeyV1ClientSessions.fromClient( - this.client, - this.defaults, - ) - } -} From 7e998c22280d7e8caa22af1b0a4b19ad3b235fe6 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 1 Jul 2025 17:10:00 -0700 Subject: [PATCH 2/3] Filter out mobile_sdk routes --- codegen/lib/connect.ts | 14 +- .../connect/routes/seam-http-endpoints.ts | 56 ----- src/lib/seam/connect/routes/seam/index.ts | 1 - .../connect/routes/seam/mobile-sdk/index.ts | 6 - .../routes/seam/mobile-sdk/v1/acs/acs.ts | 176 -------------- .../v1/acs/credentials/credentials.ts | 215 ------------------ .../mobile-sdk/v1/acs/credentials/index.ts | 6 - .../routes/seam/mobile-sdk/v1/acs/index.ts | 7 - .../routes/seam/mobile-sdk/v1/index.ts | 8 - .../mobile-sdk/v1/phone-sessions/index.ts | 6 - .../v1/phone-sessions/phone-sessions.ts | 215 ------------------ .../connect/routes/seam/mobile-sdk/v1/v1.ts | 181 --------------- 12 files changed, 8 insertions(+), 883 deletions(-) delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/acs.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/index.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.ts delete mode 100644 src/lib/seam/connect/routes/seam/mobile-sdk/v1/v1.ts diff --git a/codegen/lib/connect.ts b/codegen/lib/connect.ts index 41b082be..dd60cfb4 100644 --- a/codegen/lib/connect.ts +++ b/codegen/lib/connect.ts @@ -38,13 +38,15 @@ export const connect = ( const metadata = metalsmith.metadata() as Metadata const { blueprint } = metadata - const routes = blueprint.routes.filter((route) => - route.endpoints.some((endpoint) => - endpoint.authMethods.some((authMethod) => - supportedAuthMethods.includes(authMethod), + const routes = blueprint.routes + .filter((route) => + route.endpoints.some((endpoint) => + endpoint.authMethods.some((authMethod) => + supportedAuthMethods.includes(authMethod), + ), ), - ), - ) + ) + .filter((route) => !route.path.startsWith('/seam/mobile_sdk')) const namespaces = blueprint.namespaces.filter((namespace) => routes.some((route) => route.parentPath === namespace.path), diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index 35a9f48a..08fd122b 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -512,18 +512,6 @@ import { type PhonesSimulateCreateSandboxPhoneRequest, SeamHttpPhonesSimulate, } from './phones/simulate/index.js' -import { - SeamHttpSeamMobileSdkV1AcsCredentials, - type SeamMobileSdkV1AcsCredentialsListOptions, - type SeamMobileSdkV1AcsCredentialsListParameters, - type SeamMobileSdkV1AcsCredentialsListRequest, -} from './seam/mobile-sdk/v1/acs/credentials/index.js' -import { - SeamHttpSeamMobileSdkV1PhoneSessions, - type SeamMobileSdkV1PhoneSessionsGetOrCreateOptions, - type SeamMobileSdkV1PhoneSessionsGetOrCreateParameters, - type SeamMobileSdkV1PhoneSessionsGetOrCreateRequest, -} from './seam/mobile-sdk/v1/phone-sessions/index.js' import { SeamHttpSeamPartnerV1BuildingBlocksSpaces, type SeamPartnerV1BuildingBlocksSpacesAutoMapOptions, @@ -2708,48 +2696,6 @@ export class SeamHttpEndpoints { } } - get ['/seam/mobile_sdk/v1/acs/credentials/list'](): ( - parameters?: SeamMobileSdkV1AcsCredentialsListParameters, - options?: SeamMobileSdkV1AcsCredentialsListOptions, - ) => SeamMobileSdkV1AcsCredentialsListRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamMobileSdkV1AcsCredentialsList( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpSeamMobileSdkV1AcsCredentials.fromClient( - client, - defaults, - ) - return seam.list(...args) - } - } - - get ['/seam/mobile_sdk/v1/phone_sessions/get_or_create'](): ( - parameters?: SeamMobileSdkV1PhoneSessionsGetOrCreateParameters, - options?: SeamMobileSdkV1PhoneSessionsGetOrCreateOptions, - ) => SeamMobileSdkV1PhoneSessionsGetOrCreateRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function seamMobileSdkV1PhoneSessionsGetOrCreate( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpSeamMobileSdkV1PhoneSessions.fromClient( - client, - defaults, - ) - return seam.getOrCreate(...args) - } - } - get ['/seam/partner/v1/building_blocks/spaces/auto_map'](): ( parameters?: SeamPartnerV1BuildingBlocksSpacesAutoMapParameters, options?: SeamPartnerV1BuildingBlocksSpacesAutoMapOptions, @@ -4062,7 +4008,6 @@ export type SeamHttpEndpointQueryPaths = | '/phones/get' | '/phones/list' | '/phones/simulate/create_sandbox_phone' - | '/seam/mobile_sdk/v1/acs/credentials/list' | '/seam/partner/v1/building_blocks/spaces/auto_map' | '/seam/partner/v1/resources/list' | '/spaces/get' @@ -4163,7 +4108,6 @@ export type SeamHttpEndpointMutationPaths = | '/noise_sensors/noise_thresholds/update' | '/noise_sensors/simulate/trigger_noise_threshold' | '/phones/deactivate' - | '/seam/mobile_sdk/v1/phone_sessions/get_or_create' | '/spaces/add_acs_entrances' | '/spaces/add_devices' | '/spaces/create' diff --git a/src/lib/seam/connect/routes/seam/index.ts b/src/lib/seam/connect/routes/seam/index.ts index f902dceb..6e74aa88 100644 --- a/src/lib/seam/connect/routes/seam/index.ts +++ b/src/lib/seam/connect/routes/seam/index.ts @@ -3,5 +3,4 @@ * Do not edit this file or add other files to this directory. */ -export * from './mobile-sdk/index.js' export * from './partner/index.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/index.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/index.ts deleted file mode 100644 index 2e9499e7..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './v1/index.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/acs.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/acs.ts deleted file mode 100644 index fcdc6f0a..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/acs.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' - -import { SeamHttpSeamMobileSdkV1AcsCredentials } from './credentials/index.js' - -export class SeamHttpSeamMobileSdkV1Acs { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1Acs { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamMobileSdkV1Acs(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1Acs { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamMobileSdkV1Acs(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamMobileSdkV1Acs { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamMobileSdkV1Acs(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamMobileSdkV1Acs.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamMobileSdkV1Acs.fromClientSessionToken(token, options) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1Acs { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1Acs(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1Acs { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1Acs(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - get credentials(): SeamHttpSeamMobileSdkV1AcsCredentials { - return SeamHttpSeamMobileSdkV1AcsCredentials.fromClient( - this.client, - this.defaults, - ) - } -} diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.ts deleted file mode 100644 index 6ed12d3b..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/credentials.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpSeamMobileSdkV1AcsCredentials { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1AcsCredentials { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamMobileSdkV1AcsCredentials(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1AcsCredentials { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamMobileSdkV1AcsCredentials(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamMobileSdkV1AcsCredentials { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamMobileSdkV1AcsCredentials(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamMobileSdkV1AcsCredentials.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamMobileSdkV1AcsCredentials.fromClientSessionToken( - token, - options, - ) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1AcsCredentials { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1AcsCredentials(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1AcsCredentials { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1AcsCredentials(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - list( - parameters?: SeamMobileSdkV1AcsCredentialsListParameters, - options: SeamMobileSdkV1AcsCredentialsListOptions = {}, - ): SeamMobileSdkV1AcsCredentialsListRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/mobile_sdk/v1/acs/credentials/list', - method: 'POST', - body: parameters, - responseKey: 'acs_credentials', - options, - }) - } -} - -export type SeamMobileSdkV1AcsCredentialsListParameters = - RouteRequestBody<'/seam/mobile_sdk/v1/acs/credentials/list'> - -/** - * @deprecated Use SeamMobileSdkV1AcsCredentialsListParameters instead. - */ -export type SeamMobileSdkV1AcsCredentialsListParams = - SeamMobileSdkV1AcsCredentialsListParameters - -/** - * @deprecated Use SeamMobileSdkV1AcsCredentialsListRequest instead. - */ -export type SeamMobileSdkV1AcsCredentialsListResponse = SetNonNullable< - Required> -> - -export type SeamMobileSdkV1AcsCredentialsListRequest = SeamHttpRequest< - SeamMobileSdkV1AcsCredentialsListResponse, - 'acs_credentials' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamMobileSdkV1AcsCredentialsListOptions {} diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/index.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/index.ts deleted file mode 100644 index 2d9bacd3..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/credentials/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './credentials.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/index.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/index.ts deleted file mode 100644 index cb58af5a..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/acs/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './acs.js' -export * from './credentials/index.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/index.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/index.ts deleted file mode 100644 index 1fdfed9e..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './acs/index.js' -export * from './phone-sessions/index.js' -export * from './v1.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/index.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/index.ts deleted file mode 100644 index 2cf9bf2a..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './phone-sessions.js' diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.ts deleted file mode 100644 index ae630522..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/phone-sessions/phone-sessions.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpSeamMobileSdkV1PhoneSessions { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1PhoneSessions { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamMobileSdkV1PhoneSessions(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1PhoneSessions { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamMobileSdkV1PhoneSessions(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamMobileSdkV1PhoneSessions { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamMobileSdkV1PhoneSessions(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamMobileSdkV1PhoneSessions.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamMobileSdkV1PhoneSessions.fromClientSessionToken( - token, - options, - ) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1PhoneSessions { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1PhoneSessions(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1PhoneSessions { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1PhoneSessions(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - getOrCreate( - parameters?: SeamMobileSdkV1PhoneSessionsGetOrCreateParameters, - options: SeamMobileSdkV1PhoneSessionsGetOrCreateOptions = {}, - ): SeamMobileSdkV1PhoneSessionsGetOrCreateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/seam/mobile_sdk/v1/phone_sessions/get_or_create', - method: 'POST', - body: parameters, - responseKey: 'phone_session', - options, - }) - } -} - -export type SeamMobileSdkV1PhoneSessionsGetOrCreateParameters = - RouteRequestBody<'/seam/mobile_sdk/v1/phone_sessions/get_or_create'> - -/** - * @deprecated Use SeamMobileSdkV1PhoneSessionsGetOrCreateParameters instead. - */ -export type SeamMobileSdkV1PhoneSessionsGetOrCreateBody = - SeamMobileSdkV1PhoneSessionsGetOrCreateParameters - -/** - * @deprecated Use SeamMobileSdkV1PhoneSessionsGetOrCreateRequest instead. - */ -export type SeamMobileSdkV1PhoneSessionsGetOrCreateResponse = SetNonNullable< - Required> -> - -export type SeamMobileSdkV1PhoneSessionsGetOrCreateRequest = SeamHttpRequest< - SeamMobileSdkV1PhoneSessionsGetOrCreateResponse, - 'phone_session' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SeamMobileSdkV1PhoneSessionsGetOrCreateOptions {} diff --git a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/v1.ts b/src/lib/seam/connect/routes/seam/mobile-sdk/v1/v1.ts deleted file mode 100644 index d4ba06ef..00000000 --- a/src/lib/seam/connect/routes/seam/mobile-sdk/v1/v1.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import type { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' - -import { SeamHttpSeamMobileSdkV1Acs } from './acs/index.js' -import { SeamHttpSeamMobileSdkV1PhoneSessions } from './phone-sessions/index.js' - -export class SeamHttpSeamMobileSdkV1 { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { - const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - this.client = 'client' in options ? options.client : createClient(options) - this.defaults = limitToSeamHttpRequestOptions(options) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1 { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpSeamMobileSdkV1(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpSeamMobileSdkV1 { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpSeamMobileSdkV1(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpSeamMobileSdkV1 { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpSeamMobileSdkV1(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpSeamMobileSdkV1.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpSeamMobileSdkV1.fromClientSessionToken(token, options) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1 { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpSeamMobileSdkV1 { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpSeamMobileSdkV1(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - get acs(): SeamHttpSeamMobileSdkV1Acs { - return SeamHttpSeamMobileSdkV1Acs.fromClient(this.client, this.defaults) - } - - get phoneSessions(): SeamHttpSeamMobileSdkV1PhoneSessions { - return SeamHttpSeamMobileSdkV1PhoneSessions.fromClient( - this.client, - this.defaults, - ) - } -} From f7c62d49b6bdc915235e16b78e0a7ebd4d467559 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 1 Jul 2025 17:11:24 -0700 Subject: [PATCH 3/3] Run npm update --- package-lock.json | 465 ++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 223 insertions(+), 244 deletions(-) diff --git a/package-lock.json b/package-lock.json index e5807734..ef56ac14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.39.0", "license": "MIT", "dependencies": { - "@seamapi/url-search-params-serializer": "^2.0.0-beta.2", + "@seamapi/url-search-params-serializer": "^2.0.0", "axios": "^1.9.0", "axios-retry": "^4.4.2" }, @@ -642,6 +642,29 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -671,18 +694,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", - "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "version": "0.3.12", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", + "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -695,27 +714,17 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "version": "0.3.29", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", + "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", "dev": true, "license": "MIT", "dependencies": { @@ -835,9 +844,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.43.0.tgz", - "integrity": "sha512-Krjy9awJl6rKbruhQDgivNbD1WuLb8xAclM4IR4cN5pHGAs2oIMMQJEiC3IC/9TZJ+QZkmZhlMO/6MBGxPidpw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.1.tgz", + "integrity": "sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==", "cpu": [ "arm" ], @@ -849,9 +858,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.43.0.tgz", - "integrity": "sha512-ss4YJwRt5I63454Rpj+mXCXicakdFmKnUNxr1dLK+5rv5FJgAxnN7s31a5VchRYxCFWdmnDWKd0wbAdTr0J5EA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.1.tgz", + "integrity": "sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==", "cpu": [ "arm64" ], @@ -863,9 +872,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.43.0.tgz", - "integrity": "sha512-eKoL8ykZ7zz8MjgBenEF2OoTNFAPFz1/lyJ5UmmFSz5jW+7XbH1+MAgCVHy72aG59rbuQLcJeiMrP8qP5d/N0A==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.1.tgz", + "integrity": "sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==", "cpu": [ "arm64" ], @@ -877,9 +886,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.43.0.tgz", - "integrity": "sha512-SYwXJgaBYW33Wi/q4ubN+ldWC4DzQY62S4Ll2dgfr/dbPoF50dlQwEaEHSKrQdSjC6oIe1WgzosoaNoHCdNuMg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.1.tgz", + "integrity": "sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==", "cpu": [ "x64" ], @@ -891,9 +900,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.43.0.tgz", - "integrity": "sha512-SV+U5sSo0yujrjzBF7/YidieK2iF6E7MdF6EbYxNz94lA+R0wKl3SiixGyG/9Klab6uNBIqsN7j4Y/Fya7wAjQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.1.tgz", + "integrity": "sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==", "cpu": [ "arm64" ], @@ -905,9 +914,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.43.0.tgz", - "integrity": "sha512-J7uCsiV13L/VOeHJBo5SjasKiGxJ0g+nQTrBkAsmQBIdil3KhPnSE9GnRon4ejX1XDdsmK/l30IYLiAaQEO0Cg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.1.tgz", + "integrity": "sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==", "cpu": [ "x64" ], @@ -919,9 +928,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.43.0.tgz", - "integrity": "sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.1.tgz", + "integrity": "sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==", "cpu": [ "arm" ], @@ -933,9 +942,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.43.0.tgz", - "integrity": "sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.1.tgz", + "integrity": "sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==", "cpu": [ "arm" ], @@ -947,9 +956,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.43.0.tgz", - "integrity": "sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.1.tgz", + "integrity": "sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==", "cpu": [ "arm64" ], @@ -961,9 +970,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.43.0.tgz", - "integrity": "sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.1.tgz", + "integrity": "sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==", "cpu": [ "arm64" ], @@ -975,9 +984,9 @@ ] }, "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.43.0.tgz", - "integrity": "sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.1.tgz", + "integrity": "sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==", "cpu": [ "loong64" ], @@ -989,9 +998,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.43.0.tgz", - "integrity": "sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.1.tgz", + "integrity": "sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==", "cpu": [ "ppc64" ], @@ -1003,9 +1012,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.43.0.tgz", - "integrity": "sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.1.tgz", + "integrity": "sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==", "cpu": [ "riscv64" ], @@ -1017,9 +1026,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.43.0.tgz", - "integrity": "sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.1.tgz", + "integrity": "sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==", "cpu": [ "riscv64" ], @@ -1031,9 +1040,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.43.0.tgz", - "integrity": "sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.1.tgz", + "integrity": "sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==", "cpu": [ "s390x" ], @@ -1045,9 +1054,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.43.0.tgz", - "integrity": "sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.1.tgz", + "integrity": "sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==", "cpu": [ "x64" ], @@ -1059,9 +1068,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.43.0.tgz", - "integrity": "sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.1.tgz", + "integrity": "sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==", "cpu": [ "x64" ], @@ -1073,9 +1082,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.43.0.tgz", - "integrity": "sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.1.tgz", + "integrity": "sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==", "cpu": [ "arm64" ], @@ -1087,9 +1096,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.43.0.tgz", - "integrity": "sha512-fYCTEyzf8d+7diCw8b+asvWDCLMjsCEA8alvtAutqJOJp/wL5hs1rWSqJ1vkjgW0L2NB4bsYJrpKkiIPRR9dvw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.1.tgz", + "integrity": "sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==", "cpu": [ "ia32" ], @@ -1101,9 +1110,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.43.0.tgz", - "integrity": "sha512-SnGhLiE5rlK0ofq8kzuDkM0g7FN1s5VYY+YSMTibP7CqShxCQvqtNxTARS4xX4PFJfHjG0ZQYX9iGzI3FQh5Aw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.1.tgz", + "integrity": "sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==", "cpu": [ "x64" ], @@ -1155,9 +1164,9 @@ } }, "node_modules/@seamapi/fake-seam-connect": { - "version": "1.83.1", - "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-1.83.1.tgz", - "integrity": "sha512-LnVM8EL9G0UBRSKjKiZCvJaoIHC87GKf/QeLqofBQswOrKVI1LxdHIqbYMgsSZWFly1HPFBYZh0jdTh84b4Jgw==", + "version": "1.83.2", + "resolved": "https://registry.npmjs.org/@seamapi/fake-seam-connect/-/fake-seam-connect-1.83.2.tgz", + "integrity": "sha512-8WzPugS3bWh9avnC5a7dT1yeh+PUB9gBJHx0bRmJsZWjS7OUHR53U0FVAJ/p/x3MXHbF6QISpiZ/C/M0coXDBA==", "dev": true, "license": "MIT", "bin": { @@ -1221,9 +1230,9 @@ } }, "node_modules/@seamapi/url-search-params-serializer": { - "version": "2.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@seamapi/url-search-params-serializer/-/url-search-params-serializer-2.0.0-beta.2.tgz", - "integrity": "sha512-ASHYo5/0IY7iB/cWcZA9b6meAa5b22NfEZyIuZQ2I90L7WeKzeWxEmusA4nfc26giQOeuEF1xAIGSdGrT+lGZg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@seamapi/url-search-params-serializer/-/url-search-params-serializer-2.0.0.tgz", + "integrity": "sha512-mXHTk9b4pVueFOKkpWyQG6yVK8YWPjr3ksdvBoKhSn8inrBM3Blp539BHuiT4GDfjYtgWq+/j3GN3JTDMuXxJQ==", "license": "MIT", "engines": { "node": ">=18.12.0", @@ -1327,15 +1336,15 @@ } }, "node_modules/@swc/core": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.12.0.tgz", - "integrity": "sha512-/C0kiMHPY/HnLfqXYGMGxGck3A5Y3mqwxfv+EwHTPHGjAVRfHpWAEEBTSTF5C88vVY6CvwBEkhR2TX7t8Mahcw==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.12.9.tgz", + "integrity": "sha512-O+LfT2JlVMsIMWG9x+rdxg8GzpzeGtCZQfXV7cKc1PjIKUkLFf1QJ7okuseA4f/9vncu37dQ2ZcRrPKy0Ndd5g==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { "@swc/counter": "^0.1.3", - "@swc/types": "^0.1.22" + "@swc/types": "^0.1.23" }, "engines": { "node": ">=10" @@ -1345,16 +1354,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.12.0", - "@swc/core-darwin-x64": "1.12.0", - "@swc/core-linux-arm-gnueabihf": "1.12.0", - "@swc/core-linux-arm64-gnu": "1.12.0", - "@swc/core-linux-arm64-musl": "1.12.0", - "@swc/core-linux-x64-gnu": "1.12.0", - "@swc/core-linux-x64-musl": "1.12.0", - "@swc/core-win32-arm64-msvc": "1.12.0", - "@swc/core-win32-ia32-msvc": "1.12.0", - "@swc/core-win32-x64-msvc": "1.12.0" + "@swc/core-darwin-arm64": "1.12.9", + "@swc/core-darwin-x64": "1.12.9", + "@swc/core-linux-arm-gnueabihf": "1.12.9", + "@swc/core-linux-arm64-gnu": "1.12.9", + "@swc/core-linux-arm64-musl": "1.12.9", + "@swc/core-linux-x64-gnu": "1.12.9", + "@swc/core-linux-x64-musl": "1.12.9", + "@swc/core-win32-arm64-msvc": "1.12.9", + "@swc/core-win32-ia32-msvc": "1.12.9", + "@swc/core-win32-x64-msvc": "1.12.9" }, "peerDependencies": { "@swc/helpers": ">=0.5.17" @@ -1366,9 +1375,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.12.0.tgz", - "integrity": "sha512-usLr8kC80GDv3pwH2zoEaS279kxtWY0MY3blbMFw7zA8fAjqxa8IDxm3WcgyNLNWckWn4asFfguEwz/Weem3nA==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.12.9.tgz", + "integrity": "sha512-GACFEp4nD6V+TZNR2JwbMZRHB+Yyvp14FrcmB6UCUYmhuNWjkxi+CLnEvdbuiKyQYv0zA+TRpCHZ+whEs6gwfA==", "cpu": [ "arm64" ], @@ -1383,9 +1392,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.12.0.tgz", - "integrity": "sha512-Cvv4sqDcTY7QF2Dh1vn2Xbt/1ENYQcpmrGHzITJrXzxA2aBopsz/n4yQDiyRxTR0t802m4xu0CzMoZIHvVruWQ==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.12.9.tgz", + "integrity": "sha512-hv2kls7Ilkm2EpeJz+I9MCil7pGS3z55ZAgZfxklEuYsxpICycxeH+RNRv4EraggN44ms+FWCjtZFu0LGg2V3g==", "cpu": [ "x64" ], @@ -1400,9 +1409,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.12.0.tgz", - "integrity": "sha512-seM4/XMJMOupkzfLfHl8sRa3NdhsVZp+XgwA/vVeYZYJE4wuWUxVzhCYzwmNftVY32eF2IiRaWnhG6ho6jusnQ==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.12.9.tgz", + "integrity": "sha512-od9tDPiG+wMU9wKtd6y3nYJdNqgDOyLdgRRcrj1/hrbHoUPOM8wZQZdwQYGarw63iLXGgsw7t5HAF9Yc51ilFA==", "cpu": [ "arm" ], @@ -1417,9 +1426,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.12.0.tgz", - "integrity": "sha512-Al0x33gUVxNY5tutEYpSyv7mze6qQS1ONa0HEwoRxcK9WXsX0NHLTiOSGZoCUS1SsXM37ONlbA6/Bsp1MQyP+g==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.12.9.tgz", + "integrity": "sha512-6qx1ka9LHcLzxIgn2Mros+CZLkHK2TawlXzi/h7DJeNnzi8F1Hw0Yzjp8WimxNCg6s2n+o3jnmin1oXB7gg8rw==", "cpu": [ "arm64" ], @@ -1434,9 +1443,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.12.0.tgz", - "integrity": "sha512-OeFHz/5Hl9v75J9TYA5jQxNIYAZMqaiPpd9dYSTK2Xyqa/ZGgTtNyPhIwVfxx+9mHBf6+9c1mTlXUtACMtHmaQ==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.12.9.tgz", + "integrity": "sha512-yghFZWKPVVGbUdqiD7ft23G0JX6YFGDJPz9YbLLAwGuKZ9th3/jlWoQDAw1Naci31LQhVC+oIji6ozihSuwB2A==", "cpu": [ "arm64" ], @@ -1451,9 +1460,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.12.0.tgz", - "integrity": "sha512-ltIvqNi7H0c5pRawyqjeYSKEIfZP4vv/datT3mwT6BW7muJtd1+KIDCPFLMIQ4wm/h76YQwPocsin3fzmnFdNA==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.12.9.tgz", + "integrity": "sha512-SFUxyhWLZRNL8QmgGNqdi2Q43PNyFVkRZ2zIif30SOGFSxnxcf2JNeSeBgKIGVgaLSuk6xFVVCtJ3KIeaStgRg==", "cpu": [ "x64" ], @@ -1468,9 +1477,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.12.0.tgz", - "integrity": "sha512-Z/DhpjehaTK0uf+MhNB7mV9SuewpGs3P/q9/8+UsJeYoFr7yuOoPbAvrD6AqZkf6Bh7MRZ5OtG+KQgG5L+goiA==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.12.9.tgz", + "integrity": "sha512-9FB0wM+6idCGTI20YsBNBg9xSWtkDBymnpaTCsZM3qDc0l4uOpJMqbfWhQvp17x7r/ulZfb2QY8RDvQmCL6AcQ==", "cpu": [ "x64" ], @@ -1485,9 +1494,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.12.0.tgz", - "integrity": "sha512-wHnvbfHIh2gfSbvuFT7qP97YCMUDh+fuiso+pcC6ug8IsMxuViNapHET4o0ZdFNWHhXJ7/s0e6w7mkOalsqQiQ==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.12.9.tgz", + "integrity": "sha512-zHOusMVbOH9ik5RtRrMiGzLpKwxrPXgXkBm3SbUCa65HAdjV33NZ0/R9Rv1uPESALtEl2tzMYLUxYA5ECFDFhA==", "cpu": [ "arm64" ], @@ -1502,9 +1511,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.12.0.tgz", - "integrity": "sha512-88umlXwK+7J2p4DjfWHXQpmlZgCf1ayt6Ssj+PYlAfMCR0aBiJoAMwHWrvDXEozyOrsyP1j2X6WxbmA861vL5Q==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.12.9.tgz", + "integrity": "sha512-aWZf0PqE0ot7tCuhAjRkDFf41AzzSQO0x2xRfTbnhpROp57BRJ/N5eee1VULO/UA2PIJRG7GKQky5bSGBYlFug==", "cpu": [ "ia32" ], @@ -1519,9 +1528,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.12.0.tgz", - "integrity": "sha512-KR9TSRp+FEVOhbgTU6c94p/AYpsyBk7dIvlKQiDp8oKScUoyHG5yjmMBFN/BqUyTq4kj6zlgsY2rFE4R8/yqWg==", + "version": "1.12.9", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.12.9.tgz", + "integrity": "sha512-C25fYftXOras3P3anSUeXXIpxmEkdAcsIL9yrr0j1xepTZ/yKwpnQ6g3coj8UXdeJy4GTVlR6+Ow/QiBgZQNOg==", "cpu": [ "x64" ], @@ -1603,9 +1612,9 @@ "peer": true }, "node_modules/@types/jsonwebtoken": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.9.tgz", - "integrity": "sha512-uoe+GxEuHbvy12OUQct2X9JenKM3qAscquYymuQN4fMWG9DBQtykrQEFcAbVACF7qaLw9BePSodUL0kquqBJpQ==", + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", "dev": true, "license": "MIT", "dependencies": { @@ -1631,9 +1640,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.15.31", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.31.tgz", - "integrity": "sha512-jnVe5ULKl6tijxUhvQeNbQG/84fHfg+yMak02cT8QVhBx/F05rAVxCGBYYTh2EKz22D6JF5ktXuNwdx7b9iEGw==", + "version": "22.16.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.0.tgz", + "integrity": "sha512-B2egV9wALML1JCpv3VQoQ+yesQKAmNMBIAY7OteVrikcOcAkWm+dGL6qpeCktPjAv6N1JLnhbNiqS35UpFyBsQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2340,9 +2349,9 @@ } }, "node_modules/axios": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.9.0.tgz", - "integrity": "sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.10.0.tgz", + "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -3012,9 +3021,9 @@ } }, "node_modules/concurrently": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.1.2.tgz", - "integrity": "sha512-H9MWcoPsYddwbOGM6difjVwVZHl63nwMEwDJG/L7VGtuaJhb12h2caPG2tVPWs7emuYix252iGfqOyrz1GczTQ==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.0.tgz", + "integrity": "sha512-IsB/fiXTupmagMW4MNp2lx2cdSN2FfZq78vF90LBB+zZHArbIQZjQtzXCiXnvTxCZSvXanTqFLWBjw2UkLx1SQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3501,9 +3510,9 @@ } }, "node_modules/emittery": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-1.1.0.tgz", - "integrity": "sha512-rsX7ktqARv/6UQDgMaLfIqUWAEzzbCQiVh7V9rhDXp6c37yoJcks12NVD+XPkgl4AEavmNhVfrhGoqYwIsMYYA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-1.2.0.tgz", + "integrity": "sha512-KxdRyyFcS85pH3dnU8Y5yFUm2YJdaHwcBZWrfG8o89ZY9a13/f9itbN+YG3ELbBo9Pg5zvIozstmuV8bX13q6g==", "dev": true, "license": "MIT", "engines": { @@ -3528,9 +3537,9 @@ "license": "MIT" }, "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", "dev": true, "license": "MIT", "dependencies": { @@ -3924,9 +3933,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", - "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", "dev": true, "license": "MIT", "peer": true, @@ -3977,31 +3986,31 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.31.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", - "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.8", - "array.prototype.findlastindex": "^1.2.5", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.0", + "eslint-module-utils": "^2.12.1", "hasown": "^2.0.2", - "is-core-module": "^2.15.1", + "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "object.groupby": "^1.0.3", - "object.values": "^1.2.0", + "object.values": "^1.2.1", "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.8", + "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "engines": { @@ -4985,15 +4994,15 @@ } }, "node_modules/glob": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.2.tgz", - "integrity": "sha512-YT7U7Vye+t5fZ/QMkBFrTJ7ZQxInIUjwyAjVj84CYXqgBdv30MFUPGnBR6sQaVq6Is15wYJUsnzTuWaGRBhBAQ==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "dev": true, "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -5021,37 +5030,14 @@ "node": ">= 6" } }, - "node_modules/glob/node_modules/balanced-match": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-3.0.1.tgz", - "integrity": "sha512-vjtV3hiLqYDNRoiAv0zC4QaGAMPomEoq83PRmYIofPswwZurCeWR5LByXm7SyoL0Zh5+2z0+HC7jG8gSZJUh0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-4.0.1.tgz", - "integrity": "sha512-YClrbvTCXGe70pU2JiEiPLYXO9gQkyxYeKpJIQHVS/gOs6EWMQP2RYBwjFLNT322Ji8TOC3IMPfsYCedNpzKfA==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^3.0.0" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/glob/node_modules/minimatch": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.2.tgz", - "integrity": "sha512-+9TJCIYXgZ2Dm5LxVCFsa8jOm+evMwXHFI0JM1XROmkfkpz8/iLLDh+TwSmyIBrs6C6Xu9294/fq8cBA+P6AqA==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, "license": "ISC", "dependencies": { - "brace-expansion": "^4.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -7870,9 +7856,9 @@ } }, "node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", "bin": { @@ -7957,9 +7943,9 @@ "license": "MIT" }, "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", "dev": true, "license": "MIT", "dependencies": { @@ -8309,13 +8295,13 @@ } }, "node_modules/rollup": { - "version": "4.43.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.43.0.tgz", - "integrity": "sha512-wdN2Kd3Twh8MAEOEJZsuxuLKCsBEo4PVNLK6tQWAn10VhsVewQLzcucMgLolRlhFybGxfclbPeEYBaP6RvUFGg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.1.tgz", + "integrity": "sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.7" + "@types/estree": "1.0.8" }, "bin": { "rollup": "dist/bin/rollup" @@ -8325,36 +8311,29 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.43.0", - "@rollup/rollup-android-arm64": "4.43.0", - "@rollup/rollup-darwin-arm64": "4.43.0", - "@rollup/rollup-darwin-x64": "4.43.0", - "@rollup/rollup-freebsd-arm64": "4.43.0", - "@rollup/rollup-freebsd-x64": "4.43.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.43.0", - "@rollup/rollup-linux-arm-musleabihf": "4.43.0", - "@rollup/rollup-linux-arm64-gnu": "4.43.0", - "@rollup/rollup-linux-arm64-musl": "4.43.0", - "@rollup/rollup-linux-loongarch64-gnu": "4.43.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.43.0", - "@rollup/rollup-linux-riscv64-gnu": "4.43.0", - "@rollup/rollup-linux-riscv64-musl": "4.43.0", - "@rollup/rollup-linux-s390x-gnu": "4.43.0", - "@rollup/rollup-linux-x64-gnu": "4.43.0", - "@rollup/rollup-linux-x64-musl": "4.43.0", - "@rollup/rollup-win32-arm64-msvc": "4.43.0", - "@rollup/rollup-win32-ia32-msvc": "4.43.0", - "@rollup/rollup-win32-x64-msvc": "4.43.0", + "@rollup/rollup-android-arm-eabi": "4.44.1", + "@rollup/rollup-android-arm64": "4.44.1", + "@rollup/rollup-darwin-arm64": "4.44.1", + "@rollup/rollup-darwin-x64": "4.44.1", + "@rollup/rollup-freebsd-arm64": "4.44.1", + "@rollup/rollup-freebsd-x64": "4.44.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.44.1", + "@rollup/rollup-linux-arm-musleabihf": "4.44.1", + "@rollup/rollup-linux-arm64-gnu": "4.44.1", + "@rollup/rollup-linux-arm64-musl": "4.44.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.44.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-musl": "4.44.1", + "@rollup/rollup-linux-s390x-gnu": "4.44.1", + "@rollup/rollup-linux-x64-gnu": "4.44.1", + "@rollup/rollup-linux-x64-musl": "4.44.1", + "@rollup/rollup-win32-arm64-msvc": "4.44.1", + "@rollup/rollup-win32-ia32-msvc": "4.44.1", + "@rollup/rollup-win32-x64-msvc": "4.44.1", "fsevents": "~2.3.2" } }, - "node_modules/rollup/node_modules/@types/estree": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", - "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", - "dev": true, - "license": "MIT" - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -9732,9 +9711,9 @@ } }, "node_modules/tsx": { - "version": "4.20.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.1.tgz", - "integrity": "sha512-JsFUnMHIE+g8KllOvWTrSOwCKM10xLcsesvUQR61znsbrcwZ4U/QaqdymmvTqG5GMD7k2VFv9UG35C4dRy34Ag==", + "version": "4.20.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz", + "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==", "dev": true, "license": "MIT", "dependencies": { @@ -10578,9 +10557,9 @@ } }, "node_modules/zod": { - "version": "3.25.62", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.62.tgz", - "integrity": "sha512-YCxsr4DmhPcrKPC9R1oBHQNlQzlJEyPAId//qTau/vBee9uO8K6prmRq4eMkOyxvBfH4wDPIPdLx9HVMWIY3xA==", + "version": "3.25.67", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", + "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 5fee877b..40b86611 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ } }, "dependencies": { - "@seamapi/url-search-params-serializer": "^2.0.0-beta.2", + "@seamapi/url-search-params-serializer": "^2.0.0", "axios": "^1.9.0", "axios-retry": "^4.4.2" },