@amigo-ai/platform-sdk 0.2.1 → 0.4.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 +70 -6
- package/dist/core/errors.js +2 -3
- package/dist/core/errors.js.map +1 -1
- package/dist/core/webhooks.js +127 -13
- package/dist/core/webhooks.js.map +1 -1
- package/dist/index.cjs +123 -18
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +123 -18
- package/dist/index.mjs.map +2 -2
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/webhooks.d.ts +19 -1
- package/dist/types/core/webhooks.d.ts.map +1 -1
- package/dist/types/generated/api.d.ts +12694 -11729
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +83 -83
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +30 -30
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +12 -12
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +15 -15
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +11 -11
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +9 -9
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +31 -45
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +35 -35
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +47 -47
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +12 -12
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +43 -43
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +10 -10
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +53 -53
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +23 -23
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +38 -38
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +10 -10
- package/dist/types/resources/review-queue.d.ts +71 -71
- package/dist/types/resources/review-queue.d.ts.map +1 -1
- package/dist/types/resources/safety.d.ts +23 -23
- package/dist/types/resources/safety.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +50 -50
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +24 -24
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +12 -12
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +83 -83
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +55 -55
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +35 -35
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +26 -26
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +41 -41
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +36 -14
|
@@ -14,76 +14,76 @@ export interface ListIntegrationsParams extends ListParams {
|
|
|
14
14
|
export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
15
15
|
/** Create a new integration */
|
|
16
16
|
create(body: components['schemas']['CreateIntegrationRequest']): Promise<{
|
|
17
|
-
id: string;
|
|
18
|
-
workspace_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
display_name: string;
|
|
21
|
-
protocol: string;
|
|
22
|
-
base_url?: string;
|
|
23
17
|
auth?: components["schemas"]["AuthConfig"] | null;
|
|
24
|
-
|
|
25
|
-
enabled: boolean;
|
|
18
|
+
base_url?: string;
|
|
26
19
|
builtin?: boolean;
|
|
27
20
|
created_at: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
display_name: string;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
endpoints?: components["schemas"]["EndpointConfig"][];
|
|
24
|
+
id: string;
|
|
31
25
|
mcp_args?: string[] | null;
|
|
32
|
-
|
|
26
|
+
mcp_command?: string | null;
|
|
33
27
|
mcp_headers?: {
|
|
34
28
|
[key: string]: string;
|
|
35
29
|
} | null;
|
|
30
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null;
|
|
31
|
+
mcp_url?: string | null;
|
|
32
|
+
name: string;
|
|
33
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
34
|
+
updated_at: string;
|
|
35
|
+
workspace_id: string;
|
|
36
36
|
}>;
|
|
37
37
|
/** List integrations */
|
|
38
38
|
list(params?: ListIntegrationsParams): Promise<{
|
|
39
|
-
items: components["schemas"]["IntegrationResponse"][];
|
|
40
|
-
has_more: boolean;
|
|
41
39
|
continuation_token?: number | null;
|
|
40
|
+
has_more: boolean;
|
|
41
|
+
items: components["schemas"]["IntegrationResponse"][];
|
|
42
42
|
total?: number | null;
|
|
43
43
|
}>;
|
|
44
44
|
/** Get a single integration */
|
|
45
45
|
get(integrationId: IntegrationId | string): Promise<{
|
|
46
|
-
id: string;
|
|
47
|
-
workspace_id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
display_name: string;
|
|
50
|
-
protocol: string;
|
|
51
|
-
base_url?: string;
|
|
52
46
|
auth?: components["schemas"]["AuthConfig"] | null;
|
|
53
|
-
|
|
54
|
-
enabled: boolean;
|
|
47
|
+
base_url?: string;
|
|
55
48
|
builtin?: boolean;
|
|
56
49
|
created_at: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
display_name: string;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
endpoints?: components["schemas"]["EndpointConfig"][];
|
|
53
|
+
id: string;
|
|
60
54
|
mcp_args?: string[] | null;
|
|
61
|
-
|
|
55
|
+
mcp_command?: string | null;
|
|
62
56
|
mcp_headers?: {
|
|
63
57
|
[key: string]: string;
|
|
64
58
|
} | null;
|
|
59
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null;
|
|
60
|
+
mcp_url?: string | null;
|
|
61
|
+
name: string;
|
|
62
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
63
|
+
updated_at: string;
|
|
64
|
+
workspace_id: string;
|
|
65
65
|
}>;
|
|
66
66
|
/** Update integration configuration */
|
|
67
67
|
update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
|
|
68
|
-
id: string;
|
|
69
|
-
workspace_id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
display_name: string;
|
|
72
|
-
protocol: string;
|
|
73
|
-
base_url?: string;
|
|
74
68
|
auth?: components["schemas"]["AuthConfig"] | null;
|
|
75
|
-
|
|
76
|
-
enabled: boolean;
|
|
69
|
+
base_url?: string;
|
|
77
70
|
builtin?: boolean;
|
|
78
71
|
created_at: string;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
display_name: string;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
endpoints?: components["schemas"]["EndpointConfig"][];
|
|
75
|
+
id: string;
|
|
82
76
|
mcp_args?: string[] | null;
|
|
83
|
-
|
|
77
|
+
mcp_command?: string | null;
|
|
84
78
|
mcp_headers?: {
|
|
85
79
|
[key: string]: string;
|
|
86
80
|
} | null;
|
|
81
|
+
mcp_transport?: ("stdio" | "sse" | "http") | null;
|
|
82
|
+
mcp_url?: string | null;
|
|
83
|
+
name: string;
|
|
84
|
+
protocol: "rest" | "fhir" | "mcp";
|
|
85
|
+
updated_at: string;
|
|
86
|
+
workspace_id: string;
|
|
87
87
|
}>;
|
|
88
88
|
/** Delete an integration */
|
|
89
89
|
delete(integrationId: IntegrationId | string): Promise<void>;
|
|
@@ -92,14 +92,14 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
92
92
|
* Used in the developer console to validate integration config.
|
|
93
93
|
*/
|
|
94
94
|
testEndpoint(integrationId: IntegrationId | string, endpointName: string, body: components['schemas']['TestEndpointRequest']): Promise<{
|
|
95
|
-
status_code?: number | null;
|
|
96
|
-
duration_ms?: number;
|
|
97
|
-
retries?: number;
|
|
98
|
-
raw_response?: unknown;
|
|
99
95
|
after_filter?: unknown;
|
|
100
96
|
after_mapping?: unknown;
|
|
101
|
-
|
|
97
|
+
duration_ms?: number;
|
|
102
98
|
error?: string | null;
|
|
99
|
+
final_result?: string | null;
|
|
100
|
+
raw_response?: unknown;
|
|
101
|
+
retries?: number;
|
|
102
|
+
status_code?: number | null;
|
|
103
103
|
}>;
|
|
104
104
|
/** Check health of all integrations in the workspace */
|
|
105
105
|
getHealthCheck(): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/resources/integrations.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,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,+BAA+B;IACzB,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/resources/integrations.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,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,+BAA+B;IACzB,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;eAkF2imY,qBAAsB;;;;;;oBAA89B,qBAAsB;;;;;;;;;;;;;;IAzEznoY,wBAAwB;IAClB,IAAI,CAAC,MAAM,CAAC,EAAE,sBAAsB;;;eAwE6jub,qBAAsB;;;IAhE7nub,+BAA+B;IACzB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;eA+DgkmY,qBAAsB;;;;;;oBAA89B,qBAAsB;;;;;;;;;;;;;;IAvDznoY,uCAAuC;IACjC,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;eAoDsjmY,qBAAsB;;;;;;oBAA89B,qBAAsB;;;;;;;;;;;;;;IA1CznoY,4BAA4B;IACtB,MAAM,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMlE;;;OAGG;IACG,YAAY,CAChB,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;IAmBpD,wDAAwD;IAClD,cAAc;;;CAOrB"}
|
|
@@ -13,8 +13,8 @@ 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;
|
|
17
16
|
dimensions: import("../index.js").components["schemas"]["DimensionScore"][];
|
|
17
|
+
entity_id: string;
|
|
18
18
|
total_facts: number;
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
@@ -24,8 +24,8 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
24
24
|
dimension?: string;
|
|
25
25
|
limit?: number;
|
|
26
26
|
}): Promise<{
|
|
27
|
-
entity_id: string;
|
|
28
27
|
dimension: string | null;
|
|
28
|
+
entity_id: string;
|
|
29
29
|
facts: import("../index.js").components["schemas"]["MemoryFact"][];
|
|
30
30
|
total: number;
|
|
31
31
|
}>;
|
|
@@ -34,19 +34,19 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
34
34
|
* and fact ingestion trends.
|
|
35
35
|
*/
|
|
36
36
|
getAnalytics(): Promise<{
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
active_dimensions: number;
|
|
38
|
+
builtin_dimensions: number;
|
|
39
39
|
coverage_rate: number;
|
|
40
|
-
|
|
40
|
+
custom_dimensions: number;
|
|
41
41
|
dimensions: import("../index.js").components["schemas"]["DimensionAnalytics"][];
|
|
42
|
-
top_sources: import("../index.js").components["schemas"]["TopSource"][];
|
|
43
42
|
facts_last_24h: number;
|
|
44
|
-
facts_last_7d: number;
|
|
45
43
|
facts_last_30d: number;
|
|
46
|
-
|
|
47
|
-
builtin_dimensions: number;
|
|
48
|
-
custom_dimensions: number;
|
|
44
|
+
facts_last_7d: number;
|
|
49
45
|
llm_dimensions: number;
|
|
46
|
+
top_sources: import("../index.js").components["schemas"]["TopSource"][];
|
|
47
|
+
total_entities_in_workspace: number;
|
|
48
|
+
total_entities_with_memory: number;
|
|
49
|
+
total_facts: number;
|
|
50
50
|
}>;
|
|
51
51
|
}
|
|
52
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,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD;;;OAGG;IACG,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM
|
|
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;oBAqC+koU,2CAAsB;;;;IA7B1poU;;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;;;eAwB+h0Z,2CAAsB;;;IAZtm0Z;;;OAGG;IACG,YAAY;;;;;oBAQ0gtZ,2CAAsB;;;;;qBAAuW,2CAAsB;;;;;CADh7tZ"}
|
|
@@ -6,86 +6,86 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
6
6
|
limit?: number;
|
|
7
7
|
offset?: number;
|
|
8
8
|
}): Promise<{
|
|
9
|
-
items: components["schemas"]["OperatorResponse"][];
|
|
10
|
-
has_more: boolean;
|
|
11
9
|
continuation_token?: number | null;
|
|
10
|
+
has_more: boolean;
|
|
11
|
+
items: components["schemas"]["OperatorResponse"][];
|
|
12
12
|
total?: number | null;
|
|
13
13
|
}>;
|
|
14
14
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
15
|
+
active_call_sid: string | null;
|
|
16
|
+
avg_handle_time_seconds: number;
|
|
17
|
+
connection_method: "browser" | "phone";
|
|
18
|
+
created_at: string;
|
|
19
|
+
email: string | null;
|
|
15
20
|
id: string;
|
|
16
|
-
|
|
21
|
+
last_call_at: string | null;
|
|
22
|
+
last_status_change: string | null;
|
|
17
23
|
name: string | null;
|
|
18
|
-
email: string | null;
|
|
19
|
-
type: string | null;
|
|
20
|
-
skills: string[];
|
|
21
|
-
connection_method: string;
|
|
22
24
|
phone_number: string | null;
|
|
23
|
-
role:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
active_call_sid: string | null;
|
|
25
|
+
role: "operator" | "supervisor" | "admin";
|
|
26
|
+
skills: string[];
|
|
27
|
+
status: "online" | "busy" | "offline";
|
|
27
28
|
total_escalations_handled: number;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
updated_at: string | null;
|
|
29
|
+
type: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
30
|
+
updated_at: string;
|
|
31
|
+
workspace_id: string;
|
|
32
32
|
}>;
|
|
33
33
|
get(operatorId: string): Promise<{
|
|
34
|
+
active_call_sid: string | null;
|
|
35
|
+
avg_handle_time_seconds: number;
|
|
36
|
+
connection_method: "browser" | "phone";
|
|
37
|
+
created_at: string;
|
|
38
|
+
email: string | null;
|
|
34
39
|
id: string;
|
|
35
|
-
|
|
40
|
+
last_call_at: string | null;
|
|
41
|
+
last_status_change: string | null;
|
|
36
42
|
name: string | null;
|
|
37
|
-
email: string | null;
|
|
38
|
-
type: string | null;
|
|
39
|
-
skills: string[];
|
|
40
|
-
connection_method: string;
|
|
41
43
|
phone_number: string | null;
|
|
42
|
-
role:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
active_call_sid: string | null;
|
|
44
|
+
role: "operator" | "supervisor" | "admin";
|
|
45
|
+
skills: string[];
|
|
46
|
+
status: "online" | "busy" | "offline";
|
|
46
47
|
total_escalations_handled: number;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
updated_at: string | null;
|
|
48
|
+
type: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
workspace_id: string;
|
|
51
51
|
}>;
|
|
52
52
|
getDashboard(): Promise<{
|
|
53
|
-
workspace_id: string;
|
|
54
|
-
operators: components["schemas"]["OperatorStatusCounts"];
|
|
55
53
|
active_escalations: number;
|
|
56
54
|
escalations_today: components["schemas"]["EscalationDailyStats"];
|
|
55
|
+
operators: components["schemas"]["OperatorStatusCounts"];
|
|
57
56
|
recent_escalations: components["schemas"]["ActiveEscalationItem"][];
|
|
57
|
+
workspace_id: string;
|
|
58
58
|
}>;
|
|
59
59
|
getQueue(): Promise<{
|
|
60
|
-
workspace_id: string;
|
|
61
60
|
queue: components["schemas"]["PriorityQueueItem"][];
|
|
62
61
|
total_active: number;
|
|
62
|
+
workspace_id: string;
|
|
63
63
|
}>;
|
|
64
64
|
getEscalations(params?: {
|
|
65
65
|
status?: string;
|
|
66
66
|
limit?: number;
|
|
67
67
|
offset?: number;
|
|
68
68
|
}): Promise<{
|
|
69
|
-
items: components["schemas"]["EscalationEventResponse"][];
|
|
70
|
-
has_more: boolean;
|
|
71
69
|
continuation_token?: number | null;
|
|
70
|
+
has_more: boolean;
|
|
71
|
+
items: components["schemas"]["EscalationEventResponse"][];
|
|
72
72
|
total?: number | null;
|
|
73
73
|
}>;
|
|
74
74
|
getActiveEscalations(): Promise<{
|
|
75
|
-
items: components["schemas"]["ActiveEscalationItem"][];
|
|
76
|
-
has_more: boolean;
|
|
77
75
|
continuation_token?: number | null;
|
|
76
|
+
has_more: boolean;
|
|
77
|
+
items: components["schemas"]["ActiveEscalationItem"][];
|
|
78
78
|
total?: number | null;
|
|
79
79
|
}>;
|
|
80
80
|
getEscalationStats(params?: {
|
|
81
81
|
period?: string;
|
|
82
82
|
group_by?: string;
|
|
83
83
|
}): Promise<{
|
|
84
|
-
workspace_id: string;
|
|
85
|
-
period: string;
|
|
86
|
-
group_by: string;
|
|
87
84
|
buckets: components["schemas"]["EscalationStatsBucket"][];
|
|
85
|
+
group_by: string;
|
|
86
|
+
period: string;
|
|
88
87
|
total: number;
|
|
88
|
+
workspace_id: string;
|
|
89
89
|
}>;
|
|
90
90
|
getPerformance(params?: {
|
|
91
91
|
days?: number;
|
|
@@ -94,46 +94,46 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
94
94
|
interval?: '1h' | '1d' | '1w';
|
|
95
95
|
service_id?: string | null;
|
|
96
96
|
}): Promise<{
|
|
97
|
-
|
|
98
|
-
total_operators: number;
|
|
99
|
-
online: number;
|
|
97
|
+
avg_handle_time_seconds: number;
|
|
100
98
|
busy: number;
|
|
101
99
|
offline: number;
|
|
102
|
-
|
|
103
|
-
avg_handle_time_seconds: number;
|
|
100
|
+
online: number;
|
|
104
101
|
operators: components["schemas"]["OperatorPerformanceItem"][];
|
|
102
|
+
total_escalations_handled: number;
|
|
103
|
+
total_operators: number;
|
|
104
|
+
workspace_id: string;
|
|
105
105
|
}>;
|
|
106
106
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
107
|
-
token: string;
|
|
108
|
-
identity: string;
|
|
109
107
|
conference_sid: string;
|
|
110
108
|
connect_params?: {
|
|
111
109
|
[key: string]: string;
|
|
112
110
|
};
|
|
111
|
+
identity: string;
|
|
112
|
+
token: string;
|
|
113
113
|
}>;
|
|
114
114
|
joinCall(operatorId: string, body: components['schemas']['JoinCallRequest']): Promise<{
|
|
115
|
-
participant_call_sid: string;
|
|
116
115
|
conference_sid: string;
|
|
117
|
-
mode:
|
|
116
|
+
mode: "listen" | "takeover";
|
|
118
117
|
operator_entity_id: string;
|
|
118
|
+
participant_call_sid: string;
|
|
119
119
|
}>;
|
|
120
120
|
leaveCall(operatorId: string, body: components['schemas']['LeaveCallRequest']): Promise<{
|
|
121
121
|
success: boolean;
|
|
122
122
|
}>;
|
|
123
123
|
switchMode(operatorId: string, body: components['schemas']['SwitchModeRequest']): Promise<{
|
|
124
|
-
mode:
|
|
124
|
+
mode: "listen" | "takeover";
|
|
125
125
|
}>;
|
|
126
126
|
sendGuidance(operatorId: string, body: components['schemas']['SendGuidanceRequest']): Promise<{
|
|
127
|
-
status: string;
|
|
128
127
|
call_sid: string;
|
|
128
|
+
status: "delivered" | "failed";
|
|
129
129
|
}>;
|
|
130
130
|
createBriefing(operatorId: string, body: {
|
|
131
131
|
call_sid: string;
|
|
132
132
|
}): Promise<{
|
|
133
133
|
call_sid: string;
|
|
134
|
+
generated_at: string;
|
|
134
135
|
operator_id: string;
|
|
135
136
|
sections: components["schemas"]["BriefingSection"][];
|
|
136
|
-
generated_at: string;
|
|
137
137
|
}>;
|
|
138
138
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
139
139
|
success: boolean;
|
|
@@ -141,16 +141,16 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
141
141
|
getCallTranscript(callSid: string): Promise<{
|
|
142
142
|
call_entity_id: string;
|
|
143
143
|
call_sid: string | null;
|
|
144
|
-
total_segments: number;
|
|
145
144
|
segments: components["schemas"]["TranscriptSegment"][];
|
|
145
|
+
total_segments: number;
|
|
146
146
|
}>;
|
|
147
147
|
getAuditLog(params?: {
|
|
148
148
|
limit?: number;
|
|
149
149
|
offset?: number;
|
|
150
150
|
}): Promise<{
|
|
151
|
-
items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
|
|
152
|
-
has_more: boolean;
|
|
153
151
|
continuation_token?: number | null;
|
|
152
|
+
has_more: boolean;
|
|
153
|
+
items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
|
|
154
154
|
total?: number | null;
|
|
155
155
|
}>;
|
|
156
156
|
}
|
|
@@ -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
|
|
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;;;eA8Jm+sb,qBAAsB;;;IAtJ3jtb,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;IAS3D,GAAG,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAQtB,YAAY;;2BAqI+k9S,qBAAsB;mBAAgD,qBAAsB;4BAA+F,qBAAsB;;;IA7H5y9S,QAAQ;eA6Hik6c,qBAAsB;;;;IArH/l6c,cAAc,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;eAqH6+ob,qBAAsB;;;IA7G/kpb,oBAAoB;;;eA6G4ghb,qBAAsB;;;IArGtjhb,kBAAkB,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;iBAqGom2V,qBAAsB;;;;;;IA7F5r2V,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;;;;;mBAuFmlmc,qBAAsB;;;;;IA/Epmmc,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;;;;kBAkC8i9O,qBAAsB;;IAzBjo9O,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;IASvE,iBAAiB,CAAC,OAAO,EAAE,MAAM;;;kBAgBu4sP,qBAAsB;;;IAR97sP,WAAW,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;;;eAQyjkb,qBAAsB;;;CAD9okb"}
|
|
@@ -8,52 +8,52 @@ export interface ListPersonasParams extends ListParams {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class PersonasResource extends WorkspaceScopedResource {
|
|
10
10
|
list(params?: ListPersonasParams): Promise<{
|
|
11
|
-
items: components["schemas"]["PersonaResponse"][];
|
|
12
|
-
has_more: boolean;
|
|
13
11
|
continuation_token?: number | null;
|
|
12
|
+
has_more: boolean;
|
|
13
|
+
items: components["schemas"]["PersonaResponse"][];
|
|
14
14
|
total?: number | null;
|
|
15
15
|
}>;
|
|
16
16
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
17
|
-
|
|
18
|
-
workspace_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
role: string;
|
|
21
|
-
developed_by: string;
|
|
17
|
+
background: string;
|
|
22
18
|
communication_style: {
|
|
23
19
|
[key: string]: unknown;
|
|
24
20
|
};
|
|
25
|
-
default_language: string;
|
|
26
|
-
background: string;
|
|
27
21
|
created_at: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
get(personaId: PersonaId | string): Promise<{
|
|
22
|
+
default_language: string;
|
|
23
|
+
developed_by: string;
|
|
31
24
|
id: string;
|
|
32
|
-
workspace_id: string;
|
|
33
25
|
name: string;
|
|
34
26
|
role: string;
|
|
35
|
-
|
|
27
|
+
updated_at: string;
|
|
28
|
+
workspace_id: string;
|
|
29
|
+
}>;
|
|
30
|
+
get(personaId: PersonaId | string): Promise<{
|
|
31
|
+
background: string;
|
|
36
32
|
communication_style: {
|
|
37
33
|
[key: string]: unknown;
|
|
38
34
|
};
|
|
39
|
-
default_language: string;
|
|
40
|
-
background: string;
|
|
41
35
|
created_at: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
36
|
+
default_language: string;
|
|
37
|
+
developed_by: string;
|
|
45
38
|
id: string;
|
|
46
|
-
workspace_id: string;
|
|
47
39
|
name: string;
|
|
48
40
|
role: string;
|
|
49
|
-
|
|
41
|
+
updated_at: string;
|
|
42
|
+
workspace_id: string;
|
|
43
|
+
}>;
|
|
44
|
+
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
45
|
+
background: string;
|
|
50
46
|
communication_style: {
|
|
51
47
|
[key: string]: unknown;
|
|
52
48
|
};
|
|
53
|
-
default_language: string;
|
|
54
|
-
background: string;
|
|
55
49
|
created_at: string;
|
|
50
|
+
default_language: string;
|
|
51
|
+
developed_by: string;
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
role: string;
|
|
56
55
|
updated_at: string;
|
|
56
|
+
workspace_id: string;
|
|
57
57
|
}>;
|
|
58
58
|
delete(personaId: PersonaId | string): Promise<void>;
|
|
59
59
|
}
|
|
@@ -1 +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
|
|
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;;;eA2C6y1b,qBAAsB;;;IAnCn21b,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"}
|
|
@@ -9,76 +9,76 @@ import type { ListParams } from '../core/utils.js';
|
|
|
9
9
|
export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
10
10
|
/** Create a new phone number */
|
|
11
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
12
|
capabilities: string[];
|
|
18
|
-
|
|
13
|
+
created_at: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
16
|
+
id: string;
|
|
19
17
|
inbound_service_id: string | null;
|
|
20
|
-
provider_phone_sid: string | null;
|
|
21
18
|
notes: string;
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
phone_number: string;
|
|
20
|
+
provider: "twilio" | "livekit";
|
|
21
|
+
provider_phone_sid: string | null;
|
|
22
|
+
status: "active" | "inactive";
|
|
24
23
|
updated_at: string;
|
|
24
|
+
workspace_id: string;
|
|
25
25
|
}>;
|
|
26
26
|
/** List phone numbers in the workspace */
|
|
27
27
|
list(params?: ListParams): Promise<{
|
|
28
|
-
items: components["schemas"]["PhoneNumberResponse"][];
|
|
29
|
-
has_more: boolean;
|
|
30
28
|
continuation_token?: number | null;
|
|
29
|
+
has_more: boolean;
|
|
30
|
+
items: components["schemas"]["PhoneNumberResponse"][];
|
|
31
31
|
total?: number | null;
|
|
32
32
|
}>;
|
|
33
33
|
/** Get a phone number */
|
|
34
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
35
|
capabilities: string[];
|
|
41
|
-
|
|
36
|
+
created_at: string;
|
|
37
|
+
display_name: string;
|
|
38
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
39
|
+
id: string;
|
|
42
40
|
inbound_service_id: string | null;
|
|
43
|
-
provider_phone_sid: string | null;
|
|
44
41
|
notes: string;
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
phone_number: string;
|
|
43
|
+
provider: "twilio" | "livekit";
|
|
44
|
+
provider_phone_sid: string | null;
|
|
45
|
+
status: "active" | "inactive";
|
|
47
46
|
updated_at: string;
|
|
47
|
+
workspace_id: string;
|
|
48
48
|
}>;
|
|
49
49
|
/** Update a phone number (assign to agent, rename) */
|
|
50
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
51
|
capabilities: string[];
|
|
57
|
-
|
|
52
|
+
created_at: string;
|
|
53
|
+
display_name: string;
|
|
54
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
55
|
+
id: string;
|
|
58
56
|
inbound_service_id: string | null;
|
|
59
|
-
provider_phone_sid: string | null;
|
|
60
57
|
notes: string;
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
phone_number: string;
|
|
59
|
+
provider: "twilio" | "livekit";
|
|
60
|
+
provider_phone_sid: string | null;
|
|
61
|
+
status: "active" | "inactive";
|
|
63
62
|
updated_at: string;
|
|
63
|
+
workspace_id: string;
|
|
64
64
|
}>;
|
|
65
65
|
/** Release a phone number back to the carrier */
|
|
66
66
|
release(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
67
67
|
/** Set call forwarding for a phone number */
|
|
68
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
69
|
capabilities: string[];
|
|
75
|
-
|
|
70
|
+
created_at: string;
|
|
71
|
+
display_name: string;
|
|
72
|
+
forwarding: components["schemas"]["ForwardingConfigResponse"] | null;
|
|
73
|
+
id: string;
|
|
76
74
|
inbound_service_id: string | null;
|
|
77
|
-
provider_phone_sid: string | null;
|
|
78
75
|
notes: string;
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
phone_number: string;
|
|
77
|
+
provider: "twilio" | "livekit";
|
|
78
|
+
provider_phone_sid: string | null;
|
|
79
|
+
status: "active" | "inactive";
|
|
81
80
|
updated_at: string;
|
|
81
|
+
workspace_id: string;
|
|
82
82
|
}>;
|
|
83
83
|
/** Clear call forwarding for a phone number */
|
|
84
84
|
clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;oBAmEwkxc,qBAAsB;;;;;;;;;;;IA1Drqxc,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;eAyDwn0b,qBAAsB;;;IAjD5q0b,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;;;;oBAgDgmxc,qBAAsB;;;;;;;;;;;IAxCrqxc,sDAAsD;IAChD,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;oBAqCslxc,qBAAsB;;;;;;;;;;;IA3Brqxc,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;;;;oBAiBulxc,qBAAsB;;;;;;;;;;;IAPrqxc,+CAA+C;IACzC,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5E"}
|
|
@@ -2,27 +2,27 @@ import { WorkspaceScopedResource } from './base.js';
|
|
|
2
2
|
export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
3
3
|
getUrls(callSid: string): Promise<{
|
|
4
4
|
call_sid: string;
|
|
5
|
-
status?: "available";
|
|
6
5
|
inbound_url?: string | null;
|
|
7
|
-
outbound_url?: string | null;
|
|
8
6
|
metadata_url?: string | null;
|
|
7
|
+
outbound_url?: string | null;
|
|
8
|
+
status?: "available";
|
|
9
9
|
}>;
|
|
10
10
|
getMetadata(callSid: string): Promise<{
|
|
11
|
+
call_end_iso: string;
|
|
11
12
|
call_sid: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
direction: string;
|
|
13
|
+
call_start_iso: string;
|
|
14
|
+
direction: "inbound" | "outbound";
|
|
15
15
|
duration_seconds: number;
|
|
16
16
|
inbound_format: string;
|
|
17
17
|
inbound_sample_rate: number;
|
|
18
|
+
inbound_size_bytes: number;
|
|
19
|
+
media_start_epoch_ms: number;
|
|
18
20
|
outbound_format: string;
|
|
19
21
|
outbound_sample_rate: number;
|
|
20
|
-
tts_provider: string;
|
|
21
|
-
call_start_iso: string;
|
|
22
|
-
call_end_iso: string;
|
|
23
|
-
inbound_size_bytes: number;
|
|
24
22
|
outbound_size_bytes: number;
|
|
25
|
-
|
|
23
|
+
service_id: string;
|
|
24
|
+
tts_provider: string;
|
|
25
|
+
workspace_id: string;
|
|
26
26
|
}>;
|
|
27
27
|
download(callSid: string, filename: string): Promise<unknown>;
|
|
28
28
|
}
|