@carlonicora/nextjs-jsonapi 3.11.0 → 3.13.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.
Files changed (156) hide show
  1. package/dist/{AssistantInterface-DwdBzS9f.d.ts → AssistantInterface-RvZzlcA_.d.ts} +2 -0
  2. package/dist/{AssistantInterface-DMh-zApr.d.mts → AssistantInterface-jL56dyNc.d.mts} +2 -0
  3. package/dist/{AssistantMessageInterface-0zyVingf.d.ts → AssistantMessageInterface-CuaMDs2i.d.ts} +1 -1
  4. package/dist/{AssistantMessageInterface-ddyG114R.d.mts → AssistantMessageInterface-Du3ShThp.d.mts} +1 -1
  5. package/dist/{BlockNoteEditor-XOVNTXDY.js → BlockNoteEditor-CFVSHS46.js} +19 -19
  6. package/dist/{BlockNoteEditor-XOVNTXDY.js.map → BlockNoteEditor-CFVSHS46.js.map} +1 -1
  7. package/dist/{BlockNoteEditor-NBHDEZ7W.mjs → BlockNoteEditor-SERY337S.mjs} +4 -4
  8. package/dist/{BlockNoteViewer-C2UUOBAF.js → BlockNoteViewer-CWFPYYIU.js} +3 -3
  9. package/dist/{BlockNoteViewer-C2UUOBAF.js.map → BlockNoteViewer-CWFPYYIU.js.map} +1 -1
  10. package/dist/{BlockNoteViewer-TYLVTIUD.mjs → BlockNoteViewer-P2VKEFRN.mjs} +2 -2
  11. package/dist/{ai-connection.module-28f-hux0.d.mts → HandbookSectionInterface-BOxIdBdd.d.mts} +54 -1
  12. package/dist/{ai-connection.module-Bqwh_DnR.d.ts → HandbookSectionInterface-CAXxbDw0.d.ts} +54 -1
  13. package/dist/{auth.interface-B6ZQLGjS.d.ts → auth.interface-BC1jp_ni.d.ts} +1 -1
  14. package/dist/{auth.interface-jYD8Gc4P.d.mts → auth.interface-dR2-6gPM.d.mts} +1 -1
  15. package/dist/billing/index.d.mts +27 -0
  16. package/dist/billing/index.d.ts +27 -0
  17. package/dist/billing/index.js +697 -450
  18. package/dist/billing/index.js.map +1 -1
  19. package/dist/billing/index.mjs +282 -35
  20. package/dist/billing/index.mjs.map +1 -1
  21. package/dist/{chunk-6J2SQZ3G.js → chunk-IB7DTXWG.js} +847 -129
  22. package/dist/chunk-IB7DTXWG.js.map +1 -0
  23. package/dist/{chunk-YN4LOVL4.js → chunk-LVE3BJ6K.js} +2106 -1109
  24. package/dist/chunk-LVE3BJ6K.js.map +1 -0
  25. package/dist/{chunk-M5QAHSCY.mjs → chunk-OSFYCSTW.mjs} +725 -7
  26. package/dist/chunk-OSFYCSTW.mjs.map +1 -0
  27. package/dist/{chunk-XNGI4HDZ.mjs → chunk-UQXE3SME.mjs} +2100 -1103
  28. package/dist/chunk-UQXE3SME.mjs.map +1 -0
  29. package/dist/{chunk-IMSIVIIC.mjs → chunk-VZKJIAND.mjs} +2 -2
  30. package/dist/{chunk-V6CGCARD.js → chunk-XH4IURUD.js} +7 -7
  31. package/dist/{chunk-V6CGCARD.js.map → chunk-XH4IURUD.js.map} +1 -1
  32. package/dist/client/index.d.mts +2 -2
  33. package/dist/client/index.d.ts +2 -2
  34. package/dist/client/index.js +4 -4
  35. package/dist/client/index.mjs +3 -3
  36. package/dist/components/index.d.mts +258 -7
  37. package/dist/components/index.d.ts +258 -7
  38. package/dist/components/index.js +30 -4
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/index.mjs +29 -3
  41. package/dist/contexts/index.d.mts +17 -5
  42. package/dist/contexts/index.d.ts +17 -5
  43. package/dist/contexts/index.js +4 -4
  44. package/dist/contexts/index.mjs +3 -3
  45. package/dist/core/index.d.mts +493 -12
  46. package/dist/core/index.d.ts +493 -12
  47. package/dist/core/index.js +38 -2
  48. package/dist/core/index.js.map +1 -1
  49. package/dist/core/index.mjs +37 -1
  50. package/dist/features/help/index.js +37 -37
  51. package/dist/features/help/index.mjs +3 -3
  52. package/dist/features/tokenusage/index.js +101 -101
  53. package/dist/features/tokenusage/index.mjs +3 -3
  54. package/dist/index.d.mts +7 -7
  55. package/dist/index.d.ts +7 -7
  56. package/dist/index.js +39 -3
  57. package/dist/index.js.map +1 -1
  58. package/dist/index.mjs +38 -2
  59. package/dist/{notification.interface-DYF56CtE.d.ts → notification.interface-CjzV_KII.d.ts} +1 -1
  60. package/dist/{notification.interface-BWOCvKRP.d.mts → notification.interface-MnRt1Tjm.d.mts} +1 -1
  61. package/dist/{s3.service-D_dswjgz.d.mts → s3.service-C0Yq2Sx3.d.mts} +2 -2
  62. package/dist/{s3.service-DserU9VK.d.ts → s3.service-CUGarZs3.d.ts} +2 -2
  63. package/dist/server/index.d.mts +3 -3
  64. package/dist/server/index.d.ts +3 -3
  65. package/dist/server/index.js +3 -3
  66. package/dist/server/index.mjs +1 -1
  67. package/dist/{useSocket-BZG9oX-L.d.mts → useSocket-BcH7l7B8.d.mts} +1 -1
  68. package/dist/{useSocket-CiyTtYFj.d.ts → useSocket-DCZd_eJk.d.ts} +1 -1
  69. package/package.json +1 -1
  70. package/src/components/containers/ReactMarkdownContainer.tsx +61 -11
  71. package/src/components/index.ts +1 -0
  72. package/src/core/index.ts +5 -0
  73. package/src/core/registry/ModuleRegistry.ts +4 -0
  74. package/src/features/assistant/components/parts/AssistantComposer.tsx +22 -3
  75. package/src/features/assistant/components/parts/AssistantSidebar.tsx +13 -3
  76. package/src/features/assistant/components/parts/AssistantThreadHeader.tsx +10 -3
  77. package/src/features/assistant/contexts/AssistantContext.tsx +30 -3
  78. package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +32 -0
  79. package/src/features/assistant/data/Assistant.ts +2 -0
  80. package/src/features/assistant/data/AssistantInterface.ts +2 -0
  81. package/src/features/assistant/data/AssistantService.ts +4 -0
  82. package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +5 -1
  83. package/src/features/assistant-message/data/AssistantMessage.ts +27 -2
  84. package/src/features/billing/i18n-keys.ts +7 -0
  85. package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +108 -2
  86. package/src/features/billing/stripe-price/components/forms/__tests__/PriceEditor.spec.tsx +182 -0
  87. package/src/features/billing/stripe-price/components/lists/PricesList.tsx +152 -25
  88. package/src/features/billing/stripe-price/components/lists/__tests__/PricesList.spec.tsx +268 -0
  89. package/src/features/billing/stripe-price/data/__tests__/stripe-price.transfer.spec.ts +265 -0
  90. package/src/features/billing/stripe-price/data/stripe-price.fields.ts +1 -0
  91. package/src/features/billing/stripe-price/data/stripe-price.transfer.ts +194 -0
  92. package/src/features/billing/stripe-price/hooks/useStripePriceTableStructure.tsx +66 -2
  93. package/src/features/content/data/content.interface.ts +1 -1
  94. package/src/features/handbook/HandbookPageModule.ts +41 -0
  95. package/src/features/handbook/HandbookSectionModule.ts +35 -0
  96. package/src/features/handbook/HandbookThreadMessageModule.ts +21 -0
  97. package/src/features/handbook/HandbookThreadModule.ts +29 -0
  98. package/src/features/handbook/components/containers/HandbookAdminContainer.tsx +17 -0
  99. package/src/features/handbook/components/containers/HandbookAskContainer.tsx +142 -0
  100. package/src/features/handbook/components/containers/HandbookAskSheet.tsx +149 -0
  101. package/src/features/handbook/components/containers/HandbookPageContainer.tsx +143 -0
  102. package/src/features/handbook/components/containers/__tests__/HandbookAskContainer.spec.tsx +268 -0
  103. package/src/features/handbook/components/containers/__tests__/HandbookAskSheet.spec.tsx +143 -0
  104. package/src/features/handbook/components/containers/__tests__/HandbookPageContainer.spec.tsx +288 -0
  105. package/src/features/handbook/components/details/HandbookPageDetails.tsx +27 -0
  106. package/src/features/handbook/components/details/HandbookPageNeighbours.tsx +72 -0
  107. package/src/features/handbook/components/details/HandbookPageToc.tsx +165 -0
  108. package/src/features/handbook/components/forms/HandbookSyncButton.tsx +43 -0
  109. package/src/features/handbook/components/forms/__tests__/HandbookSyncButton.spec.tsx +42 -0
  110. package/src/features/handbook/components/index.ts +12 -0
  111. package/src/features/handbook/components/lists/HandbookContents.tsx +196 -0
  112. package/src/features/handbook/components/lists/HandbookSectionGroup.tsx +153 -0
  113. package/src/features/handbook/components/lists/__tests__/HandbookContents.spec.tsx +247 -0
  114. package/src/features/handbook/components/parts/HandbookIndexStatus.tsx +62 -0
  115. package/src/features/handbook/components/parts/HandbookPageNavigator.tsx +143 -0
  116. package/src/features/handbook/contexts/HandbookContext.tsx +109 -0
  117. package/src/features/handbook/contexts/__tests__/HandbookContext.spec.tsx +131 -0
  118. package/src/features/handbook/data/HandbookPage.spec.ts +136 -0
  119. package/src/features/handbook/data/HandbookPage.ts +99 -0
  120. package/src/features/handbook/data/HandbookPageFields.ts +31 -0
  121. package/src/features/handbook/data/HandbookPageInput.ts +8 -0
  122. package/src/features/handbook/data/HandbookPageInterface.ts +29 -0
  123. package/src/features/handbook/data/HandbookPageService.ts +60 -0
  124. package/src/features/handbook/data/HandbookSection.spec.ts +58 -0
  125. package/src/features/handbook/data/HandbookSection.ts +73 -0
  126. package/src/features/handbook/data/HandbookSectionInput.ts +12 -0
  127. package/src/features/handbook/data/HandbookSectionInterface.ts +26 -0
  128. package/src/features/handbook/data/HandbookSectionService.ts +26 -0
  129. package/src/features/handbook/data/HandbookThread.ts +114 -0
  130. package/src/features/handbook/data/HandbookThreadInterface.ts +31 -0
  131. package/src/features/handbook/data/HandbookThreadMessage.ts +144 -0
  132. package/src/features/handbook/data/HandbookThreadMessageInterface.ts +35 -0
  133. package/src/features/handbook/data/HandbookThreadMessageService.ts +30 -0
  134. package/src/features/handbook/data/HandbookThreadService.ts +86 -0
  135. package/src/features/handbook/data/__tests__/HandbookThreadService.spec.ts +112 -0
  136. package/src/features/handbook/data/handbookDisplay.spec.ts +92 -0
  137. package/src/features/handbook/data/handbookDisplay.ts +55 -0
  138. package/src/features/handbook/data/index.ts +16 -0
  139. package/src/features/handbook/hooks/__tests__/useHandbookAsk.spec.ts +198 -0
  140. package/src/features/handbook/hooks/useHandbookAsk.ts +213 -0
  141. package/src/features/handbook/i18n-keys.ts +46 -0
  142. package/src/features/handbook/index.ts +7 -0
  143. package/src/features/how-to/components/forms/HowToEditor.tsx +0 -1
  144. package/src/features/how-to/components/forms/HowToReindexButton.spec.tsx +84 -0
  145. package/src/features/how-to/components/forms/HowToReindexButton.tsx +46 -0
  146. package/src/features/how-to/components/index.ts +1 -0
  147. package/src/features/how-to/components/lists/HowToList.tsx +5 -1
  148. package/src/features/how-to/data/HowTo.spec.ts +61 -1
  149. package/src/features/how-to/data/HowToService.ts +13 -0
  150. package/dist/chunk-6J2SQZ3G.js.map +0 -1
  151. package/dist/chunk-M5QAHSCY.mjs.map +0 -1
  152. package/dist/chunk-XNGI4HDZ.mjs.map +0 -1
  153. package/dist/chunk-YN4LOVL4.js.map +0 -1
  154. /package/dist/{BlockNoteEditor-NBHDEZ7W.mjs.map → BlockNoteEditor-SERY337S.mjs.map} +0 -0
  155. /package/dist/{BlockNoteViewer-TYLVTIUD.mjs.map → BlockNoteViewer-P2VKEFRN.mjs.map} +0 -0
  156. /package/dist/{chunk-IMSIVIIC.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
 
@@ -4139,6 +4139,7 @@ var StripePriceFields = /* @__PURE__ */ ((StripePriceFields2) => {
4139
4139
  StripePriceFields2["interval"] = "interval";
4140
4140
  StripePriceFields2["token"] = "token";
4141
4141
  StripePriceFields2["status"] = "status";
4142
+ StripePriceFields2["actions"] = "actions";
4142
4143
  return StripePriceFields2;
4143
4144
  })(StripePriceFields || {});
4144
4145
 
@@ -5921,6 +5922,18 @@ var HowToService = class extends AbstractService {
5921
5922
  endpoint: new EndpointCreator({ endpoint: Modules.HowTo, id: params.howToId }).generate()
5922
5923
  });
