@seamapi/http 2.38.0 → 2.40.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 (48) hide show
  1. package/lib/resources/access-grant.d.ts +9 -5
  2. package/lib/resources/access-method.d.ts +39 -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 +341 -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 +25 -1
  9. package/lib/resources/device.d.ts +121 -2
  10. package/lib/resources/event.d.ts +1 -1
  11. package/lib/resources/phone.d.ts +702 -10
  12. package/lib/resources/unmanaged-access-grant.d.ts +9 -5
  13. package/lib/resources/unmanaged-access-method.d.ts +39 -1
  14. package/lib/resources/unmanaged-device.d.ts +25 -1
  15. package/lib/routes/connect-webviews/connect-webviews.d.ts +2 -2
  16. package/lib/routes/connected-accounts/connected-accounts.d.ts +1 -1
  17. package/lib/routes/customers/customers.d.ts +21 -0
  18. package/lib/routes/customers/customers.js +1 -0
  19. package/lib/routes/customers/customers.js.map +1 -1
  20. package/lib/routes/devices/devices.d.ts +3 -3
  21. package/lib/routes/devices/unmanaged/unmanaged.d.ts +3 -3
  22. package/lib/routes/seam-http-endpoints.d.ts +1 -0
  23. package/lib/routes/seam-http-endpoints.js +1 -0
  24. package/lib/routes/seam-http-endpoints.js.map +1 -1
  25. package/lib/version.d.ts +1 -1
  26. package/lib/version.js +1 -1
  27. package/package.json +2 -2
  28. package/src/lib/resources/access-grant.ts +9 -6
  29. package/src/lib/resources/access-method.ts +47 -1
  30. package/src/lib/resources/acs-entrance.ts +17 -12
  31. package/src/lib/resources/acs-system.ts +18 -0
  32. package/src/lib/resources/action-attempt.ts +434 -24
  33. package/src/lib/resources/connect-webview.ts +6 -1
  34. package/src/lib/resources/connected-account.ts +6 -1
  35. package/src/lib/resources/device-provider.ts +25 -0
  36. package/src/lib/resources/device.ts +136 -1
  37. package/src/lib/resources/event.ts +1 -0
  38. package/src/lib/resources/phone.ts +855 -22
  39. package/src/lib/resources/unmanaged-access-grant.ts +9 -6
  40. package/src/lib/resources/unmanaged-access-method.ts +47 -1
  41. package/src/lib/resources/unmanaged-device.ts +25 -0
  42. package/src/lib/routes/connect-webviews/connect-webviews.ts +7 -1
  43. package/src/lib/routes/connected-accounts/connected-accounts.ts +6 -1
  44. package/src/lib/routes/customers/customers.ts +21 -0
  45. package/src/lib/routes/devices/devices.ts +3 -0
  46. package/src/lib/routes/devices/unmanaged/unmanaged.ts +3 -0
  47. package/src/lib/routes/seam-http-endpoints.ts +1 -0
  48. package/src/lib/version.ts +1 -1
@@ -274,9 +274,9 @@ export type AccessGrant = {
274
274
  */
275
275
  device_id: string;
276
276
  /**
277
- * Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
277
+ * Reason the access code could not be revoked.
278
278
  */
279
- error_code: string;
279
+ error_code: 'offline_access_code_not_revocable';
280
280
  /**
281
281
  * Human-readable description of why revocation failed.
282
282
  */
@@ -310,16 +310,20 @@ export type AccessGrant = {
310
310
  */
311
311
  warning_code: 'updating_access_times';
312
312
  } /**
313
- * Indicates that the requested PIN code was already in use on a device, so a different code was assigned.
313
+ * Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.
314
314
  */ | {
315
+ /**
316
+ * ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.
317
+ */
318
+ access_method_id?: string | undefined;
315
319
  /**
316
320
  * Date and time at which Seam created the warning.
317
321
  */
318
322
  created_at: string;
319
323
  /**
320
- * ID of the device where the requested code was unavailable.
324
+ * ID of the device where the requested code was unavailable. Present when the code was set directly on a device.
321
325
  */
322
- device_id: string;
326
+ device_id?: string | undefined;
323
327
  /**
324
328
  * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
325
329
  */
@@ -87,7 +87,7 @@ export type AccessMethod = {
87
87
  */
88
88
  is_ready_for_assignment?: boolean | undefined;
89
89
  /**
90
- * Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
90
+ * Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
91
91
  */
92
92
  is_ready_for_encoding?: boolean | undefined;
93
93
  /**
@@ -210,6 +210,21 @@ export type AccessMethod = {
210
210
  */
211
211
  starts_at: string | null;
212
212
  };
213
+ } /**
214
+ * The access system has not yet received all the access this card needs. A card encoded now would carry only the access the system already has, so wait until this clears before encoding.
215
+ */ | {
216
+ /**
217
+ * Date and time at which the mutation was created.
218
+ */
219
+ created_at: string;
220
+ /**
221
+ * Detailed description of the mutation.
222
+ */
223
+ message: string;
224
+ /**
225
+ * Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.
226
+ */
227
+ mutation_code: 'waiting_for_access_on_acs_system';
213
228
  }>;
214
229
  /**
215
230
  * Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).
@@ -310,6 +325,29 @@ export type AccessMethod = {
310
325
  * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
311
326
  */
312
327
  warning_code: 'user_identity_missing_phone_number';
328
+ } /**
329
+ * Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.
330
+ */ | {
331
+ /**
332
+ * Date and time at which Seam created the warning.
333
+ */
334
+ created_at: string;
335
+ /**
336
+ * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
337
+ */
338
+ message: string;
339
+ /**
340
+ * The PIN code that was assigned instead.
341
+ */
342
+ new_code: string;
343
+ /**
344
+ * The originally requested PIN code that could not be used.
345
+ */
346
+ original_code: string;
347
+ /**
348
+ * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
349
+ */
350
+ warning_code: 'requested_code_unavailable';
313
351
  }>;
