@amigo-ai/platform-sdk 0.77.0 → 0.78.1
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 +23 -1
- package/api.md +2 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +3 -3
- package/dist/resources/voice.js +18 -0
- package/dist/resources/voice.js.map +1 -0
- package/dist/types/generated/api.d.ts +110 -3
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +20 -1
- package/dist/types/resources/analytics.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +2 -0
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/voice.d.ts +21 -0
- package/dist/types/resources/voice.d.ts.map +1 -0
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const voiceSessionProviders = [
|
|
2
|
+
'inhouse',
|
|
3
|
+
'openai_realtime',
|
|
4
|
+
'atlas',
|
|
5
|
+
];
|
|
6
|
+
export const VOICE_SESSION_PROVIDERS = voiceSessionProviders;
|
|
7
|
+
const sttProviders = ['deepgram', 'openai', 'cartesia'];
|
|
8
|
+
/**
|
|
9
|
+
* Supported STT provider ids from the platform schema.
|
|
10
|
+
*
|
|
11
|
+
* Provider availability can still be workspace- or environment-gated at runtime
|
|
12
|
+
* (for example Cartesia ink-2), so treat this as the contract enum, not an
|
|
13
|
+
* entitlement check for a specific workspace.
|
|
14
|
+
*/
|
|
15
|
+
export const STT_PROVIDERS = sttProviders;
|
|
16
|
+
const ttsProviders = ['cartesia', 'elevenlabs', 'groq'];
|
|
17
|
+
export const TTS_PROVIDERS = ttsProviders;
|
|
18
|
+
//# sourceMappingURL=voice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/voice.ts"],"names":[],"mappings":"AAoBA,MAAM,qBAAqB,GAAG;IAC5B,SAAS;IACT,iBAAiB;IACjB,OAAO;CAC2C,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"}
|
|
@@ -9049,6 +9049,111 @@ export interface components {
|
|
|
9049
9049
|
/** Total */
|
|
9050
9050
|
total: number;
|
|
9051
9051
|
};
|
|
9052
|
+
/**
|
|
9053
|
+
* CallQualityAnalyticsResponse
|
|
9054
|
+
* @description Call quality score trends, distribution, and summary over time.
|
|
9055
|
+
*
|
|
9056
|
+
* Served from the live Delta projection ``analytics.source_call_intelligence``.
|
|
9057
|
+
*/
|
|
9058
|
+
CallQualityAnalyticsResponse: {
|
|
9059
|
+
/** @description Call counts bucketed by quality-score band */
|
|
9060
|
+
quality_distribution: components["schemas"]["CallQualityDistribution"];
|
|
9061
|
+
/** @description Aggregate call-quality metrics for the period */
|
|
9062
|
+
summary: components["schemas"]["CallQualitySummary"];
|
|
9063
|
+
/**
|
|
9064
|
+
* Trend
|
|
9065
|
+
* @description Time series of call-quality metrics per interval bucket
|
|
9066
|
+
*/
|
|
9067
|
+
trend: components["schemas"]["CallQualityTrendPoint"][];
|
|
9068
|
+
};
|
|
9069
|
+
/**
|
|
9070
|
+
* CallQualityDistribution
|
|
9071
|
+
* @description Call counts bucketed by quality-score band.
|
|
9072
|
+
*/
|
|
9073
|
+
CallQualityDistribution: {
|
|
9074
|
+
/**
|
|
9075
|
+
* Excellent 90 100
|
|
9076
|
+
* @description Calls with quality score 90-100
|
|
9077
|
+
*/
|
|
9078
|
+
excellent_90_100: number;
|
|
9079
|
+
/**
|
|
9080
|
+
* Fair 50 69
|
|
9081
|
+
* @description Calls with quality score 50-69
|
|
9082
|
+
*/
|
|
9083
|
+
fair_50_69: number;
|
|
9084
|
+
/**
|
|
9085
|
+
* Good 70 89
|
|
9086
|
+
* @description Calls with quality score 70-89
|
|
9087
|
+
*/
|
|
9088
|
+
good_70_89: number;
|
|
9089
|
+
/**
|
|
9090
|
+
* Poor 0 49
|
|
9091
|
+
* @description Calls with quality score 0-49
|
|
9092
|
+
*/
|
|
9093
|
+
poor_0_49: number;
|
|
9094
|
+
};
|
|
9095
|
+
/**
|
|
9096
|
+
* CallQualitySummary
|
|
9097
|
+
* @description Aggregate call-quality stats for the period.
|
|
9098
|
+
*/
|
|
9099
|
+
CallQualitySummary: {
|
|
9100
|
+
/**
|
|
9101
|
+
* Avg Duration Seconds
|
|
9102
|
+
* @description Average call duration in seconds
|
|
9103
|
+
*/
|
|
9104
|
+
avg_duration_seconds?: number | null;
|
|
9105
|
+
/**
|
|
9106
|
+
* Avg Quality Score
|
|
9107
|
+
* @description Mean quality score across calls (0-100)
|
|
9108
|
+
*/
|
|
9109
|
+
avg_quality_score?: number | null;
|
|
9110
|
+
/**
|
|
9111
|
+
* Escalation Rate
|
|
9112
|
+
* @description Fraction of calls escalated to an operator (0.0-1.0)
|
|
9113
|
+
*/
|
|
9114
|
+
escalation_rate: number;
|
|
9115
|
+
/**
|
|
9116
|
+
* P50 Quality Score
|
|
9117
|
+
* @description Median quality score (0-100)
|
|
9118
|
+
*/
|
|
9119
|
+
p50_quality_score?: number | null;
|
|
9120
|
+
/**
|
|
9121
|
+
* P95 Quality Score
|
|
9122
|
+
* @description 95th-percentile quality score (0-100)
|
|
9123
|
+
*/
|
|
9124
|
+
p95_quality_score?: number | null;
|
|
9125
|
+
/**
|
|
9126
|
+
* Total Calls
|
|
9127
|
+
* @description Total number of calls in the period
|
|
9128
|
+
*/
|
|
9129
|
+
total_calls: number;
|
|
9130
|
+
};
|
|
9131
|
+
/**
|
|
9132
|
+
* CallQualityTrendPoint
|
|
9133
|
+
* @description Single time-bucket data point in the call-quality trend series.
|
|
9134
|
+
*/
|
|
9135
|
+
CallQualityTrendPoint: {
|
|
9136
|
+
/**
|
|
9137
|
+
* Avg Quality
|
|
9138
|
+
* @description Average quality score in this bucket (0-100)
|
|
9139
|
+
*/
|
|
9140
|
+
avg_quality?: number | null;
|
|
9141
|
+
/**
|
|
9142
|
+
* Call Count
|
|
9143
|
+
* @description Number of calls in this bucket
|
|
9144
|
+
*/
|
|
9145
|
+
call_count: number;
|
|
9146
|
+
/**
|
|
9147
|
+
* Date
|
|
9148
|
+
* @description Time bucket as an ISO-8601 timestamp string (granularity follows `interval`)
|
|
9149
|
+
*/
|
|
9150
|
+
date: string;
|
|
9151
|
+
/**
|
|
9152
|
+
* Escalation Count
|
|
9153
|
+
* @description Number of escalated calls in this bucket
|
|
9154
|
+
*/
|
|
9155
|
+
escalation_count: number;
|
|
9156
|
+
};
|
|
9052
9157
|
/** CallStartedEvent */
|
|
9053
9158
|
CallStartedEvent: {
|
|
9054
9159
|
/** Call Sid */
|
|
@@ -21275,12 +21380,16 @@ export interface components {
|
|
|
21275
21380
|
expected?: unknown | null;
|
|
21276
21381
|
/** Id */
|
|
21277
21382
|
id?: string | null;
|
|
21383
|
+
/** Justification */
|
|
21384
|
+
justification?: string | null;
|
|
21278
21385
|
/** Metric Key */
|
|
21279
21386
|
metric_key?: string | null;
|
|
21280
21387
|
/** Passed */
|
|
21281
21388
|
passed?: boolean | null;
|
|
21282
21389
|
/** Rationale */
|
|
21283
21390
|
rationale?: string | null;
|
|
21391
|
+
/** References */
|
|
21392
|
+
references?: number[];
|
|
21284
21393
|
/** Run Id */
|
|
21285
21394
|
run_id?: string | null;
|
|
21286
21395
|
/** Score */
|
|
@@ -29143,9 +29252,7 @@ export interface operations {
|
|
|
29143
29252
|
[name: string]: unknown;
|
|
29144
29253
|
};
|
|
29145
29254
|
content: {
|
|
29146
|
-
"application/json":
|
|
29147
|
-
[key: string]: unknown;
|
|
29148
|
-
};
|
|
29255
|
+
"application/json": components["schemas"]["CallQualityAnalyticsResponse"];
|
|
29149
29256
|
};
|
|
29150
29257
|
};
|
|
29151
29258
|
/** @description Validation Error */
|