@amigo-ai/platform-sdk 0.88.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.
@@ -794,7 +794,11 @@ export interface paths {
794
794
  path?: never;
795
795
  cookie?: never;
796
796
  };
797
- get?: never;
797
+ /**
798
+ * List framework agent runs
799
+ * @description Paginated list of framework agent runs for the workspace, newest first, read from the durable ``world.agent_runs`` read model. Filter by ``framework`` / ``status``. ``continuation_token`` is an opaque page cursor.
800
+ */
801
+ get: operations["list_agent_runs_v1__workspace_id__agent_runs_get"];
798
802
  put?: never;
799
803
  /**
800
804
  * Dispatch a framework agent run
@@ -2687,6 +2691,74 @@ export interface paths {
2687
2691
  patch?: never;
2688
2692
  trace?: never;
2689
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
+ };
2690
2762
  "/v1/{workspace_id}/fhir/import": {
2691
2763
  parameters: {
2692
2764
  query?: never;
@@ -5383,6 +5455,46 @@ export interface paths {
5383
5455
  patch?: never;
5384
5456
  trace?: never;
5385
5457
  };
5458
+ "/v1/{workspace_id}/runs": {
5459
+ parameters: {
5460
+ query?: never;
5461
+ header?: never;
5462
+ path?: never;
5463
+ cookie?: never;
5464
+ };
5465
+ /**
5466
+ * List runs (framework + conversation)
5467
+ * @description Paginated, newest-first list of runs for the workspace behind the unified ``Run`` contract. Federates framework runs (Delta ``world.runs`` MV) and conversation runs (Lakebase ``world.conversations``) at read time. Filter by ``kind`` (conversation / framework), ``channel`` (voice/text/sms/email/web — conversation runs only), and ``status`` (``live`` expands to running + paused). ``continuation_token`` is an opaque page cursor.
5468
+ */
5469
+ get: operations["list_runs_v1__workspace_id__runs_get"];
5470
+ put?: never;
5471
+ post?: never;
5472
+ delete?: never;
5473
+ options?: never;
5474
+ head?: never;
5475
+ patch?: never;
5476
+ trace?: never;
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
+ };
5386
5498
  "/v1/{workspace_id}/scheduling-rule-sets": {
5387
5499
  parameters: {
5388
5500
  query?: never;
@@ -6319,6 +6431,29 @@ export interface paths {
6319
6431
  patch?: never;
6320
6432
  trace?: never;
6321
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
+ };
6322
6457
  "/v1/{workspace_id}/simulations/runs/{run_id}": {
6323
6458
  parameters: {
6324
6459
  query?: never;
@@ -7432,7 +7567,7 @@ export interface paths {
7432
7567
  put?: never;
7433
7568
  /**
7434
7569
  * Register an enrichment key
7435
- * @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.
7436
7571
  */
7437
7572
  post: operations["create-enrichment-key"];
7438
7573
  delete?: never;
@@ -7460,7 +7595,7 @@ export interface paths {
7460
7595
  head?: never;
7461
7596
  /**
7462
7597
  * Update a registered enrichment key
7463
- * @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.
7464
7599
  */
7465
7600
  patch: operations["patch-enrichment-key"];
7466
7601
  trace?: never;
@@ -8453,6 +8588,59 @@ export interface components {
8453
8588
  }[];
8454
8589
  usage?: components["schemas"]["Usage"];
8455
8590
  };
8591
+ /** AgentRunListResponse */
8592
+ AgentRunListResponse: {
8593
+ /** Continuation Token */
8594
+ continuation_token?: unknown;
8595
+ /** Has More */
8596
+ has_more: boolean;
8597
+ /** Items */
8598
+ items: components["schemas"]["AgentRunSummary"][];
8599
+ };
8600
+ /**
8601
+ * AgentRunSummary
8602
+ * @description One row of the framework-runs LIST, projected from ``world.agent_runs``.
8603
+ *
8604
+ * ``run_id`` is the framework run's external call_sid (a string identifier
8605
+ * stamped by agent-runner), NOT a Lakebase row UUID — kept ``str``. ``entity_id``
8606
+ * IS a world-model row reference, so it stays ``uuid.UUID`` per repo type rigor.
8607
+ */
8608
+ AgentRunSummary: {
8609
+ /** Created At */
8610
+ created_at: string;
8611
+ /** Duration Ms */
8612
+ duration_ms?: number | null;
8613
+ /** Entity Id */
8614
+ entity_id?: string | null;
8615
+ /**
8616
+ * Framework
8617
+ * @enum {string}
8618
+ */
8619
+ framework: "claude-agent-sdk" | "openai-agents";
8620
+ /**
8621
+ * Input Tokens
8622
+ * @default 0
8623
+ */
8624
+ input_tokens?: number;
8625
+ /** Origin Source */
8626
+ origin_source?: string | null;
8627
+ /**
8628
+ * Output Tokens
8629
+ * @default 0
8630
+ */
8631
+ output_tokens?: number;
8632
+ /** Run Id */
8633
+ run_id: string;
8634
+ /** Started At */
8635
+ started_at: string;
8636
+ /** Status */
8637
+ status?: string | null;
8638
+ /**
8639
+ * Step Count
8640
+ * @default 0
8641
+ */
8642
+ step_count?: number;
8643
+ };
8456
8644
  /** AgentTranscriptDeltaEvent */
8457
8645
  AgentTranscriptDeltaEvent: {
8458
8646
  /** Delta */
@@ -12137,7 +12325,7 @@ export interface components {
12137
12325
  event_filter?: {
12138
12326
  [key: string]: unknown;
12139
12327
  } | null;
12140
- event_type: components["schemas"]["EventTypeString"];
12328
+ event_type: components["schemas"]["TriggerableEvent"];
12141
12329
  /** Input Template */
12142
12330
  input_template?: {
12143
12331
  [key: string]: unknown;
@@ -13239,6 +13427,16 @@ export interface components {
13239
13427
  */
13240
13428
  op: "drop_index";
13241
13429
  };
13430
+ /** EagerEvalResponse */
13431
+ EagerEvalResponse: {
13432
+ /** Eval Count */
13433
+ eval_count: number;
13434
+ /**
13435
+ * Status
13436
+ * @enum {string}
13437
+ */
13438
+ status: "evaluated" | "skipped_over_cap";
13439
+ };
13242
13440
  /** EgressIpsResponse */
13243
13441
  EgressIpsResponse: {
13244
13442
  /** Egress Ips */
@@ -13660,6 +13858,11 @@ export interface components {
13660
13858
  */
13661
13859
  min_confidence?: number;
13662
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"[];
13663
13866
  /**
13664
13867
  * Value Type
13665
13868
  * @enum {string}
@@ -13681,6 +13884,11 @@ export interface components {
13681
13884
  /** Min Confidence */
13682
13885
  min_confidence?: number | null;
13683
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;
13684
13892
  };
13685
13893
  /** EnrichmentKeyResponse */
13686
13894
  EnrichmentKeyResponse: {
@@ -13708,6 +13916,11 @@ export interface components {
13708
13916
  min_confidence: number;
13709
13917
  /** Source Hint */
13710
13918
  source_hint?: string | null;
13919
+ /**
13920
+ * Tags
13921
+ * @default []
13922
+ */
13923
+ tags?: string[];
13711
13924
  /**
13712
13925
  * Updated At
13713
13926
  * Format: date-time
@@ -14618,7 +14831,6 @@ export interface components {
14618
14831
  /** Total Events */
14619
14832
  total_events: number;
14620
14833
  };
14621
- EventTypeString: string;
14622
14834
  /** EventTypeSummary */
14623
14835
  EventTypeSummary: {
14624
14836
  /** Count */
@@ -14846,6 +15058,83 @@ export interface components {
14846
15058
  };
14847
15059
  ExternalSystemString: string;
14848
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
+ };
14849
15138
  /**
14850
15139
  * FailureClass
14851
15140
  * @description Why a tool result is a failure — produced by the executor at RUN time.
@@ -18116,7 +18405,10 @@ export interface components {
18116
18405
  };
18117
18406
  /**
18118
18407
  * OAuth2JwtBearerAuthDict
18119
- * @description OAuth 2.0 JWT Bearer Token Grant — RFC 7523 § 2.1.
18408
+ * @description OAuth 2.0 JWT Bearer Token — RFC 7523.
18409
+ *
18410
+ * ``assertion_usage`` selects the flow: § 2.1 (JWT as authorization grant) or
18411
+ * § 2.2 (JWT as client authentication / private_key_jwt).
18120
18412
  */
18121
18413
  OAuth2JwtBearerAuthDict: {
18122
18414
  /**
@@ -18132,6 +18424,11 @@ export interface components {
18132
18424
  assertion_lifetime_seconds: number;
18133
18425
  /** Assertion Subject */
18134
18426
  assertion_subject: string;
18427
+ /**
18428
+ * Assertion Usage
18429
+ * @enum {string}
18430
+ */
18431
+ assertion_usage: "authorization_grant" | "client_authentication";
18135
18432
  /** Extra Claims */
18136
18433
  extra_claims: {
18137
18434
  [key: string]: unknown;
@@ -18152,7 +18449,10 @@ export interface components {
18152
18449
  };
18153
18450
  /**
18154
18451
  * OAuth2JwtBearerAuthRequest
18155
- * @description OAuth 2.0 JWT Bearer Token Grant — RFC 7523 § 2.1.
18452
+ * @description OAuth 2.0 JWT Bearer Token — RFC 7523.
18453
+ *
18454
+ * ``assertion_usage`` (required) selects the flow: § 2.1 (JWT as authorization
18455
+ * grant) or § 2.2 (JWT as client authentication / private_key_jwt).
18156
18456
  */
18157
18457
  OAuth2JwtBearerAuthRequest: {
18158
18458
  /**
@@ -18183,6 +18483,17 @@ export interface components {
18183
18483
  * Use a different value only for delegation / impersonation grants.
18184
18484
  */
18185
18485
  assertion_subject: string;
18486
+ /**
18487
+ * Assertion Usage
18488
+ * @description RFC 7523 flow selector — required; the caller must pick a flow.
18489
+ * ``authorization_grant`` (§ 2.1) sends the JWT as ``assertion`` under
18490
+ * ``grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer``.
18491
+ * ``client_authentication`` (§ 2.2, the ``private_key_jwt`` method) sends it as
18492
+ * ``client_assertion`` + ``client_assertion_type`` under ``grant_type=client_credentials``
18493
+ * — required by Epic / SMART Backend Services.
18494
+ * @enum {string}
18495
+ */
18496
+ assertion_usage: "authorization_grant" | "client_authentication";
18186
18497
  /**
18187
18498
  * Extra Claims
18188
18499
  * @description RFC 7523 § 3 item 8 — arbitrary additional JWT claims (e.g. Google's
@@ -18953,6 +19264,17 @@ export interface components {
18953
19264
  /** Total */
18954
19265
  total?: number | null;
18955
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
+ };
18956
19278
  /** PaginatedResponse[IntakeFileRow] */
18957
19279
  PaginatedResponse_IntakeFileRow_: {
18958
19280
  /** Continuation Token */
@@ -20679,6 +21001,11 @@ export interface components {
20679
21001
  */
20680
21002
  when_to_use?: string;
20681
21003
  };
21004
+ /** RejectProposalRequest */
21005
+ RejectProposalRequest: {
21006
+ /** Reason */
21007
+ reason: string;
21008
+ };
20682
21009
  /**
20683
21010
  * RejectRequest
20684
21011
  * @description Reject events — demotes confidence to 0.0.
@@ -20836,6 +21163,12 @@ export interface components {
20836
21163
  * @constant
20837
21164
  */
20838
21165
  kind?: "rest";
21166
+ /**
21167
+ * Managed
21168
+ * @description Whether the integration is system-managed and protected from workspace CRUD.
21169
+ * @default false
21170
+ */
21171
+ managed?: boolean;
20839
21172
  /**
20840
21173
  * Name
20841
21174
  * @description Slug-like identifier, immutable post-create.
@@ -21162,6 +21495,73 @@ export interface components {
21162
21495
  /** Duration Days */
21163
21496
  duration_days: number;
21164
21497
  };
21498
+ /**
21499
+ * Run
21500
+ * @description The universal agent-run object.
21501
+ *
21502
+ * ``run_id`` is a dedicated UUID (not an overloaded ``call_sid`` / ``conversation_id``);
21503
+ * the originating subsystem's ids are kept as ``source_*`` provenance fields so a
21504
+ * run can always be traced back to its channel/framework origin. Conversation runs
21505
+ * carry a ``channel`` and no ``framework``; framework runs carry a ``framework`` and
21506
+ * no ``channel`` — enforced below.
21507
+ */
21508
+ Run: {
21509
+ /** Caller Id */
21510
+ caller_id?: string | null;
21511
+ /** Channel */
21512
+ channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
21513
+ /** Completion Reason */
21514
+ completion_reason?: string | null;
21515
+ /** Direction */
21516
+ direction?: string | null;
21517
+ /** Ended At */
21518
+ ended_at?: string | null;
21519
+ /** Entity Id */
21520
+ entity_id?: string | null;
21521
+ /** Entity Name */
21522
+ entity_name?: string | null;
21523
+ /** Framework */
21524
+ framework?: ("claude-agent-sdk" | "openai-agents") | null;
21525
+ /**
21526
+ * Kind
21527
+ * @enum {string}
21528
+ */
21529
+ kind: "conversation" | "framework";
21530
+ /** Phone Number */
21531
+ phone_number?: string | null;
21532
+ /**
21533
+ * Run Id
21534
+ * Format: uuid
21535
+ */
21536
+ run_id: string;
21537
+ /** Service Id */
21538
+ service_id?: string | null;
21539
+ /** Service Name */
21540
+ service_name?: string | null;
21541
+ /** Source Call Sid */
21542
+ source_call_sid?: string | null;
21543
+ /** Source Conversation Id */
21544
+ source_conversation_id?: string | null;
21545
+ /** Source Framework Run Id */
21546
+ source_framework_run_id?: string | null;
21547
+ /**
21548
+ * Started At
21549
+ * Format: date-time
21550
+ */
21551
+ started_at: string;
21552
+ /**
21553
+ * Status
21554
+ * @enum {string}
21555
+ */
21556
+ status: "running" | "paused" | "completed" | "failed" | "timed_out";
21557
+ /** Turn Count */
21558
+ turn_count?: number | null;
21559
+ /**
21560
+ * Workspace Id
21561
+ * Format: uuid
21562
+ */
21563
+ workspace_id: string;
21564
+ };
21165
21565
  /** RunSimulationBenchmarkRequest */
21166
21566
  RunSimulationBenchmarkRequest: {
21167
21567
  /** Branch Name */
@@ -21221,6 +21621,48 @@ export interface components {
21221
21621
  /** Tags */
21222
21622
  tags?: string[];
21223
21623
  };
21624
+ /** RunsResponse */
21625
+ RunsResponse: {
21626
+ /** Continuation Token */
21627
+ continuation_token?: unknown;
21628
+ /** Has More */
21629
+ has_more: boolean;
21630
+ /** Items */
21631
+ items: components["schemas"]["Run"][];
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
+ };
21224
21666
  /** Runtime */
21225
21667
  Runtime: {
21226
21668
  /**
@@ -22716,6 +23158,36 @@ export interface components {
22716
23158
  */
22717
23159
  total_turns?: number;
22718
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
+ };
22719
23191
  /** SimulationSessionResponse */
22720
23192
  SimulationSessionResponse: {
22721
23193
  /** Greeting */
@@ -25832,6 +26304,16 @@ export interface components {
25832
26304
  */
25833
26305
  triggered_at: string;
25834
26306
  };
26307
+ /**
26308
+ * TriggerableEvent
26309
+ * @description Closed set of world events that trigger definitions may subscribe to.
26310
+ *
26311
+ * The database column intentionally remains text for compatibility with old
26312
+ * rows, but API writes must choose from this list so typoed event names do
26313
+ * not silently create never-matching triggers.
26314
+ * @enum {string}
26315
+ */
26316
+ TriggerableEvent: "amigo.trigger.cron" | "appointment.booked" | "appointment.cancelled" | "appointment.confirmed" | "booking.requested" | "call.intelligence" | "call.outcome" | "channel.email.bounced" | "channel.email.clicked" | "channel.email.complained" | "channel.email.delayed" | "channel.email.delivered" | "channel.email.opened" | "channel.email.received" | "channel.email.rejected" | "channel.message.received" | "channel.voice.voicemail_status" | "conversation.channel_switched" | "conversation.started" | "conversation.turn_recorded" | "coverage.created" | "entity.enriched" | "entity.resolved" | "intake.file.received" | "medication.refill_requested" | "outbound.initiated" | "outbound.scheduled" | "patient.created" | "patient.updated" | "relationship.established" | "review.approve" | "review.correct" | "review.reject" | "surface.created" | "surface.submitted" | "ticket.created" | "triage.completed" | "trigger.completed" | "trigger.failed" | "trigger.fired";
25835
26317
  /** Turn */
25836
26318
  Turn: {
25837
26319
  /** Agent Action */
@@ -26092,10 +26574,20 @@ export interface components {
26092
26574
  * @default
26093
26575
  */
26094
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;
26095
26582
  /** Viewport Height */
26096
26583
  viewport_height?: number | null;
26097
26584
  /** Viewport Width */
26098
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;
26099
26591
  };
26100
26592
  /** TurnResponse */
26101
26593
  TurnResponse: {
@@ -26508,7 +27000,7 @@ export interface components {
26508
27000
  event_filter?: {
26509
27001
  [key: string]: unknown;
26510
27002
  } | null;
26511
- event_type?: components["schemas"]["EventTypeString"] | null;
27003
+ event_type?: components["schemas"]["TriggerableEvent"] | null;
26512
27004
  /** Input Template */
26513
27005
  input_template?: {
26514
27006
  [key: string]: unknown;
@@ -27916,6 +28408,12 @@ export interface components {
27916
28408
  * @default true
27917
28409
  */
27918
28410
  enabled?: boolean;
28411
+ /**
28412
+ * Managed
28413
+ * @description Whether this is a system-managed integration protected from workspace CRUD.
28414
+ * @default false
28415
+ */
28416
+ managed?: boolean;
27919
28417
  /**
27920
28418
  * Name
27921
28419
  * @description Slug-like identifier, lowercase alphanumeric + hyphens/underscores. Immutable post-create.
@@ -28125,6 +28623,11 @@ export interface components {
28125
28623
  * @description Toggle the integration on/off.
28126
28624
  */
28127
28625
  enabled?: boolean;
28626
+ /**
28627
+ * Managed
28628
+ * @description Mark/unmark the integration as system-managed. Requires ``platform:admin`` scope.
28629
+ */
28630
+ managed?: boolean;
28128
28631
  /**
28129
28632
  * Secret Value
28130
28633
  * @description Rotate the per-integration SSM secret. Absent ⇒ existing secret
@@ -28218,6 +28721,8 @@ export interface components {
28218
28721
  };
28219
28722
  /** @constant */
28220
28723
  src__routes__role_grants___SortField: "created_at";
28724
+ /** @constant */
28725
+ src__routes__runs___SortField: "started_at";
28221
28726
  /**
28222
28727
  * Request
28223
28728
  * @description Create body — the authored shape of a new workspace data query.
@@ -30447,6 +30952,42 @@ export interface operations {
30447
30952
  };
30448
30953
  };
30449
30954
  };
30955
+ list_agent_runs_v1__workspace_id__agent_runs_get: {
30956
+ parameters: {
30957
+ query?: {
30958
+ limit?: number;
30959
+ continuation_token?: unknown;
30960
+ framework?: ("claude-agent-sdk" | "openai-agents") | null;
30961
+ status?: ("running" | "succeeded" | "failed" | "timed_out") | null;
30962
+ };
30963
+ header?: never;
30964
+ path: {
30965
+ workspace_id: string;
30966
+ };
30967
+ cookie?: never;
30968
+ };
30969
+ requestBody?: never;
30970
+ responses: {
30971
+ /** @description Successful Response */
30972
+ 200: {
30973
+ headers: {
30974
+ [name: string]: unknown;
30975
+ };
30976
+ content: {
30977
+ "application/json": components["schemas"]["AgentRunListResponse"];
30978
+ };
30979
+ };
30980
+ /** @description Validation Error */
30981
+ 422: {
30982
+ headers: {
30983
+ [name: string]: unknown;
30984
+ };
30985
+ content: {
30986
+ "application/json": components["schemas"]["HTTPValidationError"];
30987
+ };
30988
+ };
30989
+ };
30990
+ };
30450
30991
  create_agent_run_v1__workspace_id__agent_runs_post: {
30451
30992
  parameters: {
30452
30993
  query?: never;
@@ -35071,21 +35612,153 @@ export interface operations {
35071
35612
  };
35072
35613
  };
35073
35614
  };
35074
- "update-external-integration": {
35615
+ "update-external-integration": {
35616
+ parameters: {
35617
+ query?: never;
35618
+ header?: never;
35619
+ path: {
35620
+ workspace_id: string;
35621
+ integration_id: string;
35622
+ };
35623
+ cookie?: never;
35624
+ };
35625
+ requestBody: {
35626
+ content: {
35627
+ "application/json": components["schemas"]["ExternalIntegrationUpdateRequest"];
35628
+ };
35629
+ };
35630
+ responses: {
35631
+ /** @description Successful Response */
35632
+ 200: {
35633
+ headers: {
35634
+ [name: string]: unknown;
35635
+ };
35636
+ content: {
35637
+ "application/json": components["schemas"]["ExternalIntegrationResponse"];
35638
+ };
35639
+ };
35640
+ /** @description Validation Error */
35641
+ 422: {
35642
+ headers: {
35643
+ [name: string]: unknown;
35644
+ };
35645
+ content: {
35646
+ "application/json": components["schemas"]["HTTPValidationError"];
35647
+ };
35648
+ };
35649
+ };
35650
+ };
35651
+ "list-external-integration-credentials": {
35652
+ parameters: {
35653
+ query?: never;
35654
+ header?: never;
35655
+ path: {
35656
+ workspace_id: string;
35657
+ integration_id: string;
35658
+ };
35659
+ cookie?: never;
35660
+ };
35661
+ requestBody?: never;
35662
+ responses: {
35663
+ /** @description Successful Response */
35664
+ 200: {
35665
+ headers: {
35666
+ [name: string]: unknown;
35667
+ };
35668
+ content: {
35669
+ "application/json": components["schemas"]["ExternalIntegrationCredentialResponse"][];
35670
+ };
35671
+ };
35672
+ /** @description Validation Error */
35673
+ 422: {
35674
+ headers: {
35675
+ [name: string]: unknown;
35676
+ };
35677
+ content: {
35678
+ "application/json": components["schemas"]["HTTPValidationError"];
35679
+ };
35680
+ };
35681
+ };
35682
+ };
35683
+ "create-external-integration-credential": {
35684
+ parameters: {
35685
+ query?: never;
35686
+ header?: never;
35687
+ path: {
35688
+ workspace_id: string;
35689
+ integration_id: string;
35690
+ };
35691
+ cookie?: never;
35692
+ };
35693
+ requestBody: {
35694
+ content: {
35695
+ "application/json": components["schemas"]["ExternalIntegrationCredentialRequest"];
35696
+ };
35697
+ };
35698
+ responses: {
35699
+ /** @description Successful Response */
35700
+ 201: {
35701
+ headers: {
35702
+ [name: string]: unknown;
35703
+ };
35704
+ content: {
35705
+ "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
35706
+ };
35707
+ };
35708
+ /** @description Validation Error */
35709
+ 422: {
35710
+ headers: {
35711
+ [name: string]: unknown;
35712
+ };
35713
+ content: {
35714
+ "application/json": components["schemas"]["HTTPValidationError"];
35715
+ };
35716
+ };
35717
+ };
35718
+ };
35719
+ "revoke-external-integration-credential": {
35720
+ parameters: {
35721
+ query?: never;
35722
+ header?: never;
35723
+ path: {
35724
+ workspace_id: string;
35725
+ integration_id: string;
35726
+ credential_id: string;
35727
+ };
35728
+ cookie?: never;
35729
+ };
35730
+ requestBody?: never;
35731
+ responses: {
35732
+ /** @description Successful Response */
35733
+ 204: {
35734
+ headers: {
35735
+ [name: string]: unknown;
35736
+ };
35737
+ content?: never;
35738
+ };
35739
+ /** @description Validation Error */
35740
+ 422: {
35741
+ headers: {
35742
+ [name: string]: unknown;
35743
+ };
35744
+ content: {
35745
+ "application/json": components["schemas"]["HTTPValidationError"];
35746
+ };
35747
+ };
35748
+ };
35749
+ };
35750
+ "rotate-external-integration-credential": {
35075
35751
  parameters: {
35076
35752
  query?: never;
35077
35753
  header?: never;
35078
35754
  path: {
35079
35755
  workspace_id: string;
35080
35756
  integration_id: string;
35757
+ credential_id: string;
35081
35758
  };
35082
35759
  cookie?: never;
35083
35760
  };
35084
- requestBody: {
35085
- content: {
35086
- "application/json": components["schemas"]["ExternalIntegrationUpdateRequest"];
35087
- };
35088
- };
35761
+ requestBody?: never;
35089
35762
  responses: {
35090
35763
  /** @description Successful Response */
35091
35764
  200: {
@@ -35093,7 +35766,7 @@ export interface operations {
35093
35766
  [name: string]: unknown;
35094
35767
  };
35095
35768
  content: {
35096
- "application/json": components["schemas"]["ExternalIntegrationResponse"];
35769
+ "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
35097
35770
  };
35098
35771
  };
35099
35772
  /** @description Validation Error */
@@ -35107,13 +35780,16 @@ export interface operations {
35107
35780
  };
35108
35781
  };
35109
35782
  };
35110
- "list-external-integration-credentials": {
35783
+ "list-external-role-assignments": {
35111
35784
  parameters: {
35112
- query?: never;
35785
+ query?: {
35786
+ sort_by?: string[];
35787
+ limit?: number;
35788
+ continuation_token?: unknown;
35789
+ };
35113
35790
  header?: never;
35114
35791
  path: {
35115
35792
  workspace_id: string;
35116
- integration_id: string;
35117
35793
  };
35118
35794
  cookie?: never;
35119
35795
  };
@@ -35125,7 +35801,7 @@ export interface operations {
35125
35801
  [name: string]: unknown;
35126
35802
  };
35127
35803
  content: {
35128
- "application/json": components["schemas"]["ExternalIntegrationCredentialResponse"][];
35804
+ "application/json": components["schemas"]["src__routes__external_role_assignments__ListResponse"];
35129
35805
  };
35130
35806
  };
35131
35807
  /** @description Validation Error */
@@ -35139,29 +35815,28 @@ export interface operations {
35139
35815
  };
35140
35816
  };
35141
35817
  };
35142
- "create-external-integration-credential": {
35818
+ "upsert-external-role-assignment": {
35143
35819
  parameters: {
35144
35820
  query?: never;
35145
35821
  header?: never;
35146
35822
  path: {
35147
35823
  workspace_id: string;
35148
- integration_id: string;
35149
35824
  };
35150
35825
  cookie?: never;
35151
35826
  };
35152
35827
  requestBody: {
35153
35828
  content: {
35154
- "application/json": components["schemas"]["ExternalIntegrationCredentialRequest"];
35829
+ "application/json": components["schemas"]["UpsertRequest"];
35155
35830
  };
35156
35831
  };
35157
35832
  responses: {
35158
35833
  /** @description Successful Response */
35159
- 201: {
35834
+ 200: {
35160
35835
  headers: {
35161
35836
  [name: string]: unknown;
35162
35837
  };
35163
35838
  content: {
35164
- "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
35839
+ "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
35165
35840
  };
35166
35841
  };
35167
35842
  /** @description Validation Error */
@@ -35175,21 +35850,29 @@ export interface operations {
35175
35850
  };
35176
35851
  };
35177
35852
  };
35178
- "revoke-external-integration-credential": {
35853
+ "get-external-role-assignment": {
35179
35854
  parameters: {
35180
35855
  query?: never;
35181
35856
  header?: never;
35182
35857
  path: {
35183
35858
  workspace_id: string;
35184
- integration_id: string;
35185
- credential_id: string;
35859
+ assignment_id: string;
35186
35860
  };
35187
35861
  cookie?: never;
35188
35862
  };
35189
35863
  requestBody?: never;
35190
35864
  responses: {
35191
35865
  /** @description Successful Response */
35192
- 204: {
35866
+ 200: {
35867
+ headers: {
35868
+ [name: string]: unknown;
35869
+ };
35870
+ content: {
35871
+ "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
35872
+ };
35873
+ };
35874
+ /** @description Assignment not found */
35875
+ 404: {
35193
35876
  headers: {
35194
35877
  [name: string]: unknown;
35195
35878
  };
@@ -35206,27 +35889,31 @@ export interface operations {
35206
35889
  };
35207
35890
  };
35208
35891
  };
35209
- "rotate-external-integration-credential": {
35892
+ "delete-external-role-assignment": {
35210
35893
  parameters: {
35211
35894
  query?: never;
35212
35895
  header?: never;
35213
35896
  path: {
35214
35897
  workspace_id: string;
35215
- integration_id: string;
35216
- credential_id: string;
35898
+ assignment_id: string;
35217
35899
  };
35218
35900
  cookie?: never;
35219
35901
  };
35220
35902
  requestBody?: never;
35221
35903
  responses: {
35222
35904
  /** @description Successful Response */
35223
- 200: {
35905
+ 204: {
35224
35906
  headers: {
35225
35907
  [name: string]: unknown;
35226
35908
  };
35227
- content: {
35228
- "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
35909
+ content?: never;
35910
+ };
35911
+ /** @description Assignment not found */
35912
+ 404: {
35913
+ headers: {
35914
+ [name: string]: unknown;
35229
35915
  };
35916
+ content?: never;
35230
35917
  };
35231
35918
  /** @description Validation Error */
35232
35919
  422: {
@@ -35239,7 +35926,7 @@ export interface operations {
35239
35926
  };
35240
35927
  };
35241
35928
  };
35242
- "list-external-role-assignments": {
35929
+ "list-external-roles": {
35243
35930
  parameters: {
35244
35931
  query?: {
35245
35932
  sort_by?: string[];
@@ -35260,7 +35947,7 @@ export interface operations {
35260
35947
  [name: string]: unknown;
35261
35948
  };
35262
35949
  content: {
35263
- "application/json": components["schemas"]["src__routes__external_role_assignments__ListResponse"];
35950
+ "application/json": components["schemas"]["src__routes__external_roles__ListResponse"];
35264
35951
  };
35265
35952
  };
35266
35953
  /** @description Validation Error */
@@ -35274,7 +35961,7 @@ export interface operations {
35274
35961
  };
35275
35962
  };
35276
35963
  };
35277
- "upsert-external-role-assignment": {
35964
+ "create-external-role": {
35278
35965
  parameters: {
35279
35966
  query?: never;
35280
35967
  header?: never;
@@ -35285,18 +35972,25 @@ export interface operations {
35285
35972
  };
35286
35973
  requestBody: {
35287
35974
  content: {
35288
- "application/json": components["schemas"]["UpsertRequest"];
35975
+ "application/json": components["schemas"]["src__routes__external_roles__CreateRequest"];
35289
35976
  };
35290
35977
  };
35291
35978
  responses: {
35292
35979
  /** @description Successful Response */
35293
- 200: {
35980
+ 201: {
35294
35981
  headers: {
35295
35982
  [name: string]: unknown;
35296
35983
  };
35297
35984
  content: {
35298
- "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
35985
+ "application/json": components["schemas"]["ExternalRoleItem"];
35986
+ };
35987
+ };
35988
+ /** @description An external role with the given name already exists */
35989
+ 409: {
35990
+ headers: {
35991
+ [name: string]: unknown;
35299
35992
  };
35993
+ content?: never;
35300
35994
  };
35301
35995
  /** @description Validation Error */
35302
35996
  422: {
@@ -35309,13 +36003,13 @@ export interface operations {
35309
36003
  };
35310
36004
  };
35311
36005
  };
35312
- "get-external-role-assignment": {
36006
+ "get-external-role": {
35313
36007
  parameters: {
35314
36008
  query?: never;
35315
36009
  header?: never;
35316
36010
  path: {
35317
36011
  workspace_id: string;
35318
- assignment_id: string;
36012
+ role_id: string;
35319
36013
  };
35320
36014
  cookie?: never;
35321
36015
  };
@@ -35327,10 +36021,10 @@ export interface operations {
35327
36021
  [name: string]: unknown;
35328
36022
  };
35329
36023
  content: {
35330
- "application/json": components["schemas"]["ExternalRoleAssignmentItem"];
36024
+ "application/json": components["schemas"]["ExternalRoleItem"];
35331
36025
  };
35332
36026
  };
35333
- /** @description Assignment not found */
36027
+ /** @description External role not found */
35334
36028
  404: {
35335
36029
  headers: {
35336
36030
  [name: string]: unknown;
@@ -35348,13 +36042,13 @@ export interface operations {
35348
36042
  };
35349
36043
  };
35350
36044
  };
35351
- "delete-external-role-assignment": {
36045
+ "delete-external-role": {
35352
36046
  parameters: {
35353
36047
  query?: never;
35354
36048
  header?: never;
35355
36049
  path: {
35356
36050
  workspace_id: string;
35357
- assignment_id: string;
36051
+ role_id: string;
35358
36052
  };
35359
36053
  cookie?: never;
35360
36054
  };
@@ -35367,7 +36061,7 @@ export interface operations {
35367
36061
  };
35368
36062
  content?: never;
35369
36063
  };
35370
- /** @description Assignment not found */
36064
+ /** @description External role not found */
35371
36065
  404: {
35372
36066
  headers: {
35373
36067
  [name: string]: unknown;
@@ -35385,12 +36079,12 @@ export interface operations {
35385
36079
  };
35386
36080
  };
35387
36081
  };
35388
- "list-external-roles": {
36082
+ "list-external-write-proposals": {
35389
36083
  parameters: {
35390
36084
  query?: {
35391
- sort_by?: string[];
36085
+ status?: ("proposed" | "approved" | "rejected" | "pushing" | "pushed" | "failed" | "superseded") | null;
35392
36086
  limit?: number;
35393
- continuation_token?: unknown;
36087
+ continuation_token?: number;
35394
36088
  };
35395
36089
  header?: never;
35396
36090
  path: {
@@ -35406,7 +36100,7 @@ export interface operations {
35406
36100
  [name: string]: unknown;
35407
36101
  };
35408
36102
  content: {
35409
- "application/json": components["schemas"]["src__routes__external_roles__ListResponse"];
36103
+ "application/json": components["schemas"]["PaginatedResponse_ExternalWriteProposal_"];
35410
36104
  };
35411
36105
  };
35412
36106
  /** @description Validation Error */
@@ -35420,36 +36114,26 @@ export interface operations {
35420
36114
  };
35421
36115
  };
35422
36116
  };
35423
- "create-external-role": {
36117
+ "get-external-write-proposal": {
35424
36118
  parameters: {
35425
36119
  query?: never;
35426
36120
  header?: never;
35427
36121
  path: {
35428
36122
  workspace_id: string;
36123
+ proposal_id: string;
35429
36124
  };
35430
36125
  cookie?: never;
35431
36126
  };
35432
- requestBody: {
35433
- content: {
35434
- "application/json": components["schemas"]["src__routes__external_roles__CreateRequest"];
35435
- };
35436
- };
36127
+ requestBody?: never;
35437
36128
  responses: {
35438
36129
  /** @description Successful Response */
35439
- 201: {
36130
+ 200: {
35440
36131
  headers: {
35441
36132
  [name: string]: unknown;
35442
36133
  };
35443
36134
  content: {
35444
- "application/json": components["schemas"]["ExternalRoleItem"];
35445
- };
35446
- };
35447
- /** @description An external role with the given name already exists */
35448
- 409: {
35449
- headers: {
35450
- [name: string]: unknown;
36135
+ "application/json": components["schemas"]["ExternalWriteProposal"];
35451
36136
  };
35452
- content?: never;
35453
36137
  };
35454
36138
  /** @description Validation Error */
35455
36139
  422: {
@@ -35462,13 +36146,13 @@ export interface operations {
35462
36146
  };
35463
36147
  };
35464
36148
  };
35465
- "get-external-role": {
36149
+ "approve-external-write-proposal": {
35466
36150
  parameters: {
35467
36151
  query?: never;
35468
36152
  header?: never;
35469
36153
  path: {
35470
36154
  workspace_id: string;
35471
- role_id: string;
36155
+ proposal_id: string;
35472
36156
  };
35473
36157
  cookie?: never;
35474
36158
  };
@@ -35480,16 +36164,9 @@ export interface operations {
35480
36164
  [name: string]: unknown;
35481
36165
  };
35482
36166
  content: {
35483
- "application/json": components["schemas"]["ExternalRoleItem"];
36167
+ "application/json": components["schemas"]["ExternalWriteProposal"];
35484
36168
  };
35485
36169
  };
35486
- /** @description External role not found */
35487
- 404: {
35488
- headers: {
35489
- [name: string]: unknown;
35490
- };
35491
- content?: never;
35492
- };
35493
36170
  /** @description Validation Error */
35494
36171
  422: {
35495
36172
  headers: {
@@ -35501,31 +36178,30 @@ export interface operations {
35501
36178
  };
35502
36179
  };
35503
36180
  };
35504
- "delete-external-role": {
36181
+ "reject-external-write-proposal": {
35505
36182
  parameters: {
35506
36183
  query?: never;
35507
36184
  header?: never;
35508
36185
  path: {
35509
36186
  workspace_id: string;
35510
- role_id: string;
36187
+ proposal_id: string;
35511
36188
  };
35512
36189
  cookie?: never;
35513
36190
  };
35514
- requestBody?: never;
36191
+ requestBody: {
36192
+ content: {
36193
+ "application/json": components["schemas"]["RejectProposalRequest"];
36194
+ };
36195
+ };
35515
36196
  responses: {
35516
36197
  /** @description Successful Response */
35517
- 204: {
36198
+ 200: {
35518
36199
  headers: {
35519
36200
  [name: string]: unknown;
35520
36201
  };
35521
- content?: never;
35522
- };
35523
- /** @description External role not found */
35524
- 404: {
35525
- headers: {
35526
- [name: string]: unknown;
36202
+ content: {
36203
+ "application/json": components["schemas"]["ExternalWriteProposal"];
35527
36204
  };
35528
- content?: never;
35529
36205
  };
35530
36206
  /** @description Validation Error */
35531
36207
  422: {
@@ -37790,7 +38466,7 @@ export interface operations {
37790
38466
  };
37791
38467
  content?: never;
37792
38468
  };
37793
- /** @description Integration referenced by one or more skills. */
38469
+ /** @description Integration is managed or referenced by one or more skills. */
37794
38470
  409: {
37795
38471
  headers: {
37796
38472
  [name: string]: unknown;
@@ -37854,6 +38530,13 @@ export interface operations {
37854
38530
  };
37855
38531
  content?: never;
37856
38532
  };
38533
+ /** @description Managed integration mutation blocked. */
38534
+ 409: {
38535
+ headers: {
38536
+ [name: string]: unknown;
38537
+ };
38538
+ content?: never;
38539
+ };
37857
38540
  /** @description Invalid request body, NOT NULL field set to null, or no fields to update. */
37858
38541
  422: {
37859
38542
  headers: {
@@ -37966,7 +38649,7 @@ export interface operations {
37966
38649
  };
37967
38650
  content?: never;
37968
38651
  };
37969
- /** @description Endpoint name already exists on this integration. */
38652
+ /** @description Integration is managed or endpoint name already exists. */
37970
38653
  409: {
37971
38654
  headers: {
37972
38655
  [name: string]: unknown;
@@ -38077,6 +38760,13 @@ export interface operations {
38077
38760
  };
38078
38761
  content?: never;
38079
38762
  };
38763
+ /** @description Managed integration endpoint mutation blocked. */
38764
+ 409: {
38765
+ headers: {
38766
+ [name: string]: unknown;
38767
+ };
38768
+ content?: never;
38769
+ };
38080
38770
  /** @description Validation Error */
38081
38771
  422: {
38082
38772
  headers: {
@@ -38135,6 +38825,13 @@ export interface operations {
38135
38825
  };
38136
38826
  content?: never;
38137
38827
  };
38828
+ /** @description Managed integration endpoint mutation blocked. */
38829
+ 409: {
38830
+ headers: {
38831
+ [name: string]: unknown;
38832
+ };
38833
+ content?: never;
38834
+ };
38138
38835
  /** @description Invalid request body, NOT NULL field set to null, or no fields to update. */
38139
38836
  422: {
38140
38837
  headers: {
@@ -41417,6 +42114,78 @@ export interface operations {
41417
42114
  };
41418
42115
  };
41419
42116
  };
42117
+ list_runs_v1__workspace_id__runs_get: {
42118
+ parameters: {
42119
+ query?: {
42120
+ sort_by?: string[];
42121
+ limit?: number;
42122
+ continuation_token?: unknown;
42123
+ status?: ("live" | "running" | "paused" | "completed" | "failed" | "timed_out") | null;
42124
+ kind?: ("conversation" | "framework") | null;
42125
+ channel?: ("voice" | "text" | "sms" | "email" | "web") | null;
42126
+ };
42127
+ header?: never;
42128
+ path: {
42129
+ workspace_id: string;
42130
+ };
42131
+ cookie?: never;
42132
+ };
42133
+ requestBody?: never;
42134
+ responses: {
42135
+ /** @description Successful Response */
42136
+ 200: {
42137
+ headers: {
42138
+ [name: string]: unknown;
42139
+ };
42140
+ content: {
42141
+ "application/json": components["schemas"]["RunsResponse"];
42142
+ };
42143
+ };
42144
+ /** @description Validation Error */
42145
+ 422: {
42146
+ headers: {
42147
+ [name: string]: unknown;
42148
+ };
42149
+ content: {
42150
+ "application/json": components["schemas"]["HTTPValidationError"];
42151
+ };
42152
+ };
42153
+ };
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
+ };
41420
42189
  "list-scheduling-rule-sets": {
41421
42190
  parameters: {
41422
42191
  query?: {
@@ -43739,6 +44508,39 @@ export interface operations {
43739
44508
  };
43740
44509
  };
43741
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
+ };
43742
44544
  "get-simulation-run": {
43743
44545
  parameters: {
43744
44546
  query?: never;