@openfilz-sdk/typescript-ee 1.9.2 → 1.9.4

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.
Files changed (122) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +21 -2
  4. package/api/pdftools-api.ts +430 -0
  5. package/api.ts +1 -0
  6. package/dist/api/pdftools-api.d.ts +200 -0
  7. package/dist/api/pdftools-api.js +412 -0
  8. package/dist/api.d.ts +1 -0
  9. package/dist/api.js +1 -0
  10. package/dist/esm/api/pdftools-api.d.ts +200 -0
  11. package/dist/esm/api/pdftools-api.js +405 -0
  12. package/dist/esm/api.d.ts +1 -0
  13. package/dist/esm/api.js +1 -0
  14. package/dist/esm/models/enriched-audit-log-details.d.ts +3 -0
  15. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  16. package/dist/esm/models/enriched-audit-log.js +1 -0
  17. package/dist/esm/models/index.d.ts +14 -0
  18. package/dist/esm/models/index.js +14 -0
  19. package/dist/esm/models/merge-request.d.ts +30 -0
  20. package/dist/esm/models/merge-request.js +14 -0
  21. package/dist/esm/models/merge-source.d.ts +24 -0
  22. package/dist/esm/models/merge-source.js +14 -0
  23. package/dist/esm/models/organize-request.d.ts +30 -0
  24. package/dist/esm/models/organize-request.js +14 -0
  25. package/dist/esm/models/output-target.d.ts +41 -0
  26. package/dist/esm/models/output-target.js +17 -0
  27. package/dist/esm/models/page-instruction.d.ts +28 -0
  28. package/dist/esm/models/page-instruction.js +14 -0
  29. package/dist/esm/models/pdf-info.d.ts +27 -0
  30. package/dist/esm/models/pdf-info.js +14 -0
  31. package/dist/esm/models/pdf-operation-response.d.ts +19 -0
  32. package/dist/esm/models/pdf-operation-response.js +14 -0
  33. package/dist/esm/models/pdf-outline-entry.d.ts +19 -0
  34. package/dist/esm/models/pdf-outline-entry.js +14 -0
  35. package/dist/esm/models/pdf-output-info.d.ts +21 -0
  36. package/dist/esm/models/pdf-output-info.js +14 -0
  37. package/dist/esm/models/pdf-page-info.d.ts +20 -0
  38. package/dist/esm/models/pdf-page-info.js +14 -0
  39. package/dist/esm/models/pdf-transform-audit.d.ts +17 -0
  40. package/dist/esm/models/pdf-transform-audit.js +14 -0
  41. package/dist/esm/models/rotate-request.d.ts +33 -0
  42. package/dist/esm/models/rotate-request.js +14 -0
  43. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  44. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  45. package/dist/esm/models/settings.d.ts +1 -0
  46. package/dist/esm/models/split-output.d.ts +32 -0
  47. package/dist/esm/models/split-output.js +14 -0
  48. package/dist/esm/models/split-request.d.ts +53 -0
  49. package/dist/esm/models/split-request.js +20 -0
  50. package/dist/models/enriched-audit-log-details.d.ts +3 -0
  51. package/dist/models/enriched-audit-log.d.ts +1 -0
  52. package/dist/models/enriched-audit-log.js +1 -0
  53. package/dist/models/index.d.ts +14 -0
  54. package/dist/models/index.js +14 -0
  55. package/dist/models/merge-request.d.ts +30 -0
  56. package/dist/models/merge-request.js +15 -0
  57. package/dist/models/merge-source.d.ts +24 -0
  58. package/dist/models/merge-source.js +15 -0
  59. package/dist/models/organize-request.d.ts +30 -0
  60. package/dist/models/organize-request.js +15 -0
  61. package/dist/models/output-target.d.ts +41 -0
  62. package/dist/models/output-target.js +20 -0
  63. package/dist/models/page-instruction.d.ts +28 -0
  64. package/dist/models/page-instruction.js +15 -0
  65. package/dist/models/pdf-info.d.ts +27 -0
  66. package/dist/models/pdf-info.js +15 -0
  67. package/dist/models/pdf-operation-response.d.ts +19 -0
  68. package/dist/models/pdf-operation-response.js +15 -0
  69. package/dist/models/pdf-outline-entry.d.ts +19 -0
  70. package/dist/models/pdf-outline-entry.js +15 -0
  71. package/dist/models/pdf-output-info.d.ts +21 -0
  72. package/dist/models/pdf-output-info.js +15 -0
  73. package/dist/models/pdf-page-info.d.ts +20 -0
  74. package/dist/models/pdf-page-info.js +15 -0
  75. package/dist/models/pdf-transform-audit.d.ts +17 -0
  76. package/dist/models/pdf-transform-audit.js +15 -0
  77. package/dist/models/rotate-request.d.ts +33 -0
  78. package/dist/models/rotate-request.js +15 -0
  79. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  80. package/dist/models/search-by-audit-log-request.js +1 -0
  81. package/dist/models/settings.d.ts +1 -0
  82. package/dist/models/split-output.d.ts +32 -0
  83. package/dist/models/split-output.js +15 -0
  84. package/dist/models/split-request.d.ts +53 -0
  85. package/dist/models/split-request.js +23 -0
  86. package/docs/EnrichedAuditLogDetails.md +8 -2
  87. package/docs/MergeRequest.md +25 -0
  88. package/docs/MergeSource.md +23 -0
  89. package/docs/OrganizeRequest.md +25 -0
  90. package/docs/OutputTarget.md +29 -0
  91. package/docs/PDFToolsApi.md +271 -0
  92. package/docs/PageInstruction.md +25 -0
  93. package/docs/PdfInfo.md +37 -0
  94. package/docs/PdfOperationResponse.md +23 -0
  95. package/docs/PdfOutlineEntry.md +25 -0
  96. package/docs/PdfOutputInfo.md +29 -0
  97. package/docs/PdfPageInfo.md +27 -0
  98. package/docs/PdfTransformAudit.md +27 -0
  99. package/docs/RotateRequest.md +27 -0
  100. package/docs/Settings.md +2 -0
  101. package/docs/SplitOutput.md +27 -0
  102. package/docs/SplitRequest.md +33 -0
  103. package/models/enriched-audit-log-details.ts +4 -1
  104. package/models/enriched-audit-log.ts +1 -0
  105. package/models/index.ts +14 -0
  106. package/models/merge-request.ts +40 -0
  107. package/models/merge-source.ts +30 -0
  108. package/models/organize-request.ts +40 -0
  109. package/models/output-target.ts +50 -0
  110. package/models/page-instruction.ts +34 -0
  111. package/models/pdf-info.ts +37 -0
  112. package/models/pdf-operation-response.ts +27 -0
  113. package/models/pdf-outline-entry.ts +25 -0
  114. package/models/pdf-output-info.ts +27 -0
  115. package/models/pdf-page-info.ts +26 -0
  116. package/models/pdf-transform-audit.ts +26 -0
  117. package/models/rotate-request.ts +41 -0
  118. package/models/search-by-audit-log-request.ts +1 -0
  119. package/models/settings.ts +1 -0
  120. package/models/split-output.ts +38 -0
  121. package/models/split-request.ts +64 -0
  122. package/package.json +1 -1
