@amigo-ai/platform-sdk 0.89.0 → 0.90.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.
@@ -2691,6 +2691,74 @@ export interface paths {
2691
2691
  patch?: never;
2692
2692
  trace?: never;
2693
2693
  };
2694
+ "/v1/{workspace_id}/external-write-proposals": {
2695
+ parameters: {
2696
+ query?: never;
2697
+ header?: never;
2698
+ path?: never;
2699
+ cookie?: never;
2700
+ };
2701
+ /** List External Write Proposals */
2702
+ get: operations["list-external-write-proposals"];
2703
+ put?: never;
2704
+ post?: never;
2705
+ delete?: never;
2706
+ options?: never;
2707
+ head?: never;
2708
+ patch?: never;
2709
+ trace?: never;
2710
+ };
2711
+ "/v1/{workspace_id}/external-write-proposals/{proposal_id}": {
2712
+ parameters: {
2713
+ query?: never;
2714
+ header?: never;
2715
+ path?: never;
2716
+ cookie?: never;
2717
+ };
2718
+ /** Get External Write Proposal */
2719
+ get: operations["get-external-write-proposal"];
2720
+ put?: never;
2721
+ post?: never;
2722
+ delete?: never;
2723
+ options?: never;
2724
+ head?: never;
2725
+ patch?: never;
2726
+ trace?: never;
2727
+ };
2728
+ "/v1/{workspace_id}/external-write-proposals/{proposal_id}/approve": {
2729
+ parameters: {
2730
+ query?: never;
2731
+ header?: never;
2732
+ path?: never;
2733
+ cookie?: never;
2734
+ };
2735
+ get?: never;
2736
+ put?: never;
2737
+ /** Approve External Write Proposal */
2738
+ post: operations["approve-external-write-proposal"];
2739
+ delete?: never;
2740
+ options?: never;
2741
+ head?: never;
2742
+ patch?: never;
2743
+ trace?: never;
2744
+ };
2745
+ "/v1/{workspace_id}/external-write-proposals/{proposal_id}/reject": {
2746
+ parameters: {
2747
+ query?: never;
2748
+ header?: never;
2749
+ path?: never;
2750
+ cookie?: never;
2751
+ };
2752
+ get?: never;
2753
+ put?: never;
2754
+ /** Reject External Write Proposal */
2755
+ post: operations["reject-external-write-proposal"];
2756
+ delete?: never;
2757
+ options?: never;
2758
+ head?: never;
2759
+ patch?: never;
2760
+ trace?: never;
2761
+ };
2694
2762
  "/v1/{workspace_id}/fhir/import": {
2695
2763
  parameters: {
2696
2764
  query?: never;
@@ -5407,6 +5475,26 @@ export interface paths {
5407
5475
  patch?: never;
5408
5476
  trace?: never;
5409
5477
  };
5478
+ "/v1/{workspace_id}/runs/summary": {
5479
+ parameters: {
5480
+ query?: never;
5481
+ header?: never;
5482
+ path?: never;
5483
+ cookie?: never;
5484
+ };
5485
+ /**
5486
+ * Run counts (framework + conversation)
5487
+ * @description Aggregate counts for the workspace's runs behind the unified ``Run`` contract: ``total``, ``live`` (running + paused), each canonical status, a full ``by_status`` map, and ``by_kind`` (conversation vs framework). Federates the Delta ``world.runs`` MV and Lakebase ``world.conversations`` with a cheap GROUP BY. Optional ``kind`` / ``channel`` filters mirror the list; a ``channel`` filter restricts to conversation runs.
5488
+ */
5489
+ get: operations["runs_summary_v1__workspace_id__runs_summary_get"];
5490
+ put?: never;
5491
+ post?: never;
5492
+ delete?: never;
5493
+ options?: never;
5494
+ head?: never;
5495
+ patch?: never;
5496
+ trace?: never;
5497
+ };
5410
5498
  "/v1/{workspace_id}/scheduling-rule-sets": {
5411
5499
  parameters: {
5412
5500
  query?: never;
@@ -6343,6 +6431,29 @@ export interface paths {
6343
6431
  patch?: never;
6344
6432
  trace?: never;
6345
6433
  };
6434
+ "/v1/{workspace_id}/simulations/runs/summary": {
6435
+ parameters: {
6436
+ query?: never;
6437
+ header?: never;
6438
+ path?: never;
6439
+ cookie?: never;
6440
+ };
6441
+ /**
6442
+ * Get Simulation Runs Summary
6443
+ * @description Aggregate run counts (total + by status) for the Runs summary strip.
6444
+ *
6445
+ * Registered *before* ``/runs/{run_id}`` so the static ``summary`` path
6446
+ * segment is matched here rather than parsed as a run UUID (which would 422).
6447
+ */
6448
+ get: operations["get-simulation-runs-summary"];
6449
+ put?: never;
6450
+ post?: never;
6451
+ delete?: never;
6452
+ options?: never;
6453
+ head?: never;
6454
+ patch?: never;
6455
+ trace?: never;
6456
+ };
6346
6457
  "/v1/{workspace_id}/simulations/runs/{run_id}": {
6347
6458
  parameters: {
6348
6459
  query?: never;
@@ -7456,7 +7567,7 @@ export interface paths {
7456
7567
  put?: never;
7457
7568
  /**
7458
7569
  * Register an enrichment key
7459
- * @description Registers a new (entity_type, key) in this workspace's enrichment key registry. Future writes against this key will pass validation. value_type governs what values are accepted; enum types require allowed_values.
7570
+ * @description Registers a new (entity_type, key) in this workspace's enrichment key registry. Future writes against this key will pass validation. value_type governs what values are accepted; enum types require allowed_values. Tag a person key with 'memory_extract' (description required) to make it a workspace-custom memory dimension the conversation extractor infers from transcripts.
7460
7571
  */
7461
7572
  post: operations["create-enrichment-key"];
7462
7573
  delete?: never;
@@ -7484,7 +7595,7 @@ export interface paths {
7484
7595
  head?: never;
7485
7596
  /**
7486
7597
  * Update a registered enrichment key
7487
- * @description Update allowed_values, source_hint, description, min_confidence, or is_pii. key and value_type are immutable.
7598
+ * @description Update allowed_values, source_hint, description, min_confidence, is_pii, or tags. key and value_type are immutable.
7488
7599
  */
7489
7600
  patch: operations["patch-enrichment-key"];
7490
7601
  trace?: never;
@@ -13747,6 +13858,11 @@ export interface components {
13747
13858
  */
13748
13859
  min_confidence?: number;
13749
13860
  source_hint?: components["schemas"]["DescriptionString"] | null;
13861
+ /**
13862
+ * Tags
13863
+ * @description Routing tags. 'memory_extract' opts this key into memory extraction — the conversation extractor will infer it from transcripts as a workspace-custom memory dimension (person keys with a description only).
13864
+ */
13865
+ tags?: "memory_extract"[];
13750
13866
  /**
13751
13867
  * Value Type
13752
13868
  * @enum {string}
@@ -13768,6 +13884,11 @@ export interface components {
13768
13884
  /** Min Confidence */
13769
13885
  min_confidence?: number | null;
13770
13886
  source_hint?: components["schemas"]["DescriptionString"] | null;
13887
+ /**
13888
+ * Tags
13889
+ * @description Replaces the full tags list when set. Pass [] to remove all tags.
13890
+ */
13891
+ tags?: "memory_extract"[] | null;
13771
13892
  };
13772
13893
  /** EnrichmentKeyResponse */
13773
13894
  EnrichmentKeyResponse: {
@@ -13795,6 +13916,11 @@ export interface components {
13795
13916
  min_confidence: number;
13796
13917
  /** Source Hint */
13797
13918
  source_hint?: string | null;
13919
+ /**
13920
+ * Tags
13921
+ * @default []
13922
+ */
13923
+ tags?: string[];
13798
13924
  /**
13799
13925
  * Updated At
13800
13926
  * Format: date-time
@@ -14932,6 +15058,83 @@ export interface components {
14932
15058
  };
14933
15059
  ExternalSystemString: string;
14934
15060
  ExternalValueString: string;
15061
+ /**
15062
+ * ExternalWriteProposal
15063
+ * @description A human-review proposal for an external (EHR) write-back — the Review Queue.
15064
+ *
15065
+ * Staged by connector-runner when a `review_required` sink would otherwise
15066
+ * auto-push (world.external_write_proposals); a reviewer approves/rejects, and the
15067
+ * egress drain delivers approved ones. ``proposed_payload`` is the full FHIR write
15068
+ * body and MAY contain PHI — this surface is workspace-scoped (FORCE-RLS) and
15069
+ * permission-gated (ReviewQueue); never log it. ``connector_type``/``fhir_*``/
15070
+ * ``status``/``idempotency_key`` are opaque strings; the ids are uuid.
15071
+ */
15072
+ ExternalWriteProposal: {
15073
+ /** Confidence */
15074
+ confidence?: number | null;
15075
+ /** Connector Type */
15076
+ connector_type: string;
15077
+ /** Created At */
15078
+ created_at?: string | null;
15079
+ /**
15080
+ * Data Source Id
15081
+ * Format: uuid
15082
+ */
15083
+ data_source_id: string;
15084
+ /** Decided At */
15085
+ decided_at?: string | null;
15086
+ /** Decided By */
15087
+ decided_by?: string | null;
15088
+ /** Entity Id */
15089
+ entity_id?: string | null;
15090
+ /** Error */
15091
+ error?: string | null;
15092
+ /** Event Type */
15093
+ event_type?: string | null;
15094
+ /** Fhir Resource Id */
15095
+ fhir_resource_id?: string | null;
15096
+ /** Fhir Resource Type */
15097
+ fhir_resource_type: string;
15098
+ /**
15099
+ * Id
15100
+ * Format: uuid
15101
+ */
15102
+ id: string;
15103
+ /**
15104
+ * Origin Event Id
15105
+ * Format: uuid
15106
+ */
15107
+ origin_event_id: string;
15108
+ /** Origin Run Id */
15109
+ origin_run_id?: string | null;
15110
+ /** Origin Run Kind */
15111
+ origin_run_kind?: string | null;
15112
+ /** Proposed Payload */
15113
+ proposed_payload?: {
15114
+ [key: string]: unknown;
15115
+ };
15116
+ /**
15117
+ * Push Attempt Count
15118
+ * @default 0
15119
+ */
15120
+ push_attempt_count?: number;
15121
+ /** Reject Reason */
15122
+ reject_reason?: string | null;
15123
+ /**
15124
+ * Status
15125
+ * @enum {string}
15126
+ */
15127
+ status: "proposed" | "approved" | "rejected" | "pushing" | "pushed" | "failed" | "superseded";
15128
+ /** Updated At */
15129
+ updated_at?: string | null;
15130
+ /** Vendor Resource Id */
15131
+ vendor_resource_id?: string | null;
15132
+ /**
15133
+ * Workspace Id
15134
+ * Format: uuid
15135
+ */
15136
+ workspace_id: string;
15137
+ };
14935
15138
  /**
14936
15139
  * FailureClass
14937
15140
  * @description Why a tool result is a failure — produced by the executor at RUN time.
@@ -19061,6 +19264,17 @@ export interface components {
19061
19264
  /** Total */
19062
19265
  total?: number | null;
19063
19266
  };
19267
+ /** PaginatedResponse[ExternalWriteProposal] */
19268
+ PaginatedResponse_ExternalWriteProposal_: {
19269
+ /** Continuation Token */
19270
+ continuation_token?: number | null;
19271
+ /** Has More */
19272
+ has_more: boolean;
19273
+ /** Items */
19274
+ items: components["schemas"]["ExternalWriteProposal"][];
19275
+ /** Total */
19276
+ total?: number | null;
19277
+ };
19064
19278
  /** PaginatedResponse[IntakeFileRow] */
19065
19279
  PaginatedResponse_IntakeFileRow_: {
19066
19280
  /** Continuation Token */
@@ -20787,6 +21001,11 @@ export interface components {
20787
21001
  */
20788
21002
  when_to_use?: string;
20789
21003
  };
21004
+ /** RejectProposalRequest */
21005
+ RejectProposalRequest: {
21006
+ /** Reason */
21007
+ reason: string;
21008
+ };
20790
21009
  /**
20791
21010
  * RejectRequest
20792
21011
  * @description Reject events — demotes confidence to 0.0.
@@ -21411,6 +21630,39 @@ export interface components {
21411
21630
  /** Items */
21412
21631
  items: components["schemas"]["Run"][];
21413
21632
  };
21633
+ /**
21634
+ * RunsSummaryResponse
21635
+ * @description Aggregate run counts for the Runs page summary strip.
21636
+ *
21637
+ * Honest workspace totals the paginated list cannot derive client-side (it only
21638
+ * holds the loaded page). ``by_status`` carries the full canonical breakdown
21639
+ * (incl. any status beyond the named convenience fields); ``by_kind`` splits
21640
+ * framework vs conversation. ``live`` = running + paused.
21641
+ */
21642
+ RunsSummaryResponse: {
21643
+ /** By Kind */
21644
+ by_kind: {
21645
+ [key: string]: number;
21646
+ };
21647
+ /** By Status */
21648
+ by_status: {
21649
+ [key: string]: number;
21650
+ };
21651
+ /** Completed */
21652
+ completed: number;
21653
+ /** Failed */
21654
+ failed: number;
21655
+ /** Live */
21656
+ live: number;
21657
+ /** Paused */
21658
+ paused: number;
21659
+ /** Running */
21660
+ running: number;
21661
+ /** Timed Out */
21662
+ timed_out: number;
21663
+ /** Total */
21664
+ total: number;
21665
+ };
21414
21666
  /** Runtime */
21415
21667
  Runtime: {
21416
21668
  /**
@@ -22906,6 +23158,36 @@ export interface components {
22906
23158
  */
22907
23159
  total_turns?: number;
22908
23160
  };
23161
+ /**
23162
+ * SimulationRunSummaryResponse
23163
+ * @description Aggregate counts across a workspace's simulation runs, for the Runs page
23164
+ * summary strip.
23165
+ *
23166
+ * A cheap ``GROUP BY status`` over ``world.simulation_coverage_runs`` — honest
23167
+ * totals the 50-row list view cannot derive client-side. ``by_status`` carries
23168
+ * the full breakdown (incl. any status beyond the three named convenience
23169
+ * fields) so a new lifecycle state surfaces without a schema change.
23170
+ */
23171
+ SimulationRunSummaryResponse: {
23172
+ /** By Status */
23173
+ by_status: {
23174
+ [key: string]: number;
23175
+ };
23176
+ /** Completed */
23177
+ completed: number;
23178
+ /** Failed */
23179
+ failed: number;
23180
+ /** Last Created At */
23181
+ last_created_at?: string | null;
23182
+ /** Running */
23183
+ running: number;
23184
+ /** Total */
23185
+ total: number;
23186
+ /** Total Sessions */
23187
+ total_sessions: number;
23188
+ /** Total Turns */
23189
+ total_turns: number;
23190
+ };
22909
23191
  /** SimulationSessionResponse */
22910
23192
  SimulationSessionResponse: {
22911
23193
  /** Greeting */
@@ -26292,10 +26574,20 @@ export interface components {
26292
26574
  * @default
26293
26575
  */
26294
26576
  message?: string;
26577
+ /**
26578
+ * Suppress Filler
26579
+ * @description Synchronous callers only: when a turn ends ``background_pending``, omit the filler/acknowledgement text from ``output`` so a batch caller never mistakes the ack for the answer (``output`` is empty; ``background_pending=true`` is the poll-later signal). ``null`` (default) inherits the channel policy. Ignored with ``poll=true`` (422).
26580
+ */
26581
+ suppress_filler?: boolean | null;
26295
26582
  /** Viewport Height */
26296
26583
  viewport_height?: number | null;
26297
26584
  /** Viewport Width */
26298
26585
  viewport_width?: number | null;
26586
+ /**
26587
+ * Wait For Final
26588
+ * @description Synchronous callers only: when a turn hands work to a background tool (``background_pending``), await the real answer inline (bounded, ~30s) instead of returning the acknowledgement immediately. On completion the response carries the final answer with ``background_pending=false``; on timeout it returns ``background_pending=true`` — resolve it later with ``poll=true``. ``null`` (default) inherits the channel policy (web = do not wait). Ignored with ``poll=true`` (422).
26589
+ */
26590
+ wait_for_final?: boolean | null;
26299
26591
  };
26300
26592
  /** TurnResponse */
26301
26593
  TurnResponse: {
@@ -35787,6 +36079,141 @@ export interface operations {
35787
36079
  };
35788
36080
  };
35789
36081
  };
36082
+ "list-external-write-proposals": {
36083
+ parameters: {
36084
+ query?: {
36085
+ status?: ("proposed" | "approved" | "rejected" | "pushing" | "pushed" | "failed" | "superseded") | null;
36086
+ limit?: number;
36087
+ continuation_token?: number;
36088
+ };
36089
+ header?: never;
36090
+ path: {
36091
+ workspace_id: string;
36092
+ };
36093
+ cookie?: never;
36094
+ };
36095
+ requestBody?: never;
36096
+ responses: {
36097
+ /** @description Successful Response */
36098
+ 200: {
36099
+ headers: {
36100
+ [name: string]: unknown;
36101
+ };
36102
+ content: {
36103
+ "application/json": components["schemas"]["PaginatedResponse_ExternalWriteProposal_"];
36104
+ };
36105
+ };
36106
+ /** @description Validation Error */
36107
+ 422: {
36108
+ headers: {
36109
+ [name: string]: unknown;
36110
+ };
36111
+ content: {
36112
+ "application/json": components["schemas"]["HTTPValidationError"];
36113
+ };
36114
+ };
36115
+ };
36116
+ };
36117
+ "get-external-write-proposal": {
36118
+ parameters: {
36119
+ query?: never;
36120
+ header?: never;
36121
+ path: {
36122
+ workspace_id: string;
36123
+ proposal_id: string;
36124
+ };
36125
+ cookie?: never;
36126
+ };
36127
+ requestBody?: never;
36128
+ responses: {
36129
+ /** @description Successful Response */
36130
+ 200: {
36131
+ headers: {
36132
+ [name: string]: unknown;
36133
+ };
36134
+ content: {
36135
+ "application/json": components["schemas"]["ExternalWriteProposal"];
36136
+ };
36137
+ };
36138
+ /** @description Validation Error */
36139
+ 422: {
36140
+ headers: {
36141
+ [name: string]: unknown;
36142
+ };
36143
+ content: {
36144
+ "application/json": components["schemas"]["HTTPValidationError"];
36145
+ };
36146
+ };
36147
+ };
36148
+ };
36149
+ "approve-external-write-proposal": {
36150
+ parameters: {
36151
+ query?: never;
36152
+ header?: never;
36153
+ path: {
36154
+ workspace_id: string;
36155
+ proposal_id: string;
36156
+ };
36157
+ cookie?: never;
36158
+ };
36159
+ requestBody?: never;
36160
+ responses: {
36161
+ /** @description Successful Response */
36162
+ 200: {
36163
+ headers: {
36164
+ [name: string]: unknown;
36165
+ };
36166
+ content: {
36167
+ "application/json": components["schemas"]["ExternalWriteProposal"];
36168
+ };
36169
+ };
36170
+ /** @description Validation Error */
36171
+ 422: {
36172
+ headers: {
36173
+ [name: string]: unknown;
36174
+ };
36175
+ content: {
36176
+ "application/json": components["schemas"]["HTTPValidationError"];
36177
+ };
36178
+ };
36179
+ };
36180
+ };
36181
+ "reject-external-write-proposal": {
36182
+ parameters: {
36183
+ query?: never;
36184
+ header?: never;
36185
+ path: {
36186
+ workspace_id: string;
36187
+ proposal_id: string;
36188
+ };
36189
+ cookie?: never;
36190
+ };
36191
+ requestBody: {
36192
+ content: {
36193
+ "application/json": components["schemas"]["RejectProposalRequest"];
36194
+ };
36195
+ };
36196
+ responses: {
36197
+ /** @description Successful Response */
36198
+ 200: {
36199
+ headers: {
36200
+ [name: string]: unknown;
36201
+ };
36202
+ content: {
36203
+ "application/json": components["schemas"]["ExternalWriteProposal"];
36204
+ };
36205
+ };
36206
+ /** @description Validation Error */
36207
+ 422: {
36208
+ headers: {
36209
+ [name: string]: unknown;
36210
+ };
36211
+ content: {
36212
+ "application/json": components["schemas"]["HTTPValidationError"];
36213
+ };
36214
+ };
36215
+ };
36216
+ };
35790
36217
  "fhir-import": {
35791
36218
  parameters: {
35792
36219
  query?: never;
@@ -41725,6 +42152,40 @@ export interface operations {
41725
42152
  };
41726
42153
  };
41727
42154
  };
42155
+ runs_summary_v1__workspace_id__runs_summary_get: {
42156
+ parameters: {
42157
+ query?: {
42158
+ kind?: ("conversation" | "framework") | null;
42159
+ channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
42160
+ };
42161
+ header?: never;
42162
+ path: {
42163
+ workspace_id: string;
42164
+ };
42165
+ cookie?: never;
42166
+ };
42167
+ requestBody?: never;
42168
+ responses: {
42169
+ /** @description Successful Response */
42170
+ 200: {
42171
+ headers: {
42172
+ [name: string]: unknown;
42173
+ };
42174
+ content: {
42175
+ "application/json": components["schemas"]["RunsSummaryResponse"];
42176
+ };
42177
+ };
42178
+ /** @description Validation Error */
42179
+ 422: {
42180
+ headers: {
42181
+ [name: string]: unknown;
42182
+ };
42183
+ content: {
42184
+ "application/json": components["schemas"]["HTTPValidationError"];
42185
+ };
42186
+ };
42187
+ };
42188
+ };
41728
42189
  "list-scheduling-rule-sets": {
41729
42190
  parameters: {
41730
42191
  query?: {
@@ -44047,6 +44508,39 @@ export interface operations {
44047
44508
  };
44048
44509
  };
44049
44510
  };
44511
+ "get-simulation-runs-summary": {
44512
+ parameters: {
44513
+ query?: {
44514
+ service_id?: string | null;
44515
+ };
44516
+ header?: never;
44517
+ path: {
44518
+ workspace_id: string;
44519
+ };
44520
+ cookie?: never;
44521
+ };
44522
+ requestBody?: never;
44523
+ responses: {
44524
+ /** @description Successful Response */
44525
+ 200: {
44526
+ headers: {
44527
+ [name: string]: unknown;
44528
+ };
44529
+ content: {
44530
+ "application/json": components["schemas"]["SimulationRunSummaryResponse"];
44531
+ };
44532
+ };
44533
+ /** @description Validation Error */
44534
+ 422: {
44535
+ headers: {
44536
+ [name: string]: unknown;
44537
+ };
44538
+ content: {
44539
+ "application/json": components["schemas"]["HTTPValidationError"];
44540
+ };
44541
+ };
44542
+ };
44543
+ };
44050
44544
  "get-simulation-run": {
44051
44545
  parameters: {
44052
44546
  query?: never;