5923
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
+ }
5924
5937
  static async findPublished(params = {}) {
5925
5938
  const endpoint = new EndpointCreator({ endpoint: `public/${Modules.HowTo.name}` });
5926
5939
  if (params.howToType) endpoint.addAdditionalParam("type", params.howToType);
@@ -5979,6 +5992,675 @@ var HowToService = class extends AbstractService {
5979
5992
  }
5980
5993
  };
5981
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
+
5982
6664
  // src/features/assistant/AssistantModule.ts
5983
6665
 
5984
6666
 
@@ -6009,15 +6691,15 @@ var Assistant = class extends AbstractApiData {
6009
6691
  }
6010
6692
  rehydrate(data) {
6011
6693
  super.rehydrate(data);
6012
- this._title = _optionalChain([data, 'access', _142 => _142.jsonApi, 'access', _143 => _143.attributes, 'optionalAccess', _144 => _144.title]);
6013
- this._engine = _optionalChain([data, 'access', _145 => _145.jsonApi, 'access', _146 => _146.attributes, 'optionalAccess', _147 => _147.engine]);
6014
- const fromMeta = _optionalChain([data, 'access', _148 => _148.jsonApi, 'access', _149 => _149.meta, 'optionalAccess', _150 => _150.messageCount]);
6015
- const fromAttrs = _optionalChain([data, 'access', _151 => _151.jsonApi, 'access', _152 => _152.attributes, 'optionalAccess', _153 => _153.messageCount]);
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]);
6016
6698
  this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
