qati-sdk 1.0.1 → 1.0.2
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/README.md +0 -12
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +457 -32
- package/dist/index.d.ts +457 -32
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -550,15 +550,3 @@ Transient failures are retried automatically for **`POST /v1/events:batch`** acc
|
|
|
550
550
|
| Errors | `QatiSDKError`, `QatiAPIError`, `QatiAuthError`, `QatiNotFoundError`, `QatiRateLimitError`, `QatiServerError`, `QatiConfigError`. |
|
|
551
551
|
|
|
552
552
|
`HttpClient.request(...)` exists for advanced use; prefer resource methods for application code.
|
|
553
|
-
|
|
554
|
-
## Build (maintainers)
|
|
555
|
-
|
|
556
|
-
From `sdks/typescript/`:
|
|
557
|
-
|
|
558
|
-
```bash
|
|
559
|
-
npm ci
|
|
560
|
-
npm test
|
|
561
|
-
npm run build
|
|
562
|
-
```
|
|
563
|
-
|
|
564
|
-
Outputs land in `dist/` (ESM + CJS + declarations).
|
package/dist/index.cjs
CHANGED
|
@@ -640,7 +640,7 @@ var TrustStateResource = class {
|
|
|
640
640
|
/**
|
|
641
641
|
* Fetches the latest trust state for one entity.
|
|
642
642
|
*
|
|
643
|
-
* @param entityType - Lowercase entity class
|
|
643
|
+
* @param entityType - Lowercase entity class (see {@link EntityTypeLowerCase}).
|
|
644
644
|
* @param entityId - Id for the entity(Required)
|
|
645
645
|
* @param options - Optional contributor limits/window.
|
|
646
646
|
* @returns {@link TrustState} including `current_closure_score`, `risk_tier`, and `top_contributors`.
|
|
@@ -661,7 +661,7 @@ var TrustStateResource = class {
|
|
|
661
661
|
/**
|
|
662
662
|
* Fetches trust states for many entities in one request.
|
|
663
663
|
*
|
|
664
|
-
* @param entityType - Lowercase entity class
|
|
664
|
+
* @param entityType - Lowercase entity class (see {@link EntityTypeLowerCase}).
|
|
665
665
|
* @param entityIds - Distinct ids to query. Prefer length ≤ 100 or the server may reject the request.
|
|
666
666
|
* @param options - Optional contributor limits/window.
|
|
667
667
|
* @returns Array of {@link TrustState} in server-defined order; empty array when `entityIds` is empty.
|
|
@@ -828,8 +828,13 @@ var EventPrincipalSchema = zod.z.object({
|
|
|
828
828
|
device_id: zod.z.string().min(1).optional(),
|
|
829
829
|
session_id: zod.z.string().min(1).optional(),
|
|
830
830
|
model_id: zod.z.string().min(1).optional(),
|
|
831
|
-
service_id: zod.z.string().min(1).optional()
|
|
832
|
-
|
|
831
|
+
service_id: zod.z.string().min(1).optional(),
|
|
832
|
+
conversation_id: zod.z.string().min(1).optional(),
|
|
833
|
+
document_id: zod.z.string().min(1).optional(),
|
|
834
|
+
tool_id: zod.z.string().min(1).optional(),
|
|
835
|
+
workflow_id: zod.z.string().min(1).optional(),
|
|
836
|
+
api_key_id: zod.z.string().min(1).optional()
|
|
837
|
+
}).strict();
|
|
833
838
|
|
|
834
839
|
// src/v1/schemas/raw-event.ts
|
|
835
840
|
var BaseEventSchema = zod.z.object({
|