Skip to content

Commit 796010b

Browse files
committed
## Python SDK Changes Detected:
* `comfy_deploy.run.get()`: * `request.queue_position` **Added** * `response` **Changed** **Breaking** ⚠️ * `comfy_deploy.run.deployment.queue()`: * `request.flags` **Added**
1 parent fc71e90 commit 796010b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1329
-962
lines changed

.devcontainer/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
77
rmdir samples || true
88
mkdir samples
99

10+
1011
python -m pip install --upgrade pip
1112
pip install -e .
1213

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**/__pycache__/
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.env
5+
.env.local
16
.speakeasy/reports
27
README-PYPI.md
38
.venv/

.speakeasy/gen.lock

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
11
lockVersion: 2.0.0
22
id: 2c1d440e-25e4-46e2-a435-ebd1f72a7373
33
management:
4-
docChecksum: a12e94397f17ad377cd82287f65fc0dd
4+
docChecksum: abba088357b88be5b8ae2f2deae39ac4
55
docVersion: V2
6-
speakeasyVersion: 1.523.2
7-
generationVersion: 2.560.1
8-
releaseVersion: 0.7.0
9-
configChecksum: efd69310efe6f150238bffd349771dd8
6+
speakeasyVersion: 1.636.3
7+
generationVersion: 2.723.11
8+
releaseVersion: 0.8.0
9+
configChecksum: 43ddad6eab7f0fb18f9a736e5f95fa20
1010
repoURL: https://github.com/comfy-deploy/comfy-deploy-python.git
1111
installationURL: https://github.com/comfy-deploy/comfy-deploy-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.12.4
17+
core: 5.22.1
1818
defaultEnabledRetries: 0.2.0
1919
devContainers: 3.0.0
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.3.2
2222
flattening: 3.1.1
23-
globalSecurity: 3.0.3
23+
globalSecurity: 3.0.4
2424
globalSecurityCallbacks: 1.0.0
2525
globalSecurityFlattening: 1.0.0
26-
globalServerURLs: 3.1.0
27-
groups: 3.0.0
26+
globalServerURLs: 3.1.1
27+
groups: 3.0.1
2828
nameOverrides: 3.0.1
2929
nullables: 1.0.1
3030
responseFormat: 1.0.1
3131
retries: 3.0.2
32-
sdkHooks: 1.0.1
33-
unions: 3.0.4
34-
webhooks: 2.0.0
32+
sdkHooks: 1.1.0
33+
unions: 3.1.0
3534
generatedFiles:
3635
- .devcontainer/README.md
3736
- .devcontainer/devcontainer.json
3837
- .devcontainer/setup.sh
3938
- .gitattributes
40-
- .python-version
4139
- .vscode/settings.json
4240
- USAGE.md
4341
- docs/models/components/createrunresponse.md
@@ -52,18 +50,13 @@ generatedFiles:
5250
- docs/models/components/validationerror.md
5351
- docs/models/components/workflowrunmodel.md
5452
- docs/models/components/workflowrunoutputmodel.md
55-
- docs/models/components/workflowrunstatus.md
56-
- docs/models/components/workflowrunwebhookbody.md
57-
- docs/models/components/workflowrunwebhookresponse.md
5853
- docs/models/errors/httpvalidationerror.md
5954
- docs/models/operations/cancelrunrunrunidcancelpostrequest.md
6055
- docs/models/operations/cancelrunrunrunidcancelpostresponse.md
6156
- docs/models/operations/getrunrunrunidgetrequest.md
6257
- docs/models/operations/getrunrunrunidgetresponse.md
6358
- docs/models/operations/queuedeploymentrunrundeploymentqueuepostresponse.md
6459
- docs/models/utils/retryconfig.md
65-
- docs/models/webhooks/runupdaterequestbodywebhookpostresponse.md
66-
- docs/sdks/comfydeploy/README.md
6760
- docs/sdks/deployment/README.md
6861
- docs/sdks/run/README.md
6962
- poetry.toml
@@ -90,18 +83,16 @@ generatedFiles:
9083
- src/comfydeploy/models/components/validationerror.py
9184
- src/comfydeploy/models/components/workflowrunmodel.py
9285
- src/comfydeploy/models/components/workflowrunoutputmodel.py
93-
- src/comfydeploy/models/components/workflowrunstatus.py
94-
- src/comfydeploy/models/components/workflowrunwebhookbody.py
95-
- src/comfydeploy/models/components/workflowrunwebhookresponse.py
9686
- src/comfydeploy/models/errors/__init__.py
87+
- src/comfydeploy/models/errors/comfydeployerror.py
9788
- src/comfydeploy/models/errors/httpvalidationerror.py
89+
- src/comfydeploy/models/errors/no_response_error.py
90+
- src/comfydeploy/models/errors/responsevalidationerror.py
9891
- src/comfydeploy/models/errors/sdkerror.py
9992
- src/comfydeploy/models/operations/__init__.py
10093
- src/comfydeploy/models/operations/cancel_run_run_run_id_cancel_post.py
10194
- src/comfydeploy/models/operations/get_run_run_run_id_get.py
10295
- src/comfydeploy/models/operations/queue_deployment_run_run_deployment_queue_post.py
103-
- src/comfydeploy/models/webhooks/__init__.py
104-
- src/comfydeploy/models/webhooks/run_update_request_body_webhook_post.py
10596
- src/comfydeploy/py.typed
10697
- src/comfydeploy/run.py
10798
- src/comfydeploy/sdk.py
@@ -110,6 +101,7 @@ generatedFiles:
110101
- src/comfydeploy/types/basemodel.py
111102
- src/comfydeploy/utils/__init__.py
112103
- src/comfydeploy/utils/annotations.py
104+
- src/comfydeploy/utils/datetimes.py
113105
- src/comfydeploy/utils/enums.py
114106
- src/comfydeploy/utils/eventstreaming.py
115107
- src/comfydeploy/utils/forms.py
@@ -121,17 +113,20 @@ generatedFiles:
121113
- src/comfydeploy/utils/retries.py
122114
- src/comfydeploy/utils/security.py
123115
- src/comfydeploy/utils/serializers.py
116+
- src/comfydeploy/utils/unmarshal_json_response.py
124117
- src/comfydeploy/utils/url.py
125118
- src/comfydeploy/utils/values.py
126119
examples:
127120
get_run_run__run_id__get:
128121
speakeasy-default-get-run-run-run-id-get:
129122
parameters:
130123
path:
131-
run_id: "b888f774-3e7c-4135-a18c-6b985523c4bc"
124+
run_id: "faf49b3a-7b64-4687-95c8-58ca8a41dd73"
125+
query:
126+
queue_position: false
132127
responses:
133128
"200":
134-
application/json: {"id": "e50f7622-81da-484b-9c66-1c8a99c6b71b", "workflow_version_id": "ecd62b8f-7112-4aaf-90ab-4e43b4cca371", "workflow_inputs": "<value>", "workflow_id": "f620807a-a1f8-4cf0-95d8-9d58ee381f6b", "workflow_api": "<value>", "machine_id": "b885c09d-541c-4293-b683-64a15f8d7e75", "origin": "<value>", "status": "<value>", "created_at": "2024-02-02T12:01:38.576Z", "updated_at": "2023-04-16T15:25:27.950Z", "gpu_event_id": "<id>", "gpu": "<value>", "machine_version": "<value>", "machine_type": "<value>", "modal_function_call_id": "<id>", "user_id": "<id>", "org_id": "<id>", "live_status": "<value>", "progress": 0, "is_realtime": false, "webhook": "<value>", "webhook_status": "<value>", "webhook_intermediate_status": false, "number": 494415, "duration": 6188.69, "cold_start_duration": 9131.15, "cold_start_duration_total": 1865.92, "run_duration": 3787.04}
129+
application/json: {"id": "46a99099-5b7a-4e10-8e06-6dacc98118bf", "workflow_version_id": "f69dd44f-f54c-41db-91a8-2526823f19f0", "workflow_inputs": "<value>", "workflow_id": "39f9f100-52c4-4837-9d06-0278a672e1ec", "machine_id": "62fc8c79-bbed-4389-9157-5269d7cdf77e", "origin": "<value>", "status": "<value>", "created_at": "2025-04-25T23:18:08.058Z", "updated_at": "2025-04-08T06:46:17.964Z", "gpu_event_id": "<id>", "gpu": "<value>", "machine_version": "<value>", "machine_type": "<value>", "modal_function_call_id": "<id>", "user_id": "<id>", "org_id": "<id>", "live_status": "<value>", "progress": 0, "is_realtime": false, "webhook": "<value>", "webhook_status": "<value>", "webhook_intermediate_status": false}
135130
"422":
136131
application/json: {}
137132
cancel_run_run__run_id__cancel_post:
@@ -147,20 +142,12 @@ examples:
147142
queue_deployment_run_run_deployment_queue_post:
148143
speakeasy-default-queue-deployment-run-run-deployment-queue-post:
149144
requestBody:
150-
application/json: {"inputs": {"prompt": "A beautiful landscape", "seed": 42}, "webhook": "https://myapp.com/webhook", "webhook_intermediate_status": true, "deployment_id": "15e79589-12c9-453c-a41a-348fdd7de957"}
145+
application/json: {"inputs": {"num_inference_steps": 30, "prompt": "A futuristic cityscape", "seed": 123456}, "webhook": "https://myapp.com/webhook", "webhook_intermediate_status": true, "deployment_id": "12345678-1234-5678-1234-567812345678"}
151146
responses:
152147
"200":
153-
application/json: {"run_id": "03ec31b2-4d0d-4329-88ff-ac74003017b7"}
148+
application/json: {"run_id": "17cad37f-15e1-48dc-8b81-b4a67ba778ba"}
154149
"422":
155150
application/json: {}
156-
run_update__request_body__webhook__post:
157-
speakeasy-default-run-update-request-body-webhook-post:
158-
requestBody:
159-
application/json: {"run_id": "<id>", "status": "success", "live_status": "<value>", "progress": 0}
160-
responses:
161-
"200":
162-
application/json: {"status": "<value>"}
163-
"422":
164-
application/json: {}
165-
examplesVersion: 1.0.0
151+
examplesVersion: 1.0.2
166152
generatedTests: {}
153+
releaseNotes: "## Python SDK Changes Detected:\n* `comfy_deploy.run.get()`: \n * `request.queue_position` **Added**\n * `response` **Changed** **Breaking** :warning:\n* `comfy_deploy.run.deployment.queue()`: \n * `request.flags` **Added**\n"