6017
- const contentLinkage = _optionalChain([data, 'access', _154 => _154.jsonApi, 'access', _155 => _155.relationships, 'optionalAccess', _156 => _156.content, 'optionalAccess', _157 => _157.data]);
6699
+ const contentLinkage = _optionalChain([data, 'access', _177 => _177.jsonApi, 'access', _178 => _178.relationships, 'optionalAccess', _179 => _179.content, 'optionalAccess', _180 => _180.data]);
6018
6700
  const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
6019
- this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _158 => _158.type]);
6020
- this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _159 => _159.id]);
6701
+ this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _181 => _181.type]);
6702
+ this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _182 => _182.id]);
6021
6703
  return this;
6022
6704
  }
6023
6705
  createJsonApi(data) {
@@ -6032,7 +6714,9 @@ var Assistant = class extends AbstractApiData {
6032
6714
  content: data.contentBlocks !== void 0 ? JSON.stringify(data.contentBlocks) : data.firstMessage,
6033
6715
  ...data.title !== void 0 ? { title: data.title } : {},
6034
6716
  ...data.howToMode !== void 0 ? { howToMode: data.howToMode } : {},
6035
- ...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 } : {}
6036
6720
  },
6037
6721
  ...data.boundContent !== void 0 ? {
6038
6722
  relationships: {
@@ -6073,7 +6757,7 @@ function resolveReferenceableModules() {
6073
6757
  _chunk7QVYU63Ejs.__name.call(void 0, resolveReferenceableModules, "resolveReferenceableModules");
6074
6758
 
6075
6759
  // src/features/assistant-message/data/AssistantMessage.ts
6076
- var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this); }
6760
+ var AssistantMessage = (_class20 = class _AssistantMessage extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this); }
6077
6761
  static {
6078
6762
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AssistantMessage");
6079
6763
  }
@@ -6085,7 +6769,7 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
6085
6769
 
6086
6770
 
6087
6771
 
6088
- __init40() {this._isOptimistic = false}
6772
+ __init41() {this._isOptimistic = false}
6089
6773
 
6090
6774
 
