@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
|
@@ -18,10 +18,10 @@ export interface ListCallsParams extends ListParams {
|
|
|
18
18
|
export declare class CallsResource extends WorkspaceScopedResource {
|
|
19
19
|
/** List calls with optional filtering */
|
|
20
20
|
list(params?: ListCallsParams): Promise<{
|
|
21
|
+
continuation_token?: number | null;
|
|
22
|
+
has_more: boolean;
|
|
21
23
|
items: import("../index.js").components["schemas"]["CallSummary"][];
|
|
22
24
|
total: number;
|
|
23
|
-
has_more: boolean;
|
|
24
|
-
continuation_token?: number | null;
|
|
25
25
|
}>;
|
|
26
26
|
/** Get full call detail including turns, escalation, safety, and recording info */
|
|
27
27
|
get(callId: string): Promise<{
|
|
@@ -31,35 +31,21 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
31
31
|
getIntelligence(callId: string): Promise<{
|
|
32
32
|
call_id: string;
|
|
33
33
|
call_sid?: string | null;
|
|
34
|
-
|
|
34
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer") | null;
|
|
35
|
+
conversation_summary?: import("../index.js").components["schemas"]["ConversationSummary"] | null;
|
|
36
|
+
created_at: string;
|
|
37
|
+
direction?: "inbound" | "outbound" | "playground" | "simulated";
|
|
35
38
|
duration_seconds?: number;
|
|
36
|
-
|
|
37
|
-
quality_breakdown?: import("../index.js").components["schemas"]["QualityBreakdown"] | null;
|
|
38
|
-
key_moments?: import("../index.js").components["schemas"]["KeyMoment"][];
|
|
39
|
-
emotion_summary?: {
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
} | null;
|
|
42
|
-
risk_summary?: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
} | null;
|
|
45
|
-
latency_summary?: {
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
} | null;
|
|
48
|
-
conversation_summary?: {
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
} | null;
|
|
51
|
-
tool_summary?: {
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
} | null;
|
|
54
|
-
safety_summary?: {
|
|
55
|
-
[key: string]: unknown;
|
|
56
|
-
} | null;
|
|
57
|
-
operator_summary?: {
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
} | null;
|
|
60
|
-
completion_reason?: string | null;
|
|
39
|
+
emotion_summary?: import("../index.js").components["schemas"]["EmotionSummary"] | null;
|
|
61
40
|
final_state?: string | null;
|
|
62
|
-
|
|
41
|
+
key_moments?: import("../index.js").components["schemas"]["KeyMoment"][];
|
|
42
|
+
latency_summary?: import("../index.js").components["schemas"]["LatencySummary"] | null;
|
|
43
|
+
operator_summary?: import("../index.js").components["schemas"]["OperatorIntelligenceSummary"] | null;
|
|
44
|
+
quality_breakdown?: import("../index.js").components["schemas"]["QualityBreakdown"] | null;
|
|
45
|
+
quality_score?: number | null;
|
|
46
|
+
risk_summary?: import("../index.js").components["schemas"]["RiskSummary"] | null;
|
|
47
|
+
safety_summary?: import("../index.js").components["schemas"]["SafetySummary"] | null;
|
|
48
|
+
tool_summary?: import("../index.js").components["schemas"]["ToolSummary"] | null;
|
|
63
49
|
}>;
|
|
64
50
|
/** Get active intelligence across all in-progress calls */
|
|
65
51
|
getActiveIntelligence(): Promise<{
|
|
@@ -69,36 +55,36 @@ export declare class CallsResource extends WorkspaceScopedResource {
|
|
|
69
55
|
getBenchmarks(params?: {
|
|
70
56
|
days?: number;
|
|
71
57
|
}): Promise<{
|
|
58
|
+
avg_duration_seconds?: number | null;
|
|
72
59
|
avg_quality_score?: number | null;
|
|
73
|
-
|
|
60
|
+
escalation_rate?: number;
|
|
74
61
|
p25_quality_score?: number | null;
|
|
62
|
+
p50_quality_score?: number | null;
|
|
75
63
|
p75_quality_score?: number | null;
|
|
76
|
-
total_calls?: number;
|
|
77
|
-
avg_duration_seconds?: number | null;
|
|
78
|
-
escalation_rate?: number;
|
|
79
64
|
quality_distribution?: {
|
|
80
65
|
[key: string]: number;
|
|
81
66
|
};
|
|
67
|
+
total_calls?: number;
|
|
82
68
|
}>;
|
|
83
69
|
/** Get deep call trace analysis */
|
|
84
70
|
getTraceAnalysis(callId: string): Promise<{
|
|
71
|
+
call_entity_id?: string | null;
|
|
85
72
|
call_sid: string;
|
|
86
|
-
status?: "ready" | "pending" | "unavailable";
|
|
87
|
-
summary?: string | null;
|
|
88
|
-
outcome?: ("succeeded" | "partially" | "failed" | "abandoned") | null;
|
|
89
|
-
key_moment_count?: number;
|
|
90
|
-
key_moments?: import("../index.js").components["schemas"]["TraceKeyMoment"][];
|
|
91
|
-
emotional_arc?: string | null;
|
|
92
|
-
emotional_shifts?: import("../index.js").components["schemas"]["EmotionalShift"][];
|
|
93
|
-
interaction_dynamics?: import("../index.js").components["schemas"]["InteractionDynamics"] | null;
|
|
94
73
|
coaching?: import("../index.js").components["schemas"]["CoachingItem"][];
|
|
74
|
+
computed_at?: string | null;
|
|
95
75
|
counterfactuals?: import("../index.js").components["schemas"]["Counterfactual"][];
|
|
96
76
|
deep_understanding?: string | null;
|
|
97
|
-
signal_response_alignment?: import("../index.js").components["schemas"]["SignalResponseAlignment"][];
|
|
98
|
-
missed_opportunities?: string[];
|
|
99
77
|
emergent_patterns?: string[];
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
emotional_arc?: string | null;
|
|
79
|
+
emotional_shifts?: import("../index.js").components["schemas"]["EmotionalShift"][];
|
|
80
|
+
interaction_dynamics?: import("../index.js").components["schemas"]["InteractionDynamics"] | null;
|
|
81
|
+
key_moment_count?: number;
|
|
82
|
+
key_moments?: import("../index.js").components["schemas"]["TraceKeyMoment"][];
|
|
83
|
+
missed_opportunities?: string[];
|
|
84
|
+
outcome?: ("succeeded" | "partially" | "failed" | "abandoned") | null;
|
|
85
|
+
signal_response_alignment?: import("../index.js").components["schemas"]["SignalResponseAlignment"][];
|
|
86
|
+
status?: "ready" | "pending" | "unavailable";
|
|
87
|
+
summary?: string | null;
|
|
102
88
|
}>;
|
|
103
89
|
}
|
|
104
90
|
//# sourceMappingURL=calls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../../src/resources/calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,uBAAuB;IACxD,yCAAyC;IACnC,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe
|
|
1
|
+
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../../src/resources/calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,uBAAuB;IACxD,yCAAyC;IACnC,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe;;;eAqDqoqP,2CAAsB;;;IA7C9rqP,mFAAmF;IAC7E,GAAG,CAAC,MAAM,EAAE,MAAM;;;IAQxB,qCAAqC;IAC/B,eAAe,CAAC,MAAM,EAAE,MAAM;;;;+BAmC82lP,2CAAsB;;;;0BAA2sB,2CAAsB;;sBAA6T,2CAAsB;0BAAoG,2CAAsB;2BAA+G,2CAAsB;4BAAkI,2CAAsB;;uBAAoQ,2CAAsB;yBAA0G,2CAAsB;uBAA0G,2CAAsB;;IA3B74pP,2DAA2D;IACrD,qBAAqB;;;IAQ3B,mDAAmD;IAC7C,aAAa,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;IAQ9C,mCAAmC;IAC7B,gBAAgB,CAAC,MAAM,EAAE,MAAM;;;mBAQu96hB,2CAAsB;;0BAAgY,2CAAsB;;;;2BAA82B,2CAAsB;+BAAgI,2CAAsB;;sBAAma,2CAAsB;;;oCAA2nB,2CAAsB;;;;CAD7ggiB"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { WorkspaceScopedResource } from './base.js';
|
|
2
2
|
export declare class ComplianceResource extends WorkspaceScopedResource {
|
|
3
3
|
getDashboard(): Promise<{
|
|
4
|
+
active_credentials: number;
|
|
5
|
+
generated_at: string;
|
|
4
6
|
hipaa_status: string;
|
|
5
|
-
|
|
7
|
+
last_audit_export: string | null;
|
|
6
8
|
legal_hold: boolean;
|
|
9
|
+
retention_days: number | null;
|
|
7
10
|
total_credentials: number;
|
|
8
|
-
active_credentials: number;
|
|
9
|
-
last_audit_export: string | null;
|
|
10
|
-
generated_at: string;
|
|
11
11
|
}>;
|
|
12
12
|
getHipaa(params?: {
|
|
13
13
|
report_period_days?: number;
|
|
14
14
|
}): Promise<{
|
|
15
|
-
|
|
16
|
-
report_period_days: number;
|
|
17
|
-
workspace_id: string;
|
|
18
|
-
audit_summary: {
|
|
15
|
+
access_controls: {
|
|
19
16
|
[key: string]: unknown;
|
|
20
17
|
};
|
|
21
|
-
|
|
18
|
+
api_key_summary: {
|
|
19
|
+
[key: string]: number;
|
|
20
|
+
};
|
|
21
|
+
audit_summary: {
|
|
22
22
|
[key: string]: unknown;
|
|
23
23
|
};
|
|
24
|
+
compliance_status: string;
|
|
24
25
|
encryption: {
|
|
25
26
|
[key: string]: boolean;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
+
generated_at: string;
|
|
29
|
+
report_period_days: number;
|
|
30
|
+
retention_policy: {
|
|
28
31
|
[key: string]: unknown;
|
|
29
32
|
};
|
|
30
|
-
|
|
31
|
-
[key: string]: number;
|
|
32
|
-
};
|
|
33
|
-
compliance_status: string;
|
|
33
|
+
workspace_id: string;
|
|
34
34
|
}>;
|
|
35
35
|
getAccessReview(): Promise<{
|
|
36
|
-
generated_at: string;
|
|
37
|
-
workspace_id: string;
|
|
38
36
|
credentials: {
|
|
39
37
|
[key: string]: unknown;
|
|
40
38
|
}[];
|
|
41
|
-
|
|
39
|
+
generated_at: string;
|
|
42
40
|
jwt_credentials_note: string;
|
|
41
|
+
total_credentials: number;
|
|
42
|
+
workspace_id: string;
|
|
43
43
|
}>;
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=compliance.d.ts.map
|
|
@@ -12,84 +12,84 @@ export interface ListContextGraphsParams extends ListParams {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class ContextGraphsResource extends WorkspaceScopedResource {
|
|
14
14
|
create(body: components['schemas']['CreateContextGraphRequest']): Promise<{
|
|
15
|
+
created_at: string;
|
|
16
|
+
description: string;
|
|
15
17
|
id: string;
|
|
16
|
-
|
|
18
|
+
latest_version?: number;
|
|
17
19
|
name: string;
|
|
18
|
-
|
|
19
|
-
latest_version?: number | null;
|
|
20
|
-
state_count?: number | null;
|
|
21
|
-
created_at: string;
|
|
20
|
+
state_count?: number;
|
|
22
21
|
updated_at: string;
|
|
22
|
+
workspace_id: string;
|
|
23
23
|
}>;
|
|
24
24
|
list(params?: ListContextGraphsParams): Promise<{
|
|
25
|
-
items: components["schemas"]["ContextGraphResponse"][];
|
|
26
|
-
has_more: boolean;
|
|
27
25
|
continuation_token?: number | null;
|
|
26
|
+
has_more: boolean;
|
|
27
|
+
items: components["schemas"]["ContextGraphResponse"][];
|
|
28
28
|
total?: number | null;
|
|
29
29
|
}>;
|
|
30
30
|
get(contextGraphId: ContextGraphId | string): Promise<{
|
|
31
|
+
created_at: string;
|
|
32
|
+
description: string;
|
|
31
33
|
id: string;
|
|
32
|
-
|
|
34
|
+
latest_version?: number;
|
|
33
35
|
name: string;
|
|
34
|
-
|
|
35
|
-
latest_version?: number | null;
|
|
36
|
-
state_count?: number | null;
|
|
37
|
-
created_at: string;
|
|
36
|
+
state_count?: number;
|
|
38
37
|
updated_at: string;
|
|
38
|
+
workspace_id: string;
|
|
39
39
|
}>;
|
|
40
40
|
update(contextGraphId: ContextGraphId | string, body: components['schemas']['UpdateContextGraphRequest']): Promise<{
|
|
41
|
+
created_at: string;
|
|
42
|
+
description: string;
|
|
41
43
|
id: string;
|
|
42
|
-
|
|
44
|
+
latest_version?: number;
|
|
43
45
|
name: string;
|
|
44
|
-
|
|
45
|
-
latest_version?: number | null;
|
|
46
|
-
state_count?: number | null;
|
|
47
|
-
created_at: string;
|
|
46
|
+
state_count?: number;
|
|
48
47
|
updated_at: string;
|
|
48
|
+
workspace_id: string;
|
|
49
49
|
}>;
|
|
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<{
|
|
53
|
-
id: string;
|
|
54
|
-
workspace_id: string;
|
|
55
53
|
context_graph_id: string;
|
|
56
|
-
|
|
54
|
+
created_at: string;
|
|
57
55
|
description: string;
|
|
58
|
-
|
|
56
|
+
global_action_guidelines: string[];
|
|
57
|
+
global_boundary_constraints: string[];
|
|
58
|
+
global_intra_state_navigation_guidelines: string[];
|
|
59
|
+
id: string;
|
|
59
60
|
new_user_initial_state: string;
|
|
60
61
|
returning_user_initial_state: string;
|
|
62
|
+
states: components["schemas"]["ContextGraphState-Output"][];
|
|
61
63
|
terminal_state: string;
|
|
62
|
-
global_intra_state_navigation_guidelines: string[];
|
|
63
|
-
global_action_guidelines: string[];
|
|
64
|
-
global_boundary_constraints: string[];
|
|
65
64
|
topology_description: string | null;
|
|
66
|
-
created_at: string;
|
|
67
65
|
updated_at: string;
|
|
66
|
+
version: number;
|
|
67
|
+
workspace_id: string;
|
|
68
68
|
}>;
|
|
69
69
|
/** List all versions of a context graph */
|
|
70
70
|
listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<{
|
|
71
|
-
items: components["schemas"]["ContextGraphVersionResponse"][];
|
|
72
|
-
has_more: boolean;
|
|
73
71
|
continuation_token?: number | null;
|
|
72
|
+
has_more: boolean;
|
|
73
|
+
items: components["schemas"]["ContextGraphVersionResponse"][];
|
|
74
74
|
total?: number | null;
|
|
75
75
|
}>;
|
|
76
76
|
/** Get a specific version */
|
|
77
77
|
getVersion(contextGraphId: ContextGraphId | string, version: number): Promise<{
|
|
78
|
-
id: string;
|
|
79
|
-
workspace_id: string;
|
|
80
78
|
context_graph_id: string;
|
|
81
|
-
|
|
79
|
+
created_at: string;
|
|
82
80
|
description: string;
|
|
83
|
-
|
|
81
|
+
global_action_guidelines: string[];
|
|
82
|
+
global_boundary_constraints: string[];
|
|
83
|
+
global_intra_state_navigation_guidelines: string[];
|
|
84
|
+
id: string;
|
|
84
85
|
new_user_initial_state: string;
|
|
85
86
|
returning_user_initial_state: string;
|
|
87
|
+
states: components["schemas"]["ContextGraphState-Output"][];
|
|
86
88
|
terminal_state: string;
|
|
87
|
-
global_intra_state_navigation_guidelines: string[];
|
|
88
|
-
global_action_guidelines: string[];
|
|
89
|
-
global_boundary_constraints: string[];
|
|
90
89
|
topology_description: string | null;
|
|
91
|
-
created_at: string;
|
|
92
90
|
updated_at: string;
|
|
91
|
+
version: number;
|
|
92
|
+
workspace_id: string;
|
|
93
93
|
}>;
|
|
94
94
|
}
|
|
95
95
|
//# sourceMappingURL=context-graphs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-graphs.d.ts","sourceRoot":"","sources":["../../../src/resources/context-graphs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAC1D,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;IAS/D,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB
|
|
1
|
+
{"version":3,"file":"context-graphs.d.ts","sourceRoot":"","sources":["../../../src/resources/context-graphs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAC1D,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;IAS/D,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB;;;eAqFi1ob,qBAAsB;;;IA7E54ob,GAAG,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM;;;;;;;;;;IAU3C,MAAM,CACV,cAAc,EAAE,cAAc,GAAG,MAAM,EACvC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;IAYpD,MAAM,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQpE,6DAA6D;IACvD,aAAa,CACjB,cAAc,EAAE,cAAc,GAAG,MAAM,EACvC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kCAAkC,CAAC;;;;;;;;;;gBA0Cs51Q,qBAAsB;;;;;;;IA9B7+1Q,2CAA2C;IACrC,YAAY,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;eA6B0tpb,qBAAsB;;;IAlB/zpb,6BAA6B;IACvB,UAAU,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;gBAiB841Q,qBAAsB;;;;;;;CAD9+1Q"}
|
|
@@ -12,109 +12,109 @@ export interface ListDataSourcesParams extends ListParams {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class DataSourcesResource extends WorkspaceScopedResource {
|
|
14
14
|
create(body: components['schemas']['CreateDataSourceRequest']): Promise<{
|
|
15
|
-
id: string;
|
|
16
|
-
workspace_id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
display_name: string | null;
|
|
19
|
-
source_type: string;
|
|
20
15
|
connection_config: {
|
|
21
16
|
[key: string]: unknown;
|
|
22
17
|
};
|
|
18
|
+
created_at: string;
|
|
19
|
+
discovered_by: string | null;
|
|
20
|
+
display_name: string | null;
|
|
23
21
|
entity_types: string[] | null;
|
|
24
22
|
field_mappings: {
|
|
25
23
|
[key: string]: unknown;
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
last_sync_at: string | null;
|
|
30
|
-
last_sync_status: string | null;
|
|
31
|
-
last_sync_event_count: number;
|
|
25
|
+
health_status: string;
|
|
26
|
+
id: string;
|
|
32
27
|
is_active: boolean;
|
|
33
28
|
is_stale: boolean;
|
|
34
|
-
health_status: string;
|
|
35
29
|
last_health_check: string | null;
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
last_sync_at: string | null;
|
|
31
|
+
last_sync_event_count: number;
|
|
32
|
+
last_sync_status: string | null;
|
|
33
|
+
name: string;
|
|
34
|
+
source_type: string;
|
|
35
|
+
sync_schedule: string | null;
|
|
36
|
+
sync_strategy: string;
|
|
38
37
|
updated_at: string;
|
|
38
|
+
workspace_id: string;
|
|
39
39
|
}>;
|
|
40
40
|
list(params?: ListDataSourcesParams): Promise<{
|
|
41
|
-
items: components["schemas"]["DataSourceResponse"][];
|
|
42
|
-
has_more: boolean;
|
|
43
41
|
continuation_token?: number | null;
|
|
42
|
+
has_more: boolean;
|
|
43
|
+
items: components["schemas"]["DataSourceResponse"][];
|
|
44
44
|
total?: number | null;
|
|
45
45
|
}>;
|
|
46
46
|
get(dataSourceId: DataSourceId | string): Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
workspace_id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
display_name: string | null;
|
|
51
|
-
source_type: string;
|
|
52
47
|
connection_config: {
|
|
53
48
|
[key: string]: unknown;
|
|
54
49
|
};
|
|
50
|
+
created_at: string;
|
|
51
|
+
discovered_by: string | null;
|
|
52
|
+
display_name: string | null;
|
|
55
53
|
entity_types: string[] | null;
|
|
56
54
|
field_mappings: {
|
|
57
55
|
[key: string]: unknown;
|
|
58
56
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
last_sync_at: string | null;
|
|
62
|
-
last_sync_status: string | null;
|
|
63
|
-
last_sync_event_count: number;
|
|
57
|
+
health_status: string;
|
|
58
|
+
id: string;
|
|
64
59
|
is_active: boolean;
|
|
65
60
|
is_stale: boolean;
|
|
66
|
-
health_status: string;
|
|
67
61
|
last_health_check: string | null;
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
last_sync_at: string | null;
|
|
63
|
+
last_sync_event_count: number;
|
|
64
|
+
last_sync_status: string | null;
|
|
65
|
+
name: string;
|
|
66
|
+
source_type: string;
|
|
67
|
+
sync_schedule: string | null;
|
|
68
|
+
sync_strategy: string;
|
|
70
69
|
updated_at: string;
|
|
70
|
+
workspace_id: string;
|
|
71
71
|
}>;
|
|
72
72
|
update(dataSourceId: DataSourceId | string, body: components['schemas']['UpdateDataSourceRequest']): Promise<{
|
|
73
|
-
id: string;
|
|
74
|
-
workspace_id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
display_name: string | null;
|
|
77
|
-
source_type: string;
|
|
78
73
|
connection_config: {
|
|
79
74
|
[key: string]: unknown;
|
|
80
75
|
};
|
|
76
|
+
created_at: string;
|
|
77
|
+
discovered_by: string | null;
|
|
78
|
+
display_name: string | null;
|
|
81
79
|
entity_types: string[] | null;
|
|
82
80
|
field_mappings: {
|
|
83
81
|
[key: string]: unknown;
|
|
84
82
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
last_sync_at: string | null;
|
|
88
|
-
last_sync_status: string | null;
|
|
89
|
-
last_sync_event_count: number;
|
|
83
|
+
health_status: string;
|
|
84
|
+
id: string;
|
|
90
85
|
is_active: boolean;
|
|
91
86
|
is_stale: boolean;
|
|
92
|
-
health_status: string;
|
|
93
87
|
last_health_check: string | null;
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
last_sync_at: string | null;
|
|
89
|
+
last_sync_event_count: number;
|
|
90
|
+
last_sync_status: string | null;
|
|
91
|
+
name: string;
|
|
92
|
+
source_type: string;
|
|
93
|
+
sync_schedule: string | null;
|
|
94
|
+
sync_strategy: string;
|
|
96
95
|
updated_at: string;
|
|
96
|
+
workspace_id: string;
|
|
97
97
|
}>;
|
|
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<{
|
|
101
101
|
data_source_id: string;
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
event_count: number;
|
|
103
|
+
failed_count: number;
|
|
104
104
|
health_status: string;
|
|
105
|
+
is_active: boolean;
|
|
105
106
|
last_sync_at: string | null;
|
|
106
|
-
last_sync_status: string | null;
|
|
107
107
|
last_sync_event_count: number;
|
|
108
|
-
|
|
108
|
+
last_sync_status: string | null;
|
|
109
|
+
name: string;
|
|
109
110
|
synced_count: number;
|
|
110
|
-
failed_count: number;
|
|
111
111
|
}>;
|
|
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
|
-
timeline: components["schemas"]["SyncHistoryEntry"][];
|
|
117
116
|
recent_failures: components["schemas"]["SyncFailureEntry"][];
|
|
117
|
+
timeline: components["schemas"]["SyncHistoryEntry"][];
|
|
118
118
|
}>;
|
|
119
119
|
}
|
|
120
120
|
//# sourceMappingURL=data-sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../src/resources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;IACxD,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAS7D,IAAI,CAAC,MAAM,CAAC,EAAE,qBAAqB
|
|
1
|
+
{"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../src/resources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;IACxD,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAS7D,IAAI,CAAC,MAAM,CAAC,EAAE,qBAAqB;;;eAoDk0sb,qBAAsB;;;IA5C33sb,GAAG,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;IAQvC,MAAM,CACV,YAAY,EAAE,YAAY,GAAG,MAAM,EACnC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAUlD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhE,kEAAkE;IAC5D,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;;;;;;;;;;;;IAQnD,wEAAwE;IAClE,cAAc,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;;;yBAQwr0T,qBAAsB;kBAAyE,qBAAsB;;CADt20T"}
|
|
@@ -2,45 +2,45 @@ import type { components } from '../generated/api.js';
|
|
|
2
2
|
import { WorkspaceScopedResource } from './base.js';
|
|
3
3
|
export declare class FunctionsResource extends WorkspaceScopedResource {
|
|
4
4
|
list(): Promise<{
|
|
5
|
-
items: components["schemas"]["FunctionDef"][];
|
|
6
5
|
count: number;
|
|
6
|
+
items: components["schemas"]["FunctionDef"][];
|
|
7
7
|
}>;
|
|
8
8
|
create(body: components['schemas']['FunctionCreateRequest']): Promise<{
|
|
9
|
-
name: components["schemas"]["NameString"];
|
|
10
9
|
catalog?: string;
|
|
11
|
-
schema?: string;
|
|
12
10
|
description?: components["schemas"]["DescriptionString"];
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
function_type?: string;
|
|
13
13
|
input_schema?: {
|
|
14
14
|
[key: string]: unknown;
|
|
15
15
|
};
|
|
16
|
+
name: components["schemas"]["NameString"];
|
|
16
17
|
returns_table?: boolean;
|
|
17
|
-
|
|
18
|
-
function_type?: string;
|
|
18
|
+
schema?: string;
|
|
19
19
|
}>;
|
|
20
20
|
delete(functionName: string): Promise<void>;
|
|
21
21
|
test(functionName: string, body: components['schemas']['FunctionTestRequest']): Promise<{
|
|
22
|
-
result?: unknown;
|
|
23
22
|
duration_ms?: number;
|
|
24
23
|
error?: string | null;
|
|
25
24
|
function_name?: string;
|
|
25
|
+
result?: unknown;
|
|
26
26
|
}>;
|
|
27
27
|
getCatalog(): Promise<{
|
|
28
|
-
functions: components["schemas"]["CatalogFunctionDef"][];
|
|
29
|
-
count?: number;
|
|
30
28
|
catalog?: string;
|
|
29
|
+
count?: number;
|
|
30
|
+
functions: components["schemas"]["CatalogFunctionDef"][];
|
|
31
31
|
schema?: string;
|
|
32
32
|
}>;
|
|
33
33
|
query(body: components['schemas']['QueryRequest']): Promise<{
|
|
34
|
-
results?: {
|
|
35
|
-
[key: string]: unknown;
|
|
36
|
-
}[];
|
|
37
34
|
count?: number;
|
|
38
35
|
duration_ms?: number;
|
|
39
36
|
error?: string | null;
|
|
37
|
+
results?: {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
}[];
|
|
40
40
|
}>;
|
|
41
41
|
sync(): Promise<{
|
|
42
|
-
items: components["schemas"]["FunctionDef"][];
|
|
43
42
|
count: number;
|
|
43
|
+
items: components["schemas"]["FunctionDef"][];
|
|
44
44
|
}>;
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.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
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/resources/functions.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;;eAyD+1xX,qBAAsB;;IAjDz3xX,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;;sBAiDy4vX,qBAAsB;;;;;;cAAic,qBAAsB;;;;IAxCj7wX,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM3C,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;IAS7E,UAAU;;;mBAyBs31P,qBAAsB;;;IAjBt51P,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC;;;;;;;;IASjD,IAAI;;eAQ+1xX,qBAAsB;;CADh4xX"}
|