fix: fix speech to speech model transitions (#545)

* fix: fix transition logic for realtime providers

* chore: run formatter

* chore: generate SDK and fix other realtime providers

* fix: fix ultravox node transitions
This commit is contained in:
Abhishek 2026-07-15 18:36:36 +05:30 committed by GitHub
parent 348cd8427b
commit 01acf6ac30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 1282 additions and 617 deletions

View file

@ -6,6 +6,7 @@
export { type AgentNode, agentNode } from "./agent-node.js";
export { type EndCall, endCall } from "./end-call.js";
export { type GlobalNode, globalNode } from "./global-node.js";
export { type Paygent, paygent } from "./paygent.js";
export { type Qa, qa } from "./qa.js";
export { type StartCall, startCall } from "./start-call.js";
export { type Trigger, trigger } from "./trigger.js";
@ -16,6 +17,7 @@ import type {
AgentNode,
EndCall,
GlobalNode,
Paygent,
Qa,
StartCall,
Trigger,
@ -24,4 +26,4 @@ import type {
} from "./index.js";
/** Discriminated union of every generated typed node. */
export type TypedNode = AgentNode | EndCall | GlobalNode | Qa | StartCall | Trigger | Tuner | Webhook;
export type TypedNode = AgentNode | EndCall | GlobalNode | Paygent | Qa | StartCall | Trigger | Tuner | Webhook;

View file

@ -0,0 +1,44 @@
// GENERATED — do not edit by hand.
//
// Regenerate with `npm run codegen` against the target Dograh backend.
// Source of truth: the backend's model-backed node-spec catalog served
// from `/api/v1/node-types`.
/**
* Cost Tracking and Billing
*
* LLM hint: Paygent is a post-call usage-tracking and billing integration. It does not participate in the conversation graph and should not be connected to other nodes.
*/
export interface Paygent {
type: "paygent";
/**
* Short identifier for this Paygent configuration.
*/
name?: string;
/**
* When false, Dograh skips all Paygent tracking for this call.
*/
paygent_enabled?: boolean;
/**
* API key used to authenticate requests to the Paygent REST API.
*/
paygent_api_key: string;
/**
* The agent identifier registered in your Paygent account.
*/
paygent_agent_id: string;
/**
* Your Paygent customer / organisation ID.
*/
paygent_customer_id: string;
/**
* The indicator event name sent at the end of the call (e.g. per-minute-call).
*/
paygent_indicator?: string;
}
/** Factory — sets `type` for you so you don't repeat the discriminator. */
export function paygent(input: Omit<Paygent, "type">): Paygent {
return { type: "paygent", ...input };
}