@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
|
@@ -18,18 +18,51 @@ export declare class SeamHttpAcsCredentials {
|
|
|
18
18
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Assigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) to a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
23
|
+
*/
|
|
21
24
|
assign(parameters: AcsCredentialsAssignParameters, options?: AcsCredentialsAssignOptions): AcsCredentialsAssignRequest;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new [credential](https://docs.seam.co/low-level-apis/managing-credentials) for a specified [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they create and manage the underlying credentials for you, across access systems and standalone smart locks alike. Use this low-level endpoint only when you need direct control over an individual ACS credential.
|
|
27
|
+
*/
|
|
22
28
|
create(parameters: AcsCredentialsCreateParameters, options?: AcsCredentialsCreateOptions): AcsCredentialsCreateRequest;
|
|
29
|
+
/**
|
|
30
|
+
* Deletes a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
31
|
+
*/
|
|
23
32
|
delete(parameters: AcsCredentialsDeleteParameters, options?: AcsCredentialsDeleteOptions): AcsCredentialsDeleteRequest;
|
|
33
|
+
/**
|
|
34
|
+
* Returns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
35
|
+
*/
|
|
24
36
|
get(parameters: AcsCredentialsGetParameters, options?: AcsCredentialsGetOptions): AcsCredentialsGetRequest;
|
|
37
|
+
/**
|
|
38
|
+
* Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
39
|
+
*/
|
|
25
40
|
list(parameters?: AcsCredentialsListParameters, options?: AcsCredentialsListOptions): AcsCredentialsListRequest;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a list of all [entrances](https://docs.seam.co/api/acs/entrances) to which a [credential](https://docs.seam.co/api/acs/credentials) grants access.
|
|
43
|
+
*/
|
|
26
44
|
listAccessibleEntrances(parameters: AcsCredentialsListAccessibleEntrancesParameters, options?: AcsCredentialsListAccessibleEntrancesOptions): AcsCredentialsListAccessibleEntrancesRequest;
|
|
45
|
+
/**
|
|
46
|
+
* Unassigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
47
|
+
*/
|
|
27
48
|
unassign(parameters: AcsCredentialsUnassignParameters, options?: AcsCredentialsUnassignOptions): AcsCredentialsUnassignRequest;
|
|
49
|
+
/**
|
|
50
|
+
* Updates the code and ends at date and time for a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
51
|
+
*/
|
|
28
52
|
update(parameters: AcsCredentialsUpdateParameters, options?: AcsCredentialsUpdateOptions): AcsCredentialsUpdateRequest;
|
|
29
53
|
}
|
|
30
54
|
export type AcsCredentialsAssignParameters = {
|
|
55
|
+
/**
|
|
56
|
+
* ID of the credential that you want to assign to an access system user.
|
|
57
|
+
*/
|
|
31
58
|
acs_credential_id: string;
|
|
59
|
+
/**
|
|
60
|
+
* ID of the access system user to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id.
|
|
61
|
+
*/
|
|
32
62
|
acs_user_id?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* ID of the user identity to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the credential belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created.
|
|
65
|
+
*/
|
|
33
66
|
user_identity_id?: string | undefined;
|
|
34
67
|
};
|
|
35
68
|
/**
|
|
@@ -40,25 +73,67 @@ export type AcsCredentialsAssignRequest = SeamHttpRequest<void, undefined>;
|
|
|
40
73
|
export interface AcsCredentialsAssignOptions {
|
|
41
74
|
}
|
|
42
75
|
export type AcsCredentialsCreateParameters = {
|
|
76
|
+
/**
|
|
77
|
+
* Access method for the new credential. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
78
|
+
*/
|
|
43
79
|
access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
80
|
+
/**
|
|
81
|
+
* ID of the access system to which the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`.
|
|
82
|
+
*/
|
|
44
83
|
acs_system_id?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* ID of the access system user to whom the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`.
|
|
86
|
+
*/
|
|
45
87
|
acs_user_id?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Set of IDs of the [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for which the new credential grants access.
|
|
90
|
+
*/
|
|
46
91
|
allowed_acs_entrance_ids?: Array<string> | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Vostio-specific metadata for the new credential.
|
|
94
|
+
*/
|
|
47
95
|
assa_abloy_vostio_metadata?: {
|
|
48
96
|
auto_join?: boolean | undefined;
|
|
49
97
|
join_all_guest_acs_entrances?: boolean | undefined;
|
|
50
98
|
override_all_guest_acs_entrances?: boolean | undefined;
|
|
51
99
|
override_guest_acs_entrance_ids?: Array<string> | undefined;
|
|
52
100
|
} | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable [device or system integration guide](https://docs.seam.co/device-and-system-integration-guides).
|
|
103
|
+
*/
|
|
53
104
|
code?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* ACS system ID of the credential manager for the new credential.
|
|
107
|
+
*/
|
|
54
108
|
credential_manager_acs_system_id?: string | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Date and time at which the validity of the new credential 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`.
|
|
111
|
+
*/
|
|
55
112
|
ends_at?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Indicates whether the new credential is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
115
|
+
*/
|
|
56
116
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Salto Space-specific metadata for the new credential.
|
|
119
|
+
*/
|
|
57
120
|
salto_space_metadata?: {
|
|
121
|
+
/**
|
|
122
|
+
* Indicates whether to assign a first, new card to a user. See also [Programming Salto Space Card-based Credentials](https://docs.seam.co/device-and-system-integration-guides/salto-proaccess-space-access-system/programming-salto-space-card-based-credentials).
|
|
123
|
+
*/
|
|
58
124
|
assign_new_key?: boolean | undefined;
|
|
59
125
|
} | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
128
|
+
*/
|
|
60
129
|
starts_at?: string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* ID of the user identity to whom the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`. If the access system contains a user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the credential belongs to the access system user. If the access system does not have a corresponding user, one is created.
|
|
132
|
+
*/
|
|
61
133
|
user_identity_id?: string | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Visionline-specific metadata for the new credential.
|
|
136
|
+
*/
|
|
62
137
|
visionline_metadata?: {
|
|
63
138
|
auto_join?: boolean | undefined;
|
|
64
139
|
card_format?: 'TLCode' | 'rfid48' | undefined;
|
|
@@ -77,6 +152,9 @@ export type AcsCredentialsCreateRequest = SeamHttpRequest<AcsCredentialsCreateRe
|
|
|
77
152
|
export interface AcsCredentialsCreateOptions {
|
|
78
153
|
}
|
|
79
154
|
export type AcsCredentialsDeleteParameters = {
|
|
155
|
+
/**
|
|
156
|
+
* ID of the credential that you want to delete.
|
|
157
|
+
*/
|
|
80
158
|
acs_credential_id: string;
|
|
81
159
|
};
|
|
82
160
|
/**
|
|
@@ -87,6 +165,9 @@ export type AcsCredentialsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
|
87
165
|
export interface AcsCredentialsDeleteOptions {
|
|
88
166
|
}
|
|
89
167
|
export type AcsCredentialsGetParameters = {
|
|
168
|
+
/**
|
|
169
|
+
* ID of the credential that you want to get.
|
|
170
|
+
*/
|
|
90
171
|
acs_credential_id: string;
|
|
91
172
|
};
|
|
92
173
|
/**
|
|
@@ -99,13 +180,37 @@ export type AcsCredentialsGetRequest = SeamHttpRequest<AcsCredentialsGetResponse
|
|
|
99
180
|
export interface AcsCredentialsGetOptions {
|
|
100
181
|
}
|
|
101
182
|
export type AcsCredentialsListParameters = {
|
|
183
|
+
/**
|
|
184
|
+
* ID of the access system user for which you want to retrieve all credentials.
|
|
185
|
+
*/
|
|
102
186
|
acs_user_id?: string | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* ID of the access system for which you want to retrieve all credentials.
|
|
189
|
+
*/
|
|
103
190
|
acs_system_id?: string | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* ID of the user identity for which you want to retrieve all credentials.
|
|
193
|
+
*/
|
|
104
194
|
user_identity_id?: string | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Date and time, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, before which events to return were created.
|
|
197
|
+
*/
|
|
105
198
|
created_before?: string | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Indicates whether you want to retrieve only multi-phone sync credentials or non-multi-phone sync credentials.
|
|
201
|
+
*/
|
|
106
202
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Number of credentials to return.
|
|
205
|
+
*/
|
|
107
206
|
limit?: number | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
209
|
+
*/
|
|
108
210
|
page_cursor?: string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`.
|
|
213
|
+
*/
|
|
109
214
|
search?: string | undefined;
|
|
110
215
|
};
|
|
111
216
|
/**
|
|
@@ -118,6 +223,9 @@ export type AcsCredentialsListRequest = SeamHttpRequest<AcsCredentialsListRespon
|
|
|
118
223
|
export interface AcsCredentialsListOptions {
|
|
119
224
|
}
|
|
120
225
|
export type AcsCredentialsListAccessibleEntrancesParameters = {
|
|
226
|
+
/**
|
|
227
|
+
* ID of the credential for which you want to retrieve all entrances to which the credential grants access.
|
|
228
|
+
*/
|
|
121
229
|
acs_credential_id: string;
|
|
122
230
|
};
|
|
123
231
|
/**
|
|
@@ -130,8 +238,17 @@ export type AcsCredentialsListAccessibleEntrancesRequest = SeamHttpRequest<AcsCr
|
|
|
130
238
|
export interface AcsCredentialsListAccessibleEntrancesOptions {
|
|
131
239
|
}
|
|
132
240
|
export type AcsCredentialsUnassignParameters = {
|
|
241
|
+
/**
|
|
242
|
+
* ID of the credential that you want to unassign from an access system user.
|
|
243
|
+
*/
|
|
133
244
|
acs_credential_id: string;
|
|
245
|
+
/**
|
|
246
|
+
* ID of the access system user from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id.
|
|
247
|
+
*/
|
|
134
248
|
acs_user_id?: string | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* ID of the user identity from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id.
|
|
251
|
+
*/
|
|
135
252
|
user_identity_id?: string | undefined;
|
|
136
253
|
};
|
|
137
254
|
/**
|
|
@@ -142,8 +259,17 @@ export type AcsCredentialsUnassignRequest = SeamHttpRequest<void, undefined>;
|
|
|
142
259
|
export interface AcsCredentialsUnassignOptions {
|
|
143
260
|
}
|
|
144
261
|
export type AcsCredentialsUpdateParameters = {
|
|
262
|
+
/**
|
|
263
|
+
* ID of the credential that you want to update.
|
|
264
|
+
*/
|
|
145
265
|
acs_credential_id: string;
|
|
266
|
+
/**
|
|
267
|
+
* Replacement access (PIN) code for the credential that you want to update.
|
|
268
|
+
*/
|
|
146
269
|
code?: string | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Replacement date and time at which the validity of the credential 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 the `starts_at` value that you set when creating the credential.
|
|
272
|
+
*/
|
|
147
273
|
ends_at?: string | undefined;
|
|
148
274
|
};
|
|
149
275
|
/**
|
|
@@ -85,6 +85,9 @@ export class SeamHttpAcsCredentials {
|
|
|
85
85
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
86
|
await clientSessions.get();
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Assigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) to a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
90
|
+
*/
|
|
88
91
|
assign(parameters, options = {}) {
|
|
89
92
|
return new SeamHttpRequest(this, {
|
|
90
93
|
pathname: '/acs/credentials/assign',
|
|
@@ -94,6 +97,9 @@ export class SeamHttpAcsCredentials {
|
|
|
94
97
|
options,
|
|
95
98
|
});
|
|
96
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new [credential](https://docs.seam.co/low-level-apis/managing-credentials) for a specified [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management). For granting access, we recommend [Access Grants](https://docs.seam.co/use-cases/granting-access) instead: they create and manage the underlying credentials for you, across access systems and standalone smart locks alike. Use this low-level endpoint only when you need direct control over an individual ACS credential.
|
|
102
|
+
*/
|
|
97
103
|
create(parameters, options = {}) {
|
|
98
104
|
return new SeamHttpRequest(this, {
|
|
99
105
|
pathname: '/acs/credentials/create',
|
|
@@ -103,6 +109,9 @@ export class SeamHttpAcsCredentials {
|
|
|
103
109
|
options,
|
|
104
110
|
});
|
|
105
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Deletes a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
114
|
+
*/
|
|
106
115
|
delete(parameters, options = {}) {
|
|
107
116
|
return new SeamHttpRequest(this, {
|
|
108
117
|
pathname: '/acs/credentials/delete',
|
|
@@ -112,6 +121,9 @@ export class SeamHttpAcsCredentials {
|
|
|
112
121
|
options,
|
|
113
122
|
});
|
|
114
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Returns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
126
|
+
*/
|
|
115
127
|
get(parameters, options = {}) {
|
|
116
128
|
return new SeamHttpRequest(this, {
|
|
117
129
|
pathname: '/acs/credentials/get',
|
|
@@ -121,6 +133,9 @@ export class SeamHttpAcsCredentials {
|
|
|
121
133
|
options,
|
|
122
134
|
});
|
|
123
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
138
|
+
*/
|
|
124
139
|
list(parameters, options = {}) {
|
|
125
140
|
return new SeamHttpRequest(this, {
|
|
126
141
|
pathname: '/acs/credentials/list',
|
|
@@ -130,6 +145,9 @@ export class SeamHttpAcsCredentials {
|
|
|
130
145
|
options,
|
|
131
146
|
});
|
|
132
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Returns a list of all [entrances](https://docs.seam.co/api/acs/entrances) to which a [credential](https://docs.seam.co/api/acs/credentials) grants access.
|
|
150
|
+
*/
|
|
133
151
|
listAccessibleEntrances(parameters, options = {}) {
|
|
134
152
|
return new SeamHttpRequest(this, {
|
|
135
153
|
pathname: '/acs/credentials/list_accessible_entrances',
|
|
@@ -139,6 +157,9 @@ export class SeamHttpAcsCredentials {
|
|
|
139
157
|
options,
|
|
140
158
|
});
|
|
141
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Unassigns a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
162
|
+
*/
|
|
142
163
|
unassign(parameters, options = {}) {
|
|
143
164
|
return new SeamHttpRequest(this, {
|
|
144
165
|
pathname: '/acs/credentials/unassign',
|
|
@@ -148,6 +169,9 @@ export class SeamHttpAcsCredentials {
|
|
|
148
169
|
options,
|
|
149
170
|
});
|
|
150
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Updates the code and ends at date and time for a specified [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
174
|
+
*/
|
|
151
175
|
update(parameters, options = {}) {
|
|
152
176
|
return new SeamHttpRequest(this, {
|
|
153
177
|
pathname: '/acs/credentials/update',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/acs/credentials/credentials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,CACF,UAAyC,EACzC,UAAqC,EAAE;QAEvC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,iBAAiB;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,uBAAuB,CACrB,UAA2D,EAC3D,UAAwD,EAAE;QAE1D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,4CAA4C;YACtD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,QAAQ,CACN,UAA4C,EAC5C,UAAyC,EAAE;QAE3C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CACJ,UAA0C,EAC1C,UAAuC,EAAE;QAEzC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yBAAyB;YACnC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/acs/credentials/credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2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;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,uBAAuB,CACrB,UAA2D,EAC3D,UAAwD,EAAE;QAE1D,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,4CAA4C;YACtD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,UAA4C,EAC5C,UAAyC,EAAE;QAE3C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAA0C,EAC1C,UAAuC,EAAE;QAEzC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yBAAyB;YACnC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -20,15 +20,39 @@ export declare class SeamHttpAcsEncoders {
|
|
|
20
20
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
21
21
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
22
22
|
get simulate(): SeamHttpAcsEncodersSimulate;
|
|
23
|
+
/**
|
|
24
|
+
* Encodes an existing [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners). Either provide an `acs_credential_id` or an `access_method_id`
|
|
25
|
+
*/
|
|
23
26
|
encodeCredential(parameters: AcsEncodersEncodeCredentialParameters, options?: AcsEncodersEncodeCredentialOptions): AcsEncodersEncodeCredentialRequest;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
29
|
+
*/
|
|
24
30
|
get(parameters: AcsEncodersGetParameters, options?: AcsEncodersGetOptions): AcsEncodersGetRequest;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of all [encoders](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
33
|
+
*/
|
|
25
34
|
list(parameters?: AcsEncodersListParameters, options?: AcsEncodersListOptions): AcsEncodersListRequest;
|
|
35
|
+
/**
|
|
36
|
+
* Scans an encoded [acs_credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
37
|
+
*/
|
|
26
38
|
scanCredential(parameters: AcsEncodersScanCredentialParameters, options?: AcsEncodersScanCredentialOptions): AcsEncodersScanCredentialRequest;
|
|
39
|
+
/**
|
|
40
|
+
* Scans a physical card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) and assigns the scanned credential to an ACS user. Provide either an `acs_user_id` or a `user_identity_id`.
|
|
41
|
+
*/
|
|
27
42
|
scanToAssignCredential(parameters: AcsEncodersScanToAssignCredentialParameters, options?: AcsEncodersScanToAssignCredentialOptions): AcsEncodersScanToAssignCredentialRequest;
|
|
28
43
|
}
|
|
29
44
|
export type AcsEncodersEncodeCredentialParameters = {
|
|
45
|
+
/**
|
|
46
|
+
* ID of the `access_method` to encode onto a card.
|
|
47
|
+
*/
|
|
30
48
|
access_method_id?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the `acs_credential` to encode onto a card.
|
|
51
|
+
*/
|
|
31
52
|
acs_credential_id?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* ID of the `acs_encoder` to use to encode the `acs_credential`.
|
|
55
|
+
*/
|
|
32
56
|
acs_encoder_id: string;
|
|
33
57
|
};
|
|
34
58
|
/**
|
|
@@ -40,6 +64,9 @@ export type AcsEncodersEncodeCredentialResponse = {
|
|
|
40
64
|
export type AcsEncodersEncodeCredentialRequest = SeamHttpRequest<AcsEncodersEncodeCredentialResponse, 'action_attempt'>;
|
|
41
65
|
export type AcsEncodersEncodeCredentialOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
42
66
|
export type AcsEncodersGetParameters = {
|
|
67
|
+
/**
|
|
68
|
+
* ID of the encoder that you want to get.
|
|
69
|
+
*/
|
|
43
70
|
acs_encoder_id: string;
|
|
44
71
|
};
|
|
45
72
|
/**
|
|
@@ -52,10 +79,25 @@ export type AcsEncodersGetRequest = SeamHttpRequest<AcsEncodersGetResponse, 'acs
|
|
|
52
79
|
export interface AcsEncodersGetOptions {
|
|
53
80
|
}
|
|
54
81
|
export type AcsEncodersListParameters = {
|
|
82
|
+
/**
|
|
83
|
+
* ID of the access system for which you want to retrieve all encoders.
|
|
84
|
+
*/
|
|
55
85
|
acs_system_id?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* IDs of the access systems for which you want to retrieve all encoders.
|
|
88
|
+
*/
|
|
56
89
|
acs_system_ids?: Array<string> | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* IDs of the encoders that you want to retrieve.
|
|
92
|
+
*/
|
|
57
93
|
acs_encoder_ids?: Array<string> | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Number of encoders to return.
|
|
96
|
+
*/
|
|
58
97
|
limit?: number | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
100
|
+
*/
|
|
59
101
|
page_cursor?: string | undefined;
|
|
60
102
|
};
|
|
61
103
|
/**
|
|
@@ -68,8 +110,17 @@ export type AcsEncodersListRequest = SeamHttpRequest<AcsEncodersListResponse, 'a
|
|
|
68
110
|
export interface AcsEncodersListOptions {
|
|
69
111
|
}
|
|
70
112
|
export type AcsEncodersScanCredentialParameters = {
|
|
113
|
+
/**
|
|
114
|
+
* ID of the encoder to use for the scan.
|
|
115
|
+
*/
|
|
71
116
|
acs_encoder_id: string;
|
|
117
|
+
/**
|
|
118
|
+
* Salto KS-specific metadata for the scan action.
|
|
119
|
+
*/
|
|
72
120
|
salto_ks_metadata?: {
|
|
121
|
+
/**
|
|
122
|
+
* When true, activates tag registration mode on the encoder to detect new, unregistered tags. When false, only detects existing tags already registered in the system. Defaults to false.
|
|
123
|
+
*/
|
|
73
124
|
detect_new_tags?: boolean | undefined;
|
|
74
125
|
} | undefined;
|
|
75
126
|
};
|
|
@@ -82,11 +133,26 @@ export type AcsEncodersScanCredentialResponse = {
|
|
|
82
133
|
export type AcsEncodersScanCredentialRequest = SeamHttpRequest<AcsEncodersScanCredentialResponse, 'action_attempt'>;
|
|
83
134
|
export type AcsEncodersScanCredentialOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
84
135
|
export type AcsEncodersScanToAssignCredentialParameters = {
|
|
136
|
+
/**
|
|
137
|
+
* ID of the `acs_encoder` to use to scan the credential.
|
|
138
|
+
*/
|
|
85
139
|
acs_encoder_id: string;
|
|
140
|
+
/**
|
|
141
|
+
* ID of the `acs_user` to assign the scanned credential to.
|
|
142
|
+
*/
|
|
86
143
|
acs_user_id?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Salto KS-specific metadata for the scan action.
|
|
146
|
+
*/
|
|
87
147
|
salto_ks_metadata?: {
|
|
148
|
+
/**
|
|
149
|
+
* When true, activates tag registration mode on the encoder to detect new, unregistered tags. When false, only detects existing tags already registered in the system. Defaults to false.
|
|
150
|
+
*/
|
|
88
151
|
detect_new_tags?: boolean | undefined;
|
|
89
152
|
} | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* ID of the `user_identity` to assign the scanned credential to. If the ACS system contains an ACS user linked to this user identity, it is used. Otherwise, one is created.
|
|
155
|
+
*/
|
|
90
156
|
user_identity_id?: string | undefined;
|
|
91
157
|
};
|
|
92
158
|
/**
|
|
@@ -89,6 +89,9 @@ export class SeamHttpAcsEncoders {
|
|
|
89
89
|
get simulate() {
|
|
90
90
|
return SeamHttpAcsEncodersSimulate.fromClient(this.client, this.defaults);
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Encodes an existing [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners). Either provide an `acs_credential_id` or an `access_method_id`
|
|
94
|
+
*/
|
|
92
95
|
encodeCredential(parameters, options = {}) {
|
|
93
96
|
return new SeamHttpRequest(this, {
|
|
94
97
|
pathname: '/acs/encoders/encode_credential',
|
|
@@ -98,6 +101,9 @@ export class SeamHttpAcsEncoders {
|
|
|
98
101
|
options,
|
|
99
102
|
});
|
|
100
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Returns a specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
106
|
+
*/
|
|
101
107
|
get(parameters, options = {}) {
|
|
102
108
|
return new SeamHttpRequest(this, {
|
|
103
109
|
pathname: '/acs/encoders/get',
|
|
@@ -107,6 +113,9 @@ export class SeamHttpAcsEncoders {
|
|
|
107
113
|
options,
|
|
108
114
|
});
|
|
109
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns a list of all [encoders](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
118
|
+
*/
|
|
110
119
|
list(parameters, options = {}) {
|
|
111
120
|
return new SeamHttpRequest(this, {
|
|
112
121
|
pathname: '/acs/encoders/list',
|
|
@@ -116,6 +125,9 @@ export class SeamHttpAcsEncoders {
|
|
|
116
125
|
options,
|
|
117
126
|
});
|
|
118
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Scans an encoded [acs_credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
130
|
+
*/
|
|
119
131
|
scanCredential(parameters, options = {}) {
|
|
120
132
|
return new SeamHttpRequest(this, {
|
|
121
133
|
pathname: '/acs/encoders/scan_credential',
|
|
@@ -125,6 +137,9 @@ export class SeamHttpAcsEncoders {
|
|
|
125
137
|
options,
|
|
126
138
|
});
|
|
127
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Scans a physical card placed on the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) and assigns the scanned credential to an ACS user. Provide either an `acs_user_id` or a `user_identity_id`.
|
|
142
|
+
*/
|
|
128
143
|
scanToAssignCredential(parameters, options = {}) {
|
|
129
144
|
return new SeamHttpRequest(this, {
|
|
130
145
|
pathname: '/acs/encoders/scan_to_assign_credential',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/acs/encoders/encoders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAG1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa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AAE;QAEhD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,iCAAiC;YAC3C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CACD,UAAoC,EACpC,UAAiC,EAAE;QAEnC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,mBAAmB;YAC7B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,aAAa;YAC1B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,UAAsC,EACtC,UAAkC,EAAE;QAEpC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oBAAoB;YAC9B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,cAAc;YAC3B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,cAAc,CACZ,UAA+C,EAC/C,UAA4C,EAAE;QAE9C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,sBAAsB,CACpB,UAAuD,EACvD,UAAoD,EAAE;QAEtD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yCAAyC;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/routes/acs/encoders/encoders.ts"],"names":[],"mappings":"AAAA;;;GA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AAE;QAE9C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,sBAAsB,CACpB,UAAuD,EACvD,UAAoD,EAAE;QAEtD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yCAAyC;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -16,14 +16,35 @@ export declare class SeamHttpAcsEncodersSimulate {
|
|
|
16
16
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEncodersSimulate;
|
|
17
17
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
18
18
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
21
|
+
*/
|
|
19
22
|
nextCredentialEncodeWillFail(parameters: AcsEncodersSimulateNextCredentialEncodeWillFailParameters, options?: AcsEncodersSimulateNextCredentialEncodeWillFailOptions): AcsEncodersSimulateNextCredentialEncodeWillFailRequest;
|
|
23
|
+
/**
|
|
24
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
25
|
+
*/
|
|
20
26
|
nextCredentialEncodeWillSucceed(parameters: AcsEncodersSimulateNextCredentialEncodeWillSucceedParameters, options?: AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions): AcsEncodersSimulateNextCredentialEncodeWillSucceedRequest;
|
|
27
|
+
/**
|
|
28
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
29
|
+
*/
|
|
21
30
|
nextCredentialScanWillFail(parameters: AcsEncodersSimulateNextCredentialScanWillFailParameters, options?: AcsEncodersSimulateNextCredentialScanWillFailOptions): AcsEncodersSimulateNextCredentialScanWillFailRequest;
|
|
31
|
+
/**
|
|
32
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
33
|
+
*/
|
|
22
34
|
nextCredentialScanWillSucceed(parameters: AcsEncodersSimulateNextCredentialScanWillSucceedParameters, options?: AcsEncodersSimulateNextCredentialScanWillSucceedOptions): AcsEncodersSimulateNextCredentialScanWillSucceedRequest;
|
|
23
35
|
}
|
|
24
36
|
export type AcsEncodersSimulateNextCredentialEncodeWillFailParameters = {
|
|
37
|
+
/**
|
|
38
|
+
* ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.
|
|
39
|
+
*/
|
|
25
40
|
acs_encoder_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Code of the error to simulate.
|
|
43
|
+
*/
|
|
26
44
|
error_code?: 'no_credential_on_encoder' | 'encoding_interrupted' | 'uncategorized_error' | 'action_attempt_expired' | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* ID of the `acs_credential` that will fail to be encoded onto a card in the next request.
|
|
47
|
+
*/
|
|
27
48
|
acs_credential_id?: string | undefined;
|
|
28
49
|
};
|
|
29
50
|
/**
|
|
@@ -34,7 +55,13 @@ export type AcsEncodersSimulateNextCredentialEncodeWillFailRequest = SeamHttpReq
|
|
|
34
55
|
export interface AcsEncodersSimulateNextCredentialEncodeWillFailOptions {
|
|
35
56
|
}
|
|
36
57
|
export type AcsEncodersSimulateNextCredentialEncodeWillSucceedParameters = {
|
|
58
|
+
/**
|
|
59
|
+
* ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.
|
|
60
|
+
*/
|
|
37
61
|
acs_encoder_id: string;
|
|
62
|
+
/**
|
|
63
|
+
* Scenario to simulate.
|
|
64
|
+
*/
|
|
38
65
|
scenario?: 'credential_is_issued' | undefined;
|
|
39
66
|
};
|
|
40
67
|
/**
|
|
@@ -45,6 +72,9 @@ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedRequest = SeamHttp
|
|
|
45
72
|
export interface AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions {
|
|
46
73
|
}
|
|
47
74
|
export type AcsEncodersSimulateNextCredentialScanWillFailParameters = {
|
|
75
|
+
/**
|
|
76
|
+
* ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.
|
|
77
|
+
*/
|
|
48
78
|
acs_encoder_id: string;
|
|
49
79
|
error_code?: 'no_credential_on_encoder' | 'uncategorized_error' | 'action_attempt_expired' | undefined;
|
|
50
80
|
acs_credential_id_on_seam?: string | undefined;
|
|
@@ -57,8 +87,17 @@ export type AcsEncodersSimulateNextCredentialScanWillFailRequest = SeamHttpReque
|
|
|
57
87
|
export interface AcsEncodersSimulateNextCredentialScanWillFailOptions {
|
|
58
88
|
}
|
|
59
89
|
export type AcsEncodersSimulateNextCredentialScanWillSucceedParameters = {
|
|
90
|
+
/**
|
|
91
|
+
* ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.
|
|
92
|
+
*/
|
|
60
93
|
acs_credential_id_on_seam?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.
|
|
96
|
+
*/
|
|
61
97
|
acs_encoder_id: string;
|
|
98
|
+
/**
|
|
99
|
+
* Scenario to simulate.
|
|
100
|
+
*/
|
|
62
101
|
scenario?: 'credential_exists_on_seam' | 'credential_on_encoder_needs_update' | 'credential_does_not_exist_on_seam' | 'credential_on_encoder_is_empty' | undefined;
|
|
63
102
|
};
|
|
64
103
|
/**
|
|
@@ -85,6 +85,9 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
85
85
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
86
|
await clientSessions.get();
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
90
|
+
*/
|
|
88
91
|
nextCredentialEncodeWillFail(parameters, options = {}) {
|
|
89
92
|
return new SeamHttpRequest(this, {
|
|
90
93
|
pathname: '/acs/encoders/simulate/next_credential_encode_will_fail',
|
|
@@ -94,6 +97,9 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
94
97
|
options,
|
|
95
98
|
});
|
|
96
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Simulates that the next attempt to encode a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
102
|
+
*/
|
|
97
103
|
nextCredentialEncodeWillSucceed(parameters, options = {}) {
|
|
98
104
|
return new SeamHttpRequest(this, {
|
|
99
105
|
pathname: '/acs/encoders/simulate/next_credential_encode_will_succeed',
|
|
@@ -103,6 +109,9 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
103
109
|
options,
|
|
104
110
|
});
|
|
105
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
114
|
+
*/
|
|
106
115
|
nextCredentialScanWillFail(parameters, options = {}) {
|
|
107
116
|
return new SeamHttpRequest(this, {
|
|
108
117
|
pathname: '/acs/encoders/simulate/next_credential_scan_will_fail',
|
|
@@ -112,6 +121,9 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
112
121
|
options,
|
|
113
122
|
});
|
|
114
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Simulates that the next attempt to scan a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
126
|
+
*/
|
|
115
127
|
nextCredentialScanWillSucceed(parameters, options = {}) {
|
|
116
128
|
return new SeamHttpRequest(this, {
|
|
117
129
|
pathname: '/acs/encoders/simulate/next_credential_scan_will_succeed',
|