@amigo-ai/platform-sdk 0.7.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.
@@ -6964,7 +6964,7 @@ export interface paths {
6964
6964
  };
6965
6965
  /**
6966
6966
  * List Trigger Runs
6967
- * @description Execution history query Delta world_events for this trigger's lifecycle events.
6967
+ * @description Execution history from the Lakebase entity-event timeline read model.
6968
6968
  */
6969
6969
  get: operations["list_trigger_runs_v1__workspace_id__triggers__trigger_id__runs_get"];
6970
6970
  put?: never;
@@ -7303,7 +7303,7 @@ export interface paths {
7303
7303
  };
7304
7304
  /**
7305
7305
  * List Deliveries
7306
- * @description Delivery history query Delta world_events for this destination's webhook receives.
7306
+ * @description Delivery history from the Lakebase entity-event timeline read model.
7307
7307
  */
7308
7308
  get: operations["list_deliveries_v1__workspace_id__webhook_destinations__destination_id__deliveries_get"];
7309
7309
  put?: never;
@@ -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
@@ -21909,14 +21962,61 @@ export interface components {
21909
21962
  /** Source System */
21910
21963
  source_system?: string | null;
21911
21964
  };
21965
+ /** TimelineActor */
21966
+ TimelineActor: {
21967
+ /**
21968
+ * Kind
21969
+ * @enum {string}
21970
+ */
21971
+ kind: "agent" | "human" | "operator" | "system" | "tool";
21972
+ /** Label */
21973
+ label: string;
21974
+ /** Participant Id */
21975
+ participant_id?: string | null;
21976
+ /**
21977
+ * Role
21978
+ * @enum {string}
21979
+ */
21980
+ role: "agent" | "caller" | "operator" | "runtime" | "state" | "tool";
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
+ };
21912
22008
  /** TimelineSegment */
21913
22009
  TimelineSegment: {
22010
+ /** @description Actor responsible for the segment. Inferred for legacy producers. */
22011
+ actor?: components["schemas"]["TimelineActor"] | null;
21914
22012
  /** Audio Ttfb Ms */
21915
22013
  audio_ttfb_ms?: number | null;
21916
22014
  /** Audio Window End */
21917
22015
  audio_window_end?: number | null;
21918
22016
  /** Audio Window Start */
21919
22017
  audio_window_start?: number | null;
22018
+ /** Call Id */
22019
+ call_id?: string | null;
21920
22020
  /** Duration Ms */
21921
22021
  duration_ms?: number | null;
21922
22022
  /** E2E Ttfb Ms */
@@ -21925,18 +22025,39 @@ export interface components {
21925
22025
  emotion?: string | null;
21926
22026
  /** End */
21927
22027
  end: number;
22028
+ /** Endpoint Name */
22029
+ endpoint_name?: string | null;
21928
22030
  /** Engine Ms */
21929
22031
  engine_ms?: number | null;
21930
22032
  /** Eot Confidence */
21931
22033
  eot_confidence?: number | null;
21932
22034
  /** From State */
21933
22035
  from_state?: string | null;
22036
+ /** Integration Name */
22037
+ integration_name?: string | null;
21934
22038
  /** Label */
21935
22039
  label: string;
21936
- /** Lane */
21937
- lane: string;
22040
+ /**
22041
+ * Lane
22042
+ * @enum {string}
22043
+ */
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;
21938
22050
  /** Nav Ms */
21939
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;
21940
22061
  /** Render Ms */
21941
22062
  render_ms?: number | null;
21942
22063
  /** Start */
@@ -21951,13 +22072,50 @@ export interface components {
21951
22072
  to_state?: string | null;
21952
22073
  /** Tool Name */
21953
22074
  tool_name?: string | null;
22075
+ /**
22076
+ * Track
22077
+ * @description Actor-semantic display track for the segment. Inferred for legacy producers.
22078
+ */
22079
+ track?: ("agent" | "caller" | "operator" | "system" | "tool") | null;
21954
22080
  /** Turn Index */
21955
22081
  turn_index: number;
21956
- /** Type */
21957
- type: string;
22082
+ /**
22083
+ * Type
22084
+ * @enum {string}
22085
+ */
22086
+ type: "agent_speech" | "barge_in" | "caller_speech" | "filler_hesitation" | "filler_nav" | "greeting" | "interrupted_speech" | "processing_gap" | "silence" | "silence_check" | "state_transition" | "tool_call";
21958
22087
  /** Valence */
21959
22088
  valence?: number | null;
21960
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
+ };
21961
22119
  /** ToolCall */
21962
22120
  ToolCall: {
21963
22121
  /** Call Id */
@@ -24229,14 +24387,14 @@ export interface components {
24229
24387
  event_read_model_synced_at?: string | null;
24230
24388
  /**
24231
24389
  * Events 24H
24232
- * @default 0
24390
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24233
24391
  */
24234
- events_24h?: number;
24392
+ events_24h?: number | null;
24235
24393
  /**
24236
24394
  * Events 7D
24237
- * @default 0
24395
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24238
24396
  */
24239
- events_7d?: number;
24397
+ events_7d?: number | null;
24240
24398
  /** Sources */
24241
24399
  sources?: components["schemas"]["SourceBreakdownItem"][];
24242
24400
  };
@@ -33129,7 +33287,15 @@ export interface operations {
33129
33287
  };
33130
33288
  "list-metrics": {
33131
33289
  parameters: {
33132
- 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
+ };
33133
33299
  header?: never;
33134
33300
  path: {
33135
33301
  workspace_id: string;
@@ -33147,6 +33313,15 @@ export interface operations {
33147
33313
  "application/json": components["schemas"]["MetricListResponse"];
33148
33314
  };
33149
33315
  };
33316
+ /** @description Validation Error */
33317
+ 422: {
33318
+ headers: {
33319
+ [name: string]: unknown;
33320
+ };
33321
+ content: {
33322
+ "application/json": components["schemas"]["HTTPValidationError"];
33323
+ };
33324
+ };
33150
33325
  /** @description Rate limited */
33151
33326
  429: {
33152
33327
  headers: {
@@ -33188,6 +33363,13 @@ export interface operations {
33188
33363
  "get-metric-values": {
33189
33364
  parameters: {
33190
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;
33191
33373
  date_from?: string | null;
33192
33374
  date_to?: string | null;
33193
33375
  limit?: number;
@@ -33231,6 +33413,13 @@ export interface operations {
33231
33413
  "get-metric-trend": {
33232
33414
  parameters: {
33233
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;
33234
33423
  days?: number;
33235
33424
  };
33236
33425
  header?: never;