@seamapi/types 1.263.0 → 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: {
@@ -25434,6 +26455,12 @@ declare const _default: {
25434
26455
  'application/json': {
25435
26456
  schema: {
25436
26457
  properties: {
26458
+ devices: {
26459
+ items: {
26460
+ $ref: string;
26461
+ };
26462
+ type: string;
26463
+ };
25437
26464
  ok: {
25438
26465
  type: string;
25439
26466
  };
@@ -28746,23 +29773,128 @@ interface Routes {
28746
29773
  status: 'pending';
28747
29774
  result: null;
28748
29775
  error: null;
28749
- action_type: 'READ_CARD';
29776
+ action_type: 'SCAN_CARD';
28750
29777
  } | {
28751
29778
  /** The ID of the action attempt. */
28752
29779
  action_attempt_id: string;
28753
29780
  status: 'success';
28754
29781
  error: null;
28755
- action_type: 'READ_CARD';
29782
+ action_type: 'SCAN_CARD';
28756
29783
  result: {
28757
- /** A number or string that physically identifies this card. */
28758
- 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;
28759
29891
  };
28760
29892
  } | {
28761
29893
  /** The ID of the action attempt. */
28762
29894
  action_attempt_id: string;
28763
29895
  status: 'error';
28764
29896
  result: null;
28765
- action_type: 'READ_CARD';
29897
+ action_type: 'SCAN_CARD';
28766
29898
  error: {
28767
29899
  type: 'no_card_on_encoder';
28768
29900
  message: string;
@@ -29350,23 +30482,128 @@ interface Routes {
29350
30482
  status: 'pending';
29351
30483
  result: null;
29352
30484
  error: null;
29353
- action_type: 'READ_CARD';
30485
+ action_type: 'SCAN_CARD';
29354
30486
  } | {
29355
30487
  /** The ID of the action attempt. */
29356
30488
  action_attempt_id: string;
29357
30489
  status: 'success';
29358
30490
  error: null;
29359
- action_type: 'READ_CARD';
30491
+ action_type: 'SCAN_CARD';
29360
30492
  result: {
29361
- /** A number or string that physically identifies this card. */
29362
- 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;
29363
30600
  };
29364
30601
  } | {
29365
30602
  /** The ID of the action attempt. */
29366
30603
  action_attempt_id: string;
29367
30604
  status: 'error';
29368
30605
  result: null;
29369
- action_type: 'READ_CARD';
30606
+ action_type: 'SCAN_CARD';
29370
30607
  error: {
29371
30608
  type: 'no_card_on_encoder';
29372
30609
  message: string;
@@ -30111,23 +31348,128 @@ interface Routes {
30111
31348
  status: 'pending';
30112
31349
  result: null;
30113
31350
  error: null;
30114
- action_type: 'READ_CARD';
31351
+ action_type: 'SCAN_CARD';
30115
31352
  } | {
30116
31353
  /** The ID of the action attempt. */
30117
31354
  action_attempt_id: string;
30118
31355
  status: 'success';
30119
31356
  error: null;
30120
- action_type: 'READ_CARD';
31357
+ action_type: 'SCAN_CARD';
30121
31358
  result: {
30122
- /** A number or string that physically identifies this card. */
30123
- 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;
30124
31466
  };
30125
31467
  } | {
30126
31468
  /** The ID of the action attempt. */
30127
31469
  action_attempt_id: string;
30128
31470
  status: 'error';
30129
31471
  result: null;
30130
- action_type: 'READ_CARD';
31472
+ action_type: 'SCAN_CARD';
30131
31473
  error: {
30132
31474
  type: 'no_card_on_encoder';
30133
31475
  message: string;
@@ -30702,23 +32044,128 @@ interface Routes {
30702
32044
  status: 'pending';
30703
32045
  result: null;
30704
32046
  error: null;
30705
- action_type: 'READ_CARD';
32047
+ action_type: 'SCAN_CARD';
30706
32048
  } | {
30707
32049
  /** The ID of the action attempt. */
30708
32050
  action_attempt_id: string;
30709
32051
  status: 'success';
30710
32052
  error: null;
30711
- action_type: 'READ_CARD';
32053
+ action_type: 'SCAN_CARD';
30712
32054
  result: {
30713
- /** A number or string that physically identifies this card. */
30714
- 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;
30715
32162
  };
30716
32163
  } | {
30717
32164
  /** The ID of the action attempt. */
30718
32165
  action_attempt_id: string;
30719
32166
  status: 'error';
30720
32167
  result: null;
30721
- action_type: 'READ_CARD';
32168
+ action_type: 'SCAN_CARD';
30722
32169
  error: {
30723
32170
  type: 'no_card_on_encoder';
30724
32171
  message: string;
@@ -32037,23 +33484,128 @@ interface Routes {
32037
33484
  status: 'pending';
32038
33485
  result: null;
32039
33486
  error: null;
32040
- action_type: 'READ_CARD';
33487
+ action_type: 'SCAN_CARD';
32041
33488
  } | {
32042
33489
  /** The ID of the action attempt. */
32043
33490
  action_attempt_id: string;
32044
33491
  status: 'success';
32045
33492
  error: null;
32046
- action_type: 'READ_CARD';
33493
+ action_type: 'SCAN_CARD';
32047
33494
  result: {
32048
- /** A number or string that physically identifies this card. */
32049
- 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;
32050
33602
  };
32051
33603
  } | {
32052
33604
  /** The ID of the action attempt. */
32053
33605
  action_attempt_id: string;
32054
33606
  status: 'error';
32055
33607
  result: null;
32056
- action_type: 'READ_CARD';
33608
+ action_type: 'SCAN_CARD';
32057
33609
  error: {
32058
33610
  type: 'no_card_on_encoder';
32059
33611
  message: string;
@@ -32885,8 +34437,8 @@ interface Routes {
32885
34437
  }>;
32886
34438
  };
32887
34439
  };
32888
- '/acs/encoders/read_card': {
32889
- route: '/acs/encoders/read_card';
34440
+ '/acs/encoders/scan_card': {
34441
+ route: '/acs/encoders/scan_card';
32890
34442
  method: 'POST';
32891
34443
  queryParams: {};
32892
34444
  jsonBody: {};
@@ -32953,23 +34505,128 @@ interface Routes {
32953
34505
  status: 'pending';
32954
34506
  result: null;
32955
34507
  error: null;
32956
- action_type: 'READ_CARD';
34508
+ action_type: 'SCAN_CARD';
32957
34509
  } | {
32958
34510
  /** The ID of the action attempt. */
32959
34511
  action_attempt_id: string;
32960
34512
  status: 'success';
32961
34513
  error: null;
32962
- action_type: 'READ_CARD';
34514
+ action_type: 'SCAN_CARD';
32963
34515
  result: {
32964
- /** A number or string that physically identifies this card. */
32965
- 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;
32966
34623
  };
32967
34624
  } | {
32968
34625
  /** The ID of the action attempt. */
32969
34626
  action_attempt_id: string;
32970
34627
  status: 'error';
32971
34628
  result: null;
32972
- action_type: 'READ_CARD';
34629
+ action_type: 'SCAN_CARD';
32973
34630
  error: {
32974
34631
  type: 'no_card_on_encoder';
32975
34632
  message: string;
@@ -34564,23 +36221,128 @@ interface Routes {
34564
36221
  status: 'pending';
34565
36222
  result: null;
34566
36223
  error: null;
34567
- action_type: 'READ_CARD';
36224
+ action_type: 'SCAN_CARD';
34568
36225
  } | {
34569
36226
  /** The ID of the action attempt. */
34570
36227
  action_attempt_id: string;
34571
36228
  status: 'success';
34572
36229
  error: null;
34573
- action_type: 'READ_CARD';
36230
+ action_type: 'SCAN_CARD';
34574
36231
  result: {
34575
- /** A number or string that physically identifies this card. */
34576
- 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;
34577
36339
  };
34578
36340
  } | {
34579
36341
  /** The ID of the action attempt. */
34580
36342
  action_attempt_id: string;
34581
36343
  status: 'error';
34582
36344
  result: null;
34583
- action_type: 'READ_CARD';
36345
+ action_type: 'SCAN_CARD';
34584
36346
  error: {
34585
36347
  type: 'no_card_on_encoder';
34586
36348
  message: string;
@@ -35017,23 +36779,128 @@ interface Routes {
35017
36779
  status: 'pending';
35018
36780
  result: null;
35019
36781
  error: null;
35020
- action_type: 'READ_CARD';
36782
+ action_type: 'SCAN_CARD';
35021
36783
  } | {
35022
36784
  /** The ID of the action attempt. */
35023
36785
  action_attempt_id: string;
35024
36786
  status: 'success';
35025
36787
  error: null;
35026
- action_type: 'READ_CARD';
36788
+ action_type: 'SCAN_CARD';
35027
36789
  result: {
35028
- /** A number or string that physically identifies this card. */
35029
- 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;
35030
36897
  };
35031
36898
  } | {
35032
36899
  /** The ID of the action attempt. */
35033
36900
  action_attempt_id: string;
35034
36901
  status: 'error';
35035
36902
  result: null;
35036
- action_type: 'READ_CARD';
36903
+ action_type: 'SCAN_CARD';
35037
36904
  error: {
35038
36905
  type: 'no_card_on_encoder';
35039
36906
  message: string;
@@ -39016,23 +40883,128 @@ interface Routes {
39016
40883
  status: 'pending';
39017
40884
  result: null;
39018
40885
  error: null;
39019
- action_type: 'READ_CARD';
40886
+ action_type: 'SCAN_CARD';
39020
40887
  } | {
39021
40888
  /** The ID of the action attempt. */
39022
40889
  action_attempt_id: string;
39023
40890
  status: 'success';
39024
40891
  error: null;
39025
- action_type: 'READ_CARD';
40892
+ action_type: 'SCAN_CARD';
39026
40893
  result: {
39027
- /** A number or string that physically identifies this card. */
39028
- 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;
39029
41001
  };
39030
41002
  } | {
39031
41003
  /** The ID of the action attempt. */
39032
41004
  action_attempt_id: string;
39033
41005
  status: 'error';
39034
41006
  result: null;
39035
- action_type: 'READ_CARD';
41007
+ action_type: 'SCAN_CARD';
39036
41008
  error: {
39037
41009
  type: 'no_card_on_encoder';
39038
41010
  message: string;
@@ -39470,23 +41442,128 @@ interface Routes {
39470
41442
  status: 'pending';
39471
41443
  result: null;
39472
41444
  error: null;
39473
- action_type: 'READ_CARD';
41445
+ action_type: 'SCAN_CARD';
39474
41446
  } | {
39475
41447
  /** The ID of the action attempt. */
39476
41448
  action_attempt_id: string;
39477
41449
  status: 'success';
39478
41450
  error: null;
39479
- action_type: 'READ_CARD';
41451
+ action_type: 'SCAN_CARD';
39480
41452
  result: {
39481
- /** A number or string that physically identifies this card. */
39482
- 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;
39483
41560
  };
39484
41561
  } | {
39485
41562
  /** The ID of the action attempt. */
39486
41563
  action_attempt_id: string;
39487
41564
  status: 'error';
39488
41565
  result: null;
39489
- action_type: 'READ_CARD';
41566
+ action_type: 'SCAN_CARD';
39490
41567
  error: {
39491
41568
  type: 'no_card_on_encoder';
39492
41569
  message: string;
@@ -40866,23 +42943,128 @@ interface Routes {
40866
42943
  status: 'pending';
40867
42944
  result: null;
40868
42945
  error: null;
40869
- action_type: 'READ_CARD';
42946
+ action_type: 'SCAN_CARD';
40870
42947
  } | {
40871
42948
  /** The ID of the action attempt. */
40872
42949
  action_attempt_id: string;
40873
42950
  status: 'success';
40874
42951
  error: null;
40875
- action_type: 'READ_CARD';
42952
+ action_type: 'SCAN_CARD';
40876
42953
  result: {
40877
- /** A number or string that physically identifies this card. */
40878
- 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;
40879
43061
  };
40880
43062
  } | {
40881
43063
  /** The ID of the action attempt. */
40882
43064
  action_attempt_id: string;
40883
43065
  status: 'error';
40884
43066
  result: null;
40885
- action_type: 'READ_CARD';
43067
+ action_type: 'SCAN_CARD';
40886
43068
  error: {
40887
43069
  type: 'no_card_on_encoder';
40888
43070
  message: string;
@@ -41330,23 +43512,128 @@ interface Routes {
41330
43512
  status: 'pending';
41331
43513
  result: null;
41332
43514
  error: null;
41333
- action_type: 'READ_CARD';
43515
+ action_type: 'SCAN_CARD';
41334
43516
  } | {
41335
43517
  /** The ID of the action attempt. */
41336
43518
  action_attempt_id: string;
41337
43519
  status: 'success';
41338
43520
  error: null;
41339
- action_type: 'READ_CARD';
43521
+ action_type: 'SCAN_CARD';
41340
43522
  result: {
41341
- /** A number or string that physically identifies this card. */
41342
- 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;
41343
43630
  };
41344
43631
  } | {
41345
43632
  /** The ID of the action attempt. */
41346
43633
  action_attempt_id: string;
41347
43634
  status: 'error';
41348
43635
  result: null;
41349
- action_type: 'READ_CARD';
43636
+ action_type: 'SCAN_CARD';
41350
43637
  error: {
41351
43638
  type: 'no_card_on_encoder';
41352
43639
  message: string;
@@ -41833,23 +44120,128 @@ interface Routes {
41833
44120
  status: 'pending';
41834
44121
  result: null;
41835
44122
  error: null;
41836
- action_type: 'READ_CARD';
44123
+ action_type: 'SCAN_CARD';
41837
44124
  } | {
41838
44125
  /** The ID of the action attempt. */
41839
44126
  action_attempt_id: string;
41840
44127
  status: 'success';
41841
44128
  error: null;
41842
- action_type: 'READ_CARD';
44129
+ action_type: 'SCAN_CARD';
41843
44130
  result: {
41844
- /** A number or string that physically identifies this card. */
41845
- 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;
41846
44238
  };
41847
44239
  } | {
41848
44240
  /** The ID of the action attempt. */
41849
44241
  action_attempt_id: string;
41850
44242
  status: 'error';
41851
44243
  result: null;
41852
- action_type: 'READ_CARD';
44244
+ action_type: 'SCAN_CARD';
41853
44245
  error: {
41854
44246
  type: 'no_card_on_encoder';
41855
44247
  message: string;
@@ -42469,23 +44861,128 @@ interface Routes {
42469
44861
  status: 'pending';
42470
44862
  result: null;
42471
44863
  error: null;
42472
- action_type: 'READ_CARD';
44864
+ action_type: 'SCAN_CARD';
42473
44865
  } | {
42474
44866
  /** The ID of the action attempt. */
42475
44867
  action_attempt_id: string;
42476
44868
  status: 'success';
42477
44869
  error: null;
42478
- action_type: 'READ_CARD';
44870
+ action_type: 'SCAN_CARD';
42479
44871
  result: {
42480
- /** A number or string that physically identifies this card. */
42481
- 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;
42482
44979
  };
42483
44980
  } | {
42484
44981
  /** The ID of the action attempt. */
42485
44982
  action_attempt_id: string;
42486
44983
  status: 'error';
42487
44984
  result: null;
42488
- action_type: 'READ_CARD';
44985
+ action_type: 'SCAN_CARD';
42489
44986
  error: {
42490
44987
  type: 'no_card_on_encoder';
42491
44988
  message: string;
@@ -42925,23 +45422,128 @@ interface Routes {
42925
45422
  status: 'pending';
42926
45423
  result: null;
42927
45424
  error: null;
42928
- action_type: 'READ_CARD';
45425
+ action_type: 'SCAN_CARD';
42929
45426
  } | {
42930
45427
  /** The ID of the action attempt. */
42931
45428
  action_attempt_id: string;
42932
45429
  status: 'success';
42933
45430
  error: null;
42934
- action_type: 'READ_CARD';
45431
+ action_type: 'SCAN_CARD';
42935
45432
  result: {
42936
- /** A number or string that physically identifies this card. */
42937
- 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;
42938
45540
  };
42939
45541
  } | {
42940
45542
  /** The ID of the action attempt. */
42941
45543
  action_attempt_id: string;
42942
45544
  status: 'error';
42943
45545
  result: null;
42944
- action_type: 'READ_CARD';
45546
+ action_type: 'SCAN_CARD';
42945
45547
  error: {
42946
45548
  type: 'no_card_on_encoder';
42947
45549
  message: string;
@@ -43865,23 +46467,128 @@ interface Routes {
43865
46467
  status: 'pending';
43866
46468
  result: null;
43867
46469
  error: null;
43868
- action_type: 'READ_CARD';
46470
+ action_type: 'SCAN_CARD';
43869
46471
  } | {
43870
46472
  /** The ID of the action attempt. */
43871
46473
  action_attempt_id: string;
43872
46474
  status: 'success';
43873
46475
  error: null;
43874
- action_type: 'READ_CARD';
46476
+ action_type: 'SCAN_CARD';
43875
46477
  result: {
43876
- /** A number or string that physically identifies this card. */
43877
- 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;
43878
46585
  };
43879
46586
  } | {
43880
46587
  /** The ID of the action attempt. */
43881
46588
  action_attempt_id: string;
43882
46589
  status: 'error';
43883
46590
  result: null;
43884
- action_type: 'READ_CARD';
46591
+ action_type: 'SCAN_CARD';
43885
46592
  error: {
43886
46593
  type: 'no_card_on_encoder';
43887
46594
  message: string;
@@ -44323,23 +47030,128 @@ interface Routes {
44323
47030
  status: 'pending';
44324
47031
  result: null;
44325
47032
  error: null;
44326
- action_type: 'READ_CARD';
47033
+ action_type: 'SCAN_CARD';
44327
47034
  } | {
44328
47035
  /** The ID of the action attempt. */
44329
47036
  action_attempt_id: string;
44330
47037
  status: 'success';
44331
47038
  error: null;
44332
- action_type: 'READ_CARD';
47039
+ action_type: 'SCAN_CARD';
44333
47040
  result: {
44334
- /** A number or string that physically identifies this card. */
44335
- 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;
44336
47148
  };
44337
47149
  } | {
44338
47150
  /** The ID of the action attempt. */
44339
47151
  action_attempt_id: string;
44340
47152
  status: 'error';
44341
47153
  result: null;
44342
- action_type: 'READ_CARD';
47154
+ action_type: 'SCAN_CARD';
44343
47155
  error: {
44344
47156
  type: 'no_card_on_encoder';
44345
47157
  message: string;
@@ -45174,6 +47986,445 @@ interface Routes {
45174
47986
  can_simulate_connection?: boolean | undefined;
45175
47987
  can_simulate_disconnection?: boolean | undefined;
45176
47988
  }>;
47989
+ devices: Array<{
47990
+ /** Unique identifier for the device. */
47991
+ device_id: string;
47992
+ /** Type of the device. */
47993
+ device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat') | ('ios_phone' | 'android_phone') | 'visionline_encoder';
47994
+ /** Optional nickname to describe the device, settable through Seam */
47995
+ nickname?: string | undefined;
47996
+ /** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
47997
+ display_name: string;
47998
+ /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */
47999
+ capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
48000
+ /** Properties of the device. */
48001
+ properties: (({
48002
+ /** Indicates whether the device is online. */
48003
+ online: boolean;
48004
+ /** Name of the device.
48005
+ * @deprecated use device.display_name instead */
48006
+ name: string;
48007
+ /** Represents the accessory keypad state. */
48008
+ accessory_keypad?: {
48009
+ /** Indicates if the accessory_keypad is connected to the device. */
48010
+ is_connected: boolean;
48011
+ /** Indicates if the keypad battery properties. */
48012
+ battery?: {
48013
+ level: number;
48014
+ } | undefined;
48015
+ } | undefined;
48016
+ appearance: {
48017
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
48018
+ name: string;
48019
+ };
48020
+ model: {
48021
+ /** Indicates whether the device can connect a accessory keypad. */
48022
+ can_connect_accessory_keypad?: boolean | undefined;
48023
+ /** Display name of the device model. */
48024
+ display_name: string;
48025
+ /** Display name that corresponds to the manufacturer-specific terminology for the device. */
48026
+ manufacturer_display_name: string;
48027
+ /** Indicates whether the device has a built in accessory keypad. */
48028
+ has_built_in_keypad?: boolean | undefined;
48029
+ /** Indicates whether the device supports offline access codes. */
48030
+ offline_access_codes_supported?: boolean | undefined;
48031
+ /** Indicates whether the device supports online access codes. */
48032
+ online_access_codes_supported?: boolean | undefined;
48033
+ /**
48034
+ * @deprecated use device.properties.model.can_connect_accessory_keypad */
48035
+ accessory_keypad_supported?: boolean | undefined;
48036
+ };
48037
+ /** Indicates whether the device has direct power. */
48038
+ has_direct_power?: boolean | undefined;
48039
+ /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
48040
+ battery_level?: number | undefined;
48041
+ /** Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage. */
48042
+ battery?: {
48043
+ level: number;
48044
+ status: 'critical' | 'low' | 'good' | 'full';
48045
+ } | undefined;
48046
+ /** Manufacturer of the device. */
48047
+ manufacturer?: string | undefined;
48048
+ /** Image URL for the device. */
48049
+ image_url?: string | undefined;
48050
+ /** Alt text for the device image. */
48051
+ image_alt_text?: string | undefined;
48052
+ /** Serial number of the device. */
48053
+ serial_number?: string | undefined;
48054
+ /** Indicates whether it is currently possible to use online access codes for the device. */
48055
+ online_access_codes_enabled?: boolean | undefined;
48056
+ /** Indicates whether it is currently possible to use offline access codes for the device. */
48057
+ offline_access_codes_enabled?: boolean | undefined;
48058
+ /**
48059
+ * @deprecated use device.properties.model.can_connect_accessory_keypad */
48060
+ supports_accessory_keypad?: boolean | undefined;
48061
+ /**
48062
+ * @deprecated use offline_access_codes_enabled */
48063
+ supports_offline_access_codes?: boolean | undefined;
48064
+ /** Indicates current noise level in decibels, if the device supports noise detection. */
48065
+ noise_level_decibels?: number | undefined;
48066
+ /** Array of noise threshold IDs that are currently triggering. */
48067
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
48068
+ } & {
48069
+ assa_abloy_credential_service_metadata?: ({
48070
+ has_active_endpoint: boolean;
48071
+ endpoints: Array<{
48072
+ endpoint_id: string;
48073
+ is_active: boolean;
48074
+ }>;
48075
+ } | undefined) | undefined;
48076
+ }) & {
48077
+ august_metadata?: {
48078
+ lock_id: string;
48079
+ lock_name: string;
48080
+ house_name: string;
48081
+ has_keypad: boolean;
48082
+ keypad_battery_level?: string | undefined;
48083
+ model?: string | undefined;
48084
+ house_id?: string | undefined;
48085
+ } | undefined;
48086
+ avigilon_alta_metadata?: {
48087
+ entry_name: string;
48088
+ org_name: string;
48089
+ zone_id: number;
48090
+ zone_name: string;
48091
+ site_id: number;
48092
+ site_name: string;
48093
+ entry_relays_total_count: number;
48094
+ } | undefined;
48095
+ schlage_metadata?: {
48096
+ device_id: string;
48097
+ device_name: string;
48098
+ access_code_length: number | null;
48099
+ model?: string | undefined;
48100
+ } | undefined;
48101
+ smartthings_metadata?: {
48102
+ device_id: string;
48103
+ device_name: string;
48104
+ model?: string | undefined;
48105
+ location_id?: string | undefined;
48106
+ } | undefined;
48107
+ lockly_metadata?: {
48108
+ device_id: string;
48109
+ device_name: string;
48110
+ model?: string | undefined;
48111
+ } | undefined;
48112
+ nuki_metadata?: {
48113
+ device_id: string;
48114
+ device_name: string;
48115
+ keypad_battery_critical?: boolean | undefined;
48116
+ keypad_paired?: boolean | undefined;
48117
+ keypad_2_paired?: boolean | undefined;
48118
+ } | undefined;
48119
+ kwikset_metadata?: {
48120
+ device_id: string;
48121
+ device_name: string;
48122
+ model_number: string;
48123
+ } | undefined;
48124
+ salto_metadata?: {
48125
+ lock_id: string;
48126
+ customer_reference: string;
48127
+ lock_type: string;
48128
+ battery_level: string;
48129
+ locked_state: string;
48130
+ model?: string | undefined;
48131
+ } | undefined;
48132
+ genie_metadata?: {
48133
+ device_name: string;
48134
+ door_name: string;
48135
+ } | undefined;
48136
+ brivo_metadata?: {
48137
+ device_name: string;
48138
+ } | undefined;
48139
+ igloo_metadata?: {
48140
+ device_id: string;
48141
+ bridge_id: string;
48142
+ model?: string | undefined;
48143
+ } | undefined;
48144
+ noiseaware_metadata?: {
48145
+ device_model: 'indoor' | 'outdoor';
48146
+ noise_level_nrs: number;
48147
+ noise_level_decibel: number;
48148
+ device_name: string;
48149
+ device_id: string;
48150
+ } | undefined;
48151
+ minut_metadata?: {
48152
+ device_id: string;
48153
+ device_name: string;
48154
+ latest_sensor_values: {
48155
+ temperature: {
48156
+ time: string;
48157
+ value: number;
48158
+ };
48159
+ sound: {
48160
+ time: string;
48161
+ value: number;
48162
+ };
48163
+ humidity: {
48164
+ time: string;
48165
+ value: number;
48166
+ };
48167
+ pressure: {
48168
+ time: string;
48169
+ value: number;
48170
+ };
48171
+ accelerometer_z: {
48172
+ time: string;
48173
+ value: number;
48174
+ };
48175
+ };
48176
+ } | undefined;
48177
+ four_suites_metadata?: {
48178
+ device_id: number;
48179
+ device_name: string;
48180
+ reclose_delay_in_seconds: number;
48181
+ } | undefined;
48182
+ two_n_metadata?: {
48183
+ device_id: number;
48184
+ device_name: string;
48185
+ } | undefined;
48186
+ controlbyweb_metadata?: {
48187
+ device_id: string;
48188
+ device_name: string;
48189
+ relay_name: string | null;
48190
+ } | undefined;
48191
+ ttlock_metadata?: {
48192
+ lock_id: number;
48193
+ lock_alias: string;
48194
+ feature_value: string;
48195
+ features: {
48196
+ passcode: boolean;
48197
+ passcode_management: boolean;
48198
+ unlock_via_gateway: boolean;
48199
+ lock_command: boolean;
48200
+ incomplete_keyboard_passcode: boolean;
48201
+ };
48202
+ has_gateway?: boolean | undefined;
48203
+ wireless_keypads?: Array<{
48204
+ wireless_keypad_id: number;
48205
+ wireless_keypad_name: string;
48206
+ }> | undefined;
48207
+ } | undefined;
48208
+ seam_bridge_metadata?: {
48209
+ unlock_method?: ('bridge' | 'doorking') | undefined;
48210
+ device_num: number;
48211
+ name: string;
48212
+ } | undefined;
48213
+ igloohome_metadata?: {
48214
+ device_id: string;
48215
+ device_name: string;
48216
+ bridge_id?: string | undefined;
48217
+ bridge_name?: string | undefined;
48218
+ keypad_id?: string | undefined;
48219
+ } | undefined;
48220
+ nest_metadata?: {
48221
+ nest_device_id: string;
48222
+ device_name: string;
48223
+ custom_name: string;
48224
+ } | undefined;
48225
+ ecobee_metadata?: {
48226
+ ecobee_device_id: string;
48227
+ device_name: string;
48228
+ } | undefined;
48229
+ honeywell_resideo_metadata?: {
48230
+ honeywell_resideo_device_id: string;
48231
+ device_name: string;
48232
+ } | undefined;
48233
+ hubitat_metadata?: {
48234
+ device_id: string;
48235
+ device_name: string;
48236
+ device_label: string;
48237
+ } | undefined;
48238
+ dormakaba_oracode_metadata?: {
48239
+ door_id?: number | undefined;
48240
+ door_name: string;
48241
+ device_id?: (number | string) | undefined;
48242
+ door_is_wireless: boolean;
48243
+ /** @DEPRECATED */
48244
+ site_id: number | null;
48245
+ site_name: string;
48246
+ iana_timezone?: string | undefined;
48247
+ predefined_time_slots?: Array<{
48248
+ name: string;
48249
+ prefix: number;
48250
+ check_in_time: string;
48251
+ check_out_time: string;
48252
+ is_24_hour: boolean;
48253
+ is_biweekly_mode: boolean;
48254
+ is_one_shot: boolean;
48255
+ is_master: boolean;
48256
+ ext_dormakaba_oracode_user_level_prefix: number;
48257
+ dormakaba_oracode_user_level_id: string;
48258
+ }> | undefined;
48259
+ } | undefined;
48260
+ wyze_metadata?: {
48261
+ device_id: string;
48262
+ device_name: string;
48263
+ product_name: string;
48264
+ product_type: string;
48265
+ product_model: string;
48266
+ device_info_model: string;
48267
+ keypad_uuid?: string | undefined;
48268
+ locker_status_hardlock?: number | undefined;
48269
+ } | undefined;
48270
+ tedee_metadata?: {
48271
+ device_id: number;
48272
+ serial_number: string;
48273
+ device_name: string;
48274
+ device_model: string;
48275
+ bridge_id: number;
48276
+ bridge_name: string;
48277
+ keypad_id?: number | undefined;
48278
+ } | undefined;
48279
+ visionline_metadata?: {
48280
+ encoder_id: string;
48281
+ } | undefined;
48282
+ akiles_metadata?: {
48283
+ gadget_name: string;
48284
+ gadget_id: string;
48285
+ } | undefined;
48286
+ }) & ({
48287
+ _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
48288
+ code_constraints?: (Array<{
48289
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
48290
+ } | {
48291
+ constraint_type: 'name_length' | 'name_must_be_unique';
48292
+ min_length?: number | undefined;
48293
+ max_length?: number | undefined;
48294
+ }> | undefined) | undefined;
48295
+ supported_code_lengths?: (number[] | undefined) | undefined;
48296
+ max_active_codes_supported?: (number | undefined) | undefined;
48297
+ supports_backup_access_code_pool?: (boolean | undefined) | undefined;
48298
+ has_native_entry_events?: (boolean | undefined) | undefined;
48299
+ locked?: (boolean | undefined) | undefined;
48300
+ keypad_battery?: ({
48301
+ level: number;
48302
+ } | undefined) | undefined;
48303
+ door_open?: (boolean | undefined) | undefined;
48304
+ } & {
48305
+ temperature_fahrenheit?: number | undefined;
48306
+ temperature_celsius?: number | undefined;
48307
+ relative_humidity?: number | undefined;
48308
+ available_hvac_mode_settings?: Array<'off' | 'heat' | 'cool' | 'heat_cool'> | undefined;
48309
+ available_fan_mode_settings?: Array<'auto' | 'on' | 'circulate'> | undefined;
48310
+ is_heating?: boolean | undefined;
48311
+ is_cooling?: boolean | undefined;
48312
+ is_fan_running?: boolean | undefined;
48313
+ /**
48314
+ * @deprecated use current_climate_setting.fan_mode_setting instead. */
48315
+ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined;
48316
+ is_temporary_manual_override_active?: boolean | undefined;
48317
+ current_climate_setting?: {
48318
+ climate_preset_key?: string | undefined;
48319
+ can_edit?: boolean | undefined;
48320
+ can_delete?: boolean | undefined;
48321
+ name?: ((string | null) | undefined) | undefined;
48322
+ display_name?: string | undefined;
48323
+ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined;
48324
+ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool') | undefined) | undefined;
48325
+ cooling_set_point_celsius?: (number | undefined) | undefined;
48326
+ heating_set_point_celsius?: (number | undefined) | undefined;
48327
+ cooling_set_point_fahrenheit?: (number | undefined) | undefined;
48328
+ heating_set_point_fahrenheit?: (number | undefined) | undefined;
48329
+ manual_override_allowed?: boolean | undefined;
48330
+ } | undefined;
48331
+ /**
48332
+ * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead. */
48333
+ default_climate_setting?: {
48334
+ climate_preset_key?: string | undefined;
48335
+ can_edit?: boolean | undefined;
48336
+ can_delete?: boolean | undefined;
48337
+ name?: ((string | null) | undefined) | undefined;
48338
+ display_name?: string | undefined;
48339
+ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined;
48340
+ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool') | undefined) | undefined;
48341
+ cooling_set_point_celsius?: (number | undefined) | undefined;
48342
+ heating_set_point_celsius?: (number | undefined) | undefined;
48343
+ cooling_set_point_fahrenheit?: (number | undefined) | undefined;
48344
+ heating_set_point_fahrenheit?: (number | undefined) | undefined;
48345
+ manual_override_allowed?: boolean | undefined;
48346
+ } | undefined;
48347
+ available_climate_presets?: Array<{
48348
+ climate_preset_key: string;
48349
+ can_edit: boolean;
48350
+ can_delete: boolean;
48351
+ name?: (string | null) | undefined;
48352
+ display_name: string;
48353
+ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined;
48354
+ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
48355
+ cooling_set_point_celsius?: number | undefined;
48356
+ heating_set_point_celsius?: number | undefined;
48357
+ cooling_set_point_fahrenheit?: number | undefined;
48358
+ heating_set_point_fahrenheit?: number | undefined;
48359
+ manual_override_allowed: boolean;
48360
+ }> | undefined;
48361
+ fallback_climate_preset_key?: (string | null) | undefined;
48362
+ active_thermostat_schedule?: ({
48363
+ thermostat_schedule_id: string;
48364
+ device_id: string;
48365
+ name?: string | undefined;
48366
+ climate_preset_key: string;
48367
+ max_override_period_minutes: number;
48368
+ starts_at: string;
48369
+ ends_at: string;
48370
+ created_at: string;
48371
+ /** Collection of errors associated with the thermostat schedule, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
48372
+ errors?: any;
48373
+ } | null) | undefined;
48374
+ min_cooling_set_point_celsius?: number | undefined;
48375
+ min_cooling_set_point_fahrenheit?: number | undefined;
48376
+ max_cooling_set_point_celsius?: number | undefined;
48377
+ max_cooling_set_point_fahrenheit?: number | undefined;
48378
+ min_heating_set_point_celsius?: number | undefined;
48379
+ min_heating_set_point_fahrenheit?: number | undefined;
48380
+ max_heating_set_point_celsius?: number | undefined;
48381
+ max_heating_set_point_fahrenheit?: number | undefined;
48382
+ min_heating_cooling_delta_celsius?: number | undefined;
48383
+ min_heating_cooling_delta_fahrenheit?: number | undefined;
48384
+ });
48385
+ /** Location information for the device. */
48386
+ location: {
48387
+ /** Name of the device location. */
48388
+ location_name?: string | undefined;
48389
+ /** Time zone of the device location. */
48390
+ timezone?: string | undefined;
48391
+ } | null;
48392
+ /** Unique identifier for the account associated with the device. */
48393
+ connected_account_id: string;
48394
+ /** Unique identifier for the Seam workspace associated with the device. */
48395
+ workspace_id: string;
48396
+ /** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
48397
+ errors: Array<{
48398
+ message: string;
48399
+ is_device_error: true;
48400
+ error_code: string;
48401
+ } | {
48402
+ message: string;
48403
+ is_connected_account_error: true;
48404
+ error_code: string;
48405
+ }>;
48406
+ /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
48407
+ warnings: Array<{
48408
+ message: string;
48409
+ warning_code: string;
48410
+ }>;
48411
+ /** Date and time at which the device object was created. */
48412
+ created_at: string;
48413
+ /** Indicates whether Seam manages the device. */
48414
+ is_managed: true;
48415
+ custom_metadata: Record<string, string | boolean>;
48416
+ can_remotely_unlock?: boolean | undefined;
48417
+ can_remotely_lock?: boolean | undefined;
48418
+ can_program_offline_access_codes?: boolean | undefined;
48419
+ can_program_online_access_codes?: boolean | undefined;
48420
+ can_hvac_heat?: boolean | undefined;
48421
+ can_hvac_cool?: boolean | undefined;
48422
+ can_hvac_heat_cool?: boolean | undefined;
48423
+ can_turn_off_hvac?: boolean | undefined;
48424
+ can_simulate_removal?: boolean | undefined;
48425
+ can_simulate_connection?: boolean | undefined;
48426
+ can_simulate_disconnection?: boolean | undefined;
48427
+ }>;
45177
48428
  };
45178
48429
  };
45179
48430
  '/thermostats/off': {
@@ -45241,23 +48492,128 @@ interface Routes {
45241
48492
  status: 'pending';
45242
48493
  result: null;
45243
48494
  error: null;
45244
- action_type: 'READ_CARD';
48495
+ action_type: 'SCAN_CARD';
45245
48496
  } | {
45246
48497
  /** The ID of the action attempt. */
45247
48498
  action_attempt_id: string;
45248
48499
  status: 'success';
45249
48500
  error: null;
45250
- action_type: 'READ_CARD';
48501
+ action_type: 'SCAN_CARD';
45251
48502
  result: {
45252
- /** A number or string that physically identifies this card. */
45253
- 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;
45254
48610
  };
45255
48611
  } | {
45256
48612
  /** The ID of the action attempt. */
45257
48613
  action_attempt_id: string;
45258
48614
  status: 'error';
45259
48615
  result: null;
45260
- action_type: 'READ_CARD';
48616
+ action_type: 'SCAN_CARD';
45261
48617
  error: {
45262
48618
  type: 'no_card_on_encoder';
45263
48619
  message: string;
@@ -45816,23 +49172,128 @@ interface Routes {
45816
49172
  status: 'pending';
45817
49173
  result: null;
45818
49174
  error: null;
45819
- action_type: 'READ_CARD';
49175
+ action_type: 'SCAN_CARD';
45820
49176
  } | {
45821
49177
  /** The ID of the action attempt. */
45822
49178
  action_attempt_id: string;
45823
49179
  status: 'success';
45824
49180
  error: null;
45825
- action_type: 'READ_CARD';
49181
+ action_type: 'SCAN_CARD';
45826
49182
  result: {
45827
- /** A number or string that physically identifies this card. */
45828
- 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;
45829
49290
  };
45830
49291
  } | {
45831
49292
  /** The ID of the action attempt. */
45832
49293
  action_attempt_id: string;
45833
49294
  status: 'error';
45834
49295
  result: null;
45835
- action_type: 'READ_CARD';
49296
+ action_type: 'SCAN_CARD';
45836
49297
  error: {
45837
49298
  type: 'no_card_on_encoder';
45838
49299
  message: string;
@@ -47739,23 +51200,128 @@ interface Routes {
47739
51200
  status: 'pending';
47740
51201
  result: null;
47741
51202
  error: null;
47742
- action_type: 'READ_CARD';
51203
+ action_type: 'SCAN_CARD';
47743
51204
  } | {
47744
51205
  /** The ID of the action attempt. */
47745
51206
  action_attempt_id: string;
47746
51207
  status: 'success';
47747
51208
  error: null;
47748
- action_type: 'READ_CARD';
51209
+ action_type: 'SCAN_CARD';
47749
51210
  result: {
47750
- /** A number or string that physically identifies this card. */
47751
- 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;
47752
51318
  };
47753
51319
  } | {
47754
51320
  /** The ID of the action attempt. */
47755
51321
  action_attempt_id: string;
47756
51322
  status: 'error';
47757
51323
  result: null;
47758
- action_type: 'READ_CARD';
51324
+ action_type: 'SCAN_CARD';
47759
51325
  error: {
47760
51326
  type: 'no_card_on_encoder';
47761
51327
  message: string;