@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
package/docs/JobDto.md ADDED
@@ -0,0 +1,48 @@
1
+ # JobDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Job ID | [default to undefined]
9
+ **type** | **string** | Job type | [default to undefined]
10
+ **state** | **string** | Job state | [default to undefined]
11
+ **createdAt** | **string** | Job creation timestamp | [default to undefined]
12
+ **updatedAt** | **string** | Job last update timestamp | [optional] [default to undefined]
13
+ **profileId** | **string** | Associated profile ID | [optional] [default to undefined]
14
+ **documentId** | **string** | Associated document ID | [optional] [default to undefined]
15
+ **evalId** | **string** | Associated evaluation ID | [optional] [default to undefined]
16
+ **queryId** | **string** | Associated query ID | [optional] [default to undefined]
17
+ **progress** | **number** | 0..1 progress fraction | [optional] [default to undefined]
18
+ **stage** | **string** | Current pipeline stage | [optional] [default to undefined]
19
+ **message** | **string** | Current job message | [optional] [default to undefined]
20
+ **error** | **string** | Error message if failed | [optional] [default to undefined]
21
+ **links** | [**JobLinksDto**](JobLinksDto.md) | Job-related links | [optional] [default to undefined]
22
+ **metadata** | **{ [key: string]: any; }** | Additional job metadata | [optional] [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { JobDto } from '@nestbox-ai/doc-processing-api';
28
+
29
+ const instance: JobDto = {
30
+ id,
31
+ type,
32
+ state,
33
+ createdAt,
34
+ updatedAt,
35
+ profileId,
36
+ documentId,
37
+ evalId,
38
+ queryId,
39
+ progress,
40
+ stage,
41
+ message,
42
+ error,
43
+ links,
44
+ metadata,
45
+ };
46
+ ```
47
+
48
+ [[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
+ # JobLinksDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | Job status URI | [optional] [default to undefined]
9
+ **resource** | **string** | Resource URI | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { JobLinksDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: JobLinksDto = {
17
+ status,
18
+ resource,
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,32 @@
1
+ # JobStatusDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Job ID | [default to undefined]
9
+ **state** | **string** | Job state | [default to undefined]
10
+ **updatedAt** | **string** | Job last update timestamp | [default to undefined]
11
+ **progress** | **number** | 0..1 progress fraction | [optional] [default to undefined]
12
+ **stage** | **string** | Current pipeline stage | [optional] [default to undefined]
13
+ **message** | **string** | Current job message | [optional] [default to undefined]
14
+ **error** | **string** | Error message if failed | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { JobStatusDto } from '@nestbox-ai/doc-processing-api';
20
+
21
+ const instance: JobStatusDto = {
22
+ id,
23
+ state,
24
+ updatedAt,
25
+ progress,
26
+ stage,
27
+ message,
28
+ error,
29
+ };
30
+ ```
31
+
32
+ [[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,170 @@
1
+ # JobsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**jobsControllerGetJob**](#jobscontrollergetjob) | **GET** /jobs/{jobId} | Read job|
8
+ |[**jobsControllerGetJobStatus**](#jobscontrollergetjobstatus) | **GET** /jobs/{jobId}/status | Get job status|
9
+ |[**jobsControllerListJobs**](#jobscontrollerlistjobs) | **GET** /jobs | List jobs|
10
+
11
+ # **jobsControllerGetJob**
12
+ > JobDto jobsControllerGetJob()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ JobsApi,
20
+ Configuration
21
+ } from '@nestbox-ai/doc-processing-api';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new JobsApi(configuration);
25
+
26
+ let jobId: string; //Job ID. (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.jobsControllerGetJob(
29
+ jobId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **jobId** | [**string**] | Job ID. | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **JobDto**
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Job details | - |
58
+ |**401** | Unauthorized | - |
59
+ |**404** | Not found | - |
60
+
61
+ [[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)
62
+
63
+ # **jobsControllerGetJobStatus**
64
+ > JobStatusDto jobsControllerGetJobStatus()
65
+
66
+ Returns a lightweight status payload suitable for polling.
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ JobsApi,
73
+ Configuration
74
+ } from '@nestbox-ai/doc-processing-api';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new JobsApi(configuration);
78
+
79
+ let jobId: string; //Job ID. (default to undefined)
80
+
81
+ const { status, data } = await apiInstance.jobsControllerGetJobStatus(
82
+ jobId
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **jobId** | [**string**] | Job ID. | defaults to undefined|
91
+
92
+
93
+ ### Return type
94
+
95
+ **JobStatusDto**
96
+
97
+ ### Authorization
98
+
99
+ No authorization required
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | Job status | - |
111
+ |**401** | Unauthorized | - |
112
+ |**404** | Not found | - |
113
+
114
+ [[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)
115
+
116
+ # **jobsControllerListJobs**
117
+ > PaginatedJobsDto jobsControllerListJobs()
118
+
119
+ Lists jobs for document processing, evaluations, and query jobs.
120
+
121
+ ### Example
122
+
123
+ ```typescript
124
+ import {
125
+ JobsApi,
126
+ Configuration
127
+ } from '@nestbox-ai/doc-processing-api';
128
+
129
+ const configuration = new Configuration();
130
+ const apiInstance = new JobsApi(configuration);
131
+
132
+ let page: number; //1-based page number. (optional) (default to 1)
133
+ let limit: number; //Page size. (optional) (default to 10)
134
+
135
+ const { status, data } = await apiInstance.jobsControllerListJobs(
136
+ page,
137
+ limit
138
+ );
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ |Name | Type | Description | Notes|
144
+ |------------- | ------------- | ------------- | -------------|
145
+ | **page** | [**number**] | 1-based page number. | (optional) defaults to 1|
146
+ | **limit** | [**number**] | Page size. | (optional) defaults to 10|
147
+
148
+
149
+ ### Return type
150
+
151
+ **PaginatedJobsDto**
152
+
153
+ ### Authorization
154
+
155
+ No authorization required
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: Not defined
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | Paginated list of jobs | - |
167
+ |**401** | Unauthorized | - |
168
+
169
+ [[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)
170
+
@@ -0,0 +1,22 @@
1
+ # PaginatedDocumentsDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<DocumentDto>**](DocumentDto.md) | Document data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedDocumentsDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedDocumentsDto = {
17
+ data,
18
+ pagination,
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,22 @@
1
+ # PaginatedEvalsDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<EvalDto>**](EvalDto.md) | Evaluation data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedEvalsDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedEvalsDto = {
17
+ data,
18
+ pagination,
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,22 @@
1
+ # PaginatedJobsDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<JobDto>**](JobDto.md) | Job data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedJobsDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedJobsDto = {
17
+ data,
18
+ pagination,
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,22 @@
1
+ # PaginatedProfilesDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<ProfileDto>**](ProfileDto.md) | Profile data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedProfilesDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedProfilesDto = {
17
+ data,
18
+ pagination,
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,22 @@
1
+ # PaginatedQueriesDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<BatchQueryDto>**](BatchQueryDto.md) | Batch query data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedQueriesDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedQueriesDto = {
17
+ data,
18
+ pagination,
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,22 @@
1
+ # PaginatedWebhooksDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<WebhookDto>**](WebhookDto.md) | Webhook data | [default to undefined]
9
+ **pagination** | [**PaginationDto**](PaginationDto.md) | Pagination information | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginatedWebhooksDto } from '@nestbox-ai/doc-processing-api';
15
+
16
+ const instance: PaginatedWebhooksDto = {
17
+ data,
18
+ pagination,
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,24 @@
1
+ # PaginationDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **page** | **number** | Current page number | [default to undefined]
9
+ **limit** | **number** | Page size limit | [default to undefined]
10
+ **total** | **number** | Total number of items | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PaginationDto } from '@nestbox-ai/doc-processing-api';
16
+
17
+ const instance: PaginationDto = {
18
+ page,
19
+ limit,
20
+ total,
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,32 @@
1
+ # ProfileDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Profile ID | [default to undefined]
9
+ **name** | **string** | Profile name | [default to undefined]
10
+ **description** | **string** | Profile description | [optional] [default to undefined]
11
+ **createdAt** | **string** | Profile creation timestamp | [default to undefined]
12
+ **updatedAt** | **string** | Profile last update timestamp | [optional] [default to undefined]
13
+ **yamlFileName** | **string** | YAML file name | [optional] [default to undefined]
14
+ **yamlSha256** | **string** | Optional checksum of the uploaded YAML file | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ProfileDto } from '@nestbox-ai/doc-processing-api';
20
+
21
+ const instance: ProfileDto = {
22
+ id,
23
+ name,
24
+ description,
25
+ createdAt,
26
+ updatedAt,
27
+ yamlFileName,
28
+ yamlSha256,
29
+ };
30
+ ```
31
+
32
+ [[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,220 @@
1
+ # ProfilesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**profilesControllerCreateProfile**](#profilescontrollercreateprofile) | **POST** /profiles | Create profile from YAML|
8
+ |[**profilesControllerGetProfile**](#profilescontrollergetprofile) | **GET** /profiles/{profileId} | Read profile|
9
+ |[**profilesControllerGetProfileSchema**](#profilescontrollergetprofileschema) | **GET** /profiles/schema | Get profile schema|
10
+ |[**profilesControllerListProfiles**](#profilescontrollerlistprofiles) | **GET** /profiles | List profiles|
11
+
12
+ # **profilesControllerCreateProfile**
13
+ > ProfileDto profilesControllerCreateProfile()
14
+
15
+ Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ProfilesApi,
22
+ Configuration
23
+ } from '@nestbox-ai/doc-processing-api';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new ProfilesApi(configuration);
27
+
28
+ let yaml: File; //YAML file containing the profile/config. (default to undefined)
29
+ let name: string; //Optional override for profile name (otherwise derived from YAML). (optional) (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.profilesControllerCreateProfile(
32
+ yaml,
33
+ name
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **yaml** | [**File**] | YAML file containing the profile/config. | defaults to undefined|
42
+ | **name** | [**string**] | Optional override for profile name (otherwise derived from YAML). | (optional) defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **ProfileDto**
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: multipart/form-data
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**201** | Profile created | - |
63
+ |**400** | Bad request | - |
64
+ |**401** | Unauthorized | - |
65
+ |**422** | Validation error | - |
66
+
67
+ [[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)
68
+
69
+ # **profilesControllerGetProfile**
70
+ > ProfileDto profilesControllerGetProfile()
71
+
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ ProfilesApi,
78
+ Configuration
79
+ } from '@nestbox-ai/doc-processing-api';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new ProfilesApi(configuration);
83
+
84
+ let profileId: string; //Profile/config ID. (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.profilesControllerGetProfile(
87
+ profileId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **profileId** | [**string**] | Profile/config ID. | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **ProfileDto**
101
+
102
+ ### Authorization
103
+
104
+ No authorization required
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | Profile details | - |
116
+ |**401** | Unauthorized | - |
117
+ |**404** | Not found | - |
118
+
119
+ [[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)
120
+
121
+ # **profilesControllerGetProfileSchema**
122
+ > { [key: string]: any; } profilesControllerGetProfileSchema()
123
+
124
+ Returns the JSON schema for profile YAML configuration files.
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ ProfilesApi,
131
+ Configuration
132
+ } from '@nestbox-ai/doc-processing-api';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new ProfilesApi(configuration);
136
+
137
+ const { status, data } = await apiInstance.profilesControllerGetProfileSchema();
138
+ ```
139
+
140
+ ### Parameters
141
+ This endpoint does not have any parameters.
142
+
143
+
144
+ ### Return type
145
+
146
+ **{ [key: string]: any; }**
147
+
148
+ ### Authorization
149
+
150
+ No authorization required
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: application/json
156
+
157
+
158
+ ### HTTP response details
159
+ | Status code | Description | Response headers |
160
+ |-------------|-------------|------------------|
161
+ |**200** | Profile schema in JSON format | - |
162
+ |**401** | Unauthorized | - |
163
+ |**500** | Internal server error | - |
164
+
165
+ [[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)
166
+
167
+ # **profilesControllerListProfiles**
168
+ > PaginatedProfilesDto profilesControllerListProfiles()
169
+
170
+
171
+ ### Example
172
+
173
+ ```typescript
174
+ import {
175
+ ProfilesApi,
176
+ Configuration
177
+ } from '@nestbox-ai/doc-processing-api';
178
+
179
+ const configuration = new Configuration();
180
+ const apiInstance = new ProfilesApi(configuration);
181
+
182
+ let page: number; //1-based page number. (optional) (default to 1)
183
+ let limit: number; //Page size. (optional) (default to 10)
184
+
185
+ const { status, data } = await apiInstance.profilesControllerListProfiles(
186
+ page,
187
+ limit
188
+ );
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ |Name | Type | Description | Notes|
194
+ |------------- | ------------- | ------------- | -------------|
195
+ | **page** | [**number**] | 1-based page number. | (optional) defaults to 1|
196
+ | **limit** | [**number**] | Page size. | (optional) defaults to 10|
197
+
198
+
199
+ ### Return type
200
+
201
+ **PaginatedProfilesDto**
202
+
203
+ ### Authorization
204
+
205
+ No authorization required
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: Not defined
210
+ - **Accept**: application/json
211
+
212
+
213
+ ### HTTP response details
214
+ | Status code | Description | Response headers |
215
+ |-------------|-------------|------------------|
216
+ |**200** | Paginated list of profiles | - |
217
+ |**401** | Unauthorized | - |
218
+
219
+ [[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)
220
+