@vapi-ai/web 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -38435,6 +38435,314 @@ export interface KnowledgeBaseV2WithFiles {
38435
38435
  toolId: string | null;
38436
38436
  }
38437
38437
 
38438
+ export interface CallHealthDashboardApiErrorDTO {
38439
+ /** @minLength 1 */
38440
+ code: string;
38441
+ /** @minLength 1 */
38442
+ message: string;
38443
+ /** @minLength 1 */
38444
+ requestId: string;
38445
+ retryable: boolean;
38446
+ }
38447
+
38448
+ export interface CallHealthDashboardAssistantReferenceDTO {
38449
+ /** @format uuid */
38450
+ id: string;
38451
+ /** @minLength 1 */
38452
+ name?: string;
38453
+ /**
38454
+ * Current assistant.latest_version label; omitted when unavailable, never a goal revision.
38455
+ * @minLength 1
38456
+ */
38457
+ latestVersion?: string;
38458
+ }
38459
+
38460
+ export interface CallHealthDashboardIssueDailyDTO {
38461
+ /**
38462
+ * UTC calendar date, with boundary buckets clipped to the requested window.
38463
+ * @format date
38464
+ */
38465
+ date: string;
38466
+ /**
38467
+ * Distinct visible calls matching this issue in the bucket.
38468
+ * @min 0
38469
+ * @max 9007199254740991
38470
+ */
38471
+ affectedCallCount: number;
38472
+ /**
38473
+ * All accepted current-goal outcomes for the issue's assistant in the bucket.
38474
+ * @min 0
38475
+ * @max 9007199254740991
38476
+ */
38477
+ analyzedCallCount: number;
38478
+ /**
38479
+ * affectedCallCount / analyzedCallCount; omitted for a zero denominator.
38480
+ * @min 0
38481
+ * @max 1
38482
+ */
38483
+ affectedCallRate?: number;
38484
+ }
38485
+
38486
+ export interface CallHealthDashboardIssueCoverageDTO {
38487
+ state: "complete" | "partial" | "sweeping" | "blocked";
38488
+ /**
38489
+ * @format date-time
38490
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
38491
+ */
38492
+ asOf: string;
38493
+ }
38494
+
38495
+ export interface CallHealthDashboardIssueSummaryDTO {
38496
+ /** @format uuid */
38497
+ id: string;
38498
+ /** @minLength 1 */
38499
+ name: string;
38500
+ status: "active" | "resolved" | "dismissed";
38501
+ /**
38502
+ * @min 0
38503
+ * @max 9007199254740991
38504
+ */
38505
+ rowVersion: number;
38506
+ /**
38507
+ * Owning goal identity; issue-ID routes derive this selection from the issue.
38508
+ * @format uuid
38509
+ */
38510
+ goalId: string;
38511
+ /** @minLength 1 */
38512
+ summary: string;
38513
+ assistant: CallHealthDashboardAssistantReferenceDTO;
38514
+ /**
38515
+ * @min 0
38516
+ * @max 9007199254740991
38517
+ */
38518
+ affectedCallCount: number;
38519
+ /**
38520
+ * Same assistant/current-goal/window denominator used by the goal reads.
38521
+ * @min 0
38522
+ * @max 9007199254740991
38523
+ */
38524
+ analyzedCallCount: number;
38525
+ /**
38526
+ * Distinct calls matching this issue / analyzedCallCount; absent at zero.
38527
+ * @min 0
38528
+ * @max 1
38529
+ */
38530
+ affectedCallRate?: number;
38531
+ /**
38532
+ * One ascending contiguous page of UTC buckets; memberships across issues are not unique calls.
38533
+ * @maxItems 100
38534
+ * @minItems 1
38535
+ */
38536
+ dailySeries: CallHealthDashboardIssueDailyDTO[];
38537
+ /**
38538
+ * @format date-time
38539
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
38540
+ */
38541
+ lastSeenAt?: string;
38542
+ coverage: CallHealthDashboardIssueCoverageDTO;
38543
+ }
38544
+
38545
+ export interface CallHealthDashboardWindowDTO {
38546
+ /**
38547
+ * @format date-time
38548
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
38549
+ */
38550
+ callTimeGte: string;
38551
+ /**
38552
+ * @format date-time
38553
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
38554
+ */
38555
+ callTimeLt: string;
38556
+ }
38557
+
38558
+ export interface CallHealthDashboardSeriesPageDTO {
38559
+ /** Full resolved completion window used by every total, rate and coverage count. */
38560
+ window: CallHealthDashboardWindowDTO;
38561
+ /** Clipped completion window represented by this page's daily buckets. */
38562
+ pageWindow: CallHealthDashboardWindowDTO;
38563
+ /**
38564
+ * Continue chart dates only; independent of the issue-row nextCursor.
38565
+ * @minLength 1
38566
+ * @maxLength 2048
38567
+ * @pattern ^[A-Za-z0-9_-]+$
38568
+ */
38569
+ nextCursor?: string;
38570
+ }
38571
+
38572
+ export interface CallHealthDashboardFacetsDTO {
38573
+ statuses: ("active" | "resolved" | "dismissed")[];
38574
+ }
38575
+
38576
+ export interface CallHealthDashboardIntakeCoverageDTO {
38577
+ deliveryMode: "bestEffort";
38578
+ endToEndCoverage: "unknown";
38579
+ }
38580
+
38581
+ export interface CallHealthDashboardGoalGapsDTO {
38582
+ /**
38583
+ * @min 0
38584
+ * @max 9007199254740991
38585
+ */
38586
+ pending: number;
38587
+ /**
38588
+ * @min 0
38589
+ * @max 9007199254740991
38590
+ */
38591
+ unavailable: number;
38592
+ /**
38593
+ * @min 0
38594
+ * @max 9007199254740991
38595
+ */
38596
+ skipped: number;
38597
+ /**
38598
+ * @min 0
38599
+ * @max 9007199254740991
38600
+ */
38601
+ error: number;
38602
+ /**
38603
+ * @min 0
38604
+ * @max 9007199254740991
38605
+ */
38606
+ excluded: number;
38607
+ }
38608
+
38609
+ export interface CallHealthDashboardClassificationCoverageDTO {
38610
+ /**
38611
+ * @min 0
38612
+ * @max 9007199254740991
38613
+ */
38614
+ pending: number;
38615
+ /**
38616
+ * @min 0
38617
+ * @max 9007199254740991
38618
+ */
38619
+ unavailable: number;
38620
+ /**
38621
+ * @min 0
38622
+ * @max 9007199254740991
38623
+ */
38624
+ skipped: number;
38625
+ /**
38626
+ * @min 0
38627
+ * @max 9007199254740991
38628
+ */
38629
+ error: number;
38630
+ /**
38631
+ * @min 0
38632
+ * @max 9007199254740991
38633
+ */
38634
+ excluded: number;
38635
+ /**
38636
+ * @min 0
38637
+ * @max 9007199254740991
38638
+ */
38639
+ complete: number;
38640
+ /**
38641
+ * @min 0
38642
+ * @max 9007199254740991
38643
+ */
38644
+ partial: number;
38645
+ }
38646
+
38647
+ export interface CallHealthDashboardAssignmentCoverageDTO {
38648
+ /**
38649
+ * @min 0
38650
+ * @max 9007199254740991
38651
+ */
38652
+ pending: number;
38653
+ /**
38654
+ * @min 0
38655
+ * @max 9007199254740991
38656
+ */
38657
+ unmatched: number;
38658
+ /**
38659
+ * @min 0
38660
+ * @max 9007199254740991
38661
+ */
38662
+ skipped: number;
38663
+ /**
38664
+ * @min 0
38665
+ * @max 9007199254740991
38666
+ */
38667
+ unavailable: number;
38668
+ /**
38669
+ * @min 0
38670
+ * @max 9007199254740991
38671
+ */
38672
+ error: number;
38673
+ /**
38674
+ * @min 0
38675
+ * @max 9007199254740991
38676
+ */
38677
+ coverageGapCount: number;
38678
+ }
38679
+
38680
+ export interface CallHealthDashboardDiscoveryCoverageDTO {
38681
+ /**
38682
+ * @min 0
38683
+ * @max 9007199254740991
38684
+ */
38685
+ pendingIssueCategoryCount: number;
38686
+ /**
38687
+ * @min 0
38688
+ * @max 9007199254740991
38689
+ */
38690
+ blockedIssueCategoryCount: number;
38691
+ }
38692
+
38693
+ export interface CallHealthDashboardSweepCoverageDTO {
38694
+ state: "idle" | "enumerating" | "processing" | "deduplicating" | "blocked";
38695
+ }
38696
+
38697
+ export interface CallHealthDashboardCoverageDTO {
38698
+ /**
38699
+ * @format date-time
38700
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
38701
+ */
38702
+ asOf: string;
38703
+ intake: CallHealthDashboardIntakeCoverageDTO;
38704
+ goal: CallHealthDashboardGoalGapsDTO;
38705
+ classification: CallHealthDashboardClassificationCoverageDTO;
38706
+ assignment: CallHealthDashboardAssignmentCoverageDTO;
38707
+ discovery: CallHealthDashboardDiscoveryCoverageDTO;
38708
+ sweep: CallHealthDashboardSweepCoverageDTO;
38709
+ /** Completeness of received authorized work only; never source delivery coverage. */
38710
+ countsComplete: boolean;
38711
+ }
38712
+
38713
+ export interface CallHealthDashboardIssueListResponseDTO {
38714
+ results: CallHealthDashboardIssueSummaryDTO[];
38715
+ /** Every row's dailySeries represents this same date page. */
38716
+ seriesPage: CallHealthDashboardSeriesPageDTO;
38717
+ facets: CallHealthDashboardFacetsDTO;
38718
+ /**
38719
+ * @minLength 1
38720
+ * @maxLength 2048
38721
+ * @pattern ^[A-Za-z0-9_-]+$
38722
+ */
38723
+ nextCursor?: string;
38724
+ coverage: CallHealthDashboardCoverageDTO;
38725
+ }
38726
+
38727
+ export interface CallHealthDashboardIssueDefinitionDTO {
38728
+ /** @minLength 1 */
38729
+ applicability: string | null;
38730
+ /** @minLength 1 */
38731
+ problem: string | null;
38732
+ /**
38733
+ * @min 1
38734
+ * @max 9007199254740991
38735
+ */
38736
+ createdTaxonomyVersion: number | null;
38737
+ }
38738
+
38739
+ export interface CallHealthDashboardIssueDetailResponseDTO {
38740
+ issue: CallHealthDashboardIssueSummaryDTO;
38741
+ seriesPage: CallHealthDashboardSeriesPageDTO;
38742
+ definition: CallHealthDashboardIssueDefinitionDTO;
38743
+ coverage: CallHealthDashboardCoverageDTO;
38744
+ }
38745
+
38438
38746
  export interface StructuredOutputRunResult {
38439
38747
  /** This is the name of the structured output that produced this value. */
38440
38748
  name: string;
@@ -39982,7 +40290,7 @@ export interface SimulationRunItemResults {
39982
40290
  string,
39983
40291
  {
39984
40292
  name: string;
39985
- result: any;
40293
+ result: any | null;
39986
40294
  }
39987
40295
  >;
39988
40296
  /** Condition-gated outputs or audio outputs unsupported by chat. */
@@ -42859,8 +43167,15 @@ export interface EvalAnthropicModel {
42859
43167
  | "claude-sonnet-5"
42860
43168
  | "claude-haiku-4-5-20251001"
42861
43169
  | "claude-haiku-5-5";
43170
+ /**
43171
+ * Reasoning effort for the judge on claude-haiku-5-5. `none` turns thinking
43172
+ * off. `low` to `max` let the judge think before it submits its verdict.
43173
+ * Unset means `none`. Rejected for every other model.
43174
+ */
43175
+ reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | "max";
42862
43176
  /**
42863
43177
  * This is the optional configuration for Anthropic's thinking feature.
43178
+ * claude-haiku-5-5 uses `reasoningEffort` instead.
42864
43179
  *
42865
43180
  * - If provided, `maxTokens` must be greater than `thinking.budgetTokens`.
42866
43181
  */
@@ -43564,7 +43879,7 @@ export interface GoalEvaluationCurrentDTO {
43564
43879
  | "excluded"
43565
43880
  | "completed";
43566
43881
  /** Absent until a semantic result is accepted. Processing failures are never goal_not_met. */
43567
- goalOutcome?: "goal_met" | "goal_not_met" | "ineligible";
43882
+ goalOutcome?: "goal_met" | "goal_not_met" | "not_applicable";
43568
43883
  }
43569
43884
 
43570
43885
  export interface GoalEvaluationCurrentCallResponseDTO {
@@ -58576,6 +58891,131 @@ export class Api<
58576
58891
  ...params,
58577
58892
  }),
58578
58893
  };
58894
+ callHealth = {
58895
+ /**
58896
+ * No description
58897
+ *
58898
+ * @tags Call Health
58899
+ * @name CallHealthDashboardIssueReadControllerListGet
58900
+ * @summary List one assistant’s issue aggregates in ascending ID transport pages
58901
+ * @request GET:/call-health/assistant/{id}/issue
58902
+ * @secure
58903
+ */
58904
+ callHealthDashboardIssueReadControllerListGet: (
58905
+ id: string,
58906
+ query: {
58907
+ /**
58908
+ * Inclusive endedAt bound; timezone and at most six fractional digits required. Without this bound, use seven elapsed days before callTimeLt or now. Explicit bounds have no maximum span.
58909
+ * @format date-time
58910
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
58911
+ */
58912
+ callTimeGte?: string;
58913
+ /**
58914
+ * Exclusive endedAt bound; timezone and at most six fractional digits required. Without this bound, use seven elapsed days after callTimeGte or now if both bounds are absent.
58915
+ * @format date-time
58916
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
58917
+ */
58918
+ callTimeLt?: string;
58919
+ /**
58920
+ * Continue daily buckets within the original full metric window.
58921
+ * @minLength 1
58922
+ * @maxLength 2048
58923
+ * @pattern ^[A-Za-z0-9_-]+$
58924
+ */
58925
+ seriesCursor?: string;
58926
+ /**
58927
+ * Maximum UTC daily buckets in this response; totals still cover the full selected window.
58928
+ * @min 1
58929
+ * @max 100
58930
+ * @default 31
58931
+ */
58932
+ seriesLimit?: number;
58933
+ /**
58934
+ * Required selected goal belonging to the path assistant.
58935
+ * @format uuid
58936
+ */
58937
+ goalId: string;
58938
+ /**
58939
+ * @minLength 1
58940
+ * @maxLength 2048
58941
+ * @pattern ^[A-Za-z0-9_-]+$
58942
+ */
58943
+ cursor?: string;
58944
+ /**
58945
+ * @min 1
58946
+ * @max 100
58947
+ * @default 20
58948
+ */
58949
+ limit?: number;
58950
+ status?: "active" | "resolved" | "dismissed";
58951
+ },
58952
+ params: RequestParams = {},
58953
+ ) =>
58954
+ this.request<
58955
+ CallHealthDashboardIssueListResponseDTO,
58956
+ CallHealthDashboardApiErrorDTO
58957
+ >({
58958
+ path: `/call-health/assistant/${id}/issue`,
58959
+ method: "GET",
58960
+ query: query,
58961
+ secure: true,
58962
+ format: "json",
58963
+ ...params,
58964
+ }),
58965
+
58966
+ /**
58967
+ * No description
58968
+ *
58969
+ * @tags Call Health
58970
+ * @name CallHealthDashboardIssueReadControllerDetailGet
58971
+ * @summary Get full-window issue impact and a bounded daily chart page
58972
+ * @request GET:/call-health/issue/{id}
58973
+ * @secure
58974
+ */
58975
+ callHealthDashboardIssueReadControllerDetailGet: (
58976
+ id: string,
58977
+ query?: {
58978
+ /**
58979
+ * Inclusive endedAt bound; timezone and at most six fractional digits required. Without this bound, use seven elapsed days before callTimeLt or now. Explicit bounds have no maximum span.
58980
+ * @format date-time
58981
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
58982
+ */
58983
+ callTimeGte?: string;
58984
+ /**
58985
+ * Exclusive endedAt bound; timezone and at most six fractional digits required. Without this bound, use seven elapsed days after callTimeGte or now if both bounds are absent.
58986
+ * @format date-time
58987
+ * @pattern ^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.(\d{1,6}))?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
58988
+ */
58989
+ callTimeLt?: string;
58990
+ /**
58991
+ * Continue daily buckets within the original full metric window.
58992
+ * @minLength 1
58993
+ * @maxLength 2048
58994
+ * @pattern ^[A-Za-z0-9_-]+$
58995
+ */
58996
+ seriesCursor?: string;
58997
+ /**
58998
+ * Maximum UTC daily buckets in this response; totals still cover the full selected window.
58999
+ * @min 1
59000
+ * @max 100
59001
+ * @default 31
59002
+ */
59003
+ seriesLimit?: number;
59004
+ },
59005
+ params: RequestParams = {},
59006
+ ) =>
59007
+ this.request<
59008
+ CallHealthDashboardIssueDetailResponseDTO,
59009
+ CallHealthDashboardApiErrorDTO
59010
+ >({
59011
+ path: `/call-health/issue/${id}`,
59012
+ method: "GET",
59013
+ query: query,
59014
+ secure: true,
59015
+ format: "json",
59016
+ ...params,
59017
+ }),
59018
+ };
58579
59019
  structuredOutput = {
58580
59020
  /**
58581
59021
  * No description
@@ -58766,7 +59206,9 @@ export class Api<
58766
59206
  params: RequestParams = {},
58767
59207
  ) =>
58768
59208
  this.request<
58769
- StructuredOutputRunPreviewResponse | StructuredOutputRerunResponse,
59209
+ | (StructuredOutputRunPreviewResponse &
59210
+ Record<string, StructuredOutputRunResult>)
59211
+ | StructuredOutputRerunResponse,
58770
59212
  any
58771
59213
  >({
58772
59214
  path: `/structured-output/run`,