@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
|
@@ -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 SeamHttpAcsUsers {
|
|
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 SeamHttpAcsUsers {
|
|
|
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 SeamHttpAcsUsers.fromPublishableKey',
|
|
95
97
|
)
|
|
96
98
|
}
|
|
97
99
|
const client = createClient(clientOptions)
|
|
@@ -166,7 +168,7 @@ export class SeamHttpAcsUsers {
|
|
|
166
168
|
): SeamHttpRequest<void, undefined> {
|
|
167
169
|
return new SeamHttpRequest(this, {
|
|
168
170
|
pathname: '/acs/users/add_to_access_group',
|
|
169
|
-
method: '
|
|
171
|
+
method: 'PUT',
|
|
170
172
|
body,
|
|
171
173
|
responseKey: undefined,
|
|
172
174
|
})
|
|
@@ -177,71 +179,71 @@ export class SeamHttpAcsUsers {
|
|
|
177
179
|
): SeamHttpRequest<AcsUsersCreateResponse, 'acs_user'> {
|
|
178
180
|
return new SeamHttpRequest(this, {
|
|
179
181
|
pathname: '/acs/users/create',
|
|
180
|
-
method: '
|
|
182
|
+
method: 'POST',
|
|
181
183
|
body,
|
|
182
184
|
responseKey: 'acs_user',
|
|
183
185
|
})
|
|
184
186
|
}
|
|
185
187
|
|
|
186
|
-
delete(
|
|
188
|
+
delete(params?: AcsUsersDeleteParams): SeamHttpRequest<void, undefined> {
|
|
187
189
|
return new SeamHttpRequest(this, {
|
|
188
190
|
pathname: '/acs/users/delete',
|
|
189
|
-
method: '
|
|
190
|
-
body,
|
|
191
|
+
method: 'POST',
|
|
192
|
+
body: params,
|
|
191
193
|
responseKey: undefined,
|
|
192
194
|
})
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
get(
|
|
196
|
-
|
|
198
|
+
params?: AcsUsersGetParams,
|
|
197
199
|
): SeamHttpRequest<AcsUsersGetResponse, 'acs_user'> {
|
|
198
200
|
return new SeamHttpRequest(this, {
|
|
199
201
|
pathname: '/acs/users/get',
|
|
200
|
-
method: '
|
|
201
|
-
body,
|
|
202
|
+
method: 'POST',
|
|
203
|
+
body: params,
|
|
202
204
|
responseKey: 'acs_user',
|
|
203
205
|
})
|
|
204
206
|
}
|
|
205
207
|
|
|
206
208
|
list(
|
|
207
|
-
|
|
209
|
+
params?: AcsUsersListParams,
|
|
208
210
|
): SeamHttpRequest<AcsUsersListResponse, 'acs_users'> {
|
|
209
211
|
return new SeamHttpRequest(this, {
|
|
210
212
|
pathname: '/acs/users/list',
|
|
211
|
-
method: '
|
|
212
|
-
body,
|
|
213
|
+
method: 'POST',
|
|
214
|
+
body: params,
|
|
213
215
|
responseKey: 'acs_users',
|
|
214
216
|
})
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
listAccessibleEntrances(
|
|
218
|
-
|
|
220
|
+
params?: AcsUsersListAccessibleEntrancesParams,
|
|
219
221
|
): SeamHttpRequest<AcsUsersListAccessibleEntrancesResponse, 'acs_entrances'> {
|
|
220
222
|
return new SeamHttpRequest(this, {
|
|
221
223
|
pathname: '/acs/users/list_accessible_entrances',
|
|
222
|
-
method: '
|
|
223
|
-
body,
|
|
224
|
+
method: 'POST',
|
|
225
|
+
body: params,
|
|
224
226
|
responseKey: 'acs_entrances',
|
|
225
227
|
})
|
|
226
228
|
}
|
|
227
229
|
|
|
228
230
|
removeFromAccessGroup(
|
|
229
|
-
|
|
231
|
+
params?: AcsUsersRemoveFromAccessGroupParams,
|
|
230
232
|
): SeamHttpRequest<void, undefined> {
|
|
231
233
|
return new SeamHttpRequest(this, {
|
|
232
234
|
pathname: '/acs/users/remove_from_access_group',
|
|
233
|
-
method: '
|
|
234
|
-
body,
|
|
235
|
+
method: 'POST',
|
|
236
|
+
body: params,
|
|
235
237
|
responseKey: undefined,
|
|
236
238
|
})
|
|
237
239
|
}
|
|
238
240
|
|
|
239
241
|
revokeAccessToAllEntrances(
|
|
240
|
-
body?:
|
|
242
|
+
body?: AcsUsersRevokeAccessToAllEntrancesBody,
|
|
241
243
|
): SeamHttpRequest<void, undefined> {
|
|
242
244
|
return new SeamHttpRequest(this, {
|
|
243
245
|
pathname: '/acs/users/revoke_access_to_all_entrances',
|
|
244
|
-
method: '
|
|
246
|
+
method: 'POST',
|
|
245
247
|
body,
|
|
246
248
|
responseKey: undefined,
|
|
247
249
|
})
|
|
@@ -250,7 +252,7 @@ export class SeamHttpAcsUsers {
|
|
|
250
252
|
suspend(body?: AcsUsersSuspendBody): SeamHttpRequest<void, undefined> {
|
|
251
253
|
return new SeamHttpRequest(this, {
|
|
252
254
|
pathname: '/acs/users/suspend',
|
|
253
|
-
method: '
|
|
255
|
+
method: 'POST',
|
|
254
256
|
body,
|
|
255
257
|
responseKey: undefined,
|
|
256
258
|
})
|
|
@@ -259,7 +261,7 @@ export class SeamHttpAcsUsers {
|
|
|
259
261
|
unsuspend(body?: AcsUsersUnsuspendBody): SeamHttpRequest<void, undefined> {
|
|
260
262
|
return new SeamHttpRequest(this, {
|
|
261
263
|
pathname: '/acs/users/unsuspend',
|
|
262
|
-
method: '
|
|
264
|
+
method: 'POST',
|
|
263
265
|
body,
|
|
264
266
|
responseKey: undefined,
|
|
265
267
|
})
|
|
@@ -268,7 +270,7 @@ export class SeamHttpAcsUsers {
|
|
|
268
270
|
update(body?: AcsUsersUpdateBody): SeamHttpRequest<void, undefined> {
|
|
269
271
|
return new SeamHttpRequest(this, {
|
|
270
272
|
pathname: '/acs/users/update',
|
|
271
|
-
method: '
|
|
273
|
+
method: 'PATCH',
|
|
272
274
|
body,
|
|
273
275
|
responseKey: undefined,
|
|
274
276
|
})
|
|
@@ -334,7 +336,7 @@ export type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<
|
|
|
334
336
|
|
|
335
337
|
export type AcsUsersRemoveFromAccessGroupOptions = never
|
|
336
338
|
|
|
337
|
-
export type
|
|
339
|
+
export type AcsUsersRevokeAccessToAllEntrancesBody =
|
|
338
340
|
RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>
|
|
339
341
|
|
|
340
342
|
export type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable<
|
package/src/lib/seam/connect/routes/{action-attempts.ts → action-attempts/action-attempts.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,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 SeamHttpActionAttempts {
|
|
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 SeamHttpActionAttempts {
|
|
|
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 SeamHttpActionAttempts.fromPublishableKey',
|
|
95
97
|
)
|
|
96
98
|
}
|
|
97
99
|
const client = createClient(clientOptions)
|
|
@@ -162,25 +164,25 @@ export class SeamHttpActionAttempts {
|
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
get(
|
|
165
|
-
|
|
166
|
-
options:
|
|
167
|
+
params?: ActionAttemptsGetParams,
|
|
168
|
+
options: ActionAttemptsGetOptions = {},
|
|
167
169
|
): SeamHttpRequest<ActionAttemptsGetResponse, 'action_attempt'> {
|
|
168
170
|
return new SeamHttpRequest(this, {
|
|
169
171
|
pathname: '/action_attempts/get',
|
|
170
|
-
method: '
|
|
171
|
-
body,
|
|
172
|
+
method: 'POST',
|
|
173
|
+
body: params,
|
|
172
174
|
responseKey: 'action_attempt',
|
|
173
175
|
options,
|
|
174
176
|
})
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
list(
|
|
178
|
-
|
|
180
|
+
params?: ActionAttemptsListParams,
|
|
179
181
|
): SeamHttpRequest<ActionAttemptsListResponse, 'action_attempts'> {
|
|
180
182
|
return new SeamHttpRequest(this, {
|
|
181
183
|
pathname: '/action_attempts/list',
|
|
182
|
-
method: '
|
|
183
|
-
body,
|
|
184
|
+
method: 'POST',
|
|
185
|
+
body: params,
|
|
184
186
|
responseKey: 'action_attempts',
|
|
185
187
|
})
|
|
186
188
|
}
|
package/src/lib/seam/connect/routes/{client-sessions.ts → client-sessions/client-sessions.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,
|
|
@@ -37,6 +38,8 @@ import type { SetNonNullable } from 'lib/types.js'
|
|
|
37
38
|
export class SeamHttpClientSessions {
|
|
38
39
|
client: Client
|
|
39
40
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
41
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
42
|
+
static ltsVersion = seamApiLtsVersion
|
|
40
43
|
|
|
41
44
|
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
42
45
|
const options = parseOptions(apiKeyOrOptions)
|
|
@@ -89,7 +92,7 @@ export class SeamHttpClientSessions {
|
|
|
89
92
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
90
93
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
91
94
|
throw new SeamHttpInvalidOptionsError(
|
|
92
|
-
'The client option cannot be used with
|
|
95
|
+
'The client option cannot be used with SeamHttpClientSessions.fromPublishableKey',
|
|
93
96
|
)
|
|
94
97
|
}
|
|
95
98
|
const client = createClient(clientOptions)
|
|
@@ -164,28 +167,30 @@ export class SeamHttpClientSessions {
|
|
|
164
167
|
): SeamHttpRequest<ClientSessionsCreateResponse, 'client_session'> {
|
|
165
168
|
return new SeamHttpRequest(this, {
|
|
166
169
|
pathname: '/client_sessions/create',
|
|
167
|
-
method: '
|
|
170
|
+
method: 'PUT',
|
|
168
171
|
body,
|
|
169
172
|
responseKey: 'client_session',
|
|
170
173
|
})
|
|
171
174
|
}
|
|
172
175
|
|
|
173
|
-
delete(
|
|
176
|
+
delete(
|
|
177
|
+
params?: ClientSessionsDeleteParams,
|
|
178
|
+
): SeamHttpRequest<void, undefined> {
|
|
174
179
|
return new SeamHttpRequest(this, {
|
|
175
180
|
pathname: '/client_sessions/delete',
|
|
176
|
-
method: '
|
|
177
|
-
body,
|
|
181
|
+
method: 'POST',
|
|
182
|
+
body: params,
|
|
178
183
|
responseKey: undefined,
|
|
179
184
|
})
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
get(
|
|
183
|
-
|
|
188
|
+
params?: ClientSessionsGetParams,
|
|
184
189
|
): SeamHttpRequest<ClientSessionsGetResponse, 'client_session'> {
|
|
185
190
|
return new SeamHttpRequest(this, {
|
|
186
191
|
pathname: '/client_sessions/get',
|
|
187
|
-
method: '
|
|
188
|
-
body,
|
|
192
|
+
method: 'POST',
|
|
193
|
+
body: params,
|
|
189
194
|
responseKey: 'client_session',
|
|
190
195
|
})
|
|
191
196
|
}
|
|
@@ -195,7 +200,7 @@ export class SeamHttpClientSessions {
|
|
|
195
200
|
): SeamHttpRequest<ClientSessionsGetOrCreateResponse, 'client_session'> {
|
|
196
201
|
return new SeamHttpRequest(this, {
|
|
197
202
|
pathname: '/client_sessions/get_or_create',
|
|
198
|
-
method: '
|
|
203
|
+
method: 'POST',
|
|
199
204
|
body,
|
|
200
205
|
responseKey: 'client_session',
|
|
201
206
|
})
|
|
@@ -206,27 +211,27 @@ export class SeamHttpClientSessions {
|
|
|
206
211
|
): SeamHttpRequest<void, undefined> {
|
|
207
212
|
return new SeamHttpRequest(this, {
|
|
208
213
|
pathname: '/client_sessions/grant_access',
|
|
209
|
-
method: '
|
|
214
|
+
method: 'PATCH',
|
|
210
215
|
body,
|
|
211
216
|
responseKey: undefined,
|
|
212
217
|
})
|
|
213
218
|
}
|
|
214
219
|
|
|
215
220
|
list(
|
|
216
|
-
|
|
221
|
+
params?: ClientSessionsListParams,
|
|
217
222
|
): SeamHttpRequest<ClientSessionsListResponse, 'client_sessions'> {
|
|
218
223
|
return new SeamHttpRequest(this, {
|
|
219
224
|
pathname: '/client_sessions/list',
|
|
220
|
-
method: '
|
|
221
|
-
body,
|
|
225
|
+
method: 'POST',
|
|
226
|
+
body: params,
|
|
222
227
|
responseKey: 'client_sessions',
|
|
223
228
|
})
|
|
224
229
|
}
|
|
225
230
|
|
|
226
|
-
revoke(body?:
|
|
231
|
+
revoke(body?: ClientSessionsRevokeBody): SeamHttpRequest<void, undefined> {
|
|
227
232
|
return new SeamHttpRequest(this, {
|
|
228
233
|
pathname: '/client_sessions/revoke',
|
|
229
|
-
method: '
|
|
234
|
+
method: 'POST',
|
|
230
235
|
body,
|
|
231
236
|
responseKey: undefined,
|
|
232
237
|
})
|
|
@@ -285,7 +290,7 @@ export type ClientSessionsListResponse = SetNonNullable<
|
|
|
285
290
|
|
|
286
291
|
export type ClientSessionsListOptions = never
|
|
287
292
|
|
|
288
|
-
export type
|
|
293
|
+
export type ClientSessionsRevokeBody =
|
|
289
294
|
RouteRequestBody<'/client_sessions/revoke'>
|
|
290
295
|
|
|
291
296
|
export type ClientSessionsRevokeResponse = SetNonNullable<
|
package/src/lib/seam/connect/routes/{connect-webviews.ts → connect-webviews/connect-webviews.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,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 SeamHttpConnectWebviews {
|
|
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 SeamHttpConnectWebviews {
|
|
|
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 SeamHttpConnectWebviews.fromPublishableKey',
|
|
95
97
|
)
|
|
96
98
|
}
|
|
97
99
|
const client = createClient(clientOptions)
|
|
@@ -166,39 +168,41 @@ export class SeamHttpConnectWebviews {
|
|
|
166
168
|
): SeamHttpRequest<ConnectWebviewsCreateResponse, 'connect_webview'> {
|
|
167
169
|
return new SeamHttpRequest(this, {
|
|
168
170
|
pathname: '/connect_webviews/create',
|
|
169
|
-
method: '
|
|
171
|
+
method: 'POST',
|
|
170
172
|
body,
|
|
171
173
|
responseKey: 'connect_webview',
|
|
172
174
|
})
|
|
173
175
|
}
|
|
174
176
|
|
|
175
|
-
delete(
|
|
177
|
+
delete(
|
|
178
|
+
params?: ConnectWebviewsDeleteParams,
|
|
179
|
+
): SeamHttpRequest<void, undefined> {
|
|
176
180
|
return new SeamHttpRequest(this, {
|
|
177
181
|
pathname: '/connect_webviews/delete',
|
|
178
|
-
method: '
|
|
179
|
-
body,
|
|
182
|
+
method: 'POST',
|
|
183
|
+
body: params,
|
|
180
184
|
responseKey: undefined,
|
|
181
185
|
})
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
get(
|
|
185
|
-
|
|
189
|
+
params?: ConnectWebviewsGetParams,
|
|
186
190
|
): SeamHttpRequest<ConnectWebviewsGetResponse, 'connect_webview'> {
|
|
187
191
|
return new SeamHttpRequest(this, {
|
|
188
192
|
pathname: '/connect_webviews/get',
|
|
189
|
-
method: '
|
|
190
|
-
body,
|
|
193
|
+
method: 'POST',
|
|
194
|
+
body: params,
|
|
191
195
|
responseKey: 'connect_webview',
|
|
192
196
|
})
|
|
193
197
|
}
|
|
194
198
|
|
|
195
199
|
list(
|
|
196
|
-
|
|
200
|
+
params?: ConnectWebviewsListParams,
|
|
197
201
|
): SeamHttpRequest<ConnectWebviewsListResponse, 'connect_webviews'> {
|
|
198
202
|
return new SeamHttpRequest(this, {
|
|
199
203
|
pathname: '/connect_webviews/list',
|
|
200
|
-
method: '
|
|
201
|
-
body,
|
|
204
|
+
method: 'POST',
|
|
205
|
+
body: params,
|
|
202
206
|
responseKey: 'connect_webviews',
|
|
203
207
|
})
|
|
204
208
|
}
|
|
@@ -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 SeamHttpConnectedAccounts {
|
|
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 SeamHttpConnectedAccounts {
|
|
|
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 SeamHttpConnectedAccounts.fromPublishableKey',
|
|
95
101
|
)
|
|
96
102
|
}
|
|
97
103
|
const client = createClient(clientOptions)
|
|
@@ -162,34 +168,34 @@ export class SeamHttpConnectedAccounts {
|
|
|
162
168
|
}
|
|
163
169
|
|
|
164
170
|
delete(
|
|
165
|
-
|
|
171
|
+
params?: ConnectedAccountsDeleteParams,
|
|
166
172
|
): SeamHttpRequest<void, undefined> {
|
|
167
173
|
return new SeamHttpRequest(this, {
|
|
168
174
|
pathname: '/connected_accounts/delete',
|
|
169
|
-
method: '
|
|
170
|
-
body,
|
|
175
|
+
method: 'POST',
|
|
176
|
+
body: params,
|
|
171
177
|
responseKey: undefined,
|
|
172
178
|
})
|
|
173
179
|
}
|
|
174
180
|
|
|
175
181
|
get(
|
|
176
|
-
|
|
182
|
+
params?: ConnectedAccountsGetParams,
|
|
177
183
|
): SeamHttpRequest<ConnectedAccountsGetResponse, 'connected_account'> {
|
|
178
184
|
return new SeamHttpRequest(this, {
|
|
179
185
|
pathname: '/connected_accounts/get',
|
|
180
|
-
method: '
|
|
181
|
-
|
|
186
|
+
method: 'GET',
|
|
187
|
+
params,
|
|
182
188
|
responseKey: 'connected_account',
|
|
183
189
|
})
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
list(
|
|
187
|
-
|
|
193
|
+
params?: ConnectedAccountsListParams,
|
|
188
194
|
): SeamHttpRequest<ConnectedAccountsListResponse, 'connected_accounts'> {
|
|
189
195
|
return new SeamHttpRequest(this, {
|
|
190
196
|
pathname: '/connected_accounts/list',
|
|
191
|
-
method: '
|
|
192
|
-
body,
|
|
197
|
+
method: 'POST',
|
|
198
|
+
body: params,
|
|
193
199
|
responseKey: 'connected_accounts',
|
|
194
200
|
})
|
|
195
201
|
}
|
|
@@ -197,7 +203,7 @@ export class SeamHttpConnectedAccounts {
|
|
|
197
203
|
sync(body?: ConnectedAccountsSyncBody): SeamHttpRequest<void, undefined> {
|
|
198
204
|
return new SeamHttpRequest(this, {
|
|
199
205
|
pathname: '/connected_accounts/sync',
|
|
200
|
-
method: '
|
|
206
|
+
method: 'POST',
|
|
201
207
|
body,
|
|
202
208
|
responseKey: undefined,
|
|
203
209
|
})
|
|
@@ -206,7 +212,7 @@ export class SeamHttpConnectedAccounts {
|
|
|
206
212
|
update(body?: ConnectedAccountsUpdateBody): SeamHttpRequest<void, undefined> {
|
|
207
213
|
return new SeamHttpRequest(this, {
|
|
208
214
|
pathname: '/connected_accounts/update',
|
|
209
|
-
method: '
|
|
215
|
+
method: 'POST',
|
|
210
216
|
body,
|
|
211
217
|
responseKey: undefined,
|
|
212
218
|
})
|
|
@@ -223,7 +229,7 @@ export type ConnectedAccountsDeleteResponse = SetNonNullable<
|
|
|
223
229
|
export type ConnectedAccountsDeleteOptions = never
|
|
224
230
|
|
|
225
231
|
export type ConnectedAccountsGetParams =
|
|
226
|
-
|
|
232
|
+
RouteRequestParams<'/connected_accounts/get'>
|
|
227
233
|
|
|
228
234
|
export type ConnectedAccountsGetResponse = SetNonNullable<
|
|
229
235
|
Required<RouteResponse<'/connected_accounts/get'>>
|