@sinequa/atomic 2.11.0 → 2.12.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 (183) hide show
  1. package/README.md +75 -93
  2. package/dist/atomic.cjs +1 -1
  3. package/dist/atomic.js +1 -1
  4. package/dist/authentication/constants.d.ts +1 -1
  5. package/dist/authentication/events/auth-events.d.ts +2 -2
  6. package/dist/authentication/events/emit-authenticated-event.d.ts +1 -1
  7. package/dist/authentication/events/index.d.ts +2 -2
  8. package/dist/authentication/index.d.ts +4 -4
  9. package/dist/authentication/providers/index.d.ts +2 -2
  10. package/dist/authentication/providers/oauth-authentication.d.ts +1 -1
  11. package/dist/authentication/providers/redirect-to-identity-provider.d.ts +1 -1
  12. package/dist/authentication/providers/redirect-to-identity-provider.d.ts.map +1 -1
  13. package/dist/authentication/providers/saml-authentication.d.ts +1 -1
  14. package/dist/authentication/session/auth-mode-marker.d.ts +1 -1
  15. package/dist/authentication/session/auth-state.d.ts +1 -1
  16. package/dist/authentication/session/detect-auth-mode.d.ts +2 -2
  17. package/dist/authentication/session/has-session.d.ts +1 -1
  18. package/dist/authentication/session/index.d.ts +7 -7
  19. package/dist/authentication/session/login.d.ts +2 -2
  20. package/dist/authentication/session/logout.d.ts +4 -3
  21. package/dist/authentication/session/logout.d.ts.map +1 -1
  22. package/dist/authentication/session/redirect-guard.d.ts +1 -1
  23. package/dist/authentication/session/session-lost-latch.d.ts +1 -1
  24. package/dist/authentication/session/signed-out-guard.d.ts +1 -1
  25. package/dist/authentication/session/try-auto-authentication.d.ts +1 -1
  26. package/dist/authentication/session/try-auto-authentication.d.ts.map +1 -1
  27. package/dist/authentication/session/user-authentication.d.ts +1 -1
  28. package/dist/authentication/tokens/delete-web-token-cookie.d.ts +1 -1
  29. package/dist/authentication/tokens/delete-web-token-cookie.d.ts.map +1 -1
  30. package/dist/authentication/tokens/get-csrf-token.d.ts +1 -1
  31. package/dist/authentication/tokens/get-csrf-token.d.ts.map +1 -1
  32. package/dist/authentication/tokens/get-jwt-token.d.ts +2 -2
  33. package/dist/authentication/tokens/get-token.d.ts +1 -1
  34. package/dist/authentication/tokens/index.d.ts +5 -5
  35. package/dist/authentication/tokens/set-token.d.ts +1 -1
  36. package/dist/client/atomic-context.d.ts +4 -4
  37. package/dist/client/create-api.d.ts +49 -48
  38. package/dist/client/create-api.d.ts.map +1 -1
  39. package/dist/client/create-atomic-client.d.ts +8 -8
  40. package/dist/client/http-adapter.d.ts +1 -1
  41. package/dist/client/index.d.ts +4 -4
  42. package/dist/configurations/auth-options.d.ts +1 -1
  43. package/dist/configurations/global.config.d.ts +4 -4
  44. package/dist/configurations/index.d.ts +3 -3
  45. package/dist/helpers/aggregation-count.d.ts +3 -2
  46. package/dist/helpers/aggregation-count.d.ts.map +1 -1
  47. package/dist/helpers/column-resolver.d.ts +11 -3
  48. package/dist/helpers/column-resolver.d.ts.map +1 -1
  49. package/dist/helpers/columns.d.ts +1 -1
  50. package/dist/helpers/filters.d.ts +1 -1
  51. package/dist/helpers/index.d.ts +8 -8
  52. package/dist/helpers/metadata.d.ts +2 -2
  53. package/dist/helpers/pagination.d.ts +1 -1
  54. package/dist/helpers/to-aggregation-count.d.ts +11 -0
  55. package/dist/helpers/to-aggregation-count.d.ts.map +1 -0
  56. package/dist/index.d.ts +7 -7
  57. package/dist/polyfills/storage.d.ts +1 -1
  58. package/dist/spfx/index.cjs +1 -1
  59. package/dist/spfx/index.d.ts +3 -3
  60. package/dist/spfx/index.js +1 -1
  61. package/dist/src-CCjB0b1J.cjs +1 -0
  62. package/dist/{src-bQIJ_J2j.js → src-CK3j-Qz_.js} +819 -757
  63. package/dist/types/agent-workspace/index.d.ts +3 -3
  64. package/dist/types/aggregations/Aggregation.d.ts +2 -2
  65. package/dist/types/aggregations/ListAggregation.d.ts +1 -1
  66. package/dist/types/aggregations/TreeAggregation.d.ts +2 -2
  67. package/dist/types/aggregations/TreeAggregationNode.d.ts +1 -1
  68. package/dist/types/aggregations/index.d.ts +6 -6
  69. package/dist/types/audit/AuditEvent.d.ts +2 -2
  70. package/dist/types/audit/AuditRecord.d.ts +1 -1
  71. package/dist/types/audit/index.d.ts +4 -4
  72. package/dist/types/chunks/index.d.ts +2 -2
  73. package/dist/types/config/CCAggregation.d.ts +7 -1
  74. package/dist/types/config/CCAggregation.d.ts.map +1 -1
  75. package/dist/types/config/CCApp.d.ts +11 -7
  76. package/dist/types/config/CCApp.d.ts.map +1 -1
  77. package/dist/types/config/CCAppRefresh.d.ts +1 -1
  78. package/dist/types/config/CCAutocomplete.d.ts +1 -1
  79. package/dist/types/config/CCColumn.d.ts +3 -3
  80. package/dist/types/config/CCColumnsInfo.d.ts +1 -1
  81. package/dist/types/config/CCIndex.d.ts +2 -2
  82. package/dist/types/config/CCLabels.d.ts +1 -1
  83. package/dist/types/config/CCList.d.ts +2 -2
  84. package/dist/types/config/CCQuery.d.ts +9 -9
  85. package/dist/types/config/CCRFM.d.ts +1 -1
  86. package/dist/types/config/CCTab.d.ts +1 -1
  87. package/dist/types/config/CCTabSearch.d.ts +1 -1
  88. package/dist/types/config/CCWebService.d.ts +13 -1
  89. package/dist/types/config/CCWebService.d.ts.map +1 -1
  90. package/dist/types/config/index.d.ts +26 -26
  91. package/dist/types/filters/BetweenFilter.d.ts +1 -1
  92. package/dist/types/filters/ExprFilter.d.ts +1 -1
  93. package/dist/types/filters/InFilter.d.ts +1 -1
  94. package/dist/types/filters/NotNullFilter.d.ts +1 -1
  95. package/dist/types/filters/NullFilter.d.ts +1 -1
  96. package/dist/types/filters/SimpleFilter.d.ts +1 -1
  97. package/dist/types/filters/index.d.ts +8 -8
  98. package/dist/types/filters/legacy-filters.d.ts +1 -1
  99. package/dist/types/index.d.ts +19 -19
  100. package/dist/types/interfaces/Query.d.ts +5 -5
  101. package/dist/types/interfaces/index.d.ts +3 -3
  102. package/dist/types/link-results/index.d.ts +2 -2
  103. package/dist/types/link-results/links-results.d.ts +1 -1
  104. package/dist/types/preview/CategoryHighlightData.d.ts +1 -1
  105. package/dist/types/preview/HighlightDataPerCategory.d.ts +1 -1
  106. package/dist/types/preview/HighlightValue.d.ts +1 -1
  107. package/dist/types/preview/PreviewData.d.ts +4 -4
  108. package/dist/types/preview/index.d.ts +8 -8
  109. package/dist/types/principal/PrincipalChangedEvent.d.ts +1 -1
  110. package/dist/types/principal/index.d.ts +6 -6
  111. package/dist/types/search/AccessLists.d.ts +1 -1
  112. package/dist/types/search/Answer.d.ts +1 -1
  113. package/dist/types/search/Article.d.ts +5 -5
  114. package/dist/types/search/DidYouMean.d.ts +2 -2
  115. package/dist/types/search/DocumentAccessLists.d.ts +1 -1
  116. package/dist/types/search/MatchLocationsPerPartname.d.ts +1 -1
  117. package/dist/types/search/MatchingPassage.d.ts +1 -1
  118. package/dist/types/search/QueryAnalysis.d.ts +1 -1
  119. package/dist/types/search/QueryIntent.d.ts +4 -4
  120. package/dist/types/search/QueryIntentData.d.ts +2 -2
  121. package/dist/types/search/QueryIntentMatch.d.ts +1 -1
  122. package/dist/types/search/QueryIntentResponse.d.ts +1 -1
  123. package/dist/types/search/RFMActionDisplay.d.ts +1 -1
  124. package/dist/types/search/RFMData.d.ts +1 -1
  125. package/dist/types/search/Result.d.ts +17 -16
  126. package/dist/types/search/Result.d.ts.map +1 -1
  127. package/dist/types/search/TopPassage.d.ts +1 -1
  128. package/dist/types/search/index.d.ts +32 -32
  129. package/dist/types/security-principal/index.d.ts +1 -1
  130. package/dist/types/user-profile/user-profile.d.ts +5 -0
  131. package/dist/types/user-profile/user-profile.d.ts.map +1 -1
  132. package/dist/utils/aggregations.d.ts +3 -3
  133. package/dist/utils/index.d.ts +11 -11
  134. package/dist/utils/query-params.d.ts +1 -1
  135. package/dist/utils/to-sql.d.ts +1 -1
  136. package/dist/web-api/helpers/create-headers.d.ts +1 -1
  137. package/dist/web-api/helpers/errors/server-error.d.ts +1 -1
  138. package/dist/web-api/helpers/errors/timeout-error.d.ts +1 -1
  139. package/dist/web-api/helpers/errors/unauthorized-error.d.ts +1 -1
  140. package/dist/web-api/helpers/handle-response.d.ts +2 -2
  141. package/dist/web-api/helpers/handle-response.d.ts.map +1 -1
  142. package/dist/web-api/helpers/index.d.ts +16 -16
  143. package/dist/web-api/helpers/methods/del.d.ts +3 -3
  144. package/dist/web-api/helpers/methods/get.d.ts +3 -3
  145. package/dist/web-api/helpers/methods/patch-raw.d.ts +3 -3
  146. package/dist/web-api/helpers/methods/patch.d.ts +3 -3
  147. package/dist/web-api/helpers/methods/post.d.ts +3 -3
  148. package/dist/web-api/helpers/methods/put.d.ts +3 -3
  149. package/dist/web-api/helpers/methods/send-patch.d.ts +3 -3
  150. package/dist/web-api/helpers/methods/send-request.d.ts +2 -2
  151. package/dist/web-api/helpers/utils/build-request-url.d.ts +2 -2
  152. package/dist/web-api/helpers/utils/create-timeout-controller.d.ts +6 -1
  153. package/dist/web-api/helpers/utils/create-timeout-controller.d.ts.map +1 -1
  154. package/dist/web-api/helpers/utils/resolve-no-auto-authentication.d.ts +1 -1
  155. package/dist/web-api/index.d.ts +23 -23
  156. package/dist/web-api/v1/fetch-aggregation.d.ts +2 -2
  157. package/dist/web-api/v1/fetch-aggregation.d.ts.map +1 -1
  158. package/dist/web-api/v1/fetch-app.d.ts +2 -2
  159. package/dist/web-api/v1/fetch-audit.d.ts +2 -2
  160. package/dist/web-api/v1/fetch-dataset.d.ts +2 -2
  161. package/dist/web-api/v1/fetch-labels.d.ts +2 -2
  162. package/dist/web-api/v1/fetch-preview.d.ts +2 -2
  163. package/dist/web-api/v1/fetch-principal.d.ts +3 -3
  164. package/dist/web-api/v1/fetch-query-export.d.ts +9 -4
  165. package/dist/web-api/v1/fetch-query-export.d.ts.map +1 -1
  166. package/dist/web-api/v1/fetch-query-intent.d.ts +2 -2
  167. package/dist/web-api/v1/fetch-query.d.ts +3 -3
  168. package/dist/web-api/v1/fetch-security-principal.d.ts +2 -2
  169. package/dist/web-api/v1/fetch-similar-documents.d.ts +2 -2
  170. package/dist/web-api/v1/fetch-sponsored-links.d.ts +2 -2
  171. package/dist/web-api/v1/fetch-suggest.d.ts +2 -2
  172. package/dist/web-api/v1/fetch-text-chunk.d.ts +2 -2
  173. package/dist/web-api/v1/fetch-user-settings.d.ts +2 -2
  174. package/dist/web-api/v1/fetch-user-settings.d.ts.map +1 -1
  175. package/dist/web-api/v2/fetch-agent-workspace-status.d.ts +3 -3
  176. package/dist/web-api/v2/fetch-agent-workspace.d.ts +3 -3
  177. package/dist/web-api/v2/fetch-change-password.d.ts +1 -1
  178. package/dist/web-api/v2/fetch-forgot-password.d.ts +1 -1
  179. package/dist/web-api/v2/fetch-user-profile.d.ts +24 -6
  180. package/dist/web-api/v2/fetch-user-profile.d.ts.map +1 -1
  181. package/dist/web-api/v2/fetch-version.d.ts +1 -1
  182. package/package.json +2 -2
  183. package/dist/src-DwKhKgxj.cjs +0 -1
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Describes the "did you mean" results
3
3
  */
