@crossworks/voice-client 0.400.34 → 0.400.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/voice-client",
3
- "version": "0.400.34",
3
+ "version": "0.400.35",
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": {
@@ -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
- /** Ask the provider for zero-data-retention routing and no data
948
- * collection. The state can hold the owner's documents. */
949
- zeroDataRetention?: boolean;
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
  }