@seamapi/http 2.0.0 → 2.2.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/README.md +0 -30
- package/lib/seam/connect/api-error-types.js +0 -1
- package/lib/seam/connect/api-error-types.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/resources/access-code.d.ts +743 -56
- package/lib/seam/connect/resources/access-grant.d.ts +279 -10
- package/lib/seam/connect/resources/access-method.d.ts +204 -8
- package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
- package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
- package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
- package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
- package/lib/seam/connect/resources/acs-system.d.ts +227 -11
- package/lib/seam/connect/resources/acs-user.d.ts +388 -19
- package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
- package/lib/seam/connect/resources/batch.d.ts +3 -0
- package/lib/seam/connect/resources/client-session.d.ts +48 -0
- package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
- package/lib/seam/connect/resources/connected-account.d.ts +281 -12
- package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
- package/lib/seam/connect/resources/device-provider.d.ts +72 -0
- package/lib/seam/connect/resources/device.d.ts +2063 -41
- package/lib/seam/connect/resources/event.d.ts +4014 -0
- package/lib/seam/connect/resources/instant-key.d.ts +41 -0
- package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
- package/lib/seam/connect/resources/phone.d.ts +72 -0
- package/lib/seam/connect/resources/space.d.ts +54 -0
- package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
- package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
- package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
- package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
- package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
- package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
- package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
- package/lib/seam/connect/resources/user-identity.d.ts +82 -3
- package/lib/seam/connect/resources/webhook.d.ts +15 -0
- package/lib/seam/connect/resources/workspace.d.ts +45 -0
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
- 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 +63 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
- package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
- package/lib/seam/connect/routes/acs/users/users.js +33 -0
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
- package/lib/seam/connect/routes/customers/customers.js +10 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
- package/lib/seam/connect/routes/devices/devices.js +23 -0
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/events/events.d.ts +99 -0
- package/lib/seam/connect/routes/events/events.js +6 -0
- package/lib/seam/connect/routes/events/events.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
- package/lib/seam/connect/routes/locks/locks.js +16 -0
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
- 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 +66 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
- 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 +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
- package/lib/seam/connect/routes/phones/phones.js +9 -0
- package/lib/seam/connect/routes/phones/phones.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -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 +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
- package/lib/seam/connect/routes/spaces/spaces.js +36 -0
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
- 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 +1 -9
- package/src/lib/seam/connect/api-error-types.ts +0 -2
- package/src/lib/seam/connect/openapi.ts +2 -4
- package/src/lib/seam/connect/resources/access-code.ts +719 -35
- package/src/lib/seam/connect/resources/access-grant.ts +284 -16
- package/src/lib/seam/connect/resources/access-method.ts +205 -10
- package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
- package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
- package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
- package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
- package/src/lib/seam/connect/resources/acs-system.ts +223 -9
- package/src/lib/seam/connect/resources/acs-user.ts +382 -16
- package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
- package/src/lib/seam/connect/resources/batch.ts +3 -0
- package/src/lib/seam/connect/resources/client-session.ts +48 -0
- package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
- package/src/lib/seam/connect/resources/connected-account.ts +277 -10
- package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
- package/src/lib/seam/connect/resources/device-provider.ts +72 -0
- package/src/lib/seam/connect/resources/device.ts +2059 -39
- package/src/lib/seam/connect/resources/event.ts +4015 -0
- package/src/lib/seam/connect/resources/instant-key.ts +41 -0
- package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
- package/src/lib/seam/connect/resources/phone.ts +72 -0
- package/src/lib/seam/connect/resources/space.ts +54 -0
- package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
- package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
- package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
- package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
- package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
- package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
- package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
- package/src/lib/seam/connect/resources/user-identity.ts +87 -8
- package/src/lib/seam/connect/resources/webhook.ts +15 -0
- package/src/lib/seam/connect/resources/workspace.ts +46 -0
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
- package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
- package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
- package/src/lib/seam/connect/routes/events/events.ts +99 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
- package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
- package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
- package/src/lib/version.ts +1 -1
|
@@ -162,6 +162,9 @@ export class SeamHttpAcsUsers {
|
|
|
162
162
|
await clientSessions.get()
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Adds a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) to a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
167
|
+
*/
|
|
165
168
|
addToAccessGroup(
|
|
166
169
|
parameters: AcsUsersAddToAccessGroupParameters,
|
|
167
170
|
options: AcsUsersAddToAccessGroupOptions = {},
|
|
@@ -175,6 +178,9 @@ export class SeamHttpAcsUsers {
|
|
|
175
178
|
})
|
|
176
179
|
}
|
|
177
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Creates a new [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
183
|
+
*/
|
|
178
184
|
create(
|
|
179
185
|
parameters: AcsUsersCreateParameters,
|
|
180
186
|
options: AcsUsersCreateOptions = {},
|
|
@@ -188,6 +194,9 @@ export class SeamHttpAcsUsers {
|
|
|
188
194
|
})
|
|
189
195
|
}
|
|
190
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Deletes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) and invalidates the access system user's [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
199
|
+
*/
|
|
191
200
|
delete(
|
|
192
201
|
parameters?: AcsUsersDeleteParameters,
|
|
193
202
|
options: AcsUsersDeleteOptions = {},
|
|
@@ -201,6 +210,9 @@ export class SeamHttpAcsUsers {
|
|
|
201
210
|
})
|
|
202
211
|
}
|
|
203
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Returns a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
215
|
+
*/
|
|
204
216
|
get(
|
|
205
217
|
parameters?: AcsUsersGetParameters,
|
|
206
218
|
options: AcsUsersGetOptions = {},
|
|
@@ -214,6 +226,9 @@ export class SeamHttpAcsUsers {
|
|
|
214
226
|
})
|
|
215
227
|
}
|
|
216
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Returns a list of all [access system users](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
231
|
+
*/
|
|
217
232
|
list(
|
|
218
233
|
parameters?: AcsUsersListParameters,
|
|
219
234
|
options: AcsUsersListOptions = {},
|
|
@@ -227,6 +242,9 @@ export class SeamHttpAcsUsers {
|
|
|
227
242
|
})
|
|
228
243
|
}
|
|
229
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Lists the [entrances](https://docs.seam.co/api/acs/entrances) to which a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) has access.
|
|
247
|
+
*/
|
|
230
248
|
listAccessibleEntrances(
|
|
231
249
|
parameters?: AcsUsersListAccessibleEntrancesParameters,
|
|
232
250
|
options: AcsUsersListAccessibleEntrancesOptions = {},
|
|
@@ -240,6 +258,9 @@ export class SeamHttpAcsUsers {
|
|
|
240
258
|
})
|
|
241
259
|
}
|
|
242
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).
|
|
263
|
+
*/
|
|
243
264
|
removeFromAccessGroup(
|
|
244
265
|
parameters: AcsUsersRemoveFromAccessGroupParameters,
|
|
245
266
|
options: AcsUsersRemoveFromAccessGroupOptions = {},
|
|
@@ -253,6 +274,9 @@ export class SeamHttpAcsUsers {
|
|
|
253
274
|
})
|
|
254
275
|
}
|
|
255
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Revokes access to all [entrances](https://docs.seam.co/api/acs/entrances) for a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
279
|
+
*/
|
|
256
280
|
revokeAccessToAllEntrances(
|
|
257
281
|
parameters?: AcsUsersRevokeAccessToAllEntrancesParameters,
|
|
258
282
|
options: AcsUsersRevokeAccessToAllEntrancesOptions = {},
|
|
@@ -266,6 +290,9 @@ export class SeamHttpAcsUsers {
|
|
|
266
290
|
})
|
|
267
291
|
}
|
|
268
292
|
|
|
293
|
+
/**
|
|
294
|
+
* [Suspends](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#suspend-an-acs-user) a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Suspending an access system user revokes their access temporarily. To restore an access system user's access, you can [unsuspend](https://docs.seam.co/api/acs/users/unsuspend) them.
|
|
295
|
+
*/
|
|
269
296
|
suspend(
|
|
270
297
|
parameters?: AcsUsersSuspendParameters,
|
|
271
298
|
options: AcsUsersSuspendOptions = {},
|
|
@@ -279,6 +306,9 @@ export class SeamHttpAcsUsers {
|
|
|
279
306
|
})
|
|
280
307
|
}
|
|
281
308
|
|
|
309
|
+
/**
|
|
310
|
+
* [Unsuspends](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#unsuspend-an-acs-user) a specified suspended [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). While [suspending an access system user](https://docs.seam.co/api/acs/users/suspend) revokes their access temporarily, unsuspending the access system user restores their access.
|
|
311
|
+
*/
|
|
282
312
|
unsuspend(
|
|
283
313
|
parameters?: AcsUsersUnsuspendParameters,
|
|
284
314
|
options: AcsUsersUnsuspendOptions = {},
|
|
@@ -292,6 +322,9 @@ export class SeamHttpAcsUsers {
|
|
|
292
322
|
})
|
|
293
323
|
}
|
|
294
324
|
|
|
325
|
+
/**
|
|
326
|
+
* Updates the properties of a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
327
|
+
*/
|
|
295
328
|
update(
|
|
296
329
|
parameters?: AcsUsersUpdateParameters,
|
|
297
330
|
options: AcsUsersUpdateOptions = {},
|
|
@@ -307,8 +340,14 @@ export class SeamHttpAcsUsers {
|
|
|
307
340
|
}
|
|
308
341
|
|
|
309
342
|
export type AcsUsersAddToAccessGroupParameters = {
|
|
343
|
+
/**
|
|
344
|
+
* ID of the access group to which you want to add an access system user.
|
|
345
|
+
*/
|
|
310
346
|
acs_access_group_id: string
|
|
311
347
|
|
|
348
|
+
/**
|
|
349
|
+
* ID of the access system user that you want to add to an access group.
|
|
350
|
+
*/
|
|
312
351
|
acs_user_id: string
|
|
313
352
|
}
|
|
314
353
|
|
|
@@ -322,20 +361,50 @@ export type AcsUsersAddToAccessGroupRequest = SeamHttpRequest<void, undefined>
|
|
|
322
361
|
export interface AcsUsersAddToAccessGroupOptions {}
|
|
323
362
|
|
|
324
363
|
export type AcsUsersCreateParameters = {
|
|
364
|
+
/**
|
|
365
|
+
* `starts_at` and `ends_at` timestamps for the new access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`.
|
|
366
|
+
*/
|
|
325
367
|
access_schedule?:
|
|
326
368
|
| {
|
|
369
|
+
/**
|
|
370
|
+
* Ending timestamp for the new access system user's access.
|
|
371
|
+
*/
|
|
327
372
|
ends_at?: string | undefined
|
|
373
|
+
/**
|
|
374
|
+
* Starting timestamp for the new access system user's access.
|
|
375
|
+
*/
|
|
328
376
|
starts_at?: string | undefined
|
|
329
377
|
}
|
|
330
378
|
| undefined
|
|
379
|
+
/**
|
|
380
|
+
* Array of access group IDs to indicate the access groups to which you want to add the new access system user.
|
|
381
|
+
*/
|
|
331
382
|
acs_access_group_ids?: Array<string> | undefined
|
|
383
|
+
/**
|
|
384
|
+
* ID of the access system to which you want to add the new access system user.
|
|
385
|
+
*/
|
|
332
386
|
acs_system_id: string
|
|
333
387
|
|
|
388
|
+
/**
|
|
389
|
+
* @deprecated use email_address.
|
|
390
|
+
*/
|
|
334
391
|
email?: string | undefined
|
|
392
|
+
/**
|
|
393
|
+
* Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
394
|
+
*/
|
|
335
395
|
email_address?: string | undefined
|
|
396
|
+
/**
|
|
397
|
+
* Full name of the new access system user.
|
|
398
|
+
*/
|
|
336
399
|
full_name: string
|
|
337
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
|
|
403
|
+
*/
|
|
338
404
|
phone_number?: string | undefined
|
|
405
|
+
/**
|
|
406
|
+
* ID of the user identity with which you want to associate the new access system user.
|
|
407
|
+
*/
|
|
339
408
|
user_identity_id?: string | undefined
|
|
340
409
|
}
|
|
341
410
|
|
|
@@ -352,8 +421,17 @@ export type AcsUsersCreateRequest = SeamHttpRequest<
|
|
|
352
421
|
export interface AcsUsersCreateOptions {}
|
|
353
422
|
|
|
354
423
|
export type AcsUsersDeleteParameters = {
|
|
424
|
+
/**
|
|
425
|
+
* ID of the access system that you want to delete. You must provide acs_system_id with user_identity_id.
|
|
426
|
+
*/
|
|
355
427
|
acs_system_id?: string | undefined
|
|
428
|
+
/**
|
|
429
|
+
* ID of the access system user that you want to delete. You must provide either acs_user_id or user_identity_id
|
|
430
|
+
*/
|
|
356
431
|
acs_user_id?: string | undefined
|
|
432
|
+
/**
|
|
433
|
+
* ID of the user identity that you want to delete. You must provide either acs_user_id or user_identity_id. If you provide user_identity_id, you must also provide acs_system_id.
|
|
434
|
+
*/
|
|
357
435
|
user_identity_id?: string | undefined
|
|
358
436
|
}
|
|
359
437
|
|
|
@@ -367,8 +445,17 @@ export type AcsUsersDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
367
445
|
export interface AcsUsersDeleteOptions {}
|
|
368
446
|
|
|
369
447
|
export type AcsUsersGetParameters = {
|
|
448
|
+
/**
|
|
449
|
+
* ID of the access system that you want to get. You can only provide acs_user_id or user_identity_id.
|
|
450
|
+
*/
|
|
370
451
|
acs_system_id?: string | undefined
|
|
452
|
+
/**
|
|
453
|
+
* ID of the access system user that you want to get. You can only provide acs_user_id or user_identity_id.
|
|
454
|
+
*/
|
|
371
455
|
acs_user_id?: string | undefined
|
|
456
|
+
/**
|
|
457
|
+
* ID of the user identity that you want to get. You can only provide acs_user_id or user_identity_id.
|
|
458
|
+
*/
|
|
372
459
|
user_identity_id?: string | undefined
|
|
373
460
|
}
|
|
374
461
|
|
|
@@ -385,13 +472,37 @@ export type AcsUsersGetRequest = SeamHttpRequest<
|
|
|
385
472
|
export interface AcsUsersGetOptions {}
|
|
386
473
|
|
|
387
474
|
export type AcsUsersListParameters = {
|
|
475
|
+
/**
|
|
476
|
+
* ID of the `acs_system` for which you want to retrieve all access system users.
|
|
477
|
+
*/
|
|
388
478
|
acs_system_id?: string | undefined
|
|
479
|
+
/**
|
|
480
|
+
* Timestamp by which to limit returned access system users. Returns users created before this timestamp.
|
|
481
|
+
*/
|
|
389
482
|
created_before?: string | undefined
|
|
483
|
+
/**
|
|
484
|
+
* Maximum number of records to return per page.
|
|
485
|
+
*/
|
|
390
486
|
limit?: number | undefined
|
|
487
|
+
/**
|
|
488
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
489
|
+
*/
|
|
391
490
|
page_cursor?: string | undefined
|
|
491
|
+
/**
|
|
492
|
+
* String for which to search. Filters returned access system users to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `acs_user_id`, `user_identity_id`, `user_identity_full_name` or `user_identity_phone_number`.
|
|
493
|
+
*/
|
|
392
494
|
search?: string | undefined
|
|
495
|
+
/**
|
|
496
|
+
* Email address of the user identity for which you want to retrieve all access system users.
|
|
497
|
+
*/
|
|
393
498
|
user_identity_email_address?: string | undefined
|
|
499
|
+
/**
|
|
500
|
+
* ID of the user identity for which you want to retrieve all access system users.
|
|
501
|
+
*/
|
|
394
502
|
user_identity_id?: string | undefined
|
|
503
|
+
/**
|
|
504
|
+
* Phone number of the user identity for which you want to retrieve all access system users, in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, `+15555550100`).
|
|
505
|
+
*/
|
|
395
506
|
user_identity_phone_number?: string | undefined
|
|
396
507
|
}
|
|
397
508
|
|
|
@@ -408,8 +519,17 @@ export type AcsUsersListRequest = SeamHttpRequest<
|
|
|
408
519
|
export interface AcsUsersListOptions {}
|
|
409
520
|
|
|
410
521
|
export type AcsUsersListAccessibleEntrancesParameters = {
|
|
522
|
+
/**
|
|
523
|
+
* ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id.
|
|
524
|
+
*/
|
|
411
525
|
acs_system_id?: string | undefined
|
|
526
|
+
/**
|
|
527
|
+
* ID of the access system user for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.
|
|
528
|
+
*/
|
|
412
529
|
acs_user_id?: string | undefined
|
|
530
|
+
/**
|
|
531
|
+
* ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.
|
|
532
|
+
*/
|
|
413
533
|
user_identity_id?: string | undefined
|
|
414
534
|
}
|
|
415
535
|
|
|
@@ -428,9 +548,18 @@ export type AcsUsersListAccessibleEntrancesRequest = SeamHttpRequest<
|
|
|
428
548
|
export interface AcsUsersListAccessibleEntrancesOptions {}
|
|
429
549
|
|
|
430
550
|
export type AcsUsersRemoveFromAccessGroupParameters = {
|
|
551
|
+
/**
|
|
552
|
+
* ID of the access group from which you want to remove an access system user.
|
|
553
|
+
*/
|
|
431
554
|
acs_access_group_id: string
|
|
432
555
|
|
|
556
|
+
/**
|
|
557
|
+
* ID of the access system user that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.
|
|
558
|
+
*/
|
|
433
559
|
acs_user_id?: string | undefined
|
|
560
|
+
/**
|
|
561
|
+
* ID of the user identity that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.
|
|
562
|
+
*/
|
|
434
563
|
user_identity_id?: string | undefined
|
|
435
564
|
}
|
|
436
565
|
|
|
@@ -447,8 +576,17 @@ export type AcsUsersRemoveFromAccessGroupRequest = SeamHttpRequest<
|
|
|
447
576
|
export interface AcsUsersRemoveFromAccessGroupOptions {}
|
|
448
577
|
|
|
449
578
|
export type AcsUsersRevokeAccessToAllEntrancesParameters = {
|
|
579
|
+
/**
|
|
580
|
+
* ID of the access system for which you want to revoke access. You can only provide acs_system_id with user_identity_id.
|
|
581
|
+
*/
|
|
450
582
|
acs_system_id?: string | undefined
|
|
583
|
+
/**
|
|
584
|
+
* ID of the access system user for whom you want to revoke access. You can only provide acs_user_id or user_identity_id.
|
|
585
|
+
*/
|
|
451
586
|
acs_user_id?: string | undefined
|
|
587
|
+
/**
|
|
588
|
+
* ID of the user identity for whom you want to revoke access. You can only provide acs_user_id or user_identity_id.
|
|
589
|
+
*/
|
|
452
590
|
user_identity_id?: string | undefined
|
|
453
591
|
}
|
|
454
592
|
|
|
@@ -465,8 +603,17 @@ export type AcsUsersRevokeAccessToAllEntrancesRequest = SeamHttpRequest<
|
|
|
465
603
|
export interface AcsUsersRevokeAccessToAllEntrancesOptions {}
|
|
466
604
|
|
|
467
605
|
export type AcsUsersSuspendParameters = {
|
|
606
|
+
/**
|
|
607
|
+
* ID of the access system that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.
|
|
608
|
+
*/
|
|
468
609
|
acs_system_id?: string | undefined
|
|
610
|
+
/**
|
|
611
|
+
* ID of the access system user that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.
|
|
612
|
+
*/
|
|
469
613
|
acs_user_id?: string | undefined
|
|
614
|
+
/**
|
|
615
|
+
* ID of the user identity that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.
|
|
616
|
+
*/
|
|
470
617
|
user_identity_id?: string | undefined
|
|
471
618
|
}
|
|
472
619
|
|
|
@@ -480,8 +627,17 @@ export type AcsUsersSuspendRequest = SeamHttpRequest<void, undefined>
|
|
|
480
627
|
export interface AcsUsersSuspendOptions {}
|
|
481
628
|
|
|
482
629
|
export type AcsUsersUnsuspendParameters = {
|
|
630
|
+
/**
|
|
631
|
+
* ID of the access system of the user that you want to unsuspend. You can only provide acs_system_id with user_identity_id.
|
|
632
|
+
*/
|
|
483
633
|
acs_system_id?: string | undefined
|
|
634
|
+
/**
|
|
635
|
+
* ID of the access system user that you want to unsuspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.
|
|
636
|
+
*/
|
|
484
637
|
acs_user_id?: string | undefined
|
|
638
|
+
/**
|
|
639
|
+
* ID of the user identity that you want to unsuspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.
|
|
640
|
+
*/
|
|
485
641
|
user_identity_id?: string | undefined
|
|
486
642
|
}
|
|
487
643
|
|
|
@@ -495,19 +651,52 @@ export type AcsUsersUnsuspendRequest = SeamHttpRequest<void, undefined>
|
|
|
495
651
|
export interface AcsUsersUnsuspendOptions {}
|
|
496
652
|
|
|
497
653
|
export type AcsUsersUpdateParameters = {
|
|
654
|
+
/**
|
|
655
|
+
* `starts_at` and `ends_at` timestamps for the access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`.
|
|
656
|
+
*/
|
|
498
657
|
access_schedule?:
|
|
499
658
|
| {
|
|
659
|
+
/**
|
|
660
|
+
* Ending timestamp for the access system user's access.
|
|
661
|
+
*/
|
|
500
662
|
ends_at?: string | undefined
|
|
663
|
+
/**
|
|
664
|
+
* Starting timestamp for the access system user's access.
|
|
665
|
+
*/
|
|
501
666
|
starts_at?: string | undefined
|
|
502
667
|
}
|
|
503
668
|
| undefined
|
|
669
|
+
/**
|
|
670
|
+
* ID of the access system that you want to update. You can only provide acs_system_id with user_identity_id.
|
|
671
|
+
*/
|
|
504
672
|
acs_system_id?: string | undefined
|
|
673
|
+
/**
|
|
674
|
+
* ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id.
|
|
675
|
+
*/
|
|
505
676
|
acs_user_id?: string | undefined
|
|
677
|
+
/**
|
|
678
|
+
* @deprecated use email_address.
|
|
679
|
+
*/
|
|
506
680
|
email?: string | undefined
|
|
681
|
+
/**
|
|
682
|
+
* Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
683
|
+
*/
|
|
507
684
|
email_address?: string | undefined
|
|
685
|
+
/**
|
|
686
|
+
* Full name of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
687
|
+
*/
|
|
508
688
|
full_name?: string | undefined
|
|
689
|
+
/**
|
|
690
|
+
* ID of the HID access control system associated with the user.
|
|
691
|
+
*/
|
|
509
692
|
hid_acs_system_id?: string | undefined
|
|
693
|
+
/**
|
|
694
|
+
* Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
|
|
695
|
+
*/
|
|
510
696
|
phone_number?: string | undefined
|
|
697
|
+
/**
|
|
698
|
+
* ID of the user identity that you want to update. You can only provide acs_user_id or user_identity_id. If you provide user_identity_id, you must also provide acs_system_id.
|
|
699
|
+
*/
|
|
511
700
|
user_identity_id?: string | undefined
|
|
512
701
|
}
|
|
513
702
|
|
|
@@ -161,6 +161,9 @@ export class SeamHttpActionAttempts {
|
|
|
161
161
|
await clientSessions.get()
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Returns a specified [action attempt](https://docs.seam.co/core-concepts/action-attempts).
|
|
166
|
+
*/
|
|
164
167
|
get(
|
|
165
168
|
parameters: ActionAttemptsGetParameters,
|
|
166
169
|
options: ActionAttemptsGetOptions = {},
|
|
@@ -174,6 +177,9 @@ export class SeamHttpActionAttempts {
|
|
|
174
177
|
})
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Returns a list of the [action attempts](https://docs.seam.co/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s.
|
|
182
|
+
*/
|
|
177
183
|
list(
|
|
178
184
|
parameters?: ActionAttemptsListParameters,
|
|
179
185
|
options: ActionAttemptsListOptions = {},
|
|
@@ -189,6 +195,9 @@ export class SeamHttpActionAttempts {
|
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
export type ActionAttemptsGetParameters = {
|
|
198
|
+
/**
|
|
199
|
+
* ID of the action attempt that you want to get.
|
|
200
|
+
*/
|
|
192
201
|
action_attempt_id: string
|
|
193
202
|
}
|
|
194
203
|
|
|
@@ -208,9 +217,21 @@ export type ActionAttemptsGetOptions = Pick<
|
|
|
208
217
|
>
|
|
209
218
|
|
|
210
219
|
export type ActionAttemptsListParameters = {
|
|
220
|
+
/**
|
|
221
|
+
* IDs of the action attempts that you want to retrieve.
|
|
222
|
+
*/
|
|
211
223
|
action_attempt_ids?: Array<string> | undefined
|
|
224
|
+
/**
|
|
225
|
+
* ID of the device to filter action attempts by.
|
|
226
|
+
*/
|
|
212
227
|
device_id?: string | undefined
|
|
228
|
+
/**
|
|
229
|
+
* Maximum number of records to return per page.
|
|
230
|
+
*/
|
|
213
231
|
limit?: number | undefined
|
|
232
|
+
/**
|
|
233
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
234
|
+
*/
|
|
214
235
|
page_cursor?: string | undefined
|
|
215
236
|
}
|
|
216
237
|
|
|
@@ -160,6 +160,9 @@ export class SeamHttpClientSessions {
|
|
|
160
160
|
await clientSessions.get()
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Creates a new [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
165
|
+
*/
|
|
163
166
|
create(
|
|
164
167
|
parameters?: ClientSessionsCreateParameters,
|
|
165
168
|
options: ClientSessionsCreateOptions = {},
|
|
@@ -173,6 +176,9 @@ export class SeamHttpClientSessions {
|
|
|
173
176
|
})
|
|
174
177
|
}
|
|
175
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Deletes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
181
|
+
*/
|
|
176
182
|
delete(
|
|
177
183
|
parameters: ClientSessionsDeleteParameters,
|
|
178
184
|
options: ClientSessionsDeleteOptions = {},
|
|
@@ -186,6 +192,9 @@ export class SeamHttpClientSessions {
|
|
|
186
192
|
})
|
|
187
193
|
}
|
|
188
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Returns a specified [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
197
|
+
*/
|
|
189
198
|
get(
|
|
190
199
|
parameters?: ClientSessionsGetParameters,
|
|
191
200
|
options: ClientSessionsGetOptions = {},
|
|
@@ -199,6 +208,9 @@ export class SeamHttpClientSessions {
|
|
|
199
208
|
})
|
|
200
209
|
}
|
|
201
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Returns a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) with specific characteristics or creates a new client session with these characteristics if it does not yet exist.
|
|
213
|
+
*/
|
|
202
214
|
getOrCreate(
|
|
203
215
|
parameters?: ClientSessionsGetOrCreateParameters,
|
|
204
216
|
options: ClientSessionsGetOrCreateOptions = {},
|
|
@@ -212,6 +224,9 @@ export class SeamHttpClientSessions {
|
|
|
212
224
|
})
|
|
213
225
|
}
|
|
214
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Grants a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) access to one or more resources, such as [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews), [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), and so on.
|
|
229
|
+
*/
|
|
215
230
|
grantAccess(
|
|
216
231
|
parameters?: ClientSessionsGrantAccessParameters,
|
|
217
232
|
options: ClientSessionsGrantAccessOptions = {},
|
|
@@ -225,6 +240,9 @@ export class SeamHttpClientSessions {
|
|
|
225
240
|
})
|
|
226
241
|
}
|
|
227
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Returns a list of all [client sessions](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
245
|
+
*/
|
|
228
246
|
list(
|
|
229
247
|
parameters?: ClientSessionsListParameters,
|
|
230
248
|
options: ClientSessionsListOptions = {},
|
|
@@ -238,6 +256,11 @@ export class SeamHttpClientSessions {
|
|
|
238
256
|
})
|
|
239
257
|
}
|
|
240
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Revokes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
261
|
+
*
|
|
262
|
+
* Note that [deleting a client session](https://docs.seam.co/api/client_sessions/delete) is a separate action.
|
|
263
|
+
*/
|
|
241
264
|
revoke(
|
|
242
265
|
parameters: ClientSessionsRevokeParameters,
|
|
243
266
|
options: ClientSessionsRevokeOptions = {},
|
|
@@ -253,13 +276,38 @@ export class SeamHttpClientSessions {
|
|
|
253
276
|
}
|
|
254
277
|
|
|
255
278
|
export type ClientSessionsCreateParameters = {
|
|
279
|
+
/**
|
|
280
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) for which you want to create a client session.
|
|
281
|
+
*/
|
|
256
282
|
connect_webview_ids?: Array<string> | undefined
|
|
283
|
+
/**
|
|
284
|
+
* IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) for which you want to create a client session.
|
|
285
|
+
*/
|
|
257
286
|
connected_account_ids?: Array<string> | undefined
|
|
287
|
+
/**
|
|
288
|
+
* Customer ID that you want to associate with the new client session.
|
|
289
|
+
*/
|
|
258
290
|
customer_id?: string | undefined
|
|
291
|
+
/**
|
|
292
|
+
* Customer key that you want to associate with the new client session.
|
|
293
|
+
*/
|
|
259
294
|
customer_key?: string | undefined
|
|
295
|
+
/**
|
|
296
|
+
* Date and time at which the client session should expire, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
297
|
+
*/
|
|
260
298
|
expires_at?: string | undefined
|
|
299
|
+
/**
|
|
300
|
+
* Your user ID for the user for whom you want to create a client session.
|
|
301
|
+
*/
|
|
261
302
|
user_identifier_key?: string | undefined
|
|
303
|
+
/**
|
|
304
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.
|
|
305
|
+
*/
|
|
262
306
|
user_identity_id?: string | undefined
|
|
307
|
+
/**
|
|
308
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
309
|
+
* @deprecated Use `user_identity_id` instead.
|
|
310
|
+
*/
|
|
263
311
|
user_identity_ids?: Array<string> | undefined
|
|
264
312
|
}
|
|
265
313
|
|
|
@@ -276,6 +324,9 @@ export type ClientSessionsCreateRequest = SeamHttpRequest<
|
|
|
276
324
|
export interface ClientSessionsCreateOptions {}
|
|
277
325
|
|
|
278
326
|
export type ClientSessionsDeleteParameters = {
|
|
327
|
+
/**
|
|
328
|
+
* ID of the client session that you want to delete.
|
|
329
|
+
*/
|
|
279
330
|
client_session_id: string
|
|
280
331
|
}
|
|
281
332
|
|
|
@@ -289,7 +340,13 @@ export type ClientSessionsDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
289
340
|
export interface ClientSessionsDeleteOptions {}
|
|
290
341
|
|
|
291
342
|
export type ClientSessionsGetParameters = {
|
|
343
|
+
/**
|
|
344
|
+
* ID of the client session that you want to get.
|
|
345
|
+
*/
|
|
292
346
|
client_session_id?: string | undefined
|
|
347
|
+
/**
|
|
348
|
+
* User identifier key associated with the client session that you want to get.
|
|
349
|
+
*/
|
|
293
350
|
user_identifier_key?: string | undefined
|
|
294
351
|
}
|
|
295
352
|
|
|
@@ -306,11 +363,30 @@ export type ClientSessionsGetRequest = SeamHttpRequest<
|
|
|
306
363
|
export interface ClientSessionsGetOptions {}
|
|
307
364
|
|
|
308
365
|
export type ClientSessionsGetOrCreateParameters = {
|
|
366
|
+
/**
|
|
367
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
368
|
+
*/
|
|
309
369
|
connect_webview_ids?: Array<string> | undefined
|
|
370
|
+
/**
|
|
371
|
+
* IDs of the [connected accounts](https://docs.seam.co/api/connected_accounts) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
372
|
+
*/
|
|
310
373
|
connected_account_ids?: Array<string> | undefined
|
|
374
|
+
/**
|
|
375
|
+
* Date and time at which the client session should expire in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. If the client session already exists, this will update the expiration before returning it.
|
|
376
|
+
*/
|
|
311
377
|
expires_at?: string | undefined
|
|
378
|
+
/**
|
|
379
|
+
* Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session).
|
|
380
|
+
*/
|
|
312
381
|
user_identifier_key?: string | undefined
|
|
382
|
+
/**
|
|
383
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
384
|
+
*/
|
|
313
385
|
user_identity_id?: string | undefined
|
|
386
|
+
/**
|
|
387
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
388
|
+
* @deprecated Use `user_identity_id`.
|
|
389
|
+
*/
|
|
314
390
|
user_identity_ids?: Array<string> | undefined
|
|
315
391
|
}
|
|
316
392
|
|
|
@@ -329,11 +405,30 @@ export type ClientSessionsGetOrCreateRequest = SeamHttpRequest<
|
|
|
329
405
|
export interface ClientSessionsGetOrCreateOptions {}
|
|
330
406
|
|
|
331
407
|
export type ClientSessionsGrantAccessParameters = {
|
|
408
|
+
/**
|
|
409
|
+
* ID of the client session to which you want to grant access to resources.
|
|
410
|
+
*/
|
|
332
411
|
client_session_id?: string | undefined
|
|
412
|
+
/**
|
|
413
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) that you want to associate with the client session.
|
|
414
|
+
*/
|
|
333
415
|
connect_webview_ids?: Array<string> | undefined
|
|
416
|
+
/**
|
|
417
|
+
* IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that you want to associate with the client session.
|
|
418
|
+
*/
|
|
334
419
|
connected_account_ids?: Array<string> | undefined
|
|
420
|
+
/**
|
|
421
|
+
* Your user ID for the user that you want to associate with the client session.
|
|
422
|
+
*/
|
|
335
423
|
user_identifier_key?: string | undefined
|
|
424
|
+
/**
|
|
425
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
426
|
+
*/
|
|
336
427
|
user_identity_id?: string | undefined
|
|
428
|
+
/**
|
|
429
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
430
|
+
* @deprecated Use `user_identity_id`.
|
|
431
|
+
*/
|
|
337
432
|
user_identity_ids?: Array<string> | undefined
|
|
338
433
|
}
|
|
339
434
|
|
|
@@ -347,10 +442,25 @@ export type ClientSessionsGrantAccessRequest = SeamHttpRequest<void, undefined>
|
|
|
347
442
|
export interface ClientSessionsGrantAccessOptions {}
|
|
348
443
|
|
|
349
444
|
export type ClientSessionsListParameters = {
|
|
445
|
+
/**
|
|
446
|
+
* ID of the client session that you want to retrieve.
|
|
447
|
+
*/
|
|
350
448
|
client_session_id?: string | undefined
|
|
449
|
+
/**
|
|
450
|
+
* ID of the [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) for which you want to retrieve client sessions.
|
|
451
|
+
*/
|
|
351
452
|
connect_webview_id?: string | undefined
|
|
453
|
+
/**
|
|
454
|
+
* Your user ID for the user by which you want to filter client sessions.
|
|
455
|
+
*/
|
|
352
456
|
user_identifier_key?: string | undefined
|
|
457
|
+
/**
|
|
458
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to retrieve client sessions.
|
|
459
|
+
*/
|
|
353
460
|
user_identity_id?: string | undefined
|
|
461
|
+
/**
|
|
462
|
+
* Indicates whether to retrieve only client sessions without associated user identifier keys.
|
|
463
|
+
*/
|
|
354
464
|
without_user_identifier_key?: boolean | undefined
|
|
355
465
|
}
|
|
356
466
|
|
|
@@ -369,6 +479,9 @@ export type ClientSessionsListRequest = SeamHttpRequest<
|
|
|
369
479
|
export interface ClientSessionsListOptions {}
|
|
370
480
|
|
|
371
481
|
export type ClientSessionsRevokeParameters = {
|
|
482
|
+
/**
|
|
483
|
+
* ID of the client session that you want to revoke.
|
|
484
|
+
*/
|
|
372
485
|
client_session_id: string
|
|
373
486
|
}
|
|
374
487
|
|