syllable-sdk 0.1.0-alpha.74 → 0.1.0-alpha.76
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 +5 -15
- package/docs/sdks/batches/README.md +14 -14
- package/docs/sdks/latency/README.md +85 -0
- package/funcs/{v1PostListDashboard.d.ts → sessionsLatencyGetById.d.ts} +3 -9
- package/funcs/sessionsLatencyGetById.d.ts.map +1 -0
- package/funcs/{v1PostGetDashboard.js → sessionsLatencyGetById.js} +15 -19
- package/funcs/sessionsLatencyGetById.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inspectlatencyresponse.d.ts +42 -0
- package/models/components/inspectlatencyresponse.d.ts.map +1 -0
- package/models/components/inspectlatencyresponse.js +74 -0
- package/models/components/inspectlatencyresponse.js.map +1 -0
- package/models/components/latencycategory.d.ts +37 -0
- package/models/components/latencycategory.d.ts.map +1 -0
- package/models/components/latencycategory.js +53 -0
- package/models/components/latencycategory.js.map +1 -0
- package/models/components/latencyentry.d.ts +50 -0
- package/models/components/latencyentry.d.ts.map +1 -0
- package/models/components/latencyentry.js +92 -0
- package/models/components/latencyentry.js.map +1 -0
- package/models/components/latencyunittype.d.ts +37 -0
- package/models/components/latencyunittype.d.ts.map +1 -0
- package/models/components/latencyunittype.js +53 -0
- package/models/components/latencyunittype.js.map +1 -0
- package/models/components/promptcreaterequest.d.ts +1 -1
- package/models/components/promptupdaterequest.d.ts +1 -1
- package/models/components/summaryentry.d.ts +46 -0
- package/models/components/summaryentry.d.ts.map +1 -0
- package/models/components/summaryentry.js +87 -0
- package/models/components/summaryentry.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/sessionlatencygetbyid.d.ts +29 -0
- package/models/operations/sessionlatencygetbyid.d.ts.map +1 -0
- package/models/operations/sessionlatencygetbyid.js +68 -0
- package/models/operations/sessionlatencygetbyid.js.map +1 -0
- package/openapi.json +18739 -18645
- package/package.json +1 -1
- package/sdk/latency.d.ts +10 -0
- package/sdk/latency.d.ts.map +1 -0
- package/sdk/latency.js +19 -0
- package/sdk/latency.js.map +1 -0
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +3 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +4 -0
- package/sdk/sessions.js.map +1 -1
- package/src/funcs/{v1PostGetDashboard.ts → sessionsLatencyGetById.ts} +18 -21
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +5 -0
- package/src/models/components/inspectlatencyresponse.ts +102 -0
- package/src/models/components/latencycategory.ts +36 -0
- package/src/models/components/latencyentry.ts +124 -0
- package/src/models/components/latencyunittype.ts +36 -0
- package/src/models/components/promptcreaterequest.ts +1 -1
- package/src/models/components/promptupdaterequest.ts +1 -1
- package/src/models/components/summaryentry.ts +110 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/sessionlatencygetbyid.ts +77 -0
- package/src/sdk/latency.ts +25 -0
- package/src/sdk/sdk.ts +0 -6
- package/src/sdk/sessions.ts +6 -0
- package/docs/sdks/v1/README.md +0 -497
- package/funcs/v1PostGetDashboard.d.ts +0 -20
- package/funcs/v1PostGetDashboard.d.ts.map +0 -1
- package/funcs/v1PostGetDashboard.js.map +0 -1
- package/funcs/v1PostListDashboard.d.ts.map +0 -1
- package/funcs/v1PostListDashboard.js +0 -117
- package/funcs/v1PostListDashboard.js.map +0 -1
- package/funcs/v1PostSessionEventsDashboard.d.ts +0 -21
- package/funcs/v1PostSessionEventsDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionEventsDashboard.js +0 -94
- package/funcs/v1PostSessionEventsDashboard.js.map +0 -1
- package/funcs/v1PostSessionSummaryDashboard.d.ts +0 -21
- package/funcs/v1PostSessionSummaryDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionSummaryDashboard.js +0 -94
- package/funcs/v1PostSessionSummaryDashboard.js.map +0 -1
- package/funcs/v1PostSessionTransfersDashboard.d.ts +0 -21
- package/funcs/v1PostSessionTransfersDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionTransfersDashboard.js +0 -94
- package/funcs/v1PostSessionTransfersDashboard.js.map +0 -1
- package/funcs/v1PostSessionsDashboard.d.ts +0 -21
- package/funcs/v1PostSessionsDashboard.d.ts.map +0 -1
- package/funcs/v1PostSessionsDashboard.js +0 -94
- package/funcs/v1PostSessionsDashboard.js.map +0 -1
- package/sdk/v1.d.ts +0 -78
- package/sdk/v1.d.ts.map +0 -1
- package/sdk/v1.js +0 -102
- package/sdk/v1.js.map +0 -1
- package/src/funcs/v1PostListDashboard.ts +0 -151
- package/src/funcs/v1PostSessionEventsDashboard.ts +0 -117
- package/src/funcs/v1PostSessionSummaryDashboard.ts +0 -117
- package/src/funcs/v1PostSessionTransfersDashboard.ts +0 -117
- package/src/funcs/v1PostSessionsDashboard.ts +0 -117
- package/src/sdk/v1.ts +0 -140
package/package.json
CHANGED
package/sdk/latency.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Latency extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Inspect Latency For Session
|
|
7
|
+
*/
|
|
8
|
+
getById(request: operations.SessionLatencyGetByIdRequest, options?: RequestOptions): Promise<components.InspectLatencyResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=latency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latency.d.ts","sourceRoot":"","sources":["../src/sdk/latency.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAO9C"}
|
package/sdk/latency.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Latency = void 0;
|
|
7
|
+
const sessionsLatencyGetById_js_1 = require("../funcs/sessionsLatencyGetById.js");
|
|
8
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
+
const fp_js_1 = require("../types/fp.js");
|
|
10
|
+
class Latency extends sdks_js_1.ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Inspect Latency For Session
|
|
13
|
+
*/
|
|
14
|
+
async getById(request, options) {
|
|
15
|
+
return (0, fp_js_1.unwrapAsync)((0, sessionsLatencyGetById_js_1.sessionsLatencyGetById)(this, request, options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Latency = Latency;
|
|
19
|
+
//# sourceMappingURL=latency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latency.js","sourceRoot":"","sources":["../src/sdk/latency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kFAA4E;AAC5E,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAdD,0BAcC"}
|
package/sdk/sdk.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { SessionLabels } from "./sessionlabels.js";
|
|
|
17
17
|
import { Sessions } from "./sessions.js";
|
|
18
18
|
import { Takeouts } from "./takeouts.js";
|
|
19
19
|
import { Tools } from "./tools.js";
|
|
20
|
-
import { V1 } from "./v1.js";
|
|
21
20
|
export declare class SyllableSDK extends ClientSDK {
|
|
22
21
|
private _agents?;
|
|
23
22
|
get agents(): Agents;
|
|
@@ -49,8 +48,6 @@ export declare class SyllableSDK extends ClientSDK {
|
|
|
49
48
|
get tools(): Tools;
|
|
50
49
|
private _dashboards?;
|
|
51
50
|
get dashboards(): Dashboards;
|
|
52
|
-
private _v1?;
|
|
53
|
-
get v1(): V1;
|
|
54
51
|
private _outbound?;
|
|
55
52
|
get outbound(): Outbound;
|
|
56
53
|
private _languageGroups?;
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/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jC;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;CACF"}
|
package/sdk/sdk.js
CHANGED
|
@@ -23,7 +23,6 @@ const sessionlabels_js_1 = require("./sessionlabels.js");
|
|
|
23
23
|
const sessions_js_1 = require("./sessions.js");
|
|
24
24
|
const takeouts_js_1 = require("./takeouts.js");
|
|
25
25
|
const tools_js_1 = require("./tools.js");
|
|
26
|
-
const v1_js_1 = require("./v1.js");
|
|
27
26
|
class SyllableSDK extends sdks_js_1.ClientSDK {
|
|
28
27
|
get agents() {
|
|
29
28
|
return (this._agents ?? (this._agents = new agents_js_1.Agents(this._options)));
|
|
@@ -70,9 +69,6 @@ class SyllableSDK extends sdks_js_1.ClientSDK {
|
|
|
70
69
|
get dashboards() {
|
|
71
70
|
return (this._dashboards ?? (this._dashboards = new dashboards_js_1.Dashboards(this._options)));
|
|
72
71
|
}
|
|
73
|
-
get v1() {
|
|
74
|
-
return (this._v1 ?? (this._v1 = new v1_js_1.V1(this._options)));
|
|
75
|
-
}
|
|
76
72
|
get outbound() {
|
|
77
73
|
return (this._outbound ?? (this._outbound = new outbound_js_1.Outbound(this._options)));
|
|
78
74
|
}
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,+CAAyC;AACzC,yDAAmD;AACnD,2DAAqD;AACrD,mDAA6C;AAC7C,qDAA+C;AAC/C,2CAAqC;AACrC,iDAA2C;AAC3C,+CAAyC;AACzC,2DAAqD;AACrD,+CAAyC;AACzC,6CAAuC;AACvC,+CAAyC;AACzC,uDAAiD;AACjD,yDAAmD;AACnD,+CAAyC;AACzC,+CAAyC;AACzC,yCAAmC;
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,+CAAyC;AACzC,yDAAmD;AACnD,2DAAqD;AACrD,mDAA6C;AAC7C,qDAA+C;AAC/C,2CAAqC;AACrC,iDAA2C;AAC3C,+CAAyC;AACzC,2DAAqD;AACrD,+CAAyC;AACzC,6CAAuC;AACvC,+CAAyC;AACzC,uDAAiD;AACjD,yDAAmD;AACnD,+CAAyC;AACzC,+CAAyC;AACzC,yCAAmC;AAEnC,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,KAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,gCAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EA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.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
import { FullSummary } from "./fullsummary.js";
|
|
5
|
+
import { Latency } from "./latency.js";
|
|
5
6
|
import { Transcript } from "./transcript.js";
|
|
6
7
|
export declare class Sessions extends ClientSDK {
|
|
7
8
|
private _transcript?;
|
|
8
9
|
get transcript(): Transcript;
|
|
9
10
|
private _fullSummary?;
|
|
10
11
|
get fullSummary(): FullSummary;
|
|
12
|
+
private _latency?;
|
|
13
|
+
get latency(): Latency;
|
|
11
14
|
/**
|
|
12
15
|
* Sessions List
|
|
13
16
|
*/
|
package/sdk/sessions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sdk/sessions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBAAa,QAAS,SAAQ,SAAS;IACrC,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED;;OAEG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC;IAQ9B;;OAEG;IACG,4BA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UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;CAOvC"}
|
package/sdk/sessions.js
CHANGED
|
@@ -11,6 +11,7 @@ const sessionsSessionRecordingStream_js_1 = require("../funcs/sessionsSessionRec
|
|
|
11
11
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
12
12
|
const fp_js_1 = require("../types/fp.js");
|
|
13
13
|
const fullsummary_js_1 = require("./fullsummary.js");
|
|
14
|
+
const latency_js_1 = require("./latency.js");
|
|
14
15
|
const transcript_js_1 = require("./transcript.js");
|
|
15
16
|
class Sessions extends sdks_js_1.ClientSDK {
|
|
16
17
|
get transcript() {
|
|
@@ -19,6 +20,9 @@ class Sessions extends sdks_js_1.ClientSDK {
|
|
|
19
20
|
get fullSummary() {
|
|
20
21
|
return (this._fullSummary ?? (this._fullSummary = new fullsummary_js_1.FullSummary(this._options)));
|
|
21
22
|
}
|
|
23
|
+
get latency() {
|
|
24
|
+
return (this._latency ?? (this._latency = new latency_js_1.Latency(this._options)));
|
|
25
|
+
}
|
|
22
26
|
/**
|
|
23
27
|
* Sessions List
|
|
24
28
|
*/
|
package/sdk/sessions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../src/sdk/sessions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8GAAwG;AACxG,oEAA8D;AAC9D,8DAAwD;AACxD,kGAA4F;AAC5F,4CAA2D;AAG3D,0CAA6C;AAC7C,qDAA+C;AAC/C,mDAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IAErC,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW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
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -25,21 +25,15 @@ import * as operations from "../models/operations/index.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* METHOD: POST
|
|
32
|
-
* URL: /dashboard/fetch_info
|
|
33
|
-
* ARGUMENTS: None
|
|
34
|
-
* RETURNS: Dashboard info for embedding
|
|
28
|
+
* Inspect Latency For Session
|
|
35
29
|
*/
|
|
36
|
-
export async function
|
|
30
|
+
export async function sessionsLatencyGetById(
|
|
37
31
|
client: SyllableSDKCore,
|
|
38
|
-
request: operations.
|
|
32
|
+
request: operations.SessionLatencyGetByIdRequest,
|
|
39
33
|
options?: RequestOptions,
|
|
40
34
|
): Promise<
|
|
41
35
|
Result<
|
|
42
|
-
components.
|
|
36
|
+
components.InspectLatencyResponse,
|
|
43
37
|
| errors.HTTPValidationError
|
|
44
38
|
| SDKError
|
|
45
39
|
| SDKValidationError
|
|
@@ -52,7 +46,8 @@ export async function v1PostGetDashboard(
|
|
|
52
46
|
> {
|
|
53
47
|
const parsed = safeParse(
|
|
54
48
|
request,
|
|
55
|
-
(value) =>
|
|
49
|
+
(value) =>
|
|
50
|
+
operations.SessionLatencyGetByIdRequest$outboundSchema.parse(value),
|
|
56
51
|
"Input validation failed",
|
|
57
52
|
);
|
|
58
53
|
if (!parsed.ok) {
|
|
@@ -61,11 +56,14 @@ export async function v1PostGetDashboard(
|
|
|
61
56
|
const payload = parsed.value;
|
|
62
57
|
const body = null;
|
|
63
58
|
|
|
64
|
-
const
|
|
59
|
+
const pathParams = {
|
|
60
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
61
|
+
explode: false,
|
|
62
|
+
charEncoding: "percent",
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
65
|
|
|
66
|
-
const
|
|
67
|
-
"dashboard_name": payload.dashboard_name,
|
|
68
|
-
});
|
|
66
|
+
const path = pathToFunc("/api/v1/sessions/latency/{session_id}")(pathParams);
|
|
69
67
|
|
|
70
68
|
const headers = new Headers(compactMap({
|
|
71
69
|
Accept: "application/json",
|
|
@@ -77,7 +75,7 @@ export async function v1PostGetDashboard(
|
|
|
77
75
|
|
|
78
76
|
const context = {
|
|
79
77
|
baseURL: options?.serverURL ?? "",
|
|
80
|
-
operationID: "
|
|
78
|
+
operationID: "session_latency_get_by_id",
|
|
81
79
|
oAuth2Scopes: [],
|
|
82
80
|
|
|
83
81
|
resolvedSecurity: requestSecurity,
|
|
@@ -91,11 +89,10 @@ export async function v1PostGetDashboard(
|
|
|
91
89
|
|
|
92
90
|
const requestRes = client._createRequest(context, {
|
|
93
91
|
security: requestSecurity,
|
|
94
|
-
method: "
|
|
92
|
+
method: "GET",
|
|
95
93
|
baseURL: options?.serverURL,
|
|
96
94
|
path: path,
|
|
97
95
|
headers: headers,
|
|
98
|
-
query: query,
|
|
99
96
|
body: body,
|
|
100
97
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
101
98
|
}, options);
|
|
@@ -120,7 +117,7 @@ export async function v1PostGetDashboard(
|
|
|
120
117
|
};
|
|
121
118
|
|
|
122
119
|
const [result] = await M.match<
|
|
123
|
-
components.
|
|
120
|
+
components.InspectLatencyResponse,
|
|
124
121
|
| errors.HTTPValidationError
|
|
125
122
|
| SDKError
|
|
126
123
|
| SDKValidationError
|
|
@@ -130,7 +127,7 @@ export async function v1PostGetDashboard(
|
|
|
130
127
|
| RequestTimeoutError
|
|
131
128
|
| ConnectionError
|
|
132
129
|
>(
|
|
133
|
-
M.json(200, components.
|
|
130
|
+
M.json(200, components.InspectLatencyResponse$inboundSchema),
|
|
134
131
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
135
132
|
M.fail("4XX"),
|
|
136
133
|
M.fail("5XX"),
|
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.76",
|
|
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.76 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -74,6 +74,7 @@ export * from "./insighttooltestinput.js";
|
|
|
74
74
|
export * from "./insightworkflowinput.js";
|
|
75
75
|
export * from "./insightworkflowoutput.js";
|
|
76
76
|
export * from "./insightworkflowproperties.js";
|
|
77
|
+
export * from "./inspectlatencyresponse.js";
|
|
77
78
|
export * from "./internaltool.js";
|
|
78
79
|
export * from "./languagecode.js";
|
|
79
80
|
export * from "./languageconfig.js";
|
|
@@ -82,6 +83,9 @@ export * from "./languagegroupcreaterequest.js";
|
|
|
82
83
|
export * from "./languagegroupproperties.js";
|
|
83
84
|
export * from "./languagegroupresponse.js";
|
|
84
85
|
export * from "./languagegroupupdaterequest.js";
|
|
86
|
+
export * from "./latencycategory.js";
|
|
87
|
+
export * from "./latencyentry.js";
|
|
88
|
+
export * from "./latencyunittype.js";
|
|
85
89
|
export * from "./listresponseagentresponse.js";
|
|
86
90
|
export * from "./listresponseavailabletarget.js";
|
|
87
91
|
export * from "./listresponsechannel.js";
|
|
@@ -132,6 +136,7 @@ export * from "./sessiontext.js";
|
|
|
132
136
|
export * from "./sessiontranscriptionresponse.js";
|
|
133
137
|
export * from "./statictoolparameter.js";
|
|
134
138
|
export * from "./statictoolparametertype.js";
|
|
139
|
+
export * from "./summaryentry.js";
|
|
135
140
|
export * from "./supportedllm.js";
|
|
136
141
|
export * from "./takeoutrequeststatus.js";
|
|
137
142
|
export * from "./takeoutstatusresponse.js";
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
LatencyEntry,
|
|
12
|
+
LatencyEntry$inboundSchema,
|
|
13
|
+
LatencyEntry$Outbound,
|
|
14
|
+
LatencyEntry$outboundSchema,
|
|
15
|
+
} from "./latencyentry.js";
|
|
16
|
+
import {
|
|
17
|
+
SummaryEntry,
|
|
18
|
+
SummaryEntry$inboundSchema,
|
|
19
|
+
SummaryEntry$Outbound,
|
|
20
|
+
SummaryEntry$outboundSchema,
|
|
21
|
+
} from "./summaryentry.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* This is a report of the time spent in each operation during this session. It contains a timeline,
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* which lists the operations in the order they were executed, and a summary, which aggregates the
|
|
28
|
+
* operations by category and sub-category.
|
|
29
|
+
*/
|
|
30
|
+
export type InspectLatencyResponse = {
|
|
31
|
+
sessionId: string;
|
|
32
|
+
timeline: Array<LatencyEntry>;
|
|
33
|
+
summary?: Array<SummaryEntry> | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const InspectLatencyResponse$inboundSchema: z.ZodType<
|
|
38
|
+
InspectLatencyResponse,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
session_id: z.string(),
|
|
43
|
+
timeline: z.array(LatencyEntry$inboundSchema),
|
|
44
|
+
summary: z.array(SummaryEntry$inboundSchema).optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"session_id": "sessionId",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type InspectLatencyResponse$Outbound = {
|
|
53
|
+
session_id: string;
|
|
54
|
+
timeline: Array<LatencyEntry$Outbound>;
|
|
55
|
+
summary?: Array<SummaryEntry$Outbound> | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const InspectLatencyResponse$outboundSchema: z.ZodType<
|
|
60
|
+
InspectLatencyResponse$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
InspectLatencyResponse
|
|
63
|
+
> = z.object({
|
|
64
|
+
sessionId: z.string(),
|
|
65
|
+
timeline: z.array(LatencyEntry$outboundSchema),
|
|
66
|
+
summary: z.array(SummaryEntry$outboundSchema).optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
sessionId: "session_id",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export namespace InspectLatencyResponse$ {
|
|
78
|
+
/** @deprecated use `InspectLatencyResponse$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema = InspectLatencyResponse$inboundSchema;
|
|
80
|
+
/** @deprecated use `InspectLatencyResponse$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema = InspectLatencyResponse$outboundSchema;
|
|
82
|
+
/** @deprecated use `InspectLatencyResponse$Outbound` instead. */
|
|
83
|
+
export type Outbound = InspectLatencyResponse$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function inspectLatencyResponseToJSON(
|
|
87
|
+
inspectLatencyResponse: InspectLatencyResponse,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
InspectLatencyResponse$outboundSchema.parse(inspectLatencyResponse),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function inspectLatencyResponseFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<InspectLatencyResponse, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => InspectLatencyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'InspectLatencyResponse' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
export const LatencyCategory = {
|
|
9
|
+
Tts: "tts",
|
|
10
|
+
Stt: "stt",
|
|
11
|
+
Llm: "llm",
|
|
12
|
+
Tool: "tool",
|
|
13
|
+
Http: "http",
|
|
14
|
+
} as const;
|
|
15
|
+
export type LatencyCategory = ClosedEnum<typeof LatencyCategory>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LatencyCategory$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof LatencyCategory
|
|
20
|
+
> = z.nativeEnum(LatencyCategory);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LatencyCategory$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof LatencyCategory
|
|
25
|
+
> = LatencyCategory$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace LatencyCategory$ {
|
|
32
|
+
/** @deprecated use `LatencyCategory$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = LatencyCategory$inboundSchema;
|
|
34
|
+
/** @deprecated use `LatencyCategory$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = LatencyCategory$outboundSchema;
|
|
36
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
LatencyCategory,
|
|
12
|
+
LatencyCategory$inboundSchema,
|
|
13
|
+
LatencyCategory$outboundSchema,
|
|
14
|
+
} from "./latencycategory.js";
|
|
15
|
+
import {
|
|
16
|
+
LatencyUnitType,
|
|
17
|
+
LatencyUnitType$inboundSchema,
|
|
18
|
+
LatencyUnitType$outboundSchema,
|
|
19
|
+
} from "./latencyunittype.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Data model for latency entries.
|
|
23
|
+
*/
|
|
24
|
+
export type LatencyEntry = {
|
|
25
|
+
timestamp: Date;
|
|
26
|
+
measurementStart: Date;
|
|
27
|
+
category: LatencyCategory;
|
|
28
|
+
label: string;
|
|
29
|
+
metadata?: Array<string> | null | undefined;
|
|
30
|
+
unitType: LatencyUnitType;
|
|
31
|
+
value: number;
|
|
32
|
+
valueStr: string;
|
|
33
|
+
timeDelta: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const LatencyEntry$inboundSchema: z.ZodType<
|
|
38
|
+
LatencyEntry,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
|
+
measurement_start: z.string().datetime({ offset: true }).transform(v =>
|
|
44
|
+
new Date(v)
|
|
45
|
+
),
|
|
46
|
+
category: LatencyCategory$inboundSchema,
|
|
47
|
+
label: z.string(),
|
|
48
|
+
metadata: z.nullable(z.array(z.string())).optional(),
|
|
49
|
+
unit_type: LatencyUnitType$inboundSchema,
|
|
50
|
+
value: z.number(),
|
|
51
|
+
value_str: z.string(),
|
|
52
|
+
time_delta: z.string(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
"measurement_start": "measurementStart",
|
|
56
|
+
"unit_type": "unitType",
|
|
57
|
+
"value_str": "valueStr",
|
|
58
|
+
"time_delta": "timeDelta",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type LatencyEntry$Outbound = {
|
|
64
|
+
timestamp: string;
|
|
65
|
+
measurement_start: string;
|
|
66
|
+
category: string;
|
|
67
|
+
label: string;
|
|
68
|
+
metadata?: Array<string> | null | undefined;
|
|
69
|
+
unit_type: string;
|
|
70
|
+
value: number;
|
|
71
|
+
value_str: string;
|
|
72
|
+
time_delta: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const LatencyEntry$outboundSchema: z.ZodType<
|
|
77
|
+
LatencyEntry$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
LatencyEntry
|
|
80
|
+
> = z.object({
|
|
81
|
+
timestamp: z.date().transform(v => v.toISOString()),
|
|
82
|
+
measurementStart: z.date().transform(v => v.toISOString()),
|
|
83
|
+
category: LatencyCategory$outboundSchema,
|
|
84
|
+
label: z.string(),
|
|
85
|
+
metadata: z.nullable(z.array(z.string())).optional(),
|
|
86
|
+
unitType: LatencyUnitType$outboundSchema,
|
|
87
|
+
value: z.number(),
|
|
88
|
+
valueStr: z.string(),
|
|
89
|
+
timeDelta: z.string(),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
measurementStart: "measurement_start",
|
|
93
|
+
unitType: "unit_type",
|
|
94
|
+
valueStr: "value_str",
|
|
95
|
+
timeDelta: "time_delta",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace LatencyEntry$ {
|
|
104
|
+
/** @deprecated use `LatencyEntry$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = LatencyEntry$inboundSchema;
|
|
106
|
+
/** @deprecated use `LatencyEntry$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = LatencyEntry$outboundSchema;
|
|
108
|
+
/** @deprecated use `LatencyEntry$Outbound` instead. */
|
|
109
|
+
export type Outbound = LatencyEntry$Outbound;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function latencyEntryToJSON(latencyEntry: LatencyEntry): string {
|
|
113
|
+
return JSON.stringify(LatencyEntry$outboundSchema.parse(latencyEntry));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function latencyEntryFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<LatencyEntry, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => LatencyEntry$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'LatencyEntry' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
export const LatencyUnitType = {
|
|
9
|
+
Minutes: "minutes",
|
|
10
|
+
Seconds: "seconds",
|
|
11
|
+
Milliseconds: "milliseconds",
|
|
12
|
+
Microseconds: "microseconds",
|
|
13
|
+
Nanoseconds: "nanoseconds",
|
|
14
|
+
} as const;
|
|
15
|
+
export type LatencyUnitType = ClosedEnum<typeof LatencyUnitType>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LatencyUnitType$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof LatencyUnitType
|
|
20
|
+
> = z.nativeEnum(LatencyUnitType);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LatencyUnitType$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof LatencyUnitType
|
|
25
|
+
> = LatencyUnitType$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace LatencyUnitType$ {
|
|
32
|
+
/** @deprecated use `LatencyUnitType$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = LatencyUnitType$inboundSchema;
|
|
34
|
+
/** @deprecated use `LatencyUnitType$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = LatencyUnitType$outboundSchema;
|
|
36
|
+
}
|
|
@@ -43,7 +43,7 @@ export type PromptCreateRequest = {
|
|
|
43
43
|
*/
|
|
44
44
|
llmConfig: PromptLlmConfig;
|
|
45
45
|
/**
|
|
46
|
-
* Whether to include the default tools (`
|
|
46
|
+
* Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
|
|
47
47
|
*/
|
|
48
48
|
includeDefaultTools?: boolean | undefined;
|
|
49
49
|
};
|
|
@@ -51,7 +51,7 @@ export type PromptUpdateRequest = {
|
|
|
51
51
|
*/
|
|
52
52
|
editComments?: string | null | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* Whether to include the default tools (`
|
|
54
|
+
* Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
|
|
55
55
|
*/
|
|
56
56
|
includeDefaultTools?: boolean | undefined;
|
|
57
57
|
};
|