@carlonicora/nextjs-jsonapi 3.12.0 → 3.14.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/{AssistantInterface-DwdBzS9f.d.ts → AssistantInterface-RvZzlcA_.d.ts} +2 -0
- package/dist/{AssistantInterface-DMh-zApr.d.mts → AssistantInterface-jL56dyNc.d.mts} +2 -0
- package/dist/{AssistantMessageInterface-0zyVingf.d.ts → AssistantMessageInterface-CuaMDs2i.d.ts} +1 -1
- package/dist/{AssistantMessageInterface-ddyG114R.d.mts → AssistantMessageInterface-Du3ShThp.d.mts} +1 -1
- package/dist/{BlockNoteEditor-CR5KH4AI.mjs → BlockNoteEditor-QG5OWH5K.mjs} +4 -4
- package/dist/{BlockNoteEditor-6G27S6P3.js → BlockNoteEditor-WP4K423H.js} +19 -19
- package/dist/{BlockNoteEditor-6G27S6P3.js.map → BlockNoteEditor-WP4K423H.js.map} +1 -1
- package/dist/{BlockNoteViewer-5MITJ7AD.js → BlockNoteViewer-CWFPYYIU.js} +3 -3
- package/dist/{BlockNoteViewer-5MITJ7AD.js.map → BlockNoteViewer-CWFPYYIU.js.map} +1 -1
- package/dist/{BlockNoteViewer-NJKFUNXP.mjs → BlockNoteViewer-P2VKEFRN.mjs} +2 -2
- package/dist/{ai-connection.module-28f-hux0.d.mts → HandbookSectionInterface-BOxIdBdd.d.mts} +54 -1
- package/dist/{ai-connection.module-Bqwh_DnR.d.ts → HandbookSectionInterface-CAXxbDw0.d.ts} +54 -1
- package/dist/{auth.interface-B6ZQLGjS.d.ts → auth.interface-BC1jp_ni.d.ts} +1 -1
- package/dist/{auth.interface-jYD8Gc4P.d.mts → auth.interface-dR2-6gPM.d.mts} +1 -1
- package/dist/billing/index.js +401 -401
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-JEGL7KHK.mjs → chunk-46BRB36R.mjs} +2847 -1803
- package/dist/chunk-46BRB36R.mjs.map +1 -0
- package/dist/{chunk-L7DZSTFU.js → chunk-IB7DTXWG.js} +846 -129
- package/dist/chunk-IB7DTXWG.js.map +1 -0
- package/dist/{chunk-OKGGYCO5.js → chunk-OH6GJY4B.js} +2162 -1118
- package/dist/chunk-OH6GJY4B.js.map +1 -0
- package/dist/{chunk-Q2BREXH3.mjs → chunk-OSFYCSTW.mjs} +724 -7
- package/dist/chunk-OSFYCSTW.mjs.map +1 -0
- package/dist/{chunk-HVNEWDRF.mjs → chunk-VZKJIAND.mjs} +2 -2
- package/dist/{chunk-4ETVCRQD.js → chunk-XH4IURUD.js} +7 -7
- package/dist/{chunk-4ETVCRQD.js.map → chunk-XH4IURUD.js.map} +1 -1
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +270 -7
- package/dist/components/index.d.ts +270 -7
- package/dist/components/index.js +32 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +31 -3
- package/dist/contexts/index.d.mts +17 -5
- package/dist/contexts/index.d.ts +17 -5
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +491 -11
- package/dist/core/index.d.ts +491 -11
- package/dist/core/index.js +38 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +37 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +101 -101
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +39 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -2
- package/dist/{notification.interface-DYF56CtE.d.ts → notification.interface-CjzV_KII.d.ts} +1 -1
- package/dist/{notification.interface-BWOCvKRP.d.mts → notification.interface-MnRt1Tjm.d.mts} +1 -1
- package/dist/{s3.service-D_dswjgz.d.mts → s3.service-C0Yq2Sx3.d.mts} +2 -2
- package/dist/{s3.service-DserU9VK.d.ts → s3.service-CUGarZs3.d.ts} +2 -2
- package/dist/server/index.d.mts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useSocket-BZG9oX-L.d.mts → useSocket-BcH7l7B8.d.mts} +1 -1
- package/dist/{useSocket-CiyTtYFj.d.ts → useSocket-DCZd_eJk.d.ts} +1 -1
- package/package.json +2 -1
- package/src/components/containers/MermaidDiagram.tsx +117 -0
- package/src/components/containers/ReactMarkdownContainer.tsx +98 -15
- package/src/components/containers/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/core/index.ts +5 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/assistant/components/parts/AssistantComposer.tsx +22 -3
- package/src/features/assistant/components/parts/AssistantSidebar.tsx +13 -3
- package/src/features/assistant/components/parts/AssistantThreadHeader.tsx +10 -3
- package/src/features/assistant/contexts/AssistantContext.tsx +30 -3
- package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +32 -0
- package/src/features/assistant/data/Assistant.ts +2 -0
- package/src/features/assistant/data/AssistantInterface.ts +2 -0
- package/src/features/assistant/data/AssistantService.ts +4 -0
- package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +5 -1
- package/src/features/assistant-message/data/AssistantMessage.ts +27 -2
- package/src/features/content/data/content.interface.ts +1 -1
- package/src/features/handbook/HandbookPageModule.ts +41 -0
- package/src/features/handbook/HandbookSectionModule.ts +35 -0
- package/src/features/handbook/HandbookThreadMessageModule.ts +21 -0
- package/src/features/handbook/HandbookThreadModule.ts +29 -0
- package/src/features/handbook/components/containers/HandbookAdminContainer.tsx +17 -0
- package/src/features/handbook/components/containers/HandbookAskContainer.tsx +142 -0
- package/src/features/handbook/components/containers/HandbookAskSheet.tsx +149 -0
- package/src/features/handbook/components/containers/HandbookPageContainer.tsx +143 -0
- package/src/features/handbook/components/containers/__tests__/HandbookAskContainer.spec.tsx +268 -0
- package/src/features/handbook/components/containers/__tests__/HandbookAskSheet.spec.tsx +143 -0
- package/src/features/handbook/components/containers/__tests__/HandbookPageContainer.spec.tsx +288 -0
- package/src/features/handbook/components/details/HandbookPageDetails.tsx +52 -0
- package/src/features/handbook/components/details/HandbookPageNeighbours.tsx +72 -0
- package/src/features/handbook/components/details/HandbookPageToc.tsx +165 -0
- package/src/features/handbook/components/forms/HandbookSyncButton.tsx +43 -0
- package/src/features/handbook/components/forms/__tests__/HandbookSyncButton.spec.tsx +42 -0
- package/src/features/handbook/components/index.ts +12 -0
- package/src/features/handbook/components/lists/HandbookContents.tsx +196 -0
- package/src/features/handbook/components/lists/HandbookSectionGroup.tsx +153 -0
- package/src/features/handbook/components/lists/__tests__/HandbookContents.spec.tsx +247 -0
- package/src/features/handbook/components/parts/HandbookIndexStatus.tsx +62 -0
- package/src/features/handbook/components/parts/HandbookPageNavigator.tsx +143 -0
- package/src/features/handbook/contexts/HandbookContext.tsx +109 -0
- package/src/features/handbook/contexts/__tests__/HandbookContext.spec.tsx +131 -0
- package/src/features/handbook/data/HandbookPage.spec.ts +136 -0
- package/src/features/handbook/data/HandbookPage.ts +99 -0
- package/src/features/handbook/data/HandbookPageFields.ts +31 -0
- package/src/features/handbook/data/HandbookPageInput.ts +8 -0
- package/src/features/handbook/data/HandbookPageInterface.ts +29 -0
- package/src/features/handbook/data/HandbookPageService.ts +60 -0
- package/src/features/handbook/data/HandbookSection.spec.ts +58 -0
- package/src/features/handbook/data/HandbookSection.ts +73 -0
- package/src/features/handbook/data/HandbookSectionInput.ts +12 -0
- package/src/features/handbook/data/HandbookSectionInterface.ts +26 -0
- package/src/features/handbook/data/HandbookSectionService.ts +26 -0
- package/src/features/handbook/data/HandbookThread.ts +114 -0
- package/src/features/handbook/data/HandbookThreadInterface.ts +31 -0
- package/src/features/handbook/data/HandbookThreadMessage.ts +144 -0
- package/src/features/handbook/data/HandbookThreadMessageInterface.ts +35 -0
- package/src/features/handbook/data/HandbookThreadMessageService.ts +30 -0
- package/src/features/handbook/data/HandbookThreadService.ts +86 -0
- package/src/features/handbook/data/__tests__/HandbookThreadService.spec.ts +112 -0
- package/src/features/handbook/data/handbookDisplay.spec.ts +92 -0
- package/src/features/handbook/data/handbookDisplay.ts +55 -0
- package/src/features/handbook/data/index.ts +16 -0
- package/src/features/handbook/hooks/__tests__/useHandbookAsk.spec.ts +198 -0
- package/src/features/handbook/hooks/useHandbookAsk.ts +213 -0
- package/src/features/handbook/i18n-keys.ts +46 -0
- package/src/features/handbook/index.ts +7 -0
- package/src/features/how-to/components/forms/HowToEditor.tsx +0 -1
- package/src/features/how-to/components/forms/HowToReindexButton.spec.tsx +84 -0
- package/src/features/how-to/components/forms/HowToReindexButton.tsx +46 -0
- package/src/features/how-to/components/index.ts +1 -0
- package/src/features/how-to/components/lists/HowToList.tsx +5 -1
- package/src/features/how-to/data/HowTo.spec.ts +61 -1
- package/src/features/how-to/data/HowToService.ts +13 -0
- package/dist/chunk-JEGL7KHK.mjs.map +0 -1
- package/dist/chunk-L7DZSTFU.js.map +0 -1
- package/dist/chunk-OKGGYCO5.js.map +0 -1
- package/dist/chunk-Q2BREXH3.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-CR5KH4AI.mjs.map → BlockNoteEditor-QG5OWH5K.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-NJKFUNXP.mjs.map → BlockNoteViewer-P2VKEFRN.mjs.map} +0 -0
- /package/dist/{chunk-HVNEWDRF.mjs.map → chunk-VZKJIAND.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32;
|
|
2
2
|
|
|
3
3
|
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
4
4
|
|
|
@@ -5922,6 +5922,18 @@ var HowToService = class extends AbstractService {
|
|
|
5922
5922
|
endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: params.howToId }).generate()
|
|
5923
5923
|
});
|
|
5924
5924
|
}
|
|
5925
|
+
/**
|
|
5926
|
+
* POST /howtos/reindex — re-queues every guide for chunking. Replies 204.
|
|
5927
|
+
* Chunking otherwise only happens on create and update, so a guide that was
|
|
5928
|
+
* never chunked stays invisible to help-mode retrieval with no way back.
|
|
5929
|
+
*/
|
|
5930
|
+
static async reindex() {
|
|
5931
|
+
await this.callApi({
|
|
5932
|
+
type: Modules.HowTo,
|
|
5933
|
+
method: "POST" /* POST */,
|
|
5934
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: "reindex" }).generate()
|
|
5935
|
+
});
|
|
5936
|
+
}
|
|
5925
5937
|
static async findPublished(params = {}) {
|
|
5926
5938
|
const endpoint = new EndpointCreator({ endpoint: `public/${Modules.HowTo.name}` });
|
|
5927
5939
|
if (params.howToType) endpoint.addAdditionalParam("type", params.howToType);
|
|
@@ -5980,6 +5992,675 @@ var HowToService = class extends AbstractService {
|
|
|
5980
5992
|
}
|
|
5981
5993
|
};
|
|
5982
5994
|
|
|
5995
|
+
// src/features/handbook/HandbookPageModule.ts
|
|
5996
|
+
|
|
5997
|
+
|
|
5998
|
+
// src/features/handbook/data/HandbookPage.ts
|
|
5999
|
+
var HandbookPage = class extends AbstractApiData {
|
|
6000
|
+
static {
|
|
6001
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookPage");
|
|
6002
|
+
}
|
|
6003
|
+
|
|
6004
|
+
|
|
6005
|
+
|
|
6006
|
+
|
|
6007
|
+
|
|
6008
|
+
|
|
6009
|
+
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
|
|
6013
|
+
|
|
6014
|
+
|
|
6015
|
+
get path() {
|
|
6016
|
+
return _nullishCoalesce(this._path, () => ( ""));
|
|
6017
|
+
}
|
|
6018
|
+
get title() {
|
|
6019
|
+
return _nullishCoalesce(this._title, () => ( ""));
|
|
6020
|
+
}
|
|
6021
|
+
get content() {
|
|
6022
|
+
return _nullishCoalesce(this._content, () => ( ""));
|
|
6023
|
+
}
|
|
6024
|
+
get contentHash() {
|
|
6025
|
+
return _nullishCoalesce(this._contentHash, () => ( ""));
|
|
6026
|
+
}
|
|
6027
|
+
get wordCount() {
|
|
6028
|
+
return _nullishCoalesce(this._wordCount, () => ( 0));
|
|
6029
|
+
}
|
|
6030
|
+
get aiStatus() {
|
|
6031
|
+
return this._aiStatus;
|
|
6032
|
+
}
|
|
6033
|
+
get section() {
|
|
6034
|
+
return _nullishCoalesce(this._section, () => ( ""));
|
|
6035
|
+
}
|
|
6036
|
+
get order() {
|
|
6037
|
+
return _nullishCoalesce(this._order, () => ( ""));
|
|
6038
|
+
}
|
|
6039
|
+
get summary() {
|
|
6040
|
+
return this._summary;
|
|
6041
|
+
}
|
|
6042
|
+
get displayTitle() {
|
|
6043
|
+
return this._displayTitle;
|
|
6044
|
+
}
|
|
6045
|
+
get displaySummary() {
|
|
6046
|
+
return this._displaySummary;
|
|
6047
|
+
}
|
|
6048
|
+
get displayContent() {
|
|
6049
|
+
return this._displayContent;
|
|
6050
|
+
}
|
|
6051
|
+
rehydrate(data) {
|
|
6052
|
+
super.rehydrate(data);
|
|
6053
|
+
this._path = data.jsonApi.attributes.path;
|
|
6054
|
+
this._title = data.jsonApi.attributes.title;
|
|
6055
|
+
this._content = data.jsonApi.attributes.content;
|
|
6056
|
+
this._contentHash = data.jsonApi.attributes.contentHash;
|
|
6057
|
+
this._wordCount = data.jsonApi.attributes.wordCount;
|
|
6058
|
+
this._aiStatus = data.jsonApi.attributes.aiStatus;
|
|
6059
|
+
this._section = data.jsonApi.attributes.section;
|
|
6060
|
+
this._order = data.jsonApi.attributes.order;
|
|
6061
|
+
this._summary = data.jsonApi.attributes.summary;
|
|
6062
|
+
this._displayTitle = data.jsonApi.attributes.displayTitle;
|
|
6063
|
+
this._displaySummary = data.jsonApi.attributes.displaySummary;
|
|
6064
|
+
this._displayContent = data.jsonApi.attributes.displayContent;
|
|
6065
|
+
return this;
|
|
6066
|
+
}
|
|
6067
|
+
createJsonApi(data) {
|
|
6068
|
+
const response = {
|
|
6069
|
+
data: {
|
|
6070
|
+
type: Modules.HandbookPage.name,
|
|
6071
|
+
id: data.id,
|
|
6072
|
+
attributes: {},
|
|
6073
|
+
relationships: {}
|
|
6074
|
+
},
|
|
6075
|
+
included: []
|
|
6076
|
+
};
|
|
6077
|
+
return response;
|
|
6078
|
+
}
|
|
6079
|
+
};
|
|
6080
|
+
|
|
6081
|
+
// src/features/handbook/HandbookPageModule.ts
|
|
6082
|
+
var HandbookPageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
6083
|
+
moduleId: "b1f1c2d6-6a0e-4e93-9b6d-3f5f4a2c81e7",
|
|
6084
|
+
pageUrl: "/administration/handbook",
|
|
6085
|
+
name: "handbookpages",
|
|
6086
|
+
model: HandbookPage,
|
|
6087
|
+
icon: _lucidereact.BookOpenIcon,
|
|
6088
|
+
inclusions: {
|
|
6089
|
+
lists: {
|
|
6090
|
+
// `content` is deliberately omitted: the list renders titles and
|
|
6091
|
+
// status, and a thousand pages of markdown do not belong in a list
|
|
6092
|
+
// payload. `section`, `order` and `summary` are the index fields the
|
|
6093
|
+
// contents page groups, orders and describes pages by, so they are the
|
|
6094
|
+
// one part of the payload the list surface cannot do without.
|
|
6095
|
+
//
|
|
6096
|
+
// `displayTitle` and `displaySummary` are the translated halves of the
|
|
6097
|
+
// two strings the contents page prints, and a sparse fieldset that
|
|
6098
|
+
// omitted them would leave every row in English. `displayContent` is
|
|
6099
|
+
// NOT here for the same reason `content` is not: it is the whole
|
|
6100
|
+
// markdown body, and it belongs to the detail read alone.
|
|
6101
|
+
fields: [
|
|
6102
|
+
createJsonApiInclusion("handbookpages", [
|
|
6103
|
+
"path",
|
|
6104
|
+
"title",
|
|
6105
|
+
"displayTitle",
|
|
6106
|
+
"section",
|
|
6107
|
+
"order",
|
|
6108
|
+
"summary",
|
|
6109
|
+
"displaySummary",
|
|
6110
|
+
"wordCount",
|
|
6111
|
+
"aiStatus"
|
|
6112
|
+
])
|
|
6113
|
+
]
|
|
6114
|
+
}
|
|
6115
|
+
}
|
|
6116
|
+
}), "HandbookPageModule");
|
|
6117
|
+
|
|
6118
|
+
// src/features/handbook/HandbookSectionModule.ts
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
// src/features/handbook/data/HandbookSection.ts
|
|
6122
|
+
var HandbookSection = class extends AbstractApiData {
|
|
6123
|
+
static {
|
|
6124
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookSection");
|
|
6125
|
+
}
|
|
6126
|
+
|
|
6127
|
+
|
|
6128
|
+
|
|
6129
|
+
|
|
6130
|
+
|
|
6131
|
+
|
|
6132
|
+
get key() {
|
|
6133
|
+
return _nullishCoalesce(this._key, () => ( ""));
|
|
6134
|
+
}
|
|
6135
|
+
get title() {
|
|
6136
|
+
return _nullishCoalesce(this._title, () => ( ""));
|
|
6137
|
+
}
|
|
6138
|
+
get summary() {
|
|
6139
|
+
return this._summary;
|
|
6140
|
+
}
|
|
6141
|
+
get order() {
|
|
6142
|
+
return _nullishCoalesce(this._order, () => ( ""));
|
|
6143
|
+
}
|
|
6144
|
+
get displayTitle() {
|
|
6145
|
+
return this._displayTitle;
|
|
6146
|
+
}
|
|
6147
|
+
get displaySummary() {
|
|
6148
|
+
return this._displaySummary;
|
|
6149
|
+
}
|
|
6150
|
+
rehydrate(data) {
|
|
6151
|
+
super.rehydrate(data);
|
|
6152
|
+
this._key = data.jsonApi.attributes.key;
|
|
6153
|
+
this._title = data.jsonApi.attributes.title;
|
|
6154
|
+
this._summary = data.jsonApi.attributes.summary;
|
|
6155
|
+
this._order = data.jsonApi.attributes.order;
|
|
6156
|
+
this._displayTitle = data.jsonApi.attributes.displayTitle;
|
|
6157
|
+
this._displaySummary = data.jsonApi.attributes.displaySummary;
|
|
6158
|
+
return this;
|
|
6159
|
+
}
|
|
6160
|
+
/**
|
|
6161
|
+
* Nothing calls this: sections are read-only over HTTP and written only by
|
|
6162
|
+
* the ingest. It exists because every model implements `createJsonApi()`, and
|
|
6163
|
+
* a model that throws on serialisation is a trap for the next writer.
|
|
6164
|
+
*/
|
|
6165
|
+
createJsonApi(data) {
|
|
6166
|
+
const response = {
|
|
6167
|
+
data: {
|
|
6168
|
+
type: Modules.HandbookSection.name,
|
|
6169
|
+
id: data.id,
|
|
6170
|
+
attributes: {},
|
|
6171
|
+
relationships: {}
|
|
6172
|
+
},
|
|
6173
|
+
included: []
|
|
6174
|
+
};
|
|
6175
|
+
if (data.key !== void 0) response.data.attributes.key = data.key;
|
|
6176
|
+
if (data.title !== void 0) response.data.attributes.title = data.title;
|
|
6177
|
+
if (data.summary !== void 0) response.data.attributes.summary = data.summary;
|
|
6178
|
+
if (data.order !== void 0) response.data.attributes.order = data.order;
|
|
6179
|
+
return response;
|
|
6180
|
+
}
|
|
6181
|
+
};
|
|
6182
|
+
|
|
6183
|
+
// src/features/handbook/HandbookSectionModule.ts
|
|
6184
|
+
var HandbookSectionModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
6185
|
+
moduleId: "6b0a2f74-1c53-4a0e-9c1d-2e7b4a9d6f30",
|
|
6186
|
+
name: "handbooksections",
|
|
6187
|
+
model: HandbookSection,
|
|
6188
|
+
icon: _lucidereact.LibraryIcon,
|
|
6189
|
+
inclusions: {
|
|
6190
|
+
lists: {
|
|
6191
|
+
// `HandbookSectionService.findMany` is the ONLY read of this resource and
|
|
6192
|
+
// it limits to these fields, so the translated halves have to be here:
|
|
6193
|
+
// without them every section heading on the contents page and in the
|
|
6194
|
+
// reader's navigator would stay English however good the translation is.
|
|
6195
|
+
fields: [
|
|
6196
|
+
createJsonApiInclusion("handbooksections", [
|
|
6197
|
+
"key",
|
|
6198
|
+
"title",
|
|
6199
|
+
"displayTitle",
|
|
6200
|
+
"summary",
|
|
6201
|
+
"displaySummary",
|
|
6202
|
+
"order"
|
|
6203
|
+
])
|
|
6204
|
+
]
|
|
6205
|
+
}
|
|
6206
|
+
}
|
|
6207
|
+
}), "HandbookSectionModule");
|
|
6208
|
+
|
|
6209
|
+
// src/features/handbook/HandbookThreadMessageModule.ts
|
|
6210
|
+
|
|
6211
|
+
|
|
6212
|
+
// src/features/handbook/data/HandbookThreadMessage.ts
|
|
6213
|
+
|
|
6214
|
+
var HandbookThreadMessage = (_class19 = class _HandbookThreadMessage extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this); }
|
|
6215
|
+
static {
|
|
6216
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThreadMessage");
|
|
6217
|
+
}
|
|
6218
|
+
|
|
6219
|
+
|
|
6220
|
+
|
|
6221
|
+
|
|
6222
|
+
__init40() {this._isOptimistic = false}
|
|
6223
|
+
get role() {
|
|
6224
|
+
return _nullishCoalesce(this._role, () => ( "assistant"));
|
|
6225
|
+
}
|
|
6226
|
+
get content() {
|
|
6227
|
+
return _nullishCoalesce(this._content, () => ( ""));
|
|
6228
|
+
}
|
|
6229
|
+
get position() {
|
|
6230
|
+
return _nullishCoalesce(this._position, () => ( 0));
|
|
6231
|
+
}
|
|
6232
|
+
get sources() {
|
|
6233
|
+
return _nullishCoalesce(this._sources, () => ( []));
|
|
6234
|
+
}
|
|
6235
|
+
/** The handbook agent returns no follow-ups. */
|
|
6236
|
+
get suggestedQuestions() {
|
|
6237
|
+
return [];
|
|
6238
|
+
}
|
|
6239
|
+
/** Token accounting is not billed against a handbook thread. */
|
|
6240
|
+
get inputTokens() {
|
|
6241
|
+
return void 0;
|
|
6242
|
+
}
|
|
6243
|
+
get outputTokens() {
|
|
6244
|
+
return void 0;
|
|
6245
|
+
}
|
|
6246
|
+
/** The handbook answers from pages, never from product entities. */
|
|
6247
|
+
get references() {
|
|
6248
|
+
return [];
|
|
6249
|
+
}
|
|
6250
|
+
/** Cited pages travel in `sources`, not as Chunk resources. */
|
|
6251
|
+
get citations() {
|
|
6252
|
+
return [];
|
|
6253
|
+
}
|
|
6254
|
+
/** Set only by `buildLocal`; a rehydrated message is always real. */
|
|
6255
|
+
get isOptimistic() {
|
|
6256
|
+
return this._isOptimistic;
|
|
6257
|
+
}
|
|
6258
|
+
/** There is no operator engine behind the handbook, so never an approval request. */
|
|
6259
|
+
get messageType() {
|
|
6260
|
+
return "text";
|
|
6261
|
+
}
|
|
6262
|
+
get actionId() {
|
|
6263
|
+
return void 0;
|
|
6264
|
+
}
|
|
6265
|
+
rehydrate(data) {
|
|
6266
|
+
super.rehydrate(data);
|
|
6267
|
+
const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
|
|
6268
|
+
this._role = attributes.role;
|
|
6269
|
+
this._content = attributes.content;
|
|
6270
|
+
this._position = typeof attributes.position === "number" ? attributes.position : Number(_nullishCoalesce(attributes.position, () => ( 0)));
|
|
6271
|
+
this._sources = Array.isArray(attributes.sources) ? attributes.sources : [];
|
|
6272
|
+
return this;
|
|
6273
|
+
}
|
|
6274
|
+
/**
|
|
6275
|
+
* The envelope `POST /handbookthreads/:id/handbookthreadmessages` accepts:
|
|
6276
|
+
* only the question. Role and position are derived server-side from the
|
|
6277
|
+
* thread, and there is no client-chosen id for the pair of messages the turn
|
|
6278
|
+
* creates.
|
|
6279
|
+
*
|
|
6280
|
+
* `handbookPageId` rides the same way `question` does, through this method
|
|
6281
|
+
* and never through `overridesJsonApiCreation`. It is written only when the
|
|
6282
|
+
* caller supplied it: the DTO takes it as optional, and sending an explicit
|
|
6283
|
+
* `null` would fail validation rather than mean "the whole manual".
|
|
6284
|
+
*/
|
|
6285
|
+
createJsonApi(data) {
|
|
6286
|
+
return {
|
|
6287
|
+
data: {
|
|
6288
|
+
type: Modules.HandbookThreadMessage.name,
|
|
6289
|
+
attributes: {
|
|
6290
|
+
question: data.question,
|
|
6291
|
+
...data.handbookPageId !== void 0 ? { handbookPageId: data.handbookPageId } : {}
|
|
6292
|
+
}
|
|
6293
|
+
},
|
|
6294
|
+
included: []
|
|
6295
|
+
};
|
|
6296
|
+
}
|
|
6297
|
+
/**
|
|
6298
|
+
* A message that exists only on the client: the optimistic user turn while
|
|
6299
|
+
* the agent runs, and the failure notice when it does not answer. Mirrors
|
|
6300
|
+
* `AssistantMessage.buildLocal`, which the stateless handbook surface used
|
|
6301
|
+
* before threads existed.
|
|
6302
|
+
*/
|
|
6303
|
+
static buildLocal(params) {
|
|
6304
|
+
const message = new _HandbookThreadMessage();
|
|
6305
|
+
message.rehydrate({
|
|
6306
|
+
jsonApi: {
|
|
6307
|
+
id: _uuid.v4.call(void 0, ),
|
|
6308
|
+
type: Modules.HandbookThreadMessage.name,
|
|
6309
|
+
attributes: {
|
|
6310
|
+
role: params.role,
|
|
6311
|
+
content: params.content,
|
|
6312
|
+
position: params.position
|
|
6313
|
+
}
|
|
6314
|
+
},
|
|
6315
|
+
included: []
|
|
6316
|
+
});
|
|
6317
|
+
message._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
|
|
6318
|
+
return message;
|
|
6319
|
+
}
|
|
6320
|
+
}, _class19);
|
|
6321
|
+
|
|
6322
|
+
// src/features/handbook/HandbookThreadMessageModule.ts
|
|
6323
|
+
var HandbookThreadMessageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
6324
|
+
moduleId: "bef354f2-70e1-4f4f-9953-10d3d74cad0c",
|
|
6325
|
+
name: "handbookthreadmessages",
|
|
6326
|
+
model: HandbookThreadMessage,
|
|
6327
|
+
icon: _lucidereact.MessageCircleQuestionIcon,
|
|
6328
|
+
inclusions: {
|
|
6329
|
+
lists: {
|
|
6330
|
+
fields: [createJsonApiInclusion("handbookthreadmessages", ["role", "content", "position", "sources"])]
|
|
6331
|
+
}
|
|
6332
|
+
}
|
|
6333
|
+
}), "HandbookThreadMessageModule");
|
|
6334
|
+
|
|
6335
|
+
// src/features/handbook/HandbookThreadModule.ts
|
|
6336
|
+
|
|
6337
|
+
|
|
6338
|
+
// src/features/handbook/data/HandbookThread.ts
|
|
6339
|
+
var HandbookThread = class extends AbstractApiData {
|
|
6340
|
+
static {
|
|
6341
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThread");
|
|
6342
|
+
}
|
|
6343
|
+
|
|
6344
|
+
|
|
6345
|
+
|
|
6346
|
+
get title() {
|
|
6347
|
+
return _nullishCoalesce(this._title, () => ( ""));
|
|
6348
|
+
}
|
|
6349
|
+
get messageCount() {
|
|
6350
|
+
return _nullishCoalesce(this._messageCount, () => ( 0));
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* The handbook runs one agent and has no engine choice, so nothing routes on
|
|
6354
|
+
* this. It exists because `AssistantInterface` declares it, which is what
|
|
6355
|
+
* lets the shared chat chrome take a handbook thread unchanged.
|
|
6356
|
+
*/
|
|
6357
|
+
get engine() {
|
|
6358
|
+
return void 0;
|
|
6359
|
+
}
|
|
6360
|
+
/** A handbook thread is never bound to a product resource. */
|
|
6361
|
+
get boundContentType() {
|
|
6362
|
+
return void 0;
|
|
6363
|
+
}
|
|
6364
|
+
get boundContentId() {
|
|
6365
|
+
return void 0;
|
|
6366
|
+
}
|
|
6367
|
+
get messages() {
|
|
6368
|
+
return _nullishCoalesce(this._messages, () => ( []));
|
|
6369
|
+
}
|
|
6370
|
+
rehydrate(data) {
|
|
6371
|
+
super.rehydrate(data);
|
|
6372
|
+
const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
|
|
6373
|
+
this._title = attributes.title;
|
|
6374
|
+
const fromMeta = _optionalChain([data, 'access', _142 => _142.jsonApi, 'access', _143 => _143.meta, 'optionalAccess', _144 => _144.messageCount]);
|
|
6375
|
+
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof attributes.messageCount === "number" ? attributes.messageCount : 0;
|
|
6376
|
+
const messages = this._readIncluded(
|
|
6377
|
+
data,
|
|
6378
|
+
"messages",
|
|
6379
|
+
Modules.HandbookThreadMessage
|
|
6380
|
+
);
|
|
6381
|
+
this._messages = Array.isArray(messages) ? messages : messages ? [messages] : [];
|
|
6382
|
+
if (this._updatedAt === void 0 && attributes.updatedAt !== void 0)
|
|
6383
|
+
this._updatedAt = new Date(attributes.updatedAt);
|
|
6384
|
+
if (this._createdAt === void 0 && attributes.createdAt !== void 0)
|
|
6385
|
+
this._createdAt = new Date(attributes.createdAt);
|
|
6386
|
+
return this;
|
|
6387
|
+
}
|
|
6388
|
+
/**
|
|
6389
|
+
* The envelope `POST /handbookthreads` accepts: the opening question. The
|
|
6390
|
+
* server derives the title from it, so no title is sent and no client id —
|
|
6391
|
+
* the thread's identity is the server's to mint.
|
|
6392
|
+
*
|
|
6393
|
+
* `handbookPageId` rides the same way `question` does, through this method
|
|
6394
|
+
* and never through `overridesJsonApiCreation`. It is written only when the
|
|
6395
|
+
* caller supplied it: the DTO takes it as optional, and sending an explicit
|
|
6396
|
+
* `null` would fail validation rather than mean "the whole manual".
|
|
6397
|
+
*/
|
|
6398
|
+
createJsonApi(data) {
|
|
6399
|
+
return {
|
|
6400
|
+
data: {
|
|
6401
|
+
type: Modules.HandbookThread.name,
|
|
6402
|
+
attributes: {
|
|
6403
|
+
question: data.question,
|
|
6404
|
+
...data.handbookPageId !== void 0 ? { handbookPageId: data.handbookPageId } : {}
|
|
6405
|
+
}
|
|
6406
|
+
},
|
|
6407
|
+
included: []
|
|
6408
|
+
};
|
|
6409
|
+
}
|
|
6410
|
+
/**
|
|
6411
|
+
* The envelope `PATCH /handbookthreads/:id` accepts. A dedicated method
|
|
6412
|
+
* rather than a branch inside `createJsonApi`: the rename sends the title and
|
|
6413
|
+
* nothing else, while a create sends the question and nothing else, and the
|
|
6414
|
+
* service must never hand-build either.
|
|
6415
|
+
*/
|
|
6416
|
+
createRenameJsonApi(params) {
|
|
6417
|
+
return {
|
|
6418
|
+
data: {
|
|
6419
|
+
type: Modules.HandbookThread.name,
|
|
6420
|
+
id: params.id,
|
|
6421
|
+
attributes: {
|
|
6422
|
+
title: params.title
|
|
6423
|
+
}
|
|
6424
|
+
},
|
|
6425
|
+
included: []
|
|
6426
|
+
};
|
|
6427
|
+
}
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
// src/features/handbook/HandbookThreadModule.ts
|
|
6431
|
+
var HandbookThreadModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
6432
|
+
moduleId: "aea692c4-7163-49bd-9ddc-1052cc06fa14",
|
|
6433
|
+
name: "handbookthreads",
|
|
6434
|
+
model: HandbookThread,
|
|
6435
|
+
icon: _lucidereact.MessagesSquareIcon,
|
|
6436
|
+
identifier: ["title"],
|
|
6437
|
+
inclusions: {
|
|
6438
|
+
lists: {
|
|
6439
|
+
fields: [createJsonApiInclusion("handbookthreads", ["title"])]
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
}), "HandbookThreadModule");
|
|
6443
|
+
|
|
6444
|
+
// src/features/handbook/data/handbookDisplay.ts
|
|
6445
|
+
function handbookPageTitle(page) {
|
|
6446
|
+
return _nullishCoalesce(page.displayTitle, () => ( page.title));
|
|
6447
|
+
}
|
|
6448
|
+
_chunk7QVYU63Ejs.__name.call(void 0, handbookPageTitle, "handbookPageTitle");
|
|
6449
|
+
function handbookPageSummary(page) {
|
|
6450
|
+
return _nullishCoalesce(page.displaySummary, () => ( page.summary));
|
|
6451
|
+
}
|
|
6452
|
+
_chunk7QVYU63Ejs.__name.call(void 0, handbookPageSummary, "handbookPageSummary");
|
|
6453
|
+
function handbookPageContent(page) {
|
|
6454
|
+
return _nullishCoalesce(page.displayContent, () => ( page.content));
|
|
6455
|
+
}
|
|
6456
|
+
_chunk7QVYU63Ejs.__name.call(void 0, handbookPageContent, "handbookPageContent");
|
|
6457
|
+
function handbookSectionTitle(section) {
|
|
6458
|
+
return _nullishCoalesce(section.displayTitle, () => ( section.title));
|
|
6459
|
+
}
|
|
6460
|
+
_chunk7QVYU63Ejs.__name.call(void 0, handbookSectionTitle, "handbookSectionTitle");
|
|
6461
|
+
function handbookSectionSummary(section) {
|
|
6462
|
+
return _nullishCoalesce(section.displaySummary, () => ( section.summary));
|
|
6463
|
+
}
|
|
6464
|
+
_chunk7QVYU63Ejs.__name.call(void 0, handbookSectionSummary, "handbookSectionSummary");
|
|
6465
|
+
|
|
6466
|
+
// src/features/handbook/data/HandbookPageFields.ts
|
|
6467
|
+
var HandbookPageFields = /* @__PURE__ */ ((HandbookPageFields2) => {
|
|
6468
|
+
HandbookPageFields2["handbookPageId"] = "handbookPageId";
|
|
6469
|
+
HandbookPageFields2["path"] = "path";
|
|
6470
|
+
HandbookPageFields2["title"] = "title";
|
|
6471
|
+
HandbookPageFields2["displayTitle"] = "displayTitle";
|
|
6472
|
+
HandbookPageFields2["section"] = "section";
|
|
6473
|
+
HandbookPageFields2["order"] = "order";
|
|
6474
|
+
HandbookPageFields2["summary"] = "summary";
|
|
6475
|
+
HandbookPageFields2["displaySummary"] = "displaySummary";
|
|
6476
|
+
HandbookPageFields2["displayContent"] = "displayContent";
|
|
6477
|
+
HandbookPageFields2["wordCount"] = "wordCount";
|
|
6478
|
+
HandbookPageFields2["aiStatus"] = "aiStatus";
|
|
6479
|
+
return HandbookPageFields2;
|
|
6480
|
+
})(HandbookPageFields || {});
|
|
6481
|
+
|
|
6482
|
+
// src/features/handbook/data/HandbookPageService.ts
|
|
6483
|
+
var HandbookPageService = class extends AbstractService {
|
|
6484
|
+
static {
|
|
6485
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookPageService");
|
|
6486
|
+
}
|
|
6487
|
+
/**
|
|
6488
|
+
* `next` / `prev` are not optional extras: `useDataListRetriever` drives
|
|
6489
|
+
* pagination by handing the cursor back here, so a findMany that drops them
|
|
6490
|
+
* renders exactly one page and no navigation, however many rows exist.
|
|
6491
|
+
* Mirrors HowToService.findMany.
|
|
6492
|
+
*/
|
|
6493
|
+
static async findMany(params = {}) {
|
|
6494
|
+
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookPage });
|
|
6495
|
+
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6496
|
+
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6497
|
+
if (_optionalChain([Modules, 'access', _145 => _145.HandbookPage, 'access', _146 => _146.inclusions, 'optionalAccess', _147 => _147.lists, 'optionalAccess', _148 => _148.fields]))
|
|
6498
|
+
endpoint.limitToFields(Modules.HandbookPage.inclusions.lists.fields);
|
|
6499
|
+
if (_optionalChain([Modules, 'access', _149 => _149.HandbookPage, 'access', _150 => _150.inclusions, 'optionalAccess', _151 => _151.lists, 'optionalAccess', _152 => _152.types]))
|
|
6500
|
+
endpoint.limitToType(Modules.HandbookPage.inclusions.lists.types);
|
|
6501
|
+
return this.callApi({
|
|
6502
|
+
type: Modules.HandbookPage,
|
|
6503
|
+
method: "GET" /* GET */,
|
|
6504
|
+
endpoint: endpoint.generate(),
|
|
6505
|
+
next: params.next
|
|
6506
|
+
});
|
|
6507
|
+
}
|
|
6508
|
+
static async findOne(params) {
|
|
6509
|
+
return this.callApi({
|
|
6510
|
+
type: Modules.HandbookPage,
|
|
6511
|
+
method: "GET" /* GET */,
|
|
6512
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookPage, id: params.id }).generate()
|
|
6513
|
+
});
|
|
6514
|
+
}
|
|
6515
|
+
/** POST /handbookpages/sync — replies 204; the caller refetches the list. */
|
|
6516
|
+
static async sync() {
|
|
6517
|
+
await this.callApi({
|
|
6518
|
+
type: Modules.HandbookPage,
|
|
6519
|
+
method: "POST" /* POST */,
|
|
6520
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookPage, id: "sync" }).generate()
|
|
6521
|
+
});
|
|
6522
|
+
}
|
|
6523
|
+
static async delete(params) {
|
|
6524
|
+
await this.callApi({
|
|
6525
|
+
type: Modules.HandbookPage,
|
|
6526
|
+
method: "DELETE" /* DELETE */,
|
|
6527
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookPage, id: params.id }).generate()
|
|
6528
|
+
});
|
|
6529
|
+
}
|
|
6530
|
+
};
|
|
6531
|
+
|
|
6532
|
+
// src/features/handbook/data/HandbookSectionService.ts
|
|
6533
|
+
var HandbookSectionService = class extends AbstractService {
|
|
6534
|
+
static {
|
|
6535
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookSectionService");
|
|
6536
|
+
}
|
|
6537
|
+
/**
|
|
6538
|
+
* Every section in one read, always.
|
|
6539
|
+
*
|
|
6540
|
+
* There are as many sections as an application has documentation directories
|
|
6541
|
+
* — ten or so — so this takes no `fetchAll` argument and no cursor: unlike
|
|
6542
|
+
* the page list, nothing here is ever a second page, and a caller that could
|
|
6543
|
+
* ask for one page of sections would only be able to get it wrong.
|
|
6544
|
+
*/
|
|
6545
|
+
static async findMany() {
|
|
6546
|
+
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookSection });
|
|
6547
|
+
endpoint.addAdditionalParam("fetchAll", "true");
|
|
6548
|
+
if (_optionalChain([Modules, 'access', _153 => _153.HandbookSection, 'access', _154 => _154.inclusions, 'optionalAccess', _155 => _155.lists, 'optionalAccess', _156 => _156.fields]))
|
|
6549
|
+
endpoint.limitToFields(Modules.HandbookSection.inclusions.lists.fields);
|
|
6550
|
+
return this.callApi({
|
|
6551
|
+
type: Modules.HandbookSection,
|
|
6552
|
+
method: "GET" /* GET */,
|
|
6553
|
+
endpoint: endpoint.generate()
|
|
6554
|
+
});
|
|
6555
|
+
}
|
|
6556
|
+
};
|
|
6557
|
+
|
|
6558
|
+
// src/features/handbook/data/HandbookThreadMessageService.ts
|
|
6559
|
+
var HandbookThreadMessageService = class extends AbstractService {
|
|
6560
|
+
static {
|
|
6561
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThreadMessageService");
|
|
6562
|
+
}
|
|
6563
|
+
/**
|
|
6564
|
+
* Appends one question to an existing thread and runs the agent turn.
|
|
6565
|
+
*
|
|
6566
|
+
* It returns nothing on purpose: the caller reads the turn back with
|
|
6567
|
+
* `HandbookThreadService.findOne`, which is the one endpoint the contract
|
|
6568
|
+
* guarantees side-loads the full message list. That keeps a single code path
|
|
6569
|
+
* for "load the thread after a mutation" — the same one the sidebar's select
|
|
6570
|
+
* uses — instead of two ways of arriving at the transcript.
|
|
6571
|
+
*
|
|
6572
|
+
* The API answers 400 when the installation has no usable AI configuration
|
|
6573
|
+
* and 403 for a non-administrator; both reach the caller as a thrown error.
|
|
6574
|
+
*/
|
|
6575
|
+
static async ask(params) {
|
|
6576
|
+
await this.callApi({
|
|
6577
|
+
type: Modules.HandbookThreadMessage,
|
|
6578
|
+
method: "POST" /* POST */,
|
|
6579
|
+
endpoint: new EndpointCreator({
|
|
6580
|
+
endpoint: Modules.HandbookThread,
|
|
6581
|
+
id: params.threadId,
|
|
6582
|
+
childEndpoint: Modules.HandbookThreadMessage
|
|
6583
|
+
}).generate(),
|
|
6584
|
+
input: { id: params.id, question: params.question, handbookPageId: params.handbookPageId },
|
|
6585
|
+
suppressGlobalError: true
|
|
6586
|
+
});
|
|
6587
|
+
}
|
|
6588
|
+
};
|
|
6589
|
+
|
|
6590
|
+
// src/features/handbook/data/HandbookThreadService.ts
|
|
6591
|
+
var HandbookThreadService = class extends AbstractService {
|
|
6592
|
+
static {
|
|
6593
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThreadService");
|
|
6594
|
+
}
|
|
6595
|
+
/**
|
|
6596
|
+
* `next` / `prev` are not optional extras: `useDataListRetriever` drives
|
|
6597
|
+
* pagination by handing the cursor back here, so a findMany that drops them
|
|
6598
|
+
* renders exactly one page and no navigation, however many rows exist.
|
|
6599
|
+
* Mirrors HowToService.findMany.
|
|
6600
|
+
*/
|
|
6601
|
+
static async findMany(params = {}) {
|
|
6602
|
+
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookThread });
|
|
6603
|
+
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6604
|
+
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6605
|
+
if (_optionalChain([Modules, 'access', _157 => _157.HandbookThread, 'access', _158 => _158.inclusions, 'optionalAccess', _159 => _159.lists, 'optionalAccess', _160 => _160.fields]))
|
|
6606
|
+
endpoint.limitToFields(Modules.HandbookThread.inclusions.lists.fields);
|
|
6607
|
+
if (_optionalChain([Modules, 'access', _161 => _161.HandbookThread, 'access', _162 => _162.inclusions, 'optionalAccess', _163 => _163.lists, 'optionalAccess', _164 => _164.types]))
|
|
6608
|
+
endpoint.limitToType(Modules.HandbookThread.inclusions.lists.types);
|
|
6609
|
+
return this.callApi({
|
|
6610
|
+
type: Modules.HandbookThread,
|
|
6611
|
+
method: "GET" /* GET */,
|
|
6612
|
+
endpoint: endpoint.generate(),
|
|
6613
|
+
next: params.next
|
|
6614
|
+
});
|
|
6615
|
+
}
|
|
6616
|
+
/** Returns the thread with its messages side-loaded — the sidebar's select. */
|
|
6617
|
+
static async findOne(params) {
|
|
6618
|
+
return this.callApi({
|
|
6619
|
+
type: Modules.HandbookThread,
|
|
6620
|
+
method: "GET" /* GET */,
|
|
6621
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookThread, id: params.id }).generate()
|
|
6622
|
+
});
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* Opens a thread with its first question. The response is the thread (title
|
|
6626
|
+
* included); the messages are read back with `findOne`, because only the
|
|
6627
|
+
* single-resource endpoint side-loads them.
|
|
6628
|
+
*
|
|
6629
|
+
* The API answers 400 when the installation has no usable AI configuration
|
|
6630
|
+
* and 403 for a non-administrator; both reach the caller as a thrown error.
|
|
6631
|
+
*
|
|
6632
|
+
* `HandbookThreadInput.handbookPageId` scopes retrieval to one page. It rides
|
|
6633
|
+
* through the model's `createJsonApi()`, exactly as `question` does — there is
|
|
6634
|
+
* no `overridesJsonApiCreation` on this path.
|
|
6635
|
+
*/
|
|
6636
|
+
static async create(params) {
|
|
6637
|
+
return this.callApi({
|
|
6638
|
+
type: Modules.HandbookThread,
|
|
6639
|
+
method: "POST" /* POST */,
|
|
6640
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookThread }).generate(),
|
|
6641
|
+
input: params,
|
|
6642
|
+
suppressGlobalError: true
|
|
6643
|
+
});
|
|
6644
|
+
}
|
|
6645
|
+
static async rename(params) {
|
|
6646
|
+
const thread = new HandbookThread();
|
|
6647
|
+
await this.callApi({
|
|
6648
|
+
type: Modules.HandbookThread,
|
|
6649
|
+
method: "PATCH" /* PATCH */,
|
|
6650
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookThread, id: params.id }).generate(),
|
|
6651
|
+
input: thread.createRenameJsonApi({ id: params.id, title: params.title }),
|
|
6652
|
+
overridesJsonApiCreation: true
|
|
6653
|
+
});
|
|
6654
|
+
}
|
|
6655
|
+
static async delete(params) {
|
|
6656
|
+
await this.callApi({
|
|
6657
|
+
type: Modules.HandbookThread,
|
|
6658
|
+
method: "DELETE" /* DELETE */,
|
|
6659
|
+
endpoint: new EndpointCreator({ endpoint: Modules.HandbookThread, id: params.id }).generate()
|
|
6660
|
+
});
|
|
6661
|
+
}
|
|
6662
|
+
};
|
|
6663
|
+
|
|
5983
6664
|
// src/features/assistant/AssistantModule.ts
|
|
5984
6665
|
|
|
5985
6666
|
|
|
@@ -6010,15 +6691,15 @@ var Assistant = class extends AbstractApiData {
|
|
|
6010
6691
|
}
|
|
6011
6692
|
rehydrate(data) {
|
|
6012
6693
|
super.rehydrate(data);
|
|
6013
|
-
this._title = _optionalChain([data, 'access',
|
|
6014
|
-
this._engine = _optionalChain([data, 'access',
|
|
6015
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
6016
|
-
const fromAttrs = _optionalChain([data, 'access',
|
|
6694
|
+
this._title = _optionalChain([data, 'access', _165 => _165.jsonApi, 'access', _166 => _166.attributes, 'optionalAccess', _167 => _167.title]);
|
|
6695
|
+
this._engine = _optionalChain([data, 'access', _168 => _168.jsonApi, 'access', _169 => _169.attributes, 'optionalAccess', _170 => _170.engine]);
|
|
6696
|
+
const fromMeta = _optionalChain([data, 'access', _171 => _171.jsonApi, 'access', _172 => _172.meta, 'optionalAccess', _173 => _173.messageCount]);
|
|
6697
|
+
const fromAttrs = _optionalChain([data, 'access', _174 => _174.jsonApi, 'access', _175 => _175.attributes, 'optionalAccess', _176 => _176.messageCount]);
|
|
6017
6698
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
|
|
6018
|
-
const contentLinkage = _optionalChain([data, 'access',
|
|
6699
|
+
const contentLinkage = _optionalChain([data, 'access', _177 => _177.jsonApi, 'access', _178 => _178.relationships, 'optionalAccess', _179 => _179.content, 'optionalAccess', _180 => _180.data]);
|
|
6019
6700
|
const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
|
|
6020
|
-
this._boundContentType = _optionalChain([boundContent, 'optionalAccess',
|
|
6021
|
-
this._boundContentId = _optionalChain([boundContent, 'optionalAccess',
|
|
6701
|
+
this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _181 => _181.type]);
|
|
6702
|
+
this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _182 => _182.id]);
|
|
6022
6703
|
return this;
|
|
6023
6704
|
}
|
|
6024
6705
|
createJsonApi(data) {
|
|
@@ -6033,7 +6714,9 @@ var Assistant = class extends AbstractApiData {
|
|
|
6033
6714
|
content: data.contentBlocks !== void 0 ? JSON.stringify(data.contentBlocks) : data.firstMessage,
|
|
6034
6715
|
...data.title !== void 0 ? { title: data.title } : {},
|
|
6035
6716
|
...data.howToMode !== void 0 ? { howToMode: data.howToMode } : {},
|
|
6036
|
-
...data.limitToHowToId !== void 0 ? { limitToHowToId: data.limitToHowToId } : {}
|
|
6717
|
+
...data.limitToHowToId !== void 0 ? { limitToHowToId: data.limitToHowToId } : {},
|
|
6718
|
+
...data.handbookMode !== void 0 ? { handbookMode: data.handbookMode } : {},
|
|
6719
|
+
...data.limitToHandbookPageId !== void 0 ? { limitToHandbookPageId: data.limitToHandbookPageId } : {}
|
|
6037
6720
|
},
|
|
6038
6721
|
...data.boundContent !== void 0 ? {
|
|
6039
6722
|
relationships: {
|
|
@@ -6074,7 +6757,7 @@ function resolveReferenceableModules() {
|
|
|
6074
6757
|
_chunk7QVYU63Ejs.__name.call(void 0, resolveReferenceableModules, "resolveReferenceableModules");
|
|
6075
6758
|
|
|
6076
6759
|
// src/features/assistant-message/data/AssistantMessage.ts
|
|
6077
|
-
var AssistantMessage = (
|
|
6760
|
+
var AssistantMessage = (_class20 = class _AssistantMessage extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this); }
|
|
6078
6761
|
static {
|
|
6079
6762
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AssistantMessage");
|
|
6080
6763
|
}
|
|
@@ -6086,7 +6769,7 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
|
|
|
6086
6769
|
|
|
6087
6770
|
|
|
6088
6771
|
|
|
6089
|
-
|
|
6772
|
+
__init41() {this._isOptimistic = false}
|
|
6090
6773
|
|
|
6091
6774
|
|
|
6092
6775
|
get role() {
|
|
@@ -6132,11 +6815,11 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
|
|
|
6132
6815
|
this._inputTokens = attrs.inputTokens;
|
|
6133
6816
|
this._outputTokens = attrs.outputTokens;
|
|
6134
6817
|
this._messageType = attrs.messageType;
|
|
6135
|
-
const actionRelationship = _optionalChain([data, 'access',
|
|
6136
|
-
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access',
|
|
6818
|
+
const actionRelationship = _optionalChain([data, 'access', _183 => _183.jsonApi, 'access', _184 => _184.relationships, 'optionalAccess', _185 => _185.action, 'optionalAccess', _186 => _186.data]);
|
|
6819
|
+
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _187 => _187[0], 'optionalAccess', _188 => _188.id]) : _optionalChain([actionRelationship, 'optionalAccess', _189 => _189.id]);
|
|
6137
6820
|
const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
|
|
6138
6821
|
this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
|
|
6139
|
-
if (_optionalChain([data, 'access',
|
|
6822
|
+
if (_optionalChain([data, 'access', _190 => _190.jsonApi, 'access', _191 => _191.relationships, 'optionalAccess', _192 => _192.citations, 'optionalAccess', _193 => _193.data])) {
|
|
6140
6823
|
const citations = this._readIncludedWithMeta(
|
|
6141
6824
|
data,
|
|
6142
6825
|
"citations",
|
|
@@ -6184,18 +6867,32 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
|
|
|
6184
6867
|
// stored markdown from it.
|
|
6185
6868
|
content: params.contentBlocks !== void 0 ? JSON.stringify(params.contentBlocks) : params.content,
|
|
6186
6869
|
...params.howToMode !== void 0 ? { howToMode: params.howToMode } : {},
|
|
6187
|
-
...params.limitToHowToId !== void 0 ? { limitToHowToId: params.limitToHowToId } : {}
|
|
6870
|
+
...params.limitToHowToId !== void 0 ? { limitToHowToId: params.limitToHowToId } : {},
|
|
6871
|
+
...params.handbookMode !== void 0 ? { handbookMode: params.handbookMode } : {},
|
|
6872
|
+
...params.limitToHandbookPageId !== void 0 ? { limitToHandbookPageId: params.limitToHandbookPageId } : {}
|
|
6188
6873
|
}
|
|
6189
6874
|
}
|
|
6190
6875
|
};
|
|
6191
6876
|
}
|
|
6192
6877
|
static buildOptimistic(params) {
|
|
6878
|
+
return _AssistantMessage.buildLocal({ ...params, role: "user", isOptimistic: true });
|
|
6879
|
+
}
|
|
6880
|
+
/**
|
|
6881
|
+
* A message that exists only on the client, for a surface that renders the
|
|
6882
|
+
* chat presentation without persisting a thread.
|
|
6883
|
+
*
|
|
6884
|
+
* `buildOptimistic` is the user-turn case and delegates here. The handbook
|
|
6885
|
+
* ask surface is the other caller: it has no Assistant and no stored
|
|
6886
|
+
* messages, but it renders through MessageList/MessageItem like every other
|
|
6887
|
+
* chat in the product, so it needs both roles.
|
|
6888
|
+
*/
|
|
6889
|
+
static buildLocal(params) {
|
|
6193
6890
|
const msg = new _AssistantMessage();
|
|
6194
6891
|
const jsonApi = {
|
|
6195
6892
|
id: _uuid.v4.call(void 0, ),
|
|
6196
6893
|
type: Modules.AssistantMessage.name,
|
|
6197
6894
|
attributes: {
|
|
6198
|
-
role:
|
|
6895
|
+
role: params.role,
|
|
6199
6896
|
content: params.content,
|
|
6200
6897
|
position: params.position
|
|
6201
6898
|
}
|
|
@@ -6206,10 +6903,10 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
|
|
|
6206
6903
|
};
|
|
6207
6904
|
}
|
|
6208
6905
|
msg.rehydrate({ jsonApi, included: [] });
|
|
6209
|
-
msg._isOptimistic =
|
|
6906
|
+
msg._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
|
|
6210
6907
|
return msg;
|
|
6211
6908
|
}
|
|
6212
|
-
},
|
|
6909
|
+
}, _class20);
|
|
6213
6910
|
|
|
6214
6911
|
// src/features/assistant/data/AssistantService.ts
|
|
6215
6912
|
var AssistantService = class extends AbstractService {
|
|
@@ -6282,6 +6979,8 @@ var AssistantService = class extends AbstractService {
|
|
|
6282
6979
|
content: params.content,
|
|
6283
6980
|
howToMode: params.howToMode,
|
|
6284
6981
|
limitToHowToId: params.limitToHowToId,
|
|
6982
|
+
handbookMode: params.handbookMode,
|
|
6983
|
+
limitToHandbookPageId: params.limitToHandbookPageId,
|
|
6285
6984
|
contentBlocks: params.contentBlocks
|
|
6286
6985
|
}),
|
|
6287
6986
|
overridesJsonApiCreation: true
|
|
@@ -6376,9 +7075,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
6376
7075
|
id: params.assistantId,
|
|
6377
7076
|
childEndpoint: Modules.AssistantMessage
|
|
6378
7077
|
});
|
|
6379
|
-
if (_optionalChain([Modules, 'access',
|
|
7078
|
+
if (_optionalChain([Modules, 'access', _194 => _194.AssistantMessage, 'access', _195 => _195.inclusions, 'optionalAccess', _196 => _196.lists, 'optionalAccess', _197 => _197.fields]))
|
|
6380
7079
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
6381
|
-
if (_optionalChain([Modules, 'access',
|
|
7080
|
+
if (_optionalChain([Modules, 'access', _198 => _198.AssistantMessage, 'access', _199 => _199.inclusions, 'optionalAccess', _200 => _200.lists, 'optionalAccess', _201 => _201.types]))
|
|
6382
7081
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
6383
7082
|
return this.callApi({
|
|
6384
7083
|
type: Modules.AssistantMessage,
|
|
@@ -6392,9 +7091,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
6392
7091
|
endpoint: Modules.AssistantMessage,
|
|
6393
7092
|
id: params.id
|
|
6394
7093
|
});
|
|
6395
|
-
if (_optionalChain([Modules, 'access',
|
|
7094
|
+
if (_optionalChain([Modules, 'access', _202 => _202.AssistantMessage, 'access', _203 => _203.inclusions, 'optionalAccess', _204 => _204.lists, 'optionalAccess', _205 => _205.fields]))
|
|
6396
7095
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
6397
|
-
if (_optionalChain([Modules, 'access',
|
|
7096
|
+
if (_optionalChain([Modules, 'access', _206 => _206.AssistantMessage, 'access', _207 => _207.inclusions, 'optionalAccess', _208 => _208.lists, 'optionalAccess', _209 => _209.types]))
|
|
6398
7097
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
6399
7098
|
return this.callApi({
|
|
6400
7099
|
type: Modules.AssistantMessage,
|
|
@@ -6600,13 +7299,13 @@ var ChunkModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
6600
7299
|
}), "ChunkModule");
|
|
6601
7300
|
|
|
6602
7301
|
// src/features/feature/data/feature.ts
|
|
6603
|
-
var Feature = (
|
|
7302
|
+
var Feature = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init42.call(this); }
|
|
6604
7303
|
static {
|
|
6605
7304
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
|
|
6606
7305
|
}
|
|
6607
7306
|
|
|
6608
7307
|
|
|
6609
|
-
|
|
7308
|
+
__init42() {this._modules = []}
|
|
6610
7309
|
get name() {
|
|
6611
7310
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
6612
7311
|
}
|
|
@@ -6623,7 +7322,7 @@ var Feature = (_class20 = class extends AbstractApiData {constructor(...args17)
|
|
|
6623
7322
|
this._modules = this._readIncluded(data, `modules`, Modules.Module);
|
|
6624
7323
|
return this;
|
|
6625
7324
|
}
|
|
6626
|
-
},
|
|
7325
|
+
}, _class21);
|
|
6627
7326
|
|
|
6628
7327
|
// src/features/feature/data/feature.service.ts
|
|
6629
7328
|
var FeatureService = class extends AbstractService {
|
|
@@ -6719,10 +7418,10 @@ var Notification = class extends AbstractApiData {
|
|
|
6719
7418
|
this._message = data.jsonApi.attributes.message;
|
|
6720
7419
|
this._actionUrl = data.jsonApi.attributes.actionUrl;
|
|
6721
7420
|
const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
|
|
6722
|
-
const actorType = _optionalChain([rels, 'access',
|
|
7421
|
+
const actorType = _optionalChain([rels, 'access', _210 => _210.actor, 'optionalAccess', _211 => _211.data, 'optionalAccess', _212 => _212.type]);
|
|
6723
7422
|
this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
|
|
6724
|
-
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access',
|
|
6725
|
-
const subjectType = subjectName ? _optionalChain([rels, 'access',
|
|
7423
|
+
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _213 => _213[name], 'optionalAccess', _214 => _214.data, 'optionalAccess', _215 => _215.type]));
|
|
7424
|
+
const subjectType = subjectName ? _optionalChain([rels, 'access', _216 => _216[subjectName], 'optionalAccess', _217 => _217.data, 'optionalAccess', _218 => _218.type]) : void 0;
|
|
6726
7425
|
this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
|
|
6727
7426
|
return this;
|
|
6728
7427
|
}
|
|
@@ -7083,7 +7782,7 @@ var S3Service = class extends AbstractService {
|
|
|
7083
7782
|
};
|
|
7084
7783
|
|
|
7085
7784
|
// src/features/user/data/user.ts
|
|
7086
|
-
var User = (
|
|
7785
|
+
var User = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init43.call(this);_class22.prototype.__init44.call(this);_class22.prototype.__init45.call(this); }
|
|
7087
7786
|
static {
|
|
7088
7787
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "User");
|
|
7089
7788
|
}
|
|
@@ -7097,12 +7796,12 @@ var User = (_class21 = class extends AbstractApiData {constructor(...args18) { s
|
|
|
7097
7796
|
|
|
7098
7797
|
|
|
7099
7798
|
|
|
7100
|
-
|
|
7799
|
+
__init43() {this._twoFactorEnabled = false}
|
|
7101
7800
|
|
|
7102
7801
|
|
|
7103
|
-
|
|
7802
|
+
__init44() {this._roles = []}
|
|
7104
7803
|
|
|
7105
|
-
|
|
7804
|
+
__init45() {this._modules = []}
|
|
7106
7805
|
get searchResult() {
|
|
7107
7806
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
7108
7807
|
}
|
|
@@ -7213,7 +7912,7 @@ var User = (_class21 = class extends AbstractApiData {constructor(...args18) { s
|
|
|
7213
7912
|
}
|
|
7214
7913
|
return response;
|
|
7215
7914
|
}
|
|
7216
|
-
},
|
|
7915
|
+
}, _class22);
|
|
7217
7916
|
|
|
7218
7917
|
// src/features/user/data/user.fields.ts
|
|
7219
7918
|
var UserFields = /* @__PURE__ */ ((UserFields2) => {
|
|
@@ -7283,8 +7982,8 @@ var UserService = class extends AbstractService {
|
|
|
7283
7982
|
id: params.id,
|
|
7284
7983
|
childEndpoint: "user-relevance"
|
|
7285
7984
|
});
|
|
7286
|
-
if (_optionalChain([Modules, 'access',
|
|
7287
|
-
if (_optionalChain([Modules, 'access',
|
|
7985
|
+
if (_optionalChain([Modules, 'access', _219 => _219.User, 'access', _220 => _220.inclusions, 'optionalAccess', _221 => _221.lists, 'optionalAccess', _222 => _222.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
7986
|
+
if (_optionalChain([Modules, 'access', _223 => _223.User, 'access', _224 => _224.inclusions, 'optionalAccess', _225 => _225.lists, 'optionalAccess', _226 => _226.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
7288
7987
|
return this.callApi({
|
|
7289
7988
|
type: Modules.User,
|
|
7290
7989
|
method: "GET" /* GET */,
|
|
@@ -7454,18 +8153,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
7454
8153
|
}), "UserModule");
|
|
7455
8154
|
|
|
7456
8155
|
// src/features/oauth/data/oauth.ts
|
|
7457
|
-
var OAuthClient = (
|
|
8156
|
+
var OAuthClient = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init46.call(this);_class23.prototype.__init47.call(this);_class23.prototype.__init48.call(this);_class23.prototype.__init49.call(this);_class23.prototype.__init50.call(this); }
|
|
7458
8157
|
static {
|
|
7459
8158
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
|
|
7460
8159
|
}
|
|
7461
8160
|
|
|
7462
8161
|
|
|
7463
8162
|
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
8163
|
+
__init46() {this._redirectUris = []}
|
|
8164
|
+
__init47() {this._allowedScopes = []}
|
|
8165
|
+
__init48() {this._allowedGrantTypes = []}
|
|
8166
|
+
__init49() {this._isConfidential = true}
|
|
8167
|
+
__init50() {this._isActive = true}
|
|
7469
8168
|
get clientId() {
|
|
7470
8169
|
return _nullishCoalesce(this._clientId, () => ( this.id));
|
|
7471
8170
|
}
|
|
@@ -7521,7 +8220,7 @@ var OAuthClient = (_class22 = class extends AbstractApiData {constructor(...args
|
|
|
7521
8220
|
if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
|
|
7522
8221
|
return response;
|
|
7523
8222
|
}
|
|
7524
|
-
},
|
|
8223
|
+
}, _class23);
|
|
7525
8224
|
|
|
7526
8225
|
// src/features/oauth/oauth.module.ts
|
|
7527
8226
|
var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -7546,7 +8245,7 @@ var OAuthService = class extends AbstractService {
|
|
|
7546
8245
|
type: Modules.OAuth,
|
|
7547
8246
|
method: "GET" /* GET */,
|
|
7548
8247
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
7549
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
8248
|
+
next: _optionalChain([params, 'optionalAccess', _227 => _227.next])
|
|
7550
8249
|
});
|
|
7551
8250
|
}
|
|
7552
8251
|
/**
|
|
@@ -7572,7 +8271,7 @@ var OAuthService = class extends AbstractService {
|
|
|
7572
8271
|
});
|
|
7573
8272
|
return {
|
|
7574
8273
|
client: result.data,
|
|
7575
|
-
clientSecret: _optionalChain([result, 'access',
|
|
8274
|
+
clientSecret: _optionalChain([result, 'access', _228 => _228.meta, 'optionalAccess', _229 => _229.clientSecret])
|
|
7576
8275
|
};
|
|
7577
8276
|
}
|
|
7578
8277
|
/**
|
|
@@ -7611,7 +8310,7 @@ var OAuthService = class extends AbstractService {
|
|
|
7611
8310
|
}).generate()
|
|
7612
8311
|
});
|
|
7613
8312
|
return {
|
|
7614
|
-
clientSecret: _optionalChain([result, 'access',
|
|
8313
|
+
clientSecret: _optionalChain([result, 'access', _230 => _230.meta, 'optionalAccess', _231 => _231.clientSecret])
|
|
7615
8314
|
};
|
|
7616
8315
|
}
|
|
7617
8316
|
// ==========================================
|
|
@@ -7655,7 +8354,7 @@ var OAuthService = class extends AbstractService {
|
|
|
7655
8354
|
overridesJsonApiCreation: true
|
|
7656
8355
|
});
|
|
7657
8356
|
return {
|
|
7658
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
8357
|
+
redirectUrl: _optionalChain([result, 'access', _232 => _232.meta, 'optionalAccess', _233 => _233.redirectUrl])
|
|
7659
8358
|
};
|
|
7660
8359
|
}
|
|
7661
8360
|
/**
|
|
@@ -7675,7 +8374,7 @@ var OAuthService = class extends AbstractService {
|
|
|
7675
8374
|
overridesJsonApiCreation: true
|
|
7676
8375
|
});
|
|
7677
8376
|
return {
|
|
7678
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
8377
|
+
redirectUrl: _optionalChain([result, 'access', _234 => _234.meta, 'optionalAccess', _235 => _235.redirectUrl])
|
|
7679
8378
|
};
|
|
7680
8379
|
}
|
|
7681
8380
|
};
|
|
@@ -7735,17 +8434,17 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
|
|
|
7735
8434
|
var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
|
|
7736
8435
|
|
|
7737
8436
|
// src/features/waitlist/data/Waitlist.ts
|
|
7738
|
-
var Waitlist = (
|
|
8437
|
+
var Waitlist = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init51.call(this);_class24.prototype.__init52.call(this); }
|
|
7739
8438
|
static {
|
|
7740
8439
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
|
|
7741
8440
|
}
|
|
7742
8441
|
|
|
7743
|
-
|
|
8442
|
+
__init51() {this._gdprConsent = false}
|
|
7744
8443
|
|
|
7745
8444
|
|
|
7746
8445
|
|
|
7747
8446
|
|
|
7748
|
-
|
|
8447
|
+
__init52() {this._status = "pending"}
|
|
7749
8448
|
|
|
7750
8449
|
|
|
7751
8450
|
|
|
@@ -7819,7 +8518,7 @@ var Waitlist = (_class23 = class extends AbstractApiData {constructor(...args20)
|
|
|
7819
8518
|
}
|
|
7820
8519
|
return response;
|
|
7821
8520
|
}
|
|
7822
|
-
},
|
|
8521
|
+
}, _class24);
|
|
7823
8522
|
|
|
7824
8523
|
// src/features/waitlist/data/WaitlistService.ts
|
|
7825
8524
|
var WaitlistService = class extends AbstractService {
|
|
@@ -7859,15 +8558,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
7859
8558
|
*/
|
|
7860
8559
|
static async findMany(params) {
|
|
7861
8560
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
7862
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
7863
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
7864
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
8561
|
+
if (_optionalChain([params, 'optionalAccess', _236 => _236.status])) endpoint.addAdditionalParam("status", params.status);
|
|
8562
|
+
if (_optionalChain([params, 'optionalAccess', _237 => _237.search])) endpoint.addAdditionalParam("search", params.search);
|
|
8563
|
+
if (_optionalChain([params, 'optionalAccess', _238 => _238.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
7865
8564
|
return this.callApi({
|
|
7866
8565
|
type: Modules.Waitlist,
|
|
7867
8566
|
method: "GET" /* GET */,
|
|
7868
8567
|
endpoint: endpoint.generate(),
|
|
7869
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
7870
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
8568
|
+
next: _optionalChain([params, 'optionalAccess', _239 => _239.next]),
|
|
8569
|
+
previous: _optionalChain([params, 'optionalAccess', _240 => _240.prev])
|
|
7871
8570
|
});
|
|
7872
8571
|
}
|
|
7873
8572
|
/**
|
|
@@ -7935,10 +8634,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
7935
8634
|
method: "GET" /* GET */,
|
|
7936
8635
|
endpoint: endpoint.generate()
|
|
7937
8636
|
});
|
|
7938
|
-
const attributes = _optionalChain([response, 'access',
|
|
8637
|
+
const attributes = _optionalChain([response, 'access', _241 => _241.data, 'optionalAccess', _242 => _242._jsonApi, 'optionalAccess', _243 => _243.attributes]);
|
|
7939
8638
|
return {
|
|
7940
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
7941
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
8639
|
+
email: _optionalChain([attributes, 'optionalAccess', _244 => _244.email]),
|
|
8640
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _245 => _245.valid]), () => ( false))
|
|
7942
8641
|
};
|
|
7943
8642
|
} catch (_error) {
|
|
7944
8643
|
return null;
|
|
@@ -7947,15 +8646,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
7947
8646
|
};
|
|
7948
8647
|
|
|
7949
8648
|
// src/features/waitlist/data/waitlist-stats.ts
|
|
7950
|
-
var WaitlistStats = (
|
|
8649
|
+
var WaitlistStats = (_class25 = class extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init53.call(this);_class25.prototype.__init54.call(this);_class25.prototype.__init55.call(this);_class25.prototype.__init56.call(this);_class25.prototype.__init57.call(this); }
|
|
7951
8650
|
static {
|
|
7952
8651
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
|
|
7953
8652
|
}
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
8653
|
+
__init53() {this._pending = 0}
|
|
8654
|
+
__init54() {this._confirmed = 0}
|
|
8655
|
+
__init55() {this._invited = 0}
|
|
8656
|
+
__init56() {this._registered = 0}
|
|
8657
|
+
__init57() {this._total = 0}
|
|
7959
8658
|
get pending() {
|
|
7960
8659
|
return this._pending;
|
|
7961
8660
|
}
|
|
@@ -7984,7 +8683,7 @@ var WaitlistStats = (_class24 = class extends AbstractApiData {constructor(...ar
|
|
|
7984
8683
|
createJsonApi(_data) {
|
|
7985
8684
|
throw new Error("WaitlistStats is read-only and cannot be created");
|
|
7986
8685
|
}
|
|
7987
|
-
},
|
|
8686
|
+
}, _class25);
|
|
7988
8687
|
|
|
7989
8688
|
// src/features/waitlist/waitlist.module.ts
|
|
7990
8689
|
var WaitlistModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -8024,7 +8723,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
8024
8723
|
super.rehydrate(data);
|
|
8025
8724
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
8026
8725
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
8027
|
-
this._permissions = _optionalChain([data, 'access',
|
|
8726
|
+
this._permissions = _optionalChain([data, 'access', _246 => _246.jsonApi, 'access', _247 => _247.meta, 'optionalAccess', _248 => _248.permissions]);
|
|
8028
8727
|
return this;
|
|
8029
8728
|
}
|
|
8030
8729
|
};
|
|
@@ -8200,18 +8899,18 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
8200
8899
|
}), "ReferralStatsModule");
|
|
8201
8900
|
|
|
8202
8901
|
// src/features/tokenusage/data/tokenusage-admin-breakdown.ts
|
|
8203
|
-
var TokenUsageAdminBreakdown = (
|
|
8902
|
+
var TokenUsageAdminBreakdown = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init58.call(this);_class26.prototype.__init59.call(this);_class26.prototype.__init60.call(this);_class26.prototype.__init61.call(this);_class26.prototype.__init62.call(this);_class26.prototype.__init63.call(this);_class26.prototype.__init64.call(this); }
|
|
8204
8903
|
static {
|
|
8205
8904
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminBreakdown");
|
|
8206
8905
|
}
|
|
8207
|
-
|
|
8906
|
+
__init58() {this._label = ""}
|
|
8208
8907
|
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8908
|
+
__init59() {this._cost = 0}
|
|
8909
|
+
__init60() {this._credits = 0}
|
|
8910
|
+
__init61() {this._tokensIn = 0}
|
|
8911
|
+
__init62() {this._tokensOut = 0}
|
|
8912
|
+
__init63() {this._cached = 0}
|
|
8913
|
+
__init64() {this._calls = 0}
|
|
8215
8914
|
|
|
8216
8915
|
|
|
8217
8916
|
|
|
@@ -8288,21 +8987,21 @@ var TokenUsageAdminBreakdown = (_class25 = class extends AbstractApiData {constr
|
|
|
8288
8987
|
response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
|
|
8289
8988
|
return response;
|
|
8290
8989
|
}
|
|
8291
|
-
},
|
|
8990
|
+
}, _class26);
|
|
8292
8991
|
|
|
8293
8992
|
// src/features/tokenusage/data/tokenusage-admin-summary.ts
|
|
8294
|
-
var TokenUsageAdminSummary = (
|
|
8993
|
+
var TokenUsageAdminSummary = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init65.call(this);_class27.prototype.__init66.call(this);_class27.prototype.__init67.call(this);_class27.prototype.__init68.call(this);_class27.prototype.__init69.call(this);_class27.prototype.__init70.call(this);_class27.prototype.__init71.call(this);_class27.prototype.__init72.call(this); }
|
|
8295
8994
|
static {
|
|
8296
8995
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminSummary");
|
|
8297
8996
|
}
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8997
|
+
__init65() {this._scope = ""}
|
|
8998
|
+
__init66() {this._window = ""}
|
|
8999
|
+
__init67() {this._cost = 0}
|
|
9000
|
+
__init68() {this._credits = 0}
|
|
9001
|
+
__init69() {this._tokensIn = 0}
|
|
9002
|
+
__init70() {this._tokensOut = 0}
|
|
9003
|
+
__init71() {this._cached = 0}
|
|
9004
|
+
__init72() {this._calls = 0}
|
|
8306
9005
|
get scope() {
|
|
8307
9006
|
return this._scope;
|
|
8308
9007
|
}
|
|
@@ -8360,21 +9059,21 @@ var TokenUsageAdminSummary = (_class26 = class extends AbstractApiData {construc
|
|
|
8360
9059
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
8361
9060
|
return response;
|
|
8362
9061
|
}
|
|
8363
|
-
},
|
|
9062
|
+
}, _class27);
|
|
8364
9063
|
|
|
8365
9064
|
// src/features/tokenusage/data/tokenusage-admin-timeline.ts
|
|
8366
|
-
var TokenUsageAdminTimeline = (
|
|
9065
|
+
var TokenUsageAdminTimeline = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init73.call(this);_class28.prototype.__init74.call(this);_class28.prototype.__init75.call(this);_class28.prototype.__init76.call(this);_class28.prototype.__init77.call(this);_class28.prototype.__init78.call(this);_class28.prototype.__init79.call(this);_class28.prototype.__init80.call(this); }
|
|
8367
9066
|
static {
|
|
8368
9067
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminTimeline");
|
|
8369
9068
|
}
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
9069
|
+
__init73() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
9070
|
+
__init74() {this._series = ""}
|
|
9071
|
+
__init75() {this._cost = 0}
|
|
9072
|
+
__init76() {this._credits = 0}
|
|
9073
|
+
__init77() {this._tokensIn = 0}
|
|
9074
|
+
__init78() {this._tokensOut = 0}
|
|
9075
|
+
__init79() {this._cached = 0}
|
|
9076
|
+
__init80() {this._calls = 0}
|
|
8378
9077
|
get bucket() {
|
|
8379
9078
|
return this._bucket;
|
|
8380
9079
|
}
|
|
@@ -8432,7 +9131,7 @@ var TokenUsageAdminTimeline = (_class27 = class extends AbstractApiData {constru
|
|
|
8432
9131
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
8433
9132
|
return response;
|
|
8434
9133
|
}
|
|
8435
|
-
},
|
|
9134
|
+
}, _class28);
|
|
8436
9135
|
|
|
8437
9136
|
// src/features/tokenusage/tokenusage-admin.module.ts
|
|
8438
9137
|
var TokenUsageAdminSummaryModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary }), "TokenUsageAdminSummaryModule");
|
|
@@ -8440,18 +9139,18 @@ var TokenUsageAdminTimelineModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
8440
9139
|
var TokenUsageAdminBreakdownModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/breakdown", model: TokenUsageAdminBreakdown }), "TokenUsageAdminBreakdownModule");
|
|
8441
9140
|
|
|
8442
9141
|
// src/features/tokenusage/data/tokenusage-report-breakdown.ts
|
|
8443
|
-
var TokenUsageReportBreakdown = (
|
|
9142
|
+
var TokenUsageReportBreakdown = (_class29 = class extends AbstractApiData {constructor(...args26) { super(...args26); _class29.prototype.__init81.call(this);_class29.prototype.__init82.call(this);_class29.prototype.__init83.call(this);_class29.prototype.__init84.call(this);_class29.prototype.__init85.call(this);_class29.prototype.__init86.call(this);_class29.prototype.__init87.call(this); }
|
|
8444
9143
|
static {
|
|
8445
9144
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportBreakdown");
|
|
8446
9145
|
}
|
|
8447
|
-
|
|
9146
|
+
__init81() {this._label = ""}
|
|
8448
9147
|
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
9148
|
+
__init82() {this._cost = 0}
|
|
9149
|
+
__init83() {this._credits = 0}
|
|
9150
|
+
__init84() {this._tokensIn = 0}
|
|
9151
|
+
__init85() {this._tokensOut = 0}
|
|
9152
|
+
__init86() {this._cached = 0}
|
|
9153
|
+
__init87() {this._calls = 0}
|
|
8455
9154
|
get label() {
|
|
8456
9155
|
return this._label;
|
|
8457
9156
|
}
|
|
@@ -8509,20 +9208,20 @@ var TokenUsageReportBreakdown = (_class28 = class extends AbstractApiData {const
|
|
|
8509
9208
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
8510
9209
|
return response;
|
|
8511
9210
|
}
|
|
8512
|
-
},
|
|
9211
|
+
}, _class29);
|
|
8513
9212
|
|
|
8514
9213
|
// src/features/tokenusage/data/tokenusage-report-summary.ts
|
|
8515
|
-
var TokenUsageReportSummary = (
|
|
9214
|
+
var TokenUsageReportSummary = (_class30 = class extends AbstractApiData {constructor(...args27) { super(...args27); _class30.prototype.__init88.call(this);_class30.prototype.__init89.call(this);_class30.prototype.__init90.call(this);_class30.prototype.__init91.call(this);_class30.prototype.__init92.call(this);_class30.prototype.__init93.call(this);_class30.prototype.__init94.call(this); }
|
|
8516
9215
|
static {
|
|
8517
9216
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportSummary");
|
|
8518
9217
|
}
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
9218
|
+
__init88() {this._window = ""}
|
|
9219
|
+
__init89() {this._cost = 0}
|
|
9220
|
+
__init90() {this._credits = 0}
|
|
9221
|
+
__init91() {this._tokensIn = 0}
|
|
9222
|
+
__init92() {this._tokensOut = 0}
|
|
9223
|
+
__init93() {this._cached = 0}
|
|
9224
|
+
__init94() {this._calls = 0}
|
|
8526
9225
|
get window() {
|
|
8527
9226
|
return this._window;
|
|
8528
9227
|
}
|
|
@@ -8575,21 +9274,21 @@ var TokenUsageReportSummary = (_class29 = class extends AbstractApiData {constru
|
|
|
8575
9274
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
8576
9275
|
return response;
|
|
8577
9276
|
}
|
|
8578
|
-
},
|
|
9277
|
+
}, _class30);
|
|
8579
9278
|
|
|
8580
9279
|
// src/features/tokenusage/data/tokenusage-report-timeline.ts
|
|
8581
|
-
var TokenUsageReportTimeline = (
|
|
9280
|
+
var TokenUsageReportTimeline = (_class31 = class extends AbstractApiData {constructor(...args28) { super(...args28); _class31.prototype.__init95.call(this);_class31.prototype.__init96.call(this);_class31.prototype.__init97.call(this);_class31.prototype.__init98.call(this);_class31.prototype.__init99.call(this);_class31.prototype.__init100.call(this);_class31.prototype.__init101.call(this);_class31.prototype.__init102.call(this); }
|
|
8582
9281
|
static {
|
|
8583
9282
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportTimeline");
|
|
8584
9283
|
}
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
9284
|
+
__init95() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
9285
|
+
__init96() {this._series = ""}
|
|
9286
|
+
__init97() {this._cost = 0}
|
|
9287
|
+
__init98() {this._credits = 0}
|
|
9288
|
+
__init99() {this._tokensIn = 0}
|
|
9289
|
+
__init100() {this._tokensOut = 0}
|
|
9290
|
+
__init101() {this._cached = 0}
|
|
9291
|
+
__init102() {this._calls = 0}
|
|
8593
9292
|
get bucket() {
|
|
8594
9293
|
return this._bucket;
|
|
8595
9294
|
}
|
|
@@ -8647,7 +9346,7 @@ var TokenUsageReportTimeline = (_class30 = class extends AbstractApiData {constr
|
|
|
8647
9346
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
8648
9347
|
return response;
|
|
8649
9348
|
}
|
|
8650
|
-
},
|
|
9349
|
+
}, _class31);
|
|
8651
9350
|
|
|
8652
9351
|
// src/features/tokenusage/tokenusage.modules.ts
|
|
8653
9352
|
var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
|
|
@@ -8674,11 +9373,11 @@ function getTokenUsageCurrency() {
|
|
|
8674
9373
|
_chunk7QVYU63Ejs.__name.call(void 0, getTokenUsageCurrency, "getTokenUsageCurrency");
|
|
8675
9374
|
|
|
8676
9375
|
// src/features/audit-log/data/audit-log.ts
|
|
8677
|
-
var AuditLog = (
|
|
9376
|
+
var AuditLog = (_class32 = class extends AbstractApiData {constructor(...args29) { super(...args29); _class32.prototype.__init103.call(this); }
|
|
8678
9377
|
static {
|
|
8679
9378
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
|
|
8680
9379
|
}
|
|
8681
|
-
|
|
9380
|
+
__init103() {this._kind = "audit"}
|
|
8682
9381
|
|
|
8683
9382
|
|
|
8684
9383
|
|
|
@@ -8725,7 +9424,7 @@ var AuditLog = (_class31 = class extends AbstractApiData {constructor(...args28)
|
|
|
8725
9424
|
createJsonApi() {
|
|
8726
9425
|
throw new Error("AuditLog is read-only");
|
|
8727
9426
|
}
|
|
8728
|
-
},
|
|
9427
|
+
}, _class32);
|
|
8729
9428
|
|
|
8730
9429
|
// src/features/audit-log/data/audit-log.service.ts
|
|
8731
9430
|
var AuditLogService = class extends AbstractService {
|
|
@@ -8983,5 +9682,23 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
8983
9682
|
|
|
8984
9683
|
|
|
8985
9684
|
|
|
8986
|
-
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
8987
|
-
|
|
9685
|
+
|
|
9686
|
+
|
|
9687
|
+
|
|
9688
|
+
|
|
9689
|
+
|
|
9690
|
+
|
|
9691
|
+
|
|
9692
|
+
|
|
9693
|
+
|
|
9694
|
+
|
|
9695
|
+
|
|
9696
|
+
|
|
9697
|
+
|
|
9698
|
+
|
|
9699
|
+
|
|
9700
|
+
|
|
9701
|
+
|
|
9702
|
+
|
|
9703
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.HandbookPage = HandbookPage; exports.HandbookPageModule = HandbookPageModule; exports.HandbookSection = HandbookSection; exports.HandbookSectionModule = HandbookSectionModule; exports.HandbookThreadMessage = HandbookThreadMessage; exports.HandbookThreadMessageModule = HandbookThreadMessageModule; exports.HandbookThread = HandbookThread; exports.HandbookThreadModule = HandbookThreadModule; exports.handbookPageTitle = handbookPageTitle; exports.handbookPageSummary = handbookPageSummary; exports.handbookPageContent = handbookPageContent; exports.handbookSectionTitle = handbookSectionTitle; exports.handbookSectionSummary = handbookSectionSummary; exports.HandbookPageFields = HandbookPageFields; exports.HandbookPageService = HandbookPageService; exports.HandbookSectionService = HandbookSectionService; exports.HandbookThreadMessageService = HandbookThreadMessageService; exports.HandbookThreadService = HandbookThreadService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
9704
|
+
//# sourceMappingURL=chunk-IB7DTXWG.js.map
|