nominal-api 0.559.0__py3-none-any.whl → 0.561.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
@@ -69,5 +69,5 @@ __all__ = [
69
69
 
70
70
  __conjure_generator_version__ = "4.9.0"
71
71
 
72
- __version__ = "0.559.0"
72
+ __version__ = "0.561.0"
73
73
 
nominal_api/_impl.py CHANGED
@@ -62466,13 +62466,13 @@ class scout_video_api_CreateVideoFileRequest(ConjureBeanType):
62466
62466
  'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
62467
62467
  'labels': ConjureFieldDefinition('labels', List[api_Label]),
62468
62468
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
62469
- 'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoOriginMetadata),
62469
+ 'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoFileOriginMetadata),
62470
62470
  'video_rid': ConjureFieldDefinition('videoRid', api_rids_VideoRid)
62471
62471
  }
62472
62472
 
62473
62473
  __slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_origin_metadata', '_video_rid']
62474
62474
 
62475
- def __init__(self, labels: List[str], origin_metadata: "scout_video_api_VideoOriginMetadata", properties: Dict[str, str], title: str, video_rid: str, description: Optional[str] = None) -> None:
62475
+ def __init__(self, labels: List[str], origin_metadata: "scout_video_api_VideoFileOriginMetadata", properties: Dict[str, str], title: str, video_rid: str, description: Optional[str] = None) -> None:
62476
62476
  self._title = title
62477
62477
  self._description = description
62478
62478
  self._labels = labels
@@ -62497,7 +62497,7 @@ class scout_video_api_CreateVideoFileRequest(ConjureBeanType):
62497
62497
  return self._properties
62498
62498
 
62499
62499
  @builtins.property
62500
- def origin_metadata(self) -> "scout_video_api_VideoOriginMetadata":
62500
+ def origin_metadata(self) -> "scout_video_api_VideoFileOriginMetadata":
62501
62501
  return self._origin_metadata
62502
62502
 
62503
62503
  @builtins.property
@@ -64072,13 +64072,13 @@ class scout_video_api_VideoFile(ConjureBeanType):
64072
64072
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
64073
64073
  'created_by': ConjureFieldDefinition('createdBy', str),
64074
64074
  'created_at': ConjureFieldDefinition('createdAt', str),
64075
- 'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoOriginMetadata),
64075
+ 'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoFileOriginMetadata),
64076
64076
  'segment_metadata': ConjureFieldDefinition('segmentMetadata', OptionalTypeWrapper[scout_video_api_VideoFileSegmentsMetadata])
64077
64077
  }
64078
64078
 
64079
64079
  __slots__: List[str] = ['_rid', '_video_rid', '_title', '_description', '_labels', '_properties', '_created_by', '_created_at', '_origin_metadata', '_segment_metadata']
64080
64080
 
64081
- def __init__(self, created_at: str, created_by: str, labels: List[str], origin_metadata: "scout_video_api_VideoOriginMetadata", properties: Dict[str, str], rid: str, title: str, video_rid: str, description: Optional[str] = None, segment_metadata: Optional["scout_video_api_VideoFileSegmentsMetadata"] = None) -> None:
64081
+ def __init__(self, created_at: str, created_by: str, labels: List[str], origin_metadata: "scout_video_api_VideoFileOriginMetadata", properties: Dict[str, str], rid: str, title: str, video_rid: str, description: Optional[str] = None, segment_metadata: Optional["scout_video_api_VideoFileSegmentsMetadata"] = None) -> None:
64082
64082
  self._rid = rid
64083
64083
  self._video_rid = video_rid
64084
64084
  self._title = title
@@ -64123,7 +64123,7 @@ class scout_video_api_VideoFile(ConjureBeanType):
64123
64123
  return self._created_at
64124
64124
 
64125
64125
  @builtins.property
64126
- def origin_metadata(self) -> "scout_video_api_VideoOriginMetadata":
64126
+ def origin_metadata(self) -> "scout_video_api_VideoFileOriginMetadata":
64127
64127
  return self._origin_metadata
64128
64128
 
64129
64129
  @builtins.property
