syllable-sdk 0.1.0-alpha.50 → 0.1.0-alpha.52
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/docs/sdks/agents/README.md +8 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mintlify/mint.json +3 -0
- package/models/components/agentcreate.d.ts +13 -1
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +10 -0
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentproperties.d.ts +3 -0
- package/models/components/agentproperties.d.ts.map +1 -1
- package/models/components/agentproperties.js +1 -0
- package/models/components/agentproperties.js.map +1 -1
- package/models/components/agentresponse.d.ts +10 -0
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js +8 -0
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/agentsttprovider.d.ts +37 -0
- package/models/components/agentsttprovider.d.ts.map +1 -0
- package/models/components/agentsttprovider.js +54 -0
- package/models/components/agentsttprovider.js.map +1 -0
- package/models/components/agentupdate.d.ts +13 -1
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +10 -0
- package/models/components/agentupdate.js.map +1 -1
- package/models/components/agentwaitsound.d.ts +37 -0
- package/models/components/agentwaitsound.d.ts.map +1 -0
- package/models/components/agentwaitsound.js +54 -0
- package/models/components/agentwaitsound.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/openapi.json +121 -2
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentcreate.ts +29 -1
- package/src/models/components/agentproperties.ts +1 -0
- package/src/models/components/agentresponse.ts +18 -0
- package/src/models/components/agentsttprovider.ts +40 -0
- package/src/models/components/agentupdate.ts +29 -1
- package/src/models/components/agentwaitsound.ts +40 -0
- package/src/models/components/index.ts +2 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AgentWaitSound$ = exports.AgentWaitSound$outboundSchema = exports.AgentWaitSound$inboundSchema = exports.AgentWaitSound = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* Wait sounds supported by agents.
|
|
33
|
+
*/
|
|
34
|
+
exports.AgentWaitSound = {
|
|
35
|
+
Keyboard1: "Keyboard 1",
|
|
36
|
+
Keyboard2: "Keyboard 2",
|
|
37
|
+
CallCenter: "Call Center",
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.AgentWaitSound$inboundSchema = z.nativeEnum(exports.AgentWaitSound);
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.AgentWaitSound$outboundSchema = exports.AgentWaitSound$inboundSchema;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var AgentWaitSound$;
|
|
48
|
+
(function (AgentWaitSound$) {
|
|
49
|
+
/** @deprecated use `AgentWaitSound$inboundSchema` instead. */
|
|
50
|
+
AgentWaitSound$.inboundSchema = exports.AgentWaitSound$inboundSchema;
|
|
51
|
+
/** @deprecated use `AgentWaitSound$outboundSchema` instead. */
|
|
52
|
+
AgentWaitSound$.outboundSchema = exports.AgentWaitSound$outboundSchema;
|
|
53
|
+
})(AgentWaitSound$ || (exports.AgentWaitSound$ = AgentWaitSound$ = {}));
|
|
54
|
+
//# sourceMappingURL=agentwaitsound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentwaitsound.js","sourceRoot":"","sources":["../../src/models/components/agentwaitsound.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;CACjB,CAAC;AAMX,gBAAgB;AACH,QAAA,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AAEjC,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,oCAA4B,CAAC;AAEjC;;;GAGG;AACH,IAAiB,eAAe,CAK/B;AALD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAC9D,CAAC,EALgB,eAAe,+BAAf,eAAe,QAK/B"}
|
|
@@ -2,6 +2,7 @@ export * from "./agentcreate.js";
|
|
|
2
2
|
export * from "./agentlanguage.js";
|
|
3
3
|
export * from "./agentproperties.js";
|
|
4
4
|
export * from "./agentresponse.js";
|
|
5
|
+
export * from "./agentsttprovider.js";
|
|
5
6
|
export * from "./agenttooldefaults.js";
|
|
6
7
|
export * from "./agenttoolfielddefault.js";
|
|
7
8
|
export * from "./agentupdate.js";
|
|
@@ -10,6 +11,7 @@ export * from "./agentvoicedisplayname.js";
|
|
|
10
11
|
export * from "./agentvoicegender.js";
|
|
11
12
|
export * from "./agentvoicemodel.js";
|
|
12
13
|
export * from "./agentvoicevarname.js";
|
|
14
|
+
export * from "./agentwaitsound.js";
|
|
13
15
|
export * from "./availabletarget.js";
|
|
14
16
|
export * from "./availabletargetproperties.js";
|
|
15
17
|
export * from "./channel.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;A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e,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./agentcreate.js"), exports);
|
|
|
21
21
|
__exportStar(require("./agentlanguage.js"), exports);
|
|
22
22
|
__exportStar(require("./agentproperties.js"), exports);
|
|
23
23
|
__exportStar(require("./agentresponse.js"), exports);
|
|
24
|
+
__exportStar(require("./agentsttprovider.js"), exports);
|
|
24
25
|
__exportStar(require("./agenttooldefaults.js"), exports);
|
|
25
26
|
__exportStar(require("./agenttoolfielddefault.js"), exports);
|
|
26
27
|
__exportStar(require("./agentupdate.js"), exports);
|
|
@@ -29,6 +30,7 @@ __exportStar(require("./agentvoicedisplayname.js"), exports);
|
|
|
29
30
|
__exportStar(require("./agentvoicegender.js"), exports);
|
|
30
31
|
__exportStar(require("./agentvoicemodel.js"), exports);
|
|
31
32
|
__exportStar(require("./agentvoicevarname.js"), exports);
|
|
33
|
+
__exportStar(require("./agentwaitsound.js"), exports);
|
|
32
34
|
__exportStar(require("./availabletarget.js"), exports);
|
|
33
35
|
__exportStar(require("./availabletargetproperties.js"), exports);
|
|
34
36
|
__exportStar(require("./channel.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC;AACvC,kEAAgD;AAChD,iDAA+B;AAC/B,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,+DAA6C;AAC7C,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,6DAA2C;AAC3C,wDAAsC;AACtC,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,8DAA4C;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,yEAAuD;AACvD,gEAA8C;AAC9C,yEAAuD;AACvD,qEAAmD;AACnD,8EAA4D;AAC5D,yDAAuC;AACvC,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,kEAAgD;AAChD,mEAAiD;AACjD,2DAAyC;AACzC,gEAA8C;AAC9C,gEAA8C;AAC9C,wDAAsC;AACtC,2DAAyC;AACzC,qDAAmC;AACnC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,gDAA8B;AAC9B,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C;AAC1C,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,8DAA4C;AAC5C,mDAAiC;AACjC,oEAAkD;AAClD,2DAAyC;AACzC,+DAA6C;AAC7C,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,uEAAqD;AACrD,sDAAoC;AACpC,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC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CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,8DAA4C;AAC5C,mDAAiC;AACjC,oEAAkD;AAClD,2DAAyC;AACzC,+DAA6C;AAC7C,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,uEAAqD;AACrD,sDAAoC;AACpC,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC"}
|
package/openapi.json
CHANGED
|
@@ -7317,8 +7317,40 @@
|
|
|
7317
7317
|
"agent_initiated": {
|
|
7318
7318
|
"type": "boolean",
|
|
7319
7319
|
"title": "Agent Initiated",
|
|
7320
|
-
"description": "Whether the agent initiates conversation with a user after the
|
|
7320
|
+
"description": "Whether the agent initiates conversation with a user after the custom message is delivered",
|
|
7321
7321
|
"default": false
|
|
7322
|
+
},
|
|
7323
|
+
"stt_provider": {
|
|
7324
|
+
"anyOf": [
|
|
7325
|
+
{
|
|
7326
|
+
"$ref": "#/components/schemas/AgentSttProvider"
|
|
7327
|
+
},
|
|
7328
|
+
{
|
|
7329
|
+
"type": "null"
|
|
7330
|
+
}
|
|
7331
|
+
],
|
|
7332
|
+
"description": "Speech-to-text provider for the agent.",
|
|
7333
|
+
"examples": [
|
|
7334
|
+
"Google STT V1",
|
|
7335
|
+
"Google STT V2",
|
|
7336
|
+
"Deepgram Nova 2"
|
|
7337
|
+
]
|
|
7338
|
+
},
|
|
7339
|
+
"wait_sound": {
|
|
7340
|
+
"anyOf": [
|
|
7341
|
+
{
|
|
7342
|
+
"$ref": "#/components/schemas/AgentWaitSound"
|
|
7343
|
+
},
|
|
7344
|
+
{
|
|
7345
|
+
"type": "null"
|
|
7346
|
+
}
|
|
7347
|
+
],
|
|
7348
|
+
"description": "Sound to play while waiting for a response from the LLM.",
|
|
7349
|
+
"examples": [
|
|
7350
|
+
"Keyboard 1",
|
|
7351
|
+
"Keyboard 2",
|
|
7352
|
+
"Call Center"
|
|
7353
|
+
]
|
|
7322
7354
|
}
|
|
7323
7355
|
},
|
|
7324
7356
|
"type": "object",
|
|
@@ -7364,6 +7396,7 @@
|
|
|
7364
7396
|
"enum": [
|
|
7365
7397
|
"id",
|
|
7366
7398
|
"name",
|
|
7399
|
+
"name_exact",
|
|
7367
7400
|
"description",
|
|
7368
7401
|
"label",
|
|
7369
7402
|
"name_description",
|
|
@@ -7503,6 +7536,40 @@
|
|
|
7503
7536
|
"description": "Whether the agent initiates conversation with a user after the custom_message is delivered",
|
|
7504
7537
|
"default": false
|
|
7505
7538
|
},
|
|
7539
|
+
"stt_provider": {
|
|
7540
|
+
"anyOf": [
|
|
7541
|
+
{
|
|
7542
|
+
"type": "string"
|
|
7543
|
+
},
|
|
7544
|
+
{
|
|
7545
|
+
"type": "null"
|
|
7546
|
+
}
|
|
7547
|
+
],
|
|
7548
|
+
"title": "Stt Provider",
|
|
7549
|
+
"description": "Speech-to-text provider for the agent.",
|
|
7550
|
+
"examples": [
|
|
7551
|
+
"Google STT V1",
|
|
7552
|
+
"Google STT V2",
|
|
7553
|
+
"Deepgram Nova 2"
|
|
7554
|
+
]
|
|
7555
|
+
},
|
|
7556
|
+
"wait_sound": {
|
|
7557
|
+
"anyOf": [
|
|
7558
|
+
{
|
|
7559
|
+
"type": "string"
|
|
7560
|
+
},
|
|
7561
|
+
{
|
|
7562
|
+
"type": "null"
|
|
7563
|
+
}
|
|
7564
|
+
],
|
|
7565
|
+
"title": "Wait Sound",
|
|
7566
|
+
"description": "Sound to play while waiting for a response from the LLM.",
|
|
7567
|
+
"examples": [
|
|
7568
|
+
"Keyboard 1",
|
|
7569
|
+
"Keyboard 2",
|
|
7570
|
+
"Call Center"
|
|
7571
|
+
]
|
|
7572
|
+
},
|
|
7506
7573
|
"id": {
|
|
7507
7574
|
"type": "integer",
|
|
7508
7575
|
"title": "Id",
|
|
@@ -7606,6 +7673,16 @@
|
|
|
7606
7673
|
"title": "AgentResponse",
|
|
7607
7674
|
"description": "When a user interacts with the Syllable system, they do so by communicating with an agent.\nAn agent is linked to a prompt, a custom message, and one or more channel targets to define its\nbehavior and capabilities."
|
|
7608
7675
|
},
|
|
7676
|
+
"AgentSttProvider": {
|
|
7677
|
+
"type": "string",
|
|
7678
|
+
"enum": [
|
|
7679
|
+
"Google STT V1",
|
|
7680
|
+
"Google STT V2",
|
|
7681
|
+
"Deepgram Nova 2"
|
|
7682
|
+
],
|
|
7683
|
+
"title": "AgentSttProvider",
|
|
7684
|
+
"description": "Speech-to-text providers supported by agents."
|
|
7685
|
+
},
|
|
7609
7686
|
"AgentToolDefaults": {
|
|
7610
7687
|
"properties": {
|
|
7611
7688
|
"tool_name": {
|
|
@@ -7769,9 +7846,41 @@
|
|
|
7769
7846
|
"agent_initiated": {
|
|
7770
7847
|
"type": "boolean",
|
|
7771
7848
|
"title": "Agent Initiated",
|
|
7772
|
-
"description": "Whether the agent initiates conversation with a user after the
|
|
7849
|
+
"description": "Whether the agent initiates conversation with a user after the custom message is delivered",
|
|
7773
7850
|
"default": false
|
|
7774
7851
|
},
|
|
7852
|
+
"stt_provider": {
|
|
7853
|
+
"anyOf": [
|
|
7854
|
+
{
|
|
7855
|
+
"$ref": "#/components/schemas/AgentSttProvider"
|
|
7856
|
+
},
|
|
7857
|
+
{
|
|
7858
|
+
"type": "null"
|
|
7859
|
+
}
|
|
7860
|
+
],
|
|
7861
|
+
"description": "Speech-to-text provider for the agent.",
|
|
7862
|
+
"examples": [
|
|
7863
|
+
"Google STT V1",
|
|
7864
|
+
"Google STT V2",
|
|
7865
|
+
"Deepgram Nova 2"
|
|
7866
|
+
]
|
|
7867
|
+
},
|
|
7868
|
+
"wait_sound": {
|
|
7869
|
+
"anyOf": [
|
|
7870
|
+
{
|
|
7871
|
+
"$ref": "#/components/schemas/AgentWaitSound"
|
|
7872
|
+
},
|
|
7873
|
+
{
|
|
7874
|
+
"type": "null"
|
|
7875
|
+
}
|
|
7876
|
+
],
|
|
7877
|
+
"description": "Sound to play while waiting for a response from the LLM.",
|
|
7878
|
+
"examples": [
|
|
7879
|
+
"Keyboard 1",
|
|
7880
|
+
"Keyboard 2",
|
|
7881
|
+
"Call Center"
|
|
7882
|
+
]
|
|
7883
|
+
},
|
|
7775
7884
|
"id": {
|
|
7776
7885
|
"type": "integer",
|
|
7777
7886
|
"title": "Id",
|
|
@@ -7966,6 +8075,16 @@
|
|
|
7966
8075
|
"title": "AgentVoiceVarName",
|
|
7967
8076
|
"description": "The variable name of an agent voice (used when procesing messages)."
|
|
7968
8077
|
},
|
|
8078
|
+
"AgentWaitSound": {
|
|
8079
|
+
"type": "string",
|
|
8080
|
+
"enum": [
|
|
8081
|
+
"Keyboard 1",
|
|
8082
|
+
"Keyboard 2",
|
|
8083
|
+
"Call Center"
|
|
8084
|
+
],
|
|
8085
|
+
"title": "AgentWaitSound",
|
|
8086
|
+
"description": "Wait sounds supported by agents."
|
|
8087
|
+
},
|
|
7969
8088
|
"AvailableTarget": {
|
|
7970
8089
|
"properties": {
|
|
7971
8090
|
"organization_id": {
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.2",
|
|
60
|
-
sdkVersion: "0.1.0-alpha.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.52",
|
|
61
61
|
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.52 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -7,12 +7,22 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AgentSttProvider,
|
|
12
|
+
AgentSttProvider$inboundSchema,
|
|
13
|
+
AgentSttProvider$outboundSchema,
|
|
14
|
+
} from "./agentsttprovider.js";
|
|
10
15
|
import {
|
|
11
16
|
AgentToolDefaults,
|
|
12
17
|
AgentToolDefaults$inboundSchema,
|
|
13
18
|
AgentToolDefaults$Outbound,
|
|
14
19
|
AgentToolDefaults$outboundSchema,
|
|
15
20
|
} from "./agenttooldefaults.js";
|
|
21
|
+
import {
|
|
22
|
+
AgentWaitSound,
|
|
23
|
+
AgentWaitSound$inboundSchema,
|
|
24
|
+
AgentWaitSound$outboundSchema,
|
|
25
|
+
} from "./agentwaitsound.js";
|
|
16
26
|
|
|
17
27
|
export type AgentCreate = {
|
|
18
28
|
/**
|
|
@@ -66,9 +76,17 @@ export type AgentCreate = {
|
|
|
66
76
|
*/
|
|
67
77
|
toolHeaders: { [k: string]: string } | null;
|
|
68
78
|
/**
|
|
69
|
-
* Whether the agent initiates conversation with a user after the
|
|
79
|
+
* Whether the agent initiates conversation with a user after the custom message is delivered
|
|
70
80
|
*/
|
|
71
81
|
agentInitiated?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Speech-to-text provider for the agent.
|
|
84
|
+
*/
|
|
85
|
+
sttProvider?: AgentSttProvider | null | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Sound to play while waiting for a response from the LLM.
|
|
88
|
+
*/
|
|
89
|
+
waitSound?: AgentWaitSound | null | undefined;
|
|
72
90
|
};
|
|
73
91
|
|
|
74
92
|
/** @internal */
|
|
@@ -90,6 +108,8 @@ export const AgentCreate$inboundSchema: z.ZodType<
|
|
|
90
108
|
variables: z.record(z.string()),
|
|
91
109
|
tool_headers: z.nullable(z.record(z.string())),
|
|
92
110
|
agent_initiated: z.boolean().default(false),
|
|
111
|
+
stt_provider: z.nullable(AgentSttProvider$inboundSchema).optional(),
|
|
112
|
+
wait_sound: z.nullable(AgentWaitSound$inboundSchema).optional(),
|
|
93
113
|
}).transform((v) => {
|
|
94
114
|
return remap$(v, {
|
|
95
115
|
"prompt_id": "promptId",
|
|
@@ -98,6 +118,8 @@ export const AgentCreate$inboundSchema: z.ZodType<
|
|
|
98
118
|
"prompt_tool_defaults": "promptToolDefaults",
|
|
99
119
|
"tool_headers": "toolHeaders",
|
|
100
120
|
"agent_initiated": "agentInitiated",
|
|
121
|
+
"stt_provider": "sttProvider",
|
|
122
|
+
"wait_sound": "waitSound",
|
|
101
123
|
});
|
|
102
124
|
});
|
|
103
125
|
|
|
@@ -116,6 +138,8 @@ export type AgentCreate$Outbound = {
|
|
|
116
138
|
variables: { [k: string]: string };
|
|
117
139
|
tool_headers: { [k: string]: string } | null;
|
|
118
140
|
agent_initiated: boolean;
|
|
141
|
+
stt_provider?: string | null | undefined;
|
|
142
|
+
wait_sound?: string | null | undefined;
|
|
119
143
|
};
|
|
120
144
|
|
|
121
145
|
/** @internal */
|
|
@@ -137,6 +161,8 @@ export const AgentCreate$outboundSchema: z.ZodType<
|
|
|
137
161
|
variables: z.record(z.string()),
|
|
138
162
|
toolHeaders: z.nullable(z.record(z.string())),
|
|
139
163
|
agentInitiated: z.boolean().default(false),
|
|
164
|
+
sttProvider: z.nullable(AgentSttProvider$outboundSchema).optional(),
|
|
165
|
+
waitSound: z.nullable(AgentWaitSound$outboundSchema).optional(),
|
|
140
166
|
}).transform((v) => {
|
|
141
167
|
return remap$(v, {
|
|
142
168
|
promptId: "prompt_id",
|
|
@@ -145,6 +171,8 @@ export const AgentCreate$outboundSchema: z.ZodType<
|
|
|
145
171
|
promptToolDefaults: "prompt_tool_defaults",
|
|
146
172
|
toolHeaders: "tool_headers",
|
|
147
173
|
agentInitiated: "agent_initiated",
|
|
174
|
+
sttProvider: "stt_provider",
|
|
175
|
+
waitSound: "wait_sound",
|
|
148
176
|
});
|
|
149
177
|
});
|
|
150
178
|
|
|
@@ -106,6 +106,14 @@ export type AgentResponse = {
|
|
|
106
106
|
* Whether the agent initiates conversation with a user after the custom_message is delivered
|
|
107
107
|
*/
|
|
108
108
|
agentInitiated?: boolean | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Speech-to-text provider for the agent.
|
|
111
|
+
*/
|
|
112
|
+
sttProvider?: string | null | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Sound to play while waiting for a response from the LLM.
|
|
115
|
+
*/
|
|
116
|
+
waitSound?: string | null | undefined;
|
|
109
117
|
/**
|
|
110
118
|
* The agent ID
|
|
111
119
|
*/
|
|
@@ -159,6 +167,8 @@ export const AgentResponse$inboundSchema: z.ZodType<
|
|
|
159
167
|
variables: z.record(z.string()),
|
|
160
168
|
tool_headers: z.nullable(z.record(z.string())),
|
|
161
169
|
agent_initiated: z.boolean().default(false),
|
|
170
|
+
stt_provider: z.nullable(z.string()).optional(),
|
|
171
|
+
wait_sound: z.nullable(z.string()).optional(),
|
|
162
172
|
id: z.number().int(),
|
|
163
173
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
164
174
|
last_updated_by: z.nullable(z.string()),
|
|
@@ -177,6 +187,8 @@ export const AgentResponse$inboundSchema: z.ZodType<
|
|
|
177
187
|
"prompt_tool_defaults": "promptToolDefaults",
|
|
178
188
|
"tool_headers": "toolHeaders",
|
|
179
189
|
"agent_initiated": "agentInitiated",
|
|
190
|
+
"stt_provider": "sttProvider",
|
|
191
|
+
"wait_sound": "waitSound",
|
|
180
192
|
"updated_at": "updatedAt",
|
|
181
193
|
"last_updated_by": "lastUpdatedBy",
|
|
182
194
|
"custom_message": "customMessage",
|
|
@@ -200,6 +212,8 @@ export type AgentResponse$Outbound = {
|
|
|
200
212
|
variables: { [k: string]: string };
|
|
201
213
|
tool_headers: { [k: string]: string } | null;
|
|
202
214
|
agent_initiated: boolean;
|
|
215
|
+
stt_provider?: string | null | undefined;
|
|
216
|
+
wait_sound?: string | null | undefined;
|
|
203
217
|
id: number;
|
|
204
218
|
updated_at: string;
|
|
205
219
|
last_updated_by: string | null;
|
|
@@ -229,6 +243,8 @@ export const AgentResponse$outboundSchema: z.ZodType<
|
|
|
229
243
|
variables: z.record(z.string()),
|
|
230
244
|
toolHeaders: z.nullable(z.record(z.string())),
|
|
231
245
|
agentInitiated: z.boolean().default(false),
|
|
246
|
+
sttProvider: z.nullable(z.string()).optional(),
|
|
247
|
+
waitSound: z.nullable(z.string()).optional(),
|
|
232
248
|
id: z.number().int(),
|
|
233
249
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
234
250
|
lastUpdatedBy: z.nullable(z.string()),
|
|
@@ -247,6 +263,8 @@ export const AgentResponse$outboundSchema: z.ZodType<
|
|
|
247
263
|
promptToolDefaults: "prompt_tool_defaults",
|
|
248
264
|
toolHeaders: "tool_headers",
|
|
249
265
|
agentInitiated: "agent_initiated",
|
|
266
|
+
sttProvider: "stt_provider",
|
|
267
|
+
waitSound: "wait_sound",
|
|
250
268
|
updatedAt: "updated_at",
|
|
251
269
|
lastUpdatedBy: "last_updated_by",
|
|
252
270
|
customMessage: "custom_message",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Speech-to-text providers supported by agents.
|
|
10
|
+
*/
|
|
11
|
+
export const AgentSttProvider = {
|
|
12
|
+
GoogleSTTV1: "Google STT V1",
|
|
13
|
+
GoogleSTTV2: "Google STT V2",
|
|
14
|
+
DeepgramNova2: "Deepgram Nova 2",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Speech-to-text providers supported by agents.
|
|
18
|
+
*/
|
|
19
|
+
export type AgentSttProvider = ClosedEnum<typeof AgentSttProvider>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const AgentSttProvider$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof AgentSttProvider
|
|
24
|
+
> = z.nativeEnum(AgentSttProvider);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AgentSttProvider$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof AgentSttProvider
|
|
29
|
+
> = AgentSttProvider$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace AgentSttProvider$ {
|
|
36
|
+
/** @deprecated use `AgentSttProvider$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = AgentSttProvider$inboundSchema;
|
|
38
|
+
/** @deprecated use `AgentSttProvider$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = AgentSttProvider$outboundSchema;
|
|
40
|
+
}
|
|
@@ -7,12 +7,22 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AgentSttProvider,
|
|
12
|
+
AgentSttProvider$inboundSchema,
|
|
13
|
+
AgentSttProvider$outboundSchema,
|
|
14
|
+
} from "./agentsttprovider.js";
|
|
10
15
|
import {
|
|
11
16
|
AgentToolDefaults,
|
|
12
17
|
AgentToolDefaults$inboundSchema,
|
|
13
18
|
AgentToolDefaults$Outbound,
|
|
14
19
|
AgentToolDefaults$outboundSchema,
|
|
15
20
|
} from "./agenttooldefaults.js";
|
|
21
|
+
import {
|
|
22
|
+
AgentWaitSound,
|
|
23
|
+
AgentWaitSound$inboundSchema,
|
|
24
|
+
AgentWaitSound$outboundSchema,
|
|
25
|
+
} from "./agentwaitsound.js";
|
|
16
26
|
|
|
17
27
|
export type AgentUpdate = {
|
|
18
28
|
/**
|
|
@@ -66,9 +76,17 @@ export type AgentUpdate = {
|
|
|
66
76
|
*/
|
|
67
77
|
toolHeaders: { [k: string]: string } | null;
|
|
68
78
|
/**
|
|
69
|
-
* Whether the agent initiates conversation with a user after the
|
|
79
|
+
* Whether the agent initiates conversation with a user after the custom message is delivered
|
|
70
80
|
*/
|
|
71
81
|
agentInitiated?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Speech-to-text provider for the agent.
|
|
84
|
+
*/
|
|
85
|
+
sttProvider?: AgentSttProvider | null | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Sound to play while waiting for a response from the LLM.
|
|
88
|
+
*/
|
|
89
|
+
waitSound?: AgentWaitSound | null | undefined;
|
|
72
90
|
/**
|
|
73
91
|
* The agent ID
|
|
74
92
|
*/
|
|
@@ -94,6 +112,8 @@ export const AgentUpdate$inboundSchema: z.ZodType<
|
|
|
94
112
|
variables: z.record(z.string()),
|
|
95
113
|
tool_headers: z.nullable(z.record(z.string())),
|
|
96
114
|
agent_initiated: z.boolean().default(false),
|
|
115
|
+
stt_provider: z.nullable(AgentSttProvider$inboundSchema).optional(),
|
|
116
|
+
wait_sound: z.nullable(AgentWaitSound$inboundSchema).optional(),
|
|
97
117
|
id: z.number().int(),
|
|
98
118
|
}).transform((v) => {
|
|
99
119
|
return remap$(v, {
|
|
@@ -103,6 +123,8 @@ export const AgentUpdate$inboundSchema: z.ZodType<
|
|
|
103
123
|
"prompt_tool_defaults": "promptToolDefaults",
|
|
104
124
|
"tool_headers": "toolHeaders",
|
|
105
125
|
"agent_initiated": "agentInitiated",
|
|
126
|
+
"stt_provider": "sttProvider",
|
|
127
|
+
"wait_sound": "waitSound",
|
|
106
128
|
});
|
|
107
129
|
});
|
|
108
130
|
|
|
@@ -121,6 +143,8 @@ export type AgentUpdate$Outbound = {
|
|
|
121
143
|
variables: { [k: string]: string };
|
|
122
144
|
tool_headers: { [k: string]: string } | null;
|
|
123
145
|
agent_initiated: boolean;
|
|
146
|
+
stt_provider?: string | null | undefined;
|
|
147
|
+
wait_sound?: string | null | undefined;
|
|
124
148
|
id: number;
|
|
125
149
|
};
|
|
126
150
|
|
|
@@ -143,6 +167,8 @@ export const AgentUpdate$outboundSchema: z.ZodType<
|
|
|
143
167
|
variables: z.record(z.string()),
|
|
144
168
|
toolHeaders: z.nullable(z.record(z.string())),
|
|
145
169
|
agentInitiated: z.boolean().default(false),
|
|
170
|
+
sttProvider: z.nullable(AgentSttProvider$outboundSchema).optional(),
|
|
171
|
+
waitSound: z.nullable(AgentWaitSound$outboundSchema).optional(),
|
|
146
172
|
id: z.number().int(),
|
|
147
173
|
}).transform((v) => {
|
|
148
174
|
return remap$(v, {
|
|
@@ -152,6 +178,8 @@ export const AgentUpdate$outboundSchema: z.ZodType<
|
|
|
152
178
|
promptToolDefaults: "prompt_tool_defaults",
|
|
153
179
|
toolHeaders: "tool_headers",
|
|
154
180
|
agentInitiated: "agent_initiated",
|
|
181
|
+
sttProvider: "stt_provider",
|
|
182
|
+
waitSound: "wait_sound",
|
|
155
183
|
});
|
|
156
184
|
});
|
|
157
185
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Wait sounds supported by agents.
|
|
10
|
+
*/
|
|
11
|
+
export const AgentWaitSound = {
|
|
12
|
+
Keyboard1: "Keyboard 1",
|
|
13
|
+
Keyboard2: "Keyboard 2",
|
|
14
|
+
CallCenter: "Call Center",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Wait sounds supported by agents.
|
|
18
|
+
*/
|
|
19
|
+
export type AgentWaitSound = ClosedEnum<typeof AgentWaitSound>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const AgentWaitSound$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof AgentWaitSound
|
|
24
|
+
> = z.nativeEnum(AgentWaitSound);
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AgentWaitSound$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof AgentWaitSound
|
|
29
|
+
> = AgentWaitSound$inboundSchema;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export namespace AgentWaitSound$ {
|
|
36
|
+
/** @deprecated use `AgentWaitSound$inboundSchema` instead. */
|
|
37
|
+
export const inboundSchema = AgentWaitSound$inboundSchema;
|
|
38
|
+
/** @deprecated use `AgentWaitSound$outboundSchema` instead. */
|
|
39
|
+
export const outboundSchema = AgentWaitSound$outboundSchema;
|
|
40
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./agentcreate.js";
|
|
|
6
6
|
export * from "./agentlanguage.js";
|
|
7
7
|
export * from "./agentproperties.js";
|
|
8
8
|
export * from "./agentresponse.js";
|
|
9
|
+
export * from "./agentsttprovider.js";
|
|
9
10
|
export * from "./agenttooldefaults.js";
|
|
10
11
|
export * from "./agenttoolfielddefault.js";
|
|
11
12
|
export * from "./agentupdate.js";
|
|
@@ -14,6 +15,7 @@ export * from "./agentvoicedisplayname.js";
|
|
|
14
15
|
export * from "./agentvoicegender.js";
|
|
15
16
|
export * from "./agentvoicemodel.js";
|
|
16
17
|
export * from "./agentvoicevarname.js";
|
|
18
|
+
export * from "./agentwaitsound.js";
|
|
17
19
|
export * from "./availabletarget.js";
|
|
18
20
|
export * from "./availabletargetproperties.js";
|
|
19
21
|
export * from "./channel.js";
|