@dx-do/client 7.7.2 → 7.9.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.
Files changed (45) hide show
  1. package/dist/index.cjs.js +1384 -337
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1349 -338
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/index.d.ts +2 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts +263 -0
  8. package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts.map +1 -0
  9. package/dist/src/lib/model/channel/ticket-enrichment.d.ts +201 -0
  10. package/dist/src/lib/model/channel/ticket-enrichment.d.ts.map +1 -0
  11. package/dist/src/lib/model/config/DXDoConfiguration.d.ts +8 -0
  12. package/dist/src/lib/model/config/DXDoConfiguration.d.ts.map +1 -1
  13. package/dist/src/lib/model/datastore/tas/store.d.ts +114 -129
  14. package/dist/src/lib/model/datastore/tas/store.d.ts.map +1 -1
  15. package/dist/src/lib/model/log/ingest.d.ts +13 -0
  16. package/dist/src/lib/model/log/ingest.d.ts.map +1 -1
  17. package/dist/src/lib/model/nass/NASS.d.ts +4 -2
  18. package/dist/src/lib/model/nass/NASS.d.ts.map +1 -1
  19. package/dist/src/lib/model/oi/services.create.d.ts +19 -0
  20. package/dist/src/lib/model/oi/services.create.d.ts.map +1 -1
  21. package/dist/src/lib/model/oi/services.transform.d.ts +20 -1
  22. package/dist/src/lib/model/oi/services.transform.d.ts.map +1 -1
  23. package/dist/src/lib/model/service/service-overview.d.ts +2 -0
  24. package/dist/src/lib/model/service/service-overview.d.ts.map +1 -1
  25. package/dist/src/lib/model/tas/TASGraph.d.ts +7 -3
  26. package/dist/src/lib/model/tas/TASGraph.d.ts.map +1 -1
  27. package/dist/src/lib/services/alarm.service.d.ts +78 -4
  28. package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
  29. package/dist/src/lib/services/channel.service.d.ts +42 -0
  30. package/dist/src/lib/services/channel.service.d.ts.map +1 -1
  31. package/dist/src/lib/services/datastore/datastore-metrics-metadata.service.d.ts +6 -3
  32. package/dist/src/lib/services/datastore/datastore-metrics-metadata.service.d.ts.map +1 -1
  33. package/dist/src/lib/services/datastore/datastore-nass.service.d.ts +6 -2
  34. package/dist/src/lib/services/datastore/datastore-nass.service.d.ts.map +1 -1
  35. package/dist/src/lib/services/datastore/datastore-tas.service.d.ts +8 -5
  36. package/dist/src/lib/services/datastore/datastore-tas.service.d.ts.map +1 -1
  37. package/dist/src/lib/services/dx-saas.service.d.ts +16 -7
  38. package/dist/src/lib/services/dx-saas.service.d.ts.map +1 -1
  39. package/dist/src/lib/services/event.service.d.ts +10 -1
  40. package/dist/src/lib/services/event.service.d.ts.map +1 -1
  41. package/dist/src/lib/services/logs.service.d.ts +40 -0
  42. package/dist/src/lib/services/logs.service.d.ts.map +1 -1
  43. package/dist/src/lib/services/service.service.d.ts +24 -2
  44. package/dist/src/lib/services/service.service.d.ts.map +1 -1
  45. 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
  /**
@@ -48888,29 +49375,114 @@ const TasGraphSchema = z.looseObject({
48888
49375
  totalEdges: z.number().optional(),
48889
49376
  });
48890
49377
 
49378
+ /**
49379
+ * Attribute value the TAS write interface accepts: a string or a list of
49380
+ * strings (`docs/data-store-doc/tas-rest.html`, "Write Interface").
49381
+ */
49382
+ const TasStoreAttributeValueSchema = z
49383
+ .union([z.string(), z.array(z.string())])
49384
+ .describe('Attribute value: a string or an array of strings');
49385
+ /**
49386
+ * Request-side vertex for `POST /tas/graph/store`.
49387
+ *
49388
+ * Ingestion identifies a vertex by `externalId` only — a vertex being created
49389
+ * has no numeric id yet (`docs/data-store-doc/tas-index.html` §2.2, "ingestion
49390
+ * tasks should use external ID only") — so this deliberately differs from the
49391
+ * response-side `TasVertexSchema`, which requires `id`.
49392
+ */
49393
+ const TasStoreVertexSchema = z.looseObject({
49394
+ externalId: TasExternalIdSchema.describe('Ingestion identity of the vertex (`<LAYER>:<TYPE>:…`); the only id a producer supplies'),
49395
+ id: z
49396
+ .number()
49397
+ .optional()
49398
+ .describe('Numeric id; only meaningful when updating a vertex the platform already holds'),
49399
+ startTime: z.number().optional().describe('Epoch milliseconds'),
49400
+ endTime: z.number().optional().describe('Epoch milliseconds'),
49401
+ attributes: z
49402
+ .object({
49403
+ name: z.string().describe('Display name — required by the platform'),
49404
+ type: z
49405
+ .string()
49406
+ .describe('Vertex type, e.g. AGENT or ACTIVEMQ_DESTINATION — required by the platform'),
49407
+ })
49408
+ .catchall(TasStoreAttributeValueSchema)
49409
+ .describe('Complete attribute set. A GATHERED store replaces the previous attribute set wholesale, so always send every attribute'),
49410
+ attributesType: z
49411
+ .record(z.string(), TasAttributeTypeSchema)
49412
+ .optional()
49413
+ .describe('Per-attribute store type override (GATHERED, CUSTOM, DECORATED, HIDDEN)'),
49414
+ });
49415
+ /**
49416
+ * Request-side edge for `POST /tas/graph/store`: endpoints are named by
49417
+ * `externalId`; numeric ids are optional and only apply to edges between
49418
+ * vertices the platform already holds. The platform silently drops an edge
49419
+ * whose endpoint vertex does not exist.
49420
+ */
49421
+ const TasStoreEdgeSchema = z.looseObject({
49422
+ sourceExternalId: TasExternalIdSchema.describe('externalId of the source (parent) vertex'),
49423
+ targetExternalId: TasExternalIdSchema.describe('externalId of the target (child) vertex'),
49424
+ flowExternalId: TasExternalIdSchema.optional().describe('externalId of the flow vertex, when the edge belongs to a flow'),
49425
+ wireExternalId: TasExternalIdSchema.optional().describe('externalId of the wire vertex, when the edge belongs to a wire'),
49426
+ sourceId: z.number().optional().describe('Numeric id of the source vertex (existing vertices only)'),
49427
+ targetId: z.number().optional().describe('Numeric id of the target vertex (existing vertices only)'),
49428
+ flowId: z.number().optional().describe('Numeric id of the flow vertex'),
49429
+ wireId: z.number().optional().describe('Numeric id of the wire vertex'),
49430
+ startTime: z.number().optional().describe('Epoch milliseconds'),
49431
+ endTime: z.number().optional().describe('Epoch milliseconds'),
49432
+ attributes: z
49433
+ .record(z.string(), TasStoreAttributeValueSchema)
49434
+ .optional()
49435
+ .describe('Edge attributes (e.g. `semantic`)'),
49436
+ attributesType: z
49437
+ .record(z.string(), TasAttributeTypeSchema)
49438
+ .optional()
49439
+ .describe('Per-attribute store type override'),
49440
+ });
49441
+ /** The graph body of a store request: externalId-keyed vertices and edges. */
49442
+ const TasStoreGraphSchema = z.looseObject({
49443
+ vertices: z.array(TasStoreVertexSchema).optional().describe('Vertices to create or update'),
49444
+ edges: z.array(TasStoreEdgeSchema).optional().describe('Edges to create or update'),
49445
+ });
48891
49446
  const TasStoreGraphInputSchema = z.looseObject({
48892
- includeSuccessResult: z.boolean().optional(),
48893
- ttl: z.number().optional(),
48894
- endTimeAllowedThreshold: z.number().optional(),
48895
- storeType: TasAttributeTypeSchema.optional(),
48896
- graph: TasGraphSchema,
49447
+ includeSuccessResult: z
49448
+ .boolean()
49449
+ .optional()
49450
+ .describe('Echo the stored graph back in the response'),
49451
+ ttl: z
49452
+ .number()
49453
+ .optional()
49454
+ .describe('Time to live in milliseconds for every vertex in this request; omitted = the platform default (24 h). One ttl per request'),
49455
+ endTimeAllowedThreshold: z.number().optional().describe('Platform option; see tas-rest.html'),
49456
+ storeType: TasAttributeTypeSchema.optional().describe('Attribute store type for the whole request (default GATHERED)'),
49457
+ graph: TasStoreGraphSchema,
48897
49458
  });
