getVerbProperties

View as MarkdownOpen in Claude

Get the inner properties schema for a specific verb. For example, for "hangup" this returns the schema object with { type: "object", properties: { reason: ... }, ... }.

Parameters

verbName
stringRequired

The verb name (e.g., "answer", "tap").

Returns

Record<string, unknown> — The inner schema definition, or an empty object if the verb is not found.

Example

1import { SchemaUtils } from '@signalwire/sdk';
2
3const schema = new SchemaUtils();
4const props = schema.getVerbProperties('hangup');
5console.log(props);