@zeniai/client-epic-state 5.2.34 → 5.2.36

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.
Files changed (51) hide show
  1. package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +1 -13
  2. package/lib/entity/sectionClassesViewV2/sectionClassesViewEpic.js +7 -10
  3. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +3 -3
  4. package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +2 -6
  5. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +3 -3
  6. package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +3 -4
  7. package/lib/epic.js +0 -12
  8. package/lib/esm/entity/class/classReducer.js +1 -1
  9. package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewEpic.js +7 -10
  10. package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +2 -6
  11. package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +4 -5
  12. package/lib/esm/epic.js +0 -12
  13. package/lib/esm/index.js +2 -2
  14. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +1 -266
  15. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +0 -50
  16. package/lib/index.d.ts +3 -3
  17. package/lib/index.js +40 -55
  18. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +0 -90
  19. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +123 -164
  20. package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -268
  21. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +1 -13
  22. package/lib/view/aiCfoView/aiCfoViewSelector.js +0 -55
  23. package/lib/view/aiCfoView/aiCfoViewState.d.ts +0 -157
  24. package/lib/view/cashFlowClassesView/cashFlowClassesViewPayload.d.ts +4 -4
  25. package/lib/view/cashFlowProjectView/cashFlowProjectViewPayload.d.ts +4 -4
  26. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +0 -12
  27. package/package.json +1 -1
  28. package/lib/esm/view/aiCfoView/epics/deleteRoutineEpic.js +0 -35
  29. package/lib/esm/view/aiCfoView/epics/fetchRoutineRunsEpic.js +0 -35
  30. package/lib/esm/view/aiCfoView/epics/fetchRoutinesEpic.js +0 -37
  31. package/lib/esm/view/aiCfoView/epics/runRoutineEpic.js +0 -34
  32. package/lib/esm/view/aiCfoView/epics/saveRoutineEpic.js +0 -65
  33. package/lib/esm/view/aiCfoView/epics/setRoutineEnabledEpic.js +0 -28
  34. package/lib/esm/view/aiCfoView/epics/toRoutine.js +0 -64
  35. package/lib/esm/view/aiCfoView/epics/toRoutineRun.js +0 -42
  36. package/lib/view/aiCfoView/epics/deleteRoutineEpic.d.ts +0 -18
  37. package/lib/view/aiCfoView/epics/deleteRoutineEpic.js +0 -39
  38. package/lib/view/aiCfoView/epics/fetchRoutineRunsEpic.d.ts +0 -13
  39. package/lib/view/aiCfoView/epics/fetchRoutineRunsEpic.js +0 -39
  40. package/lib/view/aiCfoView/epics/fetchRoutinesEpic.d.ts +0 -7
  41. package/lib/view/aiCfoView/epics/fetchRoutinesEpic.js +0 -41
  42. package/lib/view/aiCfoView/epics/runRoutineEpic.d.ts +0 -14
  43. package/lib/view/aiCfoView/epics/runRoutineEpic.js +0 -38
  44. package/lib/view/aiCfoView/epics/saveRoutineEpic.d.ts +0 -13
  45. package/lib/view/aiCfoView/epics/saveRoutineEpic.js +0 -69
  46. package/lib/view/aiCfoView/epics/setRoutineEnabledEpic.d.ts +0 -15
  47. package/lib/view/aiCfoView/epics/setRoutineEnabledEpic.js +0 -32
  48. package/lib/view/aiCfoView/epics/toRoutine.d.ts +0 -17
  49. package/lib/view/aiCfoView/epics/toRoutine.js +0 -69
  50. package/lib/view/aiCfoView/epics/toRoutineRun.d.ts +0 -12
  51. package/lib/view/aiCfoView/epics/toRoutineRun.js +0 -47
@@ -5,23 +5,51 @@ import { ChatSessionPayload } from '../../entity/aiCfo/aiCfoPayload';
5
5
  import { AiCfoAnswerResponseType } from '../../entity/aiCfo/aiCfoState';
