@iblai/mcp 1.0.0 → 1.1.3
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 +95 -142
- package/dist/index.js +129 -97
- package/dist/index.js.map +1 -1
- package/dist/prompts/create-playwright-test.d.ts +2 -0
- package/dist/prompts/create-playwright-test.d.ts.map +1 -0
- package/dist/prompts/create-playwright-test.js +99 -0
- package/dist/prompts/create-playwright-test.js.map +1 -0
- package/dist/prompts/index.d.ts +4 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +4 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/setup-e2e-testing.d.ts +2 -0
- package/dist/prompts/setup-e2e-testing.d.ts.map +1 -0
- package/dist/prompts/setup-e2e-testing.js +162 -0
- package/dist/prompts/setup-e2e-testing.js.map +1 -0
- package/dist/prompts/setup-new-app.d.ts +2 -0
- package/dist/prompts/setup-new-app.d.ts.map +1 -0
- package/dist/prompts/setup-new-app.js +226 -0
- package/dist/prompts/setup-new-app.js.map +1 -0
- package/dist/resources/data-layer.js +14 -14
- package/dist/resources/guides-layout.js +5 -5
- package/dist/resources/guides-playwright.d.ts +8 -0
- package/dist/resources/guides-playwright.d.ts.map +1 -0
- package/dist/resources/guides-playwright.js +235 -0
- package/dist/resources/guides-playwright.js.map +1 -0
- package/dist/resources/guides-rbac.js +2 -2
- package/dist/resources/guides-theme.js +4 -4
- package/dist/resources/index.d.ts +3 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +5 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/packages-overview.d.ts.map +1 -1
- package/dist/resources/packages-overview.js +12 -6
- package/dist/resources/packages-overview.js.map +1 -1
- package/dist/resources/packages-playwright.d.ts +8 -0
- package/dist/resources/packages-playwright.d.ts.map +1 -0
- package/dist/resources/packages-playwright.js +161 -0
- package/dist/resources/packages-playwright.js.map +1 -0
- package/dist/resources/web-containers.d.ts.map +1 -1
- package/dist/resources/web-containers.js +82 -22
- package/dist/resources/web-containers.js.map +1 -1
- package/dist/resources/web-utils.d.ts.map +1 -1
- package/dist/resources/web-utils.js +46 -9
- package/dist/resources/web-utils.js.map +1 -1
- package/dist/tools/api-query-info.d.ts.map +1 -1
- package/dist/tools/api-query-info.js +248 -238
- package/dist/tools/api-query-info.js.map +1 -1
- package/dist/tools/component-info.d.ts.map +1 -1
- package/dist/tools/component-info.js +945 -469
- package/dist/tools/component-info.js.map +1 -1
- package/dist/tools/hook-info.d.ts.map +1 -1
- package/dist/tools/hook-info.js +229 -98
- package/dist/tools/hook-info.js.map +1 -1
- package/dist/tools/index.d.ts +15 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/page-template.js +8 -8
- package/dist/tools/page-template.js.map +1 -1
- package/dist/tools/playwright-helper-info.d.ts +16 -0
- package/dist/tools/playwright-helper-info.d.ts.map +1 -0
- package/dist/tools/playwright-helper-info.js +849 -0
- package/dist/tools/playwright-helper-info.js.map +1 -0
- package/dist/tools/provider-setup.js +4 -4
- package/dist/tools/provider-setup.js.map +1 -1
- package/package.json +19 -6
package/dist/tools/hook-info.js
CHANGED
|
@@ -21,7 +21,7 @@ const hooks = {
|
|
|
21
21
|
Main hook for AI mentor chat with WebSocket streaming and multi-tab support.
|
|
22
22
|
|
|
23
23
|
\`\`\`typescript
|
|
24
|
-
import { useAdvancedChat } from '@iblai/web-utils';
|
|
24
|
+
import { useAdvancedChat } from '@iblai/iblai-js/web-utils';
|
|
25
25
|
|
|
26
26
|
const {
|
|
27
27
|
// State
|
|
@@ -88,7 +88,7 @@ const {
|
|
|
88
88
|
Lower-level WebSocket chat hook for real-time message streaming.
|
|
89
89
|
|
|
90
90
|
\`\`\`typescript
|
|
91
|
-
import { useChat } from '@iblai/web-utils';
|
|
91
|
+
import { useChat } from '@iblai/iblai-js/web-utils';
|
|
92
92
|
|
|
93
93
|
const {
|
|
94
94
|
messages,
|
|
@@ -134,7 +134,7 @@ const {
|
|
|
134
134
|
Fetches mentor-specific configuration and settings.
|
|
135
135
|
|
|
136
136
|
\`\`\`typescript
|
|
137
|
-
import { useMentorSettings } from '@iblai/web-utils';
|
|
137
|
+
import { useMentorSettings } from '@iblai/iblai-js/web-utils';
|
|
138
138
|
|
|
139
139
|
const {
|
|
140
140
|
profileImage, // Mentor avatar URL
|
|
@@ -163,7 +163,7 @@ const {
|
|
|
163
163
|
Manages mentor tools configuration and state.
|
|
164
164
|
|
|
165
165
|
\`\`\`typescript
|
|
166
|
-
import { useMentorTools } from '@iblai/web-utils';
|
|
166
|
+
import { useMentorTools } from '@iblai/iblai-js/web-utils';
|
|
167
167
|
|
|
168
168
|
const {
|
|
169
169
|
tools, // Available tools for mentor
|
|
@@ -193,7 +193,7 @@ const {
|
|
|
193
193
|
Updates user profile data with safe field filtering.
|
|
194
194
|
|
|
195
195
|
\`\`\`typescript
|
|
196
|
-
import { useUserProfileUpdate } from '@iblai/web-utils';
|
|
196
|
+
import { useUserProfileUpdate } from '@iblai/iblai-js/web-utils';
|
|
197
197
|
|
|
198
198
|
const { updateProfile } = useUserProfileUpdate(username);
|
|
199
199
|
|
|
@@ -226,7 +226,7 @@ await updateProfile({
|
|
|
226
226
|
Handles profile image upload to S3 with presigned URLs.
|
|
227
227
|
|
|
228
228
|
\`\`\`typescript
|
|
229
|
-
import { useProfileImageUpload } from '@iblai/web-utils';
|
|
229
|
+
import { useProfileImageUpload } from '@iblai/iblai-js/web-utils';
|
|
230
230
|
|
|
231
231
|
const {
|
|
232
232
|
uploadImage, // Upload image function
|
|
@@ -252,7 +252,7 @@ await uploadImage(file: File);
|
|
|
252
252
|
Manages subscription flow, free trials, and payment handling.
|
|
253
253
|
|
|
254
254
|
\`\`\`typescript
|
|
255
|
-
import { useSubscriptionHandler } from '@iblai/web-utils';
|
|
255
|
+
import { useSubscriptionHandler } from '@iblai/iblai-js/web-utils';
|
|
256
256
|
|
|
257
257
|
const {
|
|
258
258
|
handleSubscriptionCheck, // Check subscription status
|
|
@@ -280,7 +280,7 @@ const {
|
|
|
280
280
|
Fetches tenant configuration and metadata with feature flags.
|
|
281
281
|
|
|
282
282
|
\`\`\`typescript
|
|
283
|
-
import { useTenantMetadata } from '@iblai/web-utils';
|
|
283
|
+
import { useTenantMetadata } from '@iblai/iblai-js/web-utils';
|
|
284
284
|
|
|
285
285
|
const {
|
|
286
286
|
metadata, // Full tenant metadata object
|
|
@@ -307,7 +307,7 @@ const {
|
|
|
307
307
|
Tracks time spent on pages/routes for analytics.
|
|
308
308
|
|
|
309
309
|
\`\`\`typescript
|
|
310
|
-
import { useTimeTracker } from '@iblai/web-utils';
|
|
310
|
+
import { useTimeTracker } from '@iblai/iblai-js/web-utils';
|
|
311
311
|
|
|
312
312
|
const {
|
|
313
313
|
pause, // Pause tracking
|
|
@@ -336,7 +336,7 @@ const {
|
|
|
336
336
|
Date/time utilities using day.js library.
|
|
337
337
|
|
|
338
338
|
\`\`\`typescript
|
|
339
|
-
import { useDayJs } from '@iblai/web-utils';
|
|
339
|
+
import { useDayJs } from '@iblai/iblai-js/web-utils';
|
|
340
340
|
|
|
341
341
|
const {
|
|
342
342
|
getTimeDifferenceBetweenTwoDates,
|
|
@@ -368,7 +368,7 @@ const futureDate = generateFutureDateForNMinutes(30);
|
|
|
368
368
|
Fetches list of mentors for a tenant with pagination.
|
|
369
369
|
|
|
370
370
|
\`\`\`typescript
|
|
371
|
-
import { useGetMentorsQuery } from '@iblai/data-layer';
|
|
371
|
+
import { useGetMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
372
372
|
|
|
373
373
|
const { data, isLoading, error, refetch, isFetching } = useGetMentorsQuery({
|
|
374
374
|
org: string, // Tenant key (required)
|
|
@@ -391,7 +391,7 @@ interface MentorsResponse {
|
|
|
391
391
|
Fetches detailed information about a single mentor.
|
|
392
392
|
|
|
393
393
|
\`\`\`typescript
|
|
394
|
-
import { useGetMentorDetailsQuery } from '@iblai/data-layer';
|
|
394
|
+
import { useGetMentorDetailsQuery } from '@iblai/iblai-js/data-layer';
|
|
395
395
|
|
|
396
396
|
const { data: mentor, isLoading, error } = useGetMentorDetailsQuery({
|
|
397
397
|
org: string, // Tenant key
|
|
@@ -407,7 +407,7 @@ const { data: mentor, isLoading, error } = useGetMentorDetailsQuery({
|
|
|
407
407
|
Fetches mentor settings for authenticated users.
|
|
408
408
|
|
|
409
409
|
\`\`\`typescript
|
|
410
|
-
import { useGetMentorSettingsQuery } from '@iblai/data-layer';
|
|
410
|
+
import { useGetMentorSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
411
411
|
|
|
412
412
|
const { data: settings, isLoading } = useGetMentorSettingsQuery({
|
|
413
413
|
org: string, // Tenant key
|
|
@@ -424,7 +424,7 @@ const { data: settings, isLoading } = useGetMentorSettingsQuery({
|
|
|
424
424
|
Fetches mentor settings for anonymous/unauthenticated users.
|
|
425
425
|
|
|
426
426
|
\`\`\`typescript
|
|
427
|
-
import { useGetMentorPublicSettingsQuery } from '@iblai/data-layer';
|
|
427
|
+
import { useGetMentorPublicSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
428
428
|
|
|
429
429
|
const { data: settings, isLoading } = useGetMentorPublicSettingsQuery({
|
|
430
430
|
org: string, // Tenant key
|
|
@@ -440,7 +440,7 @@ const { data: settings, isLoading } = useGetMentorPublicSettingsQuery({
|
|
|
440
440
|
Creates a new AI mentor.
|
|
441
441
|
|
|
442
442
|
\`\`\`typescript
|
|
443
|
-
import { useCreateMentorMutation } from '@iblai/data-layer';
|
|
443
|
+
import { useCreateMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
444
444
|
|
|
445
445
|
const [createMentor, { isLoading, error }] = useCreateMentorMutation();
|
|
446
446
|
|
|
@@ -461,7 +461,7 @@ await createMentor({
|
|
|
461
461
|
Updates an existing AI mentor.
|
|
462
462
|
|
|
463
463
|
\`\`\`typescript
|
|
464
|
-
import { useEditMentorMutation } from '@iblai/data-layer';
|
|
464
|
+
import { useEditMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
465
465
|
|
|
466
466
|
const [editMentor, { isLoading }] = useEditMentorMutation();
|
|
467
467
|
|
|
@@ -482,7 +482,7 @@ await editMentor({
|
|
|
482
482
|
Deletes an AI mentor.
|
|
483
483
|
|
|
484
484
|
\`\`\`typescript
|
|
485
|
-
import { useDeleteMentorMutation } from '@iblai/data-layer';
|
|
485
|
+
import { useDeleteMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
486
486
|
|
|
487
487
|
const [deleteMentor, { isLoading }] = useDeleteMentorMutation();
|
|
488
488
|
|
|
@@ -498,7 +498,7 @@ await deleteMentor({
|
|
|
498
498
|
Creates a copy/fork of an existing mentor.
|
|
499
499
|
|
|
500
500
|
\`\`\`typescript
|
|
501
|
-
import { useForkMentorMutation } from '@iblai/data-layer';
|
|
501
|
+
import { useForkMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
502
502
|
|
|
503
503
|
const [forkMentor, { isLoading }] = useForkMentorMutation();
|
|
504
504
|
|
|
@@ -515,7 +515,7 @@ const newMentor = await forkMentor({
|
|
|
515
515
|
Stars/favorites a mentor.
|
|
516
516
|
|
|
517
517
|
\`\`\`typescript
|
|
518
|
-
import { useStarMentorMutation } from '@iblai/data-layer';
|
|
518
|
+
import { useStarMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
519
519
|
|
|
520
520
|
const [starMentor, { isLoading }] = useStarMentorMutation();
|
|
521
521
|
|
|
@@ -531,7 +531,7 @@ await starMentor({
|
|
|
531
531
|
Removes star/favorite from a mentor.
|
|
532
532
|
|
|
533
533
|
\`\`\`typescript
|
|
534
|
-
import { useUnstarMentorMutation } from '@iblai/data-layer';
|
|
534
|
+
import { useUnstarMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
535
535
|
|
|
536
536
|
const [unstarMentor, { isLoading }] = useUnstarMentorMutation();
|
|
537
537
|
|
|
@@ -547,7 +547,7 @@ await unstarMentor({
|
|
|
547
547
|
Fetches user's starred/favorited mentors.
|
|
548
548
|
|
|
549
549
|
\`\`\`typescript
|
|
550
|
-
import { useStarredMentorsQuery } from '@iblai/data-layer';
|
|
550
|
+
import { useStarredMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
551
551
|
|
|
552
552
|
const { data: starredMentors, isLoading } = useStarredMentorsQuery({
|
|
553
553
|
org: string,
|
|
@@ -562,7 +562,7 @@ const { data: starredMentors, isLoading } = useStarredMentorsQuery({
|
|
|
562
562
|
Fetches mentors the user has recently interacted with.
|
|
563
563
|
|
|
564
564
|
\`\`\`typescript
|
|
565
|
-
import { useGetRecentlyAccessedMentorsQuery } from '@iblai/data-layer';
|
|
565
|
+
import { useGetRecentlyAccessedMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
566
566
|
|
|
567
567
|
const { data: recentMentors, isLoading } = useGetRecentlyAccessedMentorsQuery({
|
|
568
568
|
org: string,
|
|
@@ -576,7 +576,7 @@ const { data: recentMentors, isLoading } = useGetRecentlyAccessedMentorsQuery({
|
|
|
576
576
|
Fetches remaining free usage count for trial users.
|
|
577
577
|
|
|
578
578
|
\`\`\`typescript
|
|
579
|
-
import { useGetFreeUsageCountQuery } from '@iblai/data-layer';
|
|
579
|
+
import { useGetFreeUsageCountQuery } from '@iblai/iblai-js/data-layer';
|
|
580
580
|
|
|
581
581
|
const { data, isLoading } = useGetFreeUsageCountQuery({
|
|
582
582
|
org: string,
|
|
@@ -593,7 +593,7 @@ const { data, isLoading } = useGetFreeUsageCountQuery({
|
|
|
593
593
|
Seeds default mentors for a tenant (admin only).
|
|
594
594
|
|
|
595
595
|
\`\`\`typescript
|
|
596
|
-
import { useSeedMentorsMutation } from '@iblai/data-layer';
|
|
596
|
+
import { useSeedMentorsMutation } from '@iblai/iblai-js/data-layer';
|
|
597
597
|
|
|
598
598
|
const [seedMentors, { isLoading }] = useSeedMentorsMutation();
|
|
599
599
|
|
|
@@ -611,7 +611,7 @@ await seedMentors({
|
|
|
611
611
|
Fetches user profile and metadata.
|
|
612
612
|
|
|
613
613
|
\`\`\`typescript
|
|
614
|
-
import { useGetUserMetadataQuery } from '@iblai/data-layer';
|
|
614
|
+
import { useGetUserMetadataQuery } from '@iblai/iblai-js/data-layer';
|
|
615
615
|
|
|
616
616
|
const { data: user, isLoading, error } = useGetUserMetadataQuery({
|
|
617
617
|
params: { username: string },
|
|
@@ -640,7 +640,7 @@ interface UserProfile {
|
|
|
640
640
|
Updates user profile metadata.
|
|
641
641
|
|
|
642
642
|
\`\`\`typescript
|
|
643
|
-
import { useUpdateUserMetadataMutation } from '@iblai/data-layer';
|
|
643
|
+
import { useUpdateUserMetadataMutation } from '@iblai/iblai-js/data-layer';
|
|
644
644
|
|
|
645
645
|
const [updateUser, { isLoading }] = useUpdateUserMetadataMutation();
|
|
646
646
|
|
|
@@ -660,7 +660,7 @@ await updateUser({
|
|
|
660
660
|
Updates user account settings.
|
|
661
661
|
|
|
662
662
|
\`\`\`typescript
|
|
663
|
-
import { useUpdateUserAccountMutation } from '@iblai/data-layer';
|
|
663
|
+
import { useUpdateUserAccountMutation } from '@iblai/iblai-js/data-layer';
|
|
664
664
|
|
|
665
665
|
const [updateAccount, { isLoading }] = useUpdateUserAccountMutation();
|
|
666
666
|
|
|
@@ -676,7 +676,7 @@ await updateAccount({
|
|
|
676
676
|
Initiates password reset flow.
|
|
677
677
|
|
|
678
678
|
\`\`\`typescript
|
|
679
|
-
import { useResetPasswordMutation } from '@iblai/data-layer';
|
|
679
|
+
import { useResetPasswordMutation } from '@iblai/iblai-js/data-layer';
|
|
680
680
|
|
|
681
681
|
const [resetPassword, { isLoading }] = useResetPasswordMutation();
|
|
682
682
|
|
|
@@ -686,12 +686,27 @@ await resetPassword({
|
|
|
686
686
|
\`\`\`
|
|
687
687
|
|
|
688
688
|
**File Location**: \`packages/data-layer/src/features/user/api-slice.ts\``,
|
|
689
|
+
useSelfRetireMutation: `# useSelfRetireMutation Hook (RTK Query)
|
|
690
|
+
|
|
691
|
+
Schedules the current user's account for deletion (self-retirement).
|
|
692
|
+
|
|
693
|
+
\`\`\`typescript
|
|
694
|
+
import { useSelfRetireMutation } from '@iblai/iblai-js/data-layer';
|
|
695
|
+
|
|
696
|
+
const [selfRetire, { isLoading }] = useSelfRetireMutation();
|
|
697
|
+
|
|
698
|
+
const result = await selfRetire();
|
|
699
|
+
// result.data: { message?: string }
|
|
700
|
+
// result.error: RTK Query error if request failed
|
|
701
|
+
\`\`\`
|
|
702
|
+
|
|
703
|
+
**File Location**: \`packages/data-layer/src/features/retirement/api-slice.ts\``,
|
|
689
704
|
useUploadProfileImageMutation: `# useUploadProfileImageMutation Hook (RTK Query)
|
|
690
705
|
|
|
691
706
|
Uploads user profile image.
|
|
692
707
|
|
|
693
708
|
\`\`\`typescript
|
|
694
|
-
import { useUploadProfileImageMutation } from '@iblai/data-layer';
|
|
709
|
+
import { useUploadProfileImageMutation } from '@iblai/iblai-js/data-layer';
|
|
695
710
|
|
|
696
711
|
const [uploadImage, { isLoading }] = useUploadProfileImageMutation();
|
|
697
712
|
|
|
@@ -707,7 +722,7 @@ await uploadImage({
|
|
|
707
722
|
Removes user profile image.
|
|
708
723
|
|
|
709
724
|
\`\`\`typescript
|
|
710
|
-
import { useRemoveProfileImageMutation } from '@iblai/data-layer';
|
|
725
|
+
import { useRemoveProfileImageMutation } from '@iblai/iblai-js/data-layer';
|
|
711
726
|
|
|
712
727
|
const [removeImage, { isLoading }] = useRemoveProfileImageMutation();
|
|
713
728
|
|
|
@@ -725,7 +740,7 @@ await removeImage({
|
|
|
725
740
|
Fetches platform users with pagination and filtering.
|
|
726
741
|
|
|
727
742
|
\`\`\`typescript
|
|
728
|
-
import { useGetPlatformUsersQuery } from '@iblai/data-layer';
|
|
743
|
+
import { useGetPlatformUsersQuery } from '@iblai/iblai-js/data-layer';
|
|
729
744
|
|
|
730
745
|
const { data, isLoading, error } = useGetPlatformUsersQuery({
|
|
731
746
|
platformKey: string, // Tenant key
|
|
@@ -749,7 +764,7 @@ interface PlatformUsersListResponse {
|
|
|
749
764
|
Fetches platform user groups (teams).
|
|
750
765
|
|
|
751
766
|
\`\`\`typescript
|
|
752
|
-
import { usePlatformUserGroupsQuery } from '@iblai/data-layer';
|
|
767
|
+
import { usePlatformUserGroupsQuery } from '@iblai/iblai-js/data-layer';
|
|
753
768
|
|
|
754
769
|
const { data: groups, isLoading } = usePlatformUserGroupsQuery({
|
|
755
770
|
platformKey: string,
|
|
@@ -766,7 +781,7 @@ const { data: groups, isLoading } = usePlatformUserGroupsQuery({
|
|
|
766
781
|
Fetches detailed information about a single user group.
|
|
767
782
|
|
|
768
783
|
\`\`\`typescript
|
|
769
|
-
import { useGetPlatformUserGroupDetailsQuery } from '@iblai/data-layer';
|
|
784
|
+
import { useGetPlatformUserGroupDetailsQuery } from '@iblai/iblai-js/data-layer';
|
|
770
785
|
|
|
771
786
|
const { data: group, isLoading } = useGetPlatformUserGroupDetailsQuery({
|
|
772
787
|
id: number,
|
|
@@ -789,7 +804,7 @@ interface PlatformUserGroupDetailsResponse {
|
|
|
789
804
|
Creates a new platform user group.
|
|
790
805
|
|
|
791
806
|
\`\`\`typescript
|
|
792
|
-
import { useCreatePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
807
|
+
import { useCreatePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
793
808
|
|
|
794
809
|
const [createGroup, { isLoading }] = useCreatePlatformUserGroupMutation();
|
|
795
810
|
|
|
@@ -806,7 +821,7 @@ await createGroup({
|
|
|
806
821
|
Updates an existing platform user group.
|
|
807
822
|
|
|
808
823
|
\`\`\`typescript
|
|
809
|
-
import { useUpdatePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
824
|
+
import { useUpdatePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
810
825
|
|
|
811
826
|
const [updateGroup, { isLoading }] = useUpdatePlatformUserGroupMutation();
|
|
812
827
|
|
|
@@ -824,7 +839,7 @@ await updateGroup({
|
|
|
824
839
|
Deletes a platform user group.
|
|
825
840
|
|
|
826
841
|
\`\`\`typescript
|
|
827
|
-
import { useDeletePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
842
|
+
import { useDeletePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
828
843
|
|
|
829
844
|
const [deleteGroup, { isLoading }] = useDeletePlatformUserGroupMutation();
|
|
830
845
|
|
|
@@ -840,7 +855,7 @@ await deleteGroup({
|
|
|
840
855
|
Invites a user to the platform.
|
|
841
856
|
|
|
842
857
|
\`\`\`typescript
|
|
843
|
-
import { useInviteUserMutation } from '@iblai/data-layer';
|
|
858
|
+
import { useInviteUserMutation } from '@iblai/iblai-js/data-layer';
|
|
844
859
|
|
|
845
860
|
const [inviteUser, { isLoading }] = useInviteUserMutation();
|
|
846
861
|
|
|
@@ -858,7 +873,7 @@ await inviteUser({
|
|
|
858
873
|
Updates user role and policies on a platform.
|
|
859
874
|
|
|
860
875
|
\`\`\`typescript
|
|
861
|
-
import { useUpdatePlatformUserRoleWithPoliciesMutation } from '@iblai/data-layer';
|
|
876
|
+
import { useUpdatePlatformUserRoleWithPoliciesMutation } from '@iblai/iblai-js/data-layer';
|
|
862
877
|
|
|
863
878
|
const [updateRole, { isLoading }] = useUpdatePlatformUserRoleWithPoliciesMutation();
|
|
864
879
|
|
|
@@ -879,7 +894,7 @@ await updateRole({
|
|
|
879
894
|
Fetches tenant configuration and metadata.
|
|
880
895
|
|
|
881
896
|
\`\`\`typescript
|
|
882
|
-
import { useGetTenantMetadataQuery } from '@iblai/data-layer';
|
|
897
|
+
import { useGetTenantMetadataQuery } from '@iblai/iblai-js/data-layer';
|
|
883
898
|
|
|
884
899
|
const { data: metadata, isLoading } = useGetTenantMetadataQuery({
|
|
885
900
|
org: string, // Tenant key
|
|
@@ -899,7 +914,7 @@ const { data: metadata, isLoading } = useGetTenantMetadataQuery({
|
|
|
899
914
|
Updates tenant metadata and settings.
|
|
900
915
|
|
|
901
916
|
\`\`\`typescript
|
|
902
|
-
import { useUpdateTenantMetadataMutation } from '@iblai/data-layer';
|
|
917
|
+
import { useUpdateTenantMetadataMutation } from '@iblai/iblai-js/data-layer';
|
|
903
918
|
|
|
904
919
|
const [updateMetadata, { isLoading }] = useUpdateTenantMetadataMutation();
|
|
905
920
|
|
|
@@ -915,7 +930,7 @@ await updateMetadata({
|
|
|
915
930
|
Fetches tenants the current user has access to.
|
|
916
931
|
|
|
917
932
|
\`\`\`typescript
|
|
918
|
-
import { useGetUserTenantsQuery } from '@iblai/data-layer';
|
|
933
|
+
import { useGetUserTenantsQuery } from '@iblai/iblai-js/data-layer';
|
|
919
934
|
|
|
920
935
|
const { data: tenants, isLoading } = useGetUserTenantsQuery();
|
|
921
936
|
|
|
@@ -931,7 +946,7 @@ const { data: tenants, isLoading } = useGetUserTenantsQuery();
|
|
|
931
946
|
Fetches RBAC groups for a platform.
|
|
932
947
|
|
|
933
948
|
\`\`\`typescript
|
|
934
|
-
import { useGetRbacGroupsQuery } from '@iblai/data-layer';
|
|
949
|
+
import { useGetRbacGroupsQuery } from '@iblai/iblai-js/data-layer';
|
|
935
950
|
|
|
936
951
|
const { data: groups, isLoading } = useGetRbacGroupsQuery({
|
|
937
952
|
platformKey: string,
|
|
@@ -946,7 +961,7 @@ const { data: groups, isLoading } = useGetRbacGroupsQuery({
|
|
|
946
961
|
Fetches RBAC permissions for current user.
|
|
947
962
|
|
|
948
963
|
\`\`\`typescript
|
|
949
|
-
import { useGetRbacPermissionsQuery } from '@iblai/data-layer';
|
|
964
|
+
import { useGetRbacPermissionsQuery } from '@iblai/iblai-js/data-layer';
|
|
950
965
|
|
|
951
966
|
const { data: permissions, isLoading } = useGetRbacPermissionsQuery({
|
|
952
967
|
platformKey: string,
|
|
@@ -964,7 +979,7 @@ const { data: permissions, isLoading } = useGetRbacPermissionsQuery({
|
|
|
964
979
|
Fetches mentor memories/context for RAG.
|
|
965
980
|
|
|
966
981
|
\`\`\`typescript
|
|
967
|
-
import { useGetMemoriesQuery } from '@iblai/data-layer';
|
|
982
|
+
import { useGetMemoriesQuery } from '@iblai/iblai-js/data-layer';
|
|
968
983
|
|
|
969
984
|
const { data: memories, isLoading } = useGetMemoriesQuery({
|
|
970
985
|
org: string,
|
|
@@ -982,7 +997,7 @@ const { data: memories, isLoading } = useGetMemoriesQuery({
|
|
|
982
997
|
Fetches available memory categories.
|
|
983
998
|
|
|
984
999
|
\`\`\`typescript
|
|
985
|
-
import { useGetMemoryCategoriesQuery } from '@iblai/data-layer';
|
|
1000
|
+
import { useGetMemoryCategoriesQuery } from '@iblai/iblai-js/data-layer';
|
|
986
1001
|
|
|
987
1002
|
const { data: categories, isLoading } = useGetMemoryCategoriesQuery({
|
|
988
1003
|
org: string,
|
|
@@ -998,7 +1013,7 @@ const { data: categories, isLoading } = useGetMemoryCategoriesQuery({
|
|
|
998
1013
|
Creates a new memory entry.
|
|
999
1014
|
|
|
1000
1015
|
\`\`\`typescript
|
|
1001
|
-
import { useCreateMemoryMutation } from '@iblai/data-layer';
|
|
1016
|
+
import { useCreateMemoryMutation } from '@iblai/iblai-js/data-layer';
|
|
1002
1017
|
|
|
1003
1018
|
const [createMemory, { isLoading }] = useCreateMemoryMutation();
|
|
1004
1019
|
|
|
@@ -1016,7 +1031,7 @@ await createMemory({
|
|
|
1016
1031
|
Updates an existing memory entry.
|
|
1017
1032
|
|
|
1018
1033
|
\`\`\`typescript
|
|
1019
|
-
import { useUpdateMemoryEntryMutation } from '@iblai/data-layer';
|
|
1034
|
+
import { useUpdateMemoryEntryMutation } from '@iblai/iblai-js/data-layer';
|
|
1020
1035
|
|
|
1021
1036
|
const [updateMemory, { isLoading }] = useUpdateMemoryEntryMutation();
|
|
1022
1037
|
|
|
@@ -1035,7 +1050,7 @@ await updateMemory({
|
|
|
1035
1050
|
Deletes a memory entry.
|
|
1036
1051
|
|
|
1037
1052
|
\`\`\`typescript
|
|
1038
|
-
import { useDeleteMemoryMutation } from '@iblai/data-layer';
|
|
1053
|
+
import { useDeleteMemoryMutation } from '@iblai/iblai-js/data-layer';
|
|
1039
1054
|
|
|
1040
1055
|
const [deleteMemory, { isLoading }] = useDeleteMemoryMutation();
|
|
1041
1056
|
|
|
@@ -1052,7 +1067,7 @@ await deleteMemory({
|
|
|
1052
1067
|
Fetches user-specific settings for a mentor.
|
|
1053
1068
|
|
|
1054
1069
|
\`\`\`typescript
|
|
1055
|
-
import { useGetMentorUserSettingsQuery } from '@iblai/data-layer';
|
|
1070
|
+
import { useGetMentorUserSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
1056
1071
|
|
|
1057
1072
|
const { data: settings, isLoading } = useGetMentorUserSettingsQuery({
|
|
1058
1073
|
org: string,
|
|
@@ -1068,7 +1083,7 @@ const { data: settings, isLoading } = useGetMentorUserSettingsQuery({
|
|
|
1068
1083
|
Updates user-specific settings for a mentor.
|
|
1069
1084
|
|
|
1070
1085
|
\`\`\`typescript
|
|
1071
|
-
import { useUpdateMentorUserSettingsMutation } from '@iblai/data-layer';
|
|
1086
|
+
import { useUpdateMentorUserSettingsMutation } from '@iblai/iblai-js/data-layer';
|
|
1072
1087
|
|
|
1073
1088
|
const [updateSettings, { isLoading }] = useUpdateMentorUserSettingsMutation();
|
|
1074
1089
|
|
|
@@ -1088,7 +1103,7 @@ await updateSettings({
|
|
|
1088
1103
|
Fetches MCP server configurations.
|
|
1089
1104
|
|
|
1090
1105
|
\`\`\`typescript
|
|
1091
|
-
import { useGetMCPServersQuery } from '@iblai/data-layer';
|
|
1106
|
+
import { useGetMCPServersQuery } from '@iblai/iblai-js/data-layer';
|
|
1092
1107
|
|
|
1093
1108
|
const { data: servers, isLoading } = useGetMCPServersQuery({
|
|
1094
1109
|
org: string,
|
|
@@ -1104,7 +1119,7 @@ const { data: servers, isLoading } = useGetMCPServersQuery({
|
|
|
1104
1119
|
Creates a new MCP server configuration.
|
|
1105
1120
|
|
|
1106
1121
|
\`\`\`typescript
|
|
1107
|
-
import { useCreateMCPServerMutation } from '@iblai/data-layer';
|
|
1122
|
+
import { useCreateMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1108
1123
|
|
|
1109
1124
|
const [createServer, { isLoading }] = useCreateMCPServerMutation();
|
|
1110
1125
|
|
|
@@ -1123,7 +1138,7 @@ await createServer({
|
|
|
1123
1138
|
Updates an existing MCP server configuration.
|
|
1124
1139
|
|
|
1125
1140
|
\`\`\`typescript
|
|
1126
|
-
import { useUpdateMCPServerMutation } from '@iblai/data-layer';
|
|
1141
|
+
import { useUpdateMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1127
1142
|
|
|
1128
1143
|
const [updateServer, { isLoading }] = useUpdateMCPServerMutation();
|
|
1129
1144
|
|
|
@@ -1141,7 +1156,7 @@ await updateServer({
|
|
|
1141
1156
|
Deletes an MCP server configuration.
|
|
1142
1157
|
|
|
1143
1158
|
\`\`\`typescript
|
|
1144
|
-
import { useDeleteMCPServerMutation } from '@iblai/data-layer';
|
|
1159
|
+
import { useDeleteMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1145
1160
|
|
|
1146
1161
|
const [deleteServer, { isLoading }] = useDeleteMCPServerMutation();
|
|
1147
1162
|
|
|
@@ -1157,7 +1172,7 @@ await deleteServer({
|
|
|
1157
1172
|
Fetches available OAuth services for MCP.
|
|
1158
1173
|
|
|
1159
1174
|
\`\`\`typescript
|
|
1160
|
-
import { useGetOAuthServicesQuery } from '@iblai/data-layer';
|
|
1175
|
+
import { useGetOAuthServicesQuery } from '@iblai/iblai-js/data-layer';
|
|
1161
1176
|
|
|
1162
1177
|
const { data: services, isLoading } = useGetOAuthServicesQuery({
|
|
1163
1178
|
org: string,
|
|
@@ -1172,7 +1187,7 @@ const { data: services, isLoading } = useGetOAuthServicesQuery({
|
|
|
1172
1187
|
Fetches user's connected OAuth services.
|
|
1173
1188
|
|
|
1174
1189
|
\`\`\`typescript
|
|
1175
|
-
import { useGetConnectedServicesQuery } from '@iblai/data-layer';
|
|
1190
|
+
import { useGetConnectedServicesQuery } from '@iblai/iblai-js/data-layer';
|
|
1176
1191
|
|
|
1177
1192
|
const { data: connected, isLoading } = useGetConnectedServicesQuery({
|
|
1178
1193
|
org: string,
|
|
@@ -1187,7 +1202,7 @@ const { data: connected, isLoading } = useGetConnectedServicesQuery({
|
|
|
1187
1202
|
Initiates OAuth flow for a service.
|
|
1188
1203
|
|
|
1189
1204
|
\`\`\`typescript
|
|
1190
|
-
import { useStartOAuthFlowMutation } from '@iblai/data-layer';
|
|
1205
|
+
import { useStartOAuthFlowMutation } from '@iblai/iblai-js/data-layer';
|
|
1191
1206
|
|
|
1192
1207
|
const [startOAuth, { isLoading }] = useStartOAuthFlowMutation();
|
|
1193
1208
|
|
|
@@ -1206,7 +1221,7 @@ const { authUrl } = await startOAuth({
|
|
|
1206
1221
|
Disconnects an OAuth service.
|
|
1207
1222
|
|
|
1208
1223
|
\`\`\`typescript
|
|
1209
|
-
import { useDisconnectServiceMutation } from '@iblai/data-layer';
|
|
1224
|
+
import { useDisconnectServiceMutation } from '@iblai/iblai-js/data-layer';
|
|
1210
1225
|
|
|
1211
1226
|
const [disconnect, { isLoading }] = useDisconnectServiceMutation();
|
|
1212
1227
|
|
|
@@ -1225,7 +1240,7 @@ await disconnect({
|
|
|
1225
1240
|
Fetches user notifications.
|
|
1226
1241
|
|
|
1227
1242
|
\`\`\`typescript
|
|
1228
|
-
import { useGetNotificationsQuery } from '@iblai/data-layer';
|
|
1243
|
+
import { useGetNotificationsQuery } from '@iblai/iblai-js/data-layer';
|
|
1229
1244
|
|
|
1230
1245
|
const { data: notifications, isLoading } = useGetNotificationsQuery({
|
|
1231
1246
|
page?: number,
|
|
@@ -1241,7 +1256,7 @@ const { data: notifications, isLoading } = useGetNotificationsQuery({
|
|
|
1241
1256
|
Fetches unread notification count.
|
|
1242
1257
|
|
|
1243
1258
|
\`\`\`typescript
|
|
1244
|
-
import { useGetNotificationsCountQuery } from '@iblai/data-layer';
|
|
1259
|
+
import { useGetNotificationsCountQuery } from '@iblai/iblai-js/data-layer';
|
|
1245
1260
|
|
|
1246
1261
|
const { data, isLoading } = useGetNotificationsCountQuery();
|
|
1247
1262
|
|
|
@@ -1254,7 +1269,7 @@ const { data, isLoading } = useGetNotificationsCountQuery();
|
|
|
1254
1269
|
Marks all notifications as read.
|
|
1255
1270
|
|
|
1256
1271
|
\`\`\`typescript
|
|
1257
|
-
import { useMarkAllAsReadMutation } from '@iblai/data-layer';
|
|
1272
|
+
import { useMarkAllAsReadMutation } from '@iblai/iblai-js/data-layer';
|
|
1258
1273
|
|
|
1259
1274
|
const [markAllRead, { isLoading }] = useMarkAllAsReadMutation();
|
|
1260
1275
|
|
|
@@ -1267,7 +1282,7 @@ await markAllRead().unwrap();
|
|
|
1267
1282
|
Sends a notification to users.
|
|
1268
1283
|
|
|
1269
1284
|
\`\`\`typescript
|
|
1270
|
-
import { useSendNotificationMutation } from '@iblai/data-layer';
|
|
1285
|
+
import { useSendNotificationMutation } from '@iblai/iblai-js/data-layer';
|
|
1271
1286
|
|
|
1272
1287
|
const [sendNotification, { isLoading }] = useSendNotificationMutation();
|
|
1273
1288
|
|
|
@@ -1288,7 +1303,7 @@ await sendNotification({
|
|
|
1288
1303
|
Fetches pinned messages in a chat session.
|
|
1289
1304
|
|
|
1290
1305
|
\`\`\`typescript
|
|
1291
|
-
import { usePinnedMessagesQuery } from '@iblai/data-layer';
|
|
1306
|
+
import { usePinnedMessagesQuery } from '@iblai/iblai-js/data-layer';
|
|
1292
1307
|
|
|
1293
1308
|
const { data: pinnedMessages, isLoading } = usePinnedMessagesQuery({
|
|
1294
1309
|
org: string,
|
|
@@ -1305,7 +1320,7 @@ const { data: pinnedMessages, isLoading } = usePinnedMessagesQuery({
|
|
|
1305
1320
|
Updates feedback (thumbs up/down) on a message.
|
|
1306
1321
|
|
|
1307
1322
|
\`\`\`typescript
|
|
1308
|
-
import { useUpdateMessageFeedbackMutation } from '@iblai/data-layer';
|
|
1323
|
+
import { useUpdateMessageFeedbackMutation } from '@iblai/iblai-js/data-layer';
|
|
1309
1324
|
|
|
1310
1325
|
const [updateFeedback, { isLoading }] = useUpdateMessageFeedbackMutation();
|
|
1311
1326
|
|
|
@@ -1323,7 +1338,7 @@ await updateFeedback({
|
|
|
1323
1338
|
Converts audio to text (speech-to-text).
|
|
1324
1339
|
|
|
1325
1340
|
\`\`\`typescript
|
|
1326
|
-
import { useAudioToTextMutation } from '@iblai/data-layer';
|
|
1341
|
+
import { useAudioToTextMutation } from '@iblai/iblai-js/data-layer';
|
|
1327
1342
|
|
|
1328
1343
|
const [convertAudio, { isLoading }] = useAudioToTextMutation();
|
|
1329
1344
|
|
|
@@ -1342,7 +1357,7 @@ const { text } = await convertAudio({
|
|
|
1342
1357
|
Fetches chat history for a session.
|
|
1343
1358
|
|
|
1344
1359
|
\`\`\`typescript
|
|
1345
|
-
import { useGetChatHistoryQuery } from '@iblai/data-layer';
|
|
1360
|
+
import { useGetChatHistoryQuery } from '@iblai/iblai-js/data-layer';
|
|
1346
1361
|
|
|
1347
1362
|
const { data: history, isLoading } = useGetChatHistoryQuery({
|
|
1348
1363
|
org: string,
|
|
@@ -1359,7 +1374,7 @@ const { data: history, isLoading } = useGetChatHistoryQuery({
|
|
|
1359
1374
|
Fetches all chat sessions for a mentor.
|
|
1360
1375
|
|
|
1361
1376
|
\`\`\`typescript
|
|
1362
|
-
import { useGetSessionsQuery } from '@iblai/data-layer';
|
|
1377
|
+
import { useGetSessionsQuery } from '@iblai/iblai-js/data-layer';
|
|
1363
1378
|
|
|
1364
1379
|
const { data: sessions, isLoading } = useGetSessionsQuery({
|
|
1365
1380
|
org: string,
|
|
@@ -1378,7 +1393,7 @@ const { data: sessions, isLoading } = useGetSessionsQuery({
|
|
|
1378
1393
|
Fetches user's self-reported skills.
|
|
1379
1394
|
|
|
1380
1395
|
\`\`\`typescript
|
|
1381
|
-
import { useGetReportedSkillsQuery } from '@iblai/data-layer';
|
|
1396
|
+
import { useGetReportedSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1382
1397
|
|
|
1383
1398
|
const { data: skills, isLoading } = useGetReportedSkillsQuery({
|
|
1384
1399
|
org: string,
|
|
@@ -1394,7 +1409,7 @@ const { data: skills, isLoading } = useGetReportedSkillsQuery({
|
|
|
1394
1409
|
Fetches user's desired skills to learn.
|
|
1395
1410
|
|
|
1396
1411
|
\`\`\`typescript
|
|
1397
|
-
import { useGetDesiredSkillsQuery } from '@iblai/data-layer';
|
|
1412
|
+
import { useGetDesiredSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1398
1413
|
|
|
1399
1414
|
const { data: skills, isLoading } = useGetDesiredSkillsQuery({
|
|
1400
1415
|
org: string,
|
|
@@ -1410,7 +1425,7 @@ const { data: skills, isLoading } = useGetDesiredSkillsQuery({
|
|
|
1410
1425
|
Fetches user's skills points percentile for leaderboard.
|
|
1411
1426
|
|
|
1412
1427
|
\`\`\`typescript
|
|
1413
|
-
import { useGetSkillsPointsPercentileQuery } from '@iblai/data-layer';
|
|
1428
|
+
import { useGetSkillsPointsPercentileQuery } from '@iblai/iblai-js/data-layer';
|
|
1414
1429
|
|
|
1415
1430
|
const { data, isLoading } = useGetSkillsPointsPercentileQuery({
|
|
1416
1431
|
org: string,
|
|
@@ -1427,7 +1442,7 @@ const { data, isLoading } = useGetSkillsPointsPercentileQuery({
|
|
|
1427
1442
|
Fetches skills user has earned through learning.
|
|
1428
1443
|
|
|
1429
1444
|
\`\`\`typescript
|
|
1430
|
-
import { useGetUserEarnedSkillsQuery } from '@iblai/data-layer';
|
|
1445
|
+
import { useGetUserEarnedSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1431
1446
|
|
|
1432
1447
|
const { data: skills, isLoading } = useGetUserEarnedSkillsQuery({
|
|
1433
1448
|
org: string,
|
|
@@ -1446,7 +1461,7 @@ const { data: skills, isLoading } = useGetUserEarnedSkillsQuery({
|
|
|
1446
1461
|
Fetches pathways user is enrolled in.
|
|
1447
1462
|
|
|
1448
1463
|
\`\`\`typescript
|
|
1449
|
-
import { useGetUserEnrolledPathwaysQuery } from '@iblai/data-layer';
|
|
1464
|
+
import { useGetUserEnrolledPathwaysQuery } from '@iblai/iblai-js/data-layer';
|
|
1450
1465
|
|
|
1451
1466
|
const { data: pathways, isLoading } = useGetUserEnrolledPathwaysQuery({
|
|
1452
1467
|
org: string,
|
|
@@ -1462,7 +1477,7 @@ const { data: pathways, isLoading } = useGetUserEnrolledPathwaysQuery({
|
|
|
1462
1477
|
Fetches programs user is enrolled in.
|
|
1463
1478
|
|
|
1464
1479
|
\`\`\`typescript
|
|
1465
|
-
import { useGetUserEnrolledProgramsQuery } from '@iblai/data-layer';
|
|
1480
|
+
import { useGetUserEnrolledProgramsQuery } from '@iblai/iblai-js/data-layer';
|
|
1466
1481
|
|
|
1467
1482
|
const { data: programs, isLoading } = useGetUserEnrolledProgramsQuery({
|
|
1468
1483
|
org: string,
|
|
@@ -1478,7 +1493,7 @@ const { data: programs, isLoading } = useGetUserEnrolledProgramsQuery({
|
|
|
1478
1493
|
Fetches available catalog roles.
|
|
1479
1494
|
|
|
1480
1495
|
\`\`\`typescript
|
|
1481
|
-
import { useGetCatalogRolesQuery } from '@iblai/data-layer';
|
|
1496
|
+
import { useGetCatalogRolesQuery } from '@iblai/iblai-js/data-layer';
|
|
1482
1497
|
|
|
1483
1498
|
const { data: roles, isLoading } = useGetCatalogRolesQuery({
|
|
1484
1499
|
org: string,
|
|
@@ -1496,7 +1511,7 @@ const { data: roles, isLoading } = useGetCatalogRolesQuery({
|
|
|
1496
1511
|
Performs personalized search across mentors and catalog.
|
|
1497
1512
|
|
|
1498
1513
|
\`\`\`typescript
|
|
1499
|
-
import { useGetPersonnalizedSearchQuery } from '@iblai/data-layer';
|
|
1514
|
+
import { useGetPersonnalizedSearchQuery } from '@iblai/iblai-js/data-layer';
|
|
1500
1515
|
|
|
1501
1516
|
const { data: results, isLoading } = useGetPersonnalizedSearchQuery({
|
|
1502
1517
|
org: string,
|
|
@@ -1513,7 +1528,7 @@ const { data: results, isLoading } = useGetPersonnalizedSearchQuery({
|
|
|
1513
1528
|
AI-powered mentor search and recommendations.
|
|
1514
1529
|
|
|
1515
1530
|
\`\`\`typescript
|
|
1516
|
-
import { useGetAiSearchMentorsQuery } from '@iblai/data-layer';
|
|
1531
|
+
import { useGetAiSearchMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
1517
1532
|
|
|
1518
1533
|
const { data: mentors, isLoading } = useGetAiSearchMentorsQuery({
|
|
1519
1534
|
org: string,
|
|
@@ -1529,7 +1544,7 @@ const { data: mentors, isLoading } = useGetAiSearchMentorsQuery({
|
|
|
1529
1544
|
Fetches AI-powered recommendations.
|
|
1530
1545
|
|
|
1531
1546
|
\`\`\`typescript
|
|
1532
|
-
import { useGetRecommendationsAiSearchQuery } from '@iblai/data-layer';
|
|
1547
|
+
import { useGetRecommendationsAiSearchQuery } from '@iblai/iblai-js/data-layer';
|
|
1533
1548
|
|
|
1534
1549
|
const { data: recommendations, isLoading } = useGetRecommendationsAiSearchQuery({
|
|
1535
1550
|
org: string,
|
|
@@ -1548,7 +1563,7 @@ const { data: recommendations, isLoading } = useGetRecommendationsAiSearchQuery(
|
|
|
1548
1563
|
Fetches user's projects.
|
|
1549
1564
|
|
|
1550
1565
|
\`\`\`typescript
|
|
1551
|
-
import { useGetUserProjectsQuery } from '@iblai/data-layer';
|
|
1566
|
+
import { useGetUserProjectsQuery } from '@iblai/iblai-js/data-layer';
|
|
1552
1567
|
|
|
1553
1568
|
const { data: projects, isLoading } = useGetUserProjectsQuery({
|
|
1554
1569
|
org: string,
|
|
@@ -1564,7 +1579,7 @@ const { data: projects, isLoading } = useGetUserProjectsQuery({
|
|
|
1564
1579
|
Creates a new user project.
|
|
1565
1580
|
|
|
1566
1581
|
\`\`\`typescript
|
|
1567
|
-
import { useCreateUserProjectMutation } from '@iblai/data-layer';
|
|
1582
|
+
import { useCreateUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1568
1583
|
|
|
1569
1584
|
const [createProject, { isLoading }] = useCreateUserProjectMutation();
|
|
1570
1585
|
|
|
@@ -1581,7 +1596,7 @@ await createProject({
|
|
|
1581
1596
|
Updates an existing user project.
|
|
1582
1597
|
|
|
1583
1598
|
\`\`\`typescript
|
|
1584
|
-
import { useUpdateUserProjectMutation } from '@iblai/data-layer';
|
|
1599
|
+
import { useUpdateUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1585
1600
|
|
|
1586
1601
|
const [updateProject, { isLoading }] = useUpdateUserProjectMutation();
|
|
1587
1602
|
|
|
@@ -1599,7 +1614,7 @@ await updateProject({
|
|
|
1599
1614
|
Deletes a user project.
|
|
1600
1615
|
|
|
1601
1616
|
\`\`\`typescript
|
|
1602
|
-
import { useDeleteUserProjectMutation } from '@iblai/data-layer';
|
|
1617
|
+
import { useDeleteUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1603
1618
|
|
|
1604
1619
|
const [deleteProject, { isLoading }] = useDeleteUserProjectMutation();
|
|
1605
1620
|
|
|
@@ -1618,7 +1633,7 @@ await deleteProject({
|
|
|
1618
1633
|
Exchanges Apple Sign-In token for JWT.
|
|
1619
1634
|
|
|
1620
1635
|
\`\`\`typescript
|
|
1621
|
-
import { useExchangeAppleTokenMutation } from '@iblai/data-layer';
|
|
1636
|
+
import { useExchangeAppleTokenMutation } from '@iblai/iblai-js/data-layer';
|
|
1622
1637
|
|
|
1623
1638
|
const [exchangeToken, { isLoading }] = useExchangeAppleTokenMutation();
|
|
1624
1639
|
|
|
@@ -1634,7 +1649,7 @@ const { access_token, refresh_token } = await exchangeToken({
|
|
|
1634
1649
|
Refreshes JWT token using refresh token.
|
|
1635
1650
|
|
|
1636
1651
|
\`\`\`typescript
|
|
1637
|
-
import { useRefreshJwtTokenMutation } from '@iblai/data-layer';
|
|
1652
|
+
import { useRefreshJwtTokenMutation } from '@iblai/iblai-js/data-layer';
|
|
1638
1653
|
|
|
1639
1654
|
const [refreshToken, { isLoading }] = useRefreshJwtTokenMutation();
|
|
1640
1655
|
|
|
@@ -1649,7 +1664,7 @@ const { access_token } = await refreshToken({
|
|
|
1649
1664
|
Fetches Micro Frontend context for embedded apps.
|
|
1650
1665
|
|
|
1651
1666
|
\`\`\`typescript
|
|
1652
|
-
import { useGetMfeContextQuery } from '@iblai/data-layer';
|
|
1667
|
+
import { useGetMfeContextQuery } from '@iblai/iblai-js/data-layer';
|
|
1653
1668
|
|
|
1654
1669
|
const { data: context, isLoading } = useGetMfeContextQuery({
|
|
1655
1670
|
appId: string,
|
|
@@ -1667,7 +1682,7 @@ const { data: context, isLoading } = useGetMfeContextQuery({
|
|
|
1667
1682
|
Fetches user's credentials.
|
|
1668
1683
|
|
|
1669
1684
|
\`\`\`typescript
|
|
1670
|
-
import { useGetUserCredentialsQuery } from '@iblai/data-layer';
|
|
1685
|
+
import { useGetUserCredentialsQuery } from '@iblai/iblai-js/data-layer';
|
|
1671
1686
|
|
|
1672
1687
|
const { data: credentials, isLoading } = useGetUserCredentialsQuery({
|
|
1673
1688
|
org: string,
|
|
@@ -1683,7 +1698,7 @@ const { data: credentials, isLoading } = useGetUserCredentialsQuery({
|
|
|
1683
1698
|
Fetches integration credentials for third-party services.
|
|
1684
1699
|
|
|
1685
1700
|
\`\`\`typescript
|
|
1686
|
-
import { useGetIntegrationCredentialsQuery } from '@iblai/data-layer';
|
|
1701
|
+
import { useGetIntegrationCredentialsQuery } from '@iblai/iblai-js/data-layer';
|
|
1687
1702
|
|
|
1688
1703
|
const { data: credentials, isLoading } = useGetIntegrationCredentialsQuery({
|
|
1689
1704
|
org: string,
|
|
@@ -1701,7 +1716,7 @@ const { data: credentials, isLoading } = useGetIntegrationCredentialsQuery({
|
|
|
1701
1716
|
Fetches training documents for a mentor.
|
|
1702
1717
|
|
|
1703
1718
|
\`\`\`typescript
|
|
1704
|
-
import { useGetTrainingDocumentsQuery } from '@iblai/data-layer';
|
|
1719
|
+
import { useGetTrainingDocumentsQuery } from '@iblai/iblai-js/data-layer';
|
|
1705
1720
|
|
|
1706
1721
|
const { data: documents, isLoading } = useGetTrainingDocumentsQuery({
|
|
1707
1722
|
org: string,
|
|
@@ -1717,7 +1732,7 @@ const { data: documents, isLoading } = useGetTrainingDocumentsQuery({
|
|
|
1717
1732
|
Uploads a training document for mentor knowledge base.
|
|
1718
1733
|
|
|
1719
1734
|
\`\`\`typescript
|
|
1720
|
-
import { useUploadTrainingDocumentMutation } from '@iblai/data-layer';
|
|
1735
|
+
import { useUploadTrainingDocumentMutation } from '@iblai/iblai-js/data-layer';
|
|
1721
1736
|
|
|
1722
1737
|
const [uploadDocument, { isLoading }] = useUploadTrainingDocumentMutation();
|
|
1723
1738
|
|
|
@@ -1735,7 +1750,7 @@ await uploadDocument({
|
|
|
1735
1750
|
Deletes a training document.
|
|
1736
1751
|
|
|
1737
1752
|
\`\`\`typescript
|
|
1738
|
-
import { useDeleteTrainingDocumentMutation } from '@iblai/data-layer';
|
|
1753
|
+
import { useDeleteTrainingDocumentMutation } from '@iblai/iblai-js/data-layer';
|
|
1739
1754
|
|
|
1740
1755
|
const [deleteDocument, { isLoading }] = useDeleteTrainingDocumentMutation();
|
|
1741
1756
|
|
|
@@ -1755,7 +1770,7 @@ await deleteDocument({
|
|
|
1755
1770
|
Fetches user billing information.
|
|
1756
1771
|
|
|
1757
1772
|
\`\`\`typescript
|
|
1758
|
-
import { useGetBillingInfoQuery } from '@iblai/data-layer';
|
|
1773
|
+
import { useGetBillingInfoQuery } from '@iblai/iblai-js/data-layer';
|
|
1759
1774
|
|
|
1760
1775
|
const { data: billing, isLoading } = useGetBillingInfoQuery({
|
|
1761
1776
|
org: string,
|
|
@@ -1770,7 +1785,7 @@ const { data: billing, isLoading } = useGetBillingInfoQuery({
|
|
|
1770
1785
|
Creates a Stripe checkout session.
|
|
1771
1786
|
|
|
1772
1787
|
\`\`\`typescript
|
|
1773
|
-
import { useCreateCheckoutSessionMutation } from '@iblai/data-layer';
|
|
1788
|
+
import { useCreateCheckoutSessionMutation } from '@iblai/iblai-js/data-layer';
|
|
1774
1789
|
|
|
1775
1790
|
const [createSession, { isLoading }] = useCreateCheckoutSessionMutation();
|
|
1776
1791
|
|
|
@@ -1790,7 +1805,7 @@ const { sessionUrl } = await createSession({
|
|
|
1790
1805
|
Creates a Stripe billing portal session.
|
|
1791
1806
|
|
|
1792
1807
|
\`\`\`typescript
|
|
1793
|
-
import { useCreatePortalSessionMutation } from '@iblai/data-layer';
|
|
1808
|
+
import { useCreatePortalSessionMutation } from '@iblai/iblai-js/data-layer';
|
|
1794
1809
|
|
|
1795
1810
|
const [createPortal, { isLoading }] = useCreatePortalSessionMutation();
|
|
1796
1811
|
|
|
@@ -1811,7 +1826,7 @@ const { portalUrl } = await createPortal({
|
|
|
1811
1826
|
Creates a shareable link for a mentor.
|
|
1812
1827
|
|
|
1813
1828
|
\`\`\`typescript
|
|
1814
|
-
import { useCreateShareableLinkMutation } from '@iblai/data-layer';
|
|
1829
|
+
import { useCreateShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
1815
1830
|
|
|
1816
1831
|
const [createLink, { isLoading }] = useCreateShareableLinkMutation();
|
|
1817
1832
|
|
|
@@ -1828,7 +1843,7 @@ const { link, token } = await createLink({
|
|
|
1828
1843
|
Updates a shareable link.
|
|
1829
1844
|
|
|
1830
1845
|
\`\`\`typescript
|
|
1831
|
-
import { useUpdateShareableLinkMutation } from '@iblai/data-layer';
|
|
1846
|
+
import { useUpdateShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
1832
1847
|
|
|
1833
1848
|
const [updateLink, { isLoading }] = useUpdateShareableLinkMutation();
|
|
1834
1849
|
|
|
@@ -1846,7 +1861,7 @@ await updateLink({
|
|
|
1846
1861
|
Revokes a shareable link.
|
|
1847
1862
|
|
|
1848
1863
|
\`\`\`typescript
|
|
1849
|
-
import { useRevokeShareableLinkMutation } from '@iblai/data-layer';
|
|
1864
|
+
import { useRevokeShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
1850
1865
|
|
|
1851
1866
|
const [revokeLink, { isLoading }] = useRevokeShareableLinkMutation();
|
|
1852
1867
|
|
|
@@ -1858,13 +1873,120 @@ await revokeLink({
|
|
|
1858
1873
|
\`\`\`
|
|
1859
1874
|
|
|
1860
1875
|
**File Location**: \`packages/data-layer/src/features/mentor/api-slice.ts\``,
|
|
1876
|
+
// ============================================================================
|
|
1877
|
+
// WORKFLOW HOOKS
|
|
1878
|
+
// ============================================================================
|
|
1879
|
+
useActivateWorkflowMutation: `# useActivateWorkflowMutation Hook (RTK Query)
|
|
1880
|
+
|
|
1881
|
+
Activates a workflow, making it available for execution. Validates the workflow before activation.
|
|
1882
|
+
|
|
1883
|
+
\`\`\`typescript
|
|
1884
|
+
import { useActivateWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1885
|
+
|
|
1886
|
+
const [activateWorkflow, { isLoading, error }] = useActivateWorkflowMutation();
|
|
1887
|
+
|
|
1888
|
+
const result = await activateWorkflow({
|
|
1889
|
+
org: string,
|
|
1890
|
+
uniqueId: string,
|
|
1891
|
+
}).unwrap();
|
|
1892
|
+
// result: { is_valid: boolean, errors: string[], warnings: string[], workflow?: Workflow }
|
|
1893
|
+
\`\`\`
|
|
1894
|
+
|
|
1895
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1896
|
+
useDeactivateWorkflowMutation: `# useDeactivateWorkflowMutation Hook (RTK Query)
|
|
1897
|
+
|
|
1898
|
+
Deactivates a workflow, preventing it from being executed.
|
|
1899
|
+
|
|
1900
|
+
\`\`\`typescript
|
|
1901
|
+
import { useDeactivateWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1902
|
+
|
|
1903
|
+
const [deactivateWorkflow, { isLoading, error }] = useDeactivateWorkflowMutation();
|
|
1904
|
+
|
|
1905
|
+
const result = await deactivateWorkflow({
|
|
1906
|
+
org: string,
|
|
1907
|
+
uniqueId: string,
|
|
1908
|
+
}).unwrap();
|
|
1909
|
+
// result: { workflow: Workflow }
|
|
1910
|
+
\`\`\`
|
|
1911
|
+
|
|
1912
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1913
|
+
usePublishWorkflowMutation: `# usePublishWorkflowMutation Hook (RTK Query)
|
|
1914
|
+
|
|
1915
|
+
Publishes a workflow, making it publicly available. Validates before publishing. Optionally accepts an updated definition.
|
|
1916
|
+
|
|
1917
|
+
\`\`\`typescript
|
|
1918
|
+
import { usePublishWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1919
|
+
|
|
1920
|
+
const [publishWorkflow, { isLoading, error }] = usePublishWorkflowMutation();
|
|
1921
|
+
|
|
1922
|
+
const result = await publishWorkflow({
|
|
1923
|
+
org: string,
|
|
1924
|
+
uniqueId: string,
|
|
1925
|
+
data?: { definition?: WorkflowDefinition },
|
|
1926
|
+
}).unwrap();
|
|
1927
|
+
// result: { is_valid: boolean, errors: string[], warnings: string[], workflow?: Workflow }
|
|
1928
|
+
\`\`\`
|
|
1929
|
+
|
|
1930
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1931
|
+
useUnpublishWorkflowMutation: `# useUnpublishWorkflowMutation Hook (RTK Query)
|
|
1932
|
+
|
|
1933
|
+
Unpublishes a workflow, removing it from public availability.
|
|
1934
|
+
|
|
1935
|
+
\`\`\`typescript
|
|
1936
|
+
import { useUnpublishWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1937
|
+
|
|
1938
|
+
const [unpublishWorkflow, { isLoading, error }] = useUnpublishWorkflowMutation();
|
|
1939
|
+
|
|
1940
|
+
const result = await unpublishWorkflow({
|
|
1941
|
+
org: string,
|
|
1942
|
+
uniqueId: string,
|
|
1943
|
+
}).unwrap();
|
|
1944
|
+
// result: { workflow: Workflow }
|
|
1945
|
+
\`\`\`
|
|
1946
|
+
|
|
1947
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1948
|
+
useValidateWorkflowMutation: `# useValidateWorkflowMutation Hook (RTK Query)
|
|
1949
|
+
|
|
1950
|
+
Validates a workflow's structure and configuration without activating or publishing it.
|
|
1951
|
+
|
|
1952
|
+
\`\`\`typescript
|
|
1953
|
+
import { useValidateWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1954
|
+
|
|
1955
|
+
const [validateWorkflow, { isLoading, error }] = useValidateWorkflowMutation();
|
|
1956
|
+
|
|
1957
|
+
const result = await validateWorkflow({
|
|
1958
|
+
org: string,
|
|
1959
|
+
uniqueId: string,
|
|
1960
|
+
}).unwrap();
|
|
1961
|
+
// result: { is_valid: boolean, errors: string[], warnings: string[], workflow?: Workflow }
|
|
1962
|
+
\`\`\`
|
|
1963
|
+
|
|
1964
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1965
|
+
useChatWithWorkflowMutation: `# useChatWithWorkflowMutation Hook (RTK Query)
|
|
1966
|
+
|
|
1967
|
+
Sends a chat message to interact with a workflow.
|
|
1968
|
+
|
|
1969
|
+
\`\`\`typescript
|
|
1970
|
+
import { useChatWithWorkflowMutation } from '@iblai/iblai-js/data-layer';
|
|
1971
|
+
|
|
1972
|
+
const [chatWithWorkflow, { isLoading, error }] = useChatWithWorkflowMutation();
|
|
1973
|
+
|
|
1974
|
+
const result = await chatWithWorkflow({
|
|
1975
|
+
org: string,
|
|
1976
|
+
uniqueId: string,
|
|
1977
|
+
message: string,
|
|
1978
|
+
}).unwrap();
|
|
1979
|
+
// result: { response: string, workflow_id: string, session_id: string }
|
|
1980
|
+
\`\`\`
|
|
1981
|
+
|
|
1982
|
+
**File Location**: \`packages/data-layer/src/features/workflows/api-slice.ts\``,
|
|
1861
1983
|
};
|
|
1862
1984
|
export function getHookInfo(hookName) {
|
|
1863
1985
|
const info = hooks[hookName];
|
|
1864
1986
|
if (!info) {
|
|
1865
1987
|
return `Hook "${hookName}" not found.
|
|
1866
1988
|
|
|
1867
|
-
**Web Utils Hooks (@iblai/web-utils):**
|
|
1989
|
+
**Web Utils Hooks (@iblai/iblai-js/web-utils):**
|
|
1868
1990
|
- useAdvancedChat - AI chat with WebSocket streaming and multi-tab support
|
|
1869
1991
|
- useChat - Lower-level WebSocket chat hook
|
|
1870
1992
|
- useMentorSettings - Mentor configuration
|
|
@@ -1876,7 +1998,7 @@ export function getHookInfo(hookName) {
|
|
|
1876
1998
|
- useTimeTracker - Time tracking for analytics
|
|
1877
1999
|
- useDayJs - Date/time utilities
|
|
1878
2000
|
|
|
1879
|
-
**Data Layer Hooks (@iblai/data-layer) - Mentor:**
|
|
2001
|
+
**Data Layer Hooks (@iblai/iblai-js/data-layer) - Mentor:**
|
|
1880
2002
|
- useGetMentorsQuery - List mentors
|
|
1881
2003
|
- useGetMentorDetailsQuery - Mentor details
|
|
1882
2004
|
- useGetMentorSettingsQuery - Mentor settings (authenticated)
|
|
@@ -1897,6 +2019,7 @@ export function getHookInfo(hookName) {
|
|
|
1897
2019
|
- useUpdateUserMetadataMutation - Update profile
|
|
1898
2020
|
- useUpdateUserAccountMutation - Update account
|
|
1899
2021
|
- useResetPasswordMutation - Password reset
|
|
2022
|
+
- useSelfRetireMutation - Schedule account deletion
|
|
1900
2023
|
- useUploadProfileImageMutation - Upload avatar
|
|
1901
2024
|
- useRemoveProfileImageMutation - Remove avatar
|
|
1902
2025
|
|
|
@@ -1981,7 +2104,15 @@ export function getHookInfo(hookName) {
|
|
|
1981
2104
|
**Data Layer Hooks - Training Documents:**
|
|
1982
2105
|
- useGetTrainingDocumentsQuery - Training docs
|
|
1983
2106
|
- useUploadTrainingDocumentMutation - Upload doc
|
|
1984
|
-
- useDeleteTrainingDocumentMutation - Delete doc
|
|
2107
|
+
- useDeleteTrainingDocumentMutation - Delete doc
|
|
2108
|
+
|
|
2109
|
+
**Data Layer Hooks - Workflows:**
|
|
2110
|
+
- useActivateWorkflowMutation - Activate workflow
|
|
2111
|
+
- useDeactivateWorkflowMutation - Deactivate workflow
|
|
2112
|
+
- usePublishWorkflowMutation - Publish workflow
|
|
2113
|
+
- useUnpublishWorkflowMutation - Unpublish workflow
|
|
2114
|
+
- useValidateWorkflowMutation - Validate workflow
|
|
2115
|
+
- useChatWithWorkflowMutation - Chat with workflow`;
|
|
1985
2116
|
}
|
|
1986
2117
|
return info;
|
|
1987
2118
|
}
|