diff --git a/openapi-full.json b/openapi-full.json index 7a5298e3b1..fad3f76592 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -1128,6 +1128,48 @@ } } }, + "/index.php/apps/libresign/p/sign/{uuid}/pdf": { + "get": { + "operationId": "page-sign-pdf", + "summary": "Sign page to authenticated signer", + "description": "The path is used only by frontend", + "tags": [ + "page" + ], + "security": [ + {}, + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "description": "Sign request uuid", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/html": { + "schema": { + "type": "string" + } + } + } + } + } + } + }, "/index.php/apps/libresign/p/sign/{uuid}": { "get": { "operationId": "page-sign", @@ -3695,9 +3737,32 @@ } }, { - "name": "status", + "name": "status[]", + "in": "query", + "description": "Status could be none or many of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted.", + "schema": { + "type": "array", + "nullable": true, + "items": { + "type": "integer", + "format": "int64" + } + } + }, + { + "name": "start", + "in": "query", + "description": "Start date of signature request (UNIX timestamp)", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "end", "in": "query", - "description": "Status could be one of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted.", + "description": "End date of signature request (UNIX timestamp)", "schema": { "type": "integer", "format": "int64", diff --git a/openapi.json b/openapi.json index ebf9a8d844..fde54c2766 100644 --- a/openapi.json +++ b/openapi.json @@ -1032,6 +1032,48 @@ } } }, + "/index.php/apps/libresign/p/sign/{uuid}/pdf": { + "get": { + "operationId": "page-sign-pdf", + "summary": "Sign page to authenticated signer", + "description": "The path is used only by frontend", + "tags": [ + "page" + ], + "security": [ + {}, + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "description": "Sign request uuid", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "text/html": { + "schema": { + "type": "string" + } + } + } + } + } + } + }, "/index.php/apps/libresign/p/sign/{uuid}": { "get": { "operationId": "page-sign", @@ -3599,9 +3641,32 @@ } }, { - "name": "status", + "name": "status[]", + "in": "query", + "description": "Status could be none or many of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted.", + "schema": { + "type": "array", + "nullable": true, + "items": { + "type": "integer", + "format": "int64" + } + } + }, + { + "name": "start", + "in": "query", + "description": "Start date of signature request (UNIX timestamp)", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "end", "in": "query", - "description": "Status could be one of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted.", + "description": "End date of signature request (UNIX timestamp)", "schema": { "type": "integer", "format": "int64", diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index 64966b8c1c..769b00c353 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -153,6 +153,26 @@ export type paths = { patch?: never; trace?: never; }; + "/index.php/apps/libresign/p/sign/{uuid}/pdf": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Sign page to authenticated signer + * @description The path is used only by frontend + */ + get: operations["page-sign-pdf"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/index.php/apps/libresign/p/sign/{uuid}": { parameters: { query?: never; @@ -1419,6 +1439,29 @@ export interface operations { }; }; }; + "page-sign-pdf": { + parameters: { + query?: never; + header?: never; + path: { + /** @description Sign request uuid */ + uuid: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "text/html": string; + }; + }; + }; + }; "page-sign": { parameters: { query?: never; @@ -2453,8 +2496,12 @@ export interface operations { signer_uuid?: string | null; /** @description The nodeId (also called fileId). Is the id of a file at Nextcloud */ nodeId?: string | null; - /** @description Status could be one of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted. */ - status?: number | null; + /** @description Status could be none or many of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted. */ + "status[]"?: number[] | null; + /** @description Start date of signature request (UNIX timestamp) */ + start?: number | null; + /** @description End date of signature request (UNIX timestamp) */ + end?: number | null; }; header: { /** @description Required to be true for the API request to pass */ diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 2f1422039c..256118bfd9 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -153,6 +153,26 @@ export type paths = { patch?: never; trace?: never; }; + "/index.php/apps/libresign/p/sign/{uuid}/pdf": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Sign page to authenticated signer + * @description The path is used only by frontend + */ + get: operations["page-sign-pdf"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/index.php/apps/libresign/p/sign/{uuid}": { parameters: { query?: never; @@ -1273,6 +1293,29 @@ export interface operations { }; }; }; + "page-sign-pdf": { + parameters: { + query?: never; + header?: never; + path: { + /** @description Sign request uuid */ + uuid: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "text/html": string; + }; + }; + }; + }; "page-sign": { parameters: { query?: never; @@ -2307,8 +2350,12 @@ export interface operations { signer_uuid?: string | null; /** @description The nodeId (also called fileId). Is the id of a file at Nextcloud */ nodeId?: string | null; - /** @description Status could be one of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted. */ - status?: number | null; + /** @description Status could be none or many of 0 = draft, 1 = able to sign, 2 = partial signed, 3 = signed, 4 = deleted. */ + "status[]"?: number[] | null; + /** @description Start date of signature request (UNIX timestamp) */ + start?: number | null; + /** @description End date of signature request (UNIX timestamp) */ + end?: number | null; }; header: { /** @description Required to be true for the API request to pass */