@seamapi/types 1.361.1 → 1.363.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 +183 -54
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +414 -176
- package/lib/seam/connect/models/devices/device.d.ts +87 -82
- package/lib/seam/connect/models/devices/device.js +22 -21
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +25 -25
- package/lib/seam/connect/models/events/acs/entrances.d.ts +125 -0
- package/lib/seam/connect/models/events/acs/entrances.js +28 -0
- package/lib/seam/connect/models/events/acs/entrances.js.map +1 -0
- package/lib/seam/connect/models/events/acs/index.d.ts +60 -0
- package/lib/seam/connect/models/events/acs/index.js +2 -0
- package/lib/seam/connect/models/events/acs/index.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +61 -1
- package/lib/seam/connect/openapi.d.ts +118 -0
- package/lib/seam/connect/openapi.js +132 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +167 -107
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +25 -21
- package/src/lib/seam/connect/models/events/acs/entrances.ts +36 -0
- package/src/lib/seam/connect/models/events/acs/index.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +144 -36
- package/src/lib/seam/connect/route-types.ts +188 -120
|
@@ -200,29 +200,31 @@ const many_active_backup_codes = common_device_warning
|
|
|
200
200
|
})
|
|
201
201
|
.describe('Too many backup codes.')
|
|
202
202
|
|
|
203
|
-
const
|
|
203
|
+
const salto_ks_office_mode = common_device_warning
|
|
204
204
|
.extend({
|
|
205
205
|
warning_code: z
|
|
206
|
-
.literal('
|
|
206
|
+
.literal('salto_ks_office_mode')
|
|
207
207
|
.describe(warning_code_description),
|
|
208
208
|
})
|
|
209
|
-
.describe('
|
|
209
|
+
.describe('Lock is in Office Mode. Access Codes will not unlock doors.')
|
|
210
210
|
|
|
211
|
-
const
|
|
211
|
+
const salto_ks_privacy_mode = common_device_warning
|
|
212
212
|
.extend({
|
|
213
213
|
warning_code: z
|
|
214
|
-
.literal('
|
|
214
|
+
.literal('salto_ks_privacy_mode')
|
|
215
215
|
.describe(warning_code_description),
|
|
216
216
|
})
|
|
217
|
-
.describe('Lock is in
|
|
217
|
+
.describe('Lock is in Privacy Mode. Access Codes will not unlock doors.')
|
|
218
218
|
|
|
219
|
-
const
|
|
219
|
+
const salto_ks_subscription_limit_almost_reached = common_device_warning
|
|
220
220
|
.extend({
|
|
221
221
|
warning_code: z
|
|
222
|
-
.literal('
|
|
222
|
+
.literal('salto_ks_subscription_limit_almost_reached')
|
|
223
223
|
.describe(warning_code_description),
|
|
224
224
|
})
|
|
225
|
-
.describe(
|
|
225
|
+
.describe(
|
|
226
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
227
|
+
)
|
|
226
228
|
|
|
227
229
|
const wyze_device_missing_gateway = common_device_warning
|
|
228
230
|
.extend({
|
|
@@ -318,7 +320,6 @@ export const unknown_issue_with_phone = common_device_warning
|
|
|
318
320
|
const device_warning = z.discriminatedUnion('warning_code', [
|
|
319
321
|
partial_backup_access_code_pool,
|
|
320
322
|
many_active_backup_codes,
|
|
321
|
-
salto_unknown_device_type,
|
|
322
323
|
wyze_device_missing_gateway,
|
|
323
324
|
functional_offline_device,
|
|
324
325
|
third_party_integration_detected,
|
|
@@ -329,8 +330,9 @@ const device_warning = z.discriminatedUnion('warning_code', [
|
|
|
329
330
|
device_communication_degraded,
|
|
330
331
|
scheduled_maintenance_window,
|
|
331
332
|
device_has_flaky_connection,
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
salto_ks_office_mode,
|
|
334
|
+
salto_ks_privacy_mode,
|
|
335
|
+
salto_ks_subscription_limit_almost_reached,
|
|
334
336
|
unknown_issue_with_phone,
|
|
335
337
|
])
|
|
336
338
|
|
|
@@ -341,7 +343,13 @@ export const device_warning_map = z.object({
|
|
|
341
343
|
.optional()
|
|
342
344
|
.nullable(),
|
|
343
345
|
many_active_backup_codes: many_active_backup_codes.optional().nullable(),
|
|
344
|
-
|
|
346
|
+
device_has_flaky_connection: device_has_flaky_connection
|
|
347
|
+
.extend({
|
|
348
|
+
_event_id: z.string().uuid().optional(),
|
|
349
|
+
_reason: z.string().optional(),
|
|
350
|
+
})
|
|
351
|
+
.optional()
|
|
352
|
+
.nullable(),
|
|
345
353
|
wyze_device_missing_gateway: wyze_device_missing_gateway
|
|
346
354
|
.optional()
|
|
347
355
|
.nullable(),
|
|
@@ -364,14 +372,10 @@ export const device_warning_map = z.object({
|
|
|
364
372
|
scheduled_maintenance_window: scheduled_maintenance_window
|
|
365
373
|
.optional()
|
|
366
374
|
.nullable(),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
.optional()
|
|
372
|
-
.nullable(),
|
|
373
|
-
salto_office_mode: salto_office_mode.optional().nullable(),
|
|
374
|
-
salto_privacy_mode: salto_privacy_mode.optional().nullable(),
|
|
375
|
+
salto_ks_office_mode: salto_ks_office_mode.optional().nullable(),
|
|
376
|
+
salto_ks_privacy_mode: salto_ks_privacy_mode.optional().nullable(),
|
|
377
|
+
salto_ks_subscription_limit_almost_reached:
|
|
378
|
+
salto_ks_subscription_limit_almost_reached.optional().nullable(),
|
|
375
379
|
unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable(),
|
|
376
380
|
})
|
|
377
381
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { common_acs_event } from './common.js'
|
|
4
|
+
|
|
5
|
+
const acs_entrance_event = common_acs_event
|
|
6
|
+
.extend({
|
|
7
|
+
acs_entrance_id: z.string().uuid(),
|
|
8
|
+
})
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details).',
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
export const acs_entrance_added_event = acs_entrance_event.extend({
|
|
14
|
+
event_type: z.literal('acs_entrance.added'),
|
|
15
|
+
}).describe(`
|
|
16
|
+
---
|
|
17
|
+
route_path: /acs/entrances
|
|
18
|
+
---
|
|
19
|
+
An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.
|
|
20
|
+
`)
|
|
21
|
+
|
|
22
|
+
export const acs_entrance_removed_event = acs_entrance_event.extend({
|
|
23
|
+
event_type: z.literal('acs_entrance.removed'),
|
|
24
|
+
}).describe(`
|
|
25
|
+
---
|
|
26
|
+
route_path: /acs/entrances
|
|
27
|
+
---
|
|
28
|
+
An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.
|
|
29
|
+
`)
|
|
30
|
+
|
|
31
|
+
export type AcsUserDeletedEvent = z.infer<typeof acs_entrance_removed_event>
|
|
32
|
+
|
|
33
|
+
export const acs_entrance_events = [
|
|
34
|
+
acs_entrance_added_event,
|
|
35
|
+
acs_entrance_removed_event,
|
|
36
|
+
] as const
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { acs_access_group_events } from './access-groups.js'
|
|
2
2
|
import { acs_credential_events } from './credentials.js'
|
|
3
3
|
import { acs_encoder_events } from './encoders.js'
|
|
4
|
+
import { acs_entrance_events } from './entrances.js'
|
|
4
5
|
import { acs_system_events } from './systems.js'
|
|
5
6
|
import { acs_user_events } from './users.js'
|
|
6
7
|
|
|
@@ -10,4 +11,5 @@ export const acs_events = [
|
|
|
10
11
|
...acs_user_events,
|
|
11
12
|
...acs_encoder_events,
|
|
12
13
|
...acs_access_group_events,
|
|
14
|
+
...acs_entrance_events,
|
|
13
15
|
] as const
|
|
@@ -7598,22 +7598,6 @@ export default {
|
|
|
7598
7598
|
required: ['message', 'created_at', 'warning_code'],
|
|
7599
7599
|
type: 'object',
|
|
7600
7600
|
},
|
|
7601
|
-
{
|
|
7602
|
-
description:
|
|
7603
|
-
'A Salto Lock displaying an unknown device type.',
|
|
7604
|
-
properties: {
|
|
7605
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
7606
|
-
message: { type: 'string' },
|
|
7607
|
-
warning_code: {
|
|
7608
|
-
description:
|
|
7609
|
-
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
7610
|
-
enum: ['salto_unknown_device_type'],
|
|
7611
|
-
type: 'string',
|
|
7612
|
-
},
|
|
7613
|
-
},
|
|
7614
|
-
required: ['message', 'created_at', 'warning_code'],
|
|
7615
|
-
type: 'object',
|
|
7616
|
-
},
|
|
7617
7601
|
{
|
|
7618
7602
|
description: 'Wyze Lock is not connected to a gateway.',
|
|
7619
7603
|
properties: {
|
|
@@ -7774,7 +7758,7 @@ export default {
|
|
|
7774
7758
|
warning_code: {
|
|
7775
7759
|
description:
|
|
7776
7760
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
7777
|
-
enum: ['
|
|
7761
|
+
enum: ['salto_ks_office_mode'],
|
|
7778
7762
|
type: 'string',
|
|
7779
7763
|
},
|
|
7780
7764
|
},
|
|
@@ -7790,7 +7774,23 @@ export default {
|
|
|
7790
7774
|
warning_code: {
|
|
7791
7775
|
description:
|
|
7792
7776
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
7793
|
-
enum: ['
|
|
7777
|
+
enum: ['salto_ks_privacy_mode'],
|
|
7778
|
+
type: 'string',
|
|
7779
|
+
},
|
|
7780
|
+
},
|
|
7781
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
7782
|
+
type: 'object',
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
description:
|
|
7786
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
7787
|
+
properties: {
|
|
7788
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
7789
|
+
message: { type: 'string' },
|
|
7790
|
+
warning_code: {
|
|
7791
|
+
description:
|
|
7792
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
7793
|
+
enum: ['salto_ks_subscription_limit_almost_reached'],
|
|
7794
7794
|
type: 'string',
|
|
7795
7795
|
},
|
|
7796
7796
|
},
|
|
@@ -9552,6 +9552,110 @@ export default {
|
|
|
9552
9552
|
type: 'object',
|
|
9553
9553
|
'x-route-path': '/acs/access_groups',
|
|
9554
9554
|
},
|
|
9555
|
+
{
|
|
9556
|
+
description:
|
|
9557
|
+
'An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.',
|
|
9558
|
+
properties: {
|
|
9559
|
+
acs_entrance_id: { format: 'uuid', type: 'string' },
|
|
9560
|
+
acs_system_id: {
|
|
9561
|
+
description:
|
|
9562
|
+
'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
9563
|
+
format: 'uuid',
|
|
9564
|
+
type: 'string',
|
|
9565
|
+
},
|
|
9566
|
+
connected_account_id: {
|
|
9567
|
+
description:
|
|
9568
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
9569
|
+
format: 'uuid',
|
|
9570
|
+
type: 'string',
|
|
9571
|
+
},
|
|
9572
|
+
created_at: {
|
|
9573
|
+
description: 'Date and time at which the event was created.',
|
|
9574
|
+
format: 'date-time',
|
|
9575
|
+
type: 'string',
|
|
9576
|
+
},
|
|
9577
|
+
event_id: {
|
|
9578
|
+
description: 'ID of the event.',
|
|
9579
|
+
format: 'uuid',
|
|
9580
|
+
type: 'string',
|
|
9581
|
+
},
|
|
9582
|
+
event_type: { enum: ['acs_entrance.added'], type: 'string' },
|
|
9583
|
+
occurred_at: {
|
|
9584
|
+
description: 'Date and time at which the event occurred.',
|
|
9585
|
+
format: 'date-time',
|
|
9586
|
+
type: 'string',
|
|
9587
|
+
},
|
|
9588
|
+
workspace_id: {
|
|
9589
|
+
description:
|
|
9590
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
|
|
9591
|
+
format: 'uuid',
|
|
9592
|
+
type: 'string',
|
|
9593
|
+
},
|
|
9594
|
+
},
|
|
9595
|
+
required: [
|
|
9596
|
+
'event_id',
|
|
9597
|
+
'workspace_id',
|
|
9598
|
+
'created_at',
|
|
9599
|
+
'occurred_at',
|
|
9600
|
+
'acs_system_id',
|
|
9601
|
+
'acs_entrance_id',
|
|
9602
|
+
'event_type',
|
|
9603
|
+
],
|
|
9604
|
+
type: 'object',
|
|
9605
|
+
'x-route-path': '/acs/entrances',
|
|
9606
|
+
},
|
|
9607
|
+
{
|
|
9608
|
+
description:
|
|
9609
|
+
'An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.',
|
|
9610
|
+
properties: {
|
|
9611
|
+
acs_entrance_id: { format: 'uuid', type: 'string' },
|
|
9612
|
+
acs_system_id: {
|
|
9613
|
+
description:
|
|
9614
|
+
'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
9615
|
+
format: 'uuid',
|
|
9616
|
+
type: 'string',
|
|
9617
|
+
},
|
|
9618
|
+
connected_account_id: {
|
|
9619
|
+
description:
|
|
9620
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
9621
|
+
format: 'uuid',
|
|
9622
|
+
type: 'string',
|
|
9623
|
+
},
|
|
9624
|
+
created_at: {
|
|
9625
|
+
description: 'Date and time at which the event was created.',
|
|
9626
|
+
format: 'date-time',
|
|
9627
|
+
type: 'string',
|
|
9628
|
+
},
|
|
9629
|
+
event_id: {
|
|
9630
|
+
description: 'ID of the event.',
|
|
9631
|
+
format: 'uuid',
|
|
9632
|
+
type: 'string',
|
|
9633
|
+
},
|
|
9634
|
+
event_type: { enum: ['acs_entrance.removed'], type: 'string' },
|
|
9635
|
+
occurred_at: {
|
|
9636
|
+
description: 'Date and time at which the event occurred.',
|
|
9637
|
+
format: 'date-time',
|
|
9638
|
+
type: 'string',
|
|
9639
|
+
},
|
|
9640
|
+
workspace_id: {
|
|
9641
|
+
description:
|
|
9642
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
|
|
9643
|
+
format: 'uuid',
|
|
9644
|
+
type: 'string',
|
|
9645
|
+
},
|
|
9646
|
+
},
|
|
9647
|
+
required: [
|
|
9648
|
+
'event_id',
|
|
9649
|
+
'workspace_id',
|
|
9650
|
+
'created_at',
|
|
9651
|
+
'occurred_at',
|
|
9652
|
+
'acs_system_id',
|
|
9653
|
+
'acs_entrance_id',
|
|
9654
|
+
'event_type',
|
|
9655
|
+
],
|
|
9656
|
+
type: 'object',
|
|
9657
|
+
'x-route-path': '/acs/entrances',
|
|
9658
|
+
},
|
|
9555
9659
|
{
|
|
9556
9660
|
description:
|
|
9557
9661
|
'A [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was deleted.',
|
|
@@ -14967,22 +15071,6 @@ export default {
|
|
|
14967
15071
|
required: ['message', 'created_at', 'warning_code'],
|
|
14968
15072
|
type: 'object',
|
|
14969
15073
|
},
|
|
14970
|
-
{
|
|
14971
|
-
description:
|
|
14972
|
-
'A Salto Lock displaying an unknown device type.',
|
|
14973
|
-
properties: {
|
|
14974
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
14975
|
-
message: { type: 'string' },
|
|
14976
|
-
warning_code: {
|
|
14977
|
-
description:
|
|
14978
|
-
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
14979
|
-
enum: ['salto_unknown_device_type'],
|
|
14980
|
-
type: 'string',
|
|
14981
|
-
},
|
|
14982
|
-
},
|
|
14983
|
-
required: ['message', 'created_at', 'warning_code'],
|
|
14984
|
-
type: 'object',
|
|
14985
|
-
},
|
|
14986
15074
|
{
|
|
14987
15075
|
description: 'Wyze Lock is not connected to a gateway.',
|
|
14988
15076
|
properties: {
|
|
@@ -15143,7 +15231,7 @@ export default {
|
|
|
15143
15231
|
warning_code: {
|
|
15144
15232
|
description:
|
|
15145
15233
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
15146
|
-
enum: ['
|
|
15234
|
+
enum: ['salto_ks_office_mode'],
|
|
15147
15235
|
type: 'string',
|
|
15148
15236
|
},
|
|
15149
15237
|
},
|
|
@@ -15159,7 +15247,23 @@ export default {
|
|
|
15159
15247
|
warning_code: {
|
|
15160
15248
|
description:
|
|
15161
15249
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
15162
|
-
enum: ['
|
|
15250
|
+
enum: ['salto_ks_privacy_mode'],
|
|
15251
|
+
type: 'string',
|
|
15252
|
+
},
|
|
15253
|
+
},
|
|
15254
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
15255
|
+
type: 'object',
|
|
15256
|
+
},
|
|
15257
|
+
{
|
|
15258
|
+
description:
|
|
15259
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
15260
|
+
properties: {
|
|
15261
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
15262
|
+
message: { type: 'string' },
|
|
15263
|
+
warning_code: {
|
|
15264
|
+
description:
|
|
15265
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
15266
|
+
enum: ['salto_ks_subscription_limit_almost_reached'],
|
|
15163
15267
|
type: 'string',
|
|
15164
15268
|
},
|
|
15165
15269
|
},
|
|
@@ -22742,6 +22846,8 @@ export default {
|
|
|
22742
22846
|
'acs_encoder.added',
|
|
22743
22847
|
'acs_encoder.removed',
|
|
22744
22848
|
'acs_access_group.deleted',
|
|
22849
|
+
'acs_entrance.added',
|
|
22850
|
+
'acs_entrance.removed',
|
|
22745
22851
|
'client_session.deleted',
|
|
22746
22852
|
'connected_account.connected',
|
|
22747
22853
|
'connected_account.created',
|
|
@@ -22824,6 +22930,8 @@ export default {
|
|
|
22824
22930
|
'acs_encoder.added',
|
|
22825
22931
|
'acs_encoder.removed',
|
|
22826
22932
|
'acs_access_group.deleted',
|
|
22933
|
+
'acs_entrance.added',
|
|
22934
|
+
'acs_entrance.removed',
|
|
22827
22935
|
'client_session.deleted',
|
|
22828
22936
|
'connected_account.connected',
|
|
22829
22937
|
'connected_account.created',
|