@seamapi/types 1.263.1 → 1.264.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.
@@ -1695,19 +1695,19 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
1695
1695
  result: z.ZodNull;
1696
1696
  error: z.ZodNull;
1697
1697
  }>, {
1698
- action_type: z.ZodLiteral<"READ_CARD">;
1698
+ action_type: z.ZodLiteral<"SCAN_CARD">;
1699
1699
  }>, "strip", z.ZodTypeAny, {
1700
1700
  status: "pending";
1701
1701
  action_attempt_id: string;
1702
1702
  error: null;
1703
1703
  result: null;
1704
- action_type: "READ_CARD";
1704
+ action_type: "SCAN_CARD";
1705
1705
  }, {
1706
1706
  status: "pending";
1707
1707
  action_attempt_id: string;
1708
1708
  error: null;
1709
1709
  result: null;
1710
- action_type: "READ_CARD";
1710
+ action_type: "SCAN_CARD";
1711
1711
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1712
1712
  action_attempt_id: z.ZodString;
1713
1713
  status: z.ZodEnum<["pending", "success", "error"]>;
@@ -1715,30 +1715,814 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
1715
1715
  status: z.ZodLiteral<"success">;
1716
1716
  error: z.ZodNull;
1717
1717
  }>, {
1718
- action_type: z.ZodLiteral<"READ_CARD">;
1718
+ action_type: z.ZodLiteral<"SCAN_CARD">;
1719
1719
  result: z.ZodObject<{
1720
- card_number: z.ZodNullable<z.ZodString>;
1720
+ acs_credential_on_encoder: z.ZodObject<{
1721
+ created_at: z.ZodString;
1722
+ is_issued: z.ZodNullable<z.ZodBoolean>;
1723
+ starts_at: z.ZodNullable<z.ZodString>;
1724
+ ends_at: z.ZodNullable<z.ZodString>;
1725
+ card_number: z.ZodNullable<z.ZodString>;
1726
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1727
+ card_id: z.ZodString;
1728
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1729
+ cancelled: z.ZodBoolean;
1730
+ discarded: z.ZodBoolean;
1731
+ expired: z.ZodBoolean;
1732
+ overwritten: z.ZodBoolean;
1733
+ overridden: z.ZodOptional<z.ZodBoolean>;
1734
+ pending_auto_update: z.ZodBoolean;
1735
+ card_format: z.ZodEnum<["TLCode", "rfid48"]>;
1736
+ card_holder: z.ZodOptional<z.ZodString>;
1737
+ number_of_issued_cards: z.ZodNumber;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ card_function_type: "guest" | "staff";
1740
+ card_id: string;
1741
+ cancelled: boolean;
1742
+ discarded: boolean;
1743
+ expired: boolean;
1744
+ overwritten: boolean;
1745
+ pending_auto_update: boolean;
1746
+ card_format: "TLCode" | "rfid48";
1747
+ number_of_issued_cards: number;
1748
+ overridden?: boolean | undefined;
1749
+ card_holder?: string | undefined;
1750
+ }, {
1751
+ card_function_type: "guest" | "staff";
1752
+ card_id: string;
1753
+ cancelled: boolean;
1754
+ discarded: boolean;
1755
+ expired: boolean;
1756
+ overwritten: boolean;
1757
+ pending_auto_update: boolean;
1758
+ card_format: "TLCode" | "rfid48";
1759
+ number_of_issued_cards: number;
1760
+ overridden?: boolean | undefined;
1761
+ card_holder?: string | undefined;
1762
+ }>>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ created_at: string;
1765
+ starts_at: string | null;
1766
+ ends_at: string | null;
1767
+ card_number: string | null;
1768
+ is_issued: boolean | null;
1769
+ visionline_metadata?: {
1770
+ card_function_type: "guest" | "staff";
1771
+ card_id: string;
1772
+ cancelled: boolean;
1773
+ discarded: boolean;
1774
+ expired: boolean;
1775
+ overwritten: boolean;
1776
+ pending_auto_update: boolean;
1777
+ card_format: "TLCode" | "rfid48";
1778
+ number_of_issued_cards: number;
1779
+ overridden?: boolean | undefined;
1780
+ card_holder?: string | undefined;
1781
+ } | undefined;
1782
+ }, {
1783
+ created_at: string;
1784
+ starts_at: string | null;
1785
+ ends_at: string | null;
1786
+ card_number: string | null;
1787
+ is_issued: boolean | null;
1788
+ visionline_metadata?: {
1789
+ card_function_type: "guest" | "staff";
1790
+ card_id: string;
1791
+ cancelled: boolean;
1792
+ discarded: boolean;
1793
+ expired: boolean;
1794
+ overwritten: boolean;
1795
+ pending_auto_update: boolean;
1796
+ card_format: "TLCode" | "rfid48";
1797
+ number_of_issued_cards: number;
1798
+ overridden?: boolean | undefined;
1799
+ card_holder?: string | undefined;
1800
+ } | undefined;
1801
+ }>;
1802
+ acs_credential_on_seam: z.ZodNullable<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1803
+ acs_credential_id: z.ZodString;
1804
+ acs_user_id: z.ZodOptional<z.ZodString>;
1805
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
1806
+ acs_system_id: z.ZodString;
1807
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
1808
+ display_name: z.ZodString;
1809
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1810
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1811
+ is_issued: z.ZodOptional<z.ZodBoolean>;
1812
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1813
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
1814
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
1815
+ external_type_display_name: z.ZodOptional<z.ZodString>;
1816
+ created_at: z.ZodString;
1817
+ workspace_id: z.ZodString;
1818
+ starts_at: z.ZodOptional<z.ZodString>;
1819
+ ends_at: z.ZodOptional<z.ZodString>;
1820
+ errors: z.ZodArray<z.ZodObject<{
1821
+ error_code: z.ZodString;
1822
+ message: z.ZodString;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ message: string;
1825
+ error_code: string;
1826
+ }, {
1827
+ message: string;
1828
+ error_code: string;
1829
+ }>, "many">;
1830
+ warnings: z.ZodArray<z.ZodObject<{
1831
+ warning_code: z.ZodString;
1832
+ message: z.ZodString;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ message: string;
1835
+ warning_code: string;
1836
+ }, {
1837
+ message: string;
1838
+ warning_code: string;
1839
+ }>, "many">;
1840
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
1841
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
1842
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
1843
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1844
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1845
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1846
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1847
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1848
+ is_valid: z.ZodOptional<z.ZodBoolean>;
1849
+ auto_join: z.ZodOptional<z.ZodBoolean>;
1850
+ card_id: z.ZodOptional<z.ZodString>;
1851
+ credential_id: z.ZodOptional<z.ZodString>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ card_function_type: "guest" | "staff";
1854
+ joiner_acs_credential_ids?: string[] | undefined;
1855
+ guest_acs_entrance_ids?: string[] | undefined;
1856
+ common_acs_entrance_ids?: string[] | undefined;
1857
+ is_valid?: boolean | undefined;
1858
+ auto_join?: boolean | undefined;
1859
+ card_id?: string | undefined;
1860
+ credential_id?: string | undefined;
1861
+ }, {
1862
+ card_function_type: "guest" | "staff";
1863
+ joiner_acs_credential_ids?: string[] | undefined;
1864
+ guest_acs_entrance_ids?: string[] | undefined;
1865
+ common_acs_entrance_ids?: string[] | undefined;
1866
+ is_valid?: boolean | undefined;
1867
+ auto_join?: boolean | undefined;
1868
+ card_id?: string | undefined;
1869
+ credential_id?: string | undefined;
1870
+ }>>;
1871
+ }, {
1872
+ is_managed: z.ZodLiteral<true>;
1873
+ }>, "strip", z.ZodTypeAny, {
1874
+ created_at: string;
1875
+ errors: {
1876
+ message: string;
1877
+ error_code: string;
1878
+ }[];
1879
+ warnings: {
1880
+ message: string;
1881
+ warning_code: string;
1882
+ }[];
1883
+ display_name: string;
1884
+ workspace_id: string;
1885
+ is_managed: true;
1886
+ acs_system_id: string;
1887
+ acs_credential_id: string;
1888
+ access_method: "code" | "card" | "mobile_key";
1889
+ code?: string | null | undefined;
1890
+ starts_at?: string | undefined;
1891
+ ends_at?: string | undefined;
1892
+ visionline_metadata?: {
1893
+ card_function_type: "guest" | "staff";
1894
+ joiner_acs_credential_ids?: string[] | undefined;
1895
+ guest_acs_entrance_ids?: string[] | undefined;
1896
+ common_acs_entrance_ids?: string[] | undefined;
1897
+ is_valid?: boolean | undefined;
1898
+ auto_join?: boolean | undefined;
1899
+ card_id?: string | undefined;
1900
+ credential_id?: string | undefined;
1901
+ } | undefined;
1902
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1903
+ external_type_display_name?: string | undefined;
1904
+ acs_user_id?: string | undefined;
1905
+ acs_credential_pool_id?: string | undefined;
1906
+ parent_acs_credential_id?: string | undefined;
1907
+ card_number?: string | null | undefined;
1908
+ is_issued?: boolean | undefined;
1909
+ issued_at?: string | null | undefined;
1910
+ is_multi_phone_sync_credential?: boolean | undefined;
1911
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1912
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1913
+ }, {
1914
+ created_at: string;
1915
+ errors: {
1916
+ message: string;
1917
+ error_code: string;
1918
+ }[];
1919
+ warnings: {
1920
+ message: string;
1921
+ warning_code: string;
1922
+ }[];
1923
+ display_name: string;
1924
+ workspace_id: string;
1925
+ is_managed: true;
1926
+ acs_system_id: string;
1927
+ acs_credential_id: string;
1928
+ access_method: "code" | "card" | "mobile_key";
1929
+ code?: string | null | undefined;
1930
+ starts_at?: string | undefined;
1931
+ ends_at?: string | undefined;
1932
+ visionline_metadata?: {
1933
+ card_function_type: "guest" | "staff";
1934
+ joiner_acs_credential_ids?: string[] | undefined;
1935
+ guest_acs_entrance_ids?: string[] | undefined;
1936
+ common_acs_entrance_ids?: string[] | undefined;
1937
+ is_valid?: boolean | undefined;
1938
+ auto_join?: boolean | undefined;
1939
+ card_id?: string | undefined;
1940
+ credential_id?: string | undefined;
1941
+ } | undefined;
1942
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1943
+ external_type_display_name?: string | undefined;
1944
+ acs_user_id?: string | undefined;
1945
+ acs_credential_pool_id?: string | undefined;
1946
+ parent_acs_credential_id?: string | undefined;
1947
+ card_number?: string | null | undefined;
1948
+ is_issued?: boolean | undefined;
1949
+ issued_at?: string | null | undefined;
1950
+ is_multi_phone_sync_credential?: boolean | undefined;
1951
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1952
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1953
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1954
+ acs_credential_id: z.ZodString;
1955
+ acs_user_id: z.ZodOptional<z.ZodString>;
1956
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
1957
+ acs_system_id: z.ZodString;
1958
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
1959
+ display_name: z.ZodString;
1960
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1961
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1962
+ is_issued: z.ZodOptional<z.ZodBoolean>;
1963
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1964
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
1965
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
1966
+ external_type_display_name: z.ZodOptional<z.ZodString>;
1967
+ created_at: z.ZodString;
1968
+ workspace_id: z.ZodString;
1969
+ starts_at: z.ZodOptional<z.ZodString>;
1970
+ ends_at: z.ZodOptional<z.ZodString>;
1971
+ errors: z.ZodArray<z.ZodObject<{
1972
+ error_code: z.ZodString;
1973
+ message: z.ZodString;
1974
+ }, "strip", z.ZodTypeAny, {
1975
+ message: string;
1976
+ error_code: string;
1977
+ }, {
1978
+ message: string;
1979
+ error_code: string;
1980
+ }>, "many">;
1981
+ warnings: z.ZodArray<z.ZodObject<{
1982
+ warning_code: z.ZodString;
1983
+ message: z.ZodString;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ message: string;
1986
+ warning_code: string;
1987
+ }, {
1988
+ message: string;
1989
+ warning_code: string;
1990
+ }>, "many">;
1991
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
1992
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
1993
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
1994
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1995
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1996
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1997
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1998
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1999
+ is_valid: z.ZodOptional<z.ZodBoolean>;
2000
+ auto_join: z.ZodOptional<z.ZodBoolean>;
2001
+ card_id: z.ZodOptional<z.ZodString>;
2002
+ credential_id: z.ZodOptional<z.ZodString>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ card_function_type: "guest" | "staff";
2005
+ joiner_acs_credential_ids?: string[] | undefined;
2006
+ guest_acs_entrance_ids?: string[] | undefined;
2007
+ common_acs_entrance_ids?: string[] | undefined;
2008
+ is_valid?: boolean | undefined;
2009
+ auto_join?: boolean | undefined;
2010
+ card_id?: string | undefined;
2011
+ credential_id?: string | undefined;
2012
+ }, {
2013
+ card_function_type: "guest" | "staff";
2014
+ joiner_acs_credential_ids?: string[] | undefined;
2015
+ guest_acs_entrance_ids?: string[] | undefined;
2016
+ common_acs_entrance_ids?: string[] | undefined;
2017
+ is_valid?: boolean | undefined;
2018
+ auto_join?: boolean | undefined;
2019
+ card_id?: string | undefined;
2020
+ credential_id?: string | undefined;
2021
+ }>>;
2022
+ }, {
2023
+ is_managed: z.ZodLiteral<false>;
2024
+ }>, "strip", z.ZodTypeAny, {
2025
+ created_at: string;
2026
+ errors: {
2027
+ message: string;
2028
+ error_code: string;
2029
+ }[];
2030
+ warnings: {
2031
+ message: string;
2032
+ warning_code: string;
2033
+ }[];
2034
+ display_name: string;
2035
+ workspace_id: string;
2036
+ is_managed: false;
2037
+ acs_system_id: string;
2038
+ acs_credential_id: string;
2039
+ access_method: "code" | "card" | "mobile_key";
2040
+ code?: string | null | undefined;
2041
+ starts_at?: string | undefined;
2042
+ ends_at?: string | undefined;
2043
+ visionline_metadata?: {
2044
+ card_function_type: "guest" | "staff";
2045
+ joiner_acs_credential_ids?: string[] | undefined;
2046
+ guest_acs_entrance_ids?: string[] | undefined;
2047
+ common_acs_entrance_ids?: string[] | undefined;
2048
+ is_valid?: boolean | undefined;
2049
+ auto_join?: boolean | undefined;
2050
+ card_id?: string | undefined;
2051
+ credential_id?: string | undefined;
2052
+ } | undefined;
2053
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2054
+ external_type_display_name?: string | undefined;
2055
+ acs_user_id?: string | undefined;
2056
+ acs_credential_pool_id?: string | undefined;
2057
+ parent_acs_credential_id?: string | undefined;
2058
+ card_number?: string | null | undefined;
2059
+ is_issued?: boolean | undefined;
2060
+ issued_at?: string | null | undefined;
2061
+ is_multi_phone_sync_credential?: boolean | undefined;
2062
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2063
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2064
+ }, {
2065
+ created_at: string;
2066
+ errors: {
2067
+ message: string;
2068
+ error_code: string;
2069
+ }[];
2070
+ warnings: {
2071
+ message: string;
2072
+ warning_code: string;
2073
+ }[];
2074
+ display_name: string;
2075
+ workspace_id: string;
2076
+ is_managed: false;
2077
+ acs_system_id: string;
2078
+ acs_credential_id: string;
2079
+ access_method: "code" | "card" | "mobile_key";
2080
+ code?: string | null | undefined;
2081
+ starts_at?: string | undefined;
2082
+ ends_at?: string | undefined;
2083
+ visionline_metadata?: {
2084
+ card_function_type: "guest" | "staff";
2085
+ joiner_acs_credential_ids?: string[] | undefined;
2086
+ guest_acs_entrance_ids?: string[] | undefined;
2087
+ common_acs_entrance_ids?: string[] | undefined;
2088
+ is_valid?: boolean | undefined;
2089
+ auto_join?: boolean | undefined;
2090
+ card_id?: string | undefined;
2091
+ credential_id?: string | undefined;
2092
+ } | undefined;
2093
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2094
+ external_type_display_name?: string | undefined;
2095
+ acs_user_id?: string | undefined;
2096
+ acs_credential_pool_id?: string | undefined;
2097
+ parent_acs_credential_id?: string | undefined;
2098
+ card_number?: string | null | undefined;
2099
+ is_issued?: boolean | undefined;
2100
+ issued_at?: string | null | undefined;
2101
+ is_multi_phone_sync_credential?: boolean | undefined;
2102
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2103
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2104
+ }>]>>;
1721
2105
  }, "strip", z.ZodTypeAny, {
1722
- card_number: string | null;
2106
+ acs_credential_on_encoder: {
2107
+ created_at: string;
2108
+ starts_at: string | null;
2109
+ ends_at: string | null;
2110
+ card_number: string | null;
2111
+ is_issued: boolean | null;
2112
+ visionline_metadata?: {
2113
+ card_function_type: "guest" | "staff";
2114
+ card_id: string;
2115
+ cancelled: boolean;
2116
+ discarded: boolean;
2117
+ expired: boolean;
2118
+ overwritten: boolean;
2119
+ pending_auto_update: boolean;
2120
+ card_format: "TLCode" | "rfid48";
2121
+ number_of_issued_cards: number;
2122
+ overridden?: boolean | undefined;
2123
+ card_holder?: string | undefined;
2124
+ } | undefined;
2125
+ };
2126
+ acs_credential_on_seam: {
2127
+ created_at: string;
2128
+ errors: {
2129
+ message: string;
2130
+ error_code: string;
2131
+ }[];
2132
+ warnings: {
2133
+ message: string;
2134
+ warning_code: string;
2135
+ }[];
2136
+ display_name: string;
2137
+ workspace_id: string;
2138
+ is_managed: true;
2139
+ acs_system_id: string;
2140
+ acs_credential_id: string;
2141
+ access_method: "code" | "card" | "mobile_key";
2142
+ code?: string | null | undefined;
2143
+ starts_at?: string | undefined;
2144
+ ends_at?: string | undefined;
2145
+ visionline_metadata?: {
2146
+ card_function_type: "guest" | "staff";
2147
+ joiner_acs_credential_ids?: string[] | undefined;
2148
+ guest_acs_entrance_ids?: string[] | undefined;
2149
+ common_acs_entrance_ids?: string[] | undefined;
2150
+ is_valid?: boolean | undefined;
2151
+ auto_join?: boolean | undefined;
2152
+ card_id?: string | undefined;
2153
+ credential_id?: string | undefined;
2154
+ } | undefined;
2155
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2156
+ external_type_display_name?: string | undefined;
2157
+ acs_user_id?: string | undefined;
2158
+ acs_credential_pool_id?: string | undefined;
2159
+ parent_acs_credential_id?: string | undefined;
2160
+ card_number?: string | null | undefined;
2161
+ is_issued?: boolean | undefined;
2162
+ issued_at?: string | null | undefined;
2163
+ is_multi_phone_sync_credential?: boolean | undefined;
2164
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2165
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2166
+ } | {
2167
+ created_at: string;
2168
+ errors: {
2169
+ message: string;
2170
+ error_code: string;
2171
+ }[];
2172
+ warnings: {
2173
+ message: string;
2174
+ warning_code: string;
2175
+ }[];
2176
+ display_name: string;
2177
+ workspace_id: string;
2178
+ is_managed: false;
2179
+ acs_system_id: string;
2180
+ acs_credential_id: string;
2181
+ access_method: "code" | "card" | "mobile_key";
2182
+ code?: string | null | undefined;
2183
+ starts_at?: string | undefined;
2184
+ ends_at?: string | undefined;
2185
+ visionline_metadata?: {
2186
+ card_function_type: "guest" | "staff";
2187
+ joiner_acs_credential_ids?: string[] | undefined;
2188
+ guest_acs_entrance_ids?: string[] | undefined;
2189
+ common_acs_entrance_ids?: string[] | undefined;
2190
+ is_valid?: boolean | undefined;
2191
+ auto_join?: boolean | undefined;
2192
+ card_id?: string | undefined;
2193
+ credential_id?: string | undefined;
2194
+ } | undefined;
2195
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2196
+ external_type_display_name?: string | undefined;
2197
+ acs_user_id?: string | undefined;
2198
+ acs_credential_pool_id?: string | undefined;
2199
+ parent_acs_credential_id?: string | undefined;
2200
+ card_number?: string | null | undefined;
2201
+ is_issued?: boolean | undefined;
2202
+ issued_at?: string | null | undefined;
2203
+ is_multi_phone_sync_credential?: boolean | undefined;
2204
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2205
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2206
+ } | null;
1723
2207
  }, {
1724
- card_number: string | null;
2208
+ acs_credential_on_encoder: {
2209
+ created_at: string;
2210
+ starts_at: string | null;
2211
+ ends_at: string | null;
2212
+ card_number: string | null;
2213
+ is_issued: boolean | null;
2214
+ visionline_metadata?: {
2215
+ card_function_type: "guest" | "staff";
2216
+ card_id: string;
2217
+ cancelled: boolean;
2218
+ discarded: boolean;
2219
+ expired: boolean;
2220
+ overwritten: boolean;
2221
+ pending_auto_update: boolean;
2222
+ card_format: "TLCode" | "rfid48";
2223
+ number_of_issued_cards: number;
2224
+ overridden?: boolean | undefined;
2225
+ card_holder?: string | undefined;
2226
+ } | undefined;
2227
+ };
2228
+ acs_credential_on_seam: {
2229
+ created_at: string;
2230
+ errors: {
2231
+ message: string;
2232
+ error_code: string;
2233
+ }[];
2234
+ warnings: {
2235
+ message: string;
2236
+ warning_code: string;
2237
+ }[];
2238
+ display_name: string;
2239
+ workspace_id: string;
2240
+ is_managed: true;
2241
+ acs_system_id: string;
2242
+ acs_credential_id: string;
2243
+ access_method: "code" | "card" | "mobile_key";
2244
+ code?: string | null | undefined;
2245
+ starts_at?: string | undefined;
2246
+ ends_at?: string | undefined;
2247
+ visionline_metadata?: {
2248
+ card_function_type: "guest" | "staff";
2249
+ joiner_acs_credential_ids?: string[] | undefined;
2250
+ guest_acs_entrance_ids?: string[] | undefined;
2251
+ common_acs_entrance_ids?: string[] | undefined;
2252
+ is_valid?: boolean | undefined;
2253
+ auto_join?: boolean | undefined;
2254
+ card_id?: string | undefined;
2255
+ credential_id?: string | undefined;
2256
+ } | undefined;
2257
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2258
+ external_type_display_name?: string | undefined;
2259
+ acs_user_id?: string | undefined;
2260
+ acs_credential_pool_id?: string | undefined;
2261
+ parent_acs_credential_id?: string | undefined;
2262
+ card_number?: string | null | undefined;
2263
+ is_issued?: boolean | undefined;
2264
+ issued_at?: string | null | undefined;
2265
+ is_multi_phone_sync_credential?: boolean | undefined;
2266
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2267
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2268
+ } | {
2269
+ created_at: string;
2270
+ errors: {
2271
+ message: string;
2272
+ error_code: string;
2273
+ }[];
2274
+ warnings: {
2275
+ message: string;
2276
+ warning_code: string;
2277
+ }[];
2278
+ display_name: string;
2279
+ workspace_id: string;
2280
+ is_managed: false;
2281
+ acs_system_id: string;
2282
+ acs_credential_id: string;
2283
+ access_method: "code" | "card" | "mobile_key";
2284
+ code?: string | null | undefined;
2285
+ starts_at?: string | undefined;
2286
+ ends_at?: string | undefined;
2287
+ visionline_metadata?: {
2288
+ card_function_type: "guest" | "staff";
2289
+ joiner_acs_credential_ids?: string[] | undefined;
2290
+ guest_acs_entrance_ids?: string[] | undefined;
2291
+ common_acs_entrance_ids?: string[] | undefined;
2292
+ is_valid?: boolean | undefined;
2293
+ auto_join?: boolean | undefined;
2294
+ card_id?: string | undefined;
2295
+ credential_id?: string | undefined;
2296
+ } | undefined;
2297
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2298
+ external_type_display_name?: string | undefined;
2299
+ acs_user_id?: string | undefined;
2300
+ acs_credential_pool_id?: string | undefined;
2301
+ parent_acs_credential_id?: string | undefined;
2302
+ card_number?: string | null | undefined;
2303
+ is_issued?: boolean | undefined;
2304
+ issued_at?: string | null | undefined;
2305
+ is_multi_phone_sync_credential?: boolean | undefined;
2306
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2307
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2308
+ } | null;
1725
2309
  }>;
