@amigo-ai/platform-sdk 0.5.5 → 0.5.7

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.
Files changed (55) hide show
  1. package/dist/types/generated/api.d.ts +182 -0
  2. package/dist/types/generated/api.d.ts.map +1 -1
  3. package/dist/types/resources/actions.d.ts +22 -126
  4. package/dist/types/resources/actions.d.ts.map +1 -1
  5. package/dist/types/resources/agents.d.ts +16 -102
  6. package/dist/types/resources/agents.d.ts.map +1 -1
  7. package/dist/types/resources/analytics.d.ts +22 -74
  8. package/dist/types/resources/analytics.d.ts.map +1 -1
  9. package/dist/types/resources/api-keys.d.ts +3 -16
  10. package/dist/types/resources/api-keys.d.ts.map +1 -1
  11. package/dist/types/resources/audit.d.ts +31 -87
  12. package/dist/types/resources/audit.d.ts.map +1 -1
  13. package/dist/types/resources/billing.d.ts +9 -42
  14. package/dist/types/resources/billing.d.ts.map +1 -1
  15. package/dist/types/resources/calls.d.ts +65 -169
  16. package/dist/types/resources/calls.d.ts.map +1 -1
  17. package/dist/types/resources/compliance.d.ts +6 -6
  18. package/dist/types/resources/context-graphs.d.ts +17 -958
  19. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  20. package/dist/types/resources/data-sources.d.ts +13 -50
  21. package/dist/types/resources/data-sources.d.ts.map +1 -1
  22. package/dist/types/resources/functions.d.ts +22 -49
  23. package/dist/types/resources/functions.d.ts.map +1 -1
  24. package/dist/types/resources/integrations.d.ts +49 -379
  25. package/dist/types/resources/integrations.d.ts.map +1 -1
  26. package/dist/types/resources/memory.d.ts +4 -48
  27. package/dist/types/resources/memory.d.ts.map +1 -1
  28. package/dist/types/resources/operators.d.ts +64 -189
  29. package/dist/types/resources/operators.d.ts.map +1 -1
  30. package/dist/types/resources/personas.d.ts +7 -20
  31. package/dist/types/resources/personas.d.ts.map +1 -1
  32. package/dist/types/resources/phone-numbers.d.ts +8 -46
  33. package/dist/types/resources/phone-numbers.d.ts.map +1 -1
  34. package/dist/types/resources/recordings.d.ts +4 -4
  35. package/dist/types/resources/review-queue.d.ts +49 -350
  36. package/dist/types/resources/review-queue.d.ts.map +1 -1
  37. package/dist/types/resources/safety.d.ts +6 -32
  38. package/dist/types/resources/safety.d.ts.map +1 -1
  39. package/dist/types/resources/services.d.ts +47 -242
  40. package/dist/types/resources/services.d.ts.map +1 -1
  41. package/dist/types/resources/settings.d.ts +36 -404
  42. package/dist/types/resources/settings.d.ts.map +1 -1
  43. package/dist/types/resources/simulations.d.ts +20 -148
  44. package/dist/types/resources/simulations.d.ts.map +1 -1
  45. package/dist/types/resources/skills.d.ts +21 -117
  46. package/dist/types/resources/skills.d.ts.map +1 -1
  47. package/dist/types/resources/triggers.d.ts +64 -92
  48. package/dist/types/resources/triggers.d.ts.map +1 -1
  49. package/dist/types/resources/webhook-destinations.d.ts +20 -44
  50. package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
  51. package/dist/types/resources/workspaces.d.ts +4 -26
  52. package/dist/types/resources/workspaces.d.ts.map +1 -1
  53. package/dist/types/resources/world.d.ts +121 -322
  54. package/dist/types/resources/world.d.ts.map +1 -1
  55. package/package.json +1 -1
@@ -15,34 +15,25 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
15
15
  created_at: string;
16
16
  description: string;
17
17
  id: string;
18
- latest_version?: number | undefined;
18
+ latest_version?: number;
19
19
  name: string;
20
- state_count?: number | undefined;
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
- continuation_token?: number | null | undefined;
25
+ continuation_token?: number | null;
26
26
  has_more: boolean;
27
- items: {
28
- created_at: string;
29
- description: string;
30
- id: string;
31
- latest_version?: number | undefined;
32
- name: string;
33
- state_count?: number | undefined;
34
- updated_at: string;
35
- workspace_id: string;
36
- }[];
37
- total?: number | null | undefined;
27
+ items: components["schemas"]["ContextGraphResponse"][];
28
+ total?: number | null;
38
29
  } & import("../index.js").ResponseMetadata>;
39
30
  listAutoPaging(params?: ListContextGraphsParams): AsyncGenerator<{
40
31
  created_at: string;
41
32
  description: string;
42
33
  id: string;
43
- latest_version?: number | undefined;
34
+ latest_version?: number;
44
35
  name: string;
45
- state_count?: number | undefined;
36
+ state_count?: number;
46
37
  updated_at: string;
47
38
  workspace_id: string;
48
39
  }, any, any>;
@@ -50,9 +41,9 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
50
41
  created_at: string;
51
42
  description: string;
52
43
  id: string;
53
- latest_version?: number | undefined;
44
+ latest_version?: number;
54
45
  name: string;
55
- state_count?: number | undefined;
46
+ state_count?: number;
56
47
  updated_at: string;
57
48
  workspace_id: string;
