Skip to content

Commit 321a034

Browse files
committed
feat: Sync with Seam API via be1a8c122a670df4bd22a33a7bffbcc164c4b089
1 parent 416e168 commit 321a034

File tree

3 files changed

+307
-0
lines changed

3 files changed

+307
-0
lines changed

src/lib/seam/connect/models/access-grants/access-grant.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,28 @@ const requested_code_unavailable = common_access_grant_warning
114114
'Indicates that the requested PIN code was already in use on a device, so a different code was assigned.',
115115
)
116116

117+
const device_does_not_support_access_codes = common_access_grant_warning
118+
.extend({
119+
warning_code: z
120+
.literal('device_does_not_support_access_codes')
121+
.describe(warning_code_description),
122+
device_id: z
123+
.string()
124+
.uuid()
125+
.describe('ID of the device that does not support access codes.'),
126+
})
127+
.describe(
128+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
129+
)
130+
117131
const access_grant_warning = z
118132
.discriminatedUnion('warning_code', [
119133
being_deleted,
120134
underprovisioned_access,
121135
overprovisioned_access,
122136
updating_access_times,
123137
requested_code_unavailable,
138+
device_does_not_support_access_codes,
124139
])
125140
.describe(
126141
'Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
@@ -135,6 +150,10 @@ const _access_grant_warning_map = z.object({
135150
.record(z.string().uuid(), requested_code_unavailable)
136151
.optional()
137152
.nullable(),
153+
device_does_not_support_access_codes: z
154+
.record(z.string().uuid(), device_does_not_support_access_codes)
155+
.optional()
156+
.nullable(),
138157
})
139158

140159
export type AccessGrantWarningMap = z.infer<typeof _access_grant_warning_map>

src/lib/seam/connect/openapi.ts

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,42 @@ export default {
22162216
],
22172217
type: 'object',
22182218
},
2219+
{
2220+
description:
2221+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
2222+
properties: {
2223+
created_at: {
2224+
description:
2225+
'Date and time at which Seam created the warning.',
2226+
format: 'date-time',
2227+
type: 'string',
2228+
},
2229+
device_id: {
2230+
description:
2231+
'ID of the device that does not support access codes.',
2232+
format: 'uuid',
2233+
type: 'string',
2234+
},
2235+
message: {
2236+
description:
2237+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2238+
type: 'string',
2239+
},
2240+
warning_code: {
2241+
description:
2242+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2243+
enum: ['device_does_not_support_access_codes'],
2244+
type: 'string',
2245+
},
2246+
},
2247+
required: [
2248+
'created_at',
2249+
'message',
2250+
'warning_code',
2251+
'device_id',
2252+
],
2253+
type: 'object',
2254+
},
22192255
],
22202256
},
22212257
type: 'array',
@@ -33868,6 +33904,44 @@ export default {
3386833904
],
3386933905
type: 'object',
3387033906
},
33907+
{
33908+
description:
33909+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
33910+
properties: {
33911+
created_at: {
33912+
description:
33913+
'Date and time at which Seam created the warning.',
33914+
format: 'date-time',
33915+
type: 'string',
33916+
},
33917+
device_id: {
33918+
description:
33919+
'ID of the device that does not support access codes.',
33920+
format: 'uuid',
33921+
type: 'string',
33922+
},
33923+
message: {
33924+
description:
33925+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
33926+
type: 'string',
33927+
},
33928+
warning_code: {
33929+
description:
33930+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
33931+
enum: [
33932+
'device_does_not_support_access_codes',
33933+
],
33934+
type: 'string',
33935+
},
33936+
},
33937+
required: [
33938+
'created_at',
33939+
'message',
33940+
'warning_code',
33941+
'device_id',
33942+
],
33943+
type: 'object',
33944+
},
3387133945
],
3387233946
},
3387333947
type: 'array',
@@ -34451,6 +34525,44 @@ export default {
3445134525
],
3445234526
type: 'object',
3445334527
},
34528+
{
34529+
description:
34530+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
34531+
properties: {
34532+
created_at: {
34533+
description:
34534+
'Date and time at which Seam created the warning.',
34535+
format: 'date-time',
34536+
type: 'string',
34537+
},
34538+
device_id: {
34539+
description:
34540+
'ID of the device that does not support access codes.',
34541+
format: 'uuid',
34542+
type: 'string',
34543+
},
34544+
message: {
34545+
description:
34546+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
34547+
type: 'string',
34548+
},
34549+
warning_code: {
34550+
description:
34551+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
34552+
enum: [
34553+
'device_does_not_support_access_codes',
34554+
],
34555+
type: 'string',
34556+
},
34557+
},
34558+
required: [
34559+
'created_at',
34560+
'message',
34561+
'warning_code',
34562+
'device_id',
34563+
],
34564+
type: 'object',
34565+
},
3445434566
],
3445534567
},
3445634568
type: 'array',
@@ -35062,6 +35174,44 @@ export default {
3506235174
],
3506335175
type: 'object',
3506435176
},
35177+
{
35178+
description:
35179+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
35180+
properties: {
35181+
created_at: {
35182+
description:
35183+
'Date and time at which Seam created the warning.',
35184+
format: 'date-time',
35185+
type: 'string',
35186+
},
35187+
device_id: {
35188+
description:
35189+
'ID of the device that does not support access codes.',
35190+
format: 'uuid',
35191+
type: 'string',
35192+
},
35193+
message: {
35194+
description:
35195+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
35196+
type: 'string',
35197+
},
35198+
warning_code: {
35199+
description:
35200+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
35201+
enum: [
35202+
'device_does_not_support_access_codes',
35203+
],
35204+
type: 'string',
35205+
},
35206+
},
35207+
required: [
35208+
'created_at',
35209+
'message',
35210+
'warning_code',
35211+
'device_id',
35212+
],
35213+
type: 'object',
35214+
},
3506535215
],
3506635216
},
3506735217
type: 'array',
@@ -35667,6 +35817,44 @@ export default {
3566735817
],
3566835818
type: 'object',
3566935819
},
35820+
{
35821+
description:
35822+
'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.',
35823+
properties: {
35824+
created_at: {
35825+
description:
35826+
'Date and time at which Seam created the warning.',
35827+
format: 'date-time',
35828+
type: 'string',
35829+
},
35830+
device_id: {
35831+
description:
35832+
'ID of the device that does not support access codes.',
35833+
format: 'uuid',
35834+
type: 'string',
35835+
},
35836+
message: {
35837+
description:
35838+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
35839+
type: 'string',
35840+
},
35841+
warning_code: {
35842+
description:
35843+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
35844+
enum: [
35845+
'device_does_not_support_access_codes',
35846+
],
35847+
type: 'string',
35848+
},
35849+
},
35850+
required: [
35851+
'created_at',
35852+
'message',
35853+
'warning_code',
35854+
'device_id',
35855+
],
35856+
type: 'object',
35857+
},
3567035858
],
3567135859
},
3567235860
type: 'array',

0 commit comments

Comments
 (0)