@seamapi/types 1.282.0 → 1.284.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 +85 -14
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +336 -79
- package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-system.js +3 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- 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 +4 -2
- package/lib/seam/connect/models/devices/device-provider.js +3 -2
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +15 -60
- package/lib/seam/connect/openapi.js +60 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +250 -10
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +3 -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 +3 -2
- package/src/lib/seam/connect/openapi.ts +60 -8
- package/src/lib/seam/connect/route-types.ts +450 -82
|
@@ -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',
|
|
@@ -42,7 +43,8 @@ export const DEVICE_PROVIDERS = {
|
|
|
42
43
|
HONEYWELL_RESIDEO: 'honeywell_resideo',
|
|
43
44
|
LATCH: 'latch',
|
|
44
45
|
AKILES: 'akiles',
|
|
45
|
-
VOSTIO: '
|
|
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
|
],
|
|
@@ -773,6 +773,9 @@ export default {
|
|
|
773
773
|
'assa_abloy_credential_service',
|
|
774
774
|
'latch_building',
|
|
775
775
|
'dormakaba_community',
|
|
776
|
+
'legic_connect',
|
|
777
|
+
'assa_abloy_vostio',
|
|
778
|
+
'vostio_credential_service',
|
|
776
779
|
],
|
|
777
780
|
type: 'string',
|
|
778
781
|
},
|
|
@@ -807,6 +810,9 @@ export default {
|
|
|
807
810
|
'assa_abloy_credential_service',
|
|
808
811
|
'latch_building',
|
|
809
812
|
'dormakaba_community',
|
|
813
|
+
'legic_connect',
|
|
814
|
+
'assa_abloy_vostio',
|
|
815
|
+
'vostio_credential_service',
|
|
810
816
|
],
|
|
811
817
|
type: 'string',
|
|
812
818
|
'x-deprecated': 'Use `external_type`.',
|
|
@@ -1846,12 +1852,35 @@ export default {
|
|
|
1846
1852
|
},
|
|
1847
1853
|
action_type: { enum: ['SCAN_CARD'], type: 'string' },
|
|
1848
1854
|
error: {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
+
oneOf: [
|
|
1856
|
+
{
|
|
1857
|
+
properties: {
|
|
1858
|
+
message: { type: 'string' },
|
|
1859
|
+
type: { enum: ['uncategorized_error'], type: 'string' },
|
|
1860
|
+
},
|
|
1861
|
+
required: ['type', 'message'],
|
|
1862
|
+
type: 'object',
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
properties: {
|
|
1866
|
+
message: { type: 'string' },
|
|
1867
|
+
type: {
|
|
1868
|
+
enum: ['action_attempt_expired'],
|
|
1869
|
+
type: 'string',
|
|
1870
|
+
},
|
|
1871
|
+
},
|
|
1872
|
+
required: ['type', 'message'],
|
|
1873
|
+
type: 'object',
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
properties: {
|
|
1877
|
+
message: { type: 'string' },
|
|
1878
|
+
type: { enum: ['no_card_on_encoder'], type: 'string' },
|
|
1879
|
+
},
|
|
1880
|
+
required: ['type', 'message'],
|
|
1881
|
+
type: 'object',
|
|
1882
|
+
},
|
|
1883
|
+
],
|
|
1855
1884
|
},
|
|
1856
1885
|
result: { nullable: true },
|
|
1857
1886
|
status: { enum: ['error'], type: 'string' },
|
|
@@ -2276,6 +2305,25 @@ export default {
|
|
|
2276
2305
|
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
2277
2306
|
error: {
|
|
2278
2307
|
oneOf: [
|
|
2308
|
+
{
|
|
2309
|
+
properties: {
|
|
2310
|
+
message: { type: 'string' },
|
|
2311
|
+
type: { enum: ['uncategorized_error'], type: 'string' },
|
|
2312
|
+
},
|
|
2313
|
+
required: ['type', 'message'],
|
|
2314
|
+
type: 'object',
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
properties: {
|
|
2318
|
+
message: { type: 'string' },
|
|
2319
|
+
type: {
|
|
2320
|
+
enum: ['action_attempt_expired'],
|
|
2321
|
+
type: 'string',
|
|
2322
|
+
},
|
|
2323
|
+
},
|
|
2324
|
+
required: ['type', 'message'],
|
|
2325
|
+
type: 'object',
|
|
2326
|
+
},
|
|
2279
2327
|
{
|
|
2280
2328
|
properties: {
|
|
2281
2329
|
message: { type: 'string' },
|
|
@@ -4851,6 +4899,7 @@ export default {
|
|
|
4851
4899
|
device_provider_name: {
|
|
4852
4900
|
enum: [
|
|
4853
4901
|
'dormakaba_community',
|
|
4902
|
+
'legic_connect',
|
|
4854
4903
|
'akuvox',
|
|
4855
4904
|
'august',
|
|
4856
4905
|
'avigilon_alta',
|
|
@@ -4889,7 +4938,8 @@ export default {
|
|
|
4889
4938
|
'honeywell_resideo',
|
|
4890
4939
|
'latch',
|
|
4891
4940
|
'akiles',
|
|
4892
|
-
'
|
|
4941
|
+
'assa_abloy_vostio',
|
|
4942
|
+
'vostio_credential_service',
|
|
4893
4943
|
],
|
|
4894
4944
|
type: 'string',
|
|
4895
4945
|
},
|
|
@@ -11921,6 +11971,7 @@ export default {
|
|
|
11921
11971
|
items: {
|
|
11922
11972
|
enum: [
|
|
11923
11973
|
'dormakaba_community',
|
|
11974
|
+
'legic_connect',
|
|
11924
11975
|
'akuvox',
|
|
11925
11976
|
'august',
|
|
11926
11977
|
'avigilon_alta',
|
|
@@ -11959,7 +12010,8 @@ export default {
|
|
|
11959
12010
|
'honeywell_resideo',
|
|
11960
12011
|
'latch',
|
|
11961
12012
|
'akiles',
|
|
11962
|
-
'
|
|
12013
|
+
'assa_abloy_vostio',
|
|
12014
|
+
'vostio_credential_service',
|
|
11963
12015
|
'yale_access',
|
|
11964
12016
|
'hid_cm',
|
|
11965
12017
|
'google_nest',
|