6091
6775
  get role() {
@@ -6131,11 +6815,11 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
6131
6815
  this._inputTokens = attrs.inputTokens;
6132
6816
  this._outputTokens = attrs.outputTokens;
6133
6817
  this._messageType = attrs.messageType;
6134
- const actionRelationship = _optionalChain([data, 'access', _160 => _160.jsonApi, 'access', _161 => _161.relationships, 'optionalAccess', _162 => _162.action, 'optionalAccess', _163 => _163.data]);
6135
- this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _164 => _164[0], 'optionalAccess', _165 => _165.id]) : _optionalChain([actionRelationship, 'optionalAccess', _166 => _166.id]);
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]);
6136
6820
  const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
6137
6821
  this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
6138
- if (_optionalChain([data, 'access', _167 => _167.jsonApi, 'access', _168 => _168.relationships, 'optionalAccess', _169 => _169.citations, 'optionalAccess', _170 => _170.data])) {
6822
+ if (_optionalChain([data, 'access', _190 => _190.jsonApi, 'access', _191 => _191.relationships, 'optionalAccess', _192 => _192.citations, 'optionalAccess', _193 => _193.data])) {
6139
6823
  const citations = this._readIncludedWithMeta(
6140
6824
  data,
6141
6825
  "citations",
@@ -6183,18 +6867,32 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
6183
6867
  // stored markdown from it.
6184
6868
  content: params.contentBlocks !== void 0 ? JSON.stringify(params.contentBlocks) : params.content,
6185
6869
  ...params.howToMode !== void 0 ? { howToMode: params.howToMode } : {},
6186
- ...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 } : {}
6187
6873
  }
6188
6874
  }
6189
6875
  };
6190
6876
  }
6191
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) {
6192
6890
  const msg = new _AssistantMessage();
6193
6891
  const jsonApi = {
6194
6892
  id: _uuid.v4.call(void 0, ),
6195
6893
  type: Modules.AssistantMessage.name,
6196
6894
  attributes: {
6197
- role: "user",
6895
+ role: params.role,
6198
6896
  content: params.content,
6199
6897
  position: params.position
6200
6898
  }
@@ -6205,10 +6903,10 @@ var AssistantMessage = (_class19 = class _AssistantMessage extends AbstractApiDa
6205
6903
  };
6206
6904
  }
6207
6905
  msg.rehydrate({ jsonApi, included: [] });
6208
- msg._isOptimistic = true;
6906
+ msg._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
6209
6907
  return msg;
6210
6908
  }
6211
- }, _class19);
6909
+ }, _class20);
6212
6910
 
6213
6911
  // src/features/assistant/data/AssistantService.ts
6214
6912
  var AssistantService = class extends AbstractService {
@@ -6281,6 +6979,8 @@ var AssistantService = class extends AbstractService {
6281
6979
  content: params.content,
6282
6980
  howToMode: params.howToMode,
6283
6981
  limitToHowToId: params.limitToHowToId,
6982
+ handbookMode: params.handbookMode,
6983
+ limitToHandbookPageId: params.limitToHandbookPageId,
6284
6984
  contentBlocks: params.contentBlocks
6285
6985
  }),
6286
6986
  overridesJsonApiCreation: true
@@ -6375,9 +7075,9 @@ var AssistantMessageService = class extends AbstractService {
6375
7075
  id: params.assistantId,
6376
7076
  childEndpoint: Modules.AssistantMessage
6377
7077
  });
6378
- if (_optionalChain([Modules, 'access', _171 => _171.AssistantMessage, 'access', _172 => _172.inclusions, 'optionalAccess', _173 => _173.lists, 'optionalAccess', _174 => _174.fields]))
7078
+ if (_optionalChain([Modules, 'access', _194 => _194.AssistantMessage, 'access', _195 => _195.inclusions, 'optionalAccess', _196 => _196.lists, 'optionalAccess', _197 => _197.fields]))
6379
7079
  endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
6380
- if (_optionalChain([Modules, 'access', _175 => _175.AssistantMessage, 'access', _176 => _176.inclusions, 'optionalAccess', _177 => _177.lists, 'optionalAccess', _178 => _178.types]))
7080
+ if (_optionalChain([Modules, 'access', _198 => _198.AssistantMessage, 'access', _199 => _199.inclusions, 'optionalAccess', _200 => _200.lists, 'optionalAccess', _201 => _201.types]))
6381
7081
  endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
6382
7082
  return this.callApi({
6383
7083
  type: Modules.AssistantMessage,
@@ -6391,9 +7091,9 @@ var AssistantMessageService = class extends AbstractService {
6391
7091
  endpoint: Modules.AssistantMessage,
6392
7092
  id: params.id
6393
7093
  });
6394
- if (_optionalChain([Modules, 'access', _179 => _179.AssistantMessage, 'access', _180 => _180.inclusions, 'optionalAccess', _181 => _181.lists, 'optionalAccess', _182 => _182.fields]))
7094
+ if (_optionalChain([Modules, 'access', _202 => _202.AssistantMessage, 'access', _203 => _203.inclusions, 'optionalAccess', _204 => _204.lists, 'optionalAccess', _205 => _205.fields]))
6395
7095
  endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
6396
- if (_optionalChain([Modules, 'access', _183 => _183.AssistantMessage, 'access', _184 => _184.inclusions, 'optionalAccess', _185 => _185.lists, 'optionalAccess', _186 => _186.types]))
7096
+ if (_optionalChain([Modules, 'access', _206 => _206.AssistantMessage, 'access', _207 => _207.inclusions, 'optionalAccess', _208 => _208.lists, 'optionalAccess', _209 => _209.types]))
6397
7097
  endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
6398
7098
  return this.callApi({
6399
7099
  type: Modules.AssistantMessage,
@@ -6599,13 +7299,13 @@ var ChunkModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
6599
7299
  }), "ChunkModule");
6600
7300
 
6601
7301
  // src/features/feature/data/feature.ts
