Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add bridge_connected_system #1612

Merged
merged 1 commit into from
Mar 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/seam/connect/internal/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export {
battery_status,
bridge,
bridge_client_session,
bridge_connected_system,
capabilities,
climate_preset,
climate_setting,
Expand Down
19 changes: 19 additions & 0 deletions src/lib/seam/connect/models/bridges/bridge-connected-system.ts
Original file line number Diff line number Diff line change
@@ -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<typeof bridge_connected_system>
3 changes: 2 additions & 1 deletion src/lib/seam/connect/models/bridges/index.ts
Original file line number Diff line number Diff line change
@@ -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'
145 changes: 145 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 20 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down