@seamapi/types 1.324.0 → 1.325.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.
@@ -1843,20 +1843,176 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1843
1843
  }>>;
1844
1844
  connected_account_id: z.ZodString;
1845
1845
  workspace_id: z.ZodString;
1846
- errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1846
+ errors: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1847
1847
  message: z.ZodString;
1848
1848
  is_device_error: z.ZodLiteral<true>;
1849
1849
  }, {
1850
- error_code: z.ZodString;
1850
+ error_code: z.ZodLiteral<"device_offline">;
1851
1851
  }>, "strip", z.ZodTypeAny, {
1852
1852
  message: string;
1853
- error_code: string;
1853
+ error_code: "device_offline";
1854
1854
  is_device_error: true;
1855
1855
  }, {
1856
1856
  message: string;
1857
- error_code: string;
1857
+ error_code: "device_offline";
1858
+ is_device_error: true;
1859
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1860
+ message: z.ZodString;
1861
+ is_device_error: z.ZodLiteral<true>;
1862
+ }, {
1863
+ error_code: z.ZodLiteral<"device_removed">;
1864
+ }>, "strip", z.ZodTypeAny, {
1865
+ message: string;
1866
+ error_code: "device_removed";
1867
+ is_device_error: true;
1868
+ }, {
1869
+ message: string;
1870
+ error_code: "device_removed";
1871
+ is_device_error: true;
1872
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1873
+ message: z.ZodString;
1874
+ is_device_error: z.ZodLiteral<true>;
1875
+ }, {
1876
+ error_code: z.ZodLiteral<"account_disconnected">;
1877
+ }>, "strip", z.ZodTypeAny, {
1878
+ message: string;
1879
+ error_code: "account_disconnected";
1880
+ is_device_error: true;
1881
+ }, {
1882
+ message: string;
1883
+ error_code: "account_disconnected";
1884
+ is_device_error: true;
1885
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1886
+ message: z.ZodString;
1887
+ is_device_error: z.ZodLiteral<true>;
1888
+ }, {
1889
+ error_code: z.ZodLiteral<"hub_disconnected">;
1890
+ }>, "strip", z.ZodTypeAny, {
1891
+ message: string;
1892
+ error_code: "hub_disconnected";
1893
+ is_device_error: true;
1894
+ }, {
1895
+ message: string;
1896
+ error_code: "hub_disconnected";
1897
+ is_device_error: true;
1898
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1899
+ message: z.ZodString;
1900
+ is_device_error: z.ZodLiteral<true>;
1901
+ }, {
1902
+ error_code: z.ZodLiteral<"device_disconnected">;
1903
+ }>, "strip", z.ZodTypeAny, {
1904
+ message: string;
1905
+ error_code: "device_disconnected";
1906
+ is_device_error: true;
1907
+ }, {
1908
+ message: string;
1909
+ error_code: "device_disconnected";
1910
+ is_device_error: true;
1911
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1912
+ message: z.ZodString;
1913
+ is_device_error: z.ZodLiteral<true>;
1914
+ }, {
1915
+ error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
1916
+ }>, "strip", z.ZodTypeAny, {
1917
+ message: string;
1918
+ error_code: "empty_backup_access_code_pool";
1919
+ is_device_error: true;
1920
+ }, {
1921
+ message: string;
1922
+ error_code: "empty_backup_access_code_pool";
1923
+ is_device_error: true;
1924
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1925
+ message: z.ZodString;
1926
+ is_device_error: z.ZodLiteral<true>;
1927
+ }, {
1928
+ error_code: z.ZodLiteral<"august_lock_not_authorized">;
1929
+ }>, "strip", z.ZodTypeAny, {
1930
+ message: string;
1931
+ error_code: "august_lock_not_authorized";
1932
+ is_device_error: true;
1933
+ }, {
1934
+ message: string;
1935
+ error_code: "august_lock_not_authorized";
1936
+ is_device_error: true;
1937
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1938
+ message: z.ZodString;
1939
+ is_device_error: z.ZodLiteral<true>;
1940
+ }, {
1941
+ error_code: z.ZodLiteral<"august_lock_missing_bridge">;
1942
+ }>, "strip", z.ZodTypeAny, {
1943
+ message: string;
1944
+ error_code: "august_lock_missing_bridge";
1945
+ is_device_error: true;
1946
+ }, {
1947
+ message: string;
1948
+ error_code: "august_lock_missing_bridge";
1949
+ is_device_error: true;
1950
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1951
+ message: z.ZodString;
1952
+ is_device_error: z.ZodLiteral<true>;
1953
+ }, {
1954
+ error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
1955
+ }>, "strip", z.ZodTypeAny, {
1956
+ message: string;
1957
+ error_code: "salto_site_user_limit_reached";
1958
+ is_device_error: true;
1959
+ }, {
1960
+ message: string;
1961
+ error_code: "salto_site_user_limit_reached";
1962
+ is_device_error: true;
1963
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1964
+ message: z.ZodString;
1965
+ is_device_error: z.ZodLiteral<true>;
1966
+ }, {
1967
+ error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
1968
+ }>, "strip", z.ZodTypeAny, {
1969
+ message: string;
1970
+ error_code: "ttlock_lock_not_paired_to_gateway";
1971
+ is_device_error: true;
1972
+ }, {
1973
+ message: string;
1974
+ error_code: "ttlock_lock_not_paired_to_gateway";
1975
+ is_device_error: true;
1976
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1977
+ message: z.ZodString;
1978
+ is_device_error: z.ZodLiteral<true>;
1979
+ }, {
1980
+ error_code: z.ZodLiteral<"missing_device_credentials">;
1981
+ }>, "strip", z.ZodTypeAny, {
1982
+ message: string;
1983
+ error_code: "missing_device_credentials";
1984
+ is_device_error: true;
1985
+ }, {
1986
+ message: string;
1987
+ error_code: "missing_device_credentials";
1858
1988
  is_device_error: true;
1859
1989
  }>, z.ZodObject<z.objectUtil.extendShape<{
1990
+ message: z.ZodString;
1991
+ is_device_error: z.ZodLiteral<true>;
1992
+ }, {
1993
+ error_code: z.ZodLiteral<"auxiliary_heat_running">;
1994
+ }>, "strip", z.ZodTypeAny, {
1995
+ message: string;
1996
+ error_code: "auxiliary_heat_running";
1997
+ is_device_error: true;
1998
+ }, {
1999
+ message: string;
2000
+ error_code: "auxiliary_heat_running";
2001
+ is_device_error: true;
2002
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2003
+ message: z.ZodString;
2004
+ is_device_error: z.ZodLiteral<true>;
2005
+ }, {
2006
+ error_code: z.ZodLiteral<"subscription_required">;
2007
+ }>, "strip", z.ZodTypeAny, {
2008
+ message: string;
2009
+ error_code: "subscription_required";
2010
+ is_device_error: true;
2011
+ }, {
2012
+ message: string;
2013
+ error_code: "subscription_required";
2014
+ is_device_error: true;
2015
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
1860
2016
  message: z.ZodString;
1861
2017
  is_connected_account_error: z.ZodLiteral<true>;
1862
2018
  }, {
@@ -1955,7 +2111,55 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1955
2111
  error_code: string;
1956
2112
  } | {
1957
2113
  message: string;
1958
- error_code: string;
2114
+ error_code: "device_offline";
2115
+ is_device_error: true;
2116
+ } | {
2117
+ message: string;
2118
+ error_code: "device_removed";
2119
+ is_device_error: true;
2120
+ } | {
2121
+ message: string;
2122
+ error_code: "account_disconnected";
2123
+ is_device_error: true;
2124
+ } | {
2125
+ message: string;
2126
+ error_code: "hub_disconnected";
2127
+ is_device_error: true;
2128
+ } | {
2129
+ message: string;
2130
+ error_code: "device_disconnected";
2131
+ is_device_error: true;
2132
+ } | {
2133
+ message: string;
2134
+ error_code: "empty_backup_access_code_pool";
2135
+ is_device_error: true;
2136
+ } | {
2137
+ message: string;
2138
+ error_code: "august_lock_not_authorized";
2139
+ is_device_error: true;
2140
+ } | {
2141
+ message: string;
2142
+ error_code: "august_lock_missing_bridge";
2143
+ is_device_error: true;
2144
+ } | {
2145
+ message: string;
2146
+ error_code: "salto_site_user_limit_reached";
2147
+ is_device_error: true;
2148
+ } | {
2149
+ message: string;
2150
+ error_code: "ttlock_lock_not_paired_to_gateway";
2151
+ is_device_error: true;
2152
+ } | {
2153
+ message: string;
2154
+ error_code: "missing_device_credentials";
2155
+ is_device_error: true;
2156
+ } | {
2157
+ message: string;
2158
+ error_code: "auxiliary_heat_running";
2159
+ is_device_error: true;
2160
+ } | {
2161
+ message: string;
2162
+ error_code: "subscription_required";
1959
2163
  is_device_error: true;
1960
2164
  })[];
