@openfilz-sdk/typescript 1.3.18 → 1.3.20

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 (59) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +7 -2
  4. package/api/document-insights-api.ts +71 -4
  5. package/api/settings-api.ts +18 -11
  6. package/api/smart-filing-api.ts +73 -0
  7. package/dist/api/document-insights-api.d.ts +33 -4
  8. package/dist/api/document-insights-api.js +66 -4
  9. package/dist/api/settings-api.d.ts +12 -8
  10. package/dist/api/settings-api.js +18 -11
  11. package/dist/api/smart-filing-api.d.ts +33 -0
  12. package/dist/api/smart-filing-api.js +68 -0
  13. package/dist/esm/api/document-insights-api.d.ts +33 -4
  14. package/dist/esm/api/document-insights-api.js +66 -4
  15. package/dist/esm/api/settings-api.d.ts +12 -8
  16. package/dist/esm/api/settings-api.js +18 -11
  17. package/dist/esm/api/smart-filing-api.d.ts +33 -0
  18. package/dist/esm/api/smart-filing-api.js +68 -0
  19. package/dist/esm/models/ai-preferences-view.d.ts +3 -0
  20. package/dist/esm/models/auto-file-inbox-request.d.ts +14 -0
  21. package/dist/esm/models/auto-file-inbox-request.js +14 -0
  22. package/dist/esm/models/facet.d.ts +15 -0
  23. package/dist/esm/models/facet.js +14 -0
  24. package/dist/esm/models/index.d.ts +3 -0
  25. package/dist/esm/models/index.js +3 -0
  26. package/dist/esm/models/insight-facets.d.ts +16 -0
  27. package/dist/esm/models/insight-facets.js +14 -0
  28. package/dist/esm/models/save-ai-preferences-request.d.ts +1 -0
  29. package/dist/esm/models/settings.d.ts +1 -0
  30. package/dist/models/ai-preferences-view.d.ts +3 -0
  31. package/dist/models/auto-file-inbox-request.d.ts +14 -0
  32. package/dist/models/auto-file-inbox-request.js +15 -0
  33. package/dist/models/facet.d.ts +15 -0
  34. package/dist/models/facet.js +15 -0
  35. package/dist/models/index.d.ts +3 -0
  36. package/dist/models/index.js +3 -0
  37. package/dist/models/insight-facets.d.ts +16 -0
  38. package/dist/models/insight-facets.js +15 -0
  39. package/dist/models/save-ai-preferences-request.d.ts +1 -0
  40. package/dist/models/settings.d.ts +1 -0
  41. package/docs/AiPreferencesView.md +6 -0
  42. package/docs/AutoFileInboxRequest.md +20 -0
  43. package/docs/DocumentInsightsApi.md +46 -1
  44. package/docs/Facet.md +22 -0
  45. package/docs/InsightFacets.md +22 -0
  46. package/docs/SaveAiPreferencesRequest.md +2 -0
  47. package/docs/Settings.md +2 -0
  48. package/docs/SettingsApi.md +5 -2
  49. package/docs/SmartFilingApi.md +53 -0
  50. package/graphql/document-search.graphqls +4 -0
  51. package/graphql/document.graphqls +4 -0
  52. package/models/ai-preferences-view.ts +3 -0
  53. package/models/auto-file-inbox-request.ts +20 -0
  54. package/models/facet.ts +21 -0
  55. package/models/index.ts +3 -0
  56. package/models/insight-facets.ts +24 -0
  57. package/models/save-ai-preferences-request.ts +1 -0
  58. package/models/settings.ts +1 -0
  59. package/package.json +1 -1
@@ -44,6 +44,7 @@ docs/AuditLog.md
44
44
  docs/AuditLogDetails.md
45
45
  docs/AuditLogDetailsOneOf.md
46
46
  docs/AuditVerificationResult.md
47
+ docs/AutoFileInboxRequest.md
47
48
  docs/AutoFileJobView.md
48
49
  docs/AutoFileJobsRequest.md
49
50
  docs/AutoFileRequest.md
