@pidgeon-ai/sdk 1.18.0 → 1.19.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.
package/dist/index.d.cts CHANGED
@@ -1705,18 +1705,42 @@ type AgentSignUpData = {
1705
1705
  url: '/agent/signup';
1706
1706
  };
1707
1707
  type AgentSignUpErrors = {
1708
+ /**
1709
+ * The request is not valid. `error.field` names the input at fault when there is one.
1710
+ */
1711
+ 400: Error;
1708
1712
  /**
1709
1713
  * No API key, or one that is not valid.
1710
1714
  */
1711
1715
  401: Error;
1716
+ /**
1717
+ * Your plan does not include this. `error.message` says what does.
1718
+ */
1719
+ 402: Error;
1720
+ /**
1721
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
1722
+ */
1723
+ 403: Error;
1712
1724
  /**
1713
1725
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1714
1726
  */
1715
1727
  404: Error;
1728
+ /**
1729
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
1730
+ */
1731
+ 409: Error;
1716
1732
  /**
1717
1733
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1718
1734
  */
1719
1735
  429: Error;
1736
+ /**
1737
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
1738
+ */
1739
+ 500: Error;
1740
+ /**
1741
+ * Something this needs is not answering right now. Retry in a moment.
1742
+ */
1743
+ 503: Error;
1720
1744
  };
1721
1745
  type AgentSignUpError = AgentSignUpErrors[keyof AgentSignUpErrors];
