@nestbox-ai/doc-processing-api 0.0.1 → 1.0.62

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 (73) hide show
  1. package/.openapi-generator/FILES +53 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +120 -44
  5. package/api.ts +2970 -0
  6. package/base.ts +62 -0
  7. package/common.ts +126 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +1771 -0
  10. package/dist/api.js +2280 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +34 -0
  14. package/dist/common.js +138 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +1771 -0
  18. package/dist/esm/api.js +2241 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +34 -0
  22. package/dist/esm/common.js +125 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/ArtifactsApi.md +61 -0
  30. package/docs/BatchQueryDto.md +34 -0
  31. package/docs/CreateWebhookInputDto.md +20 -0
  32. package/docs/DocumentCreateResponseDto.md +22 -0
  33. package/docs/DocumentDto.md +38 -0
  34. package/docs/DocumentSourcesResponseDto.md +20 -0
  35. package/docs/DocumentsApi.md +186 -0
  36. package/docs/ErrorDto.md +26 -0
  37. package/docs/EvalCreateResponseDto.md +22 -0
  38. package/docs/EvalDto.md +36 -0
  39. package/docs/EvalsApi.md +243 -0
  40. package/docs/GpuDeviceDto.md +28 -0
  41. package/docs/GpuHealthCheckDto.md +26 -0
  42. package/docs/HealthApi.md +53 -0
  43. package/docs/HealthCheckItemDto.md +26 -0
  44. package/docs/HealthChecksDto.md +24 -0
  45. package/docs/HealthResponseDto.md +24 -0
  46. package/docs/JobDto.md +48 -0
  47. package/docs/JobLinksDto.md +22 -0
  48. package/docs/JobStatusDto.md +32 -0
  49. package/docs/JobsApi.md +170 -0
  50. package/docs/PaginatedDocumentsDto.md +22 -0
  51. package/docs/PaginatedEvalsDto.md +22 -0
  52. package/docs/PaginatedJobsDto.md +22 -0
  53. package/docs/PaginatedProfilesDto.md +22 -0
  54. package/docs/PaginatedQueriesDto.md +22 -0
  55. package/docs/PaginatedWebhooksDto.md +22 -0
  56. package/docs/PaginationDto.md +24 -0
  57. package/docs/ProfileDto.md +32 -0
  58. package/docs/ProfilesApi.md +220 -0
  59. package/docs/QueriesApi.md +232 -0
  60. package/docs/QueryCreateResponseDto.md +22 -0
  61. package/docs/SourceItemDto.md +32 -0
  62. package/docs/SourcesApi.md +67 -0
  63. package/docs/UpdateWebhookBodyInputDto.md +20 -0
  64. package/docs/ValidationErrorDto.md +26 -0
  65. package/docs/ValidationIssueDto.md +24 -0
  66. package/docs/ValidationResultDto.md +24 -0
  67. package/docs/WebhookDto.md +26 -0
  68. package/docs/WebhooksApi.md +280 -0
  69. package/git_push.sh +57 -0
  70. package/index.ts +18 -0
  71. package/package.json +29 -6
  72. package/tsconfig.esm.json +7 -0
  73. package/tsconfig.json +18 -0