6
6
  import { ZeniAPIStatus } from '../../responsePayload';
7
7
  import { ContextStatus, FeedbackType, SubmitFeedbackPayload } from './aiCfoViewPayload';
8
- import { AiCfoViewState, Routine, RoutineDraft, RoutineRun, Skill, SkillDetail, SkillDraft, SkillVersion, SkillVisibility } from './aiCfoViewState';
8
+ import { AiCfoViewState, Skill, SkillDetail, SkillDraft, SkillVersion, SkillVisibility } from './aiCfoViewState';
9
9
  export declare const initialAiCfoViewState: AiCfoViewState;
10
- export declare const acceptMasterTOS: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userRoleId: string], {
11
- userRoleId: string;
12
- }, "aiCfoView/acceptMasterTOS", never, never>, acceptMasterTOSFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/acceptMasterTOSFailure">, acceptMasterTOSSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/acceptMasterTOSSuccess">, applyAiCfoSidePanelHostPageTransition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
- newAiCfoSidePanelHostPageKey: string;
14
- /** When omitted or null, clears the active session (empty / suggested questions). */
15
- nextCurrentChatSessionId?: ID | null;
16
- }, "aiCfoView/applyAiCfoSidePanelHostPageTransition">, clearAiCfoSidePanelHostPageContext: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoSidePanelHostPageContext">, clearCurrentSessionId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearCurrentSessionId">, clearDeleteChatSessionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
+ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined, macroId?: string | undefined], {
11
+ sessionId: string;
12
+ questionAnswerId: string;
13
+ userId: string;
14
+ questionId: string;
15
+ createdAt: import("dayjs").Dayjs;
16
+ question: string;
17
+ files: File[] | undefined;
18
+ macroId: string | undefined;
19
+ }, "aiCfoView/submitQuestion", never, never>, submitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/submitQuestionSuccess">, submitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ error: ZeniAPIStatus;
21
+ sessionId: ID;
22
+ }, "aiCfoView/submitQuestionFailure">, updateResponseState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
23
  chatSessionId: ID;
18
- }, "aiCfoView/clearDeleteChatSessionStatus">, clearLastContextMessage: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearLastContextMessage">, clearSkillDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearSkillDetail">, clearSkillMutation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearSkillMutation">, closeRoutineRuns: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/closeRoutineRuns">, closeRoutinesBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/closeRoutinesBrowser">, closeSkillsBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/closeSkillsBrowser">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, contextRefId?: string | undefined, contextType?: string | undefined, pageContext?: string | undefined], {
24
+ fetchState: FetchStateAndError;
25
+ responseType: AiCfoAnswerResponseType;
26
+ }, "aiCfoView/updateResponseState">, updateAiCfoViewScrollPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "aiCfoView/updateAiCfoViewScrollPosition">, updateCurrentInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/updateCurrentInput">, submitFeedback: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, chatMessageId: string, feedbackType: FeedbackType, questionText?: string | undefined, answerText?: string | undefined, model?: string | undefined], SubmitFeedbackPayload, "aiCfoView/submitFeedback", never, never>, submitFeedbackSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatMessageId: string], {
27
+ chatMessageId: string;
28
+ }, "aiCfoView/submitFeedbackSuccess", never, never>, submitFeedbackFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatMessageId: string, error: ZeniAPIStatus<Record<string, unknown>>], {
29
+ chatMessageId: string;
30
+ error: ZeniAPIStatus<Record<string, unknown>>;
31
+ }, "aiCfoView/submitFeedbackFailure", never, never>, setSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
32
+ agentId: string;
33
+ sessionId: string;
34
+ /**
35
+ * Set only by the side-panel host-page sync, which re-applies a page's saved
36
+ * session rather than acting on a user's choice. Such a restore can fire at any
37
+ * time — when the sessions list resolves, say — including while the user is
38
+ * deliberately looking at the Skills browser, so it must not close it.
39
+ */
40
+ isRestore?: boolean;
41
+ }, "aiCfoView/setSession">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, contextRefId?: string | undefined, contextType?: string | undefined, pageContext?: string | undefined], {
19
42
  agentId: string;
20
43
  contextRefId: string | undefined;
21
44
  contextType: string | undefined;
22
45
  pageContext: string | undefined;
23
46
  userId: string;
24
- }, "aiCfoView/createSession", never, never>, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined, pageContext?: string | undefined, macroId?: string | undefined], {
47
+ }, "aiCfoView/createSession", never, never>, createSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
48
+ agentId: string;
49
+ sessionId: ID;
50
+ contextMessage?: string;
51
+ contextStatus?: ContextStatus;
52
+ }, "aiCfoView/createSessionSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionFailure">, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined, pageContext?: string | undefined, macroId?: string | undefined], {
25
53
  agentId: string;
26
54
  userId: string;
27
55
  questionAnswerId: string;
@@ -31,202 +59,133 @@ export declare const acceptMasterTOS: import("@reduxjs/toolkit").ActionCreatorWi
31
59
  files: File[] | undefined;
32
60
  pageContext: string | undefined;
33
61
  macroId: string | undefined;
34
- }, "aiCfoView/createSessionAndSubmit", never, never>, createSessionAndSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionAndSubmitFailure">, createSessionAndSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/createSessionAndSubmitSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionFailure">, createSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
62
+ }, "aiCfoView/createSessionAndSubmit", never, never>, initializeNewSessionState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
35
63
  agentId: string;
