Skip to content

Commit

Permalink
feat: Add acs_system.disconnected event (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 28, 2024
1 parent 40d362c commit 5e75da3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/seam/connect/models/events/acs/systems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ export const acs_system_connected_event = acs_system_event

export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>

export const acs_system_disconnected_event = acs_system_event
.extend({
event_type: z.literal('acs_system.disconnected'),
})
.describe('An ACS system was disconnected.')

export type AcsSystemDisconnectedEvent = z.infer<
typeof acs_system_disconnected_event
>

export const acs_system_added_event = acs_system_event
.extend({
event_type: z.literal('acs_system.added'),
Expand All @@ -23,4 +33,5 @@ export type AcsSystemAddedEvent = z.infer<typeof acs_system_added_event>
export const acs_system_events = [
acs_system_connected_event,
acs_system_added_event,
acs_system_disconnected_event,
] as const
2 changes: 2 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15121,6 +15121,7 @@ export default {
'access_code.backup_access_code_pulled',
'acs_system.added',
'acs_system.connected',
'acs_system.disconnected',
'acs_user.deleted',
'acs_credential.deleted',
'acs_credential.issued',
Expand Down Expand Up @@ -15197,6 +15198,7 @@ export default {
'access_code.backup_access_code_pulled',
'acs_system.added',
'acs_system.connected',
'acs_system.disconnected',
'acs_user.deleted',
'acs_credential.deleted',
'acs_credential.issued',
Expand Down
2 changes: 2 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14852,6 +14852,7 @@ export interface Routes {
| 'access_code.backup_access_code_pulled'
| 'acs_system.added'
| 'acs_system.connected'
| 'acs_system.disconnected'
| 'acs_user.deleted'
| 'acs_credential.deleted'
| 'acs_credential.issued'
Expand Down Expand Up @@ -14926,6 +14927,7 @@ export interface Routes {
| 'access_code.backup_access_code_pulled'
| 'acs_system.added'
| 'acs_system.connected'
| 'acs_system.disconnected'
| 'acs_user.deleted'
| 'acs_credential.deleted'
| 'acs_credential.issued'
Expand Down

0 comments on commit 5e75da3

Please sign in to comment.