1961
2165
  warnings: {
@@ -2002,7 +2206,55 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
2002
2206
  error_code: string;
2003
2207
  } | {
2004
2208
  message: string;
2005
- error_code: string;
2209
+ error_code: "device_offline";
2210
+ is_device_error: true;
2211
+ } | {
2212
+ message: string;
2213
+ error_code: "device_removed";
2214
+ is_device_error: true;
2215
+ } | {
2216
+ message: string;
2217
+ error_code: "account_disconnected";
2218
+ is_device_error: true;
2219
+ } | {
2220
+ message: string;
2221
+ error_code: "hub_disconnected";
2222
+ is_device_error: true;
2223
+ } | {
2224
+ message: string;
2225
+ error_code: "device_disconnected";
2226
+ is_device_error: true;
2227
+ } | {
2228
+ message: string;
2229
+ error_code: "empty_backup_access_code_pool";
2230
+ is_device_error: true;
2231
+ } | {
2232
+ message: string;
2233
+ error_code: "august_lock_not_authorized";
2234
+ is_device_error: true;
2235
+ } | {
2236
+ message: string;
2237
+ error_code: "august_lock_missing_bridge";
2238
+ is_device_error: true;
2239
+ } | {
2240
+ message: string;
2241
+ error_code: "salto_site_user_limit_reached";
2242
+ is_device_error: true;
2243
+ } | {
2244
+ message: string;
2245
+ error_code: "ttlock_lock_not_paired_to_gateway";
2246
+ is_device_error: true;
2247
+ } | {
2248
+ message: string;
2249
+ error_code: "missing_device_credentials";
2250
+ is_device_error: true;
2251
+ } | {
2252
+ message: string;
2253
+ error_code: "auxiliary_heat_running";
2254
+ is_device_error: true;
2255
+ } | {
2256
+ message: string;
2257
+ error_code: "subscription_required";
2006
2258
  is_device_error: true;
2007
2259
  })[];
