@criticalbridge/brain-client 1.0.0
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/LICENSE +190 -0
- package/README.md +23 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +21 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +604 -0
- package/dist/client.js +1197 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +17 -0
- package/dist/errors.js +44 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +95 -0
- package/dist/index.js.map +1 -0
- package/dist/types/a2a.types.d.ts +42 -0
- package/dist/types/a2a.types.js +3 -0
- package/dist/types/a2a.types.js.map +1 -0
- package/dist/types/agent-skill-lifecycle.types.d.ts +46 -0
- package/dist/types/agent-skill-lifecycle.types.js +22 -0
- package/dist/types/agent-skill-lifecycle.types.js.map +1 -0
- package/dist/types/agent.types.d.ts +117 -0
- package/dist/types/agent.types.js +3 -0
- package/dist/types/agent.types.js.map +1 -0
- package/dist/types/ai-knowledge.types.d.ts +180 -0
- package/dist/types/ai-knowledge.types.js +3 -0
- package/dist/types/ai-knowledge.types.js.map +1 -0
- package/dist/types/api.types.d.ts +550 -0
- package/dist/types/api.types.js +3 -0
- package/dist/types/api.types.js.map +1 -0
- package/dist/types/approval-events.types.d.ts +43 -0
- package/dist/types/approval-events.types.js +7 -0
- package/dist/types/approval-events.types.js.map +1 -0
- package/dist/types/best-practices-kg.types.d.ts +112 -0
- package/dist/types/best-practices-kg.types.js +3 -0
- package/dist/types/best-practices-kg.types.js.map +1 -0
- package/dist/types/bias-threshold-policy.types.d.ts +37 -0
- package/dist/types/bias-threshold-policy.types.js +3 -0
- package/dist/types/bias-threshold-policy.types.js.map +1 -0
- package/dist/types/change-approval-gate.types.d.ts +110 -0
- package/dist/types/change-approval-gate.types.js +53 -0
- package/dist/types/change-approval-gate.types.js.map +1 -0
- package/dist/types/connection.types.d.ts +100 -0
- package/dist/types/connection.types.js +3 -0
- package/dist/types/connection.types.js.map +1 -0
- package/dist/types/connector-manifest.types.d.ts +889 -0
- package/dist/types/connector-manifest.types.js +118 -0
- package/dist/types/connector-manifest.types.js.map +1 -0
- package/dist/types/control-profile.types.d.ts +69 -0
- package/dist/types/control-profile.types.js +10 -0
- package/dist/types/control-profile.types.js.map +1 -0
- package/dist/types/corpus.types.d.ts +2584 -0
- package/dist/types/corpus.types.js +120 -0
- package/dist/types/corpus.types.js.map +1 -0
- package/dist/types/credentials.types.d.ts +18 -0
- package/dist/types/credentials.types.js +3 -0
- package/dist/types/credentials.types.js.map +1 -0
- package/dist/types/dashboard.types.d.ts +205 -0
- package/dist/types/dashboard.types.js +3 -0
- package/dist/types/dashboard.types.js.map +1 -0
- package/dist/types/document-ingestion.types.d.ts +30 -0
- package/dist/types/document-ingestion.types.js +3 -0
- package/dist/types/document-ingestion.types.js.map +1 -0
- package/dist/types/domain-event.types.d.ts +21 -0
- package/dist/types/domain-event.types.js +3 -0
- package/dist/types/domain-event.types.js.map +1 -0
- package/dist/types/drift-dashboard.types.d.ts +17 -0
- package/dist/types/drift-dashboard.types.js +3 -0
- package/dist/types/drift-dashboard.types.js.map +1 -0
- package/dist/types/effective-control-profile.types.d.ts +39 -0
- package/dist/types/effective-control-profile.types.js +39 -0
- package/dist/types/effective-control-profile.types.js.map +1 -0
- package/dist/types/entity-kg.types.d.ts +140 -0
- package/dist/types/entity-kg.types.js +3 -0
- package/dist/types/entity-kg.types.js.map +1 -0
- package/dist/types/entity-model-graph.types.d.ts +63 -0
- package/dist/types/entity-model-graph.types.js +3 -0
- package/dist/types/entity-model-graph.types.js.map +1 -0
- package/dist/types/entity-model-sources.types.d.ts +117 -0
- package/dist/types/entity-model-sources.types.js +3 -0
- package/dist/types/entity-model-sources.types.js.map +1 -0
- package/dist/types/entity.types.d.ts +6 -0
- package/dist/types/entity.types.js +3 -0
- package/dist/types/entity.types.js.map +1 -0
- package/dist/types/failure.types.d.ts +22 -0
- package/dist/types/failure.types.js +3 -0
- package/dist/types/failure.types.js.map +1 -0
- package/dist/types/harvest.types.d.ts +662 -0
- package/dist/types/harvest.types.js +52 -0
- package/dist/types/harvest.types.js.map +1 -0
- package/dist/types/incident.types.d.ts +105 -0
- package/dist/types/incident.types.js +3 -0
- package/dist/types/incident.types.js.map +1 -0
- package/dist/types/introspection.types.d.ts +46 -0
- package/dist/types/introspection.types.js +3 -0
- package/dist/types/introspection.types.js.map +1 -0
- package/dist/types/kb-kg.types.d.ts +38 -0
- package/dist/types/kb-kg.types.js +3 -0
- package/dist/types/kb-kg.types.js.map +1 -0
- package/dist/types/managed-agent.types.d.ts +59 -0
- package/dist/types/managed-agent.types.js +11 -0
- package/dist/types/managed-agent.types.js.map +1 -0
- package/dist/types/object-store.types.d.ts +25 -0
- package/dist/types/object-store.types.js +8 -0
- package/dist/types/object-store.types.js.map +1 -0
- package/dist/types/pipeline.types.d.ts +39 -0
- package/dist/types/pipeline.types.js +3 -0
- package/dist/types/pipeline.types.js.map +1 -0
- package/dist/types/policy.types.d.ts +32 -0
- package/dist/types/policy.types.js +3 -0
- package/dist/types/policy.types.js.map +1 -0
- package/dist/types/risk-classification.types.d.ts +71 -0
- package/dist/types/risk-classification.types.js +3 -0
- package/dist/types/risk-classification.types.js.map +1 -0
- package/dist/types/skill-draft.types.d.ts +271 -0
- package/dist/types/skill-draft.types.js +48 -0
- package/dist/types/skill-draft.types.js.map +1 -0
- package/dist/types/source-mapping.types.d.ts +69 -0
- package/dist/types/source-mapping.types.js +3 -0
- package/dist/types/source-mapping.types.js.map +1 -0
- package/dist/types/synthesize.types.d.ts +90 -0
- package/dist/types/synthesize.types.js +41 -0
- package/dist/types/synthesize.types.js.map +1 -0
- package/dist/types/wizard-assistant.types.d.ts +25 -0
- package/dist/types/wizard-assistant.types.js +3 -0
- package/dist/types/wizard-assistant.types.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HarvestJobEventSchema = exports.HarvestJobSchema = exports.HarvestScopeSchema = exports.HarvestJobProgressSchema = exports.HarvestJobStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const connector_manifest_types_1 = require("./connector-manifest.types");
|
|
6
|
+
exports.HarvestJobStatusSchema = zod_1.z.enum([
|
|
7
|
+
'pending',
|
|
8
|
+
'running',
|
|
9
|
+
'completed',
|
|
10
|
+
'failed',
|
|
11
|
+
'cancelled',
|
|
12
|
+
]);
|
|
13
|
+
exports.HarvestJobProgressSchema = zod_1.z.object({
|
|
14
|
+
bytes: zod_1.z.number().int().nonnegative().default(0),
|
|
15
|
+
docs: zod_1.z.number().int().nonnegative().default(0),
|
|
16
|
+
chunks: zod_1.z.number().int().nonnegative().default(0),
|
|
17
|
+
entities: zod_1.z.number().int().nonnegative().default(0),
|
|
18
|
+
});
|
|
19
|
+
exports.HarvestScopeSchema = zod_1.z.object({
|
|
20
|
+
productIds: zod_1.z.array(zod_1.z.string()).default([]),
|
|
21
|
+
jurisdictions: zod_1.z.array(zod_1.z.string()).default([]),
|
|
22
|
+
wave: zod_1.z.string(),
|
|
23
|
+
sourceFilter: zod_1.z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
exports.HarvestJobSchema = zod_1.z.object({
|
|
26
|
+
id: zod_1.z.string().min(1),
|
|
27
|
+
entityId: zod_1.z.string().min(1),
|
|
28
|
+
scope: exports.HarvestScopeSchema,
|
|
29
|
+
status: exports.HarvestJobStatusSchema,
|
|
30
|
+
connectorManifest: connector_manifest_types_1.ConnectorManifestSchema,
|
|
31
|
+
progress: exports.HarvestJobProgressSchema,
|
|
32
|
+
createdAt: zod_1.z.coerce.date(),
|
|
33
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
34
|
+
startedAt: zod_1.z.coerce.date().optional(),
|
|
35
|
+
completedAt: zod_1.z.coerce.date().optional(),
|
|
36
|
+
errorMessage: zod_1.z.string().optional(),
|
|
37
|
+
});
|
|
38
|
+
exports.HarvestJobEventSchema = zod_1.z.discriminatedUnion('type', [
|
|
39
|
+
zod_1.z.object({
|
|
40
|
+
type: zod_1.z.literal('progress'),
|
|
41
|
+
progress: exports.HarvestJobProgressSchema,
|
|
42
|
+
}),
|
|
43
|
+
zod_1.z.object({
|
|
44
|
+
type: zod_1.z.literal('status'),
|
|
45
|
+
status: exports.HarvestJobStatusSchema,
|
|
46
|
+
}),
|
|
47
|
+
zod_1.z.object({
|
|
48
|
+
type: zod_1.z.literal('error'),
|
|
49
|
+
message: zod_1.z.string(),
|
|
50
|
+
}),
|
|
51
|
+
]);
|
|
52
|
+
//# sourceMappingURL=harvest.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harvest.types.js","sourceRoot":"","sources":["../../src/types/harvest.types.ts"],"names":[],"mappings":";;;AAaA,6BAAwB;AAExB,yEAAqE;AAUxD,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC3C,SAAS;IACT,SAAS;IACT,WAAW;IACX,QAAQ;IACR,WAAW;CACZ,CAAC,CAAC;AASU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC;AAYU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC3C,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAOU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,KAAK,EAAE,0BAAkB;IACzB,MAAM,EAAE,8BAAsB;IAC9B,iBAAiB,EAAE,kDAAuB;IAC1C,QAAQ,EAAE,gCAAwB;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAeU,QAAA,qBAAqB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAChE,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B,QAAQ,EAAE,gCAAwB;KACnC,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,8BAAsB;KAC/B,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QACxB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export type IncidentSeverity = 'critical' | 'degraded' | 'warning';
|
|
2
|
+
export type IncidentTriggerType = 'sla_breach' | 'latency_threshold' | 'error_rate' | 'manual';
|
|
3
|
+
export type IncidentStatus = 'open' | 'acknowledged' | 'resolved';
|
|
4
|
+
export interface Incident {
|
|
5
|
+
id: string;
|
|
6
|
+
entityId: string;
|
|
7
|
+
severity: IncidentSeverity;
|
|
8
|
+
title: string;
|
|
9
|
+
startedAt: string;
|
|
10
|
+
affectedAgentIds: string[];
|
|
11
|
+
triggerType: IncidentTriggerType;
|
|
12
|
+
assignedTo: string | null;
|
|
13
|
+
acknowledgedAt: string | null;
|
|
14
|
+
acknowledgedBy: string | null;
|
|
15
|
+
resolvedAt: string | null;
|
|
16
|
+
resolvedBy: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateIncidentInput {
|
|
19
|
+
entityId: string;
|
|
20
|
+
severity: IncidentSeverity;
|
|
21
|
+
title: string;
|
|
22
|
+
startedAt?: string;
|
|
23
|
+
affectedAgentIds: string[];
|
|
24
|
+
triggerType?: IncidentTriggerType;
|
|
25
|
+
}
|
|
26
|
+
export interface AckIncidentInput {
|
|
27
|
+
acknowledgedBy: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AssignIncidentInput {
|
|
30
|
+
userId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ResolveIncidentInput {
|
|
33
|
+
resolvedBy: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IncidentListFilter {
|
|
36
|
+
status?: IncidentStatus;
|
|
37
|
+
severity?: IncidentSeverity;
|
|
38
|
+
triggerType?: IncidentTriggerType;
|
|
39
|
+
agentId?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ListIncidentsResponse {
|
|
42
|
+
incidents: Incident[];
|
|
43
|
+
entityId: string;
|
|
44
|
+
count: number;
|
|
45
|
+
}
|
|
46
|
+
export interface GetIncidentResponse {
|
|
47
|
+
incident: Incident;
|
|
48
|
+
entityId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface CreateIncidentResponse {
|
|
51
|
+
incident: Incident;
|
|
52
|
+
entityId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface AckIncidentResponse {
|
|
55
|
+
acknowledged: true;
|
|
56
|
+
incident: Incident;
|
|
57
|
+
entityId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface AssignIncidentResponse {
|
|
60
|
+
assigned: true;
|
|
61
|
+
incident: Incident;
|
|
62
|
+
entityId: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ResolveIncidentResponse {
|
|
65
|
+
resolved: true;
|
|
66
|
+
incident: Incident;
|
|
67
|
+
entityId: string;
|
|
68
|
+
}
|
|
69
|
+
export type IncidentLookupOutcome = {
|
|
70
|
+
kind: 'found';
|
|
71
|
+
incident: Incident;
|
|
72
|
+
} | {
|
|
73
|
+
kind: 'not-found';
|
|
74
|
+
};
|
|
75
|
+
export type IncidentAckOutcome = {
|
|
76
|
+
kind: 'acknowledged';
|
|
77
|
+
incident: Incident;
|
|
78
|
+
} | {
|
|
79
|
+
kind: 'not-found';
|
|
80
|
+
} | {
|
|
81
|
+
kind: 'already-resolved';
|
|
82
|
+
incident: Incident;
|
|
83
|
+
};
|
|
84
|
+
export type IncidentAssignOutcome = {
|
|
85
|
+
kind: 'assigned';
|
|
86
|
+
incident: Incident;
|
|
87
|
+
} | {
|
|
88
|
+
kind: 'not-found';
|
|
89
|
+
} | {
|
|
90
|
+
kind: 'already-resolved';
|
|
91
|
+
incident: Incident;
|
|
92
|
+
};
|
|
93
|
+
export type IncidentResolveOutcome = {
|
|
94
|
+
kind: 'resolved';
|
|
95
|
+
incident: Incident;
|
|
96
|
+
} | {
|
|
97
|
+
kind: 'not-found';
|
|
98
|
+
} | {
|
|
99
|
+
kind: 'already-resolved';
|
|
100
|
+
incident: Incident;
|
|
101
|
+
};
|
|
102
|
+
export type CreateIncidentRequest = CreateIncidentInput;
|
|
103
|
+
export type AckIncidentRequest = AckIncidentInput;
|
|
104
|
+
export type AssignIncidentRequest = AssignIncidentInput;
|
|
105
|
+
export type ResolveIncidentRequest = ResolveIncidentInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident.types.js","sourceRoot":"","sources":["../../src/types/incident.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type SourceConnectionType = 'supabase' | 'postgres' | 'mysql' | 'neo4j' | 'api' | 'csv';
|
|
2
|
+
export interface SourceFieldDefinition {
|
|
3
|
+
name: string;
|
|
4
|
+
dataType: string;
|
|
5
|
+
nullable: boolean;
|
|
6
|
+
isPrimaryKey: boolean;
|
|
7
|
+
isForeignKey: boolean;
|
|
8
|
+
sampleValues?: unknown[];
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IntrospectedSource {
|
|
12
|
+
name: string;
|
|
13
|
+
type: SourceConnectionType;
|
|
14
|
+
connectionId: string;
|
|
15
|
+
schema?: string;
|
|
16
|
+
tableName: string;
|
|
17
|
+
fields: SourceFieldDefinition[];
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface IntrospectTableBody {
|
|
21
|
+
connectionId: string;
|
|
22
|
+
tableName: string;
|
|
23
|
+
schema?: string;
|
|
24
|
+
includeSamples?: boolean;
|
|
25
|
+
sampleValueLimit?: number;
|
|
26
|
+
name?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SampleValuesBody {
|
|
29
|
+
connectionId: string;
|
|
30
|
+
tableName: string;
|
|
31
|
+
fieldName: string;
|
|
32
|
+
limit?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ListTablesResponse {
|
|
35
|
+
tables: string[];
|
|
36
|
+
entityId: string;
|
|
37
|
+
connectionId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IntrospectTableResponse {
|
|
40
|
+
source: IntrospectedSource;
|
|
41
|
+
entityId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface SampleValuesResponse {
|
|
44
|
+
values: string[];
|
|
45
|
+
entityId: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection.types.js","sourceRoot":"","sources":["../../src/types/introspection.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type KBKGCategory = 'electron-app' | 'admin-portal' | 'agent-portal' | 'partner-portal' | 'internal-portal' | 'infrastructure';
|
|
2
|
+
export interface KBKGRelatedDocument {
|
|
3
|
+
documentId: string;
|
|
4
|
+
title: string;
|
|
5
|
+
category: KBKGCategory;
|
|
6
|
+
relationshipType: string;
|
|
7
|
+
depth: number;
|
|
8
|
+
}
|
|
9
|
+
export interface KBKGDocumentNode {
|
|
10
|
+
id: string;
|
|
11
|
+
documentId: string;
|
|
12
|
+
title: string;
|
|
13
|
+
category: KBKGCategory;
|
|
14
|
+
platform?: string;
|
|
15
|
+
route?: string;
|
|
16
|
+
wordCount?: number;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface KBKGStatistics {
|
|
21
|
+
documentCount: number;
|
|
22
|
+
sectionCount: number;
|
|
23
|
+
categoryCount: number;
|
|
24
|
+
entityCount: number;
|
|
25
|
+
referenceCount: number;
|
|
26
|
+
mentionCount: number;
|
|
27
|
+
}
|
|
28
|
+
export interface KBKGFindRelatedBody {
|
|
29
|
+
documentIds: string[];
|
|
30
|
+
depth?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface KBKGFindByEntityBody {
|
|
33
|
+
entityType: string;
|
|
34
|
+
entityName: string;
|
|
35
|
+
}
|
|
36
|
+
export interface KBKGResultResponse<T> {
|
|
37
|
+
result: T;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kb-kg.types.js","sourceRoot":"","sources":["../../src/types/kb-kg.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { A2AVendorId } from './a2a.types';
|
|
2
|
+
export declare const AI_CATALOG_ENTRY_MEDIA_TYPES: readonly ["application/a2a+json", "application/mcp+json", "application/openapi+json", "application/x-ai-catalog-link", "application/json"];
|
|
3
|
+
export type AICatalogEntryMediaType = (typeof AI_CATALOG_ENTRY_MEDIA_TYPES)[number];
|
|
4
|
+
export type ManagedAgentLifecycleState = 'pending' | 'active' | 'quarantined' | 'retired';
|
|
5
|
+
export interface ManagedAgentRegisterRequest {
|
|
6
|
+
vendor: A2AVendorId;
|
|
7
|
+
endpointUrl: string;
|
|
8
|
+
brokerRegistrationId: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
capabilityTags?: string[];
|
|
11
|
+
catalogIdentifier?: string;
|
|
12
|
+
catalogMediaType?: AICatalogEntryMediaType;
|
|
13
|
+
representativeQueries?: string[];
|
|
14
|
+
publishable?: boolean;
|
|
15
|
+
sidecarUrl?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ManagedAgentRegisterResponse {
|
|
18
|
+
agentId: string;
|
|
19
|
+
entityId: string;
|
|
20
|
+
lifecycleState: ManagedAgentLifecycleState;
|
|
21
|
+
registeredAt: string;
|
|
22
|
+
}
|
|
23
|
+
export interface HeartbeatRequest {
|
|
24
|
+
sentAt: string;
|
|
25
|
+
inflightTasks?: number;
|
|
26
|
+
agentVersion?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface HeartbeatResponse {
|
|
29
|
+
receivedAt: string;
|
|
30
|
+
nextHeartbeatInMs: number;
|
|
31
|
+
lifecycleState?: ManagedAgentLifecycleState;
|
|
32
|
+
}
|
|
33
|
+
export interface AgentMetricsRequest {
|
|
34
|
+
windowEndedAt: string;
|
|
35
|
+
windowDurationSec: number;
|
|
36
|
+
samples: Record<string, number | string | boolean>;
|
|
37
|
+
}
|
|
38
|
+
export interface ControlChannelState {
|
|
39
|
+
executionAllowed: boolean;
|
|
40
|
+
hitlRequiredFor: string[];
|
|
41
|
+
lifecycleState: ManagedAgentLifecycleState;
|
|
42
|
+
computedAt: string;
|
|
43
|
+
pendingTransition?: PendingLifecycleTransitionEnvelope;
|
|
44
|
+
}
|
|
45
|
+
export interface PendingLifecycleTransitionEnvelope {
|
|
46
|
+
toState: ManagedAgentLifecycleState;
|
|
47
|
+
proposedAt: string;
|
|
48
|
+
ackToken: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PolicyEvalRequest {
|
|
51
|
+
actionDescriptor: string;
|
|
52
|
+
context?: Record<string, unknown>;
|
|
53
|
+
}
|
|
54
|
+
export interface PolicyEvalResponse {
|
|
55
|
+
decision: 'allow' | 'deny' | 'pending_approval';
|
|
56
|
+
pendingDecisionId?: string;
|
|
57
|
+
reason?: string;
|
|
58
|
+
decidedAt: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_CATALOG_ENTRY_MEDIA_TYPES = void 0;
|
|
4
|
+
exports.AI_CATALOG_ENTRY_MEDIA_TYPES = [
|
|
5
|
+
'application/a2a+json',
|
|
6
|
+
'application/mcp+json',
|
|
7
|
+
'application/openapi+json',
|
|
8
|
+
'application/x-ai-catalog-link',
|
|
9
|
+
'application/json',
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=managed-agent.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-agent.types.js","sourceRoot":"","sources":["../../src/types/managed-agent.types.ts"],"names":[],"mappings":";;;AA+Da,QAAA,4BAA4B,GAAG;IAC1C,sBAAsB;IACtB,sBAAsB;IACtB,0BAA0B;IAC1B,+BAA+B;IAC/B,kBAAkB;CACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const OBJECT_BUCKET_HEADER = "X-Object-Bucket";
|
|
2
|
+
export declare const OBJECT_SIZE_HEADER = "X-Object-Size";
|
|
3
|
+
export declare const OBJECT_UPDATED_HEADER = "X-Object-Updated";
|
|
4
|
+
export declare const OBJECT_CHECKSUM_HEADER = "X-Object-Checksum";
|
|
5
|
+
export type SignedObjectUrlAction = 'read' | 'write' | 'delete';
|
|
6
|
+
export interface SignObjectUrlRequest {
|
|
7
|
+
path: string;
|
|
8
|
+
action?: SignedObjectUrlAction;
|
|
9
|
+
expiresInSeconds?: number;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SignObjectUrlResponse {
|
|
13
|
+
url: string;
|
|
14
|
+
expiresAt: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ListObjectsResponse {
|
|
17
|
+
objects: string[];
|
|
18
|
+
truncated?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ObjectMetadataResponse {
|
|
21
|
+
size: number;
|
|
22
|
+
updated: string;
|
|
23
|
+
checksum: string;
|
|
24
|
+
contentType?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OBJECT_CHECKSUM_HEADER = exports.OBJECT_UPDATED_HEADER = exports.OBJECT_SIZE_HEADER = exports.OBJECT_BUCKET_HEADER = void 0;
|
|
4
|
+
exports.OBJECT_BUCKET_HEADER = 'X-Object-Bucket';
|
|
5
|
+
exports.OBJECT_SIZE_HEADER = 'X-Object-Size';
|
|
6
|
+
exports.OBJECT_UPDATED_HEADER = 'X-Object-Updated';
|
|
7
|
+
exports.OBJECT_CHECKSUM_HEADER = 'X-Object-Checksum';
|
|
8
|
+
//# sourceMappingURL=object-store.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-store.types.js","sourceRoot":"","sources":["../../src/types/object-store.types.ts"],"names":[],"mappings":";;;AAYa,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AAGzC,QAAA,kBAAkB,GAAG,eAAe,CAAC;AACrC,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,sBAAsB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface PipelineSummary {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
metadata?: {
|
|
5
|
+
description?: string;
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
updatedAt?: string;
|
|
8
|
+
createdBy?: string;
|
|
9
|
+
ownerId?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ListPipelinesResponse {
|
|
14
|
+
pipelines: PipelineSummary[];
|
|
15
|
+
}
|
|
16
|
+
export interface PipelineListItem extends PipelineSummary {
|
|
17
|
+
lastRunAt?: string;
|
|
18
|
+
runStatus?: 'running' | 'succeeded' | 'failed' | 'idle';
|
|
19
|
+
}
|
|
20
|
+
export interface DeletePipelineResponse {
|
|
21
|
+
deleted: boolean;
|
|
22
|
+
pipelineId: string;
|
|
23
|
+
entityId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface PipelineRunListItem {
|
|
26
|
+
runId: string;
|
|
27
|
+
entityId: string;
|
|
28
|
+
pipelineId: string;
|
|
29
|
+
occurredAt: string;
|
|
30
|
+
outcome: 'succeeded' | 'failed';
|
|
31
|
+
durationMs?: number;
|
|
32
|
+
stagesCompleted?: number;
|
|
33
|
+
stagesFailed?: number;
|
|
34
|
+
errorSignal?: string;
|
|
35
|
+
outputs?: Record<string, unknown>;
|
|
36
|
+
}
|
|
37
|
+
export interface ListPipelineRunsResponse {
|
|
38
|
+
runs: PipelineRunListItem[];
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline.types.js","sourceRoot":"","sources":["../../src/types/pipeline.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type PolicyDecisionDomain = 'pass' | 'warn' | 'block';
|
|
2
|
+
export interface AgentPolicyPosture {
|
|
3
|
+
state: PolicyDecisionDomain;
|
|
4
|
+
count: number;
|
|
5
|
+
}
|
|
6
|
+
export interface PolicyCatalogEntry {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
enforced: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface PolicyHistoryPoint {
|
|
13
|
+
ts: number;
|
|
14
|
+
policyId: string;
|
|
15
|
+
decision: PolicyDecisionDomain;
|
|
16
|
+
ruleId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetPolicyCatalogResponse {
|
|
19
|
+
policies: PolicyCatalogEntry[];
|
|
20
|
+
count: number;
|
|
21
|
+
entityId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GetAgentPolicyHistoryResponse {
|
|
24
|
+
history: PolicyHistoryPoint[];
|
|
25
|
+
agentId: string;
|
|
26
|
+
entityId: string;
|
|
27
|
+
window: string;
|
|
28
|
+
count: number;
|
|
29
|
+
}
|
|
30
|
+
export interface GetAgentPolicyHistoryParams {
|
|
31
|
+
window?: '24h';
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.types.js","sourceRoot":"","sources":["../../src/types/policy.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export type DecisionNatureCategory = 'informational' | 'advisory' | 'operational' | 'transactional' | 'adjudicative' | 'underwriting';
|
|
2
|
+
export type HarmDegreeCategory = 'negligible' | 'minor' | 'moderate' | 'significant' | 'severe' | 'catastrophic';
|
|
3
|
+
export type HumanInvolvementLevel = 'human-only' | 'human-in-the-loop' | 'human-on-the-loop' | 'human-out-of-loop' | 'fully-autonomous';
|
|
4
|
+
export type TransparencyLevel = 'fully-transparent' | 'explainable' | 'partially-opaque' | 'opaque';
|
|
5
|
+
export type ThirdPartyRelianceLevel = 'none' | 'minimal' | 'moderate' | 'significant' | 'critical';
|
|
6
|
+
export type RiskTier = 'low' | 'medium' | 'high' | 'critical';
|
|
7
|
+
export interface DecisionNatureFactor {
|
|
8
|
+
category: DecisionNatureCategory;
|
|
9
|
+
rationale: string;
|
|
10
|
+
}
|
|
11
|
+
export interface HarmDegreeFactor {
|
|
12
|
+
category: HarmDegreeCategory;
|
|
13
|
+
rationale: string;
|
|
14
|
+
}
|
|
15
|
+
export interface HumanInvolvementFactor {
|
|
16
|
+
level: HumanInvolvementLevel;
|
|
17
|
+
rationale: string;
|
|
18
|
+
}
|
|
19
|
+
export interface TransparencyFactor {
|
|
20
|
+
level: TransparencyLevel;
|
|
21
|
+
rationale: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ThirdPartyRelianceFactor {
|
|
24
|
+
level: ThirdPartyRelianceLevel;
|
|
25
|
+
rationale: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ClassifyAgentBody {
|
|
28
|
+
decisionNature: DecisionNatureFactor;
|
|
29
|
+
harmDegree: HarmDegreeFactor;
|
|
30
|
+
humanInvolvement: HumanInvolvementFactor;
|
|
31
|
+
transparency: TransparencyFactor;
|
|
32
|
+
thirdPartyReliance: ThirdPartyRelianceFactor;
|
|
33
|
+
justification?: string;
|
|
34
|
+
classifiedBy?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FactorScore {
|
|
37
|
+
rawScore: number;
|
|
38
|
+
weight: number;
|
|
39
|
+
weightedScore: number;
|
|
40
|
+
}
|
|
41
|
+
export interface FactorScoreBreakdown {
|
|
42
|
+
decisionNature: FactorScore;
|
|
43
|
+
harmDegree: FactorScore;
|
|
44
|
+
humanInvolvement: FactorScore;
|
|
45
|
+
transparency: FactorScore;
|
|
46
|
+
thirdPartyReliance: FactorScore;
|
|
47
|
+
}
|
|
48
|
+
export interface ClassificationRecord {
|
|
49
|
+
id: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
entityId: string;
|
|
52
|
+
decisionNature: DecisionNatureFactor;
|
|
53
|
+
harmDegree: HarmDegreeFactor;
|
|
54
|
+
humanInvolvement: HumanInvolvementFactor;
|
|
55
|
+
transparency: TransparencyFactor;
|
|
56
|
+
thirdPartyReliance: ThirdPartyRelianceFactor;
|
|
57
|
+
compositeTier: RiskTier;
|
|
58
|
+
compositeScore: number;
|
|
59
|
+
scoreBreakdown: FactorScoreBreakdown;
|
|
60
|
+
version: number;
|
|
61
|
+
classifiedBy: string;
|
|
62
|
+
classifiedAt: string;
|
|
63
|
+
regulatoryBasis: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ClassifyAgentResponse {
|
|
66
|
+
entityId: string;
|
|
67
|
+
agentId: string;
|
|
68
|
+
success: boolean;
|
|
69
|
+
classification?: ClassificationRecord;
|
|
70
|
+
error?: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-classification.types.js","sourceRoot":"","sources":["../../src/types/risk-classification.types.ts"],"names":[],"mappings":""}
|