@seamapi/types 1.283.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.
Files changed (31) hide show
  1. package/dist/connect.cjs +81 -13
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +335 -78
  4. package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
  5. package/lib/seam/connect/models/acs/acs-system.js +2 -0
  6. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +62 -2
  8. package/lib/seam/connect/models/action-attempts/common.d.ts +19 -0
  9. package/lib/seam/connect/models/action-attempts/common.js +10 -0
  10. package/lib/seam/connect/models/action-attempts/common.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +30 -0
  12. package/lib/seam/connect/models/action-attempts/encode-card.js +2 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +32 -2
  15. package/lib/seam/connect/models/action-attempts/scan-card.js +6 -2
  16. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
  17. package/lib/seam/connect/models/devices/device-provider.d.ts +3 -1
  18. package/lib/seam/connect/models/devices/device-provider.js +2 -1
  19. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  20. package/lib/seam/connect/openapi.d.ts +15 -60
  21. package/lib/seam/connect/openapi.js +56 -6
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +250 -10
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/acs/acs-system.ts +2 -0
  26. package/src/lib/seam/connect/models/action-attempts/common.ts +11 -0
  27. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +2 -0
  28. package/src/lib/seam/connect/models/action-attempts/scan-card.ts +7 -1
  29. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
  30. package/src/lib/seam/connect/openapi.ts +56 -6
  31. package/src/lib/seam/connect/route-types.ts +440 -80
@@ -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 error = z.object({
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
  ],
@@ -773,7 +773,9 @@ export default {
773
773
  'assa_abloy_credential_service',
774
774
  'latch_building',
775
775
  'dormakaba_community',
776
+ 'legic_connect',
776
777
  'assa_abloy_vostio',
778
+ 'vostio_credential_service',
777
779
  ],
778
780
  type: 'string',
779
781
  },
@@ -808,7 +810,9 @@ export default {
808
810
  'assa_abloy_credential_service',
809
811
  'latch_building',
810
812
  'dormakaba_community',
813
+ 'legic_connect',
811
814
  'assa_abloy_vostio',
815
+ 'vostio_credential_service',
812
816
  ],
813
817
  type: 'string',
814
818
  'x-deprecated': 'Use `external_type`.',
@@ -1848,12 +1852,35 @@ export default {
1848
1852
  },
1849
1853
  action_type: { enum: ['SCAN_CARD'], type: 'string' },
1850
1854
  error: {
1851
- properties: {
1852
- message: { type: 'string' },
1853
- type: { enum: ['no_card_on_encoder'], type: 'string' },
1854
- },
1855
- required: ['type', 'message'],
1856
- type: 'object',
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
+ ],
1857
1884
  },
1858
1885
  result: { nullable: true },
1859
1886
  status: { enum: ['error'], type: 'string' },
@@ -2278,6 +2305,25 @@ export default {
2278
2305
  action_type: { enum: ['ENCODE_CARD'], type: 'string' },
2279
2306
  error: {
2280
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
+ },
2281
2327
  {
2282
2328
  properties: {
2283
2329
  message: { type: 'string' },
@@ -4853,6 +4899,7 @@ export default {
4853
4899
  device_provider_name: {
4854
4900
  enum: [
4855
4901
  'dormakaba_community',
4902
+ 'legic_connect',
4856
4903
  'akuvox',
4857
4904
  'august',
4858
4905
  'avigilon_alta',
@@ -4892,6 +4939,7 @@ export default {
4892
4939
  'latch',
4893
4940
  'akiles',
4894
4941
  'assa_abloy_vostio',
4942
+ 'vostio_credential_service',
4895
4943
  ],
4896
4944
  type: 'string',
4897
4945
  },
@@ -11923,6 +11971,7 @@ export default {
11923
11971
  items: {
11924
11972
  enum: [
11925
11973
  'dormakaba_community',
11974
+ 'legic_connect',
11926
11975
  'akuvox',
11927
11976
  'august',
11928
11977
  'avigilon_alta',
@@ -11962,6 +12011,7 @@ export default {
11962
12011
  'latch',
11963
12012
  'akiles',
11964
12013
  'assa_abloy_vostio',
12014
+ 'vostio_credential_service',
11965
12015
  'yale_access',
11966
12016
  'hid_cm',
11967
12017
  'google_nest',