From d6567eef28055d2f9ba5bb89c1f2ec7e0b93d73a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Sat, 25 Apr 2026 16:34:19 +0530 Subject: [PATCH] chore: regenerate sdk --- api/requirements.dev.txt | 1 + sdk/python/src/dograh_sdk/_generated_models.py | 4 ++-- sdk/python/src/dograh_sdk/typed/trigger.py | 18 +++++++++++++----- sdk/typescript/src/typed/trigger.ts | 12 +++++++++--- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/api/requirements.dev.txt b/api/requirements.dev.txt index 9758ee4..275079c 100644 --- a/api/requirements.dev.txt +++ b/api/requirements.dev.txt @@ -6,4 +6,5 @@ pre-commit==4.2.0 watchfiles==1.1.0 python-dotenv==1.2.1 datamodel-code-generator==0.56.1 +twine==6.2.0 -e ./sdk/python diff --git a/sdk/python/src/dograh_sdk/_generated_models.py b/sdk/python/src/dograh_sdk/_generated_models.py index 574c2d3..6bfe2bd 100644 --- a/sdk/python/src/dograh_sdk/_generated_models.py +++ b/sdk/python/src/dograh_sdk/_generated_models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: -# filename: dograh-openapi-XXXXXX.json.YcuMTcSn5P -# timestamp: 2026-04-24T08:26:45+00:00 +# filename: dograh-openapi-XXXXXX.json.e1fkh2B88V +# timestamp: 2026-04-25T11:03:19+00:00 from __future__ import annotations diff --git a/sdk/python/src/dograh_sdk/typed/trigger.py b/sdk/python/src/dograh_sdk/typed/trigger.py index e70ac4a..e112144 100644 --- a/sdk/python/src/dograh_sdk/typed/trigger.py +++ b/sdk/python/src/dograh_sdk/typed/trigger.py @@ -16,10 +16,15 @@ from dograh_sdk.typed._base import TypedNode @dataclass(kw_only=True) class Trigger(TypedNode): """ - Public HTTP endpoint that launches the workflow. LLM hint: Exposes a - public HTTP POST endpoint. External systems call the URL (derived from - the auto-generated `trigger_path`) to launch this workflow. Requires an - API key in the `X-API-Key` header. + Public HTTP endpoints that launch the workflow. LLM hint: Exposes two + public HTTP POST endpoints derived from the auto-generated + `trigger_path`: • Production: + `/api/v1/public/agent/` — runs the published + agent. Use this from production systems. • Test: + `/api/v1/public/agent/test/` — runs the latest + draft, useful for verifying changes before publishing. Falls back to the + published agent when no draft exists. Both require an API key in the + `X-API-Key` header. """ type: ClassVar[str] = 'trigger' @@ -37,6 +42,9 @@ class Trigger(TypedNode): trigger_path: Optional[str] = None """ Auto-generated UUID-style path segment that uniquely identifies this - trigger. Do not edit manually. + trigger. Used in both URLs: • Production: + `/api/v1/public/agent/` — executes the published agent. + • Test: `/api/v1/public/agent/test/` — executes the latest + draft. Do not edit manually. """ diff --git a/sdk/typescript/src/typed/trigger.ts b/sdk/typescript/src/typed/trigger.ts index 7f75790..119c4f7 100644 --- a/sdk/typescript/src/typed/trigger.ts +++ b/sdk/typescript/src/typed/trigger.ts @@ -6,9 +6,12 @@ /** - * Public HTTP endpoint that launches the workflow. + * Public HTTP endpoints that launch the workflow. * - * LLM hint: Exposes a public HTTP POST endpoint. External systems call the URL (derived from the auto-generated `trigger_path`) to launch this workflow. Requires an API key in the `X-API-Key` header. + * LLM hint: Exposes two public HTTP POST endpoints derived from the auto-generated `trigger_path`: + * • Production: `/api/v1/public/agent/` — runs the published agent. Use this from production systems. + * • Test: `/api/v1/public/agent/test/` — runs the latest draft, useful for verifying changes before publishing. Falls back to the published agent when no draft exists. + * Both require an API key in the `X-API-Key` header. */ export interface Trigger { type: "trigger"; @@ -21,7 +24,10 @@ export interface Trigger { */ enabled?: boolean; /** - * Auto-generated UUID-style path segment that uniquely identifies this trigger. Do not edit manually. + * Auto-generated UUID-style path segment that uniquely identifies this trigger. Used in both URLs: + * • Production: `/api/v1/public/agent/` — executes the published agent. + * • Test: `/api/v1/public/agent/test/` — executes the latest draft. + * Do not edit manually. */ trigger_path?: string; }