@@ -25,6 +25,7 @@ api/folder-controller-api.ts
25
25
  api/mcp-discovery-controller-api.ts
26
26
  api/mcp-token-admin-controller-api.ts
27
27
  api/notifications-api.ts
28
+ api/pdftools-api.ts
28
29
  api/scan-agent-api.ts
29
30
  api/scanner-proxy-api.ts
30
31
  api/search-administration-api.ts
@@ -112,12 +113,24 @@ docs/McpAgentTokenInfo.md
112
113
  docs/McpAgentTokenResponse.md
113
114
  docs/McpDiscoveryControllerApi.md
114
115
  docs/McpTokenAdminControllerApi.md
116
+ docs/MergeRequest.md
117
+ docs/MergeSource.md
115
118
  docs/MintMcpAgentTokenRequest.md
116
119
  docs/MintUploadTokenRequest.md
117
120
  docs/MoveAudit.md
118
121
  docs/MoveRequest.md
119
122
  docs/NotificationDTO.md
120
123
  docs/NotificationsApi.md
124
+ docs/OrganizeRequest.md
125
+ docs/OutputTarget.md
126
+ docs/PDFToolsApi.md
127
+ docs/PageInstruction.md
128
+ docs/PdfInfo.md
129
+ docs/PdfOperationResponse.md
130
+ docs/PdfOutlineEntry.md
131
+ docs/PdfOutputInfo.md
132
+ docs/PdfPageInfo.md
133
+ docs/PdfTransformAudit.md
121
134
  docs/PublicSignatureView.md
