@simple-ai-lab/sdk 0.8.0 → 0.11.0
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 +1 -0
- package/dist/agents.cjs +29 -6
- package/dist/agents.d.cts +23 -9
- package/dist/agents.d.ts +23 -9
- package/dist/agents.js +28 -5
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/projects.cjs +6 -0
- package/dist/projects.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/agents.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS = exports.DEFAULT_PER_TURN_RETRIEVAL_TOP_K = exports.prompt = exports.node = exports.MAX_CONTAINMENT_RULE_DEPTH = exports.CONTAINMENT_CONTAINED_CONDITION_TYPES = exports.CONTAINMENT_CONTAINABLE_CONDITION_TYPES = exports.CONTAINMENT_RULE_MATCHES = exports.FIVE9_SIP_BYE_HEADER_NAMES = exports.SOP_TOOL_REF_TYPES = exports.DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = exports.DEFAULT_TRANSITION_MESSAGE = exports.TRANSITION_FILTER_MAX_CONDITIONS = exports.TRANSITION_FILTER_MAX_DEPTH = exports.TRANSITION_FILTER_EXISTENCE_OPERATORS = exports.TRANSITION_FILTER_STRING_OPERATORS = exports.TRANSITION_FILTER_CONTAINS_OPERATORS = exports.TRANSITION_FILTER_NUMERIC_OPERATORS = exports.TRANSITION_FILTER_EQUALITY_OPERATORS = void 0;
|
|
3
|
+
exports.DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS = exports.DEFAULT_PER_TURN_RETRIEVAL_TOP_K = exports.prompt = exports.node = exports.MAX_CONTAINMENT_RULE_DEPTH = exports.CONTAINMENT_CONTAINED_CONDITION_TYPES = exports.CONTAINMENT_CONTAINABLE_CONDITION_TYPES = exports.CONTAINMENT_RULE_MATCHES = exports.FIVE9_SIP_BYE_HEADER_NAMES = exports.SOP_TOOL_REF_TYPES = exports.DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = exports.DEFAULT_TRANSITION_MESSAGE = exports.TRANSITION_FILTER_MAX_CONDITIONS = exports.TRANSITION_FILTER_MAX_DEPTH = exports.PII_REDACTION_CATEGORIES = exports.TRANSITION_FILTER_EXISTENCE_OPERATORS = exports.TRANSITION_FILTER_STRING_OPERATORS = exports.TRANSITION_FILTER_CONTAINS_OPERATORS = exports.TRANSITION_FILTER_NUMERIC_OPERATORS = exports.TRANSITION_FILTER_EQUALITY_OPERATORS = void 0;
|
|
4
4
|
exports.defaultBackgroundNoise = defaultBackgroundNoise;
|
|
5
5
|
exports.defineAgent = defineAgent;
|
|
6
6
|
exports.reference = reference;
|
|
@@ -28,6 +28,8 @@ exports.TRANSITION_FILTER_NUMERIC_OPERATORS = [
|
|
|
28
28
|
exports.TRANSITION_FILTER_CONTAINS_OPERATORS = ['contains', 'not_contains'];
|
|
29
29
|
exports.TRANSITION_FILTER_STRING_OPERATORS = ['starts_with', 'ends_with'];
|
|
30
30
|
exports.TRANSITION_FILTER_EXISTENCE_OPERATORS = ['exists', 'not_exists'];
|
|
31
|
+
/** The kinds of personal information a voice agent can redact from its transcripts. Mirrors the platform enum. */
|
|
32
|
+
exports.PII_REDACTION_CATEGORIES = ['name', 'dob', 'ssn', 'phone', 'email', 'address'];
|
|
31
33
|
exports.TRANSITION_FILTER_MAX_DEPTH = 8;
|
|
32
34
|
exports.TRANSITION_FILTER_MAX_CONDITIONS = 100;
|
|
33
35
|
/** Speaking on a transition is opt-in per edge. */
|
|
@@ -43,7 +45,7 @@ function defaultBackgroundNoise({ voiceBackgroundNoise, }) {
|
|
|
43
45
|
/** How long the agent waits before checking in on a silent caller. Matches the product default. */
|
|
44
46
|
exports.DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = 30;
|
|
45
47
|
function llmOverrideWire(override) {
|
|
46
|
-
return {
|
|
48
|
+
return { llmModelUuid: override.modelUuid, temperature: override.temperature };
|
|
47
49
|
}
|
|
48
50
|
/** A tool a SOP section may use, by the uuid the graph already assigns it. */
|
|
49
51
|
exports.SOP_TOOL_REF_TYPES = ['http', 'knowledge-base', 'action'];
|
|
@@ -107,9 +109,8 @@ function defineAgent(input) {
|
|
|
107
109
|
backgroundNoise: voiceBackgroundNoise,
|
|
108
110
|
},
|
|
109
111
|
llm: {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
temperature: input.llm?.temperature ?? 0.65,
|
|
112
|
+
modelUuid: input.llm.modelUuid,
|
|
113
|
+
temperature: input.llm.temperature ?? 0.65,
|
|
113
114
|
},
|
|
114
115
|
speech: {
|
|
115
116
|
language: input.speech?.language ?? 'en',
|
|
@@ -135,6 +136,7 @@ function defineAgent(input) {
|
|
|
135
136
|
},
|
|
136
137
|
endCallAfterExtendedSilence: input.call?.endCallAfterExtendedSilence ?? false,
|
|
137
138
|
pciEnabled: input.call?.pciEnabled ?? false,
|
|
139
|
+
piiRedaction: normalizePiiRedaction(input.call?.piiRedaction),
|
|
138
140
|
backgroundNoise: input.call?.backgroundNoise === undefined
|
|
139
141
|
? defaultBackgroundNoise({ voiceBackgroundNoise })
|
|
140
142
|
: input.call.backgroundNoise,
|
|
@@ -1006,6 +1008,27 @@ function compileCartCheckout({ checkout, resolveAction, nodeAt, }) {
|
|
|
1006
1008
|
}
|
|
1007
1009
|
}
|
|
1008
1010
|
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Each category at most once, in the order authored, so a pulled commit compiles back to itself.
|
|
1013
|
+
* An omitted or null selection stays null and leaves the choice to the organization.
|
|
1014
|
+
*/
|
|
1015
|
+
function normalizePiiRedaction(input) {
|
|
1016
|
+
if (input == null) {
|
|
1017
|
+
return null;
|
|
1018
|
+
}
|
|
1019
|
+
const requested = input.categories;
|
|
1020
|
+
const seen = new Set();
|
|
1021
|
+
for (const category of requested) {
|
|
1022
|
+
if (!exports.PII_REDACTION_CATEGORIES.includes(category)) {
|
|
1023
|
+
throw new Error(`Unknown PII redaction category: ${String(category)}`);
|
|
1024
|
+
}
|
|
1025
|
+
if (seen.has(category)) {
|
|
1026
|
+
throw new Error(`PII redaction category listed more than once: ${category}`);
|
|
1027
|
+
}
|
|
1028
|
+
seen.add(category);
|
|
1029
|
+
}
|
|
1030
|
+
return { categories: [...requested] };
|
|
1031
|
+
}
|
|
1009
1032
|
/** Plain JavaScript callers aren't held to the types; order ids only come from an Action's outputs. */
|
|
1010
1033
|
function assertNoCheckoutOrderIds(checkout) {
|
|
1011
1034
|
if (checkout.orderIds != null) {
|
|
@@ -1123,7 +1146,6 @@ function compileAgent(definition, options = {}) {
|
|
|
1123
1146
|
backgroundNoise: definition.voice.backgroundNoise,
|
|
1124
1147
|
},
|
|
1125
1148
|
llm: {
|
|
1126
|
-
model: definition.llm.model,
|
|
1127
1149
|
llmModelUuid: definition.llm.modelUuid,
|
|
1128
1150
|
temperature: definition.llm.temperature,
|
|
1129
1151
|
},
|
|
@@ -1137,6 +1159,7 @@ function compileAgent(definition, options = {}) {
|
|
|
1137
1159
|
checkInAfterSilence: definition.call.checkInAfterSilence,
|
|
1138
1160
|
endCallAfterExtendedSilence: definition.call.endCallAfterExtendedSilence,
|
|
1139
1161
|
pciEnabled: definition.call.pciEnabled,
|
|
1162
|
+
piiRedaction: definition.call.piiRedaction,
|
|
1140
1163
|
...(definition.call.backgroundNoise === null ? {} : { backgroundNoise: definition.call.backgroundNoise }),
|
|
1141
1164
|
// Absent and a value are the only two states the product writes, so
|
|
1142
1165
|
// `null` means omit rather than sending an invented default. The platform derives the
|
package/dist/agents.d.cts
CHANGED
|
@@ -8,6 +8,18 @@ export declare const TRANSITION_FILTER_NUMERIC_OPERATORS: readonly ["greater_tha
|
|
|
8
8
|
export declare const TRANSITION_FILTER_CONTAINS_OPERATORS: readonly ["contains", "not_contains"];
|
|
9
9
|
export declare const TRANSITION_FILTER_STRING_OPERATORS: readonly ["starts_with", "ends_with"];
|
|
10
10
|
export declare const TRANSITION_FILTER_EXISTENCE_OPERATORS: readonly ["exists", "not_exists"];
|
|
11
|
+
/** The kinds of personal information a voice agent can redact from its transcripts. Mirrors the platform enum. */
|
|
12
|
+
export declare const PII_REDACTION_CATEGORIES: readonly ["name", "dob", "ssn", "phone", "email", "address"];
|
|
13
|
+
export type PiiRedactionCategory = (typeof PII_REDACTION_CATEGORIES)[number];
|
|
14
|
+
export interface PiiRedactionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Empty means the agent chose no category. Payment-card data and credentials are redacted
|
|
17
|
+
* whenever redaction runs, and the organization's default can still turn it on. The list
|
|
18
|
+
* directs the redactor rather than bounding it: a transcript records every category it
|
|
19
|
+
* actually redacted, which can include one outside the list.
|
|
20
|
+
*/
|
|
21
|
+
categories: PiiRedactionCategory[];
|
|
22
|
+
}
|
|
11
23
|
export type TransitionFilterCondition = {
|
|
12
24
|
path: TransitionFilterPath;
|
|
13
25
|
operator: (typeof TRANSITION_FILTER_EQUALITY_OPERATORS)[number];
|
|
@@ -282,8 +294,7 @@ export type AgentV2ConfigWire = {
|
|
|
282
294
|
backgroundNoise: BackgroundNoise;
|
|
283
295
|
};
|
|
284
296
|
llm: {
|
|
285
|
-
|
|
286
|
-
llmModelUuid: string | null;
|
|
297
|
+
llmModelUuid: string;
|
|
287
298
|
temperature: number;
|
|
288
299
|
};
|
|
289
300
|
speech: {
|
|
@@ -307,6 +318,8 @@ export type AgentV2ConfigWire = {
|
|
|
307
318
|
};
|
|
308
319
|
endCallAfterExtendedSilence: boolean;
|
|
309
320
|
pciEnabled: boolean;
|
|
321
|
+
/** Null while the version leaves the choice to the organization; absent in commits written before it existed. */
|
|
322
|
+
piiRedaction?: PiiRedactionConfig | null;
|
|
310
323
|
/** Absent in commits with no background noise configured. */
|
|
311
324
|
backgroundNoise?: BackgroundNoiseConfig;
|
|
312
325
|
/** Optional only for commit snapshots written before the Voice Analysis settings existed. */
|
|
@@ -518,7 +531,6 @@ export type ParameterUpdate = {
|
|
|
518
531
|
};
|
|
519
532
|
/** A per-node model override on the wire, where the model UUID is `llmModelUuid`. */
|
|
520
533
|
export type LlmOverrideWire = {
|
|
521
|
-
model: string | null;
|
|
522
534
|
llmModelUuid: string | null;
|
|
523
535
|
temperature: number | null;
|
|
524
536
|
};
|
|
@@ -528,7 +540,6 @@ export type LlmOverrideWire = {
|
|
|
528
540
|
* cannot drift; `modelUuid` is the authoring spelling of `llmModelUuid`.
|
|
529
541
|
*/
|
|
530
542
|
export type LlmOverrideDefinition = {
|
|
531
|
-
model: string | null;
|
|
532
543
|
modelUuid: string | null;
|
|
533
544
|
temperature: number | null;
|
|
534
545
|
};
|
|
@@ -938,8 +949,7 @@ export type AgentDefinition = {
|
|
|
938
949
|
backgroundNoise: BackgroundNoise;
|
|
939
950
|
};
|
|
940
951
|
llm: {
|
|
941
|
-
|
|
942
|
-
modelUuid: string | null;
|
|
952
|
+
modelUuid: string;
|
|
943
953
|
temperature: number;
|
|
944
954
|
};
|
|
945
955
|
speech: {
|
|
@@ -964,6 +974,11 @@ export type AgentDefinition = {
|
|
|
964
974
|
checkInAfterSilence: CheckInAfterSilence;
|
|
965
975
|
endCallAfterExtendedSilence: boolean;
|
|
966
976
|
pciEnabled: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* `null` leaves the choice to the organization's default at call time. An empty list is
|
|
979
|
+
* an explicit choice of none.
|
|
980
|
+
*/
|
|
981
|
+
piiRedaction: PiiRedactionConfig | null;
|
|
967
982
|
/**
|
|
968
983
|
* Agent v2's `call.backgroundNoise`, which is what a call actually plays.
|
|
969
984
|
* It is stored apart from `voice.backgroundNoise`, and the two can
|
|
@@ -1033,9 +1048,8 @@ export type AgentDefinitionInput = {
|
|
|
1033
1048
|
voiceUuid?: string | null;
|
|
1034
1049
|
backgroundNoise?: BackgroundNoise;
|
|
1035
1050
|
};
|
|
1036
|
-
llm
|
|
1037
|
-
|
|
1038
|
-
modelUuid?: string | null;
|
|
1051
|
+
llm: {
|
|
1052
|
+
modelUuid: string;
|
|
1039
1053
|
temperature?: number;
|
|
1040
1054
|
};
|
|
1041
1055
|
speech?: {
|
package/dist/agents.d.ts
CHANGED
|
@@ -8,6 +8,18 @@ export declare const TRANSITION_FILTER_NUMERIC_OPERATORS: readonly ["greater_tha
|
|
|
8
8
|
export declare const TRANSITION_FILTER_CONTAINS_OPERATORS: readonly ["contains", "not_contains"];
|
|
9
9
|
export declare const TRANSITION_FILTER_STRING_OPERATORS: readonly ["starts_with", "ends_with"];
|
|
10
10
|
export declare const TRANSITION_FILTER_EXISTENCE_OPERATORS: readonly ["exists", "not_exists"];
|
|
11
|
+
/** The kinds of personal information a voice agent can redact from its transcripts. Mirrors the platform enum. */
|
|
12
|
+
export declare const PII_REDACTION_CATEGORIES: readonly ["name", "dob", "ssn", "phone", "email", "address"];
|
|
13
|
+
export type PiiRedactionCategory = (typeof PII_REDACTION_CATEGORIES)[number];
|
|
14
|
+
export interface PiiRedactionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Empty means the agent chose no category. Payment-card data and credentials are redacted
|
|
17
|
+
* whenever redaction runs, and the organization's default can still turn it on. The list
|
|
18
|
+
* directs the redactor rather than bounding it: a transcript records every category it
|
|
19
|
+
* actually redacted, which can include one outside the list.
|
|
20
|
+
*/
|
|
21
|
+
categories: PiiRedactionCategory[];
|
|
22
|
+
}
|
|
11
23
|
export type TransitionFilterCondition = {
|
|
12
24
|
path: TransitionFilterPath;
|
|
13
25
|
operator: (typeof TRANSITION_FILTER_EQUALITY_OPERATORS)[number];
|
|
@@ -282,8 +294,7 @@ export type AgentV2ConfigWire = {
|
|
|
282
294
|
backgroundNoise: BackgroundNoise;
|
|
283
295
|
};
|
|
284
296
|
llm: {
|
|
285
|
-
|
|
286
|
-
llmModelUuid: string | null;
|
|
297
|
+
llmModelUuid: string;
|
|
287
298
|
temperature: number;
|
|
288
299
|
};
|
|
289
300
|
speech: {
|
|
@@ -307,6 +318,8 @@ export type AgentV2ConfigWire = {
|
|
|
307
318
|
};
|
|
308
319
|
endCallAfterExtendedSilence: boolean;
|
|
309
320
|
pciEnabled: boolean;
|
|
321
|
+
/** Null while the version leaves the choice to the organization; absent in commits written before it existed. */
|
|
322
|
+
piiRedaction?: PiiRedactionConfig | null;
|
|
310
323
|
/** Absent in commits with no background noise configured. */
|
|
311
324
|
backgroundNoise?: BackgroundNoiseConfig;
|
|
312
325
|
/** Optional only for commit snapshots written before the Voice Analysis settings existed. */
|
|
@@ -518,7 +531,6 @@ export type ParameterUpdate = {
|
|
|
518
531
|
};
|
|
519
532
|
/** A per-node model override on the wire, where the model UUID is `llmModelUuid`. */
|
|
520
533
|
export type LlmOverrideWire = {
|
|
521
|
-
model: string | null;
|
|
522
534
|
llmModelUuid: string | null;
|
|
523
535
|
temperature: number | null;
|
|
524
536
|
};
|
|
@@ -528,7 +540,6 @@ export type LlmOverrideWire = {
|
|
|
528
540
|
* cannot drift; `modelUuid` is the authoring spelling of `llmModelUuid`.
|
|
529
541
|
*/
|
|
530
542
|
export type LlmOverrideDefinition = {
|
|
531
|
-
model: string | null;
|
|
532
543
|
modelUuid: string | null;
|
|
533
544
|
temperature: number | null;
|
|
534
545
|
};
|
|
@@ -938,8 +949,7 @@ export type AgentDefinition = {
|
|
|
938
949
|
backgroundNoise: BackgroundNoise;
|
|
939
950
|
};
|
|
940
951
|
llm: {
|
|
941
|
-
|
|
942
|
-
modelUuid: string | null;
|
|
952
|
+
modelUuid: string;
|
|
943
953
|
temperature: number;
|
|
944
954
|
};
|
|
945
955
|
speech: {
|
|
@@ -964,6 +974,11 @@ export type AgentDefinition = {
|
|
|
964
974
|
checkInAfterSilence: CheckInAfterSilence;
|
|
965
975
|
endCallAfterExtendedSilence: boolean;
|
|
966
976
|
pciEnabled: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* `null` leaves the choice to the organization's default at call time. An empty list is
|
|
979
|
+
* an explicit choice of none.
|
|
980
|
+
*/
|
|
981
|
+
piiRedaction: PiiRedactionConfig | null;
|
|
967
982
|
/**
|
|
968
983
|
* Agent v2's `call.backgroundNoise`, which is what a call actually plays.
|
|
969
984
|
* It is stored apart from `voice.backgroundNoise`, and the two can
|
|
@@ -1033,9 +1048,8 @@ export type AgentDefinitionInput = {
|
|
|
1033
1048
|
voiceUuid?: string | null;
|
|
1034
1049
|
backgroundNoise?: BackgroundNoise;
|
|
1035
1050
|
};
|
|
1036
|
-
llm
|
|
1037
|
-
|
|
1038
|
-
modelUuid?: string | null;
|
|
1051
|
+
llm: {
|
|
1052
|
+
modelUuid: string;
|
|
1039
1053
|
temperature?: number;
|
|
1040
1054
|
};
|
|
1041
1055
|
speech?: {
|
package/dist/agents.js
CHANGED
|
@@ -18,6 +18,8 @@ export const TRANSITION_FILTER_NUMERIC_OPERATORS = [
|
|
|
18
18
|
export const TRANSITION_FILTER_CONTAINS_OPERATORS = ['contains', 'not_contains'];
|
|
19
19
|
export const TRANSITION_FILTER_STRING_OPERATORS = ['starts_with', 'ends_with'];
|
|
20
20
|
export const TRANSITION_FILTER_EXISTENCE_OPERATORS = ['exists', 'not_exists'];
|
|
21
|
+
/** The kinds of personal information a voice agent can redact from its transcripts. Mirrors the platform enum. */
|
|
22
|
+
export const PII_REDACTION_CATEGORIES = ['name', 'dob', 'ssn', 'phone', 'email', 'address'];
|
|
21
23
|
export const TRANSITION_FILTER_MAX_DEPTH = 8;
|
|
22
24
|
export const TRANSITION_FILTER_MAX_CONDITIONS = 100;
|
|
23
25
|
/** Speaking on a transition is opt-in per edge. */
|
|
@@ -33,7 +35,7 @@ export function defaultBackgroundNoise({ voiceBackgroundNoise, }) {
|
|
|
33
35
|
/** How long the agent waits before checking in on a silent caller. Matches the product default. */
|
|
34
36
|
export const DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = 30;
|
|
35
37
|
function llmOverrideWire(override) {
|
|
36
|
-
return {
|
|
38
|
+
return { llmModelUuid: override.modelUuid, temperature: override.temperature };
|
|
37
39
|
}
|
|
38
40
|
/** A tool a SOP section may use, by the uuid the graph already assigns it. */
|
|
39
41
|
export const SOP_TOOL_REF_TYPES = ['http', 'knowledge-base', 'action'];
|
|
@@ -97,9 +99,8 @@ export function defineAgent(input) {
|
|
|
97
99
|
backgroundNoise: voiceBackgroundNoise,
|
|
98
100
|
},
|
|
99
101
|
llm: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
temperature: input.llm?.temperature ?? 0.65,
|
|
102
|
+
modelUuid: input.llm.modelUuid,
|
|
103
|
+
temperature: input.llm.temperature ?? 0.65,
|
|
103
104
|
},
|
|
104
105
|
speech: {
|
|
105
106
|
language: input.speech?.language ?? 'en',
|
|
@@ -125,6 +126,7 @@ export function defineAgent(input) {
|
|
|
125
126
|
},
|
|
126
127
|
endCallAfterExtendedSilence: input.call?.endCallAfterExtendedSilence ?? false,
|
|
127
128
|
pciEnabled: input.call?.pciEnabled ?? false,
|
|
129
|
+
piiRedaction: normalizePiiRedaction(input.call?.piiRedaction),
|
|
128
130
|
backgroundNoise: input.call?.backgroundNoise === undefined
|
|
129
131
|
? defaultBackgroundNoise({ voiceBackgroundNoise })
|
|
130
132
|
: input.call.backgroundNoise,
|
|
@@ -996,6 +998,27 @@ function compileCartCheckout({ checkout, resolveAction, nodeAt, }) {
|
|
|
996
998
|
}
|
|
997
999
|
}
|
|
998
1000
|
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Each category at most once, in the order authored, so a pulled commit compiles back to itself.
|
|
1003
|
+
* An omitted or null selection stays null and leaves the choice to the organization.
|
|
1004
|
+
*/
|
|
1005
|
+
function normalizePiiRedaction(input) {
|
|
1006
|
+
if (input == null) {
|
|
1007
|
+
return null;
|
|
1008
|
+
}
|
|
1009
|
+
const requested = input.categories;
|
|
1010
|
+
const seen = new Set();
|
|
1011
|
+
for (const category of requested) {
|
|
1012
|
+
if (!PII_REDACTION_CATEGORIES.includes(category)) {
|
|
1013
|
+
throw new Error(`Unknown PII redaction category: ${String(category)}`);
|
|
1014
|
+
}
|
|
1015
|
+
if (seen.has(category)) {
|
|
1016
|
+
throw new Error(`PII redaction category listed more than once: ${category}`);
|
|
1017
|
+
}
|
|
1018
|
+
seen.add(category);
|
|
1019
|
+
}
|
|
1020
|
+
return { categories: [...requested] };
|
|
1021
|
+
}
|
|
999
1022
|
/** Plain JavaScript callers aren't held to the types; order ids only come from an Action's outputs. */
|
|
1000
1023
|
function assertNoCheckoutOrderIds(checkout) {
|
|
1001
1024
|
if (checkout.orderIds != null) {
|
|
@@ -1113,7 +1136,6 @@ export function compileAgent(definition, options = {}) {
|
|
|
1113
1136
|
backgroundNoise: definition.voice.backgroundNoise,
|
|
1114
1137
|
},
|
|
1115
1138
|
llm: {
|
|
1116
|
-
model: definition.llm.model,
|
|
1117
1139
|
llmModelUuid: definition.llm.modelUuid,
|
|
1118
1140
|
temperature: definition.llm.temperature,
|
|
1119
1141
|
},
|
|
@@ -1127,6 +1149,7 @@ export function compileAgent(definition, options = {}) {
|
|
|
1127
1149
|
checkInAfterSilence: definition.call.checkInAfterSilence,
|
|
1128
1150
|
endCallAfterExtendedSilence: definition.call.endCallAfterExtendedSilence,
|
|
1129
1151
|
pciEnabled: definition.call.pciEnabled,
|
|
1152
|
+
piiRedaction: definition.call.piiRedaction,
|
|
1130
1153
|
...(definition.call.backgroundNoise === null ? {} : { backgroundNoise: definition.call.backgroundNoise }),
|
|
1131
1154
|
// Absent and a value are the only two states the product writes, so
|
|
1132
1155
|
// `null` means omit rather than sending an invented default. The platform derives the
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SimpleAIError = exports.MissingCapabilityError = exports.tableNameSchema = exports.recordPayloadSchema = exports.queryInputSchema = exports.MAX_QUERY_SIZE = exports.MAX_BATCH_ROWS = exports.listOptionsSchema = void 0;
|
|
3
|
+
exports.dataColumnPathSchema = exports.batchUpsertRowsSchema = exports.normalizeAgentV2CommitContent = exports.defineAgentSnapshot = exports.compileAgentProject = exports.collectActionVersionUuids = exports.DataClient = exports.ActionCapability = exports.SIMPLE_ACTION_BRAND = exports.defineCustomDataTransform = exports.defineAction = exports.SimpleAI = exports.WEB_SEARCH_OUTPUT_SCHEMA = exports.WEB_SEARCH_OUTPUT_MAPPINGS = exports.WEB_SEARCH_INPUT_SCHEMA = exports.VALIDATE_ADDRESS_OUTPUT_SCHEMA = exports.VALIDATE_ADDRESS_OUTPUT_MAPPINGS = exports.VALIDATE_ADDRESS_INPUT_SCHEMA = exports.SEND_TEXT_MESSAGE_OUTPUT_SCHEMA = exports.SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS = exports.SEND_TEXT_MESSAGE_INPUT_SCHEMA = exports.SEND_EMAIL_OUTPUT_SCHEMA = exports.SEND_EMAIL_OUTPUT_MAPPINGS = exports.SEND_EMAIL_INPUT_SCHEMA = exports.BUILT_IN_ACTION_CONTRACTS = exports.TRANSITION_FILTER_MAX_DEPTH = exports.TRANSITION_FILTER_MAX_CONDITIONS = exports.resolveExtractionFields = exports.reference = exports.prompt = exports.PII_REDACTION_CATEGORIES = exports.node = exports.MAX_CONTAINMENT_RULE_DEPTH = exports.FIVE9_SIP_BYE_HEADER_NAMES = exports.defineAgent = exports.defaultBackgroundNoise = exports.DEFAULT_TRANSITION_MESSAGE = exports.DEFAULT_PER_TURN_RETRIEVAL_TOP_K = exports.DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS = exports.DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = exports.compileAgent = exports.canonicalAuthoringKeys = exports.canonicalAuthoringKey = exports.sourceFile = exports.resolveActionIoSchema = exports.resolveActionHttpHeaders = exports.compileAction = exports.canonicalActionSource = exports.actionsIoSchemaFromZod = exports.action = void 0;
|
|
4
|
+
exports.SimpleAIError = exports.MissingCapabilityError = exports.tableNameSchema = exports.recordPayloadSchema = exports.queryInputSchema = exports.MAX_QUERY_SIZE = exports.MAX_BATCH_ROWS = exports.listOptionsSchema = exports.dataFilterSchema = void 0;
|
|
5
5
|
var actions_1 = require("./actions.cjs");
|
|
6
6
|
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return actions_1.action; } });
|
|
7
7
|
Object.defineProperty(exports, "actionsIoSchemaFromZod", { enumerable: true, get: function () { return actions_1.actionsIoSchemaFromZod; } });
|
|
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "defineAgent", { enumerable: true, get: function
|
|
|
23
23
|
Object.defineProperty(exports, "FIVE9_SIP_BYE_HEADER_NAMES", { enumerable: true, get: function () { return agents_1.FIVE9_SIP_BYE_HEADER_NAMES; } });
|
|
24
24
|
Object.defineProperty(exports, "MAX_CONTAINMENT_RULE_DEPTH", { enumerable: true, get: function () { return agents_1.MAX_CONTAINMENT_RULE_DEPTH; } });
|
|
25
25
|
Object.defineProperty(exports, "node", { enumerable: true, get: function () { return agents_1.node; } });
|
|
26
|
+
Object.defineProperty(exports, "PII_REDACTION_CATEGORIES", { enumerable: true, get: function () { return agents_1.PII_REDACTION_CATEGORIES; } });
|
|
26
27
|
Object.defineProperty(exports, "prompt", { enumerable: true, get: function () { return agents_1.prompt; } });
|
|
27
28
|
Object.defineProperty(exports, "reference", { enumerable: true, get: function () { return agents_1.reference; } });
|
|
28
29
|
Object.defineProperty(exports, "resolveExtractionFields", { enumerable: true, get: function () { return agents_1.resolveExtractionFields; } });
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { type ActionCompileOptions, type ActionDefinition, type ActionHttpHeaders, type ActionIoInput, type ActionOutputParameterMappings, type ActionOutputParameters, type ActionRunDefinition, type ActionsIoSchema, type ActionsIoSchemaNode, type ActionVersionValues, type AgentActionInput, action, actionsIoSchemaFromZod, type BackgroundMessage, type BuiltInActionValues, type BuiltInOperation, type CallableActionDefinition, canonicalActionSource, compileAction, type InlineActionDefinition, type ReferencedActionDefinition, resolveActionHttpHeaders, resolveActionIoSchema, type SourceFileReference, sourceFile, } from "./actions.cjs";
|
|
2
|
-
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.cjs";
|
|
2
|
+
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, PII_REDACTION_CATEGORIES, type PiiRedactionCategory, type PiiRedactionConfig, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.cjs";
|
|
3
3
|
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.cjs";
|
|
4
4
|
export { SimpleAI, type SimpleAIOptions } from "./client.cjs";
|
|
5
5
|
export { type ActionContext, type ActionHandler, type CustomDataResult, type CustomDataTransformContext, type CustomDataTransformHandler, type CustomDataTransformOperation, defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { type ActionCompileOptions, type ActionDefinition, type ActionHttpHeaders, type ActionIoInput, type ActionOutputParameterMappings, type ActionOutputParameters, type ActionRunDefinition, type ActionsIoSchema, type ActionsIoSchemaNode, type ActionVersionValues, type AgentActionInput, action, actionsIoSchemaFromZod, type BackgroundMessage, type BuiltInActionValues, type BuiltInOperation, type CallableActionDefinition, canonicalActionSource, compileAction, type InlineActionDefinition, type ReferencedActionDefinition, resolveActionHttpHeaders, resolveActionIoSchema, type SourceFileReference, sourceFile, } from "./actions.js";
|
|
2
|
-
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.js";
|
|
2
|
+
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, PII_REDACTION_CATEGORIES, type PiiRedactionCategory, type PiiRedactionConfig, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.js";
|
|
3
3
|
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
4
4
|
export { SimpleAI, type SimpleAIOptions } from "./client.js";
|
|
5
5
|
export { type ActionContext, type ActionHandler, type CustomDataResult, type CustomDataTransformContext, type CustomDataTransformHandler, type CustomDataTransformOperation, defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { action, actionsIoSchemaFromZod, canonicalActionSource, compileAction, resolveActionHttpHeaders, resolveActionIoSchema, sourceFile, } from "./actions.js";
|
|
2
|
-
export { canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, FIVE9_SIP_BYE_HEADER_NAMES, MAX_CONTAINMENT_RULE_DEPTH, node, prompt, reference, resolveExtractionFields, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, } from "./agents.js";
|
|
2
|
+
export { canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, FIVE9_SIP_BYE_HEADER_NAMES, MAX_CONTAINMENT_RULE_DEPTH, node, PII_REDACTION_CATEGORIES, prompt, reference, resolveExtractionFields, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, } from "./agents.js";
|
|
3
3
|
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
4
4
|
export { SimpleAI } from "./client.js";
|
|
5
5
|
export { defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.js";
|
package/dist/projects.cjs
CHANGED
|
@@ -90,6 +90,12 @@ function normalizeAgentV2CommitContent(content) {
|
|
|
90
90
|
voiceFormattingEnabled: content.config.speech.voiceFormattingEnabled ?? false,
|
|
91
91
|
pronunciations: content.config.speech.pronunciations ?? [],
|
|
92
92
|
},
|
|
93
|
+
call: {
|
|
94
|
+
...content.config.call,
|
|
95
|
+
// The server reads a commit that predates the setting as null, leaving the choice to
|
|
96
|
+
// the organization.
|
|
97
|
+
piiRedaction: content.config.call.piiRedaction ?? null,
|
|
98
|
+
},
|
|
93
99
|
// The server declares a `null` default for the background message, so a
|
|
94
100
|
// commit that predates the field means the same as one storing null.
|
|
95
101
|
...(content.config.toolUseSites === undefined
|
package/dist/projects.js
CHANGED
|
@@ -84,6 +84,12 @@ export function normalizeAgentV2CommitContent(content) {
|
|
|
84
84
|
voiceFormattingEnabled: content.config.speech.voiceFormattingEnabled ?? false,
|
|
85
85
|
pronunciations: content.config.speech.pronunciations ?? [],
|
|
86
86
|
},
|
|
87
|
+
call: {
|
|
88
|
+
...content.config.call,
|
|
89
|
+
// The server reads a commit that predates the setting as null, leaving the choice to
|
|
90
|
+
// the organization.
|
|
91
|
+
piiRedaction: content.config.call.piiRedaction ?? null,
|
|
92
|
+
},
|
|
87
93
|
// The server declares a `null` default for the background message, so a
|
|
88
94
|
// commit that predates the field means the same as one storing null.
|
|
89
95
|
...(content.config.toolUseSites === undefined
|