@domu-ai/kiban-sdk 1.170.2 → 1.170.4

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.
@@ -1084,6 +1084,9 @@ export type DashboardScorecardsScorecardIdActivatePost500 = {
1084
1084
  code?: string;
1085
1085
  details?: unknown | null;
1086
1086
  };
1087
+ export type DashboardCallsCallIdScoringGetParams = {
1088
+ scorecardId?: string;
1089
+ };
1087
1090
  export type DashboardCallsCallIdScoringGet200DataResultsItemItemType = typeof DashboardCallsCallIdScoringGet200DataResultsItemItemType[keyof typeof DashboardCallsCallIdScoringGet200DataResultsItemItemType];
1088
1091
  export declare const DashboardCallsCallIdScoringGet200DataResultsItemItemType: {
1089
1092
  readonly boolean: "boolean";
@@ -1125,6 +1128,66 @@ export type DashboardCallsCallIdScoringGet500 = {
1125
1128
  code?: string;
1126
1129
  details?: unknown | null;
1127
1130
  };
1131
+ export type DashboardCallsCallIdScoringRerunsPostBody = {
1132
+ /** @minLength 1 */
1133
+ scorecardId: string;
1134
+ };
1135
+ export type DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType = typeof DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType[keyof typeof DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType];
1136
+ export declare const DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType: {
1137
+ readonly boolean: "boolean";
1138
+ readonly numeric: "numeric";
1139
+ };
1140
+ export type DashboardCallsCallIdScoringRerunsPost200DataResultsItem = {
1141
+ id: string;
1142
+ call_id: string;
1143
+ scorecard_id: string;
1144
+ item_id: string;
1145
+ /** @nullable */
1146
+ score: string | null;
1147
+ /** @nullable */
1148
+ explanation: string | null;
1149
+ /** @nullable */
1150
+ created_at: string | null;
1151
+ item_name: string;
1152
+ item_category: string;
1153
+ item_type: DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType;
1154
+ item_auto_fail: boolean;
1155
+ item_na_enabled: boolean;
1156
+ item_explanation_enabled: boolean;
1157
+ position: number;
1158
+ };
1159
+ export type DashboardCallsCallIdScoringRerunsPost200Data = {
1160
+ autoFailed: boolean;
1161
+ results: DashboardCallsCallIdScoringRerunsPost200DataResultsItem[];
1162
+ };
1163
+ export type DashboardCallsCallIdScoringRerunsPost200 = {
1164
+ data: DashboardCallsCallIdScoringRerunsPost200Data;
1165
+ };
1166
+ export type DashboardCallsCallIdScoringRerunsPost400 = {
1167
+ message: string;
1168
+ code?: string;
1169
+ details?: unknown | null;
1170
+ };
1171
+ export type DashboardCallsCallIdScoringRerunsPost401 = {
1172
+ message: string;
1173
+ code?: string;
1174
+ details?: unknown | null;
1175
+ };
1176
+ export type DashboardCallsCallIdScoringRerunsPost403 = {
1177
+ message: string;
1178
+ code?: string;
1179
+ details?: unknown | null;
1180
+ };
1181
+ export type DashboardCallsCallIdScoringRerunsPost404 = {
1182
+ message: string;
1183
+ code?: string;
1184
+ details?: unknown | null;
1185
+ };
1186
+ export type DashboardCallsCallIdScoringRerunsPost500 = {
1187
+ message: string;
1188
+ code?: string;
1189
+ details?: unknown | null;
1190
+ };
1128
1191
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1129
1192
  /**
1130
1193
  * Returns a map of campaign ID to campaign name for the specified campaign IDs.
@@ -2723,7 +2786,7 @@ export declare const useDashboardScorecardsScorecardIdActivatePost: <TError = Da
2723
2786
  scorecardId: string;
2724
2787
  }, TContext>;
2725
2788
  /**
2726
- * Returns scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
2789
+ * Returns latest successful scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
2727
2790
  * @summary Get scoring results for a call
2728
2791
  */
2729
2792
  export type dashboardCallsCallIdScoringGetResponse200 = {
@@ -2745,10 +2808,10 @@ export type dashboardCallsCallIdScoringGetResponseError = (dashboardCallsCallIdS
2745
2808
  headers: Headers;
2746
2809
  };
2747
2810
  export type dashboardCallsCallIdScoringGetResponse = (dashboardCallsCallIdScoringGetResponseSuccess | dashboardCallsCallIdScoringGetResponseError);
2748
- export declare const getDashboardCallsCallIdScoringGetUrl: (callId: string) => string;
2749
- export declare const dashboardCallsCallIdScoringGet: (callId: string, options?: RequestInit) => Promise<dashboardCallsCallIdScoringGetResponse>;
2750
- export declare const getDashboardCallsCallIdScoringGetQueryKey: (callId: string) => readonly [`/v1/dashboard/calls/${string}/scoring`];
2751
- export declare const getDashboardCallsCallIdScoringGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, options?: {
2811
+ export declare const getDashboardCallsCallIdScoringGetUrl: (callId: string, params?: DashboardCallsCallIdScoringGetParams) => string;
2812
+ export declare const dashboardCallsCallIdScoringGet: (callId: string, params?: DashboardCallsCallIdScoringGetParams, options?: RequestInit) => Promise<dashboardCallsCallIdScoringGetResponse>;
2813
+ export declare const getDashboardCallsCallIdScoringGetQueryKey: (callId: string, params?: DashboardCallsCallIdScoringGetParams) => readonly [`/v1/dashboard/calls/${string}/scoring`, ...DashboardCallsCallIdScoringGetParams[]];
2814
+ export declare const getDashboardCallsCallIdScoringGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, params?: DashboardCallsCallIdScoringGetParams, options?: {
2752
2815
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, TData>>;
2753
2816
  request?: SecondParameter<typeof customFetcher>;
2754
2817
  }) => UseQueryOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, TData> & {
@@ -2756,22 +2819,85 @@ export declare const getDashboardCallsCallIdScoringGetQueryOptions: <TData = Awa
2756
2819
  };
2757
2820
  export type DashboardCallsCallIdScoringGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>>;
2758
2821
  export type DashboardCallsCallIdScoringGetQueryError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500;
2759
- export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, options: {
2822
+ export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, params: undefined | DashboardCallsCallIdScoringGetParams, options: {
2760
2823
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>>, 'initialData'>;
2761
2824
  request?: SecondParameter<typeof customFetcher>;
2762
2825
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2763
2826
  queryKey: DataTag<QueryKey, TData, TError>;
2764
2827
  };
2765
- export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, options?: {
2828
+ export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, params?: DashboardCallsCallIdScoringGetParams, options?: {
2766
2829
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>>, 'initialData'>;
2767
2830
  request?: SecondParameter<typeof customFetcher>;
2768
2831
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2769
2832
  queryKey: DataTag<QueryKey, TData, TError>;
2770
2833
  };
2771
- export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, options?: {
2834
+ export declare function useDashboardCallsCallIdScoringGet<TData = Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError = DashboardCallsCallIdScoringGet401 | DashboardCallsCallIdScoringGet500>(callId: string, params?: DashboardCallsCallIdScoringGetParams, options?: {
2772
2835
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringGet>>, TError, TData>>;
2773
2836
  request?: SecondParameter<typeof customFetcher>;
2774
2837
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2775
2838
  queryKey: DataTag<QueryKey, TData, TError>;
2776
2839
  };
2840
+ /**
2841
+ * Runs QA scoring for a call against a selected scorecard. Restricted to org admins until RBAC is available.
2842
+ * @summary Rerun scoring for a call
2843
+ */
2844
+ export type dashboardCallsCallIdScoringRerunsPostResponse200 = {
2845
+ data: DashboardCallsCallIdScoringRerunsPost200;
2846
+ status: 200;
2847
+ };
2848
+ export type dashboardCallsCallIdScoringRerunsPostResponse400 = {
2849
+ data: DashboardCallsCallIdScoringRerunsPost400;
2850
+ status: 400;
2851
+ };
2852
+ export type dashboardCallsCallIdScoringRerunsPostResponse401 = {
2853
+ data: DashboardCallsCallIdScoringRerunsPost401;
2854
+ status: 401;
2855
+ };
2856
+ export type dashboardCallsCallIdScoringRerunsPostResponse403 = {
2857
+ data: DashboardCallsCallIdScoringRerunsPost403;
2858
+ status: 403;
2859
+ };
2860
+ export type dashboardCallsCallIdScoringRerunsPostResponse404 = {
2861
+ data: DashboardCallsCallIdScoringRerunsPost404;
2862
+ status: 404;
2863
+ };
2864
+ export type dashboardCallsCallIdScoringRerunsPostResponse500 = {
2865
+ data: DashboardCallsCallIdScoringRerunsPost500;
2866
+ status: 500;
2867
+ };
2868
+ export type dashboardCallsCallIdScoringRerunsPostResponseSuccess = (dashboardCallsCallIdScoringRerunsPostResponse200) & {
2869
+ headers: Headers;
2870
+ };
2871
+ export type dashboardCallsCallIdScoringRerunsPostResponseError = (dashboardCallsCallIdScoringRerunsPostResponse400 | dashboardCallsCallIdScoringRerunsPostResponse401 | dashboardCallsCallIdScoringRerunsPostResponse403 | dashboardCallsCallIdScoringRerunsPostResponse404 | dashboardCallsCallIdScoringRerunsPostResponse500) & {
2872
+ headers: Headers;
2873
+ };
2874
+ export type dashboardCallsCallIdScoringRerunsPostResponse = (dashboardCallsCallIdScoringRerunsPostResponseSuccess | dashboardCallsCallIdScoringRerunsPostResponseError);
2875
+ export declare const getDashboardCallsCallIdScoringRerunsPostUrl: (callId: string) => string;
2876
+ export declare const dashboardCallsCallIdScoringRerunsPost: (callId: string, dashboardCallsCallIdScoringRerunsPostBody: DashboardCallsCallIdScoringRerunsPostBody, options?: RequestInit) => Promise<dashboardCallsCallIdScoringRerunsPostResponse>;
2877
+ export declare const getDashboardCallsCallIdScoringRerunsPostMutationOptions: <TError = DashboardCallsCallIdScoringRerunsPost400 | DashboardCallsCallIdScoringRerunsPost401 | DashboardCallsCallIdScoringRerunsPost403 | DashboardCallsCallIdScoringRerunsPost404 | DashboardCallsCallIdScoringRerunsPost500, TContext = unknown>(options?: {
2878
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringRerunsPost>>, TError, {
2879
+ callId: string;
2880
+ data: DashboardCallsCallIdScoringRerunsPostBody;
2881
+ }, TContext>;
2882
+ request?: SecondParameter<typeof customFetcher>;
2883
+ }) => UseMutationOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringRerunsPost>>, TError, {
2884
+ callId: string;
2885
+ data: DashboardCallsCallIdScoringRerunsPostBody;
2886
+ }, TContext>;
2887
+ export type DashboardCallsCallIdScoringRerunsPostMutationResult = NonNullable<Awaited<ReturnType<typeof dashboardCallsCallIdScoringRerunsPost>>>;
2888
+ export type DashboardCallsCallIdScoringRerunsPostMutationBody = DashboardCallsCallIdScoringRerunsPostBody;
2889
+ export type DashboardCallsCallIdScoringRerunsPostMutationError = DashboardCallsCallIdScoringRerunsPost400 | DashboardCallsCallIdScoringRerunsPost401 | DashboardCallsCallIdScoringRerunsPost403 | DashboardCallsCallIdScoringRerunsPost404 | DashboardCallsCallIdScoringRerunsPost500;
2890
+ /**
2891
+ * @summary Rerun scoring for a call
2892
+ */
2893
+ export declare const useDashboardCallsCallIdScoringRerunsPost: <TError = DashboardCallsCallIdScoringRerunsPost400 | DashboardCallsCallIdScoringRerunsPost401 | DashboardCallsCallIdScoringRerunsPost403 | DashboardCallsCallIdScoringRerunsPost404 | DashboardCallsCallIdScoringRerunsPost500, TContext = unknown>(options?: {
2894
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof dashboardCallsCallIdScoringRerunsPost>>, TError, {
2895
+ callId: string;
2896
+ data: DashboardCallsCallIdScoringRerunsPostBody;
2897
+ }, TContext>;
2898
+ request?: SecondParameter<typeof customFetcher>;
2899
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof dashboardCallsCallIdScoringRerunsPost>>, TError, {
2900
+ callId: string;
2901
+ data: DashboardCallsCallIdScoringRerunsPostBody;
2902
+ }, TContext>;
2777
2903
  export {};
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.getDashboardCallsCallIdGetQueryOptions = exports.getDashboardCallsCallIdGetQueryKey = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.getDashboardOutputFieldsGetQueryOptions = exports.getDashboardOutputFieldsGetQueryKey = 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.getDashboardCampaignsCampaignIdInputFieldsGetQueryOptions = exports.getDashboardCampaignsCampaignIdInputFieldsGetQueryKey = exports.dashboardCampaignsCampaignIdInputFieldsGet = exports.getDashboardCampaignsCampaignIdInputFieldsGetUrl = exports.getDashboardCampaignsGetQueryOptions = exports.getDashboardCampaignsGetQueryKey = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.useDashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostMutationOptions = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardCallsCallIdScoringGet200DataResultsItemItemType = exports.DashboardScorecardsScorecardIdGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsActiveGet200DataItemsItemType = exports.DashboardCampaignsCampaignIdScorecardsPost201DataItemsItemType = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
4
- 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.getDashboardClientFeaturesGetQueryOptions = exports.getDashboardClientFeaturesGetQueryKey = exports.dashboardClientFeaturesGet = exports.getDashboardClientFeaturesGetUrl = exports.useDashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostMutationOptions = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.useDashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostMutationOptions = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.useDashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostMutationOptions = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = exports.getDashboardCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardCallsCallIdRecordingUrlGetQueryKey = exports.dashboardCallsCallIdRecordingUrlGet = exports.getDashboardCallsCallIdRecordingUrlGetUrl = exports.useDashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchMutationOptions = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.useDashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostMutationOptions = void 0;
5
- 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 = 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 = void 0;
3
+ exports.getDashboardCallsReviewStatusPostUrl = exports.getDashboardCallsCallIdGetQueryOptions = exports.getDashboardCallsCallIdGetQueryKey = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.getDashboardOutputFieldsGetQueryOptions = exports.getDashboardOutputFieldsGetQueryKey = 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.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.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
4
+ 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.getDashboardClientFeaturesGetQueryOptions = exports.getDashboardClientFeaturesGetQueryKey = exports.dashboardClientFeaturesGet = exports.getDashboardClientFeaturesGetUrl = exports.useDashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostMutationOptions = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.useDashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostMutationOptions = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.useDashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostMutationOptions = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = exports.getDashboardCallsCallIdRecordingUrlGetQueryOptions = exports.getDashboardCallsCallIdRecordingUrlGetQueryKey = exports.dashboardCallsCallIdRecordingUrlGet = exports.getDashboardCallsCallIdRecordingUrlGetUrl = exports.useDashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchMutationOptions = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.useDashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostMutationOptions = exports.dashboardCallsReviewStatusPost = void 0;
5
+ 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 = 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 = void 0;
6
6
  exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
7
7
  exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
8
8
  exports.useDashboardCampaignsCampaignIdScheduleConfigGet = useDashboardCampaignsCampaignIdScheduleConfigGet;
@@ -106,6 +106,10 @@ exports.DashboardCallsCallIdScoringGet200DataResultsItemItemType = {
106
106
  boolean: 'boolean',
107
107
  numeric: 'numeric',
108
108
  };
109
+ exports.DashboardCallsCallIdScoringRerunsPost200DataResultsItemItemType = {
110
+ boolean: 'boolean',
111
+ numeric: 'numeric',
112
+ };
109
113
  const getDashboardCampaignsNamesPostUrl = () => {
110
114
  return `/v1/dashboard/campaigns/names`;
111
115
  };
@@ -1061,35 +1065,76 @@ const useDashboardScorecardsScorecardIdActivatePost = (options, queryClient) =>
1061
1065
  return (0, react_query_1.useMutation)((0, exports.getDashboardScorecardsScorecardIdActivatePostMutationOptions)(options), queryClient);
1062
1066
  };
1063
1067
  exports.useDashboardScorecardsScorecardIdActivatePost = useDashboardScorecardsScorecardIdActivatePost;
1064
- const getDashboardCallsCallIdScoringGetUrl = (callId) => {
1065
- return `/v1/dashboard/calls/${callId}/scoring`;
1068
+ const getDashboardCallsCallIdScoringGetUrl = (callId, params) => {
1069
+ const normalizedParams = new URLSearchParams();
1070
+ Object.entries(params || {}).forEach(([key, value]) => {
1071
+ if (value !== undefined) {
1072
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
1073
+ }
1074
+ });
1075
+ const stringifiedParams = normalizedParams.toString();
1076
+ return stringifiedParams.length > 0 ? `/v1/dashboard/calls/${callId}/scoring?${stringifiedParams}` : `/v1/dashboard/calls/${callId}/scoring`;
1066
1077
  };
1067
1078
  exports.getDashboardCallsCallIdScoringGetUrl = getDashboardCallsCallIdScoringGetUrl;
1068
- const dashboardCallsCallIdScoringGet = async (callId, options) => {
1069
- return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsCallIdScoringGetUrl)(callId), {
1079
+ const dashboardCallsCallIdScoringGet = async (callId, params, options) => {
1080
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsCallIdScoringGetUrl)(callId, params), {
1070
1081
  ...options,
1071
1082
  method: 'GET'
1072
1083
  });
1073
1084
  };
1074
1085
  exports.dashboardCallsCallIdScoringGet = dashboardCallsCallIdScoringGet;
1075
- const getDashboardCallsCallIdScoringGetQueryKey = (callId) => {
1086
+ const getDashboardCallsCallIdScoringGetQueryKey = (callId, params) => {
1076
1087
  return [
1077
- `/v1/dashboard/calls/${callId}/scoring`
1088
+ `/v1/dashboard/calls/${callId}/scoring`, ...(params ? [params] : [])
1078
1089
  ];
1079
1090
  };
1080
1091
  exports.getDashboardCallsCallIdScoringGetQueryKey = getDashboardCallsCallIdScoringGetQueryKey;
1081
- const getDashboardCallsCallIdScoringGetQueryOptions = (callId, options) => {
1092
+ const getDashboardCallsCallIdScoringGetQueryOptions = (callId, params, options) => {
1082
1093
  const { query: queryOptions, request: requestOptions } = options ?? {};
1083
- const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardCallsCallIdScoringGetQueryKey)(callId);
1084
- const queryFn = () => (0, exports.dashboardCallsCallIdScoringGet)(callId, requestOptions);
1094
+ const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardCallsCallIdScoringGetQueryKey)(callId, params);
1095
+ const queryFn = () => (0, exports.dashboardCallsCallIdScoringGet)(callId, params, requestOptions);
1085
1096
  return { queryKey, queryFn, enabled: !!(callId), ...queryOptions };
1086
1097
  };
1087
1098
  exports.getDashboardCallsCallIdScoringGetQueryOptions = getDashboardCallsCallIdScoringGetQueryOptions;
1088
1099
  /**
1089
1100
  * @summary Get scoring results for a call
1090
1101
  */
1091
- function useDashboardCallsCallIdScoringGet(callId, options, queryClient) {
1092
- const queryOptions = (0, exports.getDashboardCallsCallIdScoringGetQueryOptions)(callId, options);
1102
+ function useDashboardCallsCallIdScoringGet(callId, params, options, queryClient) {
1103
+ const queryOptions = (0, exports.getDashboardCallsCallIdScoringGetQueryOptions)(callId, params, options);
1093
1104
  const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
1094
1105
  return { ...query, queryKey: queryOptions.queryKey };
1095
1106
  }
1107
+ const getDashboardCallsCallIdScoringRerunsPostUrl = (callId) => {
1108
+ return `/v1/dashboard/calls/${callId}/scoring/reruns`;
1109
+ };
1110
+ exports.getDashboardCallsCallIdScoringRerunsPostUrl = getDashboardCallsCallIdScoringRerunsPostUrl;
1111
+ const dashboardCallsCallIdScoringRerunsPost = async (callId, dashboardCallsCallIdScoringRerunsPostBody, options) => {
1112
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsCallIdScoringRerunsPostUrl)(callId), {
1113
+ ...options,
1114
+ method: 'POST',
1115
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
1116
+ body: JSON.stringify(dashboardCallsCallIdScoringRerunsPostBody)
1117
+ });
1118
+ };
1119
+ exports.dashboardCallsCallIdScoringRerunsPost = dashboardCallsCallIdScoringRerunsPost;
1120
+ const getDashboardCallsCallIdScoringRerunsPostMutationOptions = (options) => {
1121
+ const mutationKey = ['dashboardCallsCallIdScoringRerunsPost'];
1122
+ const { mutation: mutationOptions, request: requestOptions } = options ?
1123
+ options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
1124
+ options
1125
+ : { ...options, mutation: { ...options.mutation, mutationKey } }
1126
+ : { mutation: { mutationKey, }, request: undefined };
1127
+ const mutationFn = (props) => {
1128
+ const { callId, data } = props ?? {};
1129
+ return (0, exports.dashboardCallsCallIdScoringRerunsPost)(callId, data, requestOptions);
1130
+ };
1131
+ return { mutationFn, ...mutationOptions };
1132
+ };
1133
+ exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions = getDashboardCallsCallIdScoringRerunsPostMutationOptions;
1134
+ /**
1135
+ * @summary Rerun scoring for a call
1136
+ */
1137
+ const useDashboardCallsCallIdScoringRerunsPost = (options, queryClient) => {
1138
+ return (0, react_query_1.useMutation)((0, exports.getDashboardCallsCallIdScoringRerunsPostMutationOptions)(options), queryClient);
1139
+ };
1140
+ exports.useDashboardCallsCallIdScoringRerunsPost = useDashboardCallsCallIdScoringRerunsPost;
@@ -2018,7 +2018,7 @@ export declare const ActivateScorecardResponse: zod.ZodObject<{
2018
2018
  };
2019
2019
  }>;
2020
2020
  /**
2021
- * Returns scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
2021
+ * Returns latest successful scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
2022
2022
  * @summary Get scoring results for a call
2023
2023
  */
2024
2024
  export declare const GetCallScoringParams: zod.ZodObject<{
@@ -2028,6 +2028,13 @@ export declare const GetCallScoringParams: zod.ZodObject<{
2028
2028
  }, {
2029
2029
  callId: string;
2030
2030
  }>;
2031
+ export declare const GetCallScoringQueryParams: zod.ZodObject<{
2032
+ scorecardId: zod.ZodOptional<zod.ZodString>;
2033
+ }, "strip", zod.ZodTypeAny, {
2034
+ scorecardId?: string | undefined;
2035
+ }, {
2036
+ scorecardId?: string | undefined;
2037
+ }>;
2031
2038
  export declare const GetCallScoringResponse: zod.ZodObject<{
2032
2039
  data: zod.ZodObject<{
2033
2040
  autoFailed: zod.ZodBoolean;
@@ -2155,3 +2162,148 @@ export declare const GetCallScoringResponse: zod.ZodObject<{
2155
2162
  autoFailed: boolean;
2156
2163
  };
2157
2164
  }>;
2165
+ /**
2166
+ * Runs QA scoring for a call against a selected scorecard. Restricted to org admins until RBAC is available.
2167
+ * @summary Rerun scoring for a call
2168
+ */
2169
+ export declare const RerunCallScoringParams: zod.ZodObject<{
2170
+ callId: zod.ZodString;
2171
+ }, "strip", zod.ZodTypeAny, {
2172
+ callId: string;
2173
+ }, {
2174
+ callId: string;
2175
+ }>;
2176
+ export declare const RerunCallScoringBody: zod.ZodObject<{
2177
+ scorecardId: zod.ZodString;
2178
+ }, "strip", zod.ZodTypeAny, {
2179
+ scorecardId: string;
2180
+ }, {
2181
+ scorecardId: string;
2182
+ }>;
2183
+ export declare const RerunCallScoringResponse: zod.ZodObject<{
2184
+ data: zod.ZodObject<{
2185
+ autoFailed: zod.ZodBoolean;
2186
+ results: zod.ZodArray<zod.ZodObject<{
2187
+ id: zod.ZodString;
2188
+ call_id: zod.ZodString;
2189
+ scorecard_id: zod.ZodString;
2190
+ item_id: zod.ZodString;
2191
+ score: zod.ZodNullable<zod.ZodString>;
2192
+ explanation: zod.ZodNullable<zod.ZodString>;
2193
+ created_at: zod.ZodNullable<zod.ZodString>;
2194
+ item_name: zod.ZodString;
2195
+ item_category: zod.ZodString;
2196
+ item_type: zod.ZodEnum<["boolean", "numeric"]>;
2197
+ item_auto_fail: zod.ZodBoolean;
2198
+ item_na_enabled: zod.ZodBoolean;
2199
+ item_explanation_enabled: zod.ZodBoolean;
2200
+ position: zod.ZodNumber;
2201
+ }, "strip", zod.ZodTypeAny, {
2202
+ id: string;
2203
+ created_at: string | null;
2204
+ call_id: string;
2205
+ item_id: string;
2206
+ position: number;
2207
+ scorecard_id: string;
2208
+ score: string | null;
2209
+ explanation: string | null;
2210
+ item_name: string;
2211
+ item_category: string;
2212
+ item_type: "boolean" | "numeric";
2213
+ item_auto_fail: boolean;
2214
+ item_na_enabled: boolean;
2215
+ item_explanation_enabled: boolean;
2216
+ }, {
2217
+ id: string;
2218
+ created_at: string | null;
2219
+ call_id: string;
2220
+ item_id: string;
2221
+ position: number;
2222
+ scorecard_id: string;
2223
+ score: string | null;
2224
+ explanation: string | null;
2225
+ item_name: string;
2226
+ item_category: string;
2227
+ item_type: "boolean" | "numeric";
2228
+ item_auto_fail: boolean;
2229
+ item_na_enabled: boolean;
2230
+ item_explanation_enabled: boolean;
2231
+ }>, "many">;
2232
+ }, "strip", zod.ZodTypeAny, {
2233
+ results: {
2234
+ id: string;
2235
+ created_at: string | null;
2236
+ call_id: string;
2237
+ item_id: string;
2238
+ position: number;
2239
+ scorecard_id: string;
2240
+ score: string | null;
2241
+ explanation: string | null;
2242
+ item_name: string;
2243
+ item_category: string;
2244
+ item_type: "boolean" | "numeric";
2245
+ item_auto_fail: boolean;
2246
+ item_na_enabled: boolean;
2247
+ item_explanation_enabled: boolean;
2248
+ }[];
2249
+ autoFailed: boolean;
2250
+ }, {
2251
+ results: {
2252
+ id: string;
2253
+ created_at: string | null;
2254
+ call_id: string;
2255
+ item_id: string;
2256
+ position: number;
2257
+ scorecard_id: string;
2258
+ score: string | null;
2259
+ explanation: string | null;
2260
+ item_name: string;
2261
+ item_category: string;
2262
+ item_type: "boolean" | "numeric";
2263
+ item_auto_fail: boolean;
2264
+ item_na_enabled: boolean;
2265
+ item_explanation_enabled: boolean;
2266
+ }[];
2267
+ autoFailed: boolean;
2268
+ }>;
2269
+ }, "strip", zod.ZodTypeAny, {
2270
+ data: {
2271
+ results: {
2272
+ id: string;
2273
+ created_at: string | null;
2274
+ call_id: string;
2275
+ item_id: string;
2276
+ position: number;
2277
+ scorecard_id: string;
2278
+ score: string | null;
2279
+ explanation: string | null;
2280
+ item_name: string;
2281
+ item_category: string;
2282
+ item_type: "boolean" | "numeric";
2283
+ item_auto_fail: boolean;
2284
+ item_na_enabled: boolean;
2285
+ item_explanation_enabled: boolean;
2286
+ }[];
2287
+ autoFailed: boolean;
2288
+ };
2289
+ }, {
2290
+ data: {
2291
+ results: {
2292
+ id: string;
2293
+ created_at: string | null;
2294
+ call_id: string;
2295
+ item_id: string;
2296
+ position: number;
2297
+ scorecard_id: string;
2298
+ score: string | null;
2299
+ explanation: string | null;
2300
+ item_name: string;
2301
+ item_category: string;
2302
+ item_type: "boolean" | "numeric";
2303
+ item_auto_fail: boolean;
2304
+ item_na_enabled: boolean;
2305
+ item_explanation_enabled: boolean;
2306
+ }[];
2307
+ autoFailed: boolean;
2308
+ };
2309
+ }>;
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  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 = exports.GetLatestTargetQueryParams = exports.GetClientFeaturesResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = 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.GetCampaignInputFieldsResponse = exports.GetCampaignInputFieldsParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
37
- exports.GetCallScoringResponse = exports.GetCallScoringParams = exports.ActivateScorecardResponse = exports.ActivateScorecardParams = exports.GetScorecardResponse = exports.GetScorecardParams = exports.GetActiveScorecardResponse = exports.GetActiveScorecardParams = exports.GetScorecardVersionsResponse = exports.GetScorecardVersionsParams = exports.DeployScorecardBody = exports.deployScorecardBodyItemsItemTwoInstructionMax = 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 = void 0;
38
38
  /**
39
39
  * Generated by orval v8.2.0 🍺
40
40
  * Do not edit manually.
@@ -563,12 +563,15 @@ exports.ActivateScorecardResponse = zod.object({
563
563
  })
564
564
  });
565
565
  /**
566
- * Returns scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
566
+ * Returns latest successful scoring results with item metadata and a derived autoFailed flag. Returns empty results if the call has not been scored.
567
567
  * @summary Get scoring results for a call
568
568
  */
569
569
  exports.GetCallScoringParams = zod.object({
570
570
  "callId": zod.string()
571
571
  });
572
+ exports.GetCallScoringQueryParams = zod.object({
573
+ "scorecardId": zod.string().optional()
574
+ });
572
575
  exports.GetCallScoringResponse = zod.object({
573
576
  "data": zod.object({
574
577
  "autoFailed": zod.boolean(),
@@ -590,3 +593,34 @@ exports.GetCallScoringResponse = zod.object({
590
593
  }))
591
594
  })
592
595
  });
596
+ /**
597
+ * Runs QA scoring for a call against a selected scorecard. Restricted to org admins until RBAC is available.
598
+ * @summary Rerun scoring for a call
599
+ */
600
+ exports.RerunCallScoringParams = zod.object({
601
+ "callId": zod.string()
602
+ });
603
+ exports.RerunCallScoringBody = zod.object({
604
+ "scorecardId": zod.string().min(1)
605
+ });
606
+ exports.RerunCallScoringResponse = zod.object({
607
+ "data": zod.object({
608
+ "autoFailed": zod.boolean(),
609
+ "results": zod.array(zod.object({
610
+ "id": zod.string(),
611
+ "call_id": zod.string(),
612
+ "scorecard_id": zod.string(),
613
+ "item_id": zod.string(),
614
+ "score": zod.string().nullable(),
615
+ "explanation": zod.string().nullable(),
616
+ "created_at": zod.string().datetime({}).nullable(),
617
+ "item_name": zod.string(),
618
+ "item_category": zod.string(),
619
+ "item_type": zod.enum(['boolean', 'numeric']),
620
+ "item_auto_fail": zod.boolean(),
621
+ "item_na_enabled": zod.boolean(),
622
+ "item_explanation_enabled": zod.boolean(),
623
+ "position": zod.number()
624
+ }))
625
+ })
626
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domu-ai/kiban-sdk",
3
- "version": "1.170.2",
3
+ "version": "1.170.4",
4
4
  "description": "Generated TypeScript SDKs for Kiban public, internal, and dashboard APIs.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./index.js",