@amigo-ai/platform-sdk 0.92.0 → 0.93.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.
@@ -7716,7 +7716,6 @@ export interface components {
7716
7716
  channel_overrides?: {
7717
7717
  [key: string]: components["schemas"]["ChannelOverride"];
7718
7718
  };
7719
- escalation_config?: components["schemas"]["StateRiskOverride"] | null;
7720
7719
  /**
7721
7720
  * Exit Condition Tool Call Specs
7722
7721
  * @default []
@@ -7770,7 +7769,6 @@ export interface components {
7770
7769
  channel_overrides?: {
7771
7770
  [key: string]: components["schemas"]["ChannelOverride"];
7772
7771
  };
7773
- escalation_config?: components["schemas"]["StateRiskOverride"] | null;
7774
7772
  /**
7775
7773
  * Exit Condition Tool Call Specs
7776
7774
  * @default []
@@ -10988,6 +10986,32 @@ export interface components {
10988
10986
  /** Total */
10989
10987
  total: number;
10990
10988
  };
10989
+ /** ConversationStatusTransitionRequest */
10990
+ ConversationStatusTransitionRequest: {
10991
+ /**
10992
+ * Reason
10993
+ * @description Low-cardinality transition tag (e.g. hsm_terminal, use_case_rebind) recorded on the audit event and the conversation world event.
10994
+ */
10995
+ reason: string;
10996
+ /**
10997
+ * Status
10998
+ * @enum {string}
10999
+ */
11000
+ status: "completed" | "closed";
11001
+ };
11002
+ /** ConversationStatusTransitionResponse */
11003
+ ConversationStatusTransitionResponse: {
11004
+ /**
11005
+ * Conversation Id
11006
+ * Format: uuid
11007
+ */
11008
+ conversation_id: string;
11009
+ /**
11010
+ * Status
11011
+ * @enum {string}
11012
+ */
11013
+ status: "completed" | "closed";
11014
+ };
10991
11015
  /** ConversationThreadRequest */
