@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
|
@@ -168,6 +168,9 @@ export class SeamHttpAccessGrants {
|
|
|
168
168
|
return SeamHttpAccessGrantsUnmanaged.fromClient(this.client, this.defaults)
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Creates a new [Access Grant](https://docs.seam.co/use-cases/granting-access/access-grants). Access Grants are the default and recommended way to grant a user access to any physical space, irrespective of the locking hardware. They work with both standalone smart locks (using `device_ids`) and access control systems (using `acs_entrance_ids` or `space_ids`), and can issue PIN codes, key cards, and mobile keys through a single request.
|
|
173
|
+
*/
|
|
171
174
|
create(
|
|
172
175
|
parameters: AccessGrantsCreateParameters,
|
|
173
176
|
options: AccessGrantsCreateOptions = {},
|
|
@@ -181,6 +184,9 @@ export class SeamHttpAccessGrants {
|
|
|
181
184
|
})
|
|
182
185
|
}
|
|
183
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Delete an Access Grant.
|
|
189
|
+
*/
|
|
184
190
|
delete(
|
|
185
191
|
parameters: AccessGrantsDeleteParameters,
|
|
186
192
|
options: AccessGrantsDeleteOptions = {},
|
|
@@ -194,6 +200,9 @@ export class SeamHttpAccessGrants {
|
|
|
194
200
|
})
|
|
195
201
|
}
|
|
196
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Get an Access Grant.
|
|
205
|
+
*/
|
|
197
206
|
get(
|
|
198
207
|
parameters?: AccessGrantsGetParameters,
|
|
199
208
|
options: AccessGrantsGetOptions = {},
|
|
@@ -207,6 +216,9 @@ export class SeamHttpAccessGrants {
|
|
|
207
216
|
})
|
|
208
217
|
}
|
|
209
218
|
|
|
219
|
+
/**
|
|
220
|
+
* Gets all related resources for one or more Access Grants.
|
|
221
|
+
*/
|
|
210
222
|
getRelated(
|
|
211
223
|
parameters?: AccessGrantsGetRelatedParameters,
|
|
212
224
|
options: AccessGrantsGetRelatedOptions = {},
|
|
@@ -220,6 +232,9 @@ export class SeamHttpAccessGrants {
|
|
|
220
232
|
})
|
|
221
233
|
}
|
|
222
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Gets an Access Grant.
|
|
237
|
+
*/
|
|
223
238
|
list(
|
|
224
239
|
parameters?: AccessGrantsListParameters,
|
|
225
240
|
options: AccessGrantsListOptions = {},
|
|
@@ -233,6 +248,9 @@ export class SeamHttpAccessGrants {
|
|
|
233
248
|
})
|
|
234
249
|
}
|
|
235
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Adds additional requested access methods to an existing Access Grant.
|
|
253
|
+
*/
|
|
236
254
|
requestAccessMethods(
|
|
237
255
|
parameters: AccessGrantsRequestAccessMethodsParameters,
|
|
238
256
|
options: AccessGrantsRequestAccessMethodsOptions = {},
|
|
@@ -246,6 +264,9 @@ export class SeamHttpAccessGrants {
|
|
|
246
264
|
})
|
|
247
265
|
}
|
|
248
266
|
|
|
267
|
+
/**
|
|
268
|
+
* Updates an existing Access Grant's time window.
|
|
269
|
+
*/
|
|
249
270
|
update(
|
|
250
271
|
parameters?: AccessGrantsUpdateParameters,
|
|
251
272
|
options: AccessGrantsUpdateOptions = {},
|
|
@@ -261,38 +282,111 @@ export class SeamHttpAccessGrants {
|
|
|
261
282
|
}
|
|
262
283
|
|
|
263
284
|
export type AccessGrantsCreateParameters = {
|
|
285
|
+
/**
|
|
286
|
+
* ID of user identity for whom access is being granted.
|
|
287
|
+
*/
|
|
264
288
|
user_identity_id?: string | undefined
|
|
289
|
+
/**
|
|
290
|
+
* When used, creates a new user identity with the given details, and grants them access.
|
|
291
|
+
*/
|
|
265
292
|
user_identity?:
|
|
266
293
|
| {
|
|
294
|
+
/**
|
|
295
|
+
* Unique email address for the user identity.
|
|
296
|
+
*/
|
|
267
297
|
email_address?: string | undefined
|
|
298
|
+
/**
|
|
299
|
+
* Full name of the user associated with the user identity.
|
|
300
|
+
*/
|
|
268
301
|
full_name?: string | undefined
|
|
302
|
+
/**
|
|
303
|
+
* Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
304
|
+
*/
|
|
269
305
|
phone_number?: string | undefined
|
|
306
|
+
/**
|
|
307
|
+
* Unique key for the user identity.
|
|
308
|
+
*/
|
|
270
309
|
user_identity_key?: string | undefined
|
|
271
310
|
}
|
|
272
311
|
| undefined
|
|
312
|
+
/**
|
|
313
|
+
* Unique key for the access grant within the workspace.
|
|
314
|
+
*/
|
|
273
315
|
access_grant_key?: string | undefined
|
|
316
|
+
/**
|
|
317
|
+
* Set of IDs of the [entrances](https://docs.seam.co/api/acs/systems/list) to which access is being granted.
|
|
318
|
+
*/
|
|
274
319
|
acs_entrance_ids?: Array<string> | undefined
|
|
320
|
+
/**
|
|
321
|
+
* ID of the customization profile to apply to the Access Grant and its access methods.
|
|
322
|
+
*/
|
|
275
323
|
customization_profile_id?: string | undefined
|
|
324
|
+
/**
|
|
325
|
+
* Set of IDs of the [devices](https://docs.seam.co/api/devices/list) to which access is being granted.
|
|
326
|
+
*/
|
|
276
327
|
device_ids?: Array<string> | undefined
|
|
328
|
+
/**
|
|
329
|
+
* Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
|
|
330
|
+
*/
|
|
277
331
|
ends_at?: string | undefined
|
|
332
|
+
/**
|
|
333
|
+
* @deprecated Create a space first, then reference it using `space_ids`.
|
|
334
|
+
*/
|
|
278
335
|
location?:
|
|
279
336
|
| {
|
|
337
|
+
/**
|
|
338
|
+
* @deprecated Use `acs_entrance_ids` at the top level.
|
|
339
|
+
*/
|
|
280
340
|
acs_entrance_ids?: Array<string> | undefined
|
|
341
|
+
/**
|
|
342
|
+
* @deprecated Use `device_ids` at the top level.
|
|
343
|
+
*/
|
|
281
344
|
device_ids?: Array<string> | undefined
|
|
345
|
+
/**
|
|
346
|
+
* Name of the location.
|
|
347
|
+
*/
|
|
282
348
|
name?: string | undefined
|
|
283
349
|
}
|
|
284
350
|
| undefined
|
|
351
|
+
/**
|
|
352
|
+
* @deprecated Use `space_ids`.
|
|
353
|
+
*/
|
|
285
354
|
location_ids?: Array<string> | undefined
|
|
355
|
+
/**
|
|
356
|
+
* Name for the access grant.
|
|
357
|
+
*/
|
|
286
358
|
name?: string | undefined
|
|
359
|
+
|
|
287
360
|
requested_access_methods: Array<{
|
|
361
|
+
/**
|
|
362
|
+
* Specific PIN code to use for this access method. Only applicable when mode is 'code'.
|
|
363
|
+
*/
|
|
288
364
|
code?: string | undefined
|
|
365
|
+
/**
|
|
366
|
+
* Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.
|
|
367
|
+
*/
|
|
289
368
|
instant_key_max_use_count?: number | undefined
|
|
369
|
+
/**
|
|
370
|
+
* Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
371
|
+
*/
|
|
290
372
|
mode?: 'code' | 'card' | 'mobile_key' | 'cloud_key' | undefined
|
|
291
373
|
}>
|
|
292
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Reservation key for the access grant.
|
|
377
|
+
*/
|
|
293
378
|
reservation_key?: string | undefined
|
|
379
|
+
/**
|
|
380
|
+
* Set of IDs of existing spaces to which access is being granted.
|
|
381
|
+
*/
|
|
294
382
|
space_ids?: Array<string> | undefined
|
|
383
|
+
/**
|
|
384
|
+
* Set of keys of existing spaces to which access is being granted.
|
|
385
|
+
*/
|
|
295
386
|
space_keys?: Array<string> | undefined
|
|
387
|
+
/**
|
|
388
|
+
* Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
389
|
+
*/
|
|
296
390
|
starts_at?: string | undefined
|
|
297
391
|
}
|
|
298
392
|
|
|
@@ -309,6 +403,9 @@ export type AccessGrantsCreateRequest = SeamHttpRequest<
|
|
|
309
403
|
export interface AccessGrantsCreateOptions {}
|
|
310
404
|
|
|
311
405
|
export type AccessGrantsDeleteParameters = {
|
|
406
|
+
/**
|
|
407
|
+
* ID of Access Grant to delete.
|
|
408
|
+
*/
|
|
312
409
|
access_grant_id: string
|
|
313
410
|
}
|
|
314
411
|
|
|
@@ -322,7 +419,13 @@ export type AccessGrantsDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
322
419
|
export interface AccessGrantsDeleteOptions {}
|
|
323
420
|
|
|
324
421
|
export type AccessGrantsGetParameters = {
|
|
422
|
+
/**
|
|
423
|
+
* ID of Access Grant to get.
|
|
424
|
+
*/
|
|
325
425
|
access_grant_id?: string | undefined
|
|
426
|
+
/**
|
|
427
|
+
* Unique key of Access Grant to get.
|
|
428
|
+
*/
|
|
326
429
|
access_grant_key?: string | undefined
|
|
327
430
|
}
|
|
328
431
|
|
|
@@ -339,8 +442,15 @@ export type AccessGrantsGetRequest = SeamHttpRequest<
|
|
|
339
442
|
export interface AccessGrantsGetOptions {}
|
|
340
443
|
|
|
341
444
|
export type AccessGrantsGetRelatedParameters = {
|
|
445
|
+
/**
|
|
446
|
+
* IDs of the access grants that you want to get along with their related resources.
|
|
447
|
+
*/
|
|
342
448
|
access_grant_ids?: Array<string> | undefined
|
|
449
|
+
/**
|
|
450
|
+
* Keys of the access grants that you want to get along with their related resources.
|
|
451
|
+
*/
|
|
343
452
|
access_grant_keys?: Array<string> | undefined
|
|
453
|
+
|
|
344
454
|
exclude?:
|
|
345
455
|
| Array<
|
|
346
456
|
| 'spaces'
|
|
@@ -353,6 +463,7 @@ export type AccessGrantsGetRelatedParameters = {
|
|
|
353
463
|
| 'access_methods'
|
|
354
464
|
>
|
|
355
465
|
| undefined
|
|
466
|
+
|
|
356
467
|
include?:
|
|
357
468
|
| Array<
|
|
358
469
|
| 'spaces'
|
|
@@ -391,18 +502,57 @@ export type AccessGrantsGetRelatedRequest = SeamHttpRequest<
|
|
|
391
502
|
export interface AccessGrantsGetRelatedOptions {}
|
|
392
503
|
|
|
393
504
|
export type AccessGrantsListParameters = {
|
|
505
|
+
/**
|
|
506
|
+
* ID of the access code by which you want to filter the list of Access Grants.
|
|
507
|
+
*/
|
|
394
508
|
access_code_id?: string | undefined
|
|
509
|
+
/**
|
|
510
|
+
* IDs of the access grants to retrieve.
|
|
511
|
+
*/
|
|
395
512
|
access_grant_ids?: Array<string> | undefined
|
|
513
|
+
/**
|
|
514
|
+
* Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key.
|
|
515
|
+
*/
|
|
396
516
|
access_grant_key?: string | undefined
|
|
517
|
+
/**
|
|
518
|
+
* ID of the entrance by which you want to filter the list of Access Grants.
|
|
519
|
+
*/
|
|
397
520
|
acs_entrance_id?: string | undefined
|
|
521
|
+
/**
|
|
522
|
+
* ID of the access system by which you want to filter the list of Access Grants.
|
|
523
|
+
*/
|
|
398
524
|
acs_system_id?: string | undefined
|
|
525
|
+
/**
|
|
526
|
+
* Customer key for which you want to list access grants.
|
|
527
|
+
*/
|
|
399
528
|
customer_key?: string | undefined
|
|
529
|
+
/**
|
|
530
|
+
* ID of the device by which you want to filter the list of Access Grants.
|
|
531
|
+
*/
|
|
400
532
|
device_id?: string | undefined
|
|
533
|
+
/**
|
|
534
|
+
* Numerical limit on the number of access grants to return.
|
|
535
|
+
*/
|
|
401
536
|
limit?: number | undefined
|
|
537
|
+
/**
|
|
538
|
+
* @deprecated Use `space_id`.
|
|
539
|
+
*/
|
|
402
540
|
location_id?: string | undefined
|
|
541
|
+
/**
|
|
542
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
543
|
+
*/
|
|
403
544
|
page_cursor?: string | undefined
|
|
545
|
+
/**
|
|
546
|
+
* Filter Access Grants by reservation_key.
|
|
547
|
+
*/
|
|
404
548
|
reservation_key?: string | undefined
|
|
549
|
+
/**
|
|
550
|
+
* ID of the space by which you want to filter the list of Access Grants.
|
|
551
|
+
*/
|
|
405
552
|
space_id?: string | undefined
|
|
553
|
+
/**
|
|
554
|
+
* ID of user identity by which you want to filter the list of Access Grants.
|
|
555
|
+
*/
|
|
406
556
|
user_identity_id?: string | undefined
|
|
407
557
|
}
|
|
408
558
|
|
|
@@ -419,11 +569,26 @@ export type AccessGrantsListRequest = SeamHttpRequest<
|
|
|
419
569
|
export interface AccessGrantsListOptions {}
|
|
420
570
|
|
|
421
571
|
export type AccessGrantsRequestAccessMethodsParameters = {
|
|
572
|
+
/**
|
|
573
|
+
* ID of the Access Grant to add access methods to.
|
|
574
|
+
*/
|
|
422
575
|
access_grant_id: string
|
|
423
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Array of requested access methods to add to the access grant.
|
|
579
|
+
*/
|
|
424
580
|
requested_access_methods: Array<{
|
|
581
|
+
/**
|
|
582
|
+
* Specific PIN code to use for this access method. Only applicable when mode is 'code'.
|
|
583
|
+
*/
|
|
425
584
|
code?: string | undefined
|
|
585
|
+
/**
|
|
586
|
+
* Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.
|
|
587
|
+
*/
|
|
426
588
|
instant_key_max_use_count?: number | undefined
|
|
589
|
+
/**
|
|
590
|
+
* Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
591
|
+
*/
|
|
427
592
|
mode?: 'code' | 'card' | 'mobile_key' | 'cloud_key' | undefined
|
|
428
593
|
}>
|
|
429
594
|
}
|
|
@@ -443,10 +608,25 @@ export type AccessGrantsRequestAccessMethodsRequest = SeamHttpRequest<
|
|
|
443
608
|
export interface AccessGrantsRequestAccessMethodsOptions {}
|
|
444
609
|
|
|
445
610
|
export type AccessGrantsUpdateParameters = {
|
|
611
|
+
/**
|
|
612
|
+
* ID of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.
|
|
613
|
+
*/
|
|
446
614
|
access_grant_id?: string | undefined
|
|
615
|
+
/**
|
|
616
|
+
* Key of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.
|
|
617
|
+
*/
|
|
447
618
|
access_grant_key?: string | undefined
|
|
619
|
+
/**
|
|
620
|
+
* Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
|
|
621
|
+
*/
|
|
448
622
|
ends_at?: string | undefined
|
|
623
|
+
/**
|
|
624
|
+
* Display name for the access grant.
|
|
625
|
+
*/
|
|
449
626
|
name?: string | undefined
|
|
627
|
+
/**
|
|
628
|
+
* Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
629
|
+
*/
|
|
450
630
|
starts_at?: string | undefined
|
|
451
631
|
}
|
|
452
632
|
|
|
@@ -161,6 +161,9 @@ export class SeamHttpAccessGrantsUnmanaged {
|
|
|
161
161
|
await clientSessions.get()
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Get an unmanaged Access Grant (where is_managed = false).
|
|
166
|
+
*/
|
|
164
167
|
get(
|
|
165
168
|
parameters: AccessGrantsUnmanagedGetParameters,
|
|
166
169
|
options: AccessGrantsUnmanagedGetOptions = {},
|
|
@@ -174,6 +177,9 @@ export class SeamHttpAccessGrantsUnmanaged {
|
|
|
174
177
|
})
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Gets unmanaged Access Grants (where is_managed = false).
|
|
182
|
+
*/
|
|
177
183
|
list(
|
|
178
184
|
parameters?: AccessGrantsUnmanagedListParameters,
|
|
179
185
|
options: AccessGrantsUnmanagedListOptions = {},
|
|
@@ -187,6 +193,13 @@ export class SeamHttpAccessGrantsUnmanaged {
|
|
|
187
193
|
})
|
|
188
194
|
}
|
|
189
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Updates an unmanaged Access Grant to make it managed.
|
|
198
|
+
*
|
|
199
|
+
* This endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.
|
|
200
|
+
*
|
|
201
|
+
* When converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.
|
|
202
|
+
*/
|
|
190
203
|
update(
|
|
191
204
|
parameters: AccessGrantsUnmanagedUpdateParameters,
|
|
192
205
|
options: AccessGrantsUnmanagedUpdateOptions = {},
|
|
@@ -202,6 +215,9 @@ export class SeamHttpAccessGrantsUnmanaged {
|
|
|
202
215
|
}
|
|
203
216
|
|
|
204
217
|
export type AccessGrantsUnmanagedGetParameters = {
|
|
218
|
+
/**
|
|
219
|
+
* ID of unmanaged Access Grant to get.
|
|
220
|
+
*/
|
|
205
221
|
access_grant_id: string
|
|
206
222
|
}
|
|
207
223
|
|
|
@@ -220,11 +236,29 @@ export type AccessGrantsUnmanagedGetRequest = SeamHttpRequest<
|
|
|
220
236
|
export interface AccessGrantsUnmanagedGetOptions {}
|
|
221
237
|
|
|
222
238
|
export type AccessGrantsUnmanagedListParameters = {
|
|
239
|
+
/**
|
|
240
|
+
* ID of the entrance by which you want to filter the list of unmanaged Access Grants.
|
|
241
|
+
*/
|
|
223
242
|
acs_entrance_id?: string | undefined
|
|
243
|
+
/**
|
|
244
|
+
* ID of the access system by which you want to filter the list of unmanaged Access Grants.
|
|
245
|
+
*/
|
|
224
246
|
acs_system_id?: string | undefined
|
|
247
|
+
/**
|
|
248
|
+
* Numerical limit on the number of unmanaged access grants to return.
|
|
249
|
+
*/
|
|
225
250
|
limit?: number | undefined
|
|
251
|
+
/**
|
|
252
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
253
|
+
*/
|
|
226
254
|
page_cursor?: string | undefined
|
|
255
|
+
/**
|
|
256
|
+
* Filter unmanaged Access Grants by reservation_key.
|
|
257
|
+
*/
|
|
227
258
|
reservation_key?: string | undefined
|
|
259
|
+
/**
|
|
260
|
+
* ID of user identity by which you want to filter the list of unmanaged Access Grants.
|
|
261
|
+
*/
|
|
228
262
|
user_identity_id?: string | undefined
|
|
229
263
|
}
|
|
230
264
|
|
|
@@ -243,9 +277,18 @@ export type AccessGrantsUnmanagedListRequest = SeamHttpRequest<
|
|
|
243
277
|
export interface AccessGrantsUnmanagedListOptions {}
|
|
244
278
|
|
|
245
279
|
export type AccessGrantsUnmanagedUpdateParameters = {
|
|
280
|
+
/**
|
|
281
|
+
* ID of the unmanaged Access Grant to update.
|
|
282
|
+
*/
|
|
246
283
|
access_grant_id: string
|
|
247
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Unique key for the access grant. If not provided, the existing key will be preserved.
|
|
287
|
+
*/
|
|
248
288
|
access_grant_key?: string | undefined
|
|
289
|
+
/**
|
|
290
|
+
* Must be set to true to convert the unmanaged access grant to managed.
|
|
291
|
+
*/
|
|
249
292
|
is_managed: boolean
|
|
250
293
|
}
|
|
251
294
|
|
|
@@ -169,6 +169,9 @@ export class SeamHttpAccessMethods {
|
|
|
169
169
|
return SeamHttpAccessMethodsUnmanaged.fromClient(this.client, this.defaults)
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Assigns a pre-registered card credential, identified by `card_number`, to a card-mode access method. Use this endpoint for access systems that use pre-registered cards, where a physical card must be associated with an access method before it can be used for access. Assigning a card credential also triggers issuance of the access method.
|
|
174
|
+
*/
|
|
172
175
|
assignCard(
|
|
173
176
|
parameters: AccessMethodsAssignCardParameters,
|
|
174
177
|
options: AccessMethodsAssignCardOptions = {},
|
|
@@ -182,6 +185,9 @@ export class SeamHttpAccessMethods {
|
|
|
182
185
|
})
|
|
183
186
|
}
|
|
184
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Deletes an access method.
|
|
190
|
+
*/
|
|
185
191
|
delete(
|
|
186
192
|
parameters?: AccessMethodsDeleteParameters,
|
|
187
193
|
options: AccessMethodsDeleteOptions = {},
|
|
@@ -195,6 +201,9 @@ export class SeamHttpAccessMethods {
|
|
|
195
201
|
})
|
|
196
202
|
}
|
|
197
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Encodes an existing access method onto a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
206
|
+
*/
|
|
198
207
|
encode(
|
|
199
208
|
parameters: AccessMethodsEncodeParameters,
|
|
200
209
|
options: AccessMethodsEncodeOptions = {},
|
|
@@ -208,6 +217,9 @@ export class SeamHttpAccessMethods {
|
|
|
208
217
|
})
|
|
209
218
|
}
|
|
210
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Gets an access method.
|
|
222
|
+
*/
|
|
211
223
|
get(
|
|
212
224
|
parameters: AccessMethodsGetParameters,
|
|
213
225
|
options: AccessMethodsGetOptions = {},
|
|
@@ -221,6 +233,9 @@ export class SeamHttpAccessMethods {
|
|
|
221
233
|
})
|
|
222
234
|
}
|
|
223
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Gets all related resources for one or more Access Methods.
|
|
238
|
+
*/
|
|
224
239
|
getRelated(
|
|
225
240
|
parameters: AccessMethodsGetRelatedParameters,
|
|
226
241
|
options: AccessMethodsGetRelatedOptions = {},
|
|
@@ -234,6 +249,9 @@ export class SeamHttpAccessMethods {
|
|
|
234
249
|
})
|
|
235
250
|
}
|
|
236
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Lists all access methods, usually filtered by Access Grant.
|
|
254
|
+
*/
|
|
237
255
|
list(
|
|
238
256
|
parameters?: AccessMethodsListParameters,
|
|
239
257
|
options: AccessMethodsListOptions = {},
|
|
@@ -247,6 +265,9 @@ export class SeamHttpAccessMethods {
|
|
|
247
265
|
})
|
|
248
266
|
}
|
|
249
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Remotely unlocks a specified [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) using the cloud key credential associated with an access method. Returns an action attempt that tracks the progress of the unlock operation.
|
|
270
|
+
*/
|
|
250
271
|
unlockDoor(
|
|
251
272
|
parameters: AccessMethodsUnlockDoorParameters,
|
|
252
273
|
options: AccessMethodsUnlockDoorOptions = {},
|
|
@@ -262,8 +283,14 @@ export class SeamHttpAccessMethods {
|
|
|
262
283
|
}
|
|
263
284
|
|
|
264
285
|
export type AccessMethodsAssignCardParameters = {
|
|
286
|
+
/**
|
|
287
|
+
* ID of the `access_method` to assign the credential to.
|
|
288
|
+
*/
|
|
265
289
|
access_method_id: string
|
|
266
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Card number of the credential to assign.
|
|
293
|
+
*/
|
|
267
294
|
card_number: string
|
|
268
295
|
}
|
|
269
296
|
|
|
@@ -283,8 +310,17 @@ export type AccessMethodsAssignCardOptions = Pick<
|
|
|
283
310
|
>
|
|
284
311
|
|
|
285
312
|
export type AccessMethodsDeleteParameters = {
|
|
313
|
+
/**
|
|
314
|
+
* ID of access method to delete.
|
|
315
|
+
*/
|
|
286
316
|
access_method_id?: string | undefined
|
|
317
|
+
/**
|
|
318
|
+
* ID of access grant whose access methods should be deleted.
|
|
319
|
+
*/
|
|
287
320
|
access_grant_id?: string | undefined
|
|
321
|
+
/**
|
|
322
|
+
* Reservation key of the access grant whose access methods should be deleted.
|
|
323
|
+
*/
|
|
288
324
|
reservation_key?: string | undefined
|
|
289
325
|
}
|
|
290
326
|
|
|
@@ -298,8 +334,14 @@ export type AccessMethodsDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
298
334
|
export interface AccessMethodsDeleteOptions {}
|
|
299
335
|
|
|
300
336
|
export type AccessMethodsEncodeParameters = {
|
|
337
|
+
/**
|
|
338
|
+
* ID of the `access_method` to encode onto a card.
|
|
339
|
+
*/
|
|
301
340
|
access_method_id: string
|
|
302
341
|
|
|
342
|
+
/**
|
|
343
|
+
* ID of the `acs_encoder` to use to encode the `access_method`.
|
|
344
|
+
*/
|
|
303
345
|
acs_encoder_id: string
|
|
304
346
|
}
|
|
305
347
|
|
|
@@ -319,6 +361,9 @@ export type AccessMethodsEncodeOptions = Pick<
|
|
|
319
361
|
>
|
|
320
362
|
|
|
321
363
|
export type AccessMethodsGetParameters = {
|
|
364
|
+
/**
|
|
365
|
+
* ID of access method to get.
|
|
366
|
+
*/
|
|
322
367
|
access_method_id: string
|
|
323
368
|
}
|
|
324
369
|
|
|
@@ -335,6 +380,9 @@ export type AccessMethodsGetRequest = SeamHttpRequest<
|
|
|
335
380
|
export interface AccessMethodsGetOptions {}
|
|
336
381
|
|
|
337
382
|
export type AccessMethodsGetRelatedParameters = {
|
|
383
|
+
/**
|
|
384
|
+
* IDs of the access methods that you want to get along with their related resources.
|
|
385
|
+
*/
|
|
338
386
|
access_method_ids: Array<string>
|
|
339
387
|
|
|
340
388
|
exclude?:
|
|
@@ -349,6 +397,7 @@ export type AccessMethodsGetRelatedParameters = {
|
|
|
349
397
|
| 'acs_credentials'
|
|
350
398
|
>
|
|
351
399
|
| undefined
|
|
400
|
+
|
|
352
401
|
include?:
|
|
353
402
|
| Array<
|
|
354
403
|
| 'spaces'
|
|
@@ -387,13 +436,37 @@ export type AccessMethodsGetRelatedRequest = SeamHttpRequest<
|
|
|
387
436
|
export interface AccessMethodsGetRelatedOptions {}
|
|
388
437
|
|
|
389
438
|
export type AccessMethodsListParameters = {
|
|
439
|
+
/**
|
|
440
|
+
* ID of the access code by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.
|
|
441
|
+
*/
|
|
390
442
|
access_code_id?: string | undefined
|
|
443
|
+
/**
|
|
444
|
+
* ID of Access Grant to list access methods for.
|
|
445
|
+
*/
|
|
391
446
|
access_grant_id?: string | undefined
|
|
447
|
+
/**
|
|
448
|
+
* Key of Access Grant to list access methods for.
|
|
449
|
+
*/
|
|
392
450
|
access_grant_key?: string | undefined
|
|
451
|
+
/**
|
|
452
|
+
* ID of the entrance for which you want to retrieve all access methods that grant access to it.
|
|
453
|
+
*/
|
|
393
454
|
acs_entrance_id?: string | undefined
|
|
455
|
+
/**
|
|
456
|
+
* ID of the device by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.
|
|
457
|
+
*/
|
|
394
458
|
device_id?: string | undefined
|
|
459
|
+
/**
|
|
460
|
+
* Maximum number of records to return per page.
|
|
461
|
+
*/
|
|
395
462
|
limit?: number | undefined
|
|
463
|
+
/**
|
|
464
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
465
|
+
*/
|
|
396
466
|
page_cursor?: string | undefined
|
|
467
|
+
/**
|
|
468
|
+
* ID of the space by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.
|
|
469
|
+
*/
|
|
397
470
|
space_id?: string | undefined
|
|
398
471
|
}
|
|
399
472
|
|
|
@@ -410,8 +483,14 @@ export type AccessMethodsListRequest = SeamHttpRequest<
|
|
|
410
483
|
export interface AccessMethodsListOptions {}
|
|
411
484
|
|
|
412
485
|
export type AccessMethodsUnlockDoorParameters = {
|
|
486
|
+
/**
|
|
487
|
+
* ID of the cloud_key `access_method` to use for the unlock operation.
|
|
488
|
+
*/
|
|
413
489
|
access_method_id: string
|
|
414
490
|
|
|
491
|
+
/**
|
|
492
|
+
* ID of the entrance to unlock.
|
|
493
|
+
*/
|
|
415
494
|
acs_entrance_id: string
|
|
416
495
|
}
|
|
417
496
|
|
|
@@ -161,6 +161,9 @@ export class SeamHttpAccessMethodsUnmanaged {
|
|
|
161
161
|
await clientSessions.get()
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Gets an unmanaged access method (where is_managed = false).
|
|
166
|
+
*/
|
|
164
167
|
get(
|
|
165
168
|
parameters: AccessMethodsUnmanagedGetParameters,
|
|
166
169
|
options: AccessMethodsUnmanagedGetOptions = {},
|
|
@@ -174,6 +177,9 @@ export class SeamHttpAccessMethodsUnmanaged {
|
|
|
174
177
|
})
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Lists all unmanaged access methods (where is_managed = false), usually filtered by Access Grant.
|
|
182
|
+
*/
|
|
177
183
|
list(
|
|
178
184
|
parameters: AccessMethodsUnmanagedListParameters,
|
|
179
185
|
options: AccessMethodsUnmanagedListOptions = {},
|
|
@@ -189,6 +195,9 @@ export class SeamHttpAccessMethodsUnmanaged {
|
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
export type AccessMethodsUnmanagedGetParameters = {
|
|
198
|
+
/**
|
|
199
|
+
* ID of unmanaged access method to get.
|
|
200
|
+
*/
|
|
192
201
|
access_method_id: string
|
|
193
202
|
}
|
|
194
203
|
|
|
@@ -207,10 +216,22 @@ export type AccessMethodsUnmanagedGetRequest = SeamHttpRequest<
|
|
|
207
216
|
export interface AccessMethodsUnmanagedGetOptions {}
|
|
208
217
|
|
|
209
218
|
export type AccessMethodsUnmanagedListParameters = {
|
|
219
|
+
/**
|
|
220
|
+
* ID of Access Grant to list unmanaged access methods for.
|
|
221
|
+
*/
|
|
210
222
|
access_grant_id: string
|
|
211
223
|
|
|
224
|
+
/**
|
|
225
|
+
* ID of the entrance for which you want to retrieve all unmanaged access methods.
|
|
226
|
+
*/
|
|
212
227
|
acs_entrance_id?: string | undefined
|
|
228
|
+
/**
|
|
229
|
+
* ID of the device for which you want to retrieve all unmanaged access methods.
|
|
230
|
+
*/
|
|
213
231
|
device_id?: string | undefined
|
|
232
|
+
/**
|
|
233
|
+
* ID of the space for which you want to retrieve all unmanaged access methods.
|
|
234
|
+
*/
|
|
214
235
|
space_id?: string | undefined
|
|
215
236
|
}
|
|
216
237
|
|