36
64
  sessionId: ID;
37
- contextMessage?: string;
38
- contextStatus?: ContextStatus;
39
- }, "aiCfoView/createSessionSuccess">, deleteChatSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
65
+ }, "aiCfoView/initializeNewSessionState">, createSessionAndSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/createSessionAndSubmitSuccess">, createSessionAndSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionAndSubmitFailure">, fetchChatSessionsForUser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchChatSessionsForUser">, fetchChatSessionsForUserSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
66
+ nextPageToken: PageToken;
67
+ sessions: ChatSessionPayload[];
68
+ }, "aiCfoView/fetchChatSessionsForUserSuccess">, fetchChatSessionsForUserFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchChatSessionsForUserFailure">, fetchChatHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, userId: string], {
40
69
  chatSessionId: string;
41
- }, "aiCfoView/deleteChatSession", never, never>, deleteChatSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
70
+ userId: string;
71
+ }, "aiCfoView/fetchChatHistory", never, never>, fetchChatHistorySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
72
+ chatSessionId: ID;
73
+ nextPageToken: PageToken;
74
+ }, "aiCfoView/fetchChatHistorySuccess">, fetchChatHistoryFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
42
75
  chatSessionId: ID;
43
76
  error: ZeniAPIStatus;
44
- }, "aiCfoView/deleteChatSessionFailure">, deleteChatSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
77
+ }, "aiCfoView/fetchChatHistoryFailure">, clearCurrentSessionId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearCurrentSessionId">, clearLastContextMessage: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearLastContextMessage">, stopSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
78
+ chatSessionId: string;
79
+ }, "aiCfoView/stopSubmit", never, never>, stopSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
45
80
  chatSessionId: ID;
46
- }, "aiCfoView/deleteChatSessionSuccess">, deleteRoutine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
47
- scheduleId: string;
48
- }], {
49
- scheduleId: string;
50
- }, "aiCfoView/deleteRoutine", never, never>, deleteRoutineFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
51
- scheduleId: string;
52
- status: ZeniAPIStatus;
53
- }, "aiCfoView/deleteRoutineFailure">, deleteRoutineSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
54
- scheduleId: string;
55
- }, "aiCfoView/deleteRoutineSuccess">, deleteSkill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
56
- macroId: string;
57
- }], {
58
- macroId: string;
59
- }, "aiCfoView/deleteSkill", never, never>, deleteSkillFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/deleteSkillFailure">, deleteSkillSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
60
- macroId: string;
61
- }, "aiCfoView/deleteSkillSuccess">, fetchChatHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, userId: string], {
81
+ isOnlyQuestionInSession: boolean;
82
+ question: string;
83
+ }, "aiCfoView/stopSubmitSuccess">, stopSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
84
+ chatSessionId: ID;
85
+ error: ZeniAPIStatus;
86
+ }, "aiCfoView/stopSubmitFailure">, stopSubmitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
62
87
  chatSessionId: string;
