@seamapi/http 2.39.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.
- package/lib/resources/access-grant.d.ts +7 -3
- package/lib/resources/access-method.d.ts +23 -0
- package/lib/resources/action-attempt.d.ts +9 -326
- package/lib/resources/device-provider.d.ts +0 -16
- package/lib/resources/device.d.ts +1 -112
- package/lib/resources/event.d.ts +1 -1
- package/lib/resources/unmanaged-access-grant.d.ts +7 -3
- package/lib/resources/unmanaged-access-method.d.ts +23 -0
- package/lib/resources/unmanaged-device.d.ts +0 -16
- package/lib/routes/customers/customers.d.ts +11 -0
- package/lib/routes/user-identities/user-identities.d.ts +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/resources/access-grant.ts +7 -4
- package/src/lib/resources/access-method.ts +28 -0
- package/src/lib/resources/action-attempt.ts +9 -395
- package/src/lib/resources/device-provider.ts +0 -16
- package/src/lib/resources/device.ts +1 -127
- package/src/lib/resources/event.ts +1 -0
- package/src/lib/resources/unmanaged-access-grant.ts +7 -4
- package/src/lib/resources/unmanaged-access-method.ts +28 -0
- package/src/lib/resources/unmanaged-device.ts +0 -16
- package/src/lib/routes/customers/customers.ts +11 -1
- package/src/lib/routes/user-identities/user-identities.ts +4 -0
- package/src/lib/version.ts +1 -1
|
@@ -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,
|
|
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
|
|
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
|
*/
|
|
@@ -325,6 +325,29 @@ export type AccessMethod = {
|
|
|
325
325
|
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
326
326
|
*/
|
|
327
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';
|
|
328
351
|
}>;
|
|
329
352
|
/**
|
|
330
353
|
* ID of the Seam workspace associated with the access method.
|
|
@@ -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,331 +1851,6 @@ export type ActionAttempt = {
|
|
|
1843
1851
|
*/
|
|
1844
1852
|
result: null;
|
|
1845
1853
|
status: 'error';
|
|
1846
|
-
} | {
|
|
1847
|
-
/**
|
|
1848
|
-
* ID of the action attempt.
|
|
1849
|
-
*/
|
|
1850
|
-
action_attempt_id: string;
|
|
1851
|
-
/**
|
|
1852
|
-
* Action attempt to track the status of setting the volume on a speaker.
|
|
1853
|
-
*/
|
|
1854
|
-
action_type: 'SET_SPEAKER_VOLUME';
|
|
1855
|
-
/**
|
|
1856
|
-
* Error associated with the action.
|
|
1857
|
-
*/
|
|
1858
|
-
error: null;
|
|
1859
|
-
/**
|
|
1860
|
-
* Result of the action.
|
|
1861
|
-
*/
|
|
1862
|
-
result: {};
|
|
1863
|
-
status: 'success';
|
|
1864
|
-
} | {
|
|
1865
|
-
/**
|
|
1866
|
-
* ID of the action attempt.
|
|
1867
|
-
*/
|
|
1868
|
-
action_attempt_id: string;
|
|
1869
|
-
/**
|
|
1870
|
-
* Action attempt to track the status of setting the volume on a speaker.
|
|
1871
|
-
*/
|
|
1872
|
-
action_type: 'SET_SPEAKER_VOLUME';
|
|
1873
|
-
/**
|
|
1874
|
-
* Error associated with the action.
|
|
1875
|
-
*/
|
|
1876
|
-
error: null;
|
|
1877
|
-
/**
|
|
1878
|
-
* Result of the action.
|
|
1879
|
-
*/
|
|
1880
|
-
result: null;
|
|
1881
|
-
status: 'pending';
|
|
1882
|
-
} | {
|
|
1883
|
-
/**
|
|
1884
|
-
* ID of the action attempt.
|
|
1885
|
-
*/
|
|
1886
|
-
action_attempt_id: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* Action attempt to track the status of setting the volume on a speaker.
|
|
1889
|
-
*/
|
|
1890
|
-
action_type: 'SET_SPEAKER_VOLUME';
|
|
1891
|
-
/**
|
|
1892
|
-
* Error associated with the action.
|
|
1893
|
-
*/
|
|
1894
|
-
error: {
|
|
1895
|
-
/**
|
|
1896
|
-
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1897
|
-
*/
|
|
1898
|
-
message: string;
|
|
1899
|
-
/**
|
|
1900
|
-
* Type of the error.
|
|
1901
|
-
*/
|
|
1902
|
-
type: string;
|
|
1903
|
-
};
|
|
1904
|
-
/**
|
|
1905
|
-
* Result of the action.
|
|
1906
|
-
*/
|
|
1907
|
-
result: null;
|
|
1908
|
-
status: 'error';
|
|
1909
|
-
} | {
|
|
1910
|
-
/**
|
|
1911
|
-
* ID of the action attempt.
|
|
1912
|
-
*/
|
|
1913
|
-
action_attempt_id: string;
|
|
1914
|
-
/**
|
|
1915
|
-
* Action attempt to track the status of muting or unmuting a speaker.
|
|
1916
|
-
*/
|
|
1917
|
-
action_type: 'SET_SPEAKER_MUTE';
|
|
1918
|
-
/**
|
|
1919
|
-
* Error associated with the action.
|
|
1920
|
-
*/
|
|
1921
|
-
error: null;
|
|
1922
|
-
/**
|
|
1923
|
-
* Result of the action.
|
|
1924
|
-
*/
|
|
1925
|
-
result: {};
|
|
1926
|
-
status: 'success';
|
|
1927
|
-
} | {
|
|
1928
|
-
/**
|
|
1929
|
-
* ID of the action attempt.
|
|
1930
|
-
*/
|
|
1931
|
-
action_attempt_id: string;
|
|
1932
|
-
/**
|
|
1933
|
-
* Action attempt to track the status of muting or unmuting a speaker.
|
|
1934
|
-
*/
|
|
1935
|
-
action_type: 'SET_SPEAKER_MUTE';
|
|
1936
|
-
/**
|
|
1937
|
-
* Error associated with the action.
|
|
1938
|
-
*/
|
|
1939
|
-
error: null;
|
|
1940
|
-
/**
|
|
1941
|
-
* Result of the action.
|
|
1942
|
-
*/
|
|
1943
|
-
result: null;
|
|
1944
|
-
status: 'pending';
|
|
1945
|
-
} | {
|
|
1946
|
-
/**
|
|
1947
|
-
* ID of the action attempt.
|
|
1948
|
-
*/
|
|
1949
|
-
action_attempt_id: string;
|
|
1950
|
-
/**
|
|
1951
|
-
* Action attempt to track the status of muting or unmuting a speaker.
|
|
1952
|
-
*/
|
|
1953
|
-
action_type: 'SET_SPEAKER_MUTE';
|
|
1954
|
-
/**
|
|
1955
|
-
* Error associated with the action.
|
|
1956
|
-
*/
|
|
1957
|
-
error: {
|
|
1958
|
-
/**
|
|
1959
|
-
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1960
|
-
*/
|
|
1961
|
-
message: string;
|
|
1962
|
-
/**
|
|
1963
|
-
* Type of the error.
|
|
1964
|
-
*/
|
|
1965
|
-
type: string;
|
|
1966
|
-
};
|
|
1967
|
-
/**
|
|
1968
|
-
* Result of the action.
|
|
1969
|
-
*/
|
|
1970
|
-
result: null;
|
|
1971
|
-
status: 'error';
|
|
1972
|
-
} | {
|
|
1973
|
-
/**
|
|
1974
|
-
* ID of the action attempt.
|
|
1975
|
-
*/
|
|
1976
|
-
action_attempt_id: string;
|
|
1977
|
-
/**
|
|
1978
|
-
* Action attempt to track the status of pausing playback on a speaker.
|
|
1979
|
-
*/
|
|
1980
|
-
action_type: 'PAUSE_SPEAKER_PLAYBACK';
|
|
1981
|
-
/**
|
|
1982
|
-
* Error associated with the action.
|
|
1983
|
-
*/
|
|
1984
|
-
error: null;
|
|
1985
|
-
/**
|
|
1986
|
-
* Result of the action.
|
|
1987
|
-
*/
|
|
1988
|
-
result: {
|
|
1989
|
-
/**
|
|
1990
|
-
* IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.
|
|
1991
|
-
*/
|
|
1992
|
-
affected_device_ids: Array<string>;
|
|
1993
|
-
};
|
|
1994
|
-
status: 'success';
|
|
1995
|
-
} | {
|
|
1996
|
-
/**
|
|
1997
|
-
* ID of the action attempt.
|
|
1998
|
-
*/
|
|
1999
|
-
action_attempt_id: string;
|
|
2000
|
-
/**
|
|
2001
|
-
* Action attempt to track the status of pausing playback on a speaker.
|
|
2002
|
-
*/
|
|
2003
|
-
action_type: 'PAUSE_SPEAKER_PLAYBACK';
|
|
2004
|
-
/**
|
|
2005
|
-
* Error associated with the action.
|
|
2006
|
-
*/
|
|
2007
|
-
error: null;
|
|
2008
|
-
/**
|
|
2009
|
-
* Result of the action.
|
|
2010
|
-
*/
|
|
2011
|
-
result: null;
|
|
2012
|
-
status: 'pending';
|
|
2013
|
-
} | {
|
|
2014
|
-
/**
|
|
2015
|
-
* ID of the action attempt.
|
|
2016
|
-
*/
|
|
2017
|
-
action_attempt_id: string;
|
|
2018
|
-
/**
|
|
2019
|
-
* Action attempt to track the status of pausing playback on a speaker.
|
|
2020
|
-
*/
|
|
2021
|
-
action_type: 'PAUSE_SPEAKER_PLAYBACK';
|
|
2022
|
-
/**
|
|
2023
|
-
* Error associated with the action.
|
|
2024
|
-
*/
|
|
2025
|
-
error: {
|
|
2026
|
-
/**
|
|
2027
|
-
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
2028
|
-
*/
|
|
2029
|
-
message: string;
|
|
2030
|
-
/**
|
|
2031
|
-
* Type of the error.
|
|
2032
|
-
*/
|
|
2033
|
-
type: string;
|
|
2034
|
-
};
|
|
2035
|
-
/**
|
|
2036
|
-
* Result of the action.
|
|
2037
|
-
*/
|
|
2038
|
-
result: null;
|
|
2039
|
-
status: 'error';
|
|
2040
|
-
} | {
|
|
2041
|
-
/**
|
|
2042
|
-
* ID of the action attempt.
|
|
2043
|
-
*/
|
|
2044
|
-
action_attempt_id: string;
|
|
2045
|
-
/**
|
|
2046
|
-
* Action attempt to track the status of resuming playback on a speaker.
|
|
2047
|
-
*/
|
|
2048
|
-
action_type: 'RESUME_SPEAKER_PLAYBACK';
|
|
2049
|
-
/**
|
|
2050
|
-
* Error associated with the action.
|
|
2051
|
-
*/
|
|
2052
|
-
error: null;
|
|
2053
|
-
/**
|
|
2054
|
-
* Result of the action.
|
|
2055
|
-
*/
|
|
2056
|
-
result: {
|
|
2057
|
-
/**
|
|
2058
|
-
* IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.
|
|
2059
|
-
*/
|
|
2060
|
-
affected_device_ids: Array<string>;
|
|
2061
|
-
};
|
|
2062
|
-
status: 'success';
|
|
2063
|
-
} | {
|
|
2064
|
-
/**
|
|
2065
|
-
* ID of the action attempt.
|
|
2066
|
-
*/
|
|
2067
|
-
action_attempt_id: string;
|
|
2068
|
-
/**
|
|
2069
|
-
* Action attempt to track the status of resuming playback on a speaker.
|
|
2070
|
-
*/
|
|
2071
|
-
action_type: 'RESUME_SPEAKER_PLAYBACK';
|
|
2072
|
-
/**
|
|
2073
|
-
* Error associated with the action.
|
|
2074
|
-
*/
|
|
2075
|
-
error: null;
|
|
2076
|
-
/**
|
|
2077
|
-
* Result of the action.
|
|
2078
|
-
*/
|
|
2079
|
-
result: null;
|
|
2080
|
-
status: 'pending';
|
|
2081
|
-
} | {
|
|
2082
|
-
/**
|
|
2083
|
-
* ID of the action attempt.
|
|
2084
|
-
*/
|
|
2085
|
-
action_attempt_id: string;
|
|
2086
|
-
/**
|
|
2087
|
-
* Action attempt to track the status of resuming playback on a speaker.
|
|
2088
|
-
*/
|
|
2089
|
-
action_type: 'RESUME_SPEAKER_PLAYBACK';
|
|
2090
|
-
/**
|
|
2091
|
-
* Error associated with the action.
|
|
2092
|
-
*/
|
|
2093
|
-
error: {
|
|
2094
|
-
/**
|
|
2095
|
-
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
2096
|
-
*/
|
|
2097
|
-
message: string;
|
|
2098
|
-
/**
|
|
2099
|
-
* Type of the error.
|
|
2100
|
-
*/
|
|
2101
|
-
type: string;
|
|
2102
|
-
};
|
|
2103
|
-
/**
|
|
2104
|
-
* Result of the action.
|
|
2105
|
-
*/
|
|
2106
|
-
result: null;
|
|
2107
|
-
status: 'error';
|
|
2108
|
-
} | {
|
|
2109
|
-
/**
|
|
2110
|
-
* ID of the action attempt.
|
|
2111
|
-
*/
|
|
2112
|
-
action_attempt_id: string;
|
|
2113
|
-
/**
|
|
2114
|
-
* Action attempt to track the status of playing a chime on a speaker.
|
|
2115
|
-
*/
|
|
2116
|
-
action_type: 'PLAY_SPEAKER_CHIME';
|
|
2117
|
-
/**
|
|
2118
|
-
* Error associated with the action.
|
|
2119
|
-
*/
|
|
2120
|
-
error: null;
|
|
2121
|
-
/**
|
|
2122
|
-
* Result of the action.
|
|
2123
|
-
*/
|
|
2124
|
-
result: {};
|
|
2125
|
-
status: 'success';
|
|
2126
|
-
} | {
|
|
2127
|
-
/**
|
|
2128
|
-
* ID of the action attempt.
|
|
2129
|
-
*/
|
|
2130
|
-
action_attempt_id: string;
|
|
2131
|
-
/**
|
|
2132
|
-
* Action attempt to track the status of playing a chime on a speaker.
|
|
2133
|
-
*/
|
|
2134
|
-
action_type: 'PLAY_SPEAKER_CHIME';
|
|
2135
|
-
/**
|
|
2136
|
-
* Error associated with the action.
|
|
2137
|
-
*/
|
|
2138
|
-
error: null;
|
|
2139
|
-
/**
|
|
2140
|
-
* Result of the action.
|
|
2141
|
-
*/
|
|
2142
|
-
result: null;
|
|
2143
|
-
status: 'pending';
|
|
2144
|
-
} | {
|
|
2145
|
-
/**
|
|
2146
|
-
* ID of the action attempt.
|
|
2147
|
-
*/
|
|
2148
|
-
action_attempt_id: string;
|
|
2149
|
-
/**
|
|
2150
|
-
* Action attempt to track the status of playing a chime on a speaker.
|
|
2151
|
-
*/
|
|
2152
|
-
action_type: 'PLAY_SPEAKER_CHIME';
|
|
2153
|
-
/**
|
|
2154
|
-
* Error associated with the action.
|
|
2155
|
-
*/
|
|
2156
|
-
error: {
|
|
2157
|
-
/**
|
|
2158
|
-
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
2159
|
-
*/
|
|
2160
|
-
message: string;
|
|
2161
|
-
/**
|
|
2162
|
-
* Type of the error.
|
|
2163
|
-
*/
|
|
2164
|
-
type: string;
|
|
2165
|
-
};
|
|
2166
|
-
/**
|
|
2167
|
-
* Result of the action.
|
|
2168
|
-
*/
|
|
2169
|
-
result: null;
|
|
2170
|
-
status: 'error';
|
|
2171
1854
|
} | {
|
|
2172
1855
|
/**
|
|
2173
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 and unmuting.
|
|
24
|
-
*/
|
|
25
|
-
can_mute_speaker?: boolean | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Indicates whether the speaker supports pausing and resuming 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
|
*/
|
|
@@ -63,10 +51,6 @@ export type DeviceProvider = {
|
|
|
63
51
|
* Indicates whether the thermostat supports running climate programs.
|
|
64
52
|
*/
|
|
65
53
|
can_run_thermostat_programs?: boolean | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Indicates whether the speaker supports setting its volume.
|
|
68
|
-
*/
|
|
69
|
-
can_set_speaker_volume?: boolean | undefined;
|
|
70
54
|
/**
|
|
71
55
|
* Indicates whether the device supports simulating connection in a sandbox.
|
|
72
56
|
*/
|
|
@@ -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 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;
|
|
37
25
|
/**
|
|
38
26
|
* Indicates whether the device supports programming offline access codes.
|
|
39
27
|
*/
|
|
@@ -66,10 +54,6 @@ export type Device = {
|
|
|
66
54
|
* Indicates whether the thermostat supports running climate programs.
|
|
67
55
|
*/
|
|
68
56
|
can_run_thermostat_programs?: boolean | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Indicates whether the speaker supports setting its volume.
|
|
71
|
-
*/
|
|
72
|
-
can_set_speaker_volume?: boolean | undefined;
|
|
73
57
|
/**
|
|
74
58
|
* Indicates whether the device supports simulating connection in a sandbox.
|
|
75
59
|
*/
|
|
@@ -1578,7 +1562,7 @@ export type Device = {
|
|
|
1578
1562
|
*/
|
|
1579
1563
|
device_name?: string | undefined;
|
|
1580
1564
|
/**
|
|
1581
|
-
*
|
|
1565
|
+
* Deprecated. Seam no longer sets this field.
|
|
1582
1566
|
*/
|
|
1583
1567
|
dual_setpoints_not_supported?: boolean | undefined;
|
|
1584
1568
|
/**
|
|
@@ -1607,39 +1591,6 @@ export type Device = {
|
|
|
1607
1591
|
*/
|
|
1608
1592
|
model?: string | undefined;
|
|
1609
1593
|
} | 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;
|
|
1643
1594
|
/**
|
|
1644
1595
|
* Metadata for a tado° device.
|
|
1645
1596
|
*/
|
|
@@ -2026,68 +1977,6 @@ export type Device = {
|
|
|
2026
1977
|
*/
|
|
2027
1978
|
time_zone?: string | undefined;
|
|
2028
1979
|
}> | 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;
|
|
2091
1980
|
/**
|
|
2092
1981
|
* Supported code lengths for access codes.
|
|
2093
1982
|
*/
|
package/lib/resources/event.d.ts
CHANGED
|
@@ -4861,7 +4861,7 @@ export type SeamEvent = {
|
|
|
4861
4861
|
/**
|
|
4862
4862
|
* Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.
|
|
4863
4863
|
*/
|
|
4864
|
-
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
|
|
4864
|
+
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error';
|
|
4865
4865
|
} | undefined;
|
|
4866
4866
|
/**
|
|
4867
4867
|
* ID of the workspace associated with the event.
|
|
@@ -290,16 +290,20 @@ export type UnmanagedAccessGrant = {
|
|
|
290
290
|
*/
|
|
291
291
|
warning_code: 'updating_access_times';
|
|
292
292
|
} /**
|
|
293
|
-
* Indicates that the requested PIN code was already in use on a device,
|
|
293
|
+
* 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.
|
|
294
294
|
*/ | {
|
|
295
|
+
/**
|
|
296
|
+
* ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.
|
|
297
|
+
*/
|
|
298
|
+
access_method_id?: string | undefined;
|
|
295
299
|
/**
|
|
296
300
|
* Date and time at which Seam created the warning.
|
|
297
301
|
*/
|
|
298
302
|
created_at: string;
|
|
299
303
|
/**
|
|
300
|
-
* ID of the device where the requested code was unavailable.
|
|
304
|
+
* ID of the device where the requested code was unavailable. Present when the code was set directly on a device.
|
|
301
305
|
*/
|
|
302
|
-
device_id
|
|
306
|
+
device_id?: string | undefined;
|
|
303
307
|
/**
|
|
304
308
|
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
305
309
|
*/
|
|
@@ -313,6 +313,29 @@ export type UnmanagedAccessMethod = {
|
|
|
313
313
|
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
314
314
|
*/
|
|
315
315
|
warning_code: 'user_identity_missing_phone_number';
|
|
316
|
+
} /**
|
|
317
|
+
* 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.
|
|
318
|
+
*/ | {
|
|
319
|
+
/**
|
|
320
|
+
* Date and time at which Seam created the warning.
|
|
321
|
+
*/
|
|
322
|
+
created_at: string;
|
|
323
|
+
/**
|
|
324
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
325
|
+
*/
|
|
326
|
+
message: string;
|
|
327
|
+
/**
|
|
328
|
+
* The PIN code that was assigned instead.
|
|
329
|
+
*/
|
|
330
|
+
new_code: string;
|
|
331
|
+
/**
|
|
332
|
+
* The originally requested PIN code that could not be used.
|
|
333
|
+
*/
|
|
334
|
+
original_code: string;
|
|
335
|
+
/**
|
|
336
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
337
|
+
*/
|
|
338
|
+
warning_code: 'requested_code_unavailable';
|
|
316
339
|
}>;
|
|
317
340
|
/**
|
|
318
341
|
* ID of the Seam workspace associated with the access method.
|
|
@@ -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 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;
|
|
37
25
|
/**
|
|
38
26
|
* Indicates whether the device supports programming offline access codes.
|
|
39
27
|
*/
|
|
@@ -66,10 +54,6 @@ export type UnmanagedDevice = {
|
|
|
66
54
|
* Indicates whether the thermostat supports running climate programs.
|
|
67
55
|
*/
|
|
68
56
|
can_run_thermostat_programs?: boolean | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Indicates whether the speaker supports setting its volume.
|
|
71
|
-
*/
|
|
72
|
-
can_set_speaker_volume?: boolean | undefined;
|
|
73
57
|
/**
|
|
74
58
|
* Indicates whether the device supports simulating connection in a sandbox.
|
|
75
59
|
*/
|