@hahnpro/hpc-api 2026.10.5 → 2026.10.7

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,13 @@
1
1
  # @hahnpro/hpc-api
2
2
 
3
+ # 2026.10.7
4
+
5
+ - Added `TASK_DESCRIPTION_MAX_LENGTH` (20000), the maximum length of task descriptions
6
+
7
+ # 2026.10.6
8
+
9
+ - Removed `domains` from `OrganizationData` and the corresponding endpoints because it is an attribute of the organization itself and not a separate resource
10
+
3
11
  # 2026.10.4
4
12
 
5
13
  - Added `ToolName.ADD_ATTACHMENT_TO_ASSET` for attaching existing Content objects to Assets through AI #5158
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "2026.10.5",
3
+ "version": "2026.10.7",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -16,7 +16,7 @@
16
16
  "@microsoft/fetch-event-source": "2.0.1",
17
17
  "axios": "1.20.0",
18
18
  "eventsource": "5.1.3",
19
- "jose": "6.2.12",
19
+ "jose": "6.2.13",
20
20
  "jwt-decode": "4.0.0",
21
21
  "p-queue": "10.0.0",
22
22
  "rxjs": "7.8.2",
@@ -91,6 +91,7 @@ export declare enum ToolName {
91
91
  GET_INCIDENT_TEMPLATE = "getIncidentTemplate",
92
92
  GET_ASSET_STATUS = "getAssetStatus",
93
93
  FIND_TASK_BY_NAME = "findTaskByName",
94
+ GET_TASK = "getTask",
94
95
  GET_TASK_LOGBOOK_ENTRIES = "getTaskLogbookEntries",
95
96
  CREATE_EVENT = "createEvent",
96
97
  ADD_ATTACHMENT_TO_ASSET = "addAttachmentToAsset",
@@ -102,6 +102,7 @@ var ToolName;
102
102
  ToolName["GET_INCIDENT_TEMPLATE"] = "getIncidentTemplate";
103
103
  ToolName["GET_ASSET_STATUS"] = "getAssetStatus";
104
104
  ToolName["FIND_TASK_BY_NAME"] = "findTaskByName";
105
+ ToolName["GET_TASK"] = "getTask";
105
106
  ToolName["GET_TASK_LOGBOOK_ENTRIES"] = "getTaskLogbookEntries";
106
107
  ToolName["CREATE_EVENT"] = "createEvent";
107
108
  ToolName["ADD_ATTACHMENT_TO_ASSET"] = "addAttachmentToAsset";
@@ -28,7 +28,7 @@ export type { MeteredQuantity, MeteringDimension, Plan, PlanComponents, Recurren
28
28
  export type { NotificationRule, StatusRule, TagRule } from './notification-rule.interface';
29
29
  export type { Notification, NotificationType } from './notification.interface';
30
30
  export type { OrganizationRoleRepresentation } from './organization-role-representation.interface';
31
- export type { CreateOrganizationDto, Organization, OrganizationData, OrganizationDataKind, OrganizationDomain, OrganizationExtraProperties, OrganizationName, OrganizationRolesAdjustment, OrganizationSearchQuery, UserWithOrgRoles, } from './organization.interface';
31
+ export type { CreateOrganizationDto, Organization, OrganizationData, OrganizationDataKind, OrganizationExtraProperties, OrganizationName, OrganizationRolesAdjustment, OrganizationSearchQuery, UserWithOrgRoles, } from './organization.interface';
32
32
  export type { CreateOrgWithResourcesDto, OrganizationResourcesProgress, OrganizationResourcesProgressDto, OrganizationResourcesProgressErrorDto, } from './organizations-resources.interface';
33
33
  export type { Owner } from './owner.interface';
34
34
  export type { DeleteAssetQuery, DeleteAssetTypeQuery, DeleteQuery } from './query.interface';
@@ -68,7 +68,7 @@ export { OrganizationMembersInviteOrAdd } from './organization.interface';
68
68
  export { OwnerType } from './owner.interface';
69
69
  export { ObjectReferenceType, PermissionLevel } from './reference.interface';
70
70
  export { arePopulated, CommandType, EventType, isPopulated, PermissionType, ResourceApiPath, resourceApiPathToTypeMap, ResourceType, } from './resource.interface';
71
- export { ACTIVE_TASK_STATUSES, AssigneeType, buildTaskStatusFilter, INACTIVE_TASK_STATUSES, Priority, TaskStatus } from './task.interface';
71
+ export { ACTIVE_TASK_STATUSES, AssigneeType, buildTaskStatusFilter, INACTIVE_TASK_STATUSES, Priority, TASK_DESCRIPTION_MAX_LENGTH, TaskStatus, } from './task.interface';
72
72
  export { RETENTION_VALUES } from './timeseries.interface';
73
73
  export { TranslationEditData } from './translation.interface';
74
74
  export { isAsset, isAssignee, isAuthor, isContent, isContentAnalysis, isEvent, isLogbookEntry, isOwner, isStorage, isTask, isUserMessage, } from './type-guards';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FlowDiagram = exports.Flow = exports.NATS_FLOW_TRIGGER_STATUSES = 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.DataspaceWorkflowType = exports.DataspaceAllowedResourceTypes = 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.OneShotTaskId = exports.HandOffTool = exports.FinishReason = exports.ErrorMessageType = exports.AvailableLanguages = exports.AttachmentHandlingMode = exports.ATTACHMENT_CAPABLE_AGENT_IDS = exports.AssistantMessageStatus = exports.AiAssistantId = exports.AgentId = exports.MAX_TIME_SERIES_PER_VALUE_FEED = exports.LogbookEntrySource = 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.PermissionLevel = exports.ObjectReferenceType = exports.OwnerType = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.natsAuthPrefix = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = 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.TASK_DESCRIPTION_MAX_LENGTH = 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.PermissionLevel = exports.ObjectReferenceType = exports.OwnerType = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.natsAuthPrefix = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = void 0;
5
5
  const tslib_1 = require("tslib");
6
6
  var logbook_interface_1 = require("./logbook.interface");
7
7
  Object.defineProperty(exports, "LogbookEntrySource", { enumerable: true, get: function () { return logbook_interface_1.LogbookEntrySource; } });
@@ -102,6 +102,7 @@ Object.defineProperty(exports, "AssigneeType", { enumerable: true, get: function
102
102
  Object.defineProperty(exports, "buildTaskStatusFilter", { enumerable: true, get: function () { return task_interface_1.buildTaskStatusFilter; } });
103
103
  Object.defineProperty(exports, "INACTIVE_TASK_STATUSES", { enumerable: true, get: function () { return task_interface_1.INACTIVE_TASK_STATUSES; } });
104
104
  Object.defineProperty(exports, "Priority", { enumerable: true, get: function () { return task_interface_1.Priority; } });
105
+ Object.defineProperty(exports, "TASK_DESCRIPTION_MAX_LENGTH", { enumerable: true, get: function () { return task_interface_1.TASK_DESCRIPTION_MAX_LENGTH; } });
105
106
  Object.defineProperty(exports, "TaskStatus", { enumerable: true, get: function () { return task_interface_1.TaskStatus; } });
106
107
  var timeseries_interface_1 = require("./timeseries.interface");
107
108
  Object.defineProperty(exports, "RETENTION_VALUES", { enumerable: true, get: function () { return timeseries_interface_1.RETENTION_VALUES; } });
@@ -37,15 +37,8 @@ export interface OrganizationData {
37
37
  invitations: InvitationRepresentation[];
38
38
  roles: OrganizationRoleRepresentation[];
39
39
  userRoles: OrganizationRoleRepresentation[];
40
- domains: OrganizationDomain[];
41
- }
42
- export type OrganizationDataKind = 'members' | 'invitations' | 'roles' | 'domains' | 'userRoles';
43
- export interface OrganizationDomain {
44
- domainName: string;
45
- recordKey?: string;
46
- recordValue?: string;
47
- verified: boolean;
48
40
  }
41
+ export type OrganizationDataKind = 'members' | 'invitations' | 'roles' | 'userRoles';
49
42
  export interface OrganizationExtraProperties {
50
43
  subscriptionId?: string;
51
44
  previousSubscriptions?: string[];
@@ -19,6 +19,7 @@ export declare enum TaskStatus {
19
19
  export declare const ACTIVE_TASK_STATUSES: readonly TaskStatus[];
20
20
  export declare const INACTIVE_TASK_STATUSES: readonly TaskStatus[];
21
21
  export declare function buildTaskStatusFilter(statuses: readonly TaskStatus[]): string;
22
+ export declare const TASK_DESCRIPTION_MAX_LENGTH = 20000;
22
23
  export declare enum Priority {
23
24
  LOW = "LOW",
24
25
  MEDIUM = "MEDIUM",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Priority = exports.INACTIVE_TASK_STATUSES = exports.ACTIVE_TASK_STATUSES = exports.TaskStatus = exports.AssigneeType = void 0;
3
+ exports.Priority = exports.TASK_DESCRIPTION_MAX_LENGTH = exports.INACTIVE_TASK_STATUSES = exports.ACTIVE_TASK_STATUSES = exports.TaskStatus = exports.AssigneeType = void 0;
4
4
  exports.buildTaskStatusFilter = buildTaskStatusFilter;
5
5
  var AssigneeType;
6
6
  (function (AssigneeType) {
@@ -27,6 +27,7 @@ exports.INACTIVE_TASK_STATUSES = [
27
27
  function buildTaskStatusFilter(statuses) {
28
28
  return `status=@${statuses.join(',')}`;
29
29
  }
30
+ exports.TASK_DESCRIPTION_MAX_LENGTH = 20000;
30
31
  var Priority;
31
32
  (function (Priority) {
32
33
  Priority["LOW"] = "LOW";
@@ -94,7 +94,7 @@ export declare class OrganizationsService extends APIBase {
94
94
  * A subset of all data is selected defined by the 'kinds' parameter.
95
95
  *
96
96
  * @param {string} id - organization id
97
- * @param {string} kinds - array of requested data types ( selection of: ['members', 'invitations', 'roles', 'domains', 'userRoles'])
97
+ * @param {OrganizationDataKind} kinds - array of requested data types
98
98
  * @param {TokenOption} options - Optional token option
99
99
  * @returns{Promise<OrganizationData>} organizationData (only selected kinds are returned)
100
100
  */
@@ -130,7 +130,7 @@ class OrganizationsService extends api_base_1.APIBase {
130
130
  * A subset of all data is selected defined by the 'kinds' parameter.
131
131
  *
132
132
  * @param {string} id - organization id
133
- * @param {string} kinds - array of requested data types ( selection of: ['members', 'invitations', 'roles', 'domains', 'userRoles'])
133
+ * @param {OrganizationDataKind} kinds - array of requested data types
134
134
  * @param {TokenOption} options - Optional token option
135
135
  * @returns{Promise<OrganizationData>} organizationData (only selected kinds are returned)
136
136
  */