@openfilz-sdk/typescript-ee 1.9.6 → 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 (116) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +23 -4
  4. package/api/aichat-api.ts +9 -9
  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 +4 -4
  12. package/dist/api/aichat-api.js +9 -9
  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 +4 -4
  26. package/dist/esm/api/aichat-api.js +9 -9
  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 +9 -0
  52. package/dist/esm/models/index.js +9 -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/save-ai-preferences-request.d.ts +15 -0
  58. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  59. package/dist/esm/models/settings.d.ts +2 -0
  60. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  61. package/dist/esm/models/upload-response.d.ts +2 -0
  62. package/dist/models/ai-preferences-view.d.ts +16 -0
  63. package/dist/models/ai-preferences-view.js +15 -0
  64. package/dist/models/auto-file-job-view.d.ts +25 -0
  65. package/dist/models/auto-file-job-view.js +15 -0
  66. package/dist/models/auto-file-request.d.ts +15 -0
  67. package/dist/models/auto-file-request.js +15 -0
  68. package/dist/models/auto-file-ticket.d.ts +15 -0
  69. package/dist/models/auto-file-ticket.js +15 -0
  70. package/dist/models/document-insight-view.d.ts +33 -0
  71. package/dist/models/document-insight-view.js +15 -0
  72. package/dist/models/filing-outcome.d.ts +25 -0
  73. package/dist/models/filing-outcome.js +15 -0
  74. package/dist/models/index.d.ts +9 -0
  75. package/dist/models/index.js +9 -0
  76. package/dist/models/insight-backfill-request.d.ts +15 -0
  77. package/dist/models/insight-backfill-request.js +15 -0
  78. package/dist/models/insight-backfill-status.d.ts +23 -0
  79. package/dist/models/insight-backfill-status.js +15 -0
  80. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  81. package/dist/models/save-ai-preferences-request.js +15 -0
  82. package/dist/models/settings.d.ts +2 -0
  83. package/dist/models/tus-finalize-request.d.ts +1 -0
  84. package/dist/models/upload-response.d.ts +2 -0
  85. package/docs/AIChatApi.md +4 -4
  86. package/docs/AiPreferencesView.md +24 -0
  87. package/docs/AutoFileJobView.md +40 -0
  88. package/docs/AutoFileRequest.md +22 -0
  89. package/docs/AutoFileTicket.md +22 -0
  90. package/docs/DocumentControllerApi.md +6 -0
  91. package/docs/DocumentInsightView.md +54 -0
  92. package/docs/DocumentInsightsApi.md +163 -0
  93. package/docs/ESignApi.md +4 -4
  94. package/docs/FilingOutcome.md +42 -0
  95. package/docs/InsightBackfillRequest.md +22 -0
  96. package/docs/InsightBackfillStatus.md +38 -0
  97. package/docs/SaveAiPreferencesRequest.md +22 -0
  98. package/docs/Settings.md +4 -0
  99. package/docs/SettingsApi.md +97 -0
  100. package/docs/SmartFilingApi.md +264 -0
  101. package/docs/TusFinalizeRequest.md +2 -0
  102. package/docs/UploadResponse.md +2 -0
  103. package/models/ai-preferences-view.ts +22 -0
  104. package/models/auto-file-job-view.ts +33 -0
  105. package/models/auto-file-request.ts +21 -0
  106. package/models/auto-file-ticket.ts +21 -0
  107. package/models/document-insight-view.ts +37 -0
  108. package/models/filing-outcome.ts +31 -0
  109. package/models/index.ts +9 -0
  110. package/models/insight-backfill-request.ts +21 -0
  111. package/models/insight-backfill-status.ts +29 -0
  112. package/models/save-ai-preferences-request.ts +21 -0
  113. package/models/settings.ts +2 -0
  114. package/models/tus-finalize-request.ts +1 -0
  115. package/models/upload-response.ts +4 -0
  116. package/package.json +1 -1
