nominal-api 0.600.1__py3-none-any.whl → 0.602.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
@@ -75,5 +75,5 @@ __all__ = [
75
75
 
76
76
  __conjure_generator_version__ = "4.9.0"
77
77
 
78
- __version__ = "0.600.1"
78
+ __version__ = "0.602.0"
79
79
 
nominal_api/_impl.py CHANGED
@@ -23020,13 +23020,15 @@ class scout_checklistexecution_api_ListStreamingChecklistRequest(ConjureBeanType
23020
23020
  def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
23021
23021
  return {
23022
23022
  'page_size': ConjureFieldDefinition('pageSize', OptionalTypeWrapper[int]),
23023
+ 'workspace_ids': ConjureFieldDefinition('workspaceIds', List[api_ids_WorkspaceId]),
23023
23024
  'page_token': ConjureFieldDefinition('pageToken', OptionalTypeWrapper[str])
23024
23025
  }
23025
23026
 
23026
- __slots__: List[str] = ['_page_size', '_page_token']
23027
+ __slots__: List[str] = ['_page_size', '_workspace_ids', '_page_token']
23027
23028
 
23028
- def __init__(self, page_size: Optional[int] = None, page_token: Optional[str] = None) -> None:
23029
+ def __init__(self, workspace_ids: List[str], page_size: Optional[int] = None, page_token: Optional[str] = None) -> None:
23029
23030
  self._page_size = page_size
23031
+ self._workspace_ids = workspace_ids
23030
23032
  self._page_token = page_token
23031
23033
 
23032
23034
  @builtins.property
@@ -23036,6 +23038,10 @@ class scout_checklistexecution_api_ListStreamingChecklistRequest(ConjureBeanType
23036
23038
  """
23037
23039
  return self._page_size
23038
23040
 
23041
+ @builtins.property
23042
+ def workspace_ids(self) -> List[str]:
23043
+ return self._workspace_ids
23044
+
23039
23045
  @builtins.property
23040
23046
  def page_token(self) -> Optional[str]:
23041
23047
  return self._page_token
@@ -51521,7 +51527,7 @@ the automatic checks against the run.
51521
51527
 
51522
51528
  def get_check_alerts_histogram(self, auth_header: str, request: "scout_datareview_api_CheckAlertsHistogramRequest") -> "scout_datareview_api_CheckAlertsHistogramResponse":
51523
51529
  """
51524
- Returns a histogram of alerts that occur across the provided runs.
51530
+ Returns a histogram of alerts that occur across the provided runs or assets. At least one run or asset must be specified.
51525
51531
  """
51526
51532
 
51527
51533
  _headers: Dict[str, Any] = {
@@ -51553,7 +51559,7 @@ the automatic checks against the run.
51553
51559
 
51554
51560
  def search_check_alerts(self, auth_header: str, request: "scout_datareview_api_SearchCheckAlertsRequest") -> "scout_datareview_api_SearchCheckAlertsResponse":
51555
51561
  """
51556
- Returns the check alerts under the provided search parameters.
51562
+ Returns the check alerts under the provided search parameters. At least one run or asset must be specified.
51557
51563
  """
51558
51564
 
51559
51565
  _headers: Dict[str, Any] = {
@@ -57028,15 +57034,17 @@ class scout_integrations_api_CreateIntegrationRequest(ConjureBeanType):
57028
57034
  return {
57029
57035
  'name': ConjureFieldDefinition('name', str),
57030
57036
  'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
57031
- 'create_integration_details': ConjureFieldDefinition('createIntegrationDetails', scout_integrations_api_CreateIntegrationDetails)
57037
+ 'create_integration_details': ConjureFieldDefinition('createIntegrationDetails', scout_integrations_api_CreateIntegrationDetails),
57038
+ 'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
57032
57039
  }
57033
57040
 
57034
- __slots__: List[str] = ['_name', '_description', '_create_integration_details']
57041
+ __slots__: List[str] = ['_name', '_description', '_create_integration_details', '_workspace']
57035
57042
 
57036
- def __init__(self, create_integration_details: "scout_integrations_api_CreateIntegrationDetails", name: str, description: Optional[str] = None) -> None:
57043
+ def __init__(self, create_integration_details: "scout_integrations_api_CreateIntegrationDetails", name: str, description: Optional[str] = None, workspace: Optional[str] = None) -> None:
57037
57044
  self._name = name
57038
57045
  self._description = description
57039
57046
  self._create_integration_details = create_integration_details
57047
+ self._workspace = workspace
57040
57048
 
57041
57049
  @builtins.property
57042
57050
  def name(self) -> str:
@@ -57050,6 +57058,14 @@ class scout_integrations_api_CreateIntegrationRequest(ConjureBeanType):
57050
57058
  def create_integration_details(self) -> "scout_integrations_api_CreateIntegrationDetails":
57051
57059
  return self._create_integration_details
57052
57060
 
57061
+ @builtins.property
57062
+ def workspace(self) -> Optional[str]:
57063
+ """
57064
+ The workspace in which to create the integration. If not provided, the integration will be created in the default workspace for
57065
+ the user's organization, if the default workspace for the organization is configured.
57066
+ """
57067
+ return self._workspace
57068
+
57053
57069
 
57054
57070
  scout_integrations_api_CreateIntegrationRequest.__name__ = "CreateIntegrationRequest"
57055
57071
  scout_integrations_api_CreateIntegrationRequest.__qualname__ = "CreateIntegrationRequest"
@@ -57290,7 +57306,7 @@ class scout_integrations_api_IntegrationsService(Service):
57290
57306
  Service for managing integrations with external services.
57291
57307
  """
57292
57308
 
57293
- def generate_slack_webhook_link(self, auth_header: str) -> "scout_integrations_api_GenerateSlackWebhookResponse":
57309
+ def generate_slack_webhook_link(self, auth_header: str, workspace: Optional[str] = None) -> "scout_integrations_api_GenerateSlackWebhookResponse":
57294
57310
  """
57295
57311
  Generates link to request permissions for Slack bot to join workspaces and use a webhook.
57296
57312
  """
@@ -57301,6 +57317,7 @@ class scout_integrations_api_IntegrationsService(Service):
57301
57317
  }
57302
57318
 
57303
57319
  _params: Dict[str, Any] = {
57320
+ 'workspace': workspace,
57304
57321
  }
57305
57322
 
57306
57323
  _path_params: Dict[str, Any] = {
@@ -57481,10 +57498,11 @@ class scout_integrations_api_IntegrationsService(Service):
57481
57498
  _decoder = ConjureDecoder()
57482
57499
  return _decoder.decode(_response.json(), scout_integrations_api_Integration, self._return_none_for_unknown_union_types)
57483
57500
 
57484
- def list_integrations(self, auth_header: str) -> List["scout_integrations_api_Integration"]:
57501
+ def list_integrations(self, auth_header: str, workspaces: List[str] = None) -> List["scout_integrations_api_Integration"]:
57485
57502
  """
57486
57503
  Lists all integrations.
57487
57504
  """
57505
+ workspaces = workspaces if workspaces is not None else []
57488
57506
 
57489
57507
  _headers: Dict[str, Any] = {
57490
57508
  'Accept': 'application/json',
@@ -57492,6 +57510,7 @@ class scout_integrations_api_IntegrationsService(Service):
57492
57510
  }
57493
57511
 
57494
57512
  _params: Dict[str, Any] = {
57513
+ 'workspaces': workspaces,
57495
57514
  }
57496
57515
 
57497
57516
  _path_params: Dict[str, Any] = {
@@ -58256,9 +58275,9 @@ scout_internal_search_api_TimestampField.__qualname__ = "TimestampField"
58256
58275
  scout_internal_search_api_TimestampField.__module__ = "nominal_api.scout_internal_search_api"
58257
58276
 
58258
58277
 
58259
- class scout_jobs_api_JobService(Service):
58278
+ class scout_jobs_api_InternalJobService(Service):
58260
58279
  """
58261
- The Job Service is responsible for running jobs for checklist executions.
58280
+ The Internal Job Service is responsible for running jobs for checklist executions.
58262
58281
  """
58263
58282
 
58264
58283
  def submit_jobs(self, auth_header: str, request: "scout_checks_api_SubmitJobsRequest") -> "scout_checks_api_SubmitJobsResponse":
@@ -58280,7 +58299,7 @@ class scout_jobs_api_JobService(Service):
58280
58299
 
58281
58300
  _json: Any = ConjureEncoder().default(request)
58282
58301
 
58283
- _path = '/jobs/v1/submitJobs'
58302
+ _path = '/internal/jobs/v1/submitJobs'
58284
58303
  _path = _path.format(**_path_params)
58285
58304
 
58286
58305
  _response: Response = self._request(
@@ -58293,6 +58312,17 @@ class scout_jobs_api_JobService(Service):
58293
58312
  _decoder = ConjureDecoder()
58294
58313
  return _decoder.decode(_response.json(), scout_checks_api_SubmitJobsResponse, self._return_none_for_unknown_union_types)
58295
58314
 
58315
+
58316
+ scout_jobs_api_InternalJobService.__name__ = "InternalJobService"
58317
+ scout_jobs_api_InternalJobService.__qualname__ = "InternalJobService"
58318
+ scout_jobs_api_InternalJobService.__module__ = "nominal_api.scout_jobs_api"
58319
+
58320
+
58321
+ class scout_jobs_api_JobService(Service):
58322
+ """
58323
+ The Job Service is responsible for returning information about jobs for checklist executions.
58324
+ """
58325
+
58296
58326
  def get_job_report(self, auth_header: str, job_rid: str) -> "scout_checks_api_JobReport":
58297
58327
  """
58298
58328
  Fetches the job report for a job RID. Throws ResourcesNotFound if no job exists with this job RID.
@@ -65082,6 +65112,41 @@ optional set of bounds.
65082
65112
  _decoder = ConjureDecoder()
65083
65113
  return _decoder.decode(_response.json(), List[scout_video_api_SegmentSummary], self._return_none_for_unknown_union_types)
65084
65114
 
65115
+ def get_file_summaries(self, auth_header: str, request: "scout_video_api_GetFileSummariesRequest", video_rid: str) -> "scout_video_api_GetFileSummariesResponse":
65116
+ """
65117
+ Returns the min and max absolute timestamps from non-archived video files associated with a given video that
65118
+ overlap with an optional set of bounds. The files on the edges of the bounds will be truncated to segments
65119
+ that are inside or overlap with the bounds.
65120
+ """
65121
+
65122
+ _headers: Dict[str, Any] = {
65123
+ 'Accept': 'application/json',
65124
+ 'Content-Type': 'application/json',
65125
+ 'Authorization': auth_header,
65126
+ }
65127
+
65128
+ _params: Dict[str, Any] = {
65129
+ }
65130
+
65131
+ _path_params: Dict[str, Any] = {
65132
+ 'videoRid': video_rid,
65133
+ }
65134
+
65135
+ _json: Any = ConjureEncoder().default(request)
65136
+
65137
+ _path = '/video/v1/videos/{videoRid}/get-ranges-with-existing-segment-data'
65138
+ _path = _path.format(**_path_params)
65139
+
65140
+ _response: Response = self._request(
65141
+ 'POST',
65142
+ self._uri + _path,
65143
+ params=_params,
65144
+ headers=_headers,
65145
+ json=_json)
65146
+
65147
+ _decoder = ConjureDecoder()
65148
+ return _decoder.decode(_response.json(), scout_video_api_GetFileSummariesResponse, self._return_none_for_unknown_union_types)
65149
+
65085
65150
 
65086
65151
  scout_video_VideoService.__name__ = "VideoService"
65087
65152
  scout_video_VideoService.__qualname__ = "VideoService"
@@ -65474,6 +65539,35 @@ scout_video_api_ErrorIngestStatus.__qualname__ = "ErrorIngestStatus"
65474
65539
  scout_video_api_ErrorIngestStatus.__module__ = "nominal_api.scout_video_api"
65475
65540
 
65476
65541
 
65542
+ class scout_video_api_FileSummary(ConjureBeanType):
65543
+
65544
+ @builtins.classmethod
65545
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
65546
+ return {
65547
+ 'file_rid': ConjureFieldDefinition('fileRid', api_rids_VideoFileRid),
65548
+ 'bounds': ConjureFieldDefinition('bounds', scout_video_api_Bounds)
65549
+ }
65550
+
65551
+ __slots__: List[str] = ['_file_rid', '_bounds']
65552
+
65553
+ def __init__(self, bounds: "scout_video_api_Bounds", file_rid: str) -> None:
65554
+ self._file_rid = file_rid
65555
+ self._bounds = bounds
65556
+
65557
+ @builtins.property
65558
+ def file_rid(self) -> str:
65559
+ return self._file_rid
65560
+
65561
+ @builtins.property
65562
+ def bounds(self) -> "scout_video_api_Bounds":
65563
+ return self._bounds
65564
+
65565
+
65566
+ scout_video_api_FileSummary.__name__ = "FileSummary"
65567
+ scout_video_api_FileSummary.__qualname__ = "FileSummary"
65568
+ scout_video_api_FileSummary.__module__ = "nominal_api.scout_video_api"
65569
+
65570
+
65477
65571
  class scout_video_api_GetEnrichedVideoIngestStatusRequest(ConjureBeanType):
65478
65572
 
65479
65573
  @builtins.classmethod
@@ -65503,6 +65597,52 @@ scout_video_api_GetEnrichedVideoIngestStatusRequest.__qualname__ = "GetEnrichedV
65503
65597
  scout_video_api_GetEnrichedVideoIngestStatusRequest.__module__ = "nominal_api.scout_video_api"
65504
65598
 
65505
65599
 
65600
+ class scout_video_api_GetFileSummariesRequest(ConjureBeanType):
65601
+
65602
+ @builtins.classmethod
65603
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
65604
+ return {
65605
+ 'bounds': ConjureFieldDefinition('bounds', OptionalTypeWrapper[scout_video_api_Bounds])
65606
+ }
65607
+
65608
+ __slots__: List[str] = ['_bounds']
65609
+
65610
+ def __init__(self, bounds: Optional["scout_video_api_Bounds"] = None) -> None:
65611
+ self._bounds = bounds
65612
+
65613
+ @builtins.property
65614
+ def bounds(self) -> Optional["scout_video_api_Bounds"]:
65615
+ return self._bounds
65616
+
65617
+
65618
+ scout_video_api_GetFileSummariesRequest.__name__ = "GetFileSummariesRequest"
65619
+ scout_video_api_GetFileSummariesRequest.__qualname__ = "GetFileSummariesRequest"
65620
+ scout_video_api_GetFileSummariesRequest.__module__ = "nominal_api.scout_video_api"
65621
+
65622
+
65623
+ class scout_video_api_GetFileSummariesResponse(ConjureBeanType):
65624
+
65625
+ @builtins.classmethod
65626
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
65627
+ return {
65628
+ 'file_summaries': ConjureFieldDefinition('fileSummaries', List[scout_video_api_FileSummary])
65629
+ }
65630
+
65631
+ __slots__: List[str] = ['_file_summaries']
65632
+
65633
+ def __init__(self, file_summaries: List["scout_video_api_FileSummary"]) -> None:
65634
+ self._file_summaries = file_summaries
65635
+
65636
+ @builtins.property
65637
+ def file_summaries(self) -> List["scout_video_api_FileSummary"]:
65638
+ return self._file_summaries
65639
+
65640
+
65641
+ scout_video_api_GetFileSummariesResponse.__name__ = "GetFileSummariesResponse"
65642
+ scout_video_api_GetFileSummariesResponse.__qualname__ = "GetFileSummariesResponse"
65643
+ scout_video_api_GetFileSummariesResponse.__module__ = "nominal_api.scout_video_api"
65644
+
65645
+
65506
65646
  class scout_video_api_GetIngestStatusResponse(ConjureBeanType):
65507
65647
 
65508
65648
  @builtins.classmethod
@@ -1,5 +1,6 @@
1
1
  # coding=utf-8
2
2
  from .._impl import (
3
+ scout_jobs_api_InternalJobService as InternalJobService,
3
4
  scout_jobs_api_JobService as JobService,
4
5
  )
5
6
 
@@ -11,7 +11,10 @@ from .._impl import (
11
11
  scout_video_api_EnrichedVideoIngestStatus as EnrichedVideoIngestStatus,
12
12
  scout_video_api_ErrorIngestStatus as ErrorIngestStatus,
13
13
  scout_video_api_ErrorType as ErrorType,
14
+ scout_video_api_FileSummary as FileSummary,
14
15
  scout_video_api_GetEnrichedVideoIngestStatusRequest as GetEnrichedVideoIngestStatusRequest,
16
+ scout_video_api_GetFileSummariesRequest as GetFileSummariesRequest,
17
+ scout_video_api_GetFileSummariesResponse as GetFileSummariesResponse,
15
18
  scout_video_api_GetIngestStatusResponse as GetIngestStatusResponse,
16
19
  scout_video_api_GetPlaylistInBoundsRequest as GetPlaylistInBoundsRequest,
17
20
  scout_video_api_GetSegmentByTimestampRequest as GetSegmentByTimestampRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.600.1
3
+ Version: 0.602.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<3,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=WQUE9ZrHGG6WPz3S846IAANGfldUjSSBdsFIctJ581Q,1968
2
- nominal_api/_impl.py,sha256=RN_ZBGYUug4k6oBQH4y6oXUril9sIp6ZBk8lxElwY9k,2882390
1
+ nominal_api/__init__.py,sha256=Mw_c0LOstyIhufvz-ac9kFOtqE_l9N0AVRtQ5zHXo60,1968
2
+ nominal_api/_impl.py,sha256=kqtOVzfjkY9gAesWyzBVVh6m81Qcn45_1qWo3WFNfFk,2887742
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
5
5
  nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -43,7 +43,7 @@ nominal_api/scout_favorites/__init__.py,sha256=qiOvaWVVl3O7tXZIq_NrCWFcMx-Q-H5sA
43
43
  nominal_api/scout_favorites_api/__init__.py,sha256=mS8Qqaf8Cwl_wTvllegV4ttIWL4uot2VmsK57AbSXk0,524
44
44
  nominal_api/scout_integrations_api/__init__.py,sha256=8iXeDLEbgMYEZz0dEZsvUj7v9JkuaaTdxkzS-ld8E0U,1432
45
45
  nominal_api/scout_internal_search_api/__init__.py,sha256=CF2YYZXkl95YkEgCbhqXSdAQ4ayPDDOJiCcyoFKOaA8,520
46
- nominal_api/scout_jobs_api/__init__.py,sha256=nUQGFB_81AimGm1X0atHV4XXjd5WpY6d9SOCrj_BgUQ,85
46
+ nominal_api/scout_jobs_api/__init__.py,sha256=_2ETRUShk1pestGAKzHwc69S-ililQRD4Y9JLD5qqZ4,146
47
47
  nominal_api/scout_layout_api/__init__.py,sha256=mKszV44ni9VODK9jFyY3O9YOV9DYltKJ20s91922EKc,1363
48
48
  nominal_api/scout_metadata/__init__.py,sha256=GIhWKJL2XSMB0iGaKfcGgmPHuvGWWmkK4lXSa1YsB44,332
49
49
  nominal_api/scout_notebook_api/__init__.py,sha256=QW0vg8ZrAmuctjnNLxTnqtwyQoX-H9MOkHlLWioe5AA,1230
@@ -54,7 +54,7 @@ nominal_api/scout_template_api/__init__.py,sha256=bsu8qPiZ4gf67G5iFvwsfkqEKJRZ7L
54
54
  nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
55
55
  nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
56
56
  nominal_api/scout_video/__init__.py,sha256=zB7mM23yGAgC529rF4gjDmqcLRbsp0kJA3xef8meZko,200
57
- nominal_api/scout_video_api/__init__.py,sha256=QuI0ou7Bg_Nn4AdhALNXGQryuleyeV34vSUK53TtREg,3758
57
+ nominal_api/scout_video_api/__init__.py,sha256=38gU3YzC_xtAzQLx8T3GPtfla9Bd5DTTRL299fjGgeg,3952
58
58
  nominal_api/scout_workbookcommon_api/__init__.py,sha256=6Ai0cYNOOw2A6JOlKzraTbpZwolspM-WTqVGLMN2HdI,413
59
59
  nominal_api/secrets_api/__init__.py,sha256=V5BpnbNzjdMP8kgvR2N6SEVcVyXi6Vyl_lh_5fKjJzw,736
60
60
  nominal_api/security_api_workspace/__init__.py,sha256=18MQr8sUGDfaXl50sMR7objE5rBJ9dZ1Sjwuyf997dA,156
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
72
72
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
73
73
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
74
74
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
75
- nominal_api-0.600.1.dist-info/METADATA,sha256=X0QHV4n9Kb6Kdf3V67efLq-yUq1P48oJ_S4J5SDMK6s,199
76
- nominal_api-0.600.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
77
- nominal_api-0.600.1.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.600.1.dist-info/RECORD,,
75
+ nominal_api-0.602.0.dist-info/METADATA,sha256=ZzFc-3CcCl8ij-71yUytmhafyH-F5YETQ3oKtej-YlI,199
76
+ nominal_api-0.602.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
77
+ nominal_api-0.602.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.602.0.dist-info/RECORD,,