Skip to content

Commit e996e8c

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.124.0 from ks-backend
1 parent 8438bfa commit e996e8c

9 files changed

Lines changed: 165 additions & 36 deletions

File tree

‎docs/FoldersApi.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ Name | Type | Description | Notes
370370
[[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)
371371

372372
# **list_folder_contents**
373-
> PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator list_folder_contents(folder_id, max_depth=max_depth, sort_order=sort_order, with_tags=with_tags, limit=limit, offset=offset)
373+
> PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator list_folder_contents(folder_id, max_depth=max_depth, sort_order=sort_order, with_tags=with_tags, limit=limit, offset=offset, approval_state=approval_state, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
374374
375375
List Folder Contents Handler
376376

@@ -381,6 +381,10 @@ distinguished by the `part_type` field ("FOLDER" or "DOCUMENT").
381381

382382
When with_tags=true, each item includes a tags field with the full tag objects.
383383

384+
``approval_state`` / ``include_tag_ids`` / ``exclude_tag_ids`` filter the
385+
result at the path_part layer: approval state on the item, tags matched by
386+
self-or-ancestor inheritance (include = OR, exclude wins).
387+
384388
This is the preferred way to list folder contents when you need document metadata.
385389
For generic path traversal of folders only, use GET /path-parts.
386390

@@ -393,6 +397,7 @@ For generic path traversal of folders only, use GET /path-parts.
393397
import ksapi
394398
from ksapi.models.paginated_response_annotated_union_folder_response_document_response_workflow_definition_response_workflow_run_response_data_source_response_data_source_schema_response_data_source_table_response_api_connection_response_discriminator import PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator
395399
from ksapi.models.path_order import PathOrder
400+
from ksapi.models.path_part_approval_state import PathPartApprovalState
396401
from ksapi.rest import ApiException
397402
from pprint import pprint
398403

@@ -428,10 +433,13 @@ with ksapi.ApiClient(configuration) as api_client:
428433
with_tags = False # bool | Include tag IDs for each item (default: false) (optional) (default to False)
429434
limit = 20 # int | Number of items per page (optional) (default to 20)
430435
offset = 0 # int | Number of items to skip (optional) (default to 0)
436+
approval_state = [ksapi.PathPartApprovalState()] # List[PathPartApprovalState] | Keep only items in these approval states (repeatable): not_required, pending, approved. (optional)
437+
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)
438+
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)
431439

432440
try:
433441
# List Folder Contents Handler
434-
api_response = api_instance.list_folder_contents(folder_id, max_depth=max_depth, sort_order=sort_order, with_tags=with_tags, limit=limit, offset=offset)
442+
api_response = api_instance.list_folder_contents(folder_id, max_depth=max_depth, sort_order=sort_order, with_tags=with_tags, limit=limit, offset=offset, approval_state=approval_state, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
435443
print("The response of FoldersApi->list_folder_contents:\n")
436444
pprint(api_response)
437445
except Exception as e:
@@ -451,6 +459,9 @@ Name | Type | Description | Notes
451459
**with_tags** | **bool**| Include tag IDs for each item (default: false) | [optional] [default to False]
452460
**limit** | **int**| Number of items per page | [optional] [default to 20]
453461
**offset** | **int**| Number of items to skip | [optional] [default to 0]
462+
**approval_state** | [**List[PathPartApprovalState]**](PathPartApprovalState.md)| Keep only items in these approval states (repeatable): not_required, pending, approved. | [optional]
463+
**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]
464+
**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]
454465

455466
### Return type
456467

