camb-sdk 1.5.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. camb/__init__.py +335 -0
  2. camb/audio_separation/__init__.py +4 -0
  3. camb/audio_separation/client.py +406 -0
  4. camb/audio_separation/raw_client.py +534 -0
  5. camb/client.py +717 -0
  6. camb/core/__init__.py +105 -0
  7. camb/core/api_error.py +23 -0
  8. camb/core/client_wrapper.py +113 -0
  9. camb/core/datetime_utils.py +28 -0
  10. camb/core/file.py +67 -0
  11. camb/core/force_multipart.py +18 -0
  12. camb/core/http_client.py +663 -0
  13. camb/core/http_response.py +55 -0
  14. camb/core/http_sse/__init__.py +42 -0
  15. camb/core/http_sse/_api.py +112 -0
  16. camb/core/http_sse/_decoders.py +61 -0
  17. camb/core/http_sse/_exceptions.py +7 -0
  18. camb/core/http_sse/_models.py +17 -0
  19. camb/core/jsonable_encoder.py +100 -0
  20. camb/core/pydantic_utilities.py +260 -0
  21. camb/core/query_encoder.py +58 -0
  22. camb/core/remove_none_from_dict.py +11 -0
  23. camb/core/request_options.py +35 -0
  24. camb/core/serialization.py +276 -0
  25. camb/deprecated_streaming/__init__.py +4 -0
  26. camb/deprecated_streaming/client.py +532 -0
  27. camb/deprecated_streaming/raw_client.py +639 -0
  28. camb/dictionaries/__init__.py +4 -0
  29. camb/dictionaries/client.py +785 -0
  30. camb/dictionaries/raw_client.py +1048 -0
  31. camb/dub/__init__.py +49 -0
  32. camb/dub/client.py +846 -0
  33. camb/dub/raw_client.py +1194 -0
  34. camb/dub/types/__init__.py +53 -0
  35. camb/dub/types/dubbed_output_in_alt_format_request_payload_output_format.py +8 -0
  36. camb/dub/types/get_dubbed_output_in_alt_format_dub_alt_format_run_id_language_post_response.py +9 -0
  37. camb/dub/types/get_dubbed_run_info_dub_result_run_id_get_response.py +7 -0
  38. camb/dub/types/get_dubbing_runs_results_dubbing_results_post_response_value.py +7 -0
  39. camb/environment.py +7 -0
  40. camb/errors/__init__.py +34 -0
  41. camb/errors/unprocessable_entity_error.py +11 -0
  42. camb/folders/__init__.py +4 -0
  43. camb/folders/client.py +213 -0
  44. camb/folders/raw_client.py +278 -0
  45. camb/languages/__init__.py +4 -0
  46. camb/languages/client.py +168 -0
  47. camb/languages/raw_client.py +223 -0
  48. camb/project_setup/__init__.py +4 -0
  49. camb/project_setup/client.py +537 -0
  50. camb/project_setup/raw_client.py +655 -0
  51. camb/py.typed +0 -0
  52. camb/raw_client.py +236 -0
  53. camb/story/__init__.py +37 -0
  54. camb/story/client.py +579 -0
  55. camb/story/raw_client.py +743 -0
  56. camb/story/types/__init__.py +38 -0
  57. camb/story/types/create_story_story_post_response.py +8 -0
  58. camb/story/types/setup_story_story_setup_post_response.py +8 -0
  59. camb/streaming/__init__.py +4 -0
  60. camb/streaming/client.py +645 -0
  61. camb/streaming/raw_client.py +796 -0
  62. camb/text_to_audio/__init__.py +4 -0
  63. camb/text_to_audio/client.py +469 -0
  64. camb/text_to_audio/raw_client.py +610 -0
  65. camb/text_to_speech/__init__.py +49 -0
  66. camb/text_to_speech/baseten.py +214 -0
  67. camb/text_to_speech/client.py +742 -0
  68. camb/text_to_speech/raw_client.py +995 -0
  69. camb/text_to_speech/types/__init__.py +47 -0
  70. camb/text_to_speech/types/create_stream_tts_request_payload_language.py +71 -0
  71. camb/text_to_speech/types/create_stream_tts_request_payload_speech_model.py +7 -0
  72. camb/text_to_speech/types/get_tts_results_tts_results_post_response_value.py +7 -0
  73. camb/text_to_speech/types/get_tts_run_info_tts_result_run_id_get_response.py +7 -0
  74. camb/text_to_voice/__init__.py +4 -0
  75. camb/text_to_voice/client.py +329 -0
  76. camb/text_to_voice/raw_client.py +405 -0
  77. camb/transcription/__init__.py +4 -0
  78. camb/transcription/client.py +465 -0
  79. camb/transcription/raw_client.py +587 -0
  80. camb/translated_story/__init__.py +4 -0
  81. camb/translated_story/client.py +309 -0
  82. camb/translated_story/raw_client.py +381 -0
  83. camb/translated_tts/__init__.py +4 -0
  84. camb/translated_tts/client.py +313 -0
  85. camb/translated_tts/raw_client.py +357 -0
  86. camb/translation/__init__.py +4 -0
  87. camb/translation/client.py +631 -0
  88. camb/translation/raw_client.py +787 -0
  89. camb/types/__init__.py +236 -0
  90. camb/types/add_target_language_out.py +20 -0
  91. camb/types/audio_output_type.py +5 -0
  92. camb/types/audio_stream.py +31 -0
  93. camb/types/config_stream.py +22 -0
  94. camb/types/config_stream_pipeline.py +28 -0
  95. camb/types/create_custom_voice_out.py +19 -0
  96. camb/types/create_project_setup_out.py +19 -0
  97. camb/types/create_stream_out.py +22 -0
  98. camb/types/create_stream_request_payload.py +70 -0
  99. camb/types/create_translated_tts_out.py +19 -0
  100. camb/types/create_tts_out.py +19 -0
  101. camb/types/data_stream.py +24 -0
  102. camb/types/demixing_option.py +10 -0
  103. camb/types/dictionary_term.py +21 -0
  104. camb/types/dictionary_with_terms.py +28 -0
  105. camb/types/dubbing_result.py +22 -0
  106. camb/types/exception_reasons.py +30 -0
  107. camb/types/folder.py +20 -0
  108. camb/types/formalities.py +3 -0
  109. camb/types/gender.py +3 -0
  110. camb/types/get_audio_separation_result_out.py +20 -0
  111. camb/types/get_create_project_setup_response.py +21 -0
  112. camb/types/get_probe_stream_in.py +21 -0
  113. camb/types/get_probe_stream_out.py +24 -0
  114. camb/types/get_setup_story_result_response.py +21 -0
  115. camb/types/get_text_to_voice_result_out.py +19 -0
  116. camb/types/get_tts_result_out_file_url.py +19 -0
  117. camb/types/http_validation_error.py +20 -0
  118. camb/types/language_enums.py +154 -0
  119. camb/types/language_pydantic_model.py +21 -0
  120. camb/types/languages.py +3 -0
  121. camb/types/orchestrator_pipeline_call_result.py +19 -0
  122. camb/types/orchestrator_pipeline_result.py +25 -0
  123. camb/types/orchestrator_pipeline_result_exception_reason.py +7 -0
  124. camb/types/orchestrator_pipeline_result_message.py +5 -0
  125. camb/types/output_format.py +10 -0
  126. camb/types/overdub_config.py +37 -0
  127. camb/types/project_details.py +28 -0
  128. camb/types/revoicing_option.py +5 -0
  129. camb/types/run_i_ds_request_payload.py +19 -0
  130. camb/types/segmenting_option.py +5 -0
  131. camb/types/source_stream.py +30 -0
  132. camb/types/story_details.py +27 -0
  133. camb/types/stream_category.py +3 -0
  134. camb/types/stream_tts_inference_options.py +38 -0
  135. camb/types/stream_tts_output_configuration.py +33 -0
  136. camb/types/stream_tts_voice_settings.py +28 -0
  137. camb/types/stream_type.py +3 -0
  138. camb/types/stream_url_for_languages.py +21 -0
  139. camb/types/target_stream.py +34 -0
  140. camb/types/task_status.py +5 -0
  141. camb/types/term_translation_input.py +21 -0
  142. camb/types/term_translation_output.py +20 -0
  143. camb/types/text_to_audio_result.py +19 -0
  144. camb/types/text_to_audio_type.py +5 -0
  145. camb/types/transcribing_option.py +5 -0
  146. camb/types/transcript.py +22 -0
  147. camb/types/transcript_data_type.py +5 -0
  148. camb/types/transcript_file_format.py +5 -0
  149. camb/types/transcription_result.py +20 -0
  150. camb/types/translating_option.py +5 -0
  151. camb/types/translation_result.py +19 -0
  152. camb/types/tts_provider.py +3 -0
  153. camb/types/validation_error.py +22 -0
  154. camb/types/validation_error_loc_item.py +5 -0
  155. camb/types/video_output_type_without_avi.py +5 -0
  156. camb/types/video_stream.py +28 -0
  157. camb/types/voice.py +28 -0
  158. camb/voice_cloning/__init__.py +34 -0
  159. camb/voice_cloning/client.py +265 -0
  160. camb/voice_cloning/raw_client.py +320 -0
  161. camb/voice_cloning/types/__init__.py +36 -0
  162. camb/voice_cloning/types/list_voices_list_voices_get_response_item.py +7 -0
  163. camb_sdk-1.5.4.dist-info/METADATA +282 -0
  164. camb_sdk-1.5.4.dist-info/RECORD +167 -0
  165. camb_sdk-1.5.4.dist-info/WHEEL +5 -0
  166. camb_sdk-1.5.4.dist-info/licenses/LICENSE +21 -0
  167. camb_sdk-1.5.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,532 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
