Skip to content

Commit 12b9ca4

Browse files
committed
feat: Sync with Seam API via 01e569f61f42e70ed9bc089f2fd1fc58838e055d
1 parent f64159e commit 12b9ca4

3 files changed

Lines changed: 109 additions & 0 deletions

File tree

src/lib/seam/connect/models/events/access-codes.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,30 @@ export type AccessCodeCreatedEvent = z.infer<typeof access_code_created_event>
6767

6868
export const access_code_changed_event = access_code_event.extend({
6969
event_type: z.literal('access_code.changed'),
70+
changed_properties: z
71+
.array(
72+
z.object({
73+
property: z
74+
.string()
75+
.describe('Name of the property that changed (e.g. `code`).'),
76+
previous_value: z
77+
.string()
78+
.nullable()
79+
.describe('Previous value of the property, or null if not set.'),
80+
new_value: z
81+
.string()
82+
.nullable()
83+
.describe('New value of the property, or null if cleared.'),
84+
}),
85+
)
86+
.optional()
87+
.describe('List of properties that changed on the access code.'),
88+
change_reason: z
89+
.string()
90+
.optional()
91+
.describe(
92+
'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).',
93+
),
7094
}).describe(`
7195
---
7296
route_path: /access_codes

src/lib/seam/connect/openapi.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17736,6 +17736,39 @@ const openapi: OpenAPISpec = {
1773617736
format: 'uuid',
1773717737
type: 'string',
1773817738
},
17739+
change_reason: {
17740+
description:
17741+
'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).',
17742+
type: 'string',
17743+
},
17744+
changed_properties: {
17745+
description:
17746+
'List of properties that changed on the access code.',
17747+
items: {
17748+
properties: {
17749+
new_value: {
17750+
description:
17751+
'New value of the property, or null if cleared.',
17752+
nullable: true,
17753+
type: 'string',
17754+
},
17755+
previous_value: {
17756+
description:
17757+
'Previous value of the property, or null if not set.',
17758+
nullable: true,
17759+
type: 'string',
17760+
},
17761+
property: {
17762+
description:
17763+
'Name of the property that changed (e.g. `code`).',
17764+
type: 'string',
17765+
},
17766+
},
17767+
required: ['property', 'previous_value', 'new_value'],
17768+
type: 'object',
17769+
},
17770+
type: 'array',
17771+
},
1773917772
connected_account_custom_metadata: {
1774017773
additionalProperties: {
1774117774
oneOf: [{ type: 'string' }, { type: 'boolean' }],

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55405,6 +55405,19 @@ export type Routes = {
5540555405
}
5540655406
| undefined
5540755407
event_type: 'access_code.changed'
55408+
/** List of properties that changed on the access code. */
55409+
changed_properties?:
55410+
| {
55411+
/** Name of the property that changed (e.g. `code`). */
55412+
property: string
55413+
/** Previous value of the property, or null if not set. */
55414+
previous_value: string | null
55415+
/** New value of the property, or null if cleared. */
55416+
new_value: string | null
55417+
}[]
55418+
| undefined
55419+
/** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
55420+
change_reason?: string | undefined
5540855421
}
5540955422
| {
5541055423
/** ID of the event. */
@@ -58825,6 +58838,19 @@ export type Routes = {
5882558838
}
5882658839
| undefined
5882758840
event_type: 'access_code.changed'
58841+
/** List of properties that changed on the access code. */
58842+
changed_properties?:
58843+
| {
58844+
/** Name of the property that changed (e.g. `code`). */
58845+
property: string
58846+
/** Previous value of the property, or null if not set. */
58847+
previous_value: string | null
58848+
/** New value of the property, or null if cleared. */
58849+
new_value: string | null
58850+
}[]
58851+
| undefined
58852+
/** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
58853+
change_reason?: string | undefined
5882858854
}
5882958855
| {
5883058856
/** ID of the event. */
@@ -92500,6 +92526,19 @@ export type Routes = {
9250092526
}
9250192527
| undefined
9250292528
event_type: 'access_code.changed'
92529+
/** List of properties that changed on the access code. */
92530+
changed_properties?:
92531+
| {
92532+
/** Name of the property that changed (e.g. `code`). */
92533+
property: string
92534+
/** Previous value of the property, or null if not set. */
92535+
previous_value: string | null
92536+
/** New value of the property, or null if cleared. */
92537+
new_value: string | null
92538+
}[]
92539+
| undefined
92540+
/** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
92541+
change_reason?: string | undefined
9250392542
}
9250492543
| {
9250592544
/** ID of the event. */
@@ -135559,6 +135598,19 @@ export type Routes = {
135559135598
}
135560135599
| undefined
135561135600
event_type: 'access_code.changed'
135601+
/** List of properties that changed on the access code. */
135602+
changed_properties?:
135603+
| {
135604+
/** Name of the property that changed (e.g. `code`). */
135605+
property: string
135606+
/** Previous value of the property, or null if not set. */
135607+
previous_value: string | null
135608+
/** New value of the property, or null if cleared. */
135609+
new_value: string | null
135610+
}[]
135611+
| undefined
135612+
/** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
135613+
change_reason?: string | undefined
135562135614
}
135563135615
| {
135564135616
/** ID of the event. */

0 commit comments

Comments
 (0)