@roarkanalytics/sdk 5.4.0 → 5.6.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/CHANGELOG.md +24 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/call.d.mts +156 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +156 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +29 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +29 -0
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +6 -0
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +6 -0
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +66 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +66 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +228 -0
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +228 -0
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/call.ts +182 -0
- package/src/resources/config.ts +12 -0
- package/src/resources/customer-flow-edge-case.ts +77 -0
- package/src/resources/customer-flow.ts +266 -0
- package/src/resources/index.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpda
|
|
|
4
4
|
export { AgentPrompt, type AgentPromptUpdateResponse, type AgentPromptListResponse, type AgentPromptListVersionsResponse, type AgentPromptUpdateParams, type AgentPromptListVersionsParams, } from "./agent-prompt.mjs";
|
|
5
5
|
export { AutoimproveJob, type AutoimproveLogEntry, type AutoimproveJobCreateResponse, type AutoimproveJobListResponse, type AutoimproveJobAnswerQuestionResponse, type AutoimproveJobCancelResponse, type AutoimproveJobDismissResponse, type AutoimproveJobGetByIDResponse, type AutoimproveJobPromoteResponse, type AutoimproveJobSendGuidanceResponse, type AutoimproveJobCreateParams, type AutoimproveJobAnswerQuestionParams, type AutoimproveJobSendGuidanceParams, } from "./autoimprove-job.mjs";
|
|
6
6
|
export { Benchmark, type BenchmarkGetLeaderboardResponse, type BenchmarkGetTargetResponse, type BenchmarkListMetricsResponse, type BenchmarkListSuitesResponse, type BenchmarkListTargetHistoryResponse, type BenchmarkListTargetScoreSamplesResponse, type BenchmarkGetLeaderboardParams, type BenchmarkGetTargetParams, type BenchmarkListMetricsParams, type BenchmarkListTargetHistoryParams, type BenchmarkListTargetScoreSamplesParams, } from "./benchmark.mjs";
|
|
7
|
-
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.mjs";
|
|
7
|
+
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallUpdatePropertiesResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, type CallUpdatePropertiesParams, } from "./call.mjs";
|
|
8
8
|
export { Config, type Bundle, type ConfigFlowStep, type ConfigApplyResponse, type ConfigDiffResponse, type ConfigApplyParams, type ConfigDiffParams, } from "./config.mjs";
|
|
9
9
|
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowDuplicateResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowDuplicateParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.mjs";
|
|
10
10
|
export { CustomerFlowEdgeCase, type CustomerFlowEdgeCaseUpdateResponse, type CustomerFlowEdgeCaseAddResponse, type CustomerFlowEdgeCasePromoteResponse, type CustomerFlowEdgeCaseRemoveResponse, type CustomerFlowEdgeCaseUpdateParams, type CustomerFlowEdgeCaseAddParams, type CustomerFlowEdgeCasePromoteParams, type CustomerFlowEdgeCaseRemoveParams, } from "./customer-flow-edge-case.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,oBAAgB;AACjB,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,GAC9B,2BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,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AAK,uCAAuC,EAC5C,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,kCAA8B;AAChG,OAAO,EACL,qBAAqB,EACrB,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,sCAAkC;AACnC,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAkB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { AgentEndpoint, type AgentEndpointCreateResponse, type AgentEndpointUpda
|
|
|
4
4
|
export { AgentPrompt, type AgentPromptUpdateResponse, type AgentPromptListResponse, type AgentPromptListVersionsResponse, type AgentPromptUpdateParams, type AgentPromptListVersionsParams, } from "./agent-prompt.js";
|
|
5
5
|
export { AutoimproveJob, type AutoimproveLogEntry, type AutoimproveJobCreateResponse, type AutoimproveJobListResponse, type AutoimproveJobAnswerQuestionResponse, type AutoimproveJobCancelResponse, type AutoimproveJobDismissResponse, type AutoimproveJobGetByIDResponse, type AutoimproveJobPromoteResponse, type AutoimproveJobSendGuidanceResponse, type AutoimproveJobCreateParams, type AutoimproveJobAnswerQuestionParams, type AutoimproveJobSendGuidanceParams, } from "./autoimprove-job.js";
|
|
6
6
|
export { Benchmark, type BenchmarkGetLeaderboardResponse, type BenchmarkGetTargetResponse, type BenchmarkListMetricsResponse, type BenchmarkListSuitesResponse, type BenchmarkListTargetHistoryResponse, type BenchmarkListTargetScoreSamplesResponse, type BenchmarkGetLeaderboardParams, type BenchmarkGetTargetParams, type BenchmarkListMetricsParams, type BenchmarkListTargetHistoryParams, type BenchmarkListTargetScoreSamplesParams, } from "./benchmark.js";
|
|
7
|
-
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, } from "./call.js";
|
|
7
|
+
export { Call, type CallCreateResponse, type CallListResponse, type CallAppendToolInvocationsResponse, type CallGetByIDResponse, type CallGetTranscriptResponse, type CallListMetricsResponse, type CallListSentimentRunsResponse, type CallUpdatePropertiesResponse, type CallCreateParams, type CallListParams, type CallAppendToolInvocationsParams, type CallGetTranscriptParams, type CallListMetricsParams, type CallUpdatePropertiesParams, } from "./call.js";
|
|
8
8
|
export { Config, type Bundle, type ConfigFlowStep, type ConfigApplyResponse, type ConfigDiffResponse, type ConfigApplyParams, type ConfigDiffParams, } from "./config.js";
|
|
9
9
|
export { CustomerFlow, type FlowStep, type CustomerFlowCreateResponse, type CustomerFlowUpdateResponse, type CustomerFlowListResponse, type CustomerFlowDeleteResponse, type CustomerFlowDuplicateResponse, type CustomerFlowGetByIDResponse, type CustomerFlowReplaceGraphResponse, type CustomerFlowUpdateHappyPathResponse, type CustomerFlowCreateParams, type CustomerFlowUpdateParams, type CustomerFlowListParams, type CustomerFlowDuplicateParams, type CustomerFlowReplaceGraphParams, type CustomerFlowUpdateHappyPathParams, } from "./customer-flow.js";
|
|
10
10
|
export { CustomerFlowEdgeCase, type CustomerFlowEdgeCaseUpdateResponse, type CustomerFlowEdgeCaseAddResponse, type CustomerFlowEdgeCasePromoteResponse, type CustomerFlowEdgeCaseRemoveResponse, type CustomerFlowEdgeCaseUpdateParams, type CustomerFlowEdgeCaseAddParams, type CustomerFlowEdgeCasePromoteParams, type CustomerFlowEdgeCaseRemoveParams, } from "./customer-flow-edge-case.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index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ACjC,gCAA6B;AAC9B,OAAO,EACL,kBAAkB,EAClB,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,0CAA0C,EAC/C,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,kCAA+B;AAChC,OAAO,EACL,iBAAiB,EACjB,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,iCAA8B;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,yCAAyC,EAC9C,KAAK,mCAAmC,EACxC,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,KAAK,uCAAuC,EAC5C,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,qCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAE,KAAK,8BAA8B,EAAE,iCAA8B;AAChG,OAAO,EACL,qBAAqB,EACrB,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC,qCAAkC;AACnC,OAAO,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,qBAAkB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;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qBAAqB,OAAA;AAC9B,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,kEASgC;AAR9B,0HAAA,kBAAkB,OAAA;AASpB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAYmC;AAXjC,+HAAA,oBAAoB,OAAA;AAYtB,gEAAgG;AAAvF,yHAAA,kBAAkB,OAAA;AAC3B,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,IAAI,GAeL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,oBAAoB,GASrB,sCAAkC;AACnC,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,EAAE,GAOH,iBAAa;AACd,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,mBAAmB,GAMpB,oCAAgC;AACjC,OAAO,EACL,YAAY,GASb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EAAE,OAAO,EAA4B,sBAAkB;AAC9D,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,eAAe,GAUhB,+BAA2B;AAC5B,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,qBAAqB,EAA0C,uCAAmC;AAC3G,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,kBAAkB,GAQnB,mCAA+B;AAChC,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAWrB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
package/src/client.ts
CHANGED
|
@@ -102,6 +102,8 @@ import {
|
|
|
102
102
|
CallListParams,
|
|
103
103
|
CallListResponse,
|
|
104
104
|
CallListSentimentRunsResponse,
|
|
105
|
+
CallUpdatePropertiesParams,
|
|
106
|
+
CallUpdatePropertiesResponse,
|
|
105
107
|
} from './resources/call';
|
|
106
108
|
import {
|
|
107
109
|
Bundle,
|
|
@@ -1141,11 +1143,13 @@ export declare namespace Roark {
|
|
|
1141
1143
|
type CallGetTranscriptResponse as CallGetTranscriptResponse,
|
|
1142
1144
|
type CallListMetricsResponse as CallListMetricsResponse,
|
|
1143
1145
|
type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
|
|
1146
|
+
type CallUpdatePropertiesResponse as CallUpdatePropertiesResponse,
|
|
1144
1147
|
type CallCreateParams as CallCreateParams,
|
|
1145
1148
|
type CallListParams as CallListParams,
|
|
1146
1149
|
type CallAppendToolInvocationsParams as CallAppendToolInvocationsParams,
|
|
1147
1150
|
type CallGetTranscriptParams as CallGetTranscriptParams,
|
|
1148
1151
|
type CallListMetricsParams as CallListMetricsParams,
|
|
1152
|
+
type CallUpdatePropertiesParams as CallUpdatePropertiesParams,
|
|
1149
1153
|
};
|
|
1150
1154
|
|
|
1151
1155
|
export {
|
package/src/resources/call.ts
CHANGED
|
@@ -140,6 +140,40 @@ export class Call extends APIResource {
|
|
|
140
140
|
listSentimentRuns(callID: string, options?: RequestOptions): APIPromise<CallListSentimentRunsResponse> {
|
|
141
141
|
return this._client.get(path`/v1/call/${callID}/sentiment-run`, options);
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Add, overwrite or remove custom properties on an already-existing call. Use this
|
|
146
|
+
* for data that becomes available after the call was created, e.g. an outcome your
|
|
147
|
+
* system validates a few minutes later. Merge semantics: a value adds or
|
|
148
|
+
* overwrites the property, null removes it, and properties left out are untouched.
|
|
149
|
+
* The patch is applied whole or not at all: a property Roark sets itself, or a
|
|
150
|
+
* value whose type differs from the type the project already stores that property
|
|
151
|
+
* as, rejects the request with a 400 and nothing is written. A 409 means another
|
|
152
|
+
* request created one of the properties with a different value type at the same
|
|
153
|
+
* moment; nothing was written. Optionally pass `metrics` to (re)score metrics over
|
|
154
|
+
* the updated properties, which triggers a billed metric collection job and
|
|
155
|
+
* requires the `metric:create` permission.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* const response = await client.call.updateProperties(
|
|
160
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
161
|
+
* {
|
|
162
|
+
* properties: {
|
|
163
|
+
* partner_outcome: 'apr_returned',
|
|
164
|
+
* delivered_apr: '21.99',
|
|
165
|
+
* },
|
|
166
|
+
* },
|
|
167
|
+
* );
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
updateProperties(
|
|
171
|
+
callID: string,
|
|
172
|
+
body: CallUpdatePropertiesParams,
|
|
173
|
+
options?: RequestOptions,
|
|
174
|
+
): APIPromise<CallUpdatePropertiesResponse> {
|
|
175
|
+
return this._client.patch(path`/v1/call/${callID}/properties`, { body, ...options });
|
|
176
|
+
}
|
|
143
177
|
}
|
|
144
178
|
|
|
145
179
|
export interface CallCreateResponse {
|
|
@@ -1453,6 +1487,126 @@ export namespace CallListSentimentRunsResponse {
|
|
|
1453
1487
|
}
|
|
1454
1488
|
}
|
|
1455
1489
|
|
|
1490
|
+
export interface CallUpdatePropertiesResponse {
|
|
1491
|
+
/**
|
|
1492
|
+
* Result of updating the properties of a call.
|
|
1493
|
+
*/
|
|
1494
|
+
data: CallUpdatePropertiesResponse.Data;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
export namespace CallUpdatePropertiesResponse {
|
|
1498
|
+
/**
|
|
1499
|
+
* Result of updating the properties of a call.
|
|
1500
|
+
*/
|
|
1501
|
+
export interface Data {
|
|
1502
|
+
/**
|
|
1503
|
+
* The call whose properties were updated
|
|
1504
|
+
*/
|
|
1505
|
+
callId: string;
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Present (non-null) only when `metrics` were requested but the collection job
|
|
1509
|
+
* could not be started (e.g. insufficient credits, or an unknown metric id). The
|
|
1510
|
+
* properties were still written. Retry scoring via POST
|
|
1511
|
+
* /v1/metric/collection-jobs, or re-send this request (writing the same values
|
|
1512
|
+
* again is harmless). Null on success or when no metrics were requested.
|
|
1513
|
+
*/
|
|
1514
|
+
metricCollectionError: string | null;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* A metric collection job that processes metrics for calls or chats
|
|
1518
|
+
*/
|
|
1519
|
+
metricCollectionJob: Data.MetricCollectionJob | null;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* All of the call's properties after the update, including the ones Roark sets,
|
|
1523
|
+
* when the key also has the 'call:read' permission. A key without it gets back
|
|
1524
|
+
* only the properties this request wrote. Values are returned as strings, as on
|
|
1525
|
+
* GET /v1/call/:callId.
|
|
1526
|
+
*/
|
|
1527
|
+
properties: { [key: string]: string };
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Stored names of the properties removed by this request. A property sent as null
|
|
1531
|
+
* that was not on the call is not listed.
|
|
1532
|
+
*/
|
|
1533
|
+
removed: Array<string>;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Stored (snake_case) names of the properties written by this request, including
|
|
1537
|
+
* ones sent with the value they already had
|
|
1538
|
+
*/
|
|
1539
|
+
updated: Array<string>;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export namespace Data {
|
|
1543
|
+
/**
|
|
1544
|
+
* A metric collection job that processes metrics for calls or chats
|
|
1545
|
+
*/
|
|
1546
|
+
export interface MetricCollectionJob {
|
|
1547
|
+
/**
|
|
1548
|
+
* Unique identifier of the metric collection job
|
|
1549
|
+
*/
|
|
1550
|
+
id: string;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* When the job completed
|
|
1554
|
+
*/
|
|
1555
|
+
completedAt: string | null;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Number of successfully completed items
|
|
1559
|
+
*/
|
|
1560
|
+
completedItems: number;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* When the job was created
|
|
1564
|
+
*/
|
|
1565
|
+
createdAt: string;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Error message if the job failed
|
|
1569
|
+
*/
|
|
1570
|
+
errorMessage: string | null;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Number of failed items
|
|
1574
|
+
*/
|
|
1575
|
+
failedItems: number;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* IDs of the metric policies that triggered this job
|
|
1579
|
+
*/
|
|
1580
|
+
policyIds: Array<string>;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* When the job started processing
|
|
1584
|
+
*/
|
|
1585
|
+
startedAt: string | null;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Current status of the job
|
|
1589
|
+
*/
|
|
1590
|
+
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED';
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Total number of call-metric pairs to process
|
|
1594
|
+
*/
|
|
1595
|
+
totalItems: number;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* What triggered this job
|
|
1599
|
+
*/
|
|
1600
|
+
triggeredBy: 'USER_MANUAL' | 'USER_API' | 'METRIC_POLICY' | 'SIMULATION';
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* When the job was last updated
|
|
1604
|
+
*/
|
|
1605
|
+
updatedAt: string;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1456
1610
|
export interface CallCreateParams {
|
|
1457
1611
|
/**
|
|
1458
1612
|
* Direction of the call (INBOUND or OUTBOUND)
|
|
@@ -2097,6 +2251,32 @@ export interface CallListMetricsParams {
|
|
|
2097
2251
|
status?: 'success' | 'all';
|
|
2098
2252
|
}
|
|
2099
2253
|
|
|
2254
|
+
export interface CallUpdatePropertiesParams {
|
|
2255
|
+
/**
|
|
2256
|
+
* Properties to change on the call. A string, number or boolean value adds the
|
|
2257
|
+
* property or overwrites it; null removes it. Properties left out are untouched.
|
|
2258
|
+
* Keys are stored in snake_case, as on POST /v1/call. A property keeps the value
|
|
2259
|
+
* type it was first stored with in the project, so a value of another type is
|
|
2260
|
+
* rejected. Properties Roark sets itself (direction, duration_seconds, agent_id,
|
|
2261
|
+
* ...) can't be changed. Max 100 per request.
|
|
2262
|
+
*/
|
|
2263
|
+
properties: { [key: string]: string | number | boolean | null };
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Optional. Metric definitions to (re)score on this call once the properties are
|
|
2267
|
+
* written, e.g. metrics that read the call's properties. Triggers a metric
|
|
2268
|
+
* collection job (billed, credit-gated) and requires the 'metric:create'
|
|
2269
|
+
* permission. Omit to update properties without scoring. Max 20.
|
|
2270
|
+
*/
|
|
2271
|
+
metrics?: Array<CallUpdatePropertiesParams.Metric>;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
export namespace CallUpdatePropertiesParams {
|
|
2275
|
+
export interface Metric {
|
|
2276
|
+
id: string;
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2100
2280
|
export declare namespace Call {
|
|
2101
2281
|
export {
|
|
2102
2282
|
type CallCreateResponse as CallCreateResponse,
|
|
@@ -2106,10 +2286,12 @@ export declare namespace Call {
|
|
|
2106
2286
|
type CallGetTranscriptResponse as CallGetTranscriptResponse,
|
|
2107
2287
|
type CallListMetricsResponse as CallListMetricsResponse,
|
|
2108
2288
|
type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
|
|
2289
|
+
type CallUpdatePropertiesResponse as CallUpdatePropertiesResponse,
|
|
2109
2290
|
type CallCreateParams as CallCreateParams,
|
|
2110
2291
|
type CallListParams as CallListParams,
|
|
2111
2292
|
type CallAppendToolInvocationsParams as CallAppendToolInvocationsParams,
|
|
2112
2293
|
type CallGetTranscriptParams as CallGetTranscriptParams,
|
|
2113
2294
|
type CallListMetricsParams as CallListMetricsParams,
|
|
2295
|
+
type CallUpdatePropertiesParams as CallUpdatePropertiesParams,
|
|
2114
2296
|
};
|
|
2115
2297
|
}
|
package/src/resources/config.ts
CHANGED
|
@@ -287,6 +287,8 @@ export namespace Bundle {
|
|
|
287
287
|
|
|
288
288
|
expectations?: Array<string>;
|
|
289
289
|
|
|
290
|
+
includeFlowExpectations?: boolean;
|
|
291
|
+
|
|
290
292
|
persona?: string;
|
|
291
293
|
|
|
292
294
|
prompt?: string;
|
|
@@ -1243,6 +1245,8 @@ export namespace Bundle {
|
|
|
1243
1245
|
|
|
1244
1246
|
expectations?: Array<string>;
|
|
1245
1247
|
|
|
1248
|
+
includeFlowExpectations?: boolean;
|
|
1249
|
+
|
|
1246
1250
|
persona?: string;
|
|
1247
1251
|
|
|
1248
1252
|
prompt?: string;
|
|
@@ -2346,6 +2350,8 @@ export namespace ConfigApplyParams {
|
|
|
2346
2350
|
|
|
2347
2351
|
expectations?: Array<string>;
|
|
2348
2352
|
|
|
2353
|
+
includeFlowExpectations?: boolean;
|
|
2354
|
+
|
|
2349
2355
|
persona?: string;
|
|
2350
2356
|
|
|
2351
2357
|
prompt?: string;
|
|
@@ -3302,6 +3308,8 @@ export namespace ConfigApplyParams {
|
|
|
3302
3308
|
|
|
3303
3309
|
expectations?: Array<string>;
|
|
3304
3310
|
|
|
3311
|
+
includeFlowExpectations?: boolean;
|
|
3312
|
+
|
|
3305
3313
|
persona?: string;
|
|
3306
3314
|
|
|
3307
3315
|
prompt?: string;
|
|
@@ -4234,6 +4242,8 @@ export namespace ConfigDiffParams {
|
|
|
4234
4242
|
|
|
4235
4243
|
expectations?: Array<string>;
|
|
4236
4244
|
|
|
4245
|
+
includeFlowExpectations?: boolean;
|
|
4246
|
+
|
|
4237
4247
|
persona?: string;
|
|
4238
4248
|
|
|
4239
4249
|
prompt?: string;
|
|
@@ -5190,6 +5200,8 @@ export namespace ConfigDiffParams {
|
|
|
5190
5200
|
|
|
5191
5201
|
expectations?: Array<string>;
|
|
5192
5202
|
|
|
5203
|
+
includeFlowExpectations?: boolean;
|
|
5204
|
+
|
|
5193
5205
|
persona?: string;
|
|
5194
5206
|
|
|
5195
5207
|
prompt?: string;
|
|
@@ -137,6 +137,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
137
137
|
*/
|
|
138
138
|
environment: ScriptedFlowVariant.Environment | null;
|
|
139
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
142
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
143
|
+
* Always true on the happy path.
|
|
144
|
+
*/
|
|
145
|
+
includeFlowExpectations: boolean;
|
|
146
|
+
|
|
140
147
|
isGenerated: boolean;
|
|
141
148
|
|
|
142
149
|
/**
|
|
@@ -498,6 +505,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
498
505
|
*/
|
|
499
506
|
handoffPersonas: Array<ImprovFlowVariant.HandoffPersona>;
|
|
500
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
510
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
511
|
+
* Always true on the happy path.
|
|
512
|
+
*/
|
|
513
|
+
includeFlowExpectations: boolean;
|
|
514
|
+
|
|
501
515
|
isGenerated: boolean;
|
|
502
516
|
|
|
503
517
|
/**
|
|
@@ -1101,6 +1115,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
1101
1115
|
*/
|
|
1102
1116
|
environment: VoicemailFlowVariant.Environment | null;
|
|
1103
1117
|
|
|
1118
|
+
/**
|
|
1119
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
1120
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
1121
|
+
* Always true on the happy path.
|
|
1122
|
+
*/
|
|
1123
|
+
includeFlowExpectations: boolean;
|
|
1124
|
+
|
|
1104
1125
|
isGenerated: boolean;
|
|
1105
1126
|
|
|
1106
1127
|
/**
|
|
@@ -1463,6 +1484,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1463
1484
|
*/
|
|
1464
1485
|
environment: ScriptedFlowVariant.Environment | null;
|
|
1465
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
1489
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
1490
|
+
* Always true on the happy path.
|
|
1491
|
+
*/
|
|
1492
|
+
includeFlowExpectations: boolean;
|
|
1493
|
+
|
|
1466
1494
|
isGenerated: boolean;
|
|
1467
1495
|
|
|
1468
1496
|
/**
|
|
@@ -1824,6 +1852,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1824
1852
|
*/
|
|
1825
1853
|
handoffPersonas: Array<ImprovFlowVariant.HandoffPersona>;
|
|
1826
1854
|
|
|
1855
|
+
/**
|
|
1856
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
1857
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
1858
|
+
* Always true on the happy path.
|
|
1859
|
+
*/
|
|
1860
|
+
includeFlowExpectations: boolean;
|
|
1861
|
+
|
|
1827
1862
|
isGenerated: boolean;
|
|
1828
1863
|
|
|
1829
1864
|
/**
|
|
@@ -2427,6 +2462,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2427
2462
|
*/
|
|
2428
2463
|
environment: VoicemailFlowVariant.Environment | null;
|
|
2429
2464
|
|
|
2465
|
+
/**
|
|
2466
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
2467
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
2468
|
+
* Always true on the happy path.
|
|
2469
|
+
*/
|
|
2470
|
+
includeFlowExpectations: boolean;
|
|
2471
|
+
|
|
2430
2472
|
isGenerated: boolean;
|
|
2431
2473
|
|
|
2432
2474
|
/**
|
|
@@ -2789,6 +2831,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
2789
2831
|
*/
|
|
2790
2832
|
environment: ScriptedFlowVariant.Environment | null;
|
|
2791
2833
|
|
|
2834
|
+
/**
|
|
2835
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
2836
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
2837
|
+
* Always true on the happy path.
|
|
2838
|
+
*/
|
|
2839
|
+
includeFlowExpectations: boolean;
|
|
2840
|
+
|
|
2792
2841
|
isGenerated: boolean;
|
|
2793
2842
|
|
|
2794
2843
|
/**
|
|
@@ -3150,6 +3199,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3150
3199
|
*/
|
|
3151
3200
|
handoffPersonas: Array<ImprovFlowVariant.HandoffPersona>;
|
|
3152
3201
|
|
|
3202
|
+
/**
|
|
3203
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
3204
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
3205
|
+
* Always true on the happy path.
|
|
3206
|
+
*/
|
|
3207
|
+
includeFlowExpectations: boolean;
|
|
3208
|
+
|
|
3153
3209
|
isGenerated: boolean;
|
|
3154
3210
|
|
|
3155
3211
|
/**
|
|
@@ -3753,6 +3809,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3753
3809
|
*/
|
|
3754
3810
|
environment: VoicemailFlowVariant.Environment | null;
|
|
3755
3811
|
|
|
3812
|
+
/**
|
|
3813
|
+
* Whether this variant is graded on the flow's agentExpectations as well as its
|
|
3814
|
+
* additionalExpectations. False grades it on its additionalExpectations only.
|
|
3815
|
+
* Always true on the happy path.
|
|
3816
|
+
*/
|
|
3817
|
+
includeFlowExpectations: boolean;
|
|
3818
|
+
|
|
3756
3819
|
isGenerated: boolean;
|
|
3757
3820
|
|
|
3758
3821
|
/**
|
|
@@ -4113,6 +4176,13 @@ export interface CustomerFlowEdgeCaseUpdateParams {
|
|
|
4113
4176
|
*/
|
|
4114
4177
|
environmentId?: string | null;
|
|
4115
4178
|
|
|
4179
|
+
/**
|
|
4180
|
+
* Body param: Whether this edge case is graded on the flow's agentExpectations as
|
|
4181
|
+
* well as its own additionalExpectations. Defaults to true; false grades it on its
|
|
4182
|
+
* additionalExpectations only.
|
|
4183
|
+
*/
|
|
4184
|
+
includeFlowExpectations?: boolean;
|
|
4185
|
+
|
|
4116
4186
|
/**
|
|
4117
4187
|
* Body param: The persona this runs as. Null on an edge case inherits the happy
|
|
4118
4188
|
* path's.
|
|
@@ -4163,6 +4233,13 @@ export interface CustomerFlowEdgeCaseAddParams {
|
|
|
4163
4233
|
|
|
4164
4234
|
environmentId?: string | null;
|
|
4165
4235
|
|
|
4236
|
+
/**
|
|
4237
|
+
* Whether this edge case is graded on the flow's agentExpectations as well as its
|
|
4238
|
+
* own additionalExpectations. Defaults to true; false grades it on its
|
|
4239
|
+
* additionalExpectations only.
|
|
4240
|
+
*/
|
|
4241
|
+
includeFlowExpectations?: boolean;
|
|
4242
|
+
|
|
4166
4243
|
/**
|
|
4167
4244
|
* The persona this runs as. Omit to inherit the happy path's.
|
|
4168
4245
|
*/
|