@roarkanalytics/sdk 5.9.0 → 5.10.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 +12 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- 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 +90 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +90 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +17 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +17 -0
- package/resources/call.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +98 -1
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +98 -1
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +17 -0
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +17 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/resources/usage.d.mts +4 -2
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +4 -2
- package/resources/usage.d.ts.map +1 -1
- package/resources/usage.js +4 -2
- package/resources/usage.js.map +1 -1
- package/resources/usage.mjs +4 -2
- package/resources/usage.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/call.ts +136 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/simulation-run-plan-job.ts +141 -0
- package/src/resources/usage.ts +4 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-run-plan-job.mjs","sourceRoot":"","sources":["../src/resources/simulation-run-plan-job.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;OASG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAa,EACb,OAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,KAAK,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAa,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CACR,KAAa,EACb,QAAiE,EAAE,EACnE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CACH,MAAc,EACd,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,MAAM,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"simulation-run-plan-job.mjs","sourceRoot":"","sources":["../src/resources/simulation-run-plan-job.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;OASG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CACX,KAAa,EACb,OAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,KAAK,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAa,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,KAAa,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,OAAO,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CACR,KAAa,EACb,QAAiE,EAAE,EACnE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CACH,MAAc,EACd,OAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,MAAM,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF"}
|
package/resources/usage.d.mts
CHANGED
|
@@ -6,8 +6,10 @@ export declare class Usage extends APIResource {
|
|
|
6
6
|
* Report billable usage and cost for the organization over a time window, broken
|
|
7
7
|
* down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
|
|
8
8
|
* optionally pass `projectId` to scope the report to one project. Amounts are
|
|
9
|
-
* billable spend only (what we absorb is never included). Authenticated by
|
|
10
|
-
* organization API key with the `usage:read` permission
|
|
9
|
+
* billable spend only (what we absorb is never included). Authenticated by either
|
|
10
|
+
* an organization API key with the `usage:read` permission (any project in the
|
|
11
|
+
* organization), or a project API key with the `billing:read` permission (that
|
|
12
|
+
* key's own project only; any other `projectId` is a 403).
|
|
11
13
|
*
|
|
12
14
|
* @example
|
|
13
15
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB,QAAQ,EAAE,KAAK,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE9B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB;;;eAGG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAEpC,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;SAC5B;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,SAAS;gBACxB;;mBAEG;gBACH,SAAS,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,eAAe,EAAE,MAAM,CAAC;gBAExB;;;;mBAIG;gBACH,MAAM,EACF,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,eAAe,GACf,QAAQ,GACR,eAAe,GACf,cAAc,GACd,cAAc,CAAC;gBAEnB;;mBAEG;gBACH,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC;aACrC;SACF;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
package/resources/usage.d.ts
CHANGED
|
@@ -6,8 +6,10 @@ export declare class Usage extends APIResource {
|
|
|
6
6
|
* Report billable usage and cost for the organization over a time window, broken
|
|
7
7
|
* down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
|
|
8
8
|
* optionally pass `projectId` to scope the report to one project. Amounts are
|
|
9
|
-
* billable spend only (what we absorb is never included). Authenticated by
|
|
10
|
-
* organization API key with the `usage:read` permission
|
|
9
|
+
* billable spend only (what we absorb is never included). Authenticated by either
|
|
10
|
+
* an organization API key with the `usage:read` permission (any project in the
|
|
11
|
+
* organization), or a project API key with the `billing:read` permission (that
|
|
12
|
+
* key's own project only; any other `projectId` is a 403).
|
|
11
13
|
*
|
|
12
14
|
* @example
|
|
13
15
|
* ```ts
|
package/resources/usage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB,QAAQ,EAAE,KAAK,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE9B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB;;;eAGG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAEpC,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;SAC5B;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,SAAS;gBACxB;;mBAEG;gBACH,SAAS,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,eAAe,EAAE,MAAM,CAAC;gBAExB;;;;mBAIG;gBACH,MAAM,EACF,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,eAAe,GACf,QAAQ,GACR,eAAe,GACf,cAAc,GACd,cAAc,CAAC;gBAEnB;;mBAEG;gBACH,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC;aACrC;SACF;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
package/resources/usage.js
CHANGED
|
@@ -8,8 +8,10 @@ class Usage extends resource_1.APIResource {
|
|
|
8
8
|
* Report billable usage and cost for the organization over a time window, broken
|
|
9
9
|
* down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
|
|
10
10
|
* optionally pass `projectId` to scope the report to one project. Amounts are
|
|
11
|
-
* billable spend only (what we absorb is never included). Authenticated by
|
|
12
|
-
* organization API key with the `usage:read` permission
|
|
11
|
+
* billable spend only (what we absorb is never included). Authenticated by either
|
|
12
|
+
* an organization API key with the `usage:read` permission (any project in the
|
|
13
|
+
* organization), or a project API key with the `billing:read` permission (that
|
|
14
|
+
* key's own project only; any other `projectId` is a 403).
|
|
13
15
|
*
|
|
14
16
|
* @example
|
|
15
17
|
* ```ts
|
package/resources/usage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,KAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AArBD,sBAqBC"}
|
package/resources/usage.mjs
CHANGED
|
@@ -5,8 +5,10 @@ export class Usage extends APIResource {
|
|
|
5
5
|
* Report billable usage and cost for the organization over a time window, broken
|
|
6
6
|
* down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
|
|
7
7
|
* optionally pass `projectId` to scope the report to one project. Amounts are
|
|
8
|
-
* billable spend only (what we absorb is never included). Authenticated by
|
|
9
|
-
* organization API key with the `usage:read` permission
|
|
8
|
+
* billable spend only (what we absorb is never included). Authenticated by either
|
|
9
|
+
* an organization API key with the `usage:read` permission (any project in the
|
|
10
|
+
* organization), or a project API key with the `billing:read` permission (that
|
|
11
|
+
* key's own project only; any other `projectId` is a 403).
|
|
10
12
|
*
|
|
11
13
|
* @example
|
|
12
14
|
* ```ts
|
package/resources/usage.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,KAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -101,6 +101,7 @@ import {
|
|
|
101
101
|
CallCreateParams,
|
|
102
102
|
CallCreateResponse,
|
|
103
103
|
CallGetByIDResponse,
|
|
104
|
+
CallGetCostResponse,
|
|
104
105
|
CallGetTranscriptParams,
|
|
105
106
|
CallGetTranscriptResponse,
|
|
106
107
|
CallListMetricsParams,
|
|
@@ -307,6 +308,7 @@ import {
|
|
|
307
308
|
SimulationRunPlanJobCreateDebriefParams,
|
|
308
309
|
SimulationRunPlanJobCreateDebriefResponse,
|
|
309
310
|
SimulationRunPlanJobGetByIDResponse,
|
|
311
|
+
SimulationRunPlanJobGetCostResponse,
|
|
310
312
|
SimulationRunPlanJobGetResultsParams,
|
|
311
313
|
SimulationRunPlanJobGetResultsResponse,
|
|
312
314
|
SimulationRunPlanJobListParams,
|
|
@@ -1175,6 +1177,7 @@ export declare namespace Roark {
|
|
|
1175
1177
|
type CallListResponse as CallListResponse,
|
|
1176
1178
|
type CallAppendToolInvocationsResponse as CallAppendToolInvocationsResponse,
|
|
1177
1179
|
type CallGetByIDResponse as CallGetByIDResponse,
|
|
1180
|
+
type CallGetCostResponse as CallGetCostResponse,
|
|
1178
1181
|
type CallGetTranscriptResponse as CallGetTranscriptResponse,
|
|
1179
1182
|
type CallListMetricsResponse as CallListMetricsResponse,
|
|
1180
1183
|
type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
|
|
@@ -1332,6 +1335,7 @@ export declare namespace Roark {
|
|
|
1332
1335
|
type SimulationRunPlanJobCancelResponse as SimulationRunPlanJobCancelResponse,
|
|
1333
1336
|
type SimulationRunPlanJobCreateDebriefResponse as SimulationRunPlanJobCreateDebriefResponse,
|
|
1334
1337
|
type SimulationRunPlanJobGetByIDResponse as SimulationRunPlanJobGetByIDResponse,
|
|
1338
|
+
type SimulationRunPlanJobGetCostResponse as SimulationRunPlanJobGetCostResponse,
|
|
1335
1339
|
type SimulationRunPlanJobGetResultsResponse as SimulationRunPlanJobGetResultsResponse,
|
|
1336
1340
|
type SimulationRunPlanJobStartResponse as SimulationRunPlanJobStartResponse,
|
|
1337
1341
|
type SimulationRunPlanJobListParams as SimulationRunPlanJobListParams,
|
package/src/resources/call.ts
CHANGED
|
@@ -87,6 +87,24 @@ export class Call extends APIResource {
|
|
|
87
87
|
return this._client.get(path`/v1/call/${callID}`, options);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* The billable spend attributed to one call, split by cost type, with every cost
|
|
92
|
+
* line behind it. Simulated calls include the costs their simulation incurred
|
|
93
|
+
* before the call connected. Amounts are billable spend only, in exact
|
|
94
|
+
* micro-dollars (`\*UsdMicros`) and dollars (`\*Usd`, for display). Requires an
|
|
95
|
+
* API key with the `billing:read` permission.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const response = await client.call.getCost(
|
|
100
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
getCost(callID: string, options?: RequestOptions): APIPromise<CallGetCostResponse> {
|
|
105
|
+
return this._client.get(path`/v1/call/${callID}/cost`, options);
|
|
106
|
+
}
|
|
107
|
+
|
|
90
108
|
/**
|
|
91
109
|
* Fetch the full transcript for a specific call. Optionally specify a
|
|
92
110
|
* transcription source; otherwise the best available source is used automatically.
|
|
@@ -707,6 +725,123 @@ export namespace CallGetByIDResponse {
|
|
|
707
725
|
}
|
|
708
726
|
}
|
|
709
727
|
|
|
728
|
+
export interface CallGetCostResponse {
|
|
729
|
+
data: CallGetCostResponse.Data;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export namespace CallGetCostResponse {
|
|
733
|
+
export interface Data {
|
|
734
|
+
/**
|
|
735
|
+
* Spend by cost type. Sums to totalUsdMicros.
|
|
736
|
+
*/
|
|
737
|
+
breakdown: Array<Data.Breakdown>;
|
|
738
|
+
|
|
739
|
+
callId: string;
|
|
740
|
+
|
|
741
|
+
currency: 'usd';
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Every billable cost line attributed to the call.
|
|
745
|
+
*/
|
|
746
|
+
items: Array<Data.Item>;
|
|
747
|
+
|
|
748
|
+
totalUsd: number;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Total billable spend for this call, in micro-dollars.
|
|
752
|
+
*/
|
|
753
|
+
totalUsdMicros: number;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export namespace Data {
|
|
757
|
+
export interface Breakdown {
|
|
758
|
+
/**
|
|
759
|
+
* The same figure in US dollars.
|
|
760
|
+
*/
|
|
761
|
+
amountUsd: number;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Billable spend for this type, in micro-dollars.
|
|
765
|
+
*/
|
|
766
|
+
amountUsdMicros: number;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Units billed (see the line items for the unit).
|
|
770
|
+
*/
|
|
771
|
+
quantity: number;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* The cost source, e.g. SIM_PLATFORM_FEE, SIM_LLM, METRIC.
|
|
775
|
+
*/
|
|
776
|
+
source:
|
|
777
|
+
| 'SIM_PLATFORM_FEE'
|
|
778
|
+
| 'SIM_TTS'
|
|
779
|
+
| 'SIM_STT'
|
|
780
|
+
| 'SIM_LLM'
|
|
781
|
+
| 'SIM_TELEPHONY'
|
|
782
|
+
| 'METRIC'
|
|
783
|
+
| 'TRANSCRIPTION'
|
|
784
|
+
| 'INTERNAL_LLM'
|
|
785
|
+
| 'INTERNAL_STT';
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* SIMULATION or POST_CALL.
|
|
789
|
+
*/
|
|
790
|
+
surface: 'SIMULATION' | 'POST_CALL';
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export interface Item {
|
|
794
|
+
amountUsd: number;
|
|
795
|
+
|
|
796
|
+
amountUsdMicros: number;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Stable id of the cost event. Use it to deduplicate.
|
|
800
|
+
*/
|
|
801
|
+
eventId: string;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The grading pass a METRIC line paid for. A call graded twice carries one line
|
|
805
|
+
* per pass.
|
|
806
|
+
*/
|
|
807
|
+
metricCollectionJobId: string | null;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* The metric a METRIC line was charged for.
|
|
811
|
+
*/
|
|
812
|
+
metricDefinitionId: string | null;
|
|
813
|
+
|
|
814
|
+
model: string | null;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* When the cost was incurred, ISO 8601.
|
|
818
|
+
*/
|
|
819
|
+
occurredAt: string;
|
|
820
|
+
|
|
821
|
+
provider: string | null;
|
|
822
|
+
|
|
823
|
+
quantity: number;
|
|
824
|
+
|
|
825
|
+
quantityUnit: 'MINUTES' | 'INPUT_TOKENS' | 'OUTPUT_TOKENS' | 'CHARACTERS' | 'AUDIO_SECONDS' | 'UNITS';
|
|
826
|
+
|
|
827
|
+
simulationJobId: string | null;
|
|
828
|
+
|
|
829
|
+
source:
|
|
830
|
+
| 'SIM_PLATFORM_FEE'
|
|
831
|
+
| 'SIM_TTS'
|
|
832
|
+
| 'SIM_STT'
|
|
833
|
+
| 'SIM_LLM'
|
|
834
|
+
| 'SIM_TELEPHONY'
|
|
835
|
+
| 'METRIC'
|
|
836
|
+
| 'TRANSCRIPTION'
|
|
837
|
+
| 'INTERNAL_LLM'
|
|
838
|
+
| 'INTERNAL_STT';
|
|
839
|
+
|
|
840
|
+
surface: 'SIMULATION' | 'POST_CALL';
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
710
845
|
export interface CallGetTranscriptResponse {
|
|
711
846
|
/**
|
|
712
847
|
* Call transcript response
|
|
@@ -2283,6 +2418,7 @@ export declare namespace Call {
|
|
|
2283
2418
|
type CallListResponse as CallListResponse,
|
|
2284
2419
|
type CallAppendToolInvocationsResponse as CallAppendToolInvocationsResponse,
|
|
2285
2420
|
type CallGetByIDResponse as CallGetByIDResponse,
|
|
2421
|
+
type CallGetCostResponse as CallGetCostResponse,
|
|
2286
2422
|
type CallGetTranscriptResponse as CallGetTranscriptResponse,
|
|
2287
2423
|
type CallListMetricsResponse as CallListMetricsResponse,
|
|
2288
2424
|
type CallListSentimentRunsResponse as CallListSentimentRunsResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -83,6 +83,7 @@ export {
|
|
|
83
83
|
type CallListResponse,
|
|
84
84
|
type CallAppendToolInvocationsResponse,
|
|
85
85
|
type CallGetByIDResponse,
|
|
86
|
+
type CallGetCostResponse,
|
|
86
87
|
type CallGetTranscriptResponse,
|
|
87
88
|
type CallListMetricsResponse,
|
|
88
89
|
type CallListSentimentRunsResponse,
|
|
@@ -287,6 +288,7 @@ export {
|
|
|
287
288
|
type SimulationRunPlanJobCancelResponse,
|
|
288
289
|
type SimulationRunPlanJobCreateDebriefResponse,
|
|
289
290
|
type SimulationRunPlanJobGetByIDResponse,
|
|
291
|
+
type SimulationRunPlanJobGetCostResponse,
|
|
290
292
|
type SimulationRunPlanJobGetResultsResponse,
|
|
291
293
|
type SimulationRunPlanJobStartResponse,
|
|
292
294
|
type SimulationRunPlanJobListParams,
|
|
@@ -81,6 +81,24 @@ export class SimulationRunPlanJob extends APIResource {
|
|
|
81
81
|
return this._client.get(path`/v1/simulation/plan/job/${jobID}`, options);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* The billable spend for one simulation run (run plan job), split by cost type,
|
|
86
|
+
* with the spend of each simulated call in it. Safe to call while the run is in
|
|
87
|
+
* progress: totals reflect the costs recorded so far. Amounts are billable spend
|
|
88
|
+
* only, in exact micro-dollars (`\*UsdMicros`) and dollars (`\*Usd`, for display).
|
|
89
|
+
* Requires an API key with the `billing:read` permission.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const response = await client.simulationRunPlanJob.getCost(
|
|
94
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
95
|
+
* );
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
getCost(jobID: string, options?: RequestOptions): APIPromise<SimulationRunPlanJobGetCostResponse> {
|
|
99
|
+
return this._client.get(path`/v1/simulation/plan/job/${jobID}/cost`, options);
|
|
100
|
+
}
|
|
101
|
+
|
|
84
102
|
/**
|
|
85
103
|
* Everything the run report shows, in one request: the summary and score, the
|
|
86
104
|
* pass/fail verdict, per-metric aggregates, every simulation with its check
|
|
@@ -1552,6 +1570,128 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
1552
1570
|
}
|
|
1553
1571
|
}
|
|
1554
1572
|
|
|
1573
|
+
export interface SimulationRunPlanJobGetCostResponse {
|
|
1574
|
+
data: SimulationRunPlanJobGetCostResponse.Data;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
export namespace SimulationRunPlanJobGetCostResponse {
|
|
1578
|
+
export interface Data {
|
|
1579
|
+
/**
|
|
1580
|
+
* Spend by cost type. Sums to totalUsdMicros.
|
|
1581
|
+
*/
|
|
1582
|
+
breakdown: Array<Data.Breakdown>;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Spend per simulated call in the run.
|
|
1586
|
+
*/
|
|
1587
|
+
calls: Array<Data.Call>;
|
|
1588
|
+
|
|
1589
|
+
currency: 'usd';
|
|
1590
|
+
|
|
1591
|
+
jobId: string;
|
|
1592
|
+
|
|
1593
|
+
totalUsd: number;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Total billable spend for the run, in micro-dollars.
|
|
1597
|
+
*/
|
|
1598
|
+
totalUsdMicros: number;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export namespace Data {
|
|
1602
|
+
export interface Breakdown {
|
|
1603
|
+
/**
|
|
1604
|
+
* The same figure in US dollars.
|
|
1605
|
+
*/
|
|
1606
|
+
amountUsd: number;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Billable spend for this type, in micro-dollars.
|
|
1610
|
+
*/
|
|
1611
|
+
amountUsdMicros: number;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Units billed (see the line items for the unit).
|
|
1615
|
+
*/
|
|
1616
|
+
quantity: number;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* The cost source, e.g. SIM_PLATFORM_FEE, SIM_LLM, METRIC.
|
|
1620
|
+
*/
|
|
1621
|
+
source:
|
|
1622
|
+
| 'SIM_PLATFORM_FEE'
|
|
1623
|
+
| 'SIM_TTS'
|
|
1624
|
+
| 'SIM_STT'
|
|
1625
|
+
| 'SIM_LLM'
|
|
1626
|
+
| 'SIM_TELEPHONY'
|
|
1627
|
+
| 'METRIC'
|
|
1628
|
+
| 'TRANSCRIPTION'
|
|
1629
|
+
| 'INTERNAL_LLM'
|
|
1630
|
+
| 'INTERNAL_STT';
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* SIMULATION or POST_CALL.
|
|
1634
|
+
*/
|
|
1635
|
+
surface: 'SIMULATION' | 'POST_CALL';
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
export interface Call {
|
|
1639
|
+
amountUsd: number;
|
|
1640
|
+
|
|
1641
|
+
amountUsdMicros: number;
|
|
1642
|
+
|
|
1643
|
+
breakdown: Array<Call.Breakdown>;
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* The call (voice runs) or chat (chat runs) the spend is attributed to. Null for
|
|
1647
|
+
* costs incurred before the conversation existed; use simulationJobId to join
|
|
1648
|
+
* those.
|
|
1649
|
+
*/
|
|
1650
|
+
conversationId: string | null;
|
|
1651
|
+
|
|
1652
|
+
simulationJobId: string | null;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
export namespace Call {
|
|
1656
|
+
export interface Breakdown {
|
|
1657
|
+
/**
|
|
1658
|
+
* The same figure in US dollars.
|
|
1659
|
+
*/
|
|
1660
|
+
amountUsd: number;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Billable spend for this type, in micro-dollars.
|
|
1664
|
+
*/
|
|
1665
|
+
amountUsdMicros: number;
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* Units billed (see the line items for the unit).
|
|
1669
|
+
*/
|
|
1670
|
+
quantity: number;
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* The cost source, e.g. SIM_PLATFORM_FEE, SIM_LLM, METRIC.
|
|
1674
|
+
*/
|
|
1675
|
+
source:
|
|
1676
|
+
| 'SIM_PLATFORM_FEE'
|
|
1677
|
+
| 'SIM_TTS'
|
|
1678
|
+
| 'SIM_STT'
|
|
1679
|
+
| 'SIM_LLM'
|
|
1680
|
+
| 'SIM_TELEPHONY'
|
|
1681
|
+
| 'METRIC'
|
|
1682
|
+
| 'TRANSCRIPTION'
|
|
1683
|
+
| 'INTERNAL_LLM'
|
|
1684
|
+
| 'INTERNAL_STT';
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* SIMULATION or POST_CALL.
|
|
1688
|
+
*/
|
|
1689
|
+
surface: 'SIMULATION' | 'POST_CALL';
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1555
1695
|
export interface SimulationRunPlanJobGetResultsResponse {
|
|
1556
1696
|
/**
|
|
1557
1697
|
* Everything the run report shows, in one response.
|
|
@@ -2882,6 +3022,7 @@ export declare namespace SimulationRunPlanJob {
|
|
|
2882
3022
|
type SimulationRunPlanJobCancelResponse as SimulationRunPlanJobCancelResponse,
|
|
2883
3023
|
type SimulationRunPlanJobCreateDebriefResponse as SimulationRunPlanJobCreateDebriefResponse,
|
|
2884
3024
|
type SimulationRunPlanJobGetByIDResponse as SimulationRunPlanJobGetByIDResponse,
|
|
3025
|
+
type SimulationRunPlanJobGetCostResponse as SimulationRunPlanJobGetCostResponse,
|
|
2885
3026
|
type SimulationRunPlanJobGetResultsResponse as SimulationRunPlanJobGetResultsResponse,
|
|
2886
3027
|
type SimulationRunPlanJobStartResponse as SimulationRunPlanJobStartResponse,
|
|
2887
3028
|
type SimulationRunPlanJobListParams as SimulationRunPlanJobListParams,
|
package/src/resources/usage.ts
CHANGED
|
@@ -9,8 +9,10 @@ export class Usage extends APIResource {
|
|
|
9
9
|
* Report billable usage and cost for the organization over a time window, broken
|
|
10
10
|
* down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
|
|
11
11
|
* optionally pass `projectId` to scope the report to one project. Amounts are
|
|
12
|
-
* billable spend only (what we absorb is never included). Authenticated by
|
|
13
|
-
* organization API key with the `usage:read` permission
|
|
12
|
+
* billable spend only (what we absorb is never included). Authenticated by either
|
|
13
|
+
* an organization API key with the `usage:read` permission (any project in the
|
|
14
|
+
* organization), or a project API key with the `billing:read` permission (that
|
|
15
|
+
* key's own project only; any other `projectId` is a 403).
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
16
18
|
* ```ts
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|