diff --git a/package-lock.json b/package-lock.json index ad8490dc..e90d1bb6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@clack/prompts": "^1.7.0", - "@seamapi/blueprint": "1.13.2", + "@seamapi/blueprint": "1.13.4", "@seamapi/http": "^2.16.0", "chalk": "^6.0.0", "command-line-usage": "^7.0.4", @@ -2887,13 +2887,13 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.2.tgz", - "integrity": "sha512-FS8zYX01P/eCXcZDUp+dOY3b34tjDmKj6TR1gE8P7IE8Fc7Q9Sr57yUBDv+OKhPIpMifDkr6+0G+A/ej/nIDTw==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.13.4.tgz", + "integrity": "sha512-+m3oGHQbwWgXkmm6VGSES+1TBtD3vAQMtKe4jbt00/Wpr3oPGSeSq04WK0iOfvROaUVzvl0LOoouLc8vJYWx2w==", "license": "MIT", "dependencies": { "change-case": "^5.4.4", - "zod": "^4.0.0" + "zod": "^4.6.7" }, "engines": { "node": ">=22.12.0", @@ -2901,9 +2901,9 @@ } }, "node_modules/@seamapi/http": { - "version": "2.49.0", - "resolved": "https://registry.npmjs.org/@seamapi/http/-/http-2.49.0.tgz", - "integrity": "sha512-VJPgyeUyXdRGsiobAHvz7qgi82uiAXPW8f1FAHc96jVIxmx/FCPHwsMZ/JbKZIA6oLvU2JZfqn3lNgDsUDwNfQ==", + "version": "2.52.0", + "resolved": "https://registry.npmjs.org/@seamapi/http/-/http-2.52.0.tgz", + "integrity": "sha512-efEdm5iHi0AM1eH3abvzav4ODZJ3ZaKKO6A4ty4dsrEbQ606hY1YWltwygJ7JMgIa4XsuV2qtvyoE1o+XcsGKA==", "license": "MIT", "dependencies": { "@seamapi/url-search-params-serializer": "^3.0.3", @@ -11439,9 +11439,9 @@ } }, "node_modules/tar": { - "version": "7.5.22", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", - "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", + "version": "7.5.23", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.23.tgz", + "integrity": "sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", diff --git a/package.json b/package.json index 4cd47985..c197f57d 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "packageManager": "npm@11.19.0", "dependencies": { "@clack/prompts": "^1.7.0", - "@seamapi/blueprint": "1.13.2", + "@seamapi/blueprint": "1.13.4", "@seamapi/http": "^2.16.0", "chalk": "^6.0.0", "command-line-usage": "^7.0.4", diff --git a/src/lib/interactions/connected-account.ts b/src/lib/interactions/connected-account.ts index 2ca83086..c95061b4 100644 --- a/src/lib/interactions/connected-account.ts +++ b/src/lib/interactions/connected-account.ts @@ -9,15 +9,8 @@ export const interactForConnectedAccount = async (initialValue?: string) => { fetchResources: () => seam.connectedAccounts.list(), initialValue, toChoice: (connectedAccount) => { - const identifiers = Object.values( - connectedAccount.user_identifier ?? {}, - ).filter((value): value is string => typeof value === 'string') - return { - title: - connectedAccount.user_identifier?.email ?? - identifiers[0] ?? - '', + title: connectedAccount.display_name || '', value: connectedAccount.connected_account_id, description: `${connectedAccount.account_type} ${connectedAccount.connected_account_id}`, } diff --git a/src/lib/interactions/device.ts b/src/lib/interactions/device.ts index 21b4a45c..b272f826 100644 --- a/src/lib/interactions/device.ts +++ b/src/lib/interactions/device.ts @@ -9,7 +9,7 @@ export const interactForDevice = async (initialValue?: string) => { fetchResources: () => seam.devices.list(), initialValue, toChoice: (device) => ({ - title: device.properties.name ?? '', + title: device.properties?.name ?? '', value: device.device_id, description: `${device.device_type} ${device.device_id}`, }),