Skip to content

Commit 3648895

Browse files
authored
feat: Sync with Seam API via 9b133074e0ddbd2eec3170cdffb39e97710145e8 (#2772)
1 parent 4e5635f commit 3648895

File tree

3 files changed

+293
-0
lines changed

3 files changed

+293
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,32 @@ const underprovisioned_access = common_access_grant_warning
7171
'Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.',
7272
)
7373

74+
const overprovisioned_failed_device = z.object({
75+
device_id: z
76+
.string()
77+
.uuid()
78+
.describe('Device whose access code could not be revoked.'),
79+
error_code: z
80+
.string()
81+
.describe(
82+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
83+
),
84+
message: z
85+
.string()
86+
.describe('Human-readable description of why revocation failed.'),
87+
})
88+
7489
const overprovisioned_access = common_access_grant_warning
7590
.extend({
7691
warning_code: z
7792
.literal('overprovisioned_access')
7893
.describe(warning_code_description),
94+
failed_devices: z
95+
.array(overprovisioned_failed_device)
96+
.optional()
97+
.describe(
98+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
99+
),
79100
})
80101
.describe(
81102
'Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.',

src/lib/seam/connect/openapi.ts

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,6 +2474,33 @@ export default {
24742474
format: 'date-time',
24752475
type: 'string',
24762476
},
2477+
failed_devices: {
2478+
description:
2479+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
2480+
items: {
2481+
properties: {
2482+
device_id: {
2483+
description:
2484+
'Device whose access code could not be revoked.',
2485+
format: 'uuid',
2486+
type: 'string',
2487+
},
2488+
error_code: {
2489+
description:
2490+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
2491+
type: 'string',
2492+
},
2493+
message: {
2494+
description:
2495+
'Human-readable description of why revocation failed.',
2496+
type: 'string',
2497+
},
2498+
},
2499+
required: ['device_id', 'error_code', 'message'],
2500+
type: 'object',
2501+
},
2502+
type: 'array',
2503+
},
24772504
message: {
24782505
description:
24792506
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
@@ -36004,6 +36031,37 @@ export default {
3600436031
format: 'date-time',
3600536032
type: 'string',
3600636033
},
36034+
failed_devices: {
36035+
description:
36036+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
36037+
items: {
36038+
properties: {
36039+
device_id: {
36040+
description:
36041+
'Device whose access code could not be revoked.',
36042+
format: 'uuid',
36043+
type: 'string',
36044+
},
36045+
error_code: {
36046+
description:
36047+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
36048+
type: 'string',
36049+
},
36050+
message: {
36051+
description:
36052+
'Human-readable description of why revocation failed.',
36053+
type: 'string',
36054+
},
36055+
},
36056+
required: [
36057+
'device_id',
36058+
'error_code',
36059+
'message',
36060+
],
36061+
type: 'object',
36062+
},
36063+
type: 'array',
36064+
},
3600736065
message: {
3600836066
description:
3600936067
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
@@ -36630,6 +36688,37 @@ export default {
3663036688
format: 'date-time',
3663136689
type: 'string',
3663236690
},
36691+
failed_devices: {
36692+
description:
36693+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
36694+
items: {
36695+
properties: {
36696+
device_id: {
36697+
description:
36698+
'Device whose access code could not be revoked.',
36699+
format: 'uuid',
36700+
type: 'string',
36701+
},
36702+
error_code: {
36703+
description:
36704+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
36705+
type: 'string',
36706+
},
36707+
message: {
36708+
description:
36709+
'Human-readable description of why revocation failed.',
36710+
type: 'string',
36711+
},
36712+
},
36713+
required: [
36714+
'device_id',
36715+
'error_code',
36716+
'message',
36717+
],
36718+
type: 'object',
36719+
},
36720+
type: 'array',
36721+
},
3663336722
message: {
3663436723
description:
3663536724
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
@@ -37305,6 +37394,37 @@ export default {
3730537394
format: 'date-time',
3730637395
type: 'string',
3730737396
},
37397+
failed_devices: {
37398+
description:
37399+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
37400+
items: {
37401+
properties: {
37402+
device_id: {
37403+
description:
37404+
'Device whose access code could not be revoked.',
37405+
format: 'uuid',
37406+
type: 'string',
37407+
},
37408+
error_code: {
37409+
description:
37410+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
37411+
type: 'string',
37412+
},
37413+
message: {
37414+
description:
37415+
'Human-readable description of why revocation failed.',
37416+
type: 'string',
37417+
},
37418+
},
37419+
required: [
37420+
'device_id',
37421+
'error_code',
37422+
'message',
37423+
],
37424+
type: 'object',
37425+
},
37426+
type: 'array',
37427+
},
3730837428
message: {
3730937429
description:
3731037430
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
@@ -37967,6 +38087,37 @@ export default {
3796738087
format: 'date-time',
3796838088
type: 'string',
3796938089
},
38090+
failed_devices: {
38091+
description:
38092+
'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).',
38093+
items: {
38094+
properties: {
38095+
device_id: {
38096+
description:
38097+
'Device whose access code could not be revoked.',
38098+
format: 'uuid',
38099+
type: 'string',
38100+
},
38101+
error_code: {
38102+
description:
38103+
'Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).',
38104+
type: 'string',
38105+
},
38106+
message: {
38107+
description:
38108+
'Human-readable description of why revocation failed.',
38109+
type: 'string',
38110+
},
38111+
},
38112+
required: [
38113+
'device_id',
38114+
'error_code',
38115+
'message',
38116+
],
38117+
type: 'object',
38118+
},
38119+
type: 'array',
38120+
},
3797038121
message: {
3797138122
description:
3797238123
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',

0 commit comments

Comments
 (0)