@seamapi/http 2.1.0 → 2.3.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 +18 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/lib/api-error-types.js.map +1 -0
- package/lib/auth.d.ts +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/client.d.ts +12 -0
- package/lib/client.js +21 -0
- package/lib/client.js.map +1 -0
- package/lib/error-interceptor.js.map +1 -0
- package/lib/index.js.map +1 -0
- package/lib/openapi.js.map +1 -0
- package/lib/options.d.ts +54 -0
- package/lib/options.js +108 -0
- package/lib/options.js.map +1 -0
- package/lib/parse-options.d.ts +17 -0
- package/lib/parse-options.js +118 -0
- package/lib/parse-options.js.map +1 -0
- package/lib/request-options.d.ts +5 -0
- package/lib/request-options.js +7 -0
- package/lib/request-options.js.map +1 -0
- package/lib/resolve-action-attempt.d.ts +31 -0
- package/lib/resolve-action-attempt.js.map +1 -0
- package/lib/resources/access-code.d.ts +934 -0
- package/lib/resources/access-code.js.map +1 -0
- package/lib/resources/access-grant.d.ts +367 -0
- package/lib/resources/access-grant.js.map +1 -0
- package/lib/resources/access-method.d.ts +269 -0
- package/lib/resources/access-method.js.map +1 -0
- package/lib/resources/acs-access-group.d.ts +322 -0
- package/lib/resources/acs-access-group.js.map +1 -0
- package/lib/resources/acs-credential.d.ts +280 -0
- package/lib/resources/acs-credential.js.map +1 -0
- package/lib/resources/acs-encoder.d.ts +59 -0
- package/lib/resources/acs-encoder.js.map +1 -0
- package/lib/resources/acs-entrance.d.ts +406 -0
- package/lib/resources/acs-entrance.js.map +1 -0
- package/lib/resources/acs-system.d.ts +290 -0
- package/lib/resources/acs-system.js.map +1 -0
- package/lib/resources/acs-user.d.ts +523 -0
- package/lib/resources/acs-user.js.map +1 -0
- package/lib/resources/action-attempt.d.ts +1374 -0
- package/lib/resources/action-attempt.js.map +1 -0
- package/lib/resources/batch.d.ts +57 -0
- package/lib/resources/batch.js.map +1 -0
- package/lib/resources/client-session.d.ts +62 -0
- package/lib/resources/client-session.js.map +1 -0
- package/lib/resources/connect-webview.d.ts +91 -0
- package/lib/resources/connect-webview.js.map +1 -0
- package/lib/resources/connected-account.d.ts +367 -0
- package/lib/resources/connected-account.js.map +1 -0
- package/lib/resources/customer-portal.d.ts +29 -0
- package/lib/resources/customer-portal.js.map +1 -0
- package/lib/resources/device-provider.d.ts +98 -0
- package/lib/resources/device-provider.js.map +1 -0
- package/lib/resources/device.d.ts +2785 -0
- package/lib/resources/device.js.map +1 -0
- package/lib/resources/event.d.ts +5627 -0
- package/lib/resources/event.js.map +1 -0
- package/lib/resources/index.js.map +1 -0
- package/lib/resources/instant-key.d.ts +56 -0
- package/lib/resources/instant-key.js.map +1 -0
- package/lib/resources/noise-threshold.d.ts +33 -0
- package/lib/resources/noise-threshold.js.map +1 -0
- package/lib/resources/phone.d.ts +103 -0
- package/lib/resources/phone.js.map +1 -0
- package/lib/resources/space.d.ts +75 -0
- package/lib/resources/space.js.map +1 -0
- package/lib/resources/thermostat-daily-program.d.ts +38 -0
- package/lib/resources/thermostat-daily-program.js.map +1 -0
- package/lib/resources/thermostat-schedule.d.ts +62 -0
- package/lib/resources/thermostat-schedule.js.map +1 -0
- package/lib/resources/unmanaged-access-code.d.ts +746 -0
- package/lib/resources/unmanaged-access-code.js.map +1 -0
- package/lib/resources/unmanaged-access-grant.d.ts +351 -0
- package/lib/resources/unmanaged-access-grant.js.map +1 -0
- package/lib/resources/unmanaged-access-method.d.ts +257 -0
- package/lib/resources/unmanaged-access-method.js.map +1 -0
- package/lib/resources/unmanaged-device.d.ts +939 -0
- package/lib/resources/unmanaged-device.js.map +1 -0
- package/lib/resources/unmanaged-user-identity.d.ts +102 -0
- package/lib/resources/unmanaged-user-identity.js.map +1 -0
- package/lib/resources/user-identity.d.ts +106 -0
- package/lib/resources/user-identity.js.map +1 -0
- package/lib/resources/webhook.d.ts +21 -0
- package/lib/resources/webhook.js.map +1 -0
- package/lib/resources/workspace.d.ts +63 -0
- package/lib/resources/workspace.js.map +1 -0
- package/lib/routes/access-codes/access-codes.d.ts +495 -0
- package/lib/routes/access-codes/access-codes.js +247 -0
- package/lib/routes/access-codes/access-codes.js.map +1 -0
- package/lib/routes/access-codes/index.js.map +1 -0
- package/lib/routes/access-codes/simulate/index.js.map +1 -0
- package/lib/routes/access-codes/simulate/simulate.d.ts +47 -0
- package/lib/routes/access-codes/simulate/simulate.js +101 -0
- package/lib/routes/access-codes/simulate/simulate.js.map +1 -0
- package/lib/routes/access-codes/unmanaged/index.js.map +1 -0
- package/lib/routes/access-codes/unmanaged/unmanaged.d.ts +164 -0
- package/lib/routes/access-codes/unmanaged/unmanaged.js +155 -0
- package/lib/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
- package/lib/routes/access-grants/access-grants.d.ts +339 -0
- package/lib/routes/access-grants/access-grants.js +177 -0
- package/lib/routes/access-grants/access-grants.js.map +1 -0
- package/lib/routes/access-grants/index.js.map +1 -0
- package/lib/routes/access-grants/unmanaged/index.js.map +1 -0
- package/lib/routes/access-grants/unmanaged/unmanaged.d.ts +107 -0
- package/lib/routes/access-grants/unmanaged/unmanaged.js +129 -0
- package/lib/routes/access-grants/unmanaged/unmanaged.js.map +1 -0
- package/lib/routes/access-methods/access-methods.d.ts +202 -0
- package/lib/routes/access-methods/access-methods.js +190 -0
- package/lib/routes/access-methods/access-methods.js.map +1 -0
- package/lib/routes/access-methods/index.js.map +1 -0
- package/lib/routes/access-methods/unmanaged/index.js.map +1 -0
- package/lib/routes/access-methods/unmanaged/unmanaged.d.ts +70 -0
- package/lib/routes/access-methods/unmanaged/unmanaged.js +113 -0
- package/lib/routes/access-methods/unmanaged/unmanaged.js.map +1 -0
- package/lib/routes/acs/access-groups/access-groups.d.ts +177 -0
- package/lib/routes/acs/access-groups/access-groups.js +173 -0
- package/lib/routes/acs/access-groups/access-groups.js.map +1 -0
- package/lib/routes/acs/access-groups/index.js.map +1 -0
- package/lib/routes/acs/acs.d.ts +31 -0
- package/lib/routes/acs/acs.js +112 -0
- package/lib/routes/acs/acs.js.map +1 -0
- package/lib/routes/acs/credentials/credentials.d.ts +281 -0
- package/lib/routes/acs/credentials/credentials.js +185 -0
- package/lib/routes/acs/credentials/credentials.js.map +1 -0
- package/lib/routes/acs/credentials/index.js.map +1 -0
- package/lib/routes/acs/encoders/encoders.d.ts +165 -0
- package/lib/routes/acs/encoders/encoders.js +166 -0
- package/lib/routes/acs/encoders/encoders.js.map +1 -0
- package/lib/routes/acs/encoders/index.js.map +1 -0
- package/lib/routes/acs/encoders/simulate/index.js.map +1 -0
- package/lib/routes/acs/encoders/simulate/simulate.d.ts +109 -0
- package/lib/routes/acs/encoders/simulate/simulate.js +137 -0
- package/lib/routes/acs/encoders/simulate/simulate.js.map +1 -0
- package/lib/routes/acs/entrances/entrances.d.ts +170 -0
- package/lib/routes/acs/entrances/entrances.js +154 -0
- package/lib/routes/acs/entrances/entrances.js.map +1 -0
- package/lib/routes/acs/entrances/index.js.map +1 -0
- package/lib/routes/acs/index.js.map +1 -0
- package/lib/routes/acs/systems/index.js.map +1 -0
- package/lib/routes/acs/systems/systems.d.ts +150 -0
- package/lib/routes/acs/systems/systems.js +141 -0
- package/lib/routes/acs/systems/systems.js.map +1 -0
- package/lib/routes/acs/users/index.js.map +1 -0
- package/lib/routes/acs/users/users.d.ts +382 -0
- package/lib/routes/acs/users/users.js +221 -0
- package/lib/routes/acs/users/users.js.map +1 -0
- package/lib/routes/action-attempts/action-attempts.d.ts +69 -0
- package/lib/routes/action-attempts/action-attempts.js +117 -0
- package/lib/routes/action-attempts/action-attempts.js.map +1 -0
- package/lib/routes/action-attempts/index.js.map +1 -0
- package/lib/routes/client-sessions/client-sessions.d.ts +240 -0
- package/lib/routes/client-sessions/client-sessions.js +174 -0
- package/lib/routes/client-sessions/client-sessions.js.map +1 -0
- package/lib/routes/client-sessions/index.js.map +1 -0
- package/lib/routes/connect-webviews/connect-webviews.d.ts +160 -0
- package/lib/routes/connect-webviews/connect-webviews.js +147 -0
- package/lib/routes/connect-webviews/connect-webviews.js.map +1 -0
- package/lib/routes/connect-webviews/index.js.map +1 -0
- package/lib/routes/connected-accounts/connected-accounts.d.ts +163 -0
- package/lib/routes/connected-accounts/connected-accounts.js +157 -0
- package/lib/routes/connected-accounts/connected-accounts.js.map +1 -0
- package/lib/routes/connected-accounts/index.js.map +1 -0
- package/lib/routes/connected-accounts/simulate/index.js.map +1 -0
- package/lib/routes/connected-accounts/simulate/simulate.d.ts +36 -0
- package/lib/routes/connected-accounts/simulate/simulate.js +101 -0
- package/lib/routes/connected-accounts/simulate/simulate.js.map +1 -0
- package/lib/routes/customers/customers.d.ts +1511 -0
- package/lib/routes/customers/customers.js +126 -0
- package/lib/routes/customers/customers.js.map +1 -0
- package/lib/routes/customers/index.js.map +1 -0
- package/lib/routes/devices/devices.d.ts +242 -0
- package/lib/routes/devices/devices.js +165 -0
- package/lib/routes/devices/devices.js.map +1 -0
- package/lib/routes/devices/index.js.map +1 -0
- package/lib/routes/devices/simulate/index.js.map +1 -0
- package/lib/routes/devices/simulate/simulate.d.ts +128 -0
- package/lib/routes/devices/simulate/simulate.js +170 -0
- package/lib/routes/devices/simulate/simulate.js.map +1 -0
- package/lib/routes/devices/unmanaged/index.js.map +1 -0
- package/lib/routes/devices/unmanaged/unmanaged.d.ts +155 -0
- package/lib/routes/devices/unmanaged/unmanaged.js +133 -0
- package/lib/routes/devices/unmanaged/unmanaged.js.map +1 -0
- package/lib/routes/events/events.d.ts +174 -0
- package/lib/routes/events/events.js +113 -0
- package/lib/routes/events/events.js.map +1 -0
- package/lib/routes/events/index.js.map +1 -0
- package/lib/routes/index.js.map +1 -0
- package/lib/routes/instant-keys/index.js.map +1 -0
- package/lib/routes/instant-keys/instant-keys.d.ts +79 -0
- package/lib/routes/instant-keys/instant-keys.js +125 -0
- package/lib/routes/instant-keys/instant-keys.js.map +1 -0
- package/lib/routes/locks/index.js.map +1 -0
- package/lib/routes/locks/locks.d.ts +188 -0
- package/lib/routes/locks/locks.js +167 -0
- package/lib/routes/locks/locks.js.map +1 -0
- package/lib/routes/locks/simulate/index.js.map +1 -0
- package/lib/routes/locks/simulate/simulate.d.ts +60 -0
- package/lib/routes/locks/simulate/simulate.js +122 -0
- package/lib/routes/locks/simulate/simulate.js.map +1 -0
- package/lib/routes/noise-sensors/index.js.map +1 -0
- package/lib/routes/noise-sensors/noise-sensors.d.ts +103 -0
- package/lib/routes/noise-sensors/noise-sensors.js +109 -0
- package/lib/routes/noise-sensors/noise-sensors.js.map +1 -0
- package/lib/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
- package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +159 -0
- package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +149 -0
- package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
- package/lib/routes/noise-sensors/simulate/index.js.map +1 -0
- package/lib/routes/noise-sensors/simulate/simulate.d.ts +36 -0
- package/lib/routes/noise-sensors/simulate/simulate.js +101 -0
- package/lib/routes/noise-sensors/simulate/simulate.js.map +1 -0
- package/lib/routes/phones/index.js.map +1 -0
- package/lib/routes/phones/phones.d.ts +81 -0
- package/lib/routes/phones/phones.js +129 -0
- package/lib/routes/phones/phones.js.map +1 -0
- package/lib/routes/phones/simulate/index.js.map +1 -0
- package/lib/routes/phones/simulate/simulate.d.ts +93 -0
- package/lib/routes/phones/simulate/simulate.js +101 -0
- package/lib/routes/phones/simulate/simulate.js.map +1 -0
- package/lib/routes/seam-http-endpoints-without-workspace.d.ts +23 -0
- package/lib/routes/seam-http-endpoints-without-workspace.js +62 -0
- package/lib/routes/seam-http-endpoints-without-workspace.js.map +1 -0
- package/lib/routes/seam-http-endpoints.d.ts +960 -0
- package/lib/routes/seam-http-endpoints.js +2231 -0
- package/lib/routes/seam-http-endpoints.js.map +1 -0
- package/lib/routes/seam-http-without-workspace.d.ts +18 -0
- package/lib/routes/seam-http-without-workspace.js +49 -0
- package/lib/routes/seam-http-without-workspace.js.map +1 -0
- package/lib/routes/seam-http.d.ts +59 -0
- package/lib/routes/seam-http.js +167 -0
- package/lib/routes/seam-http.js.map +1 -0
- package/lib/routes/spaces/index.js.map +1 -0
- package/lib/routes/spaces/spaces.d.ts +363 -0
- package/lib/routes/spaces/spaces.js +233 -0
- package/lib/routes/spaces/spaces.js.map +1 -0
- package/lib/routes/thermostats/daily-programs/daily-programs.d.ts +109 -0
- package/lib/routes/thermostats/daily-programs/daily-programs.js +130 -0
- package/lib/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
- package/lib/routes/thermostats/daily-programs/index.js.map +1 -0
- package/lib/routes/thermostats/index.js.map +1 -0
- package/lib/routes/thermostats/schedules/index.js.map +1 -0
- package/lib/routes/thermostats/schedules/schedules.d.ts +163 -0
- package/lib/routes/thermostats/schedules/schedules.js +149 -0
- package/lib/routes/thermostats/schedules/schedules.js.map +1 -0
- package/lib/routes/thermostats/simulate/index.js.map +1 -0
- package/lib/routes/thermostats/simulate/simulate.d.ts +81 -0
- package/lib/routes/thermostats/simulate/simulate.js +113 -0
- package/lib/routes/thermostats/simulate/simulate.js.map +1 -0
- package/lib/routes/thermostats/thermostats.d.ts +565 -0
- package/lib/routes/thermostats/thermostats.js +302 -0
- package/lib/routes/thermostats/thermostats.js.map +1 -0
- package/lib/routes/user-identities/index.js.map +1 -0
- package/lib/routes/user-identities/unmanaged/index.js.map +1 -0
- package/lib/routes/user-identities/unmanaged/unmanaged.d.ts +97 -0
- package/lib/routes/user-identities/unmanaged/unmanaged.js +127 -0
- package/lib/routes/user-identities/unmanaged/unmanaged.js.map +1 -0
- package/lib/routes/user-identities/user-identities.d.ts +363 -0
- package/lib/routes/user-identities/user-identities.js +265 -0
- package/lib/routes/user-identities/user-identities.js.map +1 -0
- package/lib/routes/webhooks/index.js.map +1 -0
- package/lib/routes/webhooks/webhooks.d.ts +114 -0
- package/lib/routes/webhooks/webhooks.js +149 -0
- package/lib/routes/webhooks/webhooks.js.map +1 -0
- package/lib/routes/workspaces/index.js.map +1 -0
- package/lib/routes/workspaces/workspaces.d.ts +189 -0
- package/lib/routes/workspaces/workspaces.js +154 -0
- package/lib/routes/workspaces/workspaces.js.map +1 -0
- package/lib/seam-http-error.js.map +1 -0
- package/lib/seam-http-request.d.ts +34 -0
- package/lib/seam-http-request.js +101 -0
- package/lib/seam-http-request.js.map +1 -0
- package/lib/seam-paginator.js.map +1 -0
- package/lib/token.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -11
- package/src/index.ts +2 -1
- package/src/lib/auth.ts +280 -0
- package/src/lib/client.ts +36 -0
- package/src/lib/options.ts +242 -0
- package/src/lib/parse-options.ts +182 -0
- package/src/lib/request-options.ts +14 -0
- package/src/lib/resolve-action-attempt.ts +129 -0
- package/src/lib/resources/access-code.ts +1088 -0
- package/src/lib/resources/access-grant.ts +437 -0
- package/src/lib/resources/access-method.ts +312 -0
- package/src/lib/resources/acs-access-group.ts +402 -0
- package/src/lib/resources/acs-credential.ts +332 -0
- package/src/lib/resources/acs-encoder.ts +72 -0
- package/src/lib/resources/acs-entrance.ts +469 -0
- package/src/lib/resources/acs-system.ts +377 -0
- package/src/lib/resources/acs-user.ts +627 -0
- package/src/lib/resources/action-attempt.ts +1672 -0
- package/src/lib/resources/batch.ts +65 -0
- package/src/lib/resources/client-session.ts +75 -0
- package/src/lib/resources/connect-webview.ts +110 -0
- package/src/lib/resources/connected-account.ts +425 -0
- package/src/lib/resources/customer-portal.ts +38 -0
- package/src/lib/resources/device-provider.ts +178 -0
- package/src/lib/resources/device.ts +3217 -0
- package/src/lib/resources/event.ts +6743 -0
- package/src/lib/resources/instant-key.ts +69 -0
- package/src/lib/resources/noise-threshold.ts +43 -0
- package/src/lib/resources/phone.ts +126 -0
- package/src/lib/resources/space.ts +92 -0
- package/src/lib/resources/thermostat-daily-program.ts +48 -0
- package/src/lib/resources/thermostat-schedule.ts +76 -0
- package/src/lib/resources/unmanaged-access-code.ts +870 -0
- package/src/lib/resources/unmanaged-access-grant.ts +420 -0
- package/src/lib/resources/unmanaged-access-method.ts +300 -0
- package/src/lib/resources/unmanaged-device.ts +1157 -0
- package/src/lib/resources/unmanaged-user-identity.ts +124 -0
- package/src/lib/resources/user-identity.ts +128 -0
- package/src/lib/resources/webhook.ts +27 -0
- package/src/lib/resources/workspace.ts +75 -0
- package/src/lib/routes/access-codes/access-codes.ts +818 -0
- package/src/lib/routes/access-codes/simulate/simulate.ts +211 -0
- package/src/lib/routes/access-codes/unmanaged/unmanaged.ts +395 -0
- package/src/lib/routes/access-grants/access-grants.ts +640 -0
- package/src/lib/routes/access-grants/unmanaged/unmanaged.ts +305 -0
- package/src/lib/routes/access-methods/access-methods.ts +523 -0
- package/src/lib/routes/access-methods/unmanaged/unmanaged.ts +250 -0
- package/src/lib/routes/acs/access-groups/access-groups.ts +435 -0
- package/src/lib/routes/acs/acs.ts +193 -0
- package/src/lib/routes/acs/credentials/credentials.ts +569 -0
- package/src/lib/routes/acs/encoders/encoders.ts +429 -0
- package/src/lib/routes/acs/encoders/simulate/simulate.ts +335 -0
- package/src/lib/routes/acs/entrances/entrances.ts +406 -0
- package/src/lib/routes/acs/systems/systems.ts +367 -0
- package/src/lib/routes/acs/users/users.ts +710 -0
- package/src/lib/routes/action-attempts/action-attempts.ts +254 -0
- package/src/lib/routes/client-sessions/client-sessions.ts +495 -0
- package/src/lib/routes/connect-webviews/connect-webviews.ts +452 -0
- package/src/lib/routes/connected-accounts/connected-accounts.ts +399 -0
- package/src/lib/routes/connected-accounts/simulate/simulate.ts +200 -0
- package/src/lib/routes/customers/customers.ts +1838 -0
- package/src/lib/routes/devices/devices.ts +1918 -0
- package/src/lib/routes/devices/simulate/simulate.ts +371 -0
- package/src/lib/routes/devices/unmanaged/unmanaged.ts +486 -0
- package/src/lib/routes/events/events.ts +565 -0
- package/src/lib/routes/instant-keys/instant-keys.ts +269 -0
- package/src/lib/routes/locks/locks.ts +532 -0
- package/src/lib/routes/locks/simulate/simulate.ts +257 -0
- package/src/lib/routes/noise-sensors/noise-sensors.ts +272 -0
- package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +400 -0
- package/src/lib/routes/noise-sensors/simulate/simulate.ts +197 -0
- package/src/lib/routes/phones/phones.ts +269 -0
- package/src/lib/routes/phones/simulate/simulate.ts +256 -0
- package/src/lib/routes/seam-http-endpoints-without-workspace.ts +132 -0
- package/src/lib/routes/seam-http-endpoints.ts +4457 -0
- package/src/lib/routes/seam-http-without-workspace.ts +96 -0
- package/src/lib/routes/seam-http.ts +262 -0
- package/src/lib/routes/spaces/spaces.ts +721 -0
- package/src/lib/routes/thermostats/daily-programs/daily-programs.ts +322 -0
- package/src/lib/routes/thermostats/schedules/schedules.ts +394 -0
- package/src/lib/routes/thermostats/simulate/simulate.ts +263 -0
- package/src/lib/routes/thermostats/thermostats.ts +1067 -0
- package/src/lib/routes/user-identities/unmanaged/unmanaged.ts +299 -0
- package/src/lib/routes/user-identities/user-identities.ts +756 -0
- package/src/lib/routes/webhooks/webhooks.ts +333 -0
- package/src/lib/routes/workspaces/workspaces.ts +425 -0
- package/src/lib/seam-http-request.ts +201 -0
- package/src/lib/version.ts +1 -1
- package/connect.d.ts +0 -2
- package/connect.js +0 -3
- package/connect.js.map +0 -1
- package/lib/seam/connect/api-error-types.js.map +0 -1
- package/lib/seam/connect/auth.d.ts +0 -10
- package/lib/seam/connect/auth.js.map +0 -1
- package/lib/seam/connect/client.d.ts +0 -10
- package/lib/seam/connect/client.js +0 -19
- package/lib/seam/connect/client.js.map +0 -1
- package/lib/seam/connect/error-interceptor.js.map +0 -1
- package/lib/seam/connect/index.js.map +0 -1
- package/lib/seam/connect/openapi.js.map +0 -1
- package/lib/seam/connect/options.d.ts +0 -57
- package/lib/seam/connect/options.js +0 -108
- package/lib/seam/connect/options.js.map +0 -1
- package/lib/seam/connect/parse-options.d.ts +0 -18
- package/lib/seam/connect/parse-options.js +0 -120
- package/lib/seam/connect/parse-options.js.map +0 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +0 -27
- package/lib/seam/connect/resolve-action-attempt.js.map +0 -1
- package/lib/seam/connect/resources/access-code.d.ts +0 -247
- package/lib/seam/connect/resources/access-code.js.map +0 -1
- package/lib/seam/connect/resources/access-grant.d.ts +0 -98
- package/lib/seam/connect/resources/access-grant.js.map +0 -1
- package/lib/seam/connect/resources/access-method.d.ts +0 -73
- package/lib/seam/connect/resources/access-method.js.map +0 -1
- package/lib/seam/connect/resources/acs-access-group.d.ts +0 -89
- package/lib/seam/connect/resources/acs-access-group.js.map +0 -1
- package/lib/seam/connect/resources/acs-credential.d.ts +0 -74
- package/lib/seam/connect/resources/acs-credential.js.map +0 -1
- package/lib/seam/connect/resources/acs-encoder.d.ts +0 -13
- package/lib/seam/connect/resources/acs-encoder.js.map +0 -1
- package/lib/seam/connect/resources/acs-entrance.d.ts +0 -113
- package/lib/seam/connect/resources/acs-entrance.js.map +0 -1
- package/lib/seam/connect/resources/acs-system.d.ts +0 -74
- package/lib/seam/connect/resources/acs-system.js.map +0 -1
- package/lib/seam/connect/resources/acs-user.d.ts +0 -154
- package/lib/seam/connect/resources/acs-user.js.map +0 -1
- package/lib/seam/connect/resources/action-attempt.d.ts +0 -420
- package/lib/seam/connect/resources/action-attempt.js.map +0 -1
- package/lib/seam/connect/resources/batch.d.ts +0 -54
- package/lib/seam/connect/resources/batch.js.map +0 -1
- package/lib/seam/connect/resources/client-session.d.ts +0 -14
- package/lib/seam/connect/resources/client-session.js.map +0 -1
- package/lib/seam/connect/resources/connect-webview.d.ts +0 -21
- package/lib/seam/connect/resources/connect-webview.js.map +0 -1
- package/lib/seam/connect/resources/connected-account.d.ts +0 -98
- package/lib/seam/connect/resources/connected-account.js.map +0 -1
- package/lib/seam/connect/resources/customer-portal.d.ts +0 -7
- package/lib/seam/connect/resources/customer-portal.js.map +0 -1
- package/lib/seam/connect/resources/device-provider.d.ts +0 -26
- package/lib/seam/connect/resources/device-provider.js.map +0 -1
- package/lib/seam/connect/resources/device.d.ts +0 -763
- package/lib/seam/connect/resources/device.js.map +0 -1
- package/lib/seam/connect/resources/event.d.ts +0 -1613
- package/lib/seam/connect/resources/event.js.map +0 -1
- package/lib/seam/connect/resources/index.js.map +0 -1
- package/lib/seam/connect/resources/instant-key.d.ts +0 -15
- package/lib/seam/connect/resources/instant-key.js.map +0 -1
- package/lib/seam/connect/resources/noise-threshold.d.ts +0 -9
- package/lib/seam/connect/resources/noise-threshold.js.map +0 -1
- package/lib/seam/connect/resources/phone.d.ts +0 -31
- package/lib/seam/connect/resources/phone.js.map +0 -1
- package/lib/seam/connect/resources/space.d.ts +0 -21
- package/lib/seam/connect/resources/space.js.map +0 -1
- package/lib/seam/connect/resources/thermostat-daily-program.d.ts +0 -11
- package/lib/seam/connect/resources/thermostat-daily-program.js.map +0 -1
- package/lib/seam/connect/resources/thermostat-schedule.d.ts +0 -17
- package/lib/seam/connect/resources/thermostat-schedule.js.map +0 -1
- package/lib/seam/connect/resources/unmanaged-access-code.d.ts +0 -194
- package/lib/seam/connect/resources/unmanaged-access-code.js.map +0 -1
- package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +0 -94
- package/lib/seam/connect/resources/unmanaged-access-grant.js.map +0 -1
- package/lib/seam/connect/resources/unmanaged-access-method.d.ts +0 -70
- package/lib/seam/connect/resources/unmanaged-access-method.js.map +0 -1
- package/lib/seam/connect/resources/unmanaged-device.d.ts +0 -249
- package/lib/seam/connect/resources/unmanaged-device.js.map +0 -1
- package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +0 -26
- package/lib/seam/connect/resources/unmanaged-user-identity.js.map +0 -1
- package/lib/seam/connect/resources/user-identity.d.ts +0 -27
- package/lib/seam/connect/resources/user-identity.js.map +0 -1
- package/lib/seam/connect/resources/webhook.d.ts +0 -6
- package/lib/seam/connect/resources/webhook.js.map +0 -1
- package/lib/seam/connect/resources/workspace.d.ts +0 -18
- package/lib/seam/connect/resources/workspace.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +0 -207
- package/lib/seam/connect/routes/access-codes/access-codes.js +0 -187
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/index.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +0 -35
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js +0 -98
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +0 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +0 -92
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +0 -134
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +0 -162
- package/lib/seam/connect/routes/access-grants/access-grants.js +0 -156
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +0 -1
- package/lib/seam/connect/routes/access-grants/index.js.map +0 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/index.js.map +0 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +0 -64
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +0 -116
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +0 -124
- package/lib/seam/connect/routes/access-methods/access-methods.js +0 -156
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +0 -1
- package/lib/seam/connect/routes/access-methods/index.js.map +0 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/index.js.map +0 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +0 -49
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +0 -107
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +0 -114
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js +0 -152
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +0 -1
- package/lib/seam/connect/routes/acs/access-groups/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/acs.d.ts +0 -31
- package/lib/seam/connect/routes/acs/acs.js +0 -112
- package/lib/seam/connect/routes/acs/acs.js.map +0 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +0 -155
- package/lib/seam/connect/routes/acs/credentials/credentials.js +0 -161
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +0 -1
- package/lib/seam/connect/routes/acs/credentials/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +0 -99
- package/lib/seam/connect/routes/acs/encoders/encoders.js +0 -138
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +0 -1
- package/lib/seam/connect/routes/acs/encoders/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +0 -70
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +0 -125
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +0 -98
- package/lib/seam/connect/routes/acs/entrances/entrances.js +0 -134
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +0 -1
- package/lib/seam/connect/routes/acs/entrances/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/systems/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +0 -86
- package/lib/seam/connect/routes/acs/systems/systems.js +0 -125
- package/lib/seam/connect/routes/acs/systems/systems.js.map +0 -1
- package/lib/seam/connect/routes/acs/users/index.js.map +0 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +0 -193
- package/lib/seam/connect/routes/acs/users/users.js +0 -188
- package/lib/seam/connect/routes/acs/users/users.js.map +0 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +0 -48
- package/lib/seam/connect/routes/action-attempts/action-attempts.js +0 -107
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +0 -1
- package/lib/seam/connect/routes/action-attempts/index.js.map +0 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +0 -127
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +0 -151
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +0 -1
- package/lib/seam/connect/routes/client-sessions/index.js.map +0 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +0 -84
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +0 -125
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +0 -1
- package/lib/seam/connect/routes/connect-webviews/index.js.map +0 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +0 -93
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +0 -138
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +0 -1
- package/lib/seam/connect/routes/connected-accounts/index.js.map +0 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +0 -30
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +0 -98
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +0 -469
- package/lib/seam/connect/routes/customers/customers.js +0 -116
- package/lib/seam/connect/routes/customers/customers.js.map +0 -1
- package/lib/seam/connect/routes/customers/index.js.map +0 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +0 -120
- package/lib/seam/connect/routes/devices/devices.js +0 -142
- package/lib/seam/connect/routes/devices/devices.js.map +0 -1
- package/lib/seam/connect/routes/devices/index.js.map +0 -1
- package/lib/seam/connect/routes/devices/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +0 -86
- package/lib/seam/connect/routes/devices/simulate/simulate.js +0 -143
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/devices/unmanaged/index.js.map +0 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +0 -75
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +0 -116
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/events/events.d.ts +0 -75
- package/lib/seam/connect/routes/events/events.js +0 -107
- package/lib/seam/connect/routes/events/events.js.map +0 -1
- package/lib/seam/connect/routes/events/index.js.map +0 -1
- package/lib/seam/connect/routes/index.js.map +0 -1
- package/lib/seam/connect/routes/instant-keys/index.js.map +0 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +0 -58
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +0 -116
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +0 -1
- package/lib/seam/connect/routes/locks/index.js.map +0 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +0 -103
- package/lib/seam/connect/routes/locks/locks.js +0 -138
- package/lib/seam/connect/routes/locks/locks.js.map +0 -1
- package/lib/seam/connect/routes/locks/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +0 -45
- package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -107
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/index.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +0 -52
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +0 -106
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +0 -93
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +0 -134
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +0 -30
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +0 -98
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/phones/index.js.map +0 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +0 -60
- package/lib/seam/connect/routes/phones/phones.js +0 -120
- package/lib/seam/connect/routes/phones/phones.js.map +0 -1
- package/lib/seam/connect/routes/phones/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +0 -48
- package/lib/seam/connect/routes/phones/simulate/simulate.js +0 -98
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +0 -17
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +0 -56
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +0 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +0 -264
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -1535
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +0 -1
- package/lib/seam/connect/routes/seam-http-without-workspace.d.ts +0 -18
- package/lib/seam/connect/routes/seam-http-without-workspace.js +0 -49
- package/lib/seam/connect/routes/seam-http-without-workspace.js.map +0 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -59
- package/lib/seam/connect/routes/seam-http.js +0 -167
- package/lib/seam/connect/routes/seam-http.js.map +0 -1
- package/lib/seam/connect/routes/spaces/index.js.map +0 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +0 -198
- package/lib/seam/connect/routes/spaces/spaces.js +0 -197
- package/lib/seam/connect/routes/spaces/spaces.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +0 -67
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -116
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/index.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/schedules/index.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +0 -94
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js +0 -134
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/simulate/index.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +0 -48
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js +0 -107
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +0 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +0 -265
- package/lib/seam/connect/routes/thermostats/thermostats.js +0 -227
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +0 -1
- package/lib/seam/connect/routes/user-identities/index.js.map +0 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/index.js.map +0 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +0 -62
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +0 -116
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +0 -218
- package/lib/seam/connect/routes/user-identities/user-identities.js +0 -219
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +0 -1
- package/lib/seam/connect/routes/webhooks/index.js.map +0 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +0 -81
- package/lib/seam/connect/routes/webhooks/webhooks.js +0 -134
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +0 -1
- package/lib/seam/connect/routes/workspaces/index.js.map +0 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +0 -101
- package/lib/seam/connect/routes/workspaces/workspaces.js +0 -134
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +0 -1
- package/lib/seam/connect/seam-http-error.js.map +0 -1
- package/lib/seam/connect/seam-http-request.d.ts +0 -32
- package/lib/seam/connect/seam-http-request.js +0 -102
- package/lib/seam/connect/seam-http-request.js.map +0 -1
- package/lib/seam/connect/seam-paginator.js.map +0 -1
- package/lib/seam/connect/token.js.map +0 -1
- package/src/connect.ts +0 -2
- package/src/lib/seam/connect/auth.ts +0 -276
- package/src/lib/seam/connect/client.ts +0 -32
- package/src/lib/seam/connect/options.ts +0 -242
- package/src/lib/seam/connect/parse-options.ts +0 -187
- package/src/lib/seam/connect/resolve-action-attempt.ts +0 -126
- package/src/lib/seam/connect/resources/access-code.ts +0 -404
- package/src/lib/seam/connect/resources/access-grant.ts +0 -169
- package/src/lib/seam/connect/resources/access-method.ts +0 -117
- package/src/lib/seam/connect/resources/acs-access-group.ts +0 -169
- package/src/lib/seam/connect/resources/acs-credential.ts +0 -127
- package/src/lib/seam/connect/resources/acs-encoder.ts +0 -26
- package/src/lib/seam/connect/resources/acs-entrance.ts +0 -177
- package/src/lib/seam/connect/resources/acs-system.ts +0 -163
- package/src/lib/seam/connect/resources/acs-user.ts +0 -261
- package/src/lib/seam/connect/resources/action-attempt.ts +0 -716
- package/src/lib/seam/connect/resources/batch.ts +0 -62
- package/src/lib/seam/connect/resources/client-session.ts +0 -27
- package/src/lib/seam/connect/resources/connect-webview.ts +0 -40
- package/src/lib/seam/connect/resources/connected-account.ts +0 -158
- package/src/lib/seam/connect/resources/customer-portal.ts +0 -16
- package/src/lib/seam/connect/resources/device-provider.ts +0 -106
- package/src/lib/seam/connect/resources/device.ts +0 -1197
- package/src/lib/seam/connect/resources/event.ts +0 -2728
- package/src/lib/seam/connect/resources/instant-key.ts +0 -28
- package/src/lib/seam/connect/resources/noise-threshold.ts +0 -19
- package/src/lib/seam/connect/resources/phone.ts +0 -54
- package/src/lib/seam/connect/resources/space.ts +0 -38
- package/src/lib/seam/connect/resources/thermostat-daily-program.ts +0 -21
- package/src/lib/seam/connect/resources/thermostat-schedule.ts +0 -31
- package/src/lib/seam/connect/resources/unmanaged-access-code.ts +0 -320
- package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +0 -164
- package/src/lib/seam/connect/resources/unmanaged-access-method.ts +0 -114
- package/src/lib/seam/connect/resources/unmanaged-device.ts +0 -469
- package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +0 -48
- package/src/lib/seam/connect/resources/user-identity.ts +0 -49
- package/src/lib/seam/connect/resources/webhook.ts +0 -12
- package/src/lib/seam/connect/resources/workspace.ts +0 -29
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +0 -527
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +0 -199
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +0 -322
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +0 -460
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +0 -262
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +0 -431
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +0 -229
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +0 -372
- package/src/lib/seam/connect/routes/acs/acs.ts +0 -193
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +0 -436
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +0 -350
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +0 -295
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +0 -329
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +0 -303
- package/src/lib/seam/connect/routes/acs/users/users.ts +0 -521
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +0 -229
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +0 -382
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +0 -376
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +0 -329
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +0 -194
- package/src/lib/seam/connect/routes/customers/customers.ts +0 -780
- package/src/lib/seam/connect/routes/devices/devices.ts +0 -1795
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +0 -329
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +0 -406
- package/src/lib/seam/connect/routes/events/events.ts +0 -466
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +0 -248
- package/src/lib/seam/connect/routes/locks/locks.ts +0 -434
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -233
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +0 -221
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +0 -334
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +0 -191
- package/src/lib/seam/connect/routes/phones/phones.ts +0 -248
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +0 -211
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +0 -126
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -3761
- package/src/lib/seam/connect/routes/seam-http-without-workspace.ts +0 -96
- package/src/lib/seam/connect/routes/seam-http.ts +0 -262
- package/src/lib/seam/connect/routes/spaces/spaces.ts +0 -555
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -275
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +0 -325
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +0 -230
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -734
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +0 -264
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +0 -610
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +0 -300
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +0 -332
- package/src/lib/seam/connect/seam-http-request.ts +0 -196
- /package/lib/{seam/connect/api-error-types.d.ts → api-error-types.d.ts} +0 -0
- /package/lib/{seam/connect/api-error-types.js → api-error-types.js} +0 -0
- /package/lib/{seam/connect/auth.js → auth.js} +0 -0
- /package/lib/{seam/connect/error-interceptor.d.ts → error-interceptor.d.ts} +0 -0
- /package/lib/{seam/connect/error-interceptor.js → error-interceptor.js} +0 -0
- /package/lib/{seam/connect/index.d.ts → index.d.ts} +0 -0
- /package/lib/{seam/connect/index.js → index.js} +0 -0
- /package/lib/{seam/connect/openapi.d.ts → openapi.d.ts} +0 -0
- /package/lib/{seam/connect/openapi.js → openapi.js} +0 -0
- /package/lib/{seam/connect/resolve-action-attempt.js → resolve-action-attempt.js} +0 -0
- /package/lib/{seam/connect/resources → resources}/access-code.js +0 -0
- /package/lib/{seam/connect/resources → resources}/access-grant.js +0 -0
- /package/lib/{seam/connect/resources → resources}/access-method.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-access-group.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-credential.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-encoder.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-entrance.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-system.js +0 -0
- /package/lib/{seam/connect/resources → resources}/acs-user.js +0 -0
- /package/lib/{seam/connect/resources → resources}/action-attempt.js +0 -0
- /package/lib/{seam/connect/resources → resources}/batch.js +0 -0
- /package/lib/{seam/connect/resources → resources}/client-session.js +0 -0
- /package/lib/{seam/connect/resources → resources}/connect-webview.js +0 -0
- /package/lib/{seam/connect/resources → resources}/connected-account.js +0 -0
- /package/lib/{seam/connect/resources → resources}/customer-portal.js +0 -0
- /package/lib/{seam/connect/resources → resources}/device-provider.js +0 -0
- /package/lib/{seam/connect/resources → resources}/device.js +0 -0
- /package/lib/{seam/connect/resources → resources}/event.js +0 -0
- /package/lib/{seam/connect/resources → resources}/index.d.ts +0 -0
- /package/lib/{seam/connect/resources → resources}/index.js +0 -0
- /package/lib/{seam/connect/resources → resources}/instant-key.js +0 -0
- /package/lib/{seam/connect/resources → resources}/noise-threshold.js +0 -0
- /package/lib/{seam/connect/resources → resources}/phone.js +0 -0
- /package/lib/{seam/connect/resources → resources}/space.js +0 -0
- /package/lib/{seam/connect/resources → resources}/thermostat-daily-program.js +0 -0
- /package/lib/{seam/connect/resources → resources}/thermostat-schedule.js +0 -0
- /package/lib/{seam/connect/resources → resources}/unmanaged-access-code.js +0 -0
- /package/lib/{seam/connect/resources → resources}/unmanaged-access-grant.js +0 -0
- /package/lib/{seam/connect/resources → resources}/unmanaged-access-method.js +0 -0
- /package/lib/{seam/connect/resources → resources}/unmanaged-device.js +0 -0
- /package/lib/{seam/connect/resources → resources}/unmanaged-user-identity.js +0 -0
- /package/lib/{seam/connect/resources → resources}/user-identity.js +0 -0
- /package/lib/{seam/connect/resources → resources}/webhook.js +0 -0
- /package/lib/{seam/connect/resources → resources}/workspace.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-grants/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-grants/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-methods/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-methods/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/access-groups/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/credentials/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/credentials/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/encoders/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/encoders/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/entrances/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/entrances/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/systems/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/systems/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/users/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/acs/users/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/action-attempts/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/action-attempts/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/client-sessions/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/client-sessions/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/connect-webviews/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/connect-webviews/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/connected-accounts/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/connected-accounts/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/customers/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/customers/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/devices/unmanaged/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/events/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/events/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/instant-keys/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/instant-keys/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/locks/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/locks/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/locks/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/locks/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/phones/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/phones/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/phones/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/phones/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/spaces/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/spaces/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/schedules/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/thermostats/simulate/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/user-identities/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/user-identities/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/webhooks/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/webhooks/index.js +0 -0
- /package/lib/{seam/connect/routes → routes}/workspaces/index.d.ts +0 -0
- /package/lib/{seam/connect/routes → routes}/workspaces/index.js +0 -0
- /package/lib/{seam/connect/seam-http-error.d.ts → seam-http-error.d.ts} +0 -0
- /package/lib/{seam/connect/seam-http-error.js → seam-http-error.js} +0 -0
- /package/lib/{seam/connect/seam-paginator.d.ts → seam-paginator.d.ts} +0 -0
- /package/lib/{seam/connect/seam-paginator.js → seam-paginator.js} +0 -0
- /package/lib/{seam/connect/token.d.ts → token.d.ts} +0 -0
- /package/lib/{seam/connect/token.js → token.js} +0 -0
- /package/src/lib/{seam/connect/api-error-types.ts → api-error-types.ts} +0 -0
- /package/src/lib/{seam/connect/env.d.ts → env.d.ts} +0 -0
- /package/src/lib/{seam/connect/error-interceptor.ts → error-interceptor.ts} +0 -0
- /package/src/lib/{seam/connect/index.ts → index.ts} +0 -0
- /package/src/lib/{seam/connect/openapi.ts → openapi.ts} +0 -0
- /package/src/lib/{seam/connect/resources → resources}/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-codes/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-codes/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-codes/unmanaged/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-grants/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-grants/unmanaged/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-methods/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/access-methods/unmanaged/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/access-groups/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/credentials/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/encoders/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/encoders/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/entrances/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/systems/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/acs/users/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/action-attempts/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/client-sessions/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/connect-webviews/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/connected-accounts/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/connected-accounts/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/customers/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/devices/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/devices/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/devices/unmanaged/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/events/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/instant-keys/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/locks/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/locks/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/noise-sensors/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/noise-sensors/noise-thresholds/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/noise-sensors/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/phones/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/phones/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/spaces/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/thermostats/daily-programs/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/thermostats/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/thermostats/schedules/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/thermostats/simulate/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/user-identities/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/user-identities/unmanaged/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/webhooks/index.ts +0 -0
- /package/src/lib/{seam/connect/routes → routes}/workspaces/index.ts +0 -0
- /package/src/lib/{seam/connect/seam-http-error.ts → seam-http-error.ts} +0 -0
- /package/src/lib/{seam/connect/seam-paginator.ts → seam-paginator.ts} +0 -0
- /package/src/lib/{seam/connect/token.ts → token.ts} +0 -0
|
@@ -0,0 +1,1067 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
getAuthHeadersForClientSessionToken,
|
|
8
|
+
warnOnInsecureuserIdentifierKey,
|
|
9
|
+
} from 'lib/auth.js'
|
|
10
|
+
import { type Client, createClient } from 'lib/client.js'
|
|
11
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
12
|
+
import {
|
|
13
|
+
isSeamHttpOptionsWithApiKey,
|
|
14
|
+
isSeamHttpOptionsWithClient,
|
|
15
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
16
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
17
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
18
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
19
|
+
SeamHttpInvalidOptionsError,
|
|
20
|
+
type SeamHttpOptions,
|
|
21
|
+
type SeamHttpOptionsWithApiKey,
|
|
22
|
+
type SeamHttpOptionsWithClient,
|
|
23
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
24
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
25
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
26
|
+
type SeamHttpRequestOptions,
|
|
27
|
+
} from 'lib/options.js'
|
|
28
|
+
import {
|
|
29
|
+
limitToSeamHttpRequestOptions,
|
|
30
|
+
parseOptions,
|
|
31
|
+
} from 'lib/parse-options.js'
|
|
32
|
+
import type { ActionAttempt } from 'lib/resources/action-attempt.js'
|
|
33
|
+
import type { Device } from 'lib/resources/device.js'
|
|
34
|
+
import { SeamHttpActionAttempts } from 'lib/routes/action-attempts/index.js'
|
|
35
|
+
import { SeamHttpClientSessions } from 'lib/routes/client-sessions/index.js'
|
|
36
|
+
import { SeamHttpRequest } from 'lib/seam-http-request.js'
|
|
37
|
+
import { SeamPaginator } from 'lib/seam-paginator.js'
|
|
38
|
+
|
|
39
|
+
import { SeamHttpThermostatsDailyPrograms } from './daily-programs/index.js'
|
|
40
|
+
import { SeamHttpThermostatsSchedules } from './schedules/index.js'
|
|
41
|
+
import { SeamHttpThermostatsSimulate } from './simulate/index.js'
|
|
42
|
+
|
|
43
|
+
export class SeamHttpThermostats {
|
|
44
|
+
client: Client
|
|
45
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
46
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
47
|
+
static ltsVersion = seamApiLtsVersion
|
|
48
|
+
|
|
49
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
50
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
51
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
52
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static fromClient(
|
|
56
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
57
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
58
|
+
): SeamHttpThermostats {
|
|
59
|
+
const constructorOptions = { ...options, client }
|
|
60
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
61
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
62
|
+
}
|
|
63
|
+
return new SeamHttpThermostats(constructorOptions)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static fromApiKey(
|
|
67
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
68
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
69
|
+
): SeamHttpThermostats {
|
|
70
|
+
const constructorOptions = { ...options, apiKey }
|
|
71
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
72
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
73
|
+
}
|
|
74
|
+
return new SeamHttpThermostats(constructorOptions)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static fromClientSessionToken(
|
|
78
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
79
|
+
options: Omit<
|
|
80
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
81
|
+
'clientSessionToken'
|
|
82
|
+
> = {},
|
|
83
|
+
): SeamHttpThermostats {
|
|
84
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
85
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
86
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
87
|
+
}
|
|
88
|
+
return new SeamHttpThermostats(constructorOptions)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static async fromPublishableKey(
|
|
92
|
+
publishableKey: string,
|
|
93
|
+
userIdentifierKey: string,
|
|
94
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
95
|
+
): Promise<SeamHttpThermostats> {
|
|
96
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
97
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
98
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
99
|
+
throw new SeamHttpInvalidOptionsError(
|
|
100
|
+
'The client option cannot be used with SeamHttpThermostats.fromPublishableKey',
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
const client = createClient(clientOptions)
|
|
104
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
105
|
+
const { token } = await clientSessions.getOrCreate({
|
|
106
|
+
user_identifier_key: userIdentifierKey,
|
|
107
|
+
})
|
|
108
|
+
return SeamHttpThermostats.fromClientSessionToken(token, options)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static fromConsoleSessionToken(
|
|
112
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
113
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
114
|
+
options: Omit<
|
|
115
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
116
|
+
'consoleSessionToken' | 'workspaceId'
|
|
117
|
+
> = {},
|
|
118
|
+
): SeamHttpThermostats {
|
|
119
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
120
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
121
|
+
throw new SeamHttpInvalidOptionsError(
|
|
122
|
+
'Missing consoleSessionToken or workspaceId',
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
return new SeamHttpThermostats(constructorOptions)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static fromPersonalAccessToken(
|
|
129
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
130
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
131
|
+
options: Omit<
|
|
132
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
133
|
+
'personalAccessToken' | 'workspaceId'
|
|
134
|
+
> = {},
|
|
135
|
+
): SeamHttpThermostats {
|
|
136
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
137
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
138
|
+
throw new SeamHttpInvalidOptionsError(
|
|
139
|
+
'Missing personalAccessToken or workspaceId',
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
return new SeamHttpThermostats(constructorOptions)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
146
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
147
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
148
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
async updateClientSessionToken(
|
|
152
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
153
|
+
): Promise<void> {
|
|
154
|
+
const { headers } = this.client.defaults
|
|
155
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
156
|
+
clientSessionToken,
|
|
157
|
+
})
|
|
158
|
+
for (const key of Object.keys(authHeaders)) {
|
|
159
|
+
if (headers[key] == null) {
|
|
160
|
+
throw new Error(
|
|
161
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
166
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
167
|
+
await clientSessions.get()
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
get dailyPrograms(): SeamHttpThermostatsDailyPrograms {
|
|
171
|
+
return SeamHttpThermostatsDailyPrograms.fromClient(
|
|
172
|
+
this.client,
|
|
173
|
+
this.defaults,
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
get schedules(): SeamHttpThermostatsSchedules {
|
|
178
|
+
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
get simulate(): SeamHttpThermostatsSimulate {
|
|
182
|
+
return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Activates a specified [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
187
|
+
*/
|
|
188
|
+
activateClimatePreset(
|
|
189
|
+
parameters: ThermostatsActivateClimatePresetParameters,
|
|
190
|
+
options: ThermostatsActivateClimatePresetOptions = {},
|
|
191
|
+
): ThermostatsActivateClimatePresetRequest {
|
|
192
|
+
return new SeamHttpRequest(this, {
|
|
193
|
+
pathname: '/thermostats/activate_climate_preset',
|
|
194
|
+
method: 'POST',
|
|
195
|
+
body: parameters,
|
|
196
|
+
responseKey: 'action_attempt',
|
|
197
|
+
options,
|
|
198
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
199
|
+
...this.defaults,
|
|
200
|
+
waitForActionAttempt: false,
|
|
201
|
+
}),
|
|
202
|
+
})
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Sets a specified [thermostat](https://docs.seam.co/capability-guides/thermostats) to [cool mode](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings).
|
|
207
|
+
*/
|
|
208
|
+
cool(
|
|
209
|
+
parameters: ThermostatsCoolParameters,
|
|
210
|
+
options: ThermostatsCoolOptions = {},
|
|
211
|
+
): ThermostatsCoolRequest {
|
|
212
|
+
return new SeamHttpRequest(this, {
|
|
213
|
+
pathname: '/thermostats/cool',
|
|
214
|
+
method: 'POST',
|
|
215
|
+
body: parameters,
|
|
216
|
+
responseKey: 'action_attempt',
|
|
217
|
+
options,
|
|
218
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
219
|
+
...this.defaults,
|
|
220
|
+
waitForActionAttempt: false,
|
|
221
|
+
}),
|
|
222
|
+
})
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Creates a [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
227
|
+
*/
|
|
228
|
+
createClimatePreset(
|
|
229
|
+
parameters: ThermostatsCreateClimatePresetParameters,
|
|
230
|
+
options: ThermostatsCreateClimatePresetOptions = {},
|
|
231
|
+
): ThermostatsCreateClimatePresetRequest {
|
|
232
|
+
return new SeamHttpRequest(this, {
|
|
233
|
+
pathname: '/thermostats/create_climate_preset',
|
|
234
|
+
method: 'POST',
|
|
235
|
+
body: parameters,
|
|
236
|
+
responseKey: undefined,
|
|
237
|
+
options,
|
|
238
|
+
})
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Deletes a specified [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
243
|
+
*/
|
|
244
|
+
deleteClimatePreset(
|
|
245
|
+
parameters: ThermostatsDeleteClimatePresetParameters,
|
|
246
|
+
options: ThermostatsDeleteClimatePresetOptions = {},
|
|
247
|
+
): ThermostatsDeleteClimatePresetRequest {
|
|
248
|
+
return new SeamHttpRequest(this, {
|
|
249
|
+
pathname: '/thermostats/delete_climate_preset',
|
|
250
|
+
method: 'POST',
|
|
251
|
+
body: parameters,
|
|
252
|
+
responseKey: undefined,
|
|
253
|
+
options,
|
|
254
|
+
})
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Sets a specified [thermostat](https://docs.seam.co/capability-guides/thermostats) to [heat mode](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings).
|
|
259
|
+
*/
|
|
260
|
+
heat(
|
|
261
|
+
parameters: ThermostatsHeatParameters,
|
|
262
|
+
options: ThermostatsHeatOptions = {},
|
|
263
|
+
): ThermostatsHeatRequest {
|
|
264
|
+
return new SeamHttpRequest(this, {
|
|
265
|
+
pathname: '/thermostats/heat',
|
|
266
|
+
method: 'POST',
|
|
267
|
+
body: parameters,
|
|
268
|
+
responseKey: 'action_attempt',
|
|
269
|
+
options,
|
|
270
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
271
|
+
...this.defaults,
|
|
272
|
+
waitForActionAttempt: false,
|
|
273
|
+
}),
|
|
274
|
+
})
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Sets a specified [thermostat](https://docs.seam.co/capability-guides/thermostats) to [heat-cool ("auto") mode](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings).
|
|
279
|
+
*/
|
|
280
|
+
heatCool(
|
|
281
|
+
parameters: ThermostatsHeatCoolParameters,
|
|
282
|
+
options: ThermostatsHeatCoolOptions = {},
|
|
283
|
+
): ThermostatsHeatCoolRequest {
|
|
284
|
+
return new SeamHttpRequest(this, {
|
|
285
|
+
pathname: '/thermostats/heat_cool',
|
|
286
|
+
method: 'POST',
|
|
287
|
+
body: parameters,
|
|
288
|
+
responseKey: 'action_attempt',
|
|
289
|
+
options,
|
|
290
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
291
|
+
...this.defaults,
|
|
292
|
+
waitForActionAttempt: false,
|
|
293
|
+
}),
|
|
294
|
+
})
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Returns a list of all [thermostats](https://docs.seam.co/capability-guides/thermostats).
|
|
299
|
+
*/
|
|
300
|
+
list(
|
|
301
|
+
parameters?: ThermostatsListParameters,
|
|
302
|
+
options: ThermostatsListOptions = {},
|
|
303
|
+
): ThermostatsListRequest {
|
|
304
|
+
return new SeamHttpRequest(this, {
|
|
305
|
+
pathname: '/thermostats/list',
|
|
306
|
+
method: 'POST',
|
|
307
|
+
body: parameters,
|
|
308
|
+
responseKey: 'devices',
|
|
309
|
+
options,
|
|
310
|
+
})
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Sets a specified [thermostat](https://docs.seam.co/capability-guides/thermostats) to ["off" mode](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings).
|
|
315
|
+
*/
|
|
316
|
+
off(
|
|
317
|
+
parameters: ThermostatsOffParameters,
|
|
318
|
+
options: ThermostatsOffOptions = {},
|
|
319
|
+
): ThermostatsOffRequest {
|
|
320
|
+
return new SeamHttpRequest(this, {
|
|
321
|
+
pathname: '/thermostats/off',
|
|
322
|
+
method: 'POST',
|
|
323
|
+
body: parameters,
|
|
324
|
+
responseKey: 'action_attempt',
|
|
325
|
+
options,
|
|
326
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
327
|
+
...this.defaults,
|
|
328
|
+
waitForActionAttempt: false,
|
|
329
|
+
}),
|
|
330
|
+
})
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Sets a specified [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) as the ["fallback"](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) preset for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
335
|
+
*/
|
|
336
|
+
setFallbackClimatePreset(
|
|
337
|
+
parameters: ThermostatsSetFallbackClimatePresetParameters,
|
|
338
|
+
options: ThermostatsSetFallbackClimatePresetOptions = {},
|
|
339
|
+
): ThermostatsSetFallbackClimatePresetRequest {
|
|
340
|
+
return new SeamHttpRequest(this, {
|
|
341
|
+
pathname: '/thermostats/set_fallback_climate_preset',
|
|
342
|
+
method: 'POST',
|
|
343
|
+
body: parameters,
|
|
344
|
+
responseKey: undefined,
|
|
345
|
+
options,
|
|
346
|
+
})
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Sets the [fan mode setting](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
351
|
+
*/
|
|
352
|
+
setFanMode(
|
|
353
|
+
parameters: ThermostatsSetFanModeParameters,
|
|
354
|
+
options: ThermostatsSetFanModeOptions = {},
|
|
355
|
+
): ThermostatsSetFanModeRequest {
|
|
356
|
+
return new SeamHttpRequest(this, {
|
|
357
|
+
pathname: '/thermostats/set_fan_mode',
|
|
358
|
+
method: 'POST',
|
|
359
|
+
body: parameters,
|
|
360
|
+
responseKey: 'action_attempt',
|
|
361
|
+
options,
|
|
362
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
363
|
+
...this.defaults,
|
|
364
|
+
waitForActionAttempt: false,
|
|
365
|
+
}),
|
|
366
|
+
})
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Sets the [HVAC mode](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
371
|
+
*/
|
|
372
|
+
setHvacMode(
|
|
373
|
+
parameters: ThermostatsSetHvacModeParameters,
|
|
374
|
+
options: ThermostatsSetHvacModeOptions = {},
|
|
375
|
+
): ThermostatsSetHvacModeRequest {
|
|
376
|
+
return new SeamHttpRequest(this, {
|
|
377
|
+
pathname: '/thermostats/set_hvac_mode',
|
|
378
|
+
method: 'POST',
|
|
379
|
+
body: parameters,
|
|
380
|
+
responseKey: 'action_attempt',
|
|
381
|
+
options,
|
|
382
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
383
|
+
...this.defaults,
|
|
384
|
+
waitForActionAttempt: false,
|
|
385
|
+
}),
|
|
386
|
+
})
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Sets a [temperature threshold](https://docs.seam.co/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) for a specified thermostat. Seam emits a `thermostat.temperature_threshold_exceeded` event and adds a warning on a thermostat if it reports a temperature outside the threshold range.
|
|
391
|
+
*/
|
|
392
|
+
setTemperatureThreshold(
|
|
393
|
+
parameters: ThermostatsSetTemperatureThresholdParameters,
|
|
394
|
+
options: ThermostatsSetTemperatureThresholdOptions = {},
|
|
395
|
+
): ThermostatsSetTemperatureThresholdRequest {
|
|
396
|
+
return new SeamHttpRequest(this, {
|
|
397
|
+
pathname: '/thermostats/set_temperature_threshold',
|
|
398
|
+
method: 'PATCH',
|
|
399
|
+
body: parameters,
|
|
400
|
+
responseKey: undefined,
|
|
401
|
+
options,
|
|
402
|
+
})
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Updates a specified [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
407
|
+
*/
|
|
408
|
+
updateClimatePreset(
|
|
409
|
+
parameters: ThermostatsUpdateClimatePresetParameters,
|
|
410
|
+
options: ThermostatsUpdateClimatePresetOptions = {},
|
|
411
|
+
): ThermostatsUpdateClimatePresetRequest {
|
|
412
|
+
return new SeamHttpRequest(this, {
|
|
413
|
+
pathname: '/thermostats/update_climate_preset',
|
|
414
|
+
method: 'PATCH',
|
|
415
|
+
body: parameters,
|
|
416
|
+
responseKey: undefined,
|
|
417
|
+
options,
|
|
418
|
+
})
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Updates the thermostat weekly program for a thermostat device. To configure a weekly program, specify the ID of the daily program that you want to use for each day of the week. When you update a weekly program, the set of programs that you specify overwrites any previous weekly program for the thermostat.
|
|
423
|
+
*/
|
|
424
|
+
updateWeeklyProgram(
|
|
425
|
+
parameters: ThermostatsUpdateWeeklyProgramParameters,
|
|
426
|
+
options: ThermostatsUpdateWeeklyProgramOptions = {},
|
|
427
|
+
): ThermostatsUpdateWeeklyProgramRequest {
|
|
428
|
+
return new SeamHttpRequest(this, {
|
|
429
|
+
pathname: '/thermostats/update_weekly_program',
|
|
430
|
+
method: 'POST',
|
|
431
|
+
body: parameters,
|
|
432
|
+
responseKey: 'action_attempt',
|
|
433
|
+
options,
|
|
434
|
+
actionAttempts: SeamHttpActionAttempts.fromClient(this.client, {
|
|
435
|
+
...this.defaults,
|
|
436
|
+
waitForActionAttempt: false,
|
|
437
|
+
}),
|
|
438
|
+
})
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export type ThermostatsActivateClimatePresetParameters = {
|
|
443
|
+
/**
|
|
444
|
+
* Climate preset key of the climate preset that you want to activate.
|
|
445
|
+
*/
|
|
446
|
+
climate_preset_key: string
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* ID of the thermostat device for which you want to activate a climate preset.
|
|
450
|
+
*/
|
|
451
|
+
device_id: string
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated Use ThermostatsActivateClimatePresetRequest instead.
|
|
456
|
+
*/
|
|
457
|
+
export type ThermostatsActivateClimatePresetResponse = {
|
|
458
|
+
action_attempt: ActionAttempt
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export type ThermostatsActivateClimatePresetRequest = SeamHttpRequest<
|
|
462
|
+
ThermostatsActivateClimatePresetResponse,
|
|
463
|
+
'action_attempt'
|
|
464
|
+
>
|
|
465
|
+
|
|
466
|
+
export type ThermostatsActivateClimatePresetOptions = Pick<
|
|
467
|
+
SeamHttpRequestOptions,
|
|
468
|
+
'waitForActionAttempt'
|
|
469
|
+
>
|
|
470
|
+
|
|
471
|
+
export type ThermostatsCoolParameters = {
|
|
472
|
+
/**
|
|
473
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
474
|
+
*/
|
|
475
|
+
cooling_set_point_celsius?: number | undefined
|
|
476
|
+
/**
|
|
477
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
478
|
+
*/
|
|
479
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
480
|
+
/**
|
|
481
|
+
* ID of the thermostat device that you want to set to cool mode.
|
|
482
|
+
*/
|
|
483
|
+
device_id: string
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @deprecated Use ThermostatsCoolRequest instead.
|
|
488
|
+
*/
|
|
489
|
+
export type ThermostatsCoolResponse = { action_attempt: ActionAttempt }
|
|
490
|
+
|
|
491
|
+
export type ThermostatsCoolRequest = SeamHttpRequest<
|
|
492
|
+
ThermostatsCoolResponse,
|
|
493
|
+
'action_attempt'
|
|
494
|
+
>
|
|
495
|
+
|
|
496
|
+
export type ThermostatsCoolOptions = Pick<
|
|
497
|
+
SeamHttpRequestOptions,
|
|
498
|
+
'waitForActionAttempt'
|
|
499
|
+
>
|
|
500
|
+
|
|
501
|
+
export type ThermostatsCreateClimatePresetParameters = {
|
|
502
|
+
/**
|
|
503
|
+
* Unique key to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets).
|
|
504
|
+
*/
|
|
505
|
+
climate_preset_key: string
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
|
|
509
|
+
*/
|
|
510
|
+
climate_preset_mode?:
|
|
511
|
+
'home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied' | undefined
|
|
512
|
+
/**
|
|
513
|
+
* Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
514
|
+
*/
|
|
515
|
+
cooling_set_point_celsius?: number | undefined
|
|
516
|
+
/**
|
|
517
|
+
* Temperature to which the thermostat should cool (in °F). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
518
|
+
*/
|
|
519
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
520
|
+
/**
|
|
521
|
+
* ID of the thermostat device for which you want create a climate preset.
|
|
522
|
+
*/
|
|
523
|
+
device_id: string
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Metadata specific to the Ecobee climate, if applicable.
|
|
527
|
+
*/
|
|
528
|
+
ecobee_metadata?:
|
|
529
|
+
| {
|
|
530
|
+
/**
|
|
531
|
+
* Reference to the Ecobee climate, if applicable.
|
|
532
|
+
*/
|
|
533
|
+
climate_ref?: string | undefined
|
|
534
|
+
/**
|
|
535
|
+
* Indicates if the climate preset is optimized by Ecobee.
|
|
536
|
+
*/
|
|
537
|
+
is_optimized?: boolean | undefined
|
|
538
|
+
/**
|
|
539
|
+
* Indicates whether the climate preset is owned by the user or the system.
|
|
540
|
+
*/
|
|
541
|
+
owner?: 'user' | 'system' | undefined
|
|
542
|
+
}
|
|
543
|
+
| undefined
|
|
544
|
+
/**
|
|
545
|
+
* Desired [fan mode setting](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.
|
|
546
|
+
*/
|
|
547
|
+
fan_mode_setting?: 'auto' | 'on' | 'circulate' | undefined
|
|
548
|
+
/**
|
|
549
|
+
* Temperature to which the thermostat should heat (in °C). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
550
|
+
*/
|
|
551
|
+
heating_set_point_celsius?: number | undefined
|
|
552
|
+
/**
|
|
553
|
+
* Temperature to which the thermostat should heat (in °F). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
554
|
+
*/
|
|
555
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
556
|
+
/**
|
|
557
|
+
* Desired [HVAC mode](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.
|
|
558
|
+
*/
|
|
559
|
+
hvac_mode_setting?: 'off' | 'heat' | 'cool' | 'heat_cool' | 'eco' | undefined
|
|
560
|
+
/**
|
|
561
|
+
* Indicates whether a person at the thermostat or using the API can change the thermostat's settings.
|
|
562
|
+
* @deprecated Use 'thermostat_schedule.is_override_allowed'
|
|
563
|
+
*/
|
|
564
|
+
manual_override_allowed?: boolean | undefined
|
|
565
|
+
/**
|
|
566
|
+
* User-friendly name to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets).
|
|
567
|
+
*/
|
|
568
|
+
name?: string | undefined
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* @deprecated Use ThermostatsCreateClimatePresetRequest instead.
|
|
573
|
+
*/
|
|
574
|
+
export type ThermostatsCreateClimatePresetResponse = void
|
|
575
|
+
|
|
576
|
+
export type ThermostatsCreateClimatePresetRequest = SeamHttpRequest<
|
|
577
|
+
void,
|
|
578
|
+
undefined
|
|
579
|
+
>
|
|
580
|
+
|
|
581
|
+
export interface ThermostatsCreateClimatePresetOptions {}
|
|
582
|
+
|
|
583
|
+
export type ThermostatsDeleteClimatePresetParameters = {
|
|
584
|
+
/**
|
|
585
|
+
* Climate preset key of the climate preset that you want to delete.
|
|
586
|
+
*/
|
|
587
|
+
climate_preset_key: string
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* ID of the thermostat device for which you want to delete a climate preset.
|
|
591
|
+
*/
|
|
592
|
+
device_id: string
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* @deprecated Use ThermostatsDeleteClimatePresetRequest instead.
|
|
597
|
+
*/
|
|
598
|
+
export type ThermostatsDeleteClimatePresetResponse = void
|
|
599
|
+
|
|
600
|
+
export type ThermostatsDeleteClimatePresetRequest = SeamHttpRequest<
|
|
601
|
+
void,
|
|
602
|
+
undefined
|
|
603
|
+
>
|
|
604
|
+
|
|
605
|
+
export interface ThermostatsDeleteClimatePresetOptions {}
|
|
606
|
+
|
|
607
|
+
export type ThermostatsHeatParameters = {
|
|
608
|
+
/**
|
|
609
|
+
* ID of the thermostat device that you want to set to heat mode.
|
|
610
|
+
*/
|
|
611
|
+
device_id: string
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
615
|
+
*/
|
|
616
|
+
heating_set_point_celsius?: number | undefined
|
|
617
|
+
/**
|
|
618
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
619
|
+
*/
|
|
620
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @deprecated Use ThermostatsHeatRequest instead.
|
|
625
|
+
*/
|
|
626
|
+
export type ThermostatsHeatResponse = { action_attempt: ActionAttempt }
|
|
627
|
+
|
|
628
|
+
export type ThermostatsHeatRequest = SeamHttpRequest<
|
|
629
|
+
ThermostatsHeatResponse,
|
|
630
|
+
'action_attempt'
|
|
631
|
+
>
|
|
632
|
+
|
|
633
|
+
export type ThermostatsHeatOptions = Pick<
|
|
634
|
+
SeamHttpRequestOptions,
|
|
635
|
+
'waitForActionAttempt'
|
|
636
|
+
>
|
|
637
|
+
|
|
638
|
+
export type ThermostatsHeatCoolParameters = {
|
|
639
|
+
/**
|
|
640
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
641
|
+
*/
|
|
642
|
+
cooling_set_point_celsius?: number | undefined
|
|
643
|
+
/**
|
|
644
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
645
|
+
*/
|
|
646
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
647
|
+
/**
|
|
648
|
+
* ID of the thermostat device that you want to set to heat-cool mode.
|
|
649
|
+
*/
|
|
650
|
+
device_id: string
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
654
|
+
*/
|
|
655
|
+
heating_set_point_celsius?: number | undefined
|
|
656
|
+
/**
|
|
657
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
658
|
+
*/
|
|
659
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @deprecated Use ThermostatsHeatCoolRequest instead.
|
|
664
|
+
*/
|
|
665
|
+
export type ThermostatsHeatCoolResponse = { action_attempt: ActionAttempt }
|
|
666
|
+
|
|
667
|
+
export type ThermostatsHeatCoolRequest = SeamHttpRequest<
|
|
668
|
+
ThermostatsHeatCoolResponse,
|
|
669
|
+
'action_attempt'
|
|
670
|
+
>
|
|
671
|
+
|
|
672
|
+
export type ThermostatsHeatCoolOptions = Pick<
|
|
673
|
+
SeamHttpRequestOptions,
|
|
674
|
+
'waitForActionAttempt'
|
|
675
|
+
>
|
|
676
|
+
|
|
677
|
+
export type ThermostatsListParameters = {
|
|
678
|
+
/**
|
|
679
|
+
* ID of the Connect Webview for which you want to list devices.
|
|
680
|
+
*/
|
|
681
|
+
connect_webview_id?: string | undefined
|
|
682
|
+
/**
|
|
683
|
+
* ID of the connected account for which you want to list devices.
|
|
684
|
+
*/
|
|
685
|
+
connected_account_id?: string | undefined
|
|
686
|
+
/**
|
|
687
|
+
* Array of IDs of the connected accounts for which you want to list devices.
|
|
688
|
+
*/
|
|
689
|
+
connected_account_ids?: Array<string> | undefined
|
|
690
|
+
/**
|
|
691
|
+
* Timestamp by which to limit returned devices. Returns devices created before this timestamp.
|
|
692
|
+
*/
|
|
693
|
+
created_before?: string | undefined
|
|
694
|
+
/**
|
|
695
|
+
* Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices.
|
|
696
|
+
*/
|
|
697
|
+
custom_metadata_has?: Record<string, unknown> | undefined
|
|
698
|
+
/**
|
|
699
|
+
* Customer key for which you want to list devices.
|
|
700
|
+
*/
|
|
701
|
+
customer_key?: string | undefined
|
|
702
|
+
/**
|
|
703
|
+
* Array of device IDs for which you want to list devices.
|
|
704
|
+
*/
|
|
705
|
+
device_ids?: Array<string> | undefined
|
|
706
|
+
/**
|
|
707
|
+
* Device type by which you want to filter thermostat devices.
|
|
708
|
+
*/
|
|
709
|
+
device_type?:
|
|
710
|
+
| 'ecobee_thermostat'
|
|
711
|
+
| 'nest_thermostat'
|
|
712
|
+
| 'honeywell_resideo_thermostat'
|
|
713
|
+
| 'tado_thermostat'
|
|
714
|
+
| 'sensi_thermostat'
|
|
715
|
+
| 'smartthings_thermostat'
|
|
716
|
+
| undefined
|
|
717
|
+
/**
|
|
718
|
+
* Array of device types by which you want to filter thermostat devices.
|
|
719
|
+
*/
|
|
720
|
+
device_types?:
|
|
721
|
+
| Array<
|
|
722
|
+
| 'ecobee_thermostat'
|
|
723
|
+
| 'nest_thermostat'
|
|
724
|
+
| 'honeywell_resideo_thermostat'
|
|
725
|
+
| 'tado_thermostat'
|
|
726
|
+
| 'sensi_thermostat'
|
|
727
|
+
| 'smartthings_thermostat'
|
|
728
|
+
>
|
|
729
|
+
| undefined
|
|
730
|
+
/**
|
|
731
|
+
* Numerical limit on the number of devices to return.
|
|
732
|
+
*/
|
|
733
|
+
limit?: number | undefined
|
|
734
|
+
/**
|
|
735
|
+
* Manufacturer by which you want to filter thermostat devices.
|
|
736
|
+
*/
|
|
737
|
+
manufacturer?:
|
|
738
|
+
| 'ecobee'
|
|
739
|
+
| 'honeywell_resideo'
|
|
740
|
+
| 'nest'
|
|
741
|
+
| 'sensi'
|
|
742
|
+
| 'smartthings'
|
|
743
|
+
| 'tado'
|
|
744
|
+
| undefined
|
|
745
|
+
/**
|
|
746
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
747
|
+
*/
|
|
748
|
+
page_cursor?: string | undefined
|
|
749
|
+
/**
|
|
750
|
+
* String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`.
|
|
751
|
+
*/
|
|
752
|
+
search?: string | undefined
|
|
753
|
+
/**
|
|
754
|
+
* ID of the space for which you want to list devices.
|
|
755
|
+
*/
|
|
756
|
+
space_id?: string | undefined
|
|
757
|
+
/**
|
|
758
|
+
* @deprecated Use `space_id`.
|
|
759
|
+
*/
|
|
760
|
+
unstable_location_id?: string | undefined
|
|
761
|
+
/**
|
|
762
|
+
* Your own internal user ID for the user for which you want to list devices.
|
|
763
|
+
*/
|
|
764
|
+
user_identifier_key?: string | undefined
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* @deprecated Use ThermostatsListRequest instead.
|
|
769
|
+
*/
|
|
770
|
+
export type ThermostatsListResponse = { devices: Array<Device> }
|
|
771
|
+
|
|
772
|
+
export type ThermostatsListRequest = SeamHttpRequest<
|
|
773
|
+
ThermostatsListResponse,
|
|
774
|
+
'devices'
|
|
775
|
+
>
|
|
776
|
+
|
|
777
|
+
export interface ThermostatsListOptions {}
|
|
778
|
+
|
|
779
|
+
export type ThermostatsOffParameters = {
|
|
780
|
+
/**
|
|
781
|
+
* ID of the thermostat device that you want to set to off mode.
|
|
782
|
+
*/
|
|
783
|
+
device_id: string
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @deprecated Use ThermostatsOffRequest instead.
|
|
788
|
+
*/
|
|
789
|
+
export type ThermostatsOffResponse = { action_attempt: ActionAttempt }
|
|
790
|
+
|
|
791
|
+
export type ThermostatsOffRequest = SeamHttpRequest<
|
|
792
|
+
ThermostatsOffResponse,
|
|
793
|
+
'action_attempt'
|
|
794
|
+
>
|
|
795
|
+
|
|
796
|
+
export type ThermostatsOffOptions = Pick<
|
|
797
|
+
SeamHttpRequestOptions,
|
|
798
|
+
'waitForActionAttempt'
|
|
799
|
+
>
|
|
800
|
+
|
|
801
|
+
export type ThermostatsSetFallbackClimatePresetParameters = {
|
|
802
|
+
/**
|
|
803
|
+
* Climate preset key of the climate preset that you want to set as the fallback climate preset.
|
|
804
|
+
*/
|
|
805
|
+
climate_preset_key: string
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* ID of the thermostat device for which you want to set the fallback climate preset.
|
|
809
|
+
*/
|
|
810
|
+
device_id: string
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* @deprecated Use ThermostatsSetFallbackClimatePresetRequest instead.
|
|
815
|
+
*/
|
|
816
|
+
export type ThermostatsSetFallbackClimatePresetResponse = void
|
|
817
|
+
|
|
818
|
+
export type ThermostatsSetFallbackClimatePresetRequest = SeamHttpRequest<
|
|
819
|
+
void,
|
|
820
|
+
undefined
|
|
821
|
+
>
|
|
822
|
+
|
|
823
|
+
export interface ThermostatsSetFallbackClimatePresetOptions {}
|
|
824
|
+
|
|
825
|
+
export type ThermostatsSetFanModeParameters = {
|
|
826
|
+
/**
|
|
827
|
+
* ID of the thermostat device for which you want to set the fan mode.
|
|
828
|
+
*/
|
|
829
|
+
device_id: string
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Fan mode setting for the thermostat, such as `auto`, `on`, or `circulate`.
|
|
833
|
+
* @deprecated Use `fan_mode_setting` instead.
|
|
834
|
+
*/
|
|
835
|
+
fan_mode?: 'auto' | 'on' | 'circulate' | undefined
|
|
836
|
+
/**
|
|
837
|
+
* [Fan mode setting](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings) that you want to set for the thermostat.
|
|
838
|
+
*/
|
|
839
|
+
fan_mode_setting?: 'auto' | 'on' | 'circulate' | undefined
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* @deprecated Use ThermostatsSetFanModeRequest instead.
|
|
844
|
+
*/
|
|
845
|
+
export type ThermostatsSetFanModeResponse = { action_attempt: ActionAttempt }
|
|
846
|
+
|
|
847
|
+
export type ThermostatsSetFanModeRequest = SeamHttpRequest<
|
|
848
|
+
ThermostatsSetFanModeResponse,
|
|
849
|
+
'action_attempt'
|
|
850
|
+
>
|
|
851
|
+
|
|
852
|
+
export type ThermostatsSetFanModeOptions = Pick<
|
|
853
|
+
SeamHttpRequestOptions,
|
|
854
|
+
'waitForActionAttempt'
|
|
855
|
+
>
|
|
856
|
+
|
|
857
|
+
export type ThermostatsSetHvacModeParameters = {
|
|
858
|
+
/**
|
|
859
|
+
* ID of the thermostat device for which you want to set the HVAC mode.
|
|
860
|
+
*/
|
|
861
|
+
device_id: string
|
|
862
|
+
|
|
863
|
+
hvac_mode_setting: 'off' | 'cool' | 'heat' | 'heat_cool' | 'eco'
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
867
|
+
*/
|
|
868
|
+
cooling_set_point_celsius?: number | undefined
|
|
869
|
+
/**
|
|
870
|
+
* [Cooling set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.
|
|
871
|
+
*/
|
|
872
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
873
|
+
/**
|
|
874
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
875
|
+
*/
|
|
876
|
+
heating_set_point_celsius?: number | undefined
|
|
877
|
+
/**
|
|
878
|
+
* [Heating set point](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.
|
|
879
|
+
*/
|
|
880
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @deprecated Use ThermostatsSetHvacModeRequest instead.
|
|
885
|
+
*/
|
|
886
|
+
export type ThermostatsSetHvacModeResponse = { action_attempt: ActionAttempt }
|
|
887
|
+
|
|
888
|
+
export type ThermostatsSetHvacModeRequest = SeamHttpRequest<
|
|
889
|
+
ThermostatsSetHvacModeResponse,
|
|
890
|
+
'action_attempt'
|
|
891
|
+
>
|
|
892
|
+
|
|
893
|
+
export type ThermostatsSetHvacModeOptions = Pick<
|
|
894
|
+
SeamHttpRequestOptions,
|
|
895
|
+
'waitForActionAttempt'
|
|
896
|
+
>
|
|
897
|
+
|
|
898
|
+
export type ThermostatsSetTemperatureThresholdParameters = {
|
|
899
|
+
/**
|
|
900
|
+
* ID of the thermostat device for which you want to set a temperature threshold.
|
|
901
|
+
*/
|
|
902
|
+
device_id: string
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Lower temperature limit in in °C. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both.
|
|
906
|
+
*/
|
|
907
|
+
lower_limit_celsius?: number | undefined
|
|
908
|
+
/**
|
|
909
|
+
* Lower temperature limit in in °F. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both.
|
|
910
|
+
*/
|
|
911
|
+
lower_limit_fahrenheit?: number | undefined
|
|
912
|
+
/**
|
|
913
|
+
* Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both.
|
|
914
|
+
*/
|
|
915
|
+
upper_limit_celsius?: number | undefined
|
|
916
|
+
/**
|
|
917
|
+
* Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both.
|
|
918
|
+
*/
|
|
919
|
+
upper_limit_fahrenheit?: number | undefined
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* @deprecated Use ThermostatsSetTemperatureThresholdRequest instead.
|
|
924
|
+
*/
|
|
925
|
+
export type ThermostatsSetTemperatureThresholdResponse = void
|
|
926
|
+
|
|
927
|
+
export type ThermostatsSetTemperatureThresholdRequest = SeamHttpRequest<
|
|
928
|
+
void,
|
|
929
|
+
undefined
|
|
930
|
+
>
|
|
931
|
+
|
|
932
|
+
export interface ThermostatsSetTemperatureThresholdOptions {}
|
|
933
|
+
|
|
934
|
+
export type ThermostatsUpdateClimatePresetParameters = {
|
|
935
|
+
/**
|
|
936
|
+
* Unique key to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets).
|
|
937
|
+
*/
|
|
938
|
+
climate_preset_key: string
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
|
|
942
|
+
*/
|
|
943
|
+
climate_preset_mode?:
|
|
944
|
+
'home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied' | undefined
|
|
945
|
+
/**
|
|
946
|
+
* Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
947
|
+
*/
|
|
948
|
+
cooling_set_point_celsius?: number | undefined
|
|
949
|
+
/**
|
|
950
|
+
* Temperature to which the thermostat should cool (in °F). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
951
|
+
*/
|
|
952
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
953
|
+
/**
|
|
954
|
+
* ID of the thermostat device for which you want to update a climate preset.
|
|
955
|
+
*/
|
|
956
|
+
device_id: string
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Metadata specific to the Ecobee climate, if applicable.
|
|
960
|
+
*/
|
|
961
|
+
ecobee_metadata?:
|
|
962
|
+
| {
|
|
963
|
+
/**
|
|
964
|
+
* Reference to the Ecobee climate, if applicable.
|
|
965
|
+
*/
|
|
966
|
+
climate_ref?: string | undefined
|
|
967
|
+
/**
|
|
968
|
+
* Indicates if the climate preset is optimized by Ecobee.
|
|
969
|
+
*/
|
|
970
|
+
is_optimized?: boolean | undefined
|
|
971
|
+
/**
|
|
972
|
+
* Indicates whether the climate preset is owned by the user or the system.
|
|
973
|
+
*/
|
|
974
|
+
owner?: 'user' | 'system' | undefined
|
|
975
|
+
}
|
|
976
|
+
| undefined
|
|
977
|
+
/**
|
|
978
|
+
* Desired [fan mode setting](https://docs.seam.co/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.
|
|
979
|
+
*/
|
|
980
|
+
fan_mode_setting?: 'auto' | 'on' | 'circulate' | undefined
|
|
981
|
+
/**
|
|
982
|
+
* Temperature to which the thermostat should heat (in °C). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
983
|
+
*/
|
|
984
|
+
heating_set_point_celsius?: number | undefined
|
|
985
|
+
/**
|
|
986
|
+
* Temperature to which the thermostat should heat (in °F). See also [Set Points](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/set-points).
|
|
987
|
+
*/
|
|
988
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
989
|
+
/**
|
|
990
|
+
* Desired [HVAC mode](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.
|
|
991
|
+
*/
|
|
992
|
+
hvac_mode_setting?: 'off' | 'heat' | 'cool' | 'heat_cool' | 'eco' | undefined
|
|
993
|
+
/**
|
|
994
|
+
* Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
|
|
995
|
+
* @deprecated Use 'thermostat_schedule.is_override_allowed'
|
|
996
|
+
*/
|
|
997
|
+
manual_override_allowed?: boolean | undefined
|
|
998
|
+
/**
|
|
999
|
+
* User-friendly name to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets).
|
|
1000
|
+
*/
|
|
1001
|
+
name?: string | undefined
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* @deprecated Use ThermostatsUpdateClimatePresetRequest instead.
|
|
1006
|
+
*/
|
|
1007
|
+
export type ThermostatsUpdateClimatePresetResponse = void
|
|
1008
|
+
|
|
1009
|
+
export type ThermostatsUpdateClimatePresetRequest = SeamHttpRequest<
|
|
1010
|
+
void,
|
|
1011
|
+
undefined
|
|
1012
|
+
>
|
|
1013
|
+
|
|
1014
|
+
export interface ThermostatsUpdateClimatePresetOptions {}
|
|
1015
|
+
|
|
1016
|
+
export type ThermostatsUpdateWeeklyProgramParameters = {
|
|
1017
|
+
/**
|
|
1018
|
+
* ID of the thermostat device for which you want to update the weekly program.
|
|
1019
|
+
*/
|
|
1020
|
+
device_id: string
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* ID of the thermostat daily program to run on Fridays.
|
|
1024
|
+
*/
|
|
1025
|
+
friday_program_id?: string | undefined
|
|
1026
|
+
/**
|
|
1027
|
+
* ID of the thermostat daily program to run on Mondays.
|
|
1028
|
+
*/
|
|
1029
|
+
monday_program_id?: string | undefined
|
|
1030
|
+
/**
|
|
1031
|
+
* ID of the thermostat daily program to run on Saturdays.
|
|
1032
|
+
*/
|
|
1033
|
+
saturday_program_id?: string | undefined
|
|
1034
|
+
/**
|
|
1035
|
+
* ID of the thermostat daily program to run on Sundays.
|
|
1036
|
+
*/
|
|
1037
|
+
sunday_program_id?: string | undefined
|
|
1038
|
+
/**
|
|
1039
|
+
* ID of the thermostat daily program to run on Thursdays.
|
|
1040
|
+
*/
|
|
1041
|
+
thursday_program_id?: string | undefined
|
|
1042
|
+
/**
|
|
1043
|
+
* ID of the thermostat daily program to run on Tuesdays.
|
|
1044
|
+
*/
|
|
1045
|
+
tuesday_program_id?: string | undefined
|
|
1046
|
+
/**
|
|
1047
|
+
* ID of the thermostat daily program to run on Wednesdays.
|
|
1048
|
+
*/
|
|
1049
|
+
wednesday_program_id?: string | undefined
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* @deprecated Use ThermostatsUpdateWeeklyProgramRequest instead.
|
|
1054
|
+
*/
|
|
1055
|
+
export type ThermostatsUpdateWeeklyProgramResponse = {
|
|
1056
|
+
action_attempt: ActionAttempt
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export type ThermostatsUpdateWeeklyProgramRequest = SeamHttpRequest<
|
|
1060
|
+
ThermostatsUpdateWeeklyProgramResponse,
|
|
1061
|
+
'action_attempt'
|
|
1062
|
+
>
|
|
1063
|
+
|
|
1064
|
+
export type ThermostatsUpdateWeeklyProgramOptions = Pick<
|
|
1065
|
+
SeamHttpRequestOptions,
|
|
1066
|
+
'waitForActionAttempt'
|
|
1067
|
+
>
|