@amigo-ai/platform-sdk 0.8.0 → 0.9.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.
@@ -19,6 +19,12 @@ export class CallsResource extends WorkspaceScopedResource {
19
19
  params: { path: { workspace_id: this.workspaceId, call_id: callId } },
20
20
  }));
21
21
  }
22
+ /** Get the canonical playback timeline for a call */
23
+ async getTimeline(callId) {
24
+ return extractData(await this.client.GET('/v1/{workspace_id}/calls/{call_id}/timeline', {
25
+ params: { path: { workspace_id: this.workspaceId, call_id: callId } },
26
+ }));
27
+ }
22
28
  /** Get AI intelligence for a call */
23
29
  async getIntelligence(callId) {
24
30
  return extractData(await this.client.GET('/v1/{workspace_id}/calls/{call_id}/intelligence', {
@@ -1 +1 @@
1
- {"version":3,"file":"calls.js","sourceRoot":"","sources":["../../src/resources/calls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAiBhE;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,uBAAuB;IACxD,yCAAyC;IACzC,KAAK,CAAC,IAAI,CAAC,MAAwB;QACjC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,EAAE;YAChD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAAwB;QACrC,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED,mFAAmF;IACnF,KAAK,CAAC,GAAG,CAAC,MAAc;QACtB,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,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M,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,mCAAmC;IACnC,KAAK,CAAC,gBAAgB,CAAC,MAAc;QACnC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mDAAmD,EAAE;YACzE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;SACtE,CAAC,CACH,CAAA;IACH,CAAC;CACF"}
@@ -1662,6 +1662,46 @@ export interface paths {
1662
1662
  patch?: never;
1663
1663
  trace?: never;
1664
1664
  };
1665
+ "/v1/{workspace_id}/calls/{call_id}/metrics": {
1666
+ parameters: {
1667
+ query?: never;
1668
+ header?: never;
1669
+ path?: never;
1670
+ cookie?: never;
1671
+ };
1672
+ /**
1673
+ * Call metric values
1674
+ * @description Latest per-call Universal Metric Store values for the call detail sidebar.
1675
+ */
1676
+ get: operations["list-call-metric-values"];
1677
+ put?: never;
1678
+ post?: never;
1679
+ delete?: never;
1680
+ options?: never;
1681
+ head?: never;
1682
+ patch?: never;
1683
+ trace?: never;
1684
+ };
1685
+ "/v1/{workspace_id}/calls/{call_id}/timeline": {
1686
+ parameters: {
1687
+ query?: never;
1688
+ header?: never;
1689
+ path?: never;
1690
+ cookie?: never;
1691
+ };
1692
+ /**
1693
+ * Call playback timeline
1694
+ * @description Canonical playback timeline for the call detail visualization. This is the same strongly typed timeline model embedded in the call detail response, exposed directly for timeline-only consumers.
1695
+ */
1696
+ get: operations["get-call-timeline"];
1697
+ put?: never;
1698
+ post?: never;
1699
+ delete?: never;
1700
+ options?: never;
1701
+ head?: never;
1702
+ patch?: never;
1703
+ trace?: never;
1704
+ };
1665
1705
  "/v1/{workspace_id}/calls/{call_id}/trace-analysis": {
1666
1706
  parameters: {
1667
1707
  query?: never;
@@ -3916,6 +3956,26 @@ export interface paths {
3916
3956
  patch?: never;
3917
3957
  trace?: never;
3918
3958
  };
3959
+ "/v1/{workspace_id}/metrics/{metric_key}/evaluate": {
3960
+ parameters: {
3961
+ query?: never;
3962
+ header?: never;
3963
+ path?: never;
3964
+ cookie?: never;
3965
+ };
3966
+ get?: never;
3967
+ put?: never;
3968
+ /**
3969
+ * Evaluate a metric once without storing it
3970
+ * @description Execute one metric definition without persisting to UMS.
3971
+ */
3972
+ post: operations["evaluate-metric"];
3973
+ delete?: never;
3974
+ options?: never;
3975
+ head?: never;
3976
+ patch?: never;
3977
+ trace?: never;
3978
+ };
3919
3979
  "/v1/{workspace_id}/metrics/{metric_key}/trend": {
3920
3980
  parameters: {
3921
3981
  query?: never;
@@ -9077,6 +9137,10 @@ export interface components {
9077
9137
  avg_confidence?: number | null;
9078
9138
  /** Computed At */
9079
9139
  computed_at?: string | null;
9140
+ /** Entity Id */
9141
+ entity_id?: string | null;
9142
+ /** Entity Type */
9143
+ entity_type?: string | null;
9080
9144
  /** Event Count */
9081
9145
  event_count: number;
9082
9146
  /** Metric Key */
@@ -9096,6 +9160,17 @@ export interface components {
9096
9160
  * Format: date-time
9097
9161
  */
9098
9162
  period_start: string;
9163
+ /** Run Id */
9164
+ run_id?: string | null;
9165
+ /** Service Id */
9166
+ service_id?: string | null;
9167
+ /** Session Id */
9168
+ session_id?: string | null;
9169
+ /**
9170
+ * Source
9171
+ * @default production
9172
+ */
9173
+ source?: string;
9099
9174
  /** Unit */
9100
9175
  unit?: string | null;
9101
9176
  /** Value */
@@ -9794,6 +9869,10 @@ export interface components {
9794
9869
  avg_confidence?: number | null;
9795
9870
  /** Computed At */
9796
9871
  computed_at?: string | null;
9872
+ /** Entity Id */
9873
+ entity_id?: string | null;
9874
+ /** Entity Type */
9875
+ entity_type?: string | null;
9797
9876
  /** Event Count */
9798
9877
  event_count: number;
9799
9878
  /** Metric Key */
@@ -9813,6 +9892,17 @@ export interface components {
9813
9892
  * Format: date-time
9814
9893
  */
9815
9894
  period_start: string;
9895
+ /** Run Id */
9896
+ run_id?: string | null;
9897
+ /** Service Id */
9898
+ service_id?: string | null;
9899
+ /** Session Id */
9900
+ session_id?: string | null;
9901
+ /**
9902
+ * Source
9903
+ * @default production
9904
+ */
9905
+ source?: string;
9816
9906
  /** Unit */
9817
9907
  unit?: string | null;
9818
9908
  /** Value */
@@ -10882,7 +10972,7 @@ export interface components {
10882
10972
  [key: string]: unknown;
10883
10973
  }[];
10884
10974
  /** Page Context */
10885
- page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
10975
+ page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
10886
10976
  /** Panels */
10887
10977
  panels?: {
10888
10978
  [key: string]: unknown;
@@ -14232,8 +14322,14 @@ export interface components {
14232
14322
  address?: {
14233
14323
  [key: string]: unknown;
14234
14324
  } | null;
14325
+ /** Address Line */
14326
+ address_line?: string | null;
14235
14327
  /** Canonical Id */
14236
14328
  canonical_id?: string | null;
14329
+ /** City */
14330
+ city?: string | null;
14331
+ /** Country */
14332
+ country?: string | null;
14237
14333
  /** Entity Id */
14238
14334
  entity_id: string;
14239
14335
  /**
@@ -14241,18 +14337,30 @@ export interface components {
14241
14337
  * @default 0
14242
14338
  */
14243
14339
  event_count?: number;
14340
+ /** Facility Id */
14341
+ facility_id?: string | null;
14244
14342
  /** Hours */
14245
14343
  hours?: {
14246
14344
  [key: string]: unknown;
14247
14345
  } | null;
14248
14346
  /** Last Event At */
14249
14347
  last_event_at?: string | null;
14348
+ /** Latitude */
14349
+ latitude?: number | null;
14350
+ /** Longitude */
14351
+ longitude?: number | null;
14250
14352
  /** Name */
14251
14353
  name?: string | null;
14252
14354
  /** Phone */
14253
14355
  phone?: string | null;
14356
+ /** Postal Code */
14357
+ postal_code?: string | null;
14254
14358
  /** Source System */
14255
14359
  source_system?: string | null;
14360
+ /** State */
14361
+ state?: string | null;
14362
+ /** Timezone */
14363
+ timezone?: string | null;
14256
14364
  };
14257
14365
  /** FhirOrganizationListResponse */
14258
14366
  FhirOrganizationListResponse: {
@@ -16631,6 +16739,42 @@ export interface components {
16631
16739
  */
16632
16740
  valid_range_min?: number | null;
16633
16741
  };
16742
+ /** MetricEvaluateRequest */
16743
+ MetricEvaluateRequest: {
16744
+ /**
16745
+ * As Of
16746
+ * @description Optional point-in-time cutoff for selecting the call intelligence snapshot.
16747
+ */
16748
+ as_of?: string | null;
16749
+ /**
16750
+ * Persist
16751
+ * @description On-demand metric evaluation never writes to metrics.metric_values.
16752
+ * @default false
16753
+ * @constant
16754
+ */
16755
+ persist?: false;
16756
+ /**
16757
+ * Subject Id
16758
+ * @description CallSid, call UUID, or simulation session id
16759
+ */
16760
+ subject_id: string;
16761
+ };
16762
+ /** MetricEvaluateResponse */
16763
+ MetricEvaluateResponse: {
16764
+ /**
16765
+ * Evaluated At
16766
+ * Format: date-time
16767
+ */
16768
+ evaluated_at: string;
16769
+ /** Metric */
16770
+ metric: components["schemas"]["NumericalMetricValueResponse"] | components["schemas"]["CategoricalMetricValueResponse"] | components["schemas"]["BooleanMetricValueResponse"];
16771
+ /**
16772
+ * Persisted
16773
+ * @default false
16774
+ * @constant
16775
+ */
16776
+ persisted?: false;
16777
+ };
16634
16778
  /** MetricListResponse */
16635
16779
  MetricListResponse: {
16636
16780
  /** Metrics */
@@ -16852,6 +16996,10 @@ export interface components {
16852
16996
  avg_confidence?: number | null;
16853
16997
  /** Computed At */
16854
16998
  computed_at?: string | null;
16999
+ /** Entity Id */
17000
+ entity_id?: string | null;
17001
+ /** Entity Type */
17002
+ entity_type?: string | null;
16855
17003
  /** Event Count */
16856
17004
  event_count: number;
16857
17005
  /** Metric Key */
@@ -16871,6 +17019,17 @@ export interface components {
16871
17019
  * Format: date-time
16872
17020
  */
16873
17021
  period_start: string;
17022
+ /** Run Id */
17023
+ run_id?: string | null;
17024
+ /** Service Id */
17025
+ service_id?: string | null;
17026
+ /** Session Id */
17027
+ session_id?: string | null;
17028
+ /**
17029
+ * Source
17030
+ * @default production
17031
+ */
17032
+ source?: string;
16874
17033
  /** Unit */
16875
17034
  unit?: string | null;
16876
17035
  /** Value */
@@ -18425,9 +18584,9 @@ export interface components {
18425
18584
  total_entities?: number;
18426
18585
  /**
18427
18586
  * Total Events
18428
- * @default 0
18587
+ * @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
18588
  */
18430
- total_events?: number;
18589
+ total_events?: number | null;
18431
18590
  /** Uptime Seconds */
18432
18591
  uptime_seconds?: number | null;
18433
18592
  };
@@ -18453,10 +18612,18 @@ export interface components {
18453
18612
  avg_processing_gap_ms?: number | null;
18454
18613
  /** Duration Seconds */
18455
18614
  duration_seconds: number;
18615
+ /**
18616
+ * Lanes
18617
+ * @description Canonical actor/system lane model. Every segment lane_id resolves against this collection.
18618
+ * @default []
18619
+ */
18620
+ lanes?: components["schemas"]["TimelineLaneDefinition"][];
18456
18621
  /** Max Processing Gap Ms */
18457
18622
  max_processing_gap_ms?: number | null;
18458
18623
  /** Segments */
18459
18624
  segments: components["schemas"]["TimelineSegment"][];
18625
+ /** @description Canonical timebase shared by waveform, overlays, seek state, zoom, and scroll transforms. */
18626
+ timebase?: components["schemas"]["TimelineTimebase"] | null;
18460
18627
  /**
18461
18628
  * Total Agent Speech Seconds
18462
18629
  * @default 0
@@ -21926,6 +22093,32 @@ export interface components {
21926
22093
  */
21927
22094
  role: "agent" | "caller" | "operator" | "runtime" | "state" | "tool";
21928
22095
  };
22096
+ /** TimelineLaneDefinition */
22097
+ TimelineLaneDefinition: {
22098
+ /** @description Actor represented by this lane when applicable. */
22099
+ actor?: components["schemas"]["TimelineActor"] | null;
22100
+ /**
22101
+ * Id
22102
+ * @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.
22103
+ */
22104
+ id: string;
22105
+ /**
22106
+ * Label
22107
+ * @description Display label for the lane.
22108
+ */
22109
+ label: string;
22110
+ /**
22111
+ * Order
22112
+ * @description Stable vertical order within the timeline lane model.
22113
+ */
22114
+ order: number;
22115
+ /**
22116
+ * Track
22117
+ * @description High-level actor-semantic track for styling and grouping.
22118
+ * @enum {string}
22119
+ */
22120
+ track: "agent" | "caller" | "operator" | "system" | "tool";
22121
+ };
21929
22122
  /** TimelineSegment */
21930
22123
  TimelineSegment: {
21931
22124
  /** @description Actor responsible for the segment. Inferred for legacy producers. */
@@ -21936,6 +22129,8 @@ export interface components {
21936
22129
  audio_window_end?: number | null;
21937
22130
  /** Audio Window Start */
21938
22131
  audio_window_start?: number | null;
22132
+ /** Call Id */
22133
+ call_id?: string | null;
21939
22134
  /** Duration Ms */
21940
22135
  duration_ms?: number | null;
21941
22136
  /** E2E Ttfb Ms */
@@ -21944,12 +22139,16 @@ export interface components {
21944
22139
  emotion?: string | null;
21945
22140
  /** End */
21946
22141
  end: number;
22142
+ /** Endpoint Name */
22143
+ endpoint_name?: string | null;
21947
22144
  /** Engine Ms */
21948
22145
  engine_ms?: number | null;
21949
22146
  /** Eot Confidence */
21950
22147
  eot_confidence?: number | null;
21951
22148
  /** From State */
21952
22149
  from_state?: string | null;
22150
+ /** Integration Name */
22151
+ integration_name?: string | null;
21953
22152
  /** Label */
21954
22153
  label: string;
21955
22154
  /**
@@ -21957,8 +22156,22 @@ export interface components {
21957
22156
  * @enum {string}
21958
22157
  */
21959
22158
  lane: "agent" | "caller" | "events" | "operator" | "system" | "tool";
22159
+ /**
22160
+ * Lane Id
22161
+ * @description Canonical lane id. Must match PlaybackTimeline.lanes[].id after platform normalization.
22162
+ */
22163
+ lane_id?: string | null;
21960
22164
  /** Nav Ms */
21961
22165
  nav_ms?: number | null;
22166
+ /**
22167
+ * Order
22168
+ * @description Canonical event order after platform time/lane normalization.
22169
+ */
22170
+ order?: number | null;
22171
+ /** Parent Call Id */
22172
+ parent_call_id?: string | null;
22173
+ /** Protocol */
22174
+ protocol?: string | null;
21962
22175
  /** Render Ms */
21963
22176
  render_ms?: number | null;
21964
22177
  /** Start */
@@ -21988,6 +22201,35 @@ export interface components {
21988
22201
  /** Valence */
21989
22202
  valence?: number | null;
21990
22203
  };
22204
+ /** TimelineTimebase */
22205
+ TimelineTimebase: {
22206
+ /**
22207
+ * End
22208
+ * @description Visible/canonical timeline range end in seconds.
22209
+ * @default 0
22210
+ */
22211
+ end?: number;
22212
+ /**
22213
+ * Origin
22214
+ * @description Zero point used for segment start/end offsets.
22215
+ * @default media_start
22216
+ * @enum {string}
22217
+ */
22218
+ origin?: "media_start" | "call_start" | "synthetic";
22219
+ /**
22220
+ * Start
22221
+ * @description Visible/canonical timeline range start in seconds.
22222
+ * @default 0
22223
+ */
22224
+ start?: number;
22225
+ /**
22226
+ * Unit
22227
+ * @description Timeline offsets are always seconds.
22228
+ * @default seconds
22229
+ * @constant
22230
+ */
22231
+ unit?: "seconds";
22232
+ };
21991
22233
  /** ToolCall */
21992
22234
  ToolCall: {
21993
22235
  /** Call Id */
@@ -22962,7 +23204,7 @@ export interface components {
22962
23204
  [key: string]: unknown;
22963
23205
  }[] | null;
22964
23206
  /** Page Context */
22965
- page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
23207
+ page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
22966
23208
  /** Panels */
22967
23209
  panels?: {
22968
23210
  [key: string]: unknown;
@@ -24259,14 +24501,14 @@ export interface components {
24259
24501
  event_read_model_synced_at?: string | null;
24260
24502
  /**
24261
24503
  * Events 24H
24262
- * @default 0
24504
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24263
24505
  */
24264
- events_24h?: number;
24506
+ events_24h?: number | null;
24265
24507
  /**
24266
24508
  * Events 7D
24267
- * @default 0
24509
+ * @description Event count from the Lakebase read model; null when the projection is empty or unavailable.
24268
24510
  */
24269
- events_7d?: number;
24511
+ events_7d?: number | null;
24270
24512
  /** Sources */
24271
24513
  sources?: components["schemas"]["SourceBreakdownItem"][];
24272
24514
  };
@@ -28490,6 +28732,80 @@ export interface operations {
28490
28732
  };
28491
28733
  };
28492
28734
  };
28735
+ "list-call-metric-values": {
28736
+ parameters: {
28737
+ query?: {
28738
+ /** @description Max metric values to return */
28739
+ limit?: number;
28740
+ };
28741
+ header?: never;
28742
+ path: {
28743
+ call_id: string;
28744
+ workspace_id: string;
28745
+ };
28746
+ cookie?: never;
28747
+ };
28748
+ requestBody?: never;
28749
+ responses: {
28750
+ /** @description Successful Response */
28751
+ 200: {
28752
+ headers: {
28753
+ [name: string]: unknown;
28754
+ };
28755
+ content: {
28756
+ "application/json": components["schemas"]["MetricListResponse"];
28757
+ };
28758
+ };
28759
+ /** @description Validation Error */
28760
+ 422: {
28761
+ headers: {
28762
+ [name: string]: unknown;
28763
+ };
28764
+ content: {
28765
+ "application/json": components["schemas"]["HTTPValidationError"];
28766
+ };
28767
+ };
28768
+ };
28769
+ };
28770
+ "get-call-timeline": {
28771
+ parameters: {
28772
+ query?: never;
28773
+ header?: never;
28774
+ path: {
28775
+ call_id: string;
28776
+ workspace_id: string;
28777
+ };
28778
+ cookie?: never;
28779
+ };
28780
+ requestBody?: never;
28781
+ responses: {
28782
+ /** @description Successful Response */
28783
+ 200: {
28784
+ headers: {
28785
+ [name: string]: unknown;
28786
+ };
28787
+ content: {
28788
+ "application/json": components["schemas"]["PlaybackTimeline"];
28789
+ };
28790
+ };
28791
+ /** @description Call not found */
28792
+ 404: {
28793
+ headers: {
28794
+ [name: string]: unknown;
28795
+ };
28796
+ content?: never;
28797
+ };
28798
+ /** @description Validation Error */
28799
+ 422: {
28800
+ headers: {
28801
+ [name: string]: unknown;
28802
+ };
28803
+ content: {
28804
+ "application/json": components["schemas"]["HTTPValidationError"];
28805
+ };
28806
+ };
28807
+ };
28808
+ };
28493
28809
  "get-call-trace-analysis": {
28494
28810
  parameters: {
28495
28811
  query?: never;
@@ -29472,7 +29788,7 @@ export interface operations {
29472
29788
  list_dashboards_v1__workspace_id__dashboards_get: {
29473
29789
  parameters: {
29474
29790
  query?: {
29475
- page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
29791
+ page_context?: ("home" | "patients" | "calls" | "data" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
29476
29792
  limit?: number;
29477
29793
  continuation_token?: number;
29478
29794
  };
@@ -33159,7 +33475,15 @@ export interface operations {
33159
33475
  };
33160
33476
  "list-metrics": {
33161
33477
  parameters: {
33162
- query?: never;
33478
+ query?: {
33479
+ source?: "production" | "simulation" | "all";
33480
+ scope?: "aggregate" | "entity" | "all";
33481
+ entity_type?: string | null;
33482
+ entity_id?: string | null;
33483
+ service_id?: string | null;
33484
+ run_id?: string | null;
33485
+ session_id?: string | null;
33486
+ };
33163
33487
  header?: never;
33164
33488
  path: {
33165
33489
  workspace_id: string;
@@ -33177,6 +33501,15 @@ export interface operations {
33177
33501
  "application/json": components["schemas"]["MetricListResponse"];
33178
33502
  };
33179
33503
  };
33504
+ /** @description Validation Error */
33505
+ 422: {
33506
+ headers: {
33507
+ [name: string]: unknown;
33508
+ };
33509
+ content: {
33510
+ "application/json": components["schemas"]["HTTPValidationError"];
33511
+ };
33512
+ };
33180
33513
  /** @description Rate limited */
33181
33514
  429: {
33182
33515
  headers: {
@@ -33218,13 +33551,21 @@ export interface operations {
33218
33551
  "get-metric-values": {
33219
33552
  parameters: {
33220
33553
  query?: {
33554
+ source?: "production" | "simulation" | "all";
33555
+ scope?: "aggregate" | "entity" | "all";
33556
+ entity_type?: string | null;
33557
+ entity_id?: string | null;
33558
+ service_id?: string | null;
33559
+ run_id?: string | null;
33560
+ session_id?: string | null;
33221
33561
  date_from?: string | null;
33222
33562
  date_to?: string | null;
33223
33563
  limit?: number;
33224
33564
  };
33225
33565
  header?: never;
33226
33566
  path: {
33227
- metric_key: string;
33567
+ /** @description Metric key */
33568
+ metric_key: components["schemas"]["SlugString"];
33228
33569
  workspace_id: string;
33229
33570
  };
33230
33571
  cookie?: never;
@@ -33258,14 +33599,85 @@ export interface operations {
33258
33599
  };
33259
33600
  };
33260
33601
  };
33602
+ "evaluate-metric": {
33603
+ parameters: {
33604
+ query?: never;
33605
+ header?: never;
33606
+ path: {
33607
+ /** @description Metric key */
33608
+ metric_key: components["schemas"]["SlugString"];
33609
+ workspace_id: string;
33610
+ };
33611
+ cookie?: never;
33612
+ };
33613
+ requestBody: {
33614
+ content: {
33615
+ "application/json": components["schemas"]["MetricEvaluateRequest"];
33616
+ };
33617
+ };
33618
+ responses: {
33619
+ /** @description Successful Response */
33620
+ 200: {
33621
+ headers: {
33622
+ [name: string]: unknown;
33623
+ };
33624
+ content: {
33625
+ "application/json": components["schemas"]["MetricEvaluateResponse"];
33626
+ };
33627
+ };
33628
+ /** @description Metric or call intelligence not found */
33629
+ 404: {
33630
+ headers: {
33631
+ [name: string]: unknown;
33632
+ };
33633
+ content?: never;
33634
+ };
33635
+ /** @description Metric cannot be evaluated on demand */
33636
+ 422: {
33637
+ headers: {
33638
+ [name: string]: unknown;
33639
+ };
33640
+ content?: never;
33641
+ };
33642
+ /** @description Rate limited */
33643
+ 429: {
33644
+ headers: {
33645
+ [name: string]: unknown;
33646
+ };
33647
+ content?: never;
33648
+ };
33649
+ /** @description Metric preview query failed */
33650
+ 502: {
33651
+ headers: {
33652
+ [name: string]: unknown;
33653
+ };
33654
+ content?: never;
33655
+ };
33656
+ /** @description Analytics warehouse not configured */
33657
+ 503: {
33658
+ headers: {
33659
+ [name: string]: unknown;
33660
+ };
33661
+ content?: never;
33662
+ };
33663
+ };
33664
+ };
33261
33665
  "get-metric-trend": {
33262
33666
  parameters: {
33263
33667
  query?: {
33668
+ source?: "production" | "simulation" | "all";
33669
+ scope?: "aggregate" | "entity" | "all";
33670
+ entity_type?: string | null;
33671
+ entity_id?: string | null;
33672
+ service_id?: string | null;
33673
+ run_id?: string | null;
33674
+ session_id?: string | null;
33264
33675
  days?: number;
33265
33676
  };
33266
33677
  header?: never;
33267
33678
  path: {
33268
- metric_key: string;
33679
+ /** @description Metric key */
33680
+ metric_key: components["schemas"]["SlugString"];
33269
33681
  workspace_id: string;
33270
33682
  };
33271
33683
  cookie?: never;