@malloy-publisher/sdk 0.2.5 → 0.2.6
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/client/api.d.ts +12 -0
- package/package.json +1 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -1915,6 +1915,12 @@ export interface Model {
|
|
|
1915
1915
|
* @interface ModelError
|
|
1916
1916
|
*/
|
|
1917
1917
|
export interface ModelError {
|
|
1918
|
+
/**
|
|
1919
|
+
* HTTP status code, repeated in the body for convenience
|
|
1920
|
+
* @type {number}
|
|
1921
|
+
* @memberof ModelError
|
|
1922
|
+
*/
|
|
1923
|
+
'code'?: number;
|
|
1918
1924
|
/**
|
|
1919
1925
|
* Human-readable error message describing what went wrong
|
|
1920
1926
|
* @type {string}
|
|
@@ -1927,6 +1933,12 @@ export interface ModelError {
|
|
|
1927
1933
|
* @memberof ModelError
|
|
1928
1934
|
*/
|
|
1929
1935
|
'details'?: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Machine-readable discriminator, for callers that must branch on which error they got rather than on prose. Absent unless a caller is expected to act on it, so treat absence as \"no special handling\". TABLE_NOT_FOUND distinguishes a table that is not in the database from the other conditions that also answer 404 on these routes -- an environment or connection this server does not host. The former says nothing about whether the caller reached the right server; the latter is a routing problem worth retrying elsewhere. Deliberately an open string rather than an enum. Generators render an enum closed, so adding a second value here would break every client generated before it -- on the one field whose purpose is to grow. Callers must treat an unrecognized value as absent. Known values: TABLE_NOT_FOUND.
|
|
1938
|
+
* @type {string}
|
|
1939
|
+
* @memberof ModelError
|
|
1940
|
+
*/
|
|
1941
|
+
'reason'?: string;
|
|
1930
1942
|
}
|
|
1931
1943
|
/**
|
|
1932
1944
|
* MotherDuck database connection configuration
|