codemie-sdk-python 0.1.688__py3-none-any.whl → 0.1.689__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.
@@ -232,6 +232,54 @@ class WorkflowService:
232
232
  json_data=request.model_dump(exclude_none=True),
233
233
  )
234
234
 
235
+ def publish(self, workflow_id: str, categories: list[str] | None = None) -> dict:
236
+ """Publish a workflow to the marketplace, setting ``is_global=True``.
237
+
238
+ Args:
239
+ workflow_id: ID of the workflow to publish
240
+ categories: Optional list of category IDs for marketplace classification
241
+
242
+ Returns:
243
+ Publication confirmation
244
+ """
245
+ body = {}
246
+ if categories:
247
+ body["categories"] = categories
248
+ return self._api.post(
249
+ f"/v1/workflows/{workflow_id}/marketplace/publish",
250
+ dict,
251
+ json_data=body if body else None,
252
+ )
253
+
254
+ def marketplace_validate(self, workflow_id: str) -> dict:
255
+ """Validate a workflow before publishing to the marketplace.
256
+
257
+ Surfaces the credential/warning review for the pending publish without
258
+ changing ``is_global``.
259
+
260
+ Args:
261
+ workflow_id: ID of the workflow to validate
262
+
263
+ Returns:
264
+ Validation result, including any credential warnings
265
+ """
266
+ return self._api.post(
267
+ f"/v1/workflows/{workflow_id}/marketplace/publish/validate", dict
268
+ )
269
+
270
+ def unpublish(self, workflow_id: str) -> dict:
271
+ """Unpublish a workflow from the marketplace, setting ``is_global=False``.
272
+
273
+ Args:
274
+ workflow_id: ID of the workflow to unpublish
275
+
276
+ Returns:
277
+ Unpublication confirmation
278
+ """
279
+ return self._api.post(
280
+ f"/v1/workflows/{workflow_id}/marketplace/unpublish", dict
281
+ )
282
+
235
283
  def executions(self, workflow_id: str) -> WorkflowExecutionService:
236
284
  """Get workflow execution service for the specified workflow.
237
285
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.688
3
+ Version: 0.1.689
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -69,11 +69,11 @@ codemie_sdk/services/vendor_knowledgebase.py,sha256=p0SWNdBg-zXfaco0edbBUQbp7wgq
69
69
  codemie_sdk/services/vendor_runtime.py,sha256=DxBVyF2cB02u9kM7uESALF4nPdC__wA7V4tCFzRiQGM,7092
70
70
  codemie_sdk/services/vendor_workflow.py,sha256=EJZK0mLhmZ47UZSkxUzELWhVFalJHL3vIrBEQRGG3Zo,12452
71
71
  codemie_sdk/services/webhook.py,sha256=jYPEyJ0Q0IydMF9D2UoURsr6PgdfbKs4fr5L6ix8e94,2531
72
- codemie_sdk/services/workflow.py,sha256=h06mLSNi4vAjJpFiwIEBJhP48UjB6ZdgkF-DxekyuI4,8881
72
+ codemie_sdk/services/workflow.py,sha256=D-20pUo6Lm3ef3WKTv-nwGMN1Dx5tmNwqeWCR0XcpoM,10439
73
73
  codemie_sdk/services/workflow_execution.py,sha256=GuI1uBtd1NGvRVHElMsgPBZlIRDP9CK73ISJABkpCs4,7225
74
74
  codemie_sdk/services/workflow_execution_state.py,sha256=u1xmGvaHjqvQS5ujhyvJ_Ac7ByjKem2Qe8q0swsmoWw,2045
75
75
  codemie_sdk/utils/__init__.py,sha256=EzK_UrS5KHmAnE73Hci9LaObB5omjVUhIq4svh0gfwo,137
76
76
  codemie_sdk/utils/http.py,sha256=PWejBKa5pwzQ5eLVhdN8lYKEu1B1QtwGTRmZfnGFL6c,14158
77
- codemie_sdk_python-0.1.688.dist-info/METADATA,sha256=MNSttOCyYkv4fXkHx9MC1IRPvU_m3qMjMfXEVI1uTiM,47441
78
- codemie_sdk_python-0.1.688.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
- codemie_sdk_python-0.1.688.dist-info/RECORD,,
77
+ codemie_sdk_python-0.1.689.dist-info/METADATA,sha256=WPbexxhcK0uQUzQGZYxprgICOcaYa_9j9GMDoqyca84,47441
78
+ codemie_sdk_python-0.1.689.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
+ codemie_sdk_python-0.1.689.dist-info/RECORD,,