@amigo-ai/platform-sdk 0.4.1 → 0.4.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 +111 -0
- package/api.md +347 -0
- package/dist/core/errors.js +26 -4
- package/dist/core/errors.js.map +1 -1
- package/dist/core/openapi-client.js +164 -28
- package/dist/core/openapi-client.js.map +1 -1
- package/dist/core/request-options.js +80 -0
- package/dist/core/request-options.js.map +1 -0
- package/dist/core/retry.js +5 -2
- package/dist/core/retry.js.map +1 -1
- package/dist/core/utils.js +48 -2
- package/dist/core/utils.js.map +1 -1
- package/dist/core/webhooks.js +9 -0
- package/dist/core/webhooks.js.map +1 -1
- package/dist/index.cjs +538 -84
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +113 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +538 -84
- package/dist/index.mjs.map +4 -4
- package/dist/resources/base.js +33 -0
- package/dist/resources/base.js.map +1 -1
- package/dist/types/core/errors.d.ts +6 -0
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/openapi-client.d.ts +26 -1
- package/dist/types/core/openapi-client.d.ts.map +1 -1
- package/dist/types/core/request-options.d.ts +66 -0
- package/dist/types/core/request-options.d.ts.map +1 -0
- package/dist/types/core/retry.d.ts +1 -1
- package/dist/types/core/retry.d.ts.map +1 -1
- package/dist/types/core/utils.d.ts +27 -1
- package/dist/types/core/utils.d.ts.map +1 -1
- package/dist/types/core/webhooks.d.ts.map +1 -1
- package/dist/types/index.d.ts +31 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +5 -5
- package/dist/types/resources/agents.d.ts +7 -7
- package/dist/types/resources/analytics.d.ts +11 -11
- package/dist/types/resources/api-keys.d.ts +4 -4
- package/dist/types/resources/audit.d.ts +6 -6
- package/dist/types/resources/base.d.ts +8 -3
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +6 -6
- package/dist/types/resources/calls.d.ts +6 -6
- package/dist/types/resources/compliance.d.ts +3 -3
- package/dist/types/resources/context-graphs.d.ts +7 -7
- package/dist/types/resources/data-sources.d.ts +6 -6
- package/dist/types/resources/functions.d.ts +6 -6
- package/dist/types/resources/integrations.d.ts +6 -6
- package/dist/types/resources/memory.d.ts +3 -3
- package/dist/types/resources/operators.d.ts +18 -18
- package/dist/types/resources/personas.d.ts +4 -4
- package/dist/types/resources/phone-numbers.d.ts +5 -5
- package/dist/types/resources/recordings.d.ts +2 -2
- package/dist/types/resources/review-queue.d.ts +17 -17
- package/dist/types/resources/safety.d.ts +5 -5
- package/dist/types/resources/services.d.ts +4 -4
- package/dist/types/resources/settings.d.ts +14 -14
- package/dist/types/resources/simulations.d.ts +6 -6
- package/dist/types/resources/skills.d.ts +5 -5
- package/dist/types/resources/triggers.d.ts +8 -8
- package/dist/types/resources/webhook-destinations.d.ts +6 -6
- package/dist/types/resources/workspaces.d.ts +5 -5
- package/dist/types/resources/world.d.ts +18 -18
- package/package.json +6 -2
|
@@ -32,7 +32,7 @@ export declare class AuditResource extends WorkspaceScopedResource {
|
|
|
32
32
|
limit: number;
|
|
33
33
|
offset: number;
|
|
34
34
|
total: number;
|
|
35
|
-
}>;
|
|
35
|
+
} & import("../index.js").ResponseMetadata>;
|
|
36
36
|
getSummary(params?: {
|
|
37
37
|
date_from?: string | null;
|
|
38
38
|
date_to?: string | null;
|
|
@@ -41,30 +41,30 @@ export declare class AuditResource extends WorkspaceScopedResource {
|
|
|
41
41
|
services_with_events: number;
|
|
42
42
|
total_events: number;
|
|
43
43
|
unique_actors: number;
|
|
44
|
-
}>;
|
|
44
|
+
} & import("../index.js").ResponseMetadata>;
|
|
45
45
|
getPhiAccess(params?: PhiAccessParams): Promise<{
|
|
46
46
|
events: components["schemas"]["src__routes__audit__AuditEventResponse"][];
|
|
47
47
|
has_more: boolean;
|
|
48
48
|
limit: number;
|
|
49
49
|
offset: number;
|
|
50
50
|
total: number;
|
|
51
|
-
}>;
|
|
51
|
+
} & import("../index.js").ResponseMetadata>;
|
|
52
52
|
createExport(body: components['schemas']['AuditExportRequest']): Promise<{
|
|
53
53
|
created_at: string;
|
|
54
54
|
download_url: string;
|
|
55
55
|
export_id: string;
|
|
56
56
|
row_count: number;
|
|
57
57
|
s3_key: string;
|
|
58
|
-
}>;
|
|
58
|
+
} & import("../index.js").ResponseMetadata>;
|
|
59
59
|
listExports(): Promise<{
|
|
60
60
|
exports: components["schemas"]["AuditExportListItem"][];
|
|
61
|
-
}>;
|
|
61
|
+
} & import("../index.js").ResponseMetadata>;
|
|
62
62
|
getEntityAccessLog(entityId: string, params?: EntityAccessLogParams): Promise<{
|
|
63
63
|
events: components["schemas"]["src__routes__audit__AuditEventResponse"][];
|
|
64
64
|
has_more: boolean;
|
|
65
65
|
limit: number;
|
|
66
66
|
offset: number;
|
|
67
67
|
total: number;
|
|
68
|
-
}>;
|
|
68
|
+
} & import("../index.js").ResponseMetadata>;
|
|
69
69
|
}
|
|
70
70
|
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -5,14 +5,19 @@
|
|
|
5
5
|
* injected from AmigoClient. Resources call typed HTTP methods that
|
|
6
6
|
* flow through the middleware chain automatically.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
9
|
-
import type
|
|
8
|
+
import { type PlatformFetch } from '../core/openapi-client.js';
|
|
9
|
+
import { type ScopedRequestOptions } from '../core/request-options.js';
|
|
10
10
|
import { extractData } from '../core/utils.js';
|
|
11
|
-
export type PlatformFetch = Client<paths>;
|
|
12
11
|
export declare abstract class WorkspaceScopedResource {
|
|
13
12
|
protected readonly client: PlatformFetch;
|
|
14
13
|
protected readonly workspaceId: string;
|
|
15
14
|
constructor(client: PlatformFetch, workspaceId: string);
|
|
15
|
+
withOptions(options: ScopedRequestOptions): this;
|
|
16
16
|
}
|
|
17
|
+
export declare function scopePlatformClient(client: PlatformFetch, options: ScopedRequestOptions): PlatformFetch;
|
|
18
|
+
export declare function resolveScopedPlatformClient(client: PlatformFetch): {
|
|
19
|
+
baseClient: PlatformFetch;
|
|
20
|
+
options: ScopedRequestOptions | undefined;
|
|
21
|
+
};
|
|
17
22
|
export { extractData };
|
|
18
23
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/resources/base.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/resources/base.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC3F,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAO9C,8BAAsB,uBAAuB;IAEzC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa;IACxC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM;gBADnB,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM;IAGxC,WAAW,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;CAOjD;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,CAoFf;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,aAAa,GAAG;IAClE,UAAU,EAAE,aAAa,CAAA;IACzB,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,CAMA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -27,11 +27,11 @@ export declare class BillingResource extends WorkspaceScopedResource {
|
|
|
27
27
|
previous_period_total: number | null;
|
|
28
28
|
top_meters: import("../index.js").components["schemas"]["MeterSummary"][];
|
|
29
29
|
workspace_id: string;
|
|
30
|
-
}>;
|
|
30
|
+
} & import("../index.js").ResponseMetadata>;
|
|
31
31
|
/** Get usage summary for the workspace */
|
|
32
32
|
getUsage(): Promise<{
|
|
33
33
|
[key: string]: unknown;
|
|
34
|
-
}>;
|
|
34
|
+
} & import("../index.js").ResponseMetadata>;
|
|
35
35
|
/** Get usage time-series per meter for trend charts */
|
|
36
36
|
getUsageTrends(params?: UsageTrendsParams): Promise<{
|
|
37
37
|
meter_key: string;
|
|
@@ -39,21 +39,21 @@ export declare class BillingResource extends WorkspaceScopedResource {
|
|
|
39
39
|
period_start: string;
|
|
40
40
|
unit: string;
|
|
41
41
|
value: number;
|
|
42
|
-
}[]>;
|
|
42
|
+
}[] & import("../index.js").ResponseMetadata>;
|
|
43
43
|
/** List invoices for the workspace */
|
|
44
44
|
listInvoices(params?: ListInvoicesParams): Promise<{
|
|
45
45
|
continuation_token?: number | null;
|
|
46
46
|
has_more: boolean;
|
|
47
47
|
items: import("../index.js").components["schemas"]["InvoiceItem"][];
|
|
48
48
|
total?: number | null;
|
|
49
|
-
}>;
|
|
49
|
+
} & import("../index.js").ResponseMetadata>;
|
|
50
50
|
/** Get invoice detail */
|
|
51
51
|
getInvoice(invoiceId: string): Promise<{
|
|
52
52
|
[key: string]: unknown;
|
|
53
|
-
}>;
|
|
53
|
+
} & import("../index.js").ResponseMetadata>;
|
|
54
54
|
/** Get presigned S3 URL for invoice PDF download */
|
|
55
55
|
getInvoicePdf(invoiceId: string): Promise<{
|
|
56
56
|
[key: string]: unknown;
|
|
57
|
-
}>;
|
|
57
|
+
} & import("../index.js").ResponseMetadata>;
|
|
58
58
|
}
|
|
59
59
|
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -22,11 +22,11 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
22
22
|
has_more: boolean;
|
|
23
23
|
items: import("../index.js").components["schemas"]["CallSummary"][];
|
|
24
24
|
total: number;
|
|
25
|
-
}>;
|
|
25
|
+
} & import("../index.js").ResponseMetadata>;
|
|
26
26
|
/** Get full call detail including turns, escalation, safety, and recording info */
|
|
27
27
|
get(callId: string): Promise<{
|
|
28
28
|
[key: string]: unknown;
|
|
29
|
-
}>;
|
|
29
|
+
} & import("../index.js").ResponseMetadata>;
|
|
30
30
|
/** Get AI intelligence for a call */
|
|
31
31
|
getIntelligence(callId: string): Promise<{
|
|
32
32
|
call_id: string;
|
|
@@ -46,11 +46,11 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
46
46
|
risk_summary?: import("../index.js").components["schemas"]["RiskSummary"] | null;
|
|
47
47
|
safety_summary?: import("../index.js").components["schemas"]["SafetySummary"] | null;
|
|
48
48
|
tool_summary?: import("../index.js").components["schemas"]["ToolSummary"] | null;
|
|
49
|
-
}>;
|
|
49
|
+
} & import("../index.js").ResponseMetadata>;
|
|
50
50
|
/** Get active intelligence across all in-progress calls */
|
|
51
51
|
getActiveIntelligence(): Promise<{
|
|
52
52
|
[key: string]: unknown;
|
|
53
|
-
}[]>;
|
|
53
|
+
}[] & import("../index.js").ResponseMetadata>;
|
|
54
54
|
/** Get performance benchmarks for a time period */
|
|
55
55
|
getBenchmarks(params?: {
|
|
56
56
|
days?: number;
|
|
@@ -65,7 +65,7 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
65
65
|
[key: string]: number;
|
|
66
66
|
};
|
|
67
67
|
total_calls?: number;
|
|
68
|
-
}>;
|
|
68
|
+
} & import("../index.js").ResponseMetadata>;
|
|
69
69
|
/** Get deep call trace analysis */
|
|
70
70
|
getTraceAnalysis(callId: string): Promise<{
|
|
71
71
|
call_entity_id?: string | null;
|
|
@@ -85,6 +85,6 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
85
85
|
signal_response_alignment?: import("../index.js").components["schemas"]["SignalResponseAlignment"][];
|
|
86
86
|
status?: "ready" | "pending" | "unavailable";
|
|
87
87
|
summary?: string | null;
|
|
88
|
-
}>;
|
|
88
|
+
} & import("../index.js").ResponseMetadata>;
|
|
89
89
|
}
|
|
90
90
|
//# sourceMappingURL=calls.d.ts.map
|
|
@@ -8,7 +8,7 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
|
|
|
8
8
|
legal_hold: boolean;
|
|
9
9
|
retention_days: number | null;
|
|
10
10
|
total_credentials: number;
|
|
11
|
-
}>;
|
|
11
|
+
} & import("../index.js").ResponseMetadata>;
|
|
12
12
|
getHipaa(params?: {
|
|
13
13
|
report_period_days?: number;
|
|
14
14
|
}): Promise<{
|
|
@@ -31,7 +31,7 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
|
|
|
31
31
|
[key: string]: unknown;
|
|
32
32
|
};
|
|
33
33
|
workspace_id: string;
|
|
34
|
-
}>;
|
|
34
|
+
} & import("../index.js").ResponseMetadata>;
|
|
35
35
|
getAccessReview(): Promise<{
|
|
36
36
|
credentials: {
|
|
37
37
|
[key: string]: unknown;
|
|
@@ -40,6 +40,6 @@ export declare class ComplianceResource extends WorkspaceScopedResource {
|
|
|
40
40
|
jwt_credentials_note: string;
|
|
41
41
|
total_credentials: number;
|
|
42
42
|
workspace_id: string;
|
|
43
|
-
}>;
|
|
43
|
+
} & import("../index.js").ResponseMetadata>;
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=compliance.d.ts.map
|
|
@@ -20,13 +20,13 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
|
20
20
|
state_count?: number;
|
|
21
21
|
updated_at: string;
|
|
22
22
|
workspace_id: string;
|
|
23
|
-
}>;
|
|
23
|
+
} & import("../index.js").ResponseMetadata>;
|
|
24
24
|
list(params?: ListContextGraphsParams): Promise<{
|
|
25
25
|
continuation_token?: number | null;
|
|
26
26
|
has_more: boolean;
|
|
27
27
|
items: components["schemas"]["ContextGraphResponse"][];
|
|
28
28
|
total?: number | null;
|
|
29
|
-
}>;
|
|
29
|
+
} & import("../index.js").ResponseMetadata>;
|
|
30
30
|
get(contextGraphId: ContextGraphId | string): Promise<{
|
|
31
31
|
created_at: string;
|
|
32
32
|
description: string;
|
|
@@ -36,7 +36,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
|
36
36
|
state_count?: number;
|
|
37
37
|
updated_at: string;
|
|
38
38
|
workspace_id: string;
|
|
39
|
-
}>;
|
|
39
|
+
} & import("../index.js").ResponseMetadata>;
|
|
40
40
|
update(contextGraphId: ContextGraphId | string, body: components['schemas']['UpdateContextGraphRequest']): Promise<{
|
|
41
41
|
created_at: string;
|
|
42
42
|
description: string;
|
|
@@ -46,7 +46,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
|
46
46
|
state_count?: number;
|
|
47
47
|
updated_at: string;
|
|
48
48
|
workspace_id: string;
|
|
49
|
-
}>;
|
|
49
|
+
} & import("../index.js").ResponseMetadata>;
|
|
50
50
|
delete(contextGraphId: ContextGraphId | string): Promise<void>;
|
|
51
51
|
/** Create a version snapshot of the current context graph */
|
|
52
52
|
createVersion(contextGraphId: ContextGraphId | string, body: components['schemas']['CreateContextGraphVersionRequest']): Promise<{
|
|
@@ -65,14 +65,14 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
|
65
65
|
updated_at: string;
|
|
66
66
|
version: number;
|
|
67
67
|
workspace_id: string;
|
|
68
|
-
}>;
|
|
68
|
+
} & import("../index.js").ResponseMetadata>;
|
|
69
69
|
/** List all versions of a context graph */
|
|
70
70
|
listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<{
|
|
71
71
|
continuation_token?: number | null;
|
|
72
72
|
has_more: boolean;
|
|
73
73
|
items: components["schemas"]["ContextGraphVersionResponse"][];
|
|
74
74
|
total?: number | null;
|
|
75
|
-
}>;
|
|
75
|
+
} & import("../index.js").ResponseMetadata>;
|
|
76
76
|
/** Get a specific version */
|
|
77
77
|
getVersion(contextGraphId: ContextGraphId | string, version: number): Promise<{
|
|
78
78
|
context_graph_id: string;
|
|
@@ -90,6 +90,6 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
|
90
90
|
updated_at: string;
|
|
91
91
|
version: number;
|
|
92
92
|
workspace_id: string;
|
|
93
|
-
}>;
|
|
93
|
+
} & import("../index.js").ResponseMetadata>;
|
|
94
94
|
}
|
|
95
95
|
//# sourceMappingURL=context-graphs.d.ts.map
|
|
@@ -36,13 +36,13 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
|
36
36
|
sync_strategy: string;
|
|
37
37
|
updated_at: string;
|
|
38
38
|
workspace_id: string;
|
|
39
|
-
}>;
|
|
39
|
+
} & import("../index.js").ResponseMetadata>;
|
|
40
40
|
list(params?: ListDataSourcesParams): Promise<{
|
|
41
41
|
continuation_token?: number | null;
|
|
42
42
|
has_more: boolean;
|
|
43
43
|
items: components["schemas"]["DataSourceResponse"][];
|
|
44
44
|
total?: number | null;
|
|
45
|
-
}>;
|
|
45
|
+
} & import("../index.js").ResponseMetadata>;
|
|
46
46
|
get(dataSourceId: DataSourceId | string): Promise<{
|
|
47
47
|
connection_config: {
|
|
48
48
|
[key: string]: unknown;
|
|
@@ -68,7 +68,7 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
|
68
68
|
sync_strategy: string;
|
|
69
69
|
updated_at: string;
|
|
70
70
|
workspace_id: string;
|
|
71
|
-
}>;
|
|
71
|
+
} & import("../index.js").ResponseMetadata>;
|
|
72
72
|
update(dataSourceId: DataSourceId | string, body: components['schemas']['UpdateDataSourceRequest']): Promise<{
|
|
73
73
|
connection_config: {
|
|
74
74
|
[key: string]: unknown;
|
|
@@ -94,7 +94,7 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
|
94
94
|
sync_strategy: string;
|
|
95
95
|
updated_at: string;
|
|
96
96
|
workspace_id: string;
|
|
97
|
-
}>;
|
|
97
|
+
} & import("../index.js").ResponseMetadata>;
|
|
98
98
|
delete(dataSourceId: DataSourceId | string): Promise<void>;
|
|
99
99
|
/** Get event counts, sync status, and health for a data source */
|
|
100
100
|
getStatus(dataSourceId: DataSourceId | string): Promise<{
|
|
@@ -108,13 +108,13 @@ export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
|
108
108
|
last_sync_status: string | null;
|
|
109
109
|
name: string;
|
|
110
110
|
synced_count: number;
|
|
111
|
-
}>;
|
|
111
|
+
} & import("../index.js").ResponseMetadata>;
|
|
112
112
|
/** Get daily event timeline + recent sync failures for a data source */
|
|
113
113
|
getSyncHistory(dataSourceId: DataSourceId | string): Promise<{
|
|
114
114
|
data_source_id: string;
|
|
115
115
|
name: string;
|
|
116
116
|
recent_failures: components["schemas"]["SyncFailureEntry"][];
|
|
117
117
|
timeline: components["schemas"]["SyncHistoryEntry"][];
|
|
118
|
-
}>;
|
|
118
|
+
} & import("../index.js").ResponseMetadata>;
|
|
119
119
|
}
|
|
120
120
|
//# sourceMappingURL=data-sources.d.ts.map
|
|
@@ -4,7 +4,7 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
|
|
|
4
4
|
list(): Promise<{
|
|
5
5
|
count: number;
|
|
6
6
|
items: components["schemas"]["FunctionDef"][];
|
|
7
|
-
}>;
|
|
7
|
+
} & import("../index.js").ResponseMetadata>;
|
|
8
8
|
create(body: components['schemas']['FunctionCreateRequest']): Promise<{
|
|
9
9
|
catalog?: string;
|
|
10
10
|
description?: components["schemas"]["DescriptionString"];
|
|
@@ -16,20 +16,20 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
|
|
|
16
16
|
name: components["schemas"]["NameString"];
|
|
17
17
|
returns_table?: boolean;
|
|
18
18
|
schema?: string;
|
|
19
|
-
}>;
|
|
19
|
+
} & import("../index.js").ResponseMetadata>;
|
|
20
20
|
delete(functionName: string): Promise<void>;
|
|
21
21
|
test(functionName: string, body: components['schemas']['FunctionTestRequest']): Promise<{
|
|
22
22
|
duration_ms?: number;
|
|
23
23
|
error?: string | null;
|
|
24
24
|
function_name?: string;
|
|
25
25
|
result?: unknown;
|
|
26
|
-
}>;
|
|
26
|
+
} & import("../index.js").ResponseMetadata>;
|
|
27
27
|
getCatalog(): Promise<{
|
|
28
28
|
catalog?: string;
|
|
29
29
|
count?: number;
|
|
30
30
|
functions: components["schemas"]["CatalogFunctionDef"][];
|
|
31
31
|
schema?: string;
|
|
32
|
-
}>;
|
|
32
|
+
} & import("../index.js").ResponseMetadata>;
|
|
33
33
|
query(body: components['schemas']['QueryRequest']): Promise<{
|
|
34
34
|
count?: number;
|
|
35
35
|
duration_ms?: number;
|
|
@@ -37,10 +37,10 @@ export declare class FunctionsResource extends WorkspaceScopedResource {
|
|
|
37
37
|
results?: {
|
|
38
38
|
[key: string]: unknown;
|
|
39
39
|
}[];
|
|
40
|
-
}>;
|
|
40
|
+
} & import("../index.js").ResponseMetadata>;
|
|
41
41
|
sync(): Promise<{
|
|
42
42
|
count: number;
|
|
43
43
|
items: components["schemas"]["FunctionDef"][];
|
|
44
|
-
}>;
|
|
44
|
+
} & import("../index.js").ResponseMetadata>;
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -33,14 +33,14 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
33
33
|
protocol: "rest" | "fhir" | "mcp";
|
|
34
34
|
updated_at: string;
|
|
35
35
|
workspace_id: string;
|
|
36
|
-
}>;
|
|
36
|
+
} & import("../index.js").ResponseMetadata>;
|
|
37
37
|
/** List integrations */
|
|
38
38
|
list(params?: ListIntegrationsParams): Promise<{
|
|
39
39
|
continuation_token?: number | null;
|
|
40
40
|
has_more: boolean;
|
|
41
41
|
items: components["schemas"]["IntegrationResponse"][];
|
|
42
42
|
total?: number | null;
|
|
43
|
-
}>;
|
|
43
|
+
} & import("../index.js").ResponseMetadata>;
|
|
44
44
|
/** Get a single integration */
|
|
45
45
|
get(integrationId: IntegrationId | string): Promise<{
|
|
46
46
|
auth?: components["schemas"]["AuthConfig"] | null;
|
|
@@ -62,7 +62,7 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
62
62
|
protocol: "rest" | "fhir" | "mcp";
|
|
63
63
|
updated_at: string;
|
|
64
64
|
workspace_id: string;
|
|
65
|
-
}>;
|
|
65
|
+
} & import("../index.js").ResponseMetadata>;
|
|
66
66
|
/** Update integration configuration */
|
|
67
67
|
update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
|
|
68
68
|
auth?: components["schemas"]["AuthConfig"] | null;
|
|
@@ -84,7 +84,7 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
84
84
|
protocol: "rest" | "fhir" | "mcp";
|
|
85
85
|
updated_at: string;
|
|
86
86
|
workspace_id: string;
|
|
87
|
-
}>;
|
|
87
|
+
} & import("../index.js").ResponseMetadata>;
|
|
88
88
|
/** Delete an integration */
|
|
89
89
|
delete(integrationId: IntegrationId | string): Promise<void>;
|
|
90
90
|
/**
|
|
@@ -100,10 +100,10 @@ export declare class IntegrationsResource extends WorkspaceScopedResource {
|
|
|
100
100
|
raw_response?: unknown;
|
|
101
101
|
retries?: number;
|
|
102
102
|
status_code?: number | null;
|
|
103
|
-
}>;
|
|
103
|
+
} & import("../index.js").ResponseMetadata>;
|
|
104
104
|
/** Check health of all integrations in the workspace */
|
|
105
105
|
getHealthCheck(): Promise<{
|
|
106
106
|
[key: string]: unknown;
|
|
107
|
-
}>;
|
|
107
|
+
} & import("../index.js").ResponseMetadata>;
|
|
108
108
|
}
|
|
109
109
|
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -16,7 +16,7 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
16
16
|
dimensions: import("../index.js").components["schemas"]["DimensionScore"][];
|
|
17
17
|
entity_id: string;
|
|
18
18
|
total_facts: number;
|
|
19
|
-
}>;
|
|
19
|
+
} & import("../index.js").ResponseMetadata>;
|
|
20
20
|
/**
|
|
21
21
|
* Get individual memory facts for an entity, optionally filtered by dimension.
|
|
22
22
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
28
28
|
entity_id: string;
|
|
29
29
|
facts: import("../index.js").components["schemas"]["MemoryFact"][];
|
|
30
30
|
total: number;
|
|
31
|
-
}>;
|
|
31
|
+
} & import("../index.js").ResponseMetadata>;
|
|
32
32
|
/**
|
|
33
33
|
* Get workspace-level memory analytics — coverage rates, dimension health,
|
|
34
34
|
* and fact ingestion trends.
|
|
@@ -47,6 +47,6 @@ export declare class MemoryResource extends WorkspaceScopedResource {
|
|
|
47
47
|
total_entities_in_workspace: number;
|
|
48
48
|
total_entities_with_memory: number;
|
|
49
49
|
total_facts: number;
|
|
50
|
-
}>;
|
|
50
|
+
} & import("../index.js").ResponseMetadata>;
|
|
51
51
|
}
|
|
52
52
|
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -10,7 +10,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
10
10
|
has_more: boolean;
|
|
11
11
|
items: components["schemas"]["OperatorResponse"][];
|
|
12
12
|
total?: number | null;
|
|
13
|
-
}>;
|
|
13
|
+
} & import("../index.js").ResponseMetadata>;
|
|
14
14
|
create(body: components['schemas']['CreateOperatorRequest']): Promise<{
|
|
15
15
|
active_call_sid: string | null;
|
|
16
16
|
avg_handle_time_seconds: number;
|
|
@@ -29,7 +29,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
29
29
|
type: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
30
30
|
updated_at: string;
|
|
31
31
|
workspace_id: string;
|
|
32
|
-
}>;
|
|
32
|
+
} & import("../index.js").ResponseMetadata>;
|
|
33
33
|
get(operatorId: string): Promise<{
|
|
34
34
|
active_call_sid: string | null;
|
|
35
35
|
avg_handle_time_seconds: number;
|
|
@@ -48,19 +48,19 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
48
48
|
type: ("clinical" | "administrative" | "crisis_counselor") | null;
|
|
49
49
|
updated_at: string;
|
|
50
50
|
workspace_id: string;
|
|
51
|
-
}>;
|
|
51
|
+
} & import("../index.js").ResponseMetadata>;
|
|
52
52
|
getDashboard(): Promise<{
|
|
53
53
|
active_escalations: number;
|
|
54
54
|
escalations_today: components["schemas"]["EscalationDailyStats"];
|
|
55
55
|
operators: components["schemas"]["OperatorStatusCounts"];
|
|
56
56
|
recent_escalations: components["schemas"]["ActiveEscalationItem"][];
|
|
57
57
|
workspace_id: string;
|
|
58
|
-
}>;
|
|
58
|
+
} & import("../index.js").ResponseMetadata>;
|
|
59
59
|
getQueue(): Promise<{
|
|
60
60
|
queue: components["schemas"]["PriorityQueueItem"][];
|
|
61
61
|
total_active: number;
|
|
62
62
|
workspace_id: string;
|
|
63
|
-
}>;
|
|
63
|
+
} & import("../index.js").ResponseMetadata>;
|
|
64
64
|
getEscalations(params?: {
|
|
65
65
|
status?: string;
|
|
66
66
|
limit?: number;
|
|
@@ -70,13 +70,13 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
70
70
|
has_more: boolean;
|
|
71
71
|
items: components["schemas"]["EscalationEventResponse"][];
|
|
72
72
|
total?: number | null;
|
|
73
|
-
}>;
|
|
73
|
+
} & import("../index.js").ResponseMetadata>;
|
|
74
74
|
getActiveEscalations(): Promise<{
|
|
75
75
|
continuation_token?: number | null;
|
|
76
76
|
has_more: boolean;
|
|
77
77
|
items: components["schemas"]["ActiveEscalationItem"][];
|
|
78
78
|
total?: number | null;
|
|
79
|
-
}>;
|
|
79
|
+
} & import("../index.js").ResponseMetadata>;
|
|
80
80
|
getEscalationStats(params?: {
|
|
81
81
|
period?: string;
|
|
82
82
|
group_by?: string;
|
|
@@ -86,7 +86,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
86
86
|
period: string;
|
|
87
87
|
total: number;
|
|
88
88
|
workspace_id: string;
|
|
89
|
-
}>;
|
|
89
|
+
} & import("../index.js").ResponseMetadata>;
|
|
90
90
|
getPerformance(params?: {
|
|
91
91
|
days?: number;
|
|
92
92
|
date_from?: string | null;
|
|
@@ -102,7 +102,7 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
102
102
|
total_escalations_handled: number;
|
|
103
103
|
total_operators: number;
|
|
104
104
|
workspace_id: string;
|
|
105
|
-
}>;
|
|
105
|
+
} & import("../index.js").ResponseMetadata>;
|
|
106
106
|
getAccessToken(operatorId: string, body: components['schemas']['AccessTokenRequest']): Promise<{
|
|
107
107
|
conference_sid: string;
|
|
108
108
|
connect_params?: {
|
|
@@ -110,23 +110,23 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
110
110
|
};
|
|
111
111
|
identity: string;
|
|
112
112
|
token: string;
|
|
113
|
-
}>;
|
|
113
|
+
} & import("../index.js").ResponseMetadata>;
|
|
114
114
|
joinCall(operatorId: string, body: components['schemas']['JoinCallRequest']): Promise<{
|
|
115
115
|
conference_sid: string;
|
|
116
116
|
mode: "listen" | "takeover";
|
|
117
117
|
operator_entity_id: string;
|
|
118
118
|
participant_call_sid: string;
|
|
119
|
-
}>;
|
|
119
|
+
} & import("../index.js").ResponseMetadata>;
|
|
120
120
|
leaveCall(operatorId: string, body: components['schemas']['LeaveCallRequest']): Promise<{
|
|
121
121
|
success: boolean;
|
|
122
|
-
}>;
|
|
122
|
+
} & import("../index.js").ResponseMetadata>;
|
|
123
123
|
switchMode(operatorId: string, body: components['schemas']['SwitchModeRequest']): Promise<{
|
|
124
124
|
mode: "listen" | "takeover";
|
|
125
|
-
}>;
|
|
125
|
+
} & import("../index.js").ResponseMetadata>;
|
|
126
126
|
sendGuidance(operatorId: string, body: components['schemas']['SendGuidanceRequest']): Promise<{
|
|
127
127
|
call_sid: string;
|
|
128
128
|
status: "delivered" | "failed";
|
|
129
|
-
}>;
|
|
129
|
+
} & import("../index.js").ResponseMetadata>;
|
|
130
130
|
createBriefing(operatorId: string, body: {
|
|
131
131
|
call_sid: string;
|
|
132
132
|
}): Promise<{
|
|
@@ -134,16 +134,16 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
134
134
|
generated_at: string;
|
|
135
135
|
operator_id: string;
|
|
136
136
|
sections: components["schemas"]["BriefingSection"][];
|
|
137
|
-
}>;
|
|
137
|
+
} & import("../index.js").ResponseMetadata>;
|
|
138
138
|
wrapUp(operatorId: string, body: components['schemas']['WrapUpRequest']): Promise<{
|
|
139
139
|
success: boolean;
|
|
140
|
-
}>;
|
|
140
|
+
} & import("../index.js").ResponseMetadata>;
|
|
141
141
|
getCallTranscript(callSid: string): Promise<{
|
|
142
142
|
call_entity_id: string;
|
|
143
143
|
call_sid: string | null;
|
|
144
144
|
segments: components["schemas"]["TranscriptSegment"][];
|
|
145
145
|
total_segments: number;
|
|
146
|
-
}>;
|
|
146
|
+
} & import("../index.js").ResponseMetadata>;
|
|
147
147
|
getAuditLog(params?: {
|
|
148
148
|
limit?: number;
|
|
149
149
|
offset?: number;
|
|
@@ -152,6 +152,6 @@ export declare class OperatorsResource extends WorkspaceScopedResource {
|
|
|
152
152
|
has_more: boolean;
|
|
153
153
|
items: components["schemas"]["src__routes__operators_models__AuditEventResponse"][];
|
|
154
154
|
total?: number | null;
|
|
155
|
-
}>;
|
|
155
|
+
} & import("../index.js").ResponseMetadata>;
|
|
156
156
|
}
|
|
157
157
|
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -12,7 +12,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
12
12
|
has_more: boolean;
|
|
13
13
|
items: components["schemas"]["PersonaResponse"][];
|
|
14
14
|
total?: number | null;
|
|
15
|
-
}>;
|
|
15
|
+
} & import("../index.js").ResponseMetadata>;
|
|
16
16
|
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
17
17
|
background: string;
|
|
18
18
|
communication_style: {
|
|
@@ -26,7 +26,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
26
26
|
role: string;
|
|
27
27
|
updated_at: string;
|
|
28
28
|
workspace_id: string;
|
|
29
|
-
}>;
|
|
29
|
+
} & import("../index.js").ResponseMetadata>;
|
|
30
30
|
get(personaId: PersonaId | string): Promise<{
|
|
31
31
|
background: string;
|
|
32
32
|
communication_style: {
|
|
@@ -40,7 +40,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
40
40
|
role: string;
|
|
41
41
|
updated_at: string;
|
|
42
42
|
workspace_id: string;
|
|
43
|
-
}>;
|
|
43
|
+
} & import("../index.js").ResponseMetadata>;
|
|
44
44
|
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
45
45
|
background: string;
|
|
46
46
|
communication_style: {
|
|
@@ -54,7 +54,7 @@ export declare class PersonasResource extends WorkspaceScopedResource {
|
|
|
54
54
|
role: string;
|
|
55
55
|
updated_at: string;
|
|
56
56
|
workspace_id: string;
|
|
57
|
-
}>;
|
|
57
|
+
} & import("../index.js").ResponseMetadata>;
|
|
58
58
|
delete(personaId: PersonaId | string): Promise<void>;
|
|
59
59
|
}
|
|
60
60
|
//# sourceMappingURL=personas.d.ts.map
|
|
@@ -22,14 +22,14 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
22
22
|
status: "active" | "inactive";
|
|
23
23
|
updated_at: string;
|
|
24
24
|
workspace_id: string;
|
|
25
|
-
}>;
|
|
25
|
+
} & import("../index.js").ResponseMetadata>;
|
|
26
26
|
/** List phone numbers in the workspace */
|
|
27
27
|
list(params?: ListParams): Promise<{
|
|
28
28
|
continuation_token?: number | null;
|
|
29
29
|
has_more: boolean;
|
|
30
30
|
items: components["schemas"]["PhoneNumberResponse"][];
|
|
31
31
|
total?: number | null;
|
|
32
|
-
}>;
|
|
32
|
+
} & import("../index.js").ResponseMetadata>;
|
|
33
33
|
/** Get a phone number */
|
|
34
34
|
get(phoneNumberId: PhoneNumberId | string): Promise<{
|
|
35
35
|
capabilities: string[];
|
|
@@ -45,7 +45,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
45
45
|
status: "active" | "inactive";
|
|
46
46
|
updated_at: string;
|
|
47
47
|
workspace_id: string;
|
|
48
|
-
}>;
|
|
48
|
+
} & import("../index.js").ResponseMetadata>;
|
|
49
49
|
/** Update a phone number (assign to agent, rename) */
|
|
50
50
|
update(phoneNumberId: PhoneNumberId | string, body: components['schemas']['UpdatePhoneNumberRequest']): Promise<{
|
|
51
51
|
capabilities: string[];
|
|
@@ -61,7 +61,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
61
61
|
status: "active" | "inactive";
|
|
62
62
|
updated_at: string;
|
|
63
63
|
workspace_id: string;
|
|
64
|
-
}>;
|
|
64
|
+
} & import("../index.js").ResponseMetadata>;
|
|
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 */
|
|
@@ -79,7 +79,7 @@ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
|
79
79
|
status: "active" | "inactive";
|
|
80
80
|
updated_at: string;
|
|
81
81
|
workspace_id: string;
|
|
82
|
-
}>;
|
|
82
|
+
} & import("../index.js").ResponseMetadata>;
|
|
83
83
|
/** Clear call forwarding for a phone number */
|
|
84
84
|
clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
85
85
|
}
|
|
@@ -6,7 +6,7 @@ export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
|
6
6
|
metadata_url?: string | null;
|
|
7
7
|
outbound_url?: string | null;
|
|
8
8
|
status?: "available";
|
|
9
|
-
}>;
|
|
9
|
+
} & import("../index.js").ResponseMetadata>;
|
|
10
10
|
getMetadata(callSid: string): Promise<{
|
|
11
11
|
call_end_iso: string;
|
|
12
12
|
call_sid: string;
|
|
@@ -23,7 +23,7 @@ export declare class RecordingsResource extends WorkspaceScopedResource {
|
|
|
23
23
|
service_id: string;
|
|
24
24
|
tts_provider: string;
|
|
25
25
|
workspace_id: string;
|
|
26
|
-
}>;
|
|
26
|
+
} & import("../index.js").ResponseMetadata>;
|
|
27
27
|
download(callSid: string, filename: string): Promise<unknown>;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=recordings.d.ts.map
|