@iblai/data-layer 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/index.d.ts +41055 -23773
  2. package/dist/index.esm.js +5430 -2801
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +5515 -2799
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json +10 -7
  7. package/dist/src/core/index.d.ts +7 -1
  8. package/dist/src/features/analytics/constants.d.ts +6 -6
  9. package/dist/src/features/analytics/types.d.ts +9 -0
  10. package/dist/src/features/api-keys/api-slice.d.ts +72 -24
  11. package/dist/src/features/apps/api-slice.d.ts +72 -24
  12. package/dist/src/features/artifacts/api-slice.d.ts +1798 -0
  13. package/dist/src/features/artifacts/constants.d.ts +42 -0
  14. package/dist/src/features/artifacts/index.d.ts +3 -0
  15. package/dist/src/features/artifacts/types.d.ts +37 -0
  16. package/dist/src/features/auth/types.d.ts +1 -1
  17. package/dist/src/features/billing/api-slice.d.ts +15 -5
  18. package/dist/src/features/billing/constants.d.ts +16 -0
  19. package/dist/src/features/billing/custom-api-slice.d.ts +634 -0
  20. package/dist/src/features/billing/types.d.ts +35 -0
  21. package/dist/src/features/career/api-slice.d.ts +342 -114
  22. package/dist/src/features/catalog/api-slice.d.ts +1050 -317
  23. package/dist/src/features/chat/api-slice.d.ts +204 -68
  24. package/dist/src/features/chat-history/api-slice.d.ts +202 -60
  25. package/dist/src/features/core/api-slice.d.ts +1143 -134
  26. package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +60 -20
  27. package/dist/src/features/credentials/__tests__/custom-api-slice.test.d.ts +1 -0
  28. package/dist/src/features/credentials/api-slice.d.ts +3706 -146
  29. package/dist/src/features/credentials/constants.d.ts +9 -1
  30. package/dist/src/features/credentials/custom-api-slice.d.ts +535 -2
  31. package/dist/src/features/credentials/types.d.ts +14 -0
  32. package/dist/src/features/datasets/api-slice.d.ts +60 -197
  33. package/dist/src/features/index.d.ts +2 -1
  34. package/dist/src/features/llms/api-slice.d.ts +60 -20
  35. package/dist/src/features/mcp/api-slice.d.ts +2613 -0
  36. package/dist/src/features/mcp/constants.d.ts +57 -0
  37. package/dist/src/features/mcp/index.d.ts +3 -0
  38. package/dist/src/features/mcp/types.d.ts +176 -0
  39. package/dist/src/features/memory/types.d.ts +1 -0
  40. package/dist/src/features/mentor/api-slice.d.ts +1789 -473
  41. package/dist/src/features/mentor/constants.d.ts +7 -1
  42. package/dist/src/features/mentor/custom-api-slice.d.ts +162 -1
  43. package/dist/src/features/mentor/types.d.ts +7 -1
  44. package/dist/src/features/mentor-categories/api-slice.d.ts +117 -39
  45. package/dist/src/features/moderation-logs/api-slice.d.ts +705 -0
  46. package/dist/src/features/notifications/api-slice.d.ts +214 -86
  47. package/dist/src/features/per-learner/api-slice.d.ts +174 -58
  48. package/dist/src/features/platform/api-slice.d.ts +1568 -293
  49. package/dist/src/features/platform/types.d.ts +13 -0
  50. package/dist/src/features/prompts/api-slice.d.ts +249 -83
  51. package/dist/src/features/reports/api-slice.d.ts +145 -41
  52. package/dist/src/features/search/ai-search-api-slice.d.ts +399 -1
  53. package/dist/src/features/search/api-slice.d.ts +117 -39
  54. package/dist/src/features/search/constants.d.ts +10 -0
  55. package/dist/src/features/search/types.d.ts +72 -0
  56. package/dist/src/features/sessions/api-slice.d.ts +440 -46
  57. package/dist/src/features/skills/api-slice.d.ts +231 -77
  58. package/dist/src/features/tenant/api-slice.d.ts +123 -41
  59. package/dist/src/features/tools/api-slice.d.ts +60 -20
  60. package/dist/src/features/training-documents/api-slice.d.ts +141 -47
  61. package/dist/src/features/user-invitations/api-slice.d.ts +66 -22
  62. package/dist/src/index.d.ts +6 -0
  63. package/dist/tests/features/billing/constants.test.d.ts +1 -0
  64. package/dist/tests/features/billing/custom-api-slice.test.d.ts +1 -0
  65. package/dist/tests/features/billing/types.test.d.ts +1 -0
  66. package/package.json +10 -7
  67. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,57 @@