63
- userId: string;
64
- }, "aiCfoView/fetchChatHistory", never, never>, fetchChatHistoryFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
88
+ }, "aiCfoView/stopSubmitQuestion", never, never>, stopSubmitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
89
+ chatSessionId: ID;
90
+ isOnlyQuestionInSession: boolean;
91
+ question: string;
92
+ }, "aiCfoView/stopSubmitQuestionSuccess">, stopSubmitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
65
93
  chatSessionId: ID;
66
94
  error: ZeniAPIStatus;
67
- }, "aiCfoView/fetchChatHistoryFailure">, fetchChatHistorySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
95
+ }, "aiCfoView/stopSubmitQuestionFailure">, acceptMasterTOS: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userRoleId: string], {
96
+ userRoleId: string;
97
+ }, "aiCfoView/acceptMasterTOS", never, never>, acceptMasterTOSSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/acceptMasterTOSSuccess">, acceptMasterTOSFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/acceptMasterTOSFailure">, deleteChatSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
98
+ chatSessionId: string;
99
+ }, "aiCfoView/deleteChatSession", never, never>, deleteChatSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
100
+ chatSessionId: ID;
101
+ }, "aiCfoView/deleteChatSessionSuccess">, deleteChatSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
68
102
  chatSessionId: ID;
69
- nextPageToken: PageToken;
70
- }, "aiCfoView/fetchChatHistorySuccess">, fetchChatSessionsForUser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchChatSessionsForUser">, fetchChatSessionsForUserFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchChatSessionsForUserFailure">, fetchChatSessionsForUserSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
71
- nextPageToken: PageToken;
72
- sessions: ChatSessionPayload[];
73
- }, "aiCfoView/fetchChatSessionsForUserSuccess">, fetchRoutineRuns: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
74
- scheduleId: string;
75
- }], {
76
- scheduleId: string;
77
- }, "aiCfoView/fetchRoutineRuns", never, never>, fetchRoutineRunsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchRoutineRunsFailure">, fetchRoutineRunsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
78
- runs: RoutineRun[];
79
- scheduleId: string;
80
- sessionId: string | null;
81
- }], {
82
- runs: RoutineRun[];
83
- scheduleId: string;
84
- sessionId: string | null;
85
- }, "aiCfoView/fetchRoutineRunsSuccess", never, never>, fetchRoutines: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchRoutines">, fetchRoutinesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchRoutinesFailure">, fetchRoutinesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
86
- maxRoutines: number;
87
- routines: Routine[];
88
- routinesEnabled: boolean;
89
- }, "aiCfoView/fetchRoutinesSuccess">, fetchSkillDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
90
- macroId: string;
91
- }, "aiCfoView/fetchSkillDetail">, fetchSkillDetailFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
92
103
  error: ZeniAPIStatus;
