@openfilz-sdk/typescript 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +30 -3
  4. package/api/aichat-api.ts +228 -0
  5. package/api/document-controller-api.ts +30 -14
  6. package/api/document-insights-api.ts +275 -0
  7. package/api/esign-api.ts +9 -9
  8. package/api/settings-api.ts +142 -0
  9. package/api/smart-filing-api.ts +421 -0
  10. package/api.ts +2 -0
  11. package/dist/api/aichat-api.d.ts +103 -0
  12. package/dist/api/aichat-api.js +213 -0
  13. package/dist/api/document-controller-api.d.ts +16 -8
  14. package/dist/api/document-controller-api.js +28 -14
  15. package/dist/api/document-insights-api.d.ts +133 -0
  16. package/dist/api/document-insights-api.js +269 -0
  17. package/dist/api/esign-api.d.ts +4 -4
  18. package/dist/api/esign-api.js +9 -9
  19. package/dist/api/settings-api.d.ts +62 -0
  20. package/dist/api/settings-api.js +132 -0
  21. package/dist/api/smart-filing-api.d.ts +197 -0
  22. package/dist/api/smart-filing-api.js +409 -0
  23. package/dist/api.d.ts +2 -0
  24. package/dist/api.js +2 -0
  25. package/dist/esm/api/aichat-api.d.ts +103 -0
  26. package/dist/esm/api/aichat-api.js +213 -0
  27. package/dist/esm/api/document-controller-api.d.ts +16 -8
  28. package/dist/esm/api/document-controller-api.js +28 -14
  29. package/dist/esm/api/document-insights-api.d.ts +133 -0
  30. package/dist/esm/api/document-insights-api.js +262 -0
  31. package/dist/esm/api/esign-api.d.ts +4 -4
  32. package/dist/esm/api/esign-api.js +9 -9
  33. package/dist/esm/api/settings-api.d.ts +62 -0
  34. package/dist/esm/api/settings-api.js +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 +14 -0
  52. package/dist/esm/models/index.js +14 -0
  53. package/dist/esm/models/insight-backfill-request.d.ts +15 -0
  54. package/dist/esm/models/insight-backfill-request.js +14 -0
  55. package/dist/esm/models/insight-backfill-status.d.ts +23 -0
  56. package/dist/esm/models/insight-backfill-status.js +14 -0
  57. package/dist/esm/models/item-result.d.ts +16 -0
  58. package/dist/esm/models/item-result.js +14 -0
  59. package/dist/esm/models/item.d.ts +21 -0
  60. package/dist/esm/models/item.js +14 -0
  61. package/dist/esm/models/reorganization-apply-request.d.ts +14 -0
  62. package/dist/esm/models/reorganization-apply-request.js +14 -0
  63. package/dist/esm/models/reorganization-apply-result.d.ts +22 -0
  64. package/dist/esm/models/reorganization-apply-result.js +14 -0
  65. package/dist/esm/models/reorganization-plan-view.d.ts +28 -0
  66. package/dist/esm/models/reorganization-plan-view.js +14 -0
  67. package/dist/esm/models/save-ai-preferences-request.d.ts +15 -0
  68. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  69. package/dist/esm/models/settings.d.ts +2 -0
  70. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  71. package/dist/esm/models/upload-response.d.ts +2 -0
  72. package/dist/models/ai-preferences-view.d.ts +16 -0
  73. package/dist/models/ai-preferences-view.js +15 -0
  74. package/dist/models/auto-file-job-view.d.ts +25 -0
  75. package/dist/models/auto-file-job-view.js +15 -0
  76. package/dist/models/auto-file-request.d.ts +15 -0
  77. package/dist/models/auto-file-request.js +15 -0
  78. package/dist/models/auto-file-ticket.d.ts +15 -0
  79. package/dist/models/auto-file-ticket.js +15 -0
  80. package/dist/models/document-insight-view.d.ts +33 -0
  81. package/dist/models/document-insight-view.js +15 -0
  82. package/dist/models/filing-outcome.d.ts +25 -0
  83. package/dist/models/filing-outcome.js +15 -0
  84. package/dist/models/index.d.ts +14 -0
  85. package/dist/models/index.js +14 -0
  86. package/dist/models/insight-backfill-request.d.ts +15 -0
  87. package/dist/models/insight-backfill-request.js +15 -0
  88. package/dist/models/insight-backfill-status.d.ts +23 -0
  89. package/dist/models/insight-backfill-status.js +15 -0
  90. package/dist/models/item-result.d.ts +16 -0
  91. package/dist/models/item-result.js +15 -0
  92. package/dist/models/item.d.ts +21 -0
  93. package/dist/models/item.js +15 -0
  94. package/dist/models/reorganization-apply-request.d.ts +14 -0
  95. package/dist/models/reorganization-apply-request.js +15 -0
  96. package/dist/models/reorganization-apply-result.d.ts +22 -0
  97. package/dist/models/reorganization-apply-result.js +15 -0
  98. package/dist/models/reorganization-plan-view.d.ts +28 -0
  99. package/dist/models/reorganization-plan-view.js +15 -0
  100. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  101. package/dist/models/save-ai-preferences-request.js +15 -0
  102. package/dist/models/settings.d.ts +2 -0
  103. package/dist/models/tus-finalize-request.d.ts +1 -0
  104. package/dist/models/upload-response.d.ts +2 -0
  105. package/docs/AIChatApi.md +159 -0
  106. package/docs/AiPreferencesView.md +24 -0
  107. package/docs/AutoFileJobView.md +40 -0
  108. package/docs/AutoFileRequest.md +22 -0
  109. package/docs/AutoFileTicket.md +22 -0
  110. package/docs/DocumentControllerApi.md +6 -0
  111. package/docs/DocumentInsightView.md +54 -0
  112. package/docs/DocumentInsightsApi.md +163 -0
  113. package/docs/ESignApi.md +4 -4
  114. package/docs/FilingOutcome.md +42 -0
  115. package/docs/InsightBackfillRequest.md +22 -0
  116. package/docs/InsightBackfillStatus.md +38 -0
  117. package/docs/Item.md +34 -0
  118. package/docs/ItemResult.md +24 -0
  119. package/docs/ReorganizationApplyRequest.md +20 -0
  120. package/docs/ReorganizationApplyResult.md +34 -0
  121. package/docs/ReorganizationPlanView.md +44 -0
  122. package/docs/SaveAiPreferencesRequest.md +22 -0
  123. package/docs/Settings.md +4 -0
  124. package/docs/SettingsApi.md +97 -0
  125. package/docs/SmartFilingApi.md +264 -0
  126. package/docs/TusFinalizeRequest.md +2 -0
  127. package/docs/UploadResponse.md +2 -0
  128. package/models/ai-preferences-view.ts +22 -0
  129. package/models/auto-file-job-view.ts +33 -0
  130. package/models/auto-file-request.ts +21 -0
  131. package/models/auto-file-ticket.ts +21 -0
  132. package/models/document-insight-view.ts +37 -0
  133. package/models/filing-outcome.ts +31 -0
  134. package/models/index.ts +14 -0
  135. package/models/insight-backfill-request.ts +21 -0
  136. package/models/insight-backfill-status.ts +29 -0
  137. package/models/item-result.ts +22 -0
  138. package/models/item.ts +27 -0
  139. package/models/reorganization-apply-request.ts +20 -0
  140. package/models/reorganization-apply-result.ts +30 -0
  141. package/models/reorganization-plan-view.ts +38 -0
  142. package/models/save-ai-preferences-request.ts +21 -0
  143. package/models/settings.ts +2 -0
  144. package/models/tus-finalize-request.ts +1 -0
  145. package/models/upload-response.ts +4 -0
  146. package/package.json +1 -1
