@amigo-ai/platform-sdk 0.15.1 → 0.16.0
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.
- package/README.md +41 -1
- package/dist/index.cjs +6 -9
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +6 -9
- package/dist/index.mjs.map +2 -2
- package/dist/resources/conversations.js.map +1 -1
- package/dist/types/generated/api.d.ts +245 -12
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +6 -0
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/conversations.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AA2ChE,MAAM,oBAAoB,GAAG,IAAI,CAAA;AACjC,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AACzD,MAAM,4BAA4B,GAAG,gCAAgC,CAAA;AAMrE,iEAAiE;AACjE,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAChE,YAAY,MAAqB,EAAE,WAAmB;QACpD,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAC5B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAAgC;QACzC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kCAAkC,EAAE;YACxD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,C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B,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC/D,CAAC;IACD,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAClE,CAAC"}
|
|
@@ -1968,10 +1968,10 @@ export interface paths {
|
|
|
1968
1968
|
path?: never;
|
|
1969
1969
|
cookie?: never;
|
|
1970
1970
|
};
|
|
1971
|
-
/** List conversations */
|
|
1971
|
+
/** List all conversations (voice + text) */
|
|
1972
1972
|
get: operations["list_conversations_v1__workspace_id__conversations_get"];
|
|
1973
1973
|
put?: never;
|
|
1974
|
-
/** Create a new conversation */
|
|
1974
|
+
/** Create a new text conversation */
|
|
1975
1975
|
post: operations["create_conversation_v1__workspace_id__conversations_post"];
|
|
1976
1976
|
delete?: never;
|
|
1977
1977
|
options?: never;
|
|
@@ -1986,7 +1986,7 @@ export interface paths {
|
|
|
1986
1986
|
path?: never;
|
|
1987
1987
|
cookie?: never;
|
|
1988
1988
|
};
|
|
1989
|
-
/** Get conversation detail
|
|
1989
|
+
/** Get conversation detail (voice or text) */
|
|
1990
1990
|
get: operations["get_conversation_v1__workspace_id__conversations__conversation_id__get"];
|
|
1991
1991
|
put?: never;
|
|
1992
1992
|
post?: never;
|
|
@@ -10120,6 +10120,29 @@ export interface components {
|
|
|
10120
10120
|
/** To Address */
|
|
10121
10121
|
to_address: string;
|
|
10122
10122
|
};
|
|
10123
|
+
/**
|
|
10124
|
+
* ChannelEmailReceivedEvent
|
|
10125
|
+
* @description Inbound email persisted to channel.inbound_emails as a reply to one of
|
|
10126
|
+
* our outbound sends. ``in_reply_to_email_id`` is the outbound row this
|
|
10127
|
+
* inbound threads against.
|
|
10128
|
+
*/
|
|
10129
|
+
ChannelEmailReceivedEvent: {
|
|
10130
|
+
/**
|
|
10131
|
+
* @description discriminator enum property added by openapi-typescript
|
|
10132
|
+
* @enum {string}
|
|
10133
|
+
*/
|
|
10134
|
+
event_type: "channel.email_received";
|
|
10135
|
+
/** From Address */
|
|
10136
|
+
from_address: string;
|
|
10137
|
+
/** In Reply To Email Id */
|
|
10138
|
+
in_reply_to_email_id: string;
|
|
10139
|
+
/** Inbound Email Id */
|
|
10140
|
+
inbound_email_id: string;
|
|
10141
|
+
/** Subject */
|
|
10142
|
+
subject: string;
|
|
10143
|
+
/** To Address */
|
|
10144
|
+
to_address: string;
|
|
10145
|
+
};
|
|
10123
10146
|
/** ChannelEmailRejectedEvent */
|
|
10124
10147
|
ChannelEmailRejectedEvent: {
|
|
10125
10148
|
/** Email Id */
|
|
@@ -10205,6 +10228,29 @@ export interface components {
|
|
|
10205
10228
|
* @enum {string}
|
|
10206
10229
|
*/
|
|
10207
10230
|
ChannelType: "sms" | "whatsapp" | "imessage" | "email" | "voice" | "web";
|
|
10231
|
+
/**
|
|
10232
|
+
* ChannelVoicemailStatusEvent
|
|
10233
|
+
* @description Ringless voicemail status callback projected from VoiceDrop. ``status``
|
|
10234
|
+
* mirrors the channel.voicedrop_ringless_voicemails enum: delivered,
|
|
10235
|
+
* skipped, failed, or not_delivered (pending is the row's initial state and
|
|
10236
|
+
* is never emitted as an event).
|
|
10237
|
+
*/
|
|
10238
|
+
ChannelVoicemailStatusEvent: {
|
|
10239
|
+
/**
|
|
10240
|
+
* @description discriminator enum property added by openapi-typescript
|
|
10241
|
+
* @enum {string}
|
|
10242
|
+
*/
|
|
10243
|
+
event_type: "channel.voicemail_status";
|
|
10244
|
+
/** Recipient Phone Number */
|
|
10245
|
+
recipient_phone_number: string;
|
|
10246
|
+
/**
|
|
10247
|
+
* Status
|
|
10248
|
+
* @enum {string}
|
|
10249
|
+
*/
|
|
10250
|
+
status: "delivered" | "skipped" | "failed" | "not_delivered";
|
|
10251
|
+
/** Voicemail Id */
|
|
10252
|
+
voicemail_id: string;
|
|
10253
|
+
};
|
|
10208
10254
|
/**
|
|
10209
10255
|
* CharlsonCategoryFlags
|
|
10210
10256
|
* @description Quan 2005 ICD-10 Charlson category flags (0/1).
|
|
@@ -11001,21 +11047,48 @@ export interface components {
|
|
|
11001
11047
|
};
|
|
11002
11048
|
/** ConversationDetail */
|
|
11003
11049
|
ConversationDetail: {
|
|
11004
|
-
/**
|
|
11005
|
-
|
|
11050
|
+
/** Call Sid */
|
|
11051
|
+
call_sid?: string | null;
|
|
11052
|
+
/** Caller Id */
|
|
11053
|
+
caller_id?: string | null;
|
|
11054
|
+
/**
|
|
11055
|
+
* Channel Kind
|
|
11056
|
+
* @enum {string}
|
|
11057
|
+
*/
|
|
11058
|
+
channel_kind: "voice" | "sms" | "whatsapp" | "web" | "email";
|
|
11059
|
+
/** Completion Reason */
|
|
11060
|
+
completion_reason?: string | null;
|
|
11006
11061
|
/** Created At */
|
|
11007
11062
|
created_at: string;
|
|
11063
|
+
/** Direction */
|
|
11064
|
+
direction?: string | null;
|
|
11065
|
+
/** Duration Seconds */
|
|
11066
|
+
duration_seconds?: number | null;
|
|
11008
11067
|
/** Entity Id */
|
|
11009
11068
|
entity_id?: string | null;
|
|
11069
|
+
/** Escalation Status */
|
|
11070
|
+
escalation_status?: string | null;
|
|
11071
|
+
/** Final State */
|
|
11072
|
+
final_state?: string | null;
|
|
11073
|
+
/** Has Recording */
|
|
11074
|
+
has_recording?: boolean | null;
|
|
11010
11075
|
/** Id */
|
|
11011
11076
|
id: string;
|
|
11077
|
+
/** Phone Number */
|
|
11078
|
+
phone_number?: string | null;
|
|
11012
11079
|
/** Plan */
|
|
11013
11080
|
plan?: string | null;
|
|
11081
|
+
/** Quality Score */
|
|
11082
|
+
quality_score?: number | null;
|
|
11083
|
+
/** Service Id */
|
|
11084
|
+
service_id?: string | null;
|
|
11085
|
+
/** Source */
|
|
11086
|
+
source?: string | null;
|
|
11014
11087
|
/**
|
|
11015
11088
|
* Status
|
|
11016
11089
|
* @enum {string}
|
|
11017
11090
|
*/
|
|
11018
|
-
status: "active" | "frozen" | "closed";
|
|
11091
|
+
status: "active" | "frozen" | "closed" | "completed" | "in-progress" | "failed";
|
|
11019
11092
|
/**
|
|
11020
11093
|
* Turn Count
|
|
11021
11094
|
* @default 0
|
|
@@ -11028,6 +11101,7 @@ export interface components {
|
|
|
11028
11101
|
turns?: components["schemas"]["ConversationTurn"][];
|
|
11029
11102
|
/** Updated At */
|
|
11030
11103
|
updated_at: string;
|
|
11104
|
+
voice?: components["schemas"]["VoiceDetail"] | null;
|
|
11031
11105
|
};
|
|
11032
11106
|
/** ConversationListResponse */
|
|
11033
11107
|
ConversationListResponse: {
|
|
@@ -11566,16 +11640,36 @@ export interface components {
|
|
|
11566
11640
|
* outbound phone number for that use case.
|
|
11567
11641
|
*/
|
|
11568
11642
|
CreateOutboundCallRequest: {
|
|
11643
|
+
/**
|
|
11644
|
+
* Derived From Call Sid
|
|
11645
|
+
* @description Prior call_sid if this is a callback from a previous call.
|
|
11646
|
+
*/
|
|
11647
|
+
derived_from_call_sid?: string | null;
|
|
11648
|
+
/** @description What the call should accomplish. Injected into agent context. */
|
|
11649
|
+
goal?: components["schemas"]["DescriptionString"] | null;
|
|
11569
11650
|
/**
|
|
11570
11651
|
* Idempotency Key
|
|
11571
11652
|
* @description Client-provided idempotency key. Auto-generated if omitted.
|
|
11572
11653
|
*/
|
|
11573
11654
|
idempotency_key?: string | null;
|
|
11655
|
+
/**
|
|
11656
|
+
* Metadata
|
|
11657
|
+
* @description Arbitrary key-value pairs for external system correlation.
|
|
11658
|
+
*/
|
|
11659
|
+
metadata?: {
|
|
11660
|
+
[key: string]: string;
|
|
11661
|
+
} | null;
|
|
11574
11662
|
/**
|
|
11575
11663
|
* Outbound Task Entity Id
|
|
11576
11664
|
* @description World model outbound_task entity ID for completion feedback.
|
|
11577
11665
|
*/
|
|
11578
11666
|
outbound_task_entity_id?: string | null;
|
|
11667
|
+
/**
|
|
11668
|
+
* Patient Entity Id
|
|
11669
|
+
* Format: uuid
|
|
11670
|
+
* @description Patient entity in the world model. Must exist in workspace as a person entity.
|
|
11671
|
+
*/
|
|
11672
|
+
patient_entity_id: string;
|
|
11579
11673
|
/**
|
|
11580
11674
|
* Phone From
|
|
11581
11675
|
* @description Caller ID phone number in E.164 format. Must belong to this workspace.
|
|
@@ -11586,6 +11680,8 @@ export interface components {
|
|
|
11586
11680
|
* @description Destination phone number in E.164 format.
|
|
11587
11681
|
*/
|
|
11588
11682
|
phone_to: string;
|
|
11683
|
+
/** @description Why the call is being made (e.g. appointment_reminder, follow_up, lab_results). */
|
|
11684
|
+
reason: components["schemas"]["NameString"];
|
|
11589
11685
|
/**
|
|
11590
11686
|
* Service Id
|
|
11591
11687
|
* @description Service ID for the voice agent to use.
|
|
@@ -11596,6 +11692,11 @@ export interface components {
|
|
|
11596
11692
|
* @description Optional system prompt override for this call.
|
|
11597
11693
|
*/
|
|
11598
11694
|
system_prompt?: string | null;
|
|
11695
|
+
/**
|
|
11696
|
+
* Tags
|
|
11697
|
+
* @description Classification tags for analytics.
|
|
11698
|
+
*/
|
|
11699
|
+
tags?: string[] | null;
|
|
11599
11700
|
/**
|
|
11600
11701
|
* Use Case Id
|
|
11601
11702
|
* @description Channel-manager use case ID. When provided, channel-manager selects the optimal outbound phone number for this use case.
|
|
@@ -11612,6 +11713,11 @@ export interface components {
|
|
|
11612
11713
|
* @description Twilio call SID for the outbound call
|
|
11613
11714
|
*/
|
|
11614
11715
|
call_sid: string;
|
|
11716
|
+
/**
|
|
11717
|
+
* Event Id
|
|
11718
|
+
* @description World event ID for the outbound.initiated event.
|
|
11719
|
+
*/
|
|
11720
|
+
event_id?: string | null;
|
|
11615
11721
|
/**
|
|
11616
11722
|
* Phone From
|
|
11617
11723
|
* @description Resolved caller ID when use_case_id was used.
|
|
@@ -13589,6 +13695,10 @@ export interface components {
|
|
|
13589
13695
|
average_valence?: number | null;
|
|
13590
13696
|
/** Barge In Count */
|
|
13591
13697
|
barge_in_count?: number | null;
|
|
13698
|
+
/** Compound Emotions */
|
|
13699
|
+
compound_emotions?: {
|
|
13700
|
+
[key: string]: unknown;
|
|
13701
|
+
}[] | null;
|
|
13592
13702
|
/** Dominant Emotion */
|
|
13593
13703
|
dominant_emotion?: string | null;
|
|
13594
13704
|
/** Emotional Shifts */
|
|
@@ -23599,6 +23709,10 @@ export interface components {
|
|
|
23599
23709
|
audio_window_end_ms?: number | null;
|
|
23600
23710
|
/** Audio Window Start Ms */
|
|
23601
23711
|
audio_window_start_ms?: number | null;
|
|
23712
|
+
/** Compound Emotions */
|
|
23713
|
+
compound_emotions?: {
|
|
23714
|
+
[key: string]: unknown;
|
|
23715
|
+
}[] | null;
|
|
23602
23716
|
/** Emotion Label */
|
|
23603
23717
|
emotion_label?: string | null;
|
|
23604
23718
|
/** Emotion Valence */
|
|
@@ -23668,7 +23782,7 @@ export interface components {
|
|
|
23668
23782
|
* Status
|
|
23669
23783
|
* @enum {string}
|
|
23670
23784
|
*/
|
|
23671
|
-
status: "active" | "frozen" | "closed";
|
|
23785
|
+
status: "active" | "frozen" | "closed" | "completed" | "in-progress" | "failed";
|
|
23672
23786
|
/** Turn Count */
|
|
23673
23787
|
turn_count: number;
|
|
23674
23788
|
/** Updated At */
|
|
@@ -24467,6 +24581,95 @@ export interface components {
|
|
|
24467
24581
|
*/
|
|
24468
24582
|
type: "voice_context_applied";
|
|
24469
24583
|
};
|
|
24584
|
+
/** VoiceDetail */
|
|
24585
|
+
VoiceDetail: {
|
|
24586
|
+
/**
|
|
24587
|
+
* Barge In Events
|
|
24588
|
+
* @default []
|
|
24589
|
+
*/
|
|
24590
|
+
barge_in_events?: {
|
|
24591
|
+
[key: string]: unknown;
|
|
24592
|
+
}[];
|
|
24593
|
+
/** Call Analysis */
|
|
24594
|
+
call_analysis?: {
|
|
24595
|
+
[key: string]: unknown;
|
|
24596
|
+
} | null;
|
|
24597
|
+
/** Config */
|
|
24598
|
+
config?: {
|
|
24599
|
+
[key: string]: unknown;
|
|
24600
|
+
} | null;
|
|
24601
|
+
/** Conversation Metrics */
|
|
24602
|
+
conversation_metrics?: {
|
|
24603
|
+
[key: string]: unknown;
|
|
24604
|
+
} | null;
|
|
24605
|
+
/** Emotional Summary */
|
|
24606
|
+
emotional_summary?: {
|
|
24607
|
+
[key: string]: unknown;
|
|
24608
|
+
} | null;
|
|
24609
|
+
/** Escalation */
|
|
24610
|
+
escalation?: {
|
|
24611
|
+
[key: string]: unknown;
|
|
24612
|
+
} | null;
|
|
24613
|
+
/** Forwarding */
|
|
24614
|
+
forwarding?: {
|
|
24615
|
+
[key: string]: unknown;
|
|
24616
|
+
} | null;
|
|
24617
|
+
/**
|
|
24618
|
+
* Has Recording
|
|
24619
|
+
* @default false
|
|
24620
|
+
*/
|
|
24621
|
+
has_recording?: boolean;
|
|
24622
|
+
/** Latency Summary */
|
|
24623
|
+
latency_summary?: {
|
|
24624
|
+
[key: string]: unknown;
|
|
24625
|
+
} | null;
|
|
24626
|
+
/** Operator Summary */
|
|
24627
|
+
operator_summary?: {
|
|
24628
|
+
[key: string]: unknown;
|
|
24629
|
+
} | null;
|
|
24630
|
+
/**
|
|
24631
|
+
* Participants
|
|
24632
|
+
* @default []
|
|
24633
|
+
*/
|
|
24634
|
+
participants?: {
|
|
24635
|
+
[key: string]: unknown;
|
|
24636
|
+
}[];
|
|
24637
|
+
/** Quality Breakdown */
|
|
24638
|
+
quality_breakdown?: {
|
|
24639
|
+
[key: string]: unknown;
|
|
24640
|
+
} | null;
|
|
24641
|
+
/** Recording Path */
|
|
24642
|
+
recording_path?: string | null;
|
|
24643
|
+
/** Risk Summary */
|
|
24644
|
+
risk_summary?: {
|
|
24645
|
+
[key: string]: unknown;
|
|
24646
|
+
} | null;
|
|
24647
|
+
/** Safety */
|
|
24648
|
+
safety?: {
|
|
24649
|
+
[key: string]: unknown;
|
|
24650
|
+
} | null;
|
|
24651
|
+
/** Safety Summary */
|
|
24652
|
+
safety_summary?: {
|
|
24653
|
+
[key: string]: unknown;
|
|
24654
|
+
} | null;
|
|
24655
|
+
/**
|
|
24656
|
+
* States Visited
|
|
24657
|
+
* @default []
|
|
24658
|
+
*/
|
|
24659
|
+
states_visited?: string[];
|
|
24660
|
+
/** Tool Summary */
|
|
24661
|
+
tool_summary?: {
|
|
24662
|
+
[key: string]: unknown;
|
|
24663
|
+
} | null;
|
|
24664
|
+
/** Transcript Accuracy */
|
|
24665
|
+
transcript_accuracy?: number | null;
|
|
24666
|
+
/** Twilio Recording Duration */
|
|
24667
|
+
twilio_recording_duration?: number | null;
|
|
24668
|
+
/** Twilio Recording Sid */
|
|
24669
|
+
twilio_recording_sid?: string | null;
|
|
24670
|
+
/** Verified Transcript */
|
|
24671
|
+
verified_transcript?: string | null;
|
|
24672
|
+
};
|
|
24470
24673
|
/** VoiceJudgeRecentResponse */
|
|
24471
24674
|
VoiceJudgeRecentResponse: {
|
|
24472
24675
|
/** Count */
|
|
@@ -25173,7 +25376,7 @@ export interface components {
|
|
|
25173
25376
|
*/
|
|
25174
25377
|
updated_at: string;
|
|
25175
25378
|
};
|
|
25176
|
-
WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["EncounterUpdatedEvent"] | components["schemas"]["NarrativeUpdatedEvent"] | components["schemas"]["ReviewSubmittedEvent"] | components["schemas"]["SimulationTurnStoredEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["TextStartedEvent"] | components["schemas"]["TextCompletedEvent"] | components["schemas"]["TriggerFiredEvent"] | components["schemas"]["TriggerCompletedEvent"] | components["schemas"]["TriggerFailedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"] | components["schemas"]["WorkspaceMemberAddedEvent"] | components["schemas"]["WorkspaceInvitationSentEvent"] | components["schemas"]["WorkspaceInvitationAcceptedEvent"] | components["schemas"]["ChannelEmailDeliveredEvent"] | components["schemas"]["ChannelEmailBouncedEvent"] | components["schemas"]["ChannelEmailComplainedEvent"] | components["schemas"]["ChannelEmailRejectedEvent"] | components["schemas"]["ChannelEmailDelayedEvent"] | components["schemas"]["ChannelEmailOpenedEvent"] | components["schemas"]["ChannelEmailClickedEvent"];
|
|
25379
|
+
WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["EncounterUpdatedEvent"] | components["schemas"]["NarrativeUpdatedEvent"] | components["schemas"]["ReviewSubmittedEvent"] | components["schemas"]["SimulationTurnStoredEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["TextStartedEvent"] | components["schemas"]["TextCompletedEvent"] | components["schemas"]["TriggerFiredEvent"] | components["schemas"]["TriggerCompletedEvent"] | components["schemas"]["TriggerFailedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"] | components["schemas"]["WorkspaceMemberAddedEvent"] | components["schemas"]["WorkspaceInvitationSentEvent"] | components["schemas"]["WorkspaceInvitationAcceptedEvent"] | components["schemas"]["ChannelEmailDeliveredEvent"] | components["schemas"]["ChannelEmailBouncedEvent"] | components["schemas"]["ChannelEmailComplainedEvent"] | components["schemas"]["ChannelEmailRejectedEvent"] | components["schemas"]["ChannelEmailDelayedEvent"] | components["schemas"]["ChannelEmailOpenedEvent"] | components["schemas"]["ChannelEmailClickedEvent"] | components["schemas"]["ChannelEmailReceivedEvent"] | components["schemas"]["ChannelVoicemailStatusEvent"];
|
|
25177
25380
|
/** WorldDashboardResponse */
|
|
25178
25381
|
WorldDashboardResponse: {
|
|
25179
25382
|
/** Avg Confidence */
|
|
@@ -25360,19 +25563,46 @@ export interface components {
|
|
|
25360
25563
|
};
|
|
25361
25564
|
/** ConversationSummary */
|
|
25362
25565
|
src__routes__conversations__ConversationSummary: {
|
|
25363
|
-
/**
|
|
25364
|
-
|
|
25566
|
+
/** Call Sid */
|
|
25567
|
+
call_sid?: string | null;
|
|
25568
|
+
/** Caller Id */
|
|
25569
|
+
caller_id?: string | null;
|
|
25570
|
+
/**
|
|
25571
|
+
* Channel Kind
|
|
25572
|
+
* @enum {string}
|
|
25573
|
+
*/
|
|
25574
|
+
channel_kind: "voice" | "sms" | "whatsapp" | "web" | "email";
|
|
25575
|
+
/** Completion Reason */
|
|
25576
|
+
completion_reason?: string | null;
|
|
25365
25577
|
/** Created At */
|
|
25366
25578
|
created_at: string;
|
|
25579
|
+
/** Direction */
|
|
25580
|
+
direction?: string | null;
|
|
25581
|
+
/** Duration Seconds */
|
|
25582
|
+
duration_seconds?: number | null;
|
|
25367
25583
|
/** Entity Id */
|
|
25368
25584
|
entity_id?: string | null;
|
|
25585
|
+
/** Escalation Status */
|
|
25586
|
+
escalation_status?: string | null;
|
|
25587
|
+
/** Final State */
|
|
25588
|
+
final_state?: string | null;
|
|
25589
|
+
/** Has Recording */
|
|
25590
|
+
has_recording?: boolean | null;
|
|
25369
25591
|
/** Id */
|
|
25370
25592
|
id: string;
|
|
25593
|
+
/** Phone Number */
|
|
25594
|
+
phone_number?: string | null;
|
|
25595
|
+
/** Quality Score */
|
|
25596
|
+
quality_score?: number | null;
|
|
25597
|
+
/** Service Id */
|
|
25598
|
+
service_id?: string | null;
|
|
25599
|
+
/** Source */
|
|
25600
|
+
source?: string | null;
|
|
25371
25601
|
/**
|
|
25372
25602
|
* Status
|
|
25373
25603
|
* @enum {string}
|
|
25374
25604
|
*/
|
|
25375
|
-
status: "active" | "frozen" | "closed";
|
|
25605
|
+
status: "active" | "frozen" | "closed" | "completed" | "in-progress" | "failed";
|
|
25376
25606
|
/**
|
|
25377
25607
|
* Turn Count
|
|
25378
25608
|
* @default 0
|
|
@@ -30267,7 +30497,10 @@ export interface operations {
|
|
|
30267
30497
|
list_conversations_v1__workspace_id__conversations_get: {
|
|
30268
30498
|
parameters: {
|
|
30269
30499
|
query?: {
|
|
30270
|
-
|
|
30500
|
+
/** @description Filter by channel */
|
|
30501
|
+
channel_kind?: ("voice" | "sms" | "whatsapp" | "web" | "email") | null;
|
|
30502
|
+
/** @description Filter by status */
|
|
30503
|
+
status?: ("active" | "frozen" | "closed" | "completed" | "in-progress" | "failed") | null;
|
|
30271
30504
|
limit?: number;
|
|
30272
30505
|
offset?: number;
|
|
30273
30506
|
};
|