93
- macroId: string;
94
- }, "aiCfoView/fetchSkillDetailFailure">, fetchSkillDetailSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
95
- detail: SkillDetail;
96
- macroId: string;
97
- }, "aiCfoView/fetchSkillDetailSuccess">, fetchSkills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchSkills">, fetchSkillsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchSkillsFailure">, fetchSkillsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
104
+ }, "aiCfoView/deleteChatSessionFailure">, clearDeleteChatSessionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
105
+ chatSessionId: ID;
106
+ }, "aiCfoView/clearDeleteChatSessionStatus">, updateCotCollapsedState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
107
+ isCollapsed: boolean;
108
+ questionAnswerId: ID;
109
+ }, "aiCfoView/updateCotCollapsedState">, fetchSuggestedQuestions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
110
+ pageContext: AiCfoSuggestedQuestionsPageContext;
111
+ /**
112
+ * AI Card Creation flow: when true, the epic appends `&no_card_created=true`
113
+ * so the backend tailors prompts for a tenant that has not yet created a
114
+ * card. The bucket key is unchanged (`pageContext`); see
115
+ * `useFetchSuggestedQuestionsWhenReady` for the refetch-on-flag-flip rule.
116
+ */
117
+ noCardCreated?: boolean;
118
+ }, "aiCfoView/fetchSuggestedQuestions">, fetchSuggestedQuestionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
119
+ generatedAt: string;
120
+ pageContext: AiCfoSuggestedQuestionsPageContext;
121
+ suggestedQuestions: string[];
122
+ }, "aiCfoView/fetchSuggestedQuestionsSuccess">, fetchSuggestedQuestionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
123
+ error: ZeniAPIStatus;
124
+ pageContext: AiCfoSuggestedQuestionsPageContext;
125
+ }, "aiCfoView/fetchSuggestedQuestionsFailure">, fetchSkills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/fetchSkills">, fetchSkillsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
98
126
  canPublish: boolean;
99
127
  skills: Skill[];
100
128
  skillsEnabled: boolean;
101
- }, "aiCfoView/fetchSkillsSuccess">, fetchSkillVersionBody: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
129
+ }, "aiCfoView/fetchSkillsSuccess">, fetchSkillsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/fetchSkillsFailure">, fetchSkillDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
130
+ macroId: string;
131
+ }, "aiCfoView/fetchSkillDetail">, fetchSkillDetailSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
132
+ detail: SkillDetail;
133
+ macroId: string;
134
+ }, "aiCfoView/fetchSkillDetailSuccess">, fetchSkillDetailFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
135
+ error: ZeniAPIStatus;
136
+ macroId: string;
137
+ }, "aiCfoView/fetchSkillDetailFailure">, clearSkillDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearSkillDetail">, clearSkillMutation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearSkillMutation">, deleteSkill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
102
138
  macroId: string;
103
- version: number;
104
139
  }], {
105
140
  macroId: string;
141
+ }, "aiCfoView/deleteSkill", never, never>, deleteSkillSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
142
+ macroId: string;
143
+ }, "aiCfoView/deleteSkillSuccess">, deleteSkillFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/deleteSkillFailure">, fetchSkillVersionBody: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
144
+ macroId: string;
106
145
  version: number;
107
- }, "aiCfoView/fetchSkillVersionBody", never, never>, fetchSkillVersionBodyFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
108
- error: ZeniAPIStatus;
146
+ }], {
109
147
  macroId: string;
110
148
  version: number;
111
- }, "aiCfoView/fetchSkillVersionBodyFailure">, fetchSkillVersionBodySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
149
+ }, "aiCfoView/fetchSkillVersionBody", never, never>, fetchSkillVersionBodySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
112
150
  instructions: string;
113
151
  macroId: string;
114
152
  version: number;
115
- }, "aiCfoView/fetchSkillVersionBodySuccess">, fetchSkillVersions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
153
+ }, "aiCfoView/fetchSkillVersionBodySuccess">, fetchSkillVersionBodyFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
154
+ error: ZeniAPIStatus;
116
155
  macroId: string;
117
- }], {
156
+ version: number;
157
+ }, "aiCfoView/fetchSkillVersionBodyFailure">, fetchSkillVersions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
118
158
  macroId: string;
119
- }, "aiCfoView/fetchSkillVersions", never, never>, fetchSkillVersionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
120
- error: ZeniAPIStatus;
159
+ }], {
121
160
  macroId: string;
122
- }, "aiCfoView/fetchSkillVersionsFailure">, fetchSkillVersionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
161
+ }, "aiCfoView/fetchSkillVersions", never, never>, fetchSkillVersionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
123
162
  macroId: string;
