@seamapi/types 1.252.1 → 1.253.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 +103 -75
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +451 -374
- package/lib/seam/connect/models/acs/acs-credential.d.ts +36 -36
- package/lib/seam/connect/models/acs/acs-system.d.ts +4 -4
- package/lib/seam/connect/models/devices/device-metadata.d.ts +13 -0
- package/lib/seam/connect/models/devices/device-metadata.js +3 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
- package/lib/seam/connect/models/devices/device-type.js +7 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +22 -3
- package/lib/seam/connect/models/devices/phone.d.ts +14 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +16 -3
- package/lib/seam/connect/openapi.d.ts +93 -84
- package/lib/seam/connect/openapi.js +79 -62
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +280 -244
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +4 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +17 -0
- package/src/lib/seam/connect/openapi.ts +79 -62
- package/src/lib/seam/connect/route-types.ts +430 -346
package/package.json
CHANGED
|
@@ -101,11 +101,28 @@ export const phone_device_type = z.enum(
|
|
|
101
101
|
|
|
102
102
|
export type PhoneDeviceType = z.infer<typeof phone_device_type>
|
|
103
103
|
|
|
104
|
+
/** Encoders */
|
|
105
|
+
export const ENCODER_DEVICE_TYPE = {
|
|
106
|
+
VISIONLINE_ENCODER: 'visionline_encoder',
|
|
107
|
+
} as const
|
|
108
|
+
|
|
109
|
+
type EncoderDeviceTypeFromMapping =
|
|
110
|
+
(typeof ENCODER_DEVICE_TYPE)[keyof typeof ENCODER_DEVICE_TYPE]
|
|
111
|
+
|
|
112
|
+
export const ENCODER_DEVICE_TYPE_LIST = Object.values(ENCODER_DEVICE_TYPE)
|
|
113
|
+
|
|
114
|
+
export const encoder_device_type = z.enum(
|
|
115
|
+
Object.values(ENCODER_DEVICE_TYPE_LIST) as [EncoderDeviceTypeFromMapping],
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
export type EncoderDeviceType = z.infer<typeof encoder_device_type>
|
|
119
|
+
|
|
104
120
|
export const any_device_type = z.union([
|
|
105
121
|
lock_device_type,
|
|
106
122
|
noise_sensor_device_type,
|
|
107
123
|
thermostat_device_type,
|
|
108
124
|
phone_device_type,
|
|
125
|
+
encoder_device_type,
|
|
109
126
|
])
|
|
110
127
|
|
|
111
128
|
export type AnyDeviceType = z.infer<typeof any_device_type>
|
|
@@ -2586,6 +2586,7 @@ export default {
|
|
|
2586
2586
|
type: 'string',
|
|
2587
2587
|
},
|
|
2588
2588
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
2589
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
2589
2590
|
],
|
|
2590
2591
|
},
|
|
2591
2592
|
display_name: {
|
|
@@ -3322,6 +3323,11 @@ export default {
|
|
|
3322
3323
|
required: ['device_id', 'device_name'],
|
|
3323
3324
|
type: 'object',
|
|
3324
3325
|
},
|
|
3326
|
+
visionline_metadata: {
|
|
3327
|
+
properties: { encoder_id: { type: 'string' } },
|
|
3328
|
+
required: ['encoder_id'],
|
|
3329
|
+
type: 'object',
|
|
3330
|
+
},
|
|
3325
3331
|
wyze_metadata: {
|
|
3326
3332
|
properties: {
|
|
3327
3333
|
device_id: { type: 'string' },
|
|
@@ -4291,6 +4297,7 @@ export default {
|
|
|
4291
4297
|
type: 'string',
|
|
4292
4298
|
},
|
|
4293
4299
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
4300
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
4294
4301
|
],
|
|
4295
4302
|
},
|
|
4296
4303
|
errors: {
|
|
@@ -6810,68 +6817,6 @@ export default {
|
|
|
6810
6817
|
'x-fern-sdk-return-value': 'acs_entrances',
|
|
6811
6818
|
},
|
|
6812
6819
|
},
|
|
6813
|
-
'/acs/credentials/read_card': {
|
|
6814
|
-
post: {
|
|
6815
|
-
operationId: 'acsCredentialsReadCardPost',
|
|
6816
|
-
requestBody: {
|
|
6817
|
-
content: {
|
|
6818
|
-
'application/json': {
|
|
6819
|
-
schema: {
|
|
6820
|
-
oneOf: [
|
|
6821
|
-
{
|
|
6822
|
-
properties: {
|
|
6823
|
-
acs_system_id: { format: 'uuid', type: 'string' },
|
|
6824
|
-
device_name: { type: 'string' },
|
|
6825
|
-
},
|
|
6826
|
-
required: ['acs_system_id', 'device_name'],
|
|
6827
|
-
type: 'object',
|
|
6828
|
-
},
|
|
6829
|
-
{
|
|
6830
|
-
properties: {
|
|
6831
|
-
device_id: { format: 'uuid', type: 'string' },
|
|
6832
|
-
},
|
|
6833
|
-
required: ['device_id'],
|
|
6834
|
-
type: 'object',
|
|
6835
|
-
},
|
|
6836
|
-
],
|
|
6837
|
-
},
|
|
6838
|
-
},
|
|
6839
|
-
},
|
|
6840
|
-
},
|
|
6841
|
-
responses: {
|
|
6842
|
-
200: {
|
|
6843
|
-
content: {
|
|
6844
|
-
'application/json': {
|
|
6845
|
-
schema: {
|
|
6846
|
-
properties: {
|
|
6847
|
-
action_attempt: {
|
|
6848
|
-
$ref: '#/components/schemas/action_attempt',
|
|
6849
|
-
},
|
|
6850
|
-
ok: { type: 'boolean' },
|
|
6851
|
-
},
|
|
6852
|
-
required: ['action_attempt', 'ok'],
|
|
6853
|
-
type: 'object',
|
|
6854
|
-
},
|
|
6855
|
-
},
|
|
6856
|
-
},
|
|
6857
|
-
description: 'OK',
|
|
6858
|
-
},
|
|
6859
|
-
400: { description: 'Bad Request' },
|
|
6860
|
-
401: { description: 'Unauthorized' },
|
|
6861
|
-
},
|
|
6862
|
-
security: [
|
|
6863
|
-
{ pat_with_workspace: [] },
|
|
6864
|
-
{ console_session: [] },
|
|
6865
|
-
{ api_key: [] },
|
|
6866
|
-
],
|
|
6867
|
-
summary: '/acs/credentials/read_card',
|
|
6868
|
-
tags: ['/acs'],
|
|
6869
|
-
'x-fern-sdk-group-name': ['acs', 'credentials'],
|
|
6870
|
-
'x-fern-sdk-method-name': 'read_card',
|
|
6871
|
-
'x-fern-sdk-return-value': 'action_attempt',
|
|
6872
|
-
'x-undocumented': 'Reading a card is currently unimplemented.',
|
|
6873
|
-
},
|
|
6874
|
-
},
|
|
6875
6820
|
'/acs/credentials/unassign': {
|
|
6876
6821
|
patch: {
|
|
6877
6822
|
operationId: 'acsCredentialsUnassignPatch',
|
|
@@ -7407,6 +7352,68 @@ export default {
|
|
|
7407
7352
|
'x-fern-sdk-method-name': 'update',
|
|
7408
7353
|
},
|
|
7409
7354
|
},
|
|
7355
|
+
'/acs/encoders/read_card': {
|
|
7356
|
+
post: {
|
|
7357
|
+
operationId: 'acsEncodersReadCardPost',
|
|
7358
|
+
requestBody: {
|
|
7359
|
+
content: {
|
|
7360
|
+
'application/json': {
|
|
7361
|
+
schema: {
|
|
7362
|
+
oneOf: [
|
|
7363
|
+
{
|
|
7364
|
+
properties: {
|
|
7365
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
7366
|
+
device_name: { type: 'string' },
|
|
7367
|
+
},
|
|
7368
|
+
required: ['acs_system_id', 'device_name'],
|
|
7369
|
+
type: 'object',
|
|
7370
|
+
},
|
|
7371
|
+
{
|
|
7372
|
+
properties: {
|
|
7373
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
7374
|
+
},
|
|
7375
|
+
required: ['device_id'],
|
|
7376
|
+
type: 'object',
|
|
7377
|
+
},
|
|
7378
|
+
],
|
|
7379
|
+
},
|
|
7380
|
+
},
|
|
7381
|
+
},
|
|
7382
|
+
},
|
|
7383
|
+
responses: {
|
|
7384
|
+
200: {
|
|
7385
|
+
content: {
|
|
7386
|
+
'application/json': {
|
|
7387
|
+
schema: {
|
|
7388
|
+
properties: {
|
|
7389
|
+
action_attempt: {
|
|
7390
|
+
$ref: '#/components/schemas/action_attempt',
|
|
7391
|
+
},
|
|
7392
|
+
ok: { type: 'boolean' },
|
|
7393
|
+
},
|
|
7394
|
+
required: ['action_attempt', 'ok'],
|
|
7395
|
+
type: 'object',
|
|
7396
|
+
},
|
|
7397
|
+
},
|
|
7398
|
+
},
|
|
7399
|
+
description: 'OK',
|
|
7400
|
+
},
|
|
7401
|
+
400: { description: 'Bad Request' },
|
|
7402
|
+
401: { description: 'Unauthorized' },
|
|
7403
|
+
},
|
|
7404
|
+
security: [
|
|
7405
|
+
{ pat_with_workspace: [] },
|
|
7406
|
+
{ console_session: [] },
|
|
7407
|
+
{ api_key: [] },
|
|
7408
|
+
],
|
|
7409
|
+
summary: '/acs/encoders/read_card',
|
|
7410
|
+
tags: ['/acs'],
|
|
7411
|
+
'x-fern-sdk-group-name': ['acs', 'encoders'],
|
|
7412
|
+
'x-fern-sdk-method-name': 'read_card',
|
|
7413
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
7414
|
+
'x-undocumented': 'Reading a card is currently unimplemented.',
|
|
7415
|
+
},
|
|
7416
|
+
},
|
|
7410
7417
|
'/acs/entrances/get': {
|
|
7411
7418
|
post: {
|
|
7412
7419
|
operationId: 'acsEntrancesGetPost',
|
|
@@ -10654,6 +10661,7 @@ export default {
|
|
|
10654
10661
|
type: 'string',
|
|
10655
10662
|
},
|
|
10656
10663
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
10664
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
10657
10665
|
],
|
|
10658
10666
|
},
|
|
10659
10667
|
device_types: {
|
|
@@ -10706,6 +10714,7 @@ export default {
|
|
|
10706
10714
|
enum: ['ios_phone', 'android_phone'],
|
|
10707
10715
|
type: 'string',
|
|
10708
10716
|
},
|
|
10717
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
10709
10718
|
],
|
|
10710
10719
|
},
|
|
10711
10720
|
type: 'array',
|
|
@@ -11136,6 +11145,7 @@ export default {
|
|
|
11136
11145
|
type: 'string',
|
|
11137
11146
|
},
|
|
11138
11147
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
11148
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
11139
11149
|
],
|
|
11140
11150
|
},
|
|
11141
11151
|
device_types: {
|
|
@@ -11188,6 +11198,7 @@ export default {
|
|
|
11188
11198
|
enum: ['ios_phone', 'android_phone'],
|
|
11189
11199
|
type: 'string',
|
|
11190
11200
|
},
|
|
11201
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
11191
11202
|
],
|
|
11192
11203
|
},
|
|
11193
11204
|
type: 'array',
|
|
@@ -11898,6 +11909,7 @@ export default {
|
|
|
11898
11909
|
type: 'string',
|
|
11899
11910
|
},
|
|
11900
11911
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
11912
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
11901
11913
|
],
|
|
11902
11914
|
},
|
|
11903
11915
|
device_types: {
|
|
@@ -11950,6 +11962,7 @@ export default {
|
|
|
11950
11962
|
enum: ['ios_phone', 'android_phone'],
|
|
11951
11963
|
type: 'string',
|
|
11952
11964
|
},
|
|
11965
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
11953
11966
|
],
|
|
11954
11967
|
},
|
|
11955
11968
|
type: 'array',
|
|
@@ -12343,6 +12356,7 @@ export default {
|
|
|
12343
12356
|
type: 'string',
|
|
12344
12357
|
},
|
|
12345
12358
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
12359
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
12346
12360
|
],
|
|
12347
12361
|
},
|
|
12348
12362
|
device_types: {
|
|
@@ -12395,6 +12409,7 @@ export default {
|
|
|
12395
12409
|
enum: ['ios_phone', 'android_phone'],
|
|
12396
12410
|
type: 'string',
|
|
12397
12411
|
},
|
|
12412
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
12398
12413
|
],
|
|
12399
12414
|
},
|
|
12400
12415
|
type: 'array',
|
|
@@ -13592,6 +13607,7 @@ export default {
|
|
|
13592
13607
|
type: 'string',
|
|
13593
13608
|
},
|
|
13594
13609
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
13610
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
13595
13611
|
],
|
|
13596
13612
|
},
|
|
13597
13613
|
device_types: {
|
|
@@ -13644,6 +13660,7 @@ export default {
|
|
|
13644
13660
|
enum: ['ios_phone', 'android_phone'],
|
|
13645
13661
|
type: 'string',
|
|
13646
13662
|
},
|
|
13663
|
+
{ enum: ['visionline_encoder'], type: 'string' },
|
|
13647
13664
|
],
|
|
13648
13665
|
},
|
|
13649
13666
|
type: 'array',
|