@worktango/ai-assistant 0.0.123 → 0.0.125
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-D9Lx68xg.mjs → Absenteeism-DbaPuGJX.mjs} +1 -1
- package/dist/{ActivityFeed-BCY6FGWX.mjs → ActivityFeed-CuMjjIFi.mjs} +1 -1
- package/dist/{AddUser-DBPcdFJI.mjs → AddUser-DeLhqRrb.mjs} +1 -1
- package/dist/{Admin-DeaRWCbc.mjs → Admin-DAZ4xIvf.mjs} +1 -1
- package/dist/{Admin-C2c7H6Vp.mjs → Admin-gKx0ALQ5.mjs} +1 -1
- package/dist/{AiGeneral-B3mDVe1J.mjs → AiGeneral-Ce1lZRTq.mjs} +1 -1
- package/dist/{AiScoring-BKbPD2AD.mjs → AiScoring-BuA3uT9d.mjs} +1 -1
- package/dist/{AiText-CI8HnRLN.mjs → AiText-Co1NFJMC.mjs} +1 -1
- package/dist/{Anniversary-BhoLyhG4.mjs → Anniversary-bloYkQRG.mjs} +1 -1
- package/dist/{Appreciation-CccdPZPl.mjs → Appreciation-DzHeSXrv.mjs} +1 -1
- package/dist/{ArrowDown-Cp9-B2dV.mjs → ArrowDown-DOgHTmEY.mjs} +1 -1
- package/dist/{ArrowLeft-CZ95xzeq.mjs → ArrowLeft-CC3Y1Wvm.mjs} +1 -1
- package/dist/{ArrowRight-COJWNYW-.mjs → ArrowRight-BlgB0PLo.mjs} +1 -1
- package/dist/{ArrowUp-Bzwyp9n6.mjs → ArrowUp-D9QZdcE-.mjs} +1 -1
- package/dist/{Attachment-slnb_Alv.mjs → Attachment-D-_Nl_4U.mjs} +1 -1
- package/dist/{BeQuickDontHurry-BQcN8rr7.mjs → BeQuickDontHurry-CiBmnFvi.mjs} +1 -1
- package/dist/{Birthday-DSgwzFVP.mjs → Birthday-PdC08Vwh.mjs} +1 -1
- package/dist/{BrandPromise-CM7IgwRV.mjs → BrandPromise-_SJave4-.mjs} +1 -1
- package/dist/{BrandVision-ZcakTH-1.mjs → BrandVision-DcvJoHF2.mjs} +1 -1
- package/dist/{Calendar-B3QZF9gk.mjs → Calendar-JuQa9uIw.mjs} +1 -1
- package/dist/{CaretDn-xLIyclsc.mjs → CaretDn-C7HqozYj.mjs} +1 -1
- package/dist/{CaretDown-lhtYNEHU.mjs → CaretDown-CZzZ7NZj.mjs} +1 -1
- package/dist/{CaretLeft-Brxk1x56.mjs → CaretLeft-Cr2zLBpv.mjs} +1 -1
- package/dist/{CaretRight-DVfD_1I5.mjs → CaretRight-Bx7iJ60-.mjs} +1 -1
- package/dist/{CaretUp-_ayu4tm_.mjs → CaretUp-Byd8i-Ar.mjs} +1 -1
- package/dist/{ChallengeAccepted-Bag3gsVQ.mjs → ChallengeAccepted-sz1xBUXY.mjs} +1 -1
- package/dist/{CheckIn-B8q8Cdfc.mjs → CheckIn-d7MY2Fwx.mjs} +1 -1
- package/dist/{CheckIns-CF5q1Rwg.mjs → CheckIns-B7QtYS6B.mjs} +1 -1
- package/dist/{CheckSeal-CGwYV93u.mjs → CheckSeal-B0YOLSie.mjs} +1 -1
- package/dist/{Checkmark-CBgrfVMs.mjs → Checkmark-CCNRoeIu.mjs} +1 -1
- package/dist/{Clock-DGSa2vCM.mjs → Clock-CJFhqRTy.mjs} +1 -1
- package/dist/{Close-DU8AtiMx.mjs → Close-DwkvGZ95.mjs} +1 -1
- package/dist/{CloudDownload-BbDwFoOp.mjs → CloudDownload-Bj62P1-1.mjs} +1 -1
- package/dist/{Comment-lxGlgQ_X.mjs → Comment-DpPYnRY2.mjs} +1 -1
- package/dist/{Comments-DHxhpS7x.mjs → Comments-BI8IXCyu.mjs} +1 -1
- package/dist/{Connections-Bi_436OP.mjs → Connections-JgeIQO-R.mjs} +1 -1
- package/dist/{Copy-DA6pwUEP.mjs → Copy-BSF4sVvJ.mjs} +1 -1
- package/dist/{CustomQuestion-C8cBagy1.mjs → CustomQuestion-Bc1uoE9s.mjs} +1 -1
- package/dist/{CustomerSuccess-BLgvSbik.mjs → CustomerSuccess-BW0MRxe8.mjs} +1 -1
- package/dist/{DatePicker-6Mq59hkz.mjs → DatePicker-BI3jTdHN.mjs} +1 -1
- package/dist/{Dot-BPf8Toic.mjs → Dot-DhWJm0QA.mjs} +1 -1
- package/dist/{Download-Cz_EzgOn.mjs → Download-CLpvEU54.mjs} +1 -1
- package/dist/{Drag-CgZmJ6AN.mjs → Drag-2yUo1JUL.mjs} +1 -1
- package/dist/{DragIndicator-DGvnv3F1.mjs → DragIndicator-Dl-0zqI6.mjs} +1 -1
- package/dist/{Earn-YBnuYRMX.mjs → Earn-h8BLZ-Sm.mjs} +1 -1
- package/dist/{Email-DjUT1qeY.mjs → Email-DFBupGoa.mjs} +1 -1
- package/dist/{EmojiDisplay-yc4X6uQ5.mjs → EmojiDisplay-M7q3bapc.mjs} +2 -2
- package/dist/{EmojiPicker-C0B-f0TF.mjs → EmojiPicker-ps73fNL6.mjs} +2 -2
- package/dist/{EnpsSurvey-LMQSMNZu.mjs → EnpsSurvey-tu_n13DA.mjs} +1 -1
- package/dist/{Expired-CvIGLizo.mjs → Expired-q0PG3USV.mjs} +1 -1
- package/dist/{Eye-DCmP9n0I.mjs → Eye-BYn49M94.mjs} +1 -1
- package/dist/{Feedback-naBxqHgi.mjs → Feedback-BqD6cFgk.mjs} +1 -1
- package/dist/{Feedback-Cnc-ZALD.mjs → Feedback-CoqC4FmP.mjs} +1 -1
- package/dist/{Filter-DtAjwV2G.mjs → Filter-DqXVQOUO.mjs} +1 -1
- package/dist/{Flag-DLITMFjm.mjs → Flag-DXk4C2rC.mjs} +1 -1
- package/dist/Giphy-CnbRy9zp.mjs +22 -0
- package/dist/{GoalCount-CDRQdhd_.mjs → GoalCount-EIlLGZX-.mjs} +1 -1
- package/dist/{GoalPercent-BVo5lVza.mjs → GoalPercent-BY6g2oOY.mjs} +1 -1
- package/dist/{GoalTask-ZqxX-9Oq.mjs → GoalTask-DSDy6ecM.mjs} +1 -1
- package/dist/{GoalTask-sAEga3qP.mjs → GoalTask-Uw4L1jhr.mjs} +1 -1
- package/dist/{Goals-C4plsDoW.mjs → Goals-GnjHt9Xf.mjs} +1 -1
- package/dist/{Goals-D0U_b2PV.mjs → Goals-XXq-Hl79.mjs} +1 -1
- package/dist/{Growth-ygAt8enI.mjs → Growth-CdLWMdsP.mjs} +1 -1
- package/dist/{Hamburger-BliJRao8.mjs → Hamburger-QE9XwBdQ.mjs} +1 -1
- package/dist/{Help-CHo9Pzsi.mjs → Help-BHdhl84d.mjs} +1 -1
- package/dist/{HighFive-3yex7uEE.mjs → HighFive-eb3SBFx5.mjs} +1 -1
- package/dist/{HighFive-CpSXnYrv.mjs → HighFive-uIaDseBT.mjs} +1 -1
- package/dist/{Home-BQem2EZD.mjs → Home-DSgNcUyj.mjs} +1 -1
- package/dist/{Home-BVkHEWvm.mjs → Home-DiK8yLWT.mjs} +1 -1
- package/dist/{HorizontalLine-Gzas0kQ1.mjs → HorizontalLine-BK16qple.mjs} +1 -1
- package/dist/{Hourglass-DYgYRg3y.mjs → Hourglass-G4LMUyz1.mjs} +1 -1
- package/dist/Image-Ck-DB0iX.mjs +41 -0
- package/dist/{ImageFile-zr1qK0mg.mjs → ImageFile-0D2FzRay.mjs} +1 -1
- package/dist/{InGoodCompany-DcU05rfX.mjs → InGoodCompany-rigXCOBG.mjs} +1 -1
- package/dist/{Incentives-Cw2NovlI.mjs → Incentives-WUvQQ08Y.mjs} +1 -1
- package/dist/{Info-DFSbYIx7.mjs → Info-eZMmwpLa.mjs} +1 -1
- package/dist/{Insights-BHUhKtw5.mjs → Insights-C-l8UT2T.mjs} +1 -1
- package/dist/{Insights-BM3vYRfA.mjs → Insights-DoErjNAj.mjs} +1 -1
- package/dist/{Integrations-CZqXQQ7i.mjs → Integrations-BM0nJGEw.mjs} +1 -1
- package/dist/{KazooLogo-BLVThvWy.mjs → KazooLogo-DVkrPp7Y.mjs} +1 -1
- package/dist/{KnowYourAudience-IKWYac_H.mjs → KnowYourAudience-CWdSJtKz.mjs} +1 -1
- package/dist/{Launch-BNk8ARjW.mjs → Launch-Du2AJN5J.mjs} +1 -1
- package/dist/Link-Cr84ZLYo.mjs +43 -0
- package/dist/{LinkArrow-DmkCY8kH.mjs → LinkArrow-dJyY_q89.mjs} +1 -1
- package/dist/{Loading-B5U8GNmC.mjs → Loading-DWwZbLpf.mjs} +1 -1
- package/dist/{Lock-Z6zr56yO.mjs → Lock-DSm-EWdZ.mjs} +1 -1
- package/dist/{Management-c1P0dewy.mjs → Management-a_-T_E1N.mjs} +1 -1
- package/dist/{MeatballMenu-COWvarw3.mjs → MeatballMenu-l0gwsiie.mjs} +1 -1
- package/dist/{MediaError-lBIUBtBr.mjs → MediaError--b7fJP1n.mjs} +1 -1
- package/dist/{Messages-DoRYt6UR.mjs → Messages-C8oFBabP.mjs} +1 -1
- package/dist/{Microphone-C9Ow8q4D.mjs → Microphone-CiGD3Z6n.mjs} +1 -1
- package/dist/{Mobile-BjrtomSm.mjs → Mobile-DjedF8zq.mjs} +1 -1
- package/dist/{Nomination-BjXVGP4k.mjs → Nomination-ItYfJDoK.mjs} +1 -1
- package/dist/{NominationsAndAwards-rm8ChmB2.mjs → NominationsAndAwards-CUoDjL75.mjs} +1 -1
- package/dist/{Notification-CxIo6Axf.mjs → Notification-imFahcC7.mjs} +1 -1
- package/dist/{Okrs-C4UYFjBC.mjs → Okrs-CwRoOdA0.mjs} +1 -1
- package/dist/{Pause-D88Pjy8s.mjs → Pause-BfWsSGSS.mjs} +1 -1
- package/dist/{PeerToPeer-D4h9GokH.mjs → PeerToPeer-BahOSq7p.mjs} +1 -1
- package/dist/{Pencil-_6Gk6PSJ.mjs → Pencil-CaJVF_AT.mjs} +1 -1
- package/dist/{People-Dsg1X8vZ.mjs → People-ABuymVfb.mjs} +1 -1
- package/dist/{PerformanceManagement-rc_tEvEb.mjs → PerformanceManagement-DJ6eORNp.mjs} +1 -1
- package/dist/{Pin-BygzgU6p.mjs → Pin-CuK1Awzy.mjs} +1 -1
- package/dist/{PinnedIconAward-IFZzhS9z.mjs → PinnedIconAward-CVa5ZFDf.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-DrHIytp2.mjs → PinnedIconBrightIdea-CZM77Yoq.mjs} +1 -1
- package/dist/{PinnedIconBullseye-CZrqObam.mjs → PinnedIconBullseye-CJj9_V_c.mjs} +1 -1
- package/dist/{PinnedIconChampagne-CduUZiWN.mjs → PinnedIconChampagne-dotyBWtn.mjs} +1 -1
- package/dist/{PinnedIconCheer-PRFR3Sac.mjs → PinnedIconCheer-D2lwBN6g.mjs} +1 -1
- package/dist/{PinnedIconCrown-DxPan1os.mjs → PinnedIconCrown-DvtIp3_K.mjs} +1 -1
- package/dist/{PinnedIconDiamond-B1PABKmP.mjs → PinnedIconDiamond-CL8F0OCs.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-CxfGp-Fz.mjs → PinnedIconHoleInOne-D827wndU.mjs} +1 -1
- package/dist/{PinnedIconMedal-D-6qTVy8.mjs → PinnedIconMedal-CulRSCCk.mjs} +1 -1
- package/dist/{PinnedIconMetrics-D7orGu6J.mjs → PinnedIconMetrics-C_BEOUpx.mjs} +1 -1
- package/dist/{PinnedIconPin-Cb6f0fjV.mjs → PinnedIconPin-CU4om4T0.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-C-yiZ9cA.mjs → PinnedIconRockAndRoll-fR9hyPvu.mjs} +1 -1
- package/dist/{PinnedIconRocket-BWNS5AEl.mjs → PinnedIconRocket-D9XWcixl.mjs} +1 -1
- package/dist/{PinnedIconStrength-kMGyhh4A.mjs → PinnedIconStrength-C_k6hgn4.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-tV4bZEz0.mjs → PinnedIconTeddyBear-DJn4puIz.mjs} +1 -1
- package/dist/{PlatformLogo-Be6hVz7d.mjs → PlatformLogo-C40exLsS.mjs} +1 -1
- package/dist/{Plus-CNx4_DGX.mjs → Plus-CE7OvOqS.mjs} +1 -1
- package/dist/{Popper-BJurBAUC.mjs → Popper-vQKzs_7f.mjs} +118 -118
- package/dist/{PrivateEye-J5Q7AEih.mjs → PrivateEye-CgLsZaqz.mjs} +1 -1
- package/dist/{PrivatePushPin-lcQmn9jM.mjs → PrivatePushPin-DBtTZe4_.mjs} +1 -1
- package/dist/{Processing-Dgzww-vM.mjs → Processing-DLEK-SmL.mjs} +1 -1
- package/dist/{Productivity-DiNNAOor.mjs → Productivity-CYO58fBZ.mjs} +1 -1
- package/dist/{ProgressCircle-CJnM_nLO.mjs → ProgressCircle-Bpfvh2D1.mjs} +1 -1
- package/dist/{PulseSurvey-DHuDxIH0.mjs → PulseSurvey-BECv1CvQ.mjs} +1 -1
- package/dist/{PushPin-lv0X_oda.mjs → PushPin-Brw0PES3.mjs} +1 -1
- package/dist/{QuotesLeft-y62F6wcq.mjs → QuotesLeft-3Z0UHVho.mjs} +1 -1
- package/dist/{QuotesRight-CISAhjsX.mjs → QuotesRight-Bn8sdCov.mjs} +1 -1
- package/dist/{Recognition-DoLcaIFu.mjs → Recognition-D5P5F12T.mjs} +1 -1
- package/dist/{Recognition-CrQvBO2o.mjs → Recognition-ZgFhxjfj.mjs} +1 -1
- package/dist/{Retention-Bqch_KIG.mjs → Retention--vhtorxs.mjs} +1 -1
- package/dist/{Rewards-B8-jybZr.mjs → Rewards-BDDSNsa3.mjs} +1 -1
- package/dist/{Rewards-By7QmYT2.mjs → Rewards-DSfn-ZW2.mjs} +1 -1
- package/dist/{RewardsCatalog-DFRlLfzP.mjs → RewardsCatalog-C4kwbdVS.mjs} +1 -1
- package/dist/{Roadmap-ywkVBSdH.mjs → Roadmap-B3P8mQVi.mjs} +1 -1
- package/dist/{Search-CeZXtO0e.mjs → Search-CTLP14gz.mjs} +1 -1
- package/dist/{Security-Cv6b-xTT.mjs → Security-BRiJ1WGH.mjs} +1 -1
- package/dist/{SendRecognition-D-E0LN0b.mjs → SendRecognition-TRltOxuQ.mjs} +1 -1
- package/dist/{ShareLink-D7X7qA1D.mjs → ShareLink-Mthg3c7m.mjs} +1 -1
- package/dist/{SidebarCollapse-CsxsX5az.mjs → SidebarCollapse-D6T4Z0vd.mjs} +1 -1
- package/dist/{Skill-Co21ACiF.mjs → Skill-BpGIb43r.mjs} +1 -1
- package/dist/{Skills-C2v-0KjH.mjs → Skills-Byn2GrO0.mjs} +1 -1
- package/dist/Smiley-EowVvIZ0.mjs +84 -0
- package/dist/{Stop-CEwHeCpH.mjs → Stop-BY9WvILP.mjs} +1 -1
- package/dist/{Survey-D2ePU49D.mjs → Survey-B3G1YCtN.mjs} +1 -1
- package/dist/{Surveys-CtxKgtMp.mjs → Surveys-DLGpl5vg.mjs} +1 -1
- package/dist/{SyncUps-NBS2v_Lc.mjs → SyncUps-DS3AZK96.mjs} +1 -1
- package/dist/{Syncs-DEp8T8jr.mjs → Syncs-G-eZzq1S.mjs} +1 -1
- package/dist/{TalentReview-QDSY9iSG.mjs → TalentReview-BD3Tf5n8.mjs} +1 -1
- package/dist/{TalentReview-CiZ94qtN.mjs → TalentReview-yhx4H6C0.mjs} +1 -1
- package/dist/{TalentReviewInsights-DZ9GZugW.mjs → TalentReviewInsights-DnjAwpUU.mjs} +1 -1
- package/dist/{TaskCompleted-BSOHXRMt.mjs → TaskCompleted-DCho-FE_.mjs} +1 -1
- package/dist/{Team-DmepWBE1.mjs → Team-CCBeQ_kJ.mjs} +1 -1
- package/dist/{Teams-C1vzrwLW.mjs → Teams-BbpyNEDE.mjs} +1 -1
- package/dist/{TextBold-Dznt2KRG.mjs → TextBold-B050TOFB.mjs} +1 -1
- package/dist/{TextBulletList-B_H-w7Vz.mjs → TextBulletList-CD6hU8m0.mjs} +1 -1
- package/dist/{TextInput-Zpxtz2tz.mjs → TextInput-BAVJCHcI.mjs} +1 -1
- package/dist/{TextItalic-D-FMcHlr.mjs → TextItalic-Do6Hbw2h.mjs} +1 -1
- package/dist/{TextNumberList-CKTC6JZx.mjs → TextNumberList-CBskMak3.mjs} +1 -1
- package/dist/{TextUnderline-2SxToEko.mjs → TextUnderline-DHINZsem.mjs} +1 -1
- package/dist/{ThumbsDown-CsZ0deeS.mjs → ThumbsDown-DFkVM6jT.mjs} +1 -1
- package/dist/{ThumbsUp-DR_Kz8KM.mjs → ThumbsUp-DgfJK-0O.mjs} +1 -1
- package/dist/{Toggle-DzYgTIe2.mjs → Toggle-CTF7q00_.mjs} +1 -1
- package/dist/{Translate-Ckf5DHsE.mjs → Translate-DOMhcrld.mjs} +1 -1
- package/dist/{Trash-DKO78C39.mjs → Trash-DKK-hHuh.mjs} +1 -1
- package/dist/{TrendDown-Cc0uaoF4.mjs → TrendDown-CsPV7qZH.mjs} +1 -1
- package/dist/{TrendUp-CrlpNtsE.mjs → TrendUp-DnNEhT1f.mjs} +1 -1
- package/dist/{Undo-CDUGAXGu.mjs → Undo-BNLgWjAT.mjs} +1 -1
- package/dist/{Unplugged-DaLduBTK.mjs → Unplugged-DaE4exHa.mjs} +1 -1
- package/dist/{UpDownCaret-7JggAQrk.mjs → UpDownCaret-CGwwoNCy.mjs} +1 -1
- package/dist/{VerifiedCheckmark-CVO0Slub.mjs → VerifiedCheckmark-B1k1CeUU.mjs} +1 -1
- package/dist/{VerticalLine-BonEKY4V.mjs → VerticalLine-A6rajNar.mjs} +1 -1
- package/dist/{Warning-J9fWq4Pq.mjs → Warning-DpxX3WxU.mjs} +1 -1
- package/dist/{WarningNoOutline-Dm2nLzN5.mjs → WarningNoOutline-CNXBVA0R.mjs} +1 -1
- package/dist/{YesAnd-BtLQrbhK.mjs → YesAnd-Yxq9Y2h5.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-Bn3L_Bil.mjs → emoji-QSPQCKMp.mjs} +1 -1
- package/dist/{react-apexcharts.min-gcpRK97E.mjs → react-apexcharts.min-B5_RLOjd.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +119 -119
- package/dist/{reactComponent-DcK6e5Lc.mjs → reactComponent-S0H-I319.mjs} +2252 -2238
- package/generated/apiHooks.tsx +5623 -0
- package/generated/sdk.ts +5098 -0
- package/generated/stitchedSdk.ts +1174 -0
- package/package.json +3 -1
- package/dist/Giphy-DzulFn5R.mjs +0 -24
- package/dist/Image-C_566sjP.mjs +0 -43
- package/dist/Link-DB98NrLu.mjs +0 -25
- package/dist/Smiley-DkyTM6jt.mjs +0 -45
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-S0H-I319.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-S0H-I319.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-S0H-I319.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-S0H-I319.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-S0H-I319.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-S0H-I319.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-S0H-I319.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" }),
|