@nixet/contracts 0.1.0 → 0.1.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.
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@nixet/contracts` are recorded here, following
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [0.1.1] — 2026-11-10
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `CreateGuardrailParams`, the request type a caller writes. Fields with
|
|
12
|
+
defaults (`patterns`, `topics`) are optional in it, where
|
|
13
|
+
`CreateGuardrailRequest` describes the parsed result and requires them.
|
|
14
|
+
|
|
15
|
+
## [0.1.0] — 2026-11-09
|
|
16
|
+
|
|
17
|
+
First public release: request, response and event schemas for the Nixet API.
|
|
@@ -141,6 +141,8 @@ export declare const createGuardrailSchema: z.ZodObject<{
|
|
|
141
141
|
message: z.ZodOptional<z.ZodString>;
|
|
142
142
|
}, z.core.$strict>;
|
|
143
143
|
export type CreateGuardrailRequest = z.infer<typeof createGuardrailSchema>;
|
|
144
|
+
/** What a caller sends: fields with defaults, such as `patterns` and `topics`, may be omitted. */
|
|
145
|
+
export type CreateGuardrailParams = z.input<typeof createGuardrailSchema>;
|
|
144
146
|
/**
|
|
145
147
|
* How a version runs the guards it names.
|
|
146
148
|
*
|
|
@@ -117,7 +117,7 @@ exports.knowledgeSourceSchema = zod_1.z.object({
|
|
|
117
117
|
/**
|
|
118
118
|
* Pages that needed OCR, and how many there were.
|
|
119
119
|
*
|
|
120
|
-
*
|
|
120
|
+
* The converter names the scanned pages when it refuses a PDF, so "2 of 340 pages
|
|
121
121
|
* were scanned" is answerable when someone asks why ingestion was slow.
|
|
122
122
|
*/
|
|
123
123
|
ocr_pages: zod_1.z.array(zod_1.z.number()).nullable(),
|
|
@@ -113,7 +113,7 @@ export const knowledgeSourceSchema = z.object({
|
|
|
113
113
|
/**
|
|
114
114
|
* Pages that needed OCR, and how many there were.
|
|
115
115
|
*
|
|
116
|
-
*
|
|
116
|
+
* The converter names the scanned pages when it refuses a PDF, so "2 of 340 pages
|
|
117
117
|
* were scanned" is answerable when someone asks why ingestion was slow.
|
|
118
118
|
*/
|
|
119
119
|
ocr_pages: z.array(z.number()).nullable(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixet/contracts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Public Nixet request, response and event schemas shared by the API, clients and bindings.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"README.md",
|
|
18
|
+
"CHANGELOG.md",
|
|
18
19
|
"LICENSE"
|
|
19
20
|
],
|
|
20
21
|
"scripts": {
|
|
@@ -29,6 +30,14 @@
|
|
|
29
30
|
},
|
|
30
31
|
"license": "MIT",
|
|
31
32
|
"homepage": "https://nixet.ai",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/nixetio/nixet-sdk.git",
|
|
36
|
+
"directory": "packages/contracts"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/nixetio/nixet-sdk/issues"
|
|
40
|
+
},
|
|
32
41
|
"keywords": [
|
|
33
42
|
"nixet",
|
|
34
43
|
"agents",
|