@roarkanalytics/sdk 2.21.0 → 2.21.2
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 +16 -0
- package/README.md +112 -51
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +196 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +196 -0
- package/client.d.ts.map +1 -0
- package/client.js +472 -0
- package/client.js.map +1 -0
- package/client.mjs +468 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -132
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -131
- package/index.d.ts.map +1 -1
- package/index.js +12 -130
- package/index.js.map +1 -1
- package/index.mjs +5 -103
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +108 -73
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/call.d.mts +1207 -0
- package/resources/call.d.mts.map +1 -0
- package/resources/call.d.ts +9 -10
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +17 -16
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +17 -16
- package/resources/call.mjs.map +1 -1
- package/resources/evaluation.d.mts +1307 -0
- package/resources/evaluation.d.mts.map +1 -0
- package/resources/evaluation.d.ts +8 -9
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/evaluation.js +15 -14
- package/resources/evaluation.js.map +1 -1
- package/resources/evaluation.mjs +15 -14
- package/resources/evaluation.mjs.map +1 -1
- package/resources/health.d.mts +29 -0
- package/resources/health.d.mts.map +1 -0
- package/resources/health.d.ts +4 -3
- package/resources/health.d.ts.map +1 -1
- package/resources/health.js +1 -1
- package/resources/health.js.map +1 -1
- package/resources/health.mjs +1 -1
- package/resources/health.mjs.map +1 -1
- package/resources/index.d.mts +8 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/integrations.d.mts +114 -0
- package/resources/integrations.d.mts.map +1 -0
- package/resources/integrations.d.ts +5 -4
- package/resources/integrations.d.ts.map +1 -1
- package/resources/integrations.js +1 -1
- package/resources/integrations.js.map +1 -1
- package/resources/integrations.mjs +1 -1
- package/resources/integrations.mjs.map +1 -1
- package/resources/metric.d.mts +75 -0
- package/resources/metric.d.mts.map +1 -0
- package/resources/metric.d.ts +4 -3
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +1 -1
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +1 -1
- package/resources/metric.mjs.map +1 -1
- package/resources/persona.d.mts +528 -0
- package/resources/persona.d.mts.map +1 -0
- package/resources/persona.d.ts +8 -9
- package/resources/persona.d.ts.map +1 -1
- package/resources/persona.js +23 -13
- package/resources/persona.js.map +1 -1
- package/resources/persona.mjs +23 -13
- package/resources/persona.mjs.map +1 -1
- package/resources/simulation.d.mts +802 -0
- package/resources/simulation.d.mts.map +1 -0
- package/resources/simulation.d.ts +10 -11
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +26 -15
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +26 -15
- package/resources/simulation.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +842 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +5 -308
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/resource.ts +2 -11
- package/src/resources/call.ts +19 -38
- package/src/resources/evaluation.ts +21 -37
- package/src/resources/health.ts +4 -3
- package/src/resources/integrations.ts +7 -6
- package/src/resources/metric.ts +4 -3
- package/src/resources/persona.ts +16 -29
- package/src/resources/simulation.ts +22 -43
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -929
- package/core.js.map +0 -1
- package/core.mjs +0 -897
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1242
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -0,0 +1,1307 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Evaluation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a evaluation job for a single call or dataset of calls
|
|
7
|
+
*/
|
|
8
|
+
createJob(body: EvaluationCreateJobParams, options?: RequestOptions): APIPromise<EvaluationCreateJobResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a specific evaluator with its blocks and configuration.
|
|
11
|
+
*/
|
|
12
|
+
getEvaluatorByID(evaluatorID: string, options?: RequestOptions): APIPromise<EvaluationGetEvaluatorByIDResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve details of a specific evaluation job
|
|
15
|
+
*/
|
|
16
|
+
getJob(jobID: string, options?: RequestOptions): APIPromise<EvaluationGetJobResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a list of evaluators with their blocks and configuration for the
|
|
19
|
+
* authenticated project.
|
|
20
|
+
*/
|
|
21
|
+
listEvaluators(query?: EvaluationListEvaluatorsParams | null | undefined, options?: RequestOptions): APIPromise<EvaluationListEvaluatorsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve paginated details of a specific evaluation job runs
|
|
24
|
+
*/
|
|
25
|
+
listJobRuns(jobID: string, query?: EvaluationListJobRunsParams | null | undefined, options?: RequestOptions): APIPromise<EvaluationListJobRunsResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface EvaluationCreateJobResponse {
|
|
28
|
+
data: EvaluationCreateJobResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace EvaluationCreateJobResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* ID of the evaluation job
|
|
34
|
+
*/
|
|
35
|
+
jobId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status of the evaluation job
|
|
38
|
+
*/
|
|
39
|
+
status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
|
|
40
|
+
/**
|
|
41
|
+
* ID of the call being evaluated (only present for single call evaluations)
|
|
42
|
+
*/
|
|
43
|
+
callId?: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Evaluator with its configured blocks
|
|
48
|
+
*/
|
|
49
|
+
export interface EvaluationGetEvaluatorByIDResponse {
|
|
50
|
+
/**
|
|
51
|
+
* Unique identifier for the evaluator
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* Array of evaluation blocks configured for this evaluator
|
|
56
|
+
*/
|
|
57
|
+
blocks: Array<EvaluationGetEvaluatorByIDResponse.UnionMember0 | EvaluationGetEvaluatorByIDResponse.UnionMember1 | EvaluationGetEvaluatorByIDResponse.UnionMember2 | EvaluationGetEvaluatorByIDResponse.UnionMember3 | EvaluationGetEvaluatorByIDResponse.UnionMember4 | EvaluationGetEvaluatorByIDResponse.UnionMember5 | EvaluationGetEvaluatorByIDResponse.UnionMember6 | EvaluationGetEvaluatorByIDResponse.UnionMember7 | EvaluationGetEvaluatorByIDResponse.UnionMember8>;
|
|
58
|
+
/**
|
|
59
|
+
* ISO timestamp when the evaluator was created
|
|
60
|
+
*/
|
|
61
|
+
createdAt: string;
|
|
62
|
+
/**
|
|
63
|
+
* Optional description of the evaluator
|
|
64
|
+
*/
|
|
65
|
+
description: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the evaluator
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* Unique slug identifier for the evaluator
|
|
72
|
+
*/
|
|
73
|
+
slug: string;
|
|
74
|
+
/**
|
|
75
|
+
* ISO timestamp when the evaluator was last updated
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace EvaluationGetEvaluatorByIDResponse {
|
|
80
|
+
interface UnionMember0 {
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier for the block
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* Block type identifier
|
|
87
|
+
*/
|
|
88
|
+
blockType: 'CUSTOM_PROMPT';
|
|
89
|
+
/**
|
|
90
|
+
* Optional description of what this block evaluates
|
|
91
|
+
*/
|
|
92
|
+
description: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the metric this prompt evaluates
|
|
95
|
+
*/
|
|
96
|
+
metricName: string;
|
|
97
|
+
/**
|
|
98
|
+
* Display name of the evaluation block
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Order in which this block is executed
|
|
103
|
+
*/
|
|
104
|
+
orderIndex: number;
|
|
105
|
+
/**
|
|
106
|
+
* The prompt to evaluate the call against
|
|
107
|
+
*/
|
|
108
|
+
prompt: string;
|
|
109
|
+
/**
|
|
110
|
+
* Minimum score threshold to pass evaluation (0-1)
|
|
111
|
+
*/
|
|
112
|
+
threshold: number;
|
|
113
|
+
/**
|
|
114
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
115
|
+
*/
|
|
116
|
+
weight: number;
|
|
117
|
+
}
|
|
118
|
+
interface UnionMember1 {
|
|
119
|
+
/**
|
|
120
|
+
* Unique identifier for the block
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Block type identifier
|
|
125
|
+
*/
|
|
126
|
+
blockType: 'DATAFIELD_CHECK';
|
|
127
|
+
/**
|
|
128
|
+
* Optional description of what this block evaluates
|
|
129
|
+
*/
|
|
130
|
+
description: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* Criteria for evaluating the property
|
|
133
|
+
*/
|
|
134
|
+
evaluationCriteria: string;
|
|
135
|
+
/**
|
|
136
|
+
* Whether this property must be present
|
|
137
|
+
*/
|
|
138
|
+
isRequired: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Display name of the evaluation block
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
/**
|
|
144
|
+
* Order in which this block is executed
|
|
145
|
+
*/
|
|
146
|
+
orderIndex: number;
|
|
147
|
+
/**
|
|
148
|
+
* Name of the property to check
|
|
149
|
+
*/
|
|
150
|
+
propertyName: string;
|
|
151
|
+
/**
|
|
152
|
+
* Minimum score threshold to pass evaluation (0-1)
|
|
153
|
+
*/
|
|
154
|
+
threshold: number;
|
|
155
|
+
/**
|
|
156
|
+
* Expected type of the property value
|
|
157
|
+
*/
|
|
158
|
+
valueType: string;
|
|
159
|
+
/**
|
|
160
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
161
|
+
*/
|
|
162
|
+
weight: number;
|
|
163
|
+
}
|
|
164
|
+
interface UnionMember2 {
|
|
165
|
+
/**
|
|
166
|
+
* Unique identifier for the block
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
/**
|
|
170
|
+
* Block type identifier
|
|
171
|
+
*/
|
|
172
|
+
blockType: 'EMOTION';
|
|
173
|
+
/**
|
|
174
|
+
* Optional description of what this block evaluates
|
|
175
|
+
*/
|
|
176
|
+
description: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* Display name of the evaluation block
|
|
179
|
+
*/
|
|
180
|
+
name: string;
|
|
181
|
+
/**
|
|
182
|
+
* Order in which this block is executed
|
|
183
|
+
*/
|
|
184
|
+
orderIndex: number;
|
|
185
|
+
/**
|
|
186
|
+
* The emotion to detect (e.g., "joy", "anger", "sadness")
|
|
187
|
+
*/
|
|
188
|
+
selectedEmotion: string;
|
|
189
|
+
/**
|
|
190
|
+
* Minimum confidence threshold for emotion detection (0-1)
|
|
191
|
+
*/
|
|
192
|
+
threshold: number;
|
|
193
|
+
/**
|
|
194
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
195
|
+
*/
|
|
196
|
+
weight: number;
|
|
197
|
+
}
|
|
198
|
+
interface UnionMember3 {
|
|
199
|
+
/**
|
|
200
|
+
* Unique identifier for the block
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
203
|
+
/**
|
|
204
|
+
* Block type identifier
|
|
205
|
+
*/
|
|
206
|
+
blockType: 'LATENCY';
|
|
207
|
+
/**
|
|
208
|
+
* Optional description of what this block evaluates
|
|
209
|
+
*/
|
|
210
|
+
description: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* Maximum number of silence periods allowed
|
|
213
|
+
*/
|
|
214
|
+
maxAllowedSilences: number;
|
|
215
|
+
/**
|
|
216
|
+
* Minimum duration of silence in milliseconds to be considered
|
|
217
|
+
*/
|
|
218
|
+
minSilenceDuration: number;
|
|
219
|
+
/**
|
|
220
|
+
* Display name of the evaluation block
|
|
221
|
+
*/
|
|
222
|
+
name: string;
|
|
223
|
+
/**
|
|
224
|
+
* Order in which this block is executed
|
|
225
|
+
*/
|
|
226
|
+
orderIndex: number;
|
|
227
|
+
/**
|
|
228
|
+
* Maximum allowed latency score
|
|
229
|
+
*/
|
|
230
|
+
threshold: number;
|
|
231
|
+
/**
|
|
232
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
233
|
+
*/
|
|
234
|
+
weight: number;
|
|
235
|
+
}
|
|
236
|
+
interface UnionMember4 {
|
|
237
|
+
/**
|
|
238
|
+
* Unique identifier for the block
|
|
239
|
+
*/
|
|
240
|
+
id: string;
|
|
241
|
+
/**
|
|
242
|
+
* Block type identifier
|
|
243
|
+
*/
|
|
244
|
+
blockType: 'POLITENESS';
|
|
245
|
+
/**
|
|
246
|
+
* Optional description of what this block evaluates
|
|
247
|
+
*/
|
|
248
|
+
description: string | null;
|
|
249
|
+
/**
|
|
250
|
+
* Display name of the evaluation block
|
|
251
|
+
*/
|
|
252
|
+
name: string;
|
|
253
|
+
/**
|
|
254
|
+
* Order in which this block is executed
|
|
255
|
+
*/
|
|
256
|
+
orderIndex: number;
|
|
257
|
+
/**
|
|
258
|
+
* Minimum politeness score threshold (0-1)
|
|
259
|
+
*/
|
|
260
|
+
threshold: number;
|
|
261
|
+
/**
|
|
262
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
263
|
+
*/
|
|
264
|
+
weight: number;
|
|
265
|
+
}
|
|
266
|
+
interface UnionMember5 {
|
|
267
|
+
/**
|
|
268
|
+
* Unique identifier for the block
|
|
269
|
+
*/
|
|
270
|
+
id: string;
|
|
271
|
+
/**
|
|
272
|
+
* Block type identifier
|
|
273
|
+
*/
|
|
274
|
+
blockType: 'SENTIMENT';
|
|
275
|
+
/**
|
|
276
|
+
* Optional description of what this block evaluates
|
|
277
|
+
*/
|
|
278
|
+
description: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* Display name of the evaluation block
|
|
281
|
+
*/
|
|
282
|
+
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* Order in which this block is executed
|
|
285
|
+
*/
|
|
286
|
+
orderIndex: number;
|
|
287
|
+
/**
|
|
288
|
+
* Minimum sentiment score threshold (0-1)
|
|
289
|
+
*/
|
|
290
|
+
threshold: number;
|
|
291
|
+
/**
|
|
292
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
293
|
+
*/
|
|
294
|
+
weight: number;
|
|
295
|
+
}
|
|
296
|
+
interface UnionMember6 {
|
|
297
|
+
/**
|
|
298
|
+
* Unique identifier for the block
|
|
299
|
+
*/
|
|
300
|
+
id: string;
|
|
301
|
+
/**
|
|
302
|
+
* Block type identifier
|
|
303
|
+
*/
|
|
304
|
+
blockType: 'TOOL_CALLS';
|
|
305
|
+
/**
|
|
306
|
+
* Optional description of what this block evaluates
|
|
307
|
+
*/
|
|
308
|
+
description: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Condition that must be met for tool invocation
|
|
311
|
+
*/
|
|
312
|
+
invocationCondition: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Minimum number of times the tool should be invoked
|
|
315
|
+
*/
|
|
316
|
+
minInvocationCount: number | null;
|
|
317
|
+
/**
|
|
318
|
+
* Display name of the evaluation block
|
|
319
|
+
*/
|
|
320
|
+
name: string;
|
|
321
|
+
/**
|
|
322
|
+
* Order in which this block is executed
|
|
323
|
+
*/
|
|
324
|
+
orderIndex: number;
|
|
325
|
+
/**
|
|
326
|
+
* Whether the tool should be invoked
|
|
327
|
+
*/
|
|
328
|
+
shouldBeInvoked: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* ID of the tool definition
|
|
331
|
+
*/
|
|
332
|
+
toolDefinitionId: string;
|
|
333
|
+
/**
|
|
334
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
335
|
+
*/
|
|
336
|
+
weight: number;
|
|
337
|
+
}
|
|
338
|
+
interface UnionMember7 {
|
|
339
|
+
/**
|
|
340
|
+
* Unique identifier for the block
|
|
341
|
+
*/
|
|
342
|
+
id: string;
|
|
343
|
+
/**
|
|
344
|
+
* Block type identifier
|
|
345
|
+
*/
|
|
346
|
+
blockType: 'TOXICITY';
|
|
347
|
+
/**
|
|
348
|
+
* Optional description of what this block evaluates
|
|
349
|
+
*/
|
|
350
|
+
description: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Display name of the evaluation block
|
|
353
|
+
*/
|
|
354
|
+
name: string;
|
|
355
|
+
/**
|
|
356
|
+
* Order in which this block is executed
|
|
357
|
+
*/
|
|
358
|
+
orderIndex: number;
|
|
359
|
+
/**
|
|
360
|
+
* Maximum allowed toxicity score (0-1)
|
|
361
|
+
*/
|
|
362
|
+
threshold: number;
|
|
363
|
+
/**
|
|
364
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
365
|
+
*/
|
|
366
|
+
weight: number;
|
|
367
|
+
}
|
|
368
|
+
interface UnionMember8 {
|
|
369
|
+
/**
|
|
370
|
+
* Unique identifier for the block
|
|
371
|
+
*/
|
|
372
|
+
id: string;
|
|
373
|
+
/**
|
|
374
|
+
* Block type identifier
|
|
375
|
+
*/
|
|
376
|
+
blockType: 'VOCAL_CUE';
|
|
377
|
+
/**
|
|
378
|
+
* Optional description of what this block evaluates
|
|
379
|
+
*/
|
|
380
|
+
description: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* Display name of the evaluation block
|
|
383
|
+
*/
|
|
384
|
+
name: string;
|
|
385
|
+
/**
|
|
386
|
+
* Order in which this block is executed
|
|
387
|
+
*/
|
|
388
|
+
orderIndex: number;
|
|
389
|
+
/**
|
|
390
|
+
* The vocal cue to detect (e.g., "pace", "tone", "volume")
|
|
391
|
+
*/
|
|
392
|
+
selectedCue: string;
|
|
393
|
+
/**
|
|
394
|
+
* Minimum confidence threshold for vocal cue detection (0-1)
|
|
395
|
+
*/
|
|
396
|
+
threshold: number;
|
|
397
|
+
/**
|
|
398
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
399
|
+
*/
|
|
400
|
+
weight: number;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
export interface EvaluationGetJobResponse {
|
|
404
|
+
/**
|
|
405
|
+
* Evaluation job response payload
|
|
406
|
+
*/
|
|
407
|
+
data: EvaluationGetJobResponse.Data;
|
|
408
|
+
}
|
|
409
|
+
export declare namespace EvaluationGetJobResponse {
|
|
410
|
+
/**
|
|
411
|
+
* Evaluation job response payload
|
|
412
|
+
*/
|
|
413
|
+
interface Data {
|
|
414
|
+
/**
|
|
415
|
+
* ID of the evaluation job
|
|
416
|
+
*/
|
|
417
|
+
id: string;
|
|
418
|
+
/**
|
|
419
|
+
* Status of the evaluation job
|
|
420
|
+
*/
|
|
421
|
+
status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
|
|
422
|
+
/**
|
|
423
|
+
* Call being evaluated
|
|
424
|
+
*/
|
|
425
|
+
call?: Data.Call;
|
|
426
|
+
/**
|
|
427
|
+
* Dataset being evaluated
|
|
428
|
+
*/
|
|
429
|
+
dataset?: Data.Dataset;
|
|
430
|
+
}
|
|
431
|
+
namespace Data {
|
|
432
|
+
/**
|
|
433
|
+
* Call being evaluated
|
|
434
|
+
*/
|
|
435
|
+
interface Call {
|
|
436
|
+
/**
|
|
437
|
+
* ID of the call being evaluated
|
|
438
|
+
*/
|
|
439
|
+
id: string | null;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Dataset being evaluated
|
|
443
|
+
*/
|
|
444
|
+
interface Dataset {
|
|
445
|
+
/**
|
|
446
|
+
* ID of the dataset
|
|
447
|
+
*/
|
|
448
|
+
id: string | null;
|
|
449
|
+
/**
|
|
450
|
+
* Calls in the dataset
|
|
451
|
+
*/
|
|
452
|
+
calls: Array<Dataset.Call>;
|
|
453
|
+
}
|
|
454
|
+
namespace Dataset {
|
|
455
|
+
interface Call {
|
|
456
|
+
/**
|
|
457
|
+
* ID of the call
|
|
458
|
+
*/
|
|
459
|
+
id: string | null;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Response containing evaluators and pagination info
|
|
466
|
+
*/
|
|
467
|
+
export interface EvaluationListEvaluatorsResponse {
|
|
468
|
+
/**
|
|
469
|
+
* Array of evaluators with their blocks
|
|
470
|
+
*/
|
|
471
|
+
data: Array<EvaluationListEvaluatorsResponse.Data>;
|
|
472
|
+
/**
|
|
473
|
+
* Pagination information
|
|
474
|
+
*/
|
|
475
|
+
pagination: EvaluationListEvaluatorsResponse.Pagination;
|
|
476
|
+
}
|
|
477
|
+
export declare namespace EvaluationListEvaluatorsResponse {
|
|
478
|
+
/**
|
|
479
|
+
* Evaluator with its configured blocks
|
|
480
|
+
*/
|
|
481
|
+
interface Data {
|
|
482
|
+
/**
|
|
483
|
+
* Unique identifier for the evaluator
|
|
484
|
+
*/
|
|
485
|
+
id: string;
|
|
486
|
+
/**
|
|
487
|
+
* Array of evaluation blocks configured for this evaluator
|
|
488
|
+
*/
|
|
489
|
+
blocks: Array<Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2 | Data.UnionMember3 | Data.UnionMember4 | Data.UnionMember5 | Data.UnionMember6 | Data.UnionMember7 | Data.UnionMember8>;
|
|
490
|
+
/**
|
|
491
|
+
* ISO timestamp when the evaluator was created
|
|
492
|
+
*/
|
|
493
|
+
createdAt: string;
|
|
494
|
+
/**
|
|
495
|
+
* Optional description of the evaluator
|
|
496
|
+
*/
|
|
497
|
+
description: string | null;
|
|
498
|
+
/**
|
|
499
|
+
* Name of the evaluator
|
|
500
|
+
*/
|
|
501
|
+
name: string;
|
|
502
|
+
/**
|
|
503
|
+
* Unique slug identifier for the evaluator
|
|
504
|
+
*/
|
|
505
|
+
slug: string;
|
|
506
|
+
/**
|
|
507
|
+
* ISO timestamp when the evaluator was last updated
|
|
508
|
+
*/
|
|
509
|
+
updatedAt: string;
|
|
510
|
+
}
|
|
511
|
+
namespace Data {
|
|
512
|
+
interface UnionMember0 {
|
|
513
|
+
/**
|
|
514
|
+
* Unique identifier for the block
|
|
515
|
+
*/
|
|
516
|
+
id: string;
|
|
517
|
+
/**
|
|
518
|
+
* Block type identifier
|
|
519
|
+
*/
|
|
520
|
+
blockType: 'CUSTOM_PROMPT';
|
|
521
|
+
/**
|
|
522
|
+
* Optional description of what this block evaluates
|
|
523
|
+
*/
|
|
524
|
+
description: string | null;
|
|
525
|
+
/**
|
|
526
|
+
* Name of the metric this prompt evaluates
|
|
527
|
+
*/
|
|
528
|
+
metricName: string;
|
|
529
|
+
/**
|
|
530
|
+
* Display name of the evaluation block
|
|
531
|
+
*/
|
|
532
|
+
name: string;
|
|
533
|
+
/**
|
|
534
|
+
* Order in which this block is executed
|
|
535
|
+
*/
|
|
536
|
+
orderIndex: number;
|
|
537
|
+
/**
|
|
538
|
+
* The prompt to evaluate the call against
|
|
539
|
+
*/
|
|
540
|
+
prompt: string;
|
|
541
|
+
/**
|
|
542
|
+
* Minimum score threshold to pass evaluation (0-1)
|
|
543
|
+
*/
|
|
544
|
+
threshold: number;
|
|
545
|
+
/**
|
|
546
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
547
|
+
*/
|
|
548
|
+
weight: number;
|
|
549
|
+
}
|
|
550
|
+
interface UnionMember1 {
|
|
551
|
+
/**
|
|
552
|
+
* Unique identifier for the block
|
|
553
|
+
*/
|
|
554
|
+
id: string;
|
|
555
|
+
/**
|
|
556
|
+
* Block type identifier
|
|
557
|
+
*/
|
|
558
|
+
blockType: 'DATAFIELD_CHECK';
|
|
559
|
+
/**
|
|
560
|
+
* Optional description of what this block evaluates
|
|
561
|
+
*/
|
|
562
|
+
description: string | null;
|
|
563
|
+
/**
|
|
564
|
+
* Criteria for evaluating the property
|
|
565
|
+
*/
|
|
566
|
+
evaluationCriteria: string;
|
|
567
|
+
/**
|
|
568
|
+
* Whether this property must be present
|
|
569
|
+
*/
|
|
570
|
+
isRequired: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Display name of the evaluation block
|
|
573
|
+
*/
|
|
574
|
+
name: string;
|
|
575
|
+
/**
|
|
576
|
+
* Order in which this block is executed
|
|
577
|
+
*/
|
|
578
|
+
orderIndex: number;
|
|
579
|
+
/**
|
|
580
|
+
* Name of the property to check
|
|
581
|
+
*/
|
|
582
|
+
propertyName: string;
|
|
583
|
+
/**
|
|
584
|
+
* Minimum score threshold to pass evaluation (0-1)
|
|
585
|
+
*/
|
|
586
|
+
threshold: number;
|
|
587
|
+
/**
|
|
588
|
+
* Expected type of the property value
|
|
589
|
+
*/
|
|
590
|
+
valueType: string;
|
|
591
|
+
/**
|
|
592
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
593
|
+
*/
|
|
594
|
+
weight: number;
|
|
595
|
+
}
|
|
596
|
+
interface UnionMember2 {
|
|
597
|
+
/**
|
|
598
|
+
* Unique identifier for the block
|
|
599
|
+
*/
|
|
600
|
+
id: string;
|
|
601
|
+
/**
|
|
602
|
+
* Block type identifier
|
|
603
|
+
*/
|
|
604
|
+
blockType: 'EMOTION';
|
|
605
|
+
/**
|
|
606
|
+
* Optional description of what this block evaluates
|
|
607
|
+
*/
|
|
608
|
+
description: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* Display name of the evaluation block
|
|
611
|
+
*/
|
|
612
|
+
name: string;
|
|
613
|
+
/**
|
|
614
|
+
* Order in which this block is executed
|
|
615
|
+
*/
|
|
616
|
+
orderIndex: number;
|
|
617
|
+
/**
|
|
618
|
+
* The emotion to detect (e.g., "joy", "anger", "sadness")
|
|
619
|
+
*/
|
|
620
|
+
selectedEmotion: string;
|
|
621
|
+
/**
|
|
622
|
+
* Minimum confidence threshold for emotion detection (0-1)
|
|
623
|
+
*/
|
|
624
|
+
threshold: number;
|
|
625
|
+
/**
|
|
626
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
627
|
+
*/
|
|
628
|
+
weight: number;
|
|
629
|
+
}
|
|
630
|
+
interface UnionMember3 {
|
|
631
|
+
/**
|
|
632
|
+
* Unique identifier for the block
|
|
633
|
+
*/
|
|
634
|
+
id: string;
|
|
635
|
+
/**
|
|
636
|
+
* Block type identifier
|
|
637
|
+
*/
|
|
638
|
+
blockType: 'LATENCY';
|
|
639
|
+
/**
|
|
640
|
+
* Optional description of what this block evaluates
|
|
641
|
+
*/
|
|
642
|
+
description: string | null;
|
|
643
|
+
/**
|
|
644
|
+
* Maximum number of silence periods allowed
|
|
645
|
+
*/
|
|
646
|
+
maxAllowedSilences: number;
|
|
647
|
+
/**
|
|
648
|
+
* Minimum duration of silence in milliseconds to be considered
|
|
649
|
+
*/
|
|
650
|
+
minSilenceDuration: number;
|
|
651
|
+
/**
|
|
652
|
+
* Display name of the evaluation block
|
|
653
|
+
*/
|
|
654
|
+
name: string;
|
|
655
|
+
/**
|
|
656
|
+
* Order in which this block is executed
|
|
657
|
+
*/
|
|
658
|
+
orderIndex: number;
|
|
659
|
+
/**
|
|
660
|
+
* Maximum allowed latency score
|
|
661
|
+
*/
|
|
662
|
+
threshold: number;
|
|
663
|
+
/**
|
|
664
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
665
|
+
*/
|
|
666
|
+
weight: number;
|
|
667
|
+
}
|
|
668
|
+
interface UnionMember4 {
|
|
669
|
+
/**
|
|
670
|
+
* Unique identifier for the block
|
|
671
|
+
*/
|
|
672
|
+
id: string;
|
|
673
|
+
/**
|
|
674
|
+
* Block type identifier
|
|
675
|
+
*/
|
|
676
|
+
blockType: 'POLITENESS';
|
|
677
|
+
/**
|
|
678
|
+
* Optional description of what this block evaluates
|
|
679
|
+
*/
|
|
680
|
+
description: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* Display name of the evaluation block
|
|
683
|
+
*/
|
|
684
|
+
name: string;
|
|
685
|
+
/**
|
|
686
|
+
* Order in which this block is executed
|
|
687
|
+
*/
|
|
688
|
+
orderIndex: number;
|
|
689
|
+
/**
|
|
690
|
+
* Minimum politeness score threshold (0-1)
|
|
691
|
+
*/
|
|
692
|
+
threshold: number;
|
|
693
|
+
/**
|
|
694
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
695
|
+
*/
|
|
696
|
+
weight: number;
|
|
697
|
+
}
|
|
698
|
+
interface UnionMember5 {
|
|
699
|
+
/**
|
|
700
|
+
* Unique identifier for the block
|
|
701
|
+
*/
|
|
702
|
+
id: string;
|
|
703
|
+
/**
|
|
704
|
+
* Block type identifier
|
|
705
|
+
*/
|
|
706
|
+
blockType: 'SENTIMENT';
|
|
707
|
+
/**
|
|
708
|
+
* Optional description of what this block evaluates
|
|
709
|
+
*/
|
|
710
|
+
description: string | null;
|
|
711
|
+
/**
|
|
712
|
+
* Display name of the evaluation block
|
|
713
|
+
*/
|
|
714
|
+
name: string;
|
|
715
|
+
/**
|
|
716
|
+
* Order in which this block is executed
|
|
717
|
+
*/
|
|
718
|
+
orderIndex: number;
|
|
719
|
+
/**
|
|
720
|
+
* Minimum sentiment score threshold (0-1)
|
|
721
|
+
*/
|
|
722
|
+
threshold: number;
|
|
723
|
+
/**
|
|
724
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
725
|
+
*/
|
|
726
|
+
weight: number;
|
|
727
|
+
}
|
|
728
|
+
interface UnionMember6 {
|
|
729
|
+
/**
|
|
730
|
+
* Unique identifier for the block
|
|
731
|
+
*/
|
|
732
|
+
id: string;
|
|
733
|
+
/**
|
|
734
|
+
* Block type identifier
|
|
735
|
+
*/
|
|
736
|
+
blockType: 'TOOL_CALLS';
|
|
737
|
+
/**
|
|
738
|
+
* Optional description of what this block evaluates
|
|
739
|
+
*/
|
|
740
|
+
description: string | null;
|
|
741
|
+
/**
|
|
742
|
+
* Condition that must be met for tool invocation
|
|
743
|
+
*/
|
|
744
|
+
invocationCondition: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Minimum number of times the tool should be invoked
|
|
747
|
+
*/
|
|
748
|
+
minInvocationCount: number | null;
|
|
749
|
+
/**
|
|
750
|
+
* Display name of the evaluation block
|
|
751
|
+
*/
|
|
752
|
+
name: string;
|
|
753
|
+
/**
|
|
754
|
+
* Order in which this block is executed
|
|
755
|
+
*/
|
|
756
|
+
orderIndex: number;
|
|
757
|
+
/**
|
|
758
|
+
* Whether the tool should be invoked
|
|
759
|
+
*/
|
|
760
|
+
shouldBeInvoked: boolean;
|
|
761
|
+
/**
|
|
762
|
+
* ID of the tool definition
|
|
763
|
+
*/
|
|
764
|
+
toolDefinitionId: string;
|
|
765
|
+
/**
|
|
766
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
767
|
+
*/
|
|
768
|
+
weight: number;
|
|
769
|
+
}
|
|
770
|
+
interface UnionMember7 {
|
|
771
|
+
/**
|
|
772
|
+
* Unique identifier for the block
|
|
773
|
+
*/
|
|
774
|
+
id: string;
|
|
775
|
+
/**
|
|
776
|
+
* Block type identifier
|
|
777
|
+
*/
|
|
778
|
+
blockType: 'TOXICITY';
|
|
779
|
+
/**
|
|
780
|
+
* Optional description of what this block evaluates
|
|
781
|
+
*/
|
|
782
|
+
description: string | null;
|
|
783
|
+
/**
|
|
784
|
+
* Display name of the evaluation block
|
|
785
|
+
*/
|
|
786
|
+
name: string;
|
|
787
|
+
/**
|
|
788
|
+
* Order in which this block is executed
|
|
789
|
+
*/
|
|
790
|
+
orderIndex: number;
|
|
791
|
+
/**
|
|
792
|
+
* Maximum allowed toxicity score (0-1)
|
|
793
|
+
*/
|
|
794
|
+
threshold: number;
|
|
795
|
+
/**
|
|
796
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
797
|
+
*/
|
|
798
|
+
weight: number;
|
|
799
|
+
}
|
|
800
|
+
interface UnionMember8 {
|
|
801
|
+
/**
|
|
802
|
+
* Unique identifier for the block
|
|
803
|
+
*/
|
|
804
|
+
id: string;
|
|
805
|
+
/**
|
|
806
|
+
* Block type identifier
|
|
807
|
+
*/
|
|
808
|
+
blockType: 'VOCAL_CUE';
|
|
809
|
+
/**
|
|
810
|
+
* Optional description of what this block evaluates
|
|
811
|
+
*/
|
|
812
|
+
description: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* Display name of the evaluation block
|
|
815
|
+
*/
|
|
816
|
+
name: string;
|
|
817
|
+
/**
|
|
818
|
+
* Order in which this block is executed
|
|
819
|
+
*/
|
|
820
|
+
orderIndex: number;
|
|
821
|
+
/**
|
|
822
|
+
* The vocal cue to detect (e.g., "pace", "tone", "volume")
|
|
823
|
+
*/
|
|
824
|
+
selectedCue: string;
|
|
825
|
+
/**
|
|
826
|
+
* Minimum confidence threshold for vocal cue detection (0-1)
|
|
827
|
+
*/
|
|
828
|
+
threshold: number;
|
|
829
|
+
/**
|
|
830
|
+
* Weight of this block in the overall evaluation score (0-100)
|
|
831
|
+
*/
|
|
832
|
+
weight: number;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Pagination information
|
|
837
|
+
*/
|
|
838
|
+
interface Pagination {
|
|
839
|
+
/**
|
|
840
|
+
* Whether there are more evaluators to fetch
|
|
841
|
+
*/
|
|
842
|
+
hasMore: boolean;
|
|
843
|
+
/**
|
|
844
|
+
* Cursor for the next page, null if no more pages
|
|
845
|
+
*/
|
|
846
|
+
nextCursor: string | null;
|
|
847
|
+
/**
|
|
848
|
+
* Total number of evaluators
|
|
849
|
+
*/
|
|
850
|
+
total: number;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
export interface EvaluationListJobRunsResponse {
|
|
854
|
+
/**
|
|
855
|
+
* Evaluation job runs response payload
|
|
856
|
+
*/
|
|
857
|
+
data: EvaluationListJobRunsResponse.Data;
|
|
858
|
+
}
|
|
859
|
+
export declare namespace EvaluationListJobRunsResponse {
|
|
860
|
+
/**
|
|
861
|
+
* Evaluation job runs response payload
|
|
862
|
+
*/
|
|
863
|
+
interface Data {
|
|
864
|
+
/**
|
|
865
|
+
* Evaluator runs of the evaluation job
|
|
866
|
+
*/
|
|
867
|
+
data: Array<Data.Data> | null;
|
|
868
|
+
/**
|
|
869
|
+
* Pagination information
|
|
870
|
+
*/
|
|
871
|
+
pagination: Data.Pagination | null;
|
|
872
|
+
}
|
|
873
|
+
namespace Data {
|
|
874
|
+
interface Data {
|
|
875
|
+
/**
|
|
876
|
+
* All block runs for this evaluator, including skipped ones
|
|
877
|
+
*/
|
|
878
|
+
blockRuns: Array<Data.BlockRun>;
|
|
879
|
+
evaluator: Data.Evaluator;
|
|
880
|
+
evidence: Array<Data.Evidence>;
|
|
881
|
+
metrics: Array<Data.Metric>;
|
|
882
|
+
/**
|
|
883
|
+
* Status of the evaluator run
|
|
884
|
+
*/
|
|
885
|
+
status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
886
|
+
/**
|
|
887
|
+
* ID of the evaluator run
|
|
888
|
+
*/
|
|
889
|
+
id?: string;
|
|
890
|
+
/**
|
|
891
|
+
* When the evaluator run completed
|
|
892
|
+
*/
|
|
893
|
+
completedAt?: string | null;
|
|
894
|
+
/**
|
|
895
|
+
* Result of the evaluator run based on score threshold (IRRELEVANT is mapped to
|
|
896
|
+
* SKIPPED)
|
|
897
|
+
*/
|
|
898
|
+
result?: 'SUCCESS' | 'FAILURE' | 'SKIPPED' | null;
|
|
899
|
+
/**
|
|
900
|
+
* Score of the evaluation run (0-1)
|
|
901
|
+
*/
|
|
902
|
+
score?: number | null;
|
|
903
|
+
/**
|
|
904
|
+
* When the evaluator run started
|
|
905
|
+
*/
|
|
906
|
+
startedAt?: string | null;
|
|
907
|
+
/**
|
|
908
|
+
* Summary of the evaluation run
|
|
909
|
+
*/
|
|
910
|
+
summary?: string | null;
|
|
911
|
+
}
|
|
912
|
+
namespace Data {
|
|
913
|
+
interface BlockRun {
|
|
914
|
+
/**
|
|
915
|
+
* ID of the block definition
|
|
916
|
+
*/
|
|
917
|
+
blockDefinitionId: string;
|
|
918
|
+
/**
|
|
919
|
+
* Name of the evaluation block
|
|
920
|
+
*/
|
|
921
|
+
blockName: string;
|
|
922
|
+
/**
|
|
923
|
+
* ID of the block run instance
|
|
924
|
+
*/
|
|
925
|
+
blockRunId: string;
|
|
926
|
+
/**
|
|
927
|
+
* When the block run was created
|
|
928
|
+
*/
|
|
929
|
+
createdAt: string;
|
|
930
|
+
/**
|
|
931
|
+
* Reason for the outcome (pass/fail explanation or skip reason)
|
|
932
|
+
*/
|
|
933
|
+
reason: string | null;
|
|
934
|
+
/**
|
|
935
|
+
* Result of the block run
|
|
936
|
+
*/
|
|
937
|
+
result: 'PASSED' | 'FAILED' | 'SKIPPED' | null;
|
|
938
|
+
/**
|
|
939
|
+
* Score of the block run (0-1)
|
|
940
|
+
*/
|
|
941
|
+
score: number | null;
|
|
942
|
+
/**
|
|
943
|
+
* Status of the block run
|
|
944
|
+
*/
|
|
945
|
+
status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
946
|
+
}
|
|
947
|
+
interface Evaluator {
|
|
948
|
+
/**
|
|
949
|
+
* ID of the evaluator
|
|
950
|
+
*/
|
|
951
|
+
id: string;
|
|
952
|
+
/**
|
|
953
|
+
* Name of the evaluator
|
|
954
|
+
*/
|
|
955
|
+
name: string;
|
|
956
|
+
/**
|
|
957
|
+
* Weight of the evaluator
|
|
958
|
+
*/
|
|
959
|
+
weight?: number;
|
|
960
|
+
}
|
|
961
|
+
interface Evidence {
|
|
962
|
+
/**
|
|
963
|
+
* Comment text of the evidence
|
|
964
|
+
*/
|
|
965
|
+
commentText: string | null;
|
|
966
|
+
/**
|
|
967
|
+
* Created at of the evidence
|
|
968
|
+
*/
|
|
969
|
+
createdAt: string;
|
|
970
|
+
/**
|
|
971
|
+
* Is positive of the evidence
|
|
972
|
+
*/
|
|
973
|
+
isPositive: boolean;
|
|
974
|
+
/**
|
|
975
|
+
* Snippet text of the evidence
|
|
976
|
+
*/
|
|
977
|
+
snippetText: string;
|
|
978
|
+
}
|
|
979
|
+
interface Metric {
|
|
980
|
+
/**
|
|
981
|
+
* Boolean value of the metric
|
|
982
|
+
*/
|
|
983
|
+
booleanValue: boolean | null;
|
|
984
|
+
/**
|
|
985
|
+
* Confidence level of the metric (0-1)
|
|
986
|
+
*/
|
|
987
|
+
confidence: number | null;
|
|
988
|
+
/**
|
|
989
|
+
* Created at of the metric
|
|
990
|
+
*/
|
|
991
|
+
createdAt: string;
|
|
992
|
+
/**
|
|
993
|
+
* Name of the metric
|
|
994
|
+
*/
|
|
995
|
+
name: string;
|
|
996
|
+
/**
|
|
997
|
+
* Numeric value of the metric
|
|
998
|
+
*/
|
|
999
|
+
numericValue: number | null;
|
|
1000
|
+
/**
|
|
1001
|
+
* Reasoning of the metric
|
|
1002
|
+
*/
|
|
1003
|
+
reasoning: string | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* Role of the metric
|
|
1006
|
+
*/
|
|
1007
|
+
role: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Text value of the metric
|
|
1010
|
+
*/
|
|
1011
|
+
textValue: string | null;
|
|
1012
|
+
/**
|
|
1013
|
+
* Value type of the metric
|
|
1014
|
+
*/
|
|
1015
|
+
valueType: string;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Pagination information
|
|
1020
|
+
*/
|
|
1021
|
+
interface Pagination {
|
|
1022
|
+
/**
|
|
1023
|
+
* Whether there are more items to fetch
|
|
1024
|
+
*/
|
|
1025
|
+
hasMore: boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* Cursor for the next page of items
|
|
1028
|
+
*/
|
|
1029
|
+
nextCursor: string | null;
|
|
1030
|
+
/**
|
|
1031
|
+
* Total number of items
|
|
1032
|
+
*/
|
|
1033
|
+
total: number;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
export interface EvaluationCreateJobParams {
|
|
1038
|
+
/**
|
|
1039
|
+
* List of evaluators slugs to evaluate the calls or "all" to evaluate all
|
|
1040
|
+
* evaluators
|
|
1041
|
+
*/
|
|
1042
|
+
evaluators: Array<string> | 'all';
|
|
1043
|
+
/**
|
|
1044
|
+
* Call input to evaluate
|
|
1045
|
+
*/
|
|
1046
|
+
call?: EvaluationCreateJobParams.Call;
|
|
1047
|
+
/**
|
|
1048
|
+
* ID of an existing call to evaluate
|
|
1049
|
+
*/
|
|
1050
|
+
callId?: string;
|
|
1051
|
+
dataset?: EvaluationCreateJobParams.Dataset;
|
|
1052
|
+
}
|
|
1053
|
+
export declare namespace EvaluationCreateJobParams {
|
|
1054
|
+
/**
|
|
1055
|
+
* Call input to evaluate
|
|
1056
|
+
*/
|
|
1057
|
+
interface Call {
|
|
1058
|
+
/**
|
|
1059
|
+
* Direction of the call (INBOUND or OUTBOUND)
|
|
1060
|
+
*/
|
|
1061
|
+
callDirection: 'INBOUND' | 'OUTBOUND';
|
|
1062
|
+
/**
|
|
1063
|
+
* Interface type of the call (PHONE or WEB)
|
|
1064
|
+
*/
|
|
1065
|
+
interfaceType: 'PHONE' | 'WEB';
|
|
1066
|
+
/**
|
|
1067
|
+
* Exactly two participants in the call
|
|
1068
|
+
*/
|
|
1069
|
+
participants: Array<Call.Participant>;
|
|
1070
|
+
/**
|
|
1071
|
+
* URL of source recording (must be an accessible WAV, MP3, or MP4 file). Can be a
|
|
1072
|
+
* signed URL.
|
|
1073
|
+
*/
|
|
1074
|
+
recordingUrl: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* When the call started (ISO 8601 format)
|
|
1077
|
+
*/
|
|
1078
|
+
startedAt: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Additional context on why the call terminated with the endedStatus
|
|
1081
|
+
*/
|
|
1082
|
+
endedReason?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* High-level call end status, indicating how the call terminated
|
|
1085
|
+
*/
|
|
1086
|
+
endedStatus?: 'PARTICIPANTS_DID_NOT_SPEAK' | 'AGENT_DID_NOT_ANSWER' | 'AGENT_DID_NOT_SPEAK' | 'AGENT_STOPPED_SPEAKING' | 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_BUSY' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_DID_NOT_SPEAK' | 'CUSTOMER_STOPPED_SPEAKING' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
|
|
1087
|
+
/**
|
|
1088
|
+
* Whether this is a test call
|
|
1089
|
+
*/
|
|
1090
|
+
isTest?: boolean;
|
|
1091
|
+
/**
|
|
1092
|
+
* Custom properties to include with the call. These can be used for filtering and
|
|
1093
|
+
* will show in the call details page
|
|
1094
|
+
*/
|
|
1095
|
+
properties?: {
|
|
1096
|
+
[key: string]: unknown;
|
|
1097
|
+
};
|
|
1098
|
+
/**
|
|
1099
|
+
* Retell call ID if call is being imported from Retell
|
|
1100
|
+
*/
|
|
1101
|
+
retellCallId?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* URL of source stereo recording. Must be accessible. Can be a signed URL. While
|
|
1104
|
+
* optional it allows for a richer audio player. Supported formats: WAV, MP3, MP4.
|
|
1105
|
+
*/
|
|
1106
|
+
stereoRecordingUrl?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* List of tool invocations made during the call
|
|
1109
|
+
*/
|
|
1110
|
+
toolInvocations?: Array<Call.ToolInvocation>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Vapi call ID if call is being imported from Vapi
|
|
1113
|
+
*/
|
|
1114
|
+
vapiCallId?: string;
|
|
1115
|
+
}
|
|
1116
|
+
namespace Call {
|
|
1117
|
+
interface Participant {
|
|
1118
|
+
role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
|
|
1119
|
+
isSimulated?: boolean;
|
|
1120
|
+
name?: string | null;
|
|
1121
|
+
participantId?: string | null;
|
|
1122
|
+
phoneNumber?: string | null;
|
|
1123
|
+
spokeFirst?: boolean;
|
|
1124
|
+
}
|
|
1125
|
+
interface ToolInvocation {
|
|
1126
|
+
/**
|
|
1127
|
+
* Name of the tool that was invoked
|
|
1128
|
+
*/
|
|
1129
|
+
name: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Parameters provided to the tool during invocation
|
|
1132
|
+
*/
|
|
1133
|
+
parameters: {
|
|
1134
|
+
[key: string]: ToolInvocation.UnionMember0 | unknown;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Result returned by the tool after execution. Can be a string or a JSON object
|
|
1138
|
+
*/
|
|
1139
|
+
result: string | {
|
|
1140
|
+
[key: string]: unknown;
|
|
1141
|
+
};
|
|
1142
|
+
/**
|
|
1143
|
+
* Offset in milliseconds from the start of the call when the tool was invoked
|
|
1144
|
+
*/
|
|
1145
|
+
startOffsetMs: number;
|
|
1146
|
+
/**
|
|
1147
|
+
* Description of when the tool should be invoked
|
|
1148
|
+
*/
|
|
1149
|
+
description?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Offset in milliseconds from the start of the call when the tool execution
|
|
1152
|
+
* completed. Used to calculate duration of the tool execution
|
|
1153
|
+
*/
|
|
1154
|
+
endOffsetMs?: number;
|
|
1155
|
+
}
|
|
1156
|
+
namespace ToolInvocation {
|
|
1157
|
+
interface UnionMember0 {
|
|
1158
|
+
description?: string;
|
|
1159
|
+
type?: 'string' | 'number' | 'boolean';
|
|
1160
|
+
value?: unknown;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
interface Dataset {
|
|
1165
|
+
/**
|
|
1166
|
+
* List of calls input to evaluate
|
|
1167
|
+
*/
|
|
1168
|
+
calls: Array<Dataset.Call>;
|
|
1169
|
+
/**
|
|
1170
|
+
* Name of the dataset
|
|
1171
|
+
*/
|
|
1172
|
+
name: string;
|
|
1173
|
+
}
|
|
1174
|
+
namespace Dataset {
|
|
1175
|
+
interface Call {
|
|
1176
|
+
/**
|
|
1177
|
+
* Direction of the call (INBOUND or OUTBOUND)
|
|
1178
|
+
*/
|
|
1179
|
+
callDirection: 'INBOUND' | 'OUTBOUND';
|
|
1180
|
+
/**
|
|
1181
|
+
* Interface type of the call (PHONE or WEB)
|
|
1182
|
+
*/
|
|
1183
|
+
interfaceType: 'PHONE' | 'WEB';
|
|
1184
|
+
/**
|
|
1185
|
+
* Exactly two participants in the call
|
|
1186
|
+
*/
|
|
1187
|
+
participants: Array<Call.Participant>;
|
|
1188
|
+
/**
|
|
1189
|
+
* URL of source recording (must be an accessible WAV, MP3, or MP4 file). Can be a
|
|
1190
|
+
* signed URL.
|
|
1191
|
+
*/
|
|
1192
|
+
recordingUrl: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* When the call started (ISO 8601 format)
|
|
1195
|
+
*/
|
|
1196
|
+
startedAt: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Additional context on why the call terminated with the endedStatus
|
|
1199
|
+
*/
|
|
1200
|
+
endedReason?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* High-level call end status, indicating how the call terminated
|
|
1203
|
+
*/
|
|
1204
|
+
endedStatus?: 'PARTICIPANTS_DID_NOT_SPEAK' | 'AGENT_DID_NOT_ANSWER' | 'AGENT_DID_NOT_SPEAK' | 'AGENT_STOPPED_SPEAKING' | 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_BUSY' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_DID_NOT_SPEAK' | 'CUSTOMER_STOPPED_SPEAKING' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
|
|
1205
|
+
/**
|
|
1206
|
+
* Whether this is a test call
|
|
1207
|
+
*/
|
|
1208
|
+
isTest?: boolean;
|
|
1209
|
+
/**
|
|
1210
|
+
* Custom properties to include with the call. These can be used for filtering and
|
|
1211
|
+
* will show in the call details page
|
|
1212
|
+
*/
|
|
1213
|
+
properties?: {
|
|
1214
|
+
[key: string]: unknown;
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* Retell call ID if call is being imported from Retell
|
|
1218
|
+
*/
|
|
1219
|
+
retellCallId?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* URL of source stereo recording. Must be accessible. Can be a signed URL. While
|
|
1222
|
+
* optional it allows for a richer audio player. Supported formats: WAV, MP3, MP4.
|
|
1223
|
+
*/
|
|
1224
|
+
stereoRecordingUrl?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* List of tool invocations made during the call
|
|
1227
|
+
*/
|
|
1228
|
+
toolInvocations?: Array<Call.ToolInvocation>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Vapi call ID if call is being imported from Vapi
|
|
1231
|
+
*/
|
|
1232
|
+
vapiCallId?: string;
|
|
1233
|
+
}
|
|
1234
|
+
namespace Call {
|
|
1235
|
+
interface Participant {
|
|
1236
|
+
role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
|
|
1237
|
+
isSimulated?: boolean;
|
|
1238
|
+
name?: string | null;
|
|
1239
|
+
participantId?: string | null;
|
|
1240
|
+
phoneNumber?: string | null;
|
|
1241
|
+
spokeFirst?: boolean;
|
|
1242
|
+
}
|
|
1243
|
+
interface ToolInvocation {
|
|
1244
|
+
/**
|
|
1245
|
+
* Name of the tool that was invoked
|
|
1246
|
+
*/
|
|
1247
|
+
name: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* Parameters provided to the tool during invocation
|
|
1250
|
+
*/
|
|
1251
|
+
parameters: {
|
|
1252
|
+
[key: string]: ToolInvocation.UnionMember0 | unknown;
|
|
1253
|
+
};
|
|
1254
|
+
/**
|
|
1255
|
+
* Result returned by the tool after execution. Can be a string or a JSON object
|
|
1256
|
+
*/
|
|
1257
|
+
result: string | {
|
|
1258
|
+
[key: string]: unknown;
|
|
1259
|
+
};
|
|
1260
|
+
/**
|
|
1261
|
+
* Offset in milliseconds from the start of the call when the tool was invoked
|
|
1262
|
+
*/
|
|
1263
|
+
startOffsetMs: number;
|
|
1264
|
+
/**
|
|
1265
|
+
* Description of when the tool should be invoked
|
|
1266
|
+
*/
|
|
1267
|
+
description?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* Offset in milliseconds from the start of the call when the tool execution
|
|
1270
|
+
* completed. Used to calculate duration of the tool execution
|
|
1271
|
+
*/
|
|
1272
|
+
endOffsetMs?: number;
|
|
1273
|
+
}
|
|
1274
|
+
namespace ToolInvocation {
|
|
1275
|
+
interface UnionMember0 {
|
|
1276
|
+
description?: string;
|
|
1277
|
+
type?: 'string' | 'number' | 'boolean';
|
|
1278
|
+
value?: unknown;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
export interface EvaluationListEvaluatorsParams {
|
|
1285
|
+
/**
|
|
1286
|
+
* Cursor for pagination - evaluator ID to start after
|
|
1287
|
+
*/
|
|
1288
|
+
after?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* Maximum number of evaluators to return (default: 20, max: 50)
|
|
1291
|
+
*/
|
|
1292
|
+
limit?: string;
|
|
1293
|
+
}
|
|
1294
|
+
export interface EvaluationListJobRunsParams {
|
|
1295
|
+
/**
|
|
1296
|
+
* Number of items to return per page
|
|
1297
|
+
*/
|
|
1298
|
+
limit?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* Cursor for the next page of items
|
|
1301
|
+
*/
|
|
1302
|
+
nextCursor?: string;
|
|
1303
|
+
}
|
|
1304
|
+
export declare namespace Evaluation {
|
|
1305
|
+
export { type EvaluationCreateJobResponse as EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse, type EvaluationGetJobResponse as EvaluationGetJobResponse, type EvaluationListEvaluatorsResponse as EvaluationListEvaluatorsResponse, type EvaluationListJobRunsResponse as EvaluationListJobRunsResponse, type EvaluationCreateJobParams as EvaluationCreateJobParams, type EvaluationListEvaluatorsParams as EvaluationListEvaluatorsParams, type EvaluationListJobRunsParams as EvaluationListJobRunsParams, };
|
|
1306
|
+
}
|
|
1307
|
+
//# sourceMappingURL=evaluation.d.mts.map
|