@hahnpro/hpc-api 2026.4.3 → 2026.4.4
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 +1 -1
- package/src/lib/interfaces/asset.interface.d.ts +18 -3
- package/src/lib/interfaces/audit.interface.d.ts +19 -0
- package/src/lib/interfaces/audit.interface.js +2 -0
- package/src/lib/interfaces/billing.interface.d.ts +72 -0
- package/src/lib/interfaces/billing.interface.js +15 -0
- package/src/lib/interfaces/content.interface.d.ts +32 -1
- package/src/lib/interfaces/content.interface.js +9 -1
- package/src/lib/interfaces/edge-device.interface.d.ts +28 -0
- package/src/lib/interfaces/edge-device.interface.js +2 -0
- package/src/lib/interfaces/event.interface.d.ts +16 -7
- package/src/lib/interfaces/event.interface.js +27 -8
- package/src/lib/interfaces/index.d.ts +26 -12
- package/src/lib/interfaces/index.js +42 -7
- package/src/lib/interfaces/label.interface.d.ts +4 -4
- package/src/lib/interfaces/marketplace.interface.d.ts +82 -0
- package/src/lib/interfaces/marketplace.interface.js +12 -0
- package/src/lib/interfaces/nats.interface.d.ts +57 -0
- package/src/lib/interfaces/nats.interface.js +60 -0
- package/src/lib/interfaces/organization.interface.d.ts +0 -1
- package/src/lib/interfaces/resource.interface.d.ts +27 -1
- package/src/lib/interfaces/resource.interface.js +23 -1
- package/src/lib/interfaces/role.interface.d.ts +13 -0
- package/src/lib/interfaces/role.interface.js +2 -0
- package/src/lib/interfaces/schema.interface.d.ts +4 -0
- package/src/lib/interfaces/search.interface.d.ts +4 -0
- package/src/lib/interfaces/timeseries.interface.d.ts +8 -2
- package/src/lib/interfaces/translation.interface.d.ts +14 -0
- package/src/lib/interfaces/translation.interface.js +6 -0
- package/src/lib/interfaces/type-guards.d.ts +17 -0
- package/src/lib/interfaces/type-guards.js +203 -0
- package/src/lib/interfaces/user-settings.interface.d.ts +15 -10
- package/src/lib/interfaces/vault.interface.d.ts +11 -0
- package/src/lib/interfaces/vault.interface.js +6 -0
- package/src/lib/interfaces/websockets.interface.d.ts +11 -0
- package/src/lib/interfaces/websockets.interface.js +15 -0
package/package.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Change, ChangeSubject } from './api.interface';
|
|
2
|
+
import type { Author } from './author.interface';
|
|
3
|
+
import type { Content } from './content.interface';
|
|
4
|
+
import type { EventLevel } from './event.interface';
|
|
5
|
+
import type { Owner } from './owner.interface';
|
|
6
|
+
import type { SearchResultItem } from './search.interface';
|
|
2
7
|
export interface AssetType {
|
|
3
8
|
id?: string;
|
|
4
9
|
name: string;
|
|
@@ -63,11 +68,11 @@ export type AssetRevision = Asset & {
|
|
|
63
68
|
export type Attachment = Content;
|
|
64
69
|
export interface EventCause {
|
|
65
70
|
cause: string;
|
|
66
|
-
level:
|
|
71
|
+
level: EventLevel;
|
|
67
72
|
}
|
|
68
73
|
export interface EventLevelOverride {
|
|
69
74
|
[assetId: string]: {
|
|
70
|
-
[eventCause: string]:
|
|
75
|
+
[eventCause: string]: EventLevel;
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
export interface Template {
|
|
@@ -87,3 +92,13 @@ export interface AssetTimeSeriesValue {
|
|
|
87
92
|
assetId: string;
|
|
88
93
|
timeSeriesValue: number;
|
|
89
94
|
}
|
|
95
|
+
export type AssetSubject = ChangeSubject | 'parent' | 'type';
|
|
96
|
+
export interface AssetChange extends Change {
|
|
97
|
+
subject: AssetSubject;
|
|
98
|
+
value: string;
|
|
99
|
+
}
|
|
100
|
+
export interface AssetTypeSearchResult extends SearchResultItem {
|
|
101
|
+
isSystemAssetType: boolean;
|
|
102
|
+
isGlobalAssetType: boolean;
|
|
103
|
+
owner?: Owner;
|
|
104
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Api } from './api.interface';
|
|
2
|
+
export interface Audit extends Api {
|
|
3
|
+
id: string;
|
|
4
|
+
date: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
service: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
user: string;
|
|
9
|
+
correlationId: string;
|
|
10
|
+
ip: string;
|
|
11
|
+
host: string;
|
|
12
|
+
url: string;
|
|
13
|
+
method: string;
|
|
14
|
+
controller: string;
|
|
15
|
+
action: string;
|
|
16
|
+
resourceId?: string;
|
|
17
|
+
resourceName?: string;
|
|
18
|
+
statusCode?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { OwnerType, type Owner } from './owner.interface';
|
|
2
|
+
import { EventType } from './resource.interface';
|
|
3
|
+
export interface Billing {
|
|
4
|
+
id: string;
|
|
5
|
+
type: OwnerType;
|
|
6
|
+
readPermissions: string[];
|
|
7
|
+
readWritePermissions: string[];
|
|
8
|
+
billedRegularly: RegularlyBilledResources;
|
|
9
|
+
billedOnce?: Record<string, OnceBilledResources>;
|
|
10
|
+
subscription?: BillingSubscription;
|
|
11
|
+
lastBilled?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RegularlyBilledResources {
|
|
14
|
+
assets: Record<string, BillingResource>;
|
|
15
|
+
storage: Record<string, BillingResource>;
|
|
16
|
+
timeseries: Record<string, BillingResource>;
|
|
17
|
+
user: Record<string, BillingResource>;
|
|
18
|
+
}
|
|
19
|
+
export interface OnceBilledResources {
|
|
20
|
+
completion_tokens: number;
|
|
21
|
+
events: number;
|
|
22
|
+
flow_credits: number;
|
|
23
|
+
prompt_tokens: number;
|
|
24
|
+
tasks: number;
|
|
25
|
+
ts_values: number;
|
|
26
|
+
}
|
|
27
|
+
export interface BillingResource {
|
|
28
|
+
statuses: {
|
|
29
|
+
timestamp: string;
|
|
30
|
+
status: EventType;
|
|
31
|
+
}[];
|
|
32
|
+
size?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface BillingSubscription {
|
|
35
|
+
azureId: string;
|
|
36
|
+
planId: string;
|
|
37
|
+
startDate: string;
|
|
38
|
+
isActive: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface BillingEvent {
|
|
41
|
+
owner: Owner;
|
|
42
|
+
sizes?: number[];
|
|
43
|
+
}
|
|
44
|
+
export type BillingValues = {
|
|
45
|
+
assets: number;
|
|
46
|
+
storage: number;
|
|
47
|
+
timeseries: number;
|
|
48
|
+
user: number;
|
|
49
|
+
} & OnceBilledResources;
|
|
50
|
+
export interface AzureBillingEvent {
|
|
51
|
+
resourceId: string;
|
|
52
|
+
quantity: number;
|
|
53
|
+
dimension: string;
|
|
54
|
+
effectiveStartTime: string;
|
|
55
|
+
planId: string;
|
|
56
|
+
status?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface AzureBillingResult {
|
|
59
|
+
count: number;
|
|
60
|
+
result: AzureBillingEvent[];
|
|
61
|
+
}
|
|
62
|
+
export declare enum BillingResourceType {
|
|
63
|
+
AI_TOKENS = "ai_tokens",
|
|
64
|
+
ASSETS = "assets",
|
|
65
|
+
EVENTS = "events",
|
|
66
|
+
FLOW_CREDITS = "flow_credits",
|
|
67
|
+
STORAGE = "storage",
|
|
68
|
+
TASKS = "tasks",
|
|
69
|
+
TIMESERIES = "timeseries",
|
|
70
|
+
TS_VALUES = "ts_values",
|
|
71
|
+
USER = "user"
|
|
72
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingResourceType = void 0;
|
|
4
|
+
var BillingResourceType;
|
|
5
|
+
(function (BillingResourceType) {
|
|
6
|
+
BillingResourceType["AI_TOKENS"] = "ai_tokens";
|
|
7
|
+
BillingResourceType["ASSETS"] = "assets";
|
|
8
|
+
BillingResourceType["EVENTS"] = "events";
|
|
9
|
+
BillingResourceType["FLOW_CREDITS"] = "flow_credits";
|
|
10
|
+
BillingResourceType["STORAGE"] = "storage";
|
|
11
|
+
BillingResourceType["TASKS"] = "tasks";
|
|
12
|
+
BillingResourceType["TIMESERIES"] = "timeseries";
|
|
13
|
+
BillingResourceType["TS_VALUES"] = "ts_values";
|
|
14
|
+
BillingResourceType["USER"] = "user";
|
|
15
|
+
})(BillingResourceType || (exports.BillingResourceType = BillingResourceType = {}));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Change, ChangeSubject } from './api.interface';
|
|
2
|
+
import type { Author } from './author.interface';
|
|
3
|
+
import type { Owner } from './owner.interface';
|
|
4
|
+
import type { SearchResultItem } from './search.interface';
|
|
5
|
+
import type { Storage } from './storage.interface';
|
|
2
6
|
export interface Content {
|
|
3
7
|
id?: string;
|
|
4
8
|
fileId: string;
|
|
@@ -19,6 +23,10 @@ export interface Content {
|
|
|
19
23
|
deletedAt?: string;
|
|
20
24
|
analysis?: string | ContentAnalysis;
|
|
21
25
|
}
|
|
26
|
+
export interface ContentSearchResult extends SearchResultItem {
|
|
27
|
+
filename?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
22
30
|
export declare class ContentAnalysis {
|
|
23
31
|
id: string;
|
|
24
32
|
contentId: string;
|
|
@@ -30,6 +38,29 @@ export declare class ContentAnalysis {
|
|
|
30
38
|
text?: string;
|
|
31
39
|
}[];
|
|
32
40
|
}
|
|
41
|
+
export interface ContentChange extends Change {
|
|
42
|
+
subject: ChangeSubject;
|
|
43
|
+
value: string;
|
|
44
|
+
}
|
|
45
|
+
export declare enum IndexingStatus {
|
|
46
|
+
COMPLETED = "completed",
|
|
47
|
+
FAILED = "failed",
|
|
48
|
+
NOT_TRIGGERED = "notTriggered",
|
|
49
|
+
QUEUED = "queued",
|
|
50
|
+
PARTIALLY_FAILED = "partiallyFailed"
|
|
51
|
+
}
|
|
52
|
+
export interface IndexingStatusData {
|
|
53
|
+
id: string;
|
|
54
|
+
status: IndexingStatus;
|
|
55
|
+
}
|
|
56
|
+
export type ReindexStatusSsePayload = {
|
|
57
|
+
type: 'status';
|
|
58
|
+
content: IndexingStatusData[];
|
|
59
|
+
} | {
|
|
60
|
+
type: 'error';
|
|
61
|
+
message: string;
|
|
62
|
+
status?: number;
|
|
63
|
+
};
|
|
33
64
|
export declare enum ReturnType {
|
|
34
65
|
TEXT = 0,
|
|
35
66
|
JSON = 1,
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReturnType = exports.ContentAnalysis = void 0;
|
|
3
|
+
exports.ReturnType = exports.IndexingStatus = exports.ContentAnalysis = void 0;
|
|
4
4
|
class ContentAnalysis {
|
|
5
5
|
}
|
|
6
6
|
exports.ContentAnalysis = ContentAnalysis;
|
|
7
|
+
var IndexingStatus;
|
|
8
|
+
(function (IndexingStatus) {
|
|
9
|
+
IndexingStatus["COMPLETED"] = "completed";
|
|
10
|
+
IndexingStatus["FAILED"] = "failed";
|
|
11
|
+
IndexingStatus["NOT_TRIGGERED"] = "notTriggered";
|
|
12
|
+
IndexingStatus["QUEUED"] = "queued";
|
|
13
|
+
IndexingStatus["PARTIALLY_FAILED"] = "partiallyFailed";
|
|
14
|
+
})(IndexingStatus || (exports.IndexingStatus = IndexingStatus = {}));
|
|
7
15
|
var ReturnType;
|
|
8
16
|
(function (ReturnType) {
|
|
9
17
|
ReturnType[ReturnType["TEXT"] = 0] = "TEXT";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface EdgeDeviceResult {
|
|
2
|
+
xml?: {
|
|
3
|
+
wkadaten: {
|
|
4
|
+
element: {
|
|
5
|
+
value: string | number;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
json?: Record<string, {
|
|
10
|
+
Wert: number;
|
|
11
|
+
}>;
|
|
12
|
+
webIO?: WebIOData;
|
|
13
|
+
}
|
|
14
|
+
export interface EdgeDeviceRequestResponse {
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface WebIOData {
|
|
18
|
+
iostate: {
|
|
19
|
+
input: {
|
|
20
|
+
number: number;
|
|
21
|
+
state: number;
|
|
22
|
+
}[];
|
|
23
|
+
output: {
|
|
24
|
+
number: number;
|
|
25
|
+
state: number;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Author, Owner, Resource } from '.';
|
|
2
|
+
import type { EventLevelOverride } from './asset.interface';
|
|
2
3
|
export interface Event extends Resource {
|
|
3
4
|
data?: Record<string, any>;
|
|
4
5
|
assetRef?: string;
|
|
@@ -7,18 +8,20 @@ export interface Event extends Resource {
|
|
|
7
8
|
tsRef?: string;
|
|
8
9
|
eventRef?: string;
|
|
9
10
|
cause?: string;
|
|
10
|
-
level:
|
|
11
|
+
level: string;
|
|
11
12
|
group?: string;
|
|
12
13
|
owner?: Owner;
|
|
13
14
|
createdBy?: Author;
|
|
14
15
|
updatedBy?: Author;
|
|
15
16
|
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Warning
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export declare const eventLevels: readonly ["WARNING", "OK", "CRITICAL", "INFO"];
|
|
18
|
+
export type EventLevel = (typeof eventLevels)[number];
|
|
19
|
+
export declare const EventLevel: {
|
|
20
|
+
readonly Warning: "WARNING";
|
|
21
|
+
readonly OK: "OK";
|
|
22
|
+
readonly Critical: "CRITICAL";
|
|
23
|
+
readonly Info: "INFO";
|
|
24
|
+
};
|
|
22
25
|
export type CreateEventDto = Omit<Event, 'id' | 'assetRef$name' | 'createdAt' | 'updatedAt'>;
|
|
23
26
|
export interface EventCountByAsset {
|
|
24
27
|
id: string;
|
|
@@ -28,3 +31,9 @@ export interface EventCountByAsset {
|
|
|
28
31
|
eventId?: string;
|
|
29
32
|
eventName?: string;
|
|
30
33
|
}
|
|
34
|
+
export declare class EventLevelOverrideWrapper {
|
|
35
|
+
private readonly data;
|
|
36
|
+
constructor(data: EventLevelOverride);
|
|
37
|
+
setEventLevel(assetId: string, eventCause: string, level: EventLevel): void;
|
|
38
|
+
getEventLevel(assetId: string, eventCause?: string): EventLevel;
|
|
39
|
+
}
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventLevel = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
exports.EventLevelOverrideWrapper = exports.EventLevel = exports.eventLevels = void 0;
|
|
4
|
+
exports.eventLevels = ['WARNING', 'OK', 'CRITICAL', 'INFO'];
|
|
5
|
+
exports.EventLevel = {
|
|
6
|
+
Warning: 'WARNING',
|
|
7
|
+
OK: 'OK',
|
|
8
|
+
Critical: 'CRITICAL',
|
|
9
|
+
Info: 'INFO',
|
|
10
|
+
};
|
|
11
|
+
class EventLevelOverrideWrapper {
|
|
12
|
+
constructor(data) {
|
|
13
|
+
this.data = data ?? {};
|
|
14
|
+
}
|
|
15
|
+
setEventLevel(assetId, eventCause, level) {
|
|
16
|
+
if (!this.data[assetId]) {
|
|
17
|
+
this.data[assetId] = {};
|
|
18
|
+
}
|
|
19
|
+
this.data[assetId][eventCause] = level;
|
|
20
|
+
}
|
|
21
|
+
getEventLevel(assetId, eventCause) {
|
|
22
|
+
eventCause = eventCause?.replace(/\s+/g, ' ').trim();
|
|
23
|
+
if (this.data[assetId]?.[eventCause]) {
|
|
24
|
+
return this.data[assetId][eventCause];
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.EventLevelOverrideWrapper = EventLevelOverrideWrapper;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export type { AiAssistant, AssetResourceSelectionOption, AssistantMessage, DocumentResourceSelectionOption, GenericResourceSelectionOption, LogbookEntryResourceSelectionOption, Message, ResourceSelectionOption, ResourceSelectionRejected, SpeechToken, SystemMessage, Thread, ThreadPopulated, ToolMessage, ToolNameType, UserMessage, } from './ai.interface';
|
|
2
2
|
export type { Alert, AlertCondition, AlertMessageTemplate, TimeSeriesReference, UpdatedField } from './alert.interface';
|
|
3
3
|
export type { Api, Change, ChangeSubject, ObjectIdLike } from './api.interface';
|
|
4
|
-
export type {
|
|
4
|
+
export type { AzureBillingEvent, AzureBillingResult, Billing, BillingEvent, BillingResource, BillingSubscription, BillingValues, OnceBilledResources, RegularlyBilledResources, } from './billing.interface';
|
|
5
|
+
export type { AddToProperty, Asset, AssetChange, AssetSubject, AssetRevision, AssetTimeSeriesValue, AssetType, AssetTypeRevision, AssetTypeSearchResult, Attachment, EventCause, EventLevelOverride, RemoveFromProperty, Template, } from './asset.interface';
|
|
5
6
|
export type { Author } from './author.interface';
|
|
6
|
-
export type {
|
|
7
|
+
export type { Audit } from './audit.interface';
|
|
8
|
+
export type { Content, ContentAnalysis, ContentChange, ContentSearchResult, IndexingStatusData, ReindexStatusSsePayload, } from './content.interface';
|
|
7
9
|
export type { CrmImportJsonRequest, CrmImportParser, CrmImportResponse } from './crm.interface';
|
|
8
10
|
export type { DataInterface, Filter, Paginated, RequestParameter } from './data.interface';
|
|
11
|
+
export type { EdgeDeviceRequestResponse, EdgeDeviceResult, WebIOData } from './edge-device.interface';
|
|
9
12
|
export type { AdditionalNotificationData, Endpoint, EndpointConfig, EndpointLog, NotificationEndpoint, NotificationEndpointLog, NotificationLogType, NotificationPayload, SearchEndpointResult, } from './endpoint.interface';
|
|
10
13
|
export type { CreateEventDto, Event, EventCountByAsset } from './event.interface';
|
|
11
14
|
export type { FlowConnection, FlowDeploymentMetrics, FlowDeploymentStatistic, FlowElement, FlowLog, FlowModel, Metrics, Stats, StatsValues, } from './flow-deployment.interface';
|
|
@@ -17,39 +20,50 @@ export type { Config, Issuer, TokenOption } from './http.interface';
|
|
|
17
20
|
export type { InvitationRepresentation } from './invitation-representation.interface';
|
|
18
21
|
export type { KeycloakProfile } from './keycloak-profile.interface';
|
|
19
22
|
export type { CreateLabelDto, Label, LabelColor, UpdateLabelDto } from './label.interface';
|
|
23
|
+
export type { MeteredQuantity, MeteringDimension, Plan, PlanComponents, RecurrentBillingTerm, SourceOffer, Subscription, SubscriptionInfo, Term, } from './marketplace.interface';
|
|
20
24
|
export type { NotificationRule, StatusRule, TagRule } from './notification-rule.interface';
|
|
21
25
|
export type { Notification, NotificationType } from './notification.interface';
|
|
26
|
+
export type { RoleRepresentation } from './role.interface';
|
|
22
27
|
export type { OrganizationRoleRepresentation } from './organization-role-representation.interface';
|
|
23
|
-
export {
|
|
24
|
-
export type { CreateOrganizationDto, Organization, OrganizationData, OrganizationDataKind, OrganizationDomain, OrganizationExtraProperties, OrganizationName, OrganizationRolesAdjustment, OrganizationSearchQuery, SubscriptionType, UserWithOrgRoles, } from './organization.interface';
|
|
28
|
+
export type { CreateOrganizationDto, Organization, OrganizationData, OrganizationDataKind, OrganizationDomain, OrganizationExtraProperties, OrganizationName, OrganizationRolesAdjustment, OrganizationSearchQuery, UserWithOrgRoles, } from './organization.interface';
|
|
25
29
|
export type { CreateOrgWithResourcesDto, OrganizationResourcesProgress, OrganizationResourcesProgressDto, OrganizationResourcesProgressErrorDto, } from './organizations-resources.interface';
|
|
26
30
|
export type { Owner } from './owner.interface';
|
|
27
31
|
export type { DeleteAssetQuery, DeleteAssetTypeQuery, DeleteQuery } from './query.interface';
|
|
28
32
|
export type { CreateReferenceDto, ObjectReference, ReferencesQuery } from './reference.interface';
|
|
29
|
-
export type { ConnectedResources, ConnectedResourceType, OrgResourcePermission, Resource, ResourceReference, SharedResources, } from './resource.interface';
|
|
30
|
-
export type { JsonSchema, JsonSchemaArray, JsonSchemaForm, JsonSchemaType, JsonSchemaTypeName } from './schema.interface';
|
|
31
|
-
export type { SearchMatchReason, SearchMatchReasonContentPart, SearchOptions, SearchResult, SearchSortOption, SortableField, } from './search.interface';
|
|
33
|
+
export type { ConnectedResources, ConnectedResourceType, OrgResourcePermission, Populated, ResolvedResourceReference, Resource, ResourceReference, Rollback, SharedResources, } from './resource.interface';
|
|
34
|
+
export type { JsonSchema, JsonSchemaArray, JsonSchemaData, JsonSchemaForm, JsonSchemaType, JsonSchemaTypeName } from './schema.interface';
|
|
35
|
+
export type { SearchMatchReason, SearchMatchReasonContentPart, SearchOptions, SearchResult, SearchResultItem, SearchSortOption, SortableField, } from './search.interface';
|
|
32
36
|
export type { Secret } from './secret.interface';
|
|
33
37
|
export type { ServerSentEvent } from './sse.interface';
|
|
34
38
|
export type { Artifact, FileType, Storage, StorageProvider } from './storage.interface';
|
|
35
39
|
export type { Assignee, LogbookEntry, LogbookEntryDto, Task } from './task.interface';
|
|
36
|
-
export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeSeriesCondition, TimeSeriesValue, TS_GROUPS, } from './timeseries.interface';
|
|
40
|
+
export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeseriesChange, TimeseriesSubject, TimeSeriesCondition, TimeSeriesValue, TS_GROUPS, } from './timeseries.interface';
|
|
41
|
+
export type { Translation, TranslationData } from './translation.interface';
|
|
37
42
|
export type { Application, Consent, Permission, TableSetting, TableSettingProfile, UserSettings } from './user-settings.interface';
|
|
38
|
-
export type { VaultSecret } from './vault.interface';
|
|
43
|
+
export type { KVSecretVersion, VaultSecret } from './vault.interface';
|
|
39
44
|
export { AgentId, AiAssistantId, AssistantMessageStatus, AvailableLanguages, FinishReason, HandOffTool, ReferenceType, ReturnToReferrerTool, Role, ToolMessageStatus, ToolName, ToolType, } from './ai.interface';
|
|
40
45
|
export { ChangeAction } from './api.interface';
|
|
46
|
+
export { BillingResourceType } from './billing.interface';
|
|
41
47
|
export { AlertLevel, AlertStatus, AlertType, DEFAULT_THRESHOLD_CONDITION, DEFAULT_RELATIVE_CONDITION, DEFAULT_DEADMAN_CONDITION, } from './alert.interface';
|
|
42
|
-
export { ReturnType } from './content.interface';
|
|
48
|
+
export { IndexingStatus, ReturnType } from './content.interface';
|
|
43
49
|
export { instanceOfTimePeriod } from './data.interface';
|
|
44
50
|
export { NotificationEndpointStatus, NotificationEndpointType, NotificationEndpointSpamProtection } from './endpoint.interface';
|
|
45
|
-
export { EventLevel } from './event.interface';
|
|
51
|
+
export { eventLevels, EventLevel, EventLevelOverrideWrapper } from './event.interface';
|
|
46
52
|
export { Flow, FlowDiagram } from './flow.interface';
|
|
47
53
|
export { FlowDeployment } from './flow-deployment.interface';
|
|
48
54
|
export { ERROR_STATES, FlowDeploymentStatus, PROCESSING_STATES, RUNNING_STATES, STOPPED_STATES, UNKOWN_STATES, } from './flow-deployment-status.interface';
|
|
49
55
|
export { LABEL_COLORS } from './label.interface';
|
|
56
|
+
export { SubscriptionType } from './marketplace.interface';
|
|
57
|
+
export { NatsConsumers, natsFlowsPrefix, natsHpcPrefix, NatsStreams } from './nats.interface';
|
|
50
58
|
export { NotificationRuleStatus } from './notification-rule.interface';
|
|
59
|
+
export { OrganizationMembersInviteOrAdd } from './organization.interface';
|
|
51
60
|
export { OwnerType } from './owner.interface';
|
|
52
61
|
export { ObjectReferenceType } from './reference.interface';
|
|
53
|
-
export {
|
|
62
|
+
export { arePopulated, isPopulated } from './resource.interface';
|
|
63
|
+
export { CommandType, EventType, PermissionType, ResourceApiPath, resourceApiPathToTypeMap, ResourceType } from './resource.interface';
|
|
64
|
+
export { isAsset, isAssignee, isAuthor, isContent, isContentAnalysis, isEvent, isLogbookEntry, isOwner, isStorage, isTask, } from './type-guards';
|
|
54
65
|
export { AssigneeType, Priority, TaskStatus } from './task.interface';
|
|
66
|
+
export { TranslationEditData } from './translation.interface';
|
|
55
67
|
export { RETENTION_VALUES } from './timeseries.interface';
|
|
68
|
+
export { SecretType } from './vault.interface';
|
|
69
|
+
export { WebSocketMessageType } from './websockets.interface';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "OrganizationMembersInviteOrAdd", { enumerable: true, get: function () { return organization_interface_1.OrganizationMembersInviteOrAdd; } });
|
|
3
|
+
exports.isPopulated = exports.arePopulated = exports.ObjectReferenceType = exports.OwnerType = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = exports.UNKOWN_STATES = exports.STOPPED_STATES = exports.RUNNING_STATES = exports.PROCESSING_STATES = exports.FlowDeploymentStatus = exports.ERROR_STATES = exports.FlowDeployment = exports.FlowDiagram = exports.Flow = exports.EventLevelOverrideWrapper = exports.EventLevel = exports.eventLevels = exports.NotificationEndpointSpamProtection = exports.NotificationEndpointType = exports.NotificationEndpointStatus = exports.instanceOfTimePeriod = exports.ReturnType = exports.IndexingStatus = exports.DEFAULT_DEADMAN_CONDITION = exports.DEFAULT_RELATIVE_CONDITION = exports.DEFAULT_THRESHOLD_CONDITION = exports.AlertType = exports.AlertStatus = exports.AlertLevel = exports.BillingResourceType = exports.ChangeAction = 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.RETENTION_VALUES = exports.TranslationEditData = exports.TaskStatus = exports.Priority = exports.AssigneeType = exports.isTask = exports.isStorage = exports.isOwner = exports.isLogbookEntry = exports.isEvent = exports.isContentAnalysis = exports.isContent = exports.isAuthor = exports.isAssignee = exports.isAsset = exports.ResourceType = exports.resourceApiPathToTypeMap = exports.ResourceApiPath = exports.PermissionType = exports.EventType = exports.CommandType = void 0;
|
|
6
5
|
var ai_interface_1 = require("./ai.interface");
|
|
7
6
|
Object.defineProperty(exports, "AgentId", { enumerable: true, get: function () { return ai_interface_1.AgentId; } });
|
|
8
7
|
Object.defineProperty(exports, "AiAssistantId", { enumerable: true, get: function () { return ai_interface_1.AiAssistantId; } });
|
|
@@ -18,6 +17,8 @@ Object.defineProperty(exports, "ToolName", { enumerable: true, get: function ()
|
|
|
18
17
|
Object.defineProperty(exports, "ToolType", { enumerable: true, get: function () { return ai_interface_1.ToolType; } });
|
|
19
18
|
var api_interface_1 = require("./api.interface");
|
|
20
19
|
Object.defineProperty(exports, "ChangeAction", { enumerable: true, get: function () { return api_interface_1.ChangeAction; } });
|
|
20
|
+
var billing_interface_1 = require("./billing.interface");
|
|
21
|
+
Object.defineProperty(exports, "BillingResourceType", { enumerable: true, get: function () { return billing_interface_1.BillingResourceType; } });
|
|
21
22
|
var alert_interface_1 = require("./alert.interface");
|
|
22
23
|
Object.defineProperty(exports, "AlertLevel", { enumerable: true, get: function () { return alert_interface_1.AlertLevel; } });
|
|
23
24
|
Object.defineProperty(exports, "AlertStatus", { enumerable: true, get: function () { return alert_interface_1.AlertStatus; } });
|
|
@@ -26,6 +27,7 @@ Object.defineProperty(exports, "DEFAULT_THRESHOLD_CONDITION", { enumerable: true
|
|
|
26
27
|
Object.defineProperty(exports, "DEFAULT_RELATIVE_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_RELATIVE_CONDITION; } });
|
|
27
28
|
Object.defineProperty(exports, "DEFAULT_DEADMAN_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_DEADMAN_CONDITION; } });
|
|
28
29
|
var content_interface_1 = require("./content.interface");
|
|
30
|
+
Object.defineProperty(exports, "IndexingStatus", { enumerable: true, get: function () { return content_interface_1.IndexingStatus; } });
|
|
29
31
|
Object.defineProperty(exports, "ReturnType", { enumerable: true, get: function () { return content_interface_1.ReturnType; } });
|
|
30
32
|
var data_interface_1 = require("./data.interface");
|
|
31
33
|
Object.defineProperty(exports, "instanceOfTimePeriod", { enumerable: true, get: function () { return data_interface_1.instanceOfTimePeriod; } });
|
|
@@ -34,7 +36,9 @@ Object.defineProperty(exports, "NotificationEndpointStatus", { enumerable: true,
|
|
|
34
36
|
Object.defineProperty(exports, "NotificationEndpointType", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointType; } });
|
|
35
37
|
Object.defineProperty(exports, "NotificationEndpointSpamProtection", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointSpamProtection; } });
|
|
36
38
|
var event_interface_1 = require("./event.interface");
|
|
39
|
+
Object.defineProperty(exports, "eventLevels", { enumerable: true, get: function () { return event_interface_1.eventLevels; } });
|
|
37
40
|
Object.defineProperty(exports, "EventLevel", { enumerable: true, get: function () { return event_interface_1.EventLevel; } });
|
|
41
|
+
Object.defineProperty(exports, "EventLevelOverrideWrapper", { enumerable: true, get: function () { return event_interface_1.EventLevelOverrideWrapper; } });
|
|
38
42
|
var flow_interface_1 = require("./flow.interface");
|
|
39
43
|
Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return flow_interface_1.Flow; } });
|
|
40
44
|
Object.defineProperty(exports, "FlowDiagram", { enumerable: true, get: function () { return flow_interface_1.FlowDiagram; } });
|
|
@@ -49,20 +53,51 @@ Object.defineProperty(exports, "STOPPED_STATES", { enumerable: true, get: functi
|
|
|
49
53
|
Object.defineProperty(exports, "UNKOWN_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.UNKOWN_STATES; } });
|
|
50
54
|
var label_interface_1 = require("./label.interface");
|
|
51
55
|
Object.defineProperty(exports, "LABEL_COLORS", { enumerable: true, get: function () { return label_interface_1.LABEL_COLORS; } });
|
|
56
|
+
var marketplace_interface_1 = require("./marketplace.interface");
|
|
57
|
+
Object.defineProperty(exports, "SubscriptionType", { enumerable: true, get: function () { return marketplace_interface_1.SubscriptionType; } });
|
|
58
|
+
var nats_interface_1 = require("./nats.interface");
|
|
59
|
+
Object.defineProperty(exports, "NatsConsumers", { enumerable: true, get: function () { return nats_interface_1.NatsConsumers; } });
|
|
60
|
+
Object.defineProperty(exports, "natsFlowsPrefix", { enumerable: true, get: function () { return nats_interface_1.natsFlowsPrefix; } });
|
|
61
|
+
Object.defineProperty(exports, "natsHpcPrefix", { enumerable: true, get: function () { return nats_interface_1.natsHpcPrefix; } });
|
|
62
|
+
Object.defineProperty(exports, "NatsStreams", { enumerable: true, get: function () { return nats_interface_1.NatsStreams; } });
|
|
52
63
|
var notification_rule_interface_1 = require("./notification-rule.interface");
|
|
53
64
|
Object.defineProperty(exports, "NotificationRuleStatus", { enumerable: true, get: function () { return notification_rule_interface_1.NotificationRuleStatus; } });
|
|
65
|
+
var organization_interface_1 = require("./organization.interface");
|
|
66
|
+
Object.defineProperty(exports, "OrganizationMembersInviteOrAdd", { enumerable: true, get: function () { return organization_interface_1.OrganizationMembersInviteOrAdd; } });
|
|
54
67
|
var owner_interface_1 = require("./owner.interface");
|
|
55
68
|
Object.defineProperty(exports, "OwnerType", { enumerable: true, get: function () { return owner_interface_1.OwnerType; } });
|
|
56
69
|
var reference_interface_1 = require("./reference.interface");
|
|
57
70
|
Object.defineProperty(exports, "ObjectReferenceType", { enumerable: true, get: function () { return reference_interface_1.ObjectReferenceType; } });
|
|
58
71
|
var resource_interface_1 = require("./resource.interface");
|
|
59
|
-
Object.defineProperty(exports, "
|
|
60
|
-
Object.defineProperty(exports, "
|
|
61
|
-
|
|
62
|
-
Object.defineProperty(exports, "
|
|
72
|
+
Object.defineProperty(exports, "arePopulated", { enumerable: true, get: function () { return resource_interface_1.arePopulated; } });
|
|
73
|
+
Object.defineProperty(exports, "isPopulated", { enumerable: true, get: function () { return resource_interface_1.isPopulated; } });
|
|
74
|
+
var resource_interface_2 = require("./resource.interface");
|
|
75
|
+
Object.defineProperty(exports, "CommandType", { enumerable: true, get: function () { return resource_interface_2.CommandType; } });
|
|
76
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return resource_interface_2.EventType; } });
|
|
77
|
+
Object.defineProperty(exports, "PermissionType", { enumerable: true, get: function () { return resource_interface_2.PermissionType; } });
|
|
78
|
+
Object.defineProperty(exports, "ResourceApiPath", { enumerable: true, get: function () { return resource_interface_2.ResourceApiPath; } });
|
|
79
|
+
Object.defineProperty(exports, "resourceApiPathToTypeMap", { enumerable: true, get: function () { return resource_interface_2.resourceApiPathToTypeMap; } });
|
|
80
|
+
Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_interface_2.ResourceType; } });
|
|
81
|
+
var type_guards_1 = require("./type-guards");
|
|
82
|
+
Object.defineProperty(exports, "isAsset", { enumerable: true, get: function () { return type_guards_1.isAsset; } });
|
|
83
|
+
Object.defineProperty(exports, "isAssignee", { enumerable: true, get: function () { return type_guards_1.isAssignee; } });
|
|
84
|
+
Object.defineProperty(exports, "isAuthor", { enumerable: true, get: function () { return type_guards_1.isAuthor; } });
|
|
85
|
+
Object.defineProperty(exports, "isContent", { enumerable: true, get: function () { return type_guards_1.isContent; } });
|
|
86
|
+
Object.defineProperty(exports, "isContentAnalysis", { enumerable: true, get: function () { return type_guards_1.isContentAnalysis; } });
|
|
87
|
+
Object.defineProperty(exports, "isEvent", { enumerable: true, get: function () { return type_guards_1.isEvent; } });
|
|
88
|
+
Object.defineProperty(exports, "isLogbookEntry", { enumerable: true, get: function () { return type_guards_1.isLogbookEntry; } });
|
|
89
|
+
Object.defineProperty(exports, "isOwner", { enumerable: true, get: function () { return type_guards_1.isOwner; } });
|
|
90
|
+
Object.defineProperty(exports, "isStorage", { enumerable: true, get: function () { return type_guards_1.isStorage; } });
|
|
91
|
+
Object.defineProperty(exports, "isTask", { enumerable: true, get: function () { return type_guards_1.isTask; } });
|
|
63
92
|
var task_interface_1 = require("./task.interface");
|
|
64
93
|
Object.defineProperty(exports, "AssigneeType", { enumerable: true, get: function () { return task_interface_1.AssigneeType; } });
|
|
65
94
|
Object.defineProperty(exports, "Priority", { enumerable: true, get: function () { return task_interface_1.Priority; } });
|
|
66
95
|
Object.defineProperty(exports, "TaskStatus", { enumerable: true, get: function () { return task_interface_1.TaskStatus; } });
|
|
96
|
+
var translation_interface_1 = require("./translation.interface");
|
|
97
|
+
Object.defineProperty(exports, "TranslationEditData", { enumerable: true, get: function () { return translation_interface_1.TranslationEditData; } });
|
|
67
98
|
var timeseries_interface_1 = require("./timeseries.interface");
|
|
68
99
|
Object.defineProperty(exports, "RETENTION_VALUES", { enumerable: true, get: function () { return timeseries_interface_1.RETENTION_VALUES; } });
|
|
100
|
+
var vault_interface_1 = require("./vault.interface");
|
|
101
|
+
Object.defineProperty(exports, "SecretType", { enumerable: true, get: function () { return vault_interface_1.SecretType; } });
|
|
102
|
+
var websockets_interface_1 = require("./websockets.interface");
|
|
103
|
+
Object.defineProperty(exports, "WebSocketMessageType", { enumerable: true, get: function () { return websockets_interface_1.WebSocketMessageType; } });
|
|
@@ -2,17 +2,17 @@ import { Author, Owner } from '.';
|
|
|
2
2
|
export declare const LABEL_COLORS: readonly ["blue", "green", "indigo", "pink", "purple", "red", "teal", "yellow"];
|
|
3
3
|
export type LabelColor = (typeof LABEL_COLORS)[number];
|
|
4
4
|
export interface Label {
|
|
5
|
-
id: string;
|
|
5
|
+
readonly id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
color?:
|
|
8
|
+
color?: string;
|
|
9
9
|
readPermissions?: string[];
|
|
10
10
|
readWritePermissions: string[];
|
|
11
11
|
owner: Owner;
|
|
12
12
|
createdBy: Author;
|
|
13
13
|
updatedBy: Author;
|
|
14
|
-
createdAt
|
|
15
|
-
updatedAt
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
16
|
}
|
|
17
17
|
export type CreateLabelDto = Pick<Label, 'name' | 'description' | 'color' | 'readPermissions' | 'readWritePermissions'>;
|
|
18
18
|
export type UpdateLabelDto = Partial<CreateLabelDto>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { Api } from './api.interface';
|
|
2
|
+
export declare enum SubscriptionType {
|
|
3
|
+
AZURE = "azure",
|
|
4
|
+
DEV = "dev",
|
|
5
|
+
FREE = "free",
|
|
6
|
+
INACTIVE = "inactive",
|
|
7
|
+
PRO = "pro",
|
|
8
|
+
UNKNOWN = "unknown"
|
|
9
|
+
}
|
|
10
|
+
export interface SubscriptionInfo {
|
|
11
|
+
id: string;
|
|
12
|
+
type: SubscriptionType;
|
|
13
|
+
planComponents?: PlanComponents;
|
|
14
|
+
planName?: string;
|
|
15
|
+
isPricePerSeat?: boolean;
|
|
16
|
+
autoRenew?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface Subscription extends Api {
|
|
19
|
+
azureId?: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: SubscriptionType;
|
|
22
|
+
publisherId?: string;
|
|
23
|
+
offerId?: string;
|
|
24
|
+
planId?: string;
|
|
25
|
+
quantity?: number;
|
|
26
|
+
beneficiary?: string;
|
|
27
|
+
purchaser?: string;
|
|
28
|
+
allowedCustomerOperations?: string[];
|
|
29
|
+
sessionMode?: string;
|
|
30
|
+
isFreeTrial?: boolean;
|
|
31
|
+
autoRenew?: boolean;
|
|
32
|
+
isTest?: boolean;
|
|
33
|
+
sandboxType?: string;
|
|
34
|
+
created?: string;
|
|
35
|
+
lastModified?: string;
|
|
36
|
+
saasSubscriptionStatus?: string;
|
|
37
|
+
term?: Term;
|
|
38
|
+
}
|
|
39
|
+
export interface Term {
|
|
40
|
+
startDate: string;
|
|
41
|
+
endDate: string;
|
|
42
|
+
termUnit: string;
|
|
43
|
+
}
|
|
44
|
+
export interface Plan {
|
|
45
|
+
planId: string;
|
|
46
|
+
displayName: string;
|
|
47
|
+
isPrivate: boolean;
|
|
48
|
+
description: string;
|
|
49
|
+
minQuantity: number;
|
|
50
|
+
maxQuantity: number;
|
|
51
|
+
hasFreeTrials: boolean;
|
|
52
|
+
isPricePerSeat: boolean;
|
|
53
|
+
isStopSell: boolean;
|
|
54
|
+
market: string;
|
|
55
|
+
planComponents: PlanComponents;
|
|
56
|
+
sourceOffers: SourceOffer[];
|
|
57
|
+
}
|
|
58
|
+
export interface PlanComponents {
|
|
59
|
+
recurrentBillingTerms: RecurrentBillingTerm[];
|
|
60
|
+
meteringDimensions: MeteringDimension[];
|
|
61
|
+
}
|
|
62
|
+
export interface RecurrentBillingTerm {
|
|
63
|
+
currency: string;
|
|
64
|
+
price: number;
|
|
65
|
+
termUnit: string;
|
|
66
|
+
termDescription: string;
|
|
67
|
+
meteredQuantityIncluded: MeteredQuantity[];
|
|
68
|
+
}
|
|
69
|
+
export interface MeteredQuantity {
|
|
70
|
+
dimensionId: string;
|
|
71
|
+
units: string;
|
|
72
|
+
}
|
|
73
|
+
export interface MeteringDimension {
|
|
74
|
+
id: string;
|
|
75
|
+
currency: string;
|
|
76
|
+
pricePerUnit: number;
|
|
77
|
+
unitOfMeasure: string;
|
|
78
|
+
displayName: string;
|
|
79
|
+
}
|
|
80
|
+
export interface SourceOffer {
|
|
81
|
+
externalId: string;
|
|
82
|
+
}
|