@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,75 @@
|
|
|
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 Metric extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch all metric definitions available in the project, including both
|
|
7
|
+
* system-generated and custom metrics. Only returns metrics from enabled analysis
|
|
8
|
+
* packages.
|
|
9
|
+
*/
|
|
10
|
+
listDefinitions(options?: RequestOptions): APIPromise<MetricListDefinitionsResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface MetricListDefinitionsResponse {
|
|
13
|
+
/**
|
|
14
|
+
* Metrics response payload
|
|
15
|
+
*/
|
|
16
|
+
data: Array<MetricListDefinitionsResponse.Data>;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MetricListDefinitionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Metric definition data
|
|
21
|
+
*/
|
|
22
|
+
interface Data {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the metric definition
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Description of what the metric measures
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
/**
|
|
32
|
+
* Stable metric identifier
|
|
33
|
+
*/
|
|
34
|
+
metricId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the metric
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether metric is global or per-participant
|
|
41
|
+
*/
|
|
42
|
+
scope: 'GLOBAL' | 'PER_PARTICIPANT';
|
|
43
|
+
/**
|
|
44
|
+
* Which levels this metric can produce values at
|
|
45
|
+
*/
|
|
46
|
+
supportedContexts: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
47
|
+
/**
|
|
48
|
+
* Type of value this metric produces
|
|
49
|
+
*/
|
|
50
|
+
type: 'COUNT' | 'NUMERIC' | 'BOOLEAN' | 'SCALE' | 'TEXT' | 'CLASSIFICATION' | 'OFFSET';
|
|
51
|
+
/**
|
|
52
|
+
* Unit information if applicable
|
|
53
|
+
*/
|
|
54
|
+
unit?: Data.Unit;
|
|
55
|
+
}
|
|
56
|
+
namespace Data {
|
|
57
|
+
/**
|
|
58
|
+
* Unit information if applicable
|
|
59
|
+
*/
|
|
60
|
+
interface Unit {
|
|
61
|
+
/**
|
|
62
|
+
* Name of the unit
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* Symbol for the unit
|
|
67
|
+
*/
|
|
68
|
+
symbol: string | null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export declare namespace Metric {
|
|
73
|
+
export { type MetricListDefinitionsResponse as MetricListDefinitionsResponse };
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=metric.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric.d.mts","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAGrF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,QAAQ,GAAG,iBAAiB,CAAC;QAEpC;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;QAEtD;;WAEG;QACH,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QAEvF;;WAEG;QACH,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;KAClB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,6BAA6B,IAAI,6BAA6B,EAAE,CAAC;CAChF"}
|
package/resources/metric.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
4
|
export declare class Metric extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* Fetch all metric definitions available in the project, including both
|
|
6
7
|
* system-generated and custom metrics. Only returns metrics from enabled analysis
|
|
7
8
|
* packages.
|
|
8
9
|
*/
|
|
9
|
-
listDefinitions(options?:
|
|
10
|
+
listDefinitions(options?: RequestOptions): APIPromise<MetricListDefinitionsResponse>;
|
|
10
11
|
}
|
|
11
12
|
export interface MetricListDefinitionsResponse {
|
|
12
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric.d.ts","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metric.d.ts","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAGrF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,QAAQ,GAAG,iBAAiB,CAAC;QAEpC;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;QAEtD;;WAEG;QACH,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QAEvF;;WAEG;QACH,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;KAClB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,IAAI;YACnB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,6BAA6B,IAAI,6BAA6B,EAAE,CAAC;CAChF"}
|
package/resources/metric.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Metric = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
6
|
class Metric extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Fetch all metric definitions available in the project, including both
|
package/resources/metric.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric.js","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"metric.js","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AATD,wBASC"}
|
package/resources/metric.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
export class Metric extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Fetch all metric definitions available in the project, including both
|
package/resources/metric.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric.mjs","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"metric.mjs","sourceRoot":"","sources":["../src/resources/metric.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -0,0 +1,528 @@
|
|
|
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 Persona extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new persona for the authenticated project.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const persona = await client.persona.create({
|
|
11
|
+
* accent: 'US',
|
|
12
|
+
* gender: 'MALE',
|
|
13
|
+
* language: 'EN',
|
|
14
|
+
* name: 'name',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: PersonaCreateParams, options?: RequestOptions): APIPromise<PersonaCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates an existing persona by its ID.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const persona = await client.persona.update('personaId');
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
update(personaID: string, body?: PersonaUpdateParams | null | undefined, options?: RequestOptions): APIPromise<PersonaUpdateResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Returns a paginated list of personas for the authenticated project.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const personas = await client.persona.list();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
list(query?: PersonaListParams | null | undefined, options?: RequestOptions): APIPromise<PersonaListResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns a specific persona by its ID.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.persona.getByID('personaId');
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
getByID(personaID: string, options?: RequestOptions): APIPromise<PersonaGetByIDResponse>;
|
|
46
|
+
}
|
|
47
|
+
export interface PersonaCreateResponse {
|
|
48
|
+
data: PersonaCreateResponse.Data;
|
|
49
|
+
}
|
|
50
|
+
export declare namespace PersonaCreateResponse {
|
|
51
|
+
interface Data {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier of the persona
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
58
|
+
* optional variants
|
|
59
|
+
*/
|
|
60
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
61
|
+
/**
|
|
62
|
+
* Background noise setting
|
|
63
|
+
*/
|
|
64
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
65
|
+
/**
|
|
66
|
+
* Base emotional state of the persona
|
|
67
|
+
*/
|
|
68
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
69
|
+
/**
|
|
70
|
+
* How the persona confirms information
|
|
71
|
+
*/
|
|
72
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
73
|
+
/**
|
|
74
|
+
* Creation timestamp
|
|
75
|
+
*/
|
|
76
|
+
createdAt: string;
|
|
77
|
+
/**
|
|
78
|
+
* Gender of the persona
|
|
79
|
+
*/
|
|
80
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
81
|
+
/**
|
|
82
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
83
|
+
*/
|
|
84
|
+
hasDisfluencies: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* How clearly the persona expresses their intentions
|
|
87
|
+
*/
|
|
88
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
89
|
+
/**
|
|
90
|
+
* Primary language ISO 639-1 code for the persona
|
|
91
|
+
*/
|
|
92
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
93
|
+
/**
|
|
94
|
+
* How reliable the persona's memory is
|
|
95
|
+
*/
|
|
96
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
97
|
+
/**
|
|
98
|
+
* The name the agent will identify as during conversations
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Additional custom properties about the persona
|
|
103
|
+
*/
|
|
104
|
+
properties: {
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Speech clarity of the persona
|
|
109
|
+
*/
|
|
110
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
111
|
+
/**
|
|
112
|
+
* Speech pace of the persona
|
|
113
|
+
*/
|
|
114
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
115
|
+
/**
|
|
116
|
+
* Last update timestamp
|
|
117
|
+
*/
|
|
118
|
+
updatedAt: string;
|
|
119
|
+
/**
|
|
120
|
+
* Background story and behavioral patterns for the persona
|
|
121
|
+
*/
|
|
122
|
+
backstoryPrompt?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
125
|
+
*/
|
|
126
|
+
secondaryLanguage?: 'EN' | null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export interface PersonaUpdateResponse {
|
|
130
|
+
data: PersonaUpdateResponse.Data;
|
|
131
|
+
}
|
|
132
|
+
export declare namespace PersonaUpdateResponse {
|
|
133
|
+
interface Data {
|
|
134
|
+
/**
|
|
135
|
+
* Unique identifier of the persona
|
|
136
|
+
*/
|
|
137
|
+
id: string;
|
|
138
|
+
/**
|
|
139
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
140
|
+
* optional variants
|
|
141
|
+
*/
|
|
142
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
143
|
+
/**
|
|
144
|
+
* Background noise setting
|
|
145
|
+
*/
|
|
146
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
147
|
+
/**
|
|
148
|
+
* Base emotional state of the persona
|
|
149
|
+
*/
|
|
150
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
151
|
+
/**
|
|
152
|
+
* How the persona confirms information
|
|
153
|
+
*/
|
|
154
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
155
|
+
/**
|
|
156
|
+
* Creation timestamp
|
|
157
|
+
*/
|
|
158
|
+
createdAt: string;
|
|
159
|
+
/**
|
|
160
|
+
* Gender of the persona
|
|
161
|
+
*/
|
|
162
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
163
|
+
/**
|
|
164
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
165
|
+
*/
|
|
166
|
+
hasDisfluencies: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* How clearly the persona expresses their intentions
|
|
169
|
+
*/
|
|
170
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
171
|
+
/**
|
|
172
|
+
* Primary language ISO 639-1 code for the persona
|
|
173
|
+
*/
|
|
174
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
175
|
+
/**
|
|
176
|
+
* How reliable the persona's memory is
|
|
177
|
+
*/
|
|
178
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
179
|
+
/**
|
|
180
|
+
* The name the agent will identify as during conversations
|
|
181
|
+
*/
|
|
182
|
+
name: string;
|
|
183
|
+
/**
|
|
184
|
+
* Additional custom properties about the persona
|
|
185
|
+
*/
|
|
186
|
+
properties: {
|
|
187
|
+
[key: string]: unknown;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Speech clarity of the persona
|
|
191
|
+
*/
|
|
192
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
193
|
+
/**
|
|
194
|
+
* Speech pace of the persona
|
|
195
|
+
*/
|
|
196
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
197
|
+
/**
|
|
198
|
+
* Last update timestamp
|
|
199
|
+
*/
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
/**
|
|
202
|
+
* Background story and behavioral patterns for the persona
|
|
203
|
+
*/
|
|
204
|
+
backstoryPrompt?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
207
|
+
*/
|
|
208
|
+
secondaryLanguage?: 'EN' | null;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
export interface PersonaListResponse {
|
|
212
|
+
data: Array<PersonaListResponse.Data>;
|
|
213
|
+
pagination: PersonaListResponse.Pagination;
|
|
214
|
+
}
|
|
215
|
+
export declare namespace PersonaListResponse {
|
|
216
|
+
interface Data {
|
|
217
|
+
/**
|
|
218
|
+
* Unique identifier of the persona
|
|
219
|
+
*/
|
|
220
|
+
id: string;
|
|
221
|
+
/**
|
|
222
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
223
|
+
* optional variants
|
|
224
|
+
*/
|
|
225
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
226
|
+
/**
|
|
227
|
+
* Background noise setting
|
|
228
|
+
*/
|
|
229
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
230
|
+
/**
|
|
231
|
+
* Base emotional state of the persona
|
|
232
|
+
*/
|
|
233
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
234
|
+
/**
|
|
235
|
+
* How the persona confirms information
|
|
236
|
+
*/
|
|
237
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
238
|
+
/**
|
|
239
|
+
* Creation timestamp
|
|
240
|
+
*/
|
|
241
|
+
createdAt: string;
|
|
242
|
+
/**
|
|
243
|
+
* Gender of the persona
|
|
244
|
+
*/
|
|
245
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
246
|
+
/**
|
|
247
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
248
|
+
*/
|
|
249
|
+
hasDisfluencies: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* How clearly the persona expresses their intentions
|
|
252
|
+
*/
|
|
253
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
254
|
+
/**
|
|
255
|
+
* Primary language ISO 639-1 code for the persona
|
|
256
|
+
*/
|
|
257
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
258
|
+
/**
|
|
259
|
+
* How reliable the persona's memory is
|
|
260
|
+
*/
|
|
261
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
262
|
+
/**
|
|
263
|
+
* The name the agent will identify as during conversations
|
|
264
|
+
*/
|
|
265
|
+
name: string;
|
|
266
|
+
/**
|
|
267
|
+
* Additional custom properties about the persona
|
|
268
|
+
*/
|
|
269
|
+
properties: {
|
|
270
|
+
[key: string]: unknown;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Speech clarity of the persona
|
|
274
|
+
*/
|
|
275
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
276
|
+
/**
|
|
277
|
+
* Speech pace of the persona
|
|
278
|
+
*/
|
|
279
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
280
|
+
/**
|
|
281
|
+
* Last update timestamp
|
|
282
|
+
*/
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
/**
|
|
285
|
+
* Background story and behavioral patterns for the persona
|
|
286
|
+
*/
|
|
287
|
+
backstoryPrompt?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
290
|
+
*/
|
|
291
|
+
secondaryLanguage?: 'EN' | null;
|
|
292
|
+
}
|
|
293
|
+
interface Pagination {
|
|
294
|
+
/**
|
|
295
|
+
* Whether there are more items to fetch
|
|
296
|
+
*/
|
|
297
|
+
hasMore: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Cursor for the next page of items
|
|
300
|
+
*/
|
|
301
|
+
nextCursor: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* Total number of items
|
|
304
|
+
*/
|
|
305
|
+
total: number;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
export interface PersonaGetByIDResponse {
|
|
309
|
+
data: PersonaGetByIDResponse.Data;
|
|
310
|
+
}
|
|
311
|
+
export declare namespace PersonaGetByIDResponse {
|
|
312
|
+
interface Data {
|
|
313
|
+
/**
|
|
314
|
+
* Unique identifier of the persona
|
|
315
|
+
*/
|
|
316
|
+
id: string;
|
|
317
|
+
/**
|
|
318
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
319
|
+
* optional variants
|
|
320
|
+
*/
|
|
321
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
322
|
+
/**
|
|
323
|
+
* Background noise setting
|
|
324
|
+
*/
|
|
325
|
+
backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
326
|
+
/**
|
|
327
|
+
* Base emotional state of the persona
|
|
328
|
+
*/
|
|
329
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
330
|
+
/**
|
|
331
|
+
* How the persona confirms information
|
|
332
|
+
*/
|
|
333
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
334
|
+
/**
|
|
335
|
+
* Creation timestamp
|
|
336
|
+
*/
|
|
337
|
+
createdAt: string;
|
|
338
|
+
/**
|
|
339
|
+
* Gender of the persona
|
|
340
|
+
*/
|
|
341
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
342
|
+
/**
|
|
343
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
344
|
+
*/
|
|
345
|
+
hasDisfluencies: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* How clearly the persona expresses their intentions
|
|
348
|
+
*/
|
|
349
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
350
|
+
/**
|
|
351
|
+
* Primary language ISO 639-1 code for the persona
|
|
352
|
+
*/
|
|
353
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
354
|
+
/**
|
|
355
|
+
* How reliable the persona's memory is
|
|
356
|
+
*/
|
|
357
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
358
|
+
/**
|
|
359
|
+
* The name the agent will identify as during conversations
|
|
360
|
+
*/
|
|
361
|
+
name: string;
|
|
362
|
+
/**
|
|
363
|
+
* Additional custom properties about the persona
|
|
364
|
+
*/
|
|
365
|
+
properties: {
|
|
366
|
+
[key: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Speech clarity of the persona
|
|
370
|
+
*/
|
|
371
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
372
|
+
/**
|
|
373
|
+
* Speech pace of the persona
|
|
374
|
+
*/
|
|
375
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
376
|
+
/**
|
|
377
|
+
* Last update timestamp
|
|
378
|
+
*/
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
/**
|
|
381
|
+
* Background story and behavioral patterns for the persona
|
|
382
|
+
*/
|
|
383
|
+
backstoryPrompt?: string | null;
|
|
384
|
+
/**
|
|
385
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
386
|
+
*/
|
|
387
|
+
secondaryLanguage?: 'EN' | null;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
export interface PersonaCreateParams {
|
|
391
|
+
/**
|
|
392
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
393
|
+
* optional variants
|
|
394
|
+
*/
|
|
395
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
396
|
+
/**
|
|
397
|
+
* Gender of the persona
|
|
398
|
+
*/
|
|
399
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
400
|
+
/**
|
|
401
|
+
* Primary language ISO 639-1 code for the persona
|
|
402
|
+
*/
|
|
403
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
404
|
+
/**
|
|
405
|
+
* The name the agent will identify as during conversations
|
|
406
|
+
*/
|
|
407
|
+
name: string;
|
|
408
|
+
/**
|
|
409
|
+
* Background noise setting
|
|
410
|
+
*/
|
|
411
|
+
backgroundNoise?: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
412
|
+
/**
|
|
413
|
+
* Background story and behavioral patterns for the persona
|
|
414
|
+
*/
|
|
415
|
+
backstoryPrompt?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* Base emotional state of the persona
|
|
418
|
+
*/
|
|
419
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
420
|
+
/**
|
|
421
|
+
* How the persona confirms information
|
|
422
|
+
*/
|
|
423
|
+
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
424
|
+
/**
|
|
425
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
426
|
+
*/
|
|
427
|
+
hasDisfluencies?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* How clearly the persona expresses their intentions
|
|
430
|
+
*/
|
|
431
|
+
intentClarity?: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
432
|
+
/**
|
|
433
|
+
* How reliable the persona's memory is
|
|
434
|
+
*/
|
|
435
|
+
memoryReliability?: 'HIGH' | 'LOW';
|
|
436
|
+
/**
|
|
437
|
+
* Additional custom properties about the persona
|
|
438
|
+
*/
|
|
439
|
+
properties?: {
|
|
440
|
+
[key: string]: unknown;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
444
|
+
*/
|
|
445
|
+
secondaryLanguage?: 'EN' | null;
|
|
446
|
+
/**
|
|
447
|
+
* Speech clarity of the persona
|
|
448
|
+
*/
|
|
449
|
+
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
450
|
+
/**
|
|
451
|
+
* Speech pace of the persona
|
|
452
|
+
*/
|
|
453
|
+
speechPace?: 'SLOW' | 'NORMAL' | 'FAST';
|
|
454
|
+
}
|
|
455
|
+
export interface PersonaUpdateParams {
|
|
456
|
+
/**
|
|
457
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
458
|
+
* optional variants
|
|
459
|
+
*/
|
|
460
|
+
accent?: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
|
|
461
|
+
/**
|
|
462
|
+
* Background noise setting
|
|
463
|
+
*/
|
|
464
|
+
backgroundNoise?: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
|
|
465
|
+
/**
|
|
466
|
+
* Background story and behavioral patterns for the persona
|
|
467
|
+
*/
|
|
468
|
+
backstoryPrompt?: string | null;
|
|
469
|
+
/**
|
|
470
|
+
* Base emotional state of the persona
|
|
471
|
+
*/
|
|
472
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
473
|
+
/**
|
|
474
|
+
* How the persona confirms information
|
|
475
|
+
*/
|
|
476
|
+
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
477
|
+
/**
|
|
478
|
+
* Gender of the persona
|
|
479
|
+
*/
|
|
480
|
+
gender?: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
481
|
+
/**
|
|
482
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
483
|
+
*/
|
|
484
|
+
hasDisfluencies?: boolean;
|
|
485
|
+
/**
|
|
486
|
+
* How clearly the persona expresses their intentions
|
|
487
|
+
*/
|
|
488
|
+
intentClarity?: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
489
|
+
/**
|
|
490
|
+
* Primary language ISO 639-1 code for the persona
|
|
491
|
+
*/
|
|
492
|
+
language?: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
|
|
493
|
+
/**
|
|
494
|
+
* How reliable the persona's memory is
|
|
495
|
+
*/
|
|
496
|
+
memoryReliability?: 'HIGH' | 'LOW';
|
|
497
|
+
/**
|
|
498
|
+
* The name the agent will identify as during conversations
|
|
499
|
+
*/
|
|
500
|
+
name?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Additional custom properties about the persona
|
|
503
|
+
*/
|
|
504
|
+
properties?: {
|
|
505
|
+
[key: string]: unknown;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
509
|
+
*/
|
|
510
|
+
secondaryLanguage?: 'EN' | null;
|
|
511
|
+
/**
|
|
512
|
+
* Speech clarity of the persona
|
|
513
|
+
*/
|
|
514
|
+
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
515
|
+
/**
|
|
516
|
+
* Speech pace of the persona
|
|
517
|
+
*/
|
|
518
|
+
speechPace?: 'SLOW' | 'NORMAL' | 'FAST';
|
|
519
|
+
}
|
|
520
|
+
export interface PersonaListParams {
|
|
521
|
+
after?: string;
|
|
522
|
+
limit?: number;
|
|
523
|
+
searchText?: string;
|
|
524
|
+
}
|
|
525
|
+
export declare namespace Persona {
|
|
526
|
+
export { type PersonaCreateResponse as PersonaCreateResponse, type PersonaUpdateResponse as PersonaUpdateResponse, type PersonaListResponse as PersonaListResponse, type PersonaGetByIDResponse as PersonaGetByIDResponse, type PersonaCreateParams as PersonaCreateParams, type PersonaUpdateParams as PersonaUpdateParams, type PersonaListParams as PersonaListParams, };
|
|
527
|
+
}
|
|
528
|
+
//# sourceMappingURL=persona.d.mts.map
|