@@ -80,6 +81,7 @@ docs/ESignTemplatesApi.md
80
81
  docs/ElementInfo.md
81
82
  docs/EmbeddingBackfillRequest.md
82
83
  docs/EmbeddingBackfillStatus.md
84
+ docs/Facet.md
83
85
  docs/FavoritesApi.md
84
86
  docs/FileControllerApi.md
85
87
  docs/FileTypeStats.md
@@ -91,6 +93,7 @@ docs/FolderResponse.md
91
93
  docs/InsightBackfillRequest.md
92
94
  docs/InsightBackfillStatus.md
93
95
  docs/InsightCategoryUpdate.md
96
+ docs/InsightFacets.md
94
97
  docs/InstantiateTemplateRequest.md
95
98
  docs/Item.md
96
99
  docs/ItemResult.md
@@ -193,6 +196,7 @@ models/audit-log-details-one-of.ts
193
196
  models/audit-log-details.ts
194
197
  models/audit-log.ts
195
198
  models/audit-verification-result.ts
199
+ models/auto-file-inbox-request.ts
196
200
  models/auto-file-job-view.ts
197
201
  models/auto-file-jobs-request.ts
198
202
  models/auto-file-request.ts
@@ -221,6 +225,7 @@ models/document-version-info.ts
221
225
  models/element-info.ts
222
226
  models/embedding-backfill-request.ts
223
227
  models/embedding-backfill-status.ts
228
+ models/facet.ts
224
229
  models/file-type-stats.ts
225
230
  models/filing-outcome.ts
226
231
  models/filter-input.ts
@@ -230,6 +235,7 @@ models/index.ts
230
235
  models/insight-backfill-request.ts
231
236
  models/insight-backfill-status.ts
232
237
  models/insight-category-update.ts
238
+ models/insight-facets.ts
233
239
  models/instantiate-template-request.ts
234
240
  models/item-result.ts
235
241
  models/item.ts
