@amigo-ai/platform-sdk 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -8
- package/dist/core/branded-types.js +1 -0
- package/dist/core/branded-types.js.map +1 -1
- package/dist/core/errors.js +43 -3
- package/dist/core/errors.js.map +1 -1
- package/dist/core/openapi-client.js +60 -48
- package/dist/core/openapi-client.js.map +1 -1
- package/dist/core/rate-limit.js +13 -0
- package/dist/core/rate-limit.js.map +1 -0
- package/dist/core/webhooks.js +17 -0
- package/dist/core/webhooks.js.map +1 -0
- package/dist/generated/api.js +2 -0
- package/dist/{types → generated}/api.js.map +1 -1
- package/dist/index.cjs +1668 -371
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +59 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1658 -371
- package/dist/index.mjs.map +4 -4
- package/dist/resources/actions.js +52 -0
- package/dist/resources/actions.js.map +1 -0
- package/dist/resources/agents.js +30 -30
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/analytics.js +34 -15
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/api-keys.js +17 -19
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/audit.js +35 -0
- package/dist/resources/audit.js.map +1 -0
- package/dist/resources/base.js +12 -44
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/billing.js +35 -7
- package/dist/resources/billing.js.map +1 -1
- package/dist/resources/calls.js +25 -9
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/compliance.js +19 -0
- package/dist/resources/compliance.js.map +1 -0
- package/dist/resources/context-graphs.js +46 -18
- package/dist/resources/context-graphs.js.map +1 -1
- package/dist/resources/data-sources.js +30 -12
- package/dist/resources/data-sources.js.map +1 -1
- package/dist/resources/functions.js +42 -0
- package/dist/resources/functions.js.map +1 -0
- package/dist/resources/integrations.js +32 -15
- package/dist/resources/integrations.js.map +1 -1
- package/dist/resources/memory.js +13 -4
- package/dist/resources/memory.js.map +1 -1
- package/dist/resources/operators.js +102 -0
- package/dist/resources/operators.js.map +1 -0
- package/dist/resources/personas.js +31 -0
- package/dist/resources/personas.js.map +1 -0
- package/dist/resources/phone-numbers.js +31 -16
- package/dist/resources/phone-numbers.js.map +1 -1
- package/dist/resources/recordings.js +19 -0
- package/dist/resources/recordings.js.map +1 -0
- package/dist/resources/review-queue.js +94 -0
- package/dist/resources/review-queue.js.map +1 -0
- package/dist/resources/safety.js +31 -0
- package/dist/resources/safety.js.map +1 -0
- package/dist/resources/services.js +18 -12
- package/dist/resources/services.js.map +1 -1
- package/dist/resources/settings.js +50 -24
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/simulations.js +23 -17
- package/dist/resources/simulations.js.map +1 -1
- package/dist/resources/skills.js +22 -16
- package/dist/resources/skills.js.map +1 -1
- package/dist/resources/triggers.js +51 -0
- package/dist/resources/triggers.js.map +1 -0
- package/dist/resources/webhook-destinations.js +44 -0
- package/dist/resources/webhook-destinations.js.map +1 -0
- package/dist/resources/workspaces.js +24 -38
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js +58 -60
- package/dist/resources/world.js.map +1 -1
- package/dist/types/core/branded-types.d.ts +3 -0
- package/dist/types/core/branded-types.d.ts.map +1 -1
- package/dist/types/core/errors.d.ts +3 -0
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/openapi-client.d.ts +13 -5
- package/dist/types/core/openapi-client.d.ts.map +1 -1
- package/dist/types/core/rate-limit.d.ts +8 -0
- package/dist/types/core/rate-limit.d.ts.map +1 -0
- package/dist/types/core/webhooks.d.ts +9 -0
- package/dist/types/core/webhooks.d.ts.map +1 -0
- package/dist/types/generated/api.d.ts +35120 -0
- package/dist/types/generated/api.d.ts.map +1 -0
- package/dist/types/index.d.ts +45 -43
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +158 -0
- package/dist/types/resources/actions.d.ts.map +1 -0
- package/dist/types/resources/agents.d.ts +70 -22
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +100 -118
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +36 -7
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +70 -0
- package/dist/types/resources/audit.d.ts.map +1 -0
- package/dist/types/resources/base.d.ts +13 -13
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +52 -12
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +89 -35
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +45 -0
- package/dist/types/resources/compliance.d.ts.map +1 -0
- package/dist/types/resources/context-graphs.d.ts +77 -14
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +105 -9
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +46 -0
- package/dist/types/resources/functions.d.ts.map +1 -0
- package/dist/types/resources/integrations.d.ts +83 -12
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +26 -73
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +157 -0
- package/dist/types/resources/operators.d.ts.map +1 -0
- package/dist/types/resources/personas.d.ts +60 -0
- package/dist/types/resources/personas.d.ts.map +1 -0
- package/dist/types/resources/phone-numbers.d.ts +70 -10
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +29 -0
- package/dist/types/resources/recordings.d.ts.map +1 -0
- package/dist/types/resources/review-queue.d.ts +184 -0
- package/dist/types/resources/review-queue.d.ts.map +1 -0
- package/dist/types/resources/safety.d.ts +57 -0
- package/dist/types/resources/safety.d.ts.map +1 -0
- package/dist/types/resources/services.d.ts +85 -5
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +79 -78
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +41 -12
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +131 -6
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +129 -0
- package/dist/types/resources/triggers.d.ts.map +1 -0
- package/dist/types/resources/webhook-destinations.d.ts +75 -0
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -0
- package/dist/types/resources/workspaces.d.ts +60 -15
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +152 -143
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +13 -5
- package/dist/types/api.js +0 -12
- package/dist/types/types/api.d.ts +0 -739
- package/dist/types/types/api.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-queue.d.ts","sourceRoot":"","sources":["../../../src/resources/review-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,qBAAa,mBAAoB,SAAQ,uBAAuB;IACxD,IAAI,CAAC,MAAM,CAAC,EAAE,qBAAqB;eA6Igrma,qBAAsB;;;;;IArIzuma,GAAG,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;iBAqIo+pc,qBAAsB;iBAA+C,qBAAsB;;IA7Hjlqc,QAAQ;;;;;;IAQR,YAAY;eAqH2/lc,qBAAsB;;;;;;;0BAAyV,qBAAsB;;;IA7G54mc,UAAU,CAAC,MAAM,CAAC,EAAE,UAAU;eA6Gqrma,qBAAsB;;;;;IArGzuma,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;;;iBAqGi7pc,qBAAsB;iBAA+C,qBAAsB;;IA5Fjlqc,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;iBA4Fm7pc,qBAAsB;iBAA+C,qBAAsB;;IAnFjlqc,KAAK,CAAC,MAAM,EAAE,MAAM;;;;;IAQpB,OAAO,CAAC,MAAM,EAAE,MAAM;;;;;IAQtB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;;;iBAmEi7pc,qBAAsB;iBAA+C,qBAAsB;;IA1Djlqc,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;;;;;;IAS/D,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;IAS7D,UAAU,CAAC,MAAM,CAAC,EAAE,mBAAmB;eAwC4qma,qBAAsB;;;;;IAhCzuma,SAAS,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;IAQpC,cAAc,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;IAQzC,mBAAmB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;IAQlC,OAAO,CAAC,MAAM,EAAE,MAAM;;yBAQkxnc,qBAAsB;0BAAqF,qBAAsB;;CADh7nc"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
+
export declare class SafetyResource extends WorkspaceScopedResource {
|
|
4
|
+
getConfig(): Promise<{
|
|
5
|
+
triage_enabled: boolean;
|
|
6
|
+
triage_model: string;
|
|
7
|
+
triage_timeout_s: number;
|
|
8
|
+
triage_max_history_turns: number;
|
|
9
|
+
accumulation_enabled: boolean;
|
|
10
|
+
accumulation_window_size: number;
|
|
11
|
+
accumulation_single_turn_threshold: number;
|
|
12
|
+
accumulation_cumulative_count: number;
|
|
13
|
+
accumulation_mild_threshold: number;
|
|
14
|
+
accumulation_fast_track_level: number;
|
|
15
|
+
applied_template_ids: string[];
|
|
16
|
+
}>;
|
|
17
|
+
updateConfig(body: components['schemas']['UpdateSafetyConfigRequest']): Promise<{
|
|
18
|
+
triage_enabled: boolean;
|
|
19
|
+
triage_model: string;
|
|
20
|
+
triage_timeout_s: number;
|
|
21
|
+
triage_max_history_turns: number;
|
|
22
|
+
accumulation_enabled: boolean;
|
|
23
|
+
accumulation_window_size: number;
|
|
24
|
+
accumulation_single_turn_threshold: number;
|
|
25
|
+
accumulation_cumulative_count: number;
|
|
26
|
+
accumulation_mild_threshold: number;
|
|
27
|
+
accumulation_fast_track_level: number;
|
|
28
|
+
applied_template_ids: string[];
|
|
29
|
+
}>;
|
|
30
|
+
listTemplates(): Promise<{
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
regulation: string;
|
|
34
|
+
description: string;
|
|
35
|
+
category: string;
|
|
36
|
+
version: string;
|
|
37
|
+
rules: components["schemas"]["SafetyRuleResponse"][];
|
|
38
|
+
is_composite?: boolean;
|
|
39
|
+
template_ids?: string[];
|
|
40
|
+
}[]>;
|
|
41
|
+
getTemplate(templateId: string): Promise<{
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
regulation: string;
|
|
45
|
+
description: string;
|
|
46
|
+
category: string;
|
|
47
|
+
version: string;
|
|
48
|
+
rules: components["schemas"]["SafetyRuleResponse"][];
|
|
49
|
+
is_composite?: boolean;
|
|
50
|
+
template_ids?: string[];
|
|
51
|
+
}>;
|
|
52
|
+
applyTemplate(templateId: string, body: components['schemas']['ApplyTemplateRequest']): Promise<{
|
|
53
|
+
created_concepts: string[];
|
|
54
|
+
skipped: string[];
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=safety.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../../src/resources/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,cAAe,SAAQ,uBAAuB;IACnD,SAAS;;;;;;;;;;;;;IAQT,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;IASrE,aAAa;;;;;;;eAyBwvjc,qBAAsB;;;;IAjB3xjc,WAAW,CAAC,UAAU,EAAE,MAAM;;;;;;;eAiBuujc,qBAAsB;;;;IAT3xjc,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;CAQ5F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
2
|
import type { ServiceId } from '../core/branded-types.js';
|
|
3
3
|
import { WorkspaceScopedResource } from './base.js';
|
|
4
4
|
import type { ListParams } from '../core/utils.js';
|
|
@@ -12,10 +12,90 @@ export interface ListServicesParams extends ListParams {
|
|
|
12
12
|
* that skills can interact with via their tool definitions.
|
|
13
13
|
*/
|
|
14
14
|
export declare class ServicesResource extends WorkspaceScopedResource {
|
|
15
|
-
create(body: CreateServiceRequest): Promise<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
create(body: components['schemas']['CreateServiceRequest']): Promise<{
|
|
16
|
+
id: string;
|
|
17
|
+
workspace_id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
agent_id: string;
|
|
21
|
+
context_graph_id: string;
|
|
22
|
+
agent_name?: string | null;
|
|
23
|
+
context_graph_name?: string | null;
|
|
24
|
+
persona_name?: string | null;
|
|
25
|
+
keyterms: string[];
|
|
26
|
+
is_active: boolean;
|
|
27
|
+
version_sets: {
|
|
28
|
+
[key: string]: components["schemas"]["VersionSet"];
|
|
29
|
+
};
|
|
30
|
+
tags: components["schemas"]["ServiceTag"][];
|
|
31
|
+
tool_capacity: number;
|
|
32
|
+
safety_filters_enabled?: boolean;
|
|
33
|
+
channel_type?: "voice" | "text" | "scribe";
|
|
34
|
+
environment?: "sandbox" | "production";
|
|
35
|
+
voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
|
|
36
|
+
persona_id?: string | null;
|
|
37
|
+
is_system?: boolean;
|
|
38
|
+
created_at: string;
|
|
39
|
+
updated_at: string;
|
|
40
|
+
}>;
|
|
41
|
+
list(params?: ListServicesParams): Promise<{
|
|
42
|
+
items: components["schemas"]["ServiceResponse"][];
|
|
43
|
+
has_more: boolean;
|
|
44
|
+
continuation_token?: number | null;
|
|
45
|
+
total?: number | null;
|
|
46
|
+
}>;
|
|
47
|
+
get(serviceId: ServiceId | string): Promise<{
|
|
48
|
+
id: string;
|
|
49
|
+
workspace_id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
agent_id: string;
|
|
53
|
+
context_graph_id: string;
|
|
54
|
+
agent_name?: string | null;
|
|
55
|
+
context_graph_name?: string | null;
|
|
56
|
+
persona_name?: string | null;
|
|
57
|
+
keyterms: string[];
|
|
58
|
+
is_active: boolean;
|
|
59
|
+
version_sets: {
|
|
60
|
+
[key: string]: components["schemas"]["VersionSet"];
|
|
61
|
+
};
|
|
62
|
+
tags: components["schemas"]["ServiceTag"][];
|
|
63
|
+
tool_capacity: number;
|
|
64
|
+
safety_filters_enabled?: boolean;
|
|
65
|
+
channel_type?: "voice" | "text" | "scribe";
|
|
66
|
+
environment?: "sandbox" | "production";
|
|
67
|
+
voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
|
|
68
|
+
persona_id?: string | null;
|
|
69
|
+
is_system?: boolean;
|
|
70
|
+
created_at: string;
|
|
71
|
+
updated_at: string;
|
|
72
|
+
}>;
|
|
73
|
+
update(serviceId: ServiceId | string, body: components['schemas']['UpdateServiceRequest']): Promise<{
|
|
74
|
+
id: string;
|
|
75
|
+
workspace_id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
agent_id: string;
|
|
79
|
+
context_graph_id: string;
|
|
80
|
+
agent_name?: string | null;
|
|
81
|
+
context_graph_name?: string | null;
|
|
82
|
+
persona_name?: string | null;
|
|
83
|
+
keyterms: string[];
|
|
84
|
+
is_active: boolean;
|
|
85
|
+
version_sets: {
|
|
86
|
+
[key: string]: components["schemas"]["VersionSet"];
|
|
87
|
+
};
|
|
88
|
+
tags: components["schemas"]["ServiceTag"][];
|
|
89
|
+
tool_capacity: number;
|
|
90
|
+
safety_filters_enabled?: boolean;
|
|
91
|
+
channel_type?: "voice" | "text" | "scribe";
|
|
92
|
+
environment?: "sandbox" | "production";
|
|
93
|
+
voice_config?: components["schemas"]["ServiceVoiceConfig"] | null;
|
|
94
|
+
persona_id?: string | null;
|
|
95
|
+
is_system?: boolean;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}>;
|
|
19
99
|
delete(serviceId: ServiceId | string): Promise<void>;
|
|
20
100
|
}
|
|
21
101
|
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/resources/services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/resources/services.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,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;2BAwCyvsd,qBAAsB;;cAAwE,qBAAsB;;;;;uBAAimB,qBAAsB;;;;;;IA/B9hud,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;eA+Bmota,qBAAsB;;;;;IAvBzrta,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;2BAuBkxsd,qBAAsB;;cAAwE,qBAAsB;;;;;uBAAimB,qBAAsB;;;;;;IAf9hud,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;2BAe0tsd,qBAAsB;;cAAwE,qBAAsB;;;;;uBAAimB,qBAAsB;;;;;;IAN9hud,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -1,66 +1,5 @@
|
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
1
2
|
import { WorkspaceScopedResource } from './base.js';
|
|
2
|
-
export interface VoiceSettings {
|
|
3
|
-
voice_id: string | null;
|
|
4
|
-
speed: number | null;
|
|
5
|
-
tone: string | null;
|
|
6
|
-
volume: number | null;
|
|
7
|
-
language: string | null;
|
|
8
|
-
keyterms: string[];
|
|
9
|
-
sensitive_topics: string[];
|
|
10
|
-
correction_categories: string[];
|
|
11
|
-
pronunciation_dict_id: string | null;
|
|
12
|
-
post_call_analysis_enabled: boolean;
|
|
13
|
-
transcript_correction_enabled: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface BrandingConfig {
|
|
16
|
-
display_name: string | null;
|
|
17
|
-
logo_url: string | null;
|
|
18
|
-
primary_color: string | null;
|
|
19
|
-
support_email: string | null;
|
|
20
|
-
}
|
|
21
|
-
export interface BrandingSettings {
|
|
22
|
-
branding: BrandingConfig;
|
|
23
|
-
}
|
|
24
|
-
export interface OutreachRule {
|
|
25
|
-
name: string;
|
|
26
|
-
condition: Record<string, unknown>;
|
|
27
|
-
actions: Record<string, unknown>[];
|
|
28
|
-
}
|
|
29
|
-
export interface OutreachSettings {
|
|
30
|
-
rules: OutreachRule[];
|
|
31
|
-
data_templates: Record<string, unknown>[];
|
|
32
|
-
}
|
|
33
|
-
export interface MemoryDimensionConfig {
|
|
34
|
-
name: string;
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
weight: number;
|
|
37
|
-
extraction_mode: string;
|
|
38
|
-
}
|
|
39
|
-
export interface MemorySettings {
|
|
40
|
-
dimensions: MemoryDimensionConfig[];
|
|
41
|
-
backfill_requested: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface SecuritySettings {
|
|
44
|
-
voice_auth_enabled: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface RetentionSettings {
|
|
47
|
-
call_recordings_days: number | null;
|
|
48
|
-
call_transcripts_days: number | null;
|
|
49
|
-
phi_data_days: number | null;
|
|
50
|
-
world_events_days: number | null;
|
|
51
|
-
audit_log_days: number | null;
|
|
52
|
-
legal_hold: boolean;
|
|
53
|
-
legal_hold_reason: string | null;
|
|
54
|
-
}
|
|
55
|
-
export interface WorkflowConfig {
|
|
56
|
-
name: string;
|
|
57
|
-
trigger: Record<string, unknown>;
|
|
58
|
-
actions: Record<string, unknown>[];
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface WorkflowSettings {
|
|
62
|
-
workflows: WorkflowConfig[];
|
|
63
|
-
}
|
|
64
3
|
/**
|
|
65
4
|
* Workspace-level settings — configure voice behavior, branding, security
|
|
66
5
|
* policies, data retention, outreach rules, and more.
|
|
@@ -68,35 +7,97 @@ export interface WorkflowSettings {
|
|
|
68
7
|
* Each sub-resource has `get()` and `update()`.
|
|
69
8
|
*/
|
|
70
9
|
export declare class SettingsResource extends WorkspaceScopedResource {
|
|
71
|
-
private getSettings;
|
|
72
|
-
private updateSettings;
|
|
73
10
|
readonly voice: {
|
|
74
|
-
get: () => Promise<
|
|
75
|
-
|
|
11
|
+
get: () => Promise<{
|
|
12
|
+
voice_id: string | null;
|
|
13
|
+
tone: string | null;
|
|
14
|
+
speed: number | null;
|
|
15
|
+
volume: number | null;
|
|
16
|
+
language: string;
|
|
17
|
+
keyterms: string[];
|
|
18
|
+
correction_categories: string[];
|
|
19
|
+
pronunciation_dict_id: string | null;
|
|
20
|
+
sensitive_topics: string[];
|
|
21
|
+
post_call_analysis_enabled: boolean;
|
|
22
|
+
transcript_correction_enabled: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
update: (body: components["schemas"]["VoiceSettingsRequest"]) => Promise<{
|
|
25
|
+
voice_id: string | null;
|
|
26
|
+
tone: string | null;
|
|
27
|
+
speed: number | null;
|
|
28
|
+
volume: number | null;
|
|
29
|
+
language: string;
|
|
30
|
+
keyterms: string[];
|
|
31
|
+
correction_categories: string[];
|
|
32
|
+
pronunciation_dict_id: string | null;
|
|
33
|
+
sensitive_topics: string[];
|
|
34
|
+
post_call_analysis_enabled: boolean;
|
|
35
|
+
transcript_correction_enabled: boolean;
|
|
36
|
+
}>;
|
|
76
37
|
};
|
|
77
38
|
readonly branding: {
|
|
78
|
-
get: () => Promise<
|
|
79
|
-
|
|
39
|
+
get: () => Promise<{
|
|
40
|
+
branding: components["schemas"]["BrandingConfig"];
|
|
41
|
+
}>;
|
|
42
|
+
update: (body: components["schemas"]["BrandingSettingsRequest"]) => Promise<{
|
|
43
|
+
branding: components["schemas"]["BrandingConfig"];
|
|
44
|
+
}>;
|
|
80
45
|
};
|
|
81
46
|
readonly outreach: {
|
|
82
|
-
get: () => Promise<
|
|
83
|
-
|
|
47
|
+
get: () => Promise<{
|
|
48
|
+
rules: components["schemas"]["OutreachRule"][];
|
|
49
|
+
data_templates: components["schemas"]["DataTemplate-Output"][];
|
|
50
|
+
}>;
|
|
51
|
+
update: (body: components["schemas"]["OutreachSettingsRequest"]) => Promise<{
|
|
52
|
+
rules: components["schemas"]["OutreachRule"][];
|
|
53
|
+
data_templates: components["schemas"]["DataTemplate-Output"][];
|
|
54
|
+
}>;
|
|
84
55
|
};
|
|
85
56
|
readonly memory: {
|
|
86
|
-
get: () => Promise<
|
|
87
|
-
|
|
57
|
+
get: () => Promise<{
|
|
58
|
+
dimensions: components["schemas"]["MemoryDimension"][];
|
|
59
|
+
backfill_requested: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
update: (body: components["schemas"]["MemorySettingsRequest"]) => Promise<{
|
|
62
|
+
dimensions: components["schemas"]["MemoryDimension"][];
|
|
63
|
+
backfill_requested: boolean;
|
|
64
|
+
}>;
|
|
88
65
|
};
|
|
89
66
|
readonly security: {
|
|
90
|
-
get: () => Promise<
|
|
91
|
-
|
|
67
|
+
get: () => Promise<{
|
|
68
|
+
voice_auth_enabled?: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
update: (body: components["schemas"]["SecuritySettingsRequest"]) => Promise<{
|
|
71
|
+
voice_auth_enabled?: boolean;
|
|
72
|
+
}>;
|
|
92
73
|
};
|
|
93
74
|
readonly retention: {
|
|
94
|
-
get: () => Promise<
|
|
95
|
-
|
|
75
|
+
get: () => Promise<{
|
|
76
|
+
call_recordings_days: number;
|
|
77
|
+
call_transcripts_days: number;
|
|
78
|
+
audit_log_days: number;
|
|
79
|
+
world_events_days: number;
|
|
80
|
+
phi_data_days: number;
|
|
81
|
+
legal_hold: boolean;
|
|
82
|
+
legal_hold_reason?: string | null;
|
|
83
|
+
}>;
|
|
84
|
+
update: (body: components["schemas"]["RetentionPolicyRequest"]) => Promise<{
|
|
85
|
+
call_recordings_days: number;
|
|
86
|
+
call_transcripts_days: number;
|
|
87
|
+
audit_log_days: number;
|
|
88
|
+
world_events_days: number;
|
|
89
|
+
phi_data_days: number;
|
|
90
|
+
legal_hold: boolean;
|
|
91
|
+
legal_hold_reason?: string | null;
|
|
92
|
+
}>;
|
|
96
93
|
};
|
|
97
94
|
readonly workflows: {
|
|
98
|
-
get: () => Promise<
|
|
99
|
-
|
|
95
|
+
get: () => Promise<{
|
|
96
|
+
workflows?: components["schemas"]["WorkflowSpec-Output"][];
|
|
97
|
+
}>;
|
|
98
|
+
update: (body: components["schemas"]["WorkflowSettingsRequest"]) => Promise<{
|
|
99
|
+
workflows?: components["schemas"]["WorkflowSpec-Output"][];
|
|
100
|
+
}>;
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
103
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/resources/settings.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/resources/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,uBAAuB;IAC3D,QAAQ,CAAC,KAAK;;;;;;;;;;;;;;uBAOS,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;MAOnE;IAED,QAAQ,CAAC,QAAQ;;sBAgGsg3O,qBAAsB;;uBAzFth3O,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;sBAyFg92O,qBAAsB;;MAlF5i3O;IAED,QAAQ,CAAC,QAAQ;;mBAgF494Z,qBAAsB;4BAAiF,qBAAsB;;uBAzEnl5Z,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;mBAyEs64Z,qBAAsB;4BAAiF,qBAAsB;;MAlEzm5Z;IAED,QAAQ,CAAC,MAAM;;wBAgE+/vY,qBAAsB;;;uBAzD7gwY,UAAU,CAAC,SAAS,CAAC,CAAC,uBAAuB,CAAC;wBAyDy8vY,qBAAsB;;;MAlDniwY;IAED,QAAQ,CAAC,QAAQ;;;;uBAOM,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;MAOtE;IAED,QAAQ,CAAC,SAAS;;;;;;;;;;uBAOK,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;;;;;;;;;MAOrE;IAED,QAAQ,CAAC,SAAS;;wBAgB4xwiB,qBAAsB;;uBAT7ywiB,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;wBASuuwiB,qBAAsB;;MAFn0wiB;CACF"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
2
|
import type { SimulationSessionId } from '../core/branded-types.js';
|
|
3
3
|
import { WorkspaceScopedResource } from './base.js';
|
|
4
|
-
export interface SimulationIntelligence {
|
|
5
|
-
session_id: string;
|
|
6
|
-
intelligence: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
4
|
/**
|
|
9
5
|
* Simulations — interactive agent testing via the Playground.
|
|
10
6
|
*
|
|
@@ -14,26 +10,59 @@ export interface SimulationIntelligence {
|
|
|
14
10
|
*/
|
|
15
11
|
export declare class SimulationsResource extends WorkspaceScopedResource {
|
|
16
12
|
/** Start a simulation session — returns the agent's greeting and initial snapshot */
|
|
17
|
-
createSession(body:
|
|
13
|
+
createSession(body: components['schemas']['src__routes__simulations__CreateSessionRequest']): Promise<{
|
|
14
|
+
session_id: string;
|
|
15
|
+
greeting: string;
|
|
16
|
+
is_terminal: boolean;
|
|
17
|
+
snapshot: components["schemas"]["SimulationSnapshotResponse"];
|
|
18
|
+
}>;
|
|
18
19
|
/** Get the current snapshot of a session */
|
|
19
|
-
getSession(sessionId: SimulationSessionId | string): Promise<
|
|
20
|
+
getSession(sessionId: SimulationSessionId | string): Promise<{
|
|
21
|
+
current_state: components["schemas"]["SimulationStateResponse"];
|
|
22
|
+
reachable_states?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}[];
|
|
25
|
+
turn_policy?: components["schemas"]["SimulationTurnPolicyResponse"];
|
|
26
|
+
conversation_history?: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}[];
|
|
29
|
+
states_visited?: string[];
|
|
30
|
+
state_transitions?: string[][];
|
|
31
|
+
total_turns?: number;
|
|
32
|
+
tools_called?: string[];
|
|
33
|
+
terminal_reached?: boolean;
|
|
34
|
+
context_graph_topology?: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
}[];
|
|
37
|
+
terminal_state?: string | null;
|
|
38
|
+
} & {
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
}>;
|
|
20
41
|
/** Delete a simulation session */
|
|
21
42
|
deleteSession(sessionId: SimulationSessionId | string): Promise<{
|
|
22
|
-
|
|
43
|
+
[key: string]: string;
|
|
23
44
|
}>;
|
|
24
45
|
/**
|
|
25
46
|
* Send a caller utterance and advance the session by one turn.
|
|
26
47
|
* Returns the agent's response observation and updated snapshot.
|
|
27
48
|
*/
|
|
28
|
-
step(body:
|
|
49
|
+
step(body: components['schemas']['StepRequest']): Promise<{
|
|
50
|
+
observation: components["schemas"]["SimulationObservation"];
|
|
51
|
+
snapshot: components["schemas"]["SimulationSnapshotResponse"];
|
|
52
|
+
}>;
|
|
29
53
|
/**
|
|
30
54
|
* Get LLM-generated caller message suggestions for the current session state.
|
|
31
55
|
* Helps exploratory testing by suggesting realistic next caller turns.
|
|
32
56
|
*/
|
|
33
|
-
recommend(
|
|
34
|
-
|
|
57
|
+
recommend(body: components['schemas']['RecommendRequest']): Promise<{
|
|
58
|
+
[key: string]: unknown;
|
|
35
59
|
}>;
|
|
36
60
|
/** Get AI-generated call intelligence for a completed session */
|
|
37
|
-
getIntelligence(sessionId: SimulationSessionId | string): Promise<
|
|
61
|
+
getIntelligence(sessionId: SimulationSessionId | string): Promise<{
|
|
62
|
+
session_id: string;
|
|
63
|
+
intelligence: {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
38
67
|
}
|
|
39
68
|
//# sourceMappingURL=simulations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulations.d.ts","sourceRoot":"","sources":["../../../src/resources/simulations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"simulations.d.ts","sourceRoot":"","sources":["../../../src/resources/simulations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;IAC9D,qFAAqF;IAC/E,aAAa,CACjB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,gDAAgD,CAAC;;;;kBA+D4i3d,qBAAsB;;IArDjp3d,4CAA4C;IACtC,UAAU,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM;uBAoD8u3d,qBAAsB;;;;sBAA8mB,qBAAsB;;;;;;;;;;;;;;;;IA5Ch84d,kCAAkC;IAC5B,aAAa,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM;;;IAQ3D;;;OAGG;IACG,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;qBA+Bi39d,qBAAsB;kBAAgD,qBAAsB;;IAtBlg+d;;;OAGG;IACG,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;IAS/D,iEAAiE;IAC3D,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM;;;;;;CAO9D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { components } from '../generated/api.js';
|
|
2
2
|
import type { SkillId } from '../core/branded-types.js';
|
|
3
3
|
import { WorkspaceScopedResource } from './base.js';
|
|
4
4
|
import type { ListParams } from '../core/utils.js';
|
|
@@ -13,19 +13,144 @@ export interface ListSkillsParams extends ListParams {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class SkillsResource extends WorkspaceScopedResource {
|
|
15
15
|
/** Create a new skill */
|
|
16
|
-
create(body: CreateSkillRequest): Promise<
|
|
16
|
+
create(body: components['schemas']['CreateSkillRequest']): Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
workspace_id: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
system_prompt: string;
|
|
23
|
+
input_schema: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
result_schema: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
} | null;
|
|
29
|
+
model: string;
|
|
30
|
+
max_tokens: number;
|
|
31
|
+
max_result_chars: number;
|
|
32
|
+
max_input_tokens: number | null;
|
|
33
|
+
timeout_s: number;
|
|
34
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
35
|
+
enable_caching: boolean;
|
|
36
|
+
enable_citations: boolean;
|
|
37
|
+
use_structured_output: boolean;
|
|
38
|
+
integration_tools: components["schemas"]["src__models__IntegrationToolRef"][];
|
|
39
|
+
static_tools: components["schemas"]["src__models__StaticToolDef"][];
|
|
40
|
+
delivery: "interrupt" | "queue";
|
|
41
|
+
urgency_keywords: string[];
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
44
|
+
max_agent_turns: number;
|
|
45
|
+
checkpoint_enabled: boolean;
|
|
46
|
+
approval_required: boolean;
|
|
47
|
+
browser_start_url: string | null;
|
|
48
|
+
browser_allowed_domains: string[];
|
|
49
|
+
browser_auth_integration: string | null;
|
|
50
|
+
version: number;
|
|
51
|
+
created_at: string;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
}>;
|
|
17
54
|
/** List skills in the workspace */
|
|
18
|
-
list(params?: ListSkillsParams): Promise<
|
|
55
|
+
list(params?: ListSkillsParams): Promise<{
|
|
56
|
+
items: components["schemas"]["SkillResponse"][];
|
|
57
|
+
has_more: boolean;
|
|
58
|
+
continuation_token?: number | null;
|
|
59
|
+
total?: number | null;
|
|
60
|
+
}>;
|
|
19
61
|
/** Get a single skill */
|
|
20
|
-
get(skillId: SkillId | string): Promise<
|
|
62
|
+
get(skillId: SkillId | string): Promise<{
|
|
63
|
+
id: string;
|
|
64
|
+
workspace_id: string;
|
|
65
|
+
slug: string;
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
system_prompt: string;
|
|
69
|
+
input_schema: {
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
result_schema: {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
} | null;
|
|
75
|
+
model: string;
|
|
76
|
+
max_tokens: number;
|
|
77
|
+
max_result_chars: number;
|
|
78
|
+
max_input_tokens: number | null;
|
|
79
|
+
timeout_s: number;
|
|
80
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
81
|
+
enable_caching: boolean;
|
|
82
|
+
enable_citations: boolean;
|
|
83
|
+
use_structured_output: boolean;
|
|
84
|
+
integration_tools: components["schemas"]["src__models__IntegrationToolRef"][];
|
|
85
|
+
static_tools: components["schemas"]["src__models__StaticToolDef"][];
|
|
86
|
+
delivery: "interrupt" | "queue";
|
|
87
|
+
urgency_keywords: string[];
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
90
|
+
max_agent_turns: number;
|
|
91
|
+
checkpoint_enabled: boolean;
|
|
92
|
+
approval_required: boolean;
|
|
93
|
+
browser_start_url: string | null;
|
|
94
|
+
browser_allowed_domains: string[];
|
|
95
|
+
browser_auth_integration: string | null;
|
|
96
|
+
version: number;
|
|
97
|
+
created_at: string;
|
|
98
|
+
updated_at: string;
|
|
99
|
+
}>;
|
|
21
100
|
/** Update a skill */
|
|
22
|
-
update(skillId: SkillId | string, body: UpdateSkillRequest): Promise<
|
|
101
|
+
update(skillId: SkillId | string, body: components['schemas']['UpdateSkillRequest']): Promise<{
|
|
102
|
+
id: string;
|
|
103
|
+
workspace_id: string;
|
|
104
|
+
slug: string;
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
system_prompt: string;
|
|
108
|
+
input_schema: {
|
|
109
|
+
[key: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
result_schema: {
|
|
112
|
+
[key: string]: unknown;
|
|
113
|
+
} | null;
|
|
114
|
+
model: string;
|
|
115
|
+
max_tokens: number;
|
|
116
|
+
max_result_chars: number;
|
|
117
|
+
max_input_tokens: number | null;
|
|
118
|
+
timeout_s: number;
|
|
119
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
120
|
+
enable_caching: boolean;
|
|
121
|
+
enable_citations: boolean;
|
|
122
|
+
use_structured_output: boolean;
|
|
123
|
+
integration_tools: components["schemas"]["src__models__IntegrationToolRef"][];
|
|
124
|
+
static_tools: components["schemas"]["src__models__StaticToolDef"][];
|
|
125
|
+
delivery: "interrupt" | "queue";
|
|
126
|
+
urgency_keywords: string[];
|
|
127
|
+
enabled: boolean;
|
|
128
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
129
|
+
max_agent_turns: number;
|
|
130
|
+
checkpoint_enabled: boolean;
|
|
131
|
+
approval_required: boolean;
|
|
132
|
+
browser_start_url: string | null;
|
|
133
|
+
browser_allowed_domains: string[];
|
|
134
|
+
browser_auth_integration: string | null;
|
|
135
|
+
version: number;
|
|
136
|
+
created_at: string;
|
|
137
|
+
updated_at: string;
|
|
138
|
+
}>;
|
|
23
139
|
/** Delete a skill */
|
|
24
140
|
delete(skillId: SkillId | string): Promise<void>;
|
|
25
141
|
/**
|
|
26
142
|
* Test a skill with a sample input.
|
|
27
143
|
* Executes the skill in a sandbox and returns the result.
|
|
28
144
|
*/
|
|
29
|
-
test(skillId: SkillId | string, body:
|
|
145
|
+
test(skillId: SkillId | string, body: components['schemas']['TestSkillRequest']): Promise<{
|
|
146
|
+
result: string;
|
|
147
|
+
duration_ms: number;
|
|
148
|
+
input_tokens: number;
|
|
149
|
+
output_tokens: number;
|
|
150
|
+
cached_tokens: number;
|
|
151
|
+
rounds: number;
|
|
152
|
+
sub_tool_logs: components["schemas"]["SubToolLog"][];
|
|
153
|
+
error?: string | null;
|
|
154
|
+
}>;
|
|
30
155
|
}
|
|
31
156
|
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/resources/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/resources/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD,yBAAyB;IACnB,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;2BAyD06le,qBAAsB;sBAAgG,qBAAsB;;;;;;;;;;;;;;;IAhDpnme,mCAAmC;IAC7B,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB;eA+C6jta,qBAAsB;;;;;IAvCvnta,yBAAyB;IACnB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;2BAsCq8le,qBAAsB;sBAAgG,qBAAsB;;;;;;;;;;;;;;;IA9Bpnme,qBAAqB;IACf,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;2BA6B+4le,qBAAsB;sBAAgG,qBAAsB;;;;;;;;;;;;;;;IApBpnme,qBAAqB;IACf,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtD;;;OAGG;IACG,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;;uBASqm2f,qBAAsB;;;CADjt2f"}
|