diff --git a/src/lib/seam/connect/models/action-attempts/action-attempt.ts b/src/lib/seam/connect/models/action-attempts/action-attempt.ts index c9c13318..bbc39556 100644 --- a/src/lib/seam/connect/models/action-attempts/action-attempt.ts +++ b/src/lib/seam/connect/models/action-attempts/action-attempt.ts @@ -2,10 +2,10 @@ import { z } from 'zod' import { activate_climate_preset_action_attempt } from './activate-climate-preset.js' import { deprecated_action_attempts } from './deprecated.js' -import { encode_card_action_attempt } from './encode-card.js' +import { encode_credential_action_attempt } from './encode-credential.js' import { lock_door_action_attempt } from './lock-door.js' import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js' -import { scan_card_action_attempt } from './scan-card.js' +import { scan_credential_action_attempt } from './scan-credential.js' import { set_cool_action_attempt } from './set-cool.js' import { set_fan_mode_action_attempt } from './set-fan-mode.js' import { set_heat_action_attempt } from './set-heat.js' @@ -16,8 +16,8 @@ import { unlock_door_action_attempt } from './unlock-door.js' export const action_attempt = z.union([ ...lock_door_action_attempt.options, ...unlock_door_action_attempt.options, - ...scan_card_action_attempt.options, - ...encode_card_action_attempt.options, + ...scan_credential_action_attempt.options, + ...encode_credential_action_attempt.options, ...reset_sandbox_workspace_action_attempt.options, ...set_cool_action_attempt.options, ...set_heat_action_attempt.options, diff --git a/src/lib/seam/connect/models/action-attempts/encode-card.ts b/src/lib/seam/connect/models/action-attempts/encode-credential.ts similarity index 67% rename from src/lib/seam/connect/models/action-attempts/encode-card.ts rename to src/lib/seam/connect/models/action-attempts/encode-credential.ts index 6977c339..29866345 100644 --- a/src/lib/seam/connect/models/action-attempts/encode-card.ts +++ b/src/lib/seam/connect/models/action-attempts/encode-credential.ts @@ -11,7 +11,7 @@ import { common_succeeded_action_attempt, } from './common.js' -const action_type = z.literal('ENCODE_CARD') +const action_type = z.literal('ENCODE_CREDENTIAL') const no_card_on_encoder_error = z.object({ type: z.literal('no_card_on_encoder'), @@ -31,21 +31,23 @@ const error = z.union([ const result = acs_credential.or(unmanaged_acs_credential) -export const encode_card_action_attempt = z.discriminatedUnion('status', [ +export const encode_credential_action_attempt = z.discriminatedUnion('status', [ common_pending_action_attempt .extend({ action_type, }) - .describe('Encoding card data from physical encoder.'), + .describe('Encoding credential data from physical encoder.'), common_succeeded_action_attempt .extend({ action_type, result, }) - .describe('Encoding card data from physical encoder succeeded.'), + .describe('Encoding credential data from physical encoder succeeded.'), common_failed_action_attempt .extend({ action_type, error }) - .describe('Encoding card data from physical encoder failed.'), + .describe('Encoding credential data from physical encoder failed.'), ]) -export type EncodeCardActionAttempt = z.infer +export type EncodeCredentialActionAttempt = z.infer< + typeof encode_credential_action_attempt +> diff --git a/src/lib/seam/connect/models/action-attempts/scan-card.ts b/src/lib/seam/connect/models/action-attempts/scan-credential.ts similarity index 71% rename from src/lib/seam/connect/models/action-attempts/scan-card.ts rename to src/lib/seam/connect/models/action-attempts/scan-credential.ts index 43548c84..93cda670 100644 --- a/src/lib/seam/connect/models/action-attempts/scan-card.ts +++ b/src/lib/seam/connect/models/action-attempts/scan-credential.ts @@ -12,7 +12,7 @@ import { common_succeeded_action_attempt, } from './common.js' -const action_type = z.literal('SCAN_CARD') +const action_type = z.literal('SCAN_CREDENTIAL') const no_card_on_encoder_error = z.object({ type: z.literal('no_card_on_encoder'), @@ -33,7 +33,7 @@ const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential) const result = z.object({ acs_credential_on_encoder: acs_credential_on_encoder.describe( - 'Snapshot of the card data read from the physical encoder.', + 'Snapshot of credential data read from physical encoder.', ), acs_credential_on_seam: acs_credential_on_seam .nullable() @@ -41,21 +41,23 @@ const result = z.object({ warnings: z.array(warning), }) -export const scan_card_action_attempt = z.discriminatedUnion('status', [ +export const scan_credential_action_attempt = z.discriminatedUnion('status', [ common_pending_action_attempt .extend({ action_type, }) - .describe('Reading card data from physical encoder.'), + .describe('Reading credential data from physical encoder.'), common_succeeded_action_attempt .extend({ action_type, result, }) - .describe('Reading card data from physical encoder succeeded.'), + .describe('Reading credential data from physical encoder succeeded.'), common_failed_action_attempt .extend({ action_type, error }) - .describe('Reading card data from physical encoder failed.'), + .describe('Reading credential data from physical encoder failed.'), ]) -export type ScanCardActionAttempt = z.infer +export type ScanCredentialActionAttempt = z.infer< + typeof scan_credential_action_attempt +> diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index ae42eca4..59d7a307 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -1355,7 +1355,7 @@ export default { type: 'object', }, { - description: 'Reading card data from physical encoder.', + description: 'Reading credential data from physical encoder.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -1363,7 +1363,7 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['SCAN_CARD'], type: 'string' }, + action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' }, error: { nullable: true }, result: { nullable: true }, status: { enum: ['pending'], type: 'string' }, @@ -1378,7 +1378,8 @@ export default { type: 'object', }, { - description: 'Reading card data from physical encoder succeeded.', + description: + 'Reading credential data from physical encoder succeeded.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -1386,13 +1387,13 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['SCAN_CARD'], type: 'string' }, + action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' }, error: { nullable: true }, result: { properties: { acs_credential_on_encoder: { description: - 'Snapshot of the card data read from the physical encoder.', + 'Snapshot of credential data read from physical encoder.', properties: { card_number: { description: @@ -1864,7 +1865,8 @@ export default { type: 'object', }, { - description: 'Reading card data from physical encoder failed.', + description: + 'Reading credential data from physical encoder failed.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -1872,7 +1874,7 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['SCAN_CARD'], type: 'string' }, + action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' }, error: { oneOf: [ { @@ -1917,7 +1919,7 @@ export default { type: 'object', }, { - description: 'Encoding card data from physical encoder.', + description: 'Encoding credential data from physical encoder.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -1925,7 +1927,7 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['ENCODE_CARD'], type: 'string' }, + action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' }, error: { nullable: true }, result: { nullable: true }, status: { enum: ['pending'], type: 'string' }, @@ -1940,7 +1942,8 @@ export default { type: 'object', }, { - description: 'Encoding card data from physical encoder succeeded.', + description: + 'Encoding credential data from physical encoder succeeded.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -1948,7 +1951,7 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['ENCODE_CARD'], type: 'string' }, + action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' }, error: { nullable: true }, result: { description: @@ -2316,7 +2319,8 @@ export default { type: 'object', }, { - description: 'Encoding card data from physical encoder failed.', + description: + 'Encoding credential data from physical encoder failed.', properties: { action_attempt_id: { description: 'The ID of the action attempt.', @@ -2324,7 +2328,7 @@ export default { type: 'string', 'x-title': 'Action Attempt ID', }, - action_type: { enum: ['ENCODE_CARD'], type: 'string' }, + action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' }, error: { oneOf: [ { @@ -9201,16 +9205,25 @@ export default { 'x-title': 'Update a Credential', }, }, - '/acs/encoders/encode_card': { + '/acs/encoders/encode_credential': { post: { - operationId: 'acsEncodersEncodeCardPost', + operationId: 'acsEncodersEncodeCredentialPost', requestBody: { content: { 'application/json': { schema: { properties: { - acs_credential_id: { format: 'uuid', type: 'string' }, - device_id: { format: 'uuid', type: 'string' }, + acs_credential_id: { + description: + 'ID of the acs_credential to encode on a physical card.', + format: 'uuid', + type: 'string', + }, + device_id: { + description: 'ID of the encoder to use for the encoding.', + format: 'uuid', + type: 'string', + }, }, required: ['device_id', 'acs_credential_id'], type: 'object', @@ -9244,10 +9257,10 @@ export default { { console_session: [] }, { api_key: [] }, ], - summary: '/acs/encoders/encode_card', + summary: '/acs/encoders/encode_credential', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders'], - 'x-fern-sdk-method-name': 'encode_card', + 'x-fern-sdk-method-name': 'encode_credential', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-undocumented': 'Encoding a card is currently unimplemented.', @@ -9339,16 +9352,24 @@ export default { 'x-undocumented': 'Encoders are in alpha.', }, }, - '/acs/encoders/scan_card': { + '/acs/encoders/scan_credential': { post: { - operationId: 'acsEncodersScanCardPost', + operationId: 'acsEncodersScanCredentialPost', requestBody: { content: { 'application/json': { schema: { properties: { - acs_system_id: { format: 'uuid', type: 'string' }, - device_id: { format: 'uuid', type: 'string' }, + acs_system_id: { + description: 'ID of the acs_system the encoder belongs to.', + format: 'uuid', + type: 'string', + }, + device_id: { + description: 'ID of the encoder to use for the scan.', + format: 'uuid', + type: 'string', + }, }, required: ['acs_system_id', 'device_id'], type: 'object', @@ -9382,10 +9403,10 @@ export default { { console_session: [] }, { api_key: [] }, ], - summary: '/acs/encoders/scan_card', + summary: '/acs/encoders/scan_credential', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders'], - 'x-fern-sdk-method-name': 'scan_card', + 'x-fern-sdk-method-name': 'scan_credential', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-undocumented': 'Reading a card is currently unimplemented.', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 4fd9b3d8..d1486c73 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -86,16 +86,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -284,7 +284,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -305,14 +305,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -466,7 +466,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -1103,16 +1103,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -1301,7 +1301,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -1322,14 +1322,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -1483,7 +1483,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -2285,16 +2285,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -2483,7 +2483,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -2504,14 +2504,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -2665,7 +2665,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -3289,16 +3289,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -3487,7 +3487,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -3508,14 +3508,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -3669,7 +3669,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -5392,13 +5392,15 @@ export interface Routes { } } } - '/acs/encoders/encode_card': { - route: '/acs/encoders/encode_card' + '/acs/encoders/encode_credential': { + route: '/acs/encoders/encode_credential' method: 'POST' queryParams: {} jsonBody: {} commonParams: { + /** ID of the encoder to use for the encoding. */ device_id: string + /** ID of the acs_credential to encode on a physical card. */ acs_credential_id: string } formData: {} @@ -5464,16 +5466,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -5662,7 +5664,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -5683,14 +5685,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -5844,7 +5846,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -6920,13 +6922,15 @@ export interface Routes { }> } } - '/acs/encoders/scan_card': { - route: '/acs/encoders/scan_card' + '/acs/encoders/scan_credential': { + route: '/acs/encoders/scan_credential' method: 'POST' queryParams: {} jsonBody: {} commonParams: { + /** ID of the acs_system the encoder belongs to. */ acs_system_id: string + /** ID of the encoder to use for the scan. */ device_id: string } formData: {} @@ -6992,16 +6996,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -7190,7 +7194,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -7211,14 +7215,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -7372,7 +7376,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -9369,16 +9373,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -9567,7 +9571,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -9588,14 +9592,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -9749,7 +9753,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -10227,16 +10231,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -10425,7 +10429,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -10446,14 +10450,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -10607,7 +10611,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -16690,16 +16694,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -16888,7 +16892,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -16909,14 +16913,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -17070,7 +17074,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -17549,16 +17553,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -17747,7 +17751,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -17768,14 +17772,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -17929,7 +17933,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -19910,16 +19914,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -20108,7 +20112,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -20129,14 +20133,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -20290,7 +20294,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -20779,16 +20783,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -20977,7 +20981,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -20998,14 +21002,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -21159,7 +21163,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -21687,16 +21691,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -21885,7 +21889,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -21906,14 +21910,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -22067,7 +22071,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -22752,16 +22756,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -22950,7 +22954,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -22971,14 +22975,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -23132,7 +23136,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -23616,16 +23620,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -23814,7 +23818,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -23835,14 +23839,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -23996,7 +24000,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -25173,16 +25177,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -25371,7 +25375,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -25392,14 +25396,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -25553,7 +25557,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -26041,16 +26045,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -26239,7 +26243,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -26260,14 +26264,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -26421,7 +26425,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -28364,16 +28368,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -28562,7 +28566,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -28583,14 +28587,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -28744,7 +28748,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -29346,16 +29350,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -29544,7 +29548,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -29565,14 +29569,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -29726,7 +29730,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -32170,16 +32174,16 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' result: { - /** Snapshot of the card data read from the physical encoder. */ + /** Snapshot of credential data read from physical encoder. */ acs_credential_on_encoder: { /** Date and time the credential was created. */ created_at: string | null @@ -32368,7 +32372,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'SCAN_CARD' + action_type: 'SCAN_CREDENTIAL' error: | { type: 'uncategorized_error' @@ -32389,14 +32393,14 @@ export interface Routes { status: 'pending' result: null error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' } | { /** The ID of the action attempt. */ action_attempt_id: string status: 'success' error: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' /** Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */ result: @@ -32550,7 +32554,7 @@ export interface Routes { action_attempt_id: string status: 'error' result: null - action_type: 'ENCODE_CARD' + action_type: 'ENCODE_CREDENTIAL' error: | { type: 'uncategorized_error'