Skip to content

Commit 32c9ec5

Browse files
authored
feat: Add acs_entrance.added and acs_entrance.removed events (#1568)
1 parent eef0c01 commit 32c9ec5

File tree

4 files changed

+214
-0
lines changed

4 files changed

+214
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { z } from 'zod'
2+
3+
import { common_acs_event } from './common.js'
4+
5+
const acs_entrance_event = common_acs_event
6+
.extend({
7+
acs_entrance_id: z.string().uuid(),
8+
})
9+
.describe(
10+
'ID of the [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details).',
11+
)
12+
13+
export const acs_entrance_added_event = acs_entrance_event.extend({
14+
event_type: z.literal('acs_entrance.added'),
15+
}).describe(`
16+
---
17+
route_path: /acs/entrances
18+
---
19+
An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.
20+
`)
21+
22+
export const acs_entrance_removed_event = acs_entrance_event.extend({
23+
event_type: z.literal('acs_entrance.removed'),
24+
}).describe(`
25+
---
26+
route_path: /acs/entrances
27+
---
28+
An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.
29+
`)
30+
31+
export type AcsUserDeletedEvent = z.infer<typeof acs_entrance_removed_event>
32+
33+
export const acs_entrance_events = [
34+
acs_entrance_added_event,
35+
acs_entrance_removed_event,
36+
] as const

src/lib/seam/connect/models/events/acs/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { acs_access_group_events } from './access-groups.js'
22
import { acs_credential_events } from './credentials.js'
33
import { acs_encoder_events } from './encoders.js'
4+
import { acs_entrance_events } from './entrances.js'
45
import { acs_system_events } from './systems.js'
56
import { acs_user_events } from './users.js'
67

@@ -10,4 +11,5 @@ export const acs_events = [
1011
...acs_user_events,
1112
...acs_encoder_events,
1213
...acs_access_group_events,
14+
...acs_entrance_events,
1315
] as const

src/lib/seam/connect/openapi.ts

+108
Original file line numberDiff line numberDiff line change
@@ -9552,6 +9552,110 @@ export default {
95529552
type: 'object',
95539553
'x-route-path': '/acs/access_groups',
95549554
},
9555+
{
9556+
description:
9557+
'An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.',
9558+
properties: {
9559+
acs_entrance_id: { format: 'uuid', type: 'string' },
9560+
acs_system_id: {
9561+
description:
9562+
'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
9563+
format: 'uuid',
9564+
type: 'string',
9565+
},
9566+
connected_account_id: {
9567+
description:
9568+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
9569+
format: 'uuid',
9570+
type: 'string',
9571+
},
9572+
created_at: {
9573+
description: 'Date and time at which the event was created.',
9574+
format: 'date-time',
9575+
type: 'string',
9576+
},
9577+
event_id: {
9578+
description: 'ID of the event.',
9579+
format: 'uuid',
9580+
type: 'string',
9581+
},
9582+
event_type: { enum: ['acs_entrance.added'], type: 'string' },
9583+
occurred_at: {
9584+
description: 'Date and time at which the event occurred.',
9585+
format: 'date-time',
9586+
type: 'string',
9587+
},
9588+
workspace_id: {
9589+
description:
9590+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
9591+
format: 'uuid',
9592+
type: 'string',
9593+
},
9594+
},
9595+
required: [
9596+
'event_id',
9597+
'workspace_id',
9598+
'created_at',
9599+
'occurred_at',
9600+
'acs_system_id',
9601+
'acs_entrance_id',
9602+
'event_type',
9603+
],
9604+
type: 'object',
9605+
'x-route-path': '/acs/entrances',
9606+
},
9607+
{
9608+
description:
9609+
'An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.',
9610+
properties: {
9611+
acs_entrance_id: { format: 'uuid', type: 'string' },
9612+
acs_system_id: {
9613+
description:
9614+
'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
9615+
format: 'uuid',
9616+
type: 'string',
9617+
},
9618+
connected_account_id: {
9619+
description:
9620+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
9621+
format: 'uuid',
9622+
type: 'string',
9623+
},
9624+
created_at: {
9625+
description: 'Date and time at which the event was created.',
9626+
format: 'date-time',
9627+
type: 'string',
9628+
},
9629+
event_id: {
9630+
description: 'ID of the event.',
9631+
format: 'uuid',
9632+
type: 'string',
9633+
},
9634+
event_type: { enum: ['acs_entrance.removed'], type: 'string' },
9635+
occurred_at: {
9636+
description: 'Date and time at which the event occurred.',
9637+
format: 'date-time',
9638+
type: 'string',
9639+
},
9640+
workspace_id: {
9641+
description:
9642+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
9643+
format: 'uuid',
9644+
type: 'string',
9645+
},
9646+
},
9647+
required: [
9648+
'event_id',
9649+
'workspace_id',
9650+
'created_at',
9651+
'occurred_at',
9652+
'acs_system_id',
9653+
'acs_entrance_id',
9654+
'event_type',
9655+
],
9656+
type: 'object',
9657+
'x-route-path': '/acs/entrances',
9658+
},
95559659
{
95569660
description:
95579661
'A [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was deleted.',
@@ -22742,6 +22846,8 @@ export default {
2274222846
'acs_encoder.added',
2274322847
'acs_encoder.removed',
2274422848
'acs_access_group.deleted',
22849+
'acs_entrance.added',
22850+
'acs_entrance.removed',
2274522851
'client_session.deleted',
2274622852
'connected_account.connected',
2274722853
'connected_account.created',
@@ -22824,6 +22930,8 @@ export default {
2282422930
'acs_encoder.added',
2282522931
'acs_encoder.removed',
2282622932
'acs_access_group.deleted',
22933+
'acs_entrance.added',
22934+
'acs_entrance.removed',
2282722935
'client_session.deleted',
2282822936
'connected_account.connected',
2282922937
'connected_account.created',

src/lib/seam/connect/route-types.ts

+68
Original file line numberDiff line numberDiff line change
@@ -19809,6 +19809,38 @@ export interface Routes {
1980919809
acs_access_group_id: string
1981019810
event_type: 'acs_access_group.deleted'
1981119811
}
19812+
| {
19813+
/** ID of the event. */
19814+
event_id: string
19815+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
19816+
workspace_id: string
19817+
/** Date and time at which the event was created. */
19818+
created_at: string
19819+
/** Date and time at which the event occurred. */
19820+
occurred_at: string
19821+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
19822+
connected_account_id?: string | undefined
19823+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
19824+
acs_system_id: string
19825+
acs_entrance_id: string
19826+
event_type: 'acs_entrance.added'
19827+
}
19828+
| {
19829+
/** ID of the event. */
19830+
event_id: string
19831+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
19832+
workspace_id: string
19833+
/** Date and time at which the event was created. */
19834+
created_at: string
19835+
/** Date and time at which the event occurred. */
19836+
occurred_at: string
19837+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
19838+
connected_account_id?: string | undefined
19839+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
19840+
acs_system_id: string
19841+
acs_entrance_id: string
19842+
event_type: 'acs_entrance.removed'
19843+
}
1981219844
| {
1981319845
/** ID of the event. */
1981419846
event_id: string
@@ -20699,6 +20731,8 @@ export interface Routes {
2069920731
| 'acs_encoder.added'
2070020732
| 'acs_encoder.removed'
2070120733
| 'acs_access_group.deleted'
20734+
| 'acs_entrance.added'
20735+
| 'acs_entrance.removed'
2070220736
| 'client_session.deleted'
2070320737
| 'connected_account.connected'
2070420738
| 'connected_account.created'
@@ -20779,6 +20813,8 @@ export interface Routes {
2077920813
| 'acs_encoder.added'
2078020814
| 'acs_encoder.removed'
2078120815
| 'acs_access_group.deleted'
20816+
| 'acs_entrance.added'
20817+
| 'acs_entrance.removed'
2078220818
| 'client_session.deleted'
2078320819
| 'connected_account.connected'
2078420820
| 'connected_account.created'
@@ -21293,6 +21329,38 @@ export interface Routes {
2129321329
acs_access_group_id: string
2129421330
event_type: 'acs_access_group.deleted'
2129521331
}
21332+
| {
21333+
/** ID of the event. */
21334+
event_id: string
21335+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
21336+
workspace_id: string
21337+
/** Date and time at which the event was created. */
21338+
created_at: string
21339+
/** Date and time at which the event occurred. */
21340+
occurred_at: string
21341+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
21342+
connected_account_id?: string | undefined
21343+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
21344+
acs_system_id: string
21345+
acs_entrance_id: string
21346+
event_type: 'acs_entrance.added'
21347+
}
21348+
| {
21349+
/** ID of the event. */
21350+
event_id: string
21351+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
21352+
workspace_id: string
21353+
/** Date and time at which the event was created. */
21354+
created_at: string
21355+
/** Date and time at which the event occurred. */
21356+
occurred_at: string
21357+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
21358+
connected_account_id?: string | undefined
21359+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
21360+
acs_system_id: string
21361+
acs_entrance_id: string
21362+
event_type: 'acs_entrance.removed'
21363+
}
2129621364
| {
2129721365
/** ID of the event. */
2129821366
event_id: string

0 commit comments

Comments
 (0)