@iblai/web-utils 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.
Files changed (113) hide show
  1. package/dist/data-layer/src/core/index.d.ts +7 -1
  2. package/dist/data-layer/src/features/analytics/constants.d.ts +6 -6
  3. package/dist/data-layer/src/features/analytics/types.d.ts +9 -0
  4. package/dist/data-layer/src/features/api-keys/api-slice.d.ts +72 -24
  5. package/dist/data-layer/src/features/apps/api-slice.d.ts +72 -24
  6. package/dist/data-layer/src/features/artifacts/api-slice.d.ts +1798 -0
  7. package/dist/data-layer/src/features/artifacts/constants.d.ts +42 -0
  8. package/dist/data-layer/src/features/artifacts/types.d.ts +37 -0
  9. package/dist/data-layer/src/features/auth/types.d.ts +1 -1
  10. package/dist/data-layer/src/features/billing/api-slice.d.ts +15 -5
  11. package/dist/data-layer/src/features/billing/constants.d.ts +16 -0
  12. package/dist/data-layer/src/features/billing/custom-api-slice.d.ts +634 -0
  13. package/dist/data-layer/src/features/billing/types.d.ts +35 -0
  14. package/dist/data-layer/src/features/career/api-slice.d.ts +342 -114
  15. package/dist/data-layer/src/features/catalog/api-slice.d.ts +1050 -317
  16. package/dist/data-layer/src/features/chat/api-slice.d.ts +204 -68
  17. package/dist/data-layer/src/features/chat-history/api-slice.d.ts +202 -60
  18. package/dist/data-layer/src/features/core/api-slice.d.ts +1143 -134
  19. package/dist/data-layer/src/features/core/custom-public-image-asset-api-slice.d.ts +60 -20
  20. package/dist/data-layer/src/features/credentials/api-slice.d.ts +3706 -146
  21. package/dist/data-layer/src/features/credentials/constants.d.ts +9 -1
  22. package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +535 -2
  23. package/dist/data-layer/src/features/credentials/types.d.ts +14 -0
  24. package/dist/data-layer/src/features/datasets/api-slice.d.ts +60 -197
  25. package/dist/data-layer/src/features/llms/api-slice.d.ts +60 -20
  26. package/dist/data-layer/src/features/mcp/api-slice.d.ts +2613 -0
  27. package/dist/data-layer/src/features/mcp/constants.d.ts +57 -0
  28. package/dist/data-layer/src/features/mcp/types.d.ts +176 -0
  29. package/dist/data-layer/src/features/memory/types.d.ts +1 -0
  30. package/dist/data-layer/src/features/mentor/api-slice.d.ts +1789 -473
  31. package/dist/data-layer/src/features/mentor/constants.d.ts +7 -1
  32. package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +162 -1
  33. package/dist/data-layer/src/features/mentor/types.d.ts +7 -1
  34. package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +117 -39
  35. package/dist/data-layer/src/features/moderation-logs/api-slice.d.ts +705 -0
  36. package/dist/data-layer/src/features/notifications/api-slice.d.ts +214 -86
  37. package/dist/data-layer/src/features/per-learner/api-slice.d.ts +174 -58
  38. package/dist/data-layer/src/features/platform/api-slice.d.ts +1568 -293
  39. package/dist/data-layer/src/features/platform/types.d.ts +13 -0
  40. package/dist/data-layer/src/features/prompts/api-slice.d.ts +249 -83
  41. package/dist/data-layer/src/features/reports/api-slice.d.ts +145 -41
  42. package/dist/data-layer/src/features/search/ai-search-api-slice.d.ts +399 -1
  43. package/dist/data-layer/src/features/search/api-slice.d.ts +117 -39
  44. package/dist/data-layer/src/features/search/constants.d.ts +10 -0
  45. package/dist/data-layer/src/features/search/types.d.ts +72 -0
  46. package/dist/data-layer/src/features/sessions/api-slice.d.ts +440 -46
  47. package/dist/data-layer/src/features/skills/api-slice.d.ts +231 -77
  48. package/dist/data-layer/src/features/tenant/api-slice.d.ts +123 -41
  49. package/dist/data-layer/src/features/tools/api-slice.d.ts +60 -20
  50. package/dist/data-layer/src/features/training-documents/api-slice.d.ts +141 -47
  51. package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +66 -22
  52. package/dist/data-layer/src/index.d.ts +6 -0
  53. package/dist/index.d.ts +367 -33
  54. package/dist/index.esm.js +7619 -3934
  55. package/dist/index.esm.js.map +1 -1
  56. package/dist/index.js +7644 -3931
  57. package/dist/index.js.map +1 -1
  58. package/dist/package.json +22 -12
  59. package/dist/web-utils/src/__tests__/index.mobile.test.d.ts +7 -0
  60. package/dist/web-utils/src/__tests__/index.web.test.d.ts +8 -0
  61. package/dist/web-utils/src/constants/__tests__/chat.test.d.ts +1 -0
  62. package/dist/web-utils/src/constants/chat.d.ts +1 -1
  63. package/dist/web-utils/src/features/chat/__tests__/slice.test.d.ts +1 -0
  64. package/dist/web-utils/src/features/chat/slice.d.ts +37 -2
  65. package/dist/web-utils/src/features/csv/combine-csv.d.ts +35 -0
  66. package/dist/web-utils/src/features/csv/index.d.ts +1 -0
  67. package/dist/web-utils/src/features/files/__tests__/filesSlice.test.d.ts +1 -0
  68. package/dist/web-utils/src/features/index.d.ts +1 -0
  69. package/dist/web-utils/src/hoc/index.d.ts +2 -0
  70. package/dist/web-utils/src/hoc/with-permissions.d.ts +44 -0
  71. package/dist/web-utils/src/hooks/__tests__/use-mentor-settings.test.d.ts +1 -0
  72. package/dist/web-utils/src/hooks/chat/ollama-client.d.ts +57 -0
  73. package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +10 -4
  74. package/dist/web-utils/src/hooks/chat/use-advanced-chat.test.d.ts +1 -0
  75. package/dist/web-utils/src/hooks/chat/use-chat-v2.d.ts +59 -2
  76. package/dist/web-utils/src/hooks/chat/use-chat-v2.test.d.ts +1 -0
  77. package/dist/web-utils/src/hooks/chat/use-chat.d.ts +1 -0
  78. package/dist/web-utils/src/hooks/chat/use-get-chat-details.test.d.ts +1 -0
  79. package/dist/web-utils/src/hooks/chat/use-mentor-tools.d.ts +2 -0
  80. package/dist/web-utils/src/hooks/chat/use-mentor-tools.test.d.ts +1 -0
  81. package/dist/web-utils/src/hooks/index.d.ts +1 -0
  82. package/dist/web-utils/src/hooks/subscription-v2/constants.d.ts +5 -0
  83. package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +56 -1
  84. package/dist/web-utils/src/hooks/tenant-metadata/__tests__/config-loader.test.d.ts +10 -0
  85. package/dist/web-utils/src/hooks/tenant-metadata/__tests__/use-tenant-metadata.test.d.ts +1 -0
  86. package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +2 -1
  87. package/dist/web-utils/src/index.d.ts +1 -0
  88. package/dist/web-utils/src/index.mobile.d.ts +130 -10
  89. package/dist/web-utils/src/index.web.d.ts +174 -12
  90. package/dist/web-utils/src/providers/__tests__/mentor-provider.test.d.ts +1 -0
  91. package/dist/web-utils/src/providers/__tests__/tenant-provider.test.d.ts +1 -0
  92. package/dist/web-utils/src/providers/auth-provider.d.ts +5 -2
  93. package/dist/web-utils/src/providers/mentor-provider.d.ts +2 -1
  94. package/dist/web-utils/src/providers/tenant-provider.d.ts +7 -2
  95. package/dist/web-utils/src/types/index.d.ts +1 -0
  96. package/dist/web-utils/src/types/subscription.d.ts +21 -0
  97. package/dist/web-utils/src/utils/__tests__/auth.test.d.ts +1 -0
  98. package/dist/web-utils/src/utils/__tests__/constants.test.d.ts +1 -0
  99. package/dist/web-utils/src/utils/__tests__/helpers.test.d.ts +1 -0
  100. package/dist/web-utils/src/utils/__tests__/platform.test.d.ts +1 -0
  101. package/dist/web-utils/src/utils/constants.d.ts +1 -0
  102. package/dist/web-utils/src/utils/data/__tests__/advanced-tab.test.d.ts +1 -0
  103. package/dist/web-utils/src/utils/helpers.d.ts +6 -0
  104. package/dist/web-utils/src/utils/index.d.ts +1 -0
  105. package/dist/web-utils/src/utils/platform.d.ts +1 -0
  106. package/dist/web-utils/tests/hooks/chat/use-mentor-tools.test.d.ts +1 -0
  107. package/dist/web-utils/tests/hooks/subscription-v2/use-subscription-handler.test.d.ts +1 -0
  108. package/dist/web-utils/tests/hooks/use-mentor-settings.test.d.ts +1 -0
  109. package/dist/web-utils/tests/providers/mentor-provider.test.d.ts +1 -0
  110. package/dist/web-utils/tests/providers/tenant-provider.test.d.ts +1 -0
  111. package/dist/web-utils/tests/utils/helpers.test.d.ts +1 -0
  112. package/dist/web-utils/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +22 -12
