@hahnpro/hpc-api 2026.8.3 → 2026.8.5

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 (96) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +3 -3
  3. package/src/lib/api.d.ts +2 -1
  4. package/src/lib/api.js +1 -0
  5. package/src/lib/interfaces/authz/audited.interface.d.ts +6 -0
  6. package/src/lib/interfaces/authz/audited.interface.js +2 -0
  7. package/src/lib/interfaces/authz/capability-bundle-capability.interface.d.ts +8 -0
  8. package/src/lib/interfaces/authz/capability-bundle-capability.interface.js +2 -0
  9. package/src/lib/interfaces/authz/capability-bundle.interface.d.ts +18 -0
  10. package/src/lib/interfaces/authz/capability-bundle.interface.js +10 -0
  11. package/src/lib/interfaces/authz/capability.interface.d.ts +75 -0
  12. package/src/lib/interfaces/authz/capability.interface.js +72 -0
  13. package/src/lib/interfaces/authz/feature-capability.interface.d.ts +8 -0
  14. package/src/lib/interfaces/authz/feature-capability.interface.js +2 -0
  15. package/src/lib/interfaces/authz/feature.interface.d.ts +21 -0
  16. package/src/lib/interfaces/authz/feature.interface.js +13 -0
  17. package/src/lib/interfaces/authz/index.d.ts +23 -0
  18. package/src/lib/interfaces/authz/index.js +19 -0
  19. package/src/lib/interfaces/authz/localized-text.interface.d.ts +4 -0
  20. package/src/lib/interfaces/authz/localized-text.interface.js +2 -0
  21. package/src/lib/interfaces/authz/org-group-capability-bundle.interface.d.ts +7 -0
  22. package/src/lib/interfaces/authz/org-group-capability-bundle.interface.js +2 -0
  23. package/src/lib/interfaces/authz/org-group-capability.interface.d.ts +7 -0
  24. package/src/lib/interfaces/authz/org-group-capability.interface.js +2 -0
  25. package/src/lib/interfaces/authz/org-group-member.interface.d.ts +6 -0
  26. package/src/lib/interfaces/authz/org-group-member.interface.js +2 -0
  27. package/src/lib/interfaces/authz/org-group.interface.d.ts +32 -0
  28. package/src/lib/interfaces/authz/org-group.interface.js +20 -0
  29. package/src/lib/interfaces/authz/org-subscription.interface.d.ts +16 -0
  30. package/src/lib/interfaces/authz/org-subscription.interface.js +9 -0
  31. package/src/lib/interfaces/authz/plan-feature.interface.d.ts +8 -0
  32. package/src/lib/interfaces/authz/plan-feature.interface.js +2 -0
  33. package/src/lib/interfaces/authz/plan.interface.d.ts +15 -0
  34. package/src/lib/interfaces/authz/plan.interface.js +7 -0
  35. package/src/lib/interfaces/authz/service-account-capability-bundle.interface.d.ts +7 -0
  36. package/src/lib/interfaces/authz/service-account-capability-bundle.interface.js +2 -0
  37. package/src/lib/interfaces/authz/service-account-capability.interface.d.ts +7 -0
  38. package/src/lib/interfaces/authz/service-account-capability.interface.js +2 -0
  39. package/src/lib/interfaces/authz/sql-pagination.interface.d.ts +18 -0
  40. package/src/lib/interfaces/authz/sql-pagination.interface.js +2 -0
  41. package/src/lib/interfaces/index.d.ts +3 -1
  42. package/src/lib/interfaces/index.js +2 -0
  43. package/src/lib/interfaces/timeseries.interface.d.ts +5 -0
  44. package/src/lib/interfaces/websockets.interface.d.ts +6 -0
  45. package/src/lib/mock/api.mock.d.ts +2 -0
  46. package/src/lib/mock/api.mock.js +2 -0
  47. package/src/lib/mock/authz/authz.mock.service.d.ts +21 -0
  48. package/src/lib/mock/authz/authz.mock.service.js +26 -0
  49. package/src/lib/mock/authz/capability-bundle.mock.service.d.ts +6 -0
  50. package/src/lib/mock/authz/capability-bundle.mock.service.js +13 -0
  51. package/src/lib/mock/authz/capability.mock.service.d.ts +6 -0
  52. package/src/lib/mock/authz/capability.mock.service.js +13 -0
  53. package/src/lib/mock/authz/index.d.ts +1 -0
  54. package/src/lib/mock/authz/index.js +5 -0
  55. package/src/lib/mock/authz/org-group-capability-bundle.mock.service.d.ts +9 -0
  56. package/src/lib/mock/authz/org-group-capability-bundle.mock.service.js +22 -0
  57. package/src/lib/mock/authz/org-group-capability.mock.service.d.ts +9 -0
  58. package/src/lib/mock/authz/org-group-capability.mock.service.js +22 -0
  59. package/src/lib/mock/authz/org-group-member.mock.service.d.ts +8 -0
  60. package/src/lib/mock/authz/org-group-member.mock.service.js +19 -0
  61. package/src/lib/mock/authz/org-group.mock.service.d.ts +10 -0
  62. package/src/lib/mock/authz/org-group.mock.service.js +25 -0
  63. package/src/lib/mock/authz/org-subscription.mock.service.d.ts +10 -0
  64. package/src/lib/mock/authz/org-subscription.mock.service.js +25 -0
  65. package/src/lib/mock/authz/user-capabilities-and-permissions.mock.service.d.ts +9 -0
  66. package/src/lib/mock/authz/user-capabilities-and-permissions.mock.service.js +16 -0
  67. package/src/lib/mock/index.d.ts +1 -0
  68. package/src/lib/mock/index.js +1 -0
  69. package/src/lib/mock/task.mock.service.d.ts +2 -0
  70. package/src/lib/mock/task.mock.service.js +9 -0
  71. package/src/lib/services/authz/authz.service.d.ts +21 -0
  72. package/src/lib/services/authz/authz.service.js +26 -0
  73. package/src/lib/services/authz/capability-bundle.service.d.ts +7 -0
  74. package/src/lib/services/authz/capability-bundle.service.js +13 -0
  75. package/src/lib/services/authz/capability.service.d.ts +7 -0
  76. package/src/lib/services/authz/capability.service.js +13 -0
  77. package/src/lib/services/authz/index.d.ts +1 -0
  78. package/src/lib/services/authz/index.js +5 -0
  79. package/src/lib/services/authz/org-group-capability-bundle.service.d.ts +10 -0
  80. package/src/lib/services/authz/org-group-capability-bundle.service.js +22 -0
  81. package/src/lib/services/authz/org-group-capability.service.d.ts +10 -0
  82. package/src/lib/services/authz/org-group-capability.service.js +22 -0
  83. package/src/lib/services/authz/org-group-member.service.d.ts +9 -0
  84. package/src/lib/services/authz/org-group-member.service.js +19 -0
  85. package/src/lib/services/authz/org-group.service.d.ts +11 -0
  86. package/src/lib/services/authz/org-group.service.js +25 -0
  87. package/src/lib/services/authz/org-subscription.service.d.ts +11 -0
  88. package/src/lib/services/authz/org-subscription.service.js +25 -0
  89. package/src/lib/services/authz/user-capabilities-and-permissions.service.d.ts +9 -0
  90. package/src/lib/services/authz/user-capabilities-and-permissions.service.js +16 -0
  91. package/src/lib/services/index.d.ts +2 -0
  92. package/src/lib/services/index.js +5 -1
  93. package/src/lib/services/organizations.service.d.ts +2 -2
  94. package/src/lib/services/organizations.service.js +2 -2
  95. package/src/lib/services/task.service.d.ts +9 -0
  96. package/src/lib/services/task.service.js +3 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @hahnpro/hpc-api
