@seamapi/http 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +921 -510
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +314 -147
- package/lib/seam/connect/index.d.ts +0 -1
- package/lib/seam/connect/index.js +0 -1
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/routes/{access-codes.d.ts → access-codes/access-codes.d.ts} +13 -11
- package/lib/seam/connect/routes/{access-codes.js → access-codes/access-codes.js} +33 -30
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -0
- package/lib/seam/connect/routes/access-codes/index.d.ts +3 -0
- package/lib/seam/connect/routes/access-codes/index.js +8 -0
- package/lib/seam/connect/routes/access-codes/index.js.map +1 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.js +6 -0
- package/lib/seam/connect/routes/access-codes/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{access-codes-simulate.d.ts → access-codes/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{access-codes-simulate.js → access-codes/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/{unstable-partner.js.map → access-codes/simulate/simulate.js.map} +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/index.js +6 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/index.js.map +1 -0
- package/lib/seam/connect/routes/{access-codes-unmanaged.d.ts → access-codes/unmanaged/unmanaged.d.ts} +10 -8
- package/lib/seam/connect/routes/{access-codes-unmanaged.js → access-codes/unmanaged/unmanaged.js} +24 -21
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -0
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +37 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +119 -0
- 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/access-methods.d.ts +33 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +111 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/access-methods/index.d.ts +1 -0
- package/lib/seam/connect/routes/access-methods/index.js +6 -0
- package/lib/seam/connect/routes/access-methods/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-access-groups.d.ts → acs/access-groups/access-groups.d.ts} +12 -10
- package/lib/seam/connect/routes/{acs-access-groups.js → acs/access-groups/access-groups.js} +29 -26
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -0
- package/lib/seam/connect/routes/acs/access-groups/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/access-groups/index.js +6 -0
- package/lib/seam/connect/routes/acs/access-groups/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs.d.ts → acs/acs.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs.js → acs/acs.js} +20 -17
- package/lib/seam/connect/routes/acs/acs.js.map +1 -0
- package/lib/seam/connect/routes/{acs-credentials.d.ts → acs/credentials/credentials.d.ts} +11 -9
- package/lib/seam/connect/routes/{acs-credentials.js → acs/credentials/credentials.js} +29 -26
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -0
- package/lib/seam/connect/routes/acs/credentials/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/credentials/index.js +6 -0
- package/lib/seam/connect/routes/acs/credentials/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-encoders.d.ts → acs/encoders/encoders.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs-encoders.js → acs/encoders/encoders.js} +23 -20
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -0
- package/lib/seam/connect/routes/acs/encoders/index.d.ts +2 -0
- package/lib/seam/connect/routes/acs/encoders/index.js +7 -0
- package/lib/seam/connect/routes/acs/encoders/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.js +6 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-encoders-simulate.d.ts → acs/encoders/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{acs-encoders-simulate.js → acs/encoders/simulate/simulate.js} +17 -14
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/{acs-entrances.d.ts → acs/entrances/entrances.d.ts} +10 -8
- package/lib/seam/connect/routes/{acs-entrances.js → acs/entrances/entrances.js} +23 -20
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -0
- package/lib/seam/connect/routes/acs/entrances/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/entrances/index.js +6 -0
- package/lib/seam/connect/routes/acs/entrances/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/index.d.ts +7 -0
- package/lib/seam/connect/routes/acs/index.js +12 -0
- package/lib/seam/connect/routes/acs/index.js.map +1 -0
- package/lib/seam/connect/routes/acs/systems/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/systems/index.js +6 -0
- package/lib/seam/connect/routes/acs/systems/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-systems.d.ts → acs/systems/systems.d.ts} +10 -8
- package/lib/seam/connect/routes/{acs-systems.js → acs/systems/systems.js} +22 -19
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -0
- package/lib/seam/connect/routes/acs/users/index.d.ts +1 -0
- package/lib/seam/connect/routes/acs/users/index.js +6 -0
- package/lib/seam/connect/routes/acs/users/index.js.map +1 -0
- package/lib/seam/connect/routes/{acs-users.d.ts → acs/users/users.d.ts} +13 -11
- package/lib/seam/connect/routes/{acs-users.js → acs/users/users.js} +36 -33
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -0
- package/lib/seam/connect/routes/{action-attempts.d.ts → action-attempts/action-attempts.d.ts} +9 -7
- package/lib/seam/connect/routes/{action-attempts.js → action-attempts/action-attempts.js} +18 -15
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -0
- package/lib/seam/connect/routes/action-attempts/index.d.ts +1 -0
- package/lib/seam/connect/routes/action-attempts/index.js +6 -0
- package/lib/seam/connect/routes/action-attempts/index.js.map +1 -0
- package/lib/seam/connect/routes/{client-sessions.d.ts → client-sessions/client-sessions.d.ts} +11 -9
- package/lib/seam/connect/routes/{client-sessions.js → client-sessions/client-sessions.js} +26 -23
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -0
- package/lib/seam/connect/routes/client-sessions/index.d.ts +1 -0
- package/lib/seam/connect/routes/client-sessions/index.js +6 -0
- package/lib/seam/connect/routes/client-sessions/index.js.map +1 -0
- package/lib/seam/connect/routes/{connect-webviews.d.ts → connect-webviews/connect-webviews.d.ts} +10 -8
- package/lib/seam/connect/routes/{connect-webviews.js → connect-webviews/connect-webviews.js} +22 -19
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -0
- package/lib/seam/connect/routes/connect-webviews/index.d.ts +1 -0
- package/lib/seam/connect/routes/connect-webviews/index.js +6 -0
- package/lib/seam/connect/routes/connect-webviews/index.js.map +1 -0
- package/lib/seam/connect/routes/{connected-accounts.d.ts → connected-accounts/connected-accounts.d.ts} +10 -8
- package/lib/seam/connect/routes/{connected-accounts.js → connected-accounts/connected-accounts.js} +23 -20
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -0
- package/lib/seam/connect/routes/connected-accounts/index.d.ts +1 -0
- package/lib/seam/connect/routes/connected-accounts/index.js +6 -0
- package/lib/seam/connect/routes/connected-accounts/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices.d.ts → devices/devices.d.ts} +13 -11
- package/lib/seam/connect/routes/{devices.js → devices/devices.js} +27 -24
- package/lib/seam/connect/routes/devices/devices.js.map +1 -0
- package/lib/seam/connect/routes/devices/index.d.ts +3 -0
- package/lib/seam/connect/routes/devices/index.js +8 -0
- package/lib/seam/connect/routes/devices/index.js.map +1 -0
- package/lib/seam/connect/routes/devices/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/devices/simulate/index.js +6 -0
- package/lib/seam/connect/routes/devices/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices-simulate.d.ts → devices/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{devices-simulate.js → devices/simulate/simulate.js} +16 -13
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.d.ts +1 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.js +6 -0
- package/lib/seam/connect/routes/devices/unmanaged/index.js.map +1 -0
- package/lib/seam/connect/routes/{devices-unmanaged.d.ts → devices/unmanaged/unmanaged.d.ts} +9 -7
- package/lib/seam/connect/routes/{devices-unmanaged.js → devices/unmanaged/unmanaged.js} +20 -17
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -0
- package/lib/seam/connect/routes/{events.d.ts → events/events.d.ts} +9 -7
- package/lib/seam/connect/routes/{events.js → events/events.js} +18 -15
- package/lib/seam/connect/routes/events/events.js.map +1 -0
- package/lib/seam/connect/routes/events/index.d.ts +1 -0
- package/lib/seam/connect/routes/events/index.js +6 -0
- package/lib/seam/connect/routes/events/index.js.map +1 -0
- package/lib/seam/connect/routes/index.d.ts +19 -34
- package/lib/seam/connect/routes/index.js +23 -34
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/locks/index.d.ts +1 -0
- package/lib/seam/connect/routes/locks/index.js +6 -0
- package/lib/seam/connect/routes/locks/index.js.map +1 -0
- package/lib/seam/connect/routes/{locks.d.ts → locks/locks.d.ts} +11 -9
- package/lib/seam/connect/routes/{locks.js → locks/locks.js} +20 -17
- package/lib/seam/connect/routes/locks/locks.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/index.d.ts +3 -0
- package/lib/seam/connect/routes/noise-sensors/index.js +8 -0
- package/lib/seam/connect/routes/noise-sensors/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors.d.ts → noise-sensors/noise-sensors.d.ts} +10 -8
- package/lib/seam/connect/routes/{noise-sensors.js → noise-sensors/noise-sensors.js} +17 -14
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.d.ts +1 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js +6 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.d.ts → noise-sensors/noise-thresholds/noise-thresholds.d.ts} +10 -8
- package/lib/seam/connect/routes/{noise-sensors-noise-thresholds.js → noise-sensors/noise-thresholds/noise-thresholds.js} +24 -21
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.js +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{noise-sensors-simulate.d.ts → noise-sensors/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{noise-sensors-simulate.js → noise-sensors/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/routes/phones/index.d.ts +2 -0
- package/lib/seam/connect/routes/phones/index.js +7 -0
- package/lib/seam/connect/routes/phones/index.js.map +1 -0
- package/lib/seam/connect/routes/{phones.d.ts → phones/phones.d.ts} +11 -9
- package/lib/seam/connect/routes/{phones.js → phones/phones.js} +22 -19
- package/lib/seam/connect/routes/{events.js.map → phones/phones.js.map} +1 -1
- package/lib/seam/connect/routes/phones/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/phones/simulate/index.js +6 -0
- package/lib/seam/connect/routes/phones/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{phones-simulate.d.ts → phones/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{phones-simulate.js → phones/simulate/simulate.js} +14 -11
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -0
- package/lib/seam/connect/{seam-http.d.ts → routes/seam-http.d.ts} +27 -7
- package/lib/seam/connect/{seam-http.js → routes/seam-http.js} +40 -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/spaces.d.ts +57 -0
- package/lib/seam/connect/routes/spaces/spaces.js +159 -0
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-daily-programs.d.ts → thermostats/daily-programs/daily-programs.d.ts} +9 -7
- package/lib/seam/connect/routes/{thermostats-daily-programs.js → thermostats/daily-programs/daily-programs.js} +18 -15
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/index.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/index.d.ts +4 -0
- package/lib/seam/connect/routes/thermostats/index.js +9 -0
- package/lib/seam/connect/routes/thermostats/index.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/schedules/index.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-schedules.d.ts → thermostats/schedules/schedules.d.ts} +10 -8
- package/lib/seam/connect/routes/{thermostats-schedules.js → thermostats/schedules/schedules.js} +24 -21
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.d.ts +1 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/index.js.map +1 -0
- package/lib/seam/connect/routes/{thermostats-simulate.d.ts → thermostats/simulate/simulate.d.ts} +7 -5
- package/lib/seam/connect/routes/{thermostats-simulate.js → thermostats/simulate/simulate.js} +15 -12
- package/lib/seam/connect/routes/{thermostats-daily-programs.js.map → thermostats/simulate/simulate.js.map} +1 -1
- package/lib/seam/connect/routes/{thermostats.d.ts → thermostats/thermostats.d.ts} +20 -18
- package/lib/seam/connect/routes/{thermostats.js → thermostats/thermostats.js} +34 -31
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -0
- package/lib/seam/connect/routes/{user-identities-enrollment-automations.d.ts → user-identities/enrollment-automations/enrollment-automations.d.ts} +10 -8
- package/lib/seam/connect/routes/{user-identities-enrollment-automations.js → user-identities/enrollment-automations/enrollment-automations.js} +23 -20
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.d.ts +1 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js +6 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/index.js.map +1 -0
- package/lib/seam/connect/routes/user-identities/index.d.ts +2 -0
- package/lib/seam/connect/routes/user-identities/index.js +7 -0
- package/lib/seam/connect/routes/user-identities/index.js.map +1 -0
- package/lib/seam/connect/routes/{user-identities.d.ts → user-identities/user-identities.d.ts} +16 -14
- package/lib/seam/connect/routes/{user-identities.js → user-identities/user-identities.js} +42 -39
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -0
- package/lib/seam/connect/routes/webhooks/index.d.ts +1 -0
- package/lib/seam/connect/routes/webhooks/index.js +6 -0
- package/lib/seam/connect/routes/webhooks/index.js.map +1 -0
- package/lib/seam/connect/routes/{webhooks.d.ts → webhooks/webhooks.d.ts} +12 -10
- package/lib/seam/connect/routes/{webhooks.js → webhooks/webhooks.js} +23 -20
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/routes/workspaces/index.js +6 -0
- package/lib/seam/connect/routes/workspaces/index.js.map +1 -0
- package/lib/seam/connect/routes/{workspaces.d.ts → workspaces/workspaces.d.ts} +13 -11
- package/lib/seam/connect/routes/{workspaces.js → workspaces/workspaces.js} +21 -18
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -7
- package/src/lib/seam/connect/index.ts +0 -1
- package/src/lib/seam/connect/routes/{access-codes.ts → access-codes/access-codes.ts} +28 -25
- package/src/lib/seam/connect/routes/access-codes/index.ts +8 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{access-codes-simulate.ts → access-codes/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/routes/access-codes/unmanaged/index.ts +6 -0
- package/src/lib/seam/connect/routes/{access-codes-unmanaged.ts → access-codes/unmanaged/unmanaged.ts} +17 -15
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +239 -0
- package/src/lib/seam/connect/routes/access-grants/index.ts +6 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +221 -0
- package/src/lib/seam/connect/routes/access-methods/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-access-groups.ts → acs/access-groups/access-groups.ts} +22 -20
- package/src/lib/seam/connect/routes/acs/access-groups/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs.ts → acs/acs.ts} +16 -13
- package/src/lib/seam/connect/routes/{acs-credentials.ts → acs/credentials/credentials.ts} +24 -20
- package/src/lib/seam/connect/routes/acs/credentials/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-encoders.ts → acs/encoders/encoders.ts} +19 -16
- package/src/lib/seam/connect/routes/acs/encoders/index.ts +7 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-encoders-simulate.ts → acs/encoders/simulate/simulate.ts} +10 -8
- package/src/lib/seam/connect/routes/{acs-entrances.ts → acs/entrances/entrances.ts} +16 -14
- package/src/lib/seam/connect/routes/acs/entrances/index.ts +6 -0
- package/src/lib/seam/connect/routes/acs/index.ts +12 -0
- package/src/lib/seam/connect/routes/acs/systems/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-systems.ts → acs/systems/systems.ts} +15 -13
- package/src/lib/seam/connect/routes/acs/users/index.ts +6 -0
- package/src/lib/seam/connect/routes/{acs-users.ts → acs/users/users.ts} +29 -27
- package/src/lib/seam/connect/routes/{action-attempts.ts → action-attempts/action-attempts.ts} +13 -11
- package/src/lib/seam/connect/routes/action-attempts/index.ts +6 -0
- package/src/lib/seam/connect/routes/{client-sessions.ts → client-sessions/client-sessions.ts} +24 -17
- package/src/lib/seam/connect/routes/client-sessions/index.ts +6 -0
- package/src/lib/seam/connect/routes/{connect-webviews.ts → connect-webviews/connect-webviews.ts} +18 -14
- package/src/lib/seam/connect/routes/connect-webviews/index.ts +6 -0
- package/src/lib/seam/connect/routes/{connected-accounts.ts → connected-accounts/connected-accounts.ts} +17 -15
- package/src/lib/seam/connect/routes/connected-accounts/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices.ts → devices/devices.ts} +24 -19
- package/src/lib/seam/connect/routes/devices/index.ts +8 -0
- package/src/lib/seam/connect/routes/devices/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices-simulate.ts → devices/simulate/simulate.ts} +9 -7
- package/src/lib/seam/connect/routes/devices/unmanaged/index.ts +6 -0
- package/src/lib/seam/connect/routes/{devices-unmanaged.ts → devices/unmanaged/unmanaged.ts} +13 -11
- package/src/lib/seam/connect/routes/{events.ts → events/events.ts} +14 -10
- package/src/lib/seam/connect/routes/events/index.ts +6 -0
- package/src/lib/seam/connect/routes/index.ts +24 -34
- package/src/lib/seam/connect/routes/locks/index.ts +6 -0
- package/src/lib/seam/connect/routes/{locks.ts → locks/locks.ts} +18 -14
- package/src/lib/seam/connect/routes/noise-sensors/index.ts +8 -0
- package/src/lib/seam/connect/routes/{noise-sensors.ts → noise-sensors/noise-sensors.ts} +11 -8
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/index.ts +6 -0
- package/src/lib/seam/connect/routes/{noise-sensors-noise-thresholds.ts → noise-sensors/noise-thresholds/noise-thresholds.ts} +17 -15
- package/src/lib/seam/connect/routes/noise-sensors/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{noise-sensors-simulate.ts → noise-sensors/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/routes/phones/index.ts +7 -0
- package/src/lib/seam/connect/routes/{phones.ts → phones/phones.ts} +20 -13
- package/src/lib/seam/connect/routes/phones/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{phones-simulate.ts → phones/simulate/simulate.ts} +7 -5
- package/src/lib/seam/connect/{seam-http.ts → routes/seam-http.ts} +49 -28
- package/src/lib/seam/connect/routes/spaces/index.ts +6 -0
- package/src/lib/seam/connect/routes/spaces/spaces.ts +337 -0
- package/src/lib/seam/connect/routes/{thermostats-daily-programs.ts → thermostats/daily-programs/daily-programs.ts} +12 -10
- package/src/lib/seam/connect/routes/thermostats/daily-programs/index.ts +6 -0
- package/src/lib/seam/connect/routes/thermostats/index.ts +9 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/index.ts +6 -0
- package/src/lib/seam/connect/routes/{thermostats-schedules.ts → thermostats/schedules/schedules.ts} +17 -15
- package/src/lib/seam/connect/routes/thermostats/simulate/index.ts +6 -0
- package/src/lib/seam/connect/routes/{thermostats-simulate.ts → thermostats/simulate/simulate.ts} +8 -6
- package/src/lib/seam/connect/routes/{thermostats.ts → thermostats/thermostats.ts} +40 -37
- package/src/lib/seam/connect/routes/{user-identities-enrollment-automations.ts → user-identities/enrollment-automations/enrollment-automations.ts} +16 -14
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/index.ts +6 -0
- package/src/lib/seam/connect/routes/user-identities/index.ts +7 -0
- package/src/lib/seam/connect/routes/{user-identities.ts → user-identities/user-identities.ts} +38 -33
- package/src/lib/seam/connect/routes/webhooks/index.ts +6 -0
- package/src/lib/seam/connect/routes/{webhooks.ts → webhooks/webhooks.ts} +23 -17
- package/src/lib/seam/connect/routes/workspaces/index.ts +6 -0
- package/src/lib/seam/connect/routes/{workspaces.ts → workspaces/workspaces.ts} +23 -17
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/access-codes-simulate.js.map +0 -1
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +0 -1
- package/lib/seam/connect/routes/access-codes.js.map +0 -1
- package/lib/seam/connect/routes/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/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
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Automatically generated by
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
7
7
|
|
|
8
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
8
9
|
import {
|
|
9
10
|
getAuthHeadersForClientSessionToken,
|
|
10
11
|
warnOnInsecureuserIdentifierKey,
|
|
@@ -30,18 +31,20 @@ import {
|
|
|
30
31
|
limitToSeamHttpRequestOptions,
|
|
31
32
|
parseOptions,
|
|
32
33
|
} from 'lib/seam/connect/parse-options.js'
|
|
34
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
33
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
35
37
|
import type { SetNonNullable } from 'lib/types.js'
|
|
36
38
|
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { SeamHttpThermostatsSimulate } from './thermostats-simulate.js'
|
|
39
|
+
import { SeamHttpThermostatsDailyPrograms } from './daily-programs/index.js'
|
|
40
|
+
import { SeamHttpThermostatsSchedules } from './schedules/index.js'
|
|
41
|
+
import { SeamHttpThermostatsSimulate } from './simulate/index.js'
|
|
41
42
|
|
|
42
43
|
export class SeamHttpThermostats {
|
|
43
44
|
client: Client
|
|
44
45
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
46
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
47
|
+
static ltsVersion = seamApiLtsVersion
|
|
45
48
|
|
|
46
49
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
47
50
|
const options = parseOptions(apiKeyOrOptions)
|
|
@@ -94,7 +97,7 @@ export class SeamHttpThermostats {
|
|
|
94
97
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
95
98
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
96
99
|
throw new SeamHttpInvalidOptionsError(
|
|
97
|
-
'The client option cannot be used with
|
|
100
|
+
'The client option cannot be used with SeamHttpThermostats.fromPublishableKey',
|
|
98
101
|
)
|
|
99
102
|
}
|
|
100
103
|
const client = createClient(clientOptions)
|
|
@@ -164,6 +167,13 @@ export class SeamHttpThermostats {
|
|
|
164
167
|
await clientSessions.get()
|
|
165
168
|
}
|
|
166
169
|
|
|
170
|
+
get dailyPrograms(): SeamHttpThermostatsDailyPrograms {
|
|
171
|
+
return SeamHttpThermostatsDailyPrograms.fromClient(
|
|
172
|
+
this.client,
|
|
173
|
+
this.defaults,
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
|
|
167
177
|
get schedules(): SeamHttpThermostatsSchedules {
|
|
168
178
|
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults)
|
|
169
179
|
}
|
|
@@ -172,23 +182,16 @@ export class SeamHttpThermostats {
|
|
|
172
182
|
return SeamHttpThermostatsSimulate.fromClient(this.client, this.defaults)
|
|
173
183
|
}
|
|
174
184
|
|
|
175
|
-
get dailyPrograms(): SeamHttpThermostatsDailyPrograms {
|
|
176
|
-
return SeamHttpThermostatsDailyPrograms.fromClient(
|
|
177
|
-
this.client,
|
|
178
|
-
this.defaults,
|
|
179
|
-
)
|
|
180
|
-
}
|
|
181
|
-
|
|
182
185
|
activateClimatePreset(
|
|
183
186
|
body?: ThermostatsActivateClimatePresetBody,
|
|
184
|
-
options:
|
|
187
|
+
options: ThermostatsActivateClimatePresetOptions = {},
|
|
185
188
|
): SeamHttpRequest<
|
|
186
189
|
ThermostatsActivateClimatePresetResponse,
|
|
187
190
|
'action_attempt'
|
|
188
191
|
> {
|
|
189
192
|
return new SeamHttpRequest(this, {
|
|
190
193
|
pathname: '/thermostats/activate_climate_preset',
|
|
191
|
-
method: '
|
|
194
|
+
method: 'POST',
|
|
192
195
|
body,
|
|
193
196
|
responseKey: 'action_attempt',
|
|
194
197
|
options,
|
|
@@ -197,11 +200,11 @@ export class SeamHttpThermostats {
|
|
|
197
200
|
|
|
198
201
|
cool(
|
|
199
202
|
body?: ThermostatsCoolBody,
|
|
200
|
-
options:
|
|
203
|
+
options: ThermostatsCoolOptions = {},
|
|
201
204
|
): SeamHttpRequest<ThermostatsCoolResponse, 'action_attempt'> {
|
|
202
205
|
return new SeamHttpRequest(this, {
|
|
203
206
|
pathname: '/thermostats/cool',
|
|
204
|
-
method: '
|
|
207
|
+
method: 'POST',
|
|
205
208
|
body,
|
|
206
209
|
responseKey: 'action_attempt',
|
|
207
210
|
options,
|
|
@@ -213,7 +216,7 @@ export class SeamHttpThermostats {
|
|
|
213
216
|
): SeamHttpRequest<void, undefined> {
|
|
214
217
|
return new SeamHttpRequest(this, {
|
|
215
218
|
pathname: '/thermostats/create_climate_preset',
|
|
216
|
-
method: '
|
|
219
|
+
method: 'POST',
|
|
217
220
|
body,
|
|
218
221
|
responseKey: undefined,
|
|
219
222
|
})
|
|
@@ -224,7 +227,7 @@ export class SeamHttpThermostats {
|
|
|
224
227
|
): SeamHttpRequest<void, undefined> {
|
|
225
228
|
return new SeamHttpRequest(this, {
|
|
226
229
|
pathname: '/thermostats/delete_climate_preset',
|
|
227
|
-
method: '
|
|
230
|
+
method: 'POST',
|
|
228
231
|
body,
|
|
229
232
|
responseKey: undefined,
|
|
230
233
|
})
|
|
@@ -232,11 +235,11 @@ export class SeamHttpThermostats {
|
|
|
232
235
|
|
|
233
236
|
heat(
|
|
234
237
|
body?: ThermostatsHeatBody,
|
|
235
|
-
options:
|
|
238
|
+
options: ThermostatsHeatOptions = {},
|
|
236
239
|
): SeamHttpRequest<ThermostatsHeatResponse, 'action_attempt'> {
|
|
237
240
|
return new SeamHttpRequest(this, {
|
|
238
241
|
pathname: '/thermostats/heat',
|
|
239
|
-
method: '
|
|
242
|
+
method: 'POST',
|
|
240
243
|
body,
|
|
241
244
|
responseKey: 'action_attempt',
|
|
242
245
|
options,
|
|
@@ -245,11 +248,11 @@ export class SeamHttpThermostats {
|
|
|
245
248
|
|
|
246
249
|
heatCool(
|
|
247
250
|
body?: ThermostatsHeatCoolBody,
|
|
248
|
-
options:
|
|
251
|
+
options: ThermostatsHeatCoolOptions = {},
|
|
249
252
|
): SeamHttpRequest<ThermostatsHeatCoolResponse, 'action_attempt'> {
|
|
250
253
|
return new SeamHttpRequest(this, {
|
|
251
254
|
pathname: '/thermostats/heat_cool',
|
|
252
|
-
method: '
|
|
255
|
+
method: 'POST',
|
|
253
256
|
body,
|
|
254
257
|
responseKey: 'action_attempt',
|
|
255
258
|
options,
|
|
@@ -257,23 +260,23 @@ export class SeamHttpThermostats {
|
|
|
257
260
|
}
|
|
258
261
|
|
|
259
262
|
list(
|
|
260
|
-
|
|
263
|
+
params?: ThermostatsListParams,
|
|
261
264
|
): SeamHttpRequest<ThermostatsListResponse, 'devices'> {
|
|
262
265
|
return new SeamHttpRequest(this, {
|
|
263
266
|
pathname: '/thermostats/list',
|
|
264
|
-
method: '
|
|
265
|
-
body,
|
|
267
|
+
method: 'POST',
|
|
268
|
+
body: params,
|
|
266
269
|
responseKey: 'devices',
|
|
267
270
|
})
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
off(
|
|
271
274
|
body?: ThermostatsOffBody,
|
|
272
|
-
options:
|
|
275
|
+
options: ThermostatsOffOptions = {},
|
|
273
276
|
): SeamHttpRequest<ThermostatsOffResponse, 'action_attempt'> {
|
|
274
277
|
return new SeamHttpRequest(this, {
|
|
275
278
|
pathname: '/thermostats/off',
|
|
276
|
-
method: '
|
|
279
|
+
method: 'POST',
|
|
277
280
|
body,
|
|
278
281
|
responseKey: 'action_attempt',
|
|
279
282
|
options,
|
|
@@ -285,7 +288,7 @@ export class SeamHttpThermostats {
|
|
|
285
288
|
): SeamHttpRequest<void, undefined> {
|
|
286
289
|
return new SeamHttpRequest(this, {
|
|
287
290
|
pathname: '/thermostats/set_fallback_climate_preset',
|
|
288
|
-
method: '
|
|
291
|
+
method: 'POST',
|
|
289
292
|
body,
|
|
290
293
|
responseKey: undefined,
|
|
291
294
|
})
|
|
@@ -293,11 +296,11 @@ export class SeamHttpThermostats {
|
|
|
293
296
|
|
|
294
297
|
setFanMode(
|
|
295
298
|
body?: ThermostatsSetFanModeBody,
|
|
296
|
-
options:
|
|
299
|
+
options: ThermostatsSetFanModeOptions = {},
|
|
297
300
|
): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'> {
|
|
298
301
|
return new SeamHttpRequest(this, {
|
|
299
302
|
pathname: '/thermostats/set_fan_mode',
|
|
300
|
-
method: '
|
|
303
|
+
method: 'POST',
|
|
301
304
|
body,
|
|
302
305
|
responseKey: 'action_attempt',
|
|
303
306
|
options,
|
|
@@ -306,11 +309,11 @@ export class SeamHttpThermostats {
|
|
|
306
309
|
|
|
307
310
|
setHvacMode(
|
|
308
311
|
body?: ThermostatsSetHvacModeBody,
|
|
309
|
-
options:
|
|
312
|
+
options: ThermostatsSetHvacModeOptions = {},
|
|
310
313
|
): SeamHttpRequest<ThermostatsSetHvacModeResponse, 'action_attempt'> {
|
|
311
314
|
return new SeamHttpRequest(this, {
|
|
312
315
|
pathname: '/thermostats/set_hvac_mode',
|
|
313
|
-
method: '
|
|
316
|
+
method: 'POST',
|
|
314
317
|
body,
|
|
315
318
|
responseKey: 'action_attempt',
|
|
316
319
|
options,
|
|
@@ -322,7 +325,7 @@ export class SeamHttpThermostats {
|
|
|
322
325
|
): SeamHttpRequest<void, undefined> {
|
|
323
326
|
return new SeamHttpRequest(this, {
|
|
324
327
|
pathname: '/thermostats/set_temperature_threshold',
|
|
325
|
-
method: '
|
|
328
|
+
method: 'PATCH',
|
|
326
329
|
body,
|
|
327
330
|
responseKey: undefined,
|
|
328
331
|
})
|
|
@@ -333,7 +336,7 @@ export class SeamHttpThermostats {
|
|
|
333
336
|
): SeamHttpRequest<void, undefined> {
|
|
334
337
|
return new SeamHttpRequest(this, {
|
|
335
338
|
pathname: '/thermostats/update_climate_preset',
|
|
336
|
-
method: '
|
|
339
|
+
method: 'PATCH',
|
|
337
340
|
body,
|
|
338
341
|
responseKey: undefined,
|
|
339
342
|
})
|
|
@@ -341,11 +344,11 @@ export class SeamHttpThermostats {
|
|
|
341
344
|
|
|
342
345
|
updateWeeklyProgram(
|
|
343
346
|
body?: ThermostatsUpdateWeeklyProgramBody,
|
|
344
|
-
options:
|
|
347
|
+
options: ThermostatsUpdateWeeklyProgramOptions = {},
|
|
345
348
|
): SeamHttpRequest<ThermostatsUpdateWeeklyProgramResponse, 'action_attempt'> {
|
|
346
349
|
return new SeamHttpRequest(this, {
|
|
347
350
|
pathname: '/thermostats/update_weekly_program',
|
|
348
|
-
method: '
|
|
351
|
+
method: 'POST',
|
|
349
352
|
body,
|
|
350
353
|
responseKey: 'action_attempt',
|
|
351
354
|
options,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Automatically generated by
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
7
7
|
|
|
8
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
8
9
|
import {
|
|
9
10
|
getAuthHeadersForClientSessionToken,
|
|
10
11
|
warnOnInsecureuserIdentifierKey,
|
|
@@ -30,15 +31,16 @@ import {
|
|
|
30
31
|
limitToSeamHttpRequestOptions,
|
|
31
32
|
parseOptions,
|
|
32
33
|
} from 'lib/seam/connect/parse-options.js'
|
|
34
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
33
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
35
37
|
import type { SetNonNullable } from 'lib/types.js'
|
|
36
38
|
|
|
37
|
-
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
38
|
-
|
|
39
39
|
export class SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
40
40
|
client: Client
|
|
41
41
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
42
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
43
|
+
static ltsVersion = seamApiLtsVersion
|
|
42
44
|
|
|
43
45
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
44
46
|
const options = parseOptions(apiKeyOrOptions)
|
|
@@ -91,7 +93,7 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
|
91
93
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
92
94
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
93
95
|
throw new SeamHttpInvalidOptionsError(
|
|
94
|
-
'The client option cannot be used with
|
|
96
|
+
'The client option cannot be used with SeamHttpUserIdentitiesEnrollmentAutomations.fromPublishableKey',
|
|
95
97
|
)
|
|
96
98
|
}
|
|
97
99
|
const client = createClient(clientOptions)
|
|
@@ -165,26 +167,26 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
delete(
|
|
168
|
-
|
|
170
|
+
params?: UserIdentitiesEnrollmentAutomationsDeleteParams,
|
|
169
171
|
): SeamHttpRequest<void, undefined> {
|
|
170
172
|
return new SeamHttpRequest(this, {
|
|
171
173
|
pathname: '/user_identities/enrollment_automations/delete',
|
|
172
|
-
method: '
|
|
173
|
-
body,
|
|
174
|
+
method: 'POST',
|
|
175
|
+
body: params,
|
|
174
176
|
responseKey: undefined,
|
|
175
177
|
})
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
get(
|
|
179
|
-
|
|
181
|
+
params?: UserIdentitiesEnrollmentAutomationsGetParams,
|
|
180
182
|
): SeamHttpRequest<
|
|
181
183
|
UserIdentitiesEnrollmentAutomationsGetResponse,
|
|
182
184
|
'enrollment_automation'
|
|
183
185
|
> {
|
|
184
186
|
return new SeamHttpRequest(this, {
|
|
185
187
|
pathname: '/user_identities/enrollment_automations/get',
|
|
186
|
-
method: '
|
|
187
|
-
body,
|
|
188
|
+
method: 'POST',
|
|
189
|
+
body: params,
|
|
188
190
|
responseKey: 'enrollment_automation',
|
|
189
191
|
})
|
|
190
192
|
}
|
|
@@ -197,22 +199,22 @@ export class SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
|
197
199
|
> {
|
|
198
200
|
return new SeamHttpRequest(this, {
|
|
199
201
|
pathname: '/user_identities/enrollment_automations/launch',
|
|
200
|
-
method: '
|
|
202
|
+
method: 'POST',
|
|
201
203
|
body,
|
|
202
204
|
responseKey: 'enrollment_automation',
|
|
203
205
|
})
|
|
204
206
|
}
|
|
205
207
|
|
|
206
208
|
list(
|
|
207
|
-
|
|
209
|
+
params?: UserIdentitiesEnrollmentAutomationsListParams,
|
|
208
210
|
): SeamHttpRequest<
|
|
209
211
|
UserIdentitiesEnrollmentAutomationsListResponse,
|
|
210
212
|
'enrollment_automations'
|
|
211
213
|
> {
|
|
212
214
|
return new SeamHttpRequest(this, {
|
|
213
215
|
pathname: '/user_identities/enrollment_automations/list',
|
|
214
|
-
method: '
|
|
215
|
-
body,
|
|
216
|
+
method: 'POST',
|
|
217
|
+
body: params,
|
|
216
218
|
responseKey: 'enrollment_automations',
|
|
217
219
|
})
|
|
218
220
|
}
|
package/src/lib/seam/connect/routes/{user-identities.ts → user-identities/user-identities.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Automatically generated by
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'
|
|
7
7
|
|
|
8
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
8
9
|
import {
|
|
9
10
|
getAuthHeadersForClientSessionToken,
|
|
10
11
|
warnOnInsecureuserIdentifierKey,
|
|
@@ -30,16 +31,18 @@ import {
|
|
|
30
31
|
limitToSeamHttpRequestOptions,
|
|
31
32
|
parseOptions,
|
|
32
33
|
} from 'lib/seam/connect/parse-options.js'
|
|
34
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
33
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
35
37
|
import type { SetNonNullable } from 'lib/types.js'
|
|
36
38
|
|
|
37
|
-
import {
|
|
38
|
-
import { SeamHttpUserIdentitiesEnrollmentAutomations } from './user-identities-enrollment-automations.js'
|
|
39
|
+
import { SeamHttpUserIdentitiesEnrollmentAutomations } from './enrollment-automations/index.js'
|
|
39
40
|
|
|
40
41
|
export class SeamHttpUserIdentities {
|
|
41
42
|
client: Client
|
|
42
43
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
44
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
45
|
+
static ltsVersion = seamApiLtsVersion
|
|
43
46
|
|
|
44
47
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
45
48
|
const options = parseOptions(apiKeyOrOptions)
|
|
@@ -92,7 +95,7 @@ export class SeamHttpUserIdentities {
|
|
|
92
95
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
93
96
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
94
97
|
throw new SeamHttpInvalidOptionsError(
|
|
95
|
-
'The client option cannot be used with
|
|
98
|
+
'The client option cannot be used with SeamHttpUserIdentities.fromPublishableKey',
|
|
96
99
|
)
|
|
97
100
|
}
|
|
98
101
|
const client = createClient(clientOptions)
|
|
@@ -174,7 +177,7 @@ export class SeamHttpUserIdentities {
|
|
|
174
177
|
): SeamHttpRequest<void, undefined> {
|
|
175
178
|
return new SeamHttpRequest(this, {
|
|
176
179
|
pathname: '/user_identities/add_acs_user',
|
|
177
|
-
method: '
|
|
180
|
+
method: 'PUT',
|
|
178
181
|
body,
|
|
179
182
|
responseKey: undefined,
|
|
180
183
|
})
|
|
@@ -185,17 +188,19 @@ export class SeamHttpUserIdentities {
|
|
|
185
188
|
): SeamHttpRequest<UserIdentitiesCreateResponse, 'user_identity'> {
|
|
186
189
|
return new SeamHttpRequest(this, {
|
|
187
190
|
pathname: '/user_identities/create',
|
|
188
|
-
method: '
|
|
191
|
+
method: 'POST',
|
|
189
192
|
body,
|
|
190
193
|
responseKey: 'user_identity',
|
|
191
194
|
})
|
|
192
195
|
}
|
|
193
196
|
|
|
194
|
-
delete(
|
|
197
|
+
delete(
|
|
198
|
+
params?: UserIdentitiesDeleteParams,
|
|
199
|
+
): SeamHttpRequest<void, undefined> {
|
|
195
200
|
return new SeamHttpRequest(this, {
|
|
196
201
|
pathname: '/user_identities/delete',
|
|
197
|
-
method: '
|
|
198
|
-
body,
|
|
202
|
+
method: 'POST',
|
|
203
|
+
body: params,
|
|
199
204
|
responseKey: undefined,
|
|
200
205
|
})
|
|
201
206
|
}
|
|
@@ -205,19 +210,19 @@ export class SeamHttpUserIdentities {
|
|
|
205
210
|
): SeamHttpRequest<UserIdentitiesGenerateInstantKeyResponse, 'instant_key'> {
|
|
206
211
|
return new SeamHttpRequest(this, {
|
|
207
212
|
pathname: '/user_identities/generate_instant_key',
|
|
208
|
-
method: '
|
|
213
|
+
method: 'POST',
|
|
209
214
|
body,
|
|
210
215
|
responseKey: 'instant_key',
|
|
211
216
|
})
|
|
212
217
|
}
|
|
213
218
|
|
|
214
219
|
get(
|
|
215
|
-
|
|
220
|
+
params?: UserIdentitiesGetParams,
|
|
216
221
|
): SeamHttpRequest<UserIdentitiesGetResponse, 'user_identity'> {
|
|
217
222
|
return new SeamHttpRequest(this, {
|
|
218
223
|
pathname: '/user_identities/get',
|
|
219
|
-
method: '
|
|
220
|
-
body,
|
|
224
|
+
method: 'POST',
|
|
225
|
+
body: params,
|
|
221
226
|
responseKey: 'user_identity',
|
|
222
227
|
})
|
|
223
228
|
}
|
|
@@ -227,74 +232,74 @@ export class SeamHttpUserIdentities {
|
|
|
227
232
|
): SeamHttpRequest<void, undefined> {
|
|
228
233
|
return new SeamHttpRequest(this, {
|
|
229
234
|
pathname: '/user_identities/grant_access_to_device',
|
|
230
|
-
method: '
|
|
235
|
+
method: 'PUT',
|
|
231
236
|
body,
|
|
232
237
|
responseKey: undefined,
|
|
233
238
|
})
|
|
234
239
|
}
|
|
235
240
|
|
|
236
241
|
list(
|
|
237
|
-
|
|
242
|
+
params?: UserIdentitiesListParams,
|
|
238
243
|
): SeamHttpRequest<UserIdentitiesListResponse, 'user_identities'> {
|
|
239
244
|
return new SeamHttpRequest(this, {
|
|
240
245
|
pathname: '/user_identities/list',
|
|
241
|
-
method: '
|
|
242
|
-
body,
|
|
246
|
+
method: 'POST',
|
|
247
|
+
body: params,
|
|
243
248
|
responseKey: 'user_identities',
|
|
244
249
|
})
|
|
245
250
|
}
|
|
246
251
|
|
|
247
252
|
listAccessibleDevices(
|
|
248
|
-
|
|
253
|
+
params?: UserIdentitiesListAccessibleDevicesParams,
|
|
249
254
|
): SeamHttpRequest<UserIdentitiesListAccessibleDevicesResponse, 'devices'> {
|
|
250
255
|
return new SeamHttpRequest(this, {
|
|
251
256
|
pathname: '/user_identities/list_accessible_devices',
|
|
252
|
-
method: '
|
|
253
|
-
body,
|
|
257
|
+
method: 'POST',
|
|
258
|
+
body: params,
|
|
254
259
|
responseKey: 'devices',
|
|
255
260
|
})
|
|
256
261
|
}
|
|
257
262
|
|
|
258
263
|
listAcsSystems(
|
|
259
|
-
|
|
264
|
+
params?: UserIdentitiesListAcsSystemsParams,
|
|
260
265
|
): SeamHttpRequest<UserIdentitiesListAcsSystemsResponse, 'acs_systems'> {
|
|
261
266
|
return new SeamHttpRequest(this, {
|
|
262
267
|
pathname: '/user_identities/list_acs_systems',
|
|
263
|
-
method: '
|
|
264
|
-
body,
|
|
268
|
+
method: 'POST',
|
|
269
|
+
body: params,
|
|
265
270
|
responseKey: 'acs_systems',
|
|
266
271
|
})
|
|
267
272
|
}
|
|
268
273
|
|
|
269
274
|
listAcsUsers(
|
|
270
|
-
|
|
275
|
+
params?: UserIdentitiesListAcsUsersParams,
|
|
271
276
|
): SeamHttpRequest<UserIdentitiesListAcsUsersResponse, 'acs_users'> {
|
|
272
277
|
return new SeamHttpRequest(this, {
|
|
273
278
|
pathname: '/user_identities/list_acs_users',
|
|
274
|
-
method: '
|
|
275
|
-
body,
|
|
279
|
+
method: 'POST',
|
|
280
|
+
body: params,
|
|
276
281
|
responseKey: 'acs_users',
|
|
277
282
|
})
|
|
278
283
|
}
|
|
279
284
|
|
|
280
285
|
removeAcsUser(
|
|
281
|
-
|
|
286
|
+
params?: UserIdentitiesRemoveAcsUserParams,
|
|
282
287
|
): SeamHttpRequest<void, undefined> {
|
|
283
288
|
return new SeamHttpRequest(this, {
|
|
284
289
|
pathname: '/user_identities/remove_acs_user',
|
|
285
|
-
method: '
|
|
286
|
-
body,
|
|
290
|
+
method: 'POST',
|
|
291
|
+
body: params,
|
|
287
292
|
responseKey: undefined,
|
|
288
293
|
})
|
|
289
294
|
}
|
|
290
295
|
|
|
291
296
|
revokeAccessToDevice(
|
|
292
|
-
|
|
297
|
+
params?: UserIdentitiesRevokeAccessToDeviceParams,
|
|
293
298
|
): SeamHttpRequest<void, undefined> {
|
|
294
299
|
return new SeamHttpRequest(this, {
|
|
295
300
|
pathname: '/user_identities/revoke_access_to_device',
|
|
296
|
-
method: '
|
|
297
|
-
body,
|
|
301
|
+
method: 'POST',
|
|
302
|
+
body: params,
|
|
298
303
|
responseKey: undefined,
|
|
299
304
|
})
|
|
300
305
|
}
|
|
@@ -302,7 +307,7 @@ export class SeamHttpUserIdentities {
|
|
|
302
307
|
update(body?: UserIdentitiesUpdateBody): SeamHttpRequest<void, undefined> {
|
|
303
308
|
return new SeamHttpRequest(this, {
|
|
304
309
|
pathname: '/user_identities/update',
|
|
305
|
-
method: '
|
|
310
|
+
method: 'PATCH',
|
|
306
311
|
body,
|
|
307
312
|
responseKey: undefined,
|
|
308
313
|
})
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Automatically generated by
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
7
11
|
|
|
12
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
8
13
|
import {
|
|
9
14
|
getAuthHeadersForClientSessionToken,
|
|
10
15
|
warnOnInsecureuserIdentifierKey,
|
|
@@ -30,15 +35,16 @@ import {
|
|
|
30
35
|
limitToSeamHttpRequestOptions,
|
|
31
36
|
parseOptions,
|
|
32
37
|
} from 'lib/seam/connect/parse-options.js'
|
|
38
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
33
39
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
34
40
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
35
41
|
import type { SetNonNullable } from 'lib/types.js'
|
|
36
42
|
|
|
37
|
-
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
38
|
-
|
|
39
43
|
export class SeamHttpWebhooks {
|
|
40
44
|
client: Client
|
|
41
45
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
46
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
47
|
+
static ltsVersion = seamApiLtsVersion
|
|
42
48
|
|
|
43
49
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
44
50
|
const options = parseOptions(apiKeyOrOptions)
|
|
@@ -91,7 +97,7 @@ export class SeamHttpWebhooks {
|
|
|
91
97
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
92
98
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
93
99
|
throw new SeamHttpInvalidOptionsError(
|
|
94
|
-
'The client option cannot be used with
|
|
100
|
+
'The client option cannot be used with SeamHttpWebhooks.fromPublishableKey',
|
|
95
101
|
)
|
|
96
102
|
}
|
|
97
103
|
const client = createClient(clientOptions)
|
|
@@ -166,39 +172,39 @@ export class SeamHttpWebhooks {
|
|
|
166
172
|
): SeamHttpRequest<WebhooksCreateResponse, 'webhook'> {
|
|
167
173
|
return new SeamHttpRequest(this, {
|
|
168
174
|
pathname: '/webhooks/create',
|
|
169
|
-
method: '
|
|
175
|
+
method: 'POST',
|
|
170
176
|
body,
|
|
171
177
|
responseKey: 'webhook',
|
|
172
178
|
})
|
|
173
179
|
}
|
|
174
180
|
|
|
175
|
-
delete(
|
|
181
|
+
delete(params?: WebhooksDeleteParams): SeamHttpRequest<void, undefined> {
|
|
176
182
|
return new SeamHttpRequest(this, {
|
|
177
183
|
pathname: '/webhooks/delete',
|
|
178
|
-
method: '
|
|
179
|
-
body,
|
|
184
|
+
method: 'POST',
|
|
185
|
+
body: params,
|
|
180
186
|
responseKey: undefined,
|
|
181
187
|
})
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
get(
|
|
185
|
-
|
|
191
|
+
params?: WebhooksGetParams,
|
|
186
192
|
): SeamHttpRequest<WebhooksGetResponse, 'webhook'> {
|
|
187
193
|
return new SeamHttpRequest(this, {
|
|
188
194
|
pathname: '/webhooks/get',
|
|
189
|
-
method: '
|
|
190
|
-
body,
|
|
195
|
+
method: 'POST',
|
|
196
|
+
body: params,
|
|
191
197
|
responseKey: 'webhook',
|
|
192
198
|
})
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
list(
|
|
196
|
-
|
|
202
|
+
params?: WebhooksListParams,
|
|
197
203
|
): SeamHttpRequest<WebhooksListResponse, 'webhooks'> {
|
|
198
204
|
return new SeamHttpRequest(this, {
|
|
199
205
|
pathname: '/webhooks/list',
|
|
200
|
-
method: '
|
|
201
|
-
|
|
206
|
+
method: 'GET',
|
|
207
|
+
params,
|
|
202
208
|
responseKey: 'webhooks',
|
|
203
209
|
})
|
|
204
210
|
}
|
|
@@ -206,7 +212,7 @@ export class SeamHttpWebhooks {
|
|
|
206
212
|
update(body?: WebhooksUpdateBody): SeamHttpRequest<void, undefined> {
|
|
207
213
|
return new SeamHttpRequest(this, {
|
|
208
214
|
pathname: '/webhooks/update',
|
|
209
|
-
method: '
|
|
215
|
+
method: 'PUT',
|
|
210
216
|
body,
|
|
211
217
|
responseKey: undefined,
|
|
212
218
|
})
|
|
@@ -237,7 +243,7 @@ export type WebhooksGetResponse = SetNonNullable<
|
|
|
237
243
|
|
|
238
244
|
export type WebhooksGetOptions = never
|
|
239
245
|
|
|
240
|
-
export type WebhooksListParams =
|
|
246
|
+
export type WebhooksListParams = RouteRequestParams<'/webhooks/list'>
|
|
241
247
|
|
|
242
248
|
export type WebhooksListResponse = SetNonNullable<
|
|
243
249
|
Required<RouteResponse<'/webhooks/list'>>
|