mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
chore: regenerate sdk
This commit is contained in:
parent
4171ad7a54
commit
d6567eef28
4 changed files with 25 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
`<backend>/api/v1/public/agent/<trigger_path>` — runs the published
|
||||
agent. Use this from production systems. • Test:
|
||||
`<backend>/api/v1/public/agent/test/<trigger_path>` — 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/<trigger_path>` — executes the published agent.
|
||||
• Test: `/api/v1/public/agent/test/<trigger_path>` — executes the latest
|
||||
draft. Do not edit manually.
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -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: `<backend>/api/v1/public/agent/<trigger_path>` — runs the published agent. Use this from production systems.
|
||||
* • Test: `<backend>/api/v1/public/agent/test/<trigger_path>` — 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/<trigger_path>` — executes the published agent.
|
||||
* • Test: `/api/v1/public/agent/test/<trigger_path>` — executes the latest draft.
|
||||
* Do not edit manually.
|
||||
*/
|
||||
trigger_path?: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue