@iblai/data-layer 0.2.0 → 0.3.0
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/dist/index.d.ts +41476 -15632
- package/dist/index.esm.js +6764 -1863
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6947 -1859
- package/dist/index.js.map +1 -1
- package/dist/package.json +19 -17
- package/dist/src/__tests__/constants.test.d.ts +1 -0
- package/dist/src/core/index.d.ts +2 -1
- package/dist/src/features/analytics/api-slice.d.ts +1879 -122
- package/dist/src/features/analytics/constants.d.ts +56 -1
- package/dist/src/features/analytics/types.d.ts +327 -1
- package/dist/src/features/api-keys/api-slice.d.ts +25 -36
- package/dist/src/features/apps/api-slice.d.ts +25 -36
- package/dist/src/features/auth/api-slice.d.ts +504 -2
- package/dist/src/features/auth/constants.d.ts +13 -1
- package/dist/src/features/auth/types.d.ts +20 -0
- package/dist/src/features/billing/api-slice.d.ts +5 -5
- package/dist/src/features/career/api-slice.d.ts +2345 -180
- package/dist/src/features/catalog/api-slice.d.ts +2260 -244
- package/dist/src/features/chat/api-slice.d.ts +68 -68
- package/dist/src/features/chat-files/api-slice.d.ts +185 -0
- package/dist/src/features/chat-files/types.d.ts +32 -0
- package/dist/src/features/chat-history/api-slice.d.ts +60 -60
- package/dist/src/features/core/api-slice.d.ts +3793 -26
- package/dist/src/features/core/constants.d.ts +43 -0
- package/dist/src/features/core/custom-api-slice.d.ts +1458 -0
- package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +333 -0
- package/dist/src/features/core/types.d.ts +60 -0
- package/dist/src/features/credentials/api-slice.d.ts +766 -105
- package/dist/src/features/custom-domain/api-slice.d.ts +602 -0
- package/dist/src/features/custom-domain/constants.d.ts +20 -0
- package/dist/src/features/custom-domain/types.d.ts +46 -0
- package/dist/src/features/datasets/api-slice.d.ts +22 -22
- package/dist/src/features/disclaimers/api-slice.d.ts +912 -0
- package/dist/src/features/disclaimers/constants.d.ts +27 -0
- package/dist/src/features/disclaimers/index.d.ts +3 -0
- package/dist/src/features/disclaimers/types.d.ts +67 -0
- package/dist/src/features/edx-proctoring/api-slice.d.ts +590 -0
- package/dist/src/features/edx-proctoring/constants.d.ts +15 -0
- package/dist/src/features/edx-proctoring/types.d.ts +61 -0
- package/dist/src/features/llms/api-slice.d.ts +20 -20
- package/dist/src/features/memory/api-slice.d.ts +1437 -530
- package/dist/src/features/memory/constants.d.ts +50 -0
- package/dist/src/features/memory/index.d.ts +3 -0
- package/dist/src/features/memory/types.d.ts +122 -0
- package/dist/src/features/mentor/api-slice.d.ts +1738 -240
- package/dist/src/features/mentor/constants.d.ts +8 -0
- package/dist/src/features/mentor/custom-api-slice.d.ts +529 -1
- package/dist/src/features/mentor/types.d.ts +39 -0
- package/dist/src/features/mentor-categories/api-slice.d.ts +416 -20
- package/dist/src/features/notifications/api-slice.d.ts +696 -42
- package/dist/src/features/notifications/constants.d.ts +26 -0
- package/dist/src/features/notifications/custom-api-slice.d.ts +996 -0
- package/dist/src/features/notifications/types.d.ts +69 -0
- package/dist/src/features/per-learner/api-slice.d.ts +58 -58
- package/dist/src/features/platform/api-slice.d.ts +321 -167
- package/dist/src/features/platform/constants.d.ts +17 -0
- package/dist/src/features/platform/custom-api-slice.d.ts +493 -0
- package/dist/src/features/platform/types.d.ts +48 -0
- package/dist/src/features/projects/api-slice.d.ts +2026 -0
- package/dist/src/features/projects/constants.d.ts +51 -0
- package/dist/src/features/projects/types.d.ts +79 -0
- package/dist/src/features/prompts/api-slice.d.ts +105 -83
- package/dist/src/features/reports/api-slice.d.ts +814 -0
- package/dist/src/features/search/ai-search-api-slice.d.ts +1015 -0
- package/dist/src/features/search/api-slice.d.ts +39 -39
- package/dist/src/features/search/constants.d.ts +31 -0
- package/dist/src/features/search/types.d.ts +89 -0
- package/dist/src/features/sessions/api-slice.d.ts +24 -24
- package/dist/src/features/skills/api-slice.d.ts +77 -77
- package/dist/src/features/stripe/api-slice.d.ts +201 -40
- package/dist/src/features/stripe/constants.d.ts +5 -1
- package/dist/src/features/stripe/types.d.ts +10 -0
- package/dist/src/features/tenant/api-slice.d.ts +43 -52
- package/dist/src/features/tenant/types.d.ts +1 -0
- package/dist/src/features/tools/api-slice.d.ts +64 -20
- package/dist/src/features/training-documents/api-slice.d.ts +534 -27
- package/dist/src/features/user/api-slice.d.ts +124 -124
- package/dist/src/features/user/constants.d.ts +3 -1
- package/dist/src/features/user-invitations/api-slice.d.ts +22 -22
- package/dist/src/features/utils.d.ts +8 -5
- package/dist/src/index.d.ts +78 -47
- package/dist/src/reducers/skills.d.ts +2 -1128
- package/dist/src/services/StorageService.d.ts +1 -1
- package/dist/tests/setupTests.d.ts +1 -1
- package/package.json +26 -21
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type { FileUploadURLRequest, FileUploadURLResponse } from './types';
|
|
2
|
+
export declare const chatFilesApiSlice: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<import("../utils").CustomQueryArgs, unknown, import("../utils").ExtendedFetchBaseQueryError, Record<string, unknown>, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, {
|
|
3
|
+
/**
|
|
4
|
+
* Get presigned S3 URL for file upload
|
|
5
|
+
* POST /api/ai-mentor/orgs/{org}/users/{userId}/chat/files/upload-url/
|
|
6
|
+
*/
|
|
7
|
+
getFileUploadUrl: import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
8
|
+
org: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
requestBody: FileUploadURLRequest;
|
|
11
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<import("../utils").CustomQueryArgs, unknown, import("../utils").ExtendedFetchBaseQueryError, Record<string, unknown>, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, FileUploadURLResponse, "chatFilesApiSlice", unknown>;
|
|
12
|
+
}, "chatFilesApiSlice", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
13
|
+
export declare const useGetFileUploadUrlMutation: <R extends Record<string, any> = ({
|
|
14
|
+
requestId?: undefined;
|
|
15
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
16
|
+
data?: undefined;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
endpointName?: string;
|
|
19
|
+
startedTimeStamp?: undefined;
|
|
20
|
+
fulfilledTimeStamp?: undefined;
|
|
21
|
+
} & {
|
|
22
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
23
|
+
isUninitialized: true;
|
|
24
|
+
isLoading: false;
|
|
25
|
+
isSuccess: false;
|
|
26
|
+
isError: false;
|
|
27
|
+
}) | ({
|
|
28
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
29
|
+
} & Omit<{
|
|
30
|
+
requestId: string;
|
|
31
|
+
data?: FileUploadURLResponse | undefined;
|
|
32
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
33
|
+
endpointName: string;
|
|
34
|
+
startedTimeStamp: number;
|
|
35
|
+
fulfilledTimeStamp?: number;
|
|
36
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
37
|
+
requestId: string;
|
|
38
|
+
data?: FileUploadURLResponse | undefined;
|
|
39
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
40
|
+
endpointName: string;
|
|
41
|
+
startedTimeStamp: number;
|
|
42
|
+
fulfilledTimeStamp?: number;
|
|
43
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
44
|
+
error: undefined;
|
|
45
|
+
} & {
|
|
46
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
47
|
+
isUninitialized: false;
|
|
48
|
+
isLoading: false;
|
|
49
|
+
isSuccess: true;
|
|
50
|
+
isError: false;
|
|
51
|
+
}) | ({
|
|
52
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
53
|
+
} & {
|
|
54
|
+
requestId: string;
|
|
55
|
+
data?: FileUploadURLResponse | undefined;
|
|
56
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
57
|
+
endpointName: string;
|
|
58
|
+
startedTimeStamp: number;
|
|
59
|
+
fulfilledTimeStamp?: number;
|
|
60
|
+
} & {
|
|
61
|
+
data?: undefined;
|
|
62
|
+
} & {
|
|
63
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
64
|
+
isUninitialized: false;
|
|
65
|
+
isLoading: true;
|
|
66
|
+
isSuccess: false;
|
|
67
|
+
isError: false;
|
|
68
|
+
}) | ({
|
|
69
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
70
|
+
} & Omit<{
|
|
71
|
+
requestId: string;
|
|
72
|
+
data?: FileUploadURLResponse | undefined;
|
|
73
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
74
|
+
endpointName: string;
|
|
75
|
+
startedTimeStamp: number;
|
|
76
|
+
fulfilledTimeStamp?: number;
|
|
77
|
+
}, "error"> & Required<Pick<{
|
|
78
|
+
requestId: string;
|
|
79
|
+
data?: FileUploadURLResponse | undefined;
|
|
80
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
81
|
+
endpointName: string;
|
|
82
|
+
startedTimeStamp: number;
|
|
83
|
+
fulfilledTimeStamp?: number;
|
|
84
|
+
}, "error">> & {
|
|
85
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
86
|
+
isUninitialized: false;
|
|
87
|
+
isLoading: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
isError: true;
|
|
90
|
+
})>(options?: {
|
|
91
|
+
selectFromResult?: ((state: ({
|
|
92
|
+
requestId?: undefined;
|
|
93
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
94
|
+
data?: undefined;
|
|
95
|
+
error?: undefined;
|
|
96
|
+
endpointName?: string;
|
|
97
|
+
startedTimeStamp?: undefined;
|
|
98
|
+
fulfilledTimeStamp?: undefined;
|
|
99
|
+
} & {
|
|
100
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
101
|
+
isUninitialized: true;
|
|
102
|
+
isLoading: false;
|
|
103
|
+
isSuccess: false;
|
|
104
|
+
isError: false;
|
|
105
|
+
}) | ({
|
|
106
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
107
|
+
} & Omit<{
|
|
108
|
+
requestId: string;
|
|
109
|
+
data?: FileUploadURLResponse | undefined;
|
|
110
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
111
|
+
endpointName: string;
|
|
112
|
+
startedTimeStamp: number;
|
|
113
|
+
fulfilledTimeStamp?: number;
|
|
114
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
115
|
+
requestId: string;
|
|
116
|
+
data?: FileUploadURLResponse | undefined;
|
|
117
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
118
|
+
endpointName: string;
|
|
119
|
+
startedTimeStamp: number;
|
|
120
|
+
fulfilledTimeStamp?: number;
|
|
121
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
122
|
+
error: undefined;
|
|
123
|
+
} & {
|
|
124
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
125
|
+
isUninitialized: false;
|
|
126
|
+
isLoading: false;
|
|
127
|
+
isSuccess: true;
|
|
128
|
+
isError: false;
|
|
129
|
+
}) | ({
|
|
130
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
131
|
+
} & {
|
|
132
|
+
requestId: string;
|
|
133
|
+
data?: FileUploadURLResponse | undefined;
|
|
134
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
135
|
+
endpointName: string;
|
|
136
|
+
startedTimeStamp: number;
|
|
137
|
+
fulfilledTimeStamp?: number;
|
|
138
|
+
} & {
|
|
139
|
+
data?: undefined;
|
|
140
|
+
} & {
|
|
141
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
142
|
+
isUninitialized: false;
|
|
143
|
+
isLoading: true;
|
|
144
|
+
isSuccess: false;
|
|
145
|
+
isError: false;
|
|
146
|
+
}) | ({
|
|
147
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
148
|
+
} & Omit<{
|
|
149
|
+
requestId: string;
|
|
150
|
+
data?: FileUploadURLResponse | undefined;
|
|
151
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
152
|
+
endpointName: string;
|
|
153
|
+
startedTimeStamp: number;
|
|
154
|
+
fulfilledTimeStamp?: number;
|
|
155
|
+
}, "error"> & Required<Pick<{
|
|
156
|
+
requestId: string;
|
|
157
|
+
data?: FileUploadURLResponse | undefined;
|
|
158
|
+
error?: import("../utils").ExtendedFetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
159
|
+
endpointName: string;
|
|
160
|
+
startedTimeStamp: number;
|
|
161
|
+
fulfilledTimeStamp?: number;
|
|
162
|
+
}, "error">> & {
|
|
163
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
164
|
+
isUninitialized: false;
|
|
165
|
+
isLoading: false;
|
|
166
|
+
isSuccess: false;
|
|
167
|
+
isError: true;
|
|
168
|
+
})) => R) | undefined;
|
|
169
|
+
fixedCacheKey?: string;
|
|
170
|
+
} | undefined) => readonly [(arg: {
|
|
171
|
+
org: string;
|
|
172
|
+
userId: string;
|
|
173
|
+
requestBody: FileUploadURLRequest;
|
|
174
|
+
}) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
175
|
+
org: string;
|
|
176
|
+
userId: string;
|
|
177
|
+
requestBody: FileUploadURLRequest;
|
|
178
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<import("../utils").CustomQueryArgs, unknown, import("../utils").ExtendedFetchBaseQueryError, Record<string, unknown>, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, never, FileUploadURLResponse, "chatFilesApiSlice", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
179
|
+
originalArgs?: {
|
|
180
|
+
org: string;
|
|
181
|
+
userId: string;
|
|
182
|
+
requestBody: FileUploadURLRequest;
|
|
183
|
+
} | undefined;
|
|
184
|
+
reset: () => void;
|
|
185
|
+
}];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local type definitions for file upload API
|
|
3
|
+
* These mirror the backend API types
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Request for generating presigned upload URL
|
|
7
|
+
*/
|
|
8
|
+
export interface FileUploadURLRequest {
|
|
9
|
+
/** Chat session ID */
|
|
10
|
+
session_id: string;
|
|
11
|
+
/** Original filename */
|
|
12
|
+
file_name: string;
|
|
13
|
+
/** MIME type of the file */
|
|
14
|
+
content_type: string;
|
|
15
|
+
/** File size in bytes */
|
|
16
|
+
file_size: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Response with presigned upload URL
|
|
20
|
+
*/
|
|
21
|
+
export interface FileUploadURLResponse {
|
|
22
|
+
/** Presigned S3 upload URL */
|
|
23
|
+
upload_url: string;
|
|
24
|
+
/** S3 object key for the uploaded file */
|
|
25
|
+
file_key: string;
|
|
26
|
+
/** Unique identifier for the ChatFile record */
|
|
27
|
+
file_id: string;
|
|
28
|
+
/** URL expiration time in seconds */
|
|
29
|
+
expires_in: number;
|
|
30
|
+
/** HTTP method to use for upload (PUT or POST) */
|
|
31
|
+
upload_method?: string;
|
|
32
|
+
}
|