@domu-ai/kiban-sdk 1.171.1 → 1.173.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,3 +56,4 @@ const campaigns = getSuccessData(
56
56
  - `@domu-ai/kiban-sdk/internal` — internal API
57
57
  - `@domu-ai/kiban-sdk/dashboard` — dashboard API
58
58
  - `@domu-ai/kiban-sdk/fetcher` — fetcher utilities
59
+ - `@domu-ai/kiban-sdk/flags` — feature flag registry (`FLAGS`, `FlagKey`, `FlagConfig`, `FLAG_KEYS`)
@@ -614,6 +614,64 @@ export type DashboardClientFeaturesGet500 = {
614
614
  code?: string;
615
615
  details?: unknown | null;
616
616
  };
617
+ export type DashboardFlagsGet200DataFlagsVoicebotStudio = {
618
+ enabled: boolean;
619
+ config?: unknown | null;
620
+ };
621
+ export type DashboardFlagsGet200DataFlagsCampaignManager = {
622
+ enabled: boolean;
623
+ config?: unknown | null;
624
+ };
625
+ export type DashboardFlagsGet200DataFlagsSchedules = {
626
+ enabled: boolean;
627
+ config?: unknown | null;
628
+ };
629
+ export type DashboardFlagsGet200DataFlagsObservabilityEnabled = {
630
+ enabled: boolean;
631
+ config?: unknown | null;
632
+ };
633
+ export type DashboardFlagsGet200DataFlagsAgentsEnabled = {
634
+ enabled: boolean;
635
+ config?: unknown | null;
636
+ };
637
+ export type DashboardFlagsGet200DataFlagsPrivateRecordingsEnabled = {
638
+ enabled: boolean;
639
+ config?: unknown | null;
640
+ };
641
+ export type DashboardFlagsGet200DataFlagsPromptViewingEnabled = {
642
+ enabled: boolean;
643
+ config?: unknown | null;
644
+ };
645
+ export type DashboardFlagsGet200DataFlagsQaEnabled = {
646
+ enabled: boolean;
647
+ config?: unknown | null;
648
+ };
649
+ export type DashboardFlagsGet200DataFlags = {
650
+ voicebot_studio: DashboardFlagsGet200DataFlagsVoicebotStudio;
651
+ campaign_manager: DashboardFlagsGet200DataFlagsCampaignManager;
652
+ schedules: DashboardFlagsGet200DataFlagsSchedules;
653
+ observability_enabled: DashboardFlagsGet200DataFlagsObservabilityEnabled;
654
+ agents_enabled: DashboardFlagsGet200DataFlagsAgentsEnabled;
655
+ private_recordings_enabled: DashboardFlagsGet200DataFlagsPrivateRecordingsEnabled;
656
+ prompt_viewing_enabled: DashboardFlagsGet200DataFlagsPromptViewingEnabled;
657
+ qa_enabled: DashboardFlagsGet200DataFlagsQaEnabled;
658
+ };
659
+ export type DashboardFlagsGet200Data = {
660
+ flags: DashboardFlagsGet200DataFlags;
661
+ };
662
+ export type DashboardFlagsGet200 = {
663
+ data: DashboardFlagsGet200Data;
664
+ };
665
+ export type DashboardFlagsGet401 = {
666
+ message: string;
667
+ code?: string;
668
+ details?: unknown | null;
669
+ };
670
+ export type DashboardFlagsGet500 = {
671
+ message: string;
672
+ code?: string;
673
+ details?: unknown | null;
674
+ };
617
675
  export type DashboardTargetsLatestGetParams = {
618
676
  campaignId: string;
619
677
  };
@@ -2070,6 +2128,58 @@ export declare function useDashboardClientFeaturesGet<TData = Awaited<ReturnType
2070
2128
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2071
2129
  queryKey: DataTag<QueryKey, TData, TError>;
2072
2130
  };
