@seamapi/types 1.283.0 → 1.285.0
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 +104 -14
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +430 -82
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +37 -4
- package/lib/seam/connect/models/acs/acs-entrance.js +2 -1
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-system.js +2 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.d.ts +21 -0
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.js +9 -0
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/metadata/index.js +1 -0
- package/lib/seam/connect/models/acs/metadata/index.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/latch.d.ts +2 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +62 -2
- package/lib/seam/connect/models/action-attempts/common.d.ts +19 -0
- package/lib/seam/connect/models/action-attempts/common.js +10 -0
- package/lib/seam/connect/models/action-attempts/common.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +30 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js +2 -1
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +32 -2
- package/lib/seam/connect/models/action-attempts/scan-card.js +6 -2
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +38 -60
- package/lib/seam/connect/openapi.js +70 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +285 -10
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +3 -0
- package/src/lib/seam/connect/models/acs/acs-system.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.ts +13 -0
- package/src/lib/seam/connect/models/acs/metadata/index.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/common.ts +11 -0
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/scan-card.ts +7 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/openapi.ts +70 -6
- package/src/lib/seam/connect/route-types.ts +505 -80
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
acs_entrance_assa_abloy_vostio_metadata,
|
|
4
5
|
acs_entrance_dormakaba_community_metadata,
|
|
5
6
|
acs_entrance_latch_metadata,
|
|
6
7
|
acs_entrance_salto_ks_metadata,
|
|
@@ -29,6 +30,8 @@ export const acs_entrance = z.object({
|
|
|
29
30
|
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
|
|
30
31
|
dormakaba_community_metadata:
|
|
31
32
|
acs_entrance_dormakaba_community_metadata.optional(),
|
|
33
|
+
assa_abloy_vostio_metadata:
|
|
34
|
+
acs_entrance_assa_abloy_vostio_metadata.optional(),
|
|
32
35
|
})
|
|
33
36
|
|
|
34
37
|
export type AcsEntrance = z.infer<typeof acs_entrance>
|
|
@@ -38,7 +38,9 @@ export const acs_system_external_type = z.enum([
|
|
|
38
38
|
'assa_abloy_credential_service',
|
|
39
39
|
'latch_building',
|
|
40
40
|
'dormakaba_community',
|
|
41
|
+
'legic_connect',
|
|
41
42
|
'assa_abloy_vostio',
|
|
43
|
+
'vostio_credential_service',
|
|
42
44
|
])
|
|
43
45
|
|
|
44
46
|
export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_entrance_assa_abloy_vostio_metadata = z.object({
|
|
4
|
+
door_type: z.enum(['CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator']),
|
|
5
|
+
door_name: z.string(),
|
|
6
|
+
door_number: z.number().optional(),
|
|
7
|
+
stand_open: z.boolean().optional(),
|
|
8
|
+
pms_id: z.string().optional(),
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
export type AcsEntranceAssaAbloyVostioMetadata = z.infer<
|
|
12
|
+
typeof acs_entrance_assa_abloy_vostio_metadata
|
|
13
|
+
>
|
|
@@ -25,3 +25,14 @@ export const common_failed_action_attempt = common_action_attempt.extend({
|
|
|
25
25
|
status: z.literal('error'),
|
|
26
26
|
result: z.null(),
|
|
27
27
|
})
|
|
28
|
+
|
|
29
|
+
export const common_action_attempt_errors = [
|
|
30
|
+
z.object({
|
|
31
|
+
type: z.literal('uncategorized_error'),
|
|
32
|
+
message: z.string(),
|
|
33
|
+
}),
|
|
34
|
+
z.object({
|
|
35
|
+
type: z.literal('action_attempt_expired'),
|
|
36
|
+
message: z.string(),
|
|
37
|
+
}),
|
|
38
|
+
] as const
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
unmanaged_acs_credential,
|
|
6
6
|
} from '../acs/acs-credential.js'
|
|
7
7
|
import {
|
|
8
|
+
common_action_attempt_errors,
|
|
8
9
|
common_failed_action_attempt,
|
|
9
10
|
common_pending_action_attempt,
|
|
10
11
|
common_succeeded_action_attempt,
|
|
@@ -23,6 +24,7 @@ const incompatible_card_format_error = z.object({
|
|
|
23
24
|
})
|
|
24
25
|
|
|
25
26
|
const error = z.union([
|
|
27
|
+
...common_action_attempt_errors,
|
|
26
28
|
no_card_on_encoder_error,
|
|
27
29
|
incompatible_card_format_error,
|
|
28
30
|
])
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
unmanaged_acs_credential,
|
|
7
7
|
} from '../acs/acs-credential.js'
|
|
8
8
|
import {
|
|
9
|
+
common_action_attempt_errors,
|
|
9
10
|
common_failed_action_attempt,
|
|
10
11
|
common_pending_action_attempt,
|
|
11
12
|
common_succeeded_action_attempt,
|
|
@@ -13,11 +14,16 @@ import {
|
|
|
13
14
|
|
|
14
15
|
const action_type = z.literal('SCAN_CARD')
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
+
const no_card_on_encoder_error = z.object({
|
|
17
18
|
type: z.literal('no_card_on_encoder'),
|
|
18
19
|
message: z.string(),
|
|
19
20
|
})
|
|
20
21
|
|
|
22
|
+
const error = z.union([
|
|
23
|
+
...common_action_attempt_errors,
|
|
24
|
+
no_card_on_encoder_error,
|
|
25
|
+
])
|
|
26
|
+
|
|
21
27
|
const warning = z.object({
|
|
22
28
|
warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
23
29
|
warning_message: z.string(),
|
|
@@ -4,6 +4,7 @@ import { device_capability_flags } from './device.js'
|
|
|
4
4
|
|
|
5
5
|
export const DEVICE_PROVIDERS = {
|
|
6
6
|
DORMAKABA_COMMUNITY: 'dormakaba_community',
|
|
7
|
+
LEGIC_CONNECT: 'legic_connect',
|
|
7
8
|
AKUVOX: 'akuvox',
|
|
8
9
|
AUGUST: 'august',
|
|
9
10
|
AVIGILON_ALTA: 'avigilon_alta',
|
|
@@ -43,6 +44,7 @@ export const DEVICE_PROVIDERS = {
|
|
|
43
44
|
LATCH: 'latch',
|
|
44
45
|
AKILES: 'akiles',
|
|
45
46
|
VOSTIO: 'assa_abloy_vostio',
|
|
47
|
+
VOSTIO_CREDENTIAL_SERVICE: 'vostio_credential_service',
|
|
46
48
|
} as const
|
|
47
49
|
|
|
48
50
|
export type DeviceProviderName =
|
|
@@ -105,7 +107,6 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
105
107
|
'pti',
|
|
106
108
|
'visionline',
|
|
107
109
|
'assa_abloy_credential_service',
|
|
108
|
-
'dormakaba_community',
|
|
109
110
|
'latch',
|
|
110
111
|
'salto',
|
|
111
112
|
],
|
|
@@ -477,6 +477,20 @@ export default {
|
|
|
477
477
|
format: 'uuid',
|
|
478
478
|
type: 'string',
|
|
479
479
|
},
|
|
480
|
+
assa_abloy_vostio_metadata: {
|
|
481
|
+
properties: {
|
|
482
|
+
door_name: { type: 'string' },
|
|
483
|
+
door_number: { format: 'float', type: 'number' },
|
|
484
|
+
door_type: {
|
|
485
|
+
enum: ['CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator'],
|
|
486
|
+
type: 'string',
|
|
487
|
+
},
|
|
488
|
+
pms_id: { type: 'string' },
|
|
489
|
+
stand_open: { type: 'boolean' },
|
|
490
|
+
},
|
|
491
|
+
required: ['door_type', 'door_name'],
|
|
492
|
+
type: 'object',
|
|
493
|
+
},
|
|
480
494
|
created_at: {
|
|
481
495
|
description: 'Date and time at which the entrance was created.',
|
|
482
496
|
format: 'date-time',
|
|
@@ -773,7 +787,9 @@ export default {
|
|
|
773
787
|
'assa_abloy_credential_service',
|
|
774
788
|
'latch_building',
|
|
775
789
|
'dormakaba_community',
|
|
790
|
+
'legic_connect',
|
|
776
791
|
'assa_abloy_vostio',
|
|
792
|
+
'vostio_credential_service',
|
|
777
793
|
],
|
|
778
794
|
type: 'string',
|
|
779
795
|
},
|
|
@@ -808,7 +824,9 @@ export default {
|
|
|
808
824
|
'assa_abloy_credential_service',
|
|
809
825
|
'latch_building',
|
|
810
826
|
'dormakaba_community',
|
|
827
|
+
'legic_connect',
|
|
811
828
|
'assa_abloy_vostio',
|
|
829
|
+
'vostio_credential_service',
|
|
812
830
|
],
|
|
813
831
|
type: 'string',
|
|
814
832
|
'x-deprecated': 'Use `external_type`.',
|
|
@@ -1848,12 +1866,35 @@ export default {
|
|
|
1848
1866
|
},
|
|
1849
1867
|
action_type: { enum: ['SCAN_CARD'], type: 'string' },
|
|
1850
1868
|
error: {
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1869
|
+
oneOf: [
|
|
1870
|
+
{
|
|
1871
|
+
properties: {
|
|
1872
|
+
message: { type: 'string' },
|
|
1873
|
+
type: { enum: ['uncategorized_error'], type: 'string' },
|
|
1874
|
+
},
|
|
1875
|
+
required: ['type', 'message'],
|
|
1876
|
+
type: 'object',
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
properties: {
|
|
1880
|
+
message: { type: 'string' },
|
|
1881
|
+
type: {
|
|
1882
|
+
enum: ['action_attempt_expired'],
|
|
1883
|
+
type: 'string',
|
|
1884
|
+
},
|
|
1885
|
+
},
|
|
1886
|
+
required: ['type', 'message'],
|
|
1887
|
+
type: 'object',
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
properties: {
|
|
1891
|
+
message: { type: 'string' },
|
|
1892
|
+
type: { enum: ['no_card_on_encoder'], type: 'string' },
|
|
1893
|
+
},
|
|
1894
|
+
required: ['type', 'message'],
|
|
1895
|
+
type: 'object',
|
|
1896
|
+
},
|
|
1897
|
+
],
|
|
1857
1898
|
},
|
|
1858
1899
|
result: { nullable: true },
|
|
1859
1900
|
status: { enum: ['error'], type: 'string' },
|
|
@@ -2278,6 +2319,25 @@ export default {
|
|
|
2278
2319
|
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
2279
2320
|
error: {
|
|
2280
2321
|
oneOf: [
|
|
2322
|
+
{
|
|
2323
|
+
properties: {
|
|
2324
|
+
message: { type: 'string' },
|
|
2325
|
+
type: { enum: ['uncategorized_error'], type: 'string' },
|
|
2326
|
+
},
|
|
2327
|
+
required: ['type', 'message'],
|
|
2328
|
+
type: 'object',
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
properties: {
|
|
2332
|
+
message: { type: 'string' },
|
|
2333
|
+
type: {
|
|
2334
|
+
enum: ['action_attempt_expired'],
|
|
2335
|
+
type: 'string',
|
|
2336
|
+
},
|
|
2337
|
+
},
|
|
2338
|
+
required: ['type', 'message'],
|
|
2339
|
+
type: 'object',
|
|
2340
|
+
},
|
|
2281
2341
|
{
|
|
2282
2342
|
properties: {
|
|
2283
2343
|
message: { type: 'string' },
|
|
@@ -4853,6 +4913,7 @@ export default {
|
|
|
4853
4913
|
device_provider_name: {
|
|
4854
4914
|
enum: [
|
|
4855
4915
|
'dormakaba_community',
|
|
4916
|
+
'legic_connect',
|
|
4856
4917
|
'akuvox',
|
|
4857
4918
|
'august',
|
|
4858
4919
|
'avigilon_alta',
|
|
@@ -4892,6 +4953,7 @@ export default {
|
|
|
4892
4953
|
'latch',
|
|
4893
4954
|
'akiles',
|
|
4894
4955
|
'assa_abloy_vostio',
|
|
4956
|
+
'vostio_credential_service',
|
|
4895
4957
|
],
|
|
4896
4958
|
type: 'string',
|
|
4897
4959
|
},
|
|
@@ -11923,6 +11985,7 @@ export default {
|
|
|
11923
11985
|
items: {
|
|
11924
11986
|
enum: [
|
|
11925
11987
|
'dormakaba_community',
|
|
11988
|
+
'legic_connect',
|
|
11926
11989
|
'akuvox',
|
|
11927
11990
|
'august',
|
|
11928
11991
|
'avigilon_alta',
|
|
@@ -11962,6 +12025,7 @@ export default {
|
|
|
11962
12025
|
'latch',
|
|
11963
12026
|
'akiles',
|
|
11964
12027
|
'assa_abloy_vostio',
|
|
12028
|
+
'vostio_credential_service',
|
|
11965
12029
|
'yale_access',
|
|
11966
12030
|
'hid_cm',
|
|
11967
12031
|
'google_nest',
|