1726
2310
  }>, "strip", z.ZodTypeAny, {
1727
2311
  status: "success";
1728
2312
  action_attempt_id: string;
1729
2313
  error: null;
1730
2314
  result: {
1731
- card_number: string | null;
2315
+ acs_credential_on_encoder: {
2316
+ created_at: string;
2317
+ starts_at: string | null;
2318
+ ends_at: string | null;
2319
+ card_number: string | null;
2320
+ is_issued: boolean | null;
2321
+ visionline_metadata?: {
2322
+ card_function_type: "guest" | "staff";
2323
+ card_id: string;
2324
+ cancelled: boolean;
2325
+ discarded: boolean;
2326
+ expired: boolean;
2327
+ overwritten: boolean;
2328
+ pending_auto_update: boolean;
2329
+ card_format: "TLCode" | "rfid48";
2330
+ number_of_issued_cards: number;
2331
+ overridden?: boolean | undefined;
2332
+ card_holder?: string | undefined;
2333
+ } | undefined;
2334
+ };
2335
+ acs_credential_on_seam: {
2336
+ created_at: string;
2337
+ errors: {
2338
+ message: string;
2339
+ error_code: string;
2340
+ }[];
2341
+ warnings: {
2342
+ message: string;
2343
+ warning_code: string;
2344
+ }[];
2345
+ display_name: string;
2346
+ workspace_id: string;
2347
+ is_managed: true;
2348
+ acs_system_id: string;
2349
+ acs_credential_id: string;
2350
+ access_method: "code" | "card" | "mobile_key";
2351
+ code?: string | null | undefined;
2352
+ starts_at?: string | undefined;
2353
+ ends_at?: string | undefined;
2354
+ visionline_metadata?: {
2355
+ card_function_type: "guest" | "staff";
2356
+ joiner_acs_credential_ids?: string[] | undefined;
2357
+ guest_acs_entrance_ids?: string[] | undefined;
2358
+ common_acs_entrance_ids?: string[] | undefined;
2359
+ is_valid?: boolean | undefined;
2360
+ auto_join?: boolean | undefined;
2361
+ card_id?: string | undefined;
2362
+ credential_id?: string | undefined;
2363
+ } | undefined;
2364
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2365
+ external_type_display_name?: string | undefined;
2366
+ acs_user_id?: string | undefined;
2367
+ acs_credential_pool_id?: string | undefined;
2368
+ parent_acs_credential_id?: string | undefined;
2369
+ card_number?: string | null | undefined;
2370
+ is_issued?: boolean | undefined;
2371
+ issued_at?: string | null | undefined;
2372
+ is_multi_phone_sync_credential?: boolean | undefined;
2373
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2374
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2375
+ } | {
2376
+ created_at: string;
2377
+ errors: {
2378
+ message: string;
2379
+ error_code: string;
2380
+ }[];
2381
+ warnings: {
2382
+ message: string;
2383
+ warning_code: string;
2384
+ }[];
2385
+ display_name: string;
2386
+ workspace_id: string;
2387
+ is_managed: false;
2388
+ acs_system_id: string;
2389
+ acs_credential_id: string;
2390
+ access_method: "code" | "card" | "mobile_key";
2391
+ code?: string | null | undefined;
2392
+ starts_at?: string | undefined;
2393
+ ends_at?: string | undefined;
2394
+ visionline_metadata?: {
2395
+ card_function_type: "guest" | "staff";
2396
+ joiner_acs_credential_ids?: string[] | undefined;
2397
+ guest_acs_entrance_ids?: string[] | undefined;
2398
+ common_acs_entrance_ids?: string[] | undefined;
2399
+ is_valid?: boolean | undefined;
2400
+ auto_join?: boolean | undefined;
2401
+ card_id?: string | undefined;
2402
+ credential_id?: string | undefined;
2403
+ } | undefined;
2404
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2405
+ external_type_display_name?: string | undefined;
2406
+ acs_user_id?: string | undefined;
2407
+ acs_credential_pool_id?: string | undefined;
2408
+ parent_acs_credential_id?: string | undefined;
2409
+ card_number?: string | null | undefined;
2410
+ is_issued?: boolean | undefined;
2411
+ issued_at?: string | null | undefined;
2412
+ is_multi_phone_sync_credential?: boolean | undefined;
2413
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2414
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2415
+ } | null;
1732
2416
  };
1733
- action_type: "READ_CARD";
2417
+ action_type: "SCAN_CARD";
1734
2418
  }, {
1735
2419
  status: "success";
1736
2420
  action_attempt_id: string;
1737
2421
  error: null;
1738
2422
  result: {
1739
- card_number: string | null;
2423
+ acs_credential_on_encoder: {
2424
+ created_at: string;
2425
+ starts_at: string | null;
2426
+ ends_at: string | null;
2427
+ card_number: string | null;
2428
+ is_issued: boolean | null;
2429
+ visionline_metadata?: {
2430
+ card_function_type: "guest" | "staff";
2431
+ card_id: string;
2432
+ cancelled: boolean;
2433
+ discarded: boolean;
2434
+ expired: boolean;
2435
+ overwritten: boolean;
2436
+ pending_auto_update: boolean;
2437
+ card_format: "TLCode" | "rfid48";
2438
+ number_of_issued_cards: number;
2439
+ overridden?: boolean | undefined;
2440
+ card_holder?: string | undefined;
2441
+ } | undefined;
2442
+ };
2443
+ acs_credential_on_seam: {
2444
+ created_at: string;
2445
+ errors: {
2446
+ message: string;
2447
+ error_code: string;
2448
+ }[];
2449
+ warnings: {
2450
+ message: string;
2451
+ warning_code: string;
2452
+ }[];
2453
+ display_name: string;
2454
+ workspace_id: string;
2455
+ is_managed: true;
2456
+ acs_system_id: string;
2457
+ acs_credential_id: string;
2458
+ access_method: "code" | "card" | "mobile_key";
2459
+ code?: string | null | undefined;
2460
+ starts_at?: string | undefined;
2461
+ ends_at?: string | undefined;
2462
+ visionline_metadata?: {
2463
+ card_function_type: "guest" | "staff";
2464
+ joiner_acs_credential_ids?: string[] | undefined;
2465
+ guest_acs_entrance_ids?: string[] | undefined;
2466
+ common_acs_entrance_ids?: string[] | undefined;
2467
+ is_valid?: boolean | undefined;
2468
+ auto_join?: boolean | undefined;
2469
+ card_id?: string | undefined;
2470
+ credential_id?: string | undefined;
2471
+ } | undefined;
2472
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2473
+ external_type_display_name?: string | undefined;
2474
+ acs_user_id?: string | undefined;
2475
+ acs_credential_pool_id?: string | undefined;
2476
+ parent_acs_credential_id?: string | undefined;
2477
+ card_number?: string | null | undefined;
2478
+ is_issued?: boolean | undefined;
2479
+ issued_at?: string | null | undefined;
2480
+ is_multi_phone_sync_credential?: boolean | undefined;
2481
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2482
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2483
+ } | {
2484
+ created_at: string;
2485
+ errors: {
2486
+ message: string;
2487
+ error_code: string;
2488
+ }[];
2489
+ warnings: {
2490
+ message: string;
2491
+ warning_code: string;
2492
+ }[];
2493
+ display_name: string;
2494
+ workspace_id: string;
2495
+ is_managed: false;
2496
+ acs_system_id: string;
2497
+ acs_credential_id: string;
2498
+ access_method: "code" | "card" | "mobile_key";
2499
+ code?: string | null | undefined;
2500
+ starts_at?: string | undefined;
2501
+ ends_at?: string | undefined;
2502
+ visionline_metadata?: {
2503
+ card_function_type: "guest" | "staff";
2504
+ joiner_acs_credential_ids?: string[] | undefined;
2505
+ guest_acs_entrance_ids?: string[] | undefined;
2506
+ common_acs_entrance_ids?: string[] | undefined;
2507
+ is_valid?: boolean | undefined;
2508
+ auto_join?: boolean | undefined;
2509
+ card_id?: string | undefined;
2510
+ credential_id?: string | undefined;
2511
+ } | undefined;
2512
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
2513
+ external_type_display_name?: string | undefined;
2514
+ acs_user_id?: string | undefined;
2515
+ acs_credential_pool_id?: string | undefined;
2516
+ parent_acs_credential_id?: string | undefined;
2517
+ card_number?: string | null | undefined;
2518
+ is_issued?: boolean | undefined;
2519
+ issued_at?: string | null | undefined;
2520
+ is_multi_phone_sync_credential?: boolean | undefined;
2521
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
2522
+ latest_desired_state_synced_with_provider_at?: string | undefined;
2523
+ } | null;
1740
2524
  };
1741
- action_type: "READ_CARD";
2525
+ action_type: "SCAN_CARD";
1742
2526
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1743
2527
  action_attempt_id: z.ZodString;
1744
2528
  status: z.ZodEnum<["pending", "success", "error"]>;
@@ -1746,7 +2530,7 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
1746
2530
  status: z.ZodLiteral<"error">;
1747
2531
  result: z.ZodNull;
1748
2532
  }>, {
1749
- action_type: z.ZodLiteral<"READ_CARD">;
2533
+ action_type: z.ZodLiteral<"SCAN_CARD">;
1750
2534
  error: z.ZodObject<{
1751
2535
  type: z.ZodLiteral<"no_card_on_encoder">;
1752
2536
  message: z.ZodString;
@@ -1765,7 +2549,7 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
1765
2549
  type: "no_card_on_encoder";
1766
2550
  };
1767
2551
  result: null;
1768
- action_type: "READ_CARD";
2552
+ action_type: "SCAN_CARD";
1769
2553
  }, {
1770
2554
  status: "error";
1771
2555
  action_attempt_id: string;
@@ -1774,7 +2558,7 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
1774
2558
  type: "no_card_on_encoder";
1775
2559
  };
1776
2560
  result: null;
1777
- action_type: "READ_CARD";
2561
+ action_type: "SCAN_CARD";
1778
2562
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1779
2563
  action_attempt_id: z.ZodString;
1780
2564
  status: z.ZodEnum<["pending", "success", "error"]>;
@@ -10689,8 +11473,10 @@ declare const _default: {
10689
11473
  };
