@amigo-ai/platform-sdk 0.5.1 → 0.5.3
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 +81 -7
- package/api.md +5 -0
- package/dist/index.cjs +43 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -10
- package/dist/index.mjs.map +2 -2
- package/dist/resources/base.js +7 -2
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +22 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +13373 -13213
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.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/base.d.ts.map +1 -1
- 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 +643 -643
- 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 +258 -258
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/personas.d.ts.map +1 -1
- 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/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +69 -35
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +216 -216
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,17 +13,17 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
13
13
|
* Scores reflect how complete and confident each dimension's facts are.
|
|
14
14
|
*/
|
|
15
15
|
getEntityDimensions(entityId: EntityId | string): Promise<{
|
|
16
|
+
entity_id: string;
|
|
16
17
|
dimensions: {
|
|
17
|
-
avg_confidence: number;
|
|
18
|
-
description: string | null;
|
|
19
18
|
dimension: string;
|
|
20
|
-
fact_count: number;
|
|
21
|
-
latest_fact_at: string | null;
|
|
22
19
|
name: string;
|
|
23
|
-
|
|
20
|
+
description: string | null;
|
|
24
21
|
weight: number;
|
|
22
|
+
fact_count: number;
|
|
23
|
+
avg_confidence: number;
|
|
24
|
+
source_count: number;
|
|
25
|
+
latest_fact_at: string | null;
|
|
25
26
|
}[];
|
|
26
|
-
entity_id: string;
|
|
27
27
|
total_facts: number;
|
|
28
28
|
} & import("../index.js").ResponseMetadata>;
|
|
29
29
|
/**
|
|
@@ -33,18 +33,18 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
33
33
|
dimension?: string;
|
|
34
34
|
limit?: number;
|
|
35
35
|
}): Promise<{
|
|
36
|
-
dimension: string | null;
|
|
37
36
|
entity_id: string;
|
|
37
|
+
dimension: string | null;
|
|
38
38
|
facts: {
|
|
39
|
+
dimension: string;
|
|
40
|
+
event_type: string;
|
|
41
|
+
source: string | null;
|
|
39
42
|
confidence: number;
|
|
43
|
+
extracted_text: string | null;
|
|
40
44
|
data?: {
|
|
41
45
|
[x: string]: unknown;
|
|
42
46
|
} | null | undefined;
|
|
43
|
-
dimension: string;
|
|
44
|
-
event_type: string;
|
|
45
|
-
extracted_text: string | null;
|
|
46
47
|
ingested_at: string | null;
|
|
47
|
-
source: string | null;
|
|
48
48
|
}[];
|
|
49
49
|
total: number;
|
|
50
50
|
} & import("../index.js").ResponseMetadata>;
|
|
@@ -53,44 +53,44 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
53
53
|
* and fact ingestion trends.
|
|
54
54
|
*/
|
|
55
55
|
getAnalytics(): Promise<{
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
total_entities_with_memory: number;
|
|
57
|
+
total_entities_in_workspace: number;
|
|
58
58
|
coverage_rate: number;
|
|
59
|
-
|
|
59
|
+
total_facts: number;
|
|
60
60
|
dimensions: {
|
|
61
|
+
dimension: string;
|
|
62
|
+
name: string;
|
|
63
|
+
description: string | null;
|
|
64
|
+
weight: number;
|
|
65
|
+
extraction_mode: string;
|
|
61
66
|
active: boolean;
|
|
62
|
-
avg_confidence: number;
|
|
63
|
-
avg_facts_per_entity: number;
|
|
64
67
|
builtin: boolean;
|
|
65
|
-
description: string | null;
|
|
66
|
-
dimension: string;
|
|
67
68
|
entity_count: number;
|
|
68
|
-
|
|
69
|
+
total_facts: number;
|
|
70
|
+
avg_facts_per_entity: number;
|
|
71
|
+
avg_confidence: number;
|
|
72
|
+
source_breakdown: {
|
|
73
|
+
[x: string]: number;
|
|
74
|
+
};
|
|
69
75
|
latest_fact_at: string | null;
|
|
70
|
-
name: string;
|
|
71
76
|
sample_facts?: {
|
|
72
|
-
confidence: number;
|
|
73
77
|
entity_id: string;
|
|
74
78
|
extracted_text: string;
|
|
79
|
+
confidence: number;
|
|
75
80
|
}[] | undefined;
|
|
76
|
-
source_breakdown: {
|
|
77
|
-
[x: string]: number;
|
|
78
|
-
};
|
|
79
|
-
total_facts: number;
|
|
80
|
-
weight: number;
|
|
81
81
|
}[];
|
|
82
|
-
facts_last_24h: number;
|
|
83
|
-
facts_last_30d: number;
|
|
84
|
-
facts_last_7d: number;
|
|
85
|
-
llm_dimensions: number;
|
|
86
82
|
top_sources: {
|
|
87
|
-
entity_count: number;
|
|
88
|
-
fact_count: number;
|
|
89
83
|
source: string;
|
|
84
|
+
fact_count: number;
|
|
85
|
+
entity_count: number;
|
|
90
86
|
}[];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
facts_last_24h: number;
|
|
88
|
+
facts_last_7d: number;
|
|
89
|
+
facts_last_30d: number;
|
|
90
|
+
active_dimensions: number;
|
|
91
|
+
builtin_dimensions: number;
|
|
92
|
+
custom_dimensions: number;
|
|
93
|
+
llm_dimensions: number;
|
|
94
94
|
} & import("../index.js").ResponseMetadata>;
|
|
95
95
|
}
|
|
96
96
|
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -6,27 +6,27 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
6
6
|
limit?: number;
|
|
7
7
|
offset?: number;
|
|
8
8
|
}): Promise<{
|
|
9
|
-
continuation_token?: number | null | undefined;
|
|
10
|
-
has_more: boolean;
|
|
11
9
|
items: {
|
|
12
|
-
active_call_sid?: string | null | undefined;
|
|
13
|
-
avg_handle_time_seconds: number;
|
|
14
|
-
connection_method: "browser" | "phone";
|
|
15
|
-
created_at?: string | null | undefined;
|
|
16
|
-
email?: string | null | undefined;
|
|
17
10
|
id: string;
|
|
18
|
-
|
|
19
|
-
last_status_change?: string | null | undefined;
|
|
11
|
+
workspace_id: string;
|
|
20
12
|
name?: string | null | undefined;
|
|
13
|
+
email?: string | null | undefined;
|
|
14
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
15
|
+
skills: string[];
|
|
16
|
+
connection_method: "browser" | "phone";
|
|
21
17
|
phone_number?: string | null | undefined;
|
|
22
18
|
role: "operator" | "supervisor" | "admin";
|
|
23
|
-
skills: string[];
|
|
24
19
|
status: "online" | "busy" | "offline";
|
|
20
|
+
last_status_change?: string | null | undefined;
|
|
21
|
+
active_call_sid?: string | null | undefined;
|
|
25
22
|
total_escalations_handled: number;
|
|
26
|
-
|
|
23
|
+
avg_handle_time_seconds: number;
|
|
24
|
+
last_call_at?: string | null | undefined;
|
|
25
|
+
created_at?: string | null | undefined;
|
|
27
26
|
updated_at?: string | null | undefined;
|
|
28
|
-
workspace_id: string;
|
|
29
27
|
}[];
|
|
28
|
+
has_more: boolean;
|
|
29
|
+
continuation_token?: number | null | undefined;
|
|
30
30
|
total?: number | null | undefined;
|
|
31
31
|
} & import("../index.js").ResponseMetadata>;
|
|
32
32
|
listAutoPaging(params?: {
|
|
@@ -34,160 +34,160 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
34
34
|
limit?: number;
|
|
35
35
|
offset?: number;
|
|
36
36
|
}): AsyncGenerator<{
|
|
37
|
-
active_call_sid?: string | null | undefined;
|
|
38
|
-
avg_handle_time_seconds: number;
|
|
39
|
-
connection_method: "browser" | "phone";
|
|
40
|
-
created_at?: string | null | undefined;
|
|
41
|
-
email?: string | null | undefined;
|
|
42
37
|
id: string;
|
|
43
|
-
|
|
44
|
-
last_status_change?: string | null | undefined;
|
|
38
|
+
workspace_id: string;
|
|
45
39
|
name?: string | null | undefined;
|
|
40
|
+
email?: string | null | undefined;
|
|
41
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
42
|
+
skills: string[];
|
|
43
|
+
connection_method: "browser" | "phone";
|
|
46
44
|
phone_number?: string | null | undefined;
|
|
47
45
|
role: "operator" | "supervisor" | "admin";
|
|
48
|
-
skills: string[];
|
|
49
46
|
status: "online" | "busy" | "offline";
|
|
47
|
+
last_status_change?: string | null | undefined;
|
|
48
|
+
active_call_sid?: string | null | undefined;
|
|
50
49
|
total_escalations_handled: number;
|
|
51
|
-
|
|
50
|
+
avg_handle_time_seconds: number;
|
|
51
|
+
last_call_at?: string | null | undefined;
|
|
52
|
+
created_at?: string | null | undefined;
|
|
52
53
|
updated_at?: string | null | undefined;
|
|
53
|
-
workspace_id: string;
|
|
54
54
|
}, any, any>;
|
|
55
55
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
56
|
-
active_call_sid?: string | null | undefined;
|
|
57
|
-
avg_handle_time_seconds: number;
|
|
58
|
-
connection_method: "browser" | "phone";
|
|
59
|
-
created_at?: string | null | undefined;
|
|
60
|
-
email?: string | null | undefined;
|
|
61
56
|
id: string;
|
|
62
|
-
|
|
63
|
-
last_status_change?: string | null | undefined;
|
|
57
|
+
workspace_id: string;
|
|
64
58
|
name?: string | null | undefined;
|
|
59
|
+
email?: string | null | undefined;
|
|
60
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
61
|
+
skills: string[];
|
|
62
|
+
connection_method: "browser" | "phone";
|
|
65
63
|
phone_number?: string | null | undefined;
|
|
66
64
|
role: "operator" | "supervisor" | "admin";
|
|
67
|
-
skills: string[];
|
|
68
65
|
status: "online" | "busy" | "offline";
|
|
66
|
+
last_status_change?: string | null | undefined;
|
|
67
|
+
active_call_sid?: string | null | undefined;
|
|
69
68
|
total_escalations_handled: number;
|
|
70
|
-
|
|
69
|
+
avg_handle_time_seconds: number;
|
|
70
|
+
last_call_at?: string | null | undefined;
|
|
71
|
+
created_at?: string | null | undefined;
|
|
71
72
|
updated_at?: string | null | undefined;
|
|
72
|
-
workspace_id: string;
|
|
73
73
|
} & import("../index.js").ResponseMetadata>;
|
|
74
74
|
get(operatorId: string): Promise<{
|
|
75
|
-
active_call_sid?: string | null | undefined;
|
|
76
|
-
avg_handle_time_seconds: number;
|
|
77
|
-
connection_method: "browser" | "phone";
|
|
78
|
-
created_at?: string | null | undefined;
|
|
79
|
-
email?: string | null | undefined;
|
|
80
75
|
id: string;
|
|
81
|
-
|
|
82
|
-
last_status_change?: string | null | undefined;
|
|
76
|
+
workspace_id: string;
|
|
83
77
|
name?: string | null | undefined;
|
|
78
|
+
email?: string | null | undefined;
|
|
79
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
80
|
+
skills: string[];
|
|
81
|
+
connection_method: "browser" | "phone";
|
|
84
82
|
phone_number?: string | null | undefined;
|
|
85
83
|
role: "operator" | "supervisor" | "admin";
|
|
86
|
-
skills: string[];
|
|
87
84
|
status: "online" | "busy" | "offline";
|
|
85
|
+
last_status_change?: string | null | undefined;
|
|
86
|
+
active_call_sid?: string | null | undefined;
|
|
88
87
|
total_escalations_handled: number;
|
|
89
|
-
|
|
88
|
+
avg_handle_time_seconds: number;
|
|
89
|
+
last_call_at?: string | null | undefined;
|
|
90
|
+
created_at?: string | null | undefined;
|
|
90
91
|
updated_at?: string | null | undefined;
|
|
91
|
-
workspace_id: string;
|
|
92
92
|
} & import("../index.js").ResponseMetadata>;
|
|
93
93
|
/** Update an operator (name, role, status, etc.) */
|
|
94
94
|
update(operatorId: string, body: components['schemas']['UpdateOperatorRequest']): Promise<{
|
|
95
|
-
active_call_sid?: string | null | undefined;
|
|
96
|
-
avg_handle_time_seconds: number;
|
|
97
|
-
connection_method: "browser" | "phone";
|
|
98
|
-
created_at?: string | null | undefined;
|
|
99
|
-
email?: string | null | undefined;
|
|
100
95
|
id: string;
|
|
101
|
-
|
|
102
|
-
last_status_change?: string | null | undefined;
|
|
96
|
+
workspace_id: string;
|
|
103
97
|
name?: string | null | undefined;
|
|
98
|
+
email?: string | null | undefined;
|
|
99
|
+
type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
100
|
+
skills: string[];
|
|
101
|
+
connection_method: "browser" | "phone";
|
|
104
102
|
phone_number?: string | null | undefined;
|
|
105
103
|
role: "operator" | "supervisor" | "admin";
|
|
106
|
-
skills: string[];
|
|
107
104
|
status: "online" | "busy" | "offline";
|
|
105
|
+
last_status_change?: string | null | undefined;
|
|
106
|
+
active_call_sid?: string | null | undefined;
|
|
108
107
|
total_escalations_handled: number;
|
|
109
|
-
|
|
108
|
+
avg_handle_time_seconds: number;
|
|
109
|
+
last_call_at?: string | null | undefined;
|
|
110
|
+
created_at?: string | null | undefined;
|
|
110
111
|
updated_at?: string | null | undefined;
|
|
111
|
-
workspace_id: string;
|
|
112
112
|
} & import("../index.js").ResponseMetadata>;
|
|
113
113
|
getDashboard(): Promise<{
|
|
114
|
-
|
|
115
|
-
escalations_today: {
|
|
116
|
-
avg_handle_time_seconds?: number | null | undefined;
|
|
117
|
-
avg_wait_seconds?: number | null | undefined;
|
|
118
|
-
completed?: number | undefined;
|
|
119
|
-
connected?: number | undefined;
|
|
120
|
-
requested?: number | undefined;
|
|
121
|
-
};
|
|
114
|
+
workspace_id: string;
|
|
122
115
|
operators: {
|
|
116
|
+
total: number;
|
|
117
|
+
online: number;
|
|
123
118
|
busy: number;
|
|
124
119
|
offline: number;
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
};
|
|
121
|
+
active_escalations: number;
|
|
122
|
+
escalations_today: {
|
|
123
|
+
requested?: number | undefined;
|
|
124
|
+
connected?: number | undefined;
|
|
125
|
+
completed?: number | undefined;
|
|
126
|
+
avg_wait_seconds?: number | null | undefined;
|
|
127
|
+
avg_handle_time_seconds?: number | null | undefined;
|
|
127
128
|
};
|
|
128
129
|
recent_escalations: {
|
|
129
130
|
call_entity_id: string;
|
|
130
131
|
call_sid?: string | null | undefined;
|
|
131
|
-
caller_id?: string | null | undefined;
|
|
132
|
-
concept?: string | null | undefined;
|
|
133
|
-
connected_at?: string | null | undefined;
|
|
134
|
-
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
135
132
|
escalation_id?: string | null | undefined;
|
|
136
|
-
immediate: boolean;
|
|
137
|
-
operator_entity_id?: string | null | undefined;
|
|
138
|
-
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
139
|
-
phone_number?: string | null | undefined;
|
|
140
|
-
regulatory_basis?: string | null | undefined;
|
|
141
|
-
requested_at?: string | null | undefined;
|
|
142
|
-
risk_score?: number | null | undefined;
|
|
143
|
-
started_at?: string | null | undefined;
|
|
144
133
|
status: "none" | "requested" | "connected" | "handback" | "completed";
|
|
145
134
|
trigger?: string | null | undefined;
|
|
146
135
|
trigger_source?: string | null | undefined;
|
|
136
|
+
concept?: string | null | undefined;
|
|
137
|
+
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
138
|
+
regulatory_basis?: string | null | undefined;
|
|
139
|
+
immediate: boolean;
|
|
140
|
+
risk_score?: number | null | undefined;
|
|
141
|
+
requested_at?: string | null | undefined;
|
|
142
|
+
connected_at?: string | null | undefined;
|
|
147
143
|
wait_seconds?: number | null | undefined;
|
|
144
|
+
operator_entity_id?: string | null | undefined;
|
|
145
|
+
caller_id?: string | null | undefined;
|
|
146
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
147
|
+
phone_number?: string | null | undefined;
|
|
148
|
+
started_at?: string | null | undefined;
|
|
148
149
|
}[];
|
|
149
|
-
workspace_id: string;
|
|
150
150
|
} & import("../index.js").ResponseMetadata>;
|
|
151
151
|
getQueue(): Promise<{
|
|
152
|
+
workspace_id: string;
|
|
152
153
|
queue: {
|
|
153
|
-
brief_context?: string | null | undefined;
|
|
154
154
|
call_sid: string;
|
|
155
155
|
caller_id?: string | undefined;
|
|
156
|
-
|
|
157
|
-
current_state?: string | undefined;
|
|
158
|
-
current_valence?: number | null | undefined;
|
|
156
|
+
service_id?: string | undefined;
|
|
159
157
|
direction?: "inbound" | "outbound" | "playground" | "simulated" | "test" | undefined;
|
|
160
|
-
entity_name?: string | null | undefined;
|
|
161
|
-
escalation_active?: boolean | undefined;
|
|
162
|
-
priority_reasons?: ("high_risk" | "long_wait" | "negative_emotion" | "safety_concern" | "looping")[] | undefined;
|
|
163
158
|
priority_score: number;
|
|
159
|
+
priority_reasons?: ("high_risk" | "long_wait" | "negative_emotion" | "safety_concern" | "looping")[] | undefined;
|
|
160
|
+
wait_seconds?: number | undefined;
|
|
164
161
|
risk_score?: number | null | undefined;
|
|
165
|
-
|
|
162
|
+
current_emotion?: string | null | undefined;
|
|
163
|
+
current_valence?: number | null | undefined;
|
|
164
|
+
current_state?: string | undefined;
|
|
166
165
|
turn_count?: number | undefined;
|
|
167
|
-
|
|
166
|
+
escalation_active?: boolean | undefined;
|
|
167
|
+
entity_name?: string | null | undefined;
|
|
168
|
+
brief_context?: string | null | undefined;
|
|
168
169
|
}[];
|
|
169
170
|
total_active: number;
|
|
170
|
-
workspace_id: string;
|
|
171
171
|
} & import("../index.js").ResponseMetadata>;
|
|
172
172
|
getEscalations(params?: {
|
|
173
173
|
status?: string;
|
|
174
174
|
limit?: number;
|
|
175
175
|
offset?: number;
|
|
176
176
|
}): Promise<{
|
|
177
|
-
continuation_token?: number | null | undefined;
|
|
178
|
-
has_more: boolean;
|
|
179
177
|
items: {
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
id: string;
|
|
179
|
+
workspace_id: string;
|
|
180
|
+
event_type: string;
|
|
182
181
|
data: {
|
|
183
182
|
[x: string]: unknown;
|
|
184
183
|
};
|
|
185
|
-
event_type: string;
|
|
186
|
-
id: string;
|
|
187
|
-
ingested_at?: string | null | undefined;
|
|
188
184
|
source: string;
|
|
189
|
-
|
|
185
|
+
confidence: number;
|
|
186
|
+
ingested_at?: string | null | undefined;
|
|
187
|
+
created_at?: string | null | undefined;
|
|
190
188
|
}[];
|
|
189
|
+
has_more: boolean;
|
|
190
|
+
continuation_token?: number | null | undefined;
|
|
191
191
|
total?: number | null | undefined;
|
|
192
192
|
} & import("../index.js").ResponseMetadata>;
|
|
193
193
|
getEscalationsAutoPaging(params?: {
|
|
@@ -195,55 +195,55 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
195
195
|
limit?: number;
|
|
196
196
|
offset?: number;
|
|
197
197
|
}): AsyncGenerator<{
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
id: string;
|
|
199
|
+
workspace_id: string;
|
|
200
|
+
event_type: string;
|
|
200
201
|
data: {
|
|
201
202
|
[x: string]: unknown;
|
|
202
203
|
};
|
|
203
|
-
event_type: string;
|
|
204
|
-
id: string;
|
|
205
|
-
ingested_at?: string | null | undefined;
|
|
206
204
|
source: string;
|
|
207
|
-
|
|
205
|
+
confidence: number;
|
|
206
|
+
ingested_at?: string | null | undefined;
|
|
207
|
+
created_at?: string | null | undefined;
|
|
208
208
|
}, any, any>;
|
|
209
209
|
getActiveEscalations(): Promise<{
|
|
210
|
-
continuation_token?: number | null | undefined;
|
|
211
|
-
has_more: boolean;
|
|
212
210
|
items: {
|
|
213
211
|
call_entity_id: string;
|
|
214
212
|
call_sid?: string | null | undefined;
|
|
215
|
-
caller_id?: string | null | undefined;
|
|
216
|
-
concept?: string | null | undefined;
|
|
217
|
-
connected_at?: string | null | undefined;
|
|
218
|
-
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
219
213
|
escalation_id?: string | null | undefined;
|
|
220
|
-
immediate: boolean;
|
|
221
|
-
operator_entity_id?: string | null | undefined;
|
|
222
|
-
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
223
|
-
phone_number?: string | null | undefined;
|
|
224
|
-
regulatory_basis?: string | null | undefined;
|
|
225
|
-
requested_at?: string | null | undefined;
|
|
226
|
-
risk_score?: number | null | undefined;
|
|
227
|
-
started_at?: string | null | undefined;
|
|
228
214
|
status: "none" | "requested" | "connected" | "handback" | "completed";
|
|
229
215
|
trigger?: string | null | undefined;
|
|
230
216
|
trigger_source?: string | null | undefined;
|
|
217
|
+
concept?: string | null | undefined;
|
|
218
|
+
operator_type?: ("clinical" | "administrative" | "crisis_counselor") | null | undefined;
|
|
219
|
+
regulatory_basis?: string | null | undefined;
|
|
220
|
+
immediate: boolean;
|
|
221
|
+
risk_score?: number | null | undefined;
|
|
222
|
+
requested_at?: string | null | undefined;
|
|
223
|
+
connected_at?: string | null | undefined;
|
|
231
224
|
wait_seconds?: number | null | undefined;
|
|
225
|
+
operator_entity_id?: string | null | undefined;
|
|
226
|
+
caller_id?: string | null | undefined;
|
|
227
|
+
direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null | undefined;
|
|
228
|
+
phone_number?: string | null | undefined;
|
|
229
|
+
started_at?: string | null | undefined;
|
|
232
230
|
}[];
|
|
231
|
+
has_more: boolean;
|
|
232
|
+
continuation_token?: number | null | undefined;
|
|
233
233
|
total?: number | null | undefined;
|
|
234
234
|
} & import("../index.js").ResponseMetadata>;
|
|
235
235
|
getEscalationStats(params?: {
|
|
236
236
|
period?: string;
|
|
237
237
|
group_by?: string;
|
|
238
238
|
}): Promise<{
|
|
239
|
+
workspace_id: string;
|
|
240
|
+
period: string;
|
|
241
|
+
group_by: string;
|
|
239
242
|
buckets: {
|
|
240
|
-
count: number;
|
|
241
243
|
key: string;
|
|
244
|
+
count: number;
|
|
242
245
|
}[];
|
|
243
|
-
group_by: string;
|
|
244
|
-
period: string;
|
|
245
246
|
total: number;
|
|
246
|
-
workspace_id: string;
|
|
247
247
|
} & import("../index.js").ResponseMetadata>;
|
|
248
248
|
getPerformance(params?: {
|
|
249
249
|
days?: number;
|
|
@@ -252,35 +252,35 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
252
252
|
interval?: '1h' | '1d' | '1w';
|
|
253
253
|
service_id?: string | null;
|
|
254
254
|
}): Promise<{
|
|
255
|
-
|
|
255
|
+
workspace_id: string;
|
|
256
|
+
total_operators: number;
|
|
257
|
+
online: number;
|
|
256
258
|
busy: number;
|
|
257
259
|
offline: number;
|
|
258
|
-
|
|
260
|
+
total_escalations_handled: number;
|
|
261
|
+
avg_handle_time_seconds: number;
|
|
259
262
|
operators: {
|
|
260
|
-
avg_handle_time_seconds: number;
|
|
261
|
-
last_call_at?: string | null | undefined;
|
|
262
|
-
name?: string | null | undefined;
|
|
263
263
|
operator_id: string;
|
|
264
|
+
name?: string | null | undefined;
|
|
264
265
|
status: "online" | "busy" | "offline";
|
|
265
266
|
total_escalations_handled: number;
|
|
267
|
+
avg_handle_time_seconds: number;
|
|
268
|
+
last_call_at?: string | null | undefined;
|
|
266
269
|
}[];
|
|
267
|
-
total_escalations_handled: number;
|
|
268
|
-
total_operators: number;
|
|
269
|
-
workspace_id: string;
|
|
270
270
|
} & import("../index.js").ResponseMetadata>;
|
|
271
271
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
272
|
+
token: string;
|
|
273
|
+
identity: string;
|
|
272
274
|
conference_sid: string;
|
|
273
275
|
connect_params?: {
|
|
274
276
|
[x: string]: string;
|
|
275
277
|
} | undefined;
|
|
276
|
-
identity: string;
|
|
277
|
-
token: string;
|
|
278
278
|
} & import("../index.js").ResponseMetadata>;
|
|
279
279
|
joinCall(operatorId: string, body: components['schemas']['JoinCallRequest']): Promise<{
|
|
280
|
+
participant_call_sid: string;
|
|
280
281
|
conference_sid: string;
|
|
281
282
|
mode: "listen" | "takeover";
|
|
282
283
|
operator_entity_id: string;
|
|
283
|
-
participant_call_sid: string;
|
|
284
284
|
} & import("../index.js").ResponseMetadata>;
|
|
285
285
|
leaveCall(operatorId: string, body: components['schemas']['LeaveCallRequest']): Promise<{
|
|
286
286
|
success: boolean;
|
|
@@ -289,19 +289,19 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
289
289
|
mode: "listen" | "takeover";
|
|
290
290
|
} & import("../index.js").ResponseMetadata>;
|
|
291
291
|
sendGuidance(operatorId: string, body: components['schemas']['SendGuidanceRequest']): Promise<{
|
|
292
|
-
call_sid: string;
|
|
293
292
|
status: "delivered" | "failed";
|
|
293
|
+
call_sid: string;
|
|
294
294
|
} & import("../index.js").ResponseMetadata>;
|
|
295
295
|
createBriefing(operatorId: string, body: {
|
|
296
296
|
call_sid: string;
|
|
297
297
|
}): Promise<{
|
|
298
298
|
call_sid: string;
|
|
299
|
-
generated_at: string;
|
|
300
299
|
operator_id: string;
|
|
301
300
|
sections: {
|
|
302
|
-
content: string;
|
|
303
301
|
title: string;
|
|
302
|
+
content: string;
|
|
304
303
|
}[];
|
|
304
|
+
generated_at: string;
|
|
305
305
|
} & import("../index.js").ResponseMetadata>;
|
|
306
306
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
307
307
|
success: boolean;
|
|
@@ -309,47 +309,47 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
309
309
|
getCallTranscript(callSid: string): Promise<{
|
|
310
310
|
call_entity_id: string;
|
|
311
311
|
call_sid: string | null;
|
|
312
|
+
total_segments: number;
|
|
312
313
|
segments: {
|
|
313
|
-
confidence: number;
|
|
314
|
-
escalation_id: string | null;
|
|
315
314
|
speaker_role: string;
|
|
316
|
-
timestamp: string | null;
|
|
317
315
|
transcript: string;
|
|
316
|
+
timestamp: string | null;
|
|
317
|
+
escalation_id: string | null;
|
|
318
|
+
confidence: number;
|
|
318
319
|
}[];
|
|
319
|
-
total_segments: number;
|
|
320
320
|
} & import("../index.js").ResponseMetadata>;
|
|
321
321
|
getAuditLog(params?: {
|
|
322
322
|
limit?: number;
|
|
323
323
|
offset?: number;
|
|
324
324
|
}): Promise<{
|
|
325
|
-
continuation_token?: number | null | undefined;
|
|
326
|
-
has_more: boolean;
|
|
327
325
|
items: {
|
|
328
|
-
|
|
326
|
+
id: string;
|
|
327
|
+
workspace_id: string;
|
|
328
|
+
event_type: string;
|
|
329
329
|
data: {
|
|
330
330
|
[x: string]: unknown;
|
|
331
331
|
};
|
|
332
|
-
event_type: string;
|
|
333
|
-
id: string;
|
|
334
|
-
ingested_at?: string | null | undefined;
|
|
335
332
|
source: string;
|
|
336
|
-
|
|
333
|
+
ingested_at?: string | null | undefined;
|
|
334
|
+
created_at?: string | null | undefined;
|
|
337
335
|
}[];
|
|
336
|
+
has_more: boolean;
|
|
337
|
+
continuation_token?: number | null | undefined;
|
|
338
338
|
total?: number | null | undefined;
|
|
339
339
|
} & import("../index.js").ResponseMetadata>;
|
|
340
340
|
getAuditLogAutoPaging(params?: {
|
|
341
341
|
limit?: number;
|
|
342
342
|
offset?: number;
|
|
343
343
|
}): AsyncGenerator<{
|
|
344
|
-
|
|
344
|
+
id: string;
|
|
345
|
+
workspace_id: string;
|
|
346
|
+
event_type: string;
|
|
345
347
|
data: {
|
|
346
348
|
[x: string]: unknown;
|
|
347
349
|
};
|
|
348
|
-
event_type: string;
|
|
349
|
-
id: string;
|
|
350
|
-
ingested_at?: string | null | undefined;
|
|
351
350
|
source: string;
|
|
352
|
-
|
|
351
|
+
ingested_at?: string | null | undefined;
|
|
352
|
+
created_at?: string | null | undefined;
|
|
353
353
|
}, any, any>;
|
|
354
354
|
}
|
|
355
355
|
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/resources/operators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,iBAAkB,SAAQ,uBAAuB;IACtD,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;IAQxE,cAAc,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/resources/operators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,M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