From baa6a6ad0a766a804e406ea67b8633120cea5034 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Sun, 24 Mar 2024 20:41:06 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- src/resources/calls.ts | 15 +-------------- tests/api-resources/calls.test.ts | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/resources/calls.ts b/src/resources/calls.ts index 1e53c02..32eab9d 100644 --- a/src/resources/calls.ts +++ b/src/resources/calls.ts @@ -466,7 +466,7 @@ export interface CallRegisterParams { /** * Add optional dynamic variables that injects into your Retell LLM prompt. */ - retell_llm_dynamic_variable?: CallRegisterParams.RetellLlmDynamicVariable; + retell_llm_dynamic_variable?: Record; /** * The callee number. This field is storage purpose only, set this if you want the @@ -477,19 +477,6 @@ export interface CallRegisterParams { to_number?: string; } -export namespace CallRegisterParams { - /** - * Add optional dynamic variables that injects into your Retell LLM prompt. - */ - export interface RetellLlmDynamicVariable { - additionalProperties?: unknown; - - nullable?: unknown; - - type?: unknown; - } -} - export namespace Calls { export import CallRetrieveResponse = CallsAPI.CallRetrieveResponse; export import CallListResponse = CallsAPI.CallListResponse; diff --git a/tests/api-resources/calls.test.ts b/tests/api-resources/calls.test.ts index 35666f0..dbe24cc 100644 --- a/tests/api-resources/calls.test.ts +++ b/tests/api-resources/calls.test.ts @@ -90,7 +90,7 @@ describe('resource calls', () => { end_call_after_silence_ms: 600000, from_number: 'string', metadata: {}, - retell_llm_dynamic_variable: { type: {}, additionalProperties: {}, nullable: {} }, + retell_llm_dynamic_variable: { foo: {} }, to_number: 'string', }); });