7
+ from ..core.request_options import RequestOptions
8
+ from ..types.config_stream import ConfigStream
9
+ from ..types.create_stream_out import CreateStreamOut
10
+ from ..types.get_probe_stream_out import GetProbeStreamOut
11
+ from ..types.source_stream import SourceStream
12
+ from ..types.target_stream import TargetStream
13
+ from .raw_client import AsyncRawDeprecatedStreamingClient, RawDeprecatedStreamingClient
14
+
15
+ # this is used as the default value for optional parameters
16
+ OMIT = typing.cast(typing.Any, ...)
17
+
18
+
19
+ class DeprecatedStreamingClient:
20
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
21
+ self._raw_client = RawDeprecatedStreamingClient(client_wrapper=client_wrapper)
22
+
23
+ @property
24
+ def with_raw_response(self) -> RawDeprecatedStreamingClient:
25
+ """
26
+ Retrieves a raw implementation of this client that returns raw responses.
27
+
28
+ Returns
29
+ -------
30
+ RawDeprecatedStreamingClient
31
+ """
32
+ return self._raw_client
33
+
34
+ def create_stream(
35
+ self,
36
+ *,
37
+ voices: typing.Sequence[int],
38
+ dictionaries: typing.Sequence[int],
39
+ config: ConfigStream,
40
+ source_stream: SourceStream,
41
+ target_streams: typing.Sequence[TargetStream],
42
+ name: typing.Optional[str] = OMIT,
43
+ description: typing.Optional[str] = OMIT,
44
+ initial_delay: typing.Optional[int] = OMIT,
45
+ timeout_in_mins: typing.Optional[int] = OMIT,
46
+ start_time: typing.Optional[dt.datetime] = OMIT,
47
+ end_time: typing.Optional[dt.datetime] = OMIT,
48
+ timezone: typing.Optional[str] = OMIT,
49
+ request_options: typing.Optional[RequestOptions] = None,
50
+ ) -> CreateStreamOut:
51
+ """
52
+ Parameters
53
+ ----------
54
+ voices : typing.Sequence[int]
55
+ List of voice identifiers to be used in the stream.
56
+
57
+ dictionaries : typing.Sequence[int]
58
+ List of dictionary identifiers to be used in the stream.
59
+
60
+ config : ConfigStream
61
+ The shared configuration for the streaming pipeline.
62
+
63
+ source_stream : SourceStream
64
+ The source stream configuration details.
65
+
66
+ target_streams : typing.Sequence[TargetStream]
67
+ List of target stream configurations.
68
+
69
+ name : typing.Optional[str]
70
+ The name of the stream.
71
+
72
+ description : typing.Optional[str]
73
+ The description of the stream.
74
+
75
+ initial_delay : typing.Optional[int]
76
+ The initial delay in seconds before starting the stream creation process.
77
+
78
+ timeout_in_mins : typing.Optional[int]
79
+ The maximum duration in minutes for the stream creation process before timing out.
80
+
81
+ start_time : typing.Optional[dt.datetime]
82
+
83
+ end_time : typing.Optional[dt.datetime]
84
+
85
+ timezone : typing.Optional[str]
86
+
87
+ request_options : typing.Optional[RequestOptions]
88
+ Request-specific configuration.
89
+
90
+ Returns
91
+ -------
92
+ CreateStreamOut
93
+ Successful Response
94
+
95
+ Examples
96
+ --------
97
+ from camb import CambApi, ConfigStream, SourceStream, TargetStream
98
+
99
+ client = CambApi(
100
+ api_key="YOUR_API_KEY",
101
+ )
102
+ client.deprecated_streaming.create_stream(
103
+ voices=[1],
104
+ dictionaries=[1],
105
+ config=ConfigStream(),
106
+ source_stream=SourceStream(
107
+ language=1,
108
+ url="url",
109
+ ),
110
+ target_streams=[
111
+ TargetStream(
112
+ languages=[1],
113
+ url="url",
114
+ type=1,
115
+ )
116
+ ],
117
+ )
118
+ """
119
+ _response = self._raw_client.create_stream(
120
+ voices=voices,
121
+ dictionaries=dictionaries,
122
+ config=config,
123
+ source_stream=source_stream,
124
+ target_streams=target_streams,
125
+ name=name,
126
+ description=description,
127
+ initial_delay=initial_delay,
128
+ timeout_in_mins=timeout_in_mins,
129
+ start_time=start_time,
130
+ end_time=end_time,
131
+ timezone=timezone,
132
+ request_options=request_options,
133
+ )
134
+ return _response.data
135
+
136
+ def get_stream_result(
137
+ self,
138
+ stream_id: int,
139
+ *,
140
+ run_id: typing.Optional[int] = None,
141
+ request_options: typing.Optional[RequestOptions] = None,
142
+ ) -> typing.Dict[str, typing.Any]:
143
+ """
144
+ Parameters
145
+ ----------
146
+ stream_id : int
147
+
148
+ run_id : typing.Optional[int]
149
+
150
+ request_options : typing.Optional[RequestOptions]
151
+ Request-specific configuration.
152
+
153
+ Returns
154
+ -------
155
+ typing.Dict[str, typing.Any]
156
+ Successful Response
157
+
158
+ Examples
159
+ --------
160
+ from camb import CambApi
161
+
162
+ client = CambApi(
163
+ api_key="YOUR_API_KEY",
164
+ )
165
+ client.deprecated_streaming.get_stream_result(
166
+ stream_id=1,
167
+ )
168
+ """
169
+ _response = self._raw_client.get_stream_result(stream_id, run_id=run_id, request_options=request_options)
170
+ return _response.data
171
+
172
+ def stop_stream(
173
+ self,
174
+ stream_id: int,
175
+ *,
176
+ run_id: typing.Optional[int] = None,
177
+ request_options: typing.Optional[RequestOptions] = None,
178
+ ) -> typing.Dict[str, typing.Any]:
179
+ """
180
+ Parameters
181
+ ----------
182
+ stream_id : int
183
+
184
+ run_id : typing.Optional[int]
185
+
186
+ request_options : typing.Optional[RequestOptions]
187
+ Request-specific configuration.
188
+
189
+ Returns
190
+ -------
191
+ typing.Dict[str, typing.Any]
192
+ Successful Response
193
+
194
+ Examples
195
+ --------
196
+ from camb import CambApi
197
+
198
+ client = CambApi(
199
+ api_key="YOUR_API_KEY",
200
+ )
201
+ client.deprecated_streaming.stop_stream(
202
+ stream_id=1,
203
+ )
204
+ """
205
+ _response = self._raw_client.stop_stream(stream_id, run_id=run_id, request_options=request_options)
206
+ return _response.data
207
+
208
+ def get_probe_stream(
209
+ self,
210
+ *,
211
+ url: str,
212
+ run_id: typing.Optional[int] = None,
213
+ traceparent: typing.Optional[str] = None,
214
+ passphrase: typing.Optional[str] = OMIT,
215
+ stream_id: typing.Optional[str] = OMIT,
216
+ request_options: typing.Optional[RequestOptions] = None,
217
+ ) -> GetProbeStreamOut:
218
+ """
219
+ Parameters
220
+ ----------
221
+ url : str
222
+
223
+ run_id : typing.Optional[int]
224
+
225
+ traceparent : typing.Optional[str]
226
+
227
+ passphrase : typing.Optional[str]
228
+
229
+ stream_id : typing.Optional[str]
230
+
231
+ request_options : typing.Optional[RequestOptions]
232
+ Request-specific configuration.
233
+
234
+ Returns
235
+ -------
236
+ GetProbeStreamOut
237
+ Successful Response
238
+
239
+ Examples
240
+ --------
241
+ from camb import CambApi
242
+
243
+ client = CambApi(
244
+ api_key="YOUR_API_KEY",
245
+ )
246
+ client.deprecated_streaming.get_probe_stream(
247
+ url="url",
248
+ )
249
+ """
250
+ _response = self._raw_client.get_probe_stream(
251
+ url=url,
252
+ run_id=run_id,
253
+ traceparent=traceparent,
254
+ passphrase=passphrase,
255
+ stream_id=stream_id,
256
+ request_options=request_options,
257
+ )
258
+ return _response.data
259
+
260
+
261
+ class AsyncDeprecatedStreamingClient:
262
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
263
+ self._raw_client = AsyncRawDeprecatedStreamingClient(client_wrapper=client_wrapper)
264
+
265
+ @property
266
+ def with_raw_response(self) -> AsyncRawDeprecatedStreamingClient:
267
+ """
268
+ Retrieves a raw implementation of this client that returns raw responses.
269
+
270
+ Returns
271
+ -------
272
+ AsyncRawDeprecatedStreamingClient
273
+ """
274
+ return self._raw_client
275
+
276
+ async def create_stream(
277
+ self,
278
+ *,
279
+ voices: typing.Sequence[int],
280
+ dictionaries: typing.Sequence[int],
281
+ config: ConfigStream,
282
+ source_stream: SourceStream,
283
+ target_streams: typing.Sequence[TargetStream],
284
+ name: typing.Optional[str] = OMIT,
285
+ description: typing.Optional[str] = OMIT,
286
+ initial_delay: typing.Optional[int] = OMIT,
287
+ timeout_in_mins: typing.Optional[int] = OMIT,
288
+ start_time: typing.Optional[dt.datetime] = OMIT,
289
+ end_time: typing.Optional[dt.datetime] = OMIT,
290
+ timezone: typing.Optional[str] = OMIT,
291
+ request_options: typing.Optional[RequestOptions] = None,
292
+ ) -> CreateStreamOut:
293
+ """
294
+ Parameters
295
+ ----------
296
+ voices : typing.Sequence[int]
297
+ List of voice identifiers to be used in the stream.
298
+
299
+ dictionaries : typing.Sequence[int]
300
+ List of dictionary identifiers to be used in the stream.
301
+
302
+ config : ConfigStream
303
+ The shared configuration for the streaming pipeline.
304
+
305
+ source_stream : SourceStream
306
+ The source stream configuration details.
307
+
308
+ target_streams : typing.Sequence[TargetStream]
309
+ List of target stream configurations.
310
+
311
+ name : typing.Optional[str]
312
+ The name of the stream.
313
+
314
+ description : typing.Optional[str]
315
+ The description of the stream.
316
+
317
+ initial_delay : typing.Optional[int]
318
+ The initial delay in seconds before starting the stream creation process.
319
+
320
+ timeout_in_mins : typing.Optional[int]
321
+ The maximum duration in minutes for the stream creation process before timing out.
322
+
323
+ start_time : typing.Optional[dt.datetime]
324
+
325
+ end_time : typing.Optional[dt.datetime]
326
+
327
+ timezone : typing.Optional[str]
328
+
329
+ request_options : typing.Optional[RequestOptions]
330
+ Request-specific configuration.
331
+
332
+ Returns
333
+ -------
334
+ CreateStreamOut
335
+ Successful Response
336
+
337
+ Examples
338
+ --------
339
+ import asyncio
340
+
341
+ from camb import AsyncCambApi, ConfigStream, SourceStream, TargetStream
342
+
343
+ client = AsyncCambApi(
344
+ api_key="YOUR_API_KEY",
345
+ )
346
+
347
+
348
+ async def main() -> None:
349
+ await client.deprecated_streaming.create_stream(
350
+ voices=[1],
351
+ dictionaries=[1],
352
+ config=ConfigStream(),
353
+ source_stream=SourceStream(
354
+ language=1,
355
+ url="url",
356
+ ),
357
+ target_streams=[
358
+ TargetStream(
359
+ languages=[1],
360
+ url="url",
361
+ type=1,
362
+ )
363
+ ],
364
+ )
365
+
366
+
367
+ asyncio.run(main())
368
+ """
369
+ _response = await self._raw_client.create_stream(
370
+ voices=voices,
371
+ dictionaries=dictionaries,
372
+ config=config,
373
+ source_stream=source_stream,
374
+ target_streams=target_streams,
375
+ name=name,
376
+ description=description,
377
+ initial_delay=initial_delay,
378
+ timeout_in_mins=timeout_in_mins,
379
+ start_time=start_time,
380
+ end_time=end_time,
381
+ timezone=timezone,
382
+ request_options=request_options,
383
+ )
384
+ return _response.data
385
+
386
+ async def get_stream_result(
387
+ self,
388
+ stream_id: int,
389
+ *,
390
+ run_id: typing.Optional[int] = None,
391
+ request_options: typing.Optional[RequestOptions] = None,
392
+ ) -> typing.Dict[str, typing.Any]:
393
+ """
394
+ Parameters
395
+ ----------
396
+ stream_id : int
397
+
398
+ run_id : typing.Optional[int]
399
+
400
+ request_options : typing.Optional[RequestOptions]
401
+ Request-specific configuration.
402
+
403
+ Returns
404
+ -------
405
+ typing.Dict[str, typing.Any]
406
+ Successful Response
407
+
408
+ Examples
409
+ --------
410
+ import asyncio
411
+
412
+ from camb import AsyncCambApi
413
+
414
+ client = AsyncCambApi(
415
+ api_key="YOUR_API_KEY",
416
+ )
417
+
418
+
419
+ async def main() -> None:
420
+ await client.deprecated_streaming.get_stream_result(
421
+ stream_id=1,
422
+ )
423
+
424
+
425
+ asyncio.run(main())
426
+ """
427
+ _response = await self._raw_client.get_stream_result(stream_id, run_id=run_id, request_options=request_options)
428
+ return _response.data
429
+
430
+ async def stop_stream(
431
+ self,
432
+ stream_id: int,
433
+ *,
434
+ run_id: typing.Optional[int] = None,
435
+ request_options: typing.Optional[RequestOptions] = None,
436
+ ) -> typing.Dict[str, typing.Any]:
437
+ """
438
+ Parameters
439
+ ----------
440
+ stream_id : int
441
+
442
+ run_id : typing.Optional[int]
443
+
444
+ request_options : typing.Optional[RequestOptions]
445
+ Request-specific configuration.
446
+
447
+ Returns
448
+ -------
449
+ typing.Dict[str, typing.Any]
450
+ Successful Response
451
+
452
+ Examples
453
+ --------
454
+ import asyncio
455
+
456
+ from camb import AsyncCambApi
457
+
458
+ client = AsyncCambApi(
459
+ api_key="YOUR_API_KEY",
460
+ )
461
+
462
+
463
+ async def main() -> None:
464
+ await client.deprecated_streaming.stop_stream(
465
+ stream_id=1,
466
+ )
467
+
468
+
469
+ asyncio.run(main())
470
+ """
471
+ _response = await self._raw_client.stop_stream(stream_id, run_id=run_id, request_options=request_options)
472
+ return _response.data
473
+
474
+ async def get_probe_stream(
475
+ self,
476
+ *,
477
+ url: str,
478
+ run_id: typing.Optional[int] = None,
479
+ traceparent: typing.Optional[str] = None,
480
+ passphrase: typing.Optional[str] = OMIT,
481
+ stream_id: typing.Optional[str] = OMIT,
482
+ request_options: typing.Optional[RequestOptions] = None,
483
+ ) -> GetProbeStreamOut:
484
+ """
485
+ Parameters
486
+ ----------
487
+ url : str
488
+
489
+ run_id : typing.Optional[int]
490
+
491
+ traceparent : typing.Optional[str]
492
+
493
+ passphrase : typing.Optional[str]
494
+
495
+ stream_id : typing.Optional[str]
496
+
497
+ request_options : typing.Optional[RequestOptions]
498
+ Request-specific configuration.
499
+
500
+ Returns
501
+ -------
502
+ GetProbeStreamOut
503
+ Successful Response
504
+
505
+ Examples
506
+ --------
507
+ import asyncio
508
+
509
+ from camb import AsyncCambApi
510
+
511
+ client = AsyncCambApi(
512
+ api_key="YOUR_API_KEY",
513
+ )
514
+
515
+
516
+ async def main() -> None:
517
+ await client.deprecated_streaming.get_probe_stream(
518
+ url="url",
519
+ )
520
+
521
+
522
+ asyncio.run(main())
523
+ """
524
+ _response = await self._raw_client.get_probe_stream(
525
+ url=url,
526
+ run_id=run_id,
527
+ traceparent=traceparent,
528
+ passphrase=passphrase,
529
+ stream_id=stream_id,
530
+ request_options=request_options,
531
+ )
532
+ return _response.data