Skip to content

Commit 2973cf8

Browse files
committed
GRPC clients version 11.11.7
1 parent cd32ba1 commit 2973cf8

File tree

8 files changed

+1600
-1514
lines changed

8 files changed

+1600
-1514
lines changed

clarifai_grpc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "11.11.2"
1+
__version__ = "11.11.7"
22

33
import os
44

clarifai_grpc/grpc/api/resources_pb2.py

Lines changed: 628 additions & 624 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clarifai_grpc/grpc/api/resources_pb2.pyi

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,11 +1371,13 @@ class AppResourceCounts(google.protobuf.message.Message):
13711371
WORKFLOWS_FIELD_NUMBER: builtins.int
13721372
MODULES_FIELD_NUMBER: builtins.int
13731373
INPUTS_FIELD_NUMBER: builtins.int
1374+
PIPELINES_FIELD_NUMBER: builtins.int
13741375
datasets: builtins.int
13751376
models: builtins.int
13761377
workflows: builtins.int
13771378
modules: builtins.int
13781379
inputs: builtins.int
1380+
pipelines: builtins.int
13791381
def __init__(
13801382
self,
13811383
*,
@@ -1384,6 +1386,7 @@ class AppResourceCounts(google.protobuf.message.Message):
13841386
workflows: builtins.int = ...,
13851387
modules: builtins.int = ...,
13861388
inputs: builtins.int = ...,
1389+
pipelines: builtins.int = ...,
13871390
) -> None: ...
13881391
def ClearField(
13891392
self,
@@ -1396,6 +1399,8 @@ class AppResourceCounts(google.protobuf.message.Message):
13961399
b"models",
13971400
"modules",
13981401
b"modules",
1402+
"pipelines",
1403+
b"pipelines",
13991404
"workflows",
14001405
b"workflows",
14011406
],
@@ -10839,6 +10844,8 @@ class TaskInputSource(google.protobuf.message.Message):
1083910844
"""Use the inputs from a saved search."""
1084010845
DATASET: TaskInputSource._TaskInputSourceType.ValueType # 3
1084110846
"""Inputs from a dataset."""
10847+
INPUT: TaskInputSource._TaskInputSourceType.ValueType # 4
10848+
"""Single input (e.g. video livestream input)"""
1084210849