4
- import { SpellingCorrectionMode } from "../config";
5
- import { DidYouMeanItem } from "./DidYouMeanItem";
4
+ import { SpellingCorrectionMode } from "../config/index.js";
5
+ import { DidYouMeanItem } from "./DidYouMeanItem.js";
6
6
  export interface DidYouMean {
7
7
  spellingCorrectionMode: SpellingCorrectionMode;
8
8
  text: DidYouMeanItem;
@@ -1,4 +1,4 @@
1
- import { AccessLists } from "./AccessLists";
1
+ import { AccessLists } from "./AccessLists.js";
2
2
  /**
3
3
  * Describes the authorized and denied access lists for a document
4
4
  */
@@ -1,4 +1,4 @@
1
- import { PartnameMatchLocations } from "./PartnameMatchLocations";
1
+ import { PartnameMatchLocations } from "./PartnameMatchLocations.js";
2
2
  /**
3
3
  * Describes a set of partname match locations
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Passage } from ".";
1
+ import { Passage } from "./index.js";
2
2
  /**
3
3
  * A passage returned by ML Passage Ranking model
4
4
  */
@@ -1,4 +1,4 @@
1
- import { QueryAnalysisElement } from "./QueryAnalysisElement";
1
+ import { QueryAnalysisElement } from "./QueryAnalysisElement.js";
2
2
  /**
3
3
  * Describes an analysis of a query
4
4
  */
@@ -1,7 +1,7 @@
1
- import { QueryIntentAction } from "./QueryIntentAction";
2
- import { QueryIntentDatasets } from "./QueryIntentDatasets";
3
- import { QueryIntentEntity } from "./QueryIntentEntity";
4
- import { QueryIntentWord } from "./QueryIntentWord";
1
+ import { QueryIntentAction } from "./QueryIntentAction.js";
2
+ import { QueryIntentDatasets } from "./QueryIntentDatasets.js";
3
+ import { QueryIntentEntity } from "./QueryIntentEntity.js";
4
+ import { QueryIntentWord } from "./QueryIntentWord.js";
5
5
  /**
6
6
  * Describes a single query intent item
7
7
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Describes information to be sent to the server when executing a query for server-side query intent processing
3
3
  */
4
- import { QueryAnalysis } from "./QueryAnalysis";
5
- import { QueryIntent } from "./QueryIntent";
4
+ import { QueryAnalysis } from "./QueryAnalysis.js";
5
+ import { QueryIntent } from "./QueryIntent.js";
6
6
  /**
7
7
  * Describes information to be sent to the server when executing a query for server-side query intent processing
8
8
  */
@@ -1,4 +1,4 @@
1
- import { QueryIntentEntity } from "./QueryIntentEntity";
1
+ import { QueryIntentEntity } from "./QueryIntentEntity.js";
2
2
  /**
3
3
  * Describes a query intent match
4
4
  */
@@ -1,4 +1,4 @@
1
- import { QueryIntentMatch } from "./QueryIntentMatch";
1
+ import { QueryIntentMatch } from "./QueryIntentMatch.js";
2
2
  /**
3
3
  * Describes a query intent response
4
4
  */
@@ -1,4 +1,4 @@
1
- import { RFMDisplay } from "./RFMDisplay";
1
+ import { RFMDisplay } from "./RFMDisplay.js";
2
2
  /**
3
3
  * Describes the fields of an RFM action
4
4
  */
@@ -1,4 +1,4 @@
1
- import { RFMActionDisplay } from "./RFMActionDisplay";
1
+ import { RFMActionDisplay } from "./RFMActionDisplay.js";
2
2
  /**
3
3
  * Describes the RFM data returned with a set of results
4
4
  */
@@ -1,13 +1,13 @@
1
- import type { ApiError } from "../../web-api/helpers/errors/api-error";
2
- import { Aggregation, TreeAggregation } from "../aggregations";
3
- import { Answer } from "./Answer";
4
- import { Article } from "./Article";
5
- import { Attributes } from "./Attributes";
6
- import { DidYouMean } from "./DidYouMean";
7
- import { QueryAnalysis } from "./QueryAnalysis";
8
- import { QueryIntent } from "./QueryIntent";
9
- import { Tab } from "./Tab";
10
- import { TopPassage } from "./TopPassage";
1
+ import type { ApiError } from "../../web-api/helpers/errors/api-error.js";
2
+ import { Aggregation, TreeAggregation } from "../aggregations/index.js";
3
+ import { Answer } from "./Answer.js";
4
+ import { Article } from "./Article.js";
5
+ import { Attributes } from "./Attributes.js";
6
+ import { DidYouMean } from "./DidYouMean.js";
7
+ import { QueryAnalysis } from "./QueryAnalysis.js";
8
+ import { QueryIntent } from "./QueryIntent.js";
9
+ import { Tab } from "./Tab.js";
10
+ import { TopPassage } from "./TopPassage.js";
11
11
  /**
12
12
  * Describes the results of a **search** call to the query web service.
13
13
  *
@@ -48,13 +48,14 @@ export type Result = {
48
48
  passages?: TopPassage[];
49
49
  } | null;
50
50
  /**
51
- * Set by the client, never by the server: the request failed, and none of the fields above were
52
- * received.
51
+ * Never sent by the server, and **never set by `@sinequa/atomic`**: `fetchQuery`, `fetchBulkQuery`
52
+ * and the other request functions **throw** (`ApiError`, `ServerError`, `UnauthorizedError`) on any
53
+ * non-2xx answer instead of returning a result carrying the failure. A `Result` you hold is
54
+ * therefore always a real answer, and an empty one is a genuine "no match".
53
55
  *
54
- * It exists so a failure can be told apart from a corpus that legitimately matched nothing. Both
55
- * arrive as a result with no records, and a caller that only looks at `records` or `rowCount` reports
56
- * "no results" for a backend that is in fact broken — a 500 on a malformed filter, typically. Check
57
- * this field **before** concluding anything from an empty result.
56
+ * The field is declared for the clients that catch the error themselves and return `{ $error }`
57
+ * instead of rethrowing — typically the `QueryService` of `@sinequa/atomic-angular`. Check it only
58
+ * on a result coming from such a client; with this library, use `try/catch`.
58
59
  *
59
60
  * Prefixed with `$` like the other client-side addit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,WAAW,GAAG,eAAe,CAAC,EAAE,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Article } from "./Article";
1
+ import { Article } from "./Article.js";
2
2
  export type TopPassage = {
3
3
  id: number;
4
4
  index: string;
@@ -1,36 +1,36 @@
1
1
  export interface IMulti<T> {
2
2
  results: T[];
3
3
  }
4
- export type { AccessListPrincipal } from "./AccessListPrincipal";
5
- export type { AccessLists } from "./AccessLists";
6
- export type { Answer } from "./Answer";
7
- export type { Article } from "./Article";
8
- export type { Attributes } from "./Attributes";
9
- export type { DidYouMean } from "./DidYouMean";
10
- export type { DidYouMeanAction, DidYouMeanAppliedChange, DidYouMeanItem } from "./DidYouMeanItem";
11
- export { DidYouMeanKind } from "./DidYouMeanKind";
12
- export type { DocumentAccessLists } from "./DocumentAccessLists";
13
- export type { EntityItem } from "./EntityItem";
14
- export type { MatchingPassage } from "./MatchingPassage";
15
- export type { MatchLocationsPerPartname } from "./MatchLocationsPerPartname";
16
- export type { PartnameMatchLocations } from "./PartnameMatchLocations";
17
- export type { Passage } from "./Passage";
18
- export type { QueryAnalysis } from "./QueryAnalysis";
19
- export type { QueryAnalysisElement } from "./QueryAnalysisElement";
20
- export type { QueryIntent } from "./QueryIntent";
21
- export type { QueryIntentAction } from "./QueryIntentAction";
22
- export type { QueryIntentData } from "./QueryIntentData";
23
- export type { QueryIntentDatasets } from "./QueryIntentDatasets";
24
- export type { QueryIntentEntity } from "./QueryIntentEntity";
25
- export type { QueryIntentMatch } from "./QueryIntentMatch";
26
- export type { QueryIntentResponse } from "./QueryIntentResponse";
27
- export type { QueryIntentWord } from "./QueryIntentWord";
28
- export type { RelevantExtract } from "./RelevantExtract";
29
- export type { AggregateResult, Result } from "./Result";
30
- export type { RFMActionDisplay } from "./RFMActionDisplay";
31
- export type { RFMData } from "./RFMData";
32
- export { RFMDisplay } from "./RFMDisplay";
33
- export type { Tab } from "./Tab";
34
- export type { TermPresence } from "./TermPresence";
35
- export type { TopPassage } from "./TopPassage";
4
+ export type { AccessListPrincipal } from "./AccessListPrincipal.js";
5
+ export type { AccessLists } from "./AccessLists.js";
6
+ export type { Answer } from "./Answer.js";
7
+ export type { Article } from "./Article.js";
8
+ export type { Attributes } from "./Attributes.js";
9
+ export type { DidYouMean } from "./DidYouMean.js";
10
+ export type { DidYouMeanAction, DidYouMeanAppliedChange, DidYouMeanItem } from "./DidYouMeanItem.js";
11
+ export { DidYouMeanKind } from "./DidYouMeanKind.js";
12
+ export type { DocumentAccessLists } from "./DocumentAccessLists.js";
13
+ export type { EntityItem } from "./EntityItem.js";
14
+ export type { MatchingPassage } from "./MatchingPassage.js";
15
+ export type { MatchLocationsPerPartname } from "./MatchLocationsPerPartname.js";
16
+ export type { PartnameMatchLocations } from "./PartnameMatchLocations.js";
17
+ export type { Passage } from "./Passage.js";
18
+ export type { QueryAnalysis } from "./QueryAnalysis.js";
19
+ export type { QueryAnalysisElement } from "./QueryAnalysisElement.js";
20
+ export type { QueryIntent } from "./QueryIntent.js";
21
+ export type { QueryIntentAction } from "./QueryIntentAction.js";
22
+ export type { QueryIntentData } from "./QueryIntentData.js";
23
+ export type { QueryIntentDatasets } from "./QueryIntentDatasets.js";
24
+ export type { QueryIntentEntity } from "./QueryIntentEntity.js";
25
+ export type { QueryIntentMatch } from "./QueryIntentMatch.js";
26
+ export type { QueryIntentResponse } from "./QueryIntentResponse.js";
27
+ export type { QueryIntentWord } from "./QueryIntentWord.js";
28
+ export type { RelevantExtract } from "./RelevantExtract.js";
29
+ export type { AggregateResult, Result } from "./Result.js";
30
+ export type { RFMActionDisplay } from "./RFMActionDisplay.js";
31
+ export type { RFMData } from "./RFMData.js";
32
+ export { RFMDisplay } from "./RFMDisplay.js";
33
+ export type { Tab } from "./Tab.js";
34
+ export type { TermPresence } from "./TermPresence.js";
35
+ export type { TopPassage } from "./TopPassage.js";
36
36
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from "./security-principal";
1
+ export * from "./security-principal.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -28,4 +28,9 @@ export type UserProfileData = {
28
28
  /** List of skills */
29
29
  skills?: string;
30
30
  };
