@seamapi/http 1.44.0 → 1.46.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/README.md CHANGED
@@ -83,7 +83,7 @@ $ npm install -D @seamapi/types@latest
83
83
  #### List devices
84
84
 
85
85
  ```ts
86
- import { SeamHttp } from '@seamapi/http/connect'
86
+ import { SeamHttp } from '@seamapi/http'
87
87
 
88
88
  const seam = new SeamHttp()
89
89
  const devices = await seam.devices.list()
@@ -92,7 +92,7 @@ const devices = await seam.devices.list()
92
92
  #### Unlock a door
93
93
 
94
94
  ```ts
95
- import { SeamHttp } from '@seamapi/http/connect'
95
+ import { SeamHttp } from '@seamapi/http'
96
96
 
97
97
  const seam = new SeamHttp()
98
98
  const lock = await seam.locks.get({ name: 'Front Door' })
@@ -277,7 +277,7 @@ import {
277
277
  SeamHttp,
278
278
  isSeamActionAttemptFailedError,
279
279
  isSeamActionAttemptTimeoutError,
280
- } from '@seamapi/http/connect'
280
+ } from '@seamapi/http'
281
281
 
282
282
  const seam = new SeamHttp('your-api-key', {
283
283
  waitForActionAttempt: {
@@ -495,7 +495,7 @@ Options are deep merged with the default options.
495
495
  The Axios client is exposed and may be used or configured directly:
496
496
 
497
497
  ```ts
498
- import { SeamHttp, DevicesListResponse } from '@seamapi/http/connect'
498
+ import { SeamHttp, DevicesListResponse } from '@seamapi/http'
499
499
 
500
500
  const seam = new SeamHttp()
501
501
 
@@ -518,7 +518,7 @@ The `SeamHttpEndpoints` class offers an alternative path-based interface to ever
518
518
  Each endpoint is exposed as simple property that returns the corresponding method from `SeamHttp`.
519
519
 
520
520
  ```ts
521
- import { SeamHttpEndpoints } from '@seamapi/http/connect'
521
+ import { SeamHttpEndpoints } from '@seamapi/http'
522
522
 
523
523
  const seam = new SeamHttpEndpoints()
524
524
  const devices = await seam['/devices/list']()
@@ -532,7 +532,7 @@ Do not use the undocumented API in production environments.
532
532
  Seam is not responsible for any issues you may encounter with the undocumented API.
533
533
 
534
534
  ```ts
535
- import { SeamHttp } from '@seamapi/http/connect'
535
+ import { SeamHttp } from '@seamapi/http'
536
536
 
537
537
  const seam = new SeamHttp({ isUndocumentedApiEnabled: true })
538
538
  ```
package/dist/connect.cjs CHANGED
@@ -6167,8 +6167,8 @@ var _SeamHttpSpaces = class _SeamHttpSpaces {
6167
6167
  list(parameters, options = {}) {
6168
6168
  return new SeamHttpRequest(this, {
6169
6169
  pathname: "/spaces/list",
6170
- method: "GET",
6171
- params: parameters,
6170
+ method: "POST",
6171
+ body: parameters,
6172
6172
  responseKey: "spaces",
6173
6173
  options
6174
6174
  });