@amigo-ai/platform-sdk 0.93.0 → 0.94.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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +2 -2
- package/dist/resources/voice.js +8 -3
- package/dist/resources/voice.js.map +1 -1
- package/dist/types/generated/api.d.ts +18 -5
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +4 -4
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +5 -5
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/voice.d.ts +1 -1
- package/dist/types/resources/voice.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/resources/voice.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
// Voice MODEL FAMILIES (2026-07-09 rename): amigo = Amigo's own pipeline (the default),
|
|
2
|
+
// gpt_realtime = OpenAI's GPT-Realtime family, gpt_live = OpenAI's GPT-Live full-duplex
|
|
3
|
+
// family (dark until its API is GA — accepted by the contract, never selected by default).
|
|
4
|
+
// Families name models; runtimes are platform-internal. Legacy values
|
|
5
|
+
// (inhouse/atlas/openai_realtime) are normalized server-side and never appear here.
|
|
1
6
|
const voiceSessionProviders = [
|
|
2
|
-
'
|
|
3
|
-
'
|
|
4
|
-
'
|
|
7
|
+
'amigo',
|
|
8
|
+
'gpt_realtime',
|
|
9
|
+
'gpt_live',
|
|
5
10
|
];
|
|
6
11
|
export const VOICE_SESSION_PROVIDERS = voiceSessionProviders;
|
|
7
12
|
const sttProviders = ['deepgram', 'openai', 'cartesia'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/voice.ts"],"names":[],"mappings":"AAoBA,MAAM,qBAAqB,GAAG;IAC5B,
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/voice.ts"],"names":[],"mappings":"AAoBA,wFAAwF;AACxF,wFAAwF;AACxF,2FAA2F;AAC3F,sEAAsE;AACtE,oFAAoF;AACpF,MAAM,qBAAqB,GAAG;IAC5B,OAAO;IACP,cAAc;IACd,UAAU;CACwC,CAAA;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAGtC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAA2C,CAAA;AACjG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,YAG5B,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,MAAM,CAA2C,CAAA;AACjG,MAAM,CAAC,MAAM,aAAa,GAAG,YAG5B,CAAA"}
|
|
@@ -11130,6 +11130,16 @@ export interface components {
|
|
|
11130
11130
|
* @default []
|
|
11131
11131
|
*/
|
|
11132
11132
|
tool_calls?: components["schemas"]["ConversationToolCallDetail"][];
|
|
11133
|
+
/**
|
|
11134
|
+
* Turn Id
|
|
11135
|
+
* @description Stable identifier of the user exchange this message belongs to, derived deterministically from (conversation_id, turn_index) — identical across ``POST /turns`` responses and re-reads of the conversation history. User and agent messages from the same exchange share this value. Null on messages that precede the first user turn (proactive greetings, channel-event preludes).
|
|
11136
|
+
*/
|
|
11137
|
+
turn_id?: string | null;
|
|
11138
|
+
/**
|
|
11139
|
+
* Turn Index
|
|
11140
|
+
* @description Zero-based ordinal of the user exchange this message belongs to (0 = first user turn). Derived server-side from the conversation's user-turn count — never stored. Null exactly when ``turn_id`` is null.
|
|
11141
|
+
*/
|
|
11142
|
+
turn_index?: number | null;
|
|
11133
11143
|
};
|
|
11134
11144
|
/** ConversationTurnAvailableAction */
|
|
11135
11145
|
ConversationTurnAvailableAction: {
|
|
@@ -21524,7 +21534,7 @@ export interface components {
|
|
|
21524
21534
|
/** Progress Vocabulary */
|
|
21525
21535
|
progress_vocabulary?: string[] | null;
|
|
21526
21536
|
/** Session Provider */
|
|
21527
|
-
session_provider?: ("
|
|
21537
|
+
session_provider?: ("amigo" | "gpt_realtime" | "gpt_live") | null;
|
|
21528
21538
|
/** Transition Deadline Ms */
|
|
21529
21539
|
transition_deadline_ms?: number | null;
|
|
21530
21540
|
/** Tts Config */
|
|
@@ -21594,7 +21604,7 @@ export interface components {
|
|
|
21594
21604
|
/** Progress Vocabulary */
|
|
21595
21605
|
progress_vocabulary?: string[] | null;
|
|
21596
21606
|
/** Session Provider */
|
|
21597
|
-
session_provider?: ("
|
|
21607
|
+
session_provider?: ("amigo" | "gpt_realtime" | "gpt_live") | null;
|
|
21598
21608
|
/** Transition Deadline Ms */
|
|
21599
21609
|
transition_deadline_ms?: number | null;
|
|
21600
21610
|
/** Tts Config */
|
|
@@ -25960,8 +25970,11 @@ export interface components {
|
|
|
25960
25970
|
* @default []
|
|
25961
25971
|
*/
|
|
25962
25972
|
tool_calls?: components["schemas"]["ConversationToolCallDetail"][];
|
|
25963
|
-
/**
|
|
25964
|
-
|
|
25973
|
+
/**
|
|
25974
|
+
* Turn Id
|
|
25975
|
+
* @description Identifier of the user exchange this turn created — or, for ``poll=true`` and greeting-kickoff turns (empty ``message``), the latest exchange the returned messages attach to. Deterministic: matches the ``turn_id`` on this conversation's history turns, so it can anchor durable per-turn artifacts (e.g. feedback) across page reloads. Null only when the conversation has no user exchange yet (a poll or kickoff before the first user message).
|
|
25976
|
+
*/
|
|
25977
|
+
turn_id: string | null;
|
|
25965
25978
|
};
|
|
25966
25979
|
TurnStreamEvent: components["schemas"]["TurnTokenEvent"] | components["schemas"]["TurnToolCallStartedEvent"] | components["schemas"]["TurnToolCallCompletedEvent"] | components["schemas"]["TurnThinkingEvent"] | components["schemas"]["TurnMessageEvent"] | components["schemas"]["TurnDoneEvent"] | components["schemas"]["TurnErrorEvent"];
|
|
25967
25980
|
/** TurnThinkingEvent */
|
|
@@ -26717,7 +26730,7 @@ export interface components {
|
|
|
26717
26730
|
[key: string]: components["schemas"]["LanguageProviderEntry"];
|
|
26718
26731
|
} | null;
|
|
26719
26732
|
/** Session Provider */
|
|
26720
|
-
session_provider?: ("
|
|
26733
|
+
session_provider?: ("amigo" | "gpt_realtime" | "gpt_live") | null;
|
|
26721
26734
|
/**
|
|
26722
26735
|
* Similarity Boost
|
|
26723
26736
|
* @default 0
|