6602
- var Feature = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this); }
7302
+ var Feature = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init42.call(this); }
6603
7303
  static {
6604
7304
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
6605
7305
  }
6606
7306
 
6607
7307
 
6608
- __init41() {this._modules = []}
7308
+ __init42() {this._modules = []}
6609
7309
  get name() {
6610
7310
  return _nullishCoalesce(this._name, () => ( ""));
6611
7311
  }
@@ -6622,7 +7322,7 @@ var Feature = (_class20 = class extends AbstractApiData {constructor(...args17)
6622
7322
  this._modules = this._readIncluded(data, `modules`, Modules.Module);
6623
7323
  return this;
6624
7324
  }
6625
- }, _class20);
7325
+ }, _class21);
6626
7326
 
6627
7327
  // src/features/feature/data/feature.service.ts
6628
7328
  var FeatureService = class extends AbstractService {
@@ -6718,10 +7418,10 @@ var Notification = class extends AbstractApiData {
6718
7418
  this._message = data.jsonApi.attributes.message;
6719
7419
  this._actionUrl = data.jsonApi.attributes.actionUrl;
6720
7420
  const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
6721
- const actorType = _optionalChain([rels, 'access', _187 => _187.actor, 'optionalAccess', _188 => _188.data, 'optionalAccess', _189 => _189.type]);
7421
+ const actorType = _optionalChain([rels, 'access', _210 => _210.actor, 'optionalAccess', _211 => _211.data, 'optionalAccess', _212 => _212.type]);
6722
7422
  this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
6723
- const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _190 => _190[name], 'optionalAccess', _191 => _191.data, 'optionalAccess', _192 => _192.type]));
6724
- const subjectType = subjectName ? _optionalChain([rels, 'access', _193 => _193[subjectName], 'optionalAccess', _194 => _194.data, 'optionalAccess', _195 => _195.type]) : void 0;
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;
6725
7425
  this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
6726
7426
  return this;
6727
7427
  }
@@ -7082,7 +7782,7 @@ var S3Service = class extends AbstractService {
7082
7782
  };
7083
7783
 
7084
7784
  // src/features/user/data/user.ts
7085
- var User = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init42.call(this);_class21.prototype.__init43.call(this);_class21.prototype.__init44.call(this); }
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); }
7086
7786
  static {
7087
7787
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
7088
7788
  }
@@ -7096,12 +7796,12 @@ var User = (_class21 = class extends AbstractApiData {constructor(...args18) { s
7096
7796
 
7097
7797
 
7098
7798
 
7099
- __init42() {this._twoFactorEnabled = false}
7799
+ __init43() {this._twoFactorEnabled = false}
7100
7800
 
7101
7801
 
7102
- __init43() {this._roles = []}
7802
+ __init44() {this._roles = []}
7103
7803
 
7104
- __init44() {this._modules = []}
7804
+ __init45() {this._modules = []}
7105
7805
  get searchResult() {
7106
7806
  return _nullishCoalesce(this._name, () => ( ""));
7107
7807
  }
@@ -7212,7 +7912,7 @@ var User = (_class21 = class extends AbstractApiData {constructor(...args18) { s
7212
7912
  }
7213
7913
  return response;
7214
7914
  }
7215
- }, _class21);
7915
+ }, _class22);
7216
7916
 
7217
7917
  // src/features/user/data/user.fields.ts
7218
7918
  var UserFields = /* @__PURE__ */ ((UserFields2) => {
@@ -7282,8 +7982,8 @@ var UserService = class extends AbstractService {
7282
7982
  id: params.id,
7283
7983
  childEndpoint: "user-relevance"
7284
7984
  });
7285
- if (_optionalChain([Modules, 'access', _196 => _196.User, 'access', _197 => _197.inclusions, 'optionalAccess', _198 => _198.lists, 'optionalAccess', _199 => _199.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
7286
- if (_optionalChain([Modules, 'access', _200 => _200.User, 'access', _201 => _201.inclusions, 'optionalAccess', _202 => _202.lists, 'optionalAccess', _203 => _203.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
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);
7287
7987
  return this.callApi({
7288
7988
  type: Modules.User,
7289
7989
  method: "GET" /* GET */,
@@ -7453,18 +8153,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
7453
8153
  }), "UserModule");
7454
8154
 
7455
8155
  // src/features/oauth/data/oauth.ts
7456
- var OAuthClient = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init45.call(this);_class22.prototype.__init46.call(this);_class22.prototype.__init47.call(this);_class22.prototype.__init48.call(this);_class22.prototype.__init49.call(this); }
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); }
7457
8157
  static {
7458
8158
  _chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
7459
8159
  }
7460
8160
 
7461
8161
 
7462
8162
 
7463
- __init45() {this._redirectUris = []}
7464
- __init46() {this._allowedScopes = []}
7465
- __init47() {this._allowedGrantTypes = []}
7466
- __init48() {this._isConfidential = true}
7467
- __init49() {this._isActive = true}
8163
+ __init46() {this._redirectUris = []}
8164
+ __init47() {this._allowedScopes = []}
8165
+ __init48() {this._allowedGrantTypes = []}
8166
+ __init49() {this._isConfidential = true}
8167
+ __init50() {this._isActive = true}
7468
8168
  get clientId() {
7469
8169
  return _nullishCoalesce(this._clientId, () => ( this.id));
7470
8170
  }
@@ -7520,7 +8220,7 @@ var OAuthClient = (_class22 = class extends AbstractApiData {constructor(...args
7520
8220
  if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
7521
8221
  return response;
7522
8222
  }
7523
- }, _class22);
8223
+ }, _class23);
7524
8224
 
7525
8225
  // src/features/oauth/oauth.module.ts
7526
8226
  var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -7545,7 +8245,7 @@ var OAuthService = class extends AbstractService {
7545
8245
  type: Modules.OAuth,
7546
8246
  method: "GET" /* GET */,
7547
8247
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
7548
- next: _optionalChain([params, 'optionalAccess', _204 => _204.next])
8248
+ next: _optionalChain([params, 'optionalAccess', _227 => _227.next])
7549
8249
  });
