@seamapi/http 1.34.0 → 1.35.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/dist/connect.cjs +582 -557
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +220 -162
- package/lib/seam/connect/index.d.ts +0 -1
- package/lib/seam/connect/index.js +0 -1
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/routes/{access-codes.d.ts → access-codes/access-codes.d.ts} +13 -11
- package/lib/seam/connect/routes/{access-codes.js → access-codes/access-codes.js} +33 -30
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -0
- package/lib/seam/connect/routes/access-codes/index.d.ts +3 -0
- package/lib/seam/connect/routes/access-codes/index.js +8 -0
- package/lib/seam/connect/routes/access-codes/index.js.map +1 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.js +6 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{access-codes-simulate.d.ts → access-codes/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{access-codes-simulate.js → access-codes/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/{unstable-partner.js.map → access-codes/simulate/simulate.js.map} +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/index.js +6 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +1 -0
- package/lib/seam/connect/routes/{access-codes-unmanaged.d.ts → access-codes/unmanaged/unmanaged.d.ts} +10 -8
- package/lib/seam/connect/routes/{access-codes-unmanaged.js → access-codes/unmanaged/unmanaged.js} +24 -21
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
- package/lib/seam/connect/routes/{access-grants.d.ts → access-grants/access-grants.d.ts} +10 -8
- package/lib/seam/connect/routes/{access-grants.js → access-grants/access-grants.js} +22 -19
- package/lib/seam/connect/routes/{noise-sensors.js.map → access-grants/access-grants.js.map} +1 -1
- package/lib/seam/connect/routes/access-grants/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-grants/index.js +6 -0
- package/lib/seam/connect/routes/access-grants/index.js.map +1 -0
- package/lib/seam/connect/routes/{access-methods.d.ts → access-methods/access-methods.d.ts} +10 -8
- package/lib/seam/connect/routes/{access-methods.js → access-methods/access-methods.js} +21 -18
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/access-methods/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-methods/index.js +6 -0
- package/lib/seam/connect/routes/access-methods/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-access-groups.d.ts → acs/access-groups/access-groups.d.ts} +12 -10
- package/lib/seam/connect/routes/{acs-access-groups.js → acs/access-groups/access-groups.js} +29 -26
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -0
- package/lib/seam/connect/routes/acs/access-groups/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/access-groups/index.js +6 -0
- package/lib/seam/connect/routes/acs/access-groups/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs.d.ts → acs/acs.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs.js → acs/acs.js} +20 -17
- package/lib/seam/connect/routes/acs/acs.js.map +1 -0
- package/lib/seam/connect/routes/{acs-credentials.d.ts → acs/credentials/credentials.d.ts} +11 -9
- package/lib/seam/connect/routes/{acs-credentials.js → acs/credentials/credentials.js} +29 -26
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -0
- package/lib/seam/connect/routes/acs/credentials/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/credentials/index.js +6 -0
- package/lib/seam/connect/routes/acs/credentials/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-encoders.d.ts → acs/encoders/encoders.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs-encoders.js → acs/encoders/encoders.js} +23 -20
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -0
- package/lib/seam/connect/routes/acs/encoders/index.d.ts +2 -0
- package/lib/seam/connect/routes/acs/encoders/index.js +7 -0
- package/lib/seam/connect/routes/acs/encoders/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.js +6 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-encoders-simulate.d.ts → acs/encoders/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{acs-encoders-simulate.js → acs/encoders/simulate/simulate.js} +17 -14
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/{acs-entrances.d.ts → acs/entrances/entrances.d.ts} +10 -8
- package/lib/seam/connect/routes/{acs-entrances.js → acs/entrances/entrances.js} +23 -20
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -0
- package/lib/seam/connect/routes/acs/entrances/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/entrances/index.js +6 -0
- package/lib/seam/connect/routes/acs/entrances/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/index.d.ts +7 -0
- package/lib/seam/connect/routes/acs/index.js +12 -0
- package/lib/seam/connect/routes/acs/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/systems/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/systems/index.js +6 -0
- package/lib/seam/connect/routes/acs/systems/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-systems.d.ts → acs/systems/systems.d.ts} +10 -8
- package/lib/seam/connect/routes/{acs-systems.js → acs/systems/systems.js} +22 -19
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -0
- package/lib/seam/connect/routes/acs/users/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/users/index.js +6 -0
- package/lib/seam/connect/routes/acs/users/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-users.d.ts → acs/users/users.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs-users.js → acs/users/users.js} +36 -33
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -0
- package/lib/seam/connect/routes/{action-attempts.d.ts → action-attempts/action-attempts.d.ts} +9 -7
- package/lib/seam/connect/routes/{action-attempts.js → action-attempts/action-attempts.js} +18 -15
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -0
- package/lib/seam/connect/routes/action-attempts/index.d.ts +1 -0
- package/lib/seam/connect/routes/action-attempts/index.js +6 -0
- package/lib/seam/connect/routes/action-attempts/index.js.map +1 -0
- package/lib/seam/connect/routes/{client-sessions.d.ts → client-sessions/client-sessions.d.ts} +11 -9
- package/lib/seam/connect/routes/{client-sessions.js → client-sessions/client-sessions.js} +26 -23
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -0
- package/lib/seam/connect/routes/client-sessions/index.d.ts +1 -0
- package/lib/seam/connect/routes/client-sessions/index.js +6 -0
- package/lib/seam/connect/routes/client-sessions/index.js.map +1 -0
- package/lib/seam/connect/routes/{connect-webviews.d.ts → connect-webviews/connect-webviews.d.ts} +10 -8
- package/lib/seam/connect/routes/{connect-webviews.js → connect-webviews/connect-webviews.js} +22 -19
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -0
- package/lib/seam/connect/routes/connect-webviews/index.d.ts +1 -0
- package/lib/seam/connect/routes/connect-webviews/index.js +6 -0
- package/lib/seam/connect/routes/connect-webviews/index.js.map +1 -0
- package/lib/seam/connect/routes/{connected-accounts.d.ts → connected-accounts/connected-accounts.d.ts} +10 -8
- package/lib/seam/connect/routes/{connected-accounts.js → connected-accounts/connected-accounts.js} +23 -20
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -0
- package/lib/seam/connect/routes/connected-accounts/index.d.ts +1 -0
- package/lib/seam/connect/routes/connected-accounts/index.js +6 -0
- package/lib/seam/connect/routes/connected-accounts/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices.d.ts → devices/devices.d.ts} +13 -11
- package/lib/seam/connect/routes/{devices.js → devices/devices.js} +27 -24
- package/lib/seam/connect/routes/devices/devices.js.map +1 -0
- package/lib/seam/connect/routes/devices/index.d.ts +3 -0
- package/lib/seam/connect/routes/devices/index.js +8 -0
- package/lib/seam/connect/routes/devices/index.js.map +1 -0
- package/lib/seam/connect/routes/devices/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/devices/simulate/index.js +6 -0
- package/lib/seam/connect/routes/devices/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices-simulate.d.ts → devices/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{devices-simulate.js → devices/simulate/simulate.js} +16 -13
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.d.ts +1 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.js +6 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices-unmanaged.d.ts → devices/unmanaged/unmanaged.d.ts} +9 -7
- package/lib/seam/connect/routes/{devices-unmanaged.js → devices/unmanaged/unmanaged.js} +20 -17
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -0
- package/lib/seam/connect/routes/{events.d.ts → events/events.d.ts} +9 -7
- package/lib/seam/connect/routes/{events.js → events/events.js} +18 -15
- package/lib/seam/connect/routes/events/events.js.map +1 -0
- package/lib/seam/connect/routes/events/index.d.ts +1 -0
- package/lib/seam/connect/routes/events/index.js +6 -0
- package/lib/seam/connect/routes/events/index.js.map +1 -0
- package/lib/seam/connect/routes/index.d.ts +19 -37
- package/lib/seam/connect/routes/index.js +23 -37
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/locks/index.d.ts +1 -0
- package/lib/seam/connect/routes/locks/index.js +6 -0
- package/lib/seam/connect/routes/locks/index.js.map +1 -0
- package/lib/seam/connect/routes/{locks.d.ts → locks/locks.d.ts} +11 -9
- package/lib/seam/connect/routes/{locks.js → locks/locks.js} +20 -17
- package/lib/seam/connect/routes/locks/locks.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/index.d.ts +3 -0
- package/lib/seam/connect/routes/noise-sensors/index.js +8 -0
- package/lib/seam/connect/routes/noise-sensors/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors.d.ts → noise-sensors/noise-sensors.d.ts} +10 -8
- package/lib/seam/connect/routes/{noise-sensors.js → noise-sensors/noise-sensors.js} +17 -14
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.d.ts +1 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js +6 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.d.ts → noise-sensors/noise-thresholds/noise-thresholds.d.ts} +10 -8
- package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.js → noise-sensors/noise-thresholds/noise-thresholds.js} +24 -21
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.js +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors-simulate.d.ts → noise-sensors/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{noise-sensors-simulate.js → noise-sensors/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/phones/index.d.ts +2 -0
- package/lib/seam/connect/routes/phones/index.js +7 -0
- package/lib/seam/connect/routes/phones/index.js.map +1 -0
- package/lib/seam/connect/routes/{phones.d.ts → phones/phones.d.ts} +11 -9
- package/lib/seam/connect/routes/{phones.js → phones/phones.js} +22 -19
- package/lib/seam/connect/routes/{events.js.map → phones/phones.js.map} +1 -1
- package/lib/seam/connect/routes/phones/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/phones/simulate/index.js +6 -0
- package/lib/seam/connect/routes/phones/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{phones-simulate.d.ts → phones/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{phones-simulate.js → phones/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/{seam-http.d.ts → routes/seam-http.d.ts} +24 -7
- package/lib/seam/connect/{seam-http.js → routes/seam-http.js} +31 -10
- package/lib/seam/connect/routes/seam-http.js.map +1 -0
- package/lib/seam/connect/routes/spaces/index.d.ts +1 -0
- package/lib/seam/connect/routes/spaces/index.js +6 -0
- package/lib/seam/connect/routes/spaces/index.js.map +1 -0
- package/lib/seam/connect/routes/{spaces.d.ts → spaces/spaces.d.ts} +14 -12
- package/lib/seam/connect/routes/{spaces.js → spaces/spaces.js} +31 -28
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-daily-programs.d.ts → thermostats/daily-programs/daily-programs.d.ts} +9 -7
- package/lib/seam/connect/routes/{thermostats-daily-programs.js → thermostats/daily-programs/daily-programs.js} +18 -15
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/index.d.ts +4 -0
- package/lib/seam/connect/routes/thermostats/index.js +9 -0
- package/lib/seam/connect/routes/thermostats/index.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-schedules.d.ts → thermostats/schedules/schedules.d.ts} +10 -8
- package/lib/seam/connect/routes/{thermostats-schedules.js → thermostats/schedules/schedules.js} +24 -21
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-simulate.d.ts → thermostats/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{thermostats-simulate.js → thermostats/simulate/simulate.js} +15 -12
- package/lib/seam/connect/routes/{thermostats-daily-programs.js.map → thermostats/simulate/simulate.js.map} +1 -1
- package/lib/seam/connect/routes/{thermostats.d.ts → thermostats/thermostats.d.ts} +20 -18
- package/lib/seam/connect/routes/{thermostats.js → thermostats/thermostats.js} +34 -31
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -0
- package/lib/seam/connect/routes/{user-identities-enrollment-automations.d.ts → user-identities/enrollment-automations/enrollment-automations.d.ts} +10 -8
- package/lib/seam/connect/routes/{user-identities-enrollment-automations.js → user-identities/enrollment-automations/enrollment-automations.js} +23 -20
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js +6 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js.map +1 -0
- package/lib/seam/connect/routes/user-identities/index.d.ts +2 -0
- package/lib/seam/connect/routes/user-identities/index.js +7 -0
- package/lib/seam/connect/routes/user-identities/index.js.map +1 -0
- package/lib/seam/connect/routes/{user-identities.d.ts → user-identities/user-identities.d.ts} +16 -14
- package/lib/seam/connect/routes/{user-identities.js → user-identities/user-identities.js} +42 -39
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -0
- package/lib/seam/connect/routes/webhooks/index.d.ts +1 -0
- package/lib/seam/connect/routes/webhooks/index.js +6 -0
- package/lib/seam/connect/routes/webhooks/index.js.map +1 -0
- package/lib/seam/connect/routes/{webhooks.d.ts → webhooks/webhooks.d.ts} +12 -10
- package/lib/seam/connect/routes/{webhooks.js → webhooks/webhooks.js} +23 -20
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/routes/workspaces/index.js +6 -0
- package/lib/seam/connect/routes/workspaces/index.js.map +1 -0
- package/lib/seam/connect/routes/{workspaces.d.ts → workspaces/workspaces.d.ts} +13 -11
- package/lib/seam/connect/routes/{workspaces.js → workspaces/workspaces.js} +21 -18
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -7
- package/src/lib/seam/connect/index.ts +0 -1
- package/src/lib/seam/connect/routes/{access-codes.ts → access-codes/access-codes.ts} +28 -25
- package/src/lib/seam/connect/routes/access-codes/index.ts +8 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{access-codes-simulate.ts → access-codes/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/routes/access-codes/unmanaged/index.ts +6 -0
- package/src/lib/seam/connect/routes/{access-codes-unmanaged.ts → access-codes/unmanaged/unmanaged.ts} +17 -15
- package/src/lib/seam/connect/routes/{access-grants.ts → access-grants/access-grants.ts} +16 -14
- package/src/lib/seam/connect/routes/access-grants/index.ts +6 -0
- package/src/lib/seam/connect/routes/{access-methods.ts → access-methods/access-methods.ts} +15 -13
- package/src/lib/seam/connect/routes/access-methods/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-access-groups.ts → acs/access-groups/access-groups.ts} +22 -20
- package/src/lib/seam/connect/routes/acs/access-groups/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs.ts → acs/acs.ts} +16 -13
- package/src/lib/seam/connect/routes/{acs-credentials.ts → acs/credentials/credentials.ts} +24 -20
- package/src/lib/seam/connect/routes/acs/credentials/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-encoders.ts → acs/encoders/encoders.ts} +19 -16
- package/src/lib/seam/connect/routes/acs/encoders/index.ts +7 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-encoders-simulate.ts → acs/encoders/simulate/simulate.ts} +10 -8
- package/src/lib/seam/connect/routes/{acs-entrances.ts → acs/entrances/entrances.ts} +16 -14
- package/src/lib/seam/connect/routes/acs/entrances/index.ts +6 -0
- package/src/lib/seam/connect/routes/acs/index.ts +12 -0
- package/src/lib/seam/connect/routes/acs/systems/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-systems.ts → acs/systems/systems.ts} +15 -13
- package/src/lib/seam/connect/routes/acs/users/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-users.ts → acs/users/users.ts} +29 -27
- package/src/lib/seam/connect/routes/{action-attempts.ts → action-attempts/action-attempts.ts} +13 -11
- package/src/lib/seam/connect/routes/action-attempts/index.ts +6 -0
- package/src/lib/seam/connect/routes/{client-sessions.ts → client-sessions/client-sessions.ts} +24 -17
- package/src/lib/seam/connect/routes/client-sessions/index.ts +6 -0
- package/src/lib/seam/connect/routes/{connect-webviews.ts → connect-webviews/connect-webviews.ts} +18 -14
- package/src/lib/seam/connect/routes/connect-webviews/index.ts +6 -0
- package/src/lib/seam/connect/routes/{connected-accounts.ts → connected-accounts/connected-accounts.ts} +17 -15
- package/src/lib/seam/connect/routes/connected-accounts/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices.ts → devices/devices.ts} +24 -19
- package/src/lib/seam/connect/routes/devices/index.ts +8 -0
- package/src/lib/seam/connect/routes/devices/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices-simulate.ts → devices/simulate/simulate.ts} +9 -7
- package/src/lib/seam/connect/routes/devices/unmanaged/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices-unmanaged.ts → devices/unmanaged/unmanaged.ts} +13 -11
- package/src/lib/seam/connect/routes/{events.ts → events/events.ts} +14 -10
- package/src/lib/seam/connect/routes/events/index.ts +6 -0
- package/src/lib/seam/connect/routes/index.ts +24 -37
- package/src/lib/seam/connect/routes/locks/index.ts +6 -0
- package/src/lib/seam/connect/routes/{locks.ts → locks/locks.ts} +18 -14
- package/src/lib/seam/connect/routes/noise-sensors/index.ts +8 -0
- package/src/lib/seam/connect/routes/{noise-sensors.ts → noise-sensors/noise-sensors.ts} +11 -8
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.ts +6 -0
- package/src/lib/seam/connect/routes/{noise-sensors-noise-thresholds.ts → noise-sensors/noise-thresholds/noise-thresholds.ts} +17 -15
- package/src/lib/seam/connect/routes/noise-sensors/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{noise-sensors-simulate.ts → noise-sensors/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/routes/phones/index.ts +7 -0
- package/src/lib/seam/connect/routes/{phones.ts → phones/phones.ts} +20 -13
- package/src/lib/seam/connect/routes/phones/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{phones-simulate.ts → phones/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/{seam-http.ts → routes/seam-http.ts} +37 -31
- package/src/lib/seam/connect/routes/spaces/index.ts +6 -0
- package/src/lib/seam/connect/routes/{spaces.ts → spaces/spaces.ts} +33 -25
- package/src/lib/seam/connect/routes/{thermostats-daily-programs.ts → thermostats/daily-programs/daily-programs.ts} +12 -10
- package/src/lib/seam/connect/routes/thermostats/daily-programs/index.ts +6 -0
- package/src/lib/seam/connect/routes/thermostats/index.ts +9 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/index.ts +6 -0
- package/src/lib/seam/connect/routes/{thermostats-schedules.ts → thermostats/schedules/schedules.ts} +17 -15
- package/src/lib/seam/connect/routes/thermostats/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{thermostats-simulate.ts → thermostats/simulate/simulate.ts} +8 -6
- package/src/lib/seam/connect/routes/{thermostats.ts → thermostats/thermostats.ts} +40 -37
- package/src/lib/seam/connect/routes/{user-identities-enrollment-automations.ts → user-identities/enrollment-automations/enrollment-automations.ts} +16 -14
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/user-identities/index.ts +7 -0
- package/src/lib/seam/connect/routes/{user-identities.ts → user-identities/user-identities.ts} +38 -33
- package/src/lib/seam/connect/routes/webhooks/index.ts +6 -0
- package/src/lib/seam/connect/routes/{webhooks.ts → webhooks/webhooks.ts} +23 -17
- package/src/lib/seam/connect/routes/workspaces/index.ts +6 -0
- package/src/lib/seam/connect/routes/{workspaces.ts → workspaces/workspaces.ts} +23 -17
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/access-codes-simulate.js.map +0 -1
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/access-codes.js.map +0 -1
- package/lib/seam/connect/routes/access-grants.js.map +0 -1
- package/lib/seam/connect/routes/access-methods.js.map +0 -1
- package/lib/seam/connect/routes/acs-access-groups.js.map +0 -1
- package/lib/seam/connect/routes/acs-credentials.js.map +0 -1
- package/lib/seam/connect/routes/acs-encoders-simulate.js.map +0 -1
- package/lib/seam/connect/routes/acs-encoders.js.map +0 -1
- package/lib/seam/connect/routes/acs-entrances.js.map +0 -1
- package/lib/seam/connect/routes/acs-systems.js.map +0 -1
- package/lib/seam/connect/routes/acs-users.js.map +0 -1
- package/lib/seam/connect/routes/acs.js.map +0 -1
- package/lib/seam/connect/routes/action-attempts.js.map +0 -1
- package/lib/seam/connect/routes/client-sessions.js.map +0 -1
- package/lib/seam/connect/routes/connect-webviews.js.map +0 -1
- package/lib/seam/connect/routes/connected-accounts.js.map +0 -1
- package/lib/seam/connect/routes/devices-simulate.js.map +0 -1
- package/lib/seam/connect/routes/devices-unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/devices.js.map +0 -1
- package/lib/seam/connect/routes/locks.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +0 -1
- package/lib/seam/connect/routes/noise-sensors-simulate.js.map +0 -1
- package/lib/seam/connect/routes/phones-simulate.js.map +0 -1
- package/lib/seam/connect/routes/phones.js.map +0 -1
- package/lib/seam/connect/routes/spaces.js.map +0 -1
- package/lib/seam/connect/routes/thermostats-schedules.js.map +0 -1
- package/lib/seam/connect/routes/thermostats-simulate.js.map +0 -1
- package/lib/seam/connect/routes/thermostats.js.map +0 -1
- package/lib/seam/connect/routes/unstable-partner.d.ts +0 -17
- package/lib/seam/connect/routes/unstable-partner.js +0 -83
- package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +0 -1
- package/lib/seam/connect/routes/user-identities.js.map +0 -1
- package/lib/seam/connect/routes/webhooks.js.map +0 -1
- package/lib/seam/connect/routes/workspaces.js.map +0 -1
- package/lib/seam/connect/seam-http.js.map +0 -1
- package/src/lib/seam/connect/routes/unstable-partner.ts +0 -160
package/dist/connect.cjs
CHANGED
|
@@ -844,9 +844,10 @@ fetch_fn = async function(nextPageCursor) {
|
|
|
844
844
|
];
|
|
845
845
|
};
|
|
846
846
|
|
|
847
|
-
// src/lib/seam/connect/routes/client-sessions.ts
|
|
848
|
-
var
|
|
847
|
+
// src/lib/seam/connect/routes/client-sessions/client-sessions.ts
|
|
848
|
+
var _SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
849
849
|
constructor(apiKeyOrOptions = {}) {
|
|
850
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
850
851
|
const options = parseOptions(apiKeyOrOptions);
|
|
851
852
|
this.client = "client" in options ? options.client : createClient(options);
|
|
852
853
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -877,7 +878,7 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
877
878
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
878
879
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
879
880
|
throw new SeamHttpInvalidOptionsError(
|
|
880
|
-
"The client option cannot be used with
|
|
881
|
+
"The client option cannot be used with SeamHttpClientSessions.fromPublishableKey"
|
|
881
882
|
);
|
|
882
883
|
}
|
|
883
884
|
const client = createClient(clientOptions);
|
|
@@ -927,31 +928,31 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
927
928
|
create(body) {
|
|
928
929
|
return new SeamHttpRequest(this, {
|
|
929
930
|
pathname: "/client_sessions/create",
|
|
930
|
-
method: "
|
|
931
|
+
method: "PUT",
|
|
931
932
|
body,
|
|
932
933
|
responseKey: "client_session"
|
|
933
934
|
});
|
|
934
935
|
}
|
|
935
|
-
delete(
|
|
936
|
+
delete(params) {
|
|
936
937
|
return new SeamHttpRequest(this, {
|
|
937
938
|
pathname: "/client_sessions/delete",
|
|
938
|
-
method: "
|
|
939
|
-
body,
|
|
939
|
+
method: "POST",
|
|
940
|
+
body: params,
|
|
940
941
|
responseKey: void 0
|
|
941
942
|
});
|
|
942
943
|
}
|
|
943
|
-
get(
|
|
944
|
+
get(params) {
|
|
944
945
|
return new SeamHttpRequest(this, {
|
|
945
946
|
pathname: "/client_sessions/get",
|
|
946
|
-
method: "
|
|
947
|
-
body,
|
|
947
|
+
method: "POST",
|
|
948
|
+
body: params,
|
|
948
949
|
responseKey: "client_session"
|
|
949
950
|
});
|
|
950
951
|
}
|
|
951
952
|
getOrCreate(body) {
|
|
952
953
|
return new SeamHttpRequest(this, {
|
|
953
954
|
pathname: "/client_sessions/get_or_create",
|
|
954
|
-
method: "
|
|
955
|
+
method: "POST",
|
|
955
956
|
body,
|
|
956
957
|
responseKey: "client_session"
|
|
957
958
|
});
|
|
@@ -959,32 +960,35 @@ var SeamHttpClientSessions = class _SeamHttpClientSessions {
|
|
|
959
960
|
grantAccess(body) {
|
|
960
961
|
return new SeamHttpRequest(this, {
|
|
961
962
|
pathname: "/client_sessions/grant_access",
|
|
962
|
-
method: "
|
|
963
|
+
method: "PATCH",
|
|
963
964
|
body,
|
|
964
965
|
responseKey: void 0
|
|
965
966
|
});
|
|
966
967
|
}
|
|
967
|
-
list(
|
|
968
|
+
list(params) {
|
|
968
969
|
return new SeamHttpRequest(this, {
|
|
969
970
|
pathname: "/client_sessions/list",
|
|
970
|
-
method: "
|
|
971
|
-
body,
|
|
971
|
+
method: "POST",
|
|
972
|
+
body: params,
|
|
972
973
|
responseKey: "client_sessions"
|
|
973
974
|
});
|
|
974
975
|
}
|
|
975
|
-
revoke(
|
|
976
|
+
revoke(params) {
|
|
976
977
|
return new SeamHttpRequest(this, {
|
|
977
978
|
pathname: "/client_sessions/revoke",
|
|
978
|
-
method: "
|
|
979
|
-
body,
|
|
979
|
+
method: "POST",
|
|
980
|
+
body: params,
|
|
980
981
|
responseKey: void 0
|
|
981
982
|
});
|
|
982
983
|
}
|
|
983
984
|
};
|
|
985
|
+
_SeamHttpClientSessions.ltsVersion = seamApiLtsVersion;
|
|
986
|
+
var SeamHttpClientSessions = _SeamHttpClientSessions;
|
|
984
987
|
|
|
985
|
-
// src/lib/seam/connect/routes/access-codes
|
|
986
|
-
var
|
|
988
|
+
// src/lib/seam/connect/routes/access-codes/simulate/simulate.ts
|
|
989
|
+
var _SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
|
|
987
990
|
constructor(apiKeyOrOptions = {}) {
|
|
991
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
988
992
|
const options = parseOptions(apiKeyOrOptions);
|
|
989
993
|
this.client = "client" in options ? options.client : createClient(options);
|
|
990
994
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1015,7 +1019,7 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
|
|
|
1015
1019
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1016
1020
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1017
1021
|
throw new SeamHttpInvalidOptionsError(
|
|
1018
|
-
"The client option cannot be used with
|
|
1022
|
+
"The client option cannot be used with SeamHttpAccessCodesSimulate.fromPublishableKey"
|
|
1019
1023
|
);
|
|
1020
1024
|
}
|
|
1021
1025
|
const client = createClient(clientOptions);
|
|
@@ -1065,16 +1069,19 @@ var SeamHttpAccessCodesSimulate = class _SeamHttpAccessCodesSimulate {
|
|
|
1065
1069
|
createUnmanagedAccessCode(body) {
|
|
1066
1070
|
return new SeamHttpRequest(this, {
|
|
1067
1071
|
pathname: "/access_codes/simulate/create_unmanaged_access_code",
|
|
1068
|
-
method: "
|
|
1072
|
+
method: "POST",
|
|
1069
1073
|
body,
|
|
1070
1074
|
responseKey: "access_code"
|
|
1071
1075
|
});
|
|
1072
1076
|
}
|
|
1073
1077
|
};
|
|
1078
|
+
_SeamHttpAccessCodesSimulate.ltsVersion = seamApiLtsVersion;
|
|
1079
|
+
var SeamHttpAccessCodesSimulate = _SeamHttpAccessCodesSimulate;
|
|
1074
1080
|
|
|
1075
|
-
// src/lib/seam/connect/routes/access-codes
|
|
1076
|
-
var
|
|
1081
|
+
// src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts
|
|
1082
|
+
var _SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
|
|
1077
1083
|
constructor(apiKeyOrOptions = {}) {
|
|
1084
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1078
1085
|
const options = parseOptions(apiKeyOrOptions);
|
|
1079
1086
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1080
1087
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1105,7 +1112,7 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
|
|
|
1105
1112
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1106
1113
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1107
1114
|
throw new SeamHttpInvalidOptionsError(
|
|
1108
|
-
"The client option cannot be used with
|
|
1115
|
+
"The client option cannot be used with SeamHttpAccessCodesUnmanaged.fromPublishableKey"
|
|
1109
1116
|
);
|
|
1110
1117
|
}
|
|
1111
1118
|
const client = createClient(clientOptions);
|
|
@@ -1155,48 +1162,51 @@ var SeamHttpAccessCodesUnmanaged = class _SeamHttpAccessCodesUnmanaged {
|
|
|
1155
1162
|
convertToManaged(body) {
|
|
1156
1163
|
return new SeamHttpRequest(this, {
|
|
1157
1164
|
pathname: "/access_codes/unmanaged/convert_to_managed",
|
|
1158
|
-
method: "
|
|
1165
|
+
method: "PATCH",
|
|
1159
1166
|
body,
|
|
1160
1167
|
responseKey: void 0
|
|
1161
1168
|
});
|
|
1162
1169
|
}
|
|
1163
|
-
delete(
|
|
1170
|
+
delete(params) {
|
|
1164
1171
|
return new SeamHttpRequest(this, {
|
|
1165
1172
|
pathname: "/access_codes/unmanaged/delete",
|
|
1166
|
-
method: "
|
|
1167
|
-
body,
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
body: params,
|
|
1168
1175
|
responseKey: void 0
|
|
1169
1176
|
});
|
|
1170
1177
|
}
|
|
1171
|
-
get(
|
|
1178
|
+
get(params) {
|
|
1172
1179
|
return new SeamHttpRequest(this, {
|
|
1173
1180
|
pathname: "/access_codes/unmanaged/get",
|
|
1174
|
-
method: "
|
|
1175
|
-
body,
|
|
1181
|
+
method: "POST",
|
|
1182
|
+
body: params,
|
|
1176
1183
|
responseKey: "access_code"
|
|
1177
1184
|
});
|
|
1178
1185
|
}
|
|
1179
|
-
list(
|
|
1186
|
+
list(params) {
|
|
1180
1187
|
return new SeamHttpRequest(this, {
|
|
1181
1188
|
pathname: "/access_codes/unmanaged/list",
|
|
1182
|
-
method: "
|
|
1183
|
-
body,
|
|
1189
|
+
method: "POST",
|
|
1190
|
+
body: params,
|
|
1184
1191
|
responseKey: "access_codes"
|
|
1185
1192
|
});
|
|
1186
1193
|
}
|
|
1187
1194
|
update(body) {
|
|
1188
1195
|
return new SeamHttpRequest(this, {
|
|
1189
1196
|
pathname: "/access_codes/unmanaged/update",
|
|
1190
|
-
method: "
|
|
1197
|
+
method: "PATCH",
|
|
1191
1198
|
body,
|
|
1192
1199
|
responseKey: void 0
|
|
1193
1200
|
});
|
|
1194
1201
|
}
|
|
1195
1202
|
};
|
|
1203
|
+
_SeamHttpAccessCodesUnmanaged.ltsVersion = seamApiLtsVersion;
|
|
1204
|
+
var SeamHttpAccessCodesUnmanaged = _SeamHttpAccessCodesUnmanaged;
|
|
1196
1205
|
|
|
1197
|
-
// src/lib/seam/connect/routes/access-codes.ts
|
|
1198
|
-
var
|
|
1206
|
+
// src/lib/seam/connect/routes/access-codes/access-codes.ts
|
|
1207
|
+
var _SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
1199
1208
|
constructor(apiKeyOrOptions = {}) {
|
|
1209
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1200
1210
|
const options = parseOptions(apiKeyOrOptions);
|
|
1201
1211
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1202
1212
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1227,7 +1237,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1227
1237
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1228
1238
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1229
1239
|
throw new SeamHttpInvalidOptionsError(
|
|
1230
|
-
"The client option cannot be used with
|
|
1240
|
+
"The client option cannot be used with SeamHttpAccessCodes.fromPublishableKey"
|
|
1231
1241
|
);
|
|
1232
1242
|
}
|
|
1233
1243
|
const client = createClient(clientOptions);
|
|
@@ -1274,16 +1284,16 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1274
1284
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1275
1285
|
await clientSessions.get();
|
|
1276
1286
|
}
|
|
1277
|
-
get unmanaged() {
|
|
1278
|
-
return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
|
|
1279
|
-
}
|
|
1280
1287
|
get simulate() {
|
|
1281
1288
|
return SeamHttpAccessCodesSimulate.fromClient(this.client, this.defaults);
|
|
1282
1289
|
}
|
|
1290
|
+
get unmanaged() {
|
|
1291
|
+
return SeamHttpAccessCodesUnmanaged.fromClient(this.client, this.defaults);
|
|
1292
|
+
}
|
|
1283
1293
|
create(body) {
|
|
1284
1294
|
return new SeamHttpRequest(this, {
|
|
1285
1295
|
pathname: "/access_codes/create",
|
|
1286
|
-
method: "
|
|
1296
|
+
method: "POST",
|
|
1287
1297
|
body,
|
|
1288
1298
|
responseKey: "access_code"
|
|
1289
1299
|
});
|
|
@@ -1291,47 +1301,47 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1291
1301
|
createMultiple(body) {
|
|
1292
1302
|
return new SeamHttpRequest(this, {
|
|
1293
1303
|
pathname: "/access_codes/create_multiple",
|
|
1294
|
-
method: "
|
|
1304
|
+
method: "PUT",
|
|
1295
1305
|
body,
|
|
1296
1306
|
responseKey: "access_codes"
|
|
1297
1307
|
});
|
|
1298
1308
|
}
|
|
1299
|
-
delete(
|
|
1309
|
+
delete(params) {
|
|
1300
1310
|
return new SeamHttpRequest(this, {
|
|
1301
1311
|
pathname: "/access_codes/delete",
|
|
1302
|
-
method: "
|
|
1303
|
-
body,
|
|
1312
|
+
method: "POST",
|
|
1313
|
+
body: params,
|
|
1304
1314
|
responseKey: void 0
|
|
1305
1315
|
});
|
|
1306
1316
|
}
|
|
1307
1317
|
generateCode(body) {
|
|
1308
1318
|
return new SeamHttpRequest(this, {
|
|
1309
1319
|
pathname: "/access_codes/generate_code",
|
|
1310
|
-
method: "
|
|
1320
|
+
method: "POST",
|
|
1311
1321
|
body,
|
|
1312
1322
|
responseKey: "generated_code"
|
|
1313
1323
|
});
|
|
1314
1324
|
}
|
|
1315
|
-
get(
|
|
1325
|
+
get(params) {
|
|
1316
1326
|
return new SeamHttpRequest(this, {
|
|
1317
1327
|
pathname: "/access_codes/get",
|
|
1318
|
-
method: "
|
|
1319
|
-
body,
|
|
1328
|
+
method: "POST",
|
|
1329
|
+
body: params,
|
|
1320
1330
|
responseKey: "access_code"
|
|
1321
1331
|
});
|
|
1322
1332
|
}
|
|
1323
|
-
list(
|
|
1333
|
+
list(params) {
|
|
1324
1334
|
return new SeamHttpRequest(this, {
|
|
1325
1335
|
pathname: "/access_codes/list",
|
|
1326
|
-
method: "
|
|
1327
|
-
body,
|
|
1336
|
+
method: "POST",
|
|
1337
|
+
body: params,
|
|
1328
1338
|
responseKey: "access_codes"
|
|
1329
1339
|
});
|
|
1330
1340
|
}
|
|
1331
1341
|
pullBackupAccessCode(body) {
|
|
1332
1342
|
return new SeamHttpRequest(this, {
|
|
1333
1343
|
pathname: "/access_codes/pull_backup_access_code",
|
|
1334
|
-
method: "
|
|
1344
|
+
method: "POST",
|
|
1335
1345
|
body,
|
|
1336
1346
|
responseKey: "access_code"
|
|
1337
1347
|
});
|
|
@@ -1339,7 +1349,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1339
1349
|
reportDeviceConstraints(body) {
|
|
1340
1350
|
return new SeamHttpRequest(this, {
|
|
1341
1351
|
pathname: "/access_codes/report_device_constraints",
|
|
1342
|
-
method: "
|
|
1352
|
+
method: "POST",
|
|
1343
1353
|
body,
|
|
1344
1354
|
responseKey: void 0
|
|
1345
1355
|
});
|
|
@@ -1347,7 +1357,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1347
1357
|
update(body) {
|
|
1348
1358
|
return new SeamHttpRequest(this, {
|
|
1349
1359
|
pathname: "/access_codes/update",
|
|
1350
|
-
method: "
|
|
1360
|
+
method: "PUT",
|
|
1351
1361
|
body,
|
|
1352
1362
|
responseKey: void 0
|
|
1353
1363
|
});
|
|
@@ -1355,16 +1365,19 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1355
1365
|
updateMultiple(body) {
|
|
1356
1366
|
return new SeamHttpRequest(this, {
|
|
1357
1367
|
pathname: "/access_codes/update_multiple",
|
|
1358
|
-
method: "
|
|
1368
|
+
method: "PATCH",
|
|
1359
1369
|
body,
|
|
1360
1370
|
responseKey: void 0
|
|
1361
1371
|
});
|
|
1362
1372
|
}
|
|
1363
1373
|
};
|
|
1374
|
+
_SeamHttpAccessCodes.ltsVersion = seamApiLtsVersion;
|
|
1375
|
+
var SeamHttpAccessCodes = _SeamHttpAccessCodes;
|
|
1364
1376
|
|
|
1365
|
-
// src/lib/seam/connect/routes/access-grants.ts
|
|
1366
|
-
var
|
|
1377
|
+
// src/lib/seam/connect/routes/access-grants/access-grants.ts
|
|
1378
|
+
var _SeamHttpAccessGrants = class _SeamHttpAccessGrants {
|
|
1367
1379
|
constructor(apiKeyOrOptions = {}) {
|
|
1380
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1368
1381
|
const options = parseOptions(apiKeyOrOptions);
|
|
1369
1382
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1370
1383
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1395,7 +1408,7 @@ var SeamHttpAccessGrants = class _SeamHttpAccessGrants {
|
|
|
1395
1408
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1396
1409
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1397
1410
|
throw new SeamHttpInvalidOptionsError(
|
|
1398
|
-
"The client option cannot be used with
|
|
1411
|
+
"The client option cannot be used with SeamHttpAccessGrants.fromPublishableKey"
|
|
1399
1412
|
);
|
|
1400
1413
|
}
|
|
1401
1414
|
const client = createClient(clientOptions);
|
|
@@ -1445,40 +1458,43 @@ var SeamHttpAccessGrants = class _SeamHttpAccessGrants {
|
|
|
1445
1458
|
create(body) {
|
|
1446
1459
|
return new SeamHttpRequest(this, {
|
|
1447
1460
|
pathname: "/access_grants/create",
|
|
1448
|
-
method: "
|
|
1461
|
+
method: "POST",
|
|
1449
1462
|
body,
|
|
1450
1463
|
responseKey: "access_grant"
|
|
1451
1464
|
});
|
|
1452
1465
|
}
|
|
1453
|
-
delete(
|
|
1466
|
+
delete(params) {
|
|
1454
1467
|
return new SeamHttpRequest(this, {
|
|
1455
1468
|
pathname: "/access_grants/delete",
|
|
1456
|
-
method: "
|
|
1457
|
-
body,
|
|
1469
|
+
method: "POST",
|
|
1470
|
+
body: params,
|
|
1458
1471
|
responseKey: void 0
|
|
1459
1472
|
});
|
|
1460
1473
|
}
|
|
1461
|
-
get(
|
|
1474
|
+
get(params) {
|
|
1462
1475
|
return new SeamHttpRequest(this, {
|
|
1463
1476
|
pathname: "/access_grants/get",
|
|
1464
|
-
method: "
|
|
1465
|
-
body,
|
|
1477
|
+
method: "POST",
|
|
1478
|
+
body: params,
|
|
1466
1479
|
responseKey: "access_grant"
|
|
1467
1480
|
});
|
|
1468
1481
|
}
|
|
1469
|
-
list(
|
|
1482
|
+
list(params) {
|
|
1470
1483
|
return new SeamHttpRequest(this, {
|
|
1471
1484
|
pathname: "/access_grants/list",
|
|
1472
|
-
method: "
|
|
1473
|
-
body,
|
|
1485
|
+
method: "POST",
|
|
1486
|
+
body: params,
|
|
1474
1487
|
responseKey: "access_grants"
|
|
1475
1488
|
});
|
|
1476
1489
|
}
|
|
1477
1490
|
};
|
|
1491
|
+
_SeamHttpAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
1492
|
+
var SeamHttpAccessGrants = _SeamHttpAccessGrants;
|
|
1478
1493
|
|
|
1479
|
-
// src/lib/seam/connect/routes/access-methods.ts
|
|
1480
|
-
var
|
|
1494
|
+
// src/lib/seam/connect/routes/access-methods/access-methods.ts
|
|
1495
|
+
var _SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
1481
1496
|
constructor(apiKeyOrOptions = {}) {
|
|
1497
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1482
1498
|
const options = parseOptions(apiKeyOrOptions);
|
|
1483
1499
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1484
1500
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1509,7 +1525,7 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1509
1525
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1510
1526
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1511
1527
|
throw new SeamHttpInvalidOptionsError(
|
|
1512
|
-
"The client option cannot be used with
|
|
1528
|
+
"The client option cannot be used with SeamHttpAccessMethods.fromPublishableKey"
|
|
1513
1529
|
);
|
|
1514
1530
|
}
|
|
1515
1531
|
const client = createClient(clientOptions);
|
|
@@ -1556,35 +1572,38 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1556
1572
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1557
1573
|
await clientSessions.get();
|
|
1558
1574
|
}
|
|
1559
|
-
delete(
|
|
1575
|
+
delete(params) {
|
|
1560
1576
|
return new SeamHttpRequest(this, {
|
|
1561
1577
|
pathname: "/access_methods/delete",
|
|
1562
|
-
method: "
|
|
1563
|
-
body,
|
|
1578
|
+
method: "POST",
|
|
1579
|
+
body: params,
|
|
1564
1580
|
responseKey: void 0
|
|
1565
1581
|
});
|
|
1566
1582
|
}
|
|
1567
|
-
get(
|
|
1583
|
+
get(params) {
|
|
1568
1584
|
return new SeamHttpRequest(this, {
|
|
1569
1585
|
pathname: "/access_methods/get",
|
|
1570
|
-
method: "
|
|
1571
|
-
body,
|
|
1586
|
+
method: "POST",
|
|
1587
|
+
body: params,
|
|
1572
1588
|
responseKey: "access_method"
|
|
1573
1589
|
});
|
|
1574
1590
|
}
|
|
1575
|
-
list(
|
|
1591
|
+
list(params) {
|
|
1576
1592
|
return new SeamHttpRequest(this, {
|
|
1577
1593
|
pathname: "/access_methods/list",
|
|
1578
|
-
method: "
|
|
1579
|
-
body,
|
|
1594
|
+
method: "POST",
|
|
1595
|
+
body: params,
|
|
1580
1596
|
responseKey: "access_methods"
|
|
1581
1597
|
});
|
|
1582
1598
|
}
|
|
1583
1599
|
};
|
|
1600
|
+
_SeamHttpAccessMethods.ltsVersion = seamApiLtsVersion;
|
|
1601
|
+
var SeamHttpAccessMethods = _SeamHttpAccessMethods;
|
|
1584
1602
|
|
|
1585
|
-
// src/lib/seam/connect/routes/acs-access-groups.ts
|
|
1586
|
-
var
|
|
1603
|
+
// src/lib/seam/connect/routes/acs/access-groups/access-groups.ts
|
|
1604
|
+
var _SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
1587
1605
|
constructor(apiKeyOrOptions = {}) {
|
|
1606
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1588
1607
|
const options = parseOptions(apiKeyOrOptions);
|
|
1589
1608
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1590
1609
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1615,7 +1634,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
|
1615
1634
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1616
1635
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1617
1636
|
throw new SeamHttpInvalidOptionsError(
|
|
1618
|
-
"The client option cannot be used with
|
|
1637
|
+
"The client option cannot be used with SeamHttpAcsAccessGroups.fromPublishableKey"
|
|
1619
1638
|
);
|
|
1620
1639
|
}
|
|
1621
1640
|
const client = createClient(clientOptions);
|
|
@@ -1665,56 +1684,59 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
|
1665
1684
|
addUser(body) {
|
|
1666
1685
|
return new SeamHttpRequest(this, {
|
|
1667
1686
|
pathname: "/acs/access_groups/add_user",
|
|
1668
|
-
method: "
|
|
1687
|
+
method: "PUT",
|
|
1669
1688
|
body,
|
|
1670
1689
|
responseKey: void 0
|
|
1671
1690
|
});
|
|
1672
1691
|
}
|
|
1673
|
-
get(
|
|
1692
|
+
get(params) {
|
|
1674
1693
|
return new SeamHttpRequest(this, {
|
|
1675
1694
|
pathname: "/acs/access_groups/get",
|
|
1676
|
-
method: "
|
|
1677
|
-
body,
|
|
1695
|
+
method: "POST",
|
|
1696
|
+
body: params,
|
|
1678
1697
|
responseKey: "acs_access_group"
|
|
1679
1698
|
});
|
|
1680
1699
|
}
|
|
1681
|
-
list(
|
|
1700
|
+
list(params) {
|
|
1682
1701
|
return new SeamHttpRequest(this, {
|
|
1683
1702
|
pathname: "/acs/access_groups/list",
|
|
1684
|
-
method: "
|
|
1685
|
-
body,
|
|
1703
|
+
method: "POST",
|
|
1704
|
+
body: params,
|
|
1686
1705
|
responseKey: "acs_access_groups"
|
|
1687
1706
|
});
|
|
1688
1707
|
}
|
|
1689
|
-
listAccessibleEntrances(
|
|
1708
|
+
listAccessibleEntrances(params) {
|
|
1690
1709
|
return new SeamHttpRequest(this, {
|
|
1691
1710
|
pathname: "/acs/access_groups/list_accessible_entrances",
|
|
1692
|
-
method: "
|
|
1693
|
-
body,
|
|
1711
|
+
method: "POST",
|
|
1712
|
+
body: params,
|
|
1694
1713
|
responseKey: "acs_entrances"
|
|
1695
1714
|
});
|
|
1696
1715
|
}
|
|
1697
|
-
listUsers(
|
|
1716
|
+
listUsers(params) {
|
|
1698
1717
|
return new SeamHttpRequest(this, {
|
|
1699
1718
|
pathname: "/acs/access_groups/list_users",
|
|
1700
|
-
method: "
|
|
1701
|
-
body,
|
|
1719
|
+
method: "POST",
|
|
1720
|
+
body: params,
|
|
1702
1721
|
responseKey: "acs_users"
|
|
1703
1722
|
});
|
|
1704
1723
|
}
|
|
1705
|
-
removeUser(
|
|
1724
|
+
removeUser(params) {
|
|
1706
1725
|
return new SeamHttpRequest(this, {
|
|
1707
1726
|
pathname: "/acs/access_groups/remove_user",
|
|
1708
|
-
method: "
|
|
1709
|
-
body,
|
|
1727
|
+
method: "POST",
|
|
1728
|
+
body: params,
|
|
1710
1729
|
responseKey: void 0
|
|
1711
1730
|
});
|
|
1712
1731
|
}
|
|
1713
1732
|
};
|
|
1733
|
+
_SeamHttpAcsAccessGroups.ltsVersion = seamApiLtsVersion;
|
|
1734
|
+
var SeamHttpAcsAccessGroups = _SeamHttpAcsAccessGroups;
|
|
1714
1735
|
|
|
1715
|
-
// src/lib/seam/connect/routes/acs
|
|
1716
|
-
var
|
|
1736
|
+
// src/lib/seam/connect/routes/acs/credentials/credentials.ts
|
|
1737
|
+
var _SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
1717
1738
|
constructor(apiKeyOrOptions = {}) {
|
|
1739
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1718
1740
|
const options = parseOptions(apiKeyOrOptions);
|
|
1719
1741
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1720
1742
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1745,7 +1767,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1745
1767
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1746
1768
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1747
1769
|
throw new SeamHttpInvalidOptionsError(
|
|
1748
|
-
"The client option cannot be used with
|
|
1770
|
+
"The client option cannot be used with SeamHttpAcsCredentials.fromPublishableKey"
|
|
1749
1771
|
);
|
|
1750
1772
|
}
|
|
1751
1773
|
const client = createClient(clientOptions);
|
|
@@ -1795,7 +1817,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1795
1817
|
assign(body) {
|
|
1796
1818
|
return new SeamHttpRequest(this, {
|
|
1797
1819
|
pathname: "/acs/credentials/assign",
|
|
1798
|
-
method: "
|
|
1820
|
+
method: "PATCH",
|
|
1799
1821
|
body,
|
|
1800
1822
|
responseKey: void 0
|
|
1801
1823
|
});
|
|
@@ -1803,47 +1825,47 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1803
1825
|
create(body) {
|
|
1804
1826
|
return new SeamHttpRequest(this, {
|
|
1805
1827
|
pathname: "/acs/credentials/create",
|
|
1806
|
-
method: "
|
|
1828
|
+
method: "POST",
|
|
1807
1829
|
body,
|
|
1808
1830
|
responseKey: "acs_credential"
|
|
1809
1831
|
});
|
|
1810
1832
|
}
|
|
1811
|
-
delete(
|
|
1833
|
+
delete(params) {
|
|
1812
1834
|
return new SeamHttpRequest(this, {
|
|
1813
1835
|
pathname: "/acs/credentials/delete",
|
|
1814
|
-
method: "
|
|
1815
|
-
body,
|
|
1836
|
+
method: "POST",
|
|
1837
|
+
body: params,
|
|
1816
1838
|
responseKey: void 0
|
|
1817
1839
|
});
|
|
1818
1840
|
}
|
|
1819
|
-
get(
|
|
1841
|
+
get(params) {
|
|
1820
1842
|
return new SeamHttpRequest(this, {
|
|
1821
1843
|
pathname: "/acs/credentials/get",
|
|
1822
|
-
method: "
|
|
1823
|
-
body,
|
|
1844
|
+
method: "POST",
|
|
1845
|
+
body: params,
|
|
1824
1846
|
responseKey: "acs_credential"
|
|
1825
1847
|
});
|
|
1826
1848
|
}
|
|
1827
|
-
list(
|
|
1849
|
+
list(params) {
|
|
1828
1850
|
return new SeamHttpRequest(this, {
|
|
1829
1851
|
pathname: "/acs/credentials/list",
|
|
1830
|
-
method: "
|
|
1831
|
-
body,
|
|
1852
|
+
method: "POST",
|
|
1853
|
+
body: params,
|
|
1832
1854
|
responseKey: "acs_credentials"
|
|
1833
1855
|
});
|
|
1834
1856
|
}
|
|
1835
|
-
listAccessibleEntrances(
|
|
1857
|
+
listAccessibleEntrances(params) {
|
|
1836
1858
|
return new SeamHttpRequest(this, {
|
|
1837
1859
|
pathname: "/acs/credentials/list_accessible_entrances",
|
|
1838
|
-
method: "
|
|
1839
|
-
body,
|
|
1860
|
+
method: "POST",
|
|
1861
|
+
body: params,
|
|
1840
1862
|
responseKey: "acs_entrances"
|
|
1841
1863
|
});
|
|
1842
1864
|
}
|
|
1843
1865
|
unassign(body) {
|
|
1844
1866
|
return new SeamHttpRequest(this, {
|
|
1845
1867
|
pathname: "/acs/credentials/unassign",
|
|
1846
|
-
method: "
|
|
1868
|
+
method: "PATCH",
|
|
1847
1869
|
body,
|
|
1848
1870
|
responseKey: void 0
|
|
1849
1871
|
});
|
|
@@ -1851,16 +1873,19 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1851
1873
|
update(body) {
|
|
1852
1874
|
return new SeamHttpRequest(this, {
|
|
1853
1875
|
pathname: "/acs/credentials/update",
|
|
1854
|
-
method: "
|
|
1876
|
+
method: "PATCH",
|
|
1855
1877
|
body,
|
|
1856
1878
|
responseKey: void 0
|
|
1857
1879
|
});
|
|
1858
1880
|
}
|
|
1859
1881
|
};
|
|
1882
|
+
_SeamHttpAcsCredentials.ltsVersion = seamApiLtsVersion;
|
|
1883
|
+
var SeamHttpAcsCredentials = _SeamHttpAcsCredentials;
|
|
1860
1884
|
|
|
1861
|
-
// src/lib/seam/connect/routes/acs
|
|
1862
|
-
var
|
|
1885
|
+
// src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts
|
|
1886
|
+
var _SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
1863
1887
|
constructor(apiKeyOrOptions = {}) {
|
|
1888
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1864
1889
|
const options = parseOptions(apiKeyOrOptions);
|
|
1865
1890
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1866
1891
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1891,7 +1916,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1891
1916
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1892
1917
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1893
1918
|
throw new SeamHttpInvalidOptionsError(
|
|
1894
|
-
"The client option cannot be used with
|
|
1919
|
+
"The client option cannot be used with SeamHttpAcsEncodersSimulate.fromPublishableKey"
|
|
1895
1920
|
);
|
|
1896
1921
|
}
|
|
1897
1922
|
const client = createClient(clientOptions);
|
|
@@ -1941,7 +1966,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1941
1966
|
nextCredentialEncodeWillFail(body) {
|
|
1942
1967
|
return new SeamHttpRequest(this, {
|
|
1943
1968
|
pathname: "/acs/encoders/simulate/next_credential_encode_will_fail",
|
|
1944
|
-
method: "
|
|
1969
|
+
method: "POST",
|
|
1945
1970
|
body,
|
|
1946
1971
|
responseKey: void 0
|
|
1947
1972
|
});
|
|
@@ -1949,7 +1974,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1949
1974
|
nextCredentialEncodeWillSucceed(body) {
|
|
1950
1975
|
return new SeamHttpRequest(this, {
|
|
1951
1976
|
pathname: "/acs/encoders/simulate/next_credential_encode_will_succeed",
|
|
1952
|
-
method: "
|
|
1977
|
+
method: "POST",
|
|
1953
1978
|
body,
|
|
1954
1979
|
responseKey: void 0
|
|
1955
1980
|
});
|
|
@@ -1957,7 +1982,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1957
1982
|
nextCredentialScanWillFail(body) {
|
|
1958
1983
|
return new SeamHttpRequest(this, {
|
|
1959
1984
|
pathname: "/acs/encoders/simulate/next_credential_scan_will_fail",
|
|
1960
|
-
method: "
|
|
1985
|
+
method: "POST",
|
|
1961
1986
|
body,
|
|
1962
1987
|
responseKey: void 0
|
|
1963
1988
|
});
|
|
@@ -1965,16 +1990,19 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1965
1990
|
nextCredentialScanWillSucceed(body) {
|
|
1966
1991
|
return new SeamHttpRequest(this, {
|
|
1967
1992
|
pathname: "/acs/encoders/simulate/next_credential_scan_will_succeed",
|
|
1968
|
-
method: "
|
|
1993
|
+
method: "POST",
|
|
1969
1994
|
body,
|
|
1970
1995
|
responseKey: void 0
|
|
1971
1996
|
});
|
|
1972
1997
|
}
|
|
1973
1998
|
};
|
|
1999
|
+
_SeamHttpAcsEncodersSimulate.ltsVersion = seamApiLtsVersion;
|
|
2000
|
+
var SeamHttpAcsEncodersSimulate = _SeamHttpAcsEncodersSimulate;
|
|
1974
2001
|
|
|
1975
|
-
// src/lib/seam/connect/routes/acs
|
|
1976
|
-
var
|
|
2002
|
+
// src/lib/seam/connect/routes/acs/encoders/encoders.ts
|
|
2003
|
+
var _SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
1977
2004
|
constructor(apiKeyOrOptions = {}) {
|
|
2005
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1978
2006
|
const options = parseOptions(apiKeyOrOptions);
|
|
1979
2007
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1980
2008
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2005,7 +2033,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2005
2033
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2006
2034
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2007
2035
|
throw new SeamHttpInvalidOptionsError(
|
|
2008
|
-
"The client option cannot be used with
|
|
2036
|
+
"The client option cannot be used with SeamHttpAcsEncoders.fromPublishableKey"
|
|
2009
2037
|
);
|
|
2010
2038
|
}
|
|
2011
2039
|
const client = createClient(clientOptions);
|
|
@@ -2058,7 +2086,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2058
2086
|
encodeAccessMethod(body, options = {}) {
|
|
2059
2087
|
return new SeamHttpRequest(this, {
|
|
2060
2088
|
pathname: "/acs/encoders/encode_access_method",
|
|
2061
|
-
method: "
|
|
2089
|
+
method: "POST",
|
|
2062
2090
|
body,
|
|
2063
2091
|
responseKey: "action_attempt",
|
|
2064
2092
|
options
|
|
@@ -2067,42 +2095,45 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2067
2095
|
encodeCredential(body, options = {}) {
|
|
2068
2096
|
return new SeamHttpRequest(this, {
|
|
2069
2097
|
pathname: "/acs/encoders/encode_credential",
|
|
2070
|
-
method: "
|
|
2098
|
+
method: "POST",
|
|
2071
2099
|
body,
|
|
2072
2100
|
responseKey: "action_attempt",
|
|
2073
2101
|
options
|
|
2074
2102
|
});
|
|
2075
2103
|
}
|
|
2076
|
-
get(
|
|
2104
|
+
get(params) {
|
|
2077
2105
|
return new SeamHttpRequest(this, {
|
|
2078
2106
|
pathname: "/acs/encoders/get",
|
|
2079
|
-
method: "
|
|
2080
|
-
body,
|
|
2107
|
+
method: "POST",
|
|
2108
|
+
body: params,
|
|
2081
2109
|
responseKey: "acs_encoder"
|
|
2082
2110
|
});
|
|
2083
2111
|
}
|
|
2084
|
-
list(
|
|
2112
|
+
list(params) {
|
|
2085
2113
|
return new SeamHttpRequest(this, {
|
|
2086
2114
|
pathname: "/acs/encoders/list",
|
|
2087
|
-
method: "
|
|
2088
|
-
body,
|
|
2115
|
+
method: "POST",
|
|
2116
|
+
body: params,
|
|
2089
2117
|
responseKey: "acs_encoders"
|
|
2090
2118
|
});
|
|
2091
2119
|
}
|
|
2092
2120
|
scanCredential(body, options = {}) {
|
|
2093
2121
|
return new SeamHttpRequest(this, {
|
|
2094
2122
|
pathname: "/acs/encoders/scan_credential",
|
|
2095
|
-
method: "
|
|
2123
|
+
method: "POST",
|
|
2096
2124
|
body,
|
|
2097
2125
|
responseKey: "action_attempt",
|
|
2098
2126
|
options
|
|
2099
2127
|
});
|
|
2100
2128
|
}
|
|
2101
2129
|
};
|
|
2130
|
+
_SeamHttpAcsEncoders.ltsVersion = seamApiLtsVersion;
|
|
2131
|
+
var SeamHttpAcsEncoders = _SeamHttpAcsEncoders;
|
|
2102
2132
|
|
|
2103
|
-
// src/lib/seam/connect/routes/acs
|
|
2104
|
-
var
|
|
2133
|
+
// src/lib/seam/connect/routes/acs/entrances/entrances.ts
|
|
2134
|
+
var _SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
2105
2135
|
constructor(apiKeyOrOptions = {}) {
|
|
2136
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2106
2137
|
const options = parseOptions(apiKeyOrOptions);
|
|
2107
2138
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2108
2139
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2133,7 +2164,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
2133
2164
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2134
2165
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2135
2166
|
throw new SeamHttpInvalidOptionsError(
|
|
2136
|
-
"The client option cannot be used with
|
|
2167
|
+
"The client option cannot be used with SeamHttpAcsEntrances.fromPublishableKey"
|
|
2137
2168
|
);
|
|
2138
2169
|
}
|
|
2139
2170
|
const client = createClient(clientOptions);
|
|
@@ -2180,43 +2211,46 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
2180
2211
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2181
2212
|
await clientSessions.get();
|
|
2182
2213
|
}
|
|
2183
|
-
get(
|
|
2214
|
+
get(params) {
|
|
2184
2215
|
return new SeamHttpRequest(this, {
|
|
2185
2216
|
pathname: "/acs/entrances/get",
|
|
2186
|
-
method: "
|
|
2187
|
-
body,
|
|
2217
|
+
method: "POST",
|
|
2218
|
+
body: params,
|
|
2188
2219
|
responseKey: "acs_entrance"
|
|
2189
2220
|
});
|
|
2190
2221
|
}
|
|
2191
2222
|
grantAccess(body) {
|
|
2192
2223
|
return new SeamHttpRequest(this, {
|
|
2193
2224
|
pathname: "/acs/entrances/grant_access",
|
|
2194
|
-
method: "
|
|
2225
|
+
method: "POST",
|
|
2195
2226
|
body,
|
|
2196
2227
|
responseKey: void 0
|
|
2197
2228
|
});
|
|
2198
2229
|
}
|
|
2199
|
-
list(
|
|
2230
|
+
list(params) {
|
|
2200
2231
|
return new SeamHttpRequest(this, {
|
|
2201
2232
|
pathname: "/acs/entrances/list",
|
|
2202
|
-
method: "
|
|
2203
|
-
body,
|
|
2233
|
+
method: "POST",
|
|
2234
|
+
body: params,
|
|
2204
2235
|
responseKey: "acs_entrances"
|
|
2205
2236
|
});
|
|
2206
2237
|
}
|
|
2207
|
-
listCredentialsWithAccess(
|
|
2238
|
+
listCredentialsWithAccess(params) {
|
|
2208
2239
|
return new SeamHttpRequest(this, {
|
|
2209
2240
|
pathname: "/acs/entrances/list_credentials_with_access",
|
|
2210
|
-
method: "
|
|
2211
|
-
body,
|
|
2241
|
+
method: "POST",
|
|
2242
|
+
body: params,
|
|
2212
2243
|
responseKey: "acs_credentials"
|
|
2213
2244
|
});
|
|
2214
2245
|
}
|
|
2215
2246
|
};
|
|
2247
|
+
_SeamHttpAcsEntrances.ltsVersion = seamApiLtsVersion;
|
|
2248
|
+
var SeamHttpAcsEntrances = _SeamHttpAcsEntrances;
|
|
2216
2249
|
|
|
2217
|
-
// src/lib/seam/connect/routes/acs
|
|
2218
|
-
var
|
|
2250
|
+
// src/lib/seam/connect/routes/acs/systems/systems.ts
|
|
2251
|
+
var _SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
2219
2252
|
constructor(apiKeyOrOptions = {}) {
|
|
2253
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2220
2254
|
const options = parseOptions(apiKeyOrOptions);
|
|
2221
2255
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2222
2256
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2247,7 +2281,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2247
2281
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2248
2282
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2249
2283
|
throw new SeamHttpInvalidOptionsError(
|
|
2250
|
-
"The client option cannot be used with
|
|
2284
|
+
"The client option cannot be used with SeamHttpAcsSystems.fromPublishableKey"
|
|
2251
2285
|
);
|
|
2252
2286
|
}
|
|
2253
2287
|
const client = createClient(clientOptions);
|
|
@@ -2294,35 +2328,38 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2294
2328
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2295
2329
|
await clientSessions.get();
|
|
2296
2330
|
}
|
|
2297
|
-
get(
|
|
2331
|
+
get(params) {
|
|
2298
2332
|
return new SeamHttpRequest(this, {
|
|
2299
2333
|
pathname: "/acs/systems/get",
|
|
2300
|
-
method: "
|
|
2301
|
-
body,
|
|
2334
|
+
method: "POST",
|
|
2335
|
+
body: params,
|
|
2302
2336
|
responseKey: "acs_system"
|
|
2303
2337
|
});
|
|
2304
2338
|
}
|
|
2305
|
-
list(
|
|
2339
|
+
list(params) {
|
|
2306
2340
|
return new SeamHttpRequest(this, {
|
|
2307
2341
|
pathname: "/acs/systems/list",
|
|
2308
|
-
method: "
|
|
2309
|
-
body,
|
|
2342
|
+
method: "POST",
|
|
2343
|
+
body: params,
|
|
2310
2344
|
responseKey: "acs_systems"
|
|
2311
2345
|
});
|
|
2312
2346
|
}
|
|
2313
|
-
listCompatibleCredentialManagerAcsSystems(
|
|
2347
|
+
listCompatibleCredentialManagerAcsSystems(params) {
|
|
2314
2348
|
return new SeamHttpRequest(this, {
|
|
2315
2349
|
pathname: "/acs/systems/list_compatible_credential_manager_acs_systems",
|
|
2316
|
-
method: "
|
|
2317
|
-
body,
|
|
2350
|
+
method: "POST",
|
|
2351
|
+
body: params,
|
|
2318
2352
|
responseKey: "acs_systems"
|
|
2319
2353
|
});
|
|
2320
2354
|
}
|
|
2321
2355
|
};
|
|
2356
|
+
_SeamHttpAcsSystems.ltsVersion = seamApiLtsVersion;
|
|
2357
|
+
var SeamHttpAcsSystems = _SeamHttpAcsSystems;
|
|
2322
2358
|
|
|
2323
|
-
// src/lib/seam/connect/routes/acs
|
|
2324
|
-
var
|
|
2359
|
+
// src/lib/seam/connect/routes/acs/users/users.ts
|
|
2360
|
+
var _SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
2325
2361
|
constructor(apiKeyOrOptions = {}) {
|
|
2362
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2326
2363
|
const options = parseOptions(apiKeyOrOptions);
|
|
2327
2364
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2328
2365
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2353,7 +2390,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2353
2390
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2354
2391
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2355
2392
|
throw new SeamHttpInvalidOptionsError(
|
|
2356
|
-
"The client option cannot be used with
|
|
2393
|
+
"The client option cannot be used with SeamHttpAcsUsers.fromPublishableKey"
|
|
2357
2394
|
);
|
|
2358
2395
|
}
|
|
2359
2396
|
const client = createClient(clientOptions);
|
|
@@ -2403,7 +2440,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2403
2440
|
addToAccessGroup(body) {
|
|
2404
2441
|
return new SeamHttpRequest(this, {
|
|
2405
2442
|
pathname: "/acs/users/add_to_access_group",
|
|
2406
|
-
method: "
|
|
2443
|
+
method: "PUT",
|
|
2407
2444
|
body,
|
|
2408
2445
|
responseKey: void 0
|
|
2409
2446
|
});
|
|
@@ -2411,63 +2448,63 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2411
2448
|
create(body) {
|
|
2412
2449
|
return new SeamHttpRequest(this, {
|
|
2413
2450
|
pathname: "/acs/users/create",
|
|
2414
|
-
method: "
|
|
2451
|
+
method: "POST",
|
|
2415
2452
|
body,
|
|
2416
2453
|
responseKey: "acs_user"
|
|
2417
2454
|
});
|
|
2418
2455
|
}
|
|
2419
|
-
delete(
|
|
2456
|
+
delete(params) {
|
|
2420
2457
|
return new SeamHttpRequest(this, {
|
|
2421
2458
|
pathname: "/acs/users/delete",
|
|
2422
|
-
method: "
|
|
2423
|
-
body,
|
|
2459
|
+
method: "POST",
|
|
2460
|
+
body: params,
|
|
2424
2461
|
responseKey: void 0
|
|
2425
2462
|
});
|
|
2426
2463
|
}
|
|
2427
|
-
get(
|
|
2464
|
+
get(params) {
|
|
2428
2465
|
return new SeamHttpRequest(this, {
|
|
2429
2466
|
pathname: "/acs/users/get",
|
|
2430
|
-
method: "
|
|
2431
|
-
body,
|
|
2467
|
+
method: "POST",
|
|
2468
|
+
body: params,
|
|
2432
2469
|
responseKey: "acs_user"
|
|
2433
2470
|
});
|
|
2434
2471
|
}
|
|
2435
|
-
list(
|
|
2472
|
+
list(params) {
|
|
2436
2473
|
return new SeamHttpRequest(this, {
|
|
2437
2474
|
pathname: "/acs/users/list",
|
|
2438
|
-
method: "
|
|
2439
|
-
body,
|
|
2475
|
+
method: "POST",
|
|
2476
|
+
body: params,
|
|
2440
2477
|
responseKey: "acs_users"
|
|
2441
2478
|
});
|
|
2442
2479
|
}
|
|
2443
|
-
listAccessibleEntrances(
|
|
2480
|
+
listAccessibleEntrances(params) {
|
|
2444
2481
|
return new SeamHttpRequest(this, {
|
|
2445
2482
|
pathname: "/acs/users/list_accessible_entrances",
|
|
2446
|
-
method: "
|
|
2447
|
-
body,
|
|
2483
|
+
method: "POST",
|
|
2484
|
+
body: params,
|
|
2448
2485
|
responseKey: "acs_entrances"
|
|
2449
2486
|
});
|
|
2450
2487
|
}
|
|
2451
|
-
removeFromAccessGroup(
|
|
2488
|
+
removeFromAccessGroup(params) {
|
|
2452
2489
|
return new SeamHttpRequest(this, {
|
|
2453
2490
|
pathname: "/acs/users/remove_from_access_group",
|
|
2454
|
-
method: "
|
|
2455
|
-
body,
|
|
2491
|
+
method: "POST",
|
|
2492
|
+
body: params,
|
|
2456
2493
|
responseKey: void 0
|
|
2457
2494
|
});
|
|
2458
2495
|
}
|
|
2459
|
-
revokeAccessToAllEntrances(
|
|
2496
|
+
revokeAccessToAllEntrances(params) {
|
|
2460
2497
|
return new SeamHttpRequest(this, {
|
|
2461
2498
|
pathname: "/acs/users/revoke_access_to_all_entrances",
|
|
2462
|
-
method: "
|
|
2463
|
-
body,
|
|
2499
|
+
method: "POST",
|
|
2500
|
+
body: params,
|
|
2464
2501
|
responseKey: void 0
|
|
2465
2502
|
});
|
|
2466
2503
|
}
|
|
2467
2504
|
suspend(body) {
|
|
2468
2505
|
return new SeamHttpRequest(this, {
|
|
2469
2506
|
pathname: "/acs/users/suspend",
|
|
2470
|
-
method: "
|
|
2507
|
+
method: "POST",
|
|
2471
2508
|
body,
|
|
2472
2509
|
responseKey: void 0
|
|
2473
2510
|
});
|
|
@@ -2475,7 +2512,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2475
2512
|
unsuspend(body) {
|
|
2476
2513
|
return new SeamHttpRequest(this, {
|
|
2477
2514
|
pathname: "/acs/users/unsuspend",
|
|
2478
|
-
method: "
|
|
2515
|
+
method: "POST",
|
|
2479
2516
|
body,
|
|
2480
2517
|
responseKey: void 0
|
|
2481
2518
|
});
|
|
@@ -2483,16 +2520,19 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2483
2520
|
update(body) {
|
|
2484
2521
|
return new SeamHttpRequest(this, {
|
|
2485
2522
|
pathname: "/acs/users/update",
|
|
2486
|
-
method: "
|
|
2523
|
+
method: "PATCH",
|
|
2487
2524
|
body,
|
|
2488
2525
|
responseKey: void 0
|
|
2489
2526
|
});
|
|
2490
2527
|
}
|
|
2491
2528
|
};
|
|
2529
|
+
_SeamHttpAcsUsers.ltsVersion = seamApiLtsVersion;
|
|
2530
|
+
var SeamHttpAcsUsers = _SeamHttpAcsUsers;
|
|
2492
2531
|
|
|
2493
|
-
// src/lib/seam/connect/routes/acs.ts
|
|
2494
|
-
var
|
|
2532
|
+
// src/lib/seam/connect/routes/acs/acs.ts
|
|
2533
|
+
var _SeamHttpAcs = class _SeamHttpAcs {
|
|
2495
2534
|
constructor(apiKeyOrOptions = {}) {
|
|
2535
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2496
2536
|
const options = parseOptions(apiKeyOrOptions);
|
|
2497
2537
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2498
2538
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2523,7 +2563,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2523
2563
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2524
2564
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2525
2565
|
throw new SeamHttpInvalidOptionsError(
|
|
2526
|
-
"The client option cannot be used with
|
|
2566
|
+
"The client option cannot be used with SeamHttpAcs.fromPublishableKey"
|
|
2527
2567
|
);
|
|
2528
2568
|
}
|
|
2529
2569
|
const client = createClient(clientOptions);
|
|
@@ -2576,12 +2616,12 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2576
2616
|
get credentials() {
|
|
2577
2617
|
return SeamHttpAcsCredentials.fromClient(this.client, this.defaults);
|
|
2578
2618
|
}
|
|
2579
|
-
get entrances() {
|
|
2580
|
-
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2581
|
-
}
|
|
2582
2619
|
get encoders() {
|
|
2583
2620
|
return SeamHttpAcsEncoders.fromClient(this.client, this.defaults);
|
|
2584
2621
|
}
|
|
2622
|
+
get entrances() {
|
|
2623
|
+
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2624
|
+
}
|
|
2585
2625
|
get systems() {
|
|
2586
2626
|
return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
|
|
2587
2627
|
}
|
|
@@ -2589,10 +2629,13 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2589
2629
|
return SeamHttpAcsUsers.fromClient(this.client, this.defaults);
|
|
2590
2630
|
}
|
|
2591
2631
|
};
|
|
2632
|
+
_SeamHttpAcs.ltsVersion = seamApiLtsVersion;
|
|
2633
|
+
var SeamHttpAcs = _SeamHttpAcs;
|
|
2592
2634
|
|
|
2593
|
-
// src/lib/seam/connect/routes/action-attempts.ts
|
|
2594
|
-
var
|
|
2635
|
+
// src/lib/seam/connect/routes/action-attempts/action-attempts.ts
|
|
2636
|
+
var _SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
2595
2637
|
constructor(apiKeyOrOptions = {}) {
|
|
2638
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2596
2639
|
const options = parseOptions(apiKeyOrOptions);
|
|
2597
2640
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2598
2641
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2623,7 +2666,7 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
|
2623
2666
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2624
2667
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2625
2668
|
throw new SeamHttpInvalidOptionsError(
|
|
2626
|
-
"The client option cannot be used with
|
|
2669
|
+
"The client option cannot be used with SeamHttpActionAttempts.fromPublishableKey"
|
|
2627
2670
|
);
|
|
2628
2671
|
}
|
|
2629
2672
|
const client = createClient(clientOptions);
|
|
@@ -2670,28 +2713,31 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
|
2670
2713
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2671
2714
|
await clientSessions.get();
|
|
2672
2715
|
}
|
|
2673
|
-
get(
|
|
2716
|
+
get(params, options = {}) {
|
|
2674
2717
|
return new SeamHttpRequest(this, {
|
|
2675
2718
|
pathname: "/action_attempts/get",
|
|
2676
|
-
method: "
|
|
2677
|
-
body,
|
|
2719
|
+
method: "POST",
|
|
2720
|
+
body: params,
|
|
2678
2721
|
responseKey: "action_attempt",
|
|
2679
2722
|
options
|
|
2680
2723
|
});
|
|
2681
2724
|
}
|
|
2682
|
-
list(
|
|
2725
|
+
list(params) {
|
|
2683
2726
|
return new SeamHttpRequest(this, {
|
|
2684
2727
|
pathname: "/action_attempts/list",
|
|
2685
|
-
method: "
|
|
2686
|
-
body,
|
|
2728
|
+
method: "POST",
|
|
2729
|
+
body: params,
|
|
2687
2730
|
responseKey: "action_attempts"
|
|
2688
2731
|
});
|
|
2689
2732
|
}
|
|
2690
2733
|
};
|
|
2734
|
+
_SeamHttpActionAttempts.ltsVersion = seamApiLtsVersion;
|
|
2735
|
+
var SeamHttpActionAttempts = _SeamHttpActionAttempts;
|
|
2691
2736
|
|
|
2692
|
-
// src/lib/seam/connect/routes/connect-webviews.ts
|
|
2693
|
-
var
|
|
2737
|
+
// src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts
|
|
2738
|
+
var _SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
2694
2739
|
constructor(apiKeyOrOptions = {}) {
|
|
2740
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2695
2741
|
const options = parseOptions(apiKeyOrOptions);
|
|
2696
2742
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2697
2743
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2722,7 +2768,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
|
2722
2768
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2723
2769
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2724
2770
|
throw new SeamHttpInvalidOptionsError(
|
|
2725
|
-
"The client option cannot be used with
|
|
2771
|
+
"The client option cannot be used with SeamHttpConnectWebviews.fromPublishableKey"
|
|
2726
2772
|
);
|
|
2727
2773
|
}
|
|
2728
2774
|
const client = createClient(clientOptions);
|
|
@@ -2772,40 +2818,43 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
|
2772
2818
|
create(body) {
|
|
2773
2819
|
return new SeamHttpRequest(this, {
|
|
2774
2820
|
pathname: "/connect_webviews/create",
|
|
2775
|
-
method: "
|
|
2821
|
+
method: "POST",
|
|
2776
2822
|
body,
|
|
2777
2823
|
responseKey: "connect_webview"
|
|
2778
2824
|
});
|
|
2779
2825
|
}
|
|
2780
|
-
delete(
|
|
2826
|
+
delete(params) {
|
|
2781
2827
|
return new SeamHttpRequest(this, {
|
|
2782
2828
|
pathname: "/connect_webviews/delete",
|
|
2783
|
-
method: "
|
|
2784
|
-
body,
|
|
2829
|
+
method: "POST",
|
|
2830
|
+
body: params,
|
|
2785
2831
|
responseKey: void 0
|
|
2786
2832
|
});
|
|
2787
2833
|
}
|
|
2788
|
-
get(
|
|
2834
|
+
get(params) {
|
|
2789
2835
|
return new SeamHttpRequest(this, {
|
|
2790
2836
|
pathname: "/connect_webviews/get",
|
|
2791
|
-
method: "
|
|
2792
|
-
body,
|
|
2837
|
+
method: "POST",
|
|
2838
|
+
body: params,
|
|
2793
2839
|
responseKey: "connect_webview"
|
|
2794
2840
|
});
|
|
2795
2841
|
}
|
|
2796
|
-
list(
|
|
2842
|
+
list(params) {
|
|
2797
2843
|
return new SeamHttpRequest(this, {
|
|
2798
2844
|
pathname: "/connect_webviews/list",
|
|
2799
|
-
method: "
|
|
2800
|
-
body,
|
|
2845
|
+
method: "POST",
|
|
2846
|
+
body: params,
|
|
2801
2847
|
responseKey: "connect_webviews"
|
|
2802
2848
|
});
|
|
2803
2849
|
}
|
|
2804
2850
|
};
|
|
2851
|
+
_SeamHttpConnectWebviews.ltsVersion = seamApiLtsVersion;
|
|
2852
|
+
var SeamHttpConnectWebviews = _SeamHttpConnectWebviews;
|
|
2805
2853
|
|
|
2806
|
-
// src/lib/seam/connect/routes/connected-accounts.ts
|
|
2807
|
-
var
|
|
2854
|
+
// src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts
|
|
2855
|
+
var _SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
2808
2856
|
constructor(apiKeyOrOptions = {}) {
|
|
2857
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2809
2858
|
const options = parseOptions(apiKeyOrOptions);
|
|
2810
2859
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2811
2860
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2836,7 +2885,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2836
2885
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2837
2886
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2838
2887
|
throw new SeamHttpInvalidOptionsError(
|
|
2839
|
-
"The client option cannot be used with
|
|
2888
|
+
"The client option cannot be used with SeamHttpConnectedAccounts.fromPublishableKey"
|
|
2840
2889
|
);
|
|
2841
2890
|
}
|
|
2842
2891
|
const client = createClient(clientOptions);
|
|
@@ -2883,34 +2932,34 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2883
2932
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2884
2933
|
await clientSessions.get();
|
|
2885
2934
|
}
|
|
2886
|
-
delete(
|
|
2935
|
+
delete(params) {
|
|
2887
2936
|
return new SeamHttpRequest(this, {
|
|
2888
2937
|
pathname: "/connected_accounts/delete",
|
|
2889
|
-
method: "
|
|
2890
|
-
body,
|
|
2938
|
+
method: "POST",
|
|
2939
|
+
body: params,
|
|
2891
2940
|
responseKey: void 0
|
|
2892
2941
|
});
|
|
2893
2942
|
}
|
|
2894
|
-
get(
|
|
2943
|
+
get(params) {
|
|
2895
2944
|
return new SeamHttpRequest(this, {
|
|
2896
2945
|
pathname: "/connected_accounts/get",
|
|
2897
|
-
method: "
|
|
2898
|
-
body,
|
|
2946
|
+
method: "POST",
|
|
2947
|
+
body: params,
|
|
2899
2948
|
responseKey: "connected_account"
|
|
2900
2949
|
});
|
|
2901
2950
|
}
|
|
2902
|
-
list(
|
|
2951
|
+
list(params) {
|
|
2903
2952
|
return new SeamHttpRequest(this, {
|
|
2904
2953
|
pathname: "/connected_accounts/list",
|
|
2905
|
-
method: "
|
|
2906
|
-
body,
|
|
2954
|
+
method: "POST",
|
|
2955
|
+
body: params,
|
|
2907
2956
|
responseKey: "connected_accounts"
|
|
2908
2957
|
});
|
|
2909
2958
|
}
|
|
2910
2959
|
sync(body) {
|
|
2911
2960
|
return new SeamHttpRequest(this, {
|
|
2912
2961
|
pathname: "/connected_accounts/sync",
|
|
2913
|
-
method: "
|
|
2962
|
+
method: "POST",
|
|
2914
2963
|
body,
|
|
2915
2964
|
responseKey: void 0
|
|
2916
2965
|
});
|
|
@@ -2918,16 +2967,19 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2918
2967
|
update(body) {
|
|
2919
2968
|
return new SeamHttpRequest(this, {
|
|
2920
2969
|
pathname: "/connected_accounts/update",
|
|
2921
|
-
method: "
|
|
2970
|
+
method: "POST",
|
|
2922
2971
|
body,
|
|
2923
2972
|
responseKey: void 0
|
|
2924
2973
|
});
|
|
2925
2974
|
}
|
|
2926
2975
|
};
|
|
2976
|
+
_SeamHttpConnectedAccounts.ltsVersion = seamApiLtsVersion;
|
|
2977
|
+
var SeamHttpConnectedAccounts = _SeamHttpConnectedAccounts;
|
|
2927
2978
|
|
|
2928
|
-
// src/lib/seam/connect/routes/devices
|
|
2929
|
-
var
|
|
2979
|
+
// src/lib/seam/connect/routes/devices/simulate/simulate.ts
|
|
2980
|
+
var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
2930
2981
|
constructor(apiKeyOrOptions = {}) {
|
|
2982
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2931
2983
|
const options = parseOptions(apiKeyOrOptions);
|
|
2932
2984
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2933
2985
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2958,7 +3010,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
2958
3010
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2959
3011
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2960
3012
|
throw new SeamHttpInvalidOptionsError(
|
|
2961
|
-
"The client option cannot be used with
|
|
3013
|
+
"The client option cannot be used with SeamHttpDevicesSimulate.fromPublishableKey"
|
|
2962
3014
|
);
|
|
2963
3015
|
}
|
|
2964
3016
|
const client = createClient(clientOptions);
|
|
@@ -3008,7 +3060,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3008
3060
|
connect(body) {
|
|
3009
3061
|
return new SeamHttpRequest(this, {
|
|
3010
3062
|
pathname: "/devices/simulate/connect",
|
|
3011
|
-
method: "
|
|
3063
|
+
method: "POST",
|
|
3012
3064
|
body,
|
|
3013
3065
|
responseKey: void 0
|
|
3014
3066
|
});
|
|
@@ -3016,7 +3068,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3016
3068
|
disconnect(body) {
|
|
3017
3069
|
return new SeamHttpRequest(this, {
|
|
3018
3070
|
pathname: "/devices/simulate/disconnect",
|
|
3019
|
-
method: "
|
|
3071
|
+
method: "POST",
|
|
3020
3072
|
body,
|
|
3021
3073
|
responseKey: void 0
|
|
3022
3074
|
});
|
|
@@ -3024,16 +3076,19 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3024
3076
|
remove(body) {
|
|
3025
3077
|
return new SeamHttpRequest(this, {
|
|
3026
3078
|
pathname: "/devices/simulate/remove",
|
|
3027
|
-
method: "
|
|
3079
|
+
method: "POST",
|
|
3028
3080
|
body,
|
|
3029
3081
|
responseKey: void 0
|
|
3030
3082
|
});
|
|
3031
3083
|
}
|
|
3032
3084
|
};
|
|
3085
|
+
_SeamHttpDevicesSimulate.ltsVersion = seamApiLtsVersion;
|
|
3086
|
+
var SeamHttpDevicesSimulate = _SeamHttpDevicesSimulate;
|
|
3033
3087
|
|
|
3034
|
-
// src/lib/seam/connect/routes/devices
|
|
3035
|
-
var
|
|
3088
|
+
// src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts
|
|
3089
|
+
var _SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
3036
3090
|
constructor(apiKeyOrOptions = {}) {
|
|
3091
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3037
3092
|
const options = parseOptions(apiKeyOrOptions);
|
|
3038
3093
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3039
3094
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3064,7 +3119,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
|
3064
3119
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3065
3120
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3066
3121
|
throw new SeamHttpInvalidOptionsError(
|
|
3067
|
-
"The client option cannot be used with
|
|
3122
|
+
"The client option cannot be used with SeamHttpDevicesUnmanaged.fromPublishableKey"
|
|
3068
3123
|
);
|
|
3069
3124
|
}
|
|
3070
3125
|
const client = createClient(clientOptions);
|
|
@@ -3111,35 +3166,38 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
|
3111
3166
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3112
3167
|
await clientSessions.get();
|
|
3113
3168
|
}
|
|
3114
|
-
get(
|
|
3169
|
+
get(params) {
|
|
3115
3170
|
return new SeamHttpRequest(this, {
|
|
3116
3171
|
pathname: "/devices/unmanaged/get",
|
|
3117
|
-
method: "
|
|
3118
|
-
body,
|
|
3172
|
+
method: "POST",
|
|
3173
|
+
body: params,
|
|
3119
3174
|
responseKey: "device"
|
|
3120
3175
|
});
|
|
3121
3176
|
}
|
|
3122
|
-
list(
|
|
3177
|
+
list(params) {
|
|
3123
3178
|
return new SeamHttpRequest(this, {
|
|
3124
3179
|
pathname: "/devices/unmanaged/list",
|
|
3125
|
-
method: "
|
|
3126
|
-
body,
|
|
3180
|
+
method: "POST",
|
|
3181
|
+
body: params,
|
|
3127
3182
|
responseKey: "devices"
|
|
3128
3183
|
});
|
|
3129
3184
|
}
|
|
3130
3185
|
update(body) {
|
|
3131
3186
|
return new SeamHttpRequest(this, {
|
|
3132
3187
|
pathname: "/devices/unmanaged/update",
|
|
3133
|
-
method: "
|
|
3188
|
+
method: "PATCH",
|
|
3134
3189
|
body,
|
|
3135
3190
|
responseKey: void 0
|
|
3136
3191
|
});
|
|
3137
3192
|
}
|
|
3138
3193
|
};
|
|
3194
|
+
_SeamHttpDevicesUnmanaged.ltsVersion = seamApiLtsVersion;
|
|
3195
|
+
var SeamHttpDevicesUnmanaged = _SeamHttpDevicesUnmanaged;
|
|
3139
3196
|
|
|
3140
|
-
// src/lib/seam/connect/routes/devices.ts
|
|
3141
|
-
var
|
|
3197
|
+
// src/lib/seam/connect/routes/devices/devices.ts
|
|
3198
|
+
var _SeamHttpDevices = class _SeamHttpDevices {
|
|
3142
3199
|
constructor(apiKeyOrOptions = {}) {
|
|
3200
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3143
3201
|
const options = parseOptions(apiKeyOrOptions);
|
|
3144
3202
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3145
3203
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3170,7 +3228,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
3170
3228
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3171
3229
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3172
3230
|
throw new SeamHttpInvalidOptionsError(
|
|
3173
|
-
"The client option cannot be used with
|
|
3231
|
+
"The client option cannot be used with SeamHttpDevices.fromPublishableKey"
|
|
3174
3232
|
);
|
|
3175
3233
|
}
|
|
3176
3234
|
const client = createClient(clientOptions);
|
|
@@ -3217,49 +3275,52 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
3217
3275
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3218
3276
|
await clientSessions.get();
|
|
3219
3277
|
}
|
|
3220
|
-
get unmanaged() {
|
|
3221
|
-
return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
|
|
3222
|
-
}
|
|
3223
3278
|
get simulate() {
|
|
3224
3279
|
return SeamHttpDevicesSimulate.fromClient(this.client, this.defaults);
|
|
3225
3280
|
}
|
|
3226
|
-
get(
|
|
3281
|
+
get unmanaged() {
|
|
3282
|
+
return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
|
|
3283
|
+
}
|
|
3284
|
+
get(params) {
|
|
3227
3285
|
return new SeamHttpRequest(this, {
|
|
3228
3286
|
pathname: "/devices/get",
|
|
3229
|
-
method: "
|
|
3230
|
-
body,
|
|
3287
|
+
method: "POST",
|
|
3288
|
+
body: params,
|
|
3231
3289
|
responseKey: "device"
|
|
3232
3290
|
});
|
|
3233
3291
|
}
|
|
3234
|
-
list(
|
|
3292
|
+
list(params) {
|
|
3235
3293
|
return new SeamHttpRequest(this, {
|
|
3236
3294
|
pathname: "/devices/list",
|
|
3237
|
-
method: "
|
|
3238
|
-
body,
|
|
3295
|
+
method: "POST",
|
|
3296
|
+
body: params,
|
|
3239
3297
|
responseKey: "devices"
|
|
3240
3298
|
});
|
|
3241
3299
|
}
|
|
3242
|
-
listDeviceProviders(
|
|
3300
|
+
listDeviceProviders(params) {
|
|
3243
3301
|
return new SeamHttpRequest(this, {
|
|
3244
3302
|
pathname: "/devices/list_device_providers",
|
|
3245
|
-
method: "
|
|
3246
|
-
body,
|
|
3303
|
+
method: "POST",
|
|
3304
|
+
body: params,
|
|
3247
3305
|
responseKey: "device_providers"
|
|
3248
3306
|
});
|
|
3249
3307
|
}
|
|
3250
3308
|
update(body) {
|
|
3251
3309
|
return new SeamHttpRequest(this, {
|
|
3252
3310
|
pathname: "/devices/update",
|
|
3253
|
-
method: "
|
|
3311
|
+
method: "PATCH",
|
|
3254
3312
|
body,
|
|
3255
3313
|
responseKey: void 0
|
|
3256
3314
|
});
|
|
3257
3315
|
}
|
|
3258
3316
|
};
|
|
3317
|
+
_SeamHttpDevices.ltsVersion = seamApiLtsVersion;
|
|
3318
|
+
var SeamHttpDevices = _SeamHttpDevices;
|
|
3259
3319
|
|
|
3260
|
-
// src/lib/seam/connect/routes/events.ts
|
|
3261
|
-
var
|
|
3320
|
+
// src/lib/seam/connect/routes/events/events.ts
|
|
3321
|
+
var _SeamHttpEvents = class _SeamHttpEvents {
|
|
3262
3322
|
constructor(apiKeyOrOptions = {}) {
|
|
3323
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3263
3324
|
const options = parseOptions(apiKeyOrOptions);
|
|
3264
3325
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3265
3326
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3290,7 +3351,7 @@ var SeamHttpEvents = class _SeamHttpEvents {
|
|
|
3290
3351
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3291
3352
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3292
3353
|
throw new SeamHttpInvalidOptionsError(
|
|
3293
|
-
"The client option cannot be used with
|
|
3354
|
+
"The client option cannot be used with SeamHttpEvents.fromPublishableKey"
|
|
3294
3355
|
);
|
|
3295
3356
|
}
|
|
3296
3357
|
const client = createClient(clientOptions);
|
|
@@ -3337,27 +3398,30 @@ var SeamHttpEvents = class _SeamHttpEvents {
|
|
|
3337
3398
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3338
3399
|
await clientSessions.get();
|
|
3339
3400
|
}
|
|
3340
|
-
get(
|
|
3401
|
+
get(params) {
|
|
3341
3402
|
return new SeamHttpRequest(this, {
|
|
3342
3403
|
pathname: "/events/get",
|
|
3343
|
-
method: "
|
|
3344
|
-
body,
|
|
3404
|
+
method: "POST",
|
|
3405
|
+
body: params,
|
|
3345
3406
|
responseKey: "event"
|
|
3346
3407
|
});
|
|
3347
3408
|
}
|
|
3348
|
-
list(
|
|
3409
|
+
list(params) {
|
|
3349
3410
|
return new SeamHttpRequest(this, {
|
|
3350
3411
|
pathname: "/events/list",
|
|
3351
|
-
method: "
|
|
3352
|
-
body,
|
|
3412
|
+
method: "POST",
|
|
3413
|
+
body: params,
|
|
3353
3414
|
responseKey: "events"
|
|
3354
3415
|
});
|
|
3355
3416
|
}
|
|
3356
3417
|
};
|
|
3418
|
+
_SeamHttpEvents.ltsVersion = seamApiLtsVersion;
|
|
3419
|
+
var SeamHttpEvents = _SeamHttpEvents;
|
|
3357
3420
|
|
|
3358
|
-
// src/lib/seam/connect/routes/locks.ts
|
|
3359
|
-
var
|
|
3421
|
+
// src/lib/seam/connect/routes/locks/locks.ts
|
|
3422
|
+
var _SeamHttpLocks = class _SeamHttpLocks {
|
|
3360
3423
|
constructor(apiKeyOrOptions = {}) {
|
|
3424
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3361
3425
|
const options = parseOptions(apiKeyOrOptions);
|
|
3362
3426
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3363
3427
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3388,7 +3452,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3388
3452
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3389
3453
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3390
3454
|
throw new SeamHttpInvalidOptionsError(
|
|
3391
|
-
"The client option cannot be used with
|
|
3455
|
+
"The client option cannot be used with SeamHttpLocks.fromPublishableKey"
|
|
3392
3456
|
);
|
|
3393
3457
|
}
|
|
3394
3458
|
const client = createClient(clientOptions);
|
|
@@ -3435,26 +3499,26 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3435
3499
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3436
3500
|
await clientSessions.get();
|
|
3437
3501
|
}
|
|
3438
|
-
get(
|
|
3502
|
+
get(params) {
|
|
3439
3503
|
return new SeamHttpRequest(this, {
|
|
3440
3504
|
pathname: "/locks/get",
|
|
3441
|
-
method: "
|
|
3442
|
-
body,
|
|
3505
|
+
method: "POST",
|
|
3506
|
+
body: params,
|
|
3443
3507
|
responseKey: "device"
|
|
3444
3508
|
});
|
|
3445
3509
|
}
|
|
3446
|
-
list(
|
|
3510
|
+
list(params) {
|
|
3447
3511
|
return new SeamHttpRequest(this, {
|
|
3448
3512
|
pathname: "/locks/list",
|
|
3449
|
-
method: "
|
|
3450
|
-
body,
|
|
3513
|
+
method: "POST",
|
|
3514
|
+
body: params,
|
|
3451
3515
|
responseKey: "devices"
|
|
3452
3516
|
});
|
|
3453
3517
|
}
|
|
3454
3518
|
lockDoor(body, options = {}) {
|
|
3455
3519
|
return new SeamHttpRequest(this, {
|
|
3456
3520
|
pathname: "/locks/lock_door",
|
|
3457
|
-
method: "
|
|
3521
|
+
method: "POST",
|
|
3458
3522
|
body,
|
|
3459
3523
|
responseKey: "action_attempt",
|
|
3460
3524
|
options
|
|
@@ -3463,17 +3527,20 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3463
3527
|
unlockDoor(body, options = {}) {
|
|
3464
3528
|
return new SeamHttpRequest(this, {
|
|
3465
3529
|
pathname: "/locks/unlock_door",
|
|
3466
|
-
method: "
|
|
3530
|
+
method: "POST",
|
|
3467
3531
|
body,
|
|
3468
3532
|
responseKey: "action_attempt",
|
|
3469
3533
|
options
|
|
3470
3534
|
});
|
|
3471
3535
|
}
|
|
3472
3536
|
};
|
|
3537
|
+
_SeamHttpLocks.ltsVersion = seamApiLtsVersion;
|
|
3538
|
+
var SeamHttpLocks = _SeamHttpLocks;
|
|
3473
3539
|
|
|
3474
|
-
// src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts
|
|
3475
|
-
var
|
|
3540
|
+
// src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts
|
|
3541
|
+
var _SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
|
|
3476
3542
|
constructor(apiKeyOrOptions = {}) {
|
|
3543
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3477
3544
|
const options = parseOptions(apiKeyOrOptions);
|
|
3478
3545
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3479
3546
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3504,7 +3571,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
3504
3571
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3505
3572
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3506
3573
|
throw new SeamHttpInvalidOptionsError(
|
|
3507
|
-
"The client option cannot be used with
|
|
3574
|
+
"The client option cannot be used with SeamHttpNoiseSensorsNoiseThresholds.fromPublishableKey"
|
|
3508
3575
|
);
|
|
3509
3576
|
}
|
|
3510
3577
|
const client = createClient(clientOptions);
|
|
@@ -3557,48 +3624,51 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
3557
3624
|
create(body) {
|
|
3558
3625
|
return new SeamHttpRequest(this, {
|
|
3559
3626
|
pathname: "/noise_sensors/noise_thresholds/create",
|
|
3560
|
-
method: "
|
|
3627
|
+
method: "POST",
|
|
3561
3628
|
body,
|
|
3562
3629
|
responseKey: "noise_threshold"
|
|
3563
3630
|
});
|
|
3564
3631
|
}
|
|
3565
|
-
delete(
|
|
3632
|
+
delete(params) {
|
|
3566
3633
|
return new SeamHttpRequest(this, {
|
|
3567
3634
|
pathname: "/noise_sensors/noise_thresholds/delete",
|
|
3568
|
-
method: "
|
|
3569
|
-
body,
|
|
3635
|
+
method: "POST",
|
|
3636
|
+
body: params,
|
|
3570
3637
|
responseKey: void 0
|
|
3571
3638
|
});
|
|
3572
3639
|
}
|
|
3573
|
-
get(
|
|
3640
|
+
get(params) {
|
|
3574
3641
|
return new SeamHttpRequest(this, {
|
|
3575
3642
|
pathname: "/noise_sensors/noise_thresholds/get",
|
|
3576
|
-
method: "
|
|
3577
|
-
body,
|
|
3643
|
+
method: "POST",
|
|
3644
|
+
body: params,
|
|
3578
3645
|
responseKey: "noise_threshold"
|
|
3579
3646
|
});
|
|
3580
3647
|
}
|
|
3581
|
-
list(
|
|
3648
|
+
list(params) {
|
|
3582
3649
|
return new SeamHttpRequest(this, {
|
|
3583
3650
|
pathname: "/noise_sensors/noise_thresholds/list",
|
|
3584
|
-
method: "
|
|
3585
|
-
body,
|
|
3651
|
+
method: "POST",
|
|
3652
|
+
body: params,
|
|
3586
3653
|
responseKey: "noise_thresholds"
|
|
3587
3654
|
});
|
|
3588
3655
|
}
|
|
3589
3656
|
update(body) {
|
|
3590
3657
|
return new SeamHttpRequest(this, {
|
|
3591
3658
|
pathname: "/noise_sensors/noise_thresholds/update",
|
|
3592
|
-
method: "
|
|
3659
|
+
method: "PUT",
|
|
3593
3660
|
body,
|
|
3594
3661
|
responseKey: void 0
|
|
3595
3662
|
});
|
|
3596
3663
|
}
|
|
3597
3664
|
};
|
|
3665
|
+
_SeamHttpNoiseSensorsNoiseThresholds.ltsVersion = seamApiLtsVersion;
|
|
3666
|
+
var SeamHttpNoiseSensorsNoiseThresholds = _SeamHttpNoiseSensorsNoiseThresholds;
|
|
3598
3667
|
|
|
3599
|
-
// src/lib/seam/connect/routes/noise-sensors
|
|
3600
|
-
var
|
|
3668
|
+
// src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts
|
|
3669
|
+
var _SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
3601
3670
|
constructor(apiKeyOrOptions = {}) {
|
|
3671
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3602
3672
|
const options = parseOptions(apiKeyOrOptions);
|
|
3603
3673
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3604
3674
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3629,7 +3699,7 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
|
3629
3699
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3630
3700
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3631
3701
|
throw new SeamHttpInvalidOptionsError(
|
|
3632
|
-
"The client option cannot be used with
|
|
3702
|
+
"The client option cannot be used with SeamHttpNoiseSensorsSimulate.fromPublishableKey"
|
|
3633
3703
|
);
|
|
3634
3704
|
}
|
|
3635
3705
|
const client = createClient(clientOptions);
|
|
@@ -3679,16 +3749,19 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
|
3679
3749
|
triggerNoiseThreshold(body) {
|
|
3680
3750
|
return new SeamHttpRequest(this, {
|
|
3681
3751
|
pathname: "/noise_sensors/simulate/trigger_noise_threshold",
|
|
3682
|
-
method: "
|
|
3752
|
+
method: "POST",
|
|
3683
3753
|
body,
|
|
3684
3754
|
responseKey: void 0
|
|
3685
3755
|
});
|
|
3686
3756
|
}
|
|
3687
3757
|
};
|
|
3758
|
+
_SeamHttpNoiseSensorsSimulate.ltsVersion = seamApiLtsVersion;
|
|
3759
|
+
var SeamHttpNoiseSensorsSimulate = _SeamHttpNoiseSensorsSimulate;
|
|
3688
3760
|
|
|
3689
|
-
// src/lib/seam/connect/routes/noise-sensors.ts
|
|
3690
|
-
var
|
|
3761
|
+
// src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts
|
|
3762
|
+
var _SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
3691
3763
|
constructor(apiKeyOrOptions = {}) {
|
|
3764
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3692
3765
|
const options = parseOptions(apiKeyOrOptions);
|
|
3693
3766
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3694
3767
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3719,7 +3792,7 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
|
3719
3792
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3720
3793
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3721
3794
|
throw new SeamHttpInvalidOptionsError(
|
|
3722
|
-
"The client option cannot be used with
|
|
3795
|
+
"The client option cannot be used with SeamHttpNoiseSensors.fromPublishableKey"
|
|
3723
3796
|
);
|
|
3724
3797
|
}
|
|
3725
3798
|
const client = createClient(clientOptions);
|
|
@@ -3775,19 +3848,22 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
|
3775
3848
|
get simulate() {
|
|
3776
3849
|
return SeamHttpNoiseSensorsSimulate.fromClient(this.client, this.defaults);
|
|
3777
3850
|
}
|
|
3778
|
-
list(
|
|
3851
|
+
list(params) {
|
|
3779
3852
|
return new SeamHttpRequest(this, {
|
|
3780
3853
|
pathname: "/noise_sensors/list",
|
|
3781
|
-
method: "
|
|
3782
|
-
body,
|
|
3854
|
+
method: "POST",
|
|
3855
|
+
body: params,
|
|
3783
3856
|
responseKey: "devices"
|
|
3784
3857
|
});
|
|
3785
3858
|
}
|
|
3786
3859
|
};
|
|
3860
|
+
_SeamHttpNoiseSensors.ltsVersion = seamApiLtsVersion;
|
|
3861
|
+
var SeamHttpNoiseSensors = _SeamHttpNoiseSensors;
|
|
3787
3862
|
|
|
3788
|
-
// src/lib/seam/connect/routes/phones
|
|
3789
|
-
var
|
|
3863
|
+
// src/lib/seam/connect/routes/phones/simulate/simulate.ts
|
|
3864
|
+
var _SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
3790
3865
|
constructor(apiKeyOrOptions = {}) {
|
|
3866
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3791
3867
|
const options = parseOptions(apiKeyOrOptions);
|
|
3792
3868
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3793
3869
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3818,7 +3894,7 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3818
3894
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3819
3895
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3820
3896
|
throw new SeamHttpInvalidOptionsError(
|
|
3821
|
-
"The client option cannot be used with
|
|
3897
|
+
"The client option cannot be used with SeamHttpPhonesSimulate.fromPublishableKey"
|
|
3822
3898
|
);
|
|
3823
3899
|
}
|
|
3824
3900
|
const client = createClient(clientOptions);
|
|
@@ -3868,16 +3944,19 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3868
3944
|
createSandboxPhone(body) {
|
|
3869
3945
|
return new SeamHttpRequest(this, {
|
|
3870
3946
|
pathname: "/phones/simulate/create_sandbox_phone",
|
|
3871
|
-
method: "
|
|
3947
|
+
method: "POST",
|
|
3872
3948
|
body,
|
|
3873
3949
|
responseKey: "phone"
|
|
3874
3950
|
});
|
|
3875
3951
|
}
|
|
3876
3952
|
};
|
|
3953
|
+
_SeamHttpPhonesSimulate.ltsVersion = seamApiLtsVersion;
|
|
3954
|
+
var SeamHttpPhonesSimulate = _SeamHttpPhonesSimulate;
|
|
3877
3955
|
|
|
3878
|
-
// src/lib/seam/connect/routes/phones.ts
|
|
3879
|
-
var
|
|
3956
|
+
// src/lib/seam/connect/routes/phones/phones.ts
|
|
3957
|
+
var _SeamHttpPhones = class _SeamHttpPhones {
|
|
3880
3958
|
constructor(apiKeyOrOptions = {}) {
|
|
3959
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3881
3960
|
const options = parseOptions(apiKeyOrOptions);
|
|
3882
3961
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3883
3962
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3908,7 +3987,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
3908
3987
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3909
3988
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3910
3989
|
throw new SeamHttpInvalidOptionsError(
|
|
3911
|
-
"The client option cannot be used with
|
|
3990
|
+
"The client option cannot be used with SeamHttpPhones.fromPublishableKey"
|
|
3912
3991
|
);
|
|
3913
3992
|
}
|
|
3914
3993
|
const client = createClient(clientOptions);
|
|
@@ -3958,35 +4037,38 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
3958
4037
|
get simulate() {
|
|
3959
4038
|
return SeamHttpPhonesSimulate.fromClient(this.client, this.defaults);
|
|
3960
4039
|
}
|
|
3961
|
-
deactivate(
|
|
4040
|
+
deactivate(params) {
|
|
3962
4041
|
return new SeamHttpRequest(this, {
|
|
3963
4042
|
pathname: "/phones/deactivate",
|
|
3964
|
-
method: "
|
|
3965
|
-
body,
|
|
4043
|
+
method: "POST",
|
|
4044
|
+
body: params,
|
|
3966
4045
|
responseKey: void 0
|
|
3967
4046
|
});
|
|
3968
4047
|
}
|
|
3969
|
-
get(
|
|
4048
|
+
get(params) {
|
|
3970
4049
|
return new SeamHttpRequest(this, {
|
|
3971
4050
|
pathname: "/phones/get",
|
|
3972
|
-
method: "
|
|
3973
|
-
body,
|
|
4051
|
+
method: "POST",
|
|
4052
|
+
body: params,
|
|
3974
4053
|
responseKey: "phone"
|
|
3975
4054
|
});
|
|
3976
4055
|
}
|
|
3977
|
-
list(
|
|
4056
|
+
list(params) {
|
|
3978
4057
|
return new SeamHttpRequest(this, {
|
|
3979
4058
|
pathname: "/phones/list",
|
|
3980
|
-
method: "
|
|
3981
|
-
body,
|
|
4059
|
+
method: "POST",
|
|
4060
|
+
body: params,
|
|
3982
4061
|
responseKey: "phones"
|
|
3983
4062
|
});
|
|
3984
4063
|
}
|
|
3985
4064
|
};
|
|
4065
|
+
_SeamHttpPhones.ltsVersion = seamApiLtsVersion;
|
|
4066
|
+
var SeamHttpPhones = _SeamHttpPhones;
|
|
3986
4067
|
|
|
3987
|
-
// src/lib/seam/connect/routes/spaces.ts
|
|
3988
|
-
var
|
|
4068
|
+
// src/lib/seam/connect/routes/spaces/spaces.ts
|
|
4069
|
+
var _SeamHttpSpaces = class _SeamHttpSpaces {
|
|
3989
4070
|
constructor(apiKeyOrOptions = {}) {
|
|
4071
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3990
4072
|
const options = parseOptions(apiKeyOrOptions);
|
|
3991
4073
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3992
4074
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4017,7 +4099,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4017
4099
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4018
4100
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4019
4101
|
throw new SeamHttpInvalidOptionsError(
|
|
4020
|
-
"The client option cannot be used with
|
|
4102
|
+
"The client option cannot be used with SeamHttpSpaces.fromPublishableKey"
|
|
4021
4103
|
);
|
|
4022
4104
|
}
|
|
4023
4105
|
const client = createClient(clientOptions);
|
|
@@ -4067,7 +4149,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4067
4149
|
addAcsEntrances(body) {
|
|
4068
4150
|
return new SeamHttpRequest(this, {
|
|
4069
4151
|
pathname: "/spaces/add_acs_entrances",
|
|
4070
|
-
method: "
|
|
4152
|
+
method: "PUT",
|
|
4071
4153
|
body,
|
|
4072
4154
|
responseKey: void 0
|
|
4073
4155
|
});
|
|
@@ -4075,7 +4157,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4075
4157
|
addDevices(body) {
|
|
4076
4158
|
return new SeamHttpRequest(this, {
|
|
4077
4159
|
pathname: "/spaces/add_devices",
|
|
4078
|
-
method: "
|
|
4160
|
+
method: "PUT",
|
|
4079
4161
|
body,
|
|
4080
4162
|
responseKey: void 0
|
|
4081
4163
|
});
|
|
@@ -4083,64 +4165,67 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4083
4165
|
create(body) {
|
|
4084
4166
|
return new SeamHttpRequest(this, {
|
|
4085
4167
|
pathname: "/spaces/create",
|
|
4086
|
-
method: "
|
|
4168
|
+
method: "POST",
|
|
4087
4169
|
body,
|
|
4088
4170
|
responseKey: "space"
|
|
4089
4171
|
});
|
|
4090
4172
|
}
|
|
4091
|
-
delete(
|
|
4173
|
+
delete(params) {
|
|
4092
4174
|
return new SeamHttpRequest(this, {
|
|
4093
4175
|
pathname: "/spaces/delete",
|
|
4094
|
-
method: "
|
|
4095
|
-
body,
|
|
4176
|
+
method: "POST",
|
|
4177
|
+
body: params,
|
|
4096
4178
|
responseKey: void 0
|
|
4097
4179
|
});
|
|
4098
4180
|
}
|
|
4099
|
-
get(
|
|
4181
|
+
get(params) {
|
|
4100
4182
|
return new SeamHttpRequest(this, {
|
|
4101
4183
|
pathname: "/spaces/get",
|
|
4102
|
-
method: "
|
|
4103
|
-
body,
|
|
4184
|
+
method: "POST",
|
|
4185
|
+
body: params,
|
|
4104
4186
|
responseKey: "space"
|
|
4105
4187
|
});
|
|
4106
4188
|
}
|
|
4107
|
-
list(
|
|
4189
|
+
list(params) {
|
|
4108
4190
|
return new SeamHttpRequest(this, {
|
|
4109
4191
|
pathname: "/spaces/list",
|
|
4110
|
-
method: "
|
|
4111
|
-
|
|
4192
|
+
method: "GET",
|
|
4193
|
+
params,
|
|
4112
4194
|
responseKey: "spaces"
|
|
4113
4195
|
});
|
|
4114
4196
|
}
|
|
4115
|
-
removeAcsEntrances(
|
|
4197
|
+
removeAcsEntrances(params) {
|
|
4116
4198
|
return new SeamHttpRequest(this, {
|
|
4117
4199
|
pathname: "/spaces/remove_acs_entrances",
|
|
4118
|
-
method: "
|
|
4119
|
-
body,
|
|
4200
|
+
method: "POST",
|
|
4201
|
+
body: params,
|
|
4120
4202
|
responseKey: void 0
|
|
4121
4203
|
});
|
|
4122
4204
|
}
|
|
4123
|
-
removeDevices(
|
|
4205
|
+
removeDevices(params) {
|
|
4124
4206
|
return new SeamHttpRequest(this, {
|
|
4125
4207
|
pathname: "/spaces/remove_devices",
|
|
4126
|
-
method: "
|
|
4127
|
-
body,
|
|
4208
|
+
method: "POST",
|
|
4209
|
+
body: params,
|
|
4128
4210
|
responseKey: void 0
|
|
4129
4211
|
});
|
|
4130
4212
|
}
|
|
4131
4213
|
update(body) {
|
|
4132
4214
|
return new SeamHttpRequest(this, {
|
|
4133
4215
|
pathname: "/spaces/update",
|
|
4134
|
-
method: "
|
|
4216
|
+
method: "PATCH",
|
|
4135
4217
|
body,
|
|
4136
4218
|
responseKey: "space"
|
|
4137
4219
|
});
|
|
4138
4220
|
}
|
|
4139
4221
|
};
|
|
4222
|
+
_SeamHttpSpaces.ltsVersion = seamApiLtsVersion;
|
|
4223
|
+
var SeamHttpSpaces = _SeamHttpSpaces;
|
|
4140
4224
|
|
|
4141
|
-
// src/lib/seam/connect/routes/thermostats-daily-programs.ts
|
|
4142
|
-
var
|
|
4225
|
+
// src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts
|
|
4226
|
+
var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
4143
4227
|
constructor(apiKeyOrOptions = {}) {
|
|
4228
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4144
4229
|
const options = parseOptions(apiKeyOrOptions);
|
|
4145
4230
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4146
4231
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4171,7 +4256,7 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
|
4171
4256
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4172
4257
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4173
4258
|
throw new SeamHttpInvalidOptionsError(
|
|
4174
|
-
"The client option cannot be used with
|
|
4259
|
+
"The client option cannot be used with SeamHttpThermostatsDailyPrograms.fromPublishableKey"
|
|
4175
4260
|
);
|
|
4176
4261
|
}
|
|
4177
4262
|
const client = createClient(clientOptions);
|
|
@@ -4224,33 +4309,36 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
|
4224
4309
|
create(body) {
|
|
4225
4310
|
return new SeamHttpRequest(this, {
|
|
4226
4311
|
pathname: "/thermostats/daily_programs/create",
|
|
4227
|
-
method: "
|
|
4312
|
+
method: "POST",
|
|
4228
4313
|
body,
|
|
4229
4314
|
responseKey: "thermostat_daily_program"
|
|
4230
4315
|
});
|
|
4231
4316
|
}
|
|
4232
|
-
delete(
|
|
4317
|
+
delete(params) {
|
|
4233
4318
|
return new SeamHttpRequest(this, {
|
|
4234
4319
|
pathname: "/thermostats/daily_programs/delete",
|
|
4235
|
-
method: "
|
|
4236
|
-
body,
|
|
4320
|
+
method: "POST",
|
|
4321
|
+
body: params,
|
|
4237
4322
|
responseKey: void 0
|
|
4238
4323
|
});
|
|
4239
4324
|
}
|
|
4240
4325
|
update(body, options = {}) {
|
|
4241
4326
|
return new SeamHttpRequest(this, {
|
|
4242
4327
|
pathname: "/thermostats/daily_programs/update",
|
|
4243
|
-
method: "
|
|
4328
|
+
method: "PATCH",
|
|
4244
4329
|
body,
|
|
4245
4330
|
responseKey: "action_attempt",
|
|
4246
4331
|
options
|
|
4247
4332
|
});
|
|
4248
4333
|
}
|
|
4249
4334
|
};
|
|
4335
|
+
_SeamHttpThermostatsDailyPrograms.ltsVersion = seamApiLtsVersion;
|
|
4336
|
+
var SeamHttpThermostatsDailyPrograms = _SeamHttpThermostatsDailyPrograms;
|
|
4250
4337
|
|
|
4251
|
-
// src/lib/seam/connect/routes/thermostats
|
|
4252
|
-
var
|
|
4338
|
+
// src/lib/seam/connect/routes/thermostats/schedules/schedules.ts
|
|
4339
|
+
var _SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
4253
4340
|
constructor(apiKeyOrOptions = {}) {
|
|
4341
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4254
4342
|
const options = parseOptions(apiKeyOrOptions);
|
|
4255
4343
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4256
4344
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4281,7 +4369,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
|
4281
4369
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4282
4370
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4283
4371
|
throw new SeamHttpInvalidOptionsError(
|
|
4284
|
-
"The client option cannot be used with
|
|
4372
|
+
"The client option cannot be used with SeamHttpThermostatsSchedules.fromPublishableKey"
|
|
4285
4373
|
);
|
|
4286
4374
|
}
|
|
4287
4375
|
const client = createClient(clientOptions);
|
|
@@ -4331,48 +4419,51 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
|
4331
4419
|
create(body) {
|
|
4332
4420
|
return new SeamHttpRequest(this, {
|
|
4333
4421
|
pathname: "/thermostats/schedules/create",
|
|
4334
|
-
method: "
|
|
4422
|
+
method: "POST",
|
|
4335
4423
|
body,
|
|
4336
4424
|
responseKey: "thermostat_schedule"
|
|
4337
4425
|
});
|
|
4338
4426
|
}
|
|
4339
|
-
delete(
|
|
4427
|
+
delete(params) {
|
|
4340
4428
|
return new SeamHttpRequest(this, {
|
|
4341
4429
|
pathname: "/thermostats/schedules/delete",
|
|
4342
|
-
method: "
|
|
4343
|
-
body,
|
|
4430
|
+
method: "POST",
|
|
4431
|
+
body: params,
|
|
4344
4432
|
responseKey: void 0
|
|
4345
4433
|
});
|
|
4346
4434
|
}
|
|
4347
|
-
get(
|
|
4435
|
+
get(params) {
|
|
4348
4436
|
return new SeamHttpRequest(this, {
|
|
4349
4437
|
pathname: "/thermostats/schedules/get",
|
|
4350
|
-
method: "
|
|
4351
|
-
body,
|
|
4438
|
+
method: "POST",
|
|
4439
|
+
body: params,
|
|
4352
4440
|
responseKey: "thermostat_schedule"
|
|
4353
4441
|
});
|
|
4354
4442
|
}
|
|
4355
|
-
list(
|
|
4443
|
+
list(params) {
|
|
4356
4444
|
return new SeamHttpRequest(this, {
|
|
4357
4445
|
pathname: "/thermostats/schedules/list",
|
|
4358
|
-
method: "
|
|
4359
|
-
body,
|
|
4446
|
+
method: "POST",
|
|
4447
|
+
body: params,
|
|
4360
4448
|
responseKey: "thermostat_schedules"
|
|
4361
4449
|
});
|
|
4362
4450
|
}
|
|
4363
4451
|
update(body) {
|
|
4364
4452
|
return new SeamHttpRequest(this, {
|
|
4365
4453
|
pathname: "/thermostats/schedules/update",
|
|
4366
|
-
method: "
|
|
4454
|
+
method: "PATCH",
|
|
4367
4455
|
body,
|
|
4368
4456
|
responseKey: void 0
|
|
4369
4457
|
});
|
|
4370
4458
|
}
|
|
4371
4459
|
};
|
|
4460
|
+
_SeamHttpThermostatsSchedules.ltsVersion = seamApiLtsVersion;
|
|
4461
|
+
var SeamHttpThermostatsSchedules = _SeamHttpThermostatsSchedules;
|
|
4372
4462
|
|
|
4373
|
-
// src/lib/seam/connect/routes/thermostats
|
|
4374
|
-
var
|
|
4463
|
+
// src/lib/seam/connect/routes/thermostats/simulate/simulate.ts
|
|
4464
|
+
var _SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
4375
4465
|
constructor(apiKeyOrOptions = {}) {
|
|
4466
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4376
4467
|
const options = parseOptions(apiKeyOrOptions);
|
|
4377
4468
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4378
4469
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4403,7 +4494,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4403
4494
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4404
4495
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4405
4496
|
throw new SeamHttpInvalidOptionsError(
|
|
4406
|
-
"The client option cannot be used with
|
|
4497
|
+
"The client option cannot be used with SeamHttpThermostatsSimulate.fromPublishableKey"
|
|
4407
4498
|
);
|
|
4408
4499
|
}
|
|
4409
4500
|
const client = createClient(clientOptions);
|
|
@@ -4453,7 +4544,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4453
4544
|
hvacModeAdjusted(body) {
|
|
4454
4545
|
return new SeamHttpRequest(this, {
|
|
4455
4546
|
pathname: "/thermostats/simulate/hvac_mode_adjusted",
|
|
4456
|
-
method: "
|
|
4547
|
+
method: "POST",
|
|
4457
4548
|
body,
|
|
4458
4549
|
responseKey: void 0
|
|
4459
4550
|
});
|
|
@@ -4461,16 +4552,19 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4461
4552
|
temperatureReached(body) {
|
|
4462
4553
|
return new SeamHttpRequest(this, {
|
|
4463
4554
|
pathname: "/thermostats/simulate/temperature_reached",
|
|
4464
|
-
method: "
|
|
4555
|
+
method: "POST",
|
|
4465
4556
|
body,
|
|
4466
4557
|
responseKey: void 0
|
|
4467
4558
|
});
|
|
4468
4559
|
}
|
|
4469
4560
|
};
|
|
4561
|
+
_SeamHttpThermostatsSimulate.ltsVersion = seamApiLtsVersion;
|
|
4562
|
+
var SeamHttpThermostatsSimulate = _SeamHttpThermostatsSimulate;
|
|
4470
4563
|
|
|
4471
|
-
// src/lib/seam/connect/routes/thermostats.ts
|
|
4472
|
-
var
|
|
4564
|
+
// src/lib/seam/connect/routes/thermostats/thermostats.ts
|
|
4565
|
+
var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
4473
4566
|
constructor(apiKeyOrOptions = {}) {
|
|
4567
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4474
4568
|
const options = parseOptions(apiKeyOrOptions);
|
|
4475
4569
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4476
4570
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4501,7 +4595,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4501
4595
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4502
4596
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4503
4597
|
throw new SeamHttpInvalidOptionsError(
|
|
4504
|
-
"The client option cannot be used with
|
|
4598
|
+
"The client option cannot be used with SeamHttpThermostats.fromPublishableKey"
|
|
4505
4599
|
);
|
|
4506
4600
|
}
|
|
4507
4601
|
const client = createClient(clientOptions);
|
|
@@ -4548,22 +4642,22 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4548
4642
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4549
4643
|
await clientSessions.get();
|
|
4550
4644
|
}
|
|
4551
|
-
get schedules() {
|
|
4552
|
-
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults);
|
|
4553
|
-
}
|
|
4554
|
-
get simulate() {
|
|
4555
|
-
return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
|
|
4556
|
-
}
|
|
4557
4645
|
get dailyPrograms() {
|
|
4558
4646
|
return SeamHttpThermostatsDailyPrograms.fromClient(
|
|
4559
4647
|
this.client,
|
|
4560
4648
|
this.defaults
|
|
4561
4649
|
);
|
|
4562
4650
|
}
|
|
4651
|
+
get schedules() {
|
|
4652
|
+
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults);
|
|
4653
|
+
}
|
|
4654
|
+
get simulate() {
|
|
4655
|
+
return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
|
|
4656
|
+
}
|
|
4563
4657
|
activateClimatePreset(body, options = {}) {
|
|
4564
4658
|
return new SeamHttpRequest(this, {
|
|
4565
4659
|
pathname: "/thermostats/activate_climate_preset",
|
|
4566
|
-
method: "
|
|
4660
|
+
method: "POST",
|
|
4567
4661
|
body,
|
|
4568
4662
|
responseKey: "action_attempt",
|
|
4569
4663
|
options
|
|
@@ -4572,7 +4666,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4572
4666
|
cool(body, options = {}) {
|
|
4573
4667
|
return new SeamHttpRequest(this, {
|
|
4574
4668
|
pathname: "/thermostats/cool",
|
|
4575
|
-
method: "
|
|
4669
|
+
method: "POST",
|
|
4576
4670
|
body,
|
|
4577
4671
|
responseKey: "action_attempt",
|
|
4578
4672
|
options
|
|
@@ -4581,7 +4675,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4581
4675
|
createClimatePreset(body) {
|
|
4582
4676
|
return new SeamHttpRequest(this, {
|
|
4583
4677
|
pathname: "/thermostats/create_climate_preset",
|
|
4584
|
-
method: "
|
|
4678
|
+
method: "POST",
|
|
4585
4679
|
body,
|
|
4586
4680
|
responseKey: void 0
|
|
4587
4681
|
});
|
|
@@ -4589,7 +4683,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4589
4683
|
deleteClimatePreset(body) {
|
|
4590
4684
|
return new SeamHttpRequest(this, {
|
|
4591
4685
|
pathname: "/thermostats/delete_climate_preset",
|
|
4592
|
-
method: "
|
|
4686
|
+
method: "POST",
|
|
4593
4687
|
body,
|
|
4594
4688
|
responseKey: void 0
|
|
4595
4689
|
});
|
|
@@ -4597,7 +4691,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4597
4691
|
heat(body, options = {}) {
|
|
4598
4692
|
return new SeamHttpRequest(this, {
|
|
4599
4693
|
pathname: "/thermostats/heat",
|
|
4600
|
-
method: "
|
|
4694
|
+
method: "POST",
|
|
4601
4695
|
body,
|
|
4602
4696
|
responseKey: "action_attempt",
|
|
4603
4697
|
options
|
|
@@ -4606,24 +4700,24 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4606
4700
|
heatCool(body, options = {}) {
|
|
4607
4701
|
return new SeamHttpRequest(this, {
|
|
4608
4702
|
pathname: "/thermostats/heat_cool",
|
|
4609
|
-
method: "
|
|
4703
|
+
method: "POST",
|
|
4610
4704
|
body,
|
|
4611
4705
|
responseKey: "action_attempt",
|
|
4612
4706
|
options
|
|
4613
4707
|
});
|
|
4614
4708
|
}
|
|
4615
|
-
list(
|
|
4709
|
+
list(params) {
|
|
4616
4710
|
return new SeamHttpRequest(this, {
|
|
4617
4711
|
pathname: "/thermostats/list",
|
|
4618
|
-
method: "
|
|
4619
|
-
body,
|
|
4712
|
+
method: "POST",
|
|
4713
|
+
body: params,
|
|
4620
4714
|
responseKey: "devices"
|
|
4621
4715
|
});
|
|
4622
4716
|
}
|
|
4623
4717
|
off(body, options = {}) {
|
|
4624
4718
|
return new SeamHttpRequest(this, {
|
|
4625
4719
|
pathname: "/thermostats/off",
|
|
4626
|
-
method: "
|
|
4720
|
+
method: "POST",
|
|
4627
4721
|
body,
|
|
4628
4722
|
responseKey: "action_attempt",
|
|
4629
4723
|
options
|
|
@@ -4632,7 +4726,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4632
4726
|
setFallbackClimatePreset(body) {
|
|
4633
4727
|
return new SeamHttpRequest(this, {
|
|
4634
4728
|
pathname: "/thermostats/set_fallback_climate_preset",
|
|
4635
|
-
method: "
|
|
4729
|
+
method: "POST",
|
|
4636
4730
|
body,
|
|
4637
4731
|
responseKey: void 0
|
|
4638
4732
|
});
|
|
@@ -4640,7 +4734,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4640
4734
|
setFanMode(body, options = {}) {
|
|
4641
4735
|
return new SeamHttpRequest(this, {
|
|
4642
4736
|
pathname: "/thermostats/set_fan_mode",
|
|
4643
|
-
method: "
|
|
4737
|
+
method: "POST",
|
|
4644
4738
|
body,
|
|
4645
4739
|
responseKey: "action_attempt",
|
|
4646
4740
|
options
|
|
@@ -4649,7 +4743,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4649
4743
|
setHvacMode(body, options = {}) {
|
|
4650
4744
|
return new SeamHttpRequest(this, {
|
|
4651
4745
|
pathname: "/thermostats/set_hvac_mode",
|
|
4652
|
-
method: "
|
|
4746
|
+
method: "POST",
|
|
4653
4747
|
body,
|
|
4654
4748
|
responseKey: "action_attempt",
|
|
4655
4749
|
options
|
|
@@ -4658,7 +4752,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4658
4752
|
setTemperatureThreshold(body) {
|
|
4659
4753
|
return new SeamHttpRequest(this, {
|
|
4660
4754
|
pathname: "/thermostats/set_temperature_threshold",
|
|
4661
|
-
method: "
|
|
4755
|
+
method: "PATCH",
|
|
4662
4756
|
body,
|
|
4663
4757
|
responseKey: void 0
|
|
4664
4758
|
});
|
|
@@ -4666,7 +4760,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4666
4760
|
updateClimatePreset(body) {
|
|
4667
4761
|
return new SeamHttpRequest(this, {
|
|
4668
4762
|
pathname: "/thermostats/update_climate_preset",
|
|
4669
|
-
method: "
|
|
4763
|
+
method: "PATCH",
|
|
4670
4764
|
body,
|
|
4671
4765
|
responseKey: void 0
|
|
4672
4766
|
});
|
|
@@ -4674,99 +4768,20 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4674
4768
|
updateWeeklyProgram(body, options = {}) {
|
|
4675
4769
|
return new SeamHttpRequest(this, {
|
|
4676
4770
|
pathname: "/thermostats/update_weekly_program",
|
|
4677
|
-
method: "
|
|
4771
|
+
method: "POST",
|
|
4678
4772
|
body,
|
|
4679
4773
|
responseKey: "action_attempt",
|
|
4680
4774
|
options
|
|
4681
4775
|
});
|
|
4682
4776
|
}
|
|
4683
4777
|
};
|
|
4778
|
+
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
4779
|
+
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
4684
4780
|
|
|
4685
|
-
// src/lib/seam/connect/routes/
|
|
4686
|
-
var
|
|
4687
|
-
constructor(apiKeyOrOptions = {}) {
|
|
4688
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
4689
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
4690
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4691
|
-
}
|
|
4692
|
-
static fromClient(client, options = {}) {
|
|
4693
|
-
const constructorOptions = { ...options, client };
|
|
4694
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4695
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4696
|
-
}
|
|
4697
|
-
return new _SeamHttpUnstablePartner(constructorOptions);
|
|
4698
|
-
}
|
|
4699
|
-
static fromApiKey(apiKey, options = {}) {
|
|
4700
|
-
const constructorOptions = { ...options, apiKey };
|
|
4701
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4702
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4703
|
-
}
|
|
4704
|
-
return new _SeamHttpUnstablePartner(constructorOptions);
|
|
4705
|
-
}
|
|
4706
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4707
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
4708
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4709
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4710
|
-
}
|
|
4711
|
-
return new _SeamHttpUnstablePartner(constructorOptions);
|
|
4712
|
-
}
|
|
4713
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4714
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4715
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4716
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4717
|
-
throw new SeamHttpInvalidOptionsError(
|
|
4718
|
-
"The client option cannot be used with SeamHttp.fromPublishableKey"
|
|
4719
|
-
);
|
|
4720
|
-
}
|
|
4721
|
-
const client = createClient(clientOptions);
|
|
4722
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
4723
|
-
const { token } = await clientSessions.getOrCreate({
|
|
4724
|
-
user_identifier_key: userIdentifierKey
|
|
4725
|
-
});
|
|
4726
|
-
return _SeamHttpUnstablePartner.fromClientSessionToken(token, options);
|
|
4727
|
-
}
|
|
4728
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4729
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
4730
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
4731
|
-
throw new SeamHttpInvalidOptionsError(
|
|
4732
|
-
"Missing consoleSessionToken or workspaceId"
|
|
4733
|
-
);
|
|
4734
|
-
}
|
|
4735
|
-
return new _SeamHttpUnstablePartner(constructorOptions);
|
|
4736
|
-
}
|
|
4737
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4738
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
4739
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
4740
|
-
throw new SeamHttpInvalidOptionsError(
|
|
4741
|
-
"Missing personalAccessToken or workspaceId"
|
|
4742
|
-
);
|
|
4743
|
-
}
|
|
4744
|
-
return new _SeamHttpUnstablePartner(constructorOptions);
|
|
4745
|
-
}
|
|
4746
|
-
createPaginator(request) {
|
|
4747
|
-
return new SeamPaginator(this, request);
|
|
4748
|
-
}
|
|
4749
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
4750
|
-
const { headers } = this.client.defaults;
|
|
4751
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
4752
|
-
clientSessionToken
|
|
4753
|
-
});
|
|
4754
|
-
for (const key of Object.keys(authHeaders)) {
|
|
4755
|
-
if (headers[key] == null) {
|
|
4756
|
-
throw new Error(
|
|
4757
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
4758
|
-
);
|
|
4759
|
-
}
|
|
4760
|
-
}
|
|
4761
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
4762
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4763
|
-
await clientSessions.get();
|
|
4764
|
-
}
|
|
4765
|
-
};
|
|
4766
|
-
|
|
4767
|
-
// src/lib/seam/connect/routes/user-identities-enrollment-automations.ts
|
|
4768
|
-
var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
4781
|
+
// src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts
|
|
4782
|
+
var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
4769
4783
|
constructor(apiKeyOrOptions = {}) {
|
|
4784
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4770
4785
|
const options = parseOptions(apiKeyOrOptions);
|
|
4771
4786
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4772
4787
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4797,7 +4812,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
|
|
|
4797
4812
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4798
4813
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4799
4814
|
throw new SeamHttpInvalidOptionsError(
|
|
4800
|
-
"The client option cannot be used with
|
|
4815
|
+
"The client option cannot be used with SeamHttpUserIdentitiesEnrollmentAutomations.fromPublishableKey"
|
|
4801
4816
|
);
|
|
4802
4817
|
}
|
|
4803
4818
|
const client = createClient(clientOptions);
|
|
@@ -4847,43 +4862,46 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
|
|
|
4847
4862
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4848
4863
|
await clientSessions.get();
|
|
4849
4864
|
}
|
|
4850
|
-
delete(
|
|
4865
|
+
delete(params) {
|
|
4851
4866
|
return new SeamHttpRequest(this, {
|
|
4852
4867
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
4853
|
-
method: "
|
|
4854
|
-
body,
|
|
4868
|
+
method: "POST",
|
|
4869
|
+
body: params,
|
|
4855
4870
|
responseKey: void 0
|
|
4856
4871
|
});
|
|
4857
4872
|
}
|
|
4858
|
-
get(
|
|
4873
|
+
get(params) {
|
|
4859
4874
|
return new SeamHttpRequest(this, {
|
|
4860
4875
|
pathname: "/user_identities/enrollment_automations/get",
|
|
4861
|
-
method: "
|
|
4862
|
-
body,
|
|
4876
|
+
method: "POST",
|
|
4877
|
+
body: params,
|
|
4863
4878
|
responseKey: "enrollment_automation"
|
|
4864
4879
|
});
|
|
4865
4880
|
}
|
|
4866
4881
|
launch(body) {
|
|
4867
4882
|
return new SeamHttpRequest(this, {
|
|
4868
4883
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
4869
|
-
method: "
|
|
4884
|
+
method: "POST",
|
|
4870
4885
|
body,
|
|
4871
4886
|
responseKey: "enrollment_automation"
|
|
4872
4887
|
});
|
|
4873
4888
|
}
|
|
4874
|
-
list(
|
|
4889
|
+
list(params) {
|
|
4875
4890
|
return new SeamHttpRequest(this, {
|
|
4876
4891
|
pathname: "/user_identities/enrollment_automations/list",
|
|
4877
|
-
method: "
|
|
4878
|
-
body,
|
|
4892
|
+
method: "POST",
|
|
4893
|
+
body: params,
|
|
4879
4894
|
responseKey: "enrollment_automations"
|
|
4880
4895
|
});
|
|
4881
4896
|
}
|
|
4882
4897
|
};
|
|
4898
|
+
_SeamHttpUserIdentitiesEnrollmentAutomations.ltsVersion = seamApiLtsVersion;
|
|
4899
|
+
var SeamHttpUserIdentitiesEnrollmentAutomations = _SeamHttpUserIdentitiesEnrollmentAutomations;
|
|
4883
4900
|
|
|
4884
|
-
// src/lib/seam/connect/routes/user-identities.ts
|
|
4885
|
-
var
|
|
4901
|
+
// src/lib/seam/connect/routes/user-identities/user-identities.ts
|
|
4902
|
+
var _SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
4886
4903
|
constructor(apiKeyOrOptions = {}) {
|
|
4904
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4887
4905
|
const options = parseOptions(apiKeyOrOptions);
|
|
4888
4906
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4889
4907
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4914,7 +4932,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4914
4932
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4915
4933
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4916
4934
|
throw new SeamHttpInvalidOptionsError(
|
|
4917
|
-
"The client option cannot be used with
|
|
4935
|
+
"The client option cannot be used with SeamHttpUserIdentities.fromPublishableKey"
|
|
4918
4936
|
);
|
|
4919
4937
|
}
|
|
4920
4938
|
const client = createClient(clientOptions);
|
|
@@ -4970,7 +4988,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4970
4988
|
addAcsUser(body) {
|
|
4971
4989
|
return new SeamHttpRequest(this, {
|
|
4972
4990
|
pathname: "/user_identities/add_acs_user",
|
|
4973
|
-
method: "
|
|
4991
|
+
method: "PUT",
|
|
4974
4992
|
body,
|
|
4975
4993
|
responseKey: void 0
|
|
4976
4994
|
});
|
|
@@ -4978,104 +4996,107 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4978
4996
|
create(body) {
|
|
4979
4997
|
return new SeamHttpRequest(this, {
|
|
4980
4998
|
pathname: "/user_identities/create",
|
|
4981
|
-
method: "
|
|
4999
|
+
method: "POST",
|
|
4982
5000
|
body,
|
|
4983
5001
|
responseKey: "user_identity"
|
|
4984
5002
|
});
|
|
4985
5003
|
}
|
|
4986
|
-
delete(
|
|
5004
|
+
delete(params) {
|
|
4987
5005
|
return new SeamHttpRequest(this, {
|
|
4988
5006
|
pathname: "/user_identities/delete",
|
|
4989
|
-
method: "
|
|
4990
|
-
body,
|
|
5007
|
+
method: "POST",
|
|
5008
|
+
body: params,
|
|
4991
5009
|
responseKey: void 0
|
|
4992
5010
|
});
|
|
4993
5011
|
}
|
|
4994
5012
|
generateInstantKey(body) {
|
|
4995
5013
|
return new SeamHttpRequest(this, {
|
|
4996
5014
|
pathname: "/user_identities/generate_instant_key",
|
|
4997
|
-
method: "
|
|
5015
|
+
method: "POST",
|
|
4998
5016
|
body,
|
|
4999
5017
|
responseKey: "instant_key"
|
|
5000
5018
|
});
|
|
5001
5019
|
}
|
|
5002
|
-
get(
|
|
5020
|
+
get(params) {
|
|
5003
5021
|
return new SeamHttpRequest(this, {
|
|
5004
5022
|
pathname: "/user_identities/get",
|
|
5005
|
-
method: "
|
|
5006
|
-
body,
|
|
5023
|
+
method: "POST",
|
|
5024
|
+
body: params,
|
|
5007
5025
|
responseKey: "user_identity"
|
|
5008
5026
|
});
|
|
5009
5027
|
}
|
|
5010
5028
|
grantAccessToDevice(body) {
|
|
5011
5029
|
return new SeamHttpRequest(this, {
|
|
5012
5030
|
pathname: "/user_identities/grant_access_to_device",
|
|
5013
|
-
method: "
|
|
5031
|
+
method: "PUT",
|
|
5014
5032
|
body,
|
|
5015
5033
|
responseKey: void 0
|
|
5016
5034
|
});
|
|
5017
5035
|
}
|
|
5018
|
-
list(
|
|
5036
|
+
list(params) {
|
|
5019
5037
|
return new SeamHttpRequest(this, {
|
|
5020
5038
|
pathname: "/user_identities/list",
|
|
5021
|
-
method: "
|
|
5022
|
-
body,
|
|
5039
|
+
method: "POST",
|
|
5040
|
+
body: params,
|
|
5023
5041
|
responseKey: "user_identities"
|
|
5024
5042
|
});
|
|
5025
5043
|
}
|
|
5026
|
-
listAccessibleDevices(
|
|
5044
|
+
listAccessibleDevices(params) {
|
|
5027
5045
|
return new SeamHttpRequest(this, {
|
|
5028
5046
|
pathname: "/user_identities/list_accessible_devices",
|
|
5029
|
-
method: "
|
|
5030
|
-
body,
|
|
5047
|
+
method: "POST",
|
|
5048
|
+
body: params,
|
|
5031
5049
|
responseKey: "devices"
|
|
5032
5050
|
});
|
|
5033
5051
|
}
|
|
5034
|
-
listAcsSystems(
|
|
5052
|
+
listAcsSystems(params) {
|
|
5035
5053
|
return new SeamHttpRequest(this, {
|
|
5036
5054
|
pathname: "/user_identities/list_acs_systems",
|
|
5037
|
-
method: "
|
|
5038
|
-
body,
|
|
5055
|
+
method: "POST",
|
|
5056
|
+
body: params,
|
|
5039
5057
|
responseKey: "acs_systems"
|
|
5040
5058
|
});
|
|
5041
5059
|
}
|
|
5042
|
-
listAcsUsers(
|
|
5060
|
+
listAcsUsers(params) {
|
|
5043
5061
|
return new SeamHttpRequest(this, {
|
|
5044
5062
|
pathname: "/user_identities/list_acs_users",
|
|
5045
|
-
method: "
|
|
5046
|
-
body,
|
|
5063
|
+
method: "POST",
|
|
5064
|
+
body: params,
|
|
5047
5065
|
responseKey: "acs_users"
|
|
5048
5066
|
});
|
|
5049
5067
|
}
|
|
5050
|
-
removeAcsUser(
|
|
5068
|
+
removeAcsUser(params) {
|
|
5051
5069
|
return new SeamHttpRequest(this, {
|
|
5052
5070
|
pathname: "/user_identities/remove_acs_user",
|
|
5053
|
-
method: "
|
|
5054
|
-
body,
|
|
5071
|
+
method: "POST",
|
|
5072
|
+
body: params,
|
|
5055
5073
|
responseKey: void 0
|
|
5056
5074
|
});
|
|
5057
5075
|
}
|
|
5058
|
-
revokeAccessToDevice(
|
|
5076
|
+
revokeAccessToDevice(params) {
|
|
5059
5077
|
return new SeamHttpRequest(this, {
|
|
5060
5078
|
pathname: "/user_identities/revoke_access_to_device",
|
|
5061
|
-
method: "
|
|
5062
|
-
body,
|
|
5079
|
+
method: "POST",
|
|
5080
|
+
body: params,
|
|
5063
5081
|
responseKey: void 0
|
|
5064
5082
|
});
|
|
5065
5083
|
}
|
|
5066
5084
|
update(body) {
|
|
5067
5085
|
return new SeamHttpRequest(this, {
|
|
5068
5086
|
pathname: "/user_identities/update",
|
|
5069
|
-
method: "
|
|
5087
|
+
method: "PATCH",
|
|
5070
5088
|
body,
|
|
5071
5089
|
responseKey: void 0
|
|
5072
5090
|
});
|
|
5073
5091
|
}
|
|
5074
5092
|
};
|
|
5093
|
+
_SeamHttpUserIdentities.ltsVersion = seamApiLtsVersion;
|
|
5094
|
+
var SeamHttpUserIdentities = _SeamHttpUserIdentities;
|
|
5075
5095
|
|
|
5076
|
-
// src/lib/seam/connect/routes/webhooks.ts
|
|
5077
|
-
var
|
|
5096
|
+
// src/lib/seam/connect/routes/webhooks/webhooks.ts
|
|
5097
|
+
var _SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
5078
5098
|
constructor(apiKeyOrOptions = {}) {
|
|
5099
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5079
5100
|
const options = parseOptions(apiKeyOrOptions);
|
|
5080
5101
|
this.client = "client" in options ? options.client : createClient(options);
|
|
5081
5102
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -5106,7 +5127,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
5106
5127
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5107
5128
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5108
5129
|
throw new SeamHttpInvalidOptionsError(
|
|
5109
|
-
"The client option cannot be used with
|
|
5130
|
+
"The client option cannot be used with SeamHttpWebhooks.fromPublishableKey"
|
|
5110
5131
|
);
|
|
5111
5132
|
}
|
|
5112
5133
|
const client = createClient(clientOptions);
|
|
@@ -5156,48 +5177,51 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
5156
5177
|
create(body) {
|
|
5157
5178
|
return new SeamHttpRequest(this, {
|
|
5158
5179
|
pathname: "/webhooks/create",
|
|
5159
|
-
method: "
|
|
5180
|
+
method: "POST",
|
|
5160
5181
|
body,
|
|
5161
5182
|
responseKey: "webhook"
|
|
5162
5183
|
});
|
|
5163
5184
|
}
|
|
5164
|
-
delete(
|
|
5185
|
+
delete(params) {
|
|
5165
5186
|
return new SeamHttpRequest(this, {
|
|
5166
5187
|
pathname: "/webhooks/delete",
|
|
5167
|
-
method: "
|
|
5168
|
-
body,
|
|
5188
|
+
method: "POST",
|
|
5189
|
+
body: params,
|
|
5169
5190
|
responseKey: void 0
|
|
5170
5191
|
});
|
|
5171
5192
|
}
|
|
5172
|
-
get(
|
|
5193
|
+
get(params) {
|
|
5173
5194
|
return new SeamHttpRequest(this, {
|
|
5174
5195
|
pathname: "/webhooks/get",
|
|
5175
|
-
method: "
|
|
5176
|
-
body,
|
|
5196
|
+
method: "POST",
|
|
5197
|
+
body: params,
|
|
5177
5198
|
responseKey: "webhook"
|
|
5178
5199
|
});
|
|
5179
5200
|
}
|
|
5180
|
-
list(
|
|
5201
|
+
list(params) {
|
|
5181
5202
|
return new SeamHttpRequest(this, {
|
|
5182
5203
|
pathname: "/webhooks/list",
|
|
5183
|
-
method: "
|
|
5184
|
-
|
|
5204
|
+
method: "GET",
|
|
5205
|
+
params,
|
|
5185
5206
|
responseKey: "webhooks"
|
|
5186
5207
|
});
|
|
5187
5208
|
}
|
|
5188
5209
|
update(body) {
|
|
5189
5210
|
return new SeamHttpRequest(this, {
|
|
5190
5211
|
pathname: "/webhooks/update",
|
|
5191
|
-
method: "
|
|
5212
|
+
method: "PUT",
|
|
5192
5213
|
body,
|
|
5193
5214
|
responseKey: void 0
|
|
5194
5215
|
});
|
|
5195
5216
|
}
|
|
5196
5217
|
};
|
|
5218
|
+
_SeamHttpWebhooks.ltsVersion = seamApiLtsVersion;
|
|
5219
|
+
var SeamHttpWebhooks = _SeamHttpWebhooks;
|
|
5197
5220
|
|
|
5198
|
-
// src/lib/seam/connect/routes/workspaces.ts
|
|
5199
|
-
var
|
|
5221
|
+
// src/lib/seam/connect/routes/workspaces/workspaces.ts
|
|
5222
|
+
var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
5200
5223
|
constructor(apiKeyOrOptions = {}) {
|
|
5224
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5201
5225
|
const options = parseOptions(apiKeyOrOptions);
|
|
5202
5226
|
this.client = "client" in options ? options.client : createClient(options);
|
|
5203
5227
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -5228,7 +5252,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5228
5252
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5229
5253
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5230
5254
|
throw new SeamHttpInvalidOptionsError(
|
|
5231
|
-
"The client option cannot be used with
|
|
5255
|
+
"The client option cannot be used with SeamHttpWorkspaces.fromPublishableKey"
|
|
5232
5256
|
);
|
|
5233
5257
|
}
|
|
5234
5258
|
const client = createClient(clientOptions);
|
|
@@ -5278,31 +5302,31 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5278
5302
|
create(body) {
|
|
5279
5303
|
return new SeamHttpRequest(this, {
|
|
5280
5304
|
pathname: "/workspaces/create",
|
|
5281
|
-
method: "
|
|
5305
|
+
method: "POST",
|
|
5282
5306
|
body,
|
|
5283
5307
|
responseKey: "workspace"
|
|
5284
5308
|
});
|
|
5285
5309
|
}
|
|
5286
|
-
get(
|
|
5310
|
+
get(params) {
|
|
5287
5311
|
return new SeamHttpRequest(this, {
|
|
5288
5312
|
pathname: "/workspaces/get",
|
|
5289
|
-
method: "
|
|
5290
|
-
|
|
5313
|
+
method: "GET",
|
|
5314
|
+
params,
|
|
5291
5315
|
responseKey: "workspace"
|
|
5292
5316
|
});
|
|
5293
5317
|
}
|
|
5294
|
-
list(
|
|
5318
|
+
list(params) {
|
|
5295
5319
|
return new SeamHttpRequest(this, {
|
|
5296
5320
|
pathname: "/workspaces/list",
|
|
5297
|
-
method: "
|
|
5298
|
-
|
|
5321
|
+
method: "GET",
|
|
5322
|
+
params,
|
|
5299
5323
|
responseKey: "workspaces"
|
|
5300
5324
|
});
|
|
5301
5325
|
}
|
|
5302
5326
|
resetSandbox(body, options = {}) {
|
|
5303
5327
|
return new SeamHttpRequest(this, {
|
|
5304
5328
|
pathname: "/workspaces/reset_sandbox",
|
|
5305
|
-
method: "
|
|
5329
|
+
method: "POST",
|
|
5306
5330
|
body,
|
|
5307
5331
|
responseKey: "action_attempt",
|
|
5308
5332
|
options
|
|
@@ -5311,14 +5335,16 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5311
5335
|
update(body) {
|
|
5312
5336
|
return new SeamHttpRequest(this, {
|
|
5313
5337
|
pathname: "/workspaces/update",
|
|
5314
|
-
method: "
|
|
5338
|
+
method: "PATCH",
|
|
5315
5339
|
body,
|
|
5316
5340
|
responseKey: void 0
|
|
5317
5341
|
});
|
|
5318
5342
|
}
|
|
5319
5343
|
};
|
|
5344
|
+
_SeamHttpWorkspaces.ltsVersion = seamApiLtsVersion;
|
|
5345
|
+
var SeamHttpWorkspaces = _SeamHttpWorkspaces;
|
|
5320
5346
|
|
|
5321
|
-
// src/lib/seam/connect/seam-http.ts
|
|
5347
|
+
// src/lib/seam/connect/routes/seam-http.ts
|
|
5322
5348
|
var _SeamHttp = class _SeamHttp {
|
|
5323
5349
|
constructor(apiKeyOrOptions = {}) {
|
|
5324
5350
|
this.ltsVersion = seamApiLtsVersion;
|
|
@@ -5417,12 +5443,12 @@ var _SeamHttp = class _SeamHttp {
|
|
|
5417
5443
|
get clientSessions() {
|
|
5418
5444
|
return SeamHttpClientSessions.fromClient(this.client, this.defaults);
|
|
5419
5445
|
}
|
|
5420
|
-
get connectedAccounts() {
|
|
5421
|
-
return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
|
|
5422
|
-
}
|
|
5423
5446
|
get connectWebviews() {
|
|
5424
5447
|
return SeamHttpConnectWebviews.fromClient(this.client, this.defaults);
|
|
5425
5448
|
}
|
|
5449
|
+
get connectedAccounts() {
|
|
5450
|
+
return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
|
|
5451
|
+
}
|
|
5426
5452
|
get devices() {
|
|
5427
5453
|
return SeamHttpDevices.fromClient(this.client, this.defaults);
|
|
5428
5454
|
}
|
|
@@ -5542,7 +5568,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
5542
5568
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
5543
5569
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
5544
5570
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
5545
|
-
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
5546
5571
|
exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
|
|
5547
5572
|
exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
|
|
5548
5573
|
exports.SeamHttpWebhooks = SeamHttpWebhooks;
|