@dx-do/client 7.7.2 → 7.8.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/dist/index.cjs.js +969 -257
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +941 -258
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts +263 -0
- package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts.map +1 -0
- package/dist/src/lib/model/channel/ticket-enrichment.d.ts +201 -0
- package/dist/src/lib/model/channel/ticket-enrichment.d.ts.map +1 -0
- package/dist/src/lib/services/alarm.service.d.ts +67 -3
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/channel.service.d.ts +42 -0
- package/dist/src/lib/services/channel.service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -245,6 +245,608 @@ var AlarmEnrichmentFilter;
|
|
|
245
245
|
AlarmEnrichmentFilter.convertFilterToNode = convertFilterToNode;
|
|
246
246
|
})(AlarmEnrichmentFilter || (AlarmEnrichmentFilter = {}));
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* Write bodies for notification policies (`dxinotify/notify/v1/filters`) and
|
|
250
|
+
* message templates (`dxinotify/notify/v1/templates`) — the key sets the UI
|
|
251
|
+
* sends, observed in HAR captures on the lab tenant. Both endpoints use one
|
|
252
|
+
* `PUT` for create and update: policies discriminate on `id` (0 creates),
|
|
253
|
+
* templates on `oldTemplateName` (null creates, the current name updates).
|
|
254
|
+
* The read shapes carry more (author, timestamps, contentVersion, …); the
|
|
255
|
+
* projections below drop them.
|
|
256
|
+
*/
|
|
257
|
+
const PolicyLinkedEntitySchema = z.looseObject({
|
|
258
|
+
channelName: z.string().describe('Channel the policy delivers to'),
|
|
259
|
+
messageTemplateName: z
|
|
260
|
+
.string()
|
|
261
|
+
.nullable()
|
|
262
|
+
.optional()
|
|
263
|
+
.describe('Template override for this channel; "" (write) / null (read) for the channel default'),
|
|
264
|
+
});
|
|
265
|
+
const PolicyWriteBodySchema = z.looseObject({
|
|
266
|
+
id: z.number().describe('Policy id; 0 creates, an existing id updates in place'),
|
|
267
|
+
orgId: z.string().describe('Tenant common name; stamped by the service'),
|
|
268
|
+
keyLevel: z.number().describe('1 for user policies (the built-in default policy reads -1)'),
|
|
269
|
+
name: z.string().min(1).describe('Policy (filter) name; unique per tenant'),
|
|
270
|
+
filterType: z.string().describe('"AUTOMATIC" or "MANUAL"'),
|
|
271
|
+
reminderTime: z.number().describe('Reminder interval; 0 = none'),
|
|
272
|
+
reminderTimeUnit: z.string().describe('Reminder unit, e.g. HOURS'),
|
|
273
|
+
channelNames: z.array(z.string()).describe('Channels the policy delivers to, by name'),
|
|
274
|
+
active: z.boolean().describe('true = enabled'),
|
|
275
|
+
description: z.string().describe('Free-text description'),
|
|
276
|
+
alarmCategory: z.string().describe('rawAlarm, service, or SituationCluster'),
|
|
277
|
+
serviceAlarmAction: z.boolean().describe('Service-alarm action flag'),
|
|
278
|
+
filterExpressionV1: z.unknown().describe('Opaque alarm-match expression tree, round-tripped verbatim'),
|
|
279
|
+
isComplexFilter: z.boolean().describe('Complex-filter flag'),
|
|
280
|
+
jobInfo: z.unknown().nullable().optional().describe('null on UI writes'),
|
|
281
|
+
linkedEntities: z.array(PolicyLinkedEntitySchema).describe('Channel ↔ template links'),
|
|
282
|
+
linkedMappings: z.array(z.unknown()).optional().describe('[] on UI writes'),
|
|
283
|
+
linkedActions: z.array(z.unknown()).optional().describe('Alarm actions; [] when none'),
|
|
284
|
+
});
|
|
285
|
+
const PolicyWriteResponseSchema = z.looseObject({
|
|
286
|
+
newContentVersion: z.number().describe('0 for a create, previous + 1 for an update'),
|
|
287
|
+
});
|
|
288
|
+
const TemplateWriteBodySchema = z.looseObject({
|
|
289
|
+
orgId: z.string().describe('Tenant common name; stamped by the service'),
|
|
290
|
+
keyLevel: z.number().describe('Always 1'),
|
|
291
|
+
defaultTemplate: z
|
|
292
|
+
.union([z.boolean(), z.string()])
|
|
293
|
+
.describe('Built-in platform template flag; false for user templates (the read shape carries "true"/"false" strings)'),
|
|
294
|
+
templateName: z.string().min(1).describe('Template name; unique per tenant'),
|
|
295
|
+
oldTemplateName: z
|
|
296
|
+
.string()
|
|
297
|
+
.nullable()
|
|
298
|
+
.describe('null creates; the current name updates in place (a different name renames)'),
|
|
299
|
+
contentVersion: z.number().describe('0 on create; the current version on update'),
|
|
300
|
+
locale: z.string().describe('Locale; "en_US" in practice'),
|
|
301
|
+
subjectTemplate: z.string().describe('Subject line template'),
|
|
302
|
+
senderNameTemplate: z.string().describe('Sender display name'),
|
|
303
|
+
imageUsage: z.number().describe('0 in practice'),
|
|
304
|
+
channelNames: z.array(z.string()).describe('Channels using this template (reverse index); [] on create'),
|
|
305
|
+
useHtml: z.boolean().describe('Render templateHtml instead of templateText'),
|
|
306
|
+
templateText: z.string().describe('Body template, base64-encoded (stored and returned encoded)'),
|
|
307
|
+
templateHtml: z.string().describe('HTML body; "" when unused'),
|
|
308
|
+
linkedEntities: z.array(z.unknown()).describe('Policy links (reverse index); [] on create'),
|
|
309
|
+
});
|
|
310
|
+
const TemplateWriteResponseSchema = z.looseObject({
|
|
311
|
+
existingTemplateUpdated: z.boolean().describe('true when an existing template was updated'),
|
|
312
|
+
newContentVersion: z.number().describe('Content version after the save'),
|
|
313
|
+
});
|
|
314
|
+
/** Built-in / platform-managed policies read back with author SYSTEM (or none, for the default policy). */
|
|
315
|
+
function isBuiltInPolicy(policy) {
|
|
316
|
+
return policy.author === undefined || policy.author === null || policy.author === 'SYSTEM';
|
|
317
|
+
}
|
|
318
|
+
/** Built-in templates are flagged defaultTemplate; platform-provided ones without the flag have no author. */
|
|
319
|
+
function isBuiltInTemplate(template) {
|
|
320
|
+
return (template.defaultTemplate === true ||
|
|
321
|
+
template.defaultTemplate === 'true' ||
|
|
322
|
+
template.author === undefined ||
|
|
323
|
+
template.author === null);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Projects a policy as read from a tenant (or an export file) onto the write
|
|
327
|
+
* body the UI sends: read-only fields dropped, `id`/`orgId` replaced with the
|
|
328
|
+
* target's, `jobInfo` null, links reduced to channel + template names.
|
|
329
|
+
*/
|
|
330
|
+
function toPolicyWriteBody(source, opts) {
|
|
331
|
+
const keyLevel = typeof source.keyLevel === 'number' && source.keyLevel >= 0 ? source.keyLevel : 1;
|
|
332
|
+
return {
|
|
333
|
+
id: opts.id,
|
|
334
|
+
orgId: opts.orgId,
|
|
335
|
+
keyLevel,
|
|
336
|
+
name: source.name,
|
|
337
|
+
filterType: source.filterType ?? 'AUTOMATIC',
|
|
338
|
+
reminderTime: source.reminderTime ?? 0,
|
|
339
|
+
reminderTimeUnit: source.reminderTimeUnit ?? 'HOURS',
|
|
340
|
+
channelNames: source.channelNames ?? [],
|
|
341
|
+
active: source.active ?? true,
|
|
342
|
+
description: source.description ?? '',
|
|
343
|
+
alarmCategory: source.alarmCategory ?? 'rawAlarm',
|
|
344
|
+
serviceAlarmAction: source.serviceAlarmAction ?? false,
|
|
345
|
+
filterExpressionV1: source.filterExpressionV1,
|
|
346
|
+
isComplexFilter: source.isComplexFilter ?? false,
|
|
347
|
+
jobInfo: null,
|
|
348
|
+
linkedEntities: (source.linkedEntities ?? []).map((link) => ({
|
|
349
|
+
channelName: link.channelName,
|
|
350
|
+
messageTemplateName: link.messageTemplateName ?? '',
|
|
351
|
+
})),
|
|
352
|
+
linkedMappings: [],
|
|
353
|
+
linkedActions: source.linkedActions ?? [],
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Projects a template as read from a tenant (or an export file) onto the write
|
|
358
|
+
* body the UI sends. `oldTemplateName` null creates; pass the target's current
|
|
359
|
+
* name and contentVersion to update in place. templateText stays base64.
|
|
360
|
+
*/
|
|
361
|
+
function toTemplateWriteBody(source, opts) {
|
|
362
|
+
return {
|
|
363
|
+
orgId: opts.orgId,
|
|
364
|
+
keyLevel: 1,
|
|
365
|
+
defaultTemplate: opts.defaultTemplate ?? false,
|
|
366
|
+
templateName: source.templateName,
|
|
367
|
+
oldTemplateName: opts.oldTemplateName,
|
|
368
|
+
contentVersion: opts.contentVersion,
|
|
369
|
+
locale: source.locale ?? 'en_US',
|
|
370
|
+
subjectTemplate: source.subjectTemplate ?? '',
|
|
371
|
+
senderNameTemplate: source.senderNameTemplate ?? '',
|
|
372
|
+
imageUsage: source.imageUsage ?? 0,
|
|
373
|
+
channelNames: opts.channelNames ?? [],
|
|
374
|
+
useHtml: source.useHtml ?? false,
|
|
375
|
+
templateText: source.templateText ?? '',
|
|
376
|
+
templateHtml: source.templateHtml ?? '',
|
|
377
|
+
linkedEntities: [],
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
// ---------------------------------------------------------------------------
|
|
381
|
+
// Policy filter expressions
|
|
382
|
+
// ---------------------------------------------------------------------------
|
|
383
|
+
const POLICY_ALARM_CATEGORIES = ['rawAlarm', 'service', 'SituationCluster'];
|
|
384
|
+
/**
|
|
385
|
+
* Conditions accepted in policy filter atoms. `equals`, `not_equals`,
|
|
386
|
+
* `greater_than`, `increases`, and `changed` are observed in UI-authored
|
|
387
|
+
* policies; the string matchers come from the platform's shared filter model.
|
|
388
|
+
*/
|
|
389
|
+
const POLICY_FILTER_CONDITIONS = [
|
|
390
|
+
'equals',
|
|
391
|
+
'not_equals',
|
|
392
|
+
'contains',
|
|
393
|
+
'not_contains',
|
|
394
|
+
'starts_with',
|
|
395
|
+
'not_starts_with',
|
|
396
|
+
'ends_with',
|
|
397
|
+
'not_ends_with',
|
|
398
|
+
'greater_than',
|
|
399
|
+
'less_than',
|
|
400
|
+
'increases',
|
|
401
|
+
'decreases',
|
|
402
|
+
'changed',
|
|
403
|
+
];
|
|
404
|
+
const PolicyFilterAtomSchema = z.looseObject({
|
|
405
|
+
field: z.string().min(1).describe('Alarm field name (see the per-category field catalog)'),
|
|
406
|
+
fieldDescription: z.string().optional().describe('Human label the UI stores next to the field'),
|
|
407
|
+
condition: z.string().describe('One of the policy filter conditions, e.g. equals, not_equals, greater_than, changed'),
|
|
408
|
+
value: z
|
|
409
|
+
.union([z.string(), z.boolean(), z.number()])
|
|
410
|
+
.describe('Comparison value; "" for changed, the field name itself for increases/decreases'),
|
|
411
|
+
});
|
|
412
|
+
const PolicyFilterExpressionLazy = z.lazy(() => z.union([
|
|
413
|
+
PolicyFilterAtomSchema,
|
|
414
|
+
z.looseObject({ and: z.looseObject({ expressions: z.array(PolicyFilterExpressionLazy) }) }),
|
|
415
|
+
z.looseObject({ or: z.looseObject({ expressions: z.array(PolicyFilterExpressionLazy) }) }),
|
|
416
|
+
]));
|
|
417
|
+
/** Recursive and/or tree of {@link PolicyFilterAtomSchema} atoms (`filterExpressionV1`). */
|
|
418
|
+
const PolicyFilterExpressionSchema = PolicyFilterExpressionLazy;
|
|
419
|
+
/**
|
|
420
|
+
* The atoms the UI prepends for a category so the policy only sees its own
|
|
421
|
+
* alarm kind: rawAlarm and SituationCluster are observed; service mirrors them.
|
|
422
|
+
*/
|
|
423
|
+
function policyCategoryGuard(category) {
|
|
424
|
+
switch (category) {
|
|
425
|
+
case 'rawAlarm':
|
|
426
|
+
return [{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'not_equals', value: 'Service' }];
|
|
427
|
+
case 'service':
|
|
428
|
+
return [{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'equals', value: 'Service' }];
|
|
429
|
+
case 'SituationCluster':
|
|
430
|
+
return [
|
|
431
|
+
{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'equals', value: 'SituationCluster' },
|
|
432
|
+
{ field: 'isOrphan', fieldDescription: 'Is Orphan', condition: 'equals', value: false },
|
|
433
|
+
];
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Builds `filterExpressionV1` the way the UI does: an outer AND of the
|
|
438
|
+
* category guard group and the user's atoms (AND-ed). No atoms → guard only.
|
|
439
|
+
*/
|
|
440
|
+
function buildPolicyFilterExpression(category, atoms) {
|
|
441
|
+
const guard = { and: { expressions: policyCategoryGuard(category) } };
|
|
442
|
+
if (atoms.length === 0) {
|
|
443
|
+
return guard;
|
|
444
|
+
}
|
|
445
|
+
return { and: { expressions: [guard, { and: { expressions: atoms } }] } };
|
|
446
|
+
}
|
|
447
|
+
/** Flattens an expression into its atoms (for previews and field checks). */
|
|
448
|
+
function policyFilterAtoms(expression) {
|
|
449
|
+
if ('condition' in expression) {
|
|
450
|
+
return [expression];
|
|
451
|
+
}
|
|
452
|
+
if ('and' in expression) {
|
|
453
|
+
return expression.and.expressions.flatMap(policyFilterAtoms);
|
|
454
|
+
}
|
|
455
|
+
if ('or' in expression) {
|
|
456
|
+
return expression.or.expressions.flatMap(policyFilterAtoms);
|
|
457
|
+
}
|
|
458
|
+
return [];
|
|
459
|
+
}
|
|
460
|
+
/** One entry of the per-category alarm field catalog the policy editor offers. */
|
|
461
|
+
const AlarmFilterFieldSchema = z.looseObject({
|
|
462
|
+
field: z.string().describe('Field name to use in filter atoms'),
|
|
463
|
+
fieldDescription: z.string().describe('Human label'),
|
|
464
|
+
values: z.array(z.string()).describe('Closed vocabulary when non-empty (e.g. severity levels)'),
|
|
465
|
+
fieldType: z.string().describe('String, Number, …'),
|
|
466
|
+
});
|
|
467
|
+
const AlarmFilterFieldsResponseSchema = z.array(AlarmFilterFieldSchema);
|
|
468
|
+
/** The catalog endpoint per alarm category (`GET`, bare array). */
|
|
469
|
+
const ALARM_FILTER_FIELD_PATHS = {
|
|
470
|
+
rawAlarm: 'oi/v2/api/normalizedalarms/fields',
|
|
471
|
+
service: 'oi/v2/api/dxservicealarms/fields',
|
|
472
|
+
SituationCluster: 'oi/v2/api/dxiclusteralarms/fields',
|
|
473
|
+
};
|
|
474
|
+
// ---------------------------------------------------------------------------
|
|
475
|
+
// Deletes (endpoints found by probing — absent from every UI HAR)
|
|
476
|
+
// ---------------------------------------------------------------------------
|
|
477
|
+
/** Response of `DELETE dxinotify/notify/v1/filters/{orgId}/{name}`. */
|
|
478
|
+
const PolicyDeleteResponseSchema = z.looseObject({
|
|
479
|
+
deletedCount: z.number().describe('1 when the policy was deleted'),
|
|
480
|
+
});
|
|
481
|
+
/** Response of `DELETE dxinotify/notify/v1/templates/{name}/{locale}/{orgId}`. */
|
|
482
|
+
const TemplateDeleteResponseSchema = z.looseObject({
|
|
483
|
+
deletedCount: z.number().describe('Rows removed (3 observed for one template: content plus its link rows)'),
|
|
484
|
+
});
|
|
485
|
+
const ITSM_TEMPLATE_KEYS = new Set([
|
|
486
|
+
'ITSM_ALL_ALARM_TEMPLATE_NAME',
|
|
487
|
+
'ITSM_SERVICE_ALARM_TEMPLATE_NAME',
|
|
488
|
+
'ITSM_SITUATION_TEMPLATE_NAME',
|
|
489
|
+
]);
|
|
490
|
+
/** Who uses a template, computed from the channel and policy lists (not the template's own reverse index, which can lag). */
|
|
491
|
+
function templateUsage(templateName, channels, policies) {
|
|
492
|
+
return {
|
|
493
|
+
channels: channels
|
|
494
|
+
.filter((channel) => (channel.smtpItsmConfigs?.templates ?? []).some((t) => t.templateName === templateName) ||
|
|
495
|
+
(channel.itsmConfig?.PropertyList ?? []).some((p) => ITSM_TEMPLATE_KEYS.has(p.propertyName) && p.propertyValue === templateName))
|
|
496
|
+
.map((channel) => channel.name),
|
|
497
|
+
policies: policies
|
|
498
|
+
.filter((policy) => (policy.linkedEntities ?? []).some((link) => link.messageTemplateName === templateName))
|
|
499
|
+
.map((policy) => policy.name),
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Alarm enrichment rules: the priority-ordered rules of Settings → Alarm
|
|
505
|
+
* Enrichment Rules. Each rule matches alarms with an and/or filter tree and
|
|
506
|
+
* copies a TAS topology attribute (or a literal value) onto one of the
|
|
507
|
+
* alarm's `custom_N` fields.
|
|
508
|
+
*
|
|
509
|
+
* Store: `oi/v2/alarm/enrichment/rules` — `GET` lists, `PUT` saves one rule
|
|
510
|
+
* (no `rule_id` creates, an existing `rule_id` updates in place), `DELETE
|
|
511
|
+
* rules/{rule_id}` removes one, and `PUT rules/preview` runs the rule against
|
|
512
|
+
* recent alarms without persisting anything.
|
|
513
|
+
*
|
|
514
|
+
* Shapes observed in HARs of the demo and lab tenants
|
|
515
|
+
* (alarm-ticket-enrichment{,-2,-3}.har, 2026-09-08).
|
|
516
|
+
*
|
|
517
|
+
* @see {@link EnrichmentCustomFieldSchema} — the registry that binds an
|
|
518
|
+
* attribute name to its `custom_N` field and decides the TAS / CUSTOM arm.
|
|
519
|
+
*/
|
|
520
|
+
/**
|
|
521
|
+
* Conditions the enrichment filter editor offers. Eight string matchers, a
|
|
522
|
+
* subset of the platform filter model's conditions — enrichment filters have
|
|
523
|
+
* no numeric or change-detection operators.
|
|
524
|
+
*/
|
|
525
|
+
const ENRICHMENT_FILTER_CONDITIONS = [
|
|
526
|
+
'equals',
|
|
527
|
+
'not_equals',
|
|
528
|
+
'contains',
|
|
529
|
+
'not_contains',
|
|
530
|
+
'starts_with',
|
|
531
|
+
'not_starts_with',
|
|
532
|
+
'ends_with',
|
|
533
|
+
'not_ends_with',
|
|
534
|
+
];
|
|
535
|
+
/** The two enrichment arms: a TAS topology attribute, or a literal CUSTOM value. */
|
|
536
|
+
const ENRICHMENT_SOURCES = ['TAS', 'CUSTOM'];
|
|
537
|
+
/** The preview windows the editor offers, in seconds. The query param is milliseconds. */
|
|
538
|
+
const ENRICHMENT_PREVIEW_WINDOWS = {
|
|
539
|
+
'1h': 3600,
|
|
540
|
+
'4h': 14400,
|
|
541
|
+
'8h': 28800,
|
|
542
|
+
'24h': 86400,
|
|
543
|
+
'3d': 259200,
|
|
544
|
+
'1w': 604800,
|
|
545
|
+
};
|
|
546
|
+
// ---------------------------------------------------------------------------
|
|
547
|
+
// Wire shapes
|
|
548
|
+
// ---------------------------------------------------------------------------
|
|
549
|
+
const EnrichmentMappingSchema = z.looseObject({
|
|
550
|
+
alarmField: z
|
|
551
|
+
.string()
|
|
552
|
+
.min(1)
|
|
553
|
+
.describe("Target alarm field, always a custom slot ('custom_16'); from the custom-field registry"),
|
|
554
|
+
enrichmentField: z
|
|
555
|
+
.string()
|
|
556
|
+
.describe("Source: a TAS vertex attribute name ('networkInterfaces') or the CUSTOM entry's label"),
|
|
557
|
+
defaultValue: z.string().describe("Value written when the source resolves to nothing; '' for none"),
|
|
558
|
+
});
|
|
559
|
+
const EnrichmentSchema = z.looseObject({
|
|
560
|
+
type: z.enum(ENRICHMENT_SOURCES).describe("'TAS' resolves from the topology graph; 'CUSTOM' writes a literal"),
|
|
561
|
+
filename: z
|
|
562
|
+
.string()
|
|
563
|
+
.nullable()
|
|
564
|
+
.optional()
|
|
565
|
+
.describe('Reserved for CSV-backed CUSTOM enrichment; the UI sends null on save and the server drops it'),
|
|
566
|
+
mappings: z.array(EnrichmentMappingSchema).describe('Mappings of this arm; [] when the arm is unused'),
|
|
567
|
+
});
|
|
568
|
+
const EnrichmentRuleSchema = z.looseObject({
|
|
569
|
+
tenant_id: z.string().describe('Cohort UUID the rule belongs to; server-assigned'),
|
|
570
|
+
rule_id: z.string().describe('Rule UUID; the identifier for detail, update, reorder and delete'),
|
|
571
|
+
rule_name: z.string().describe('Display name; unique per tenant, enforced by the server'),
|
|
572
|
+
priority: z
|
|
573
|
+
.number()
|
|
574
|
+
.describe('Evaluation order, ascending — lower runs first. Seeded from the create timestamp; a reorder ' +
|
|
575
|
+
'writes the midpoint of its new neighbours, hence fractional values'),
|
|
576
|
+
rule_version: z.number().describe('Optimistic version; send the current value, the server increments it'),
|
|
577
|
+
created_by: z.string().optional().describe('Email of the creator'),
|
|
578
|
+
updated_by: z.string().optional().describe('Email of the last editor'),
|
|
579
|
+
created_time: z.number().optional().describe('Epoch milliseconds'),
|
|
580
|
+
updated_time: z.number().optional().describe('Epoch milliseconds'),
|
|
581
|
+
enabled: z.boolean().describe('Whether the rule is evaluated'),
|
|
582
|
+
filter: PolicyFilterExpressionSchema.describe('and/or tree of match atoms over the enrichment field catalog'),
|
|
583
|
+
filterSearchFields: z.array(z.unknown()).optional().describe('UI search state; always [] in captures'),
|
|
584
|
+
enrichments: z.array(EnrichmentSchema).describe('One entry per arm; the UI always sends both TAS and CUSTOM'),
|
|
585
|
+
isComplexFilter: z.boolean().optional().describe('true when the filter was authored in the raw expression editor'),
|
|
586
|
+
});
|
|
587
|
+
const EnrichmentRulesResponseSchema = z.array(EnrichmentRuleSchema);
|
|
588
|
+
/**
|
|
589
|
+
* The body of `PUT oi/v2/alarm/enrichment/rules`. Omitting `rule_id` creates a
|
|
590
|
+
* rule and lets the server seed `priority` from the create time; sending one
|
|
591
|
+
* updates in place, and is also how a reorder writes a new `priority`.
|
|
592
|
+
*/
|
|
593
|
+
const EnrichmentRuleWriteBodySchema = z.looseObject({
|
|
594
|
+
rule_id: z.string().optional().describe('Rule UUID; absent creates, present updates in place'),
|
|
595
|
+
rule_name: z
|
|
596
|
+
.string()
|
|
597
|
+
.min(1)
|
|
598
|
+
.describe('Display name; must be unique in the tenant — a clash is rejected with 400 "Duplicate rule name provided"'),
|
|
599
|
+
enabled: z.boolean().describe('Whether the rule is evaluated'),
|
|
600
|
+
filter: PolicyFilterExpressionSchema.describe('and/or tree of match atoms'),
|
|
601
|
+
isComplexFilter: z.boolean().describe('false for trees built from atoms'),
|
|
602
|
+
enrichments: z.array(EnrichmentSchema).describe('Both arms, each with its mappings ([] when unused)'),
|
|
603
|
+
priority: z.number().optional().describe('Update only: the new evaluation order. Absent on create'),
|
|
604
|
+
rule_version: z.number().optional().describe('Update only: the rule\'s current version, echoed back'),
|
|
605
|
+
tenant_id: z.string().optional().describe('Update only: echoed from the existing rule'),
|
|
606
|
+
created_by: z.string().optional().describe('Update only: echoed from the existing rule'),
|
|
607
|
+
updated_by: z.string().optional().describe('Update only: echoed from the existing rule'),
|
|
608
|
+
created_time: z.number().optional().describe('Update only: echoed from the existing rule'),
|
|
609
|
+
updated_time: z.number().optional().describe('Update only: echoed from the existing rule'),
|
|
610
|
+
filterSearchFields: z.array(z.unknown()).optional().describe('Update only: echoed from the existing rule'),
|
|
611
|
+
});
|
|
612
|
+
/**
|
|
613
|
+
* The response of `PUT oi/v2/alarm/enrichment/rules/preview`. A server-side dry
|
|
614
|
+
* run: it accepts a rule with no `rule_id` and persists nothing.
|
|
615
|
+
*/
|
|
616
|
+
const EnrichmentPreviewResponseSchema = z.looseObject({
|
|
617
|
+
alarmCount: z
|
|
618
|
+
.union([z.string(), z.number()])
|
|
619
|
+
.describe('Matching alarms in the window, as a string in captures ("0")'),
|
|
620
|
+
alarms: z.array(z.looseObject({})).describe('The matched alarms, up to `size`, with the enrichment applied'),
|
|
621
|
+
pageNumber: z.number().nullable().optional().describe('Null in captures'),
|
|
622
|
+
pageSize: z.number().nullable().optional().describe('Null in captures'),
|
|
623
|
+
aggregatedData: z.unknown().optional().describe('Null in captures'),
|
|
624
|
+
itsmEnabled: z.boolean().optional().describe('Whether the tenant has an ITSM integration'),
|
|
625
|
+
});
|
|
626
|
+
/**
|
|
627
|
+
* One entry of the custom-field registry
|
|
628
|
+
* (`oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
629
|
+
* This is what binds a `custom_N` slot to an attribute name and decides which
|
|
630
|
+
* arm a mapping lands in. The `PUT` replaces the whole list.
|
|
631
|
+
*/
|
|
632
|
+
const EnrichmentCustomFieldSchema = z.looseObject({
|
|
633
|
+
field: z.string().describe("The custom slot, 'custom_11' through 'custom_24' in captures"),
|
|
634
|
+
fieldDescription: z
|
|
635
|
+
.string()
|
|
636
|
+
.describe("The attribute name a mapping references as its enrichmentField ('networkInterfaces')"),
|
|
637
|
+
fieldType: z.string().describe("Value type; 'String' in every capture"),
|
|
638
|
+
fieldSource: z.string().describe("'TAS' resolves from the topology graph, 'CUSTOM' holds a literal"),
|
|
639
|
+
});
|
|
640
|
+
const EnrichmentCustomFieldsResponseSchema = z.array(EnrichmentCustomFieldSchema);
|
|
641
|
+
/** `custom_1` … `custom_N`; the only shape the registry and mappings accept. */
|
|
642
|
+
const CUSTOM_FIELD_PATTERN = /^custom_\d+$/;
|
|
643
|
+
/**
|
|
644
|
+
* Resolves attribute names into the two enrichment arms the way the editor
|
|
645
|
+
* does: look the name up as `fieldDescription` in the custom-field registry;
|
|
646
|
+
* found gives the `custom_N` slot and, when `fieldSource` is CUSTOM, the CUSTOM
|
|
647
|
+
* arm; anything else lands in TAS.
|
|
648
|
+
*
|
|
649
|
+
* @remarks Always returns both arms, an empty `mappings` where unused — the
|
|
650
|
+
* shape the UI sends.
|
|
651
|
+
*/
|
|
652
|
+
function resolveEnrichmentMappings(input, registry) {
|
|
653
|
+
const blockers = [];
|
|
654
|
+
const warnings = [];
|
|
655
|
+
const tas = [];
|
|
656
|
+
const custom = [];
|
|
657
|
+
const claimed = new Map();
|
|
658
|
+
for (const attribute of input.attributes) {
|
|
659
|
+
const entry = registry.find((candidate) => candidate.fieldDescription === attribute);
|
|
660
|
+
const override = input.alarmFields?.[attribute];
|
|
661
|
+
if (override !== undefined && !CUSTOM_FIELD_PATTERN.test(override)) {
|
|
662
|
+
blockers.push(`alarmField.${attribute}='${override}' is not a custom slot (expected custom_<n>)`);
|
|
663
|
+
continue;
|
|
664
|
+
}
|
|
665
|
+
const alarmField = override ?? entry?.field;
|
|
666
|
+
if (!alarmField) {
|
|
667
|
+
blockers.push(`'${attribute}' is not in the custom-field registry and no alarmField.${attribute}=custom_<n> was given ` +
|
|
668
|
+
'(see `alarm list-enrichment-custom-fields`)');
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
const previous = claimed.get(alarmField);
|
|
672
|
+
if (previous !== undefined) {
|
|
673
|
+
blockers.push(`${alarmField} is mapped twice, by '${previous}' and '${attribute}'`);
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
claimed.set(alarmField, attribute);
|
|
677
|
+
if (!entry) {
|
|
678
|
+
warnings.push(`'${attribute}' is not in the custom-field registry; the alarm will carry ${alarmField} but nothing ` +
|
|
679
|
+
'labels it — register it with `alarm register-enrichment-custom-field`');
|
|
680
|
+
}
|
|
681
|
+
else if (override !== undefined && override !== entry.field) {
|
|
682
|
+
warnings.push(`'${attribute}' is registered as ${entry.field}; alarmField.${attribute}=${override} overrides that`);
|
|
683
|
+
}
|
|
684
|
+
const mapping = {
|
|
685
|
+
alarmField,
|
|
686
|
+
enrichmentField: attribute,
|
|
687
|
+
defaultValue: input.defaults?.[attribute] ?? '',
|
|
688
|
+
};
|
|
689
|
+
if (entry && entry.fieldSource.toUpperCase() === 'CUSTOM') {
|
|
690
|
+
custom.push(mapping);
|
|
691
|
+
}
|
|
692
|
+
else {
|
|
693
|
+
tas.push(mapping);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
return {
|
|
697
|
+
enrichments: [
|
|
698
|
+
{ type: 'TAS', filename: null, mappings: tas },
|
|
699
|
+
{ type: 'CUSTOM', filename: null, mappings: custom },
|
|
700
|
+
],
|
|
701
|
+
blockers,
|
|
702
|
+
warnings,
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
/** The create body: no `rule_id`, so the server assigns one and seeds `priority`. */
|
|
706
|
+
function toEnrichmentRuleCreateBody(input) {
|
|
707
|
+
return {
|
|
708
|
+
rule_name: input.ruleName,
|
|
709
|
+
enabled: input.enabled ?? true,
|
|
710
|
+
filter: input.filter,
|
|
711
|
+
isComplexFilter: input.isComplexFilter ?? false,
|
|
712
|
+
enrichments: input.enrichments,
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Read-modify-write body for an existing rule: every server-owned field is
|
|
717
|
+
* echoed back, `rule_version` included, and only the patched fields change.
|
|
718
|
+
*
|
|
719
|
+
* @returns `changes` is the human before→after list; `[]` means nothing to save.
|
|
720
|
+
*/
|
|
721
|
+
function buildEnrichmentRuleUpdateBody(existing, patch) {
|
|
722
|
+
const changes = [];
|
|
723
|
+
const ruleName = patch.ruleName ?? existing.rule_name;
|
|
724
|
+
if (patch.ruleName !== undefined && patch.ruleName !== existing.rule_name) {
|
|
725
|
+
changes.push(`name: '${existing.rule_name}' -> '${patch.ruleName}'`);
|
|
726
|
+
}
|
|
727
|
+
const enabled = patch.enabled ?? existing.enabled;
|
|
728
|
+
if (patch.enabled !== undefined && patch.enabled !== existing.enabled) {
|
|
729
|
+
changes.push(`enabled: ${existing.enabled} -> ${patch.enabled}`);
|
|
730
|
+
}
|
|
731
|
+
const priority = patch.priority ?? existing.priority;
|
|
732
|
+
if (patch.priority !== undefined && patch.priority !== existing.priority) {
|
|
733
|
+
changes.push(`priority: ${existing.priority} -> ${patch.priority}`);
|
|
734
|
+
}
|
|
735
|
+
const filter = patch.filter ?? existing.filter;
|
|
736
|
+
if (patch.filter !== undefined) {
|
|
737
|
+
changes.push('filter: replaced');
|
|
738
|
+
}
|
|
739
|
+
const enrichments = patch.enrichments ?? existing.enrichments;
|
|
740
|
+
if (patch.enrichments !== undefined) {
|
|
741
|
+
changes.push('enrichments: replaced');
|
|
742
|
+
}
|
|
743
|
+
const body = {
|
|
744
|
+
...existing,
|
|
745
|
+
rule_name: ruleName,
|
|
746
|
+
enabled,
|
|
747
|
+
priority,
|
|
748
|
+
filter,
|
|
749
|
+
enrichments,
|
|
750
|
+
isComplexFilter: existing.isComplexFilter ?? false,
|
|
751
|
+
};
|
|
752
|
+
return { body, changes };
|
|
753
|
+
}
|
|
754
|
+
// ---------------------------------------------------------------------------
|
|
755
|
+
// Ordering
|
|
756
|
+
// ---------------------------------------------------------------------------
|
|
757
|
+
/**
|
|
758
|
+
* Evaluation order: ascending `priority`, the way the editor sorts. The list
|
|
759
|
+
* endpoint returns rules unsorted, so every consumer must sort for itself.
|
|
760
|
+
*/
|
|
761
|
+
function sortRulesByPriority(rules) {
|
|
762
|
+
return [...rules].sort((left, right) => left.priority - right.priority);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Works out the `priority` that moves `ruleId` to the requested destination:
|
|
766
|
+
* the midpoint of its new neighbours, one below the head, or one above the
|
|
767
|
+
* tail. Exactly one of `position` / `before` / `after` / `priority` must be set.
|
|
768
|
+
*
|
|
769
|
+
* @remarks A reorder writes only the moved rule — priorities of its neighbours
|
|
770
|
+
* are left alone, which is why they drift fractional over time.
|
|
771
|
+
*/
|
|
772
|
+
function planEnrichmentReorder(rules, ruleId, target) {
|
|
773
|
+
const blockers = [];
|
|
774
|
+
const sorted = sortRulesByPriority(rules);
|
|
775
|
+
const fromIndex = sorted.findIndex((rule) => rule.rule_id === ruleId);
|
|
776
|
+
const current = sorted[fromIndex];
|
|
777
|
+
const fromPosition = fromIndex + 1;
|
|
778
|
+
if (!current) {
|
|
779
|
+
return { priority: 0, fromPosition: 0, toPosition: 0, blockers: [`no enrichment rule with id '${ruleId}'`] };
|
|
780
|
+
}
|
|
781
|
+
const given = ['position', 'before', 'after', 'priority'].filter((key) => target[key] !== undefined);
|
|
782
|
+
if (given.length === 0) {
|
|
783
|
+
blockers.push('pass exactly one of position=, before=, after= or priority=');
|
|
784
|
+
return { priority: current.priority, fromPosition, toPosition: fromPosition, blockers };
|
|
785
|
+
}
|
|
786
|
+
if (given.length > 1) {
|
|
787
|
+
blockers.push(`pass exactly one destination, not ${given.join(' + ')}`);
|
|
788
|
+
return { priority: current.priority, fromPosition, toPosition: fromPosition, blockers };
|
|
789
|
+
}
|
|
790
|
+
const others = sorted.filter((rule) => rule.rule_id !== ruleId);
|
|
791
|
+
if (target.priority !== undefined) {
|
|
792
|
+
const wanted = target.priority;
|
|
793
|
+
const collision = others.find((rule) => rule.priority === wanted);
|
|
794
|
+
if (collision) {
|
|
795
|
+
blockers.push(`priority ${wanted} is already held by '${collision.rule_name}' (${collision.rule_id})`);
|
|
796
|
+
}
|
|
797
|
+
const toPosition = others.filter((rule) => rule.priority < wanted).length + 1;
|
|
798
|
+
return { priority: wanted, fromPosition, toPosition, blockers };
|
|
799
|
+
}
|
|
800
|
+
if (others.length === 0) {
|
|
801
|
+
blockers.push('there is only one enrichment rule — nothing to reorder');
|
|
802
|
+
return { priority: current.priority, fromPosition, toPosition: fromPosition, blockers };
|
|
803
|
+
}
|
|
804
|
+
let targetIndex;
|
|
805
|
+
if (target.position !== undefined) {
|
|
806
|
+
if (!Number.isInteger(target.position) || target.position < 1 || target.position > sorted.length) {
|
|
807
|
+
blockers.push(`position ${target.position} is out of range (1..${sorted.length})`);
|
|
808
|
+
return { priority: current.priority, fromPosition, toPosition: fromPosition, blockers };
|
|
809
|
+
}
|
|
810
|
+
targetIndex = target.position - 1;
|
|
811
|
+
}
|
|
812
|
+
else {
|
|
813
|
+
const anchorId = target.before ?? target.after;
|
|
814
|
+
const anchorIndex = others.findIndex((rule) => rule.rule_id === anchorId);
|
|
815
|
+
if (anchorIndex < 0) {
|
|
816
|
+
const label = target.before !== undefined ? 'before' : 'after';
|
|
817
|
+
const reason = sorted.some((rule) => rule.rule_id === anchorId)
|
|
818
|
+
? `${label}='${anchorId}' is the rule being moved`
|
|
819
|
+
: `no enrichment rule with id '${anchorId}' for ${label}=`;
|
|
820
|
+
blockers.push(reason);
|
|
821
|
+
return { priority: current.priority, fromPosition, toPosition: fromPosition, blockers };
|
|
822
|
+
}
|
|
823
|
+
targetIndex = target.before !== undefined ? anchorIndex : anchorIndex + 1;
|
|
824
|
+
}
|
|
825
|
+
const previous = others[targetIndex - 1];
|
|
826
|
+
const next = others[targetIndex];
|
|
827
|
+
let priority;
|
|
828
|
+
if (!previous && next) {
|
|
829
|
+
priority = next.priority - 1;
|
|
830
|
+
}
|
|
831
|
+
else if (previous && !next) {
|
|
832
|
+
priority = previous.priority + 1;
|
|
833
|
+
}
|
|
834
|
+
else if (previous && next) {
|
|
835
|
+
priority = (previous.priority + next.priority) / 2;
|
|
836
|
+
if (priority === previous.priority || priority === next.priority) {
|
|
837
|
+
blockers.push(`no room between priority ${previous.priority} and ${next.priority} — set priority= explicitly ` +
|
|
838
|
+
'or renumber the rules in the UI');
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
else {
|
|
842
|
+
priority = current.priority;
|
|
843
|
+
}
|
|
844
|
+
if (others.some((rule) => rule.priority === priority)) {
|
|
845
|
+
blockers.push(`the computed priority ${priority} collides with an existing rule — set priority= explicitly`);
|
|
846
|
+
}
|
|
847
|
+
return { priority, fromPosition, toPosition: targetIndex + 1, blockers };
|
|
848
|
+
}
|
|
849
|
+
|
|
248
850
|
var AlarmEnrichment;
|
|
249
851
|
(function (AlarmEnrichment) {
|
|
250
852
|
/** @internal */
|
|
@@ -523,261 +1125,6 @@ var AlarmEnrichment;
|
|
|
523
1125
|
];
|
|
524
1126
|
})(AlarmEnrichment || (AlarmEnrichment = {}));
|
|
525
1127
|
|
|
526
|
-
/**
|
|
527
|
-
* Write bodies for notification policies (`dxinotify/notify/v1/filters`) and
|
|
528
|
-
* message templates (`dxinotify/notify/v1/templates`) — the key sets the UI
|
|
529
|
-
* sends, observed in HAR captures on the lab tenant. Both endpoints use one
|
|
530
|
-
* `PUT` for create and update: policies discriminate on `id` (0 creates),
|
|
531
|
-
* templates on `oldTemplateName` (null creates, the current name updates).
|
|
532
|
-
* The read shapes carry more (author, timestamps, contentVersion, …); the
|
|
533
|
-
* projections below drop them.
|
|
534
|
-
*/
|
|
535
|
-
const PolicyLinkedEntitySchema = z.looseObject({
|
|
536
|
-
channelName: z.string().describe('Channel the policy delivers to'),
|
|
537
|
-
messageTemplateName: z
|
|
538
|
-
.string()
|
|
539
|
-
.nullable()
|
|
540
|
-
.optional()
|
|
541
|
-
.describe('Template override for this channel; "" (write) / null (read) for the channel default'),
|
|
542
|
-
});
|
|
543
|
-
const PolicyWriteBodySchema = z.looseObject({
|
|
544
|
-
id: z.number().describe('Policy id; 0 creates, an existing id updates in place'),
|
|
545
|
-
orgId: z.string().describe('Tenant common name; stamped by the service'),
|
|
546
|
-
keyLevel: z.number().describe('1 for user policies (the built-in default policy reads -1)'),
|
|
547
|
-
name: z.string().min(1).describe('Policy (filter) name; unique per tenant'),
|
|
548
|
-
filterType: z.string().describe('"AUTOMATIC" or "MANUAL"'),
|
|
549
|
-
reminderTime: z.number().describe('Reminder interval; 0 = none'),
|
|
550
|
-
reminderTimeUnit: z.string().describe('Reminder unit, e.g. HOURS'),
|
|
551
|
-
channelNames: z.array(z.string()).describe('Channels the policy delivers to, by name'),
|
|
552
|
-
active: z.boolean().describe('true = enabled'),
|
|
553
|
-
description: z.string().describe('Free-text description'),
|
|
554
|
-
alarmCategory: z.string().describe('rawAlarm, service, or SituationCluster'),
|
|
555
|
-
serviceAlarmAction: z.boolean().describe('Service-alarm action flag'),
|
|
556
|
-
filterExpressionV1: z.unknown().describe('Opaque alarm-match expression tree, round-tripped verbatim'),
|
|
557
|
-
isComplexFilter: z.boolean().describe('Complex-filter flag'),
|
|
558
|
-
jobInfo: z.unknown().nullable().optional().describe('null on UI writes'),
|
|
559
|
-
linkedEntities: z.array(PolicyLinkedEntitySchema).describe('Channel ↔ template links'),
|
|
560
|
-
linkedMappings: z.array(z.unknown()).optional().describe('[] on UI writes'),
|
|
561
|
-
linkedActions: z.array(z.unknown()).optional().describe('Alarm actions; [] when none'),
|
|
562
|
-
});
|
|
563
|
-
const PolicyWriteResponseSchema = z.looseObject({
|
|
564
|
-
newContentVersion: z.number().describe('0 for a create, previous + 1 for an update'),
|
|
565
|
-
});
|
|
566
|
-
const TemplateWriteBodySchema = z.looseObject({
|
|
567
|
-
orgId: z.string().describe('Tenant common name; stamped by the service'),
|
|
568
|
-
keyLevel: z.number().describe('Always 1'),
|
|
569
|
-
defaultTemplate: z
|
|
570
|
-
.union([z.boolean(), z.string()])
|
|
571
|
-
.describe('Built-in platform template flag; false for user templates (the read shape carries "true"/"false" strings)'),
|
|
572
|
-
templateName: z.string().min(1).describe('Template name; unique per tenant'),
|
|
573
|
-
oldTemplateName: z
|
|
574
|
-
.string()
|
|
575
|
-
.nullable()
|
|
576
|
-
.describe('null creates; the current name updates in place (a different name renames)'),
|
|
577
|
-
contentVersion: z.number().describe('0 on create; the current version on update'),
|
|
578
|
-
locale: z.string().describe('Locale; "en_US" in practice'),
|
|
579
|
-
subjectTemplate: z.string().describe('Subject line template'),
|
|
580
|
-
senderNameTemplate: z.string().describe('Sender display name'),
|
|
581
|
-
imageUsage: z.number().describe('0 in practice'),
|
|
582
|
-
channelNames: z.array(z.string()).describe('Channels using this template (reverse index); [] on create'),
|
|
583
|
-
useHtml: z.boolean().describe('Render templateHtml instead of templateText'),
|
|
584
|
-
templateText: z.string().describe('Body template, base64-encoded (stored and returned encoded)'),
|
|
585
|
-
templateHtml: z.string().describe('HTML body; "" when unused'),
|
|
586
|
-
linkedEntities: z.array(z.unknown()).describe('Policy links (reverse index); [] on create'),
|
|
587
|
-
});
|
|
588
|
-
const TemplateWriteResponseSchema = z.looseObject({
|
|
589
|
-
existingTemplateUpdated: z.boolean().describe('true when an existing template was updated'),
|
|
590
|
-
newContentVersion: z.number().describe('Content version after the save'),
|
|
591
|
-
});
|
|
592
|
-
/** Built-in / platform-managed policies read back with author SYSTEM (or none, for the default policy). */
|
|
593
|
-
function isBuiltInPolicy(policy) {
|
|
594
|
-
return policy.author === undefined || policy.author === null || policy.author === 'SYSTEM';
|
|
595
|
-
}
|
|
596
|
-
/** Built-in templates are flagged defaultTemplate; platform-provided ones without the flag have no author. */
|
|
597
|
-
function isBuiltInTemplate(template) {
|
|
598
|
-
return (template.defaultTemplate === true ||
|
|
599
|
-
template.defaultTemplate === 'true' ||
|
|
600
|
-
template.author === undefined ||
|
|
601
|
-
template.author === null);
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* Projects a policy as read from a tenant (or an export file) onto the write
|
|
605
|
-
* body the UI sends: read-only fields dropped, `id`/`orgId` replaced with the
|
|
606
|
-
* target's, `jobInfo` null, links reduced to channel + template names.
|
|
607
|
-
*/
|
|
608
|
-
function toPolicyWriteBody(source, opts) {
|
|
609
|
-
const keyLevel = typeof source.keyLevel === 'number' && source.keyLevel >= 0 ? source.keyLevel : 1;
|
|
610
|
-
return {
|
|
611
|
-
id: opts.id,
|
|
612
|
-
orgId: opts.orgId,
|
|
613
|
-
keyLevel,
|
|
614
|
-
name: source.name,
|
|
615
|
-
filterType: source.filterType ?? 'AUTOMATIC',
|
|
616
|
-
reminderTime: source.reminderTime ?? 0,
|
|
617
|
-
reminderTimeUnit: source.reminderTimeUnit ?? 'HOURS',
|
|
618
|
-
channelNames: source.channelNames ?? [],
|
|
619
|
-
active: source.active ?? true,
|
|
620
|
-
description: source.description ?? '',
|
|
621
|
-
alarmCategory: source.alarmCategory ?? 'rawAlarm',
|
|
622
|
-
serviceAlarmAction: source.serviceAlarmAction ?? false,
|
|
623
|
-
filterExpressionV1: source.filterExpressionV1,
|
|
624
|
-
isComplexFilter: source.isComplexFilter ?? false,
|
|
625
|
-
jobInfo: null,
|
|
626
|
-
linkedEntities: (source.linkedEntities ?? []).map((link) => ({
|
|
627
|
-
channelName: link.channelName,
|
|
628
|
-
messageTemplateName: link.messageTemplateName ?? '',
|
|
629
|
-
})),
|
|
630
|
-
linkedMappings: [],
|
|
631
|
-
linkedActions: source.linkedActions ?? [],
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Projects a template as read from a tenant (or an export file) onto the write
|
|
636
|
-
* body the UI sends. `oldTemplateName` null creates; pass the target's current
|
|
637
|
-
* name and contentVersion to update in place. templateText stays base64.
|
|
638
|
-
*/
|
|
639
|
-
function toTemplateWriteBody(source, opts) {
|
|
640
|
-
return {
|
|
641
|
-
orgId: opts.orgId,
|
|
642
|
-
keyLevel: 1,
|
|
643
|
-
defaultTemplate: opts.defaultTemplate ?? false,
|
|
644
|
-
templateName: source.templateName,
|
|
645
|
-
oldTemplateName: opts.oldTemplateName,
|
|
646
|
-
contentVersion: opts.contentVersion,
|
|
647
|
-
locale: source.locale ?? 'en_US',
|
|
648
|
-
subjectTemplate: source.subjectTemplate ?? '',
|
|
649
|
-
senderNameTemplate: source.senderNameTemplate ?? '',
|
|
650
|
-
imageUsage: source.imageUsage ?? 0,
|
|
651
|
-
channelNames: opts.channelNames ?? [],
|
|
652
|
-
useHtml: source.useHtml ?? false,
|
|
653
|
-
templateText: source.templateText ?? '',
|
|
654
|
-
templateHtml: source.templateHtml ?? '',
|
|
655
|
-
linkedEntities: [],
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
// ---------------------------------------------------------------------------
|
|
659
|
-
// Policy filter expressions
|
|
660
|
-
// ---------------------------------------------------------------------------
|
|
661
|
-
const POLICY_ALARM_CATEGORIES = ['rawAlarm', 'service', 'SituationCluster'];
|
|
662
|
-
/**
|
|
663
|
-
* Conditions accepted in policy filter atoms. `equals`, `not_equals`,
|
|
664
|
-
* `greater_than`, `increases`, and `changed` are observed in UI-authored
|
|
665
|
-
* policies; the string matchers come from the platform's shared filter model.
|
|
666
|
-
*/
|
|
667
|
-
const POLICY_FILTER_CONDITIONS = [
|
|
668
|
-
'equals',
|
|
669
|
-
'not_equals',
|
|
670
|
-
'contains',
|
|
671
|
-
'not_contains',
|
|
672
|
-
'starts_with',
|
|
673
|
-
'not_starts_with',
|
|
674
|
-
'ends_with',
|
|
675
|
-
'not_ends_with',
|
|
676
|
-
'greater_than',
|
|
677
|
-
'less_than',
|
|
678
|
-
'increases',
|
|
679
|
-
'decreases',
|
|
680
|
-
'changed',
|
|
681
|
-
];
|
|
682
|
-
const PolicyFilterAtomSchema = z.looseObject({
|
|
683
|
-
field: z.string().min(1).describe('Alarm field name (see the per-category field catalog)'),
|
|
684
|
-
fieldDescription: z.string().optional().describe('Human label the UI stores next to the field'),
|
|
685
|
-
condition: z.string().describe('One of the policy filter conditions, e.g. equals, not_equals, greater_than, changed'),
|
|
686
|
-
value: z
|
|
687
|
-
.union([z.string(), z.boolean(), z.number()])
|
|
688
|
-
.describe('Comparison value; "" for changed, the field name itself for increases/decreases'),
|
|
689
|
-
});
|
|
690
|
-
const PolicyFilterExpressionLazy = z.lazy(() => z.union([
|
|
691
|
-
PolicyFilterAtomSchema,
|
|
692
|
-
z.looseObject({ and: z.looseObject({ expressions: z.array(PolicyFilterExpressionLazy) }) }),
|
|
693
|
-
z.looseObject({ or: z.looseObject({ expressions: z.array(PolicyFilterExpressionLazy) }) }),
|
|
694
|
-
]));
|
|
695
|
-
/** Recursive and/or tree of {@link PolicyFilterAtomSchema} atoms (`filterExpressionV1`). */
|
|
696
|
-
const PolicyFilterExpressionSchema = PolicyFilterExpressionLazy;
|
|
697
|
-
/**
|
|
698
|
-
* The atoms the UI prepends for a category so the policy only sees its own
|
|
699
|
-
* alarm kind: rawAlarm and SituationCluster are observed; service mirrors them.
|
|
700
|
-
*/
|
|
701
|
-
function policyCategoryGuard(category) {
|
|
702
|
-
switch (category) {
|
|
703
|
-
case 'rawAlarm':
|
|
704
|
-
return [{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'not_equals', value: 'Service' }];
|
|
705
|
-
case 'service':
|
|
706
|
-
return [{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'equals', value: 'Service' }];
|
|
707
|
-
case 'SituationCluster':
|
|
708
|
-
return [
|
|
709
|
-
{ field: 'alarmType', fieldDescription: 'Alarm Type', condition: 'equals', value: 'SituationCluster' },
|
|
710
|
-
{ field: 'isOrphan', fieldDescription: 'Is Orphan', condition: 'equals', value: false },
|
|
711
|
-
];
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Builds `filterExpressionV1` the way the UI does: an outer AND of the
|
|
716
|
-
* category guard group and the user's atoms (AND-ed). No atoms → guard only.
|
|
717
|
-
*/
|
|
718
|
-
function buildPolicyFilterExpression(category, atoms) {
|
|
719
|
-
const guard = { and: { expressions: policyCategoryGuard(category) } };
|
|
720
|
-
if (atoms.length === 0) {
|
|
721
|
-
return guard;
|
|
722
|
-
}
|
|
723
|
-
return { and: { expressions: [guard, { and: { expressions: atoms } }] } };
|
|
724
|
-
}
|
|
725
|
-
/** Flattens an expression into its atoms (for previews and field checks). */
|
|
726
|
-
function policyFilterAtoms(expression) {
|
|
727
|
-
if ('condition' in expression) {
|
|
728
|
-
return [expression];
|
|
729
|
-
}
|
|
730
|
-
if ('and' in expression) {
|
|
731
|
-
return expression.and.expressions.flatMap(policyFilterAtoms);
|
|
732
|
-
}
|
|
733
|
-
if ('or' in expression) {
|
|
734
|
-
return expression.or.expressions.flatMap(policyFilterAtoms);
|
|
735
|
-
}
|
|
736
|
-
return [];
|
|
737
|
-
}
|
|
738
|
-
/** One entry of the per-category alarm field catalog the policy editor offers. */
|
|
739
|
-
const AlarmFilterFieldSchema = z.looseObject({
|
|
740
|
-
field: z.string().describe('Field name to use in filter atoms'),
|
|
741
|
-
fieldDescription: z.string().describe('Human label'),
|
|
742
|
-
values: z.array(z.string()).describe('Closed vocabulary when non-empty (e.g. severity levels)'),
|
|
743
|
-
fieldType: z.string().describe('String, Number, …'),
|
|
744
|
-
});
|
|
745
|
-
const AlarmFilterFieldsResponseSchema = z.array(AlarmFilterFieldSchema);
|
|
746
|
-
/** The catalog endpoint per alarm category (`GET`, bare array). */
|
|
747
|
-
const ALARM_FILTER_FIELD_PATHS = {
|
|
748
|
-
rawAlarm: 'oi/v2/api/normalizedalarms/fields',
|
|
749
|
-
service: 'oi/v2/api/dxservicealarms/fields',
|
|
750
|
-
SituationCluster: 'oi/v2/api/dxiclusteralarms/fields',
|
|
751
|
-
};
|
|
752
|
-
// ---------------------------------------------------------------------------
|
|
753
|
-
// Deletes (endpoints found by probing — absent from every UI HAR)
|
|
754
|
-
// ---------------------------------------------------------------------------
|
|
755
|
-
/** Response of `DELETE dxinotify/notify/v1/filters/{orgId}/{name}`. */
|
|
756
|
-
const PolicyDeleteResponseSchema = z.looseObject({
|
|
757
|
-
deletedCount: z.number().describe('1 when the policy was deleted'),
|
|
758
|
-
});
|
|
759
|
-
/** Response of `DELETE dxinotify/notify/v1/templates/{name}/{locale}/{orgId}`. */
|
|
760
|
-
const TemplateDeleteResponseSchema = z.looseObject({
|
|
761
|
-
deletedCount: z.number().describe('Rows removed (3 observed for one template: content plus its link rows)'),
|
|
762
|
-
});
|
|
763
|
-
const ITSM_TEMPLATE_KEYS = new Set([
|
|
764
|
-
'ITSM_ALL_ALARM_TEMPLATE_NAME',
|
|
765
|
-
'ITSM_SERVICE_ALARM_TEMPLATE_NAME',
|
|
766
|
-
'ITSM_SITUATION_TEMPLATE_NAME',
|
|
767
|
-
]);
|
|
768
|
-
/** Who uses a template, computed from the channel and policy lists (not the template's own reverse index, which can lag). */
|
|
769
|
-
function templateUsage(templateName, channels, policies) {
|
|
770
|
-
return {
|
|
771
|
-
channels: channels
|
|
772
|
-
.filter((channel) => (channel.smtpItsmConfigs?.templates ?? []).some((t) => t.templateName === templateName) ||
|
|
773
|
-
(channel.itsmConfig?.PropertyList ?? []).some((p) => ITSM_TEMPLATE_KEYS.has(p.propertyName) && p.propertyValue === templateName))
|
|
774
|
-
.map((channel) => channel.name),
|
|
775
|
-
policies: policies
|
|
776
|
-
.filter((policy) => (policy.linkedEntities ?? []).some((link) => link.messageTemplateName === templateName))
|
|
777
|
-
.map((policy) => policy.name),
|
|
778
|
-
};
|
|
779
|
-
}
|
|
780
|
-
|
|
781
1128
|
var PlatformFilters;
|
|
782
1129
|
(function (PlatformFilters) {
|
|
783
1130
|
PlatformFilters.ValidFieldConditions = [
|
|
@@ -28296,6 +28643,146 @@ function toItsmTestConnectionRequest(properties) {
|
|
|
28296
28643
|
return request;
|
|
28297
28644
|
}
|
|
28298
28645
|
|
|
28646
|
+
/**
|
|
28647
|
+
* Ticket enrichment rules: the per-ITSM-channel maps of Settings → Ticket
|
|
28648
|
+
* Enrichment Rules. Each rule sends alarm fields into service-desk fields
|
|
28649
|
+
* when a ticket is opened (e.g. the alarm's `startTime` into ServiceNow's
|
|
28650
|
+
* `opened_at`), or writes a literal.
|
|
28651
|
+
*
|
|
28652
|
+
* Store: `dxinotify/notify/v1/customMappings` — `GET /{orgId}` lists,
|
|
28653
|
+
* `PUT` saves one rule (`id: 0` creates, an existing id updates in place),
|
|
28654
|
+
* `DELETE /{orgId}/{id}` removes one. The list endpoint returns a bare `{}`
|
|
28655
|
+
* on a tenant with no rules, not `{ customMappings: [] }`.
|
|
28656
|
+
*
|
|
28657
|
+
* Shapes observed in HARs of the demo and lab tenants
|
|
28658
|
+
* (alarm-ticket-enrichment{,-2}.har, 2026-09-08), plus a live probe of the
|
|
28659
|
+
* alarm-type vocabulary against the lab tenant.
|
|
28660
|
+
*/
|
|
28661
|
+
/** The three alarm kinds a rule can enrich tickets for. */
|
|
28662
|
+
const TICKET_ENRICHMENT_ALARM_TYPES = ['all_alarms', 'service_alarms', 'situations'];
|
|
28663
|
+
/**
|
|
28664
|
+
* The alarm-field catalog codes each alarm type maps to. An alarm field is
|
|
28665
|
+
* only usable in a rule when its own `alarmType` array carries the code for
|
|
28666
|
+
* the rule's type — the server answers 400 otherwise, with no explanation.
|
|
28667
|
+
* (Probed on the lab tenant: `startTime` is ALARMS_ALL + SITUATIONS, so a
|
|
28668
|
+
* `service_alarms` rule mapping it is rejected; `acknowledged`, which is
|
|
28669
|
+
* ALARMS_ALL + ALARMS_SERVICE, is accepted.)
|
|
28670
|
+
*/
|
|
28671
|
+
const TICKET_ENRICHMENT_FIELD_CODES = {
|
|
28672
|
+
all_alarms: 'ALARMS_ALL',
|
|
28673
|
+
service_alarms: 'ALARMS_SERVICE',
|
|
28674
|
+
situations: 'SITUATIONS',
|
|
28675
|
+
};
|
|
28676
|
+
// ---------------------------------------------------------------------------
|
|
28677
|
+
// Wire shapes
|
|
28678
|
+
// ---------------------------------------------------------------------------
|
|
28679
|
+
const TicketEnrichmentMappingSchema = z.looseObject({
|
|
28680
|
+
svcDeskField: z
|
|
28681
|
+
.string()
|
|
28682
|
+
.min(1)
|
|
28683
|
+
.describe("Service-desk field to fill; the `mappedTo` of a channel's field catalog ('opened_at')"),
|
|
28684
|
+
alarmField: z
|
|
28685
|
+
.looseObject({
|
|
28686
|
+
title: z.string().describe("Human label of the alarm field ('StartTime')"),
|
|
28687
|
+
value: z.string().describe("Alarm field name ('startTime'); '' when only a literal is sent"),
|
|
28688
|
+
})
|
|
28689
|
+
.describe('Alarm field the value comes from'),
|
|
28690
|
+
customization: z.string().describe("Literal appended or sent instead of the alarm field; '' for none"),
|
|
28691
|
+
});
|
|
28692
|
+
const TicketEnrichmentRuleSchema = z.looseObject({
|
|
28693
|
+
id: z.number().describe('Rule id; the identifier for detail and delete'),
|
|
28694
|
+
orgId: z.string().describe('Tenant common name (orgId); stamped by the service on write'),
|
|
28695
|
+
keyLevel: z.number().describe('Tenant key level; 1 in every capture'),
|
|
28696
|
+
name: z.string().describe('Display name; unique per tenant, enforced by the server'),
|
|
28697
|
+
description: z.string().optional().describe('Free-text description'),
|
|
28698
|
+
contentVersion: z.number().describe('Optimistic version; send the current value, the server increments it'),
|
|
28699
|
+
alarmType: z.string().describe("Which alarms the rule applies to: all_alarms, service_alarms or situations"),
|
|
28700
|
+
author: z.string().optional().describe('Display name of the last editor'),
|
|
28701
|
+
svcDeskType: z.string().describe("The channel's service-desk product ('ServiceNow')"),
|
|
28702
|
+
created: z.string().nullable().optional().describe('ISO-8601 creation timestamp'),
|
|
28703
|
+
lastUpdated: z.string().nullable().optional().describe('ISO-8601 update timestamp'),
|
|
28704
|
+
mappings: z.array(TicketEnrichmentMappingSchema).describe('Alarm field to service-desk field maps'),
|
|
28705
|
+
linkedPolicies: z.array(z.unknown()).optional().describe('Notification policies referencing the rule; [] in captures'),
|
|
28706
|
+
channelId: z.number().describe('Id of the ITSM channel the rule belongs to'),
|
|
28707
|
+
cohortId: z.string().optional().describe('Cohort UUID; server-assigned on write'),
|
|
28708
|
+
});
|
|
28709
|
+
/** `GET dxinotify/notify/v1/customMappings/{orgId}`. A tenant with no rules returns a bare `{}`. */
|
|
28710
|
+
const TicketEnrichmentListResponseSchema = z.looseObject({
|
|
28711
|
+
customMappings: z.array(TicketEnrichmentRuleSchema).optional().describe('The rules; absent when there are none'),
|
|
28712
|
+
});
|
|
28713
|
+
/** The body of `PUT dxinotify/notify/v1/customMappings`. `id: 0` creates. */
|
|
28714
|
+
const TicketEnrichmentWriteBodySchema = z.looseObject({
|
|
28715
|
+
id: z.number().describe('Rule id. 0 creates a new rule; an existing id updates it in place'),
|
|
28716
|
+
orgId: z.string().describe('Tenant common name (orgId); stamped by the service on write'),
|
|
28717
|
+
keyLevel: z.number().describe('Tenant key level; always 1'),
|
|
28718
|
+
name: z
|
|
28719
|
+
.string()
|
|
28720
|
+
.min(1)
|
|
28721
|
+
.describe('Display name; must be unique in the tenant — a clash is rejected with a 500 naming the existing entity'),
|
|
28722
|
+
description: z.string().describe("Free-text description; '' for none"),
|
|
28723
|
+
contentVersion: z.number().describe('Current version on update, 1 on create; the server increments it'),
|
|
28724
|
+
alarmType: z.enum(TICKET_ENRICHMENT_ALARM_TYPES).describe('Which alarms the rule applies to'),
|
|
28725
|
+
svcDeskType: z.string().describe("The channel's service-desk product, echoed from the channel"),
|
|
28726
|
+
created: z.string().nullable().describe('Echoed on update, null on create'),
|
|
28727
|
+
linkedPolicies: z.array(z.unknown()).describe('Notification policies referencing the rule; [] on create'),
|
|
28728
|
+
channelId: z.number().describe('Id of the ITSM channel the rule belongs to'),
|
|
28729
|
+
mappings: z.array(TicketEnrichmentMappingSchema).min(1).describe('At least one mapping is required'),
|
|
28730
|
+
});
|
|
28731
|
+
/** `PUT dxinotify/notify/v1/customMappings` — the persisted rule, including its new id on create. */
|
|
28732
|
+
const TicketEnrichmentWriteResponseSchema = z.looseObject({
|
|
28733
|
+
returnValue: z
|
|
28734
|
+
.looseObject({ message: z.string().describe("'insert was successful' / 'update was successful'") })
|
|
28735
|
+
.optional()
|
|
28736
|
+
.describe('Server-side outcome message'),
|
|
28737
|
+
customMapping: TicketEnrichmentRuleSchema.optional().describe('The persisted rule, with its id'),
|
|
28738
|
+
});
|
|
28739
|
+
/**
|
|
28740
|
+
* One entry of `GET oi/v2/tenantmgmtservice/properties?channelId=<id>`: the
|
|
28741
|
+
* service-desk field catalog of one ITSM channel. `mappedTo` is the value a
|
|
28742
|
+
* mapping's `svcDeskField` takes.
|
|
28743
|
+
*/
|
|
28744
|
+
const ServiceDeskFieldSchema = z.looseObject({
|
|
28745
|
+
name: z.string().describe("Internal name of the field ('assigneeGroup')"),
|
|
28746
|
+
mappedTo: z.string().describe("The service-desk field a mapping targets ('assignment_group')"),
|
|
28747
|
+
description: z.string().optional().describe('Human description of the field'),
|
|
28748
|
+
dataType: z.string().optional().describe("Value type ('string', 'datetime')"),
|
|
28749
|
+
default: z.string().optional().describe('Default value the service desk applies'),
|
|
28750
|
+
custom: z.boolean().optional().describe('true for tenant-defined fields, false for product fields'),
|
|
28751
|
+
possibleValues: z.array(z.unknown()).optional().describe('Closed vocabulary when present'),
|
|
28752
|
+
});
|
|
28753
|
+
const ServiceDeskFieldsResponseSchema = z.array(ServiceDeskFieldSchema);
|
|
28754
|
+
/**
|
|
28755
|
+
* One entry of
|
|
28756
|
+
* `GET oi/v2/api/alarm/messageTemplate/fields?usedInTicketEnrichment=true`:
|
|
28757
|
+
* the alarm fields a ticket enrichment rule can read.
|
|
28758
|
+
*/
|
|
28759
|
+
const TicketEnrichmentAlarmFieldSchema = z.looseObject({
|
|
28760
|
+
alarmFieldName: z.string().describe("Alarm field name a mapping reads ('startTime')"),
|
|
28761
|
+
messageTemplateText: z.string().describe("Human label stored as the mapping's alarmField.title"),
|
|
28762
|
+
alarmType: z
|
|
28763
|
+
.array(z.string())
|
|
28764
|
+
.describe('Catalog codes the field is valid for; must contain the rule type\'s code or the save is rejected'),
|
|
28765
|
+
description: z.string().optional().describe('Free-text description; empty in captures'),
|
|
28766
|
+
});
|
|
28767
|
+
const TicketEnrichmentAlarmFieldsResponseSchema = z.array(TicketEnrichmentAlarmFieldSchema);
|
|
28768
|
+
/** The create body: `id: 0`, `created: null`, `contentVersion: 1`. */
|
|
28769
|
+
function toTicketEnrichmentWriteBody(input) {
|
|
28770
|
+
return {
|
|
28771
|
+
id: 0,
|
|
28772
|
+
orgId: '',
|
|
28773
|
+
keyLevel: 1,
|
|
28774
|
+
name: input.name,
|
|
28775
|
+
description: input.description ?? '',
|
|
28776
|
+
contentVersion: 1,
|
|
28777
|
+
alarmType: input.alarmType ?? 'all_alarms',
|
|
28778
|
+
svcDeskType: input.svcDeskType,
|
|
28779
|
+
created: null,
|
|
28780
|
+
linkedPolicies: [],
|
|
28781
|
+
channelId: input.channelId,
|
|
28782
|
+
mappings: input.mappings,
|
|
28783
|
+
};
|
|
28784
|
+
}
|
|
28785
|
+
|
|
28299
28786
|
// these aren't really private, but nor are they really useful to document
|
|
28300
28787
|
|
|
28301
28788
|
/**
|
|
@@ -66843,9 +67330,126 @@ class AlarmService {
|
|
|
66843
67330
|
mapAlarms(alarmAllPage.alarms);
|
|
66844
67331
|
return alarmIdMap;
|
|
66845
67332
|
}
|
|
66846
|
-
/**
|
|
67333
|
+
/**
|
|
67334
|
+
* Lists every alarm enrichment rule of the tenant
|
|
67335
|
+
* (`GET oi/v2/alarm/enrichment/rules`).
|
|
67336
|
+
*
|
|
67337
|
+
* @remarks The server returns the rules **unsorted**. Evaluation order is
|
|
67338
|
+
* ascending `priority` — pass the result through `sortRulesByPriority`.
|
|
67339
|
+
* Response-validated, not thrown.
|
|
67340
|
+
*/
|
|
66847
67341
|
async getEnrichmentRules() {
|
|
66848
|
-
|
|
67342
|
+
const raw = await this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/rules');
|
|
67343
|
+
const result = EnrichmentRulesResponseSchema.safeParse(raw);
|
|
67344
|
+
if (!result.success) {
|
|
67345
|
+
this.simpleLog.warn('EnrichmentRulesResponse validation warning:', result.error.message);
|
|
67346
|
+
}
|
|
67347
|
+
return raw;
|
|
67348
|
+
}
|
|
67349
|
+
/**
|
|
67350
|
+
* Saves one alarm enrichment rule (`PUT oi/v2/alarm/enrichment/rules`).
|
|
67351
|
+
* A body without `rule_id` creates and lets the server seed `priority`;
|
|
67352
|
+
* a body with one updates in place, which is also how a reorder writes a
|
|
67353
|
+
* new `priority`.
|
|
67354
|
+
*
|
|
67355
|
+
* @remarks Response-validated, not thrown.
|
|
67356
|
+
* @throws ZodError on a malformed body.
|
|
67357
|
+
*/
|
|
67358
|
+
async saveEnrichmentRule(body) {
|
|
67359
|
+
EnrichmentRuleWriteBodySchema.parse(body);
|
|
67360
|
+
const raw = await this.dxSaaSService.oiPut('oi/v2/alarm/enrichment/rules', body);
|
|
67361
|
+
const result = EnrichmentRuleSchema.safeParse(raw);
|
|
67362
|
+
if (!result.success) {
|
|
67363
|
+
this.simpleLog.warn('EnrichmentRule validation warning:', result.error.message);
|
|
67364
|
+
}
|
|
67365
|
+
return raw;
|
|
67366
|
+
}
|
|
67367
|
+
/** Permanently deletes an alarm enrichment rule (`DELETE oi/v2/alarm/enrichment/rules/{ruleId}`). */
|
|
67368
|
+
async deleteEnrichmentRule(ruleId) {
|
|
67369
|
+
return this.dxSaaSService.oiDelete(`oi/v2/alarm/enrichment/rules/${encodeURIComponent(ruleId)}`);
|
|
67370
|
+
}
|
|
67371
|
+
/**
|
|
67372
|
+
* Runs a rule against recent alarms without persisting it
|
|
67373
|
+
* (`PUT oi/v2/alarm/enrichment/rules/preview`) — the server-side dry run
|
|
67374
|
+
* behind `alarm create-enrichment-rule`.
|
|
67375
|
+
*
|
|
67376
|
+
* @param body a full or partial rule; `rule_id` may be absent.
|
|
67377
|
+
* @param options `size` caps the returned alarms, `timeDurationInMillis`
|
|
67378
|
+
* is the lookback window (86400000 = 24 h in the UI's default).
|
|
67379
|
+
* @remarks Response-validated, not thrown.
|
|
67380
|
+
* @throws ZodError on a malformed body.
|
|
67381
|
+
*/
|
|
67382
|
+
async previewEnrichmentRule(body, options = {}) {
|
|
67383
|
+
EnrichmentRuleWriteBodySchema.parse(body);
|
|
67384
|
+
const raw = await this.dxSaaSService.oiPut('oi/v2/alarm/enrichment/rules/preview', body, {
|
|
67385
|
+
size: options.size ?? 100,
|
|
67386
|
+
timeDurationInMillis: options.timeDurationInMillis ?? 86400000,
|
|
67387
|
+
});
|
|
67388
|
+
const result = EnrichmentPreviewResponseSchema.safeParse(raw);
|
|
67389
|
+
if (!result.success) {
|
|
67390
|
+
this.simpleLog.warn('EnrichmentPreviewResponse validation warning:', result.error.message);
|
|
67391
|
+
}
|
|
67392
|
+
return raw;
|
|
67393
|
+
}
|
|
67394
|
+
/**
|
|
67395
|
+
* The field catalog the enrichment filter editor offers
|
|
67396
|
+
* (`GET oi/v2/alarm/enrichment/fields`) — same shape as the queue and
|
|
67397
|
+
* filter catalogs, so `annotateAtoms` works against it unchanged.
|
|
67398
|
+
*
|
|
67399
|
+
* @remarks Response-validated, not thrown.
|
|
67400
|
+
*/
|
|
67401
|
+
async listEnrichmentFilterFields() {
|
|
67402
|
+
const raw = await this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/fields');
|
|
67403
|
+
const result = AlarmQueueFieldsResponseSchema.safeParse(raw);
|
|
67404
|
+
if (!result.success) {
|
|
67405
|
+
this.simpleLog.warn('Enrichment field catalog validation warning:', result.error.message);
|
|
67406
|
+
}
|
|
67407
|
+
return raw;
|
|
67408
|
+
}
|
|
67409
|
+
/** The topology vertex types enrichment can read attributes from (`GET oi/v2/alarm/enrichment/vertexTypes`). */
|
|
67410
|
+
async listEnrichmentVertexTypes() {
|
|
67411
|
+
return this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/vertexTypes');
|
|
67412
|
+
}
|
|
67413
|
+
/** The attribute names of one vertex type (`GET oi/v2/alarm/enrichment/attributesByVertexType`). */
|
|
67414
|
+
async listEnrichmentVertexAttributes(vertexType) {
|
|
67415
|
+
return this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/attributesByVertexType', { vertexType });
|
|
67416
|
+
}
|
|
67417
|
+
/**
|
|
67418
|
+
* The custom-field registry that binds each `custom_N` slot to an attribute
|
|
67419
|
+
* name and its TAS / CUSTOM source
|
|
67420
|
+
* (`GET oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
67421
|
+
*
|
|
67422
|
+
* @remarks Response-validated, not thrown.
|
|
67423
|
+
*/
|
|
67424
|
+
async listEnrichmentCustomFields() {
|
|
67425
|
+
const raw = await this.dxSaaSService.oiGet('oi/v3/api/notifications/configAttributes', {
|
|
67426
|
+
configKey: 'custom.field.description',
|
|
67427
|
+
});
|
|
67428
|
+
const result = EnrichmentCustomFieldsResponseSchema.safeParse(raw);
|
|
67429
|
+
if (!result.success) {
|
|
67430
|
+
this.simpleLog.warn('EnrichmentCustomFields validation warning:', result.error.message);
|
|
67431
|
+
}
|
|
67432
|
+
return raw;
|
|
67433
|
+
}
|
|
67434
|
+
/**
|
|
67435
|
+
* Replaces the whole custom-field registry
|
|
67436
|
+
* (`PUT oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
67437
|
+
*
|
|
67438
|
+
* @remarks The PUT is a **whole-list replace**, not a merge — read the
|
|
67439
|
+
* current list, edit it, and send all of it back, or entries are lost.
|
|
67440
|
+
* Response-validated, not thrown.
|
|
67441
|
+
* @throws ZodError on a malformed list.
|
|
67442
|
+
*/
|
|
67443
|
+
async saveEnrichmentCustomFields(fields) {
|
|
67444
|
+
EnrichmentCustomFieldsResponseSchema.parse(fields);
|
|
67445
|
+
const raw = await this.dxSaaSService.oiPut('oi/v3/api/notifications/configAttributes', fields, {
|
|
67446
|
+
configKey: 'custom.field.description',
|
|
67447
|
+
});
|
|
67448
|
+
const result = EnrichmentCustomFieldsResponseSchema.safeParse(raw);
|
|
67449
|
+
if (!result.success) {
|
|
67450
|
+
this.simpleLog.warn('EnrichmentCustomFields validation warning:', result.error.message);
|
|
67451
|
+
}
|
|
67452
|
+
return raw;
|
|
66849
67453
|
}
|
|
66850
67454
|
/**
|
|
66851
67455
|
* Lists the alarm queues visible to the caller
|
|
@@ -69582,6 +70186,85 @@ class ChannelService {
|
|
|
69582
70186
|
}
|
|
69583
70187
|
return raw;
|
|
69584
70188
|
}
|
|
70189
|
+
// -------------------------------------------------------------------------
|
|
70190
|
+
// Ticket enrichment rules (customMappings)
|
|
70191
|
+
// -------------------------------------------------------------------------
|
|
70192
|
+
/**
|
|
70193
|
+
* Lists the tenant's ticket enrichment rules
|
|
70194
|
+
* (`GET dxinotify/notify/v1/customMappings/{orgId}`).
|
|
70195
|
+
*
|
|
70196
|
+
* @remarks A tenant with no rules answers with a bare `{}`, not
|
|
70197
|
+
* `{ customMappings: [] }` — normalised to `[]` here.
|
|
70198
|
+
* Response-validated, not thrown.
|
|
70199
|
+
*/
|
|
70200
|
+
async listTicketEnrichmentRules() {
|
|
70201
|
+
const raw = await this.notifyRequest('get', 'dxinotify/notify/v1/customMappings', true);
|
|
70202
|
+
const result = TicketEnrichmentListResponseSchema.safeParse(raw);
|
|
70203
|
+
if (!result.success) {
|
|
70204
|
+
this.log.warn('TicketEnrichmentListResponse validation warning:', result.error.message);
|
|
70205
|
+
}
|
|
70206
|
+
return raw.customMappings ?? [];
|
|
70207
|
+
}
|
|
70208
|
+
/**
|
|
70209
|
+
* Saves one ticket enrichment rule
|
|
70210
|
+
* (`PUT dxinotify/notify/v1/customMappings`). `id: 0` creates, an
|
|
70211
|
+
* existing id updates in place.
|
|
70212
|
+
*
|
|
70213
|
+
* @remarks `orgId` is stamped from the caller's token, so the body's value
|
|
70214
|
+
* is ignored. Unlike `saveChannel`, the response carries the persisted rule
|
|
70215
|
+
* including its new id. Response-validated, not thrown.
|
|
70216
|
+
* @throws ZodError on a malformed body.
|
|
70217
|
+
*/
|
|
70218
|
+
async saveTicketEnrichmentRule(body) {
|
|
70219
|
+
const stamped = { ...body, orgId: await this.dxSaaSService.getTenantCN() };
|
|
70220
|
+
TicketEnrichmentWriteBodySchema.parse(stamped);
|
|
70221
|
+
const raw = await this.notifyRequest('put', 'dxinotify/notify/v1/customMappings', false, stamped);
|
|
70222
|
+
const result = TicketEnrichmentWriteResponseSchema.safeParse(raw);
|
|
70223
|
+
if (!result.success) {
|
|
70224
|
+
this.log.warn('TicketEnrichmentWriteResponse validation warning:', result.error.message);
|
|
70225
|
+
}
|
|
70226
|
+
return raw;
|
|
70227
|
+
}
|
|
70228
|
+
/** Permanently deletes a ticket enrichment rule (`DELETE .../customMappings/{orgId}/{id}`). */
|
|
70229
|
+
async deleteTicketEnrichmentRule(ruleId) {
|
|
70230
|
+
const orgId = await this.dxSaaSService.getTenantCN();
|
|
70231
|
+
return this.notifyRequest('delete', `dxinotify/notify/v1/customMappings/${encodeURIComponent(orgId)}/${ruleId}`, false);
|
|
70232
|
+
}
|
|
70233
|
+
/**
|
|
70234
|
+
* The service-desk field catalog of one ITSM channel
|
|
70235
|
+
* (`GET oi/v2/tenantmgmtservice/properties?channelId=<id>`). A mapping's
|
|
70236
|
+
* `svcDeskField` is an entry's `mappedTo`.
|
|
70237
|
+
*
|
|
70238
|
+
* @remarks Field definitions only — it carries no channel credentials.
|
|
70239
|
+
* Response-validated, not thrown.
|
|
70240
|
+
*/
|
|
70241
|
+
async listServiceDeskFields(channelId) {
|
|
70242
|
+
const raw = await this.dxSaaSService.oiGet('oi/v2/tenantmgmtservice/properties', { channelId });
|
|
70243
|
+
const result = ServiceDeskFieldsResponseSchema.safeParse(raw);
|
|
70244
|
+
if (!result.success) {
|
|
70245
|
+
this.log.warn('ItsmProperties validation warning:', result.error.message);
|
|
70246
|
+
}
|
|
70247
|
+
return raw;
|
|
70248
|
+
}
|
|
70249
|
+
/**
|
|
70250
|
+
* The alarm fields a ticket enrichment rule can read
|
|
70251
|
+
* (`GET oi/v2/api/alarm/messageTemplate/fields?usedInTicketEnrichment=true`).
|
|
70252
|
+
*
|
|
70253
|
+
* @remarks Each entry's `alarmType` lists the catalog codes it is valid
|
|
70254
|
+
* for; a rule mapping a field outside its own type's code is rejected with
|
|
70255
|
+
* a bare 400. See `TICKET_ENRICHMENT_FIELD_CODES`.
|
|
70256
|
+
* Response-validated, not thrown.
|
|
70257
|
+
*/
|
|
70258
|
+
async listTicketEnrichmentAlarmFields() {
|
|
70259
|
+
const raw = await this.dxSaaSService.oiGet('oi/v2/api/alarm/messageTemplate/fields', {
|
|
70260
|
+
usedInTicketEnrichment: true,
|
|
70261
|
+
});
|
|
70262
|
+
const result = TicketEnrichmentAlarmFieldsResponseSchema.safeParse(raw);
|
|
70263
|
+
if (!result.success) {
|
|
70264
|
+
this.log.warn('TicketEnrichmentAlarmFields validation warning:', result.error.message);
|
|
70265
|
+
}
|
|
70266
|
+
return raw;
|
|
70267
|
+
}
|
|
69585
70268
|
/** Returns all notification channels using the new DXChannelConfiguration model. */
|
|
69586
70269
|
retrieveAllChannelsNew() {
|
|
69587
70270
|
return this.dxSaaSService
|
|
@@ -84660,5 +85343,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
|
|
|
84660
85343
|
};
|
|
84661
85344
|
}
|
|
84662
85345
|
|
|
84663
|
-
export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogIngest, LogQuery, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAttributeSchema, MetricBatchService, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SQLService, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreChangeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alertsForSliIndex, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, capVertexDetail, checkGet, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, displayColumnsFor, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, parseExpression, parseFilter, parseSaasGateway, parseServiceNowUrl, policyCategoryGuard, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sliHumanName, sloTripletFor, splitAttributePath, splitTemplate, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToMmPattern, templateUsage, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toChannelWriteBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
|
|
85346
|
+
export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, ENRICHMENT_FILTER_CONDITIONS, ENRICHMENT_PREVIEW_WINDOWS, ENRICHMENT_SOURCES, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EnrichmentCustomFieldSchema, EnrichmentCustomFieldsResponseSchema, EnrichmentMappingSchema, EnrichmentPreviewResponseSchema, EnrichmentRuleSchema, EnrichmentRuleWriteBodySchema, EnrichmentRulesResponseSchema, EnrichmentSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogIngest, LogQuery, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAttributeSchema, MetricBatchService, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SQLService, ServiceDeskFieldSchema, ServiceDeskFieldsResponseSchema, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TICKET_ENRICHMENT_ALARM_TYPES, TICKET_ENRICHMENT_FIELD_CODES, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreChangeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TicketEnrichmentAlarmFieldSchema, TicketEnrichmentAlarmFieldsResponseSchema, TicketEnrichmentListResponseSchema, TicketEnrichmentMappingSchema, TicketEnrichmentRuleSchema, TicketEnrichmentWriteBodySchema, TicketEnrichmentWriteResponseSchema, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alertsForSliIndex, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, capVertexDetail, checkGet, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, displayColumnsFor, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, parseExpression, parseFilter, parseSaasGateway, parseServiceNowUrl, planEnrichmentReorder, policyCategoryGuard, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sliHumanName, sloTripletFor, sortRulesByPriority, splitAttributePath, splitTemplate, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToMmPattern, templateUsage, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toChannelWriteBody, toEnrichmentRuleCreateBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, toTicketEnrichmentWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
|
|
84664
85347
|
//# sourceMappingURL=index.esm.js.map
|