@seamapi/types 1.487.0 → 1.488.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.
@@ -14940,6 +14940,268 @@ export type Routes = {
14940
14940
  /** Display name for the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
14941
14941
  display_name: string;
14942
14942
  }[] | undefined;
14943
+ acs_credentials?: {
14944
+ /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14945
+ acs_credential_id: string;
14946
+ /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
14947
+ acs_user_id?: string | undefined;
14948
+ /** ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
14949
+ user_identity_id?: string | undefined;
14950
+ /** ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials#connected-accounts) to which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
14951
+ connected_account_id: string;
14952
+ acs_credential_pool_id?: string | undefined;
14953
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14954
+ acs_system_id: string;
14955
+ /** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14956
+ parent_acs_credential_id?: string | undefined;
14957
+ /** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
14958
+ display_name: string;
14959
+ /** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14960
+ code?: (string | undefined) | null;
14961
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
14962
+ is_one_time_use?: boolean | undefined;
14963
+ /** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14964
+ card_number?: (string | undefined) | null;
14965
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
14966
+ is_issued?: boolean | undefined;
14967
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
14968
+ issued_at?: (string | undefined) | null;
14969
+ /** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
14970
+ access_method: 'code' | 'card' | 'mobile_key';
14971
+ /** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
14972
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access') | undefined;
14973
+ /** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
14974
+ external_type_display_name?: string | undefined;
14975
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
14976
+ created_at: string;
14977
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14978
+ workspace_id: string;
14979
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14980
+ starts_at?: string | undefined;
14981
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity 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`. */
14982
+ ends_at?: string | undefined;
14983
+ /** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14984
+ errors: {
14985
+ error_code: string;
14986
+ message: string;
14987
+ }[];
14988
+ /** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
14989
+ warnings: ({
14990
+ /** Date and time at which Seam created the warning. */
14991
+ created_at: string;
14992
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
14993
+ message: string;
14994
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14995
+ warning_code: 'waiting_to_be_issued';
14996
+ } | {
14997
+ /** Date and time at which Seam created the warning. */
14998
+ created_at: string;
14999
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15000
+ message: string;
15001
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15002
+ warning_code: 'schedule_externally_modified';
15003
+ } | {
15004
+ /** Date and time at which Seam created the warning. */
15005
+ created_at: string;
15006
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15007
+ message: string;
15008
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15009
+ warning_code: 'schedule_modified';
15010
+ } | {
15011
+ /** Date and time at which Seam created the warning. */
15012
+ created_at: string;
15013
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15014
+ message: string;
15015
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15016
+ warning_code: 'being_deleted';
15017
+ } | {
15018
+ /** Date and time at which Seam created the warning. */
15019
+ created_at: string;
15020
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15021
+ message: string;
15022
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15023
+ warning_code: 'unknown_issue_with_acs_credential';
15024
+ } | {
15025
+ /** Date and time at which Seam created the warning. */
15026
+ created_at: string;
15027
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15028
+ message: string;
15029
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15030
+ warning_code: 'needs_to_be_reissued';
15031
+ })[];
15032
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
15033
+ is_multi_phone_sync_credential?: boolean | undefined;
15034
+ /** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
15035
+ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined;
15036
+ /** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
15037
+ latest_desired_state_synced_with_provider_at?: (string | null) | undefined;
15038
+ /** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15039
+ visionline_metadata?: {
15040
+ /** Card function type in the Visionline access system. */
15041
+ card_function_type: 'guest' | 'staff';
15042
+ /** IDs of the credentials to which you want to join. */
15043
+ joiner_acs_credential_ids?: string[] | undefined;
15044
+ /** Guest entrance IDs in the Visionline access system. */
15045
+ guest_acs_entrance_ids?: string[] | undefined;
15046
+ /** Common entrance IDs in the Visionline access system. */
15047
+ common_acs_entrance_ids?: string[] | undefined;
15048
+ /** Indicates whether the credential is valid. */
15049
+ is_valid?: boolean | undefined;
15050
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
15051
+ auto_join?: boolean | undefined;
15052
+ /** ID of the card in the Visionline access system. */
15053
+ card_id?: string | undefined;
15054
+ /** ID of the credential in the Visionline access system. */
15055
+ credential_id?: string | undefined;
15056
+ } | undefined;
15057
+ /** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15058
+ assa_abloy_vostio_metadata?: {
15059
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
15060
+ auto_join?: boolean | undefined;
15061
+ /** IDs of the guest entrances to override in the Vostio access system. */
15062
+ override_guest_acs_entrance_ids?: string[] | undefined;
15063
+ /** Key ID in the Vostio access system. */
15064
+ key_id?: string | undefined;
15065
+ /** Key issuing request ID in the Vostio access system. */
15066
+ key_issuing_request_id?: string | undefined;
15067
+ /** Names of the doors to which to grant access in the Vostio access system. */
15068
+ door_names?: string[] | undefined;
15069
+ /** Endpoint ID in the Vostio access system. */
15070
+ endpoint_id?: string | undefined;
15071
+ } | undefined;
15072
+ is_managed: true;
15073
+ }[] | undefined;
15074
+ unmanaged_acs_credentials?: {
15075
+ /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15076
+ acs_credential_id: string;
15077
+ /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
15078
+ acs_user_id?: string | undefined;
15079
+ /** ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
15080
+ user_identity_id?: string | undefined;
15081
+ /** ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials#connected-accounts) to which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
15082
+ connected_account_id: string;
15083
+ acs_credential_pool_id?: string | undefined;
15084
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15085
+ acs_system_id: string;
15086
+ /** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15087
+ parent_acs_credential_id?: string | undefined;
15088
+ /** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
15089
+ display_name: string;
15090
+ /** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15091
+ code?: (string | undefined) | null;
15092
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
15093
+ is_one_time_use?: boolean | undefined;
15094
+ /** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15095
+ card_number?: (string | undefined) | null;
15096
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
15097
+ is_issued?: boolean | undefined;
15098
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
15099
+ issued_at?: (string | undefined) | null;
15100
+ /** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
15101
+ access_method: 'code' | 'card' | 'mobile_key';
15102
+ /** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
15103
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access') | undefined;
15104
+ /** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
15105
+ external_type_display_name?: string | undefined;
15106
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
15107
+ created_at: string;
15108
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15109
+ workspace_id: string;
15110
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15111
+ starts_at?: string | undefined;
15112
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity 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`. */
15113
+ ends_at?: string | undefined;
15114
+ /** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15115
+ errors: {
15116
+ error_code: string;
15117
+ message: string;
15118
+ }[];
15119
+ /** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15120
+ warnings: ({
15121
+ /** Date and time at which Seam created the warning. */
15122
+ created_at: string;
15123
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15124
+ message: string;
15125
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15126
+ warning_code: 'waiting_to_be_issued';
15127
+ } | {
15128
+ /** Date and time at which Seam created the warning. */
15129
+ created_at: string;
15130
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15131
+ message: string;
15132
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15133
+ warning_code: 'schedule_externally_modified';
15134
+ } | {
15135
+ /** Date and time at which Seam created the warning. */
15136
+ created_at: string;
15137
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15138
+ message: string;
15139
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15140
+ warning_code: 'schedule_modified';
15141
+ } | {
15142
+ /** Date and time at which Seam created the warning. */
15143
+ created_at: string;
15144
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15145
+ message: string;
15146
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15147
+ warning_code: 'being_deleted';
15148
+ } | {
15149
+ /** Date and time at which Seam created the warning. */
15150
+ created_at: string;
15151
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15152
+ message: string;
15153
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15154
+ warning_code: 'unknown_issue_with_acs_credential';
15155
+ } | {
15156
+ /** Date and time at which Seam created the warning. */
15157
+ created_at: string;
15158
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15159
+ message: string;
15160
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
15161
+ warning_code: 'needs_to_be_reissued';
15162
+ })[];
15163
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
15164
+ is_multi_phone_sync_credential?: boolean | undefined;
15165
+ /** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
15166
+ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined;
15167
+ /** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
15168
+ latest_desired_state_synced_with_provider_at?: (string | null) | undefined;
15169
+ /** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15170
+ visionline_metadata?: {
15171
+ /** Card function type in the Visionline access system. */
15172
+ card_function_type: 'guest' | 'staff';
15173
+ /** IDs of the credentials to which you want to join. */
15174
+ joiner_acs_credential_ids?: string[] | undefined;
15175
+ /** Guest entrance IDs in the Visionline access system. */
15176
+ guest_acs_entrance_ids?: string[] | undefined;
15177
+ /** Common entrance IDs in the Visionline access system. */
15178
+ common_acs_entrance_ids?: string[] | undefined;
15179
+ /** Indicates whether the credential is valid. */
15180
+ is_valid?: boolean | undefined;
15181
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
15182
+ auto_join?: boolean | undefined;
15183
+ /** ID of the card in the Visionline access system. */
15184
+ card_id?: string | undefined;
15185
+ /** ID of the credential in the Visionline access system. */
15186
+ credential_id?: string | undefined;
15187
+ } | undefined;
15188
+ /** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
15189
+ assa_abloy_vostio_metadata?: {
15190
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
15191
+ auto_join?: boolean | undefined;
15192
+ /** IDs of the guest entrances to override in the Vostio access system. */
15193
+ override_guest_acs_entrance_ids?: string[] | undefined;
15194
+ /** Key ID in the Vostio access system. */
15195
+ key_id?: string | undefined;
15196
+ /** Key issuing request ID in the Vostio access system. */
15197
+ key_issuing_request_id?: string | undefined;
15198
+ /** Names of the doors to which to grant access in the Vostio access system. */
15199
+ door_names?: string[] | undefined;
15200
+ /** Endpoint ID in the Vostio access system. */
15201
+ endpoint_id?: string | undefined;
15202
+ } | undefined;
15203
+ is_managed: false;
15204
+ }[] | undefined;
14943
15205
  action_attempts?: ({
14944
15206
  /** ID of the action attempt. */
14945
15207
  action_attempt_id: string;
@@ -79492,6 +79754,268 @@ export type Routes = {
79492
79754
  /** Display name for the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
79493
79755
  display_name: string;
79494
79756
  }[] | undefined;
79757
+ acs_credentials?: {
79758
+ /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79759
+ acs_credential_id: string;
79760
+ /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79761
+ acs_user_id?: string | undefined;
79762
+ /** ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79763
+ user_identity_id?: string | undefined;
79764
+ /** ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials#connected-accounts) to which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79765
+ connected_account_id: string;
79766
+ acs_credential_pool_id?: string | undefined;
79767
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79768
+ acs_system_id: string;
79769
+ /** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79770
+ parent_acs_credential_id?: string | undefined;
79771
+ /** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
79772
+ display_name: string;
79773
+ /** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79774
+ code?: (string | undefined) | null;
79775
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
79776
+ is_one_time_use?: boolean | undefined;
79777
+ /** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79778
+ card_number?: (string | undefined) | null;
79779
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
79780
+ is_issued?: boolean | undefined;
79781
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
79782
+ issued_at?: (string | undefined) | null;
79783
+ /** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
79784
+ access_method: 'code' | 'card' | 'mobile_key';
79785
+ /** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
79786
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access') | undefined;
79787
+ /** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
79788
+ external_type_display_name?: string | undefined;
79789
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
79790
+ created_at: string;
79791
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79792
+ workspace_id: string;
79793
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
79794
+ starts_at?: string | undefined;
79795
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity 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`. */
79796
+ ends_at?: string | undefined;
79797
+ /** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79798
+ errors: {
79799
+ error_code: string;
79800
+ message: string;
79801
+ }[];
79802
+ /** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79803
+ warnings: ({
79804
+ /** Date and time at which Seam created the warning. */
79805
+ created_at: string;
79806
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79807
+ message: string;
79808
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79809
+ warning_code: 'waiting_to_be_issued';
79810
+ } | {
79811
+ /** Date and time at which Seam created the warning. */
79812
+ created_at: string;
79813
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79814
+ message: string;
79815
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79816
+ warning_code: 'schedule_externally_modified';
79817
+ } | {
79818
+ /** Date and time at which Seam created the warning. */
79819
+ created_at: string;
79820
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79821
+ message: string;
79822
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79823
+ warning_code: 'schedule_modified';
79824
+ } | {
79825
+ /** Date and time at which Seam created the warning. */
79826
+ created_at: string;
79827
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79828
+ message: string;
79829
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79830
+ warning_code: 'being_deleted';
79831
+ } | {
79832
+ /** Date and time at which Seam created the warning. */
79833
+ created_at: string;
79834
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79835
+ message: string;
79836
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79837
+ warning_code: 'unknown_issue_with_acs_credential';
79838
+ } | {
79839
+ /** Date and time at which Seam created the warning. */
79840
+ created_at: string;
79841
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79842
+ message: string;
79843
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79844
+ warning_code: 'needs_to_be_reissued';
79845
+ })[];
79846
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
79847
+ is_multi_phone_sync_credential?: boolean | undefined;
79848
+ /** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
79849
+ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined;
79850
+ /** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
79851
+ latest_desired_state_synced_with_provider_at?: (string | null) | undefined;
79852
+ /** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79853
+ visionline_metadata?: {
79854
+ /** Card function type in the Visionline access system. */
79855
+ card_function_type: 'guest' | 'staff';
79856
+ /** IDs of the credentials to which you want to join. */
79857
+ joiner_acs_credential_ids?: string[] | undefined;
79858
+ /** Guest entrance IDs in the Visionline access system. */
79859
+ guest_acs_entrance_ids?: string[] | undefined;
79860
+ /** Common entrance IDs in the Visionline access system. */
79861
+ common_acs_entrance_ids?: string[] | undefined;
79862
+ /** Indicates whether the credential is valid. */
79863
+ is_valid?: boolean | undefined;
79864
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
79865
+ auto_join?: boolean | undefined;
79866
+ /** ID of the card in the Visionline access system. */
79867
+ card_id?: string | undefined;
79868
+ /** ID of the credential in the Visionline access system. */
79869
+ credential_id?: string | undefined;
79870
+ } | undefined;
79871
+ /** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79872
+ assa_abloy_vostio_metadata?: {
79873
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
79874
+ auto_join?: boolean | undefined;
79875
+ /** IDs of the guest entrances to override in the Vostio access system. */
79876
+ override_guest_acs_entrance_ids?: string[] | undefined;
79877
+ /** Key ID in the Vostio access system. */
79878
+ key_id?: string | undefined;
79879
+ /** Key issuing request ID in the Vostio access system. */
79880
+ key_issuing_request_id?: string | undefined;
79881
+ /** Names of the doors to which to grant access in the Vostio access system. */
79882
+ door_names?: string[] | undefined;
79883
+ /** Endpoint ID in the Vostio access system. */
79884
+ endpoint_id?: string | undefined;
79885
+ } | undefined;
79886
+ is_managed: true;
79887
+ }[] | undefined;
79888
+ unmanaged_acs_credentials?: {
79889
+ /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79890
+ acs_credential_id: string;
79891
+ /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79892
+ acs_user_id?: string | undefined;
79893
+ /** ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79894
+ user_identity_id?: string | undefined;
79895
+ /** ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials#connected-accounts) to which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
79896
+ connected_account_id: string;
79897
+ acs_credential_pool_id?: string | undefined;
79898
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79899
+ acs_system_id: string;
79900
+ /** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79901
+ parent_acs_credential_id?: string | undefined;
79902
+ /** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
79903
+ display_name: string;
79904
+ /** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79905
+ code?: (string | undefined) | null;
79906
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
79907
+ is_one_time_use?: boolean | undefined;
79908
+ /** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79909
+ card_number?: (string | undefined) | null;
79910
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
79911
+ is_issued?: boolean | undefined;
79912
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
79913
+ issued_at?: (string | undefined) | null;
79914
+ /** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
79915
+ access_method: 'code' | 'card' | 'mobile_key';
79916
+ /** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
79917
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access') | undefined;
79918
+ /** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
79919
+ external_type_display_name?: string | undefined;
79920
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
79921
+ created_at: string;
79922
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79923
+ workspace_id: string;
79924
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
79925
+ starts_at?: string | undefined;
79926
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity 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`. */
79927
+ ends_at?: string | undefined;
79928
+ /** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79929
+ errors: {
79930
+ error_code: string;
79931
+ message: string;
79932
+ }[];
79933
+ /** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79934
+ warnings: ({
79935
+ /** Date and time at which Seam created the warning. */
79936
+ created_at: string;
79937
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79938
+ message: string;
79939
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79940
+ warning_code: 'waiting_to_be_issued';
79941
+ } | {
79942
+ /** Date and time at which Seam created the warning. */
79943
+ created_at: string;
79944
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79945
+ message: string;
79946
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79947
+ warning_code: 'schedule_externally_modified';
79948
+ } | {
79949
+ /** Date and time at which Seam created the warning. */
79950
+ created_at: string;
79951
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79952
+ message: string;
79953
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79954
+ warning_code: 'schedule_modified';
79955
+ } | {
79956
+ /** Date and time at which Seam created the warning. */
79957
+ created_at: string;
79958
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79959
+ message: string;
79960
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79961
+ warning_code: 'being_deleted';
79962
+ } | {
79963
+ /** Date and time at which Seam created the warning. */
79964
+ created_at: string;
79965
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79966
+ message: string;
79967
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79968
+ warning_code: 'unknown_issue_with_acs_credential';
79969
+ } | {
79970
+ /** Date and time at which Seam created the warning. */
79971
+ created_at: string;
79972
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
79973
+ message: string;
79974
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
79975
+ warning_code: 'needs_to_be_reissued';
79976
+ })[];
79977
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
79978
+ is_multi_phone_sync_credential?: boolean | undefined;
79979
+ /** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
79980
+ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined;
79981
+ /** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
79982
+ latest_desired_state_synced_with_provider_at?: (string | null) | undefined;
79983
+ /** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
79984
+ visionline_metadata?: {
79985
+ /** Card function type in the Visionline access system. */
79986
+ card_function_type: 'guest' | 'staff';
79987
+ /** IDs of the credentials to which you want to join. */
79988
+ joiner_acs_credential_ids?: string[] | undefined;
79989
+ /** Guest entrance IDs in the Visionline access system. */
79990
+ guest_acs_entrance_ids?: string[] | undefined;
79991
+ /** Common entrance IDs in the Visionline access system. */
79992
+ common_acs_entrance_ids?: string[] | undefined;
79993
+ /** Indicates whether the credential is valid. */
79994
+ is_valid?: boolean | undefined;
79995
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
79996
+ auto_join?: boolean | undefined;
79997
+ /** ID of the card in the Visionline access system. */
79998
+ card_id?: string | undefined;
79999
+ /** ID of the credential in the Visionline access system. */
80000
+ credential_id?: string | undefined;
80001
+ } | undefined;
80002
+ /** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
80003
+ assa_abloy_vostio_metadata?: {
80004
+ /** Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors. */
80005
+ auto_join?: boolean | undefined;
80006
+ /** IDs of the guest entrances to override in the Vostio access system. */
80007
+ override_guest_acs_entrance_ids?: string[] | undefined;
80008
+ /** Key ID in the Vostio access system. */
80009
+ key_id?: string | undefined;
80010
+ /** Key issuing request ID in the Vostio access system. */
80011
+ key_issuing_request_id?: string | undefined;
80012
+ /** Names of the doors to which to grant access in the Vostio access system. */
80013
+ door_names?: string[] | undefined;
80014
+ /** Endpoint ID in the Vostio access system. */
80015
+ endpoint_id?: string | undefined;
80016
+ } | undefined;
80017
+ is_managed: false;
80018
+ }[] | undefined;
79495
80019
  action_attempts?: ({
79496
80020
  /** ID of the action attempt. */
79497
80021
  action_attempt_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.487.0",
3
+ "version": "1.488.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -6,6 +6,10 @@ import {
6
6
  acs_access_group,
7
7
  unmanaged_acs_access_group,
8
8
  } from './acs/acs-access-group.js'
9
+ import {
10
+ acs_credential,
11
+ unmanaged_acs_credential,
12
+ } from './acs/acs-credential.js'
9
13
  import { acs_encoder } from './acs/acs-encoder.js'
10
14
  import { acs_user, unmanaged_acs_user } from './acs/acs-users/acs-user.js'
11
15
  import { acs_entrance, acs_system } from './acs/index.js'
@@ -61,6 +65,8 @@ export const workspaces_batch = z
61
65
  acs_users: acs_user.array().optional(),
62
66
  acs_access_groups: acs_access_group.array().optional(),
63
67
  acs_encoders: acs_encoder.array().optional(),
68
+ acs_credentials: acs_credential.array().optional(),
69
+ unmanaged_acs_credentials: unmanaged_acs_credential.array().optional(),
64
70
  action_attempts: action_attempt.array().optional(),
65
71
  client_sessions: client_session.array().optional(),
66
72
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
@@ -92,6 +98,8 @@ export const batch = z
92
98
  acs_users: acs_user.array().optional(),
93
99
  acs_access_groups: acs_access_group.array().optional(),
94
100
  acs_encoders: acs_encoder.array().optional(),
101
+ acs_credentials: acs_credential.array().optional(),
102
+ unmanaged_acs_credentials: unmanaged_acs_credential.array().optional(),
95
103
  action_attempts: action_attempt.array().optional(),
96
104
  client_sessions: client_session.array().optional(),
97
105
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),