clarifai-grpc 11.8.5__py3-none-any.whl → 11.9.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.
@@ -378,6 +378,86 @@ class ListAnnotationsRequest(google.protobuf.message.Message):
378
378
 
379
379
  global___ListAnnotationsRequest = ListAnnotationsRequest
380
380
 
381
+ @typing_extensions.final
382
+ class PostTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
383
+ """ListVideoTrackAnnotationsRequest"""
384
+
385
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
386
+
387
+ USER_APP_ID_FIELD_NUMBER: builtins.int
388
+ INPUT_ID_FIELD_NUMBER: builtins.int
389
+ TRACK_ID_FIELD_NUMBER: builtins.int
390
+ FRAME_NUMBER_START_FIELD_NUMBER: builtins.int
391
+ FRAME_TIME_START_FIELD_NUMBER: builtins.int
392
+ ANNOTATION_TYPE_FIELD_NUMBER: builtins.int
393
+ MAX_FRAMES_FIELD_NUMBER: builtins.int
394
+ MAX_DURATION_FIELD_NUMBER: builtins.int
395
+ WORKER_FIELD_NUMBER: builtins.int
396
+ @property
397
+ def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
398
+ input_id: builtins.str
399
+ """The input ID containing the video track annotations to list"""
400
+ track_id: builtins.str
401
+ """Filter annotations by track_id"""
402
+ frame_number_start: builtins.int
403
+ """Filter annotations starting from this frame number (inclusive)"""
404
+ frame_time_start: builtins.int
405
+ """Filter annotations starting from this time in milliseconds (inclusive)"""
406
+ annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType
407
+ """Filter by annotation type (e.g., "bounding_box", "point", "mask")"""
408
+ max_frames: builtins.int
409
+ """Maximum number of frames to return (default and max: 60)"""
410
+ max_duration: builtins.int
411
+ """Maximum duration in milliseconds to return (default and max: 3000)"""
412
+ @property
413
+ def worker(self) -> proto.clarifai.api.resources_pb2.Worker:
414
+ """Filtering by model version ID within a worker (optional).
415
+ Point annotations don't need filtering by worker.
416
+ For non-point types, a model version ID must be provided.
417
+ """
418
+ def __init__(
419
+ self,
420
+ *,
421
+ user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
422
+ input_id: builtins.str = ...,
423
+ track_id: builtins.str = ...,
424
+ frame_number_start: builtins.int = ...,
425
+ frame_time_start: builtins.int = ...,
426
+ annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType = ...,
427
+ max_frames: builtins.int = ...,
428
+ max_duration: builtins.int = ...,
429
+ worker: proto.clarifai.api.resources_pb2.Worker | None = ...,
430
+ ) -> None: ...
431
+ def HasField(
432
+ self,
433
+ field_name: typing_extensions.Literal["user_app_id", b"user_app_id", "worker", b"worker"],
434
+ ) -> builtins.bool: ...
435
+ def ClearField(
436
+ self,
437
+ field_name: typing_extensions.Literal[
438
+ "annotation_type",
439
+ b"annotation_type",
440
+ "frame_number_start",
441
+ b"frame_number_start",
442
+ "frame_time_start",
443
+ b"frame_time_start",
444
+ "input_id",
445
+ b"input_id",
446
+ "max_duration",
447
+ b"max_duration",
448
+ "max_frames",
449
+ b"max_frames",
450
+ "track_id",
451
+ b"track_id",
452
+ "user_app_id",
453
+ b"user_app_id",
454
+ "worker",
455
+ b"worker",
456
+ ],
457
+ ) -> None: ...
458
+
459
+ global___PostTrackAnnotationsSearchesRequest = PostTrackAnnotationsSearchesRequest
460
+
381
461
  @typing_extensions.final
382
462
  class PostAnnotationsRequest(google.protobuf.message.Message):
383
463
  """PostAnnotationsRequest"""
@@ -1074,6 +1154,7 @@ class ListAppsRequest(google.protobuf.message.Message):
1074
1154
  SORT_BY_CREATED_AT_FIELD_NUMBER: builtins.int
1075
1155
  SORT_BY_STAR_COUNT_FIELD_NUMBER: builtins.int
1076
1156
  SORT_BY_ID_FIELD_NUMBER: builtins.int
1157
+ SORT_BY_RELEVANCE_FIELD_NUMBER: builtins.int
1077
1158
  FEATURED_ONLY_FIELD_NUMBER: builtins.int
1078
1159
  STARRED_ONLY_FIELD_NUMBER: builtins.int
1079
1160
  TEMPLATE_ONLY_FIELD_NUMBER: builtins.int
@@ -1113,6 +1194,8 @@ class ListAppsRequest(google.protobuf.message.Message):
1113
1194
  """Whether to order by the number of users stared the app"""
1114
1195
  sort_by_id: builtins.bool
1115
1196
  """Whether to order by the id"""
1197
+ sort_by_relevance: builtins.bool
1198
+ """Whether to order by search query relevance. Can only be used if search is not empty."""
1116
1199
  featured_only: builtins.bool
1117
1200
  """Filtering options:
1118
1201
  If true, we only return apps that are handpicked by clarifai staff
@@ -1165,6 +1248,7 @@ class ListAppsRequest(google.protobuf.message.Message):
1165
1248
  sort_by_created_at: builtins.bool = ...,
1166
1249
  sort_by_star_count: builtins.bool = ...,
1167
1250
  sort_by_id: builtins.bool = ...,
1251
+ sort_by_relevance: builtins.bool = ...,
1168
1252
  featured_only: builtins.bool = ...,
1169
1253
  starred_only: builtins.bool = ...,
1170
1254
  template_only: builtins.bool = ...,
@@ -1187,6 +1271,8 @@ class ListAppsRequest(google.protobuf.message.Message):
1187
1271
  b"sort_by_modified_at",
1188
1272
  "sort_by_name",
1189
1273
  b"sort_by_name",
1274
+ "sort_by_relevance",
1275
+ b"sort_by_relevance",
1190
1276
  "sort_by_star_count",
1191
1277
  b"sort_by_star_count",
1192
1278
  "user_app_id",
@@ -1226,6 +1312,8 @@ class ListAppsRequest(google.protobuf.message.Message):
1226
1312
  b"sort_by_modified_at",
1227
1313
  "sort_by_name",
1228
1314
  b"sort_by_name",
1315
+ "sort_by_relevance",
1316
+ b"sort_by_relevance",
1229
1317
  "sort_by_star_count",
1230
1318
  b"sort_by_star_count",
1231
1319
  "starred_only",
@@ -1247,6 +1335,7 @@ class ListAppsRequest(google.protobuf.message.Message):
1247
1335
  "sort_by_created_at",
1248
1336
  "sort_by_star_count",
1249
1337
  "sort_by_id",
1338
+ "sort_by_relevance",
1250
1339
  ]
1251
1340
  | None
1252
1341
  ): ...
@@ -3579,6 +3668,7 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3579
3668
  SORT_BY_STAR_COUNT_FIELD_NUMBER: builtins.int
3580
3669
  SORT_BY_MODIFIED_AT_FIELD_NUMBER: builtins.int
3581
3670
  SORT_BY_ID_FIELD_NUMBER: builtins.int
3671
+ SORT_BY_RELEVANCE_FIELD_NUMBER: builtins.int
3582
3672
  STARRED_ONLY_FIELD_NUMBER: builtins.int
3583
3673
  BOOKMARK_FIELD_NUMBER: builtins.int
3584
3674
  SEARCH_FIELD_NUMBER: builtins.int
@@ -3609,6 +3699,8 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3609
3699
  """If neither sort option is set to true, will sort by modified_at."""
3610
3700
  sort_by_id: builtins.bool
3611
3701
  """Whether to order by the external id"""
3702
+ sort_by_relevance: builtins.bool
3703
+ """Whether to order by search query relevance. Can only be used if search is not empty."""
3612
3704
  starred_only: builtins.bool
3613
3705
  """Filtering options:"""
3614
3706
  bookmark: builtins.bool
@@ -3644,6 +3736,7 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3644
3736
  sort_by_star_count: builtins.bool = ...,
3645
3737
  sort_by_modified_at: builtins.bool = ...,
3646
3738
  sort_by_id: builtins.bool = ...,
3739
+ sort_by_relevance: builtins.bool = ...,
3647
3740
  starred_only: builtins.bool = ...,
3648
3741
  bookmark: builtins.bool = ...,
3649
3742
  search: builtins.str = ...,
@@ -3660,6 +3753,8 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3660
3753
  b"sort_by_id",
3661
3754
  "sort_by_modified_at",
3662
3755
  b"sort_by_modified_at",
3756
+ "sort_by_relevance",
3757
+ b"sort_by_relevance",
3663
3758
  "sort_by_star_count",
3664
3759
  b"sort_by_star_count",
3665
3760
  "user_app_id",
@@ -3691,6 +3786,8 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3691
3786
  b"sort_by_id",
3692
3787
  "sort_by_modified_at",
3693
3788
  b"sort_by_modified_at",
3789
+ "sort_by_relevance",
3790
+ b"sort_by_relevance",
3694
3791
  "sort_by_star_count",
3695
3792
  b"sort_by_star_count",
3696
3793
  "starred_only",
@@ -3703,7 +3800,11 @@ class ListDatasetsRequest(google.protobuf.message.Message):
3703
3800
  self, oneof_group: typing_extensions.Literal["sort_by", b"sort_by"]
3704
3801
  ) -> (
3705
3802
  typing_extensions.Literal[
3706
- "sort_by_created_at", "sort_by_star_count", "sort_by_modified_at", "sort_by_id"
3803
+ "sort_by_created_at",
3804
+ "sort_by_star_count",
3805
+ "sort_by_modified_at",
3806
+ "sort_by_id",
3807
+ "sort_by_relevance",
3707
3808
  ]
3708
3809
  | None
3709
3810
  ): ...
@@ -5465,12 +5566,14 @@ class ListModelsRequest(google.protobuf.message.Message):
5465
5566
  PAGE_FIELD_NUMBER: builtins.int
5466
5567
  PER_PAGE_FIELD_NUMBER: builtins.int
5467
5568
  ADDITIONAL_FIELDS_FIELD_NUMBER: builtins.int
5569
+ SHOW_REPLICAS_FIELD_NUMBER: builtins.int
5468
5570
  SORT_ASCENDING_FIELD_NUMBER: builtins.int
5469
5571
  SORT_BY_NAME_FIELD_NUMBER: builtins.int
5470
5572
  SORT_BY_NUM_INPUTS_FIELD_NUMBER: builtins.int
5471
5573
  SORT_BY_MODIFIED_AT_FIELD_NUMBER: builtins.int
5472
5574
  SORT_BY_CREATED_AT_FIELD_NUMBER: builtins.int
5473
5575
  SORT_BY_STAR_COUNT_FIELD_NUMBER: builtins.int
5576
+ SORT_BY_RELEVANCE_FIELD_NUMBER: builtins.int
5474
5577
  MODEL_TYPE_ID_FIELD_NUMBER: builtins.int
5475
5578
  TRAINED_ONLY_FIELD_NUMBER: builtins.int
5476
5579
  INPUT_FIELDS_FIELD_NUMBER: builtins.int
@@ -5483,17 +5586,16 @@ class ListModelsRequest(google.protobuf.message.Message):
5483
5586
  LANGUAGES_FIELD_NUMBER: builtins.int
5484
5587
  DONT_FETCH_FROM_MAIN_FIELD_NUMBER: builtins.int
5485
5588
  BOOKMARK_FIELD_NUMBER: builtins.int
5486
- SEARCH_FIELD_NUMBER: builtins.int
5487
- QUERY_FIELD_NUMBER: builtins.int
5488
- NAME_FIELD_NUMBER: builtins.int
5489
- FILTER_BY_USER_ID_FIELD_NUMBER: builtins.int
5490
5589
  MODEL_VERSION_IDS_FIELD_NUMBER: builtins.int
5491
5590
  LICENSE_TYPE_FIELD_NUMBER: builtins.int
5492
5591
  SOURCE_FIELD_NUMBER: builtins.int
5493
5592
  CREATOR_FIELD_NUMBER: builtins.int
5494
5593
  MIN_REPLICAS_FIELD_NUMBER: builtins.int
5495
- SHOW_REPLICAS_FIELD_NUMBER: builtins.int
5496
5594
  VISIBILITY_FIELD_NUMBER: builtins.int
5595
+ SEARCH_FIELD_NUMBER: builtins.int
5596
+ QUERY_FIELD_NUMBER: builtins.int
5597
+ NAME_FIELD_NUMBER: builtins.int
5598
+ FILTER_BY_USER_ID_FIELD_NUMBER: builtins.int
5497
5599
  @property
5498
5600
  def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
5499
5601
  page: builtins.int
@@ -5509,6 +5611,8 @@ class ListModelsRequest(google.protobuf.message.Message):
5509
5611
  self,
5510
5612
  ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
5511
5613
  """(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets, counts"""
5614
+ show_replicas: builtins.bool
5615
+ """If true, show replica counts for models."""
5512
5616
  sort_ascending: builtins.bool
5513
5617
  """Sorting options:
5514
5618
  Whether to sort in ascending order. If false, will order in descending order.
@@ -5525,6 +5629,8 @@ class ListModelsRequest(google.protobuf.message.Message):
5525
5629
  """Whether to order by the created_at"""
5526
5630
  sort_by_star_count: builtins.bool
5527
5631
  """Whether to order by count of stars"""
5632
+ sort_by_relevance: builtins.bool
5633
+ """Whether to order by search query relevance. Can only be used if search is not empty."""
5528
5634
  model_type_id: builtins.str
5529
5635
  """Filtering options:
5530
5636
  Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id's
@@ -5577,6 +5683,22 @@ class ListModelsRequest(google.protobuf.message.Message):
5577
5683
  Note: you can not filter `trained_only` and bookmark at the same time.
5578
5684
  When filter by bookmark, we will return trained and untrained models.
5579
5685
  """
5686
+ @property
5687
+ def model_version_ids(
5688
+ self,
5689
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
5690
+ """Filter by the model version ids. If set, only return the model of these versions."""
5691
+ license_type: proto.clarifai.api.resources_pb2.LicenseType.ValueType
5692
+ """Filter by LicenseType"""
5693
+ source: builtins.int
5694
+ """Filter by Source"""
5695
+ creator: builtins.str
5696
+ """Filter by Creator"""
5697
+ min_replicas: builtins.int
5698
+ """Filter by model versions runners with replicas >= min_replicas."""
5699
+ @property
5700
+ def visibility(self) -> proto.clarifai.api.resources_pb2.Visibility:
5701
+ """Filter by visibility of the model. If set, only return models with the specified visibility."""
5580
5702
  search: builtins.str
5581
5703
  """Searching options:
5582
5704
  Specify a search parameter in order to perform keyword search on the
@@ -5605,24 +5727,6 @@ class ListModelsRequest(google.protobuf.message.Message):
5605
5727
  """Extends the name filter to include the user_id of the application owner that the model belongs to.
5606
5728
  Deprecated: use search instead of name.
5607
5729
  """
5608
- @property
5609
- def model_version_ids(
5610
- self,
5611
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
5612
- """Filter by the model version ids. If set, only return the model of these versions."""
5613
- license_type: proto.clarifai.api.resources_pb2.LicenseType.ValueType
5614
- """Filter by LicenseType"""
5615
- source: builtins.int
5616
- """Filter by Source"""
5617
- creator: builtins.str
5618
- """Filter by Creator"""
5619
- min_replicas: builtins.int
5620
- """Filter by model versions runners with replicas >= min_replicas."""
5621
- show_replicas: builtins.bool
5622
- """If true, show replica counts for models."""
5623
- @property
5624
- def visibility(self) -> proto.clarifai.api.resources_pb2.Visibility:
5625
- """Filter by visibility of the model. If set, only return models with the specified visibility."""
5626
5730
  def __init__(
5627
5731
  self,
5628
5732
  *,
@@ -5630,12 +5734,14 @@ class ListModelsRequest(google.protobuf.message.Message):
5630
5734
  page: builtins.int = ...,
5631
5735
  per_page: builtins.int = ...,
5632
5736
  additional_fields: collections.abc.Iterable[builtins.str] | None = ...,
5737
+ show_replicas: builtins.bool = ...,
5633
5738
  sort_ascending: builtins.bool = ...,
5634
5739
  sort_by_name: builtins.bool = ...,
5635
5740
  sort_by_num_inputs: builtins.bool = ...,
5636
5741
  sort_by_modified_at: builtins.bool = ...,
5637
5742
  sort_by_created_at: builtins.bool = ...,
5638
5743
  sort_by_star_count: builtins.bool = ...,
5744
+ sort_by_relevance: builtins.bool = ...,
5639
5745
  model_type_id: builtins.str = ...,
5640
5746
  trained_only: builtins.bool = ...,
5641
5747
  input_fields: collections.abc.Iterable[builtins.str] | None = ...,
@@ -5648,17 +5754,16 @@ class ListModelsRequest(google.protobuf.message.Message):
5648
5754
  languages: collections.abc.Iterable[builtins.str] | None = ...,
5649
5755
  dont_fetch_from_main: builtins.bool = ...,
5650
5756
  bookmark: builtins.bool = ...,
5651
- search: builtins.str = ...,
5652
- query: builtins.str = ...,
5653
- name: builtins.str = ...,
5654
- filter_by_user_id: builtins.bool = ...,
5655
5757
  model_version_ids: collections.abc.Iterable[builtins.str] | None = ...,
5656
5758
  license_type: proto.clarifai.api.resources_pb2.LicenseType.ValueType = ...,
5657
5759
  source: builtins.int = ...,
5658
5760
  creator: builtins.str = ...,
5659
5761
  min_replicas: builtins.int = ...,
5660
- show_replicas: builtins.bool = ...,
5661
5762
  visibility: proto.clarifai.api.resources_pb2.Visibility | None = ...,
5763
+ search: builtins.str = ...,
5764
+ query: builtins.str = ...,
5765
+ name: builtins.str = ...,
5766
+ filter_by_user_id: builtins.bool = ...,
5662
5767
  ) -> None: ...
5663
5768
  def HasField(
5664
5769
  self,
@@ -5673,6 +5778,8 @@ class ListModelsRequest(google.protobuf.message.Message):
5673
5778
  b"sort_by_name",
5674
5779
  "sort_by_num_inputs",
5675
5780
  b"sort_by_num_inputs",
5781
+ "sort_by_relevance",
5782
+ b"sort_by_relevance",
5676
5783
  "sort_by_star_count",
5677
5784
  b"sort_by_star_count",
5678
5785
  "user_app_id",
@@ -5736,6 +5843,8 @@ class ListModelsRequest(google.protobuf.message.Message):
5736
5843
  b"sort_by_name",
5737
5844
  "sort_by_num_inputs",
5738
5845
  b"sort_by_num_inputs",
5846
+ "sort_by_relevance",
5847
+ b"sort_by_relevance",
5739
5848
  "sort_by_star_count",
5740
5849
  b"sort_by_star_count",
5741
5850
  "source",
@@ -5763,6 +5872,7 @@ class ListModelsRequest(google.protobuf.message.Message):
5763
5872
  "sort_by_modified_at",
5764
5873
  "sort_by_created_at",
5765
5874
  "sort_by_star_count",
5875
+ "sort_by_relevance",
5766
5876
  ]
5767
5877
  | None
5768
5878
  ): ...
@@ -6562,12 +6672,12 @@ class ListModelVersionsRequest(google.protobuf.message.Message):
6562
6672
  PER_PAGE_FIELD_NUMBER: builtins.int
6563
6673
  CONCEPT_IDS_FIELD_NUMBER: builtins.int
6564
6674
  TRAINED_ONLY_FIELD_NUMBER: builtins.int
6675
+ MIN_REPLICAS_FIELD_NUMBER: builtins.int
6565
6676
  SORT_ASCENDING_FIELD_NUMBER: builtins.int
6566
6677
  SORT_BY_STATUS_CODE_FIELD_NUMBER: builtins.int
6567
6678
  SORT_BY_NUM_INPUTS_FIELD_NUMBER: builtins.int
6568
6679
  SORT_BY_DESCRIPTION_FIELD_NUMBER: builtins.int
6569
6680
  SORT_BY_CREATED_AT_FIELD_NUMBER: builtins.int
6570
- MIN_REPLICAS_FIELD_NUMBER: builtins.int
6571
6681
  @property
6572
6682
  def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
6573
6683
  model_id: builtins.str
@@ -6588,6 +6698,8 @@ class ListModelVersionsRequest(google.protobuf.message.Message):
6588
6698
  """
6589
6699
  trained_only: builtins.bool
6590
6700
  """To list only the model versions that have been trained."""
6701
+ min_replicas: builtins.int
6702
+ """Filter by model versions runners with replicas >= min_replicas."""
6591
6703
  sort_ascending: builtins.bool
6592
6704
  """Sorting options:
6593
6705
  Whether to sort in ascending order. If false, will order in descending order.
@@ -6602,8 +6714,6 @@ class ListModelVersionsRequest(google.protobuf.message.Message):
6602
6714
  """Whether to order by the created_at time
6603
6715
  If neither sort option is set to true, will sort by created_at.
6604
6716
  """
6605
- min_replicas: builtins.int
6606
- """Filter by model versions runners with replicas >= min_replicas."""
6607
6717
  def __init__(
6608
6718
  self,
6609
6719
  *,
@@ -6613,12 +6723,12 @@ class ListModelVersionsRequest(google.protobuf.message.Message):
6613
6723
  per_page: builtins.int = ...,
6614
6724
  concept_ids: collections.abc.Iterable[builtins.str] | None = ...,
6615
6725
  trained_only: builtins.bool = ...,
6726
+ min_replicas: builtins.int = ...,
6616
6727
  sort_ascending: builtins.bool = ...,
6617
6728
  sort_by_status_code: builtins.bool = ...,
6618
6729
  sort_by_num_inputs: builtins.bool = ...,
6619
6730
  sort_by_description: builtins.bool = ...,
6620
6731
  sort_by_created_at: builtins.bool = ...,
6621
- min_replicas: builtins.int = ...,
6622
6732
  ) -> None: ...
6623
6733
  def HasField(
6624
6734
  self,
@@ -9899,6 +10009,7 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
9899
10009
  SORT_BY_MODIFIED_AT_FIELD_NUMBER: builtins.int
9900
10010
  SORT_BY_CREATED_AT_FIELD_NUMBER: builtins.int
9901
10011
  SORT_BY_STAR_COUNT_FIELD_NUMBER: builtins.int
10012
+ SORT_BY_RELEVANCE_FIELD_NUMBER: builtins.int
9902
10013
  FEATURED_ONLY_FIELD_NUMBER: builtins.int
9903
10014
  STARRED_ONLY_FIELD_NUMBER: builtins.int
9904
10015
  BOOKMARK_FIELD_NUMBER: builtins.int
@@ -9936,6 +10047,8 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
9936
10047
  """Whether to order by the created_at time."""
9937
10048
  sort_by_star_count: builtins.bool
9938
10049
  """Whether to order by the number of users stared the workflow"""
10050
+ sort_by_relevance: builtins.bool
10051
+ """Whether to order by search query relevance. Can only be used if search is not empty."""
9939
10052
  featured_only: builtins.bool
9940
10053
  """Filtering options:
9941
10054
  If true, we only return workflows that are handpicked by clarifai staff
@@ -9986,6 +10099,7 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
9986
10099
  sort_by_modified_at: builtins.bool = ...,
9987
10100
  sort_by_created_at: builtins.bool = ...,
9988
10101
  sort_by_star_count: builtins.bool = ...,
10102
+ sort_by_relevance: builtins.bool = ...,
9989
10103
  featured_only: builtins.bool = ...,
9990
10104
  starred_only: builtins.bool = ...,
9991
10105
  bookmark: builtins.bool = ...,
@@ -10006,6 +10120,8 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
10006
10120
  b"sort_by_id",
10007
10121
  "sort_by_modified_at",
10008
10122
  b"sort_by_modified_at",
10123
+ "sort_by_relevance",
10124
+ b"sort_by_relevance",
10009
10125
  "sort_by_star_count",
10010
10126
  b"sort_by_star_count",
10011
10127
  "user_app_id",
@@ -10045,6 +10161,8 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
10045
10161
  b"sort_by_id",
10046
10162
  "sort_by_modified_at",
10047
10163
  b"sort_by_modified_at",
10164
+ "sort_by_relevance",
10165
+ b"sort_by_relevance",
10048
10166
  "sort_by_star_count",
10049
10167
  b"sort_by_star_count",
10050
10168
  "starred_only",
@@ -10059,7 +10177,11 @@ class ListWorkflowsRequest(google.protobuf.message.Message):
10059
10177
  self, oneof_group: typing_extensions.Literal["sort_by", b"sort_by"]
10060
10178
  ) -> (
10061
10179
  typing_extensions.Literal[
10062
- "sort_by_id", "sort_by_modified_at", "sort_by_created_at", "sort_by_star_count"
10180
+ "sort_by_id",
10181
+ "sort_by_modified_at",
10182
+ "sort_by_created_at",
10183
+ "sort_by_star_count",
10184
+ "sort_by_relevance",
10063
10185
  ]
10064
10186
  | None
10065
10187
  ): ...
@@ -12083,6 +12205,7 @@ class ListModulesRequest(google.protobuf.message.Message):
12083
12205
  SORT_BY_STAR_COUNT_FIELD_NUMBER: builtins.int
12084
12206
  SORT_BY_MODIFIED_AT_FIELD_NUMBER: builtins.int
12085
12207
  SORT_BY_ID_FIELD_NUMBER: builtins.int
12208
+ SORT_BY_RELEVANCE_FIELD_NUMBER: builtins.int
12086
12209
  STARRED_ONLY_FIELD_NUMBER: builtins.int
12087
12210
  BOOKMARK_FIELD_NUMBER: builtins.int
12088
12211
  SEARCH_FIELD_NUMBER: builtins.int
@@ -12115,6 +12238,8 @@ class ListModulesRequest(google.protobuf.message.Message):
12115
12238
  """If neither sort option is set to true, will sort by modified_at."""
12116
12239
  sort_by_id: builtins.bool
12117
12240
  """Whether to order by the external id"""
12241
+ sort_by_relevance: builtins.bool
12242
+ """Whether to order by search query relevance. Can only be used if search is not empty."""
12118
12243
  starred_only: builtins.bool
12119
12244
  """Filtering options:"""
12120
12245
  bookmark: builtins.bool
@@ -12156,6 +12281,7 @@ class ListModulesRequest(google.protobuf.message.Message):
12156
12281
  sort_by_star_count: builtins.bool = ...,
12157
12282
  sort_by_modified_at: builtins.bool = ...,
12158
12283
  sort_by_id: builtins.bool = ...,
12284
+ sort_by_relevance: builtins.bool = ...,
12159
12285
  starred_only: builtins.bool = ...,
12160
12286
  bookmark: builtins.bool = ...,
12161
12287
  search: builtins.str = ...,
@@ -12174,6 +12300,8 @@ class ListModulesRequest(google.protobuf.message.Message):
12174
12300
  b"sort_by_id",
12175
12301
  "sort_by_modified_at",
12176
12302
  b"sort_by_modified_at",
12303
+ "sort_by_relevance",
12304
+ b"sort_by_relevance",
12177
12305
  "sort_by_star_count",
12178
12306
  b"sort_by_star_count",
12179
12307
  "user_app_id",
@@ -12209,6 +12337,8 @@ class ListModulesRequest(google.protobuf.message.Message):
12209
12337
  b"sort_by_id",
12210
12338
  "sort_by_modified_at",
12211
12339
  b"sort_by_modified_at",
12340
+ "sort_by_relevance",
12341
+ b"sort_by_relevance",
12212
12342
  "sort_by_star_count",
12213
12343
  b"sort_by_star_count",
12214
12344
  "starred_only",
@@ -12223,7 +12353,11 @@ class ListModulesRequest(google.protobuf.message.Message):
12223
12353
  self, oneof_group: typing_extensions.Literal["sort_by", b"sort_by"]
12224
12354
  ) -> (
12225
12355
  typing_extensions.Literal[
12226
- "sort_by_created_at", "sort_by_star_count", "sort_by_modified_at", "sort_by_id"
12356
+ "sort_by_created_at",
12357
+ "sort_by_star_count",
12358
+ "sort_by_modified_at",
12359
+ "sort_by_id",
12360
+ "sort_by_relevance",
12227
12361
  ]
12228
12362
  | None
12229
12363
  ): ...
@@ -124,6 +124,11 @@ class V2Stub(object):
124
124
  request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.ListAnnotationsRequest.SerializeToString,
125
125
  response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.MultiAnnotationResponse),
126
126
  )
127
+ self.PostTrackAnnotationsSearches = channel.unary_unary(
128
+ '/clarifai.api.V2/PostTrackAnnotationsSearches',
129
+ request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.PostTrackAnnotationsSearchesRequest.SerializeToString,
130
+ response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.MultiAnnotationResponse),
131
+ )
127
132
  self.PostAnnotations = channel.unary_unary(
128
133
  '/clarifai.api.V2/PostAnnotations',
129
134
  request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.PostAnnotationsRequest.SerializeToString,
@@ -1588,6 +1593,13 @@ class V2Servicer(object):
1588
1593
  context.set_details('Method not implemented!')
1589
1594
  raise NotImplementedError('Method not implemented!')
1590
1595
 
1596
+ def PostTrackAnnotationsSearches(self, request, context):
1597
+ """List video track annotations for a specific input.
1598
+ """
1599
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1600
+ context.set_details('Method not implemented!')
1601
+ raise NotImplementedError('Method not implemented!')
1602
+
1591
1603
  def PostAnnotations(self, request, context):
1592
1604
  """Post annotations.
1593
1605
  """
@@ -3616,6 +3628,11 @@ def add_V2Servicer_to_server(servicer, server):
3616
3628
  request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.ListAnnotationsRequest.FromString,
3617
3629
  response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.MultiAnnotationResponse.SerializeToString,
3618
3630
  ),
