diff --git a/.fern/metadata.json b/.fern/metadata.json index 00c1530d..349f7dee 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "4.67.1", + "cliVersion": "4.79.3", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "4.62.0", "generatorConfig": { @@ -16,6 +16,6 @@ "skip_validation": true } }, - "originGitCommit": "aa8e0677bcaea82c02a5934c61d195b35921b33d", + "originGitCommit": "356c3399be913ae12571385467bc3fde37e195b2", "sdkVersion": "6.1.2" } \ No newline at end of file diff --git a/.fernignore b/.fernignore index 95cce1f0..0ded04e4 100644 --- a/.fernignore +++ b/.fernignore @@ -16,12 +16,6 @@ src/deepgram/listen/v1/socket_client.py src/deepgram/listen/v2/socket_client.py src/deepgram/speak/v1/socket_client.py -# Type files with manual int type corrections (Fern generates float for speaker/channel/num_words) -# [temporarily frozen — waiting on internal-api-specs#205] -src/deepgram/types/listen_v1response_results_utterances_item.py -src/deepgram/types/listen_v1response_results_utterances_item_words_item.py -src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py - # Hand-written custom tests tests/custom/test_text_builder.py tests/custom/test_transport.py diff --git a/poetry.lock b/poetry.lock index ab52d826..e7969f55 100644 --- a/poetry.lock +++ b/poetry.lock @@ -374,13 +374,13 @@ files = [ [[package]] name = "packaging" -version = "26.0" +version = "26.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529"}, - {file = "packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4"}, + {file = "packaging-26.1-py3-none-any.whl", hash = "sha256:5d9c0669c6285e491e0ced2eee587eaf67b670d94a19e94e3984a481aba6802f"}, + {file = "packaging-26.1.tar.gz", hash = "sha256:f042152b681c4bfac5cae2742a55e103d27ab2ec0f3d88037136b6bfe7c9c5de"}, ] [[package]] diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_audio_input.py b/src/deepgram/agent/v1/requests/agent_v1settings_audio_input.py index 91931180..aa68bc98 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_audio_input.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_audio_input.py @@ -14,7 +14,7 @@ class AgentV1SettingsAudioInputParams(typing_extensions.TypedDict): Audio encoding format """ - sample_rate: float + sample_rate: int """ Sample rate in Hz. Common values are 16000, 24000, 44100, 48000 """ diff --git a/src/deepgram/agent/v1/requests/agent_v1settings_audio_output.py b/src/deepgram/agent/v1/requests/agent_v1settings_audio_output.py index 32273699..1d4ceb01 100644 --- a/src/deepgram/agent/v1/requests/agent_v1settings_audio_output.py +++ b/src/deepgram/agent/v1/requests/agent_v1settings_audio_output.py @@ -14,12 +14,12 @@ class AgentV1SettingsAudioOutputParams(typing_extensions.TypedDict): Audio encoding format for streaming TTS output """ - sample_rate: typing_extensions.NotRequired[float] + sample_rate: typing_extensions.NotRequired[int] """ Sample rate in Hz """ - bitrate: typing_extensions.NotRequired[float] + bitrate: typing_extensions.NotRequired[int] """ Audio bitrate in bits per second """ diff --git a/src/deepgram/agent/v1/settings/think/models/raw_client.py b/src/deepgram/agent/v1/settings/think/models/raw_client.py index 968ef5cf..33d2f5cc 100644 --- a/src/deepgram/agent/v1/settings/think/models/raw_client.py +++ b/src/deepgram/agent/v1/settings/think/models/raw_client.py @@ -34,7 +34,7 @@ def list( """ _response = self._client_wrapper.httpx_client.request( "v1/agent/settings/think/models", - base_url=self._client_wrapper.get_environment().base, + base_url=self._client_wrapper.get_environment().agent, method="GET", request_options=request_options, ) @@ -87,7 +87,7 @@ async def list( """ _response = await self._client_wrapper.httpx_client.request( "v1/agent/settings/think/models", - base_url=self._client_wrapper.get_environment().base, + base_url=self._client_wrapper.get_environment().agent, method="GET", request_options=request_options, ) diff --git a/src/deepgram/agent/v1/types/agent_v1settings_audio_input.py b/src/deepgram/agent/v1/types/agent_v1settings_audio_input.py index 59eeb7dd..38f1b0fc 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_audio_input.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_audio_input.py @@ -18,7 +18,7 @@ class AgentV1SettingsAudioInput(UncheckedBaseModel): Audio encoding format """ - sample_rate: float = pydantic.Field() + sample_rate: int = pydantic.Field() """ Sample rate in Hz. Common values are 16000, 24000, 44100, 48000 """ diff --git a/src/deepgram/agent/v1/types/agent_v1settings_audio_output.py b/src/deepgram/agent/v1/types/agent_v1settings_audio_output.py index 88c9a109..bfc06608 100644 --- a/src/deepgram/agent/v1/types/agent_v1settings_audio_output.py +++ b/src/deepgram/agent/v1/types/agent_v1settings_audio_output.py @@ -18,12 +18,12 @@ class AgentV1SettingsAudioOutput(UncheckedBaseModel): Audio encoding format for streaming TTS output """ - sample_rate: typing.Optional[float] = pydantic.Field(default=None) + sample_rate: typing.Optional[int] = pydantic.Field(default=None) """ Sample rate in Hz """ - bitrate: typing.Optional[float] = pydantic.Field(default=None) + bitrate: typing.Optional[int] = pydantic.Field(default=None) """ Audio bitrate in bits per second """ diff --git a/src/deepgram/environment.py b/src/deepgram/environment.py index e514ef69..bbbe3e0a 100644 --- a/src/deepgram/environment.py +++ b/src/deepgram/environment.py @@ -5,7 +5,6 @@ class DeepgramClientEnvironment: PRODUCTION: DeepgramClientEnvironment - AGENT: DeepgramClientEnvironment def __init__(self, *, base: str, agent: str, production: str): self.base = base @@ -16,6 +15,3 @@ def __init__(self, *, base: str, agent: str, production: str): DeepgramClientEnvironment.PRODUCTION = DeepgramClientEnvironment( base="https://api.deepgram.com", agent="wss://agent.deepgram.com", production="wss://api.deepgram.com" ) -DeepgramClientEnvironment.AGENT = DeepgramClientEnvironment( - base="https://agent.deepgram.com", agent="wss://agent.deepgram.com", production="wss://api.deepgram.com" -) diff --git a/src/deepgram/listen/__init__.py b/src/deepgram/listen/__init__.py index 1240afba..6a178489 100644 --- a/src/deepgram/listen/__init__.py +++ b/src/deepgram/listen/__init__.py @@ -42,8 +42,16 @@ ListenV2CloseStream, ListenV2CloseStreamParams, ListenV2CloseStreamType, + ListenV2Configure, ListenV2ConfigureFailure, ListenV2ConfigureFailureParams, + ListenV2ConfigureParams, + ListenV2ConfigureSuccess, + ListenV2ConfigureSuccessParams, + ListenV2ConfigureSuccessThresholds, + ListenV2ConfigureSuccessThresholdsParams, + ListenV2ConfigureThresholds, + ListenV2ConfigureThresholdsParams, ListenV2Connected, ListenV2ConnectedParams, ListenV2FatalError, @@ -87,8 +95,16 @@ "ListenV2CloseStream": ".v2", "ListenV2CloseStreamParams": ".v2", "ListenV2CloseStreamType": ".v2", + "ListenV2Configure": ".v2", "ListenV2ConfigureFailure": ".v2", "ListenV2ConfigureFailureParams": ".v2", + "ListenV2ConfigureParams": ".v2", + "ListenV2ConfigureSuccess": ".v2", + "ListenV2ConfigureSuccessParams": ".v2", + "ListenV2ConfigureSuccessThresholds": ".v2", + "ListenV2ConfigureSuccessThresholdsParams": ".v2", + "ListenV2ConfigureThresholds": ".v2", + "ListenV2ConfigureThresholdsParams": ".v2", "ListenV2Connected": ".v2", "ListenV2ConnectedParams": ".v2", "ListenV2FatalError": ".v2", @@ -157,8 +173,16 @@ def __dir__(): "ListenV2CloseStream", "ListenV2CloseStreamParams", "ListenV2CloseStreamType", + "ListenV2Configure", "ListenV2ConfigureFailure", "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholds", + "ListenV2ConfigureThresholdsParams", "ListenV2Connected", "ListenV2ConnectedParams", "ListenV2FatalError", diff --git a/src/deepgram/listen/v1/media/client.py b/src/deepgram/listen/v1/media/client.py index ab81ae3b..df47e724 100644 --- a/src/deepgram/listen/v1/media/client.py +++ b/src/deepgram/listen/v1/media/client.py @@ -224,6 +224,7 @@ def transcribe_url( dictation=True, encoding="linear16", filler_words=True, + keyterm=["keyterm"], keywords="keywords", language="language", measurements=True, @@ -714,6 +715,7 @@ async def main() -> None: dictation=True, encoding="linear16", filler_words=True, + keyterm=["keyterm"], keywords="keywords", language="language", measurements=True, diff --git a/src/deepgram/listen/v1/requests/listen_v1metadata.py b/src/deepgram/listen/v1/requests/listen_v1metadata.py index 2b648b48..d0f2932f 100644 --- a/src/deepgram/listen/v1/requests/listen_v1metadata.py +++ b/src/deepgram/listen/v1/requests/listen_v1metadata.py @@ -36,7 +36,7 @@ class ListenV1MetadataParams(typing_extensions.TypedDict): The duration """ - channels: float + channels: int """ The channels """ diff --git a/src/deepgram/listen/v1/requests/listen_v1results.py b/src/deepgram/listen/v1/requests/listen_v1results.py index 96e152f0..39f6a972 100644 --- a/src/deepgram/listen/v1/requests/listen_v1results.py +++ b/src/deepgram/listen/v1/requests/listen_v1results.py @@ -14,7 +14,7 @@ class ListenV1ResultsParams(typing_extensions.TypedDict): Message type identifier """ - channel_index: typing.Sequence[float] + channel_index: typing.Sequence[int] """ The index of the channel """ diff --git a/src/deepgram/listen/v1/requests/listen_v1results_channel_alternatives_item_words_item.py b/src/deepgram/listen/v1/requests/listen_v1results_channel_alternatives_item_words_item.py index c28d5979..9b48906b 100644 --- a/src/deepgram/listen/v1/requests/listen_v1results_channel_alternatives_item_words_item.py +++ b/src/deepgram/listen/v1/requests/listen_v1results_channel_alternatives_item_words_item.py @@ -34,7 +34,7 @@ class ListenV1ResultsChannelAlternativesItemWordsItemParams(typing_extensions.Ty The punctuated word of the word """ - speaker: typing_extensions.NotRequired[float] + speaker: typing_extensions.NotRequired[int] """ The speaker of the word """ diff --git a/src/deepgram/listen/v1/requests/listen_v1speech_started.py b/src/deepgram/listen/v1/requests/listen_v1speech_started.py index 1cc1dcfa..da46d287 100644 --- a/src/deepgram/listen/v1/requests/listen_v1speech_started.py +++ b/src/deepgram/listen/v1/requests/listen_v1speech_started.py @@ -11,7 +11,7 @@ class ListenV1SpeechStartedParams(typing_extensions.TypedDict): Message type identifier """ - channel: typing.Sequence[float] + channel: typing.Sequence[int] """ The channel """ diff --git a/src/deepgram/listen/v1/requests/listen_v1utterance_end.py b/src/deepgram/listen/v1/requests/listen_v1utterance_end.py index 37ae57b8..2713912a 100644 --- a/src/deepgram/listen/v1/requests/listen_v1utterance_end.py +++ b/src/deepgram/listen/v1/requests/listen_v1utterance_end.py @@ -11,7 +11,7 @@ class ListenV1UtteranceEndParams(typing_extensions.TypedDict): Message type identifier """ - channel: typing.Sequence[float] + channel: typing.Sequence[int] """ The channel """ diff --git a/src/deepgram/listen/v1/types/listen_v1metadata.py b/src/deepgram/listen/v1/types/listen_v1metadata.py index 5a048330..eb094c3b 100644 --- a/src/deepgram/listen/v1/types/listen_v1metadata.py +++ b/src/deepgram/listen/v1/types/listen_v1metadata.py @@ -38,7 +38,7 @@ class ListenV1Metadata(UncheckedBaseModel): The duration """ - channels: float = pydantic.Field() + channels: int = pydantic.Field() """ The channels """ diff --git a/src/deepgram/listen/v1/types/listen_v1results.py b/src/deepgram/listen/v1/types/listen_v1results.py index 2ac0f05c..02250332 100644 --- a/src/deepgram/listen/v1/types/listen_v1results.py +++ b/src/deepgram/listen/v1/types/listen_v1results.py @@ -16,7 +16,7 @@ class ListenV1Results(UncheckedBaseModel): Message type identifier """ - channel_index: typing.List[float] = pydantic.Field() + channel_index: typing.List[int] = pydantic.Field() """ The index of the channel """ diff --git a/src/deepgram/listen/v1/types/listen_v1results_channel_alternatives_item_words_item.py b/src/deepgram/listen/v1/types/listen_v1results_channel_alternatives_item_words_item.py index 30060dda..dd4580e1 100644 --- a/src/deepgram/listen/v1/types/listen_v1results_channel_alternatives_item_words_item.py +++ b/src/deepgram/listen/v1/types/listen_v1results_channel_alternatives_item_words_item.py @@ -38,7 +38,7 @@ class ListenV1ResultsChannelAlternativesItemWordsItem(UncheckedBaseModel): The punctuated word of the word """ - speaker: typing.Optional[float] = pydantic.Field(default=None) + speaker: typing.Optional[int] = pydantic.Field(default=None) """ The speaker of the word """ diff --git a/src/deepgram/listen/v1/types/listen_v1speech_started.py b/src/deepgram/listen/v1/types/listen_v1speech_started.py index ff986c28..43526890 100644 --- a/src/deepgram/listen/v1/types/listen_v1speech_started.py +++ b/src/deepgram/listen/v1/types/listen_v1speech_started.py @@ -13,7 +13,7 @@ class ListenV1SpeechStarted(UncheckedBaseModel): Message type identifier """ - channel: typing.List[float] = pydantic.Field() + channel: typing.List[int] = pydantic.Field() """ The channel """ diff --git a/src/deepgram/listen/v1/types/listen_v1utterance_end.py b/src/deepgram/listen/v1/types/listen_v1utterance_end.py index 893468fc..324affcd 100644 --- a/src/deepgram/listen/v1/types/listen_v1utterance_end.py +++ b/src/deepgram/listen/v1/types/listen_v1utterance_end.py @@ -13,7 +13,7 @@ class ListenV1UtteranceEnd(UncheckedBaseModel): Message type identifier """ - channel: typing.List[float] = pydantic.Field() + channel: typing.List[int] = pydantic.Field() """ The channel """ diff --git a/src/deepgram/listen/v2/__init__.py b/src/deepgram/listen/v2/__init__.py index ab491617..ca134a12 100644 --- a/src/deepgram/listen/v2/__init__.py +++ b/src/deepgram/listen/v2/__init__.py @@ -9,7 +9,11 @@ from .types import ( ListenV2CloseStream, ListenV2CloseStreamType, + ListenV2Configure, ListenV2ConfigureFailure, + ListenV2ConfigureSuccess, + ListenV2ConfigureSuccessThresholds, + ListenV2ConfigureThresholds, ListenV2Connected, ListenV2FatalError, ListenV2TurnInfo, @@ -19,6 +23,10 @@ from .requests import ( ListenV2CloseStreamParams, ListenV2ConfigureFailureParams, + ListenV2ConfigureParams, + ListenV2ConfigureSuccessParams, + ListenV2ConfigureSuccessThresholdsParams, + ListenV2ConfigureThresholdsParams, ListenV2ConnectedParams, ListenV2FatalErrorParams, ListenV2TurnInfoParams, @@ -28,8 +36,16 @@ "ListenV2CloseStream": ".types", "ListenV2CloseStreamParams": ".requests", "ListenV2CloseStreamType": ".types", + "ListenV2Configure": ".types", "ListenV2ConfigureFailure": ".types", "ListenV2ConfigureFailureParams": ".requests", + "ListenV2ConfigureParams": ".requests", + "ListenV2ConfigureSuccess": ".types", + "ListenV2ConfigureSuccessParams": ".requests", + "ListenV2ConfigureSuccessThresholds": ".types", + "ListenV2ConfigureSuccessThresholdsParams": ".requests", + "ListenV2ConfigureThresholds": ".types", + "ListenV2ConfigureThresholdsParams": ".requests", "ListenV2Connected": ".types", "ListenV2ConnectedParams": ".requests", "ListenV2FatalError": ".types", @@ -67,8 +83,16 @@ def __dir__(): "ListenV2CloseStream", "ListenV2CloseStreamParams", "ListenV2CloseStreamType", + "ListenV2Configure", "ListenV2ConfigureFailure", "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholds", + "ListenV2ConfigureThresholdsParams", "ListenV2Connected", "ListenV2ConnectedParams", "ListenV2FatalError", diff --git a/src/deepgram/listen/v2/requests/__init__.py b/src/deepgram/listen/v2/requests/__init__.py index 49573944..84e08faa 100644 --- a/src/deepgram/listen/v2/requests/__init__.py +++ b/src/deepgram/listen/v2/requests/__init__.py @@ -7,7 +7,11 @@ if typing.TYPE_CHECKING: from .listen_v2close_stream import ListenV2CloseStreamParams + from .listen_v2configure import ListenV2ConfigureParams from .listen_v2configure_failure import ListenV2ConfigureFailureParams + from .listen_v2configure_success import ListenV2ConfigureSuccessParams + from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholdsParams + from .listen_v2configure_thresholds import ListenV2ConfigureThresholdsParams from .listen_v2connected import ListenV2ConnectedParams from .listen_v2fatal_error import ListenV2FatalErrorParams from .listen_v2turn_info import ListenV2TurnInfoParams @@ -15,6 +19,10 @@ _dynamic_imports: typing.Dict[str, str] = { "ListenV2CloseStreamParams": ".listen_v2close_stream", "ListenV2ConfigureFailureParams": ".listen_v2configure_failure", + "ListenV2ConfigureParams": ".listen_v2configure", + "ListenV2ConfigureSuccessParams": ".listen_v2configure_success", + "ListenV2ConfigureSuccessThresholdsParams": ".listen_v2configure_success_thresholds", + "ListenV2ConfigureThresholdsParams": ".listen_v2configure_thresholds", "ListenV2ConnectedParams": ".listen_v2connected", "ListenV2FatalErrorParams": ".listen_v2fatal_error", "ListenV2TurnInfoParams": ".listen_v2turn_info", @@ -46,6 +54,10 @@ def __dir__(): __all__ = [ "ListenV2CloseStreamParams", "ListenV2ConfigureFailureParams", + "ListenV2ConfigureParams", + "ListenV2ConfigureSuccessParams", + "ListenV2ConfigureSuccessThresholdsParams", + "ListenV2ConfigureThresholdsParams", "ListenV2ConnectedParams", "ListenV2FatalErrorParams", "ListenV2TurnInfoParams", diff --git a/src/deepgram/listen/v2/requests/listen_v2configure.py b/src/deepgram/listen/v2/requests/listen_v2configure.py new file mode 100644 index 00000000..4e3fe35a --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from ....requests.listen_v2keyterm import ListenV2KeytermParams +from .listen_v2configure_thresholds import ListenV2ConfigureThresholdsParams + + +class ListenV2ConfigureParams(typing_extensions.TypedDict): + type: typing.Literal["Configure"] + """ + Message type identifier + """ + + thresholds: typing_extensions.NotRequired[ListenV2ConfigureThresholdsParams] + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: typing_extensions.NotRequired[ListenV2KeytermParams] + language_hints: typing_extensions.NotRequired[typing.Sequence[str]] + """ + Language hints to constrain and prioritize language detection. + Only valid when the model is flux-general-multi. If this field is not supplied, + the session will continue to use the currently configured value. + """ diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_failure.py b/src/deepgram/listen/v2/requests/listen_v2configure_failure.py index bfe53f86..4799ff6a 100644 --- a/src/deepgram/listen/v2/requests/listen_v2configure_failure.py +++ b/src/deepgram/listen/v2/requests/listen_v2configure_failure.py @@ -16,7 +16,7 @@ class ListenV2ConfigureFailureParams(typing_extensions.TypedDict): The unique identifier of the request """ - sequence_id: float + sequence_id: int """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_success.py b/src/deepgram/listen/v2/requests/listen_v2configure_success.py new file mode 100644 index 00000000..c8e886c7 --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_success.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import typing_extensions +from ....requests.listen_v2keyterm import ListenV2KeytermParams +from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholdsParams + + +class ListenV2ConfigureSuccessParams(typing_extensions.TypedDict): + type: typing.Literal["ConfigureSuccess"] + """ + Message type identifier + """ + + request_id: str + """ + The unique identifier of the request + """ + + thresholds: ListenV2ConfigureSuccessThresholdsParams + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: ListenV2KeytermParams + sequence_id: int + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py b/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py new file mode 100644 index 00000000..7a16cdf6 --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_success_thresholds.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureSuccessThresholdsParams(typing_extensions.TypedDict): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eot_timeout_ms: typing_extensions.NotRequired[ListenV2EotTimeoutMs] diff --git a/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py b/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py new file mode 100644 index 00000000..4f81602f --- /dev/null +++ b/src/deepgram/listen/v2/requests/listen_v2configure_thresholds.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing_extensions +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureThresholdsParams(typing_extensions.TypedDict): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing_extensions.NotRequired[ListenV2EagerEotThreshold] + eot_threshold: typing_extensions.NotRequired[ListenV2EotThreshold] + eot_timeout_ms: typing_extensions.NotRequired[ListenV2EotTimeoutMs] diff --git a/src/deepgram/listen/v2/requests/listen_v2connected.py b/src/deepgram/listen/v2/requests/listen_v2connected.py index c931eec2..56ae2a5e 100644 --- a/src/deepgram/listen/v2/requests/listen_v2connected.py +++ b/src/deepgram/listen/v2/requests/listen_v2connected.py @@ -16,7 +16,7 @@ class ListenV2ConnectedParams(typing_extensions.TypedDict): The unique identifier of the request """ - sequence_id: float + sequence_id: int """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/requests/listen_v2fatal_error.py b/src/deepgram/listen/v2/requests/listen_v2fatal_error.py index 05cb3041..1aec4faf 100644 --- a/src/deepgram/listen/v2/requests/listen_v2fatal_error.py +++ b/src/deepgram/listen/v2/requests/listen_v2fatal_error.py @@ -11,7 +11,7 @@ class ListenV2FatalErrorParams(typing_extensions.TypedDict): Message type identifier """ - sequence_id: float + sequence_id: int """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/requests/listen_v2turn_info.py b/src/deepgram/listen/v2/requests/listen_v2turn_info.py index 6690cd2d..71671453 100644 --- a/src/deepgram/listen/v2/requests/listen_v2turn_info.py +++ b/src/deepgram/listen/v2/requests/listen_v2turn_info.py @@ -18,7 +18,7 @@ class ListenV2TurnInfoParams(typing_extensions.TypedDict): The unique identifier of the request """ - sequence_id: float + sequence_id: int """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like `Connected` messages. """ @@ -34,7 +34,7 @@ class ListenV2TurnInfoParams(typing_extensions.TypedDict): - **EndOfTurn** - The user has finished speaking for the turn """ - turn_index: float + turn_index: int """ The index of the current turn """ diff --git a/src/deepgram/listen/v2/socket_client.py b/src/deepgram/listen/v2/socket_client.py index d214f0f5..785fc22c 100644 --- a/src/deepgram/listen/v2/socket_client.py +++ b/src/deepgram/listen/v2/socket_client.py @@ -8,7 +8,9 @@ from ...core.events import EventEmitterMixin, EventType from ...core.unchecked_base_model import construct_type from .types.listen_v2close_stream import ListenV2CloseStream +from .types.listen_v2configure import ListenV2Configure from .types.listen_v2configure_failure import ListenV2ConfigureFailure +from .types.listen_v2configure_success import ListenV2ConfigureSuccess from .types.listen_v2connected import ListenV2Connected from .types.listen_v2fatal_error import ListenV2FatalError from .types.listen_v2turn_info import ListenV2TurnInfo @@ -20,7 +22,7 @@ _logger = logging.getLogger(__name__) V2SocketClientResponse = typing.Union[ - ListenV2Connected, ListenV2TurnInfo, typing.Any, ListenV2ConfigureFailure, ListenV2FatalError + ListenV2Connected, ListenV2TurnInfo, ListenV2ConfigureSuccess, ListenV2ConfigureFailure, ListenV2FatalError ] @@ -86,12 +88,12 @@ async def send_close_stream(self, message: typing.Optional[ListenV2CloseStream] """ await self._send_model(message or ListenV2CloseStream(type="CloseStream")) - async def send_configure(self, message: typing.Any) -> None: + async def send_configure(self, message: ListenV2Configure) -> None: """ Send a message to the websocket connection. - The message will be sent as a typing.Any. + The message will be sent as a ListenV2Configure. """ - await self._send(message) + await self._send_model(message) async def recv(self) -> V2SocketClientResponse: """ @@ -184,12 +186,12 @@ def send_close_stream(self, message: typing.Optional[ListenV2CloseStream] = None """ self._send_model(message or ListenV2CloseStream(type="CloseStream")) - def send_configure(self, message: typing.Any) -> None: + def send_configure(self, message: ListenV2Configure) -> None: """ Send a message to the websocket connection. - The message will be sent as a typing.Any. + The message will be sent as a ListenV2Configure. """ - self._send(message) + self._send_model(message) def recv(self) -> V2SocketClientResponse: """ diff --git a/src/deepgram/listen/v2/types/__init__.py b/src/deepgram/listen/v2/types/__init__.py index 91bab1fe..15cc6fba 100644 --- a/src/deepgram/listen/v2/types/__init__.py +++ b/src/deepgram/listen/v2/types/__init__.py @@ -8,7 +8,11 @@ if typing.TYPE_CHECKING: from .listen_v2close_stream import ListenV2CloseStream from .listen_v2close_stream_type import ListenV2CloseStreamType + from .listen_v2configure import ListenV2Configure from .listen_v2configure_failure import ListenV2ConfigureFailure + from .listen_v2configure_success import ListenV2ConfigureSuccess + from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholds + from .listen_v2configure_thresholds import ListenV2ConfigureThresholds from .listen_v2connected import ListenV2Connected from .listen_v2fatal_error import ListenV2FatalError from .listen_v2turn_info import ListenV2TurnInfo @@ -17,7 +21,11 @@ _dynamic_imports: typing.Dict[str, str] = { "ListenV2CloseStream": ".listen_v2close_stream", "ListenV2CloseStreamType": ".listen_v2close_stream_type", + "ListenV2Configure": ".listen_v2configure", "ListenV2ConfigureFailure": ".listen_v2configure_failure", + "ListenV2ConfigureSuccess": ".listen_v2configure_success", + "ListenV2ConfigureSuccessThresholds": ".listen_v2configure_success_thresholds", + "ListenV2ConfigureThresholds": ".listen_v2configure_thresholds", "ListenV2Connected": ".listen_v2connected", "ListenV2FatalError": ".listen_v2fatal_error", "ListenV2TurnInfo": ".listen_v2turn_info", @@ -50,7 +58,11 @@ def __dir__(): __all__ = [ "ListenV2CloseStream", "ListenV2CloseStreamType", + "ListenV2Configure", "ListenV2ConfigureFailure", + "ListenV2ConfigureSuccess", + "ListenV2ConfigureSuccessThresholds", + "ListenV2ConfigureThresholds", "ListenV2Connected", "ListenV2FatalError", "ListenV2TurnInfo", diff --git a/src/deepgram/listen/v2/types/listen_v2configure.py b/src/deepgram/listen/v2/types/listen_v2configure.py new file mode 100644 index 00000000..6ecb59ca --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2keyterm import ListenV2Keyterm +from .listen_v2configure_thresholds import ListenV2ConfigureThresholds + + +class ListenV2Configure(UncheckedBaseModel): + type: typing.Literal["Configure"] = pydantic.Field(default="Configure") + """ + Message type identifier + """ + + thresholds: typing.Optional[ListenV2ConfigureThresholds] = pydantic.Field(default=None) + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: typing.Optional[ListenV2Keyterm] = None + language_hints: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + Language hints to constrain and prioritize language detection. + Only valid when the model is flux-general-multi. If this field is not supplied, + the session will continue to use the currently configured value. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_failure.py b/src/deepgram/listen/v2/types/listen_v2configure_failure.py index b00fc6b1..2d0cb34f 100644 --- a/src/deepgram/listen/v2/types/listen_v2configure_failure.py +++ b/src/deepgram/listen/v2/types/listen_v2configure_failure.py @@ -18,7 +18,7 @@ class ListenV2ConfigureFailure(UncheckedBaseModel): The unique identifier of the request """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/types/listen_v2configure_success.py b/src/deepgram/listen/v2/types/listen_v2configure_success.py new file mode 100644 index 00000000..3fd7a556 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_success.py @@ -0,0 +1,44 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2keyterm import ListenV2Keyterm +from .listen_v2configure_success_thresholds import ListenV2ConfigureSuccessThresholds + + +class ListenV2ConfigureSuccess(UncheckedBaseModel): + type: typing.Literal["ConfigureSuccess"] = pydantic.Field(default="ConfigureSuccess") + """ + Message type identifier + """ + + request_id: str = pydantic.Field() + """ + The unique identifier of the request + """ + + thresholds: ListenV2ConfigureSuccessThresholds = pydantic.Field() + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + keyterms: ListenV2Keyterm + sequence_id: int = pydantic.Field() + """ + Starts at `0` and increments for each message the server sends + to the client. This includes messages of other types, like + `TurnInfo` messages. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py b/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py new file mode 100644 index 00000000..6c719233 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_success_thresholds.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureSuccessThresholds(UncheckedBaseModel): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py b/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py new file mode 100644 index 00000000..b992c5d8 --- /dev/null +++ b/src/deepgram/listen/v2/types/listen_v2configure_thresholds.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ....core.pydantic_utilities import IS_PYDANTIC_V2 +from ....core.unchecked_base_model import UncheckedBaseModel +from ....types.listen_v2eager_eot_threshold import ListenV2EagerEotThreshold +from ....types.listen_v2eot_threshold import ListenV2EotThreshold +from ....types.listen_v2eot_timeout_ms import ListenV2EotTimeoutMs + + +class ListenV2ConfigureThresholds(UncheckedBaseModel): + """ + Updates each parameter, if it is supplied. If a particular threshold parameter + is not supplied, the configuration continues using the currently configured value. + """ + + eager_eot_threshold: typing.Optional[ListenV2EagerEotThreshold] = None + eot_threshold: typing.Optional[ListenV2EotThreshold] = None + eot_timeout_ms: typing.Optional[ListenV2EotTimeoutMs] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/deepgram/listen/v2/types/listen_v2connected.py b/src/deepgram/listen/v2/types/listen_v2connected.py index b174be68..cefc0236 100644 --- a/src/deepgram/listen/v2/types/listen_v2connected.py +++ b/src/deepgram/listen/v2/types/listen_v2connected.py @@ -18,7 +18,7 @@ class ListenV2Connected(UncheckedBaseModel): The unique identifier of the request """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/types/listen_v2fatal_error.py b/src/deepgram/listen/v2/types/listen_v2fatal_error.py index 0e65c00e..c5106f07 100644 --- a/src/deepgram/listen/v2/types/listen_v2fatal_error.py +++ b/src/deepgram/listen/v2/types/listen_v2fatal_error.py @@ -13,7 +13,7 @@ class ListenV2FatalError(UncheckedBaseModel): Message type identifier """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like diff --git a/src/deepgram/listen/v2/types/listen_v2turn_info.py b/src/deepgram/listen/v2/types/listen_v2turn_info.py index 96f05688..dd60abf5 100644 --- a/src/deepgram/listen/v2/types/listen_v2turn_info.py +++ b/src/deepgram/listen/v2/types/listen_v2turn_info.py @@ -20,7 +20,7 @@ class ListenV2TurnInfo(UncheckedBaseModel): The unique identifier of the request """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ Starts at `0` and increments for each message the server sends to the client. This includes messages of other types, like `Connected` messages. """ @@ -36,7 +36,7 @@ class ListenV2TurnInfo(UncheckedBaseModel): - **EndOfTurn** - The user has finished speaking for the turn """ - turn_index: float = pydantic.Field() + turn_index: int = pydantic.Field() """ The index of the current turn """ diff --git a/src/deepgram/manage/v1/projects/billing/breakdown/client.py b/src/deepgram/manage/v1/projects/billing/breakdown/client.py index 34bfbcf0..81efaf56 100644 --- a/src/deepgram/manage/v1/projects/billing/breakdown/client.py +++ b/src/deepgram/manage/v1/projects/billing/breakdown/client.py @@ -92,6 +92,7 @@ def list( deployment="hosted", tag="tag1", line_item="streaming::nova-3", + grouping=["deployment", "line_item"], ) """ _response = self._raw_client.list( @@ -195,6 +196,7 @@ async def main() -> None: deployment="hosted", tag="tag1", line_item="streaming::nova-3", + grouping=["deployment", "line_item"], ) diff --git a/src/deepgram/requests/listen_v1response_metadata.py b/src/deepgram/requests/listen_v1response_metadata.py index 7a1671ac..100cb4a1 100644 --- a/src/deepgram/requests/listen_v1response_metadata.py +++ b/src/deepgram/requests/listen_v1response_metadata.py @@ -16,7 +16,7 @@ class ListenV1ResponseMetadataParams(typing_extensions.TypedDict): sha256: str created: dt.datetime duration: float - channels: float + channels: int models: typing.Sequence[str] model_info: typing.Dict[str, typing.Any] summary_info: typing_extensions.NotRequired[ListenV1ResponseMetadataSummaryInfoParams] diff --git a/src/deepgram/requests/listen_v1response_metadata_intents_info.py b/src/deepgram/requests/listen_v1response_metadata_intents_info.py index 88bd5043..78c106bd 100644 --- a/src/deepgram/requests/listen_v1response_metadata_intents_info.py +++ b/src/deepgram/requests/listen_v1response_metadata_intents_info.py @@ -5,5 +5,5 @@ class ListenV1ResponseMetadataIntentsInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/listen_v1response_metadata_sentiment_info.py b/src/deepgram/requests/listen_v1response_metadata_sentiment_info.py index a92d108d..e26b7621 100644 --- a/src/deepgram/requests/listen_v1response_metadata_sentiment_info.py +++ b/src/deepgram/requests/listen_v1response_metadata_sentiment_info.py @@ -5,5 +5,5 @@ class ListenV1ResponseMetadataSentimentInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/listen_v1response_metadata_summary_info.py b/src/deepgram/requests/listen_v1response_metadata_summary_info.py index ea1b51f0..95f2f812 100644 --- a/src/deepgram/requests/listen_v1response_metadata_summary_info.py +++ b/src/deepgram/requests/listen_v1response_metadata_summary_info.py @@ -5,5 +5,5 @@ class ListenV1ResponseMetadataSummaryInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/listen_v1response_metadata_topics_info.py b/src/deepgram/requests/listen_v1response_metadata_topics_info.py index a6ddbc49..9f2ead53 100644 --- a/src/deepgram/requests/listen_v1response_metadata_topics_info.py +++ b/src/deepgram/requests/listen_v1response_metadata_topics_info.py @@ -5,5 +5,5 @@ class ListenV1ResponseMetadataTopicsInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py index 6c35ddb1..c0a334e1 100644 --- a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py +++ b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py @@ -12,7 +12,7 @@ class ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsIte sentences: typing_extensions.NotRequired[ typing.Sequence[ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsItemSentencesItemParams] ] - speaker: typing_extensions.NotRequired[float] - num_words: typing_extensions.NotRequired[float] + speaker: typing_extensions.NotRequired[int] + num_words: typing_extensions.NotRequired[int] start: typing_extensions.NotRequired[float] end: typing_extensions.NotRequired[float] diff --git a/src/deepgram/requests/listen_v1response_results_utterances_item.py b/src/deepgram/requests/listen_v1response_results_utterances_item.py index 8298c202..82fba7f9 100644 --- a/src/deepgram/requests/listen_v1response_results_utterances_item.py +++ b/src/deepgram/requests/listen_v1response_results_utterances_item.py @@ -10,8 +10,8 @@ class ListenV1ResponseResultsUtterancesItemParams(typing_extensions.TypedDict): start: typing_extensions.NotRequired[float] end: typing_extensions.NotRequired[float] confidence: typing_extensions.NotRequired[float] - channel: typing_extensions.NotRequired[float] + channel: typing_extensions.NotRequired[int] transcript: typing_extensions.NotRequired[str] words: typing_extensions.NotRequired[typing.Sequence[ListenV1ResponseResultsUtterancesItemWordsItemParams]] - speaker: typing_extensions.NotRequired[float] + speaker: typing_extensions.NotRequired[int] id: typing_extensions.NotRequired[str] diff --git a/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py b/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py index ea2bbf42..8ec08cc9 100644 --- a/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py +++ b/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py @@ -8,6 +8,6 @@ class ListenV1ResponseResultsUtterancesItemWordsItemParams(typing_extensions.Typ start: typing_extensions.NotRequired[float] end: typing_extensions.NotRequired[float] confidence: typing_extensions.NotRequired[float] - speaker: typing_extensions.NotRequired[float] + speaker: typing_extensions.NotRequired[int] speaker_confidence: typing_extensions.NotRequired[float] punctuated_word: typing_extensions.NotRequired[str] diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py index 6aab9ec3..ac0961bc 100644 --- a/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py +++ b/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py @@ -5,5 +5,5 @@ class ReadV1ResponseMetadataMetadataIntentsInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py index e9ac60d3..8f17e6da 100644 --- a/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py +++ b/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py @@ -5,5 +5,5 @@ class ReadV1ResponseMetadataMetadataSentimentInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py index 6ab5a0ff..cb2a159b 100644 --- a/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py +++ b/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py @@ -5,5 +5,5 @@ class ReadV1ResponseMetadataMetadataSummaryInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py index ad718351..3ae2f074 100644 --- a/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py +++ b/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py @@ -5,5 +5,5 @@ class ReadV1ResponseMetadataMetadataTopicsInfoParams(typing_extensions.TypedDict): model_uuid: typing_extensions.NotRequired[str] - input_tokens: typing_extensions.NotRequired[float] - output_tokens: typing_extensions.NotRequired[float] + input_tokens: typing_extensions.NotRequired[int] + output_tokens: typing_extensions.NotRequired[int] diff --git a/src/deepgram/self_hosted/v1/distribution_credentials/client.py b/src/deepgram/self_hosted/v1/distribution_credentials/client.py index 63371d29..c0c63b10 100644 --- a/src/deepgram/self_hosted/v1/distribution_credentials/client.py +++ b/src/deepgram/self_hosted/v1/distribution_credentials/client.py @@ -110,6 +110,7 @@ def create( ) client.self_hosted.v1.distribution_credentials.create( project_id="123456-7890-1234-5678-901234", + scopes=["self-hosted:products"], ) """ _response = self._raw_client.create( @@ -309,6 +310,7 @@ async def create( async def main() -> None: await client.self_hosted.v1.distribution_credentials.create( project_id="123456-7890-1234-5678-901234", + scopes=["self-hosted:products"], ) diff --git a/src/deepgram/speak/v1/requests/speak_v1cleared.py b/src/deepgram/speak/v1/requests/speak_v1cleared.py index e1f1784b..7cfa78c1 100644 --- a/src/deepgram/speak/v1/requests/speak_v1cleared.py +++ b/src/deepgram/speak/v1/requests/speak_v1cleared.py @@ -10,7 +10,7 @@ class SpeakV1ClearedParams(typing_extensions.TypedDict): Message type identifier """ - sequence_id: float + sequence_id: int """ The sequence ID of the response """ diff --git a/src/deepgram/speak/v1/requests/speak_v1flushed.py b/src/deepgram/speak/v1/requests/speak_v1flushed.py index 674cb52d..ccf8a1fc 100644 --- a/src/deepgram/speak/v1/requests/speak_v1flushed.py +++ b/src/deepgram/speak/v1/requests/speak_v1flushed.py @@ -10,7 +10,7 @@ class SpeakV1FlushedParams(typing_extensions.TypedDict): Message type identifier """ - sequence_id: float + sequence_id: int """ The sequence ID of the response """ diff --git a/src/deepgram/speak/v1/types/speak_v1cleared.py b/src/deepgram/speak/v1/types/speak_v1cleared.py index 06328648..4966f54a 100644 --- a/src/deepgram/speak/v1/types/speak_v1cleared.py +++ b/src/deepgram/speak/v1/types/speak_v1cleared.py @@ -14,7 +14,7 @@ class SpeakV1Cleared(UncheckedBaseModel): Message type identifier """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ The sequence ID of the response """ diff --git a/src/deepgram/speak/v1/types/speak_v1flushed.py b/src/deepgram/speak/v1/types/speak_v1flushed.py index b1e4b127..c555a2f7 100644 --- a/src/deepgram/speak/v1/types/speak_v1flushed.py +++ b/src/deepgram/speak/v1/types/speak_v1flushed.py @@ -14,7 +14,7 @@ class SpeakV1Flushed(UncheckedBaseModel): Message type identifier """ - sequence_id: float = pydantic.Field() + sequence_id: int = pydantic.Field() """ The sequence ID of the response """ diff --git a/src/deepgram/types/listen_v1response_metadata.py b/src/deepgram/types/listen_v1response_metadata.py index 02b40254..974a9ecc 100644 --- a/src/deepgram/types/listen_v1response_metadata.py +++ b/src/deepgram/types/listen_v1response_metadata.py @@ -18,7 +18,7 @@ class ListenV1ResponseMetadata(UncheckedBaseModel): sha256: str created: dt.datetime duration: float - channels: float + channels: int models: typing.List[str] model_info: typing.Dict[str, typing.Any] summary_info: typing.Optional[ListenV1ResponseMetadataSummaryInfo] = None diff --git a/src/deepgram/types/listen_v1response_metadata_intents_info.py b/src/deepgram/types/listen_v1response_metadata_intents_info.py index a470c0a7..33de3488 100644 --- a/src/deepgram/types/listen_v1response_metadata_intents_info.py +++ b/src/deepgram/types/listen_v1response_metadata_intents_info.py @@ -9,8 +9,8 @@ class ListenV1ResponseMetadataIntentsInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/listen_v1response_metadata_sentiment_info.py b/src/deepgram/types/listen_v1response_metadata_sentiment_info.py index a78f9cc2..aa21aa8a 100644 --- a/src/deepgram/types/listen_v1response_metadata_sentiment_info.py +++ b/src/deepgram/types/listen_v1response_metadata_sentiment_info.py @@ -9,8 +9,8 @@ class ListenV1ResponseMetadataSentimentInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/listen_v1response_metadata_summary_info.py b/src/deepgram/types/listen_v1response_metadata_summary_info.py index 7b4ea8ce..8ad3e8a7 100644 --- a/src/deepgram/types/listen_v1response_metadata_summary_info.py +++ b/src/deepgram/types/listen_v1response_metadata_summary_info.py @@ -9,8 +9,8 @@ class ListenV1ResponseMetadataSummaryInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/listen_v1response_metadata_topics_info.py b/src/deepgram/types/listen_v1response_metadata_topics_info.py index 2569296b..bf4c3327 100644 --- a/src/deepgram/types/listen_v1response_metadata_topics_info.py +++ b/src/deepgram/types/listen_v1response_metadata_topics_info.py @@ -9,8 +9,8 @@ class ListenV1ResponseMetadataTopicsInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py b/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py index 505c8115..4f080b78 100644 --- a/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py +++ b/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py @@ -9,8 +9,8 @@ class ReadV1ResponseMetadataMetadataIntentsInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py b/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py index b54f7b06..92b8fe78 100644 --- a/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py +++ b/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py @@ -9,8 +9,8 @@ class ReadV1ResponseMetadataMetadataSentimentInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py b/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py index 2f6a91c7..1c328afb 100644 --- a/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py +++ b/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py @@ -9,8 +9,8 @@ class ReadV1ResponseMetadataMetadataSummaryInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py b/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py index 8f413eb5..527915f7 100644 --- a/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py +++ b/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py @@ -9,8 +9,8 @@ class ReadV1ResponseMetadataMetadataTopicsInfo(UncheckedBaseModel): model_uuid: typing.Optional[str] = None - input_tokens: typing.Optional[float] = None - output_tokens: typing.Optional[float] = None + input_tokens: typing.Optional[int] = None + output_tokens: typing.Optional[int] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/tests/custom/test_text_builder.py b/tests/custom/test_text_builder.py index 77a7ed1b..d64f0c5b 100644 --- a/tests/custom/test_text_builder.py +++ b/tests/custom/test_text_builder.py @@ -3,6 +3,7 @@ """ import pytest + from deepgram.helpers import ( TextBuilder, add_pronunciation, diff --git a/tests/custom/test_transport.py b/tests/custom/test_transport.py index ba860fa5..03ef65bb 100644 --- a/tests/custom/test_transport.py +++ b/tests/custom/test_transport.py @@ -2,22 +2,21 @@ import json import sys -from typing import Any, Dict, Iterator, List +from typing import Any, Iterator, List from unittest.mock import MagicMock import pytest from deepgram.transport import ( + _TARGET_MODULES, AsyncTransport, SyncTransport, _AsyncTransportShim, _SyncTransportShim, - _TARGET_MODULES, install_transport, restore_transport, ) - # --------------------------------------------------------------------------- # Mock transport implementations # --------------------------------------------------------------------------- @@ -328,7 +327,7 @@ def _valid_metadata_json() -> str: class TestSyncEndToEnd: def test_listen_v1_with_mock_transport(self): """Verify a mock transport receives messages through the event system.""" - from deepgram.core.events import EventEmitterMixin, EventType + from deepgram.core.events import EventType from deepgram.listen.v1.socket_client import V1SocketClient transcript_json = _valid_metadata_json() diff --git a/tests/manual/agent/v1/connect/async.py b/tests/manual/agent/v1/connect/async.py index 5b6092c6..cbbe6206 100644 --- a/tests/manual/agent/v1/connect/async.py +++ b/tests/manual/agent/v1/connect/async.py @@ -6,8 +6,9 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import AsyncDeepgramClient -from deepgram.core.events import EventType from deepgram.agent.v1.types import ( AgentV1AgentAudioDone, AgentV1AgentStartedSpeaking, @@ -22,19 +23,19 @@ AgentV1SettingsAgent, AgentV1SettingsAgentListen, AgentV1SettingsAgentListenProvider_V1, + AgentV1SettingsApplied, AgentV1SettingsAudio, AgentV1SettingsAudioInput, - AgentV1SettingsApplied, AgentV1SpeakUpdated, AgentV1UserStartedSpeaking, AgentV1Warning, AgentV1Welcome, ) -from deepgram.types.think_settings_v1 import ThinkSettingsV1 +from deepgram.core.events import EventType from deepgram.types.speak_settings_v1 import SpeakSettingsV1 from deepgram.types.speak_settings_v1provider import SpeakSettingsV1Provider_Deepgram +from deepgram.types.think_settings_v1 import ThinkSettingsV1 from deepgram.types.think_settings_v1provider import ThinkSettingsV1Provider_OpenAi -from typing import Union AgentV1SocketClientResponse = Union[ AgentV1ReceiveFunctionCallResponse, @@ -100,10 +101,10 @@ async def main() -> None: ), ) print("Settings configuration created") - print(f" - Audio: encoding=linear16, sample_rate=16000") - print(f" - Listen: type=deepgram, model=nova-3") - print(f" - Think: type=open_ai, model=gpt-4o-mini") - print(f" - Speak: type=deepgram, model=aura-2-asteria-en") + print(" - Audio: encoding=linear16, sample_rate=16000") + print(" - Listen: type=deepgram, model=nova-3") + print(" - Think: type=open_ai, model=gpt-4o-mini") + print(" - Speak: type=deepgram, model=aura-2-asteria-en") print("Sending SettingsConfiguration message") await agent.send_settings(settings) diff --git a/tests/manual/agent/v1/connect/main.py b/tests/manual/agent/v1/connect/main.py index fcc6db98..a2c1f5d0 100644 --- a/tests/manual/agent/v1/connect/main.py +++ b/tests/manual/agent/v1/connect/main.py @@ -7,8 +7,9 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient -from deepgram.core.events import EventType from deepgram.agent.v1.types import ( AgentV1AgentAudioDone, AgentV1AgentStartedSpeaking, @@ -23,19 +24,19 @@ AgentV1SettingsAgent, AgentV1SettingsAgentListen, AgentV1SettingsAgentListenProvider_V1, + AgentV1SettingsApplied, AgentV1SettingsAudio, AgentV1SettingsAudioInput, - AgentV1SettingsApplied, AgentV1SpeakUpdated, AgentV1UserStartedSpeaking, AgentV1Warning, AgentV1Welcome, ) -from deepgram.types.think_settings_v1 import ThinkSettingsV1 +from deepgram.core.events import EventType from deepgram.types.speak_settings_v1 import SpeakSettingsV1 from deepgram.types.speak_settings_v1provider import SpeakSettingsV1Provider_Deepgram +from deepgram.types.think_settings_v1 import ThinkSettingsV1 from deepgram.types.think_settings_v1provider import ThinkSettingsV1Provider_OpenAi -from typing import Union AgentV1SocketClientResponse = Union[ AgentV1ReceiveFunctionCallResponse, @@ -100,10 +101,10 @@ ), ) print("Settings configuration created") - print(f" - Audio: encoding=linear16, sample_rate=44100") - print(f" - Listen: type=deepgram, model=nova-3") - print(f" - Think: type=open_ai, model=gpt-4o-mini") - print(f" - Speak: type=deepgram, model=aura-2-asteria-en") + print(" - Audio: encoding=linear16, sample_rate=44100") + print(" - Listen: type=deepgram, model=nova-3") + print(" - Think: type=open_ai, model=gpt-4o-mini") + print(" - Speak: type=deepgram, model=aura-2-asteria-en") print("Sending SettingsConfiguration message") agent.send_settings(settings) diff --git a/tests/manual/agent/v1/connect/with_auth_token.py b/tests/manual/agent/v1/connect/with_auth_token.py index 501fc182..2d21462e 100644 --- a/tests/manual/agent/v1/connect/with_auth_token.py +++ b/tests/manual/agent/v1/connect/with_auth_token.py @@ -7,8 +7,9 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient -from deepgram.core.events import EventType from deepgram.agent.v1.types import ( AgentV1AgentAudioDone, AgentV1AgentStartedSpeaking, @@ -23,19 +24,19 @@ AgentV1SettingsAgent, AgentV1SettingsAgentListen, AgentV1SettingsAgentListenProvider_V1, + AgentV1SettingsApplied, AgentV1SettingsAudio, AgentV1SettingsAudioInput, - AgentV1SettingsApplied, AgentV1SpeakUpdated, AgentV1UserStartedSpeaking, AgentV1Warning, AgentV1Welcome, ) -from deepgram.types.think_settings_v1 import ThinkSettingsV1 +from deepgram.core.events import EventType from deepgram.types.speak_settings_v1 import SpeakSettingsV1 from deepgram.types.speak_settings_v1provider import SpeakSettingsV1Provider_Deepgram +from deepgram.types.think_settings_v1 import ThinkSettingsV1 from deepgram.types.think_settings_v1provider import ThinkSettingsV1Provider_OpenAi -from typing import Union AgentV1SocketClientResponse = Union[ AgentV1ReceiveFunctionCallResponse, @@ -110,10 +111,10 @@ ), ) print("Settings configuration created") - print(f" - Audio: encoding=linear16, sample_rate=44100") - print(f" - Listen: type=deepgram, model=nova-3") - print(f" - Think: type=open_ai, model=gpt-4o-mini") - print(f" - Speak: type=deepgram, model=aura-2-asteria-en") + print(" - Audio: encoding=linear16, sample_rate=44100") + print(" - Listen: type=deepgram, model=nova-3") + print(" - Think: type=open_ai, model=gpt-4o-mini") + print(" - Speak: type=deepgram, model=aura-2-asteria-en") print("Sending SettingsConfiguration message") agent.send_settings(settings) diff --git a/tests/manual/agent/v1/connect/with_raw_response.py b/tests/manual/agent/v1/connect/with_raw_response.py index f7f45dbd..005eb095 100644 --- a/tests/manual/agent/v1/connect/with_raw_response.py +++ b/tests/manual/agent/v1/connect/with_raw_response.py @@ -16,9 +16,9 @@ AgentV1SettingsAudio, AgentV1SettingsAudioInput, ) -from deepgram.types.think_settings_v1 import ThinkSettingsV1 from deepgram.types.speak_settings_v1 import SpeakSettingsV1 from deepgram.types.speak_settings_v1provider import SpeakSettingsV1Provider_Deepgram +from deepgram.types.think_settings_v1 import ThinkSettingsV1 from deepgram.types.think_settings_v1provider import ThinkSettingsV1Provider_OpenAi print("Initializing DeepgramClient") @@ -66,10 +66,10 @@ ), ) print("Settings configuration created") - print(f" - Audio: encoding=linear16, sample_rate=44100") - print(f" - Listen: type=deepgram, model=nova-3") - print(f" - Think: type=open_ai, model=gpt-4o-mini") - print(f" - Speak: type=deepgram, model=aura-2-asteria-en") + print(" - Audio: encoding=linear16, sample_rate=44100") + print(" - Listen: type=deepgram, model=nova-3") + print(" - Think: type=open_ai, model=gpt-4o-mini") + print(" - Speak: type=deepgram, model=aura-2-asteria-en") # Send settings using raw method print("Sending SettingsConfiguration message using raw method") diff --git a/tests/manual/listen/v1/connect/async.py b/tests/manual/listen/v1/connect/async.py index 78c44c12..c379af57 100644 --- a/tests/manual/listen/v1/connect/async.py +++ b/tests/manual/listen/v1/connect/async.py @@ -7,6 +7,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import AsyncDeepgramClient from deepgram.core.events import EventType from deepgram.listen.v1.types import ( @@ -15,7 +17,6 @@ ListenV1SpeechStarted, ListenV1UtteranceEnd, ) -from typing import Union ListenV1SocketClientResponse = Union[ListenV1Results, ListenV1Metadata, ListenV1UtteranceEnd, ListenV1SpeechStarted] diff --git a/tests/manual/listen/v1/connect/main.py b/tests/manual/listen/v1/connect/main.py index 06cde63a..e6059874 100644 --- a/tests/manual/listen/v1/connect/main.py +++ b/tests/manual/listen/v1/connect/main.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v1.types import ( @@ -16,7 +18,6 @@ ListenV1SpeechStarted, ListenV1UtteranceEnd, ) -from typing import Union ListenV1SocketClientResponse = Union[ListenV1Results, ListenV1Metadata, ListenV1UtteranceEnd, ListenV1SpeechStarted] diff --git a/tests/manual/listen/v1/connect/with_auth_token.py b/tests/manual/listen/v1/connect/with_auth_token.py index 6de11626..38df0ffe 100644 --- a/tests/manual/listen/v1/connect/with_auth_token.py +++ b/tests/manual/listen/v1/connect/with_auth_token.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v1.types import ( @@ -16,7 +18,6 @@ ListenV1SpeechStarted, ListenV1UtteranceEnd, ) -from typing import Union ListenV1SocketClientResponse = Union[ListenV1Results, ListenV1Metadata, ListenV1UtteranceEnd, ListenV1SpeechStarted] diff --git a/tests/manual/listen/v1/connect/with_raw_response.py b/tests/manual/listen/v1/connect/with_raw_response.py index db78b4e8..376de31a 100644 --- a/tests/manual/listen/v1/connect/with_raw_response.py +++ b/tests/manual/listen/v1/connect/with_raw_response.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v1.types import ( @@ -16,7 +18,6 @@ ListenV1SpeechStarted, ListenV1UtteranceEnd, ) -from typing import Union ListenV1SocketClientResponse = Union[ListenV1Results, ListenV1Metadata, ListenV1UtteranceEnd, ListenV1SpeechStarted] diff --git a/tests/manual/listen/v2/connect/async.py b/tests/manual/listen/v2/connect/async.py index 65ecc29e..21a3f3a0 100644 --- a/tests/manual/listen/v2/connect/async.py +++ b/tests/manual/listen/v2/connect/async.py @@ -7,6 +7,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import AsyncDeepgramClient from deepgram.core.events import EventType from deepgram.listen.v2.types import ( @@ -14,7 +16,6 @@ ListenV2FatalError, ListenV2TurnInfo, ) -from typing import Union ListenV2SocketClientResponse = Union[ListenV2Connected, ListenV2TurnInfo, ListenV2FatalError] diff --git a/tests/manual/listen/v2/connect/main.py b/tests/manual/listen/v2/connect/main.py index 21405789..4e444958 100644 --- a/tests/manual/listen/v2/connect/main.py +++ b/tests/manual/listen/v2/connect/main.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v2.types import ( @@ -15,7 +17,6 @@ ListenV2FatalError, ListenV2TurnInfo, ) -from typing import Union ListenV2SocketClientResponse = Union[ListenV2Connected, ListenV2TurnInfo, ListenV2FatalError] diff --git a/tests/manual/listen/v2/connect/with_auth_token.py b/tests/manual/listen/v2/connect/with_auth_token.py index 12836fd1..6000b007 100644 --- a/tests/manual/listen/v2/connect/with_auth_token.py +++ b/tests/manual/listen/v2/connect/with_auth_token.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v2.types import ( @@ -15,7 +17,6 @@ ListenV2FatalError, ListenV2TurnInfo, ) -from typing import Union ListenV2SocketClientResponse = Union[ListenV2Connected, ListenV2TurnInfo, ListenV2FatalError] diff --git a/tests/manual/listen/v2/connect/with_raw_response.py b/tests/manual/listen/v2/connect/with_raw_response.py index c25e3457..1dd0749f 100644 --- a/tests/manual/listen/v2/connect/with_raw_response.py +++ b/tests/manual/listen/v2/connect/with_raw_response.py @@ -8,6 +8,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import DeepgramClient from deepgram.core.events import EventType from deepgram.listen.v2.types import ( @@ -15,7 +17,6 @@ ListenV2FatalError, ListenV2TurnInfo, ) -from typing import Union ListenV2SocketClientResponse = Union[ListenV2Connected, ListenV2TurnInfo, ListenV2FatalError] diff --git a/tests/manual/read/v1/text/analyze/async.py b/tests/manual/read/v1/text/analyze/async.py index ff2c6eb5..9d9a3e75 100644 --- a/tests/manual/read/v1/text/analyze/async.py +++ b/tests/manual/read/v1/text/analyze/async.py @@ -18,10 +18,10 @@ async def main() -> None: text = "Hello, world!" language = "en" print(f"Sending async text analysis request - Language: {language}, Text: {text}") - print(f" - Sentiment analysis: enabled") - print(f" - Summarization: enabled") - print(f" - Topics extraction: enabled") - print(f" - Intents detection: enabled") + print(" - Sentiment analysis: enabled") + print(" - Summarization: enabled") + print(" - Topics extraction: enabled") + print(" - Intents detection: enabled") response = await client.read.v1.text.analyze( request={"text": text}, language=language, diff --git a/tests/manual/read/v1/text/analyze/main.py b/tests/manual/read/v1/text/analyze/main.py index a22fb2a8..68a2ed43 100644 --- a/tests/manual/read/v1/text/analyze/main.py +++ b/tests/manual/read/v1/text/analyze/main.py @@ -14,10 +14,10 @@ text = "Hello, world!" language = "en" print(f"Sending text analysis request - Language: {language}, Text: {text}") - print(f" - Sentiment analysis: enabled") - print(f" - Summarization: enabled") - print(f" - Topics extraction: enabled") - print(f" - Intents detection: enabled") + print(" - Sentiment analysis: enabled") + print(" - Summarization: enabled") + print(" - Topics extraction: enabled") + print(" - Intents detection: enabled") response = client.read.v1.text.analyze( request={"text": text}, language=language, diff --git a/tests/manual/read/v1/text/analyze/with_auth_token.py b/tests/manual/read/v1/text/analyze/with_auth_token.py index 19624b65..1830b99d 100644 --- a/tests/manual/read/v1/text/analyze/with_auth_token.py +++ b/tests/manual/read/v1/text/analyze/with_auth_token.py @@ -24,10 +24,10 @@ text = "Hello, world!" language = "en" print(f"Sending text analysis request - Language: {language}, Text: {text}") - print(f" - Sentiment analysis: enabled") - print(f" - Summarization: enabled") - print(f" - Topics extraction: enabled") - print(f" - Intents detection: enabled") + print(" - Sentiment analysis: enabled") + print(" - Summarization: enabled") + print(" - Topics extraction: enabled") + print(" - Intents detection: enabled") response = client.read.v1.text.analyze( request={"text": text}, language=language, diff --git a/tests/manual/read/v1/text/analyze/with_raw_response.py b/tests/manual/read/v1/text/analyze/with_raw_response.py index 68eed8b7..5fe3edee 100644 --- a/tests/manual/read/v1/text/analyze/with_raw_response.py +++ b/tests/manual/read/v1/text/analyze/with_raw_response.py @@ -14,10 +14,10 @@ text = "Hello, world!" language = "en" print(f"Sending text analysis request with raw response - Language: {language}, Text: {text}") - print(f" - Sentiment analysis: enabled") - print(f" - Summarization: enabled") - print(f" - Topics extraction: enabled") - print(f" - Intents detection: enabled") + print(" - Sentiment analysis: enabled") + print(" - Summarization: enabled") + print(" - Topics extraction: enabled") + print(" - Intents detection: enabled") response = client.read.v1.text.with_raw_response.analyze( request={"text": text}, language=language, diff --git a/tests/manual/speak/v1/audio/generate/async.py b/tests/manual/speak/v1/audio/generate/async.py index ff1d2094..6c184f83 100644 --- a/tests/manual/speak/v1/audio/generate/async.py +++ b/tests/manual/speak/v1/audio/generate/async.py @@ -1,5 +1,4 @@ import asyncio -import os from dotenv import load_dotenv diff --git a/tests/manual/speak/v1/audio/generate/main.py b/tests/manual/speak/v1/audio/generate/main.py index 8bf00e91..50f5f4e0 100644 --- a/tests/manual/speak/v1/audio/generate/main.py +++ b/tests/manual/speak/v1/audio/generate/main.py @@ -1,4 +1,3 @@ -import os from dotenv import load_dotenv diff --git a/tests/manual/speak/v1/audio/generate/with_auth_token.py b/tests/manual/speak/v1/audio/generate/with_auth_token.py index 80bf6f2b..d7a6ebbc 100644 --- a/tests/manual/speak/v1/audio/generate/with_auth_token.py +++ b/tests/manual/speak/v1/audio/generate/with_auth_token.py @@ -1,4 +1,3 @@ -import os from dotenv import load_dotenv diff --git a/tests/manual/speak/v1/audio/generate/with_raw_response.py b/tests/manual/speak/v1/audio/generate/with_raw_response.py index 089647ae..64195eb9 100644 --- a/tests/manual/speak/v1/audio/generate/with_raw_response.py +++ b/tests/manual/speak/v1/audio/generate/with_raw_response.py @@ -1,4 +1,3 @@ -import os from dotenv import load_dotenv diff --git a/tests/manual/speak/v1/connect/async.py b/tests/manual/speak/v1/connect/async.py index ae95234d..1d0b8d56 100644 --- a/tests/manual/speak/v1/connect/async.py +++ b/tests/manual/speak/v1/connect/async.py @@ -6,6 +6,8 @@ load_dotenv() print("Environment variables loaded") +from typing import Union + from deepgram import AsyncDeepgramClient from deepgram.core.events import EventType from deepgram.speak.v1.types import ( @@ -14,7 +16,6 @@ SpeakV1Metadata, SpeakV1Warning, ) -from typing import Union SpeakV1SocketClientResponse = Union[str, SpeakV1Metadata, SpeakV1Flushed, SpeakV1Cleared, SpeakV1Warning] diff --git a/tests/manual/speak/v1/connect/main.py b/tests/manual/speak/v1/connect/main.py index 8468471f..754f22fc 100644 --- a/tests/manual/speak/v1/connect/main.py +++ b/tests/manual/speak/v1/connect/main.py @@ -6,6 +6,7 @@ import threading import time +from typing import Union from deepgram import DeepgramClient from deepgram.core.events import EventType @@ -15,7 +16,6 @@ SpeakV1Metadata, SpeakV1Warning, ) -from typing import Union SpeakV1SocketClientResponse = Union[str, SpeakV1Metadata, SpeakV1Flushed, SpeakV1Cleared, SpeakV1Warning] diff --git a/tests/manual/speak/v1/connect/with_auth_token.py b/tests/manual/speak/v1/connect/with_auth_token.py index 25476645..b57c0380 100644 --- a/tests/manual/speak/v1/connect/with_auth_token.py +++ b/tests/manual/speak/v1/connect/with_auth_token.py @@ -6,6 +6,7 @@ import threading import time +from typing import Union from deepgram import DeepgramClient from deepgram.core.events import EventType @@ -15,7 +16,6 @@ SpeakV1Metadata, SpeakV1Warning, ) -from typing import Union SpeakV1SocketClientResponse = Union[str, SpeakV1Metadata, SpeakV1Flushed, SpeakV1Cleared, SpeakV1Warning] diff --git a/tests/manual/speak/v1/connect/with_raw_response.py b/tests/manual/speak/v1/connect/with_raw_response.py index df6ac416..50095a16 100644 --- a/tests/manual/speak/v1/connect/with_raw_response.py +++ b/tests/manual/speak/v1/connect/with_raw_response.py @@ -6,6 +6,7 @@ import threading import time +from typing import Union from deepgram import DeepgramClient from deepgram.core.events import EventType @@ -15,7 +16,6 @@ SpeakV1Metadata, SpeakV1Warning, ) -from typing import Union SpeakV1SocketClientResponse = Union[str, SpeakV1Metadata, SpeakV1Flushed, SpeakV1Cleared, SpeakV1Warning] diff --git a/tests/wire/test_listen_v1_media.py b/tests/wire/test_listen_v1_media.py index 8c08f1ab..af68c86c 100644 --- a/tests/wire/test_listen_v1_media.py +++ b/tests/wire/test_listen_v1_media.py @@ -24,6 +24,7 @@ def test_listen_v1_media_transcribe_url() -> None: dictation=True, encoding="linear16", filler_words=True, + keyterm=["keyterm"], keywords=["keywords"], language="language", measurements=True, @@ -66,6 +67,7 @@ def test_listen_v1_media_transcribe_url() -> None: "dictation": "true", "encoding": "linear16", "filler_words": "true", + "keyterm": "keyterm", "keywords": "keywords", "language": "language", "measurements": "true", diff --git a/tests/wire/test_manage_v1_projects_billing_breakdown.py b/tests/wire/test_manage_v1_projects_billing_breakdown.py index 5871b466..4dafd061 100644 --- a/tests/wire/test_manage_v1_projects_billing_breakdown.py +++ b/tests/wire/test_manage_v1_projects_billing_breakdown.py @@ -13,6 +13,7 @@ def test_manage_v1_projects_billing_breakdown_list_() -> None: deployment="hosted", tag="tag1", line_item="streaming::nova-3", + grouping=["deployment", "line_item"], ) verify_request_count( test_id, @@ -25,6 +26,7 @@ def test_manage_v1_projects_billing_breakdown_list_() -> None: "deployment": "hosted", "tag": "tag1", "line_item": "streaming::nova-3", + "grouping": "deployment,line_item", }, 1, ) diff --git a/tests/wire/test_selfHosted_v1_distributionCredentials.py b/tests/wire/test_selfHosted_v1_distributionCredentials.py index 5bf736d2..414897a5 100644 --- a/tests/wire/test_selfHosted_v1_distributionCredentials.py +++ b/tests/wire/test_selfHosted_v1_distributionCredentials.py @@ -19,13 +19,14 @@ def test_selfHosted_v1_distributionCredentials_create() -> None: client = get_client(test_id) client.self_hosted.v1.distribution_credentials.create( project_id="123456-7890-1234-5678-901234", + scopes=["self-hosted:products"], provider="quay", ) verify_request_count( test_id, "POST", "/v1/projects/123456-7890-1234-5678-901234/self-hosted/distribution/credentials", - {"provider": "quay"}, + {"scopes": "self-hosted:products", "provider": "quay"}, 1, ) diff --git a/wiremock/wiremock-mappings.json b/wiremock/wiremock-mappings.json index 05e23bc8..630c6a96 100644 --- a/wiremock/wiremock-mappings.json +++ b/wiremock/wiremock-mappings.json @@ -1 +1 @@ -{"mappings": [{"id": "533b5d52-ab21-4763-aaae-87cf52f49aa5", "name": "List Agent Think Models - default", "request": {"urlPathTemplate": "/v1/agent/settings/think/models", "method": "GET"}, "response": {"status": 200, "body": "{\n \"models\": [\n {\n \"id\": \"gpt-5\",\n \"name\": \"name\",\n \"provider\": \"open_ai\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "533b5d52-ab21-4763-aaae-87cf52f49aa5", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}, "postServeActions": []}, {"id": "20e1029e-8bb9-4092-a809-b943e60822ef", "name": "Token-based Authentication - default", "request": {"urlPathTemplate": "/v1/auth/grant", "method": "POST"}, "response": {"status": 200, "body": "{\n \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U\",\n \"expires_in\": 30\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "20e1029e-8bb9-4092-a809-b943e60822ef", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "49d8d51a-7f01-4598-804f-b6f54cdc22da", "name": "Transcribe and analyze pre-recorded audio and video - default", "request": {"urlPathTemplate": "/v1/listen", "method": "POST", "queryParameters": {"callback": {"equalTo": "callback"}, "callback_method": {"equalTo": "POST"}, "extra": {"equalTo": "extra"}, "sentiment": {"equalTo": "true"}, "summarize": {"equalTo": "v2"}, "tag": {"equalTo": "tag"}, "topics": {"equalTo": "true"}, "custom_topic": {"equalTo": "custom_topic"}, "custom_topic_mode": {"equalTo": "extended"}, "intents": {"equalTo": "true"}, "custom_intent": {"equalTo": "custom_intent"}, "custom_intent_mode": {"equalTo": "extended"}, "detect_entities": {"equalTo": "true"}, "detect_language": {"equalTo": "true"}, "diarize": {"equalTo": "true"}, "dictation": {"equalTo": "true"}, "encoding": {"equalTo": "linear16"}, "filler_words": {"equalTo": "true"}, "keywords": {"equalTo": "keywords"}, "language": {"equalTo": "language"}, "measurements": {"equalTo": "true"}, "model": {"equalTo": "nova-3"}, "multichannel": {"equalTo": "true"}, "numerals": {"equalTo": "true"}, "paragraphs": {"equalTo": "true"}, "profanity_filter": {"equalTo": "true"}, "punctuate": {"equalTo": "true"}, "redact": {"equalTo": "redact"}, "replace": {"equalTo": "replace"}, "search": {"equalTo": "search"}, "smart_format": {"equalTo": "true"}, "utterances": {"equalTo": "true"}, "utt_split": {"equalTo": "1.1"}, "version": {"equalTo": "latest"}, "mip_opt_out": {"equalTo": "true"}}}, "response": {"status": 200, "body": "{\n \"metadata\": {\n \"request_id\": \"a847f427-4ad5-4d67-9b95-db801e58251c\",\n \"sha256\": \"154e291ecfa8be6ab8343560bcc109008fa7853eb5372533e8efdefc9b504c33\",\n \"created\": \"2024-05-12T18:57:13Z\",\n \"duration\": 25.933313,\n \"channels\": 1,\n \"models\": [\n \"30089e05-99d1-4376-b32e-c263170674af\"\n ],\n \"model_info\": {\n \"30089e05-99d1-4376-b32e-c263170674af\": {\n \"name\": \"2-general-nova\",\n \"version\": \"2024-01-09.29447\",\n \"arch\": \"nova-2\"\n }\n },\n \"summary_info\": {\n \"model_uuid\": \"67875a7f-c9c4-48a0-aa55-5bdb8a91c34a\",\n \"input_tokens\": 95,\n \"output_tokens\": 63\n },\n \"sentiment_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 105\n },\n \"topics_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 7\n },\n \"intents_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 4\n },\n \"tags\": [\n \"test\"\n ]\n },\n \"results\": {\n \"channels\": [\n {}\n ],\n \"utterances\": [\n {}\n ],\n \"summary\": {\n \"result\": \"success\",\n \"short\": \"Speaker 0 discusses the significance of the first all-female spacewalk with an all-female team, stating that it is a tribute to the skilled and qualified women who were denied opportunities in the past.\"\n },\n \"topics\": {\n \"results\": {\n \"topics\": {\n \"segments\": [\n {\n \"text\": \"And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 32,\n \"end_word\": 69,\n \"topics\": [\n {\n \"topic\": \"Spacewalk\",\n \"confidence_score\": 0.91581345\n }\n ]\n }\n ]\n }\n }\n },\n \"intents\": {\n \"results\": {\n \"intents\": {\n \"segments\": [\n {\n \"text\": \"If you found this valuable, you can subscribe to the show on spotify or your favorite podcast app.\",\n \"start_word\": 354,\n \"end_word\": 414,\n \"intents\": [\n {\n \"intent\": \"Encourage podcasting\",\n \"confidence_score\": 0.0038975573\n }\n ]\n }\n ]\n }\n }\n },\n \"sentiments\": {\n \"segments\": [\n {\n \"text\": \"Yeah. As as much as, um, it's worth celebrating, uh, the first, uh, spacewalk, um, with an all-female team, I think many of us are looking forward to it just being normal. And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 0,\n \"end_word\": 69,\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810546875\n }\n ],\n \"average\": {\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810185185185185\n }\n }\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "49d8d51a-7f01-4598-804f-b6f54cdc22da", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "0a0be61b-f024-4120-9c54-23bca3e07c93", "name": "List Models - default", "request": {"urlPathTemplate": "/v1/models", "method": "GET", "queryParameters": {"include_outdated": {"equalTo": "true"}}}, "response": {"status": 200, "body": "{\n \"stt\": [\n {\n \"name\": \"nova-3\",\n \"canonical_name\": \"nova-3\",\n \"architecture\": \"base\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2021-11-10.1\",\n \"uuid\": \"6b28e919-8427-4f32-9847-492e2efd7daf\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": true\n }\n ],\n \"tts\": [\n {\n \"name\": \"zeus\",\n \"canonical_name\": \"aura-2-zeus-en\",\n \"architecture\": \"aura-2\",\n \"languages\": [\n \"en\",\n \"en-US\"\n ],\n \"version\": \"2025-04-07.0\",\n \"uuid\": \"2baf189d-91ac-481d-b6d1-750888667b31\",\n \"metadata\": {\n \"accent\": \"American\",\n \"age\": \"Adult\",\n \"color\": \"#C58DFF\",\n \"image\": \"https://static.deepgram.com/examples/avatars/zeus.jpg\",\n \"sample\": \"https://static.deepgram.com/examples/Aura-2-zeus.wav\",\n \"tags\": [\n \"masculine\",\n \"deep\",\n \"trustworthy\",\n \"smooth\"\n ],\n \"use_cases\": [\n \"IVR\"\n ]\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "0a0be61b-f024-4120-9c54-23bca3e07c93", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}, "postServeActions": []}, {"id": "0f94d3ea-43b6-4a1a-bce4-ab05b85440ae", "name": "Get a specific Model - default", "request": {"urlPathTemplate": "/v1/models/{model_id}", "method": "GET", "pathParameters": {"model_id": {"equalTo": "af6e9977-99f6-4d8f-b6f5-dfdf6fb6e291"}}}, "response": {"status": 200, "body": "{\n \"name\": \"general\",\n \"canonical_name\": \"enhanced-general\",\n \"architecture\": \"polaris\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2022-05-18.1\",\n \"uuid\": \"c7226e9e-ae1c-4057-ae2a-a71a6b0dc588\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": false\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "0f94d3ea-43b6-4a1a-bce4-ab05b85440ae", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "d08cac56-bc4d-4756-8fd1-d508914334d5", "name": "List Projects - default", "request": {"urlPathTemplate": "/v1/projects", "method": "GET"}, "response": {"status": 200, "body": "{\n \"projects\": [\n {\n \"project_id\": \"project_id\",\n \"name\": \"name\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "d08cac56-bc4d-4756-8fd1-d508914334d5", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}, "postServeActions": []}, {"id": "6f0163a8-530c-4e25-bbe0-9ca86b9525dc", "name": "Get a Project - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"limit": {"equalTo": "1.1"}, "page": {"equalTo": "1.1"}}}, "response": {"status": 200, "body": "{\n \"project_id\": \"project_id\",\n \"mip_opt_out\": true,\n \"name\": \"name\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "6f0163a8-530c-4e25-bbe0-9ca86b9525dc", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "68918577-6401-4439-8533-356257ff7bcf", "name": "Delete a Project - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "68918577-6401-4439-8533-356257ff7bcf", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "659fc38b-3934-4e43-93bf-d331f547449e", "name": "Update a Project - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}", "method": "PATCH", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"Successfully updated project info.\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "659fc38b-3934-4e43-93bf-d331f547449e", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "43ae6622-ad2f-4c81-9bc9-a8bbe17ef9d8", "name": "Leave a Project - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/leave", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "43ae6622-ad2f-4c81-9bc9-a8bbe17ef9d8", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "032d9b1c-3b87-40fb-bfab-8c5be92a5d71", "name": "List Project Keys - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/keys", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"status": {"equalTo": "active"}}}, "response": {"status": 200, "body": "{\n \"api_keys\": [\n {\n \"member\": {\n \"member_id\": \"1000-2000-3000-4000\",\n \"email\": \"john@test.com\"\n },\n \"api_key\": {\n \"api_key_id\": \"1234567890abcdef1234567890abcdef\",\n \"comment\": \"A comment\",\n \"scopes\": [\n \"admin\"\n ],\n \"created\": \"2021-01-01T00:00:00Z\"\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "032d9b1c-3b87-40fb-bfab-8c5be92a5d71", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "0167c735-0b6f-4715-8df8-32300d4dae72", "name": "Create a Project Key - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/keys", "method": "POST", "pathParameters": {"project_id": {"equalTo": "project_id"}}}, "response": {"status": 200, "body": "{\n \"api_key_id\": \"api_key_id\",\n \"key\": \"key\",\n \"comment\": \"comment\",\n \"scopes\": [\n \"scopes\",\n \"scopes\"\n ],\n \"tags\": [\n \"tags\",\n \"tags\"\n ],\n \"expiration_date\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "0167c735-0b6f-4715-8df8-32300d4dae72", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "c9812dd3-f87e-4798-aec3-af0933330dd5", "name": "Get a Project Key - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/keys/{key_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "key_id": {"equalTo": "123456789012345678901234"}}}, "response": {"status": 200, "body": "{\n \"item\": {\n \"member\": {\n \"member_id\": \"1000-2000-3000-4000\",\n \"email\": \"john@test.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"api_key\": {\n \"api_key_id\": \"1000-2000-3000-4000\",\n \"comment\": \"A comment\",\n \"scopes\": [\n \"admin\"\n ],\n \"tags\": [\n \"prod\",\n \"west-region\"\n ],\n \"expiration_date\": \"2021-01-01T00:00:00Z\",\n \"created\": \"2021-01-01T00:00:00Z\"\n }\n }\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "c9812dd3-f87e-4798-aec3-af0933330dd5", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "3d2fbc7c-7bac-436f-a6ac-abe1b2c2caac", "name": "Delete a Project Key - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/keys/{key_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "key_id": {"equalTo": "123456789012345678901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "3d2fbc7c-7bac-436f-a6ac-abe1b2c2caac", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "91e103d5-72f7-463d-840d-310069e33de9", "name": "List Project Members - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/members", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"members\": [\n {\n \"member_id\": \"member_id\",\n \"email\": \"email\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "91e103d5-72f7-463d-840d-310069e33de9", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "515c6f7e-09c3-43ea-ad6c-65bc11d20f46", "name": "Delete a Project Member - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/members/{member_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "member_id": {"equalTo": "123456789012345678901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "515c6f7e-09c3-43ea-ad6c-65bc11d20f46", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "a920ad0e-2796-4361-ac16-ac83fb75e32a", "name": "List Project Models - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/models", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"include_outdated": {"equalTo": "true"}}}, "response": {"status": 200, "body": "{\n \"stt\": [\n {\n \"name\": \"nova-3\",\n \"canonical_name\": \"nova-3\",\n \"architecture\": \"base\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2021-11-10.1\",\n \"uuid\": \"6b28e919-8427-4f32-9847-492e2efd7daf\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": true\n }\n ],\n \"tts\": [\n {\n \"name\": \"zeus\",\n \"canonical_name\": \"aura-2-zeus-en\",\n \"architecture\": \"aura-2\",\n \"languages\": [\n \"en\",\n \"en-US\"\n ],\n \"version\": \"2025-04-07.0\",\n \"uuid\": \"2baf189d-91ac-481d-b6d1-750888667b31\",\n \"metadata\": {\n \"accent\": \"American\",\n \"age\": \"Adult\",\n \"color\": \"#C58DFF\",\n \"image\": \"https://static.deepgram.com/examples/avatars/zeus.jpg\",\n \"sample\": \"https://static.deepgram.com/examples/Aura-2-zeus.wav\",\n \"tags\": [\n \"masculine\",\n \"deep\",\n \"trustworthy\",\n \"smooth\"\n ],\n \"use_cases\": [\n \"IVR\"\n ]\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "a920ad0e-2796-4361-ac16-ac83fb75e32a", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "9f8c6bf2-ebee-4956-b39f-0291b9d64b6e", "name": "Get a Project Model - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/models/{model_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "model_id": {"equalTo": "af6e9977-99f6-4d8f-b6f5-dfdf6fb6e291"}}}, "response": {"status": 200, "body": "{\n \"name\": \"general\",\n \"canonical_name\": \"enhanced-general\",\n \"architecture\": \"polaris\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2022-05-18.1\",\n \"uuid\": \"c7226e9e-ae1c-4057-ae2a-a71a6b0dc588\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": false\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "9f8c6bf2-ebee-4956-b39f-0291b9d64b6e", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "d6a14959-05fa-4aec-9f0c-ba2a817c66e5", "name": "List Project Requests - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/requests", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "2024-01-15T09:30:00Z"}, "end": {"equalTo": "2024-01-15T09:30:00Z"}, "limit": {"equalTo": "1.1"}, "page": {"equalTo": "1.1"}, "accessor": {"equalTo": "12345678-1234-1234-1234-123456789012"}, "request_id": {"equalTo": "12345678-1234-1234-1234-123456789012"}, "deployment": {"equalTo": "hosted"}, "endpoint": {"equalTo": "listen"}, "method": {"equalTo": "sync"}, "status": {"equalTo": "succeeded"}}}, "response": {"status": 200, "body": "{\n \"page\": 1.1,\n \"limit\": 1.1,\n \"requests\": [\n {\n \"request_id\": \"request_id\",\n \"project_uuid\": \"project_uuid\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"path\": \"path\",\n \"api_key_id\": \"api_key_id\",\n \"response\": {\n \"key\": \"value\"\n },\n \"code\": 1.1,\n \"deployment\": \"deployment\",\n \"callback\": \"callback\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "d6a14959-05fa-4aec-9f0c-ba2a817c66e5", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "733e39aa-d3ef-4ea7-8062-af080c6288c4", "name": "Get a Project Request - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/requests/{request_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "request_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"request\": {\n \"request_id\": \"request_id\",\n \"project_uuid\": \"project_uuid\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"path\": \"path\",\n \"api_key_id\": \"api_key_id\",\n \"response\": {\n \"key\": \"value\"\n },\n \"code\": 1.1,\n \"deployment\": \"deployment\",\n \"callback\": \"callback\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "733e39aa-d3ef-4ea7-8062-af080c6288c4", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "6309dd55-c993-4ce1-b0b2-01a41c9f08d6", "name": "Get Project Usage - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/usage", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "start"}, "end": {"equalTo": "end"}, "accessor": {"equalTo": "12345678-1234-1234-1234-123456789012"}, "alternatives": {"equalTo": "true"}, "callback_method": {"equalTo": "true"}, "callback": {"equalTo": "true"}, "channels": {"equalTo": "true"}, "custom_intent_mode": {"equalTo": "true"}, "custom_intent": {"equalTo": "true"}, "custom_topic_mode": {"equalTo": "true"}, "custom_topic": {"equalTo": "true"}, "deployment": {"equalTo": "hosted"}, "detect_entities": {"equalTo": "true"}, "detect_language": {"equalTo": "true"}, "diarize": {"equalTo": "true"}, "dictation": {"equalTo": "true"}, "encoding": {"equalTo": "true"}, "endpoint": {"equalTo": "listen"}, "extra": {"equalTo": "true"}, "filler_words": {"equalTo": "true"}, "intents": {"equalTo": "true"}, "keyterm": {"equalTo": "true"}, "keywords": {"equalTo": "true"}, "language": {"equalTo": "true"}, "measurements": {"equalTo": "true"}, "method": {"equalTo": "sync"}, "model": {"equalTo": "6f548761-c9c0-429a-9315-11a1d28499c8"}, "multichannel": {"equalTo": "true"}, "numerals": {"equalTo": "true"}, "paragraphs": {"equalTo": "true"}, "profanity_filter": {"equalTo": "true"}, "punctuate": {"equalTo": "true"}, "redact": {"equalTo": "true"}, "replace": {"equalTo": "true"}, "sample_rate": {"equalTo": "true"}, "search": {"equalTo": "true"}, "sentiment": {"equalTo": "true"}, "smart_format": {"equalTo": "true"}, "summarize": {"equalTo": "true"}, "tag": {"equalTo": "tag1"}, "topics": {"equalTo": "true"}, "utt_split": {"equalTo": "true"}, "utterances": {"equalTo": "true"}, "version": {"equalTo": "true"}}}, "response": {"status": 200, "body": "{\n \"start\": \"2024-10-16\",\n \"end\": \"2024-10-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "6309dd55-c993-4ce1-b0b2-01a41c9f08d6", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "b132121b-4efe-42ad-a268-8acac35c189b", "name": "Get Project Balances - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/balances", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"balances\": [\n {\n \"balance_id\": \"balance_id\",\n \"amount\": 1.1,\n \"units\": \"units\",\n \"purchase_order_id\": \"purchase_order_id\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "b132121b-4efe-42ad-a268-8acac35c189b", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "4019c244-52d3-4d57-902c-af837631650a", "name": "Get a Project Balance - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/balances/{balance_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "balance_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"balance_id\": \"balance_id\",\n \"amount\": 1.1,\n \"units\": \"units\",\n \"purchase_order_id\": \"purchase_order_id\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "4019c244-52d3-4d57-902c-af837631650a", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "555b6751-587f-400c-bf5e-400e108ad6b4", "name": "Get Project Billing Breakdown - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/billing/breakdown", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "start"}, "end": {"equalTo": "end"}, "accessor": {"equalTo": "12345678-1234-1234-1234-123456789012"}, "deployment": {"equalTo": "hosted"}, "tag": {"equalTo": "tag1"}, "line_item": {"equalTo": "streaming::nova-3"}}}, "response": {"status": 200, "body": "{\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n },\n \"results\": [\n {\n \"dollars\": 0.25,\n \"grouping\": {\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-16\",\n \"accessor\": \"123456789012345678901234\",\n \"deployment\": \"hosted\",\n \"line_item\": \"streaming::nova-3\",\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ]\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "555b6751-587f-400c-bf5e-400e108ad6b4", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "a61ae38c-e41f-4726-a55c-88f2135897be", "name": "List Project Billing Fields - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/billing/fields", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "start"}, "end": {"equalTo": "end"}}}, "response": {"status": 200, "body": "{\n \"accessors\": [\n \"12345678-1234-1234-1234-123456789012\",\n \"87654321-4321-4321-4321-210987654321\"\n ],\n \"deployments\": [\n \"hosted\",\n \"self-hosted\"\n ],\n \"tags\": [\n \"dev\",\n \"production\"\n ],\n \"line_items\": {\n \"streaming::nova-3\": \"Nova - 3 (Stream)\",\n \"sync::aura-2\": \"Aura -2 (Sync)\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "a61ae38c-e41f-4726-a55c-88f2135897be", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "85b4373c-ba39-41b1-84e8-ae1ee6b180ca", "name": "List Project Purchases - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/purchases", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"limit": {"equalTo": "1.1"}}}, "response": {"status": 200, "body": "{\n \"orders\": [\n {\n \"order_id\": \"025e19ba-b6d9-4a04-9f99-4fe715aca5f1\",\n \"expiration\": \"2026-03-04T00:00:00Z\",\n \"created\": \"2023-02-21T21:13:40Z\",\n \"amount\": 150,\n \"units\": \"usd\",\n \"order_type\": \"promotional\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "85b4373c-ba39-41b1-84e8-ae1ee6b180ca", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "2dd14c67-ed4e-4d97-9636-0a712899deb8", "name": "List Project Invites - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/invites", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"invites\": [\n {\n \"email\": \"email\",\n \"scope\": \"scope\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "2dd14c67-ed4e-4d97-9636-0a712899deb8", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "7c109496-adfe-4e85-b007-a6f799ee95cb", "name": "Create a Project Invite - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/invites", "method": "POST", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "7c109496-adfe-4e85-b007-a6f799ee95cb", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "d6d268d0-d91e-4a65-80e0-339621173db9", "name": "Delete a Project Invite - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/invites/{email}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "email": {"equalTo": "john.doe@example.com"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "d6d268d0-d91e-4a65-80e0-339621173db9", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "1b965d71-c930-4a0b-90f3-2289f80f3634", "name": "List Project Member Scopes - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/members/{member_id}/scopes", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "member_id": {"equalTo": "123456789012345678901234"}}}, "response": {"status": 200, "body": "{\n \"scopes\": [\n \"scopes\"\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "1b965d71-c930-4a0b-90f3-2289f80f3634", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "eb2f5de2-b887-47be-abd5-7cb702aca55d", "name": "Update Project Member Scopes - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/members/{member_id}/scopes", "method": "PUT", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "member_id": {"equalTo": "123456789012345678901234"}}}, "response": {"status": 200, "body": "{\n \"message\": \"message\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "eb2f5de2-b887-47be-abd5-7cb702aca55d", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "9bdf51a4-1e10-41b8-8de2-2df650562db3", "name": "Get Project Usage Breakdown - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/usage/breakdown", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "start"}, "end": {"equalTo": "end"}, "grouping": {"equalTo": "accessor"}, "accessor": {"equalTo": "12345678-1234-1234-1234-123456789012"}, "alternatives": {"equalTo": "true"}, "callback_method": {"equalTo": "true"}, "callback": {"equalTo": "true"}, "channels": {"equalTo": "true"}, "custom_intent_mode": {"equalTo": "true"}, "custom_intent": {"equalTo": "true"}, "custom_topic_mode": {"equalTo": "true"}, "custom_topic": {"equalTo": "true"}, "deployment": {"equalTo": "hosted"}, "detect_entities": {"equalTo": "true"}, "detect_language": {"equalTo": "true"}, "diarize": {"equalTo": "true"}, "dictation": {"equalTo": "true"}, "encoding": {"equalTo": "true"}, "endpoint": {"equalTo": "listen"}, "extra": {"equalTo": "true"}, "filler_words": {"equalTo": "true"}, "intents": {"equalTo": "true"}, "keyterm": {"equalTo": "true"}, "keywords": {"equalTo": "true"}, "language": {"equalTo": "true"}, "measurements": {"equalTo": "true"}, "method": {"equalTo": "sync"}, "model": {"equalTo": "6f548761-c9c0-429a-9315-11a1d28499c8"}, "multichannel": {"equalTo": "true"}, "numerals": {"equalTo": "true"}, "paragraphs": {"equalTo": "true"}, "profanity_filter": {"equalTo": "true"}, "punctuate": {"equalTo": "true"}, "redact": {"equalTo": "true"}, "replace": {"equalTo": "true"}, "sample_rate": {"equalTo": "true"}, "search": {"equalTo": "true"}, "sentiment": {"equalTo": "true"}, "smart_format": {"equalTo": "true"}, "summarize": {"equalTo": "true"}, "tag": {"equalTo": "tag1"}, "topics": {"equalTo": "true"}, "utt_split": {"equalTo": "true"}, "utterances": {"equalTo": "true"}, "version": {"equalTo": "true"}}}, "response": {"status": 200, "body": "{\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n },\n \"results\": [\n {\n \"hours\": 1619.7242069444444,\n \"total_hours\": 1621.7395791666668,\n \"agent_hours\": 41.33564388888889,\n \"tokens_in\": 0,\n \"tokens_out\": 0,\n \"tts_characters\": 9158866,\n \"requests\": 373381,\n \"grouping\": {\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-16\",\n \"accessor\": \"123456789012345678901234\",\n \"endpoint\": \"listen\",\n \"feature_set\": \"punctuate\",\n \"models\": [\n \"Nova-2\"\n ],\n \"method\": \"async\",\n \"tags\": \"tag1\",\n \"deployment\": \"self-hosted\"\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "9bdf51a4-1e10-41b8-8de2-2df650562db3", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "bc9fcd54-076e-48dc-a2dd-d71a8bf8bd4e", "name": "List Project Usage Fields - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/usage/fields", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"start": {"equalTo": "start"}, "end": {"equalTo": "end"}}}, "response": {"status": 200, "body": "{\n \"tags\": [\n \"tag=dev\",\n \"tag=production\"\n ],\n \"models\": [\n {\n \"name\": \"2-medical-nova\",\n \"language\": \"en-MY\",\n \"version\": \"2024-05-31.13574\",\n \"model_id\": \"1234567890-12345-67890\"\n }\n ],\n \"processing_methods\": [\n \"sync\",\n \"streaming\"\n ],\n \"features\": [\n \"alternatives\",\n \"detect_entities\",\n \"detect_language\"\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "bc9fcd54-076e-48dc-a2dd-d71a8bf8bd4e", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "b5ac3651-d3b7-4cd7-b0b8-e1a917a16f3b", "name": "Analyze text content - default", "request": {"urlPathTemplate": "/v1/read", "method": "POST", "queryParameters": {"callback": {"equalTo": "callback"}, "callback_method": {"equalTo": "POST"}, "sentiment": {"equalTo": "true"}, "summarize": {"equalTo": "v2"}, "tag": {"equalTo": "tag"}, "topics": {"equalTo": "true"}, "custom_topic": {"equalTo": "custom_topic"}, "custom_topic_mode": {"equalTo": "extended"}, "intents": {"equalTo": "true"}, "custom_intent": {"equalTo": "custom_intent"}, "custom_intent_mode": {"equalTo": "extended"}, "language": {"equalTo": "language"}}}, "response": {"status": 200, "body": "{\n \"metadata\": {\n \"metadata\": {\n \"request_id\": \"d04af392-db11-4c1d-83e1-20e34f0b8999\",\n \"created\": \"2024-11-18T23:47:44Z\",\n \"language\": \"en\"\n }\n },\n \"results\": {\n \"summary\": {\n \"results\": {\n \"summary\": {\n \"text\": \"The summary of the text submitted.\"\n }\n }\n },\n \"topics\": {\n \"results\": {\n \"topics\": {\n \"segments\": [\n {\n \"text\": \"And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 32,\n \"end_word\": 69,\n \"topics\": [\n {\n \"topic\": \"Spacewalk\",\n \"confidence_score\": 0.91581345\n }\n ]\n }\n ]\n }\n }\n },\n \"intents\": {\n \"results\": {\n \"intents\": {\n \"segments\": [\n {\n \"text\": \"If you found this valuable, you can subscribe to the show on spotify or your favorite podcast app.\",\n \"start_word\": 354,\n \"end_word\": 414,\n \"intents\": [\n {\n \"intent\": \"Encourage podcasting\",\n \"confidence_score\": 0.0038975573\n }\n ]\n }\n ]\n }\n }\n },\n \"sentiments\": {\n \"segments\": [\n {\n \"text\": \"Yeah. As as much as, um, it's worth celebrating, uh, the first, uh, spacewalk, um, with an all-female team, I think many of us are looking forward to it just being normal. And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 0,\n \"end_word\": 69,\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810546875\n }\n ],\n \"average\": {\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810185185185185\n }\n }\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "b5ac3651-d3b7-4cd7-b0b8-e1a917a16f3b", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "4110cb96-50e2-4fe6-b8ae-5d69120cee89", "name": "List Project Self-Hosted Distribution Credentials - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/self-hosted/distribution/credentials", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"distribution_credentials\": [\n {\n \"member\": {\n \"member_id\": \"3376abcd-8e5e-49d3-92d4-876d3a4f0363\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"8b36cfd0-472f-4a21-833f-2d6343c3a2f3\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "4110cb96-50e2-4fe6-b8ae-5d69120cee89", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "9c12eea9-6ba6-4d70-bb14-a2742cebc114", "name": "Create a Project Self-Hosted Distribution Credential - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/self-hosted/distribution/credentials", "method": "POST", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}, "queryParameters": {"provider": {"equalTo": "quay"}}}, "response": {"status": 200, "body": "{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "9c12eea9-6ba6-4d70-bb14-a2742cebc114", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "a47cd13f-2314-4190-b2c7-20436ccffbd2", "name": "Get a Project Self-Hosted Distribution Credential - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/self-hosted/distribution/credentials/{distribution_credentials_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "distribution_credentials_id": {"equalTo": "8b36cfd0-472f-4a21-833f-2d6343c3a2f3"}}}, "response": {"status": 200, "body": "{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "a47cd13f-2314-4190-b2c7-20436ccffbd2", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "8bd46091-0e57-4b3d-9485-a86e6f1eaf17", "name": "Delete a Project Self-Hosted Distribution Credential - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/self-hosted/distribution/credentials/{distribution_credentials_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "distribution_credentials_id": {"equalTo": "8b36cfd0-472f-4a21-833f-2d6343c3a2f3"}}}, "response": {"status": 200, "body": "{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "8bd46091-0e57-4b3d-9485-a86e6f1eaf17", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "b06ec977-02ed-41e2-8fff-2bc45cd2166b", "name": "Text to Speech transformation - default", "request": {"urlPathTemplate": "/v1/speak", "method": "POST"}, "response": {"status": 200, "body": "{\n \"key\": \"value\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "b06ec977-02ed-41e2-8fff-2bc45cd2166b", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "61883f62-09ec-4be9-b477-13a89b9677cf", "name": "List Agent Configurations - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agents", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"agents\": [\n {\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "61883f62-09ec-4be9-b477-13a89b9677cf", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "a43cdbee-2b2f-47fb-8220-75d337cb6d3a", "name": "Create an Agent Configuration - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agents", "method": "POST", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n }\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "a43cdbee-2b2f-47fb-8220-75d337cb6d3a", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "2575dd3c-b1c8-4007-8f87-4e32073a9dcf", "name": "Get an Agent Configuration - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agents/{agent_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "agent_id": {"equalTo": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}}, "response": {"status": 200, "body": "{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "2575dd3c-b1c8-4007-8f87-4e32073a9dcf", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "3b52c271-0e44-4148-b726-6f5ca8c91d26", "name": "Update Agent Metadata - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agents/{agent_id}", "method": "PUT", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "agent_id": {"equalTo": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}}, "response": {"status": 200, "body": "{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "3b52c271-0e44-4148-b726-6f5ca8c91d26", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "e839386d-beaa-4a7a-a478-ed9d9ab1b63e", "name": "Delete an Agent Configuration - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agents/{agent_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "agent_id": {"equalTo": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}}, "response": {"status": 200, "body": "{\n \"key\": \"value\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "e839386d-beaa-4a7a-a478-ed9d9ab1b63e", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "bb85071e-3933-4cd3-8fd7-d35eb4c992c5", "name": "List Agent Variables - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agent-variables", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}}}, "response": {"status": 200, "body": "{\n \"variables\": [\n {\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "bb85071e-3933-4cd3-8fd7-d35eb4c992c5", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "c5016e4b-f863-4dc7-972f-c577ac7fdc47", "name": "Create an Agent Variable - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agent-variables", "method": "POST", "pathParameters": {"project_id": {"equalTo": "project_id"}}}, "response": {"status": 200, "body": "{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "c5016e4b-f863-4dc7-972f-c577ac7fdc47", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "5bb4b688-8475-4911-8ad5-725b7d5338e3", "name": "Get an Agent Variable - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agent-variables/{variable_id}", "method": "GET", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "variable_id": {"equalTo": "v1a2b3c4-d5e6-7890-abcd-ef1234567890"}}}, "response": {"status": 200, "body": "{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "5bb4b688-8475-4911-8ad5-725b7d5338e3", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "2e2c7061-7573-423f-a907-2a15dd9f3307", "name": "Delete an Agent Variable - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agent-variables/{variable_id}", "method": "DELETE", "pathParameters": {"project_id": {"equalTo": "123456-7890-1234-5678-901234"}, "variable_id": {"equalTo": "v1a2b3c4-d5e6-7890-abcd-ef1234567890"}}}, "response": {"status": 200, "body": "{\n \"key\": \"value\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "2e2c7061-7573-423f-a907-2a15dd9f3307", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}, {"id": "33765621-bc60-4ef4-b295-4b276aeb871f", "name": "Update an Agent Variable - default", "request": {"urlPathTemplate": "/v1/projects/{project_id}/agent-variables/{variable_id}", "method": "PATCH", "pathParameters": {"project_id": {"equalTo": "project_id"}, "variable_id": {"equalTo": "variable_id"}}}, "response": {"status": 200, "body": "{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}", "headers": {"Content-Type": "application/json"}}, "uuid": "33765621-bc60-4ef4-b295-4b276aeb871f", "persistent": true, "priority": 3, "metadata": {"mocklab": {"created": {"at": "2020-01-01T00:00:00.000Z", "via": "SYSTEM"}}}}], "meta": {"total": 49}} \ No newline at end of file +{"mappings":[{"id":"533b5d52-ab21-4763-aaae-87cf52f49aa5","name":"List Agent Think Models - default","request":{"urlPathTemplate":"/v1/agent/settings/think/models","method":"GET"},"response":{"status":200,"body":"{\n \"models\": [\n {\n \"id\": \"gpt-5\",\n \"name\": \"name\",\n \"provider\": \"open_ai\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"533b5d52-ab21-4763-aaae-87cf52f49aa5","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}},"postServeActions":[]},{"id":"20e1029e-8bb9-4092-a809-b943e60822ef","name":"Token-based Authentication - default","request":{"urlPathTemplate":"/v1/auth/grant","method":"POST"},"response":{"status":200,"body":"{\n \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U\",\n \"expires_in\": 30\n}","headers":{"Content-Type":"application/json"}},"uuid":"20e1029e-8bb9-4092-a809-b943e60822ef","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"49d8d51a-7f01-4598-804f-b6f54cdc22da","name":"Transcribe and analyze pre-recorded audio and video - default","request":{"urlPathTemplate":"/v1/listen","method":"POST","queryParameters":{"callback":{"equalTo":"callback"},"callback_method":{"equalTo":"POST"},"extra":{"equalTo":"extra"},"sentiment":{"equalTo":"true"},"summarize":{"equalTo":"v2"},"tag":{"equalTo":"tag"},"topics":{"equalTo":"true"},"custom_topic":{"equalTo":"custom_topic"},"custom_topic_mode":{"equalTo":"extended"},"intents":{"equalTo":"true"},"custom_intent":{"equalTo":"custom_intent"},"custom_intent_mode":{"equalTo":"extended"},"detect_entities":{"equalTo":"true"},"detect_language":{"equalTo":"true"},"diarize":{"equalTo":"true"},"dictation":{"equalTo":"true"},"encoding":{"equalTo":"linear16"},"filler_words":{"equalTo":"true"},"keywords":{"equalTo":"keywords"},"language":{"equalTo":"language"},"measurements":{"equalTo":"true"},"model":{"equalTo":"nova-3"},"multichannel":{"equalTo":"true"},"numerals":{"equalTo":"true"},"paragraphs":{"equalTo":"true"},"profanity_filter":{"equalTo":"true"},"punctuate":{"equalTo":"true"},"redact":{"equalTo":"redact"},"replace":{"equalTo":"replace"},"search":{"equalTo":"search"},"smart_format":{"equalTo":"true"},"utterances":{"equalTo":"true"},"utt_split":{"equalTo":"1.1"},"version":{"equalTo":"latest"},"mip_opt_out":{"equalTo":"true"}}},"response":{"status":200,"body":"{\n \"metadata\": {\n \"request_id\": \"a847f427-4ad5-4d67-9b95-db801e58251c\",\n \"sha256\": \"154e291ecfa8be6ab8343560bcc109008fa7853eb5372533e8efdefc9b504c33\",\n \"created\": \"2024-05-12T18:57:13Z\",\n \"duration\": 25.933313,\n \"channels\": 1,\n \"models\": [\n \"30089e05-99d1-4376-b32e-c263170674af\"\n ],\n \"model_info\": {\n \"30089e05-99d1-4376-b32e-c263170674af\": {\n \"name\": \"2-general-nova\",\n \"version\": \"2024-01-09.29447\",\n \"arch\": \"nova-2\"\n }\n },\n \"summary_info\": {\n \"model_uuid\": \"67875a7f-c9c4-48a0-aa55-5bdb8a91c34a\",\n \"input_tokens\": 95,\n \"output_tokens\": 63\n },\n \"sentiment_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 105\n },\n \"topics_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 7\n },\n \"intents_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 4\n },\n \"tags\": [\n \"test\"\n ]\n },\n \"results\": {\n \"channels\": [\n {}\n ],\n \"utterances\": [\n {}\n ],\n \"summary\": {\n \"result\": \"success\",\n \"short\": \"Speaker 0 discusses the significance of the first all-female spacewalk with an all-female team, stating that it is a tribute to the skilled and qualified women who were denied opportunities in the past.\"\n },\n \"topics\": {\n \"results\": {\n \"topics\": {\n \"segments\": [\n {\n \"text\": \"And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 32,\n \"end_word\": 69,\n \"topics\": [\n {\n \"topic\": \"Spacewalk\",\n \"confidence_score\": 0.91581345\n }\n ]\n }\n ]\n }\n }\n },\n \"intents\": {\n \"results\": {\n \"intents\": {\n \"segments\": [\n {\n \"text\": \"If you found this valuable, you can subscribe to the show on spotify or your favorite podcast app.\",\n \"start_word\": 354,\n \"end_word\": 414,\n \"intents\": [\n {\n \"intent\": \"Encourage podcasting\",\n \"confidence_score\": 0.0038975573\n }\n ]\n }\n ]\n }\n }\n },\n \"sentiments\": {\n \"segments\": [\n {\n \"text\": \"Yeah. As as much as, um, it's worth celebrating, uh, the first, uh, spacewalk, um, with an all-female team, I think many of us are looking forward to it just being normal. And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 0,\n \"end_word\": 69,\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810546875\n }\n ],\n \"average\": {\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810185185185185\n }\n }\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"49d8d51a-7f01-4598-804f-b6f54cdc22da","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"0a0be61b-f024-4120-9c54-23bca3e07c93","name":"List Models - default","request":{"urlPathTemplate":"/v1/models","method":"GET","queryParameters":{"include_outdated":{"equalTo":"true"}}},"response":{"status":200,"body":"{\n \"stt\": [\n {\n \"name\": \"nova-3\",\n \"canonical_name\": \"nova-3\",\n \"architecture\": \"base\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2021-11-10.1\",\n \"uuid\": \"6b28e919-8427-4f32-9847-492e2efd7daf\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": true\n }\n ],\n \"tts\": [\n {\n \"name\": \"zeus\",\n \"canonical_name\": \"aura-2-zeus-en\",\n \"architecture\": \"aura-2\",\n \"languages\": [\n \"en\",\n \"en-US\"\n ],\n \"version\": \"2025-04-07.0\",\n \"uuid\": \"2baf189d-91ac-481d-b6d1-750888667b31\",\n \"metadata\": {\n \"accent\": \"American\",\n \"age\": \"Adult\",\n \"color\": \"#C58DFF\",\n \"image\": \"https://static.deepgram.com/examples/avatars/zeus.jpg\",\n \"sample\": \"https://static.deepgram.com/examples/Aura-2-zeus.wav\",\n \"tags\": [\n \"masculine\",\n \"deep\",\n \"trustworthy\",\n \"smooth\"\n ],\n \"use_cases\": [\n \"IVR\"\n ]\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"0a0be61b-f024-4120-9c54-23bca3e07c93","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}},"postServeActions":[]},{"id":"0f94d3ea-43b6-4a1a-bce4-ab05b85440ae","name":"Get a specific Model - default","request":{"urlPathTemplate":"/v1/models/{model_id}","method":"GET","pathParameters":{"model_id":{"equalTo":"af6e9977-99f6-4d8f-b6f5-dfdf6fb6e291"}}},"response":{"status":200,"body":"{\n \"name\": \"general\",\n \"canonical_name\": \"enhanced-general\",\n \"architecture\": \"polaris\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2022-05-18.1\",\n \"uuid\": \"c7226e9e-ae1c-4057-ae2a-a71a6b0dc588\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": false\n}","headers":{"Content-Type":"application/json"}},"uuid":"0f94d3ea-43b6-4a1a-bce4-ab05b85440ae","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"d08cac56-bc4d-4756-8fd1-d508914334d5","name":"List Projects - default","request":{"urlPathTemplate":"/v1/projects","method":"GET"},"response":{"status":200,"body":"{\n \"projects\": [\n {\n \"project_id\": \"project_id\",\n \"name\": \"name\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"d08cac56-bc4d-4756-8fd1-d508914334d5","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}},"postServeActions":[]},{"id":"6f0163a8-530c-4e25-bbe0-9ca86b9525dc","name":"Get a Project - default","request":{"urlPathTemplate":"/v1/projects/{project_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"limit":{"equalTo":"1.1"},"page":{"equalTo":"1.1"}}},"response":{"status":200,"body":"{\n \"project_id\": \"project_id\",\n \"mip_opt_out\": true,\n \"name\": \"name\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"6f0163a8-530c-4e25-bbe0-9ca86b9525dc","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"68918577-6401-4439-8533-356257ff7bcf","name":"Delete a Project - default","request":{"urlPathTemplate":"/v1/projects/{project_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"68918577-6401-4439-8533-356257ff7bcf","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"659fc38b-3934-4e43-93bf-d331f547449e","name":"Update a Project - default","request":{"urlPathTemplate":"/v1/projects/{project_id}","method":"PATCH","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"message\": \"Successfully updated project info.\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"659fc38b-3934-4e43-93bf-d331f547449e","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"43ae6622-ad2f-4c81-9bc9-a8bbe17ef9d8","name":"Leave a Project - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/leave","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"43ae6622-ad2f-4c81-9bc9-a8bbe17ef9d8","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"032d9b1c-3b87-40fb-bfab-8c5be92a5d71","name":"List Project Keys - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/keys","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"status":{"equalTo":"active"}}},"response":{"status":200,"body":"{\n \"api_keys\": [\n {\n \"member\": {\n \"member_id\": \"1000-2000-3000-4000\",\n \"email\": \"john@test.com\"\n },\n \"api_key\": {\n \"api_key_id\": \"1234567890abcdef1234567890abcdef\",\n \"comment\": \"A comment\",\n \"scopes\": [\n \"admin\"\n ],\n \"created\": \"2021-01-01T00:00:00Z\"\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"032d9b1c-3b87-40fb-bfab-8c5be92a5d71","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"0167c735-0b6f-4715-8df8-32300d4dae72","name":"Create a Project Key - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/keys","method":"POST","pathParameters":{"project_id":{"equalTo":"project_id"}}},"response":{"status":200,"body":"{\n \"api_key_id\": \"api_key_id\",\n \"key\": \"key\",\n \"comment\": \"comment\",\n \"scopes\": [\n \"scopes\",\n \"scopes\"\n ],\n \"tags\": [\n \"tags\",\n \"tags\"\n ],\n \"expiration_date\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"0167c735-0b6f-4715-8df8-32300d4dae72","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"c9812dd3-f87e-4798-aec3-af0933330dd5","name":"Get a Project Key - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/keys/{key_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"key_id":{"equalTo":"123456789012345678901234"}}},"response":{"status":200,"body":"{\n \"item\": {\n \"member\": {\n \"member_id\": \"1000-2000-3000-4000\",\n \"email\": \"john@test.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"api_key\": {\n \"api_key_id\": \"1000-2000-3000-4000\",\n \"comment\": \"A comment\",\n \"scopes\": [\n \"admin\"\n ],\n \"tags\": [\n \"prod\",\n \"west-region\"\n ],\n \"expiration_date\": \"2021-01-01T00:00:00Z\",\n \"created\": \"2021-01-01T00:00:00Z\"\n }\n }\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"c9812dd3-f87e-4798-aec3-af0933330dd5","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"3d2fbc7c-7bac-436f-a6ac-abe1b2c2caac","name":"Delete a Project Key - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/keys/{key_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"key_id":{"equalTo":"123456789012345678901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"3d2fbc7c-7bac-436f-a6ac-abe1b2c2caac","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"91e103d5-72f7-463d-840d-310069e33de9","name":"List Project Members - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/members","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"members\": [\n {\n \"member_id\": \"member_id\",\n \"email\": \"email\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"91e103d5-72f7-463d-840d-310069e33de9","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"515c6f7e-09c3-43ea-ad6c-65bc11d20f46","name":"Delete a Project Member - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/members/{member_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"member_id":{"equalTo":"123456789012345678901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"515c6f7e-09c3-43ea-ad6c-65bc11d20f46","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"a920ad0e-2796-4361-ac16-ac83fb75e32a","name":"List Project Models - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/models","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"include_outdated":{"equalTo":"true"}}},"response":{"status":200,"body":"{\n \"stt\": [\n {\n \"name\": \"nova-3\",\n \"canonical_name\": \"nova-3\",\n \"architecture\": \"base\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2021-11-10.1\",\n \"uuid\": \"6b28e919-8427-4f32-9847-492e2efd7daf\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": true\n }\n ],\n \"tts\": [\n {\n \"name\": \"zeus\",\n \"canonical_name\": \"aura-2-zeus-en\",\n \"architecture\": \"aura-2\",\n \"languages\": [\n \"en\",\n \"en-US\"\n ],\n \"version\": \"2025-04-07.0\",\n \"uuid\": \"2baf189d-91ac-481d-b6d1-750888667b31\",\n \"metadata\": {\n \"accent\": \"American\",\n \"age\": \"Adult\",\n \"color\": \"#C58DFF\",\n \"image\": \"https://static.deepgram.com/examples/avatars/zeus.jpg\",\n \"sample\": \"https://static.deepgram.com/examples/Aura-2-zeus.wav\",\n \"tags\": [\n \"masculine\",\n \"deep\",\n \"trustworthy\",\n \"smooth\"\n ],\n \"use_cases\": [\n \"IVR\"\n ]\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"a920ad0e-2796-4361-ac16-ac83fb75e32a","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"9f8c6bf2-ebee-4956-b39f-0291b9d64b6e","name":"Get a Project Model - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/models/{model_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"model_id":{"equalTo":"af6e9977-99f6-4d8f-b6f5-dfdf6fb6e291"}}},"response":{"status":200,"body":"{\n \"name\": \"general\",\n \"canonical_name\": \"enhanced-general\",\n \"architecture\": \"polaris\",\n \"languages\": [\n \"en\",\n \"en-us\"\n ],\n \"version\": \"2022-05-18.1\",\n \"uuid\": \"c7226e9e-ae1c-4057-ae2a-a71a6b0dc588\",\n \"batch\": true,\n \"streaming\": true,\n \"formatted_output\": false\n}","headers":{"Content-Type":"application/json"}},"uuid":"9f8c6bf2-ebee-4956-b39f-0291b9d64b6e","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"d6a14959-05fa-4aec-9f0c-ba2a817c66e5","name":"List Project Requests - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/requests","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"2024-01-15T09:30:00.000Z"},"end":{"equalTo":"2024-01-15T09:30:00.000Z"},"limit":{"equalTo":"1.1"},"page":{"equalTo":"1.1"},"accessor":{"equalTo":"12345678-1234-1234-1234-123456789012"},"request_id":{"equalTo":"12345678-1234-1234-1234-123456789012"},"deployment":{"equalTo":"hosted"},"endpoint":{"equalTo":"listen"},"method":{"equalTo":"sync"},"status":{"equalTo":"succeeded"}}},"response":{"status":200,"body":"{\n \"page\": 1.1,\n \"limit\": 1.1,\n \"requests\": [\n {\n \"request_id\": \"request_id\",\n \"project_uuid\": \"project_uuid\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"path\": \"path\",\n \"api_key_id\": \"api_key_id\",\n \"response\": {\n \"key\": \"value\"\n },\n \"code\": 1.1,\n \"deployment\": \"deployment\",\n \"callback\": \"callback\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"d6a14959-05fa-4aec-9f0c-ba2a817c66e5","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"733e39aa-d3ef-4ea7-8062-af080c6288c4","name":"Get a Project Request - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/requests/{request_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"request_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"request\": {\n \"request_id\": \"request_id\",\n \"project_uuid\": \"project_uuid\",\n \"created\": \"2024-01-15T09:30:00Z\",\n \"path\": \"path\",\n \"api_key_id\": \"api_key_id\",\n \"response\": {\n \"key\": \"value\"\n },\n \"code\": 1.1,\n \"deployment\": \"deployment\",\n \"callback\": \"callback\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"733e39aa-d3ef-4ea7-8062-af080c6288c4","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"6309dd55-c993-4ce1-b0b2-01a41c9f08d6","name":"Get Project Usage - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/usage","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"start"},"end":{"equalTo":"end"},"accessor":{"equalTo":"12345678-1234-1234-1234-123456789012"},"alternatives":{"equalTo":"true"},"callback_method":{"equalTo":"true"},"callback":{"equalTo":"true"},"channels":{"equalTo":"true"},"custom_intent_mode":{"equalTo":"true"},"custom_intent":{"equalTo":"true"},"custom_topic_mode":{"equalTo":"true"},"custom_topic":{"equalTo":"true"},"deployment":{"equalTo":"hosted"},"detect_entities":{"equalTo":"true"},"detect_language":{"equalTo":"true"},"diarize":{"equalTo":"true"},"dictation":{"equalTo":"true"},"encoding":{"equalTo":"true"},"endpoint":{"equalTo":"listen"},"extra":{"equalTo":"true"},"filler_words":{"equalTo":"true"},"intents":{"equalTo":"true"},"keyterm":{"equalTo":"true"},"keywords":{"equalTo":"true"},"language":{"equalTo":"true"},"measurements":{"equalTo":"true"},"method":{"equalTo":"sync"},"model":{"equalTo":"6f548761-c9c0-429a-9315-11a1d28499c8"},"multichannel":{"equalTo":"true"},"numerals":{"equalTo":"true"},"paragraphs":{"equalTo":"true"},"profanity_filter":{"equalTo":"true"},"punctuate":{"equalTo":"true"},"redact":{"equalTo":"true"},"replace":{"equalTo":"true"},"sample_rate":{"equalTo":"true"},"search":{"equalTo":"true"},"sentiment":{"equalTo":"true"},"smart_format":{"equalTo":"true"},"summarize":{"equalTo":"true"},"tag":{"equalTo":"tag1"},"topics":{"equalTo":"true"},"utt_split":{"equalTo":"true"},"utterances":{"equalTo":"true"},"version":{"equalTo":"true"}}},"response":{"status":200,"body":"{\n \"start\": \"2024-10-16\",\n \"end\": \"2024-10-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"6309dd55-c993-4ce1-b0b2-01a41c9f08d6","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"b132121b-4efe-42ad-a268-8acac35c189b","name":"Get Project Balances - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/balances","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"balances\": [\n {\n \"balance_id\": \"balance_id\",\n \"amount\": 1.1,\n \"units\": \"units\",\n \"purchase_order_id\": \"purchase_order_id\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"b132121b-4efe-42ad-a268-8acac35c189b","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"4019c244-52d3-4d57-902c-af837631650a","name":"Get a Project Balance - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/balances/{balance_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"balance_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"balance_id\": \"balance_id\",\n \"amount\": 1.1,\n \"units\": \"units\",\n \"purchase_order_id\": \"purchase_order_id\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"4019c244-52d3-4d57-902c-af837631650a","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"555b6751-587f-400c-bf5e-400e108ad6b4","name":"Get Project Billing Breakdown - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/billing/breakdown","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"start"},"end":{"equalTo":"end"},"accessor":{"equalTo":"12345678-1234-1234-1234-123456789012"},"deployment":{"equalTo":"hosted"},"tag":{"equalTo":"tag1"},"line_item":{"equalTo":"streaming::nova-3"}}},"response":{"status":200,"body":"{\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n },\n \"results\": [\n {\n \"dollars\": 0.25,\n \"grouping\": {\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-16\",\n \"accessor\": \"123456789012345678901234\",\n \"deployment\": \"hosted\",\n \"line_item\": \"streaming::nova-3\",\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ]\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"555b6751-587f-400c-bf5e-400e108ad6b4","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"a61ae38c-e41f-4726-a55c-88f2135897be","name":"List Project Billing Fields - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/billing/fields","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"start"},"end":{"equalTo":"end"}}},"response":{"status":200,"body":"{\n \"accessors\": [\n \"12345678-1234-1234-1234-123456789012\",\n \"87654321-4321-4321-4321-210987654321\"\n ],\n \"deployments\": [\n \"hosted\",\n \"self-hosted\"\n ],\n \"tags\": [\n \"dev\",\n \"production\"\n ],\n \"line_items\": {\n \"streaming::nova-3\": \"Nova - 3 (Stream)\",\n \"sync::aura-2\": \"Aura -2 (Sync)\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"a61ae38c-e41f-4726-a55c-88f2135897be","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"85b4373c-ba39-41b1-84e8-ae1ee6b180ca","name":"List Project Purchases - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/purchases","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"limit":{"equalTo":"1.1"}}},"response":{"status":200,"body":"{\n \"orders\": [\n {\n \"order_id\": \"025e19ba-b6d9-4a04-9f99-4fe715aca5f1\",\n \"expiration\": \"2026-03-04T00:00:00Z\",\n \"created\": \"2023-02-21T21:13:40Z\",\n \"amount\": 150,\n \"units\": \"usd\",\n \"order_type\": \"promotional\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"85b4373c-ba39-41b1-84e8-ae1ee6b180ca","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"2dd14c67-ed4e-4d97-9636-0a712899deb8","name":"List Project Invites - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/invites","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"invites\": [\n {\n \"email\": \"email\",\n \"scope\": \"scope\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"2dd14c67-ed4e-4d97-9636-0a712899deb8","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"7c109496-adfe-4e85-b007-a6f799ee95cb","name":"Create a Project Invite - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/invites","method":"POST","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"7c109496-adfe-4e85-b007-a6f799ee95cb","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"d6d268d0-d91e-4a65-80e0-339621173db9","name":"Delete a Project Invite - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/invites/{email}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"email":{"equalTo":"john.doe@example.com"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"d6d268d0-d91e-4a65-80e0-339621173db9","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"1b965d71-c930-4a0b-90f3-2289f80f3634","name":"List Project Member Scopes - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/members/{member_id}/scopes","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"member_id":{"equalTo":"123456789012345678901234"}}},"response":{"status":200,"body":"{\n \"scopes\": [\n \"scopes\"\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"1b965d71-c930-4a0b-90f3-2289f80f3634","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"eb2f5de2-b887-47be-abd5-7cb702aca55d","name":"Update Project Member Scopes - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/members/{member_id}/scopes","method":"PUT","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"member_id":{"equalTo":"123456789012345678901234"}}},"response":{"status":200,"body":"{\n \"message\": \"message\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"eb2f5de2-b887-47be-abd5-7cb702aca55d","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"9bdf51a4-1e10-41b8-8de2-2df650562db3","name":"Get Project Usage Breakdown - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/usage/breakdown","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"start"},"end":{"equalTo":"end"},"grouping":{"equalTo":"accessor"},"accessor":{"equalTo":"12345678-1234-1234-1234-123456789012"},"alternatives":{"equalTo":"true"},"callback_method":{"equalTo":"true"},"callback":{"equalTo":"true"},"channels":{"equalTo":"true"},"custom_intent_mode":{"equalTo":"true"},"custom_intent":{"equalTo":"true"},"custom_topic_mode":{"equalTo":"true"},"custom_topic":{"equalTo":"true"},"deployment":{"equalTo":"hosted"},"detect_entities":{"equalTo":"true"},"detect_language":{"equalTo":"true"},"diarize":{"equalTo":"true"},"dictation":{"equalTo":"true"},"encoding":{"equalTo":"true"},"endpoint":{"equalTo":"listen"},"extra":{"equalTo":"true"},"filler_words":{"equalTo":"true"},"intents":{"equalTo":"true"},"keyterm":{"equalTo":"true"},"keywords":{"equalTo":"true"},"language":{"equalTo":"true"},"measurements":{"equalTo":"true"},"method":{"equalTo":"sync"},"model":{"equalTo":"6f548761-c9c0-429a-9315-11a1d28499c8"},"multichannel":{"equalTo":"true"},"numerals":{"equalTo":"true"},"paragraphs":{"equalTo":"true"},"profanity_filter":{"equalTo":"true"},"punctuate":{"equalTo":"true"},"redact":{"equalTo":"true"},"replace":{"equalTo":"true"},"sample_rate":{"equalTo":"true"},"search":{"equalTo":"true"},"sentiment":{"equalTo":"true"},"smart_format":{"equalTo":"true"},"summarize":{"equalTo":"true"},"tag":{"equalTo":"tag1"},"topics":{"equalTo":"true"},"utt_split":{"equalTo":"true"},"utterances":{"equalTo":"true"},"version":{"equalTo":"true"}}},"response":{"status":200,"body":"{\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-23\",\n \"resolution\": {\n \"units\": \"day\",\n \"amount\": 1\n },\n \"results\": [\n {\n \"hours\": 1619.7242069444444,\n \"total_hours\": 1621.7395791666668,\n \"agent_hours\": 41.33564388888889,\n \"tokens_in\": 0,\n \"tokens_out\": 0,\n \"tts_characters\": 9158866,\n \"requests\": 373381,\n \"grouping\": {\n \"start\": \"2025-01-16\",\n \"end\": \"2025-01-16\",\n \"accessor\": \"123456789012345678901234\",\n \"endpoint\": \"listen\",\n \"feature_set\": \"punctuate\",\n \"models\": [\n \"Nova-2\"\n ],\n \"method\": \"async\",\n \"tags\": \"tag1\",\n \"deployment\": \"self-hosted\"\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"9bdf51a4-1e10-41b8-8de2-2df650562db3","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"bc9fcd54-076e-48dc-a2dd-d71a8bf8bd4e","name":"List Project Usage Fields - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/usage/fields","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"start":{"equalTo":"start"},"end":{"equalTo":"end"}}},"response":{"status":200,"body":"{\n \"tags\": [\n \"tag=dev\",\n \"tag=production\"\n ],\n \"models\": [\n {\n \"name\": \"2-medical-nova\",\n \"language\": \"en-MY\",\n \"version\": \"2024-05-31.13574\",\n \"model_id\": \"1234567890-12345-67890\"\n }\n ],\n \"processing_methods\": [\n \"sync\",\n \"streaming\"\n ],\n \"features\": [\n \"alternatives\",\n \"detect_entities\",\n \"detect_language\"\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"bc9fcd54-076e-48dc-a2dd-d71a8bf8bd4e","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"b5ac3651-d3b7-4cd7-b0b8-e1a917a16f3b","name":"Analyze text content - default","request":{"urlPathTemplate":"/v1/read","method":"POST","queryParameters":{"callback":{"equalTo":"callback"},"callback_method":{"equalTo":"POST"},"sentiment":{"equalTo":"true"},"summarize":{"equalTo":"v2"},"tag":{"equalTo":"tag"},"topics":{"equalTo":"true"},"custom_topic":{"equalTo":"custom_topic"},"custom_topic_mode":{"equalTo":"extended"},"intents":{"equalTo":"true"},"custom_intent":{"equalTo":"custom_intent"},"custom_intent_mode":{"equalTo":"extended"},"language":{"equalTo":"language"}}},"response":{"status":200,"body":"{\n \"metadata\": {\n \"metadata\": {\n \"request_id\": \"d04af392-db11-4c1d-83e1-20e34f0b8999\",\n \"created\": \"2024-11-18T23:47:44Z\",\n \"language\": \"en\"\n }\n },\n \"results\": {\n \"summary\": {\n \"results\": {\n \"summary\": {\n \"text\": \"The summary of the text submitted.\"\n }\n }\n },\n \"topics\": {\n \"results\": {\n \"topics\": {\n \"segments\": [\n {\n \"text\": \"And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 32,\n \"end_word\": 69,\n \"topics\": [\n {\n \"topic\": \"Spacewalk\",\n \"confidence_score\": 0.91581345\n }\n ]\n }\n ]\n }\n }\n },\n \"intents\": {\n \"results\": {\n \"intents\": {\n \"segments\": [\n {\n \"text\": \"If you found this valuable, you can subscribe to the show on spotify or your favorite podcast app.\",\n \"start_word\": 354,\n \"end_word\": 414,\n \"intents\": [\n {\n \"intent\": \"Encourage podcasting\",\n \"confidence_score\": 0.0038975573\n }\n ]\n }\n ]\n }\n }\n },\n \"sentiments\": {\n \"segments\": [\n {\n \"text\": \"Yeah. As as much as, um, it's worth celebrating, uh, the first, uh, spacewalk, um, with an all-female team, I think many of us are looking forward to it just being normal. And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 0,\n \"end_word\": 69,\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810546875\n }\n ],\n \"average\": {\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810185185185185\n }\n }\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"b5ac3651-d3b7-4cd7-b0b8-e1a917a16f3b","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"4110cb96-50e2-4fe6-b8ae-5d69120cee89","name":"List Project Self-Hosted Distribution Credentials - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/self-hosted/distribution/credentials","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"distribution_credentials\": [\n {\n \"member\": {\n \"member_id\": \"3376abcd-8e5e-49d3-92d4-876d3a4f0363\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"8b36cfd0-472f-4a21-833f-2d6343c3a2f3\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"4110cb96-50e2-4fe6-b8ae-5d69120cee89","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"9c12eea9-6ba6-4d70-bb14-a2742cebc114","name":"Create a Project Self-Hosted Distribution Credential - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/self-hosted/distribution/credentials","method":"POST","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}},"queryParameters":{"provider":{"equalTo":"quay"}}},"response":{"status":200,"body":"{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"9c12eea9-6ba6-4d70-bb14-a2742cebc114","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"a47cd13f-2314-4190-b2c7-20436ccffbd2","name":"Get a Project Self-Hosted Distribution Credential - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/self-hosted/distribution/credentials/{distribution_credentials_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"distribution_credentials_id":{"equalTo":"8b36cfd0-472f-4a21-833f-2d6343c3a2f3"}}},"response":{"status":200,"body":"{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"a47cd13f-2314-4190-b2c7-20436ccffbd2","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"8bd46091-0e57-4b3d-9485-a86e6f1eaf17","name":"Delete a Project Self-Hosted Distribution Credential - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/self-hosted/distribution/credentials/{distribution_credentials_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"distribution_credentials_id":{"equalTo":"8b36cfd0-472f-4a21-833f-2d6343c3a2f3"}}},"response":{"status":200,"body":"{\n \"member\": {\n \"member_id\": \"c7b9b131-73f3-11d9-8665-0b00d2e44b83\",\n \"email\": \"email@example.com\"\n },\n \"distribution_credentials\": {\n \"distribution_credentials_id\": \"82c32c10-53b2-4d23-993f-864b3d44502a\",\n \"provider\": \"quay\",\n \"comment\": \"My Self-Hosted Distribution Credentials\",\n \"scopes\": [\n \"self-hosted:product:api\",\n \"self-hosted:product:engine\"\n ],\n \"created\": \"2023-06-28T15:36:59Z\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"8bd46091-0e57-4b3d-9485-a86e6f1eaf17","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"b06ec977-02ed-41e2-8fff-2bc45cd2166b","name":"Text to Speech transformation - default","request":{"urlPathTemplate":"/v1/speak","method":"POST"},"response":{"status":200,"body":"{\n \"key\": \"value\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"b06ec977-02ed-41e2-8fff-2bc45cd2166b","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"61883f62-09ec-4be9-b477-13a89b9677cf","name":"List Agent Configurations - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agents","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"agents\": [\n {\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"61883f62-09ec-4be9-b477-13a89b9677cf","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"a43cdbee-2b2f-47fb-8220-75d337cb6d3a","name":"Create an Agent Configuration - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agents","method":"POST","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n }\n}","headers":{"Content-Type":"application/json"}},"uuid":"a43cdbee-2b2f-47fb-8220-75d337cb6d3a","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"2575dd3c-b1c8-4007-8f87-4e32073a9dcf","name":"Get an Agent Configuration - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agents/{agent_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"agent_id":{"equalTo":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}},"response":{"status":200,"body":"{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"2575dd3c-b1c8-4007-8f87-4e32073a9dcf","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"3b52c271-0e44-4148-b726-6f5ca8c91d26","name":"Update Agent Metadata - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agents/{agent_id}","method":"PUT","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"agent_id":{"equalTo":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}},"response":{"status":200,"body":"{\n \"agent_id\": \"agent_id\",\n \"config\": {\n \"key\": \"value\"\n },\n \"metadata\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"3b52c271-0e44-4148-b726-6f5ca8c91d26","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"e839386d-beaa-4a7a-a478-ed9d9ab1b63e","name":"Delete an Agent Configuration - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agents/{agent_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"agent_id":{"equalTo":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}},"response":{"status":200,"body":"{\n \"key\": \"value\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"e839386d-beaa-4a7a-a478-ed9d9ab1b63e","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"bb85071e-3933-4cd3-8fd7-d35eb4c992c5","name":"List Agent Variables - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agent-variables","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"}}},"response":{"status":200,"body":"{\n \"variables\": [\n {\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n }\n ]\n}","headers":{"Content-Type":"application/json"}},"uuid":"bb85071e-3933-4cd3-8fd7-d35eb4c992c5","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"c5016e4b-f863-4dc7-972f-c577ac7fdc47","name":"Create an Agent Variable - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agent-variables","method":"POST","pathParameters":{"project_id":{"equalTo":"project_id"}}},"response":{"status":200,"body":"{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"c5016e4b-f863-4dc7-972f-c577ac7fdc47","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"5bb4b688-8475-4911-8ad5-725b7d5338e3","name":"Get an Agent Variable - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agent-variables/{variable_id}","method":"GET","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"variable_id":{"equalTo":"v1a2b3c4-d5e6-7890-abcd-ef1234567890"}}},"response":{"status":200,"body":"{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"5bb4b688-8475-4911-8ad5-725b7d5338e3","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"2e2c7061-7573-423f-a907-2a15dd9f3307","name":"Delete an Agent Variable - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agent-variables/{variable_id}","method":"DELETE","pathParameters":{"project_id":{"equalTo":"123456-7890-1234-5678-901234"},"variable_id":{"equalTo":"v1a2b3c4-d5e6-7890-abcd-ef1234567890"}}},"response":{"status":200,"body":"{\n \"key\": \"value\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"2e2c7061-7573-423f-a907-2a15dd9f3307","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}},{"id":"33765621-bc60-4ef4-b295-4b276aeb871f","name":"Update an Agent Variable - default","request":{"urlPathTemplate":"/v1/projects/{project_id}/agent-variables/{variable_id}","method":"PATCH","pathParameters":{"project_id":{"equalTo":"project_id"},"variable_id":{"equalTo":"variable_id"}}},"response":{"status":200,"body":"{\n \"variable_id\": \"variable_id\",\n \"key\": \"key\",\n \"value\": {\n \"key\": \"value\"\n },\n \"created_at\": \"2024-01-15T09:30:00Z\",\n \"updated_at\": \"2024-01-15T09:30:00Z\"\n}","headers":{"Content-Type":"application/json"}},"uuid":"33765621-bc60-4ef4-b295-4b276aeb871f","persistent":true,"priority":3,"metadata":{"mocklab":{"created":{"at":"2020-01-01T00:00:00.000Z","via":"SYSTEM"}}}}],"meta":{"total":49}} \ No newline at end of file