@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,2231 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../auth.js';
|
|
6
|
+
import { createClient } from '../client.js';
|
|
7
|
+
import { seamApiLtsVersion } from '../lts-version.js';
|
|
8
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../options.js';
|
|
9
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../parse-options.js';
|
|
10
|
+
import { SeamPaginator } from '../seam-paginator.js';
|
|
11
|
+
import { SeamHttpAccessCodes, } from './access-codes/index.js';
|
|
12
|
+
import { SeamHttpAccessCodesSimulate, } from './access-codes/simulate/index.js';
|
|
13
|
+
import { SeamHttpAccessCodesUnmanaged, } from './access-codes/unmanaged/index.js';
|
|
14
|
+
import { SeamHttpAccessGrants, } from './access-grants/index.js';
|
|
15
|
+
import { SeamHttpAccessGrantsUnmanaged, } from './access-grants/unmanaged/index.js';
|
|
16
|
+
import { SeamHttpAccessMethods, } from './access-methods/index.js';
|
|
17
|
+
import { SeamHttpAccessMethodsUnmanaged, } from './access-methods/unmanaged/index.js';
|
|
18
|
+
import { SeamHttpAcsAccessGroups, } from './acs/access-groups/index.js';
|
|
19
|
+
import { SeamHttpAcsCredentials, } from './acs/credentials/index.js';
|
|
20
|
+
import { SeamHttpAcsEncoders, } from './acs/encoders/index.js';
|
|
21
|
+
import { SeamHttpAcsEncodersSimulate, } from './acs/encoders/simulate/index.js';
|
|
22
|
+
import { SeamHttpAcsEntrances, } from './acs/entrances/index.js';
|
|
23
|
+
import { SeamHttpAcsSystems, } from './acs/systems/index.js';
|
|
24
|
+
import { SeamHttpAcsUsers, } from './acs/users/index.js';
|
|
25
|
+
import { SeamHttpActionAttempts, } from './action-attempts/index.js';
|
|
26
|
+
import { SeamHttpClientSessions, } from './client-sessions/index.js';
|
|
27
|
+
import { SeamHttpConnectWebviews, } from './connect-webviews/index.js';
|
|
28
|
+
import { SeamHttpConnectedAccounts, } from './connected-accounts/index.js';
|
|
29
|
+
import { SeamHttpConnectedAccountsSimulate, } from './connected-accounts/simulate/index.js';
|
|
30
|
+
import { SeamHttpCustomers, } from './customers/index.js';
|
|
31
|
+
import { SeamHttpDevices, } from './devices/index.js';
|
|
32
|
+
import { SeamHttpDevicesSimulate, } from './devices/simulate/index.js';
|
|
33
|
+
import { SeamHttpDevicesUnmanaged, } from './devices/unmanaged/index.js';
|
|
34
|
+
import { SeamHttpEvents, } from './events/index.js';
|
|
35
|
+
import { SeamHttpInstantKeys, } from './instant-keys/index.js';
|
|
36
|
+
import { SeamHttpLocks, } from './locks/index.js';
|
|
37
|
+
import { SeamHttpLocksSimulate, } from './locks/simulate/index.js';
|
|
38
|
+
import { SeamHttpNoiseSensors, } from './noise-sensors/index.js';
|
|
39
|
+
import { SeamHttpNoiseSensorsNoiseThresholds, } from './noise-sensors/noise-thresholds/index.js';
|
|
40
|
+
import { SeamHttpNoiseSensorsSimulate, } from './noise-sensors/simulate/index.js';
|
|
41
|
+
import { SeamHttpPhones, } from './phones/index.js';
|
|
42
|
+
import { SeamHttpPhonesSimulate, } from './phones/simulate/index.js';
|
|
43
|
+
import { SeamHttpSpaces, } from './spaces/index.js';
|
|
44
|
+
import { SeamHttpThermostatsDailyPrograms, } from './thermostats/daily-programs/index.js';
|
|
45
|
+
import { SeamHttpThermostats, } from './thermostats/index.js';
|
|
46
|
+
import { SeamHttpThermostatsSchedules, } from './thermostats/schedules/index.js';
|
|
47
|
+
import { SeamHttpThermostatsSimulate, } from './thermostats/simulate/index.js';
|
|
48
|
+
import { SeamHttpUserIdentities, } from './user-identities/index.js';
|
|
49
|
+
import { SeamHttpUserIdentitiesUnmanaged, } from './user-identities/unmanaged/index.js';
|
|
50
|
+
import { SeamHttpWebhooks, } from './webhooks/index.js';
|
|
51
|
+
import { SeamHttpWorkspaces, } from './workspaces/index.js';
|
|
52
|
+
export class SeamHttpEndpoints {
|
|
53
|
+
client;
|
|
54
|
+
defaults;
|
|
55
|
+
ltsVersion = seamApiLtsVersion;
|
|
56
|
+
static ltsVersion = seamApiLtsVersion;
|
|
57
|
+
constructor(apiKeyOrOptions = {}) {
|
|
58
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
59
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
60
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
61
|
+
}
|
|
62
|
+
static fromClient(client, options = {}) {
|
|
63
|
+
const constructorOptions = { ...options, client };
|
|
64
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
65
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
66
|
+
}
|
|
67
|
+
return new SeamHttpEndpoints(constructorOptions);
|
|
68
|
+
}
|
|
69
|
+
static fromApiKey(apiKey, options = {}) {
|
|
70
|
+
const constructorOptions = { ...options, apiKey };
|
|
71
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
72
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
73
|
+
}
|
|
74
|
+
return new SeamHttpEndpoints(constructorOptions);
|
|
75
|
+
}
|
|
76
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
77
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
78
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
79
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
80
|
+
}
|
|
81
|
+
return new SeamHttpEndpoints(constructorOptions);
|
|
82
|
+
}
|
|
83
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
84
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
85
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
86
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
87
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpEndpoints.fromPublishableKey');
|
|
88
|
+
}
|
|
89
|
+
const client = createClient(clientOptions);
|
|
90
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
91
|
+
const { token } = await clientSessions.getOrCreate({
|
|
92
|
+
user_identifier_key: userIdentifierKey,
|
|
93
|
+
});
|
|
94
|
+
return SeamHttpEndpoints.fromClientSessionToken(token, options);
|
|
95
|
+
}
|
|
96
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
97
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
98
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
99
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
100
|
+
}
|
|
101
|
+
return new SeamHttpEndpoints(constructorOptions);
|
|
102
|
+
}
|
|
103
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
104
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
105
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
106
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
107
|
+
}
|
|
108
|
+
return new SeamHttpEndpoints(constructorOptions);
|
|
109
|
+
}
|
|
110
|
+
createPaginator(request) {
|
|
111
|
+
return new SeamPaginator(this, request);
|
|
112
|
+
}
|
|
113
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
114
|
+
const { headers } = this.client.defaults;
|
|
115
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
116
|
+
clientSessionToken,
|
|
117
|
+
});
|
|
118
|
+
for (const key of Object.keys(authHeaders)) {
|
|
119
|
+
if (headers[key] == null) {
|
|
120
|
+
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
124
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
125
|
+
await clientSessions.get();
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Creates a new [access code](https://docs.seam.co/low-level-apis/access-codes). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.
|
|
129
|
+
*/
|
|
130
|
+
get '/access_codes/create'() {
|
|
131
|
+
const { client, defaults } = this;
|
|
132
|
+
return function accessCodesCreate(...args) {
|
|
133
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
134
|
+
return seam.create(...args);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Creates new [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
|
|
139
|
+
*
|
|
140
|
+
* Users with more than one door lock in a property may want to create groups of linked access codes, all of which have the same code (PIN). For example, a short-term rental host may want to provide guests the same PIN for both a front door lock and a back door lock.
|
|
141
|
+
*
|
|
142
|
+
* If you specify a custom code, Seam assigns this custom code to each of the resulting access codes. However, in this case, Seam does not link these access codes together with a `common_code_key`. That is, `common_code_key` remains null for these access codes.
|
|
143
|
+
*
|
|
144
|
+
* If you want to change these access codes that are not linked by a `common_code_key`, you cannot use `/access_codes/update_multiple`. However, you can update each of these access codes individually, using `/access_codes/update`.
|
|
145
|
+
*
|
|
146
|
+
* See also [Creating and Updating Multiple Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes).
|
|
147
|
+
*
|
|
148
|
+
* For granting a person access to a space, [Access Grants](https://docs.seam.co/use-cases/granting-access) are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.
|
|
149
|
+
*/
|
|
150
|
+
get '/access_codes/create_multiple'() {
|
|
151
|
+
const { client, defaults } = this;
|
|
152
|
+
return function accessCodesCreateMultiple(...args) {
|
|
153
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
154
|
+
return seam.createMultiple(...args);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Deletes an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
159
|
+
*/
|
|
160
|
+
get '/access_codes/delete'() {
|
|
161
|
+
const { client, defaults } = this;
|
|
162
|
+
return function accessCodesDelete(...args) {
|
|
163
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
164
|
+
return seam.delete(...args);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Generates a code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), given a device ID.
|
|
169
|
+
*/
|
|
170
|
+
get '/access_codes/generate_code'() {
|
|
171
|
+
const { client, defaults } = this;
|
|
172
|
+
return function accessCodesGenerateCode(...args) {
|
|
173
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
174
|
+
return seam.generateCode(...args);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Returns a specified [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
179
|
+
*
|
|
180
|
+
* You must specify either `access_code_id` or both `device_id` and `code`.
|
|
181
|
+
*/
|
|
182
|
+
get '/access_codes/get'() {
|
|
183
|
+
const { client, defaults } = this;
|
|
184
|
+
return function accessCodesGet(...args) {
|
|
185
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
186
|
+
return seam.get(...args);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Returns a list of all [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
191
|
+
*
|
|
192
|
+
* Specify `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`.
|
|
193
|
+
*/
|
|
194
|
+
get '/access_codes/list'() {
|
|
195
|
+
const { client, defaults } = this;
|
|
196
|
+
return function accessCodesList(...args) {
|
|
197
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
198
|
+
return seam.list(...args);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Retrieves a backup access code for an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). See also [Managing Backup Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes).
|
|
203
|
+
*
|
|
204
|
+
* A backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes. If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.
|
|
205
|
+
*
|
|
206
|
+
* You can pull a backup access code from the pool at any time. These backup codes are guaranteed to work immediately and automatically programmed to be removed from the device after the access code ends.
|
|
207
|
+
*
|
|
208
|
+
* You can only pull backup access codes for time-bound access codes.
|
|
209
|
+
*
|
|
210
|
+
* Before pulling a backup access code, make sure that the device's `properties.supports_backup_access_code_pool` is `true`. Then, to activate the backup pool, set `use_backup_access_code_pool` to `true` when creating an access code.
|
|
211
|
+
*/
|
|
212
|
+
get '/access_codes/pull_backup_access_code'() {
|
|
213
|
+
const { client, defaults } = this;
|
|
214
|
+
return function accessCodesPullBackupAccessCode(...args) {
|
|
215
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
216
|
+
return seam.pullBackupAccessCode(...args);
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.
|
|
221
|
+
*
|
|
222
|
+
* Specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.
|
|
223
|
+
*/
|
|
224
|
+
get '/access_codes/report_device_constraints'() {
|
|
225
|
+
const { client, defaults } = this;
|
|
226
|
+
return function accessCodesReportDeviceConstraints(...args) {
|
|
227
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
228
|
+
return seam.reportDeviceConstraints(...args);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Updates a specified active or upcoming [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
233
|
+
*
|
|
234
|
+
* See also [Modifying Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes).
|
|
235
|
+
*/
|
|
236
|
+
get '/access_codes/update'() {
|
|
237
|
+
const { client, defaults } = this;
|
|
238
|
+
return function accessCodesUpdate(...args) {
|
|
239
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
240
|
+
return seam.update(...args);
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Updates [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.
|
|
245
|
+
*
|
|
246
|
+
* Specify the `common_code_key` to identify the set of access codes that you want to update.
|
|
247
|
+
*
|
|
248
|
+
* See also [Update Linked Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes#update-linked-access-codes).
|
|
249
|
+
*/
|
|
250
|
+
get '/access_codes/update_multiple'() {
|
|
251
|
+
const { client, defaults } = this;
|
|
252
|
+
return function accessCodesUpdateMultiple(...args) {
|
|
253
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
254
|
+
return seam.updateMultiple(...args);
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Simulates the creation of an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) in a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
259
|
+
*/
|
|
260
|
+
get '/access_codes/simulate/create_unmanaged_access_code'() {
|
|
261
|
+
const { client, defaults } = this;
|
|
262
|
+
return function accessCodesSimulateCreateUnmanagedAccessCode(...args) {
|
|
263
|
+
const seam = SeamHttpAccessCodesSimulate.fromClient(client, defaults);
|
|
264
|
+
return seam.createUnmanagedAccessCode(...args);
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Converts an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) to an [access code managed through Seam](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
269
|
+
*
|
|
270
|
+
* An unmanaged access code has a limited set of operations that you can perform on it. Once you convert an unmanaged access code to a managed access code, the full set of access code operations and lifecycle events becomes available for it.
|
|
271
|
+
*
|
|
272
|
+
* Note that not all device providers support converting an unmanaged access code to a managed access code.
|
|
273
|
+
*/
|
|
274
|
+
get '/access_codes/unmanaged/convert_to_managed'() {
|
|
275
|
+
const { client, defaults } = this;
|
|
276
|
+
return function accessCodesUnmanagedConvertToManaged(...args) {
|
|
277
|
+
const seam = SeamHttpAccessCodesUnmanaged.fromClient(client, defaults);
|
|
278
|
+
return seam.convertToManaged(...args);
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Deletes an [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
|
|
283
|
+
*/
|
|
284
|
+
get '/access_codes/unmanaged/delete'() {
|
|
285
|
+
const { client, defaults } = this;
|
|
286
|
+
return function accessCodesUnmanagedDelete(...args) {
|
|
287
|
+
const seam = SeamHttpAccessCodesUnmanaged.fromClient(client, defaults);
|
|
288
|
+
return seam.delete(...args);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Returns a specified [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
|
|
293
|
+
*
|
|
294
|
+
* You must specify either `access_code_id` or both `device_id` and `code`.
|
|
295
|
+
*/
|
|
296
|
+
get '/access_codes/unmanaged/get'() {
|
|
297
|
+
const { client, defaults } = this;
|
|
298
|
+
return function accessCodesUnmanagedGet(...args) {
|
|
299
|
+
const seam = SeamHttpAccessCodesUnmanaged.fromClient(client, defaults);
|
|
300
|
+
return seam.get(...args);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Returns a list of all [unmanaged access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
|
|
305
|
+
*/
|
|
306
|
+
get '/access_codes/unmanaged/list'() {
|
|
307
|
+
const { client, defaults } = this;
|
|
308
|
+
return function accessCodesUnmanagedList(...args) {
|
|
309
|
+
const seam = SeamHttpAccessCodesUnmanaged.fromClient(client, defaults);
|
|
310
|
+
return seam.list(...args);
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Updates a specified [unmanaged access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).
|
|
315
|
+
*/
|
|
316
|
+
get '/access_codes/unmanaged/update'() {
|
|
317
|
+
const { client, defaults } = this;
|
|
318
|
+
return function accessCodesUnmanagedUpdate(...args) {
|
|
319
|
+
const seam = SeamHttpAccessCodesUnmanaged.fromClient(client, defaults);
|
|
320
|
+
return seam.update(...args);
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Creates a new [Access Grant](https://docs.seam.co/use-cases/granting-access/access-grants). Access Grants are the default and recommended way to grant a user access to any physical space, irrespective of the locking hardware. They work with both standalone smart locks (using `device_ids`) and access control systems (using `acs_entrance_ids` or `space_ids`), and can issue PIN codes, key cards, and mobile keys through a single request.
|
|
325
|
+
*/
|
|
326
|
+
get '/access_grants/create'() {
|
|
327
|
+
const { client, defaults } = this;
|
|
328
|
+
return function accessGrantsCreate(...args) {
|
|
329
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
330
|
+
return seam.create(...args);
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Delete an Access Grant.
|
|
335
|
+
*/
|
|
336
|
+
get '/access_grants/delete'() {
|
|
337
|
+
const { client, defaults } = this;
|
|
338
|
+
return function accessGrantsDelete(...args) {
|
|
339
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
340
|
+
return seam.delete(...args);
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Get an Access Grant.
|
|
345
|
+
*/
|
|
346
|
+
get '/access_grants/get'() {
|
|
347
|
+
const { client, defaults } = this;
|
|
348
|
+
return function accessGrantsGet(...args) {
|
|
349
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
350
|
+
return seam.get(...args);
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Gets all related resources for one or more Access Grants.
|
|
355
|
+
*/
|
|
356
|
+
get '/access_grants/get_related'() {
|
|
357
|
+
const { client, defaults } = this;
|
|
358
|
+
return function accessGrantsGetRelated(...args) {
|
|
359
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
360
|
+
return seam.getRelated(...args);
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Gets an Access Grant.
|
|
365
|
+
*/
|
|
366
|
+
get '/access_grants/list'() {
|
|
367
|
+
const { client, defaults } = this;
|
|
368
|
+
return function accessGrantsList(...args) {
|
|
369
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
370
|
+
return seam.list(...args);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Adds additional requested access methods to an existing Access Grant.
|
|
375
|
+
*/
|
|
376
|
+
get '/access_grants/request_access_methods'() {
|
|
377
|
+
const { client, defaults } = this;
|
|
378
|
+
return function accessGrantsRequestAccessMethods(...args) {
|
|
379
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
380
|
+
return seam.requestAccessMethods(...args);
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Updates an existing Access Grant's time window.
|
|
385
|
+
*/
|
|
386
|
+
get '/access_grants/update'() {
|
|
387
|
+
const { client, defaults } = this;
|
|
388
|
+
return function accessGrantsUpdate(...args) {
|
|
389
|
+
const seam = SeamHttpAccessGrants.fromClient(client, defaults);
|
|
390
|
+
return seam.update(...args);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Get an unmanaged Access Grant (where is_managed = false).
|
|
395
|
+
*/
|
|
396
|
+
get '/access_grants/unmanaged/get'() {
|
|
397
|
+
const { client, defaults } = this;
|
|
398
|
+
return function accessGrantsUnmanagedGet(...args) {
|
|
399
|
+
const seam = SeamHttpAccessGrantsUnmanaged.fromClient(client, defaults);
|
|
400
|
+
return seam.get(...args);
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Gets unmanaged Access Grants (where is_managed = false).
|
|
405
|
+
*/
|
|
406
|
+
get '/access_grants/unmanaged/list'() {
|
|
407
|
+
const { client, defaults } = this;
|
|
408
|
+
return function accessGrantsUnmanagedList(...args) {
|
|
409
|
+
const seam = SeamHttpAccessGrantsUnmanaged.fromClient(client, defaults);
|
|
410
|
+
return seam.list(...args);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Updates an unmanaged Access Grant to make it managed.
|
|
415
|
+
*
|
|
416
|
+
* This endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.
|
|
417
|
+
*
|
|
418
|
+
* When converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.
|
|
419
|
+
*/
|
|
420
|
+
get '/access_grants/unmanaged/update'() {
|
|
421
|
+
const { client, defaults } = this;
|
|
422
|
+
return function accessGrantsUnmanagedUpdate(...args) {
|
|
423
|
+
const seam = SeamHttpAccessGrantsUnmanaged.fromClient(client, defaults);
|
|
424
|
+
return seam.update(...args);
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Assigns a pre-registered card credential, identified by `card_number`, to a card-mode access method. Use this endpoint for access systems that use pre-registered cards, where a physical card must be associated with an access method before it can be used for access. Assigning a card credential also triggers issuance of the access method.
|
|
429
|
+
*/
|
|
430
|
+
get '/access_methods/assign_card'() {
|
|
431
|
+
const { client, defaults } = this;
|
|
432
|
+
return function accessMethodsAssignCard(...args) {
|
|
433
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
434
|
+
return seam.assignCard(...args);
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Deletes an access method.
|
|
439
|
+
*/
|
|
440
|
+
get '/access_methods/delete'() {
|
|
441
|
+
const { client, defaults } = this;
|
|
442
|
+
return function accessMethodsDelete(...args) {
|
|
443
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
444
|
+
return seam.delete(...args);
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Encodes an existing access method onto a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
449
|
+
*/
|
|
450
|
+
get '/access_methods/encode'() {
|
|
451
|
+
const { client, defaults } = this;
|
|
452
|
+
return function accessMethodsEncode(...args) {
|
|
453
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
454
|
+
return seam.encode(...args);
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Gets an access method.
|
|
459
|
+
*/
|
|
460
|
+
get '/access_methods/get'() {
|
|
461
|
+
const { client, defaults } = this;
|
|
462
|
+
return function accessMethodsGet(...args) {
|
|
463
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
464
|
+
return seam.get(...args);
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Gets all related resources for one or more Access Methods.
|
|
469
|
+
*/
|
|
470
|
+
get '/access_methods/get_related'() {
|
|
471
|
+
const { client, defaults } = this;
|
|
472
|
+
return function accessMethodsGetRelated(...args) {
|
|
473
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
474
|
+
return seam.getRelated(...args);
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Lists all access methods, usually filtered by Access Grant.
|
|
479
|
+
*/
|
|
480
|
+
get '/access_methods/list'() {
|
|
481
|
+
const { client, defaults } = this;
|
|
482
|
+
return function accessMethodsList(...args) {
|
|
483
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
484
|
+
return seam.list(...args);
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Remotely unlocks a specified [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) using the cloud key credential associated with an access method. Returns an action attempt that tracks the progress of the unlock operation.
|
|
489
|
+
*/
|
|
490
|
+
get '/access_methods/unlock_door'() {
|
|
491
|
+
const { client, defaults } = this;
|
|
492
|
+
return function accessMethodsUnlockDoor(...args) {
|
|
493
|
+
const seam = SeamHttpAccessMethods.fromClient(client, defaults);
|
|
494
|
+
return seam.unlockDoor(...args);
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Gets an unmanaged access method (where is_managed = false).
|
|
499
|
+
*/
|
|
500
|
+
get '/access_methods/unmanaged/get'() {
|
|
501
|
+
const { client, defaults } = this;
|
|
502
|
+
return function accessMethodsUnmanagedGet(...args) {
|
|
503
|
+
const seam = SeamHttpAccessMethodsUnmanaged.fromClient(client, defaults);
|
|
504
|
+
return seam.get(...args);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Lists all unmanaged access methods (where is_managed = false), usually filtered by Access Grant.
|
|
509
|
+
*/
|
|
510
|
+
get '/access_methods/unmanaged/list'() {
|
|
511
|
+
const { client, defaults } = this;
|
|
512
|
+
return function accessMethodsUnmanagedList(...args) {
|
|
513
|
+
const seam = SeamHttpAccessMethodsUnmanaged.fromClient(client, defaults);
|
|
514
|
+
return seam.list(...args);
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Adds a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) to a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
519
|
+
*/
|
|
520
|
+
get '/acs/access_groups/add_user'() {
|
|
521
|
+
const { client, defaults } = this;
|
|
522
|
+
return function acsAccessGroupsAddUser(...args) {
|
|
523
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
524
|
+
return seam.addUser(...args);
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Deletes a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
529
|
+
*/
|
|
530
|
+
get '/acs/access_groups/delete'() {
|
|
531
|
+
const { client, defaults } = this;
|
|
532
|
+
return function acsAccessGroupsDelete(...args) {
|
|
533
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
534
|
+
return seam.delete(...args);
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Returns a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
539
|
+
*/
|
|
540
|
+
get '/acs/access_groups/get'() {
|
|
541
|
+
const { client, defaults } = this;
|
|
542
|
+
return function acsAccessGroupsGet(...args) {
|
|
543
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
544
|
+
return seam.get(...args);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Returns a list of all [access groups](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
549
|
+
*/
|
|
550
|
+
get '/acs/access_groups/list'() {
|
|
551
|
+
const { client, defaults } = this;
|
|
552
|
+
return function acsAccessGroupsList(...args) {
|
|
553
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
554
|
+
return seam.list(...args);
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Returns a list of all accessible entrances for a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
559
|
+
*/
|
|
560
|
+
get '/acs/access_groups/list_accessible_entrances'() {
|
|
561
|
+
const { client, defaults } = this;
|
|
562
|
+
return function acsAccessGroupsListAccessibleEntrances(...args) {
|
|
563
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
564
|
+
return seam.listAccessibleEntrances(...args);
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Returns a list of all [access system users](https://docs.seam.co/low-level-apis/access-systems/user-management) in an [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
569
|
+
*/
|
|
570
|
+
get '/acs/access_groups/list_users'() {
|
|
571
|
+
const { client, defaults } = this;
|
|
572
|
+
return function acsAccessGroupsListUsers(...args) {
|
|
573
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
574
|
+
return seam.listUsers(...args);
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
579
|
+
*/
|
|
580
|
+
get '/acs/access_groups/remove_user'() {
|
|
581
|
+
const { client, defaults } = this;
|
|
582
|
+
return function acsAccessGroupsRemoveUser(...args) {
|
|
583
|
+
const seam = SeamHttpAcsAccessGroups.fromClient(client, defaults);
|
|
584
|
+
return seam.removeUser(...args);
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Assigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) to a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
589
|
+
*/
|
|
590
|
+
get '/acs/credentials/assign'() {
|
|
591
|
+
const { client, defaults } = this;
|
|
592
|
+
return function acsCredentialsAssign(...args) {
|
|
593
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
594
|
+
return seam.assign(...args);
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Creates a new [credential](https://docs.seam.co/low-level-apis/managing-credentials) for a specified [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they create and manage the underlying credentials for you, across access systems and standalone smart locks alike. Use this low-level endpoint only when you need direct control over an individual ACS credential.
|
|
599
|
+
*/
|
|
600
|
+
get '/acs/credentials/create'() {
|
|
601
|
+
const { client, defaults } = this;
|
|
602
|
+
return function acsCredentialsCreate(...args) {
|
|
603
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
604
|
+
return seam.create(...args);
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Deletes a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
609
|
+
*/
|
|
610
|
+
get '/acs/credentials/delete'() {
|
|
611
|
+
const { client, defaults } = this;
|
|
612
|
+
return function acsCredentialsDelete(...args) {
|
|
613
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
614
|
+
return seam.delete(...args);
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Returns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
619
|
+
*/
|
|
620
|
+
get '/acs/credentials/get'() {
|
|
621
|
+
const { client, defaults } = this;
|
|
622
|
+
return function acsCredentialsGet(...args) {
|
|
623
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
624
|
+
return seam.get(...args);
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
629
|
+
*/
|
|
630
|
+
get '/acs/credentials/list'() {
|
|
631
|
+
const { client, defaults } = this;
|
|
632
|
+
return function acsCredentialsList(...args) {
|
|
633
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
634
|
+
return seam.list(...args);
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Returns a list of all [entrances](https://docs.seam.co/api/acs/entrances) to which a [credential](https://docs.seam.co/api/acs/credentials) grants access.
|
|
639
|
+
*/
|
|
640
|
+
get '/acs/credentials/list_accessible_entrances'() {
|
|
641
|
+
const { client, defaults } = this;
|
|
642
|
+
return function acsCredentialsListAccessibleEntrances(...args) {
|
|
643
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
644
|
+
return seam.listAccessibleEntrances(...args);
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Unassigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
649
|
+
*/
|
|
650
|
+
get '/acs/credentials/unassign'() {
|
|
651
|
+
const { client, defaults } = this;
|
|
652
|
+
return function acsCredentialsUnassign(...args) {
|
|
653
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
654
|
+
return seam.unassign(...args);
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Updates the code and ends at date and time for a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
659
|
+
*/
|
|
660
|
+
get '/acs/credentials/update'() {
|
|
661
|
+
const { client, defaults } = this;
|
|
662
|
+
return function acsCredentialsUpdate(...args) {
|
|
663
|
+
const seam = SeamHttpAcsCredentials.fromClient(client, defaults);
|
|
664
|
+
return seam.update(...args);
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Encodes an existing [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners). Either provide an `acs_credential_id` or an `access_method_id`
|
|
669
|
+
*/
|
|
670
|
+
get '/acs/encoders/encode_credential'() {
|
|
671
|
+
const { client, defaults } = this;
|
|
672
|
+
return function acsEncodersEncodeCredential(...args) {
|
|
673
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
674
|
+
return seam.encodeCredential(...args);
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Returns a specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
679
|
+
*/
|
|
680
|
+
get '/acs/encoders/get'() {
|
|
681
|
+
const { client, defaults } = this;
|
|
682
|
+
return function acsEncodersGet(...args) {
|
|
683
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
684
|
+
return seam.get(...args);
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Returns a list of all [encoders](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
689
|
+
*/
|
|
690
|
+
get '/acs/encoders/list'() {
|
|
691
|
+
const { client, defaults } = this;
|
|
692
|
+
return function acsEncodersList(...args) {
|
|
693
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
694
|
+
return seam.list(...args);
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Scans an encoded [acs_credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
699
|
+
*/
|
|
700
|
+
get '/acs/encoders/scan_credential'() {
|
|
701
|
+
const { client, defaults } = this;
|
|
702
|
+
return function acsEncodersScanCredential(...args) {
|
|
703
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
704
|
+
return seam.scanCredential(...args);
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Scans a physical card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) and assigns the scanned credential to an ACS user. Provide either an `acs_user_id` or a `user_identity_id`.
|
|
709
|
+
*/
|
|
710
|
+
get '/acs/encoders/scan_to_assign_credential'() {
|
|
711
|
+
const { client, defaults } = this;
|
|
712
|
+
return function acsEncodersScanToAssignCredential(...args) {
|
|
713
|
+
const seam = SeamHttpAcsEncoders.fromClient(client, defaults);
|
|
714
|
+
return seam.scanToAssignCredential(...args);
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
719
|
+
*/
|
|
720
|
+
get '/acs/encoders/simulate/next_credential_encode_will_fail'() {
|
|
721
|
+
const { client, defaults } = this;
|
|
722
|
+
return function acsEncodersSimulateNextCredentialEncodeWillFail(...args) {
|
|
723
|
+
const seam = SeamHttpAcsEncodersSimulate.fromClient(client, defaults);
|
|
724
|
+
return seam.nextCredentialEncodeWillFail(...args);
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
729
|
+
*/
|
|
730
|
+
get '/acs/encoders/simulate/next_credential_encode_will_succeed'() {
|
|
731
|
+
const { client, defaults } = this;
|
|
732
|
+
return function acsEncodersSimulateNextCredentialEncodeWillSucceed(...args) {
|
|
733
|
+
const seam = SeamHttpAcsEncodersSimulate.fromClient(client, defaults);
|
|
734
|
+
return seam.nextCredentialEncodeWillSucceed(...args);
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
739
|
+
*/
|
|
740
|
+
get '/acs/encoders/simulate/next_credential_scan_will_fail'() {
|
|
741
|
+
const { client, defaults } = this;
|
|
742
|
+
return function acsEncodersSimulateNextCredentialScanWillFail(...args) {
|
|
743
|
+
const seam = SeamHttpAcsEncodersSimulate.fromClient(client, defaults);
|
|
744
|
+
return seam.nextCredentialScanWillFail(...args);
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
749
|
+
*/
|
|
750
|
+
get '/acs/encoders/simulate/next_credential_scan_will_succeed'() {
|
|
751
|
+
const { client, defaults } = this;
|
|
752
|
+
return function acsEncodersSimulateNextCredentialScanWillSucceed(...args) {
|
|
753
|
+
const seam = SeamHttpAcsEncodersSimulate.fromClient(client, defaults);
|
|
754
|
+
return seam.nextCredentialScanWillSucceed(...args);
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Returns a specified [access system entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
|
|
759
|
+
*/
|
|
760
|
+
get '/acs/entrances/get'() {
|
|
761
|
+
const { client, defaults } = this;
|
|
762
|
+
return function acsEntrancesGet(...args) {
|
|
763
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults);
|
|
764
|
+
return seam.get(...args);
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Grants a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) access to a specified [access system entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
|
|
769
|
+
*/
|
|
770
|
+
get '/acs/entrances/grant_access'() {
|
|
771
|
+
const { client, defaults } = this;
|
|
772
|
+
return function acsEntrancesGrantAccess(...args) {
|
|
773
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults);
|
|
774
|
+
return seam.grantAccess(...args);
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Returns a list of all [access system entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
|
|
779
|
+
*/
|
|
780
|
+
get '/acs/entrances/list'() {
|
|
781
|
+
const { client, defaults } = this;
|
|
782
|
+
return function acsEntrancesList(...args) {
|
|
783
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults);
|
|
784
|
+
return seam.list(...args);
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) with access to a specified [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).
|
|
789
|
+
*/
|
|
790
|
+
get '/acs/entrances/list_credentials_with_access'() {
|
|
791
|
+
const { client, defaults } = this;
|
|
792
|
+
return function acsEntrancesListCredentialsWithAccess(...args) {
|
|
793
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults);
|
|
794
|
+
return seam.listCredentialsWithAccess(...args);
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Remotely unlocks a specified [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) using a cloud_key credential. Returns an action attempt that tracks the progress of the unlock operation.
|
|
799
|
+
*/
|
|
800
|
+
get '/acs/entrances/unlock'() {
|
|
801
|
+
const { client, defaults } = this;
|
|
802
|
+
return function acsEntrancesUnlock(...args) {
|
|
803
|
+
const seam = SeamHttpAcsEntrances.fromClient(client, defaults);
|
|
804
|
+
return seam.unlock(...args);
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Returns a specified [access system](https://docs.seam.co/low-level-apis/access-systems).
|
|
809
|
+
*/
|
|
810
|
+
get '/acs/systems/get'() {
|
|
811
|
+
const { client, defaults } = this;
|
|
812
|
+
return function acsSystemsGet(...args) {
|
|
813
|
+
const seam = SeamHttpAcsSystems.fromClient(client, defaults);
|
|
814
|
+
return seam.get(...args);
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Returns a list of all [access systems](https://docs.seam.co/low-level-apis/access-systems).
|
|
819
|
+
*
|
|
820
|
+
* To filter the list of returned access systems by a specific connected account ID, include the `connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the response includes all access systems connected to your workspace.
|
|
821
|
+
*/
|
|
822
|
+
get '/acs/systems/list'() {
|
|
823
|
+
const { client, defaults } = this;
|
|
824
|
+
return function acsSystemsList(...args) {
|
|
825
|
+
const seam = SeamHttpAcsSystems.fromClient(client, defaults);
|
|
826
|
+
return seam.list(...args);
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Returns a list of all credential manager systems that are compatible with a specified [access system](https://docs.seam.co/low-level-apis/access-systems).
|
|
831
|
+
*
|
|
832
|
+
* Specify the access system for which you want to retrieve all compatible credential manager systems by including the corresponding `acs_system_id` in the request body.
|
|
833
|
+
*/
|
|
834
|
+
get '/acs/systems/list_compatible_credential_manager_acs_systems'() {
|
|
835
|
+
const { client, defaults } = this;
|
|
836
|
+
return function acsSystemsListCompatibleCredentialManagerAcsSystems(...args) {
|
|
837
|
+
const seam = SeamHttpAcsSystems.fromClient(client, defaults);
|
|
838
|
+
return seam.listCompatibleCredentialManagerAcsSystems(...args);
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Reports ACS system device status including encoders and entrances.
|
|
843
|
+
*/
|
|
844
|
+
get '/acs/systems/report_devices'() {
|
|
845
|
+
const { client, defaults } = this;
|
|
846
|
+
return function acsSystemsReportDevices(...args) {
|
|
847
|
+
const seam = SeamHttpAcsSystems.fromClient(client, defaults);
|
|
848
|
+
return seam.reportDevices(...args);
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Adds a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) to a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
853
|
+
*/
|
|
854
|
+
get '/acs/users/add_to_access_group'() {
|
|
855
|
+
const { client, defaults } = this;
|
|
856
|
+
return function acsUsersAddToAccessGroup(...args) {
|
|
857
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
858
|
+
return seam.addToAccessGroup(...args);
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Creates a new [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
863
|
+
*/
|
|
864
|
+
get '/acs/users/create'() {
|
|
865
|
+
const { client, defaults } = this;
|
|
866
|
+
return function acsUsersCreate(...args) {
|
|
867
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
868
|
+
return seam.create(...args);
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Deletes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) and invalidates the access system user's [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
873
|
+
*/
|
|
874
|
+
get '/acs/users/delete'() {
|
|
875
|
+
const { client, defaults } = this;
|
|
876
|
+
return function acsUsersDelete(...args) {
|
|
877
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
878
|
+
return seam.delete(...args);
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Returns a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
883
|
+
*/
|
|
884
|
+
get '/acs/users/get'() {
|
|
885
|
+
const { client, defaults } = this;
|
|
886
|
+
return function acsUsersGet(...args) {
|
|
887
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
888
|
+
return seam.get(...args);
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Returns a list of all [access system users](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
893
|
+
*/
|
|
894
|
+
get '/acs/users/list'() {
|
|
895
|
+
const { client, defaults } = this;
|
|
896
|
+
return function acsUsersList(...args) {
|
|
897
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
898
|
+
return seam.list(...args);
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Lists the [entrances](https://docs.seam.co/api/acs/entrances) to which a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) has access.
|
|
903
|
+
*/
|
|
904
|
+
get '/acs/users/list_accessible_entrances'() {
|
|
905
|
+
const { client, defaults } = this;
|
|
906
|
+
return function acsUsersListAccessibleEntrances(...args) {
|
|
907
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
908
|
+
return seam.listAccessibleEntrances(...args);
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
913
|
+
*/
|
|
914
|
+
get '/acs/users/remove_from_access_group'() {
|
|
915
|
+
const { client, defaults } = this;
|
|
916
|
+
return function acsUsersRemoveFromAccessGroup(...args) {
|
|
917
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
918
|
+
return seam.removeFromAccessGroup(...args);
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Revokes access to all [entrances](https://docs.seam.co/api/acs/entrances) for a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
923
|
+
*/
|
|
924
|
+
get '/acs/users/revoke_access_to_all_entrances'() {
|
|
925
|
+
const { client, defaults } = this;
|
|
926
|
+
return function acsUsersRevokeAccessToAllEntrances(...args) {
|
|
927
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
928
|
+
return seam.revokeAccessToAllEntrances(...args);
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* [Suspends](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#suspend-an-acs-user) a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Suspending an access system user revokes their access temporarily. To restore an access system user's access, you can [unsuspend](https://docs.seam.co/api/acs/users/unsuspend) them.
|
|
933
|
+
*/
|
|
934
|
+
get '/acs/users/suspend'() {
|
|
935
|
+
const { client, defaults } = this;
|
|
936
|
+
return function acsUsersSuspend(...args) {
|
|
937
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
938
|
+
return seam.suspend(...args);
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* [Unsuspends](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#unsuspend-an-acs-user) a specified suspended [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). While [suspending an access system user](https://docs.seam.co/api/acs/users/suspend) revokes their access temporarily, unsuspending the access system user restores their access.
|
|
943
|
+
*/
|
|
944
|
+
get '/acs/users/unsuspend'() {
|
|
945
|
+
const { client, defaults } = this;
|
|
946
|
+
return function acsUsersUnsuspend(...args) {
|
|
947
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
948
|
+
return seam.unsuspend(...args);
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Updates the properties of a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
953
|
+
*/
|
|
954
|
+
get '/acs/users/update'() {
|
|
955
|
+
const { client, defaults } = this;
|
|
956
|
+
return function acsUsersUpdate(...args) {
|
|
957
|
+
const seam = SeamHttpAcsUsers.fromClient(client, defaults);
|
|
958
|
+
return seam.update(...args);
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Returns a specified [action attempt](https://docs.seam.co/core-concepts/action-attempts).
|
|
963
|
+
*/
|
|
964
|
+
get '/action_attempts/get'() {
|
|
965
|
+
const { client, defaults } = this;
|
|
966
|
+
return function actionAttemptsGet(...args) {
|
|
967
|
+
const seam = SeamHttpActionAttempts.fromClient(client, defaults);
|
|
968
|
+
return seam.get(...args);
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Returns a list of the [action attempts](https://docs.seam.co/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s.
|
|
973
|
+
*/
|
|
974
|
+
get '/action_attempts/list'() {
|
|
975
|
+
const { client, defaults } = this;
|
|
976
|
+
return function actionAttemptsList(...args) {
|
|
977
|
+
const seam = SeamHttpActionAttempts.fromClient(client, defaults);
|
|
978
|
+
return seam.list(...args);
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Creates a new [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
983
|
+
*/
|
|
984
|
+
get '/client_sessions/create'() {
|
|
985
|
+
const { client, defaults } = this;
|
|
986
|
+
return function clientSessionsCreate(...args) {
|
|
987
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
988
|
+
return seam.create(...args);
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Deletes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
993
|
+
*/
|
|
994
|
+
get '/client_sessions/delete'() {
|
|
995
|
+
const { client, defaults } = this;
|
|
996
|
+
return function clientSessionsDelete(...args) {
|
|
997
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
998
|
+
return seam.delete(...args);
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Returns a specified [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
1003
|
+
*/
|
|
1004
|
+
get '/client_sessions/get'() {
|
|
1005
|
+
const { client, defaults } = this;
|
|
1006
|
+
return function clientSessionsGet(...args) {
|
|
1007
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
1008
|
+
return seam.get(...args);
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Returns a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) with specific characteristics or creates a new client session with these characteristics if it does not yet exist.
|
|
1013
|
+
*/
|
|
1014
|
+
get '/client_sessions/get_or_create'() {
|
|
1015
|
+
const { client, defaults } = this;
|
|
1016
|
+
return function clientSessionsGetOrCreate(...args) {
|
|
1017
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
1018
|
+
return seam.getOrCreate(...args);
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Grants a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) access to one or more resources, such as [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews), [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), and so on.
|
|
1023
|
+
*/
|
|
1024
|
+
get '/client_sessions/grant_access'() {
|
|
1025
|
+
const { client, defaults } = this;
|
|
1026
|
+
return function clientSessionsGrantAccess(...args) {
|
|
1027
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
1028
|
+
return seam.grantAccess(...args);
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns a list of all [client sessions](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
1033
|
+
*/
|
|
1034
|
+
get '/client_sessions/list'() {
|
|
1035
|
+
const { client, defaults } = this;
|
|
1036
|
+
return function clientSessionsList(...args) {
|
|
1037
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
1038
|
+
return seam.list(...args);
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Revokes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
1043
|
+
*
|
|
1044
|
+
* Note that [deleting a client session](https://docs.seam.co/api/client_sessions/delete) is a separate action.
|
|
1045
|
+
*/
|
|
1046
|
+
get '/client_sessions/revoke'() {
|
|
1047
|
+
const { client, defaults } = this;
|
|
1048
|
+
return function clientSessionsRevoke(...args) {
|
|
1049
|
+
const seam = SeamHttpClientSessions.fromClient(client, defaults);
|
|
1050
|
+
return seam.revoke(...args);
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Creates a new [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
1055
|
+
*
|
|
1056
|
+
* To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
|
|
1057
|
+
*
|
|
1058
|
+
* You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
|
|
1059
|
+
*
|
|
1060
|
+
* See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
|
|
1061
|
+
*/
|
|
1062
|
+
get '/connect_webviews/create'() {
|
|
1063
|
+
const { client, defaults } = this;
|
|
1064
|
+
return function connectWebviewsCreate(...args) {
|
|
1065
|
+
const seam = SeamHttpConnectWebviews.fromClient(client, defaults);
|
|
1066
|
+
return seam.create(...args);
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
1071
|
+
*
|
|
1072
|
+
* You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
|
|
1073
|
+
*/
|
|
1074
|
+
get '/connect_webviews/delete'() {
|
|
1075
|
+
const { client, defaults } = this;
|
|
1076
|
+
return function connectWebviewsDelete(...args) {
|
|
1077
|
+
const seam = SeamHttpConnectWebviews.fromClient(client, defaults);
|
|
1078
|
+
return seam.delete(...args);
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
1083
|
+
*
|
|
1084
|
+
* Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
|
|
1085
|
+
*/
|
|
1086
|
+
get '/connect_webviews/get'() {
|
|
1087
|
+
const { client, defaults } = this;
|
|
1088
|
+
return function connectWebviewsGet(...args) {
|
|
1089
|
+
const seam = SeamHttpConnectWebviews.fromClient(client, defaults);
|
|
1090
|
+
return seam.get(...args);
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
|
|
1095
|
+
*/
|
|
1096
|
+
get '/connect_webviews/list'() {
|
|
1097
|
+
const { client, defaults } = this;
|
|
1098
|
+
return function connectWebviewsList(...args) {
|
|
1099
|
+
const seam = SeamHttpConnectWebviews.fromClient(client, defaults);
|
|
1100
|
+
return seam.list(...args);
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Deletes a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
1105
|
+
*
|
|
1106
|
+
* Deleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.
|
|
1107
|
+
*
|
|
1108
|
+
* For example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.
|
|
1109
|
+
*/
|
|
1110
|
+
get '/connected_accounts/delete'() {
|
|
1111
|
+
const { client, defaults } = this;
|
|
1112
|
+
return function connectedAccountsDelete(...args) {
|
|
1113
|
+
const seam = SeamHttpConnectedAccounts.fromClient(client, defaults);
|
|
1114
|
+
return seam.delete(...args);
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Returns a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
1119
|
+
*/
|
|
1120
|
+
get '/connected_accounts/get'() {
|
|
1121
|
+
const { client, defaults } = this;
|
|
1122
|
+
return function connectedAccountsGet(...args) {
|
|
1123
|
+
const seam = SeamHttpConnectedAccounts.fromClient(client, defaults);
|
|
1124
|
+
return seam.get(...args);
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
|
|
1129
|
+
*/
|
|
1130
|
+
get '/connected_accounts/list'() {
|
|
1131
|
+
const { client, defaults } = this;
|
|
1132
|
+
return function connectedAccountsList(...args) {
|
|
1133
|
+
const seam = SeamHttpConnectedAccounts.fromClient(client, defaults);
|
|
1134
|
+
return seam.list(...args);
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Request a [connected account](https://docs.seam.co/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.
|
|
1139
|
+
*/
|
|
1140
|
+
get '/connected_accounts/sync'() {
|
|
1141
|
+
const { client, defaults } = this;
|
|
1142
|
+
return function connectedAccountsSync(...args) {
|
|
1143
|
+
const seam = SeamHttpConnectedAccounts.fromClient(client, defaults);
|
|
1144
|
+
return seam.sync(...args);
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Updates a [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
1149
|
+
*/
|
|
1150
|
+
get '/connected_accounts/update'() {
|
|
1151
|
+
const { client, defaults } = this;
|
|
1152
|
+
return function connectedAccountsUpdate(...args) {
|
|
1153
|
+
const seam = SeamHttpConnectedAccounts.fromClient(client, defaults);
|
|
1154
|
+
return seam.update(...args);
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Simulates a connected account becoming disconnected from Seam. Only applicable for [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
1159
|
+
*/
|
|
1160
|
+
get '/connected_accounts/simulate/disconnect'() {
|
|
1161
|
+
const { client, defaults } = this;
|
|
1162
|
+
return function connectedAccountsSimulateDisconnect(...args) {
|
|
1163
|
+
const seam = SeamHttpConnectedAccountsSimulate.fromClient(client, defaults);
|
|
1164
|
+
return seam.disconnect(...args);
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Creates a new customer portal magic link with configurable features.
|
|
1169
|
+
*/
|
|
1170
|
+
get '/customers/create_portal'() {
|
|
1171
|
+
const { client, defaults } = this;
|
|
1172
|
+
return function customersCreatePortal(...args) {
|
|
1173
|
+
const seam = SeamHttpCustomers.fromClient(client, defaults);
|
|
1174
|
+
return seam.createPortal(...args);
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Deletes customer data including resources like spaces, properties, rooms, users, etc.
|
|
1179
|
+
* This will delete the partner resources and any related Seam resources (user identities, access grants, spaces).
|
|
1180
|
+
*/
|
|
1181
|
+
get '/customers/delete_data'() {
|
|
1182
|
+
const { client, defaults } = this;
|
|
1183
|
+
return function customersDeleteData(...args) {
|
|
1184
|
+
const seam = SeamHttpCustomers.fromClient(client, defaults);
|
|
1185
|
+
return seam.deleteData(...args);
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Pushes customer data including resources like spaces, properties, rooms, users, etc.
|
|
1190
|
+
*/
|
|
1191
|
+
get '/customers/push_data'() {
|
|
1192
|
+
const { client, defaults } = this;
|
|
1193
|
+
return function customersPushData(...args) {
|
|
1194
|
+
const seam = SeamHttpCustomers.fromClient(client, defaults);
|
|
1195
|
+
return seam.pushData(...args);
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Returns a specified [device](https://docs.seam.co/core-concepts/devices).
|
|
1200
|
+
*
|
|
1201
|
+
* You must specify either `device_id` or `name`.
|
|
1202
|
+
*/
|
|
1203
|
+
get '/devices/get'() {
|
|
1204
|
+
const { client, defaults } = this;
|
|
1205
|
+
return function devicesGet(...args) {
|
|
1206
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
1207
|
+
return seam.get(...args);
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Returns a list of all [devices](https://docs.seam.co/core-concepts/devices).
|
|
1212
|
+
*/
|
|
1213
|
+
get '/devices/list'() {
|
|
1214
|
+
const { client, defaults } = this;
|
|
1215
|
+
return function devicesList(...args) {
|
|
1216
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
1217
|
+
return seam.list(...args);
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Returns a list of all device providers.
|
|
1222
|
+
*
|
|
1223
|
+
* The information that this endpoint returns for each provider includes a set of [capability flags](https://docs.seam.co/capability-guides/device-and-system-capabilities#capability-flags), such as `device_provider.can_remotely_unlock`. If at least one supported device from a provider has a specific capability, the corresponding capability flag is `true`.
|
|
1224
|
+
*
|
|
1225
|
+
* When you create a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews), you can customize the providers—that is, the brands—that it displays. In the `/connect_webviews/create` request, include the desired set of device provider keys in the `accepted_providers` parameter. See also [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
|
|
1226
|
+
*/
|
|
1227
|
+
get '/devices/list_device_providers'() {
|
|
1228
|
+
const { client, defaults } = this;
|
|
1229
|
+
return function devicesListDeviceProviders(...args) {
|
|
1230
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
1231
|
+
return seam.listDeviceProviders(...args);
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Updates provider-specific metadata for devices.
|
|
1236
|
+
*/
|
|
1237
|
+
get '/devices/report_provider_metadata'() {
|
|
1238
|
+
const { client, defaults } = this;
|
|
1239
|
+
return function devicesReportProviderMetadata(...args) {
|
|
1240
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
1241
|
+
return seam.reportProviderMetadata(...args);
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Updates a specified [device](https://docs.seam.co/core-concepts/devices).
|
|
1246
|
+
*
|
|
1247
|
+
* You can add or change [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) for a device, change the device's name, or [convert a managed device to unmanaged](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
1248
|
+
*/
|
|
1249
|
+
get '/devices/update'() {
|
|
1250
|
+
const { client, defaults } = this;
|
|
1251
|
+
return function devicesUpdate(...args) {
|
|
1252
|
+
const seam = SeamHttpDevices.fromClient(client, defaults);
|
|
1253
|
+
return seam.update(...args);
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Simulates connecting a device to Seam. Only applicable for [sandbox devices](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).
|
|
1258
|
+
*/
|
|
1259
|
+
get '/devices/simulate/connect'() {
|
|
1260
|
+
const { client, defaults } = this;
|
|
1261
|
+
return function devicesSimulateConnect(...args) {
|
|
1262
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1263
|
+
return seam.connect(...args);
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Simulates bringing the Wi‑Fi hub (bridge) back online for a device.
|
|
1268
|
+
* Only applicable for sandbox workspaces and currently
|
|
1269
|
+
* implemented for August and TTLock locks.
|
|
1270
|
+
* This will clear the `hub_disconnected` error on the device.
|
|
1271
|
+
*/
|
|
1272
|
+
get '/devices/simulate/connect_to_hub'() {
|
|
1273
|
+
const { client, defaults } = this;
|
|
1274
|
+
return function devicesSimulateConnectToHub(...args) {
|
|
1275
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1276
|
+
return seam.connectToHub(...args);
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Simulates disconnecting a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).
|
|
1281
|
+
*/
|
|
1282
|
+
get '/devices/simulate/disconnect'() {
|
|
1283
|
+
const { client, defaults } = this;
|
|
1284
|
+
return function devicesSimulateDisconnect(...args) {
|
|
1285
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1286
|
+
return seam.disconnect(...args);
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* Simulates taking the Wi‑Fi hub (bridge) offline for a device.
|
|
1291
|
+
* Only applicable for sandbox workspaces and currently
|
|
1292
|
+
* implemented for August, TTLock, and IglooHome devices.
|
|
1293
|
+
* This will set the `hub_disconnected` error on the device, or mark the
|
|
1294
|
+
* IglooHome bridge offline in sandbox.
|
|
1295
|
+
*/
|
|
1296
|
+
get '/devices/simulate/disconnect_from_hub'() {
|
|
1297
|
+
const { client, defaults } = this;
|
|
1298
|
+
return function devicesSimulateDisconnectFromHub(...args) {
|
|
1299
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1300
|
+
return seam.disconnectFromHub(...args);
|
|
1301
|
+
};
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).
|
|
1305
|
+
* Send `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.
|
|
1306
|
+
* The actual device error is created/cleared by the poller after this state change.
|
|
1307
|
+
*/
|
|
1308
|
+
get '/devices/simulate/paid_subscription'() {
|
|
1309
|
+
const { client, defaults } = this;
|
|
1310
|
+
return function devicesSimulatePaidSubscription(...args) {
|
|
1311
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1312
|
+
return seam.paidSubscription(...args);
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Simulates removing a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).
|
|
1317
|
+
*/
|
|
1318
|
+
get '/devices/simulate/remove'() {
|
|
1319
|
+
const { client, defaults } = this;
|
|
1320
|
+
return function devicesSimulateRemove(...args) {
|
|
1321
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
1322
|
+
return seam.remove(...args);
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Returns a specified [unmanaged device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
1327
|
+
*
|
|
1328
|
+
* An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).
|
|
1329
|
+
*
|
|
1330
|
+
* You must specify either `device_id` or `name`.
|
|
1331
|
+
*/
|
|
1332
|
+
get '/devices/unmanaged/get'() {
|
|
1333
|
+
const { client, defaults } = this;
|
|
1334
|
+
return function devicesUnmanagedGet(...args) {
|
|
1335
|
+
const seam = SeamHttpDevicesUnmanaged.fromClient(client, defaults);
|
|
1336
|
+
return seam.get(...args);
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Returns a list of all [unmanaged devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
1341
|
+
*
|
|
1342
|
+
* An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).
|
|
1343
|
+
*/
|
|
1344
|
+
get '/devices/unmanaged/list'() {
|
|
1345
|
+
const { client, defaults } = this;
|
|
1346
|
+
return function devicesUnmanagedList(...args) {
|
|
1347
|
+
const seam = SeamHttpDevicesUnmanaged.fromClient(client, defaults);
|
|
1348
|
+
return seam.list(...args);
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Updates a specified [unmanaged device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices). To convert an unmanaged device to managed, set `is_managed` to `true`.
|
|
1353
|
+
*
|
|
1354
|
+
* An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).
|
|
1355
|
+
*/
|
|
1356
|
+
get '/devices/unmanaged/update'() {
|
|
1357
|
+
const { client, defaults } = this;
|
|
1358
|
+
return function devicesUnmanagedUpdate(...args) {
|
|
1359
|
+
const seam = SeamHttpDevicesUnmanaged.fromClient(client, defaults);
|
|
1360
|
+
return seam.update(...args);
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://docs.seam.co/developer-tools/webhooks), but it enables you to retrieve an event that already took place.
|
|
1365
|
+
*/
|
|
1366
|
+
get '/events/get'() {
|
|
1367
|
+
const { client, defaults } = this;
|
|
1368
|
+
return function eventsGet(...args) {
|
|
1369
|
+
const seam = SeamHttpEvents.fromClient(client, defaults);
|
|
1370
|
+
return seam.get(...args);
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://docs.seam.co/developer-tools/webhooks), but it enables you to filter or see events that already took place.
|
|
1375
|
+
*/
|
|
1376
|
+
get '/events/list'() {
|
|
1377
|
+
const { client, defaults } = this;
|
|
1378
|
+
return function eventsList(...args) {
|
|
1379
|
+
const seam = SeamHttpEvents.fromClient(client, defaults);
|
|
1380
|
+
return seam.list(...args);
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* Deletes a specified [Instant Key](https://docs.seam.co/capability-guides/instant-keys).
|
|
1385
|
+
*/
|
|
1386
|
+
get '/instant_keys/delete'() {
|
|
1387
|
+
const { client, defaults } = this;
|
|
1388
|
+
return function instantKeysDelete(...args) {
|
|
1389
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
1390
|
+
return seam.delete(...args);
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Gets an [instant key](https://docs.seam.co/capability-guides/instant-keys).
|
|
1395
|
+
*/
|
|
1396
|
+
get '/instant_keys/get'() {
|
|
1397
|
+
const { client, defaults } = this;
|
|
1398
|
+
return function instantKeysGet(...args) {
|
|
1399
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
1400
|
+
return seam.get(...args);
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Returns a list of all [instant keys](https://docs.seam.co/capability-guides/instant-keys).
|
|
1405
|
+
*/
|
|
1406
|
+
get '/instant_keys/list'() {
|
|
1407
|
+
const { client, defaults } = this;
|
|
1408
|
+
return function instantKeysList(...args) {
|
|
1409
|
+
const seam = SeamHttpInstantKeys.fromClient(client, defaults);
|
|
1410
|
+
return seam.list(...args);
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Configures the auto-lock setting for a specified [lock](https://docs.seam.co/low-level-apis/smart-locks).
|
|
1415
|
+
*/
|
|
1416
|
+
get '/locks/configure_auto_lock'() {
|
|
1417
|
+
const { client, defaults } = this;
|
|
1418
|
+
return function locksConfigureAutoLock(...args) {
|
|
1419
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
1420
|
+
return seam.configureAutoLock(...args);
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns a specified [lock](https://docs.seam.co/low-level-apis/smart-locks).
|
|
1425
|
+
* @deprecated Use `/devices/get` instead.
|
|
1426
|
+
*/
|
|
1427
|
+
get '/locks/get'() {
|
|
1428
|
+
const { client, defaults } = this;
|
|
1429
|
+
return function locksGet(...args) {
|
|
1430
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
1431
|
+
return seam.get(...args);
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Returns a list of all [locks](https://docs.seam.co/low-level-apis/smart-locks).
|
|
1436
|
+
*/
|
|
1437
|
+
get '/locks/list'() {
|
|
1438
|
+
const { client, defaults } = this;
|
|
1439
|
+
return function locksList(...args) {
|
|
1440
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
1441
|
+
return seam.list(...args);
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Locks a [lock](https://docs.seam.co/low-level-apis/smart-locks). See also [Locking and Unlocking Smart Locks](https://docs.seam.co/low-level-apis/smart-locks/lock-and-unlock).
|
|
1446
|
+
*/
|
|
1447
|
+
get '/locks/lock_door'() {
|
|
1448
|
+
const { client, defaults } = this;
|
|
1449
|
+
return function locksLockDoor(...args) {
|
|
1450
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
1451
|
+
return seam.lockDoor(...args);
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Unlocks a [lock](https://docs.seam.co/low-level-apis/smart-locks). See also [Locking and Unlocking Smart Locks](https://docs.seam.co/low-level-apis/smart-locks/lock-and-unlock).
|
|
1456
|
+
*/
|
|
1457
|
+
get '/locks/unlock_door'() {
|
|
1458
|
+
const { client, defaults } = this;
|
|
1459
|
+
return function locksUnlockDoor(...args) {
|
|
1460
|
+
const seam = SeamHttpLocks.fromClient(client, defaults);
|
|
1461
|
+
return seam.unlockDoor(...args);
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Simulates the entry of a code on a keypad. You can only perform this action for [August](https://docs.seam.co/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
1466
|
+
*/
|
|
1467
|
+
get '/locks/simulate/keypad_code_entry'() {
|
|
1468
|
+
const { client, defaults } = this;
|
|
1469
|
+
return function locksSimulateKeypadCodeEntry(...args) {
|
|
1470
|
+
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
1471
|
+
return seam.keypadCodeEntry(...args);
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Simulates a manual lock action using a keypad. You can only perform this action for [August](https://docs.seam.co/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
1476
|
+
*/
|
|
1477
|
+
get '/locks/simulate/manual_lock_via_keypad'() {
|
|
1478
|
+
const { client, defaults } = this;
|
|
1479
|
+
return function locksSimulateManualLockViaKeypad(...args) {
|
|
1480
|
+
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
1481
|
+
return seam.manualLockViaKeypad(...args);
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Returns a list of all [noise sensors](https://docs.seam.co/capability-guides/noise-sensors).
|
|
1486
|
+
*/
|
|
1487
|
+
get '/noise_sensors/list'() {
|
|
1488
|
+
const { client, defaults } = this;
|
|
1489
|
+
return function noiseSensorsList(...args) {
|
|
1490
|
+
const seam = SeamHttpNoiseSensors.fromClient(client, defaults);
|
|
1491
|
+
return seam.list(...args);
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Creates a new [noise threshold](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.
|
|
1496
|
+
*/
|
|
1497
|
+
get '/noise_sensors/noise_thresholds/create'() {
|
|
1498
|
+
const { client, defaults } = this;
|
|
1499
|
+
return function noiseSensorsNoiseThresholdsCreate(...args) {
|
|
1500
|
+
const seam = SeamHttpNoiseSensorsNoiseThresholds.fromClient(client, defaults);
|
|
1501
|
+
return seam.create(...args);
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Deletes a [noise threshold](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) from a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors).
|
|
1506
|
+
*/
|
|
1507
|
+
get '/noise_sensors/noise_thresholds/delete'() {
|
|
1508
|
+
const { client, defaults } = this;
|
|
1509
|
+
return function noiseSensorsNoiseThresholdsDelete(...args) {
|
|
1510
|
+
const seam = SeamHttpNoiseSensorsNoiseThresholds.fromClient(client, defaults);
|
|
1511
|
+
return seam.delete(...args);
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Returns a specified [noise threshold](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors).
|
|
1516
|
+
*/
|
|
1517
|
+
get '/noise_sensors/noise_thresholds/get'() {
|
|
1518
|
+
const { client, defaults } = this;
|
|
1519
|
+
return function noiseSensorsNoiseThresholdsGet(...args) {
|
|
1520
|
+
const seam = SeamHttpNoiseSensorsNoiseThresholds.fromClient(client, defaults);
|
|
1521
|
+
return seam.get(...args);
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Returns a list of all [noise thresholds](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors).
|
|
1526
|
+
*/
|
|
1527
|
+
get '/noise_sensors/noise_thresholds/list'() {
|
|
1528
|
+
const { client, defaults } = this;
|
|
1529
|
+
return function noiseSensorsNoiseThresholdsList(...args) {
|
|
1530
|
+
const seam = SeamHttpNoiseSensorsNoiseThresholds.fromClient(client, defaults);
|
|
1531
|
+
return seam.list(...args);
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Updates a [noise threshold](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors).
|
|
1536
|
+
*/
|
|
1537
|
+
get '/noise_sensors/noise_thresholds/update'() {
|
|
1538
|
+
const { client, defaults } = this;
|
|
1539
|
+
return function noiseSensorsNoiseThresholdsUpdate(...args) {
|
|
1540
|
+
const seam = SeamHttpNoiseSensorsNoiseThresholds.fromClient(client, defaults);
|
|
1541
|
+
return seam.update(...args);
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Simulates the triggering of a [noise threshold](https://docs.seam.co/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/capability-guides/noise-sensors) in a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
1546
|
+
*/
|
|
1547
|
+
get '/noise_sensors/simulate/trigger_noise_threshold'() {
|
|
1548
|
+
const { client, defaults } = this;
|
|
1549
|
+
return function noiseSensorsSimulateTriggerNoiseThreshold(...args) {
|
|
1550
|
+
const seam = SeamHttpNoiseSensorsSimulate.fromClient(client, defaults);
|
|
1551
|
+
return seam.triggerNoiseThreshold(...args);
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Deactivates a phone, which is useful, for example, if a user has lost their phone. For more information, see [App User Lost Phone Process](https://docs.seam.co/capability-guides/mobile-access/managing-phones-for-a-user-identity#app-user-lost-phone-process).
|
|
1556
|
+
*/
|
|
1557
|
+
get '/phones/deactivate'() {
|
|
1558
|
+
const { client, defaults } = this;
|
|
1559
|
+
return function phonesDeactivate(...args) {
|
|
1560
|
+
const seam = SeamHttpPhones.fromClient(client, defaults);
|
|
1561
|
+
return seam.deactivate(...args);
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Returns a specified [phone](https://docs.seam.co/capability-guides/mobile-access/managing-phones-for-a-user-identity).
|
|
1566
|
+
*/
|
|
1567
|
+
get '/phones/get'() {
|
|
1568
|
+
const { client, defaults } = this;
|
|
1569
|
+
return function phonesGet(...args) {
|
|
1570
|
+
const seam = SeamHttpPhones.fromClient(client, defaults);
|
|
1571
|
+
return seam.get(...args);
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Returns a list of all [phones](https://docs.seam.co/capability-guides/mobile-access/managing-phones-for-a-user-identity). To filter the list of returned phones by a specific owner user identity or credential, include the `owner_user_identity_id` or `acs_credential_id`, respectively, in the request body.
|
|
1576
|
+
*/
|
|
1577
|
+
get '/phones/list'() {
|
|
1578
|
+
const { client, defaults } = this;
|
|
1579
|
+
return function phonesList(...args) {
|
|
1580
|
+
const seam = SeamHttpPhones.fromClient(client, defaults);
|
|
1581
|
+
return seam.list(...args);
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Creates a new simulated phone in a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Creating a Simulated Phone for a User Identity](https://docs.seam.co/capability-guides/mobile-access/developing-in-a-sandbox-workspace#creating-a-simulated-phone-for-a-user-identity).
|
|
1586
|
+
*/
|
|
1587
|
+
get '/phones/simulate/create_sandbox_phone'() {
|
|
1588
|
+
const { client, defaults } = this;
|
|
1589
|
+
return function phonesSimulateCreateSandboxPhone(...args) {
|
|
1590
|
+
const seam = SeamHttpPhonesSimulate.fromClient(client, defaults);
|
|
1591
|
+
return seam.createSandboxPhone(...args);
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Adds [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) to a specific space.
|
|
1596
|
+
*/
|
|
1597
|
+
get '/spaces/add_acs_entrances'() {
|
|
1598
|
+
const { client, defaults } = this;
|
|
1599
|
+
return function spacesAddAcsEntrances(...args) {
|
|
1600
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1601
|
+
return seam.addAcsEntrances(...args);
|
|
1602
|
+
};
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Adds a [connected account](https://docs.seam.co/core-concepts/connected-accounts) to a specific space.
|
|
1606
|
+
*/
|
|
1607
|
+
get '/spaces/add_connected_account'() {
|
|
1608
|
+
const { client, defaults } = this;
|
|
1609
|
+
return function spacesAddConnectedAccount(...args) {
|
|
1610
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1611
|
+
return seam.addConnectedAccount(...args);
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Adds devices to a specific space.
|
|
1616
|
+
*/
|
|
1617
|
+
get '/spaces/add_devices'() {
|
|
1618
|
+
const { client, defaults } = this;
|
|
1619
|
+
return function spacesAddDevices(...args) {
|
|
1620
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1621
|
+
return seam.addDevices(...args);
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Creates a new space.
|
|
1626
|
+
*/
|
|
1627
|
+
get '/spaces/create'() {
|
|
1628
|
+
const { client, defaults } = this;
|
|
1629
|
+
return function spacesCreate(...args) {
|
|
1630
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1631
|
+
return seam.create(...args);
|
|
1632
|
+
};
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Deletes a space.
|
|
1636
|
+
*/
|
|
1637
|
+
get '/spaces/delete'() {
|
|
1638
|
+
const { client, defaults } = this;
|
|
1639
|
+
return function spacesDelete(...args) {
|
|
1640
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1641
|
+
return seam.delete(...args);
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* Gets a space.
|
|
1646
|
+
*/
|
|
1647
|
+
get '/spaces/get'() {
|
|
1648
|
+
const { client, defaults } = this;
|
|
1649
|
+
return function spacesGet(...args) {
|
|
1650
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1651
|
+
return seam.get(...args);
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* Gets all related resources for one or more Spaces.
|
|
1656
|
+
*/
|
|
1657
|
+
get '/spaces/get_related'() {
|
|
1658
|
+
const { client, defaults } = this;
|
|
1659
|
+
return function spacesGetRelated(...args) {
|
|
1660
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1661
|
+
return seam.getRelated(...args);
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* Returns a list of all spaces.
|
|
1666
|
+
*/
|
|
1667
|
+
get '/spaces/list'() {
|
|
1668
|
+
const { client, defaults } = this;
|
|
1669
|
+
return function spacesList(...args) {
|
|
1670
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1671
|
+
return seam.list(...args);
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Removes [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) from a specific space.
|
|
1676
|
+
*/
|
|
1677
|
+
get '/spaces/remove_acs_entrances'() {
|
|
1678
|
+
const { client, defaults } = this;
|
|
1679
|
+
return function spacesRemoveAcsEntrances(...args) {
|
|
1680
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1681
|
+
return seam.removeAcsEntrances(...args);
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Removes a [connected account](https://docs.seam.co/core-concepts/connected-accounts) from a specific space.
|
|
1686
|
+
*/
|
|
1687
|
+
get '/spaces/remove_connected_account'() {
|
|
1688
|
+
const { client, defaults } = this;
|
|
1689
|
+
return function spacesRemoveConnectedAccount(...args) {
|
|
1690
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1691
|
+
return seam.removeConnectedAccount(...args);
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* Removes devices from a specific space.
|
|
1696
|
+
*/
|
|
1697
|
+
get '/spaces/remove_devices'() {
|
|
1698
|
+
const { client, defaults } = this;
|
|
1699
|
+
return function spacesRemoveDevices(...args) {
|
|
1700
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1701
|
+
return seam.removeDevices(...args);
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Updates an existing space.
|
|
1706
|
+
*/
|
|
1707
|
+
get '/spaces/update'() {
|
|
1708
|
+
const { client, defaults } = this;
|
|
1709
|
+
return function spacesUpdate(...args) {
|
|
1710
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
1711
|
+
return seam.update(...args);
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* 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).
|
|
1716
|
+
*/
|
|
1717
|
+
get '/thermostats/activate_climate_preset'() {
|
|
1718
|
+
const { client, defaults } = this;
|
|
1719
|
+
return function thermostatsActivateClimatePreset(...args) {
|
|
1720
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1721
|
+
return seam.activateClimatePreset(...args);
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* 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).
|
|
1726
|
+
*/
|
|
1727
|
+
get '/thermostats/cool'() {
|
|
1728
|
+
const { client, defaults } = this;
|
|
1729
|
+
return function thermostatsCool(...args) {
|
|
1730
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1731
|
+
return seam.cool(...args);
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* 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).
|
|
1736
|
+
*/
|
|
1737
|
+
get '/thermostats/create_climate_preset'() {
|
|
1738
|
+
const { client, defaults } = this;
|
|
1739
|
+
return function thermostatsCreateClimatePreset(...args) {
|
|
1740
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1741
|
+
return seam.createClimatePreset(...args);
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
/**
|
|
1745
|
+
* 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).
|
|
1746
|
+
*/
|
|
1747
|
+
get '/thermostats/delete_climate_preset'() {
|
|
1748
|
+
const { client, defaults } = this;
|
|
1749
|
+
return function thermostatsDeleteClimatePreset(...args) {
|
|
1750
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1751
|
+
return seam.deleteClimatePreset(...args);
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* 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).
|
|
1756
|
+
*/
|
|
1757
|
+
get '/thermostats/heat'() {
|
|
1758
|
+
const { client, defaults } = this;
|
|
1759
|
+
return function thermostatsHeat(...args) {
|
|
1760
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1761
|
+
return seam.heat(...args);
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* 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).
|
|
1766
|
+
*/
|
|
1767
|
+
get '/thermostats/heat_cool'() {
|
|
1768
|
+
const { client, defaults } = this;
|
|
1769
|
+
return function thermostatsHeatCool(...args) {
|
|
1770
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1771
|
+
return seam.heatCool(...args);
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Returns a list of all [thermostats](https://docs.seam.co/capability-guides/thermostats).
|
|
1776
|
+
*/
|
|
1777
|
+
get '/thermostats/list'() {
|
|
1778
|
+
const { client, defaults } = this;
|
|
1779
|
+
return function thermostatsList(...args) {
|
|
1780
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1781
|
+
return seam.list(...args);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* 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).
|
|
1786
|
+
*/
|
|
1787
|
+
get '/thermostats/off'() {
|
|
1788
|
+
const { client, defaults } = this;
|
|
1789
|
+
return function thermostatsOff(...args) {
|
|
1790
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1791
|
+
return seam.off(...args);
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* 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).
|
|
1796
|
+
*/
|
|
1797
|
+
get '/thermostats/set_fallback_climate_preset'() {
|
|
1798
|
+
const { client, defaults } = this;
|
|
1799
|
+
return function thermostatsSetFallbackClimatePreset(...args) {
|
|
1800
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1801
|
+
return seam.setFallbackClimatePreset(...args);
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* 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).
|
|
1806
|
+
*/
|
|
1807
|
+
get '/thermostats/set_fan_mode'() {
|
|
1808
|
+
const { client, defaults } = this;
|
|
1809
|
+
return function thermostatsSetFanMode(...args) {
|
|
1810
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1811
|
+
return seam.setFanMode(...args);
|
|
1812
|
+
};
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* 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).
|
|
1816
|
+
*/
|
|
1817
|
+
get '/thermostats/set_hvac_mode'() {
|
|
1818
|
+
const { client, defaults } = this;
|
|
1819
|
+
return function thermostatsSetHvacMode(...args) {
|
|
1820
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1821
|
+
return seam.setHvacMode(...args);
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* 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.
|
|
1826
|
+
*/
|
|
1827
|
+
get '/thermostats/set_temperature_threshold'() {
|
|
1828
|
+
const { client, defaults } = this;
|
|
1829
|
+
return function thermostatsSetTemperatureThreshold(...args) {
|
|
1830
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1831
|
+
return seam.setTemperatureThreshold(...args);
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* 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).
|
|
1836
|
+
*/
|
|
1837
|
+
get '/thermostats/update_climate_preset'() {
|
|
1838
|
+
const { client, defaults } = this;
|
|
1839
|
+
return function thermostatsUpdateClimatePreset(...args) {
|
|
1840
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1841
|
+
return seam.updateClimatePreset(...args);
|
|
1842
|
+
};
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* 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.
|
|
1846
|
+
*/
|
|
1847
|
+
get '/thermostats/update_weekly_program'() {
|
|
1848
|
+
const { client, defaults } = this;
|
|
1849
|
+
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
1850
|
+
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
1851
|
+
return seam.updateWeeklyProgram(...args);
|
|
1852
|
+
};
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Creates a new thermostat daily program. A daily program consists of a set of periods, where each period includes a start time and the key of a configured climate preset. Once you have defined a daily program, you can assign it to one or more days within a weekly program.
|
|
1856
|
+
*/
|
|
1857
|
+
get '/thermostats/daily_programs/create'() {
|
|
1858
|
+
const { client, defaults } = this;
|
|
1859
|
+
return function thermostatsDailyProgramsCreate(...args) {
|
|
1860
|
+
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
1861
|
+
return seam.create(...args);
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
/**
|
|
1865
|
+
* Deletes a thermostat daily program.
|
|
1866
|
+
*/
|
|
1867
|
+
get '/thermostats/daily_programs/delete'() {
|
|
1868
|
+
const { client, defaults } = this;
|
|
1869
|
+
return function thermostatsDailyProgramsDelete(...args) {
|
|
1870
|
+
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
1871
|
+
return seam.delete(...args);
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Updates a specified thermostat daily program. The periods that you specify overwrite any existing periods for the daily program.
|
|
1876
|
+
*/
|
|
1877
|
+
get '/thermostats/daily_programs/update'() {
|
|
1878
|
+
const { client, defaults } = this;
|
|
1879
|
+
return function thermostatsDailyProgramsUpdate(...args) {
|
|
1880
|
+
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
1881
|
+
return seam.update(...args);
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Creates a new [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
1886
|
+
*/
|
|
1887
|
+
get '/thermostats/schedules/create'() {
|
|
1888
|
+
const { client, defaults } = this;
|
|
1889
|
+
return function thermostatsSchedulesCreate(...args) {
|
|
1890
|
+
const seam = SeamHttpThermostatsSchedules.fromClient(client, defaults);
|
|
1891
|
+
return seam.create(...args);
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* Deletes a [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
1896
|
+
*/
|
|
1897
|
+
get '/thermostats/schedules/delete'() {
|
|
1898
|
+
const { client, defaults } = this;
|
|
1899
|
+
return function thermostatsSchedulesDelete(...args) {
|
|
1900
|
+
const seam = SeamHttpThermostatsSchedules.fromClient(client, defaults);
|
|
1901
|
+
return seam.delete(...args);
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* Returns a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
|
|
1906
|
+
*/
|
|
1907
|
+
get '/thermostats/schedules/get'() {
|
|
1908
|
+
const { client, defaults } = this;
|
|
1909
|
+
return function thermostatsSchedulesGet(...args) {
|
|
1910
|
+
const seam = SeamHttpThermostatsSchedules.fromClient(client, defaults);
|
|
1911
|
+
return seam.get(...args);
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* Returns a list of all [thermostat schedules](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://docs.seam.co/capability-guides/thermostats).
|
|
1916
|
+
*/
|
|
1917
|
+
get '/thermostats/schedules/list'() {
|
|
1918
|
+
const { client, defaults } = this;
|
|
1919
|
+
return function thermostatsSchedulesList(...args) {
|
|
1920
|
+
const seam = SeamHttpThermostatsSchedules.fromClient(client, defaults);
|
|
1921
|
+
return seam.list(...args);
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* Updates a specified [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
|
|
1926
|
+
*/
|
|
1927
|
+
get '/thermostats/schedules/update'() {
|
|
1928
|
+
const { client, defaults } = this;
|
|
1929
|
+
return function thermostatsSchedulesUpdate(...args) {
|
|
1930
|
+
const seam = SeamHttpThermostatsSchedules.fromClient(client, defaults);
|
|
1931
|
+
return seam.update(...args);
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* Simulates having adjusted the [HVAC mode](https://docs.seam.co/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) for a [thermostat](https://docs.seam.co/capability-guides/thermostats). Only applicable for [sandbox devices](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your Thermostat App with Simulate Endpoints](https://docs.seam.co/capability-guides/thermostats/testing-your-thermostat-app-with-simulate-endpoints).
|
|
1936
|
+
*/
|
|
1937
|
+
get '/thermostats/simulate/hvac_mode_adjusted'() {
|
|
1938
|
+
const { client, defaults } = this;
|
|
1939
|
+
return function thermostatsSimulateHvacModeAdjusted(...args) {
|
|
1940
|
+
const seam = SeamHttpThermostatsSimulate.fromClient(client, defaults);
|
|
1941
|
+
return seam.hvacModeAdjusted(...args);
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
/**
|
|
1945
|
+
* Simulates a [thermostat](https://docs.seam.co/capability-guides/thermostats) reaching a specified temperature. Only applicable for [sandbox devices](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your Thermostat App with Simulate Endpoints](https://docs.seam.co/capability-guides/thermostats/testing-your-thermostat-app-with-simulate-endpoints).
|
|
1946
|
+
*/
|
|
1947
|
+
get '/thermostats/simulate/temperature_reached'() {
|
|
1948
|
+
const { client, defaults } = this;
|
|
1949
|
+
return function thermostatsSimulateTemperatureReached(...args) {
|
|
1950
|
+
const seam = SeamHttpThermostatsSimulate.fromClient(client, defaults);
|
|
1951
|
+
return seam.temperatureReached(...args);
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
/**
|
|
1955
|
+
* Adds a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) to a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
1956
|
+
*
|
|
1957
|
+
* You must specify either `user_identity_id` or `user_identity_key` to identify the user identity.
|
|
1958
|
+
*
|
|
1959
|
+
* If `user_identity_key` is provided, but the user identity doesn't exist, a new user identity will be created automatically using information from the ACS user.
|
|
1960
|
+
*/
|
|
1961
|
+
get '/user_identities/add_acs_user'() {
|
|
1962
|
+
const { client, defaults } = this;
|
|
1963
|
+
return function userIdentitiesAddAcsUser(...args) {
|
|
1964
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
1965
|
+
return seam.addAcsUser(...args);
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Creates a new [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
1970
|
+
*/
|
|
1971
|
+
get '/user_identities/create'() {
|
|
1972
|
+
const { client, defaults } = this;
|
|
1973
|
+
return function userIdentitiesCreate(...args) {
|
|
1974
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
1975
|
+
return seam.create(...args);
|
|
1976
|
+
};
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* Deletes a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This deletes the user identity and all associated resources, including any [credentials](https://docs.seam.co/api/acs/credentials), [acs users](https://docs.seam.co/api/acs/users) and [client sessions](https://docs.seam.co/api/client_sessions).
|
|
1980
|
+
*/
|
|
1981
|
+
get '/user_identities/delete'() {
|
|
1982
|
+
const { client, defaults } = this;
|
|
1983
|
+
return function userIdentitiesDelete(...args) {
|
|
1984
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
1985
|
+
return seam.delete(...args);
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* Generates a new [instant key](https://docs.seam.co/capability-guides/instant-keys) for a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
1990
|
+
*/
|
|
1991
|
+
get '/user_identities/generate_instant_key'() {
|
|
1992
|
+
const { client, defaults } = this;
|
|
1993
|
+
return function userIdentitiesGenerateInstantKey(...args) {
|
|
1994
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
1995
|
+
return seam.generateInstantKey(...args);
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Returns a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2000
|
+
*/
|
|
2001
|
+
get '/user_identities/get'() {
|
|
2002
|
+
const { client, defaults } = this;
|
|
2003
|
+
return function userIdentitiesGet(...args) {
|
|
2004
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2005
|
+
return seam.get(...args);
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Grants a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) access to a specified [device](https://docs.seam.co/core-concepts/devices/).
|
|
2010
|
+
*/
|
|
2011
|
+
get '/user_identities/grant_access_to_device'() {
|
|
2012
|
+
const { client, defaults } = this;
|
|
2013
|
+
return function userIdentitiesGrantAccessToDevice(...args) {
|
|
2014
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2015
|
+
return seam.grantAccessToDevice(...args);
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Returns a list of all [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2020
|
+
*/
|
|
2021
|
+
get '/user_identities/list'() {
|
|
2022
|
+
const { client, defaults } = this;
|
|
2023
|
+
return function userIdentitiesList(...args) {
|
|
2024
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2025
|
+
return seam.list(...args);
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Returns a list of all [devices](https://docs.seam.co/core-concepts/devices) associated with a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes devices derived from the access grants assigned to the user identity and devices directly linked to the user identity.
|
|
2030
|
+
*/
|
|
2031
|
+
get '/user_identities/list_accessible_devices'() {
|
|
2032
|
+
const { client, defaults } = this;
|
|
2033
|
+
return function userIdentitiesListAccessibleDevices(...args) {
|
|
2034
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2035
|
+
return seam.listAccessibleDevices(...args);
|
|
2036
|
+
};
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
* Returns a list of all [ACS entrances](https://docs.seam.co/api/acs/entrances) accessible to a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes entrances derived from the access grants assigned to the user identity and entrances accessible through ACS users linked to the user identity.
|
|
2040
|
+
*/
|
|
2041
|
+
get '/user_identities/list_accessible_entrances'() {
|
|
2042
|
+
const { client, defaults } = this;
|
|
2043
|
+
return function userIdentitiesListAccessibleEntrances(...args) {
|
|
2044
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2045
|
+
return seam.listAccessibleEntrances(...args);
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Returns a list of all [access systems](https://docs.seam.co/low-level-apis/access-systems) associated with a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2050
|
+
*/
|
|
2051
|
+
get '/user_identities/list_acs_systems'() {
|
|
2052
|
+
const { client, defaults } = this;
|
|
2053
|
+
return function userIdentitiesListAcsSystems(...args) {
|
|
2054
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2055
|
+
return seam.listAcsSystems(...args);
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Returns a list of all [access system users](https://docs.seam.co/low-level-apis/access-systems/user-management) assigned to a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2060
|
+
*/
|
|
2061
|
+
get '/user_identities/list_acs_users'() {
|
|
2062
|
+
const { client, defaults } = this;
|
|
2063
|
+
return function userIdentitiesListAcsUsers(...args) {
|
|
2064
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2065
|
+
return seam.listAcsUsers(...args);
|
|
2066
|
+
};
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2070
|
+
*/
|
|
2071
|
+
get '/user_identities/remove_acs_user'() {
|
|
2072
|
+
const { client, defaults } = this;
|
|
2073
|
+
return function userIdentitiesRemoveAcsUser(...args) {
|
|
2074
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2075
|
+
return seam.removeAcsUser(...args);
|
|
2076
|
+
};
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Revokes access to a specified [device](https://docs.seam.co/core-concepts/devices/) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2080
|
+
*/
|
|
2081
|
+
get '/user_identities/revoke_access_to_device'() {
|
|
2082
|
+
const { client, defaults } = this;
|
|
2083
|
+
return function userIdentitiesRevokeAccessToDevice(...args) {
|
|
2084
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2085
|
+
return seam.revokeAccessToDevice(...args);
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
/**
|
|
2089
|
+
* Updates a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).
|
|
2090
|
+
*/
|
|
2091
|
+
get '/user_identities/update'() {
|
|
2092
|
+
const { client, defaults } = this;
|
|
2093
|
+
return function userIdentitiesUpdate(...args) {
|
|
2094
|
+
const seam = SeamHttpUserIdentities.fromClient(client, defaults);
|
|
2095
|
+
return seam.update(...args);
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* Returns a specified unmanaged [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) (where is_managed = false).
|
|
2100
|
+
*/
|
|
2101
|
+
get '/user_identities/unmanaged/get'() {
|
|
2102
|
+
const { client, defaults } = this;
|
|
2103
|
+
return function userIdentitiesUnmanagedGet(...args) {
|
|
2104
|
+
const seam = SeamHttpUserIdentitiesUnmanaged.fromClient(client, defaults);
|
|
2105
|
+
return seam.get(...args);
|
|
2106
|
+
};
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Returns a list of all unmanaged [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) (where is_managed = false).
|
|
2110
|
+
*/
|
|
2111
|
+
get '/user_identities/unmanaged/list'() {
|
|
2112
|
+
const { client, defaults } = this;
|
|
2113
|
+
return function userIdentitiesUnmanagedList(...args) {
|
|
2114
|
+
const seam = SeamHttpUserIdentitiesUnmanaged.fromClient(client, defaults);
|
|
2115
|
+
return seam.list(...args);
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Updates an unmanaged [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.
|
|
2120
|
+
*
|
|
2121
|
+
* This endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.
|
|
2122
|
+
*/
|
|
2123
|
+
get '/user_identities/unmanaged/update'() {
|
|
2124
|
+
const { client, defaults } = this;
|
|
2125
|
+
return function userIdentitiesUnmanagedUpdate(...args) {
|
|
2126
|
+
const seam = SeamHttpUserIdentitiesUnmanaged.fromClient(client, defaults);
|
|
2127
|
+
return seam.update(...args);
|
|
2128
|
+
};
|
|
2129
|
+
}
|
|
2130
|
+
/**
|
|
2131
|
+
* Creates a new [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
2132
|
+
*/
|
|
2133
|
+
get '/webhooks/create'() {
|
|
2134
|
+
const { client, defaults } = this;
|
|
2135
|
+
return function webhooksCreate(...args) {
|
|
2136
|
+
const seam = SeamHttpWebhooks.fromClient(client, defaults);
|
|
2137
|
+
return seam.create(...args);
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Deletes a specified [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
2142
|
+
*/
|
|
2143
|
+
get '/webhooks/delete'() {
|
|
2144
|
+
const { client, defaults } = this;
|
|
2145
|
+
return function webhooksDelete(...args) {
|
|
2146
|
+
const seam = SeamHttpWebhooks.fromClient(client, defaults);
|
|
2147
|
+
return seam.delete(...args);
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
/**
|
|
2151
|
+
* Gets a specified [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
2152
|
+
*/
|
|
2153
|
+
get '/webhooks/get'() {
|
|
2154
|
+
const { client, defaults } = this;
|
|
2155
|
+
return function webhooksGet(...args) {
|
|
2156
|
+
const seam = SeamHttpWebhooks.fromClient(client, defaults);
|
|
2157
|
+
return seam.get(...args);
|
|
2158
|
+
};
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* Returns a list of all [webhooks](https://docs.seam.co/developer-tools/webhooks).
|
|
2162
|
+
*/
|
|
2163
|
+
get '/webhooks/list'() {
|
|
2164
|
+
const { client, defaults } = this;
|
|
2165
|
+
return function webhooksList(...args) {
|
|
2166
|
+
const seam = SeamHttpWebhooks.fromClient(client, defaults);
|
|
2167
|
+
return seam.list(...args);
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Updates a specified [webhook](https://docs.seam.co/developer-tools/webhooks).
|
|
2172
|
+
*/
|
|
2173
|
+
get '/webhooks/update'() {
|
|
2174
|
+
const { client, defaults } = this;
|
|
2175
|
+
return function webhooksUpdate(...args) {
|
|
2176
|
+
const seam = SeamHttpWebhooks.fromClient(client, defaults);
|
|
2177
|
+
return seam.update(...args);
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Creates a new [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
2182
|
+
*/
|
|
2183
|
+
get '/workspaces/create'() {
|
|
2184
|
+
const { client, defaults } = this;
|
|
2185
|
+
return function workspacesCreate(...args) {
|
|
2186
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
2187
|
+
return seam.create(...args);
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2191
|
+
* Returns the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the authentication value.
|
|
2192
|
+
*/
|
|
2193
|
+
get '/workspaces/get'() {
|
|
2194
|
+
const { client, defaults } = this;
|
|
2195
|
+
return function workspacesGet(...args) {
|
|
2196
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
2197
|
+
return seam.get(...args);
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* Returns a list of [workspaces](https://docs.seam.co/core-concepts/workspaces) associated with the authentication value.
|
|
2202
|
+
*/
|
|
2203
|
+
get '/workspaces/list'() {
|
|
2204
|
+
const { client, defaults } = this;
|
|
2205
|
+
return function workspacesList(...args) {
|
|
2206
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
2207
|
+
return seam.list(...args);
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
/**
|
|
2211
|
+
* Resets the [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces) associated with the authentication value. Note that this endpoint is only available for sandbox workspaces.
|
|
2212
|
+
*/
|
|
2213
|
+
get '/workspaces/reset_sandbox'() {
|
|
2214
|
+
const { client, defaults } = this;
|
|
2215
|
+
return function workspacesResetSandbox(...args) {
|
|
2216
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
2217
|
+
return seam.resetSandbox(...args);
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
/**
|
|
2221
|
+
* Updates the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the authentication value.
|
|
2222
|
+
*/
|
|
2223
|
+
get '/workspaces/update'() {
|
|
2224
|
+
const { client, defaults } = this;
|
|
2225
|
+
return function workspacesUpdate(...args) {
|
|
2226
|
+
const seam = SeamHttpWorkspaces.fromClient(client, defaults);
|
|
2227
|
+
return seam.update(...args);
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
//# sourceMappingURL=seam-http-endpoints.js.map
|