@@ -0,0 +1,269 @@
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.DocumentInsightsApi = exports.DocumentInsightsApiFactory = exports.DocumentInsightsApiFp = exports.DocumentInsightsApiAxiosParamCreator = 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
+ * DocumentInsightsApi - axios parameter creator
34
+ */
35
+ const DocumentInsightsApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Queues every FILE without a tier-2 insight (or with an older prompt version when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}.
39
+ * @summary Enrich existing documents
40
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ backfill: (insightBackfillRequest_1, ...args_1) => __awaiter(this, [insightBackfillRequest_1, ...args_1], void 0, function* (insightBackfillRequest, options = {}) {
45
+ const localVarPath = `/api/v1/ai/insights/backfill`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ localVarHeaderParameter['Accept'] = 'application/json';
60
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
61
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
63
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(insightBackfillRequest, localVarRequestOptions, configuration);
64
+ return {
65
+ url: (0, common_1.toPathString)(localVarUrlObj),
66
+ options: localVarRequestOptions,
67
+ };
68
+ }),
69
+ /**
70
+ *
71
+ * @summary Progress of a backfill job
72
+ * @param {string} jobId
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ backfillStatus: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
77
+ // verify required parameter 'jobId' is not null or undefined
78
+ (0, common_1.assertParamExists)('backfillStatus', 'jobId', jobId);
79
+ const localVarPath = `/api/v1/ai/insights/backfill/{jobId}`
80
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ // authentication keycloak_auth required
91
+ // http bearer authentication required
92
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter['Accept'] = 'application/json';
94
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
97
+ return {
98
+ url: (0, common_1.toPathString)(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ }),
102
+ /**
103
+ * Tier 1: the file\'s own metadata (title, author, dates, page count, language) captured at upload. Tier 2: the AI-derived category, summary, keywords and entities when openfilz.ai.insights.active is on. 404 when the document is not visible or has no insights yet.
104
+ * @summary Get the insights of a document
105
+ * @param {string} documentId
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ getInsights: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
110
+ // verify required parameter 'documentId' is not null or undefined
111
+ (0, common_1.assertParamExists)('getInsights', 'documentId', documentId);
112
+ const localVarPath = `/api/v1/documents/{documentId}/insights`
113
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ // authentication keycloak_auth required
124
+ // http bearer authentication required
125
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
126
+ localVarHeaderParameter['Accept'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ return {
131
+ url: (0, common_1.toPathString)(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ }),
135
+ };
136
+ };
137
+ exports.DocumentInsightsApiAxiosParamCreator = DocumentInsightsApiAxiosParamCreator;
138
+ /**
139
+ * DocumentInsightsApi - functional programming interface
140
+ */
141
+ const DocumentInsightsApiFp = function (configuration) {
142
+ const localVarAxiosParamCreator = (0, exports.DocumentInsightsApiAxiosParamCreator)(configuration);
143
+ return {
144
+ /**
145
+ * Queues every FILE without a tier-2 insight (or with an older prompt version when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}.
146
+ * @summary Enrich existing documents
147
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ backfill(insightBackfillRequest, options) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ var _a, _b, _c;
154
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backfill(insightBackfillRequest, options);
155
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
156
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentInsightsApi.backfill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
157
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
158
+ });
159
+ },
160
+ /**
161
+ *
162
+ * @summary Progress of a backfill job
163
+ * @param {string} jobId
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ backfillStatus(jobId, options) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ var _a, _b, _c;
170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backfillStatus(jobId, options);
171
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
172
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentInsightsApi.backfillStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
173
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
174
+ });
175
+ },
176
+ /**
177
+ * Tier 1: the file\'s own metadata (title, author, dates, page count, language) captured at upload. Tier 2: the AI-derived category, summary, keywords and entities when openfilz.ai.insights.active is on. 404 when the document is not visible or has no insights yet.
178
+ * @summary Get the insights of a document
179
+ * @param {string} documentId
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ getInsights(documentId, options) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ var _a, _b, _c;
186
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInsights(documentId, options);
187
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
188
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentInsightsApi.getInsights']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
189
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
+ });
191
+ },
192
+ };
193
+ };
194
+ exports.DocumentInsightsApiFp = DocumentInsightsApiFp;
195
+ /**
196
+ * DocumentInsightsApi - factory interface
197
+ */
198
+ const DocumentInsightsApiFactory = function (configuration, basePath, axios) {
199
+ const localVarFp = (0, exports.DocumentInsightsApiFp)(configuration);
200
+ return {
201
+ /**
202
+ * Queues every FILE without a tier-2 insight (or with an older prompt version when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}.
203
+ * @summary Enrich existing documents
204
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ backfill(insightBackfillRequest, options) {
209
+ return localVarFp.backfill(insightBackfillRequest, options).then((request) => request(axios, basePath));
210
+ },
211
+ /**
212
+ *
213
+ * @summary Progress of a backfill job
214
+ * @param {string} jobId
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ backfillStatus(jobId, options) {
219
+ return localVarFp.backfillStatus(jobId, options).then((request) => request(axios, basePath));
220
+ },
221
+ /**
222
+ * Tier 1: the file\'s own metadata (title, author, dates, page count, language) captured at upload. Tier 2: the AI-derived category, summary, keywords and entities when openfilz.ai.insights.active is on. 404 when the document is not visible or has no insights yet.
223
+ * @summary Get the insights of a document
224
+ * @param {string} documentId
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ getInsights(documentId, options) {
229
+ return localVarFp.getInsights(documentId, options).then((request) => request(axios, basePath));
230
+ },
231
+ };
232
+ };
233
+ exports.DocumentInsightsApiFactory = DocumentInsightsApiFactory;
234
+ /**
235
+ * DocumentInsightsApi - object-oriented interface
236
+ */
237
+ class DocumentInsightsApi extends base_1.BaseAPI {
238
+ /**
239
+ * Queues every FILE without a tier-2 insight (or with an older prompt version when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}.
240
+ * @summary Enrich existing documents
241
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ backfill(insightBackfillRequest, options) {
246
+ return (0, exports.DocumentInsightsApiFp)(this.configuration).backfill(insightBackfillRequest, options).then((request) => request(this.axios, this.basePath));
247
+ }
248
+ /**
249
+ *
250
+ * @summary Progress of a backfill job
251
+ * @param {string} jobId
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ backfillStatus(jobId, options) {
256
+ return (0, exports.DocumentInsightsApiFp)(this.configuration).backfillStatus(jobId, options).then((request) => request(this.axios, this.basePath));
257
+ }
258
+ /**
259
+ * Tier 1: the file\'s own metadata (title, author, dates, page count, language) captured at upload. Tier 2: the AI-derived category, summary, keywords and entities when openfilz.ai.insights.active is on. 404 when the document is not visible or has no insights yet.
260
+ * @summary Get the insights of a document
261
+ * @param {string} documentId
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ getInsights(documentId, options) {
266
+ return (0, exports.DocumentInsightsApiFp)(this.configuration).getInsights(documentId, options).then((request) => request(this.axios, this.basePath));
267
+ }
268
+ }
269
+ exports.DocumentInsightsApi = DocumentInsightsApi;
@@ -58,7 +58,7 @@ export declare const ESignApiAxiosParamCreator: (configuration?: Configuration)
58
58
  * @param {*} [options] Override http request option.
59
59
  * @throws {RequiredError}
60
60
  */
61
- get2: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
+ get3: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
62
  /**
63
63
  *
64
64
  * @summary List envelopes I sent for signature
@@ -142,7 +142,7 @@ export declare const ESignApiFp: (configuration?: Configuration) => {
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- get2(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>>;
145
+ get3(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>>;
146
146
  /**
147
147
  *
148
148
  * @summary List envelopes I sent for signature
@@ -226,7 +226,7 @@ export declare const ESignApiFactory: (configuration?: Configuration, basePath?:
226
226
  * @param {*} [options] Override http request option.
227
227
  * @throws {RequiredError}
228
228
  */
229
- get2(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO>;
229
+ get3(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO>;
230
230
  /**
231
231
  *
232
232
  * @summary List envelopes I sent for signature
@@ -310,7 +310,7 @@ export declare class ESignApi extends BaseAPI {
310
310
  * @param {*} [options] Override http request option.
311
311
  * @throws {RequiredError}
312
312
  */
313
- get2(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SignatureEnvelopeDTO, any, {}, any>>;
313
+ get3(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SignatureEnvelopeDTO, any, {}, any>>;
314
314
  /**
315
315
  *
316
316
  * @summary List envelopes I sent for signature
@@ -170,9 +170,9 @@ const ESignApiAxiosParamCreator = function (configuration) {
170
170
  * @param {*} [options] Override http request option.
171
171
  * @throws {RequiredError}
172
172
  */
173
- get2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
173
+ get3: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
174
174
  // verify required parameter 'id' is not null or undefined
175
- (0, common_1.assertParamExists)('get2', 'id', id);
175
+ (0, common_1.assertParamExists)('get3', 'id', id);
176
176
  const localVarPath = `/api/v1/signatures/{id}`
177
177
  .replace('{id}', encodeURIComponent(String(id)));
178
178
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -440,12 +440,12 @@ const ESignApiFp = function (configuration) {
440
440
  * @param {*} [options] Override http request option.
441
441
  * @throws {RequiredError}
442
442
  */
443
- get2(id, options) {
443
+ get3(id, options) {
444
444
  return __awaiter(this, void 0, void 0, function* () {
445
445
  var _a, _b, _c;
446
- const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(id, options);
446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get3(id, options);
447
447
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
448
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
448
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.get3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
449
449
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
450
450
  });
451
451
  },
@@ -584,8 +584,8 @@ const ESignApiFactory = function (configuration, basePath, axios) {
584
584
  * @param {*} [options] Override http request option.
585
585
  * @throws {RequiredError}
586
586
  */
587
- get2(id, options) {
588
- return localVarFp.get2(id, options).then((request) => request(axios, basePath));
587
+ get3(id, options) {
588
+ return localVarFp.get3(id, options).then((request) => request(axios, basePath));
589
589
  },
590
590
  /**
591
591
  *
@@ -690,8 +690,8 @@ class ESignApi extends base_1.BaseAPI {
690
690
  * @param {*} [options] Override http request option.
691
691
  * @throws {RequiredError}
692
692
  */
693
- get2(id, options) {
694
- return (0, exports.ESignApiFp)(this.configuration).get2(id, options).then((request) => request(this.axios, this.basePath));
693
+ get3(id, options) {
694
+ return (0, exports.ESignApiFp)(this.configuration).get3(id, options).then((request) => request(this.axios, this.basePath));
695
695
  }
696
696
  /**
697
697
  *
@@ -12,13 +12,22 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { AiPreferencesView } from '../models';
15
16
  import type { LicenseInfo } from '../models';
17
+ import type { SaveAiPreferencesRequest } from '../models';
16
18
  import type { Settings } from '../models';
17
19
  import type { UserPreferencesRequest } from '../models';
18
20
  /**
19
21
  * SettingsApi - axios parameter creator
20
22
  */
21
23
  export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @summary The caller\'s smart-filing preferences
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ get2: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22
31
  /**
23
32
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
24
33
  * @summary Coarse license info
@@ -33,6 +42,14 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
33
42
  * @throws {RequiredError}
34
43
  */
35
44
  getSettings: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * A null field leaves the current value unchanged.
47
+ * @summary Save the caller\'s smart-filing preferences
48
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ save: (saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
53
  /**
37
54
  * Save user\'s language and theme preferences
38
55
  * @summary Save user preferences
@@ -46,6 +63,13 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
46
63
  * SettingsApi - functional programming interface
47
64
  */
48
65
  export declare const SettingsApiFp: (configuration?: Configuration) => {
66
+ /**
67
+ *
68
+ * @summary The caller\'s smart-filing preferences
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ get2(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
49
73
  /**
50
74
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
51
75
  * @summary Coarse license info
@@ -60,6 +84,14 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
60
84
  * @throws {RequiredError}
61
85
  */
62
86
  getSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
87
+ /**
88
+ * A null field leaves the current value unchanged.
89
+ * @summary Save the caller\'s smart-filing preferences
90
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
63
95
  /**
64
96
  * Save user\'s language and theme preferences
65
97
  * @summary Save user preferences
@@ -73,6 +105,13 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
73
105
  * SettingsApi - factory interface
74
106
  */
75
107
  export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
108
+ /**
109
+ *
110
+ * @summary The caller\'s smart-filing preferences
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ get2(options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
76
115
  /**
77
116
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
78
117
  * @summary Coarse license info
@@ -87,6 +126,14 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
87
126
  * @throws {RequiredError}
88
127
  */
89
128
  getSettings(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
129
+ /**
130
+ * A null field leaves the current value unchanged.
131
+ * @summary Save the caller\'s smart-filing preferences
132
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
90
137
  /**
91
138
  * Save user\'s language and theme preferences
92
139
  * @summary Save user preferences
@@ -100,6 +147,13 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
100
147
  * SettingsApi - object-oriented interface
101
148
  */
102
149
  export declare class SettingsApi extends BaseAPI {
150
+ /**
151
+ *
152
+ * @summary The caller\'s smart-filing preferences
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ get2(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}, any>>;
103
157
  /**
104
158
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
105
159
  * @summary Coarse license info
@@ -114,6 +168,14 @@ export declare class SettingsApi extends BaseAPI {
114
168
  * @throws {RequiredError}
115
169
  */
116
170
  getSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}, any>>;
171
+ /**
172
+ * A null field leaves the current value unchanged.
173
+ * @summary Save the caller\'s smart-filing preferences
174
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}, any>>;
117
179
  /**
118
180
  * Save user\'s language and theme preferences
119
181
  * @summary Save user preferences
@@ -34,6 +34,35 @@ const base_1 = require("../base");
34
34
  */
35
35
  const SettingsApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
+ /**
38
+ *
39
+ * @summary The caller\'s smart-filing preferences
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ get2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
44
+ const localVarPath = `/api/v1/settings/ai/preferences`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Accept'] = 'application/json';
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
37
66
  /**
38
67
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
39
68
  * @summary Coarse license info
@@ -92,6 +121,40 @@ const SettingsApiAxiosParamCreator = function (configuration) {
92
121
  options: localVarRequestOptions,
93
122
  };
94
123
  }),
124
+ /**
125
+ * A null field leaves the current value unchanged.
126
+ * @summary Save the caller\'s smart-filing preferences
127
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ save: (saveAiPreferencesRequest_1, ...args_1) => __awaiter(this, [saveAiPreferencesRequest_1, ...args_1], void 0, function* (saveAiPreferencesRequest, options = {}) {
132
+ // verify required parameter 'saveAiPreferencesRequest' is not null or undefined
133
+ (0, common_1.assertParamExists)('save', 'saveAiPreferencesRequest', saveAiPreferencesRequest);
134
+ const localVarPath = `/api/v1/settings/ai/preferences`;
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ // authentication keycloak_auth required
145
+ // http bearer authentication required
146
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
147
+ localVarHeaderParameter['Content-Type'] = 'application/json';
148
+ localVarHeaderParameter['Accept'] = 'application/json';
149
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
152
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveAiPreferencesRequest, localVarRequestOptions, configuration);
153
+ return {
154
+ url: (0, common_1.toPathString)(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ };
157
+ }),
95
158
  /**
96
159
  * Save user\'s language and theme preferences
97
160
  * @summary Save user preferences
@@ -135,6 +198,21 @@ exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
135
198
  const SettingsApiFp = function (configuration) {
136
199
  const localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
137
200
  return {
201
+ /**
202
+ *
203
+ * @summary The caller\'s smart-filing preferences
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ get2(options) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ var _a, _b, _c;
210
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(options);
211
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
212
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SettingsApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
213
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
214
+ });
215
+ },
138
216
  /**
139
217
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
140
218
  * @summary Coarse license info
@@ -165,6 +243,22 @@ const SettingsApiFp = function (configuration) {
165
243
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
166
244
  });
167
245
  },
246
+ /**
247
+ * A null field leaves the current value unchanged.
248
+ * @summary Save the caller\'s smart-filing preferences
249
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ save(saveAiPreferencesRequest, options) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ var _a, _b, _c;
256
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.save(saveAiPreferencesRequest, options);
257
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
258
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SettingsApi.save']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
259
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
260
+ });
261
+ },
168
262
  /**
169
263
  * Save user\'s language and theme preferences
170
264
  * @summary Save user preferences
@@ -190,6 +284,15 @@ exports.SettingsApiFp = SettingsApiFp;
190
284
  const SettingsApiFactory = function (configuration, basePath, axios) {
191
285
  const localVarFp = (0, exports.SettingsApiFp)(configuration);
192
286
  return {
287
+ /**
288
+ *
289
+ * @summary The caller\'s smart-filing preferences
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ get2(options) {
294
+ return localVarFp.get2(options).then((request) => request(axios, basePath));
295
+ },
193
296
  /**
194
297
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
195
298
  * @summary Coarse license info
@@ -208,6 +311,16 @@ const SettingsApiFactory = function (configuration, basePath, axios) {
208
311
  getSettings(options) {
209
312
  return localVarFp.getSettings(options).then((request) => request(axios, basePath));
210
313
  },
314
+ /**
315
+ * A null field leaves the current value unchanged.
316
+ * @summary Save the caller\'s smart-filing preferences
317
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ save(saveAiPreferencesRequest, options) {
322
+ return localVarFp.save(saveAiPreferencesRequest, options).then((request) => request(axios, basePath));
323
+ },
211
324
  /**
212
325
  * Save user\'s language and theme preferences
213
326
  * @summary Save user preferences
@@ -225,6 +338,15 @@ exports.SettingsApiFactory = SettingsApiFactory;
225
338
  * SettingsApi - object-oriented interface
226
339
  */
227
340
  class SettingsApi extends base_1.BaseAPI {
341
+ /**
342
+ *
343
+ * @summary The caller\'s smart-filing preferences
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ get2(options) {
348
+ return (0, exports.SettingsApiFp)(this.configuration).get2(options).then((request) => request(this.axios, this.basePath));
349
+ }
228
350
  /**
229
351
  * License type and, for trials, the days remaining — drives the frontend trial banner. No license internals are exposed; the browser never talks to license-server.
230
352
  * @summary Coarse license info
@@ -243,6 +365,16 @@ class SettingsApi extends base_1.BaseAPI {
243
365
  getSettings(options) {
244
366
  return (0, exports.SettingsApiFp)(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
245
367
  }
368
+ /**
369
+ * A null field leaves the current value unchanged.
370
+ * @summary Save the caller\'s smart-filing preferences
371
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ save(saveAiPreferencesRequest, options) {
376
+ return (0, exports.SettingsApiFp)(this.configuration).save(saveAiPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
377
+ }
246
378
  /**
247
379
  * Save user\'s language and theme preferences
248
380
  * @summary Save user preferences