@amigo-ai/platform-sdk 0.1.0 → 0.3.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 +126 -8
- package/dist/core/branded-types.js +1 -0
- package/dist/core/branded-types.js.map +1 -1
- package/dist/core/errors.js +43 -3
- package/dist/core/errors.js.map +1 -1
- package/dist/core/openapi-client.js +60 -48
- package/dist/core/openapi-client.js.map +1 -1
- package/dist/core/rate-limit.js +13 -0
- package/dist/core/rate-limit.js.map +1 -0
- package/dist/core/webhooks.js +17 -0
- package/dist/core/webhooks.js.map +1 -0
- package/dist/generated/api.js +2 -0
- package/dist/{types → generated}/api.js.map +1 -1
- package/dist/index.cjs +1668 -371
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +59 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1658 -371
- package/dist/index.mjs.map +4 -4
- package/dist/resources/actions.js +52 -0
- package/dist/resources/actions.js.map +1 -0
- package/dist/resources/agents.js +30 -30
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/analytics.js +34 -15
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/api-keys.js +17 -19
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/audit.js +35 -0
- package/dist/resources/audit.js.map +1 -0
- package/dist/resources/base.js +12 -44
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/billing.js +35 -7
- package/dist/resources/billing.js.map +1 -1
- package/dist/resources/calls.js +25 -9
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/compliance.js +19 -0
- package/dist/resources/compliance.js.map +1 -0
- package/dist/resources/context-graphs.js +46 -18
- package/dist/resources/context-graphs.js.map +1 -1
- package/dist/resources/data-sources.js +30 -12
- package/dist/resources/data-sources.js.map +1 -1
- package/dist/resources/functions.js +42 -0
- package/dist/resources/functions.js.map +1 -0
- package/dist/resources/integrations.js +32 -15
- package/dist/resources/integrations.js.map +1 -1
- package/dist/resources/memory.js +13 -4
- package/dist/resources/memory.js.map +1 -1
- package/dist/resources/operators.js +102 -0
- package/dist/resources/operators.js.map +1 -0
- package/dist/resources/personas.js +31 -0
- package/dist/resources/personas.js.map +1 -0
- package/dist/resources/phone-numbers.js +31 -16
- package/dist/resources/phone-numbers.js.map +1 -1
- package/dist/resources/recordings.js +19 -0
- package/dist/resources/recordings.js.map +1 -0
- package/dist/resources/review-queue.js +94 -0
- package/dist/resources/review-queue.js.map +1 -0
- package/dist/resources/safety.js +31 -0
- package/dist/resources/safety.js.map +1 -0
- package/dist/resources/services.js +18 -12
- package/dist/resources/services.js.map +1 -1
- package/dist/resources/settings.js +50 -24
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/simulations.js +23 -17
- package/dist/resources/simulations.js.map +1 -1
- package/dist/resources/skills.js +22 -16
- package/dist/resources/skills.js.map +1 -1
- package/dist/resources/triggers.js +51 -0
- package/dist/resources/triggers.js.map +1 -0
- package/dist/resources/webhook-destinations.js +44 -0
- package/dist/resources/webhook-destinations.js.map +1 -0
- package/dist/resources/workspaces.js +24 -38
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js +58 -60
- package/dist/resources/world.js.map +1 -1
- package/dist/types/core/branded-types.d.ts +3 -0
- package/dist/types/core/branded-types.d.ts.map +1 -1
- package/dist/types/core/errors.d.ts +3 -0
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/openapi-client.d.ts +13 -5
- package/dist/types/core/openapi-client.d.ts.map +1 -1
- package/dist/types/core/rate-limit.d.ts +8 -0
- package/dist/types/core/rate-limit.d.ts.map +1 -0
- package/dist/types/core/webhooks.d.ts +9 -0
- package/dist/types/core/webhooks.d.ts.map +1 -0
- package/dist/types/generated/api.d.ts +35120 -0
- package/dist/types/generated/api.d.ts.map +1 -0
- package/dist/types/index.d.ts +45 -43
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +158 -0
- package/dist/types/resources/actions.d.ts.map +1 -0
- package/dist/types/resources/agents.d.ts +70 -22
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +100 -118
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +36 -7
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +70 -0
- package/dist/types/resources/audit.d.ts.map +1 -0
- package/dist/types/resources/base.d.ts +13 -13
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +52 -12
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +89 -35
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +45 -0
- package/dist/types/resources/compliance.d.ts.map +1 -0
- package/dist/types/resources/context-graphs.d.ts +77 -14
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +105 -9
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +46 -0
- package/dist/types/resources/functions.d.ts.map +1 -0
- package/dist/types/resources/integrations.d.ts +83 -12
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +26 -73
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +157 -0
- package/dist/types/resources/operators.d.ts.map +1 -0
- package/dist/types/resources/personas.d.ts +60 -0
- package/dist/types/resources/personas.d.ts.map +1 -0
- package/dist/types/resources/phone-numbers.d.ts +70 -10
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +29 -0
- package/dist/types/resources/recordings.d.ts.map +1 -0
- package/dist/types/resources/review-queue.d.ts +184 -0
- package/dist/types/resources/review-queue.d.ts.map +1 -0
- package/dist/types/resources/safety.d.ts +57 -0
- package/dist/types/resources/safety.d.ts.map +1 -0
- package/dist/types/resources/services.d.ts +85 -5
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +79 -78
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +41 -12
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +131 -6
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +129 -0
- package/dist/types/resources/triggers.d.ts.map +1 -0
- package/dist/types/resources/webhook-destinations.d.ts +75 -0
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -0
- package/dist/types/resources/workspaces.d.ts +60 -15
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +152 -143
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +13 -5
- package/dist/types/api.js +0 -12
- package/dist/types/types/api.d.ts +0 -739
- package/dist/types/types/api.d.ts.map +0 -1
|
@@ -1,75 +1,5 @@
|
|
|
1
1
|
import type { EntityId } from '../core/branded-types.js';
|
|
2
2
|
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
-
export interface DimensionScore {
|
|
4
|
-
dimension: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string | null;
|
|
7
|
-
weight: number;
|
|
8
|
-
fact_count: number;
|
|
9
|
-
avg_confidence: number;
|
|
10
|
-
source_count: number;
|
|
11
|
-
latest_fact_at: string | null;
|
|
12
|
-
}
|
|
13
|
-
export interface EntityDimensionsResponse {
|
|
14
|
-
entity_id: string;
|
|
15
|
-
dimensions: DimensionScore[];
|
|
16
|
-
total_facts: number;
|
|
17
|
-
}
|
|
18
|
-
export interface MemoryFact {
|
|
19
|
-
dimension: string;
|
|
20
|
-
event_type: string;
|
|
21
|
-
source: string | null;
|
|
22
|
-
confidence: number;
|
|
23
|
-
extracted_text: string | null;
|
|
24
|
-
data: Record<string, unknown> | null;
|
|
25
|
-
ingested_at: string | null;
|
|
26
|
-
}
|
|
27
|
-
export interface EntityFactsResponse {
|
|
28
|
-
entity_id: string;
|
|
29
|
-
dimension: string | null;
|
|
30
|
-
facts: MemoryFact[];
|
|
31
|
-
total: number;
|
|
32
|
-
}
|
|
33
|
-
export interface DimensionAnalytics {
|
|
34
|
-
dimension: string;
|
|
35
|
-
name: string;
|
|
36
|
-
description: string | null;
|
|
37
|
-
weight: number;
|
|
38
|
-
extraction_mode: string;
|
|
39
|
-
active: boolean;
|
|
40
|
-
builtin: boolean;
|
|
41
|
-
entity_count: number;
|
|
42
|
-
total_facts: number;
|
|
43
|
-
avg_facts_per_entity: number;
|
|
44
|
-
avg_confidence: number;
|
|
45
|
-
source_breakdown: Record<string, number>;
|
|
46
|
-
latest_fact_at: string | null;
|
|
47
|
-
sample_facts: Array<{
|
|
48
|
-
extracted_text: string;
|
|
49
|
-
confidence: number;
|
|
50
|
-
source: string | null;
|
|
51
|
-
entity_id: string;
|
|
52
|
-
}>;
|
|
53
|
-
}
|
|
54
|
-
export interface MemoryAnalyticsResponse {
|
|
55
|
-
total_entities_with_memory: number;
|
|
56
|
-
total_entities_in_workspace: number;
|
|
57
|
-
coverage_rate: number;
|
|
58
|
-
total_facts: number;
|
|
59
|
-
dimensions: DimensionAnalytics[];
|
|
60
|
-
top_sources: Array<{
|
|
61
|
-
source: string;
|
|
62
|
-
fact_count: number;
|
|
63
|
-
entity_count: number;
|
|
64
|
-
}>;
|
|
65
|
-
facts_last_24h: number;
|
|
66
|
-
facts_last_7d: number;
|
|
67
|
-
facts_last_30d: number;
|
|
68
|
-
active_dimensions: number;
|
|
69
|
-
builtin_dimensions: number;
|
|
70
|
-
custom_dimensions: number;
|
|
71
|
-
llm_dimensions: number;
|
|
72
|
-
}
|
|
73
3
|
/**
|
|
74
4
|
* Agent Memory — structured long-term memory for entities.
|
|
75
5
|
*
|
|
@@ -82,18 +12,41 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
82
12
|
* Get all memory dimension scores for an entity.
|
|
83
13
|
* Scores reflect how complete and confident each dimension's facts are.
|
|
84
14
|
*/
|
|
85
|
-
getEntityDimensions(entityId: EntityId | string): Promise<
|
|
15
|
+
getEntityDimensions(entityId: EntityId | string): Promise<{
|
|
16
|
+
entity_id: string;
|
|
17
|
+
dimensions: import("../index.js").components["schemas"]["DimensionScore"][];
|
|
18
|
+
total_facts: number;
|
|
19
|
+
}>;
|
|
86
20
|
/**
|
|
87
21
|
* Get individual memory facts for an entity, optionally filtered by dimension.
|
|
88
22
|
*/
|
|
89
23
|
getEntityFacts(entityId: EntityId | string, params?: {
|
|
90
24
|
dimension?: string;
|
|
91
25
|
limit?: number;
|
|
92
|
-
}): Promise<
|
|
26
|
+
}): Promise<{
|
|
27
|
+
entity_id: string;
|
|
28
|
+
dimension: string | null;
|
|
29
|
+
facts: import("../index.js").components["schemas"]["MemoryFact"][];
|
|
30
|
+
total: number;
|
|
31
|
+
}>;
|
|
93
32
|
/**
|
|
94
33
|
* Get workspace-level memory analytics — coverage rates, dimension health,
|
|
95
34
|
* and fact ingestion trends.
|
|
96
35
|
*/
|
|
97
|
-
getAnalytics(): Promise<
|
|
36
|
+
getAnalytics(): Promise<{
|
|
37
|
+
total_entities_with_memory: number;
|
|
38
|
+
total_entities_in_workspace: number;
|
|
39
|
+
coverage_rate: number;
|
|
40
|
+
total_facts: number;
|
|
41
|
+
dimensions: import("../index.js").components["schemas"]["DimensionAnalytics"][];
|
|
42
|
+
top_sources: import("../index.js").components["schemas"]["TopSource"][];
|
|
43
|
+
facts_last_24h: number;
|
|
44
|
+
facts_last_7d: number;
|
|
45
|
+
facts_last_30d: number;
|
|
46
|
+
active_dimensions: number;
|
|
47
|
+
builtin_dimensions: number;
|
|
48
|
+
custom_dimensions: number;
|
|
49
|
+
llm_dimensions: number;
|
|
50
|
+
}>;
|
|
98
51
|
}
|
|
99
52
|
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/resources/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/resources/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD;;;OAGG;IACG,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM;;oBAqC8q1T,2CAAsB;;;IA7Bzv1T;;OAEG;IACG,cAAc,CAClB,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAC3B,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;eAwB0wyY,2CAAsB;;;IAZj1yY;;;OAGG;IACG,YAAY;;;;;oBAQ6wrY,2CAAsB;qBAAiF,2CAAsB;;;;;;;;;CAD75rY"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
4
|
+
list(params?: {
|
|
5
|
+
status?: string;
|
|
6
|
+
limit?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
items: components["schemas"]["OperatorResponse"][];
|
|
10
|
+
has_more: boolean;
|
|
11
|
+
continuation_token?: number | null;
|
|
12
|
+
total?: number | null;
|
|
13
|
+
}>;
|
|
14
|
+
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
15
|
+
id: string;
|
|
16
|
+
workspace_id: string;
|
|
17
|
+
name: string | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
type: string | null;
|
|
20
|
+
skills: string[];
|
|
21
|
+
connection_method: string;
|
|
22
|
+
phone_number: string | null;
|
|
23
|
+
role: string;
|
|
24
|
+
status: string;
|
|
25
|
+
last_status_change: string | null;
|
|
26
|
+
active_call_sid: string | null;
|
|
27
|
+
total_escalations_handled: number;
|
|
28
|
+
avg_handle_time_seconds: number;
|
|
29
|
+
last_call_at: string | null;
|
|
30
|
+
created_at: string | null;
|
|
31
|
+
updated_at: string | null;
|
|
32
|
+
}>;
|
|
33
|
+
get(operatorId: string): Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
workspace_id: string;
|
|
36
|
+
name: string | null;
|
|
37
|
+
email: string | null;
|
|
38
|
+
type: string | null;
|
|
39
|
+
skills: string[];
|
|
40
|
+
connection_method: string;
|
|
41
|
+
phone_number: string | null;
|
|
42
|
+
role: string;
|
|
43
|
+
status: string;
|
|
44
|
+
last_status_change: string | null;
|
|
45
|
+
active_call_sid: string | null;
|
|
46
|
+
total_escalations_handled: number;
|
|
47
|
+
avg_handle_time_seconds: number;
|
|
48
|
+
last_call_at: string | null;
|
|
49
|
+
created_at: string | null;
|
|
50
|
+
updated_at: string | null;
|
|
51
|
+
}>;
|
|
52
|
+
getDashboard(): Promise<{
|
|
53
|
+
workspace_id: string;
|
|
54
|
+
operators: components["schemas"]["OperatorStatusCounts"];
|
|
55
|
+
active_escalations: number;
|
|
56
|
+
escalations_today: components["schemas"]["EscalationDailyStats"];
|
|
57
|
+
recent_escalations: components["schemas"]["ActiveEscalationItem"][];
|
|
58
|
+
}>;
|
|
59
|
+
getQueue(): Promise<{
|
|
60
|
+
workspace_id: string;
|
|
61
|
+
queue: components["schemas"]["PriorityQueueItem"][];
|
|
62
|
+
total_active: number;
|
|
63
|
+
}>;
|
|
64
|
+
getEscalations(params?: {
|
|
65
|
+
status?: string;
|
|
66
|
+
limit?: number;
|
|
67
|
+
offset?: number;
|
|
68
|
+
}): Promise<{
|
|
69
|
+
items: components["schemas"]["EscalationEventResponse"][];
|
|
70
|
+
has_more: boolean;
|
|
71
|
+
continuation_token?: number | null;
|
|
72
|
+
total?: number | null;
|
|
73
|
+
}>;
|
|
74
|
+
getActiveEscalations(): Promise<{
|
|
75
|
+
items: components["schemas"]["ActiveEscalationItem"][];
|
|
76
|
+
has_more: boolean;
|
|
77
|
+
continuation_token?: number | null;
|
|
78
|
+
total?: number | null;
|
|
79
|
+
}>;
|
|
80
|
+
getEscalationStats(params?: {
|
|
81
|
+
period?: string;
|
|
82
|
+
group_by?: string;
|
|
83
|
+
}): Promise<{
|
|
84
|
+
workspace_id: string;
|
|
85
|
+
period: string;
|
|
86
|
+
group_by: string;
|
|
87
|
+
buckets: components["schemas"]["EscalationStatsBucket"][];
|
|
88
|
+
total: number;
|
|
89
|
+
}>;
|
|
90
|
+
getPerformance(params?: {
|
|
91
|
+
days?: number;
|
|
92
|
+
date_from?: string | null;
|
|
93
|
+
date_to?: string | null;
|
|
94
|
+
interval?: '1h' | '1d' | '1w';
|
|
95
|
+
service_id?: string | null;
|
|
96
|
+
}): Promise<{
|
|
97
|
+
workspace_id: string;
|
|
98
|
+
total_operators: number;
|
|
99
|
+
online: number;
|
|
100
|
+
busy: number;
|
|
101
|
+
offline: number;
|
|
102
|
+
total_escalations_handled: number;
|
|
103
|
+
avg_handle_time_seconds: number;
|
|
104
|
+
operators: components["schemas"]["OperatorPerformanceItem"][];
|
|
105
|
+
}>;
|
|
106
|
+
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
107
|
+
token: string;
|
|
108
|
+
identity: string;
|
|
109
|
+
conference_sid: string;
|
|
110
|
+
connect_params?: {
|
|
111
|
+
[key: string]: string;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
joinCall(operatorId: string, body: components['schemas']['JoinCallRequest']): Promise<{
|
|
115
|
+
participant_call_sid: string;
|
|
116
|
+
conference_sid: string;
|
|
117
|
+
mode: string;
|
|
118
|
+
operator_entity_id: string;
|
|
119
|
+
}>;
|
|
120
|
+
leaveCall(operatorId: string, body: components['schemas']['LeaveCallRequest']): Promise<{
|
|
121
|
+
success: boolean;
|
|
122
|
+
}>;
|
|
123
|
+
switchMode(operatorId: string, body: components['schemas']['SwitchModeRequest']): Promise<{
|
|
124
|
+
mode: string;
|
|
125
|
+
}>;
|
|
126
|
+
sendGuidance(operatorId: string, body: components['schemas']['SendGuidanceRequest']): Promise<{
|
|
127
|
+
status: string;
|
|
128
|
+
call_sid: string;
|
|
129
|
+
}>;
|
|
130
|
+
createBriefing(operatorId: string, body: {
|
|
131
|
+
call_sid: string;
|
|
132
|
+
}): Promise<{
|
|
133
|
+
call_sid: string;
|
|
134
|
+
operator_id: string;
|
|
135
|
+
sections: components["schemas"]["BriefingSection"][];
|
|
136
|
+
generated_at: string;
|
|
137
|
+
}>;
|
|
138
|
+
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
139
|
+
success: boolean;
|
|
140
|
+
}>;
|
|
141
|
+
getCallTranscript(callSid: string): Promise<{
|
|
142
|
+
call_entity_id: string;
|
|
143
|
+
call_sid: string | null;
|
|
144
|
+
total_segments: number;
|
|
145
|
+
segments: components["schemas"]["TranscriptSegment"][];
|
|
146
|
+
}>;
|
|
147
|
+
getAuditLog(params?: {
|
|
148
|
+
limit?: number;
|
|
149
|
+
offset?: number;
|
|
150
|
+
}): Promise<{
|
|
151
|
+
items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
|
|
152
|
+
has_more: boolean;
|
|
153
|
+
continuation_token?: number | null;
|
|
154
|
+
total?: number | null;
|
|
155
|
+
}>;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -0,0 +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;eA8J8yia,qBAAsB;;;;;IAtJt4ia,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;IAS3D,GAAG,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAQtB,YAAY;;mBAqIq5qS,qBAAsB;;2BAAsI,qBAAsB;4BAA+F,qBAAsB;;IA7HxsrS,QAAQ;;eA6Huxub,qBAAsB;;;IArHrzub,cAAc,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;eAqHwz+Z,qBAAsB;;;;;IA7G15+Z,oBAAoB;eA6Gu12Z,qBAAsB;;;;;IArGj42Z,kBAAkB,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;;;;iBAqG6ggV,qBAAsB;;;IA7FrmgV,cAAc,CAAC,MAAM,CAAC,EAAE;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACvB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;QAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B;;;;;;;;mBAuF608a,qBAAsB;;IA/E918a,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;;;IASpF,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC;;;;;;IAS3E,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;IAS7E,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC;;;IAS/E,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;IASnF,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;;;kBAkCkx3O,qBAAsB;;;IAzBr23O,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;IASvE,iBAAiB,CAAC,OAAO,EAAE,MAAM;;;;kBAgBiviP,qBAAsB;;IARxyiP,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;eAQo45Z,qBAAsB;;;;;CADz95Z"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import type { PersonaId } from '../core/branded-types.js';
|
|
3
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
4
|
+
import type { ListParams } from '../core/utils.js';
|
|
5
|
+
export interface ListPersonasParams extends ListParams {
|
|
6
|
+
search?: string | null;
|
|
7
|
+
sort_by?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class PersonasResource extends WorkspaceScopedResource {
|
|
10
|
+
list(params?: ListPersonasParams): Promise<{
|
|
11
|
+
items: components["schemas"]["PersonaResponse"][];
|
|
12
|
+
has_more: boolean;
|
|
13
|
+
continuation_token?: number | null;
|
|
14
|
+
total?: number | null;
|
|
15
|
+
}>;
|
|
16
|
+
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
workspace_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
role: string;
|
|
21
|
+
developed_by: string;
|
|
22
|
+
communication_style: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
default_language: string;
|
|
26
|
+
background: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
}>;
|
|
30
|
+
get(personaId: PersonaId | string): Promise<{
|
|
31
|
+
id: string;
|
|
32
|
+
workspace_id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
role: string;
|
|
35
|
+
developed_by: string;
|
|
36
|
+
communication_style: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
default_language: string;
|
|
40
|
+
background: string;
|
|
41
|
+
created_at: string;
|
|
42
|
+
updated_at: string;
|
|
43
|
+
}>;
|
|
44
|
+
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
45
|
+
id: string;
|
|
46
|
+
workspace_id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
role: string;
|
|
49
|
+
developed_by: string;
|
|
50
|
+
communication_style: {
|
|
51
|
+
[key: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
default_language: string;
|
|
54
|
+
background: string;
|
|
55
|
+
created_at: string;
|
|
56
|
+
updated_at: string;
|
|
57
|
+
}>;
|
|
58
|
+
delete(personaId: PersonaId | string): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=personas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;eA2Cwnra,qBAAsB;;;;;IAnC9qra,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;;IAQjC,MAAM,CACV,SAAS,EAAE,SAAS,GAAG,MAAM,EAC7B,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAU/C,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
2
|
import type { PhoneNumberId } from '../core/branded-types.js';
|
|
3
3
|
import { WorkspaceScopedResource } from './base.js';
|
|
4
4
|
import type { ListParams } from '../core/utils.js';
|
|
@@ -7,20 +7,80 @@ import type { ListParams } from '../core/utils.js';
|
|
|
7
7
|
* that are attached to agents for inbound/outbound calling.
|
|
8
8
|
*/
|
|
9
9
|
export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
10
|
-
/**
|
|
11
|
-
provision(body:
|
|
10
|
+
/** Create a new phone number */
|
|
11
|
+
provision(body: components['schemas']['CreatePhoneNumberRequest']): Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
phone_number: string;
|
|
15
|
+
display_name: string;
|
|
16
|
+
provider: string;
|
|
17
|
+
capabilities: string[];
|
|
18
|
+
status: string;
|
|
19
|
+
inbound_service_id: string | null;
|
|
20
|
+
provider_phone_sid: string | null;
|
|
21
|
+
notes: string;
|
|
22
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
23
|
+
created_at: string;
|
|
24
|
+
updated_at: string;
|
|
25
|
+
}>;
|
|
12
26
|
/** List phone numbers in the workspace */
|
|
13
|
-
list(params?: ListParams): Promise<
|
|
27
|
+
list(params?: ListParams): Promise<{
|
|
28
|
+
items: components["schemas"]["PhoneNumberResponse"][];
|
|
29
|
+
has_more: boolean;
|
|
30
|
+
continuation_token?: number | null;
|
|
31
|
+
total?: number | null;
|
|
32
|
+
}>;
|
|
14
33
|
/** Get a phone number */
|
|
15
|
-
get(phoneNumberId: PhoneNumberId | string): Promise<
|
|
34
|
+
get(phoneNumberId: PhoneNumberId | string): Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
workspace_id: string;
|
|
37
|
+
phone_number: string;
|
|
38
|
+
display_name: string;
|
|
39
|
+
provider: string;
|
|
40
|
+
capabilities: string[];
|
|
41
|
+
status: string;
|
|
42
|
+
inbound_service_id: string | null;
|
|
43
|
+
provider_phone_sid: string | null;
|
|
44
|
+
notes: string;
|
|
45
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
}>;
|
|
16
49
|
/** Update a phone number (assign to agent, rename) */
|
|
17
|
-
update(phoneNumberId: PhoneNumberId | string, body: UpdatePhoneNumberRequest): Promise<
|
|
50
|
+
update(phoneNumberId: PhoneNumberId | string, body: components['schemas']['UpdatePhoneNumberRequest']): Promise<{
|
|
51
|
+
id: string;
|
|
52
|
+
workspace_id: string;
|
|
53
|
+
phone_number: string;
|
|
54
|
+
display_name: string;
|
|
55
|
+
provider: string;
|
|
56
|
+
capabilities: string[];
|
|
57
|
+
status: string;
|
|
58
|
+
inbound_service_id: string | null;
|
|
59
|
+
provider_phone_sid: string | null;
|
|
60
|
+
notes: string;
|
|
61
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
62
|
+
created_at: string;
|
|
63
|
+
updated_at: string;
|
|
64
|
+
}>;
|
|
18
65
|
/** Release a phone number back to the carrier */
|
|
19
66
|
release(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
67
|
+
/** Set call forwarding for a phone number */
|
|
68
|
+
setForwarding(phoneNumberId: PhoneNumberId | string, body: components['schemas']['ForwardingConfigRequest']): Promise<{
|
|
69
|
+
id: string;
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
phone_number: string;
|
|
72
|
+
display_name: string;
|
|
73
|
+
provider: string;
|
|
74
|
+
capabilities: string[];
|
|
75
|
+
status: string;
|
|
76
|
+
inbound_service_id: string | null;
|
|
77
|
+
provider_phone_sid: string | null;
|
|
78
|
+
notes: string;
|
|
79
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
80
|
+
created_at: string;
|
|
81
|
+
updated_at: string;
|
|
24
82
|
}>;
|
|
83
|
+
/** Clear call forwarding for a phone number */
|
|
84
|
+
clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
25
85
|
}
|
|
26
86
|
//# sourceMappingURL=phone-numbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,gCAAgC;IAC1B,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;;;;;;;;oBAmE0hnb,qBAAsB;;;;IA1Dvnnb,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;eAyDm8pa,qBAAsB;;;;;IAjDv/pa,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;;;;;;;;;;;oBAgDkjnb,qBAAsB;;;;IAxCvnnb,sDAAsD;IAChD,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;;;;;;;;oBAqCwinb,qBAAsB;;;;IA3Bvnnb,iDAAiD;IAC3C,OAAO,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMnE,6CAA6C;IACvC,aAAa,CACjB,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;oBAiByinb,qBAAsB;;;;IAPvnnb,+CAA+C;IACzC,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
2
|
+
export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
3
|
+
getUrls(callSid: string): Promise<{
|
|
4
|
+
call_sid: string;
|
|
5
|
+
status?: "available";
|
|
6
|
+
inbound_url?: string | null;
|
|
7
|
+
outbound_url?: string | null;
|
|
8
|
+
metadata_url?: string | null;
|
|
9
|
+
}>;
|
|
10
|
+
getMetadata(callSid: string): Promise<{
|
|
11
|
+
call_sid: string;
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
service_id: string;
|
|
14
|
+
direction: string;
|
|
15
|
+
duration_seconds: number;
|
|
16
|
+
inbound_format: string;
|
|
17
|
+
inbound_sample_rate: number;
|
|
18
|
+
outbound_format: string;
|
|
19
|
+
outbound_sample_rate: number;
|
|
20
|
+
tts_provider: string;
|
|
21
|
+
call_start_iso: string;
|
|
22
|
+
call_end_iso: string;
|
|
23
|
+
inbound_size_bytes: number;
|
|
24
|
+
outbound_size_bytes: number;
|
|
25
|
+
media_start_epoch_ms: number;
|
|
26
|
+
}>;
|
|
27
|
+
download(callSid: string, filename: string): Promise<unknown>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=recordings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordings.d.ts","sourceRoot":"","sources":["../../../src/resources/recordings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,kBAAmB,SAAQ,uBAAuB;IACvD,OAAO,CAAC,OAAO,EAAE,MAAM;;;;;;;IAQvB,WAAW,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;IAQ3B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAOjD"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
import type { ListParams } from '../core/utils.js';
|
|
4
|
+
export interface ListReviewItemsParams extends ListParams {
|
|
5
|
+
status?: string | null;
|
|
6
|
+
entity_type?: string | null;
|
|
7
|
+
priority?: number | null;
|
|
8
|
+
reason?: string | null;
|
|
9
|
+
assigned_to?: string | null;
|
|
10
|
+
created_after?: string | null;
|
|
11
|
+
created_before?: string | null;
|
|
12
|
+
sort_by?: string | null;
|
|
13
|
+
sort_order?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ReviewHistoryParams extends ListParams {
|
|
16
|
+
action?: string | null;
|
|
17
|
+
reviewed_by?: string | null;
|
|
18
|
+
completed_after?: string | null;
|
|
19
|
+
completed_before?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare class ReviewQueueResource extends WorkspaceScopedResource {
|
|
22
|
+
list(params?: ListReviewItemsParams): Promise<{
|
|
23
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
24
|
+
has_more: boolean;
|
|
25
|
+
continuation_token?: number | null;
|
|
26
|
+
total?: number | null;
|
|
27
|
+
}>;
|
|
28
|
+
get(itemId: string): Promise<{
|
|
29
|
+
id: string;
|
|
30
|
+
workspace_id: string;
|
|
31
|
+
session_id: string;
|
|
32
|
+
event_ids: string[];
|
|
33
|
+
entity_id: string | null;
|
|
34
|
+
entity_type: string | null;
|
|
35
|
+
priority: number;
|
|
36
|
+
reason: string;
|
|
37
|
+
judge_analysis: {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
} | null;
|
|
40
|
+
status: string;
|
|
41
|
+
assigned_to: string | null;
|
|
42
|
+
created_at: string | null;
|
|
43
|
+
completed_at: string | null;
|
|
44
|
+
completed_action: string | null;
|
|
45
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
46
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
47
|
+
}>;
|
|
48
|
+
getStats(): Promise<{
|
|
49
|
+
pending: number;
|
|
50
|
+
completed: number;
|
|
51
|
+
rejected: number;
|
|
52
|
+
avg_review_minutes: number | null;
|
|
53
|
+
}>;
|
|
54
|
+
getDashboard(): Promise<{
|
|
55
|
+
stats: components["schemas"]["ReviewStatsResponse"];
|
|
56
|
+
pending_by_priority: {
|
|
57
|
+
[key: string]: number;
|
|
58
|
+
};
|
|
59
|
+
pending_by_reason: {
|
|
60
|
+
[key: string]: unknown;
|
|
61
|
+
}[];
|
|
62
|
+
recent_completed: components["schemas"]["ReviewItemResponse"][];
|
|
63
|
+
completion_rate_24h: number | null;
|
|
64
|
+
}>;
|
|
65
|
+
getMyQueue(params?: ListParams): Promise<{
|
|
66
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
67
|
+
has_more: boolean;
|
|
68
|
+
continuation_token?: number | null;
|
|
69
|
+
total?: number | null;
|
|
70
|
+
}>;
|
|
71
|
+
approve(itemId: string, body: components['schemas']['ApproveRequest']): Promise<{
|
|
72
|
+
id: string;
|
|
73
|
+
workspace_id: string;
|
|
74
|
+
session_id: string;
|
|
75
|
+
event_ids: string[];
|
|
76
|
+
entity_id: string | null;
|
|
77
|
+
entity_type: string | null;
|
|
78
|
+
priority: number;
|
|
79
|
+
reason: string;
|
|
80
|
+
judge_analysis: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
} | null;
|
|
83
|
+
status: string;
|
|
84
|
+
assigned_to: string | null;
|
|
85
|
+
created_at: string | null;
|
|
86
|
+
completed_at: string | null;
|
|
87
|
+
completed_action: string | null;
|
|
88
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
89
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
90
|
+
}>;
|
|
91
|
+
reject(itemId: string, body: components['schemas']['RejectRequest']): Promise<{
|
|
92
|
+
id: string;
|
|
93
|
+
workspace_id: string;
|
|
94
|
+
session_id: string;
|
|
95
|
+
event_ids: string[];
|
|
96
|
+
entity_id: string | null;
|
|
97
|
+
entity_type: string | null;
|
|
98
|
+
priority: number;
|
|
99
|
+
reason: string;
|
|
100
|
+
judge_analysis: {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
} | null;
|
|
103
|
+
status: string;
|
|
104
|
+
assigned_to: string | null;
|
|
105
|
+
created_at: string | null;
|
|
106
|
+
completed_at: string | null;
|
|
107
|
+
completed_action: string | null;
|
|
108
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
109
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
110
|
+
}>;
|
|
111
|
+
claim(itemId: string): Promise<{
|
|
112
|
+
id: string;
|
|
113
|
+
assigned_to: string;
|
|
114
|
+
status: string;
|
|
115
|
+
}>;
|
|
116
|
+
unclaim(itemId: string): Promise<{
|
|
117
|
+
id: string;
|
|
118
|
+
assigned_to: string;
|
|
119
|
+
status: string;
|
|
120
|
+
}>;
|
|
121
|
+
correct(itemId: string, body: components['schemas']['CorrectRequest']): Promise<{
|
|
122
|
+
id: string;
|
|
123
|
+
workspace_id: string;
|
|
124
|
+
session_id: string;
|
|
125
|
+
event_ids: string[];
|
|
126
|
+
entity_id: string | null;
|
|
127
|
+
entity_type: string | null;
|
|
128
|
+
priority: number;
|
|
129
|
+
reason: string;
|
|
130
|
+
judge_analysis: {
|
|
131
|
+
[key: string]: unknown;
|
|
132
|
+
} | null;
|
|
133
|
+
status: string;
|
|
134
|
+
assigned_to: string | null;
|
|
135
|
+
created_at: string | null;
|
|
136
|
+
completed_at: string | null;
|
|
137
|
+
completed_action: string | null;
|
|
138
|
+
events?: components["schemas"]["EventSummary"][] | null;
|
|
139
|
+
entity?: components["schemas"]["EntitySummary"] | null;
|
|
140
|
+
}>;
|
|
141
|
+
batchApprove(body: components['schemas']['BatchApproveRequest']): Promise<{
|
|
142
|
+
succeeded: string[];
|
|
143
|
+
failed: {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
}[];
|
|
146
|
+
}>;
|
|
147
|
+
batchReject(body: components['schemas']['BatchRejectRequest']): Promise<{
|
|
148
|
+
succeeded: string[];
|
|
149
|
+
failed: {
|
|
150
|
+
[key: string]: string;
|
|
151
|
+
}[];
|
|
152
|
+
}>;
|
|
153
|
+
getHistory(params?: ReviewHistoryParams): Promise<{
|
|
154
|
+
items: components["schemas"]["ReviewItemResponse"][];
|
|
155
|
+
has_more: boolean;
|
|
156
|
+
continuation_token?: number | null;
|
|
157
|
+
total?: number | null;
|
|
158
|
+
}>;
|
|
159
|
+
getTrends(params?: {
|
|
160
|
+
days?: number;
|
|
161
|
+
}): Promise<{
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
}>;
|
|
164
|
+
getPerformance(params?: {
|
|
165
|
+
days?: number;
|
|
166
|
+
}): Promise<{
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
}>;
|
|
169
|
+
getCorrectionSchema(itemId: string): Promise<{
|
|
170
|
+
fhir_resource_type: string | null;
|
|
171
|
+
fields: {
|
|
172
|
+
[key: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
current_values: {
|
|
175
|
+
[key: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
}>;
|
|
178
|
+
getDiff(itemId: string): Promise<{
|
|
179
|
+
item_id: string;
|
|
180
|
+
original_events: components["schemas"]["EventSummary"][];
|
|
181
|
+
corrected_events: components["schemas"]["EventSummary"][];
|
|
182
|
+
}>;
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=review-queue.d.ts.map
|