48898
49459
  const TasStoreChangeSchema = z.looseObject({
48899
49460
  changeType: z.string().optional(),
48900
49461
  id: z.unknown().optional(),
48901
49462
  });
49463
+ /**
49464
+ * A vertex or edge the platform refused, echoed back as it was sent (so it
49465
+ * carries the request-side externalId shape, not a numeric id).
49466
+ */
49467
+ const TasStoreFailedObjectSchema = z.looseObject({
49468
+ externalId: TasExternalIdSchema.optional(),
49469
+ sourceExternalId: TasExternalIdSchema.optional(),
49470
+ targetExternalId: TasExternalIdSchema.optional(),
49471
+ id: z.number().optional(),
49472
+ attributes: z.record(z.string(), z.unknown()).optional(),
49473
+ });
48902
49474
  const TasStoreGraphResponseSchema = z.looseObject({
48903
49475
  graph: TasGraphSchema.optional(),
48904
49476
  failedVertices: z
48905
49477
  .array(z.looseObject({
48906
- object: TasVertexSchema,
49478
+ object: TasStoreFailedObjectSchema,
48907
49479
  code: z.string().optional(),
48908
49480
  message: z.string().optional(),
48909
49481
  }))
48910
49482
  .optional(),
48911
49483
  failedEdges: z
48912
49484
  .array(z.looseObject({
48913
- object: TasEdgeSchema,
49485
+ object: TasStoreFailedObjectSchema,
48914
49486
  code: z.string().optional(),
48915
49487
  message: z.string().optional(),
48916
49488
  }))
@@ -59597,6 +60169,24 @@ var LogIngest;
59597
60169
  return LogIngest.RESERVED_ADDITIONAL_FIELDS.includes(name.toLowerCase());
59598
60170
  }
59599
60171
  LogIngest.isReservedLogField = isReservedLogField;
60172
+ /**
60173
+ * Thrown by `DxSaasService.resolveLogIngestionURL` when no log gateway can
60174
+ * be determined. `definitive` is true when the profile itself rules an
60175
+ * endpoint out (unparseable or on-premise gateway, Log Analytics absent or
60176
+ * not provisioned) and false when only the products lookup failed — a
60177
+ * producer keeps shipping off for the process in the first case and retries
60178
+ * later in the second. The message names the reason and how to set
60179
+ * `dxLogIngestionURL`.
60180
+ */
60181
+ class LogIngestionEndpointError extends Error {
60182
+ definitive;
60183
+ constructor(message, definitive) {
60184
+ super(message);
60185
+ this.definitive = definitive;
60186
+ this.name = 'LogIngestionEndpointError';
60187
+ }
60188
+ }
60189
+ LogIngest.LogIngestionEndpointError = LogIngestionEndpointError;
59600
60190
  LogIngest.LogIngestOptionsSchema = z.looseObject({
59601
60191
  logtype: z
59602
60192
  .string()
@@ -59631,7 +60221,7 @@ var LogIngest;
59631
60221
  file: z
59632
60222
  .string()
59633
60223
  .optional()
59634
- .describe('Source file label (default: `"dx-do.cli"`)'),
60224
+ .describe('Source file label, typically a logger name (default: `"dx-do.cli"`). A value without a dot gets `.log` appended: the platform only parses a dotted source file, and an undotted one corrupts the stored `message`, `file` and `tags` (#620).'),
59635
60225
  ip: z
59636
60226
  .string()
59637
60227
  .optional()
@@ -60111,6 +60701,12 @@ var OIAlarm;
60111
60701
  };
60112
60702
  })(OIAlarm || (OIAlarm = {}));
60113
60703
 
