@amigo-ai/platform-sdk 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1562,6 +1562,26 @@ export interface paths {
1562
1562
  patch?: never;
1563
1563
  trace?: never;
1564
1564
  };
1565
+ "/v1/{workspace_id}/calls/outbound": {
1566
+ parameters: {
1567
+ query?: never;
1568
+ header?: never;
1569
+ path?: never;
1570
+ cookie?: never;
1571
+ };
1572
+ get?: never;
1573
+ put?: never;
1574
+ /**
1575
+ * Create an outbound call
1576
+ * @description Initiate an outbound voice call from a workspace phone number. The phone_from number must be registered in this workspace. Supports idempotency via the idempotency_key field.
1577
+ */
1578
+ post: operations["create-outbound-call"];
1579
+ delete?: never;
1580
+ options?: never;
1581
+ head?: never;
1582
+ patch?: never;
1583
+ trace?: never;
1584
+ };
1565
1585
  "/v1/{workspace_id}/calls/phone-volume": {
1566
1586
  parameters: {
1567
1587
  query?: never;
@@ -10615,6 +10635,58 @@ export interface components {
10615
10635
  */
10616
10636
  type?: "clinical" | "administrative" | "crisis_counselor";
10617
10637
  };
10638
+ /**
10639
+ * CreateOutboundCallRequest
10640
+ * @description Request body for creating an outbound call.
10641
+ */
10642
+ CreateOutboundCallRequest: {
10643
+ /**
10644
+ * Idempotency Key
10645
+ * @description Client-provided idempotency key. Auto-generated if omitted.
10646
+ */
10647
+ idempotency_key?: string | null;
10648
+ /**
10649
+ * Outbound Task Entity Id
10650
+ * @description World model outbound_task entity ID for completion feedback.
10651
+ */
10652
+ outbound_task_entity_id?: string | null;
10653
+ /**
10654
+ * Phone From
10655
+ * @description Caller ID phone number in E.164 format. Must belong to this workspace.
10656
+ */
10657
+ phone_from: string;
10658
+ /**
10659
+ * Phone To
10660
+ * @description Destination phone number in E.164 format (e.g. +18005551234)
10661
+ */
10662
+ phone_to: string;
10663
+ /**
10664
+ * Service Id
10665
+ * @description Service ID for the voice agent to use.
10666
+ */
10667
+ service_id?: string | null;
10668
+ /**
10669
+ * System Prompt
10670
+ * @description Optional system prompt override for this call.
10671
+ */
10672
+ system_prompt?: string | null;
10673
+ };
10674
+ /**
10675
+ * CreateOutboundCallResponse
10676
+ * @description Response from creating an outbound call.
10677
+ */
10678
+ CreateOutboundCallResponse: {
10679
+ /**
10680
+ * Call Sid
10681
+ * @description Twilio call SID for the outbound call
10682
+ */
10683
+ call_sid: string;
10684
+ /**
10685
+ * Status
10686
+ * @description Initial call status (typically 'queued')
10687
+ */
10688
+ status: string;
10689
+ };
10618
10690
  /** CreatePersonaRequest */
10619
10691
  CreatePersonaRequest: {
10620
10692
  /** @default */
@@ -27091,6 +27163,76 @@ export interface operations {
27091
27163
  };
27092
27164
  };
27093
27165
  };
27166
+ "create-outbound-call": {
27167
+ parameters: {
27168
+ query?: never;
27169
+ header?: never;
27170
+ path: {
27171
+ workspace_id: string;
27172
+ };
27173
+ cookie?: never;
27174
+ };
27175
+ requestBody: {
27176
+ content: {
27177
+ "application/json": components["schemas"]["CreateOutboundCallRequest"];
27178
+ };
27179
+ };
27180
+ responses: {
27181
+ /** @description Successful Response */
27182
+ 201: {
27183
+ headers: {
27184
+ [name: string]: unknown;
27185
+ };
27186
+ content: {
27187
+ "application/json": components["schemas"]["CreateOutboundCallResponse"];
27188
+ };
27189
+ };
27190
+ /** @description Invalid phone number format */
27191
+ 400: {
27192
+ headers: {
27193
+ [name: string]: unknown;
27194
+ };
27195
+ content?: never;
27196
+ };
27197
+ /** @description phone_from does not belong to this workspace */
27198
+ 403: {
27199
+ headers: {
27200
+ [name: string]: unknown;
27201
+ };
27202
+ content?: never;
27203
+ };
27204
+ /** @description Validation Error */
27205
+ 422: {
27206
+ headers: {
27207
+ [name: string]: unknown;
27208
+ };
27209
+ content: {
27210
+ "application/json": components["schemas"]["HTTPValidationError"];
27211
+ };
27212
+ };
27213
+ /** @description Rate limit exceeded */
27214
+ 429: {
27215
+ headers: {
27216
+ [name: string]: unknown;
27217
+ };
27218
+ content?: never;
27219
+ };
27220
+ /** @description Upstream Twilio or voice agent error */
27221
+ 502: {
27222
+ headers: {
27223
+ [name: string]: unknown;
27224
+ };
27225
+ content?: never;
27226
+ };
27227
+ /** @description Voice agent or outbound calls not configured */
27228
+ 503: {
27229
+ headers: {
27230
+ [name: string]: unknown;
27231
+ };
27232
+ content?: never;
27233
+ };
27234
+ };
27235
+ };
27094
27236
  "get-phone-call-volume": {
27095
27237
  parameters: {
27096
27238
  query?: {