@@ -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;
@@ -28,6 +28,6 @@ export interface TokenResponse {
28
28
  user: any;
29
29
  }
30
30
  export interface JwtTokenResponse {
31
- jwt_token: string;
31
+ token: string;
32
32
  }
33
33
  export {};
@@ -1,12 +1,18 @@
1
- export declare const billingApiSlice: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, {
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("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalRequest;
5
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalResponse, "billingApiSlice", any>;
7
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
8
+ attempt?: number;
9
+ } & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalResponse, "billingApiSlice", any>;
6
10
  renewSubscription: import("@reduxjs/toolkit/query").MutationDefinition<{
7
11
  org: string;
8
12
  requestBody: import("node_modules/@iblai/iblai-api/dist/types").StripeSubscriptionRenewalRequest;
9
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeSubscriptionRenewalResponse, "billingApiSlice", any>;
13
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
14
+ attempt?: number;
15
+ } & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").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("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalRequest;
174
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
180
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
181
+ attempt?: number;
182
+ } & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeCustomerPortalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
175
183
  originalArgs?: {
176
184
  org: string;
177
185
  requestBody: import("node_modules/@iblai/iblai-api/dist/types").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("node_modules/@iblai/iblai-api/dist/types").StripeSubscriptionRenewalRequest;
343
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeSubscriptionRenewalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
351
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<void, unknown, unknown, {
352
+ attempt?: number;
353
+ } & import("@reduxjs/toolkit/query").RetryOptions, {}>, "billing", import("node_modules/@iblai/iblai-api/dist/types").StripeSubscriptionRenewalResponse, "billingApiSlice", any>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
344
354
  originalArgs?: {
345
355
  org: string;
346
356
  requestBody: import("node_modules/@iblai/iblai-api/dist/types").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
+ };