@seamapi/types 1.740.0 → 1.741.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 +178 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +645 -4
- package/dist/index.cjs +178 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +124 -0
- package/lib/seam/connect/models/events/devices.d.ts +156 -0
- package/lib/seam/connect/models/events/devices.js +25 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +77 -1
- package/lib/seam/connect/openapi.d.ts +233 -0
- package/lib/seam/connect/openapi.js +157 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +212 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +31 -0
- package/src/lib/seam/connect/openapi.ts +169 -0
- package/src/lib/seam/connect/route-types.ts +264 -0
|
@@ -20756,6 +20756,147 @@ export default {
|
|
|
20756
20756
|
type: 'object',
|
|
20757
20757
|
'x-route-path': '/devices',
|
|
20758
20758
|
},
|
|
20759
|
+
{
|
|
20760
|
+
description: 'A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.',
|
|
20761
|
+
properties: {
|
|
20762
|
+
activation_reason: {
|
|
20763
|
+
description: 'The reason the camera was activated.',
|
|
20764
|
+
enum: ['motion_detected'],
|
|
20765
|
+
type: 'string',
|
|
20766
|
+
},
|
|
20767
|
+
connected_account_custom_metadata: {
|
|
20768
|
+
additionalProperties: {
|
|
20769
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
20770
|
+
},
|
|
20771
|
+
description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
20772
|
+
type: 'object',
|
|
20773
|
+
},
|
|
20774
|
+
connected_account_id: {
|
|
20775
|
+
description: 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
|
|
20776
|
+
format: 'uuid',
|
|
20777
|
+
type: 'string',
|
|
20778
|
+
},
|
|
20779
|
+
created_at: {
|
|
20780
|
+
description: 'Date and time at which the event was created.',
|
|
20781
|
+
format: 'date-time',
|
|
20782
|
+
type: 'string',
|
|
20783
|
+
},
|
|
20784
|
+
customer_key: {
|
|
20785
|
+
description: 'The customer key associated with the device, if any.',
|
|
20786
|
+
type: 'string',
|
|
20787
|
+
},
|
|
20788
|
+
device_custom_metadata: {
|
|
20789
|
+
additionalProperties: {
|
|
20790
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
20791
|
+
},
|
|
20792
|
+
description: 'Custom metadata of the device, present when device_id is provided.',
|
|
20793
|
+
type: 'object',
|
|
20794
|
+
},
|
|
20795
|
+
device_id: {
|
|
20796
|
+
description: 'ID of the affected device.',
|
|
20797
|
+
format: 'uuid',
|
|
20798
|
+
type: 'string',
|
|
20799
|
+
},
|
|
20800
|
+
event_id: {
|
|
20801
|
+
description: 'ID of the event.',
|
|
20802
|
+
format: 'uuid',
|
|
20803
|
+
type: 'string',
|
|
20804
|
+
},
|
|
20805
|
+
event_type: { enum: ['camera.activated'], type: 'string' },
|
|
20806
|
+
motion_sub_type: {
|
|
20807
|
+
description: 'Sub-type of motion detected, if available.',
|
|
20808
|
+
enum: ['human', 'vehicle', 'package', 'other'],
|
|
20809
|
+
type: 'string',
|
|
20810
|
+
},
|
|
20811
|
+
occurred_at: {
|
|
20812
|
+
description: 'Date and time at which the event occurred.',
|
|
20813
|
+
format: 'date-time',
|
|
20814
|
+
type: 'string',
|
|
20815
|
+
},
|
|
20816
|
+
workspace_id: {
|
|
20817
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
|
|
20818
|
+
format: 'uuid',
|
|
20819
|
+
type: 'string',
|
|
20820
|
+
},
|
|
20821
|
+
},
|
|
20822
|
+
required: [
|
|
20823
|
+
'event_id',
|
|
20824
|
+
'workspace_id',
|
|
20825
|
+
'created_at',
|
|
20826
|
+
'occurred_at',
|
|
20827
|
+
'device_id',
|
|
20828
|
+
'connected_account_id',
|
|
20829
|
+
'event_type',
|
|
20830
|
+
'activation_reason',
|
|
20831
|
+
],
|
|
20832
|
+
type: 'object',
|
|
20833
|
+
'x-route-path': '/devices',
|
|
20834
|
+
},
|
|
20835
|
+
{
|
|
20836
|
+
description: 'A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).',
|
|
20837
|
+
properties: {
|
|
20838
|
+
connected_account_custom_metadata: {
|
|
20839
|
+
additionalProperties: {
|
|
20840
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
20841
|
+
},
|
|
20842
|
+
description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
20843
|
+
type: 'object',
|
|
20844
|
+
},
|
|
20845
|
+
connected_account_id: {
|
|
20846
|
+
description: 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
|
|
20847
|
+
format: 'uuid',
|
|
20848
|
+
type: 'string',
|
|
20849
|
+
},
|
|
20850
|
+
created_at: {
|
|
20851
|
+
description: 'Date and time at which the event was created.',
|
|
20852
|
+
format: 'date-time',
|
|
20853
|
+
type: 'string',
|
|
20854
|
+
},
|
|
20855
|
+
customer_key: {
|
|
20856
|
+
description: 'The customer key associated with the device, if any.',
|
|
20857
|
+
type: 'string',
|
|
20858
|
+
},
|
|
20859
|
+
device_custom_metadata: {
|
|
20860
|
+
additionalProperties: {
|
|
20861
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
20862
|
+
},
|
|
20863
|
+
description: 'Custom metadata of the device, present when device_id is provided.',
|
|
20864
|
+
type: 'object',
|
|
20865
|
+
},
|
|
20866
|
+
device_id: {
|
|
20867
|
+
description: 'ID of the affected device.',
|
|
20868
|
+
format: 'uuid',
|
|
20869
|
+
type: 'string',
|
|
20870
|
+
},
|
|
20871
|
+
event_id: {
|
|
20872
|
+
description: 'ID of the event.',
|
|
20873
|
+
format: 'uuid',
|
|
20874
|
+
type: 'string',
|
|
20875
|
+
},
|
|
20876
|
+
event_type: { enum: ['device.doorbell_rang'], type: 'string' },
|
|
20877
|
+
occurred_at: {
|
|
20878
|
+
description: 'Date and time at which the event occurred.',
|
|
20879
|
+
format: 'date-time',
|
|
20880
|
+
type: 'string',
|
|
20881
|
+
},
|
|
20882
|
+
workspace_id: {
|
|
20883
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
|
|
20884
|
+
format: 'uuid',
|
|
20885
|
+
type: 'string',
|
|
20886
|
+
},
|
|
20887
|
+
},
|
|
20888
|
+
required: [
|
|
20889
|
+
'event_id',
|
|
20890
|
+
'workspace_id',
|
|
20891
|
+
'created_at',
|
|
20892
|
+
'occurred_at',
|
|
20893
|
+
'device_id',
|
|
20894
|
+
'connected_account_id',
|
|
20895
|
+
'event_type',
|
|
20896
|
+
],
|
|
20897
|
+
type: 'object',
|
|
20898
|
+
'x-route-path': '/devices',
|
|
20899
|
+
},
|
|
20759
20900
|
{
|
|
20760
20901
|
description: 'An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.',
|
|
20761
20902
|
properties: {
|
|
@@ -50083,6 +50224,8 @@ export default {
|
|
|
50083
50224
|
'thermostat.temperature_reached_set_point',
|
|
50084
50225
|
'thermostat.temperature_changed',
|
|
50085
50226
|
'device.name_changed',
|
|
50227
|
+
'camera.activated',
|
|
50228
|
+
'device.doorbell_rang',
|
|
50086
50229
|
'enrollment_automation.deleted',
|
|
50087
50230
|
'phone.deactivated',
|
|
50088
50231
|
'space.device_membership_changed',
|
|
@@ -50195,6 +50338,8 @@ export default {
|
|
|
50195
50338
|
'thermostat.temperature_reached_set_point',
|
|
50196
50339
|
'thermostat.temperature_changed',
|
|
50197
50340
|
'device.name_changed',
|
|
50341
|
+
'camera.activated',
|
|
50342
|
+
'device.doorbell_rang',
|
|
50198
50343
|
'enrollment_automation.deleted',
|
|
50199
50344
|
'phone.deactivated',
|
|
50200
50345
|
'space.device_membership_changed',
|
|
@@ -50607,6 +50752,8 @@ export default {
|
|
|
50607
50752
|
'thermostat.temperature_reached_set_point',
|
|
50608
50753
|
'thermostat.temperature_changed',
|
|
50609
50754
|
'device.name_changed',
|
|
50755
|
+
'camera.activated',
|
|
50756
|
+
'device.doorbell_rang',
|
|
50610
50757
|
'enrollment_automation.deleted',
|
|
50611
50758
|
'phone.deactivated',
|
|
50612
50759
|
'space.device_membership_changed',
|
|
@@ -50715,6 +50862,8 @@ export default {
|
|
|
50715
50862
|
'thermostat.temperature_reached_set_point',
|
|
50716
50863
|
'thermostat.temperature_changed',
|
|
50717
50864
|
'device.name_changed',
|
|
50865
|
+
'camera.activated',
|
|
50866
|
+
'device.doorbell_rang',
|
|
50718
50867
|
'enrollment_automation.deleted',
|
|
50719
50868
|
'phone.deactivated',
|
|
50720
50869
|
'space.device_membership_changed',
|
|
@@ -59566,6 +59715,8 @@ export default {
|
|
|
59566
59715
|
'thermostat.temperature_reached_set_point',
|
|
59567
59716
|
'thermostat.temperature_changed',
|
|
59568
59717
|
'device.name_changed',
|
|
59718
|
+
'camera.activated',
|
|
59719
|
+
'device.doorbell_rang',
|
|
59569
59720
|
'enrollment_automation.deleted',
|
|
59570
59721
|
'phone.deactivated',
|
|
59571
59722
|
'space.device_membership_changed',
|
|
@@ -59679,6 +59830,8 @@ export default {
|
|
|
59679
59830
|
'thermostat.temperature_reached_set_point',
|
|
59680
59831
|
'thermostat.temperature_changed',
|
|
59681
59832
|
'device.name_changed',
|
|
59833
|
+
'camera.activated',
|
|
59834
|
+
'device.doorbell_rang',
|
|
59682
59835
|
'enrollment_automation.deleted',
|
|
59683
59836
|
'phone.deactivated',
|
|
59684
59837
|
'space.device_membership_changed',
|
|
@@ -59853,6 +60006,8 @@ export default {
|
|
|
59853
60006
|
'thermostat.temperature_reached_set_point',
|
|
59854
60007
|
'thermostat.temperature_changed',
|
|
59855
60008
|
'device.name_changed',
|
|
60009
|
+
'camera.activated',
|
|
60010
|
+
'device.doorbell_rang',
|
|
59856
60011
|
'enrollment_automation.deleted',
|
|
59857
60012
|
'phone.deactivated',
|
|
59858
60013
|
'space.device_membership_changed',
|
|
@@ -59961,6 +60116,8 @@ export default {
|
|
|
59961
60116
|
'thermostat.temperature_reached_set_point',
|
|
59962
60117
|
'thermostat.temperature_changed',
|
|
59963
60118
|
'device.name_changed',
|
|
60119
|
+
'camera.activated',
|
|
60120
|
+
'device.doorbell_rang',
|
|
59964
60121
|
'enrollment_automation.deleted',
|
|
59965
60122
|
'phone.deactivated',
|
|
59966
60123
|
'space.device_membership_changed',
|