58
49
  } & import("../index.js").ResponseMetadata>;
@@ -60,9 +51,9 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
60
51
  created_at: string;
61
52
  description: string;
62
53
  id: string;
63
- latest_version?: number | undefined;
54
+ latest_version?: number;
64
55
  name: string;
65
- state_count?: number | undefined;
56
+ state_count?: number;
66
57
  updated_at: string;
67
58
  workspace_id: string;
68
59
  } & import("../index.js").ResponseMetadata>;
@@ -78,236 +69,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
78
69
  id: string;
79
70
  new_user_initial_state: string;
80
71
  returning_user_initial_state: string;
81
- states: ({
82
- action_guidelines: string[];
83
- action_tool_call_specs?: {
84
- additional_instruction?: string | undefined;
85
- audio_filler_triggered_after?: number | null | undefined;
86
- audio_fillers?: string[] | null | undefined;
87
- navigate_on_completion?: boolean | undefined;
88
- progress?: {
89
- custom_phrase?: string | null | undefined;
90
- deterministic?: boolean | undefined;
91
- expected_latency_ms?: number | null | undefined;
92
- interval_ms?: number | null | undefined;
93
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
94
- phrases?: string[] | null | undefined;
95
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
96
- trigger_delay_ms?: number | null | undefined;
97
- } | null | undefined;
98
- tool_id: string;
99
- }[] | undefined;
100
- actions: {
101
- description: string;
102
- filler_hint?: string | null | undefined;
103
- }[];
104
- boundary_constraints: string[];
105
- channel_overrides?: {
106
- [x: string]: {
107
- action_guidelines?: string[] | undefined;
108
- objective?: string | null | undefined;
109
- progress?: {
110
- custom_phrase?: string | null | undefined;
111
- deterministic?: boolean | undefined;
112
- expected_latency_ms?: number | null | undefined;
113
- interval_ms?: number | null | undefined;
114
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
115
- phrases?: string[] | null | undefined;
116
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
117
- trigger_delay_ms?: number | null | undefined;
118
- } | null | undefined;
119
- };
120
- } | undefined;
121
- escalation_config?: {
122
- auto_escalate_threshold?: number | null | undefined;
123
- max_loop_count?: number | undefined;
124
- operator_skill?: string | null | undefined;
125
- topic_risk_score?: number | undefined;
126
- } | null | undefined;
127
- exit_condition_tool_call_specs?: {
128
- additional_instruction?: string | undefined;
129
- audio_filler_triggered_after?: number | null | undefined;
130
- audio_fillers?: string[] | null | undefined;
131
- navigate_on_completion?: boolean | undefined;
132
- progress?: {
133
- custom_phrase?: string | null | undefined;
134
- deterministic?: boolean | undefined;
135
- expected_latency_ms?: number | null | undefined;
136
- interval_ms?: number | null | undefined;
137
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
138
- phrases?: string[] | null | undefined;
139
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
140
- trigger_delay_ms?: number | null | undefined;
141
- } | null | undefined;
142
- tool_id: string;
143
- }[] | undefined;
144
- exit_conditions: {
145
- description: string;
146
- filler_hint?: string | null | undefined;
147
- next_state: string;
148
- }[];
149
- guardrails?: {
150
- description: string;
151
- enforcement?: "hard" | "soft" | undefined;
152
- name: string;
153
- }[] | undefined;
154
- intra_state_navigation_guidelines: string[];
155
- name: string;
156
- objective: string;
157
- surface_spec_template?: {
158
- [x: string]: unknown;
159
- } | null | undefined;
160
- turn_policy?: {
161
- barge_in_enabled?: boolean | undefined;
162
- block_forward_call?: boolean | undefined;
163
- block_forward_call_after_turns?: number | undefined;
164
- context_strategy?: "full" | "summarize" | "compact" | undefined;
165
- degradation_threshold?: number | undefined;
166
- greeting_shield_s?: number | undefined;
167
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
168
- stt_eager_eot_threshold?: number | null | undefined;
169
- stt_eot_threshold?: number | null | undefined;
170
- stt_eot_timeout_ms?: number | null | undefined;
171
- } | null | undefined;
172
- type: "action";
173
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
174
- } | {
175
- inner_thought: string;
176
- name: string;
177
- next_state: string;
178
- type: "annotation";
179
- } | {
180
- channel_overrides?: {
181
- [x: string]: {
182
- action_guidelines?: string[] | undefined;
183
- objective?: string | null | undefined;
184
- progress?: {
185
- custom_phrase?: string | null | undefined;
186
- deterministic?: boolean | undefined;
187
- expected_latency_ms?: number | null | undefined;
188
- interval_ms?: number | null | undefined;
189
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
190
- phrases?: string[] | null | undefined;
191
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
192
- trigger_delay_ms?: number | null | undefined;
193
- } | null | undefined;
194
- };
195
- } | undefined;
196
- decision_guidelines?: string[] | undefined;
197
- exit_conditions: {
198
- description: string;
199
- filler_hint?: string | null | undefined;
200
- next_state: string;
201
- }[];
202
- guardrails?: {
203
- description: string;
204
- enforcement?: "hard" | "soft" | undefined;
205
- name: string;
206
- }[] | undefined;
207
- name: string;
208
- objective: string;
209
- tool_call_specs?: {
210
- additional_instruction?: string | undefined;
211
- audio_filler_triggered_after?: number | null | undefined;
212
- audio_fillers?: string[] | null | undefined;
213
- navigate_on_completion?: boolean | undefined;
214
- progress?: {
215
- custom_phrase?: string | null | undefined;
216
- deterministic?: boolean | undefined;
217
- expected_latency_ms?: number | null | undefined;
218
- interval_ms?: number | null | undefined;
219
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
220
- phrases?: string[] | null | undefined;
221
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
222
- trigger_delay_ms?: number | null | undefined;
223
- } | null | undefined;
224
- tool_id: string;
225
- }[] | undefined;
226
- turn_policy?: {
227
- barge_in_enabled?: boolean | undefined;
228
- block_forward_call?: boolean | undefined;
229
- block_forward_call_after_turns?: number | undefined;
230
- context_strategy?: "full" | "summarize" | "compact" | undefined;
231
- degradation_threshold?: number | undefined;
232
- greeting_shield_s?: number | undefined;
233
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
234
- stt_eager_eot_threshold?: number | null | undefined;
235
- stt_eot_threshold?: number | null | undefined;
236
- stt_eot_timeout_ms?: number | null | undefined;
237
- } | null | undefined;
238
- type: "decision";
239
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
240
- } | {
241
- action_guidelines?: string[] | undefined;
242
- boundary_constraints?: string[] | undefined;
243
- channel_overrides?: {
244
- [x: string]: {
245
- action_guidelines?: string[] | undefined;
246
- objective?: string | null | undefined;
247
- progress?: {
248
- custom_phrase?: string | null | undefined;
249
- deterministic?: boolean | undefined;
250
- expected_latency_ms?: number | null | undefined;
251
- interval_ms?: number | null | undefined;
252
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
253
- phrases?: string[] | null | undefined;
254
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
255
- trigger_delay_ms?: number | null | undefined;
256
- } | null | undefined;
257
- };
258
- } | undefined;
259
- fields: {
260
- ask_prompt?: string | null | undefined;
261
- fhir_path?: string | null | undefined;
262
- key: string;
263
- label: string;
264
- options?: string[] | null | undefined;
265
- required?: boolean | undefined;
266
- type: string;
267
- validation?: string | null | undefined;
268
- }[];
269
- guardrails?: {
270
- description: string;
271
- enforcement?: "hard" | "soft" | undefined;
272
- name: string;
273
- }[] | undefined;
274
- max_turns?: number | undefined;
275
- name: string;
276
- objective: string;
277
- on_complete: string;
278
- surface_fallback?: boolean | undefined;
279
- surface_fallback_after_turns?: number | undefined;
280
- tool_call_specs?: {
281
- additional_instruction?: string | undefined;
282
- audio_filler_triggered_after?: number | null | undefined;
283
- audio_fillers?: string[] | null | undefined;
284
- navigate_on_completion?: boolean | undefined;
285
- progress?: {
286
- custom_phrase?: string | null | undefined;
287
- deterministic?: boolean | undefined;
288
- expected_latency_ms?: number | null | undefined;
289
- interval_ms?: number | null | undefined;
290
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
291
- phrases?: string[] | null | undefined;
292
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
293
- trigger_delay_ms?: number | null | undefined;
294
- } | null | undefined;
295
- tool_id: string;
296
- }[] | undefined;
297
- turn_policy?: {
298
- barge_in_enabled?: boolean | undefined;
299
- block_forward_call?: boolean | undefined;
300
- block_forward_call_after_turns?: number | undefined;
301
- context_strategy?: "full" | "summarize" | "compact" | undefined;
302
- degradation_threshold?: number | undefined;
303
- greeting_shield_s?: number | undefined;
304
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
305
- stt_eager_eot_threshold?: number | null | undefined;
306
- stt_eot_threshold?: number | null | undefined;
307
- stt_eot_timeout_ms?: number | null | undefined;
308
- } | null | undefined;
309
- type: "data_collection";
310
- })[];
72
+ states: components["schemas"]["ContextGraphState-Output"][];
311
73
  terminal_state: string;