2
2
 
3
+ # 2026.8.5
4
+
5
+ - added `MostRecentTimeSeriesValueUpdate` and `WebSocketError` types to interfaces
6
+
3
7
  # 2026.8.2
4
8
 
5
9
  - Added `getManyByIds` endpoint to Label service client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/hpc-api",
3
- "version": "2026.8.3",
3
+ "version": "2026.8.5",
4
4
  "description": "Module for easy access to the HahnPRO Cloud API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -10,8 +10,8 @@
10
10
  "dependencies": {
11
11
  "@microsoft/fetch-event-source": "2.0.1",
12
12
  "axios": "1.19.0",
13
- "eventsource": "5.1.0",
14
- "jose": "6.2.9",
13
+ "eventsource": "5.1.1",
14
+ "jose": "6.2.10",
15
15
  "jwt-decode": "4.0.0",
16
16
  "p-queue": "9.3.3",
17
17
  "rxjs": "7.8.2",
package/src/lib/api.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { QueueOptions } from './queue';
2
- import { AiService, AlertService, AssetService, AssetTypesService, ContentService, CrmService, DataspaceService, EndpointService, EventService, FlangeSkillControlService, FlowDeploymentService, FlowFunctionService, FlowModuleService, FlowService, HttpClientService, LabelService, LogbookService, NotificationRuleService, NotificationService, ObjectReferenceService, OrganizationsAdministrationService, OrganizationsResourcesService, OrganizationsService, ProxyService, SearchService, TaskService, TimeSeriesService, UserService, VaultService } from './services';
2
+ import { AiService, AlertService, AssetService, AssetTypesService, AuthzService, ContentService, CrmService, DataspaceService, EndpointService, EventService, FlangeSkillControlService, FlowDeploymentService, FlowFunctionService, FlowModuleService, FlowService, HttpClientService, LabelService, LogbookService, NotificationRuleService, NotificationService, ObjectReferenceService, OrganizationsAdministrationService, OrganizationsResourcesService, OrganizationsService, ProxyService, SearchService, TaskService, TimeSeriesService, UserService, VaultService } from './services';
3
3
  export declare class API {
4
4
  readonly httpClient?: HttpClientService;
5
5
  ai: AiService;
6
6
  alerts: AlertService;
7
7
  assets: AssetService;
8
8
  assetTypes: AssetTypesService;
9
+ authz: AuthzService;
9
10
  contents: ContentService;
10
11
  crm: CrmService;
11
12
  dataspace: DataspaceService;
package/src/lib/api.js CHANGED
@@ -38,6 +38,7 @@ class API {
38
38
  this.alerts = new services_1.AlertService(this.httpClient);
39
39
  this.assets = new services_1.AssetService(this.httpClient);
40
40
  this.assetTypes = new services_1.AssetTypesService(this.httpClient);
41
+ this.authz = new services_1.AuthzService(this.httpClient);
41
42
  this.contents = new services_1.ContentService(this.httpClient);
42
43
  this.crm = new services_1.CrmService(this.httpClient);
43
44
  this.dataspace = new services_1.DataspaceService(this.httpClient);
@@ -0,0 +1,6 @@
1
+ export interface Audited<TDate> {
2
+ createdAt: TDate;
3
+ createdBy: string;
4
+ updatedAt: TDate;
5
+ updatedBy: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type { Audited } from './audited.interface';
2
+ import { CapabilityBundleId } from './capability-bundle.interface';
3
+ import type { CapabilityId } from './capability.interface';
4
+ export interface CreateCapabilityBundleCapability {
5
+ capabilityBundleId: CapabilityBundleId;
6
+ capabilityId: CapabilityId;
7
+ }
8
+ export type CapabilityBundleCapability = Audited<string> & CreateCapabilityBundleCapability;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { LocalizedText } from './localized-text.interface';
3
+ export declare enum CapabilityBundleId {
4
+ ASSET_EDITOR = "asset-editor",
5
+ ASSET_VIEWER = "asset-viewer",
6
+ FLANGE_SKILL_CONTROL = "flange-skill-control",
7
+ ORGANIZATION_ADMINISTRATION = "organization-administration"
8
+ }
9
+ export interface CreateCapabilityBundle {
10
+ id: CapabilityBundleId;
11
+ name: LocalizedText;
12
+ description?: LocalizedText | null;
13
+ }
14
+ export type UpdateCapabilityBundle = Partial<Pick<CreateCapabilityBundle, 'name' | 'description'>>;
15
+ export interface CapabilityBundle extends Audited<string>, Omit<CreateCapabilityBundle, 'id' | 'description'> {
16
+ readonly id: CapabilityBundleId;
17
+ description: LocalizedText | null;
18
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CapabilityBundleId = void 0;
4
+ var CapabilityBundleId;
5
+ (function (CapabilityBundleId) {
6
+ CapabilityBundleId["ASSET_EDITOR"] = "asset-editor";
7
+ CapabilityBundleId["ASSET_VIEWER"] = "asset-viewer";
8
+ CapabilityBundleId["FLANGE_SKILL_CONTROL"] = "flange-skill-control";
9
+ CapabilityBundleId["ORGANIZATION_ADMINISTRATION"] = "organization-administration";
10
+ })(CapabilityBundleId || (exports.CapabilityBundleId = CapabilityBundleId = {}));
@@ -0,0 +1,75 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { LocalizedText } from './localized-text.interface';
3
+ export declare enum CapabilityId {
4
+ SUPERUSER = "superuser",
5
+ ASSET_READ = "asset.read",
6
+ ASSET_UPDATE = "asset.update",
7
+ ASSET_DELETE = "asset.delete",
8
+ ASSET_CREATE = "asset.create",
9
+ ASSET_MANAGER = "asset.asset-manager",
10
+ FLANGE_SKILL_CONTROL = "flange-skill-control",
11
+ FLANGE_SKILL_CONTROL_UI = "flange-skill-control-ui",
12
+ ORG_GROUP_READ = "org-group.read",
13
+ ORG_GROUP_UPDATE = "org-group.update",
14
+ ORG_GROUP_DELETE = "org-group.delete",
15
+ ORG_GROUP_CREATE = "org-group.create",
16
+ ORG_GROUP_MEMBER_READ = "org-group-member.read",
17
+ ORG_GROUP_MEMBER_UPDATE = "org-group-member.update",
18
+ ORG_GROUP_MEMBER_DELETE = "org-group-member.delete",
19
+ ORG_GROUP_MEMBER_CREATE = "org-group-member.create",
20
+ ORG_SUBSCRIPTION_READ = "org-subscription.read",
21
+ ORG_SUBSCRIPTION_UPDATE = "org-subscription.update",
22
+ ORG_SUBSCRIPTION_DELETE = "org-subscription.delete",
23
+ ORG_SUBSCRIPTION_CREATE = "org-subscription.create"
24
+ }
25
+ export declare enum CapabilityScope {
26
+ ASSETS = "assets",
27
+ CONTENTS = "contents",
28
+ TIME_SERIES = "time-series",
29
+ FLOWS = "flows",
30
+ FLANGE_SKILL_CONTROL = "flange-skill-control"
31
+ }
32
+ export declare enum CapabilityType {
33
+ /**
34
+ * UI capabilities are used to control access to user interface elements and features.
35
+ * They are typically associated with roles that determine what a user can see and interact with in the application.
36
+ * For example, a UI capability might allow a user to view a specific dashboard or access a particular section of the application.
37
+ */
38
+ UI = "ui",
39
+ /**
40
+ * Resource capabilities are used to control access to specific resources within the application.
41
+ * They are typically associated with actions that can be performed on those resources, such as reading, updating, deleting, or creating them.
42
+ * For example, a resource capability might allow a user to read data from a specific database table or update a particular record.
43
+ */
44
+ RESOURCE = "resource",
45
+ /**
46
+ * Feature capabilities are used to control access to specific features or functionalities within the application.
47
+ * These capabilities although used as permissions to access certain feature resources, like asset types, ...
48
+ */
49
+ FEATURE = "feature",
50
+ /**
51
+ * Admin capabilities are used to control access to administrative functions and settings within the application.
52
+ */
53
+ ADMIN = "admin"
54
+ }
55
+ export declare enum CapabilityAction {
56
+ READ = "read",
57
+ UPDATE = "update",
58
+ DELETE = "delete",
59
+ CREATE = "create",
60
+ VIEW = "view",
61
+ USE = "use"
62
+ }
63
+ export interface CreateCapability {
64
+ id: CapabilityId;
65
+ name: LocalizedText;
66
+ description?: LocalizedText | null;
67
+ scope: CapabilityScope;
68
+ type: CapabilityType;
69
+ action: CapabilityAction;
70
+ }
71
+ export type UpdateCapability = Partial<Pick<CreateCapability, 'name' | 'description' | 'scope' | 'type' | 'action'>>;
72
+ export interface Capability extends Audited<string>, Omit<CreateCapability, 'id' | 'description'> {
73
+ readonly id: CapabilityId;
74
+ description: LocalizedText | null;
75
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CapabilityAction = exports.CapabilityType = exports.CapabilityScope = exports.CapabilityId = void 0;
4
+ var CapabilityId;
5
+ (function (CapabilityId) {
6
+ CapabilityId["SUPERUSER"] = "superuser";
7
+ CapabilityId["ASSET_READ"] = "asset.read";
8
+ CapabilityId["ASSET_UPDATE"] = "asset.update";
9
+ CapabilityId["ASSET_DELETE"] = "asset.delete";
10
+ CapabilityId["ASSET_CREATE"] = "asset.create";
11
+ CapabilityId["ASSET_MANAGER"] = "asset.asset-manager";
12
+ CapabilityId["FLANGE_SKILL_CONTROL"] = "flange-skill-control";
13
+ CapabilityId["FLANGE_SKILL_CONTROL_UI"] = "flange-skill-control-ui";
14
+ // Organization capabilities
15
+ CapabilityId["ORG_GROUP_READ"] = "org-group.read";
16
+ CapabilityId["ORG_GROUP_UPDATE"] = "org-group.update";
17
+ CapabilityId["ORG_GROUP_DELETE"] = "org-group.delete";
18
+ CapabilityId["ORG_GROUP_CREATE"] = "org-group.create";
19
+ CapabilityId["ORG_GROUP_MEMBER_READ"] = "org-group-member.read";
20
+ CapabilityId["ORG_GROUP_MEMBER_UPDATE"] = "org-group-member.update";
21
+ CapabilityId["ORG_GROUP_MEMBER_DELETE"] = "org-group-member.delete";
22
+ CapabilityId["ORG_GROUP_MEMBER_CREATE"] = "org-group-member.create";
23
+ CapabilityId["ORG_SUBSCRIPTION_READ"] = "org-subscription.read";
24
+ CapabilityId["ORG_SUBSCRIPTION_UPDATE"] = "org-subscription.update";
25
+ CapabilityId["ORG_SUBSCRIPTION_DELETE"] = "org-subscription.delete";
26
+ CapabilityId["ORG_SUBSCRIPTION_CREATE"] = "org-subscription.create";
27
+ // TODO: Add all other capabilities here as needed
28
+ })(CapabilityId || (exports.CapabilityId = CapabilityId = {}));
29
+ var CapabilityScope;
30
+ (function (CapabilityScope) {
31
+ CapabilityScope["ASSETS"] = "assets";
32
+ CapabilityScope["CONTENTS"] = "contents";
33
+ CapabilityScope["TIME_SERIES"] = "time-series";
34
+ CapabilityScope["FLOWS"] = "flows";
35
+ CapabilityScope["FLANGE_SKILL_CONTROL"] = "flange-skill-control";
36
+ // TODO: Add all other scopes here as needed
37
+ })(CapabilityScope || (exports.CapabilityScope = CapabilityScope = {}));
38
+ var CapabilityType;
39
+ (function (CapabilityType) {
40
+ /**
41
+ * UI capabilities are used to control access to user interface elements and features.
42
+ * They are typically associated with roles that determine what a user can see and interact with in the application.
43
+ * For example, a UI capability might allow a user to view a specific dashboard or access a particular section of the application.
44
+ */
45
+ CapabilityType["UI"] = "ui";
46
+ /**
47
+ * Resource capabilities are used to control access to specific resources within the application.
48
+ * They are typically associated with actions that can be performed on those resources, such as reading, updating, deleting, or creating them.
49
+ * For example, a resource capability might allow a user to read data from a specific database table or update a particular record.
50
+ */
51
+ CapabilityType["RESOURCE"] = "resource";
52
+ /**
53
+ * Feature capabilities are used to control access to specific features or functionalities within the application.
54
+ * These capabilities although used as permissions to access certain feature resources, like asset types, ...
55
+ */
56
+ CapabilityType["FEATURE"] = "feature";
57
+ /**
58
+ * Admin capabilities are used to control access to administrative functions and settings within the application.
59
+ */
60
+ CapabilityType["ADMIN"] = "admin";
61
+ })(CapabilityType || (exports.CapabilityType = CapabilityType = {}));
62
+ var CapabilityAction;
63
+ (function (CapabilityAction) {
64
+ CapabilityAction["READ"] = "read";
65
+ CapabilityAction["UPDATE"] = "update";
66
+ CapabilityAction["DELETE"] = "delete";
67
+ CapabilityAction["CREATE"] = "create";
68
+ // For ui roles
69
+ CapabilityAction["VIEW"] = "view";
70
+ // For features
71
+ CapabilityAction["USE"] = "use";
72
+ })(CapabilityAction || (exports.CapabilityAction = CapabilityAction = {}));
@@ -0,0 +1,8 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { CapabilityId } from './capability.interface';
3
+ import { FeatureId } from './feature.interface';
4
+ export interface CreateFeatureCapability {
5
+ featureId: FeatureId;
6
+ capabilityId: CapabilityId;
7
+ }
8
+ export type FeatureCapability = Audited<string> & CreateFeatureCapability;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { LocalizedText } from './localized-text.interface';
3
+ export declare enum FeatureId {
4
+ ASSETS = "assets",
5
+ ASSET_MANAGER = "asset-manager",
6
+ FLANGE_SKILL_CONTROL = "flange-skill-control",
7
+ FLANGE_SKILL_CONTROL_UI = "flange-skill-control-ui",
8
+ ORGANIZATION_MANAGEMENT = "organization-management",
9
+ ORGANIZATION_MANAGEMENT_UI = "organization-management-ui",
10
+ SUPERUSER = "superuser"
11
+ }
12
+ export interface CreateFeature {
13
+ id: FeatureId;
14
+ name: LocalizedText;
15
+ description?: LocalizedText | null;
16
+ }
17
+ export type UpdateFeature = Partial<Pick<CreateFeature, 'name' | 'description'>>;
18
+ export interface Feature extends Audited<string>, Omit<CreateFeature, 'id' | 'description'> {
19
+ readonly id: FeatureId;
20
+ description: LocalizedText | null;
21
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeatureId = void 0;
4
+ var FeatureId;
5
+ (function (FeatureId) {
6
+ FeatureId["ASSETS"] = "assets";
7
+ FeatureId["ASSET_MANAGER"] = "asset-manager";
8
+ FeatureId["FLANGE_SKILL_CONTROL"] = "flange-skill-control";
9
+ FeatureId["FLANGE_SKILL_CONTROL_UI"] = "flange-skill-control-ui";
10
+ FeatureId["ORGANIZATION_MANAGEMENT"] = "organization-management";
11
+ FeatureId["ORGANIZATION_MANAGEMENT_UI"] = "organization-management-ui";
12
+ FeatureId["SUPERUSER"] = "superuser";
13
+ })(FeatureId || (exports.FeatureId = FeatureId = {}));
@@ -0,0 +1,23 @@
1
+ export type { Audited } from './audited.interface';
2
+ export type { LocalizedText } from './localized-text.interface';
3
+ export type { CreateCapabilityBundle, UpdateCapabilityBundle, CapabilityBundle } from './capability-bundle.interface';
4
+ export type { CreateCapabilityBundleCapability, CapabilityBundleCapability } from './capability-bundle-capability.interface';
5
+ export type { CreateCapability, UpdateCapability, Capability } from './capability.interface';
6
+ export type { CreateOrgGroup, UpdateOrgGroup, OrgGroup } from './org-group.interface';
7
+ export type { CreateFeature, UpdateFeature, Feature } from './feature.interface';
8
+ export type { CreateFeatureCapability, FeatureCapability } from './feature-capability.interface';
9
+ export type { CreateOrgGroupCapability, OrgGroupCapability } from './org-group-capability.interface';
10
+ export type { CreateOrgGroupCapabilityBundle, OrgGroupCapabilityBundle } from './org-group-capability-bundle.interface';
11
+ export type { CreateOrgGroupMember, OrgGroupMember } from './org-group-member.interface';
12
+ export type { CreateOrgSubscription, UpdateOrgSubscription, OrgSubscription } from './org-subscription.interface';
13
+ export type { SqlPagination, SqlPaginationResult } from './sql-pagination.interface';
14
+ export type { CreatePlan, UpdatePlan, Plan as AuthzPlan } from './plan.interface';
15
+ export type { CreatePlanFeature, PlanFeature } from './plan-feature.interface';
16
+ export type { CreateServiceAccountCapability, ServiceAccountCapability } from './service-account-capability.interface';
17
+ export type { CreateServiceAccountCapabilityBundle, ServiceAccountCapabilityBundle } from './service-account-capability-bundle.interface';
18
+ export { CapabilityId, CapabilityType, CapabilityAction, CapabilityScope } from './capability.interface';
19
+ export { CapabilityBundleId } from './capability-bundle.interface';
20
+ export { FeatureId } from './feature.interface';
21
+ export { OrgGroupType } from './org-group.interface';
22
+ export { OrgSubscriptionStatus } from './org-subscription.interface';
23
+ export { PlanId } from './plan.interface';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlanId = exports.OrgSubscriptionStatus = exports.OrgGroupType = exports.FeatureId = exports.CapabilityBundleId = exports.CapabilityScope = exports.CapabilityAction = exports.CapabilityType = exports.CapabilityId = void 0;
4
+ // Export enums
5
+ var capability_interface_1 = require("./capability.interface");
6
+ Object.defineProperty(exports, "CapabilityId", { enumerable: true, get: function () { return capability_interface_1.CapabilityId; } });
7
+ Object.defineProperty(exports, "CapabilityType", { enumerable: true, get: function () { return capability_interface_1.CapabilityType; } });
8
+ Object.defineProperty(exports, "CapabilityAction", { enumerable: true, get: function () { return capability_interface_1.CapabilityAction; } });
9
+ Object.defineProperty(exports, "CapabilityScope", { enumerable: true, get: function () { return capability_interface_1.CapabilityScope; } });
10
+ var capability_bundle_interface_1 = require("./capability-bundle.interface");
11
+ Object.defineProperty(exports, "CapabilityBundleId", { enumerable: true, get: function () { return capability_bundle_interface_1.CapabilityBundleId; } });
12
+ var feature_interface_1 = require("./feature.interface");
13
+ Object.defineProperty(exports, "FeatureId", { enumerable: true, get: function () { return feature_interface_1.FeatureId; } });
14
+ var org_group_interface_1 = require("./org-group.interface");
15
+ Object.defineProperty(exports, "OrgGroupType", { enumerable: true, get: function () { return org_group_interface_1.OrgGroupType; } });
16
+ var org_subscription_interface_1 = require("./org-subscription.interface");
17
+ Object.defineProperty(exports, "OrgSubscriptionStatus", { enumerable: true, get: function () { return org_subscription_interface_1.OrgSubscriptionStatus; } });
18
+ var plan_interface_1 = require("./plan.interface");
19
+ Object.defineProperty(exports, "PlanId", { enumerable: true, get: function () { return plan_interface_1.PlanId; } });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A text value translated by language code, for example `{ de: 'Name', en: 'Name' }`.
3
+ */
4
+ export type LocalizedText = Record<string, string>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type { Audited } from './audited.interface';
2
+ import { CapabilityBundleId } from './capability-bundle.interface';
3
+ export interface CreateOrgGroupCapabilityBundle {
4
+ orgGroupId: string;
5
+ capabilityBundleId: CapabilityBundleId;
6
+ }
7
+ export type OrgGroupCapabilityBundle = Audited<string> & CreateOrgGroupCapabilityBundle;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { CapabilityId } from './capability.interface';
3
+ export interface CreateOrgGroupCapability {
4
+ orgGroupId: string;
5
+ capabilityId: CapabilityId;
6
+ }
7
+ export type OrgGroupCapability = Audited<string> & CreateOrgGroupCapability;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type { Audited } from './audited.interface';
2
+ export interface CreateOrgGroupMember {
3
+ orgGroupId: string;
4
+ userId: string;
5
+ }
6
+ export type OrgGroupMember = Audited<string> & CreateOrgGroupMember;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { LocalizedText } from './localized-text.interface';
3
+ export declare enum OrgGroupType {
4
+ /**
5
+ * The organization default "default" group, which is not editable
6
+ * Every member added to the organization should be added automatically to this group
7
+ */
8
+ DEFAULT = "default",
9
+ /**
10
+ * The organization default "admin" group, which is not editable users, only by SUPERUSERS
11
+ * The capabilities to manage the organization are automatically assigned to this group and can not be removed from it.
12
+ */
13
+ ADMIN = "admin",
14
+ /**
15
+ * All organization groups created by users, which are editable and deletable
16
+ */
17
+ CUSTOM = "custom"
18
+ }
19
+ export interface CreateOrgGroup {
20
+ orgId: string;
21
+ name: LocalizedText;
22
+ description?: LocalizedText | null;
23
+ type: OrgGroupType;
24
+ }
25
+ export type UpdateOrgGroup = Partial<Pick<CreateOrgGroup, 'name' | 'description'>>;
26
+ export interface OrgGroup extends Audited<string> {
27
+ readonly id: string;
28
+ orgId: string;
29
+ name: LocalizedText;
30
+ description: LocalizedText | null;
31
+ type: OrgGroupType;
32
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgGroupType = void 0;
4
+ var OrgGroupType;
5
+ (function (OrgGroupType) {
6
+ /**
7
+ * The organization default "default" group, which is not editable
8
+ * Every member added to the organization should be added automatically to this group
9
+ */
10
+ OrgGroupType["DEFAULT"] = "default";
11
+ /**
12
+ * The organization default "admin" group, which is not editable users, only by SUPERUSERS
13
+ * The capabilities to manage the organization are automatically assigned to this group and can not be removed from it.
14
+ */
15
+ OrgGroupType["ADMIN"] = "admin";
16
+ /**
17
+ * All organization groups created by users, which are editable and deletable
18
+ */
19
+ OrgGroupType["CUSTOM"] = "custom";
20
+ })(OrgGroupType || (exports.OrgGroupType = OrgGroupType = {}));
@@ -0,0 +1,16 @@
1
+ import type { Audited } from './audited.interface';
2
+ import { PlanId } from './plan.interface';
3
+ export declare enum OrgSubscriptionStatus {
4
+ ACTIVE = "active",
5
+ EXPIRED = "expired",
6
+ CANCELLED = "cancelled"
7
+ }
8
+ export interface CreateOrgSubscription {
9
+ orgId: string;
10
+ planId: PlanId;
11
+ status: OrgSubscriptionStatus;
12
+ }
13
+ export interface OrgSubscription extends Audited<string>, CreateOrgSubscription {
14
+ readonly id: string;
15
+ }
16
+ export type UpdateOrgSubscription = Partial<Pick<CreateOrgSubscription, 'status'>>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgSubscriptionStatus = void 0;
4
+ var OrgSubscriptionStatus;
5
+ (function (OrgSubscriptionStatus) {
6
+ OrgSubscriptionStatus["ACTIVE"] = "active";
7
+ OrgSubscriptionStatus["EXPIRED"] = "expired";
8
+ OrgSubscriptionStatus["CANCELLED"] = "cancelled";
9
+ })(OrgSubscriptionStatus || (exports.OrgSubscriptionStatus = OrgSubscriptionStatus = {}));
@@ -0,0 +1,8 @@
1
+ import type { Audited } from './audited.interface';
2
+ import { FeatureId } from './feature.interface';
3
+ import { PlanId } from './plan.interface';
4
+ export interface CreatePlanFeature {
5
+ planId: PlanId;
6
+ featureId: FeatureId;
7
+ }
8
+ export type PlanFeature = Audited<string> & CreatePlanFeature;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { LocalizedText } from './localized-text.interface';
3
+ export declare enum PlanId {
4
+ DEFAULT = "default"
5
+ }
6
+ export interface CreatePlan {
7
+ id: PlanId;
8
+ name: LocalizedText;
9
+ description?: LocalizedText | null;
10
+ }
11
+ export type UpdatePlan = Partial<Pick<CreatePlan, 'name' | 'description'>>;
12
+ export interface Plan extends Audited<string>, Omit<CreatePlan, 'id' | 'description'> {
13
+ readonly id: PlanId;
14
+ description: LocalizedText | null;
15
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlanId = void 0;
4
+ var PlanId;
5
+ (function (PlanId) {
6
+ PlanId["DEFAULT"] = "default";
7
+ })(PlanId || (exports.PlanId = PlanId = {}));
@@ -0,0 +1,7 @@
1
+ import type { Audited } from './audited.interface';
2
+ import { CapabilityBundleId } from './capability-bundle.interface';
3
+ export interface CreateServiceAccountCapabilityBundle {
4
+ serviceAccountId: string;
5
+ capabilityBundleId: CapabilityBundleId;
6
+ }
7
+ export type ServiceAccountCapabilityBundle = Audited<string> & CreateServiceAccountCapabilityBundle;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type { Audited } from './audited.interface';
2
+ import type { CapabilityId } from './capability.interface';
3
+ export interface CreateServiceAccountCapability {
4
+ serviceAccountId: string;
5
+ capabilityId: CapabilityId;
6
+ }
7
+ export type ServiceAccountCapability = Audited<string> & CreateServiceAccountCapability;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface SqlPagination {
2
+ /**
3
+ * The number of records to skip before starting to collect the result set.
4
+ * This is useful for pagination.
5
+ */
6
+ skip?: number;
7
+ take?: number;
8
+ }
9
+ export interface SqlPaginationResult<T> extends SqlPagination {
10
+ /**
11
+ * The total number of records that match the query, regardless of pagination.
12
+ */
13
+ total: number;
14
+ /**
15
+ * The records returned by the query, limited by pagination.
16
+ */
17
+ results: T[];
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,7 +41,7 @@ export type { Secret } from './secret.interface';
41
41
  export type { ServerSentEvent } from './sse.interface';
42
42
  export type { Artifact, FileType, Storage, StorageProvider } from './storage.interface';
43
43
  export type { Assignee, Task } from './task.interface';
44
- export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeseriesChange, TimeSeriesCondition, TimeseriesSubject, TimeSeriesValue, TS_GROUPS, } from './timeseries.interface';
44
+ export type { MostRecentTimeSeriesValueUpdate, Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeseriesChange, TimeSeriesCondition, TimeseriesSubject, TimeSeriesValue, TS_GROUPS, } from './timeseries.interface';
45
45
  export type { Translation, TranslationData } from './translation.interface';
46
46
  export type { Application, Consent, Permission, TableSetting, TableSettingProfile, UserSettings } from './user-settings.interface';
47
47
  export type { KVSecretVersion, VaultSecret } from './vault.interface';
@@ -72,3 +72,5 @@ export { TranslationEditData } from './translation.interface';
72
72
  export { isAsset, isAssignee, isAuthor, isContent, isContentAnalysis, isEvent, isLogbookEntry, isOwner, isStorage, isTask, isUserMessage, } from './type-guards';
73
73
  export { SecretType } from './vault.interface';
74
74
  export { WebSocketMessageType } from './websockets.interface';
75
+ export type { WebSocketError } from './websockets.interface';
76
+ export * from './authz';
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LABEL_COLORS = 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.LogbookEntrySource = void 0;
4
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 = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = void 0;
5
+ const tslib_1 = require("tslib");
5
6
  var logbook_interface_1 = require("./logbook.interface");
6
7
  Object.defineProperty(exports, "LogbookEntrySource", { enumerable: true, get: function () { return logbook_interface_1.LogbookEntrySource; } });
7
8
  var ai_interface_1 = require("./ai.interface");
@@ -118,3 +119,4 @@ var vault_interface_1 = require("./vault.interface");
118
119
  Object.defineProperty(exports, "SecretType", { enumerable: true, get: function () { return vault_interface_1.SecretType; } });
119
120
  var websockets_interface_1 = require("./websockets.interface");
120
121
  Object.defineProperty(exports, "WebSocketMessageType", { enumerable: true, get: function () { return websockets_interface_1.WebSocketMessageType; } });
122
+ tslib_1.__exportStar(require("./authz"), exports);
@@ -41,6 +41,11 @@ export interface TimeSeriesValue {
41
41
  raw?: number;
42
42
  [key: string]: any;
43
43
  }
44
+ export interface MostRecentTimeSeriesValueUpdate {
45
+ [assetId: string]: {
46
+ [timeSeriesName: string]: TimeSeriesValue | null;
47
+ };
48
+ }
44
49
  export interface TimeSeriesBucket {
45
50
  id?: string;
46
51
  ts: TimeSeries;