31
+ /**
32
+ * Path of a `customData` property, as `"preferences/obj"` or as segments (`["preferences", "obj"]`).
33
+ * Use the array form for a key that contains a `/`.
34
+ */
35
+ export type CustomDataPath = string | string[];
31
36
  //# sourceMappingURL=user-profile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../../src/types/user-profile/user-profile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../../src/types/user-profile/user-profile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Aggregation, AggregationItem, TreeAggregationNode } from "../types/aggregations";
2
- import { FilterOperator, LegacyFilter } from "../types/filters";
3
- import { Suggestion } from "../types/suggest/suggestion";
1
+ import { Aggregation, AggregationItem, TreeAggregationNode } from "../types/aggregations/index.js";
2
+ import { FilterOperator, LegacyFilter } from "../types/filters/index.js";
3
+ import { Suggestion } from "../types/suggest/suggestion.js";
4
4
  export type DateFilter = {
5
5
  label?: string;
6
6
  operator?: FilterOperator;
@@ -1,12 +1,12 @@
1
- export * from "./aggregations";
2
- export * from "./bisect";
3
- export * from "./concepts";
4
- export * from "./date";
5
- export * from "./is-not-input-event";
6
- export { configureLogger, debug, error, info, LogLevel, warn } from "./logger";
7
- export * from "./notification";
8
- export * from "./query-params";
9
- export * from "./syslang";
10
- export * from "./to-sql";
11
- export * from "./utilities";
1
+ export * from "./aggregations.js";
2
+ export * from "./bisect.js";
3
+ export * from "./concepts.js";
4
+ export * from "./date.js";
5
+ export * from "./is-not-input-event.js";
6
+ export { configureLogger, debug, error, info, LogLevel, warn } from "./logger.js";
7
+ export * from "./notification.js";
8
+ export * from "./query-params.js";
9
+ export * from "./syslang.js";
10
+ export * from "./to-sql.js";
11
+ export * from "./utilities.js";
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { LegacyFilter, Query } from "../types";
1
+ import { LegacyFilter, Query } from "../types/index.js";
2
2
  /**
3
3
  * `path`: hash of the search without the bang in form of `/search/all`
4
4
  * `filters`: filters associated to the query
@@ -1,4 +1,4 @@
1
- import { FieldValue } from "./aggregations";
1
+ import { FieldValue } from "./aggregations.js";
2
2
  /**
3
3
  * Formats a JavaScript value as its textual representation inside a Sinequa
4
4
  * SQL-like / fielded expression (e.g. `` field:`value` ``, `select`, or `open`
@@ -1,4 +1,4 @@
1
- import { type AtomicContext } from "../../client/atomic-context";
1
+ import { type AtomicContext } from "../../client/atomic-context.js";
2
2
  /**
3
3
  * Builds the headers of a request for a context: CSRF token, bearer token and impersonation.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ApiError } from "./api-error";
1
+ import { ApiError } from "./api-error.js";
2
2
  /**
3
3
  * Error thrown when server encounters an internal error
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ApiError } from "./api-error";
1
+ import { ApiError } from "./api-error.js";
2
2
  /**
3
3
  * Error thrown when request times out
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ApiError } from "./api-error";
1
+ import { ApiError } from "./api-error.js";
2
2
  /**
3
3
  * Error thrown when authentication fails
4
4
  */
@@ -1,5 +1,5 @@
1
- import { type AtomicContext } from "../../client/atomic-context";
2
- import type { AadHttpResponseLike } from "./aad-http-client-manager";
1
+ import { type AtomicContext } from "../../client/atomic-context.js";
2
+ import type { AadHttpResponseLike } from "./aad-http-client-manager.js";
3
3
  type ResponseLike = Response | AadHttpResponseLike;
4
4
  /**
5
5
  * Handles the response from the web API.
@@ -1 +1 @@
1
- {"version":3,"file":"handle-response.d.ts","sourceRoot":"","sources":["../../../src/web-api/helpers/handle-response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,KAAK,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB,GAC3E,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB;AAC5E;;;;GAIG;AACH,QAAQ,SAAqB,GAC5B,OAAO,CAAC,CAAC,CAAC,CAmEZ"}
1
+ {"version":3,"file":"handle-response.d.ts","sourceRoot":"","sources":["../../../src/web-api/helpers/handle-response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,KAAK,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB,GAC3E,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB;AAC5E;;;;GAIG;AACH,QAAQ,SAAqB,GAC5B,OAAO,CAAC,CAAC,CAAC,CAwEZ"}
@@ -1,17 +1,17 @@
1
- export * from "./create-headers";
2
- export * from "./errors/api-error";
3
- export * from "./errors/server-error";
4
- export * from "./errors/timeout-error";
5
- export * from "./errors/unauthorized-error";
6
- export * from "./handle-response";
7
- export * from "./methods/del";
8
- export * from "./methods/get";
9
- export * from "./methods/patch";
10
- export * from "./methods/post";
11
- export * from "./methods/put";
12
- export * from "./request-options";
13
- export * from "./utils/create-timeout-controller";
14
- export * from "./utils/date-utils";
15
- export * from "./utils/resolve-no-auto-authentication";
16
- export * from "./utils/with-retry";
1
+ export * from "./create-headers.js";
2
+ export * from "./errors/api-error.js";
3
+ export * from "./errors/server-error.js";
4
+ export * from "./errors/timeout-error.js";
5
+ export * from "./errors/unauthorized-error.js";
6
+ export * from "./handle-response.js";
7
+ export * from "./methods/del.js";
8
+ export * from "./methods/get.js";
9
+ export * from "./methods/patch.js";
10
+ export * from "./methods/post.js";
11
+ export * from "./methods/put.js";
12
+ export * from "./request-options.js";
13
+ export * from "./utils/create-timeout-controller.js";
14
+ export * from "./utils/date-utils.js";
15
+ export * from "./utils/resolve-no-auto-authentication.js";
16
+ export * from "./utils/with-retry.js";
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /** Options of a DELETE request: the shared ones, plus an optional JSON payload. */
5
5
  export type DeleteOptions = RequestOptions & {
6
6
  body?: Record<string, unknown>;
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /** Makes a GET request on the given context. */
5
5
  export declare function getWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, params?: URLSearchParams, options?: RequestOptions): Promise<T>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import type { AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import type { AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /**
5
5
  * Internal: makes a PATCH request on the given context whose body is `value` itself, JSON-encoded.
6
6
  * Deliberately not re-exported from `helpers/index.ts`, so it stays out of the public API.
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /** Makes a PATCH request on the given context. */
5
5
  export declare function patchWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /** Makes a POST request on the given context. */
5
5
  export declare function postWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /** Makes a PUT request on the given context. */
5
5
  export declare function putWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
3
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
+ import type { RequestOptions } from "../request-options.js";
4
4
  /**
5
5
  * Internal: sends an already-serialized JSON `body` as a PATCH. Shared by `patchWithContext` (which
6
6
  * builds the enveloped body) and `patchRawWithContext` (which sends the bare value).
@@ -1,5 +1,5 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
2
- import type { RequestOptions } from "../request-options";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { RequestOptions } from "../request-options.js";
3
3
  /**
4
4
  * Issues the request on the context's transport — its `HttpAdapter` when one is configured (SPFx),
5
5
  * the resolved `fetch` otherwise — and hands the response to `handleResponse`.
@@ -1,5 +1,5 @@
1
- import type { AtomicContext } from "../../../client/atomic-context";
2
- import type { API_ENDPOINTS } from "../../../types";
1
+ import type { AtomicContext } from "../../../client/atomic-context.js";
2
+ import type { API_ENDPOINTS } from "../../../types/index.js";
3
3
  /**
4
4
  * Builds the absolute request URL for an endpoint.
5
5
  *
@@ -1,10 +1,15 @@
1
1
  /**
2
2
  * Crée un AbortController avec un timeout
3
3
  * @param timeoutMs - Temps en millisecondes avant expiration
4
- * @returns Un objet contenant le controller et le signal
4
+ * @returns Un objet contenant le controller, le signal et `dispose()`, qui annule le timer.
5
+ *
6
+ * Le timer est `unref`é sous Node (il ne retient pas le process), et annulé dès que le signal est
7
+ * aborté — par le timeout ou à la main. Appeler `dispose()` quand la requête est terminée libère le
8
+ * timer sans attendre son échéance.
5
9
  */
6
10
  export declare function createTimeoutController(timeoutMs?: number): {
7
11
  controller: AbortController;
8
12
  signal: AbortSignal;
13
+ dispose: () => void;
9
14
  };
10
15
  //# sourceMappingURL=create-timeout-controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-timeout-controller.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/utils/create-timeout-controller.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG;IAC3D,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;CACrB,CAaA"}
1
+ {"version":3,"file":"create-timeout-controller.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/utils/create-timeout-controller.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG;IAC3D,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAqBA"}
@@ -1,4 +1,4 @@
1
- import { type AtomicContext } from "../../../client/atomic-context";
1
+ import { type AtomicContext } from "../../../client/atomic-context.js";
2
2
  /**
3
3
  * Resolves the `noAutoAuthentication` flag sent on data requests.
4
4
  *
@@ -1,24 +1,24 @@
1
- export * from "./helpers";
2
- export * from "./v1/fetch-aggregation";
3
- export * from "./v1/fetch-app";
4
- export * from "./v1/fetch-audit";
5
- export * from "./v1/fetch-dataset";
6
- export * from "./v1/fetch-labels";
7
- export * from "./v1/fetch-preview";
8
- export * from "./v1/fetch-principal";
9
- export * from "./v1/fetch-query";
10
- export * from "./v1/fetch-query-export";
11
- export * from "./v1/fetch-query-intent";
12
- export * from "./v1/fetch-security-principal";
13
- export * from "./v1/fetch-similar-documents";
14
- export * from "./v1/fetch-sponsored-links";
15
- export * from "./v1/fetch-suggest";
16
- export * from "./v1/fetch-text-chunk";
17
- export * from "./v1/fetch-user-settings";
18
- export * from "./v2/fetch-change-password";
19
- export * from "./v2/fetch-agent-workspace";
20
- export * from "./v2/fetch-agent-workspace-status";
21
- export * from "./v2/fetch-forgot-password";
22
- export * from "./v2/fetch-user-profile";
23
- export * from "./v2/fetch-version";
1
+ export * from "./helpers/index.js";
2
+ export * from "./v1/fetch-aggregation.js";
3
+ export * from "./v1/fetch-app.js";
4
+ export * from "./v1/fetch-audit.js";
5
+ export * from "./v1/fetch-dataset.js";
6
+ export * from "./v1/fetch-labels.js";
7
+ export * from "./v1/fetch-preview.js";
8
+ export * from "./v1/fetch-principal.js";
9
+ export * from "./v1/fetch-query.js";
10
+ export * from "./v1/fetch-query-export.js";
11
+ export * from "./v1/fetch-query-intent.js";
12
+ export * from "./v1/fetch-security-principal.js";
13
+ export * from "./v1/fetch-similar-documents.js";
14
+ export * from "./v1/fetch-sponsored-links.js";
15
+ export * from "./v1/fetch-suggest.js";
16
+ export * from "./v1/fetch-text-chunk.js";
17
+ export * from "./v1/fetch-user-settings.js";
18
+ export * from "./v2/fetch-change-password.js";
19
+ export * from "./v2/fetch-agent-workspace.js";
20
+ export * from "./v2/fetch-agent-workspace-status.js";
21
+ export * from "./v2/fetch-forgot-password.js";
22
+ export * from "./v2/fetch-user-profile.js";
23
+ export * from "./v2/fetch-version.js";
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { type AtomicContext } from "../../client/atomic-context";
2
- import { Aggregation, AuditEvents, Query } from "../../types";
1
+ import { type AtomicContext } from "../../client/atomic-context.js";
2
+ import { Aggregation, AuditEvents, Query } from "../../types/index.js";
3
3
  /**
4
4
  * Fetches the next slice of a single aggregation's items — what a facet's "load more" does.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-aggregation.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AAEjF,OAAO,EAAmB,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,KAAK,CAAC,EAAE,WAAW,EACnB,KAAK,CAAC,EAAE,MAAM,EAId,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,WAAW,CAAC,CA8BtB"}
1
+ {"version":3,"file":"fetch-aggregation.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AAGjF,OAAO,EAAmB,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,KAAK,CAAC,EAAE,WAAW,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,WAAW,CAAC,CAiCtB"}
@@ -1,5 +1,5 @@
1
- import { type AtomicContext } from "../../client/atomic-context";
2
- import type { CCApp, CCAppPreLogin } from "../../types";
1
+ import { type AtomicContext } from "../../client/atomic-context.js";
2
+ import type { CCApp, CCAppPreLogin } from "../../types/index.js";
3
3
  /**
4
4
  * Fetches the CCApp object.
5
5
  * @param appName - Optional app name to fetch. Defaults to the context's `app` if not provided.
@@ -1,5 +1,5 @@
1
- import { type AtomicContext } from "../../client/atomic-context";
2
- import { AuditEvents, AuditRecord } from "../../types";
1
+ import { type AtomicContext } from "../../client/atomic-context.js";
2
+ import { AuditEvents, AuditRecord } from "../../types/index.js";
3
3
  /**
4
4
  * Adds additional audit information to the provided body object.
5
5
  *