Skip to content

Commit

Permalink
feat: Add Bridge (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Feb 7, 2025
1 parent e1759bb commit ff4fdf0
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
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 @@ -16,6 +16,7 @@ export {
acs_user_external_type,
any_device_type,
battery_status,
bridge,
capabilities,
climate_preset,
climate_setting,
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/model-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type {
AcsSystem,
AcsUser,
ActionAttempt,
Bridge,
ClientSession,
ConnectedAccount,
ConnectedAccountError,
Expand Down
13 changes: 13 additions & 0 deletions src/lib/seam/connect/models/bridges/bridge.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { z } from 'zod'

export const bridge = z.object({
bridge_id: z.string().uuid(),
workspace_id: z.string().uuid(),
created_at: z.string().datetime(),
}).describe(`
---
undocumented: Unreleased.
route_path: /bridges
---
`)
export type Bridge = z.infer<typeof bridge>
1 change: 1 addition & 0 deletions src/lib/seam/connect/models/bridges/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './bridge.js'
1 change: 1 addition & 0 deletions src/lib/seam/connect/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './access-codes/index.js'
export * from './acs/index.js'
export * from './action-attempts/index.js'
export * from './bridges/index.js'
export * from './client-sessions/index.js'
export * from './connect-webviews/index.js'
export * from './connected-accounts/index.js'
Expand Down
56 changes: 56 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19395,6 +19395,62 @@ export default {
'x-response-key': 'action_attempts',
},
},
'/bridges/get': {
post: {
operationId: 'bridgesGetPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: { bridge_id: { format: 'uuid', type: 'string' } },
required: ['bridge_id'],
type: 'object',
},
},
},
},
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
bridge: {
properties: {
bridge_id: { format: 'uuid', type: 'string' },
created_at: { format: 'date-time', type: 'string' },
workspace_id: { format: 'uuid', type: 'string' },
},
required: ['bridge_id', 'workspace_id', 'created_at'],
type: 'object',
'x-route-path': '/bridges',
'x-undocumented': 'Unreleased.',
},
ok: { type: 'boolean' },
},
required: ['bridge', 'ok'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
],
summary: '/bridges/get',
tags: [],
'x-fern-sdk-group-name': ['bridges'],
'x-fern-sdk-method-name': 'get',
'x-fern-sdk-return-value': 'bridge',
'x-response-key': 'bridge',
},
},
'/client_sessions/create': {
post: {
operationId: 'clientSessionsCreatePost',
Expand Down
18 changes: 18 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15083,6 +15083,24 @@ export interface Routes {
>
}
}
'/bridges/get': {
route: '/bridges/get'
method: 'GET' | 'POST'
queryParams: {}
jsonBody: {}
commonParams: {
bridge_id: string
}
formData: {}
jsonResponse: {
/** */
bridge: {
bridge_id: string
workspace_id: string
created_at: string
}
}
}
'/client_sessions/create': {
route: '/client_sessions/create'
method: 'POST' | 'PUT'
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export {
acs_system,
acs_user,
action_attempt,
bridge,
client_session,
common_failed_action_attempt,
common_pending_action_attempt,
Expand Down

0 comments on commit ff4fdf0

Please sign in to comment.