@openfilz-sdk/typescript-ee 1.9.5 → 1.9.7

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 (146) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +30 -3
  4. package/api/aichat-api.ts +228 -0
  5. package/api/document-controller-api.ts +30 -14
  6. package/api/document-insights-api.ts +275 -0
  7. package/api/esign-api.ts +9 -9
  8. package/api/settings-api.ts +142 -0
  9. package/api/smart-filing-api.ts +421 -0
  10. package/api.ts +2 -0
  11. package/dist/api/aichat-api.d.ts +103 -0
  12. package/dist/api/aichat-api.js +213 -0
  13. package/dist/api/document-controller-api.d.ts +16 -8
  14. package/dist/api/document-controller-api.js +28 -14
  15. package/dist/api/document-insights-api.d.ts +133 -0
  16. package/dist/api/document-insights-api.js +269 -0
  17. package/dist/api/esign-api.d.ts +4 -4
  18. package/dist/api/esign-api.js +9 -9
  19. package/dist/api/settings-api.d.ts +62 -0
  20. package/dist/api/settings-api.js +132 -0
  21. package/dist/api/smart-filing-api.d.ts +197 -0
  22. package/dist/api/smart-filing-api.js +409 -0
  23. package/dist/api.d.ts +2 -0
  24. package/dist/api.js +2 -0
  25. package/dist/esm/api/aichat-api.d.ts +103 -0
  26. package/dist/esm/api/aichat-api.js +213 -0
  27. package/dist/esm/api/document-controller-api.d.ts +16 -8
  28. package/dist/esm/api/document-controller-api.js +28 -14
  29. package/dist/esm/api/document-insights-api.d.ts +133 -0
  30. package/dist/esm/api/document-insights-api.js +262 -0
  31. package/dist/esm/api/esign-api.d.ts +4 -4
  32. package/dist/esm/api/esign-api.js +9 -9
  33. package/dist/esm/api/settings-api.d.ts +62 -0
  34. package/dist/esm/api/settings-api.js +132 -0
  35. package/dist/esm/api/smart-filing-api.d.ts +197 -0
  36. package/dist/esm/api/smart-filing-api.js +402 -0
  37. package/dist/esm/api.d.ts +2 -0
  38. package/dist/esm/api.js +2 -0
  39. package/dist/esm/models/ai-preferences-view.d.ts +16 -0
  40. package/dist/esm/models/ai-preferences-view.js +14 -0
  41. package/dist/esm/models/auto-file-job-view.d.ts +25 -0
  42. package/dist/esm/models/auto-file-job-view.js +14 -0
  43. package/dist/esm/models/auto-file-request.d.ts +15 -0
  44. package/dist/esm/models/auto-file-request.js +14 -0
  45. package/dist/esm/models/auto-file-ticket.d.ts +15 -0
  46. package/dist/esm/models/auto-file-ticket.js +14 -0
  47. package/dist/esm/models/document-insight-view.d.ts +33 -0
  48. package/dist/esm/models/document-insight-view.js +14 -0
  49. package/dist/esm/models/filing-outcome.d.ts +25 -0
  50. package/dist/esm/models/filing-outcome.js +14 -0
  51. package/dist/esm/models/index.d.ts +14 -0
  52. package/dist/esm/models/index.js +14 -0
  53. package/dist/esm/models/insight-backfill-request.d.ts +15 -0
  54. package/dist/esm/models/insight-backfill-request.js +14 -0
  55. package/dist/esm/models/insight-backfill-status.d.ts +23 -0
  56. package/dist/esm/models/insight-backfill-status.js +14 -0
  57. package/dist/esm/models/item-result.d.ts +16 -0
  58. package/dist/esm/models/item-result.js +14 -0
  59. package/dist/esm/models/item.d.ts +21 -0
  60. package/dist/esm/models/item.js +14 -0
  61. package/dist/esm/models/reorganization-apply-request.d.ts +14 -0
  62. package/dist/esm/models/reorganization-apply-request.js +14 -0
  63. package/dist/esm/models/reorganization-apply-result.d.ts +22 -0
  64. package/dist/esm/models/reorganization-apply-result.js +14 -0
  65. package/dist/esm/models/reorganization-plan-view.d.ts +28 -0
  66. package/dist/esm/models/reorganization-plan-view.js +14 -0
  67. package/dist/esm/models/save-ai-preferences-request.d.ts +15 -0
  68. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  69. package/dist/esm/models/settings.d.ts +2 -0
  70. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  71. package/dist/esm/models/upload-response.d.ts +2 -0
  72. package/dist/models/ai-preferences-view.d.ts +16 -0
  73. package/dist/models/ai-preferences-view.js +15 -0
  74. package/dist/models/auto-file-job-view.d.ts +25 -0
  75. package/dist/models/auto-file-job-view.js +15 -0
  76. package/dist/models/auto-file-request.d.ts +15 -0
  77. package/dist/models/auto-file-request.js +15 -0
  78. package/dist/models/auto-file-ticket.d.ts +15 -0
  79. package/dist/models/auto-file-ticket.js +15 -0
  80. package/dist/models/document-insight-view.d.ts +33 -0
  81. package/dist/models/document-insight-view.js +15 -0
  82. package/dist/models/filing-outcome.d.ts +25 -0
  83. package/dist/models/filing-outcome.js +15 -0
  84. package/dist/models/index.d.ts +14 -0
  85. package/dist/models/index.js +14 -0
  86. package/dist/models/insight-backfill-request.d.ts +15 -0
  87. package/dist/models/insight-backfill-request.js +15 -0
  88. package/dist/models/insight-backfill-status.d.ts +23 -0
  89. package/dist/models/insight-backfill-status.js +15 -0
  90. package/dist/models/item-result.d.ts +16 -0
  91. package/dist/models/item-result.js +15 -0
  92. package/dist/models/item.d.ts +21 -0
  93. package/dist/models/item.js +15 -0
  94. package/dist/models/reorganization-apply-request.d.ts +14 -0
  95. package/dist/models/reorganization-apply-request.js +15 -0
  96. package/dist/models/reorganization-apply-result.d.ts +22 -0
  97. package/dist/models/reorganization-apply-result.js +15 -0
  98. package/dist/models/reorganization-plan-view.d.ts +28 -0
  99. package/dist/models/reorganization-plan-view.js +15 -0
  100. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  101. package/dist/models/save-ai-preferences-request.js +15 -0
  102. package/dist/models/settings.d.ts +2 -0
  103. package/dist/models/tus-finalize-request.d.ts +1 -0
  104. package/dist/models/upload-response.d.ts +2 -0
  105. package/docs/AIChatApi.md +159 -0
  106. package/docs/AiPreferencesView.md +24 -0
  107. package/docs/AutoFileJobView.md +40 -0
  108. package/docs/AutoFileRequest.md +22 -0
  109. package/docs/AutoFileTicket.md +22 -0
  110. package/docs/DocumentControllerApi.md +6 -0
  111. package/docs/DocumentInsightView.md +54 -0
  112. package/docs/DocumentInsightsApi.md +163 -0
  113. package/docs/ESignApi.md +4 -4
  114. package/docs/FilingOutcome.md +42 -0
  115. package/docs/InsightBackfillRequest.md +22 -0
  116. package/docs/InsightBackfillStatus.md +38 -0
  117. package/docs/Item.md +34 -0
  118. package/docs/ItemResult.md +24 -0
  119. package/docs/ReorganizationApplyRequest.md +20 -0
  120. package/docs/ReorganizationApplyResult.md +34 -0
  121. package/docs/ReorganizationPlanView.md +44 -0
  122. package/docs/SaveAiPreferencesRequest.md +22 -0
  123. package/docs/Settings.md +4 -0
  124. package/docs/SettingsApi.md +97 -0
  125. package/docs/SmartFilingApi.md +264 -0
  126. package/docs/TusFinalizeRequest.md +2 -0
  127. package/docs/UploadResponse.md +2 -0
  128. package/models/ai-preferences-view.ts +22 -0
  129. package/models/auto-file-job-view.ts +33 -0
  130. package/models/auto-file-request.ts +21 -0
  131. package/models/auto-file-ticket.ts +21 -0
  132. package/models/document-insight-view.ts +37 -0
  133. package/models/filing-outcome.ts +31 -0
  134. package/models/index.ts +14 -0
  135. package/models/insight-backfill-request.ts +21 -0
  136. package/models/insight-backfill-status.ts +29 -0
  137. package/models/item-result.ts +22 -0
  138. package/models/item.ts +27 -0
  139. package/models/reorganization-apply-request.ts +20 -0
  140. package/models/reorganization-apply-result.ts +30 -0
  141. package/models/reorganization-plan-view.ts +38 -0
  142. package/models/save-ai-preferences-request.ts +21 -0
  143. package/models/settings.ts +2 -0
  144. package/models/tus-finalize-request.ts +1 -0
  145. package/models/upload-response.ts +4 -0
  146. package/package.json +1 -1
