@seamapi/types 1.287.3 → 1.288.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 +50 -54
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +189 -172
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/{encode-credential.d.ts → encode-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-credential.js → encode-card.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-credential.d.ts → scan-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-credential.js → scan-card.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +21 -6
- package/lib/seam/connect/openapi.js +37 -41
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +150 -148
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-credential.ts → encode-card.ts} +6 -8
- package/src/lib/seam/connect/models/action-attempts/{scan-credential.ts → scan-card.ts} +7 -9
- package/src/lib/seam/connect/openapi.ts +38 -46
- package/src/lib/seam/connect/route-types.ts +152 -148
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js'
|
|
4
4
|
import { deprecated_action_attempts } from './deprecated.js'
|
|
5
|
-
import {
|
|
5
|
+
import { encode_card_action_attempt } from './encode-card.js'
|
|
6
6
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
7
7
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
|
|
8
|
-
import {
|
|
8
|
+
import { scan_card_action_attempt } from './scan-card.js'
|
|
9
9
|
import { set_cool_action_attempt } from './set-cool.js'
|
|
10
10
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js'
|
|
11
11
|
import { set_heat_action_attempt } from './set-heat.js'
|
|
@@ -16,8 +16,8 @@ import { unlock_door_action_attempt } from './unlock-door.js'
|
|
|
16
16
|
export const action_attempt = z.union([
|
|
17
17
|
...lock_door_action_attempt.options,
|
|
18
18
|
...unlock_door_action_attempt.options,
|
|
19
|
-
...
|
|
20
|
-
...
|
|
19
|
+
...scan_card_action_attempt.options,
|
|
20
|
+
...encode_card_action_attempt.options,
|
|
21
21
|
...reset_sandbox_workspace_action_attempt.options,
|
|
22
22
|
...set_cool_action_attempt.options,
|
|
23
23
|
...set_heat_action_attempt.options,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
common_succeeded_action_attempt,
|
|
12
12
|
} from './common.js'
|
|
13
13
|
|
|
14
|
-
const action_type = z.literal('
|
|
14
|
+
const action_type = z.literal('ENCODE_CARD')
|
|
15
15
|
|
|
16
16
|
const no_card_on_encoder_error = z.object({
|
|
17
17
|
type: z.literal('no_card_on_encoder'),
|
|
@@ -31,23 +31,21 @@ const error = z.union([
|
|
|
31
31
|
|
|
32
32
|
const result = acs_credential.or(unmanaged_acs_credential)
|
|
33
33
|
|
|
34
|
-
export const
|
|
34
|
+
export const encode_card_action_attempt = z.discriminatedUnion('status', [
|
|
35
35
|
common_pending_action_attempt
|
|
36
36
|
.extend({
|
|
37
37
|
action_type,
|
|
38
38
|
})
|
|
39
|
-
.describe('Encoding
|
|
39
|
+
.describe('Encoding card data from physical encoder.'),
|
|
40
40
|
common_succeeded_action_attempt
|
|
41
41
|
.extend({
|
|
42
42
|
action_type,
|
|
43
43
|
result,
|
|
44
44
|
})
|
|
45
|
-
.describe('Encoding
|
|
45
|
+
.describe('Encoding card data from physical encoder succeeded.'),
|
|
46
46
|
common_failed_action_attempt
|
|
47
47
|
.extend({ action_type, error })
|
|
48
|
-
.describe('Encoding
|
|
48
|
+
.describe('Encoding card data from physical encoder failed.'),
|
|
49
49
|
])
|
|
50
50
|
|
|
51
|
-
export type
|
|
52
|
-
typeof encode_credential_action_attempt
|
|
53
|
-
>
|
|
51
|
+
export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
common_succeeded_action_attempt,
|
|
13
13
|
} from './common.js'
|
|
14
14
|
|
|
15
|
-
const action_type = z.literal('
|
|
15
|
+
const action_type = z.literal('SCAN_CARD')
|
|
16
16
|
|
|
17
17
|
const no_card_on_encoder_error = z.object({
|
|
18
18
|
type: z.literal('no_card_on_encoder'),
|
|
@@ -33,7 +33,7 @@ const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
|
|
|
33
33
|
|
|
34
34
|
const result = z.object({
|
|
35
35
|
acs_credential_on_encoder: acs_credential_on_encoder.describe(
|
|
36
|
-
'Snapshot of
|
|
36
|
+
'Snapshot of the card data read from the physical encoder.',
|
|
37
37
|
),
|
|
38
38
|
acs_credential_on_seam: acs_credential_on_seam
|
|
39
39
|
.nullable()
|
|
@@ -41,23 +41,21 @@ const result = z.object({
|
|
|
41
41
|
warnings: z.array(warning),
|
|
42
42
|
})
|
|
43
43
|
|
|
44
|
-
export const
|
|
44
|
+
export const scan_card_action_attempt = z.discriminatedUnion('status', [
|
|
45
45
|
common_pending_action_attempt
|
|
46
46
|
.extend({
|
|
47
47
|
action_type,
|
|
48
48
|
})
|
|
49
|
-
.describe('Reading
|
|
49
|
+
.describe('Reading card data from physical encoder.'),
|
|
50
50
|
common_succeeded_action_attempt
|
|
51
51
|
.extend({
|
|
52
52
|
action_type,
|
|
53
53
|
result,
|
|
54
54
|
})
|
|
55
|
-
.describe('Reading
|
|
55
|
+
.describe('Reading card data from physical encoder succeeded.'),
|
|
56
56
|
common_failed_action_attempt
|
|
57
57
|
.extend({ action_type, error })
|
|
58
|
-
.describe('Reading
|
|
58
|
+
.describe('Reading card data from physical encoder failed.'),
|
|
59
59
|
])
|
|
60
60
|
|
|
61
|
-
export type
|
|
62
|
-
typeof scan_credential_action_attempt
|
|
63
|
-
>
|
|
61
|
+
export type ScanCardActionAttempt = z.infer<typeof scan_card_action_attempt>
|
|
@@ -1359,7 +1359,7 @@ export default {
|
|
|
1359
1359
|
type: 'object',
|
|
1360
1360
|
},
|
|
1361
1361
|
{
|
|
1362
|
-
description: 'Reading
|
|
1362
|
+
description: 'Reading card data from physical encoder.',
|
|
1363
1363
|
properties: {
|
|
1364
1364
|
action_attempt_id: {
|
|
1365
1365
|
description: 'The ID of the action attempt.',
|
|
@@ -1367,7 +1367,7 @@ export default {
|
|
|
1367
1367
|
type: 'string',
|
|
1368
1368
|
'x-title': 'Action Attempt ID',
|
|
1369
1369
|
},
|
|
1370
|
-
action_type: { enum: ['
|
|
1370
|
+
action_type: { enum: ['SCAN_CARD'], type: 'string' },
|
|
1371
1371
|
error: { nullable: true },
|
|
1372
1372
|
result: { nullable: true },
|
|
1373
1373
|
status: { enum: ['pending'], type: 'string' },
|
|
@@ -1382,8 +1382,7 @@ export default {
|
|
|
1382
1382
|
type: 'object',
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
|
-
description:
|
|
1386
|
-
'Reading credential data from physical encoder succeeded.',
|
|
1385
|
+
description: 'Reading card data from physical encoder succeeded.',
|
|
1387
1386
|
properties: {
|
|
1388
1387
|
action_attempt_id: {
|
|
1389
1388
|
description: 'The ID of the action attempt.',
|
|
@@ -1391,13 +1390,13 @@ export default {
|
|
|
1391
1390
|
type: 'string',
|
|
1392
1391
|
'x-title': 'Action Attempt ID',
|
|
1393
1392
|
},
|
|
1394
|
-
action_type: { enum: ['
|
|
1393
|
+
action_type: { enum: ['SCAN_CARD'], type: 'string' },
|
|
1395
1394
|
error: { nullable: true },
|
|
1396
1395
|
result: {
|
|
1397
1396
|
properties: {
|
|
1398
1397
|
acs_credential_on_encoder: {
|
|
1399
1398
|
description:
|
|
1400
|
-
'Snapshot of
|
|
1399
|
+
'Snapshot of the card data read from the physical encoder.',
|
|
1401
1400
|
properties: {
|
|
1402
1401
|
card_number: {
|
|
1403
1402
|
description:
|
|
@@ -1869,8 +1868,7 @@ export default {
|
|
|
1869
1868
|
type: 'object',
|
|
1870
1869
|
},
|
|
1871
1870
|
{
|
|
1872
|
-
description:
|
|
1873
|
-
'Reading credential data from physical encoder failed.',
|
|
1871
|
+
description: 'Reading card data from physical encoder failed.',
|
|
1874
1872
|
properties: {
|
|
1875
1873
|
action_attempt_id: {
|
|
1876
1874
|
description: 'The ID of the action attempt.',
|
|
@@ -1878,7 +1876,7 @@ export default {
|
|
|
1878
1876
|
type: 'string',
|
|
1879
1877
|
'x-title': 'Action Attempt ID',
|
|
1880
1878
|
},
|
|
1881
|
-
action_type: { enum: ['
|
|
1879
|
+
action_type: { enum: ['SCAN_CARD'], type: 'string' },
|
|
1882
1880
|
error: {
|
|
1883
1881
|
oneOf: [
|
|
1884
1882
|
{
|
|
@@ -1923,7 +1921,7 @@ export default {
|
|
|
1923
1921
|
type: 'object',
|
|
1924
1922
|
},
|
|
1925
1923
|
{
|
|
1926
|
-
description: 'Encoding
|
|
1924
|
+
description: 'Encoding card data from physical encoder.',
|
|
1927
1925
|
properties: {
|
|
1928
1926
|
action_attempt_id: {
|
|
1929
1927
|
description: 'The ID of the action attempt.',
|
|
@@ -1931,7 +1929,7 @@ export default {
|
|
|
1931
1929
|
type: 'string',
|
|
1932
1930
|
'x-title': 'Action Attempt ID',
|
|
1933
1931
|
},
|
|
1934
|
-
action_type: { enum: ['
|
|
1932
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1935
1933
|
error: { nullable: true },
|
|
1936
1934
|
result: { nullable: true },
|
|
1937
1935
|
status: { enum: ['pending'], type: 'string' },
|
|
@@ -1946,8 +1944,7 @@ export default {
|
|
|
1946
1944
|
type: 'object',
|
|
1947
1945
|
},
|
|
1948
1946
|
{
|
|
1949
|
-
description:
|
|
1950
|
-
'Encoding credential data from physical encoder succeeded.',
|
|
1947
|
+
description: 'Encoding card data from physical encoder succeeded.',
|
|
1951
1948
|
properties: {
|
|
1952
1949
|
action_attempt_id: {
|
|
1953
1950
|
description: 'The ID of the action attempt.',
|
|
@@ -1955,7 +1952,7 @@ export default {
|
|
|
1955
1952
|
type: 'string',
|
|
1956
1953
|
'x-title': 'Action Attempt ID',
|
|
1957
1954
|
},
|
|
1958
|
-
action_type: { enum: ['
|
|
1955
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1959
1956
|
error: { nullable: true },
|
|
1960
1957
|
result: {
|
|
1961
1958
|
description:
|
|
@@ -2323,8 +2320,7 @@ export default {
|
|
|
2323
2320
|
type: 'object',
|
|
2324
2321
|
},
|
|
2325
2322
|
{
|
|
2326
|
-
description:
|
|
2327
|
-
'Encoding credential data from physical encoder failed.',
|
|
2323
|
+
description: 'Encoding card data from physical encoder failed.',
|
|
2328
2324
|
properties: {
|
|
2329
2325
|
action_attempt_id: {
|
|
2330
2326
|
description: 'The ID of the action attempt.',
|
|
@@ -2332,7 +2328,7 @@ export default {
|
|
|
2332
2328
|
type: 'string',
|
|
2333
2329
|
'x-title': 'Action Attempt ID',
|
|
2334
2330
|
},
|
|
2335
|
-
action_type: { enum: ['
|
|
2331
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
2336
2332
|
error: {
|
|
2337
2333
|
oneOf: [
|
|
2338
2334
|
{
|
|
@@ -8034,6 +8030,19 @@ export default {
|
|
|
8034
8030
|
items: { format: 'uuid', type: 'string' },
|
|
8035
8031
|
type: 'array',
|
|
8036
8032
|
},
|
|
8033
|
+
assa_abloy_vostio_metadata: {
|
|
8034
|
+
description:
|
|
8035
|
+
'Vostio-specific metadata for the new credential.',
|
|
8036
|
+
properties: {
|
|
8037
|
+
join_all_guest_acs_entrances: { type: 'boolean' },
|
|
8038
|
+
override_all_guest_acs_entrances: { type: 'boolean' },
|
|
8039
|
+
override_guest_acs_entrance_ids: {
|
|
8040
|
+
items: { format: 'uuid', type: 'string' },
|
|
8041
|
+
type: 'array',
|
|
8042
|
+
},
|
|
8043
|
+
},
|
|
8044
|
+
type: 'object',
|
|
8045
|
+
},
|
|
8037
8046
|
code: {
|
|
8038
8047
|
description:
|
|
8039
8048
|
'Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable [device or system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview).',
|
|
@@ -9196,25 +9205,16 @@ export default {
|
|
|
9196
9205
|
'x-title': 'Update a Credential',
|
|
9197
9206
|
},
|
|
9198
9207
|
},
|
|
9199
|
-
'/acs/encoders/
|
|
9208
|
+
'/acs/encoders/encode_card': {
|
|
9200
9209
|
post: {
|
|
9201
|
-
operationId: '
|
|
9210
|
+
operationId: 'acsEncodersEncodeCardPost',
|
|
9202
9211
|
requestBody: {
|
|
9203
9212
|
content: {
|
|
9204
9213
|
'application/json': {
|
|
9205
9214
|
schema: {
|
|
9206
9215
|
properties: {
|
|
9207
|
-
acs_credential_id: {
|
|
9208
|
-
|
|
9209
|
-
'ID of the acs_credential to encode on a physical card.',
|
|
9210
|
-
format: 'uuid',
|
|
9211
|
-
type: 'string',
|
|
9212
|
-
},
|
|
9213
|
-
device_id: {
|
|
9214
|
-
description: 'ID of the encoder to use for the encoding.',
|
|
9215
|
-
format: 'uuid',
|
|
9216
|
-
type: 'string',
|
|
9217
|
-
},
|
|
9216
|
+
acs_credential_id: { format: 'uuid', type: 'string' },
|
|
9217
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
9218
9218
|
},
|
|
9219
9219
|
required: ['device_id', 'acs_credential_id'],
|
|
9220
9220
|
type: 'object',
|
|
@@ -9248,10 +9248,10 @@ export default {
|
|
|
9248
9248
|
{ console_session: [] },
|
|
9249
9249
|
{ api_key: [] },
|
|
9250
9250
|
],
|
|
9251
|
-
summary: '/acs/encoders/
|
|
9251
|
+
summary: '/acs/encoders/encode_card',
|
|
9252
9252
|
tags: ['/acs'],
|
|
9253
9253
|
'x-fern-sdk-group-name': ['acs', 'encoders'],
|
|
9254
|
-
'x-fern-sdk-method-name': '
|
|
9254
|
+
'x-fern-sdk-method-name': 'encode_card',
|
|
9255
9255
|
'x-fern-sdk-return-value': 'action_attempt',
|
|
9256
9256
|
'x-response-key': 'action_attempt',
|
|
9257
9257
|
'x-undocumented': 'Encoding a card is currently unimplemented.',
|
|
@@ -9343,24 +9343,16 @@ export default {
|
|
|
9343
9343
|
'x-undocumented': 'Encoders are in alpha.',
|
|
9344
9344
|
},
|
|
9345
9345
|
},
|
|
9346
|
-
'/acs/encoders/
|
|
9346
|
+
'/acs/encoders/scan_card': {
|
|
9347
9347
|
post: {
|
|
9348
|
-
operationId: '
|
|
9348
|
+
operationId: 'acsEncodersScanCardPost',
|
|
9349
9349
|
requestBody: {
|
|
9350
9350
|
content: {
|
|
9351
9351
|
'application/json': {
|
|
9352
9352
|
schema: {
|
|
9353
9353
|
properties: {
|
|
9354
|
-
acs_system_id: {
|
|
9355
|
-
|
|
9356
|
-
format: 'uuid',
|
|
9357
|
-
type: 'string',
|
|
9358
|
-
},
|
|
9359
|
-
device_id: {
|
|
9360
|
-
description: 'ID of the encoder to use for the scan.',
|
|
9361
|
-
format: 'uuid',
|
|
9362
|
-
type: 'string',
|
|
9363
|
-
},
|
|
9354
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
9355
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
9364
9356
|
},
|
|
9365
9357
|
required: ['acs_system_id', 'device_id'],
|
|
9366
9358
|
type: 'object',
|
|
@@ -9394,10 +9386,10 @@ export default {
|
|
|
9394
9386
|
{ console_session: [] },
|
|
9395
9387
|
{ api_key: [] },
|
|
9396
9388
|
],
|
|
9397
|
-
summary: '/acs/encoders/
|
|
9389
|
+
summary: '/acs/encoders/scan_card',
|
|
9398
9390
|
tags: ['/acs'],
|
|
9399
9391
|
'x-fern-sdk-group-name': ['acs', 'encoders'],
|
|
9400
|
-
'x-fern-sdk-method-name': '
|
|
9392
|
+
'x-fern-sdk-method-name': 'scan_card',
|
|
9401
9393
|
'x-fern-sdk-return-value': 'action_attempt',
|
|
9402
9394
|
'x-response-key': 'action_attempt',
|
|
9403
9395
|
'x-undocumented': 'Reading a card is currently unimplemented.',
|