clarifai-grpc 11.9.1__py3-none-any.whl → 11.10.7__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.
@@ -238,52 +238,6 @@ See https://cocodataset.org/#format-data.
238
238
  """
239
239
  global___DatasetVersionExportFormat = DatasetVersionExportFormat
240
240
 
241
- class _ExpirationAction:
242
- ValueType = typing.NewType("ValueType", builtins.int)
243
- V: typing_extensions.TypeAlias = ValueType
244
-
245
- class _ExpirationActionEnumTypeWrapper(
246
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ExpirationAction.ValueType],
247
- builtins.type,
248
- ):
249
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
250
- EXPIRATION_ACTION_NOT_SET: _ExpirationAction.ValueType # 0
251
- DELAY: _ExpirationAction.ValueType # 1
252
- """Progressively delay the execution of operations"""
253
- EXPIRY: _ExpirationAction.ValueType # 2
254
- """Cease functioning"""
255
-
256
- class ExpirationAction(_ExpirationAction, metaclass=_ExpirationActionEnumTypeWrapper): ...
257
-
258
- EXPIRATION_ACTION_NOT_SET: ExpirationAction.ValueType # 0
259
- DELAY: ExpirationAction.ValueType # 1
260
- """Progressively delay the execution of operations"""
261
- EXPIRY: ExpirationAction.ValueType # 2
262
- """Cease functioning"""
263
- global___ExpirationAction = ExpirationAction
264
-
265
- class _LicenseScope:
266
- ValueType = typing.NewType("ValueType", builtins.int)
267
- V: typing_extensions.TypeAlias = ValueType
268
-
269
- class _LicenseScopeEnumTypeWrapper(
270
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LicenseScope.ValueType],
271
- builtins.type,
272
- ):
273
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
274
- LICENSE_SCOPE_NOT_SET: _LicenseScope.ValueType # 0
275
- PREDICT: _LicenseScope.ValueType # 1
276
- TRAIN: _LicenseScope.ValueType # 2
277
- SEARCH: _LicenseScope.ValueType # 3
278
-
279
- class LicenseScope(_LicenseScope, metaclass=_LicenseScopeEnumTypeWrapper): ...
280
-
281
- LICENSE_SCOPE_NOT_SET: LicenseScope.ValueType # 0
282
- PREDICT: LicenseScope.ValueType # 1
283
- TRAIN: LicenseScope.ValueType # 2
284
- SEARCH: LicenseScope.ValueType # 3
285
- global___LicenseScope = LicenseScope
286
-
287
241
  class _LicenseType:
288
242
  ValueType = typing.NewType("ValueType", builtins.int)
289
243
  V: typing_extensions.TypeAlias = ValueType
@@ -2636,6 +2590,7 @@ class Data(google.protobuf.message.Message):
2636
2590
  BYTES_VALUE_FIELD_NUMBER: builtins.int
2637
2591
  BOOL_VALUE_FIELD_NUMBER: builtins.int
2638
2592
  STRING_VALUE_FIELD_NUMBER: builtins.int
2593
+ STRUCT_VALUE_FIELD_NUMBER: builtins.int
2639
2594
  @property
2640
2595
  def image(self) -> global___Image:
2641
2596
  """Input and output images."""
@@ -2728,6 +2683,9 @@ class Data(google.protobuf.message.Message):
2728
2683
  """Input and output bool data"""
2729
2684
  string_value: builtins.str
2730
2685
  """Input and output string data"""
2686
+ @property
2687
+ def struct_value(self) -> google.protobuf.struct_pb2.Struct:
2688
+ """To handle Input and output json"""
2731
2689
  def __init__(
2732
2690
  self,
2733
2691
  *,
@@ -2754,6 +2712,7 @@ class Data(google.protobuf.message.Message):
2754
2712
  bytes_value: builtins.bytes = ...,
2755
2713
  bool_value: builtins.bool = ...,
2756
2714
  string_value: builtins.str = ...,
2715
+ struct_value: google.protobuf.struct_pb2.Struct | None = ...,
2757
2716
  ) -> None: ...
2758
2717
  def HasField(
2759
2718
  self,
@@ -2768,6 +2727,8 @@ class Data(google.protobuf.message.Message):
2768
2727
  b"metadata",
2769
2728
  "ndarray",
2770
2729
  b"ndarray",
2730
+ "struct_value",
2731
+ b"struct_value",
2771
2732
  "text",
2772
2733
  b"text",
2773
2734
  "video",
@@ -2815,6 +2776,8 @@ class Data(google.protobuf.message.Message):
2815
2776
  b"regions",
2816
2777
  "string_value",
2817
2778
  b"string_value",
2779
+ "struct_value",
2780
+ b"struct_value",
2818
2781
  "text",
2819
2782
  b"text",
2820
2783
  "time_segments",
@@ -3671,6 +3634,7 @@ class Input(google.protobuf.message.Message):
3671
3634
  MODIFIED_AT_FIELD_NUMBER: builtins.int
3672
3635
  STATUS_FIELD_NUMBER: builtins.int
3673
3636
  DATASET_IDS_FIELD_NUMBER: builtins.int
3637
+ SETTINGS_FIELD_NUMBER: builtins.int
3674
3638
  id: builtins.str
3675
3639
  """The ID for the input"""
3676
3640
  @property
@@ -3702,6 +3666,9 @@ class Input(google.protobuf.message.Message):
3702
3666
  * to add inputs to dataset(s) in `PostInputs` endpoint.
3703
3667
  Note that this field is ignored for other endpoints, e.g. `GetInput`, `ListInputs` and `PatchInputs`.
3704
3668
  """