@@ -0,0 +1,133 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { DocumentInsightView } from '../models';
16
+ import type { InsightBackfillRequest } from '../models';
17
+ import type { InsightBackfillStatus } from '../models';
18
+ /**
19
+ * DocumentInsightsApi - axios parameter creator
20
+ */
21
+ export declare const DocumentInsightsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * 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}.
24
+ * @summary Enrich existing documents
25
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ backfill: (insightBackfillRequest?: InsightBackfillRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ *
32
+ * @summary Progress of a backfill job
33
+ * @param {string} jobId
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ backfillStatus: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * 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.
40
+ * @summary Get the insights of a document
41
+ * @param {string} documentId
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getInsights: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
+ };
47
+ /**
48
+ * DocumentInsightsApi - functional programming interface
49
+ */
50
+ export declare const DocumentInsightsApiFp: (configuration?: Configuration) => {
51
+ /**
52
+ * 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}.
53
+ * @summary Enrich existing documents
54
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ backfill(insightBackfillRequest?: InsightBackfillRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InsightBackfillStatus>>;
59
+ /**
60
+ *
61
+ * @summary Progress of a backfill job
62
+ * @param {string} jobId
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ backfillStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InsightBackfillStatus>>;
67
+ /**
68
+ * 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.
69
+ * @summary Get the insights of a document
70
+ * @param {string} documentId
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ getInsights(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentInsightView>>;
75
+ };
76
+ /**
77
+ * DocumentInsightsApi - factory interface
78
+ */
79
+ export declare const DocumentInsightsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
+ /**
81
+ * 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}.
82
+ * @summary Enrich existing documents
83
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ backfill(insightBackfillRequest?: InsightBackfillRequest, options?: RawAxiosRequestConfig): AxiosPromise<InsightBackfillStatus>;
88
+ /**
89
+ *
90
+ * @summary Progress of a backfill job
91
+ * @param {string} jobId
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ backfillStatus(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<InsightBackfillStatus>;
96
+ /**
97
+ * 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.
98
+ * @summary Get the insights of a document
99
+ * @param {string} documentId
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ getInsights(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<DocumentInsightView>;
104
+ };
105
+ /**
106
+ * DocumentInsightsApi - object-oriented interface
107
+ */
108
+ export declare class DocumentInsightsApi extends BaseAPI {
109
+ /**
110
+ * 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}.
111
+ * @summary Enrich existing documents
112
+ * @param {InsightBackfillRequest} [insightBackfillRequest]
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ backfill(insightBackfillRequest?: InsightBackfillRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InsightBackfillStatus, any, {}>>;
117
+ /**
118
+ *
119
+ * @summary Progress of a backfill job
120
+ * @param {string} jobId
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ backfillStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InsightBackfillStatus, any, {}>>;
125
+ /**
126
+ * 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.
127
+ * @summary Get the insights of a document
128
+ * @param {string} documentId
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ getInsights(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentInsightView, any, {}>>;
133
+ }
@@ -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
  }