@seamapi/types 1.276.0 → 1.278.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 +81 -19
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +352 -56
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +13 -0
- 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 +1 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-user.js +1 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/dormakaba_community.d.ts +9 -0
- package/lib/seam/connect/models/acs/metadata/dormakaba_community.js +5 -0
- package/lib/seam/connect/models/acs/metadata/dormakaba_community.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/action-attempts/action-attempt.d.ts +48 -7
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +22 -7
- package/lib/seam/connect/models/action-attempts/encode-card.js +10 -2
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +26 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js +5 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +86 -0
- package/lib/seam/connect/openapi.js +48 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +192 -37
- 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 +1 -0
- package/src/lib/seam/connect/models/acs/acs-user.ts +1 -0
- package/src/lib/seam/connect/models/acs/metadata/dormakaba_community.ts +9 -0
- package/src/lib/seam/connect/models/acs/metadata/index.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +12 -2
- package/src/lib/seam/connect/models/action-attempts/scan-card.ts +6 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +48 -6
- package/src/lib/seam/connect/route-types.ts +302 -80
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
acs_entrance_dormakaba_community_metadata,
|
|
4
5
|
acs_entrance_latch_metadata,
|
|
5
6
|
acs_entrance_salto_ks_metadata,
|
|
6
7
|
acs_entrance_visionline_metadata,
|
|
@@ -26,6 +27,8 @@ export const acs_entrance = z.object({
|
|
|
26
27
|
latch_metadata: acs_entrance_latch_metadata.optional(),
|
|
27
28
|
visionline_metadata: acs_entrance_visionline_metadata.optional(),
|
|
28
29
|
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
|
|
30
|
+
dormakaba_community_metadata:
|
|
31
|
+
acs_entrance_dormakaba_community_metadata.optional(),
|
|
29
32
|
})
|
|
30
33
|
|
|
31
34
|
export type AcsEntrance = z.infer<typeof acs_entrance>
|
|
@@ -12,11 +12,21 @@ import {
|
|
|
12
12
|
|
|
13
13
|
const action_type = z.literal('ENCODE_CARD')
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
type: z.
|
|
15
|
+
const no_card_on_encoder_error = z.object({
|
|
16
|
+
type: z.literal('no_card_on_encoder'),
|
|
17
17
|
message: z.string(),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
+
const incompatible_card_format_error = z.object({
|
|
21
|
+
type: z.literal('incompatible_card_format'),
|
|
22
|
+
message: z.string(),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const error = z.union([
|
|
26
|
+
no_card_on_encoder_error,
|
|
27
|
+
incompatible_card_format_error,
|
|
28
|
+
])
|
|
29
|
+
|
|
20
30
|
const result = acs_credential.or(unmanaged_acs_credential)
|
|
21
31
|
|
|
22
32
|
export const encode_card_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -18,6 +18,11 @@ const error = z.object({
|
|
|
18
18
|
message: z.string(),
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
+
const warning = z.object({
|
|
22
|
+
warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
23
|
+
warning_message: z.string(),
|
|
24
|
+
})
|
|
25
|
+
|
|
21
26
|
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
|
|
22
27
|
|
|
23
28
|
const result = z.object({
|
|
@@ -27,6 +32,7 @@ const result = z.object({
|
|
|
27
32
|
acs_credential_on_seam: acs_credential_on_seam
|
|
28
33
|
.nullable()
|
|
29
34
|
.describe('Matching acs_credential currently encoded on this card.'),
|
|
35
|
+
warnings: z.array(warning),
|
|
30
36
|
})
|
|
31
37
|
|
|
32
38
|
export const scan_card_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod'
|
|
|
3
3
|
import { device_capability_flags } from './device.js'
|
|
4
4
|
|
|
5
5
|
export const DEVICE_PROVIDERS = {
|
|
6
|
+
DORMAKABA_COMMUNITY: 'dormakaba_community',
|
|
6
7
|
AKUVOX: 'akuvox',
|
|
7
8
|
AUGUST: 'august',
|
|
8
9
|
AVIGILON_ALTA: 'avigilon_alta',
|
|
@@ -104,6 +105,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
104
105
|
'pti',
|
|
105
106
|
'visionline',
|
|
106
107
|
'assa_abloy_credential_service',
|
|
108
|
+
'dormakaba_community',
|
|
107
109
|
'latch',
|
|
108
110
|
'salto',
|
|
109
111
|
],
|
|
@@ -422,6 +422,11 @@ export default {
|
|
|
422
422
|
description: 'Display name for the entrance.',
|
|
423
423
|
type: 'string',
|
|
424
424
|
},
|
|
425
|
+
dormakaba_community_metadata: {
|
|
426
|
+
properties: { access_point_name: { type: 'string' } },
|
|
427
|
+
required: ['access_point_name'],
|
|
428
|
+
type: 'object',
|
|
429
|
+
},
|
|
425
430
|
errors: {
|
|
426
431
|
items: {
|
|
427
432
|
properties: {
|
|
@@ -703,6 +708,7 @@ export default {
|
|
|
703
708
|
'visionline_system',
|
|
704
709
|
'assa_abloy_credential_service',
|
|
705
710
|
'latch_building',
|
|
711
|
+
'dormakaba_community',
|
|
706
712
|
],
|
|
707
713
|
type: 'string',
|
|
708
714
|
},
|
|
@@ -736,6 +742,7 @@ export default {
|
|
|
736
742
|
'visionline_system',
|
|
737
743
|
'assa_abloy_credential_service',
|
|
738
744
|
'latch_building',
|
|
745
|
+
'dormakaba_community',
|
|
739
746
|
],
|
|
740
747
|
type: 'string',
|
|
741
748
|
'x-deprecated': 'Use `external_type`.',
|
|
@@ -990,6 +997,7 @@ export default {
|
|
|
990
997
|
'hid_credential_manager_user',
|
|
991
998
|
'salto_site_user',
|
|
992
999
|
'latch_user',
|
|
1000
|
+
'dormakaba_community_user',
|
|
993
1001
|
],
|
|
994
1002
|
type: 'string',
|
|
995
1003
|
},
|
|
@@ -1602,10 +1610,25 @@ export default {
|
|
|
1602
1610
|
},
|
|
1603
1611
|
],
|
|
1604
1612
|
},
|
|
1613
|
+
warnings: {
|
|
1614
|
+
items: {
|
|
1615
|
+
properties: {
|
|
1616
|
+
warning_code: {
|
|
1617
|
+
enum: ['acs_credential_on_encoder_out_of_sync'],
|
|
1618
|
+
type: 'string',
|
|
1619
|
+
},
|
|
1620
|
+
warning_message: { type: 'string' },
|
|
1621
|
+
},
|
|
1622
|
+
required: ['warning_code', 'warning_message'],
|
|
1623
|
+
type: 'object',
|
|
1624
|
+
},
|
|
1625
|
+
type: 'array',
|
|
1626
|
+
},
|
|
1605
1627
|
},
|
|
1606
1628
|
required: [
|
|
1607
1629
|
'acs_credential_on_encoder',
|
|
1608
1630
|
'acs_credential_on_seam',
|
|
1631
|
+
'warnings',
|
|
1609
1632
|
],
|
|
1610
1633
|
type: 'object',
|
|
1611
1634
|
},
|
|
@@ -1934,12 +1957,27 @@ export default {
|
|
|
1934
1957
|
},
|
|
1935
1958
|
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1936
1959
|
error: {
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1960
|
+
oneOf: [
|
|
1961
|
+
{
|
|
1962
|
+
properties: {
|
|
1963
|
+
message: { type: 'string' },
|
|
1964
|
+
type: { enum: ['no_card_on_encoder'], type: 'string' },
|
|
1965
|
+
},
|
|
1966
|
+
required: ['type', 'message'],
|
|
1967
|
+
type: 'object',
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
properties: {
|
|
1971
|
+
message: { type: 'string' },
|
|
1972
|
+
type: {
|
|
1973
|
+
enum: ['incompatible_card_format'],
|
|
1974
|
+
type: 'string',
|
|
1975
|
+
},
|
|
1976
|
+
},
|
|
1977
|
+
required: ['type', 'message'],
|
|
1978
|
+
type: 'object',
|
|
1979
|
+
},
|
|
1980
|
+
],
|
|
1943
1981
|
},
|
|
1944
1982
|
result: { nullable: true },
|
|
1945
1983
|
status: { enum: ['error'], type: 'string' },
|
|
@@ -4494,6 +4532,7 @@ export default {
|
|
|
4494
4532
|
can_turn_off_hvac: { type: 'boolean' },
|
|
4495
4533
|
device_provider_name: {
|
|
4496
4534
|
enum: [
|
|
4535
|
+
'dormakaba_community',
|
|
4497
4536
|
'akuvox',
|
|
4498
4537
|
'august',
|
|
4499
4538
|
'avigilon_alta',
|
|
@@ -9824,6 +9863,7 @@ export default {
|
|
|
9824
9863
|
'hid_credential_manager_user',
|
|
9825
9864
|
'salto_site_user',
|
|
9826
9865
|
'latch_user',
|
|
9866
|
+
'dormakaba_community_user',
|
|
9827
9867
|
],
|
|
9828
9868
|
type: 'string',
|
|
9829
9869
|
},
|
|
@@ -10209,6 +10249,7 @@ export default {
|
|
|
10209
10249
|
'hid_credential_manager_user',
|
|
10210
10250
|
'salto_site_user',
|
|
10211
10251
|
'latch_user',
|
|
10252
|
+
'dormakaba_community_user',
|
|
10212
10253
|
],
|
|
10213
10254
|
type: 'string',
|
|
10214
10255
|
},
|
|
@@ -11228,6 +11269,7 @@ export default {
|
|
|
11228
11269
|
accepted_providers: {
|
|
11229
11270
|
items: {
|
|
11230
11271
|
enum: [
|
|
11272
|
+
'dormakaba_community',
|
|
11231
11273
|
'akuvox',
|
|
11232
11274
|
'august',
|
|
11233
11275
|
'avigilon_alta',
|