@@ -0,0 +1,409 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.SmartFilingApi = exports.SmartFilingApiFactory = exports.SmartFilingApiFp = exports.SmartFilingApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * SmartFilingApi - axios parameter creator
34
+ */
35
+ const SmartFilingApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
39
+ * @summary File existing documents on demand
40
+ * @param {AutoFileRequest} autoFileRequest
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ file: (autoFileRequest_1, ...args_1) => __awaiter(this, [autoFileRequest_1, ...args_1], void 0, function* (autoFileRequest, options = {}) {
45
+ // verify required parameter 'autoFileRequest' is not null or undefined
46
+ (0, common_1.assertParamExists)('file', 'autoFileRequest', autoFileRequest);
47
+ const localVarPath = `/api/v1/ai/auto-file`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication keycloak_auth required
58
+ // http bearer authentication required
59
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
60
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61
+ localVarHeaderParameter['Accept'] = 'application/json';
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(autoFileRequest, localVarRequestOptions, configuration);
66
+ return {
67
+ url: (0, common_1.toPathString)(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
71
+ /**
72
+ *
73
+ * @summary Progress and outcome of a filing job
74
+ * @param {string} jobId
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ job: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
79
+ // verify required parameter 'jobId' is not null or undefined
80
+ (0, common_1.assertParamExists)('job', 'jobId', jobId);
81
+ const localVarPath = `/api/v1/ai/auto-file/{jobId}`
82
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication keycloak_auth required
93
+ // http bearer authentication required
94
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
+ localVarHeaderParameter['Accept'] = 'application/json';
96
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ return {
100
+ url: (0, common_1.toPathString)(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ *
106
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
107
+ * @param {string} documentId
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ lastFiling: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
112
+ // verify required parameter 'documentId' is not null or undefined
113
+ (0, common_1.assertParamExists)('lastFiling', 'documentId', documentId);
114
+ const localVarPath = `/api/v1/ai/auto-file/document/{documentId}`
115
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication keycloak_auth required
126
+ // http bearer authentication required
127
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Accept'] = 'application/json';
129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ return {
133
+ url: (0, common_1.toPathString)(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ }),
137
+ /**
138
+ *
139
+ * @summary Move every document the job filed back where it came from
140
+ * @param {string} jobId
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ undo: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
145
+ // verify required parameter 'jobId' is not null or undefined
146
+ (0, common_1.assertParamExists)('undo', 'jobId', jobId);
147
+ const localVarPath = `/api/v1/ai/auto-file/{jobId}/undo`
148
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ }
155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
156
+ const localVarHeaderParameter = {};
157
+ const localVarQueryParameter = {};
158
+ // authentication keycloak_auth required
159
+ // http bearer authentication required
160
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
161
+ localVarHeaderParameter['Accept'] = 'application/json';
162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
165
+ return {
166
+ url: (0, common_1.toPathString)(localVarUrlObj),
167
+ options: localVarRequestOptions,
168
+ };
169
+ }),
170
+ /**
171
+ *
172
+ * @summary Move one filed document back (the chip\'s \"Move back\")
173
+ * @param {string} planId
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ undoFiling: (planId_1, ...args_1) => __awaiter(this, [planId_1, ...args_1], void 0, function* (planId, options = {}) {
178
+ // verify required parameter 'planId' is not null or undefined
179
+ (0, common_1.assertParamExists)('undoFiling', 'planId', planId);
180
+ const localVarPath = `/api/v1/ai/auto-file/filing/{planId}/undo`
181
+ .replace('{planId}', encodeURIComponent(String(planId)));
182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
183
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
184
+ let baseOptions;
185
+ if (configuration) {
186
+ baseOptions = configuration.baseOptions;
187
+ }
188
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
189
+ const localVarHeaderParameter = {};
190
+ const localVarQueryParameter = {};
191
+ // authentication keycloak_auth required
192
+ // http bearer authentication required
193
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
194
+ localVarHeaderParameter['Accept'] = 'application/json';
195
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
198
+ return {
199
+ url: (0, common_1.toPathString)(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ };
202
+ }),
203
+ };
204
+ };
205
+ exports.SmartFilingApiAxiosParamCreator = SmartFilingApiAxiosParamCreator;
206
+ /**
207
+ * SmartFilingApi - functional programming interface
208
+ */
209
+ const SmartFilingApiFp = function (configuration) {
210
+ const localVarAxiosParamCreator = (0, exports.SmartFilingApiAxiosParamCreator)(configuration);
211
+ return {
212
+ /**
213
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
214
+ * @summary File existing documents on demand
215
+ * @param {AutoFileRequest} autoFileRequest
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ file(autoFileRequest, options) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ var _a, _b, _c;
222
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.file(autoFileRequest, options);
223
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
224
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SmartFilingApi.file']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
225
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
226
+ });
227
+ },
228
+ /**
229
+ *
230
+ * @summary Progress and outcome of a filing job
231
+ * @param {string} jobId
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ job(jobId, options) {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ var _a, _b, _c;
238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.job(jobId, options);
239
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
240
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SmartFilingApi.job']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
242
+ });
243
+ },
244
+ /**
245
+ *
246
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
247
+ * @param {string} documentId
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ lastFiling(documentId, options) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ var _a, _b, _c;
254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lastFiling(documentId, options);
255
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SmartFilingApi.lastFiling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
257
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
+ });
259
+ },
260
+ /**
261
+ *
262
+ * @summary Move every document the job filed back where it came from
263
+ * @param {string} jobId
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ undo(jobId, options) {
268
+ return __awaiter(this, void 0, void 0, function* () {
269
+ var _a, _b, _c;
270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undo(jobId, options);
271
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
272
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SmartFilingApi.undo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
273
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
274
+ });
275
+ },
276
+ /**
277
+ *
278
+ * @summary Move one filed document back (the chip\'s \"Move back\")
279
+ * @param {string} planId
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ undoFiling(planId, options) {
284
+ return __awaiter(this, void 0, void 0, function* () {
285
+ var _a, _b, _c;
286
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undoFiling(planId, options);
287
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
288
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SmartFilingApi.undoFiling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
289
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
290
+ });
291
+ },
292
+ };
293
+ };
294
+ exports.SmartFilingApiFp = SmartFilingApiFp;
295
+ /**
296
+ * SmartFilingApi - factory interface
297
+ */
298
+ const SmartFilingApiFactory = function (configuration, basePath, axios) {
299
+ const localVarFp = (0, exports.SmartFilingApiFp)(configuration);
300
+ return {
301
+ /**
302
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
303
+ * @summary File existing documents on demand
304
+ * @param {AutoFileRequest} autoFileRequest
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ file(autoFileRequest, options) {
309
+ return localVarFp.file(autoFileRequest, options).then((request) => request(axios, basePath));
310
+ },
311
+ /**
312
+ *
313
+ * @summary Progress and outcome of a filing job
314
+ * @param {string} jobId
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ job(jobId, options) {
319
+ return localVarFp.job(jobId, options).then((request) => request(axios, basePath));
320
+ },
321
+ /**
322
+ *
323
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
324
+ * @param {string} documentId
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ lastFiling(documentId, options) {
329
+ return localVarFp.lastFiling(documentId, options).then((request) => request(axios, basePath));
330
+ },
331
+ /**
332
+ *
333
+ * @summary Move every document the job filed back where it came from
334
+ * @param {string} jobId
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ undo(jobId, options) {
339
+ return localVarFp.undo(jobId, options).then((request) => request(axios, basePath));
340
+ },
341
+ /**
342
+ *
343
+ * @summary Move one filed document back (the chip\'s \"Move back\")
344
+ * @param {string} planId
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ undoFiling(planId, options) {
349
+ return localVarFp.undoFiling(planId, options).then((request) => request(axios, basePath));
350
+ },
351
+ };
352
+ };
353
+ exports.SmartFilingApiFactory = SmartFilingApiFactory;
354
+ /**
355
+ * SmartFilingApi - object-oriented interface
356
+ */
357
+ class SmartFilingApi extends base_1.BaseAPI {
358
+ /**
359
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
360
+ * @summary File existing documents on demand
361
+ * @param {AutoFileRequest} autoFileRequest
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ file(autoFileRequest, options) {
366
+ return (0, exports.SmartFilingApiFp)(this.configuration).file(autoFileRequest, options).then((request) => request(this.axios, this.basePath));
367
+ }
368
+ /**
369
+ *
370
+ * @summary Progress and outcome of a filing job
371
+ * @param {string} jobId
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ job(jobId, options) {
376
+ return (0, exports.SmartFilingApiFp)(this.configuration).job(jobId, options).then((request) => request(this.axios, this.basePath));
377
+ }
378
+ /**
379
+ *
380
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
381
+ * @param {string} documentId
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ lastFiling(documentId, options) {
386
+ return (0, exports.SmartFilingApiFp)(this.configuration).lastFiling(documentId, options).then((request) => request(this.axios, this.basePath));
387
+ }
388
+ /**
389
+ *
390
+ * @summary Move every document the job filed back where it came from
391
+ * @param {string} jobId
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ undo(jobId, options) {
396
+ return (0, exports.SmartFilingApiFp)(this.configuration).undo(jobId, options).then((request) => request(this.axios, this.basePath));
397
+ }
398
+ /**
399
+ *
400
+ * @summary Move one filed document back (the chip\'s \"Move back\")
401
+ * @param {string} planId
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ undoFiling(planId, options) {
406
+ return (0, exports.SmartFilingApiFp)(this.configuration).undoFiling(planId, options).then((request) => request(this.axios, this.basePath));
407
+ }
408
+ }
409
+ exports.SmartFilingApi = SmartFilingApi;
package/dist/api.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './api/dashboard-api';
18
18
  export * from './api/delegated-browse-grants-admin-api';
19
19
  export * from './api/delegated-browse-grants-end-user-api';
20
20
  export * from './api/document-controller-api';
21
+ export * from './api/document-insights-api';
21
22
  export * from './api/document-suggestion-controller-api';
22
23
  export * from './api/document-version-controller-api';
23
24
  export * from './api/esign-api';
@@ -36,6 +37,7 @@ export * from './api/scan-agent-api';
36
37
  export * from './api/scanner-proxy-api';
37
38
  export * from './api/search-administration-api';
38
39
  export * from './api/settings-api';
40
+ export * from './api/smart-filing-api';
39
41
  export * from './api/tus-controller-api';
40
42
  export * from './api/upload-token-controller-api';
41
43
  export * from './api/user-privacy-api';
package/dist/api.js CHANGED
@@ -36,6 +36,7 @@ __exportStar(require("./api/dashboard-api"), exports);
36
36
  __exportStar(require("./api/delegated-browse-grants-admin-api"), exports);
37
37
  __exportStar(require("./api/delegated-browse-grants-end-user-api"), exports);
38
38
  __exportStar(require("./api/document-controller-api"), exports);
39
+ __exportStar(require("./api/document-insights-api"), exports);
39
40
  __exportStar(require("./api/document-suggestion-controller-api"), exports);
40
41
  __exportStar(require("./api/document-version-controller-api"), exports);
41
42
  __exportStar(require("./api/esign-api"), exports);
@@ -54,6 +55,7 @@ __exportStar(require("./api/scan-agent-api"), exports);
54
55
  __exportStar(require("./api/scanner-proxy-api"), exports);
55
56
  __exportStar(require("./api/search-administration-api"), exports);
56
57
  __exportStar(require("./api/settings-api"), exports);
58
+ __exportStar(require("./api/smart-filing-api"), exports);
57
59
  __exportStar(require("./api/tus-controller-api"), exports);
58
60
  __exportStar(require("./api/upload-token-controller-api"), exports);
59
61
  __exportStar(require("./api/user-privacy-api"), exports);
@@ -15,10 +15,22 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { AiChatConversation } from '../models';
16
16
  import type { AiChatRequest } from '../models';
17
17
  import type { AiChatResponse } from '../models';
18
+ import type { ReorganizationApplyRequest } from '../models';
19
+ import type { ReorganizationApplyResult } from '../models';
20
+ import type { ReorganizationPlanView } from '../models';
18
21
  /**
19
22
  * AIChatApi - axios parameter creator
20
23
  */
21
24
  export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ * Creates the missing folders and moves the selected items (all applicable items when none is given).
27
+ * @summary Apply a proposed reorganisation plan
28
+ * @param {string} planId
29
+ * @param {ReorganizationApplyRequest} [reorganizationApplyRequest]
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ apply: (planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22
34
  /**
23
35
  * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
24
36
  * @summary Chat with AI assistant
@@ -35,6 +47,22 @@ export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration)
35
47
  * @throws {RequiredError}
36
48
  */
37
49
  deleteConversation: (conversationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ *
52
+ * @summary Discard a proposed reorganisation plan
53
+ * @param {string} planId
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ discard: (planId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ * The plan\'s items (what moves where), which are applicable, and its status.
60
+ * @summary Get a reorganisation plan proposed by the AI assistant
61
+ * @param {string} planId
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ get4: (planId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
66
  /**
39
67
  * Get all messages in a conversation
40
68
  * @summary Get conversation history
@@ -55,6 +83,15 @@ export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration)
55
83
  * AIChatApi - functional programming interface
56
84
  */
57
85
  export declare const AIChatApiFp: (configuration?: Configuration) => {
86
+ /**
87
+ * Creates the missing folders and moves the selected items (all applicable items when none is given).
88
+ * @summary Apply a proposed reorganisation plan
89
+ * @param {string} planId
90
+ * @param {ReorganizationApplyRequest} [reorganizationApplyRequest]
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorganizationApplyResult>>;
58
95
  /**
59
96
  * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
60
97
  * @summary Chat with AI assistant
@@ -71,6 +108,22 @@ export declare const AIChatApiFp: (configuration?: Configuration) => {
71
108
  * @throws {RequiredError}
72
109
  */
73
110
  deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
111
+ /**
112
+ *
113
+ * @summary Discard a proposed reorganisation plan
114
+ * @param {string} planId
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ discard(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorganizationPlanView>>;
119
+ /**
120
+ * The plan\'s items (what moves where), which are applicable, and its status.
121
+ * @summary Get a reorganisation plan proposed by the AI assistant
122
+ * @param {string} planId
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ get4(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorganizationPlanView>>;
74
127
  /**
75
128
  * Get all messages in a conversation
76
129
  * @summary Get conversation history
@@ -91,6 +144,15 @@ export declare const AIChatApiFp: (configuration?: Configuration) => {
91
144
  * AIChatApi - factory interface
92
145
  */
93
146
  export declare const AIChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
147
+ /**
148
+ * Creates the missing folders and moves the selected items (all applicable items when none is given).
149
+ * @summary Apply a proposed reorganisation plan
150
+ * @param {string} planId
151
+ * @param {ReorganizationApplyRequest} [reorganizationApplyRequest]
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorganizationApplyResult>;
94
156
  /**
95
157
  * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
96
158
  * @summary Chat with AI assistant
@@ -107,6 +169,22 @@ export declare const AIChatApiFactory: (configuration?: Configuration, basePath?
107
169
  * @throws {RequiredError}
108
170
  */
109
171
  deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
172
+ /**
173
+ *
174
+ * @summary Discard a proposed reorganisation plan
175
+ * @param {string} planId
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ discard(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<ReorganizationPlanView>;
180
+ /**
181
+ * The plan\'s items (what moves where), which are applicable, and its status.
182
+ * @summary Get a reorganisation plan proposed by the AI assistant
183
+ * @param {string} planId
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ get4(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<ReorganizationPlanView>;
110
188
  /**
111
189
  * Get all messages in a conversation
112
190
  * @summary Get conversation history
@@ -127,6 +205,15 @@ export declare const AIChatApiFactory: (configuration?: Configuration, basePath?
127
205
  * AIChatApi - object-oriented interface
128
206
  */
129
207
  export declare class AIChatApi extends BaseAPI {
208
+ /**
209
+ * Creates the missing folders and moves the selected items (all applicable items when none is given).
210
+ * @summary Apply a proposed reorganisation plan
211
+ * @param {string} planId
212
+ * @param {ReorganizationApplyRequest} [reorganizationApplyRequest]
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorganizationApplyResult, any, {}, any>>;
130
217
  /**
131
218
  * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
132
219
  * @summary Chat with AI assistant
@@ -143,6 +230,22 @@ export declare class AIChatApi extends BaseAPI {
143
230
  * @throws {RequiredError}
144
231
  */
145
232
  deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
233
+ /**
234
+ *
235
+ * @summary Discard a proposed reorganisation plan
236
+ * @param {string} planId
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ discard(planId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorganizationPlanView, any, {}, any>>;
241
+ /**
242
+ * The plan\'s items (what moves where), which are applicable, and its status.
243
+ * @summary Get a reorganisation plan proposed by the AI assistant
244
+ * @param {string} planId
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ get4(planId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorganizationPlanView, any, {}, any>>;
146
249
  /**
147
250
  * Get all messages in a conversation
148
251
  * @summary Get conversation history