@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
|
@@ -42457,6 +42457,70 @@ export type Routes = {
|
|
|
42457
42457
|
/** The new name of the affected device. */
|
|
42458
42458
|
device_name: string
|
|
42459
42459
|
}
|
|
42460
|
+
| {
|
|
42461
|
+
/** ID of the event. */
|
|
42462
|
+
event_id: string
|
|
42463
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
42464
|
+
workspace_id: string
|
|
42465
|
+
/** Date and time at which the event was created. */
|
|
42466
|
+
created_at: string
|
|
42467
|
+
/** Date and time at which the event occurred. */
|
|
42468
|
+
occurred_at: string
|
|
42469
|
+
/** ID of the affected device. */
|
|
42470
|
+
device_id: string
|
|
42471
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
42472
|
+
connected_account_id: string
|
|
42473
|
+
/** The customer key associated with the device, if any. */
|
|
42474
|
+
customer_key?: string | undefined
|
|
42475
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
42476
|
+
device_custom_metadata?:
|
|
42477
|
+
| {
|
|
42478
|
+
[x: string]: string | boolean
|
|
42479
|
+
}
|
|
42480
|
+
| undefined
|
|
42481
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
42482
|
+
connected_account_custom_metadata?:
|
|
42483
|
+
| {
|
|
42484
|
+
[x: string]: string | boolean
|
|
42485
|
+
}
|
|
42486
|
+
| undefined
|
|
42487
|
+
event_type: 'camera.activated'
|
|
42488
|
+
/** The reason the camera was activated. */
|
|
42489
|
+
activation_reason: 'motion_detected'
|
|
42490
|
+
/** Sub-type of motion detected, if available. */
|
|
42491
|
+
motion_sub_type?:
|
|
42492
|
+
| ('human' | 'vehicle' | 'package' | 'other')
|
|
42493
|
+
| undefined
|
|
42494
|
+
}
|
|
42495
|
+
| {
|
|
42496
|
+
/** ID of the event. */
|
|
42497
|
+
event_id: string
|
|
42498
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
42499
|
+
workspace_id: string
|
|
42500
|
+
/** Date and time at which the event was created. */
|
|
42501
|
+
created_at: string
|
|
42502
|
+
/** Date and time at which the event occurred. */
|
|
42503
|
+
occurred_at: string
|
|
42504
|
+
/** ID of the affected device. */
|
|
42505
|
+
device_id: string
|
|
42506
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
42507
|
+
connected_account_id: string
|
|
42508
|
+
/** The customer key associated with the device, if any. */
|
|
42509
|
+
customer_key?: string | undefined
|
|
42510
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
42511
|
+
device_custom_metadata?:
|
|
42512
|
+
| {
|
|
42513
|
+
[x: string]: string | boolean
|
|
42514
|
+
}
|
|
42515
|
+
| undefined
|
|
42516
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
42517
|
+
connected_account_custom_metadata?:
|
|
42518
|
+
| {
|
|
42519
|
+
[x: string]: string | boolean
|
|
42520
|
+
}
|
|
42521
|
+
| undefined
|
|
42522
|
+
event_type: 'device.doorbell_rang'
|
|
42523
|
+
}
|
|
42460
42524
|
| {
|
|
42461
42525
|
/** ID of the event. */
|
|
42462
42526
|
event_id: string
|
|
@@ -42680,6 +42744,8 @@ export type Routes = {
|
|
|
42680
42744
|
| 'thermostat.temperature_reached_set_point'
|
|
42681
42745
|
| 'thermostat.temperature_changed'
|
|
42682
42746
|
| 'device.name_changed'
|
|
42747
|
+
| 'camera.activated'
|
|
42748
|
+
| 'device.doorbell_rang'
|
|
42683
42749
|
| 'enrollment_automation.deleted'
|
|
42684
42750
|
| 'phone.deactivated'
|
|
42685
42751
|
| 'space.device_membership_changed'
|
|
@@ -42786,6 +42852,8 @@ export type Routes = {
|
|
|
42786
42852
|
| 'thermostat.temperature_reached_set_point'
|
|
42787
42853
|
| 'thermostat.temperature_changed'
|
|
42788
42854
|
| 'device.name_changed'
|
|
42855
|
+
| 'camera.activated'
|
|
42856
|
+
| 'device.doorbell_rang'
|
|
42789
42857
|
| 'enrollment_automation.deleted'
|
|
42790
42858
|
| 'phone.deactivated'
|
|
42791
42859
|
| 'space.device_membership_changed'
|
|
@@ -45770,6 +45838,70 @@ export type Routes = {
|
|
|
45770
45838
|
/** The new name of the affected device. */
|
|
45771
45839
|
device_name: string
|
|
45772
45840
|
}
|
|
45841
|
+
| {
|
|
45842
|
+
/** ID of the event. */
|
|
45843
|
+
event_id: string
|
|
45844
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
45845
|
+
workspace_id: string
|
|
45846
|
+
/** Date and time at which the event was created. */
|
|
45847
|
+
created_at: string
|
|
45848
|
+
/** Date and time at which the event occurred. */
|
|
45849
|
+
occurred_at: string
|
|
45850
|
+
/** ID of the affected device. */
|
|
45851
|
+
device_id: string
|
|
45852
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
45853
|
+
connected_account_id: string
|
|
45854
|
+
/** The customer key associated with the device, if any. */
|
|
45855
|
+
customer_key?: string | undefined
|
|
45856
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
45857
|
+
device_custom_metadata?:
|
|
45858
|
+
| {
|
|
45859
|
+
[x: string]: string | boolean
|
|
45860
|
+
}
|
|
45861
|
+
| undefined
|
|
45862
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
45863
|
+
connected_account_custom_metadata?:
|
|
45864
|
+
| {
|
|
45865
|
+
[x: string]: string | boolean
|
|
45866
|
+
}
|
|
45867
|
+
| undefined
|
|
45868
|
+
event_type: 'camera.activated'
|
|
45869
|
+
/** The reason the camera was activated. */
|
|
45870
|
+
activation_reason: 'motion_detected'
|
|
45871
|
+
/** Sub-type of motion detected, if available. */
|
|
45872
|
+
motion_sub_type?:
|
|
45873
|
+
| ('human' | 'vehicle' | 'package' | 'other')
|
|
45874
|
+
| undefined
|
|
45875
|
+
}
|
|
45876
|
+
| {
|
|
45877
|
+
/** ID of the event. */
|
|
45878
|
+
event_id: string
|
|
45879
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
45880
|
+
workspace_id: string
|
|
45881
|
+
/** Date and time at which the event was created. */
|
|
45882
|
+
created_at: string
|
|
45883
|
+
/** Date and time at which the event occurred. */
|
|
45884
|
+
occurred_at: string
|
|
45885
|
+
/** ID of the affected device. */
|
|
45886
|
+
device_id: string
|
|
45887
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
45888
|
+
connected_account_id: string
|
|
45889
|
+
/** The customer key associated with the device, if any. */
|
|
45890
|
+
customer_key?: string | undefined
|
|
45891
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
45892
|
+
device_custom_metadata?:
|
|
45893
|
+
| {
|
|
45894
|
+
[x: string]: string | boolean
|
|
45895
|
+
}
|
|
45896
|
+
| undefined
|
|
45897
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
45898
|
+
connected_account_custom_metadata?:
|
|
45899
|
+
| {
|
|
45900
|
+
[x: string]: string | boolean
|
|
45901
|
+
}
|
|
45902
|
+
| undefined
|
|
45903
|
+
event_type: 'device.doorbell_rang'
|
|
45904
|
+
}
|
|
45773
45905
|
| {
|
|
45774
45906
|
/** ID of the event. */
|
|
45775
45907
|
event_id: string
|
|
@@ -69881,6 +70013,8 @@ export type Routes = {
|
|
|
69881
70013
|
| 'thermostat.temperature_reached_set_point'
|
|
69882
70014
|
| 'thermostat.temperature_changed'
|
|
69883
70015
|
| 'device.name_changed'
|
|
70016
|
+
| 'camera.activated'
|
|
70017
|
+
| 'device.doorbell_rang'
|
|
69884
70018
|
| 'enrollment_automation.deleted'
|
|
69885
70019
|
| 'phone.deactivated'
|
|
69886
70020
|
| 'space.device_membership_changed'
|
|
@@ -69987,6 +70121,8 @@ export type Routes = {
|
|
|
69987
70121
|
| 'thermostat.temperature_reached_set_point'
|
|
69988
70122
|
| 'thermostat.temperature_changed'
|
|
69989
70123
|
| 'device.name_changed'
|
|
70124
|
+
| 'camera.activated'
|
|
70125
|
+
| 'device.doorbell_rang'
|
|
69990
70126
|
| 'enrollment_automation.deleted'
|
|
69991
70127
|
| 'phone.deactivated'
|
|
69992
70128
|
| 'space.device_membership_changed'
|
|
@@ -72941,6 +73077,70 @@ export type Routes = {
|
|
|
72941
73077
|
/** The new name of the affected device. */
|
|
72942
73078
|
device_name: string
|
|
72943
73079
|
}
|
|
73080
|
+
| {
|
|
73081
|
+
/** ID of the event. */
|
|
73082
|
+
event_id: string
|
|
73083
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
73084
|
+
workspace_id: string
|
|
73085
|
+
/** Date and time at which the event was created. */
|
|
73086
|
+
created_at: string
|
|
73087
|
+
/** Date and time at which the event occurred. */
|
|
73088
|
+
occurred_at: string
|
|
73089
|
+
/** ID of the affected device. */
|
|
73090
|
+
device_id: string
|
|
73091
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
73092
|
+
connected_account_id: string
|
|
73093
|
+
/** The customer key associated with the device, if any. */
|
|
73094
|
+
customer_key?: string | undefined
|
|
73095
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
73096
|
+
device_custom_metadata?:
|
|
73097
|
+
| {
|
|
73098
|
+
[x: string]: string | boolean
|
|
73099
|
+
}
|
|
73100
|
+
| undefined
|
|
73101
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
73102
|
+
connected_account_custom_metadata?:
|
|
73103
|
+
| {
|
|
73104
|
+
[x: string]: string | boolean
|
|
73105
|
+
}
|
|
73106
|
+
| undefined
|
|
73107
|
+
event_type: 'camera.activated'
|
|
73108
|
+
/** The reason the camera was activated. */
|
|
73109
|
+
activation_reason: 'motion_detected'
|
|
73110
|
+
/** Sub-type of motion detected, if available. */
|
|
73111
|
+
motion_sub_type?:
|
|
73112
|
+
| ('human' | 'vehicle' | 'package' | 'other')
|
|
73113
|
+
| undefined
|
|
73114
|
+
}
|
|
73115
|
+
| {
|
|
73116
|
+
/** ID of the event. */
|
|
73117
|
+
event_id: string
|
|
73118
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
73119
|
+
workspace_id: string
|
|
73120
|
+
/** Date and time at which the event was created. */
|
|
73121
|
+
created_at: string
|
|
73122
|
+
/** Date and time at which the event occurred. */
|
|
73123
|
+
occurred_at: string
|
|
73124
|
+
/** ID of the affected device. */
|
|
73125
|
+
device_id: string
|
|
73126
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
73127
|
+
connected_account_id: string
|
|
73128
|
+
/** The customer key associated with the device, if any. */
|
|
73129
|
+
customer_key?: string | undefined
|
|
73130
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
73131
|
+
device_custom_metadata?:
|
|
73132
|
+
| {
|
|
73133
|
+
[x: string]: string | boolean
|
|
73134
|
+
}
|
|
73135
|
+
| undefined
|
|
73136
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
73137
|
+
connected_account_custom_metadata?:
|
|
73138
|
+
| {
|
|
73139
|
+
[x: string]: string | boolean
|
|
73140
|
+
}
|
|
73141
|
+
| undefined
|
|
73142
|
+
event_type: 'device.doorbell_rang'
|
|
73143
|
+
}
|
|
72944
73144
|
| {
|
|
72945
73145
|
/** ID of the event. */
|
|
72946
73146
|
event_id: string
|
|
@@ -109255,6 +109455,70 @@ export type Routes = {
|
|
|
109255
109455
|
/** The new name of the affected device. */
|
|
109256
109456
|
device_name: string
|
|
109257
109457
|
}
|
|
109458
|
+
| {
|
|
109459
|
+
/** ID of the event. */
|
|
109460
|
+
event_id: string
|
|
109461
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
109462
|
+
workspace_id: string
|
|
109463
|
+
/** Date and time at which the event was created. */
|
|
109464
|
+
created_at: string
|
|
109465
|
+
/** Date and time at which the event occurred. */
|
|
109466
|
+
occurred_at: string
|
|
109467
|
+
/** ID of the affected device. */
|
|
109468
|
+
device_id: string
|
|
109469
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
109470
|
+
connected_account_id: string
|
|
109471
|
+
/** The customer key associated with the device, if any. */
|
|
109472
|
+
customer_key?: string | undefined
|
|
109473
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
109474
|
+
device_custom_metadata?:
|
|
109475
|
+
| {
|
|
109476
|
+
[x: string]: string | boolean
|
|
109477
|
+
}
|
|
109478
|
+
| undefined
|
|
109479
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
109480
|
+
connected_account_custom_metadata?:
|
|
109481
|
+
| {
|
|
109482
|
+
[x: string]: string | boolean
|
|
109483
|
+
}
|
|
109484
|
+
| undefined
|
|
109485
|
+
event_type: 'camera.activated'
|
|
109486
|
+
/** The reason the camera was activated. */
|
|
109487
|
+
activation_reason: 'motion_detected'
|
|
109488
|
+
/** Sub-type of motion detected, if available. */
|
|
109489
|
+
motion_sub_type?:
|
|
109490
|
+
| ('human' | 'vehicle' | 'package' | 'other')
|
|
109491
|
+
| undefined
|
|
109492
|
+
}
|
|
109493
|
+
| {
|
|
109494
|
+
/** ID of the event. */
|
|
109495
|
+
event_id: string
|
|
109496
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
|
|
109497
|
+
workspace_id: string
|
|
109498
|
+
/** Date and time at which the event was created. */
|
|
109499
|
+
created_at: string
|
|
109500
|
+
/** Date and time at which the event occurred. */
|
|
109501
|
+
occurred_at: string
|
|
109502
|
+
/** ID of the affected device. */
|
|
109503
|
+
device_id: string
|
|
109504
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
|
|
109505
|
+
connected_account_id: string
|
|
109506
|
+
/** The customer key associated with the device, if any. */
|
|
109507
|
+
customer_key?: string | undefined
|
|
109508
|
+
/** Custom metadata of the device, present when device_id is provided. */
|
|
109509
|
+
device_custom_metadata?:
|
|
109510
|
+
| {
|
|
109511
|
+
[x: string]: string | boolean
|
|
109512
|
+
}
|
|
109513
|
+
| undefined
|
|
109514
|
+
/** Custom metadata of the connected account, present when connected_account_id is provided. */
|
|
109515
|
+
connected_account_custom_metadata?:
|
|
109516
|
+
| {
|
|
109517
|
+
[x: string]: string | boolean
|
|
109518
|
+
}
|
|
109519
|
+
| undefined
|
|
109520
|
+
event_type: 'device.doorbell_rang'
|
|
109521
|
+
}
|
|
109258
109522
|
| {
|
|
109259
109523
|
/** ID of the event. */
|
|
109260
109524
|
event_id: string
|