@seamapi/http 2.37.0 → 2.39.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.
Files changed (46) hide show
  1. package/lib/resources/access-grant.d.ts +17 -2
  2. package/lib/resources/access-method.d.ts +31 -1
  3. package/lib/resources/acs-entrance.d.ts +6 -2
  4. package/lib/resources/acs-system.d.ts +15 -0
  5. package/lib/resources/action-attempt.d.ts +396 -8
  6. package/lib/resources/connect-webview.d.ts +1 -1
  7. package/lib/resources/connected-account.d.ts +1 -1
  8. package/lib/resources/device-provider.d.ts +17 -1
  9. package/lib/resources/device.d.ts +112 -1
  10. package/lib/resources/phone.d.ts +702 -10
  11. package/lib/resources/unmanaged-access-grant.d.ts +17 -2
  12. package/lib/resources/unmanaged-access-method.d.ts +31 -1
  13. package/lib/resources/unmanaged-device.d.ts +17 -1
  14. package/lib/routes/connect-webviews/connect-webviews.d.ts +2 -2
  15. package/lib/routes/connected-accounts/connected-accounts.d.ts +1 -1
  16. package/lib/routes/customers/customers.d.ts +13 -0
  17. package/lib/routes/customers/customers.js +1 -0
  18. package/lib/routes/customers/customers.js.map +1 -1
  19. package/lib/routes/devices/devices.d.ts +3 -3
  20. package/lib/routes/devices/unmanaged/unmanaged.d.ts +3 -3
  21. package/lib/routes/seam-http-endpoints.d.ts +1 -0
  22. package/lib/routes/seam-http-endpoints.js +1 -0
  23. package/lib/routes/seam-http-endpoints.js.map +1 -1
  24. package/lib/version.d.ts +1 -1
  25. package/lib/version.js +1 -1
  26. package/package.json +2 -2
  27. package/src/lib/resources/access-grant.ts +41 -23
  28. package/src/lib/resources/access-method.ts +53 -17
  29. package/src/lib/resources/acs-entrance.ts +17 -12
  30. package/src/lib/resources/acs-system.ts +18 -0
  31. package/src/lib/resources/action-attempt.ts +503 -25
  32. package/src/lib/resources/connect-webview.ts +6 -1
  33. package/src/lib/resources/connected-account.ts +6 -1
  34. package/src/lib/resources/device-provider.ts +17 -0
  35. package/src/lib/resources/device.ts +127 -0
  36. package/src/lib/resources/phone.ts +855 -22
  37. package/src/lib/resources/unmanaged-access-grant.ts +41 -23
  38. package/src/lib/resources/unmanaged-access-method.ts +53 -17
  39. package/src/lib/resources/unmanaged-device.ts +17 -0
  40. package/src/lib/routes/connect-webviews/connect-webviews.ts +7 -1
  41. package/src/lib/routes/connected-accounts/connected-accounts.ts +6 -1
  42. package/src/lib/routes/customers/customers.ts +13 -0
  43. package/src/lib/routes/devices/devices.ts +3 -0
  44. package/src/lib/routes/devices/unmanaged/unmanaged.ts +3 -0
  45. package/src/lib/routes/seam-http-endpoints.ts +1 -0
  46. package/src/lib/version.ts +1 -1
