@worktango/ai-assistant 0.0.122 → 0.0.124
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/backendTypes.ts +268 -0
- package/dist/{Absenteeism-4v5uivLx.mjs → Absenteeism-D9Lx68xg.mjs} +1 -1
- package/dist/{ActivityFeed-C1xHixEA.mjs → ActivityFeed-BCY6FGWX.mjs} +1 -1
- package/dist/{AddUser-DSPWIRVW.mjs → AddUser-DBPcdFJI.mjs} +1 -1
- package/dist/{Admin-Y4DO7j1o.mjs → Admin-C2c7H6Vp.mjs} +1 -1
- package/dist/{Admin-DTdHBdFW.mjs → Admin-DeaRWCbc.mjs} +1 -1
- package/dist/{AiGeneral-cXBXLCcB.mjs → AiGeneral-B3mDVe1J.mjs} +1 -1
- package/dist/{AiScoring-C3V5cXZk.mjs → AiScoring-BKbPD2AD.mjs} +1 -1
- package/dist/{AiText-BxOdK6AH.mjs → AiText-CI8HnRLN.mjs} +1 -1
- package/dist/{Anniversary-D3dgkhZL.mjs → Anniversary-BhoLyhG4.mjs} +1 -1
- package/dist/{Appreciation-CDdRpPgX.mjs → Appreciation-CccdPZPl.mjs} +1 -1
- package/dist/{ArrowDown-D3g-ygar.mjs → ArrowDown-Cp9-B2dV.mjs} +1 -1
- package/dist/{ArrowLeft-BQcnvIfc.mjs → ArrowLeft-CZ95xzeq.mjs} +1 -1
- package/dist/{ArrowRight-wENh6UPS.mjs → ArrowRight-COJWNYW-.mjs} +1 -1
- package/dist/{ArrowUp-C9hHbHFx.mjs → ArrowUp-Bzwyp9n6.mjs} +1 -1
- package/dist/{Attachment-BGv2TgAa.mjs → Attachment-slnb_Alv.mjs} +1 -1
- package/dist/{BeQuickDontHurry-DiT32CGQ.mjs → BeQuickDontHurry-BQcN8rr7.mjs} +1 -1
- package/dist/{Birthday-Bq3L8yiK.mjs → Birthday-DSgwzFVP.mjs} +1 -1
- package/dist/{BrandPromise-CgEv-3UK.mjs → BrandPromise-CM7IgwRV.mjs} +1 -1
- package/dist/{BrandVision-BGy6MYIh.mjs → BrandVision-ZcakTH-1.mjs} +1 -1
- package/dist/{Calendar-BdBVSA0F.mjs → Calendar-B3QZF9gk.mjs} +1 -1
- package/dist/{CaretDn-Cp8-21KK.mjs → CaretDn-xLIyclsc.mjs} +1 -1
- package/dist/{CaretDown-CNrjN838.mjs → CaretDown-lhtYNEHU.mjs} +1 -1
- package/dist/{CaretLeft-V8b9VsjK.mjs → CaretLeft-Brxk1x56.mjs} +1 -1
- package/dist/{CaretRight-B-c2dNsv.mjs → CaretRight-DVfD_1I5.mjs} +1 -1
- package/dist/{CaretUp-DO_CEvHz.mjs → CaretUp-_ayu4tm_.mjs} +1 -1
- package/dist/{ChallengeAccepted-DnbYyqyT.mjs → ChallengeAccepted-Bag3gsVQ.mjs} +1 -1
- package/dist/{CheckIn-BxIWkZkz.mjs → CheckIn-B8q8Cdfc.mjs} +1 -1
- package/dist/{CheckIns-3C01cdlA.mjs → CheckIns-CF5q1Rwg.mjs} +1 -1
- package/dist/{CheckSeal-DAWsBR3q.mjs → CheckSeal-CGwYV93u.mjs} +1 -1
- package/dist/{Checkmark-BcFzj9rc.mjs → Checkmark-CBgrfVMs.mjs} +1 -1
- package/dist/{Clock-DqGjPnSF.mjs → Clock-DGSa2vCM.mjs} +1 -1
- package/dist/{Close-pdvZiJzV.mjs → Close-DU8AtiMx.mjs} +1 -1
- package/dist/{CloudDownload-CJ-JWQP0.mjs → CloudDownload-BbDwFoOp.mjs} +1 -1
- package/dist/{Comment-C2g_e82x.mjs → Comment-lxGlgQ_X.mjs} +1 -1
- package/dist/{Comments-u11uLKVm.mjs → Comments-DHxhpS7x.mjs} +1 -1
- package/dist/{Connections-Bizxivo1.mjs → Connections-Bi_436OP.mjs} +1 -1
- package/dist/{Copy-HiJ5UlsS.mjs → Copy-DA6pwUEP.mjs} +1 -1
- package/dist/{CustomQuestion-CsjOLVXK.mjs → CustomQuestion-C8cBagy1.mjs} +1 -1
- package/dist/{CustomerSuccess-cHTSi-NQ.mjs → CustomerSuccess-BLgvSbik.mjs} +1 -1
- package/dist/{DatePicker-DJo8RJfP.mjs → DatePicker-6Mq59hkz.mjs} +1 -1
- package/dist/{Dot-CsshzaEw.mjs → Dot-BPf8Toic.mjs} +1 -1
- package/dist/{Download-1epFARV3.mjs → Download-Cz_EzgOn.mjs} +1 -1
- package/dist/{Drag-fQ6XdDUF.mjs → Drag-CgZmJ6AN.mjs} +1 -1
- package/dist/{DragIndicator-Ddok_zyv.mjs → DragIndicator-DGvnv3F1.mjs} +1 -1
- package/dist/{Earn-DiGbqTiB.mjs → Earn-YBnuYRMX.mjs} +1 -1
- package/dist/{Email-Cn_n0p4T.mjs → Email-DjUT1qeY.mjs} +1 -1
- package/dist/{EmojiDisplay-CmJXl7Ht.mjs → EmojiDisplay-yc4X6uQ5.mjs} +2 -2
- package/dist/{EmojiPicker-DiViaYis.mjs → EmojiPicker-C0B-f0TF.mjs} +2 -2
- package/dist/{EnpsSurvey-OCcz_Fi9.mjs → EnpsSurvey-LMQSMNZu.mjs} +1 -1
- package/dist/{Expired-C61590rd.mjs → Expired-CvIGLizo.mjs} +1 -1
- package/dist/{Eye-J-2VxCcR.mjs → Eye-DCmP9n0I.mjs} +1 -1
- package/dist/{Feedback-x-AfhYvF.mjs → Feedback-Cnc-ZALD.mjs} +1 -1
- package/dist/{Feedback-DMeBQRKE.mjs → Feedback-naBxqHgi.mjs} +1 -1
- package/dist/{Filter-BN3pwOef.mjs → Filter-DtAjwV2G.mjs} +1 -1
- package/dist/{Flag-DGgx9c4i.mjs → Flag-DLITMFjm.mjs} +1 -1
- package/dist/{Giphy-8xPd5QYh.mjs → Giphy-DzulFn5R.mjs} +1 -1
- package/dist/{GoalCount-BK38m8gP.mjs → GoalCount-CDRQdhd_.mjs} +1 -1
- package/dist/{GoalPercent-Isq41eD7.mjs → GoalPercent-BVo5lVza.mjs} +1 -1
- package/dist/{GoalTask-Dpc0s_Fc.mjs → GoalTask-ZqxX-9Oq.mjs} +1 -1
- package/dist/{GoalTask-DUZ0KNsn.mjs → GoalTask-sAEga3qP.mjs} +1 -1
- package/dist/{Goals-Gb05F2Q2.mjs → Goals-C4plsDoW.mjs} +1 -1
- package/dist/{Goals-DkDT-15P.mjs → Goals-D0U_b2PV.mjs} +1 -1
- package/dist/{Growth-M3zJ9ow9.mjs → Growth-ygAt8enI.mjs} +1 -1
- package/dist/{Hamburger-DPA5U4Yn.mjs → Hamburger-BliJRao8.mjs} +1 -1
- package/dist/{Help-BmIzeUtZ.mjs → Help-CHo9Pzsi.mjs} +1 -1
- package/dist/{HighFive-ByoYqu5r.mjs → HighFive-3yex7uEE.mjs} +1 -1
- package/dist/{HighFive-B3-hkB28.mjs → HighFive-CpSXnYrv.mjs} +1 -1
- package/dist/{Home-Caub6i46.mjs → Home-BQem2EZD.mjs} +1 -1
- package/dist/{Home-Bq1pYQE9.mjs → Home-BVkHEWvm.mjs} +1 -1
- package/dist/{HorizontalLine-D6RZm0Zq.mjs → HorizontalLine-Gzas0kQ1.mjs} +1 -1
- package/dist/{Hourglass-BDq-heDa.mjs → Hourglass-DYgYRg3y.mjs} +1 -1
- package/dist/{Image-Czx-o-Dy.mjs → Image-C_566sjP.mjs} +1 -1
- package/dist/{ImageFile-D8fqZSYs.mjs → ImageFile-zr1qK0mg.mjs} +1 -1
- package/dist/{InGoodCompany-Di7wKYR5.mjs → InGoodCompany-DcU05rfX.mjs} +1 -1
- package/dist/{Incentives-Bx_da76h.mjs → Incentives-Cw2NovlI.mjs} +1 -1
- package/dist/{Info-KDh7jbwY.mjs → Info-DFSbYIx7.mjs} +1 -1
- package/dist/{Insights-B2W9Xdpy.mjs → Insights-BHUhKtw5.mjs} +1 -1
- package/dist/{Insights-yWnvLL4-.mjs → Insights-BM3vYRfA.mjs} +1 -1
- package/dist/{Integrations-DR5paeHE.mjs → Integrations-CZqXQQ7i.mjs} +1 -1
- package/dist/{KazooLogo-9tiark74.mjs → KazooLogo-BLVThvWy.mjs} +1 -1
- package/dist/{KnowYourAudience-DHlalx_5.mjs → KnowYourAudience-IKWYac_H.mjs} +1 -1
- package/dist/{Launch-Dd5CFI9Z.mjs → Launch-BNk8ARjW.mjs} +1 -1
- package/dist/{Link-5i5-f1N9.mjs → Link-DB98NrLu.mjs} +1 -1
- package/dist/{LinkArrow-CtYULsii.mjs → LinkArrow-DmkCY8kH.mjs} +1 -1
- package/dist/{Loading-D3spRSs8.mjs → Loading-B5U8GNmC.mjs} +1 -1
- package/dist/{Lock-DMKRPQsw.mjs → Lock-Z6zr56yO.mjs} +1 -1
- package/dist/{Management-DXkHLUPv.mjs → Management-c1P0dewy.mjs} +1 -1
- package/dist/{MeatballMenu-CelC6X7h.mjs → MeatballMenu-COWvarw3.mjs} +1 -1
- package/dist/{MediaError-Biv8Jc8g.mjs → MediaError-lBIUBtBr.mjs} +1 -1
- package/dist/{Messages-BTbDrnNp.mjs → Messages-DoRYt6UR.mjs} +1 -1
- package/dist/{Microphone-BKy6cEiT.mjs → Microphone-C9Ow8q4D.mjs} +1 -1
- package/dist/{Mobile-ClgE_X_f.mjs → Mobile-BjrtomSm.mjs} +1 -1
- package/dist/{Nomination-DsssdJel.mjs → Nomination-BjXVGP4k.mjs} +1 -1
- package/dist/{NominationsAndAwards-Iqt_ieCX.mjs → NominationsAndAwards-rm8ChmB2.mjs} +1 -1
- package/dist/{Notification-ByPFBB26.mjs → Notification-CxIo6Axf.mjs} +1 -1
- package/dist/{Okrs-WLlWxsCE.mjs → Okrs-C4UYFjBC.mjs} +1 -1
- package/dist/{Pause-BY9-UTg0.mjs → Pause-D88Pjy8s.mjs} +1 -1
- package/dist/{PeerToPeer-BKa2JJO-.mjs → PeerToPeer-D4h9GokH.mjs} +1 -1
- package/dist/{Pencil-DlGWw-fM.mjs → Pencil-_6Gk6PSJ.mjs} +1 -1
- package/dist/{People-Ky6-Yt3W.mjs → People-Dsg1X8vZ.mjs} +1 -1
- package/dist/{PerformanceManagement-JCs73e7r.mjs → PerformanceManagement-rc_tEvEb.mjs} +1 -1
- package/dist/{Pin-rLT_qVjP.mjs → Pin-BygzgU6p.mjs} +1 -1
- package/dist/{PinnedIconAward-B70YTrlL.mjs → PinnedIconAward-IFZzhS9z.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-CmdvYMEx.mjs → PinnedIconBrightIdea-DrHIytp2.mjs} +1 -1
- package/dist/{PinnedIconBullseye-B2UU49-c.mjs → PinnedIconBullseye-CZrqObam.mjs} +1 -1
- package/dist/{PinnedIconChampagne-BYTn4Jm2.mjs → PinnedIconChampagne-CduUZiWN.mjs} +1 -1
- package/dist/{PinnedIconCheer-Cs69cbNO.mjs → PinnedIconCheer-PRFR3Sac.mjs} +1 -1
- package/dist/{PinnedIconCrown-PN6Juhsw.mjs → PinnedIconCrown-DxPan1os.mjs} +1 -1
- package/dist/{PinnedIconDiamond-Dz6eAmHi.mjs → PinnedIconDiamond-B1PABKmP.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-BDrGczPu.mjs → PinnedIconHoleInOne-CxfGp-Fz.mjs} +1 -1
- package/dist/{PinnedIconMedal-XPSUhs-Y.mjs → PinnedIconMedal-D-6qTVy8.mjs} +1 -1
- package/dist/{PinnedIconMetrics-CEkKiMAQ.mjs → PinnedIconMetrics-D7orGu6J.mjs} +1 -1
- package/dist/{PinnedIconPin-DECmedGh.mjs → PinnedIconPin-Cb6f0fjV.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-CYFQ_x5J.mjs → PinnedIconRockAndRoll-C-yiZ9cA.mjs} +1 -1
- package/dist/{PinnedIconRocket-CrV79ZuQ.mjs → PinnedIconRocket-BWNS5AEl.mjs} +1 -1
- package/dist/{PinnedIconStrength-BDfC7huG.mjs → PinnedIconStrength-kMGyhh4A.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-CX6-R6Tk.mjs → PinnedIconTeddyBear-tV4bZEz0.mjs} +1 -1
- package/dist/{PlatformLogo-C_YdQ9Gh.mjs → PlatformLogo-Be6hVz7d.mjs} +1 -1
- package/dist/{Plus-CNO2dM0M.mjs → Plus-CNx4_DGX.mjs} +1 -1
- package/dist/{Popper-CSjPn4aS.mjs → Popper-BJurBAUC.mjs} +1 -1
- package/dist/{PrivateEye-CchkHJDg.mjs → PrivateEye-J5Q7AEih.mjs} +1 -1
- package/dist/{PrivatePushPin-BU6OgokW.mjs → PrivatePushPin-lcQmn9jM.mjs} +1 -1
- package/dist/{Processing-DwrqZb4Q.mjs → Processing-Dgzww-vM.mjs} +1 -1
- package/dist/{Productivity-Fu2J3bW9.mjs → Productivity-DiNNAOor.mjs} +1 -1
- package/dist/{ProgressCircle-B0jRskbU.mjs → ProgressCircle-CJnM_nLO.mjs} +1 -1
- package/dist/{PulseSurvey-wIl5Ygr3.mjs → PulseSurvey-DHuDxIH0.mjs} +1 -1
- package/dist/{PushPin-D7BzbvYr.mjs → PushPin-lv0X_oda.mjs} +1 -1
- package/dist/{QuotesLeft-CdBAtbSs.mjs → QuotesLeft-y62F6wcq.mjs} +1 -1
- package/dist/{QuotesRight-BbkZybzm.mjs → QuotesRight-CISAhjsX.mjs} +1 -1
- package/dist/{Recognition-CJVdeHfR.mjs → Recognition-CrQvBO2o.mjs} +1 -1
- package/dist/{Recognition-BEEJq300.mjs → Recognition-DoLcaIFu.mjs} +1 -1
- package/dist/{Retention-BpWvMqV3.mjs → Retention-Bqch_KIG.mjs} +1 -1
- package/dist/{Rewards-BuAqIfJK.mjs → Rewards-B8-jybZr.mjs} +1 -1
- package/dist/{Rewards-7re6dt_V.mjs → Rewards-By7QmYT2.mjs} +1 -1
- package/dist/{RewardsCatalog-USrJFKAQ.mjs → RewardsCatalog-DFRlLfzP.mjs} +1 -1
- package/dist/{Roadmap-CNWXQHVf.mjs → Roadmap-ywkVBSdH.mjs} +1 -1
- package/dist/{Search-BGF-aSRb.mjs → Search-CeZXtO0e.mjs} +1 -1
- package/dist/{Security-CVfazlB5.mjs → Security-Cv6b-xTT.mjs} +1 -1
- package/dist/{SendRecognition-Ccsl2_NA.mjs → SendRecognition-D-E0LN0b.mjs} +1 -1
- package/dist/{ShareLink-BrADyO4d.mjs → ShareLink-D7X7qA1D.mjs} +1 -1
- package/dist/{SidebarCollapse-CCT7Acml.mjs → SidebarCollapse-CsxsX5az.mjs} +1 -1
- package/dist/{Skill-CMv1kelg.mjs → Skill-Co21ACiF.mjs} +1 -1
- package/dist/{Skills-Dt_It0d8.mjs → Skills-C2v-0KjH.mjs} +1 -1
- package/dist/{Smiley-B2s3ZT39.mjs → Smiley-DkyTM6jt.mjs} +1 -1
- package/dist/{Stop-Bakg5wDg.mjs → Stop-CEwHeCpH.mjs} +1 -1
- package/dist/{Survey-vlk0Qnsu.mjs → Survey-D2ePU49D.mjs} +1 -1
- package/dist/{Surveys-Bm3ceU98.mjs → Surveys-CtxKgtMp.mjs} +1 -1
- package/dist/{SyncUps-BKJdR6iW.mjs → SyncUps-NBS2v_Lc.mjs} +1 -1
- package/dist/{Syncs-DgNsWh3I.mjs → Syncs-DEp8T8jr.mjs} +1 -1
- package/dist/{TalentReview-DkO8Q5oi.mjs → TalentReview-CiZ94qtN.mjs} +1 -1
- package/dist/{TalentReview-BpdkVHQJ.mjs → TalentReview-QDSY9iSG.mjs} +1 -1
- package/dist/{TalentReviewInsights-7U6IWAXN.mjs → TalentReviewInsights-DZ9GZugW.mjs} +1 -1
- package/dist/{TaskCompleted-K0awVo5B.mjs → TaskCompleted-BSOHXRMt.mjs} +1 -1
- package/dist/{Team-DAz-PIaa.mjs → Team-DmepWBE1.mjs} +1 -1
- package/dist/{Teams-BLDu7heO.mjs → Teams-C1vzrwLW.mjs} +1 -1
- package/dist/{TextBold-F07ZEEiJ.mjs → TextBold-Dznt2KRG.mjs} +1 -1
- package/dist/{TextBulletList-Bx9pdH6R.mjs → TextBulletList-B_H-w7Vz.mjs} +1 -1
- package/dist/{TextInput-Jio7dFLU.mjs → TextInput-Zpxtz2tz.mjs} +1 -1
- package/dist/{TextItalic-CJEEX3U3.mjs → TextItalic-D-FMcHlr.mjs} +1 -1
- package/dist/{TextNumberList-BWDxVBER.mjs → TextNumberList-CKTC6JZx.mjs} +1 -1
- package/dist/{TextUnderline-pFRQMqhw.mjs → TextUnderline-2SxToEko.mjs} +1 -1
- package/dist/{ThumbsDown-xnoPVbWH.mjs → ThumbsDown-CsZ0deeS.mjs} +1 -1
- package/dist/{ThumbsUp-DSWJvuN1.mjs → ThumbsUp-DR_Kz8KM.mjs} +1 -1
- package/dist/{Toggle-B5tQiU2V.mjs → Toggle-DzYgTIe2.mjs} +1 -1
- package/dist/{Translate-hAEjaZan.mjs → Translate-Ckf5DHsE.mjs} +1 -1
- package/dist/{Trash-D-3WBec7.mjs → Trash-DKO78C39.mjs} +1 -1
- package/dist/{TrendDown-DONkQohF.mjs → TrendDown-Cc0uaoF4.mjs} +1 -1
- package/dist/{TrendUp-DVThskjZ.mjs → TrendUp-CrlpNtsE.mjs} +1 -1
- package/dist/{Undo-CRZZbL32.mjs → Undo-CDUGAXGu.mjs} +1 -1
- package/dist/{Unplugged-COajACBE.mjs → Unplugged-DaLduBTK.mjs} +1 -1
- package/dist/{UpDownCaret-Dx6sy2bO.mjs → UpDownCaret-7JggAQrk.mjs} +1 -1
- package/dist/{VerifiedCheckmark-DWMAjuJC.mjs → VerifiedCheckmark-CVO0Slub.mjs} +1 -1
- package/dist/{VerticalLine-mPo3jtFy.mjs → VerticalLine-BonEKY4V.mjs} +1 -1
- package/dist/{Warning-DmYMbaiL.mjs → Warning-J9fWq4Pq.mjs} +1 -1
- package/dist/{WarningNoOutline-WE5rau2G.mjs → WarningNoOutline-Dm2nLzN5.mjs} +1 -1
- package/dist/{YesAnd-Dllo48jv.mjs → YesAnd-BtLQrbhK.mjs} +1 -1
- package/dist/{emoji-B1xNAdxu.mjs → emoji-Bn3L_Bil.mjs} +1 -1
- package/dist/{react-apexcharts.min-DgaiJFQ4.mjs → react-apexcharts.min-gcpRK97E.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +58 -56
- package/dist/{reactComponent-Cxn_GkVN.mjs → reactComponent-DcK6e5Lc.mjs} +1120 -1138
- package/express.d.ts +3 -3
- package/generated/apiHooks.tsx +5618 -0
- package/generated/sdk.ts +5093 -0
- package/generated/stitchedSdk.ts +1174 -0
- package/package.json +3 -1
package/backendTypes.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// Don't import from the generated folder, as it is removed when we build and publish the package.
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
AppendMessageInput,
|
|
5
|
+
AppendMessageToConversationMutation,
|
|
6
|
+
ConversationInput,
|
|
7
|
+
CreateConversationInput,
|
|
8
|
+
DeleteConversationInput,
|
|
9
|
+
UpdateConversationTitleInput,
|
|
10
|
+
GetAConversationQuery,
|
|
11
|
+
GetAllConversationsQuery,
|
|
12
|
+
DeleteAiDocumentMutation,
|
|
13
|
+
UpdateAiDocumentMutation,
|
|
14
|
+
UploadAiDocumentMutation,
|
|
15
|
+
UpdateAiSettingsMutation,
|
|
16
|
+
GetAiSettingsQuery,
|
|
17
|
+
} from "./generated/apiHooks";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Context passed to callbacks containing both request and response data
|
|
21
|
+
*/
|
|
22
|
+
export interface CallbackContext<TRequest, TResponse> {
|
|
23
|
+
/**
|
|
24
|
+
* The original request details
|
|
25
|
+
*/
|
|
26
|
+
request: {
|
|
27
|
+
/**
|
|
28
|
+
* The full path of the request (e.g., "/ai-assistant?targetPath=/api")
|
|
29
|
+
*/
|
|
30
|
+
path: string;
|
|
31
|
+
/**
|
|
32
|
+
* The HTTP method (POST, GET, etc.)
|
|
33
|
+
*/
|
|
34
|
+
method: string;
|
|
35
|
+
/**
|
|
36
|
+
* The parsed request body
|
|
37
|
+
*/
|
|
38
|
+
body: TRequest;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The parsed response body from the proxied request
|
|
42
|
+
*/
|
|
43
|
+
response: TResponse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* REST endpoint request/response types
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
export interface ChatRequest {
|
|
51
|
+
model?: "large" | "medium" | "small";
|
|
52
|
+
temperature?: number;
|
|
53
|
+
stream?: boolean;
|
|
54
|
+
maxTokens?: number;
|
|
55
|
+
messages: Array<{
|
|
56
|
+
role: "user" | "model" | "tool";
|
|
57
|
+
parts: Array<
|
|
58
|
+
| {
|
|
59
|
+
type: "text";
|
|
60
|
+
text: string;
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
type: "toolCall";
|
|
64
|
+
toolName: string;
|
|
65
|
+
args: Record<string, unknown>;
|
|
66
|
+
}
|
|
67
|
+
| {
|
|
68
|
+
type: "toolResult";
|
|
69
|
+
toolName: string;
|
|
70
|
+
result: unknown;
|
|
71
|
+
}
|
|
72
|
+
>;
|
|
73
|
+
name?: string;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface ChatResponse {
|
|
78
|
+
role: "user" | "model" | "tool";
|
|
79
|
+
parts: Array<
|
|
80
|
+
| {
|
|
81
|
+
type: "text";
|
|
82
|
+
text: string;
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
type: "toolCall";
|
|
86
|
+
toolName: string;
|
|
87
|
+
args: Record<string, unknown>;
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
type: "toolResult";
|
|
91
|
+
toolName: string;
|
|
92
|
+
result: unknown;
|
|
93
|
+
}
|
|
94
|
+
>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface StructuredResponseRequest {
|
|
98
|
+
model?: "large" | "medium" | "small";
|
|
99
|
+
prompt: string;
|
|
100
|
+
schema: unknown;
|
|
101
|
+
temperature?: number;
|
|
102
|
+
maxTokens?: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type StructuredResponseResponse = unknown;
|
|
106
|
+
|
|
107
|
+
export interface TTSRequest {
|
|
108
|
+
text: string;
|
|
109
|
+
voice?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface TTSResponse {
|
|
113
|
+
synthesis: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface STTRequest {
|
|
117
|
+
audio: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface STTResponse {
|
|
121
|
+
transcription: Array<{
|
|
122
|
+
transcript: string;
|
|
123
|
+
confidence: number;
|
|
124
|
+
}>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* GraphQL request wrapper
|
|
129
|
+
*/
|
|
130
|
+
export interface GraphQLRequest<TVariables = unknown> {
|
|
131
|
+
operationName?: string;
|
|
132
|
+
query: string;
|
|
133
|
+
variables?: TVariables;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* GraphQL response wrapper with potential errors
|
|
138
|
+
*/
|
|
139
|
+
export interface GraphQLResponse<TData = unknown> {
|
|
140
|
+
data?: TData;
|
|
141
|
+
errors?: Array<{
|
|
142
|
+
message: string;
|
|
143
|
+
extensions?: Record<string, unknown>;
|
|
144
|
+
}>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Callbacks for REST endpoints
|
|
149
|
+
* Note: Keys are URL paths, not following camelCase convention intentionally
|
|
150
|
+
*/
|
|
151
|
+
export interface RestEndpointCallbacks {
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
153
|
+
"/api/api-ai-assistant/v1/chat"?: (
|
|
154
|
+
context: CallbackContext<ChatRequest, ChatResponse>
|
|
155
|
+
) => void | Promise<void>;
|
|
156
|
+
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
158
|
+
"/api/api-ai-assistant/v1/structured-response"?: (
|
|
159
|
+
context: CallbackContext<
|
|
160
|
+
StructuredResponseRequest,
|
|
161
|
+
StructuredResponseResponse
|
|
162
|
+
>
|
|
163
|
+
) => void | Promise<void>;
|
|
164
|
+
|
|
165
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
166
|
+
"/api/api-ai-assistant/v1/tts"?: (
|
|
167
|
+
context: CallbackContext<TTSRequest, TTSResponse>
|
|
168
|
+
) => void | Promise<void>;
|
|
169
|
+
|
|
170
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
171
|
+
"/api/api-ai-assistant/v1/stt"?: (
|
|
172
|
+
context: CallbackContext<STTRequest, STTResponse>
|
|
173
|
+
) => void | Promise<void>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Callbacks for GraphQL operations
|
|
178
|
+
* Note: Keys match the GraphQL operation names (PascalCase), not the field names
|
|
179
|
+
*/
|
|
180
|
+
export interface GraphQLOperationCallbacks {
|
|
181
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
182
|
+
AppendMessageToConversation?: (
|
|
183
|
+
context: CallbackContext<
|
|
184
|
+
GraphQLRequest<{ input: AppendMessageInput }>,
|
|
185
|
+
GraphQLResponse<AppendMessageToConversationMutation>
|
|
186
|
+
>
|
|
187
|
+
) => void | Promise<void>;
|
|
188
|
+
|
|
189
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
190
|
+
GetAConversation?: (
|
|
191
|
+
context: CallbackContext<
|
|
192
|
+
GraphQLRequest<{ input: ConversationInput }>,
|
|
193
|
+
GraphQLResponse<GetAConversationQuery>
|
|
194
|
+
>
|
|
195
|
+
) => void | Promise<void>;
|
|
196
|
+
|
|
197
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
198
|
+
GetAllConversations?: (
|
|
199
|
+
context: CallbackContext<
|
|
200
|
+
GraphQLRequest<Record<string, never>>,
|
|
201
|
+
GraphQLResponse<GetAllConversationsQuery>
|
|
202
|
+
>
|
|
203
|
+
) => void | Promise<void>;
|
|
204
|
+
|
|
205
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
206
|
+
CreateConversation?: (
|
|
207
|
+
context: CallbackContext<
|
|
208
|
+
GraphQLRequest<{ input: CreateConversationInput }>,
|
|
209
|
+
GraphQLResponse
|
|
210
|
+
>
|
|
211
|
+
) => void | Promise<void>;
|
|
212
|
+
|
|
213
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
214
|
+
DeleteConversation?: (
|
|
215
|
+
context: CallbackContext<
|
|
216
|
+
GraphQLRequest<{ input: DeleteConversationInput }>,
|
|
217
|
+
GraphQLResponse
|
|
218
|
+
>
|
|
219
|
+
) => void | Promise<void>;
|
|
220
|
+
|
|
221
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
222
|
+
UpdateConversationTitle?: (
|
|
223
|
+
context: CallbackContext<
|
|
224
|
+
GraphQLRequest<{ input: UpdateConversationTitleInput }>,
|
|
225
|
+
GraphQLResponse
|
|
226
|
+
>
|
|
227
|
+
) => void | Promise<void>;
|
|
228
|
+
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
230
|
+
DeleteAiDocument?: (
|
|
231
|
+
context: CallbackContext<
|
|
232
|
+
GraphQLRequest<unknown>,
|
|
233
|
+
GraphQLResponse<DeleteAiDocumentMutation>
|
|
234
|
+
>
|
|
235
|
+
) => void | Promise<void>;
|
|
236
|
+
|
|
237
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
238
|
+
UpdateAiDocument?: (
|
|
239
|
+
context: CallbackContext<
|
|
240
|
+
GraphQLRequest<unknown>,
|
|
241
|
+
GraphQLResponse<UpdateAiDocumentMutation>
|
|
242
|
+
>
|
|
243
|
+
) => void | Promise<void>;
|
|
244
|
+
|
|
245
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
246
|
+
UploadAiDocument?: (
|
|
247
|
+
context: CallbackContext<
|
|
248
|
+
GraphQLRequest<unknown>,
|
|
249
|
+
GraphQLResponse<UploadAiDocumentMutation>
|
|
250
|
+
>
|
|
251
|
+
) => void | Promise<void>;
|
|
252
|
+
|
|
253
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
254
|
+
UpdateAiSettings?: (
|
|
255
|
+
context: CallbackContext<
|
|
256
|
+
GraphQLRequest<unknown>,
|
|
257
|
+
GraphQLResponse<UpdateAiSettingsMutation>
|
|
258
|
+
>
|
|
259
|
+
) => void | Promise<void>;
|
|
260
|
+
|
|
261
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
262
|
+
GetAiSettings?: (
|
|
263
|
+
context: CallbackContext<
|
|
264
|
+
GraphQLRequest<Record<string, never>>,
|
|
265
|
+
GraphQLResponse<GetAiSettingsQuery>
|
|
266
|
+
>
|
|
267
|
+
) => void | Promise<void>;
|
|
268
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as C } from "./reactComponent-
|
|
1
|
+
import { j as C } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
function l({ illustrationColor: t }) {
|
|
3
3
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ C.jsx("title", { children: "Admin illustration" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
const t = ({ variant: o }) => n[o] || n.regular, n = {
|
|
3
3
|
thin: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ r.jsx("path", { d: "M12 2L12 21", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
const t = ({ variant: o }) => n[o] || n.regular, n = {
|
|
3
3
|
thin: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4
4
|
/* @__PURE__ */ r.jsx("path", { d: "M12 22L12 3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./reactComponent-
|
|
1
|
+
import { j as r } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
const e = ({ color: t }) => /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx("path", { d: "M9 13.5 0 4.5 18 4.5z", fill: t, stroke: "none" }) });
|
|
3
3
|
export {
|
|
4
4
|
e as caret_down
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./reactComponent-
|
|
1
|
+
import { j as e } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
const r = ({ variant: t }) => n[t], n = {
|
|
3
3
|
regular: /* @__PURE__ */ e.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M21 3L8.08696 21L3 15.913" }),
|
|
4
4
|
thin: /* @__PURE__ */ e.jsx("path", { vectorEffect: "non-scaling-stroke", d: "M21 3L8.08696 21L3 15.913" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s, f as z, c as K, b as N, a as k, e as I, C as ln, I as Z } from "./reactComponent-
|
|
1
|
+
import { j as s, f as z, c as K, b as N, a as k, e as I, C as ln, I as Z } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
import B, { useMemo as P, useRef as J, useImperativeHandle as cn, useEffect as $, useCallback as E } from "react";
|
|
3
3
|
const pn = ["onCreate", "onDestroy"], H = [
|
|
4
4
|
"onChange",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as c } from "./reactComponent-
|
|
1
|
+
import { j as c } from "./reactComponent-DcK6e5Lc.mjs";
|
|
2
2
|
const s = ({ color: r }) => /* @__PURE__ */ c.jsxs("g", { fill: r, stroke: "none", children: [
|
|
3
3
|
/* @__PURE__ */ c.jsx("circle", { cx: "9.5", cy: "8", r: "1" }),
|
|
4
4
|
/* @__PURE__ */ c.jsx("circle", { cx: "9.5", cy: "12", r: "1" }),
|