3669
+ @property
3670
+ def settings(self) -> global___InputSettings:
3671
+ """Global settings for annotation tracks."""
3705
3672
  def __init__(
3706
3673
  self,
3707
3674
  *,
@@ -3711,6 +3678,7 @@ class Input(google.protobuf.message.Message):
3711
3678
  modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
3712
3679
  status: proto.clarifai.api.status.status_pb2.Status | None = ...,
3713
3680
  dataset_ids: collections.abc.Iterable[builtins.str] | None = ...,
3681
+ settings: global___InputSettings | None = ...,
3714
3682
  ) -> None: ...
3715
3683
  def HasField(
3716
3684
  self,
@@ -3721,6 +3689,8 @@ class Input(google.protobuf.message.Message):
3721
3689
  b"data",
3722
3690
  "modified_at",
3723
3691
  b"modified_at",
3692
+ "settings",
3693
+ b"settings",
3724
3694
  "status",
3725
3695
  b"status",
3726
3696
  ],
@@ -3738,6 +3708,8 @@ class Input(google.protobuf.message.Message):
3738
3708
  b"id",
3739
3709
  "modified_at",
3740
3710
  b"modified_at",
3711
+ "settings",
3712
+ b"settings",
3741
3713
  "status",
3742
3714
  b"status",
3743
3715
  ],
@@ -3745,6 +3717,55 @@ class Input(google.protobuf.message.Message):
3745
3717
 
3746
3718
  global___Input = Input
3747
3719
 
3720
+ @typing_extensions.final
3721
+ class InputSettings(google.protobuf.message.Message):
3722
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
3723
+
3724
+ WORKER_FIELD_NUMBER: builtins.int
3725
+ SAMPLE_RATE_MS_FIELD_NUMBER: builtins.int
3726
+ SAMPLE_RATE_FRAME_FIELD_NUMBER: builtins.int
3727
+ PINNED_CONCEPTS_FIELD_NUMBER: builtins.int
3728
+ @property
3729
+ def worker(self) -> global___Worker:
3730
+ """Default model used for annotation generation (SAM2, etc.)
3731
+ Make sure to set correct model version id, app id and user id etc.
3732
+ Workflow is not supported here yet
3733
+ """
3734
+ sample_rate_ms: builtins.int
3735
+ """Sampling settings used"""
3736
+ sample_rate_frame: builtins.int
3737
+ @property
3738
+ def pinned_concepts(
3739
+ self,
3740
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Concept]:
3741
+ """Pinned concept ids"""
3742
+ def __init__(
3743
+ self,
3744
+ *,
3745
+ worker: global___Worker | None = ...,
3746
+ sample_rate_ms: builtins.int = ...,
3747
+ sample_rate_frame: builtins.int = ...,
3748
+ pinned_concepts: collections.abc.Iterable[global___Concept] | None = ...,
3749
+ ) -> None: ...
3750
+ def HasField(
3751
+ self, field_name: typing_extensions.Literal["worker", b"worker"]
3752
+ ) -> builtins.bool: ...
3753
+ def ClearField(
3754
+ self,
3755
+ field_name: typing_extensions.Literal[
3756
+ "pinned_concepts",
3757
+ b"pinned_concepts",
3758
+ "sample_rate_frame",
3759
+ b"sample_rate_frame",
3760
+ "sample_rate_ms",
3761
+ b"sample_rate_ms",
3762
+ "worker",
3763
+ b"worker",
3764
+ ],
3765
+ ) -> None: ...
3766
+
3767
+ global___InputSettings = InputSettings
3768
+
3748
3769
  @typing_extensions.final
