@hahnpro/hpc-api 2026.5.1 → 2026.5.3

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,9 @@
1
1
  # @hahnpro/hpc-api
2
2
 
3
+ # 2026.5.3
4
+
5
+ - Added ErrorMessage Interface and ErrorMessageType Enum
6
+
3
7
  # 2026.4.5
4
8
 
5
9
  - Added UserMessage Attachment as ObjectReference
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.3",
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",
@@ -30,7 +30,14 @@ export declare enum Role {
30
30
  USER = "user",
31
31
  ASSISTANT = "assistant",
32
32
  SYSTEM = "system",
33
- TOOL = "tool"
33
+ TOOL = "tool",
34
+ ERROR = "error"
35
+ }
36
+ export declare enum ErrorMessageType {
37
+ ABORTED = "ai.aborted_message",
38
+ ABORT_FAILED = "ai.failed_to_abort_message",
39
+ FAILED_TO_PROCESS = "ai.failed_to_process_message",
40
+ INVALID_MESSAGE = "ai.invalid_message"
34
41
  }
35
42
  export declare enum ToolType {
36
43
  HANDOFF = "handoff",
@@ -123,6 +130,10 @@ export interface ResourceSelectionRejected {
123
130
  rejected: true;
124
131
  message: string;
125
132
  }
133
+ export interface MessageAttachment {
134
+ filename: string;
135
+ text: string;
136
+ }
126
137
  interface AssistantLabels {
127
138
  name: string;
128
139
  description?: string;
@@ -171,6 +182,11 @@ export interface AssistantMessage extends BaseMessage {
171
182
  export interface SystemMessage extends BaseMessage {
172
183
  role: Role.SYSTEM;
173
184
  }
185
+ export interface ErrorMessage extends BaseMessage {
186
+ role: Role.ERROR;
187
+ error?: string;
188
+ type: ErrorMessageType;
189
+ }
174
190
  export interface ToolMessage extends BaseMessage {
175
191
  role: Role.TOOL;
176
192
  toolCallId?: string;
@@ -187,8 +203,9 @@ export interface UserMessage extends BaseMessage {
187
203
  content?: string;
188
204
  hidden?: boolean;
189
205
  useWebSearch?: boolean;
206
+ attachments?: MessageAttachment[];
190
207
  }
191
- export type Message = AssistantMessage | SystemMessage | ToolMessage | UserMessage;
208
+ export type Message = AssistantMessage | SystemMessage | ToolMessage | UserMessage | ErrorMessage;
192
209
  export interface SpeechToken {
193
210
  token: string;
194
211
  region: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiAssistantId = exports.HandOffTool = exports.ReturnToReferrerTool = exports.ToolName = exports.AgentId = exports.ReferenceType = exports.ToolType = exports.Role = exports.AvailableLanguages = exports.FinishReason = exports.ToolMessageStatus = exports.AssistantMessageStatus = void 0;
3
+ exports.AiAssistantId = exports.HandOffTool = exports.ReturnToReferrerTool = exports.ToolName = exports.AgentId = exports.ReferenceType = exports.ToolType = exports.ErrorMessageType = exports.Role = exports.AvailableLanguages = exports.FinishReason = exports.ToolMessageStatus = exports.AssistantMessageStatus = void 0;
4
4
  var AssistantMessageStatus;
5
5
  (function (AssistantMessageStatus) {
6
6
  AssistantMessageStatus["ABORTING"] = "aborting";
@@ -38,7 +38,15 @@ var Role;
38
38
  Role["ASSISTANT"] = "assistant";
39
39
  Role["SYSTEM"] = "system";
40
40
  Role["TOOL"] = "tool";
41
+ Role["ERROR"] = "error";
41
42
  })(Role || (exports.Role = Role = {}));
43
+ var ErrorMessageType;
44
+ (function (ErrorMessageType) {
45
+ ErrorMessageType["ABORTED"] = "ai.aborted_message";
46
+ ErrorMessageType["ABORT_FAILED"] = "ai.failed_to_abort_message";
47
+ ErrorMessageType["FAILED_TO_PROCESS"] = "ai.failed_to_process_message";
48
+ ErrorMessageType["INVALID_MESSAGE"] = "ai.invalid_message";
49
+ })(ErrorMessageType || (exports.ErrorMessageType = ErrorMessageType = {}));
42
50
  var ToolType;
43
51
  (function (ToolType) {
44
52
  ToolType["HANDOFF"] = "handoff";
@@ -30,7 +30,7 @@ export interface ContentSearchResult extends SearchResultItem {
30
30
  export declare class ContentAnalysis {
31
31
  id: string;
32
32
  contentId: string;
33
- status: string | 'notStarted' | 'running' | 'failed' | 'succeeded' | 'completed' | 'canceled';
33
+ status: ContentAnalysisStatus;
34
34
  error?: string;
35
35
  text?: string;
36
36
  pages?: {
@@ -49,6 +49,14 @@ export declare enum IndexingStatus {
49
49
  QUEUED = "queued",
50
50
  PARTIALLY_FAILED = "partiallyFailed"
51
51
  }
52
+ export declare enum ContentAnalysisStatus {
53
+ NOT_STARTED = "notStarted",
54
+ RUNNING = "running",
55
+ FAILED = "failed",
56
+ SUCCEEDED = "succeeded",
57
+ COMPLETED = "completed",
58
+ CANCELED = "canceled"
59
+ }
52
60
  export interface IndexingStatusData {
53
61
  id: string;
54
62
  status: IndexingStatus;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReturnType = exports.IndexingStatus = exports.ContentAnalysis = void 0;
3
+ exports.ReturnType = exports.ContentAnalysisStatus = exports.IndexingStatus = exports.ContentAnalysis = void 0;
4
4
  class ContentAnalysis {
5
5
  }
6
6
  exports.ContentAnalysis = ContentAnalysis;
@@ -12,6 +12,15 @@ var IndexingStatus;
12
12
  IndexingStatus["QUEUED"] = "queued";
13
13
  IndexingStatus["PARTIALLY_FAILED"] = "partiallyFailed";
14
14
  })(IndexingStatus || (exports.IndexingStatus = IndexingStatus = {}));
15
+ var ContentAnalysisStatus;
16
+ (function (ContentAnalysisStatus) {
17
+ ContentAnalysisStatus["NOT_STARTED"] = "notStarted";
18
+ ContentAnalysisStatus["RUNNING"] = "running";
19
+ ContentAnalysisStatus["FAILED"] = "failed";
20
+ ContentAnalysisStatus["SUCCEEDED"] = "succeeded";
21
+ ContentAnalysisStatus["COMPLETED"] = "completed";
22
+ ContentAnalysisStatus["CANCELED"] = "canceled";
23
+ })(ContentAnalysisStatus || (exports.ContentAnalysisStatus = ContentAnalysisStatus = {}));
15
24
  var ReturnType;
16
25
  (function (ReturnType) {
17
26
  ReturnType[ReturnType["TEXT"] = 0] = "TEXT";
@@ -0,0 +1,81 @@
1
+ export declare enum APPLICATION_AREA {
2
+ GENERAL = "general",
3
+ EQUIPMENT_INSTALLATION = "equipment_installation",
4
+ SMALL_DIAMETER_INSTALLATIONS = "small_diameter_installations"
5
+ }
6
+ export declare enum TimeSlotStatus {
7
+ IN_CONFIGURATION = "in_configuration",
8
+ DIAL_IN_STARTED = "dial_in_started",
9
+ STARTED_FOR_EXAMINATION = "started_for_examination"
10
+ }
11
+ export interface WorkStation {
12
+ /**
13
+ * The name of the workstation.
14
+ */
15
+ name: string;
16
+ /**
17
+ * The number of slots available at this workstation to work on.
18
+ */
19
+ slots: number;
20
+ /**
21
+ * The ids of the exercises that can be worked on at this workstation.
22
+ */
23
+ exercise_ids: string[];
24
+ /**
25
+ * The application areas of the selected exercises
26
+ *
27
+ * IMPORTANT: only set automatically depending on the application areas of the exercises
28
+ * that are assigned to this workstation
29
+ */
30
+ application_areas: APPLICATION_AREA[];
31
+ }
32
+ export interface BookedExaminee {
33
+ id: string;
34
+ application_area: APPLICATION_AREA;
35
+ }
36
+ export interface TimeSlot {
37
+ readonly id: string;
38
+ status: TimeSlotStatus;
39
+ examiners: string[];
40
+ booked_examinees: BookedExaminee[];
41
+ date: string;
42
+ start_time: string;
43
+ end_time: string;
44
+ location: string;
45
+ total_slots: number;
46
+ work_stations?: WorkStation[];
47
+ mandatory_exercise?: string;
48
+ exercise_pool_for_application_area_general?: string[];
49
+ }
50
+ export interface ReviewScore {
51
+ min_inclusive: number;
52
+ max_inclusive: number;
53
+ description: string;
54
+ }
55
+ export interface Examination {
56
+ /**
57
+ * The Asset ids of the Stahl-Wille-Wrenches that are part of this examination.
58
+ */
59
+ stahl_willie_wrenches: string[];
60
+ /**
61
+ * The workstation determines which tasks can be completed and, consequently,
62
+ * which tasks can be selected in this examination.
63
+ */
64
+ work_stations: WorkStation[];
65
+ /**
66
+ * The mandatory exercise for every examinee
67
+ */
68
+ mandatory_exercise: string;
69
+ /**
70
+ * The exercise pool for all examinees in the application area 'general'
71
+ */
72
+ exercise_pool_for_application_area_general: string[];
73
+ /**
74
+ * The time slots of the examination
75
+ */
76
+ time_slots: TimeSlot[];
77
+ /**
78
+ * The review scores for this examination. The review scores are used to determine the final score of an examinee based on the points they achieved in the examination.
79
+ */
80
+ review_scores: ReviewScore[];
81
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimeSlotStatus = exports.APPLICATION_AREA = void 0;
4
+ var APPLICATION_AREA;
5
+ (function (APPLICATION_AREA) {
6
+ APPLICATION_AREA["GENERAL"] = "general";
7
+ APPLICATION_AREA["EQUIPMENT_INSTALLATION"] = "equipment_installation";
8
+ APPLICATION_AREA["SMALL_DIAMETER_INSTALLATIONS"] = "small_diameter_installations";
9
+ })(APPLICATION_AREA || (exports.APPLICATION_AREA = APPLICATION_AREA = {}));
10
+ var TimeSlotStatus;
11
+ (function (TimeSlotStatus) {
12
+ TimeSlotStatus["IN_CONFIGURATION"] = "in_configuration";
13
+ TimeSlotStatus["DIAL_IN_STARTED"] = "dial_in_started";
14
+ TimeSlotStatus["STARTED_FOR_EXAMINATION"] = "started_for_examination";
15
+ })(TimeSlotStatus || (exports.TimeSlotStatus = TimeSlotStatus = {}));
@@ -1,4 +1,4 @@
1
- export type { AiAssistant, AssetResourceSelectionOption, AssistantMessage, DocumentResourceSelectionOption, GenericResourceSelectionOption, LogbookEntryResourceSelectionOption, Message, ResourceSelectionOption, ResourceSelectionRejected, SpeechToken, SystemMessage, Thread, ThreadPopulated, ToolMessage, ToolNameType, UserMessage, } from './ai.interface';
1
+ export type { AiAssistant, AssetResourceSelectionOption, AssistantMessage, DocumentResourceSelectionOption, ErrorMessage, GenericResourceSelectionOption, LogbookEntryResourceSelectionOption, Message, MessageAttachment, ResourceSelectionOption, ResourceSelectionRejected, SpeechToken, SystemMessage, Thread, ThreadPopulated, ToolMessage, ToolNameType, UserMessage, } from './ai.interface';
2
2
  export type { Alert, AlertCondition, TimeSeriesReference, UpdatedField } from './alert.interface';
3
3
  export type { Api, Change, ChangeSubject, ObjectIdLike } from './api.interface';
4
4
  export type { AddToProperty, Asset, AssetChange, AssetRevision, AssetSubject, AssetTimeSeriesValue, AssetType, AssetTypeRevision, AssetTypeSearchResult, Attachment, EventCause, EventLevelOverride, RemoveFromProperty, Template, } from './asset.interface';
@@ -11,6 +11,7 @@ export type { DataInterface, Filter, Paginated, RequestParameter } from './data.
11
11
  export type { EdgeDeviceRequestResponse, EdgeDeviceResult, WebIOData } from './edge-device.interface';
12
12
  export type { AdditionalNotificationData, Endpoint, EndpointConfig, EndpointLog, NotificationEndpoint, NotificationEndpointLog, NotificationLogType, NotificationPayload, SearchEndpointResult, } from './endpoint.interface';
13
13
  export type { CreateEventDto, Event, EventCountByAsset } from './event.interface';
14
+ export type { Examination, WorkStation, ReviewScore, TimeSlot, BookedExaminee } from './flange-skill-control.interface';
14
15
  export type { FlowConnection, FlowDeploymentMetrics, FlowDeploymentStatistic, FlowElement, FlowLog, FlowModel, Metrics, Stats, StatsValues, } from './flow-deployment.interface';
15
16
  export type { BillingEventsData, DeploymentId, DeploymentTriggerResponse, Executor, ExecutorEnvironment, ExecutorEventType, ExecutorId, ExecutorStats, WorkerId, } from './flow-executor.interface';
16
17
  export type { DataDescription, FlowFunction, FlowFunctionDto, FlowFunctionRevision, SearchFlowTypeResult, Stream, } from './flow-function.interface';
@@ -41,14 +42,15 @@ export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, Time
41
42
  export type { Translation, TranslationData } from './translation.interface';
42
43
  export type { Application, Consent, Permission, TableSetting, TableSettingProfile, UserSettings } from './user-settings.interface';
43
44
  export type { KVSecretVersion, VaultSecret } from './vault.interface';
44
- export { AgentId, AiAssistantId, AssistantMessageStatus, AvailableLanguages, FinishReason, HandOffTool, ReferenceType, ReturnToReferrerTool, Role, ToolMessageStatus, ToolName, ToolType, } from './ai.interface';
45
+ export { AgentId, AiAssistantId, AssistantMessageStatus, AvailableLanguages, ErrorMessageType, FinishReason, HandOffTool, ReferenceType, ReturnToReferrerTool, Role, ToolMessageStatus, ToolName, ToolType, } from './ai.interface';
45
46
  export { AlertLevel, AlertStatus, AlertType, DEFAULT_DEADMAN_CONDITION, DEFAULT_RELATIVE_CONDITION, DEFAULT_THRESHOLD_CONDITION, } from './alert.interface';
46
47
  export { ChangeAction } from './api.interface';
47
48
  export { BillingResourceType } from './billing.interface';
48
- export { IndexingStatus, ReturnType } from './content.interface';
49
+ export { ContentAnalysisStatus, IndexingStatus, ReturnType } from './content.interface';
49
50
  export { instanceOfTimePeriod } from './data.interface';
50
51
  export { NotificationEndpointSpamProtection, NotificationEndpointStatus, NotificationEndpointType } from './endpoint.interface';
51
52
  export { EventLevel, EventLevelOverrideWrapper, eventLevels } from './event.interface';
53
+ export { APPLICATION_AREA, TimeSlotStatus } from './flange-skill-control.interface';
52
54
  export { ERROR_STATES, FlowDeploymentStatus, PROCESSING_STATES, RUNNING_STATES, STOPPED_STATES, UNKOWN_STATES, } from './flow-deployment-status.interface';
53
55
  export { FlowDeployment } from './flow-deployment.interface';
54
56
  export { Flow, FlowDiagram } from './flow.interface';
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommandType = exports.arePopulated = exports.ObjectReferenceType = exports.OwnerType = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = exports.FlowDiagram = exports.Flow = exports.FlowDeployment = exports.UNKOWN_STATES = exports.STOPPED_STATES = exports.RUNNING_STATES = exports.PROCESSING_STATES = exports.FlowDeploymentStatus = exports.ERROR_STATES = exports.eventLevels = exports.EventLevelOverrideWrapper = exports.EventLevel = exports.NotificationEndpointType = exports.NotificationEndpointStatus = exports.NotificationEndpointSpamProtection = exports.instanceOfTimePeriod = exports.ReturnType = exports.IndexingStatus = exports.BillingResourceType = exports.ChangeAction = exports.DEFAULT_THRESHOLD_CONDITION = exports.DEFAULT_RELATIVE_CONDITION = exports.DEFAULT_DEADMAN_CONDITION = exports.AlertType = exports.AlertStatus = exports.AlertLevel = exports.ToolType = exports.ToolName = exports.ToolMessageStatus = exports.Role = exports.ReturnToReferrerTool = exports.ReferenceType = exports.HandOffTool = exports.FinishReason = exports.AvailableLanguages = exports.AssistantMessageStatus = exports.AiAssistantId = exports.AgentId = void 0;
4
- exports.WebSocketMessageType = exports.SecretType = exports.isUserMessage = exports.isTask = exports.isStorage = exports.isOwner = exports.isLogbookEntry = exports.isEvent = exports.isContentAnalysis = exports.isContent = exports.isAuthor = exports.isAssignee = exports.isAsset = exports.TranslationEditData = exports.RETENTION_VALUES = exports.TaskStatus = exports.Priority = exports.INACTIVE_TASK_STATUSES = exports.buildTaskStatusFilter = exports.AssigneeType = exports.ACTIVE_TASK_STATUSES = exports.ResourceType = exports.resourceApiPathToTypeMap = exports.ResourceApiPath = exports.PermissionType = exports.isPopulated = exports.EventType = void 0;
3
+ exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = exports.FlowDiagram = exports.Flow = exports.FlowDeployment = exports.UNKOWN_STATES = exports.STOPPED_STATES = exports.RUNNING_STATES = exports.PROCESSING_STATES = exports.FlowDeploymentStatus = exports.ERROR_STATES = exports.TimeSlotStatus = exports.APPLICATION_AREA = exports.eventLevels = exports.EventLevelOverrideWrapper = exports.EventLevel = exports.NotificationEndpointType = exports.NotificationEndpointStatus = exports.NotificationEndpointSpamProtection = exports.instanceOfTimePeriod = exports.ReturnType = exports.IndexingStatus = exports.ContentAnalysisStatus = exports.BillingResourceType = exports.ChangeAction = exports.DEFAULT_THRESHOLD_CONDITION = exports.DEFAULT_RELATIVE_CONDITION = exports.DEFAULT_DEADMAN_CONDITION = exports.AlertType = exports.AlertStatus = exports.AlertLevel = exports.ToolType = exports.ToolName = exports.ToolMessageStatus = exports.Role = exports.ReturnToReferrerTool = exports.ReferenceType = exports.HandOffTool = exports.FinishReason = exports.ErrorMessageType = exports.AvailableLanguages = exports.AssistantMessageStatus = exports.AiAssistantId = exports.AgentId = void 0;
4
+ exports.WebSocketMessageType = exports.SecretType = exports.isUserMessage = exports.isTask = exports.isStorage = exports.isOwner = exports.isLogbookEntry = exports.isEvent = exports.isContentAnalysis = exports.isContent = exports.isAuthor = exports.isAssignee = exports.isAsset = exports.TranslationEditData = exports.RETENTION_VALUES = exports.TaskStatus = exports.Priority = exports.INACTIVE_TASK_STATUSES = exports.buildTaskStatusFilter = exports.AssigneeType = exports.ACTIVE_TASK_STATUSES = exports.ResourceType = exports.resourceApiPathToTypeMap = exports.ResourceApiPath = exports.PermissionType = exports.isPopulated = exports.EventType = exports.CommandType = exports.arePopulated = exports.ObjectReferenceType = exports.OwnerType = void 0;
5
5
  var ai_interface_1 = require("./ai.interface");
6
6
  Object.defineProperty(exports, "AgentId", { enumerable: true, get: function () { return ai_interface_1.AgentId; } });
7
7
  Object.defineProperty(exports, "AiAssistantId", { enumerable: true, get: function () { return ai_interface_1.AiAssistantId; } });
8
8
  Object.defineProperty(exports, "AssistantMessageStatus", { enumerable: true, get: function () { return ai_interface_1.AssistantMessageStatus; } });
9
9
  Object.defineProperty(exports, "AvailableLanguages", { enumerable: true, get: function () { return ai_interface_1.AvailableLanguages; } });
10
+ Object.defineProperty(exports, "ErrorMessageType", { enumerable: true, get: function () { return ai_interface_1.ErrorMessageType; } });
10
11
  Object.defineProperty(exports, "FinishReason", { enumerable: true, get: function () { return ai_interface_1.FinishReason; } });
11
12
  Object.defineProperty(exports, "HandOffTool", { enumerable: true, get: function () { return ai_interface_1.HandOffTool; } });
12
13
  Object.defineProperty(exports, "ReferenceType", { enumerable: true, get: function () { return ai_interface_1.ReferenceType; } });
@@ -27,6 +28,7 @@ Object.defineProperty(exports, "ChangeAction", { enumerable: true, get: function
27
28
  var billing_interface_1 = require("./billing.interface");
28
29
  Object.defineProperty(exports, "BillingResourceType", { enumerable: true, get: function () { return billing_interface_1.BillingResourceType; } });
29
30
  var content_interface_1 = require("./content.interface");
31
+ Object.defineProperty(exports, "ContentAnalysisStatus", { enumerable: true, get: function () { return content_interface_1.ContentAnalysisStatus; } });
30
32
  Object.defineProperty(exports, "IndexingStatus", { enumerable: true, get: function () { return content_interface_1.IndexingStatus; } });
31
33
  Object.defineProperty(exports, "ReturnType", { enumerable: true, get: function () { return content_interface_1.ReturnType; } });
32
34
  var data_interface_1 = require("./data.interface");
@@ -39,6 +41,9 @@ var event_interface_1 = require("./event.interface");
39
41
  Object.defineProperty(exports, "EventLevel", { enumerable: true, get: function () { return event_interface_1.EventLevel; } });
40
42
  Object.defineProperty(exports, "EventLevelOverrideWrapper", { enumerable: true, get: function () { return event_interface_1.EventLevelOverrideWrapper; } });
41
43
  Object.defineProperty(exports, "eventLevels", { enumerable: true, get: function () { return event_interface_1.eventLevels; } });
44
+ var flange_skill_control_interface_1 = require("./flange-skill-control.interface");
45
+ Object.defineProperty(exports, "APPLICATION_AREA", { enumerable: true, get: function () { return flange_skill_control_interface_1.APPLICATION_AREA; } });
46
+ Object.defineProperty(exports, "TimeSlotStatus", { enumerable: true, get: function () { return flange_skill_control_interface_1.TimeSlotStatus; } });
42
47
  var flow_deployment_status_interface_1 = require("./flow-deployment-status.interface");
43
48
  Object.defineProperty(exports, "ERROR_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.ERROR_STATES; } });
44
49
  Object.defineProperty(exports, "FlowDeploymentStatus", { enumerable: true, get: function () { return flow_deployment_status_interface_1.FlowDeploymentStatus; } });
@@ -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
  */
@@ -31,6 +31,7 @@ const isArrayOf = (value, predicate) => Array.isArray(value) && value.every(pred
31
31
  const isOptionalArrayOf = (value, predicate) => value === undefined || isArrayOf(value, predicate);
32
32
  const isStringArray = (value) => isArrayOf(value, isString);
33
33
  const isOptionalStringArray = (value) => isOptionalArrayOf(value, isString);
34
+ const isMessageAttachment = (value) => isRecord(value) && isString(value.filename) && isString(value.text);
34
35
  const isOneOf = (value, allowed) => allowed.includes(value);
35
36
  const isEnumValue = (target, value) => Object.values(target).includes(value);
36
37
  const hasPermissions = (value) => isStringArray(value.readPermissions) && isStringArray(value.readWritePermissions);
@@ -217,5 +218,6 @@ function isUserMessage(value) {
217
218
  isOptionalString(value.updatedAt) &&
218
219
  isOptionalString(value.content) &&
219
220
  isOptionalBoolean(value.hidden) &&
220
- isOptionalBoolean(value.useWebSearch));
221
+ isOptionalBoolean(value.useWebSearch) &&
222
+ isOptionalArrayOf(value.attachments, isMessageAttachment));
221
223
  }
@@ -1,6 +1,6 @@
1
- import { Asset } from '../interfaces';
1
+ import { APPLICATION_AREA, Asset } from '../interfaces';
2
2
  import { APIBaseMock } from './';
3
3
  export declare class FlangeSkillControlMockService extends APIBaseMock<Asset> {
4
- bookTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, timeSlotId: string): Promise<Asset>;
4
+ bookTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, applicationArea: APPLICATION_AREA, timeSlotId: string): Promise<Asset>;
5
5
  cancelBookedTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, timeSlotId: string): Promise<Asset>;
6
6
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FlangeSkillControlMockService = void 0;
4
4
  const _1 = require("./");
5
5
  class FlangeSkillControlMockService extends _1.APIBaseMock {
6
- async bookTimeSlotForAnExamineeForExamination(examinationId, examineeId, timeSlotId) {
6
+ async bookTimeSlotForAnExamineeForExamination(examinationId, examineeId, applicationArea, timeSlotId) {
7
7
  throw new Error('Method not implemented.');
8
8
  }
9
9
  async cancelBookedTimeSlotForAnExamineeForExamination(examinationId, examineeId, timeSlotId) {
@@ -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 });
@@ -1,8 +1,8 @@
1
1
  import { APIBase } from '../api-base';
2
- import { Asset } from '../interfaces';
2
+ import { APPLICATION_AREA, Asset } from '../interfaces';
3
3
  import { HttpClientService } from './http-client.service';
4
4
  export declare class FlangeSkillControlService extends APIBase {
5
5
  constructor(httpClient: HttpClientService);
6
- bookTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, timeSlotId: string): Promise<Asset>;
6
+ bookTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, applicationArea: APPLICATION_AREA, timeSlotId: string): Promise<Asset>;
7
7
  cancelBookedTimeSlotForAnExamineeForExamination(examinationId: string, examineeId: string, timeSlotId: string): Promise<Asset>;
8
8
  }
@@ -6,10 +6,11 @@ class FlangeSkillControlService extends api_base_1.APIBase {
6
6
  constructor(httpClient) {
7
7
  super(httpClient, '/flange-skill-control');
8
8
  }
9
- async bookTimeSlotForAnExamineeForExamination(examinationId, examineeId, timeSlotId) {
9
+ async bookTimeSlotForAnExamineeForExamination(examinationId, examineeId, applicationArea, timeSlotId) {
10
10
  return this.httpClient.put(`${this.basePath}/book-time-slot`, {
11
11
  examinationId,
12
12
  examineeId,
13
+ applicationArea,
13
14
  timeSlotId,
14
15
  });
15
16
  }
@@ -9,19 +9,19 @@ export { CrmService } from './crm.service';
9
9
  export { EndpointService } from './endpoint.service';
10
10
  export { EventService } from './event.service';
11
11
  export { FlangeSkillControlService } from './flange-skill-control.service';
12
- export { FlowService } from './flow.service';
13
12
  export { FlowDeploymentService } from './flow-deployment.service';
14
13
  export { FlowFunctionService } from './flow-function.service';
15
14
  export { FlowModuleService } from './flow-module.service';
15
+ export { FlowService } from './flow.service';
16
16
  export { HttpClientService } from './http-client.service';
17
17
  export { LabelService } from './label.service';
18
18
  export { NotificationRuleService } from './notification-rule.service';
19
19
  export { NotificationService } from './notification.service';
20
- export { OrganizationsService } from './organizations.service';
20
+ export { ObjectReferenceService } from './object-reference.service';
21
21
  export { OrganizationsAdministrationService } from './organizations-administration.service';
22
22
  export { OrganizationsResourcesService } from './organizations-resources.service';
23
+ export { OrganizationsService } from './organizations.service';
23
24
  export { ProxyService } from './proxy.service';
24
- export { ObjectReferenceService } from './object-reference.service';
25
25
  export { SearchService } from './search.service';
26
26
  export { ShareService } from './share.service';
27
27
  export { TaskService } from './task.service';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VaultService = exports.UserService = exports.TimeSeriesService = exports.TaskService = exports.ShareService = exports.SearchService = exports.ObjectReferenceService = exports.ProxyService = exports.OrganizationsResourcesService = exports.OrganizationsAdministrationService = exports.OrganizationsService = exports.NotificationService = exports.NotificationRuleService = exports.LabelService = exports.HttpClientService = exports.FlowModuleService = exports.FlowFunctionService = exports.FlowDeploymentService = exports.FlowService = exports.FlangeSkillControlService = exports.EventService = exports.EndpointService = exports.CrmService = exports.ContentService = exports.AssetTypesService = exports.AssetService = exports.AlertService = exports.AiService = exports.TrashService = exports.DataService = void 0;
3
+ exports.VaultService = exports.UserService = exports.TimeSeriesService = exports.TaskService = exports.ShareService = exports.SearchService = exports.ProxyService = exports.OrganizationsService = exports.OrganizationsResourcesService = exports.OrganizationsAdministrationService = exports.ObjectReferenceService = exports.NotificationService = exports.NotificationRuleService = exports.LabelService = exports.HttpClientService = exports.FlowService = exports.FlowModuleService = exports.FlowFunctionService = exports.FlowDeploymentService = exports.FlangeSkillControlService = exports.EventService = exports.EndpointService = exports.CrmService = exports.ContentService = exports.AssetTypesService = exports.AssetService = exports.AlertService = exports.AiService = exports.TrashService = exports.DataService = void 0;
4
4
  var data_service_1 = require("./data.service");
5
5
  Object.defineProperty(exports, "DataService", { enumerable: true, get: function () { return data_service_1.DataService; } });
6
6
  var trash_service_1 = require("./trash.service");
@@ -23,14 +23,14 @@ var event_service_1 = require("./event.service");
23
23
  Object.defineProperty(exports, "EventService", { enumerable: true, get: function () { return event_service_1.EventService; } });
24
24
  var flange_skill_control_service_1 = require("./flange-skill-control.service");
25
25
  Object.defineProperty(exports, "FlangeSkillControlService", { enumerable: true, get: function () { return flange_skill_control_service_1.FlangeSkillControlService; } });
26
- var flow_service_1 = require("./flow.service");
27
- Object.defineProperty(exports, "FlowService", { enumerable: true, get: function () { return flow_service_1.FlowService; } });
28
26
  var flow_deployment_service_1 = require("./flow-deployment.service");
29
27
  Object.defineProperty(exports, "FlowDeploymentService", { enumerable: true, get: function () { return flow_deployment_service_1.FlowDeploymentService; } });
30
28
  var flow_function_service_1 = require("./flow-function.service");
31
29
  Object.defineProperty(exports, "FlowFunctionService", { enumerable: true, get: function () { return flow_function_service_1.FlowFunctionService; } });
32
30
  var flow_module_service_1 = require("./flow-module.service");
33
31
  Object.defineProperty(exports, "FlowModuleService", { enumerable: true, get: function () { return flow_module_service_1.FlowModuleService; } });
32
+ var flow_service_1 = require("./flow.service");
33
+ Object.defineProperty(exports, "FlowService", { enumerable: true, get: function () { return flow_service_1.FlowService; } });
34
34
  var http_client_service_1 = require("./http-client.service");
35
35
  Object.defineProperty(exports, "HttpClientService", { enumerable: true, get: function () { return http_client_service_1.HttpClientService; } });
36
36
  var label_service_1 = require("./label.service");
@@ -39,16 +39,16 @@ var notification_rule_service_1 = require("./notification-rule.service");
39
39
  Object.defineProperty(exports, "NotificationRuleService", { enumerable: true, get: function () { return notification_rule_service_1.NotificationRuleService; } });
40
40
  var notification_service_1 = require("./notification.service");
41
41
  Object.defineProperty(exports, "NotificationService", { enumerable: true, get: function () { return notification_service_1.NotificationService; } });
42
- var organizations_service_1 = require("./organizations.service");
43
- Object.defineProperty(exports, "OrganizationsService", { enumerable: true, get: function () { return organizations_service_1.OrganizationsService; } });
42
+ var object_reference_service_1 = require("./object-reference.service");
43
+ Object.defineProperty(exports, "ObjectReferenceService", { enumerable: true, get: function () { return object_reference_service_1.ObjectReferenceService; } });
44
44
  var organizations_administration_service_1 = require("./organizations-administration.service");
45
45
  Object.defineProperty(exports, "OrganizationsAdministrationService", { enumerable: true, get: function () { return organizations_administration_service_1.OrganizationsAdministrationService; } });
46
46
  var organizations_resources_service_1 = require("./organizations-resources.service");
47
47
  Object.defineProperty(exports, "OrganizationsResourcesService", { enumerable: true, get: function () { return organizations_resources_service_1.OrganizationsResourcesService; } });
48
+ var organizations_service_1 = require("./organizations.service");
49
+ Object.defineProperty(exports, "OrganizationsService", { enumerable: true, get: function () { return organizations_service_1.OrganizationsService; } });
48
50
  var proxy_service_1 = require("./proxy.service");
49
51
  Object.defineProperty(exports, "ProxyService", { enumerable: true, get: function () { return proxy_service_1.ProxyService; } });
50
- var object_reference_service_1 = require("./object-reference.service");
51
- Object.defineProperty(exports, "ObjectReferenceService", { enumerable: true, get: function () { return object_reference_service_1.ObjectReferenceService; } });
52
52
  var search_service_1 = require("./search.service");
53
53
  Object.defineProperty(exports, "SearchService", { enumerable: true, get: function () { return search_service_1.SearchService; } });
54
54
  var share_service_1 = require("./share.service");