retell-sdk 4.66.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1341
- package/LICENSE +1 -1
- package/README.md +120 -44
- 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 +217 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +217 -0
- package/client.d.ts.map +1 -0
- package/client.js +513 -0
- package/client.js.map +1 -0
- package/client.mjs +509 -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 -151
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -150
- package/index.d.ts.map +1 -1
- package/index.js +12 -150
- package/index.js.map +1 -1
- package/index.mjs +5 -123
- 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/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 +101 -65
- 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/agent.d.mts +1803 -0
- package/resources/agent.d.mts.map +1 -0
- package/resources/agent.d.ts +374 -78
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +33 -20
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +33 -20
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +926 -0
- package/resources/batch-call.d.mts.map +1 -0
- package/resources/batch-call.d.ts +219 -27
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/batch-call.js +6 -2
- package/resources/batch-call.js.map +1 -1
- package/resources/batch-call.mjs +6 -2
- package/resources/batch-call.mjs.map +1 -1
- package/resources/call.d.mts +4280 -0
- package/resources/call.d.mts.map +1 -0
- package/resources/call.d.ts +556 -110
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +20 -10
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +20 -10
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +836 -0
- package/resources/chat-agent.d.mts.map +1 -0
- package/resources/chat-agent.d.ts +118 -23
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +33 -20
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +33 -20
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +607 -0
- package/resources/chat.d.mts.map +1 -0
- package/resources/chat.d.ts +82 -30
- package/resources/chat.d.ts.map +1 -1
- package/resources/chat.js +21 -11
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +21 -11
- package/resources/chat.mjs.map +1 -1
- package/resources/concurrency.d.mts +51 -0
- package/resources/concurrency.d.mts.map +1 -0
- package/resources/concurrency.d.ts +14 -3
- package/resources/concurrency.d.ts.map +1 -1
- package/resources/concurrency.js +1 -1
- package/resources/concurrency.js.map +1 -1
- package/resources/concurrency.mjs +1 -1
- package/resources/concurrency.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +11838 -0
- package/resources/conversation-flow-component.d.mts.map +1 -0
- package/resources/conversation-flow-component.d.ts +6600 -2597
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow-component.js +10 -8
- package/resources/conversation-flow-component.js.map +1 -1
- package/resources/conversation-flow-component.mjs +10 -8
- package/resources/conversation-flow-component.mjs.map +1 -1
- package/resources/conversation-flow.d.mts +23851 -0
- package/resources/conversation-flow.d.mts.map +1 -0
- package/resources/conversation-flow.d.ts +15877 -7958
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +30 -15
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +30 -15
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/index.d.mts +15 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +228 -0
- package/resources/knowledge-base.d.mts.map +1 -0
- package/resources/knowledge-base.d.ts +23 -14
- package/resources/knowledge-base.d.ts.map +1 -1
- package/resources/knowledge-base.js +16 -36
- package/resources/knowledge-base.js.map +1 -1
- package/resources/knowledge-base.mjs +16 -13
- package/resources/knowledge-base.mjs.map +1 -1
- package/resources/llm.d.mts +5306 -0
- package/resources/llm.d.mts.map +1 -0
- package/resources/llm.d.ts +1189 -477
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +28 -15
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +28 -15
- package/resources/llm.mjs.map +1 -1
- package/resources/mcp-tool.d.mts +45 -0
- package/resources/mcp-tool.d.mts.map +1 -0
- package/resources/mcp-tool.d.ts +8 -3
- package/resources/mcp-tool.d.ts.map +1 -1
- package/resources/mcp-tool.js +4 -3
- package/resources/mcp-tool.js.map +1 -1
- package/resources/mcp-tool.mjs +4 -3
- package/resources/mcp-tool.mjs.map +1 -1
- package/resources/phone-number.d.mts +595 -0
- package/resources/phone-number.d.mts.map +1 -0
- package/resources/phone-number.d.ts +332 -13
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +7 -5
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +7 -5
- package/resources/phone-number.mjs.map +1 -1
- package/resources/tests.d.mts +561 -0
- package/resources/tests.d.mts.map +1 -0
- package/resources/tests.d.ts +437 -7
- package/resources/tests.d.ts.map +1 -1
- package/resources/tests.js +60 -1
- package/resources/tests.js.map +1 -1
- package/resources/tests.mjs +60 -1
- package/resources/tests.mjs.map +1 -1
- package/resources/voice.d.mts +130 -0
- package/resources/voice.d.mts.map +1 -0
- package/resources/voice.d.ts +89 -6
- package/resources/voice.d.ts.map +1 -1
- package/resources/voice.js +23 -3
- package/resources/voice.js.map +1 -1
- package/resources/voice.mjs +23 -3
- package/resources/voice.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 +1005 -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 -405
- 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/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/agent.ts +529 -95
- package/src/resources/batch-call.ts +291 -24
- package/src/resources/call.ts +757 -105
- package/src/resources/chat-agent.ts +191 -41
- package/src/resources/chat.ts +108 -40
- package/src/resources/concurrency.ts +16 -3
- package/src/resources/conversation-flow-component.ts +9469 -4285
- package/src/resources/conversation-flow.ts +21572 -11318
- package/src/resources/index.ts +25 -2
- package/src/resources/knowledge-base.ts +40 -28
- package/src/resources/llm.ts +1422 -599
- package/src/resources/mcp-tool.ts +13 -6
- package/src/resources/phone-number.ts +410 -18
- package/src/resources/tests.ts +608 -9
- package/src/resources/voice.ts +122 -7
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -259
- 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 -175
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -164
- 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.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- 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 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/lib/webhook_auth.d.ts +0 -27
- package/lib/webhook_auth.d.ts.map +0 -1
- package/lib/webhook_auth.js +0 -50
- package/lib/webhook_auth.js.map +0 -1
- package/lib/webhook_auth.mjs +0 -45
- package/lib/webhook_auth.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 -1236
- package/src/lib/webhook_auth.ts +0 -69
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Retell
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Retell
|
|
1
|
+
# Retell TypeScript API Library
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/retell-sdk) 
|
|
3
|
+
[>)](https://npmjs.org/package/retell-sdk) 
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the Retell REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
@@ -106,7 +106,10 @@ const client = new Retell({
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
// Or, configure per-request:
|
|
109
|
-
await client.agent.create({
|
|
109
|
+
await client.agent.create({
|
|
110
|
+
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
|
|
111
|
+
voice_id: '11labs-Adrian',
|
|
112
|
+
}, {
|
|
110
113
|
maxRetries: 5,
|
|
111
114
|
});
|
|
112
115
|
```
|
|
@@ -123,7 +126,10 @@ const client = new Retell({
|
|
|
123
126
|
});
|
|
124
127
|
|
|
125
128
|
// Override per-request:
|
|
126
|
-
await client.agent.create({
|
|
129
|
+
await client.agent.create({
|
|
130
|
+
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
|
|
131
|
+
voice_id: '11labs-Adrian',
|
|
132
|
+
}, {
|
|
127
133
|
timeout: 5 * 1000,
|
|
128
134
|
});
|
|
129
135
|
```
|
|
@@ -137,8 +143,10 @@ Note that requests which time out will be [retried twice by default](#retries).
|
|
|
137
143
|
### Accessing raw Response data (e.g., headers)
|
|
138
144
|
|
|
139
145
|
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
|
|
146
|
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
|
|
140
147
|
|
|
141
148
|
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
|
|
149
|
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
|
|
142
150
|
|
|
143
151
|
<!-- prettier-ignore -->
|
|
144
152
|
```ts
|
|
@@ -163,6 +171,59 @@ console.log(raw.headers.get('X-My-Header'));
|
|
|
163
171
|
console.log(agentResponse.agent_id);
|
|
164
172
|
```
|
|
165
173
|
|
|
174
|
+
### Logging
|
|
175
|
+
|
|
176
|
+
> [!IMPORTANT]
|
|
177
|
+
> All log messages are intended for debugging only. The format and content of log messages
|
|
178
|
+
> may change between releases.
|
|
179
|
+
|
|
180
|
+
#### Log levels
|
|
181
|
+
|
|
182
|
+
The log level can be configured in two ways:
|
|
183
|
+
|
|
184
|
+
1. Via the `RETELL_LOG` environment variable
|
|
185
|
+
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
import Retell from 'retell-sdk';
|
|
189
|
+
|
|
190
|
+
const client = new Retell({
|
|
191
|
+
logLevel: 'debug', // Show all log messages
|
|
192
|
+
});
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Available log levels, from most to least verbose:
|
|
196
|
+
|
|
197
|
+
- `'debug'` - Show debug messages, info, warnings, and errors
|
|
198
|
+
- `'info'` - Show info messages, warnings, and errors
|
|
199
|
+
- `'warn'` - Show warnings and errors (default)
|
|
200
|
+
- `'error'` - Show only errors
|
|
201
|
+
- `'off'` - Disable all logging
|
|
202
|
+
|
|
203
|
+
At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
|
|
204
|
+
Some authentication-related headers are redacted, but sensitive data in request and response bodies
|
|
205
|
+
may still be visible.
|
|
206
|
+
|
|
207
|
+
#### Custom logger
|
|
208
|
+
|
|
209
|
+
By default, this library logs to `globalThis.console`. You can also provide a custom logger.
|
|
210
|
+
Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
|
|
211
|
+
|
|
212
|
+
When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
|
|
213
|
+
below the configured level will not be sent to your logger.
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
import Retell from 'retell-sdk';
|
|
217
|
+
import pino from 'pino';
|
|
218
|
+
|
|
219
|
+
const logger = pino();
|
|
220
|
+
|
|
221
|
+
const client = new Retell({
|
|
222
|
+
logger: logger.child({ name: 'Retell' }),
|
|
223
|
+
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
224
|
+
});
|
|
225
|
+
```
|
|
226
|
+
|
|
166
227
|
### Making custom/undocumented requests
|
|
167
228
|
|
|
168
229
|
This library is typed for convenient access to the documented API. If you need to access undocumented
|
|
@@ -187,9 +248,8 @@ parameter. This library doesn't validate at runtime that the request matches the
|
|
|
187
248
|
send will be sent as-is.
|
|
188
249
|
|
|
189
250
|
```ts
|
|
190
|
-
client.
|
|
191
|
-
|
|
192
|
-
bar: 12,
|
|
251
|
+
client.agent.create({
|
|
252
|
+
// ...
|
|
193
253
|
// @ts-expect-error baz is not yet public
|
|
194
254
|
baz: 'undocumented option',
|
|
195
255
|
});
|
|
@@ -209,69 +269,85 @@ validate or strip extra properties from the response from the API.
|
|
|
209
269
|
|
|
210
270
|
### Customizing the fetch client
|
|
211
271
|
|
|
212
|
-
By default, this library
|
|
272
|
+
By default, this library expects a global `fetch` function is defined.
|
|
213
273
|
|
|
214
|
-
If you
|
|
215
|
-
(for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
|
|
216
|
-
add the following import before your first import `from "Retell"`:
|
|
274
|
+
If you want to use a different `fetch` function, you can either polyfill the global:
|
|
217
275
|
|
|
218
276
|
```ts
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
import Retell from 'retell-sdk';
|
|
277
|
+
import fetch from 'my-fetch';
|
|
278
|
+
|
|
279
|
+
globalThis.fetch = fetch;
|
|
223
280
|
```
|
|
224
281
|
|
|
225
|
-
|
|
226
|
-
|
|
282
|
+
Or pass it to the client:
|
|
283
|
+
|
|
284
|
+
```ts
|
|
285
|
+
import Retell from 'retell-sdk';
|
|
286
|
+
import fetch from 'my-fetch';
|
|
287
|
+
|
|
288
|
+
const client = new Retell({ fetch });
|
|
289
|
+
```
|
|
227
290
|
|
|
228
|
-
###
|
|
291
|
+
### Fetch options
|
|
229
292
|
|
|
230
|
-
|
|
231
|
-
which can be used to inspect or alter the `Request` or `Response` before/after each request:
|
|
293
|
+
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
232
294
|
|
|
233
295
|
```ts
|
|
234
|
-
import { fetch } from 'undici'; // as one example
|
|
235
296
|
import Retell from 'retell-sdk';
|
|
236
297
|
|
|
237
298
|
const client = new Retell({
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const response = await fetch(url, init);
|
|
241
|
-
console.log('Got response', response);
|
|
242
|
-
return response;
|
|
299
|
+
fetchOptions: {
|
|
300
|
+
// `RequestInit` options
|
|
243
301
|
},
|
|
244
302
|
});
|
|
245
303
|
```
|
|
246
304
|
|
|
247
|
-
|
|
248
|
-
This is intended for debugging purposes only and may change in the future without notice.
|
|
305
|
+
#### Configuring proxies
|
|
249
306
|
|
|
250
|
-
|
|
307
|
+
To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
|
|
308
|
+
options to requests:
|
|
251
309
|
|
|
252
|
-
|
|
310
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
253
311
|
|
|
254
|
-
|
|
312
|
+
```ts
|
|
313
|
+
import Retell from 'retell-sdk';
|
|
314
|
+
import * as undici from 'undici';
|
|
315
|
+
|
|
316
|
+
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
317
|
+
const client = new Retell({
|
|
318
|
+
fetchOptions: {
|
|
319
|
+
dispatcher: proxyAgent,
|
|
320
|
+
},
|
|
321
|
+
});
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
255
325
|
|
|
256
|
-
<!-- prettier-ignore -->
|
|
257
326
|
```ts
|
|
258
|
-
import
|
|
259
|
-
import { HttpsProxyAgent } from 'https-proxy-agent';
|
|
327
|
+
import Retell from 'retell-sdk';
|
|
260
328
|
|
|
261
|
-
// Configure the default for all requests:
|
|
262
329
|
const client = new Retell({
|
|
263
|
-
|
|
330
|
+
fetchOptions: {
|
|
331
|
+
proxy: 'http://localhost:8888',
|
|
332
|
+
},
|
|
264
333
|
});
|
|
334
|
+
```
|
|
265
335
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
336
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
import Retell from 'npm:retell-sdk';
|
|
340
|
+
|
|
341
|
+
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
342
|
+
const client = new Retell({
|
|
343
|
+
fetchOptions: {
|
|
344
|
+
client: httpClient,
|
|
271
345
|
},
|
|
272
|
-
);
|
|
346
|
+
});
|
|
273
347
|
```
|
|
274
348
|
|
|
349
|
+
## Frequently Asked Questions
|
|
350
|
+
|
|
275
351
|
## Semantic versioning
|
|
276
352
|
|
|
277
353
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
@@ -286,12 +362,12 @@ We are keen for your feedback; please open an [issue](https://www.github.com/Ret
|
|
|
286
362
|
|
|
287
363
|
## Requirements
|
|
288
364
|
|
|
289
|
-
TypeScript >= 4.
|
|
365
|
+
TypeScript >= 4.9 is supported.
|
|
290
366
|
|
|
291
367
|
The following runtimes are supported:
|
|
292
368
|
|
|
293
369
|
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
|
|
294
|
-
- Node.js
|
|
370
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
295
371
|
- Deno v1.28.0 or higher.
|
|
296
372
|
- Bun 1.0 or later.
|
|
297
373
|
- Cloudflare Workers.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/api-promise instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
+
//# sourceMappingURL=api-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/client.d.mts
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
+
import * as API from "./resources/index.mjs";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
+
import { Agent, AgentCreateParams, AgentGetVersionsResponse, AgentListParams, AgentListResponse, AgentResponse, AgentRetrieveParams, AgentUpdateParams } from "./resources/agent.mjs";
|
|
10
|
+
import { BatchCall, BatchCallCreateBatchCallParams, BatchCallResponse } from "./resources/batch-call.mjs";
|
|
11
|
+
import { Call, CallCreatePhoneCallParams, CallCreateWebCallParams, CallListParams, CallListResponse, CallRegisterPhoneCallParams, CallResponse, CallUpdateParams, PhoneCallResponse, WebCallResponse } from "./resources/call.mjs";
|
|
12
|
+
import { Chat, ChatCreateChatCompletionParams, ChatCreateChatCompletionResponse, ChatCreateParams, ChatCreateSMSChatParams, ChatListParams, ChatListResponse, ChatResponse, ChatUpdateParams } from "./resources/chat.mjs";
|
|
13
|
+
import { ChatAgent, ChatAgentCreateParams, ChatAgentGetVersionsResponse, ChatAgentListParams, ChatAgentListResponse, ChatAgentResponse, ChatAgentRetrieveParams, ChatAgentUpdateParams } from "./resources/chat-agent.mjs";
|
|
14
|
+
import { Concurrency, ConcurrencyRetrieveResponse } from "./resources/concurrency.mjs";
|
|
15
|
+
import { ConversationFlow, ConversationFlowCreateParams, ConversationFlowListParams, ConversationFlowListResponse, ConversationFlowResponse, ConversationFlowRetrieveParams, ConversationFlowUpdateParams } from "./resources/conversation-flow.mjs";
|
|
16
|
+
import { ConversationFlowComponent, ConversationFlowComponentCreateParams, ConversationFlowComponentListResponse, ConversationFlowComponentResponse, ConversationFlowComponentUpdateParams } from "./resources/conversation-flow-component.mjs";
|
|
17
|
+
import { KnowledgeBase, KnowledgeBaseAddSourcesParams, KnowledgeBaseCreateParams, KnowledgeBaseDeleteSourceParams, KnowledgeBaseListResponse, KnowledgeBaseResponse } from "./resources/knowledge-base.mjs";
|
|
18
|
+
import { Llm, LlmCreateParams, LlmListParams, LlmListResponse, LlmResponse, LlmRetrieveParams, LlmUpdateParams } from "./resources/llm.mjs";
|
|
19
|
+
import { McpTool, McpToolDefinition, McpToolGetMcpToolsParams, McpToolGetMcpToolsResponse } from "./resources/mcp-tool.mjs";
|
|
20
|
+
import { PhoneNumber, PhoneNumberCreateParams, PhoneNumberImportParams, PhoneNumberListResponse, PhoneNumberResponse, PhoneNumberUpdateParams } from "./resources/phone-number.mjs";
|
|
21
|
+
import { BatchTestResponse, TestCaseDefinitionResponse, TestCaseJobResponse, TestCreateBatchTestParams, TestCreateTestCaseDefinitionParams, TestListBatchTestsParams, TestListBatchTestsResponse, TestListTestCaseDefinitionsParams, TestListTestCaseDefinitionsResponse, TestListTestRunsResponse, TestUpdateTestCaseDefinitionParams, Tests } from "./resources/tests.mjs";
|
|
22
|
+
import { Voice, VoiceAddResourceParams, VoiceCloneParams, VoiceListResponse, VoiceResponse, VoiceSearchParams, VoiceSearchResponse } from "./resources/voice.mjs";
|
|
23
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
24
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
25
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
26
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
27
|
+
export interface ClientOptions {
|
|
28
|
+
apiKey: string;
|
|
29
|
+
/**
|
|
30
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
31
|
+
*
|
|
32
|
+
* Defaults to process.env['RETELL_BASE_URL'].
|
|
33
|
+
*/
|
|
34
|
+
baseURL?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
37
|
+
* from the server before timing out a single request.
|
|
38
|
+
*
|
|
39
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
40
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
41
|
+
*
|
|
42
|
+
* @unit milliseconds
|
|
43
|
+
*/
|
|
44
|
+
timeout?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
47
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
48
|
+
*/
|
|
49
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Specify a custom `fetch` function implementation.
|
|
52
|
+
*
|
|
53
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
54
|
+
*/
|
|
55
|
+
fetch?: Fetch | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
58
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
59
|
+
*
|
|
60
|
+
* @default 2
|
|
61
|
+
*/
|
|
62
|
+
maxRetries?: number | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Default headers to include with every request to the API.
|
|
65
|
+
*
|
|
66
|
+
* These can be removed in individual requests by explicitly setting the
|
|
67
|
+
* header to `null` in request options.
|
|
68
|
+
*/
|
|
69
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Default query parameters to include with every request to the API.
|
|
72
|
+
*
|
|
73
|
+
* These can be removed in individual requests by explicitly setting the
|
|
74
|
+
* param to `undefined` in request options.
|
|
75
|
+
*/
|
|
76
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Set the log level.
|
|
79
|
+
*
|
|
80
|
+
* Defaults to process.env['RETELL_LOG'] or 'warn' if it isn't set.
|
|
81
|
+
*/
|
|
82
|
+
logLevel?: LogLevel | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Set the logger.
|
|
85
|
+
*
|
|
86
|
+
* Defaults to globalThis.console.
|
|
87
|
+
*/
|
|
88
|
+
logger?: Logger | undefined;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* API Client for interfacing with the Retell API.
|
|
92
|
+
*/
|
|
93
|
+
export declare class Retell {
|
|
94
|
+
#private;
|
|
95
|
+
apiKey: string;
|
|
96
|
+
baseURL: string;
|
|
97
|
+
maxRetries: number;
|
|
98
|
+
timeout: number;
|
|
99
|
+
logger: Logger;
|
|
100
|
+
logLevel: LogLevel | undefined;
|
|
101
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
102
|
+
private fetch;
|
|
103
|
+
protected idempotencyHeader?: string;
|
|
104
|
+
private _options;
|
|
105
|
+
/**
|
|
106
|
+
* API Client for interfacing with the Retell API.
|
|
107
|
+
*
|
|
108
|
+
* @param {string} opts.apiKey
|
|
109
|
+
* @param {string} [opts.baseURL=process.env['RETELL_BASE_URL'] ?? https://api.retellai.com] - Override the default base URL for the API.
|
|
110
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
111
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
112
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
113
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
114
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
115
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
116
|
+
*/
|
|
117
|
+
constructor({ baseURL, apiKey, ...opts }: ClientOptions);
|
|
118
|
+
/**
|
|
119
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
120
|
+
*/
|
|
121
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
122
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
123
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
124
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
127
|
+
*/
|
|
128
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
129
|
+
private getUserAgent;
|
|
130
|
+
protected defaultIdempotencyKey(): string;
|
|
131
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
132
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
133
|
+
/**
|
|
134
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
135
|
+
*/
|
|
136
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
139
|
+
*
|
|
140
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
141
|
+
* the request properties, e.g. `method` or `url`.
|
|
142
|
+
*/
|
|
143
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
144
|
+
url: string;
|
|
145
|
+
options: FinalRequestOptions;
|
|
146
|
+
}): Promise<void>;
|
|
147
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
148
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
149
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
150
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
151
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
152
|
+
private methodRequest;
|
|
153
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
154
|
+
private makeRequest;
|
|
155
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
156
|
+
private shouldRetry;
|
|
157
|
+
private retryRequest;
|
|
158
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
159
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
160
|
+
retryCount?: number;
|
|
161
|
+
}): Promise<{
|
|
162
|
+
req: FinalizedRequestInit;
|
|
163
|
+
url: string;
|
|
164
|
+
timeout: number;
|
|
165
|
+
}>;
|
|
166
|
+
private buildHeaders;
|
|
167
|
+
private _makeAbort;
|
|
168
|
+
private buildBody;
|
|
169
|
+
static Retell: typeof Retell;
|
|
170
|
+
static DEFAULT_TIMEOUT: number;
|
|
171
|
+
static RetellError: typeof Errors.RetellError;
|
|
172
|
+
static APIError: typeof Errors.APIError;
|
|
173
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
174
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
175
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
176
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
177
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
178
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
179
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
180
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
181
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
182
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
183
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
184
|
+
static toFile: typeof Uploads.toFile;
|
|
185
|
+
call: API.Call;
|
|
186
|
+
chat: API.Chat;
|
|
187
|
+
phoneNumber: API.PhoneNumber;
|
|
188
|
+
agent: API.Agent;
|
|
189
|
+
chatAgent: API.ChatAgent;
|
|
190
|
+
llm: API.Llm;
|
|
191
|
+
conversationFlow: API.ConversationFlow;
|
|
192
|
+
conversationFlowComponent: API.ConversationFlowComponent;
|
|
193
|
+
knowledgeBase: API.KnowledgeBase;
|
|
194
|
+
voice: API.Voice;
|
|
195
|
+
concurrency: API.Concurrency;
|
|
196
|
+
batchCall: API.BatchCall;
|
|
197
|
+
tests: API.Tests;
|
|
198
|
+
mcpTool: API.McpTool;
|
|
199
|
+
}
|
|
200
|
+
export declare namespace Retell {
|
|
201
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
202
|
+
export { Call as Call, type CallResponse as CallResponse, type PhoneCallResponse as PhoneCallResponse, type WebCallResponse as WebCallResponse, type CallListResponse as CallListResponse, type CallUpdateParams as CallUpdateParams, type CallListParams as CallListParams, type CallCreatePhoneCallParams as CallCreatePhoneCallParams, type CallCreateWebCallParams as CallCreateWebCallParams, type CallRegisterPhoneCallParams as CallRegisterPhoneCallParams, };
|
|
203
|
+
export { Chat as Chat, type ChatResponse as ChatResponse, type ChatListResponse as ChatListResponse, type ChatCreateChatCompletionResponse as ChatCreateChatCompletionResponse, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListParams as ChatListParams, type ChatCreateChatCompletionParams as ChatCreateChatCompletionParams, type ChatCreateSMSChatParams as ChatCreateSMSChatParams, };
|
|
204
|
+
export { PhoneNumber as PhoneNumber, type PhoneNumberResponse as PhoneNumberResponse, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberCreateParams as PhoneNumberCreateParams, type PhoneNumberUpdateParams as PhoneNumberUpdateParams, type PhoneNumberImportParams as PhoneNumberImportParams, };
|
|
205
|
+
export { Agent as Agent, type AgentResponse as AgentResponse, type AgentListResponse as AgentListResponse, type AgentGetVersionsResponse as AgentGetVersionsResponse, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
206
|
+
export { ChatAgent as ChatAgent, type ChatAgentResponse as ChatAgentResponse, type ChatAgentListResponse as ChatAgentListResponse, type ChatAgentGetVersionsResponse as ChatAgentGetVersionsResponse, type ChatAgentCreateParams as ChatAgentCreateParams, type ChatAgentRetrieveParams as ChatAgentRetrieveParams, type ChatAgentUpdateParams as ChatAgentUpdateParams, type ChatAgentListParams as ChatAgentListParams, };
|
|
207
|
+
export { Llm as Llm, type LlmResponse as LlmResponse, type LlmListResponse as LlmListResponse, type LlmCreateParams as LlmCreateParams, type LlmRetrieveParams as LlmRetrieveParams, type LlmUpdateParams as LlmUpdateParams, type LlmListParams as LlmListParams, };
|
|
208
|
+
export { ConversationFlow as ConversationFlow, type ConversationFlowResponse as ConversationFlowResponse, type ConversationFlowListResponse as ConversationFlowListResponse, type ConversationFlowCreateParams as ConversationFlowCreateParams, type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams, type ConversationFlowUpdateParams as ConversationFlowUpdateParams, type ConversationFlowListParams as ConversationFlowListParams, };
|
|
209
|
+
export { ConversationFlowComponent as ConversationFlowComponent, type ConversationFlowComponentResponse as ConversationFlowComponentResponse, type ConversationFlowComponentListResponse as ConversationFlowComponentListResponse, type ConversationFlowComponentCreateParams as ConversationFlowComponentCreateParams, type ConversationFlowComponentUpdateParams as ConversationFlowComponentUpdateParams, };
|
|
210
|
+
export { KnowledgeBase as KnowledgeBase, type KnowledgeBaseResponse as KnowledgeBaseResponse, type KnowledgeBaseListResponse as KnowledgeBaseListResponse, type KnowledgeBaseCreateParams as KnowledgeBaseCreateParams, type KnowledgeBaseAddSourcesParams as KnowledgeBaseAddSourcesParams, type KnowledgeBaseDeleteSourceParams as KnowledgeBaseDeleteSourceParams, };
|
|
211
|
+
export { Voice as Voice, type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse, type VoiceSearchResponse as VoiceSearchResponse, type VoiceAddResourceParams as VoiceAddResourceParams, type VoiceCloneParams as VoiceCloneParams, type VoiceSearchParams as VoiceSearchParams, };
|
|
212
|
+
export { Concurrency as Concurrency, type ConcurrencyRetrieveResponse as ConcurrencyRetrieveResponse };
|
|
213
|
+
export { BatchCall as BatchCall, type BatchCallResponse as BatchCallResponse, type BatchCallCreateBatchCallParams as BatchCallCreateBatchCallParams, };
|
|
214
|
+
export { Tests as Tests, type BatchTestResponse as BatchTestResponse, type TestCaseDefinitionResponse as TestCaseDefinitionResponse, type TestCaseJobResponse as TestCaseJobResponse, type TestListBatchTestsResponse as TestListBatchTestsResponse, type TestListTestCaseDefinitionsResponse as TestListTestCaseDefinitionsResponse, type TestListTestRunsResponse as TestListTestRunsResponse, type TestCreateBatchTestParams as TestCreateBatchTestParams, type TestCreateTestCaseDefinitionParams as TestCreateTestCaseDefinitionParams, type TestListBatchTestsParams as TestListBatchTestsParams, type TestListTestCaseDefinitionsParams as TestListTestCaseDefinitionsParams, type TestUpdateTestCaseDefinitionParams as TestUpdateTestCaseDefinitionParams, };
|
|
215
|
+
export { McpTool as McpTool, type McpToolDefinition as McpToolDefinition, type McpToolGetMcpToolsResponse as McpToolGetMcpToolsResponse, type McpToolGetMcpToolsParams as McpToolGetMcpToolsParams, };
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,KAAK,EACL,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,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