@@ -1 +1 @@
1
- 8672580c6c5002cb918a847b9f10e8dd17d4fb82174d95aee6d855cadfbb0aa8
1
+ 92e1063d026df6b8f0edd342f5b536e19993cd2e27bd18a21d56bbf17b60bd0a
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript@1.3.18
1
+ ## @openfilz-sdk/typescript@1.3.20
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @openfilz-sdk/typescript@1.3.18 --save
39
+ npm install @openfilz-sdk/typescript@1.3.20 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
87
87
  *DocumentControllerApi* | [**uploadDocument1**](docs/DocumentControllerApi.md#uploaddocument1) | **POST** /api/v1/documents/upload | Upload a single document
88
88
  *DocumentInsightsApi* | [**backfill**](docs/DocumentInsightsApi.md#backfill) | **POST** /api/v1/ai/insights/backfill | Enrich existing documents
89
89
  *DocumentInsightsApi* | [**backfillStatus**](docs/DocumentInsightsApi.md#backfillstatus) | **GET** /api/v1/ai/insights/backfill/{jobId} | Progress of a backfill job
90
+ *DocumentInsightsApi* | [**facets**](docs/DocumentInsightsApi.md#facets) | **GET** /api/v1/ai/insights/facets | The category and language facets of the library
90
91
  *DocumentInsightsApi* | [**getInsights**](docs/DocumentInsightsApi.md#getinsights) | **GET** /api/v1/documents/{documentId}/insights | Get the insights of a document
91
92
  *DocumentInsightsApi* | [**setCategory**](docs/DocumentInsightsApi.md#setcategory) | **PATCH** /api/v1/documents/{documentId}/insights | Correct the kind of a document
92
93
  *DocumentSuggestionControllerApi* | [**getSuggestions**](docs/DocumentSuggestionControllerApi.md#getsuggestions) | **GET** /api/v1/suggestions |
@@ -142,6 +143,7 @@ Class | Method | HTTP request | Description
142
143
  *SettingsApi* | [**getSettings1**](docs/SettingsApi.md#getsettings1) | **GET** /api/v1/settings | Get user\'s settings
143
144
  *SettingsApi* | [**save**](docs/SettingsApi.md#save) | **PUT** /api/v1/settings/ai/preferences | Save the caller\'s smart-filing preferences
144
145
  *SmartFilingApi* | [**file**](docs/SmartFilingApi.md#file) | **POST** /api/v1/ai/auto-file | File existing documents on demand
146
+ *SmartFilingApi* | [**fileInbox**](docs/SmartFilingApi.md#fileinbox) | **POST** /api/v1/ai/auto-file/inbox | File everything lying loose in the caller\'s Inbox
145
147
  *SmartFilingApi* | [**job**](docs/SmartFilingApi.md#job) | **GET** /api/v1/ai/auto-file/{jobId} | Progress and outcome of a filing job
146
148
  *SmartFilingApi* | [**jobs**](docs/SmartFilingApi.md#jobs) | **POST** /api/v1/ai/auto-file/jobs | Progress and outcome of several filing jobs
147
149
  *SmartFilingApi* | [**lastFiling**](docs/SmartFilingApi.md#lastfiling) | **GET** /api/v1/ai/auto-file/document/{documentId} | The latest filing record of a document (the \"Filed by OpenFilz\" chip)
@@ -188,6 +190,7 @@ Class | Method | HTTP request | Description
188
190
  - [AuditLogDetails](docs/AuditLogDetails.md)
189
191
  - [AuditLogDetailsOneOf](docs/AuditLogDetailsOneOf.md)
190
192
  - [AuditVerificationResult](docs/AuditVerificationResult.md)
193
+ - [AutoFileInboxRequest](docs/AutoFileInboxRequest.md)
191
194
  - [AutoFileJobView](docs/AutoFileJobView.md)
192
195
  - [AutoFileJobsRequest](docs/AutoFileJobsRequest.md)
193
196
  - [AutoFileRequest](docs/AutoFileRequest.md)
@@ -216,6 +219,7 @@ Class | Method | HTTP request | Description
216
219
  - [ElementInfo](docs/ElementInfo.md)
217
220
  - [EmbeddingBackfillRequest](docs/EmbeddingBackfillRequest.md)
218
221
  - [EmbeddingBackfillStatus](docs/EmbeddingBackfillStatus.md)
222
+ - [Facet](docs/Facet.md)
219
223
  - [FileTypeStats](docs/FileTypeStats.md)
220
224
  - [FilingOutcome](docs/FilingOutcome.md)
221
225
  - [FilterInput](docs/FilterInput.md)
@@ -224,6 +228,7 @@ Class | Method | HTTP request | Description
224
228
  - [InsightBackfillRequest](docs/InsightBackfillRequest.md)
225
229
  - [InsightBackfillStatus](docs/InsightBackfillStatus.md)
226
230
  - [InsightCategoryUpdate](docs/InsightCategoryUpdate.md)
231
+ - [InsightFacets](docs/InsightFacets.md)
227
232
  - [InstantiateTemplateRequest](docs/InstantiateTemplateRequest.md)
228
233
  - [Item](docs/Item.md)
229
234
  - [ItemResult](docs/ItemResult.md)
@@ -29,6 +29,8 @@ import type { InsightBackfillRequest } from '../models';
29
29
  import type { InsightBackfillStatus } from '../models';
30
30
  // @ts-ignore
31
31
  import type { InsightCategoryUpdate } from '../models';
32
+ // @ts-ignore
33
+ import type { InsightFacets } from '../models';
32
34
  /**
33
35
  * DocumentInsightsApi - axios parameter creator
34
36
  */
@@ -109,6 +111,40 @@ export const DocumentInsightsApiAxiosParamCreator = function (configuration?: Co
109
111
  options: localVarRequestOptions,
110
112
  };
111
113
  },
114
+ /**
115
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
116
+ * @summary The category and language facets of the library
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ facets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
121
+ const localVarPath = `/api/v1/ai/insights/facets`;
122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
124
+ let baseOptions;
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions;
127
+ }
128
+
129
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
130
+ const localVarHeaderParameter = {} as any;
131
+ const localVarQueryParameter = {} as any;
132
+
133
+ // authentication keycloak_auth required
134
+ // http bearer authentication required
135
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
136
+
137
+ localVarHeaderParameter['Accept'] = 'application/json';
138
+
139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
142
+
143
+ return {
144
+ url: toPathString(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ };
147
+ },
112
148
  /**
113
149
  * 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.
114
150
  * @summary Get the insights of a document
@@ -148,7 +184,7 @@ export const DocumentInsightsApiAxiosParamCreator = function (configuration?: Co
148
184
  };
149
185
  },
150
186
  /**
151
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
187
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
152
188
  * @summary Correct the kind of a document
153
189
  * @param {string} documentId
154
190
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -225,6 +261,18 @@ export const DocumentInsightsApiFp = function(configuration?: Configuration) {
225
261
  const localVarOperationServerBasePath = operationServerMap['DocumentInsightsApi.backfillStatus']?.[localVarOperationServerIndex]?.url;
226
262
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
227
263
  },
264
+ /**
265
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
266
+ * @summary The category and language facets of the library
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ async facets(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InsightFacets>> {
271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.facets(options);
272
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
273
+ const localVarOperationServerBasePath = operationServerMap['DocumentInsightsApi.facets']?.[localVarOperationServerIndex]?.url;
274
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
275
+ },
228
276
  /**
229
277
  * 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.
230
278
  * @summary Get the insights of a document
@@ -239,7 +287,7 @@ export const DocumentInsightsApiFp = function(configuration?: Configuration) {
239
287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
240
288
  },
241
289
  /**
242
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
290
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
243
291
  * @summary Correct the kind of a document
244
292
  * @param {string} documentId
245
293
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -281,6 +329,15 @@ export const DocumentInsightsApiFactory = function (configuration?: Configuratio
281
329
  backfillStatus(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<InsightBackfillStatus> {
282
330
  return localVarFp.backfillStatus(jobId, options).then((request) => request(axios, basePath));
283
331
  },
332
+ /**
333
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
334
+ * @summary The category and language facets of the library
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ facets(options?: RawAxiosRequestConfig): AxiosPromise<InsightFacets> {
339
+ return localVarFp.facets(options).then((request) => request(axios, basePath));
340
+ },
284
341
  /**
285
342
  * 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.
286
343
  * @summary Get the insights of a document
@@ -292,7 +349,7 @@ export const DocumentInsightsApiFactory = function (configuration?: Configuratio
292
349
  return localVarFp.getInsights(documentId, options).then((request) => request(axios, basePath));
293
350
  },
294
351
  /**
295
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
352
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
296
353
  * @summary Correct the kind of a document
297
354
  * @param {string} documentId
298
355
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -331,6 +388,16 @@ export class DocumentInsightsApi extends BaseAPI {
331
388
  return DocumentInsightsApiFp(this.configuration).backfillStatus(jobId, options).then((request) => request(this.axios, this.basePath));
332
389
  }
333
390
 
391
+ /**
392
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
393
+ * @summary The category and language facets of the library
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ public facets(options?: RawAxiosRequestConfig) {
398
+ return DocumentInsightsApiFp(this.configuration).facets(options).then((request) => request(this.axios, this.basePath));
399
+ }
400
+
334
401
  /**
335
402
  * 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.
336
403
  * @summary Get the insights of a document
@@ -343,7 +410,7 @@ export class DocumentInsightsApi extends BaseAPI {
343
410
  }
344
411
 
345
412
  /**
346
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
413
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
347
414
  * @summary Correct the kind of a document
348
415
  * @param {string} documentId
349
416
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -101,13 +101,14 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
101
101
  };
102
102
  },
103
103
  /**
104
- * A null field leaves the current value unchanged.
104
+ * A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
105
105
  * @summary Save the caller\'s smart-filing preferences
106
106
  * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
107
+ * @param {string} [acceptLanguage]
107
108
  * @param {*} [options] Override http request option.
108
109
  * @throws {RequiredError}
109
110
  */
110
- save: async (saveAiPreferencesRequest: SaveAiPreferencesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
111
+ save: async (saveAiPreferencesRequest: SaveAiPreferencesRequest, acceptLanguage?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
111
112
  // verify required parameter 'saveAiPreferencesRequest' is not null or undefined
112
113
  assertParamExists('save', 'saveAiPreferencesRequest', saveAiPreferencesRequest)
113
114
  const localVarPath = `/api/v1/settings/ai/preferences`;
@@ -129,6 +130,9 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
129
130
  localVarHeaderParameter['Content-Type'] = 'application/json';
130
131
  localVarHeaderParameter['Accept'] = 'application/json';
131
132
 
133
+ if (acceptLanguage != null) {
134
+ localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
135
+ }
132
136
  setSearchParams(localVarUrlObj, localVarQueryParameter);
133
137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
138
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -173,14 +177,15 @@ export const SettingsApiFp = function(configuration?: Configuration) {
173
177
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
174
178
  },
175
179
  /**
176
- * A null field leaves the current value unchanged.
180
+ * A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
177
181
  * @summary Save the caller\'s smart-filing preferences
178
182
  * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
183
+ * @param {string} [acceptLanguage]
179
184
  * @param {*} [options] Override http request option.
180
185
  * @throws {RequiredError}
181
186
  */
182
- async save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>> {
183
- const localVarAxiosArgs = await localVarAxiosParamCreator.save(saveAiPreferencesRequest, options);
187
+ async save(saveAiPreferencesRequest: SaveAiPreferencesRequest, acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>> {
188
+ const localVarAxiosArgs = await localVarAxiosParamCreator.save(saveAiPreferencesRequest, acceptLanguage, options);
184
189
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
185
190
  const localVarOperationServerBasePath = operationServerMap['SettingsApi.save']?.[localVarOperationServerIndex]?.url;
186
191
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -213,14 +218,15 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
213
218
  return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
214
219
  },
215
220
  /**
216
- * A null field leaves the current value unchanged.
221
+ * A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
217
222
  * @summary Save the caller\'s smart-filing preferences
218
223
  * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
224
+ * @param {string} [acceptLanguage]
219
225
  * @param {*} [options] Override http request option.
220
226
  * @throws {RequiredError}
221
227
  */
222
- save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView> {
223
- return localVarFp.save(saveAiPreferencesRequest, options).then((request) => request(axios, basePath));
228
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, acceptLanguage?: string, options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView> {
229
+ return localVarFp.save(saveAiPreferencesRequest, acceptLanguage, options).then((request) => request(axios, basePath));
224
230
  },
225
231
  };
226
232
  };
@@ -250,14 +256,15 @@ export class SettingsApi extends BaseAPI {
250
256
  }
251
257
 
252
258
  /**
253
- * A null field leaves the current value unchanged.
259
+ * A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
254
260
  * @summary Save the caller\'s smart-filing preferences
255
261
  * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
262
+ * @param {string} [acceptLanguage]
256
263
  * @param {*} [options] Override http request option.
257
264
  * @throws {RequiredError}
258
265
  */
259
- public save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig) {
260
- return SettingsApiFp(this.configuration).save(saveAiPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
266
+ public save(saveAiPreferencesRequest: SaveAiPreferencesRequest, acceptLanguage?: string, options?: RawAxiosRequestConfig) {
267
+ return SettingsApiFp(this.configuration).save(saveAiPreferencesRequest, acceptLanguage, options).then((request) => request(this.axios, this.basePath));
261
268
  }
262
269
  }
263
270
 
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { AutoFileInboxRequest } from '../models';
26
+ // @ts-ignore
25
27
  import type { AutoFileJobView } from '../models';
26
28
  // @ts-ignore
27
29
  import type { AutoFileJobsRequest } from '../models';
@@ -73,6 +75,43 @@ export const SmartFilingApiAxiosParamCreator = function (configuration?: Configu
73
75
  options: localVarRequestOptions,
74
76
  };
75
77
  },
78
+ /**
79
+ * Schedules one filing job for every active file directly in the caller\'s Inbox folder (the per-user Inbox of the smart-filing preferences) and returns the job at once, like the on-demand endpoint. 404 when the caller has no Inbox, 400 when the deployment does not offer it.
80
+ * @summary File everything lying loose in the caller\'s Inbox
81
+ * @param {AutoFileInboxRequest} [autoFileInboxRequest]
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ fileInbox: async (autoFileInboxRequest?: AutoFileInboxRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ const localVarPath = `/api/v1/ai/auto-file/inbox`;
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+
94
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
95
+ const localVarHeaderParameter = {} as any;
96
+ const localVarQueryParameter = {} as any;
97
+
98
+ // authentication keycloak_auth required
99
+ // http bearer authentication required
100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
101
+
102
+ localVarHeaderParameter['Content-Type'] = 'application/json';
103
+ localVarHeaderParameter['Accept'] = 'application/json';
104
+
105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
107
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
108
+ localVarRequestOptions.data = serializeDataIfNeeded(autoFileInboxRequest, localVarRequestOptions, configuration)
109
+
110
+ return {
111
+ url: toPathString(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ },
76
115
  /**
77
116
  *
78
117
  * @summary Progress and outcome of a filing job
@@ -286,6 +325,19 @@ export const SmartFilingApiFp = function(configuration?: Configuration) {
286
325
  const localVarOperationServerBasePath = operationServerMap['SmartFilingApi.file']?.[localVarOperationServerIndex]?.url;
287
326
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
288
327
  },
328
+ /**
329
+ * Schedules one filing job for every active file directly in the caller\'s Inbox folder (the per-user Inbox of the smart-filing preferences) and returns the job at once, like the on-demand endpoint. 404 when the caller has no Inbox, 400 when the deployment does not offer it.
330
+ * @summary File everything lying loose in the caller\'s Inbox
331
+ * @param {AutoFileInboxRequest} [autoFileInboxRequest]
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ async fileInbox(autoFileInboxRequest?: AutoFileInboxRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoFileJobView>> {
336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fileInbox(autoFileInboxRequest, options);
337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
338
+ const localVarOperationServerBasePath = operationServerMap['SmartFilingApi.fileInbox']?.[localVarOperationServerIndex]?.url;
339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
340
+ },
289
341
  /**
290
342
  *
291
343
  * @summary Progress and outcome of a filing job
@@ -370,6 +422,16 @@ export const SmartFilingApiFactory = function (configuration?: Configuration, ba
370
422
  file(autoFileRequest: AutoFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoFileJobView> {
371
423
  return localVarFp.file(autoFileRequest, options).then((request) => request(axios, basePath));
372
424
  },
425
+ /**
426
+ * Schedules one filing job for every active file directly in the caller\'s Inbox folder (the per-user Inbox of the smart-filing preferences) and returns the job at once, like the on-demand endpoint. 404 when the caller has no Inbox, 400 when the deployment does not offer it.
427
+ * @summary File everything lying loose in the caller\'s Inbox
428
+ * @param {AutoFileInboxRequest} [autoFileInboxRequest]
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ fileInbox(autoFileInboxRequest?: AutoFileInboxRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoFileJobView> {
433
+ return localVarFp.fileInbox(autoFileInboxRequest, options).then((request) => request(axios, basePath));
434
+ },
373
435
  /**
374
436
  *
375
437
  * @summary Progress and outcome of a filing job
@@ -438,6 +500,17 @@ export class SmartFilingApi extends BaseAPI {
438
500
  return SmartFilingApiFp(this.configuration).file(autoFileRequest, options).then((request) => request(this.axios, this.basePath));
439
501
  }
440
502
 
503
+ /**
504
+ * Schedules one filing job for every active file directly in the caller\'s Inbox folder (the per-user Inbox of the smart-filing preferences) and returns the job at once, like the on-demand endpoint. 404 when the caller has no Inbox, 400 when the deployment does not offer it.
505
+ * @summary File everything lying loose in the caller\'s Inbox
506
+ * @param {AutoFileInboxRequest} [autoFileInboxRequest]
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ public fileInbox(autoFileInboxRequest?: AutoFileInboxRequest, options?: RawAxiosRequestConfig) {
511
+ return SmartFilingApiFp(this.configuration).fileInbox(autoFileInboxRequest, options).then((request) => request(this.axios, this.basePath));
512
+ }
513
+
441
514
  /**
442
515
  *
443
516
  * @summary Progress and outcome of a filing job
@@ -16,6 +16,7 @@ import type { DocumentInsightView } from '../models';
16
16
  import type { InsightBackfillRequest } from '../models';
17
17
  import type { InsightBackfillStatus } from '../models';
18
18
  import type { InsightCategoryUpdate } from '../models';
19
+ import type { InsightFacets } from '../models';
19
20
  /**
20
21
  * DocumentInsightsApi - axios parameter creator
21
22
  */
@@ -36,6 +37,13 @@ export declare const DocumentInsightsApiAxiosParamCreator: (configuration?: Conf
36
37
  * @throws {RequiredError}
37
38
  */
38
39
  backfillStatus: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
42
+ * @summary The category and language facets of the library
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ facets: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
47
  /**
40
48
  * 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.
41
49
  * @summary Get the insights of a document
@@ -45,7 +53,7 @@ export declare const DocumentInsightsApiAxiosParamCreator: (configuration?: Conf
45
53
  */
46
54
  getInsights: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
55
  /**
48
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
56
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
49
57
  * @summary Correct the kind of a document
50
58
  * @param {string} documentId
51
59
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -74,6 +82,13 @@ export declare const DocumentInsightsApiFp: (configuration?: Configuration) => {
74
82
  * @throws {RequiredError}
75
83
  */
76
84
  backfillStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InsightBackfillStatus>>;
85
+ /**
86
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
87
+ * @summary The category and language facets of the library
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ facets(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InsightFacets>>;
77
92
  /**
78
93
  * 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.
79
94
  * @summary Get the insights of a document
@@ -83,7 +98,7 @@ export declare const DocumentInsightsApiFp: (configuration?: Configuration) => {
83
98
  */
84
99
  getInsights(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentInsightView>>;
85
100
  /**
86
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
101
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
87
102
  * @summary Correct the kind of a document
88
103
  * @param {string} documentId
89
104
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -112,6 +127,13 @@ export declare const DocumentInsightsApiFactory: (configuration?: Configuration,
112
127
  * @throws {RequiredError}
113
128
  */
114
129
  backfillStatus(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<InsightBackfillStatus>;
130
+ /**
131
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
132
+ * @summary The category and language facets of the library
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ facets(options?: RawAxiosRequestConfig): AxiosPromise<InsightFacets>;
115
137
  /**
116
138
  * 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.
117
139
  * @summary Get the insights of a document
@@ -121,7 +143,7 @@ export declare const DocumentInsightsApiFactory: (configuration?: Configuration,
121
143
  */
122
144
  getInsights(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<DocumentInsightView>;
123
145
  /**
124
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
146
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
125
147
  * @summary Correct the kind of a document
126
148
  * @param {string} documentId
127
149
  * @param {InsightCategoryUpdate} insightCategoryUpdate
@@ -150,6 +172,13 @@ export declare class DocumentInsightsApi extends BaseAPI {
150
172
  * @throws {RequiredError}
151
173
  */
152
174
  backfillStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InsightBackfillStatus, any, {}>>;
175
+ /**
176
+ * How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
177
+ * @summary The category and language facets of the library
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ facets(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InsightFacets, any, {}>>;
153
182
  /**
154
183
  * 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.
155
184
  * @summary Get the insights of a document
@@ -159,7 +188,7 @@ export declare class DocumentInsightsApi extends BaseAPI {
159
188
  */
160
189
  getInsights(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentInsightView, any, {}>>;
161
190
  /**
162
- * Sets the tier-2 category to one of the deployment\'s categories (openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
191
+ * Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
163
192
  * @summary Correct the kind of a document
164
193
  * @param {string} documentId
165
194
  * @param {InsightCategoryUpdate} insightCategoryUpdate