7550
8250
  }
7551
8251
  /**
@@ -7571,7 +8271,7 @@ var OAuthService = class extends AbstractService {
7571
8271
  });
7572
8272
  return {
7573
8273
  client: result.data,
7574
- clientSecret: _optionalChain([result, 'access', _205 => _205.meta, 'optionalAccess', _206 => _206.clientSecret])
8274
+ clientSecret: _optionalChain([result, 'access', _228 => _228.meta, 'optionalAccess', _229 => _229.clientSecret])
7575
8275
  };
7576
8276
  }
7577
8277
  /**
@@ -7610,7 +8310,7 @@ var OAuthService = class extends AbstractService {
7610
8310
  }).generate()
7611
8311
  });
7612
8312
  return {
7613
- clientSecret: _optionalChain([result, 'access', _207 => _207.meta, 'optionalAccess', _208 => _208.clientSecret])
8313
+ clientSecret: _optionalChain([result, 'access', _230 => _230.meta, 'optionalAccess', _231 => _231.clientSecret])
7614
8314
  };
7615
8315
  }
7616
8316
  // ==========================================
@@ -7654,7 +8354,7 @@ var OAuthService = class extends AbstractService {
7654
8354
  overridesJsonApiCreation: true
7655
8355
  });
7656
8356
  return {
7657
- redirectUrl: _optionalChain([result, 'access', _209 => _209.meta, 'optionalAccess', _210 => _210.redirectUrl])
8357
+ redirectUrl: _optionalChain([result, 'access', _232 => _232.meta, 'optionalAccess', _233 => _233.redirectUrl])
7658
8358
  };
7659
8359
  }
7660
8360
  /**
@@ -7674,7 +8374,7 @@ var OAuthService = class extends AbstractService {
7674
8374
  overridesJsonApiCreation: true
7675
8375
  });
7676
8376
  return {
7677
- redirectUrl: _optionalChain([result, 'access', _211 => _211.meta, 'optionalAccess', _212 => _212.redirectUrl])
8377
+ redirectUrl: _optionalChain([result, 'access', _234 => _234.meta, 'optionalAccess', _235 => _235.redirectUrl])
7678
8378
  };
7679
8379
  }
7680
8380
  };
@@ -7734,17 +8434,17 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
7734
8434
  var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
7735
8435
 
7736
8436
  // src/features/waitlist/data/Waitlist.ts
7737
- var Waitlist = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init50.call(this);_class23.prototype.__init51.call(this); }
8437
+ var Waitlist = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init51.call(this);_class24.prototype.__init52.call(this); }
7738
8438
  static {
7739
8439
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
7740
8440
  }
7741
8441
 
7742
- __init50() {this._gdprConsent = false}
8442
+ __init51() {this._gdprConsent = false}
7743
8443
 
7744
8444
 
7745
8445
 
7746
8446
 
7747
- __init51() {this._status = "pending"}
8447
+ __init52() {this._status = "pending"}
7748
8448
 
7749
8449
 
7750
8450
 
@@ -7818,7 +8518,7 @@ var Waitlist = (_class23 = class extends AbstractApiData {constructor(...args20)
7818
8518
  }
7819
8519
  return response;
7820
8520
  }
7821
- }, _class23);
8521
+ }, _class24);
7822
8522
 
7823
8523
  // src/features/waitlist/data/WaitlistService.ts
7824
8524
  var WaitlistService = class extends AbstractService {
@@ -7858,15 +8558,15 @@ var WaitlistService = class extends AbstractService {
7858
8558
  */
7859
8559
  static async findMany(params) {
7860
8560
  const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
7861
- if (_optionalChain([params, 'optionalAccess', _213 => _213.status])) endpoint.addAdditionalParam("status", params.status);
7862
- if (_optionalChain([params, 'optionalAccess', _214 => _214.search])) endpoint.addAdditionalParam("search", params.search);
7863
- if (_optionalChain([params, 'optionalAccess', _215 => _215.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
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");
7864
8564
  return this.callApi({
7865
8565
  type: Modules.Waitlist,
7866
8566
  method: "GET" /* GET */,
7867
8567
  endpoint: endpoint.generate(),
7868
- next: _optionalChain([params, 'optionalAccess', _216 => _216.next]),
7869
- previous: _optionalChain([params, 'optionalAccess', _217 => _217.prev])
8568
+ next: _optionalChain([params, 'optionalAccess', _239 => _239.next]),
8569
+ previous: _optionalChain([params, 'optionalAccess', _240 => _240.prev])
7870
8570
  });
7871
8571
  }
7872
8572
  /**
@@ -7934,10 +8634,10 @@ var WaitlistService = class extends AbstractService {
7934
8634
  method: "GET" /* GET */,
7935
8635
  endpoint: endpoint.generate()
7936
8636
  });
7937
- const attributes = _optionalChain([response, 'access', _218 => _218.data, 'optionalAccess', _219 => _219._jsonApi, 'optionalAccess', _220 => _220.attributes]);
8637
+ const attributes = _optionalChain([response, 'access', _241 => _241.data, 'optionalAccess', _242 => _242._jsonApi, 'optionalAccess', _243 => _243.attributes]);
7938
8638
  return {
7939
- email: _optionalChain([attributes, 'optionalAccess', _221 => _221.email]),
7940
- valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _222 => _222.valid]), () => ( false))
8639
+ email: _optionalChain([attributes, 'optionalAccess', _244 => _244.email]),
8640
+ valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _245 => _245.valid]), () => ( false))
7941
8641
  };
7942
8642
  } catch (_error) {
7943
8643
  return null;
@@ -7946,15 +8646,15 @@ var WaitlistService = class extends AbstractService {
7946
8646
  };
7947
8647
 
7948
8648
  // src/features/waitlist/data/waitlist-stats.ts
7949
- var WaitlistStats = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init52.call(this);_class24.prototype.__init53.call(this);_class24.prototype.__init54.call(this);_class24.prototype.__init55.call(this);_class24.prototype.__init56.call(this); }
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); }
7950
8650
  static {
7951
8651
  _chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
7952
8652
  }