@@ -64136,6 +64136,48 @@ scout_video_api_VideoFile.__qualname__ = "VideoFile"
64136
64136
  scout_video_api_VideoFile.__module__ = "nominal_api.scout_video_api"
64137
64137
 
64138
64138
 
64139
+ class scout_video_api_VideoFileOriginMetadata(ConjureBeanType):
64140
+ """
64141
+ Metadata about the origin of the video file. This includes the original source of the video file and
64142
+ additional timestamp metadata used to time-sync the video file.
64143
+ """
64144
+
64145
+ @builtins.classmethod
64146
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
64147
+ return {
64148
+ 'source': ConjureFieldDefinition('source', api_Handle),
64149
+ 'source_with_original_handle': ConjureFieldDefinition('sourceWithOriginalHandle', OptionalTypeWrapper[api_Handle]),
64150
+ 'timestamp_manifest': ConjureFieldDefinition('timestampManifest', scout_video_api_VideoFileTimestampManifest)
64151
+ }
64152
+
64153
+ __slots__: List[str] = ['_source', '_source_with_original_handle', '_timestamp_manifest']
64154
+
64155
+ def __init__(self, source: "api_Handle", timestamp_manifest: "scout_video_api_VideoFileTimestampManifest", source_with_original_handle: Optional["api_Handle"] = None) -> None:
64156
+ self._source = source
64157
+ self._source_with_original_handle = source_with_original_handle
64158
+ self._timestamp_manifest = timestamp_manifest
64159
+
64160
+ @builtins.property
64161
+ def source(self) -> "api_Handle":
64162
+ return self._source
64163
+
64164
+ @builtins.property
64165
+ def source_with_original_handle(self) -> Optional["api_Handle"]:
64166
+ """
64167
+ Will be present if the handle was copied from a different bucket to the Nominal bucket.
64168
+ """
64169
+ return self._source_with_original_handle
64170
+
64171
+ @builtins.property
64172
+ def timestamp_manifest(self) -> "scout_video_api_VideoFileTimestampManifest":
64173
+ return self._timestamp_manifest
64174
+
64175
+
64176
+ scout_video_api_VideoFileOriginMetadata.__name__ = "VideoFileOriginMetadata"
64177
+ scout_video_api_VideoFileOriginMetadata.__qualname__ = "VideoFileOriginMetadata"
64178
+ scout_video_api_VideoFileOriginMetadata.__module__ = "nominal_api.scout_video_api"
64179
+
64180
+
64139
64181
  class scout_video_api_VideoFileSegmentsMetadata(ConjureBeanType):
64140
64182
 
64141
64183
  @builtins.classmethod
@@ -64201,6 +64243,108 @@ scout_video_api_VideoFileSegmentsMetadata.__qualname__ = "VideoFileSegmentsMetad
64201
64243
  scout_video_api_VideoFileSegmentsMetadata.__module__ = "nominal_api.scout_video_api"
64202
64244
 
64203
64245
 
