@crossworks/voice-client 0.400.34 → 0.400.39
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/package.json +2 -2
- package/src/adapters/types.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/voice-client",
|
|
3
|
-
"version": "0.400.
|
|
3
|
+
"version": "0.400.39",
|
|
4
4
|
"description": "Browser-safe surface of the voice/model layer — provider catalogue, model catalogs, audio tags, and the adapter type/metadata contract. Zero deps by design: nothing here may reach the network adapters or node builtins (the jackdaw-repo-split P0 boundary).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"./*": "./src/*.ts"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@types/node": "^26.6.
|
|
11
|
+
"@types/node": "^26.6.6"
|
|
12
12
|
},
|
|
13
13
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
14
14
|
"repository": {
|
package/src/adapters/types.ts
CHANGED
|
@@ -937,6 +937,12 @@ export type DecisionAnswer =
|
|
|
937
937
|
}
|
|
938
938
|
| { type: 'noul'; probability: number };
|
|
939
939
|
|
|
940
|
+
/** The decider's privacy level. `zdr`: zero-data-retention routing and no
|
|
941
|
+
* data collection (the default). `no_training`: no data collection only, for
|
|
942
|
+
* a model with no zero-retention route. An adapter never loosens it by
|
|
943
|
+
* itself after a failure: an admin chooses `no_training`. */
|
|
944
|
+
export type DecisionPrivacy = 'zdr' | 'no_training';
|
|
945
|
+
|
|
940
946
|
export interface DecisionOptions {
|
|
941
947
|
apiKey: string;
|
|
942
948
|
model: string;
|
|
@@ -944,9 +950,9 @@ export interface DecisionOptions {
|
|
|
944
950
|
* name the questions can point at) or an array. Text only. */
|
|
945
951
|
state: unknown;
|
|
946
952
|
questions: Record<string, DecisionQuestion>;
|
|
947
|
-
/**
|
|
948
|
-
*
|
|
949
|
-
|
|
953
|
+
/** What the provider may do with the state, which can hold the owner's
|
|
954
|
+
* documents. Unset = `zdr`. */
|
|
955
|
+
privacy?: DecisionPrivacy;
|
|
950
956
|
/** Hard ceiling; the adapter aborts and throws past it. */
|
|
951
957
|
timeoutMs?: number;
|
|
952
958
|
}
|