7953
- __init52() {this._pending = 0}
7954
- __init53() {this._confirmed = 0}
7955
- __init54() {this._invited = 0}
7956
- __init55() {this._registered = 0}
7957
- __init56() {this._total = 0}
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}
7958
8658
  get pending() {
7959
8659
  return this._pending;
7960
8660
  }
@@ -7983,7 +8683,7 @@ var WaitlistStats = (_class24 = class extends AbstractApiData {constructor(...ar
7983
8683
  createJsonApi(_data) {
7984
8684
  throw new Error("WaitlistStats is read-only and cannot be created");
7985
8685
  }
7986
- }, _class24);
8686
+ }, _class25);
7987
8687
 
7988
8688
  // src/features/waitlist/waitlist.module.ts
7989
8689
  var WaitlistModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -8023,7 +8723,7 @@ var PermissionMapping = class extends AbstractApiData {
8023
8723
  super.rehydrate(data);
8024
8724
  this._roleId = data.jsonApi.attributes.roleId;
8025
8725
  this._moduleId = data.jsonApi.attributes.moduleId;
8026
- this._permissions = _optionalChain([data, 'access', _223 => _223.jsonApi, 'access', _224 => _224.meta, 'optionalAccess', _225 => _225.permissions]);
8726
+ this._permissions = _optionalChain([data, 'access', _246 => _246.jsonApi, 'access', _247 => _247.meta, 'optionalAccess', _248 => _248.permissions]);
8027
8727
  return this;
8028
8728
  }
8029
8729
  };
@@ -8199,18 +8899,18 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
8199
8899
  }), "ReferralStatsModule");
8200
8900
 
8201
8901
  // src/features/tokenusage/data/tokenusage-admin-breakdown.ts
8202
- var TokenUsageAdminBreakdown = (_class25 = class extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init57.call(this);_class25.prototype.__init58.call(this);_class25.prototype.__init59.call(this);_class25.prototype.__init60.call(this);_class25.prototype.__init61.call(this);_class25.prototype.__init62.call(this);_class25.prototype.__init63.call(this); }
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); }
8203
8903
  static {
8204
8904
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminBreakdown");
8205
8905
  }
8206
- __init57() {this._label = ""}
8906
+ __init58() {this._label = ""}
8207
8907
 
8208
- __init58() {this._cost = 0}
8209
- __init59() {this._credits = 0}
8210
- __init60() {this._tokensIn = 0}
8211
- __init61() {this._tokensOut = 0}
8212
- __init62() {this._cached = 0}
8213
- __init63() {this._calls = 0}
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}
8214
8914
 
8215
8915
 
8216
8916
 
@@ -8287,21 +8987,21 @@ var TokenUsageAdminBreakdown = (_class25 = class extends AbstractApiData {constr
8287
8987
  response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
8288
8988
  return response;
8289
8989
  }
8290
- }, _class25);
8990
+ }, _class26);
8291
8991
 
8292
8992
  // src/features/tokenusage/data/tokenusage-admin-summary.ts
8293
- var TokenUsageAdminSummary = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init64.call(this);_class26.prototype.__init65.call(this);_class26.prototype.__init66.call(this);_class26.prototype.__init67.call(this);_class26.prototype.__init68.call(this);_class26.prototype.__init69.call(this);_class26.prototype.__init70.call(this);_class26.prototype.__init71.call(this); }
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); }
8294
8994
  static {
8295
8995
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminSummary");
8296
8996
  }
8297
- __init64() {this._scope = ""}
8298
- __init65() {this._window = ""}
8299
- __init66() {this._cost = 0}
8300
- __init67() {this._credits = 0}
8301
- __init68() {this._tokensIn = 0}
8302
- __init69() {this._tokensOut = 0}
8303
- __init70() {this._cached = 0}
8304
- __init71() {this._calls = 0}
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}
8305
9005
  get scope() {
8306
9006
  return this._scope;
8307
9007
  }
@@ -8359,21 +9059,21 @@ var TokenUsageAdminSummary = (_class26 = class extends AbstractApiData {construc
8359
9059
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
8360
9060
  return response;
8361
9061
  }
8362
- }, _class26);
9062
+ }, _class27);
8363
9063
 
8364
9064
  // src/features/tokenusage/data/tokenusage-admin-timeline.ts
8365
- var TokenUsageAdminTimeline = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init72.call(this);_class27.prototype.__init73.call(this);_class27.prototype.__init74.call(this);_class27.prototype.__init75.call(this);_class27.prototype.__init76.call(this);_class27.prototype.__init77.call(this);_class27.prototype.__init78.call(this);_class27.prototype.__init79.call(this); }
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); }
8366
9066
  static {
8367
9067
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminTimeline");
8368
9068
  }
8369
- __init72() {this._bucket = /* @__PURE__ */ new Date(0)}
8370
- __init73() {this._series = ""}
8371
- __init74() {this._cost = 0}
8372
- __init75() {this._credits = 0}
8373
- __init76() {this._tokensIn = 0}
8374
- __init77() {this._tokensOut = 0}
8375
- __init78() {this._cached = 0}
8376
- __init79() {this._calls = 0}
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}
8377
9077
  get bucket() {
8378
9078
  return this._bucket;
8379
9079
  }
@@ -8431,7 +9131,7 @@ var TokenUsageAdminTimeline = (_class27 = class extends AbstractApiData {constru
8431
9131
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
8432
9132
  return response;
8433
9133
  }
8434
- }, _class27);
9134
+ }, _class28);
8435
9135
 
8436
9136
  // src/features/tokenusage/tokenusage-admin.module.ts
8437
9137
  var TokenUsageAdminSummaryModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary }), "TokenUsageAdminSummaryModule");
