Simplify change handlers
This commit is contained in:
parent
89156eb270
commit
47e976b0bb
5 changed files with 84 additions and 170 deletions
|
|
@ -71,40 +71,14 @@ export interface paths {
|
|||
};
|
||||
};
|
||||
put?: never;
|
||||
post: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header: {
|
||||
authorization: string;
|
||||
};
|
||||
path: {
|
||||
vault_id: string;
|
||||
};
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["CreateDocumentVersion"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["DocumentVersion"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
post?: never;
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/vaults/{vault_id}/documents/{document_id}": {
|
||||
"/vaults/{vault_id}/documents/{relative_path}": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
|
|
@ -118,7 +92,7 @@ export interface paths {
|
|||
authorization: string;
|
||||
};
|
||||
path: {
|
||||
document_id: string;
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
cookie?: never;
|
||||
|
|
@ -142,7 +116,7 @@ export interface paths {
|
|||
authorization: string;
|
||||
};
|
||||
path: {
|
||||
document_id: string;
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
cookie?: never;
|
||||
|
|
@ -171,7 +145,7 @@ export interface paths {
|
|||
authorization: string;
|
||||
};
|
||||
path: {
|
||||
document_id: string;
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
cookie?: never;
|
||||
|
|
@ -237,12 +211,6 @@ export interface paths {
|
|||
export type webhooks = Record<string, never>;
|
||||
export interface components {
|
||||
schemas: {
|
||||
CreateDocumentVersion: {
|
||||
contentBase64: string;
|
||||
/** Format: date-time */
|
||||
createdDate: string;
|
||||
relativePath: string;
|
||||
};
|
||||
DeleteDocumentVersion: {
|
||||
/** Format: date-time */
|
||||
createdDate: string;
|
||||
|
|
@ -251,8 +219,6 @@ export interface components {
|
|||
contentBase64: string;
|
||||
/** Format: date-time */
|
||||
createdDate: string;
|
||||
/** Format: uuid */
|
||||
documentId: string;
|
||||
isDeleted: boolean;
|
||||
relativePath: string;
|
||||
/** Format: date-time */
|
||||
|
|
@ -264,8 +230,6 @@ export interface components {
|
|||
DocumentVersionWithoutContent: {
|
||||
/** Format: date-time */
|
||||
createdDate: string;
|
||||
/** Format: uuid */
|
||||
documentId: string;
|
||||
isDeleted: boolean;
|
||||
relativePath: string;
|
||||
/** Format: date-time */
|
||||
|
|
@ -278,21 +242,15 @@ export interface components {
|
|||
vault_id: string;
|
||||
};
|
||||
PathParams2: {
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
PathParams3: {
|
||||
/** Format: uuid */
|
||||
document_id: string;
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
PathParams4: {
|
||||
/** Format: uuid */
|
||||
document_id: string;
|
||||
vault_id: string;
|
||||
};
|
||||
PathParams5: {
|
||||
/** Format: uuid */
|
||||
document_id: string;
|
||||
relative_path: string;
|
||||
vault_id: string;
|
||||
};
|
||||
PingResponse: {
|
||||
|
|
@ -304,8 +262,7 @@ export interface components {
|
|||
/** Format: date-time */
|
||||
createdDate: string;
|
||||
/** Format: int64 */
|
||||
parentVersionId: number;
|
||||
relativePath: string;
|
||||
parentVersionId?: number | null;
|
||||
};
|
||||
};
|
||||
responses: never;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue