Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: DIA-1324: Add batch-prediction prompts endpoints #291

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
344 changes: 340 additions & 4 deletions .mock/definition/__package__.yml

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions .mock/definition/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ service:
- tasks:total_annotations
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
ActionsCreateRequestId:
enum:
Expand All @@ -100,6 +102,8 @@ types:
- delete_tasks_predictions
- delete_reviewers
- delete_annotators
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFiltersConjunction:
enum:
- or
Expand All @@ -109,6 +113,8 @@ types:
"and") will be applied to all items in the filters list. It is not
possible to combine "or" and "and" within one list of filters. All filters
will be either combined with "or" or with "and", but not a mix of both.
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFiltersItemsItemFilter:
enum:
- value: filter:tasks:agreement
Expand Down Expand Up @@ -202,6 +208,8 @@ types:
Number of unresolved comments in a
task</li><br><li>`filter:tasks:updated_at`<br> (Datetime) Time the task
was updated at (e.g. new annotation was created, review added, etc)</li>
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFiltersItemsItemOperator:
enum:
- contains
Expand Down Expand Up @@ -231,6 +239,8 @@ types:
to</li><br><li>`not_exists`<br> Does not exist</li><br><li>`not_in`<br> Is
not between min and max values, so the filter `value` should be e.g.
`{"min": 1, "max": 7}`</li><br><li>`starts_with`<br> Starts with</li>
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFiltersItemsItemValue:
discriminated: false
docs: Value to filter by
Expand All @@ -243,8 +253,10 @@ types:
docs: Float
- type: boolean
docs: Boolean
- docs: List of strings or integers
type: map<string, unknown>
- type: map<string, unknown>
docs: List of strings or integers
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFiltersItemsItem:
properties:
filter:
Expand Down Expand Up @@ -326,6 +338,8 @@ types:
value:
type: ActionsCreateRequestFiltersItemsItemValue
docs: Value to filter by
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestFilters:
docs: >-
Filters to apply on tasks. You can use [the helper class `Filters` from
Expand All @@ -345,6 +359,8 @@ types:
items:
docs: List of filter items
type: list<ActionsCreateRequestFiltersItemsItem>
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestSelectedItemsIncluded:
properties:
all:
Expand All @@ -353,6 +369,8 @@ types:
included:
type: optional<list<integer>>
docs: List of included task IDs
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestSelectedItemsExcluded:
properties:
all:
Expand All @@ -361,6 +379,8 @@ types:
excluded:
type: optional<list<integer>>
docs: List of excluded task IDs
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestSelectedItems:
discriminated: false
docs: >-
Expand All @@ -371,6 +391,8 @@ types:
union:
- ActionsCreateRequestSelectedItemsIncluded
- ActionsCreateRequestSelectedItemsExcluded
source:
openapi: openapi/openapi.yaml
ActionsCreateRequestOrderingItem:
enum:
- value: tasks:agreement
Expand Down Expand Up @@ -417,3 +439,5 @@ types:
name: TasksUnresolvedCommentCount
- value: tasks:updated_at
name: TasksUpdatedAt
source:
openapi: openapi/openapi.yaml
2 changes: 2 additions & 0 deletions .mock/definition/annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,5 @@ service:
last_created_by: 1
audiences:
- public
source:
openapi: openapi/openapi.yaml
2 changes: 2 additions & 0 deletions .mock/definition/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,5 @@ service:
resolved_at: '2024-01-15T09:30:00Z'
audiences:
- public
source:
openapi: openapi/openapi.yaml
44 changes: 40 additions & 4 deletions .mock/definition/dataManager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ service:
project: 1
audiences:
- internal
source:
openapi: openapi/openapi.yaml
types:
ApiDmViewsUpdateRequestDataFiltersConjunction:
enum:
Expand All @@ -116,6 +118,8 @@ types:
"and") will be applied to all items in the filters list. It is not
possible to combine "or" and "and" within one list of filters. All filters
will be either combined with "or" or with "and", but not a mix of both.
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataFiltersItemsItemFilter:
enum:
- value: filter:tasks:agreement
Expand Down Expand Up @@ -209,6 +213,8 @@ types:
Number of unresolved comments in a
task</li><br><li>`filter:tasks:updated_at`<br> (Datetime) Time the task
was updated at (e.g. new annotation was created, review added, etc)</li>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataFiltersItemsItemOperator:
enum:
- contains
Expand Down Expand Up @@ -238,6 +244,8 @@ types:
to</li><br><li>`not_exists`<br> Does not exist</li><br><li>`not_in`<br> Is
not between min and max values, so the filter `value` should be e.g.
`{"min": 1, "max": 7}`</li><br><li>`starts_with`<br> Starts with</li>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataFiltersItemsItemValue:
discriminated: false
docs: Value to filter by
Expand All @@ -250,8 +258,10 @@ types:
docs: Float
- type: boolean
docs: Boolean
- docs: List of strings or integers
type: map<string, unknown>
- type: map<string, unknown>
docs: List of strings or integers
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataFiltersItemsItem:
properties:
filter:
Expand Down Expand Up @@ -333,6 +343,8 @@ types:
value:
type: ApiDmViewsUpdateRequestDataFiltersItemsItemValue
docs: Value to filter by
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataFilters:
docs: >-
Filters to apply on tasks. You can use [the helper class `Filters` from
Expand All @@ -352,6 +364,8 @@ types:
items:
docs: List of filter items
type: list<ApiDmViewsUpdateRequestDataFiltersItemsItem>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestDataOrderingItem:
enum:
- value: tasks:agreement
Expand Down Expand Up @@ -398,6 +412,8 @@ types:
name: TasksUnresolvedCommentCount
- value: tasks:updated_at
name: TasksUpdatedAt
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateRequestData:
docs: Custom view data
properties:
Expand All @@ -415,6 +431,8 @@ types:
List of fields to order by. Fields are similar to filters but without
the `filter:` prefix. To reverse the order, add a minus sign before
the field name, e.g. `-tasks:created_at`.
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFiltersConjunction:
enum:
- or
Expand All @@ -424,6 +442,8 @@ types:
"and") will be applied to all items in the filters list. It is not
possible to combine "or" and "and" within one list of filters. All filters
will be either combined with "or" or with "and", but not a mix of both.
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFiltersItemsItemFilter:
enum:
- value: filter:tasks:agreement
Expand Down Expand Up @@ -517,6 +537,8 @@ types:
Number of unresolved comments in a
task</li><br><li>`filter:tasks:updated_at`<br> (Datetime) Time the task
was updated at (e.g. new annotation was created, review added, etc)</li>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFiltersItemsItemOperator:
enum:
- contains
Expand Down Expand Up @@ -546,6 +568,8 @@ types:
to</li><br><li>`not_exists`<br> Does not exist</li><br><li>`not_in`<br> Is
not between min and max values, so the filter `value` should be e.g.
`{"min": 1, "max": 7}`</li><br><li>`starts_with`<br> Starts with</li>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFiltersItemsItemValue:
discriminated: false
docs: Value to filter by
Expand All @@ -558,8 +582,10 @@ types:
docs: Float
- type: boolean
docs: Boolean
- docs: List of strings or integers
type: map<string, unknown>
- type: map<string, unknown>
docs: List of strings or integers
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFiltersItemsItem:
properties:
filter:
Expand Down Expand Up @@ -641,6 +667,8 @@ types:
value:
type: ApiDmViewsUpdateResponseDataFiltersItemsItemValue
docs: Value to filter by
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataFilters:
docs: >-
Filters to apply on tasks. You can use [the helper class `Filters` from
Expand All @@ -660,6 +688,8 @@ types:
items:
docs: List of filter items
type: list<ApiDmViewsUpdateResponseDataFiltersItemsItem>
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseDataOrderingItem:
enum:
- value: tasks:agreement
Expand Down Expand Up @@ -706,6 +736,8 @@ types:
name: TasksUnresolvedCommentCount
- value: tasks:updated_at
name: TasksUpdatedAt
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponseData:
docs: Custom view data
properties:
Expand All @@ -723,6 +755,8 @@ types:
List of fields to order by. Fields are similar to filters but without
the `filter:` prefix. To reverse the order, add a minus sign before
the field name, e.g. `-tasks:created_at`.
source:
openapi: openapi/openapi.yaml
ApiDmViewsUpdateResponse:
properties:
data:
Expand All @@ -731,3 +765,5 @@ types:
project:
type: optional<integer>
docs: Project ID
source:
openapi: openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ service:
title: title
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
ExportStorageListTypesResponseItem:
properties:
name: optional<string>
title: optional<string>
source:
openapi: openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ service:
project: 1
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
AzureCreateResponse:
properties:
Expand Down Expand Up @@ -394,6 +396,8 @@ types:
account_key:
type: optional<string>
docs: Azure Blob account key
source:
openapi: openapi/openapi.yaml
AzureUpdateResponse:
properties:
can_delete_objects:
Expand Down Expand Up @@ -421,3 +425,5 @@ types:
account_key:
type: optional<string>
docs: Azure Blob account key
source:
openapi: openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ service:
project: 1
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
GcsCreateResponse:
properties:
Expand Down Expand Up @@ -398,6 +400,8 @@ types:
google_project_id:
type: optional<string>
docs: Google project ID
source:
openapi: openapi/openapi.yaml
GcsUpdateResponse:
properties:
can_delete_objects:
Expand Down Expand Up @@ -426,3 +430,5 @@ types:
google_project_id:
type: optional<string>
docs: Google project ID
source:
openapi: openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ service:
project: 1
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
LocalCreateResponse:
properties:
Expand All @@ -371,6 +373,8 @@ types:
for these images. If set to False, it will read the content of the
file and load it into Label Studio.
default: false
source:
openapi: openapi/openapi.yaml
LocalUpdateResponse:
properties:
title:
Expand All @@ -396,3 +400,5 @@ types:
for these images. If set to False, it will read the content of the
file and load it into Label Studio.
default: false
source:
openapi: openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ service:
project: 1
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
RedisCreateResponse:
properties:
Expand Down Expand Up @@ -405,6 +407,8 @@ types:
password:
type: optional<string>
docs: Server Password (optional)
source:
openapi: openapi/openapi.yaml
RedisUpdateResponse:
properties:
db:
Expand Down Expand Up @@ -434,3 +438,5 @@ types:
password:
type: optional<string>
docs: Server Password (optional)
source:
openapi: openapi/openapi.yaml
Loading
Loading