diff --git a/src/lib/seam/connect/internal/schemas.ts b/src/lib/seam/connect/internal/schemas.ts index 379f88c8..48f819f3 100644 --- a/src/lib/seam/connect/internal/schemas.ts +++ b/src/lib/seam/connect/internal/schemas.ts @@ -20,6 +20,7 @@ export { battery_status, bridge, bridge_client_session, + bridge_connected_system, capabilities, climate_preset, climate_setting, diff --git a/src/lib/seam/connect/models/bridges/bridge_client_session.ts b/src/lib/seam/connect/models/bridges/bridge-client-session.ts similarity index 100% rename from src/lib/seam/connect/models/bridges/bridge_client_session.ts rename to src/lib/seam/connect/models/bridges/bridge-client-session.ts diff --git a/src/lib/seam/connect/models/bridges/bridge-connected-system.ts b/src/lib/seam/connect/models/bridges/bridge-connected-system.ts new file mode 100644 index 00000000..2c2cac3c --- /dev/null +++ b/src/lib/seam/connect/models/bridges/bridge-connected-system.ts @@ -0,0 +1,19 @@ +import { z } from 'zod' + +export const bridge_connected_system = z.object({ + bridge_id: z.string().uuid(), + bridge_created_at: z.string().datetime(), + connected_account_id: z.string().uuid(), + connected_account_created_at: z.string().datetime(), + acs_system_id: z.string().uuid(), + acs_system_display_name: z.string(), + workspace_id: z.string().uuid(), + workspace_display_name: z.string(), +}).describe(` + --- + route_path: /seam/bridge/v1/bridge_connected_systems + undocumented: Seam Bridge Client only. + --- +`) + +export type BridgeConnectedSystem = z.infer diff --git a/src/lib/seam/connect/models/bridges/index.ts b/src/lib/seam/connect/models/bridges/index.ts index 4419514f..2c086e70 100644 --- a/src/lib/seam/connect/models/bridges/index.ts +++ b/src/lib/seam/connect/models/bridges/index.ts @@ -1,2 +1,3 @@ export * from './bridge.js' -export * from './bridge_client_session.js' +export * from './bridge-client-session.js' +export * from './bridge-connected-system.js' diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 039ecf00..e0956654 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -26200,6 +26200,151 @@ export default { 'x-undocumented': 'Seam Bridge Client only.', }, }, + '/seam/bridge/v1/bridge_connected_systems/list': { + get: { + description: + 'Returns the bridge connected systems associated with the session token used.', + operationId: 'seamBridgeV1BridgeConnectedSystemsListGet', + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + bridge_connected_systems: { + items: { + properties: { + acs_system_display_name: { type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + bridge_created_at: { + format: 'date-time', + type: 'string', + }, + bridge_id: { format: 'uuid', type: 'string' }, + connected_account_created_at: { + format: 'date-time', + type: 'string', + }, + connected_account_id: { + format: 'uuid', + type: 'string', + }, + workspace_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'bridge_id', + 'bridge_created_at', + 'connected_account_id', + 'connected_account_created_at', + 'acs_system_id', + 'acs_system_display_name', + 'workspace_id', + 'workspace_display_name', + ], + type: 'object', + 'x-route-path': + '/seam/bridge/v1/bridge_connected_systems', + 'x-undocumented': 'Seam Bridge Client only.', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['bridge_connected_systems', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [{ bridge_client_session: [] }], + summary: '/seam/bridge/v1/bridge_connected_systems/list', + tags: [], + 'x-fern-ignore': true, + 'x-response-key': 'bridge_connected_systems', + 'x-title': 'List Bridge Connected Systems', + 'x-undocumented': 'Seam Bridge Client only.', + }, + post: { + description: + 'Returns the bridge connected systems associated with the session token used.', + operationId: 'seamBridgeV1BridgeConnectedSystemsListPost', + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + bridge_connected_systems: { + items: { + properties: { + acs_system_display_name: { type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + bridge_created_at: { + format: 'date-time', + type: 'string', + }, + bridge_id: { format: 'uuid', type: 'string' }, + connected_account_created_at: { + format: 'date-time', + type: 'string', + }, + connected_account_id: { + format: 'uuid', + type: 'string', + }, + workspace_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'bridge_id', + 'bridge_created_at', + 'connected_account_id', + 'connected_account_created_at', + 'acs_system_id', + 'acs_system_display_name', + 'workspace_id', + 'workspace_display_name', + ], + type: 'object', + 'x-route-path': + '/seam/bridge/v1/bridge_connected_systems', + 'x-undocumented': 'Seam Bridge Client only.', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['bridge_connected_systems', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [{ bridge_client_session: [] }], + summary: '/seam/bridge/v1/bridge_connected_systems/list', + tags: [], + 'x-fern-sdk-group-name': [ + 'seam', + 'bridge', + 'v1', + 'bridge_connected_systems', + ], + 'x-fern-sdk-method-name': 'list', + 'x-fern-sdk-return-value': 'bridge_connected_systems', + 'x-response-key': 'bridge_connected_systems', + 'x-title': 'List Bridge Connected Systems', + 'x-undocumented': 'Seam Bridge Client only.', + }, + }, '/thermostats/activate_climate_preset': { post: { description: diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 980a7055..885b694c 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -35736,6 +35736,26 @@ export interface Routes { } } } + '/seam/bridge/v1/bridge_connected_systems/list': { + route: '/seam/bridge/v1/bridge_connected_systems/list' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: {} + formData: {} + jsonResponse: { + bridge_connected_systems: Array<{ + bridge_id: string + bridge_created_at: string + connected_account_id: string + connected_account_created_at: string + acs_system_id: string + acs_system_display_name: string + workspace_id: string + workspace_display_name: string + }> + } + } '/thermostats/activate_climate_preset': { route: '/thermostats/activate_climate_preset' method: 'POST'