@amigo-ai/platform-sdk 0.4.5 → 0.4.7

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.
Files changed (108) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +14 -10
  3. package/api.md +50 -0
  4. package/dist/index.cjs +305 -1
  5. package/dist/index.cjs.map +3 -3
  6. package/dist/index.mjs +305 -1
  7. package/dist/index.mjs.map +3 -3
  8. package/dist/resources/actions.js +9 -0
  9. package/dist/resources/actions.js.map +1 -1
  10. package/dist/resources/agents.js +6 -0
  11. package/dist/resources/agents.js.map +1 -1
  12. package/dist/resources/analytics.js +18 -0
  13. package/dist/resources/analytics.js.map +1 -1
  14. package/dist/resources/api-keys.js +3 -0
  15. package/dist/resources/api-keys.js.map +1 -1
  16. package/dist/resources/audit.js +9 -0
  17. package/dist/resources/audit.js.map +1 -1
  18. package/dist/resources/base.js +26 -0
  19. package/dist/resources/base.js.map +1 -1
  20. package/dist/resources/billing.js +3 -0
  21. package/dist/resources/billing.js.map +1 -1
  22. package/dist/resources/calls.js +9 -0
  23. package/dist/resources/calls.js.map +1 -1
  24. package/dist/resources/context-graphs.js +7 -1
  25. package/dist/resources/context-graphs.js.map +1 -1
  26. package/dist/resources/data-sources.js +3 -0
  27. package/dist/resources/data-sources.js.map +1 -1
  28. package/dist/resources/integrations.js +3 -0
  29. package/dist/resources/integrations.js.map +1 -1
  30. package/dist/resources/operators.js +16 -0
  31. package/dist/resources/operators.js.map +1 -1
  32. package/dist/resources/personas.js +3 -0
  33. package/dist/resources/personas.js.map +1 -1
  34. package/dist/resources/phone-numbers.js +3 -0
  35. package/dist/resources/phone-numbers.js.map +1 -1
  36. package/dist/resources/review-queue.js +9 -0
  37. package/dist/resources/review-queue.js.map +1 -1
  38. package/dist/resources/services.js +3 -0
  39. package/dist/resources/services.js.map +1 -1
  40. package/dist/resources/settings.js +45 -0
  41. package/dist/resources/settings.js.map +1 -1
  42. package/dist/resources/skills.js +3 -0
  43. package/dist/resources/skills.js.map +1 -1
  44. package/dist/resources/triggers.js +6 -0
  45. package/dist/resources/triggers.js.map +1 -1
  46. package/dist/resources/webhook-destinations.js +6 -0
  47. package/dist/resources/webhook-destinations.js.map +1 -1
  48. package/dist/resources/workspaces.js +3 -0
  49. package/dist/resources/workspaces.js.map +1 -1
  50. package/dist/resources/world.js +34 -0
  51. package/dist/resources/world.js.map +1 -1
  52. package/dist/types/generated/api.d.ts +762 -53
  53. package/dist/types/generated/api.d.ts.map +1 -1
  54. package/dist/types/resources/actions.d.ts +166 -17
  55. package/dist/types/resources/actions.d.ts.map +1 -1
  56. package/dist/types/resources/agents.d.ts +123 -13
  57. package/dist/types/resources/agents.d.ts.map +1 -1
  58. package/dist/types/resources/analytics.d.ts +103 -15
  59. package/dist/types/resources/analytics.d.ts.map +1 -1
  60. package/dist/types/resources/api-keys.d.ts +32 -3
  61. package/dist/types/resources/api-keys.d.ts.map +1 -1
  62. package/dist/types/resources/audit.d.ts +114 -4
  63. package/dist/types/resources/audit.d.ts.map +1 -1
  64. package/dist/types/resources/base.d.ts +11 -0
  65. package/dist/types/resources/base.d.ts.map +1 -1
  66. package/dist/types/resources/billing.d.ts +58 -8
  67. package/dist/types/resources/billing.d.ts.map +1 -1
  68. package/dist/types/resources/calls.d.ts +183 -45
  69. package/dist/types/resources/calls.d.ts.map +1 -1
  70. package/dist/types/resources/compliance.d.ts +6 -6
  71. package/dist/types/resources/context-graphs.d.ts +840 -16
  72. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  73. package/dist/types/resources/data-sources.d.ts +88 -25
  74. package/dist/types/resources/data-sources.d.ts.map +1 -1
  75. package/dist/types/resources/functions.d.ts +49 -22
  76. package/dist/types/resources/functions.d.ts.map +1 -1
  77. package/dist/types/resources/integrations.d.ts +390 -39
  78. package/dist/types/resources/integrations.d.ts.map +1 -1
  79. package/dist/types/resources/memory.d.ts +48 -4
  80. package/dist/types/resources/memory.d.ts.map +1 -1
  81. package/dist/types/resources/operators.d.ts +238 -40
  82. package/dist/types/resources/operators.d.ts.map +1 -1
  83. package/dist/types/resources/personas.d.ts +33 -6
  84. package/dist/types/resources/personas.d.ts.map +1 -1
  85. package/dist/types/resources/phone-numbers.d.ts +60 -7
  86. package/dist/types/resources/phone-numbers.d.ts.map +1 -1
  87. package/dist/types/resources/recordings.d.ts +4 -4
  88. package/dist/types/resources/review-queue.d.ts +398 -37
  89. package/dist/types/resources/review-queue.d.ts.map +1 -1
  90. package/dist/types/resources/safety.d.ts +32 -6
  91. package/dist/types/resources/safety.d.ts.map +1 -1
  92. package/dist/types/resources/services.d.ts +227 -36
  93. package/dist/types/resources/services.d.ts.map +1 -1
  94. package/dist/types/resources/settings.d.ts +450 -14
  95. package/dist/types/resources/settings.d.ts.map +1 -1
  96. package/dist/types/resources/simulations.d.ts +150 -22
  97. package/dist/types/resources/simulations.d.ts.map +1 -1
  98. package/dist/types/resources/skills.d.ts +151 -17
  99. package/dist/types/resources/skills.d.ts.map +1 -1
  100. package/dist/types/resources/triggers.d.ts +110 -52
  101. package/dist/types/resources/triggers.d.ts.map +1 -1
  102. package/dist/types/resources/webhook-destinations.d.ts +65 -15
  103. package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
  104. package/dist/types/resources/workspaces.d.ts +26 -3
  105. package/dist/types/resources/workspaces.d.ts.map +1 -1
  106. package/dist/types/resources/world.d.ts +389 -56
  107. package/dist/types/resources/world.d.ts.map +1 -1
  108. package/package.json +9 -9