3749
3770
  class InputBatch(google.protobuf.message.Message):
3750
3771
  """InputBatch is a batch of Input resources. Large amounts of inputs are usually
@@ -5619,7 +5640,7 @@ global___EvalInfo = EvalInfo
5619
5640
 
5620
5641
  @typing_extensions.final
5621
5642
  class ImportInfo(google.protobuf.message.Message):
5622
- """DEPRECATED: no longer support importing models from third party toolkits"""
5643
+ """DEPRECATED: no longer support importing models from third-party toolkits"""
5623
5644
 
5624
5645
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
5625
5646
 
@@ -16592,6 +16613,80 @@ class WorkflowVersionEvaluationData(google.protobuf.message.Message):
16592
16613
 
16593
16614
  global___WorkflowVersionEvaluationData = WorkflowVersionEvaluationData
16594
16615
 
16616
+ @typing_extensions.final
16617
+ class ArgoParameterOverride(google.protobuf.message.Message):
16618
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
16619
+
16620
+ NAME_FIELD_NUMBER: builtins.int
16621
+ VALUE_FIELD_NUMBER: builtins.int
16622
+ name: builtins.str
16623
+ value: builtins.str
16624
+ """Argo parameters are always strings"""
16625
+ def __init__(
16626
+ self,
16627
+ *,
16628
+ name: builtins.str = ...,
16629
+ value: builtins.str = ...,
16630
+ ) -> None: ...
16631
+ def ClearField(
16632
+ self, field_name: typing_extensions.Literal["name", b"name", "value", b"value"]
16633
+ ) -> None: ...
16634
+
16635
+ global___ArgoParameterOverride = ArgoParameterOverride
16636
+
16637
+ @typing_extensions.final
16638
+ class ArgoArgsOverride(google.protobuf.message.Message):
16639
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
16640
+
16641
+ PARAMETERS_FIELD_NUMBER: builtins.int
16642
+ @property
16643
+ def parameters(
16644
+ self,
16645
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
16646
+ global___ArgoParameterOverride
16647
+ ]: ...
16648
+ def __init__(
16649
+ self,
16650
+ *,
16651
+ parameters: collections.abc.Iterable[global___ArgoParameterOverride] | None = ...,
16652
+ ) -> None: ...
16653
+ def ClearField(
16654
+ self, field_name: typing_extensions.Literal["parameters", b"parameters"]
16655
+ ) -> None: ...
16656
+
16657
+ global___ArgoArgsOverride = ArgoArgsOverride
16658
+
16659
+ @typing_extensions.final
16660
+ class OrchestrationArgsOverride(google.protobuf.message.Message):
16661
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
16662
+
16663
+ ARGO_ARGS_OVERRIDE_FIELD_NUMBER: builtins.int
16664
+ @property
16665
+ def argo_args_override(self) -> global___ArgoArgsOverride:
16666
+ """Future: KubeFlowArgsOverride, AirflowArgsOverride, etc."""
16667
+ def __init__(
16668
+ self,
16669
+ *,
16670
+ argo_args_override: global___ArgoArgsOverride | None = ...,
16671
+ ) -> None: ...
16672
+ def HasField(
16673
+ self,
16674
+ field_name: typing_extensions.Literal[
16675
+ "argo_args_override", b"argo_args_override", "override", b"override"
16676
+ ],
16677
+ ) -> builtins.bool: ...
16678
+ def ClearField(
16679
+ self,
16680
+ field_name: typing_extensions.Literal[
16681
+ "argo_args_override", b"argo_args_override", "override", b"override"
16682
+ ],
16683
+ ) -> None: ...
16684
+ def WhichOneof(
16685
+ self, oneof_group: typing_extensions.Literal["override", b"override"]
16686
+ ) -> typing_extensions.Literal["argo_args_override"] | None: ...
16687
+
16688
+ global___OrchestrationArgsOverride = OrchestrationArgsOverride
16689
+
16595
16690
  @typing_extensions.final
16596
16691
  class ArgoOrchestrationSpec(google.protobuf.message.Message):
16597
16692
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -17073,6 +17168,59 @@ class Pipeline(google.protobuf.message.Message):
17073
17168
 
17074
17169
  global___Pipeline = Pipeline
17075
17170
 
17171
+ @typing_extensions.final
17172
+ class PipelineVersionConfig(google.protobuf.message.Message):
17173
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
17174
+
17175
+ @typing_extensions.final
17176
+ class StepVersionSecretsEntry(google.protobuf.message.Message):
17177
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
17178
+
17179
+ KEY_FIELD_NUMBER: builtins.int
17180
+ VALUE_FIELD_NUMBER: builtins.int
17181
+ key: builtins.str
17182
+ @property
17183
+ def value(self) -> google.protobuf.struct_pb2.Struct: ...
17184
+ def __init__(
17185
+ self,
17186
+ *,
17187
+ key: builtins.str = ...,
17188
+ value: google.protobuf.struct_pb2.Struct | None = ...,
17189
+ ) -> None: ...
17190
+ def HasField(
17191
+ self, field_name: typing_extensions.Literal["value", b"value"]
17192
+ ) -> builtins.bool: ...
17193
+ def ClearField(
17194
+ self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
17195
+ ) -> None: ...
17196
+
17197
+ STEP_VERSION_SECRETS_FIELD_NUMBER: builtins.int
17198
+ @property
17199
+ def step_version_secrets(
17200
+ self,
17201
+ ) -> google.protobuf.internal.containers.MessageMap[
17202
+ builtins.str, google.protobuf.struct_pb2.Struct
17203
+ ]:
17204
+ """StepVersionSecrets maps step names to their secret configurations
17205
+ Using google.protobuf.Struct to create the desired flat JSON structure
17206
+ This produces: {stepName: {secretName: "users/user-name/secrets/key"}}
17207
+ example: {"step-0": {"API_KEY": "users/user-name/secrets/key"}}
17208
+ """
17209
+ def __init__(
17210
+ self,
17211
+ *,
17212
+ step_version_secrets: collections.abc.Mapping[
17213
+ builtins.str, google.protobuf.struct_pb2.Struct
17214
+ ]
17215
+ | None = ...,
17216
+ ) -> None: ...
17217
+ def ClearField(
17218
+ self,
17219
+ field_name: typing_extensions.Literal["step_version_secrets", b"step_version_secrets"],
17220
+ ) -> None: ...
17221
+
17222
+ global___PipelineVersionConfig = PipelineVersionConfig
17223
+
17076
17224
  @typing_extensions.final
17077
17225
  class PipelineVersion(google.protobuf.message.Message):
17078
17226
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -17087,6 +17235,7 @@ class PipelineVersion(google.protobuf.message.Message):
17087
17235
  METADATA_FIELD_NUMBER: builtins.int
17088
17236
  CREATED_AT_FIELD_NUMBER: builtins.int
17089
17237
  MODIFIED_AT_FIELD_NUMBER: builtins.int
17238
+ CONFIG_FIELD_NUMBER: builtins.int
17090
17239
  id: builtins.str
17091
17240
  app_id: builtins.str
17092
17241
  """The app the pipeline version belongs to."""
@@ -17116,6 +17265,9 @@ class PipelineVersion(google.protobuf.message.Message):
17116
17265
  @property
17117
17266
  def modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
17118
17267
  """When the pipeline was last modified"""
17268
+ @property
17269
+ def config(self) -> global___PipelineVersionConfig:
17270
+ """Pipeline version configuration including step secrets"""
17119
17271
  def __init__(
17120
17272
  self,
17121
17273
  *,
@@ -17129,10 +17281,13 @@ class PipelineVersion(google.protobuf.message.Message):
17129
17281
  metadata: google.protobuf.struct_pb2.Struct | None = ...,
17130
17282
  created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17131
17283
  modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17284
+ config: global___PipelineVersionConfig | None = ...,
17132
17285
  ) -> None: ...
17133
17286
  def HasField(
17134
17287
  self,
17135
17288
  field_name: typing_extensions.Literal[
17289
+ "config",
17290
+ b"config",
17136
17291
  "created_at",
17137
17292
  b"created_at",
17138
17293
  "metadata",
@@ -17150,6 +17305,8 @@ class PipelineVersion(google.protobuf.message.Message):
17150
17305
  field_name: typing_extensions.Literal[
17151
17306
  "app_id",
17152
17307
  b"app_id",
17308
+ "config",
17309
+ b"config",
17153
17310
  "created_at",
17154
17311
  b"created_at",
17155
17312
  "description",
@@ -17239,6 +17396,8 @@ class PipelineVersionRun(google.protobuf.message.Message):
17239
17396
  APP_ID_FIELD_NUMBER: builtins.int
17240
17397
  CREATED_AT_FIELD_NUMBER: builtins.int
17241
17398
  MODIFIED_AT_FIELD_NUMBER: builtins.int
17399
+ INPUT_ARGS_OVERRIDE_FIELD_NUMBER: builtins.int
17400
+ ORCHESTRATION_SPEC_FIELD_NUMBER: builtins.int
17242
17401
  id: builtins.str
17243
17402
  @property
17244
17403
  def pipeline_version(self) -> global___PipelineVersion:
@@ -17261,6 +17420,14 @@ class PipelineVersionRun(google.protobuf.message.Message):
17261
17420
  @property
17262
17421
  def modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
17263
17422
  """When the pipeline was last modified"""
17423
+ @property
17424
+ def input_args_override(self) -> global___OrchestrationArgsOverride:
17425
+ """Optional: Overrides to input arguments for the orchestration system."""
17426
+ @property
17427
+ def orchestration_spec(self) -> global___OrchestrationSpec:
17428
+ """Final merged orchestration spec snapshot submitted to backend.
17429
+ This field is read-only and cannot be set during creation.
17430
+ """
17264
17431
  def __init__(
17265
17432
  self,
17266
17433
  *,
@@ -17272,14 +17439,20 @@ class PipelineVersionRun(google.protobuf.message.Message):
17272
17439
  app_id: builtins.str = ...,
17273
17440
  created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17274
17441
  modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17442
+ input_args_override: global___OrchestrationArgsOverride | None = ...,
17443
+ orchestration_spec: global___OrchestrationSpec | None = ...,
17275
17444
  ) -> None: ...
17276
17445
  def HasField(
17277
17446
  self,
17278
17447
  field_name: typing_extensions.Literal[
17279
17448
  "created_at",
17280
17449
  b"created_at",
17450
+ "input_args_override",
17451
+ b"input_args_override",
17281
17452
  "modified_at",
17282
17453
  b"modified_at",
17454
+ "orchestration_spec",
17455
+ b"orchestration_spec",
17283
17456
  "orchestration_status",
17284
17457
  b"orchestration_status",
17285
17458
  "pipeline_version",
@@ -17295,10 +17468,14 @@ class PipelineVersionRun(google.protobuf.message.Message):
17295
17468
  b"created_at",
17296
17469
  "id",
17297
17470
  b"id",
17471
+ "input_args_override",
17472
+ b"input_args_override",
17298
17473
  "modified_at",
17299
17474
  b"modified_at",
17300
17475
  "nodepools",
17301
17476
  b"nodepools",
17477
+ "orchestration_spec",
17478
+ b"orchestration_spec",
17302
17479
  "orchestration_status",
17303
17480
  b"orchestration_status",
17304
17481
  "pipeline_version",