Skip to content

Commit 2feffba

Browse files
authored
feat: Sync with Seam API via f0bd086be9e49ceeb0f1528bcef5a49b89a7d5fb (#2651)
1 parent b022754 commit 2feffba

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

src/lib/seam/connect/models/access-grants/requested-access-method.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ export const requested_access_method = z.object({
1616
.describe(
1717
"Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
1818
),
19+
instant_key_max_use_count: z
20+
.number()
21+
.int()
22+
.min(1)
23+
.optional()
24+
.describe(
25+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
26+
),
1927
created_at: z
2028
.string()
2129
.datetime()

src/lib/seam/connect/openapi.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,12 @@ export default {
20212021
description: 'Display name of the access method.',
20222022
type: 'string',
20232023
},
2024+
instant_key_max_use_count: {
2025+
description:
2026+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
2027+
minimum: 1,
2028+
type: 'integer',
2029+
},
20242030
mode: {
20252031
description:
20262032
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -32398,6 +32404,12 @@ export default {
3239832404
pattern: '^\\d+$',
3239932405
type: 'string',
3240032406
},
32407+
instant_key_max_use_count: {
32408+
description:
32409+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
32410+
minimum: 1,
32411+
type: 'integer',
32412+
},
3240132413
mode: {
3240232414
description:
3240332415
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -33242,6 +33254,12 @@ export default {
3324233254
pattern: '^\\d+$',
3324333255
type: 'string',
3324433256
},
33257+
instant_key_max_use_count: {
33258+
description:
33259+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
33260+
minimum: 1,
33261+
type: 'integer',
33262+
},
3324533263
mode: {
3324633264
description:
3324733265
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -33594,6 +33612,12 @@ export default {
3359433612
'Display name of the access method.',
3359533613
type: 'string',
3359633614
},
33615+
instant_key_max_use_count: {
33616+
description:
33617+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
33618+
minimum: 1,
33619+
type: 'integer',
33620+
},
3359733621
mode: {
3359833622
description:
3359933623
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -34171,6 +34195,12 @@ export default {
3417134195
'Display name of the access method.',
3417234196
type: 'string',
3417334197
},
34198+
instant_key_max_use_count: {
34199+
description:
34200+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
34201+
minimum: 1,
34202+
type: 'integer',
34203+
},
3417434204
mode: {
3417534205
description:
3417634206
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -34775,6 +34805,12 @@ export default {
3477534805
'Display name of the access method.',
3477634806
type: 'string',
3477734807
},
34808+
instant_key_max_use_count: {
34809+
description:
34810+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
34811+
minimum: 1,
34812+
type: 'integer',
34813+
},
3477834814
mode: {
3477934815
description:
3478034816
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
@@ -35374,6 +35410,12 @@ export default {
3537435410
'Display name of the access method.',
3537535411
type: 'string',
3537635412
},
35413+
instant_key_max_use_count: {
35414+
description:
35415+
"Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.",
35416+
minimum: 1,
35417+
type: 'integer',
35418+
},
3537735419
mode: {
3537835420
description:
3537935421
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11215,6 +11215,8 @@ export type Routes = {
1121511215
mode: 'code' | 'card' | 'mobile_key'
1121611216
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1121711217
code?: string | undefined
11218+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
11219+
instant_key_max_use_count?: number | undefined
1121811220
}[]
1121911221
/** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
1122011222
starts_at?: string | undefined
@@ -11250,6 +11252,8 @@ export type Routes = {
1125011252
mode: 'code' | 'card' | 'mobile_key'
1125111253
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1125211254
code?: string | undefined
11255+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
11256+
instant_key_max_use_count?: number | undefined
1125311257
/** Date and time at which the requested access method was added to the Access Grant. */
1125411258
created_at: string
1125511259
/** IDs of the access methods created for the requested access method. */
@@ -11438,6 +11442,8 @@ export type Routes = {
1143811442
mode: 'code' | 'card' | 'mobile_key'
1143911443
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1144011444
code?: string | undefined
11445+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
11446+
instant_key_max_use_count?: number | undefined
1144111447
/** Date and time at which the requested access method was added to the Access Grant. */
1144211448
created_at: string
1144311449
/** IDs of the access methods created for the requested access method. */
@@ -13905,6 +13911,8 @@ export type Routes = {
1390513911
mode: 'code' | 'card' | 'mobile_key'
1390613912
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1390713913
code?: string | undefined
13914+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
13915+
instant_key_max_use_count?: number | undefined
1390813916
/** Date and time at which the requested access method was added to the Access Grant. */
1390913917
created_at: string
1391013918
/** IDs of the access methods created for the requested access method. */
@@ -14062,6 +14070,8 @@ export type Routes = {
1406214070
mode: 'code' | 'card' | 'mobile_key'
1406314071
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1406414072
code?: string | undefined
14073+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
14074+
instant_key_max_use_count?: number | undefined
1406514075
}[]
1406614076
}
1406714077
formData: {}
@@ -14091,6 +14101,8 @@ export type Routes = {
1409114101
mode: 'code' | 'card' | 'mobile_key'
1409214102
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1409314103
code?: string | undefined
14104+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
14105+
instant_key_max_use_count?: number | undefined
1409414106
/** Date and time at which the requested access method was added to the Access Grant. */
1409514107
created_at: string
1409614108
/** IDs of the access methods created for the requested access method. */
@@ -14257,6 +14269,8 @@ export type Routes = {
1425714269
mode: 'code' | 'card' | 'mobile_key'
1425814270
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1425914271
code?: string | undefined
14272+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
14273+
instant_key_max_use_count?: number | undefined
1426014274
/** Date and time at which the requested access method was added to the Access Grant. */
1426114275
created_at: string
1426214276
/** IDs of the access methods created for the requested access method. */
@@ -14424,6 +14438,8 @@ export type Routes = {
1442414438
mode: 'code' | 'card' | 'mobile_key'
1442514439
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1442614440
code?: string | undefined
14441+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
14442+
instant_key_max_use_count?: number | undefined
1442714443
/** Date and time at which the requested access method was added to the Access Grant. */
1442814444
created_at: string
1442914445
/** IDs of the access methods created for the requested access method. */
@@ -18059,6 +18075,8 @@ export type Routes = {
1805918075
mode: 'code' | 'card' | 'mobile_key'
1806018076
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
1806118077
code?: string | undefined
18078+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
18079+
instant_key_max_use_count?: number | undefined
1806218080
/** Date and time at which the requested access method was added to the Access Grant. */
1806318081
created_at: string
1806418082
/** IDs of the access methods created for the requested access method. */
@@ -65759,6 +65777,8 @@ export type Routes = {
6575965777
mode: 'code' | 'card' | 'mobile_key'
6576065778
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
6576165779
code?: string | undefined
65780+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
65781+
instant_key_max_use_count?: number | undefined
6576265782
/** Date and time at which the requested access method was added to the Access Grant. */
6576365783
created_at: string
6576465784
/** IDs of the access methods created for the requested access method. */
@@ -71745,6 +71765,8 @@ export type Routes = {
7174571765
mode: 'code' | 'card' | 'mobile_key'
7174671766
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
7174771767
code?: string | undefined
71768+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
71769+
instant_key_max_use_count?: number | undefined
7174871770
/** Date and time at which the requested access method was added to the Access Grant. */
7174971771
created_at: string
7175071772
/** IDs of the access methods created for the requested access method. */
@@ -103590,6 +103612,8 @@ export type Routes = {
103590103612
mode: 'code' | 'card' | 'mobile_key'
103591103613
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
103592103614
code?: string | undefined
103615+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
103616+
instant_key_max_use_count?: number | undefined
103593103617
/** Date and time at which the requested access method was added to the Access Grant. */
103594103618
created_at: string
103595103619
/** IDs of the access methods created for the requested access method. */

0 commit comments

Comments
 (0)