60704
+ var CreateServices;
60705
+ (function (CreateServices) {
60706
+ /** The service kinds the platform recognises, in wire casing (`servicerepo/filters` catalog). */
60707
+ CreateServices.SERVICE_TYPES = ['Service', 'Application', 'Group'];
60708
+ })(CreateServices || (CreateServices = {}));
60709
+
60114
60710
  /**
60115
60711
  * The `service export` / `service export-hierarchy` file format and the
60116
60712
  * `service import` boundary validator.
@@ -60191,6 +60787,7 @@ var ServiceTransform;
60191
60787
  attributes: {
60192
60788
  type: 'saService',
60193
60789
  name: a.name,
60790
+ serviceType: normalizeServiceType(a.serviceType),
60194
60791
  state: 'ACTIVE',
60195
60792
  maintenance: a.maintenance ?? false,
60196
60793
  situationsIncludeChildServices: a.situationsIncludeChildServices ?? false,
@@ -60206,6 +60803,80 @@ var ServiceTransform;
60206
60803
  };
60207
60804
  }
60208
60805
  ServiceTransform.retrievedToServiceVertex = retrievedToServiceVertex;
60806
+ const SERVICE_TYPE_BY_LOWER = Object.fromEntries(CreateServices.SERVICE_TYPES.map((t) => [t.toLowerCase(), t]));
60807
+ /**
60808
+ * Canonicalise a read-back `serviceType` (any casing). Missing or unknown
60809
+ * values map to `Service`, the server's default for records that predate
60810
+ * the field.
60811
+ */
60812
+ function normalizeServiceType(value) {
60813
+ if (typeof value !== 'string')
60814
+ return 'Service';
60815
+ return SERVICE_TYPE_BY_LOWER[value.toLowerCase()] ?? 'Service';
60816
+ }
60817
+ ServiceTransform.normalizeServiceType = normalizeServiceType;
60818
+ /** Parse a user-supplied service type (`service|application|group`, any casing); throws on anything else. */
60819
+ function parseServiceType(input) {
60820
+ const t = SERVICE_TYPE_BY_LOWER[input.trim().toLowerCase()];
60821
+ if (!t) {
60822
+ throw new Error(`Unknown service type '${input}' — expected one of ${CreateServices.SERVICE_TYPES.map((x) => x.toLowerCase()).join(', ')}`);
60823
+ }
60824
+ return t;
60825
+ }
60826
+ ServiceTransform.parseServiceType = parseServiceType;
60827
+ function list(xs) {
60828
+ return `[${xs.join(', ')}]`;
60829
+ }
60830
+ function sameSet(a, b) {
60831
+ const sa = [...a].sort();
60832
+ const sb = [...b].sort();
60833
+ return sa.length === sb.length && sa.every((x, i) => x === sb[i]);
60834
+ }
60835
+ function propPairs(ps) {
60836
+ return ps.map((p) => `${p.name}=${p.value}`);
60837
+ }
60838
+ /**
60839
+ * Apply an attribute patch to ONE vertex of a store body (in place) and return
60840
+ * human-readable change lines; an empty result means nothing differs. Fields
60841
+ * omitted from the patch keep their values; `tags` / `customProperties` are
60842
+ * replaced wholesale (what the UI editor sends), not merged. The name and the
60843
+ * `serviceType` are never touched — both are fixed at creation (the server
60844
+ * does not allow renames and ignores a type change on a re-save).
60845
+ *
60846
+ * @throws Error if `serviceName` is not among `body.vertices`.
60847
+ */
60848
+ function applyServiceUpdate(body, serviceName, patch) {
60849
+ const target = body.vertices.find((v) => v.attributes.name === serviceName);
60850
+ if (!target) {
60851
+ throw new Error(`No service with name '${serviceName}' found`);
60852
+ }
60853
+ const a = target.attributes;
60854
+ const changes = [];
60855
+ if (patch.description !== undefined && patch.description !== a.description) {
60856
+ changes.push(`description: '${a.description}' -> '${patch.description}'`);
60857
+ a.description = patch.description;
60858
+ }
60859
+ if (patch.location !== undefined && patch.location !== a.location) {
60860
+ changes.push(`location: '${a.location}' -> '${patch.location}'`);
60861
+ a.location = patch.location;
60862
+ }
60863
+ if (patch.tags !== undefined && !sameSet(patch.tags, a.tags)) {
60864
+ changes.push(`tags: ${list(a.tags)} -> ${list(patch.tags)}`);
60865
+ a.tags = [...patch.tags];
60866
+ }
60867
+ if (patch.customProperties !== undefined &&
60868
+ !sameSet(propPairs(patch.customProperties), propPairs(a.customProperties))) {
60869
+ changes.push(`properties: ${list(propPairs(a.customProperties))} -> ${list(propPairs(patch.customProperties))}`);
60870
+ a.customProperties = patch.customProperties.map((p) => ({ ...p }));
60871
+ }
60872
+ if (patch.situationsIncludeChildServices !== undefined &&
60873
+ patch.situationsIncludeChildServices !== a.situationsIncludeChildServices) {
60874
+ changes.push(`includeChildServices: ${a.situationsIncludeChildServices} -> ${patch.situationsIncludeChildServices}`);
60875
+ a.situationsIncludeChildServices = patch.situationsIncludeChildServices;
60876
+ }
60877
+ return changes;
60878
+ }
60879
+ ServiceTransform.applyServiceUpdate = applyServiceUpdate;
60209
60880
  /**
60210
60881
  * Build NAME-keyed store edges from a topology graph, preserving weights +
60211
60882
  * semantic. Endpoints are mapped from `SA:<uuid>` to service name via the
@@ -66635,6 +67306,46 @@ class AlarmService {
66635
67306
  alarmId: alarmId,
66636
67307
  });
66637
67308
  }
67309
+ /**
67310
+ * Finds one alarm, open or closed, by its ID (for an ingested alarm, the
67311
+ * `alarm_unique_id` it was sent with) among alarms from the last
67312
+ * `lookbackMs`, through the alarm search.
67313
+ *
67314
+ * @remarks Resolves `undefined` when there is no such alarm. {@link getAlarm}
67315
+ * cannot tell that apart from a failure: its endpoint answers HTTP 500 for an
67316
+ * unknown ID.
67317
+ */
67318
+ async findAlarm(alarmId, lookbackMs, requestOverrides = {}) {
67319
+ const now = Date.now();
67320
+ const body = {
67321
+ ...DEFAULT_ALARMS_REQUEST_BODY$1,
67322
+ timeFrom: now - lookbackMs,
67323
+ timeTo: now,
67324
+ pageNumber: 0,
67325
+ pageSize: 10,
67326
+ includeClosedAlarms: true,
67327
+ customFilter: {
67328
+ and: {
67329
+ expressions: [
67330
+ {
67331
+ or: {
67332
+ expressions: [
67333
+ {
67334
+ fieldDescription: 'Alarm Id',
67335
+ field: 'alarmId',
67336
+ value: alarmId,
67337
+ condition: 'equals',
67338
+ },
67339
+ ],
67340
+ },
67341
+ },
67342
+ ],
67343
+ },
67344
+ },
67345
+ };
67346
+ const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body, undefined, undefined, requestOverrides);
67347
+ return (response.alarms ?? []).find((alarm) => alarm.alarmId === alarmId);
67348
+ }
66638
67349
  /** Returns the overview (first alarm in a custom-filter search) for an alarm ID. */
