@iblai/data-layer 1.38.1 → 1.39.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 +1984 -167
- package/dist/index.esm.js +168 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +184 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/agent-settings/__tests__/api-slice.test.d.ts +1 -0
- package/dist/src/features/agent-settings/api-slice.d.ts +273 -0
- package/dist/src/features/agent-settings/constants.d.ts +6 -0
- package/dist/src/features/agent-settings/types.d.ts +12 -0
- package/dist/src/features/spend-caps/api-slice.d.ts +1564 -128
- package/dist/src/features/spend-caps/constants.d.ts +31 -0
- package/dist/src/features/spend-caps/types.d.ts +48 -2
- package/dist/src/index.d.ts +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39085,10 +39085,13 @@ exports.SERVICES = void 0;
|
|
|
39085
39085
|
const NEVER_RETRY_STATUSES = [400, 401, 403];
|
|
39086
39086
|
|
|
39087
39087
|
// Backend contract: ibl_ai_mentor/views/spend_cap_views.py.
|
|
39088
|
-
// Spend caps exist at
|
|
39088
|
+
// Spend caps exist at four scopes, all under /api/ai-mentor/orgs/{org}/:
|
|
39089
39089
|
// 1. Tenant singleton — spend-caps/tenant/
|
|
39090
39090
|
// 2. Agent singleton — agents/{mentor_unique_id}/spend-cap/
|
|
39091
39091
|
// 3. Per-user-per-agent — agents/{mentor_unique_id}/spend-caps/users/{username}/
|
|
39092
|
+
// 4. Per-user (all agents) — spend-caps/users/{username}/ (iblai-platform#2513)
|
|
39093
|
+
// plus the tenant default for newly joined users at spend-caps/users/default/
|
|
39094
|
+
// (a config template, not a cap row — registered before the {username} route).
|
|
39092
39095
|
// A read-only learner-safe status summary lives at spend-caps/status/{user_id}/.
|
|
39093
39096
|
// The `mentors/` spellings are deprecated aliases; only `agents/` is used here.
|
|
39094
39097
|
const SPEND_CAPS_REDUCER_PATH = 'spendCapsApiSlice';
|
|
@@ -39105,6 +39108,9 @@ const agentUserSpendCapsPath = (org, mentorId) => `/api/ai-mentor/orgs/${encodeP
|
|
|
39105
39108
|
const userSpendCapPath = (org, mentorId, username) => `${agentUserSpendCapsPath(org, mentorId)}${encodePathSegment$3(username)}/`;
|
|
39106
39109
|
const spendCapStatusPath = (org, userId) => `/api/ai-mentor/orgs/${encodePathSegment$3(org)}/spend-caps/status/${encodePathSegment$3(userId)}/`;
|
|
39107
39110
|
const agentSpendCapsListPath = (org) => `/api/ai-mentor/orgs/${encodePathSegment$3(org)}/spend-caps/agents/`;
|
|
39111
|
+
const tenantUserSpendCapsPath = (org) => `/api/ai-mentor/orgs/${encodePathSegment$3(org)}/spend-caps/users/`;
|
|
39112
|
+
const tenantUserSpendCapPath = (org, username) => `${tenantUserSpendCapsPath(org)}${encodePathSegment$3(username)}/`;
|
|
39113
|
+
const newUserSpendCapDefaultPath = (org) => `${tenantUserSpendCapsPath(org)}default/`;
|
|
39108
39114
|
const SPEND_CAPS_ENDPOINTS = {
|
|
39109
39115
|
GET_TENANT_SPEND_CAP: {
|
|
39110
39116
|
service: exports.SERVICES.DM,
|
|
@@ -39150,6 +39156,34 @@ const SPEND_CAPS_ENDPOINTS = {
|
|
|
39150
39156
|
service: exports.SERVICES.DM,
|
|
39151
39157
|
path: userSpendCapPath,
|
|
39152
39158
|
},
|
|
39159
|
+
LIST_TENANT_USER_SPEND_CAPS: {
|
|
39160
|
+
service: exports.SERVICES.DM,
|
|
39161
|
+
path: tenantUserSpendCapsPath,
|
|
39162
|
+
},
|
|
39163
|
+
GET_TENANT_USER_SPEND_CAP: {
|
|
39164
|
+
service: exports.SERVICES.DM,
|
|
39165
|
+
path: tenantUserSpendCapPath,
|
|
39166
|
+
},
|
|
39167
|
+
UPSERT_TENANT_USER_SPEND_CAP: {
|
|
39168
|
+
service: exports.SERVICES.DM,
|
|
39169
|
+
path: tenantUserSpendCapPath,
|
|
39170
|
+
},
|
|
39171
|
+
DELETE_TENANT_USER_SPEND_CAP: {
|
|
39172
|
+
service: exports.SERVICES.DM,
|
|
39173
|
+
path: tenantUserSpendCapPath,
|
|
39174
|
+
},
|
|
39175
|
+
GET_NEW_USER_SPEND_CAP_DEFAULT: {
|
|
39176
|
+
service: exports.SERVICES.DM,
|
|
39177
|
+
path: newUserSpendCapDefaultPath,
|
|
39178
|
+
},
|
|
39179
|
+
UPSERT_NEW_USER_SPEND_CAP_DEFAULT: {
|
|
39180
|
+
service: exports.SERVICES.DM,
|
|
39181
|
+
path: newUserSpendCapDefaultPath,
|
|
39182
|
+
},
|
|
39183
|
+
DELETE_NEW_USER_SPEND_CAP_DEFAULT: {
|
|
39184
|
+
service: exports.SERVICES.DM,
|
|
39185
|
+
path: newUserSpendCapDefaultPath,
|
|
39186
|
+
},
|
|
39153
39187
|
GET_SPEND_CAP_STATUS: {
|
|
39154
39188
|
service: exports.SERVICES.DM,
|
|
39155
39189
|
path: spendCapStatusPath,
|
|
@@ -39161,6 +39195,9 @@ const SPEND_CAPS_QUERY_KEYS = {
|
|
|
39161
39195
|
AGENT_SPEND_CAPS_LIST: 'AGENT_SPEND_CAPS_LIST',
|
|
39162
39196
|
AGENT_USER_SPEND_CAPS: 'AGENT_USER_SPEND_CAPS',
|
|
39163
39197
|
USER_SPEND_CAP: 'USER_SPEND_CAP',
|
|
39198
|
+
TENANT_USER_SPEND_CAPS: 'TENANT_USER_SPEND_CAPS',
|
|
39199
|
+
TENANT_USER_SPEND_CAP: 'TENANT_USER_SPEND_CAP',
|
|
39200
|
+
NEW_USER_SPEND_CAP_DEFAULT: 'NEW_USER_SPEND_CAP_DEFAULT',
|
|
39164
39201
|
SPEND_CAP_STATUS: 'SPEND_CAP_STATUS',
|
|
39165
39202
|
};
|
|
39166
39203
|
|
|
@@ -47899,6 +47936,9 @@ const spendCapsApiSlice = react.createApi({
|
|
|
47899
47936
|
SPEND_CAPS_QUERY_KEYS.AGENT_SPEND_CAPS_LIST,
|
|
47900
47937
|
SPEND_CAPS_QUERY_KEYS.AGENT_USER_SPEND_CAPS,
|
|
47901
47938
|
SPEND_CAPS_QUERY_KEYS.USER_SPEND_CAP,
|
|
47939
|
+
SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAPS,
|
|
47940
|
+
SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAP,
|
|
47941
|
+
SPEND_CAPS_QUERY_KEYS.NEW_USER_SPEND_CAP_DEFAULT,
|
|
47902
47942
|
SPEND_CAPS_QUERY_KEYS.SPEND_CAP_STATUS,
|
|
47903
47943
|
],
|
|
47904
47944
|
baseQuery: iblFetchBaseQuery,
|
|
@@ -48023,6 +48063,88 @@ const spendCapsApiSlice = react.createApi({
|
|
|
48023
48063
|
SPEND_CAPS_QUERY_KEYS.SPEND_CAP_STATUS,
|
|
48024
48064
|
],
|
|
48025
48065
|
}),
|
|
48066
|
+
// User scope: one user's spend across every agent (iblai-platform#2513).
|
|
48067
|
+
// A plain list ordered by username; `username`/`email` are exact-match
|
|
48068
|
+
// filters. Also where the rows the new-user default creates show up.
|
|
48069
|
+
listTenantUserSpendCaps: builder.query({
|
|
48070
|
+
query: (args) => {
|
|
48071
|
+
const params = {
|
|
48072
|
+
...(args.username ? { username: args.username } : {}),
|
|
48073
|
+
...(args.email ? { email: args.email } : {}),
|
|
48074
|
+
};
|
|
48075
|
+
return {
|
|
48076
|
+
url: SPEND_CAPS_ENDPOINTS.LIST_TENANT_USER_SPEND_CAPS.path(args.org),
|
|
48077
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
48078
|
+
service: SPEND_CAPS_ENDPOINTS.LIST_TENANT_USER_SPEND_CAPS.service,
|
|
48079
|
+
};
|
|
48080
|
+
},
|
|
48081
|
+
transformResponse: (response) => { var _a; return Array.isArray(response) ? response : ((_a = response === null || response === void 0 ? void 0 : response.results) !== null && _a !== void 0 ? _a : []); },
|
|
48082
|
+
providesTags: [SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAPS],
|
|
48083
|
+
}),
|
|
48084
|
+
getTenantUserSpendCap: builder.query({
|
|
48085
|
+
query: (args) => ({
|
|
48086
|
+
url: SPEND_CAPS_ENDPOINTS.GET_TENANT_USER_SPEND_CAP.path(args.org, args.username),
|
|
48087
|
+
service: SPEND_CAPS_ENDPOINTS.GET_TENANT_USER_SPEND_CAP.service,
|
|
48088
|
+
}),
|
|
48089
|
+
providesTags: (result, error, args) => [
|
|
48090
|
+
{ type: SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAP, id: args.username },
|
|
48091
|
+
],
|
|
48092
|
+
}),
|
|
48093
|
+
upsertTenantUserSpendCap: builder.mutation({
|
|
48094
|
+
query: (args) => ({
|
|
48095
|
+
url: SPEND_CAPS_ENDPOINTS.UPSERT_TENANT_USER_SPEND_CAP.path(args.org, args.username),
|
|
48096
|
+
method: 'PUT',
|
|
48097
|
+
body: args.formData,
|
|
48098
|
+
service: SPEND_CAPS_ENDPOINTS.UPSERT_TENANT_USER_SPEND_CAP.service,
|
|
48099
|
+
}),
|
|
48100
|
+
invalidatesTags: (result, error, args) => [
|
|
48101
|
+
{ type: SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAP, id: args.username },
|
|
48102
|
+
SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAPS,
|
|
48103
|
+
SPEND_CAPS_QUERY_KEYS.SPEND_CAP_STATUS,
|
|
48104
|
+
],
|
|
48105
|
+
}),
|
|
48106
|
+
deleteTenantUserSpendCap: builder.mutation({
|
|
48107
|
+
query: (args) => ({
|
|
48108
|
+
url: SPEND_CAPS_ENDPOINTS.DELETE_TENANT_USER_SPEND_CAP.path(args.org, args.username),
|
|
48109
|
+
method: 'DELETE',
|
|
48110
|
+
service: SPEND_CAPS_ENDPOINTS.DELETE_TENANT_USER_SPEND_CAP.service,
|
|
48111
|
+
}),
|
|
48112
|
+
invalidatesTags: (result, error, args) => [
|
|
48113
|
+
{ type: SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAP, id: args.username },
|
|
48114
|
+
SPEND_CAPS_QUERY_KEYS.TENANT_USER_SPEND_CAPS,
|
|
48115
|
+
SPEND_CAPS_QUERY_KEYS.SPEND_CAP_STATUS,
|
|
48116
|
+
],
|
|
48117
|
+
}),
|
|
48118
|
+
// Never 404s: with nothing configured it returns the registered default
|
|
48119
|
+
// (`enabled: false`). Only read at join time, so it does not touch the
|
|
48120
|
+
// status or the per-user rows.
|
|
48121
|
+
getNewUserSpendCapDefault: builder.query({
|
|
48122
|
+
query: (args) => ({
|
|
48123
|
+
url: SPEND_CAPS_ENDPOINTS.GET_NEW_USER_SPEND_CAP_DEFAULT.path(args.org),
|
|
48124
|
+
service: SPEND_CAPS_ENDPOINTS.GET_NEW_USER_SPEND_CAP_DEFAULT.service,
|
|
48125
|
+
}),
|
|
48126
|
+
providesTags: [SPEND_CAPS_QUERY_KEYS.NEW_USER_SPEND_CAP_DEFAULT],
|
|
48127
|
+
}),
|
|
48128
|
+
// Full replace (200, never 201): the body must carry every field.
|
|
48129
|
+
upsertNewUserSpendCapDefault: builder.mutation({
|
|
48130
|
+
query: (args) => ({
|
|
48131
|
+
url: SPEND_CAPS_ENDPOINTS.UPSERT_NEW_USER_SPEND_CAP_DEFAULT.path(args.org),
|
|
48132
|
+
method: 'PUT',
|
|
48133
|
+
body: args.formData,
|
|
48134
|
+
service: SPEND_CAPS_ENDPOINTS.UPSERT_NEW_USER_SPEND_CAP_DEFAULT.service,
|
|
48135
|
+
}),
|
|
48136
|
+
invalidatesTags: [SPEND_CAPS_QUERY_KEYS.NEW_USER_SPEND_CAP_DEFAULT],
|
|
48137
|
+
}),
|
|
48138
|
+
// Clears the platform override so the tenant falls back to the global
|
|
48139
|
+
// default (off). A PUT with `enabled: false` keeps the values instead.
|
|
48140
|
+
deleteNewUserSpendCapDefault: builder.mutation({
|
|
48141
|
+
query: (args) => ({
|
|
48142
|
+
url: SPEND_CAPS_ENDPOINTS.DELETE_NEW_USER_SPEND_CAP_DEFAULT.path(args.org),
|
|
48143
|
+
method: 'DELETE',
|
|
48144
|
+
service: SPEND_CAPS_ENDPOINTS.DELETE_NEW_USER_SPEND_CAP_DEFAULT.service,
|
|
48145
|
+
}),
|
|
48146
|
+
invalidatesTags: [SPEND_CAPS_QUERY_KEYS.NEW_USER_SPEND_CAP_DEFAULT],
|
|
48147
|
+
}),
|
|
48026
48148
|
getSpendCapStatus: builder.query({
|
|
48027
48149
|
query: (args) => ({
|
|
48028
48150
|
url: SPEND_CAPS_ENDPOINTS.GET_SPEND_CAP_STATUS.path(args.org, args.userId),
|
|
@@ -48033,7 +48155,7 @@ const spendCapsApiSlice = react.createApi({
|
|
|
48033
48155
|
}),
|
|
48034
48156
|
}),
|
|
48035
48157
|
});
|
|
48036
|
-
const { useGetTenantSpendCapQuery, useLazyGetTenantSpendCapQuery, useUpsertTenantSpendCapMutation, useDeleteTenantSpendCapMutation, useGetAgentSpendCapQuery, useLazyGetAgentSpendCapQuery, useUpsertAgentSpendCapMutation, useDeleteAgentSpendCapMutation, useListAgentSpendCapsQuery, useLazyListAgentSpendCapsQuery, useListAgentUserSpendCapsQuery, useLazyListAgentUserSpendCapsQuery, useGetUserSpendCapQuery, useLazyGetUserSpendCapQuery, useUpsertUserSpendCapMutation, useDeleteUserSpendCapMutation, useGetSpendCapStatusQuery, useLazyGetSpendCapStatusQuery, } = spendCapsApiSlice;
|
|
48158
|
+
const { useGetTenantSpendCapQuery, useLazyGetTenantSpendCapQuery, useUpsertTenantSpendCapMutation, useDeleteTenantSpendCapMutation, useGetAgentSpendCapQuery, useLazyGetAgentSpendCapQuery, useUpsertAgentSpendCapMutation, useDeleteAgentSpendCapMutation, useListAgentSpendCapsQuery, useLazyListAgentSpendCapsQuery, useListAgentUserSpendCapsQuery, useLazyListAgentUserSpendCapsQuery, useGetUserSpendCapQuery, useLazyGetUserSpendCapQuery, useUpsertUserSpendCapMutation, useDeleteUserSpendCapMutation, useListTenantUserSpendCapsQuery, useLazyListTenantUserSpendCapsQuery, useGetTenantUserSpendCapQuery, useLazyGetTenantUserSpendCapQuery, useUpsertTenantUserSpendCapMutation, useDeleteTenantUserSpendCapMutation, useGetNewUserSpendCapDefaultQuery, useLazyGetNewUserSpendCapDefaultQuery, useUpsertNewUserSpendCapDefaultMutation, useDeleteNewUserSpendCapDefaultMutation, useGetSpendCapStatusQuery, useLazyGetSpendCapStatusQuery, } = spendCapsApiSlice;
|
|
48037
48159
|
|
|
48038
48160
|
/**
|
|
48039
48161
|
* True when `body` is a spend-cap-exceeded error body — an object whose
|
|
@@ -48060,6 +48182,45 @@ const getSpendCapExceededError = (error) => {
|
|
|
48060
48182
|
return null;
|
|
48061
48183
|
};
|
|
48062
48184
|
|
|
48185
|
+
// Backend contract: iblai-dm-pro#3150 (iblai-platform#2766). The endpoint is
|
|
48186
|
+
// mounted at the DM root, not under /api/ai-mentor/, and scopes its answer to
|
|
48187
|
+
// the tenant named in the `iblai-org` header.
|
|
48188
|
+
const AGENT_SETTINGS_REDUCER_PATH = 'agentSettingsApiSlice';
|
|
48189
|
+
const AGENT_SETTINGS_FIELD_PERMISSIONS_PATH = '/v1/agents/settings/field-permissions';
|
|
48190
|
+
const IBLAI_ORG_HEADER = 'iblai-org';
|
|
48191
|
+
const AGENT_SETTINGS_QUERY_KEYS = {
|
|
48192
|
+
FIELD_PERMISSIONS: 'AGENT_SETTINGS_FIELD_PERMISSIONS',
|
|
48193
|
+
};
|
|
48194
|
+
|
|
48195
|
+
const agentSettingsApiSlice = react.createApi({
|
|
48196
|
+
reducerPath: AGENT_SETTINGS_REDUCER_PATH,
|
|
48197
|
+
tagTypes: [AGENT_SETTINGS_QUERY_KEYS.FIELD_PERMISSIONS],
|
|
48198
|
+
baseQuery: iblFetchBaseQuery,
|
|
48199
|
+
endpoints: (builder) => ({
|
|
48200
|
+
/**
|
|
48201
|
+
* Which create-agent fields the caller may write. A 403 means they may not
|
|
48202
|
+
* create agents at all and a 404 an older backend; both are returned as
|
|
48203
|
+
* `{ error }` so the form can fail open on them instead of logging out.
|
|
48204
|
+
*/
|
|
48205
|
+
getAgentSettingsFieldPermissions: builder.query({
|
|
48206
|
+
query: ({ org }) => ({
|
|
48207
|
+
url: AGENT_SETTINGS_FIELD_PERMISSIONS_PATH,
|
|
48208
|
+
service: exports.SERVICES.DM,
|
|
48209
|
+
method: 'GET',
|
|
48210
|
+
headers: { [IBLAI_ORG_HEADER]: org },
|
|
48211
|
+
returnErrorStatuses: [403, 404],
|
|
48212
|
+
}),
|
|
48213
|
+
// The answer is advisory (the form fails open without it), so a failure
|
|
48214
|
+
// frees the form at once instead of holding it through three retries.
|
|
48215
|
+
extraOptions: { maxRetries: 0 },
|
|
48216
|
+
providesTags: (_result, _error, { org }) => [
|
|
48217
|
+
{ type: AGENT_SETTINGS_QUERY_KEYS.FIELD_PERMISSIONS, id: org },
|
|
48218
|
+
],
|
|
48219
|
+
}),
|
|
48220
|
+
}),
|
|
48221
|
+
});
|
|
48222
|
+
const { useGetAgentSettingsFieldPermissionsQuery, useLazyGetAgentSettingsFieldPermissionsQuery, } = agentSettingsApiSlice;
|
|
48223
|
+
|
|
48063
48224
|
exports.recommendationPromptTypeEnum = void 0;
|
|
48064
48225
|
(function (recommendationPromptTypeEnum) {
|
|
48065
48226
|
recommendationPromptTypeEnum["mentors"] = "mentors";
|
|
@@ -50173,6 +50334,7 @@ const mentorReducer = {
|
|
|
50173
50334
|
[supportTicketsApiSlice.reducerPath]: supportTicketsApiSlice.reducer,
|
|
50174
50335
|
[gradingApiSlice.reducerPath]: gradingApiSlice.reducer,
|
|
50175
50336
|
[spendCapsApiSlice.reducerPath]: spendCapsApiSlice.reducer,
|
|
50337
|
+
[agentSettingsApiSlice.reducerPath]: agentSettingsApiSlice.reducer,
|
|
50176
50338
|
[userChatHistoryApiSlice.reducerPath]: userChatHistoryApiSlice.reducer,
|
|
50177
50339
|
[virtualMachineApiSlice.reducerPath]: virtualMachineApiSlice.reducer,
|
|
50178
50340
|
[userLlmUsageApiSlice.reducerPath]: userLlmUsageApiSlice.reducer,
|
|
@@ -50239,6 +50401,7 @@ const mentorMiddleware = [
|
|
|
50239
50401
|
supportTicketsApiSlice.middleware,
|
|
50240
50402
|
gradingApiSlice.middleware,
|
|
50241
50403
|
spendCapsApiSlice.middleware,
|
|
50404
|
+
agentSettingsApiSlice.middleware,
|
|
50242
50405
|
userChatHistoryApiSlice.middleware,
|
|
50243
50406
|
virtualMachineApiSlice.middleware,
|
|
50244
50407
|
userLlmUsageApiSlice.middleware,
|
|
@@ -50286,6 +50449,7 @@ const skillsReducer = {
|
|
|
50286
50449
|
[studioAuthoringApiSlice.reducerPath]: studioAuthoringApiSlice.reducer,
|
|
50287
50450
|
[watchedGroupsApiSlice.reducerPath]: watchedGroupsApiSlice.reducer,
|
|
50288
50451
|
[spendCapsApiSlice.reducerPath]: spendCapsApiSlice.reducer,
|
|
50452
|
+
[agentSettingsApiSlice.reducerPath]: agentSettingsApiSlice.reducer,
|
|
50289
50453
|
[chatPrivacyApiSlice.reducerPath]: chatPrivacyApiSlice.reducer,
|
|
50290
50454
|
[agentSkillsApiSlice.reducerPath]: agentSkillsApiSlice.reducer,
|
|
50291
50455
|
[userChatHistoryApiSlice.reducerPath]: userChatHistoryApiSlice.reducer,
|
|
@@ -50335,6 +50499,7 @@ const skillsMiddleware = [
|
|
|
50335
50499
|
studioAuthoringApiSlice.middleware,
|
|
50336
50500
|
watchedGroupsApiSlice.middleware,
|
|
50337
50501
|
spendCapsApiSlice.middleware,
|
|
50502
|
+
agentSettingsApiSlice.middleware,
|
|
50338
50503
|
chatPrivacyApiSlice.middleware,
|
|
50339
50504
|
agentSkillsApiSlice.middleware,
|
|
50340
50505
|
userChatHistoryApiSlice.middleware,
|
|
@@ -50357,6 +50522,9 @@ const initializeDataLayer = (dmUrl, lmsUrl, legacyLmsUrl, storageService, httpEr
|
|
|
50357
50522
|
Config.edxProxyEnabled = (_a = options === null || options === void 0 ? void 0 : options.edxProxy) !== null && _a !== void 0 ? _a : false;
|
|
50358
50523
|
};
|
|
50359
50524
|
|
|
50525
|
+
exports.AGENT_SETTINGS_FIELD_PERMISSIONS_PATH = AGENT_SETTINGS_FIELD_PERMISSIONS_PATH;
|
|
50526
|
+
exports.AGENT_SETTINGS_QUERY_KEYS = AGENT_SETTINGS_QUERY_KEYS;
|
|
50527
|
+
exports.AGENT_SETTINGS_REDUCER_PATH = AGENT_SETTINGS_REDUCER_PATH;
|
|
50360
50528
|
exports.AGENT_SKILLS_ENDPOINTS = AGENT_SKILLS_ENDPOINTS;
|
|
50361
50529
|
exports.AGENT_SKILLS_REDUCER_PATH = AGENT_SKILLS_REDUCER_PATH;
|
|
50362
50530
|
exports.AGENT_SKILLS_TAG_TYPES = AGENT_SKILLS_TAG_TYPES;
|
|
@@ -50404,6 +50572,7 @@ exports.GRADING_REDUCER_PATH = GRADING_REDUCER_PATH;
|
|
|
50404
50572
|
exports.HOSTING_ENDPOINTS = HOSTING_ENDPOINTS;
|
|
50405
50573
|
exports.HOSTING_QUERY_KEYS = HOSTING_QUERY_KEYS;
|
|
50406
50574
|
exports.HOSTING_REDUCER_PATH = HOSTING_REDUCER_PATH;
|
|
50575
|
+
exports.IBLAI_ORG_HEADER = IBLAI_ORG_HEADER;
|
|
50407
50576
|
exports.IblDataLayer = IblDataLayer;
|
|
50408
50577
|
exports.LEARNER_COMPLETION_PATH = LEARNER_COMPLETION_PATH;
|
|
50409
50578
|
exports.LOGO_ENDPOINTS = LOGO_ENDPOINTS;
|
|
@@ -50488,6 +50657,7 @@ exports.WATCHER_NOTIFICATION_EVENT_LABELS = WATCHER_NOTIFICATION_EVENT_LABELS;
|
|
|
50488
50657
|
exports.WORKFLOWS_ENDPOINTS = WORKFLOWS_ENDPOINTS;
|
|
50489
50658
|
exports.WORKFLOWS_QUERY_KEYS = WORKFLOWS_QUERY_KEYS;
|
|
50490
50659
|
exports.WORKFLOWS_REDUCER_PATH = WORKFLOWS_REDUCER_PATH;
|
|
50660
|
+
exports.agentSettingsApiSlice = agentSettingsApiSlice;
|
|
50491
50661
|
exports.agentSkillsApiSlice = agentSkillsApiSlice;
|
|
50492
50662
|
exports.analyticsApiSlice = analyticsApiSlice;
|
|
50493
50663
|
exports.apiKeysApiReducer = apiKeysApiReducer;
|
|
@@ -50751,6 +50921,7 @@ exports.useDeleteMentorMutation = useDeleteMentorMutation;
|
|
|
50751
50921
|
exports.useDeleteMentorSkillAssignmentMutation = useDeleteMentorSkillAssignmentMutation;
|
|
50752
50922
|
exports.useDeleteMessageMutation = useDeleteMessageMutation;
|
|
50753
50923
|
exports.useDeleteModerationLogMutation = useDeleteModerationLogMutation;
|
|
50924
|
+
exports.useDeleteNewUserSpendCapDefaultMutation = useDeleteNewUserSpendCapDefaultMutation;
|
|
50754
50925
|
exports.useDeletePeriodicAgentMutation = useDeletePeriodicAgentMutation;
|
|
50755
50926
|
exports.useDeletePlatformConfigurationMutation = useDeletePlatformConfigurationMutation;
|
|
50756
50927
|
exports.useDeletePlatformImageAssetMutation = useDeletePlatformImageAssetMutation;
|
|
@@ -50767,6 +50938,7 @@ exports.useDeleteStudioCourseMutation = useDeleteStudioCourseMutation;
|
|
|
50767
50938
|
exports.useDeleteSupportTicketMessageMutation = useDeleteSupportTicketMessageMutation;
|
|
50768
50939
|
exports.useDeleteSupportTicketMutation = useDeleteSupportTicketMutation;
|
|
50769
50940
|
exports.useDeleteTenantSpendCapMutation = useDeleteTenantSpendCapMutation;
|
|
50941
|
+
exports.useDeleteTenantUserSpendCapMutation = useDeleteTenantUserSpendCapMutation;
|
|
50770
50942
|
exports.useDeleteTrainingDocumentMutation = useDeleteTrainingDocumentMutation;
|
|
50771
50943
|
exports.useDeleteUserEducationMutation = useDeleteUserEducationMutation;
|
|
50772
50944
|
exports.useDeleteUserExperienceMutation = useDeleteUserExperienceMutation;
|
|
@@ -50797,6 +50969,7 @@ exports.useGetAdminProjectDetailsQuery = useGetAdminProjectDetailsQuery;
|
|
|
50797
50969
|
exports.useGetAdminProjectsQuery = useGetAdminProjectsQuery;
|
|
50798
50970
|
exports.useGetAgentConfigQuery = useGetAgentConfigQuery;
|
|
50799
50971
|
exports.useGetAgentCostQuery = useGetAgentCostQuery;
|
|
50972
|
+
exports.useGetAgentSettingsFieldPermissionsQuery = useGetAgentSettingsFieldPermissionsQuery;
|
|
50800
50973
|
exports.useGetAgentSkillQuery = useGetAgentSkillQuery;
|
|
50801
50974
|
exports.useGetAgentSkillResourceQuery = useGetAgentSkillResourceQuery;
|
|
50802
50975
|
exports.useGetAgentSkillResourcesQuery = useGetAgentSkillResourcesQuery;
|
|
@@ -50926,6 +51099,7 @@ exports.useGetModelCostsQuery = useGetModelCostsQuery;
|
|
|
50926
51099
|
exports.useGetModerationLogsQuery = useGetModerationLogsQuery;
|
|
50927
51100
|
exports.useGetMostDiscussedTopicsQuery = useGetMostDiscussedTopicsQuery;
|
|
50928
51101
|
exports.useGetMySubscriptionsQuery = useGetMySubscriptionsQuery;
|
|
51102
|
+
exports.useGetNewUserSpendCapDefaultQuery = useGetNewUserSpendCapDefaultQuery;
|
|
50929
51103
|
exports.useGetNodeTypesQuery = useGetNodeTypesQuery;
|
|
50930
51104
|
exports.useGetNotificationContextQuery = useGetNotificationContextQuery;
|
|
50931
51105
|
exports.useGetNotificationsCountQuery = useGetNotificationsCountQuery;
|
|
@@ -51010,6 +51184,7 @@ exports.useGetTenantChatPrivacyConfigQuery = useGetTenantChatPrivacyConfigQuery;
|
|
|
51010
51184
|
exports.useGetTenantCostQuery = useGetTenantCostQuery;
|
|
51011
51185
|
exports.useGetTenantMetadataQuery = useGetTenantMetadataQuery;
|
|
51012
51186
|
exports.useGetTenantSpendCapQuery = useGetTenantSpendCapQuery;
|
|
51187
|
+
exports.useGetTenantUserSpendCapQuery = useGetTenantUserSpendCapQuery;
|
|
51013
51188
|
exports.useGetToolsQuery = useGetToolsQuery;
|
|
51014
51189
|
exports.useGetTopStudentsByChatMessagesQuery = useGetTopStudentsByChatMessagesQuery;
|
|
51015
51190
|
exports.useGetTopicOverviewQuery = useGetTopicOverviewQuery;
|
|
@@ -51087,6 +51262,7 @@ exports.useLazyGetAccountBillingInfoQuery = useLazyGetAccountBillingInfoQuery;
|
|
|
51087
51262
|
exports.useLazyGetAdminProjectDetailsQuery = useLazyGetAdminProjectDetailsQuery;
|
|
51088
51263
|
exports.useLazyGetAdminProjectsQuery = useLazyGetAdminProjectsQuery;
|
|
51089
51264
|
exports.useLazyGetAgentConfigQuery = useLazyGetAgentConfigQuery;
|
|
51265
|
+
exports.useLazyGetAgentSettingsFieldPermissionsQuery = useLazyGetAgentSettingsFieldPermissionsQuery;
|
|
51090
51266
|
exports.useLazyGetAgentSkillResourcesQuery = useLazyGetAgentSkillResourcesQuery;
|
|
51091
51267
|
exports.useLazyGetAgentSkillsQuery = useLazyGetAgentSkillsQuery;
|
|
51092
51268
|
exports.useLazyGetAgentSpendCapQuery = useLazyGetAgentSpendCapQuery;
|
|
@@ -51180,6 +51356,7 @@ exports.useLazyGetMentorSummariesQuery = useLazyGetMentorSummariesQuery;
|
|
|
51180
51356
|
exports.useLazyGetMentorsQuery = useLazyGetMentorsQuery;
|
|
51181
51357
|
exports.useLazyGetModerationLogsQuery = useLazyGetModerationLogsQuery;
|
|
51182
51358
|
exports.useLazyGetMySubscriptionsQuery = useLazyGetMySubscriptionsQuery;
|
|
51359
|
+
exports.useLazyGetNewUserSpendCapDefaultQuery = useLazyGetNewUserSpendCapDefaultQuery;
|
|
51183
51360
|
exports.useLazyGetNodeTypesQuery = useLazyGetNodeTypesQuery;
|
|
51184
51361
|
exports.useLazyGetNotificationContextQuery = useLazyGetNotificationContextQuery;
|
|
51185
51362
|
exports.useLazyGetNotificationsCountQuery = useLazyGetNotificationsCountQuery;
|
|
@@ -51246,6 +51423,7 @@ exports.useLazyGetTemplatesQuery = useLazyGetTemplatesQuery;
|
|
|
51246
51423
|
exports.useLazyGetTenantChatPrivacyConfigQuery = useLazyGetTenantChatPrivacyConfigQuery;
|
|
51247
51424
|
exports.useLazyGetTenantMetadataQuery = useLazyGetTenantMetadataQuery;
|
|
51248
51425
|
exports.useLazyGetTenantSpendCapQuery = useLazyGetTenantSpendCapQuery;
|
|
51426
|
+
exports.useLazyGetTenantUserSpendCapQuery = useLazyGetTenantUserSpendCapQuery;
|
|
51249
51427
|
exports.useLazyGetToolsQuery = useLazyGetToolsQuery;
|
|
51250
51428
|
exports.useLazyGetTrainingDocumentRetrainScheduleQuery = useLazyGetTrainingDocumentRetrainScheduleQuery;
|
|
51251
51429
|
exports.useLazyGetTrainingDocumentsQuery = useLazyGetTrainingDocumentsQuery;
|
|
@@ -51310,6 +51488,7 @@ exports.useLazyListOwnApplicationsQuery = useLazyListOwnApplicationsQuery;
|
|
|
51310
51488
|
exports.useLazyListPaywallsQuery = useLazyListPaywallsQuery;
|
|
51311
51489
|
exports.useLazyListPricesQuery = useLazyListPricesQuery;
|
|
51312
51490
|
exports.useLazyListSubscribersQuery = useLazyListSubscribersQuery;
|
|
51491
|
+
exports.useLazyListTenantUserSpendCapsQuery = useLazyListTenantUserSpendCapsQuery;
|
|
51313
51492
|
exports.useLazyListVirtualMachineNetworkPoliciesQuery = useLazyListVirtualMachineNetworkPoliciesQuery;
|
|
51314
51493
|
exports.useLazyListVirtualMachineSecretsQuery = useLazyListVirtualMachineSecretsQuery;
|
|
51315
51494
|
exports.useLazyPlatformUserGroupsQuery = useLazyPlatformUserGroupsQuery;
|
|
@@ -51338,6 +51517,7 @@ exports.useListOwnApplicationsQuery = useListOwnApplicationsQuery;
|
|
|
51338
51517
|
exports.useListPaywallsQuery = useListPaywallsQuery;
|
|
51339
51518
|
exports.useListPricesQuery = useListPricesQuery;
|
|
51340
51519
|
exports.useListSubscribersQuery = useListSubscribersQuery;
|
|
51520
|
+
exports.useListTenantUserSpendCapsQuery = useListTenantUserSpendCapsQuery;
|
|
51341
51521
|
exports.useListVirtualMachineNetworkPoliciesQuery = useListVirtualMachineNetworkPoliciesQuery;
|
|
51342
51522
|
exports.useListVirtualMachineSecretsQuery = useListVirtualMachineSecretsQuery;
|
|
51343
51523
|
exports.useMarkAllAsReadMutation = useMarkAllAsReadMutation;
|
|
@@ -51478,7 +51658,9 @@ exports.useUploadStudioCourseAssetMutation = useUploadStudioCourseAssetMutation;
|
|
|
51478
51658
|
exports.useUploadStudioCourseVideoMutation = useUploadStudioCourseVideoMutation;
|
|
51479
51659
|
exports.useUploadStudioScormPackageMutation = useUploadStudioScormPackageMutation;
|
|
51480
51660
|
exports.useUpsertAgentSpendCapMutation = useUpsertAgentSpendCapMutation;
|
|
51661
|
+
exports.useUpsertNewUserSpendCapDefaultMutation = useUpsertNewUserSpendCapDefaultMutation;
|
|
51481
51662
|
exports.useUpsertTenantSpendCapMutation = useUpsertTenantSpendCapMutation;
|
|
51663
|
+
exports.useUpsertTenantUserSpendCapMutation = useUpsertTenantUserSpendCapMutation;
|
|
51482
51664
|
exports.useUpsertUserSpendCapMutation = useUpsertUserSpendCapMutation;
|
|
51483
51665
|
exports.useUserLlmCostByModel = useUserLlmCostByModel;
|
|
51484
51666
|
exports.useUserLlmCostByService = useUserLlmCostByService;
|