@@ -22,6 +22,18 @@ export type Device = {
22
22
  * Indicates whether the thermostat supports simultaneous heating and cooling.
23
23
  */
24
24
  can_hvac_heat_cool?: boolean | undefined;
25
+ /**
26
+ * Indicates whether the speaker supports muting and unmuting.
27
+ */
28
+ can_mute_speaker?: boolean | undefined;
29
+ /**
30
+ * Indicates whether the speaker supports pausing and resuming playback.
31
+ */
32
+ can_pause_speaker_playback?: boolean | undefined;
33
+ /**
34
+ * Indicates whether the speaker supports playing a chime.
35
+ */
36
+ can_play_speaker_chime?: boolean | undefined;
25
37
  /**
26
38
  * Indicates whether the device supports programming offline access codes.
27
39
  */
@@ -54,6 +66,10 @@ export type Device = {
54
66
  * Indicates whether the thermostat supports running climate programs.
55
67
  */
56
68
  can_run_thermostat_programs?: boolean | undefined;
69
+ /**
70
+ * Indicates whether the speaker supports setting its volume.
71
+ */
72
+ can_set_speaker_volume?: boolean | undefined;
57
73
  /**
58
74
  * Indicates whether the device supports simulating connection in a sandbox.
59
75
  */
@@ -151,7 +167,7 @@ export type Device = {
151
167
  /**
152
168
  * Type of the device.
153
169
  */
154
- device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' | 'ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera';
170
+ device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' | 'keynest_key' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' | 'ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'sonos_speaker';
155
171
  /**
156
172
  * Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
157
173
  */
@@ -1591,6 +1607,39 @@ export type Device = {
1591
1607
  */
1592
1608
  model?: string | undefined;
1593
1609
  } | undefined;
1610
+ /**
1611
+ * Metadata for a Sonos speaker.
1612
+ */
1613
+ sonos_metadata?: {
1614
+ /**
1615
+ * Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1616
+ */
1617
+ bonded_member_models?: Array<string> | undefined;
1618
+ /**
1619
+ * Color of the speaker, as reported by Sonos.
1620
+ */
1621
+ color?: string | undefined;
1622
+ /**
1623
+ * ID of the Sonos household that the speaker belongs to.
1624
+ */
1625
+ household_id?: string | undefined;
1626
+ /**
1627
+ * Model name of the speaker, as reported by Sonos.
1628
+ */
1629
+ model_display_name?: string | undefined;
1630
+ /**
1631
+ * ID of the Sonos player for the speaker.
1632
+ */
1633
+ player_id?: string | undefined;
1634
+ /**
1635
+ * Name of the speaker, as set in the Sonos app.
1636
+ */
1637
+ player_name?: string | undefined;
1638
+ /**
1639
+ * Software version running on the speaker.
1640
+ */
1641
+ software_version?: string | undefined;
1642
+ } | undefined;
1594
1643
  /**
1595
1644
  * Metadata for a tado° device.
1596
1645
  */
@@ -1977,6 +2026,68 @@ export type Device = {
1977
2026
  */
1978
2027
  time_zone?: string | undefined;
1979
2028
  }> | undefined;
2029
+ /**
2030
+ * Audio state and capabilities of the speaker.
2031
+ */
2032
+ speaker?: {
2033
+ /**
2034
+ * IDs of the other speakers that are currently grouped with this speaker. Pausing or resuming playback on a speaker also affects the speakers in its group.
2035
+ */
2036
+ grouped_with_device_ids: Array<string>;
2037
+ /**
2038
+ * Indicates whether the speaker's volume is fixed, for example, because the speaker's line-out level is controlled by an external amplifier. A speaker with a fixed volume cannot have its volume set through Seam.
2039
+ */
2040
+ has_fixed_volume: boolean;
2041
+ /**
2042
+ * Indicates whether the speaker is muted.
2043
+ */
2044
+ is_muted: boolean;
2045
+ /**
2046
+ * Maximum volume that you can set on the speaker. This is the ceiling of the speaker's native volume scale, not a limit configured for guests.
2047
+ */
2048
+ max_volume: number;
2049
+ /**
2050
+ * Minimum volume that you can set on the speaker.
2051
+ */
2052
+ min_volume: number;
2053
+ /**
2054
+ * Content that is currently playing on the speaker.
2055
+ */
2056
+ now_playing?: {
2057
+ /**
2058
+ * Album of the content that is currently playing.
2059
+ */
2060
+ album?: string | undefined;
2061
+ /**
2062
+ * Artist of the content that is currently playing.
2063
+ */
2064
+ artist?: string | undefined;
2065
+ /**
2066
+ * Title of the content that is currently playing.
2067
+ */
2068
+ title?: string | undefined;
2069
+ } | undefined;
2070
+ /**
2071
+ * Playback state of the speaker.
2072
+ */
2073
+ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown';
2074
+ /**
2075
+ * Indicates whether the speaker can play a chime.
2076
+ */
2077
+ supports_chime: boolean;
2078
+ /**
2079
+ * Current volume of the speaker, on the speaker's native volume scale from `min_volume` to `max_volume`. This is the native volume setting, not a decibel level.
2080
+ */
2081
+ volume: number;
2082
+ /**
2083
+ * Date and time at which the speaker first reported its current volume.
2084
+ */
2085
+ volume_reported_at?: string | undefined;
2086
+ /**
2087
+ * Increment between the volume values that you can set on the speaker.
2088
+ */
2089
+ volume_step: number;
2090
+ } | undefined;
1980
2091
  /**
1981
2092
  * Supported code lengths for access codes.
1982
2093
  */