312
74
  topology_description: string | null;
313
75
  updated_at: string;
@@ -316,255 +78,10 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
316
78
  } & import("../index.js").ResponseMetadata>;
317
79
  /** List all versions of a context graph */
318
80
  listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<{
319
- continuation_token?: number | null | undefined;
81
+ continuation_token?: number | null;
320
82
  has_more: boolean;
321
- items: {
322
- context_graph_id: string;
323
- created_at: string;
324
- description: string;
325
- global_action_guidelines: string[];
326
- global_boundary_constraints: string[];
327
- global_intra_state_navigation_guidelines: string[];
328
- id: string;
329
- new_user_initial_state: string;
330
- returning_user_initial_state: string;
331
- states: ({
332
- action_guidelines: string[];
333
- action_tool_call_specs?: {
334
- additional_instruction?: string | undefined;
335
- audio_filler_triggered_after?: number | null | undefined;
336
- audio_fillers?: string[] | null | undefined;
337
- navigate_on_completion?: boolean | undefined;
338
- progress?: {
339
- custom_phrase?: string | null | undefined;
340
- deterministic?: boolean | undefined;
341
- expected_latency_ms?: number | null | undefined;
342
- interval_ms?: number | null | undefined;
343
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
344
- phrases?: string[] | null | undefined;
345
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
346
- trigger_delay_ms?: number | null | undefined;
347
- } | null | undefined;
348
- tool_id: string;
349
- }[] | undefined;
350
- actions: {
351
- description: string;
352
- filler_hint?: string | null | undefined;
353
- }[];
354
- boundary_constraints: string[];
355
- channel_overrides?: {
356
- [x: string]: {
357
- action_guidelines?: string[] | undefined;
358
- objective?: string | null | undefined;
359
- progress?: {
360
- custom_phrase?: string | null | undefined;
361
- deterministic?: boolean | undefined;
362
- expected_latency_ms?: number | null | undefined;
363
- interval_ms?: number | null | undefined;
364
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
365
- phrases?: string[] | null | undefined;
366
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
367
- trigger_delay_ms?: number | null | undefined;
368
- } | null | undefined;
369
- };
370
- } | undefined;
371
- escalation_config?: {
372
- auto_escalate_threshold?: number | null | undefined;
373
- max_loop_count?: number | undefined;
374
- operator_skill?: string | null | undefined;
375
- topic_risk_score?: number | undefined;
376
- } | null | undefined;
377
- exit_condition_tool_call_specs?: {
378
- additional_instruction?: string | undefined;
379
- audio_filler_triggered_after?: number | null | undefined;
380
- audio_fillers?: string[] | null | undefined;
381
- navigate_on_completion?: boolean | undefined;
382
- progress?: {
383
- custom_phrase?: string | null | undefined;
384
- deterministic?: boolean | undefined;
385
- expected_latency_ms?: number | null | undefined;
386
- interval_ms?: number | null | undefined;
387
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
388
- phrases?: string[] | null | undefined;
389
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
390
- trigger_delay_ms?: number | null | undefined;
391
- } | null | undefined;
392
- tool_id: string;
393
- }[] | undefined;
394
- exit_conditions: {
395
- description: string;
396
- filler_hint?: string | null | undefined;
397
- next_state: string;
398
- }[];
399
- guardrails?: {
400
- description: string;
401
- enforcement?: "hard" | "soft" | undefined;
402
- name: string;
403
- }[] | undefined;
404
- intra_state_navigation_guidelines: string[];
405
- name: string;
406
- objective: string;
407
- surface_spec_template?: {
408
- [x: string]: unknown;
409
- } | null | undefined;
410
- turn_policy?: {
411
- barge_in_enabled?: boolean | undefined;
412
- block_forward_call?: boolean | undefined;
413
- block_forward_call_after_turns?: number | undefined;
414
- context_strategy?: "full" | "summarize" | "compact" | undefined;
415
- degradation_threshold?: number | undefined;
416
- greeting_shield_s?: number | undefined;
417
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
418
- stt_eager_eot_threshold?: number | null | undefined;
419
- stt_eot_threshold?: number | null | undefined;
420
- stt_eot_timeout_ms?: number | null | undefined;
421
- } | null | undefined;
422
- type: "action";
423
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
424
- } | {
425
- inner_thought: string;
426
- name: string;
427
- next_state: string;
428
- type: "annotation";
429
- } | {
430
- channel_overrides?: {
431
- [x: string]: {
432
- action_guidelines?: string[] | undefined;
433
- objective?: string | null | undefined;
434
- progress?: {
435
- custom_phrase?: string | null | undefined;
436
- deterministic?: boolean | undefined;
437
- expected_latency_ms?: number | null | undefined;
438
- interval_ms?: number | null | undefined;
439
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
440
- phrases?: string[] | null | undefined;
441
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
442
- trigger_delay_ms?: number | null | undefined;
443
- } | null | undefined;
444
- };
445
- } | undefined;
446
- decision_guidelines?: string[] | undefined;
447
- exit_conditions: {
448
- description: string;
449
- filler_hint?: string | null | undefined;
450
- next_state: string;
451
- }[];
452
- guardrails?: {
453
- description: string;
454
- enforcement?: "hard" | "soft" | undefined;
455
- name: string;
456
- }[] | undefined;
457
- name: string;
458
- objective: string;
459
- tool_call_specs?: {
460
- additional_instruction?: string | undefined;
461
- audio_filler_triggered_after?: number | null | undefined;
462
- audio_fillers?: string[] | null | undefined;
463
- navigate_on_completion?: boolean | undefined;
464
- progress?: {
465
- custom_phrase?: string | null | undefined;
466
- deterministic?: boolean | undefined;
467
- expected_latency_ms?: number | null | undefined;
468
- interval_ms?: number | null | undefined;
469
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
470
- phrases?: string[] | null | undefined;
471
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
472
- trigger_delay_ms?: number | null | undefined;
473
- } | null | undefined;
474
- tool_id: string;
475
- }[] | undefined;
476
- turn_policy?: {
477
- barge_in_enabled?: boolean | undefined;
478
- block_forward_call?: boolean | undefined;
479
- block_forward_call_after_turns?: number | undefined;
480
- context_strategy?: "full" | "summarize" | "compact" | undefined;
481
- degradation_threshold?: number | undefined;
482
- greeting_shield_s?: number | undefined;
483
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
484
- stt_eager_eot_threshold?: number | null | undefined;
485
- stt_eot_threshold?: number | null | undefined;
486
- stt_eot_timeout_ms?: number | null | undefined;
487
- } | null | undefined;
488
- type: "decision";
489
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
490
- } | {
491
- action_guidelines?: string[] | undefined;
492
- boundary_constraints?: string[] | undefined;
493
- channel_overrides?: {
494
- [x: string]: {
495
- action_guidelines?: string[] | undefined;
496
- objective?: string | null | undefined;
497
- progress?: {
498
- custom_phrase?: string | null | undefined;
499
- deterministic?: boolean | undefined;
500
- expected_latency_ms?: number | null | undefined;
501
- interval_ms?: number | null | undefined;
502
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
503
- phrases?: string[] | null | undefined;
504
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
505
- trigger_delay_ms?: number | null | undefined;
506
- } | null | undefined;
507
- };
508
- } | undefined;
509
- fields: {
510
- ask_prompt?: string | null | undefined;
511
- fhir_path?: string | null | undefined;
512
- key: string;
513
- label: string;
514
- options?: string[] | null | undefined;
515
- required?: boolean | undefined;
516
- type: string;
517
- validation?: string | null | undefined;
518
- }[];
519
- guardrails?: {
520
- description: string;
521
- enforcement?: "hard" | "soft" | undefined;
522
- name: string;
523
- }[] | undefined;
524
- max_turns?: number | undefined;
525
- name: string;
526
- objective: string;
527
- on_complete: string;
528
- surface_fallback?: boolean | undefined;
529
- surface_fallback_after_turns?: number | undefined;
530
- tool_call_specs?: {
531
- additional_instruction?: string | undefined;
532
- audio_filler_triggered_after?: number | null | undefined;
533
- audio_fillers?: string[] | null | undefined;
534
- navigate_on_completion?: boolean | undefined;
535
- progress?: {
536
- custom_phrase?: string | null | undefined;
537
- deterministic?: boolean | undefined;
538
- expected_latency_ms?: number | null | undefined;
539
- interval_ms?: number | null | undefined;
540
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
541
- phrases?: string[] | null | undefined;
542
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
543
- trigger_delay_ms?: number | null | undefined;
544
- } | null | undefined;
545
- tool_id: string;
546
- }[] | undefined;
547
- turn_policy?: {
548
- barge_in_enabled?: boolean | undefined;
549
- block_forward_call?: boolean | undefined;
550
- block_forward_call_after_turns?: number | undefined;
551
- context_strategy?: "full" | "summarize" | "compact" | undefined;
552
- degradation_threshold?: number | undefined;
553
- greeting_shield_s?: number | undefined;
554
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
555
- stt_eager_eot_threshold?: number | null | undefined;
556
- stt_eot_threshold?: number | null | undefined;
557
- stt_eot_timeout_ms?: number | null | undefined;
558
- } | null | undefined;
559
- type: "data_collection";
560
- })[];
561
- terminal_state: string;
562
- topology_description: string | null;
563
- updated_at: string;
564
- version: number;
565
- workspace_id: string;
566
- }[];
567
- total?: number | null | undefined;
83
+ items: components["schemas"]["ContextGraphVersionResponse"][];
84
+ total?: number | null;
568
85
  } & import("../index.js").ResponseMetadata>;