1084310850
class TaskInputSourceType(
1084410851
_TaskInputSourceType, metaclass=_TaskInputSourceTypeEnumTypeWrapper
@@ -10850,6 +10857,8 @@ class TaskInputSource(google.protobuf.message.Message):
1085010857
"""Use the inputs from a saved search."""
1085110858
DATASET: TaskInputSource.TaskInputSourceType.ValueType # 3
1085210859
"""Inputs from a dataset."""
10860+
INPUT: TaskInputSource.TaskInputSourceType.ValueType # 4
10861+
"""Single input (e.g. video livestream input)"""
1085310862

1085410863
TYPE_FIELD_NUMBER: builtins.int
1085510864
ID_FIELD_NUMBER: builtins.int
@@ -10991,7 +11000,9 @@ class TaskReviewManualStrategyInfo(google.protobuf.message.Message):
1099111000
SAMPLE_PERCENTAGE_FIELD_NUMBER: builtins.int
1099211001
APPROVAL_THRESHOLD_FIELD_NUMBER: builtins.int
1099311002
sample_percentage: builtins.float
10994-
"""This field represents the percentage of inputs that will be reviewed by reviewers. It is a value between 0 and 1."""
11003+
"""This field represents the percentage of inputs that will be reviewed by reviewers. It is a value between 0 and 1.
11004+
Deprecated: Not used.
11005+
"""
1099511006
approval_threshold: builtins.int
1099611007
"""Deprecated: Use consensus_strategy_info.approval_threshold_reviewers."""
1099711008
def __init__(

clarifai_grpc/grpc/api/service_pb2.py

Lines changed: 879 additions & 875 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clarifai_grpc/grpc/api/service_pb2.pyi

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class StreamTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
466466

467467
USER_APP_ID_FIELD_NUMBER: builtins.int
468468
INPUT_ID_FIELD_NUMBER: builtins.int
469-
TRACK_ID_FIELD_NUMBER: builtins.int
469+
TRACK_IDS_FIELD_NUMBER: builtins.int
470470
FRAME_NUMBER_START_FIELD_NUMBER: builtins.int
471471
FRAME_TIME_START_FIELD_NUMBER: builtins.int
472472
ANNOTATION_TYPE_FIELD_NUMBER: builtins.int
@@ -477,16 +477,26 @@ class StreamTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
477477
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
478478
input_id: builtins.str
479479
"""The input ID containing the video track annotations to stream"""
480-
track_id: builtins.str
481-
"""Filter annotations by track_id"""
480+
@property
481+
def track_ids(
482+
self,
483+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
484+
"""Filter annotations by track_ids"""
482485
frame_number_start: builtins.int
483486
"""Filter annotations starting from this frame number (inclusive)"""
484487
frame_time_start: builtins.int
485488
"""Filter annotations starting from this time in milliseconds (inclusive)"""
486489
annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType
487490
"""Filter by annotation type (e.g., "bounding_box", "point", "mask")"""
488491
max_frames: builtins.int
492+
"""Maximum number of frames to return. Returns annotations from frames in range [frame_number_start, frame_number_start + max_frames - 1] (inclusive on both ends).
493+
For example: frame_number_start=5, max_frames=3 returns frames 5, 6, and 7.
494+
Default and max: 10800 frames (3 minutes at 60 FPS)
495+
"""
489496
max_duration: builtins.int
497+
"""Maximum duration in milliseconds to return. Returns annotations from time range [frame_time_start, frame_time_start + max_duration - 1] (inclusive on both ends).
498+
Default and max: 180000 ms (3 minutes)
499+
"""
490500
@property
491501
def worker(self) -> proto.clarifai.api.resources_pb2.Worker:
492502
"""Filtering by model version ID within a worker (optional).
@@ -498,7 +508,7 @@ class StreamTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
498508
*,
499509
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
500510
input_id: builtins.str = ...,
501-
track_id: builtins.str = ...,
511+
track_ids: collections.abc.Iterable[builtins.str] | None = ...,
502512
frame_number_start: builtins.int = ...,
503513
frame_time_start: builtins.int = ...,
504514
annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType = ...,
@@ -525,8 +535,8 @@ class StreamTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
525535
b"max_duration",
526536
"max_frames",
527537
b"max_frames",
528-
"track_id",
529-
b"track_id",
538+
"track_ids",
539+
b"track_ids",
530540
"user_app_id",
531541
b"user_app_id",
532542
"worker",
@@ -1059,6 +1069,48 @@ class SingleAnnotationResponse(google.protobuf.message.Message):
10591069

10601070
global___SingleAnnotationResponse = SingleAnnotationResponse
10611071

1072+
@typing_extensions.final
1073+
class SingleStreamTrackAnnotationResponse(google.protobuf.message.Message):
1074+
"""SingleStreamTrackAnnotationResponse similar to SingleAnnotationResponse but with an extra field"""
1075+
1076+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1077+
1078+
STATUS_FIELD_NUMBER: builtins.int
1079+
ANNOTATION_FIELD_NUMBER: builtins.int
1080+
FRAME_FULLY_PROCESSED_FIELD_NUMBER: builtins.int
1081+
@property
1082+
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
1083+
@property
1084+
def annotation(self) -> proto.clarifai.api.resources_pb2.Annotation: ...
1085+
frame_fully_processed: builtins.bool
1086+
"""Indicates if this frame has been fully processed
1087+
Needed in case client needs to decide whether to stop and wait for more data or continue playback
1088+
"""
1089+
def __init__(
1090+
self,
1091+
*,
1092+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
1093+
annotation: proto.clarifai.api.resources_pb2.Annotation | None = ...,
1094+
frame_fully_processed: builtins.bool = ...,
1095+
) -> None: ...
1096+
def HasField(
1097+
self,
1098+
field_name: typing_extensions.Literal["annotation", b"annotation", "status", b"status"],
1099+
) -> builtins.bool: ...
1100+
def ClearField(
1101+
self,
1102+
field_name: typing_extensions.Literal[
1103+
"annotation",
1104+
b"annotation",
1105+
"frame_fully_processed",
1106+
b"frame_fully_processed",
1107+
"status",
1108+
b"status",
1109+
],
1110+
) -> None: ...
1111+
1112+
global___SingleStreamTrackAnnotationResponse = SingleStreamTrackAnnotationResponse
1113+
10621114
@typing_extensions.final
10631115
class MultiAnnotationResponse(google.protobuf.message.Message):
10641116
"""MultiAnnotationResponse"""
@@ -5992,13 +6044,15 @@ class GetResourceCountsResponse(google.protobuf.message.Message):
59926044
WORKFLOWS_FIELD_NUMBER: builtins.int
59936045
MODULES_FIELD_NUMBER: builtins.int
59946046
INPUTS_FIELD_NUMBER: builtins.int
6047+
PIPELINES_FIELD_NUMBER: builtins.int
59956048
@property
59966049
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
59976050
datasets: builtins.int
59986051
models: builtins.int
59996052
workflows: builtins.int
60006053
modules: builtins.int
60016054
inputs: builtins.int
6055+
pipelines: builtins.int
60026056
def __init__(
60036057
self,
60046058
*,
@@ -6008,6 +6062,7 @@ class GetResourceCountsResponse(google.protobuf.message.Message):
60086062
workflows: builtins.int = ...,
60096063
modules: builtins.int = ...,
60106064
inputs: builtins.int = ...,
6065+
pipelines: builtins.int = ...,
60116066
) -> None: ...
60126067
def HasField(
60136068
self, field_name: typing_extensions.Literal["status", b"status"]
@@ -6023,6 +6078,8 @@ class GetResourceCountsResponse(google.protobuf.message.Message):
60236078
b"models",
60246079
"modules",
60256080
b"modules",
6081+
"pipelines",
6082+
b"pipelines",
60266083
"status",
60276084
b"status",
60286085
"workflows",

clarifai_grpc/grpc/api/service_pb2_grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(self, channel):
132132
self.StreamTrackAnnotationsSearches = channel.unary_stream(
133133
'/clarifai.api.V2/StreamTrackAnnotationsSearches',
134134
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.StreamTrackAnnotationsSearchesRequest.SerializeToString,
135-
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.SingleAnnotationResponse),
135+
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.SingleStreamTrackAnnotationResponse),
136136
)
137137
self.PostAnnotations = channel.unary_unary(
138138
'/clarifai.api.V2/PostAnnotations',
@@ -3726,7 +3726,7 @@ def add_V2Servicer_to_server(servicer, server):
37263726
'StreamTrackAnnotationsSearches': grpc.unary_stream_rpc_method_handler(
37273727
servicer.StreamTrackAnnotationsSearches,
37283728
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.StreamTrackAnnotationsSearchesRequest.FromString,
3729-
response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.SingleAnnotationResponse.SerializeToString,
3729+
response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.SingleStreamTrackAnnotationResponse.SerializeToString,
37303730
),
37313731
'PostAnnotations': grpc.unary_unary_rpc_method_handler(
37323732
servicer.PostAnnotations,
@@ -5437,7 +5437,7 @@ def StreamTrackAnnotationsSearches(request,
54375437
metadata=None):
54385438
return grpc.experimental.unary_stream(request, target, '/clarifai.api.V2/StreamTrackAnnotationsSearches',
54395439
proto_dot_clarifai_dot_api_dot_service__pb2.StreamTrackAnnotationsSearchesRequest.SerializeToString,
5440-
proto_dot_clarifai_dot_api_dot_service__pb2.SingleAnnotationResponse.FromString,
5440+
proto_dot_clarifai_dot_api_dot_service__pb2.SingleStreamTrackAnnotationResponse.FromString,
54415441
options, channel_credentials,
54425442
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
54435443

clarifai_grpc/grpc/api/status/status_code_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clarifai_grpc/grpc/api/status/status_code_pb2.pyi

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,11 @@ class _StatusCodeEnumTypeWrapper(
491491
TASK_FAILED: _StatusCode.ValueType # 54005
492492
"""An error occurred during add-task-annotations or add-auto-annotations pipeline."""
493493
TASK_IDLE: _StatusCode.ValueType # 54006
494-
"""When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets."""
494+
"""Task is waiting for user action.
495+
Examples:
496+
- When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets.
497+
- When an Auto Annotation task job for a video livestream input is waiting for user to create a task deployment.
498+
"""
495499
TASK_CONFLICT: _StatusCode.ValueType # 54100
496500
"""The task operation is in conflict with the current state of the server."""
497501
TASK_NOT_IMPLEMENTED: _StatusCode.ValueType # 54101
@@ -576,6 +580,7 @@ class _StatusCodeEnumTypeWrapper(
576580
JOB_CANCELLED: _StatusCode.ValueType # 64004
577581
JOB_UNEXPECTED_ERROR: _StatusCode.ValueType # 64006
578582
JOB_CONFLICT: _StatusCode.ValueType # 64007
583+
JOB_PAUSED: _StatusCode.ValueType # 64008
579584
AUTH_MISSING_IDP_ASSOC: _StatusCode.ValueType # 65000
580585
"""auth issues
581586
TODO: Knowledge graph related 80xxx
@@ -1099,7 +1104,11 @@ TASK_WONT_DO: StatusCode.ValueType # 54003
10991104
TASK_FAILED: StatusCode.ValueType # 54005
11001105
"""An error occurred during add-task-annotations or add-auto-annotations pipeline."""
11011106
TASK_IDLE: StatusCode.ValueType # 54006
1102-
"""When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets."""
1107+
"""Task is waiting for user action.
1108+
Examples:
1109+
- When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets.
1110+
- When an Auto Annotation task job for a video livestream input is waiting for user to create a task deployment.
1111+
"""
11031112
TASK_CONFLICT: StatusCode.ValueType # 54100
11041113
"""The task operation is in conflict with the current state of the server."""
11051114
TASK_NOT_IMPLEMENTED: StatusCode.ValueType # 54101
@@ -1184,6 +1193,7 @@ JOB_FAILED: StatusCode.ValueType # 64003
11841193
JOB_CANCELLED: StatusCode.ValueType # 64004
11851194
JOB_UNEXPECTED_ERROR: StatusCode.ValueType # 64006
11861195
JOB_CONFLICT: StatusCode.ValueType # 64007
1196+
JOB_PAUSED: StatusCode.ValueType # 64008
11871197
AUTH_MISSING_IDP_ASSOC: StatusCode.ValueType # 65000
11881198
"""auth issues
11891199
TODO: Knowledge graph related 80xxx

0 commit comments

Comments
 (0)