122
135
  docs/RenameAudit.md
123
136
  docs/RenameRequest.md
@@ -126,6 +139,7 @@ docs/Response.md
126
139
  docs/RestoreVersionAudit.md
127
140
  docs/RestoreVersionResponse.md
128
141
  docs/RoleBinding.md
142
+ docs/RotateRequest.md
129
143
  docs/SaveAiSettingsRequest.md
130
144
  docs/ScanAgentApi.md
131
145
  docs/ScanJobStatusDto.md
@@ -156,6 +170,8 @@ docs/SignatureTemplateField.md
156
170
  docs/SignatureTemplateRequest.md
157
171
  docs/SignatureTemplateRole.md
158
172
  docs/SortInput.md
173
+ docs/SplitOutput.md
174
+ docs/SplitRequest.md
159
175
  docs/StorageBreakdown.md
160
176
  docs/Suggest.md
161
177
  docs/TeamMemberInfo.md
@@ -237,11 +253,22 @@ models/license-info.ts
237
253
  models/list-ai-models-request.ts
238
254
  models/mcp-agent-token-info.ts
239
255
  models/mcp-agent-token-response.ts
256
+ models/merge-request.ts
257
+ models/merge-source.ts
240
258
  models/mint-mcp-agent-token-request.ts
241
259
  models/mint-upload-token-request.ts
242
260
  models/move-audit.ts
243
261
  models/move-request.ts
244
262
  models/notification-dto.ts
263
+ models/organize-request.ts
264
+ models/output-target.ts
265
+ models/page-instruction.ts
266
+ models/pdf-info.ts
267
+ models/pdf-operation-response.ts
268
+ models/pdf-outline-entry.ts
269
+ models/pdf-output-info.ts
270
+ models/pdf-page-info.ts
271
+ models/pdf-transform-audit.ts
245
272
  models/public-signature-view.ts
246
273
  models/rename-audit.ts
247
274
  models/rename-request.ts
@@ -250,6 +277,7 @@ models/response.ts
250
277
  models/restore-version-audit.ts
251
278
  models/restore-version-response.ts
252
279
  models/role-binding.ts
280
+ models/rotate-request.ts
253
281
  models/save-ai-settings-request.ts
254
282
  models/scan-job-status-dto.ts
255
283
  models/scan-request-dto.ts
@@ -276,6 +304,8 @@ models/signature-template-field.ts
276
304
  models/signature-template-request.ts
277
305
  models/signature-template-role.ts
278
306
  models/sort-input.ts
307
+ models/split-output.ts
308
+ models/split-request.ts
279
309
  models/storage-breakdown.ts
280
310
  models/suggest.ts
281
311
  models/team-member-info.ts
