Skip to content

Commit a2ee51b

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.160.0 from ks-backend
1 parent d7aa499 commit a2ee51b

20 files changed

Lines changed: 333 additions & 10 deletions

‎.openapi-generator/FILES‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ docs/KbMetric.md
199199
docs/KbSummaryResponse.md
200200
docs/KbTimeseriesResponse.md
201201
docs/LabeledSeries.md
202+
docs/LastRunSummary.md
202203
docs/LeaderboardEntry.md
203204
docs/LineageEdgeResponse.md
204205
docs/LineageGraphResponse.md
@@ -648,6 +649,7 @@ ksapi/models/kb_metric.py
648649
ksapi/models/kb_summary_response.py
649650
ksapi/models/kb_timeseries_response.py
650651
ksapi/models/labeled_series.py
652+
ksapi/models/last_run_summary.py
651653
ksapi/models/leaderboard_entry.py
652654
ksapi/models/lineage_edge_response.py
653655
ksapi/models/lineage_graph_response.py
@@ -1059,6 +1061,7 @@ test/test_kb_metric.py
10591061
test/test_kb_summary_response.py
10601062
test/test_kb_timeseries_response.py
10611063
test/test_labeled_series.py
1064+
test/test_last_run_summary.py
10621065
test/test_leaderboard_entry.py
10631066
test/test_lineage_edge_response.py
10641067
test/test_lineage_graph_response.py

‎docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Name | Type | Description | Notes
3535
**common_file_path_part_ids** | **List[UUID]** | Common files attached to every run (path_part ids). The FE renders these as 'attached to every run' on the workflow page. | [optional]
3636
**created_from_id** | **UUID** | Source definition this workflow was copied from (a template or any other workflow); null if hand-authored. |
3737
**copy_count** | **int** | Number of workflows copied from this definition. | [optional] [default to 0]
38+
**last_run** | [**LastRunSummary**](LastRunSummary.md) | The definition's most recent run, or null if never run. | [optional]
39+
**pending_approval_count** | **int** | Number of this definition's runs awaiting approval. | [optional] [default to 0]
3840
**workflow_definition_id** | **UUID** | |
3941
**triggered_by** | [**UserInfo**](UserInfo.md) | |
4042
**execution_state** | [**WorkflowExecutionState**](WorkflowExecutionState.md) | |

‎docs/LastRunSummary.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# LastRunSummary
2+
3+
The definition's most recent run — a compact projection for list rows. ``approval_state`` is the run folder's own approval state (execution and approval are separate axes). Named to avoid colliding with the unrelated ``last_run_timestamp`` document-ingestion concept.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**id** | **UUID** | |
10+
**execution_state** | [**WorkflowExecutionState**](WorkflowExecutionState.md) | |
11+
**approval_state** | [**PathPartApprovalState**](PathPartApprovalState.md) | |
12+
**created_at** | **datetime** | |
13+
**started_at** | **datetime** | | [optional]
14+
**completed_at** | **datetime** | | [optional]
15+
**error** | **str** | | [optional]
16+
17+
## Example
18+
19+
```python
20+
from ksapi.models.last_run_summary import LastRunSummary
21+
22+
# TODO update the JSON string below
23+
json = "{}"
24+
# create an instance of LastRunSummary from a JSON string
25+
last_run_summary_instance = LastRunSummary.from_json(json)
26+
# print the JSON string representation of the object
27+
print(LastRunSummary.to_json())
28+
29+
# convert the object into a dict
30+
last_run_summary_dict = last_run_summary_instance.to_dict()
31+
# create an instance of LastRunSummary from a dict
32+
last_run_summary_from_dict = LastRunSummary.from_dict(last_run_summary_dict)
33+
```
34+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
35+
36+

‎docs/WorkflowDefinitionOrder.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# WorkflowDefinitionOrder
22

3-
Sortable fields for workflow-definition listings (time only for now).
3+
Sortable fields for workflow-definition listings.
44

55
## Enum
66

77
* `CREATED_AT` (value: `'CREATED_AT'`)
88

99
* `UPDATED_AT` (value: `'UPDATED_AT'`)
1010

11+
* `NAME` (value: `'NAME'`)
12+
1113
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1214

1315

‎docs/WorkflowDefinitionResponse.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
2323
**common_file_path_part_ids** | **List[UUID]** | Common files attached to every run (path_part ids). The FE renders these as 'attached to every run' on the workflow page. | [optional]
2424
**created_from_id** | **UUID** | Source definition this workflow was copied from (a template or any other workflow); null if hand-authored. |
2525
**copy_count** | **int** | Number of workflows copied from this definition. | [optional] [default to 0]
26+
**last_run** | [**LastRunSummary**](LastRunSummary.md) | The definition's most recent run, or null if never run. | [optional]
27+
**pending_approval_count** | **int** | Number of this definition's runs awaiting approval. | [optional] [default to 0]
2628
**approval_state** | [**PathPartApprovalState**](PathPartApprovalState.md) | |
2729
**owner** | [**UserInfo**](UserInfo.md) | Current owner (creator) of the workflow, or null if unowned. | [optional]
2830
**created_at** | **datetime** | |

‎docs/WorkflowDefinitionsApi.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ Name | Type | Description | Notes
469469
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
470470

