@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 +445 -3
- package/dist/api.d.ts +394 -3
- package/dist/api.js +36 -0
- package/dist/vapi.d.ts +23 -2
- package/dist/vapi.js +111 -92
- package/package.json +1 -1
- package/vapi.ts +141 -102
package/dist/api.d.ts
CHANGED
|
@@ -27532,6 +27532,296 @@ export interface KnowledgeBaseV2WithFiles {
|
|
|
27532
27532
|
/** Id of the tool that searches this knowledge base (at most one per base; provisioned on creation). Attach it to an assistant via model.toolIds. Null when the base has no search tool yet. */
|
|
27533
27533
|
toolId: string | null;
|
|
27534
27534
|
}
|
|
27535
|
+
export interface CallHealthDashboardApiErrorDTO {
|
|
27536
|
+
/** @minLength 1 */
|
|
27537
|
+
code: string;
|
|
27538
|
+
/** @minLength 1 */
|
|
27539
|
+
message: string;
|
|
27540
|
+
/** @minLength 1 */
|
|
27541
|
+
requestId: string;
|
|
27542
|
+
retryable: boolean;
|
|
27543
|
+
}
|
|
27544
|
+
export interface CallHealthDashboardAssistantReferenceDTO {
|
|
27545
|
+
/** @format uuid */
|
|
27546
|
+
id: string;
|
|
27547
|
+
/** @minLength 1 */
|
|
27548
|
+
name?: string;
|
|
27549
|
+
/**
|
|
27550
|
+
* Current assistant.latest_version label; omitted when unavailable, never a goal revision.
|
|
27551
|
+
* @minLength 1
|
|
27552
|
+
*/
|
|
27553
|
+
latestVersion?: string;
|
|
27554
|
+
}
|
|
27555
|
+
export interface CallHealthDashboardIssueDailyDTO {
|
|
27556
|
+
/**
|
|
27557
|
+
* UTC calendar date, with boundary buckets clipped to the requested window.
|
|
27558
|
+
* @format date
|
|
27559
|
+
*/
|
|
27560
|
+
date: string;
|
|
27561
|
+
/**
|
|
27562
|
+
* Distinct visible calls matching this issue in the bucket.
|
|
27563
|
+
* @min 0
|
|
27564
|
+
* @max 9007199254740991
|
|
27565
|
+
*/
|
|
27566
|
+
affectedCallCount: number;
|
|
27567
|
+
/**
|
|
27568
|
+
* All accepted current-goal outcomes for the issue's assistant in the bucket.
|
|
27569
|
+
* @min 0
|
|
27570
|
+
* @max 9007199254740991
|
|
27571
|
+
*/
|
|
27572
|
+
analyzedCallCount: number;
|
|
27573
|
+
/**
|
|
27574
|
+
* affectedCallCount / analyzedCallCount; omitted for a zero denominator.
|
|
27575
|
+
* @min 0
|
|
27576
|
+
* @max 1
|
|
27577
|
+
*/
|
|
27578
|
+
affectedCallRate?: number;
|
|
27579
|
+
}
|
|
27580
|
+
export interface CallHealthDashboardIssueCoverageDTO {
|
|
27581
|
+
state: "complete" | "partial" | "sweeping" | "blocked";
|
|
27582
|
+
/**
|
|
27583
|
+
* @format date-time
|
|
27584
|
+
* @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)$
|
|
27585
|
+
*/
|
|
27586
|
+
asOf: string;
|
|
27587
|
+
}
|
|
27588
|
+
export interface CallHealthDashboardIssueSummaryDTO {
|
|
27589
|
+
/** @format uuid */
|
|
27590
|
+
id: string;
|
|
27591
|
+
/** @minLength 1 */
|
|
27592
|
+
name: string;
|
|
27593
|
+
status: "active" | "resolved" | "dismissed";
|
|
27594
|
+
/**
|
|
27595
|
+
* @min 0
|
|
27596
|
+
* @max 9007199254740991
|
|
27597
|
+
*/
|
|
27598
|
+
rowVersion: number;
|
|
27599
|
+
/**
|
|
27600
|
+
* Owning goal identity; issue-ID routes derive this selection from the issue.
|
|
27601
|
+
* @format uuid
|
|
27602
|
+
*/
|
|
27603
|
+
goalId: string;
|
|
27604
|
+
/** @minLength 1 */
|
|
27605
|
+
summary: string;
|
|
27606
|
+
assistant: CallHealthDashboardAssistantReferenceDTO;
|
|
27607
|
+
/**
|
|
27608
|
+
* @min 0
|
|
27609
|
+
* @max 9007199254740991
|
|
27610
|
+
*/
|
|
27611
|
+
affectedCallCount: number;
|
|
27612
|
+
/**
|
|
27613
|
+
* Same assistant/current-goal/window denominator used by the goal reads.
|
|
27614
|
+
* @min 0
|
|
27615
|
+
* @max 9007199254740991
|
|
27616
|
+
*/
|
|
27617
|
+
analyzedCallCount: number;
|
|
27618
|
+
/**
|
|
27619
|
+
* Distinct calls matching this issue / analyzedCallCount; absent at zero.
|
|
27620
|
+
* @min 0
|
|
27621
|
+
* @max 1
|
|
27622
|
+
*/
|
|
27623
|
+
affectedCallRate?: number;
|
|
27624
|
+
/**
|
|
27625
|
+
* One ascending contiguous page of UTC buckets; memberships across issues are not unique calls.
|
|
27626
|
+
* @maxItems 100
|
|
27627
|
+
* @minItems 1
|
|
27628
|
+
*/
|
|
27629
|
+
dailySeries: CallHealthDashboardIssueDailyDTO[];
|
|
27630
|
+
/**
|
|
27631
|
+
* @format date-time
|
|
27632
|
+
* @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)$
|
|
27633
|
+
*/
|
|
27634
|
+
lastSeenAt?: string;
|
|
27635
|
+
coverage: CallHealthDashboardIssueCoverageDTO;
|
|
27636
|
+
}
|
|
27637
|
+
export interface CallHealthDashboardWindowDTO {
|
|
27638
|
+
/**
|
|
27639
|
+
* @format date-time
|
|
27640
|
+
* @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)$
|
|
27641
|
+
*/
|
|
27642
|
+
callTimeGte: string;
|
|
27643
|
+
/**
|
|
27644
|
+
* @format date-time
|
|
27645
|
+
* @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)$
|
|
27646
|
+
*/
|
|
27647
|
+
callTimeLt: string;
|
|
27648
|
+
}
|
|
27649
|
+
export interface CallHealthDashboardSeriesPageDTO {
|
|
27650
|
+
/** Full resolved completion window used by every total, rate and coverage count. */
|
|
27651
|
+
window: CallHealthDashboardWindowDTO;
|
|
27652
|
+
/** Clipped completion window represented by this page's daily buckets. */
|
|
27653
|
+
pageWindow: CallHealthDashboardWindowDTO;
|
|
27654
|
+
/**
|
|
27655
|
+
* Continue chart dates only; independent of the issue-row nextCursor.
|
|
27656
|
+
* @minLength 1
|
|
27657
|
+
* @maxLength 2048
|
|
27658
|
+
* @pattern ^[A-Za-z0-9_-]+$
|
|
27659
|
+
*/
|
|
27660
|
+
nextCursor?: string;
|
|
27661
|
+
}
|
|
27662
|
+
export interface CallHealthDashboardFacetsDTO {
|
|
27663
|
+
statuses: ("active" | "resolved" | "dismissed")[];
|
|
27664
|
+
}
|
|
27665
|
+
export interface CallHealthDashboardIntakeCoverageDTO {
|
|
27666
|
+
deliveryMode: "bestEffort";
|
|
27667
|
+
endToEndCoverage: "unknown";
|
|
27668
|
+
}
|
|
27669
|
+
export interface CallHealthDashboardGoalGapsDTO {
|
|
27670
|
+
/**
|
|
27671
|
+
* @min 0
|
|
27672
|
+
* @max 9007199254740991
|
|
27673
|
+
*/
|
|
27674
|
+
pending: number;
|
|
27675
|
+
/**
|
|
27676
|
+
* @min 0
|
|
27677
|
+
* @max 9007199254740991
|
|
27678
|
+
*/
|
|
27679
|
+
unavailable: number;
|
|
27680
|
+
/**
|
|
27681
|
+
* @min 0
|
|
27682
|
+
* @max 9007199254740991
|
|
27683
|
+
*/
|
|
27684
|
+
skipped: number;
|
|
27685
|
+
/**
|
|
27686
|
+
* @min 0
|
|
27687
|
+
* @max 9007199254740991
|
|
27688
|
+
*/
|
|
27689
|
+
error: number;
|
|
27690
|
+
/**
|
|
27691
|
+
* @min 0
|
|
27692
|
+
* @max 9007199254740991
|
|
27693
|
+
*/
|
|
27694
|
+
excluded: number;
|
|
27695
|
+
}
|
|
27696
|
+
export interface CallHealthDashboardClassificationCoverageDTO {
|
|
27697
|
+
/**
|
|
27698
|
+
* @min 0
|
|
27699
|
+
* @max 9007199254740991
|
|
27700
|
+
*/
|
|
27701
|
+
pending: number;
|
|
27702
|
+
/**
|
|
27703
|
+
* @min 0
|
|
27704
|
+
* @max 9007199254740991
|
|
27705
|
+
*/
|
|
27706
|
+
unavailable: number;
|
|
27707
|
+
/**
|
|
27708
|
+
* @min 0
|
|
27709
|
+
* @max 9007199254740991
|
|
27710
|
+
*/
|
|
27711
|
+
skipped: number;
|
|
27712
|
+
/**
|
|
27713
|
+
* @min 0
|
|
27714
|
+
* @max 9007199254740991
|
|
27715
|
+
*/
|
|
27716
|
+
error: number;
|
|
27717
|
+
/**
|
|
27718
|
+
* @min 0
|
|
27719
|
+
* @max 9007199254740991
|
|
27720
|
+
*/
|
|
27721
|
+
excluded: number;
|
|
27722
|
+
/**
|
|
27723
|
+
* @min 0
|
|
27724
|
+
* @max 9007199254740991
|
|
27725
|
+
*/
|
|
27726
|
+
complete: number;
|
|
27727
|
+
/**
|
|
27728
|
+
* @min 0
|
|
27729
|
+
* @max 9007199254740991
|
|
27730
|
+
*/
|
|
27731
|
+
partial: number;
|
|
27732
|
+
}
|
|
27733
|
+
export interface CallHealthDashboardAssignmentCoverageDTO {
|
|
27734
|
+
/**
|
|
27735
|
+
* @min 0
|
|
27736
|
+
* @max 9007199254740991
|
|
27737
|
+
*/
|
|
27738
|
+
pending: number;
|
|
27739
|
+
/**
|
|
27740
|
+
* @min 0
|
|
27741
|
+
* @max 9007199254740991
|
|
27742
|
+
*/
|
|
27743
|
+
unmatched: number;
|
|
27744
|
+
/**
|
|
27745
|
+
* @min 0
|
|
27746
|
+
* @max 9007199254740991
|
|
27747
|
+
*/
|
|
27748
|
+
skipped: number;
|
|
27749
|
+
/**
|
|
27750
|
+
* @min 0
|
|
27751
|
+
* @max 9007199254740991
|
|
27752
|
+
*/
|
|
27753
|
+
unavailable: number;
|
|
27754
|
+
/**
|
|
27755
|
+
* @min 0
|
|
27756
|
+
* @max 9007199254740991
|
|
27757
|
+
*/
|
|
27758
|
+
error: number;
|
|
27759
|
+
/**
|
|
27760
|
+
* @min 0
|
|
27761
|
+
* @max 9007199254740991
|
|
27762
|
+
*/
|
|
27763
|
+
coverageGapCount: number;
|
|
27764
|
+
}
|
|
27765
|
+
export interface CallHealthDashboardDiscoveryCoverageDTO {
|
|
27766
|
+
/**
|
|
27767
|
+
* @min 0
|
|
27768
|
+
* @max 9007199254740991
|
|
27769
|
+
*/
|
|
27770
|
+
pendingIssueCategoryCount: number;
|
|
27771
|
+
/**
|
|
27772
|
+
* @min 0
|
|
27773
|
+
* @max 9007199254740991
|
|
27774
|
+
*/
|
|
27775
|
+
blockedIssueCategoryCount: number;
|
|
27776
|
+
}
|
|
27777
|
+
export interface CallHealthDashboardSweepCoverageDTO {
|
|
27778
|
+
state: "idle" | "enumerating" | "processing" | "deduplicating" | "blocked";
|
|
27779
|
+
}
|
|
27780
|
+
export interface CallHealthDashboardCoverageDTO {
|
|
27781
|
+
/**
|
|
27782
|
+
* @format date-time
|
|
27783
|
+
* @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)$
|
|
27784
|
+
*/
|
|
27785
|
+
asOf: string;
|
|
27786
|
+
intake: CallHealthDashboardIntakeCoverageDTO;
|
|
27787
|
+
goal: CallHealthDashboardGoalGapsDTO;
|
|
27788
|
+
classification: CallHealthDashboardClassificationCoverageDTO;
|
|
27789
|
+
assignment: CallHealthDashboardAssignmentCoverageDTO;
|
|
27790
|
+
discovery: CallHealthDashboardDiscoveryCoverageDTO;
|
|
27791
|
+
sweep: CallHealthDashboardSweepCoverageDTO;
|
|
27792
|
+
/** Completeness of received authorized work only; never source delivery coverage. */
|
|
27793
|
+
countsComplete: boolean;
|
|
27794
|
+
}
|
|
27795
|
+
export interface CallHealthDashboardIssueListResponseDTO {
|
|
27796
|
+
results: CallHealthDashboardIssueSummaryDTO[];
|
|
27797
|
+
/** Every row's dailySeries represents this same date page. */
|
|
27798
|
+
seriesPage: CallHealthDashboardSeriesPageDTO;
|
|
27799
|
+
facets: CallHealthDashboardFacetsDTO;
|
|
27800
|
+
/**
|
|
27801
|
+
* @minLength 1
|
|
27802
|
+
* @maxLength 2048
|
|
27803
|
+
* @pattern ^[A-Za-z0-9_-]+$
|
|
27804
|
+
*/
|
|
27805
|
+
nextCursor?: string;
|
|
27806
|
+
coverage: CallHealthDashboardCoverageDTO;
|
|
27807
|
+
}
|
|
27808
|
+
export interface CallHealthDashboardIssueDefinitionDTO {
|
|
27809
|
+
/** @minLength 1 */
|
|
27810
|
+
applicability: string | null;
|
|
27811
|
+
/** @minLength 1 */
|
|
27812
|
+
problem: string | null;
|
|
27813
|
+
/**
|
|
27814
|
+
* @min 1
|
|
27815
|
+
* @max 9007199254740991
|
|
27816
|
+
*/
|
|
27817
|
+
createdTaxonomyVersion: number | null;
|
|
27818
|
+
}
|
|
27819
|
+
export interface CallHealthDashboardIssueDetailResponseDTO {
|
|
27820
|
+
issue: CallHealthDashboardIssueSummaryDTO;
|
|
27821
|
+
seriesPage: CallHealthDashboardSeriesPageDTO;
|
|
27822
|
+
definition: CallHealthDashboardIssueDefinitionDTO;
|
|
27823
|
+
coverage: CallHealthDashboardCoverageDTO;
|
|
27824
|
+
}
|
|
27535
27825
|
export interface StructuredOutputRunResult {
|
|
27536
27826
|
/** This is the name of the structured output that produced this value. */
|
|
27537
27827
|
name: string;
|
|
@@ -28991,7 +29281,7 @@ export interface SimulationRunItemResults {
|
|
|
28991
29281
|
/** Retention-permitted target extraction values, present only when enabled. */
|
|
28992
29282
|
structuredOutputs?: Record<string, {
|
|
28993
29283
|
name: string;
|
|
28994
|
-
result: any;
|
|
29284
|
+
result: any | null;
|
|
28995
29285
|
}>;
|
|
28996
29286
|
/** Condition-gated outputs or audio outputs unsupported by chat. */
|
|
28997
29287
|
skippedStructuredOutputs?: Record<string, {
|
|
@@ -31201,8 +31491,15 @@ export interface EvalAnthropicModel {
|
|
|
31201
31491
|
* @maxLength 100
|
|
31202
31492
|
*/
|
|
31203
31493
|
model: "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-3-5-sonnet-20240620" | "claude-3-5-sonnet-20241022" | "claude-3-5-haiku-20241022" | "claude-3-7-sonnet-20250219" | "claude-opus-4-20250514" | "claude-opus-4-5-20251101" | "claude-opus-4-6" | "claude-sonnet-4-20250514" | "claude-sonnet-4-5-20250929" | "claude-sonnet-4-6" | "claude-sonnet-5" | "claude-haiku-4-5-20251001" | "claude-haiku-5-5";
|
|
31494
|
+
/**
|
|
31495
|
+
* Reasoning effort for the judge on claude-haiku-5-5. `none` turns thinking
|
|
31496
|
+
* off. `low` to `max` let the judge think before it submits its verdict.
|
|
31497
|
+
* Unset means `none`. Rejected for every other model.
|
|
31498
|
+
*/
|
|
31499
|
+
reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
31204
31500
|
/**
|
|
31205
31501
|
* This is the optional configuration for Anthropic's thinking feature.
|
|
31502
|
+
* claude-haiku-5-5 uses `reasoningEffort` instead.
|
|
31206
31503
|
*
|
|
31207
31504
|
* - If provided, `maxTokens` must be greater than `thinking.budgetTokens`.
|
|
31208
31505
|
*/
|
|
@@ -31826,7 +32123,7 @@ export interface GoalEvaluationCurrentDTO {
|
|
|
31826
32123
|
callEndedAt: string;
|
|
31827
32124
|
processingState: "pending" | "running" | "parked" | "unavailable" | "excluded" | "completed";
|
|
31828
32125
|
/** Absent until a semantic result is accepted. Processing failures are never goal_not_met. */
|
|
31829
|
-
goalOutcome?: "goal_met" | "goal_not_met" | "
|
|
32126
|
+
goalOutcome?: "goal_met" | "goal_not_met" | "not_applicable";
|
|
31830
32127
|
}
|
|
31831
32128
|
export interface GoalEvaluationCurrentCallResponseDTO {
|
|
31832
32129
|
/** @format uuid */
|
|
@@ -42412,6 +42709,100 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
42412
42709
|
provider: "custom-knowledge-base";
|
|
42413
42710
|
} & CustomKnowledgeBase, any>>;
|
|
42414
42711
|
};
|
|
42712
|
+
callHealth: {
|
|
42713
|
+
/**
|
|
42714
|
+
* No description
|
|
42715
|
+
*
|
|
42716
|
+
* @tags Call Health
|
|
42717
|
+
* @name CallHealthDashboardIssueReadControllerListGet
|
|
42718
|
+
* @summary List one assistant’s issue aggregates in ascending ID transport pages
|
|
42719
|
+
* @request GET:/call-health/assistant/{id}/issue
|
|
42720
|
+
* @secure
|
|
42721
|
+
*/
|
|
42722
|
+
callHealthDashboardIssueReadControllerListGet: (id: string, query: {
|
|
42723
|
+
/**
|
|
42724
|
+
* 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.
|
|
42725
|
+
* @format date-time
|
|
42726
|
+
* @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)$
|
|
42727
|
+
*/
|
|
42728
|
+
callTimeGte?: string;
|
|
42729
|
+
/**
|
|
42730
|
+
* 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.
|
|
42731
|
+
* @format date-time
|
|
42732
|
+
* @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)$
|
|
42733
|
+
*/
|
|
42734
|
+
callTimeLt?: string;
|
|
42735
|
+
/**
|
|
42736
|
+
* Continue daily buckets within the original full metric window.
|
|
42737
|
+
* @minLength 1
|
|
42738
|
+
* @maxLength 2048
|
|
42739
|
+
* @pattern ^[A-Za-z0-9_-]+$
|
|
42740
|
+
*/
|
|
42741
|
+
seriesCursor?: string;
|
|
42742
|
+
/**
|
|
42743
|
+
* Maximum UTC daily buckets in this response; totals still cover the full selected window.
|
|
42744
|
+
* @min 1
|
|
42745
|
+
* @max 100
|
|
42746
|
+
* @default 31
|
|
42747
|
+
*/
|
|
42748
|
+
seriesLimit?: number;
|
|
42749
|
+
/**
|
|
42750
|
+
* Required selected goal belonging to the path assistant.
|
|
42751
|
+
* @format uuid
|
|
42752
|
+
*/
|
|
42753
|
+
goalId: string;
|
|
42754
|
+
/**
|
|
42755
|
+
* @minLength 1
|
|
42756
|
+
* @maxLength 2048
|
|
42757
|
+
* @pattern ^[A-Za-z0-9_-]+$
|
|
42758
|
+
*/
|
|
42759
|
+
cursor?: string;
|
|
42760
|
+
/**
|
|
42761
|
+
* @min 1
|
|
42762
|
+
* @max 100
|
|
42763
|
+
* @default 20
|
|
42764
|
+
*/
|
|
42765
|
+
limit?: number;
|
|
42766
|
+
status?: "active" | "resolved" | "dismissed";
|
|
42767
|
+
}, params?: RequestParams) => Promise<HttpResponse<CallHealthDashboardIssueListResponseDTO, CallHealthDashboardApiErrorDTO>>;
|
|
42768
|
+
/**
|
|
42769
|
+
* No description
|
|
42770
|
+
*
|
|
42771
|
+
* @tags Call Health
|
|
42772
|
+
* @name CallHealthDashboardIssueReadControllerDetailGet
|
|
42773
|
+
* @summary Get full-window issue impact and a bounded daily chart page
|
|
42774
|
+
* @request GET:/call-health/issue/{id}
|
|
42775
|
+
* @secure
|
|
42776
|
+
*/
|
|
42777
|
+
callHealthDashboardIssueReadControllerDetailGet: (id: string, query?: {
|
|
42778
|
+
/**
|
|
42779
|
+
* 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.
|
|
42780
|
+
* @format date-time
|
|
42781
|
+
* @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)$
|
|
42782
|
+
*/
|
|
42783
|
+
callTimeGte?: string;
|
|
42784
|
+
/**
|
|
42785
|
+
* 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.
|
|
42786
|
+
* @format date-time
|
|
42787
|
+
* @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)$
|
|
42788
|
+
*/
|
|
42789
|
+
callTimeLt?: string;
|
|
42790
|
+
/**
|
|
42791
|
+
* Continue daily buckets within the original full metric window.
|
|
42792
|
+
* @minLength 1
|
|
42793
|
+
* @maxLength 2048
|
|
42794
|
+
* @pattern ^[A-Za-z0-9_-]+$
|
|
42795
|
+
*/
|
|
42796
|
+
seriesCursor?: string;
|
|
42797
|
+
/**
|
|
42798
|
+
* Maximum UTC daily buckets in this response; totals still cover the full selected window.
|
|
42799
|
+
* @min 1
|
|
42800
|
+
* @max 100
|
|
42801
|
+
* @default 31
|
|
42802
|
+
*/
|
|
42803
|
+
seriesLimit?: number;
|
|
42804
|
+
}, params?: RequestParams) => Promise<HttpResponse<CallHealthDashboardIssueDetailResponseDTO, CallHealthDashboardApiErrorDTO>>;
|
|
42805
|
+
};
|
|
42415
42806
|
structuredOutput: {
|
|
42416
42807
|
/**
|
|
42417
42808
|
* No description
|
|
@@ -42534,7 +42925,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
42534
42925
|
* @request POST:/structured-output/run
|
|
42535
42926
|
* @secure
|
|
42536
42927
|
*/
|
|
42537
|
-
structuredOutputControllerRun: (data: StructuredOutputRunDTO, params?: RequestParams) => Promise<HttpResponse<StructuredOutputRunPreviewResponse | StructuredOutputRerunResponse, any>>;
|
|
42928
|
+
structuredOutputControllerRun: (data: StructuredOutputRunDTO, params?: RequestParams) => Promise<HttpResponse<(StructuredOutputRunPreviewResponse & Record<string, StructuredOutputRunResult>) | StructuredOutputRerunResponse, any>>;
|
|
42538
42929
|
};
|
|
42539
42930
|
testSuite: {
|
|
42540
42931
|
/**
|
package/dist/api.js
CHANGED
|
@@ -2382,6 +2382,42 @@ class Api extends HttpClient {
|
|
|
2382
2382
|
...params,
|
|
2383
2383
|
}),
|
|
2384
2384
|
};
|
|
2385
|
+
callHealth = {
|
|
2386
|
+
/**
|
|
2387
|
+
* No description
|
|
2388
|
+
*
|
|
2389
|
+
* @tags Call Health
|
|
2390
|
+
* @name CallHealthDashboardIssueReadControllerListGet
|
|
2391
|
+
* @summary List one assistant’s issue aggregates in ascending ID transport pages
|
|
2392
|
+
* @request GET:/call-health/assistant/{id}/issue
|
|
2393
|
+
* @secure
|
|
2394
|
+
*/
|
|
2395
|
+
callHealthDashboardIssueReadControllerListGet: (id, query, params = {}) => this.request({
|
|
2396
|
+
path: `/call-health/assistant/${id}/issue`,
|
|
2397
|
+
method: "GET",
|
|
2398
|
+
query: query,
|
|
2399
|
+
secure: true,
|
|
2400
|
+
format: "json",
|
|
2401
|
+
...params,
|
|
2402
|
+
}),
|
|
2403
|
+
/**
|
|
2404
|
+
* No description
|
|
2405
|
+
*
|
|
2406
|
+
* @tags Call Health
|
|
2407
|
+
* @name CallHealthDashboardIssueReadControllerDetailGet
|
|
2408
|
+
* @summary Get full-window issue impact and a bounded daily chart page
|
|
2409
|
+
* @request GET:/call-health/issue/{id}
|
|
2410
|
+
* @secure
|
|
2411
|
+
*/
|
|
2412
|
+
callHealthDashboardIssueReadControllerDetailGet: (id, query, params = {}) => this.request({
|
|
2413
|
+
path: `/call-health/issue/${id}`,
|
|
2414
|
+
method: "GET",
|
|
2415
|
+
query: query,
|
|
2416
|
+
secure: true,
|
|
2417
|
+
format: "json",
|
|
2418
|
+
...params,
|
|
2419
|
+
}),
|
|
2420
|
+
};
|
|
2385
2421
|
structuredOutput = {
|
|
2386
2422
|
/**
|
|
2387
2423
|
* No description
|
package/dist/vapi.d.ts
CHANGED
|
@@ -73,6 +73,15 @@ type VideoRecordingStartMode = NonNullable<CreateWebCallDTO['videoRecordingStart
|
|
|
73
73
|
type StartCallOptions = {
|
|
74
74
|
/** Acquire the microphone before creating a backend call. Defaults to true. */
|
|
75
75
|
microphonePreflightEnabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Run Daily's Krisp noise cancellation on the microphone
|
|
78
|
+
* in the browser, before the audio leaves the device. Set to `false` to send
|
|
79
|
+
* the raw microphone audio. Defaults to true.
|
|
80
|
+
*
|
|
81
|
+
* Separate from the assistant's server-side `backgroundSpeechDenoisingPlan`,
|
|
82
|
+
* which this option does not change.
|
|
83
|
+
*/
|
|
84
|
+
clientSideNoiseCancellationEnabled?: boolean;
|
|
76
85
|
/**
|
|
77
86
|
* This determines whether the daily room will be deleted and all participants will be kicked once the user leaves the room.
|
|
78
87
|
* If set to `false`, the room will be kept alive even after the user leaves, allowing clients to reconnect to the same room.
|
|
@@ -102,6 +111,17 @@ type StartCallOptions = {
|
|
|
102
111
|
*/
|
|
103
112
|
videoRecordingStartMode?: VideoRecordingStartMode;
|
|
104
113
|
};
|
|
114
|
+
type ReconnectOptions = {
|
|
115
|
+
/**
|
|
116
|
+
* Run Daily's Krisp noise cancellation on the microphone
|
|
117
|
+
* in the browser. Defaults to the value used by the last `start()` or
|
|
118
|
+
* `reconnect()`, or true if neither set it.
|
|
119
|
+
*
|
|
120
|
+
* Separate from the assistant's server-side `backgroundSpeechDenoisingPlan`,
|
|
121
|
+
* which this option does not change.
|
|
122
|
+
*/
|
|
123
|
+
clientSideNoiseCancellationEnabled?: boolean;
|
|
124
|
+
};
|
|
105
125
|
type WebCall = {
|
|
106
126
|
/**
|
|
107
127
|
* The Vapi WebCall URL. This is the URL that the call will be joined on.
|
|
@@ -170,6 +190,7 @@ export default class Vapi extends VapiEventEmitter {
|
|
|
170
190
|
private dailyCallObject;
|
|
171
191
|
private microphoneTrack;
|
|
172
192
|
private cancelMicrophonePreflight;
|
|
193
|
+
private clientSideNoiseCancellationEnabled;
|
|
173
194
|
private microphoneAcquire;
|
|
174
195
|
private hasEmittedCallEndedStatus;
|
|
175
196
|
constructor(apiToken: string, apiBaseUrl?: string, dailyCallConfig?: Pick<DailyAdvancedConfig, 'avoidEval' | 'alwaysIncludeMicInPermissionPrompt'>, dailyCallObject?: Pick<DailyFactoryOptions, 'audioSource' | 'startAudioOff'>);
|
|
@@ -346,10 +367,10 @@ export default class Vapi extends VapiEventEmitter {
|
|
|
346
367
|
/**
|
|
347
368
|
* Reconnects to an active call.
|
|
348
369
|
*
|
|
349
|
-
*
|
|
350
370
|
* @param webCall
|
|
371
|
+
* @param options
|
|
351
372
|
*/
|
|
352
|
-
reconnect(webCall: WebCall): Promise<void>;
|
|
373
|
+
reconnect(webCall: WebCall, options?: ReconnectOptions): Promise<void>;
|
|
353
374
|
/**
|
|
354
375
|
* Runs all network connectivity tests for pre-call diagnostics.
|
|
355
376
|
* Creates a temporary Daily call object for testing purposes.
|