@seamapi/http 2.38.0 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/resources/access-grant.d.ts +2 -2
  2. package/lib/resources/access-method.d.ts +16 -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 +332 -7
  6. package/lib/resources/connect-webview.d.ts +1 -1
  7. package/lib/resources/connected-account.d.ts +1 -1
  8. package/lib/resources/device-provider.d.ts +17 -1
  9. package/lib/resources/device.d.ts +112 -1
  10. package/lib/resources/phone.d.ts +702 -10
  11. package/lib/resources/unmanaged-access-grant.d.ts +2 -2
  12. package/lib/resources/unmanaged-access-method.d.ts +16 -1
  13. package/lib/resources/unmanaged-device.d.ts +17 -1
  14. package/lib/routes/connect-webviews/connect-webviews.d.ts +2 -2
  15. package/lib/routes/connected-accounts/connected-accounts.d.ts +1 -1
  16. package/lib/routes/customers/customers.d.ts +13 -0
  17. package/lib/routes/customers/customers.js +1 -0
  18. package/lib/routes/customers/customers.js.map +1 -1
  19. package/lib/routes/devices/devices.d.ts +3 -3
  20. package/lib/routes/devices/unmanaged/unmanaged.d.ts +3 -3
  21. package/lib/routes/seam-http-endpoints.d.ts +1 -0
  22. package/lib/routes/seam-http-endpoints.js +1 -0
  23. package/lib/routes/seam-http-endpoints.js.map +1 -1
  24. package/lib/version.d.ts +1 -1
  25. package/lib/version.js +1 -1
  26. package/package.json +2 -2
  27. package/src/lib/resources/access-grant.ts +2 -2
  28. package/src/lib/resources/access-method.ts +19 -1
  29. package/src/lib/resources/acs-entrance.ts +17 -12
  30. package/src/lib/resources/acs-system.ts +18 -0
  31. package/src/lib/resources/action-attempt.ts +425 -24
  32. package/src/lib/resources/connect-webview.ts +6 -1
  33. package/src/lib/resources/connected-account.ts +6 -1
  34. package/src/lib/resources/device-provider.ts +17 -0
  35. package/src/lib/resources/device.ts +127 -0
  36. package/src/lib/resources/phone.ts +855 -22
  37. package/src/lib/resources/unmanaged-access-grant.ts +2 -2
  38. package/src/lib/resources/unmanaged-access-method.ts +19 -1
  39. package/src/lib/resources/unmanaged-device.ts +17 -0
  40. package/src/lib/routes/connect-webviews/connect-webviews.ts +7 -1
  41. package/src/lib/routes/connected-accounts/connected-accounts.ts +6 -1
  42. package/src/lib/routes/customers/customers.ts +13 -0
  43. package/src/lib/routes/devices/devices.ts +3 -0
  44. package/src/lib/routes/devices/unmanaged/unmanaged.ts +3 -0
  45. package/src/lib/routes/seam-http-endpoints.ts +1 -0
  46. package/src/lib/version.ts +1 -1
@@ -27,6 +27,18 @@ 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 and unmuting.
32
+ */
33
+ can_mute_speaker?: boolean | undefined
34
+ /**
35
+ * Indicates whether the speaker supports pausing and resuming 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
30
42
  /**
31
43
  * Indicates whether the device supports programming offline access codes.
32
44
  */
