@seamapi/types 1.985.0 → 1.987.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/lib/seam/connect/models/acs/acs-entrance.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.js +7 -4
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-metadata.d.ts +10 -0
- package/lib/seam/connect/models/devices/device-metadata.js +9 -1
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +19 -0
- package/lib/seam/connect/models/devices/device.js +3 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +15 -0
- package/lib/seam/connect/models/events/connected-accounts.js +5 -4
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.js +12 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/phones/phone-session.d.ts +18 -18
- package/lib/seam/connect/openapi.js +48 -16
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +197 -261
- package/package.json +2 -2
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -9
- package/src/lib/seam/connect/models/devices/device-metadata.ts +11 -1
- package/src/lib/seam/connect/models/devices/device.ts +3 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +5 -4
- package/src/lib/seam/connect/models/events/devices.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +53 -16
- package/src/lib/seam/connect/route-types.ts +197 -261
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.987.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@seamapi/blueprint": "^1.
|
|
93
|
+
"@seamapi/blueprint": "^1.2.0",
|
|
94
94
|
"@types/node": "^24.10.9",
|
|
95
95
|
"concurrently": "^9.2.0",
|
|
96
96
|
"del-cli": "^7.0.0",
|
|
@@ -60,15 +60,16 @@ const entrance_setup_required = common_acs_entrance_warning
|
|
|
60
60
|
'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.',
|
|
61
61
|
)
|
|
62
62
|
|
|
63
|
-
const salto_ks_privacy_mode = common_acs_entrance_warning
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
const salto_ks_privacy_mode = common_acs_entrance_warning.extend({
|
|
64
|
+
warning_code: z
|
|
65
|
+
.literal('salto_ks_privacy_mode')
|
|
66
|
+
.describe(warning_code_description),
|
|
67
|
+
}).describe(`
|
|
68
|
+
---
|
|
69
|
+
deprecated: Use \`privacy_mode\` instead.
|
|
70
|
+
---
|
|
71
|
+
Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.
|
|
72
|
+
`)
|
|
72
73
|
|
|
73
74
|
const privacy_mode = common_acs_entrance_warning
|
|
74
75
|
.extend({
|
|
@@ -264,7 +264,7 @@ export const device_metadata = z
|
|
|
264
264
|
})
|
|
265
265
|
.partial().describe(`
|
|
266
266
|
---
|
|
267
|
-
deprecated: Use \`salto_ks_metadata
|
|
267
|
+
deprecated: Use \`salto_ks_metadata\` instead.
|
|
268
268
|
---
|
|
269
269
|
Metada for a Salto device.
|
|
270
270
|
`),
|
|
@@ -678,6 +678,10 @@ export const device_metadata = z
|
|
|
678
678
|
.string()
|
|
679
679
|
.optional()
|
|
680
680
|
.describe(`Device ID for a Google Nest device.`),
|
|
681
|
+
nest_structure_id: z
|
|
682
|
+
.string()
|
|
683
|
+
.optional()
|
|
684
|
+
.describe(`ID of the Google Nest structure containing the device.`),
|
|
681
685
|
device_name: z
|
|
682
686
|
.string()
|
|
683
687
|
.optional()
|
|
@@ -690,6 +694,12 @@ export const device_metadata = z
|
|
|
690
694
|
.describe(
|
|
691
695
|
`Custom device name for a Google Nest device. The device owner sets this value.`,
|
|
692
696
|
), // set by device owner
|
|
697
|
+
structure_name: z
|
|
698
|
+
.string()
|
|
699
|
+
.optional()
|
|
700
|
+
.describe(
|
|
701
|
+
`Name of the Google Nest structure containing the device. The device owner sets this value.`,
|
|
702
|
+
), // set by device owner
|
|
693
703
|
display_name: z
|
|
694
704
|
.string()
|
|
695
705
|
.optional()
|
|
@@ -1043,6 +1043,9 @@ export const device = z
|
|
|
1043
1043
|
location_name: z.string().optional()
|
|
1044
1044
|
.describe(`Name of the device location.
|
|
1045
1045
|
`),
|
|
1046
|
+
room_name: z.string().optional()
|
|
1047
|
+
.describe(`Name of the room within the device location, when the provider reports one.
|
|
1048
|
+
`),
|
|
1046
1049
|
time_zone: z.string().optional()
|
|
1047
1050
|
.describe(`Time zone of the device location.
|
|
1048
1051
|
`),
|
|
@@ -117,10 +117,11 @@ export type ConnectedAccountCompletedFirstSyncEvent = z.infer<
|
|
|
117
117
|
|
|
118
118
|
export const connected_account_deleted_event = connected_account_event.extend({
|
|
119
119
|
event_type: z.literal('connected_account.deleted'),
|
|
120
|
-
connected_account_type: z
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
connected_account_type: z.string().optional().describe(`
|
|
121
|
+
---
|
|
122
|
+
undocumented: Unreleased.
|
|
123
|
+
---
|
|
124
|
+
`),
|
|
124
125
|
customer_key: z
|
|
125
126
|
.string()
|
|
126
127
|
.optional()
|
|
@@ -436,21 +436,25 @@ export const lock_locked_event = device_event.extend({
|
|
|
436
436
|
'Method by which the lock was locked. `keycode`: an access code was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or button press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by an auto-relock timer. `unknown`: could not be determined.',
|
|
437
437
|
),
|
|
438
438
|
user_identity_id: z.string().uuid().optional().describe(`
|
|
439
|
+
---
|
|
439
440
|
undocumented: Unreleased.
|
|
440
441
|
---
|
|
441
442
|
ID of the user identity associated with the lock event.
|
|
442
443
|
`),
|
|
443
444
|
acs_system_id: z.string().uuid().optional().describe(`
|
|
445
|
+
---
|
|
444
446
|
undocumented: Unreleased.
|
|
445
447
|
---
|
|
446
448
|
ID of the ACS system associated with the lock event.
|
|
447
449
|
`),
|
|
448
450
|
acs_user_id: z.string().uuid().optional().describe(`
|
|
451
|
+
---
|
|
449
452
|
undocumented: Unreleased.
|
|
450
453
|
---
|
|
451
454
|
ID of the ACS user associated with the lock event.
|
|
452
455
|
`),
|
|
453
456
|
acs_entrance_id: z.string().uuid().optional().describe(`
|
|
457
|
+
---
|
|
454
458
|
undocumented: Unreleased.
|
|
455
459
|
---
|
|
456
460
|
ID of the ACS entrance associated with the lock event.
|
|
@@ -499,21 +503,25 @@ export const lock_unlocked_event = device_event.extend({
|
|
|
499
503
|
'Method by which the lock was unlocked. `keycode`: an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or handle press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by a time-based schedule. `unknown`: could not be determined.',
|
|
500
504
|
),
|
|
501
505
|
user_identity_id: z.string().uuid().optional().describe(`
|
|
506
|
+
---
|
|
502
507
|
undocumented: Unreleased.
|
|
503
508
|
---
|
|
504
509
|
ID of the user identity associated with the unlock event.
|
|
505
510
|
`),
|
|
506
511
|
acs_system_id: z.string().uuid().optional().describe(`
|
|
512
|
+
---
|
|
507
513
|
undocumented: Unreleased.
|
|
508
514
|
---
|
|
509
515
|
ID of the ACS system associated with the unlock event.
|
|
510
516
|
`),
|
|
511
517
|
acs_user_id: z.string().uuid().optional().describe(`
|
|
518
|
+
---
|
|
512
519
|
undocumented: Unreleased.
|
|
513
520
|
---
|
|
514
521
|
ID of the ACS user associated with the unlock event.
|
|
515
522
|
`),
|
|
516
523
|
acs_entrance_id: z.string().uuid().optional().describe(`
|
|
524
|
+
---
|
|
517
525
|
undocumented: Unreleased.
|
|
518
526
|
---
|
|
519
527
|
ID of the ACS entrance associated with the unlock event.
|
|
@@ -546,21 +554,25 @@ export const lock_access_denied_event = device_event.extend({
|
|
|
546
554
|
.optional()
|
|
547
555
|
.describe('ID of the access code that was used in the unlock attempts.'),
|
|
548
556
|
user_identity_id: z.string().uuid().optional().describe(`
|
|
557
|
+
---
|
|
549
558
|
undocumented: Unreleased.
|
|
550
559
|
---
|
|
551
560
|
ID of the user identity associated with the access-denied event.
|
|
552
561
|
`),
|
|
553
562
|
acs_system_id: z.string().uuid().optional().describe(`
|
|
563
|
+
---
|
|
554
564
|
undocumented: Unreleased.
|
|
555
565
|
---
|
|
556
566
|
ID of the ACS system associated with the access-denied event.
|
|
557
567
|
`),
|
|
558
568
|
acs_user_id: z.string().uuid().optional().describe(`
|
|
569
|
+
---
|
|
559
570
|
undocumented: Unreleased.
|
|
560
571
|
---
|
|
561
572
|
ID of the ACS user associated with the access-denied event.
|
|
562
573
|
`),
|
|
563
574
|
acs_entrance_id: z.string().uuid().optional().describe(`
|
|
575
|
+
---
|
|
564
576
|
undocumented: Unreleased.
|
|
565
577
|
---
|
|
566
578
|
ID of the ACS entrance associated with the access-denied event.
|
|
@@ -4341,8 +4341,9 @@ const openapi: OpenAPISpec = {
|
|
|
4341
4341
|
type: 'object',
|
|
4342
4342
|
},
|
|
4343
4343
|
{
|
|
4344
|
+
deprecated: true,
|
|
4344
4345
|
description:
|
|
4345
|
-
'
|
|
4346
|
+
'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.',
|
|
4346
4347
|
properties: {
|
|
4347
4348
|
created_at: {
|
|
4348
4349
|
description:
|
|
@@ -4364,6 +4365,7 @@ const openapi: OpenAPISpec = {
|
|
|
4364
4365
|
},
|
|
4365
4366
|
required: ['created_at', 'message', 'warning_code'],
|
|
4366
4367
|
type: 'object',
|
|
4368
|
+
'x-deprecated': 'Use `privacy_mode` instead.',
|
|
4367
4369
|
},
|
|
4368
4370
|
{
|
|
4369
4371
|
description:
|
|
@@ -13707,6 +13709,11 @@ const openapi: OpenAPISpec = {
|
|
|
13707
13709
|
description: 'Name of the device location.\n ',
|
|
13708
13710
|
type: 'string',
|
|
13709
13711
|
},
|
|
13712
|
+
room_name: {
|
|
13713
|
+
description:
|
|
13714
|
+
'Name of the room within the device location, when the provider reports one.\n ',
|
|
13715
|
+
type: 'string',
|
|
13716
|
+
},
|
|
13710
13717
|
time_zone: {
|
|
13711
13718
|
description: 'Time zone of the device location.\n ',
|
|
13712
13719
|
type: 'string',
|
|
@@ -14775,6 +14782,16 @@ const openapi: OpenAPISpec = {
|
|
|
14775
14782
|
description: 'Device ID for a Google Nest device.',
|
|
14776
14783
|
type: 'string',
|
|
14777
14784
|
},
|
|
14785
|
+
nest_structure_id: {
|
|
14786
|
+
description:
|
|
14787
|
+
'ID of the Google Nest structure containing the device.',
|
|
14788
|
+
type: 'string',
|
|
14789
|
+
},
|
|
14790
|
+
structure_name: {
|
|
14791
|
+
description:
|
|
14792
|
+
'Name of the Google Nest structure containing the device. The device owner sets this value.',
|
|
14793
|
+
type: 'string',
|
|
14794
|
+
},
|
|
14778
14795
|
},
|
|
14779
14796
|
type: 'object',
|
|
14780
14797
|
},
|
|
@@ -14982,7 +14999,7 @@ const openapi: OpenAPISpec = {
|
|
|
14982
14999
|
},
|
|
14983
15000
|
},
|
|
14984
15001
|
type: 'object',
|
|
14985
|
-
'x-deprecated': 'Use `salto_ks_metadata
|
|
15002
|
+
'x-deprecated': 'Use `salto_ks_metadata` instead.',
|
|
14986
15003
|
},
|
|
14987
15004
|
schlage_metadata: {
|
|
14988
15005
|
description: 'Metadata for a Schlage device.',
|
|
@@ -22557,8 +22574,8 @@ const openapi: OpenAPISpec = {
|
|
|
22557
22574
|
type: 'string',
|
|
22558
22575
|
},
|
|
22559
22576
|
connected_account_type: {
|
|
22560
|
-
description: 'undocumented: Unreleased.',
|
|
22561
22577
|
type: 'string',
|
|
22578
|
+
'x-undocumented': 'Unreleased.',
|
|
22562
22579
|
},
|
|
22563
22580
|
created_at: {
|
|
22564
22581
|
description: 'Date and time at which the event was created.',
|
|
@@ -25898,21 +25915,24 @@ const openapi: OpenAPISpec = {
|
|
|
25898
25915
|
},
|
|
25899
25916
|
acs_entrance_id: {
|
|
25900
25917
|
description:
|
|
25901
|
-
'
|
|
25918
|
+
'ID of the ACS entrance associated with the lock event.',
|
|
25902
25919
|
format: 'uuid',
|
|
25903
25920
|
type: 'string',
|
|
25921
|
+
'x-undocumented': 'Unreleased.',
|
|
25904
25922
|
},
|
|
25905
25923
|
acs_system_id: {
|
|
25906
25924
|
description:
|
|
25907
|
-
'
|
|
25925
|
+
'ID of the ACS system associated with the lock event.',
|
|
25908
25926
|
format: 'uuid',
|
|
25909
25927
|
type: 'string',
|
|
25928
|
+
'x-undocumented': 'Unreleased.',
|
|
25910
25929
|
},
|
|
25911
25930
|
acs_user_id: {
|
|
25912
25931
|
description:
|
|
25913
|
-
'
|
|
25932
|
+
'ID of the ACS user associated with the lock event.',
|
|
25914
25933
|
format: 'uuid',
|
|
25915
25934
|
type: 'string',
|
|
25935
|
+
'x-undocumented': 'Unreleased.',
|
|
25916
25936
|
},
|
|
25917
25937
|
action_attempt_id: {
|
|
25918
25938
|
description:
|
|
@@ -26003,9 +26023,10 @@ const openapi: OpenAPISpec = {
|
|
|
26003
26023
|
},
|
|
26004
26024
|
user_identity_id: {
|
|
26005
26025
|
description:
|
|
26006
|
-
'
|
|
26026
|
+
'ID of the user identity associated with the lock event.',
|
|
26007
26027
|
format: 'uuid',
|
|
26008
26028
|
type: 'string',
|
|
26029
|
+
'x-undocumented': 'Unreleased.',
|
|
26009
26030
|
},
|
|
26010
26031
|
workspace_id: {
|
|
26011
26032
|
description: 'ID of the workspace associated with the event.',
|
|
@@ -26043,21 +26064,24 @@ const openapi: OpenAPISpec = {
|
|
|
26043
26064
|
},
|
|
26044
26065
|
acs_entrance_id: {
|
|
26045
26066
|
description:
|
|
26046
|
-
'
|
|
26067
|
+
'ID of the ACS entrance associated with the unlock event.',
|
|
26047
26068
|
format: 'uuid',
|
|
26048
26069
|
type: 'string',
|
|
26070
|
+
'x-undocumented': 'Unreleased.',
|
|
26049
26071
|
},
|
|
26050
26072
|
acs_system_id: {
|
|
26051
26073
|
description:
|
|
26052
|
-
'
|
|
26074
|
+
'ID of the ACS system associated with the unlock event.',
|
|
26053
26075
|
format: 'uuid',
|
|
26054
26076
|
type: 'string',
|
|
26077
|
+
'x-undocumented': 'Unreleased.',
|
|
26055
26078
|
},
|
|
26056
26079
|
acs_user_id: {
|
|
26057
26080
|
description:
|
|
26058
|
-
'
|
|
26081
|
+
'ID of the ACS user associated with the unlock event.',
|
|
26059
26082
|
format: 'uuid',
|
|
26060
26083
|
type: 'string',
|
|
26084
|
+
'x-undocumented': 'Unreleased.',
|
|
26061
26085
|
},
|
|
26062
26086
|
action_attempt_id: {
|
|
26063
26087
|
description:
|
|
@@ -26148,9 +26172,10 @@ const openapi: OpenAPISpec = {
|
|
|
26148
26172
|
},
|
|
26149
26173
|
user_identity_id: {
|
|
26150
26174
|
description:
|
|
26151
|
-
'
|
|
26175
|
+
'ID of the user identity associated with the unlock event.',
|
|
26152
26176
|
format: 'uuid',
|
|
26153
26177
|
type: 'string',
|
|
26178
|
+
'x-undocumented': 'Unreleased.',
|
|
26154
26179
|
},
|
|
26155
26180
|
workspace_id: {
|
|
26156
26181
|
description: 'ID of the workspace associated with the event.',
|
|
@@ -26182,21 +26207,24 @@ const openapi: OpenAPISpec = {
|
|
|
26182
26207
|
},
|
|
26183
26208
|
acs_entrance_id: {
|
|
26184
26209
|
description:
|
|
26185
|
-
'
|
|
26210
|
+
'ID of the ACS entrance associated with the access-denied event.',
|
|
26186
26211
|
format: 'uuid',
|
|
26187
26212
|
type: 'string',
|
|
26213
|
+
'x-undocumented': 'Unreleased.',
|
|
26188
26214
|
},
|
|
26189
26215
|
acs_system_id: {
|
|
26190
26216
|
description:
|
|
26191
|
-
'
|
|
26217
|
+
'ID of the ACS system associated with the access-denied event.',
|
|
26192
26218
|
format: 'uuid',
|
|
26193
26219
|
type: 'string',
|
|
26220
|
+
'x-undocumented': 'Unreleased.',
|
|
26194
26221
|
},
|
|
26195
26222
|
acs_user_id: {
|
|
26196
26223
|
description:
|
|
26197
|
-
'
|
|
26224
|
+
'ID of the ACS user associated with the access-denied event.',
|
|
26198
26225
|
format: 'uuid',
|
|
26199
26226
|
type: 'string',
|
|
26227
|
+
'x-undocumented': 'Unreleased.',
|
|
26200
26228
|
},
|
|
26201
26229
|
connected_account_custom_metadata: {
|
|
26202
26230
|
additionalProperties: {
|
|
@@ -26279,9 +26307,10 @@ const openapi: OpenAPISpec = {
|
|
|
26279
26307
|
},
|
|
26280
26308
|
user_identity_id: {
|
|
26281
26309
|
description:
|
|
26282
|
-
'
|
|
26310
|
+
'ID of the user identity associated with the access-denied event.',
|
|
26283
26311
|
format: 'uuid',
|
|
26284
26312
|
type: 'string',
|
|
26313
|
+
'x-undocumented': 'Unreleased.',
|
|
26285
26314
|
},
|
|
26286
26315
|
workspace_id: {
|
|
26287
26316
|
description: 'ID of the workspace associated with the event.',
|
|
@@ -28494,8 +28523,9 @@ const openapi: OpenAPISpec = {
|
|
|
28494
28523
|
type: 'object',
|
|
28495
28524
|
},
|
|
28496
28525
|
{
|
|
28526
|
+
deprecated: true,
|
|
28497
28527
|
description:
|
|
28498
|
-
'
|
|
28528
|
+
'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.',
|
|
28499
28529
|
properties: {
|
|
28500
28530
|
created_at: {
|
|
28501
28531
|
description:
|
|
@@ -28521,6 +28551,8 @@ const openapi: OpenAPISpec = {
|
|
|
28521
28551
|
'warning_code',
|
|
28522
28552
|
],
|
|
28523
28553
|
type: 'object',
|
|
28554
|
+
'x-deprecated':
|
|
28555
|
+
'Use `privacy_mode` instead.',
|
|
28524
28556
|
},
|
|
28525
28557
|
{
|
|
28526
28558
|
description:
|
|
@@ -34647,6 +34679,11 @@ const openapi: OpenAPISpec = {
|
|
|
34647
34679
|
description: 'Name of the device location.\n ',
|
|
34648
34680
|
type: 'string',
|
|
34649
34681
|
},
|
|
34682
|
+
room_name: {
|
|
34683
|
+
description:
|
|
34684
|
+
'Name of the room within the device location, when the provider reports one.\n ',
|
|
34685
|
+
type: 'string',
|
|
34686
|
+
},
|
|
34650
34687
|
time_zone: {
|
|
34651
34688
|
description: 'Time zone of the device location.\n ',
|
|
34652
34689
|
type: 'string',
|