124
163
  versions: SkillVersion[];
125
- }, "aiCfoView/fetchSkillVersionsSuccess">, fetchSuggestedQuestions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
126
- pageContext: AiCfoSuggestedQuestionsPageContext;
127
- /**
128
- * AI Card Creation flow: when true, the epic appends `&no_card_created=true`
129
- * so the backend tailors prompts for a tenant that has not yet created a
130
- * card. The bucket key is unchanged (`pageContext`); see
131
- * `useFetchSuggestedQuestionsWhenReady` for the refetch-on-flag-flip rule.
132
- */
133
- noCardCreated?: boolean;
134
- }, "aiCfoView/fetchSuggestedQuestions">, fetchSuggestedQuestionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
164
+ }, "aiCfoView/fetchSkillVersionsSuccess">, fetchSkillVersionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
135
165
  error: ZeniAPIStatus;
136
- pageContext: AiCfoSuggestedQuestionsPageContext;
137
- }, "aiCfoView/fetchSuggestedQuestionsFailure">, fetchSuggestedQuestionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
138
- generatedAt: string;
139
- pageContext: AiCfoSuggestedQuestionsPageContext;
140
- suggestedQuestions: string[];
141
- }, "aiCfoView/fetchSuggestedQuestionsSuccess">, initializeNewSessionState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
142
- agentId: string;
143
- sessionId: ID;
144
- }, "aiCfoView/initializeNewSessionState">, openRoutinesBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/openRoutinesBrowser">, openSkillsBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/openSkillsBrowser">, runRoutine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
145
- scheduleId: string;
146
- }], {
147
- scheduleId: string;
148
- }, "aiCfoView/runRoutine", never, never>, runRoutineFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/runRoutineFailure">, runRoutineSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/runRoutineSuccess">, saveRoutine: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
149
- draft: RoutineDraft;
150
- scheduleId?: string;
151
- }], {
152
- draft: RoutineDraft;
153
- scheduleId?: string;
154
- }, "aiCfoView/saveRoutine", never, never>, saveRoutineFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/saveRoutineFailure">, saveRoutineSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/saveRoutineSuccess">, saveSkill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
166
+ macroId: string;
167
+ }, "aiCfoView/fetchSkillVersionsFailure">, saveSkill: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
155
168
  draft: SkillDraft;
156
169
  macroId?: string;
157
170
  }], {
158
171
  draft: SkillDraft;
159
172
  macroId?: string;
160
- }, "aiCfoView/saveSkill", never, never>, saveSkillFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/saveSkillFailure">, saveSkillSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
173
+ }, "aiCfoView/saveSkill", never, never>, saveSkillSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
161
174
  detail: SkillDetail;
162
175
  macroId: string;
163
- }, "aiCfoView/saveSkillSuccess">, setRoutineEnabled: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
164
- enabled: boolean;
165
- scheduleId: string;
166
- }], {
167
- enabled: boolean;
168
- scheduleId: string;
169
- }, "aiCfoView/setRoutineEnabled", never, never>, setSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
170
- agentId: string;
171
- sessionId: string;
172
- /**
173
- * Set only by the side-panel host-page sync, which re-applies a page's saved
174
- * session rather than acting on a user's choice. Such a restore can fire at any
175
- * time — when the sessions list resolves, say — including while the user is
176
- * deliberately looking at the Skills browser, so it must not close it.
177
- */
178
- isRestore?: boolean;
179
- }, "aiCfoView/setSession">, setSkillVisibility: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
176
+ }, "aiCfoView/saveSkillSuccess">, saveSkillFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/saveSkillFailure">, setSkillVisibility: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
180
177
  macroId: string;
181
178
  visibility: SkillVisibility;