66639
67350
  async getAlarmOverview(alarmId) {
66640
67351
  const singleAlarmQuery = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', {
@@ -66843,9 +67554,126 @@ class AlarmService {
66843
67554
  mapAlarms(alarmAllPage.alarms);
66844
67555
  return alarmIdMap;
66845
67556
  }
66846
- /** Returns all alarm enrichment rules configured for the tenant. */
67557
+ /**
67558
+ * Lists every alarm enrichment rule of the tenant
67559
+ * (`GET oi/v2/alarm/enrichment/rules`).
67560
+ *
67561
+ * @remarks The server returns the rules **unsorted**. Evaluation order is
67562
+ * ascending `priority` — pass the result through `sortRulesByPriority`.
67563
+ * Response-validated, not thrown.
67564
+ */
66847
67565
  async getEnrichmentRules() {
66848
- return this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/rules');
67566
+ const raw = await this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/rules');
67567
+ const result = EnrichmentRulesResponseSchema.safeParse(raw);
67568
+ if (!result.success) {
67569
+ this.simpleLog.warn('EnrichmentRulesResponse validation warning:', result.error.message);
67570
+ }
67571
+ return raw;
67572
+ }
67573
+ /**
67574
+ * Saves one alarm enrichment rule (`PUT oi/v2/alarm/enrichment/rules`).
67575
+ * A body without `rule_id` creates and lets the server seed `priority`;
67576
+ * a body with one updates in place, which is also how a reorder writes a
67577
+ * new `priority`.
67578
+ *
67579
+ * @remarks Response-validated, not thrown.
67580
+ * @throws ZodError on a malformed body.
67581
+ */
67582
+ async saveEnrichmentRule(body) {
67583
+ EnrichmentRuleWriteBodySchema.parse(body);
67584
+ const raw = await this.dxSaaSService.oiPut('oi/v2/alarm/enrichment/rules', body);
67585
+ const result = EnrichmentRuleSchema.safeParse(raw);
67586
+ if (!result.success) {
67587
+ this.simpleLog.warn('EnrichmentRule validation warning:', result.error.message);
67588
+ }
67589
+ return raw;
67590
+ }
67591
+ /** Permanently deletes an alarm enrichment rule (`DELETE oi/v2/alarm/enrichment/rules/{ruleId}`). */
67592
+ async deleteEnrichmentRule(ruleId) {
67593
+ return this.dxSaaSService.oiDelete(`oi/v2/alarm/enrichment/rules/${encodeURIComponent(ruleId)}`);
67594
+ }
67595
+ /**
67596
+ * Runs a rule against recent alarms without persisting it
67597
+ * (`PUT oi/v2/alarm/enrichment/rules/preview`) — the server-side dry run
67598
+ * behind `alarm create-enrichment-rule`.
67599
+ *
67600
+ * @param body a full or partial rule; `rule_id` may be absent.
67601
+ * @param options `size` caps the returned alarms, `timeDurationInMillis`
67602
+ * is the lookback window (86400000 = 24 h in the UI's default).
67603
+ * @remarks Response-validated, not thrown.
67604
+ * @throws ZodError on a malformed body.
67605
+ */
67606
+ async previewEnrichmentRule(body, options = {}) {
67607
+ EnrichmentRuleWriteBodySchema.parse(body);
67608
+ const raw = await this.dxSaaSService.oiPut('oi/v2/alarm/enrichment/rules/preview', body, {
67609
+ size: options.size ?? 100,
67610
+ timeDurationInMillis: options.timeDurationInMillis ?? 86400000,
67611
+ });
67612
+ const result = EnrichmentPreviewResponseSchema.safeParse(raw);
67613
+ if (!result.success) {
67614
+ this.simpleLog.warn('EnrichmentPreviewResponse validation warning:', result.error.message);
67615
+ }
67616
+ return raw;
67617
+ }
67618
+ /**
67619
+ * The field catalog the enrichment filter editor offers
67620
+ * (`GET oi/v2/alarm/enrichment/fields`) — same shape as the queue and
67621
+ * filter catalogs, so `annotateAtoms` works against it unchanged.
67622
+ *
67623
+ * @remarks Response-validated, not thrown.
67624
+ */
67625
+ async listEnrichmentFilterFields() {
67626
+ const raw = await this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/fields');
67627
+ const result = AlarmQueueFieldsResponseSchema.safeParse(raw);
67628
+ if (!result.success) {
67629
+ this.simpleLog.warn('Enrichment field catalog validation warning:', result.error.message);
67630
+ }
67631
+ return raw;
67632
+ }
67633
+ /** The topology vertex types enrichment can read attributes from (`GET oi/v2/alarm/enrichment/vertexTypes`). */
67634
+ async listEnrichmentVertexTypes() {
67635
+ return this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/vertexTypes');
67636
+ }
67637
+ /** The attribute names of one vertex type (`GET oi/v2/alarm/enrichment/attributesByVertexType`). */
67638
+ async listEnrichmentVertexAttributes(vertexType) {
67639
+ return this.dxSaaSService.oiGet('oi/v2/alarm/enrichment/attributesByVertexType', { vertexType });
67640
+ }
67641
+ /**
67642
+ * The custom-field registry that binds each `custom_N` slot to an attribute
67643
+ * name and its TAS / CUSTOM source
67644
+ * (`GET oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
67645
+ *
67646
+ * @remarks Response-validated, not thrown.
67647
+ */
67648
+ async listEnrichmentCustomFields() {
67649
+ const raw = await this.dxSaaSService.oiGet('oi/v3/api/notifications/configAttributes', {
67650
+ configKey: 'custom.field.description',
67651
+ });
67652
+ const result = EnrichmentCustomFieldsResponseSchema.safeParse(raw);
67653
+ if (!result.success) {
67654
+ this.simpleLog.warn('EnrichmentCustomFields validation warning:', result.error.message);
67655
+ }
67656
+ return raw;
67657
+ }
67658
+ /**
67659
+ * Replaces the whole custom-field registry
67660
+ * (`PUT oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
67661
+ *
67662
+ * @remarks The PUT is a **whole-list replace**, not a merge — read the
67663
+ * current list, edit it, and send all of it back, or entries are lost.
67664
+ * Response-validated, not thrown.
67665
+ * @throws ZodError on a malformed list.
67666
+ */
67667
+ async saveEnrichmentCustomFields(fields) {
67668
+ EnrichmentCustomFieldsResponseSchema.parse(fields);
67669
+ const raw = await this.dxSaaSService.oiPut('oi/v3/api/notifications/configAttributes', fields, {
67670
+ configKey: 'custom.field.description',
67671
+ });
67672
+ const result = EnrichmentCustomFieldsResponseSchema.safeParse(raw);
67673
+ if (!result.success) {
67674
+ this.simpleLog.warn('EnrichmentCustomFields validation warning:', result.error.message);
67675
+ }
67676
+ return raw;
66849
67677
  }
66850
67678
  /**
66851
67679
  * Lists the alarm queues visible to the caller
@@ -69582,6 +70410,85 @@ class ChannelService {
69582
70410
  }
69583
70411
  return raw;
69584
70412
  }
70413
+ // -------------------------------------------------------------------------
70414
+ // Ticket enrichment rules (customMappings)
70415
+ // -------------------------------------------------------------------------
70416
+ /**
70417
+ * Lists the tenant's ticket enrichment rules
70418
+ * (`GET dxinotify/notify/v1/customMappings/{orgId}`).
70419
+ *
70420
+ * @remarks A tenant with no rules answers with a bare `{}`, not
70421
+ * `{ customMappings: [] }` — normalised to `[]` here.
70422
+ * Response-validated, not thrown.
70423
+ */
70424
+ async listTicketEnrichmentRules() {
70425
+ const raw = await this.notifyRequest('get', 'dxinotify/notify/v1/customMappings', true);
70426
+ const result = TicketEnrichmentListResponseSchema.safeParse(raw);
70427
+ if (!result.success) {
70428
+ this.log.warn('TicketEnrichmentListResponse validation warning:', result.error.message);
70429
+ }
70430
+ return raw.customMappings ?? [];
70431
+ }
70432
+ /**
70433
+ * Saves one ticket enrichment rule
70434
+ * (`PUT dxinotify/notify/v1/customMappings`). `id: 0` creates, an
70435
+ * existing id updates in place.
70436
+ *
70437
+ * @remarks `orgId` is stamped from the caller's token, so the body's value
70438
+ * is ignored. Unlike `saveChannel`, the response carries the persisted rule
70439
+ * including its new id. Response-validated, not thrown.
70440
+ * @throws ZodError on a malformed body.
70441
+ */
70442
+ async saveTicketEnrichmentRule(body) {
70443
+ const stamped = { ...body, orgId: await this.dxSaaSService.getTenantCN() };
70444
+ TicketEnrichmentWriteBodySchema.parse(stamped);
70445
+ const raw = await this.notifyRequest('put', 'dxinotify/notify/v1/customMappings', false, stamped);
70446
+ const result = TicketEnrichmentWriteResponseSchema.safeParse(raw);
70447
+ if (!result.success) {
70448
+ this.log.warn('TicketEnrichmentWriteResponse validation warning:', result.error.message);
70449
+ }
70450
+ return raw;
70451
+ }
70452
+ /** Permanently deletes a ticket enrichment rule (`DELETE .../customMappings/{orgId}/{id}`). */
70453
+ async deleteTicketEnrichmentRule(ruleId) {
70454
+ const orgId = await this.dxSaaSService.getTenantCN();
70455
+ return this.notifyRequest('delete', `dxinotify/notify/v1/customMappings/${encodeURIComponent(orgId)}/${ruleId}`, false);
70456
+ }
70457
+ /**
70458
+ * The service-desk field catalog of one ITSM channel
70459
+ * (`GET oi/v2/tenantmgmtservice/properties?channelId=<id>`). A mapping's
70460
+ * `svcDeskField` is an entry's `mappedTo`.
70461
+ *
70462
+ * @remarks Field definitions only — it carries no channel credentials.
70463
+ * Response-validated, not thrown.
70464
+ */
70465
+ async listServiceDeskFields(channelId) {
70466
+ const raw = await this.dxSaaSService.oiGet('oi/v2/tenantmgmtservice/properties', { channelId });
70467
+ const result = ServiceDeskFieldsResponseSchema.safeParse(raw);
70468
+ if (!result.success) {
70469
+ this.log.warn('ItsmProperties validation warning:', result.error.message);
70470
+ }
70471
+ return raw;
70472
+ }
70473
+ /**
70474
+ * The alarm fields a ticket enrichment rule can read
70475
+ * (`GET oi/v2/api/alarm/messageTemplate/fields?usedInTicketEnrichment=true`).
70476
+ *
70477
+ * @remarks Each entry's `alarmType` lists the catalog codes it is valid
70478
+ * for; a rule mapping a field outside its own type's code is rejected with
70479
+ * a bare 400. See `TICKET_ENRICHMENT_FIELD_CODES`.
70480
+ * Response-validated, not thrown.
70481
+ */
70482
+ async listTicketEnrichmentAlarmFields() {
70483
+ const raw = await this.dxSaaSService.oiGet('oi/v2/api/alarm/messageTemplate/fields', {
70484
+ usedInTicketEnrichment: true,
70485
+ });
70486
+ const result = TicketEnrichmentAlarmFieldsResponseSchema.safeParse(raw);
70487
+ if (!result.success) {
70488
+ this.log.warn('TicketEnrichmentAlarmFields validation warning:', result.error.message);
70489
+ }
70490
+ return raw;
70491
+ }
69585
70492
  /** Returns all notification channels using the new DXChannelConfiguration model. */
69586
70493
  retrieveAllChannelsNew() {
69587
70494
  return this.dxSaaSService
@@ -74942,6 +75849,12 @@ class DxSaasService {
74942
75849
  this.simplifiedCohortId = this.dxdoConfiguration.dxConfiguration.cohortId
74943
75850
  .replace(/-/g, '')
74944
75851
  .toLowerCase();
75852
+ // Opt-in only: without it axios keeps its default of no timeout, which the
75853
+ // CLI's streaming and long-running query paths rely on.
75854
+ const requestTimeoutMs = this.dxdoConfiguration.requestTimeoutMs;
75855
+ if (requestTimeoutMs !== undefined && requestTimeoutMs > 0) {
75856
+ this._httpClient.defaults.timeout = requestTimeoutMs;
75857
+ }
74945
75858
  this.initializeProxyIfNecessary();
74946
75859
  // Strip auth tokens from any error this client surfaces, so nothing downstream
74947
75860
  // (handleAxiosError, re-throws, top-level catches) can log the Authorization header.
@@ -75226,9 +76139,7 @@ class DxSaasService {
75226
76139
  * @param body - Request body (JSON-serializable). Defaults to `{}`.
75227
76140
  * @param params - Query-string parameters.
75228
76141
  * @param headers - Additional request headers merged over the auth header.
75229
- * @param requestOverrides - Per-call axios settings (`timeout`, `signal`);
75230
- * the shared client has no default timeout, so a caller that must not
75231
- * hang — the at-exit command audit — bounds itself here.
76142
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
75232
76143
  */
75233
76144
  async tenantPost(path, body, params, headers = {}, requestOverrides = {}) {
75234
76145
  const url = `${this.dxdoConfiguration.dxConfiguration.dxGatewayHost}${this.getCohortIDForURL()}/${path}`;
@@ -75421,10 +76332,14 @@ class DxSaasService {
75421
76332
  * @param body - Request body.
75422
76333
  * @param params - Query-string parameters.
75423
76334
  * @param extraHeaders - Additional request headers.
76335
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
75424
76336
  */
75425
- async oiPost(path, body, params, extraHeaders) {
76337
+ async oiPost(path, body, params, extraHeaders, requestOverrides = {}) {
75426
76338
  const url = `${this.dxdoConfiguration.dxConfiguration.dxGatewayHost}${this.getCohortIDForURL()}/${path}`;
75427
- const config = this.createUserAuthorizedRequestConfig(params ?? {});
76339
+ const config = {
76340
+ ...this.createUserAuthorizedRequestConfig(params ?? {}),
76341
+ ...requestOverrides,
76342
+ };
75428
76343
  if (extraHeaders) {
75429
76344
  if (config.headers) {
75430
76345
  config.headers = { ...config.headers, ...extraHeaders };
@@ -75573,7 +76488,10 @@ class DxSaasService {
75573
76488
  }
75574
76489
  const profile = this.dxdoConfiguration.configurationFilePath ?? '~/.dxdo/<profile>.dxo2.config.json';
75575
76490
  const host = config.dxGatewayHost;
75576
- const cannot = (reason) => new Error(`Cannot determine the log ingestion endpoint: ${reason}`);
76491
+ // `definitive` tells a long-running producer whether to give up on log
76492
+ // shipping for the process (the profile itself rules it out) or to retry
76493
+ // later (only the products lookup failed, e.g. a maintenance window).
76494
+ const cannot = (reason, definitive = true) => new LogIngest.LogIngestionEndpointError(`Cannot determine the log ingestion endpoint: ${reason}`, definitive);
75577
76495
  let gateway;
75578
76496
  try {
75579
76497
  gateway = parseSaasGateway(host);
@@ -75596,7 +76514,7 @@ class DxSaasService {
75596
76514
  catch (error) {
75597
76515
  const message = error instanceof Error ? error.message : String(error);
75598
76516
  throw cannot(`the tenant products lookup (GET spp/v5/products on ${gateway.hostname}) failed: ${message}. ` +
75599
- `Set "dxLogIngestionURL" (e.g. "${derived}") in ${profile} to bypass the lookup.`);
76517
+ `Set "dxLogIngestionURL" (e.g. "${derived}") in ${profile} to bypass the lookup.`, false);
75600
76518
  }
75601
76519
  const tenant = products.displayName ?? '?';
75602
76520
  const la = findProduct(products, LOG_ANALYTICS_PRODUCT);
@@ -75620,14 +76538,19 @@ class DxSaasService {
75620
76538
  * `dxLogIngestionURL`, or the SaaS logs-gateway derived from the region and
75621
76539
  * Log Analytics provisioning. Auth uses the same `Bearer {userToken}` as
75622
76540
  * other tenant methods.
75623
- * @throws Error from {@link resolveLogIngestionURL} when no endpoint can be determined.
76541
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
76542
+ * @throws {@link LogIngest.LogIngestionEndpointError} from
76543
+ * {@link resolveLogIngestionURL} when no endpoint can be determined.
75624
76544
  */
75625
- async logPost(path, body) {
76545
+ async logPost(path, body, requestOverrides = {}) {
75626
76546
  const logBase = await this.resolveLogIngestionURL();
75627
76547
  const url = `${logBase}/${path}`;
75628
76548
  this.log.debug(`log posting to: ${url}`);
75629
76549
  return this._httpClient
75630
- .post(url, body ?? {}, this.createSimpleUserAuthorizedRequestConfig(undefined))
76550
+ .post(url, body ?? {}, {
76551
+ ...this.createSimpleUserAuthorizedRequestConfig(undefined),
76552
+ ...requestOverrides,
76553
+ })
75631
76554
  .then((response) => response.data)
75632
76555
  .catch((reason) => {
75633
76556
  if (reason.response || reason.request) {
@@ -76268,6 +77191,17 @@ class EventService {
76268
77191
  }
76269
77192
  /** Ingests a custom alarm event via the Jarvis ingestion API. */
76270
77193
  createAlarm(alarmEvent) {
77194
+ return this.createAlarms([alarmEvent]);
77195
+ }
77196
+ /**
77197
+ * Ingests several custom alarm documents in one Jarvis ingestion request.
77198
+ *
77199
+ * @remarks Each document's `alarm_unique_id` is its alarm's id: a second
77200
+ * document with the same id updates that alarm in place, a closed alarm
77201
+ * ignores every later document, and a CLOSED document for an id that was
77202
+ * never opened creates a closed alarm.
77203
+ */
77204
+ createAlarms(alarmEvents, requestOverrides = {}) {
76271
77205
  const ingestionBody = {
76272
77206
  documents: [
76273
77207
  {
@@ -76278,14 +77212,14 @@ class EventService {
76278
77212
  product_id: 'ao',
76279
77213
  unique_id: "$['alarm_unique_id']",
76280
77214
  },
76281
- body: [alarmEvent],
77215
+ body: [...alarmEvents],
76282
77216
  },
76283
77217
  ],
76284
77218
  };
76285
- this.log.debug('createAlarm', JSON.stringify(ingestionBody, null, 2));
77219
+ this.log.debug('createAlarms', JSON.stringify(ingestionBody, null, 2));
76286
77220
  return this.dxSaaSService.oiPost('jarvis/v2/ingestion', ingestionBody, {}, {
76287
77221
  index_name: 'ao_itoa_alarms_custom_1',
76288
- });
77222
+ }, requestOverrides);
76289
77223
  }
76290
77224
  /** Ingests a custom event (non-change) via the Jarvis ingestion API. */
76291
77225
  createEvent(changeEvent) {
@@ -80508,8 +81442,93 @@ function detectIPv4() {
80508
81442
  function orDefault(value, fallback) {
80509
81443
  return value ? value : fallback;
80510
81444
  }
80511
- /** Ingestion path on the log gateway — the uim_logs pipeline shared with the on-prem log collector. */
81445
+ /**
81446
+ * A source file slot the platform can actually parse.
81447
+ *
81448
+ * The Kafka consumer's pattern for slot 8 matches only a dotted token. When it does not match, the
81449
+ * parse slides and the record is stored wrong: `tags` swallows the middle, `file` takes the
81450
+ * second-to-last word of the message, and `message` keeps only the last word. Measured on a lab
81451
+ * tenant (2026-09-16, issue #620): `orig.file` parsed, while `orig-file`, `orig_file` and `origfile`
81452
+ * each corrupted the record. Producers that pass a Java logger name never saw it, because those are
81453
+ * dotted; `broker-events` or a bare integration name did.
81454
+ *
81455
+ * Appending `.log` makes the slot parseable and leaves a value that already has a dot untouched.
81456
+ */
81457
+ function dottedFileSlot(value) {
81458
+ return value.includes('.') ? value : `${value}.log`;
81459
+ }
81460
+ /**
81461
+ * Ingestion path on the log gateway — the uim_logs pipeline shared with the
81462
+ * on-prem log collector. POSTed under the log gateway base (no cohort
81463
+ * segment) via {@link DxSaasService.logPost}.
81464
+ */
80512
81465
  const UIM_LOGS_INGESTION_PATH = 'mdo/v2/aoanalytics/ingestion/uim_logs';
81466
+ /**
81467
+ * Builds the uim_logs document for one log entry — the pure form of
81468
+ * {@link LogsService.buildLogPayload}, for producers that own their own
81469
+ * transport (a monitoring loop's log shipper) but must stay byte-compatible
81470
+ * with what `dx-do log ingest` sends.
81471
+ *
81472
+ * @param cohortId - The tenant's cohort id as it appears in the profile; it is
81473
+ * upper-cased into `tenant_id` and the first `temp_fields` slot.
81474
+ * @param options - Known log entry fields (`message` required; the rest
81475
+ * optional with sensible defaults). Validated against
81476
+ * {@link LogIngest.LogIngestOptionsSchema}.
81477
+ * @param additionalFields - Arbitrary extra fields to include in the indexed
81478
+ * document. `severity` and `logseverity` (any letter case) are refused:
81479
+ * severity travels through `options.severity` and is emitted as `logseverity`.
81480
+ * @remarks `options.file` is passed through {@link dottedFileSlot}: a source file
81481
+ * without a dot gets `.log` appended, because the platform's positional parse
81482
+ * only matches a dotted source file and corrupts the record otherwise (#620).
81483
+ * @throws ZodError if `options` fails schema validation.
81484
+ * @throws Error if `additionalFields` names a reserved field.
81485
+ */
81486
+ function buildUimLogPayload(cohortId, options, additionalFields) {
81487
+ LogIngest.LogIngestOptionsSchema.parse(options);
81488
+ for (const key of Object.keys(additionalFields ?? {})) {
81489
+ if (LogIngest.isReservedLogField(key)) {
81490
+ throw new Error(`additional field '${key}' is reserved: pass severity through the 'severity' option — it is sent as 'logseverity'`);
81491
+ }
81492
+ }
81493
+ const tenantIdUpper = cohortId.toUpperCase();
81494
+ // `orDefault` (not `??`) so an explicit empty string is treated as omitted —
81495
+ // a blank value in any temp_fields component shifts every downstream
81496
+ // positional field. See the temp_fields comment below.
81497
+ const logtype = orDefault(options.logtype, 'generic');
81498
+ const host = orDefault(options.host, hostname());
81499
+ const ip = orDefault(options.ip, detectIPv4());
81500
+ const agentInstance = orDefault(options.agentInstance, 'dx-do');
81501
+ const agentName = orDefault(options.agentName, 'Logs Collector');
81502
+ const containerId = orDefault(options.containerId, host);
81503
+ const containerName = orDefault(options.containerName, agentInstance);
81504
+ // A source file without a dot corrupts the whole record; see dottedFileSlot.
81505
+ const file = dottedFileSlot(orDefault(options.file, 'dx-do.cli'));
81506
+ const tag = `${logtype} logs`;
81507
+ // temp_fields must have exactly 9 space-separated components before the message
81508
+ // is appended by the SaaS filter (agentbase_msg = temp_fields + " " + message).
81509
+ // The Kafka consumer parses positionally: [0]=tenant [1]=logtype [2]=host
81510
+ // [3]=container_id [4]=container_name [5]=ip [6-7]=tags [8]=source_file [9+]=message.
81511
+ const temp_fields = `${tenantIdUpper} ${logtype} ${host} ${containerId} ${containerName} ${ip} ${tag} ${file}`;
81512
+ return {
81513
+ '@timestamp': options.timestamp ?? new Date().toISOString(),
81514
+ // logtype must be top-level: the SaaS filter does `update => ["type", "%{logtype}"]`
81515
+ // which drives Kafka consumer index routing — without it type stays as "ingestionapi"
81516
+ logtype,
81517
+ // The platform indexes severity as `logseverity`; a bare `severity` is
81518
+ // silently dropped, which is why both are reserved as custom fields.
81519
+ logseverity: options.severity ?? LogIngest.DEFAULT_LOG_SEVERITY,
81520
+ message: options.message,
81521
+ host: { name: host, hostname: host },
81522
+ tenant_id: tenantIdUpper,
81523
+ temp_fields,
81524
+ tags: [tag],
81525
+ __agent_name: agentName,
81526
+ __agent_instance: agentInstance,
81527
+ container_id: containerId,
81528
+ container_name: containerName,
81529
+ ...additionalFields,
81530
+ };
81531
+ }
80513
81532
  /**
80514
81533
  * Service for querying and ingesting log analytics data.
80515
81534
  */
@@ -80550,50 +81569,7 @@ class LogsService {
80550
81569
  * @throws Error if `additionalFields` names a reserved field.
80551
81570
  */
80552
81571
  buildLogPayload(options, additionalFields) {
80553
- LogIngest.LogIngestOptionsSchema.parse(options);
80554
- for (const key of Object.keys(additionalFields ?? {})) {
80555
- if (LogIngest.isReservedLogField(key)) {
80556
- throw new Error(`additional field '${key}' is reserved: pass severity through the 'severity' option — it is sent as 'logseverity'`);
80557
- }
80558
- }
80559
- const cohortId = this.dxSaasService.dxdoConfiguration.dxConfiguration.cohortId;
80560
- const tenantIdUpper = cohortId.toUpperCase();
80561
- // `orDefault` (not `??`) so an explicit empty string is treated as omitted —
80562
- // a blank value in any temp_fields component shifts every downstream
80563
- // positional field. See the temp_fields comment below.
80564
- const logtype = orDefault(options.logtype, 'generic');
80565
- const host = orDefault(options.host, hostname());
80566
- const ip = orDefault(options.ip, detectIPv4());
80567
- const agentInstance = orDefault(options.agentInstance, 'dx-do');
80568
- const agentName = orDefault(options.agentName, 'Logs Collector');
80569
- const containerId = orDefault(options.containerId, host);
80570
- const containerName = orDefault(options.containerName, agentInstance);
80571
- const file = orDefault(options.file, 'dx-do.cli');
80572
- const tag = `${logtype} logs`;
80573
- // temp_fields must have exactly 9 space-separated components before the message
80574
- // is appended by the SaaS filter (agentbase_msg = temp_fields + " " + message).
80575
- // The Kafka consumer parses positionally: [0]=tenant [1]=logtype [2]=host
80576
- // [3]=container_id [4]=container_name [5]=ip [6-7]=tags [8]=source_file [9+]=message.
80577
- const temp_fields = `${tenantIdUpper} ${logtype} ${host} ${containerId} ${containerName} ${ip} ${tag} ${file}`;
80578
- return {
80579
- '@timestamp': options.timestamp ?? new Date().toISOString(),
80580
- // logtype must be top-level: the SaaS filter does `update => ["type", "%{logtype}"]`
80581
- // which drives Kafka consumer index routing — without it type stays as "ingestionapi"
80582
- logtype,
80583
- // The platform indexes severity as `logseverity`; a bare `severity` is
80584
- // silently dropped, which is why both are reserved as custom fields.
80585
- logseverity: options.severity ?? LogIngest.DEFAULT_LOG_SEVERITY,
80586
- message: options.message,
80587
- host: { name: host, hostname: host },
80588
- tenant_id: tenantIdUpper,
80589
- temp_fields,
80590
- tags: [tag],
80591
- __agent_name: agentName,
80592
- __agent_instance: agentInstance,
80593
- container_id: containerId,
80594
- container_name: containerName,
80595
- ...additionalFields,
80596
- };
81572
+ return buildUimLogPayload(this.dxSaasService.dxdoConfiguration.dxConfiguration.cohortId, options, additionalFields);
80597
81573
  }
80598
81574
  /**
80599
81575
  * Ingests a single log entry into the log gateway.
@@ -82609,6 +83585,27 @@ class ServiceService {
82609
83585
  const { body } = await this.buildServiceContentBody(serviceName, newContent, mode);
82610
83586
  return this.createService(body, { replace: true });
82611
83587
  }
83588
+ /**
83589
+ * Builds the store body for changing a service's own attributes (description,
83590
+ * location, tags, custom properties, includeChildServices) WITHOUT saving.
83591
+ * Re-saves the full subtree (via {@link buildHierarchyBody}) so the children
83592
+ * edges survive `replace=true`; only the target vertex changes. The name and
83593
+ * the service type are never patched — both are fixed at creation (the server
83594
+ * does not allow renames and ignores a `serviceType` change on a re-save).
83595
+ *
83596
+ * @returns the store body plus human-readable change lines (empty = no-op).
83597
+ * @throws Error if the service does not exist.
83598
+ */
83599
+ async buildServiceUpdateBody(serviceName, patch) {
83600
+ const body = await this.buildHierarchyBody(serviceName);
83601
+ const changes = ServiceTransform.applyServiceUpdate(body, serviceName, patch);
83602
+ return { body, changes };
83603
+ }
83604
+ /** Updates a service's attributes and saves it. See {@link buildServiceUpdateBody}. */
83605
+ async updateService(serviceName, patch) {
83606
+ const { body } = await this.buildServiceUpdateBody(serviceName, patch);
83607
+ return this.createService(body, { replace: true });
83608
+ }
82612
83609
  /** Deletes a service by name; optionally deletes child services recursively. */
82613
83610
  async deleteService(serviceName, recursive = false) {
82614
83611
  return this.dxSaaSService.tenantPost('/oi/v2/sa/service/status', { name: serviceName, action: 'delete' }, { recursive });
@@ -82628,19 +83625,23 @@ class ServiceService {
82628
83625
  },
82629
83626
  };
82630
83627
  }
82631
- /** Builds an empty (no-content) service vertex payload ready to be populated. */
82632
- generateEmptyServiceVertex(serviceName, serviceDescription, situationsIncludeChildServices, tags = [], customProperties = []) {
83628
+ /**
83629
+ * Builds an empty (no-content) service vertex payload ready to be populated.
83630
+ * @param serviceType - `Service` (default) | `Application` | `Group`.
83631
+ */
83632
+ generateEmptyServiceVertex(serviceName, serviceDescription, situationsIncludeChildServices, tags = [], customProperties = [], serviceType = 'Service', location = '') {
82633
83633
  return {
82634
83634
  attributes: {
82635
83635
  type: 'saService',
82636
83636
  name: serviceName,
83637
+ serviceType,
82637
83638
  state: 'ACTIVE',
82638
83639
  maintenance: false,
82639
83640
  situationsIncludeChildServices,
82640
83641
  serviceContent: [],
82641
83642
  root_service: null,
82642
83643
  tags,
82643
- location: '',
83644
+ location,
82644
83645
  description: serviceDescription,
82645
83646
  customProperties,
82646
83647
  customMetrics: [],
@@ -83482,17 +84483,20 @@ class DataStoreMetricsMetadataService {
83482
84483
  * schema validation, a warning is logged but the raw API response is
83483
84484
  * still returned.
83484
84485
  *
84486
+ * @param requestOverrides - Per-call `timeout` / `signal`; registration is
84487
+ * an idempotent upsert, so a caller may safely retry after a timeout.
84488
+ *
83485
84489
  * @throws ZodError if the request fails schema validation — including the
83486
84490
  * tag-registration restrictions ("@tags" non-empty, every listed tag
83487
84491
  * present with a non-empty string value, TYPE_TAGS never set without tags).
83488
84492
  */
83489
- async registerMetrics(metrics, sync) {
84493
+ async registerMetrics(metrics, sync, requestOverrides = {}) {
83490
84494
  const body = {
83491
84495
  metrics: metrics.map((m) => ensureTypeTagsFlag(m)),
83492
84496
  ...(sync !== undefined ? { sync } : {}),
83493
84497
  };
83494
84498
  MetricRegisterRequestSchema.parse(body);
83495
- const raw = await this.dxSaasService.tenantPost('metadata/registerMetric', body);
84499
+ const raw = await this.dxSaasService.tenantPost('metadata/registerMetric', body, undefined, {}, requestOverrides);
83496
84500
  const result = MetricRegisterResponseSchema.safeParse(raw);
83497
84501
  if (!result.success) {
83498
84502
  this.log.warn('MetricRegisterResponse validation warning:', result.error.message);
@@ -83500,8 +84504,8 @@ class DataStoreMetricsMetadataService {
83500
84504
  return raw;
83501
84505
  }
83502
84506
  /** Registers a single metric. Convenience wrapper around {@link registerMetrics}. */
83503
- async registerMetric(metric, sync) {
83504
- return this.registerMetrics([metric], sync);
84507
+ async registerMetric(metric, sync, requestOverrides = {}) {
84508
+ return this.registerMetrics([metric], sync, requestOverrides);
83505
84509
  }
83506
84510
  /**
83507
84511
  * POSTs a metadata query to `/metadata/queryMetric` and returns the matching
@@ -83758,15 +84762,18 @@ class DataStoreTASService {
83758
84762
  * POSTs a graph to `/tas/graph/store` and returns the store result including
83759
84763
  * any failed vertices or edges.
83760
84764
  *
83761
- * @remarks The request is validated against {@link TasStoreGraphInputSchema}.
83762
- * If the response fails schema validation, a warning is logged but the raw
83763
- * API response is still returned.
84765
+ * @remarks The request is validated against {@link TasStoreGraphInputSchema}
84766
+ * (externalId-keyed vertices and edges — the ingestion contract; numeric
84767
+ * ids are optional). If the response fails schema validation, a warning is
84768
+ * logged but the raw API response is still returned.
84769
+ * @param requestOverrides - Per-call `timeout` / `signal`; the store is
84770
+ * idempotent, so a caller may safely retry after a timeout.
83764
84771
  *
83765
84772
  * @throws ZodError if the request fails schema validation.
83766
84773
  */
83767
- async storeGraph(input) {
84774
+ async storeGraph(input, requestOverrides = {}) {
83768
84775
  TasStoreGraphInputSchema.parse(input);
83769
- const raw = await this.dxSaasService.tenantPost('tas/graph/store', input);
84776
+ const raw = await this.dxSaasService.tenantPost('tas/graph/store', input, undefined, {}, requestOverrides);
83770
84777
  const result = TasStoreGraphResponseSchema.safeParse(raw);
83771
84778
  if (!result.success) {
83772
84779
  this.log.warn('TasStoreGraphResponse validation warning:', result.error.message);
@@ -84194,13 +85201,17 @@ class DataStoreNASSService {
84194
85201
  * @remarks The request is validated against {@link NassStoreRequestSchema}.
84195
85202
  * If the response fails schema validation, a warning is logged but the raw
84196
85203
  * API response is still returned.
85204
+ * @param requestOverrides - Per-call `timeout` / `signal`. A store is NOT
85205
+ * idempotent: a second write to the same `(metricId, timestamp)` merges
85206
+ * with the first, so only retry when the request provably never reached
85207
+ * the server.
84197
85208
  *
84198
85209
  * @throws ZodError if any datapoint fails schema validation.
84199
85210
  */
84200
- async storeMetricValues(values) {
85211
+ async storeMetricValues(values, requestOverrides = {}) {
84201
85212
  const body = { values };
84202
85213
  NassStoreRequestSchema.parse(body);
84203
- const raw = await this.dxSaasService.tenantPost('nass/metricValue/store', body);
85214
+ const raw = await this.dxSaasService.tenantPost('nass/metricValue/store', body, undefined, {}, requestOverrides);
84204
85215
  const result = NassStoreResponseSchema.safeParse(raw);
84205
85216
  if (!result.success) {
84206
85217
  this.log.warn('NassStoreResponse validation warning:', result.error.message);
@@ -84660,5 +85671,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
84660
85671
  };
84661
85672
  }
84662
85673
 
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 };
85674
+ 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, CreateServices, 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, TasStoreAttributeValueSchema, TasStoreChangeSchema, TasStoreEdgeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasStoreGraphSchema, TasStoreVertexSchema, 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, UIM_LOGS_INGESTION_PATH, 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, buildUimLogPayload, 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, dottedFileSlot, 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
85675
  //# sourceMappingURL=index.esm.js.map