@@ -8439,18 +9139,18 @@ var TokenUsageAdminTimelineModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
8439
9139
  var TokenUsageAdminBreakdownModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/breakdown", model: TokenUsageAdminBreakdown }), "TokenUsageAdminBreakdownModule");
8440
9140
 
8441
9141
  // src/features/tokenusage/data/tokenusage-report-breakdown.ts
8442
- var TokenUsageReportBreakdown = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init80.call(this);_class28.prototype.__init81.call(this);_class28.prototype.__init82.call(this);_class28.prototype.__init83.call(this);_class28.prototype.__init84.call(this);_class28.prototype.__init85.call(this);_class28.prototype.__init86.call(this); }
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); }
8443
9143
  static {
8444
9144
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportBreakdown");
8445
9145
  }
8446
- __init80() {this._label = ""}
9146
+ __init81() {this._label = ""}
8447
9147
 
8448
- __init81() {this._cost = 0}
8449
- __init82() {this._credits = 0}
8450
- __init83() {this._tokensIn = 0}
8451
- __init84() {this._tokensOut = 0}
8452
- __init85() {this._cached = 0}
8453
- __init86() {this._calls = 0}
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}
8454
9154
  get label() {
8455
9155
  return this._label;
8456
9156
  }
@@ -8508,20 +9208,20 @@ var TokenUsageReportBreakdown = (_class28 = class extends AbstractApiData {const
8508
9208
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
8509
9209
  return response;
8510
9210
  }
8511
- }, _class28);
9211
+ }, _class29);
8512
9212
 
8513
9213
  // src/features/tokenusage/data/tokenusage-report-summary.ts
8514
- var TokenUsageReportSummary = (_class29 = class extends AbstractApiData {constructor(...args26) { super(...args26); _class29.prototype.__init87.call(this);_class29.prototype.__init88.call(this);_class29.prototype.__init89.call(this);_class29.prototype.__init90.call(this);_class29.prototype.__init91.call(this);_class29.prototype.__init92.call(this);_class29.prototype.__init93.call(this); }
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); }
8515
9215
  static {
8516
9216
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportSummary");
8517
9217
  }
8518
- __init87() {this._window = ""}
8519
- __init88() {this._cost = 0}
8520
- __init89() {this._credits = 0}
8521
- __init90() {this._tokensIn = 0}
8522
- __init91() {this._tokensOut = 0}
8523
- __init92() {this._cached = 0}
8524
- __init93() {this._calls = 0}
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}
8525
9225
  get window() {
8526
9226
  return this._window;
8527
9227
  }
@@ -8574,21 +9274,21 @@ var TokenUsageReportSummary = (_class29 = class extends AbstractApiData {constru
8574
9274
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
8575
9275
  return response;
8576
9276
  }
8577
- }, _class29);
9277
+ }, _class30);
8578
9278
 
8579
9279
  // src/features/tokenusage/data/tokenusage-report-timeline.ts
8580
- var TokenUsageReportTimeline = (_class30 = class extends AbstractApiData {constructor(...args27) { super(...args27); _class30.prototype.__init94.call(this);_class30.prototype.__init95.call(this);_class30.prototype.__init96.call(this);_class30.prototype.__init97.call(this);_class30.prototype.__init98.call(this);_class30.prototype.__init99.call(this);_class30.prototype.__init100.call(this);_class30.prototype.__init101.call(this); }
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); }
8581
9281
  static {
8582
9282
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportTimeline");
8583
9283
  }
8584
- __init94() {this._bucket = /* @__PURE__ */ new Date(0)}
8585
- __init95() {this._series = ""}
8586
- __init96() {this._cost = 0}
8587
- __init97() {this._credits = 0}
8588
- __init98() {this._tokensIn = 0}
8589
- __init99() {this._tokensOut = 0}
8590
- __init100() {this._cached = 0}
8591
- __init101() {this._calls = 0}
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}
8592
9292
  get bucket() {
8593
9293
  return this._bucket;
8594
9294
  }
@@ -8646,7 +9346,7 @@ var TokenUsageReportTimeline = (_class30 = class extends AbstractApiData {constr
8646
9346
  if (data.calls !== void 0) response.data.attributes.calls = data.calls;
8647
9347
  return response;
8648
9348
  }
8649
- }, _class30);
9349
+ }, _class31);
8650
9350
 
8651
9351
  // src/features/tokenusage/tokenusage.modules.ts
8652
9352
  var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
@@ -8673,11 +9373,11 @@ function getTokenUsageCurrency() {
8673
9373
  _chunk7QVYU63Ejs.__name.call(void 0, getTokenUsageCurrency, "getTokenUsageCurrency");
8674
9374
 
8675
9375
  // src/features/audit-log/data/audit-log.ts
8676
- var AuditLog = (_class31 = class extends AbstractApiData {constructor(...args28) { super(...args28); _class31.prototype.__init102.call(this); }
9376
+ var AuditLog = (_class32 = class extends AbstractApiData {constructor(...args29) { super(...args29); _class32.prototype.__init103.call(this); }
8677
9377
  static {
8678
9378
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
8679
9379
  }
8680
- __init102() {this._kind = "audit"}
9380
+ __init103() {this._kind = "audit"}
8681
9381
 
8682
9382
 
8683
9383
 
@@ -8724,7 +9424,7 @@ var AuditLog = (_class31 = class extends AbstractApiData {constructor(...args28)
8724
9424
  createJsonApi() {
8725
9425
  throw new Error("AuditLog is read-only");
8726
9426
  }
8727
- }, _class31);
9427
+ }, _class32);
8728
9428
 
8729
9429
  // src/features/audit-log/data/audit-log.service.ts
8730
9430
  var AuditLogService = class extends AbstractService {
@@ -8982,5 +9682,23 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
8982
9682
 
8983
9683
 
8984
9684
 
8985
- 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;
8986
- //# sourceMappingURL=chunk-6J2SQZ3G.js.map
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