@hahnpro/hpc-api 2025.2.15 → 2025.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hahnpro/hpc-api
2
2
 
3
+ ## 2025.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - URL and method of the `asset::getEventLevelOverride` and `asset:updateEventCausesAsset` have been changed.
8
+
3
9
  ## 2025.2.15
4
10
 
5
11
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "2025.2.15",
3
+ "version": "2025.3.1",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "axios": "1.10.0",
12
12
  "eventsource": "4.0.0",
13
- "form-data": "4.0.3",
13
+ "form-data": "4.0.4",
14
14
  "jose": "5.10.0",
15
15
  "jwt-decode": "4.0.0",
16
16
  "p-queue": "6.6.2",
@@ -65,6 +65,7 @@ export interface UserMessage extends BaseMessage {
65
65
  role: 'user';
66
66
  content?: string;
67
67
  hidden?: boolean;
68
+ useWebSearch?: boolean;
68
69
  }
69
70
  export type Message = AssistantMessage | SystemMessage | ToolMessage | UserMessage;
70
71
  export interface SpeechToken {
@@ -34,13 +34,10 @@ class AssetService extends BaseService {
34
34
  return this.httpClient.get(`${this.basePath}/${assetId}/attachments`, options);
35
35
  }
36
36
  getEventLevelOverride(ids, causes, options = {}) {
37
- return this.httpClient.get(`${this.basePath}/eventcauses`, {
38
- params: { ids: ids.join(','), causes: causes.join(',') },
39
- ...options,
40
- });
37
+ return this.httpClient.post(`${this.basePath}/event-causes`, { ids, causes }, options);
41
38
  }
42
39
  updateEventCausesAsset(id, dto, options = {}) {
43
- return this.httpClient.put(`${this.basePath}/${id}/eventcauses`, dto, options);
40
+ return this.httpClient.put(`${this.basePath}/${id}/event-causes`, dto, options);
44
41
  }
45
42
  getRevisions(assetId, options = {}) {
46
43
  return this.httpClient.get(`${this.basePath}/${assetId}/revisions`, options);