2131
+ /**
2132
+ * Returns the full set of feature flags (with enabled state and optional config) for the authenticated user's organization. Flags not in the response default to disabled.
2133
+ * @summary Get feature flags for the authenticated org
2134
+ */
2135
+ export type dashboardFlagsGetResponse200 = {
2136
+ data: DashboardFlagsGet200;
2137
+ status: 200;
2138
+ };
2139
+ export type dashboardFlagsGetResponse401 = {
2140
+ data: DashboardFlagsGet401;
2141
+ status: 401;
2142
+ };
2143
+ export type dashboardFlagsGetResponse500 = {
2144
+ data: DashboardFlagsGet500;
2145
+ status: 500;
2146
+ };
2147
+ export type dashboardFlagsGetResponseSuccess = (dashboardFlagsGetResponse200) & {
2148
+ headers: Headers;
2149
+ };
2150
+ export type dashboardFlagsGetResponseError = (dashboardFlagsGetResponse401 | dashboardFlagsGetResponse500) & {
2151
+ headers: Headers;
2152
+ };
2153
+ export type dashboardFlagsGetResponse = (dashboardFlagsGetResponseSuccess | dashboardFlagsGetResponseError);
2154
+ export declare const getDashboardFlagsGetUrl: () => string;
2155
+ export declare const dashboardFlagsGet: (options?: RequestInit) => Promise<dashboardFlagsGetResponse>;
2156
+ export declare const getDashboardFlagsGetQueryKey: () => readonly ["/v1/dashboard/flags"];
2157
+ export declare const getDashboardFlagsGetQueryOptions: <TData = Awaited<ReturnType<typeof dashboardFlagsGet>>, TError = DashboardFlagsGet401 | DashboardFlagsGet500>(options?: {
2158
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, TData>>;
2159
+ request?: SecondParameter<typeof customFetcher>;
2160
+ }) => UseQueryOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, TData> & {
2161
+ queryKey: DataTag<QueryKey, TData, TError>;
2162
+ };
2163
+ export type DashboardFlagsGetQueryResult = NonNullable<Awaited<ReturnType<typeof dashboardFlagsGet>>>;
2164
+ export type DashboardFlagsGetQueryError = DashboardFlagsGet401 | DashboardFlagsGet500;
2165
+ export declare function useDashboardFlagsGet<TData = Awaited<ReturnType<typeof dashboardFlagsGet>>, TError = DashboardFlagsGet401 | DashboardFlagsGet500>(options: {
2166
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, Awaited<ReturnType<typeof dashboardFlagsGet>>>, 'initialData'>;
2167
+ request?: SecondParameter<typeof customFetcher>;
2168
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
2169
+ queryKey: DataTag<QueryKey, TData, TError>;
2170
+ };
2171
+ export declare function useDashboardFlagsGet<TData = Awaited<ReturnType<typeof dashboardFlagsGet>>, TError = DashboardFlagsGet401 | DashboardFlagsGet500>(options?: {
2172
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, Awaited<ReturnType<typeof dashboardFlagsGet>>>, 'initialData'>;
2173
+ request?: SecondParameter<typeof customFetcher>;
2174
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2175
+ queryKey: DataTag<QueryKey, TData, TError>;
2176
+ };
2177
+ export declare function useDashboardFlagsGet<TData = Awaited<ReturnType<typeof dashboardFlagsGet>>, TError = DashboardFlagsGet401 | DashboardFlagsGet500>(options?: {
2178
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof dashboardFlagsGet>>, TError, TData>>;
2179
+ request?: SecondParameter<typeof customFetcher>;
2180
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
2181
+ queryKey: DataTag<QueryKey, TData, TError>;
2182
+ };
2073
2183
  /**
2074
2184
  * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
2075
2185
  * @summary Get latest target for a campaign
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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;
4
+ 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.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 = exports.getDashboardInovoWindmillSchedulesNameRunsGetQueryKey = exports.dashboardInovoWindmillSchedulesNameRunsGet = exports.getDashboardInovoWindmillSchedulesNameRunsGetUrl = exports.useDashboardInovoWindmillSchedulesNameTogglePatch = void 0;
6
6
  exports.useDashboardCampaignsGet = useDashboardCampaignsGet;
7
7
  exports.useDashboardCampaignsCampaignIdInputFieldsGet = useDashboardCampaignsCampaignIdInputFieldsGet;
8
8
  exports.useDashboardCampaignsCampaignIdScheduleConfigGet = useDashboardCampaignsCampaignIdScheduleConfigGet;
@@ -13,6 +13,7 @@ exports.useDashboardOutputFieldsGet = useDashboardOutputFieldsGet;
13
13
  exports.useDashboardCallsCallIdGet = useDashboardCallsCallIdGet;
14
14
  exports.useDashboardCallsCallIdRecordingUrlGet = useDashboardCallsCallIdRecordingUrlGet;
15
15
  exports.useDashboardClientFeaturesGet = useDashboardClientFeaturesGet;
16
+ exports.useDashboardFlagsGet = useDashboardFlagsGet;
16
17
  exports.useDashboardTargetsLatestGet = useDashboardTargetsLatestGet;
17
18
  exports.useDashboardInovoWindmillSchedulesGet = useDashboardInovoWindmillSchedulesGet;
18
19
  exports.useDashboardInovoWindmillSchedulesNameGet = useDashboardInovoWindmillSchedulesNameGet;
@@ -634,6 +635,38 @@ function useDashboardClientFeaturesGet(options, queryClient) {
634
635
  const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
635
636
  return { ...query, queryKey: queryOptions.queryKey };
636
637
  }
638
+ const getDashboardFlagsGetUrl = () => {
639
+ return `/v1/dashboard/flags`;
640
+ };
641
+ exports.getDashboardFlagsGetUrl = getDashboardFlagsGetUrl;
642
+ const dashboardFlagsGet = async (options) => {
643
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardFlagsGetUrl)(), {
644
+ ...options,
645
+ method: 'GET'
646
+ });
647
+ };
648
+ exports.dashboardFlagsGet = dashboardFlagsGet;
649
+ const getDashboardFlagsGetQueryKey = () => {
650
+ return [
651
+ `/v1/dashboard/flags`
652
+ ];
653
+ };
654
+ exports.getDashboardFlagsGetQueryKey = getDashboardFlagsGetQueryKey;
655
+ const getDashboardFlagsGetQueryOptions = (options) => {
656
+ const { query: queryOptions, request: requestOptions } = options ?? {};
657
+ const queryKey = queryOptions?.queryKey ?? (0, exports.getDashboardFlagsGetQueryKey)();
658
+ const queryFn = () => (0, exports.dashboardFlagsGet)(requestOptions);
659
+ return { queryKey, queryFn, ...queryOptions };
660
+ };
661
+ exports.getDashboardFlagsGetQueryOptions = getDashboardFlagsGetQueryOptions;
662
+ /**
663
+ * @summary Get feature flags for the authenticated org
664
+ */
665
+ function useDashboardFlagsGet(options, queryClient) {
666
+ const queryOptions = (0, exports.getDashboardFlagsGetQueryOptions)(options);
667
+ const query = (0, react_query_1.useQuery)(queryOptions, queryClient);
668
+ return { ...query, queryKey: queryOptions.queryKey };
669
+ }
637
670
  const getDashboardTargetsLatestGetUrl = (params) => {
638
671
  const normalizedParams = new URLSearchParams();
639
672
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -1196,6 +1196,306 @@ export declare const GetClientFeaturesResponse: zod.ZodObject<{
1196
1196
  promptViewingEnabled: boolean;
1197
1197
  };
1198
1198
  }>;
1199
+ /**
1200
+ * Returns the full set of feature flags (with enabled state and optional config) for the authenticated user's organization. Flags not in the response default to disabled.
1201
+ * @summary Get feature flags for the authenticated org
1202
+ */
1203
+ export declare const GetOrgFlagsResponse: zod.ZodObject<{
1204
+ data: zod.ZodObject<{
1205
+ flags: zod.ZodObject<{
1206
+ voicebot_studio: zod.ZodObject<{
1207
+ enabled: zod.ZodBoolean;
1208
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1209
+ }, "strip", zod.ZodTypeAny, {
1210
+ enabled: boolean;
1211
+ config?: unknown;
1212
+ }, {
1213
+ enabled: boolean;
1214
+ config?: unknown;
1215
+ }>;
1216
+ campaign_manager: zod.ZodObject<{
1217
+ enabled: zod.ZodBoolean;
1218
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1219
+ }, "strip", zod.ZodTypeAny, {
1220
+ enabled: boolean;
1221
+ config?: unknown;
1222
+ }, {
1223
+ enabled: boolean;
1224
+ config?: unknown;
1225
+ }>;
1226
+ schedules: zod.ZodObject<{
1227
+ enabled: zod.ZodBoolean;
1228
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1229
+ }, "strip", zod.ZodTypeAny, {
1230
+ enabled: boolean;
1231
+ config?: unknown;
1232
+ }, {
1233
+ enabled: boolean;
1234
+ config?: unknown;
1235
+ }>;
1236
+ observability_enabled: zod.ZodObject<{
1237
+ enabled: zod.ZodBoolean;
1238
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1239
+ }, "strip", zod.ZodTypeAny, {
1240
+ enabled: boolean;
1241
+ config?: unknown;
1242
+ }, {
1243
+ enabled: boolean;
1244
+ config?: unknown;
1245
+ }>;
1246
+ agents_enabled: zod.ZodObject<{
1247
+ enabled: zod.ZodBoolean;
1248
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1249
+ }, "strip", zod.ZodTypeAny, {
1250
+ enabled: boolean;
1251
+ config?: unknown;
1252
+ }, {
1253
+ enabled: boolean;
1254
+ config?: unknown;
1255
+ }>;
1256
+ private_recordings_enabled: zod.ZodObject<{
1257
+ enabled: zod.ZodBoolean;
1258
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1259
+ }, "strip", zod.ZodTypeAny, {
1260
+ enabled: boolean;
1261
+ config?: unknown;
1262
+ }, {
1263
+ enabled: boolean;
1264
+ config?: unknown;
1265
+ }>;
1266
+ prompt_viewing_enabled: zod.ZodObject<{
1267
+ enabled: zod.ZodBoolean;
1268
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1269
+ }, "strip", zod.ZodTypeAny, {
1270
+ enabled: boolean;
1271
+ config?: unknown;
1272
+ }, {
1273
+ enabled: boolean;
1274
+ config?: unknown;
1275
+ }>;
1276
+ qa_enabled: zod.ZodObject<{
1277
+ enabled: zod.ZodBoolean;
1278
+ config: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1279
+ }, "strip", zod.ZodTypeAny, {
1280
+ enabled: boolean;
1281
+ config?: unknown;
1282
+ }, {
1283
+ enabled: boolean;
1284
+ config?: unknown;
1285
+ }>;
1286
+ }, "strip", zod.ZodTypeAny, {
1287
+ voicebot_studio: {
1288
+ enabled: boolean;
1289
+ config?: unknown;
1290
+ };
1291
+ campaign_manager: {
1292
+ enabled: boolean;
1293
+ config?: unknown;
1294
+ };
1295
+ schedules: {
1296
+ enabled: boolean;
1297
+ config?: unknown;
1298
+ };
1299
+ observability_enabled: {
1300
+ enabled: boolean;
1301
+ config?: unknown;
1302
+ };
1303
+ agents_enabled: {
1304
+ enabled: boolean;
1305
+ config?: unknown;
1306
+ };
1307
+ private_recordings_enabled: {
1308
+ enabled: boolean;
1309
+ config?: unknown;
1310
+ };
1311
+ prompt_viewing_enabled: {
1312
+ enabled: boolean;
1313
+ config?: unknown;
1314
+ };
1315
+ qa_enabled: {
1316
+ enabled: boolean;
1317
+ config?: unknown;
1318
+ };
1319
+ }, {
1320
+ voicebot_studio: {
1321
+ enabled: boolean;
1322
+ config?: unknown;
1323
+ };
1324
+ campaign_manager: {
1325
+ enabled: boolean;
1326
+ config?: unknown;
1327
+ };
1328
+ schedules: {
1329
+ enabled: boolean;
1330
+ config?: unknown;
1331
+ };
1332
+ observability_enabled: {
1333
+ enabled: boolean;
1334
+ config?: unknown;
1335
+ };
1336
+ agents_enabled: {
1337
+ enabled: boolean;
1338
+ config?: unknown;
1339
+ };
1340
+ private_recordings_enabled: {
1341
+ enabled: boolean;
1342
+ config?: unknown;
1343
+ };
1344
+ prompt_viewing_enabled: {
1345
+ enabled: boolean;
1346
+ config?: unknown;
1347
+ };
1348
+ qa_enabled: {
1349
+ enabled: boolean;
1350
+ config?: unknown;
1351
+ };
1352
+ }>;
1353
+ }, "strip", zod.ZodTypeAny, {
1354
+ flags: {
1355
+ voicebot_studio: {
1356
+ enabled: boolean;
1357
+ config?: unknown;
1358
+ };
1359
+ campaign_manager: {
1360
+ enabled: boolean;
1361
+ config?: unknown;
1362
+ };
1363
+ schedules: {
1364
+ enabled: boolean;
1365
+ config?: unknown;
1366
+ };
1367
+ observability_enabled: {
1368
+ enabled: boolean;
1369
+ config?: unknown;
1370
+ };
1371
+ agents_enabled: {
1372
+ enabled: boolean;
1373
+ config?: unknown;
1374
+ };
1375
+ private_recordings_enabled: {
1376
+ enabled: boolean;
1377
+ config?: unknown;
1378
+ };
1379
+ prompt_viewing_enabled: {
1380
+ enabled: boolean;
1381
+ config?: unknown;
1382
+ };
1383
+ qa_enabled: {
1384
+ enabled: boolean;
1385
+ config?: unknown;
1386
+ };
1387
+ };
1388
+ }, {
1389
+ flags: {
1390
+ voicebot_studio: {
1391
+ enabled: boolean;
1392
+ config?: unknown;
1393
+ };
1394
+ campaign_manager: {
1395
+ enabled: boolean;
1396
+ config?: unknown;
1397
+ };
1398
+ schedules: {
1399
+ enabled: boolean;
1400
+ config?: unknown;
1401
+ };
1402
+ observability_enabled: {
1403
+ enabled: boolean;
1404
+ config?: unknown;
1405
+ };
1406
+ agents_enabled: {
1407
+ enabled: boolean;
1408
+ config?: unknown;
1409
+ };
1410
+ private_recordings_enabled: {
1411
+ enabled: boolean;
1412
+ config?: unknown;
1413
+ };
1414
+ prompt_viewing_enabled: {
1415
+ enabled: boolean;
1416
+ config?: unknown;
1417
+ };
1418
+ qa_enabled: {
1419
+ enabled: boolean;
1420
+ config?: unknown;
1421
+ };
1422
+ };
1423
+ }>;
1424
+ }, "strip", zod.ZodTypeAny, {
1425
+ data: {
1426
+ flags: {
1427
+ voicebot_studio: {
1428
+ enabled: boolean;
1429
+ config?: unknown;
1430
+ };
1431
+ campaign_manager: {
1432
+ enabled: boolean;
1433
+ config?: unknown;
1434
+ };
1435
+ schedules: {
1436
+ enabled: boolean;
1437
+ config?: unknown;
1438
+ };
1439
+ observability_enabled: {
1440
+ enabled: boolean;
1441
+ config?: unknown;
1442
+ };
1443
+ agents_enabled: {
1444
+ enabled: boolean;
1445
+ config?: unknown;
1446
+ };
1447
+ private_recordings_enabled: {
1448
+ enabled: boolean;
1449
+ config?: unknown;
1450
+ };
1451
+ prompt_viewing_enabled: {
1452
+ enabled: boolean;
1453
+ config?: unknown;
1454
+ };
1455
+ qa_enabled: {
1456
+ enabled: boolean;
1457
+ config?: unknown;
1458
+ };
1459
+ };
1460
+ };
1461
+ }, {
1462
+ data: {
1463
+ flags: {
1464
+ voicebot_studio: {
1465
+ enabled: boolean;
1466
+ config?: unknown;
1467
+ };
1468
+ campaign_manager: {
1469
+ enabled: boolean;
1470
+ config?: unknown;
1471
+ };
1472
+ schedules: {
1473
+ enabled: boolean;
1474
+ config?: unknown;
1475
+ };
1476
+ observability_enabled: {
1477
+ enabled: boolean;
1478
+ config?: unknown;
1479
+ };
1480
+ agents_enabled: {
1481
+ enabled: boolean;
1482
+ config?: unknown;
1483
+ };
1484
+ private_recordings_enabled: {
1485
+ enabled: boolean;
1486
+ config?: unknown;
1487
+ };
1488
+ prompt_viewing_enabled: {
1489
+ enabled: boolean;
1490
+ config?: unknown;
1491
+ };
1492
+ qa_enabled: {
1493
+ enabled: boolean;
1494
+ config?: unknown;
1495
+ };
1496
+ };
1497
+ };
1498
+ }>;
1199
1499
  /**
1200
1500
  * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
1201
1501
  * @summary Get latest target for a campaign
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
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.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;
36
+ 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.GetOrgFlagsResponse = 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.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 = void 0;
38
38
  /**
39
39
  * Generated by orval v8.2.0 🍺
40
40
  * Do not edit manually.
@@ -321,6 +321,48 @@ exports.GetClientFeaturesResponse = zod.object({
321
321
  "promptViewingEnabled": zod.boolean()
322
322
  })
323
323
  });
324
+ /**
325
+ * Returns the full set of feature flags (with enabled state and optional config) for the authenticated user's organization. Flags not in the response default to disabled.
326
+ * @summary Get feature flags for the authenticated org
327
+ */
328
+ exports.GetOrgFlagsResponse = zod.object({
329
+ "data": zod.object({
330
+ "flags": zod.object({
331
+ "voicebot_studio": zod.object({
332
+ "enabled": zod.boolean(),
333
+ "config": zod.unknown().nullish()
334
+ }),
335
+ "campaign_manager": zod.object({
336
+ "enabled": zod.boolean(),
337
+ "config": zod.unknown().nullish()
338
+ }),
339
+ "schedules": zod.object({
340
+ "enabled": zod.boolean(),
341
+ "config": zod.unknown().nullish()
342
+ }),
343
+ "observability_enabled": zod.object({
344
+ "enabled": zod.boolean(),
345
+ "config": zod.unknown().nullish()
346
+ }),
347
+ "agents_enabled": zod.object({
348
+ "enabled": zod.boolean(),
349
+ "config": zod.unknown().nullish()
350
+ }),
351
+ "private_recordings_enabled": zod.object({
352
+ "enabled": zod.boolean(),
353
+ "config": zod.unknown().nullish()
354
+ }),
355
+ "prompt_viewing_enabled": zod.object({
356
+ "enabled": zod.boolean(),
357
+ "config": zod.unknown().nullish()
358
+ }),
359
+ "qa_enabled": zod.object({
360
+ "enabled": zod.boolean(),
361
+ "config": zod.unknown().nullish()
362
+ })
363
+ })
364
+ })
365
+ });
324
366
  /**
325
367
  * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
326
368
  * @summary Get latest target for a campaign
package/flags.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { z } from "zod";
2
+ export declare const FLAGS: {
3
+ readonly voicebot_studio: null;
4
+ readonly campaign_manager: null;
5
+ readonly schedules: null;
6
+ readonly observability_enabled: null;
7
+ readonly agents_enabled: null;
8
+ readonly private_recordings_enabled: null;
9
+ readonly prompt_viewing_enabled: null;
10
+ readonly qa_enabled: null;
11
+ };
12
+ export type FlagKey = keyof typeof FLAGS;
13
+ export type FlagConfig<K extends FlagKey> = (typeof FLAGS)[K] extends z.ZodType ? z.infer<(typeof FLAGS)[K]> : null;
14
+ export declare const FLAG_KEYS: FlagKey[];
15
+ export declare function getFlagSchema(key: FlagKey): z.ZodType | null;
package/flags.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLAG_KEYS = exports.FLAGS = void 0;
4
+ exports.getFlagSchema = getFlagSchema;
5
+ exports.FLAGS = {
6
+ voicebot_studio: null,
7
+ campaign_manager: null,
8
+ schedules: null,
9
+ observability_enabled: null,
10
+ agents_enabled: null,
11
+ private_recordings_enabled: null,
12
+ prompt_viewing_enabled: null,
13
+ qa_enabled: null,
14
+ };
15
+ exports.FLAG_KEYS = Object.keys(exports.FLAGS);
16
+ function getFlagSchema(key) {
17
+ return exports.FLAGS[key];
18
+ }
@@ -54,10 +54,10 @@ export declare const InternalActionsPostBodyActionType: {
54
54
  readonly targetenrich: "target.enrich";
55
55
  readonly smssend: "sms.send";
56
56
  readonly transferprepareContact: "transfer.prepareContact";
57
+ readonly transferupdateCall: "transfer.updateCall";
57
58
  readonly agentsessionlogin: "agentsession.login";
58
59
  readonly screenpopget: "screenpop.get";
59
60
  readonly callupdate: "call.update";
60
- readonly docdbpost: "docdb.post";
61
61
  readonly sipheaderextract: "sipheader.extract";
62
62
  };
63
63
  export type InternalActionsPostBody = {
@@ -40,10 +40,10 @@ exports.InternalActionsPostBodyActionType = {
40
40
  targetenrich: 'target.enrich',
41
41
  smssend: 'sms.send',
42
42
  transferprepareContact: 'transfer.prepareContact',
43
+ transferupdateCall: 'transfer.updateCall',
43
44
  agentsessionlogin: 'agentsession.login',
44
45
  screenpopget: 'screenpop.get',
45
46
  callupdate: 'call.update',
46
- docdbpost: 'docdb.post',
47
47
  sipheaderextract: 'sipheader.extract',
48
48
  };
49
49
  exports.InternalAffirmOutboundPortfolioPost200Status = {