@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,280 @@
1
+ # WebhooksApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**webhooksControllerCreateWebhook**](#webhookscontrollercreatewebhook) | **POST** /webhooks | Create webhook|
8
+ |[**webhooksControllerDeleteWebhook**](#webhookscontrollerdeletewebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook|
9
+ |[**webhooksControllerGetWebhook**](#webhookscontrollergetwebhook) | **GET** /webhooks/{webhookId} | Read webhook|
10
+ |[**webhooksControllerListWebhooks**](#webhookscontrollerlistwebhooks) | **GET** /webhooks | List webhooks|
11
+ |[**webhooksControllerUpdateWebhook**](#webhookscontrollerupdatewebhook) | **PATCH** /webhooks/{webhookId} | Update webhook|
12
+
13
+ # **webhooksControllerCreateWebhook**
14
+ > WebhookDto webhooksControllerCreateWebhook(createWebhookInputDto)
15
+
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ WebhooksApi,
22
+ Configuration,
23
+ CreateWebhookInputDto
24
+ } from '@nestbox-ai/doc-processing-api';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new WebhooksApi(configuration);
28
+
29
+ let createWebhookInputDto: CreateWebhookInputDto; //
30
+
31
+ const { status, data } = await apiInstance.webhooksControllerCreateWebhook(
32
+ createWebhookInputDto
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **createWebhookInputDto** | **CreateWebhookInputDto**| | |
41
+
42
+
43
+ ### Return type
44
+
45
+ **WebhookDto**
46
+
47
+ ### Authorization
48
+
49
+ No authorization required
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: application/json
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**201** | Webhook created | - |
61
+ |**400** | Bad request | - |
62
+ |**401** | Unauthorized | - |
63
+
64
+ [[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)
65
+
66
+ # **webhooksControllerDeleteWebhook**
67
+ > WebhookDto webhooksControllerDeleteWebhook()
68
+
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ WebhooksApi,
75
+ Configuration
76
+ } from '@nestbox-ai/doc-processing-api';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new WebhooksApi(configuration);
80
+
81
+ let webhookId: string; //Webhook ID. (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.webhooksControllerDeleteWebhook(
84
+ webhookId
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **webhookId** | [**string**] | Webhook ID. | defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **WebhookDto**
98
+
99
+ ### Authorization
100
+
101
+ No authorization required
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Webhook deleted | - |
113
+ |**401** | Unauthorized | - |
114
+ |**404** | Not found | - |
115
+
116
+ [[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)
117
+
118
+ # **webhooksControllerGetWebhook**
119
+ > WebhookDto webhooksControllerGetWebhook()
120
+
121
+
122
+ ### Example
123
+
124
+ ```typescript
125
+ import {
126
+ WebhooksApi,
127
+ Configuration
128
+ } from '@nestbox-ai/doc-processing-api';
129
+
130
+ const configuration = new Configuration();
131
+ const apiInstance = new WebhooksApi(configuration);
132
+
133
+ let webhookId: string; //Webhook ID. (default to undefined)
134
+
135
+ const { status, data } = await apiInstance.webhooksControllerGetWebhook(
136
+ webhookId
137
+ );
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ |Name | Type | Description | Notes|
143
+ |------------- | ------------- | ------------- | -------------|
144
+ | **webhookId** | [**string**] | Webhook ID. | defaults to undefined|
145
+
146
+
147
+ ### Return type
148
+
149
+ **WebhookDto**
150
+
151
+ ### Authorization
152
+
153
+ No authorization required
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json
159
+
160
+
161
+ ### HTTP response details
162
+ | Status code | Description | Response headers |
163
+ |-------------|-------------|------------------|
164
+ |**200** | Webhook details | - |
165
+ |**401** | Unauthorized | - |
166
+ |**404** | Not found | - |
167
+
168
+ [[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)
169
+
170
+ # **webhooksControllerListWebhooks**
171
+ > PaginatedWebhooksDto webhooksControllerListWebhooks()
172
+
173
+
174
+ ### Example
175
+
176
+ ```typescript
177
+ import {
178
+ WebhooksApi,
179
+ Configuration
180
+ } from '@nestbox-ai/doc-processing-api';
181
+
182
+ const configuration = new Configuration();
183
+ const apiInstance = new WebhooksApi(configuration);
184
+
185
+ let page: number; //1-based page number. (optional) (default to 1)
186
+ let limit: number; //Page size. (optional) (default to 10)
187
+
188
+ const { status, data } = await apiInstance.webhooksControllerListWebhooks(
189
+ page,
190
+ limit
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **page** | [**number**] | 1-based page number. | (optional) defaults to 1|
199
+ | **limit** | [**number**] | Page size. | (optional) defaults to 10|
200
+
201
+
202
+ ### Return type
203
+
204
+ **PaginatedWebhooksDto**
205
+
206
+ ### Authorization
207
+
208
+ No authorization required
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: Not defined
213
+ - **Accept**: application/json
214
+
215
+
216
+ ### HTTP response details
217
+ | Status code | Description | Response headers |
218
+ |-------------|-------------|------------------|
219
+ |**200** | Paginated list of webhooks | - |
220
+ |**401** | Unauthorized | - |
221
+
222
+ [[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)
223
+
224
+ # **webhooksControllerUpdateWebhook**
225
+ > WebhookDto webhooksControllerUpdateWebhook(updateWebhookBodyInputDto)
226
+
227
+
228
+ ### Example
229
+
230
+ ```typescript
231
+ import {
232
+ WebhooksApi,
233
+ Configuration,
234
+ UpdateWebhookBodyInputDto
235
+ } from '@nestbox-ai/doc-processing-api';
236
+
237
+ const configuration = new Configuration();
238
+ const apiInstance = new WebhooksApi(configuration);
239
+
240
+ let webhookId: string; //Webhook ID. (default to undefined)
241
+ let updateWebhookBodyInputDto: UpdateWebhookBodyInputDto; //
242
+
243
+ const { status, data } = await apiInstance.webhooksControllerUpdateWebhook(
244
+ webhookId,
245
+ updateWebhookBodyInputDto
246
+ );
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+ |Name | Type | Description | Notes|
252
+ |------------- | ------------- | ------------- | -------------|
253
+ | **updateWebhookBodyInputDto** | **UpdateWebhookBodyInputDto**| | |
254
+ | **webhookId** | [**string**] | Webhook ID. | defaults to undefined|
255
+
256
+
257
+ ### Return type
258
+
259
+ **WebhookDto**
260
+
261
+ ### Authorization
262
+
263
+ No authorization required
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: application/json
268
+ - **Accept**: application/json
269
+
270
+
271
+ ### HTTP response details
272
+ | Status code | Description | Response headers |
273
+ |-------------|-------------|------------------|
274
+ |**200** | Webhook updated | - |
275
+ |**400** | Bad request | - |
276
+ |**401** | Unauthorized | - |
277
+ |**404** | Not found | - |
278
+
279
+ [[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)
280
+
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="NestboxAI"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="nestbox-ai-clients"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nestbox API Documents Processing API
5
+ * API for Nestbox Documents Processing
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
+
15
+
16
+ export * from "./api";
17
+ export * from "./configuration";
18
+
package/package.json CHANGED
@@ -1,10 +1,33 @@
1
1
  {
2
2
  "name": "@nestbox-ai/doc-processing-api",
3
- "version": "0.0.1",
4
- "description": "OIDC trusted publishing setup package for @nestbox-ai/doc-processing-api",
3
+ "version": "1.0.62",
4
+ "description": "OpenAPI client for @nestbox-ai/doc-processing-api",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/NestboxAI/nestbox-ai-clients.git"
9
+ },
5
10
  "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "@nestbox-ai/doc-processing-api"
16
+ ],
17
+ "license": "Unlicense",
18
+ "main": "./dist/index.js",
19
+ "typings": "./dist/index.d.ts",
20
+ "module": "./dist/esm/index.js",
21
+ "sideEffects": false,
22
+ "scripts": {
23
+ "build": "tsc && tsc -p tsconfig.esm.json",
24
+ "prepare": "npm run build"
25
+ },
26
+ "dependencies": {
27
+ "axios": "^1.6.1"
28
+ },
29
+ "devDependencies": {
30
+ "@types/node": "12.11.5 - 12.20.42",
31
+ "typescript": "^4.0 || ^5.0"
32
+ }
10
33
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES6",
5
+ "module": "commonjs",
6
+ "noImplicitAny": true,
7
+ "outDir": "dist",
8
+ "rootDir": ".",
9
+ "moduleResolution": "node",
10
+ "typeRoots": [
11
+ "node_modules/@types"
12
+ ]
13
+ },
14
+ "exclude": [
15
+ "dist",
16
+ "node_modules"
17
+ ]
18
+ }