@ce-rise/hex-core-sdk-typescript 0.0.1-ci.2923648 → 0.0.1

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 (34) hide show
  1. package/README.md +47 -3
  2. package/dist/src/apis/AdminApi.d.ts +2 -2
  3. package/dist/src/apis/AdminApi.js +2 -2
  4. package/dist/src/apis/DiscoveryApi.d.ts +2 -2
  5. package/dist/src/apis/DiscoveryApi.js +2 -2
  6. package/dist/src/apis/ModelsApi.d.ts +2 -2
  7. package/dist/src/apis/ModelsApi.js +2 -2
  8. package/dist/src/models/CreateRequest.d.ts +2 -2
  9. package/dist/src/models/CreateRequest.js +2 -2
  10. package/dist/src/models/ErrorResponse.d.ts +2 -2
  11. package/dist/src/models/ErrorResponse.js +2 -2
  12. package/dist/src/models/HealthResponse.d.ts +2 -2
  13. package/dist/src/models/HealthResponse.js +2 -2
  14. package/dist/src/models/ModelVersion.d.ts +2 -2
  15. package/dist/src/models/ModelVersion.js +2 -2
  16. package/dist/src/models/ModelsResponse.d.ts +2 -2
  17. package/dist/src/models/ModelsResponse.js +2 -2
  18. package/dist/src/models/QueryRequest.d.ts +2 -2
  19. package/dist/src/models/QueryRequest.js +2 -2
  20. package/dist/src/models/QueryResponse.d.ts +2 -2
  21. package/dist/src/models/QueryResponse.js +2 -2
  22. package/dist/src/models/ReadyResponse.d.ts +2 -2
  23. package/dist/src/models/ReadyResponse.js +2 -2
  24. package/dist/src/models/Record.d.ts +2 -2
  25. package/dist/src/models/Record.js +2 -2
  26. package/dist/src/models/ValidateRequest.d.ts +2 -2
  27. package/dist/src/models/ValidateRequest.js +2 -2
  28. package/dist/src/models/ValidationReport.d.ts +2 -2
  29. package/dist/src/models/ValidationReport.js +2 -2
  30. package/dist/src/models/ValidationResult.d.ts +2 -2
  31. package/dist/src/models/ValidationResult.js +2 -2
  32. package/dist/src/runtime.d.ts +2 -2
  33. package/dist/src/runtime.js +2 -2
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # CE-RISE TypeScript Software Development Kit for Hexagonal Core Service
2
2
 
3
+ [![NPM](https://nodei.co/npm/@ce-rise/hex-core-sdk-typescript.svg?style=shields)](https://www.npmjs.com/package/@ce-rise/hex-core-sdk-typescript)
3
4
  [![DOI](https://zenodo.org/badge/DOI/TOBEOBTAINED.svg)](https://doi.org/TOBEOBTAINED)
4
5
 
5
6
  A TypeScript SDK for the CE-RISE Hex Core Service:
@@ -10,13 +11,13 @@ https://codeberg.org/CE-RISE-software/hex-core-service
10
11
  Install from npm:
11
12
 
12
13
  ```bash
13
- npm install "ce-rise-hex-core-sdk"
14
+ npm install "@ce-rise/hex-core-sdk-typescript"
14
15
  ```
15
16
 
16
17
  Install a specific version:
17
18
 
18
19
  ```bash
19
- npm install "ce-rise-hex-core-sdk@0.0.1"
20
+ npm install "@ce-rise/hex-core-sdk-typescript@0.0.1"
20
21
  ```
21
22
 
22
23
  ## Quickstart
@@ -24,22 +25,65 @@ npm install "ce-rise-hex-core-sdk@0.0.1"
24
25
  ### 1) Configure client and call public endpoints
25
26
 
26
27
  ```ts
28
+ import { Configuration, DiscoveryApi } from "@ce-rise/hex-core-sdk-typescript";
27
29
 
30
+ const config = new Configuration({
31
+ basePath: "https://your-hex-core-service.example.org"
32
+ });
33
+
34
+ const discoveryApi = new DiscoveryApi(config);
35
+ const models = await discoveryApi.listModels();
36
+ console.log(models);
28
37
  ```
29
38
 
30
39
  ### 2) Configure bearer token for protected endpoints
31
40
 
41
+ ```ts
42
+ import { AdminApi, Configuration } from "@ce-rise/hex-core-sdk-typescript";
32
43
 
44
+ const config = new Configuration({
45
+ basePath: "https://your-hex-core-service.example.org",
46
+ accessToken: process.env.HEX_CORE_TOKEN
47
+ });
48
+
49
+ const adminApi = new AdminApi(config);
50
+ const status = await adminApi.status();
51
+ console.log(status);
52
+ ```
33
53
 
34
54
  ### 3) Validate and create records
35
55
 
56
+ ```ts
57
+ import { Configuration, ModelsApi } from "@ce-rise/hex-core-sdk-typescript";
58
+
59
+ const config = new Configuration({
60
+ basePath: "https://your-hex-core-service.example.org",
61
+ accessToken: process.env.HEX_CORE_TOKEN
62
+ });
63
+
64
+ const modelsApi = new ModelsApi(config);
65
+
66
+ const report = await modelsApi.validateModelPayload({
67
+ model: "model-a",
68
+ version: "1.0.0",
69
+ validateRequest: { payload: { x: 1 } }
70
+ });
36
71
 
72
+ const created = await modelsApi.createRecord({
73
+ model: "model-a",
74
+ version: "1.0.0",
75
+ idempotencyKey: "my-key-123",
76
+ createRequest: { payload: { x: 1 } }
77
+ });
78
+
79
+ console.log(report, created);
80
+ ```
37
81
 
38
82
  ## API Documentation
39
83
 
40
84
  - Generated docs website: https://ce-rise-software.codeberg.page/hex-core-sdk-typescript/
41
85
  - Local API docs:
42
- - `docs/apis/dminApi.md`
86
+ - `docs/apis/AdminApi.md`
43
87
  - `docs/apis/DiscoveryApi.md`
44
88
  - `docs/apis/ModelsApi.md`
45
89
 
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * CE-RISE Hexagonal Core Service API
2
+ * CE-RISE Hex Core Service API
3
3
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
4
4
  *
5
- * The version of the OpenAPI document: 0.0.1
5
+ * The version of the OpenAPI document: 0.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,10 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * CE-RISE Hexagonal Core Service API
5
+ * CE-RISE Hex Core Service API
6
6
  * Public and admin API for validating, creating, and querying records against versioned CE-RISE model artifacts.
7
7
  *
8
- * The version of the OpenAPI document: 0.0.1
8
+ * The version of the OpenAPI document: 0.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ce-rise/hex-core-sdk-typescript",
3
- "version": "0.0.1-ci.2923648",
3
+ "version": "0.0.1",
4
4
  "private": false,
5
5
  "description": "Generated TypeScript SDK for CE-RISE Hex Core API",
6
6
  "main": "dist/src/index.js",