@amigo-ai/platform-sdk 0.76.0 → 0.78.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/types/generated/api.d.ts +163 -20
- package/dist/types/generated/api.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/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6765,8 +6765,8 @@ export interface paths {
|
|
|
6765
6765
|
get?: never;
|
|
6766
6766
|
put?: never;
|
|
6767
6767
|
/**
|
|
6768
|
-
* Export gen_ai.* traces as OTLP/JSON
|
|
6769
|
-
* @description Export the workspace's durable
|
|
6768
|
+
* Export gen_ai.* + voice.* traces as OTLP/JSON
|
|
6769
|
+
* @description Export the workspace's durable trace spans over a time window as OpenTelemetry Protocol (OTLP/HTTP JSON) spans: ``gen_ai.*`` tool-call spans and the per-call voice-isolation ``voice.*`` infra spans (allocate / media-attach / reap). Read-only; admin/owner role required; dark behind ``OTEL_TRACE_EXPORT_ENABLED`` (404 when off). Paginated PULL API — extract ``.resourceSpans`` before forwarding to an OTLP collector. Attributes are an allowlist of tool-call + infra metadata; the raw tool-result ``error`` text is NOT exported (PHI-safe by construction).
|
|
6770
6770
|
*/
|
|
6771
6771
|
post: operations["export_traces_v1__workspace_id__traces_export_post"];
|
|
6772
6772
|
delete?: never;
|
|
@@ -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 */
|
|
@@ -12077,6 +12182,11 @@ export interface components {
|
|
|
12077
12182
|
field_count: number;
|
|
12078
12183
|
/** File Type */
|
|
12079
12184
|
file_type: string;
|
|
12185
|
+
/**
|
|
12186
|
+
* Ingestion Mode
|
|
12187
|
+
* @description `snapshot` (CSV/Excel → CDC) or `document` (PDF/docx → extraction).
|
|
12188
|
+
*/
|
|
12189
|
+
ingestion_mode: string;
|
|
12080
12190
|
limits: components["schemas"]["Limits"];
|
|
12081
12191
|
/**
|
|
12082
12192
|
* Name
|
|
@@ -12334,6 +12444,28 @@ export interface components {
|
|
|
12334
12444
|
*/
|
|
12335
12445
|
verified: boolean;
|
|
12336
12446
|
};
|
|
12447
|
+
/**
|
|
12448
|
+
* DocumentProcessingSpec
|
|
12449
|
+
* @description Processing config for a document dataset (``ingestion_mode=document``).
|
|
12450
|
+
*
|
|
12451
|
+
* Documents have no schema/primary-key/CDC; this is what the contract carries
|
|
12452
|
+
* instead (docs/plans/intake_file_processing_pipeline.md §5.9). Page-split /
|
|
12453
|
+
* output-metadata rules are stored in the same jsonb and may be added later
|
|
12454
|
+
* without a migration.
|
|
12455
|
+
*/
|
|
12456
|
+
DocumentProcessingSpec: {
|
|
12457
|
+
/**
|
|
12458
|
+
* Extraction Mode
|
|
12459
|
+
* @default text_extract
|
|
12460
|
+
* @enum {string}
|
|
12461
|
+
*/
|
|
12462
|
+
extraction_mode?: "text_extract" | "OCR" | "hybrid";
|
|
12463
|
+
/**
|
|
12464
|
+
* Retain Source
|
|
12465
|
+
* @default true
|
|
12466
|
+
*/
|
|
12467
|
+
retain_source?: boolean;
|
|
12468
|
+
};
|
|
12337
12469
|
/** DropColumnAction */
|
|
12338
12470
|
DropColumnAction: {
|
|
12339
12471
|
name: components["schemas"]["IdentifierString"];
|
|
@@ -17198,7 +17330,7 @@ export interface components {
|
|
|
17198
17330
|
*/
|
|
17199
17331
|
type: "oauth2_jwt_bearer";
|
|
17200
17332
|
};
|
|
17201
|
-
ObserverSSEEvent: components["schemas"]["ActorAllocatedEvent"] | components["schemas"]["ActorShutdownEvent"] | components["schemas"]["AgentTranscriptDeltaEvent"] | components["schemas"]["AgentTranscriptEvent"] | components["schemas"]["BargeInEvent"] | components["schemas"]["
|
|
17333
|
+
ObserverSSEEvent: components["schemas"]["ActorAllocatedEvent"] | components["schemas"]["ActorShutdownEvent"] | components["schemas"]["AgentTranscriptDeltaEvent"] | components["schemas"]["AgentTranscriptEvent"] | components["schemas"]["BargeInEvent"] | components["schemas"]["CompoundEmotionEvent"] | components["schemas"]["EmotionEvent"] | components["schemas"]["EmpathyClassifiedEvent"] | components["schemas"]["ForwardCallResolvedEvent"] | components["schemas"]["LatencyEvent"] | components["schemas"]["MediaAttachedEvent"] | components["schemas"]["NavTimingEvent"] | components["schemas"]["ParticipantJoinedEvent"] | components["schemas"]["ParticipantLeftEvent"] | components["schemas"]["SessionEndEvent"] | components["schemas"]["SessionInfoEvent"] | components["schemas"]["SessionStartEvent"] | components["schemas"]["SpeakerMutedEvent"] | components["schemas"]["StateTransitionEvent"] | components["schemas"]["ToolCallCompletedEvent"] | components["schemas"]["ToolCallStartedEvent"] | components["schemas"]["UserTranscriptEvent"] | components["schemas"]["VoiceContextAppliedEvent"];
|
|
17202
17334
|
/** OcrRequest */
|
|
17203
17335
|
OcrRequest: {
|
|
17204
17336
|
/**
|
|
@@ -19040,7 +19172,7 @@ export interface components {
|
|
|
19040
19172
|
* Multiple providers may serve the same ChannelKind.
|
|
19041
19173
|
* @enum {string}
|
|
19042
19174
|
*/
|
|
19043
|
-
ProviderType: "twilio" | "websocket" | "ses" | "sendblue";
|
|
19175
|
+
ProviderType: "twilio" | "websocket" | "ses" | "sendblue" | "infobip";
|
|
19044
19176
|
/** ProvisionResponse */
|
|
19045
19177
|
ProvisionResponse: {
|
|
19046
19178
|
workspace: components["schemas"]["WorkspaceResponse"];
|
|
@@ -19345,28 +19477,34 @@ export interface components {
|
|
|
19345
19477
|
};
|
|
19346
19478
|
/**
|
|
19347
19479
|
* RegisterSchemaRequest
|
|
19348
|
-
* @description Create Schema payload (intake-ui-mvp-design.md §5.4).
|
|
19480
|
+
* @description Create Schema payload (intake-ui-mvp-design.md §5.4, §5.9).
|
|
19349
19481
|
*
|
|
19350
|
-
*
|
|
19351
|
-
*
|
|
19352
|
-
*
|
|
19482
|
+
* ``ingestion_mode`` is inferred from ``file_type`` (csv/xls/xlsx → snapshot;
|
|
19483
|
+
* else document) — not part of the wire contract. Snapshot datasets require
|
|
19484
|
+
* ``primary_key`` + ``schema``; document datasets take an optional
|
|
19485
|
+
* ``document_processing`` config and ignore primary_key/schema. The backend
|
|
19486
|
+
* applies the other hidden defaults (``on_schema_change=additive``,
|
|
19487
|
+
* ``schema_version`` auto).
|
|
19353
19488
|
*/
|
|
19354
19489
|
RegisterSchemaRequest: {
|
|
19355
|
-
/**
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
*/
|
|
19359
|
-
file_type: "csv";
|
|
19490
|
+
/** @description Document only — extraction config; defaulted server-side when omitted. */
|
|
19491
|
+
document_processing?: components["schemas"]["DocumentProcessingSpec"] | null;
|
|
19492
|
+
file_type: components["schemas"]["_FileType"];
|
|
19360
19493
|
/** Max Size Mb */
|
|
19361
19494
|
max_size_mb?: number | null;
|
|
19362
19495
|
name: components["schemas"]["_DatasetSlug"];
|
|
19363
|
-
/**
|
|
19364
|
-
|
|
19496
|
+
/**
|
|
19497
|
+
* Primary Key
|
|
19498
|
+
* @description Snapshot only — the canonical PK column(s). Empty/ignored for documents.
|
|
19499
|
+
* @default []
|
|
19500
|
+
*/
|
|
19501
|
+
primary_key?: components["schemas"]["_FieldName"][];
|
|
19365
19502
|
/**
|
|
19366
19503
|
* Schema
|
|
19367
|
-
* @description
|
|
19504
|
+
* @description Snapshot only — canonical field list ``[{name, type}]`` (wire key ``schema``).
|
|
19505
|
+
* @default []
|
|
19368
19506
|
*/
|
|
19369
|
-
schema
|
|
19507
|
+
schema?: components["schemas"]["SchemaFieldSpec"][];
|
|
19370
19508
|
};
|
|
19371
19509
|
/**
|
|
19372
19510
|
* RegisteredFunction
|
|
@@ -21242,12 +21380,16 @@ export interface components {
|
|
|
21242
21380
|
expected?: unknown | null;
|
|
21243
21381
|
/** Id */
|
|
21244
21382
|
id?: string | null;
|
|
21383
|
+
/** Justification */
|
|
21384
|
+
justification?: string | null;
|
|
21245
21385
|
/** Metric Key */
|
|
21246
21386
|
metric_key?: string | null;
|
|
21247
21387
|
/** Passed */
|
|
21248
21388
|
passed?: boolean | null;
|
|
21249
21389
|
/** Rationale */
|
|
21250
21390
|
rationale?: string | null;
|
|
21391
|
+
/** References */
|
|
21392
|
+
references?: number[];
|
|
21251
21393
|
/** Run Id */
|
|
21252
21394
|
run_id?: string | null;
|
|
21253
21395
|
/** Score */
|
|
@@ -23300,6 +23442,8 @@ export interface components {
|
|
|
23300
23442
|
* @description Request body for ``POST /v1/{ws}/services/{service_id}/text-turn``.
|
|
23301
23443
|
*/
|
|
23302
23444
|
TextTurnRequest: {
|
|
23445
|
+
/** Agent Phone */
|
|
23446
|
+
agent_phone: string;
|
|
23303
23447
|
/** Phone Number */
|
|
23304
23448
|
phone_number: string;
|
|
23305
23449
|
/** Text */
|
|
@@ -25902,6 +26046,7 @@ export interface components {
|
|
|
25902
26046
|
_FieldName: string;
|
|
25903
26047
|
/** @enum {string} */
|
|
25904
26048
|
_FileStatus: "received" | "scanned" | "processing" | "curated" | "rejected" | "failed" | "held";
|
|
26049
|
+
_FileType: string;
|
|
25905
26050
|
/** @enum {string} */
|
|
25906
26051
|
_ResourceType: "integration_endpoint" | "skill" | "kb_scope";
|
|
25907
26052
|
_ToolMockKey: string;
|
|
@@ -29107,9 +29252,7 @@ export interface operations {
|
|
|
29107
29252
|
[name: string]: unknown;
|
|
29108
29253
|
};
|
|
29109
29254
|
content: {
|
|
29110
|
-
"application/json":
|
|
29111
|
-
[key: string]: unknown;
|
|
29112
|
-
};
|
|
29255
|
+
"application/json": components["schemas"]["CallQualityAnalyticsResponse"];
|
|
29113
29256
|
};
|
|
29114
29257
|
};
|
|
29115
29258
|
/** @description Validation Error */
|