1
+ import { SERVICES } from '@data-layer/constants';
2
+ export declare const MCP_REDUCER_PATH = "mcpApiSlice";
3
+ export declare const MCP_ENDPOINTS: {
4
+ readonly GET_MCP_SERVERS: {
5
+ readonly path: (org: string, userId: string) => string;
6
+ readonly service: SERVICES.DM;
7
+ };
8
+ readonly GET_MCP_SERVER: {
9
+ readonly path: (org: string, userId: string, id: number) => string;
10
+ readonly service: SERVICES.DM;
11
+ };
12
+ readonly CREATE_MCP_SERVER: {
13
+ readonly path: (org: string, userId: string) => string;
14
+ readonly service: SERVICES.DM;
15
+ };
16
+ readonly UPDATE_MCP_SERVER: {
17
+ readonly path: (org: string, userId: string, id: number) => string;
18
+ readonly service: SERVICES.DM;
19
+ };
20
+ readonly DELETE_MCP_SERVER: {
21
+ readonly path: (org: string, userId: string, id: number) => string;
22
+ readonly service: SERVICES.DM;
23
+ };
24
+ readonly GET_OAUTH_SERVICES: {
25
+ readonly path: (org: string) => string;
26
+ readonly service: SERVICES.DM;
27
+ };
28
+ readonly GET_CONNECTED_SERVICES: {
29
+ readonly path: (org: string, userId: string) => string;
30
+ readonly service: SERVICES.DM;
31
+ };
32
+ readonly START_OAUTH_FLOW: {
33
+ readonly path: (org: string, userId: string, provider: string, service: string) => string;
34
+ readonly service: SERVICES.DM;
35
+ };
36
+ readonly DISCONNECT_SERVICE: {
37
+ readonly path: (org: string, userId: string, id: number | string) => string;
38
+ readonly service: SERVICES.DM;
39
+ };
40
+ readonly GET_MCP_SERVER_CONNECTIONS: {
41
+ readonly path: (org: string, userId: string) => string;
42
+ readonly service: SERVICES.DM;
43
+ };
44
+ readonly CREATE_MCP_SERVER_CONNECTION: {
45
+ readonly path: (org: string, userId: string) => string;
46
+ readonly service: SERVICES.DM;
47
+ };
48
+ readonly PATCH_MCP_SERVER_CONNECTION: {
49
+ readonly path: (org: string, userId: string, id: number) => string;
50
+ readonly service: SERVICES.DM;
51
+ };
52
+ readonly OAUTH_FIND: {
53
+ readonly path: (org: string, userId: string) => string;
54
+ readonly service: SERVICES.DM;
55
+ };
56
+ };
57
+ export declare const MCP_TAG_TYPES: readonly ["MCPServers", "ConnectedServices", "MCPServerConnections"];
@@ -0,0 +1,3 @@
1
+ export * from './api-slice';
2
+ export * from './types';
3
+ export * from './constants';
@@ -0,0 +1,176 @@
1
+ import type { TransportEnum } from '@iblai/iblai-api';
2
+ export interface MCPBaseParams {
3
+ org: string;
4
+ userId: string;
5
+ }
6
+ export interface GetMCPServersParams extends MCPBaseParams {
7
+ authType?: 'none' | 'oauth2' | 'token';
8
+ isEnabled?: boolean;
9
+ isFeatured?: boolean;
10
+ includeGlobal?: boolean;
11
+ mentorUniqueId?: string;
12
+ page?: number;
13
+ pageSize?: number;
14
+ search?: string;
15
+ transport?: TransportEnum;
16
+ url?: string;
17
+ }
18
+ export interface MCPServerParams extends MCPBaseParams {
19
+ id: number;
20
+ }
21
+ export interface OAuthServiceData {
22
+ id: number;
23
+ oauth_provider: string;
24
+ oauth_provider_id: number;
25
+ name: string;
26
+ display_name?: string;
27
+ description?: string;
28
+ scope?: string;
29
+ image?: string | null;
30
+ created_at?: string;
31
+ updated_at?: string;
32
+ }
33
+ export interface MCPServerObjectPermissions {
34
+ delete: boolean;
35
+ write: boolean;
36
+ }
37
+ export interface MCPServerPermissions {
38
+ field?: Record<string, {
39
+ read?: boolean;
40
+ write: boolean;
41
+ delete?: boolean;
42
+ }>;
43
+ object?: MCPServerObjectPermissions;
44
+ }
45
+ export interface MCPServer {
46
+ id: number;
47
+ name: string;
48
+ url: string;
49
+ transport: TransportEnum | string;
50
+ description?: string;
51
+ credentials?: string;
52
+ image?: string;
53
+ auth_type?: string;
54
+ auth_scope?: string;
55
+ extra_headers?: Record<string, string>;
56
+ platform?: number;
57
+ platform_key?: string;
58
+ connected_service?: number | null;
59
+ connected_service_summary?: Record<string, unknown> | null;
60
+ oauth_service_data?: OAuthServiceData | null;
61
+ mentor?: string | null;
62
+ created_at: string;
63
+ updated_at?: string;
64
+ permissions?: MCPServerPermissions;
65
+ }
66
+ export interface PaginatedMCPServerList {
67
+ count: number;
68
+ next: string | null;
69
+ previous: string | null;
70
+ results: MCPServer[];
71
+ }
72
+ export interface MCPServerRequestBody {
73
+ name: string;
74
+ url: string;
75
+ transport: TransportEnum | string;
76
+ description?: string;
77
+ credentials?: string;
78
+ auth_type?: string;
79
+ auth_scope?: string;
80
+ extra_headers?: Record<string, string>;
81
+ oauth_service?: number | null;
82
+ mentor?: string | null;
83
+ }
84
+ export interface CreateMCPServerArgs extends MCPBaseParams {
85
+ body?: MCPServerRequestBody;
86
+ formData?: FormData;
87
+ }
88
+ export interface UpdateMCPServerArgs extends MCPServerParams {
89
+ body?: MCPServerRequestBody;
90
+ formData?: FormData;
91
+ }
92
+ export interface PartialUpdateMCPServerArgs extends MCPServerParams {
93
+ body?: Partial<MCPServerRequestBody>;
94
+ formData?: FormData;
95
+ }
96
+ export interface OAuthServiceParams {
97
+ org: string;
98
+ }
99
+ export interface ConnectedServicesParams extends MCPBaseParams {
100
+ }
101
+ export interface StartOAuthFlowParams extends MCPBaseParams {
102
+ provider: string;
103
+ service: string;
104
+ }
105
+ export interface StartOAuthFlowResponse {
106
+ auth_url: string;
107
+ }
108
+ export interface DisconnectServiceParams extends MCPBaseParams {
109
+ id: number | string;
110
+ }
111
+ export interface CreateMCPServerConnectionParams extends MCPBaseParams {
112
+ server: number;
113
+ scope: string;
114
+ auth_type: string;
115
+ user?: string;
116
+ connected_service: number;
117
+ mentor?: string | null;
118
+ }
119
+ export interface PatchMCPServerConnectionParams extends MCPBaseParams {
120
+ id: number;
121
+ mentor?: string | null;
122
+ scope?: string;
123
+ user?: string | null;
124
+ }
125
+ export interface GetMCPServerConnectionsParams extends MCPBaseParams {
126
+ page?: number;
127
+ pageSize?: number;
128
+ }
129
+ export interface MCPServerConnection {
130
+ id: number;
131
+ server: number;
132
+ server_name: string;
133
+ scope: string;
134
+ auth_type: string;
135
+ platform: number;
136
+ platform_key: string;
137
+ user: string;
138
+ mentor: string | null;
139
+ connected_service: number | null;
140
+ connected_service_summary: Record<string, unknown> | null;
141
+ credentials: string;
142
+ authorization_scheme: string;
143
+ extra_headers: string;
144
+ is_active: boolean;
145
+ created_at: string;
146
+ updated_at: string;
147
+ }
148
+ export interface PaginatedMCPServerConnectionList {
149
+ count: number;
150
+ next: string | null;
151
+ previous: string | null;
152
+ results: MCPServerConnection[];
153
+ }
154
+ export interface ConnectedService {
155
+ id: number;
156
+ provider: string;
157
+ service: string;
158
+ [key: string]: unknown;
159
+ }
160
+ export interface OAuthFindParams extends MCPBaseParams {
161
+ url: string;
162
+ name?: string;
163
+ callback_url?: string;
164
+ }
165
+ export interface OAuthFindResponse {
166
+ id: number;
167
+ oauth_provider: string;
168
+ oauth_provider_id: number;
169
+ name: string;
170
+ display_name: string;
171
+ description: string;
172
+ scope: string;
173
+ image: string;
174
+ created_at: string;
175
+ updated_at: string;
176
+ }
@@ -53,6 +53,7 @@ export type GetFilteredMemoriesParams = {
53
53
  end_date?: string;
54
54
  page?: number;
55
55
  page_size?: number;
56
+ mentor?: string;
56
57
  };
57
58
  export type GetFilteredMemoriesArgs = {
58
59
  tenantKey: string;