@openfilz-sdk/typescript 1.3.0 → 1.3.2
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/.openapi-generator/FILES +30 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +21 -2
- package/api/pdftools-api.ts +430 -0
- package/api.ts +1 -0
- package/dist/api/pdftools-api.d.ts +200 -0
- package/dist/api/pdftools-api.js +412 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/pdftools-api.d.ts +200 -0
- package/dist/esm/api/pdftools-api.js +405 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/audit-log-details-one-of.d.ts +3 -0
- package/dist/esm/models/audit-log.d.ts +1 -0
- package/dist/esm/models/audit-log.js +1 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/models/merge-request.d.ts +30 -0
- package/dist/esm/models/merge-request.js +14 -0
- package/dist/esm/models/merge-source.d.ts +24 -0
- package/dist/esm/models/merge-source.js +14 -0
- package/dist/esm/models/organize-request.d.ts +30 -0
- package/dist/esm/models/organize-request.js +14 -0
- package/dist/esm/models/output-target.d.ts +41 -0
- package/dist/esm/models/output-target.js +17 -0
- package/dist/esm/models/page-instruction.d.ts +28 -0
- package/dist/esm/models/page-instruction.js +14 -0
- package/dist/esm/models/pdf-info.d.ts +27 -0
- package/dist/esm/models/pdf-info.js +14 -0
- package/dist/esm/models/pdf-operation-response.d.ts +19 -0
- package/dist/esm/models/pdf-operation-response.js +14 -0
- package/dist/esm/models/pdf-outline-entry.d.ts +19 -0
- package/dist/esm/models/pdf-outline-entry.js +14 -0
- package/dist/esm/models/pdf-output-info.d.ts +21 -0
- package/dist/esm/models/pdf-output-info.js +14 -0
- package/dist/esm/models/pdf-page-info.d.ts +20 -0
- package/dist/esm/models/pdf-page-info.js +14 -0
- package/dist/esm/models/pdf-transform-audit.d.ts +17 -0
- package/dist/esm/models/pdf-transform-audit.js +14 -0
- package/dist/esm/models/rotate-request.d.ts +33 -0
- package/dist/esm/models/rotate-request.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/esm/models/search-by-audit-log-request.js +1 -0
- package/dist/esm/models/settings.d.ts +1 -0
- package/dist/esm/models/split-output.d.ts +32 -0
- package/dist/esm/models/split-output.js +14 -0
- package/dist/esm/models/split-request.d.ts +53 -0
- package/dist/esm/models/split-request.js +20 -0
- package/dist/models/audit-log-details-one-of.d.ts +3 -0
- package/dist/models/audit-log.d.ts +1 -0
- package/dist/models/audit-log.js +1 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/models/merge-request.d.ts +30 -0
- package/dist/models/merge-request.js +15 -0
- package/dist/models/merge-source.d.ts +24 -0
- package/dist/models/merge-source.js +15 -0
- package/dist/models/organize-request.d.ts +30 -0
- package/dist/models/organize-request.js +15 -0
- package/dist/models/output-target.d.ts +41 -0
- package/dist/models/output-target.js +20 -0
- package/dist/models/page-instruction.d.ts +28 -0
- package/dist/models/page-instruction.js +15 -0
- package/dist/models/pdf-info.d.ts +27 -0
- package/dist/models/pdf-info.js +15 -0
- package/dist/models/pdf-operation-response.d.ts +19 -0
- package/dist/models/pdf-operation-response.js +15 -0
- package/dist/models/pdf-outline-entry.d.ts +19 -0
- package/dist/models/pdf-outline-entry.js +15 -0
- package/dist/models/pdf-output-info.d.ts +21 -0
- package/dist/models/pdf-output-info.js +15 -0
- package/dist/models/pdf-page-info.d.ts +20 -0
- package/dist/models/pdf-page-info.js +15 -0
- package/dist/models/pdf-transform-audit.d.ts +17 -0
- package/dist/models/pdf-transform-audit.js +15 -0
- package/dist/models/rotate-request.d.ts +33 -0
- package/dist/models/rotate-request.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/models/search-by-audit-log-request.js +1 -0
- package/dist/models/settings.d.ts +1 -0
- package/dist/models/split-output.d.ts +32 -0
- package/dist/models/split-output.js +15 -0
- package/dist/models/split-request.d.ts +53 -0
- package/dist/models/split-request.js +23 -0
- package/docs/AuditLogDetailsOneOf.md +8 -2
- package/docs/MergeRequest.md +25 -0
- package/docs/MergeSource.md +23 -0
- package/docs/OrganizeRequest.md +25 -0
- package/docs/OutputTarget.md +29 -0
- package/docs/PDFToolsApi.md +271 -0
- package/docs/PageInstruction.md +25 -0
- package/docs/PdfInfo.md +37 -0
- package/docs/PdfOperationResponse.md +23 -0
- package/docs/PdfOutlineEntry.md +25 -0
- package/docs/PdfOutputInfo.md +29 -0
- package/docs/PdfPageInfo.md +27 -0
- package/docs/PdfTransformAudit.md +27 -0
- package/docs/RotateRequest.md +27 -0
- package/docs/Settings.md +2 -0
- package/docs/SplitOutput.md +27 -0
- package/docs/SplitRequest.md +33 -0
- package/models/audit-log-details-one-of.ts +4 -1
- package/models/audit-log.ts +1 -0
- package/models/index.ts +14 -0
- package/models/merge-request.ts +40 -0
- package/models/merge-source.ts +30 -0
- package/models/organize-request.ts +40 -0
- package/models/output-target.ts +50 -0
- package/models/page-instruction.ts +34 -0
- package/models/pdf-info.ts +37 -0
- package/models/pdf-operation-response.ts +27 -0
- package/models/pdf-outline-entry.ts +25 -0
- package/models/pdf-output-info.ts +27 -0
- package/models/pdf-page-info.ts +26 -0
- package/models/pdf-transform-audit.ts +26 -0
- package/models/rotate-request.ts +41 -0
- package/models/search-by-audit-log-request.ts +1 -0
- package/models/settings.ts +1 -0
- package/models/split-output.ts +38 -0
- package/models/split-request.ts +64 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ api/favorites-api.ts
|
|
|
17
17
|
api/file-controller-api.ts
|
|
18
18
|
api/folder-controller-api.ts
|
|
19
19
|
api/mcp-discovery-controller-api.ts
|
|
20
|
+
api/pdftools-api.ts
|
|
20
21
|
api/settings-api.ts
|
|
21
22
|
api/tus-controller-api.ts
|
|
22
23
|
base.ts
|
|
@@ -73,8 +74,20 @@ docs/FolderResponse.md
|
|
|
73
74
|
docs/InstantiateTemplateRequest.md
|
|
74
75
|
docs/ListAiModelsRequest.md
|
|
75
76
|
docs/McpDiscoveryControllerApi.md
|
|
77
|
+
docs/MergeRequest.md
|
|
78
|
+
docs/MergeSource.md
|
|
76
79
|
docs/MoveAudit.md
|
|
77
80
|
docs/MoveRequest.md
|
|
81
|
+
docs/OrganizeRequest.md
|
|
82
|
+
docs/OutputTarget.md
|
|
83
|
+
docs/PDFToolsApi.md
|
|
84
|
+
docs/PageInstruction.md
|
|
85
|
+
docs/PdfInfo.md
|
|
86
|
+
docs/PdfOperationResponse.md
|
|
87
|
+
docs/PdfOutlineEntry.md
|
|
88
|
+
docs/PdfOutputInfo.md
|
|
89
|
+
docs/PdfPageInfo.md
|
|
90
|
+
docs/PdfTransformAudit.md
|
|
78
91
|
docs/PublicSignatureView.md
|
|
79
92
|
docs/RenameAudit.md
|
|
80
93
|
docs/RenameRequest.md
|
|
@@ -82,6 +95,7 @@ docs/ReplaceAudit.md
|
|
|
82
95
|
docs/RestoreVersionAudit.md
|
|
83
96
|
docs/RestoreVersionResponse.md
|
|
84
97
|
docs/RoleBinding.md
|
|
98
|
+
docs/RotateRequest.md
|
|
85
99
|
docs/SaveAiSettingsRequest.md
|
|
86
100
|
docs/SearchByAuditLogRequest.md
|
|
87
101
|
docs/SearchByMetadataRequest.md
|
|
@@ -101,6 +115,8 @@ docs/SignatureTemplateField.md
|
|
|
101
115
|
docs/SignatureTemplateRequest.md
|
|
102
116
|
docs/SignatureTemplateRole.md
|
|
103
117
|
docs/SortInput.md
|
|
118
|
+
docs/SplitOutput.md
|
|
119
|
+
docs/SplitRequest.md
|
|
104
120
|
docs/StorageBreakdown.md
|
|
105
121
|
docs/Suggest.md
|
|
106
122
|
docs/TusConfigResponse.md
|
|
@@ -152,8 +168,19 @@ models/folder-response.ts
|
|
|
152
168
|
models/index.ts
|
|
153
169
|
models/instantiate-template-request.ts
|
|
154
170
|
models/list-ai-models-request.ts
|
|
171
|
+
models/merge-request.ts
|
|
172
|
+
models/merge-source.ts
|
|
155
173
|
models/move-audit.ts
|
|
156
174
|
models/move-request.ts
|
|
175
|
+
models/organize-request.ts
|
|
176
|
+
models/output-target.ts
|
|
177
|
+
models/page-instruction.ts
|
|
178
|
+
models/pdf-info.ts
|
|
179
|
+
models/pdf-operation-response.ts
|
|
180
|
+
models/pdf-outline-entry.ts
|
|
181
|
+
models/pdf-output-info.ts
|
|
182
|
+
models/pdf-page-info.ts
|
|
183
|
+
models/pdf-transform-audit.ts
|
|
157
184
|
models/public-signature-view.ts
|
|
158
185
|
models/rename-audit.ts
|
|
159
186
|
models/rename-request.ts
|
|
@@ -161,6 +188,7 @@ models/replace-audit.ts
|
|
|
161
188
|
models/restore-version-audit.ts
|
|
162
189
|
models/restore-version-response.ts
|
|
163
190
|
models/role-binding.ts
|
|
191
|
+
models/rotate-request.ts
|
|
164
192
|
models/save-ai-settings-request.ts
|
|
165
193
|
models/search-by-audit-log-request.ts
|
|
166
194
|
models/search-by-metadata-request.ts
|
|
@@ -179,6 +207,8 @@ models/signature-template-field.ts
|
|
|
179
207
|
models/signature-template-request.ts
|
|
180
208
|
models/signature-template-role.ts
|
|
181
209
|
models/sort-input.ts
|
|
210
|
+
models/split-output.ts
|
|
211
|
+
models/split-request.ts
|
|
182
212
|
models/storage-breakdown.ts
|
|
183
213
|
models/suggest.ts
|
|
184
214
|
models/tus-config-response.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3bf25d3469e139ab811b0cbf0da759c57985be541678a259a937869a80c9d460
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript@1.3.
|
|
1
|
+
## @openfilz-sdk/typescript@1.3.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript@1.3.
|
|
39
|
+
npm install @openfilz-sdk/typescript@1.3.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -123,6 +123,11 @@ Class | Method | HTTP request | Description
|
|
|
123
123
|
*FolderControllerApi* | [**renameFolder**](docs/FolderControllerApi.md#renamefolder) | **PUT** /api/v1/folders/{folderId}/rename | Rename a folder
|
|
124
124
|
*McpDiscoveryControllerApi* | [**authorizationServerMetadata**](docs/McpDiscoveryControllerApi.md#authorizationservermetadata) | **GET** /.well-known/oauth-authorization-server |
|
|
125
125
|
*McpDiscoveryControllerApi* | [**protectedResourceMetadata**](docs/McpDiscoveryControllerApi.md#protectedresourcemetadata) | **GET** /.well-known/oauth-protected-resource |
|
|
126
|
+
*PDFToolsApi* | [**info**](docs/PDFToolsApi.md#info) | **GET** /api/v1/pdf/{documentId}/info | Describe a stored PDF
|
|
127
|
+
*PDFToolsApi* | [**merge**](docs/PDFToolsApi.md#merge) | **POST** /api/v1/pdf/merge | Merge PDFs
|
|
128
|
+
*PDFToolsApi* | [**organize**](docs/PDFToolsApi.md#organize) | **POST** /api/v1/pdf/organize | Reorganise the pages of a PDF
|
|
129
|
+
*PDFToolsApi* | [**rotate**](docs/PDFToolsApi.md#rotate) | **POST** /api/v1/pdf/rotate | Rotate pages
|
|
130
|
+
*PDFToolsApi* | [**split**](docs/PDFToolsApi.md#split) | **POST** /api/v1/pdf/split | Split a PDF
|
|
126
131
|
*SettingsApi* | [**getSettings1**](docs/SettingsApi.md#getsettings1) | **GET** /api/v1/settings | Get user\'s settings
|
|
127
132
|
*TusControllerApi* | [**_options**](docs/TusControllerApi.md#_options) | **OPTIONS** /api/v1/tus | TUS capability discovery
|
|
128
133
|
*TusControllerApi* | [**cancelUpload**](docs/TusControllerApi.md#cancelupload) | **DELETE** /api/v1/tus/{uploadId} | Cancel upload
|
|
@@ -174,8 +179,19 @@ Class | Method | HTTP request | Description
|
|
|
174
179
|
- [FolderResponse](docs/FolderResponse.md)
|
|
175
180
|
- [InstantiateTemplateRequest](docs/InstantiateTemplateRequest.md)
|
|
176
181
|
- [ListAiModelsRequest](docs/ListAiModelsRequest.md)
|
|
182
|
+
- [MergeRequest](docs/MergeRequest.md)
|
|
183
|
+
- [MergeSource](docs/MergeSource.md)
|
|
177
184
|
- [MoveAudit](docs/MoveAudit.md)
|
|
178
185
|
- [MoveRequest](docs/MoveRequest.md)
|
|
186
|
+
- [OrganizeRequest](docs/OrganizeRequest.md)
|
|
187
|
+
- [OutputTarget](docs/OutputTarget.md)
|
|
188
|
+
- [PageInstruction](docs/PageInstruction.md)
|
|
189
|
+
- [PdfInfo](docs/PdfInfo.md)
|
|
190
|
+
- [PdfOperationResponse](docs/PdfOperationResponse.md)
|
|
191
|
+
- [PdfOutlineEntry](docs/PdfOutlineEntry.md)
|
|
192
|
+
- [PdfOutputInfo](docs/PdfOutputInfo.md)
|
|
193
|
+
- [PdfPageInfo](docs/PdfPageInfo.md)
|
|
194
|
+
- [PdfTransformAudit](docs/PdfTransformAudit.md)
|
|
179
195
|
- [PublicSignatureView](docs/PublicSignatureView.md)
|
|
180
196
|
- [RenameAudit](docs/RenameAudit.md)
|
|
181
197
|
- [RenameRequest](docs/RenameRequest.md)
|
|
@@ -183,6 +199,7 @@ Class | Method | HTTP request | Description
|
|
|
183
199
|
- [RestoreVersionAudit](docs/RestoreVersionAudit.md)
|
|
184
200
|
- [RestoreVersionResponse](docs/RestoreVersionResponse.md)
|
|
185
201
|
- [RoleBinding](docs/RoleBinding.md)
|
|
202
|
+
- [RotateRequest](docs/RotateRequest.md)
|
|
186
203
|
- [SaveAiSettingsRequest](docs/SaveAiSettingsRequest.md)
|
|
187
204
|
- [SearchByAuditLogRequest](docs/SearchByAuditLogRequest.md)
|
|
188
205
|
- [SearchByMetadataRequest](docs/SearchByMetadataRequest.md)
|
|
@@ -201,6 +218,8 @@ Class | Method | HTTP request | Description
|
|
|
201
218
|
- [SignatureTemplateRequest](docs/SignatureTemplateRequest.md)
|
|
202
219
|
- [SignatureTemplateRole](docs/SignatureTemplateRole.md)
|
|
203
220
|
- [SortInput](docs/SortInput.md)
|
|
221
|
+
- [SplitOutput](docs/SplitOutput.md)
|
|
222
|
+
- [SplitRequest](docs/SplitRequest.md)
|
|
204
223
|
- [StorageBreakdown](docs/StorageBreakdown.md)
|
|
205
224
|
- [Suggest](docs/Suggest.md)
|
|
206
225
|
- [TusConfigResponse](docs/TusConfigResponse.md)
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { MergeRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { OrganizeRequest } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { PdfInfo } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { PdfOperationResponse } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { RotateRequest } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { SplitRequest } from '../models';
|
|
36
|
+
/**
|
|
37
|
+
* PDFToolsApi - axios parameter creator
|
|
38
|
+
*/
|
|
39
|
+
export const PDFToolsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
|
|
43
|
+
* @summary Describe a stored PDF
|
|
44
|
+
* @param {string} documentId PDF document id
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
info: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
50
|
+
assertParamExists('info', 'documentId', documentId)
|
|
51
|
+
const localVarPath = `/api/v1/pdf/{documentId}/info`
|
|
52
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication keycloak_auth required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
url: toPathString(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
|
|
81
|
+
* @summary Merge PDFs
|
|
82
|
+
* @param {MergeRequest} mergeRequest
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
merge: async (mergeRequest: MergeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
87
|
+
// verify required parameter 'mergeRequest' is not null or undefined
|
|
88
|
+
assertParamExists('merge', 'mergeRequest', mergeRequest)
|
|
89
|
+
const localVarPath = `/api/v1/pdf/merge`;
|
|
90
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
91
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
92
|
+
let baseOptions;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
98
|
+
const localVarHeaderParameter = {} as any;
|
|
99
|
+
const localVarQueryParameter = {} as any;
|
|
100
|
+
|
|
101
|
+
// authentication keycloak_auth required
|
|
102
|
+
// http bearer authentication required
|
|
103
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
104
|
+
|
|
105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
106
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
107
|
+
|
|
108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
111
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mergeRequest, localVarRequestOptions, configuration)
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
url: toPathString(localVarUrlObj),
|
|
115
|
+
options: localVarRequestOptions,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
|
|
120
|
+
* @summary Reorganise the pages of a PDF
|
|
121
|
+
* @param {OrganizeRequest} organizeRequest
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
organize: async (organizeRequest: OrganizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
126
|
+
// verify required parameter 'organizeRequest' is not null or undefined
|
|
127
|
+
assertParamExists('organize', 'organizeRequest', organizeRequest)
|
|
128
|
+
const localVarPath = `/api/v1/pdf/organize`;
|
|
129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
131
|
+
let baseOptions;
|
|
132
|
+
if (configuration) {
|
|
133
|
+
baseOptions = configuration.baseOptions;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
137
|
+
const localVarHeaderParameter = {} as any;
|
|
138
|
+
const localVarQueryParameter = {} as any;
|
|
139
|
+
|
|
140
|
+
// authentication keycloak_auth required
|
|
141
|
+
// http bearer authentication required
|
|
142
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
143
|
+
|
|
144
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
145
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
146
|
+
|
|
147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizeRequest, localVarRequestOptions, configuration)
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
url: toPathString(localVarUrlObj),
|
|
154
|
+
options: localVarRequestOptions,
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
/**
|
|
158
|
+
* Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
|
|
159
|
+
* @summary Rotate pages
|
|
160
|
+
* @param {RotateRequest} rotateRequest
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
rotate: async (rotateRequest: RotateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
|
+
// verify required parameter 'rotateRequest' is not null or undefined
|
|
166
|
+
assertParamExists('rotate', 'rotateRequest', rotateRequest)
|
|
167
|
+
const localVarPath = `/api/v1/pdf/rotate`;
|
|
168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
176
|
+
const localVarHeaderParameter = {} as any;
|
|
177
|
+
const localVarQueryParameter = {} as any;
|
|
178
|
+
|
|
179
|
+
// authentication keycloak_auth required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
182
|
+
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
185
|
+
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
189
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rotateRequest, localVarRequestOptions, configuration)
|
|
190
|
+
|
|
191
|
+
return {
|
|
192
|
+
url: toPathString(localVarUrlObj),
|
|
193
|
+
options: localVarRequestOptions,
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
|
|
198
|
+
* @summary Split a PDF
|
|
199
|
+
* @param {SplitRequest} splitRequest
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
split: async (splitRequest: SplitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
|
+
// verify required parameter 'splitRequest' is not null or undefined
|
|
205
|
+
assertParamExists('split', 'splitRequest', splitRequest)
|
|
206
|
+
const localVarPath = `/api/v1/pdf/split`;
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
if (configuration) {
|
|
211
|
+
baseOptions = configuration.baseOptions;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
215
|
+
const localVarHeaderParameter = {} as any;
|
|
216
|
+
const localVarQueryParameter = {} as any;
|
|
217
|
+
|
|
218
|
+
// authentication keycloak_auth required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
221
|
+
|
|
222
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
223
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
224
|
+
|
|
225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
228
|
+
localVarRequestOptions.data = serializeDataIfNeeded(splitRequest, localVarRequestOptions, configuration)
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
url: toPathString(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* PDFToolsApi - functional programming interface
|
|
240
|
+
*/
|
|
241
|
+
export const PDFToolsApiFp = function(configuration?: Configuration) {
|
|
242
|
+
const localVarAxiosParamCreator = PDFToolsApiAxiosParamCreator(configuration)
|
|
243
|
+
return {
|
|
244
|
+
/**
|
|
245
|
+
* Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
|
|
246
|
+
* @summary Describe a stored PDF
|
|
247
|
+
* @param {string} documentId PDF document id
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
async info(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfInfo>> {
|
|
252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.info(documentId, options);
|
|
253
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
254
|
+
const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.info']?.[localVarOperationServerIndex]?.url;
|
|
255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
* Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
|
|
259
|
+
* @summary Merge PDFs
|
|
260
|
+
* @param {MergeRequest} mergeRequest
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
async merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
|
|
265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.merge(mergeRequest, options);
|
|
266
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
267
|
+
const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.merge']?.[localVarOperationServerIndex]?.url;
|
|
268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
269
|
+
},
|
|
270
|
+
/**
|
|
271
|
+
* The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
|
|
272
|
+
* @summary Reorganise the pages of a PDF
|
|
273
|
+
* @param {OrganizeRequest} organizeRequest
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
async organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
|
|
278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.organize(organizeRequest, options);
|
|
279
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
280
|
+
const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.organize']?.[localVarOperationServerIndex]?.url;
|
|
281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
* Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
|
|
285
|
+
* @summary Rotate pages
|
|
286
|
+
* @param {RotateRequest} rotateRequest
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
async rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
|
|
291
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rotate(rotateRequest, options);
|
|
292
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
293
|
+
const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.rotate']?.[localVarOperationServerIndex]?.url;
|
|
294
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
|
|
298
|
+
* @summary Split a PDF
|
|
299
|
+
* @param {SplitRequest} splitRequest
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
async split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
|
|
304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.split(splitRequest, options);
|
|
305
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
306
|
+
const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.split']?.[localVarOperationServerIndex]?.url;
|
|
307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
|
+
},
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* PDFToolsApi - factory interface
|
|
314
|
+
*/
|
|
315
|
+
export const PDFToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
316
|
+
const localVarFp = PDFToolsApiFp(configuration)
|
|
317
|
+
return {
|
|
318
|
+
/**
|
|
319
|
+
* Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
|
|
320
|
+
* @summary Describe a stored PDF
|
|
321
|
+
* @param {string} documentId PDF document id
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
info(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PdfInfo> {
|
|
326
|
+
return localVarFp.info(documentId, options).then((request) => request(axios, basePath));
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
* Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
|
|
330
|
+
* @summary Merge PDFs
|
|
331
|
+
* @param {MergeRequest} mergeRequest
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
|
|
336
|
+
return localVarFp.merge(mergeRequest, options).then((request) => request(axios, basePath));
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
|
|
340
|
+
* @summary Reorganise the pages of a PDF
|
|
341
|
+
* @param {OrganizeRequest} organizeRequest
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
|
|
346
|
+
return localVarFp.organize(organizeRequest, options).then((request) => request(axios, basePath));
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
|
|
350
|
+
* @summary Rotate pages
|
|
351
|
+
* @param {RotateRequest} rotateRequest
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
|
|
356
|
+
return localVarFp.rotate(rotateRequest, options).then((request) => request(axios, basePath));
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
* Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
|
|
360
|
+
* @summary Split a PDF
|
|
361
|
+
* @param {SplitRequest} splitRequest
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
|
|
366
|
+
return localVarFp.split(splitRequest, options).then((request) => request(axios, basePath));
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* PDFToolsApi - object-oriented interface
|
|
373
|
+
*/
|
|
374
|
+
export class PDFToolsApi extends BaseAPI {
|
|
375
|
+
/**
|
|
376
|
+
* Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
|
|
377
|
+
* @summary Describe a stored PDF
|
|
378
|
+
* @param {string} documentId PDF document id
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
public info(documentId: string, options?: RawAxiosRequestConfig) {
|
|
383
|
+
return PDFToolsApiFp(this.configuration).info(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
|
|
388
|
+
* @summary Merge PDFs
|
|
389
|
+
* @param {MergeRequest} mergeRequest
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
public merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig) {
|
|
394
|
+
return PDFToolsApiFp(this.configuration).merge(mergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
|
|
399
|
+
* @summary Reorganise the pages of a PDF
|
|
400
|
+
* @param {OrganizeRequest} organizeRequest
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
public organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig) {
|
|
405
|
+
return PDFToolsApiFp(this.configuration).organize(organizeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
|
|
410
|
+
* @summary Rotate pages
|
|
411
|
+
* @param {RotateRequest} rotateRequest
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
public rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig) {
|
|
416
|
+
return PDFToolsApiFp(this.configuration).rotate(rotateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
|
|
421
|
+
* @summary Split a PDF
|
|
422
|
+
* @param {SplitRequest} splitRequest
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
public split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig) {
|
|
427
|
+
return PDFToolsApiFp(this.configuration).split(splitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
package/api.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './api/favorites-api';
|
|
|
28
28
|
export * from './api/file-controller-api';
|
|
29
29
|
export * from './api/folder-controller-api';
|
|
30
30
|
export * from './api/mcp-discovery-controller-api';
|
|
31
|
+
export * from './api/pdftools-api';
|
|
31
32
|
export * from './api/settings-api';
|
|
32
33
|
export * from './api/tus-controller-api';
|
|
33
34
|
|