@amigo-ai/platform-sdk 0.5.3 → 0.5.5
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/dist/types/generated/api.d.ts +14655 -13144
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -166
- package/dist/types/resources/agents.d.ts +88 -88
- package/dist/types/resources/analytics.d.ts +39 -39
- package/dist/types/resources/api-keys.d.ts +29 -29
- package/dist/types/resources/audit.d.ts +73 -73
- package/dist/types/resources/billing.d.ts +36 -36
- package/dist/types/resources/calls.d.ts +106 -106
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +633 -633
- package/dist/types/resources/data-sources.d.ts +81 -81
- package/dist/types/resources/functions.d.ts +22 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +257 -257
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/phone-numbers.d.ts +62 -62
- package/dist/types/resources/recordings.d.ts +9 -9
- package/dist/types/resources/review-queue.d.ts +331 -331
- package/dist/types/resources/safety.d.ts +33 -33
- package/dist/types/resources/services.d.ts +142 -142
- package/dist/types/resources/settings.d.ts +254 -254
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +73 -73
- package/dist/types/resources/skills.d.ts +163 -163
- package/dist/types/resources/triggers.d.ts +74 -74
- package/dist/types/resources/webhook-destinations.d.ts +57 -57
- package/dist/types/resources/workspaces.d.ts +50 -50
- package/dist/types/resources/world.d.ts +216 -216
- package/package.json +1 -1
|
@@ -28,153 +28,153 @@ export interface EntityAccessLogParams {
|
|
|
28
28
|
export declare class AuditResource extends WorkspaceScopedResource {
|
|
29
29
|
list(params?: ListAuditParams): Promise<{
|
|
30
30
|
events: {
|
|
31
|
-
id: string;
|
|
32
|
-
workspace_id: string;
|
|
33
|
-
timestamp: string;
|
|
34
|
-
service: string;
|
|
35
|
-
actor_entity_id?: string | null | undefined;
|
|
36
|
-
actor_credential_id?: string | null | undefined;
|
|
37
31
|
action: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
actor_credential_id?: string | null | undefined;
|
|
33
|
+
actor_entity_id?: string | null | undefined;
|
|
34
|
+
id: string;
|
|
41
35
|
ip_address?: string | null | undefined;
|
|
42
|
-
user_agent?: string | null | undefined;
|
|
43
36
|
metadata?: {
|
|
44
37
|
[x: string]: unknown;
|
|
45
38
|
} | null | undefined;
|
|
46
39
|
phi_accessed?: boolean | undefined;
|
|
40
|
+
resource_id?: string | null | undefined;
|
|
41
|
+
resource_name?: string | null | undefined;
|
|
42
|
+
resource_type: string;
|
|
43
|
+
service: string;
|
|
44
|
+
timestamp: string;
|
|
45
|
+
user_agent?: string | null | undefined;
|
|
46
|
+
workspace_id: string;
|
|
47
47
|
}[];
|
|
48
|
-
|
|
48
|
+
has_more: boolean;
|
|
49
49
|
limit: number;
|
|
50
50
|
offset: number;
|
|
51
|
-
|
|
51
|
+
total: number;
|
|
52
52
|
} & import("../index.js").ResponseMetadata>;
|
|
53
53
|
listAutoPaging(params?: ListAuditParams): AsyncGenerator<{
|
|
54
|
-
id: string;
|
|
55
|
-
workspace_id: string;
|
|
56
|
-
timestamp: string;
|
|
57
|
-
service: string;
|
|
58
|
-
actor_entity_id?: string | null | undefined;
|
|
59
|
-
actor_credential_id?: string | null | undefined;
|
|
60
54
|
action: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
actor_credential_id?: string | null | undefined;
|
|
56
|
+
actor_entity_id?: string | null | undefined;
|
|
57
|
+
id: string;
|
|
64
58
|
ip_address?: string | null | undefined;
|
|
65
|
-
user_agent?: string | null | undefined;
|
|
66
59
|
metadata?: {
|
|
67
60
|
[x: string]: unknown;
|
|
68
61
|
} | null | undefined;
|
|
69
62
|
phi_accessed?: boolean | undefined;
|
|
63
|
+
resource_id?: string | null | undefined;
|
|
64
|
+
resource_name?: string | null | undefined;
|
|
65
|
+
resource_type: string;
|
|
66
|
+
service: string;
|
|
67
|
+
timestamp: string;
|
|
68
|
+
user_agent?: string | null | undefined;
|
|
69
|
+
workspace_id: string;
|
|
70
70
|
}, any, any>;
|
|
71
71
|
getSummary(params?: {
|
|
72
72
|
date_from?: string | null;
|
|
73
73
|
date_to?: string | null;
|
|
74
74
|
}): Promise<{
|
|
75
|
-
total_events: number;
|
|
76
75
|
phi_access_events: number;
|
|
77
|
-
unique_actors: number;
|
|
78
76
|
services_with_events: number;
|
|
77
|
+
total_events: number;
|
|
78
|
+
unique_actors: number;
|
|
79
79
|
} & import("../index.js").ResponseMetadata>;
|
|
80
80
|
getPhiAccess(params?: PhiAccessParams): Promise<{
|
|
81
81
|
events: {
|
|
82
|
-
id: string;
|
|
83
|
-
workspace_id: string;
|
|
84
|
-
timestamp: string;
|
|
85
|
-
service: string;
|
|
86
|
-
actor_entity_id?: string | null | undefined;
|
|
87
|
-
actor_credential_id?: string | null | undefined;
|
|
88
82
|
action: string;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
actor_credential_id?: string | null | undefined;
|
|
84
|
+
actor_entity_id?: string | null | undefined;
|
|
85
|
+
id: string;
|
|
92
86
|
ip_address?: string | null | undefined;
|
|
93
|
-
user_agent?: string | null | undefined;
|
|
94
87
|
metadata?: {
|
|
95
88
|
[x: string]: unknown;
|
|
96
89
|
} | null | undefined;
|
|
97
90
|
phi_accessed?: boolean | undefined;
|
|
91
|
+
resource_id?: string | null | undefined;
|
|
92
|
+
resource_name?: string | null | undefined;
|
|
93
|
+
resource_type: string;
|
|
94
|
+
service: string;
|
|
95
|
+
timestamp: string;
|
|
96
|
+
user_agent?: string | null | undefined;
|
|
97
|
+
workspace_id: string;
|
|
98
98
|
}[];
|
|
99
|
-
|
|
99
|
+
has_more: boolean;
|
|
100
100
|
limit: number;
|
|
101
101
|
offset: number;
|
|
102
|
-
|
|
102
|
+
total: number;
|
|
103
103
|
} & import("../index.js").ResponseMetadata>;
|
|
104
104
|
getPhiAccessAutoPaging(params?: PhiAccessParams): AsyncGenerator<{
|
|
105
|
-
id: string;
|
|
106
|
-
workspace_id: string;
|
|
107
|
-
timestamp: string;
|
|
108
|
-
service: string;
|
|
109
|
-
actor_entity_id?: string | null | undefined;
|
|
110
|
-
actor_credential_id?: string | null | undefined;
|
|
111
105
|
action: string;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
actor_credential_id?: string | null | undefined;
|
|
107
|
+
actor_entity_id?: string | null | undefined;
|
|
108
|
+
id: string;
|
|
115
109
|
ip_address?: string | null | undefined;
|
|
116
|
-
user_agent?: string | null | undefined;
|
|
117
110
|
metadata?: {
|
|
118
111
|
[x: string]: unknown;
|
|
119
112
|
} | null | undefined;
|
|
120
113
|
phi_accessed?: boolean | undefined;
|
|
114
|
+
resource_id?: string | null | undefined;
|
|
115
|
+
resource_name?: string | null | undefined;
|
|
116
|
+
resource_type: string;
|
|
117
|
+
service: string;
|
|
118
|
+
timestamp: string;
|
|
119
|
+
user_agent?: string | null | undefined;
|
|
120
|
+
workspace_id: string;
|
|
121
121
|
}, any, any>;
|
|
122
122
|
createExport(body: components['schemas']['AuditExportRequest']): Promise<{
|
|
123
|
+
created_at: string;
|
|
124
|
+
download_url: string;
|
|
123
125
|
export_id: string;
|
|
124
|
-
s3_key: string;
|
|
125
126
|
row_count: number;
|
|
126
|
-
|
|
127
|
-
created_at: string;
|
|
127
|
+
s3_key: string;
|
|
128
128
|
} & import("../index.js").ResponseMetadata>;
|
|
129
129
|
listExports(): Promise<{
|
|
130
130
|
exports: {
|
|
131
|
+
download_url?: string | null | undefined;
|
|
131
132
|
key: string;
|
|
132
|
-
size: number;
|
|
133
133
|
last_modified?: string | null | undefined;
|
|
134
|
-
|
|
134
|
+
size: number;
|
|
135
135
|
}[];
|
|
136
136
|
} & import("../index.js").ResponseMetadata>;
|
|
137
137
|
getEntityAccessLog(entityId: string, params?: EntityAccessLogParams): Promise<{
|
|
138
138
|
events: {
|
|
139
|
-
id: string;
|
|
140
|
-
workspace_id: string;
|
|
141
|
-
timestamp: string;
|
|
142
|
-
service: string;
|
|
143
|
-
actor_entity_id?: string | null | undefined;
|
|
144
|
-
actor_credential_id?: string | null | undefined;
|
|
145
139
|
action: string;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
actor_credential_id?: string | null | undefined;
|
|
141
|
+
actor_entity_id?: string | null | undefined;
|
|
142
|
+
id: string;
|
|
149
143
|
ip_address?: string | null | undefined;
|
|
150
|
-
user_agent?: string | null | undefined;
|
|
151
144
|
metadata?: {
|
|
152
145
|
[x: string]: unknown;
|
|
153
146
|
} | null | undefined;
|
|
154
147
|
phi_accessed?: boolean | undefined;
|
|
148
|
+
resource_id?: string | null | undefined;
|
|
149
|
+
resource_name?: string | null | undefined;
|
|
150
|
+
resource_type: string;
|
|
151
|
+
service: string;
|
|
152
|
+
timestamp: string;
|
|
153
|
+
user_agent?: string | null | undefined;
|
|
154
|
+
workspace_id: string;
|
|
155
155
|
}[];
|
|
156
|
-
|
|
156
|
+
has_more: boolean;
|
|
157
157
|
limit: number;
|
|
158
158
|
offset: number;
|
|
159
|
-
|
|
159
|
+
total: number;
|
|
160
160
|
} & import("../index.js").ResponseMetadata>;
|
|
161
161
|
getEntityAccessLogAutoPaging(entityId: string, params?: EntityAccessLogParams): AsyncGenerator<{
|
|
162
|
-
id: string;
|
|
163
|
-
workspace_id: string;
|
|
164
|
-
timestamp: string;
|
|
165
|
-
service: string;
|
|
166
|
-
actor_entity_id?: string | null | undefined;
|
|
167
|
-
actor_credential_id?: string | null | undefined;
|
|
168
162
|
action: string;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
actor_credential_id?: string | null | undefined;
|
|
164
|
+
actor_entity_id?: string | null | undefined;
|
|
165
|
+
id: string;
|
|
172
166
|
ip_address?: string | null | undefined;
|
|
173
|
-
user_agent?: string | null | undefined;
|
|
174
167
|
metadata?: {
|
|
175
168
|
[x: string]: unknown;
|
|
176
169
|
} | null | undefined;
|
|
177
170
|
phi_accessed?: boolean | undefined;
|
|
171
|
+
resource_id?: string | null | undefined;
|
|
172
|
+
resource_name?: string | null | undefined;
|
|
173
|
+
resource_type: string;
|
|
174
|
+
service: string;
|
|
175
|
+
timestamp: string;
|
|
176
|
+
user_agent?: string | null | undefined;
|
|
177
|
+
workspace_id: string;
|
|
178
178
|
}, any, any>;
|
|
179
179
|
}
|
|
180
180
|
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -17,21 +17,21 @@ export interface UsageTrendsParams {
|
|
|
17
17
|
export declare class BillingResource extends WorkspaceScopedResource {
|
|
18
18
|
/** Get composite billing dashboard — KPIs, period comparison, top meters, invoice summary */
|
|
19
19
|
getDashboard(): Promise<{
|
|
20
|
-
workspace_id: string;
|
|
21
20
|
current_period_total: number;
|
|
22
|
-
previous_period_total: number | null;
|
|
23
21
|
delta_pct: number | null;
|
|
24
|
-
top_meters: {
|
|
25
|
-
meter_key: string;
|
|
26
|
-
display_name: string;
|
|
27
|
-
value: number;
|
|
28
|
-
unit: string;
|
|
29
|
-
}[];
|
|
30
22
|
invoice_status_summary: {
|
|
31
23
|
[x: string]: number;
|
|
32
24
|
};
|
|
33
|
-
period_start: string | null;
|
|
34
25
|
period_end: string | null;
|
|
26
|
+
period_start: string | null;
|
|
27
|
+
previous_period_total: number | null;
|
|
28
|
+
top_meters: {
|
|
29
|
+
display_name: string;
|
|
30
|
+
meter_key: string;
|
|
31
|
+
unit: string;
|
|
32
|
+
value: number;
|
|
33
|
+
}[];
|
|
34
|
+
workspace_id: string;
|
|
35
35
|
} & import("../index.js").ResponseMetadata>;
|
|
36
36
|
/** Get usage summary for the workspace */
|
|
37
37
|
getUsage(): Promise<{
|
|
@@ -39,62 +39,62 @@ export declare class BillingResource extends WorkspaceScopedResource {
|
|
|
39
39
|
} & import("../index.js").ResponseMetadata>;
|
|
40
40
|
/** Get usage time-series per meter for trend charts */
|
|
41
41
|
getUsageTrends(params?: UsageTrendsParams): Promise<{
|
|
42
|
-
period_start: string;
|
|
43
|
-
period_end: string;
|
|
44
42
|
meter_key: string;
|
|
45
|
-
|
|
43
|
+
period_end: string;
|
|
44
|
+
period_start: string;
|
|
46
45
|
unit: string;
|
|
46
|
+
value: number;
|
|
47
47
|
}[] & import("../index.js").ResponseMetadata>;
|
|
48
48
|
/** List invoices for the workspace */
|
|
49
49
|
listInvoices(params?: ListInvoicesParams): Promise<{
|
|
50
|
+
continuation_token?: number | null | undefined;
|
|
51
|
+
has_more: boolean;
|
|
50
52
|
items: {
|
|
51
|
-
|
|
53
|
+
adjustments: string;
|
|
54
|
+
created_at: string | null;
|
|
52
55
|
customer_id: string;
|
|
56
|
+
id: string;
|
|
53
57
|
invoice_number: string;
|
|
54
|
-
period_start: string;
|
|
55
|
-
period_end: string;
|
|
56
|
-
subtotal: string;
|
|
57
|
-
adjustments: string;
|
|
58
|
-
total: string;
|
|
59
|
-
status: "draft" | "sent" | "paid" | "void";
|
|
60
58
|
line_items: {
|
|
61
|
-
meter_key: string;
|
|
62
59
|
description?: string | undefined;
|
|
60
|
+
meter_key: string;
|
|
63
61
|
quantity: string;
|
|
64
|
-
unit_price: string;
|
|
65
62
|
total: string;
|
|
63
|
+
unit_price: string;
|
|
66
64
|
}[];
|
|
65
|
+
paid_at: string | null;
|
|
67
66
|
pdf_s3_key: string | null;
|
|
67
|
+
period_end: string;
|
|
68
|
+
period_start: string;
|
|
68
69
|
sent_at: string | null;
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
status: "draft" | "sent" | "paid" | "void";
|
|
71
|
+
subtotal: string;
|
|
72
|
+
total: string;
|
|
71
73
|
updated_at: string | null;
|
|
72
74
|
}[];
|
|
73
|
-
has_more: boolean;
|
|
74
|
-
continuation_token?: number | null | undefined;
|
|
75
75
|
total?: number | null | undefined;
|
|
76
76
|
} & import("../index.js").ResponseMetadata>;
|
|
77
77
|
listInvoicesAutoPaging(params?: ListInvoicesParams): AsyncGenerator<{
|
|
78
|
-
|
|
78
|
+
adjustments: string;
|
|
79
|
+
created_at: string | null;
|
|
79
80
|
customer_id: string;
|
|
81
|
+
id: string;
|
|
80
82
|
invoice_number: string;
|
|
81
|
-
period_start: string;
|
|
82
|
-
period_end: string;
|
|
83
|
-
subtotal: string;
|
|
84
|
-
adjustments: string;
|
|
85
|
-
total: string;
|
|
86
|
-
status: "draft" | "sent" | "paid" | "void";
|
|
87
83
|
line_items: {
|
|
88
|
-
meter_key: string;
|
|
89
84
|
description?: string | undefined;
|
|
85
|
+
meter_key: string;
|
|
90
86
|
quantity: string;
|
|
91
|
-
unit_price: string;
|
|
92
87
|
total: string;
|
|
88
|
+
unit_price: string;
|
|
93
89
|
}[];
|
|
90
|
+
paid_at: string | null;
|
|
94
91
|
pdf_s3_key: string | null;
|
|
92
|
+
period_end: string;
|
|
93
|
+
period_start: string;
|
|
95
94
|
sent_at: string | null;
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
status: "draft" | "sent" | "paid" | "void";
|
|
96
|
+
subtotal: string;
|
|
97
|
+
total: string;
|
|
98
98
|
updated_at: string | null;
|
|
99
99
|
}, any, any>;
|
|
100
100
|
/** Get invoice detail */
|
|
@@ -20,51 +20,51 @@ export interface ListCallsParams extends ListParams {
|
|
|
20
20
|
export declare class CallsResource extends WorkspaceScopedResource {
|
|
21
21
|
/** List calls with optional filtering */
|
|
22
22
|
list(params?: ListCallsParams): Promise<{
|
|
23
|
+
continuation_token?: number | null | undefined;
|
|
24
|
+
has_more: boolean;
|
|
23
25
|
items: {
|
|
24
|
-
entity_id: string;
|
|
25
26
|
call_sid?: string | null | undefined;
|
|
26
|
-
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
27
|
-
phone_number?: string | null | undefined;
|
|
28
27
|
caller_id?: string | null | undefined;
|
|
29
|
-
|
|
28
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
29
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
30
30
|
duration_seconds?: number | null | undefined;
|
|
31
|
-
|
|
31
|
+
entity_id: string;
|
|
32
32
|
escalation_status?: ("none" | "requested" | "connected" | "handback" | "completed") | null | undefined;
|
|
33
|
-
|
|
33
|
+
final_state?: string | null | undefined;
|
|
34
|
+
fork_turn_index?: number | null | undefined;
|
|
34
35
|
has_recording?: boolean | null | undefined;
|
|
36
|
+
parent_session_id?: string | null | undefined;
|
|
37
|
+
phone_number?: string | null | undefined;
|
|
35
38
|
quality_score?: number | null | undefined;
|
|
36
|
-
|
|
37
|
-
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
39
|
+
run_id?: string | null | undefined;
|
|
38
40
|
service_id?: string | null | undefined;
|
|
39
41
|
source?: ("real" | "simulated" | "playground" | "scribe") | null | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
started_at?: string | null | undefined;
|
|
43
|
+
status?: ("initiated" | "ringing" | "in-progress" | "completed" | "busy" | "no-answer" | "canceled" | "failed" | "unknown") | null | undefined;
|
|
44
|
+
turns?: number | null | undefined;
|
|
43
45
|
}[];
|
|
44
46
|
total: number;
|
|
45
|
-
has_more: boolean;
|
|
46
|
-
continuation_token?: number | null | undefined;
|
|
47
47
|
} & import("../index.js").ResponseMetadata>;
|
|
48
48
|
listAutoPaging(params?: ListCallsParams): AsyncGenerator<{
|
|
49
|
-
entity_id: string;
|
|
50
49
|
call_sid?: string | null | undefined;
|
|
51
|
-
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
52
|
-
phone_number?: string | null | undefined;
|
|
53
50
|
caller_id?: string | null | undefined;
|
|
54
|
-
|
|
51
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
52
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
55
53
|
duration_seconds?: number | null | undefined;
|
|
56
|
-
|
|
54
|
+
entity_id: string;
|
|
57
55
|
escalation_status?: ("none" | "requested" | "connected" | "handback" | "completed") | null | undefined;
|
|
58
|
-
|
|
56
|
+
final_state?: string | null | undefined;
|
|
57
|
+
fork_turn_index?: number | null | undefined;
|
|
59
58
|
has_recording?: boolean | null | undefined;
|
|
59
|
+
parent_session_id?: string | null | undefined;
|
|
60
|
+
phone_number?: string | null | undefined;
|
|
60
61
|
quality_score?: number | null | undefined;
|
|
61
|
-
|
|
62
|
-
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
62
|
+
run_id?: string | null | undefined;
|
|
63
63
|
service_id?: string | null | undefined;
|
|
64
64
|
source?: ("real" | "simulated" | "playground" | "scribe") | null | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
started_at?: string | null | undefined;
|
|
66
|
+
status?: ("initiated" | "ringing" | "in-progress" | "completed" | "busy" | "no-answer" | "canceled" | "failed" | "unknown") | null | undefined;
|
|
67
|
+
turns?: number | null | undefined;
|
|
68
68
|
}, any, any>;
|
|
69
69
|
/** Get full call detail including turns, escalation, safety, and recording info */
|
|
70
70
|
get(callId: string): Promise<{
|
|
@@ -74,66 +74,66 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
74
74
|
getIntelligence(callId: string): Promise<{
|
|
75
75
|
call_id: string;
|
|
76
76
|
call_sid?: string | null | undefined;
|
|
77
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
78
|
+
conversation_summary?: {
|
|
79
|
+
avg_turn_duration_seconds?: number | null | undefined;
|
|
80
|
+
barge_in_count?: number | undefined;
|
|
81
|
+
loop_count?: number | undefined;
|
|
82
|
+
topic_changes?: number | undefined;
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
created_at?: string | null | undefined;
|
|
77
85
|
direction?: "inbound" | "outbound" | "playground" | "simulated" | "test" | undefined;
|
|
78
86
|
duration_seconds?: number | undefined;
|
|
79
|
-
|
|
87
|
+
emotion_summary?: {
|
|
88
|
+
avg_valence?: number | null | undefined;
|
|
89
|
+
caller_distress_detected?: boolean | undefined;
|
|
90
|
+
dominant_emotion?: string | null | undefined;
|
|
91
|
+
emotion_shifts?: number | undefined;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
final_state?: string | null | undefined;
|
|
94
|
+
key_moments?: {
|
|
95
|
+
description: string;
|
|
96
|
+
severity?: "info" | "warning" | "error" | undefined;
|
|
97
|
+
turn?: number | null | undefined;
|
|
98
|
+
type: "latency_spike" | "silence" | "barge_in" | "loop" | "tool_failure" | "escalation" | "safety_flag" | "high_risk" | "elevated_risk";
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
latency_summary?: {
|
|
101
|
+
p50_audio_ttfb_ms?: number | null | undefined;
|
|
102
|
+
p95_audio_ttfb_ms?: number | null | undefined;
|
|
103
|
+
silence_ratio?: number | null | undefined;
|
|
104
|
+
total_silence_seconds?: number | null | undefined;
|
|
105
|
+
} | null | undefined;
|
|
106
|
+
operator_summary?: {
|
|
107
|
+
escalated?: boolean | undefined;
|
|
108
|
+
operator_handle_time_seconds?: number | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
80
110
|
quality_breakdown?: {
|
|
81
|
-
score: number;
|
|
82
111
|
components: {
|
|
83
112
|
name: "latency" | "silence" | "barge_ins" | "loops" | "escalation" | "tool_failures";
|
|
84
113
|
penalty: number;
|
|
85
|
-
value?: number | null | undefined;
|
|
86
|
-
threshold?: string | null | undefined;
|
|
87
114
|
severity?: "none" | "minor" | "major" | "critical" | undefined;
|
|
115
|
+
threshold?: string | null | undefined;
|
|
116
|
+
value?: number | null | undefined;
|
|
88
117
|
}[];
|
|
118
|
+
score: number;
|
|
89
119
|
workspace_avg?: number | null | undefined;
|
|
90
120
|
workspace_percentile?: number | null | undefined;
|
|
91
121
|
} | null | undefined;
|
|
92
|
-
|
|
93
|
-
turn?: number | null | undefined;
|
|
94
|
-
type: "latency_spike" | "silence" | "barge_in" | "loop" | "tool_failure" | "escalation" | "safety_flag" | "high_risk" | "elevated_risk";
|
|
95
|
-
severity?: "info" | "warning" | "error" | undefined;
|
|
96
|
-
description: string;
|
|
97
|
-
}[] | undefined;
|
|
98
|
-
emotion_summary?: {
|
|
99
|
-
dominant_emotion?: string | null | undefined;
|
|
100
|
-
avg_valence?: number | null | undefined;
|
|
101
|
-
emotion_shifts?: number | undefined;
|
|
102
|
-
caller_distress_detected?: boolean | undefined;
|
|
103
|
-
} | null | undefined;
|
|
122
|
+
quality_score?: number | null | undefined;
|
|
104
123
|
risk_summary?: {
|
|
105
124
|
composite_score?: number | undefined;
|
|
106
|
-
level?: "low" | "medium" | "high" | "critical" | undefined;
|
|
107
125
|
flags?: string[] | undefined;
|
|
126
|
+
level?: "low" | "medium" | "high" | "critical" | undefined;
|
|
108
127
|
} | null | undefined;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
silence_ratio?: number | null | undefined;
|
|
113
|
-
total_silence_seconds?: number | null | undefined;
|
|
114
|
-
} | null | undefined;
|
|
115
|
-
conversation_summary?: {
|
|
116
|
-
barge_in_count?: number | undefined;
|
|
117
|
-
loop_count?: number | undefined;
|
|
118
|
-
topic_changes?: number | undefined;
|
|
119
|
-
avg_turn_duration_seconds?: number | null | undefined;
|
|
128
|
+
safety_summary?: {
|
|
129
|
+
categories?: string[] | undefined;
|
|
130
|
+
match_count?: number | undefined;
|
|
120
131
|
} | null | undefined;
|
|
121
132
|
tool_summary?: {
|
|
122
|
-
total_calls?: number | undefined;
|
|
123
133
|
failed?: number | undefined;
|
|
124
134
|
failure_rate?: number | undefined;
|
|
135
|
+
total_calls?: number | undefined;
|
|
125
136
|
} | null | undefined;
|
|
126
|
-
safety_summary?: {
|
|
127
|
-
match_count?: number | undefined;
|
|
128
|
-
categories?: string[] | undefined;
|
|
129
|
-
} | null | undefined;
|
|
130
|
-
operator_summary?: {
|
|
131
|
-
escalated?: boolean | undefined;
|
|
132
|
-
operator_handle_time_seconds?: number | null | undefined;
|
|
133
|
-
} | null | undefined;
|
|
134
|
-
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null | undefined;
|
|
135
|
-
final_state?: string | null | undefined;
|
|
136
|
-
created_at?: string | null | undefined;
|
|
137
137
|
} & import("../index.js").ResponseMetadata>;
|
|
138
138
|
/** Get active intelligence across all in-progress calls */
|
|
139
139
|
getActiveIntelligence(): Promise<{
|
|
@@ -143,86 +143,86 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
143
143
|
getBenchmarks(params?: {
|
|
144
144
|
days?: number;
|
|
145
145
|
}): Promise<{
|
|
146
|
+
avg_duration_seconds?: number | null | undefined;
|
|
146
147
|
avg_quality_score?: number | null | undefined;
|
|
147
|
-
|
|
148
|
+
escalation_rate?: number | undefined;
|
|
148
149
|
p25_quality_score?: number | null | undefined;
|
|
150
|
+
p50_quality_score?: number | null | undefined;
|
|
149
151
|
p75_quality_score?: number | null | undefined;
|
|
150
|
-
total_calls?: number | undefined;
|
|
151
|
-
avg_duration_seconds?: number | null | undefined;
|
|
152
|
-
escalation_rate?: number | undefined;
|
|
153
152
|
quality_distribution?: {
|
|
154
153
|
[x: string]: number;
|
|
155
154
|
} | undefined;
|
|
155
|
+
total_calls?: number | undefined;
|
|
156
156
|
} & import("../index.js").ResponseMetadata>;
|
|
157
157
|
/** Get phone number call volume breakdown */
|
|
158
158
|
getPhoneVolume(params?: {
|
|
159
159
|
days?: number;
|
|
160
160
|
}): Promise<{
|
|
161
|
-
phone_number: string;
|
|
162
|
-
total_calls: number;
|
|
163
|
-
inbound: number;
|
|
164
|
-
outbound: number;
|
|
165
161
|
avg_duration_seconds?: number | null | undefined;
|
|
166
162
|
by_date?: {
|
|
167
|
-
date: string;
|
|
168
163
|
count: number;
|
|
164
|
+
date: string;
|
|
169
165
|
}[] | undefined;
|
|
166
|
+
inbound: number;
|
|
167
|
+
outbound: number;
|
|
168
|
+
phone_number: string;
|
|
169
|
+
total_calls: number;
|
|
170
170
|
}[] & import("../index.js").ResponseMetadata>;
|
|
171
171
|
/** Get deep call trace analysis */
|
|
172
172
|
getTraceAnalysis(callId: string): Promise<{
|
|
173
|
+
call_entity_id?: string | null | undefined;
|
|
173
174
|
call_sid: string;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
coaching?: {
|
|
176
|
+
expected_impact?: string | null | undefined;
|
|
177
|
+
moment_timestamp?: number | null | undefined;
|
|
178
|
+
observation: string;
|
|
179
|
+
recommendation: string;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
computed_at?: string | null | undefined;
|
|
182
|
+
counterfactuals?: {
|
|
183
|
+
actual: string;
|
|
184
|
+
alternative: string;
|
|
185
|
+
predicted_impact: string;
|
|
179
186
|
timestamp_seconds?: number | null | undefined;
|
|
180
|
-
what_happened: string;
|
|
181
|
-
quality?: ("optimal" | "adequate" | "suboptimal") | null | undefined;
|
|
182
|
-
reasoning?: string | null | undefined;
|
|
183
|
-
decision_factors?: {
|
|
184
|
-
factor: string;
|
|
185
|
-
source_type: "transcript" | "tone" | "tool_result" | "emotion" | "silence" | "barge_in" | "breathing" | "speech_rate";
|
|
186
|
-
}[] | undefined;
|
|
187
|
-
alternative?: string | null | undefined;
|
|
188
187
|
}[] | undefined;
|
|
188
|
+
deep_understanding?: string | null | undefined;
|
|
189
|
+
emergent_patterns?: string[] | undefined;
|
|
189
190
|
emotional_arc?: string | null | undefined;
|
|
190
191
|
emotional_shifts?: {
|
|
191
|
-
|
|
192
|
+
agent_awareness?: string | null | undefined;
|
|
192
193
|
from_state?: string | null | undefined;
|
|
194
|
+
timestamp_seconds?: number | null | undefined;
|
|
193
195
|
to_state?: string | null | undefined;
|
|
194
196
|
trigger?: string | null | undefined;
|
|
195
|
-
agent_awareness?: string | null | undefined;
|
|
196
197
|
}[] | undefined;
|
|
197
198
|
interaction_dynamics?: {
|
|
198
|
-
turn_taking_quality?: string | null | undefined;
|
|
199
199
|
information_density?: string | null | undefined;
|
|
200
|
-
repair_effectiveness?: string | null | undefined;
|
|
201
200
|
rapport_trajectory?: string | null | undefined;
|
|
201
|
+
repair_effectiveness?: string | null | undefined;
|
|
202
|
+
turn_taking_quality?: string | null | undefined;
|
|
202
203
|
} | null | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
key_moment_count?: number | undefined;
|
|
205
|
+
key_moments?: {
|
|
206
|
+
alternative?: string | null | undefined;
|
|
207
|
+
decision_factors?: {
|
|
208
|
+
factor: string;
|
|
209
|
+
source_type: "transcript" | "tone" | "tool_result" | "emotion" | "silence" | "barge_in" | "breathing" | "speech_rate";
|
|
210
|
+
}[] | undefined;
|
|
211
|
+
quality?: ("optimal" | "adequate" | "suboptimal") | null | undefined;
|
|
212
|
+
reasoning?: string | null | undefined;
|
|
210
213
|
timestamp_seconds?: number | null | undefined;
|
|
211
|
-
|
|
212
|
-
alternative: string;
|
|
213
|
-
predicted_impact: string;
|
|
214
|
+
what_happened: string;
|
|
214
215
|
}[] | undefined;
|
|
215
|
-
|
|
216
|
+
missed_opportunities?: string[] | undefined;
|
|
217
|
+
outcome?: ("succeeded" | "partially" | "failed" | "abandoned") | null | undefined;
|
|
216
218
|
signal_response_alignment?: {
|
|
217
|
-
signal: string;
|
|
218
219
|
agent_response: string;
|
|
219
220
|
alignment: "aligned" | "misaligned" | "partial";
|
|
220
221
|
insight?: string | null | undefined;
|
|
222
|
+
signal: string;
|
|
221
223
|
}[] | undefined;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
call_entity_id?: string | null | undefined;
|
|
225
|
-
computed_at?: string | null | undefined;
|
|
224
|
+
status?: "ready" | "pending" | "unavailable" | undefined;
|
|
225
|
+
summary?: string | null | undefined;
|
|
226
226
|
} & import("../index.js").ResponseMetadata>;
|
|
227
227
|
}
|
|
228
228
|
//# sourceMappingURL=calls.d.ts.map
|