10992
11016
  ConversationThreadRequest: {
10993
11017
  channel_kind: components["schemas"]["ChannelKind"];
@@ -11310,6 +11334,12 @@ export interface components {
11310
11334
  channel?: components["schemas"]["ChannelKind"];
11311
11335
  /** Entity Id */
11312
11336
  entity_id?: string | null;
11337
+ /**
11338
+ * Force New
11339
+ * @description Outbound thread-keyed channels (sms/imessage) only: close any existing ACTIVE conversation on the computed provider thread (recipient + use case) before dispatching, so the opener materializes a brand-new conversation instead of continuing the old thread. Rejected with 422 on channel=web — every web create already starts a new conversation, so force_new is meaningless there.
11340
+ * @default false
11341
+ */
11342
+ force_new?: boolean;
11313
11343
  /** @description Optional context steering what the agent opens with on an outbound conversation. */
11314
11344
  instruction?: components["schemas"]["BackgroundString"] | null;
11315
11345
  /** @description Destination address for an outbound conversation (E.164 for sms/imessage). Required for non-web. */
@@ -11619,7 +11649,6 @@ export interface components {
11619
11649
  * @enum {string}
11620
11650
  */
11621
11651
  environment?: "sandbox" | "production";
11622
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
11623
11652
  /**
11624
11653
  * Is Active
11625
11654
  * @default true
@@ -11628,11 +11657,6 @@ export interface components {
11628
11657
  /** Keyterms */
11629
11658
  keyterms?: string[];
11630
11659
  name: components["schemas"]["NameString"];
11631
- /**
11632
- * Safety Filters Enabled
11633
- * @default true
11634
- */
11635
- safety_filters_enabled?: boolean;
11636
11660
  /** Tags */
11637
11661
  tags?: components["schemas"]["ServiceTag"][];
11638
11662
  /**
@@ -14200,34 +14224,6 @@ export interface components {
14200
14224
  */
14201
14225
  workspace_id: string;
14202
14226
  };
14203
- /**
14204
- * EscalationPolicy
14205
- * @description Per-service routing for engine-detected escalation triggers.
14206
- *
14207
- * Each trigger source maps to one EscalationAction. The three enumerated
14208
- * fields below are the trigger_sources actually emitted by the agent-engine
14209
- * today; new triggers can be added as fields without breaking back-compat.
14210
- *
14211
- * Partial policies are intentional: every field defaults to OperatorAction,
14212
- * so a PUT body like ``{"context_window_exhaustion": {"type": "forward"}}``
14213
- * overrides only that trigger and leaves the others on the operator default.
14214
- * To opt the entire service back to today's behavior, set
14215
- * ``Service.escalation_policy = None`` (caveat: the platform-api Service
14216
- * update path uses ``exclude_none=True`` and currently has no clears-via-null
14217
- * branch, so this requires a direct config edit; see follow-up issue).
14218
- *
14219
- * Resolution lookup is done against ``model_fields``: a trigger_source that
14220
- * is not an enumerated field name falls through to OperatorAction, never
14221
- * a non-Action Pydantic internal.
14222
- */
14223
- EscalationPolicy: {
14224
- /** Context Window Exhaustion */
14225
- context_window_exhaustion?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14226
- /** Conversation Monitor */
14227
- conversation_monitor?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14228
- /** Risk Scorer */
14229
- risk_scorer?: components["schemas"]["OperatorAction"] | components["schemas"]["ForwardAction"] | components["schemas"]["HangupAction"];
14230
- };
14231
14227
  /** EscalationState */
14232
14228
  EscalationState: {
14233
14229
  /** Agent Confidence */
@@ -15702,26 +15698,6 @@ export interface components {
15702
15698
  /** Templates */
15703
15699
  templates: components["schemas"]["FormTemplate-Input"][];
15704
15700
  };
15705
- /**
15706
- * ForwardAction
15707
- * @description Cold-transfer the caller to the service's configured forwarding
15708
- * destination (set via ``Service.voice_config.forwarding``).
15709
- *
15710
- * No agent-side decision and no operator dashboard required — the engine
15711
- * invokes the same forwarding callback used by the LLM-driven
15712
- * ``forward_call`` tool, with no location override, which falls through to
15713
- * the per-service ``ServiceForwardingConfig``.
15714
- *
15715
- * If ``voice_config.forwarding`` is unset, the dispatcher falls back to the
15716
- * operator path (audit event + SSE only).
15717
- */
15718
- ForwardAction: {
15719
- /**
15720
- * @description discriminator enum property added by openapi-typescript
15721
- * @enum {string}
15722
- */
15723
- type: "forward";
15724
- };
15725
15701
  /** ForwardCallResolvedEvent */
15726
15702
  ForwardCallResolvedEvent: {
15727
15703
  /**
@@ -15973,43 +15949,6 @@ export interface components {
15973
15949
  /** Detail */
15974
15950
  detail?: components["schemas"]["ValidationError"][];
15975
15951
  };
15976
- /**
15977
- * HangupAction
15978
- * @description End the call gracefully via the existing speaker-drain hangup path.
15979
- */
15980
- HangupAction: {
15981
- /**
15982
- * @description discriminator enum property added by openapi-typescript
15983
- * @enum {string}
15984
- */
15985
- type: "hangup";
15986
- };
15987
- /**
15988
- * HardEscalationRule
15989
- * @description Non-negotiable escalation rule for healthcare compliance.
15990
- */
15991
- HardEscalationRule: {
15992
- /**
15993
- * Detection
15994
- * @enum {string}
15995
- */
15996
- detection: "intent" | "state" | "fhir";
15997
- /**
15998
- * Immediate
15999
- * @default false
16000
- */
16001
- immediate?: boolean;
16002
- /** Intent Patterns */
16003
- intent_patterns?: string[] | null;
16004
- /** Name */
16005
- name: string;
16006
- /** Operator Type */
16007
- operator_type: string;
16008
- /** Reason */
16009
- reason: string;
16010
- /** Regulatory Basis */
16011
- regulatory_basis: string;
16012
- };
16013
15952
  /**
16014
15953
  * HarnessContext
16015
15954
  * @description The neutral, retrievable session-bootstrap context for ANY framework.
@@ -18144,18 +18083,6 @@ export interface components {
18144
18083
  [key: string]: unknown;
18145
18084
  };
18146
18085
  };
18147
- /**
18148
- * OperatorAction
18149
- * @description Today's behavior — write escalation.requested + publish SSE, wait for a
18150
- * human operator to join via the dashboard. No-op if no operators are staffed.
18151
- */
18152
- OperatorAction: {
18153
- /**
18154
- * @description discriminator enum property added by openapi-typescript
18155
- * @enum {string}
18156
- */
18157
- type: "operator";
18158
- };
18159
18086
  /**
18160
18087
  * OperatorIntelligenceSummary
18161
18088
  * @description Operator intervention summary.
@@ -20874,39 +20801,6 @@ export interface components {
20874
20801
  */
20875
20802
  item_id?: string | null;
20876
20803
  };
20877
- /**
20878
- * RiskSignalConfig
20879
- * @description Per-workspace risk scoring config. Stored on Service.
20880
- */
20881
- RiskSignalConfig: {
20882
- /**
20883
- * Alert Threshold
20884
- * @default 50
20885
- */
20886
- alert_threshold?: number;
20887
- /**
20888
- * Auto Escalate Threshold
20889
- * @default 70
20890
- */
20891
- auto_escalate_threshold?: number;
20892
- /**
20893
- * Enabled
20894
- * @default true
20895
- */
20896
- enabled?: boolean;
20897
- /**
20898
- * Monitor Threshold
20899
- * @default 30
20900
- */
20901
- monitor_threshold?: number;
20902
- /**
20903
- * Weights
20904
- * @default {}
20905
- */
20906
- weights?: {
20907
- [key: string]: number;
20908
- };
20909
- };
20910
20804
  /**
20911
20805
  * RiskSummary
20912
20806
  * @description Aggregated risk signals across the call.
@@ -21402,12 +21296,6 @@ export interface components {
21402
21296
  * @enum {string}
21403
21297
  */
21404
21298
  environment?: "sandbox" | "production";
21405
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
21406
- /**
21407
- * Hard Escalation Rules
21408
- * @default []
21409
- */
21410
- hard_escalation_rules?: components["schemas"]["HardEscalationRule"][];
21411
21299
  /**
21412
21300
  * Id
21413
21301
  * Format: uuid
@@ -21419,12 +21307,6 @@ export interface components {
21419
21307
  keyterms: string[];
21420
21308
  /** Name */
21421
21309
  name: string;
21422
- risk_signal_config?: components["schemas"]["RiskSignalConfig"] | null;
21423
- /**
21424
- * Safety Filters Enabled
21425
- * @default true
21426
- */
21427
- safety_filters_enabled?: boolean;
21428
21310
  /** Tags */
21429
21311
  tags: components["schemas"]["ServiceTag"][];
21430
21312
  /**
@@ -21485,11 +21367,8 @@ export interface components {
21485
21367
  * ServiceForwardingConfig
21486
21368
  * @description Per-service call-forwarding destination + transfer mechanism.
21487
21369
  *
21488
- * Read by:
21489
- * - LLM-driven ``forward_call`` tool (tier 3 fallback when the LLM doesn't
21490
- * pass an explicit ``phone_number`` and no EHR location is configured).
21491
- * - ``EscalationPolicy.ForwardAction`` — engine-fired escalation with no
21492
- * overrides falls through to the same path.
21370
+ * Read by the LLM-driven ``forward_call`` tool (tier 3 fallback when the LLM
21371
+ * doesn't pass an explicit ``phone_number`` and no EHR location is configured).
21493
21372
  *
21494
21373
  * Per-service forwarding is a binary presence — set means tier 3 resolves
21495
21374
  * to it, None means tier 3 has no static target. (The legacy per-phone
@@ -21544,7 +21423,6 @@ export interface components {
21544
21423
  * @enum {string}
21545
21424
  */
21546
21425
  environment?: "sandbox" | "production";
21547
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
21548
21426
  /**
21549
21427
  * Id
21550
21428
  * Format: uuid
@@ -21561,11 +21439,6 @@ export interface components {
21561
21439
  keyterms: string[];
21562
21440
  /** Name */
21563
21441
  name: string;
21564
- /**
21565
- * Safety Filters Enabled
21566
- * @default true
21567
- */
21568
- safety_filters_enabled?: boolean;
21569
21442
  /** Tags */
21570
21443
  tags: components["schemas"]["ServiceTag"][];
21571
21444
  /** Tool Capacity */
@@ -23486,26 +23359,6 @@ export interface components {
23486
23359
  */
23487
23360
  session_status: "created" | "already_active";
23488
23361
  };
23489
- /**
23490
- * StateRiskOverride
23491
- * @description Per-state escalation tuning. Stored on ActionState.
23492
- */
23493
- StateRiskOverride: {
23494
- /** Auto Escalate Threshold */
23495
- auto_escalate_threshold?: number | null;
23496
- /**
23497
- * Max Loop Count
23498
- * @default 3
23499
- */
23500
- max_loop_count?: number;
23501
- /** Operator Skill */
23502
- operator_skill?: string | null;
23503
- /**
23504
- * Topic Risk Score
23505
- * @default 0
23506
- */
23507
- topic_risk_score?: number;
23508
- };
23509
23362
  /** StateTransition */
23510
23363
  StateTransition: {
23511
23364
  /** Annotation */
@@ -26018,7 +25871,7 @@ export interface components {
26018
25871
  * @default full
26019
25872
  * @enum {string}
26020
25873
  */
26021
- context_strategy?: "full" | "summarize" | "compact";
25874
+ context_strategy?: "full" | "compact";
26022
25875
  /**
26023
25876
  * Degradation Threshold
26024
25877
  * @default -1
@@ -26328,14 +26181,11 @@ export interface components {
26328
26181
  description?: components["schemas"]["DescriptionString"] | null;
26329
26182
  /** Environment */
26330
26183
  environment?: ("sandbox" | "production") | null;
26331
- escalation_policy?: components["schemas"]["EscalationPolicy"] | null;
26332
26184
  /** Is Active */
26333
26185
  is_active?: boolean | null;
26334
26186
  /** Keyterms */
26335
26187
  keyterms?: string[] | null;
26336
26188
  name?: components["schemas"]["NameString"] | null;
26337
- /** Safety Filters Enabled */
26338
- safety_filters_enabled?: boolean | null;
26339
26189
  /** Tags */
26340
26190
  tags?: components["schemas"]["ServiceTag"][] | null;
26341
26191
  /** Tool Capacity */