@openfilz-sdk/typescript 1.3.4 → 1.3.6

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 +133 -1
  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,262 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * DocumentInsightsApi - axios parameter creator
31
+ */
32
+ export const DocumentInsightsApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * 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}.
36
+ * @summary Enrich existing documents
37
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ backfill: (insightBackfillRequest_1, ...args_1) => __awaiter(this, [insightBackfillRequest_1, ...args_1], void 0, function* (insightBackfillRequest, options = {}) {
42
+ const localVarPath = `/api/v1/ai/insights/backfill`;
43
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45
+ let baseOptions;
46
+ if (configuration) {
47
+ baseOptions = configuration.baseOptions;
48
+ }
49
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
50
+ const localVarHeaderParameter = {};
51
+ const localVarQueryParameter = {};
52
+ // authentication keycloak_auth required
53
+ // http bearer authentication required
54
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
55
+ localVarHeaderParameter['Content-Type'] = 'application/json';
56
+ localVarHeaderParameter['Accept'] = 'application/json';
57
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
60
+ localVarRequestOptions.data = serializeDataIfNeeded(insightBackfillRequest, localVarRequestOptions, configuration);
61
+ return {
62
+ url: toPathString(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ /**
67
+ *
68
+ * @summary Progress of a backfill job
69
+ * @param {string} jobId
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ backfillStatus: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
74
+ // verify required parameter 'jobId' is not null or undefined
75
+ assertParamExists('backfillStatus', 'jobId', jobId);
76
+ const localVarPath = `/api/v1/ai/insights/backfill/{jobId}`
77
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication keycloak_auth required
88
+ // http bearer authentication required
89
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
+ localVarHeaderParameter['Accept'] = 'application/json';
91
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
94
+ return {
95
+ url: toPathString(localVarUrlObj),
96
+ options: localVarRequestOptions,
97
+ };
98
+ }),
99
+ /**
100
+ * 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.
101
+ * @summary Get the insights of a document
102
+ * @param {string} documentId
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ getInsights: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
107
+ // verify required parameter 'documentId' is not null or undefined
108
+ assertParamExists('getInsights', 'documentId', documentId);
109
+ const localVarPath = `/api/v1/documents/{documentId}/insights`
110
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ }
117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
118
+ const localVarHeaderParameter = {};
119
+ const localVarQueryParameter = {};
120
+ // authentication keycloak_auth required
121
+ // http bearer authentication required
122
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
123
+ localVarHeaderParameter['Accept'] = 'application/json';
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
127
+ return {
128
+ url: toPathString(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ }),
132
+ };
133
+ };
134
+ /**
135
+ * DocumentInsightsApi - functional programming interface
136
+ */
137
+ export const DocumentInsightsApiFp = function (configuration) {
138
+ const localVarAxiosParamCreator = DocumentInsightsApiAxiosParamCreator(configuration);
139
+ return {
140
+ /**
141
+ * 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}.
142
+ * @summary Enrich existing documents
143
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ backfill(insightBackfillRequest, options) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ var _a, _b, _c;
150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backfill(insightBackfillRequest, options);
151
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
152
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentInsightsApi.backfill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
154
+ });
155
+ },
156
+ /**
157
+ *
158
+ * @summary Progress of a backfill job
159
+ * @param {string} jobId
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ backfillStatus(jobId, options) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a, _b, _c;
166
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backfillStatus(jobId, options);
167
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
168
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentInsightsApi.backfillStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
169
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
170
+ });
171
+ },
172
+ /**
173
+ * 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.
174
+ * @summary Get the insights of a document
175
+ * @param {string} documentId
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ getInsights(documentId, options) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ var _a, _b, _c;
182
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInsights(documentId, options);
183
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
184
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentInsightsApi.getInsights']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
186
+ });
187
+ },
188
+ };
189
+ };
190
+ /**
191
+ * DocumentInsightsApi - factory interface
192
+ */
193
+ export const DocumentInsightsApiFactory = function (configuration, basePath, axios) {
194
+ const localVarFp = DocumentInsightsApiFp(configuration);
195
+ return {
196
+ /**
197
+ * 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}.
198
+ * @summary Enrich existing documents
199
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ backfill(insightBackfillRequest, options) {
204
+ return localVarFp.backfill(insightBackfillRequest, options).then((request) => request(axios, basePath));
205
+ },
206
+ /**
207
+ *
208
+ * @summary Progress of a backfill job
209
+ * @param {string} jobId
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ backfillStatus(jobId, options) {
214
+ return localVarFp.backfillStatus(jobId, options).then((request) => request(axios, basePath));
215
+ },
216
+ /**
217
+ * 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.
218
+ * @summary Get the insights of a document
219
+ * @param {string} documentId
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ getInsights(documentId, options) {
224
+ return localVarFp.getInsights(documentId, options).then((request) => request(axios, basePath));
225
+ },
226
+ };
227
+ };
228
+ /**
229
+ * DocumentInsightsApi - object-oriented interface
230
+ */
231
+ export class DocumentInsightsApi extends BaseAPI {
232
+ /**
233
+ * 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}.
234
+ * @summary Enrich existing documents
235
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ backfill(insightBackfillRequest, options) {
240
+ return DocumentInsightsApiFp(this.configuration).backfill(insightBackfillRequest, options).then((request) => request(this.axios, this.basePath));
241
+ }
242
+ /**
243
+ *
244
+ * @summary Progress of a backfill job
245
+ * @param {string} jobId
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ backfillStatus(jobId, options) {
250
+ return DocumentInsightsApiFp(this.configuration).backfillStatus(jobId, options).then((request) => request(this.axios, this.basePath));
251
+ }
252
+ /**
253
+ * 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.
254
+ * @summary Get the insights of a document
255
+ * @param {string} documentId
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ getInsights(documentId, options) {
260
+ return DocumentInsightsApiFp(this.configuration).getInsights(documentId, options).then((request) => request(this.axios, this.basePath));
261
+ }
262
+ }
@@ -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
- get1: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
+ get2: (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
- get1(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>>;
145
+ get2(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
- get1(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO>;
229
+ get2(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
- get1(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SignatureEnvelopeDTO, any, {}>>;
313
+ get2(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SignatureEnvelopeDTO, any, {}>>;
314
314
  /**
315
315
  *
316
316
  * @summary List envelopes I sent for signature
@@ -167,9 +167,9 @@ export const ESignApiAxiosParamCreator = function (configuration) {
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
170
- get1: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
170
+ get2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
171
171
  // verify required parameter 'id' is not null or undefined
172
- assertParamExists('get1', 'id', id);
172
+ assertParamExists('get2', 'id', id);
173
173
  const localVarPath = `/api/v1/signatures/{id}`
174
174
  .replace('{id}', encodeURIComponent(String(id)));
175
175
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -436,12 +436,12 @@ export const ESignApiFp = function (configuration) {
436
436
  * @param {*} [options] Override http request option.
437
437
  * @throws {RequiredError}
438
438
  */
439
- get1(id, options) {
439
+ get2(id, options) {
440
440
  return __awaiter(this, void 0, void 0, function* () {
441
441
  var _a, _b, _c;
442
- const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(id, options);
442
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(id, options);
443
443
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
444
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
444
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ESignApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
445
445
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
446
446
  });
447
447
  },
@@ -579,8 +579,8 @@ export const ESignApiFactory = function (configuration, basePath, axios) {
579
579
  * @param {*} [options] Override http request option.
580
580
  * @throws {RequiredError}
581
581
  */
582
- get1(id, options) {
583
- return localVarFp.get1(id, options).then((request) => request(axios, basePath));
582
+ get2(id, options) {
583
+ return localVarFp.get2(id, options).then((request) => request(axios, basePath));
584
584
  },
585
585
  /**
586
586
  *
@@ -684,8 +684,8 @@ export class ESignApi extends BaseAPI {
684
684
  * @param {*} [options] Override http request option.
685
685
  * @throws {RequiredError}
686
686
  */
687
- get1(id, options) {
688
- return ESignApiFp(this.configuration).get1(id, options).then((request) => request(this.axios, this.basePath));
687
+ get2(id, options) {
688
+ return ESignApiFp(this.configuration).get2(id, options).then((request) => request(this.axios, this.basePath));
689
689
  }
690
690
  /**
691
691
  *
@@ -12,11 +12,20 @@
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';
16
+ import type { SaveAiPreferencesRequest } from '../models';
15
17
  import type { Settings } from '../models';
16
18
  /**
17
19
  * SettingsApi - axios parameter creator
18
20
  */
19
21
  export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary The caller\'s smart-filing preferences
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ get1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20
29
  /**
21
30
  * Retrieve user\'s settings : global settings and user\'s preferences
22
31
  * @summary Get user\'s settings
@@ -24,11 +33,26 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
24
33
  * @throws {RequiredError}
25
34
  */
26
35
  getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * A null field leaves the current value unchanged.
38
+ * @summary Save the caller\'s smart-filing preferences
39
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ save: (saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
44
  };
28
45
  /**
29
46
  * SettingsApi - functional programming interface
30
47
  */
31
48
  export declare const SettingsApiFp: (configuration?: Configuration) => {
49
+ /**
50
+ *
51
+ * @summary The caller\'s smart-filing preferences
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ get1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
32
56
  /**
33
57
  * Retrieve user\'s settings : global settings and user\'s preferences
34
58
  * @summary Get user\'s settings
@@ -36,11 +60,26 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
36
60
  * @throws {RequiredError}
37
61
  */
38
62
  getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
63
+ /**
64
+ * A null field leaves the current value unchanged.
65
+ * @summary Save the caller\'s smart-filing preferences
66
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
39
71
  };
40
72
  /**
41
73
  * SettingsApi - factory interface
42
74
  */
43
75
  export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
76
+ /**
77
+ *
78
+ * @summary The caller\'s smart-filing preferences
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ get1(options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
44
83
  /**
45
84
  * Retrieve user\'s settings : global settings and user\'s preferences
46
85
  * @summary Get user\'s settings
@@ -48,11 +87,26 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
48
87
  * @throws {RequiredError}
49
88
  */
50
89
  getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
90
+ /**
91
+ * A null field leaves the current value unchanged.
92
+ * @summary Save the caller\'s smart-filing preferences
93
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
51
98
  };
52
99
  /**
53
100
  * SettingsApi - object-oriented interface
54
101
  */
55
102
  export declare class SettingsApi extends BaseAPI {
103
+ /**
104
+ *
105
+ * @summary The caller\'s smart-filing preferences
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ get1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
56
110
  /**
57
111
  * Retrieve user\'s settings : global settings and user\'s preferences
58
112
  * @summary Get user\'s settings
@@ -60,4 +114,12 @@ export declare class SettingsApi extends BaseAPI {
60
114
  * @throws {RequiredError}
61
115
  */
62
116
  getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
117
+ /**
118
+ * A null field leaves the current value unchanged.
119
+ * @summary Save the caller\'s smart-filing preferences
120
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
63
125
  }
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
29
  /**
@@ -31,6 +31,35 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
31
31
  */
32
32
  export const SettingsApiAxiosParamCreator = function (configuration) {
33
33
  return {
34
+ /**
35
+ *
36
+ * @summary The caller\'s smart-filing preferences
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ get1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
41
+ const localVarPath = `/api/v1/settings/ai/preferences`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
49
+ const localVarHeaderParameter = {};
50
+ const localVarQueryParameter = {};
51
+ // authentication keycloak_auth required
52
+ // http bearer authentication required
53
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
54
+ localVarHeaderParameter['Accept'] = 'application/json';
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
58
+ return {
59
+ url: toPathString(localVarUrlObj),
60
+ options: localVarRequestOptions,
61
+ };
62
+ }),
34
63
  /**
35
64
  * Retrieve user\'s settings : global settings and user\'s preferences
36
65
  * @summary Get user\'s settings
@@ -60,6 +89,40 @@ export const SettingsApiAxiosParamCreator = function (configuration) {
60
89
  options: localVarRequestOptions,
61
90
  };
62
91
  }),
92
+ /**
93
+ * A null field leaves the current value unchanged.
94
+ * @summary Save the caller\'s smart-filing preferences
95
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ save: (saveAiPreferencesRequest_1, ...args_1) => __awaiter(this, [saveAiPreferencesRequest_1, ...args_1], void 0, function* (saveAiPreferencesRequest, options = {}) {
100
+ // verify required parameter 'saveAiPreferencesRequest' is not null or undefined
101
+ assertParamExists('save', 'saveAiPreferencesRequest', saveAiPreferencesRequest);
102
+ const localVarPath = `/api/v1/settings/ai/preferences`;
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
110
+ const localVarHeaderParameter = {};
111
+ const localVarQueryParameter = {};
112
+ // authentication keycloak_auth required
113
+ // http bearer authentication required
114
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
115
+ localVarHeaderParameter['Content-Type'] = 'application/json';
116
+ localVarHeaderParameter['Accept'] = 'application/json';
117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
120
+ localVarRequestOptions.data = serializeDataIfNeeded(saveAiPreferencesRequest, localVarRequestOptions, configuration);
121
+ return {
122
+ url: toPathString(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ };
125
+ }),
63
126
  };
64
127
  };
65
128
  /**
@@ -68,6 +131,21 @@ export const SettingsApiAxiosParamCreator = function (configuration) {
68
131
  export const SettingsApiFp = function (configuration) {
69
132
  const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration);
70
133
  return {
134
+ /**
135
+ *
136
+ * @summary The caller\'s smart-filing preferences
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ get1(options) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ var _a, _b, _c;
143
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(options);
144
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
145
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SettingsApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
146
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
147
+ });
148
+ },
71
149
  /**
72
150
  * Retrieve user\'s settings : global settings and user\'s preferences
73
151
  * @summary Get user\'s settings
@@ -83,6 +161,22 @@ export const SettingsApiFp = function (configuration) {
83
161
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
84
162
  });
85
163
  },
164
+ /**
165
+ * A null field leaves the current value unchanged.
166
+ * @summary Save the caller\'s smart-filing preferences
167
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ save(saveAiPreferencesRequest, options) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ var _a, _b, _c;
174
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.save(saveAiPreferencesRequest, options);
175
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
176
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SettingsApi.save']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
177
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
178
+ });
179
+ },
86
180
  };
87
181
  };
88
182
  /**
@@ -91,6 +185,15 @@ export const SettingsApiFp = function (configuration) {
91
185
  export const SettingsApiFactory = function (configuration, basePath, axios) {
92
186
  const localVarFp = SettingsApiFp(configuration);
93
187
  return {
188
+ /**
189
+ *
190
+ * @summary The caller\'s smart-filing preferences
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ get1(options) {
195
+ return localVarFp.get1(options).then((request) => request(axios, basePath));
196
+ },
94
197
  /**
95
198
  * Retrieve user\'s settings : global settings and user\'s preferences
96
199
  * @summary Get user\'s settings
@@ -100,12 +203,31 @@ export const SettingsApiFactory = function (configuration, basePath, axios) {
100
203
  getSettings1(options) {
101
204
  return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
102
205
  },
206
+ /**
207
+ * A null field leaves the current value unchanged.
208
+ * @summary Save the caller\'s smart-filing preferences
209
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ save(saveAiPreferencesRequest, options) {
214
+ return localVarFp.save(saveAiPreferencesRequest, options).then((request) => request(axios, basePath));
215
+ },
103
216
  };
104
217
  };
105
218
  /**
106
219
  * SettingsApi - object-oriented interface
107
220
  */
108
221
  export class SettingsApi extends BaseAPI {
222
+ /**
223
+ *
224
+ * @summary The caller\'s smart-filing preferences
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ get1(options) {
229
+ return SettingsApiFp(this.configuration).get1(options).then((request) => request(this.axios, this.basePath));
230
+ }
109
231
  /**
110
232
  * Retrieve user\'s settings : global settings and user\'s preferences
111
233
  * @summary Get user\'s settings
@@ -115,4 +237,14 @@ export class SettingsApi extends BaseAPI {
115
237
  getSettings1(options) {
116
238
  return SettingsApiFp(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
117
239
  }
240
+ /**
241
+ * A null field leaves the current value unchanged.
242
+ * @summary Save the caller\'s smart-filing preferences
243
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ save(saveAiPreferencesRequest, options) {
248
+ return SettingsApiFp(this.configuration).save(saveAiPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
249
+ }
118
250
  }