314
352
  /**
315
353
  * ID of the Seam workspace associated with the access method.
@@ -170,7 +170,11 @@ export type AcsEntrance = {
170
170
  /**
171
171
  * Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).
172
172
  */
173
- errors: Array<{
173
+ errors: Array<
174
+ /**
175
+ * Indicates that the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was removed from the connected account, so Seam can no longer sync it.
176
+ */
177
+ {
174
178
  /**
175
179
  * Date and time at which Seam created the error.
176
180
  */
@@ -178,7 +182,7 @@ export type AcsEntrance = {
178
182
  /**
179
183
  * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
180
184
  */
181
- error_code: string;
185
+ error_code: 'entrance_removed';
182
186
  /**
183
187
  * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
184
188
  */
@@ -110,6 +110,21 @@ export type AcsSystem = {
110
110
  */
111
111
  message: string;
112
112
  } /**
113
+ * Indicates that the access control system has reached the maximum number of users its license allows, so Seam cannot create new users on it and access for new guests is not provisioned. Remove unused users from the access control system or increase its license. The error clears once Seam can create users again.
114
+ */ | {
115
+ /**
116
+ * Date and time at which Seam created the error.
117
+ */
118
+ created_at: string;
119
+ /**
120
+ * Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
121
+ */
122
+ error_code: 'user_license_limit_reached';
123
+ /**
124
+ * Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
125
+ */
126
+ message: string;
127
+ } /**
113
128
  * Indicates that the provider's system backing this [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is not letting Seam act on it, so access cannot be managed until this is resolved. The error message says which of two causes applies. Either Seam's integration user does not have sufficient permissions on the provider's system, or has been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. Or the provider account or site does not have a valid subscription with the provider: set up or renew that subscription with the provider.
114
129
  */ | {
115
130
  /**
@@ -1093,7 +1093,7 @@ export type ActionAttempt = {
1093
1093
  */
1094
1094
  is_ready_for_assignment?: boolean | undefined;
1095
1095
  /**
1096
- * Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
1096
+ * Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.
1097
1097
  */
1098
1098
  is_ready_for_encoding?: boolean | undefined;
1099
1099
  /**
@@ -1115,7 +1115,7 @@ export type ActionAttempt = {
1115
1115
  /**
1116
1116
  * Previous access time configuration.
1117
1117
  */
1118
- from: {
1118
+ from?: {
1119
1119
  /**
1120
1120
  * Previous end time for access.
1121
1121
  */
@@ -1124,19 +1124,19 @@ export type ActionAttempt = {
1124
1124
  * Previous start time for access.
1125
1125
  */
1126
1126
  starts_at: string | null;
1127
- };
1127
+ } | undefined;
1128
1128
  /**
1129
1129
  * Detailed description of the mutation.
1130
1130
  */
1131
1131
  message: string;
1132
1132
  /**
1133
- * Mutation code to indicate that Seam is in the process of updating the access times for this access method.
1133
+ * Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.
1134
1134
  */
1135
- mutation_code: 'provisioning_access' | 'revoking_access' | 'updating_access_times';
1135
+ mutation_code: 'provisioning_access' | 'revoking_access' | 'updating_access_times' | 'waiting_for_access_on_acs_system';
1136
1136
  /**
1137
1137
  * New access time configuration.
1138
1138
  */
1139
- to: {
1139
+ to?: {
1140
1140
  /**
1141
1141
  * New end time for access.
1142
1142
  */
@@ -1145,7 +1145,7 @@ export type ActionAttempt = {
1145
1145
  * New start time for access.
1146
1146
  */
1147
1147
  starts_at: string | null;
1148
- };
1148
+ } | undefined;
1149
1149
  }>;
1150
1150
  /**
1151
1151
  * Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).
@@ -1162,11 +1162,19 @@ export type ActionAttempt = {
1162
1162
  /**
1163
1163
  * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
1164
1164
  */
1165
- warning_code: 'being_deleted' | 'updating_access_times' | 'pulled_backup_access_code' | 'delay_in_issuing' | 'user_identity_missing_email_address' | 'user_identity_missing_phone_number';
1165
+ warning_code: 'being_deleted' | 'updating_access_times' | 'pulled_backup_access_code' | 'delay_in_issuing' | 'user_identity_missing_email_address' | 'user_identity_missing_phone_number' | 'requested_code_unavailable';
1166
1166
  /**
1167
1167
  * ID of the original access method from which this backup access method was split, if applicable.
1168
1168
  */
1169
1169
  original_access_method_id?: string | undefined;
1170
+ /**
1171
+ * The PIN code that was assigned instead.
1172
+ */
1173
+ new_code?: string | undefined;
1174
+ /**
1175
+ * The originally requested PIN code that could not be used.
1176
+ */
1177
+ original_code?: string | undefined;
1170
1178
  }>;
1171
1179
  /**
1172
1180
  * ID of the Seam workspace associated with the access method.
@@ -1843,6 +1851,331 @@ export type ActionAttempt = {
1843
1851
  */
1844
1852
  result: null;
1845
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';
1846
2179
  } | {
1847
2180
  /**
1848
2181
  * ID of the action attempt.
@@ -15,7 +15,7 @@ export type ConnectWebview = {
15
15
  /**
16
16
  * High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.
17
17
  */
18
- accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'>;
18
+ accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker'>;
19
19
  /**
20
20
  * List of accepted [provider keys](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
21
21
  */
@@ -5,7 +5,7 @@ export type ConnectedAccount = {
5
5
  /**
6
6
  * List of capabilities that were accepted during the account connection process.
7
7
  */
8
- accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'>;
8
+ accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker'>;
9
9
  /**
10
10
  * Type of connected account.
11
11
  */
@@ -19,6 +19,18 @@ 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;
22
34
  /**
23
35
  * Indicates whether the device supports programming offline access codes.
24
36
  */
@@ -47,10 +59,18 @@ export type DeviceProvider = {
47
59
  * Indicates whether the device supports remote unlocking.
48
60
  */
49
61
  can_remotely_unlock?: boolean | undefined;
62
+ /**
63
+ * Indicates whether the speaker supports resuming playback.
64
+ */
65
+ can_resume_speaker_playback?: boolean | undefined;
50
66
  /**
51
67
  * Indicates whether the thermostat supports running climate programs.
52
68
  */
53
69
  can_run_thermostat_programs?: boolean | undefined;
70
+ /**
71
+ * Indicates whether the speaker supports setting its volume.
72
+ */
73
+ can_set_speaker_volume?: boolean | undefined;
54
74
  /**
55
75
  * Indicates whether the device supports simulating connection in a sandbox.
56
76
  */
@@ -87,10 +107,14 @@ export type DeviceProvider = {
87
107
  * Indicates whether the lock supports unlocking with an access code.
88
108
  */
89
109
  can_unlock_with_code?: boolean | undefined;
110
+ /**
111
+ * Indicates whether the speaker supports unmuting.
112
+ */
113
+ can_unmute_speaker?: boolean | undefined;
90
114
  /**
91
115
  * Name of the device provider.
92
116
  */
93
- device_provider_name: 'hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'salto_ks_accept' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'four_suites' | 'dormakaba_oracode' | 'dormakaba_oracode_iho' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'first_alert' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'keynest' | 'korelock' | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' | 'yacan' | 'dusaw' | 'sifely' | 'thirty_three_lock' | 'ring' | 'tapo' | 'arlo' | 'reolink' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'aqara';
117
+ device_provider_name: 'hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'salto_ks_accept' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'four_suites' | 'dormakaba_oracode' | 'dormakaba_oracode_iho' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'first_alert' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'keynest' | 'korelock' | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' | 'yacan' | 'dusaw' | 'sifely' | 'thirty_three_lock' | 'ring' | 'tapo' | 'arlo' | 'reolink' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'aqara' | 'sonos';
94
118
  /**
95
119
  * Display name for the device provider.
96
120
  */