Skip to content

Commit

Permalink
feat: Add acs_credential.is_one_time_use
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 27, 2024
1 parent fde509a commit 3e0b6cf
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/lib/seam/connect/models/acs/acs-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ const common_acs_credential = z.object({
.optional()
.nullable()
.describe('Access (PIN) code for the credential.'),
is_one_time_use: z
.boolean()
.optional()
.describe(
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
),
card_number: z.string().optional().nullable(),
is_issued: z.boolean().optional(),
issued_at: z.string().datetime().optional().nullable(),
Expand Down
37 changes: 36 additions & 1 deletion src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: { format: 'date-time', nullable: true, type: 'string' },
latest_desired_state_synced_with_provider_at: {
description:
Expand Down Expand Up @@ -1717,6 +1722,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down Expand Up @@ -2010,6 +2020,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down Expand Up @@ -2430,6 +2445,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down Expand Up @@ -2722,6 +2742,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down Expand Up @@ -9052,7 +9077,7 @@ export default {
type: 'string',
},
},
required: ['acs_user_id'],
required: ['acs_user_id', 'allowed_acs_entrance_id'],
type: 'object',
},
},
Expand Down Expand Up @@ -9636,6 +9661,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down Expand Up @@ -10032,6 +10062,11 @@ export default {
'Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).',
type: 'boolean',
},
is_one_time_use: {
description:
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
type: 'boolean',
},
issued_at: {
format: 'date-time',
nullable: true,
Expand Down
Loading

0 comments on commit 3e0b6cf

Please sign in to comment.