569
86
  listVersionsAutoPaging(contextGraphId: ContextGraphId | string, params?: ListParams): AsyncGenerator<{
570
87
  context_graph_id: string;
@@ -576,236 +93,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
576
93
  id: string;
577
94
  new_user_initial_state: string;
578
95
  returning_user_initial_state: string;
579
- states: ({
580
- action_guidelines: string[];
581
- action_tool_call_specs?: {
582
- additional_instruction?: string | undefined;
583
- audio_filler_triggered_after?: number | null | undefined;
584
- audio_fillers?: string[] | null | undefined;
585
- navigate_on_completion?: boolean | undefined;
586
- progress?: {
587
- custom_phrase?: string | null | undefined;
588
- deterministic?: boolean | undefined;
589
- expected_latency_ms?: number | null | undefined;
590
- interval_ms?: number | null | undefined;
591
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
592
- phrases?: string[] | null | undefined;
593
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
594
- trigger_delay_ms?: number | null | undefined;
595
- } | null | undefined;
596
- tool_id: string;
597
- }[] | undefined;
598
- actions: {
599
- description: string;
600
- filler_hint?: string | null | undefined;
601
- }[];
602
- boundary_constraints: string[];
603
- channel_overrides?: {
604
- [x: string]: {
605
- action_guidelines?: string[] | undefined;
606
- objective?: string | null | undefined;
607
- progress?: {
608
- custom_phrase?: string | null | undefined;
609
- deterministic?: boolean | undefined;
610
- expected_latency_ms?: number | null | undefined;
611
- interval_ms?: number | null | undefined;
612
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
613
- phrases?: string[] | null | undefined;
614
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
615
- trigger_delay_ms?: number | null | undefined;
616
- } | null | undefined;
617
- };
618
- } | undefined;
619
- escalation_config?: {
620
- auto_escalate_threshold?: number | null | undefined;
621
- max_loop_count?: number | undefined;
622
- operator_skill?: string | null | undefined;
623
- topic_risk_score?: number | undefined;
624
- } | null | undefined;
625
- exit_condition_tool_call_specs?: {
626
- additional_instruction?: string | undefined;
627
- audio_filler_triggered_after?: number | null | undefined;
628
- audio_fillers?: string[] | null | undefined;
629
- navigate_on_completion?: boolean | undefined;
630
- progress?: {
631
- custom_phrase?: string | null | undefined;
632
- deterministic?: boolean | undefined;
633
- expected_latency_ms?: number | null | undefined;
634
- interval_ms?: number | null | undefined;
635
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
636
- phrases?: string[] | null | undefined;
637
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
638
- trigger_delay_ms?: number | null | undefined;
639
- } | null | undefined;
640
- tool_id: string;
641
- }[] | undefined;
642
- exit_conditions: {
643
- description: string;
644
- filler_hint?: string | null | undefined;
645
- next_state: string;
646
- }[];
647
- guardrails?: {
648
- description: string;
649
- enforcement?: "hard" | "soft" | undefined;
650
- name: string;
651
- }[] | undefined;
652
- intra_state_navigation_guidelines: string[];
653
- name: string;
654
- objective: string;
655
- surface_spec_template?: {
656
- [x: string]: unknown;
657
- } | null | undefined;
658
- turn_policy?: {
659
- barge_in_enabled?: boolean | undefined;
660
- block_forward_call?: boolean | undefined;
661
- block_forward_call_after_turns?: number | undefined;
662
- context_strategy?: "full" | "summarize" | "compact" | undefined;
663
- degradation_threshold?: number | undefined;
664
- greeting_shield_s?: number | undefined;
665
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
666
- stt_eager_eot_threshold?: number | null | undefined;
667
- stt_eot_threshold?: number | null | undefined;
668
- stt_eot_timeout_ms?: number | null | undefined;
669
- } | null | undefined;
670
- type: "action";
671
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
672
- } | {
673
- inner_thought: string;
674
- name: string;
675
- next_state: string;
676
- type: "annotation";
677
- } | {
678
- channel_overrides?: {
679
- [x: string]: {
680
- action_guidelines?: string[] | undefined;
681
- objective?: string | null | undefined;
682
- progress?: {
683
- custom_phrase?: string | null | undefined;
684
- deterministic?: boolean | undefined;
685
- expected_latency_ms?: number | null | undefined;
686
- interval_ms?: number | null | undefined;
687
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
688
- phrases?: string[] | null | undefined;
689
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
690
- trigger_delay_ms?: number | null | undefined;
691
- } | null | undefined;
692
- };
693
- } | undefined;
694
- decision_guidelines?: string[] | undefined;
695
- exit_conditions: {
696
- description: string;
697
- filler_hint?: string | null | undefined;
698
- next_state: string;
699
- }[];
700
- guardrails?: {
701
- description: string;
702
- enforcement?: "hard" | "soft" | undefined;
703
- name: string;
704
- }[] | undefined;
705
- name: string;
706
- objective: string;
707
- tool_call_specs?: {
708
- additional_instruction?: string | undefined;
709
- audio_filler_triggered_after?: number | null | undefined;
710
- audio_fillers?: string[] | null | undefined;
711
- navigate_on_completion?: boolean | undefined;
712
- progress?: {
713
- custom_phrase?: string | null | undefined;
714
- deterministic?: boolean | undefined;
715
- expected_latency_ms?: number | null | undefined;
716
- interval_ms?: number | null | undefined;
717
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
718
- phrases?: string[] | null | undefined;
719
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
720
- trigger_delay_ms?: number | null | undefined;
721
- } | null | undefined;
722
- tool_id: string;
723
- }[] | undefined;
724
- turn_policy?: {
725
- barge_in_enabled?: boolean | undefined;
726
- block_forward_call?: boolean | undefined;
727
- block_forward_call_after_turns?: number | undefined;
728
- context_strategy?: "full" | "summarize" | "compact" | undefined;
729
- degradation_threshold?: number | undefined;
730
- greeting_shield_s?: number | undefined;
731
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
732
- stt_eager_eot_threshold?: number | null | undefined;
733
- stt_eot_threshold?: number | null | undefined;
734
- stt_eot_timeout_ms?: number | null | undefined;
735
- } | null | undefined;
736
- type: "decision";
737
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
738
- } | {
739
- action_guidelines?: string[] | undefined;
740
- boundary_constraints?: string[] | undefined;
741
- channel_overrides?: {
742
- [x: string]: {
743
- action_guidelines?: string[] | undefined;
744
- objective?: string | null | undefined;
745
- progress?: {
746
- custom_phrase?: string | null | undefined;
747
- deterministic?: boolean | undefined;
748
- expected_latency_ms?: number | null | undefined;
749
- interval_ms?: number | null | undefined;
750
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
751
- phrases?: string[] | null | undefined;
752
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
753
- trigger_delay_ms?: number | null | undefined;
754
- } | null | undefined;
755
- };
756
- } | undefined;
757
- fields: {
758
- ask_prompt?: string | null | undefined;
759
- fhir_path?: string | null | undefined;
760
- key: string;
761
- label: string;
762
- options?: string[] | null | undefined;
763
- required?: boolean | undefined;
764
- type: string;
765
- validation?: string | null | undefined;
766
- }[];
767
- guardrails?: {
768
- description: string;
769
- enforcement?: "hard" | "soft" | undefined;
770
- name: string;
771
- }[] | undefined;
772
- max_turns?: number | undefined;
773
- name: string;
774
- objective: string;
775
- on_complete: string;
776
- surface_fallback?: boolean | undefined;
777
- surface_fallback_after_turns?: number | undefined;
778
- tool_call_specs?: {
779
- additional_instruction?: string | undefined;
780
- audio_filler_triggered_after?: number | null | undefined;
781
- audio_fillers?: string[] | null | undefined;
782
- navigate_on_completion?: boolean | undefined;
783
- progress?: {
784
- custom_phrase?: string | null | undefined;
785
- deterministic?: boolean | undefined;
786
- expected_latency_ms?: number | null | undefined;
787
- interval_ms?: number | null | undefined;
788
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
789
- phrases?: string[] | null | undefined;
790
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
791
- trigger_delay_ms?: number | null | undefined;
792
- } | null | undefined;
793
- tool_id: string;
794
- }[] | undefined;
795
- turn_policy?: {
796
- barge_in_enabled?: boolean | undefined;
797
- block_forward_call?: boolean | undefined;
798
- block_forward_call_after_turns?: number | undefined;
799
- context_strategy?: "full" | "summarize" | "compact" | undefined;
800
- degradation_threshold?: number | undefined;
801
- greeting_shield_s?: number | undefined;
802
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
803
- stt_eager_eot_threshold?: number | null | undefined;
804
- stt_eot_threshold?: number | null | undefined;
805
- stt_eot_timeout_ms?: number | null | undefined;
806
- } | null | undefined;
807
- type: "data_collection";
808
- })[];
96
+ states: components["schemas"]["ContextGraphState-Output"][];
809
97
  terminal_state: string;
810
98
  topology_description: string | null;
811
99
  updated_at: string;
@@ -823,236 +111,7 @@ export declare class ContextGraphsResource extends WorkspaceScopedResource {
823
111
  id: string;
824
112
  new_user_initial_state: string;
825
113
  returning_user_initial_state: string;
826
- states: ({
827
- action_guidelines: string[];
828
- action_tool_call_specs?: {
829
- additional_instruction?: string | undefined;
830
- audio_filler_triggered_after?: number | null | undefined;
831
- audio_fillers?: string[] | null | undefined;
832
- navigate_on_completion?: boolean | undefined;
833
- progress?: {
834
- custom_phrase?: string | null | undefined;
835
- deterministic?: boolean | undefined;
836
- expected_latency_ms?: number | null | undefined;
837
- interval_ms?: number | null | undefined;
838
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
839
- phrases?: string[] | null | undefined;
840
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
841
- trigger_delay_ms?: number | null | undefined;
842
- } | null | undefined;
843
- tool_id: string;
844
- }[] | undefined;
845
- actions: {
846
- description: string;
847
- filler_hint?: string | null | undefined;
848
- }[];
849
- boundary_constraints: string[];
850
- channel_overrides?: {
851
- [x: string]: {
852
- action_guidelines?: string[] | undefined;
853
- objective?: string | null | undefined;
854
- progress?: {
855
- custom_phrase?: string | null | undefined;
856
- deterministic?: boolean | undefined;
857
- expected_latency_ms?: number | null | undefined;
858
- interval_ms?: number | null | undefined;
859
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
860
- phrases?: string[] | null | undefined;
861
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
862
- trigger_delay_ms?: number | null | undefined;
863
- } | null | undefined;
864
- };
865
- } | undefined;
866
- escalation_config?: {
867
- auto_escalate_threshold?: number | null | undefined;
868
- max_loop_count?: number | undefined;
869
- operator_skill?: string | null | undefined;
870
- topic_risk_score?: number | undefined;
871
- } | null | undefined;
872
- exit_condition_tool_call_specs?: {
873
- additional_instruction?: string | undefined;
874
- audio_filler_triggered_after?: number | null | undefined;
875
- audio_fillers?: string[] | null | undefined;
876
- navigate_on_completion?: boolean | undefined;
877
- progress?: {
878
- custom_phrase?: string | null | undefined;
879
- deterministic?: boolean | undefined;
880
- expected_latency_ms?: number | null | undefined;
881
- interval_ms?: number | null | undefined;
882
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
883
- phrases?: string[] | null | undefined;
884
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
885
- trigger_delay_ms?: number | null | undefined;
886
- } | null | undefined;
887
- tool_id: string;
888
- }[] | undefined;
889
- exit_conditions: {
890
- description: string;
891
- filler_hint?: string | null | undefined;
892
- next_state: string;
893
- }[];
894
- guardrails?: {
895
- description: string;
896
- enforcement?: "hard" | "soft" | undefined;
897
- name: string;
898
- }[] | undefined;
899
- intra_state_navigation_guidelines: string[];
900
- name: string;
901
- objective: string;
902
- surface_spec_template?: {
903
- [x: string]: unknown;
904
- } | null | undefined;
905
- turn_policy?: {
906
- barge_in_enabled?: boolean | undefined;
907
- block_forward_call?: boolean | undefined;
908
- block_forward_call_after_turns?: number | undefined;
909
- context_strategy?: "full" | "summarize" | "compact" | undefined;
910
- degradation_threshold?: number | undefined;
911
- greeting_shield_s?: number | undefined;
912
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
913
- stt_eager_eot_threshold?: number | null | undefined;
914
- stt_eot_threshold?: number | null | undefined;
915
- stt_eot_timeout_ms?: number | null | undefined;
916
- } | null | undefined;
917
- type: "action";
918
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
919
- } | {
920
- inner_thought: string;
921
- name: string;
922
- next_state: string;
923
- type: "annotation";
924
- } | {
925
- channel_overrides?: {
926
- [x: string]: {
927
- action_guidelines?: string[] | undefined;
928
- objective?: string | null | undefined;
929
- progress?: {
930
- custom_phrase?: string | null | undefined;
931
- deterministic?: boolean | undefined;
932
- expected_latency_ms?: number | null | undefined;
933
- interval_ms?: number | null | undefined;
934
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
935
- phrases?: string[] | null | undefined;
936
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
937
- trigger_delay_ms?: number | null | undefined;
938
- } | null | undefined;
939
- };
940
- } | undefined;
941
- decision_guidelines?: string[] | undefined;
942
- exit_conditions: {
943
- description: string;
944
- filler_hint?: string | null | undefined;
945
- next_state: string;
946
- }[];
947
- guardrails?: {
948
- description: string;
949
- enforcement?: "hard" | "soft" | undefined;
950
- name: string;
951
- }[] | undefined;
952
- name: string;
953
- objective: string;
954
- tool_call_specs?: {
955
- additional_instruction?: string | undefined;
956
- audio_filler_triggered_after?: number | null | undefined;
957
- audio_fillers?: string[] | null | undefined;
958
- navigate_on_completion?: boolean | undefined;
959
- progress?: {
960
- custom_phrase?: string | null | undefined;
961
- deterministic?: boolean | undefined;
962
- expected_latency_ms?: number | null | undefined;
963
- interval_ms?: number | null | undefined;
964
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
965
- phrases?: string[] | null | undefined;
966
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
967
- trigger_delay_ms?: number | null | undefined;
968
- } | null | undefined;
969
- tool_id: string;
970
- }[] | undefined;
971
- turn_policy?: {
972
- barge_in_enabled?: boolean | undefined;
973
- block_forward_call?: boolean | undefined;
974
- block_forward_call_after_turns?: number | undefined;
975
- context_strategy?: "full" | "summarize" | "compact" | undefined;
976
- degradation_threshold?: number | undefined;
977
- greeting_shield_s?: number | undefined;
978
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
979
- stt_eager_eot_threshold?: number | null | undefined;
980
- stt_eot_threshold?: number | null | undefined;
981
- stt_eot_timeout_ms?: number | null | undefined;
982
- } | null | undefined;
983
- type: "decision";
984
- wait_for?: ("surface_submission" | "human_approval") | null | undefined;
985
- } | {
986
- action_guidelines?: string[] | undefined;
987
- boundary_constraints?: string[] | undefined;
988
- channel_overrides?: {
989
- [x: string]: {
990
- action_guidelines?: string[] | undefined;
991
- objective?: string | null | undefined;
992
- progress?: {
993
- custom_phrase?: string | null | undefined;
994
- deterministic?: boolean | undefined;
995
- expected_latency_ms?: number | null | undefined;
996
- interval_ms?: number | null | undefined;
997
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
998
- phrases?: string[] | null | undefined;
999
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
1000
- trigger_delay_ms?: number | null | undefined;
1001
- } | null | undefined;
1002
- };
1003
- } | undefined;
1004
- fields: {
1005
- ask_prompt?: string | null | undefined;
1006
- fhir_path?: string | null | undefined;
1007
- key: string;
1008
- label: string;
1009
- options?: string[] | null | undefined;
1010
- required?: boolean | undefined;
1011
- type: string;
1012
- validation?: string | null | undefined;
1013
- }[];
1014
- guardrails?: {
1015
- description: string;
1016
- enforcement?: "hard" | "soft" | undefined;
1017
- name: string;
1018
- }[] | undefined;
1019
- max_turns?: number | undefined;
1020
- name: string;
1021
- objective: string;
1022
- on_complete: string;
1023
- surface_fallback?: boolean | undefined;
1024
- surface_fallback_after_turns?: number | undefined;
1025
- tool_call_specs?: {
1026
- additional_instruction?: string | undefined;
1027
- audio_filler_triggered_after?: number | null | undefined;
1028
- audio_fillers?: string[] | null | undefined;
1029
- navigate_on_completion?: boolean | undefined;
1030
- progress?: {
1031
- custom_phrase?: string | null | undefined;
1032
- deterministic?: boolean | undefined;
1033
- expected_latency_ms?: number | null | undefined;
1034
- interval_ms?: number | null | undefined;
1035
- mode?: "auto" | "silent" | "backchannel" | "verbal" | undefined;
1036
- phrases?: string[] | null | undefined;
1037
- progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null | undefined;
1038
- trigger_delay_ms?: number | null | undefined;
1039
- } | null | undefined;
1040
- tool_id: string;
1041
- }[] | undefined;
1042
- turn_policy?: {
1043
- barge_in_enabled?: boolean | undefined;
1044
- block_forward_call?: boolean | undefined;
1045
- block_forward_call_after_turns?: number | undefined;
1046
- context_strategy?: "full" | "summarize" | "compact" | undefined;
1047
- degradation_threshold?: number | undefined;
1048
- greeting_shield_s?: number | undefined;
1049
- safety_response?: "suspend_forward" | "stay_empathize" | "alert" | undefined;
1050
- stt_eager_eot_threshold?: number | null | undefined;
1051
- stt_eot_threshold?: number | null | undefined;
1052
- stt_eot_timeout_ms?: number | null | undefined;
1053
- } | null | undefined;
1054
- type: "data_collection";
1055
- })[];
114
+ states: components["schemas"]["ContextGraphState-Output"][];
1056
115
  terminal_state: string;
1057
116
  topology_description: string | null;
1058
117
  updated_at: string;