clarifai-grpc 11.10.2__py3-none-any.whl → 11.10.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.
@@ -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",
@@ -17217,12 +17180,12 @@ class PipelineVersionConfig(google.protobuf.message.Message):
17217
17180
  VALUE_FIELD_NUMBER: builtins.int
17218
17181
  key: builtins.str
17219
17182
  @property
17220
- def value(self) -> global___StepSecretConfig: ...
17183
+ def value(self) -> google.protobuf.struct_pb2.Struct: ...
17221
17184
  def __init__(
17222
17185
  self,
17223
17186
  *,
17224
17187
  key: builtins.str = ...,
17225
- value: global___StepSecretConfig | None = ...,
17188
+ value: google.protobuf.struct_pb2.Struct | None = ...,
17226
17189
  ) -> None: ...
17227
17190
  def HasField(
17228
17191
  self, field_name: typing_extensions.Literal["value", b"value"]
@@ -17235,16 +17198,20 @@ class PipelineVersionConfig(google.protobuf.message.Message):
17235
17198
  @property
17236
17199
  def step_version_secrets(
17237
17200
  self,
17238
- ) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StepSecretConfig]:
17239
- """StepVersionSecrets maps step version references to their secret configurations
17240
- The outer map key is the step version reference (e.g. "step1" or the step version ID)
17241
- The inner map key is the secret name (e.g. "EMAIL_PROVIDER_API_KEY")
17242
- The inner map value is the secret reference (e.g. "users/1/secrets/secret-1")
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"}}
17243
17208
  """
17244
17209
  def __init__(
17245
17210
  self,
17246
17211
  *,
17247
- step_version_secrets: collections.abc.Mapping[builtins.str, global___StepSecretConfig]
17212
+ step_version_secrets: collections.abc.Mapping[
17213
+ builtins.str, google.protobuf.struct_pb2.Struct
17214
+ ]
17248
17215
  | None = ...,
17249
17216
  ) -> None: ...
17250
17217
  def ClearField(
@@ -17254,43 +17221,6 @@ class PipelineVersionConfig(google.protobuf.message.Message):
17254
17221
 
17255
17222
  global___PipelineVersionConfig = PipelineVersionConfig
17256
17223
 
17257
- @typing_extensions.final
17258
- class StepSecretConfig(google.protobuf.message.Message):
17259
- """StepSecretConfig defines secrets for a specific step version"""
17260
-
17261
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
17262
-
17263
- @typing_extensions.final
17264
- class SecretsEntry(google.protobuf.message.Message):
17265
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
17266
-
17267
- KEY_FIELD_NUMBER: builtins.int
17268
- VALUE_FIELD_NUMBER: builtins.int
17269
- key: builtins.str
17270
- value: builtins.str
17271
- def __init__(
17272
- self,
17273
- *,
17274
- key: builtins.str = ...,
17275
- value: builtins.str = ...,
17276
- ) -> None: ...
17277
- def ClearField(
17278
- self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]
17279
- ) -> None: ...
17280
-
17281
- SECRETS_FIELD_NUMBER: builtins.int
17282
- @property
17283
- def secrets(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
17284
- """Map of secret name to secret reference"""
17285
- def __init__(
17286
- self,
17287
- *,
17288
- secrets: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
17289
- ) -> None: ...
17290
- def ClearField(self, field_name: typing_extensions.Literal["secrets", b"secrets"]) -> None: ...
17291
-
17292
- global___StepSecretConfig = StepSecretConfig
17293
-
17294
17224
  @typing_extensions.final
17295
17225
  class PipelineVersion(google.protobuf.message.Message):
17296
17226
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -17495,7 +17425,9 @@ class PipelineVersionRun(google.protobuf.message.Message):
17495
17425
  """Optional: Overrides to input arguments for the orchestration system."""
17496
17426
  @property
17497
17427
  def orchestration_spec(self) -> global___OrchestrationSpec:
17498
- """Final merged orchestration spec snapshot submitted to backend."""
17428
+ """Final merged orchestration spec snapshot submitted to backend.
17429
+ This field is read-only and cannot be set during creation.
17430
+ """
17499
17431
  def __init__(
17500
17432
  self,
17501
17433
  *,