‎docs/WorkflowRunsApi.md‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,17 @@ Name | Type | Description | Notes
376376
[[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)
377377

378378
# **list_workflow_runs_for_tenant**
379-
> PaginatedResponseWorkflowRunResponse list_workflow_runs_for_tenant(state=state, mine=mine, pending_approval_for_me=pending_approval_for_me, definition_id=definition_id, owner_id=owner_id, sort_by=sort_by, sort_dir=sort_dir, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before)
379+
> PaginatedResponseWorkflowRunResponse list_workflow_runs_for_tenant(state=state, mine=mine, approvable_by_me=approvable_by_me, definition_id=definition_id, owner_id=owner_id, sort_by=sort_by, sort_dir=sort_dir, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before, approval_state=approval_state, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
380380
381381
List Workflow Runs For Tenant Handler
382382

383383
List runs across every workflow in the tenant, permission-scoped.
384384

385385
The single spine behind the dashboard worklists — the FE composes its
386-
tabs from preset filters (``mine`` + ``state``, ``pending_approval_for_me``).
387-
Visibility follows the same model as the per-definition list: OWNER/ADMIN
388-
see all; a USER sees runs under workflows they can read.
386+
tabs from preset filters (``mine`` + ``state``, and the approval worklist
387+
``approval_state=pending`` + ``approvable_by_me``). Visibility follows the
388+
same model as the per-definition list: OWNER/ADMIN see all; a USER sees
389+
runs under workflows they can read.
389390

390391
### Example
391392

@@ -395,6 +396,7 @@ see all; a USER sees runs under workflows they can read.
395396
```python
396397
import ksapi
397398
from ksapi.models.paginated_response_workflow_run_response import PaginatedResponseWorkflowRunResponse
399+
from ksapi.models.path_part_approval_state import PathPartApprovalState
398400
from ksapi.models.sort_direction import SortDirection
399401
from ksapi.models.workflow_execution_state import WorkflowExecutionState
400402
from ksapi.models.workflow_run_order import WorkflowRunOrder
@@ -429,7 +431,7 @@ with ksapi.ApiClient(configuration) as api_client:
429431
api_instance = ksapi.WorkflowRunsApi(api_client)
430432
state = [ksapi.WorkflowExecutionState()] # List[WorkflowExecutionState] | Keep only runs in these execution states (repeatable). (optional)
431433
mine = False # bool | Only runs the caller created (owner). Overrides owner_id. (optional) (default to False)
432-
pending_approval_for_me = False # bool | Only runs pending approval that the caller may approve. (optional) (default to False)
434+
approvable_by_me = False # bool | Only runs the caller may approve (approve-path scoped). Compose with approval_state=pending for the approval worklist. (optional) (default to False)
433435
definition_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Only runs under this workflow definition. (optional)
434436
owner_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Only runs created by this user. (optional)
435437
sort_by = ksapi.WorkflowRunOrder() # WorkflowRunOrder | Field to sort runs by (default: STARTED_AT) (optional)
@@ -440,10 +442,13 @@ with ksapi.ApiClient(configuration) as api_client:
440442
created_before = '2013-10-20T19:20:30+01:00' # datetime | Only items created strictly before this timestamp (optional)
441443
updated_after = '2013-10-20T19:20:30+01:00' # datetime | Only items updated at or after this timestamp (inclusive) (optional)
442444
updated_before = '2013-10-20T19:20:30+01:00' # datetime | Only items updated strictly before this timestamp (optional)
445+
approval_state = [ksapi.PathPartApprovalState()] # List[PathPartApprovalState] | Keep only items in these approval states (repeatable): not_required, pending, approved. (optional)
446+
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)
447+
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)
443448

444449
try:
445450
# List Workflow Runs For Tenant Handler
446-
api_response = api_instance.list_workflow_runs_for_tenant(state=state, mine=mine, pending_approval_for_me=pending_approval_for_me, definition_id=definition_id, owner_id=owner_id, sort_by=sort_by, sort_dir=sort_dir, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before)
451+
api_response = api_instance.list_workflow_runs_for_tenant(state=state, mine=mine, approvable_by_me=approvable_by_me, definition_id=definition_id, owner_id=owner_id, sort_by=sort_by, sort_dir=sort_dir, limit=limit, offset=offset, created_after=created_after, created_before=created_before, updated_after=updated_after, updated_before=updated_before, approval_state=approval_state, include_tag_ids=include_tag_ids, exclude_tag_ids=exclude_tag_ids)
447452
print("The response of WorkflowRunsApi->list_workflow_runs_for_tenant:\n")
448453
pprint(api_response)
449454
except Exception as e:
@@ -459,7 +464,7 @@ Name | Type | Description | Notes
459464
------------- | ------------- | ------------- | -------------
460465
**state** | [**List[WorkflowExecutionState]**](WorkflowExecutionState.md)| Keep only runs in these execution states (repeatable). | [optional]
461466
**mine** | **bool**| Only runs the caller created (owner). Overrides owner_id. | [optional] [default to False]
462-
**pending_approval_for_me** | **bool**| Only runs pending approval that the caller may approve. | [optional] [default to False]
467+
**approvable_by_me** | **bool**| Only runs the caller may approve (approve-path scoped). Compose with approval_state=pending for the approval worklist. | [optional] [default to False]
463468
**definition_id** | **UUID**| Only runs under this workflow definition. | [optional]
464469
**owner_id** | **UUID**| Only runs created by this user. | [optional]
465470
**sort_by** | [**WorkflowRunOrder**](.md)| Field to sort runs by (default: STARTED_AT) | [optional]
@@ -470,6 +475,9 @@ Name | Type | Description | Notes
470475
**created_before** | **datetime**| Only items created strictly before this timestamp | [optional]
471476
**updated_after** | **datetime**| Only items updated at or after this timestamp (inclusive) | [optional]
472477
**updated_before** | **datetime**| Only items updated strictly before this timestamp | [optional]
478+
**approval_state** | [**List[PathPartApprovalState]**](PathPartApprovalState.md)| Keep only items in these approval states (repeatable): not_required, pending, approved. | [optional]
479+
**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]
480+
**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]
473481

474482
### Return type
475483

‎ksapi/__init__.py‎

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

1616

17-
__version__ = "1.123.3"
17+
__version__ = "1.124.0"
1818

1919
# Define package exports
2020
__all__ = [

0 commit comments

Comments
 (0)