@@ -0,0 +1,186 @@
1
+ # DocumentsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**documentsControllerCreateDocument**](#documentscontrollercreatedocument) | **POST** /documents | Create document processing job|
8
+ |[**documentsControllerGetDocument**](#documentscontrollergetdocument) | **GET** /documents/{documentId} | Read document|
9
+ |[**documentsControllerListDocuments**](#documentscontrollerlistdocuments) | **GET** /documents | List documents|
10
+
11
+ # **documentsControllerCreateDocument**
12
+ > DocumentCreateResponseDto documentsControllerCreateDocument()
13
+
14
+ Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ DocumentsApi,
21
+ Configuration
22
+ } from '@nestbox-ai/doc-processing-api';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new DocumentsApi(configuration);
26
+
27
+ let profileId: string; //Profile/config ID to use for processing (maps to CLI --config). (default to undefined)
28
+ let file: File; //Document file to process (pdf/md/html/docx/etc). (default to undefined)
29
+ let stages: string; //Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server. (optional) (default to undefined)
30
+ let priority: string; // (optional) (default to 'normal')
31
+ let visualize: boolean; //Whether to generate graph visualization artifacts. (optional) (default to false)
32
+
33
+ const { status, data } = await apiInstance.documentsControllerCreateDocument(
34
+ profileId,
35
+ file,
36
+ stages,
37
+ priority,
38
+ visualize
39
+ );
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ |Name | Type | Description | Notes|
45
+ |------------- | ------------- | ------------- | -------------|
46
+ | **profileId** | [**string**] | Profile/config ID to use for processing (maps to CLI --config). | defaults to undefined|
47
+ | **file** | [**File**] | Document file to process (pdf/md/html/docx/etc). | defaults to undefined|
48
+ | **stages** | [**string**] | Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server. | (optional) defaults to undefined|
49
+ | **priority** | [**string**]**Array<&#39;low&#39; &#124; &#39;normal&#39; &#124; &#39;high&#39;>** | | (optional) defaults to 'normal'|
50
+ | **visualize** | [**boolean**] | Whether to generate graph visualization artifacts. | (optional) defaults to false|
51
+
52
+
53
+ ### Return type
54
+
55
+ **DocumentCreateResponseDto**
56
+
57
+ ### Authorization
58
+
59
+ No authorization required
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: multipart/form-data
64
+ - **Accept**: application/json
65
+
66
+
67
+ ### HTTP response details
68
+ | Status code | Description | Response headers |
69
+ |-------------|-------------|------------------|
70
+ |**201** | Document accepted/created. Processing typically runs as a background job. | - |
71
+ |**400** | Bad request | - |
72
+ |**401** | Unauthorized | - |
73
+ |**422** | Validation error | - |
74
+
75
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
76
+
77
+ # **documentsControllerGetDocument**
78
+ > DocumentDto documentsControllerGetDocument()
79
+
80
+
81
+ ### Example
82
+
83
+ ```typescript
84
+ import {
85
+ DocumentsApi,
86
+ Configuration
87
+ } from '@nestbox-ai/doc-processing-api';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new DocumentsApi(configuration);
91
+
92
+ let documentId: string; //Document ID. (default to undefined)
93
+
94
+ const { status, data } = await apiInstance.documentsControllerGetDocument(
95
+ documentId
96
+ );
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ |Name | Type | Description | Notes|
102
+ |------------- | ------------- | ------------- | -------------|
103
+ | **documentId** | [**string**] | Document ID. | defaults to undefined|
104
+
105
+
106
+ ### Return type
107
+
108
+ **DocumentDto**
109
+
110
+ ### Authorization
111
+
112
+ No authorization required
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: application/json
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ |**200** | Document details | - |
124
+ |**401** | Unauthorized | - |
125
+ |**404** | Not found | - |
126
+
127
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
128
+
129
+ # **documentsControllerListDocuments**
130
+ > PaginatedDocumentsDto documentsControllerListDocuments()
131
+
132
+ List processed documents. Supports filtering by profileId.
133
+
134
+ ### Example
135
+
136
+ ```typescript
137
+ import {
138
+ DocumentsApi,
139
+ Configuration
140
+ } from '@nestbox-ai/doc-processing-api';
141
+
142
+ const configuration = new Configuration();
143
+ const apiInstance = new DocumentsApi(configuration);
144
+
145
+ let page: number; //1-based page number. (optional) (default to 1)
146
+ let limit: number; //Page size. (optional) (default to 10)
147
+ let profileId: string; //Filter documents by profile/config ID. (optional) (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.documentsControllerListDocuments(
150
+ page,
151
+ limit,
152
+ profileId
153
+ );
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ |Name | Type | Description | Notes|
159
+ |------------- | ------------- | ------------- | -------------|
160
+ | **page** | [**number**] | 1-based page number. | (optional) defaults to 1|
161
+ | **limit** | [**number**] | Page size. | (optional) defaults to 10|
162
+ | **profileId** | [**string**] | Filter documents by profile/config ID. | (optional) defaults to undefined|
163
+
164
+
165
+ ### Return type
166
+
167
+ **PaginatedDocumentsDto**
168
+
169
+ ### Authorization
170
+
171
+ No authorization required
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: Not defined
176
+ - **Accept**: application/json
177
+
178
+
179
+ ### HTTP response details
180
+ | Status code | Description | Response headers |
181
+ |-------------|-------------|------------------|
182
+ |**200** | Paginated list of documents | - |
183
+ |**401** | Unauthorized | - |
184
+
185
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
186
+
@@ -0,0 +1,26 @@
1
+ # ErrorDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **error** | **string** | Error type | [default to undefined]
9
+ **message** | **string** | Error message | [default to undefined]
10
+ **requestId** | **string** | Request ID for tracking | [optional] [default to undefined]
11
+ **details** | **{ [key: string]: any; }** | Additional error details | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ErrorDto } from '@nestbox-ai/doc-processing-api';
17
+
18
+ const instance: ErrorDto = {
19
+ error,
20
+ message,
21
+ requestId,
22
+ details,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # EvalCreateResponseDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **eval** | [**EvalDto**](EvalDto.md) | Created evaluation | [default to undefined]
9
+ **job** | [**JobDto**](JobDto.md) | Processing job | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EvalCreateResponseDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: EvalCreateResponseDto = {
17
+ eval,
18
+ job,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,36 @@
1
+ # EvalDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Evaluation ID | [default to undefined]
9
+ **documentId** | **string** | Associated document ID | [default to undefined]
10
+ **status** | **string** | Evaluation status | [default to undefined]
11
+ **createdAt** | **string** | Evaluation creation timestamp | [default to undefined]
12
+ **updatedAt** | **string** | Evaluation last update timestamp | [optional] [default to undefined]
13
+ **latestJobId** | **string** | Latest job ID associated with this evaluation | [optional] [default to undefined]
14
+ **yamlFileName** | **string** | YAML file name | [optional] [default to undefined]
15
+ **summary** | **{ [key: string]: any; }** | Optional aggregated metrics (e.g., similarity scores) | [optional] [default to undefined]
16
+ **report** | **{ [key: string]: any; }** | Optional detailed report (if stored) | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { EvalDto } from '@nestbox-ai/doc-processing-api';
22
+
23
+ const instance: EvalDto = {
24
+ id,
25
+ documentId,
26
+ status,
27
+ createdAt,
28
+ updatedAt,
29
+ latestJobId,
30
+ yamlFileName,
31
+ summary,
32
+ report,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,243 @@
1
+ # EvalsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**evalsControllerCreateEval**](#evalscontrollercreateeval) | **POST** /documents/{documentId}/evals | Create an eval from YAML|
8
+ |[**evalsControllerGetEval**](#evalscontrollergeteval) | **GET** /documents/{documentId}/evals/{evalId} | Read eval|
9
+ |[**evalsControllerListEvals**](#evalscontrollerlistevals) | **GET** /documents/{documentId}/evals | List evals for a document|
10
+ |[**evalsControllerValidateEvalYaml**](#evalscontrollervalidateevalyaml) | **POST** /documents/{documentId}/evals/validate | Validate eval YAML|
11
+
12
+ # **evalsControllerCreateEval**
13
+ > EvalCreateResponseDto evalsControllerCreateEval()
14
+
15
+ Uploads an eval YAML (test cases) to run against a document.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ EvalsApi,
22
+ Configuration
23
+ } from '@nestbox-ai/doc-processing-api';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new EvalsApi(configuration);
27
+
28
+ let documentId: string; //Document ID. (default to undefined)
29
+ let yaml: File; //Eval YAML file (test cases). (default to undefined)
30
+ let watch: boolean; //If true, server may keep the request open longer (optional); most clients should poll job status instead. (optional) (default to false)
31
+
32
+ const { status, data } = await apiInstance.evalsControllerCreateEval(
33
+ documentId,
34
+ yaml,
35
+ watch
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **documentId** | [**string**] | Document ID. | defaults to undefined|
44
+ | **yaml** | [**File**] | Eval YAML file (test cases). | defaults to undefined|
45
+ | **watch** | [**boolean**] | If true, server may keep the request open longer (optional); most clients should poll job status instead. | (optional) defaults to false|
46
+
47
+
48
+ ### Return type
49
+
50
+ **EvalCreateResponseDto**
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: multipart/form-data
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**201** | Eval created (often schedules a job) | - |
66
+ |**400** | Bad request | - |
67
+ |**401** | Unauthorized | - |
68
+ |**404** | Not found | - |
69
+ |**422** | Validation error | - |
70
+
71
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
72
+
73
+ # **evalsControllerGetEval**
74
+ > EvalDto evalsControllerGetEval()
75
+
76
+
77
+ ### Example
78
+
79
+ ```typescript
80
+ import {
81
+ EvalsApi,
82
+ Configuration
83
+ } from '@nestbox-ai/doc-processing-api';
84
+
85
+ const configuration = new Configuration();
86
+ const apiInstance = new EvalsApi(configuration);
87
+
88
+ let documentId: string; //Document ID. (default to undefined)
89
+ let evalId: string; //Evaluation ID. (default to undefined)
90
+
91
+ const { status, data } = await apiInstance.evalsControllerGetEval(
92
+ documentId,
93
+ evalId
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **documentId** | [**string**] | Document ID. | defaults to undefined|
102
+ | **evalId** | [**string**] | Evaluation ID. | defaults to undefined|
103
+
104
+
105
+ ### Return type
106
+
107
+ **EvalDto**
108
+
109
+ ### Authorization
110
+
111
+ No authorization required
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: application/json
117
+
118
+
119
+ ### HTTP response details
120
+ | Status code | Description | Response headers |
121
+ |-------------|-------------|------------------|
122
+ |**200** | Eval details | - |
123
+ |**401** | Unauthorized | - |
124
+ |**404** | Not found | - |
125
+
126
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
127
+
128
+ # **evalsControllerListEvals**
129
+ > PaginatedEvalsDto evalsControllerListEvals()
130
+
131
+
132
+ ### Example
133
+
134
+ ```typescript
135
+ import {
136
+ EvalsApi,
137
+ Configuration
138
+ } from '@nestbox-ai/doc-processing-api';
139
+
140
+ const configuration = new Configuration();
141
+ const apiInstance = new EvalsApi(configuration);
142
+
143
+ let documentId: string; //Document ID. (default to undefined)
144
+ let limit: any; //Page size. (optional) (default to undefined)
145
+ let page: any; //1-based page number. (optional) (default to undefined)
146
+
147
+ const { status, data } = await apiInstance.evalsControllerListEvals(
148
+ documentId,
149
+ limit,
150
+ page
151
+ );
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **documentId** | [**string**] | Document ID. | defaults to undefined|
159
+ | **limit** | **any** | Page size. | (optional) defaults to undefined|
160
+ | **page** | **any** | 1-based page number. | (optional) defaults to undefined|
161
+
162
+
163
+ ### Return type
164
+
165
+ **PaginatedEvalsDto**
166
+
167
+ ### Authorization
168
+
169
+ No authorization required
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: application/json
175
+
176
+
177
+ ### HTTP response details
178
+ | Status code | Description | Response headers |
179
+ |-------------|-------------|------------------|
180
+ |**200** | Paginated list of evaluations | - |
181
+ |**401** | Unauthorized | - |
182
+ |**404** | Not found | - |
183
+
184
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
185
+
186
+ # **evalsControllerValidateEvalYaml**
187
+ > ValidationResultDto evalsControllerValidateEvalYaml()
188
+
189
+ Validates an uploaded eval YAML without creating an eval.
190
+
191
+ ### Example
192
+
193
+ ```typescript
194
+ import {
195
+ EvalsApi,
196
+ Configuration
197
+ } from '@nestbox-ai/doc-processing-api';
198
+
199
+ const configuration = new Configuration();
200
+ const apiInstance = new EvalsApi(configuration);
201
+
202
+ let documentId: string; //Document ID. (default to undefined)
203
+ let yaml: File; //YAML file to validate. (default to undefined)
204
+
205
+ const { status, data } = await apiInstance.evalsControllerValidateEvalYaml(
206
+ documentId,
207
+ yaml
208
+ );
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ |Name | Type | Description | Notes|
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **documentId** | [**string**] | Document ID. | defaults to undefined|
216
+ | **yaml** | [**File**] | YAML file to validate. | defaults to undefined|
217
+
218
+
219
+ ### Return type
220
+
221
+ **ValidationResultDto**
222
+
223
+ ### Authorization
224
+
225
+ No authorization required
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: multipart/form-data
230
+ - **Accept**: application/json
231
+
232
+
233
+ ### HTTP response details
234
+ | Status code | Description | Response headers |
235
+ |-------------|-------------|------------------|
236
+ |**200** | Validation result | - |
237
+ |**400** | Bad request | - |
238
+ |**401** | Unauthorized | - |
239
+ |**404** | Not found | - |
240
+ |**422** | Validation error | - |
241
+
242
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
243
+
@@ -0,0 +1,28 @@
1
+ # GpuDeviceDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **index** | **number** | GPU device index | [default to undefined]
9
+ **name** | **string** | GPU device name | [default to undefined]
10
+ **memoryTotalMB** | **number** | Total GPU memory in MB | [default to undefined]
11
+ **memoryUsedMB** | **number** | Used GPU memory in MB | [optional] [default to undefined]
12
+ **utilizationPct** | **number** | GPU utilization percentage | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { GpuDeviceDto } from '@nestbox-ai/doc-processing-api';
18
+
19
+ const instance: GpuDeviceDto = {
20
+ index,
21
+ name,
22
+ memoryTotalMB,
23
+ memoryUsedMB,
24
+ utilizationPct,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # GpuHealthCheckDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | GPU health status | [default to undefined]
9
+ **deviceCount** | **number** | Number of GPU devices | [optional] [default to undefined]
10
+ **devices** | [**Array&lt;GpuDeviceDto&gt;**](GpuDeviceDto.md) | GPU devices information | [optional] [default to undefined]
11
+ **message** | **string** | GPU status message | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { GpuHealthCheckDto } from '@nestbox-ai/doc-processing-api';
17
+
18
+ const instance: GpuHealthCheckDto = {
19
+ status,
20
+ deviceCount,
21
+ devices,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,53 @@
1
+ # HealthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**healthControllerGetHealth**](#healthcontrollergethealth) | **GET** /health | Get system health|
8
+
9
+ # **healthControllerGetHealth**
10
+ > HealthResponseDto healthControllerGetHealth()
11
+
12
+ Returns service health including Redis, database, and GPU status.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ HealthApi,
19
+ Configuration
20
+ } from '@nestbox-ai/doc-processing-api';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new HealthApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.healthControllerGetHealth();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **HealthResponseDto**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Health status | - |
50
+ |**401** | Unauthorized | - |
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
53
+
@@ -0,0 +1,26 @@
1
+ # HealthCheckItemDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | Health check status | [default to undefined]
9
+ **latencyMs** | **number** | Latency in milliseconds | [optional] [default to undefined]
10
+ **message** | **string** | Status message | [optional] [default to undefined]
11
+ **details** | **{ [key: string]: any; }** | Additional details | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { HealthCheckItemDto } from '@nestbox-ai/doc-processing-api';
17
+
18
+ const instance: HealthCheckItemDto = {
19
+ status,
20
+ latencyMs,
21
+ message,
22
+ details,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # HealthChecksDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **redis** | [**HealthCheckItemDto**](HealthCheckItemDto.md) | Redis health check | [default to undefined]
9
+ **db** | [**HealthCheckItemDto**](HealthCheckItemDto.md) | Database health check | [default to undefined]
10
+ **gpu** | [**GpuHealthCheckDto**](GpuHealthCheckDto.md) | GPU health check | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HealthChecksDto } from '@nestbox-ai/doc-processing-api';
16
+
17
+ const instance: HealthChecksDto = {
18
+ redis,
19
+ db,
20
+ gpu,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # HealthResponseDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | Overall system health status | [default to undefined]
9
+ **timestamp** | **string** | Health check timestamp | [default to undefined]
10
+ **checks** | [**HealthChecksDto**](HealthChecksDto.md) | Health check results | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HealthResponseDto } from '@nestbox-ai/doc-processing-api';
16
+
17
+ const instance: HealthResponseDto = {
18
+ status,
19
+ timestamp,
20
+ checks,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)