@seamapi/http 1.119.0 → 1.121.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 +168 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +700 -659
- package/dist/index.cjs +170 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +20 -21
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +2 -3
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +9 -10
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +10 -11
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +5 -6
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +12 -13
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +4 -5
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +13 -14
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.d.ts +3 -4
- package/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/credential-pools/credential-pools.d.ts +2 -3
- package/lib/seam/connect/routes/acs/credential-pools/credential-pools.js.map +1 -1
- package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.d.ts +2 -3
- package/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +17 -18
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.d.ts +3 -4
- package/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +9 -10
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +8 -9
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +9 -10
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +7 -8
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.d.ts +3 -4
- package/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +14 -15
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +3 -4
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/bridges/bridges.d.ts +3 -4
- package/lib/seam/connect/routes/bridges/bridges.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +9 -10
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +6 -7
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +8 -9
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +2 -3
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +4 -5
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/customers/reservations/reservations.d.ts +2 -3
- package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +9 -10
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +12 -13
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +4 -5
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/events/events.d.ts +2 -3
- package/lib/seam/connect/routes/events/events.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +4 -5
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +8 -9
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +4 -5
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +1 -2
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +10 -11
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +2 -3
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +5 -6
- package/lib/seam/connect/routes/phones/phones.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +2 -3
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.d.ts +8 -9
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/sites/sites.d.ts +7 -8
- package/lib/seam/connect/routes/seam/console/v1/sites/sites.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/timelines/timelines.d.ts +2 -3
- package/lib/seam/connect/routes/seam/console/v1/timelines/timelines.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +1 -2
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/feature-flags.d.ts +46 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/feature-flags.js +116 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/feature-flags.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/index.js +6 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/index.js +6 -0
- package/lib/seam/connect/routes/seam/console/v1/workspace/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.d.ts +3 -4
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.d.ts +1 -2
- package/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.d.ts +3 -4
- package/lib/seam/connect/routes/seam/customer/v1/automations/automations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.d.ts +1 -2
- package/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +12 -13
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.d.ts +4 -5
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.d.ts +1 -2
- package/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/events/events.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/events/events.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/portals/portals.d.ts +4 -5
- package/lib/seam/connect/routes/seam/customer/v1/portals/portals.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.d.ts +4 -5
- package/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +2 -3
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.d.ts +1 -2
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.d.ts +6 -7
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.d.ts +3 -4
- package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.js.map +1 -1
- package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.d.ts +1 -2
- package/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +5 -3
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +11 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +190 -187
- package/lib/seam/connect/routes/seam-http-endpoints.js +21 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +20 -21
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +6 -7
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +10 -11
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +4 -5
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +28 -29
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.d.ts +8 -9
- package/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.d.ts +8 -9
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +5 -6
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +25 -26
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +9 -10
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.d.ts +7 -8
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +8 -9
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +26 -43
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +2 -7
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +14 -20
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +12 -25
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +8 -12
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +17 -27
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +6 -9
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +19 -28
- package/src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts +5 -8
- package/src/lib/seam/connect/routes/acs/credential-pools/credential-pools.ts +3 -5
- package/src/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.ts +3 -5
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +24 -36
- package/src/lib/seam/connect/routes/acs/credentials/unmanaged/unmanaged.ts +5 -8
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +12 -20
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +8 -25
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +11 -20
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +8 -18
- package/src/lib/seam/connect/routes/acs/users/unmanaged/unmanaged.ts +5 -8
- package/src/lib/seam/connect/routes/acs/users/users.ts +18 -37
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +3 -8
- package/src/lib/seam/connect/routes/bridges/bridges.ts +3 -8
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +14 -24
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +9 -15
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +13 -19
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +3 -5
- package/src/lib/seam/connect/routes/customers/customers.ts +6 -11
- package/src/lib/seam/connect/routes/customers/reservations/reservations.ts +3 -5
- package/src/lib/seam/connect/routes/devices/devices.ts +11 -22
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +18 -25
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +7 -11
- package/src/lib/seam/connect/routes/events/events.ts +2 -7
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +4 -11
- package/src/lib/seam/connect/routes/locks/locks.ts +9 -19
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +6 -9
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +1 -4
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +15 -21
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +3 -5
- package/src/lib/seam/connect/routes/phones/phones.ts +5 -12
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +3 -5
- package/src/lib/seam/connect/routes/seam/console/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts +9 -23
- package/src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts +11 -16
- package/src/lib/seam/connect/routes/seam/console/v1/timelines/timelines.ts +3 -5
- package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +2 -4
- package/src/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/feature-flags.ts +256 -0
- package/src/lib/seam/connect/routes/seam/console/v1/workspace/feature-flags/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/console/v1/workspace/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts +5 -8
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts +3 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts +2 -4
- package/src/lib/seam/connect/routes/seam/customer/v1/automations/automations.ts +6 -10
- package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.ts +2 -4
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +19 -27
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts +3 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/ical/ical.ts +3 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/automations/automations.ts +4 -7
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +7 -11
- package/src/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.ts +2 -4
- package/src/lib/seam/connect/routes/seam/customer/v1/events/events.ts +3 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts +6 -9
- package/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts +7 -11
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +4 -7
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts +1 -6
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +10 -15
- package/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts +5 -8
- package/src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts +2 -4
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +30 -2
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +238 -185
- package/src/lib/seam/connect/routes/spaces/spaces.ts +25 -45
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +9 -13
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +15 -21
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +6 -9
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +38 -59
- package/src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts +9 -21
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +12 -17
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +8 -12
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +37 -54
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +9 -20
- package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +11 -18
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +10 -21
- package/src/lib/version.ts +1 -1
- package/lib/types.d.ts +0 -3
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/src/lib/types.ts +0 -8
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamConsoleV1Timelines {
|
|
40
39
|
client: Client
|
|
@@ -169,7 +168,7 @@ export class SeamHttpSeamConsoleV1Timelines {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
get(
|
|
172
|
-
parameters
|
|
171
|
+
parameters: SeamConsoleV1TimelinesGetParameters,
|
|
173
172
|
options: SeamConsoleV1TimelinesGetOptions = {},
|
|
174
173
|
): SeamConsoleV1TimelinesGetRequest {
|
|
175
174
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -199,9 +198,8 @@ export type SeamConsoleV1TimelinesGetParams =
|
|
|
199
198
|
/**
|
|
200
199
|
* @deprecated Use SeamConsoleV1TimelinesGetRequest instead.
|
|
201
200
|
*/
|
|
202
|
-
export type SeamConsoleV1TimelinesGetResponse =
|
|
203
|
-
|
|
204
|
-
>
|
|
201
|
+
export type SeamConsoleV1TimelinesGetResponse =
|
|
202
|
+
RouteResponse<'/seam/console/v1/timelines/get'>
|
|
205
203
|
|
|
206
204
|
export type SeamConsoleV1TimelinesGetRequest = SeamHttpRequest<
|
|
207
205
|
SeamConsoleV1TimelinesGetResponse,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
import { SeamHttpSeamConsoleV1LynxMigration } from './lynx-migration/index.js'
|
|
40
39
|
import { SeamHttpSeamConsoleV1Sites } from './sites/index.js'
|
|
@@ -218,9 +217,8 @@ export type SeamConsoleV1GetResourceLocatorParams =
|
|
|
218
217
|
/**
|
|
219
218
|
* @deprecated Use SeamConsoleV1GetResourceLocatorRequest instead.
|
|
220
219
|
*/
|
|
221
|
-
export type SeamConsoleV1GetResourceLocatorResponse =
|
|
222
|
-
|
|
223
|
-
>
|
|
220
|
+
export type SeamConsoleV1GetResourceLocatorResponse =
|
|
221
|
+
RouteResponse<'/seam/console/v1/get_resource_locator'>
|
|
224
222
|
|
|
225
223
|
export type SeamConsoleV1GetResourceLocatorRequest = SeamHttpRequest<
|
|
226
224
|
SeamConsoleV1GetResourceLocatorResponse,
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
11
|
+
|
|
12
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
13
|
+
import {
|
|
14
|
+
getAuthHeadersForClientSessionToken,
|
|
15
|
+
warnOnInsecureuserIdentifierKey,
|
|
16
|
+
} from 'lib/seam/connect/auth.js'
|
|
17
|
+
import { type Client, createClient } from 'lib/seam/connect/client.js'
|
|
18
|
+
import {
|
|
19
|
+
isSeamHttpOptionsWithApiKey,
|
|
20
|
+
isSeamHttpOptionsWithClient,
|
|
21
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
22
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
23
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
24
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
25
|
+
SeamHttpInvalidOptionsError,
|
|
26
|
+
type SeamHttpOptions,
|
|
27
|
+
type SeamHttpOptionsWithApiKey,
|
|
28
|
+
type SeamHttpOptionsWithClient,
|
|
29
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
30
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
31
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
32
|
+
type SeamHttpRequestOptions,
|
|
33
|
+
} from 'lib/seam/connect/options.js'
|
|
34
|
+
import {
|
|
35
|
+
limitToSeamHttpRequestOptions,
|
|
36
|
+
parseOptions,
|
|
37
|
+
} from 'lib/seam/connect/parse-options.js'
|
|
38
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
39
|
+
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
40
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
41
|
+
|
|
42
|
+
export class SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
43
|
+
client: Client
|
|
44
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
45
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
46
|
+
static ltsVersion = seamApiLtsVersion
|
|
47
|
+
|
|
48
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
49
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
50
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
56
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static fromClient(
|
|
60
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
61
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
62
|
+
): SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
63
|
+
const constructorOptions = { ...options, client }
|
|
64
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
65
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
66
|
+
}
|
|
67
|
+
return new SeamHttpSeamConsoleV1WorkspaceFeatureFlags(constructorOptions)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static fromApiKey(
|
|
71
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
72
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
73
|
+
): SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
74
|
+
const constructorOptions = { ...options, apiKey }
|
|
75
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
76
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
77
|
+
}
|
|
78
|
+
return new SeamHttpSeamConsoleV1WorkspaceFeatureFlags(constructorOptions)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static fromClientSessionToken(
|
|
82
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
83
|
+
options: Omit<
|
|
84
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
85
|
+
'clientSessionToken'
|
|
86
|
+
> = {},
|
|
87
|
+
): SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
88
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
89
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
90
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
91
|
+
}
|
|
92
|
+
return new SeamHttpSeamConsoleV1WorkspaceFeatureFlags(constructorOptions)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static async fromPublishableKey(
|
|
96
|
+
publishableKey: string,
|
|
97
|
+
userIdentifierKey: string,
|
|
98
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
99
|
+
): Promise<SeamHttpSeamConsoleV1WorkspaceFeatureFlags> {
|
|
100
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
101
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
102
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
103
|
+
throw new SeamHttpInvalidOptionsError(
|
|
104
|
+
'The client option cannot be used with SeamHttpSeamConsoleV1WorkspaceFeatureFlags.fromPublishableKey',
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
const client = createClient(clientOptions)
|
|
108
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
109
|
+
const { token } = await clientSessions.getOrCreate({
|
|
110
|
+
user_identifier_key: userIdentifierKey,
|
|
111
|
+
})
|
|
112
|
+
return SeamHttpSeamConsoleV1WorkspaceFeatureFlags.fromClientSessionToken(
|
|
113
|
+
token,
|
|
114
|
+
options,
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static fromConsoleSessionToken(
|
|
119
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
120
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
121
|
+
options: Omit<
|
|
122
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
123
|
+
'consoleSessionToken' | 'workspaceId'
|
|
124
|
+
> = {},
|
|
125
|
+
): SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
126
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
127
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
128
|
+
throw new SeamHttpInvalidOptionsError(
|
|
129
|
+
'Missing consoleSessionToken or workspaceId',
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
return new SeamHttpSeamConsoleV1WorkspaceFeatureFlags(constructorOptions)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static fromPersonalAccessToken(
|
|
136
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
137
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
138
|
+
options: Omit<
|
|
139
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
140
|
+
'personalAccessToken' | 'workspaceId'
|
|
141
|
+
> = {},
|
|
142
|
+
): SeamHttpSeamConsoleV1WorkspaceFeatureFlags {
|
|
143
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
144
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
145
|
+
throw new SeamHttpInvalidOptionsError(
|
|
146
|
+
'Missing personalAccessToken or workspaceId',
|
|
147
|
+
)
|
|
148
|
+
}
|
|
149
|
+
return new SeamHttpSeamConsoleV1WorkspaceFeatureFlags(constructorOptions)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
153
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
154
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
155
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
async updateClientSessionToken(
|
|
159
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
160
|
+
): Promise<void> {
|
|
161
|
+
const { headers } = this.client.defaults
|
|
162
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
163
|
+
clientSessionToken,
|
|
164
|
+
})
|
|
165
|
+
for (const key of Object.keys(authHeaders)) {
|
|
166
|
+
if (headers[key] == null) {
|
|
167
|
+
throw new Error(
|
|
168
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
173
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
174
|
+
await clientSessions.get()
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
list(
|
|
178
|
+
parameters?: SeamConsoleV1WorkspaceFeatureFlagsListParameters,
|
|
179
|
+
options: SeamConsoleV1WorkspaceFeatureFlagsListOptions = {},
|
|
180
|
+
): SeamConsoleV1WorkspaceFeatureFlagsListRequest {
|
|
181
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
182
|
+
throw new Error(
|
|
183
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
return new SeamHttpRequest(this, {
|
|
187
|
+
pathname: '/seam/console/v1/workspace/feature_flags/list',
|
|
188
|
+
method: 'GET',
|
|
189
|
+
params: parameters,
|
|
190
|
+
responseKey: 'feature_flags',
|
|
191
|
+
options,
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
update(
|
|
196
|
+
parameters: SeamConsoleV1WorkspaceFeatureFlagsUpdateParameters,
|
|
197
|
+
options: SeamConsoleV1WorkspaceFeatureFlagsUpdateOptions = {},
|
|
198
|
+
): SeamConsoleV1WorkspaceFeatureFlagsUpdateRequest {
|
|
199
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
200
|
+
throw new Error(
|
|
201
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
return new SeamHttpRequest(this, {
|
|
205
|
+
pathname: '/seam/console/v1/workspace/feature_flags/update',
|
|
206
|
+
method: 'POST',
|
|
207
|
+
body: parameters,
|
|
208
|
+
responseKey: 'feature_flag',
|
|
209
|
+
options,
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsListParameters =
|
|
215
|
+
RouteRequestParams<'/seam/console/v1/workspace/feature_flags/list'>
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @deprecated Use SeamConsoleV1WorkspaceFeatureFlagsListParameters instead.
|
|
219
|
+
*/
|
|
220
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsListParams =
|
|
221
|
+
SeamConsoleV1WorkspaceFeatureFlagsListParameters
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @deprecated Use SeamConsoleV1WorkspaceFeatureFlagsListRequest instead.
|
|
225
|
+
*/
|
|
226
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsListResponse =
|
|
227
|
+
RouteResponse<'/seam/console/v1/workspace/feature_flags/list'>
|
|
228
|
+
|
|
229
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsListRequest = SeamHttpRequest<
|
|
230
|
+
SeamConsoleV1WorkspaceFeatureFlagsListResponse,
|
|
231
|
+
'feature_flags'
|
|
232
|
+
>
|
|
233
|
+
|
|
234
|
+
export interface SeamConsoleV1WorkspaceFeatureFlagsListOptions {}
|
|
235
|
+
|
|
236
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsUpdateParameters =
|
|
237
|
+
RouteRequestBody<'/seam/console/v1/workspace/feature_flags/update'>
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @deprecated Use SeamConsoleV1WorkspaceFeatureFlagsUpdateParameters instead.
|
|
241
|
+
*/
|
|
242
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsUpdateBody =
|
|
243
|
+
SeamConsoleV1WorkspaceFeatureFlagsUpdateParameters
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated Use SeamConsoleV1WorkspaceFeatureFlagsUpdateRequest instead.
|
|
247
|
+
*/
|
|
248
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsUpdateResponse =
|
|
249
|
+
RouteResponse<'/seam/console/v1/workspace/feature_flags/update'>
|
|
250
|
+
|
|
251
|
+
export type SeamConsoleV1WorkspaceFeatureFlagsUpdateRequest = SeamHttpRequest<
|
|
252
|
+
SeamConsoleV1WorkspaceFeatureFlagsUpdateResponse,
|
|
253
|
+
'feature_flag'
|
|
254
|
+
>
|
|
255
|
+
|
|
256
|
+
export interface SeamConsoleV1WorkspaceFeatureFlagsUpdateOptions {}
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1AccessGrants {
|
|
40
39
|
client: Client
|
|
@@ -190,7 +189,7 @@ export class SeamHttpSeamCustomerV1AccessGrants {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
update(
|
|
193
|
-
parameters
|
|
192
|
+
parameters: SeamCustomerV1AccessGrantsUpdateParameters,
|
|
194
193
|
options: SeamCustomerV1AccessGrantsUpdateOptions = {},
|
|
195
194
|
): SeamCustomerV1AccessGrantsUpdateRequest {
|
|
196
195
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -220,9 +219,8 @@ export type SeamCustomerV1AccessGrantsListParams =
|
|
|
220
219
|
/**
|
|
221
220
|
* @deprecated Use SeamCustomerV1AccessGrantsListRequest instead.
|
|
222
221
|
*/
|
|
223
|
-
export type SeamCustomerV1AccessGrantsListResponse =
|
|
224
|
-
|
|
225
|
-
>
|
|
222
|
+
export type SeamCustomerV1AccessGrantsListResponse =
|
|
223
|
+
RouteResponse<'/seam/customer/v1/access_grants/list'>
|
|
226
224
|
|
|
227
225
|
export type SeamCustomerV1AccessGrantsListRequest = SeamHttpRequest<
|
|
228
226
|
SeamCustomerV1AccessGrantsListResponse,
|
|
@@ -243,9 +241,8 @@ export type SeamCustomerV1AccessGrantsUpdateBody =
|
|
|
243
241
|
/**
|
|
244
242
|
* @deprecated Use SeamCustomerV1AccessGrantsUpdateRequest instead.
|
|
245
243
|
*/
|
|
246
|
-
export type SeamCustomerV1AccessGrantsUpdateResponse =
|
|
247
|
-
|
|
248
|
-
>
|
|
244
|
+
export type SeamCustomerV1AccessGrantsUpdateResponse =
|
|
245
|
+
RouteResponse<'/seam/customer/v1/access_grants/update'>
|
|
249
246
|
|
|
250
247
|
export type SeamCustomerV1AccessGrantsUpdateRequest = SeamHttpRequest<
|
|
251
248
|
void,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1AccessMethods {
|
|
40
39
|
client: Client
|
|
@@ -172,7 +171,7 @@ export class SeamHttpSeamCustomerV1AccessMethods {
|
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
encode(
|
|
175
|
-
parameters
|
|
174
|
+
parameters: SeamCustomerV1AccessMethodsEncodeParameters,
|
|
176
175
|
options: SeamCustomerV1AccessMethodsEncodeOptions = {},
|
|
177
176
|
): SeamCustomerV1AccessMethodsEncodeRequest {
|
|
178
177
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -202,9 +201,8 @@ export type SeamCustomerV1AccessMethodsEncodeBody =
|
|
|
202
201
|
/**
|
|
203
202
|
* @deprecated Use SeamCustomerV1AccessMethodsEncodeRequest instead.
|
|
204
203
|
*/
|
|
205
|
-
export type SeamCustomerV1AccessMethodsEncodeResponse =
|
|
206
|
-
|
|
207
|
-
>
|
|
204
|
+
export type SeamCustomerV1AccessMethodsEncodeResponse =
|
|
205
|
+
RouteResponse<'/seam/customer/v1/access_methods/encode'>
|
|
208
206
|
|
|
209
207
|
export type SeamCustomerV1AccessMethodsEncodeRequest = SeamHttpRequest<
|
|
210
208
|
SeamCustomerV1AccessMethodsEncodeResponse,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1AutomationRuns {
|
|
40
39
|
client: Client
|
|
@@ -202,9 +201,8 @@ export type SeamCustomerV1AutomationRunsListParams =
|
|
|
202
201
|
/**
|
|
203
202
|
* @deprecated Use SeamCustomerV1AutomationRunsListRequest instead.
|
|
204
203
|
*/
|
|
205
|
-
export type SeamCustomerV1AutomationRunsListResponse =
|
|
206
|
-
|
|
207
|
-
>
|
|
204
|
+
export type SeamCustomerV1AutomationRunsListResponse =
|
|
205
|
+
RouteResponse<'/seam/customer/v1/automation_runs/list'>
|
|
208
206
|
|
|
209
207
|
export type SeamCustomerV1AutomationRunsListRequest = SeamHttpRequest<
|
|
210
208
|
SeamCustomerV1AutomationRunsListResponse,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1Automations {
|
|
40
39
|
client: Client
|
|
@@ -238,9 +237,8 @@ export type SeamCustomerV1AutomationsDeleteParams =
|
|
|
238
237
|
/**
|
|
239
238
|
* @deprecated Use SeamCustomerV1AutomationsDeleteRequest instead.
|
|
240
239
|
*/
|
|
241
|
-
export type SeamCustomerV1AutomationsDeleteResponse =
|
|
242
|
-
|
|
243
|
-
>
|
|
240
|
+
export type SeamCustomerV1AutomationsDeleteResponse =
|
|
241
|
+
RouteResponse<'/seam/customer/v1/automations/delete'>
|
|
244
242
|
|
|
245
243
|
export type SeamCustomerV1AutomationsDeleteRequest = SeamHttpRequest<
|
|
246
244
|
void,
|
|
@@ -261,9 +259,8 @@ export type SeamCustomerV1AutomationsGetParams =
|
|
|
261
259
|
/**
|
|
262
260
|
* @deprecated Use SeamCustomerV1AutomationsGetRequest instead.
|
|
263
261
|
*/
|
|
264
|
-
export type SeamCustomerV1AutomationsGetResponse =
|
|
265
|
-
|
|
266
|
-
>
|
|
262
|
+
export type SeamCustomerV1AutomationsGetResponse =
|
|
263
|
+
RouteResponse<'/seam/customer/v1/automations/get'>
|
|
267
264
|
|
|
268
265
|
export type SeamCustomerV1AutomationsGetRequest = SeamHttpRequest<
|
|
269
266
|
void,
|
|
@@ -284,9 +281,8 @@ export type SeamCustomerV1AutomationsUpdateBody =
|
|
|
284
281
|
/**
|
|
285
282
|
* @deprecated Use SeamCustomerV1AutomationsUpdateRequest instead.
|
|
286
283
|
*/
|
|
287
|
-
export type SeamCustomerV1AutomationsUpdateResponse =
|
|
288
|
-
|
|
289
|
-
>
|
|
284
|
+
export type SeamCustomerV1AutomationsUpdateResponse =
|
|
285
|
+
RouteResponse<'/seam/customer/v1/automations/update'>
|
|
290
286
|
|
|
291
287
|
export type SeamCustomerV1AutomationsUpdateRequest = SeamHttpRequest<
|
|
292
288
|
void,
|
package/src/lib/seam/connect/routes/seam/customer/v1/connector-customers/connector-customers.ts
CHANGED
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1ConnectorCustomers {
|
|
40
39
|
client: Client
|
|
@@ -202,9 +201,8 @@ export type SeamCustomerV1ConnectorCustomersListParams =
|
|
|
202
201
|
/**
|
|
203
202
|
* @deprecated Use SeamCustomerV1ConnectorCustomersListRequest instead.
|
|
204
203
|
*/
|
|
205
|
-
export type SeamCustomerV1ConnectorCustomersListResponse =
|
|
206
|
-
|
|
207
|
-
>
|
|
204
|
+
export type SeamCustomerV1ConnectorCustomersListResponse =
|
|
205
|
+
RouteResponse<'/seam/customer/v1/connector_customers/list'>
|
|
208
206
|
|
|
209
207
|
export type SeamCustomerV1ConnectorCustomersListRequest = SeamHttpRequest<
|
|
210
208
|
SeamCustomerV1ConnectorCustomersListResponse,
|
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
39
39
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
40
40
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
41
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
42
41
|
|
|
43
42
|
import { SeamHttpSeamCustomerV1ConnectorsExternalSites } from './external-sites/index.js'
|
|
44
43
|
import { SeamHttpSeamCustomerV1ConnectorsIcal } from './ical/index.js'
|
|
@@ -193,7 +192,7 @@ export class SeamHttpSeamCustomerV1Connectors {
|
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
authorize(
|
|
196
|
-
parameters
|
|
195
|
+
parameters: SeamCustomerV1ConnectorsAuthorizeParameters,
|
|
197
196
|
options: SeamCustomerV1ConnectorsAuthorizeOptions = {},
|
|
198
197
|
): SeamCustomerV1ConnectorsAuthorizeRequest {
|
|
199
198
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -229,7 +228,7 @@ export class SeamHttpSeamCustomerV1Connectors {
|
|
|
229
228
|
}
|
|
230
229
|
|
|
231
230
|
create(
|
|
232
|
-
parameters
|
|
231
|
+
parameters: SeamCustomerV1ConnectorsCreateParameters,
|
|
233
232
|
options: SeamCustomerV1ConnectorsCreateOptions = {},
|
|
234
233
|
): SeamCustomerV1ConnectorsCreateRequest {
|
|
235
234
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -247,7 +246,7 @@ export class SeamHttpSeamCustomerV1Connectors {
|
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
delete(
|
|
250
|
-
parameters
|
|
249
|
+
parameters: SeamCustomerV1ConnectorsDeleteParameters,
|
|
251
250
|
options: SeamCustomerV1ConnectorsDeleteOptions = {},
|
|
252
251
|
): SeamCustomerV1ConnectorsDeleteRequest {
|
|
253
252
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -283,7 +282,7 @@ export class SeamHttpSeamCustomerV1Connectors {
|
|
|
283
282
|
}
|
|
284
283
|
|
|
285
284
|
sync(
|
|
286
|
-
parameters
|
|
285
|
+
parameters: SeamCustomerV1ConnectorsSyncParameters,
|
|
287
286
|
options: SeamCustomerV1ConnectorsSyncOptions = {},
|
|
288
287
|
): SeamCustomerV1ConnectorsSyncRequest {
|
|
289
288
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -301,7 +300,7 @@ export class SeamHttpSeamCustomerV1Connectors {
|
|
|
301
300
|
}
|
|
302
301
|
|
|
303
302
|
update(
|
|
304
|
-
parameters
|
|
303
|
+
parameters: SeamCustomerV1ConnectorsUpdateParameters,
|
|
305
304
|
options: SeamCustomerV1ConnectorsUpdateOptions = {},
|
|
306
305
|
): SeamCustomerV1ConnectorsUpdateRequest {
|
|
307
306
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -331,9 +330,8 @@ export type SeamCustomerV1ConnectorsAuthorizeParams =
|
|
|
331
330
|
/**
|
|
332
331
|
* @deprecated Use SeamCustomerV1ConnectorsAuthorizeRequest instead.
|
|
333
332
|
*/
|
|
334
|
-
export type SeamCustomerV1ConnectorsAuthorizeResponse =
|
|
335
|
-
|
|
336
|
-
>
|
|
333
|
+
export type SeamCustomerV1ConnectorsAuthorizeResponse =
|
|
334
|
+
RouteResponse<'/seam/customer/v1/connectors/authorize'>
|
|
337
335
|
|
|
338
336
|
export type SeamCustomerV1ConnectorsAuthorizeRequest = SeamHttpRequest<
|
|
339
337
|
SeamCustomerV1ConnectorsAuthorizeResponse,
|
|
@@ -354,9 +352,8 @@ export type SeamCustomerV1ConnectorsConnectorTypesParams =
|
|
|
354
352
|
/**
|
|
355
353
|
* @deprecated Use SeamCustomerV1ConnectorsConnectorTypesRequest instead.
|
|
356
354
|
*/
|
|
357
|
-
export type SeamCustomerV1ConnectorsConnectorTypesResponse =
|
|
358
|
-
|
|
359
|
-
>
|
|
355
|
+
export type SeamCustomerV1ConnectorsConnectorTypesResponse =
|
|
356
|
+
RouteResponse<'/seam/customer/v1/connectors/connector_types'>
|
|
360
357
|
|
|
361
358
|
export type SeamCustomerV1ConnectorsConnectorTypesRequest = SeamHttpRequest<
|
|
362
359
|
SeamCustomerV1ConnectorsConnectorTypesResponse,
|
|
@@ -377,9 +374,8 @@ export type SeamCustomerV1ConnectorsCreateBody =
|
|
|
377
374
|
/**
|
|
378
375
|
* @deprecated Use SeamCustomerV1ConnectorsCreateRequest instead.
|
|
379
376
|
*/
|
|
380
|
-
export type SeamCustomerV1ConnectorsCreateResponse =
|
|
381
|
-
|
|
382
|
-
>
|
|
377
|
+
export type SeamCustomerV1ConnectorsCreateResponse =
|
|
378
|
+
RouteResponse<'/seam/customer/v1/connectors/create'>
|
|
383
379
|
|
|
384
380
|
export type SeamCustomerV1ConnectorsCreateRequest = SeamHttpRequest<
|
|
385
381
|
SeamCustomerV1ConnectorsCreateResponse,
|
|
@@ -400,9 +396,8 @@ export type SeamCustomerV1ConnectorsDeleteBody =
|
|
|
400
396
|
/**
|
|
401
397
|
* @deprecated Use SeamCustomerV1ConnectorsDeleteRequest instead.
|
|
402
398
|
*/
|
|
403
|
-
export type SeamCustomerV1ConnectorsDeleteResponse =
|
|
404
|
-
|
|
405
|
-
>
|
|
399
|
+
export type SeamCustomerV1ConnectorsDeleteResponse =
|
|
400
|
+
RouteResponse<'/seam/customer/v1/connectors/delete'>
|
|
406
401
|
|
|
407
402
|
export type SeamCustomerV1ConnectorsDeleteRequest = SeamHttpRequest<
|
|
408
403
|
SeamCustomerV1ConnectorsDeleteResponse,
|
|
@@ -423,9 +418,8 @@ export type SeamCustomerV1ConnectorsListParams =
|
|
|
423
418
|
/**
|
|
424
419
|
* @deprecated Use SeamCustomerV1ConnectorsListRequest instead.
|
|
425
420
|
*/
|
|
426
|
-
export type SeamCustomerV1ConnectorsListResponse =
|
|
427
|
-
|
|
428
|
-
>
|
|
421
|
+
export type SeamCustomerV1ConnectorsListResponse =
|
|
422
|
+
RouteResponse<'/seam/customer/v1/connectors/list'>
|
|
429
423
|
|
|
430
424
|
export type SeamCustomerV1ConnectorsListRequest = SeamHttpRequest<
|
|
431
425
|
SeamCustomerV1ConnectorsListResponse,
|
|
@@ -446,9 +440,8 @@ export type SeamCustomerV1ConnectorsSyncBody =
|
|
|
446
440
|
/**
|
|
447
441
|
* @deprecated Use SeamCustomerV1ConnectorsSyncRequest instead.
|
|
448
442
|
*/
|
|
449
|
-
export type SeamCustomerV1ConnectorsSyncResponse =
|
|
450
|
-
|
|
451
|
-
>
|
|
443
|
+
export type SeamCustomerV1ConnectorsSyncResponse =
|
|
444
|
+
RouteResponse<'/seam/customer/v1/connectors/sync'>
|
|
452
445
|
|
|
453
446
|
export type SeamCustomerV1ConnectorsSyncRequest = SeamHttpRequest<
|
|
454
447
|
SeamCustomerV1ConnectorsSyncResponse,
|
|
@@ -469,9 +462,8 @@ export type SeamCustomerV1ConnectorsUpdateBody =
|
|
|
469
462
|
/**
|
|
470
463
|
* @deprecated Use SeamCustomerV1ConnectorsUpdateRequest instead.
|
|
471
464
|
*/
|
|
472
|
-
export type SeamCustomerV1ConnectorsUpdateResponse =
|
|
473
|
-
|
|
474
|
-
>
|
|
465
|
+
export type SeamCustomerV1ConnectorsUpdateResponse =
|
|
466
|
+
RouteResponse<'/seam/customer/v1/connectors/update'>
|
|
475
467
|
|
|
476
468
|
export type SeamCustomerV1ConnectorsUpdateRequest = SeamHttpRequest<
|
|
477
469
|
SeamCustomerV1ConnectorsUpdateResponse,
|
package/src/lib/seam/connect/routes/seam/customer/v1/connectors/external-sites/external-sites.ts
CHANGED
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1ConnectorsExternalSites {
|
|
40
39
|
client: Client
|
|
@@ -172,7 +171,7 @@ export class SeamHttpSeamCustomerV1ConnectorsExternalSites {
|
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
list(
|
|
175
|
-
parameters
|
|
174
|
+
parameters: SeamCustomerV1ConnectorsExternalSitesListParameters,
|
|
176
175
|
options: SeamCustomerV1ConnectorsExternalSitesListOptions = {},
|
|
177
176
|
): SeamCustomerV1ConnectorsExternalSitesListRequest {
|
|
178
177
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -202,9 +201,8 @@ export type SeamCustomerV1ConnectorsExternalSitesListParams =
|
|
|
202
201
|
/**
|
|
203
202
|
* @deprecated Use SeamCustomerV1ConnectorsExternalSitesListRequest instead.
|
|
204
203
|
*/
|
|
205
|
-
export type SeamCustomerV1ConnectorsExternalSitesListResponse =
|
|
206
|
-
|
|
207
|
-
>
|
|
204
|
+
export type SeamCustomerV1ConnectorsExternalSitesListResponse =
|
|
205
|
+
RouteResponse<'/seam/customer/v1/connectors/external_sites/list'>
|
|
208
206
|
|
|
209
207
|
export type SeamCustomerV1ConnectorsExternalSitesListRequest = SeamHttpRequest<
|
|
210
208
|
SeamCustomerV1ConnectorsExternalSitesListResponse,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
35
35
|
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
36
36
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
37
|
-
import type { SetNonNullable } from 'lib/types.js'
|
|
38
37
|
|
|
39
38
|
export class SeamHttpSeamCustomerV1ConnectorsIcal {
|
|
40
39
|
client: Client
|
|
@@ -172,7 +171,7 @@ export class SeamHttpSeamCustomerV1ConnectorsIcal {
|
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
validateConfig(
|
|
175
|
-
parameters
|
|
174
|
+
parameters: SeamCustomerV1ConnectorsIcalValidateConfigParameters,
|
|
176
175
|
options: SeamCustomerV1ConnectorsIcalValidateConfigOptions = {},
|
|
177
176
|
): SeamCustomerV1ConnectorsIcalValidateConfigRequest {
|
|
178
177
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -202,9 +201,8 @@ export type SeamCustomerV1ConnectorsIcalValidateConfigBody =
|
|
|
202
201
|
/**
|
|
203
202
|
* @deprecated Use SeamCustomerV1ConnectorsIcalValidateConfigRequest instead.
|
|
204
203
|
*/
|
|
205
|
-
export type SeamCustomerV1ConnectorsIcalValidateConfigResponse =
|
|
206
|
-
|
|
207
|
-
>
|
|
204
|
+
export type SeamCustomerV1ConnectorsIcalValidateConfigResponse =
|
|
205
|
+
RouteResponse<'/seam/customer/v1/connectors/ical/validate-config'>
|
|
208
206
|
|
|
209
207
|
export type SeamCustomerV1ConnectorsIcalValidateConfigRequest = SeamHttpRequest<
|
|
210
208
|
SeamCustomerV1ConnectorsIcalValidateConfigResponse,
|