@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,53 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ api.ts
6
+ base.ts
7
+ common.ts
8
+ configuration.ts
9
+ docs/ArtifactsApi.md
10
+ docs/BatchQueryDto.md
11
+ docs/CreateWebhookInputDto.md
12
+ docs/DocumentCreateResponseDto.md
13
+ docs/DocumentDto.md
14
+ docs/DocumentSourcesResponseDto.md
15
+ docs/DocumentsApi.md
16
+ docs/ErrorDto.md
17
+ docs/EvalCreateResponseDto.md
18
+ docs/EvalDto.md
19
+ docs/EvalsApi.md
20
+ docs/GpuDeviceDto.md
21
+ docs/GpuHealthCheckDto.md
22
+ docs/HealthApi.md
23
+ docs/HealthCheckItemDto.md
24
+ docs/HealthChecksDto.md
25
+ docs/HealthResponseDto.md
26
+ docs/JobDto.md
27
+ docs/JobLinksDto.md
28
+ docs/JobStatusDto.md
29
+ docs/JobsApi.md
30
+ docs/PaginatedDocumentsDto.md
31
+ docs/PaginatedEvalsDto.md
32
+ docs/PaginatedJobsDto.md
33
+ docs/PaginatedProfilesDto.md
34
+ docs/PaginatedQueriesDto.md
35
+ docs/PaginatedWebhooksDto.md
36
+ docs/PaginationDto.md
37
+ docs/ProfileDto.md
38
+ docs/ProfilesApi.md
39
+ docs/QueriesApi.md
40
+ docs/QueryCreateResponseDto.md
41
+ docs/SourceItemDto.md
42
+ docs/SourcesApi.md
43
+ docs/UpdateWebhookBodyInputDto.md
44
+ docs/ValidationErrorDto.md
45
+ docs/ValidationIssueDto.md
46
+ docs/ValidationResultDto.md
47
+ docs/WebhookDto.md
48
+ docs/WebhooksApi.md
49
+ git_push.sh
50
+ index.ts
51
+ package.json
52
+ tsconfig.esm.json
53
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.19.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md CHANGED
@@ -1,45 +1,121 @@
1
- # @nestbox-ai/doc-processing-api
1
+ ## @nestbox-ai/doc-processing-api@1.0.62
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @nestbox-ai/doc-processing-api@1.0.62 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
47
+
48
+ ### Documentation for API Endpoints
49
+
50
+ All URIs are relative to *http://localhost*
51
+
52
+ Class | Method | HTTP request | Description
53
+ ------------ | ------------- | ------------- | -------------
54
+ *ArtifactsApi* | [**artifactsControllerDownloadDocumentArtifacts**](docs/ArtifactsApi.md#artifactscontrollerdownloaddocumentartifacts) | **GET** /documents/{documentId}/artifacts | Download document artifacts
55
+ *DocumentsApi* | [**documentsControllerCreateDocument**](docs/DocumentsApi.md#documentscontrollercreatedocument) | **POST** /documents | Create document processing job
56
+ *DocumentsApi* | [**documentsControllerGetDocument**](docs/DocumentsApi.md#documentscontrollergetdocument) | **GET** /documents/{documentId} | Read document
57
+ *DocumentsApi* | [**documentsControllerListDocuments**](docs/DocumentsApi.md#documentscontrollerlistdocuments) | **GET** /documents | List documents
58
+ *EvalsApi* | [**evalsControllerCreateEval**](docs/EvalsApi.md#evalscontrollercreateeval) | **POST** /documents/{documentId}/evals | Create an eval from YAML
59
+ *EvalsApi* | [**evalsControllerGetEval**](docs/EvalsApi.md#evalscontrollergeteval) | **GET** /documents/{documentId}/evals/{evalId} | Read eval
60
+ *EvalsApi* | [**evalsControllerListEvals**](docs/EvalsApi.md#evalscontrollerlistevals) | **GET** /documents/{documentId}/evals | List evals for a document
61
+ *EvalsApi* | [**evalsControllerValidateEvalYaml**](docs/EvalsApi.md#evalscontrollervalidateevalyaml) | **POST** /documents/{documentId}/evals/validate | Validate eval YAML
62
+ *HealthApi* | [**healthControllerGetHealth**](docs/HealthApi.md#healthcontrollergethealth) | **GET** /health | Get system health
63
+ *JobsApi* | [**jobsControllerGetJob**](docs/JobsApi.md#jobscontrollergetjob) | **GET** /jobs/{jobId} | Read job
64
+ *JobsApi* | [**jobsControllerGetJobStatus**](docs/JobsApi.md#jobscontrollergetjobstatus) | **GET** /jobs/{jobId}/status | Get job status
65
+ *JobsApi* | [**jobsControllerListJobs**](docs/JobsApi.md#jobscontrollerlistjobs) | **GET** /jobs | List jobs
66
+ *ProfilesApi* | [**profilesControllerCreateProfile**](docs/ProfilesApi.md#profilescontrollercreateprofile) | **POST** /profiles | Create profile from YAML
67
+ *ProfilesApi* | [**profilesControllerGetProfile**](docs/ProfilesApi.md#profilescontrollergetprofile) | **GET** /profiles/{profileId} | Read profile
68
+ *ProfilesApi* | [**profilesControllerGetProfileSchema**](docs/ProfilesApi.md#profilescontrollergetprofileschema) | **GET** /profiles/schema | Get profile schema
69
+ *ProfilesApi* | [**profilesControllerListProfiles**](docs/ProfilesApi.md#profilescontrollerlistprofiles) | **GET** /profiles | List profiles
70
+ *QueriesApi* | [**queriesControllerCreateQuery**](docs/QueriesApi.md#queriescontrollercreatequery) | **POST** /query | Create batch query from YAML
71
+ *QueriesApi* | [**queriesControllerGetQuery**](docs/QueriesApi.md#queriescontrollergetquery) | **GET** /query/{queryId} | Read batch query
72
+ *QueriesApi* | [**queriesControllerListQueries**](docs/QueriesApi.md#queriescontrollerlistqueries) | **GET** /query | List batch queries
73
+ *QueriesApi* | [**queriesControllerValidateQueryYaml**](docs/QueriesApi.md#queriescontrollervalidatequeryyaml) | **POST** /query/validate | Validate batch query YAML
74
+ *SourcesApi* | [**sourcesControllerGetDocumentSources**](docs/SourcesApi.md#sourcescontrollergetdocumentsources) | **GET** /documents/{documentId}/sources | Read document sources
75
+ *WebhooksApi* | [**webhooksControllerCreateWebhook**](docs/WebhooksApi.md#webhookscontrollercreatewebhook) | **POST** /webhooks | Create webhook
76
+ *WebhooksApi* | [**webhooksControllerDeleteWebhook**](docs/WebhooksApi.md#webhookscontrollerdeletewebhook) | **DELETE** /webhooks/{webhookId} | Delete webhook
77
+ *WebhooksApi* | [**webhooksControllerGetWebhook**](docs/WebhooksApi.md#webhookscontrollergetwebhook) | **GET** /webhooks/{webhookId} | Read webhook
78
+ *WebhooksApi* | [**webhooksControllerListWebhooks**](docs/WebhooksApi.md#webhookscontrollerlistwebhooks) | **GET** /webhooks | List webhooks
79
+ *WebhooksApi* | [**webhooksControllerUpdateWebhook**](docs/WebhooksApi.md#webhookscontrollerupdatewebhook) | **PATCH** /webhooks/{webhookId} | Update webhook
80
+
81
+
82
+ ### Documentation For Models
83
+
84
+ - [BatchQueryDto](docs/BatchQueryDto.md)
85
+ - [CreateWebhookInputDto](docs/CreateWebhookInputDto.md)
86
+ - [DocumentCreateResponseDto](docs/DocumentCreateResponseDto.md)
87
+ - [DocumentDto](docs/DocumentDto.md)
88
+ - [DocumentSourcesResponseDto](docs/DocumentSourcesResponseDto.md)
89
+ - [ErrorDto](docs/ErrorDto.md)
90
+ - [EvalCreateResponseDto](docs/EvalCreateResponseDto.md)
91
+ - [EvalDto](docs/EvalDto.md)
92
+ - [GpuDeviceDto](docs/GpuDeviceDto.md)
93
+ - [GpuHealthCheckDto](docs/GpuHealthCheckDto.md)
94
+ - [HealthCheckItemDto](docs/HealthCheckItemDto.md)
95
+ - [HealthChecksDto](docs/HealthChecksDto.md)
96
+ - [HealthResponseDto](docs/HealthResponseDto.md)
97
+ - [JobDto](docs/JobDto.md)
98
+ - [JobLinksDto](docs/JobLinksDto.md)
99
+ - [JobStatusDto](docs/JobStatusDto.md)
100
+ - [PaginatedDocumentsDto](docs/PaginatedDocumentsDto.md)
101
+ - [PaginatedEvalsDto](docs/PaginatedEvalsDto.md)
102
+ - [PaginatedJobsDto](docs/PaginatedJobsDto.md)
103
+ - [PaginatedProfilesDto](docs/PaginatedProfilesDto.md)
104
+ - [PaginatedQueriesDto](docs/PaginatedQueriesDto.md)
105
+ - [PaginatedWebhooksDto](docs/PaginatedWebhooksDto.md)
106
+ - [PaginationDto](docs/PaginationDto.md)
107
+ - [ProfileDto](docs/ProfileDto.md)
108
+ - [QueryCreateResponseDto](docs/QueryCreateResponseDto.md)
109
+ - [SourceItemDto](docs/SourceItemDto.md)
110
+ - [UpdateWebhookBodyInputDto](docs/UpdateWebhookBodyInputDto.md)
111
+ - [ValidationErrorDto](docs/ValidationErrorDto.md)
112
+ - [ValidationIssueDto](docs/ValidationIssueDto.md)
113
+ - [ValidationResultDto](docs/ValidationResultDto.md)
114
+ - [WebhookDto](docs/WebhookDto.md)
115
+
116
+
117
+ <a id="documentation-for-authorization"></a>
118
+ ## Documentation For Authorization
119
+
120
+ Endpoints do not require authorization.
2
121
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@nestbox-ai/doc-processing-api`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**