@guava-ai/guava-sdk 0.9.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 -1
- package/bin/example-runner.ts +4 -4
- package/dist/bin/example-runner.js +4 -4
- package/dist/bin/example-runner.js.map +1 -1
- package/dist/examples/help-desk.js +71 -0
- package/dist/examples/help-desk.js.map +1 -0
- package/dist/examples/property-insurance.js +14 -22
- package/dist/examples/property-insurance.js.map +1 -1
- package/dist/examples/restaurant-waitlist.js +74 -0
- package/dist/examples/restaurant-waitlist.js.map +1 -0
- package/dist/examples/scheduling-outbound.js +30 -54
- package/dist/examples/scheduling-outbound.js.map +1 -1
- package/dist/src/{action_item.d.ts → action-item.d.ts} +2 -0
- package/dist/src/{action_item.js → action-item.js} +3 -1
- package/dist/src/action-item.js.map +1 -0
- package/dist/src/agent.d.ts +72 -0
- package/dist/src/agent.js +444 -0
- package/dist/src/agent.js.map +1 -0
- package/dist/src/call-controller.d.ts +1 -1
- package/dist/src/call-controller.js +1 -1
- package/dist/src/call.d.ts +73 -0
- package/dist/src/call.js +252 -0
- package/dist/src/call.js.map +1 -0
- package/dist/src/commands.d.ts +95 -0
- package/dist/src/commands.js +24 -2
- package/dist/src/commands.js.map +1 -1
- package/dist/src/events.d.ts +25 -0
- package/dist/src/events.js +12 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/example-data.d.ts +1 -0
- package/dist/src/example-data.js +41 -1
- package/dist/src/example-data.js.map +1 -1
- package/dist/src/index.d.ts +14 -5
- package/dist/src/index.js +7 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/logging.js +1 -1
- package/dist/src/logging.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/examples/README.md +6 -0
- package/examples/help-desk.ts +60 -0
- package/examples/property-insurance.ts +14 -30
- package/examples/restaurant-waitlist.ts +47 -0
- package/examples/scheduling-outbound.ts +40 -76
- package/package.json +2 -1
- package/src/{action_item.ts → action-item.ts} +3 -0
- package/src/agent.ts +439 -0
- package/src/call-controller.ts +1 -1
- package/src/call.ts +279 -0
- package/src/commands.ts +31 -1
- package/src/events.ts +15 -0
- package/src/example-data.ts +41 -0
- package/src/index.ts +7 -5
- package/src/logging.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/examples/credit-card-activation.js +0 -177
- package/dist/examples/credit-card-activation.js.map +0 -1
- package/dist/examples/thai-palace.js +0 -94
- package/dist/examples/thai-palace.js.map +0 -1
- package/dist/src/action_item.js.map +0 -1
- package/examples/credit-card-activation.ts +0 -178
- package/examples/thai-palace.ts +0 -67
- /package/dist/examples/{credit-card-activation.d.ts → help-desk.d.ts} +0 -0
- /package/dist/examples/{thai-palace.d.ts → restaurant-waitlist.d.ts} +0 -0
package/dist/src/call.js
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.unshift(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
28
|
+
};
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Call = void 0;
|
|
38
|
+
const logging_ts_1 = require("./logging.js");
|
|
39
|
+
const commands_ts_1 = require("./commands.js");
|
|
40
|
+
const action_item_ts_1 = require("./action-item.js");
|
|
41
|
+
const telemetry_ts_1 = require("./telemetry.js");
|
|
42
|
+
let Call = (() => {
|
|
43
|
+
let _classDecorators = [telemetry_ts_1.telemetryClient.trackClass()];
|
|
44
|
+
let _classDescriptor;
|
|
45
|
+
let _classExtraInitializers = [];
|
|
46
|
+
let _classThis;
|
|
47
|
+
var Call = class {
|
|
48
|
+
static { _classThis = this; }
|
|
49
|
+
static {
|
|
50
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
51
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
52
|
+
Call = _classThis = _classDescriptor.value;
|
|
53
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
54
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
55
|
+
}
|
|
56
|
+
_commandQueue = [];
|
|
57
|
+
_variables = {};
|
|
58
|
+
logger;
|
|
59
|
+
// drain functions are expected to cleanup
|
|
60
|
+
// the part of the queue that is successfully sent from its
|
|
61
|
+
// input (mutating it) (i.e. _drain should use Array.splice)
|
|
62
|
+
_drain;
|
|
63
|
+
_fieldValues = {};
|
|
64
|
+
constructor(variables = {}, logger = (0, logging_ts_1.getDefaultLogger)()) {
|
|
65
|
+
// Set initial variables.
|
|
66
|
+
this._variables = { ...variables };
|
|
67
|
+
// Set up the default logger.
|
|
68
|
+
this.logger = logger;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @description Supply a function used to consume commands from the internal command queue.
|
|
72
|
+
*
|
|
73
|
+
* The function is expected to remove from the argument array commands that it has handled (iterating
|
|
74
|
+
* through the result of `Array.splice(0)` is sufficient)
|
|
75
|
+
*/
|
|
76
|
+
async setDrain(newDrain) {
|
|
77
|
+
this._drain = newDrain;
|
|
78
|
+
await this.flush();
|
|
79
|
+
}
|
|
80
|
+
async flush() {
|
|
81
|
+
await this._drain?.call(this, this._commandQueue);
|
|
82
|
+
}
|
|
83
|
+
async getField(key) {
|
|
84
|
+
// Async since the implementation is likely to become async in teh future.
|
|
85
|
+
if (key in this._fieldValues) {
|
|
86
|
+
return this._fieldValues[key];
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async sendCommand(schema, data) {
|
|
93
|
+
const command = schema.parse(data);
|
|
94
|
+
this._commandQueue.push(command);
|
|
95
|
+
await this.flush();
|
|
96
|
+
}
|
|
97
|
+
async setLanguageMode(args) {
|
|
98
|
+
await this.sendCommand(commands_ts_1.SetLanguageModeCommand, {
|
|
99
|
+
command_type: "set-language-mode",
|
|
100
|
+
primary: args.primary ?? "english",
|
|
101
|
+
secondary: args.secondary ?? [],
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @description provide identifiers the agent will use to identify the virtual agent
|
|
106
|
+
*/
|
|
107
|
+
async setPersona(args) {
|
|
108
|
+
await this.sendCommand(commands_ts_1.SetPersona, {
|
|
109
|
+
command_type: "set-persona",
|
|
110
|
+
organization_name: args.organizationName,
|
|
111
|
+
agent_name: args.agentName,
|
|
112
|
+
agent_purpose: args.agentPurpose,
|
|
113
|
+
voice: args.voice,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @description direct the agent to collect information
|
|
118
|
+
* @param taskArgs.task_id unique identifier for this task
|
|
119
|
+
* @param taskArgs.objective high-level goal for the agent
|
|
120
|
+
* @param taskArgs.checklist ordered list of fields, statements, or instructions to collect
|
|
121
|
+
*/
|
|
122
|
+
async setTask(taskArgs) {
|
|
123
|
+
const { taskId, objective = "", checklist = [], completionCriteria } = taskArgs;
|
|
124
|
+
if (!objective && checklist.length === 0) {
|
|
125
|
+
throw new Error("At least one of ['objective', 'checklist'] must be provided.");
|
|
126
|
+
}
|
|
127
|
+
const action_items = checklist.map((item) => {
|
|
128
|
+
if (typeof item === "string") {
|
|
129
|
+
return { item_type: "todo", description: item };
|
|
130
|
+
}
|
|
131
|
+
if (item.item_type === "field") {
|
|
132
|
+
if (item.choiceGenerator) {
|
|
133
|
+
throw new Error("choiceGenerator is not compatible with the Agent / Call API. Use searchable=true and register a handler.");
|
|
134
|
+
}
|
|
135
|
+
const { choiceGenerator: _, ...fieldData } = item;
|
|
136
|
+
return { ...fieldData, is_search_field: item.searchable };
|
|
137
|
+
}
|
|
138
|
+
return item;
|
|
139
|
+
});
|
|
140
|
+
await this.sendCommand(commands_ts_1.SetTaskCommand, {
|
|
141
|
+
command_type: "set-task",
|
|
142
|
+
task_id: taskId,
|
|
143
|
+
objective,
|
|
144
|
+
action_items,
|
|
145
|
+
completion_criteria: completionCriteria,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
async transfer(destination, instructions) {
|
|
149
|
+
await this.sendCommand(commands_ts_1.TransferCommand, {
|
|
150
|
+
command_type: "transfer-call",
|
|
151
|
+
to_number: destination,
|
|
152
|
+
transfer_message: instructions ?? "Notify the caller that you will be transferring them, and then transfer.",
|
|
153
|
+
soft_transfer: true,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
async addInfo(label, info) {
|
|
157
|
+
await this.sendInstruction(`Here is some information about the following topic ${label}:\n${JSON.stringify(info, null, 2)}`);
|
|
158
|
+
}
|
|
159
|
+
async retryTask(reason) {
|
|
160
|
+
await this.sendCommand(commands_ts_1.RetryTaskCommand, {
|
|
161
|
+
command_type: "retry-task",
|
|
162
|
+
reason,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
async readScript(script) {
|
|
166
|
+
await this.sendCommand(commands_ts_1.ReadScriptCommand, {
|
|
167
|
+
command_type: "read-script",
|
|
168
|
+
script,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
async sendInstruction(instruction) {
|
|
172
|
+
await this.sendCommand(commands_ts_1.SendInstructionCommand, {
|
|
173
|
+
command_type: "send-instruction",
|
|
174
|
+
instruction: instruction,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @description hang up an accepted call
|
|
179
|
+
*/
|
|
180
|
+
async hangup(final_instructions = "") {
|
|
181
|
+
let instructions;
|
|
182
|
+
if (final_instructions) {
|
|
183
|
+
instructions = `Start ending the conversation. Here are your final instructions: ${final_instructions} Once you've completed the final instructions, naturally end the conversation and hang up the call.`;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
instructions = "Naturally end the conversation and hang up the call.";
|
|
187
|
+
}
|
|
188
|
+
await this.sendInstruction(instructions);
|
|
189
|
+
}
|
|
190
|
+
async reachPerson(contactFullName, options = {}) {
|
|
191
|
+
const outcomes = options.outcomes ?? [
|
|
192
|
+
{ key: "available", description: "The contact is available to speak." },
|
|
193
|
+
{
|
|
194
|
+
key: "unavailable",
|
|
195
|
+
description: "The contact is not available to speak. This includes reaching a wrong number.",
|
|
196
|
+
},
|
|
197
|
+
];
|
|
198
|
+
const availabilityDescription = `The availability of ${contactFullName}` +
|
|
199
|
+
(outcomes.some((o) => o.description)
|
|
200
|
+
? "\nDetailed descriptions of each choice:\n" +
|
|
201
|
+
outcomes
|
|
202
|
+
.filter((o) => o.description)
|
|
203
|
+
.map((o) => ` - ${o.key}: ${o.description}`)
|
|
204
|
+
.join("\n")
|
|
205
|
+
: "");
|
|
206
|
+
const checklist = [
|
|
207
|
+
options.greeting !== undefined
|
|
208
|
+
? (0, action_item_ts_1.Say)(options.greeting)
|
|
209
|
+
: `Greet the person who answered the phone. Notify them who you are calling on behalf of and the purpose of the call. Ask to speak with ${contactFullName}`,
|
|
210
|
+
{
|
|
211
|
+
item_type: "field",
|
|
212
|
+
key: "contact_availability",
|
|
213
|
+
field_type: "multiple_choice",
|
|
214
|
+
description: availabilityDescription,
|
|
215
|
+
choices: outcomes.map((o) => o.key),
|
|
216
|
+
},
|
|
217
|
+
];
|
|
218
|
+
const nextActionLines = outcomes
|
|
219
|
+
.filter((o) => o.nextActionPreview)
|
|
220
|
+
.map((o) => `- ${o.key} → ${o.nextActionPreview}`);
|
|
221
|
+
if (nextActionLines.length > 0) {
|
|
222
|
+
checklist.push("If a next action is defined below for the value of `contact_availability`, briefly ask the contact to wait just a second while you perform it.\n" +
|
|
223
|
+
nextActionLines.join("\n"));
|
|
224
|
+
}
|
|
225
|
+
const objective = `\
|
|
226
|
+
OBJECTIVE:
|
|
227
|
+
Your goal is to reach ${contactFullName} and determine their availability to proceed with this call.
|
|
228
|
+
|
|
229
|
+
RULES:
|
|
230
|
+
1. If the initial respondent is NOT ${contactFullName}:
|
|
231
|
+
- Politely ask to speak with ${contactFullName}
|
|
232
|
+
- Wait to be transferred or for ${contactFullName} to come to the phone
|
|
233
|
+
2. Once you have ${contactFullName} on the line:
|
|
234
|
+
- Briefly restate who you are and the purpose of your call
|
|
235
|
+
- Determine and record their current availability status
|
|
236
|
+
3. DO NOT hang up the call under any circumstances, unless it's a wrong number.
|
|
237
|
+
|
|
238
|
+
TASK COMPLETION REQUIREMENTS:
|
|
239
|
+
- The availability of ${contactFullName} must be recorded in \`contact_availability\`.`;
|
|
240
|
+
await this.setTask({ taskId: "reach_person", objective, checklist });
|
|
241
|
+
}
|
|
242
|
+
async setVariable(variableName, variableValue) {
|
|
243
|
+
this._variables[variableName] = variableValue;
|
|
244
|
+
}
|
|
245
|
+
async getVariable(variableName) {
|
|
246
|
+
return this._variables[variableName] ?? null;
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
return Call = _classThis;
|
|
250
|
+
})();
|
|
251
|
+
exports.Call = Call;
|
|
252
|
+
//# sourceMappingURL=call.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6D;AAC7D,+CAUuB;AASvB,qDAAuC;AACvC,iDAAiD;IAapC,IAAI;4BADhB,8BAAe,CAAC,UAAU,EAAE;;;;;;;;YAC7B,6KAoPC;;;YApPY,uDAAI;;QACP,aAAa,GAAc,EAAE,CAAC;QAC9B,UAAU,GAAwB,EAAE,CAAC;QACnC,MAAM,CAAS;QAEzB,0CAA0C;QAC1C,2DAA2D;QAC3D,4DAA4D;QACpD,MAAM,CAAmC;QACjD,YAAY,GAA4B,EAAE,CAAC;QAE3C,YAAY,YAAiC,EAAE,EAAE,SAAiB,IAAA,6BAAgB,GAAE;YAClF,yBAAyB;YACzB,IAAI,CAAC,UAAU,GA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C,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC;YACrD,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC/B,SAAS,CAAC,IAAI,CACZ,kJAAkJ;oBAChJ,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAC7B,CAAC;YACJ,CAAC;YAED,MAAM,SAAS,GAAG;;wBAEE,eAAe;;;sCAGD,eAAe;kCACnB,eAAe;qCACZ,eAAe;mBACjC,eAAe;;;;;;wBAMV,eAAe,gDAAgD,CAAC;YAEpF,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;QACvE,CAAC;QAED,KAAK,CAAC,WAAW,CAAC,YAAoB,EAAE,aAAkB;YACxD,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC;QAChD,CAAC;QAED,KAAK,CAAC,WAAW,CAAC,YAAoB;YACpC,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC;QAC/C,CAAC;;;;AAnPU,oBAAI"}
|
package/dist/src/commands.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare const SetTaskCommand: z.ZodObject<{
|
|
|
40
40
|
description: z.ZodString;
|
|
41
41
|
key: z.ZodDefault<z.ZodString>;
|
|
42
42
|
}, z.core.$strip>]>>;
|
|
43
|
+
completion_criteria: z.ZodOptional<z.ZodString>;
|
|
43
44
|
}, z.core.$strict>;
|
|
44
45
|
export type SetTaskCommand = z.input<typeof SetTaskCommand>;
|
|
45
46
|
export declare const ReadScriptCommand: z.ZodObject<{
|
|
@@ -61,6 +62,32 @@ export declare const SetPersona: z.ZodObject<{
|
|
|
61
62
|
voice: z.ZodOptional<z.ZodString>;
|
|
62
63
|
}, z.core.$strict>;
|
|
63
64
|
export type SetPersona = z.input<typeof SetPersona>;
|
|
65
|
+
export declare const Language: z.ZodEnum<{
|
|
66
|
+
english: "english";
|
|
67
|
+
spanish: "spanish";
|
|
68
|
+
french: "french";
|
|
69
|
+
german: "german";
|
|
70
|
+
italian: "italian";
|
|
71
|
+
}>;
|
|
72
|
+
export type Language = z.infer<typeof Language>;
|
|
73
|
+
export declare const SetLanguageModeCommand: z.ZodObject<{
|
|
74
|
+
command_type: z.ZodLiteral<"set-language-mode">;
|
|
75
|
+
primary: z.ZodDefault<z.ZodEnum<{
|
|
76
|
+
english: "english";
|
|
77
|
+
spanish: "spanish";
|
|
78
|
+
french: "french";
|
|
79
|
+
german: "german";
|
|
80
|
+
italian: "italian";
|
|
81
|
+
}>>;
|
|
82
|
+
secondary: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
83
|
+
english: "english";
|
|
84
|
+
spanish: "spanish";
|
|
85
|
+
french: "french";
|
|
86
|
+
german: "german";
|
|
87
|
+
italian: "italian";
|
|
88
|
+
}>>>;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export type SetLanguageModeCommand = z.input<typeof SetLanguageModeCommand>;
|
|
64
91
|
export declare const SendInstructionCommand: z.ZodObject<{
|
|
65
92
|
command_type: z.ZodLiteral<"send-instruction">;
|
|
66
93
|
instruction: z.ZodString;
|
|
@@ -70,14 +97,23 @@ export declare const TransferCommand: z.ZodObject<{
|
|
|
70
97
|
command_type: z.ZodLiteral<"transfer-call">;
|
|
71
98
|
transfer_message: z.ZodString;
|
|
72
99
|
to_number: z.ZodString;
|
|
100
|
+
soft_transfer: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
73
101
|
}, z.core.$strict>;
|
|
74
102
|
export type TransferCommand = z.input<typeof TransferCommand>;
|
|
75
103
|
export declare const RegisteredHooksCommand: z.ZodObject<{
|
|
76
104
|
command_type: z.ZodLiteral<"registered-hooks">;
|
|
77
105
|
has_on_question: z.ZodBoolean;
|
|
78
106
|
has_on_intent: z.ZodBoolean;
|
|
107
|
+
has_on_action_requested: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
79
108
|
}, z.core.$strict>;
|
|
80
109
|
export type RegisteredHooksCommand = z.input<typeof RegisteredHooksCommand>;
|
|
110
|
+
export declare const ActionSuggestionCommand: z.ZodObject<{
|
|
111
|
+
command_type: z.ZodLiteral<"action-suggestion">;
|
|
112
|
+
intent_id: z.ZodString;
|
|
113
|
+
action_key: z.ZodNullable<z.ZodString>;
|
|
114
|
+
action_description: z.ZodDefault<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
export type ActionSuggestionCommand = z.input<typeof ActionSuggestionCommand>;
|
|
81
117
|
export declare const ChoiceResultCommand: z.ZodObject<{
|
|
82
118
|
command_type: z.ZodLiteral<"choice-query-result">;
|
|
83
119
|
field_key: z.ZodString;
|
|
@@ -86,6 +122,11 @@ export declare const ChoiceResultCommand: z.ZodObject<{
|
|
|
86
122
|
other_choices: z.ZodArray<z.ZodString>;
|
|
87
123
|
}, z.core.$strict>;
|
|
88
124
|
export type ChoiceResultCommand = z.input<typeof ChoiceResultCommand>;
|
|
125
|
+
export declare const RetryTaskCommand: z.ZodObject<{
|
|
126
|
+
command_type: z.ZodLiteral<"retry-task">;
|
|
127
|
+
reason: z.ZodString;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
export type RetryTaskCommand = z.input<typeof RetryTaskCommand>;
|
|
89
130
|
export declare const AnyCommand: z.ZodUnion<readonly [z.ZodObject<{
|
|
90
131
|
command_type: z.ZodLiteral<"start-outbound">;
|
|
91
132
|
from_number: z.ZodOptional<z.ZodE164>;
|
|
@@ -119,6 +160,7 @@ export declare const AnyCommand: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
119
160
|
description: z.ZodString;
|
|
120
161
|
key: z.ZodDefault<z.ZodString>;
|
|
121
162
|
}, z.core.$strip>]>>;
|
|
163
|
+
completion_criteria: z.ZodOptional<z.ZodString>;
|
|
122
164
|
}, z.core.$strict>, z.ZodObject<{
|
|
123
165
|
command_type: z.ZodLiteral<"read-script">;
|
|
124
166
|
script: z.ZodString;
|
|
@@ -132,6 +174,22 @@ export declare const AnyCommand: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
132
174
|
organization_name: z.ZodOptional<z.ZodString>;
|
|
133
175
|
agent_purpose: z.ZodOptional<z.ZodString>;
|
|
134
176
|
voice: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
command_type: z.ZodLiteral<"set-language-mode">;
|
|
179
|
+
primary: z.ZodDefault<z.ZodEnum<{
|
|
180
|
+
english: "english";
|
|
181
|
+
spanish: "spanish";
|
|
182
|
+
french: "french";
|
|
183
|
+
german: "german";
|
|
184
|
+
italian: "italian";
|
|
185
|
+
}>>;
|
|
186
|
+
secondary: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
187
|
+
english: "english";
|
|
188
|
+
spanish: "spanish";
|
|
189
|
+
french: "french";
|
|
190
|
+
german: "german";
|
|
191
|
+
italian: "italian";
|
|
192
|
+
}>>>;
|
|
135
193
|
}, z.core.$strict>, z.ZodObject<{
|
|
136
194
|
command_type: z.ZodLiteral<"send-instruction">;
|
|
137
195
|
instruction: z.ZodString;
|
|
@@ -139,16 +197,26 @@ export declare const AnyCommand: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
139
197
|
command_type: z.ZodLiteral<"transfer-call">;
|
|
140
198
|
transfer_message: z.ZodString;
|
|
141
199
|
to_number: z.ZodString;
|
|
200
|
+
soft_transfer: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
142
201
|
}, z.core.$strict>, z.ZodObject<{
|
|
143
202
|
command_type: z.ZodLiteral<"registered-hooks">;
|
|
144
203
|
has_on_question: z.ZodBoolean;
|
|
145
204
|
has_on_intent: z.ZodBoolean;
|
|
205
|
+
has_on_action_requested: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
146
206
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
207
|
command_type: z.ZodLiteral<"choice-query-result">;
|
|
148
208
|
field_key: z.ZodString;
|
|
149
209
|
query_id: z.ZodString;
|
|
150
210
|
matched_choices: z.ZodArray<z.ZodString>;
|
|
151
211
|
other_choices: z.ZodArray<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
command_type: z.ZodLiteral<"action-suggestion">;
|
|
214
|
+
intent_id: z.ZodString;
|
|
215
|
+
action_key: z.ZodNullable<z.ZodString>;
|
|
216
|
+
action_description: z.ZodDefault<z.ZodString>;
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
218
|
+
command_type: z.ZodLiteral<"retry-task">;
|
|
219
|
+
reason: z.ZodString;
|
|
152
220
|
}, z.core.$strict>]>;
|
|
153
221
|
export type Command = z.input<typeof AnyCommand>;
|
|
154
222
|
export declare const InboundTunnelCommand: z.ZodObject<{
|
|
@@ -186,6 +254,7 @@ export declare const InboundTunnelCommand: z.ZodObject<{
|
|
|
186
254
|
description: z.ZodString;
|
|
187
255
|
key: z.ZodDefault<z.ZodString>;
|
|
188
256
|
}, z.core.$strip>]>>;
|
|
257
|
+
completion_criteria: z.ZodOptional<z.ZodString>;
|
|
189
258
|
}, z.core.$strict>, z.ZodObject<{
|
|
190
259
|
command_type: z.ZodLiteral<"read-script">;
|
|
191
260
|
script: z.ZodString;
|
|
@@ -199,6 +268,22 @@ export declare const InboundTunnelCommand: z.ZodObject<{
|
|
|
199
268
|
organization_name: z.ZodOptional<z.ZodString>;
|
|
200
269
|
agent_purpose: z.ZodOptional<z.ZodString>;
|
|
201
270
|
voice: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
command_type: z.ZodLiteral<"set-language-mode">;
|
|
273
|
+
primary: z.ZodDefault<z.ZodEnum<{
|
|
274
|
+
english: "english";
|
|
275
|
+
spanish: "spanish";
|
|
276
|
+
french: "french";
|
|
277
|
+
german: "german";
|
|
278
|
+
italian: "italian";
|
|
279
|
+
}>>;
|
|
280
|
+
secondary: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
281
|
+
english: "english";
|
|
282
|
+
spanish: "spanish";
|
|
283
|
+
french: "french";
|
|
284
|
+
german: "german";
|
|
285
|
+
italian: "italian";
|
|
286
|
+
}>>>;
|
|
202
287
|
}, z.core.$strict>, z.ZodObject<{
|
|
203
288
|
command_type: z.ZodLiteral<"send-instruction">;
|
|
204
289
|
instruction: z.ZodString;
|
|
@@ -206,16 +291,26 @@ export declare const InboundTunnelCommand: z.ZodObject<{
|
|
|
206
291
|
command_type: z.ZodLiteral<"transfer-call">;
|
|
207
292
|
transfer_message: z.ZodString;
|
|
208
293
|
to_number: z.ZodString;
|
|
294
|
+
soft_transfer: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
209
295
|
}, z.core.$strict>, z.ZodObject<{
|
|
210
296
|
command_type: z.ZodLiteral<"registered-hooks">;
|
|
211
297
|
has_on_question: z.ZodBoolean;
|
|
212
298
|
has_on_intent: z.ZodBoolean;
|
|
299
|
+
has_on_action_requested: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
213
300
|
}, z.core.$strict>, z.ZodObject<{
|
|
214
301
|
command_type: z.ZodLiteral<"choice-query-result">;
|
|
215
302
|
field_key: z.ZodString;
|
|
216
303
|
query_id: z.ZodString;
|
|
217
304
|
matched_choices: z.ZodArray<z.ZodString>;
|
|
218
305
|
other_choices: z.ZodArray<z.ZodString>;
|
|
306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
307
|
+
command_type: z.ZodLiteral<"action-suggestion">;
|
|
308
|
+
intent_id: z.ZodString;
|
|
309
|
+
action_key: z.ZodNullable<z.ZodString>;
|
|
310
|
+
action_description: z.ZodDefault<z.ZodString>;
|
|
311
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
312
|
+
command_type: z.ZodLiteral<"retry-task">;
|
|
313
|
+
reason: z.ZodString;
|
|
219
314
|
}, z.core.$strict>]>;
|
|
220
315
|
}, z.core.$strict>;
|
|
221
316
|
export type InboundTunnelCommand = z.input<typeof InboundTunnelCommand>;
|
package/dist/src/commands.js
CHANGED
|
@@ -33,9 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.InboundTunnelCommand = exports.AnyCommand = exports.ChoiceResultCommand = exports.RegisteredHooksCommand = exports.TransferCommand = exports.SendInstructionCommand = exports.SetPersona = exports.AnswerQuestionCommand = exports.ReadScriptCommand = exports.SetTaskCommand = exports.AcceptInboundCallCommand = exports.RejectInboundCallCommand = exports.ListenInboundCommand = exports.StartOutboundCallCommand = void 0;
|
|
36
|
+
exports.InboundTunnelCommand = exports.AnyCommand = exports.RetryTaskCommand = exports.ChoiceResultCommand = exports.ActionSuggestionCommand = exports.RegisteredHooksCommand = exports.TransferCommand = exports.SendInstructionCommand = exports.SetLanguageModeCommand = exports.Language = exports.SetPersona = exports.AnswerQuestionCommand = exports.ReadScriptCommand = exports.SetTaskCommand = exports.AcceptInboundCallCommand = exports.RejectInboundCallCommand = exports.ListenInboundCommand = exports.StartOutboundCallCommand = void 0;
|
|
37
37
|
const z = __importStar(require("zod"));
|
|
38
|
-
const action_item_ts_1 = require("./
|
|
38
|
+
const action_item_ts_1 = require("./action-item.js");
|
|
39
39
|
exports.StartOutboundCallCommand = z.strictObject({
|
|
40
40
|
command_type: z.literal("start-outbound"),
|
|
41
41
|
from_number: z.e164().optional(),
|
|
@@ -61,6 +61,7 @@ exports.SetTaskCommand = z.strictObject({
|
|
|
61
61
|
task_id: z.string(),
|
|
62
62
|
objective: z.string(),
|
|
63
63
|
action_items: z.array(action_item_ts_1.ActionItem),
|
|
64
|
+
completion_criteria: z.string().optional(),
|
|
64
65
|
});
|
|
65
66
|
exports.ReadScriptCommand = z.strictObject({
|
|
66
67
|
command_type: z.literal("read-script"),
|
|
@@ -78,6 +79,12 @@ exports.SetPersona = z.strictObject({
|
|
|
78
79
|
agent_purpose: z.string().optional(),
|
|
79
80
|
voice: z.string().optional(),
|
|
80
81
|
});
|
|
82
|
+
exports.Language = z.enum(["english", "spanish", "french", "german", "italian"]);
|
|
83
|
+
exports.SetLanguageModeCommand = z.strictObject({
|
|
84
|
+
command_type: z.literal("set-language-mode"),
|
|
85
|
+
primary: exports.Language.default("english"),
|
|
86
|
+
secondary: z.array(exports.Language).default([]),
|
|
87
|
+
});
|
|
81
88
|
exports.SendInstructionCommand = z.strictObject({
|
|
82
89
|
command_type: z.literal("send-instruction"),
|
|
83
90
|
instruction: z.string(),
|
|
@@ -86,11 +93,19 @@ exports.TransferCommand = z.strictObject({
|
|
|
86
93
|
command_type: z.literal("transfer-call"),
|
|
87
94
|
transfer_message: z.string(),
|
|
88
95
|
to_number: z.string(),
|
|
96
|
+
soft_transfer: z.boolean().optional().default(false),
|
|
89
97
|
});
|
|
90
98
|
exports.RegisteredHooksCommand = z.strictObject({
|
|
91
99
|
command_type: z.literal("registered-hooks"),
|
|
92
100
|
has_on_question: z.boolean(),
|
|
93
101
|
has_on_intent: z.boolean(),
|
|
102
|
+
has_on_action_requested: z.boolean().optional().default(false),
|
|
103
|
+
});
|
|
104
|
+
exports.ActionSuggestionCommand = z.strictObject({
|
|
105
|
+
command_type: z.literal("action-suggestion"),
|
|
106
|
+
intent_id: z.string(),
|
|
107
|
+
action_key: z.string().nullable(),
|
|
108
|
+
action_description: z.string().default(""),
|
|
94
109
|
});
|
|
95
110
|
exports.ChoiceResultCommand = z.strictObject({
|
|
96
111
|
command_type: z.literal("choice-query-result"),
|
|
@@ -99,6 +114,10 @@ exports.ChoiceResultCommand = z.strictObject({
|
|
|
99
114
|
matched_choices: z.array(z.string()),
|
|
100
115
|
other_choices: z.array(z.string()),
|
|
101
116
|
});
|
|
117
|
+
exports.RetryTaskCommand = z.strictObject({
|
|
118
|
+
command_type: z.literal("retry-task"),
|
|
119
|
+
reason: z.string(),
|
|
120
|
+
});
|
|
102
121
|
exports.AnyCommand = z.union([
|
|
103
122
|
exports.StartOutboundCallCommand,
|
|
104
123
|
exports.ListenInboundCommand,
|
|
@@ -108,10 +127,13 @@ exports.AnyCommand = z.union([
|
|
|
108
127
|
exports.ReadScriptCommand,
|
|
109
128
|
exports.AnswerQuestionCommand,
|
|
110
129
|
exports.SetPersona,
|
|
130
|
+
exports.SetLanguageModeCommand,
|
|
111
131
|
exports.SendInstructionCommand,
|
|
112
132
|
exports.TransferCommand,
|
|
113
133
|
exports.RegisteredHooksCommand,
|
|
114
134
|
exports.ChoiceResultCommand,
|
|
135
|
+
exports.ActionSuggestionCommand,
|
|
136
|
+
exports.RetryTaskCommand,
|
|
115
137
|
]);
|
|
116
138
|
exports.InboundTunnelCommand = z.strictObject({
|
|
117
139
|
call_id: z.string(),
|
package/dist/src/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,qDAA8C;AAEjC,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAEzC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,CAAC;KAClC,YAAY,CAAC;IACZ,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAEzC,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CAChD,CAAC;KACD,M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C,KAAK,CAAC;IAChC,gCAAwB;IACxB,4BAAoB;IACpB,gCAAwB;IACxB,gCAAwB;IACxB,sBAAc;IACd,yBAAiB;IACjB,6BAAqB;IACrB,kBAAU;IACV,8BAAsB;IACtB,8BAAsB;IACtB,uBAAe;IACf,8BAAsB;IACtB,2BAAmB;IACnB,+BAAuB;IACvB,wBAAgB;CACjB,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,kBAAU;CACpB,CAAC,CAAC"}
|
package/dist/src/events.d.ts
CHANGED
|
@@ -81,6 +81,17 @@ export declare const ChoiceQueryEvent: z.ZodObject<{
|
|
|
81
81
|
query_id: z.ZodString;
|
|
82
82
|
}, z.core.$strip>;
|
|
83
83
|
export type ChoiceQueryEvent = z.infer<typeof ChoiceQueryEvent>;
|
|
84
|
+
export declare const ActionRequestEvent: z.ZodObject<{
|
|
85
|
+
event_type: z.ZodLiteral<"action-request">;
|
|
86
|
+
intent_id: z.ZodString;
|
|
87
|
+
intent_summary: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type ActionRequestEvent = z.infer<typeof ActionRequestEvent>;
|
|
90
|
+
export declare const ExecuteActionEvent: z.ZodObject<{
|
|
91
|
+
event_type: z.ZodLiteral<"execute-action">;
|
|
92
|
+
action_key: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type ExecuteActionEvent = z.infer<typeof ExecuteActionEvent>;
|
|
84
95
|
export declare const GuavaEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
85
96
|
event_type: z.ZodLiteral<"session-started">;
|
|
86
97
|
session_id: z.ZodString;
|
|
@@ -129,6 +140,13 @@ export declare const GuavaEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
129
140
|
field_key: z.ZodString;
|
|
130
141
|
query: z.ZodString;
|
|
131
142
|
query_id: z.ZodString;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
event_type: z.ZodLiteral<"action-request">;
|
|
145
|
+
intent_id: z.ZodString;
|
|
146
|
+
intent_summary: z.ZodString;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
event_type: z.ZodLiteral<"execute-action">;
|
|
149
|
+
action_key: z.ZodString;
|
|
132
150
|
}, z.core.$strip>]>;
|
|
133
151
|
export type GuavaEvent = z.infer<typeof GuavaEvent>;
|
|
134
152
|
export declare function decodeEvent(serialized_event: string | ArrayBuffer | Buffer | Buffer[]): GuavaEvent | null;
|
|
@@ -182,6 +200,13 @@ export declare const InboundTunnelEvent: z.ZodObject<{
|
|
|
182
200
|
field_key: z.ZodString;
|
|
183
201
|
query: z.ZodString;
|
|
184
202
|
query_id: z.ZodString;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
event_type: z.ZodLiteral<"action-request">;
|
|
205
|
+
intent_id: z.ZodString;
|
|
206
|
+
intent_summary: z.ZodString;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
event_type: z.ZodLiteral<"execute-action">;
|
|
209
|
+
action_key: z.ZodString;
|
|
185
210
|
}, z.core.$strip>]>;
|
|
186
211
|
}, z.core.$strip>;
|
|
187
212
|
export type InboundTunnelEvent = z.infer<typeof InboundTunnelEvent>;
|
package/dist/src/events.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.InboundTunnelEvent = exports.GuavaEvent = exports.ChoiceQueryEvent = exports.BotSessionEnded = exports.OutboundCallFailed = exports.OutboundCallConnected = exports.TaskCompletedEvent = exports.ActionItemCompletedEvent = exports.IntentEvent = exports.AgentQuestionEvent = exports.WarningEvent = exports.ErrorEvent = exports.AgentSpeechEvent = exports.CallerSpeechEvent = exports.InboundCallEvent = exports.SessionStartedEvent = void 0;
|
|
36
|
+
exports.InboundTunnelEvent = exports.GuavaEvent = exports.ExecuteActionEvent = exports.ActionRequestEvent = exports.ChoiceQueryEvent = exports.BotSessionEnded = exports.OutboundCallFailed = exports.OutboundCallConnected = exports.TaskCompletedEvent = exports.ActionItemCompletedEvent = exports.IntentEvent = exports.AgentQuestionEvent = exports.WarningEvent = exports.ErrorEvent = exports.AgentSpeechEvent = exports.CallerSpeechEvent = exports.InboundCallEvent = exports.SessionStartedEvent = void 0;
|
|
37
37
|
exports.decodeEvent = decodeEvent;
|
|
38
38
|
const z = __importStar(require("zod"));
|
|
39
39
|
exports.SessionStartedEvent = z.object({
|
|
@@ -104,6 +104,15 @@ exports.ChoiceQueryEvent = z.object({
|
|
|
104
104
|
query: z.string(),
|
|
105
105
|
query_id: z.string(),
|
|
106
106
|
});
|
|
107
|
+
exports.ActionRequestEvent = z.object({
|
|
108
|
+
event_type: z.literal("action-request"),
|
|
109
|
+
intent_id: z.string(),
|
|
110
|
+
intent_summary: z.string(),
|
|
111
|
+
});
|
|
112
|
+
exports.ExecuteActionEvent = z.object({
|
|
113
|
+
event_type: z.literal("execute-action"),
|
|
114
|
+
action_key: z.string(),
|
|
115
|
+
});
|
|
107
116
|
exports.GuavaEvent = z.union([
|
|
108
117
|
exports.SessionStartedEvent,
|
|
109
118
|
exports.InboundCallEvent,
|
|
@@ -119,6 +128,8 @@ exports.GuavaEvent = z.union([
|
|
|
119
128
|
exports.OutboundCallFailed,
|
|
120
129
|
exports.BotSessionEnded,
|
|
121
130
|
exports.ChoiceQueryEvent,
|
|
131
|
+
exports.ActionRequestEvent,
|
|
132
|
+
exports.ExecuteActionEvent,
|
|
122
133
|
]);
|
|
123
134
|
const _KNOWN_EVENT_TYPES = new Set(exports.GuavaEvent.options.map((schema) => schema.shape.event_type.value));
|
|
124
135
|
function decodeEvent(serialized_event) {
|
package/dist/src/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2IA,kCA0BC;AArKD,uCAAyB;AAEZ,QAAA,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACrC,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGH;;GAEG;AACU,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAEtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGH;;GAEG;AACU,QAAA,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAErC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EA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