.speakeasy/gen.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,36 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionDec2023: true
1314
nameResolutionFeb2025: false
1415
parameterOrderingFeb2024: true
1516
requestResponseComponentNamesFeb2024: true
1617
securityFeb2025: false
18+
sharedErrorComponentsApr2025: false
1719
auth:
1820
oAuth2ClientCredentialsEnabled: false
1921
oAuth2PasswordEnabled: false
22+
hoistGlobalSecurity: true
23+
tests:
24+
generateTests: true
25+
generateNewTests: false
26+
skipResponseBodyAssertions: false
2027
python:
21-
version: 0.7.0
28+
version: 0.8.0
2229
additionalDependencies:
2330
dev: {}
2431
main: {}
32+
allowedRedefinedBuiltins:
33+
- id
34+
- object
35+
asyncMode: both
2536
author: Speakeasy
2637
authors:
2738
- Speakeasy
39+
baseErrorName: ComfyDeployError
2840
clientServerStatusCodesAsErrors: true
2941
defaultErrorName: SDKError
3042
description: Python Client SDK Generated by Speakeasy
@@ -44,11 +56,16 @@ python:
4456
shared: models/components
4557
webhooks: models/webhooks
4658
inputModelSuffix: input
59+
legacyPyright: true
4760
maxMethodParams: 4
4861
methodArguments: require-security-and-request
62+
moduleName: ""
4963
outputModelSuffix: output
64+
packageManager: poetry
5065
packageName: comfydeploy
5166
projectUrls: {}
67+
pytestFilterWarnings: []
5268
pytestTimeout: 0
5369
responseFormat: envelope-http
70+
sseFlatResponse: false
5471
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.523.2
1+
speakeasyVersion: 1.636.3
22
sources:
33
comfydeploy-api:
44
sourceNamespace: comfydeploy-api
5-
sourceRevisionDigest: sha256:88643a4de11cc9a90c5da0de3ecf6526f61237a30189707b7a6abf6192ad4cb2
6-
sourceBlobDigest: sha256:df07cbe29241948042d8f8f0dc662107805290842e5a6ed7623ccf270744fba1
5+
sourceRevisionDigest: sha256:2aaedaaafa9b1d33e83ac5670f3aced8eedb36817d7faa0ded9d685a7cc4cb10
6+
sourceBlobDigest: sha256:04e6ce3f75140ce358238261d8803b6dff6e955380b3e353eca99c7798681767
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743002572
9+
- speakeasy-sdk-regen-1758759186
1010
- V2
1111
targets:
1212
comfy-deploy:
1313
source: comfydeploy-api
1414
sourceNamespace: comfydeploy-api
15-
sourceRevisionDigest: sha256:88643a4de11cc9a90c5da0de3ecf6526f61237a30189707b7a6abf6192ad4cb2
16-
sourceBlobDigest: sha256:df07cbe29241948042d8f8f0dc662107805290842e5a6ed7623ccf270744fba1
15+
sourceRevisionDigest: sha256:2aaedaaafa9b1d33e83ac5670f3aced8eedb36817d7faa0ded9d685a7cc4cb10
16+
sourceBlobDigest: sha256:04e6ce3f75140ce358238261d8803b6dff6e955380b3e353eca99c7798681767
1717
codeSamplesNamespace: code-samples-python-comfy-deploy
18-
codeSamplesRevisionDigest: sha256:adf2885110445ea05f59d31a8a76e34c61bc6c030a258fc1ef5ae0c8836be768
18+
codeSamplesRevisionDigest: sha256:9d00406804ff49ae2c10709badad219304c49b09c44cdfe92c2f1946cd499c07
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

0 commit comments

Comments
 (0)