@hahnpro/hpc-api 2026.5.1 → 2026.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "2026.5.1",
3
+ "version": "2026.5.2",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@microsoft/fetch-event-source": "2.0.1",
12
- "axios": "1.16.0",
12
+ "axios": "1.16.1",
13
13
  "eventsource": "4.1.0",
14
14
  "jose": "5.10.0",
15
15
  "jwt-decode": "4.0.0",
@@ -13,10 +13,6 @@ export declare enum ObjectReferenceType {
13
13
  * Object is linked to the AI-Thread's ID.'
14
14
  */
15
15
  UPDATED_BY_THREAD = "updated_by_thread",
16
- /**
17
- * Marks an Object as being part of the 'Weber Engineering - Flange Skill Control' to link the assets
18
- */
19
- FLANGE_SKILL_CONTROL_EXAMINEE_BOOKED_TIME_SLOT_IN_EXAMINATION = "flange_skill_control_examinee_booked_time_slot_in_examination",
20
16
  /**
21
17
  * Marks an Content as being referenced in an user message.
22
18
  */
@@ -17,10 +17,6 @@ var ObjectReferenceType;
17
17
  * Object is linked to the AI-Thread's ID.'
18
18
  */
19
19
  ObjectReferenceType["UPDATED_BY_THREAD"] = "updated_by_thread";
20
- /**
21
- * Marks an Object as being part of the 'Weber Engineering - Flange Skill Control' to link the assets
22
- */
23
- ObjectReferenceType["FLANGE_SKILL_CONTROL_EXAMINEE_BOOKED_TIME_SLOT_IN_EXAMINATION"] = "flange_skill_control_examinee_booked_time_slot_in_examination";
24
20
  /**
25
21
  * Marks an Content as being referenced in an user message.
26
22
  */
@@ -3,7 +3,7 @@ import { APIBase } from '../api-base';
3
3
  import { AiAssistant, AiAssistantId, Message, Paginated, SpeechToken, Thread, ThreadPopulated, TokenOption } from '../interfaces';
4
4
  export declare class AiService extends APIBase {
5
5
  constructor(httpClient: HttpClientService);
6
- addMessage(message: string, threadId?: string, assistantId?: AiAssistantId, context?: Record<string, unknown>): Promise<Message>;
6
+ addMessage(message: string, threadId?: string, assistantId?: AiAssistantId, context?: Record<string, unknown>, attachmentIds?: string[]): Promise<Message>;
7
7
  createThread(assistantId: AiAssistantId, isEphemeral?: boolean): Promise<ThreadPopulated>;
8
8
  getLatestAssistantThread(assistantId: AiAssistantId): Promise<ThreadPopulated>;
9
9
  listAssistantThreads(assistantId: AiAssistantId): Promise<ThreadPopulated[]>;
@@ -6,8 +6,8 @@ class AiService extends api_base_1.APIBase {
6
6
  constructor(httpClient) {
7
7
  super(httpClient, '/ai');
8
8
  }
9
- addMessage(message, threadId, assistantId, context) {
10
- return this.httpClient.post(`${this.basePath}/message`, { message, threadId, assistantId, context });
9
+ addMessage(message, threadId, assistantId, context, attachmentIds) {
10
+ return this.httpClient.post(`${this.basePath}/message`, { message, threadId, assistantId, context, attachmentIds });
11
11
  }
12
12
  createThread(assistantId, isEphemeral) {
13
13
  return this.httpClient.post(`${this.basePath}/threads`, { assistantId, isEphemeral });