10690
11474
  result: {
10691
11475
  properties: {
10692
- card_number?: never;
11476
+ acs_credential_on_encoder?: never;
11477
+ acs_credential_on_seam?: never;
10693
11478
  acs_credential_id?: never;
11479
+ card_number?: never;
10694
11480
  };
10695
11481
  type: string;
10696
11482
  nullable?: never;
@@ -10764,12 +11550,245 @@ declare const _default: {
10764
11550
  };
10765
11551
  result: {
10766
11552
  properties: {
10767
- card_number: {
11553
+ acs_credential_on_encoder: {
10768
11554
  description: string;
10769
- nullable: boolean;
11555
+ properties: {
11556
+ card_number: {
11557
+ description: string;
11558
+ nullable: boolean;
11559
+ type: string;
11560
+ };
11561
+ created_at: {
11562
+ description: string;
11563
+ format: string;
11564
+ type: string;
11565
+ };
11566
+ ends_at: {
11567
+ description: string;
11568
+ format: string;
11569
+ nullable: boolean;
11570
+ type: string;
11571
+ };
11572
+ is_issued: {
11573
+ nullable: boolean;
11574
+ type: string;
11575
+ };
11576
+ starts_at: {
11577
+ description: string;
11578
+ format: string;
11579
+ nullable: boolean;
11580
+ type: string;
11581
+ };
11582
+ visionline_metadata: {
11583
+ properties: {
11584
+ cancelled: {
11585
+ type: string;
11586
+ };
11587
+ card_format: {
11588
+ enum: string[];
11589
+ type: string;
11590
+ };
11591
+ card_function_type: {
11592
+ enum: string[];
11593
+ type: string;
11594
+ };
11595
+ card_holder: {
11596
+ type: string;
11597
+ };
11598
+ card_id: {
11599
+ type: string;
11600
+ };
11601
+ discarded: {
11602
+ type: string;
11603
+ };
11604
+ expired: {
11605
+ type: string;
11606
+ };
11607
+ number_of_issued_cards: {
11608
+ format: string;
11609
+ type: string;
11610
+ };
11611
+ overridden: {
11612
+ type: string;
11613
+ };
11614
+ overwritten: {
11615
+ type: string;
11616
+ };
11617
+ pending_auto_update: {
11618
+ type: string;
11619
+ };
11620
+ };
11621
+ required: string[];
11622
+ type: string;
11623
+ };
11624
+ };
11625
+ required: string[];
10770
11626
  type: string;
10771
11627
  };
11628
+ acs_credential_on_seam: {
11629
+ description: string;
11630
+ nullable: boolean;
11631
+ oneOf: {
11632
+ properties: {
11633
+ access_method: {
11634
+ enum: string[];
11635
+ type: string;
11636
+ };
11637
+ acs_credential_id: {
11638
+ format: string;
11639
+ type: string;
11640
+ };
11641
+ acs_credential_pool_id: {
11642
+ format: string;
11643
+ type: string;
11644
+ };
11645
+ acs_system_id: {
11646
+ format: string;
11647
+ type: string;
11648
+ };
11649
+ acs_user_id: {
11650
+ format: string;
11651
+ type: string;
11652
+ };
11653
+ card_number: {
11654
+ nullable: boolean;
11655
+ type: string;
11656
+ };
11657
+ code: {
11658
+ nullable: boolean;
11659
+ type: string;
11660
+ };
11661
+ created_at: {
11662
+ format: string;
11663
+ type: string;
11664
+ };
11665
+ display_name: {
11666
+ minLength: number;
11667
+ type: string;
11668
+ };
11669
+ ends_at: {
11670
+ type: string;
11671
+ };
11672
+ errors: {
11673
+ items: {
11674
+ properties: {
11675
+ error_code: {
11676
+ type: string;
11677
+ };
11678
+ message: {
11679
+ type: string;
11680
+ };
11681
+ };
11682
+ required: string[];
11683
+ type: string;
11684
+ };
11685
+ type: string;
11686
+ };
11687
+ external_type: {
11688
+ enum: string[];
11689
+ type: string;
11690
+ };
11691
+ external_type_display_name: {
11692
+ type: string;
11693
+ };
11694
+ is_issued: {
11695
+ type: string;
11696
+ };
11697
+ is_latest_desired_state_synced_with_provider: {
11698
+ type: string;
11699
+ };
11700
+ is_managed: {
11701
+ enum: boolean[];
11702
+ type: string;
11703
+ };
11704
+ is_multi_phone_sync_credential: {
11705
+ type: string;
11706
+ };
11707
+ issued_at: {
11708
+ format: string;
11709
+ nullable: boolean;
11710
+ type: string;
11711
+ };
11712
+ latest_desired_state_synced_with_provider_at: {
11713
+ format: string;
11714
+ type: string;
11715
+ };
11716
+ parent_acs_credential_id: {
11717
+ format: string;
11718
+ type: string;
11719
+ };
11720
+ starts_at: {
11721
+ type: string;
11722
+ };
11723
+ visionline_metadata: {
11724
+ properties: {
11725
+ auto_join: {
11726
+ type: string;
11727
+ };
11728
+ card_function_type: {
11729
+ enum: string[];
11730
+ type: string;
11731
+ };
11732
+ card_id: {
11733
+ type: string;
11734
+ };
11735
+ common_acs_entrance_ids: {
11736
+ items: {
11737
+ format: string;
11738
+ type: string;
11739
+ };
11740
+ type: string;
11741
+ };
11742
+ credential_id: {
11743
+ type: string;
11744
+ };
11745
+ guest_acs_entrance_ids: {
11746
+ items: {
11747
+ format: string;
11748
+ type: string;
11749
+ };
11750
+ type: string;
11751
+ };
11752
+ is_valid: {
11753
+ type: string;
11754
+ };
11755
+ joiner_acs_credential_ids: {
11756
+ items: {
11757
+ format: string;
11758
+ type: string;
11759
+ };
11760
+ type: string;
11761
+ };
11762
+ };
11763
+ required: string[];
11764
+ type: string;
11765
+ };
11766
+ warnings: {
11767
+ items: {
11768
+ properties: {
11769
+ message: {
11770
+ type: string;
11771
+ };
11772
+ warning_code: {
11773
+ type: string;
11774
+ };
11775
+ };
11776
+ required: string[];
11777
+ type: string;
11778
+ };
11779
+ type: string;
11780
+ };
11781
+ workspace_id: {
11782
+ format: string;
11783
+ type: string;
11784
+ };
11785
+ };
11786
+ required: string[];
11787
+ type: string;
11788
+ }[];
11789
+ };
10772
11790
  acs_credential_id?: never;
11791
+ card_number?: never;
10773
11792
  };
10774
11793
  required: string[];
10775
11794
  type: string;
@@ -10854,6 +11873,8 @@ declare const _default: {
10854
11873
  nullable: boolean;
10855
11874
  type: string;
10856
11875
  };
11876
+ acs_credential_on_encoder?: never;
11877
+ acs_credential_on_seam?: never;
10857
11878
  };
10858
11879
  required: string[];
10859
11880
  type: string;
@@ -18167,7 +19188,7 @@ declare const _default: {
18167
19188
  'x-undocumented': string;
18168
19189
  };
18169
19190
  };
18170
- '/acs/encoders/read_card': {
19191
+ '/acs/encoders/scan_card': {
18171
19192
  post: {
18172
19193
  operationId: string;
18173
19194
  requestBody: {
@@ -28752,23 +29773,128 @@ interface Routes {
28752
29773
  status: 'pending';
28753
29774
  result: null;
28754
29775
  error: null;
28755
- action_type: 'READ_CARD';
29776
+ action_type: 'SCAN_CARD';
28756
29777
  } | {
28757
29778
  /** The ID of the action attempt. */
28758
29779
  action_attempt_id: string;
28759
29780
  status: 'success';
28760
29781
  error: null;
28761
- action_type: 'READ_CARD';
29782
+ action_type: 'SCAN_CARD';
28762
29783
  result: {
28763
- /** A number or string that physically identifies this card. */
28764
- card_number: string | null;
29784
+ /** Snapshot of the card data read from the physical encoder. */
29785
+ acs_credential_on_encoder: {
29786
+ /** Date and time the credential was created. */
29787
+ created_at: string;
29788
+ is_issued: boolean | null;
29789
+ /** Date and time the credential will become useable. */
29790
+ starts_at: string | null;
29791
+ /** Date and time the credential will stop being useable. */
29792
+ ends_at: string | null;
29793
+ /** A number or string that physically identifies this card. */
29794
+ card_number: string | null;
29795
+ visionline_metadata?: {
29796
+ card_id: string;
29797
+ card_function_type: 'guest' | 'staff';
29798
+ cancelled: boolean;
29799
+ discarded: boolean;
29800
+ expired: boolean;
29801
+ overwritten: boolean;
29802
+ overridden?: boolean | undefined;
29803
+ pending_auto_update: boolean;
29804
+ card_format: 'TLCode' | 'rfid48';
29805
+ card_holder?: string | undefined;
29806
+ number_of_issued_cards: number;
29807
+ } | undefined;
29808
+ };
29809
+ /** Matching acs_credential currently encoded on this card. */
29810
+ acs_credential_on_seam: ({
29811
+ acs_credential_id: string;
29812
+ acs_user_id?: string | undefined;
29813
+ acs_credential_pool_id?: string | undefined;
29814
+ acs_system_id: string;
29815
+ parent_acs_credential_id?: string | undefined;
29816
+ display_name: string;
29817
+ code?: (string | undefined) | null;
29818
+ card_number?: (string | undefined) | null;
29819
+ is_issued?: boolean | undefined;
29820
+ issued_at?: (string | undefined) | null;
29821
+ access_method: 'code' | 'card' | 'mobile_key';
29822
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
29823
+ external_type_display_name?: string | undefined;
29824
+ created_at: string;
29825
+ workspace_id: string;
29826
+ starts_at?: string | undefined;
29827
+ ends_at?: string | undefined;
29828
+ errors: Array<{
29829
+ error_code: string;
29830
+ message: string;
29831
+ }>;
29832
+ warnings: Array<{
29833
+ warning_code: string;
29834
+ message: string;
29835
+ }>;
29836
+ is_multi_phone_sync_credential?: boolean | undefined;
29837
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
29838
+ latest_desired_state_synced_with_provider_at?: string | undefined;
29839
+ visionline_metadata?: {
29840
+ card_function_type: 'guest' | 'staff';
29841
+ joiner_acs_credential_ids?: string[] | undefined;
29842
+ guest_acs_entrance_ids?: string[] | undefined;
29843
+ common_acs_entrance_ids?: string[] | undefined;
29844
+ is_valid?: boolean | undefined;
29845
+ auto_join?: boolean | undefined;
29846
+ card_id?: string | undefined;
29847
+ credential_id?: string | undefined;
29848
+ } | undefined;
29849
+ is_managed: true;
29850
+ } | {
29851
+ acs_credential_id: string;
29852
+ acs_user_id?: string | undefined;
29853
+ acs_credential_pool_id?: string | undefined;
29854
+ acs_system_id: string;
29855
+ parent_acs_credential_id?: string | undefined;
29856
+ display_name: string;
29857
+ code?: (string | undefined) | null;
29858
+ card_number?: (string | undefined) | null;
29859
+ is_issued?: boolean | undefined;
29860
+ issued_at?: (string | undefined) | null;
29861
+ access_method: 'code' | 'card' | 'mobile_key';
29862
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
29863
+ external_type_display_name?: string | undefined;
29864
+ created_at: string;
29865
+ workspace_id: string;
29866
+ starts_at?: string | undefined;
29867
+ ends_at?: string | undefined;
29868
+ errors: Array<{
29869
+ error_code: string;
29870
+ message: string;
29871
+ }>;
29872
+ warnings: Array<{
29873
+ warning_code: string;
29874
+ message: string;
29875
+ }>;
29876
+ is_multi_phone_sync_credential?: boolean | undefined;
29877
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
29878
+ latest_desired_state_synced_with_provider_at?: string | undefined;
29879
+ visionline_metadata?: {
29880
+ card_function_type: 'guest' | 'staff';
29881
+ joiner_acs_credential_ids?: string[] | undefined;
29882
+ guest_acs_entrance_ids?: string[] | undefined;
29883
+ common_acs_entrance_ids?: string[] | undefined;
29884
+ is_valid?: boolean | undefined;
29885
+ auto_join?: boolean | undefined;
29886
+ card_id?: string | undefined;
29887
+ credential_id?: string | undefined;
29888
+ } | undefined;
29889
+ is_managed: false;
29890
+ }) | null;
28765
29891
  };
28766
29892
  } | {
28767
29893
  /** The ID of the action attempt. */
28768
29894
  action_attempt_id: string;
28769
29895
  status: 'error';
28770
29896
  result: null;
28771
- action_type: 'READ_CARD';
29897
+ action_type: 'SCAN_CARD';
28772
29898
  error: {
28773
29899
  type: 'no_card_on_encoder';
28774
29900
  message: string;
@@ -29356,23 +30482,128 @@ interface Routes {
29356
30482
  status: 'pending';
29357
30483
  result: null;
29358
30484
  error: null;
29359
- action_type: 'READ_CARD';
30485
+ action_type: 'SCAN_CARD';
29360
30486
  } | {
29361
30487
  /** The ID of the action attempt. */
29362
30488
  action_attempt_id: string;
29363
30489
  status: 'success';
29364
30490
  error: null;
29365
- action_type: 'READ_CARD';
30491
+ action_type: 'SCAN_CARD';
29366
30492
  result: {
29367
- /** A number or string that physically identifies this card. */
29368
- card_number: string | null;
30493
+ /** Snapshot of the card data read from the physical encoder. */
30494
+ acs_credential_on_encoder: {
30495
+ /** Date and time the credential was created. */
30496
+ created_at: string;
30497
+ is_issued: boolean | null;
30498
+ /** Date and time the credential will become useable. */
30499
+ starts_at: string | null;
30500
+ /** Date and time the credential will stop being useable. */
30501
+ ends_at: string | null;
30502
+ /** A number or string that physically identifies this card. */
30503
+ card_number: string | null;
30504
+ visionline_metadata?: {
30505
+ card_id: string;
30506
+ card_function_type: 'guest' | 'staff';
30507
+ cancelled: boolean;
30508
+ discarded: boolean;
30509
+ expired: boolean;
30510
+ overwritten: boolean;
30511
+ overridden?: boolean | undefined;
30512
+ pending_auto_update: boolean;
30513
+ card_format: 'TLCode' | 'rfid48';
30514
+ card_holder?: string | undefined;
30515
+ number_of_issued_cards: number;
30516
+ } | undefined;
30517
+ };
30518
+ /** Matching acs_credential currently encoded on this card. */
30519
+ acs_credential_on_seam: ({
30520
+ acs_credential_id: string;
30521
+ acs_user_id?: string | undefined;
30522
+ acs_credential_pool_id?: string | undefined;
30523
+ acs_system_id: string;
30524
+ parent_acs_credential_id?: string | undefined;
30525
+ display_name: string;
30526
+ code?: (string | undefined) | null;
30527
+ card_number?: (string | undefined) | null;
30528
+ is_issued?: boolean | undefined;
30529
+ issued_at?: (string | undefined) | null;
30530
+ access_method: 'code' | 'card' | 'mobile_key';
30531
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
30532
+ external_type_display_name?: string | undefined;
30533
+ created_at: string;
30534
+ workspace_id: string;
30535
+ starts_at?: string | undefined;
30536
+ ends_at?: string | undefined;
30537
+ errors: Array<{
30538
+ error_code: string;
30539
+ message: string;
30540
+ }>;
30541
+ warnings: Array<{
30542
+ warning_code: string;
30543
+ message: string;
30544
+ }>;
30545
+ is_multi_phone_sync_credential?: boolean | undefined;
30546
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
30547
+ latest_desired_state_synced_with_provider_at?: string | undefined;
30548
+ visionline_metadata?: {
30549
+ card_function_type: 'guest' | 'staff';
30550
+ joiner_acs_credential_ids?: string[] | undefined;
30551
+ guest_acs_entrance_ids?: string[] | undefined;
30552
+ common_acs_entrance_ids?: string[] | undefined;
30553
+ is_valid?: boolean | undefined;
30554
+ auto_join?: boolean | undefined;
30555
+ card_id?: string | undefined;
30556
+ credential_id?: string | undefined;
30557
+ } | undefined;
30558
+ is_managed: true;
30559
+ } | {
30560
+ acs_credential_id: string;
30561
+ acs_user_id?: string | undefined;
30562
+ acs_credential_pool_id?: string | undefined;
30563
+ acs_system_id: string;
30564
+ parent_acs_credential_id?: string | undefined;
30565
+ display_name: string;
30566
+ code?: (string | undefined) | null;
30567
+ card_number?: (string | undefined) | null;
30568
+ is_issued?: boolean | undefined;
30569
+ issued_at?: (string | undefined) | null;
30570
+ access_method: 'code' | 'card' | 'mobile_key';
30571
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
30572
+ external_type_display_name?: string | undefined;
30573
+ created_at: string;
30574
+ workspace_id: string;
30575
+ starts_at?: string | undefined;
30576
+ ends_at?: string | undefined;
30577
+ errors: Array<{
30578
+ error_code: string;
30579
+ message: string;
30580
+ }>;
30581
+ warnings: Array<{
30582
+ warning_code: string;
30583
+ message: string;
30584
+ }>;
30585
+ is_multi_phone_sync_credential?: boolean | undefined;
30586
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
30587
+ latest_desired_state_synced_with_provider_at?: string | undefined;
30588
+ visionline_metadata?: {
30589
+ card_function_type: 'guest' | 'staff';
30590
+ joiner_acs_credential_ids?: string[] | undefined;
30591
+ guest_acs_entrance_ids?: string[] | undefined;
30592
+ common_acs_entrance_ids?: string[] | undefined;
30593
+ is_valid?: boolean | undefined;
30594
+ auto_join?: boolean | undefined;
30595
+ card_id?: string | undefined;
30596
+ credential_id?: string | undefined;
30597
+ } | undefined;
30598
+ is_managed: false;
30599
+ }) | null;
29369
30600
  };
29370
30601
  } | {
29371
30602
  /** The ID of the action attempt. */
29372
30603
  action_attempt_id: string;
29373
30604
  status: 'error';
29374
30605
  result: null;
29375
- action_type: 'READ_CARD';
30606
+ action_type: 'SCAN_CARD';
29376
30607
  error: {
29377
30608
  type: 'no_card_on_encoder';
29378
30609
  message: string;
@@ -30117,23 +31348,128 @@ interface Routes {
30117
31348
  status: 'pending';
30118
31349
  result: null;
30119
31350
  error: null;
30120
- action_type: 'READ_CARD';
31351
+ action_type: 'SCAN_CARD';
30121
31352
  } | {
30122
31353
  /** The ID of the action attempt. */
30123
31354
  action_attempt_id: string;
30124
31355
  status: 'success';
30125
31356
  error: null;
30126
- action_type: 'READ_CARD';
31357
+ action_type: 'SCAN_CARD';
30127
31358
  result: {
30128
- /** A number or string that physically identifies this card. */
30129
- card_number: string | null;
31359
+ /** Snapshot of the card data read from the physical encoder. */
31360
+ acs_credential_on_encoder: {
31361
+ /** Date and time the credential was created. */
31362
+ created_at: string;
31363
+ is_issued: boolean | null;
31364
+ /** Date and time the credential will become useable. */
31365
+ starts_at: string | null;
31366
+ /** Date and time the credential will stop being useable. */
31367
+ ends_at: string | null;
31368
+ /** A number or string that physically identifies this card. */
31369
+ card_number: string | null;
31370
+ visionline_metadata?: {
31371
+ card_id: string;
31372
+ card_function_type: 'guest' | 'staff';
31373
+ cancelled: boolean;
31374
+ discarded: boolean;
31375
+ expired: boolean;
31376
+ overwritten: boolean;
31377
+ overridden?: boolean | undefined;
31378
+ pending_auto_update: boolean;
31379
+ card_format: 'TLCode' | 'rfid48';
31380
+ card_holder?: string | undefined;
31381
+ number_of_issued_cards: number;
31382
+ } | undefined;
31383
+ };
31384
+ /** Matching acs_credential currently encoded on this card. */
31385
+ acs_credential_on_seam: ({
31386
+ acs_credential_id: string;
31387
+ acs_user_id?: string | undefined;
31388
+ acs_credential_pool_id?: string | undefined;
31389
+ acs_system_id: string;
31390
+ parent_acs_credential_id?: string | undefined;
31391
+ display_name: string;
31392
+ code?: (string | undefined) | null;
31393
+ card_number?: (string | undefined) | null;
31394
+ is_issued?: boolean | undefined;
31395
+ issued_at?: (string | undefined) | null;
31396
+ access_method: 'code' | 'card' | 'mobile_key';
31397
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
31398
+ external_type_display_name?: string | undefined;
31399
+ created_at: string;
31400
+ workspace_id: string;
31401
+ starts_at?: string | undefined;
31402
+ ends_at?: string | undefined;
31403
+ errors: Array<{
31404
+ error_code: string;
31405
+ message: string;
31406
+ }>;
31407
+ warnings: Array<{
31408
+ warning_code: string;
31409
+ message: string;
31410
+ }>;
31411
+ is_multi_phone_sync_credential?: boolean | undefined;
31412
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
31413
+ latest_desired_state_synced_with_provider_at?: string | undefined;
31414
+ visionline_metadata?: {
31415
+ card_function_type: 'guest' | 'staff';
31416
+ joiner_acs_credential_ids?: string[] | undefined;
31417
+ guest_acs_entrance_ids?: string[] | undefined;
31418
+ common_acs_entrance_ids?: string[] | undefined;
31419
+ is_valid?: boolean | undefined;
31420
+ auto_join?: boolean | undefined;
31421
+ card_id?: string | undefined;
31422
+ credential_id?: string | undefined;
31423
+ } | undefined;
31424
+ is_managed: true;
31425
+ } | {
31426
+ acs_credential_id: string;
31427
+ acs_user_id?: string | undefined;
31428
+ acs_credential_pool_id?: string | undefined;
31429
+ acs_system_id: string;
31430
+ parent_acs_credential_id?: string | undefined;
31431
+ display_name: string;
31432
+ code?: (string | undefined) | null;
31433
+ card_number?: (string | undefined) | null;
31434
+ is_issued?: boolean | undefined;
31435
+ issued_at?: (string | undefined) | null;
31436
+ access_method: 'code' | 'card' | 'mobile_key';
31437
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
31438
+ external_type_display_name?: string | undefined;
31439
+ created_at: string;
31440
+ workspace_id: string;
31441
+ starts_at?: string | undefined;
31442
+ ends_at?: string | undefined;
31443
+ errors: Array<{
31444
+ error_code: string;
31445
+ message: string;
31446
+ }>;
31447
+ warnings: Array<{
31448
+ warning_code: string;
31449
+ message: string;
31450
+ }>;
31451
+ is_multi_phone_sync_credential?: boolean | undefined;
31452
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
31453
+ latest_desired_state_synced_with_provider_at?: string | undefined;
31454
+ visionline_metadata?: {
31455
+ card_function_type: 'guest' | 'staff';
31456
+ joiner_acs_credential_ids?: string[] | undefined;
31457
+ guest_acs_entrance_ids?: string[] | undefined;
31458
+ common_acs_entrance_ids?: string[] | undefined;
31459
+ is_valid?: boolean | undefined;
31460
+ auto_join?: boolean | undefined;
31461
+ card_id?: string | undefined;
31462
+ credential_id?: string | undefined;
31463
+ } | undefined;
31464
+ is_managed: false;
31465
+ }) | null;
30130
31466
  };
30131
31467
  } | {
30132
31468
  /** The ID of the action attempt. */
30133
31469
  action_attempt_id: string;
30134
31470
  status: 'error';
30135
31471
  result: null;
30136
- action_type: 'READ_CARD';
31472
+ action_type: 'SCAN_CARD';
30137
31473
  error: {
30138
31474
  type: 'no_card_on_encoder';
30139
31475
  message: string;
@@ -30708,23 +32044,128 @@ interface Routes {
30708
32044
  status: 'pending';
30709
32045
  result: null;
30710
32046
  error: null;
30711
- action_type: 'READ_CARD';
32047
+ action_type: 'SCAN_CARD';
30712
32048
  } | {
30713
32049
  /** The ID of the action attempt. */
30714
32050
  action_attempt_id: string;
30715
32051
  status: 'success';
30716
32052
  error: null;
30717
- action_type: 'READ_CARD';
32053
+ action_type: 'SCAN_CARD';
30718
32054
  result: {
30719
- /** A number or string that physically identifies this card. */
30720
- card_number: string | null;
32055
+ /** Snapshot of the card data read from the physical encoder. */
32056
+ acs_credential_on_encoder: {
32057
+ /** Date and time the credential was created. */
32058
+ created_at: string;
32059
+ is_issued: boolean | null;
32060
+ /** Date and time the credential will become useable. */
32061
+ starts_at: string | null;
32062
+ /** Date and time the credential will stop being useable. */
32063
+ ends_at: string | null;
32064
+ /** A number or string that physically identifies this card. */
32065
+ card_number: string | null;
32066
+ visionline_metadata?: {
32067
+ card_id: string;
32068
+ card_function_type: 'guest' | 'staff';
32069
+ cancelled: boolean;
32070
+ discarded: boolean;
32071
+ expired: boolean;
32072
+ overwritten: boolean;
32073
+ overridden?: boolean | undefined;
32074
+ pending_auto_update: boolean;
32075
+ card_format: 'TLCode' | 'rfid48';
32076
+ card_holder?: string | undefined;
32077
+ number_of_issued_cards: number;
32078
+ } | undefined;
32079
+ };
32080
+ /** Matching acs_credential currently encoded on this card. */
32081
+ acs_credential_on_seam: ({
32082
+ acs_credential_id: string;
32083
+ acs_user_id?: string | undefined;
32084
+ acs_credential_pool_id?: string | undefined;
32085
+ acs_system_id: string;
32086
+ parent_acs_credential_id?: string | undefined;
32087
+ display_name: string;
32088
+ code?: (string | undefined) | null;
32089
+ card_number?: (string | undefined) | null;
32090
+ is_issued?: boolean | undefined;
32091
+ issued_at?: (string | undefined) | null;
32092
+ access_method: 'code' | 'card' | 'mobile_key';
32093
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
32094
+ external_type_display_name?: string | undefined;
32095
+ created_at: string;
32096
+ workspace_id: string;
32097
+ starts_at?: string | undefined;
32098
+ ends_at?: string | undefined;
32099
+ errors: Array<{
32100
+ error_code: string;
32101
+ message: string;
32102
+ }>;
32103
+ warnings: Array<{
32104
+ warning_code: string;
32105
+ message: string;
32106
+ }>;
32107
+ is_multi_phone_sync_credential?: boolean | undefined;
32108
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
32109
+ latest_desired_state_synced_with_provider_at?: string | undefined;
32110
+ visionline_metadata?: {
32111
+ card_function_type: 'guest' | 'staff';
32112
+ joiner_acs_credential_ids?: string[] | undefined;
32113
+ guest_acs_entrance_ids?: string[] | undefined;
32114
+ common_acs_entrance_ids?: string[] | undefined;
32115
+ is_valid?: boolean | undefined;
32116
+ auto_join?: boolean | undefined;
32117
+ card_id?: string | undefined;
32118
+ credential_id?: string | undefined;
32119
+ } | undefined;
32120
+ is_managed: true;
32121
+ } | {
32122
+ acs_credential_id: string;
32123
+ acs_user_id?: string | undefined;
32124
+ acs_credential_pool_id?: string | undefined;
32125
+ acs_system_id: string;
32126
+ parent_acs_credential_id?: string | undefined;
32127
+ display_name: string;
32128
+ code?: (string | undefined) | null;
32129
+ card_number?: (string | undefined) | null;
32130
+ is_issued?: boolean | undefined;
32131
+ issued_at?: (string | undefined) | null;
32132
+ access_method: 'code' | 'card' | 'mobile_key';
32133
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
32134
+ external_type_display_name?: string | undefined;
32135
+ created_at: string;
32136
+ workspace_id: string;
32137
+ starts_at?: string | undefined;
32138
+ ends_at?: string | undefined;
32139
+ errors: Array<{
32140
+ error_code: string;
32141
+ message: string;
32142
+ }>;
32143
+ warnings: Array<{
32144
+ warning_code: string;
32145
+ message: string;
32146
+ }>;
32147
+ is_multi_phone_sync_credential?: boolean | undefined;
32148
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
32149
+ latest_desired_state_synced_with_provider_at?: string | undefined;
32150
+ visionline_metadata?: {
32151
+ card_function_type: 'guest' | 'staff';
32152
+ joiner_acs_credential_ids?: string[] | undefined;
32153
+ guest_acs_entrance_ids?: string[] | undefined;
32154
+ common_acs_entrance_ids?: string[] | undefined;
32155
+ is_valid?: boolean | undefined;
32156
+ auto_join?: boolean | undefined;
32157
+ card_id?: string | undefined;
32158
+ credential_id?: string | undefined;
32159
+ } | undefined;
32160
+ is_managed: false;
32161
+ }) | null;
30721
32162
  };
30722
32163
  } | {
30723
32164
  /** The ID of the action attempt. */
30724
32165
  action_attempt_id: string;
30725
32166
  status: 'error';
30726
32167
  result: null;
30727
- action_type: 'READ_CARD';
32168
+ action_type: 'SCAN_CARD';
30728
32169
  error: {
30729
32170
  type: 'no_card_on_encoder';
30730
32171
  message: string;
@@ -32043,23 +33484,128 @@ interface Routes {
32043
33484
  status: 'pending';
32044
33485
  result: null;
32045
33486
  error: null;
32046
- action_type: 'READ_CARD';
33487
+ action_type: 'SCAN_CARD';
32047
33488
  } | {
32048
33489
  /** The ID of the action attempt. */
32049
33490
  action_attempt_id: string;
32050
33491
  status: 'success';
32051
33492
  error: null;
32052
- action_type: 'READ_CARD';
33493
+ action_type: 'SCAN_CARD';
32053
33494
  result: {
32054
- /** A number or string that physically identifies this card. */
32055
- card_number: string | null;
33495
+ /** Snapshot of the card data read from the physical encoder. */
33496
+ acs_credential_on_encoder: {
33497
+ /** Date and time the credential was created. */
33498
+ created_at: string;
33499
+ is_issued: boolean | null;
33500
+ /** Date and time the credential will become useable. */
33501
+ starts_at: string | null;
33502
+ /** Date and time the credential will stop being useable. */
33503
+ ends_at: string | null;
33504
+ /** A number or string that physically identifies this card. */
33505
+ card_number: string | null;
33506
+ visionline_metadata?: {
33507
+ card_id: string;
33508
+ card_function_type: 'guest' | 'staff';
33509
+ cancelled: boolean;
33510
+ discarded: boolean;
33511
+ expired: boolean;
33512
+ overwritten: boolean;
33513
+ overridden?: boolean | undefined;
33514
+ pending_auto_update: boolean;
33515
+ card_format: 'TLCode' | 'rfid48';
33516
+ card_holder?: string | undefined;
33517
+ number_of_issued_cards: number;
33518
+ } | undefined;
33519
+ };
33520
+ /** Matching acs_credential currently encoded on this card. */
33521
+ acs_credential_on_seam: ({
33522
+ acs_credential_id: string;
33523
+ acs_user_id?: string | undefined;
33524
+ acs_credential_pool_id?: string | undefined;
33525
+ acs_system_id: string;
33526
+ parent_acs_credential_id?: string | undefined;
33527
+ display_name: string;
33528
+ code?: (string | undefined) | null;
33529
+ card_number?: (string | undefined) | null;
33530
+ is_issued?: boolean | undefined;
33531
+ issued_at?: (string | undefined) | null;
33532
+ access_method: 'code' | 'card' | 'mobile_key';
33533
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
33534
+ external_type_display_name?: string | undefined;
33535
+ created_at: string;
33536
+ workspace_id: string;
33537
+ starts_at?: string | undefined;
33538
+ ends_at?: string | undefined;
33539
+ errors: Array<{
33540
+ error_code: string;
33541
+ message: string;
33542
+ }>;
33543
+ warnings: Array<{
33544
+ warning_code: string;
33545
+ message: string;
33546
+ }>;
33547
+ is_multi_phone_sync_credential?: boolean | undefined;
33548
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
33549
+ latest_desired_state_synced_with_provider_at?: string | undefined;
33550
+ visionline_metadata?: {
33551
+ card_function_type: 'guest' | 'staff';
33552
+ joiner_acs_credential_ids?: string[] | undefined;
33553
+ guest_acs_entrance_ids?: string[] | undefined;
33554
+ common_acs_entrance_ids?: string[] | undefined;
33555
+ is_valid?: boolean | undefined;
33556
+ auto_join?: boolean | undefined;
33557
+ card_id?: string | undefined;
33558
+ credential_id?: string | undefined;
33559
+ } | undefined;
33560
+ is_managed: true;
33561
+ } | {
33562
+ acs_credential_id: string;
33563
+ acs_user_id?: string | undefined;
33564
+ acs_credential_pool_id?: string | undefined;
33565
+ acs_system_id: string;
33566
+ parent_acs_credential_id?: string | undefined;
33567
+ display_name: string;
33568
+ code?: (string | undefined) | null;
33569
+ card_number?: (string | undefined) | null;
33570
+ is_issued?: boolean | undefined;
33571
+ issued_at?: (string | undefined) | null;
33572
+ access_method: 'code' | 'card' | 'mobile_key';
33573
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
33574
+ external_type_display_name?: string | undefined;
33575
+ created_at: string;
33576
+ workspace_id: string;
33577
+ starts_at?: string | undefined;
33578
+ ends_at?: string | undefined;
33579
+ errors: Array<{
33580
+ error_code: string;
33581
+ message: string;
33582
+ }>;
33583
+ warnings: Array<{
33584
+ warning_code: string;
33585
+ message: string;
33586
+ }>;
33587
+ is_multi_phone_sync_credential?: boolean | undefined;
33588
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
33589
+ latest_desired_state_synced_with_provider_at?: string | undefined;
33590
+ visionline_metadata?: {
33591
+ card_function_type: 'guest' | 'staff';
33592
+ joiner_acs_credential_ids?: string[] | undefined;
33593
+ guest_acs_entrance_ids?: string[] | undefined;
33594
+ common_acs_entrance_ids?: string[] | undefined;
33595
+ is_valid?: boolean | undefined;
33596
+ auto_join?: boolean | undefined;
33597
+ card_id?: string | undefined;
33598
+ credential_id?: string | undefined;
33599
+ } | undefined;
33600
+ is_managed: false;
33601
+ }) | null;
32056
33602
  };
32057
33603
  } | {
32058
33604
  /** The ID of the action attempt. */
32059
33605
  action_attempt_id: string;
32060
33606
  status: 'error';
32061
33607
  result: null;
32062
- action_type: 'READ_CARD';
33608
+ action_type: 'SCAN_CARD';
32063
33609
  error: {
32064
33610
  type: 'no_card_on_encoder';
32065
33611
  message: string;
@@ -32891,8 +34437,8 @@ interface Routes {
32891
34437
  }>;
32892
34438
  };
32893
34439
  };
32894
- '/acs/encoders/read_card': {
32895
- route: '/acs/encoders/read_card';
34440
+ '/acs/encoders/scan_card': {
34441
+ route: '/acs/encoders/scan_card';
32896
34442
  method: 'POST';
32897
34443
  queryParams: {};
32898
34444
  jsonBody: {};
@@ -32959,23 +34505,128 @@ interface Routes {
32959
34505
  status: 'pending';
32960
34506
  result: null;
32961
34507
  error: null;
32962
- action_type: 'READ_CARD';
34508
+ action_type: 'SCAN_CARD';
32963
34509
  } | {
32964
34510
  /** The ID of the action attempt. */
32965
34511
  action_attempt_id: string;
32966
34512
  status: 'success';
32967
34513
  error: null;
32968
- action_type: 'READ_CARD';
34514
+ action_type: 'SCAN_CARD';
32969
34515
  result: {
32970
- /** A number or string that physically identifies this card. */
32971
- card_number: string | null;
34516
+ /** Snapshot of the card data read from the physical encoder. */
34517
+ acs_credential_on_encoder: {
34518
+ /** Date and time the credential was created. */
34519
+ created_at: string;
34520
+ is_issued: boolean | null;
34521
+ /** Date and time the credential will become useable. */
34522
+ starts_at: string | null;
34523
+ /** Date and time the credential will stop being useable. */
34524
+ ends_at: string | null;
34525
+ /** A number or string that physically identifies this card. */
34526
+ card_number: string | null;
34527
+ visionline_metadata?: {
34528
+ card_id: string;
34529
+ card_function_type: 'guest' | 'staff';
34530
+ cancelled: boolean;
34531
+ discarded: boolean;
34532
+ expired: boolean;
34533
+ overwritten: boolean;
34534
+ overridden?: boolean | undefined;
34535
+ pending_auto_update: boolean;
34536
+ card_format: 'TLCode' | 'rfid48';
34537
+ card_holder?: string | undefined;
34538
+ number_of_issued_cards: number;
34539
+ } | undefined;
34540
+ };
34541
+ /** Matching acs_credential currently encoded on this card. */
34542
+ acs_credential_on_seam: ({
34543
+ acs_credential_id: string;
34544
+ acs_user_id?: string | undefined;
34545
+ acs_credential_pool_id?: string | undefined;
34546
+ acs_system_id: string;
34547
+ parent_acs_credential_id?: string | undefined;
34548
+ display_name: string;
34549
+ code?: (string | undefined) | null;
34550
+ card_number?: (string | undefined) | null;
34551
+ is_issued?: boolean | undefined;
34552
+ issued_at?: (string | undefined) | null;
34553
+ access_method: 'code' | 'card' | 'mobile_key';
34554
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
34555
+ external_type_display_name?: string | undefined;
34556
+ created_at: string;
34557
+ workspace_id: string;
34558
+ starts_at?: string | undefined;
34559
+ ends_at?: string | undefined;
34560
+ errors: Array<{
34561
+ error_code: string;
34562
+ message: string;
34563
+ }>;
34564
+ warnings: Array<{
34565
+ warning_code: string;
34566
+ message: string;
34567
+ }>;
34568
+ is_multi_phone_sync_credential?: boolean | undefined;
34569
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
34570
+ latest_desired_state_synced_with_provider_at?: string | undefined;
34571
+ visionline_metadata?: {
34572
+ card_function_type: 'guest' | 'staff';
34573
+ joiner_acs_credential_ids?: string[] | undefined;
34574
+ guest_acs_entrance_ids?: string[] | undefined;
34575
+ common_acs_entrance_ids?: string[] | undefined;
34576
+ is_valid?: boolean | undefined;
34577
+ auto_join?: boolean | undefined;
34578
+ card_id?: string | undefined;
34579
+ credential_id?: string | undefined;
34580
+ } | undefined;
34581
+ is_managed: true;
34582
+ } | {
34583
+ acs_credential_id: string;
34584
+ acs_user_id?: string | undefined;
34585
+ acs_credential_pool_id?: string | undefined;
34586
+ acs_system_id: string;
34587
+ parent_acs_credential_id?: string | undefined;
34588
+ display_name: string;
34589
+ code?: (string | undefined) | null;
34590
+ card_number?: (string | undefined) | null;
34591
+ is_issued?: boolean | undefined;
34592
+ issued_at?: (string | undefined) | null;
34593
+ access_method: 'code' | 'card' | 'mobile_key';
34594
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
34595
+ external_type_display_name?: string | undefined;
34596
+ created_at: string;
34597
+ workspace_id: string;
34598
+ starts_at?: string | undefined;
34599
+ ends_at?: string | undefined;
34600
+ errors: Array<{
34601
+ error_code: string;
34602
+ message: string;
34603
+ }>;
34604
+ warnings: Array<{
34605
+ warning_code: string;
34606
+ message: string;
34607
+ }>;
34608
+ is_multi_phone_sync_credential?: boolean | undefined;
34609
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
34610
+ latest_desired_state_synced_with_provider_at?: string | undefined;
34611
+ visionline_metadata?: {
34612
+ card_function_type: 'guest' | 'staff';
34613
+ joiner_acs_credential_ids?: string[] | undefined;
34614
+ guest_acs_entrance_ids?: string[] | undefined;
34615
+ common_acs_entrance_ids?: string[] | undefined;
34616
+ is_valid?: boolean | undefined;
34617
+ auto_join?: boolean | undefined;
34618
+ card_id?: string | undefined;
34619
+ credential_id?: string | undefined;
34620
+ } | undefined;
34621
+ is_managed: false;
34622
+ }) | null;
32972
34623
  };
32973
34624
  } | {
32974
34625
  /** The ID of the action attempt. */
32975
34626
  action_attempt_id: string;
32976
34627
  status: 'error';
32977
34628
  result: null;
32978
- action_type: 'READ_CARD';
34629
+ action_type: 'SCAN_CARD';
32979
34630
  error: {
32980
34631
  type: 'no_card_on_encoder';
32981
34632
  message: string;
@@ -34570,23 +36221,128 @@ interface Routes {
34570
36221
  status: 'pending';
34571
36222
  result: null;
34572
36223
  error: null;
34573
- action_type: 'READ_CARD';
36224
+ action_type: 'SCAN_CARD';
34574
36225
  } | {
34575
36226
  /** The ID of the action attempt. */
34576
36227
  action_attempt_id: string;
34577
36228
  status: 'success';
34578
36229
  error: null;
34579
- action_type: 'READ_CARD';
36230
+ action_type: 'SCAN_CARD';
34580
36231
  result: {
34581
- /** A number or string that physically identifies this card. */
34582
- card_number: string | null;
36232
+ /** Snapshot of the card data read from the physical encoder. */
36233
+ acs_credential_on_encoder: {
36234
+ /** Date and time the credential was created. */
36235
+ created_at: string;
36236
+ is_issued: boolean | null;
36237
+ /** Date and time the credential will become useable. */
36238
+ starts_at: string | null;
36239
+ /** Date and time the credential will stop being useable. */
36240
+ ends_at: string | null;
36241
+ /** A number or string that physically identifies this card. */
36242
+ card_number: string | null;
36243
+ visionline_metadata?: {
36244
+ card_id: string;
36245
+ card_function_type: 'guest' | 'staff';
36246
+ cancelled: boolean;
36247
+ discarded: boolean;
36248
+ expired: boolean;
36249
+ overwritten: boolean;
36250
+ overridden?: boolean | undefined;
36251
+ pending_auto_update: boolean;
36252
+ card_format: 'TLCode' | 'rfid48';
36253
+ card_holder?: string | undefined;
36254
+ number_of_issued_cards: number;
36255
+ } | undefined;
36256
+ };
36257
+ /** Matching acs_credential currently encoded on this card. */
36258
+ acs_credential_on_seam: ({
36259
+ acs_credential_id: string;
36260
+ acs_user_id?: string | undefined;
36261
+ acs_credential_pool_id?: string | undefined;
36262
+ acs_system_id: string;
36263
+ parent_acs_credential_id?: string | undefined;
36264
+ display_name: string;
36265
+ code?: (string | undefined) | null;
36266
+ card_number?: (string | undefined) | null;
36267
+ is_issued?: boolean | undefined;
36268
+ issued_at?: (string | undefined) | null;
36269
+ access_method: 'code' | 'card' | 'mobile_key';
36270
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
36271
+ external_type_display_name?: string | undefined;
36272
+ created_at: string;
36273
+ workspace_id: string;
36274
+ starts_at?: string | undefined;
36275
+ ends_at?: string | undefined;
36276
+ errors: Array<{
36277
+ error_code: string;
36278
+ message: string;
36279
+ }>;
36280
+ warnings: Array<{
36281
+ warning_code: string;
36282
+ message: string;
36283
+ }>;
36284
+ is_multi_phone_sync_credential?: boolean | undefined;
36285
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
36286
+ latest_desired_state_synced_with_provider_at?: string | undefined;
36287
+ visionline_metadata?: {
36288
+ card_function_type: 'guest' | 'staff';
36289
+ joiner_acs_credential_ids?: string[] | undefined;
36290
+ guest_acs_entrance_ids?: string[] | undefined;
36291
+ common_acs_entrance_ids?: string[] | undefined;
36292
+ is_valid?: boolean | undefined;
36293
+ auto_join?: boolean | undefined;
36294
+ card_id?: string | undefined;
36295
+ credential_id?: string | undefined;
36296
+ } | undefined;
36297
+ is_managed: true;
36298
+ } | {
36299
+ acs_credential_id: string;
36300
+ acs_user_id?: string | undefined;
36301
+ acs_credential_pool_id?: string | undefined;
36302
+ acs_system_id: string;
36303
+ parent_acs_credential_id?: string | undefined;
36304
+ display_name: string;
36305
+ code?: (string | undefined) | null;
36306
+ card_number?: (string | undefined) | null;
36307
+ is_issued?: boolean | undefined;
36308
+ issued_at?: (string | undefined) | null;
36309
+ access_method: 'code' | 'card' | 'mobile_key';
36310
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
36311
+ external_type_display_name?: string | undefined;
36312
+ created_at: string;
36313
+ workspace_id: string;
36314
+ starts_at?: string | undefined;
36315
+ ends_at?: string | undefined;
36316
+ errors: Array<{
36317
+ error_code: string;
36318
+ message: string;
36319
+ }>;
36320
+ warnings: Array<{
36321
+ warning_code: string;
36322
+ message: string;
36323
+ }>;
36324
+ is_multi_phone_sync_credential?: boolean | undefined;
36325
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
36326
+ latest_desired_state_synced_with_provider_at?: string | undefined;
36327
+ visionline_metadata?: {
36328
+ card_function_type: 'guest' | 'staff';
36329
+ joiner_acs_credential_ids?: string[] | undefined;
36330
+ guest_acs_entrance_ids?: string[] | undefined;
36331
+ common_acs_entrance_ids?: string[] | undefined;
36332
+ is_valid?: boolean | undefined;
36333
+ auto_join?: boolean | undefined;
36334
+ card_id?: string | undefined;
36335
+ credential_id?: string | undefined;
36336
+ } | undefined;
36337
+ is_managed: false;
36338
+ }) | null;
34583
36339
  };
34584
36340
  } | {
34585
36341
  /** The ID of the action attempt. */
34586
36342
  action_attempt_id: string;
34587
36343
  status: 'error';
34588
36344
  result: null;
34589
- action_type: 'READ_CARD';
36345
+ action_type: 'SCAN_CARD';
34590
36346
  error: {
34591
36347
  type: 'no_card_on_encoder';
34592
36348
  message: string;
@@ -35023,23 +36779,128 @@ interface Routes {
35023
36779
  status: 'pending';
35024
36780
  result: null;
35025
36781
  error: null;
35026
- action_type: 'READ_CARD';
36782
+ action_type: 'SCAN_CARD';
35027
36783
  } | {
35028
36784
  /** The ID of the action attempt. */
35029
36785
  action_attempt_id: string;
35030
36786
  status: 'success';
35031
36787
  error: null;
35032
- action_type: 'READ_CARD';
36788
+ action_type: 'SCAN_CARD';
35033
36789
  result: {
35034
- /** A number or string that physically identifies this card. */
35035
- card_number: string | null;
36790
+ /** Snapshot of the card data read from the physical encoder. */
36791
+ acs_credential_on_encoder: {
36792
+ /** Date and time the credential was created. */
36793
+ created_at: string;
36794
+ is_issued: boolean | null;
36795
+ /** Date and time the credential will become useable. */
36796
+ starts_at: string | null;
36797
+ /** Date and time the credential will stop being useable. */
36798
+ ends_at: string | null;
36799
+ /** A number or string that physically identifies this card. */
36800
+ card_number: string | null;
36801
+ visionline_metadata?: {
36802
+ card_id: string;
36803
+ card_function_type: 'guest' | 'staff';
36804
+ cancelled: boolean;
36805
+ discarded: boolean;
36806
+ expired: boolean;
36807
+ overwritten: boolean;
36808
+ overridden?: boolean | undefined;
36809
+ pending_auto_update: boolean;
36810
+ card_format: 'TLCode' | 'rfid48';
36811
+ card_holder?: string | undefined;
36812
+ number_of_issued_cards: number;
36813
+ } | undefined;
36814
+ };
36815
+ /** Matching acs_credential currently encoded on this card. */
36816
+ acs_credential_on_seam: ({
36817
+ acs_credential_id: string;
36818
+ acs_user_id?: string | undefined;
36819
+ acs_credential_pool_id?: string | undefined;
36820
+ acs_system_id: string;
36821
+ parent_acs_credential_id?: string | undefined;
36822
+ display_name: string;
36823
+ code?: (string | undefined) | null;
36824
+ card_number?: (string | undefined) | null;
36825
+ is_issued?: boolean | undefined;
36826
+ issued_at?: (string | undefined) | null;
36827
+ access_method: 'code' | 'card' | 'mobile_key';
36828
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
36829
+ external_type_display_name?: string | undefined;
36830
+ created_at: string;
36831
+ workspace_id: string;
36832
+ starts_at?: string | undefined;
36833
+ ends_at?: string | undefined;
36834
+ errors: Array<{
36835
+ error_code: string;
36836
+ message: string;
36837
+ }>;
36838
+ warnings: Array<{
36839
+ warning_code: string;
36840
+ message: string;
36841
+ }>;
36842
+ is_multi_phone_sync_credential?: boolean | undefined;
36843
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
36844
+ latest_desired_state_synced_with_provider_at?: string | undefined;
36845
+ visionline_metadata?: {
36846
+ card_function_type: 'guest' | 'staff';
36847
+ joiner_acs_credential_ids?: string[] | undefined;
36848
+ guest_acs_entrance_ids?: string[] | undefined;
36849
+ common_acs_entrance_ids?: string[] | undefined;
36850
+ is_valid?: boolean | undefined;
36851
+ auto_join?: boolean | undefined;
36852
+ card_id?: string | undefined;
36853
+ credential_id?: string | undefined;
36854
+ } | undefined;
36855
+ is_managed: true;
36856
+ } | {
36857
+ acs_credential_id: string;
36858
+ acs_user_id?: string | undefined;
36859
+ acs_credential_pool_id?: string | undefined;
36860
+ acs_system_id: string;
36861
+ parent_acs_credential_id?: string | undefined;
36862
+ display_name: string;
36863
+ code?: (string | undefined) | null;
36864
+ card_number?: (string | undefined) | null;
36865
+ is_issued?: boolean | undefined;
36866
+ issued_at?: (string | undefined) | null;
36867
+ access_method: 'code' | 'card' | 'mobile_key';
36868
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
36869
+ external_type_display_name?: string | undefined;
36870
+ created_at: string;
36871
+ workspace_id: string;
36872
+ starts_at?: string | undefined;
36873
+ ends_at?: string | undefined;
36874
+ errors: Array<{
36875
+ error_code: string;
36876
+ message: string;
36877
+ }>;
36878
+ warnings: Array<{
36879
+ warning_code: string;
36880
+ message: string;
36881
+ }>;
36882
+ is_multi_phone_sync_credential?: boolean | undefined;
36883
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
36884
+ latest_desired_state_synced_with_provider_at?: string | undefined;
36885
+ visionline_metadata?: {
36886
+ card_function_type: 'guest' | 'staff';
36887
+ joiner_acs_credential_ids?: string[] | undefined;
36888
+ guest_acs_entrance_ids?: string[] | undefined;
36889
+ common_acs_entrance_ids?: string[] | undefined;
36890
+ is_valid?: boolean | undefined;
36891
+ auto_join?: boolean | undefined;
36892
+ card_id?: string | undefined;
36893
+ credential_id?: string | undefined;
36894
+ } | undefined;
36895
+ is_managed: false;
36896
+ }) | null;
35036
36897
  };
35037
36898
  } | {
35038
36899
  /** The ID of the action attempt. */
35039
36900
  action_attempt_id: string;
35040
36901
  status: 'error';
35041
36902
  result: null;
35042
- action_type: 'READ_CARD';
36903
+ action_type: 'SCAN_CARD';
35043
36904
  error: {
35044
36905
  type: 'no_card_on_encoder';
35045
36906
  message: string;
@@ -39022,23 +40883,128 @@ interface Routes {
39022
40883
  status: 'pending';
39023
40884
  result: null;
39024
40885
  error: null;
39025
- action_type: 'READ_CARD';
40886
+ action_type: 'SCAN_CARD';
39026
40887
  } | {
39027
40888
  /** The ID of the action attempt. */
39028
40889
  action_attempt_id: string;
39029
40890
  status: 'success';
39030
40891
  error: null;
39031
- action_type: 'READ_CARD';
40892
+ action_type: 'SCAN_CARD';
39032
40893
  result: {
39033
- /** A number or string that physically identifies this card. */
39034
- card_number: string | null;
40894
+ /** Snapshot of the card data read from the physical encoder. */
40895
+ acs_credential_on_encoder: {
40896
+ /** Date and time the credential was created. */
40897
+ created_at: string;
40898
+ is_issued: boolean | null;
40899
+ /** Date and time the credential will become useable. */
40900
+ starts_at: string | null;
40901
+ /** Date and time the credential will stop being useable. */
40902
+ ends_at: string | null;
40903
+ /** A number or string that physically identifies this card. */
40904
+ card_number: string | null;
40905
+ visionline_metadata?: {
40906
+ card_id: string;
40907
+ card_function_type: 'guest' | 'staff';
40908
+ cancelled: boolean;
40909
+ discarded: boolean;
40910
+ expired: boolean;
40911
+ overwritten: boolean;
40912
+ overridden?: boolean | undefined;
40913
+ pending_auto_update: boolean;
40914
+ card_format: 'TLCode' | 'rfid48';
40915
+ card_holder?: string | undefined;
40916
+ number_of_issued_cards: number;
40917
+ } | undefined;
40918
+ };
40919
+ /** Matching acs_credential currently encoded on this card. */
40920
+ acs_credential_on_seam: ({
40921
+ acs_credential_id: string;
40922
+ acs_user_id?: string | undefined;
40923
+ acs_credential_pool_id?: string | undefined;
40924
+ acs_system_id: string;
40925
+ parent_acs_credential_id?: string | undefined;
40926
+ display_name: string;
40927
+ code?: (string | undefined) | null;
40928
+ card_number?: (string | undefined) | null;
40929
+ is_issued?: boolean | undefined;
40930
+ issued_at?: (string | undefined) | null;
40931
+ access_method: 'code' | 'card' | 'mobile_key';
40932
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
40933
+ external_type_display_name?: string | undefined;
40934
+ created_at: string;
40935
+ workspace_id: string;
40936
+ starts_at?: string | undefined;
40937
+ ends_at?: string | undefined;
40938
+ errors: Array<{
40939
+ error_code: string;
40940
+ message: string;
40941
+ }>;
40942
+ warnings: Array<{
40943
+ warning_code: string;
40944
+ message: string;
40945
+ }>;
40946
+ is_multi_phone_sync_credential?: boolean | undefined;
40947
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
40948
+ latest_desired_state_synced_with_provider_at?: string | undefined;
40949
+ visionline_metadata?: {
40950
+ card_function_type: 'guest' | 'staff';
40951
+ joiner_acs_credential_ids?: string[] | undefined;
40952
+ guest_acs_entrance_ids?: string[] | undefined;
40953
+ common_acs_entrance_ids?: string[] | undefined;
40954
+ is_valid?: boolean | undefined;
40955
+ auto_join?: boolean | undefined;
40956
+ card_id?: string | undefined;
40957
+ credential_id?: string | undefined;
40958
+ } | undefined;
40959
+ is_managed: true;
40960
+ } | {
40961
+ acs_credential_id: string;
40962
+ acs_user_id?: string | undefined;
40963
+ acs_credential_pool_id?: string | undefined;
40964
+ acs_system_id: string;
40965
+ parent_acs_credential_id?: string | undefined;
40966
+ display_name: string;
40967
+ code?: (string | undefined) | null;
40968
+ card_number?: (string | undefined) | null;
40969
+ is_issued?: boolean | undefined;
40970
+ issued_at?: (string | undefined) | null;
40971
+ access_method: 'code' | 'card' | 'mobile_key';
40972
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
40973
+ external_type_display_name?: string | undefined;
40974
+ created_at: string;
40975
+ workspace_id: string;
40976
+ starts_at?: string | undefined;
40977
+ ends_at?: string | undefined;
40978
+ errors: Array<{
40979
+ error_code: string;
40980
+ message: string;
40981
+ }>;
40982
+ warnings: Array<{
40983
+ warning_code: string;
40984
+ message: string;
40985
+ }>;
40986
+ is_multi_phone_sync_credential?: boolean | undefined;
40987
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
40988
+ latest_desired_state_synced_with_provider_at?: string | undefined;
40989
+ visionline_metadata?: {
40990
+ card_function_type: 'guest' | 'staff';
40991
+ joiner_acs_credential_ids?: string[] | undefined;
40992
+ guest_acs_entrance_ids?: string[] | undefined;
40993
+ common_acs_entrance_ids?: string[] | undefined;
40994
+ is_valid?: boolean | undefined;
40995
+ auto_join?: boolean | undefined;
40996
+ card_id?: string | undefined;
40997
+ credential_id?: string | undefined;
40998
+ } | undefined;
40999
+ is_managed: false;
41000
+ }) | null;
39035
41001
  };
39036
41002
  } | {
39037
41003
  /** The ID of the action attempt. */
39038
41004
  action_attempt_id: string;
39039
41005
  status: 'error';
39040
41006
  result: null;
39041
- action_type: 'READ_CARD';
41007
+ action_type: 'SCAN_CARD';
39042
41008
  error: {
39043
41009
  type: 'no_card_on_encoder';
39044
41010
  message: string;
@@ -39476,23 +41442,128 @@ interface Routes {
39476
41442
  status: 'pending';
39477
41443
  result: null;
39478
41444
  error: null;
39479
- action_type: 'READ_CARD';
41445
+ action_type: 'SCAN_CARD';
39480
41446
  } | {
39481
41447
  /** The ID of the action attempt. */
39482
41448
  action_attempt_id: string;
39483
41449
  status: 'success';
39484
41450
  error: null;
39485
- action_type: 'READ_CARD';
41451
+ action_type: 'SCAN_CARD';
39486
41452
  result: {
39487
- /** A number or string that physically identifies this card. */
39488
- card_number: string | null;
41453
+ /** Snapshot of the card data read from the physical encoder. */
41454
+ acs_credential_on_encoder: {
41455
+ /** Date and time the credential was created. */
41456
+ created_at: string;
41457
+ is_issued: boolean | null;
41458
+ /** Date and time the credential will become useable. */
41459
+ starts_at: string | null;
41460
+ /** Date and time the credential will stop being useable. */
41461
+ ends_at: string | null;
41462
+ /** A number or string that physically identifies this card. */
41463
+ card_number: string | null;
41464
+ visionline_metadata?: {
41465
+ card_id: string;
41466
+ card_function_type: 'guest' | 'staff';
41467
+ cancelled: boolean;
41468
+ discarded: boolean;
41469
+ expired: boolean;
41470
+ overwritten: boolean;
41471
+ overridden?: boolean | undefined;
41472
+ pending_auto_update: boolean;
41473
+ card_format: 'TLCode' | 'rfid48';
41474
+ card_holder?: string | undefined;
41475
+ number_of_issued_cards: number;
41476
+ } | undefined;
41477
+ };
41478
+ /** Matching acs_credential currently encoded on this card. */
41479
+ acs_credential_on_seam: ({
41480
+ acs_credential_id: string;
41481
+ acs_user_id?: string | undefined;
41482
+ acs_credential_pool_id?: string | undefined;
41483
+ acs_system_id: string;
41484
+ parent_acs_credential_id?: string | undefined;
41485
+ display_name: string;
41486
+ code?: (string | undefined) | null;
41487
+ card_number?: (string | undefined) | null;
41488
+ is_issued?: boolean | undefined;
41489
+ issued_at?: (string | undefined) | null;
41490
+ access_method: 'code' | 'card' | 'mobile_key';
41491
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
41492
+ external_type_display_name?: string | undefined;
41493
+ created_at: string;
41494
+ workspace_id: string;
41495
+ starts_at?: string | undefined;
41496
+ ends_at?: string | undefined;
41497
+ errors: Array<{
41498
+ error_code: string;
41499
+ message: string;
41500
+ }>;
41501
+ warnings: Array<{
41502
+ warning_code: string;
41503
+ message: string;
41504
+ }>;
41505
+ is_multi_phone_sync_credential?: boolean | undefined;
41506
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
41507
+ latest_desired_state_synced_with_provider_at?: string | undefined;
41508
+ visionline_metadata?: {
41509
+ card_function_type: 'guest' | 'staff';
41510
+ joiner_acs_credential_ids?: string[] | undefined;
41511
+ guest_acs_entrance_ids?: string[] | undefined;
41512
+ common_acs_entrance_ids?: string[] | undefined;
41513
+ is_valid?: boolean | undefined;
41514
+ auto_join?: boolean | undefined;
41515
+ card_id?: string | undefined;
41516
+ credential_id?: string | undefined;
41517
+ } | undefined;
41518
+ is_managed: true;
41519
+ } | {
41520
+ acs_credential_id: string;
41521
+ acs_user_id?: string | undefined;
41522
+ acs_credential_pool_id?: string | undefined;
41523
+ acs_system_id: string;
41524
+ parent_acs_credential_id?: string | undefined;
41525
+ display_name: string;
41526
+ code?: (string | undefined) | null;
41527
+ card_number?: (string | undefined) | null;
41528
+ is_issued?: boolean | undefined;
41529
+ issued_at?: (string | undefined) | null;
41530
+ access_method: 'code' | 'card' | 'mobile_key';
41531
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
41532
+ external_type_display_name?: string | undefined;
41533
+ created_at: string;
41534
+ workspace_id: string;
41535
+ starts_at?: string | undefined;
41536
+ ends_at?: string | undefined;
41537
+ errors: Array<{
41538
+ error_code: string;
41539
+ message: string;
41540
+ }>;
41541
+ warnings: Array<{
41542
+ warning_code: string;
41543
+ message: string;
41544
+ }>;
41545
+ is_multi_phone_sync_credential?: boolean | undefined;
41546
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
41547
+ latest_desired_state_synced_with_provider_at?: string | undefined;
41548
+ visionline_metadata?: {
41549
+ card_function_type: 'guest' | 'staff';
41550
+ joiner_acs_credential_ids?: string[] | undefined;
41551
+ guest_acs_entrance_ids?: string[] | undefined;
41552
+ common_acs_entrance_ids?: string[] | undefined;
41553
+ is_valid?: boolean | undefined;
41554
+ auto_join?: boolean | undefined;
41555
+ card_id?: string | undefined;
41556
+ credential_id?: string | undefined;
41557
+ } | undefined;
41558
+ is_managed: false;
41559
+ }) | null;
39489
41560
  };
39490
41561
  } | {
39491
41562
  /** The ID of the action attempt. */
39492
41563
  action_attempt_id: string;
39493
41564
  status: 'error';
39494
41565
  result: null;
39495
- action_type: 'READ_CARD';
41566
+ action_type: 'SCAN_CARD';
39496
41567
  error: {
39497
41568
  type: 'no_card_on_encoder';
39498
41569
  message: string;
@@ -40872,23 +42943,128 @@ interface Routes {
40872
42943
  status: 'pending';
40873
42944
  result: null;
40874
42945
  error: null;
40875
- action_type: 'READ_CARD';
42946
+ action_type: 'SCAN_CARD';
40876
42947
  } | {
40877
42948
  /** The ID of the action attempt. */
40878
42949
  action_attempt_id: string;
40879
42950
  status: 'success';
40880
42951
  error: null;
40881
- action_type: 'READ_CARD';
42952
+ action_type: 'SCAN_CARD';
40882
42953
  result: {
40883
- /** A number or string that physically identifies this card. */
40884
- card_number: string | null;
42954
+ /** Snapshot of the card data read from the physical encoder. */
42955
+ acs_credential_on_encoder: {
42956
+ /** Date and time the credential was created. */
42957
+ created_at: string;
42958
+ is_issued: boolean | null;
42959
+ /** Date and time the credential will become useable. */
42960
+ starts_at: string | null;
42961
+ /** Date and time the credential will stop being useable. */
42962
+ ends_at: string | null;
42963
+ /** A number or string that physically identifies this card. */
42964
+ card_number: string | null;
42965
+ visionline_metadata?: {
42966
+ card_id: string;
42967
+ card_function_type: 'guest' | 'staff';
42968
+ cancelled: boolean;
42969
+ discarded: boolean;
42970
+ expired: boolean;
42971
+ overwritten: boolean;
42972
+ overridden?: boolean | undefined;
42973
+ pending_auto_update: boolean;
42974
+ card_format: 'TLCode' | 'rfid48';
42975
+ card_holder?: string | undefined;
42976
+ number_of_issued_cards: number;
42977
+ } | undefined;
42978
+ };
42979
+ /** Matching acs_credential currently encoded on this card. */
42980
+ acs_credential_on_seam: ({
42981
+ acs_credential_id: string;
42982
+ acs_user_id?: string | undefined;
42983
+ acs_credential_pool_id?: string | undefined;
42984
+ acs_system_id: string;
42985
+ parent_acs_credential_id?: string | undefined;
42986
+ display_name: string;
42987
+ code?: (string | undefined) | null;
42988
+ card_number?: (string | undefined) | null;
42989
+ is_issued?: boolean | undefined;
42990
+ issued_at?: (string | undefined) | null;
42991
+ access_method: 'code' | 'card' | 'mobile_key';
42992
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
42993
+ external_type_display_name?: string | undefined;
42994
+ created_at: string;
42995
+ workspace_id: string;
42996
+ starts_at?: string | undefined;
42997
+ ends_at?: string | undefined;
42998
+ errors: Array<{
42999
+ error_code: string;
43000
+ message: string;
43001
+ }>;
43002
+ warnings: Array<{
43003
+ warning_code: string;
43004
+ message: string;
43005
+ }>;
43006
+ is_multi_phone_sync_credential?: boolean | undefined;
43007
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
43008
+ latest_desired_state_synced_with_provider_at?: string | undefined;
43009
+ visionline_metadata?: {
43010
+ card_function_type: 'guest' | 'staff';
43011
+ joiner_acs_credential_ids?: string[] | undefined;
43012
+ guest_acs_entrance_ids?: string[] | undefined;
43013
+ common_acs_entrance_ids?: string[] | undefined;
43014
+ is_valid?: boolean | undefined;
43015
+ auto_join?: boolean | undefined;
43016
+ card_id?: string | undefined;
43017
+ credential_id?: string | undefined;
43018
+ } | undefined;
43019
+ is_managed: true;
43020
+ } | {
43021
+ acs_credential_id: string;
43022
+ acs_user_id?: string | undefined;
43023
+ acs_credential_pool_id?: string | undefined;
43024
+ acs_system_id: string;
43025
+ parent_acs_credential_id?: string | undefined;
43026
+ display_name: string;
43027
+ code?: (string | undefined) | null;
43028
+ card_number?: (string | undefined) | null;
43029
+ is_issued?: boolean | undefined;
43030
+ issued_at?: (string | undefined) | null;
43031
+ access_method: 'code' | 'card' | 'mobile_key';
43032
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
43033
+ external_type_display_name?: string | undefined;
43034
+ created_at: string;
43035
+ workspace_id: string;
43036
+ starts_at?: string | undefined;
43037
+ ends_at?: string | undefined;
43038
+ errors: Array<{
43039
+ error_code: string;
43040
+ message: string;
43041
+ }>;
43042
+ warnings: Array<{
43043
+ warning_code: string;
43044
+ message: string;
43045
+ }>;
43046
+ is_multi_phone_sync_credential?: boolean | undefined;
43047
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
43048
+ latest_desired_state_synced_with_provider_at?: string | undefined;
43049
+ visionline_metadata?: {
43050
+ card_function_type: 'guest' | 'staff';
43051
+ joiner_acs_credential_ids?: string[] | undefined;
43052
+ guest_acs_entrance_ids?: string[] | undefined;
43053
+ common_acs_entrance_ids?: string[] | undefined;
43054
+ is_valid?: boolean | undefined;
43055
+ auto_join?: boolean | undefined;
43056
+ card_id?: string | undefined;
43057
+ credential_id?: string | undefined;
43058
+ } | undefined;
43059
+ is_managed: false;
43060
+ }) | null;
40885
43061
  };
40886
43062
  } | {
40887
43063
  /** The ID of the action attempt. */
40888
43064
  action_attempt_id: string;
40889
43065
  status: 'error';
40890
43066
  result: null;
40891
- action_type: 'READ_CARD';
43067
+ action_type: 'SCAN_CARD';
40892
43068
  error: {
40893
43069
  type: 'no_card_on_encoder';
40894
43070
  message: string;
@@ -41336,23 +43512,128 @@ interface Routes {
41336
43512
  status: 'pending';
41337
43513
  result: null;
41338
43514
  error: null;
41339
- action_type: 'READ_CARD';
43515
+ action_type: 'SCAN_CARD';
41340
43516
  } | {
41341
43517
  /** The ID of the action attempt. */
41342
43518
  action_attempt_id: string;
41343
43519
  status: 'success';
41344
43520
  error: null;
41345
- action_type: 'READ_CARD';
43521
+ action_type: 'SCAN_CARD';
41346
43522
  result: {
41347
- /** A number or string that physically identifies this card. */
41348
- card_number: string | null;
43523
+ /** Snapshot of the card data read from the physical encoder. */
43524
+ acs_credential_on_encoder: {
43525
+ /** Date and time the credential was created. */
43526
+ created_at: string;
43527
+ is_issued: boolean | null;
43528
+ /** Date and time the credential will become useable. */
43529
+ starts_at: string | null;
43530
+ /** Date and time the credential will stop being useable. */
43531
+ ends_at: string | null;
43532
+ /** A number or string that physically identifies this card. */
43533
+ card_number: string | null;
43534
+ visionline_metadata?: {
43535
+ card_id: string;
43536
+ card_function_type: 'guest' | 'staff';
43537
+ cancelled: boolean;
43538
+ discarded: boolean;
43539
+ expired: boolean;
43540
+ overwritten: boolean;
43541
+ overridden?: boolean | undefined;
43542
+ pending_auto_update: boolean;
43543
+ card_format: 'TLCode' | 'rfid48';
43544
+ card_holder?: string | undefined;
43545
+ number_of_issued_cards: number;
43546
+ } | undefined;
43547
+ };
43548
+ /** Matching acs_credential currently encoded on this card. */
43549
+ acs_credential_on_seam: ({
43550
+ acs_credential_id: string;
43551
+ acs_user_id?: string | undefined;
43552
+ acs_credential_pool_id?: string | undefined;
43553
+ acs_system_id: string;
43554
+ parent_acs_credential_id?: string | undefined;
43555
+ display_name: string;
43556
+ code?: (string | undefined) | null;
43557
+ card_number?: (string | undefined) | null;
43558
+ is_issued?: boolean | undefined;
43559
+ issued_at?: (string | undefined) | null;
43560
+ access_method: 'code' | 'card' | 'mobile_key';
43561
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
43562
+ external_type_display_name?: string | undefined;
43563
+ created_at: string;
43564
+ workspace_id: string;
43565
+ starts_at?: string | undefined;
43566
+ ends_at?: string | undefined;
43567
+ errors: Array<{
43568
+ error_code: string;
43569
+ message: string;
43570
+ }>;
43571
+ warnings: Array<{
43572
+ warning_code: string;
43573
+ message: string;
43574
+ }>;
43575
+ is_multi_phone_sync_credential?: boolean | undefined;
43576
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
43577
+ latest_desired_state_synced_with_provider_at?: string | undefined;
43578
+ visionline_metadata?: {
43579
+ card_function_type: 'guest' | 'staff';
43580
+ joiner_acs_credential_ids?: string[] | undefined;
43581
+ guest_acs_entrance_ids?: string[] | undefined;
43582
+ common_acs_entrance_ids?: string[] | undefined;
43583
+ is_valid?: boolean | undefined;
43584
+ auto_join?: boolean | undefined;
43585
+ card_id?: string | undefined;
43586
+ credential_id?: string | undefined;
43587
+ } | undefined;
43588
+ is_managed: true;
43589
+ } | {
43590
+ acs_credential_id: string;
43591
+ acs_user_id?: string | undefined;
43592
+ acs_credential_pool_id?: string | undefined;
43593
+ acs_system_id: string;
43594
+ parent_acs_credential_id?: string | undefined;
43595
+ display_name: string;
43596
+ code?: (string | undefined) | null;
43597
+ card_number?: (string | undefined) | null;
43598
+ is_issued?: boolean | undefined;
43599
+ issued_at?: (string | undefined) | null;
43600
+ access_method: 'code' | 'card' | 'mobile_key';
43601
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
43602
+ external_type_display_name?: string | undefined;
43603
+ created_at: string;
43604
+ workspace_id: string;
43605
+ starts_at?: string | undefined;
43606
+ ends_at?: string | undefined;
43607
+ errors: Array<{
43608
+ error_code: string;
43609
+ message: string;
43610
+ }>;
43611
+ warnings: Array<{
43612
+ warning_code: string;
43613
+ message: string;
43614
+ }>;
43615
+ is_multi_phone_sync_credential?: boolean | undefined;
43616
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
43617
+ latest_desired_state_synced_with_provider_at?: string | undefined;
43618
+ visionline_metadata?: {
43619
+ card_function_type: 'guest' | 'staff';
43620
+ joiner_acs_credential_ids?: string[] | undefined;
43621
+ guest_acs_entrance_ids?: string[] | undefined;
43622
+ common_acs_entrance_ids?: string[] | undefined;
43623
+ is_valid?: boolean | undefined;
43624
+ auto_join?: boolean | undefined;
43625
+ card_id?: string | undefined;
43626
+ credential_id?: string | undefined;
43627
+ } | undefined;
43628
+ is_managed: false;
43629
+ }) | null;
41349
43630
  };
41350
43631
  } | {
41351
43632
  /** The ID of the action attempt. */
41352
43633
  action_attempt_id: string;
41353
43634
  status: 'error';
41354
43635
  result: null;
41355
- action_type: 'READ_CARD';
43636
+ action_type: 'SCAN_CARD';
41356
43637
  error: {
41357
43638
  type: 'no_card_on_encoder';
41358
43639
  message: string;
@@ -41839,23 +44120,128 @@ interface Routes {
41839
44120
  status: 'pending';
41840
44121
  result: null;
41841
44122
  error: null;
41842
- action_type: 'READ_CARD';
44123
+ action_type: 'SCAN_CARD';
41843
44124
  } | {
41844
44125
  /** The ID of the action attempt. */
41845
44126
  action_attempt_id: string;
41846
44127
  status: 'success';
41847
44128
  error: null;
41848
- action_type: 'READ_CARD';
44129
+ action_type: 'SCAN_CARD';
41849
44130
  result: {
41850
- /** A number or string that physically identifies this card. */
41851
- card_number: string | null;
44131
+ /** Snapshot of the card data read from the physical encoder. */
44132
+ acs_credential_on_encoder: {
44133
+ /** Date and time the credential was created. */
44134
+ created_at: string;
44135
+ is_issued: boolean | null;
44136
+ /** Date and time the credential will become useable. */
44137
+ starts_at: string | null;
44138
+ /** Date and time the credential will stop being useable. */
44139
+ ends_at: string | null;
44140
+ /** A number or string that physically identifies this card. */
44141
+ card_number: string | null;
44142
+ visionline_metadata?: {
44143
+ card_id: string;
44144
+ card_function_type: 'guest' | 'staff';
44145
+ cancelled: boolean;
44146
+ discarded: boolean;
44147
+ expired: boolean;
44148
+ overwritten: boolean;
44149
+ overridden?: boolean | undefined;
44150
+ pending_auto_update: boolean;
44151
+ card_format: 'TLCode' | 'rfid48';
44152
+ card_holder?: string | undefined;
44153
+ number_of_issued_cards: number;
44154
+ } | undefined;
44155
+ };
44156
+ /** Matching acs_credential currently encoded on this card. */
44157
+ acs_credential_on_seam: ({
44158
+ acs_credential_id: string;
44159
+ acs_user_id?: string | undefined;
44160
+ acs_credential_pool_id?: string | undefined;
44161
+ acs_system_id: string;
44162
+ parent_acs_credential_id?: string | undefined;
44163
+ display_name: string;
44164
+ code?: (string | undefined) | null;
44165
+ card_number?: (string | undefined) | null;
44166
+ is_issued?: boolean | undefined;
44167
+ issued_at?: (string | undefined) | null;
44168
+ access_method: 'code' | 'card' | 'mobile_key';
44169
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
44170
+ external_type_display_name?: string | undefined;
44171
+ created_at: string;
44172
+ workspace_id: string;
44173
+ starts_at?: string | undefined;
44174
+ ends_at?: string | undefined;
44175
+ errors: Array<{
44176
+ error_code: string;
44177
+ message: string;
44178
+ }>;
44179
+ warnings: Array<{
44180
+ warning_code: string;
44181
+ message: string;
44182
+ }>;
44183
+ is_multi_phone_sync_credential?: boolean | undefined;
44184
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
44185
+ latest_desired_state_synced_with_provider_at?: string | undefined;
44186
+ visionline_metadata?: {
44187
+ card_function_type: 'guest' | 'staff';
44188
+ joiner_acs_credential_ids?: string[] | undefined;
44189
+ guest_acs_entrance_ids?: string[] | undefined;
44190
+ common_acs_entrance_ids?: string[] | undefined;
44191
+ is_valid?: boolean | undefined;
44192
+ auto_join?: boolean | undefined;
44193
+ card_id?: string | undefined;
44194
+ credential_id?: string | undefined;
44195
+ } | undefined;
44196
+ is_managed: true;
44197
+ } | {
44198
+ acs_credential_id: string;
44199
+ acs_user_id?: string | undefined;
44200
+ acs_credential_pool_id?: string | undefined;
44201
+ acs_system_id: string;
44202
+ parent_acs_credential_id?: string | undefined;
44203
+ display_name: string;
44204
+ code?: (string | undefined) | null;
44205
+ card_number?: (string | undefined) | null;
44206
+ is_issued?: boolean | undefined;
44207
+ issued_at?: (string | undefined) | null;
44208
+ access_method: 'code' | 'card' | 'mobile_key';
44209
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
44210
+ external_type_display_name?: string | undefined;
44211
+ created_at: string;
44212
+ workspace_id: string;
44213
+ starts_at?: string | undefined;
44214
+ ends_at?: string | undefined;
44215
+ errors: Array<{
44216
+ error_code: string;
44217
+ message: string;
44218
+ }>;
44219
+ warnings: Array<{
44220
+ warning_code: string;
44221
+ message: string;
44222
+ }>;
44223
+ is_multi_phone_sync_credential?: boolean | undefined;
44224
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
44225
+ latest_desired_state_synced_with_provider_at?: string | undefined;
44226
+ visionline_metadata?: {
44227
+ card_function_type: 'guest' | 'staff';
44228
+ joiner_acs_credential_ids?: string[] | undefined;
44229
+ guest_acs_entrance_ids?: string[] | undefined;
44230
+ common_acs_entrance_ids?: string[] | undefined;
44231
+ is_valid?: boolean | undefined;
44232
+ auto_join?: boolean | undefined;
44233
+ card_id?: string | undefined;
44234
+ credential_id?: string | undefined;
44235
+ } | undefined;
44236
+ is_managed: false;
44237
+ }) | null;
41852
44238
  };
41853
44239
  } | {
41854
44240
  /** The ID of the action attempt. */
41855
44241
  action_attempt_id: string;
41856
44242
  status: 'error';
41857
44243
  result: null;
41858
- action_type: 'READ_CARD';
44244
+ action_type: 'SCAN_CARD';
41859
44245
  error: {
41860
44246
  type: 'no_card_on_encoder';
41861
44247
  message: string;
@@ -42475,23 +44861,128 @@ interface Routes {
42475
44861
  status: 'pending';
42476
44862
  result: null;
42477
44863
  error: null;
42478
- action_type: 'READ_CARD';
44864
+ action_type: 'SCAN_CARD';
42479
44865
  } | {
42480
44866
  /** The ID of the action attempt. */
42481
44867
  action_attempt_id: string;
42482
44868
  status: 'success';
42483
44869
  error: null;
42484
- action_type: 'READ_CARD';
44870
+ action_type: 'SCAN_CARD';
42485
44871
  result: {
42486
- /** A number or string that physically identifies this card. */
42487
- card_number: string | null;
44872
+ /** Snapshot of the card data read from the physical encoder. */
44873
+ acs_credential_on_encoder: {
44874
+ /** Date and time the credential was created. */
44875
+ created_at: string;
44876
+ is_issued: boolean | null;
44877
+ /** Date and time the credential will become useable. */
44878
+ starts_at: string | null;
44879
+ /** Date and time the credential will stop being useable. */
44880
+ ends_at: string | null;
44881
+ /** A number or string that physically identifies this card. */
44882
+ card_number: string | null;
44883
+ visionline_metadata?: {
44884
+ card_id: string;
44885
+ card_function_type: 'guest' | 'staff';
44886
+ cancelled: boolean;
44887
+ discarded: boolean;
44888
+ expired: boolean;
44889
+ overwritten: boolean;
44890
+ overridden?: boolean | undefined;
44891
+ pending_auto_update: boolean;
44892
+ card_format: 'TLCode' | 'rfid48';
44893
+ card_holder?: string | undefined;
44894
+ number_of_issued_cards: number;
44895
+ } | undefined;
44896
+ };
44897
+ /** Matching acs_credential currently encoded on this card. */
44898
+ acs_credential_on_seam: ({
44899
+ acs_credential_id: string;
44900
+ acs_user_id?: string | undefined;
44901
+ acs_credential_pool_id?: string | undefined;
44902
+ acs_system_id: string;
44903
+ parent_acs_credential_id?: string | undefined;
44904
+ display_name: string;
44905
+ code?: (string | undefined) | null;
44906
+ card_number?: (string | undefined) | null;
44907
+ is_issued?: boolean | undefined;
44908
+ issued_at?: (string | undefined) | null;
44909
+ access_method: 'code' | 'card' | 'mobile_key';
44910
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
44911
+ external_type_display_name?: string | undefined;
44912
+ created_at: string;
44913
+ workspace_id: string;
44914
+ starts_at?: string | undefined;
44915
+ ends_at?: string | undefined;
44916
+ errors: Array<{
44917
+ error_code: string;
44918
+ message: string;
44919
+ }>;
44920
+ warnings: Array<{
44921
+ warning_code: string;
44922
+ message: string;
44923
+ }>;
44924
+ is_multi_phone_sync_credential?: boolean | undefined;
44925
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
44926
+ latest_desired_state_synced_with_provider_at?: string | undefined;
44927
+ visionline_metadata?: {
44928
+ card_function_type: 'guest' | 'staff';
44929
+ joiner_acs_credential_ids?: string[] | undefined;
44930
+ guest_acs_entrance_ids?: string[] | undefined;
44931
+ common_acs_entrance_ids?: string[] | undefined;
44932
+ is_valid?: boolean | undefined;
44933
+ auto_join?: boolean | undefined;
44934
+ card_id?: string | undefined;
44935
+ credential_id?: string | undefined;
44936
+ } | undefined;
44937
+ is_managed: true;
44938
+ } | {
44939
+ acs_credential_id: string;
44940
+ acs_user_id?: string | undefined;
44941
+ acs_credential_pool_id?: string | undefined;
44942
+ acs_system_id: string;
44943
+ parent_acs_credential_id?: string | undefined;
44944
+ display_name: string;
44945
+ code?: (string | undefined) | null;
44946
+ card_number?: (string | undefined) | null;
44947
+ is_issued?: boolean | undefined;
44948
+ issued_at?: (string | undefined) | null;
44949
+ access_method: 'code' | 'card' | 'mobile_key';
44950
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
44951
+ external_type_display_name?: string | undefined;
44952
+ created_at: string;
44953
+ workspace_id: string;
44954
+ starts_at?: string | undefined;
44955
+ ends_at?: string | undefined;
44956
+ errors: Array<{
44957
+ error_code: string;
44958
+ message: string;
44959
+ }>;
44960
+ warnings: Array<{
44961
+ warning_code: string;
44962
+ message: string;
44963
+ }>;
44964
+ is_multi_phone_sync_credential?: boolean | undefined;
44965
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
44966
+ latest_desired_state_synced_with_provider_at?: string | undefined;
44967
+ visionline_metadata?: {
44968
+ card_function_type: 'guest' | 'staff';
44969
+ joiner_acs_credential_ids?: string[] | undefined;
44970
+ guest_acs_entrance_ids?: string[] | undefined;
44971
+ common_acs_entrance_ids?: string[] | undefined;
44972
+ is_valid?: boolean | undefined;
44973
+ auto_join?: boolean | undefined;
44974
+ card_id?: string | undefined;
44975
+ credential_id?: string | undefined;
44976
+ } | undefined;
44977
+ is_managed: false;
44978
+ }) | null;
42488
44979
  };
42489
44980
  } | {
42490
44981
  /** The ID of the action attempt. */
42491
44982
  action_attempt_id: string;
42492
44983
  status: 'error';
42493
44984
  result: null;
42494
- action_type: 'READ_CARD';
44985
+ action_type: 'SCAN_CARD';
42495
44986
  error: {
42496
44987
  type: 'no_card_on_encoder';
42497
44988
  message: string;
@@ -42931,23 +45422,128 @@ interface Routes {
42931
45422
  status: 'pending';
42932
45423
  result: null;
42933
45424
  error: null;
42934
- action_type: 'READ_CARD';
45425
+ action_type: 'SCAN_CARD';
42935
45426
  } | {
42936
45427
  /** The ID of the action attempt. */
42937
45428
  action_attempt_id: string;
42938
45429
  status: 'success';
42939
45430
  error: null;
42940
- action_type: 'READ_CARD';
45431
+ action_type: 'SCAN_CARD';
42941
45432
  result: {
42942
- /** A number or string that physically identifies this card. */
42943
- card_number: string | null;
45433
+ /** Snapshot of the card data read from the physical encoder. */
45434
+ acs_credential_on_encoder: {
45435
+ /** Date and time the credential was created. */
45436
+ created_at: string;
45437
+ is_issued: boolean | null;
45438
+ /** Date and time the credential will become useable. */
45439
+ starts_at: string | null;
45440
+ /** Date and time the credential will stop being useable. */
45441
+ ends_at: string | null;
45442
+ /** A number or string that physically identifies this card. */
45443
+ card_number: string | null;
45444
+ visionline_metadata?: {
45445
+ card_id: string;
45446
+ card_function_type: 'guest' | 'staff';
45447
+ cancelled: boolean;
45448
+ discarded: boolean;
45449
+ expired: boolean;
45450
+ overwritten: boolean;
45451
+ overridden?: boolean | undefined;
45452
+ pending_auto_update: boolean;
45453
+ card_format: 'TLCode' | 'rfid48';
45454
+ card_holder?: string | undefined;
45455
+ number_of_issued_cards: number;
45456
+ } | undefined;
45457
+ };
45458
+ /** Matching acs_credential currently encoded on this card. */
45459
+ acs_credential_on_seam: ({
45460
+ acs_credential_id: string;
45461
+ acs_user_id?: string | undefined;
45462
+ acs_credential_pool_id?: string | undefined;
45463
+ acs_system_id: string;
45464
+ parent_acs_credential_id?: string | undefined;
45465
+ display_name: string;
45466
+ code?: (string | undefined) | null;
45467
+ card_number?: (string | undefined) | null;
45468
+ is_issued?: boolean | undefined;
45469
+ issued_at?: (string | undefined) | null;
45470
+ access_method: 'code' | 'card' | 'mobile_key';
45471
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
45472
+ external_type_display_name?: string | undefined;
45473
+ created_at: string;
45474
+ workspace_id: string;
45475
+ starts_at?: string | undefined;
45476
+ ends_at?: string | undefined;
45477
+ errors: Array<{
45478
+ error_code: string;
45479
+ message: string;
45480
+ }>;
45481
+ warnings: Array<{
45482
+ warning_code: string;
45483
+ message: string;
45484
+ }>;
45485
+ is_multi_phone_sync_credential?: boolean | undefined;
45486
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
45487
+ latest_desired_state_synced_with_provider_at?: string | undefined;
45488
+ visionline_metadata?: {
45489
+ card_function_type: 'guest' | 'staff';
45490
+ joiner_acs_credential_ids?: string[] | undefined;
45491
+ guest_acs_entrance_ids?: string[] | undefined;
45492
+ common_acs_entrance_ids?: string[] | undefined;
45493
+ is_valid?: boolean | undefined;
45494
+ auto_join?: boolean | undefined;
45495
+ card_id?: string | undefined;
45496
+ credential_id?: string | undefined;
45497
+ } | undefined;
45498
+ is_managed: true;
45499
+ } | {
45500
+ acs_credential_id: string;
45501
+ acs_user_id?: string | undefined;
45502
+ acs_credential_pool_id?: string | undefined;
45503
+ acs_system_id: string;
45504
+ parent_acs_credential_id?: string | undefined;
45505
+ display_name: string;
45506
+ code?: (string | undefined) | null;
45507
+ card_number?: (string | undefined) | null;
45508
+ is_issued?: boolean | undefined;
45509
+ issued_at?: (string | undefined) | null;
45510
+ access_method: 'code' | 'card' | 'mobile_key';
45511
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
45512
+ external_type_display_name?: string | undefined;
45513
+ created_at: string;
45514
+ workspace_id: string;
45515
+ starts_at?: string | undefined;
45516
+ ends_at?: string | undefined;
45517
+ errors: Array<{
45518
+ error_code: string;
45519
+ message: string;
45520
+ }>;
45521
+ warnings: Array<{
45522
+ warning_code: string;
45523
+ message: string;
45524
+ }>;
45525
+ is_multi_phone_sync_credential?: boolean | undefined;
45526
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
45527
+ latest_desired_state_synced_with_provider_at?: string | undefined;
45528
+ visionline_metadata?: {
45529
+ card_function_type: 'guest' | 'staff';
45530
+ joiner_acs_credential_ids?: string[] | undefined;
45531
+ guest_acs_entrance_ids?: string[] | undefined;
45532
+ common_acs_entrance_ids?: string[] | undefined;
45533
+ is_valid?: boolean | undefined;
45534
+ auto_join?: boolean | undefined;
45535
+ card_id?: string | undefined;
45536
+ credential_id?: string | undefined;
45537
+ } | undefined;
45538
+ is_managed: false;
45539
+ }) | null;
42944
45540
  };
42945
45541
  } | {
42946
45542
  /** The ID of the action attempt. */
42947
45543
  action_attempt_id: string;
42948
45544
  status: 'error';
42949
45545
  result: null;
42950
- action_type: 'READ_CARD';
45546
+ action_type: 'SCAN_CARD';
42951
45547
  error: {
42952
45548
  type: 'no_card_on_encoder';
42953
45549
  message: string;
@@ -43871,23 +46467,128 @@ interface Routes {
43871
46467
  status: 'pending';
43872
46468
  result: null;
43873
46469
  error: null;
43874
- action_type: 'READ_CARD';
46470
+ action_type: 'SCAN_CARD';
43875
46471
  } | {
43876
46472
  /** The ID of the action attempt. */
43877
46473
  action_attempt_id: string;
43878
46474
  status: 'success';
43879
46475
  error: null;
43880
- action_type: 'READ_CARD';
46476
+ action_type: 'SCAN_CARD';
43881
46477
  result: {
43882
- /** A number or string that physically identifies this card. */
43883
- card_number: string | null;
46478
+ /** Snapshot of the card data read from the physical encoder. */
46479
+ acs_credential_on_encoder: {
46480
+ /** Date and time the credential was created. */
46481
+ created_at: string;
46482
+ is_issued: boolean | null;
46483
+ /** Date and time the credential will become useable. */
46484
+ starts_at: string | null;
46485
+ /** Date and time the credential will stop being useable. */
46486
+ ends_at: string | null;
46487
+ /** A number or string that physically identifies this card. */
46488
+ card_number: string | null;
46489
+ visionline_metadata?: {
46490
+ card_id: string;
46491
+ card_function_type: 'guest' | 'staff';
46492
+ cancelled: boolean;
46493
+ discarded: boolean;
46494
+ expired: boolean;
46495
+ overwritten: boolean;
46496
+ overridden?: boolean | undefined;
46497
+ pending_auto_update: boolean;
46498
+ card_format: 'TLCode' | 'rfid48';
46499
+ card_holder?: string | undefined;
46500
+ number_of_issued_cards: number;
46501
+ } | undefined;
46502
+ };
46503
+ /** Matching acs_credential currently encoded on this card. */
46504
+ acs_credential_on_seam: ({
46505
+ acs_credential_id: string;
46506
+ acs_user_id?: string | undefined;
46507
+ acs_credential_pool_id?: string | undefined;
46508
+ acs_system_id: string;
46509
+ parent_acs_credential_id?: string | undefined;
46510
+ display_name: string;
46511
+ code?: (string | undefined) | null;
46512
+ card_number?: (string | undefined) | null;
46513
+ is_issued?: boolean | undefined;
46514
+ issued_at?: (string | undefined) | null;
46515
+ access_method: 'code' | 'card' | 'mobile_key';
46516
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
46517
+ external_type_display_name?: string | undefined;
46518
+ created_at: string;
46519
+ workspace_id: string;
46520
+ starts_at?: string | undefined;
46521
+ ends_at?: string | undefined;
46522
+ errors: Array<{
46523
+ error_code: string;
46524
+ message: string;
46525
+ }>;
46526
+ warnings: Array<{
46527
+ warning_code: string;
46528
+ message: string;
46529
+ }>;
46530
+ is_multi_phone_sync_credential?: boolean | undefined;
46531
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
46532
+ latest_desired_state_synced_with_provider_at?: string | undefined;
46533
+ visionline_metadata?: {
46534
+ card_function_type: 'guest' | 'staff';
46535
+ joiner_acs_credential_ids?: string[] | undefined;
46536
+ guest_acs_entrance_ids?: string[] | undefined;
46537
+ common_acs_entrance_ids?: string[] | undefined;
46538
+ is_valid?: boolean | undefined;
46539
+ auto_join?: boolean | undefined;
46540
+ card_id?: string | undefined;
46541
+ credential_id?: string | undefined;
46542
+ } | undefined;
46543
+ is_managed: true;
46544
+ } | {
46545
+ acs_credential_id: string;
46546
+ acs_user_id?: string | undefined;
46547
+ acs_credential_pool_id?: string | undefined;
46548
+ acs_system_id: string;
46549
+ parent_acs_credential_id?: string | undefined;
46550
+ display_name: string;
46551
+ code?: (string | undefined) | null;
46552
+ card_number?: (string | undefined) | null;
46553
+ is_issued?: boolean | undefined;
46554
+ issued_at?: (string | undefined) | null;
46555
+ access_method: 'code' | 'card' | 'mobile_key';
46556
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
46557
+ external_type_display_name?: string | undefined;
46558
+ created_at: string;
46559
+ workspace_id: string;
46560
+ starts_at?: string | undefined;
46561
+ ends_at?: string | undefined;
46562
+ errors: Array<{
46563
+ error_code: string;
46564
+ message: string;
46565
+ }>;
46566
+ warnings: Array<{
46567
+ warning_code: string;
46568
+ message: string;
46569
+ }>;
46570
+ is_multi_phone_sync_credential?: boolean | undefined;
46571
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
46572
+ latest_desired_state_synced_with_provider_at?: string | undefined;
46573
+ visionline_metadata?: {
46574
+ card_function_type: 'guest' | 'staff';
46575
+ joiner_acs_credential_ids?: string[] | undefined;
46576
+ guest_acs_entrance_ids?: string[] | undefined;
46577
+ common_acs_entrance_ids?: string[] | undefined;
46578
+ is_valid?: boolean | undefined;
46579
+ auto_join?: boolean | undefined;
46580
+ card_id?: string | undefined;
46581
+ credential_id?: string | undefined;
46582
+ } | undefined;
46583
+ is_managed: false;
46584
+ }) | null;
43884
46585
  };
43885
46586
  } | {
43886
46587
  /** The ID of the action attempt. */
43887
46588
  action_attempt_id: string;
43888
46589
  status: 'error';
43889
46590
  result: null;
43890
- action_type: 'READ_CARD';
46591
+ action_type: 'SCAN_CARD';
43891
46592
  error: {
43892
46593
  type: 'no_card_on_encoder';
43893
46594
  message: string;
@@ -44329,23 +47030,128 @@ interface Routes {
44329
47030
  status: 'pending';
44330
47031
  result: null;
44331
47032
  error: null;
44332
- action_type: 'READ_CARD';
47033
+ action_type: 'SCAN_CARD';
44333
47034
  } | {
44334
47035
  /** The ID of the action attempt. */
44335
47036
  action_attempt_id: string;
44336
47037
  status: 'success';
44337
47038
  error: null;
44338
- action_type: 'READ_CARD';
47039
+ action_type: 'SCAN_CARD';
44339
47040
  result: {
44340
- /** A number or string that physically identifies this card. */
44341
- card_number: string | null;
47041
+ /** Snapshot of the card data read from the physical encoder. */
47042
+ acs_credential_on_encoder: {
47043
+ /** Date and time the credential was created. */
47044
+ created_at: string;
47045
+ is_issued: boolean | null;
47046
+ /** Date and time the credential will become useable. */
47047
+ starts_at: string | null;
47048
+ /** Date and time the credential will stop being useable. */
47049
+ ends_at: string | null;
47050
+ /** A number or string that physically identifies this card. */
47051
+ card_number: string | null;
47052
+ visionline_metadata?: {
47053
+ card_id: string;
47054
+ card_function_type: 'guest' | 'staff';
47055
+ cancelled: boolean;
47056
+ discarded: boolean;
47057
+ expired: boolean;
47058
+ overwritten: boolean;
47059
+ overridden?: boolean | undefined;
47060
+ pending_auto_update: boolean;
47061
+ card_format: 'TLCode' | 'rfid48';
47062
+ card_holder?: string | undefined;
47063
+ number_of_issued_cards: number;
47064
+ } | undefined;
47065
+ };
47066
+ /** Matching acs_credential currently encoded on this card. */
47067
+ acs_credential_on_seam: ({
47068
+ acs_credential_id: string;
47069
+ acs_user_id?: string | undefined;
47070
+ acs_credential_pool_id?: string | undefined;
47071
+ acs_system_id: string;
47072
+ parent_acs_credential_id?: string | undefined;
47073
+ display_name: string;
47074
+ code?: (string | undefined) | null;
47075
+ card_number?: (string | undefined) | null;
47076
+ is_issued?: boolean | undefined;
47077
+ issued_at?: (string | undefined) | null;
47078
+ access_method: 'code' | 'card' | 'mobile_key';
47079
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
47080
+ external_type_display_name?: string | undefined;
47081
+ created_at: string;
47082
+ workspace_id: string;
47083
+ starts_at?: string | undefined;
47084
+ ends_at?: string | undefined;
47085
+ errors: Array<{
47086
+ error_code: string;
47087
+ message: string;
47088
+ }>;
47089
+ warnings: Array<{
47090
+ warning_code: string;
47091
+ message: string;
47092
+ }>;
47093
+ is_multi_phone_sync_credential?: boolean | undefined;
47094
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
47095
+ latest_desired_state_synced_with_provider_at?: string | undefined;
47096
+ visionline_metadata?: {
47097
+ card_function_type: 'guest' | 'staff';
47098
+ joiner_acs_credential_ids?: string[] | undefined;
47099
+ guest_acs_entrance_ids?: string[] | undefined;
47100
+ common_acs_entrance_ids?: string[] | undefined;
47101
+ is_valid?: boolean | undefined;
47102
+ auto_join?: boolean | undefined;
47103
+ card_id?: string | undefined;
47104
+ credential_id?: string | undefined;
47105
+ } | undefined;
47106
+ is_managed: true;
47107
+ } | {
47108
+ acs_credential_id: string;
47109
+ acs_user_id?: string | undefined;
47110
+ acs_credential_pool_id?: string | undefined;
47111
+ acs_system_id: string;
47112
+ parent_acs_credential_id?: string | undefined;
47113
+ display_name: string;
47114
+ code?: (string | undefined) | null;
47115
+ card_number?: (string | undefined) | null;
47116
+ is_issued?: boolean | undefined;
47117
+ issued_at?: (string | undefined) | null;
47118
+ access_method: 'code' | 'card' | 'mobile_key';
47119
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
47120
+ external_type_display_name?: string | undefined;
47121
+ created_at: string;
47122
+ workspace_id: string;
47123
+ starts_at?: string | undefined;
47124
+ ends_at?: string | undefined;
47125
+ errors: Array<{
47126
+ error_code: string;
47127
+ message: string;
47128
+ }>;
47129
+ warnings: Array<{
47130
+ warning_code: string;
47131
+ message: string;
47132
+ }>;
47133
+ is_multi_phone_sync_credential?: boolean | undefined;
47134
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
47135
+ latest_desired_state_synced_with_provider_at?: string | undefined;
47136
+ visionline_metadata?: {
47137
+ card_function_type: 'guest' | 'staff';
47138
+ joiner_acs_credential_ids?: string[] | undefined;
47139
+ guest_acs_entrance_ids?: string[] | undefined;
47140
+ common_acs_entrance_ids?: string[] | undefined;
47141
+ is_valid?: boolean | undefined;
47142
+ auto_join?: boolean | undefined;
47143
+ card_id?: string | undefined;
47144
+ credential_id?: string | undefined;
47145
+ } | undefined;
47146
+ is_managed: false;
47147
+ }) | null;
44342
47148
  };
44343
47149
  } | {
44344
47150
  /** The ID of the action attempt. */
44345
47151
  action_attempt_id: string;
44346
47152
  status: 'error';
44347
47153
  result: null;
44348
- action_type: 'READ_CARD';
47154
+ action_type: 'SCAN_CARD';
44349
47155
  error: {
44350
47156
  type: 'no_card_on_encoder';
44351
47157
  message: string;
@@ -45686,23 +48492,128 @@ interface Routes {
45686
48492
  status: 'pending';
45687
48493
  result: null;
45688
48494
  error: null;
45689
- action_type: 'READ_CARD';
48495
+ action_type: 'SCAN_CARD';
45690
48496
  } | {
45691
48497
  /** The ID of the action attempt. */
45692
48498
  action_attempt_id: string;
45693
48499
  status: 'success';
45694
48500
  error: null;
45695
- action_type: 'READ_CARD';
48501
+ action_type: 'SCAN_CARD';
45696
48502
  result: {
45697
- /** A number or string that physically identifies this card. */
45698
- card_number: string | null;
48503
+ /** Snapshot of the card data read from the physical encoder. */
48504
+ acs_credential_on_encoder: {
48505
+ /** Date and time the credential was created. */
48506
+ created_at: string;
48507
+ is_issued: boolean | null;
48508
+ /** Date and time the credential will become useable. */
48509
+ starts_at: string | null;
48510
+ /** Date and time the credential will stop being useable. */
48511
+ ends_at: string | null;
48512
+ /** A number or string that physically identifies this card. */
48513
+ card_number: string | null;
48514
+ visionline_metadata?: {
48515
+ card_id: string;
48516
+ card_function_type: 'guest' | 'staff';
48517
+ cancelled: boolean;
48518
+ discarded: boolean;
48519
+ expired: boolean;
48520
+ overwritten: boolean;
48521
+ overridden?: boolean | undefined;
48522
+ pending_auto_update: boolean;
48523
+ card_format: 'TLCode' | 'rfid48';
48524
+ card_holder?: string | undefined;
48525
+ number_of_issued_cards: number;
48526
+ } | undefined;
48527
+ };
48528
+ /** Matching acs_credential currently encoded on this card. */
48529
+ acs_credential_on_seam: ({
48530
+ acs_credential_id: string;
48531
+ acs_user_id?: string | undefined;
48532
+ acs_credential_pool_id?: string | undefined;
48533
+ acs_system_id: string;
48534
+ parent_acs_credential_id?: string | undefined;
48535
+ display_name: string;
48536
+ code?: (string | undefined) | null;
48537
+ card_number?: (string | undefined) | null;
48538
+ is_issued?: boolean | undefined;
48539
+ issued_at?: (string | undefined) | null;
48540
+ access_method: 'code' | 'card' | 'mobile_key';
48541
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
48542
+ external_type_display_name?: string | undefined;
48543
+ created_at: string;
48544
+ workspace_id: string;
48545
+ starts_at?: string | undefined;
48546
+ ends_at?: string | undefined;
48547
+ errors: Array<{
48548
+ error_code: string;
48549
+ message: string;
48550
+ }>;
48551
+ warnings: Array<{
48552
+ warning_code: string;
48553
+ message: string;
48554
+ }>;
48555
+ is_multi_phone_sync_credential?: boolean | undefined;
48556
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
48557
+ latest_desired_state_synced_with_provider_at?: string | undefined;
48558
+ visionline_metadata?: {
48559
+ card_function_type: 'guest' | 'staff';
48560
+ joiner_acs_credential_ids?: string[] | undefined;
48561
+ guest_acs_entrance_ids?: string[] | undefined;
48562
+ common_acs_entrance_ids?: string[] | undefined;
48563
+ is_valid?: boolean | undefined;
48564
+ auto_join?: boolean | undefined;
48565
+ card_id?: string | undefined;
48566
+ credential_id?: string | undefined;
48567
+ } | undefined;
48568
+ is_managed: true;
48569
+ } | {
48570
+ acs_credential_id: string;
48571
+ acs_user_id?: string | undefined;
48572
+ acs_credential_pool_id?: string | undefined;
48573
+ acs_system_id: string;
48574
+ parent_acs_credential_id?: string | undefined;
48575
+ display_name: string;
48576
+ code?: (string | undefined) | null;
48577
+ card_number?: (string | undefined) | null;
48578
+ is_issued?: boolean | undefined;
48579
+ issued_at?: (string | undefined) | null;
48580
+ access_method: 'code' | 'card' | 'mobile_key';
48581
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
48582
+ external_type_display_name?: string | undefined;
48583
+ created_at: string;
48584
+ workspace_id: string;
48585
+ starts_at?: string | undefined;
48586
+ ends_at?: string | undefined;
48587
+ errors: Array<{
48588
+ error_code: string;
48589
+ message: string;
48590
+ }>;
48591
+ warnings: Array<{
48592
+ warning_code: string;
48593
+ message: string;
48594
+ }>;
48595
+ is_multi_phone_sync_credential?: boolean | undefined;
48596
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
48597
+ latest_desired_state_synced_with_provider_at?: string | undefined;
48598
+ visionline_metadata?: {
48599
+ card_function_type: 'guest' | 'staff';
48600
+ joiner_acs_credential_ids?: string[] | undefined;
48601
+ guest_acs_entrance_ids?: string[] | undefined;
48602
+ common_acs_entrance_ids?: string[] | undefined;
48603
+ is_valid?: boolean | undefined;
48604
+ auto_join?: boolean | undefined;
48605
+ card_id?: string | undefined;
48606
+ credential_id?: string | undefined;
48607
+ } | undefined;
48608
+ is_managed: false;
48609
+ }) | null;
45699
48610
  };
45700
48611
  } | {
45701
48612
  /** The ID of the action attempt. */
45702
48613
  action_attempt_id: string;
45703
48614
  status: 'error';
45704
48615
  result: null;
45705
- action_type: 'READ_CARD';
48616
+ action_type: 'SCAN_CARD';
45706
48617
  error: {
45707
48618
  type: 'no_card_on_encoder';
45708
48619
  message: string;
@@ -46261,23 +49172,128 @@ interface Routes {
46261
49172
  status: 'pending';
46262
49173
  result: null;
46263
49174
  error: null;
46264
- action_type: 'READ_CARD';
49175
+ action_type: 'SCAN_CARD';
46265
49176
  } | {
46266
49177
  /** The ID of the action attempt. */
46267
49178
  action_attempt_id: string;
46268
49179
  status: 'success';
46269
49180
  error: null;
46270
- action_type: 'READ_CARD';
49181
+ action_type: 'SCAN_CARD';
46271
49182
  result: {
46272
- /** A number or string that physically identifies this card. */
46273
- card_number: string | null;
49183
+ /** Snapshot of the card data read from the physical encoder. */
49184
+ acs_credential_on_encoder: {
49185
+ /** Date and time the credential was created. */
49186
+ created_at: string;
49187
+ is_issued: boolean | null;
49188
+ /** Date and time the credential will become useable. */
49189
+ starts_at: string | null;
49190
+ /** Date and time the credential will stop being useable. */
49191
+ ends_at: string | null;
49192
+ /** A number or string that physically identifies this card. */
49193
+ card_number: string | null;
49194
+ visionline_metadata?: {
49195
+ card_id: string;
49196
+ card_function_type: 'guest' | 'staff';
49197
+ cancelled: boolean;
49198
+ discarded: boolean;
49199
+ expired: boolean;
49200
+ overwritten: boolean;
49201
+ overridden?: boolean | undefined;
49202
+ pending_auto_update: boolean;
49203
+ card_format: 'TLCode' | 'rfid48';
49204
+ card_holder?: string | undefined;
49205
+ number_of_issued_cards: number;
49206
+ } | undefined;
49207
+ };
49208
+ /** Matching acs_credential currently encoded on this card. */
49209
+ acs_credential_on_seam: ({
49210
+ acs_credential_id: string;
49211
+ acs_user_id?: string | undefined;
49212
+ acs_credential_pool_id?: string | undefined;
49213
+ acs_system_id: string;
49214
+ parent_acs_credential_id?: string | undefined;
49215
+ display_name: string;
49216
+ code?: (string | undefined) | null;
49217
+ card_number?: (string | undefined) | null;
49218
+ is_issued?: boolean | undefined;
49219
+ issued_at?: (string | undefined) | null;
49220
+ access_method: 'code' | 'card' | 'mobile_key';
49221
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
49222
+ external_type_display_name?: string | undefined;
49223
+ created_at: string;
49224
+ workspace_id: string;
49225
+ starts_at?: string | undefined;
49226
+ ends_at?: string | undefined;
49227
+ errors: Array<{
49228
+ error_code: string;
49229
+ message: string;
49230
+ }>;
49231
+ warnings: Array<{
49232
+ warning_code: string;
49233
+ message: string;
49234
+ }>;
49235
+ is_multi_phone_sync_credential?: boolean | undefined;
49236
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
49237
+ latest_desired_state_synced_with_provider_at?: string | undefined;
49238
+ visionline_metadata?: {
49239
+ card_function_type: 'guest' | 'staff';
49240
+ joiner_acs_credential_ids?: string[] | undefined;
49241
+ guest_acs_entrance_ids?: string[] | undefined;
49242
+ common_acs_entrance_ids?: string[] | undefined;
49243
+ is_valid?: boolean | undefined;
49244
+ auto_join?: boolean | undefined;
49245
+ card_id?: string | undefined;
49246
+ credential_id?: string | undefined;
49247
+ } | undefined;
49248
+ is_managed: true;
49249
+ } | {
49250
+ acs_credential_id: string;
49251
+ acs_user_id?: string | undefined;
49252
+ acs_credential_pool_id?: string | undefined;
49253
+ acs_system_id: string;
49254
+ parent_acs_credential_id?: string | undefined;
49255
+ display_name: string;
49256
+ code?: (string | undefined) | null;
49257
+ card_number?: (string | undefined) | null;
49258
+ is_issued?: boolean | undefined;
49259
+ issued_at?: (string | undefined) | null;
49260
+ access_method: 'code' | 'card' | 'mobile_key';
49261
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
49262
+ external_type_display_name?: string | undefined;
49263
+ created_at: string;
49264
+ workspace_id: string;
49265
+ starts_at?: string | undefined;
49266
+ ends_at?: string | undefined;
49267
+ errors: Array<{
49268
+ error_code: string;
49269
+ message: string;
49270
+ }>;
49271
+ warnings: Array<{
49272
+ warning_code: string;
49273
+ message: string;
49274
+ }>;
49275
+ is_multi_phone_sync_credential?: boolean | undefined;
49276
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
49277
+ latest_desired_state_synced_with_provider_at?: string | undefined;
49278
+ visionline_metadata?: {
49279
+ card_function_type: 'guest' | 'staff';
49280
+ joiner_acs_credential_ids?: string[] | undefined;
49281
+ guest_acs_entrance_ids?: string[] | undefined;
49282
+ common_acs_entrance_ids?: string[] | undefined;
49283
+ is_valid?: boolean | undefined;
49284
+ auto_join?: boolean | undefined;
49285
+ card_id?: string | undefined;
49286
+ credential_id?: string | undefined;
49287
+ } | undefined;
49288
+ is_managed: false;
49289
+ }) | null;
46274
49290
  };
46275
49291
  } | {
46276
49292
  /** The ID of the action attempt. */
46277
49293
  action_attempt_id: string;
46278
49294
  status: 'error';
46279
49295
  result: null;
46280
- action_type: 'READ_CARD';
49296
+ action_type: 'SCAN_CARD';
46281
49297
  error: {
46282
49298
  type: 'no_card_on_encoder';
46283
49299
  message: string;
@@ -48184,23 +51200,128 @@ interface Routes {
48184
51200
  status: 'pending';
48185
51201
  result: null;
48186
51202
  error: null;
48187
- action_type: 'READ_CARD';
51203
+ action_type: 'SCAN_CARD';
48188
51204
  } | {
48189
51205
  /** The ID of the action attempt. */
48190
51206
  action_attempt_id: string;
48191
51207
  status: 'success';
48192
51208
  error: null;
48193
- action_type: 'READ_CARD';
51209
+ action_type: 'SCAN_CARD';
48194
51210
  result: {
48195
- /** A number or string that physically identifies this card. */
48196
- card_number: string | null;
51211
+ /** Snapshot of the card data read from the physical encoder. */
51212
+ acs_credential_on_encoder: {
51213
+ /** Date and time the credential was created. */
51214
+ created_at: string;
51215
+ is_issued: boolean | null;
51216
+ /** Date and time the credential will become useable. */
51217
+ starts_at: string | null;
51218
+ /** Date and time the credential will stop being useable. */
51219
+ ends_at: string | null;
51220
+ /** A number or string that physically identifies this card. */
51221
+ card_number: string | null;
51222
+ visionline_metadata?: {
51223
+ card_id: string;
51224
+ card_function_type: 'guest' | 'staff';
51225
+ cancelled: boolean;
51226
+ discarded: boolean;
51227
+ expired: boolean;
51228
+ overwritten: boolean;
51229
+ overridden?: boolean | undefined;
51230
+ pending_auto_update: boolean;
51231
+ card_format: 'TLCode' | 'rfid48';
51232
+ card_holder?: string | undefined;
51233
+ number_of_issued_cards: number;
51234
+ } | undefined;
51235
+ };
51236
+ /** Matching acs_credential currently encoded on this card. */
51237
+ acs_credential_on_seam: ({
51238
+ acs_credential_id: string;
51239
+ acs_user_id?: string | undefined;
51240
+ acs_credential_pool_id?: string | undefined;
51241
+ acs_system_id: string;
51242
+ parent_acs_credential_id?: string | undefined;
51243
+ display_name: string;
51244
+ code?: (string | undefined) | null;
51245
+ card_number?: (string | undefined) | null;
51246
+ is_issued?: boolean | undefined;
51247
+ issued_at?: (string | undefined) | null;
51248
+ access_method: 'code' | 'card' | 'mobile_key';
51249
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
51250
+ external_type_display_name?: string | undefined;
51251
+ created_at: string;
51252
+ workspace_id: string;
51253
+ starts_at?: string | undefined;
51254
+ ends_at?: string | undefined;
51255
+ errors: Array<{
51256
+ error_code: string;
51257
+ message: string;
51258
+ }>;
51259
+ warnings: Array<{
51260
+ warning_code: string;
51261
+ message: string;
51262
+ }>;
51263
+ is_multi_phone_sync_credential?: boolean | undefined;
51264
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
51265
+ latest_desired_state_synced_with_provider_at?: string | undefined;
51266
+ visionline_metadata?: {
51267
+ card_function_type: 'guest' | 'staff';
51268
+ joiner_acs_credential_ids?: string[] | undefined;
51269
+ guest_acs_entrance_ids?: string[] | undefined;
51270
+ common_acs_entrance_ids?: string[] | undefined;
51271
+ is_valid?: boolean | undefined;
51272
+ auto_join?: boolean | undefined;
51273
+ card_id?: string | undefined;
51274
+ credential_id?: string | undefined;
51275
+ } | undefined;
51276
+ is_managed: true;
51277
+ } | {
51278
+ acs_credential_id: string;
51279
+ acs_user_id?: string | undefined;
51280
+ acs_credential_pool_id?: string | undefined;
51281
+ acs_system_id: string;
51282
+ parent_acs_credential_id?: string | undefined;
51283
+ display_name: string;
51284
+ code?: (string | undefined) | null;
51285
+ card_number?: (string | undefined) | null;
51286
+ is_issued?: boolean | undefined;
51287
+ issued_at?: (string | undefined) | null;
51288
+ access_method: 'code' | 'card' | 'mobile_key';
51289
+ external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
51290
+ external_type_display_name?: string | undefined;
51291
+ created_at: string;
51292
+ workspace_id: string;
51293
+ starts_at?: string | undefined;
51294
+ ends_at?: string | undefined;
51295
+ errors: Array<{
51296
+ error_code: string;
51297
+ message: string;
51298
+ }>;
51299
+ warnings: Array<{
51300
+ warning_code: string;
51301
+ message: string;
51302
+ }>;
51303
+ is_multi_phone_sync_credential?: boolean | undefined;
51304
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
51305
+ latest_desired_state_synced_with_provider_at?: string | undefined;
51306
+ visionline_metadata?: {
51307
+ card_function_type: 'guest' | 'staff';
51308
+ joiner_acs_credential_ids?: string[] | undefined;
51309
+ guest_acs_entrance_ids?: string[] | undefined;
51310
+ common_acs_entrance_ids?: string[] | undefined;
51311
+ is_valid?: boolean | undefined;
51312
+ auto_join?: boolean | undefined;
51313
+ card_id?: string | undefined;
51314
+ credential_id?: string | undefined;
51315
+ } | undefined;
51316
+ is_managed: false;
51317
+ }) | null;
48197
51318
  };
48198
51319
  } | {
48199
51320
  /** The ID of the action attempt. */
48200
51321
  action_attempt_id: string;
48201
51322
  status: 'error';
48202
51323
  result: null;
48203
- action_type: 'READ_CARD';
51324
+ action_type: 'SCAN_CARD';
48204
51325
  error: {
48205
51326
  type: 'no_card_on_encoder';
48206
51327
  message: string;