@seamapi/http 1.34.0 → 1.35.1
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 +594 -561
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +238 -176
- 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} +15 -13
- package/lib/seam/connect/routes/{access-codes.js → access-codes/access-codes.js} +35 -32
- 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} +14 -8
- package/lib/seam/connect/routes/{access-grants.js → access-grants/access-grants.js} +30 -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} +13 -11
- 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} +15 -13
- 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} +14 -12
- package/lib/seam/connect/routes/{acs-users.js → acs/users/users.js} +34 -31
- 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} +12 -10
- package/lib/seam/connect/routes/{client-sessions.js → client-sessions/client-sessions.js} +24 -21
- 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} +12 -10
- 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} +9 -7
- package/lib/seam/connect/routes/{devices-simulate.js → devices/simulate/simulate.js} +18 -15
- 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} +9 -7
- package/lib/seam/connect/routes/{phones-simulate.js → phones/simulate/simulate.js} +16 -13
- 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} +22 -20
- package/lib/seam/connect/routes/{thermostats.js → thermostats/thermostats.js} +36 -33
- 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} +18 -16
- 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} +31 -28
- 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} +33 -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} +31 -22
- 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} +25 -18
- 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} +22 -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} +23 -17
- 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} +14 -10
- 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} +10 -8
- 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} +43 -40
- 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} +44 -35
- 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
976
|
revoke(body) {
|
|
976
977
|
return new SeamHttpRequest(this, {
|
|
977
978
|
pathname: "/client_sessions/revoke",
|
|
978
|
-
method: "
|
|
979
|
+
method: "POST",
|
|
979
980
|
body,
|
|
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
|
-
generateCode(
|
|
1317
|
+
generateCode(params) {
|
|
1308
1318
|
return new SeamHttpRequest(this, {
|
|
1309
1319
|
pathname: "/access_codes/generate_code",
|
|
1310
|
-
method: "
|
|
1311
|
-
body,
|
|
1320
|
+
method: "POST",
|
|
1321
|
+
body: params,
|
|
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,51 @@ 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
|
}
|
|
1490
|
+
update(body) {
|
|
1491
|
+
return new SeamHttpRequest(this, {
|
|
1492
|
+
pathname: "/access_grants/update",
|
|
1493
|
+
method: "PATCH",
|
|
1494
|
+
body,
|
|
1495
|
+
responseKey: void 0
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1477
1498
|
};
|
|
1499
|
+
_SeamHttpAccessGrants.ltsVersion = seamApiLtsVersion;
|
|
1500
|
+
var SeamHttpAccessGrants = _SeamHttpAccessGrants;
|
|
1478
1501
|
|
|
1479
|
-
// src/lib/seam/connect/routes/access-methods.ts
|
|
1480
|
-
var
|
|
1502
|
+
// src/lib/seam/connect/routes/access-methods/access-methods.ts
|
|
1503
|
+
var _SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
1481
1504
|
constructor(apiKeyOrOptions = {}) {
|
|
1505
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1482
1506
|
const options = parseOptions(apiKeyOrOptions);
|
|
1483
1507
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1484
1508
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1509,7 +1533,7 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1509
1533
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1510
1534
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1511
1535
|
throw new SeamHttpInvalidOptionsError(
|
|
1512
|
-
"The client option cannot be used with
|
|
1536
|
+
"The client option cannot be used with SeamHttpAccessMethods.fromPublishableKey"
|
|
1513
1537
|
);
|
|
1514
1538
|
}
|
|
1515
1539
|
const client = createClient(clientOptions);
|
|
@@ -1556,35 +1580,38 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1556
1580
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
1557
1581
|
await clientSessions.get();
|
|
1558
1582
|
}
|
|
1559
|
-
delete(
|
|
1583
|
+
delete(params) {
|
|
1560
1584
|
return new SeamHttpRequest(this, {
|
|
1561
1585
|
pathname: "/access_methods/delete",
|
|
1562
|
-
method: "
|
|
1563
|
-
body,
|
|
1586
|
+
method: "POST",
|
|
1587
|
+
body: params,
|
|
1564
1588
|
responseKey: void 0
|
|
1565
1589
|
});
|
|
1566
1590
|
}
|
|
1567
|
-
get(
|
|
1591
|
+
get(params) {
|
|
1568
1592
|
return new SeamHttpRequest(this, {
|
|
1569
1593
|
pathname: "/access_methods/get",
|
|
1570
|
-
method: "
|
|
1571
|
-
body,
|
|
1594
|
+
method: "POST",
|
|
1595
|
+
body: params,
|
|
1572
1596
|
responseKey: "access_method"
|
|
1573
1597
|
});
|
|
1574
1598
|
}
|
|
1575
|
-
list(
|
|
1599
|
+
list(params) {
|
|
1576
1600
|
return new SeamHttpRequest(this, {
|
|
1577
1601
|
pathname: "/access_methods/list",
|
|
1578
|
-
method: "
|
|
1579
|
-
body,
|
|
1602
|
+
method: "POST",
|
|
1603
|
+
body: params,
|
|
1580
1604
|
responseKey: "access_methods"
|
|
1581
1605
|
});
|
|
1582
1606
|
}
|
|
1583
1607
|
};
|
|
1608
|
+
_SeamHttpAccessMethods.ltsVersion = seamApiLtsVersion;
|
|
1609
|
+
var SeamHttpAccessMethods = _SeamHttpAccessMethods;
|
|
1584
1610
|
|
|
1585
|
-
// src/lib/seam/connect/routes/acs-access-groups.ts
|
|
1586
|
-
var
|
|
1611
|
+
// src/lib/seam/connect/routes/acs/access-groups/access-groups.ts
|
|
1612
|
+
var _SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
1587
1613
|
constructor(apiKeyOrOptions = {}) {
|
|
1614
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1588
1615
|
const options = parseOptions(apiKeyOrOptions);
|
|
1589
1616
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1590
1617
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1615,7 +1642,7 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
|
1615
1642
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1616
1643
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1617
1644
|
throw new SeamHttpInvalidOptionsError(
|
|
1618
|
-
"The client option cannot be used with
|
|
1645
|
+
"The client option cannot be used with SeamHttpAcsAccessGroups.fromPublishableKey"
|
|
1619
1646
|
);
|
|
1620
1647
|
}
|
|
1621
1648
|
const client = createClient(clientOptions);
|
|
@@ -1665,56 +1692,59 @@ var SeamHttpAcsAccessGroups = class _SeamHttpAcsAccessGroups {
|
|
|
1665
1692
|
addUser(body) {
|
|
1666
1693
|
return new SeamHttpRequest(this, {
|
|
1667
1694
|
pathname: "/acs/access_groups/add_user",
|
|
1668
|
-
method: "
|
|
1695
|
+
method: "PUT",
|
|
1669
1696
|
body,
|
|
1670
1697
|
responseKey: void 0
|
|
1671
1698
|
});
|
|
1672
1699
|
}
|
|
1673
|
-
get(
|
|
1700
|
+
get(params) {
|
|
1674
1701
|
return new SeamHttpRequest(this, {
|
|
1675
1702
|
pathname: "/acs/access_groups/get",
|
|
1676
|
-
method: "
|
|
1677
|
-
body,
|
|
1703
|
+
method: "POST",
|
|
1704
|
+
body: params,
|
|
1678
1705
|
responseKey: "acs_access_group"
|
|
1679
1706
|
});
|
|
1680
1707
|
}
|
|
1681
|
-
list(
|
|
1708
|
+
list(params) {
|
|
1682
1709
|
return new SeamHttpRequest(this, {
|
|
1683
1710
|
pathname: "/acs/access_groups/list",
|
|
1684
|
-
method: "
|
|
1685
|
-
body,
|
|
1711
|
+
method: "POST",
|
|
1712
|
+
body: params,
|
|
1686
1713
|
responseKey: "acs_access_groups"
|
|
1687
1714
|
});
|
|
1688
1715
|
}
|
|
1689
|
-
listAccessibleEntrances(
|
|
1716
|
+
listAccessibleEntrances(params) {
|
|
1690
1717
|
return new SeamHttpRequest(this, {
|
|
1691
1718
|
pathname: "/acs/access_groups/list_accessible_entrances",
|
|
1692
|
-
method: "
|
|
1693
|
-
body,
|
|
1719
|
+
method: "POST",
|
|
1720
|
+
body: params,
|
|
1694
1721
|
responseKey: "acs_entrances"
|
|
1695
1722
|
});
|
|
1696
1723
|
}
|
|
1697
|
-
listUsers(
|
|
1724
|
+
listUsers(params) {
|
|
1698
1725
|
return new SeamHttpRequest(this, {
|
|
1699
1726
|
pathname: "/acs/access_groups/list_users",
|
|
1700
|
-
method: "
|
|
1701
|
-
body,
|
|
1727
|
+
method: "POST",
|
|
1728
|
+
body: params,
|
|
1702
1729
|
responseKey: "acs_users"
|
|
1703
1730
|
});
|
|
1704
1731
|
}
|
|
1705
|
-
removeUser(
|
|
1732
|
+
removeUser(params) {
|
|
1706
1733
|
return new SeamHttpRequest(this, {
|
|
1707
1734
|
pathname: "/acs/access_groups/remove_user",
|
|
1708
|
-
method: "
|
|
1709
|
-
body,
|
|
1735
|
+
method: "POST",
|
|
1736
|
+
body: params,
|
|
1710
1737
|
responseKey: void 0
|
|
1711
1738
|
});
|
|
1712
1739
|
}
|
|
1713
1740
|
};
|
|
1741
|
+
_SeamHttpAcsAccessGroups.ltsVersion = seamApiLtsVersion;
|
|
1742
|
+
var SeamHttpAcsAccessGroups = _SeamHttpAcsAccessGroups;
|
|
1714
1743
|
|
|
1715
|
-
// src/lib/seam/connect/routes/acs
|
|
1716
|
-
var
|
|
1744
|
+
// src/lib/seam/connect/routes/acs/credentials/credentials.ts
|
|
1745
|
+
var _SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
1717
1746
|
constructor(apiKeyOrOptions = {}) {
|
|
1747
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1718
1748
|
const options = parseOptions(apiKeyOrOptions);
|
|
1719
1749
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1720
1750
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1745,7 +1775,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1745
1775
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1746
1776
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1747
1777
|
throw new SeamHttpInvalidOptionsError(
|
|
1748
|
-
"The client option cannot be used with
|
|
1778
|
+
"The client option cannot be used with SeamHttpAcsCredentials.fromPublishableKey"
|
|
1749
1779
|
);
|
|
1750
1780
|
}
|
|
1751
1781
|
const client = createClient(clientOptions);
|
|
@@ -1795,7 +1825,7 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1795
1825
|
assign(body) {
|
|
1796
1826
|
return new SeamHttpRequest(this, {
|
|
1797
1827
|
pathname: "/acs/credentials/assign",
|
|
1798
|
-
method: "
|
|
1828
|
+
method: "PATCH",
|
|
1799
1829
|
body,
|
|
1800
1830
|
responseKey: void 0
|
|
1801
1831
|
});
|
|
@@ -1803,47 +1833,47 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1803
1833
|
create(body) {
|
|
1804
1834
|
return new SeamHttpRequest(this, {
|
|
1805
1835
|
pathname: "/acs/credentials/create",
|
|
1806
|
-
method: "
|
|
1836
|
+
method: "POST",
|
|
1807
1837
|
body,
|
|
1808
1838
|
responseKey: "acs_credential"
|
|
1809
1839
|
});
|
|
1810
1840
|
}
|
|
1811
|
-
delete(
|
|
1841
|
+
delete(params) {
|
|
1812
1842
|
return new SeamHttpRequest(this, {
|
|
1813
1843
|
pathname: "/acs/credentials/delete",
|
|
1814
|
-
method: "
|
|
1815
|
-
body,
|
|
1844
|
+
method: "POST",
|
|
1845
|
+
body: params,
|
|
1816
1846
|
responseKey: void 0
|
|
1817
1847
|
});
|
|
1818
1848
|
}
|
|
1819
|
-
get(
|
|
1849
|
+
get(params) {
|
|
1820
1850
|
return new SeamHttpRequest(this, {
|
|
1821
1851
|
pathname: "/acs/credentials/get",
|
|
1822
|
-
method: "
|
|
1823
|
-
body,
|
|
1852
|
+
method: "POST",
|
|
1853
|
+
body: params,
|
|
1824
1854
|
responseKey: "acs_credential"
|
|
1825
1855
|
});
|
|
1826
1856
|
}
|
|
1827
|
-
list(
|
|
1857
|
+
list(params) {
|
|
1828
1858
|
return new SeamHttpRequest(this, {
|
|
1829
1859
|
pathname: "/acs/credentials/list",
|
|
1830
|
-
method: "
|
|
1831
|
-
|
|
1860
|
+
method: "GET",
|
|
1861
|
+
params,
|
|
1832
1862
|
responseKey: "acs_credentials"
|
|
1833
1863
|
});
|
|
1834
1864
|
}
|
|
1835
|
-
listAccessibleEntrances(
|
|
1865
|
+
listAccessibleEntrances(params) {
|
|
1836
1866
|
return new SeamHttpRequest(this, {
|
|
1837
1867
|
pathname: "/acs/credentials/list_accessible_entrances",
|
|
1838
|
-
method: "
|
|
1839
|
-
body,
|
|
1868
|
+
method: "POST",
|
|
1869
|
+
body: params,
|
|
1840
1870
|
responseKey: "acs_entrances"
|
|
1841
1871
|
});
|
|
1842
1872
|
}
|
|
1843
1873
|
unassign(body) {
|
|
1844
1874
|
return new SeamHttpRequest(this, {
|
|
1845
1875
|
pathname: "/acs/credentials/unassign",
|
|
1846
|
-
method: "
|
|
1876
|
+
method: "PATCH",
|
|
1847
1877
|
body,
|
|
1848
1878
|
responseKey: void 0
|
|
1849
1879
|
});
|
|
@@ -1851,16 +1881,19 @@ var SeamHttpAcsCredentials = class _SeamHttpAcsCredentials {
|
|
|
1851
1881
|
update(body) {
|
|
1852
1882
|
return new SeamHttpRequest(this, {
|
|
1853
1883
|
pathname: "/acs/credentials/update",
|
|
1854
|
-
method: "
|
|
1884
|
+
method: "PATCH",
|
|
1855
1885
|
body,
|
|
1856
1886
|
responseKey: void 0
|
|
1857
1887
|
});
|
|
1858
1888
|
}
|
|
1859
1889
|
};
|
|
1890
|
+
_SeamHttpAcsCredentials.ltsVersion = seamApiLtsVersion;
|
|
1891
|
+
var SeamHttpAcsCredentials = _SeamHttpAcsCredentials;
|
|
1860
1892
|
|
|
1861
|
-
// src/lib/seam/connect/routes/acs
|
|
1862
|
-
var
|
|
1893
|
+
// src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts
|
|
1894
|
+
var _SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
1863
1895
|
constructor(apiKeyOrOptions = {}) {
|
|
1896
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1864
1897
|
const options = parseOptions(apiKeyOrOptions);
|
|
1865
1898
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1866
1899
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -1891,7 +1924,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1891
1924
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
1892
1925
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
1893
1926
|
throw new SeamHttpInvalidOptionsError(
|
|
1894
|
-
"The client option cannot be used with
|
|
1927
|
+
"The client option cannot be used with SeamHttpAcsEncodersSimulate.fromPublishableKey"
|
|
1895
1928
|
);
|
|
1896
1929
|
}
|
|
1897
1930
|
const client = createClient(clientOptions);
|
|
@@ -1941,7 +1974,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1941
1974
|
nextCredentialEncodeWillFail(body) {
|
|
1942
1975
|
return new SeamHttpRequest(this, {
|
|
1943
1976
|
pathname: "/acs/encoders/simulate/next_credential_encode_will_fail",
|
|
1944
|
-
method: "
|
|
1977
|
+
method: "POST",
|
|
1945
1978
|
body,
|
|
1946
1979
|
responseKey: void 0
|
|
1947
1980
|
});
|
|
@@ -1949,7 +1982,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1949
1982
|
nextCredentialEncodeWillSucceed(body) {
|
|
1950
1983
|
return new SeamHttpRequest(this, {
|
|
1951
1984
|
pathname: "/acs/encoders/simulate/next_credential_encode_will_succeed",
|
|
1952
|
-
method: "
|
|
1985
|
+
method: "POST",
|
|
1953
1986
|
body,
|
|
1954
1987
|
responseKey: void 0
|
|
1955
1988
|
});
|
|
@@ -1957,7 +1990,7 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1957
1990
|
nextCredentialScanWillFail(body) {
|
|
1958
1991
|
return new SeamHttpRequest(this, {
|
|
1959
1992
|
pathname: "/acs/encoders/simulate/next_credential_scan_will_fail",
|
|
1960
|
-
method: "
|
|
1993
|
+
method: "POST",
|
|
1961
1994
|
body,
|
|
1962
1995
|
responseKey: void 0
|
|
1963
1996
|
});
|
|
@@ -1965,16 +1998,19 @@ var SeamHttpAcsEncodersSimulate = class _SeamHttpAcsEncodersSimulate {
|
|
|
1965
1998
|
nextCredentialScanWillSucceed(body) {
|
|
1966
1999
|
return new SeamHttpRequest(this, {
|
|
1967
2000
|
pathname: "/acs/encoders/simulate/next_credential_scan_will_succeed",
|
|
1968
|
-
method: "
|
|
2001
|
+
method: "POST",
|
|
1969
2002
|
body,
|
|
1970
2003
|
responseKey: void 0
|
|
1971
2004
|
});
|
|
1972
2005
|
}
|
|
1973
2006
|
};
|
|
2007
|
+
_SeamHttpAcsEncodersSimulate.ltsVersion = seamApiLtsVersion;
|
|
2008
|
+
var SeamHttpAcsEncodersSimulate = _SeamHttpAcsEncodersSimulate;
|
|
1974
2009
|
|
|
1975
|
-
// src/lib/seam/connect/routes/acs
|
|
1976
|
-
var
|
|
2010
|
+
// src/lib/seam/connect/routes/acs/encoders/encoders.ts
|
|
2011
|
+
var _SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
1977
2012
|
constructor(apiKeyOrOptions = {}) {
|
|
2013
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
1978
2014
|
const options = parseOptions(apiKeyOrOptions);
|
|
1979
2015
|
this.client = "client" in options ? options.client : createClient(options);
|
|
1980
2016
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2005,7 +2041,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2005
2041
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2006
2042
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2007
2043
|
throw new SeamHttpInvalidOptionsError(
|
|
2008
|
-
"The client option cannot be used with
|
|
2044
|
+
"The client option cannot be used with SeamHttpAcsEncoders.fromPublishableKey"
|
|
2009
2045
|
);
|
|
2010
2046
|
}
|
|
2011
2047
|
const client = createClient(clientOptions);
|
|
@@ -2058,7 +2094,7 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2058
2094
|
encodeAccessMethod(body, options = {}) {
|
|
2059
2095
|
return new SeamHttpRequest(this, {
|
|
2060
2096
|
pathname: "/acs/encoders/encode_access_method",
|
|
2061
|
-
method: "
|
|
2097
|
+
method: "POST",
|
|
2062
2098
|
body,
|
|
2063
2099
|
responseKey: "action_attempt",
|
|
2064
2100
|
options
|
|
@@ -2067,42 +2103,45 @@ var SeamHttpAcsEncoders = class _SeamHttpAcsEncoders {
|
|
|
2067
2103
|
encodeCredential(body, options = {}) {
|
|
2068
2104
|
return new SeamHttpRequest(this, {
|
|
2069
2105
|
pathname: "/acs/encoders/encode_credential",
|
|
2070
|
-
method: "
|
|
2106
|
+
method: "POST",
|
|
2071
2107
|
body,
|
|
2072
2108
|
responseKey: "action_attempt",
|
|
2073
2109
|
options
|
|
2074
2110
|
});
|
|
2075
2111
|
}
|
|
2076
|
-
get(
|
|
2112
|
+
get(params) {
|
|
2077
2113
|
return new SeamHttpRequest(this, {
|
|
2078
2114
|
pathname: "/acs/encoders/get",
|
|
2079
|
-
method: "
|
|
2080
|
-
body,
|
|
2115
|
+
method: "POST",
|
|
2116
|
+
body: params,
|
|
2081
2117
|
responseKey: "acs_encoder"
|
|
2082
2118
|
});
|
|
2083
2119
|
}
|
|
2084
|
-
list(
|
|
2120
|
+
list(params) {
|
|
2085
2121
|
return new SeamHttpRequest(this, {
|
|
2086
2122
|
pathname: "/acs/encoders/list",
|
|
2087
|
-
method: "
|
|
2088
|
-
|
|
2123
|
+
method: "GET",
|
|
2124
|
+
params,
|
|
2089
2125
|
responseKey: "acs_encoders"
|
|
2090
2126
|
});
|
|
2091
2127
|
}
|
|
2092
2128
|
scanCredential(body, options = {}) {
|
|
2093
2129
|
return new SeamHttpRequest(this, {
|
|
2094
2130
|
pathname: "/acs/encoders/scan_credential",
|
|
2095
|
-
method: "
|
|
2131
|
+
method: "POST",
|
|
2096
2132
|
body,
|
|
2097
2133
|
responseKey: "action_attempt",
|
|
2098
2134
|
options
|
|
2099
2135
|
});
|
|
2100
2136
|
}
|
|
2101
2137
|
};
|
|
2138
|
+
_SeamHttpAcsEncoders.ltsVersion = seamApiLtsVersion;
|
|
2139
|
+
var SeamHttpAcsEncoders = _SeamHttpAcsEncoders;
|
|
2102
2140
|
|
|
2103
|
-
// src/lib/seam/connect/routes/acs
|
|
2104
|
-
var
|
|
2141
|
+
// src/lib/seam/connect/routes/acs/entrances/entrances.ts
|
|
2142
|
+
var _SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
2105
2143
|
constructor(apiKeyOrOptions = {}) {
|
|
2144
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2106
2145
|
const options = parseOptions(apiKeyOrOptions);
|
|
2107
2146
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2108
2147
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2133,7 +2172,7 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
2133
2172
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2134
2173
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2135
2174
|
throw new SeamHttpInvalidOptionsError(
|
|
2136
|
-
"The client option cannot be used with
|
|
2175
|
+
"The client option cannot be used with SeamHttpAcsEntrances.fromPublishableKey"
|
|
2137
2176
|
);
|
|
2138
2177
|
}
|
|
2139
2178
|
const client = createClient(clientOptions);
|
|
@@ -2180,43 +2219,46 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
2180
2219
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2181
2220
|
await clientSessions.get();
|
|
2182
2221
|
}
|
|
2183
|
-
get(
|
|
2222
|
+
get(params) {
|
|
2184
2223
|
return new SeamHttpRequest(this, {
|
|
2185
2224
|
pathname: "/acs/entrances/get",
|
|
2186
|
-
method: "
|
|
2187
|
-
body,
|
|
2225
|
+
method: "POST",
|
|
2226
|
+
body: params,
|
|
2188
2227
|
responseKey: "acs_entrance"
|
|
2189
2228
|
});
|
|
2190
2229
|
}
|
|
2191
2230
|
grantAccess(body) {
|
|
2192
2231
|
return new SeamHttpRequest(this, {
|
|
2193
2232
|
pathname: "/acs/entrances/grant_access",
|
|
2194
|
-
method: "
|
|
2233
|
+
method: "POST",
|
|
2195
2234
|
body,
|
|
2196
2235
|
responseKey: void 0
|
|
2197
2236
|
});
|
|
2198
2237
|
}
|
|
2199
|
-
list(
|
|
2238
|
+
list(params) {
|
|
2200
2239
|
return new SeamHttpRequest(this, {
|
|
2201
2240
|
pathname: "/acs/entrances/list",
|
|
2202
|
-
method: "
|
|
2203
|
-
body,
|
|
2241
|
+
method: "POST",
|
|
2242
|
+
body: params,
|
|
2204
2243
|
responseKey: "acs_entrances"
|
|
2205
2244
|
});
|
|
2206
2245
|
}
|
|
2207
|
-
listCredentialsWithAccess(
|
|
2246
|
+
listCredentialsWithAccess(params) {
|
|
2208
2247
|
return new SeamHttpRequest(this, {
|
|
2209
2248
|
pathname: "/acs/entrances/list_credentials_with_access",
|
|
2210
|
-
method: "
|
|
2211
|
-
body,
|
|
2249
|
+
method: "POST",
|
|
2250
|
+
body: params,
|
|
2212
2251
|
responseKey: "acs_credentials"
|
|
2213
2252
|
});
|
|
2214
2253
|
}
|
|
2215
2254
|
};
|
|
2255
|
+
_SeamHttpAcsEntrances.ltsVersion = seamApiLtsVersion;
|
|
2256
|
+
var SeamHttpAcsEntrances = _SeamHttpAcsEntrances;
|
|
2216
2257
|
|
|
2217
|
-
// src/lib/seam/connect/routes/acs
|
|
2218
|
-
var
|
|
2258
|
+
// src/lib/seam/connect/routes/acs/systems/systems.ts
|
|
2259
|
+
var _SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
2219
2260
|
constructor(apiKeyOrOptions = {}) {
|
|
2261
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2220
2262
|
const options = parseOptions(apiKeyOrOptions);
|
|
2221
2263
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2222
2264
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2247,7 +2289,7 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2247
2289
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2248
2290
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2249
2291
|
throw new SeamHttpInvalidOptionsError(
|
|
2250
|
-
"The client option cannot be used with
|
|
2292
|
+
"The client option cannot be used with SeamHttpAcsSystems.fromPublishableKey"
|
|
2251
2293
|
);
|
|
2252
2294
|
}
|
|
2253
2295
|
const client = createClient(clientOptions);
|
|
@@ -2294,35 +2336,38 @@ var SeamHttpAcsSystems = class _SeamHttpAcsSystems {
|
|
|
2294
2336
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2295
2337
|
await clientSessions.get();
|
|
2296
2338
|
}
|
|
2297
|
-
get(
|
|
2339
|
+
get(params) {
|
|
2298
2340
|
return new SeamHttpRequest(this, {
|
|
2299
2341
|
pathname: "/acs/systems/get",
|
|
2300
|
-
method: "
|
|
2301
|
-
body,
|
|
2342
|
+
method: "POST",
|
|
2343
|
+
body: params,
|
|
2302
2344
|
responseKey: "acs_system"
|
|
2303
2345
|
});
|
|
2304
2346
|
}
|
|
2305
|
-
list(
|
|
2347
|
+
list(params) {
|
|
2306
2348
|
return new SeamHttpRequest(this, {
|
|
2307
2349
|
pathname: "/acs/systems/list",
|
|
2308
|
-
method: "
|
|
2309
|
-
body,
|
|
2350
|
+
method: "POST",
|
|
2351
|
+
body: params,
|
|
2310
2352
|
responseKey: "acs_systems"
|
|
2311
2353
|
});
|
|
2312
2354
|
}
|
|
2313
|
-
listCompatibleCredentialManagerAcsSystems(
|
|
2355
|
+
listCompatibleCredentialManagerAcsSystems(params) {
|
|
2314
2356
|
return new SeamHttpRequest(this, {
|
|
2315
2357
|
pathname: "/acs/systems/list_compatible_credential_manager_acs_systems",
|
|
2316
|
-
method: "
|
|
2317
|
-
body,
|
|
2358
|
+
method: "POST",
|
|
2359
|
+
body: params,
|
|
2318
2360
|
responseKey: "acs_systems"
|
|
2319
2361
|
});
|
|
2320
2362
|
}
|
|
2321
2363
|
};
|
|
2364
|
+
_SeamHttpAcsSystems.ltsVersion = seamApiLtsVersion;
|
|
2365
|
+
var SeamHttpAcsSystems = _SeamHttpAcsSystems;
|
|
2322
2366
|
|
|
2323
|
-
// src/lib/seam/connect/routes/acs
|
|
2324
|
-
var
|
|
2367
|
+
// src/lib/seam/connect/routes/acs/users/users.ts
|
|
2368
|
+
var _SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
2325
2369
|
constructor(apiKeyOrOptions = {}) {
|
|
2370
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2326
2371
|
const options = parseOptions(apiKeyOrOptions);
|
|
2327
2372
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2328
2373
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2353,7 +2398,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2353
2398
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2354
2399
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2355
2400
|
throw new SeamHttpInvalidOptionsError(
|
|
2356
|
-
"The client option cannot be used with
|
|
2401
|
+
"The client option cannot be used with SeamHttpAcsUsers.fromPublishableKey"
|
|
2357
2402
|
);
|
|
2358
2403
|
}
|
|
2359
2404
|
const client = createClient(clientOptions);
|
|
@@ -2403,7 +2448,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2403
2448
|
addToAccessGroup(body) {
|
|
2404
2449
|
return new SeamHttpRequest(this, {
|
|
2405
2450
|
pathname: "/acs/users/add_to_access_group",
|
|
2406
|
-
method: "
|
|
2451
|
+
method: "PUT",
|
|
2407
2452
|
body,
|
|
2408
2453
|
responseKey: void 0
|
|
2409
2454
|
});
|
|
@@ -2411,55 +2456,55 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2411
2456
|
create(body) {
|
|
2412
2457
|
return new SeamHttpRequest(this, {
|
|
2413
2458
|
pathname: "/acs/users/create",
|
|
2414
|
-
method: "
|
|
2459
|
+
method: "POST",
|
|
2415
2460
|
body,
|
|
2416
2461
|
responseKey: "acs_user"
|
|
2417
2462
|
});
|
|
2418
2463
|
}
|
|
2419
|
-
delete(
|
|
2464
|
+
delete(params) {
|
|
2420
2465
|
return new SeamHttpRequest(this, {
|
|
2421
2466
|
pathname: "/acs/users/delete",
|
|
2422
|
-
method: "
|
|
2423
|
-
body,
|
|
2467
|
+
method: "POST",
|
|
2468
|
+
body: params,
|
|
2424
2469
|
responseKey: void 0
|
|
2425
2470
|
});
|
|
2426
2471
|
}
|
|
2427
|
-
get(
|
|
2472
|
+
get(params) {
|
|
2428
2473
|
return new SeamHttpRequest(this, {
|
|
2429
2474
|
pathname: "/acs/users/get",
|
|
2430
|
-
method: "
|
|
2431
|
-
body,
|
|
2475
|
+
method: "POST",
|
|
2476
|
+
body: params,
|
|
2432
2477
|
responseKey: "acs_user"
|
|
2433
2478
|
});
|
|
2434
2479
|
}
|
|
2435
|
-
list(
|
|
2480
|
+
list(params) {
|
|
2436
2481
|
return new SeamHttpRequest(this, {
|
|
2437
2482
|
pathname: "/acs/users/list",
|
|
2438
|
-
method: "
|
|
2439
|
-
body,
|
|
2483
|
+
method: "POST",
|
|
2484
|
+
body: params,
|
|
2440
2485
|
responseKey: "acs_users"
|
|
2441
2486
|
});
|
|
2442
2487
|
}
|
|
2443
|
-
listAccessibleEntrances(
|
|
2488
|
+
listAccessibleEntrances(params) {
|
|
2444
2489
|
return new SeamHttpRequest(this, {
|
|
2445
2490
|
pathname: "/acs/users/list_accessible_entrances",
|
|
2446
|
-
method: "
|
|
2447
|
-
body,
|
|
2491
|
+
method: "POST",
|
|
2492
|
+
body: params,
|
|
2448
2493
|
responseKey: "acs_entrances"
|
|
2449
2494
|
});
|
|
2450
2495
|
}
|
|
2451
|
-
removeFromAccessGroup(
|
|
2496
|
+
removeFromAccessGroup(params) {
|
|
2452
2497
|
return new SeamHttpRequest(this, {
|
|
2453
2498
|
pathname: "/acs/users/remove_from_access_group",
|
|
2454
|
-
method: "
|
|
2455
|
-
body,
|
|
2499
|
+
method: "POST",
|
|
2500
|
+
body: params,
|
|
2456
2501
|
responseKey: void 0
|
|
2457
2502
|
});
|
|
2458
2503
|
}
|
|
2459
2504
|
revokeAccessToAllEntrances(body) {
|
|
2460
2505
|
return new SeamHttpRequest(this, {
|
|
2461
2506
|
pathname: "/acs/users/revoke_access_to_all_entrances",
|
|
2462
|
-
method: "
|
|
2507
|
+
method: "POST",
|
|
2463
2508
|
body,
|
|
2464
2509
|
responseKey: void 0
|
|
2465
2510
|
});
|
|
@@ -2467,7 +2512,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2467
2512
|
suspend(body) {
|
|
2468
2513
|
return new SeamHttpRequest(this, {
|
|
2469
2514
|
pathname: "/acs/users/suspend",
|
|
2470
|
-
method: "
|
|
2515
|
+
method: "POST",
|
|
2471
2516
|
body,
|
|
2472
2517
|
responseKey: void 0
|
|
2473
2518
|
});
|
|
@@ -2475,7 +2520,7 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2475
2520
|
unsuspend(body) {
|
|
2476
2521
|
return new SeamHttpRequest(this, {
|
|
2477
2522
|
pathname: "/acs/users/unsuspend",
|
|
2478
|
-
method: "
|
|
2523
|
+
method: "POST",
|
|
2479
2524
|
body,
|
|
2480
2525
|
responseKey: void 0
|
|
2481
2526
|
});
|
|
@@ -2483,16 +2528,19 @@ var SeamHttpAcsUsers = class _SeamHttpAcsUsers {
|
|
|
2483
2528
|
update(body) {
|
|
2484
2529
|
return new SeamHttpRequest(this, {
|
|
2485
2530
|
pathname: "/acs/users/update",
|
|
2486
|
-
method: "
|
|
2531
|
+
method: "PATCH",
|
|
2487
2532
|
body,
|
|
2488
2533
|
responseKey: void 0
|
|
2489
2534
|
});
|
|
2490
2535
|
}
|
|
2491
2536
|
};
|
|
2537
|
+
_SeamHttpAcsUsers.ltsVersion = seamApiLtsVersion;
|
|
2538
|
+
var SeamHttpAcsUsers = _SeamHttpAcsUsers;
|
|
2492
2539
|
|
|
2493
|
-
// src/lib/seam/connect/routes/acs.ts
|
|
2494
|
-
var
|
|
2540
|
+
// src/lib/seam/connect/routes/acs/acs.ts
|
|
2541
|
+
var _SeamHttpAcs = class _SeamHttpAcs {
|
|
2495
2542
|
constructor(apiKeyOrOptions = {}) {
|
|
2543
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2496
2544
|
const options = parseOptions(apiKeyOrOptions);
|
|
2497
2545
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2498
2546
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2523,7 +2571,7 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2523
2571
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2524
2572
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2525
2573
|
throw new SeamHttpInvalidOptionsError(
|
|
2526
|
-
"The client option cannot be used with
|
|
2574
|
+
"The client option cannot be used with SeamHttpAcs.fromPublishableKey"
|
|
2527
2575
|
);
|
|
2528
2576
|
}
|
|
2529
2577
|
const client = createClient(clientOptions);
|
|
@@ -2576,12 +2624,12 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2576
2624
|
get credentials() {
|
|
2577
2625
|
return SeamHttpAcsCredentials.fromClient(this.client, this.defaults);
|
|
2578
2626
|
}
|
|
2579
|
-
get entrances() {
|
|
2580
|
-
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2581
|
-
}
|
|
2582
2627
|
get encoders() {
|
|
2583
2628
|
return SeamHttpAcsEncoders.fromClient(this.client, this.defaults);
|
|
2584
2629
|
}
|
|
2630
|
+
get entrances() {
|
|
2631
|
+
return SeamHttpAcsEntrances.fromClient(this.client, this.defaults);
|
|
2632
|
+
}
|
|
2585
2633
|
get systems() {
|
|
2586
2634
|
return SeamHttpAcsSystems.fromClient(this.client, this.defaults);
|
|
2587
2635
|
}
|
|
@@ -2589,10 +2637,13 @@ var SeamHttpAcs = class _SeamHttpAcs {
|
|
|
2589
2637
|
return SeamHttpAcsUsers.fromClient(this.client, this.defaults);
|
|
2590
2638
|
}
|
|
2591
2639
|
};
|
|
2640
|
+
_SeamHttpAcs.ltsVersion = seamApiLtsVersion;
|
|
2641
|
+
var SeamHttpAcs = _SeamHttpAcs;
|
|
2592
2642
|
|
|
2593
|
-
// src/lib/seam/connect/routes/action-attempts.ts
|
|
2594
|
-
var
|
|
2643
|
+
// src/lib/seam/connect/routes/action-attempts/action-attempts.ts
|
|
2644
|
+
var _SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
2595
2645
|
constructor(apiKeyOrOptions = {}) {
|
|
2646
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2596
2647
|
const options = parseOptions(apiKeyOrOptions);
|
|
2597
2648
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2598
2649
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2623,7 +2674,7 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
|
2623
2674
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2624
2675
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2625
2676
|
throw new SeamHttpInvalidOptionsError(
|
|
2626
|
-
"The client option cannot be used with
|
|
2677
|
+
"The client option cannot be used with SeamHttpActionAttempts.fromPublishableKey"
|
|
2627
2678
|
);
|
|
2628
2679
|
}
|
|
2629
2680
|
const client = createClient(clientOptions);
|
|
@@ -2670,28 +2721,31 @@ var SeamHttpActionAttempts = class _SeamHttpActionAttempts {
|
|
|
2670
2721
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2671
2722
|
await clientSessions.get();
|
|
2672
2723
|
}
|
|
2673
|
-
get(
|
|
2724
|
+
get(params, options = {}) {
|
|
2674
2725
|
return new SeamHttpRequest(this, {
|
|
2675
2726
|
pathname: "/action_attempts/get",
|
|
2676
|
-
method: "
|
|
2677
|
-
body,
|
|
2727
|
+
method: "POST",
|
|
2728
|
+
body: params,
|
|
2678
2729
|
responseKey: "action_attempt",
|
|
2679
2730
|
options
|
|
2680
2731
|
});
|
|
2681
2732
|
}
|
|
2682
|
-
list(
|
|
2733
|
+
list(params) {
|
|
2683
2734
|
return new SeamHttpRequest(this, {
|
|
2684
2735
|
pathname: "/action_attempts/list",
|
|
2685
|
-
method: "
|
|
2686
|
-
body,
|
|
2736
|
+
method: "POST",
|
|
2737
|
+
body: params,
|
|
2687
2738
|
responseKey: "action_attempts"
|
|
2688
2739
|
});
|
|
2689
2740
|
}
|
|
2690
2741
|
};
|
|
2742
|
+
_SeamHttpActionAttempts.ltsVersion = seamApiLtsVersion;
|
|
2743
|
+
var SeamHttpActionAttempts = _SeamHttpActionAttempts;
|
|
2691
2744
|
|
|
2692
|
-
// src/lib/seam/connect/routes/connect-webviews.ts
|
|
2693
|
-
var
|
|
2745
|
+
// src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts
|
|
2746
|
+
var _SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
2694
2747
|
constructor(apiKeyOrOptions = {}) {
|
|
2748
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2695
2749
|
const options = parseOptions(apiKeyOrOptions);
|
|
2696
2750
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2697
2751
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2722,7 +2776,7 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
|
2722
2776
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2723
2777
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2724
2778
|
throw new SeamHttpInvalidOptionsError(
|
|
2725
|
-
"The client option cannot be used with
|
|
2779
|
+
"The client option cannot be used with SeamHttpConnectWebviews.fromPublishableKey"
|
|
2726
2780
|
);
|
|
2727
2781
|
}
|
|
2728
2782
|
const client = createClient(clientOptions);
|
|
@@ -2772,40 +2826,43 @@ var SeamHttpConnectWebviews = class _SeamHttpConnectWebviews {
|
|
|
2772
2826
|
create(body) {
|
|
2773
2827
|
return new SeamHttpRequest(this, {
|
|
2774
2828
|
pathname: "/connect_webviews/create",
|
|
2775
|
-
method: "
|
|
2829
|
+
method: "POST",
|
|
2776
2830
|
body,
|
|
2777
2831
|
responseKey: "connect_webview"
|
|
2778
2832
|
});
|
|
2779
2833
|
}
|
|
2780
|
-
delete(
|
|
2834
|
+
delete(params) {
|
|
2781
2835
|
return new SeamHttpRequest(this, {
|
|
2782
2836
|
pathname: "/connect_webviews/delete",
|
|
2783
|
-
method: "
|
|
2784
|
-
body,
|
|
2837
|
+
method: "POST",
|
|
2838
|
+
body: params,
|
|
2785
2839
|
responseKey: void 0
|
|
2786
2840
|
});
|
|
2787
2841
|
}
|
|
2788
|
-
get(
|
|
2842
|
+
get(params) {
|
|
2789
2843
|
return new SeamHttpRequest(this, {
|
|
2790
2844
|
pathname: "/connect_webviews/get",
|
|
2791
|
-
method: "
|
|
2792
|
-
body,
|
|
2845
|
+
method: "POST",
|
|
2846
|
+
body: params,
|
|
2793
2847
|
responseKey: "connect_webview"
|
|
2794
2848
|
});
|
|
2795
2849
|
}
|
|
2796
|
-
list(
|
|
2850
|
+
list(params) {
|
|
2797
2851
|
return new SeamHttpRequest(this, {
|
|
2798
2852
|
pathname: "/connect_webviews/list",
|
|
2799
|
-
method: "
|
|
2800
|
-
body,
|
|
2853
|
+
method: "POST",
|
|
2854
|
+
body: params,
|
|
2801
2855
|
responseKey: "connect_webviews"
|
|
2802
2856
|
});
|
|
2803
2857
|
}
|
|
2804
2858
|
};
|
|
2859
|
+
_SeamHttpConnectWebviews.ltsVersion = seamApiLtsVersion;
|
|
2860
|
+
var SeamHttpConnectWebviews = _SeamHttpConnectWebviews;
|
|
2805
2861
|
|
|
2806
|
-
// src/lib/seam/connect/routes/connected-accounts.ts
|
|
2807
|
-
var
|
|
2862
|
+
// src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts
|
|
2863
|
+
var _SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
2808
2864
|
constructor(apiKeyOrOptions = {}) {
|
|
2865
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2809
2866
|
const options = parseOptions(apiKeyOrOptions);
|
|
2810
2867
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2811
2868
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2836,7 +2893,7 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2836
2893
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2837
2894
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2838
2895
|
throw new SeamHttpInvalidOptionsError(
|
|
2839
|
-
"The client option cannot be used with
|
|
2896
|
+
"The client option cannot be used with SeamHttpConnectedAccounts.fromPublishableKey"
|
|
2840
2897
|
);
|
|
2841
2898
|
}
|
|
2842
2899
|
const client = createClient(clientOptions);
|
|
@@ -2883,34 +2940,34 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2883
2940
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
2884
2941
|
await clientSessions.get();
|
|
2885
2942
|
}
|
|
2886
|
-
delete(
|
|
2943
|
+
delete(params) {
|
|
2887
2944
|
return new SeamHttpRequest(this, {
|
|
2888
2945
|
pathname: "/connected_accounts/delete",
|
|
2889
|
-
method: "
|
|
2890
|
-
body,
|
|
2946
|
+
method: "POST",
|
|
2947
|
+
body: params,
|
|
2891
2948
|
responseKey: void 0
|
|
2892
2949
|
});
|
|
2893
2950
|
}
|
|
2894
|
-
get(
|
|
2951
|
+
get(params) {
|
|
2895
2952
|
return new SeamHttpRequest(this, {
|
|
2896
2953
|
pathname: "/connected_accounts/get",
|
|
2897
|
-
method: "
|
|
2898
|
-
|
|
2954
|
+
method: "GET",
|
|
2955
|
+
params,
|
|
2899
2956
|
responseKey: "connected_account"
|
|
2900
2957
|
});
|
|
2901
2958
|
}
|
|
2902
|
-
list(
|
|
2959
|
+
list(params) {
|
|
2903
2960
|
return new SeamHttpRequest(this, {
|
|
2904
2961
|
pathname: "/connected_accounts/list",
|
|
2905
|
-
method: "
|
|
2906
|
-
body,
|
|
2962
|
+
method: "POST",
|
|
2963
|
+
body: params,
|
|
2907
2964
|
responseKey: "connected_accounts"
|
|
2908
2965
|
});
|
|
2909
2966
|
}
|
|
2910
2967
|
sync(body) {
|
|
2911
2968
|
return new SeamHttpRequest(this, {
|
|
2912
2969
|
pathname: "/connected_accounts/sync",
|
|
2913
|
-
method: "
|
|
2970
|
+
method: "POST",
|
|
2914
2971
|
body,
|
|
2915
2972
|
responseKey: void 0
|
|
2916
2973
|
});
|
|
@@ -2918,16 +2975,19 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
2918
2975
|
update(body) {
|
|
2919
2976
|
return new SeamHttpRequest(this, {
|
|
2920
2977
|
pathname: "/connected_accounts/update",
|
|
2921
|
-
method: "
|
|
2978
|
+
method: "POST",
|
|
2922
2979
|
body,
|
|
2923
2980
|
responseKey: void 0
|
|
2924
2981
|
});
|
|
2925
2982
|
}
|
|
2926
2983
|
};
|
|
2984
|
+
_SeamHttpConnectedAccounts.ltsVersion = seamApiLtsVersion;
|
|
2985
|
+
var SeamHttpConnectedAccounts = _SeamHttpConnectedAccounts;
|
|
2927
2986
|
|
|
2928
|
-
// src/lib/seam/connect/routes/devices
|
|
2929
|
-
var
|
|
2987
|
+
// src/lib/seam/connect/routes/devices/simulate/simulate.ts
|
|
2988
|
+
var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
2930
2989
|
constructor(apiKeyOrOptions = {}) {
|
|
2990
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
2931
2991
|
const options = parseOptions(apiKeyOrOptions);
|
|
2932
2992
|
this.client = "client" in options ? options.client : createClient(options);
|
|
2933
2993
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -2958,7 +3018,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
2958
3018
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
2959
3019
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
2960
3020
|
throw new SeamHttpInvalidOptionsError(
|
|
2961
|
-
"The client option cannot be used with
|
|
3021
|
+
"The client option cannot be used with SeamHttpDevicesSimulate.fromPublishableKey"
|
|
2962
3022
|
);
|
|
2963
3023
|
}
|
|
2964
3024
|
const client = createClient(clientOptions);
|
|
@@ -3008,7 +3068,7 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3008
3068
|
connect(body) {
|
|
3009
3069
|
return new SeamHttpRequest(this, {
|
|
3010
3070
|
pathname: "/devices/simulate/connect",
|
|
3011
|
-
method: "
|
|
3071
|
+
method: "POST",
|
|
3012
3072
|
body,
|
|
3013
3073
|
responseKey: void 0
|
|
3014
3074
|
});
|
|
@@ -3016,24 +3076,27 @@ var SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3016
3076
|
disconnect(body) {
|
|
3017
3077
|
return new SeamHttpRequest(this, {
|
|
3018
3078
|
pathname: "/devices/simulate/disconnect",
|
|
3019
|
-
method: "
|
|
3079
|
+
method: "POST",
|
|
3020
3080
|
body,
|
|
3021
3081
|
responseKey: void 0
|
|
3022
3082
|
});
|
|
3023
3083
|
}
|
|
3024
|
-
remove(
|
|
3084
|
+
remove(params) {
|
|
3025
3085
|
return new SeamHttpRequest(this, {
|
|
3026
3086
|
pathname: "/devices/simulate/remove",
|
|
3027
|
-
method: "
|
|
3028
|
-
body,
|
|
3087
|
+
method: "POST",
|
|
3088
|
+
body: params,
|
|
3029
3089
|
responseKey: void 0
|
|
3030
3090
|
});
|
|
3031
3091
|
}
|
|
3032
3092
|
};
|
|
3093
|
+
_SeamHttpDevicesSimulate.ltsVersion = seamApiLtsVersion;
|
|
3094
|
+
var SeamHttpDevicesSimulate = _SeamHttpDevicesSimulate;
|
|
3033
3095
|
|
|
3034
|
-
// src/lib/seam/connect/routes/devices
|
|
3035
|
-
var
|
|
3096
|
+
// src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts
|
|
3097
|
+
var _SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
3036
3098
|
constructor(apiKeyOrOptions = {}) {
|
|
3099
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3037
3100
|
const options = parseOptions(apiKeyOrOptions);
|
|
3038
3101
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3039
3102
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3064,7 +3127,7 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
|
3064
3127
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3065
3128
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3066
3129
|
throw new SeamHttpInvalidOptionsError(
|
|
3067
|
-
"The client option cannot be used with
|
|
3130
|
+
"The client option cannot be used with SeamHttpDevicesUnmanaged.fromPublishableKey"
|
|
3068
3131
|
);
|
|
3069
3132
|
}
|
|
3070
3133
|
const client = createClient(clientOptions);
|
|
@@ -3111,35 +3174,38 @@ var SeamHttpDevicesUnmanaged = class _SeamHttpDevicesUnmanaged {
|
|
|
3111
3174
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3112
3175
|
await clientSessions.get();
|
|
3113
3176
|
}
|
|
3114
|
-
get(
|
|
3177
|
+
get(params) {
|
|
3115
3178
|
return new SeamHttpRequest(this, {
|
|
3116
3179
|
pathname: "/devices/unmanaged/get",
|
|
3117
|
-
method: "
|
|
3118
|
-
body,
|
|
3180
|
+
method: "POST",
|
|
3181
|
+
body: params,
|
|
3119
3182
|
responseKey: "device"
|
|
3120
3183
|
});
|
|
3121
3184
|
}
|
|
3122
|
-
list(
|
|
3185
|
+
list(params) {
|
|
3123
3186
|
return new SeamHttpRequest(this, {
|
|
3124
3187
|
pathname: "/devices/unmanaged/list",
|
|
3125
|
-
method: "
|
|
3126
|
-
body,
|
|
3188
|
+
method: "POST",
|
|
3189
|
+
body: params,
|
|
3127
3190
|
responseKey: "devices"
|
|
3128
3191
|
});
|
|
3129
3192
|
}
|
|
3130
3193
|
update(body) {
|
|
3131
3194
|
return new SeamHttpRequest(this, {
|
|
3132
3195
|
pathname: "/devices/unmanaged/update",
|
|
3133
|
-
method: "
|
|
3196
|
+
method: "PATCH",
|
|
3134
3197
|
body,
|
|
3135
3198
|
responseKey: void 0
|
|
3136
3199
|
});
|
|
3137
3200
|
}
|
|
3138
3201
|
};
|
|
3202
|
+
_SeamHttpDevicesUnmanaged.ltsVersion = seamApiLtsVersion;
|
|
3203
|
+
var SeamHttpDevicesUnmanaged = _SeamHttpDevicesUnmanaged;
|
|
3139
3204
|
|
|
3140
|
-
// src/lib/seam/connect/routes/devices.ts
|
|
3141
|
-
var
|
|
3205
|
+
// src/lib/seam/connect/routes/devices/devices.ts
|
|
3206
|
+
var _SeamHttpDevices = class _SeamHttpDevices {
|
|
3142
3207
|
constructor(apiKeyOrOptions = {}) {
|
|
3208
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3143
3209
|
const options = parseOptions(apiKeyOrOptions);
|
|
3144
3210
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3145
3211
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3170,7 +3236,7 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
3170
3236
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3171
3237
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3172
3238
|
throw new SeamHttpInvalidOptionsError(
|
|
3173
|
-
"The client option cannot be used with
|
|
3239
|
+
"The client option cannot be used with SeamHttpDevices.fromPublishableKey"
|
|
3174
3240
|
);
|
|
3175
3241
|
}
|
|
3176
3242
|
const client = createClient(clientOptions);
|
|
@@ -3217,49 +3283,52 @@ var SeamHttpDevices = class _SeamHttpDevices {
|
|
|
3217
3283
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3218
3284
|
await clientSessions.get();
|
|
3219
3285
|
}
|
|
3220
|
-
get unmanaged() {
|
|
3221
|
-
return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
|
|
3222
|
-
}
|
|
3223
3286
|
get simulate() {
|
|
3224
3287
|
return SeamHttpDevicesSimulate.fromClient(this.client, this.defaults);
|
|
3225
3288
|
}
|
|
3226
|
-
get(
|
|
3289
|
+
get unmanaged() {
|
|
3290
|
+
return SeamHttpDevicesUnmanaged.fromClient(this.client, this.defaults);
|
|
3291
|
+
}
|
|
3292
|
+
get(params) {
|
|
3227
3293
|
return new SeamHttpRequest(this, {
|
|
3228
3294
|
pathname: "/devices/get",
|
|
3229
|
-
method: "
|
|
3230
|
-
body,
|
|
3295
|
+
method: "POST",
|
|
3296
|
+
body: params,
|
|
3231
3297
|
responseKey: "device"
|
|
3232
3298
|
});
|
|
3233
3299
|
}
|
|
3234
|
-
list(
|
|
3300
|
+
list(params) {
|
|
3235
3301
|
return new SeamHttpRequest(this, {
|
|
3236
3302
|
pathname: "/devices/list",
|
|
3237
|
-
method: "
|
|
3238
|
-
body,
|
|
3303
|
+
method: "POST",
|
|
3304
|
+
body: params,
|
|
3239
3305
|
responseKey: "devices"
|
|
3240
3306
|
});
|
|
3241
3307
|
}
|
|
3242
|
-
listDeviceProviders(
|
|
3308
|
+
listDeviceProviders(params) {
|
|
3243
3309
|
return new SeamHttpRequest(this, {
|
|
3244
3310
|
pathname: "/devices/list_device_providers",
|
|
3245
|
-
method: "
|
|
3246
|
-
body,
|
|
3311
|
+
method: "POST",
|
|
3312
|
+
body: params,
|
|
3247
3313
|
responseKey: "device_providers"
|
|
3248
3314
|
});
|
|
3249
3315
|
}
|
|
3250
3316
|
update(body) {
|
|
3251
3317
|
return new SeamHttpRequest(this, {
|
|
3252
3318
|
pathname: "/devices/update",
|
|
3253
|
-
method: "
|
|
3319
|
+
method: "PATCH",
|
|
3254
3320
|
body,
|
|
3255
3321
|
responseKey: void 0
|
|
3256
3322
|
});
|
|
3257
3323
|
}
|
|
3258
3324
|
};
|
|
3325
|
+
_SeamHttpDevices.ltsVersion = seamApiLtsVersion;
|
|
3326
|
+
var SeamHttpDevices = _SeamHttpDevices;
|
|
3259
3327
|
|
|
3260
|
-
// src/lib/seam/connect/routes/events.ts
|
|
3261
|
-
var
|
|
3328
|
+
// src/lib/seam/connect/routes/events/events.ts
|
|
3329
|
+
var _SeamHttpEvents = class _SeamHttpEvents {
|
|
3262
3330
|
constructor(apiKeyOrOptions = {}) {
|
|
3331
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3263
3332
|
const options = parseOptions(apiKeyOrOptions);
|
|
3264
3333
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3265
3334
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3290,7 +3359,7 @@ var SeamHttpEvents = class _SeamHttpEvents {
|
|
|
3290
3359
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3291
3360
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3292
3361
|
throw new SeamHttpInvalidOptionsError(
|
|
3293
|
-
"The client option cannot be used with
|
|
3362
|
+
"The client option cannot be used with SeamHttpEvents.fromPublishableKey"
|
|
3294
3363
|
);
|
|
3295
3364
|
}
|
|
3296
3365
|
const client = createClient(clientOptions);
|
|
@@ -3337,27 +3406,30 @@ var SeamHttpEvents = class _SeamHttpEvents {
|
|
|
3337
3406
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3338
3407
|
await clientSessions.get();
|
|
3339
3408
|
}
|
|
3340
|
-
get(
|
|
3409
|
+
get(params) {
|
|
3341
3410
|
return new SeamHttpRequest(this, {
|
|
3342
3411
|
pathname: "/events/get",
|
|
3343
|
-
method: "
|
|
3344
|
-
body,
|
|
3412
|
+
method: "POST",
|
|
3413
|
+
body: params,
|
|
3345
3414
|
responseKey: "event"
|
|
3346
3415
|
});
|
|
3347
3416
|
}
|
|
3348
|
-
list(
|
|
3417
|
+
list(params) {
|
|
3349
3418
|
return new SeamHttpRequest(this, {
|
|
3350
3419
|
pathname: "/events/list",
|
|
3351
|
-
method: "
|
|
3352
|
-
body,
|
|
3420
|
+
method: "POST",
|
|
3421
|
+
body: params,
|
|
3353
3422
|
responseKey: "events"
|
|
3354
3423
|
});
|
|
3355
3424
|
}
|
|
3356
3425
|
};
|
|
3426
|
+
_SeamHttpEvents.ltsVersion = seamApiLtsVersion;
|
|
3427
|
+
var SeamHttpEvents = _SeamHttpEvents;
|
|
3357
3428
|
|
|
3358
|
-
// src/lib/seam/connect/routes/locks.ts
|
|
3359
|
-
var
|
|
3429
|
+
// src/lib/seam/connect/routes/locks/locks.ts
|
|
3430
|
+
var _SeamHttpLocks = class _SeamHttpLocks {
|
|
3360
3431
|
constructor(apiKeyOrOptions = {}) {
|
|
3432
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3361
3433
|
const options = parseOptions(apiKeyOrOptions);
|
|
3362
3434
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3363
3435
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3388,7 +3460,7 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3388
3460
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3389
3461
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3390
3462
|
throw new SeamHttpInvalidOptionsError(
|
|
3391
|
-
"The client option cannot be used with
|
|
3463
|
+
"The client option cannot be used with SeamHttpLocks.fromPublishableKey"
|
|
3392
3464
|
);
|
|
3393
3465
|
}
|
|
3394
3466
|
const client = createClient(clientOptions);
|
|
@@ -3435,26 +3507,26 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3435
3507
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3436
3508
|
await clientSessions.get();
|
|
3437
3509
|
}
|
|
3438
|
-
get(
|
|
3510
|
+
get(params) {
|
|
3439
3511
|
return new SeamHttpRequest(this, {
|
|
3440
3512
|
pathname: "/locks/get",
|
|
3441
|
-
method: "
|
|
3442
|
-
body,
|
|
3513
|
+
method: "POST",
|
|
3514
|
+
body: params,
|
|
3443
3515
|
responseKey: "device"
|
|
3444
3516
|
});
|
|
3445
3517
|
}
|
|
3446
|
-
list(
|
|
3518
|
+
list(params) {
|
|
3447
3519
|
return new SeamHttpRequest(this, {
|
|
3448
3520
|
pathname: "/locks/list",
|
|
3449
|
-
method: "
|
|
3450
|
-
body,
|
|
3521
|
+
method: "POST",
|
|
3522
|
+
body: params,
|
|
3451
3523
|
responseKey: "devices"
|
|
3452
3524
|
});
|
|
3453
3525
|
}
|
|
3454
3526
|
lockDoor(body, options = {}) {
|
|
3455
3527
|
return new SeamHttpRequest(this, {
|
|
3456
3528
|
pathname: "/locks/lock_door",
|
|
3457
|
-
method: "
|
|
3529
|
+
method: "POST",
|
|
3458
3530
|
body,
|
|
3459
3531
|
responseKey: "action_attempt",
|
|
3460
3532
|
options
|
|
@@ -3463,17 +3535,20 @@ var SeamHttpLocks = class _SeamHttpLocks {
|
|
|
3463
3535
|
unlockDoor(body, options = {}) {
|
|
3464
3536
|
return new SeamHttpRequest(this, {
|
|
3465
3537
|
pathname: "/locks/unlock_door",
|
|
3466
|
-
method: "
|
|
3538
|
+
method: "POST",
|
|
3467
3539
|
body,
|
|
3468
3540
|
responseKey: "action_attempt",
|
|
3469
3541
|
options
|
|
3470
3542
|
});
|
|
3471
3543
|
}
|
|
3472
3544
|
};
|
|
3545
|
+
_SeamHttpLocks.ltsVersion = seamApiLtsVersion;
|
|
3546
|
+
var SeamHttpLocks = _SeamHttpLocks;
|
|
3473
3547
|
|
|
3474
|
-
// src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts
|
|
3475
|
-
var
|
|
3548
|
+
// src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts
|
|
3549
|
+
var _SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresholds {
|
|
3476
3550
|
constructor(apiKeyOrOptions = {}) {
|
|
3551
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3477
3552
|
const options = parseOptions(apiKeyOrOptions);
|
|
3478
3553
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3479
3554
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3504,7 +3579,7 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
3504
3579
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3505
3580
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3506
3581
|
throw new SeamHttpInvalidOptionsError(
|
|
3507
|
-
"The client option cannot be used with
|
|
3582
|
+
"The client option cannot be used with SeamHttpNoiseSensorsNoiseThresholds.fromPublishableKey"
|
|
3508
3583
|
);
|
|
3509
3584
|
}
|
|
3510
3585
|
const client = createClient(clientOptions);
|
|
@@ -3557,48 +3632,51 @@ var SeamHttpNoiseSensorsNoiseThresholds = class _SeamHttpNoiseSensorsNoiseThresh
|
|
|
3557
3632
|
create(body) {
|
|
3558
3633
|
return new SeamHttpRequest(this, {
|
|
3559
3634
|
pathname: "/noise_sensors/noise_thresholds/create",
|
|
3560
|
-
method: "
|
|
3635
|
+
method: "POST",
|
|
3561
3636
|
body,
|
|
3562
3637
|
responseKey: "noise_threshold"
|
|
3563
3638
|
});
|
|
3564
3639
|
}
|
|
3565
|
-
delete(
|
|
3640
|
+
delete(params) {
|
|
3566
3641
|
return new SeamHttpRequest(this, {
|
|
3567
3642
|
pathname: "/noise_sensors/noise_thresholds/delete",
|
|
3568
|
-
method: "
|
|
3569
|
-
body,
|
|
3643
|
+
method: "POST",
|
|
3644
|
+
body: params,
|
|
3570
3645
|
responseKey: void 0
|
|
3571
3646
|
});
|
|
3572
3647
|
}
|
|
3573
|
-
get(
|
|
3648
|
+
get(params) {
|
|
3574
3649
|
return new SeamHttpRequest(this, {
|
|
3575
3650
|
pathname: "/noise_sensors/noise_thresholds/get",
|
|
3576
|
-
method: "
|
|
3577
|
-
body,
|
|
3651
|
+
method: "POST",
|
|
3652
|
+
body: params,
|
|
3578
3653
|
responseKey: "noise_threshold"
|
|
3579
3654
|
});
|
|
3580
3655
|
}
|
|
3581
|
-
list(
|
|
3656
|
+
list(params) {
|
|
3582
3657
|
return new SeamHttpRequest(this, {
|
|
3583
3658
|
pathname: "/noise_sensors/noise_thresholds/list",
|
|
3584
|
-
method: "
|
|
3585
|
-
body,
|
|
3659
|
+
method: "POST",
|
|
3660
|
+
body: params,
|
|
3586
3661
|
responseKey: "noise_thresholds"
|
|
3587
3662
|
});
|
|
3588
3663
|
}
|
|
3589
3664
|
update(body) {
|
|
3590
3665
|
return new SeamHttpRequest(this, {
|
|
3591
3666
|
pathname: "/noise_sensors/noise_thresholds/update",
|
|
3592
|
-
method: "
|
|
3667
|
+
method: "PUT",
|
|
3593
3668
|
body,
|
|
3594
3669
|
responseKey: void 0
|
|
3595
3670
|
});
|
|
3596
3671
|
}
|
|
3597
3672
|
};
|
|
3673
|
+
_SeamHttpNoiseSensorsNoiseThresholds.ltsVersion = seamApiLtsVersion;
|
|
3674
|
+
var SeamHttpNoiseSensorsNoiseThresholds = _SeamHttpNoiseSensorsNoiseThresholds;
|
|
3598
3675
|
|
|
3599
|
-
// src/lib/seam/connect/routes/noise-sensors
|
|
3600
|
-
var
|
|
3676
|
+
// src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts
|
|
3677
|
+
var _SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
3601
3678
|
constructor(apiKeyOrOptions = {}) {
|
|
3679
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3602
3680
|
const options = parseOptions(apiKeyOrOptions);
|
|
3603
3681
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3604
3682
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3629,7 +3707,7 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
|
3629
3707
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3630
3708
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3631
3709
|
throw new SeamHttpInvalidOptionsError(
|
|
3632
|
-
"The client option cannot be used with
|
|
3710
|
+
"The client option cannot be used with SeamHttpNoiseSensorsSimulate.fromPublishableKey"
|
|
3633
3711
|
);
|
|
3634
3712
|
}
|
|
3635
3713
|
const client = createClient(clientOptions);
|
|
@@ -3679,16 +3757,19 @@ var SeamHttpNoiseSensorsSimulate = class _SeamHttpNoiseSensorsSimulate {
|
|
|
3679
3757
|
triggerNoiseThreshold(body) {
|
|
3680
3758
|
return new SeamHttpRequest(this, {
|
|
3681
3759
|
pathname: "/noise_sensors/simulate/trigger_noise_threshold",
|
|
3682
|
-
method: "
|
|
3760
|
+
method: "POST",
|
|
3683
3761
|
body,
|
|
3684
3762
|
responseKey: void 0
|
|
3685
3763
|
});
|
|
3686
3764
|
}
|
|
3687
3765
|
};
|
|
3766
|
+
_SeamHttpNoiseSensorsSimulate.ltsVersion = seamApiLtsVersion;
|
|
3767
|
+
var SeamHttpNoiseSensorsSimulate = _SeamHttpNoiseSensorsSimulate;
|
|
3688
3768
|
|
|
3689
|
-
// src/lib/seam/connect/routes/noise-sensors.ts
|
|
3690
|
-
var
|
|
3769
|
+
// src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts
|
|
3770
|
+
var _SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
3691
3771
|
constructor(apiKeyOrOptions = {}) {
|
|
3772
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3692
3773
|
const options = parseOptions(apiKeyOrOptions);
|
|
3693
3774
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3694
3775
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3719,7 +3800,7 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
|
3719
3800
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3720
3801
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3721
3802
|
throw new SeamHttpInvalidOptionsError(
|
|
3722
|
-
"The client option cannot be used with
|
|
3803
|
+
"The client option cannot be used with SeamHttpNoiseSensors.fromPublishableKey"
|
|
3723
3804
|
);
|
|
3724
3805
|
}
|
|
3725
3806
|
const client = createClient(clientOptions);
|
|
@@ -3775,19 +3856,22 @@ var SeamHttpNoiseSensors = class _SeamHttpNoiseSensors {
|
|
|
3775
3856
|
get simulate() {
|
|
3776
3857
|
return SeamHttpNoiseSensorsSimulate.fromClient(this.client, this.defaults);
|
|
3777
3858
|
}
|
|
3778
|
-
list(
|
|
3859
|
+
list(params) {
|
|
3779
3860
|
return new SeamHttpRequest(this, {
|
|
3780
3861
|
pathname: "/noise_sensors/list",
|
|
3781
|
-
method: "
|
|
3782
|
-
body,
|
|
3862
|
+
method: "POST",
|
|
3863
|
+
body: params,
|
|
3783
3864
|
responseKey: "devices"
|
|
3784
3865
|
});
|
|
3785
3866
|
}
|
|
3786
3867
|
};
|
|
3868
|
+
_SeamHttpNoiseSensors.ltsVersion = seamApiLtsVersion;
|
|
3869
|
+
var SeamHttpNoiseSensors = _SeamHttpNoiseSensors;
|
|
3787
3870
|
|
|
3788
|
-
// src/lib/seam/connect/routes/phones
|
|
3789
|
-
var
|
|
3871
|
+
// src/lib/seam/connect/routes/phones/simulate/simulate.ts
|
|
3872
|
+
var _SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
3790
3873
|
constructor(apiKeyOrOptions = {}) {
|
|
3874
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3791
3875
|
const options = parseOptions(apiKeyOrOptions);
|
|
3792
3876
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3793
3877
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3818,7 +3902,7 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3818
3902
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3819
3903
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3820
3904
|
throw new SeamHttpInvalidOptionsError(
|
|
3821
|
-
"The client option cannot be used with
|
|
3905
|
+
"The client option cannot be used with SeamHttpPhonesSimulate.fromPublishableKey"
|
|
3822
3906
|
);
|
|
3823
3907
|
}
|
|
3824
3908
|
const client = createClient(clientOptions);
|
|
@@ -3865,19 +3949,22 @@ var SeamHttpPhonesSimulate = class _SeamHttpPhonesSimulate {
|
|
|
3865
3949
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
3866
3950
|
await clientSessions.get();
|
|
3867
3951
|
}
|
|
3868
|
-
createSandboxPhone(
|
|
3952
|
+
createSandboxPhone(params) {
|
|
3869
3953
|
return new SeamHttpRequest(this, {
|
|
3870
3954
|
pathname: "/phones/simulate/create_sandbox_phone",
|
|
3871
|
-
method: "
|
|
3872
|
-
body,
|
|
3955
|
+
method: "POST",
|
|
3956
|
+
body: params,
|
|
3873
3957
|
responseKey: "phone"
|
|
3874
3958
|
});
|
|
3875
3959
|
}
|
|
3876
3960
|
};
|
|
3961
|
+
_SeamHttpPhonesSimulate.ltsVersion = seamApiLtsVersion;
|
|
3962
|
+
var SeamHttpPhonesSimulate = _SeamHttpPhonesSimulate;
|
|
3877
3963
|
|
|
3878
|
-
// src/lib/seam/connect/routes/phones.ts
|
|
3879
|
-
var
|
|
3964
|
+
// src/lib/seam/connect/routes/phones/phones.ts
|
|
3965
|
+
var _SeamHttpPhones = class _SeamHttpPhones {
|
|
3880
3966
|
constructor(apiKeyOrOptions = {}) {
|
|
3967
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3881
3968
|
const options = parseOptions(apiKeyOrOptions);
|
|
3882
3969
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3883
3970
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -3908,7 +3995,7 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
3908
3995
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
3909
3996
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
3910
3997
|
throw new SeamHttpInvalidOptionsError(
|
|
3911
|
-
"The client option cannot be used with
|
|
3998
|
+
"The client option cannot be used with SeamHttpPhones.fromPublishableKey"
|
|
3912
3999
|
);
|
|
3913
4000
|
}
|
|
3914
4001
|
const client = createClient(clientOptions);
|
|
@@ -3958,35 +4045,38 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
3958
4045
|
get simulate() {
|
|
3959
4046
|
return SeamHttpPhonesSimulate.fromClient(this.client, this.defaults);
|
|
3960
4047
|
}
|
|
3961
|
-
deactivate(
|
|
4048
|
+
deactivate(params) {
|
|
3962
4049
|
return new SeamHttpRequest(this, {
|
|
3963
4050
|
pathname: "/phones/deactivate",
|
|
3964
|
-
method: "
|
|
3965
|
-
body,
|
|
4051
|
+
method: "POST",
|
|
4052
|
+
body: params,
|
|
3966
4053
|
responseKey: void 0
|
|
3967
4054
|
});
|
|
3968
4055
|
}
|
|
3969
|
-
get(
|
|
4056
|
+
get(params) {
|
|
3970
4057
|
return new SeamHttpRequest(this, {
|
|
3971
4058
|
pathname: "/phones/get",
|
|
3972
|
-
method: "
|
|
3973
|
-
body,
|
|
4059
|
+
method: "POST",
|
|
4060
|
+
body: params,
|
|
3974
4061
|
responseKey: "phone"
|
|
3975
4062
|
});
|
|
3976
4063
|
}
|
|
3977
|
-
list(
|
|
4064
|
+
list(params) {
|
|
3978
4065
|
return new SeamHttpRequest(this, {
|
|
3979
4066
|
pathname: "/phones/list",
|
|
3980
|
-
method: "
|
|
3981
|
-
body,
|
|
4067
|
+
method: "POST",
|
|
4068
|
+
body: params,
|
|
3982
4069
|
responseKey: "phones"
|
|
3983
4070
|
});
|
|
3984
4071
|
}
|
|
3985
4072
|
};
|
|
4073
|
+
_SeamHttpPhones.ltsVersion = seamApiLtsVersion;
|
|
4074
|
+
var SeamHttpPhones = _SeamHttpPhones;
|
|
3986
4075
|
|
|
3987
|
-
// src/lib/seam/connect/routes/spaces.ts
|
|
3988
|
-
var
|
|
4076
|
+
// src/lib/seam/connect/routes/spaces/spaces.ts
|
|
4077
|
+
var _SeamHttpSpaces = class _SeamHttpSpaces {
|
|
3989
4078
|
constructor(apiKeyOrOptions = {}) {
|
|
4079
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
3990
4080
|
const options = parseOptions(apiKeyOrOptions);
|
|
3991
4081
|
this.client = "client" in options ? options.client : createClient(options);
|
|
3992
4082
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4017,7 +4107,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4017
4107
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4018
4108
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4019
4109
|
throw new SeamHttpInvalidOptionsError(
|
|
4020
|
-
"The client option cannot be used with
|
|
4110
|
+
"The client option cannot be used with SeamHttpSpaces.fromPublishableKey"
|
|
4021
4111
|
);
|
|
4022
4112
|
}
|
|
4023
4113
|
const client = createClient(clientOptions);
|
|
@@ -4067,7 +4157,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4067
4157
|
addAcsEntrances(body) {
|
|
4068
4158
|
return new SeamHttpRequest(this, {
|
|
4069
4159
|
pathname: "/spaces/add_acs_entrances",
|
|
4070
|
-
method: "
|
|
4160
|
+
method: "PUT",
|
|
4071
4161
|
body,
|
|
4072
4162
|
responseKey: void 0
|
|
4073
4163
|
});
|
|
@@ -4075,7 +4165,7 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4075
4165
|
addDevices(body) {
|
|
4076
4166
|
return new SeamHttpRequest(this, {
|
|
4077
4167
|
pathname: "/spaces/add_devices",
|
|
4078
|
-
method: "
|
|
4168
|
+
method: "PUT",
|
|
4079
4169
|
body,
|
|
4080
4170
|
responseKey: void 0
|
|
4081
4171
|
});
|
|
@@ -4083,64 +4173,67 @@ var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
4083
4173
|
create(body) {
|
|
4084
4174
|
return new SeamHttpRequest(this, {
|
|
4085
4175
|
pathname: "/spaces/create",
|
|
4086
|
-
method: "
|
|
4176
|
+
method: "POST",
|
|
4087
4177
|
body,
|
|
4088
4178
|
responseKey: "space"
|
|
4089
4179
|
});
|
|
4090
4180
|
}
|
|
4091
|
-
delete(
|
|
4181
|
+
delete(params) {
|
|
4092
4182
|
return new SeamHttpRequest(this, {
|
|
4093
4183
|
pathname: "/spaces/delete",
|
|
4094
|
-
method: "
|
|
4095
|
-
body,
|
|
4184
|
+
method: "POST",
|
|
4185
|
+
body: params,
|
|
4096
4186
|
responseKey: void 0
|
|
4097
4187
|
});
|
|
4098
4188
|
}
|
|
4099
|
-
get(
|
|
4189
|
+
get(params) {
|
|
4100
4190
|
return new SeamHttpRequest(this, {
|
|
4101
4191
|
pathname: "/spaces/get",
|
|
4102
|
-
method: "
|
|
4103
|
-
body,
|
|
4192
|
+
method: "POST",
|
|
4193
|
+
body: params,
|
|
4104
4194
|
responseKey: "space"
|
|
4105
4195
|
});
|
|
4106
4196
|
}
|
|
4107
|
-
list(
|
|
4197
|
+
list(params) {
|
|
4108
4198
|
return new SeamHttpRequest(this, {
|
|
4109
4199
|
pathname: "/spaces/list",
|
|
4110
|
-
method: "
|
|
4111
|
-
|
|
4200
|
+
method: "GET",
|
|
4201
|
+
params,
|
|
4112
4202
|
responseKey: "spaces"
|
|
4113
4203
|
});
|
|
4114
4204
|
}
|
|
4115
|
-
removeAcsEntrances(
|
|
4205
|
+
removeAcsEntrances(params) {
|
|
4116
4206
|
return new SeamHttpRequest(this, {
|
|
4117
4207
|
pathname: "/spaces/remove_acs_entrances",
|
|
4118
|
-
method: "
|
|
4119
|
-
body,
|
|
4208
|
+
method: "POST",
|
|
4209
|
+
body: params,
|
|
4120
4210
|
responseKey: void 0
|
|
4121
4211
|
});
|
|
4122
4212
|
}
|
|
4123
|
-
removeDevices(
|
|
4213
|
+
removeDevices(params) {
|
|
4124
4214
|
return new SeamHttpRequest(this, {
|
|
4125
4215
|
pathname: "/spaces/remove_devices",
|
|
4126
|
-
method: "
|
|
4127
|
-
body,
|
|
4216
|
+
method: "POST",
|
|
4217
|
+
body: params,
|
|
4128
4218
|
responseKey: void 0
|
|
4129
4219
|
});
|
|
4130
4220
|
}
|
|
4131
4221
|
update(body) {
|
|
4132
4222
|
return new SeamHttpRequest(this, {
|
|
4133
4223
|
pathname: "/spaces/update",
|
|
4134
|
-
method: "
|
|
4224
|
+
method: "PATCH",
|
|
4135
4225
|
body,
|
|
4136
4226
|
responseKey: "space"
|
|
4137
4227
|
});
|
|
4138
4228
|
}
|
|
4139
4229
|
};
|
|
4230
|
+
_SeamHttpSpaces.ltsVersion = seamApiLtsVersion;
|
|
4231
|
+
var SeamHttpSpaces = _SeamHttpSpaces;
|
|
4140
4232
|
|
|
4141
|
-
// src/lib/seam/connect/routes/thermostats-daily-programs.ts
|
|
4142
|
-
var
|
|
4233
|
+
// src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts
|
|
4234
|
+
var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
4143
4235
|
constructor(apiKeyOrOptions = {}) {
|
|
4236
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4144
4237
|
const options = parseOptions(apiKeyOrOptions);
|
|
4145
4238
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4146
4239
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4171,7 +4264,7 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
|
4171
4264
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4172
4265
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4173
4266
|
throw new SeamHttpInvalidOptionsError(
|
|
4174
|
-
"The client option cannot be used with
|
|
4267
|
+
"The client option cannot be used with SeamHttpThermostatsDailyPrograms.fromPublishableKey"
|
|
4175
4268
|
);
|
|
4176
4269
|
}
|
|
4177
4270
|
const client = createClient(clientOptions);
|
|
@@ -4224,33 +4317,36 @@ var SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms {
|
|
|
4224
4317
|
create(body) {
|
|
4225
4318
|
return new SeamHttpRequest(this, {
|
|
4226
4319
|
pathname: "/thermostats/daily_programs/create",
|
|
4227
|
-
method: "
|
|
4320
|
+
method: "POST",
|
|
4228
4321
|
body,
|
|
4229
4322
|
responseKey: "thermostat_daily_program"
|
|
4230
4323
|
});
|
|
4231
4324
|
}
|
|
4232
|
-
delete(
|
|
4325
|
+
delete(params) {
|
|
4233
4326
|
return new SeamHttpRequest(this, {
|
|
4234
4327
|
pathname: "/thermostats/daily_programs/delete",
|
|
4235
|
-
method: "
|
|
4236
|
-
body,
|
|
4328
|
+
method: "POST",
|
|
4329
|
+
body: params,
|
|
4237
4330
|
responseKey: void 0
|
|
4238
4331
|
});
|
|
4239
4332
|
}
|
|
4240
4333
|
update(body, options = {}) {
|
|
4241
4334
|
return new SeamHttpRequest(this, {
|
|
4242
4335
|
pathname: "/thermostats/daily_programs/update",
|
|
4243
|
-
method: "
|
|
4336
|
+
method: "PATCH",
|
|
4244
4337
|
body,
|
|
4245
4338
|
responseKey: "action_attempt",
|
|
4246
4339
|
options
|
|
4247
4340
|
});
|
|
4248
4341
|
}
|
|
4249
4342
|
};
|
|
4343
|
+
_SeamHttpThermostatsDailyPrograms.ltsVersion = seamApiLtsVersion;
|
|
4344
|
+
var SeamHttpThermostatsDailyPrograms = _SeamHttpThermostatsDailyPrograms;
|
|
4250
4345
|
|
|
4251
|
-
// src/lib/seam/connect/routes/thermostats
|
|
4252
|
-
var
|
|
4346
|
+
// src/lib/seam/connect/routes/thermostats/schedules/schedules.ts
|
|
4347
|
+
var _SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
4253
4348
|
constructor(apiKeyOrOptions = {}) {
|
|
4349
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4254
4350
|
const options = parseOptions(apiKeyOrOptions);
|
|
4255
4351
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4256
4352
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4281,7 +4377,7 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
|
4281
4377
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4282
4378
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4283
4379
|
throw new SeamHttpInvalidOptionsError(
|
|
4284
|
-
"The client option cannot be used with
|
|
4380
|
+
"The client option cannot be used with SeamHttpThermostatsSchedules.fromPublishableKey"
|
|
4285
4381
|
);
|
|
4286
4382
|
}
|
|
4287
4383
|
const client = createClient(clientOptions);
|
|
@@ -4331,48 +4427,51 @@ var SeamHttpThermostatsSchedules = class _SeamHttpThermostatsSchedules {
|
|
|
4331
4427
|
create(body) {
|
|
4332
4428
|
return new SeamHttpRequest(this, {
|
|
4333
4429
|
pathname: "/thermostats/schedules/create",
|
|
4334
|
-
method: "
|
|
4430
|
+
method: "POST",
|
|
4335
4431
|
body,
|
|
4336
4432
|
responseKey: "thermostat_schedule"
|
|
4337
4433
|
});
|
|
4338
4434
|
}
|
|
4339
|
-
delete(
|
|
4435
|
+
delete(params) {
|
|
4340
4436
|
return new SeamHttpRequest(this, {
|
|
4341
4437
|
pathname: "/thermostats/schedules/delete",
|
|
4342
|
-
method: "
|
|
4343
|
-
body,
|
|
4438
|
+
method: "POST",
|
|
4439
|
+
body: params,
|
|
4344
4440
|
responseKey: void 0
|
|
4345
4441
|
});
|
|
4346
4442
|
}
|
|
4347
|
-
get(
|
|
4443
|
+
get(params) {
|
|
4348
4444
|
return new SeamHttpRequest(this, {
|
|
4349
4445
|
pathname: "/thermostats/schedules/get",
|
|
4350
|
-
method: "
|
|
4351
|
-
body,
|
|
4446
|
+
method: "POST",
|
|
4447
|
+
body: params,
|
|
4352
4448
|
responseKey: "thermostat_schedule"
|
|
4353
4449
|
});
|
|
4354
4450
|
}
|
|
4355
|
-
list(
|
|
4451
|
+
list(params) {
|
|
4356
4452
|
return new SeamHttpRequest(this, {
|
|
4357
4453
|
pathname: "/thermostats/schedules/list",
|
|
4358
|
-
method: "
|
|
4359
|
-
body,
|
|
4454
|
+
method: "POST",
|
|
4455
|
+
body: params,
|
|
4360
4456
|
responseKey: "thermostat_schedules"
|
|
4361
4457
|
});
|
|
4362
4458
|
}
|
|
4363
4459
|
update(body) {
|
|
4364
4460
|
return new SeamHttpRequest(this, {
|
|
4365
4461
|
pathname: "/thermostats/schedules/update",
|
|
4366
|
-
method: "
|
|
4462
|
+
method: "PATCH",
|
|
4367
4463
|
body,
|
|
4368
4464
|
responseKey: void 0
|
|
4369
4465
|
});
|
|
4370
4466
|
}
|
|
4371
4467
|
};
|
|
4468
|
+
_SeamHttpThermostatsSchedules.ltsVersion = seamApiLtsVersion;
|
|
4469
|
+
var SeamHttpThermostatsSchedules = _SeamHttpThermostatsSchedules;
|
|
4372
4470
|
|
|
4373
|
-
// src/lib/seam/connect/routes/thermostats
|
|
4374
|
-
var
|
|
4471
|
+
// src/lib/seam/connect/routes/thermostats/simulate/simulate.ts
|
|
4472
|
+
var _SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
4375
4473
|
constructor(apiKeyOrOptions = {}) {
|
|
4474
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4376
4475
|
const options = parseOptions(apiKeyOrOptions);
|
|
4377
4476
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4378
4477
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4403,7 +4502,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4403
4502
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4404
4503
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4405
4504
|
throw new SeamHttpInvalidOptionsError(
|
|
4406
|
-
"The client option cannot be used with
|
|
4505
|
+
"The client option cannot be used with SeamHttpThermostatsSimulate.fromPublishableKey"
|
|
4407
4506
|
);
|
|
4408
4507
|
}
|
|
4409
4508
|
const client = createClient(clientOptions);
|
|
@@ -4453,7 +4552,7 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4453
4552
|
hvacModeAdjusted(body) {
|
|
4454
4553
|
return new SeamHttpRequest(this, {
|
|
4455
4554
|
pathname: "/thermostats/simulate/hvac_mode_adjusted",
|
|
4456
|
-
method: "
|
|
4555
|
+
method: "POST",
|
|
4457
4556
|
body,
|
|
4458
4557
|
responseKey: void 0
|
|
4459
4558
|
});
|
|
@@ -4461,16 +4560,19 @@ var SeamHttpThermostatsSimulate = class _SeamHttpThermostatsSimulate {
|
|
|
4461
4560
|
temperatureReached(body) {
|
|
4462
4561
|
return new SeamHttpRequest(this, {
|
|
4463
4562
|
pathname: "/thermostats/simulate/temperature_reached",
|
|
4464
|
-
method: "
|
|
4563
|
+
method: "POST",
|
|
4465
4564
|
body,
|
|
4466
4565
|
responseKey: void 0
|
|
4467
4566
|
});
|
|
4468
4567
|
}
|
|
4469
4568
|
};
|
|
4569
|
+
_SeamHttpThermostatsSimulate.ltsVersion = seamApiLtsVersion;
|
|
4570
|
+
var SeamHttpThermostatsSimulate = _SeamHttpThermostatsSimulate;
|
|
4470
4571
|
|
|
4471
|
-
// src/lib/seam/connect/routes/thermostats.ts
|
|
4472
|
-
var
|
|
4572
|
+
// src/lib/seam/connect/routes/thermostats/thermostats.ts
|
|
4573
|
+
var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
4473
4574
|
constructor(apiKeyOrOptions = {}) {
|
|
4575
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4474
4576
|
const options = parseOptions(apiKeyOrOptions);
|
|
4475
4577
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4476
4578
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4501,7 +4603,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4501
4603
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4502
4604
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4503
4605
|
throw new SeamHttpInvalidOptionsError(
|
|
4504
|
-
"The client option cannot be used with
|
|
4606
|
+
"The client option cannot be used with SeamHttpThermostats.fromPublishableKey"
|
|
4505
4607
|
);
|
|
4506
4608
|
}
|
|
4507
4609
|
const client = createClient(clientOptions);
|
|
@@ -4548,22 +4650,22 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4548
4650
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4549
4651
|
await clientSessions.get();
|
|
4550
4652
|
}
|
|
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
4653
|
get dailyPrograms() {
|
|
4558
4654
|
return SeamHttpThermostatsDailyPrograms.fromClient(
|
|
4559
4655
|
this.client,
|
|
4560
4656
|
this.defaults
|
|
4561
4657
|
);
|
|
4562
4658
|
}
|
|
4659
|
+
get schedules() {
|
|
4660
|
+
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults);
|
|
4661
|
+
}
|
|
4662
|
+
get simulate() {
|
|
4663
|
+
return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults);
|
|
4664
|
+
}
|
|
4563
4665
|
activateClimatePreset(body, options = {}) {
|
|
4564
4666
|
return new SeamHttpRequest(this, {
|
|
4565
4667
|
pathname: "/thermostats/activate_climate_preset",
|
|
4566
|
-
method: "
|
|
4668
|
+
method: "POST",
|
|
4567
4669
|
body,
|
|
4568
4670
|
responseKey: "action_attempt",
|
|
4569
4671
|
options
|
|
@@ -4572,7 +4674,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4572
4674
|
cool(body, options = {}) {
|
|
4573
4675
|
return new SeamHttpRequest(this, {
|
|
4574
4676
|
pathname: "/thermostats/cool",
|
|
4575
|
-
method: "
|
|
4677
|
+
method: "POST",
|
|
4576
4678
|
body,
|
|
4577
4679
|
responseKey: "action_attempt",
|
|
4578
4680
|
options
|
|
@@ -4581,23 +4683,23 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4581
4683
|
createClimatePreset(body) {
|
|
4582
4684
|
return new SeamHttpRequest(this, {
|
|
4583
4685
|
pathname: "/thermostats/create_climate_preset",
|
|
4584
|
-
method: "
|
|
4686
|
+
method: "POST",
|
|
4585
4687
|
body,
|
|
4586
4688
|
responseKey: void 0
|
|
4587
4689
|
});
|
|
4588
4690
|
}
|
|
4589
|
-
deleteClimatePreset(
|
|
4691
|
+
deleteClimatePreset(params) {
|
|
4590
4692
|
return new SeamHttpRequest(this, {
|
|
4591
4693
|
pathname: "/thermostats/delete_climate_preset",
|
|
4592
|
-
method: "
|
|
4593
|
-
body,
|
|
4694
|
+
method: "POST",
|
|
4695
|
+
body: params,
|
|
4594
4696
|
responseKey: void 0
|
|
4595
4697
|
});
|
|
4596
4698
|
}
|
|
4597
4699
|
heat(body, options = {}) {
|
|
4598
4700
|
return new SeamHttpRequest(this, {
|
|
4599
4701
|
pathname: "/thermostats/heat",
|
|
4600
|
-
method: "
|
|
4702
|
+
method: "POST",
|
|
4601
4703
|
body,
|
|
4602
4704
|
responseKey: "action_attempt",
|
|
4603
4705
|
options
|
|
@@ -4606,24 +4708,24 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4606
4708
|
heatCool(body, options = {}) {
|
|
4607
4709
|
return new SeamHttpRequest(this, {
|
|
4608
4710
|
pathname: "/thermostats/heat_cool",
|
|
4609
|
-
method: "
|
|
4711
|
+
method: "POST",
|
|
4610
4712
|
body,
|
|
4611
4713
|
responseKey: "action_attempt",
|
|
4612
4714
|
options
|
|
4613
4715
|
});
|
|
4614
4716
|
}
|
|
4615
|
-
list(
|
|
4717
|
+
list(params) {
|
|
4616
4718
|
return new SeamHttpRequest(this, {
|
|
4617
4719
|
pathname: "/thermostats/list",
|
|
4618
|
-
method: "
|
|
4619
|
-
body,
|
|
4720
|
+
method: "POST",
|
|
4721
|
+
body: params,
|
|
4620
4722
|
responseKey: "devices"
|
|
4621
4723
|
});
|
|
4622
4724
|
}
|
|
4623
4725
|
off(body, options = {}) {
|
|
4624
4726
|
return new SeamHttpRequest(this, {
|
|
4625
4727
|
pathname: "/thermostats/off",
|
|
4626
|
-
method: "
|
|
4728
|
+
method: "POST",
|
|
4627
4729
|
body,
|
|
4628
4730
|
responseKey: "action_attempt",
|
|
4629
4731
|
options
|
|
@@ -4632,7 +4734,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4632
4734
|
setFallbackClimatePreset(body) {
|
|
4633
4735
|
return new SeamHttpRequest(this, {
|
|
4634
4736
|
pathname: "/thermostats/set_fallback_climate_preset",
|
|
4635
|
-
method: "
|
|
4737
|
+
method: "POST",
|
|
4636
4738
|
body,
|
|
4637
4739
|
responseKey: void 0
|
|
4638
4740
|
});
|
|
@@ -4640,7 +4742,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4640
4742
|
setFanMode(body, options = {}) {
|
|
4641
4743
|
return new SeamHttpRequest(this, {
|
|
4642
4744
|
pathname: "/thermostats/set_fan_mode",
|
|
4643
|
-
method: "
|
|
4745
|
+
method: "POST",
|
|
4644
4746
|
body,
|
|
4645
4747
|
responseKey: "action_attempt",
|
|
4646
4748
|
options
|
|
@@ -4649,7 +4751,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4649
4751
|
setHvacMode(body, options = {}) {
|
|
4650
4752
|
return new SeamHttpRequest(this, {
|
|
4651
4753
|
pathname: "/thermostats/set_hvac_mode",
|
|
4652
|
-
method: "
|
|
4754
|
+
method: "POST",
|
|
4653
4755
|
body,
|
|
4654
4756
|
responseKey: "action_attempt",
|
|
4655
4757
|
options
|
|
@@ -4658,7 +4760,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4658
4760
|
setTemperatureThreshold(body) {
|
|
4659
4761
|
return new SeamHttpRequest(this, {
|
|
4660
4762
|
pathname: "/thermostats/set_temperature_threshold",
|
|
4661
|
-
method: "
|
|
4763
|
+
method: "PATCH",
|
|
4662
4764
|
body,
|
|
4663
4765
|
responseKey: void 0
|
|
4664
4766
|
});
|
|
@@ -4666,7 +4768,7 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4666
4768
|
updateClimatePreset(body) {
|
|
4667
4769
|
return new SeamHttpRequest(this, {
|
|
4668
4770
|
pathname: "/thermostats/update_climate_preset",
|
|
4669
|
-
method: "
|
|
4771
|
+
method: "PATCH",
|
|
4670
4772
|
body,
|
|
4671
4773
|
responseKey: void 0
|
|
4672
4774
|
});
|
|
@@ -4674,99 +4776,20 @@ var SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
4674
4776
|
updateWeeklyProgram(body, options = {}) {
|
|
4675
4777
|
return new SeamHttpRequest(this, {
|
|
4676
4778
|
pathname: "/thermostats/update_weekly_program",
|
|
4677
|
-
method: "
|
|
4779
|
+
method: "POST",
|
|
4678
4780
|
body,
|
|
4679
4781
|
responseKey: "action_attempt",
|
|
4680
4782
|
options
|
|
4681
4783
|
});
|
|
4682
4784
|
}
|
|
4683
4785
|
};
|
|
4786
|
+
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
4787
|
+
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
4684
4788
|
|
|
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 {
|
|
4789
|
+
// src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts
|
|
4790
|
+
var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
4769
4791
|
constructor(apiKeyOrOptions = {}) {
|
|
4792
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4770
4793
|
const options = parseOptions(apiKeyOrOptions);
|
|
4771
4794
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4772
4795
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4797,7 +4820,7 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
|
|
|
4797
4820
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4798
4821
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4799
4822
|
throw new SeamHttpInvalidOptionsError(
|
|
4800
|
-
"The client option cannot be used with
|
|
4823
|
+
"The client option cannot be used with SeamHttpUserIdentitiesEnrollmentAutomations.fromPublishableKey"
|
|
4801
4824
|
);
|
|
4802
4825
|
}
|
|
4803
4826
|
const client = createClient(clientOptions);
|
|
@@ -4847,43 +4870,46 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
|
|
|
4847
4870
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4848
4871
|
await clientSessions.get();
|
|
4849
4872
|
}
|
|
4850
|
-
delete(
|
|
4873
|
+
delete(params) {
|
|
4851
4874
|
return new SeamHttpRequest(this, {
|
|
4852
4875
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
4853
|
-
method: "
|
|
4854
|
-
body,
|
|
4876
|
+
method: "POST",
|
|
4877
|
+
body: params,
|
|
4855
4878
|
responseKey: void 0
|
|
4856
4879
|
});
|
|
4857
4880
|
}
|
|
4858
|
-
get(
|
|
4881
|
+
get(params) {
|
|
4859
4882
|
return new SeamHttpRequest(this, {
|
|
4860
4883
|
pathname: "/user_identities/enrollment_automations/get",
|
|
4861
|
-
method: "
|
|
4862
|
-
body,
|
|
4884
|
+
method: "POST",
|
|
4885
|
+
body: params,
|
|
4863
4886
|
responseKey: "enrollment_automation"
|
|
4864
4887
|
});
|
|
4865
4888
|
}
|
|
4866
4889
|
launch(body) {
|
|
4867
4890
|
return new SeamHttpRequest(this, {
|
|
4868
4891
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
4869
|
-
method: "
|
|
4892
|
+
method: "POST",
|
|
4870
4893
|
body,
|
|
4871
4894
|
responseKey: "enrollment_automation"
|
|
4872
4895
|
});
|
|
4873
4896
|
}
|
|
4874
|
-
list(
|
|
4897
|
+
list(params) {
|
|
4875
4898
|
return new SeamHttpRequest(this, {
|
|
4876
4899
|
pathname: "/user_identities/enrollment_automations/list",
|
|
4877
|
-
method: "
|
|
4878
|
-
body,
|
|
4900
|
+
method: "POST",
|
|
4901
|
+
body: params,
|
|
4879
4902
|
responseKey: "enrollment_automations"
|
|
4880
4903
|
});
|
|
4881
4904
|
}
|
|
4882
4905
|
};
|
|
4906
|
+
_SeamHttpUserIdentitiesEnrollmentAutomations.ltsVersion = seamApiLtsVersion;
|
|
4907
|
+
var SeamHttpUserIdentitiesEnrollmentAutomations = _SeamHttpUserIdentitiesEnrollmentAutomations;
|
|
4883
4908
|
|
|
4884
|
-
// src/lib/seam/connect/routes/user-identities.ts
|
|
4885
|
-
var
|
|
4909
|
+
// src/lib/seam/connect/routes/user-identities/user-identities.ts
|
|
4910
|
+
var _SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
4886
4911
|
constructor(apiKeyOrOptions = {}) {
|
|
4912
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
4887
4913
|
const options = parseOptions(apiKeyOrOptions);
|
|
4888
4914
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4889
4915
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -4914,7 +4940,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4914
4940
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4915
4941
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4916
4942
|
throw new SeamHttpInvalidOptionsError(
|
|
4917
|
-
"The client option cannot be used with
|
|
4943
|
+
"The client option cannot be used with SeamHttpUserIdentities.fromPublishableKey"
|
|
4918
4944
|
);
|
|
4919
4945
|
}
|
|
4920
4946
|
const client = createClient(clientOptions);
|
|
@@ -4970,7 +4996,7 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4970
4996
|
addAcsUser(body) {
|
|
4971
4997
|
return new SeamHttpRequest(this, {
|
|
4972
4998
|
pathname: "/user_identities/add_acs_user",
|
|
4973
|
-
method: "
|
|
4999
|
+
method: "PUT",
|
|
4974
5000
|
body,
|
|
4975
5001
|
responseKey: void 0
|
|
4976
5002
|
});
|
|
@@ -4978,104 +5004,107 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
4978
5004
|
create(body) {
|
|
4979
5005
|
return new SeamHttpRequest(this, {
|
|
4980
5006
|
pathname: "/user_identities/create",
|
|
4981
|
-
method: "
|
|
5007
|
+
method: "POST",
|
|
4982
5008
|
body,
|
|
4983
5009
|
responseKey: "user_identity"
|
|
4984
5010
|
});
|
|
4985
5011
|
}
|
|
4986
|
-
delete(
|
|
5012
|
+
delete(params) {
|
|
4987
5013
|
return new SeamHttpRequest(this, {
|
|
4988
5014
|
pathname: "/user_identities/delete",
|
|
4989
|
-
method: "
|
|
4990
|
-
body,
|
|
5015
|
+
method: "POST",
|
|
5016
|
+
body: params,
|
|
4991
5017
|
responseKey: void 0
|
|
4992
5018
|
});
|
|
4993
5019
|
}
|
|
4994
5020
|
generateInstantKey(body) {
|
|
4995
5021
|
return new SeamHttpRequest(this, {
|
|
4996
5022
|
pathname: "/user_identities/generate_instant_key",
|
|
4997
|
-
method: "
|
|
5023
|
+
method: "POST",
|
|
4998
5024
|
body,
|
|
4999
5025
|
responseKey: "instant_key"
|
|
5000
5026
|
});
|
|
5001
5027
|
}
|
|
5002
|
-
get(
|
|
5028
|
+
get(params) {
|
|
5003
5029
|
return new SeamHttpRequest(this, {
|
|
5004
5030
|
pathname: "/user_identities/get",
|
|
5005
|
-
method: "
|
|
5006
|
-
|
|
5031
|
+
method: "GET",
|
|
5032
|
+
params,
|
|
5007
5033
|
responseKey: "user_identity"
|
|
5008
5034
|
});
|
|
5009
5035
|
}
|
|
5010
5036
|
grantAccessToDevice(body) {
|
|
5011
5037
|
return new SeamHttpRequest(this, {
|
|
5012
5038
|
pathname: "/user_identities/grant_access_to_device",
|
|
5013
|
-
method: "
|
|
5039
|
+
method: "PUT",
|
|
5014
5040
|
body,
|
|
5015
5041
|
responseKey: void 0
|
|
5016
5042
|
});
|
|
5017
5043
|
}
|
|
5018
|
-
list(
|
|
5044
|
+
list(params) {
|
|
5019
5045
|
return new SeamHttpRequest(this, {
|
|
5020
5046
|
pathname: "/user_identities/list",
|
|
5021
|
-
method: "
|
|
5022
|
-
body,
|
|
5047
|
+
method: "POST",
|
|
5048
|
+
body: params,
|
|
5023
5049
|
responseKey: "user_identities"
|
|
5024
5050
|
});
|
|
5025
5051
|
}
|
|
5026
|
-
listAccessibleDevices(
|
|
5052
|
+
listAccessibleDevices(params) {
|
|
5027
5053
|
return new SeamHttpRequest(this, {
|
|
5028
5054
|
pathname: "/user_identities/list_accessible_devices",
|
|
5029
|
-
method: "
|
|
5030
|
-
body,
|
|
5055
|
+
method: "POST",
|
|
5056
|
+
body: params,
|
|
5031
5057
|
responseKey: "devices"
|
|
5032
5058
|
});
|
|
5033
5059
|
}
|
|
5034
|
-
listAcsSystems(
|
|
5060
|
+
listAcsSystems(params) {
|
|
5035
5061
|
return new SeamHttpRequest(this, {
|
|
5036
5062
|
pathname: "/user_identities/list_acs_systems",
|
|
5037
|
-
method: "
|
|
5038
|
-
body,
|
|
5063
|
+
method: "POST",
|
|
5064
|
+
body: params,
|
|
5039
5065
|
responseKey: "acs_systems"
|
|
5040
5066
|
});
|
|
5041
5067
|
}
|
|
5042
|
-
listAcsUsers(
|
|
5068
|
+
listAcsUsers(params) {
|
|
5043
5069
|
return new SeamHttpRequest(this, {
|
|
5044
5070
|
pathname: "/user_identities/list_acs_users",
|
|
5045
|
-
method: "
|
|
5046
|
-
body,
|
|
5071
|
+
method: "POST",
|
|
5072
|
+
body: params,
|
|
5047
5073
|
responseKey: "acs_users"
|
|
5048
5074
|
});
|
|
5049
5075
|
}
|
|
5050
|
-
removeAcsUser(
|
|
5076
|
+
removeAcsUser(params) {
|
|
5051
5077
|
return new SeamHttpRequest(this, {
|
|
5052
5078
|
pathname: "/user_identities/remove_acs_user",
|
|
5053
|
-
method: "
|
|
5054
|
-
body,
|
|
5079
|
+
method: "POST",
|
|
5080
|
+
body: params,
|
|
5055
5081
|
responseKey: void 0
|
|
5056
5082
|
});
|
|
5057
5083
|
}
|
|
5058
|
-
revokeAccessToDevice(
|
|
5084
|
+
revokeAccessToDevice(params) {
|
|
5059
5085
|
return new SeamHttpRequest(this, {
|
|
5060
5086
|
pathname: "/user_identities/revoke_access_to_device",
|
|
5061
|
-
method: "
|
|
5062
|
-
body,
|
|
5087
|
+
method: "POST",
|
|
5088
|
+
body: params,
|
|
5063
5089
|
responseKey: void 0
|
|
5064
5090
|
});
|
|
5065
5091
|
}
|
|
5066
5092
|
update(body) {
|
|
5067
5093
|
return new SeamHttpRequest(this, {
|
|
5068
5094
|
pathname: "/user_identities/update",
|
|
5069
|
-
method: "
|
|
5095
|
+
method: "PATCH",
|
|
5070
5096
|
body,
|
|
5071
5097
|
responseKey: void 0
|
|
5072
5098
|
});
|
|
5073
5099
|
}
|
|
5074
5100
|
};
|
|
5101
|
+
_SeamHttpUserIdentities.ltsVersion = seamApiLtsVersion;
|
|
5102
|
+
var SeamHttpUserIdentities = _SeamHttpUserIdentities;
|
|
5075
5103
|
|
|
5076
|
-
// src/lib/seam/connect/routes/webhooks.ts
|
|
5077
|
-
var
|
|
5104
|
+
// src/lib/seam/connect/routes/webhooks/webhooks.ts
|
|
5105
|
+
var _SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
5078
5106
|
constructor(apiKeyOrOptions = {}) {
|
|
5107
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5079
5108
|
const options = parseOptions(apiKeyOrOptions);
|
|
5080
5109
|
this.client = "client" in options ? options.client : createClient(options);
|
|
5081
5110
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -5106,7 +5135,7 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
5106
5135
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5107
5136
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5108
5137
|
throw new SeamHttpInvalidOptionsError(
|
|
5109
|
-
"The client option cannot be used with
|
|
5138
|
+
"The client option cannot be used with SeamHttpWebhooks.fromPublishableKey"
|
|
5110
5139
|
);
|
|
5111
5140
|
}
|
|
5112
5141
|
const client = createClient(clientOptions);
|
|
@@ -5156,48 +5185,51 @@ var SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
5156
5185
|
create(body) {
|
|
5157
5186
|
return new SeamHttpRequest(this, {
|
|
5158
5187
|
pathname: "/webhooks/create",
|
|
5159
|
-
method: "
|
|
5188
|
+
method: "POST",
|
|
5160
5189
|
body,
|
|
5161
5190
|
responseKey: "webhook"
|
|
5162
5191
|
});
|
|
5163
5192
|
}
|
|
5164
|
-
delete(
|
|
5193
|
+
delete(params) {
|
|
5165
5194
|
return new SeamHttpRequest(this, {
|
|
5166
5195
|
pathname: "/webhooks/delete",
|
|
5167
|
-
method: "
|
|
5168
|
-
body,
|
|
5196
|
+
method: "POST",
|
|
5197
|
+
body: params,
|
|
5169
5198
|
responseKey: void 0
|
|
5170
5199
|
});
|
|
5171
5200
|
}
|
|
5172
|
-
get(
|
|
5201
|
+
get(params) {
|
|
5173
5202
|
return new SeamHttpRequest(this, {
|
|
5174
5203
|
pathname: "/webhooks/get",
|
|
5175
|
-
method: "
|
|
5176
|
-
body,
|
|
5204
|
+
method: "POST",
|
|
5205
|
+
body: params,
|
|
5177
5206
|
responseKey: "webhook"
|
|
5178
5207
|
});
|
|
5179
5208
|
}
|
|
5180
|
-
list(
|
|
5209
|
+
list(params) {
|
|
5181
5210
|
return new SeamHttpRequest(this, {
|
|
5182
5211
|
pathname: "/webhooks/list",
|
|
5183
|
-
method: "
|
|
5184
|
-
|
|
5212
|
+
method: "GET",
|
|
5213
|
+
params,
|
|
5185
5214
|
responseKey: "webhooks"
|
|
5186
5215
|
});
|
|
5187
5216
|
}
|
|
5188
5217
|
update(body) {
|
|
5189
5218
|
return new SeamHttpRequest(this, {
|
|
5190
5219
|
pathname: "/webhooks/update",
|
|
5191
|
-
method: "
|
|
5220
|
+
method: "PUT",
|
|
5192
5221
|
body,
|
|
5193
5222
|
responseKey: void 0
|
|
5194
5223
|
});
|
|
5195
5224
|
}
|
|
5196
5225
|
};
|
|
5226
|
+
_SeamHttpWebhooks.ltsVersion = seamApiLtsVersion;
|
|
5227
|
+
var SeamHttpWebhooks = _SeamHttpWebhooks;
|
|
5197
5228
|
|
|
5198
|
-
// src/lib/seam/connect/routes/workspaces.ts
|
|
5199
|
-
var
|
|
5229
|
+
// src/lib/seam/connect/routes/workspaces/workspaces.ts
|
|
5230
|
+
var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
5200
5231
|
constructor(apiKeyOrOptions = {}) {
|
|
5232
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
5201
5233
|
const options = parseOptions(apiKeyOrOptions);
|
|
5202
5234
|
this.client = "client" in options ? options.client : createClient(options);
|
|
5203
5235
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
@@ -5228,7 +5260,7 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5228
5260
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
5229
5261
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
5230
5262
|
throw new SeamHttpInvalidOptionsError(
|
|
5231
|
-
"The client option cannot be used with
|
|
5263
|
+
"The client option cannot be used with SeamHttpWorkspaces.fromPublishableKey"
|
|
5232
5264
|
);
|
|
5233
5265
|
}
|
|
5234
5266
|
const client = createClient(clientOptions);
|
|
@@ -5278,31 +5310,31 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5278
5310
|
create(body) {
|
|
5279
5311
|
return new SeamHttpRequest(this, {
|
|
5280
5312
|
pathname: "/workspaces/create",
|
|
5281
|
-
method: "
|
|
5313
|
+
method: "POST",
|
|
5282
5314
|
body,
|
|
5283
5315
|
responseKey: "workspace"
|
|
5284
5316
|
});
|
|
5285
5317
|
}
|
|
5286
|
-
get(
|
|
5318
|
+
get(params) {
|
|
5287
5319
|
return new SeamHttpRequest(this, {
|
|
5288
5320
|
pathname: "/workspaces/get",
|
|
5289
|
-
method: "
|
|
5290
|
-
|
|
5321
|
+
method: "GET",
|
|
5322
|
+
params,
|
|
5291
5323
|
responseKey: "workspace"
|
|
5292
5324
|
});
|
|
5293
5325
|
}
|
|
5294
|
-
list(
|
|
5326
|
+
list(params) {
|
|
5295
5327
|
return new SeamHttpRequest(this, {
|
|
5296
5328
|
pathname: "/workspaces/list",
|
|
5297
|
-
method: "
|
|
5298
|
-
|
|
5329
|
+
method: "GET",
|
|
5330
|
+
params,
|
|
5299
5331
|
responseKey: "workspaces"
|
|
5300
5332
|
});
|
|
5301
5333
|
}
|
|
5302
5334
|
resetSandbox(body, options = {}) {
|
|
5303
5335
|
return new SeamHttpRequest(this, {
|
|
5304
5336
|
pathname: "/workspaces/reset_sandbox",
|
|
5305
|
-
method: "
|
|
5337
|
+
method: "POST",
|
|
5306
5338
|
body,
|
|
5307
5339
|
responseKey: "action_attempt",
|
|
5308
5340
|
options
|
|
@@ -5311,14 +5343,16 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
5311
5343
|
update(body) {
|
|
5312
5344
|
return new SeamHttpRequest(this, {
|
|
5313
5345
|
pathname: "/workspaces/update",
|
|
5314
|
-
method: "
|
|
5346
|
+
method: "PATCH",
|
|
5315
5347
|
body,
|
|
5316
5348
|
responseKey: void 0
|
|
5317
5349
|
});
|
|
5318
5350
|
}
|
|
5319
5351
|
};
|
|
5352
|
+
_SeamHttpWorkspaces.ltsVersion = seamApiLtsVersion;
|
|
5353
|
+
var SeamHttpWorkspaces = _SeamHttpWorkspaces;
|
|
5320
5354
|
|
|
5321
|
-
// src/lib/seam/connect/seam-http.ts
|
|
5355
|
+
// src/lib/seam/connect/routes/seam-http.ts
|
|
5322
5356
|
var _SeamHttp = class _SeamHttp {
|
|
5323
5357
|
constructor(apiKeyOrOptions = {}) {
|
|
5324
5358
|
this.ltsVersion = seamApiLtsVersion;
|
|
@@ -5417,12 +5451,12 @@ var _SeamHttp = class _SeamHttp {
|
|
|
5417
5451
|
get clientSessions() {
|
|
5418
5452
|
return SeamHttpClientSessions.fromClient(this.client, this.defaults);
|
|
5419
5453
|
}
|
|
5420
|
-
get connectedAccounts() {
|
|
5421
|
-
return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
|
|
5422
|
-
}
|
|
5423
5454
|
get connectWebviews() {
|
|
5424
5455
|
return SeamHttpConnectWebviews.fromClient(this.client, this.defaults);
|
|
5425
5456
|
}
|
|
5457
|
+
get connectedAccounts() {
|
|
5458
|
+
return SeamHttpConnectedAccounts.fromClient(this.client, this.defaults);
|
|
5459
|
+
}
|
|
5426
5460
|
get devices() {
|
|
5427
5461
|
return SeamHttpDevices.fromClient(this.client, this.defaults);
|
|
5428
5462
|
}
|
|
@@ -5542,7 +5576,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
5542
5576
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
5543
5577
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
5544
5578
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
5545
|
-
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
5546
5579
|
exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
|
|
5547
5580
|
exports.SeamHttpUserIdentitiesEnrollmentAutomations = SeamHttpUserIdentitiesEnrollmentAutomations;
|
|
5548
5581
|
exports.SeamHttpWebhooks = SeamHttpWebhooks;
|