@amigo-ai/platform-sdk 0.5.2 → 0.5.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 +81 -7
- package/api.md +3 -0
- package/dist/index.cjs +42 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +42 -10
- package/dist/index.mjs.map +2 -2
- package/dist/resources/base.js +7 -2
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +22 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +13373 -13213
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -166
- package/dist/types/resources/agents.d.ts +88 -88
- package/dist/types/resources/analytics.d.ts +39 -39
- package/dist/types/resources/api-keys.d.ts +29 -29
- package/dist/types/resources/audit.d.ts +73 -73
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +36 -36
- package/dist/types/resources/calls.d.ts +106 -106
- package/dist/types/resources/compliance.d.ts +17 -17
- package/dist/types/resources/context-graphs.d.ts +643 -643
- package/dist/types/resources/data-sources.d.ts +81 -81
- package/dist/types/resources/functions.d.ts +22 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +258 -258
- package/dist/types/resources/memory.d.ts +35 -35
- package/dist/types/resources/operators.d.ts +147 -147
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +37 -37
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +62 -62
- package/dist/types/resources/recordings.d.ts +9 -9
- package/dist/types/resources/review-queue.d.ts +331 -331
- package/dist/types/resources/safety.d.ts +33 -33
- package/dist/types/resources/services.d.ts +142 -142
- package/dist/types/resources/settings.d.ts +254 -254
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +73 -73
- package/dist/types/resources/skills.d.ts +163 -163
- package/dist/types/resources/triggers.d.ts +74 -74
- package/dist/types/resources/webhook-destinations.d.ts +57 -57
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +69 -35
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +216 -216
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -16,292 +16,292 @@ export interface ListActionsParams extends ListParams {
|
|
|
16
16
|
export declare class ActionsResource extends WorkspaceScopedResource {
|
|
17
17
|
/** Create a new action */
|
|
18
18
|
create(body: components['schemas']['CreateSkillRequest']): Promise<{
|
|
19
|
-
approval_required: boolean;
|
|
20
|
-
browser_allowed_domains: string[];
|
|
21
|
-
browser_auth_integration: string | null;
|
|
22
|
-
browser_start_url: string | null;
|
|
23
|
-
checkpoint_enabled: boolean;
|
|
24
|
-
created_at: string;
|
|
25
|
-
delivery: "interrupt" | "queue";
|
|
26
|
-
description: string;
|
|
27
|
-
enable_caching: boolean;
|
|
28
|
-
enable_citations: boolean;
|
|
29
|
-
enabled: boolean;
|
|
30
|
-
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
31
19
|
id: string;
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
system_prompt: string;
|
|
32
25
|
input_schema: {
|
|
33
26
|
[x: string]: unknown;
|
|
34
27
|
};
|
|
35
|
-
integration_tools: {
|
|
36
|
-
endpoint: string;
|
|
37
|
-
integration: string;
|
|
38
|
-
}[];
|
|
39
|
-
max_agent_turns: number;
|
|
40
|
-
max_input_tokens: number | null;
|
|
41
|
-
max_result_chars: number;
|
|
42
|
-
max_tokens: number;
|
|
43
|
-
model: string;
|
|
44
|
-
name: string;
|
|
45
28
|
result_schema: {
|
|
46
29
|
[x: string]: unknown;
|
|
47
30
|
} | null;
|
|
48
|
-
|
|
31
|
+
model: string;
|
|
32
|
+
max_tokens: number;
|
|
33
|
+
max_result_chars: number;
|
|
34
|
+
max_input_tokens: number | null;
|
|
35
|
+
timeout_s: number;
|
|
36
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
37
|
+
enable_caching: boolean;
|
|
38
|
+
enable_citations: boolean;
|
|
39
|
+
use_structured_output: boolean;
|
|
40
|
+
integration_tools: {
|
|
41
|
+
integration: string;
|
|
42
|
+
endpoint: string;
|
|
43
|
+
}[];
|
|
49
44
|
static_tools: {
|
|
45
|
+
name: string;
|
|
50
46
|
description: string;
|
|
51
|
-
handler: string;
|
|
52
47
|
input_schema: {
|
|
53
48
|
[x: string]: unknown;
|
|
54
49
|
};
|
|
55
|
-
|
|
50
|
+
handler: string;
|
|
56
51
|
}[];
|
|
57
|
-
|
|
58
|
-
thinking_effort: ("low" | "medium" | "high") | null;
|
|
59
|
-
timeout_s: number;
|
|
60
|
-
updated_at: string;
|
|
52
|
+
delivery: "interrupt" | "queue";
|
|
61
53
|
urgency_keywords: string[];
|
|
62
|
-
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
56
|
+
max_agent_turns: number;
|
|
57
|
+
checkpoint_enabled: boolean;
|
|
58
|
+
approval_required: boolean;
|
|
59
|
+
browser_start_url: string | null;
|
|
60
|
+
browser_allowed_domains: string[];
|
|
61
|
+
browser_auth_integration: string | null;
|
|
63
62
|
version: number;
|
|
64
|
-
|
|
63
|
+
created_at: string;
|
|
64
|
+
updated_at: string;
|
|
65
65
|
} & import("../index.js").ResponseMetadata>;
|
|
66
66
|
/** List actions in the workspace */
|
|
67
67
|
list(params?: ListActionsParams): Promise<{
|
|
68
|
-
continuation_token?: number | null | undefined;
|
|
69
|
-
has_more: boolean;
|
|
70
68
|
items: {
|
|
71
|
-
approval_required: boolean;
|
|
72
|
-
browser_allowed_domains: string[];
|
|
73
|
-
browser_auth_integration: string | null;
|
|
74
|
-
browser_start_url: string | null;
|
|
75
|
-
checkpoint_enabled: boolean;
|
|
76
|
-
created_at: string;
|
|
77
|
-
delivery: "interrupt" | "queue";
|
|
78
|
-
description: string;
|
|
79
|
-
enable_caching: boolean;
|
|
80
|
-
enable_citations: boolean;
|
|
81
|
-
enabled: boolean;
|
|
82
|
-
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
83
69
|
id: string;
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
slug: string;
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
system_prompt: string;
|
|
84
75
|
input_schema: {
|
|
85
76
|
[x: string]: unknown;
|
|
86
77
|
};
|
|
87
|
-
integration_tools: {
|
|
88
|
-
endpoint: string;
|
|
89
|
-
integration: string;
|
|
90
|
-
}[];
|
|
91
|
-
max_agent_turns: number;
|
|
92
|
-
max_input_tokens: number | null;
|
|
93
|
-
max_result_chars: number;
|
|
94
|
-
max_tokens: number;
|
|
95
|
-
model: string;
|
|
96
|
-
name: string;
|
|
97
78
|
result_schema: {
|
|
98
79
|
[x: string]: unknown;
|
|
99
80
|
} | null;
|
|
100
|
-
|
|
81
|
+
model: string;
|
|
82
|
+
max_tokens: number;
|
|
83
|
+
max_result_chars: number;
|
|
84
|
+
max_input_tokens: number | null;
|
|
85
|
+
timeout_s: number;
|
|
86
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
87
|
+
enable_caching: boolean;
|
|
88
|
+
enable_citations: boolean;
|
|
89
|
+
use_structured_output: boolean;
|
|
90
|
+
integration_tools: {
|
|
91
|
+
integration: string;
|
|
92
|
+
endpoint: string;
|
|
93
|
+
}[];
|
|
101
94
|
static_tools: {
|
|
95
|
+
name: string;
|
|
102
96
|
description: string;
|
|
103
|
-
handler: string;
|
|
104
97
|
input_schema: {
|
|
105
98
|
[x: string]: unknown;
|
|
106
99
|
};
|
|
107
|
-
|
|
100
|
+
handler: string;
|
|
108
101
|
}[];
|
|
109
|
-
|
|
110
|
-
thinking_effort: ("low" | "medium" | "high") | null;
|
|
111
|
-
timeout_s: number;
|
|
112
|
-
updated_at: string;
|
|
102
|
+
delivery: "interrupt" | "queue";
|
|
113
103
|
urgency_keywords: string[];
|
|
114
|
-
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
106
|
+
max_agent_turns: number;
|
|
107
|
+
checkpoint_enabled: boolean;
|
|
108
|
+
approval_required: boolean;
|
|
109
|
+
browser_start_url: string | null;
|
|
110
|
+
browser_allowed_domains: string[];
|
|
111
|
+
browser_auth_integration: string | null;
|
|
115
112
|
version: number;
|
|
116
|
-
|
|
113
|
+
created_at: string;
|
|
114
|
+
updated_at: string;
|
|
117
115
|
}[];
|
|
116
|
+
has_more: boolean;
|
|
117
|
+
continuation_token?: number | null | undefined;
|
|
118
118
|
total?: number | null | undefined;
|
|
119
119
|
} & import("../index.js").ResponseMetadata>;
|
|
120
120
|
listAutoPaging(params?: ListActionsParams): AsyncGenerator<{
|
|
121
|
-
approval_required: boolean;
|
|
122
|
-
browser_allowed_domains: string[];
|
|
123
|
-
browser_auth_integration: string | null;
|
|
124
|
-
browser_start_url: string | null;
|
|
125
|
-
checkpoint_enabled: boolean;
|
|
126
|
-
created_at: string;
|
|
127
|
-
delivery: "interrupt" | "queue";
|
|
128
|
-
description: string;
|
|
129
|
-
enable_caching: boolean;
|
|
130
|
-
enable_citations: boolean;
|
|
131
|
-
enabled: boolean;
|
|
132
|
-
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
133
121
|
id: string;
|
|
122
|
+
workspace_id: string;
|
|
123
|
+
slug: string;
|
|
124
|
+
name: string;
|
|
125
|
+
description: string;
|
|
126
|
+
system_prompt: string;
|
|
134
127
|
input_schema: {
|
|
135
128
|
[x: string]: unknown;
|
|
136
129
|
};
|
|
137
|
-
integration_tools: {
|
|
138
|
-
endpoint: string;
|
|
139
|
-
integration: string;
|
|
140
|
-
}[];
|
|
141
|
-
max_agent_turns: number;
|
|
142
|
-
max_input_tokens: number | null;
|
|
143
|
-
max_result_chars: number;
|
|
144
|
-
max_tokens: number;
|
|
145
|
-
model: string;
|
|
146
|
-
name: string;
|
|
147
130
|
result_schema: {
|
|
148
131
|
[x: string]: unknown;
|
|
149
132
|
} | null;
|
|
150
|
-
|
|
133
|
+
model: string;
|
|
134
|
+
max_tokens: number;
|
|
135
|
+
max_result_chars: number;
|
|
136
|
+
max_input_tokens: number | null;
|
|
137
|
+
timeout_s: number;
|
|
138
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
139
|
+
enable_caching: boolean;
|
|
140
|
+
enable_citations: boolean;
|
|
141
|
+
use_structured_output: boolean;
|
|
142
|
+
integration_tools: {
|
|
143
|
+
integration: string;
|
|
144
|
+
endpoint: string;
|
|
145
|
+
}[];
|
|
151
146
|
static_tools: {
|
|
147
|
+
name: string;
|
|
152
148
|
description: string;
|
|
153
|
-
handler: string;
|
|
154
149
|
input_schema: {
|
|
155
150
|
[x: string]: unknown;
|
|
156
151
|
};
|
|
157
|
-
|
|
152
|
+
handler: string;
|
|
158
153
|
}[];
|
|
159
|
-
|
|
160
|
-
thinking_effort: ("low" | "medium" | "high") | null;
|
|
161
|
-
timeout_s: number;
|
|
162
|
-
updated_at: string;
|
|
154
|
+
delivery: "interrupt" | "queue";
|
|
163
155
|
urgency_keywords: string[];
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/** Get a single action */
|
|
169
|
-
get(actionId: ActionId | string): Promise<{
|
|
156
|
+
enabled: boolean;
|
|
157
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
158
|
+
max_agent_turns: number;
|
|
159
|
+
checkpoint_enabled: boolean;
|
|
170
160
|
approval_required: boolean;
|
|
161
|
+
browser_start_url: string | null;
|
|
171
162
|
browser_allowed_domains: string[];
|
|
172
163
|
browser_auth_integration: string | null;
|
|
173
|
-
|
|
174
|
-
checkpoint_enabled: boolean;
|
|
164
|
+
version: number;
|
|
175
165
|
created_at: string;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
enabled: boolean;
|
|
181
|
-
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}, any, any>;
|
|
168
|
+
/** Get a single action */
|
|
169
|
+
get(actionId: ActionId | string): Promise<{
|
|
182
170
|
id: string;
|
|
171
|
+
workspace_id: string;
|
|
172
|
+
slug: string;
|
|
173
|
+
name: string;
|
|
174
|
+
description: string;
|
|
175
|
+
system_prompt: string;
|
|
183
176
|
input_schema: {
|
|
184
177
|
[x: string]: unknown;
|
|
185
178
|
};
|
|
186
|
-
integration_tools: {
|
|
187
|
-
endpoint: string;
|
|
188
|
-
integration: string;
|
|
189
|
-
}[];
|
|
190
|
-
max_agent_turns: number;
|
|
191
|
-
max_input_tokens: number | null;
|
|
192
|
-
max_result_chars: number;
|
|
193
|
-
max_tokens: number;
|
|
194
|
-
model: string;
|
|
195
|
-
name: string;
|
|
196
179
|
result_schema: {
|
|
197
180
|
[x: string]: unknown;
|
|
198
181
|
} | null;
|
|
199
|
-
|
|
182
|
+
model: string;
|
|
183
|
+
max_tokens: number;
|
|
184
|
+
max_result_chars: number;
|
|
185
|
+
max_input_tokens: number | null;
|
|
186
|
+
timeout_s: number;
|
|
187
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
188
|
+
enable_caching: boolean;
|
|
189
|
+
enable_citations: boolean;
|
|
190
|
+
use_structured_output: boolean;
|
|
191
|
+
integration_tools: {
|
|
192
|
+
integration: string;
|
|
193
|
+
endpoint: string;
|
|
194
|
+
}[];
|
|
200
195
|
static_tools: {
|
|
196
|
+
name: string;
|
|
201
197
|
description: string;
|
|
202
|
-
handler: string;
|
|
203
198
|
input_schema: {
|
|
204
199
|
[x: string]: unknown;
|
|
205
200
|
};
|
|
206
|
-
|
|
201
|
+
handler: string;
|
|
207
202
|
}[];
|
|
208
|
-
|
|
209
|
-
thinking_effort: ("low" | "medium" | "high") | null;
|
|
210
|
-
timeout_s: number;
|
|
211
|
-
updated_at: string;
|
|
203
|
+
delivery: "interrupt" | "queue";
|
|
212
204
|
urgency_keywords: string[];
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/** Update an action */
|
|
218
|
-
update(actionId: ActionId | string, body: components['schemas']['UpdateSkillRequest']): Promise<{
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
207
|
+
max_agent_turns: number;
|
|
208
|
+
checkpoint_enabled: boolean;
|
|
219
209
|
approval_required: boolean;
|
|
210
|
+
browser_start_url: string | null;
|
|
220
211
|
browser_allowed_domains: string[];
|
|
221
212
|
browser_auth_integration: string | null;
|
|
222
|
-
|
|
223
|
-
checkpoint_enabled: boolean;
|
|
213
|
+
version: number;
|
|
224
214
|
created_at: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
enabled: boolean;
|
|
230
|
-
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
215
|
+
updated_at: string;
|
|
216
|
+
} & import("../index.js").ResponseMetadata>;
|
|
217
|
+
/** Update an action */
|
|
218
|
+
update(actionId: ActionId | string, body: components['schemas']['UpdateSkillRequest']): Promise<{
|
|
231
219
|
id: string;
|
|
220
|
+
workspace_id: string;
|
|
221
|
+
slug: string;
|
|
222
|
+
name: string;
|
|
223
|
+
description: string;
|
|
224
|
+
system_prompt: string;
|
|
232
225
|
input_schema: {
|
|
233
226
|
[x: string]: unknown;
|
|
234
227
|
};
|
|
235
|
-
integration_tools: {
|
|
236
|
-
endpoint: string;
|
|
237
|
-
integration: string;
|
|
238
|
-
}[];
|
|
239
|
-
max_agent_turns: number;
|
|
240
|
-
max_input_tokens: number | null;
|
|
241
|
-
max_result_chars: number;
|
|
242
|
-
max_tokens: number;
|
|
243
|
-
model: string;
|
|
244
|
-
name: string;
|
|
245
228
|
result_schema: {
|
|
246
229
|
[x: string]: unknown;
|
|
247
230
|
} | null;
|
|
248
|
-
|
|
231
|
+
model: string;
|
|
232
|
+
max_tokens: number;
|
|
233
|
+
max_result_chars: number;
|
|
234
|
+
max_input_tokens: number | null;
|
|
235
|
+
timeout_s: number;
|
|
236
|
+
thinking_effort: ("low" | "medium" | "high") | null;
|
|
237
|
+
enable_caching: boolean;
|
|
238
|
+
enable_citations: boolean;
|
|
239
|
+
use_structured_output: boolean;
|
|
240
|
+
integration_tools: {
|
|
241
|
+
integration: string;
|
|
242
|
+
endpoint: string;
|
|
243
|
+
}[];
|
|
249
244
|
static_tools: {
|
|
245
|
+
name: string;
|
|
250
246
|
description: string;
|
|
251
|
-
handler: string;
|
|
252
247
|
input_schema: {
|
|
253
248
|
[x: string]: unknown;
|
|
254
249
|
};
|
|
255
|
-
|
|
250
|
+
handler: string;
|
|
256
251
|
}[];
|
|
257
|
-
|
|
258
|
-
thinking_effort: ("low" | "medium" | "high") | null;
|
|
259
|
-
timeout_s: number;
|
|
260
|
-
updated_at: string;
|
|
252
|
+
delivery: "interrupt" | "queue";
|
|
261
253
|
urgency_keywords: string[];
|
|
262
|
-
|
|
254
|
+
enabled: boolean;
|
|
255
|
+
execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
|
|
256
|
+
max_agent_turns: number;
|
|
257
|
+
checkpoint_enabled: boolean;
|
|
258
|
+
approval_required: boolean;
|
|
259
|
+
browser_start_url: string | null;
|
|
260
|
+
browser_allowed_domains: string[];
|
|
261
|
+
browser_auth_integration: string | null;
|
|
263
262
|
version: number;
|
|
264
|
-
|
|
263
|
+
created_at: string;
|
|
264
|
+
updated_at: string;
|
|
265
265
|
} & import("../index.js").ResponseMetadata>;
|
|
266
266
|
/** Delete an action */
|
|
267
267
|
delete(actionId: ActionId | string): Promise<void>;
|
|
268
268
|
/** Get all context graphs and services that reference this action */
|
|
269
269
|
getReferences(actionId: ActionId | string): Promise<{
|
|
270
|
+
skill_id: string;
|
|
271
|
+
skill_slug: string;
|
|
270
272
|
context_graph_references: {
|
|
271
273
|
context_graph_id: string;
|
|
272
274
|
context_graph_name: string;
|
|
275
|
+
version: number;
|
|
273
276
|
states: {
|
|
274
277
|
state_name: string;
|
|
275
278
|
tool_spec_category: string;
|
|
276
279
|
}[];
|
|
277
|
-
version: number;
|
|
278
280
|
}[];
|
|
279
281
|
service_references: string[];
|
|
280
|
-
skill_id: string;
|
|
281
|
-
skill_slug: string;
|
|
282
282
|
} & import("../index.js").ResponseMetadata>;
|
|
283
283
|
/**
|
|
284
284
|
* Test an action with a sample input.
|
|
285
285
|
* Executes the action in a sandbox and returns the result.
|
|
286
286
|
*/
|
|
287
287
|
test(actionId: ActionId | string, body: components['schemas']['TestSkillRequest']): Promise<{
|
|
288
|
-
|
|
288
|
+
result: string;
|
|
289
289
|
duration_ms: number;
|
|
290
|
-
error?: string | null | undefined;
|
|
291
290
|
input_tokens: number;
|
|
292
291
|
output_tokens: number;
|
|
293
|
-
|
|
292
|
+
cached_tokens: number;
|
|
294
293
|
rounds: number;
|
|
295
294
|
sub_tool_logs: {
|
|
296
|
-
|
|
295
|
+
tool_name: string;
|
|
297
296
|
input: {
|
|
298
297
|
[x: string]: unknown;
|
|
299
298
|
};
|
|
300
299
|
output: string;
|
|
301
|
-
|
|
300
|
+
duration_ms: number;
|
|
302
301
|
succeeded: boolean;
|
|
303
|
-
|
|
302
|
+
round: number;
|
|
304
303
|
}[];
|
|
304
|
+
error?: string | null | undefined;
|
|
305
305
|
} & import("../index.js").ResponseMetadata>;
|
|
306
306
|
}
|
|
307
307
|
//# sourceMappingURL=actions.d.ts.map
|