@@ -1 +1 @@
1
- 822a5a42414374c5dd3f67a85dbfa61aa94ed830f9595da1e2ca14902b924f6f
1
+ 2a31082c16be292a2cd25eb4a554302183209f31161fe78b3a6c49b6750bc413
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript-ee@1.9.2
1
+ ## @openfilz-sdk/typescript-ee@1.9.4
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-ee@1.9.2 --save
39
+ npm install @openfilz-sdk/typescript-ee@1.9.4 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -163,6 +163,11 @@ Class | Method | HTTP request | Description
163
163
  *NotificationsApi* | [**markAllAsRead**](docs/NotificationsApi.md#markallasread) | **PUT** /api/v1/notifications/read-all | Mark all notifications as read
164
164
  *NotificationsApi* | [**markAsRead**](docs/NotificationsApi.md#markasread) | **PUT** /api/v1/notifications/{id}/read | Mark notification as read
165
165
  *NotificationsApi* | [**streamNotifications**](docs/NotificationsApi.md#streamnotifications) | **GET** /api/v1/notifications/stream | Subscribe to notification stream
166
+ *PDFToolsApi* | [**info**](docs/PDFToolsApi.md#info) | **GET** /api/v1/pdf/{documentId}/info | Describe a stored PDF
167
+ *PDFToolsApi* | [**merge**](docs/PDFToolsApi.md#merge) | **POST** /api/v1/pdf/merge | Merge PDFs
168
+ *PDFToolsApi* | [**organize**](docs/PDFToolsApi.md#organize) | **POST** /api/v1/pdf/organize | Reorganise the pages of a PDF
169
+ *PDFToolsApi* | [**rotate**](docs/PDFToolsApi.md#rotate) | **POST** /api/v1/pdf/rotate | Rotate pages
170
+ *PDFToolsApi* | [**split**](docs/PDFToolsApi.md#split) | **POST** /api/v1/pdf/split | Split a PDF
166
171
  *ScanAgentApi* | [**download**](docs/ScanAgentApi.md#download) | **GET** /api/v1/agent/download/{platform} | Download agent binary
167
172
  *ScanAgentApi* | [**getVersion**](docs/ScanAgentApi.md#getversion) | **GET** /api/v1/agent/version | Get agent version
168
173
  *ScannerProxyApi* | [**getIngestionStatus**](docs/ScannerProxyApi.md#getingestionstatus) | **GET** /api/v1/scan/status | Get ingestion status
@@ -256,11 +261,22 @@ Class | Method | HTTP request | Description
256
261
  - [ListAiModelsRequest](docs/ListAiModelsRequest.md)
257
262
  - [McpAgentTokenInfo](docs/McpAgentTokenInfo.md)
258
263
  - [McpAgentTokenResponse](docs/McpAgentTokenResponse.md)
264
+ - [MergeRequest](docs/MergeRequest.md)
265
+ - [MergeSource](docs/MergeSource.md)
259
266
  - [MintMcpAgentTokenRequest](docs/MintMcpAgentTokenRequest.md)
260
267
  - [MintUploadTokenRequest](docs/MintUploadTokenRequest.md)
261
268
  - [MoveAudit](docs/MoveAudit.md)
262
269
  - [MoveRequest](docs/MoveRequest.md)
263
270
  - [NotificationDTO](docs/NotificationDTO.md)
271
+ - [OrganizeRequest](docs/OrganizeRequest.md)
272
+ - [OutputTarget](docs/OutputTarget.md)
273
+ - [PageInstruction](docs/PageInstruction.md)
274
+ - [PdfInfo](docs/PdfInfo.md)
275
+ - [PdfOperationResponse](docs/PdfOperationResponse.md)
276
+ - [PdfOutlineEntry](docs/PdfOutlineEntry.md)
277
+ - [PdfOutputInfo](docs/PdfOutputInfo.md)
278
+ - [PdfPageInfo](docs/PdfPageInfo.md)
279
+ - [PdfTransformAudit](docs/PdfTransformAudit.md)
264
280
  - [PublicSignatureView](docs/PublicSignatureView.md)
265
281
  - [RenameAudit](docs/RenameAudit.md)
266
282
  - [RenameRequest](docs/RenameRequest.md)
@@ -269,6 +285,7 @@ Class | Method | HTTP request | Description
269
285
  - [RestoreVersionAudit](docs/RestoreVersionAudit.md)
270
286
  - [RestoreVersionResponse](docs/RestoreVersionResponse.md)
271
287
  - [RoleBinding](docs/RoleBinding.md)
288
+ - [RotateRequest](docs/RotateRequest.md)
272
289
  - [SaveAiSettingsRequest](docs/SaveAiSettingsRequest.md)
273
290
  - [ScanJobStatusDto](docs/ScanJobStatusDto.md)
274
291
  - [ScanRequestDto](docs/ScanRequestDto.md)
@@ -295,6 +312,8 @@ Class | Method | HTTP request | Description
295
312
  - [SignatureTemplateRequest](docs/SignatureTemplateRequest.md)
296
313
  - [SignatureTemplateRole](docs/SignatureTemplateRole.md)
297
314
  - [SortInput](docs/SortInput.md)
315
+ - [SplitOutput](docs/SplitOutput.md)
316
+ - [SplitRequest](docs/SplitRequest.md)
298
317
  - [StorageBreakdown](docs/StorageBreakdown.md)
299
318
  - [Suggest](docs/Suggest.md)
300
319
  - [TeamMemberInfo](docs/TeamMemberInfo.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
@@ -36,6 +36,7 @@ export * from './api/folder-controller-api';
36
36
  export * from './api/mcp-discovery-controller-api';
37
37
  export * from './api/mcp-token-admin-controller-api';
38
38
  export * from './api/notifications-api';
39
+ export * from './api/pdftools-api';
39
40
  export * from './api/scan-agent-api';
40
41
  export * from './api/scanner-proxy-api';
41
42
  export * from './api/search-administration-api';