@@ -1983,6 +1983,85 @@ export interface paths {
1983
1983
  patch?: never;
1984
1984
  trace?: never;
1985
1985
  };
1986
+ "/v1/{workspace_id}/dashboards": {
1987
+ parameters: {
1988
+ query?: never;
1989
+ header?: never;
1990
+ path?: never;
1991
+ cookie?: never;
1992
+ };
1993
+ /** List Dashboards */
1994
+ get: operations["list_dashboards_v1__workspace_id__dashboards_get"];
1995
+ put?: never;
1996
+ /** Create Dashboard */
1997
+ post: operations["create_dashboard_v1__workspace_id__dashboards_post"];
1998
+ delete?: never;
1999
+ options?: never;
2000
+ head?: never;
2001
+ patch?: never;
2002
+ trace?: never;
2003
+ };
2004
+ "/v1/{workspace_id}/dashboards/by-slug/{slug}": {
2005
+ parameters: {
2006
+ query?: never;
2007
+ header?: never;
2008
+ path?: never;
2009
+ cookie?: never;
2010
+ };
2011
+ /** Get Dashboard By Slug */
2012
+ get: operations["get_dashboard_by_slug_v1__workspace_id__dashboards_by_slug__slug__get"];
2013
+ put?: never;
2014
+ post?: never;
2015
+ delete?: never;
2016
+ options?: never;
2017
+ head?: never;
2018
+ patch?: never;
2019
+ trace?: never;
2020
+ };
2021
+ "/v1/{workspace_id}/dashboards/{dashboard_id}": {
2022
+ parameters: {
2023
+ query?: never;
2024
+ header?: never;
2025
+ path?: never;
2026
+ cookie?: never;
2027
+ };
2028
+ /** Get Dashboard */
2029
+ get: operations["get_dashboard_v1__workspace_id__dashboards__dashboard_id__get"];
2030
+ /** Update Dashboard */
2031
+ put: operations["update_dashboard_v1__workspace_id__dashboards__dashboard_id__put"];
2032
+ post?: never;
2033
+ /** Delete Dashboard */
2034
+ delete: operations["delete_dashboard_v1__workspace_id__dashboards__dashboard_id__delete"];
2035
+ options?: never;
2036
+ head?: never;
2037
+ patch?: never;
2038
+ trace?: never;
2039
+ };
2040
+ "/v1/{workspace_id}/dashboards/{dashboard_id}/execute": {
2041
+ parameters: {
2042
+ query?: never;
2043
+ header?: never;
2044
+ path?: never;
2045
+ cookie?: never;
2046
+ };
2047
+ get?: never;
2048
+ put?: never;
2049
+ /**
2050
+ * Execute Dashboard
2051
+ * @description Execute all panel queries and return results for rendering.
2052
+ *
2053
+ * SQL injection is mitigated by ResearchQueryService.execute_sql, which calls
2054
+ * _validate_read_only_sql to block DROP/TRUNCATE/ALTER/CREATE/GRANT/REVOKE/
2055
+ * DELETE/UPDATE/INSERT statements. Catalog-level access is further restricted
2056
+ * by the service principal's Databricks grants (read-only on analytics catalog).
2057
+ */
2058
+ post: operations["execute_dashboard_v1__workspace_id__dashboards__dashboard_id__execute_post"];
2059
+ delete?: never;
2060
+ options?: never;
2061
+ head?: never;
2062
+ patch?: never;
2063
+ trace?: never;
2064
+ };
1986
2065
  "/v1/{workspace_id}/data-sources": {
1987
2066
  parameters: {
1988
2067
  query?: never;
@@ -7419,7 +7498,7 @@ export interface components {
7419
7498
  * Direction
7420
7499
  * @description Call direction
7421
7500
  */
7422
- direction?: ("inbound" | "outbound" | "playground" | "simulated") | null;
7501
+ direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null;
7423
7502
  /**
7424
7503
  * Escalation Id
7425
7504
  * @description Escalation event ID
@@ -7470,7 +7549,7 @@ export interface components {
7470
7549
  * @description Current escalation state
7471
7550
  * @enum {string}
7472
7551
  */
7473
- status: "none" | "requested" | "connected" | "completed" | "cancelled" | "timeout";
7552
+ status: "none" | "requested" | "connected" | "handback" | "completed";
7474
7553
  /**
7475
7554
  * Trigger
7476
7555
  * @description What triggered the escalation
@@ -8356,7 +8435,7 @@ export interface components {
8356
8435
  * Completion Reason
8357
8436
  * @description Why the call ended
8358
8437
  */
8359
- completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer") | null;
8438
+ completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null;
8360
8439
  /** @description Conversation flow metrics */
8361
8440
  conversation_summary?: components["schemas"]["ConversationSummary"] | null;
8362
8441
  /**
@@ -8370,7 +8449,7 @@ export interface components {
8370
8449
  * @default inbound
8371
8450
  * @enum {string}
8372
8451
  */
8373
- direction?: "inbound" | "outbound" | "playground" | "simulated";
8452
+ direction?: "inbound" | "outbound" | "playground" | "simulated" | "test";
8374
8453
  /**
8375
8454
  * Duration Seconds
8376
8455
  * @description Call duration in seconds
@@ -8474,12 +8553,12 @@ export interface components {
8474
8553
  * Completion Reason
8475
8554
  * @description Why the call ended
8476
8555
  */
8477
- completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer") | null;
8556
+ completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null;
8478
8557
  /**
8479
8558
  * Direction
8480
8559
  * @description Call direction
8481
8560
  */
8482
- direction?: ("inbound" | "outbound" | "playground" | "simulated") | null;
8561
+ direction?: ("inbound" | "outbound" | "playground" | "simulated" | "test") | null;
8483
8562
  /**
8484
8563
  * Duration Seconds
8485
8564
  * @description Call duration in seconds
@@ -8494,7 +8573,7 @@ export interface components {
8494
8573
  * Escalation Status
8495
8574
  * @description Escalation state if any
8496
8575
  */
8497
- escalation_status?: string | null;
8576
+ escalation_status?: ("none" | "requested" | "connected" | "handback" | "completed") | null;
8498
8577
  /**
8499
8578
  * Final State
8500
8579
  * @description Final conversation state
@@ -8539,7 +8618,7 @@ export interface components {
8539
8618
  * Source
8540
8619
  * @description Whether this is a real or simulated call
8541
8620
  */
8542
- source?: ("real" | "simulated") | null;
8621
+ source?: ("real" | "simulated" | "playground" | "scribe") | null;
8543
8622
  /**
8544
8623
  * Started At
8545
8624
  * @description When the call started
@@ -8844,8 +8923,11 @@ export interface components {
8844
8923
  CommandCenterAlert: {
8845
8924
  /** Code */
8846
8925
  code: string;
8847
- /** Level */
8848
- level: string;
8926
+ /**
8927
+ * Level
8928
+ * @enum {string}
8929
+ */
8930
+ level: "info" | "warning" | "critical";
8849
8931
  /** Message */
8850
8932
  message: string;
8851
8933
  /** Section */
@@ -9067,8 +9149,9 @@ export interface components {
9067
9149
  /**
9068
9150
  * Health Status
9069
9151
  * @default unknown
9152
+ * @enum {string}
9070
9153
  */
9071
- health_status?: string;
9154
+ health_status?: "unknown" | "healthy" | "degraded";
9072
9155
  /**
9073
9156
  * Is Active
9074
9157
  * @default true
@@ -9082,7 +9165,7 @@ export interface components {
9082
9165
  */
9083
9166
  last_sync_event_count?: number;
9084
9167
  /** Last Sync Status */
9085
- last_sync_status?: string | null;
9168
+ last_sync_status?: ("success" | "error") | null;
9086
9169
  /** Name */
9087
9170
  name: string;
9088
9171
  /** Source Type */
@@ -9095,6 +9178,35 @@ export interface components {
9095
9178
  /** Total Entities */
9096
9179
  total_entities: number;
9097
9180
  };
9181
+ /**
9182
+ * ConnectorResourcesResponse
9183
+ * @description FHIR resources from a specific connected data source.
9184
+ */
9185
+ ConnectorResourcesResponse: {
9186
+ /**
9187
+ * Data Source Id
9188
+ * Format: uuid
9189
+ * @description UUID of the connected data source
9190
+ */
9191
+ data_source_id: string;
9192
+ /**
9193
+ * Entries
9194
+ * @description Raw FHIR resource JSON objects
9195
+ */
9196
+ entries: {
9197
+ [key: string]: unknown;
9198
+ }[];
9199
+ /**
9200
+ * Resource Type
9201
+ * @description FHIR resource type (e.g. Patient, Condition, MedicationRequest)
9202
+ */
9203
+ resource_type: string;
9204
+ /**
9205
+ * Total
9206
+ * @description Total number of matching resources
9207
+ */
9208
+ total: number;
9209
+ };
9098
9210
  /**
9099
9211
  * ConnectorSettingsRequest
9100
9212
  * @description Request for PUT /v1/{ws}/settings/connectors.
@@ -9490,6 +9602,28 @@ export interface components {
9490
9602
  /** Slug */
9491
9603
  slug: string;
9492
9604
  };
9605
+ /** CreateDashboardRequest */
9606
+ CreateDashboardRequest: {
9607
+ description?: components["schemas"]["DescriptionString"] | null;
9608
+ /** Filters */
9609
+ filters?: {
9610
+ [key: string]: unknown;
9611
+ }[];
9612
+ /** Page Context */
9613
+ page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
9614
+ /** Panels */
9615
+ panels?: {
9616
+ [key: string]: unknown;
9617
+ }[];
9618
+ /**
9619
+ * Refresh Interval
9620
+ * @default 300
9621
+ */
9622
+ refresh_interval?: number;
9623
+ /** Slug */
9624
+ slug: string;
9625
+ title: components["schemas"]["NameString"];
9626
+ };
9493
9627
  /** CreateDataSourceRequest */
9494
9628
  CreateDataSourceRequest: {
9495
9629
  /** Connection Config */
@@ -10321,7 +10455,7 @@ export interface components {
10321
10455
  /** Last Sync At */
10322
10456
  last_sync_at?: string | null;
10323
10457
  /** Last Sync Status */
10324
- last_sync_status?: string | null;
10458
+ last_sync_status?: ("success" | "error") | null;
10325
10459
  /**
10326
10460
  * Sync Failure Count
10327
10461
  * @default 0
@@ -10459,6 +10593,85 @@ export interface components {
10459
10593
  */
10460
10594
  date: string;
10461
10595
  };
10596
+ /** DashboardDefinitionResponse */
10597
+ DashboardDefinitionResponse: {
10598
+ /**
10599
+ * Created At
10600
+ * @description When the dashboard was created
10601
+ */
10602
+ created_at?: string | null;
10603
+ /**
10604
+ * Created By
10605
+ * @description Creator identifier
10606
+ */
10607
+ created_by?: string | null;
10608
+ /**
10609
+ * Description
10610
+ * @description Human-readable description
10611
+ */
10612
+ description?: string | null;
10613
+ /**
10614
+ * Filters
10615
+ * @description Dashboard-level filter controls
10616
+ */
10617
+ filters: {
10618
+ [key: string]: unknown;
10619
+ }[];
10620
+ /**
10621
+ * Id
10622
+ * Format: uuid
10623
+ */
10624
+ id: string;
10625
+ /**
10626
+ * Is Active
10627
+ * @description Whether the dashboard is active
10628
+ */
10629
+ is_active: boolean;
10630
+ /**
10631
+ * Page Context
10632
+ * @description Developer console page where this dashboard renders
10633
+ */
10634
+ page_context?: string | null;
10635
+ /**
10636
+ * Panels
10637
+ * @description Ordered list of panel definitions
10638
+ */
10639
+ panels: {
10640
+ [key: string]: unknown;
10641
+ }[];
10642
+ /**
10643
+ * Refresh Interval
10644
+ * @description Auto-refresh interval in seconds
10645
+ */
10646
+ refresh_interval: number;
10647
+ /**
10648
+ * Slug
10649
+ * @description URL-safe identifier
10650
+ */
10651
+ slug: string;
10652
+ /**
10653
+ * Title
10654
+ * @description Dashboard display title
10655
+ */
10656
+ title: string;
10657
+ /**
10658
+ * Updated At
10659
+ * @description When the dashboard was last updated
10660
+ */
10661
+ updated_at?: string | null;
10662
+ /** Workspace Id */
10663
+ workspace_id?: string | null;
10664
+ };
10665
+ /** DashboardExecuteResponse */
10666
+ DashboardExecuteResponse: {
10667
+ /**
10668
+ * Dashboard Id
10669
+ * Format: uuid
10670
+ */
10671
+ dashboard_id: string;
10672
+ /** Results */
10673
+ results: components["schemas"]["PanelResultResponse"][];
10674
+ };
10462
10675
  /** DashboardResponse */
10463
10676
  DashboardResponse: {
10464
10677
  /** Active Escalations */
@@ -10707,8 +10920,11 @@ export interface components {
10707
10920
  field_mappings: {
10708
10921
  [key: string]: unknown;
10709
10922
  };
10710
- /** Health Status */
10711
- health_status: string;
10923
+ /**
10924
+ * Health Status
10925
+ * @enum {string}
10926
+ */
10927
+ health_status: "unknown" | "healthy" | "degraded";
10712
10928
  /** Id */
10713
10929
  id: string;
10714
10930
  /** Is Active */
@@ -10722,15 +10938,21 @@ export interface components {
10722
10938
  /** Last Sync Event Count */
10723
10939
  last_sync_event_count: number;
10724
10940
  /** Last Sync Status */
10725
- last_sync_status: string | null;
10941
+ last_sync_status: ("success" | "error") | null;
10726
10942
  /** Name */
10727
10943
  name: string;
10728
- /** Source Type */
10729
- source_type: string;
10944
+ /**
10945
+ * Source Type
10946
+ * @enum {string}
10947
+ */
10948
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
10730
10949
  /** Sync Schedule */
10731
10950
  sync_schedule: string | null;
10732
- /** Sync Strategy */
10733
- sync_strategy: string;
10951
+ /**
10952
+ * Sync Strategy
10953
+ * @enum {string}
10954
+ */
10955
+ sync_strategy: "manual" | "scheduled" | "webhook" | "continuous";
10734
10956
  /**
10735
10957
  * Updated At
10736
10958
  * Format: date-time
@@ -10747,8 +10969,11 @@ export interface components {
10747
10969
  event_count: number;
10748
10970
  /** Failed Count */
10749
10971
  failed_count: number;
10750
- /** Health Status */
10751
- health_status: string;
10972
+ /**
10973
+ * Health Status
10974
+ * @enum {string}
10975
+ */
10976
+ health_status: "unknown" | "healthy" | "degraded";
10752
10977
  /** Is Active */
10753
10978
  is_active: boolean;
10754
10979
  /** Last Sync At */
@@ -10756,7 +10981,7 @@ export interface components {
10756
10981
  /** Last Sync Event Count */
10757
10982
  last_sync_event_count: number;
10758
10983
  /** Last Sync Status */
10759
- last_sync_status: string | null;
10984
+ last_sync_status: ("success" | "error") | null;
10760
10985
  /** Name */
10761
10986
  name: string;
10762
10987
  /** Synced Count */
@@ -11042,6 +11267,15 @@ export interface components {
11042
11267
  workspace_id: string;
11043
11268
  };
11044
11269
  DescriptionString: string;
11270
+ /** DestroySessionResponse */
11271
+ DestroySessionResponse: {
11272
+ /**
11273
+ * Status
11274
+ * @description Session destruction status
11275
+ * @constant
11276
+ */
11277
+ status: "destroyed";
11278
+ };
11045
11279
  /**
11046
11280
  * DimensionAnalytics
11047
11281
  * @description Per-dimension aggregate stats across all entities.
@@ -12172,6 +12406,16 @@ export interface components {
12172
12406
  /** Sources */
12173
12407
  sources: string[];
12174
12408
  };
12409
+ /** ExecutePanelRequest */
12410
+ ExecutePanelRequest: {
12411
+ /**
12412
+ * Filter Values
12413
+ * @description Filter values to apply to panel queries
12414
+ */
12415
+ filter_values?: {
12416
+ [key: string]: unknown;
12417
+ };
12418
+ };
12175
12419
  /** ExitCondition */
12176
12420
  ExitCondition: {
12177
12421
  /** Description */
@@ -14551,6 +14795,82 @@ export interface components {
14551
14795
  */
14552
14796
  total_escalations_handled: number;
14553
14797
  };
14798
+ /**
14799
+ * OperatorPerformanceResponse
14800
+ * @description Operator escalation performance and quality comparison over time.
14801
+ */
14802
+ OperatorPerformanceResponse: {
14803
+ /** @description Aggregate operator performance metrics */
14804
+ summary: components["schemas"]["OperatorPerformanceSummary"];
14805
+ /**
14806
+ * Trend
14807
+ * @description Time series of escalation counts per interval bucket
14808
+ */
14809
+ trend: components["schemas"]["OperatorPerformanceTrendPoint"][];
14810
+ };
14811
+ /**
14812
+ * OperatorPerformanceSummary
14813
+ * @description Aggregate operator escalation stats for the period.
14814
+ */
14815
+ OperatorPerformanceSummary: {
14816
+ /**
14817
+ * Avg Escalated Duration Seconds
14818
+ * @description Average duration in seconds of escalated calls
14819
+ */
14820
+ avg_escalated_duration_seconds?: number | null;
14821
+ /**
14822
+ * Avg Escalated Quality Score
14823
+ * @description Average quality score of escalated calls
14824
+ */
14825
+ avg_escalated_quality_score?: number | null;
14826
+ /**
14827
+ * Avg Non Escalated Quality Score
14828
+ * @description Average quality score of non-escalated calls
14829
+ */
14830
+ avg_non_escalated_quality_score?: number | null;
14831
+ /**
14832
+ * Escalated Count
14833
+ * @description Number of calls escalated to an operator
14834
+ */
14835
+ escalated_count: number;
14836
+ /**
14837
+ * Escalation Rate
14838
+ * @description Fraction of calls that were escalated (0.0-1.0)
14839
+ */
14840
+ escalation_rate: number;
14841
+ /**
14842
+ * Operator Handled Count
14843
+ * @description Number of calls where an operator was active
14844
+ */
14845
+ operator_handled_count: number;
14846
+ /**
14847
+ * Total Calls
14848
+ * @description Total number of calls in the period
14849
+ */
14850
+ total_calls: number;
14851
+ };
14852
+ /**
14853
+ * OperatorPerformanceTrendPoint
14854
+ * @description Single time-bucket data point in the operator performance trend series.
14855
+ */
14856
+ OperatorPerformanceTrendPoint: {
14857
+ /**
14858
+ * Date
14859
+ * Format: date
14860
+ * @description Date for the time bucket
14861
+ */
14862
+ date: string;
14863
+ /**
14864
+ * Escalated Count
14865
+ * @description Escalated calls in this time bucket
14866
+ */
14867
+ escalated_count: number;
14868
+ /**
14869
+ * Total Calls
14870
+ * @description Total calls in this time bucket
14871
+ */
14872
+ total_calls: number;
14873
+ };
14554
14874
  /** OperatorResponse */
14555
14875
  OperatorResponse: {
14556
14876
  /**
@@ -14877,6 +15197,17 @@ export interface components {
14877
15197
  /** Total */
14878
15198
  total?: number | null;
14879
15199
  };
15200
+ /** PaginatedResponse[DashboardDefinitionResponse] */
15201
+ PaginatedResponse_DashboardDefinitionResponse_: {
15202
+ /** Continuation Token */
15203
+ continuation_token?: number | null;
15204
+ /** Has More */
15205
+ has_more: boolean;
15206
+ /** Items */
15207
+ items: components["schemas"]["DashboardDefinitionResponse"][];
15208
+ /** Total */
15209
+ total?: number | null;
15210
+ };
14880
15211
  /** PaginatedResponse[DataSourceResponse] */
14881
15212
  PaginatedResponse_DataSourceResponse_: {
14882
15213
  /** Continuation Token */
@@ -15108,6 +15439,29 @@ export interface components {
15108
15439
  /** Total */
15109
15440
  total?: number | null;
15110
15441
  };
15442
+ /** PanelResultResponse */
15443
+ PanelResultResponse: {
15444
+ /**
15445
+ * Columns
15446
+ * @description Column names
15447
+ */
15448
+ columns: string[];
15449
+ /**
15450
+ * Error
15451
+ * @description Error message if query failed
15452
+ */
15453
+ error?: string | null;
15454
+ /**
15455
+ * Panel Id
15456
+ * @description Panel identifier from the definition
15457
+ */
15458
+ panel_id: string;
15459
+ /**
15460
+ * Rows
15461
+ * @description Result rows
15462
+ */
15463
+ rows: unknown[][];
15464
+ };
15111
15465
  /** PatientBurdenDetailResponse */
15112
15466
  PatientBurdenDetailResponse: {
15113
15467
  /** Age Adjusted Charlson Index */
@@ -15492,8 +15846,9 @@ export interface components {
15492
15846
  /**
15493
15847
  * Connector Status
15494
15848
  * @default unavailable
15849
+ * @enum {string}
15495
15850
  */
15496
- connector_status?: string;
15851
+ connector_status?: "healthy" | "degraded" | "unavailable";
15497
15852
  /**
15498
15853
  * Events Last Hour
15499
15854
  * @default 0
@@ -15654,7 +16009,7 @@ export interface components {
15654
16009
  * @default inbound
15655
16010
  * @enum {string}
15656
16011
  */
15657
- direction?: "inbound" | "outbound" | "playground" | "simulated";
16012
+ direction?: "inbound" | "outbound" | "playground" | "simulated" | "test";
15658
16013
  /** Entity Name */
15659
16014
  entity_name?: string | null;
15660
16015
  /**
@@ -15705,10 +16060,18 @@ export interface components {
15705
16060
  * @description How the agent narrates waiting on a tool.
15706
16061
  *
15707
16062
  * The actual utterance is generated from tool semantics + turn emotion +
15708
- * patient context. No hardcoded vocabulary: operators describe the shape
15709
- * of the wait, the engine chooses the words.
16063
+ * patient context. Operators describe the shape of the wait, the engine
16064
+ * chooses the words.
16065
+ *
16066
+ * ``custom_phrase`` is a narrow escape hatch for demo-critical slow tools
16067
+ * where generic templates cannot cover the wait. Gated: only honored when
16068
+ * ``expected_latency_ms >= 4000`` and ``progress_class`` is set, and the
16069
+ * phrase is at most 30 words. The gate keeps the surface small so the
16070
+ * engine-picks-words contract holds for the bulk of tools.
15710
16071
  */
15711
16072
  ProgressHint: {
16073
+ /** Custom Phrase */
16074
+ custom_phrase?: string | null;
15712
16075
  /** Expected Latency Ms */
15713
16076
  expected_latency_ms?: number | null;
15714
16077
  /**
@@ -15869,6 +16232,14 @@ export interface components {
15869
16232
  /** Session Id */
15870
16233
  session_id: string;
15871
16234
  };
16235
+ /** RecommendResponse */
16236
+ RecommendResponse: {
16237
+ /**
16238
+ * Suggestions
16239
+ * @description LLM-generated caller message suggestions
16240
+ */
16241
+ suggestions: string[];
16242
+ };
15872
16243
  /**
15873
16244
  * RecordingMetadataResponse
15874
16245
  * @description Call recording metadata.
@@ -16427,6 +16798,84 @@ export interface components {
16427
16798
  */
16428
16799
  match_count?: number;
16429
16800
  };
16801
+ /**
16802
+ * SafetyTrendPoint
16803
+ * @description Single time-bucket data point in the safety trend series.
16804
+ */
16805
+ SafetyTrendPoint: {
16806
+ /**
16807
+ * Date
16808
+ * Format: date
16809
+ * @description Date for the time bucket
16810
+ */
16811
+ date: string;
16812
+ /**
16813
+ * Escalated Count
16814
+ * @description Escalated calls in this time bucket
16815
+ */
16816
+ escalated_count: number;
16817
+ /**
16818
+ * Safety Flagged
16819
+ * @description Safety-flagged calls in this time bucket
16820
+ */
16821
+ safety_flagged: number;
16822
+ /**
16823
+ * Total Calls
16824
+ * @description Total calls in this time bucket
16825
+ */
16826
+ total_calls: number;
16827
+ };
16828
+ /**
16829
+ * SafetyTrendsResponse
16830
+ * @description Safety and escalation trends — risk distribution, escalation rates, and time series.
16831
+ */
16832
+ SafetyTrendsResponse: {
16833
+ /**
16834
+ * Risk Distribution
16835
+ * @description Count of calls by risk level (e.g. high, medium, low)
16836
+ */
16837
+ risk_distribution: {
16838
+ [key: string]: number;
16839
+ };
16840
+ /** @description Aggregate safety metrics for the full period */
16841
+ summary: components["schemas"]["SafetyTrendsSummary"];
16842
+ /**
16843
+ * Trend
16844
+ * @description Time series of safety metrics per interval bucket
16845
+ */
16846
+ trend: components["schemas"]["SafetyTrendPoint"][];
16847
+ };
16848
+ /**
16849
+ * SafetyTrendsSummary
16850
+ * @description Aggregate safety and escalation counts for the period.
16851
+ */
16852
+ SafetyTrendsSummary: {
16853
+ /**
16854
+ * Escalation Rate
16855
+ * @description Fraction of calls that were escalated (0.0-1.0)
16856
+ */
16857
+ escalation_rate: number;
16858
+ /**
16859
+ * Total Calls
16860
+ * @description Total number of calls in the period
16861
+ */
16862
+ total_calls: number;
16863
+ /**
16864
+ * Total Escalations
16865
+ * @description Number of calls escalated to an operator
16866
+ */
16867
+ total_escalations: number;
16868
+ /**
16869
+ * Total Safety Flagged
16870
+ * @description Number of calls with a safety summary present
16871
+ */
16872
+ total_safety_flagged: number;
16873
+ /**
16874
+ * Total Safety Matches
16875
+ * @description Sum of safety match counts across all calls
16876
+ */
16877
+ total_safety_matches: number;
16878
+ };
16430
16879
  /**
16431
16880
  * SampleFact
16432
16881
  * @description Representative fact snippet for a dimension (quality inspection / demos).
@@ -17332,8 +17781,11 @@ export interface components {
17332
17781
  * @default 0
17333
17782
  */
17334
17783
  event_count?: number;
17335
- /** Health Status */
17336
- health_status: string;
17784
+ /**
17785
+ * Health Status
17786
+ * @enum {string}
17787
+ */
17788
+ health_status: "unknown" | "healthy" | "degraded";
17337
17789
  /** Id */
17338
17790
  id: string;
17339
17791
  /** Is Active */
@@ -17343,8 +17795,11 @@ export interface components {
17343
17795
  last_sync_at?: string | null;
17344
17796
  /** Name */
17345
17797
  name: string;
17346
- /** Source Type */
17347
- source_type: string;
17798
+ /**
17799
+ * Source Type
17800
+ * @enum {string}
17801
+ */
17802
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
17348
17803
  };
17349
17804
  /** SourceOverviewResponse */
17350
17805
  SourceOverviewResponse: {
@@ -17362,8 +17817,11 @@ export interface components {
17362
17817
  * @default 0
17363
17818
  */
17364
17819
  event_count?: number;
17365
- /** Health Status */
17366
- health_status: string;
17820
+ /**
17821
+ * Health Status
17822
+ * @enum {string}
17823
+ */
17824
+ health_status: "unknown" | "healthy" | "degraded";
17367
17825
  /** Id */
17368
17826
  id: string;
17369
17827
  /** Is Active */
@@ -17377,7 +17835,7 @@ export interface components {
17377
17835
  */
17378
17836
  last_sync_event_count?: number;
17379
17837
  /** Last Sync Status */
17380
- last_sync_status?: string | null;
17838
+ last_sync_status?: ("success" | "error") | null;
17381
17839
  /** Name */
17382
17840
  name: string;
17383
17841
  /**
@@ -17394,8 +17852,11 @@ export interface components {
17394
17852
  * @default []
17395
17853
  */
17396
17854
  recent_failures?: components["schemas"]["SourceFailureItem"][];
17397
- /** Source Type */
17398
- source_type: string;
17855
+ /**
17856
+ * Source Type
17857
+ * @enum {string}
17858
+ */
17859
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
17399
17860
  };
17400
17861
  /** SourceStatus */
17401
17862
  SourceStatus: {
@@ -17427,8 +17888,11 @@ export interface components {
17427
17888
  * @default 0
17428
17889
  */
17429
17890
  last_poll_event_count?: number;
17430
- /** Source Type */
17431
- source_type: string;
17891
+ /**
17892
+ * Source Type
17893
+ * @enum {string}
17894
+ */
17895
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "crm" | "database" | "custom" | "smart_fhir";
17432
17896
  /** Status */
17433
17897
  status: string;
17434
17898
  /** Workspace Id */
@@ -18901,6 +19365,25 @@ export interface components {
18901
19365
  /** Status */
18902
19366
  status?: ("active" | "archived") | null;
18903
19367
  };
19368
+ /** UpdateDashboardRequest */
19369
+ UpdateDashboardRequest: {
19370
+ description?: components["schemas"]["DescriptionString"] | null;
19371
+ /** Filters */
19372
+ filters?: {
19373
+ [key: string]: unknown;
19374
+ }[] | null;
19375
+ /** Page Context */
19376
+ page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
19377
+ /** Panels */
19378
+ panels?: {
19379
+ [key: string]: unknown;
19380
+ }[] | null;
19381
+ /** Refresh Interval */
19382
+ refresh_interval?: number | null;
19383
+ /** Slug */
19384
+ slug?: string | null;
19385
+ title?: components["schemas"]["NameString"] | null;
19386
+ };
18904
19387
  /** UpdateDataSourceRequest */
18905
19388
  UpdateDataSourceRequest: {
18906
19389
  /** Connection Config */
@@ -22525,9 +23008,7 @@ export interface operations {
22525
23008
  [name: string]: unknown;
22526
23009
  };
22527
23010
  content: {
22528
- "application/json": {
22529
- [key: string]: unknown;
22530
- };
23011
+ "application/json": components["schemas"]["OperatorPerformanceResponse"];
22531
23012
  };
22532
23013
  };
22533
23014
  /** @description Validation Error */
@@ -22571,9 +23052,7 @@ export interface operations {
22571
23052
  [name: string]: unknown;
22572
23053
  };
22573
23054
  content: {
22574
- "application/json": {
22575
- [key: string]: unknown;
22576
- };
23055
+ "application/json": components["schemas"]["SafetyTrendsResponse"];
22577
23056
  };
22578
23057
  };
22579
23058
  /** @description Validation Error */
@@ -24798,6 +25277,242 @@ export interface operations {
24798
25277
  };
24799
25278
  };
24800
25279
  };
25280
+ list_dashboards_v1__workspace_id__dashboards_get: {
25281
+ parameters: {
25282
+ query?: {
25283
+ page_context?: ("home" | "patients" | "calls" | "analytics" | "pipeline" | "operators" | "surfaces" | "compliance" | "custom") | null;
25284
+ limit?: number;
25285
+ continuation_token?: number;
25286
+ };
25287
+ header?: never;
25288
+ path: {
25289
+ workspace_id: string;
25290
+ };
25291
+ cookie?: never;
25292
+ };
25293
+ requestBody?: never;
25294
+ responses: {
25295
+ /** @description Successful Response */
25296
+ 200: {
25297
+ headers: {
25298
+ [name: string]: unknown;
25299
+ };
25300
+ content: {
25301
+ "application/json": components["schemas"]["PaginatedResponse_DashboardDefinitionResponse_"];
25302
+ };
25303
+ };
25304
+ /** @description Validation Error */
25305
+ 422: {
25306
+ headers: {
25307
+ [name: string]: unknown;
25308
+ };
25309
+ content: {
25310
+ "application/json": components["schemas"]["HTTPValidationError"];
25311
+ };
25312
+ };
25313
+ };
25314
+ };
25315
+ create_dashboard_v1__workspace_id__dashboards_post: {
25316
+ parameters: {
25317
+ query?: never;
25318
+ header?: never;
25319
+ path: {
25320
+ workspace_id: string;
25321
+ };
25322
+ cookie?: never;
25323
+ };
25324
+ requestBody: {
25325
+ content: {
25326
+ "application/json": components["schemas"]["CreateDashboardRequest"];
25327
+ };
25328
+ };
25329
+ responses: {
25330
+ /** @description Successful Response */
25331
+ 201: {
25332
+ headers: {
25333
+ [name: string]: unknown;
25334
+ };
25335
+ content: {
25336
+ "application/json": components["schemas"]["DashboardDefinitionResponse"];
25337
+ };
25338
+ };
25339
+ /** @description Validation Error */
25340
+ 422: {
25341
+ headers: {
25342
+ [name: string]: unknown;
25343
+ };
25344
+ content: {
25345
+ "application/json": components["schemas"]["HTTPValidationError"];
25346
+ };
25347
+ };
25348
+ };
25349
+ };
25350
+ get_dashboard_by_slug_v1__workspace_id__dashboards_by_slug__slug__get: {
25351
+ parameters: {
25352
+ query?: never;
25353
+ header?: never;
25354
+ path: {
25355
+ slug: string;
25356
+ workspace_id: string;
25357
+ };
25358
+ cookie?: never;
25359
+ };
25360
+ requestBody?: never;
25361
+ responses: {
25362
+ /** @description Successful Response */
25363
+ 200: {
25364
+ headers: {
25365
+ [name: string]: unknown;
25366
+ };
25367
+ content: {
25368
+ "application/json": components["schemas"]["DashboardDefinitionResponse"];
25369
+ };
25370
+ };
25371
+ /** @description Validation Error */
25372
+ 422: {
25373
+ headers: {
25374
+ [name: string]: unknown;
25375
+ };
25376
+ content: {
25377
+ "application/json": components["schemas"]["HTTPValidationError"];
25378
+ };
25379
+ };
25380
+ };
25381
+ };
25382
+ get_dashboard_v1__workspace_id__dashboards__dashboard_id__get: {
25383
+ parameters: {
25384
+ query?: never;
25385
+ header?: never;
25386
+ path: {
25387
+ dashboard_id: string;
25388
+ workspace_id: string;
25389
+ };
25390
+ cookie?: never;
25391
+ };
25392
+ requestBody?: never;
25393
+ responses: {
25394
+ /** @description Successful Response */
25395
+ 200: {
25396
+ headers: {
25397
+ [name: string]: unknown;
25398
+ };
25399
+ content: {
25400
+ "application/json": components["schemas"]["DashboardDefinitionResponse"];
25401
+ };
25402
+ };
25403
+ /** @description Validation Error */
25404
+ 422: {
25405
+ headers: {
25406
+ [name: string]: unknown;
25407
+ };
25408
+ content: {
25409
+ "application/json": components["schemas"]["HTTPValidationError"];
25410
+ };
25411
+ };
25412
+ };
25413
+ };
25414
+ update_dashboard_v1__workspace_id__dashboards__dashboard_id__put: {
25415
+ parameters: {
25416
+ query?: never;
25417
+ header?: never;
25418
+ path: {
25419
+ dashboard_id: string;
25420
+ workspace_id: string;
25421
+ };
25422
+ cookie?: never;
25423
+ };
25424
+ requestBody: {
25425
+ content: {
25426
+ "application/json": components["schemas"]["UpdateDashboardRequest"];
25427
+ };
25428
+ };
25429
+ responses: {
25430
+ /** @description Successful Response */
25431
+ 200: {
25432
+ headers: {
25433
+ [name: string]: unknown;
25434
+ };
25435
+ content: {
25436
+ "application/json": components["schemas"]["DashboardDefinitionResponse"];
25437
+ };
25438
+ };
25439
+ /** @description Validation Error */
25440
+ 422: {
25441
+ headers: {
25442
+ [name: string]: unknown;
25443
+ };
25444
+ content: {
25445
+ "application/json": components["schemas"]["HTTPValidationError"];
25446
+ };
25447
+ };
25448
+ };
25449
+ };
25450
+ delete_dashboard_v1__workspace_id__dashboards__dashboard_id__delete: {
25451
+ parameters: {
25452
+ query?: never;
25453
+ header?: never;
25454
+ path: {
25455
+ dashboard_id: string;
25456
+ workspace_id: string;
25457
+ };
25458
+ cookie?: never;
25459
+ };
25460
+ requestBody?: never;
25461
+ responses: {
25462
+ /** @description Successful Response */
25463
+ 204: {
25464
+ headers: {
25465
+ [name: string]: unknown;
25466
+ };
25467
+ content?: never;
25468
+ };
25469
+ /** @description Validation Error */
25470
+ 422: {
25471
+ headers: {
25472
+ [name: string]: unknown;
25473
+ };
25474
+ content: {
25475
+ "application/json": components["schemas"]["HTTPValidationError"];
25476
+ };
25477
+ };
25478
+ };
25479
+ };
25480
+ execute_dashboard_v1__workspace_id__dashboards__dashboard_id__execute_post: {
25481
+ parameters: {
25482
+ query?: never;
25483
+ header?: never;
25484
+ path: {
25485
+ dashboard_id: string;
25486
+ workspace_id: string;
25487
+ };
25488
+ cookie?: never;
25489
+ };
25490
+ requestBody?: {
25491
+ content: {
25492
+ "application/json": components["schemas"]["ExecutePanelRequest"] | null;
25493
+ };
25494
+ };
25495
+ responses: {
25496
+ /** @description Successful Response */
25497
+ 200: {
25498
+ headers: {
25499
+ [name: string]: unknown;
25500
+ };
25501
+ content: {
25502
+ "application/json": components["schemas"]["DashboardExecuteResponse"];
25503
+ };
25504
+ };
25505
+ /** @description Validation Error */
25506
+ 422: {
25507
+ headers: {
25508
+ [name: string]: unknown;
25509
+ };
25510
+ content: {
25511
+ "application/json": components["schemas"]["HTTPValidationError"];
25512
+ };
25513
+ };
25514
+ };
25515
+ };
24801
25516
  "list-data-sources": {
24802
25517
  parameters: {
24803
25518
  query?: {
@@ -33167,9 +33882,7 @@ export interface operations {
33167
33882
  [name: string]: unknown;
33168
33883
  };
33169
33884
  content: {
33170
- "application/json": {
33171
- [key: string]: unknown;
33172
- };
33885
+ "application/json": components["schemas"]["RecommendResponse"];
33173
33886
  };
33174
33887
  };
33175
33888
  /** @description Validation Error */
@@ -33268,9 +33981,7 @@ export interface operations {
33268
33981
  [name: string]: unknown;
33269
33982
  };
33270
33983
  content: {
33271
- "application/json": {
33272
- [key: string]: string;
33273
- };
33984
+ "application/json": components["schemas"]["DestroySessionResponse"];
33274
33985
  };
33275
33986
  };
33276
33987
  /** @description Validation Error */
@@ -35770,9 +36481,7 @@ export interface operations {
35770
36481
  [name: string]: unknown;
35771
36482
  };
35772
36483
  content: {
35773
- "application/json": {
35774
- [key: string]: unknown;
35775
- };
36484
+ "application/json": components["schemas"]["ConnectorResourcesResponse"];
35776
36485
  };
35777
36486
  };
35778
36487
  /** @description Invalid data source ID or resource type. */