@@ -59,6 +71,10 @@ export type Device = {
59
71
  * Indicates whether the thermostat supports running climate programs.
60
72
  */
61
73
  can_run_thermostat_programs?: boolean | undefined
74
+ /**
75
+ * Indicates whether the speaker supports setting its volume.
76
+ */
77
+ can_set_speaker_volume?: boolean | undefined
62
78
  /**
63
79
  * Indicates whether the device supports simulating connection in a sandbox.
64
80
  */
@@ -222,6 +238,7 @@ export type Device = {
222
238
  | 'tapo_camera'
223
239
  | 'arlo_camera'
224
240
  | 'reolink_camera'
241
+ | 'sonos_speaker'
225
242
 
226
243
  /**
227
244
  * Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
@@ -1833,6 +1850,41 @@ export type Device = {
1833
1850
  model?: string | undefined
1834
1851
  }
1835
1852
  | undefined
1853
+ /**
1854
+ * Metadata for a Sonos speaker.
1855
+ */
1856
+ sonos_metadata?:
1857
+ | {
1858
+ /**
1859
+ * Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.
1860
+ */
1861
+ bonded_member_models?: Array<string> | undefined
1862
+ /**
1863
+ * Color of the speaker, as reported by Sonos.
1864
+ */
1865
+ color?: string | undefined
1866
+ /**
1867
+ * ID of the Sonos household that the speaker belongs to.
1868
+ */
1869
+ household_id?: string | undefined
1870
+ /**
1871
+ * Model name of the speaker, as reported by Sonos.
1872
+ */
1873
+ model_display_name?: string | undefined
1874
+ /**
1875
+ * ID of the Sonos player for the speaker.
1876
+ */
1877
+ player_id?: string | undefined
1878
+ /**
1879
+ * Name of the speaker, as set in the Sonos app.
1880
+ */
1881
+ player_name?: string | undefined
1882
+ /**
1883
+ * Software version running on the speaker.
1884
+ */
1885
+ software_version?: string | undefined
1886
+ }
1887
+ | undefined
1836
1888
  /**
1837
1889
  * Metadata for a tado° device.
1838
1890
  */
@@ -2274,6 +2326,81 @@ export type Device = {
2274
2326
  time_zone?: string | undefined
2275
2327
  }>
2276
2328
  | undefined
2329
+ /**
2330
+ * Audio state and capabilities of the speaker.
2331
+ */
2332
+ speaker?:
2333
+ | {
2334
+ /**
2335
+ * 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.
2336
+ */
2337
+ grouped_with_device_ids: Array<string>
2338
+
2339
+ /**
2340
+ * 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.
2341
+ */
2342
+ has_fixed_volume: boolean
2343
+
2344
+ /**
2345
+ * Indicates whether the speaker is muted.
2346
+ */
2347
+ is_muted: boolean
2348
+
2349
+ /**
2350
+ * 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.
2351
+ */
2352
+ max_volume: number
2353
+
2354
+ /**
2355
+ * Minimum volume that you can set on the speaker.
2356
+ */
2357
+ min_volume: number
2358
+
2359
+ /**
2360
+ * Content that is currently playing on the speaker.
2361
+ */
2362
+ now_playing?:
2363
+ | {
2364
+ /**
2365
+ * Album of the content that is currently playing.
2366
+ */
2367
+ album?: string | undefined
2368
+ /**
2369
+ * Artist of the content that is currently playing.
2370
+ */
2371
+ artist?: string | undefined
2372
+ /**
2373
+ * Title of the content that is currently playing.
2374
+ */
2375
+ title?: string | undefined
2376
+ }
2377
+ | undefined
2378
+ /**
2379
+ * Playback state of the speaker.
2380
+ */
2381
+ playback_state:
2382
+ 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'
2383
+
2384
+ /**
2385
+ * Indicates whether the speaker can play a chime.
2386
+ */
2387
+ supports_chime: boolean
2388
+
2389
+ /**
2390
+ * 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.
2391
+ */
2392
+ volume: number
2393
+
2394
+ /**
2395
+ * Date and time at which the speaker first reported its current volume.
2396
+ */
2397
+ volume_reported_at?: string | undefined
2398
+ /**
2399
+ * Increment between the volume values that you can set on the speaker.
2400
+ */
2401
+ volume_step: number
2402
+ }
2403
+ | undefined
2277
2404
  /**
2278
2405
  * Supported code lengths for access codes.
2279
2406
  */