64246
+ class scout_video_api_VideoFileTimestampManifest(ConjureUnionType):
64247
+ """A video file’s timestamp manifest specifies how to determine absolute timestamps for each frame. In an MCAP
64248
+ file, this data is embedded within the source file. Alternatively, the manifest may be provided as an external
64249
+ sidecar file. If no manifest is available, the timestamps are calculated by applying a starting offset to the
64250
+ presentation timestamp of each frame."""
64251
+ _mcap: Optional["scout_video_api_McapTimestampManifest"] = None
64252
+ _s3path: Optional[str] = None
64253
+ _no_manifest: Optional["scout_video_api_NoTimestampManifest"] = None
64254
+
64255
+ @builtins.classmethod
64256
+ def _options(cls) -> Dict[str, ConjureFieldDefinition]:
64257
+ return {
64258
+ 'mcap': ConjureFieldDefinition('mcap', scout_video_api_McapTimestampManifest),
64259
+ 's3path': ConjureFieldDefinition('s3path', api_S3Path),
64260
+ 'no_manifest': ConjureFieldDefinition('noManifest', scout_video_api_NoTimestampManifest)
64261
+ }
64262
+
64263
+ def __init__(
64264
+ self,
64265
+ mcap: Optional["scout_video_api_McapTimestampManifest"] = None,
64266
+ s3path: Optional[str] = None,
64267
+ no_manifest: Optional["scout_video_api_NoTimestampManifest"] = None,
64268
+ type_of_union: Optional[str] = None
64269
+ ) -> None:
64270
+ if type_of_union is None:
64271
+ if (mcap is not None) + (s3path is not None) + (no_manifest is not None) != 1:
64272
+ raise ValueError('a union must contain a single member')
64273
+
64274
+ if mcap is not None:
64275
+ self._mcap = mcap
64276
+ self._type = 'mcap'
64277
+ if s3path is not None:
64278
+ self._s3path = s3path
64279
+ self._type = 's3path'
64280
+ if no_manifest is not None:
64281
+ self._no_manifest = no_manifest
64282
+ self._type = 'noManifest'
64283
+
64284
+ elif type_of_union == 'mcap':
64285
+ if mcap is None:
64286
+ raise ValueError('a union value must not be None')
64287
+ self._mcap = mcap
64288
+ self._type = 'mcap'
64289
+ elif type_of_union == 's3path':
64290
+ if s3path is None:
64291
+ raise ValueError('a union value must not be None')
64292
+ self._s3path = s3path
64293
+ self._type = 's3path'
64294
+ elif type_of_union == 'noManifest':
64295
+ if no_manifest is None:
64296
+ raise ValueError('a union value must not be None')
64297
+ self._no_manifest = no_manifest
64298
+ self._type = 'noManifest'
64299
+
64300
+ @builtins.property
64301
+ def mcap(self) -> Optional["scout_video_api_McapTimestampManifest"]:
64302
+ return self._mcap
64303
+
64304
+ @builtins.property
64305
+ def s3path(self) -> Optional[str]:
64306
+ return self._s3path
64307
+
64308
+ @builtins.property
64309
+ def no_manifest(self) -> Optional["scout_video_api_NoTimestampManifest"]:
64310
+ return self._no_manifest
64311
+
64312
+ def accept(self, visitor) -> Any:
64313
+ if not isinstance(visitor, scout_video_api_VideoFileTimestampManifestVisitor):
64314
+ raise ValueError('{} is not an instance of scout_video_api_VideoFileTimestampManifestVisitor'.format(visitor.__class__.__name__))
64315
+ if self._type == 'mcap' and self.mcap is not None:
64316
+ return visitor._mcap(self.mcap)
64317
+ if self._type == 's3path' and self.s3path is not None:
64318
+ return visitor._s3path(self.s3path)
64319
+ if self._type == 'noManifest' and self.no_manifest is not None:
64320
+ return visitor._no_manifest(self.no_manifest)
64321
+
64322
+
64323
+ scout_video_api_VideoFileTimestampManifest.__name__ = "VideoFileTimestampManifest"
64324
+ scout_video_api_VideoFileTimestampManifest.__qualname__ = "VideoFileTimestampManifest"
64325
+ scout_video_api_VideoFileTimestampManifest.__module__ = "nominal_api.scout_video_api"
64326
+
64327
+
64328
+ class scout_video_api_VideoFileTimestampManifestVisitor:
64329
+
64330
+ @abstractmethod
64331
+ def _mcap(self, mcap: "scout_video_api_McapTimestampManifest") -> Any:
64332
+ pass
64333
+
64334
+ @abstractmethod
64335
+ def _s3path(self, s3path: str) -> Any:
64336
+ pass
64337
+
64338
+ @abstractmethod
64339
+ def _no_manifest(self, no_manifest: "scout_video_api_NoTimestampManifest") -> Any:
64340
+ pass
64341
+
64342
+
64343
+ scout_video_api_VideoFileTimestampManifestVisitor.__name__ = "VideoFileTimestampManifestVisitor"
64344
+ scout_video_api_VideoFileTimestampManifestVisitor.__qualname__ = "VideoFileTimestampManifestVisitor"
64345
+ scout_video_api_VideoFileTimestampManifestVisitor.__module__ = "nominal_api.scout_video_api"
64346
+
64347
+
64204
64348
  class scout_video_api_VideoOriginMetadata(ConjureBeanType):
64205
64349
 
64206
64350
  @builtins.classmethod
