@crowi/api-contract 2.0.0-alpha.13 → 2.0.0-alpha.14
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/generated/openapi.d.mts +66 -3
- package/dist/generated/openapi.d.ts +66 -3
- package/dist/generated/openapi.js.map +1 -1
- package/dist/index.d.mts +197 -29
- package/dist/index.d.ts +197 -29
- package/dist/index.js +71 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10387,8 +10387,6 @@ interface paths {
|
|
|
10387
10387
|
/** Format: binary */
|
|
10388
10388
|
file?: string;
|
|
10389
10389
|
pageId?: string;
|
|
10390
|
-
/** @enum {string} */
|
|
10391
|
-
intent?: "paste" | "dnd";
|
|
10392
10390
|
};
|
|
10393
10391
|
};
|
|
10394
10392
|
};
|
|
@@ -10456,7 +10454,7 @@ interface paths {
|
|
|
10456
10454
|
};
|
|
10457
10455
|
};
|
|
10458
10456
|
};
|
|
10459
|
-
/** @description Body exceeds the
|
|
10457
|
+
/** @description Body exceeds the unified upload size cap */
|
|
10460
10458
|
413: {
|
|
10461
10459
|
headers: {
|
|
10462
10460
|
[name: string]: unknown;
|
|
@@ -10774,6 +10772,71 @@ interface paths {
|
|
|
10774
10772
|
patch?: never;
|
|
10775
10773
|
trace?: never;
|
|
10776
10774
|
};
|
|
10775
|
+
"/attachments/upload-policy": {
|
|
10776
|
+
parameters: {
|
|
10777
|
+
query?: never;
|
|
10778
|
+
header?: never;
|
|
10779
|
+
path?: never;
|
|
10780
|
+
cookie?: never;
|
|
10781
|
+
};
|
|
10782
|
+
/** Get the server upload policy (allowed MIME types, extension hints, size limits) */
|
|
10783
|
+
get: {
|
|
10784
|
+
parameters: {
|
|
10785
|
+
query?: never;
|
|
10786
|
+
header?: never;
|
|
10787
|
+
path?: never;
|
|
10788
|
+
cookie?: never;
|
|
10789
|
+
};
|
|
10790
|
+
requestBody?: never;
|
|
10791
|
+
responses: {
|
|
10792
|
+
/** @description Current upload policy, derived from server-side constants (never a value maintained separately) */
|
|
10793
|
+
200: {
|
|
10794
|
+
headers: {
|
|
10795
|
+
[name: string]: unknown;
|
|
10796
|
+
};
|
|
10797
|
+
content: {
|
|
10798
|
+
"application/json": {
|
|
10799
|
+
allowedMimeTypes: string[];
|
|
10800
|
+
extensionHints: {
|
|
10801
|
+
[key: string]: string;
|
|
10802
|
+
};
|
|
10803
|
+
maxBytes: {
|
|
10804
|
+
attachment: number;
|
|
10805
|
+
};
|
|
10806
|
+
profilePicture: {
|
|
10807
|
+
allowedMimeTypes: string[];
|
|
10808
|
+
maxBytes: number;
|
|
10809
|
+
};
|
|
10810
|
+
};
|
|
10811
|
+
};
|
|
10812
|
+
};
|
|
10813
|
+
/** @description Authentication required */
|
|
10814
|
+
401: {
|
|
10815
|
+
headers: {
|
|
10816
|
+
[name: string]: unknown;
|
|
10817
|
+
};
|
|
10818
|
+
content: {
|
|
10819
|
+
"application/json": {
|
|
10820
|
+
error: {
|
|
10821
|
+
/** @enum {string} */
|
|
10822
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
10823
|
+
/** @enum {string} */
|
|
10824
|
+
message: "Authentication is required";
|
|
10825
|
+
redirectTo?: string;
|
|
10826
|
+
};
|
|
10827
|
+
};
|
|
10828
|
+
};
|
|
10829
|
+
};
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10832
|
+
put?: never;
|
|
10833
|
+
post?: never;
|
|
10834
|
+
delete?: never;
|
|
10835
|
+
options?: never;
|
|
10836
|
+
head?: never;
|
|
10837
|
+
patch?: never;
|
|
10838
|
+
trace?: never;
|
|
10839
|
+
};
|
|
10777
10840
|
"/search": {
|
|
10778
10841
|
parameters: {
|
|
10779
10842
|
query?: never;
|
|
@@ -10387,8 +10387,6 @@ interface paths {
|
|
|
10387
10387
|
/** Format: binary */
|
|
10388
10388
|
file?: string;
|
|
10389
10389
|
pageId?: string;
|
|
10390
|
-
/** @enum {string} */
|
|
10391
|
-
intent?: "paste" | "dnd";
|
|
10392
10390
|
};
|
|
10393
10391
|
};
|
|
10394
10392
|
};
|
|
@@ -10456,7 +10454,7 @@ interface paths {
|
|
|
10456
10454
|
};
|
|
10457
10455
|
};
|
|
10458
10456
|
};
|
|
10459
|
-
/** @description Body exceeds the
|
|
10457
|
+
/** @description Body exceeds the unified upload size cap */
|
|
10460
10458
|
413: {
|
|
10461
10459
|
headers: {
|
|
10462
10460
|
[name: string]: unknown;
|
|
@@ -10774,6 +10772,71 @@ interface paths {
|
|
|
10774
10772
|
patch?: never;
|
|
10775
10773
|
trace?: never;
|
|
10776
10774
|
};
|
|
10775
|
+
"/attachments/upload-policy": {
|
|
10776
|
+
parameters: {
|
|
10777
|
+
query?: never;
|
|
10778
|
+
header?: never;
|
|
10779
|
+
path?: never;
|
|
10780
|
+
cookie?: never;
|
|
10781
|
+
};
|
|
10782
|
+
/** Get the server upload policy (allowed MIME types, extension hints, size limits) */
|
|
10783
|
+
get: {
|
|
10784
|
+
parameters: {
|
|
10785
|
+
query?: never;
|
|
10786
|
+
header?: never;
|
|
10787
|
+
path?: never;
|
|
10788
|
+
cookie?: never;
|
|
10789
|
+
};
|
|
10790
|
+
requestBody?: never;
|
|
10791
|
+
responses: {
|
|
10792
|
+
/** @description Current upload policy, derived from server-side constants (never a value maintained separately) */
|
|
10793
|
+
200: {
|
|
10794
|
+
headers: {
|
|
10795
|
+
[name: string]: unknown;
|
|
10796
|
+
};
|
|
10797
|
+
content: {
|
|
10798
|
+
"application/json": {
|
|
10799
|
+
allowedMimeTypes: string[];
|
|
10800
|
+
extensionHints: {
|
|
10801
|
+
[key: string]: string;
|
|
10802
|
+
};
|
|
10803
|
+
maxBytes: {
|
|
10804
|
+
attachment: number;
|
|
10805
|
+
};
|
|
10806
|
+
profilePicture: {
|
|
10807
|
+
allowedMimeTypes: string[];
|
|
10808
|
+
maxBytes: number;
|
|
10809
|
+
};
|
|
10810
|
+
};
|
|
10811
|
+
};
|
|
10812
|
+
};
|
|
10813
|
+
/** @description Authentication required */
|
|
10814
|
+
401: {
|
|
10815
|
+
headers: {
|
|
10816
|
+
[name: string]: unknown;
|
|
10817
|
+
};
|
|
10818
|
+
content: {
|
|
10819
|
+
"application/json": {
|
|
10820
|
+
error: {
|
|
10821
|
+
/** @enum {string} */
|
|
10822
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
10823
|
+
/** @enum {string} */
|
|
10824
|
+
message: "Authentication is required";
|
|
10825
|
+
redirectTo?: string;
|
|
10826
|
+
};
|
|
10827
|
+
};
|
|
10828
|
+
};
|
|
10829
|
+
};
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10832
|
+
put?: never;
|
|
10833
|
+
post?: never;
|
|
10834
|
+
delete?: never;
|
|
10835
|
+
options?: never;
|
|
10836
|
+
head?: never;
|
|
10837
|
+
patch?: never;
|
|
10838
|
+
trace?: never;
|
|
10839
|
+
};
|
|
10777
10840
|
"/search": {
|
|
10778
10841
|
parameters: {
|
|
10779
10842
|
query?: never;
|