@amigo-ai/platform-sdk 0.31.0 → 0.32.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.
@@ -5418,6 +5418,62 @@ export interface paths {
5418
5418
  patch?: never;
5419
5419
  trace?: never;
5420
5420
  };
5421
+ "/v1/{workspace_id}/scheduling-rule-sets": {
5422
+ parameters: {
5423
+ query?: never;
5424
+ header?: never;
5425
+ path?: never;
5426
+ cookie?: never;
5427
+ };
5428
+ /**
5429
+ * List scheduling rule sets
5430
+ * @description List all scheduling rule sets for the workspace. Optional filters: `agent_kind` (tms / ketamine / general), `is_active`. Used by the agent-engine rules engine and by operators inspecting config.
5431
+ */
5432
+ get: operations["list-scheduling-rule-sets"];
5433
+ put?: never;
5434
+ /**
5435
+ * Create a scheduling rule set
5436
+ * @description Create one rule set for `(agent_kind, rule_kind)`. Returns 409 if a row already exists for that key — use PATCH on the existing row or DELETE first.
5437
+ */
5438
+ post: operations["create-scheduling-rule-set"];
5439
+ delete?: never;
5440
+ options?: never;
5441
+ head?: never;
5442
+ patch?: never;
5443
+ trace?: never;
5444
+ };
5445
+ "/v1/{workspace_id}/scheduling-rule-sets/{rule_set_id}": {
5446
+ parameters: {
5447
+ query?: never;
5448
+ header?: never;
5449
+ path?: never;
5450
+ cookie?: never;
5451
+ };
5452
+ /**
5453
+ * Get one scheduling rule set
5454
+ * @description Fetch one rule set by id. Returns 404 when the row doesn't exist
5455
+ * in this workspace (the RLS policy means cross-workspace lookups
5456
+ * surface as 404, never as a row from the wrong workspace).
5457
+ *
5458
+ * Permissions: ``Workspace.view``.
5459
+ */
5460
+ get: operations["get-scheduling-rule-set"];
5461
+ put?: never;
5462
+ post?: never;
5463
+ /**
5464
+ * Delete a scheduling rule set
5465
+ * @description Hard-delete. The audit log retains the deletion record.
5466
+ */
5467
+ delete: operations["delete-scheduling-rule-set"];
5468
+ options?: never;
5469
+ head?: never;
5470
+ /**
5471
+ * Partially update a scheduling rule set
5472
+ * @description Update `params` and/or `is_active` on an existing rule set. `agent_kind` and `rule_kind` are immutable — to change either, create a new rule set and delete the old one.
5473
+ */
5474
+ patch: operations["update-scheduling-rule-set"];
5475
+ trace?: never;
5476
+ };
5421
5477
  "/v1/{workspace_id}/scribe/encounters/{encounter_id}/finalize": {
5422
5478
  parameters: {
5423
5479
  query?: never;
@@ -6317,6 +6373,46 @@ export interface paths {
6317
6373
  patch?: never;
6318
6374
  trace?: never;
6319
6375
  };
6376
+ "/v1/{workspace_id}/simulations/benchmarks/results": {
6377
+ parameters: {
6378
+ query?: never;
6379
+ header?: never;
6380
+ path?: never;
6381
+ cookie?: never;
6382
+ };
6383
+ get?: never;
6384
+ put?: never;
6385
+ /**
6386
+ * Get Simulation Benchmark Results
6387
+ * @description Aggregate benchmark results over the run ids returned by benchmark start.
6388
+ */
6389
+ post: operations["get-simulation-benchmark-results"];
6390
+ delete?: never;
6391
+ options?: never;
6392
+ head?: never;
6393
+ patch?: never;
6394
+ trace?: never;
6395
+ };
6396
+ "/v1/{workspace_id}/simulations/benchmarks/run": {
6397
+ parameters: {
6398
+ query?: never;
6399
+ header?: never;
6400
+ path?: never;
6401
+ cookie?: never;
6402
+ };
6403
+ get?: never;
6404
+ put?: never;
6405
+ /**
6406
+ * Run Simulation Benchmark
6407
+ * @description Run a tag-selected benchmark batch as one saved-case run per case.
6408
+ */
6409
+ post: operations["run-simulation-benchmark"];
6410
+ delete?: never;
6411
+ options?: never;
6412
+ head?: never;
6413
+ patch?: never;
6414
+ trace?: never;
6415
+ };
6320
6416
  "/v1/{workspace_id}/simulations/branches": {
6321
6417
  parameters: {
6322
6418
  query?: never;
@@ -6386,6 +6482,26 @@ export interface paths {
6386
6482
  patch?: never;
6387
6483
  trace?: never;
6388
6484
  };
6485
+ "/v1/{workspace_id}/simulations/cases/{case_id}/run": {
6486
+ parameters: {
6487
+ query?: never;
6488
+ header?: never;
6489
+ path?: never;
6490
+ cookie?: never;
6491
+ };
6492
+ get?: never;
6493
+ put?: never;
6494
+ /**
6495
+ * Run Simulation Case
6496
+ * @description Run the current saved simulation case through the bridge executor.
6497
+ */
6498
+ post: operations["run-simulation-case"];
6499
+ delete?: never;
6500
+ options?: never;
6501
+ head?: never;
6502
+ patch?: never;
6503
+ trace?: never;
6504
+ };
6389
6505
  "/v1/{workspace_id}/simulations/config-to-policy": {
6390
6506
  parameters: {
6391
6507
  query?: never;
@@ -7110,11 +7226,11 @@ export interface paths {
7110
7226
  path?: never;
7111
7227
  cookie?: never;
7112
7228
  };
7113
- /** List Triggers */
7114
- get: operations["list_triggers_v1__workspace_id__triggers_get"];
7229
+ /** List triggers */
7230
+ get: operations["list-triggers"];
7115
7231
  put?: never;
7116
- /** Create Trigger */
7117
- post: operations["create_trigger_v1__workspace_id__triggers_post"];
7232
+ /** Create a trigger */
7233
+ post: operations["create-trigger"];
7118
7234
  delete?: never;
7119
7235
  options?: never;
7120
7236
  head?: never;
@@ -7128,13 +7244,13 @@ export interface paths {
7128
7244
  path?: never;
7129
7245
  cookie?: never;
7130
7246
  };
7131
- /** Get Trigger */
7132
- get: operations["get_trigger_v1__workspace_id__triggers__trigger_id__get"];
7133
- /** Update Trigger */
7134
- put: operations["update_trigger_v1__workspace_id__triggers__trigger_id__put"];
7247
+ /** Get a trigger */
7248
+ get: operations["get-trigger"];
7249
+ /** Update a trigger */
7250
+ put: operations["update-trigger"];
7135
7251
  post?: never;
7136
- /** Delete Trigger */
7137
- delete: operations["delete_trigger_v1__workspace_id__triggers__trigger_id__delete"];
7252
+ /** Delete a trigger */
7253
+ delete: operations["delete-trigger"];
7138
7254
  options?: never;
7139
7255
  head?: never;
7140
7256
  patch?: never;
@@ -7149,8 +7265,8 @@ export interface paths {
7149
7265
  };
7150
7266
  get?: never;
7151
7267
  put?: never;
7152
- /** Fire Trigger */
7153
- post: operations["fire_trigger_v1__workspace_id__triggers__trigger_id__fire_post"];
7268
+ /** Manually fire a trigger now */
7269
+ post: operations["fire-trigger"];
7154
7270
  delete?: never;
7155
7271
  options?: never;
7156
7272
  head?: never;
@@ -7166,8 +7282,8 @@ export interface paths {
7166
7282
  };
7167
7283
  get?: never;
7168
7284
  put?: never;
7169
- /** Pause Trigger */
7170
- post: operations["pause_trigger_v1__workspace_id__triggers__trigger_id__pause_post"];
7285
+ /** Pause a trigger */
7286
+ post: operations["pause-trigger"];
7171
7287
  delete?: never;
7172
7288
  options?: never;
7173
7289
  head?: never;
@@ -7183,8 +7299,8 @@ export interface paths {
7183
7299
  };
7184
7300
  get?: never;
7185
7301
  put?: never;
7186
- /** Resume Trigger */
7187
- post: operations["resume_trigger_v1__workspace_id__triggers__trigger_id__resume_post"];
7302
+ /** Resume a trigger */
7303
+ post: operations["resume-trigger"];
7188
7304
  delete?: never;
7189
7305
  options?: never;
7190
7306
  head?: never;
@@ -7199,10 +7315,10 @@ export interface paths {
7199
7315
  cookie?: never;
7200
7316
  };
7201
7317
  /**
7202
- * List Trigger Runs
7318
+ * List trigger execution history
7203
7319
  * @description Execution history from the Lakebase entity-event timeline read model.
7204
7320
  */
7205
- get: operations["list_trigger_runs_v1__workspace_id__triggers__trigger_id__runs_get"];
7321
+ get: operations["list-trigger-runs"];
7206
7322
  put?: never;
7207
7323
  post?: never;
7208
7324
  delete?: never;
@@ -7500,11 +7616,11 @@ export interface paths {
7500
7616
  path?: never;
7501
7617
  cookie?: never;
7502
7618
  };
7503
- /** List Webhook Destinations */
7504
- get: operations["list_webhook_destinations_v1__workspace_id__webhook_destinations_get"];
7619
+ /** List webhook destinations */
7620
+ get: operations["list-webhook-destinations"];
7505
7621
  put?: never;
7506
- /** Create Webhook Destination */
7507
- post: operations["create_webhook_destination_v1__workspace_id__webhook_destinations_post"];
7622
+ /** Create a webhook destination */
7623
+ post: operations["create-webhook-destination"];
7508
7624
  delete?: never;
7509
7625
  options?: never;
7510
7626
  head?: never;
@@ -7518,13 +7634,13 @@ export interface paths {
7518
7634
  path?: never;
7519
7635
  cookie?: never;
7520
7636
  };
7521
- /** Get Webhook Destination */
7522
- get: operations["get_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__get"];
7523
- /** Update Webhook Destination */
7524
- put: operations["update_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__put"];
7637
+ /** Get a webhook destination */
7638
+ get: operations["get-webhook-destination"];
7639
+ /** Update a webhook destination */
7640
+ put: operations["update-webhook-destination"];
7525
7641
  post?: never;
7526
- /** Delete Webhook Destination */
7527
- delete: operations["delete_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__delete"];
7642
+ /** Delete a webhook destination */
7643
+ delete: operations["delete-webhook-destination"];
7528
7644
  options?: never;
7529
7645
  head?: never;
7530
7646
  patch?: never;
@@ -7538,10 +7654,10 @@ export interface paths {
7538
7654
  cookie?: never;
7539
7655
  };
7540
7656
  /**
7541
- * List Deliveries
7657
+ * List webhook delivery history
7542
7658
  * @description Delivery history from the Lakebase entity-event timeline read model.
7543
7659
  */
7544
- get: operations["list_deliveries_v1__workspace_id__webhook_destinations__destination_id__deliveries_get"];
7660
+ get: operations["list-webhook-destination-deliveries"];
7545
7661
  put?: never;
7546
7662
  post?: never;
7547
7663
  delete?: never;
@@ -7559,8 +7675,8 @@ export interface paths {
7559
7675
  };
7560
7676
  get?: never;
7561
7677
  put?: never;
7562
- /** Rotate Secret */
7563
- post: operations["rotate_secret_v1__workspace_id__webhook_destinations__destination_id__rotate_secret_post"];
7678
+ /** Rotate the destination's HMAC signing secret */
7679
+ post: operations["rotate-webhook-destination-secret"];
7564
7680
  delete?: never;
7565
7681
  options?: never;
7566
7682
  head?: never;
@@ -7735,6 +7851,26 @@ export interface paths {
7735
7851
  patch?: never;
7736
7852
  trace?: never;
7737
7853
  };
7854
+ "/v1/{workspace_id}/world/entities/resolve": {
7855
+ parameters: {
7856
+ query?: never;
7857
+ header?: never;
7858
+ path?: never;
7859
+ cookie?: never;
7860
+ };
7861
+ get?: never;
7862
+ put?: never;
7863
+ /**
7864
+ * Resolve entity by identifier
7865
+ * @description Polymorphic identifier → ranked entity candidates. Accepts any subset of {phone, email, canonical_id, external_id, entity_id} plus a required ``entity_type``. Uses indexed lookups (phone, email, canonical_id) and the external_ids GIN index — sub-10ms for single-identifier queries on warm pods. Returns matches ranked by confidence + number of identifiers matched.
7866
+ */
7867
+ post: operations["resolve-entity"];
7868
+ delete?: never;
7869
+ options?: never;
7870
+ head?: never;
7871
+ patch?: never;
7872
+ trace?: never;
7873
+ };
7738
7874
  "/v1/{workspace_id}/world/entities/{entity_id}": {
7739
7875
  parameters: {
7740
7876
  query?: never;
@@ -9609,6 +9745,8 @@ export interface components {
9609
9745
  };
9610
9746
  /** BridgeResponse */
9611
9747
  BridgeResponse: {
9748
+ /** Case Ids */
9749
+ case_ids?: string[];
9612
9750
  inferred_target_spec?: components["schemas"]["TargetSpec"] | null;
9613
9751
  /** Inferred Target Spec Rationale */
9614
9752
  inferred_target_spec_rationale?: string | null;
@@ -10153,6 +10291,7 @@ export interface components {
10153
10291
  /** Total Segments */
10154
10292
  total_segments: number;
10155
10293
  };
10294
+ CanonicalIdString: string;
10156
10295
  /** CatalogEntry */
10157
10296
  CatalogEntry: {
10158
10297
  /** Description */
@@ -10589,6 +10728,30 @@ export interface components {
10589
10728
  /** Status */
10590
10729
  status: string;
10591
10730
  };
10731
+ /**
10732
+ * ClinicOpenHoursParams
10733
+ * @description Workspace clinic open-hours by weekday.
10734
+ *
10735
+ * Days not present mean "closed." Used by the rules engine to skip
10736
+ * slots outside open hours and (combined with ``weekend_skip``) by the
10737
+ * TMS-mapping release calculator.
10738
+ */
10739
+ ClinicOpenHoursParams: {
10740
+ friday?: components["schemas"]["_DayHours"] | null;
10741
+ monday?: components["schemas"]["_DayHours"] | null;
10742
+ /**
10743
+ * @description discriminator enum property added by openapi-typescript
10744
+ * @enum {string}
10745
+ */
10746
+ rule_kind: "clinic_open_hours";
10747
+ saturday?: components["schemas"]["_DayHours"] | null;
10748
+ sunday?: components["schemas"]["_DayHours"] | null;
10749
+ thursday?: components["schemas"]["_DayHours"] | null;
10750
+ /** Timezone */
10751
+ timezone: string;
10752
+ tuesday?: components["schemas"]["_DayHours"] | null;
10753
+ wednesday?: components["schemas"]["_DayHours"] | null;
10754
+ };
10592
10755
  /** ClusterForecastPointRow */
10593
10756
  ClusterForecastPointRow: {
10594
10757
  /** Cluster Name */
@@ -10915,6 +11078,18 @@ export interface components {
10915
11078
  /** Similarity */
10916
11079
  similarity: number;
10917
11080
  };
11081
+ /**
11082
+ * ConcurrentStartBlockParams
11083
+ * @description Disallow two slots starting at the same time within a TMS scope.
11084
+ * No additional params — the discriminator is the whole config.
11085
+ */
11086
+ ConcurrentStartBlockParams: {
11087
+ /**
11088
+ * @description discriminator enum property added by openapi-typescript
11089
+ * @enum {string}
11090
+ */
11091
+ rule_kind: "concurrent_start_block";
11092
+ };
10918
11093
  /** ConfidenceBucket */
10919
11094
  ConfidenceBucket: {
10920
11095
  /**
@@ -12160,6 +12335,24 @@ export interface components {
12160
12335
  /** Tags */
12161
12336
  tags?: string[];
12162
12337
  };
12338
+ /** CreateSchedulingRuleSetRequest */
12339
+ CreateSchedulingRuleSetRequest: {
12340
+ /**
12341
+ * Agent Kind
12342
+ * @enum {string}
12343
+ */
12344
+ agent_kind: "tms" | "ketamine" | "general";
12345
+ /**
12346
+ * Is Active
12347
+ * @default true
12348
+ */
12349
+ is_active?: boolean;
12350
+ /**
12351
+ * Params
12352
+ * @description Per-rule-kind typed parameters. The ``rule_kind`` discriminator field selects the params shape; one row per (agent_kind, rule_kind) per workspace.
12353
+ */
12354
+ params: components["schemas"]["ClinicOpenHoursParams"] | components["schemas"]["TMSMappingReleaseParams"] | components["schemas"]["TMSSessionGridParams"] | components["schemas"]["KetamineBlockOverlapParams"] | components["schemas"]["NinetyDayRollingParams"] | components["schemas"]["ConcurrentStartBlockParams"];
12355
+ };
12163
12356
  /** CreateServiceRequest */
12164
12357
  CreateServiceRequest: {
12165
12358
  /**
@@ -12416,8 +12609,7 @@ export interface components {
12416
12609
  event_filter?: {
12417
12610
  [key: string]: unknown;
12418
12611
  } | null;
12419
- /** Event Type */
12420
- event_type: string;
12612
+ event_type: components["schemas"]["EventTypeString"];
12421
12613
  /** Input Template */
12422
12614
  input_template?: {
12423
12615
  [key: string]: unknown;
@@ -12456,7 +12648,7 @@ export interface components {
12456
12648
  /** CreateWebhookDestinationRequest */
12457
12649
  CreateWebhookDestinationRequest: {
12458
12650
  /** Accepted Event Types */
12459
- accepted_event_types?: string[];
12651
+ accepted_event_types?: components["schemas"]["EventTypeString"][];
12460
12652
  description?: components["schemas"]["DescriptionString"] | null;
12461
12653
  /** Field Mapping */
12462
12654
  field_mapping?: {
@@ -14649,6 +14841,134 @@ export interface components {
14649
14841
  /** Total Same As Edges */
14650
14842
  total_same_as_edges: number;
14651
14843
  };
14844
+ /**
14845
+ * EntityResolveExternalId
14846
+ * @description Reference to an external-system identifier.
14847
+ *
14848
+ * ``system`` labels which system minted the value (``epic``, ``hubspot``,
14849
+ * ``charm``, ``revolution``, …). The value is matched against any
14850
+ * nested key in ``world.entities.external_ids`` whose value equals
14851
+ * ``value``. ``system`` is informational for scoring; it doesn't
14852
+ * constrain the lookup, since adapters disagree on naming.
14853
+ */
14854
+ EntityResolveExternalId: {
14855
+ /** @description External system label (lowercase, e.g. 'epic', 'hubspot'). */
14856
+ system: components["schemas"]["ExternalSystemString"];
14857
+ /** @description System-issued identifier. */
14858
+ value: components["schemas"]["ExternalValueString"];
14859
+ };
14860
+ /**
14861
+ * EntityResolveMatch
14862
+ * @description One candidate match with provenance + confidence.
14863
+ */
14864
+ EntityResolveMatch: {
14865
+ /**
14866
+ * Confidence
14867
+ * @description Match confidence (0-1).
14868
+ */
14869
+ confidence: number;
14870
+ /**
14871
+ * Entity Id
14872
+ * Format: uuid
14873
+ */
14874
+ entity_id: string;
14875
+ /** Entity Type */
14876
+ entity_type: string;
14877
+ /**
14878
+ * Matched On
14879
+ * @description Identifier kinds that actually matched this row.
14880
+ */
14881
+ matched_on?: ("entity_id" | "phone" | "email" | "canonical_id" | "external_id")[];
14882
+ summary: components["schemas"]["EntityResolveSummary"];
14883
+ };
14884
+ /**
14885
+ * EntityResolveRequest
14886
+ * @description Polymorphic identifier query.
14887
+ *
14888
+ * Provide ``entity_type`` plus any subset of identifier fields. Each
14889
+ * identifier is OR-ed in SQL; matches are ranked by confidence and
14890
+ * by the number of identifiers that actually matched the row.
14891
+ * Returns at most ``limit`` candidates (default 25, max 50).
14892
+ *
14893
+ * For latency-sensitive callers (inbound voice, webhook handlers),
14894
+ * pass exactly one identifier — the indexed lookup is sub-10ms.
14895
+ * Multi-identifier queries are useful for confirming a row matches
14896
+ * on more than one signal (phone + email + MRN).
14897
+ */
14898
+ EntityResolveRequest: {
14899
+ /** @description Canonical/MRN identifier ('charm:Patient:42' or raw MRN). */
14900
+ canonical_id?: components["schemas"]["CanonicalIdString"] | null;
14901
+ /**
14902
+ * Email
14903
+ * @description Primary email (case-insensitive match).
14904
+ */
14905
+ email?: string | null;
14906
+ /**
14907
+ * Entity Id
14908
+ * @description Direct UUID lookup. Useful for confirming an entity exists / re-fetching summary.
14909
+ */
14910
+ entity_id?: string | null;
14911
+ /** @description Required entity type filter (e.g. 'person'). Narrows the scan to the right index. */
14912
+ entity_type: components["schemas"]["EntityTypeString"];
14913
+ /** @description External-system identifier reference. */
14914
+ external_id?: components["schemas"]["EntityResolveExternalId"] | null;
14915
+ /**
14916
+ * Limit
14917
+ * @description Maximum candidates to return.
14918
+ * @default 25
14919
+ */
14920
+ limit?: number;
14921
+ /** @description E.164 phone number. */
14922
+ phone?: components["schemas"]["PhoneE164"] | null;
14923
+ };
14924
+ /** EntityResolveResponse */
14925
+ EntityResolveResponse: {
14926
+ /** Matches */
14927
+ matches?: components["schemas"]["EntityResolveMatch"][];
14928
+ /**
14929
+ * Total
14930
+ * @description Number of candidates returned.
14931
+ */
14932
+ total: number;
14933
+ };
14934
+ /**
14935
+ * EntityResolveSummary
14936
+ * @description Compact identity card returned for each match.
14937
+ *
14938
+ * Excludes the full ``state`` JSONB and the entity embedding — fetch
14939
+ * via ``GET /v1/{ws}/entities/{entity_id}`` if needed. The fields
14940
+ * here are the ones a UI / agent needs to confirm "yes, that's the
14941
+ * right person" before paying for the full state read.
14942
+ */
14943
+ EntityResolveSummary: {
14944
+ /** Birth Date */
14945
+ birth_date?: string | null;
14946
+ /** Canonical Id */
14947
+ canonical_id?: string | null;
14948
+ /** Display Name */
14949
+ display_name?: string | null;
14950
+ /** Email */
14951
+ email?: string | null;
14952
+ /**
14953
+ * Event Count
14954
+ * @default 0
14955
+ */
14956
+ event_count?: number;
14957
+ /** External Ids */
14958
+ external_ids?: {
14959
+ [key: string]: unknown;
14960
+ };
14961
+ /** Last Event At */
14962
+ last_event_at?: string | null;
14963
+ /** Mrn */
14964
+ mrn?: string | null;
14965
+ /** Name */
14966
+ name?: string | null;
14967
+ /** Phone */
14968
+ phone?: string | null;
14969
+ /** Tags */
14970
+ tags?: string[];
14971
+ };
14652
14972
  /** EntityResponse */
14653
14973
  EntityResponse: {
14654
14974
  /**
@@ -14865,6 +15185,7 @@ export interface components {
14865
15185
  /** Total Entities */
14866
15186
  total_entities: number;
14867
15187
  };
15188
+ EntityTypeString: string;
14868
15189
  /** EntityTypeSummary */
14869
15190
  EntityTypeSummary: {
14870
15191
  /** Count */
@@ -15193,6 +15514,7 @@ export interface components {
15193
15514
  /** Total Events */
15194
15515
  total_events: number;
15195
15516
  };
15517
+ EventTypeString: string;
15196
15518
  /** EventTypeSummary */
15197
15519
  EventTypeSummary: {
15198
15520
  /** Count */
@@ -15275,6 +15597,8 @@ export interface components {
15275
15597
  */
15276
15598
  recommend_candidates?: number;
15277
15599
  };
15600
+ ExternalSystemString: string;
15601
+ ExternalValueString: string;
15278
15602
  /** FeatureDef */
15279
15603
  FeatureDef: {
15280
15604
  /** Kind */
@@ -16450,6 +16774,11 @@ export interface components {
16450
16774
  /** Scan Interval Seconds */
16451
16775
  scan_interval_seconds: number;
16452
16776
  };
16777
+ /** GetSimulationBenchmarkResultsRequest */
16778
+ GetSimulationBenchmarkResultsRequest: {
16779
+ /** Run Ids */
16780
+ run_ids: string[];
16781
+ };
16453
16782
  /**
16454
16783
  * Guardrail
16455
16784
  * @description Typed safety rule enforced per-state (not just global freetext guidelines).
@@ -17277,6 +17606,20 @@ export interface components {
17277
17606
  */
17278
17607
  participant_call_sid: string;
17279
17608
  };
17609
+ /**
17610
+ * KetamineBlockOverlapParams
17611
+ * @description How many days after a ketamine session to block follow-up
17612
+ * appointments (clinical safety window).
17613
+ */
17614
+ KetamineBlockOverlapParams: {
17615
+ /**
17616
+ * @description discriminator enum property added by openapi-typescript
17617
+ * @enum {string}
17618
+ */
17619
+ rule_kind: "ketamine_block_overlap";
17620
+ /** Window Days */
17621
+ window_days: number;
17622
+ };
17280
17623
  /**
17281
17624
  * KeyMoment
17282
17625
  * @description Notable event during the call worth highlighting.
@@ -18308,6 +18651,20 @@ export interface components {
18308
18651
  */
18309
18652
  used_fallback?: boolean | null;
18310
18653
  };
18654
+ /**
18655
+ * NinetyDayRollingParams
18656
+ * @description Rolling-window cap on appointments per patient (e.g. 90 days
18657
+ * between TMS sessions).
18658
+ */
18659
+ NinetyDayRollingParams: {
18660
+ /** Days */
18661
+ days: number;
18662
+ /**
18663
+ * @description discriminator enum property added by openapi-typescript
18664
+ * @enum {string}
18665
+ */
18666
+ rule_kind: "ninety_day_rolling";
18667
+ };
18311
18668
  /** NonDesiredState */
18312
18669
  NonDesiredState: {
18313
18670
  /**
@@ -19194,6 +19551,17 @@ export interface components {
19194
19551
  /** Total */
19195
19552
  total?: number | null;
19196
19553
  };
19554
+ /** PaginatedResponse[SchedulingRuleSetResponse] */
19555
+ PaginatedResponse_SchedulingRuleSetResponse_: {
19556
+ /** Continuation Token */
19557
+ continuation_token?: number | null;
19558
+ /** Has More */
19559
+ has_more: boolean;
19560
+ /** Items */
19561
+ items: components["schemas"]["SchedulingRuleSetResponse"][];
19562
+ /** Total */
19563
+ total?: number | null;
19564
+ };
19197
19565
  /** PaginatedResponse[ServiceResponse] */
19198
19566
  PaginatedResponse_ServiceResponse_: {
19199
19567
  /** Continuation Token */
@@ -21145,6 +21513,53 @@ export interface components {
21145
21513
  /** Secret */
21146
21514
  secret: string;
21147
21515
  };
21516
+ /** RunSimulationBenchmarkRequest */
21517
+ RunSimulationBenchmarkRequest: {
21518
+ /** Branch Name */
21519
+ branch_name?: string | null;
21520
+ /**
21521
+ * Concurrency
21522
+ * @default 1
21523
+ */
21524
+ concurrency?: number;
21525
+ exploration?: components["schemas"]["ExplorationConfig"] | null;
21526
+ /**
21527
+ * Max Cases
21528
+ * @default 20
21529
+ */
21530
+ max_cases?: number;
21531
+ /**
21532
+ * Max Turns
21533
+ * @default 20
21534
+ */
21535
+ max_turns?: number;
21536
+ /** Required Tags */
21537
+ required_tags?: string[];
21538
+ /** Service Id */
21539
+ service_id?: string | null;
21540
+ /** Tags */
21541
+ tags?: string[];
21542
+ };
21543
+ /** RunSimulationCaseRequest */
21544
+ RunSimulationCaseRequest: {
21545
+ /** Branch Name */
21546
+ branch_name?: string | null;
21547
+ /**
21548
+ * Concurrency
21549
+ * @default 1
21550
+ */
21551
+ concurrency?: number;
21552
+ exploration?: components["schemas"]["ExplorationConfig"] | null;
21553
+ /**
21554
+ * Max Turns
21555
+ * @default 20
21556
+ */
21557
+ max_turns?: number;
21558
+ /** Service Id */
21559
+ service_id?: string | null;
21560
+ /** Tags */
21561
+ tags?: string[];
21562
+ };
21148
21563
  /** SafetyConfigResponse */
21149
21564
  SafetyConfigResponse: {
21150
21565
  /** Accumulation Cumulative Count */
@@ -21381,6 +21796,8 @@ export interface components {
21381
21796
  };
21382
21797
  /** Scenario */
21383
21798
  Scenario: {
21799
+ /** Case Id */
21800
+ case_id?: string | null;
21384
21801
  /** Description */
21385
21802
  description: string;
21386
21803
  /** Initial Message */
@@ -21422,6 +21839,47 @@ export interface components {
21422
21839
  */
21423
21840
  role?: string;
21424
21841
  };
21842
+ /**
21843
+ * SchedulingRuleSetResponse
21844
+ * @description Wire shape for a single rule set. ``params`` stays as ``dict``
21845
+ * here (not the discriminated union) so add-a-new-kind doesn't break
21846
+ * older clients still on the previous SDK version — the SDK's typed
21847
+ * helpers can re-validate into ``RuleParams`` when needed.
21848
+ */
21849
+ SchedulingRuleSetResponse: {
21850
+ /**
21851
+ * Agent Kind
21852
+ * @enum {string}
21853
+ */
21854
+ agent_kind: "tms" | "ketamine" | "general";
21855
+ /** Created At */
21856
+ created_at: string | null;
21857
+ /** Created By */
21858
+ created_by: string | null;
21859
+ /**
21860
+ * Id
21861
+ * Format: uuid
21862
+ */
21863
+ id: string;
21864
+ /** Is Active */
21865
+ is_active: boolean;
21866
+ /** Params */
21867
+ params: {
21868
+ [key: string]: unknown;
21869
+ };
21870
+ /**
21871
+ * Rule Kind
21872
+ * @enum {string}
21873
+ */
21874
+ rule_kind: "clinic_open_hours" | "tms_mapping_release" | "tms_session_grid" | "ketamine_block_overlap" | "ninety_day_rolling" | "concurrent_start_block";
21875
+ /** Updated At */
21876
+ updated_at: string | null;
21877
+ /**
21878
+ * Workspace Id
21879
+ * Format: uuid
21880
+ */
21881
+ workspace_id: string;
21882
+ };
21425
21883
  /** SchemaResponse */
21426
21884
  SchemaResponse: {
21427
21885
  /** Ai Functions */
@@ -22124,6 +22582,227 @@ export interface components {
22124
22582
  */
22125
22583
  signal: string;
22126
22584
  };
22585
+ /** SimulationBenchmarkAggregateSummary */
22586
+ SimulationBenchmarkAggregateSummary: {
22587
+ /** Average Score */
22588
+ average_score?: number | null;
22589
+ /** Failed To Start Count */
22590
+ failed_to_start_count: number;
22591
+ /**
22592
+ * Scored Count
22593
+ * @default 0
22594
+ */
22595
+ scored_count?: number;
22596
+ /** Selected Count */
22597
+ selected_count: number;
22598
+ /** Skipped Count */
22599
+ skipped_count: number;
22600
+ /** Started Count */
22601
+ started_count: number;
22602
+ /** Status Counts */
22603
+ status_counts?: {
22604
+ [key: string]: number;
22605
+ };
22606
+ };
22607
+ /** SimulationBenchmarkBreakdownSummary */
22608
+ SimulationBenchmarkBreakdownSummary: {
22609
+ /** Average Score */
22610
+ average_score?: number | null;
22611
+ /**
22612
+ * Completed Count
22613
+ * @default 0
22614
+ */
22615
+ completed_count?: number;
22616
+ /**
22617
+ * Fail Count
22618
+ * @default 0
22619
+ */
22620
+ fail_count?: number;
22621
+ /**
22622
+ * Failed Count
22623
+ * @default 0
22624
+ */
22625
+ failed_count?: number;
22626
+ /**
22627
+ * Pass Count
22628
+ * @default 0
22629
+ */
22630
+ pass_count?: number;
22631
+ /**
22632
+ * Run Count
22633
+ * @default 0
22634
+ */
22635
+ run_count?: number;
22636
+ /**
22637
+ * Scored Count
22638
+ * @default 0
22639
+ */
22640
+ scored_count?: number;
22641
+ /** Status Counts */
22642
+ status_counts?: {
22643
+ [key: string]: number;
22644
+ };
22645
+ };
22646
+ /** SimulationBenchmarkCaseResult */
22647
+ SimulationBenchmarkCaseResult: {
22648
+ /**
22649
+ * Case Id
22650
+ * Format: uuid
22651
+ */
22652
+ case_id: string;
22653
+ /** Reason */
22654
+ reason?: string | null;
22655
+ /** Result Pointer */
22656
+ result_pointer?: {
22657
+ [key: string]: unknown;
22658
+ } | null;
22659
+ /** Run Id */
22660
+ run_id?: string | null;
22661
+ /** Service Id */
22662
+ service_id?: string | null;
22663
+ /**
22664
+ * Status
22665
+ * @enum {string}
22666
+ */
22667
+ status: "started" | "skipped" | "failed_to_start";
22668
+ };
22669
+ /** SimulationBenchmarkPerRunSummary */
22670
+ SimulationBenchmarkPerRunSummary: {
22671
+ /** Average Score */
22672
+ average_score?: number | null;
22673
+ /** Capability Tags */
22674
+ capability_tags?: string[];
22675
+ /** Case Ids */
22676
+ case_ids?: string[];
22677
+ /** Completed At */
22678
+ completed_at?: string | null;
22679
+ /** Created At */
22680
+ created_at?: string | null;
22681
+ /**
22682
+ * Fail Count
22683
+ * @default 0
22684
+ */
22685
+ fail_count?: number;
22686
+ /**
22687
+ * Pass Count
22688
+ * @default 0
22689
+ */
22690
+ pass_count?: number;
22691
+ /** Passed */
22692
+ passed?: boolean | null;
22693
+ /** Result Pointer */
22694
+ result_pointer?: {
22695
+ [key: string]: unknown;
22696
+ };
22697
+ /**
22698
+ * Run Id
22699
+ * Format: uuid
22700
+ */
22701
+ run_id: string;
22702
+ /** Score Rationales */
22703
+ score_rationales?: string[];
22704
+ /**
22705
+ * Scored Session Count
22706
+ * @default 0
22707
+ */
22708
+ scored_session_count?: number;
22709
+ /**
22710
+ * Service Id
22711
+ * Format: uuid
22712
+ */
22713
+ service_id: string;
22714
+ /** Session Ids */
22715
+ session_ids?: string[];
22716
+ /**
22717
+ * Status
22718
+ * @enum {string}
22719
+ */
22720
+ status: "running" | "completed" | "failed";
22721
+ /** Tags */
22722
+ tags?: string[];
22723
+ /**
22724
+ * Terminal Session Count
22725
+ * @default 0
22726
+ */
22727
+ terminal_session_count?: number;
22728
+ /**
22729
+ * Total Sessions
22730
+ * @default 0
22731
+ */
22732
+ total_sessions?: number;
22733
+ /**
22734
+ * Total Turns
22735
+ * @default 0
22736
+ */
22737
+ total_turns?: number;
22738
+ };
22739
+ /** SimulationBenchmarkResultsResponse */
22740
+ SimulationBenchmarkResultsResponse: {
22741
+ /** Average Score */
22742
+ average_score?: number | null;
22743
+ /** Capability Breakdown */
22744
+ capability_breakdown?: {
22745
+ [key: string]: components["schemas"]["SimulationBenchmarkBreakdownSummary"];
22746
+ };
22747
+ /**
22748
+ * Completed Count
22749
+ * @default 0
22750
+ */
22751
+ completed_count?: number;
22752
+ /**
22753
+ * Fail Count
22754
+ * @default 0
22755
+ */
22756
+ fail_count?: number;
22757
+ /**
22758
+ * Failed Count
22759
+ * @default 0
22760
+ */
22761
+ failed_count?: number;
22762
+ /** Missing Run Ids */
22763
+ missing_run_ids?: string[];
22764
+ /**
22765
+ * Pass Count
22766
+ * @default 0
22767
+ */
22768
+ pass_count?: number;
22769
+ /** Per Run */
22770
+ per_run?: components["schemas"]["SimulationBenchmarkPerRunSummary"][];
22771
+ /** Run Ids */
22772
+ run_ids: string[];
22773
+ /**
22774
+ * Scored Count
22775
+ * @default 0
22776
+ */
22777
+ scored_count?: number;
22778
+ /** Status Counts */
22779
+ status_counts?: {
22780
+ [key: string]: number;
22781
+ };
22782
+ /** Total Runs */
22783
+ total_runs: number;
22784
+ };
22785
+ /** SimulationBenchmarkRunResponse */
22786
+ SimulationBenchmarkRunResponse: {
22787
+ aggregate_summary: components["schemas"]["SimulationBenchmarkAggregateSummary"];
22788
+ /**
22789
+ * Batch Id
22790
+ * Format: uuid
22791
+ */
22792
+ batch_id: string;
22793
+ /** Cases */
22794
+ cases: components["schemas"]["SimulationBenchmarkCaseResult"][];
22795
+ /** Failed To Start Cases */
22796
+ failed_to_start_cases: components["schemas"]["SimulationBenchmarkCaseResult"][];
22797
+ /** Required Tags */
22798
+ required_tags: string[];
22799
+ /** Run Ids */
22800
+ run_ids: string[];
22801
+ /** Selected Case Ids */
22802
+ selected_case_ids: string[];
22803
+ /** Skipped Cases */
22804
+ skipped_cases: components["schemas"]["SimulationBenchmarkCaseResult"][];
22805
+ };
22127
22806
  /** SimulationIntelligenceResponse */
22128
22807
  SimulationIntelligenceResponse: {
22129
22808
  /** Intelligence */
@@ -22203,6 +22882,10 @@ export interface components {
22203
22882
  * Format: uuid
22204
22883
  */
22205
22884
  service_id: string;
22885
+ /** Snapshot */
22886
+ snapshot?: {
22887
+ [key: string]: unknown;
22888
+ } | null;
22206
22889
  /**
22207
22890
  * Status
22208
22891
  * @enum {string}
@@ -23775,6 +24458,43 @@ export interface components {
23775
24458
  /** Status */
23776
24459
  status: string;
23777
24460
  };
24461
+ /**
24462
+ * TMSMappingReleaseParams
24463
+ * @description How long before a TMS mapping appointment its slot is released
24464
+ * back to the pool. ``weekend_skip=True`` adds Saturday + Sunday days
24465
+ * to the wall-clock countdown (clinic doesn't release on weekends).
24466
+ */
24467
+ TMSMappingReleaseParams: {
24468
+ /** Reservation Window Hours */
24469
+ reservation_window_hours: number;
24470
+ /**
24471
+ * @description discriminator enum property added by openapi-typescript
24472
+ * @enum {string}
24473
+ */
24474
+ rule_kind: "tms_mapping_release";
24475
+ /**
24476
+ * Weekend Skip
24477
+ * @default true
24478
+ */
24479
+ weekend_skip?: boolean;
24480
+ };
24481
+ /**
24482
+ * TMSSessionGridParams
24483
+ * @description TMS sessions only start at fixed minute-of-hour boundaries
24484
+ * (e.g. ``:00`` and ``:30``) so the technician can run them
24485
+ * back-to-back without gaps.
24486
+ */
24487
+ TMSSessionGridParams: {
24488
+ /** Boundary Minutes */
24489
+ boundary_minutes: number[];
24490
+ /** Interval Minutes */
24491
+ interval_minutes: number;
24492
+ /**
24493
+ * @description discriminator enum property added by openapi-typescript
24494
+ * @enum {string}
24495
+ */
24496
+ rule_kind: "tms_session_grid";
24497
+ };
23778
24498
  /** TargetSpec */
23779
24499
  TargetSpec: {
23780
24500
  completion_criteria?: components["schemas"]["CompletionCriteria"];
@@ -25553,6 +26273,18 @@ export interface components {
25553
26273
  /** Triage Timeout S */
25554
26274
  triage_timeout_s?: number | null;
25555
26275
  };
26276
+ /**
26277
+ * UpdateSchedulingRuleSetRequest
26278
+ * @description Partial update — fields not provided are unchanged. ``params``
26279
+ * must be the full per-kind shape (no patch within params); send the
26280
+ * whole RuleParams or omit.
26281
+ */
26282
+ UpdateSchedulingRuleSetRequest: {
26283
+ /** Is Active */
26284
+ is_active?: boolean | null;
26285
+ /** Params */
26286
+ params?: (components["schemas"]["ClinicOpenHoursParams"] | components["schemas"]["TMSMappingReleaseParams"] | components["schemas"]["TMSSessionGridParams"] | components["schemas"]["KetamineBlockOverlapParams"] | components["schemas"]["NinetyDayRollingParams"] | components["schemas"]["ConcurrentStartBlockParams"]) | null;
26287
+ };
25556
26288
  /** UpdateServiceRequest */
25557
26289
  UpdateServiceRequest: {
25558
26290
  /** Agent Id */
@@ -25707,8 +26439,7 @@ export interface components {
25707
26439
  event_filter?: {
25708
26440
  [key: string]: unknown;
25709
26441
  } | null;
25710
- /** Event Type */
25711
- event_type?: string | null;
26442
+ event_type?: components["schemas"]["EventTypeString"] | null;
25712
26443
  /** Input Template */
25713
26444
  input_template?: {
25714
26445
  [key: string]: unknown;
@@ -25741,7 +26472,7 @@ export interface components {
25741
26472
  /** UpdateWebhookDestinationRequest */
25742
26473
  UpdateWebhookDestinationRequest: {
25743
26474
  /** Accepted Event Types */
25744
- accepted_event_types?: string[] | null;
26475
+ accepted_event_types?: components["schemas"]["EventTypeString"][] | null;
25745
26476
  description?: components["schemas"]["DescriptionString"] | null;
25746
26477
  /** Field Mapping */
25747
26478
  field_mapping?: {
@@ -26968,6 +27699,17 @@ export interface components {
26968
27699
  /** Success */
26969
27700
  success: boolean;
26970
27701
  };
27702
+ /**
27703
+ * _DayHours
27704
+ * @description Open-hours window for one weekday. Times in 24h ``HH:MM`` form,
27705
+ * interpreted in the rule set's ``timezone``.
27706
+ */
27707
+ _DayHours: {
27708
+ /** End */
27709
+ end: string;
27710
+ /** Start */
27711
+ start: string;
27712
+ };
26971
27713
  _ToolMockKey: string;
26972
27714
  _ToolMockValue: string;
26973
27715
  /**
@@ -39753,6 +40495,304 @@ export interface operations {
39753
40495
  };
39754
40496
  };
39755
40497
  };
40498
+ "list-scheduling-rule-sets": {
40499
+ parameters: {
40500
+ query?: {
40501
+ agent_kind?: ("tms" | "ketamine" | "general") | null;
40502
+ is_active?: boolean | null;
40503
+ limit?: number;
40504
+ continuation_token?: number;
40505
+ };
40506
+ header?: never;
40507
+ path: {
40508
+ workspace_id: string;
40509
+ };
40510
+ cookie?: never;
40511
+ };
40512
+ requestBody?: never;
40513
+ responses: {
40514
+ /** @description Successful Response */
40515
+ 200: {
40516
+ headers: {
40517
+ [name: string]: unknown;
40518
+ };
40519
+ content: {
40520
+ "application/json": components["schemas"]["PaginatedResponse_SchedulingRuleSetResponse_"];
40521
+ };
40522
+ };
40523
+ /** @description Missing or invalid API key. */
40524
+ 401: {
40525
+ headers: {
40526
+ [name: string]: unknown;
40527
+ };
40528
+ content?: never;
40529
+ };
40530
+ /** @description Insufficient permissions. */
40531
+ 403: {
40532
+ headers: {
40533
+ [name: string]: unknown;
40534
+ };
40535
+ content?: never;
40536
+ };
40537
+ /** @description Validation Error */
40538
+ 422: {
40539
+ headers: {
40540
+ [name: string]: unknown;
40541
+ };
40542
+ content: {
40543
+ "application/json": components["schemas"]["HTTPValidationError"];
40544
+ };
40545
+ };
40546
+ /** @description Rate limited. */
40547
+ 429: {
40548
+ headers: {
40549
+ [name: string]: unknown;
40550
+ };
40551
+ content?: never;
40552
+ };
40553
+ };
40554
+ };
40555
+ "create-scheduling-rule-set": {
40556
+ parameters: {
40557
+ query?: never;
40558
+ header?: never;
40559
+ path: {
40560
+ workspace_id: string;
40561
+ };
40562
+ cookie?: never;
40563
+ };
40564
+ requestBody: {
40565
+ content: {
40566
+ "application/json": components["schemas"]["CreateSchedulingRuleSetRequest"];
40567
+ };
40568
+ };
40569
+ responses: {
40570
+ /** @description Successful Response */
40571
+ 201: {
40572
+ headers: {
40573
+ [name: string]: unknown;
40574
+ };
40575
+ content: {
40576
+ "application/json": components["schemas"]["SchedulingRuleSetResponse"];
40577
+ };
40578
+ };
40579
+ /** @description Missing or invalid API key. */
40580
+ 401: {
40581
+ headers: {
40582
+ [name: string]: unknown;
40583
+ };
40584
+ content?: never;
40585
+ };
40586
+ /** @description Insufficient permissions. */
40587
+ 403: {
40588
+ headers: {
40589
+ [name: string]: unknown;
40590
+ };
40591
+ content?: never;
40592
+ };
40593
+ /** @description Rule set already exists for this (agent_kind, rule_kind). */
40594
+ 409: {
40595
+ headers: {
40596
+ [name: string]: unknown;
40597
+ };
40598
+ content?: never;
40599
+ };
40600
+ /** @description Invalid request body or rule_kind discriminator. */
40601
+ 422: {
40602
+ headers: {
40603
+ [name: string]: unknown;
40604
+ };
40605
+ content?: never;
40606
+ };
40607
+ /** @description Rate limited. */
40608
+ 429: {
40609
+ headers: {
40610
+ [name: string]: unknown;
40611
+ };
40612
+ content?: never;
40613
+ };
40614
+ };
40615
+ };
40616
+ "get-scheduling-rule-set": {
40617
+ parameters: {
40618
+ query?: never;
40619
+ header?: never;
40620
+ path: {
40621
+ workspace_id: string;
40622
+ rule_set_id: string;
40623
+ };
40624
+ cookie?: never;
40625
+ };
40626
+ requestBody?: never;
40627
+ responses: {
40628
+ /** @description Successful Response */
40629
+ 200: {
40630
+ headers: {
40631
+ [name: string]: unknown;
40632
+ };
40633
+ content: {
40634
+ "application/json": components["schemas"]["SchedulingRuleSetResponse"];
40635
+ };
40636
+ };
40637
+ /** @description Missing or invalid API key. */
40638
+ 401: {
40639
+ headers: {
40640
+ [name: string]: unknown;
40641
+ };
40642
+ content?: never;
40643
+ };
40644
+ /** @description Insufficient permissions. */
40645
+ 403: {
40646
+ headers: {
40647
+ [name: string]: unknown;
40648
+ };
40649
+ content?: never;
40650
+ };
40651
+ /** @description Rule set not found in this workspace. */
40652
+ 404: {
40653
+ headers: {
40654
+ [name: string]: unknown;
40655
+ };
40656
+ content?: never;
40657
+ };
40658
+ /** @description Validation Error */
40659
+ 422: {
40660
+ headers: {
40661
+ [name: string]: unknown;
40662
+ };
40663
+ content: {
40664
+ "application/json": components["schemas"]["HTTPValidationError"];
40665
+ };
40666
+ };
40667
+ /** @description Rate limited. */
40668
+ 429: {
40669
+ headers: {
40670
+ [name: string]: unknown;
40671
+ };
40672
+ content?: never;
40673
+ };
40674
+ };
40675
+ };
40676
+ "delete-scheduling-rule-set": {
40677
+ parameters: {
40678
+ query?: never;
40679
+ header?: never;
40680
+ path: {
40681
+ workspace_id: string;
40682
+ rule_set_id: string;
40683
+ };
40684
+ cookie?: never;
40685
+ };
40686
+ requestBody?: never;
40687
+ responses: {
40688
+ /** @description Successful Response */
40689
+ 204: {
40690
+ headers: {
40691
+ [name: string]: unknown;
40692
+ };
40693
+ content?: never;
40694
+ };
40695
+ /** @description Missing or invalid API key. */
40696
+ 401: {
40697
+ headers: {
40698
+ [name: string]: unknown;
40699
+ };
40700
+ content?: never;
40701
+ };
40702
+ /** @description Insufficient permissions. */
40703
+ 403: {
40704
+ headers: {
40705
+ [name: string]: unknown;
40706
+ };
40707
+ content?: never;
40708
+ };
40709
+ /** @description Rule set not found in this workspace. */
40710
+ 404: {
40711
+ headers: {
40712
+ [name: string]: unknown;
40713
+ };
40714
+ content?: never;
40715
+ };
40716
+ /** @description Validation Error */
40717
+ 422: {
40718
+ headers: {
40719
+ [name: string]: unknown;
40720
+ };
40721
+ content: {
40722
+ "application/json": components["schemas"]["HTTPValidationError"];
40723
+ };
40724
+ };
40725
+ /** @description Rate limited. */
40726
+ 429: {
40727
+ headers: {
40728
+ [name: string]: unknown;
40729
+ };
40730
+ content?: never;
40731
+ };
40732
+ };
40733
+ };
40734
+ "update-scheduling-rule-set": {
40735
+ parameters: {
40736
+ query?: never;
40737
+ header?: never;
40738
+ path: {
40739
+ workspace_id: string;
40740
+ rule_set_id: string;
40741
+ };
40742
+ cookie?: never;
40743
+ };
40744
+ requestBody: {
40745
+ content: {
40746
+ "application/json": components["schemas"]["UpdateSchedulingRuleSetRequest"];
40747
+ };
40748
+ };
40749
+ responses: {
40750
+ /** @description Successful Response */
40751
+ 200: {
40752
+ headers: {
40753
+ [name: string]: unknown;
40754
+ };
40755
+ content: {
40756
+ "application/json": components["schemas"]["SchedulingRuleSetResponse"];
40757
+ };
40758
+ };
40759
+ /** @description Missing or invalid API key. */
40760
+ 401: {
40761
+ headers: {
40762
+ [name: string]: unknown;
40763
+ };
40764
+ content?: never;
40765
+ };
40766
+ /** @description Insufficient permissions. */
40767
+ 403: {
40768
+ headers: {
40769
+ [name: string]: unknown;
40770
+ };
40771
+ content?: never;
40772
+ };
40773
+ /** @description Rule set not found in this workspace. */
40774
+ 404: {
40775
+ headers: {
40776
+ [name: string]: unknown;
40777
+ };
40778
+ content?: never;
40779
+ };
40780
+ /** @description Submitted params discriminator does not match the existing rule's rule_kind. */
40781
+ 422: {
40782
+ headers: {
40783
+ [name: string]: unknown;
40784
+ };
40785
+ content?: never;
40786
+ };
40787
+ /** @description Rate limited. */
40788
+ 429: {
40789
+ headers: {
40790
+ [name: string]: unknown;
40791
+ };
40792
+ content?: never;
40793
+ };
40794
+ };
40795
+ };
39756
40796
  "finalize-encounter": {
39757
40797
  parameters: {
39758
40798
  query?: never;
@@ -41828,6 +42868,76 @@ export interface operations {
41828
42868
  };
41829
42869
  };
41830
42870
  };
42871
+ "get-simulation-benchmark-results": {
42872
+ parameters: {
42873
+ query?: never;
42874
+ header?: never;
42875
+ path: {
42876
+ workspace_id: string;
42877
+ };
42878
+ cookie?: never;
42879
+ };
42880
+ requestBody: {
42881
+ content: {
42882
+ "application/json": components["schemas"]["GetSimulationBenchmarkResultsRequest"];
42883
+ };
42884
+ };
42885
+ responses: {
42886
+ /** @description Successful Response */
42887
+ 200: {
42888
+ headers: {
42889
+ [name: string]: unknown;
42890
+ };
42891
+ content: {
42892
+ "application/json": components["schemas"]["SimulationBenchmarkResultsResponse"];
42893
+ };
42894
+ };
42895
+ /** @description Validation Error */
42896
+ 422: {
42897
+ headers: {
42898
+ [name: string]: unknown;
42899
+ };
42900
+ content: {
42901
+ "application/json": components["schemas"]["HTTPValidationError"];
42902
+ };
42903
+ };
42904
+ };
42905
+ };
42906
+ "run-simulation-benchmark": {
42907
+ parameters: {
42908
+ query?: never;
42909
+ header?: never;
42910
+ path: {
42911
+ workspace_id: string;
42912
+ };
42913
+ cookie?: never;
42914
+ };
42915
+ requestBody: {
42916
+ content: {
42917
+ "application/json": components["schemas"]["RunSimulationBenchmarkRequest"];
42918
+ };
42919
+ };
42920
+ responses: {
42921
+ /** @description Successful Response */
42922
+ 200: {
42923
+ headers: {
42924
+ [name: string]: unknown;
42925
+ };
42926
+ content: {
42927
+ "application/json": components["schemas"]["SimulationBenchmarkRunResponse"];
42928
+ };
42929
+ };
42930
+ /** @description Validation Error */
42931
+ 422: {
42932
+ headers: {
42933
+ [name: string]: unknown;
42934
+ };
42935
+ content: {
42936
+ "application/json": components["schemas"]["HTTPValidationError"];
42937
+ };
42938
+ };
42939
+ };
42940
+ };
41831
42941
  "list-simulation-branches": {
41832
42942
  parameters: {
41833
42943
  query?: never;
@@ -41959,6 +43069,42 @@ export interface operations {
41959
43069
  };
41960
43070
  };
41961
43071
  };
43072
+ "run-simulation-case": {
43073
+ parameters: {
43074
+ query?: never;
43075
+ header?: never;
43076
+ path: {
43077
+ workspace_id: string;
43078
+ case_id: string;
43079
+ };
43080
+ cookie?: never;
43081
+ };
43082
+ requestBody: {
43083
+ content: {
43084
+ "application/json": components["schemas"]["RunSimulationCaseRequest"];
43085
+ };
43086
+ };
43087
+ responses: {
43088
+ /** @description Successful Response */
43089
+ 200: {
43090
+ headers: {
43091
+ [name: string]: unknown;
43092
+ };
43093
+ content: {
43094
+ "application/json": components["schemas"]["BridgeResponse"];
43095
+ };
43096
+ };
43097
+ /** @description Validation Error */
43098
+ 422: {
43099
+ headers: {
43100
+ [name: string]: unknown;
43101
+ };
43102
+ content: {
43103
+ "application/json": components["schemas"]["HTTPValidationError"];
43104
+ };
43105
+ };
43106
+ };
43107
+ };
41962
43108
  "config-to-turn-policy": {
41963
43109
  parameters: {
41964
43110
  query?: never;
@@ -43756,7 +44902,7 @@ export interface operations {
43756
44902
  };
43757
44903
  };
43758
44904
  };
43759
- list_triggers_v1__workspace_id__triggers_get: {
44905
+ "list-triggers": {
43760
44906
  parameters: {
43761
44907
  query?: {
43762
44908
  is_active?: boolean | null;
@@ -43789,9 +44935,16 @@ export interface operations {
43789
44935
  "application/json": components["schemas"]["HTTPValidationError"];
43790
44936
  };
43791
44937
  };
44938
+ /** @description Rate limited */
44939
+ 429: {
44940
+ headers: {
44941
+ [name: string]: unknown;
44942
+ };
44943
+ content?: never;
44944
+ };
43792
44945
  };
43793
44946
  };
43794
- create_trigger_v1__workspace_id__triggers_post: {
44947
+ "create-trigger": {
43795
44948
  parameters: {
43796
44949
  query?: never;
43797
44950
  header?: never;
@@ -43815,18 +44968,23 @@ export interface operations {
43815
44968
  "application/json": components["schemas"]["TriggerResponse"];
43816
44969
  };
43817
44970
  };
43818
- /** @description Validation Error */
44971
+ /** @description Validation error */
43819
44972
  422: {
43820
44973
  headers: {
43821
44974
  [name: string]: unknown;
43822
44975
  };
43823
- content: {
43824
- "application/json": components["schemas"]["HTTPValidationError"];
44976
+ content?: never;
44977
+ };
44978
+ /** @description Rate limited */
44979
+ 429: {
44980
+ headers: {
44981
+ [name: string]: unknown;
43825
44982
  };
44983
+ content?: never;
43826
44984
  };
43827
44985
  };
43828
44986
  };
43829
- get_trigger_v1__workspace_id__triggers__trigger_id__get: {
44987
+ "get-trigger": {
43830
44988
  parameters: {
43831
44989
  query?: never;
43832
44990
  header?: never;
@@ -43847,6 +45005,13 @@ export interface operations {
43847
45005
  "application/json": components["schemas"]["TriggerResponse"];
43848
45006
  };
43849
45007
  };
45008
+ /** @description Trigger not found */
45009
+ 404: {
45010
+ headers: {
45011
+ [name: string]: unknown;
45012
+ };
45013
+ content?: never;
45014
+ };
43850
45015
  /** @description Validation Error */
43851
45016
  422: {
43852
45017
  headers: {
@@ -43856,9 +45021,16 @@ export interface operations {
43856
45021
  "application/json": components["schemas"]["HTTPValidationError"];
43857
45022
  };
43858
45023
  };
45024
+ /** @description Rate limited */
45025
+ 429: {
45026
+ headers: {
45027
+ [name: string]: unknown;
45028
+ };
45029
+ content?: never;
45030
+ };
43859
45031
  };
43860
45032
  };
43861
- update_trigger_v1__workspace_id__triggers__trigger_id__put: {
45033
+ "update-trigger": {
43862
45034
  parameters: {
43863
45035
  query?: never;
43864
45036
  header?: never;
@@ -43883,18 +45055,30 @@ export interface operations {
43883
45055
  "application/json": components["schemas"]["TriggerResponse"];
43884
45056
  };
43885
45057
  };
43886
- /** @description Validation Error */
45058
+ /** @description Trigger not found */
45059
+ 404: {
45060
+ headers: {
45061
+ [name: string]: unknown;
45062
+ };
45063
+ content?: never;
45064
+ };
45065
+ /** @description Validation error */
43887
45066
  422: {
43888
45067
  headers: {
43889
45068
  [name: string]: unknown;
43890
45069
  };
43891
- content: {
43892
- "application/json": components["schemas"]["HTTPValidationError"];
45070
+ content?: never;
45071
+ };
45072
+ /** @description Rate limited */
45073
+ 429: {
45074
+ headers: {
45075
+ [name: string]: unknown;
43893
45076
  };
45077
+ content?: never;
43894
45078
  };
43895
45079
  };
43896
45080
  };
43897
- delete_trigger_v1__workspace_id__triggers__trigger_id__delete: {
45081
+ "delete-trigger": {
43898
45082
  parameters: {
43899
45083
  query?: never;
43900
45084
  header?: never;
@@ -43922,9 +45106,16 @@ export interface operations {
43922
45106
  "application/json": components["schemas"]["HTTPValidationError"];
43923
45107
  };
43924
45108
  };
45109
+ /** @description Rate limited */
45110
+ 429: {
45111
+ headers: {
45112
+ [name: string]: unknown;
45113
+ };
45114
+ content?: never;
45115
+ };
43925
45116
  };
43926
45117
  };
43927
- fire_trigger_v1__workspace_id__triggers__trigger_id__fire_post: {
45118
+ "fire-trigger": {
43928
45119
  parameters: {
43929
45120
  query?: never;
43930
45121
  header?: never;
@@ -43949,18 +45140,37 @@ export interface operations {
43949
45140
  "application/json": components["schemas"]["TriggerFireResponse"];
43950
45141
  };
43951
45142
  };
43952
- /** @description Validation Error */
45143
+ /** @description Trigger not found */
45144
+ 404: {
45145
+ headers: {
45146
+ [name: string]: unknown;
45147
+ };
45148
+ content?: never;
45149
+ };
45150
+ /** @description Validation error */
43953
45151
  422: {
43954
45152
  headers: {
43955
45153
  [name: string]: unknown;
43956
45154
  };
43957
- content: {
43958
- "application/json": components["schemas"]["HTTPValidationError"];
45155
+ content?: never;
45156
+ };
45157
+ /** @description Rate limited */
45158
+ 429: {
45159
+ headers: {
45160
+ [name: string]: unknown;
43959
45161
  };
45162
+ content?: never;
45163
+ };
45164
+ /** @description Trigger scheduler not initialized */
45165
+ 503: {
45166
+ headers: {
45167
+ [name: string]: unknown;
45168
+ };
45169
+ content?: never;
43960
45170
  };
43961
45171
  };
43962
45172
  };
43963
- pause_trigger_v1__workspace_id__triggers__trigger_id__pause_post: {
45173
+ "pause-trigger": {
43964
45174
  parameters: {
43965
45175
  query?: never;
43966
45176
  header?: never;
@@ -43981,18 +45191,30 @@ export interface operations {
43981
45191
  "application/json": components["schemas"]["TriggerResponse"];
43982
45192
  };
43983
45193
  };
43984
- /** @description Validation Error */
45194
+ /** @description Trigger not found */
45195
+ 404: {
45196
+ headers: {
45197
+ [name: string]: unknown;
45198
+ };
45199
+ content?: never;
45200
+ };
45201
+ /** @description Validation error */
43985
45202
  422: {
43986
45203
  headers: {
43987
45204
  [name: string]: unknown;
43988
45205
  };
43989
- content: {
43990
- "application/json": components["schemas"]["HTTPValidationError"];
45206
+ content?: never;
45207
+ };
45208
+ /** @description Rate limited */
45209
+ 429: {
45210
+ headers: {
45211
+ [name: string]: unknown;
43991
45212
  };
45213
+ content?: never;
43992
45214
  };
43993
45215
  };
43994
45216
  };
43995
- resume_trigger_v1__workspace_id__triggers__trigger_id__resume_post: {
45217
+ "resume-trigger": {
43996
45218
  parameters: {
43997
45219
  query?: never;
43998
45220
  header?: never;
@@ -44013,18 +45235,30 @@ export interface operations {
44013
45235
  "application/json": components["schemas"]["TriggerResponse"];
44014
45236
  };
44015
45237
  };
44016
- /** @description Validation Error */
45238
+ /** @description Trigger not found */
45239
+ 404: {
45240
+ headers: {
45241
+ [name: string]: unknown;
45242
+ };
45243
+ content?: never;
45244
+ };
45245
+ /** @description Validation error */
44017
45246
  422: {
44018
45247
  headers: {
44019
45248
  [name: string]: unknown;
44020
45249
  };
44021
- content: {
44022
- "application/json": components["schemas"]["HTTPValidationError"];
45250
+ content?: never;
45251
+ };
45252
+ /** @description Rate limited */
45253
+ 429: {
45254
+ headers: {
45255
+ [name: string]: unknown;
44023
45256
  };
45257
+ content?: never;
44024
45258
  };
44025
45259
  };
44026
45260
  };
44027
- list_trigger_runs_v1__workspace_id__triggers__trigger_id__runs_get: {
45261
+ "list-trigger-runs": {
44028
45262
  parameters: {
44029
45263
  query?: {
44030
45264
  limit?: number;
@@ -44057,6 +45291,13 @@ export interface operations {
44057
45291
  "application/json": components["schemas"]["HTTPValidationError"];
44058
45292
  };
44059
45293
  };
45294
+ /** @description Rate limited */
45295
+ 429: {
45296
+ headers: {
45297
+ [name: string]: unknown;
45298
+ };
45299
+ content?: never;
45300
+ };
44060
45301
  };
44061
45302
  };
44062
45303
  "search-available-phone-numbers": {
@@ -44974,7 +46215,7 @@ export interface operations {
44974
46215
  };
44975
46216
  };
44976
46217
  };
44977
- list_webhook_destinations_v1__workspace_id__webhook_destinations_get: {
46218
+ "list-webhook-destinations": {
44978
46219
  parameters: {
44979
46220
  query?: {
44980
46221
  limit?: number;
@@ -45006,9 +46247,16 @@ export interface operations {
45006
46247
  "application/json": components["schemas"]["HTTPValidationError"];
45007
46248
  };
45008
46249
  };
46250
+ /** @description Rate limited */
46251
+ 429: {
46252
+ headers: {
46253
+ [name: string]: unknown;
46254
+ };
46255
+ content?: never;
46256
+ };
45009
46257
  };
45010
46258
  };
45011
- create_webhook_destination_v1__workspace_id__webhook_destinations_post: {
46259
+ "create-webhook-destination": {
45012
46260
  parameters: {
45013
46261
  query?: never;
45014
46262
  header?: never;
@@ -45032,18 +46280,23 @@ export interface operations {
45032
46280
  "application/json": components["schemas"]["WebhookDestinationCreatedResponse"];
45033
46281
  };
45034
46282
  };
45035
- /** @description Validation Error */
46283
+ /** @description Validation error */
45036
46284
  422: {
45037
46285
  headers: {
45038
46286
  [name: string]: unknown;
45039
46287
  };
45040
- content: {
45041
- "application/json": components["schemas"]["HTTPValidationError"];
46288
+ content?: never;
46289
+ };
46290
+ /** @description Rate limited */
46291
+ 429: {
46292
+ headers: {
46293
+ [name: string]: unknown;
45042
46294
  };
46295
+ content?: never;
45043
46296
  };
45044
46297
  };
45045
46298
  };
45046
- get_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__get: {
46299
+ "get-webhook-destination": {
45047
46300
  parameters: {
45048
46301
  query?: never;
45049
46302
  header?: never;
@@ -45064,6 +46317,13 @@ export interface operations {
45064
46317
  "application/json": components["schemas"]["WebhookDestinationResponse"];
45065
46318
  };
45066
46319
  };
46320
+ /** @description Webhook destination not found */
46321
+ 404: {
46322
+ headers: {
46323
+ [name: string]: unknown;
46324
+ };
46325
+ content?: never;
46326
+ };
45067
46327
  /** @description Validation Error */
45068
46328
  422: {
45069
46329
  headers: {
@@ -45073,9 +46333,16 @@ export interface operations {
45073
46333
  "application/json": components["schemas"]["HTTPValidationError"];
45074
46334
  };
45075
46335
  };
46336
+ /** @description Rate limited */
46337
+ 429: {
46338
+ headers: {
46339
+ [name: string]: unknown;
46340
+ };
46341
+ content?: never;
46342
+ };
45076
46343
  };
45077
46344
  };
45078
- update_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__put: {
46345
+ "update-webhook-destination": {
45079
46346
  parameters: {
45080
46347
  query?: never;
45081
46348
  header?: never;
@@ -45100,18 +46367,30 @@ export interface operations {
45100
46367
  "application/json": components["schemas"]["WebhookDestinationResponse"];
45101
46368
  };
45102
46369
  };
45103
- /** @description Validation Error */
46370
+ /** @description Webhook destination not found */
46371
+ 404: {
46372
+ headers: {
46373
+ [name: string]: unknown;
46374
+ };
46375
+ content?: never;
46376
+ };
46377
+ /** @description Validation error */
45104
46378
  422: {
45105
46379
  headers: {
45106
46380
  [name: string]: unknown;
45107
46381
  };
45108
- content: {
45109
- "application/json": components["schemas"]["HTTPValidationError"];
46382
+ content?: never;
46383
+ };
46384
+ /** @description Rate limited */
46385
+ 429: {
46386
+ headers: {
46387
+ [name: string]: unknown;
45110
46388
  };
46389
+ content?: never;
45111
46390
  };
45112
46391
  };
45113
46392
  };
45114
- delete_webhook_destination_v1__workspace_id__webhook_destinations__destination_id__delete: {
46393
+ "delete-webhook-destination": {
45115
46394
  parameters: {
45116
46395
  query?: never;
45117
46396
  header?: never;
@@ -45139,9 +46418,16 @@ export interface operations {
45139
46418
  "application/json": components["schemas"]["HTTPValidationError"];
45140
46419
  };
45141
46420
  };
46421
+ /** @description Rate limited */
46422
+ 429: {
46423
+ headers: {
46424
+ [name: string]: unknown;
46425
+ };
46426
+ content?: never;
46427
+ };
45142
46428
  };
45143
46429
  };
45144
- list_deliveries_v1__workspace_id__webhook_destinations__destination_id__deliveries_get: {
46430
+ "list-webhook-destination-deliveries": {
45145
46431
  parameters: {
45146
46432
  query?: {
45147
46433
  limit?: number;
@@ -45174,9 +46460,16 @@ export interface operations {
45174
46460
  "application/json": components["schemas"]["HTTPValidationError"];
45175
46461
  };
45176
46462
  };
46463
+ /** @description Rate limited */
46464
+ 429: {
46465
+ headers: {
46466
+ [name: string]: unknown;
46467
+ };
46468
+ content?: never;
46469
+ };
45177
46470
  };
45178
46471
  };
45179
- rotate_secret_v1__workspace_id__webhook_destinations__destination_id__rotate_secret_post: {
46472
+ "rotate-webhook-destination-secret": {
45180
46473
  parameters: {
45181
46474
  query?: never;
45182
46475
  header?: never;
@@ -45197,14 +46490,26 @@ export interface operations {
45197
46490
  "application/json": components["schemas"]["RotateSecretResponse"];
45198
46491
  };
45199
46492
  };
45200
- /** @description Validation Error */
46493
+ /** @description Webhook destination not found */
46494
+ 404: {
46495
+ headers: {
46496
+ [name: string]: unknown;
46497
+ };
46498
+ content?: never;
46499
+ };
46500
+ /** @description Validation error */
45201
46501
  422: {
45202
46502
  headers: {
45203
46503
  [name: string]: unknown;
45204
46504
  };
45205
- content: {
45206
- "application/json": components["schemas"]["HTTPValidationError"];
46505
+ content?: never;
46506
+ };
46507
+ /** @description Rate limited */
46508
+ 429: {
46509
+ headers: {
46510
+ [name: string]: unknown;
45207
46511
  };
46512
+ content?: never;
45208
46513
  };
45209
46514
  };
45210
46515
  };
@@ -45634,6 +46939,55 @@ export interface operations {
45634
46939
  };
45635
46940
  };
45636
46941
  };
46942
+ "resolve-entity": {
46943
+ parameters: {
46944
+ query?: never;
46945
+ header?: never;
46946
+ path: {
46947
+ workspace_id: string;
46948
+ };
46949
+ cookie?: never;
46950
+ };
46951
+ requestBody: {
46952
+ content: {
46953
+ "application/json": components["schemas"]["EntityResolveRequest"];
46954
+ };
46955
+ };
46956
+ responses: {
46957
+ /** @description Successful Response */
46958
+ 200: {
46959
+ headers: {
46960
+ [name: string]: unknown;
46961
+ };
46962
+ content: {
46963
+ "application/json": components["schemas"]["EntityResolveResponse"];
46964
+ };
46965
+ };
46966
+ /** @description No identifier provided or invalid input. */
46967
+ 400: {
46968
+ headers: {
46969
+ [name: string]: unknown;
46970
+ };
46971
+ content?: never;
46972
+ };
46973
+ /** @description Missing or invalid API key. */
46974
+ 401: {
46975
+ headers: {
46976
+ [name: string]: unknown;
46977
+ };
46978
+ content?: never;
46979
+ };
46980
+ /** @description Validation Error */
46981
+ 422: {
46982
+ headers: {
46983
+ [name: string]: unknown;
46984
+ };
46985
+ content: {
46986
+ "application/json": components["schemas"]["HTTPValidationError"];
46987
+ };
46988
+ };
46989
+ };
46990
+ };
45637
46991
  "get-entity": {
45638
46992
  parameters: {
45639
46993
  query?: never;