2008
2260
  warnings: {
@@ -1842,20 +1842,176 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1842
1842
  }>>;
1843
1843
  connected_account_id: z.ZodString;
1844
1844
  workspace_id: z.ZodString;
1845
- errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1845
+ errors: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1846
1846
  message: z.ZodString;
1847
1847
  is_device_error: z.ZodLiteral<true>;
1848
1848
  }, {
1849
- error_code: z.ZodString;
1849
+ error_code: z.ZodLiteral<"device_offline">;
1850
1850
  }>, "strip", z.ZodTypeAny, {
1851
1851
  message: string;
1852
- error_code: string;
1852
+ error_code: "device_offline";
1853
1853
  is_device_error: true;
1854
1854
  }, {
1855
1855
  message: string;
1856
- error_code: string;
1856
+ error_code: "device_offline";
1857
+ is_device_error: true;
1858
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1859
+ message: z.ZodString;
1860
+ is_device_error: z.ZodLiteral<true>;
1861
+ }, {
1862
+ error_code: z.ZodLiteral<"device_removed">;
1863
+ }>, "strip", z.ZodTypeAny, {
1864
+ message: string;
1865
+ error_code: "device_removed";
1866
+ is_device_error: true;
1867
+ }, {
1868
+ message: string;
1869
+ error_code: "device_removed";
1870
+ is_device_error: true;
1871
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1872
+ message: z.ZodString;
1873
+ is_device_error: z.ZodLiteral<true>;
1874
+ }, {
1875
+ error_code: z.ZodLiteral<"account_disconnected">;
1876
+ }>, "strip", z.ZodTypeAny, {
1877
+ message: string;
1878
+ error_code: "account_disconnected";
1879
+ is_device_error: true;
1880
+ }, {
1881
+ message: string;
1882
+ error_code: "account_disconnected";
1883
+ is_device_error: true;
1884
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1885
+ message: z.ZodString;
1886
+ is_device_error: z.ZodLiteral<true>;
1887
+ }, {
1888
+ error_code: z.ZodLiteral<"hub_disconnected">;
1889
+ }>, "strip", z.ZodTypeAny, {
1890
+ message: string;
1891
+ error_code: "hub_disconnected";
1892
+ is_device_error: true;
1893
+ }, {
1894
+ message: string;
1895
+ error_code: "hub_disconnected";
1896
+ is_device_error: true;
1897
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1898
+ message: z.ZodString;
1899
+ is_device_error: z.ZodLiteral<true>;
1900
+ }, {
1901
+ error_code: z.ZodLiteral<"device_disconnected">;
1902
+ }>, "strip", z.ZodTypeAny, {
1903
+ message: string;
1904
+ error_code: "device_disconnected";
1905
+ is_device_error: true;
1906
+ }, {
1907
+ message: string;
1908
+ error_code: "device_disconnected";
1909
+ is_device_error: true;
1910
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1911
+ message: z.ZodString;
1912
+ is_device_error: z.ZodLiteral<true>;
1913
+ }, {
1914
+ error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
1915
+ }>, "strip", z.ZodTypeAny, {
1916
+ message: string;
1917
+ error_code: "empty_backup_access_code_pool";
1918
+ is_device_error: true;
1919
+ }, {
1920
+ message: string;
1921
+ error_code: "empty_backup_access_code_pool";
1922
+ is_device_error: true;
1923
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1924
+ message: z.ZodString;
1925
+ is_device_error: z.ZodLiteral<true>;
1926
+ }, {
1927
+ error_code: z.ZodLiteral<"august_lock_not_authorized">;
1928
+ }>, "strip", z.ZodTypeAny, {
1929
+ message: string;
1930
+ error_code: "august_lock_not_authorized";
1931
+ is_device_error: true;
1932
+ }, {
1933
+ message: string;
1934
+ error_code: "august_lock_not_authorized";
1935
+ is_device_error: true;
1936
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1937
+ message: z.ZodString;
1938
+ is_device_error: z.ZodLiteral<true>;
1939
+ }, {
1940
+ error_code: z.ZodLiteral<"august_lock_missing_bridge">;
1941
+ }>, "strip", z.ZodTypeAny, {
1942
+ message: string;
1943
+ error_code: "august_lock_missing_bridge";
1944
+ is_device_error: true;
1945
+ }, {
1946
+ message: string;
1947
+ error_code: "august_lock_missing_bridge";
1948
+ is_device_error: true;
1949
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1950
+ message: z.ZodString;
1951
+ is_device_error: z.ZodLiteral<true>;
1952
+ }, {
1953
+ error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
1954
+ }>, "strip", z.ZodTypeAny, {
1955
+ message: string;
1956
+ error_code: "salto_site_user_limit_reached";
1957
+ is_device_error: true;
1958
+ }, {
1959
+ message: string;
1960
+ error_code: "salto_site_user_limit_reached";
1961
+ is_device_error: true;
1962
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1963
+ message: z.ZodString;
1964
+ is_device_error: z.ZodLiteral<true>;
1965
+ }, {
1966
+ error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
1967
+ }>, "strip", z.ZodTypeAny, {
1968
+ message: string;
1969
+ error_code: "ttlock_lock_not_paired_to_gateway";
1970
+ is_device_error: true;
1971
+ }, {
1972
+ message: string;
1973
+ error_code: "ttlock_lock_not_paired_to_gateway";
1974
+ is_device_error: true;
1975
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1976
+ message: z.ZodString;
1977
+ is_device_error: z.ZodLiteral<true>;
1978
+ }, {
1979
+ error_code: z.ZodLiteral<"missing_device_credentials">;
1980
+ }>, "strip", z.ZodTypeAny, {
1981
+ message: string;
1982
+ error_code: "missing_device_credentials";
1983
+ is_device_error: true;
1984
+ }, {
1985
+ message: string;
1986
+ error_code: "missing_device_credentials";
1857
1987
  is_device_error: true;
1858
1988
  }>, z.ZodObject<z.objectUtil.extendShape<{
1989
+ message: z.ZodString;
1990
+ is_device_error: z.ZodLiteral<true>;
1991
+ }, {
1992
+ error_code: z.ZodLiteral<"auxiliary_heat_running">;
1993
+ }>, "strip", z.ZodTypeAny, {
1994
+ message: string;
1995
+ error_code: "auxiliary_heat_running";
1996
+ is_device_error: true;
1997
+ }, {
1998
+ message: string;
1999
+ error_code: "auxiliary_heat_running";
2000
+ is_device_error: true;
2001
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2002
+ message: z.ZodString;
2003
+ is_device_error: z.ZodLiteral<true>;
2004
+ }, {
2005
+ error_code: z.ZodLiteral<"subscription_required">;
2006
+ }>, "strip", z.ZodTypeAny, {
2007
+ message: string;
2008
+ error_code: "subscription_required";
2009
+ is_device_error: true;
2010
+ }, {
2011
+ message: string;
2012
+ error_code: "subscription_required";
2013
+ is_device_error: true;
2014
+ }>]>, z.ZodObject<z.objectUtil.extendShape<{
1859
2015
  message: z.ZodString;
1860
2016
  is_connected_account_error: z.ZodLiteral<true>;
1861
2017
  }, {
@@ -2058,7 +2214,55 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
2058
2214
  error_code: string;
2059
2215
  } | {
2060
2216
  message: string;
2061
- error_code: string;
2217
+ error_code: "device_offline";
2218
+ is_device_error: true;
2219
+ } | {
2220
+ message: string;
2221
+ error_code: "device_removed";
2222
+ is_device_error: true;
2223
+ } | {
2224
+ message: string;
2225
+ error_code: "account_disconnected";
2226
+ is_device_error: true;
2227
+ } | {
2228
+ message: string;
2229
+ error_code: "hub_disconnected";
2230
+ is_device_error: true;
2231
+ } | {
2232
+ message: string;
2233
+ error_code: "device_disconnected";
2234
+ is_device_error: true;
2235
+ } | {
2236
+ message: string;
2237
+ error_code: "empty_backup_access_code_pool";
2238
+ is_device_error: true;
2239
+ } | {
2240
+ message: string;
2241
+ error_code: "august_lock_not_authorized";
2242
+ is_device_error: true;
2243
+ } | {
2244
+ message: string;
2245
+ error_code: "august_lock_missing_bridge";
2246
+ is_device_error: true;
2247
+ } | {
2248
+ message: string;
2249
+ error_code: "salto_site_user_limit_reached";
2250
+ is_device_error: true;
2251
+ } | {
2252
+ message: string;
2253
+ error_code: "ttlock_lock_not_paired_to_gateway";
2254
+ is_device_error: true;
2255
+ } | {
2256
+ message: string;
2257
+ error_code: "missing_device_credentials";
2258
+ is_device_error: true;
2259
+ } | {
2260
+ message: string;
2261
+ error_code: "auxiliary_heat_running";
2262
+ is_device_error: true;
2263
+ } | {
2264
+ message: string;
2265
+ error_code: "subscription_required";
2062
2266
  is_device_error: true;
2063
2267
  })[];
