@domu-ai/kiban-sdk 1.197.2 → 1.198.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/dashboard/client.d.ts +127 -0
- package/dashboard/client.js +42 -4
- package/dashboard/schemas.d.ts +157 -0
- package/dashboard/schemas.js +35 -2
- package/internal/client.d.ts +25 -7
- package/internal/schemas.d.ts +1 -1
- package/internal/schemas.js +1 -1
- package/package.json +1 -1
package/dashboard/client.d.ts
CHANGED
|
@@ -582,6 +582,70 @@ export type DashboardExternalCallsCallIdScoringGet500 = {
|
|
|
582
582
|
code?: string;
|
|
583
583
|
details?: unknown | null;
|
|
584
584
|
};
|
|
585
|
+
export type DashboardExternalCallsCallIdScoringRerunsPostBody = {
|
|
586
|
+
/** @minLength 1 */
|
|
587
|
+
scorecardId: string;
|
|
588
|
+
};
|
|
589
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType = typeof DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType[keyof typeof DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType];
|
|
590
|
+
export declare const DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType: {
|
|
591
|
+
readonly boolean: "boolean";
|
|
592
|
+
readonly numeric: "numeric";
|
|
593
|
+
};
|
|
594
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItem = {
|
|
595
|
+
id: string;
|
|
596
|
+
/** @nullable */
|
|
597
|
+
call_id: string | null;
|
|
598
|
+
external_call_id: string;
|
|
599
|
+
scorecard_id: string;
|
|
600
|
+
item_id: string;
|
|
601
|
+
/** @nullable */
|
|
602
|
+
score: string | null;
|
|
603
|
+
/** @nullable */
|
|
604
|
+
explanation: string | null;
|
|
605
|
+
/** @nullable */
|
|
606
|
+
created_at: string | null;
|
|
607
|
+
item_name: string;
|
|
608
|
+
item_category: string;
|
|
609
|
+
item_type: DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType;
|
|
610
|
+
item_auto_fail: boolean;
|
|
611
|
+
item_na_enabled: boolean;
|
|
612
|
+
item_explanation_enabled: boolean;
|
|
613
|
+
position: number;
|
|
614
|
+
};
|
|
615
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost200Data = {
|
|
616
|
+
autoFailed: boolean;
|
|
617
|
+
/** @nullable */
|
|
618
|
+
transcript: string | null;
|
|
619
|
+
results: DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItem[];
|
|
620
|
+
};
|
|
621
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost200 = {
|
|
622
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost200Data;
|
|
623
|
+
};
|
|
624
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost400 = {
|
|
625
|
+
message: string;
|
|
626
|
+
code?: string;
|
|
627
|
+
details?: unknown | null;
|
|
628
|
+
};
|
|
629
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost401 = {
|
|
630
|
+
message: string;
|
|
631
|
+
code?: string;
|
|
632
|
+
details?: unknown | null;
|
|
633
|
+
};
|
|
634
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost403 = {
|
|
635
|
+
message: string;
|
|
636
|
+
code?: string;
|
|
637
|
+
details?: unknown | null;
|
|
638
|
+
};
|
|
639
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost404 = {
|
|
640
|
+
message: string;
|
|
641
|
+
code?: string;
|
|
642
|
+
details?: unknown | null;
|
|
643
|
+
};
|
|
644
|
+
export type DashboardExternalCallsCallIdScoringRerunsPost500 = {
|
|
645
|
+
message: string;
|
|
646
|
+
code?: string;
|
|
647
|
+
details?: unknown | null;
|
|
648
|
+
};
|
|
585
649
|
export type DashboardExternalCallsCallIdRecordingUrlGet200 = {
|
|
586
650
|
/** Presigned S3 URL for the recording */
|
|
587
651
|
url: string;
|
|
@@ -2444,6 +2508,69 @@ export declare function useDashboardExternalCallsCallIdScoringGet<TData = Awaite
|
|
|
2444
2508
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2445
2509
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2446
2510
|
};
|
|
2511
|
+
/**
|
|
2512
|
+
* Runs QA scoring for an external call against a selected scorecard. Restricted to org admins until RBAC is available.
|
|
2513
|
+
* @summary Rerun scoring for an external call
|
|
2514
|
+
*/
|
|
2515
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse200 = {
|
|
2516
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost200;
|
|
2517
|
+
status: 200;
|
|
2518
|
+
};
|
|
2519
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse400 = {
|
|
2520
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost400;
|
|
2521
|
+
status: 400;
|
|
2522
|
+
};
|
|
2523
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse401 = {
|
|
2524
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost401;
|
|
2525
|
+
status: 401;
|
|
2526
|
+
};
|
|
2527
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse403 = {
|
|
2528
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost403;
|
|
2529
|
+
status: 403;
|
|
2530
|
+
};
|
|
2531
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse404 = {
|
|
2532
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost404;
|
|
2533
|
+
status: 404;
|
|
2534
|
+
};
|
|
2535
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse500 = {
|
|
2536
|
+
data: DashboardExternalCallsCallIdScoringRerunsPost500;
|
|
2537
|
+
status: 500;
|
|
2538
|
+
};
|
|
2539
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponseSuccess = (dashboardExternalCallsCallIdScoringRerunsPostResponse200) & {
|
|
2540
|
+
headers: Headers;
|
|
2541
|
+
};
|
|
2542
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponseError = (dashboardExternalCallsCallIdScoringRerunsPostResponse400 | dashboardExternalCallsCallIdScoringRerunsPostResponse401 | dashboardExternalCallsCallIdScoringRerunsPostResponse403 | dashboardExternalCallsCallIdScoringRerunsPostResponse404 | dashboardExternalCallsCallIdScoringRerunsPostResponse500) & {
|
|
2543
|
+
headers: Headers;
|
|
2544
|
+
};
|
|
2545
|
+
export type dashboardExternalCallsCallIdScoringRerunsPostResponse = (dashboardExternalCallsCallIdScoringRerunsPostResponseSuccess | dashboardExternalCallsCallIdScoringRerunsPostResponseError);
|
|
2546
|
+
export declare const getDashboardExternalCallsCallIdScoringRerunsPostUrl: (callId: string) => string;
|
|
2547
|
+
export declare const dashboardExternalCallsCallIdScoringRerunsPost: (callId: string, dashboardExternalCallsCallIdScoringRerunsPostBody: DashboardExternalCallsCallIdScoringRerunsPostBody, options?: RequestInit) => Promise<dashboardExternalCallsCallIdScoringRerunsPostResponse>;
|
|
2548
|
+
export declare const getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions: <TError = DashboardExternalCallsCallIdScoringRerunsPost400 | DashboardExternalCallsCallIdScoringRerunsPost401 | DashboardExternalCallsCallIdScoringRerunsPost403 | DashboardExternalCallsCallIdScoringRerunsPost404 | DashboardExternalCallsCallIdScoringRerunsPost500, TContext = unknown>(options?: {
|
|
2549
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof dashboardExternalCallsCallIdScoringRerunsPost>>, TError, {
|
|
2550
|
+
callId: string;
|
|
2551
|
+
data: DashboardExternalCallsCallIdScoringRerunsPostBody;
|
|
2552
|
+
}, TContext>;
|
|
2553
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2554
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof dashboardExternalCallsCallIdScoringRerunsPost>>, TError, {
|
|
2555
|
+
callId: string;
|
|
2556
|
+
data: DashboardExternalCallsCallIdScoringRerunsPostBody;
|
|
2557
|
+
}, TContext>;
|
|
2558
|
+
export type DashboardExternalCallsCallIdScoringRerunsPostMutationResult = NonNullable<Awaited<ReturnType<typeof dashboardExternalCallsCallIdScoringRerunsPost>>>;
|
|
2559
|
+
export type DashboardExternalCallsCallIdScoringRerunsPostMutationBody = DashboardExternalCallsCallIdScoringRerunsPostBody;
|
|
2560
|
+
export type DashboardExternalCallsCallIdScoringRerunsPostMutationError = DashboardExternalCallsCallIdScoringRerunsPost400 | DashboardExternalCallsCallIdScoringRerunsPost401 | DashboardExternalCallsCallIdScoringRerunsPost403 | DashboardExternalCallsCallIdScoringRerunsPost404 | DashboardExternalCallsCallIdScoringRerunsPost500;
|
|
2561
|
+
/**
|
|
2562
|
+
* @summary Rerun scoring for an external call
|
|
2563
|
+
*/
|
|
2564
|
+
export declare const useDashboardExternalCallsCallIdScoringRerunsPost: <TError = DashboardExternalCallsCallIdScoringRerunsPost400 | DashboardExternalCallsCallIdScoringRerunsPost401 | DashboardExternalCallsCallIdScoringRerunsPost403 | DashboardExternalCallsCallIdScoringRerunsPost404 | DashboardExternalCallsCallIdScoringRerunsPost500, TContext = unknown>(options?: {
|
|
2565
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof dashboardExternalCallsCallIdScoringRerunsPost>>, TError, {
|
|
2566
|
+
callId: string;
|
|
2567
|
+
data: DashboardExternalCallsCallIdScoringRerunsPostBody;
|
|
2568
|
+
}, TContext>;
|
|
2569
|
+
request?: SecondParameter<typeof customFetcher>;
|
|
2570
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof dashboardExternalCallsCallIdScoringRerunsPost>>, TError, {
|
|
2571
|
+
callId: string;
|
|
2572
|
+
data: DashboardExternalCallsCallIdScoringRerunsPostBody;
|
|
2573
|
+
}, TContext>;
|
|
2447
2574
|
/**
|
|
2448
2575
|
* Generates a short-lived presigned URL for accessing an uploaded external call recording.
|
|
2449
2576
|
* @summary Get presigned URL for an external call recording
|
package/dashboard/client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.useDashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostUrl = exports.getDashboardCallsCallIdScoringGetQueryOptions = exports.getDashboardCallsCallIdScoringGetQueryKey = exports.dashboardCallsCallIdScoringGet = exports.getDashboardCallsCallIdScoringGetUrl = exports.useDashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostMutationOptions = exports.dashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostUrl = exports.getDashboardScorecardsScorecardIdGetQueryOptions = void 0;
|
|
3
|
+
exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.getDashboardInputFieldsGetQueryOptions = exports.getDashboardInputFieldsGetQueryKey = exports.dashboardInputFieldsGet = exports.getDashboardInputFieldsGetUrl = exports.getDashboardAgentsGroupedGetQueryOptions = exports.getDashboardAgentsGroupedGetQueryKey = exports.dashboardAgentsGroupedGet = exports.getDashboardAgentsGroupedGetUrl = exports.getDashboardAgentsGetQueryOptions = exports.getDashboardAgentsGetQueryKey = exports.dashboardAgentsGet = exports.getDashboardAgentsGetUrl = exports.getDashboardCampaignsCampaignIdScheduleConfigGetQueryOptions = exports.getDashboardCampaignsCampaignIdScheduleConfigGetQueryKey = exports.dashboardCampaignsCampaignIdScheduleConfigGet = exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryOptions = exports.getDashboardCampaignsCampaignIdOutputFieldsGetQueryKey = exports.dashboardCampaignsCampaignIdOutputFieldsGet = exports.getDashboardCampaignsCampaignIdOutputFieldsGetUrl = exports.getDashboardCampaignsCampaignIdInputFieldsGetQueryOptions = exports.getDashboardCampaignsCampaignIdInputFieldsGetQueryKey = exports.dashboardCampaignsCampaignIdInputFieldsGet = exports.getDashboardCampaignsCampaignIdInputFieldsGetUrl = exports.getDashboardCampaignsGetQueryOptions = exports.getDashboardCampaignsGetQueryKey = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.useDashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostMutationOptions = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType = exports.DashboardCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardScorecardsScorecardIdGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsActiveGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsPost201DataItemsItemType = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType = exports.DashboardExternalCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardExternalCallsGet200DataCallsItemQaState = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
4
|
+
exports.useDashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostMutationOptions = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.useDashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostMutationOptions = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = exports.getDashboardExternalCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardExternalCallsCallIdRecordingUrlGetQueryKey = exports.dashboardExternalCallsCallIdRecordingUrlGet = exports.getDashboardExternalCallsCallIdRecordingUrlGetUrl = exports.useDashboardExternalCallsCallIdScoringRerunsPost = exports.getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardExternalCallsCallIdScoringRerunsPost = exports.getDashboardExternalCallsCallIdScoringRerunsPostUrl = exports.getDashboardExternalCallsCallIdScoringGetQueryOptions = exports.getDashboardExternalCallsCallIdScoringGetQueryKey = exports.dashboardExternalCallsCallIdScoringGet = exports.getDashboardExternalCallsCallIdScoringGetUrl = exports.getDashboardExternalCallsGetQueryOptions = exports.getDashboardExternalCallsGetQueryKey = exports.dashboardExternalCallsGet = exports.getDashboardExternalCallsGetUrl = exports.useDashboardExternalCallsUploadsCompletePost = exports.getDashboardExternalCallsUploadsCompletePostMutationOptions = exports.dashboardExternalCallsUploadsCompletePost = exports.getDashboardExternalCallsUploadsCompletePostUrl = exports.useDashboardExternalCallsUploadsPresignPost = exports.getDashboardExternalCallsUploadsPresignPostMutationOptions = exports.dashboardExternalCallsUploadsPresignPost = exports.getDashboardExternalCallsUploadsPresignPostUrl = exports.getDashboardCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardCallsCallIdRecordingUrlGetQueryKey = exports.dashboardCallsCallIdRecordingUrlGet = exports.getDashboardCallsCallIdRecordingUrlGetUrl = exports.useDashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchMutationOptions = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.useDashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostMutationOptions = exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.getDashboardCallsCallIdGetQueryOptions = exports.getDashboardCallsCallIdGetQueryKey = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.getDashboardOutputFieldsGetQueryOptions = exports.getDashboardOutputFieldsGetQueryKey = void 0;
|
|
5
|
+
exports.dashboardCampaignsCampaignIdScorecardsActiveGet = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetUrl = exports.getDashboardCampaignsCampaignIdScorecardsGetQueryOptions = exports.getDashboardCampaignsCampaignIdScorecardsGetQueryKey = exports.dashboardCampaignsCampaignIdScorecardsGet = exports.getDashboardCampaignsCampaignIdScorecardsGetUrl = exports.useDashboardCampaignsCampaignIdScorecardsPost = exports.getDashboardCampaignsCampaignIdScorecardsPostMutationOptions = exports.dashboardCampaignsCampaignIdScorecardsPost = exports.getDashboardCampaignsCampaignIdScorecardsPostUrl = exports.getDashboardInovoWindmillSchedulesNamePreviewGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNamePreviewGetQueryKey = exports.dashboardInovoWindmillSchedulesNamePreviewGet = exports.getDashboardInovoWindmillSchedulesNamePreviewGetUrl = exports.useDashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostMutationOptions = exports.dashboardInovoWindmillSchedulesNamePresignUploadPost = exports.getDashboardInovoWindmillSchedulesNamePresignUploadPostUrl = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryKey = exports.dashboardInovoWindmillSchedulesNameRunsGet = exports.getDashboardInovoWindmillSchedulesNameRunsGetUrl = exports.useDashboardInovoWindmillSchedulesNameTogglePatch = exports.getDashboardInovoWindmillSchedulesNameTogglePatchMutationOptions = exports.dashboardInovoWindmillSchedulesNameTogglePatch = exports.getDashboardInovoWindmillSchedulesNameTogglePatchUrl = exports.useDashboardInovoWindmillSchedulesNamePut = exports.getDashboardInovoWindmillSchedulesNamePutMutationOptions = exports.dashboardInovoWindmillSchedulesNamePut = exports.getDashboardInovoWindmillSchedulesNamePutUrl = exports.getDashboardInovoWindmillSchedulesNameGetQueryOptions = exports.getDashboardInovoWindmillSchedulesNameGetQueryKey = exports.dashboardInovoWindmillSchedulesNameGet = exports.getDashboardInovoWindmillSchedulesNameGetUrl = exports.getDashboardInovoWindmillSchedulesGetQueryOptions = exports.getDashboardInovoWindmillSchedulesGetQueryKey = exports.dashboardInovoWindmillSchedulesGet = exports.getDashboardInovoWindmillSchedulesGetUrl = exports.getDashboardTargetsLatestGetQueryOptions = exports.getDashboardTargetsLatestGetQueryKey = exports.dashboardTargetsLatestGet = exports.getDashboardTargetsLatestGetUrl = exports.getDashboardFlagsGetQueryOptions = exports.getDashboardFlagsGetQueryKey = exports.dashboardFlagsGet = exports.getDashboardFlagsGetUrl = exports.useDashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostMutationOptions = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = void 0;
|
|
6
|
+
exports.useDashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions = exports.dashboardCallsCallIdScoringRerunsPost = exports.getDashboardCallsCallIdScoringRerunsPostUrl = exports.getDashboardCallsCallIdScoringGetQueryOptions = exports.getDashboardCallsCallIdScoringGetQueryKey = exports.dashboardCallsCallIdScoringGet = exports.getDashboardCallsCallIdScoringGetUrl = exports.useDashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostMutationOptions = exports.dashboardScorecardsScorecardIdActivatePost = exports.getDashboardScorecardsScorecardIdActivatePostUrl = exports.getDashboardScorecardsScorecardIdGetQueryOptions = exports.getDashboardScorecardsScorecardIdGetQueryKey = exports.dashboardScorecardsScorecardIdGet = exports.getDashboardScorecardsScorecardIdGetUrl = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryOptions = exports.getDashboardCampaignsCampaignIdScorecardsActiveGetQueryKey = void 0;
|
|
7
7
|
exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
|
|
8
8
|
exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
|
|
9
9
|
exports.useDashboardCampaignsCampaignIdOutputFieldsGet = useDashboardCampaignsCampaignIdOutputFieldsGet;
|
|
@@ -51,6 +51,10 @@ exports.DashboardExternalCallsCallIdScoringGet200DataResultsItemItemType = {
|
|
|
51
51
|
boolean: 'boolean',
|
|
52
52
|
numeric: 'numeric',
|
|
53
53
|
};
|
|
54
|
+
exports.DashboardExternalCallsCallIdScoringRerunsPost200DataResultsItemItemType = {
|
|
55
|
+
boolean: 'boolean',
|
|
56
|
+
numeric: 'numeric',
|
|
57
|
+
};
|
|
54
58
|
exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = {
|
|
55
59
|
NUMBER_1: 1,
|
|
56
60
|
NUMBER_2: 2,
|
|
@@ -692,6 +696,40 @@ function useDashboardExternalCallsCallIdScoringGet(callId, params, options, quer
|
|
|
692
696
|
const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
|
|
693
697
|
return { ...query, queryKey: queryOptions.queryKey };
|
|
694
698
|
}
|
|
699
|
+
const getDashboardExternalCallsCallIdScoringRerunsPostUrl = (callId) => {
|
|
700
|
+
return `/v1/dashboard/external-calls/${callId}/scoring/reruns`;
|
|
701
|
+
};
|
|
702
|
+
exports.getDashboardExternalCallsCallIdScoringRerunsPostUrl = getDashboardExternalCallsCallIdScoringRerunsPostUrl;
|
|
703
|
+
const dashboardExternalCallsCallIdScoringRerunsPost = async (callId, dashboardExternalCallsCallIdScoringRerunsPostBody, options) => {
|
|
704
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardExternalCallsCallIdScoringRerunsPostUrl)(callId), {
|
|
705
|
+
...options,
|
|
706
|
+
method: 'POST',
|
|
707
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
708
|
+
body: JSON.stringify(dashboardExternalCallsCallIdScoringRerunsPostBody)
|
|
709
|
+
});
|
|
710
|
+
};
|
|
711
|
+
exports.dashboardExternalCallsCallIdScoringRerunsPost = dashboardExternalCallsCallIdScoringRerunsPost;
|
|
712
|
+
const getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions = (options) => {
|
|
713
|
+
const mutationKey = ['dashboardExternalCallsCallIdScoringRerunsPost'];
|
|
714
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?
|
|
715
|
+
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
716
|
+
options
|
|
717
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
718
|
+
: { mutation: { mutationKey, }, request: undefined };
|
|
719
|
+
const mutationFn = (props) => {
|
|
720
|
+
const { callId, data } = props ?? {};
|
|
721
|
+
return (0, exports.dashboardExternalCallsCallIdScoringRerunsPost)(callId, data, requestOptions);
|
|
722
|
+
};
|
|
723
|
+
return { mutationFn, ...mutationOptions };
|
|
724
|
+
};
|
|
725
|
+
exports.getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions = getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions;
|
|
726
|
+
/**
|
|
727
|
+
* @summary Rerun scoring for an external call
|
|
728
|
+
*/
|
|
729
|
+
const useDashboardExternalCallsCallIdScoringRerunsPost = (options, queryClient) => {
|
|
730
|
+
return (0, react_query_1.useMutation)((0, exports.getDashboardExternalCallsCallIdScoringRerunsPostMutationOptions)(options), queryClient);
|
|
731
|
+
};
|
|
732
|
+
exports.useDashboardExternalCallsCallIdScoringRerunsPost = useDashboardExternalCallsCallIdScoringRerunsPost;
|
|
695
733
|
const getDashboardExternalCallsCallIdRecordingUrlGetUrl = (callId) => {
|
|
696
734
|
return `/v1/dashboard/external-calls/${callId}/recording-url`;
|
|
697
735
|
};
|
package/dashboard/schemas.d.ts
CHANGED
|
@@ -1063,6 +1063,163 @@ export declare const GetScoringResponse: zod.ZodObject<{
|
|
|
1063
1063
|
autoFailed: boolean;
|
|
1064
1064
|
};
|
|
1065
1065
|
}>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Runs QA scoring for an external call against a selected scorecard. Restricted to org admins until RBAC is available.
|
|
1068
|
+
* @summary Rerun scoring for an external call
|
|
1069
|
+
*/
|
|
1070
|
+
export declare const RerunScoringParams: zod.ZodObject<{
|
|
1071
|
+
callId: zod.ZodString;
|
|
1072
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1073
|
+
callId: string;
|
|
1074
|
+
}, {
|
|
1075
|
+
callId: string;
|
|
1076
|
+
}>;
|
|
1077
|
+
export declare const RerunScoringBody: zod.ZodObject<{
|
|
1078
|
+
scorecardId: zod.ZodString;
|
|
1079
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1080
|
+
scorecardId: string;
|
|
1081
|
+
}, {
|
|
1082
|
+
scorecardId: string;
|
|
1083
|
+
}>;
|
|
1084
|
+
export declare const RerunScoringResponse: zod.ZodObject<{
|
|
1085
|
+
data: zod.ZodObject<{
|
|
1086
|
+
autoFailed: zod.ZodBoolean;
|
|
1087
|
+
transcript: zod.ZodNullable<zod.ZodString>;
|
|
1088
|
+
results: zod.ZodArray<zod.ZodObject<{
|
|
1089
|
+
id: zod.ZodString;
|
|
1090
|
+
call_id: zod.ZodNullable<zod.ZodString>;
|
|
1091
|
+
external_call_id: zod.ZodString;
|
|
1092
|
+
scorecard_id: zod.ZodString;
|
|
1093
|
+
item_id: zod.ZodString;
|
|
1094
|
+
score: zod.ZodNullable<zod.ZodString>;
|
|
1095
|
+
explanation: zod.ZodNullable<zod.ZodString>;
|
|
1096
|
+
created_at: zod.ZodNullable<zod.ZodString>;
|
|
1097
|
+
item_name: zod.ZodString;
|
|
1098
|
+
item_category: zod.ZodString;
|
|
1099
|
+
item_type: zod.ZodEnum<["boolean", "numeric"]>;
|
|
1100
|
+
item_auto_fail: zod.ZodBoolean;
|
|
1101
|
+
item_na_enabled: zod.ZodBoolean;
|
|
1102
|
+
item_explanation_enabled: zod.ZodBoolean;
|
|
1103
|
+
position: zod.ZodNumber;
|
|
1104
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1105
|
+
id: string;
|
|
1106
|
+
created_at: string | null;
|
|
1107
|
+
call_id: string | null;
|
|
1108
|
+
external_call_id: string;
|
|
1109
|
+
scorecard_id: string;
|
|
1110
|
+
item_id: string;
|
|
1111
|
+
score: string | null;
|
|
1112
|
+
explanation: string | null;
|
|
1113
|
+
item_name: string;
|
|
1114
|
+
item_category: string;
|
|
1115
|
+
item_type: "boolean" | "numeric";
|
|
1116
|
+
item_auto_fail: boolean;
|
|
1117
|
+
item_na_enabled: boolean;
|
|
1118
|
+
item_explanation_enabled: boolean;
|
|
1119
|
+
position: number;
|
|
1120
|
+
}, {
|
|
1121
|
+
id: string;
|
|
1122
|
+
created_at: string | null;
|
|
1123
|
+
call_id: string | null;
|
|
1124
|
+
external_call_id: string;
|
|
1125
|
+
scorecard_id: string;
|
|
1126
|
+
item_id: string;
|
|
1127
|
+
score: string | null;
|
|
1128
|
+
explanation: string | null;
|
|
1129
|
+
item_name: string;
|
|
1130
|
+
item_category: string;
|
|
1131
|
+
item_type: "boolean" | "numeric";
|
|
1132
|
+
item_auto_fail: boolean;
|
|
1133
|
+
item_na_enabled: boolean;
|
|
1134
|
+
item_explanation_enabled: boolean;
|
|
1135
|
+
position: number;
|
|
1136
|
+
}>, "many">;
|
|
1137
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1138
|
+
transcript: string | null;
|
|
1139
|
+
results: {
|
|
1140
|
+
id: string;
|
|
1141
|
+
created_at: string | null;
|
|
1142
|
+
call_id: string | null;
|
|
1143
|
+
external_call_id: string;
|
|
1144
|
+
scorecard_id: string;
|
|
1145
|
+
item_id: string;
|
|
1146
|
+
score: string | null;
|
|
1147
|
+
explanation: string | null;
|
|
1148
|
+
item_name: string;
|
|
1149
|
+
item_category: string;
|
|
1150
|
+
item_type: "boolean" | "numeric";
|
|
1151
|
+
item_auto_fail: boolean;
|
|
1152
|
+
item_na_enabled: boolean;
|
|
1153
|
+
item_explanation_enabled: boolean;
|
|
1154
|
+
position: number;
|
|
1155
|
+
}[];
|
|
1156
|
+
autoFailed: boolean;
|
|
1157
|
+
}, {
|
|
1158
|
+
transcript: string | null;
|
|
1159
|
+
results: {
|
|
1160
|
+
id: string;
|
|
1161
|
+
created_at: string | null;
|
|
1162
|
+
call_id: string | null;
|
|
1163
|
+
external_call_id: string;
|
|
1164
|
+
scorecard_id: string;
|
|
1165
|
+
item_id: string;
|
|
1166
|
+
score: string | null;
|
|
1167
|
+
explanation: string | null;
|
|
1168
|
+
item_name: string;
|
|
1169
|
+
item_category: string;
|
|
1170
|
+
item_type: "boolean" | "numeric";
|
|
1171
|
+
item_auto_fail: boolean;
|
|
1172
|
+
item_na_enabled: boolean;
|
|
1173
|
+
item_explanation_enabled: boolean;
|
|
1174
|
+
position: number;
|
|
1175
|
+
}[];
|
|
1176
|
+
autoFailed: boolean;
|
|
1177
|
+
}>;
|
|
1178
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1179
|
+
data: {
|
|
1180
|
+
transcript: string | null;
|
|
1181
|
+
results: {
|
|
1182
|
+
id: string;
|
|
1183
|
+
created_at: string | null;
|
|
1184
|
+
call_id: string | null;
|
|
1185
|
+
external_call_id: string;
|
|
1186
|
+
scorecard_id: string;
|
|
1187
|
+
item_id: string;
|
|
1188
|
+
score: string | null;
|
|
1189
|
+
explanation: string | null;
|
|
1190
|
+
item_name: string;
|
|
1191
|
+
item_category: string;
|
|
1192
|
+
item_type: "boolean" | "numeric";
|
|
1193
|
+
item_auto_fail: boolean;
|
|
1194
|
+
item_na_enabled: boolean;
|
|
1195
|
+
item_explanation_enabled: boolean;
|
|
1196
|
+
position: number;
|
|
1197
|
+
}[];
|
|
1198
|
+
autoFailed: boolean;
|
|
1199
|
+
};
|
|
1200
|
+
}, {
|
|
1201
|
+
data: {
|
|
1202
|
+
transcript: string | null;
|
|
1203
|
+
results: {
|
|
1204
|
+
id: string;
|
|
1205
|
+
created_at: string | null;
|
|
1206
|
+
call_id: string | null;
|
|
1207
|
+
external_call_id: string;
|
|
1208
|
+
scorecard_id: string;
|
|
1209
|
+
item_id: string;
|
|
1210
|
+
score: string | null;
|
|
1211
|
+
explanation: string | null;
|
|
1212
|
+
item_name: string;
|
|
1213
|
+
item_category: string;
|
|
1214
|
+
item_type: "boolean" | "numeric";
|
|
1215
|
+
item_auto_fail: boolean;
|
|
1216
|
+
item_na_enabled: boolean;
|
|
1217
|
+
item_explanation_enabled: boolean;
|
|
1218
|
+
position: number;
|
|
1219
|
+
}[];
|
|
1220
|
+
autoFailed: boolean;
|
|
1221
|
+
};
|
|
1222
|
+
}>;
|
|
1066
1223
|
/**
|
|
1067
1224
|
* Generates a short-lived presigned URL for accessing an uploaded external call recording.
|
|
1068
1225
|
* @summary Get presigned URL for an external call recording
|
package/dashboard/schemas.js
CHANGED
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.RerunCallScoringResponse = exports.RerunCallScoringBody = exports.RerunCallScoringParams = exports.GetCallScoringResponse = exports.GetCallScoringQueryParams = exports.GetCallScoringParams = exports.ActivateScorecardResponse = exports.ActivateScorecardParams = exports.GetScorecardResponse = exports.GetScorecardParams = exports.GetActiveScorecardResponse = exports.GetActiveScorecardParams = exports.GetScorecardVersionsResponse = exports.GetScorecardVersionsParams = exports.DeployScorecardBody = exports.deployScorecardBodyItemsItemTwoInstructionMax = exports.deployScorecardBodyItemsItemTwoNameMax = exports.deployScorecardBodyItemsItemTwoCategoryMax = exports.deployScorecardBodyNameMax = exports.DeployScorecardParams = exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesPresignUploadResponse = exports.WindmillSchedulesPresignUploadBody = exports.WindmillSchedulesPresignUploadParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesToggleResponse = exports.WindmillSchedulesToggleBody = exports.WindmillSchedulesToggleParams = exports.WindmillSchedulesUpdateResponse = exports.WindmillSchedulesUpdateBody = exports.WindmillSchedulesUpdateParams = exports.WindmillSchedulesGetByNameResponse = void 0;
|
|
36
|
+
exports.GetLatestTargetQueryParams = exports.GetOrgFlagsResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = exports.GetExternalCallRecordingPresignedUrlResponse = exports.GetExternalCallRecordingPresignedUrlParams = exports.RerunScoringResponse = exports.RerunScoringBody = exports.RerunScoringParams = exports.GetScoringResponse = exports.GetScoringQueryParams = exports.GetScoringParams = exports.GetExternalCallsResponse = exports.getExternalCallsResponseDataPaginationOffsetMin = exports.GetExternalCallsQueryParams = exports.getExternalCallsQueryOffsetMax = exports.getExternalCallsQueryOffsetMin = exports.getExternalCallsQueryLimitMax = exports.CompleteUploadBody = exports.completeUploadBodyCallIdsMax = exports.PresignUploadResponse = exports.PresignUploadBody = exports.presignUploadBodyFilesMax = exports.GetRecordingPresignedUrlResponse = exports.GetRecordingPresignedUrlParams = exports.UpdateReviewResponse = exports.UpdateReviewBody = exports.updateReviewBodyNotesMax = exports.UpdateReviewParams = exports.GetReviewStatusResponse = exports.GetReviewStatusBody = exports.GetCallResponse = exports.GetCallParams = exports.GetOutputFieldsResponse = exports.GetInputFieldsResponse = exports.GetAgentsGroupedResponse = exports.GetAgentsResponse = exports.GetScheduleConfigResponse = exports.GetScheduleConfigParams = exports.GetCampaignOutputFieldsResponse = exports.GetCampaignOutputFieldsParams = exports.GetCampaignInputFieldsResponse = exports.GetCampaignInputFieldsParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
|
|
37
|
+
exports.RerunCallScoringResponse = exports.RerunCallScoringBody = exports.RerunCallScoringParams = exports.GetCallScoringResponse = exports.GetCallScoringQueryParams = exports.GetCallScoringParams = exports.ActivateScorecardResponse = exports.ActivateScorecardParams = exports.GetScorecardResponse = exports.GetScorecardParams = exports.GetActiveScorecardResponse = exports.GetActiveScorecardParams = exports.GetScorecardVersionsResponse = exports.GetScorecardVersionsParams = exports.DeployScorecardBody = exports.deployScorecardBodyItemsItemTwoInstructionMax = exports.deployScorecardBodyItemsItemTwoNameMax = exports.deployScorecardBodyItemsItemTwoCategoryMax = exports.deployScorecardBodyNameMax = exports.DeployScorecardParams = exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesPresignUploadResponse = exports.WindmillSchedulesPresignUploadBody = exports.WindmillSchedulesPresignUploadParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesToggleResponse = exports.WindmillSchedulesToggleBody = exports.WindmillSchedulesToggleParams = exports.WindmillSchedulesUpdateResponse = exports.WindmillSchedulesUpdateBody = exports.WindmillSchedulesUpdateParams = exports.WindmillSchedulesGetByNameResponse = exports.WindmillSchedulesGetByNameParams = exports.WindmillSchedulesListResponse = exports.GetLatestTargetResponse = void 0;
|
|
38
38
|
/**
|
|
39
39
|
* Generated by orval v8.2.0 🍺
|
|
40
40
|
* Do not edit manually.
|
|
@@ -330,6 +330,39 @@ exports.GetScoringResponse = zod.object({
|
|
|
330
330
|
}))
|
|
331
331
|
})
|
|
332
332
|
});
|
|
333
|
+
/**
|
|
334
|
+
* Runs QA scoring for an external call against a selected scorecard. Restricted to org admins until RBAC is available.
|
|
335
|
+
* @summary Rerun scoring for an external call
|
|
336
|
+
*/
|
|
337
|
+
exports.RerunScoringParams = zod.object({
|
|
338
|
+
"callId": zod.string()
|
|
339
|
+
});
|
|
340
|
+
exports.RerunScoringBody = zod.object({
|
|
341
|
+
"scorecardId": zod.string().min(1)
|
|
342
|
+
});
|
|
343
|
+
exports.RerunScoringResponse = zod.object({
|
|
344
|
+
"data": zod.object({
|
|
345
|
+
"autoFailed": zod.boolean(),
|
|
346
|
+
"transcript": zod.string().nullable(),
|
|
347
|
+
"results": zod.array(zod.object({
|
|
348
|
+
"id": zod.string(),
|
|
349
|
+
"call_id": zod.string().nullable(),
|
|
350
|
+
"external_call_id": zod.string(),
|
|
351
|
+
"scorecard_id": zod.string(),
|
|
352
|
+
"item_id": zod.string(),
|
|
353
|
+
"score": zod.string().nullable(),
|
|
354
|
+
"explanation": zod.string().nullable(),
|
|
355
|
+
"created_at": zod.string().datetime({}).nullable(),
|
|
356
|
+
"item_name": zod.string(),
|
|
357
|
+
"item_category": zod.string(),
|
|
358
|
+
"item_type": zod.enum(['boolean', 'numeric']),
|
|
359
|
+
"item_auto_fail": zod.boolean(),
|
|
360
|
+
"item_na_enabled": zod.boolean(),
|
|
361
|
+
"item_explanation_enabled": zod.boolean(),
|
|
362
|
+
"position": zod.number()
|
|
363
|
+
}))
|
|
364
|
+
})
|
|
365
|
+
});
|
|
333
366
|
/**
|
|
334
367
|
* Generates a short-lived presigned URL for accessing an uploaded external call recording.
|
|
335
368
|
* @summary Get presigned URL for an external call recording
|
package/internal/client.d.ts
CHANGED
|
@@ -1488,11 +1488,21 @@ export type InternalTargetsIdentifierGet404 = {
|
|
|
1488
1488
|
code?: string;
|
|
1489
1489
|
details?: unknown | null;
|
|
1490
1490
|
};
|
|
1491
|
+
export type InternalTargetsIdentifierGet409 = {
|
|
1492
|
+
message: string;
|
|
1493
|
+
code?: string;
|
|
1494
|
+
details?: unknown | null;
|
|
1495
|
+
};
|
|
1491
1496
|
export type InternalTargetsIdentifierGet500 = {
|
|
1492
1497
|
message: string;
|
|
1493
1498
|
code?: string;
|
|
1494
1499
|
details?: unknown | null;
|
|
1495
1500
|
};
|
|
1501
|
+
export type InternalTargetsIdentifierGet503 = {
|
|
1502
|
+
message: string;
|
|
1503
|
+
code?: string;
|
|
1504
|
+
details?: unknown | null;
|
|
1505
|
+
};
|
|
1496
1506
|
export type InternalReportsPaymentsCampaignIdPostParams = {
|
|
1497
1507
|
/**
|
|
1498
1508
|
* Report date in YYYY-MM-DD format. Defaults to yesterday.
|
|
@@ -5324,7 +5334,7 @@ export declare const useInternalTargetsUploadPresignPost: <TError = InternalTarg
|
|
|
5324
5334
|
data: InternalTargetsUploadPresignPostBody;
|
|
5325
5335
|
}, TContext>;
|
|
5326
5336
|
/**
|
|
5327
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
5337
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
5328
5338
|
* @summary Get target by identifier
|
|
5329
5339
|
*/
|
|
5330
5340
|
export type internalTargetsIdentifierGetResponse200 = {
|
|
@@ -5339,41 +5349,49 @@ export type internalTargetsIdentifierGetResponse404 = {
|
|
|
5339
5349
|
data: InternalTargetsIdentifierGet404;
|
|
5340
5350
|
status: 404;
|
|
5341
5351
|
};
|
|
5352
|
+
export type internalTargetsIdentifierGetResponse409 = {
|
|
5353
|
+
data: InternalTargetsIdentifierGet409;
|
|
5354
|
+
status: 409;
|
|
5355
|
+
};
|
|
5342
5356
|
export type internalTargetsIdentifierGetResponse500 = {
|
|
5343
5357
|
data: InternalTargetsIdentifierGet500;
|
|
5344
5358
|
status: 500;
|
|
5345
5359
|
};
|
|
5360
|
+
export type internalTargetsIdentifierGetResponse503 = {
|
|
5361
|
+
data: InternalTargetsIdentifierGet503;
|
|
5362
|
+
status: 503;
|
|
5363
|
+
};
|
|
5346
5364
|
export type internalTargetsIdentifierGetResponseSuccess = (internalTargetsIdentifierGetResponse200) & {
|
|
5347
5365
|
headers: Headers;
|
|
5348
5366
|
};
|
|
5349
|
-
export type internalTargetsIdentifierGetResponseError = (internalTargetsIdentifierGetResponse400 | internalTargetsIdentifierGetResponse404 | internalTargetsIdentifierGetResponse500) & {
|
|
5367
|
+
export type internalTargetsIdentifierGetResponseError = (internalTargetsIdentifierGetResponse400 | internalTargetsIdentifierGetResponse404 | internalTargetsIdentifierGetResponse409 | internalTargetsIdentifierGetResponse500 | internalTargetsIdentifierGetResponse503) & {
|
|
5350
5368
|
headers: Headers;
|
|
5351
5369
|
};
|
|
5352
5370
|
export type internalTargetsIdentifierGetResponse = (internalTargetsIdentifierGetResponseSuccess | internalTargetsIdentifierGetResponseError);
|
|
5353
5371
|
export declare const getInternalTargetsIdentifierGetUrl: (identifier: string, params: InternalTargetsIdentifierGetParams) => string;
|
|
5354
5372
|
export declare const internalTargetsIdentifierGet: (identifier: string, params: InternalTargetsIdentifierGetParams, options?: RequestInit) => Promise<internalTargetsIdentifierGetResponse>;
|
|
5355
5373
|
export declare const getInternalTargetsIdentifierGetQueryKey: (identifier: string, params?: InternalTargetsIdentifierGetParams) => readonly [`/v1/internal/targets/${string}`, ...InternalTargetsIdentifierGetParams[]];
|
|
5356
|
-
export declare const getInternalTargetsIdentifierGetQueryOptions: <TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5374
|
+
export declare const getInternalTargetsIdentifierGetQueryOptions: <TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5357
5375
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>>;
|
|
5358
5376
|
request?: SecondParameter<typeof customFetcher>;
|
|
5359
5377
|
}) => UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData> & {
|
|
5360
5378
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5361
5379
|
};
|
|
5362
5380
|
export type InternalTargetsIdentifierGetQueryResult = NonNullable<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>;
|
|
5363
|
-
export type InternalTargetsIdentifierGetQueryError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500;
|
|
5364
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options: {
|
|
5381
|
+
export type InternalTargetsIdentifierGetQueryError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503;
|
|
5382
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options: {
|
|
5365
5383
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>, 'initialData'>;
|
|
5366
5384
|
request?: SecondParameter<typeof customFetcher>;
|
|
5367
5385
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
5368
5386
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5369
5387
|
};
|
|
5370
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5388
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5371
5389
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>, 'initialData'>;
|
|
5372
5390
|
request?: SecondParameter<typeof customFetcher>;
|
|
5373
5391
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
5374
5392
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5375
5393
|
};
|
|
5376
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5394
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5377
5395
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>>;
|
|
5378
5396
|
request?: SecondParameter<typeof customFetcher>;
|
|
5379
5397
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
package/internal/schemas.d.ts
CHANGED
|
@@ -2218,7 +2218,7 @@ export declare const PresignUploadResponse: zod.ZodObject<{
|
|
|
2218
2218
|
expiresIn: number;
|
|
2219
2219
|
}>;
|
|
2220
2220
|
/**
|
|
2221
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
2221
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
2222
2222
|
* @summary Get target by identifier
|
|
2223
2223
|
*/
|
|
2224
2224
|
export declare const GetTargetParams: zod.ZodObject<{
|
package/internal/schemas.js
CHANGED
|
@@ -706,7 +706,7 @@ exports.PresignUploadResponse = zod.object({
|
|
|
706
706
|
"expiresIn": zod.number().describe('URL expiry in seconds')
|
|
707
707
|
});
|
|
708
708
|
/**
|
|
709
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
709
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
710
710
|
* @summary Get target by identifier
|
|
711
711
|
*/
|
|
712
712
|
exports.GetTargetParams = zod.object({
|