@seamapi/types 1.302.2 → 1.303.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +41 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +245 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -0
- package/lib/seam/connect/models/acs/acs-credential.js +4 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.js +8 -8
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -0
- package/lib/seam/connect/openapi.d.ts +23 -0
- package/lib/seam/connect/openapi.js +32 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +192 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-user.ts +16 -16
- package/src/lib/seam/connect/openapi.ts +42 -1
- package/src/lib/seam/connect/route-types.ts +192 -1
package/package.json
CHANGED
|
@@ -116,6 +116,12 @@ const common_acs_credential = z.object({
|
|
|
116
116
|
.optional()
|
|
117
117
|
.nullable()
|
|
118
118
|
.describe('Access (PIN) code for the credential.'),
|
|
119
|
+
is_one_time_use: z
|
|
120
|
+
.boolean()
|
|
121
|
+
.optional()
|
|
122
|
+
.describe(
|
|
123
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
124
|
+
),
|
|
119
125
|
card_number: z.string().optional().nullable(),
|
|
120
126
|
is_issued: z.boolean().optional(),
|
|
121
127
|
issued_at: z.string().datetime().optional().nullable(),
|
|
@@ -234,25 +234,25 @@ const common_acs_user = z
|
|
|
234
234
|
})
|
|
235
235
|
.merge(user_fields)
|
|
236
236
|
|
|
237
|
-
export const acs_user = common_acs_user
|
|
238
|
-
|
|
239
|
-
.object({
|
|
237
|
+
export const acs_user = common_acs_user
|
|
238
|
+
.merge(
|
|
239
|
+
z.object({
|
|
240
240
|
is_managed: z.literal(true),
|
|
241
|
-
})
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
),
|
|
245
|
-
)
|
|
241
|
+
}),
|
|
242
|
+
)
|
|
243
|
+
.describe(
|
|
244
|
+
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
245
|
+
)
|
|
246
246
|
|
|
247
|
-
export const unmanaged_acs_user = common_acs_user
|
|
248
|
-
|
|
249
|
-
.object({
|
|
247
|
+
export const unmanaged_acs_user = common_acs_user
|
|
248
|
+
.merge(
|
|
249
|
+
z.object({
|
|
250
250
|
is_managed: z.literal(false),
|
|
251
|
-
})
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
),
|
|
255
|
-
)
|
|
251
|
+
}),
|
|
252
|
+
)
|
|
253
|
+
.describe(
|
|
254
|
+
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
255
|
+
)
|
|
256
256
|
|
|
257
257
|
export type AcsUser = z.output<typeof acs_user>
|
|
258
258
|
export type AcsUnmanagedUser = z.output<typeof unmanaged_acs_user>
|
|
@@ -352,6 +352,11 @@ export default {
|
|
|
352
352
|
'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).',
|
|
353
353
|
type: 'boolean',
|
|
354
354
|
},
|
|
355
|
+
is_one_time_use: {
|
|
356
|
+
description:
|
|
357
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
358
|
+
type: 'boolean',
|
|
359
|
+
},
|
|
355
360
|
issued_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
356
361
|
latest_desired_state_synced_with_provider_at: {
|
|
357
362
|
description:
|
|
@@ -1045,6 +1050,8 @@ export default {
|
|
|
1045
1050
|
type: 'object',
|
|
1046
1051
|
},
|
|
1047
1052
|
acs_user: {
|
|
1053
|
+
description:
|
|
1054
|
+
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
1048
1055
|
properties: {
|
|
1049
1056
|
access_schedule: {
|
|
1050
1057
|
description:
|
|
@@ -1717,6 +1724,11 @@ export default {
|
|
|
1717
1724
|
'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).',
|
|
1718
1725
|
type: 'boolean',
|
|
1719
1726
|
},
|
|
1727
|
+
is_one_time_use: {
|
|
1728
|
+
description:
|
|
1729
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
1730
|
+
type: 'boolean',
|
|
1731
|
+
},
|
|
1720
1732
|
issued_at: {
|
|
1721
1733
|
format: 'date-time',
|
|
1722
1734
|
nullable: true,
|
|
@@ -2010,6 +2022,11 @@ export default {
|
|
|
2010
2022
|
'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).',
|
|
2011
2023
|
type: 'boolean',
|
|
2012
2024
|
},
|
|
2025
|
+
is_one_time_use: {
|
|
2026
|
+
description:
|
|
2027
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
2028
|
+
type: 'boolean',
|
|
2029
|
+
},
|
|
2013
2030
|
issued_at: {
|
|
2014
2031
|
format: 'date-time',
|
|
2015
2032
|
nullable: true,
|
|
@@ -2430,6 +2447,11 @@ export default {
|
|
|
2430
2447
|
'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).',
|
|
2431
2448
|
type: 'boolean',
|
|
2432
2449
|
},
|
|
2450
|
+
is_one_time_use: {
|
|
2451
|
+
description:
|
|
2452
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
2453
|
+
type: 'boolean',
|
|
2454
|
+
},
|
|
2433
2455
|
issued_at: {
|
|
2434
2456
|
format: 'date-time',
|
|
2435
2457
|
nullable: true,
|
|
@@ -2722,6 +2744,11 @@ export default {
|
|
|
2722
2744
|
'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).',
|
|
2723
2745
|
type: 'boolean',
|
|
2724
2746
|
},
|
|
2747
|
+
is_one_time_use: {
|
|
2748
|
+
description:
|
|
2749
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
2750
|
+
type: 'boolean',
|
|
2751
|
+
},
|
|
2725
2752
|
issued_at: {
|
|
2726
2753
|
format: 'date-time',
|
|
2727
2754
|
nullable: true,
|
|
@@ -9052,7 +9079,7 @@ export default {
|
|
|
9052
9079
|
type: 'string',
|
|
9053
9080
|
},
|
|
9054
9081
|
},
|
|
9055
|
-
required: ['acs_user_id'],
|
|
9082
|
+
required: ['acs_user_id', 'allowed_acs_entrance_id'],
|
|
9056
9083
|
type: 'object',
|
|
9057
9084
|
},
|
|
9058
9085
|
},
|
|
@@ -9636,6 +9663,11 @@ export default {
|
|
|
9636
9663
|
'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).',
|
|
9637
9664
|
type: 'boolean',
|
|
9638
9665
|
},
|
|
9666
|
+
is_one_time_use: {
|
|
9667
|
+
description:
|
|
9668
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
9669
|
+
type: 'boolean',
|
|
9670
|
+
},
|
|
9639
9671
|
issued_at: {
|
|
9640
9672
|
format: 'date-time',
|
|
9641
9673
|
nullable: true,
|
|
@@ -10032,6 +10064,11 @@ export default {
|
|
|
10032
10064
|
'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).',
|
|
10033
10065
|
type: 'boolean',
|
|
10034
10066
|
},
|
|
10067
|
+
is_one_time_use: {
|
|
10068
|
+
description:
|
|
10069
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
10070
|
+
type: 'boolean',
|
|
10071
|
+
},
|
|
10035
10072
|
issued_at: {
|
|
10036
10073
|
format: 'date-time',
|
|
10037
10074
|
nullable: true,
|
|
@@ -11690,6 +11727,8 @@ export default {
|
|
|
11690
11727
|
schema: {
|
|
11691
11728
|
properties: {
|
|
11692
11729
|
acs_user: {
|
|
11730
|
+
description:
|
|
11731
|
+
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
11693
11732
|
properties: {
|
|
11694
11733
|
access_schedule: {
|
|
11695
11734
|
description:
|
|
@@ -12083,6 +12122,8 @@ export default {
|
|
|
12083
12122
|
properties: {
|
|
12084
12123
|
acs_users: {
|
|
12085
12124
|
items: {
|
|
12125
|
+
description:
|
|
12126
|
+
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
12086
12127
|
properties: {
|
|
12087
12128
|
access_schedule: {
|
|
12088
12129
|
description:
|