471471
# **list_workflow_definitions**
472-
> PaginatedResponseWorkflowDefinitionResponse list_workflow_definitions(mine=mine, sort_by=sort_by, sort_dir=sort_dir, is_template=is_template, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before)
472+
> PaginatedResponseWorkflowDefinitionResponse list_workflow_definitions(mine=mine, search=search, sort_by=sort_by, sort_dir=sort_dir, is_template=is_template, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
473473
474474
List Workflow Definitions Handler
475475

@@ -513,6 +513,7 @@ with ksapi.ApiClient(configuration) as api_client:
513513
# Create an instance of the API class
514514
api_instance = ksapi.WorkflowDefinitionsApi(api_client)
515515
mine = False # bool | Only definitions the caller created (owner). (optional) (default to False)
516+
search = 'search_example' # str | Case-insensitive substring over name and description. (optional)
516517
sort_by = ksapi.WorkflowDefinitionOrder() # WorkflowDefinitionOrder | Field to sort definitions by (default: CREATED_AT) (optional)
517518
sort_dir = ksapi.SortDirection() # SortDirection | Sort direction; overrides the field's natural default (optional)
518519
is_template = False # bool | (optional) (default to False)
@@ -522,10 +523,12 @@ with ksapi.ApiClient(configuration) as api_client:
522523
created_before = '2013-10-20T19:20:30+01:00' # datetime | Only items created strictly before this timestamp (optional)
523524
updated_after = '2013-10-20T19:20:30+01:00' # datetime | Only items updated at or after this timestamp (inclusive) (optional)
524525
updated_before = '2013-10-20T19:20:30+01:00' # datetime | Only items updated strictly before this timestamp (optional)
526+
include_tag_ids = None # List[UUID] | Keep only items that carry at least one of these tags on the item itself or any ancestor folder (repeatable, OR / tag inheritance). (optional)
527+
exclude_tag_ids = None # List[UUID] | Drop items that carry any of these tags on the item itself or any ancestor folder (repeatable). Takes precedence over include_tag_ids. (optional)
525528

526529
try:
527530
# List Workflow Definitions Handler
528-
api_response = api_instance.list_workflow_definitions(mine=mine, sort_by=sort_by, sort_dir=sort_dir, is_template=is_template, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before)
531+
api_response = api_instance.list_workflow_definitions(mine=mine, search=search, sort_by=sort_by, sort_dir=sort_dir, is_template=is_template, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
529532
print("The response of WorkflowDefinitionsApi->list_workflow_definitions:\n")
530533
pprint(api_response)
531534
except Exception as e:
@@ -540,6 +543,7 @@ with ksapi.ApiClient(configuration) as api_client:
540543
Name | Type | Description | Notes
541544
------------- | ------------- | ------------- | -------------
542545
**mine** | **bool**| Only definitions the caller created (owner). | [optional] [default to False]
546+
**search** | **str**| Case-insensitive substring over name and description. | [optional]
543547
**sort_by** | [**WorkflowDefinitionOrder**](.md)| Field to sort definitions by (default: CREATED_AT) | [optional]
544548
**sort_dir** | [**SortDirection**](.md)| Sort direction; overrides the field's natural default | [optional]
545549
**is_template** | **bool**| | [optional] [default to False]
@@ -549,6 +553,8 @@ Name | Type | Description | Notes
549553
**created_before** | **datetime**| Only items created strictly before this timestamp | [optional]
550554
**updated_after** | **datetime**| Only items updated at or after this timestamp (inclusive) | [optional]
551555
**updated_before** | **datetime**| Only items updated strictly before this timestamp | [optional]
556+
**include_tag_ids** | [**List[UUID]**](UUID.md)| Keep only items that carry at least one of these tags on the item itself or any ancestor folder (repeatable, OR / tag inheritance). | [optional]
557+
**exclude_tag_ids** | [**List[UUID]**](UUID.md)| Drop items that carry any of these tags on the item itself or any ancestor folder (repeatable). Takes precedence over include_tag_ids. | [optional]
552558

553559
### Return type
554560

‎ksapi/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.159.1"
17+
__version__ = "1.160.0"
1818

1919
# Define package exports
2020
__all__ = [
@@ -241,6 +241,7 @@
241241
"KbSummaryResponse",
242242
"KbTimeseriesResponse",
243243
"LabeledSeries",
244+
"LastRunSummary",
244245
"LeaderboardEntry",
245246
"LineageEdgeResponse",
246247
"LineageGraphResponse",
@@ -679,6 +680,7 @@
679680
from ksapi.models.kb_summary_response import KbSummaryResponse as KbSummaryResponse
680681
from ksapi.models.kb_timeseries_response import KbTimeseriesResponse as KbTimeseriesResponse
681682
from ksapi.models.labeled_series import LabeledSeries as LabeledSeries
683+
from ksapi.models.last_run_summary import LastRunSummary as LastRunSummary
682684
from ksapi.models.leaderboard_entry import LeaderboardEntry as LeaderboardEntry
683685
from ksapi.models.lineage_edge_response import LineageEdgeResponse as LineageEdgeResponse
684686
from ksapi.models.lineage_graph_response import LineageGraphResponse as LineageGraphResponse

0 commit comments

Comments
 (0)