@jupiterone/jupiterone-mcp 0.0.1
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 +21 -0
- package/README.md +89 -0
- package/dist/client/graphql/mutations.d.ts +11 -0
- package/dist/client/graphql/mutations.d.ts.map +1 -0
- package/dist/client/graphql/mutations.js +315 -0
- package/dist/client/graphql/mutations.js.map +1 -0
- package/dist/client/graphql/queries.d.ts +15 -0
- package/dist/client/graphql/queries.d.ts.map +1 -0
- package/dist/client/graphql/queries.js +692 -0
- package/dist/client/graphql/queries.js.map +1 -0
- package/dist/client/jupiterone-client.d.ts +106 -0
- package/dist/client/jupiterone-client.d.ts.map +1 -0
- package/dist/client/jupiterone-client.js +137 -0
- package/dist/client/jupiterone-client.js.map +1 -0
- package/dist/client/services/account-service.d.ts +17 -0
- package/dist/client/services/account-service.d.ts.map +1 -0
- package/dist/client/services/account-service.js +37 -0
- package/dist/client/services/account-service.js.map +1 -0
- package/dist/client/services/alert-service.d.ts +15 -0
- package/dist/client/services/alert-service.d.ts.map +1 -0
- package/dist/client/services/alert-service.js +56 -0
- package/dist/client/services/alert-service.js.map +1 -0
- package/dist/client/services/dashboard-service.d.ts +123 -0
- package/dist/client/services/dashboard-service.d.ts.map +1 -0
- package/dist/client/services/dashboard-service.js +74 -0
- package/dist/client/services/dashboard-service.js.map +1 -0
- package/dist/client/services/integration-service.d.ts +45 -0
- package/dist/client/services/integration-service.d.ts.map +1 -0
- package/dist/client/services/integration-service.js +114 -0
- package/dist/client/services/integration-service.js.map +1 -0
- package/dist/client/services/j1ql-service.d.ts +21 -0
- package/dist/client/services/j1ql-service.d.ts.map +1 -0
- package/dist/client/services/j1ql-service.js +29 -0
- package/dist/client/services/j1ql-service.js.map +1 -0
- package/dist/client/services/rule-service.d.ts +61 -0
- package/dist/client/services/rule-service.d.ts.map +1 -0
- package/dist/client/services/rule-service.js +140 -0
- package/dist/client/services/rule-service.js.map +1 -0
- package/dist/descriptions/create-dashboard-widget.md +325 -0
- package/dist/descriptions/create-dashboard.md +12 -0
- package/dist/descriptions/create-inline-question-rule.md +357 -0
- package/dist/descriptions/create-j1ql-from-natural-language.md +7 -0
- package/dist/descriptions/execute-j1ql-query.md +426 -0
- package/dist/descriptions/list-alerts.md +14 -0
- package/dist/descriptions/list-rules.md +14 -0
- package/dist/descriptions/update-dashboard.md +467 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/server/mcp-server.d.ts +10 -0
- package/dist/server/mcp-server.d.ts.map +1 -0
- package/dist/server/mcp-server.js +1496 -0
- package/dist/server/mcp-server.js.map +1 -0
- package/dist/types/jupiterone.d.ts +752 -0
- package/dist/types/jupiterone.d.ts.map +1 -0
- package/dist/types/jupiterone.js +2 -0
- package/dist/types/jupiterone.js.map +1 -0
- package/dist/utils/description-loader.d.ts +2 -0
- package/dist/utils/description-loader.d.ts.map +1 -0
- package/dist/utils/description-loader.js +14 -0
- package/dist/utils/description-loader.js.map +1 -0
- package/dist/utils/load-description.d.ts +2 -0
- package/dist/utils/load-description.d.ts.map +1 -0
- package/dist/utils/load-description.js +9 -0
- package/dist/utils/load-description.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
export type AlertStatus = 'ACTIVE' | 'INACTIVE' | 'DISMISSED';
|
|
2
|
+
export type AlertLevel = 'INFO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
|
|
3
|
+
export type PollingInterval = 'DISABLED' | 'THIRTY_MINUTES' | 'ONE_HOUR' | 'FOUR_HOURS' | 'EIGHT_HOURS' | 'TWELVE_HOURS' | 'ONE_DAY' | 'ONE_WEEK';
|
|
4
|
+
export interface Query {
|
|
5
|
+
query: string;
|
|
6
|
+
name: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Question {
|
|
10
|
+
queries: Query[];
|
|
11
|
+
}
|
|
12
|
+
export interface FilterCondition {
|
|
13
|
+
type: 'FILTER';
|
|
14
|
+
version?: number;
|
|
15
|
+
condition: any[];
|
|
16
|
+
}
|
|
17
|
+
export type Action = {
|
|
18
|
+
type: string;
|
|
19
|
+
targetProperty?: string;
|
|
20
|
+
targetValue?: any;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
export interface Operation {
|
|
24
|
+
when: FilterCondition;
|
|
25
|
+
actions: Action[];
|
|
26
|
+
}
|
|
27
|
+
export interface AlertRuleInstance {
|
|
28
|
+
accountId: string;
|
|
29
|
+
resourceGroupId: string | null;
|
|
30
|
+
createdOn: string;
|
|
31
|
+
dismissedOn: string | null;
|
|
32
|
+
endReason: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
lastEvaluationBeginOn: string | null;
|
|
35
|
+
lastEvaluationEndOn: string | null;
|
|
36
|
+
lastEvaluationResult: {
|
|
37
|
+
answerText: string | null;
|
|
38
|
+
evaluationEndOn: string | null;
|
|
39
|
+
outputs: {
|
|
40
|
+
name: string;
|
|
41
|
+
value: any;
|
|
42
|
+
__typename: string;
|
|
43
|
+
}[];
|
|
44
|
+
rawDataDescriptors: {
|
|
45
|
+
name: string;
|
|
46
|
+
recordCount: number;
|
|
47
|
+
__typename: string;
|
|
48
|
+
}[];
|
|
49
|
+
__typename: string;
|
|
50
|
+
} | null;
|
|
51
|
+
lastUpdatedOn: string;
|
|
52
|
+
level: AlertLevel;
|
|
53
|
+
questionRuleInstance: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
tags: string[];
|
|
58
|
+
pollingInterval: PollingInterval;
|
|
59
|
+
labels: {
|
|
60
|
+
labelName: string;
|
|
61
|
+
labelValue: string;
|
|
62
|
+
__typename: string;
|
|
63
|
+
}[];
|
|
64
|
+
__typename: string;
|
|
65
|
+
} | null;
|
|
66
|
+
reportRuleInstance: {
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
__typename: string;
|
|
70
|
+
} | null;
|
|
71
|
+
ruleId: string;
|
|
72
|
+
ruleVersion: string;
|
|
73
|
+
status: AlertStatus;
|
|
74
|
+
users: string[];
|
|
75
|
+
__typename: string;
|
|
76
|
+
}
|
|
77
|
+
export interface InlineQuestionRuleInstance {
|
|
78
|
+
id: string;
|
|
79
|
+
resourceGroupId: string | null;
|
|
80
|
+
accountId: string;
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
version: string;
|
|
84
|
+
lastEvaluationStartOn: string | null;
|
|
85
|
+
lastEvaluationEndOn: string | null;
|
|
86
|
+
evaluationStep: string | null;
|
|
87
|
+
specVersion: string | null;
|
|
88
|
+
notifyOnFailure: boolean | null;
|
|
89
|
+
triggerActionsOnNewEntitiesOnly: boolean | null;
|
|
90
|
+
ignorePreviousResults: boolean | null;
|
|
91
|
+
pollingInterval: PollingInterval;
|
|
92
|
+
templates: any[] | null;
|
|
93
|
+
outputs: string[];
|
|
94
|
+
labels: RuleInstanceLabel[] | null;
|
|
95
|
+
question: EnhancedQuestion;
|
|
96
|
+
questionId: string | null;
|
|
97
|
+
latest: boolean | null;
|
|
98
|
+
deleted: boolean | null;
|
|
99
|
+
type: string | null;
|
|
100
|
+
operations: RuleInstanceOperation[] | null;
|
|
101
|
+
latestAlertId: string | null;
|
|
102
|
+
latestAlertIsActive: boolean | null;
|
|
103
|
+
state: RuleInstanceState | null;
|
|
104
|
+
tags: string[] | null;
|
|
105
|
+
remediationSteps: string | null;
|
|
106
|
+
}
|
|
107
|
+
export interface ReferencedQuestionRuleInstance {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
version: string;
|
|
112
|
+
pollingInterval: PollingInterval;
|
|
113
|
+
questionId?: string;
|
|
114
|
+
questionName?: string;
|
|
115
|
+
operations: Operation[];
|
|
116
|
+
outputs: string[];
|
|
117
|
+
}
|
|
118
|
+
export interface PageInfo {
|
|
119
|
+
endCursor: string | null;
|
|
120
|
+
hasNextPage: boolean;
|
|
121
|
+
}
|
|
122
|
+
export interface ListAlertInstancesResponse {
|
|
123
|
+
listAlertInstances: {
|
|
124
|
+
instances: AlertRuleInstance[];
|
|
125
|
+
pageInfo: PageInfo;
|
|
126
|
+
__typename: string;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export interface CreateInlineQuestionRuleInstanceInput {
|
|
130
|
+
name: string;
|
|
131
|
+
description: string;
|
|
132
|
+
notifyOnFailure?: boolean;
|
|
133
|
+
triggerActionsOnNewEntitiesOnly?: boolean;
|
|
134
|
+
ignorePreviousResults?: boolean;
|
|
135
|
+
operations: Operation[];
|
|
136
|
+
outputs: string[];
|
|
137
|
+
pollingInterval: PollingInterval;
|
|
138
|
+
question: {
|
|
139
|
+
queries: {
|
|
140
|
+
query: string;
|
|
141
|
+
name: string;
|
|
142
|
+
version?: string;
|
|
143
|
+
includeDeleted?: boolean;
|
|
144
|
+
}[];
|
|
145
|
+
};
|
|
146
|
+
specVersion?: number;
|
|
147
|
+
tags?: string[];
|
|
148
|
+
templates?: Record<string, any>;
|
|
149
|
+
}
|
|
150
|
+
export interface UpdateInlineQuestionRuleInstanceInput extends CreateInlineQuestionRuleInstanceInput {
|
|
151
|
+
id: string;
|
|
152
|
+
}
|
|
153
|
+
export interface CreateReferencedQuestionRuleInstanceInput {
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
version: string;
|
|
157
|
+
pollingInterval: PollingInterval;
|
|
158
|
+
outputs: string[];
|
|
159
|
+
operations: Operation[];
|
|
160
|
+
questionId?: string;
|
|
161
|
+
questionName?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface UpdateReferencedQuestionRuleInstanceInput extends CreateReferencedQuestionRuleInstanceInput {
|
|
164
|
+
id: string;
|
|
165
|
+
}
|
|
166
|
+
export interface JupiterOneConfig {
|
|
167
|
+
apiKey: string;
|
|
168
|
+
accountId: string;
|
|
169
|
+
baseUrl?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface RuleInstanceLabel {
|
|
172
|
+
labelName: string;
|
|
173
|
+
labelValue: string;
|
|
174
|
+
}
|
|
175
|
+
export interface RuleInstanceOperation {
|
|
176
|
+
when: FilterCondition;
|
|
177
|
+
actions: Action[];
|
|
178
|
+
}
|
|
179
|
+
export interface RuleInstanceState {
|
|
180
|
+
actions: Action[];
|
|
181
|
+
}
|
|
182
|
+
export interface EnhancedQuery extends Query {
|
|
183
|
+
includeDeleted?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface EnhancedQuestion {
|
|
186
|
+
queries: EnhancedQuery[];
|
|
187
|
+
}
|
|
188
|
+
export interface QuestionRuleInstance {
|
|
189
|
+
id: string;
|
|
190
|
+
resourceGroupId: string | null;
|
|
191
|
+
accountId: string;
|
|
192
|
+
name: string;
|
|
193
|
+
description: string;
|
|
194
|
+
version: string;
|
|
195
|
+
lastEvaluationStartOn: string | null;
|
|
196
|
+
lastEvaluationEndOn: string | null;
|
|
197
|
+
evaluationStep: string | null;
|
|
198
|
+
specVersion: string | null;
|
|
199
|
+
notifyOnFailure: boolean | null;
|
|
200
|
+
triggerActionsOnNewEntitiesOnly: boolean | null;
|
|
201
|
+
ignorePreviousResults: boolean | null;
|
|
202
|
+
pollingInterval: PollingInterval | null;
|
|
203
|
+
templates: any[] | null;
|
|
204
|
+
outputs: string[];
|
|
205
|
+
labels: RuleInstanceLabel[] | null;
|
|
206
|
+
question: EnhancedQuestion;
|
|
207
|
+
questionId: string | null;
|
|
208
|
+
latest: boolean | null;
|
|
209
|
+
deleted: boolean | null;
|
|
210
|
+
type: string | null;
|
|
211
|
+
operations: RuleInstanceOperation[] | null;
|
|
212
|
+
latestAlertId: string | null;
|
|
213
|
+
latestAlertIsActive: boolean | null;
|
|
214
|
+
state: RuleInstanceState | null;
|
|
215
|
+
tags: string[] | null;
|
|
216
|
+
remediationSteps: string | null;
|
|
217
|
+
}
|
|
218
|
+
export interface ListRuleInstancesResponse {
|
|
219
|
+
listRuleInstances: {
|
|
220
|
+
questionInstances: QuestionRuleInstance[];
|
|
221
|
+
pageInfo: PageInfo;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export interface ListRuleInstancesFilters {
|
|
225
|
+
}
|
|
226
|
+
export interface Dashboard {
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
userId: string;
|
|
230
|
+
category: string;
|
|
231
|
+
supportedUseCase: string;
|
|
232
|
+
prerequisites: {
|
|
233
|
+
prerequisitesMet: boolean;
|
|
234
|
+
preRequisitesGroupsFulfilled: boolean;
|
|
235
|
+
preRequisitesGroupsRequired: boolean;
|
|
236
|
+
__typename: string;
|
|
237
|
+
};
|
|
238
|
+
isJ1ManagedBoard: boolean;
|
|
239
|
+
resourceGroupId: string;
|
|
240
|
+
starred: boolean;
|
|
241
|
+
_timeUpdated: string;
|
|
242
|
+
_createdAt: string;
|
|
243
|
+
__typename: string;
|
|
244
|
+
}
|
|
245
|
+
export interface DashboardResponse {
|
|
246
|
+
getDashboards: Dashboard[];
|
|
247
|
+
}
|
|
248
|
+
export interface CreateDashboardInput {
|
|
249
|
+
name: string;
|
|
250
|
+
type: string;
|
|
251
|
+
}
|
|
252
|
+
export interface CreateDashboardResponse {
|
|
253
|
+
createDashboard: {
|
|
254
|
+
id: string;
|
|
255
|
+
__typename: string;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
export interface DashboardParameter {
|
|
259
|
+
dashboardId: string;
|
|
260
|
+
accountId: string;
|
|
261
|
+
id: string;
|
|
262
|
+
label: string;
|
|
263
|
+
name: string;
|
|
264
|
+
options: any;
|
|
265
|
+
valueType: string;
|
|
266
|
+
type: string;
|
|
267
|
+
default: any;
|
|
268
|
+
disableCustomInput: boolean;
|
|
269
|
+
requireValue: boolean;
|
|
270
|
+
__typename: string;
|
|
271
|
+
}
|
|
272
|
+
export interface DashboardWidgetQuery {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
query: string;
|
|
276
|
+
__typename: string;
|
|
277
|
+
}
|
|
278
|
+
export interface DashboardWidgetConfig {
|
|
279
|
+
queries: DashboardWidgetQuery[];
|
|
280
|
+
settings: any;
|
|
281
|
+
postQueryFilters: any;
|
|
282
|
+
disableQueryPolicyFilters: boolean;
|
|
283
|
+
__typename: string;
|
|
284
|
+
}
|
|
285
|
+
export interface DashboardWidget {
|
|
286
|
+
id: string;
|
|
287
|
+
title: string;
|
|
288
|
+
description: string;
|
|
289
|
+
type: string;
|
|
290
|
+
questionId: string;
|
|
291
|
+
noResultMessage: string;
|
|
292
|
+
includeDeleted: boolean;
|
|
293
|
+
config: DashboardWidgetConfig;
|
|
294
|
+
__typename: string;
|
|
295
|
+
}
|
|
296
|
+
export interface DashboardLayoutItem {
|
|
297
|
+
static: boolean;
|
|
298
|
+
moved: boolean;
|
|
299
|
+
w: number;
|
|
300
|
+
h: number;
|
|
301
|
+
x: number;
|
|
302
|
+
y: number;
|
|
303
|
+
i: string;
|
|
304
|
+
__typename: string;
|
|
305
|
+
}
|
|
306
|
+
export interface DashboardLayout {
|
|
307
|
+
xs: DashboardLayoutItem[];
|
|
308
|
+
sm: DashboardLayoutItem[];
|
|
309
|
+
md: DashboardLayoutItem[];
|
|
310
|
+
lg: DashboardLayoutItem[];
|
|
311
|
+
xl: DashboardLayoutItem[];
|
|
312
|
+
__typename: string;
|
|
313
|
+
}
|
|
314
|
+
export interface DashboardDetails extends Dashboard {
|
|
315
|
+
published: boolean;
|
|
316
|
+
publishedToUserIds: string[];
|
|
317
|
+
publishedToGroupIds: string[];
|
|
318
|
+
groupIds: string[];
|
|
319
|
+
userIds: string[];
|
|
320
|
+
scopeFilters: any;
|
|
321
|
+
parameters: DashboardParameter[];
|
|
322
|
+
widgets: DashboardWidget[];
|
|
323
|
+
layouts: DashboardLayout;
|
|
324
|
+
}
|
|
325
|
+
export interface GetDashboardResponse {
|
|
326
|
+
getDashboard: DashboardDetails;
|
|
327
|
+
}
|
|
328
|
+
export interface IntegrationDefinition {
|
|
329
|
+
id: string;
|
|
330
|
+
name: string;
|
|
331
|
+
type: string;
|
|
332
|
+
title: string;
|
|
333
|
+
displayMode: string;
|
|
334
|
+
oAuth?: {
|
|
335
|
+
oAuthUrlGeneratorPath: string;
|
|
336
|
+
};
|
|
337
|
+
offsiteUrl?: string;
|
|
338
|
+
offsiteButtonTitle?: string;
|
|
339
|
+
offsiteStatusQuery?: string;
|
|
340
|
+
integrationType: string;
|
|
341
|
+
integrationClass: string;
|
|
342
|
+
integrationCategory: string;
|
|
343
|
+
beta: boolean;
|
|
344
|
+
docsWebLink?: string;
|
|
345
|
+
repoWebLink?: string;
|
|
346
|
+
invocationPaused: boolean;
|
|
347
|
+
managedExecutionDisabled: boolean;
|
|
348
|
+
managedCreateDisabled: boolean;
|
|
349
|
+
managedDeleteDisabled: boolean;
|
|
350
|
+
integrationPlatformFeatures?: {
|
|
351
|
+
supportsChildInstances: boolean;
|
|
352
|
+
supportsCollectors: boolean;
|
|
353
|
+
supportsIngestionSourcesConfig: boolean;
|
|
354
|
+
supportsAgentConfigurations: boolean;
|
|
355
|
+
};
|
|
356
|
+
ingestionSourcesConfig?: {
|
|
357
|
+
id: string;
|
|
358
|
+
title: string;
|
|
359
|
+
description: string;
|
|
360
|
+
defaultsToDisabled: boolean;
|
|
361
|
+
childIngestionSourcesMetadata?: {
|
|
362
|
+
id: string;
|
|
363
|
+
name: string;
|
|
364
|
+
}[];
|
|
365
|
+
cannotBeDisabled: boolean;
|
|
366
|
+
}[];
|
|
367
|
+
ingestionSourcesOverrides?: {
|
|
368
|
+
enabled: boolean;
|
|
369
|
+
ingestionSourceId: string;
|
|
370
|
+
}[];
|
|
371
|
+
totalInstanceCount: number;
|
|
372
|
+
integrationJobStatusMetrics?: {
|
|
373
|
+
count: number;
|
|
374
|
+
status: string;
|
|
375
|
+
}[];
|
|
376
|
+
icon?: string;
|
|
377
|
+
provisioningType?: string;
|
|
378
|
+
description?: string;
|
|
379
|
+
customDefinitionType?: string;
|
|
380
|
+
configFields?: ConfigField[];
|
|
381
|
+
authSections?: {
|
|
382
|
+
id: string;
|
|
383
|
+
description: string;
|
|
384
|
+
displayName: string;
|
|
385
|
+
configFields: ConfigField[];
|
|
386
|
+
verificationDisabled: boolean;
|
|
387
|
+
}[];
|
|
388
|
+
configSections?: {
|
|
389
|
+
displayName: string;
|
|
390
|
+
configFields: ConfigField[];
|
|
391
|
+
}[];
|
|
392
|
+
}
|
|
393
|
+
export interface ConfigField {
|
|
394
|
+
key: string;
|
|
395
|
+
displayName: string;
|
|
396
|
+
description?: string;
|
|
397
|
+
type: string;
|
|
398
|
+
format?: string;
|
|
399
|
+
defaultValue?: any;
|
|
400
|
+
helperText?: string;
|
|
401
|
+
inputAdornment?: string;
|
|
402
|
+
mask?: boolean;
|
|
403
|
+
optional?: boolean;
|
|
404
|
+
immutable?: boolean;
|
|
405
|
+
readonly?: boolean;
|
|
406
|
+
computed?: boolean;
|
|
407
|
+
options?: {
|
|
408
|
+
value: string;
|
|
409
|
+
description?: string;
|
|
410
|
+
label?: string;
|
|
411
|
+
webLink?: string;
|
|
412
|
+
default?: boolean;
|
|
413
|
+
}[];
|
|
414
|
+
configFields?: ConfigField[];
|
|
415
|
+
}
|
|
416
|
+
export interface IntegrationDefinitionsResponse {
|
|
417
|
+
integrationDefinitions: {
|
|
418
|
+
definitions: IntegrationDefinition[];
|
|
419
|
+
pageInfo: {
|
|
420
|
+
endCursor: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
export interface IntegrationInstanceLite {
|
|
425
|
+
id: string;
|
|
426
|
+
name: string;
|
|
427
|
+
accountId: string;
|
|
428
|
+
sourceIntegrationInstanceId?: string;
|
|
429
|
+
pollingInterval?: string;
|
|
430
|
+
pollingIntervalCronExpression?: {
|
|
431
|
+
hour: number;
|
|
432
|
+
dayOfWeek: number;
|
|
433
|
+
};
|
|
434
|
+
integrationDefinitionId: string;
|
|
435
|
+
description?: string;
|
|
436
|
+
config: Record<string, any>;
|
|
437
|
+
instanceRelationship?: string;
|
|
438
|
+
resourceGroupId?: string;
|
|
439
|
+
createdOn: string;
|
|
440
|
+
createdBy: string;
|
|
441
|
+
updatedOn: string;
|
|
442
|
+
updatedBy: string;
|
|
443
|
+
mostRecentJob?: {
|
|
444
|
+
status: string;
|
|
445
|
+
hasSkippedSteps: boolean;
|
|
446
|
+
createDate: string;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
export interface IntegrationInstancesResponse {
|
|
450
|
+
integrationInstancesV2: {
|
|
451
|
+
instances: IntegrationInstanceLite[];
|
|
452
|
+
pageInfo: {
|
|
453
|
+
endCursor: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
export interface ListIntegrationInstancesSearchFilter {
|
|
458
|
+
}
|
|
459
|
+
export type IntegrationJobStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
460
|
+
export interface IntegrationJob {
|
|
461
|
+
id: string;
|
|
462
|
+
status: IntegrationJobStatus;
|
|
463
|
+
integrationInstanceId: string;
|
|
464
|
+
createDate: string;
|
|
465
|
+
endDate?: string;
|
|
466
|
+
hasSkippedSteps: boolean;
|
|
467
|
+
integrationInstance: {
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
};
|
|
471
|
+
integrationDefinition: {
|
|
472
|
+
id: string;
|
|
473
|
+
title: string;
|
|
474
|
+
integrationType: string;
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
export interface IntegrationJobsResponse {
|
|
478
|
+
integrationJobs: {
|
|
479
|
+
jobs: IntegrationJob[];
|
|
480
|
+
pageInfo: {
|
|
481
|
+
endCursor: string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
export interface IntegrationEvent {
|
|
486
|
+
id: string;
|
|
487
|
+
name: string;
|
|
488
|
+
description: string;
|
|
489
|
+
createDate: string;
|
|
490
|
+
jobId: string;
|
|
491
|
+
level: string;
|
|
492
|
+
eventCode: string;
|
|
493
|
+
}
|
|
494
|
+
export interface IntegrationEventsResponse {
|
|
495
|
+
integrationEvents: {
|
|
496
|
+
events: IntegrationEvent[];
|
|
497
|
+
pageInfo: {
|
|
498
|
+
endCursor: string;
|
|
499
|
+
hasNextPage: boolean;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
export interface IntegrationInstanceResponse {
|
|
504
|
+
integrationInstance: {
|
|
505
|
+
id: string;
|
|
506
|
+
name: string;
|
|
507
|
+
accountId: string;
|
|
508
|
+
sourceIntegrationInstanceId?: string;
|
|
509
|
+
pollingInterval?: string;
|
|
510
|
+
pollingIntervalCronExpression?: {
|
|
511
|
+
hour: number;
|
|
512
|
+
dayOfWeek: number;
|
|
513
|
+
};
|
|
514
|
+
integrationDefinition: {
|
|
515
|
+
name: string;
|
|
516
|
+
integrationType: string;
|
|
517
|
+
};
|
|
518
|
+
integrationDefinitionId: string;
|
|
519
|
+
description?: string;
|
|
520
|
+
config: Record<string, any>;
|
|
521
|
+
offsiteComplete?: boolean;
|
|
522
|
+
jobs: {
|
|
523
|
+
jobs: IntegrationJob[];
|
|
524
|
+
};
|
|
525
|
+
instanceRelationship?: string;
|
|
526
|
+
ingestionSourcesOverrides?: {
|
|
527
|
+
ingestionSourceId: string;
|
|
528
|
+
enabled: boolean;
|
|
529
|
+
}[];
|
|
530
|
+
collectorPoolId?: string;
|
|
531
|
+
resourceGroupId?: string;
|
|
532
|
+
createdOn: string;
|
|
533
|
+
createdBy: string;
|
|
534
|
+
updatedOn: string;
|
|
535
|
+
updatedBy: string;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
export interface IntegrationJobResponse {
|
|
539
|
+
integrationJob: IntegrationJob;
|
|
540
|
+
}
|
|
541
|
+
export interface RuleEvaluationOutput {
|
|
542
|
+
name: string;
|
|
543
|
+
value: any;
|
|
544
|
+
__typename: string;
|
|
545
|
+
}
|
|
546
|
+
export interface RuleEvaluationRawDataDescriptor {
|
|
547
|
+
name: string;
|
|
548
|
+
persistedResultType: string;
|
|
549
|
+
rawDataKey: string;
|
|
550
|
+
recordCount: number;
|
|
551
|
+
recordCreateCount: number;
|
|
552
|
+
recordDeleteCount: number;
|
|
553
|
+
recordUpdateCount: number;
|
|
554
|
+
__typename: string;
|
|
555
|
+
}
|
|
556
|
+
export interface RuleEvaluation {
|
|
557
|
+
accountId: string;
|
|
558
|
+
collectionOwnerId: string;
|
|
559
|
+
collectionOwnerVersion: string;
|
|
560
|
+
collectionType: string;
|
|
561
|
+
outputs: RuleEvaluationOutput[];
|
|
562
|
+
rawDataDescriptors: RuleEvaluationRawDataDescriptor[];
|
|
563
|
+
tag: string;
|
|
564
|
+
timestamp: number;
|
|
565
|
+
__typename: string;
|
|
566
|
+
}
|
|
567
|
+
export interface ListRuleEvaluationsResponse {
|
|
568
|
+
listCollectionResults: {
|
|
569
|
+
results: RuleEvaluation[];
|
|
570
|
+
pageInfo: PageInfo;
|
|
571
|
+
__typename: string;
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
export interface ListRuleEvaluationsFilters {
|
|
575
|
+
collectionType: 'RULE_EVALUATION';
|
|
576
|
+
collectionOwnerId: string;
|
|
577
|
+
beginTimestamp: number;
|
|
578
|
+
endTimestamp: number;
|
|
579
|
+
limit?: number;
|
|
580
|
+
cursor?: string;
|
|
581
|
+
tag?: string;
|
|
582
|
+
[key: string]: any;
|
|
583
|
+
}
|
|
584
|
+
export interface QueryEvaluationDetails {
|
|
585
|
+
name: string;
|
|
586
|
+
duration: number;
|
|
587
|
+
status: string;
|
|
588
|
+
error?: string;
|
|
589
|
+
rawDataKey?: string;
|
|
590
|
+
}
|
|
591
|
+
export interface QueryEvaluation {
|
|
592
|
+
status: string;
|
|
593
|
+
queryEvaluationDetails: QueryEvaluationDetails[];
|
|
594
|
+
rawDataDescriptors?: RuleEvaluationRawDataDescriptor[];
|
|
595
|
+
__typename: string;
|
|
596
|
+
}
|
|
597
|
+
export interface QuestionEvaluation {
|
|
598
|
+
totalDuration: number;
|
|
599
|
+
queries: QueryEvaluation[];
|
|
600
|
+
__typename: string;
|
|
601
|
+
}
|
|
602
|
+
export interface ConditionEvaluation {
|
|
603
|
+
status: string;
|
|
604
|
+
condition: string;
|
|
605
|
+
__typename: string;
|
|
606
|
+
}
|
|
607
|
+
export interface ActionEvaluationDetails {
|
|
608
|
+
actionId: string;
|
|
609
|
+
action: string;
|
|
610
|
+
status: string;
|
|
611
|
+
duration: number;
|
|
612
|
+
finishedOn: string;
|
|
613
|
+
logs: string[];
|
|
614
|
+
__typename: string;
|
|
615
|
+
}
|
|
616
|
+
export interface ActionEvaluation {
|
|
617
|
+
status: string;
|
|
618
|
+
actionEvaluationDetails: ActionEvaluationDetails[];
|
|
619
|
+
__typename: string;
|
|
620
|
+
}
|
|
621
|
+
export interface RuleEvaluationDetails {
|
|
622
|
+
accountRuleId: string;
|
|
623
|
+
startedOn: string;
|
|
624
|
+
question: QuestionEvaluation;
|
|
625
|
+
conditions: ConditionEvaluation[];
|
|
626
|
+
actions: ActionEvaluation[];
|
|
627
|
+
ruleEvaluationOrigin: string;
|
|
628
|
+
rawDataDescriptors?: RuleEvaluationRawDataDescriptor[];
|
|
629
|
+
__typename: string;
|
|
630
|
+
}
|
|
631
|
+
export interface RuleEvaluationDetailsResponse {
|
|
632
|
+
ruleEvaluationDetails: RuleEvaluationDetails;
|
|
633
|
+
}
|
|
634
|
+
export interface RuleEvaluationDetailsInput {
|
|
635
|
+
ruleInstanceId: string;
|
|
636
|
+
timestamp: number;
|
|
637
|
+
}
|
|
638
|
+
export interface RawDataDownloadUrlResponse {
|
|
639
|
+
getRawDataDownloadUrl: string;
|
|
640
|
+
}
|
|
641
|
+
export interface CreateJ1qlFromNaturalLanguageResponse {
|
|
642
|
+
createJ1qlFromNaturalLanguage: {
|
|
643
|
+
uuid: string;
|
|
644
|
+
question: string;
|
|
645
|
+
query: string;
|
|
646
|
+
__typename: string;
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
export interface InsightsDashboard {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
type?: string;
|
|
653
|
+
category?: string;
|
|
654
|
+
userId?: string;
|
|
655
|
+
supportedUseCase?: string;
|
|
656
|
+
isJ1ManagedBoard?: boolean;
|
|
657
|
+
published?: boolean;
|
|
658
|
+
publishedToUserIds?: string[];
|
|
659
|
+
publishedToGroupIds?: string[];
|
|
660
|
+
groupIds?: string[];
|
|
661
|
+
userIds?: string[];
|
|
662
|
+
scopeFilters?: any;
|
|
663
|
+
resourceGroupId?: string;
|
|
664
|
+
starred?: boolean;
|
|
665
|
+
_timeUpdated?: string;
|
|
666
|
+
_createdAt?: string;
|
|
667
|
+
prerequisites?: {
|
|
668
|
+
prerequisitesMet?: boolean;
|
|
669
|
+
preRequisitesGroupsFulfilled?: boolean;
|
|
670
|
+
preRequisitesGroupsRequired?: boolean;
|
|
671
|
+
};
|
|
672
|
+
parameters?: Array<{
|
|
673
|
+
dashboardId: string;
|
|
674
|
+
accountId: string;
|
|
675
|
+
id: string;
|
|
676
|
+
label: string;
|
|
677
|
+
name: string;
|
|
678
|
+
options: any;
|
|
679
|
+
valueType: string;
|
|
680
|
+
type: string;
|
|
681
|
+
default?: any;
|
|
682
|
+
disableCustomInput?: boolean;
|
|
683
|
+
requireValue?: boolean;
|
|
684
|
+
}>;
|
|
685
|
+
widgets?: Array<{
|
|
686
|
+
id: string;
|
|
687
|
+
title: string;
|
|
688
|
+
description?: string;
|
|
689
|
+
type: string;
|
|
690
|
+
questionId?: string;
|
|
691
|
+
noResultMessage?: string;
|
|
692
|
+
includeDeleted?: boolean;
|
|
693
|
+
config?: {
|
|
694
|
+
queries?: Array<{
|
|
695
|
+
id: string;
|
|
696
|
+
name: string;
|
|
697
|
+
query: string;
|
|
698
|
+
}>;
|
|
699
|
+
settings?: any;
|
|
700
|
+
postQueryFilters?: any;
|
|
701
|
+
disableQueryPolicyFilters?: boolean;
|
|
702
|
+
};
|
|
703
|
+
}>;
|
|
704
|
+
layouts?: {
|
|
705
|
+
xs?: Array<{
|
|
706
|
+
w: number;
|
|
707
|
+
h: number;
|
|
708
|
+
x: number;
|
|
709
|
+
y: number;
|
|
710
|
+
i: string;
|
|
711
|
+
moved: boolean;
|
|
712
|
+
static: boolean;
|
|
713
|
+
}>;
|
|
714
|
+
sm?: Array<{
|
|
715
|
+
w: number;
|
|
716
|
+
h: number;
|
|
717
|
+
x: number;
|
|
718
|
+
y: number;
|
|
719
|
+
i: string;
|
|
720
|
+
moved: boolean;
|
|
721
|
+
static: boolean;
|
|
722
|
+
}>;
|
|
723
|
+
md?: Array<{
|
|
724
|
+
w: number;
|
|
725
|
+
h: number;
|
|
726
|
+
x: number;
|
|
727
|
+
y: number;
|
|
728
|
+
i: string;
|
|
729
|
+
moved: boolean;
|
|
730
|
+
static: boolean;
|
|
731
|
+
}>;
|
|
732
|
+
lg?: Array<{
|
|
733
|
+
w: number;
|
|
734
|
+
h: number;
|
|
735
|
+
x: number;
|
|
736
|
+
y: number;
|
|
737
|
+
i: string;
|
|
738
|
+
moved: boolean;
|
|
739
|
+
static: boolean;
|
|
740
|
+
}>;
|
|
741
|
+
xl?: Array<{
|
|
742
|
+
w: number;
|
|
743
|
+
h: number;
|
|
744
|
+
x: number;
|
|
745
|
+
y: number;
|
|
746
|
+
i: string;
|
|
747
|
+
moved: boolean;
|
|
748
|
+
static: boolean;
|
|
749
|
+
}>;
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
//# sourceMappingURL=jupiterone.d.ts.map
|