@seamapi/http 0.26.0 → 0.27.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 (95) hide show
  1. package/README.md +8 -5
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4 -1
  4. package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +1 -1
  5. package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
  6. package/lib/seam/connect/routes/access-codes.d.ts +1 -1
  7. package/lib/seam/connect/routes/access-codes.js.map +1 -1
  8. package/lib/seam/connect/routes/acs-access-groups.d.ts +1 -1
  9. package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
  10. package/lib/seam/connect/routes/acs-credential-pools.d.ts +1 -1
  11. package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -1
  12. package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +1 -1
  13. package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -1
  14. package/lib/seam/connect/routes/acs-credentials.d.ts +1 -1
  15. package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
  16. package/lib/seam/connect/routes/acs-entrances.d.ts +1 -1
  17. package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
  18. package/lib/seam/connect/routes/acs-systems.d.ts +1 -1
  19. package/lib/seam/connect/routes/acs-systems.js.map +1 -1
  20. package/lib/seam/connect/routes/acs-users.d.ts +1 -1
  21. package/lib/seam/connect/routes/acs-users.js.map +1 -1
  22. package/lib/seam/connect/routes/action-attempts.d.ts +1 -1
  23. package/lib/seam/connect/routes/action-attempts.js.map +1 -1
  24. package/lib/seam/connect/routes/client-sessions.d.ts +1 -1
  25. package/lib/seam/connect/routes/client-sessions.js.map +1 -1
  26. package/lib/seam/connect/routes/connect-webviews.d.ts +1 -1
  27. package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
  28. package/lib/seam/connect/routes/connected-accounts.d.ts +1 -1
  29. package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
  30. package/lib/seam/connect/routes/devices-simulate.d.ts +1 -1
  31. package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
  32. package/lib/seam/connect/routes/devices-unmanaged.d.ts +1 -1
  33. package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
  34. package/lib/seam/connect/routes/devices.d.ts +1 -1
  35. package/lib/seam/connect/routes/devices.js.map +1 -1
  36. package/lib/seam/connect/routes/events.d.ts +1 -1
  37. package/lib/seam/connect/routes/events.js.map +1 -1
  38. package/lib/seam/connect/routes/locks.d.ts +1 -1
  39. package/lib/seam/connect/routes/locks.js.map +1 -1
  40. package/lib/seam/connect/routes/networks.d.ts +1 -1
  41. package/lib/seam/connect/routes/networks.js.map +1 -1
  42. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +1 -1
  43. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
  44. package/lib/seam/connect/routes/phones-simulate.d.ts +1 -1
  45. package/lib/seam/connect/routes/phones-simulate.js.map +1 -1
  46. package/lib/seam/connect/routes/phones.d.ts +1 -1
  47. package/lib/seam/connect/routes/phones.js.map +1 -1
  48. package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +1 -1
  49. package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
  50. package/lib/seam/connect/routes/thermostats.d.ts +1 -1
  51. package/lib/seam/connect/routes/thermostats.js.map +1 -1
  52. package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +1 -1
  53. package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
  54. package/lib/seam/connect/routes/user-identities.d.ts +1 -1
  55. package/lib/seam/connect/routes/user-identities.js.map +1 -1
  56. package/lib/seam/connect/routes/webhooks.d.ts +1 -1
  57. package/lib/seam/connect/routes/webhooks.js.map +1 -1
  58. package/lib/seam/connect/routes/workspaces.d.ts +1 -1
  59. package/lib/seam/connect/routes/workspaces.js.map +1 -1
  60. package/lib/types.d.ts +3 -0
  61. package/lib/types.js +2 -0
  62. package/lib/types.js.map +1 -0
  63. package/lib/version.d.ts +1 -1
  64. package/lib/version.js +1 -1
  65. package/package.json +4 -8
  66. package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +1 -1
  67. package/src/lib/seam/connect/routes/access-codes.ts +1 -1
  68. package/src/lib/seam/connect/routes/acs-access-groups.ts +1 -1
  69. package/src/lib/seam/connect/routes/acs-credential-pools.ts +1 -1
  70. package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +1 -1
  71. package/src/lib/seam/connect/routes/acs-credentials.ts +1 -1
  72. package/src/lib/seam/connect/routes/acs-entrances.ts +1 -1
  73. package/src/lib/seam/connect/routes/acs-systems.ts +1 -1
  74. package/src/lib/seam/connect/routes/acs-users.ts +1 -1
  75. package/src/lib/seam/connect/routes/action-attempts.ts +1 -1
  76. package/src/lib/seam/connect/routes/client-sessions.ts +1 -1
  77. package/src/lib/seam/connect/routes/connect-webviews.ts +1 -1
  78. package/src/lib/seam/connect/routes/connected-accounts.ts +1 -1
  79. package/src/lib/seam/connect/routes/devices-simulate.ts +1 -1
  80. package/src/lib/seam/connect/routes/devices-unmanaged.ts +1 -1
  81. package/src/lib/seam/connect/routes/devices.ts +1 -1
  82. package/src/lib/seam/connect/routes/events.ts +1 -1
  83. package/src/lib/seam/connect/routes/locks.ts +1 -1
  84. package/src/lib/seam/connect/routes/networks.ts +1 -1
  85. package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +1 -1
  86. package/src/lib/seam/connect/routes/phones-simulate.ts +1 -1
  87. package/src/lib/seam/connect/routes/phones.ts +1 -1
  88. package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +1 -1
  89. package/src/lib/seam/connect/routes/thermostats.ts +1 -1
  90. package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +1 -1
  91. package/src/lib/seam/connect/routes/user-identities.ts +1 -1
  92. package/src/lib/seam/connect/routes/webhooks.ts +1 -1
  93. package/src/lib/seam/connect/routes/workspaces.ts +1 -1
  94. package/src/lib/types.ts +8 -0
  95. package/src/lib/version.ts +1 -1
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  export class SeamHttpClientSessions {
37
37
  client: Client
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
  import { SeamHttpDevicesSimulate } from './devices-simulate.js'
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
  import { SeamHttpPhonesSimulate } from './phones-simulate.js'
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
  import { SeamHttpThermostatsClimateSettingSchedules } from './thermostats-climate-setting-schedules.js'
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
  import { SeamHttpUserIdentitiesEnrollmentAutomations } from './user-identities-enrollment-automations.js'
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
7
- import type { SetNonNullable } from 'type-fest'
8
7
 
9
8
  import {
10
9
  getAuthHeadersForClientSessionToken,
@@ -32,6 +31,7 @@ import {
32
31
  parseOptions,
33
32
  } from 'lib/seam/connect/parse-options.js'
34
33
  import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
34
+ import type { SetNonNullable } from 'lib/types.js'
35
35
 
36
36
  import { SeamHttpClientSessions } from './client-sessions.js'
37
37
 
@@ -0,0 +1,8 @@
1
+ export type SetNonNullable<
2
+ BaseType,
3
+ Keys extends keyof BaseType = keyof BaseType,
4
+ > = {
5
+ [Key in keyof BaseType]: Key extends Keys
6
+ ? NonNullable<BaseType[Key]>
7
+ : BaseType[Key]
8
+ }
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '0.26.0'
1
+ const seamapiJavascriptHttpVersion = '0.27.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion