@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,140 @@
|
|
|
1
|
+
export type EKGDomainCategory = 'retail' | 'financial' | 'insurance' | 'healthcare' | 'custom';
|
|
2
|
+
export type EKGEntityStatus = 'active' | 'inactive' | 'archived' | 'pending';
|
|
3
|
+
export type EKGRelationshipType = string;
|
|
4
|
+
export interface EKGEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
domain: EKGDomainCategory;
|
|
8
|
+
name: string;
|
|
9
|
+
status: EKGEntityStatus;
|
|
10
|
+
entityId: string;
|
|
11
|
+
properties: Record<string, unknown>;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
externalId?: string;
|
|
17
|
+
sourceSystem?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface EKGRelationship {
|
|
20
|
+
id: string;
|
|
21
|
+
sourceId: string;
|
|
22
|
+
targetId: string;
|
|
23
|
+
type: EKGRelationshipType;
|
|
24
|
+
entityId: string;
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
26
|
+
weight?: number;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
createdBy?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface EKGRelationshipWithDetails extends EKGRelationship {
|
|
32
|
+
sourceEntity: {
|
|
33
|
+
id: string;
|
|
34
|
+
type: string;
|
|
35
|
+
name: string;
|
|
36
|
+
status: EKGEntityStatus;
|
|
37
|
+
};
|
|
38
|
+
targetEntity: {
|
|
39
|
+
id: string;
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
status: EKGEntityStatus;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface EKGGraphTraversalResult {
|
|
46
|
+
entities: Array<{
|
|
47
|
+
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
name: string;
|
|
50
|
+
status: EKGEntityStatus;
|
|
51
|
+
depth: number;
|
|
52
|
+
}>;
|
|
53
|
+
relationships: EKGRelationship[];
|
|
54
|
+
pathLength: number;
|
|
55
|
+
}
|
|
56
|
+
export interface EKGShortestPathResult {
|
|
57
|
+
path: Array<{
|
|
58
|
+
id: string;
|
|
59
|
+
type: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}>;
|
|
62
|
+
relationships: EKGRelationship[];
|
|
63
|
+
length: number;
|
|
64
|
+
found: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface EKGStatistics {
|
|
67
|
+
entityCount: number;
|
|
68
|
+
relationshipCount: number;
|
|
69
|
+
entitiesByType: Record<string, number>;
|
|
70
|
+
entitiesByDomain: Record<EKGDomainCategory, number>;
|
|
71
|
+
relationshipsByType: Record<string, number>;
|
|
72
|
+
lastUpdated: string;
|
|
73
|
+
}
|
|
74
|
+
export interface EKGHealthCheck {
|
|
75
|
+
healthy: boolean;
|
|
76
|
+
message: string;
|
|
77
|
+
latencyMs?: number;
|
|
78
|
+
lastSuccessfulQuery?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface EKGEntityQueryOptions {
|
|
81
|
+
types?: string[];
|
|
82
|
+
domain?: EKGDomainCategory;
|
|
83
|
+
status?: EKGEntityStatus;
|
|
84
|
+
limit?: number;
|
|
85
|
+
offset?: number;
|
|
86
|
+
includeArchived?: boolean;
|
|
87
|
+
sortBy?: 'name' | 'createdAt' | 'updatedAt' | 'type';
|
|
88
|
+
sortDirection?: 'asc' | 'desc';
|
|
89
|
+
}
|
|
90
|
+
export interface EKGRelationshipQueryOptions {
|
|
91
|
+
types?: EKGRelationshipType[];
|
|
92
|
+
sourceId?: string;
|
|
93
|
+
targetId?: string;
|
|
94
|
+
limit?: number;
|
|
95
|
+
offset?: number;
|
|
96
|
+
direction?: 'outgoing' | 'incoming' | 'both';
|
|
97
|
+
}
|
|
98
|
+
export interface EKGTraversalOptions {
|
|
99
|
+
maxDepth?: number;
|
|
100
|
+
relationshipTypes?: EKGRelationshipType[];
|
|
101
|
+
direction?: 'outgoing' | 'incoming' | 'both';
|
|
102
|
+
entityTypes?: string[];
|
|
103
|
+
limitPerLevel?: number;
|
|
104
|
+
}
|
|
105
|
+
export interface EKGGetEntityBody {
|
|
106
|
+
id: string;
|
|
107
|
+
}
|
|
108
|
+
export interface EKGFindEntitiesBody {
|
|
109
|
+
options?: EKGEntityQueryOptions;
|
|
110
|
+
}
|
|
111
|
+
export interface EKGSearchEntitiesBody {
|
|
112
|
+
query: string;
|
|
113
|
+
options?: EKGEntityQueryOptions;
|
|
114
|
+
}
|
|
115
|
+
export interface EKGGetEntityRelationshipsBody {
|
|
116
|
+
entityId: string;
|
|
117
|
+
options?: EKGRelationshipQueryOptions;
|
|
118
|
+
}
|
|
119
|
+
export interface EKGRelationshipsByEntityIdsBody {
|
|
120
|
+
entityIds: string[];
|
|
121
|
+
}
|
|
122
|
+
export interface EKGTraverseBody {
|
|
123
|
+
entityId: string;
|
|
124
|
+
options?: EKGTraversalOptions;
|
|
125
|
+
}
|
|
126
|
+
export interface EKGFindPathBody {
|
|
127
|
+
sourceEntityId: string;
|
|
128
|
+
targetEntityId: string;
|
|
129
|
+
maxDepth?: number;
|
|
130
|
+
}
|
|
131
|
+
export interface EKGResultResponse<T> {
|
|
132
|
+
result: T;
|
|
133
|
+
}
|
|
134
|
+
export type EKGInsuranceKgQueryId = 'insurance-entities' | 'insurance-relationships' | 'insurance-fk-relationships' | 'claims-entities' | 'claims-relationships';
|
|
135
|
+
export interface EKGRawReadQueryBody {
|
|
136
|
+
queryId: EKGInsuranceKgQueryId;
|
|
137
|
+
}
|
|
138
|
+
export interface EKGRawReadQueryResponse {
|
|
139
|
+
rows: Array<Record<string, unknown>>;
|
|
140
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-kg.types.js","sourceRoot":"","sources":["../../src/types/entity-kg.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type EntityModelCardinality = 'one-to-one' | 'one-to-many' | 'many-to-one' | 'many-to-many';
|
|
2
|
+
export type EntityModelOrigin = 'bundled' | 'source' | 'authored';
|
|
3
|
+
export interface EntityModelAttribute {
|
|
4
|
+
id?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dataType: string;
|
|
7
|
+
nullable?: boolean;
|
|
8
|
+
isPrimaryKey: boolean;
|
|
9
|
+
isForeignKey: boolean;
|
|
10
|
+
isPII?: boolean;
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface EntityModelEntityType {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
category?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
primaryKeys: string[];
|
|
20
|
+
attributes: EntityModelAttribute[];
|
|
21
|
+
}
|
|
22
|
+
export interface EntityModelRelationship {
|
|
23
|
+
id?: string;
|
|
24
|
+
fromEntityId: string;
|
|
25
|
+
toEntityId: string;
|
|
26
|
+
fromAttribute?: string;
|
|
27
|
+
toAttribute?: string;
|
|
28
|
+
cardinality?: EntityModelCardinality;
|
|
29
|
+
label?: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface EntityModelGraph {
|
|
32
|
+
modelId: string;
|
|
33
|
+
name: string;
|
|
34
|
+
version?: string;
|
|
35
|
+
domain?: string;
|
|
36
|
+
origin?: EntityModelOrigin;
|
|
37
|
+
entityTypes: EntityModelEntityType[];
|
|
38
|
+
relationships: EntityModelRelationship[];
|
|
39
|
+
}
|
|
40
|
+
export interface EntityModelSummary {
|
|
41
|
+
modelId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
version?: string;
|
|
44
|
+
domain?: string;
|
|
45
|
+
origin?: EntityModelOrigin;
|
|
46
|
+
entityTypeCount: number;
|
|
47
|
+
relationshipCount: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ListEntityModelsResponse {
|
|
50
|
+
models: EntityModelSummary[];
|
|
51
|
+
entityId: string;
|
|
52
|
+
count: number;
|
|
53
|
+
}
|
|
54
|
+
export interface GetEntityModelResponse {
|
|
55
|
+
model: EntityModelGraph;
|
|
56
|
+
entityId: string;
|
|
57
|
+
}
|
|
58
|
+
export interface EntityModelMutationResponse {
|
|
59
|
+
ok: boolean;
|
|
60
|
+
entityId?: string;
|
|
61
|
+
modelId?: string;
|
|
62
|
+
id?: string;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-model-graph.types.js","sourceRoot":"","sources":["../../src/types/entity-model-graph.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export type SourceType = 'postgresql' | 'mysql' | 'mongodb' | 'sqlserver' | 'oracle' | 'snowflake' | 'bigquery' | 'redshift' | 'rest_api' | 'graphql' | 'csv';
|
|
2
|
+
export type SourceStatus = 'connected' | 'disconnected' | 'error' | 'syncing';
|
|
3
|
+
export type SyncStatus = 'success' | 'failed' | 'partial';
|
|
4
|
+
export type AutoPromotePolicy = 'non-breaking' | 'always' | 'manual';
|
|
5
|
+
export interface ConnectionConfig {
|
|
6
|
+
host?: string;
|
|
7
|
+
port?: number;
|
|
8
|
+
database?: string;
|
|
9
|
+
username?: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
ssl?: boolean;
|
|
12
|
+
sslCertificate?: string;
|
|
13
|
+
connectionString?: string;
|
|
14
|
+
baseUrl?: string;
|
|
15
|
+
apiKey?: string;
|
|
16
|
+
authType?: 'none' | 'api_key' | 'oauth2' | 'basic';
|
|
17
|
+
headers?: Record<string, string>;
|
|
18
|
+
projectId?: string;
|
|
19
|
+
dataset?: string;
|
|
20
|
+
keyFile?: string;
|
|
21
|
+
region?: string;
|
|
22
|
+
warehouse?: string;
|
|
23
|
+
role?: string;
|
|
24
|
+
defaultSchema?: string;
|
|
25
|
+
filePath?: string;
|
|
26
|
+
delimiter?: string;
|
|
27
|
+
}
|
|
28
|
+
export type SafeConnectionConfig = Pick<ConnectionConfig, 'host' | 'port' | 'database' | 'username' | 'ssl' | 'baseUrl' | 'authType' | 'projectId' | 'dataset' | 'region' | 'warehouse' | 'role' | 'defaultSchema' | 'filePath' | 'delimiter'>;
|
|
29
|
+
export interface EntityModelSourceMetadata {
|
|
30
|
+
id: string;
|
|
31
|
+
organizationId: string;
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
type: SourceType;
|
|
35
|
+
status: SourceStatus;
|
|
36
|
+
connectionConfig: SafeConnectionConfig;
|
|
37
|
+
entityCount: number;
|
|
38
|
+
lastSyncAt?: string;
|
|
39
|
+
lastSyncStatus?: SyncStatus;
|
|
40
|
+
lastSyncError?: string;
|
|
41
|
+
syncSchedule?: string;
|
|
42
|
+
autoSync: boolean;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
createdBy?: string;
|
|
46
|
+
packId: string;
|
|
47
|
+
autoPromote: AutoPromotePolicy;
|
|
48
|
+
}
|
|
49
|
+
export interface CreateSourceRequest {
|
|
50
|
+
name: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
type: SourceType;
|
|
53
|
+
connectionConfig: ConnectionConfig;
|
|
54
|
+
autoSync: boolean;
|
|
55
|
+
syncSchedule?: string;
|
|
56
|
+
autoPromote?: AutoPromotePolicy;
|
|
57
|
+
}
|
|
58
|
+
export interface UpdateSourceRequest {
|
|
59
|
+
name?: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
connectionConfig?: ConnectionConfig;
|
|
62
|
+
autoSync?: boolean;
|
|
63
|
+
syncSchedule?: string;
|
|
64
|
+
autoPromote?: AutoPromotePolicy;
|
|
65
|
+
}
|
|
66
|
+
export interface ListEntityModelSourcesResponse {
|
|
67
|
+
sources: EntityModelSourceMetadata[];
|
|
68
|
+
entityId: string;
|
|
69
|
+
count: number;
|
|
70
|
+
}
|
|
71
|
+
export interface GetEntityModelSourceResponse {
|
|
72
|
+
source: EntityModelSourceMetadata;
|
|
73
|
+
entityId: string;
|
|
74
|
+
}
|
|
75
|
+
export interface EntityModelSourceWriteResponse {
|
|
76
|
+
source: EntityModelSourceMetadata;
|
|
77
|
+
entityId: string;
|
|
78
|
+
}
|
|
79
|
+
export interface SyncDispatchResponse {
|
|
80
|
+
status: 'accepted';
|
|
81
|
+
entityId: string;
|
|
82
|
+
sourceId: string;
|
|
83
|
+
}
|
|
84
|
+
export interface AffectedMappingInfo {
|
|
85
|
+
configId: string;
|
|
86
|
+
name: string;
|
|
87
|
+
status: string;
|
|
88
|
+
}
|
|
89
|
+
export interface CheckReferencesResult {
|
|
90
|
+
hasReferences: boolean;
|
|
91
|
+
affectedMappings: AffectedMappingInfo[];
|
|
92
|
+
}
|
|
93
|
+
export interface CheckSourceReferencesResponse {
|
|
94
|
+
references: CheckReferencesResult;
|
|
95
|
+
entityId: string;
|
|
96
|
+
}
|
|
97
|
+
export interface DiscoveredEntity {
|
|
98
|
+
name: string;
|
|
99
|
+
schema?: string;
|
|
100
|
+
type: 'table' | 'view' | 'collection' | 'endpoint';
|
|
101
|
+
fieldCount: number;
|
|
102
|
+
rowCount?: number;
|
|
103
|
+
selected: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface DiscoverEntitiesResponse {
|
|
106
|
+
entities: DiscoveredEntity[];
|
|
107
|
+
entityId: string;
|
|
108
|
+
}
|
|
109
|
+
export interface TestConnectionResult {
|
|
110
|
+
success: boolean;
|
|
111
|
+
message: string;
|
|
112
|
+
latencyMs?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface TestConnectionResponse {
|
|
115
|
+
result: TestConnectionResult;
|
|
116
|
+
entityId: string;
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-model-sources.types.js","sourceRoot":"","sources":["../../src/types/entity-model-sources.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.types.js","sourceRoot":"","sources":["../../src/types/entity.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type FailureReasonCode = 'agent_threw' | 'adapter_unavailable' | 'timeout' | 'cancelled' | 'dag_invalid' | 'unknown' | 'needs_attention' | 'heartbeat-timeout';
|
|
2
|
+
export interface FailureRecord {
|
|
3
|
+
dispatchId: string;
|
|
4
|
+
agentId: string;
|
|
5
|
+
agentName: string;
|
|
6
|
+
timestamp: string;
|
|
7
|
+
level: 'ERROR' | 'WARN';
|
|
8
|
+
failureReason: string;
|
|
9
|
+
tool: string | null;
|
|
10
|
+
runnerInstanceId: string;
|
|
11
|
+
reasonCode: FailureReasonCode;
|
|
12
|
+
}
|
|
13
|
+
export interface RecentFailuresOptions {
|
|
14
|
+
limit?: number;
|
|
15
|
+
since?: string;
|
|
16
|
+
agentId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface RecentFailuresResponse {
|
|
19
|
+
failures: FailureRecord[];
|
|
20
|
+
totalCount: number;
|
|
21
|
+
entityId: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure.types.js","sourceRoot":"","sources":["../../src/types/failure.types.ts"],"names":[],"mappings":""}
|