@peasant-labs/schema 0.46.0 → 0.47.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.
|
@@ -35,6 +35,23 @@ export interface paths {
|
|
|
35
35
|
patch?: never;
|
|
36
36
|
trace?: never;
|
|
37
37
|
};
|
|
38
|
+
"/api/v1/attachments/{ref}": {
|
|
39
|
+
parameters: {
|
|
40
|
+
query?: never;
|
|
41
|
+
header?: never;
|
|
42
|
+
path?: never;
|
|
43
|
+
cookie?: never;
|
|
44
|
+
};
|
|
45
|
+
/** @description Read one stored image by its content address. The path parameter ref is a lowercase 64-hex sha256. A well-formed ref whose row and file exist answers 200 with the stored bytes as image/png or image/jpeg and Cache-Control: public, max-age=31536000, immutable, because the URL is the digest and a successful response never changes. A malformed ref is 400 with JSON error code attachment_ref_malformed; the body does not repeat the rejected ref. A well-formed ref with no row, or a row whose file is missing, is 404 with JSON error code attachment_not_found. This is a local read of bytes already stored on this computer. It is not a publication route. */
|
|
46
|
+
get: operations["getAttachment"];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
38
55
|
"/api/v1/config/capabilities": {
|
|
39
56
|
parameters: {
|
|
40
57
|
query?: never;
|
|
@@ -1910,6 +1927,50 @@ export interface operations {
|
|
|
1910
1927
|
};
|
|
1911
1928
|
};
|
|
1912
1929
|
};
|
|
1930
|
+
getAttachment: {
|
|
1931
|
+
parameters: {
|
|
1932
|
+
query?: never;
|
|
1933
|
+
header?: never;
|
|
1934
|
+
path: {
|
|
1935
|
+
/** @description Lowercase 64-hex sha256 content address of the stored image */
|
|
1936
|
+
ref: string;
|
|
1937
|
+
};
|
|
1938
|
+
cookie?: never;
|
|
1939
|
+
};
|
|
1940
|
+
requestBody?: never;
|
|
1941
|
+
responses: {
|
|
1942
|
+
/** @description The stored image bytes, image/png or image/jpeg, with an immutable Cache-Control header. */
|
|
1943
|
+
200: {
|
|
1944
|
+
headers: {
|
|
1945
|
+
/** @description A content-addressed image never changes, so a successful response is immutable. */
|
|
1946
|
+
"Cache-Control": "public, max-age=31536000, immutable";
|
|
1947
|
+
[name: string]: unknown;
|
|
1948
|
+
};
|
|
1949
|
+
content: {
|
|
1950
|
+
"image/jpeg": string;
|
|
1951
|
+
"image/png": string;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
/** @description The ref is not a lowercase 64-hex sha256. The JSON error code is attachment_ref_malformed and the body does not repeat the rejected ref. */
|
|
1955
|
+
400: {
|
|
1956
|
+
headers: {
|
|
1957
|
+
[name: string]: unknown;
|
|
1958
|
+
};
|
|
1959
|
+
content: {
|
|
1960
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
/** @description No stored row matches the ref, or the row exists and its file is missing. The JSON error code is attachment_not_found. */
|
|
1964
|
+
404: {
|
|
1965
|
+
headers: {
|
|
1966
|
+
[name: string]: unknown;
|
|
1967
|
+
};
|
|
1968
|
+
content: {
|
|
1969
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1913
1974
|
getUICapabilities: {
|
|
1914
1975
|
parameters: {
|
|
1915
1976
|
query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
2
|
export const VillageAPIVersion = "0.37.0";
|
|
3
|
-
export const PeasantLocalAPIVersion = "0.
|
|
3
|
+
export const PeasantLocalAPIVersion = "0.33.0";
|
|
4
4
|
export const TypesVersion = "0.45.0";
|
|
5
5
|
export const MetadataSchemaVersion = 12;
|