3631
+ 'PostTrackAnnotationsSearches': grpc.unary_unary_rpc_method_handler(
3632
+ servicer.PostTrackAnnotationsSearches,
3633
+ request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.PostTrackAnnotationsSearchesRequest.FromString,
3634
+ response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.MultiAnnotationResponse.SerializeToString,
3635
+ ),
3619
3636
  'PostAnnotations': grpc.unary_unary_rpc_method_handler(
3620
3637
  servicer.PostAnnotations,
3621
3638
  request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.PostAnnotationsRequest.FromString,
@@ -5260,6 +5277,23 @@ class V2(object):
5260
5277
  options, channel_credentials,
5261
5278
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
5262
5279
 
5280
+ @staticmethod
5281
+ def PostTrackAnnotationsSearches(request,
5282
+ target,
5283
+ options=(),
5284
+ channel_credentials=None,
5285
+ call_credentials=None,
5286
+ insecure=False,
5287
+ compression=None,
5288
+ wait_for_ready=None,
5289
+ timeout=None,
5290
+ metadata=None):
5291
+ return grpc.experimental.unary_unary(request, target, '/clarifai.api.V2/PostTrackAnnotationsSearches',
5292
+ proto_dot_clarifai_dot_api_dot_service__pb2.PostTrackAnnotationsSearchesRequest.SerializeToString,
5293
+ proto_dot_clarifai_dot_api_dot_service__pb2.MultiAnnotationResponse.FromString,
5294
+ options, channel_credentials,
5295
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
5296
+
5263
5297
  @staticmethod
5264
5298
  def PostAnnotations(request,
5265
5299
  target,