182
179
  }], {
183
180
  macroId: string;
184
181
  visibility: SkillVisibility;
185
- }, "aiCfoView/setSkillVisibility", never, never>, setSkillVisibilityFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/setSkillVisibilityFailure">, setSkillVisibilitySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
182
+ }, "aiCfoView/setSkillVisibility", never, never>, setSkillVisibilitySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
186
183
  detail: SkillDetail;
187
184
  macroId: string;
188
- }, "aiCfoView/setSkillVisibilitySuccess">, stopSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
189
- chatSessionId: string;
190
- }, "aiCfoView/stopSubmit", never, never>, stopSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
191
- chatSessionId: ID;
192
- error: ZeniAPIStatus;
193
- }, "aiCfoView/stopSubmitFailure">, stopSubmitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
194
- chatSessionId: string;
195
- }, "aiCfoView/stopSubmitQuestion", never, never>, stopSubmitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
196
- chatSessionId: ID;
197
- error: ZeniAPIStatus;
198
- }, "aiCfoView/stopSubmitQuestionFailure">, stopSubmitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
199
- chatSessionId: ID;
200
- isOnlyQuestionInSession: boolean;
201
- question: string;
202
- }, "aiCfoView/stopSubmitQuestionSuccess">, stopSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
203
- chatSessionId: ID;
204
- isOnlyQuestionInSession: boolean;
205
- question: string;
206
- }, "aiCfoView/stopSubmitSuccess">, submitFeedback: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, chatMessageId: string, feedbackType: FeedbackType, questionText?: string | undefined, answerText?: string | undefined, model?: string | undefined], SubmitFeedbackPayload, "aiCfoView/submitFeedback", never, never>, submitFeedbackFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatMessageId: string, error: ZeniAPIStatus<Record<string, unknown>>], {
207
- chatMessageId: string;
208
- error: ZeniAPIStatus<Record<string, unknown>>;
209
- }, "aiCfoView/submitFeedbackFailure", never, never>, submitFeedbackSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatMessageId: string], {
210
- chatMessageId: string;
211
- }, "aiCfoView/submitFeedbackSuccess", never, never>, submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined, macroId?: string | undefined], {
212
- sessionId: string;
213
- questionAnswerId: string;
214
- userId: string;
215
- questionId: string;
216
- createdAt: import("dayjs").Dayjs;
217
- question: string;
218
- files: File[] | undefined;
219
- macroId: string | undefined;
220
- }, "aiCfoView/submitQuestion", never, never>, submitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
221
- error: ZeniAPIStatus;
222
- sessionId: ID;
223
- }, "aiCfoView/submitQuestionFailure">, submitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/submitQuestionSuccess">, updateAiCfoViewScrollPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "aiCfoView/updateAiCfoViewScrollPosition">, updateCotCollapsedState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
224
- isCollapsed: boolean;
225
- questionAnswerId: ID;
226
- }, "aiCfoView/updateCotCollapsedState">, updateCurrentInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/updateCurrentInput">, updateResponseState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
227
- chatSessionId: ID;
228
- fetchState: FetchStateAndError;
229
- responseType: AiCfoAnswerResponseType;
230
- }, "aiCfoView/updateResponseState">;
185
+ }, "aiCfoView/setSkillVisibilitySuccess">, setSkillVisibilityFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/setSkillVisibilityFailure">, openSkillsBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/openSkillsBrowser">, closeSkillsBrowser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/closeSkillsBrowser">, applyAiCfoSidePanelHostPageTransition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
186
+ newAiCfoSidePanelHostPageKey: string;
187
+ /** When omitted or null, clears the active session (empty / suggested questions). */
188
+ nextCurrentChatSessionId?: ID | null;
189
+ }, "aiCfoView/applyAiCfoSidePanelHostPageTransition">, clearAiCfoSidePanelHostPageContext: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoSidePanelHostPageContext">;
231
190
  declare const _default: import("redux").Reducer<AiCfoViewState>;
232
191
  export default _default;