@iblai/data-layer 1.1.2 → 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/dist/index.d.ts +41055 -23773
- package/dist/index.esm.js +5430 -2801
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5515 -2799
- package/dist/index.js.map +1 -1
- package/dist/package.json +10 -7
- package/dist/src/core/index.d.ts +7 -1
- package/dist/src/features/analytics/constants.d.ts +6 -6
- package/dist/src/features/analytics/types.d.ts +9 -0
- package/dist/src/features/api-keys/api-slice.d.ts +72 -24
- package/dist/src/features/apps/api-slice.d.ts +72 -24
- package/dist/src/features/artifacts/api-slice.d.ts +1798 -0
- package/dist/src/features/artifacts/constants.d.ts +42 -0
- package/dist/src/features/artifacts/index.d.ts +3 -0
- package/dist/src/features/artifacts/types.d.ts +37 -0
- package/dist/src/features/auth/types.d.ts +1 -1
- package/dist/src/features/billing/api-slice.d.ts +15 -5
- package/dist/src/features/billing/constants.d.ts +16 -0
- package/dist/src/features/billing/custom-api-slice.d.ts +634 -0
- package/dist/src/features/billing/types.d.ts +35 -0
- package/dist/src/features/career/api-slice.d.ts +342 -114
- package/dist/src/features/catalog/api-slice.d.ts +1050 -317
- package/dist/src/features/chat/api-slice.d.ts +204 -68
- package/dist/src/features/chat-history/api-slice.d.ts +202 -60
- package/dist/src/features/core/api-slice.d.ts +1143 -134
- package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +60 -20
- package/dist/src/features/credentials/__tests__/custom-api-slice.test.d.ts +1 -0
- package/dist/src/features/credentials/api-slice.d.ts +3706 -146
- package/dist/src/features/credentials/constants.d.ts +9 -1
- package/dist/src/features/credentials/custom-api-slice.d.ts +535 -2
- package/dist/src/features/credentials/types.d.ts +14 -0
- package/dist/src/features/datasets/api-slice.d.ts +60 -197
- package/dist/src/features/index.d.ts +2 -1
- package/dist/src/features/llms/api-slice.d.ts +60 -20
- package/dist/src/features/mcp/api-slice.d.ts +2613 -0
- package/dist/src/features/mcp/constants.d.ts +57 -0
- package/dist/src/features/mcp/index.d.ts +3 -0
- package/dist/src/features/mcp/types.d.ts +176 -0
- package/dist/src/features/memory/types.d.ts +1 -0
- package/dist/src/features/mentor/api-slice.d.ts +1789 -473
- package/dist/src/features/mentor/constants.d.ts +7 -1
- package/dist/src/features/mentor/custom-api-slice.d.ts +162 -1
- package/dist/src/features/mentor/types.d.ts +7 -1
- package/dist/src/features/mentor-categories/api-slice.d.ts +117 -39
- package/dist/src/features/moderation-logs/api-slice.d.ts +705 -0
- package/dist/src/features/notifications/api-slice.d.ts +214 -86
- package/dist/src/features/per-learner/api-slice.d.ts +174 -58
- package/dist/src/features/platform/api-slice.d.ts +1568 -293
- package/dist/src/features/platform/types.d.ts +13 -0
- package/dist/src/features/prompts/api-slice.d.ts +249 -83
- package/dist/src/features/reports/api-slice.d.ts +145 -41
- package/dist/src/features/search/ai-search-api-slice.d.ts +399 -1
- package/dist/src/features/search/api-slice.d.ts +117 -39
- package/dist/src/features/search/constants.d.ts +10 -0
- package/dist/src/features/search/types.d.ts +72 -0
- package/dist/src/features/sessions/api-slice.d.ts +440 -46
- package/dist/src/features/skills/api-slice.d.ts +231 -77
- package/dist/src/features/tenant/api-slice.d.ts +123 -41
- package/dist/src/features/tools/api-slice.d.ts +60 -20
- package/dist/src/features/training-documents/api-slice.d.ts +141 -47
- package/dist/src/features/user-invitations/api-slice.d.ts +66 -22
- package/dist/src/index.d.ts +6 -0
- package/dist/tests/features/billing/constants.test.d.ts +1 -0
- package/dist/tests/features/billing/custom-api-slice.test.d.ts +1 -0
- package/dist/tests/features/billing/types.test.d.ts +1 -0
- package/package.json +10 -7
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SERVICES } from '../../constants';
|
|
2
|
+
export declare const ARTIFACTS_REDUCER_PATH = "artifactsApiSlice";
|
|
3
|
+
export declare const ARTIFACTS_ENDPOINTS: {
|
|
4
|
+
LIST_ARTIFACTS: {
|
|
5
|
+
service: SERVICES;
|
|
6
|
+
path: (org: string, userId: string) => string;
|
|
7
|
+
};
|
|
8
|
+
GET_ARTIFACT: {
|
|
9
|
+
service: SERVICES;
|
|
10
|
+
path: (org: string, userId: string, id: number) => string;
|
|
11
|
+
};
|
|
12
|
+
UPDATE_ARTIFACT: {
|
|
13
|
+
service: SERVICES;
|
|
14
|
+
path: (org: string, userId: string, id: number) => string;
|
|
15
|
+
};
|
|
16
|
+
LIST_VERSIONS: {
|
|
17
|
+
service: SERVICES;
|
|
18
|
+
path: (org: string, userId: string, id: number) => string;
|
|
19
|
+
};
|
|
20
|
+
GET_VERSION: {
|
|
21
|
+
service: SERVICES;
|
|
22
|
+
path: (org: string, userId: string, id: number, versionId: number) => string;
|
|
23
|
+
};
|
|
24
|
+
SET_CURRENT_VERSION: {
|
|
25
|
+
service: SERVICES;
|
|
26
|
+
path: (org: string, userId: string, id: number) => string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const ARTIFACTS_QUERY_KEYS: {
|
|
30
|
+
ARTIFACT: (id: number | string) => {
|
|
31
|
+
type: "artifact";
|
|
32
|
+
id: string | number;
|
|
33
|
+
}[];
|
|
34
|
+
ARTIFACTS_LIST: (sessionId?: string) => {
|
|
35
|
+
type: "artifacts";
|
|
36
|
+
sessionId: string | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
ARTIFACT_VERSIONS: (id: number | string) => {
|
|
39
|
+
type: "artifact-versions";
|
|
40
|
+
id: string | number;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Artifact } from '@iblai/iblai-api';
|
|
2
|
+
export interface ArtifactVersion {
|
|
3
|
+
id: number;
|
|
4
|
+
artifact: number;
|
|
5
|
+
content: string;
|
|
6
|
+
is_current: boolean;
|
|
7
|
+
is_partial?: boolean;
|
|
8
|
+
version_number: number;
|
|
9
|
+
date_created: string;
|
|
10
|
+
created_by: string;
|
|
11
|
+
change_summary?: string;
|
|
12
|
+
content_length?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ArtifactListParams {
|
|
15
|
+
session_id?: string;
|
|
16
|
+
file_extension?: string;
|
|
17
|
+
llm_provider?: string;
|
|
18
|
+
search?: string;
|
|
19
|
+
ordering?: string;
|
|
20
|
+
page?: number;
|
|
21
|
+
page_size?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ArtifactListResponse {
|
|
24
|
+
count: number;
|
|
25
|
+
next: string | null;
|
|
26
|
+
previous: string | null;
|
|
27
|
+
results: Artifact[];
|
|
28
|
+
}
|
|
29
|
+
export interface SetCurrentVersionRequest {
|
|
30
|
+
version_id: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Extended Artifact type with version info.
|
|
34
|
+
* Note: `Artifact` already includes `current_version_number: number` and `version_count: number`.
|
|
35
|
+
* This type alias exists for semantic clarity when working with version-aware artifacts.
|
|
36
|
+
*/
|
|
37
|
+
export type ArtifactWithVersionInfo = Artifact;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
export declare const billingApiSlice: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void,
|
|
1
|
+
export declare const billingApiSlice: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
|
|
2
|
+
attempt?: number;
|
|
3
|
+
} & import("@reduxjs/toolkit/query").RetryOptions, {}>, {
|
|
2
4
|
createStripeCustomerPortal: import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
3
5
|
org: string;
|
|
4
6
|
requestBody: import("@iblai/iblai-api").StripeCustomerPortalRequest;
|
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void,
|
|
7
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
|
|
8
|
+
attempt?: number;
|
|
9
|
+
} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("@iblai/iblai-api").StripeCustomerPortalResponse, "billingApiSlice", any>;
|
|
6
10
|
renewSubscription: import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
7
11
|
org: string;
|
|
8
12
|
requestBody: import("@iblai/iblai-api").StripeSubscriptionRenewalRequest;
|
|
9
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void,
|
|
13
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
|
|
14
|
+
attempt?: number;
|
|
15
|
+
} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("@iblai/iblai-api").StripeSubscriptionRenewalResponse, "billingApiSlice", any>;
|
|
10
16
|
}, "billingApiSlice", "billing", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
11
17
|
export declare const useCreateStripeCustomerPortalMutation: <R extends Record<string, any> = ({
|
|
12
18
|
requestId?: undefined;
|
|
@@ -171,7 +177,9 @@ export declare const useCreateStripeCustomerPortalMutation: <R extends Record<st
|
|
|
171
177
|
}) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
172
178
|
org: string;
|
|
173
179
|
requestBody: import("@iblai/iblai-api").StripeCustomerPortalRequest;
|
|
174
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void,
|
|
180
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
|
|
181
|
+
attempt?: number;
|
|
182
|
+
} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("@iblai/iblai-api").StripeCustomerPortalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
175
183
|
originalArgs?: {
|
|
176
184
|
org: string;
|
|
177
185
|
requestBody: import("@iblai/iblai-api").StripeCustomerPortalRequest;
|
|
@@ -340,7 +348,9 @@ export declare const useCreateStripeCustomerPortalMutation: <R extends Record<st
|
|
|
340
348
|
}) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<{
|
|
341
349
|
org: string;
|
|
342
350
|
requestBody: import("@iblai/iblai-api").StripeSubscriptionRenewalRequest;
|
|
343
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void,
|
|
351
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
|
|
352
|
+
attempt?: number;
|
|
353
|
+
} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("@iblai/iblai-api").StripeSubscriptionRenewalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
344
354
|
originalArgs?: {
|
|
345
355
|
org: string;
|
|
346
356
|
requestBody: import("@iblai/iblai-api").StripeSubscriptionRenewalRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SERVICES } from '../../constants';
|
|
2
|
+
export declare const BILLING_CUSTOM_REDUCER_PATH = "billingCustomApiSlice";
|
|
3
|
+
export declare const BILLING_CUSTOM_ENDPOINTS: {
|
|
4
|
+
GET_AUTO_RECHARGE_INFO: {
|
|
5
|
+
path: string;
|
|
6
|
+
service: SERVICES;
|
|
7
|
+
};
|
|
8
|
+
UPDATE_AUTO_RECHARGE_INFO: {
|
|
9
|
+
path: string;
|
|
10
|
+
service: SERVICES;
|
|
11
|
+
};
|
|
12
|
+
TRIGGER_AUTO_RECHARGE: {
|
|
13
|
+
path: string;
|
|
14
|
+
service: SERVICES;
|
|
15
|
+
};
|
|
16
|
+
};
|