1722
1746
  type AgentSignUpResponses = {
@@ -1744,18 +1768,38 @@ type AgentAttachHumanData = {
1744
1768
  url: '/agent/human';
1745
1769
  };
1746
1770
  type AgentAttachHumanErrors = {
1771
+ /**
1772
+ * The request is not valid. `error.field` names the input at fault when there is one.
1773
+ */
1774
+ 400: Error;
1747
1775
  /**
1748
1776
  * No API key, or one that is not valid.
1749
1777
  */
1750
1778
  401: Error;
1779
+ /**
1780
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
1781
+ */
1782
+ 403: Error;
1751
1783
  /**
1752
1784
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1753
1785
  */
1754
1786
  404: Error;
1787
+ /**
1788
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
1789
+ */
1790
+ 409: Error;
1755
1791
  /**
1756
1792
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1757
1793
  */
1758
1794
  429: Error;
1795
+ /**
1796
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
1797
+ */
1798
+ 500: Error;
1799
+ /**
1800
+ * Something this needs is not answering right now. Retry in a moment.
1801
+ */
1802
+ 503: Error;
1759
1803
  };
1760
1804
  type AgentAttachHumanError = AgentAttachHumanErrors[keyof AgentAttachHumanErrors];
1761
1805
  type AgentAttachHumanResponses = {
@@ -1780,18 +1824,42 @@ type AgentVerifyData = {
1780
1824
  url: '/agent/verify';
1781
1825
  };
1782
1826
  type AgentVerifyErrors = {
1827
+ /**
1828
+ * The request is not valid. `error.field` names the input at fault when there is one.
1829
+ */
1830
+ 400: Error;
1783
1831
  /**
1784
1832
  * No API key, or one that is not valid.
1785
1833
  */
1786
1834
  401: Error;
1835
+ /**
1836
+ * Your plan does not include this. `error.message` says what does.
1837
+ */
1838
+ 402: Error;
1839
+ /**
1840
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
1841
+ */
1842
+ 403: Error;
1787
1843
  /**
1788
1844
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1789
1845
  */
1790
1846
  404: Error;
1847
+ /**
1848
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
1849
+ */
1850
+ 409: Error;
1791
1851
  /**
1792
1852
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1793
1853
  */
1794
1854
  429: Error;
1855
+ /**
1856
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
1857
+ */
1858
+ 500: Error;
1859
+ /**
1860
+ * Something this needs is not answering right now. Retry in a moment.
1861
+ */
1862
+ 503: Error;
1795
1863
  };
1796
1864
  type AgentVerifyError = AgentVerifyErrors[keyof AgentVerifyErrors];
1797
1865
  type AgentVerifyResponses = {
@@ -1818,18 +1886,38 @@ type IdentitiesListData = {
1818
1886
  url: '/identities';
1819
1887
  };
1820
1888
  type IdentitiesListErrors = {
1889
+ /**
1890
+ * The request is not valid. `error.field` names the input at fault when there is one.
1891
+ */
1892
+ 400: Error;
1821
1893
  /**
1822
1894
  * No API key, or one that is not valid.
1823
1895
  */
1824
1896
  401: Error;
1897
+ /**
1898
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
1899
+ */
1900
+ 403: Error;
1825
1901
  /**
1826
1902
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1827
1903
  */
1828
1904
  404: Error;
1905
+ /**
1906
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
1907
+ */
1908
+ 409: Error;
1829
1909
  /**
1830
1910
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1831
1911
  */
1832
1912
  429: Error;
1913
+ /**
1914
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
1915
+ */
1916
+ 500: Error;
1917
+ /**
1918
+ * Something this needs is not answering right now. Retry in a moment.
1919
+ */
1920
+ 503: Error;
1833
1921
  };
1834
1922
  type IdentitiesListError = IdentitiesListErrors[keyof IdentitiesListErrors];
1835
1923
  type IdentitiesListResponses = {
@@ -1902,18 +1990,42 @@ type IdentitiesCreateData = {
1902
1990
  url: '/identities';
1903
1991
  };
1904
1992
  type IdentitiesCreateErrors = {
1993
+ /**
1994
+ * The request is not valid. `error.field` names the input at fault when there is one.
1995
+ */
1996
+ 400: Error;
1905
1997
  /**
1906
1998
  * No API key, or one that is not valid.
1907
1999
  */
1908
2000
  401: Error;
2001
+ /**
2002
+ * Your plan does not include this. `error.message` says what does.
2003
+ */
2004
+ 402: Error;
2005
+ /**
2006
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2007
+ */
2008
+ 403: Error;
1909
2009
  /**
1910
2010
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1911
2011
  */
1912
2012
  404: Error;
2013
+ /**
2014
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2015
+ */
2016
+ 409: Error;
1913
2017
  /**
1914
2018
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1915
2019
  */
1916
2020
  429: Error;
2021
+ /**
2022
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2023
+ */
2024
+ 500: Error;
2025
+ /**
2026
+ * Something this needs is not answering right now. Retry in a moment.
2027
+ */
2028
+ 503: Error;
1917
2029
  };
1918
2030
  type IdentitiesCreateError = IdentitiesCreateErrors[keyof IdentitiesCreateErrors];
1919
2031
  type IdentitiesCreateResponses = {
@@ -1934,18 +2046,38 @@ type IdentitiesDeleteData = {
1934
2046
  url: '/identities/{id}';
1935
2047
  };
1936
2048
  type IdentitiesDeleteErrors = {
2049
+ /**
2050
+ * The request is not valid. `error.field` names the input at fault when there is one.
2051
+ */
2052
+ 400: Error;
1937
2053
  /**
1938
2054
  * No API key, or one that is not valid.
1939
2055
  */
1940
2056
  401: Error;
2057
+ /**
2058
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2059
+ */
2060
+ 403: Error;
1941
2061
  /**
1942
2062
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1943
2063
  */
1944
2064
  404: Error;
2065
+ /**
2066
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2067
+ */
2068
+ 409: Error;
1945
2069
  /**
1946
2070
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1947
2071
  */
1948
2072
  429: Error;
2073
+ /**
2074
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2075
+ */
2076
+ 500: Error;
2077
+ /**
2078
+ * Something this needs is not answering right now. Retry in a moment.
2079
+ */
2080
+ 503: Error;
1949
2081
  };
1950
2082
  type IdentitiesDeleteError = IdentitiesDeleteErrors[keyof IdentitiesDeleteErrors];
1951
2083
  type IdentitiesDeleteResponses = {
@@ -1966,18 +2098,38 @@ type IdentitiesGetData = {
1966
2098
  url: '/identities/{id}';
1967
2099
  };
1968
2100
  type IdentitiesGetErrors = {
2101
+ /**
2102
+ * The request is not valid. `error.field` names the input at fault when there is one.
2103
+ */
2104
+ 400: Error;
1969
2105
  /**
1970
2106
  * No API key, or one that is not valid.
1971
2107
  */
1972
2108
  401: Error;
2109
+ /**
2110
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2111
+ */
2112
+ 403: Error;
1973
2113
  /**
1974
2114
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
1975
2115
  */
1976
2116
  404: Error;
2117
+ /**
2118
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2119
+ */
2120
+ 409: Error;
1977
2121
  /**
1978
2122
  * Rate limited. `X-RateLimit-Reset` says when to retry.
1979
2123
  */
1980
2124
  429: Error;
2125
+ /**
2126
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2127
+ */
2128
+ 500: Error;
2129
+ /**
2130
+ * Something this needs is not answering right now. Retry in a moment.
2131
+ */
2132
+ 503: Error;
1981
2133
  };
1982
2134
  type IdentitiesGetError = IdentitiesGetErrors[keyof IdentitiesGetErrors];
1983
2135
  type IdentitiesGetResponses = {
@@ -2027,18 +2179,38 @@ type IdentitiesUpdateData = {
2027
2179
  url: '/identities/{id}';
2028
2180
  };
2029
2181
  type IdentitiesUpdateErrors = {
2182
+ /**
2183
+ * The request is not valid. `error.field` names the input at fault when there is one.
2184
+ */
2185
+ 400: Error;
2030
2186
  /**
2031
2187
  * No API key, or one that is not valid.
2032
2188
  */
2033
2189
  401: Error;
2190
+ /**
2191
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2192
+ */
2193
+ 403: Error;
2034
2194
  /**
2035
2195
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2036
2196
  */
2037
2197
  404: Error;
2198
+ /**
2199
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2200
+ */
2201
+ 409: Error;
2038
2202
  /**
2039
2203
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2040
2204
  */
2041
2205
  429: Error;
2206
+ /**
2207
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2208
+ */
2209
+ 500: Error;
2210
+ /**
2211
+ * Something this needs is not answering right now. Retry in a moment.
2212
+ */
2213
+ 503: Error;
2042
2214
  };
2043
2215
  type IdentitiesUpdateError = IdentitiesUpdateErrors[keyof IdentitiesUpdateErrors];
2044
2216
  type IdentitiesUpdateResponses = {
@@ -2061,18 +2233,38 @@ type IdentitiesAccessDeleteData = {
2061
2233
  url: '/identities/{id}/access';
2062
2234
  };
2063
2235
  type IdentitiesAccessDeleteErrors = {
2236
+ /**
2237
+ * The request is not valid. `error.field` names the input at fault when there is one.
2238
+ */
2239
+ 400: Error;
2064
2240
  /**
2065
2241
  * No API key, or one that is not valid.
2066
2242
  */
2067
2243
  401: Error;
2244
+ /**
2245
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2246
+ */
2247
+ 403: Error;
2068
2248
  /**
2069
2249
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2070
2250
  */
2071
2251
  404: Error;
2252
+ /**
2253
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2254
+ */
2255
+ 409: Error;
2072
2256
  /**
2073
2257
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2074
2258
  */
2075
2259
  429: Error;
2260
+ /**
2261
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2262
+ */
2263
+ 500: Error;
2264
+ /**
2265
+ * Something this needs is not answering right now. Retry in a moment.
2266
+ */
2267
+ 503: Error;
2076
2268
  };
2077
2269
  type IdentitiesAccessDeleteError = IdentitiesAccessDeleteErrors[keyof IdentitiesAccessDeleteErrors];
2078
2270
  type IdentitiesAccessDeleteResponses = {
@@ -2093,18 +2285,38 @@ type IdentitiesAccessGetData = {
2093
2285
  url: '/identities/{id}/access';
2094
2286
  };
2095
2287
  type IdentitiesAccessGetErrors = {
2288
+ /**
2289
+ * The request is not valid. `error.field` names the input at fault when there is one.
2290
+ */
2291
+ 400: Error;
2096
2292
  /**
2097
2293
  * No API key, or one that is not valid.
2098
2294
  */
2099
2295
  401: Error;
2296
+ /**
2297
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2298
+ */
2299
+ 403: Error;
2100
2300
  /**
2101
2301
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2102
2302
  */
2103
2303
  404: Error;
2304
+ /**
2305
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2306
+ */
2307
+ 409: Error;
2104
2308
  /**
2105
2309
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2106
2310
  */
2107
2311
  429: Error;
2312
+ /**
2313
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2314
+ */
2315
+ 500: Error;
2316
+ /**
2317
+ * Something this needs is not answering right now. Retry in a moment.
2318
+ */
2319
+ 503: Error;
2108
2320
  };
2109
2321
  type IdentitiesAccessGetError = IdentitiesAccessGetErrors[keyof IdentitiesAccessGetErrors];
2110
2322
  type IdentitiesAccessGetResponses = {
@@ -2133,18 +2345,38 @@ type IdentitiesAccessCreateData = {
2133
2345
  url: '/identities/{id}/access';
2134
2346
  };
2135
2347
  type IdentitiesAccessCreateErrors = {
2348
+ /**
2349
+ * The request is not valid. `error.field` names the input at fault when there is one.
2350
+ */
2351
+ 400: Error;
2136
2352
  /**
2137
2353
  * No API key, or one that is not valid.
2138
2354
  */
2139
2355
  401: Error;
2356
+ /**
2357
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2358
+ */
2359
+ 403: Error;
2140
2360
  /**
2141
2361
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2142
2362
  */
2143
2363
  404: Error;
2364
+ /**
2365
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2366
+ */
2367
+ 409: Error;
2144
2368
  /**
2145
2369
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2146
2370
  */
2147
2371
  429: Error;
2372
+ /**
2373
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2374
+ */
2375
+ 500: Error;
2376
+ /**
2377
+ * Something this needs is not answering right now. Retry in a moment.
2378
+ */
2379
+ 503: Error;
2148
2380
  };
2149
2381
  type IdentitiesAccessCreateError = IdentitiesAccessCreateErrors[keyof IdentitiesAccessCreateErrors];
2150
2382
  type IdentitiesAccessCreateResponses = {
@@ -2167,18 +2399,38 @@ type IdentitiesSendRulesDeleteData = {
2167
2399
  url: '/identities/{id}/send-rules';
2168
2400
  };
2169
2401
  type IdentitiesSendRulesDeleteErrors = {
2402
+ /**
2403
+ * The request is not valid. `error.field` names the input at fault when there is one.
2404
+ */
2405
+ 400: Error;
2170
2406
  /**
2171
2407
  * No API key, or one that is not valid.
2172
2408
  */
2173
2409
  401: Error;
2410
+ /**
2411
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2412
+ */
2413
+ 403: Error;
2174
2414
  /**
2175
2415
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2176
2416
  */
2177
2417
  404: Error;
2418
+ /**
2419
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2420
+ */
2421
+ 409: Error;
2178
2422
  /**
2179
2423
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2180
2424
  */
2181
2425
  429: Error;
2426
+ /**
2427
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2428
+ */
2429
+ 500: Error;
2430
+ /**
2431
+ * Something this needs is not answering right now. Retry in a moment.
2432
+ */
2433
+ 503: Error;
2182
2434
  };
2183
2435
  type IdentitiesSendRulesDeleteError = IdentitiesSendRulesDeleteErrors[keyof IdentitiesSendRulesDeleteErrors];
2184
2436
  type IdentitiesSendRulesDeleteResponses = {
@@ -2199,18 +2451,38 @@ type IdentitiesSendRulesGetData = {
2199
2451
  url: '/identities/{id}/send-rules';
2200
2452
  };
2201
2453
  type IdentitiesSendRulesGetErrors = {
2454
+ /**
2455
+ * The request is not valid. `error.field` names the input at fault when there is one.
2456
+ */
2457
+ 400: Error;
2202
2458
  /**
2203
2459
  * No API key, or one that is not valid.
2204
2460
  */
2205
2461
  401: Error;
2462
+ /**
2463
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2464
+ */
2465
+ 403: Error;
2206
2466
  /**
2207
2467
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2208
2468
  */
2209
2469
  404: Error;
2470
+ /**
2471
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2472
+ */
2473
+ 409: Error;
2210
2474
  /**
2211
2475
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2212
2476
  */
2213
2477
  429: Error;
2478
+ /**
2479
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2480
+ */
2481
+ 500: Error;
2482
+ /**
2483
+ * Something this needs is not answering right now. Retry in a moment.
2484
+ */
2485
+ 503: Error;
2214
2486
  };
2215
2487
  type IdentitiesSendRulesGetError = IdentitiesSendRulesGetErrors[keyof IdentitiesSendRulesGetErrors];
2216
2488
  type IdentitiesSendRulesGetResponses = {
@@ -2234,18 +2506,38 @@ type IdentitiesSendRulesCreateData = {
2234
2506
  url: '/identities/{id}/send-rules';
2235
2507
  };
2236
2508
  type IdentitiesSendRulesCreateErrors = {
2509
+ /**
2510
+ * The request is not valid. `error.field` names the input at fault when there is one.
2511
+ */
2512
+ 400: Error;
2237
2513
  /**
2238
2514
  * No API key, or one that is not valid.
2239
2515
  */
2240
2516
  401: Error;
2517
+ /**
2518
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2519
+ */
2520
+ 403: Error;
2241
2521
  /**
2242
2522
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2243
2523
  */
2244
2524
  404: Error;
2525
+ /**
2526
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2527
+ */
2528
+ 409: Error;
2245
2529
  /**
2246
2530
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2247
2531
  */
2248
2532
  429: Error;
2533
+ /**
2534
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2535
+ */
2536
+ 500: Error;
2537
+ /**
2538
+ * Something this needs is not answering right now. Retry in a moment.
2539
+ */
2540
+ 503: Error;
2249
2541
  };
2250
2542
  type IdentitiesSendRulesCreateError = IdentitiesSendRulesCreateErrors[keyof IdentitiesSendRulesCreateErrors];
2251
2543
  type IdentitiesSendRulesCreateResponses = {
@@ -2268,18 +2560,38 @@ type IdentitiesReceiveRulesDeleteData = {
2268
2560
  url: '/identities/{id}/receive-rules';
2269
2561
  };
2270
2562
  type IdentitiesReceiveRulesDeleteErrors = {
2563
+ /**
2564
+ * The request is not valid. `error.field` names the input at fault when there is one.
2565
+ */
2566
+ 400: Error;
2271
2567
  /**
2272
2568
  * No API key, or one that is not valid.
2273
2569
  */
2274
2570
  401: Error;
2571
+ /**
2572
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2573
+ */
2574
+ 403: Error;
2275
2575
  /**
2276
2576
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2277
2577
  */
2278
2578
  404: Error;
2579
+ /**
2580
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2581
+ */
2582
+ 409: Error;
2279
2583
  /**
2280
2584
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2281
2585
  */
2282
2586
  429: Error;
2587
+ /**
2588
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2589
+ */
2590
+ 500: Error;
2591
+ /**
2592
+ * Something this needs is not answering right now. Retry in a moment.
2593
+ */
2594
+ 503: Error;
2283
2595
  };
2284
2596
  type IdentitiesReceiveRulesDeleteError = IdentitiesReceiveRulesDeleteErrors[keyof IdentitiesReceiveRulesDeleteErrors];
2285
2597
  type IdentitiesReceiveRulesDeleteResponses = {
@@ -2300,18 +2612,38 @@ type IdentitiesReceiveRulesGetData = {
2300
2612
  url: '/identities/{id}/receive-rules';
2301
2613
  };
2302
2614
  type IdentitiesReceiveRulesGetErrors = {
2615
+ /**
2616
+ * The request is not valid. `error.field` names the input at fault when there is one.
2617
+ */
2618
+ 400: Error;
2303
2619
  /**
2304
2620
  * No API key, or one that is not valid.
2305
2621
  */
2306
2622
  401: Error;
2623
+ /**
2624
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2625
+ */
2626
+ 403: Error;
2307
2627
  /**
2308
2628
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2309
2629
  */
2310
2630
  404: Error;
2631
+ /**
2632
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2633
+ */
2634
+ 409: Error;
2311
2635
  /**
2312
2636
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2313
2637
  */
2314
2638
  429: Error;
2639
+ /**
2640
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2641
+ */
2642
+ 500: Error;
2643
+ /**
2644
+ * Something this needs is not answering right now. Retry in a moment.
2645
+ */
2646
+ 503: Error;
2315
2647
  };
2316
2648
  type IdentitiesReceiveRulesGetError = IdentitiesReceiveRulesGetErrors[keyof IdentitiesReceiveRulesGetErrors];
2317
2649
  type IdentitiesReceiveRulesGetResponses = {
@@ -2335,18 +2667,38 @@ type IdentitiesReceiveRulesCreateData = {
2335
2667
  url: '/identities/{id}/receive-rules';
2336
2668
  };
2337
2669
  type IdentitiesReceiveRulesCreateErrors = {
2670
+ /**
2671
+ * The request is not valid. `error.field` names the input at fault when there is one.
2672
+ */
2673
+ 400: Error;
2338
2674
  /**
2339
2675
  * No API key, or one that is not valid.
2340
2676
  */
2341
2677
  401: Error;
2678
+ /**
2679
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2680
+ */
2681
+ 403: Error;
2342
2682
  /**
2343
2683
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2344
2684
  */
2345
2685
  404: Error;
2686
+ /**
2687
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2688
+ */
2689
+ 409: Error;
2346
2690
  /**
2347
2691
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2348
2692
  */
2349
2693
  429: Error;
2694
+ /**
2695
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2696
+ */
2697
+ 500: Error;
2698
+ /**
2699
+ * Something this needs is not answering right now. Retry in a moment.
2700
+ */
2701
+ 503: Error;
2350
2702
  };
2351
2703
  type IdentitiesReceiveRulesCreateError = IdentitiesReceiveRulesCreateErrors[keyof IdentitiesReceiveRulesCreateErrors];
2352
2704
  type IdentitiesReceiveRulesCreateResponses = {
@@ -2370,18 +2722,38 @@ type IdentitiesSuspendTenantData = {
2370
2722
  url: '/tenants/{id}/suspend';
2371
2723
  };
2372
2724
  type IdentitiesSuspendTenantErrors = {
2725
+ /**
2726
+ * The request is not valid. `error.field` names the input at fault when there is one.
2727
+ */
2728
+ 400: Error;
2373
2729
  /**
2374
2730
  * No API key, or one that is not valid.
2375
2731
  */
2376
2732
  401: Error;
2733
+ /**
2734
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2735
+ */
2736
+ 403: Error;
2377
2737
  /**
2378
2738
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2379
2739
  */
2380
2740
  404: Error;
2741
+ /**
2742
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2743
+ */
2744
+ 409: Error;
2381
2745
  /**
2382
2746
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2383
2747
  */
2384
2748
  429: Error;
2749
+ /**
2750
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2751
+ */
2752
+ 500: Error;
2753
+ /**
2754
+ * Something this needs is not answering right now. Retry in a moment.
2755
+ */
2756
+ 503: Error;
2385
2757
  };
2386
2758
  type IdentitiesSuspendTenantError = IdentitiesSuspendTenantErrors[keyof IdentitiesSuspendTenantErrors];
2387
2759
  type IdentitiesSuspendTenantResponses = {
@@ -2400,18 +2772,38 @@ type PodsListData = {
2400
2772
  url: '/pods';
2401
2773
  };
2402
2774
  type PodsListErrors = {
2775
+ /**
2776
+ * The request is not valid. `error.field` names the input at fault when there is one.
2777
+ */
2778
+ 400: Error;
2403
2779
  /**
2404
2780
  * No API key, or one that is not valid.
2405
2781
  */
2406
2782
  401: Error;
2783
+ /**
2784
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2785
+ */
2786
+ 403: Error;
2407
2787
  /**
2408
2788
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2409
2789
  */
2410
2790
  404: Error;
2791
+ /**
2792
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2793
+ */
2794
+ 409: Error;
2411
2795
  /**
2412
2796
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2413
2797
  */
2414
2798
  429: Error;
2799
+ /**
2800
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2801
+ */
2802
+ 500: Error;
2803
+ /**
2804
+ * Something this needs is not answering right now. Retry in a moment.
2805
+ */
2806
+ 503: Error;
2415
2807
  };
2416
2808
  type PodsListError = PodsListErrors[keyof PodsListErrors];
2417
2809
  type PodsListResponses = {
@@ -2441,18 +2833,42 @@ type PodsCreateData = {
2441
2833
  url: '/pods';
2442
2834
  };
2443
2835
  type PodsCreateErrors = {
2836
+ /**
2837
+ * The request is not valid. `error.field` names the input at fault when there is one.
2838
+ */
2839
+ 400: Error;
2444
2840
  /**
2445
2841
  * No API key, or one that is not valid.
2446
2842
  */
2447
2843
  401: Error;
2844
+ /**
2845
+ * Your plan does not include this. `error.message` says what does.
2846
+ */
2847
+ 402: Error;
2848
+ /**
2849
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2850
+ */
2851
+ 403: Error;
2448
2852
  /**
2449
2853
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2450
2854
  */
2451
2855
  404: Error;
2856
+ /**
2857
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2858
+ */
2859
+ 409: Error;
2452
2860
  /**
2453
2861
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2454
2862
  */
2455
2863
  429: Error;
2864
+ /**
2865
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2866
+ */
2867
+ 500: Error;
2868
+ /**
2869
+ * Something this needs is not answering right now. Retry in a moment.
2870
+ */
2871
+ 503: Error;
2456
2872
  };
2457
2873
  type PodsCreateError = PodsCreateErrors[keyof PodsCreateErrors];
2458
2874
  type PodsCreateResponses = {
@@ -2473,18 +2889,38 @@ type PodsGetData = {
2473
2889
  url: '/pods/{id}';
2474
2890
  };
2475
2891
  type PodsGetErrors = {
2892
+ /**
2893
+ * The request is not valid. `error.field` names the input at fault when there is one.
2894
+ */
2895
+ 400: Error;
2476
2896
  /**
2477
2897
  * No API key, or one that is not valid.
2478
2898
  */
2479
2899
  401: Error;
2900
+ /**
2901
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2902
+ */
2903
+ 403: Error;
2480
2904
  /**
2481
2905
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2482
2906
  */
2483
2907
  404: Error;
2908
+ /**
2909
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2910
+ */
2911
+ 409: Error;
2484
2912
  /**
2485
2913
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2486
2914
  */
2487
2915
  429: Error;
2916
+ /**
2917
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2918
+ */
2919
+ 500: Error;
2920
+ /**
2921
+ * Something this needs is not answering right now. Retry in a moment.
2922
+ */
2923
+ 503: Error;
2488
2924
  };
2489
2925
  type PodsGetError = PodsGetErrors[keyof PodsGetErrors];
2490
2926
  type PodsGetResponses = {
@@ -2511,18 +2947,38 @@ type PodsUpdateData = {
2511
2947
  url: '/pods/{id}';
2512
2948
  };
2513
2949
  type PodsUpdateErrors = {
2950
+ /**
2951
+ * The request is not valid. `error.field` names the input at fault when there is one.
2952
+ */
2953
+ 400: Error;
2514
2954
  /**
2515
2955
  * No API key, or one that is not valid.
2516
2956
  */
2517
2957
  401: Error;
2958
+ /**
2959
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
2960
+ */
2961
+ 403: Error;
2518
2962
  /**
2519
2963
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2520
2964
  */
2521
2965
  404: Error;
2966
+ /**
2967
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2968
+ */
2969
+ 409: Error;
2522
2970
  /**
2523
2971
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2524
2972
  */
2525
2973
  429: Error;
2974
+ /**
2975
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
2976
+ */
2977
+ 500: Error;
2978
+ /**
2979
+ * Something this needs is not answering right now. Retry in a moment.
2980
+ */
2981
+ 503: Error;
2526
2982
  };
2527
2983
  type PodsUpdateError = PodsUpdateErrors[keyof PodsUpdateErrors];
2528
2984
  type PodsUpdateResponses = {
@@ -2543,18 +2999,38 @@ type LabelsListData = {
2543
2999
  url: '/labels';
2544
3000
  };
2545
3001
  type LabelsListErrors = {
3002
+ /**
3003
+ * The request is not valid. `error.field` names the input at fault when there is one.
3004
+ */
3005
+ 400: Error;
2546
3006
  /**
2547
3007
  * No API key, or one that is not valid.
2548
3008
  */
2549
3009
  401: Error;
3010
+ /**
3011
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3012
+ */
3013
+ 403: Error;
2550
3014
  /**
2551
3015
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2552
3016
  */
2553
3017
  404: Error;
3018
+ /**
3019
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3020
+ */
3021
+ 409: Error;
2554
3022
  /**
2555
3023
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2556
3024
  */
2557
3025
  429: Error;
3026
+ /**
3027
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3028
+ */
3029
+ 500: Error;
3030
+ /**
3031
+ * Something this needs is not answering right now. Retry in a moment.
3032
+ */
3033
+ 503: Error;
2558
3034
  };
2559
3035
  type LabelsListError = LabelsListErrors[keyof LabelsListErrors];
2560
3036
  type LabelsListResponses = {
@@ -2585,18 +3061,38 @@ type LabelsCreateData = {
2585
3061
  url: '/labels';
2586
3062
  };
2587
3063
  type LabelsCreateErrors = {
3064
+ /**
3065
+ * The request is not valid. `error.field` names the input at fault when there is one.
3066
+ */
3067
+ 400: Error;
2588
3068
  /**
2589
3069
  * No API key, or one that is not valid.
2590
3070
  */
2591
3071
  401: Error;
3072
+ /**
3073
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3074
+ */
3075
+ 403: Error;
2592
3076
  /**
2593
3077
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2594
3078
  */
2595
3079
  404: Error;
3080
+ /**
3081
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3082
+ */
3083
+ 409: Error;
2596
3084
  /**
2597
3085
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2598
3086
  */
2599
3087
  429: Error;
3088
+ /**
3089
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3090
+ */
3091
+ 500: Error;
3092
+ /**
3093
+ * Something this needs is not answering right now. Retry in a moment.
3094
+ */
3095
+ 503: Error;
2600
3096
  };
2601
3097
  type LabelsCreateError = LabelsCreateErrors[keyof LabelsCreateErrors];
2602
3098
  type LabelsCreateResponses = {
@@ -2617,18 +3113,38 @@ type LabelsDeleteData = {
2617
3113
  url: '/labels/{id}';
2618
3114
  };
2619
3115
  type LabelsDeleteErrors = {
3116
+ /**
3117
+ * The request is not valid. `error.field` names the input at fault when there is one.
3118
+ */
3119
+ 400: Error;
2620
3120
  /**
2621
3121
  * No API key, or one that is not valid.
2622
3122
  */
2623
3123
  401: Error;
3124
+ /**
3125
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3126
+ */
3127
+ 403: Error;
2624
3128
  /**
2625
3129
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2626
3130
  */
2627
3131
  404: Error;
3132
+ /**
3133
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3134
+ */
3135
+ 409: Error;
2628
3136
  /**
2629
3137
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2630
3138
  */
2631
3139
  429: Error;
3140
+ /**
3141
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3142
+ */
3143
+ 500: Error;
3144
+ /**
3145
+ * Something this needs is not answering right now. Retry in a moment.
3146
+ */
3147
+ 503: Error;
2632
3148
  };
2633
3149
  type LabelsDeleteError = LabelsDeleteErrors[keyof LabelsDeleteErrors];
2634
3150
  type LabelsDeleteResponses = {
@@ -2652,18 +3168,38 @@ type LabelsUpdateData = {
2652
3168
  url: '/labels/{id}';
2653
3169
  };
2654
3170
  type LabelsUpdateErrors = {
3171
+ /**
3172
+ * The request is not valid. `error.field` names the input at fault when there is one.
3173
+ */
3174
+ 400: Error;
2655
3175
  /**
2656
3176
  * No API key, or one that is not valid.
2657
3177
  */
2658
3178
  401: Error;
3179
+ /**
3180
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3181
+ */
3182
+ 403: Error;
2659
3183
  /**
2660
3184
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2661
3185
  */
2662
3186
  404: Error;
3187
+ /**
3188
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3189
+ */
3190
+ 409: Error;
2663
3191
  /**
2664
3192
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2665
3193
  */
2666
3194
  429: Error;
3195
+ /**
3196
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3197
+ */
3198
+ 500: Error;
3199
+ /**
3200
+ * Something this needs is not answering right now. Retry in a moment.
3201
+ */
3202
+ 503: Error;
2667
3203
  };
2668
3204
  type LabelsUpdateError = LabelsUpdateErrors[keyof LabelsUpdateErrors];
2669
3205
  type LabelsUpdateResponses = {
@@ -2686,18 +3222,38 @@ type ThreadsLabelsDeleteData = {
2686
3222
  url: '/threads/{id}/labels';
2687
3223
  };
2688
3224
  type ThreadsLabelsDeleteErrors = {
3225
+ /**
3226
+ * The request is not valid. `error.field` names the input at fault when there is one.
3227
+ */
3228
+ 400: Error;
2689
3229
  /**
2690
3230
  * No API key, or one that is not valid.
2691
3231
  */
2692
3232
  401: Error;
3233
+ /**
3234
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3235
+ */
3236
+ 403: Error;
2693
3237
  /**
2694
3238
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2695
3239
  */
2696
3240
  404: Error;
3241
+ /**
3242
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3243
+ */
3244
+ 409: Error;
2697
3245
  /**
2698
3246
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2699
3247
  */
2700
3248
  429: Error;
3249
+ /**
3250
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3251
+ */
3252
+ 500: Error;
3253
+ /**
3254
+ * Something this needs is not answering right now. Retry in a moment.
3255
+ */
3256
+ 503: Error;
2701
3257
  };
2702
3258
  type ThreadsLabelsDeleteError = ThreadsLabelsDeleteErrors[keyof ThreadsLabelsDeleteErrors];
2703
3259
  type ThreadsLabelsDeleteResponses = {
@@ -2718,18 +3274,38 @@ type ThreadsLabelsGetData = {
2718
3274
  url: '/threads/{id}/labels';
2719
3275
  };
2720
3276
  type ThreadsLabelsGetErrors = {
3277
+ /**
3278
+ * The request is not valid. `error.field` names the input at fault when there is one.
3279
+ */
3280
+ 400: Error;
2721
3281
  /**
2722
3282
  * No API key, or one that is not valid.
2723
3283
  */
2724
3284
  401: Error;
3285
+ /**
3286
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3287
+ */
3288
+ 403: Error;
2725
3289
  /**
2726
3290
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2727
3291
  */
2728
3292
  404: Error;
3293
+ /**
3294
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3295
+ */
3296
+ 409: Error;
2729
3297
  /**
2730
3298
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2731
3299
  */
2732
3300
  429: Error;
3301
+ /**
3302
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3303
+ */
3304
+ 500: Error;
3305
+ /**
3306
+ * Something this needs is not answering right now. Retry in a moment.
3307
+ */
3308
+ 503: Error;
2733
3309
  };
2734
3310
  type ThreadsLabelsGetError = ThreadsLabelsGetErrors[keyof ThreadsLabelsGetErrors];
2735
3311
  type ThreadsLabelsGetResponses = {
@@ -2757,18 +3333,38 @@ type ThreadsLabelsCreateData = {
2757
3333
  url: '/threads/{id}/labels';
2758
3334
  };
2759
3335
  type ThreadsLabelsCreateErrors = {
3336
+ /**
3337
+ * The request is not valid. `error.field` names the input at fault when there is one.
3338
+ */
3339
+ 400: Error;
2760
3340
  /**
2761
3341
  * No API key, or one that is not valid.
2762
3342
  */
2763
3343
  401: Error;
3344
+ /**
3345
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3346
+ */
3347
+ 403: Error;
2764
3348
  /**
2765
3349
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2766
3350
  */
2767
3351
  404: Error;
3352
+ /**
3353
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3354
+ */
3355
+ 409: Error;
2768
3356
  /**
2769
3357
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2770
3358
  */
2771
3359
  429: Error;
3360
+ /**
3361
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3362
+ */
3363
+ 500: Error;
3364
+ /**
3365
+ * Something this needs is not answering right now. Retry in a moment.
3366
+ */
3367
+ 503: Error;
2772
3368
  };
2773
3369
  type ThreadsLabelsCreateError = ThreadsLabelsCreateErrors[keyof ThreadsLabelsCreateErrors];
2774
3370
  type ThreadsLabelsCreateResponses = {
@@ -2800,18 +3396,38 @@ type MessagesListInThreadData = {
2800
3396
  url: '/messages';
2801
3397
  };
2802
3398
  type MessagesListInThreadErrors = {
3399
+ /**
3400
+ * The request is not valid. `error.field` names the input at fault when there is one.
3401
+ */
3402
+ 400: Error;
2803
3403
  /**
2804
3404
  * No API key, or one that is not valid.
2805
3405
  */
2806
3406
  401: Error;
3407
+ /**
3408
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3409
+ */
3410
+ 403: Error;
2807
3411
  /**
2808
3412
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2809
3413
  */
2810
3414
  404: Error;
3415
+ /**
3416
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3417
+ */
3418
+ 409: Error;
2811
3419
  /**
2812
3420
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2813
3421
  */
2814
3422
  429: Error;
3423
+ /**
3424
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3425
+ */
3426
+ 500: Error;
3427
+ /**
3428
+ * Something this needs is not answering right now. Retry in a moment.
3429
+ */
3430
+ 503: Error;
2815
3431
  };
2816
3432
  type MessagesListInThreadError = MessagesListInThreadErrors[keyof MessagesListInThreadErrors];
2817
3433
  type MessagesListInThreadResponses = {
@@ -2877,7 +3493,7 @@ type MessagesSendData = {
2877
3493
  };
2878
3494
  type MessagesSendErrors = {
2879
3495
  /**
2880
- * The request is not valid. `error.param` names the field when there is one.
3496
+ * The request is not valid. `error.field` names the input at fault when there is one.
2881
3497
  */
2882
3498
  400: Error;
2883
3499
  /**
@@ -2900,6 +3516,14 @@ type MessagesSendErrors = {
2900
3516
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2901
3517
  */
2902
3518
  429: Error;
3519
+ /**
3520
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3521
+ */
3522
+ 500: Error;
3523
+ /**
3524
+ * Something this needs is not answering right now. Retry in a moment.
3525
+ */
3526
+ 503: Error;
2903
3527
  };
2904
3528
  type MessagesSendError = MessagesSendErrors[keyof MessagesSendErrors];
2905
3529
  type MessagesSendResponses = {
@@ -2929,18 +3553,38 @@ type MessagesSearchData = {
2929
3553
  url: '/messages/search';
2930
3554
  };
2931
3555
  type MessagesSearchErrors = {
3556
+ /**
3557
+ * The request is not valid. `error.field` names the input at fault when there is one.
3558
+ */
3559
+ 400: Error;
2932
3560
  /**
2933
3561
  * No API key, or one that is not valid.
2934
3562
  */
2935
3563
  401: Error;
3564
+ /**
3565
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3566
+ */
3567
+ 403: Error;
2936
3568
  /**
2937
3569
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2938
3570
  */
2939
3571
  404: Error;
3572
+ /**
3573
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3574
+ */
3575
+ 409: Error;
2940
3576
  /**
2941
3577
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2942
3578
  */
2943
3579
  429: Error;
3580
+ /**
3581
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3582
+ */
3583
+ 500: Error;
3584
+ /**
3585
+ * Something this needs is not answering right now. Retry in a moment.
3586
+ */
3587
+ 503: Error;
2944
3588
  };
2945
3589
  type MessagesSearchError = MessagesSearchErrors[keyof MessagesSearchErrors];
2946
3590
  type MessagesSearchResponses = {
@@ -2970,18 +3614,38 @@ type MessagesActData = {
2970
3614
  url: '/messages/actions';
2971
3615
  };
2972
3616
  type MessagesActErrors = {
3617
+ /**
3618
+ * The request is not valid. `error.field` names the input at fault when there is one.
3619
+ */
3620
+ 400: Error;
2973
3621
  /**
2974
3622
  * No API key, or one that is not valid.
2975
3623
  */
2976
3624
  401: Error;
3625
+ /**
3626
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3627
+ */
3628
+ 403: Error;
2977
3629
  /**
2978
3630
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
2979
3631
  */
2980
3632
  404: Error;
3633
+ /**
3634
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3635
+ */
3636
+ 409: Error;
2981
3637
  /**
2982
3638
  * Rate limited. `X-RateLimit-Reset` says when to retry.
2983
3639
  */
2984
3640
  429: Error;
3641
+ /**
3642
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3643
+ */
3644
+ 500: Error;
3645
+ /**
3646
+ * Something this needs is not answering right now. Retry in a moment.
3647
+ */
3648
+ 503: Error;
2985
3649
  };
2986
3650
  type MessagesActError = MessagesActErrors[keyof MessagesActErrors];
2987
3651
  type MessagesActResponses = {
@@ -3002,18 +3666,38 @@ type MessagesUndoData = {
3002
3666
  url: '/messages/undo';
3003
3667
  };
3004
3668
  type MessagesUndoErrors = {
3669
+ /**
3670
+ * The request is not valid. `error.field` names the input at fault when there is one.
3671
+ */
3672
+ 400: Error;
3005
3673
  /**
3006
3674
  * No API key, or one that is not valid.
3007
3675
  */
3008
3676
  401: Error;
3677
+ /**
3678
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3679
+ */
3680
+ 403: Error;
3009
3681
  /**
3010
3682
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3011
3683
  */
3012
3684
  404: Error;
3685
+ /**
3686
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3687
+ */
3688
+ 409: Error;
3013
3689
  /**
3014
3690
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3015
3691
  */
3016
3692
  429: Error;
3693
+ /**
3694
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3695
+ */
3696
+ 500: Error;
3697
+ /**
3698
+ * Something this needs is not answering right now. Retry in a moment.
3699
+ */
3700
+ 503: Error;
3017
3701
  };
3018
3702
  type MessagesUndoError = MessagesUndoErrors[keyof MessagesUndoErrors];
3019
3703
  type MessagesUndoResponses = {
@@ -3044,18 +3728,38 @@ type MessagesAwaitData = {
3044
3728
  url: '/messages/await';
3045
3729
  };
3046
3730
  type MessagesAwaitErrors = {
3731
+ /**
3732
+ * The request is not valid. `error.field` names the input at fault when there is one.
3733
+ */
3734
+ 400: Error;
3047
3735
  /**
3048
3736
  * No API key, or one that is not valid.
3049
3737
  */
3050
3738
  401: Error;
3739
+ /**
3740
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3741
+ */
3742
+ 403: Error;
3051
3743
  /**
3052
3744
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3053
3745
  */
3054
3746
  404: Error;
3747
+ /**
3748
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3749
+ */
3750
+ 409: Error;
3055
3751
  /**
3056
3752
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3057
3753
  */
3058
3754
  429: Error;
3755
+ /**
3756
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3757
+ */
3758
+ 500: Error;
3759
+ /**
3760
+ * Something this needs is not answering right now. Retry in a moment.
3761
+ */
3762
+ 503: Error;
3059
3763
  };
3060
3764
  type MessagesAwaitError = MessagesAwaitErrors[keyof MessagesAwaitErrors];
3061
3765
  type MessagesAwaitResponses = {
@@ -3078,18 +3782,38 @@ type MessagesGetData = {
3078
3782
  url: '/messages/{id}';
3079
3783
  };
3080
3784
  type MessagesGetErrors = {
3785
+ /**
3786
+ * The request is not valid. `error.field` names the input at fault when there is one.
3787
+ */
3788
+ 400: Error;
3081
3789
  /**
3082
3790
  * No API key, or one that is not valid.
3083
3791
  */
3084
3792
  401: Error;
3793
+ /**
3794
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3795
+ */
3796
+ 403: Error;
3085
3797
  /**
3086
3798
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3087
3799
  */
3088
3800
  404: Error;
3801
+ /**
3802
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3803
+ */
3804
+ 409: Error;
3089
3805
  /**
3090
3806
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3091
3807
  */
3092
3808
  429: Error;
3809
+ /**
3810
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3811
+ */
3812
+ 500: Error;
3813
+ /**
3814
+ * Something this needs is not answering right now. Retry in a moment.
3815
+ */
3816
+ 503: Error;
3093
3817
  };
3094
3818
  type MessagesGetError = MessagesGetErrors[keyof MessagesGetErrors];
3095
3819
  type MessagesGetResponses = {
@@ -3117,18 +3841,38 @@ type MessagesUpdateData = {
3117
3841
  url: '/messages/{id}';
3118
3842
  };
3119
3843
  type MessagesUpdateErrors = {
3844
+ /**
3845
+ * The request is not valid. `error.field` names the input at fault when there is one.
3846
+ */
3847
+ 400: Error;
3120
3848
  /**
3121
3849
  * No API key, or one that is not valid.
3122
3850
  */
3123
3851
  401: Error;
3852
+ /**
3853
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
3854
+ */
3855
+ 403: Error;
3124
3856
  /**
3125
3857
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3126
3858
  */
3127
3859
  404: Error;
3860
+ /**
3861
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3862
+ */
3863
+ 409: Error;
3128
3864
  /**
3129
3865
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3130
3866
  */
3131
3867
  429: Error;
3868
+ /**
3869
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3870
+ */
3871
+ 500: Error;
3872
+ /**
3873
+ * Something this needs is not answering right now. Retry in a moment.
3874
+ */
3875
+ 503: Error;
3132
3876
  };
3133
3877
  type MessagesUpdateError = MessagesUpdateErrors[keyof MessagesUpdateErrors];
3134
3878
  type MessagesUpdateResponses = {
@@ -3175,7 +3919,7 @@ type MessagesReplyData = {
3175
3919
  };
3176
3920
  type MessagesReplyErrors = {
3177
3921
  /**
3178
- * The request is not valid. `error.param` names the field when there is one.
3922
+ * The request is not valid. `error.field` names the input at fault when there is one.
3179
3923
  */
3180
3924
  400: Error;
3181
3925
  /**
@@ -3190,10 +3934,22 @@ type MessagesReplyErrors = {
3190
3934
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3191
3935
  */
3192
3936
  404: Error;
3937
+ /**
3938
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3939
+ */
3940
+ 409: Error;
3193
3941
  /**
3194
3942
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3195
3943
  */
3196
3944
  429: Error;
3945
+ /**
3946
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
3947
+ */
3948
+ 500: Error;
3949
+ /**
3950
+ * Something this needs is not answering right now. Retry in a moment.
3951
+ */
3952
+ 503: Error;
3197
3953
  };
3198
3954
  type MessagesReplyError = MessagesReplyErrors[keyof MessagesReplyErrors];
3199
3955
  type MessagesReplyResponses = {
@@ -3240,7 +3996,7 @@ type MessagesReplyAllData = {
3240
3996
  };
3241
3997
  type MessagesReplyAllErrors = {
3242
3998
  /**
3243
- * The request is not valid. `error.param` names the field when there is one.
3999
+ * The request is not valid. `error.field` names the input at fault when there is one.
3244
4000
  */
3245
4001
  400: Error;
3246
4002
  /**
@@ -3255,10 +4011,22 @@ type MessagesReplyAllErrors = {
3255
4011
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3256
4012
  */
3257
4013
  404: Error;
4014
+ /**
4015
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4016
+ */
4017
+ 409: Error;
3258
4018
  /**
3259
4019
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3260
4020
  */
3261
4021
  429: Error;
4022
+ /**
4023
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4024
+ */
4025
+ 500: Error;
4026
+ /**
4027
+ * Something this needs is not answering right now. Retry in a moment.
4028
+ */
4029
+ 503: Error;
3262
4030
  };
3263
4031
  type MessagesReplyAllError = MessagesReplyAllErrors[keyof MessagesReplyAllErrors];
3264
4032
  type MessagesReplyAllResponses = {
@@ -3305,7 +4073,7 @@ type MessagesForwardData = {
3305
4073
  };
3306
4074
  type MessagesForwardErrors = {
3307
4075
  /**
3308
- * The request is not valid. `error.param` names the field when there is one.
4076
+ * The request is not valid. `error.field` names the input at fault when there is one.
3309
4077
  */
3310
4078
  400: Error;
3311
4079
  /**
@@ -3320,10 +4088,22 @@ type MessagesForwardErrors = {
3320
4088
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3321
4089
  */
3322
4090
  404: Error;
4091
+ /**
4092
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4093
+ */
4094
+ 409: Error;
3323
4095
  /**
3324
4096
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3325
4097
  */
3326
4098
  429: Error;
4099
+ /**
4100
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4101
+ */
4102
+ 500: Error;
4103
+ /**
4104
+ * Something this needs is not answering right now. Retry in a moment.
4105
+ */
4106
+ 503: Error;
3327
4107
  };
3328
4108
  type MessagesForwardError = MessagesForwardErrors[keyof MessagesForwardErrors];
3329
4109
  type MessagesForwardResponses = {
@@ -3344,20 +4124,40 @@ type MessagesRawData = {
3344
4124
  url: '/messages/{id}/raw';
3345
4125
  };
3346
4126
  type MessagesRawErrors = {
4127
+ /**
4128
+ * The request is not valid. `error.field` names the input at fault when there is one.
4129
+ */
4130
+ 400: Error;
3347
4131
  /**
3348
4132
  * No API key, or one that is not valid.
3349
4133
  */
3350
4134
  401: Error;
4135
+ /**
4136
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4137
+ */
4138
+ 403: Error;
3351
4139
  /**
3352
4140
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3353
4141
  */
3354
4142
  404: Error;
4143
+ /**
4144
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4145
+ */
4146
+ 409: Error;
3355
4147
  /**
3356
4148
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3357
4149
  */
3358
4150
  429: Error;
3359
- };
3360
- type MessagesRawError = MessagesRawErrors[keyof MessagesRawErrors];
4151
+ /**
4152
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4153
+ */
4154
+ 500: Error;
4155
+ /**
4156
+ * Something this needs is not answering right now. Retry in a moment.
4157
+ */
4158
+ 503: Error;
4159
+ };
4160
+ type MessagesRawError = MessagesRawErrors[keyof MessagesRawErrors];
3361
4161
  type MessagesRawResponses = {
3362
4162
  /**
3363
4163
  * The original message.
@@ -3374,18 +4174,38 @@ type ExportMailData = {
3374
4174
  url: '/export';
3375
4175
  };
3376
4176
  type ExportMailErrors = {
4177
+ /**
4178
+ * The request is not valid. `error.field` names the input at fault when there is one.
4179
+ */
4180
+ 400: Error;
3377
4181
  /**
3378
4182
  * No API key, or one that is not valid.
3379
4183
  */
3380
4184
  401: Error;
4185
+ /**
4186
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4187
+ */
4188
+ 403: Error;
3381
4189
  /**
3382
4190
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3383
4191
  */
3384
4192
  404: Error;
4193
+ /**
4194
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4195
+ */
4196
+ 409: Error;
3385
4197
  /**
3386
4198
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3387
4199
  */
3388
4200
  429: Error;
4201
+ /**
4202
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4203
+ */
4204
+ 500: Error;
4205
+ /**
4206
+ * Something this needs is not answering right now. Retry in a moment.
4207
+ */
4208
+ 503: Error;
3389
4209
  };
3390
4210
  type ExportMailError = ExportMailErrors[keyof ExportMailErrors];
3391
4211
  type ExportMailResponses = {
@@ -3415,18 +4235,38 @@ type ThreadsListData = {
3415
4235
  url: '/threads';
3416
4236
  };
3417
4237
  type ThreadsListErrors = {
4238
+ /**
4239
+ * The request is not valid. `error.field` names the input at fault when there is one.
4240
+ */
4241
+ 400: Error;
3418
4242
  /**
3419
4243
  * No API key, or one that is not valid.
3420
4244
  */
3421
4245
  401: Error;
4246
+ /**
4247
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4248
+ */
4249
+ 403: Error;
3422
4250
  /**
3423
4251
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3424
4252
  */
3425
4253
  404: Error;
4254
+ /**
4255
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4256
+ */
4257
+ 409: Error;
3426
4258
  /**
3427
4259
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3428
4260
  */
3429
4261
  429: Error;
4262
+ /**
4263
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4264
+ */
4265
+ 500: Error;
4266
+ /**
4267
+ * Something this needs is not answering right now. Retry in a moment.
4268
+ */
4269
+ 503: Error;
3430
4270
  };
3431
4271
  type ThreadsListError = ThreadsListErrors[keyof ThreadsListErrors];
3432
4272
  type ThreadsListResponses = {
@@ -3452,18 +4292,38 @@ type ThreadsGetData = {
3452
4292
  url: '/threads/{id}';
3453
4293
  };
3454
4294
  type ThreadsGetErrors = {
4295
+ /**
4296
+ * The request is not valid. `error.field` names the input at fault when there is one.
4297
+ */
4298
+ 400: Error;
3455
4299
  /**
3456
4300
  * No API key, or one that is not valid.
3457
4301
  */
3458
4302
  401: Error;
4303
+ /**
4304
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4305
+ */
4306
+ 403: Error;
3459
4307
  /**
3460
4308
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3461
4309
  */
3462
4310
  404: Error;
4311
+ /**
4312
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4313
+ */
4314
+ 409: Error;
3463
4315
  /**
3464
4316
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3465
4317
  */
3466
4318
  429: Error;
4319
+ /**
4320
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4321
+ */
4322
+ 500: Error;
4323
+ /**
4324
+ * Something this needs is not answering right now. Retry in a moment.
4325
+ */
4326
+ 503: Error;
3467
4327
  };
3468
4328
  type ThreadsGetError = ThreadsGetErrors[keyof ThreadsGetErrors];
3469
4329
  type ThreadsGetResponses = {
@@ -3489,18 +4349,38 @@ type ThreadsUpdateData = {
3489
4349
  url: '/threads/{id}';
3490
4350
  };
3491
4351
  type ThreadsUpdateErrors = {
4352
+ /**
4353
+ * The request is not valid. `error.field` names the input at fault when there is one.
4354
+ */
4355
+ 400: Error;
3492
4356
  /**
3493
4357
  * No API key, or one that is not valid.
3494
4358
  */
3495
4359
  401: Error;
4360
+ /**
4361
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4362
+ */
4363
+ 403: Error;
3496
4364
  /**
3497
4365
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3498
4366
  */
3499
4367
  404: Error;
4368
+ /**
4369
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4370
+ */
4371
+ 409: Error;
3500
4372
  /**
3501
4373
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3502
4374
  */
3503
4375
  429: Error;
4376
+ /**
4377
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4378
+ */
4379
+ 500: Error;
4380
+ /**
4381
+ * Something this needs is not answering right now. Retry in a moment.
4382
+ */
4383
+ 503: Error;
3504
4384
  };
3505
4385
  type ThreadsUpdateError = ThreadsUpdateErrors[keyof ThreadsUpdateErrors];
3506
4386
  type ThreadsUpdateResponses = {
@@ -3525,18 +4405,38 @@ type DomainsListData = {
3525
4405
  url: '/domains';
3526
4406
  };
3527
4407
  type DomainsListErrors = {
4408
+ /**
4409
+ * The request is not valid. `error.field` names the input at fault when there is one.
4410
+ */
4411
+ 400: Error;
3528
4412
  /**
3529
4413
  * No API key, or one that is not valid.
3530
4414
  */
3531
4415
  401: Error;
4416
+ /**
4417
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4418
+ */
4419
+ 403: Error;
3532
4420
  /**
3533
4421
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3534
4422
  */
3535
4423
  404: Error;
4424
+ /**
4425
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4426
+ */
4427
+ 409: Error;
3536
4428
  /**
3537
4429
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3538
4430
  */
3539
4431
  429: Error;
4432
+ /**
4433
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4434
+ */
4435
+ 500: Error;
4436
+ /**
4437
+ * Something this needs is not answering right now. Retry in a moment.
4438
+ */
4439
+ 503: Error;
3540
4440
  };
3541
4441
  type DomainsListError = DomainsListErrors[keyof DomainsListErrors];
3542
4442
  type DomainsListResponses = {
@@ -3566,18 +4466,42 @@ type DomainsCreateData = {
3566
4466
  url: '/domains';
3567
4467
  };
3568
4468
  type DomainsCreateErrors = {
4469
+ /**
4470
+ * The request is not valid. `error.field` names the input at fault when there is one.
4471
+ */
4472
+ 400: Error;
3569
4473
  /**
3570
4474
  * No API key, or one that is not valid.
3571
4475
  */
3572
4476
  401: Error;
4477
+ /**
4478
+ * Your plan does not include this. `error.message` says what does.
4479
+ */
4480
+ 402: Error;
4481
+ /**
4482
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4483
+ */
4484
+ 403: Error;
3573
4485
  /**
3574
4486
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3575
4487
  */
3576
4488
  404: Error;
4489
+ /**
4490
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4491
+ */
4492
+ 409: Error;
3577
4493
  /**
3578
4494
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3579
4495
  */
3580
4496
  429: Error;
4497
+ /**
4498
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4499
+ */
4500
+ 500: Error;
4501
+ /**
4502
+ * Something this needs is not answering right now. Retry in a moment.
4503
+ */
4504
+ 503: Error;
3581
4505
  };
3582
4506
  type DomainsCreateError = DomainsCreateErrors[keyof DomainsCreateErrors];
3583
4507
  type DomainsCreateResponses = {
@@ -3598,18 +4522,38 @@ type DomainsZoneFileData = {
3598
4522
  url: '/domains/{id}/zone-file';
3599
4523
  };
3600
4524
  type DomainsZoneFileErrors = {
4525
+ /**
4526
+ * The request is not valid. `error.field` names the input at fault when there is one.
4527
+ */
4528
+ 400: Error;
3601
4529
  /**
3602
4530
  * No API key, or one that is not valid.
3603
4531
  */
3604
4532
  401: Error;
4533
+ /**
4534
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4535
+ */
4536
+ 403: Error;
3605
4537
  /**
3606
4538
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3607
4539
  */
3608
4540
  404: Error;
4541
+ /**
4542
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4543
+ */
4544
+ 409: Error;
3609
4545
  /**
3610
4546
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3611
4547
  */
3612
4548
  429: Error;
4549
+ /**
4550
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4551
+ */
4552
+ 500: Error;
4553
+ /**
4554
+ * Something this needs is not answering right now. Retry in a moment.
4555
+ */
4556
+ 503: Error;
3613
4557
  };
3614
4558
  type DomainsZoneFileError = DomainsZoneFileErrors[keyof DomainsZoneFileErrors];
3615
4559
  type DomainsZoneFileResponses = {
@@ -3633,18 +4577,38 @@ type DomainsGetSetupLinkData = {
3633
4577
  url: '/domains/{id}/setup-link';
3634
4578
  };
3635
4579
  type DomainsGetSetupLinkErrors = {
4580
+ /**
4581
+ * The request is not valid. `error.field` names the input at fault when there is one.
4582
+ */
4583
+ 400: Error;
3636
4584
  /**
3637
4585
  * No API key, or one that is not valid.
3638
4586
  */
3639
4587
  401: Error;
4588
+ /**
4589
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4590
+ */
4591
+ 403: Error;
3640
4592
  /**
3641
4593
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3642
4594
  */
3643
4595
  404: Error;
4596
+ /**
4597
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4598
+ */
4599
+ 409: Error;
3644
4600
  /**
3645
4601
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3646
4602
  */
3647
4603
  429: Error;
4604
+ /**
4605
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4606
+ */
4607
+ 500: Error;
4608
+ /**
4609
+ * Something this needs is not answering right now. Retry in a moment.
4610
+ */
4611
+ 503: Error;
3648
4612
  };
3649
4613
  type DomainsGetSetupLinkError = DomainsGetSetupLinkErrors[keyof DomainsGetSetupLinkErrors];
3650
4614
  type DomainsGetSetupLinkResponses = {
@@ -3665,18 +4629,38 @@ type DomainsVerifyData = {
3665
4629
  url: '/domains/{id}/verify';
3666
4630
  };
3667
4631
  type DomainsVerifyErrors = {
4632
+ /**
4633
+ * The request is not valid. `error.field` names the input at fault when there is one.
4634
+ */
4635
+ 400: Error;
3668
4636
  /**
3669
4637
  * No API key, or one that is not valid.
3670
4638
  */
3671
4639
  401: Error;
4640
+ /**
4641
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4642
+ */
4643
+ 403: Error;
3672
4644
  /**
3673
4645
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3674
4646
  */
3675
4647
  404: Error;
4648
+ /**
4649
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4650
+ */
4651
+ 409: Error;
3676
4652
  /**
3677
4653
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3678
4654
  */
3679
4655
  429: Error;
4656
+ /**
4657
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4658
+ */
4659
+ 500: Error;
4660
+ /**
4661
+ * Something this needs is not answering right now. Retry in a moment.
4662
+ */
4663
+ 503: Error;
3680
4664
  };
3681
4665
  type DomainsVerifyError = DomainsVerifyErrors[keyof DomainsVerifyErrors];
3682
4666
  type DomainsVerifyResponses = {
@@ -3697,18 +4681,38 @@ type DomainsDeleteData = {
3697
4681
  url: '/domains/{id}';
3698
4682
  };
3699
4683
  type DomainsDeleteErrors = {
4684
+ /**
4685
+ * The request is not valid. `error.field` names the input at fault when there is one.
4686
+ */
4687
+ 400: Error;
3700
4688
  /**
3701
4689
  * No API key, or one that is not valid.
3702
4690
  */
3703
4691
  401: Error;
4692
+ /**
4693
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4694
+ */
4695
+ 403: Error;
3704
4696
  /**
3705
4697
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3706
4698
  */
3707
4699
  404: Error;
4700
+ /**
4701
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4702
+ */
4703
+ 409: Error;
3708
4704
  /**
3709
4705
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3710
4706
  */
3711
4707
  429: Error;
4708
+ /**
4709
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4710
+ */
4711
+ 500: Error;
4712
+ /**
4713
+ * Something this needs is not answering right now. Retry in a moment.
4714
+ */
4715
+ 503: Error;
3712
4716
  };
3713
4717
  type DomainsDeleteError = DomainsDeleteErrors[keyof DomainsDeleteErrors];
3714
4718
  type DomainsDeleteResponses = {
@@ -3729,18 +4733,38 @@ type DomainsGetData = {
3729
4733
  url: '/domains/{id}';
3730
4734
  };
3731
4735
  type DomainsGetErrors = {
4736
+ /**
4737
+ * The request is not valid. `error.field` names the input at fault when there is one.
4738
+ */
4739
+ 400: Error;
3732
4740
  /**
3733
4741
  * No API key, or one that is not valid.
3734
4742
  */
3735
4743
  401: Error;
4744
+ /**
4745
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4746
+ */
4747
+ 403: Error;
3736
4748
  /**
3737
4749
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3738
4750
  */
3739
4751
  404: Error;
4752
+ /**
4753
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4754
+ */
4755
+ 409: Error;
3740
4756
  /**
3741
4757
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3742
4758
  */
3743
4759
  429: Error;
4760
+ /**
4761
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4762
+ */
4763
+ 500: Error;
4764
+ /**
4765
+ * Something this needs is not answering right now. Retry in a moment.
4766
+ */
4767
+ 503: Error;
3744
4768
  };
3745
4769
  type DomainsGetError = DomainsGetErrors[keyof DomainsGetErrors];
3746
4770
  type DomainsGetResponses = {
@@ -3763,18 +4787,38 @@ type DomainsUpdateData = {
3763
4787
  url: '/domains/{id}';
3764
4788
  };
3765
4789
  type DomainsUpdateErrors = {
4790
+ /**
4791
+ * The request is not valid. `error.field` names the input at fault when there is one.
4792
+ */
4793
+ 400: Error;
3766
4794
  /**
3767
4795
  * No API key, or one that is not valid.
3768
4796
  */
3769
4797
  401: Error;
4798
+ /**
4799
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4800
+ */
4801
+ 403: Error;
3770
4802
  /**
3771
4803
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3772
4804
  */
3773
4805
  404: Error;
4806
+ /**
4807
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4808
+ */
4809
+ 409: Error;
3774
4810
  /**
3775
4811
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3776
4812
  */
3777
4813
  429: Error;
4814
+ /**
4815
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4816
+ */
4817
+ 500: Error;
4818
+ /**
4819
+ * Something this needs is not answering right now. Retry in a moment.
4820
+ */
4821
+ 503: Error;
3778
4822
  };
3779
4823
  type DomainsUpdateError = DomainsUpdateErrors[keyof DomainsUpdateErrors];
3780
4824
  type DomainsUpdateResponses = {
@@ -3795,18 +4839,38 @@ type RoutingListData = {
3795
4839
  url: '/routing-rules';
3796
4840
  };
3797
4841
  type RoutingListErrors = {
4842
+ /**
4843
+ * The request is not valid. `error.field` names the input at fault when there is one.
4844
+ */
4845
+ 400: Error;
3798
4846
  /**
3799
4847
  * No API key, or one that is not valid.
3800
4848
  */
3801
4849
  401: Error;
4850
+ /**
4851
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4852
+ */
4853
+ 403: Error;
3802
4854
  /**
3803
4855
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3804
4856
  */
3805
4857
  404: Error;
4858
+ /**
4859
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4860
+ */
4861
+ 409: Error;
3806
4862
  /**
3807
4863
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3808
4864
  */
3809
4865
  429: Error;
4866
+ /**
4867
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4868
+ */
4869
+ 500: Error;
4870
+ /**
4871
+ * Something this needs is not answering right now. Retry in a moment.
4872
+ */
4873
+ 503: Error;
3810
4874
  };
3811
4875
  type RoutingListError = RoutingListErrors[keyof RoutingListErrors];
3812
4876
  type RoutingListResponses = {
@@ -3847,18 +4911,42 @@ type RoutingCreateData = {
3847
4911
  url: '/routing-rules';
3848
4912
  };
3849
4913
  type RoutingCreateErrors = {
4914
+ /**
4915
+ * The request is not valid. `error.field` names the input at fault when there is one.
4916
+ */
4917
+ 400: Error;
3850
4918
  /**
3851
4919
  * No API key, or one that is not valid.
3852
4920
  */
3853
4921
  401: Error;
4922
+ /**
4923
+ * Your plan does not include this. `error.message` says what does.
4924
+ */
4925
+ 402: Error;
4926
+ /**
4927
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4928
+ */
4929
+ 403: Error;
3854
4930
  /**
3855
4931
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3856
4932
  */
3857
4933
  404: Error;
4934
+ /**
4935
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4936
+ */
4937
+ 409: Error;
3858
4938
  /**
3859
4939
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3860
4940
  */
3861
4941
  429: Error;
4942
+ /**
4943
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4944
+ */
4945
+ 500: Error;
4946
+ /**
4947
+ * Something this needs is not answering right now. Retry in a moment.
4948
+ */
4949
+ 503: Error;
3862
4950
  };
3863
4951
  type RoutingCreateError = RoutingCreateErrors[keyof RoutingCreateErrors];
3864
4952
  type RoutingCreateResponses = {
@@ -3879,18 +4967,38 @@ type RoutingDeleteData = {
3879
4967
  url: '/routing-rules/{id}';
3880
4968
  };
3881
4969
  type RoutingDeleteErrors = {
4970
+ /**
4971
+ * The request is not valid. `error.field` names the input at fault when there is one.
4972
+ */
4973
+ 400: Error;
3882
4974
  /**
3883
4975
  * No API key, or one that is not valid.
3884
4976
  */
3885
4977
  401: Error;
4978
+ /**
4979
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
4980
+ */
4981
+ 403: Error;
3886
4982
  /**
3887
4983
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3888
4984
  */
3889
4985
  404: Error;
4986
+ /**
4987
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4988
+ */
4989
+ 409: Error;
3890
4990
  /**
3891
4991
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3892
4992
  */
3893
4993
  429: Error;
4994
+ /**
4995
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
4996
+ */
4997
+ 500: Error;
4998
+ /**
4999
+ * Something this needs is not answering right now. Retry in a moment.
5000
+ */
5001
+ 503: Error;
3894
5002
  };
3895
5003
  type RoutingDeleteError = RoutingDeleteErrors[keyof RoutingDeleteErrors];
3896
5004
  type RoutingDeleteResponses = {
@@ -3913,18 +5021,38 @@ type RoutingUpdateData = {
3913
5021
  url: '/routing-rules/{id}';
3914
5022
  };
3915
5023
  type RoutingUpdateErrors = {
5024
+ /**
5025
+ * The request is not valid. `error.field` names the input at fault when there is one.
5026
+ */
5027
+ 400: Error;
3916
5028
  /**
3917
5029
  * No API key, or one that is not valid.
3918
5030
  */
3919
5031
  401: Error;
5032
+ /**
5033
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5034
+ */
5035
+ 403: Error;
3920
5036
  /**
3921
5037
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3922
5038
  */
3923
5039
  404: Error;
5040
+ /**
5041
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5042
+ */
5043
+ 409: Error;
3924
5044
  /**
3925
5045
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3926
5046
  */
3927
5047
  429: Error;
5048
+ /**
5049
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5050
+ */
5051
+ 500: Error;
5052
+ /**
5053
+ * Something this needs is not answering right now. Retry in a moment.
5054
+ */
5055
+ 503: Error;
3928
5056
  };
3929
5057
  type RoutingUpdateError = RoutingUpdateErrors[keyof RoutingUpdateErrors];
3930
5058
  type RoutingUpdateResponses = {
@@ -3945,18 +5073,38 @@ type MailboxesListData = {
3945
5073
  url: '/mailboxes';
3946
5074
  };
3947
5075
  type MailboxesListErrors = {
5076
+ /**
5077
+ * The request is not valid. `error.field` names the input at fault when there is one.
5078
+ */
5079
+ 400: Error;
3948
5080
  /**
3949
5081
  * No API key, or one that is not valid.
3950
5082
  */
3951
5083
  401: Error;
5084
+ /**
5085
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5086
+ */
5087
+ 403: Error;
3952
5088
  /**
3953
5089
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3954
5090
  */
3955
5091
  404: Error;
5092
+ /**
5093
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5094
+ */
5095
+ 409: Error;
3956
5096
  /**
3957
5097
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3958
5098
  */
3959
5099
  429: Error;
5100
+ /**
5101
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5102
+ */
5103
+ 500: Error;
5104
+ /**
5105
+ * Something this needs is not answering right now. Retry in a moment.
5106
+ */
5107
+ 503: Error;
3960
5108
  };
3961
5109
  type MailboxesListError = MailboxesListErrors[keyof MailboxesListErrors];
3962
5110
  type MailboxesListResponses = {
@@ -3984,18 +5132,42 @@ type MailboxesChangesData = {
3984
5132
  url: '/mailboxes/changes';
3985
5133
  };
3986
5134
  type MailboxesChangesErrors = {
5135
+ /**
5136
+ * The request is not valid. `error.field` names the input at fault when there is one.
5137
+ */
5138
+ 400: Error;
3987
5139
  /**
3988
5140
  * No API key, or one that is not valid.
3989
5141
  */
3990
5142
  401: Error;
5143
+ /**
5144
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5145
+ */
5146
+ 403: Error;
3991
5147
  /**
3992
5148
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
3993
5149
  */
3994
5150
  404: Error;
5151
+ /**
5152
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5153
+ */
5154
+ 409: Error;
5155
+ /**
5156
+ * `resync`: the cursor is older than the record of what was deleted. List the mailbox again and take its `sync_cursor`.
5157
+ */
5158
+ 410: Error;
3995
5159
  /**
3996
5160
  * Rate limited. `X-RateLimit-Reset` says when to retry.
3997
5161
  */
3998
5162
  429: Error;
5163
+ /**
5164
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5165
+ */
5166
+ 500: Error;
5167
+ /**
5168
+ * Something this needs is not answering right now. Retry in a moment.
5169
+ */
5170
+ 503: Error;
3999
5171
  };
4000
5172
  type MailboxesChangesError = MailboxesChangesErrors[keyof MailboxesChangesErrors];
4001
5173
  type MailboxesChangesResponses = {
@@ -4023,18 +5195,38 @@ type MailboxesEmptyTrashData = {
4023
5195
  url: '/mailboxes/{folder}';
4024
5196
  };
4025
5197
  type MailboxesEmptyTrashErrors = {
5198
+ /**
5199
+ * The request is not valid. `error.field` names the input at fault when there is one.
5200
+ */
5201
+ 400: Error;
4026
5202
  /**
4027
5203
  * No API key, or one that is not valid.
4028
5204
  */
4029
5205
  401: Error;
5206
+ /**
5207
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5208
+ */
5209
+ 403: Error;
4030
5210
  /**
4031
5211
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4032
5212
  */
4033
5213
  404: Error;
5214
+ /**
5215
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5216
+ */
5217
+ 409: Error;
4034
5218
  /**
4035
5219
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4036
5220
  */
4037
5221
  429: Error;
5222
+ /**
5223
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5224
+ */
5225
+ 500: Error;
5226
+ /**
5227
+ * Something this needs is not answering right now. Retry in a moment.
5228
+ */
5229
+ 503: Error;
4038
5230
  };
4039
5231
  type MailboxesEmptyTrashError = MailboxesEmptyTrashErrors[keyof MailboxesEmptyTrashErrors];
4040
5232
  type MailboxesEmptyTrashResponses = {
@@ -4063,18 +5255,38 @@ type MailboxesListFolderData = {
4063
5255
  url: '/mailboxes/{folder}';
4064
5256
  };
4065
5257
  type MailboxesListFolderErrors = {
5258
+ /**
5259
+ * The request is not valid. `error.field` names the input at fault when there is one.
5260
+ */
5261
+ 400: Error;
4066
5262
  /**
4067
5263
  * No API key, or one that is not valid.
4068
5264
  */
4069
5265
  401: Error;
5266
+ /**
5267
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5268
+ */
5269
+ 403: Error;
4070
5270
  /**
4071
5271
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4072
5272
  */
4073
5273
  404: Error;
5274
+ /**
5275
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5276
+ */
5277
+ 409: Error;
4074
5278
  /**
4075
5279
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4076
5280
  */
4077
5281
  429: Error;
5282
+ /**
5283
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5284
+ */
5285
+ 500: Error;
5286
+ /**
5287
+ * Something this needs is not answering right now. Retry in a moment.
5288
+ */
5289
+ 503: Error;
4078
5290
  };
4079
5291
  type MailboxesListFolderError = MailboxesListFolderErrors[keyof MailboxesListFolderErrors];
4080
5292
  type MailboxesListFolderResponses = {
@@ -4115,18 +5327,38 @@ type KeysListData = {
4115
5327
  url: '/api-keys';
4116
5328
  };
4117
5329
  type KeysListErrors = {
5330
+ /**
5331
+ * The request is not valid. `error.field` names the input at fault when there is one.
5332
+ */
5333
+ 400: Error;
4118
5334
  /**
4119
5335
  * No API key, or one that is not valid.
4120
5336
  */
4121
5337
  401: Error;
5338
+ /**
5339
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5340
+ */
5341
+ 403: Error;
4122
5342
  /**
4123
5343
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4124
5344
  */
4125
5345
  404: Error;
5346
+ /**
5347
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5348
+ */
5349
+ 409: Error;
4126
5350
  /**
4127
5351
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4128
5352
  */
4129
5353
  429: Error;
5354
+ /**
5355
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5356
+ */
5357
+ 500: Error;
5358
+ /**
5359
+ * Something this needs is not answering right now. Retry in a moment.
5360
+ */
5361
+ 503: Error;
4130
5362
  };
4131
5363
  type KeysListError = KeysListErrors[keyof KeysListErrors];
4132
5364
  type KeysListResponses = {
@@ -4165,18 +5397,42 @@ type KeysCreateData = {
4165
5397
  url: '/api-keys';
4166
5398
  };
4167
5399
  type KeysCreateErrors = {
5400
+ /**
5401
+ * The request is not valid. `error.field` names the input at fault when there is one.
5402
+ */
5403
+ 400: Error;
4168
5404
  /**
4169
5405
  * No API key, or one that is not valid.
4170
5406
  */
4171
5407
  401: Error;
5408
+ /**
5409
+ * Your plan does not include this. `error.message` says what does.
5410
+ */
5411
+ 402: Error;
5412
+ /**
5413
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5414
+ */
5415
+ 403: Error;
4172
5416
  /**
4173
5417
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4174
5418
  */
4175
5419
  404: Error;
5420
+ /**
5421
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5422
+ */
5423
+ 409: Error;
4176
5424
  /**
4177
5425
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4178
5426
  */
4179
5427
  429: Error;
5428
+ /**
5429
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5430
+ */
5431
+ 500: Error;
5432
+ /**
5433
+ * Something this needs is not answering right now. Retry in a moment.
5434
+ */
5435
+ 503: Error;
4180
5436
  };
4181
5437
  type KeysCreateError = KeysCreateErrors[keyof KeysCreateErrors];
4182
5438
  type KeysCreateResponses = {
@@ -4197,18 +5453,38 @@ type KeysRevokeData = {
4197
5453
  url: '/api-keys/{id}';
4198
5454
  };
4199
5455
  type KeysRevokeErrors = {
5456
+ /**
5457
+ * The request is not valid. `error.field` names the input at fault when there is one.
5458
+ */
5459
+ 400: Error;
4200
5460
  /**
4201
5461
  * No API key, or one that is not valid.
4202
5462
  */
4203
5463
  401: Error;
5464
+ /**
5465
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5466
+ */
5467
+ 403: Error;
4204
5468
  /**
4205
5469
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4206
5470
  */
4207
5471
  404: Error;
5472
+ /**
5473
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5474
+ */
5475
+ 409: Error;
4208
5476
  /**
4209
5477
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4210
5478
  */
4211
5479
  429: Error;
5480
+ /**
5481
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5482
+ */
5483
+ 500: Error;
5484
+ /**
5485
+ * Something this needs is not answering right now. Retry in a moment.
5486
+ */
5487
+ 503: Error;
4212
5488
  };
4213
5489
  type KeysRevokeError = KeysRevokeErrors[keyof KeysRevokeErrors];
4214
5490
  type KeysRevokeResponses = {
@@ -4229,18 +5505,38 @@ type KeysGetData = {
4229
5505
  url: '/api-keys/{id}';
4230
5506
  };
4231
5507
  type KeysGetErrors = {
5508
+ /**
5509
+ * The request is not valid. `error.field` names the input at fault when there is one.
5510
+ */
5511
+ 400: Error;
4232
5512
  /**
4233
5513
  * No API key, or one that is not valid.
4234
5514
  */
4235
5515
  401: Error;
5516
+ /**
5517
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5518
+ */
5519
+ 403: Error;
4236
5520
  /**
4237
5521
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4238
5522
  */
4239
5523
  404: Error;
5524
+ /**
5525
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5526
+ */
5527
+ 409: Error;
4240
5528
  /**
4241
5529
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4242
5530
  */
4243
5531
  429: Error;
5532
+ /**
5533
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5534
+ */
5535
+ 500: Error;
5536
+ /**
5537
+ * Something this needs is not answering right now. Retry in a moment.
5538
+ */
5539
+ 503: Error;
4244
5540
  };
4245
5541
  type KeysGetError = KeysGetErrors[keyof KeysGetErrors];
4246
5542
  type KeysGetResponses = {
@@ -4263,18 +5559,38 @@ type KeysUpdateData = {
4263
5559
  url: '/api-keys/{id}';
4264
5560
  };
4265
5561
  type KeysUpdateErrors = {
5562
+ /**
5563
+ * The request is not valid. `error.field` names the input at fault when there is one.
5564
+ */
5565
+ 400: Error;
4266
5566
  /**
4267
5567
  * No API key, or one that is not valid.
4268
5568
  */
4269
5569
  401: Error;
5570
+ /**
5571
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5572
+ */
5573
+ 403: Error;
4270
5574
  /**
4271
5575
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4272
5576
  */
4273
5577
  404: Error;
5578
+ /**
5579
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5580
+ */
5581
+ 409: Error;
4274
5582
  /**
4275
5583
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4276
5584
  */
4277
5585
  429: Error;
5586
+ /**
5587
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5588
+ */
5589
+ 500: Error;
5590
+ /**
5591
+ * Something this needs is not answering right now. Retry in a moment.
5592
+ */
5593
+ 503: Error;
4278
5594
  };
4279
5595
  type KeysUpdateError = KeysUpdateErrors[keyof KeysUpdateErrors];
4280
5596
  type KeysUpdateResponses = {
@@ -4295,18 +5611,38 @@ type AppPasswordsListData = {
4295
5611
  url: '/app-passwords';
4296
5612
  };
4297
5613
  type AppPasswordsListErrors = {
5614
+ /**
5615
+ * The request is not valid. `error.field` names the input at fault when there is one.
5616
+ */
5617
+ 400: Error;
4298
5618
  /**
4299
5619
  * No API key, or one that is not valid.
4300
5620
  */
4301
5621
  401: Error;
5622
+ /**
5623
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5624
+ */
5625
+ 403: Error;
4302
5626
  /**
4303
5627
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4304
5628
  */
4305
5629
  404: Error;
5630
+ /**
5631
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5632
+ */
5633
+ 409: Error;
4306
5634
  /**
4307
5635
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4308
5636
  */
4309
5637
  429: Error;
5638
+ /**
5639
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5640
+ */
5641
+ 500: Error;
5642
+ /**
5643
+ * Something this needs is not answering right now. Retry in a moment.
5644
+ */
5645
+ 503: Error;
4310
5646
  };
4311
5647
  type AppPasswordsListError = AppPasswordsListErrors[keyof AppPasswordsListErrors];
4312
5648
  type AppPasswordsListResponses = {
@@ -4336,18 +5672,42 @@ type AppPasswordsCreateData = {
4336
5672
  url: '/app-passwords';
4337
5673
  };
4338
5674
  type AppPasswordsCreateErrors = {
5675
+ /**
5676
+ * The request is not valid. `error.field` names the input at fault when there is one.
5677
+ */
5678
+ 400: Error;
4339
5679
  /**
4340
5680
  * No API key, or one that is not valid.
4341
5681
  */
4342
5682
  401: Error;
5683
+ /**
5684
+ * Your plan does not include this. `error.message` says what does.
5685
+ */
5686
+ 402: Error;
5687
+ /**
5688
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5689
+ */
5690
+ 403: Error;
4343
5691
  /**
4344
5692
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4345
5693
  */
4346
5694
  404: Error;
5695
+ /**
5696
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5697
+ */
5698
+ 409: Error;
4347
5699
  /**
4348
5700
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4349
5701
  */
4350
5702
  429: Error;
5703
+ /**
5704
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5705
+ */
5706
+ 500: Error;
5707
+ /**
5708
+ * Something this needs is not answering right now. Retry in a moment.
5709
+ */
5710
+ 503: Error;
4351
5711
  };
4352
5712
  type AppPasswordsCreateError = AppPasswordsCreateErrors[keyof AppPasswordsCreateErrors];
4353
5713
  type AppPasswordsCreateResponses = {
@@ -4368,18 +5728,38 @@ type AppPasswordsRevokeData = {
4368
5728
  url: '/app-passwords/{id}';
4369
5729
  };
4370
5730
  type AppPasswordsRevokeErrors = {
5731
+ /**
5732
+ * The request is not valid. `error.field` names the input at fault when there is one.
5733
+ */
5734
+ 400: Error;
4371
5735
  /**
4372
5736
  * No API key, or one that is not valid.
4373
5737
  */
4374
5738
  401: Error;
5739
+ /**
5740
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5741
+ */
5742
+ 403: Error;
4375
5743
  /**
4376
5744
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4377
5745
  */
4378
5746
  404: Error;
5747
+ /**
5748
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5749
+ */
5750
+ 409: Error;
4379
5751
  /**
4380
5752
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4381
5753
  */
4382
5754
  429: Error;
5755
+ /**
5756
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5757
+ */
5758
+ 500: Error;
5759
+ /**
5760
+ * Something this needs is not answering right now. Retry in a moment.
5761
+ */
5762
+ 503: Error;
4383
5763
  };
4384
5764
  type AppPasswordsRevokeError = AppPasswordsRevokeErrors[keyof AppPasswordsRevokeErrors];
4385
5765
  type AppPasswordsRevokeResponses = {
@@ -4398,18 +5778,38 @@ type MeGetData = {
4398
5778
  url: '/me';
4399
5779
  };
4400
5780
  type MeGetErrors = {
5781
+ /**
5782
+ * The request is not valid. `error.field` names the input at fault when there is one.
5783
+ */
5784
+ 400: Error;
4401
5785
  /**
4402
5786
  * No API key, or one that is not valid.
4403
5787
  */
4404
5788
  401: Error;
5789
+ /**
5790
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5791
+ */
5792
+ 403: Error;
4405
5793
  /**
4406
5794
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4407
5795
  */
4408
5796
  404: Error;
5797
+ /**
5798
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5799
+ */
5800
+ 409: Error;
4409
5801
  /**
4410
5802
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4411
5803
  */
4412
5804
  429: Error;
5805
+ /**
5806
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5807
+ */
5808
+ 500: Error;
5809
+ /**
5810
+ * Something this needs is not answering right now. Retry in a moment.
5811
+ */
5812
+ 503: Error;
4413
5813
  };
4414
5814
  type MeGetError = MeGetErrors[keyof MeGetErrors];
4415
5815
  type MeGetResponses = {
@@ -4428,18 +5828,38 @@ type WorkspaceGetData = {
4428
5828
  url: '/workspace';
4429
5829
  };
4430
5830
  type WorkspaceGetErrors = {
5831
+ /**
5832
+ * The request is not valid. `error.field` names the input at fault when there is one.
5833
+ */
5834
+ 400: Error;
4431
5835
  /**
4432
5836
  * No API key, or one that is not valid.
4433
5837
  */
4434
5838
  401: Error;
5839
+ /**
5840
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5841
+ */
5842
+ 403: Error;
4435
5843
  /**
4436
5844
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4437
5845
  */
4438
- 404: Error;
5846
+ 404: Error;
5847
+ /**
5848
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5849
+ */
5850
+ 409: Error;
5851
+ /**
5852
+ * Rate limited. `X-RateLimit-Reset` says when to retry.
5853
+ */
5854
+ 429: Error;
5855
+ /**
5856
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5857
+ */
5858
+ 500: Error;
4439
5859
  /**
4440
- * Rate limited. `X-RateLimit-Reset` says when to retry.
5860
+ * Something this needs is not answering right now. Retry in a moment.
4441
5861
  */
4442
- 429: Error;
5862
+ 503: Error;
4443
5863
  };
4444
5864
  type WorkspaceGetError = WorkspaceGetErrors[keyof WorkspaceGetErrors];
4445
5865
  type WorkspaceGetResponses = {
@@ -4458,18 +5878,38 @@ type WorkspaceMembersData = {
4458
5878
  url: '/workspace/members';
4459
5879
  };
4460
5880
  type WorkspaceMembersErrors = {
5881
+ /**
5882
+ * The request is not valid. `error.field` names the input at fault when there is one.
5883
+ */
5884
+ 400: Error;
4461
5885
  /**
4462
5886
  * No API key, or one that is not valid.
4463
5887
  */
4464
5888
  401: Error;
5889
+ /**
5890
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5891
+ */
5892
+ 403: Error;
4465
5893
  /**
4466
5894
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4467
5895
  */
4468
5896
  404: Error;
5897
+ /**
5898
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5899
+ */
5900
+ 409: Error;
4469
5901
  /**
4470
5902
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4471
5903
  */
4472
5904
  429: Error;
5905
+ /**
5906
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5907
+ */
5908
+ 500: Error;
5909
+ /**
5910
+ * Something this needs is not answering right now. Retry in a moment.
5911
+ */
5912
+ 503: Error;
4473
5913
  };
4474
5914
  type WorkspaceMembersError = WorkspaceMembersErrors[keyof WorkspaceMembersErrors];
4475
5915
  type WorkspaceMembersResponses = {
@@ -4502,18 +5942,38 @@ type EventsListData = {
4502
5942
  url: '/events';
4503
5943
  };
4504
5944
  type EventsListErrors = {
5945
+ /**
5946
+ * The request is not valid. `error.field` names the input at fault when there is one.
5947
+ */
5948
+ 400: Error;
4505
5949
  /**
4506
5950
  * No API key, or one that is not valid.
4507
5951
  */
4508
5952
  401: Error;
5953
+ /**
5954
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
5955
+ */
5956
+ 403: Error;
4509
5957
  /**
4510
5958
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4511
5959
  */
4512
5960
  404: Error;
5961
+ /**
5962
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5963
+ */
5964
+ 409: Error;
4513
5965
  /**
4514
5966
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4515
5967
  */
4516
5968
  429: Error;
5969
+ /**
5970
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
5971
+ */
5972
+ 500: Error;
5973
+ /**
5974
+ * Something this needs is not answering right now. Retry in a moment.
5975
+ */
5976
+ 503: Error;
4517
5977
  };
4518
5978
  type EventsListError = EventsListErrors[keyof EventsListErrors];
4519
5979
  type EventsListResponses = {
@@ -4546,18 +6006,38 @@ type EventsSocketData = {
4546
6006
  url: '/events/socket';
4547
6007
  };
4548
6008
  type EventsSocketErrors = {
6009
+ /**
6010
+ * The request is not valid. `error.field` names the input at fault when there is one.
6011
+ */
6012
+ 400: Error;
4549
6013
  /**
4550
6014
  * No API key, or one that is not valid.
4551
6015
  */
4552
6016
  401: Error;
6017
+ /**
6018
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6019
+ */
6020
+ 403: Error;
4553
6021
  /**
4554
6022
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4555
6023
  */
4556
6024
  404: Error;
6025
+ /**
6026
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6027
+ */
6028
+ 409: Error;
4557
6029
  /**
4558
6030
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4559
6031
  */
4560
6032
  429: Error;
6033
+ /**
6034
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6035
+ */
6036
+ 500: Error;
6037
+ /**
6038
+ * Something this needs is not answering right now. Retry in a moment.
6039
+ */
6040
+ 503: Error;
4561
6041
  };
4562
6042
  type EventsSocketError = EventsSocketErrors[keyof EventsSocketErrors];
4563
6043
  type EventsStreamData = {
@@ -4576,18 +6056,38 @@ type EventsStreamData = {
4576
6056
  url: '/events/stream';
4577
6057
  };
4578
6058
  type EventsStreamErrors = {
6059
+ /**
6060
+ * The request is not valid. `error.field` names the input at fault when there is one.
6061
+ */
6062
+ 400: Error;
4579
6063
  /**
4580
6064
  * No API key, or one that is not valid.
4581
6065
  */
4582
6066
  401: Error;
6067
+ /**
6068
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6069
+ */
6070
+ 403: Error;
4583
6071
  /**
4584
6072
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4585
6073
  */
4586
6074
  404: Error;
6075
+ /**
6076
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6077
+ */
6078
+ 409: Error;
4587
6079
  /**
4588
6080
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4589
6081
  */
4590
6082
  429: Error;
6083
+ /**
6084
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6085
+ */
6086
+ 500: Error;
6087
+ /**
6088
+ * Something this needs is not answering right now. Retry in a moment.
6089
+ */
6090
+ 503: Error;
4591
6091
  };
4592
6092
  type EventsStreamError = EventsStreamErrors[keyof EventsStreamErrors];
4593
6093
  type EventsStreamResponses = {
@@ -4606,18 +6106,38 @@ type EventsGetData = {
4606
6106
  url: '/events/{id}';
4607
6107
  };
4608
6108
  type EventsGetErrors = {
6109
+ /**
6110
+ * The request is not valid. `error.field` names the input at fault when there is one.
6111
+ */
6112
+ 400: Error;
4609
6113
  /**
4610
6114
  * No API key, or one that is not valid.
4611
6115
  */
4612
6116
  401: Error;
6117
+ /**
6118
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6119
+ */
6120
+ 403: Error;
4613
6121
  /**
4614
6122
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4615
6123
  */
4616
6124
  404: Error;
6125
+ /**
6126
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6127
+ */
6128
+ 409: Error;
4617
6129
  /**
4618
6130
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4619
6131
  */
4620
6132
  429: Error;
6133
+ /**
6134
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6135
+ */
6136
+ 500: Error;
6137
+ /**
6138
+ * Something this needs is not answering right now. Retry in a moment.
6139
+ */
6140
+ 503: Error;
4621
6141
  };
4622
6142
  type EventsGetError = EventsGetErrors[keyof EventsGetErrors];
4623
6143
  type EventsGetResponses = {
@@ -4642,18 +6162,38 @@ type WebhooksListData = {
4642
6162
  url: '/webhooks';
4643
6163
  };
4644
6164
  type WebhooksListErrors = {
6165
+ /**
6166
+ * The request is not valid. `error.field` names the input at fault when there is one.
6167
+ */
6168
+ 400: Error;
4645
6169
  /**
4646
6170
  * No API key, or one that is not valid.
4647
6171
  */
4648
6172
  401: Error;
6173
+ /**
6174
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6175
+ */
6176
+ 403: Error;
4649
6177
  /**
4650
6178
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4651
6179
  */
4652
6180
  404: Error;
6181
+ /**
6182
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6183
+ */
6184
+ 409: Error;
4653
6185
  /**
4654
6186
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4655
6187
  */
4656
6188
  429: Error;
6189
+ /**
6190
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6191
+ */
6192
+ 500: Error;
6193
+ /**
6194
+ * Something this needs is not answering right now. Retry in a moment.
6195
+ */
6196
+ 503: Error;
4657
6197
  };
4658
6198
  type WebhooksListError = WebhooksListErrors[keyof WebhooksListErrors];
4659
6199
  type WebhooksListResponses = {
@@ -4687,18 +6227,42 @@ type WebhooksCreateData = {
4687
6227
  url: '/webhooks';
4688
6228
  };
4689
6229
  type WebhooksCreateErrors = {
6230
+ /**
6231
+ * The request is not valid. `error.field` names the input at fault when there is one.
6232
+ */
6233
+ 400: Error;
4690
6234
  /**
4691
6235
  * No API key, or one that is not valid.
4692
6236
  */
4693
6237
  401: Error;
6238
+ /**
6239
+ * Your plan does not include this. `error.message` says what does.
6240
+ */
6241
+ 402: Error;
6242
+ /**
6243
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6244
+ */
6245
+ 403: Error;
4694
6246
  /**
4695
6247
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4696
6248
  */
4697
6249
  404: Error;
6250
+ /**
6251
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6252
+ */
6253
+ 409: Error;
4698
6254
  /**
4699
6255
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4700
6256
  */
4701
6257
  429: Error;
6258
+ /**
6259
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6260
+ */
6261
+ 500: Error;
6262
+ /**
6263
+ * Something this needs is not answering right now. Retry in a moment.
6264
+ */
6265
+ 503: Error;
4702
6266
  };
4703
6267
  type WebhooksCreateError = WebhooksCreateErrors[keyof WebhooksCreateErrors];
4704
6268
  type WebhooksCreateResponses = {
@@ -4719,18 +6283,38 @@ type WebhooksDeleteData = {
4719
6283
  url: '/webhooks/{id}';
4720
6284
  };
4721
6285
  type WebhooksDeleteErrors = {
6286
+ /**
6287
+ * The request is not valid. `error.field` names the input at fault when there is one.
6288
+ */
6289
+ 400: Error;
4722
6290
  /**
4723
6291
  * No API key, or one that is not valid.
4724
6292
  */
4725
6293
  401: Error;
6294
+ /**
6295
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6296
+ */
6297
+ 403: Error;
4726
6298
  /**
4727
6299
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4728
6300
  */
4729
6301
  404: Error;
6302
+ /**
6303
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6304
+ */
6305
+ 409: Error;
4730
6306
  /**
4731
6307
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4732
6308
  */
4733
6309
  429: Error;
6310
+ /**
6311
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6312
+ */
6313
+ 500: Error;
6314
+ /**
6315
+ * Something this needs is not answering right now. Retry in a moment.
6316
+ */
6317
+ 503: Error;
4734
6318
  };
4735
6319
  type WebhooksDeleteError = WebhooksDeleteErrors[keyof WebhooksDeleteErrors];
4736
6320
  type WebhooksDeleteResponses = {
@@ -4751,18 +6335,38 @@ type WebhooksGetData = {
4751
6335
  url: '/webhooks/{id}';
4752
6336
  };
4753
6337
  type WebhooksGetErrors = {
6338
+ /**
6339
+ * The request is not valid. `error.field` names the input at fault when there is one.
6340
+ */
6341
+ 400: Error;
4754
6342
  /**
4755
6343
  * No API key, or one that is not valid.
4756
6344
  */
4757
6345
  401: Error;
6346
+ /**
6347
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6348
+ */
6349
+ 403: Error;
4758
6350
  /**
4759
6351
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4760
6352
  */
4761
6353
  404: Error;
6354
+ /**
6355
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6356
+ */
6357
+ 409: Error;
4762
6358
  /**
4763
6359
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4764
6360
  */
4765
6361
  429: Error;
6362
+ /**
6363
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6364
+ */
6365
+ 500: Error;
6366
+ /**
6367
+ * Something this needs is not answering right now. Retry in a moment.
6368
+ */
6369
+ 503: Error;
4766
6370
  };
4767
6371
  type WebhooksGetError = WebhooksGetErrors[keyof WebhooksGetErrors];
4768
6372
  type WebhooksGetResponses = {
@@ -4785,18 +6389,38 @@ type WebhooksUpdateData = {
4785
6389
  url: '/webhooks/{id}';
4786
6390
  };
4787
6391
  type WebhooksUpdateErrors = {
6392
+ /**
6393
+ * The request is not valid. `error.field` names the input at fault when there is one.
6394
+ */
6395
+ 400: Error;
4788
6396
  /**
4789
6397
  * No API key, or one that is not valid.
4790
6398
  */
4791
6399
  401: Error;
6400
+ /**
6401
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6402
+ */
6403
+ 403: Error;
4792
6404
  /**
4793
6405
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4794
6406
  */
4795
6407
  404: Error;
6408
+ /**
6409
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6410
+ */
6411
+ 409: Error;
4796
6412
  /**
4797
6413
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4798
6414
  */
4799
6415
  429: Error;
6416
+ /**
6417
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6418
+ */
6419
+ 500: Error;
6420
+ /**
6421
+ * Something this needs is not answering right now. Retry in a moment.
6422
+ */
6423
+ 503: Error;
4800
6424
  };
4801
6425
  type WebhooksUpdateError = WebhooksUpdateErrors[keyof WebhooksUpdateErrors];
4802
6426
  type WebhooksUpdateResponses = {
@@ -4817,18 +6441,38 @@ type WebhooksGetHeadersData = {
4817
6441
  url: '/webhooks/{id}/headers';
4818
6442
  };
4819
6443
  type WebhooksGetHeadersErrors = {
6444
+ /**
6445
+ * The request is not valid. `error.field` names the input at fault when there is one.
6446
+ */
6447
+ 400: Error;
4820
6448
  /**
4821
6449
  * No API key, or one that is not valid.
4822
6450
  */
4823
6451
  401: Error;
6452
+ /**
6453
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6454
+ */
6455
+ 403: Error;
4824
6456
  /**
4825
6457
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4826
6458
  */
4827
6459
  404: Error;
6460
+ /**
6461
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6462
+ */
6463
+ 409: Error;
4828
6464
  /**
4829
6465
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4830
6466
  */
4831
6467
  429: Error;
6468
+ /**
6469
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6470
+ */
6471
+ 500: Error;
6472
+ /**
6473
+ * Something this needs is not answering right now. Retry in a moment.
6474
+ */
6475
+ 503: Error;
4832
6476
  };
4833
6477
  type WebhooksGetHeadersError = WebhooksGetHeadersErrors[keyof WebhooksGetHeadersErrors];
4834
6478
  type WebhooksGetHeadersResponses = {
@@ -4853,18 +6497,38 @@ type WebhooksUpdateHeadersData = {
4853
6497
  url: '/webhooks/{id}/headers';
4854
6498
  };
4855
6499
  type WebhooksUpdateHeadersErrors = {
6500
+ /**
6501
+ * The request is not valid. `error.field` names the input at fault when there is one.
6502
+ */
6503
+ 400: Error;
4856
6504
  /**
4857
6505
  * No API key, or one that is not valid.
4858
6506
  */
4859
6507
  401: Error;
6508
+ /**
6509
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6510
+ */
6511
+ 403: Error;
4860
6512
  /**
4861
6513
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4862
6514
  */
4863
6515
  404: Error;
6516
+ /**
6517
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6518
+ */
6519
+ 409: Error;
4864
6520
  /**
4865
6521
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4866
6522
  */
4867
6523
  429: Error;
6524
+ /**
6525
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6526
+ */
6527
+ 500: Error;
6528
+ /**
6529
+ * Something this needs is not answering right now. Retry in a moment.
6530
+ */
6531
+ 503: Error;
4868
6532
  };
4869
6533
  type WebhooksUpdateHeadersError = WebhooksUpdateHeadersErrors[keyof WebhooksUpdateHeadersErrors];
4870
6534
  type WebhooksUpdateHeadersResponses = {
@@ -4886,18 +6550,38 @@ type WebhooksDeliveriesData = {
4886
6550
  url: '/deliveries';
4887
6551
  };
4888
6552
  type WebhooksDeliveriesErrors = {
6553
+ /**
6554
+ * The request is not valid. `error.field` names the input at fault when there is one.
6555
+ */
6556
+ 400: Error;
4889
6557
  /**
4890
6558
  * No API key, or one that is not valid.
4891
6559
  */
4892
6560
  401: Error;
6561
+ /**
6562
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6563
+ */
6564
+ 403: Error;
4893
6565
  /**
4894
6566
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4895
6567
  */
4896
6568
  404: Error;
6569
+ /**
6570
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6571
+ */
6572
+ 409: Error;
4897
6573
  /**
4898
6574
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4899
6575
  */
4900
6576
  429: Error;
6577
+ /**
6578
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6579
+ */
6580
+ 500: Error;
6581
+ /**
6582
+ * Something this needs is not answering right now. Retry in a moment.
6583
+ */
6584
+ 503: Error;
4901
6585
  };
4902
6586
  type WebhooksDeliveriesError = WebhooksDeliveriesErrors[keyof WebhooksDeliveriesErrors];
4903
6587
  type WebhooksDeliveriesResponses = {
@@ -4923,18 +6607,38 @@ type WebhooksReplayData = {
4923
6607
  url: '/deliveries/{id}/replay';
4924
6608
  };
4925
6609
  type WebhooksReplayErrors = {
6610
+ /**
6611
+ * The request is not valid. `error.field` names the input at fault when there is one.
6612
+ */
6613
+ 400: Error;
4926
6614
  /**
4927
6615
  * No API key, or one that is not valid.
4928
6616
  */
4929
6617
  401: Error;
6618
+ /**
6619
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6620
+ */
6621
+ 403: Error;
4930
6622
  /**
4931
6623
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4932
6624
  */
4933
6625
  404: Error;
6626
+ /**
6627
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6628
+ */
6629
+ 409: Error;
4934
6630
  /**
4935
6631
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4936
6632
  */
4937
6633
  429: Error;
6634
+ /**
6635
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6636
+ */
6637
+ 500: Error;
6638
+ /**
6639
+ * Something this needs is not answering right now. Retry in a moment.
6640
+ */
6641
+ 503: Error;
4938
6642
  };
4939
6643
  type WebhooksReplayError = WebhooksReplayErrors[keyof WebhooksReplayErrors];
4940
6644
  type WebhooksReplayResponses = {
@@ -4958,18 +6662,38 @@ type MessagesRespondToInvitationData = {
4958
6662
  url: '/messages/{id}/invitation/respond';
4959
6663
  };
4960
6664
  type MessagesRespondToInvitationErrors = {
6665
+ /**
6666
+ * The request is not valid. `error.field` names the input at fault when there is one.
6667
+ */
6668
+ 400: Error;
4961
6669
  /**
4962
6670
  * No API key, or one that is not valid.
4963
6671
  */
4964
6672
  401: Error;
6673
+ /**
6674
+ * Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit) or `forbidden` (the address is not one this key can send from, or is not active).
6675
+ */
6676
+ 403: Error;
4965
6677
  /**
4966
6678
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
4967
6679
  */
4968
6680
  404: Error;
6681
+ /**
6682
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6683
+ */
6684
+ 409: Error;
4969
6685
  /**
4970
6686
  * Rate limited. `X-RateLimit-Reset` says when to retry.
4971
6687
  */
4972
6688
  429: Error;
6689
+ /**
6690
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6691
+ */
6692
+ 500: Error;
6693
+ /**
6694
+ * Something this needs is not answering right now. Retry in a moment.
6695
+ */
6696
+ 503: Error;
4973
6697
  };
4974
6698
  type MessagesRespondToInvitationError = MessagesRespondToInvitationErrors[keyof MessagesRespondToInvitationErrors];
4975
6699
  type MessagesRespondToInvitationResponses = {
@@ -4996,18 +6720,38 @@ type CalendarGetData = {
4996
6720
  url: '/identities/{id}/calendar';
4997
6721
  };
4998
6722
  type CalendarGetErrors = {
6723
+ /**
6724
+ * The request is not valid. `error.field` names the input at fault when there is one.
6725
+ */
6726
+ 400: Error;
4999
6727
  /**
5000
6728
  * No API key, or one that is not valid.
5001
6729
  */
5002
6730
  401: Error;
6731
+ /**
6732
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6733
+ */
6734
+ 403: Error;
5003
6735
  /**
5004
6736
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5005
6737
  */
5006
6738
  404: Error;
6739
+ /**
6740
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6741
+ */
6742
+ 409: Error;
5007
6743
  /**
5008
6744
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5009
6745
  */
5010
6746
  429: Error;
6747
+ /**
6748
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6749
+ */
6750
+ 500: Error;
6751
+ /**
6752
+ * Something this needs is not answering right now. Retry in a moment.
6753
+ */
6754
+ 503: Error;
5011
6755
  };
5012
6756
  type CalendarGetError = CalendarGetErrors[keyof CalendarGetErrors];
5013
6757
  type CalendarGetResponses = {
@@ -5039,18 +6783,38 @@ type CalendarUpdateData = {
5039
6783
  url: '/identities/{id}/calendar';
5040
6784
  };
5041
6785
  type CalendarUpdateErrors = {
6786
+ /**
6787
+ * The request is not valid. `error.field` names the input at fault when there is one.
6788
+ */
6789
+ 400: Error;
5042
6790
  /**
5043
6791
  * No API key, or one that is not valid.
5044
6792
  */
5045
6793
  401: Error;
6794
+ /**
6795
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6796
+ */
6797
+ 403: Error;
5046
6798
  /**
5047
6799
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5048
6800
  */
5049
6801
  404: Error;
6802
+ /**
6803
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6804
+ */
6805
+ 409: Error;
5050
6806
  /**
5051
6807
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5052
6808
  */
5053
6809
  429: Error;
6810
+ /**
6811
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6812
+ */
6813
+ 500: Error;
6814
+ /**
6815
+ * Something this needs is not answering right now. Retry in a moment.
6816
+ */
6817
+ 503: Error;
5054
6818
  };
5055
6819
  type CalendarUpdateError = CalendarUpdateErrors[keyof CalendarUpdateErrors];
5056
6820
  type CalendarUpdateResponses = {
@@ -5077,18 +6841,38 @@ type CalendarListEventsData = {
5077
6841
  url: '/identities/{id}/calendar/events';
5078
6842
  };
5079
6843
  type CalendarListEventsErrors = {
6844
+ /**
6845
+ * The request is not valid. `error.field` names the input at fault when there is one.
6846
+ */
6847
+ 400: Error;
5080
6848
  /**
5081
6849
  * No API key, or one that is not valid.
5082
6850
  */
5083
6851
  401: Error;
6852
+ /**
6853
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
6854
+ */
6855
+ 403: Error;
5084
6856
  /**
5085
6857
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5086
6858
  */
5087
6859
  404: Error;
6860
+ /**
6861
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6862
+ */
6863
+ 409: Error;
5088
6864
  /**
5089
6865
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5090
6866
  */
5091
6867
  429: Error;
6868
+ /**
6869
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6870
+ */
6871
+ 500: Error;
6872
+ /**
6873
+ * Something this needs is not answering right now. Retry in a moment.
6874
+ */
6875
+ 503: Error;
5092
6876
  };
5093
6877
  type CalendarListEventsError = CalendarListEventsErrors[keyof CalendarListEventsErrors];
5094
6878
  type CalendarListEventsResponses = {
@@ -5139,18 +6923,38 @@ type CalendarCreateEventData = {
5139
6923
  url: '/identities/{id}/calendar/events';
5140
6924
  };
5141
6925
  type CalendarCreateEventErrors = {
6926
+ /**
6927
+ * The request is not valid. `error.field` names the input at fault when there is one.
6928
+ */
6929
+ 400: Error;
5142
6930
  /**
5143
6931
  * No API key, or one that is not valid.
5144
6932
  */
5145
6933
  401: Error;
6934
+ /**
6935
+ * Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit) or `forbidden` (the address is not one this key can send from, or is not active).
6936
+ */
6937
+ 403: Error;
5146
6938
  /**
5147
6939
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5148
6940
  */
5149
6941
  404: Error;
5150
6942
  /**
5151
- * Rate limited. `X-RateLimit-Reset` says when to retry.
6943
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6944
+ */
6945
+ 409: Error;
6946
+ /**
6947
+ * Rate limited. `X-RateLimit-Reset` says when to retry.
6948
+ */
6949
+ 429: Error;
6950
+ /**
6951
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
6952
+ */
6953
+ 500: Error;
6954
+ /**
6955
+ * Something this needs is not answering right now. Retry in a moment.
5152
6956
  */
5153
- 429: Error;
6957
+ 503: Error;
5154
6958
  };
5155
6959
  type CalendarCreateEventError = CalendarCreateEventErrors[keyof CalendarCreateEventErrors];
5156
6960
  type CalendarCreateEventResponses = {
@@ -5182,18 +6986,42 @@ type CalendarRespondToEventData = {
5182
6986
  url: '/identities/{id}/calendar/events/{eventId}/respond';
5183
6987
  };
5184
6988
  type CalendarRespondToEventErrors = {
6989
+ /**
6990
+ * The request is not valid. `error.field` names the input at fault when there is one.
6991
+ */
6992
+ 400: Error;
5185
6993
  /**
5186
6994
  * No API key, or one that is not valid.
5187
6995
  */
5188
6996
  401: Error;
6997
+ /**
6998
+ * Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit) or `forbidden` (the address is not one this key can send from, or is not active).
6999
+ */
7000
+ 403: Error;
5189
7001
  /**
5190
7002
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5191
7003
  */
5192
7004
  404: Error;
7005
+ /**
7006
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7007
+ */
7008
+ 409: Error;
7009
+ /**
7010
+ * It was here and is not any more. Forget the id.
7011
+ */
7012
+ 410: Error;
5193
7013
  /**
5194
7014
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5195
7015
  */
5196
7016
  429: Error;
7017
+ /**
7018
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7019
+ */
7020
+ 500: Error;
7021
+ /**
7022
+ * Something this needs is not answering right now. Retry in a moment.
7023
+ */
7024
+ 503: Error;
5197
7025
  };
5198
7026
  type CalendarRespondToEventError = CalendarRespondToEventErrors[keyof CalendarRespondToEventErrors];
5199
7027
  type CalendarRespondToEventResponses = {
@@ -5219,18 +7047,42 @@ type CalendarListEventInstancesData = {
5219
7047
  url: '/identities/{id}/calendar/events/{eventId}/instances';
5220
7048
  };
5221
7049
  type CalendarListEventInstancesErrors = {
7050
+ /**
7051
+ * The request is not valid. `error.field` names the input at fault when there is one.
7052
+ */
7053
+ 400: Error;
5222
7054
  /**
5223
7055
  * No API key, or one that is not valid.
5224
7056
  */
5225
7057
  401: Error;
7058
+ /**
7059
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7060
+ */
7061
+ 403: Error;
5226
7062
  /**
5227
7063
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5228
7064
  */
5229
7065
  404: Error;
7066
+ /**
7067
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7068
+ */
7069
+ 409: Error;
7070
+ /**
7071
+ * It was here and is not any more. Forget the id.
7072
+ */
7073
+ 410: Error;
5230
7074
  /**
5231
7075
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5232
7076
  */
5233
7077
  429: Error;
7078
+ /**
7079
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7080
+ */
7081
+ 500: Error;
7082
+ /**
7083
+ * Something this needs is not answering right now. Retry in a moment.
7084
+ */
7085
+ 503: Error;
5234
7086
  };
5235
7087
  type CalendarListEventInstancesError = CalendarListEventInstancesErrors[keyof CalendarListEventInstancesErrors];
5236
7088
  type CalendarListEventInstancesResponses = {
@@ -5261,18 +7113,38 @@ type CalendarGetAgendaData = {
5261
7113
  url: '/identities/{id}/calendar/agenda';
5262
7114
  };
5263
7115
  type CalendarGetAgendaErrors = {
7116
+ /**
7117
+ * The request is not valid. `error.field` names the input at fault when there is one.
7118
+ */
7119
+ 400: Error;
5264
7120
  /**
5265
7121
  * No API key, or one that is not valid.
5266
7122
  */
5267
7123
  401: Error;
7124
+ /**
7125
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7126
+ */
7127
+ 403: Error;
5268
7128
  /**
5269
7129
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5270
7130
  */
5271
7131
  404: Error;
7132
+ /**
7133
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7134
+ */
7135
+ 409: Error;
5272
7136
  /**
5273
7137
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5274
7138
  */
5275
7139
  429: Error;
7140
+ /**
7141
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7142
+ */
7143
+ 500: Error;
7144
+ /**
7145
+ * Something this needs is not answering right now. Retry in a moment.
7146
+ */
7147
+ 503: Error;
5276
7148
  };
5277
7149
  type CalendarGetAgendaError = CalendarGetAgendaErrors[keyof CalendarGetAgendaErrors];
5278
7150
  type CalendarGetAgendaResponses = {
@@ -5310,18 +7182,42 @@ type CalendarDeleteEventData = {
5310
7182
  url: '/identities/{id}/calendar/events/{eventId}';
5311
7183
  };
5312
7184
  type CalendarDeleteEventErrors = {
7185
+ /**
7186
+ * The request is not valid. `error.field` names the input at fault when there is one.
7187
+ */
7188
+ 400: Error;
5313
7189
  /**
5314
7190
  * No API key, or one that is not valid.
5315
7191
  */
5316
7192
  401: Error;
7193
+ /**
7194
+ * Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit) or `forbidden` (the address is not one this key can send from, or is not active).
7195
+ */
7196
+ 403: Error;
5317
7197
  /**
5318
7198
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5319
7199
  */
5320
7200
  404: Error;
7201
+ /**
7202
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7203
+ */
7204
+ 409: Error;
7205
+ /**
7206
+ * It was here and is not any more. Forget the id.
7207
+ */
7208
+ 410: Error;
5321
7209
  /**
5322
7210
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5323
7211
  */
5324
7212
  429: Error;
7213
+ /**
7214
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7215
+ */
7216
+ 500: Error;
7217
+ /**
7218
+ * Something this needs is not answering right now. Retry in a moment.
7219
+ */
7220
+ 503: Error;
5325
7221
  };
5326
7222
  type CalendarDeleteEventError = CalendarDeleteEventErrors[keyof CalendarDeleteEventErrors];
5327
7223
  type CalendarDeleteEventResponses = {
@@ -5343,18 +7239,42 @@ type CalendarGetEventData = {
5343
7239
  url: '/identities/{id}/calendar/events/{eventId}';
5344
7240
  };
5345
7241
  type CalendarGetEventErrors = {
7242
+ /**
7243
+ * The request is not valid. `error.field` names the input at fault when there is one.
7244
+ */
7245
+ 400: Error;
5346
7246
  /**
5347
7247
  * No API key, or one that is not valid.
5348
7248
  */
5349
7249
  401: Error;
7250
+ /**
7251
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7252
+ */
7253
+ 403: Error;
5350
7254
  /**
5351
7255
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5352
7256
  */
5353
7257
  404: Error;
7258
+ /**
7259
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7260
+ */
7261
+ 409: Error;
7262
+ /**
7263
+ * It was here and is not any more. Forget the id.
7264
+ */
7265
+ 410: Error;
5354
7266
  /**
5355
7267
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5356
7268
  */
5357
7269
  429: Error;
7270
+ /**
7271
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7272
+ */
7273
+ 500: Error;
7274
+ /**
7275
+ * Something this needs is not answering right now. Retry in a moment.
7276
+ */
7277
+ 503: Error;
5358
7278
  };
5359
7279
  type CalendarGetEventError = CalendarGetEventErrors[keyof CalendarGetEventErrors];
5360
7280
  type CalendarGetEventResponses = {
@@ -5412,18 +7332,42 @@ type CalendarUpdateEventData = {
5412
7332
  url: '/identities/{id}/calendar/events/{eventId}';
5413
7333
  };
5414
7334
  type CalendarUpdateEventErrors = {
7335
+ /**
7336
+ * The request is not valid. `error.field` names the input at fault when there is one.
7337
+ */
7338
+ 400: Error;
5415
7339
  /**
5416
7340
  * No API key, or one that is not valid.
5417
7341
  */
5418
7342
  401: Error;
7343
+ /**
7344
+ * Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit) or `forbidden` (the address is not one this key can send from, or is not active).
7345
+ */
7346
+ 403: Error;
5419
7347
  /**
5420
7348
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5421
7349
  */
5422
7350
  404: Error;
7351
+ /**
7352
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7353
+ */
7354
+ 409: Error;
7355
+ /**
7356
+ * It was here and is not any more. Forget the id.
7357
+ */
7358
+ 410: Error;
5423
7359
  /**
5424
7360
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5425
7361
  */
5426
7362
  429: Error;
7363
+ /**
7364
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7365
+ */
7366
+ 500: Error;
7367
+ /**
7368
+ * Something this needs is not answering right now. Retry in a moment.
7369
+ */
7370
+ 503: Error;
5427
7371
  };
5428
7372
  type CalendarUpdateEventError = CalendarUpdateEventErrors[keyof CalendarUpdateEventErrors];
5429
7373
  type CalendarUpdateEventResponses = {
@@ -5445,18 +7389,38 @@ type DraftsListData = {
5445
7389
  url: '/drafts';
5446
7390
  };
5447
7391
  type DraftsListErrors = {
7392
+ /**
7393
+ * The request is not valid. `error.field` names the input at fault when there is one.
7394
+ */
7395
+ 400: Error;
5448
7396
  /**
5449
7397
  * No API key, or one that is not valid.
5450
7398
  */
5451
7399
  401: Error;
7400
+ /**
7401
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7402
+ */
7403
+ 403: Error;
5452
7404
  /**
5453
7405
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5454
7406
  */
5455
7407
  404: Error;
7408
+ /**
7409
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7410
+ */
7411
+ 409: Error;
5456
7412
  /**
5457
7413
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5458
7414
  */
5459
7415
  429: Error;
7416
+ /**
7417
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7418
+ */
7419
+ 500: Error;
7420
+ /**
7421
+ * Something this needs is not answering right now. Retry in a moment.
7422
+ */
7423
+ 503: Error;
5460
7424
  };
5461
7425
  type DraftsListError = DraftsListErrors[keyof DraftsListErrors];
5462
7426
  type DraftsListResponses = {
@@ -5521,18 +7485,38 @@ type DraftsCreateData = {
5521
7485
  url: '/drafts';
5522
7486
  };
5523
7487
  type DraftsCreateErrors = {
7488
+ /**
7489
+ * The request is not valid. `error.field` names the input at fault when there is one.
7490
+ */
7491
+ 400: Error;
5524
7492
  /**
5525
7493
  * No API key, or one that is not valid.
5526
7494
  */
5527
7495
  401: Error;
7496
+ /**
7497
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7498
+ */
7499
+ 403: Error;
5528
7500
  /**
5529
7501
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5530
7502
  */
5531
7503
  404: Error;
7504
+ /**
7505
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7506
+ */
7507
+ 409: Error;
5532
7508
  /**
5533
7509
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5534
7510
  */
5535
7511
  429: Error;
7512
+ /**
7513
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7514
+ */
7515
+ 500: Error;
7516
+ /**
7517
+ * Something this needs is not answering right now. Retry in a moment.
7518
+ */
7519
+ 503: Error;
5536
7520
  };
5537
7521
  type DraftsCreateError = DraftsCreateErrors[keyof DraftsCreateErrors];
5538
7522
  type DraftsCreateResponses = {
@@ -5553,18 +7537,38 @@ type DraftsDeleteData = {
5553
7537
  url: '/drafts/{id}';
5554
7538
  };
5555
7539
  type DraftsDeleteErrors = {
7540
+ /**
7541
+ * The request is not valid. `error.field` names the input at fault when there is one.
7542
+ */
7543
+ 400: Error;
5556
7544
  /**
5557
7545
  * No API key, or one that is not valid.
5558
7546
  */
5559
7547
  401: Error;
7548
+ /**
7549
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7550
+ */
7551
+ 403: Error;
5560
7552
  /**
5561
7553
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5562
7554
  */
5563
7555
  404: Error;
7556
+ /**
7557
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7558
+ */
7559
+ 409: Error;
5564
7560
  /**
5565
7561
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5566
7562
  */
5567
7563
  429: Error;
7564
+ /**
7565
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7566
+ */
7567
+ 500: Error;
7568
+ /**
7569
+ * Something this needs is not answering right now. Retry in a moment.
7570
+ */
7571
+ 503: Error;
5568
7572
  };
5569
7573
  type DraftsDeleteError = DraftsDeleteErrors[keyof DraftsDeleteErrors];
5570
7574
  type DraftsDeleteResponses = {
@@ -5585,18 +7589,38 @@ type DraftsGetData = {
5585
7589
  url: '/drafts/{id}';
5586
7590
  };
5587
7591
  type DraftsGetErrors = {
7592
+ /**
7593
+ * The request is not valid. `error.field` names the input at fault when there is one.
7594
+ */
7595
+ 400: Error;
5588
7596
  /**
5589
7597
  * No API key, or one that is not valid.
5590
7598
  */
5591
7599
  401: Error;
7600
+ /**
7601
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7602
+ */
7603
+ 403: Error;
5592
7604
  /**
5593
7605
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5594
7606
  */
5595
7607
  404: Error;
7608
+ /**
7609
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7610
+ */
7611
+ 409: Error;
5596
7612
  /**
5597
7613
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5598
7614
  */
5599
7615
  429: Error;
7616
+ /**
7617
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7618
+ */
7619
+ 500: Error;
7620
+ /**
7621
+ * Something this needs is not answering right now. Retry in a moment.
7622
+ */
7623
+ 503: Error;
5600
7624
  };
5601
7625
  type DraftsGetError = DraftsGetErrors[keyof DraftsGetErrors];
5602
7626
  type DraftsGetResponses = {
@@ -5646,18 +7670,38 @@ type DraftsUpdateData = {
5646
7670
  url: '/drafts/{id}';
5647
7671
  };
5648
7672
  type DraftsUpdateErrors = {
7673
+ /**
7674
+ * The request is not valid. `error.field` names the input at fault when there is one.
7675
+ */
7676
+ 400: Error;
5649
7677
  /**
5650
7678
  * No API key, or one that is not valid.
5651
7679
  */
5652
7680
  401: Error;
7681
+ /**
7682
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7683
+ */
7684
+ 403: Error;
5653
7685
  /**
5654
7686
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5655
7687
  */
5656
7688
  404: Error;
7689
+ /**
7690
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7691
+ */
7692
+ 409: Error;
5657
7693
  /**
5658
7694
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5659
7695
  */
5660
7696
  429: Error;
7697
+ /**
7698
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7699
+ */
7700
+ 500: Error;
7701
+ /**
7702
+ * Something this needs is not answering right now. Retry in a moment.
7703
+ */
7704
+ 503: Error;
5661
7705
  };
5662
7706
  type DraftsUpdateError = DraftsUpdateErrors[keyof DraftsUpdateErrors];
5663
7707
  type DraftsUpdateResponses = {
@@ -5679,7 +7723,7 @@ type DraftsSendData = {
5679
7723
  };
5680
7724
  type DraftsSendErrors = {
5681
7725
  /**
5682
- * The request is not valid. `error.param` names the field when there is one.
7726
+ * The request is not valid. `error.field` names the input at fault when there is one.
5683
7727
  */
5684
7728
  400: Error;
5685
7729
  /**
@@ -5694,10 +7738,22 @@ type DraftsSendErrors = {
5694
7738
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5695
7739
  */
5696
7740
  404: Error;
7741
+ /**
7742
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7743
+ */
7744
+ 409: Error;
5697
7745
  /**
5698
7746
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5699
7747
  */
5700
7748
  429: Error;
7749
+ /**
7750
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7751
+ */
7752
+ 500: Error;
7753
+ /**
7754
+ * Something this needs is not answering right now. Retry in a moment.
7755
+ */
7756
+ 503: Error;
5701
7757
  };
5702
7758
  type DraftsSendError = DraftsSendErrors[keyof DraftsSendErrors];
5703
7759
  type DraftsSendResponses = {
@@ -5718,18 +7774,38 @@ type DraftsCancelScheduleData = {
5718
7774
  url: '/drafts/{id}/schedule';
5719
7775
  };
5720
7776
  type DraftsCancelScheduleErrors = {
7777
+ /**
7778
+ * The request is not valid. `error.field` names the input at fault when there is one.
7779
+ */
7780
+ 400: Error;
5721
7781
  /**
5722
7782
  * No API key, or one that is not valid.
5723
7783
  */
5724
7784
  401: Error;
7785
+ /**
7786
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7787
+ */
7788
+ 403: Error;
5725
7789
  /**
5726
7790
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5727
7791
  */
5728
7792
  404: Error;
7793
+ /**
7794
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7795
+ */
7796
+ 409: Error;
5729
7797
  /**
5730
7798
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5731
7799
  */
5732
7800
  429: Error;
7801
+ /**
7802
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7803
+ */
7804
+ 500: Error;
7805
+ /**
7806
+ * Something this needs is not answering right now. Retry in a moment.
7807
+ */
7808
+ 503: Error;
5733
7809
  };
5734
7810
  type DraftsCancelScheduleError = DraftsCancelScheduleErrors[keyof DraftsCancelScheduleErrors];
5735
7811
  type DraftsCancelScheduleResponses = {
@@ -5752,18 +7828,38 @@ type DraftsScheduleData = {
5752
7828
  url: '/drafts/{id}/schedule';
5753
7829
  };
5754
7830
  type DraftsScheduleErrors = {
7831
+ /**
7832
+ * The request is not valid. `error.field` names the input at fault when there is one.
7833
+ */
7834
+ 400: Error;
5755
7835
  /**
5756
7836
  * No API key, or one that is not valid.
5757
7837
  */
5758
7838
  401: Error;
7839
+ /**
7840
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7841
+ */
7842
+ 403: Error;
5759
7843
  /**
5760
7844
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5761
7845
  */
5762
7846
  404: Error;
7847
+ /**
7848
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7849
+ */
7850
+ 409: Error;
5763
7851
  /**
5764
7852
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5765
7853
  */
5766
7854
  429: Error;
7855
+ /**
7856
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7857
+ */
7858
+ 500: Error;
7859
+ /**
7860
+ * Something this needs is not answering right now. Retry in a moment.
7861
+ */
7862
+ 503: Error;
5767
7863
  };
5768
7864
  type DraftsScheduleError = DraftsScheduleErrors[keyof DraftsScheduleErrors];
5769
7865
  type DraftsScheduleResponses = {
@@ -5785,18 +7881,38 @@ type DraftsRemoveAttachmentData = {
5785
7881
  url: '/drafts/{id}/attachments/{attachmentId}';
5786
7882
  };
5787
7883
  type DraftsRemoveAttachmentErrors = {
7884
+ /**
7885
+ * The request is not valid. `error.field` names the input at fault when there is one.
7886
+ */
7887
+ 400: Error;
5788
7888
  /**
5789
7889
  * No API key, or one that is not valid.
5790
7890
  */
5791
7891
  401: Error;
7892
+ /**
7893
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7894
+ */
7895
+ 403: Error;
5792
7896
  /**
5793
7897
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5794
7898
  */
5795
7899
  404: Error;
7900
+ /**
7901
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7902
+ */
7903
+ 409: Error;
5796
7904
  /**
5797
7905
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5798
7906
  */
5799
7907
  429: Error;
7908
+ /**
7909
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7910
+ */
7911
+ 500: Error;
7912
+ /**
7913
+ * Something this needs is not answering right now. Retry in a moment.
7914
+ */
7915
+ 503: Error;
5800
7916
  };
5801
7917
  type DraftsRemoveAttachmentError = DraftsRemoveAttachmentErrors[keyof DraftsRemoveAttachmentErrors];
5802
7918
  type DraftsRemoveAttachmentResponses = {
@@ -5819,18 +7935,38 @@ type MetricsQueryData = {
5819
7935
  url: '/metrics';
5820
7936
  };
5821
7937
  type MetricsQueryErrors = {
7938
+ /**
7939
+ * The request is not valid. `error.field` names the input at fault when there is one.
7940
+ */
7941
+ 400: Error;
5822
7942
  /**
5823
7943
  * No API key, or one that is not valid.
5824
7944
  */
5825
7945
  401: Error;
7946
+ /**
7947
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
7948
+ */
7949
+ 403: Error;
5826
7950
  /**
5827
7951
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5828
7952
  */
5829
7953
  404: Error;
7954
+ /**
7955
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7956
+ */
7957
+ 409: Error;
5830
7958
  /**
5831
7959
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5832
7960
  */
5833
7961
  429: Error;
7962
+ /**
7963
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
7964
+ */
7965
+ 500: Error;
7966
+ /**
7967
+ * Something this needs is not answering right now. Retry in a moment.
7968
+ */
7969
+ 503: Error;
5834
7970
  };
5835
7971
  type MetricsQueryError = MetricsQueryErrors[keyof MetricsQueryErrors];
5836
7972
  type MetricsQueryResponses = {
@@ -5852,18 +7988,38 @@ type AttachmentsUploadData = {
5852
7988
  url: '/attachments';
5853
7989
  };
5854
7990
  type AttachmentsUploadErrors = {
7991
+ /**
7992
+ * The request is not valid. `error.field` names the input at fault when there is one.
7993
+ */
7994
+ 400: Error;
5855
7995
  /**
5856
7996
  * No API key, or one that is not valid.
5857
7997
  */
5858
7998
  401: Error;
7999
+ /**
8000
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
8001
+ */
8002
+ 403: Error;
5859
8003
  /**
5860
8004
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5861
8005
  */
5862
8006
  404: Error;
8007
+ /**
8008
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
8009
+ */
8010
+ 409: Error;
5863
8011
  /**
5864
8012
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5865
8013
  */
5866
8014
  429: Error;
8015
+ /**
8016
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
8017
+ */
8018
+ 500: Error;
8019
+ /**
8020
+ * Something this needs is not answering right now. Retry in a moment.
8021
+ */
8022
+ 503: Error;
5867
8023
  };
5868
8024
  type AttachmentsUploadError = AttachmentsUploadErrors[keyof AttachmentsUploadErrors];
5869
8025
  type AttachmentsUploadResponses = {
@@ -5884,18 +8040,38 @@ type AttachmentsDownloadUrlData = {
5884
8040
  url: '/attachments/{id}';
5885
8041
  };
5886
8042
  type AttachmentsDownloadUrlErrors = {
8043
+ /**
8044
+ * The request is not valid. `error.field` names the input at fault when there is one.
8045
+ */
8046
+ 400: Error;
5887
8047
  /**
5888
8048
  * No API key, or one that is not valid.
5889
8049
  */
5890
8050
  401: Error;
8051
+ /**
8052
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
8053
+ */
8054
+ 403: Error;
5891
8055
  /**
5892
8056
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5893
8057
  */
5894
8058
  404: Error;
8059
+ /**
8060
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
8061
+ */
8062
+ 409: Error;
5895
8063
  /**
5896
8064
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5897
8065
  */
5898
8066
  429: Error;
8067
+ /**
8068
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
8069
+ */
8070
+ 500: Error;
8071
+ /**
8072
+ * Something this needs is not answering right now. Retry in a moment.
8073
+ */
8074
+ 503: Error;
5899
8075
  };
5900
8076
  type AttachmentsDownloadUrlError = AttachmentsDownloadUrlErrors[keyof AttachmentsDownloadUrlErrors];
5901
8077
  type AttachmentsDownloadUrlResponses = {
@@ -5918,18 +8094,38 @@ type AttachmentsTextData = {
5918
8094
  url: '/attachments/{id}/text';
5919
8095
  };
5920
8096
  type AttachmentsTextErrors = {
8097
+ /**
8098
+ * The request is not valid. `error.field` names the input at fault when there is one.
8099
+ */
8100
+ 400: Error;
5921
8101
  /**
5922
8102
  * No API key, or one that is not valid.
5923
8103
  */
5924
8104
  401: Error;
8105
+ /**
8106
+ * Refused. `error.code` says why: `forbidden` when this key may not do this or the account is on hold, `abuse_blocked` when a limit says no.
8107
+ */
8108
+ 403: Error;
5925
8109
  /**
5926
8110
  * No such resource, or one this key cannot reach. The two answer the same, so treat a 404 as “not available to you” rather than “does not exist”.
5927
8111
  */
5928
8112
  404: Error;
8113
+ /**
8114
+ * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
8115
+ */
8116
+ 409: Error;
5929
8117
  /**
5930
8118
  * Rate limited. `X-RateLimit-Reset` says when to retry.
5931
8119
  */
5932
8120
  429: Error;
8121
+ /**
8122
+ * Something went wrong on our side. Retry; if it keeps happening, tell us.
8123
+ */
8124
+ 500: Error;
8125
+ /**
8126
+ * Something this needs is not answering right now. Retry in a moment.
8127
+ */
8128
+ 503: Error;
5933
8129
  };
5934
8130
  type AttachmentsTextError = AttachmentsTextErrors[keyof AttachmentsTextErrors];
5935
8131
  type AttachmentsTextResponses = {