cyberdesk 2.1.14__py3-none-any.whl → 2.1.16__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.
Potentially problematic release.
This version of cyberdesk might be problematic. Click here for more details.
- cyberdesk/__init__.py +1 -1
- cyberdesk/client.py +58 -7
- {cyberdesk-2.1.14.dist-info → cyberdesk-2.1.16.dist-info}/METADATA +1 -1
- {cyberdesk-2.1.14.dist-info → cyberdesk-2.1.16.dist-info}/RECORD +11 -11
- openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +32 -4
- openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +9 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +8 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +20 -0
- {cyberdesk-2.1.14.dist-info → cyberdesk-2.1.16.dist-info}/WHEEL +0 -0
- {cyberdesk-2.1.14.dist-info → cyberdesk-2.1.16.dist-info}/licenses/LICENSE +0 -0
- {cyberdesk-2.1.14.dist-info → cyberdesk-2.1.16.dist-info}/top_level.txt +0 -0
cyberdesk/__init__.py
CHANGED
cyberdesk/client.py
CHANGED
|
@@ -1269,19 +1269,35 @@ class TrajectoriesAPI:
|
|
|
1269
1269
|
skip: Optional[int] = None,
|
|
1270
1270
|
limit: Optional[int] = None,
|
|
1271
1271
|
workflow_id: Optional[str] = None,
|
|
1272
|
+
is_approved: Optional[bool] = None,
|
|
1272
1273
|
*,
|
|
1273
1274
|
created_at_from: Optional[Union[str, datetime]] = None,
|
|
1274
1275
|
created_at_to: Optional[Union[str, datetime]] = None,
|
|
1275
1276
|
updated_at_from: Optional[Union[str, datetime]] = None,
|
|
1276
1277
|
updated_at_to: Optional[Union[str, datetime]] = None,
|
|
1277
1278
|
) -> ApiResponse:
|
|
1278
|
-
"""List trajectories with optional filtering.
|
|
1279
|
+
"""List trajectories with optional filtering.
|
|
1280
|
+
|
|
1281
|
+
Args:
|
|
1282
|
+
skip: Number of records to skip
|
|
1283
|
+
limit: Number of records to return
|
|
1284
|
+
workflow_id: Filter by workflow ID
|
|
1285
|
+
is_approved: Filter by approval status (True=approved, False=not approved, None=all)
|
|
1286
|
+
created_at_from: Filter created at or after (UTC or ISO string)
|
|
1287
|
+
created_at_to: Filter created at or before (UTC or ISO string)
|
|
1288
|
+
updated_at_from: Filter updated at or after (UTC or ISO string)
|
|
1289
|
+
updated_at_to: Filter updated at or before (UTC or ISO string)
|
|
1290
|
+
|
|
1291
|
+
Note: By default returns both approved and unapproved trajectories.
|
|
1292
|
+
Only approved trajectories are used during workflow execution.
|
|
1293
|
+
"""
|
|
1279
1294
|
try:
|
|
1280
1295
|
response = await list_trajectories_v1_trajectories_get.asyncio(
|
|
1281
1296
|
client=self.client,
|
|
1282
1297
|
skip=_to_unset_or_value(skip),
|
|
1283
1298
|
limit=_to_unset_or_value(limit),
|
|
1284
1299
|
workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
|
|
1300
|
+
is_approved=_to_unset_or_value(is_approved),
|
|
1285
1301
|
created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
|
|
1286
1302
|
created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
|
|
1287
1303
|
updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
|
|
@@ -1296,19 +1312,35 @@ class TrajectoriesAPI:
|
|
|
1296
1312
|
skip: Optional[int] = None,
|
|
1297
1313
|
limit: Optional[int] = None,
|
|
1298
1314
|
workflow_id: Optional[str] = None,
|
|
1315
|
+
is_approved: Optional[bool] = None,
|
|
1299
1316
|
*,
|
|
1300
1317
|
created_at_from: Optional[Union[str, datetime]] = None,
|
|
1301
1318
|
created_at_to: Optional[Union[str, datetime]] = None,
|
|
1302
1319
|
updated_at_from: Optional[Union[str, datetime]] = None,
|
|
1303
1320
|
updated_at_to: Optional[Union[str, datetime]] = None,
|
|
1304
1321
|
) -> ApiResponse:
|
|
1305
|
-
"""List trajectories with optional filtering (synchronous).
|
|
1322
|
+
"""List trajectories with optional filtering (synchronous).
|
|
1323
|
+
|
|
1324
|
+
Args:
|
|
1325
|
+
skip: Number of records to skip
|
|
1326
|
+
limit: Number of records to return
|
|
1327
|
+
workflow_id: Filter by workflow ID
|
|
1328
|
+
is_approved: Filter by approval status (True=approved, False=not approved, None=all)
|
|
1329
|
+
created_at_from: Filter created at or after (UTC or ISO string)
|
|
1330
|
+
created_at_to: Filter created at or before (UTC or ISO string)
|
|
1331
|
+
updated_at_from: Filter updated at or after (UTC or ISO string)
|
|
1332
|
+
updated_at_to: Filter updated at or before (UTC or ISO string)
|
|
1333
|
+
|
|
1334
|
+
Note: By default returns both approved and unapproved trajectories.
|
|
1335
|
+
Only approved trajectories are used during workflow execution.
|
|
1336
|
+
"""
|
|
1306
1337
|
try:
|
|
1307
1338
|
response = list_trajectories_v1_trajectories_get.sync(
|
|
1308
1339
|
client=self.client,
|
|
1309
1340
|
skip=_to_unset_or_value(skip),
|
|
1310
1341
|
limit=_to_unset_or_value(limit),
|
|
1311
1342
|
workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
|
|
1343
|
+
is_approved=_to_unset_or_value(is_approved),
|
|
1312
1344
|
created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
|
|
1313
1345
|
created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
|
|
1314
1346
|
updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
|
|
@@ -1319,7 +1351,11 @@ class TrajectoriesAPI:
|
|
|
1319
1351
|
return ApiResponse(error=e)
|
|
1320
1352
|
|
|
1321
1353
|
async def create(self, data: TrajectoryCreate) -> ApiResponse:
|
|
1322
|
-
"""Create a new trajectory.
|
|
1354
|
+
"""Create a new trajectory.
|
|
1355
|
+
|
|
1356
|
+
Note: Trajectories are created with is_approved=False by default.
|
|
1357
|
+
You must explicitly approve them before they can be used during workflow execution.
|
|
1358
|
+
"""
|
|
1323
1359
|
try:
|
|
1324
1360
|
response = await create_trajectory_v1_trajectories_post.asyncio(
|
|
1325
1361
|
client=self.client,
|
|
@@ -1330,7 +1366,11 @@ class TrajectoriesAPI:
|
|
|
1330
1366
|
return ApiResponse(error=e)
|
|
1331
1367
|
|
|
1332
1368
|
def create_sync(self, data: TrajectoryCreate) -> ApiResponse:
|
|
1333
|
-
"""Create a new trajectory (synchronous).
|
|
1369
|
+
"""Create a new trajectory (synchronous).
|
|
1370
|
+
|
|
1371
|
+
Note: Trajectories are created with is_approved=False by default.
|
|
1372
|
+
You must explicitly approve them before they can be used during workflow execution.
|
|
1373
|
+
"""
|
|
1334
1374
|
try:
|
|
1335
1375
|
response = create_trajectory_v1_trajectories_post.sync(
|
|
1336
1376
|
client=self.client,
|
|
@@ -1363,7 +1403,12 @@ class TrajectoriesAPI:
|
|
|
1363
1403
|
return ApiResponse(error=e)
|
|
1364
1404
|
|
|
1365
1405
|
async def update(self, trajectory_id: str, data: TrajectoryUpdate) -> ApiResponse:
|
|
1366
|
-
"""Update a trajectory.
|
|
1406
|
+
"""Update a trajectory.
|
|
1407
|
+
|
|
1408
|
+
You can update trajectory metadata (name, description), trajectory data (steps),
|
|
1409
|
+
and approval status (is_approved). Only approved trajectories are used during
|
|
1410
|
+
workflow execution.
|
|
1411
|
+
"""
|
|
1367
1412
|
try:
|
|
1368
1413
|
response = await update_trajectory_v1_trajectories_trajectory_id_patch.asyncio(
|
|
1369
1414
|
client=self.client,
|
|
@@ -1375,7 +1420,12 @@ class TrajectoriesAPI:
|
|
|
1375
1420
|
return ApiResponse(error=e)
|
|
1376
1421
|
|
|
1377
1422
|
def update_sync(self, trajectory_id: str, data: TrajectoryUpdate) -> ApiResponse:
|
|
1378
|
-
"""Update a trajectory (synchronous).
|
|
1423
|
+
"""Update a trajectory (synchronous).
|
|
1424
|
+
|
|
1425
|
+
You can update trajectory metadata (name, description), trajectory data (steps),
|
|
1426
|
+
and approval status (is_approved). Only approved trajectories are used during
|
|
1427
|
+
workflow execution.
|
|
1428
|
+
"""
|
|
1379
1429
|
try:
|
|
1380
1430
|
response = update_trajectory_v1_trajectories_trajectory_id_patch.sync(
|
|
1381
1431
|
client=self.client,
|
|
@@ -1779,7 +1829,8 @@ class CyberdeskClient:
|
|
|
1779
1829
|
base_url=base_url,
|
|
1780
1830
|
token=api_key,
|
|
1781
1831
|
prefix="Bearer",
|
|
1782
|
-
auth_header_name="Authorization"
|
|
1832
|
+
auth_header_name="Authorization",
|
|
1833
|
+
raise_on_unexpected_status=True # Raise exceptions for non-200/422 responses
|
|
1783
1834
|
)
|
|
1784
1835
|
|
|
1785
1836
|
# Initialize API endpoints
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
cyberdesk/__init__.py,sha256=
|
|
2
|
-
cyberdesk/client.py,sha256=
|
|
3
|
-
cyberdesk-2.1.
|
|
1
|
+
cyberdesk/__init__.py,sha256=WLCm4Occ0DjaK7XX7QhQq7a0-Kq0X3kTmlFDuBRAE24,1158
|
|
2
|
+
cyberdesk/client.py,sha256=o_uPqIghjtKUjAVjpKVmKI3VKKFUl6bPk7nXZHs_6ec,71551
|
|
3
|
+
cyberdesk-2.1.16.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
|
|
4
4
|
openapi_client/cyberdesk_cloud_client/__init__.py,sha256=r_uVkNUL-SOK8j7-KiGMIKdinES5X8K1Q250ySX2F-A,158
|
|
5
5
|
openapi_client/cyberdesk_cloud_client/client.py,sha256=o_mdLqyBCQstu5tS1WZFwqIEbGwkvWQ7eQjuCJw_5VY,12419
|
|
6
6
|
openapi_client/cyberdesk_cloud_client/errors.py,sha256=gO8GBmKqmSNgAg-E5oT-oOyxztvp7V_6XG7OUTT15q0,546
|
|
@@ -81,7 +81,7 @@ openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_traj
|
|
|
81
81
|
openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py,sha256=uvWcVq-VsklflJd47OKsYszIXNFPu0YCAADo8NHmTR4,4366
|
|
82
82
|
openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py,sha256=kFsYg3Jx13x56TrHCVuM7yzPBWKVBwZPklSxqELx1Fc,5026
|
|
83
83
|
openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py,sha256=d3cTp_hEThXejqxsdnRg1QhVoSMGMO1cLdeUG1vy7oo,4883
|
|
84
|
-
openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py,sha256=
|
|
84
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py,sha256=Xq8YEFuz2SuoUXzvZpQlsegufKjcbw0JJybs0nXDFh8,13922
|
|
85
85
|
openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py,sha256=s3S6I24Tsf1nTByOf3bNw88WAfo6ogdo_PG7AjDbl-Q,5596
|
|
86
86
|
openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
87
87
|
openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py,sha256=b_N1b5ujzuKuhgnlqRQdU4LB_aBSBcR0kl06ZZOJaJc,4836
|
|
@@ -169,15 +169,15 @@ openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=EY8zP-Dd3WgGNd
|
|
|
169
169
|
openapi_client/cyberdesk_cloud_client/models/run_update_input_values_type_0.py,sha256=Dg_CSahXf_M8x7go8K0BoUrHWnoKpc6l-IFPeT15DNk,1282
|
|
170
170
|
openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py,sha256=XyksD89ENT2TgzGiS7bU32rs1rHSFAhiamjz78nUft4,1277
|
|
171
171
|
openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py,sha256=j-SrGOc1EgVNQlUk189qUzQLBYCgBvzR23yjvZ71LGw,1338
|
|
172
|
-
openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=
|
|
172
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=Hef2LUv6NVAIcw0mLy4DukGzT4XZIw_THqxKH1rrPbk,6844
|
|
173
173
|
openapi_client/cyberdesk_cloud_client/models/trajectory_create_dimensions.py,sha256=PRX7oM8sseKD0nhJsQ8SYP4aOzjkMtfcza7_jWFVl9Y,1324
|
|
174
174
|
openapi_client/cyberdesk_cloud_client/models/trajectory_create_original_input_values_type_0.py,sha256=Rz80esN5_oDA-dXeZ9WFhe6POtNJXWvZjoOqw1KUVJM,1360
|
|
175
175
|
openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py,sha256=_8TzdjPWMx4YzsSTCiA_45R2TrNjWhu3nlknQ8KCy_U,1324
|
|
176
|
-
openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=
|
|
176
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=TFesZ-VyHzCYFpsVVBpvooj5Cu438Z2-cd-5xygUstE,9235
|
|
177
177
|
openapi_client/cyberdesk_cloud_client/models/trajectory_response_dimensions.py,sha256=MG0Le6-JKmCF9oIymTWw1BSNYuk61CX8-EJCWhSRUjE,1334
|
|
178
178
|
openapi_client/cyberdesk_cloud_client/models/trajectory_response_original_input_values_type_0.py,sha256=ZzFZTF9Z3U8WJWrH8J5yaUOd9QN0v_T8wW9LQgYoEC8,1370
|
|
179
179
|
openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py,sha256=h0JpPrd5qzo3ue4l9jBXk-R49ipVr75W_RsZw6e5cjk,1334
|
|
180
|
-
openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=
|
|
180
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=R9gyxkYkO3Q3bVQ7DWJ7vO01jypNXzJHU4J1ThiwFMM,5695
|
|
181
181
|
openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
|
|
182
182
|
openapi_client/cyberdesk_cloud_client/models/validation_error.py,sha256=ZlK9hbhWr4zSC-dxZh9giERvMiYf9s2k8e1O9Rch_NI,2181
|
|
183
183
|
openapi_client/cyberdesk_cloud_client/models/workflow_chain_create.py,sha256=SVFhPy0aNBgWWUJwCBhxUmMHfoJSOohbjgW-0_DYLy0,12580
|
|
@@ -188,7 +188,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=d0bfNbNBF
|
|
|
188
188
|
openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=k48mouJ6Dcisz2vyM7Rb_cbjU66JudGVPsq4UC7grHA,8977
|
|
189
189
|
openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
|
|
190
190
|
openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=TG2jEitXixS2thtz7lTxTZaE0RBVSWd-apVxWxsvnrg,5333
|
|
191
|
-
cyberdesk-2.1.
|
|
192
|
-
cyberdesk-2.1.
|
|
193
|
-
cyberdesk-2.1.
|
|
194
|
-
cyberdesk-2.1.
|
|
191
|
+
cyberdesk-2.1.16.dist-info/METADATA,sha256=6rCsHVIpEbQ857nl58UDatzyDltRp4DWhJ_RMGweiIs,6792
|
|
192
|
+
cyberdesk-2.1.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
193
|
+
cyberdesk-2.1.16.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
|
|
194
|
+
cyberdesk-2.1.16.dist-info/RECORD,,
|
openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py
CHANGED
|
@@ -15,6 +15,7 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
17
|
workflow_id: Union[None, UUID, Unset] = UNSET,
|
|
18
|
+
is_approved: Union[None, Unset, bool] = UNSET,
|
|
18
19
|
created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
19
20
|
created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
|
|
20
21
|
updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
@@ -33,6 +34,13 @@ def _get_kwargs(
|
|
|
33
34
|
json_workflow_id = workflow_id
|
|
34
35
|
params["workflow_id"] = json_workflow_id
|
|
35
36
|
|
|
37
|
+
json_is_approved: Union[None, Unset, bool]
|
|
38
|
+
if isinstance(is_approved, Unset):
|
|
39
|
+
json_is_approved = UNSET
|
|
40
|
+
else:
|
|
41
|
+
json_is_approved = is_approved
|
|
42
|
+
params["is_approved"] = json_is_approved
|
|
43
|
+
|
|
36
44
|
json_created_at_from: Union[None, Unset, str]
|
|
37
45
|
if isinstance(created_at_from, Unset):
|
|
38
46
|
json_created_at_from = UNSET
|
|
@@ -116,6 +124,7 @@ def sync_detailed(
|
|
|
116
124
|
*,
|
|
117
125
|
client: AuthenticatedClient,
|
|
118
126
|
workflow_id: Union[None, UUID, Unset] = UNSET,
|
|
127
|
+
is_approved: Union[None, Unset, bool] = UNSET,
|
|
119
128
|
created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
120
129
|
created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
|
|
121
130
|
updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
@@ -127,11 +136,14 @@ def sync_detailed(
|
|
|
127
136
|
|
|
128
137
|
List all trajectories for the authenticated organization.
|
|
129
138
|
|
|
130
|
-
Supports pagination and filtering by workflow.
|
|
139
|
+
Supports pagination and filtering by workflow and approval status.
|
|
140
|
+
Only approved trajectories are used during workflow execution.
|
|
131
141
|
Returns trajectories with their associated workflow data.
|
|
132
142
|
|
|
133
143
|
Args:
|
|
134
144
|
workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
|
|
145
|
+
is_approved (Union[None, Unset, bool]): Filter by approval status (true=approved,
|
|
146
|
+
false=not approved)
|
|
135
147
|
created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
136
148
|
after this ISO timestamp (UTC)
|
|
137
149
|
created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
@@ -153,6 +165,7 @@ def sync_detailed(
|
|
|
153
165
|
|
|
154
166
|
kwargs = _get_kwargs(
|
|
155
167
|
workflow_id=workflow_id,
|
|
168
|
+
is_approved=is_approved,
|
|
156
169
|
created_at_from=created_at_from,
|
|
157
170
|
created_at_to=created_at_to,
|
|
158
171
|
updated_at_from=updated_at_from,
|
|
@@ -172,6 +185,7 @@ def sync(
|
|
|
172
185
|
*,
|
|
173
186
|
client: AuthenticatedClient,
|
|
174
187
|
workflow_id: Union[None, UUID, Unset] = UNSET,
|
|
188
|
+
is_approved: Union[None, Unset, bool] = UNSET,
|
|
175
189
|
created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
176
190
|
created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
|
|
177
191
|
updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
@@ -183,11 +197,14 @@ def sync(
|
|
|
183
197
|
|
|
184
198
|
List all trajectories for the authenticated organization.
|
|
185
199
|
|
|
186
|
-
Supports pagination and filtering by workflow.
|
|
200
|
+
Supports pagination and filtering by workflow and approval status.
|
|
201
|
+
Only approved trajectories are used during workflow execution.
|
|
187
202
|
Returns trajectories with their associated workflow data.
|
|
188
203
|
|
|
189
204
|
Args:
|
|
190
205
|
workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
|
|
206
|
+
is_approved (Union[None, Unset, bool]): Filter by approval status (true=approved,
|
|
207
|
+
false=not approved)
|
|
191
208
|
created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
192
209
|
after this ISO timestamp (UTC)
|
|
193
210
|
created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
@@ -210,6 +227,7 @@ def sync(
|
|
|
210
227
|
return sync_detailed(
|
|
211
228
|
client=client,
|
|
212
229
|
workflow_id=workflow_id,
|
|
230
|
+
is_approved=is_approved,
|
|
213
231
|
created_at_from=created_at_from,
|
|
214
232
|
created_at_to=created_at_to,
|
|
215
233
|
updated_at_from=updated_at_from,
|
|
@@ -223,6 +241,7 @@ async def asyncio_detailed(
|
|
|
223
241
|
*,
|
|
224
242
|
client: AuthenticatedClient,
|
|
225
243
|
workflow_id: Union[None, UUID, Unset] = UNSET,
|
|
244
|
+
is_approved: Union[None, Unset, bool] = UNSET,
|
|
226
245
|
created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
227
246
|
created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
|
|
228
247
|
updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
@@ -234,11 +253,14 @@ async def asyncio_detailed(
|
|
|
234
253
|
|
|
235
254
|
List all trajectories for the authenticated organization.
|
|
236
255
|
|
|
237
|
-
Supports pagination and filtering by workflow.
|
|
256
|
+
Supports pagination and filtering by workflow and approval status.
|
|
257
|
+
Only approved trajectories are used during workflow execution.
|
|
238
258
|
Returns trajectories with their associated workflow data.
|
|
239
259
|
|
|
240
260
|
Args:
|
|
241
261
|
workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
|
|
262
|
+
is_approved (Union[None, Unset, bool]): Filter by approval status (true=approved,
|
|
263
|
+
false=not approved)
|
|
242
264
|
created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
243
265
|
after this ISO timestamp (UTC)
|
|
244
266
|
created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
@@ -260,6 +282,7 @@ async def asyncio_detailed(
|
|
|
260
282
|
|
|
261
283
|
kwargs = _get_kwargs(
|
|
262
284
|
workflow_id=workflow_id,
|
|
285
|
+
is_approved=is_approved,
|
|
263
286
|
created_at_from=created_at_from,
|
|
264
287
|
created_at_to=created_at_to,
|
|
265
288
|
updated_at_from=updated_at_from,
|
|
@@ -277,6 +300,7 @@ async def asyncio(
|
|
|
277
300
|
*,
|
|
278
301
|
client: AuthenticatedClient,
|
|
279
302
|
workflow_id: Union[None, UUID, Unset] = UNSET,
|
|
303
|
+
is_approved: Union[None, Unset, bool] = UNSET,
|
|
280
304
|
created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
281
305
|
created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
|
|
282
306
|
updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
|
|
@@ -288,11 +312,14 @@ async def asyncio(
|
|
|
288
312
|
|
|
289
313
|
List all trajectories for the authenticated organization.
|
|
290
314
|
|
|
291
|
-
Supports pagination and filtering by workflow.
|
|
315
|
+
Supports pagination and filtering by workflow and approval status.
|
|
316
|
+
Only approved trajectories are used during workflow execution.
|
|
292
317
|
Returns trajectories with their associated workflow data.
|
|
293
318
|
|
|
294
319
|
Args:
|
|
295
320
|
workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
|
|
321
|
+
is_approved (Union[None, Unset, bool]): Filter by approval status (true=approved,
|
|
322
|
+
false=not approved)
|
|
296
323
|
created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
297
324
|
after this ISO timestamp (UTC)
|
|
298
325
|
created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
|
|
@@ -316,6 +343,7 @@ async def asyncio(
|
|
|
316
343
|
await asyncio_detailed(
|
|
317
344
|
client=client,
|
|
318
345
|
workflow_id=workflow_id,
|
|
346
|
+
is_approved=is_approved,
|
|
319
347
|
created_at_from=created_at_from,
|
|
320
348
|
created_at_to=created_at_to,
|
|
321
349
|
updated_at_from=updated_at_from,
|
|
@@ -28,6 +28,7 @@ class TrajectoryCreate:
|
|
|
28
28
|
description (Union[None, Unset, str]):
|
|
29
29
|
original_input_values (Union['TrajectoryCreateOriginalInputValuesType0', None, Unset]): Original input values
|
|
30
30
|
used when trajectory was created
|
|
31
|
+
is_approved (Union[Unset, bool]): Whether this trajectory is approved for use Default: False.
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
workflow_id: UUID
|
|
@@ -36,6 +37,7 @@ class TrajectoryCreate:
|
|
|
36
37
|
name: Union[None, Unset, str] = UNSET
|
|
37
38
|
description: Union[None, Unset, str] = UNSET
|
|
38
39
|
original_input_values: Union["TrajectoryCreateOriginalInputValuesType0", None, Unset] = UNSET
|
|
40
|
+
is_approved: Union[Unset, bool] = False
|
|
39
41
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
42
|
|
|
41
43
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -70,6 +72,8 @@ class TrajectoryCreate:
|
|
|
70
72
|
else:
|
|
71
73
|
original_input_values = self.original_input_values
|
|
72
74
|
|
|
75
|
+
is_approved = self.is_approved
|
|
76
|
+
|
|
73
77
|
field_dict: dict[str, Any] = {}
|
|
74
78
|
field_dict.update(self.additional_properties)
|
|
75
79
|
field_dict.update(
|
|
@@ -85,6 +89,8 @@ class TrajectoryCreate:
|
|
|
85
89
|
field_dict["description"] = description
|
|
86
90
|
if original_input_values is not UNSET:
|
|
87
91
|
field_dict["original_input_values"] = original_input_values
|
|
92
|
+
if is_approved is not UNSET:
|
|
93
|
+
field_dict["is_approved"] = is_approved
|
|
88
94
|
|
|
89
95
|
return field_dict
|
|
90
96
|
|
|
@@ -143,6 +149,8 @@ class TrajectoryCreate:
|
|
|
143
149
|
|
|
144
150
|
original_input_values = _parse_original_input_values(d.pop("original_input_values", UNSET))
|
|
145
151
|
|
|
152
|
+
is_approved = d.pop("is_approved", UNSET)
|
|
153
|
+
|
|
146
154
|
trajectory_create = cls(
|
|
147
155
|
workflow_id=workflow_id,
|
|
148
156
|
trajectory_data=trajectory_data,
|
|
@@ -150,6 +158,7 @@ class TrajectoryCreate:
|
|
|
150
158
|
name=name,
|
|
151
159
|
description=description,
|
|
152
160
|
original_input_values=original_input_values,
|
|
161
|
+
is_approved=is_approved,
|
|
153
162
|
)
|
|
154
163
|
|
|
155
164
|
trajectory_create.additional_properties = d
|
|
@@ -26,6 +26,7 @@ class TrajectoryResponse:
|
|
|
26
26
|
workflow_id (UUID):
|
|
27
27
|
trajectory_data (list['TrajectoryResponseTrajectoryDataItem']):
|
|
28
28
|
dimensions (TrajectoryResponseDimensions): Display dimensions when trajectory was recorded
|
|
29
|
+
is_approved (bool):
|
|
29
30
|
id (UUID):
|
|
30
31
|
created_at (datetime.datetime):
|
|
31
32
|
updated_at (datetime.datetime):
|
|
@@ -40,6 +41,7 @@ class TrajectoryResponse:
|
|
|
40
41
|
workflow_id: UUID
|
|
41
42
|
trajectory_data: list["TrajectoryResponseTrajectoryDataItem"]
|
|
42
43
|
dimensions: "TrajectoryResponseDimensions"
|
|
44
|
+
is_approved: bool
|
|
43
45
|
id: UUID
|
|
44
46
|
created_at: datetime.datetime
|
|
45
47
|
updated_at: datetime.datetime
|
|
@@ -62,6 +64,8 @@ class TrajectoryResponse:
|
|
|
62
64
|
|
|
63
65
|
dimensions = self.dimensions.to_dict()
|
|
64
66
|
|
|
67
|
+
is_approved = self.is_approved
|
|
68
|
+
|
|
65
69
|
id = str(self.id)
|
|
66
70
|
|
|
67
71
|
created_at = self.created_at.isoformat()
|
|
@@ -109,6 +113,7 @@ class TrajectoryResponse:
|
|
|
109
113
|
"workflow_id": workflow_id,
|
|
110
114
|
"trajectory_data": trajectory_data,
|
|
111
115
|
"dimensions": dimensions,
|
|
116
|
+
"is_approved": is_approved,
|
|
112
117
|
"id": id,
|
|
113
118
|
"created_at": created_at,
|
|
114
119
|
"updated_at": updated_at,
|
|
@@ -145,6 +150,8 @@ class TrajectoryResponse:
|
|
|
145
150
|
|
|
146
151
|
dimensions = TrajectoryResponseDimensions.from_dict(d.pop("dimensions"))
|
|
147
152
|
|
|
153
|
+
is_approved = d.pop("is_approved")
|
|
154
|
+
|
|
148
155
|
id = UUID(d.pop("id"))
|
|
149
156
|
|
|
150
157
|
created_at = isoparse(d.pop("created_at"))
|
|
@@ -218,6 +225,7 @@ class TrajectoryResponse:
|
|
|
218
225
|
workflow_id=workflow_id,
|
|
219
226
|
trajectory_data=trajectory_data,
|
|
220
227
|
dimensions=dimensions,
|
|
228
|
+
is_approved=is_approved,
|
|
221
229
|
id=id,
|
|
222
230
|
created_at=created_at,
|
|
223
231
|
updated_at=updated_at,
|
|
@@ -21,11 +21,13 @@ class TrajectoryUpdate:
|
|
|
21
21
|
name (Union[None, Unset, str]):
|
|
22
22
|
description (Union[None, Unset, str]):
|
|
23
23
|
trajectory_data (Union[None, Unset, list['TrajectoryUpdateTrajectoryDataType0Item']]):
|
|
24
|
+
is_approved (Union[None, Unset, bool]): Whether this trajectory is approved for use
|
|
24
25
|
"""
|
|
25
26
|
|
|
26
27
|
name: Union[None, Unset, str] = UNSET
|
|
27
28
|
description: Union[None, Unset, str] = UNSET
|
|
28
29
|
trajectory_data: Union[None, Unset, list["TrajectoryUpdateTrajectoryDataType0Item"]] = UNSET
|
|
30
|
+
is_approved: Union[None, Unset, bool] = UNSET
|
|
29
31
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
32
|
|
|
31
33
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -53,6 +55,12 @@ class TrajectoryUpdate:
|
|
|
53
55
|
else:
|
|
54
56
|
trajectory_data = self.trajectory_data
|
|
55
57
|
|
|
58
|
+
is_approved: Union[None, Unset, bool]
|
|
59
|
+
if isinstance(self.is_approved, Unset):
|
|
60
|
+
is_approved = UNSET
|
|
61
|
+
else:
|
|
62
|
+
is_approved = self.is_approved
|
|
63
|
+
|
|
56
64
|
field_dict: dict[str, Any] = {}
|
|
57
65
|
field_dict.update(self.additional_properties)
|
|
58
66
|
field_dict.update({})
|
|
@@ -62,6 +70,8 @@ class TrajectoryUpdate:
|
|
|
62
70
|
field_dict["description"] = description
|
|
63
71
|
if trajectory_data is not UNSET:
|
|
64
72
|
field_dict["trajectory_data"] = trajectory_data
|
|
73
|
+
if is_approved is not UNSET:
|
|
74
|
+
field_dict["is_approved"] = is_approved
|
|
65
75
|
|
|
66
76
|
return field_dict
|
|
67
77
|
|
|
@@ -113,10 +123,20 @@ class TrajectoryUpdate:
|
|
|
113
123
|
|
|
114
124
|
trajectory_data = _parse_trajectory_data(d.pop("trajectory_data", UNSET))
|
|
115
125
|
|
|
126
|
+
def _parse_is_approved(data: object) -> Union[None, Unset, bool]:
|
|
127
|
+
if data is None:
|
|
128
|
+
return data
|
|
129
|
+
if isinstance(data, Unset):
|
|
130
|
+
return data
|
|
131
|
+
return cast(Union[None, Unset, bool], data)
|
|
132
|
+
|
|
133
|
+
is_approved = _parse_is_approved(d.pop("is_approved", UNSET))
|
|
134
|
+
|
|
116
135
|
trajectory_update = cls(
|
|
117
136
|
name=name,
|
|
118
137
|
description=description,
|
|
119
138
|
trajectory_data=trajectory_data,
|
|
139
|
+
is_approved=is_approved,
|
|
120
140
|
)
|
|
121
141
|
|
|
122
142
|
trajectory_update.additional_properties = d
|
|
File without changes
|
|
File without changes
|
|
File without changes
|