@seamapi/http 2.40.0 → 2.41.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.
@@ -1851,331 +1851,6 @@ export type ActionAttempt = {
1851
1851
  */
1852
1852
  result: null;
1853
1853
  status: 'error';
1854
- } | {
1855
- /**
1856
- * ID of the action attempt.
1857
- */
1858
- action_attempt_id: string;
1859
- /**
1860
- * Action attempt to track the status of setting the volume on a speaker.
1861
- */
1862
- action_type: 'SET_SPEAKER_VOLUME';
1863
- /**
1864
- * Error associated with the action.
1865
- */
1866
- error: null;
1867
- /**
1868
- * Result of the action.
1869
- */
1870
- result: {};
1871
- status: 'success';
1872
- } | {
1873
- /**
1874
- * ID of the action attempt.
1875
- */
1876
- action_attempt_id: string;
1877
- /**
1878
- * Action attempt to track the status of setting the volume on a speaker.
1879
- */
1880
- action_type: 'SET_SPEAKER_VOLUME';
1881
- /**
1882
- * Error associated with the action.
1883
- */
1884
- error: null;
1885
- /**
1886
- * Result of the action.
1887
- */
1888
- result: null;
1889
- status: 'pending';
1890
- } | {
1891
- /**
1892
- * ID of the action attempt.
1893
- */
1894
- action_attempt_id: string;
1895
- /**
1896
- * Action attempt to track the status of setting the volume on a speaker.
1897
- */
1898
- action_type: 'SET_SPEAKER_VOLUME';
1899
- /**
1900
- * Error associated with the action.
1901
- */
1902
- error: {
1903
- /**
1904
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1905
- */
1906
- message: string;
1907
- /**
1908
- * Type of the error.
1909
- */
1910
- type: string;
1911
- };
1912
- /**
1913
- * Result of the action.
1914
- */
1915
- result: null;
1916
- status: 'error';
1917
- } | {
1918
- /**
1919
- * ID of the action attempt.
1920
- */
1921
- action_attempt_id: string;
1922
- /**
1923
- * Action attempt to track the status of muting or unmuting a speaker.
1924
- */
1925
- action_type: 'SET_SPEAKER_MUTE';
1926
- /**
1927
- * Error associated with the action.
1928
- */
1929
- error: null;
1930
- /**
1931
- * Result of the action.
1932
- */
1933
- result: {};
1934
- status: 'success';
1935
- } | {
1936
- /**
1937
- * ID of the action attempt.
1938
- */
1939
- action_attempt_id: string;
1940
- /**
1941
- * Action attempt to track the status of muting or unmuting a speaker.
1942
- */
1943
- action_type: 'SET_SPEAKER_MUTE';
1944
- /**
1945
- * Error associated with the action.
1946
- */
1947
- error: null;
1948
- /**
1949
- * Result of the action.
1950
- */
1951
- result: null;
1952
- status: 'pending';
1953
- } | {
1954
- /**
1955
- * ID of the action attempt.
1956
- */
1957
- action_attempt_id: string;
1958
- /**
1959
- * Action attempt to track the status of muting or unmuting a speaker.
1960
- */
1961
- action_type: 'SET_SPEAKER_MUTE';
1962
- /**
1963
- * Error associated with the action.
1964
- */
1965
- error: {
1966
- /**
1967
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
1968
- */
1969
- message: string;
1970
- /**
1971
- * Type of the error.
1972
- */
1973
- type: string;
1974
- };
1975
- /**
1976
- * Result of the action.
1977
- */
1978
- result: null;
1979
- status: 'error';
1980
- } | {
1981
- /**
1982
- * ID of the action attempt.
1983
- */
1984
- action_attempt_id: string;
1985
- /**
1986
- * Action attempt to track the status of pausing playback on a speaker.
1987
- */
1988
- action_type: 'PAUSE_SPEAKER_PLAYBACK';
1989
- /**
1990
- * Error associated with the action.
1991
- */
1992
- error: null;
1993
- /**
1994
- * Result of the action.
1995
- */
1996
- result: {
1997
- /**
1998
- * IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.
1999
- */
2000
- affected_device_ids: Array<string>;
2001
- };
2002
- status: 'success';
2003
- } | {
2004
- /**
2005
- * ID of the action attempt.
2006
- */
2007
- action_attempt_id: string;
2008
- /**
2009
- * Action attempt to track the status of pausing playback on a speaker.
2010
- */
2011
- action_type: 'PAUSE_SPEAKER_PLAYBACK';
2012
- /**
2013
- * Error associated with the action.
2014
- */
2015
- error: null;
2016
- /**
2017
- * Result of the action.
2018
- */
2019
- result: null;
2020
- status: 'pending';
2021
- } | {
2022
- /**
2023
- * ID of the action attempt.
2024
- */
2025
- action_attempt_id: string;
2026
- /**
2027
- * Action attempt to track the status of pausing playback on a speaker.
2028
- */
2029
- action_type: 'PAUSE_SPEAKER_PLAYBACK';
2030
- /**
2031
- * Error associated with the action.
2032
- */
2033
- error: {
2034
- /**
2035
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2036
- */
2037
- message: string;
2038
- /**
2039
- * Type of the error.
2040
- */
2041
- type: string;
2042
- };
2043
- /**
2044
- * Result of the action.
2045
- */
2046
- result: null;
2047
- status: 'error';
2048
- } | {
2049
- /**
2050
- * ID of the action attempt.
2051
- */
2052
- action_attempt_id: string;
2053
- /**
2054
- * Action attempt to track the status of resuming playback on a speaker.
2055
- */
2056
- action_type: 'RESUME_SPEAKER_PLAYBACK';
2057
- /**
2058
- * Error associated with the action.
2059
- */
2060
- error: null;
2061
- /**
2062
- * Result of the action.
2063
- */
2064
- result: {
2065
- /**
2066
- * IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.
2067
- */
2068
- affected_device_ids: Array<string>;
2069
- };
2070
- status: 'success';
2071
- } | {
2072
- /**
2073
- * ID of the action attempt.
2074
- */
2075
- action_attempt_id: string;
2076
- /**
2077
- * Action attempt to track the status of resuming playback on a speaker.
2078
- */
2079
- action_type: 'RESUME_SPEAKER_PLAYBACK';
2080
- /**
2081
- * Error associated with the action.
2082
- */
2083
- error: null;
2084
- /**
2085
- * Result of the action.
2086
- */
2087
- result: null;
2088
- status: 'pending';
2089
- } | {
2090
- /**
2091
- * ID of the action attempt.
2092
- */
2093
- action_attempt_id: string;
2094
- /**
2095
- * Action attempt to track the status of resuming playback on a speaker.
2096
- */
2097
- action_type: 'RESUME_SPEAKER_PLAYBACK';
2098
- /**
2099
- * Error associated with the action.
2100
- */
2101
- error: {
2102
- /**
2103
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2104
- */
2105
- message: string;
2106
- /**
2107
- * Type of the error.
2108
- */
2109
- type: string;
2110
- };
2111
- /**
2112
- * Result of the action.
2113
- */
2114
- result: null;
2115
- status: 'error';
2116
- } | {
2117
- /**
2118
- * ID of the action attempt.
2119
- */
2120
- action_attempt_id: string;
2121
- /**
2122
- * Action attempt to track the status of playing a chime on a speaker.
2123
- */
2124
- action_type: 'PLAY_SPEAKER_CHIME';
2125
- /**
2126
- * Error associated with the action.
2127
- */
2128
- error: null;
2129
- /**
2130
- * Result of the action.
2131
- */
2132
- result: {};
2133
- status: 'success';
2134
- } | {
2135
- /**
2136
- * ID of the action attempt.
2137
- */
2138
- action_attempt_id: string;
2139
- /**
2140
- * Action attempt to track the status of playing a chime on a speaker.
2141
- */
2142
- action_type: 'PLAY_SPEAKER_CHIME';
2143
- /**
2144
- * Error associated with the action.
2145
- */
2146
- error: null;
2147
- /**
2148
- * Result of the action.
2149
- */
2150
- result: null;
2151
- status: 'pending';
2152
- } | {
2153
- /**
2154
- * ID of the action attempt.
2155
- */
2156
- action_attempt_id: string;
2157
- /**
2158
- * Action attempt to track the status of playing a chime on a speaker.
2159
- */
2160
- action_type: 'PLAY_SPEAKER_CHIME';
2161
- /**
2162
- * Error associated with the action.
2163
- */
2164
- error: {
2165
- /**
2166
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2167
- */
2168
- message: string;
2169
- /**
2170
- * Type of the error.
2171
- */
2172
- type: string;
2173
- };
2174
- /**
2175
- * Result of the action.
2176
- */
2177
- result: null;
2178
- status: 'error';
2179
1854
  } | {
2180
1855
  /**
2181
1856
  * ID of the action attempt.
@@ -19,18 +19,6 @@ export type DeviceProvider = {
19
19
  * Indicates whether the thermostat supports simultaneous heating and cooling.
20
20
  */
21
21
  can_hvac_heat_cool?: boolean | undefined;
22
- /**
23
- * Indicates whether the speaker supports muting.
24
- */
25
- can_mute_speaker?: boolean | undefined;
26
- /**
27
- * Indicates whether the speaker supports pausing playback.
28
- */
29
- can_pause_speaker_playback?: boolean | undefined;
30
- /**
31
- * Indicates whether the speaker supports playing a chime.
32
- */
33
- can_play_speaker_chime?: boolean | undefined;
34
22
  /**
35
23
  * Indicates whether the device supports programming offline access codes.
36
24
  */
@@ -59,18 +47,10 @@ export type DeviceProvider = {
59
47
  * Indicates whether the device supports remote unlocking.
60
48
  */
61
49
  can_remotely_unlock?: boolean | undefined;
62
- /**
63
- * Indicates whether the speaker supports resuming playback.
64
- */
65
- can_resume_speaker_playback?: boolean | undefined;
66
50
  /**
67
51
  * Indicates whether the thermostat supports running climate programs.
68
52
  */
69
53
  can_run_thermostat_programs?: boolean | undefined;
70
- /**
71
- * Indicates whether the speaker supports setting its volume.
72
- */
73
- can_set_speaker_volume?: boolean | undefined;
74
54
  /**
75
55
  * Indicates whether the device supports simulating connection in a sandbox.
76
56
  */
@@ -107,10 +87,6 @@ export type DeviceProvider = {
107
87
  * Indicates whether the lock supports unlocking with an access code.
108
88
  */
109
89
  can_unlock_with_code?: boolean | undefined;
110
- /**
111
- * Indicates whether the speaker supports unmuting.
112
- */
113
- can_unmute_speaker?: boolean | undefined;
114
90
  /**
115
91
  * Name of the device provider.
116
92
  */
@@ -22,18 +22,6 @@ 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.
27
- */
28
- can_mute_speaker?: boolean | undefined;
29
- /**
30
- * Indicates whether the speaker supports pausing 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;
37
25
  /**
38
26
  * Indicates whether the device supports programming offline access codes.
39
27
  */
@@ -62,18 +50,10 @@ export type Device = {
62
50
  * Indicates whether the device supports remote unlocking.
63
51
  */
64
52
  can_remotely_unlock?: boolean | undefined;
65
- /**
66
- * Indicates whether the speaker supports resuming playback.
67
- */
68
- can_resume_speaker_playback?: boolean | undefined;
69
53
  /**
70
54
  * Indicates whether the thermostat supports running climate programs.
71
55
  */
72
56
  can_run_thermostat_programs?: boolean | undefined;
73
- /**
74
- * Indicates whether the speaker supports setting its volume.
75
- */
76
- can_set_speaker_volume?: boolean | undefined;
77
57
  /**
78
58
  * Indicates whether the device supports simulating connection in a sandbox.
79
59
  */
@@ -110,10 +90,6 @@ export type Device = {
110
90
  * Indicates whether the lock supports unlocking with an access code.
111
91
  */
112
92
  can_unlock_with_code?: boolean | undefined;
113
- /**
114
- * Indicates whether the speaker supports unmuting.
115
- */
116
- can_unmute_speaker?: boolean | undefined;
117
93
  /**
118
94
  * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).
119
95
  */
@@ -1615,39 +1591,6 @@ export type Device = {
1615
1591
  */
1616
1592
  model?: string | undefined;
1617
1593
  } | undefined;
1618
- /**
1619
- * Metadata for a Sonos speaker.
1620
- */
1621
- sonos_metadata?: {
1622
- /**
1623
- * Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1624
- */
1625
- bonded_member_models?: Array<string> | undefined;
1626
- /**
1627
- * Color of the speaker, as reported by Sonos.
1628
- */
1629
- color?: string | undefined;
1630
- /**
1631
- * ID of the Sonos household that the speaker belongs to.
1632
- */
1633
- household_id?: string | undefined;
1634
- /**
1635
- * Model name of the speaker, as reported by Sonos.
1636
- */
1637
- model_display_name?: string | undefined;
1638
- /**
1639
- * ID of the Sonos player for the speaker.
1640
- */
1641
- player_id?: string | undefined;
1642
- /**
1643
- * Name of the speaker, as set in the Sonos app.
1644
- */
1645
- player_name?: string | undefined;
1646
- /**
1647
- * Software version running on the speaker.
1648
- */
1649
- software_version?: string | undefined;
1650
- } | undefined;
1651
1594
  /**
1652
1595
  * Metadata for a tado° device.
1653
1596
  */
@@ -2034,68 +1977,6 @@ export type Device = {
2034
1977
  */
2035
1978
  time_zone?: string | undefined;
2036
1979
  }> | undefined;
2037
- /**
2038
- * Audio state and capabilities of the speaker.
2039
- */
2040
- speaker?: {
2041
- /**
2042
- * 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.
2043
- */
2044
- grouped_with_device_ids: Array<string>;
2045
- /**
2046
- * 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.
2047
- */
2048
- has_fixed_volume: boolean;
2049
- /**
2050
- * Indicates whether the speaker is muted.
2051
- */
2052
- is_muted: boolean;
2053
- /**
2054
- * 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.
2055
- */
2056
- max_volume: number;
2057
- /**
2058
- * Minimum volume that you can set on the speaker.
2059
- */
2060
- min_volume: number;
2061
- /**
2062
- * Content that is currently playing on the speaker.
2063
- */
2064
- now_playing?: {
2065
- /**
2066
- * Album of the content that is currently playing.
2067
- */
2068
- album?: string | undefined;
2069
- /**
2070
- * Artist of the content that is currently playing.
2071
- */
2072
- artist?: string | undefined;
2073
- /**
2074
- * Title of the content that is currently playing.
2075
- */
2076
- title?: string | undefined;
2077
- } | undefined;
2078
- /**
2079
- * Playback state of the speaker.
2080
- */
2081
- playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown';
2082
- /**
2083
- * Indicates whether the speaker can play a chime.
2084
- */
2085
- supports_chime: boolean;
2086
- /**
2087
- * 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.
2088
- */
2089
- volume: number;
2090
- /**
2091
- * Date and time at which the speaker first reported its current volume.
2092
- */
2093
- volume_reported_at?: string | undefined;
2094
- /**
2095
- * Increment between the volume values that you can set on the speaker.
2096
- */
2097
- volume_step: number;
2098
- } | undefined;
2099
1980
  /**
2100
1981
  * Supported code lengths for access codes.
2101
1982
  */
@@ -22,18 +22,6 @@ export type UnmanagedDevice = {
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.
27
- */
28
- can_mute_speaker?: boolean | undefined;
29
- /**
30
- * Indicates whether the speaker supports pausing 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;
37
25
  /**
38
26
  * Indicates whether the device supports programming offline access codes.
39
27
  */
@@ -62,18 +50,10 @@ export type UnmanagedDevice = {
62
50
  * Indicates whether the device supports remote unlocking.
63
51
  */
64
52
  can_remotely_unlock?: boolean | undefined;
65
- /**
66
- * Indicates whether the speaker supports resuming playback.
67
- */
68
- can_resume_speaker_playback?: boolean | undefined;
69
53
  /**
70
54
  * Indicates whether the thermostat supports running climate programs.
71
55
  */
72
56
  can_run_thermostat_programs?: boolean | undefined;
73
- /**
74
- * Indicates whether the speaker supports setting its volume.
75
- */
76
- can_set_speaker_volume?: boolean | undefined;
77
57
  /**
78
58
  * Indicates whether the device supports simulating connection in a sandbox.
79
59
  */
@@ -110,10 +90,6 @@ export type UnmanagedDevice = {
110
90
  * Indicates whether the lock supports unlocking with an access code.
111
91
  */
112
92
  can_unlock_with_code?: boolean | undefined;
113
- /**
114
- * Indicates whether the speaker supports unmuting.
115
- */
116
- can_unmute_speaker?: boolean | undefined;
117
93
  /**
118
94
  * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).
119
95
  */
@@ -667,6 +667,9 @@ export type CustomersCreatePortalParameters = {
667
667
  * Whether to exclude the option to select a locale within the portal UI.
668
668
  */
669
669
  exclude_locale_picker?: boolean | undefined;
670
+ /**
671
+ * Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them.
672
+ */
670
673
  features?: {
671
674
  /**
672
675
  * Configuration for the configure feature.
@@ -120,6 +120,10 @@ export type UserIdentitiesCreateParameters = {
120
120
  * List of access system IDs to associate with the new user identity through access system users. If there's no user with the same email address or phone number in the specified access systems, a new access system user is created. If there is an existing user with the same email or phone number in the specified access systems, the user is linked to the user identity.
121
121
  */
122
122
  acs_system_ids?: Array<string> | undefined;
123
+ /**
124
+ * Customer key of the customer that owns the new user identity. Set it when the user identity will be used in access grants created through that customer's client session or Customer Portal.
125
+ */
126
+ customer_key?: string | undefined;
123
127
  /**
124
128
  * Unique email address for the new user identity.
125
129
  */
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "2.40.0";
1
+ declare const seamapiJavascriptHttpVersion = "2.41.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.40.0';
1
+ const seamapiJavascriptHttpVersion = '2.41.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "2.40.0",
3
+ "version": "2.41.0",
4
4
  "description": "JavaScript HTTP client for the Seam API written in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -88,7 +88,7 @@
88
88
  "@seamapi/blueprint": "^1.10.0",
89
89
  "@seamapi/fake-seam-connect": "^2.0.4",
90
90
  "@seamapi/smith": "^1.1.0",
91
- "@seamapi/types": "1.1125.0",
91
+ "@seamapi/types": "1.1129.0",
92
92
  "@types/jsonwebtoken": "^9.0.6",
93
93
  "@types/node": "^24.10.9",
94
94
  "ava": "^8.0.1",
@@ -2278,401 +2278,6 @@ export type ActionAttempt =
2278
2278
  */
2279
2279
  action_attempt_id: string
2280
2280
 
2281
- /**
2282
- * Action attempt to track the status of setting the volume on a speaker.
2283
- */
2284
- action_type: 'SET_SPEAKER_VOLUME'
2285
-
2286
- /**
2287
- * Error associated with the action.
2288
- */
2289
- error: null
2290
- /**
2291
- * Result of the action.
2292
- */
2293
- result: {}
2294
-
2295
- status: 'success'
2296
- }
2297
- | {
2298
- /**
2299
- * ID of the action attempt.
2300
- */
2301
- action_attempt_id: string
2302
-
2303
- /**
2304
- * Action attempt to track the status of setting the volume on a speaker.
2305
- */
2306
- action_type: 'SET_SPEAKER_VOLUME'
2307
-
2308
- /**
2309
- * Error associated with the action.
2310
- */
2311
- error: null
2312
- /**
2313
- * Result of the action.
2314
- */
2315
- result: null
2316
-
2317
- status: 'pending'
2318
- }
2319
- | {
2320
- /**
2321
- * ID of the action attempt.
2322
- */
2323
- action_attempt_id: string
2324
-
2325
- /**
2326
- * Action attempt to track the status of setting the volume on a speaker.
2327
- */
2328
- action_type: 'SET_SPEAKER_VOLUME'
2329
-
2330
- /**
2331
- * Error associated with the action.
2332
- */
2333
- error: {
2334
- /**
2335
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2336
- */
2337
- message: string
2338
-
2339
- /**
2340
- * Type of the error.
2341
- */
2342
- type: string
2343
- }
2344
-
2345
- /**
2346
- * Result of the action.
2347
- */
2348
- result: null
2349
-
2350
- status: 'error'
2351
- }
2352
- | {
2353
- /**
2354
- * ID of the action attempt.
2355
- */
2356
- action_attempt_id: string
2357
-
2358
- /**
2359
- * Action attempt to track the status of muting or unmuting a speaker.
2360
- */
2361
- action_type: 'SET_SPEAKER_MUTE'
2362
-
2363
- /**
2364
- * Error associated with the action.
2365
- */
2366
- error: null
2367
- /**
2368
- * Result of the action.
2369
- */
2370
- result: {}
2371
-
2372
- status: 'success'
2373
- }
2374
- | {
2375
- /**
2376
- * ID of the action attempt.
2377
- */
2378
- action_attempt_id: string
2379
-
2380
- /**
2381
- * Action attempt to track the status of muting or unmuting a speaker.
2382
- */
2383
- action_type: 'SET_SPEAKER_MUTE'
2384
-
2385
- /**
2386
- * Error associated with the action.
2387
- */
2388
- error: null
2389
- /**
2390
- * Result of the action.
2391
- */
2392
- result: null
2393
-
2394
- status: 'pending'
2395
- }
2396
- | {
2397
- /**
2398
- * ID of the action attempt.
2399
- */
2400
- action_attempt_id: string
2401
-
2402
- /**
2403
- * Action attempt to track the status of muting or unmuting a speaker.
2404
- */
2405
- action_type: 'SET_SPEAKER_MUTE'
2406
-
2407
- /**
2408
- * Error associated with the action.
2409
- */
2410
- error: {
2411
- /**
2412
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2413
- */
2414
- message: string
2415
-
2416
- /**
2417
- * Type of the error.
2418
- */
2419
- type: string
2420
- }
2421
-
2422
- /**
2423
- * Result of the action.
2424
- */
2425
- result: null
2426
-
2427
- status: 'error'
2428
- }
2429
- | {
2430
- /**
2431
- * ID of the action attempt.
2432
- */
2433
- action_attempt_id: string
2434
-
2435
- /**
2436
- * Action attempt to track the status of pausing playback on a speaker.
2437
- */
2438
- action_type: 'PAUSE_SPEAKER_PLAYBACK'
2439
-
2440
- /**
2441
- * Error associated with the action.
2442
- */
2443
- error: null
2444
- /**
2445
- * Result of the action.
2446
- */
2447
- result: {
2448
- /**
2449
- * IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.
2450
- */
2451
- affected_device_ids: Array<string>
2452
- }
2453
-
2454
- status: 'success'
2455
- }
2456
- | {
2457
- /**
2458
- * ID of the action attempt.
2459
- */
2460
- action_attempt_id: string
2461
-
2462
- /**
2463
- * Action attempt to track the status of pausing playback on a speaker.
2464
- */
2465
- action_type: 'PAUSE_SPEAKER_PLAYBACK'
2466
-
2467
- /**
2468
- * Error associated with the action.
2469
- */
2470
- error: null
2471
- /**
2472
- * Result of the action.
2473
- */
2474
- result: null
2475
-
2476
- status: 'pending'
2477
- }
2478
- | {
2479
- /**
2480
- * ID of the action attempt.
2481
- */
2482
- action_attempt_id: string
2483
-
2484
- /**
2485
- * Action attempt to track the status of pausing playback on a speaker.
2486
- */
2487
- action_type: 'PAUSE_SPEAKER_PLAYBACK'
2488
-
2489
- /**
2490
- * Error associated with the action.
2491
- */
2492
- error: {
2493
- /**
2494
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2495
- */
2496
- message: string
2497
-
2498
- /**
2499
- * Type of the error.
2500
- */
2501
- type: string
2502
- }
2503
-
2504
- /**
2505
- * Result of the action.
2506
- */
2507
- result: null
2508
-
2509
- status: 'error'
2510
- }
2511
- | {
2512
- /**
2513
- * ID of the action attempt.
2514
- */
2515
- action_attempt_id: string
2516
-
2517
- /**
2518
- * Action attempt to track the status of resuming playback on a speaker.
2519
- */
2520
- action_type: 'RESUME_SPEAKER_PLAYBACK'
2521
-
2522
- /**
2523
- * Error associated with the action.
2524
- */
2525
- error: null
2526
- /**
2527
- * Result of the action.
2528
- */
2529
- result: {
2530
- /**
2531
- * IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.
2532
- */
2533
- affected_device_ids: Array<string>
2534
- }
2535
-
2536
- status: 'success'
2537
- }
2538
- | {
2539
- /**
2540
- * ID of the action attempt.
2541
- */
2542
- action_attempt_id: string
2543
-
2544
- /**
2545
- * Action attempt to track the status of resuming playback on a speaker.
2546
- */
2547
- action_type: 'RESUME_SPEAKER_PLAYBACK'
2548
-
2549
- /**
2550
- * Error associated with the action.
2551
- */
2552
- error: null
2553
- /**
2554
- * Result of the action.
2555
- */
2556
- result: null
2557
-
2558
- status: 'pending'
2559
- }
2560
- | {
2561
- /**
2562
- * ID of the action attempt.
2563
- */
2564
- action_attempt_id: string
2565
-
2566
- /**
2567
- * Action attempt to track the status of resuming playback on a speaker.
2568
- */
2569
- action_type: 'RESUME_SPEAKER_PLAYBACK'
2570
-
2571
- /**
2572
- * Error associated with the action.
2573
- */
2574
- error: {
2575
- /**
2576
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2577
- */
2578
- message: string
2579
-
2580
- /**
2581
- * Type of the error.
2582
- */
2583
- type: string
2584
- }
2585
-
2586
- /**
2587
- * Result of the action.
2588
- */
2589
- result: null
2590
-
2591
- status: 'error'
2592
- }
2593
- | {
2594
- /**
2595
- * ID of the action attempt.
2596
- */
2597
- action_attempt_id: string
2598
-
2599
- /**
2600
- * Action attempt to track the status of playing a chime on a speaker.
2601
- */
2602
- action_type: 'PLAY_SPEAKER_CHIME'
2603
-
2604
- /**
2605
- * Error associated with the action.
2606
- */
2607
- error: null
2608
- /**
2609
- * Result of the action.
2610
- */
2611
- result: {}
2612
-
2613
- status: 'success'
2614
- }
2615
- | {
2616
- /**
2617
- * ID of the action attempt.
2618
- */
2619
- action_attempt_id: string
2620
-
2621
- /**
2622
- * Action attempt to track the status of playing a chime on a speaker.
2623
- */
2624
- action_type: 'PLAY_SPEAKER_CHIME'
2625
-
2626
- /**
2627
- * Error associated with the action.
2628
- */
2629
- error: null
2630
- /**
2631
- * Result of the action.
2632
- */
2633
- result: null
2634
-
2635
- status: 'pending'
2636
- }
2637
- | {
2638
- /**
2639
- * ID of the action attempt.
2640
- */
2641
- action_attempt_id: string
2642
-
2643
- /**
2644
- * Action attempt to track the status of playing a chime on a speaker.
2645
- */
2646
- action_type: 'PLAY_SPEAKER_CHIME'
2647
-
2648
- /**
2649
- * Error associated with the action.
2650
- */
2651
- error: {
2652
- /**
2653
- * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
2654
- */
2655
- message: string
2656
-
2657
- /**
2658
- * Type of the error.
2659
- */
2660
- type: string
2661
- }
2662
-
2663
- /**
2664
- * Result of the action.
2665
- */
2666
- result: null
2667
-
2668
- status: 'error'
2669
- }
2670
- | {
2671
- /**
2672
- * ID of the action attempt.
2673
- */
2674
- action_attempt_id: string
2675
-
2676
2281
  /**
2677
2282
  * Syncing access codes is pending.
2678
2283
  */
@@ -24,18 +24,6 @@ export type DeviceProvider = {
24
24
  * Indicates whether the thermostat supports simultaneous heating and cooling.
25
25
  */
26
26
  can_hvac_heat_cool?: boolean | undefined
27
- /**
28
- * Indicates whether the speaker supports muting.
29
- */
30
- can_mute_speaker?: boolean | undefined
31
- /**
32
- * Indicates whether the speaker supports pausing playback.
33
- */
34
- can_pause_speaker_playback?: boolean | undefined
35
- /**
36
- * Indicates whether the speaker supports playing a chime.
37
- */
38
- can_play_speaker_chime?: boolean | undefined
39
27
  /**
40
28
  * Indicates whether the device supports programming offline access codes.
41
29
  */
@@ -64,18 +52,10 @@ export type DeviceProvider = {
64
52
  * Indicates whether the device supports remote unlocking.
65
53
  */
66
54
  can_remotely_unlock?: boolean | undefined
67
- /**
68
- * Indicates whether the speaker supports resuming playback.
69
- */
70
- can_resume_speaker_playback?: boolean | undefined
71
55
  /**
72
56
  * Indicates whether the thermostat supports running climate programs.
73
57
  */
74
58
  can_run_thermostat_programs?: boolean | undefined
75
- /**
76
- * Indicates whether the speaker supports setting its volume.
77
- */
78
- can_set_speaker_volume?: boolean | undefined
79
59
  /**
80
60
  * Indicates whether the device supports simulating connection in a sandbox.
81
61
  */
@@ -112,10 +92,6 @@ export type DeviceProvider = {
112
92
  * Indicates whether the lock supports unlocking with an access code.
113
93
  */
114
94
  can_unlock_with_code?: boolean | undefined
115
- /**
116
- * Indicates whether the speaker supports unmuting.
117
- */
118
- can_unmute_speaker?: boolean | undefined
119
95
  /**
120
96
  * Name of the device provider.
121
97
  */
@@ -27,18 +27,6 @@ export type Device = {
27
27
  * Indicates whether the thermostat supports simultaneous heating and cooling.
28
28
  */
29
29
  can_hvac_heat_cool?: boolean | undefined
30
- /**
31
- * Indicates whether the speaker supports muting.
32
- */
33
- can_mute_speaker?: boolean | undefined
34
- /**
35
- * Indicates whether the speaker supports pausing playback.
36
- */
37
- can_pause_speaker_playback?: boolean | undefined
38
- /**
39
- * Indicates whether the speaker supports playing a chime.
40
- */
41
- can_play_speaker_chime?: boolean | undefined
42
30
  /**
43
31
  * Indicates whether the device supports programming offline access codes.
44
32
  */
@@ -67,18 +55,10 @@ export type Device = {
67
55
  * Indicates whether the device supports remote unlocking.
68
56
  */
69
57
  can_remotely_unlock?: boolean | undefined
70
- /**
71
- * Indicates whether the speaker supports resuming playback.
72
- */
73
- can_resume_speaker_playback?: boolean | undefined
74
58
  /**
75
59
  * Indicates whether the thermostat supports running climate programs.
76
60
  */
77
61
  can_run_thermostat_programs?: boolean | undefined
78
- /**
79
- * Indicates whether the speaker supports setting its volume.
80
- */
81
- can_set_speaker_volume?: boolean | undefined
82
62
  /**
83
63
  * Indicates whether the device supports simulating connection in a sandbox.
84
64
  */
@@ -115,10 +95,6 @@ export type Device = {
115
95
  * Indicates whether the lock supports unlocking with an access code.
116
96
  */
117
97
  can_unlock_with_code?: boolean | undefined
118
- /**
119
- * Indicates whether the speaker supports unmuting.
120
- */
121
- can_unmute_speaker?: boolean | undefined
122
98
  /**
123
99
  * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).
124
100
  */
@@ -1858,41 +1834,6 @@ export type Device = {
1858
1834
  model?: string | undefined
1859
1835
  }
1860
1836
  | undefined
1861
- /**
1862
- * Metadata for a Sonos speaker.
1863
- */
1864
- sonos_metadata?:
1865
- | {
1866
- /**
1867
- * Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1868
- */
1869
- bonded_member_models?: Array<string> | undefined
1870
- /**
1871
- * Color of the speaker, as reported by Sonos.
1872
- */
1873
- color?: string | undefined
1874
- /**
1875
- * ID of the Sonos household that the speaker belongs to.
1876
- */
1877
- household_id?: string | undefined
1878
- /**
1879
- * Model name of the speaker, as reported by Sonos.
1880
- */
1881
- model_display_name?: string | undefined
1882
- /**
1883
- * ID of the Sonos player for the speaker.
1884
- */
1885
- player_id?: string | undefined
1886
- /**
1887
- * Name of the speaker, as set in the Sonos app.
1888
- */
1889
- player_name?: string | undefined
1890
- /**
1891
- * Software version running on the speaker.
1892
- */
1893
- software_version?: string | undefined
1894
- }
1895
- | undefined
1896
1837
  /**
1897
1838
  * Metadata for a tado° device.
1898
1839
  */
@@ -2334,81 +2275,6 @@ export type Device = {
2334
2275
  time_zone?: string | undefined
2335
2276
  }>
2336
2277
  | undefined
2337
- /**
2338
- * Audio state and capabilities of the speaker.
2339
- */
2340
- speaker?:
2341
- | {
2342
- /**
2343
- * 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.
2344
- */
2345
- grouped_with_device_ids: Array<string>
2346
-
2347
- /**
2348
- * 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.
2349
- */
2350
- has_fixed_volume: boolean
2351
-
2352
- /**
2353
- * Indicates whether the speaker is muted.
2354
- */
2355
- is_muted: boolean
2356
-
2357
- /**
2358
- * 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.
2359
- */
2360
- max_volume: number
2361
-
2362
- /**
2363
- * Minimum volume that you can set on the speaker.
2364
- */
2365
- min_volume: number
2366
-
2367
- /**
2368
- * Content that is currently playing on the speaker.
2369
- */
2370
- now_playing?:
2371
- | {
2372
- /**
2373
- * Album of the content that is currently playing.
2374
- */
2375
- album?: string | undefined
2376
- /**
2377
- * Artist of the content that is currently playing.
2378
- */
2379
- artist?: string | undefined
2380
- /**
2381
- * Title of the content that is currently playing.
2382
- */
2383
- title?: string | undefined
2384
- }
2385
- | undefined
2386
- /**
2387
- * Playback state of the speaker.
2388
- */
2389
- playback_state:
2390
- 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'
2391
-
2392
- /**
2393
- * Indicates whether the speaker can play a chime.
2394
- */
2395
- supports_chime: boolean
2396
-
2397
- /**
2398
- * 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.
2399
- */
2400
- volume: number
2401
-
2402
- /**
2403
- * Date and time at which the speaker first reported its current volume.
2404
- */
2405
- volume_reported_at?: string | undefined
2406
- /**
2407
- * Increment between the volume values that you can set on the speaker.
2408
- */
2409
- volume_step: number
2410
- }
2411
- | undefined
2412
2278
  /**
2413
2279
  * Supported code lengths for access codes.
2414
2280
  */
@@ -27,18 +27,6 @@ export type UnmanagedDevice = {
27
27
  * Indicates whether the thermostat supports simultaneous heating and cooling.
28
28
  */
29
29
  can_hvac_heat_cool?: boolean | undefined
30
- /**
31
- * Indicates whether the speaker supports muting.
32
- */
33
- can_mute_speaker?: boolean | undefined
34
- /**
35
- * Indicates whether the speaker supports pausing playback.
36
- */
37
- can_pause_speaker_playback?: boolean | undefined
38
- /**
39
- * Indicates whether the speaker supports playing a chime.
40
- */
41
- can_play_speaker_chime?: boolean | undefined
42
30
  /**
43
31
  * Indicates whether the device supports programming offline access codes.
44
32
  */
@@ -67,18 +55,10 @@ export type UnmanagedDevice = {
67
55
  * Indicates whether the device supports remote unlocking.
68
56
  */
69
57
  can_remotely_unlock?: boolean | undefined
70
- /**
71
- * Indicates whether the speaker supports resuming playback.
72
- */
73
- can_resume_speaker_playback?: boolean | undefined
74
58
  /**
75
59
  * Indicates whether the thermostat supports running climate programs.
76
60
  */
77
61
  can_run_thermostat_programs?: boolean | undefined
78
- /**
79
- * Indicates whether the speaker supports setting its volume.
80
- */
81
- can_set_speaker_volume?: boolean | undefined
82
62
  /**
83
63
  * Indicates whether the device supports simulating connection in a sandbox.
84
64
  */
@@ -115,10 +95,6 @@ export type UnmanagedDevice = {
115
95
  * Indicates whether the lock supports unlocking with an access code.
116
96
  */
117
97
  can_unlock_with_code?: boolean | undefined
118
- /**
119
- * Indicates whether the speaker supports unmuting.
120
- */
121
- can_unmute_speaker?: boolean | undefined
122
98
  /**
123
99
  * Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).
124
100
  */
@@ -912,7 +912,9 @@ export type CustomersCreatePortalParameters = {
912
912
  * Whether to exclude the option to select a locale within the portal UI.
913
913
  */
914
914
  exclude_locale_picker?: boolean | undefined
915
-
915
+ /**
916
+ * Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them.
917
+ */
916
918
  features?:
917
919
  | {
918
920
  /**
@@ -523,6 +523,10 @@ export type UserIdentitiesCreateParameters = {
523
523
  * List of access system IDs to associate with the new user identity through access system users. If there's no user with the same email address or phone number in the specified access systems, a new access system user is created. If there is an existing user with the same email or phone number in the specified access systems, the user is linked to the user identity.
524
524
  */
525
525
  acs_system_ids?: Array<string> | undefined
526
+ /**
527
+ * Customer key of the customer that owns the new user identity. Set it when the user identity will be used in access grants created through that customer's client session or Customer Portal.
528
+ */
529
+ customer_key?: string | undefined
526
530
  /**
527
531
  * Unique email address for the new user identity.
528
532
  */
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.40.0'
1
+ const seamapiJavascriptHttpVersion = '2.41.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion