nominal-api 0.962.0__py3-none-any.whl → 0.963.0__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.

Potentially problematic release.


This version of nominal-api might be problematic. Click here for more details.

nominal_api/__init__.py CHANGED
@@ -82,5 +82,5 @@ __all__ = [
82
82
 
83
83
  __conjure_generator_version__ = "4.17.0"
84
84
 
85
- __version__ = "0.962.0"
85
+ __version__ = "0.963.0"
86
86
 
nominal_api/_impl.py CHANGED
@@ -86937,6 +86937,40 @@ Enforces write permission on the video.
86937
86937
  _decoder = ConjureDecoder()
86938
86938
  return _decoder.decode(_response.json(), scout_video_api_GenerateWhipStreamResponse, self._return_none_for_unknown_union_types)
86939
86939
 
86940
+ def generate_whep_stream(self, auth_header: str, stream_id: str, video_rid: str) -> "scout_video_api_GenerateWhepStreamResponse":
86941
+ """Returns WHEP URL, ICE servers, and token for playing back a stream.
86942
+ Enforces read permission on the video.
86943
+ """
86944
+ _conjure_encoder = ConjureEncoder()
86945
+
86946
+ _headers: Dict[str, Any] = {
86947
+ 'Accept': 'application/json',
86948
+ 'Authorization': auth_header,
86949
+ }
86950
+
86951
+ _params: Dict[str, Any] = {
86952
+ }
86953
+
86954
+ _path_params: Dict[str, str] = {
86955
+ 'videoRid': quote(str(_conjure_encoder.default(video_rid)), safe=''),
86956
+ 'streamId': quote(str(_conjure_encoder.default(stream_id)), safe=''),
86957
+ }
86958
+
86959
+ _json: Any = None
86960
+
86961
+ _path = '/video/v1/videos/{videoRid}/streaming/whep/{streamId}'
86962
+ _path = _path.format(**_path_params)
86963
+
86964
+ _response: Response = self._request(
86965
+ 'POST',
86966
+ self._uri + _path,
86967
+ params=_params,
86968
+ headers=_headers,
86969
+ json=_json)
86970
+
86971
+ _decoder = ConjureDecoder()
86972
+ return _decoder.decode(_response.json(), scout_video_api_GenerateWhepStreamResponse, self._return_none_for_unknown_union_types)
86973
+
86940
86974
 
86941
86975
  scout_video_VideoService.__name__ = "VideoService"
86942
86976
  scout_video_VideoService.__qualname__ = "VideoService"
@@ -87371,6 +87405,43 @@ scout_video_api_FileSummary.__qualname__ = "FileSummary"
87371
87405
  scout_video_api_FileSummary.__module__ = "nominal_api.scout_video_api"
87372
87406
 
87373
87407
 
87408
+ class scout_video_api_GenerateWhepStreamResponse(ConjureBeanType):
87409
+ """Response with WHEP URL, ICE servers, and token for playback
87410
+ """
87411
+
87412
+ @builtins.classmethod
87413
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
87414
+ return {
87415
+ 'whep_url': ConjureFieldDefinition('whepUrl', str),
87416
+ 'ice_servers': ConjureFieldDefinition('iceServers', List[scout_video_api_IceServer]),
87417
+ 'token': ConjureFieldDefinition('token', str)
87418
+ }
87419
+
87420
+ __slots__: List[str] = ['_whep_url', '_ice_servers', '_token']
87421
+
87422
+ def __init__(self, ice_servers: List["scout_video_api_IceServer"], token: str, whep_url: str) -> None:
87423
+ self._whep_url = whep_url
87424
+ self._ice_servers = ice_servers
87425
+ self._token = token
87426
+
87427
+ @builtins.property
87428
+ def whep_url(self) -> str:
87429
+ return self._whep_url
87430
+
87431
+ @builtins.property
87432
+ def ice_servers(self) -> List["scout_video_api_IceServer"]:
87433
+ return self._ice_servers
87434
+
87435
+ @builtins.property
87436
+ def token(self) -> str:
87437
+ return self._token
87438
+
87439
+
87440
+ scout_video_api_GenerateWhepStreamResponse.__name__ = "GenerateWhepStreamResponse"
87441
+ scout_video_api_GenerateWhepStreamResponse.__qualname__ = "GenerateWhepStreamResponse"
87442
+ scout_video_api_GenerateWhepStreamResponse.__module__ = "nominal_api.scout_video_api"
87443
+
87444
+
87374
87445
  class scout_video_api_GenerateWhipStreamResponse(ConjureBeanType):
87375
87446
  """Response with WHIP URL and ICE servers for publishing
87376
87447
  """
@@ -12,6 +12,7 @@ from .._impl import (
12
12
  scout_video_api_ErrorIngestStatus as ErrorIngestStatus,
13
13
  scout_video_api_ErrorType as ErrorType,
14
14
  scout_video_api_FileSummary as FileSummary,
15
+ scout_video_api_GenerateWhepStreamResponse as GenerateWhepStreamResponse,
15
16
  scout_video_api_GenerateWhipStreamResponse as GenerateWhipStreamResponse,
16
17
  scout_video_api_GetEnrichedVideoIngestStatusRequest as GetEnrichedVideoIngestStatusRequest,
17
18
  scout_video_api_GetFileSummariesRequest as GetFileSummariesRequest,
@@ -76,6 +77,7 @@ __all__ = [
76
77
  'ErrorIngestStatus',
77
78
  'ErrorType',
78
79
  'FileSummary',
80
+ 'GenerateWhepStreamResponse',
79
81
  'GenerateWhipStreamResponse',
80
82
  'GetEnrichedVideoIngestStatusRequest',
81
83
  'GetFileSummariesRequest',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.962.0
3
+ Version: 0.963.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=G4IBn1G0WFNA4QmfQiOhI7_7qJC96aWeHnn96EEZwPw,2109
2
- nominal_api/_impl.py,sha256=y-1s6NGTl5qttKzw36MpXTGFdPJh5Ock9nAFPYUW6k0,3869671
1
+ nominal_api/__init__.py,sha256=uVB8Rc0ibVjj1MlRQuFqrECoXZWT0vZmh6flI6Vfz2U,2109
2
+ nominal_api/_impl.py,sha256=0dDsRKp3gfJXPcXQnyFUZxHKwwHrh37ZAFeAdR2oYcg,3872170
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=OHAEgaRoUX60742H_U3q_pBoPGpLspsL5XERHQ-rjMs,2299
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -60,7 +60,7 @@ nominal_api/scout_template_api/__init__.py,sha256=Yu7FHTypJv09dBKqnWS_dDeXdwI1hg
60
60
  nominal_api/scout_units_api/__init__.py,sha256=gf47pW6JIcP3FgL1UuHwkibj266FCRszL9q6PGx0-Rg,512
61
61
  nominal_api/scout_versioning_api/__init__.py,sha256=AGSj6Gd1gDUnY3BTpXhPkEzCnrKIMfvs3S17m68HGfQ,1822
62
62
  nominal_api/scout_video/__init__.py,sha256=orm_3BDcBo2LaSHAf2lwO1vN4OX2oHwTI1QTTvF_pgE,286
63
- nominal_api/scout_video_api/__init__.py,sha256=TcCc7AVZ6bWC8p-Q3zIEdEVUUdQp4cmlzXTetDubdr4,5801
63
+ nominal_api/scout_video_api/__init__.py,sha256=Ih5qIgmMCzn41f3lNj8QThAWznqiISiDswkfLqc0W1Y,5913
64
64
  nominal_api/scout_workbookcommon_api/__init__.py,sha256=aANX-QdlB7K3evmP8OEED8ga6QfuYXGlGgjGSM9TgVI,1645
65
65
  nominal_api/secrets_api/__init__.py,sha256=orauwNcjFEmZnIrx4Zos0oALO-RiczeRdlSXrWSsCno,1060
66
66
  nominal_api/security_api_workspace/__init__.py,sha256=6gz6-jGhdsMZLVn1IAk7Ar7TfkxRN6ql7Yngig-Kp3Y,1839
@@ -79,7 +79,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
79
79
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=i21vITWBn-6ruVuFZg491TDpx6WcIhJBoF3oNw3w338,1186
80
80
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
81
81
  nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
82
- nominal_api-0.962.0.dist-info/METADATA,sha256=o1uHcnDdYm8eZl7vih-qUDkF2rgzWpCgVA9y2qSKVA0,199
83
- nominal_api-0.962.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- nominal_api-0.962.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
85
- nominal_api-0.962.0.dist-info/RECORD,,
82
+ nominal_api-0.963.0.dist-info/METADATA,sha256=3MzNJxW-mbcLf6WUPleKAGQp2_n3LYt1sr1G3SHfCJ8,199
83
+ nominal_api-0.963.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ nominal_api-0.963.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
85
+ nominal_api-0.963.0.dist-info/RECORD,,