@@ -44,7 +44,10 @@ from .._impl import (
44
44
  scout_video_api_Video as Video,
45
45
  scout_video_api_VideoAllSegmentsMetadata as VideoAllSegmentsMetadata,
46
46
  scout_video_api_VideoFile as VideoFile,
47
+ scout_video_api_VideoFileOriginMetadata as VideoFileOriginMetadata,
47
48
  scout_video_api_VideoFileSegmentsMetadata as VideoFileSegmentsMetadata,
49
+ scout_video_api_VideoFileTimestampManifest as VideoFileTimestampManifest,
50
+ scout_video_api_VideoFileTimestampManifestVisitor as VideoFileTimestampManifestVisitor,
48
51
  scout_video_api_VideoOriginMetadata as VideoOriginMetadata,
49
52
  scout_video_api_VideoTimestampManifest as VideoTimestampManifest,
50
53
  scout_video_api_VideoTimestampManifestVisitor as VideoTimestampManifestVisitor,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.559.0
3
+ Version: 0.561.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=QRBRUPsMY611D-_uobEmrsgYle4quMTRUI8YtDH5jrc,1791
2
- nominal_api/_impl.py,sha256=N_dDDIUzXRIpzEwrt333xdAVUzFoXHRrsjo9KNEye1g,2744409
1
+ nominal_api/__init__.py,sha256=WCUVSDIxHnrpkC3OrZ0RdDTn70pvrq8p3oc_017Org0,1791
2
+ nominal_api/_impl.py,sha256=QI-fkoSmKNOZd1_tCnnbk9jirTONC6EihQQmnmbVEdI,2750650
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_rids/__init__.py,sha256=MwCU7tf4EQBdNPY12rgPdr4y11iowEXxYqtNCvw7sdo,380
@@ -52,7 +52,7 @@ nominal_api/scout_template_api/__init__.py,sha256=bsu8qPiZ4gf67G5iFvwsfkqEKJRZ7L
52
52
  nominal_api/scout_units_api/__init__.py,sha256=KxRDScfumX__0ncWJftGvgApn_LBTfnIBAvnaBrcA5A,368
53
53
  nominal_api/scout_versioning_api/__init__.py,sha256=Sf4T4t0rZXNRIZgkqLBN3yh0sAnrxiuzaTfDQVVkyO4,1323
54
54
  nominal_api/scout_video/__init__.py,sha256=zB7mM23yGAgC529rF4gjDmqcLRbsp0kJA3xef8meZko,200
55
- nominal_api/scout_video_api/__init__.py,sha256=gafiE-WxxQLyTq4RvIZory2Z8pQccYTA9OCeNonsDwk,3160
55
+ nominal_api/scout_video_api/__init__.py,sha256=u8QBMJLP13HeCieE716zPq_2Yia3b0Uf80teGjEZ7nE,3402
56
56
  nominal_api/scout_workbookcommon_api/__init__.py,sha256=6Ai0cYNOOw2A6JOlKzraTbpZwolspM-WTqVGLMN2HdI,413
57
57
  nominal_api/secrets_api/__init__.py,sha256=V5BpnbNzjdMP8kgvR2N6SEVcVyXi6Vyl_lh_5fKjJzw,736
58
58
  nominal_api/storage_datasource_api/__init__.py,sha256=jh_OZE_b4nBNAvnyenBjw8aGZOnvIXR6qvUKd31fXOk,445
@@ -66,7 +66,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=KuHLafDLeHzOTl0B6j7T
66
66
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
67
67
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
68
68
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
69
- nominal_api-0.559.0.dist-info/METADATA,sha256=YvK9Il-Pqkwmc2aE1PuEW6R57Cmjdmuipmfh_f89y44,199
70
- nominal_api-0.559.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
- nominal_api-0.559.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
- nominal_api-0.559.0.dist-info/RECORD,,
69
+ nominal_api-0.561.0.dist-info/METADATA,sha256=-zI3O6cQry8HxK9Imb8dWeTZG8VS9aAAI8PEGmFRlF8,199
70
+ nominal_api-0.561.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
71
+ nominal_api-0.561.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
72
+ nominal_api-0.561.0.dist-info/RECORD,,