2064
2268
  warnings: {
@@ -2123,7 +2327,55 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
2123
2327
  error_code: string;
2124
2328
  } | {
2125
2329
  message: string;
2126
- error_code: string;
2330
+ error_code: "device_offline";
2331
+ is_device_error: true;
2332
+ } | {
2333
+ message: string;
2334
+ error_code: "device_removed";
2335
+ is_device_error: true;
2336
+ } | {
2337
+ message: string;
2338
+ error_code: "account_disconnected";
2339
+ is_device_error: true;
2340
+ } | {
2341
+ message: string;
2342
+ error_code: "hub_disconnected";
2343
+ is_device_error: true;
2344
+ } | {
2345
+ message: string;
2346
+ error_code: "device_disconnected";
2347
+ is_device_error: true;
2348
+ } | {
2349
+ message: string;
2350
+ error_code: "empty_backup_access_code_pool";
2351
+ is_device_error: true;
2352
+ } | {
2353
+ message: string;
2354
+ error_code: "august_lock_not_authorized";
2355
+ is_device_error: true;
2356
+ } | {
2357
+ message: string;
2358
+ error_code: "august_lock_missing_bridge";
2359
+ is_device_error: true;
2360
+ } | {
2361
+ message: string;
2362
+ error_code: "salto_site_user_limit_reached";
2363
+ is_device_error: true;
2364
+ } | {
2365
+ message: string;
2366
+ error_code: "ttlock_lock_not_paired_to_gateway";
2367
+ is_device_error: true;
2368
+ } | {
2369
+ message: string;
2370
+ error_code: "missing_device_credentials";
2371
+ is_device_error: true;
2372
+ } | {
2373
+ message: string;
2374
+ error_code: "auxiliary_heat_running";
2375
+ is_device_error: true;
2376
+ } | {
2377
+ message: string;
2378
+ error_code: "subscription_required";
2127
2379
  is_device_error: true;
2128
2380
  })[];
2129
2381
  warnings: {