@amigo-ai/platform-sdk 0.8.0 → 0.9.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.
@@ -9077,6 +9077,10 @@ export interface components {
9077
9077
  avg_confidence?: number | null;
9078
9078
  /** Computed At */
9079
9079
  computed_at?: string | null;
9080
+ /** Entity Id */
9081
+ entity_id?: string | null;
9082
+ /** Entity Type */
9083
+ entity_type?: string | null;
9080
9084
  /** Event Count */
9081
9085
  event_count: number;
9082
9086
  /** Metric Key */
@@ -9096,6 +9100,17 @@ export interface components {
9096
9100
  * Format: date-time
9097
9101
  */
9098
9102
  period_start: string;
9103
+ /** Run Id */
9104
+ run_id?: string | null;
9105
+ /** Service Id */
9106
+ service_id?: string | null;
9107
+ /** Session Id */
9108
+ session_id?: string | null;
9109
+ /**
9110
+ * Source
9111
+ * @default production
9112
+ */
9113
+ source?: string;
9099
9114
  /** Unit */
9100
9115
  unit?: string | null;
9101
9116
  /** Value */
@@ -9794,6 +9809,10 @@ export interface components {
9794
9809
  avg_confidence?: number | null;
9795
9810
  /** Computed At */
9796
9811
  computed_at?: string | null;
9812
+ /** Entity Id */
9813
+ entity_id?: string | null;
9814
+ /** Entity Type */
9815
+ entity_type?: string | null;
9797
9816
  /** Event Count */
9798
9817
  event_count: number;
9799
9818
  /** Metric Key */
@@ -9813,6 +9832,17 @@ export interface components {
9813
9832
  * Format: date-time
9814
9833
  */
9815
9834
  period_start: string;
9835
+ /** Run Id */
9836
+ run_id?: string | null;
9837
+ /** Service Id */
9838
+ service_id?: string | null;
9839
+ /** Session Id */
9840
+ session_id?: string | null;
9841
+ /**
9842
+ * Source
9843
+ * @default production
9844
+ */
9845
+ source?: string;
9816
9846
  /** Unit */
9817
9847
  unit?: string | null;
9818
9848
  /** Value */
@@ -16852,6 +16882,10 @@ export interface components {
16852
16882
  avg_confidence?: number | null;
16853
16883
  /** Computed At */
16854
16884
  computed_at?: string | null;
16885
+ /** Entity Id */
16886
+ entity_id?: string | null;
16887
+ /** Entity Type */
16888
+ entity_type?: string | null;
16855
16889
  /** Event Count */
16856
16890
  event_count: number;
16857
16891
  /** Metric Key */
@@ -16871,6 +16905,17 @@ export interface components {
16871
16905
  * Format: date-time
16872
16906
  */
16873
16907
  period_start: string;
16908
+ /** Run Id */
16909
+ run_id?: string | null;
16910
+ /** Service Id */
16911
+ service_id?: string | null;
16912
+ /** Session Id */
16913
+ session_id?: string | null;
16914
+ /**
16915
+ * Source
16916
+ * @default production
16917
+ */
16918
+ source?: string;
16874
16919
  /** Unit */
16875
16920
  unit?: string | null;
16876
16921
  /** Value */
@@ -18425,9 +18470,9 @@ export interface components {
18425
18470
  total_entities?: number;
18426
18471
  /**
18427
18472
  * Total Events
18428
- * @default 0
18473
+ * @description Read-model event count for the last 7 days. Null means the read model is empty or unavailable; zero means the read model is ready and has no events.
18429
18474
  */
18430
- total_events?: number;
18475
+ total_events?: number | null;
18431
18476
  /** Uptime Seconds */
18432
18477
  uptime_seconds?: number | null;
18433
18478
  };
@@ -18453,10 +18498,18 @@ export interface components {
18453
18498
  avg_processing_gap_ms?: number | null;
18454
18499
  /** Duration Seconds */
18455
18500
  duration_seconds: number;
18501
+ /**
18502
+ * Lanes
18503
+ * @description Canonical actor/system lane model. Every segment lane_id resolves against this collection.
18504
+ * @default []
18505
+ */
18506
+ lanes?: components["schemas"]["TimelineLaneDefinition"][];
18456
18507
  /** Max Processing Gap Ms */
18457
18508
  max_processing_gap_ms?: number | null;
18458
18509
  /** Segments */
18459
18510
  segments: components["schemas"]["TimelineSegment"][];
18511
+ /** @description Canonical timebase shared by waveform, overlays, seek state, zoom, and scroll transforms. */
18512
+ timebase?: components["schemas"]["TimelineTimebase"] | null;
18460
18513
  /**
18461
18514
  * Total Agent Speech Seconds
18462
18515
  * @default 0
@@ -21926,6 +21979,32 @@ export interface components {
21926
21979
  */
21927
21980
  role: "agent" | "caller" | "operator" | "runtime" | "state" | "tool";
21928
21981
  };
21982
+ /** TimelineLaneDefinition */
21983
+ TimelineLaneDefinition: {
21984
+ /** @description Actor represented by this lane when applicable. */
21985
+ actor?: components["schemas"]["TimelineActor"] | null;
21986
+ /**
21987
+ * Id
21988
+ * @description Stable canonical lane id used by timeline visualizations. Segments attach via TimelineSegment.lane_id; consumers should not re-infer lanes from CSS or pixel positions.
21989
+ */
21990
+ id: string;
21991
+ /**
21992
+ * Label
21993
+ * @description Display label for the lane.
21994
+ */
21995
+ label: string;
21996
+ /**
21997
+ * Order
21998
+ * @description Stable vertical order within the timeline lane model.
21999
+ */
22000
+ order: number;
22001
+ /**
22002
+ * Track
22003
+ * @description High-level actor-semantic track for styling and grouping.
22004
+ * @enum {string}
22005
+ */
22006
+ track: "agent" | "caller" | "operator" | "system" | "tool";
22007
+ };
21929
22008
  /** TimelineSegment */
21930
22009
  TimelineSegment: {
21931
22010
  /** @description Actor responsible for the segment. Inferred for legacy producers. */
@@ -21936,6 +22015,8 @@ export interface components {
21936
22015
  audio_window_end?: number | null;
21937
22016
  /** Audio Window Start */
21938
22017
  audio_window_start?: number | null;
22018
+ /** Call Id */
22019
+ call_id?: string | null;
21939
22020
  /** Duration Ms */
21940
22021
  duration_ms?: number | null;
21941
22022
  /** E2E Ttfb Ms */
@@ -21944,12 +22025,16 @@ export interface components {
21944
22025
  emotion?: string | null;
21945
22026
  /** End */
21946
22027
  end: number;
22028
+ /** Endpoint Name */
22029
+ endpoint_name?: string | null;
21947
22030
  /** Engine Ms */
21948
22031
  engine_ms?: number | null;
21949
22032
  /** Eot Confidence */
21950
22033
  eot_confidence?: number | null;
21951
22034
  /** From State */
21952
22035
  from_state?: string | null;
22036
+ /** Integration Name */
22037
+ integration_name?: string | null;
21953
22038
  /** Label */
21954
22039
  label: string;
21955
22040
  /**
@@ -21957,8 +22042,22 @@ export interface components {
21957
22042
  * @enum {string}
21958
22043
  */
21959
22044
  lane: "agent" | "caller" | "events" | "operator" | "system" | "tool";
22045
+ /**
22046
+ * Lane Id
22047
+ * @description Canonical lane id. Must match PlaybackTimeline.lanes[].id after platform normalization.
22048
+ */
22049
+ lane_id?: string | null;
21960
22050
  /** Nav Ms */
21961
22051
  nav_ms?: number | null;
22052
+ /**
22053
+ * Order
22054
+ * @description Canonical event order after platform time/lane normalization.
22055
+ */
22056
+ order?: number | null;
22057
+ /** Parent Call Id */
22058
+ parent_call_id?: string | null;
22059
+ /** Protocol */
22060
+ protocol?: string | null;
21962
22061
  /** Render Ms */
21963
22062
  render_ms?: number | null;
21964
22063
  /** Start */
@@ -21988,6 +22087,35 @@ export interface components {
21988
22087
  /** Valence */
21989
22088
  valence?: number | null;
21990
22089
  };
22090
+ /** TimelineTimebase */
22091
+ TimelineTimebase: {
22092
+ /**
22093
+ * End
22094
+ * @description Visible/canonical timeline range end in seconds.
22095
+ * @default 0
22096
+ */
22097
+ end?: number;
22098
+ /**
22099
+ * Origin
22100
+ * @description Zero point used for segment start/end offsets.
22101
+ * @default media_start
22102
+ * @enum {string}
22103
+ */
22104
+ origin?: "media_start" | "call_start" | "synthetic";
22105
+ /**
22106
+ * Start
22107
+ * @description Visible/canonical timeline range start in seconds.
22108
+ * @default 0
22109
+ */
22110
+ start?: number;
22111
+ /**
22112
+ * Unit
22113
+ * @description Timeline offsets are always seconds.
22114
+ * @default seconds
22115
+ * @constant
22116
+ */
22117
+ unit?: "seconds";
22118
+ };
21991
22119
  /** ToolCall */
21992
22120
  ToolCall: {
21993
22121
  /** Call Id */
@@ -24259,14 +24387,14 @@ export interface components {
24259
24387
  event_read_model_synced_at?: string | null;
24260
24388
  /**
24261
24389
  * Events 24H
24262
- * @default 0
24390
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24263
24391
  */
24264
- events_24h?: number;
24392
+ events_24h?: number | null;
24265
24393
  /**
24266
24394
  * Events 7D
24267
- * @default 0
24395
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24268
24396
  */
24269
- events_7d?: number;
24397
+ events_7d?: number | null;
24270
24398
  /** Sources */
24271
24399
  sources?: components["schemas"]["SourceBreakdownItem"][];
24272
24400
  };
@@ -33159,7 +33287,15 @@ export interface operations {
33159
33287
  };
33160
33288
  "list-metrics": {
33161
33289
  parameters: {
33162
- query?: never;
33290
+ query?: {
33291
+ source?: "production" | "simulation" | "all";
33292
+ scope?: "aggregate" | "entity" | "all";
33293
+ entity_type?: string | null;
33294
+ entity_id?: string | null;
33295
+ service_id?: string | null;
33296
+ run_id?: string | null;
33297
+ session_id?: string | null;
33298
+ };
33163
33299
  header?: never;
33164
33300
  path: {
33165
33301
  workspace_id: string;
@@ -33177,6 +33313,15 @@ export interface operations {
33177
33313
  "application/json": components["schemas"]["MetricListResponse"];
33178
33314
  };
33179
33315
  };
33316
+ /** @description Validation Error */
33317
+ 422: {
33318
+ headers: {
33319
+ [name: string]: unknown;
33320
+ };
33321
+ content: {
33322
+ "application/json": components["schemas"]["HTTPValidationError"];
33323
+ };
33324
+ };
33180
33325
  /** @description Rate limited */
33181
33326
  429: {
33182
33327
  headers: {
@@ -33218,6 +33363,13 @@ export interface operations {
33218
33363
  "get-metric-values": {
33219
33364
  parameters: {
33220
33365
  query?: {
33366
+ source?: "production" | "simulation" | "all";
33367
+ scope?: "aggregate" | "entity" | "all";
33368
+ entity_type?: string | null;
33369
+ entity_id?: string | null;
33370
+ service_id?: string | null;
33371
+ run_id?: string | null;
33372
+ session_id?: string | null;
33221
33373
  date_from?: string | null;
33222
33374
  date_to?: string | null;
33223
33375
  limit?: number;
@@ -33261,6 +33413,13 @@ export interface operations {
33261
33413
  "get-metric-trend": {
33262
33414
  parameters: {
33263
33415
  query?: {
33416
+ source?: "production" | "simulation" | "all";
33417
+ scope?: "aggregate" | "entity" | "all";
33418
+ entity_type?: string | null;
33419
+ entity_id?: string | null;
33420
+ service_id?: string | null;
33421
+ run_id?: string | null;
33422
+ session_id?: string | null;
33264
33423
  days?: number;
33265
33424
  };
33266
33425
  header?: never;