@dx-do/client 7.14.0 → 7.16.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 (31) hide show
  1. package/dist/index.cjs.js +676 -176
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +665 -177
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/index.d.ts +4 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/lib/model/alarm/alarm-record.d.ts +53 -0
  8. package/dist/src/lib/model/alarm/alarm-record.d.ts.map +1 -0
  9. package/dist/src/lib/model/datastore/tas/filters.d.ts +11 -10
  10. package/dist/src/lib/model/datastore/tas/filters.d.ts.map +1 -1
  11. package/dist/src/lib/model/oi/alarms.d.ts +12 -0
  12. package/dist/src/lib/model/oi/alarms.d.ts.map +1 -1
  13. package/dist/src/lib/model/oi/services.d.ts +2 -0
  14. package/dist/src/lib/model/oi/services.d.ts.map +1 -1
  15. package/dist/src/lib/model/security/MeResponse.d.ts +2 -0
  16. package/dist/src/lib/model/security/MeResponse.d.ts.map +1 -1
  17. package/dist/src/lib/services/alarm-export.d.ts +85 -0
  18. package/dist/src/lib/services/alarm-export.d.ts.map +1 -0
  19. package/dist/src/lib/services/alarm-window-search.d.ts +59 -0
  20. package/dist/src/lib/services/alarm-window-search.d.ts.map +1 -0
  21. package/dist/src/lib/services/alarm.service.d.ts +57 -4
  22. package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
  23. package/dist/src/lib/services/dxoi.service.d.ts +15 -3
  24. package/dist/src/lib/services/dxoi.service.d.ts.map +1 -1
  25. package/dist/src/lib/services/lifecycle-pages.d.ts +20 -0
  26. package/dist/src/lib/services/lifecycle-pages.d.ts.map +1 -0
  27. package/dist/src/lib/services/service.service.d.ts +18 -4
  28. package/dist/src/lib/services/service.service.d.ts.map +1 -1
  29. package/dist/src/lib/services/situation.service.d.ts +9 -2
  30. package/dist/src/lib/services/situation.service.d.ts.map +1 -1
  31. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -2071,6 +2071,65 @@ function buildAlarmFilterUpdateBody(existing, patch) {
2071
2071
  return { body, changes };
2072
2072
  }
2073
2073
 
2074
+ /**
2075
+ * One alarm as stored in the alarms analytics index
2076
+ * (`GET oi/v2/aoanalytics/alarms/alarms_all/_search`): one record per alarm,
2077
+ * updated in place. Times are ISO strings with a `+0000` offset, whole seconds.
2078
+ * Fields vary by source product; the declared ones were present on every
2079
+ * sampled record unless marked optional (demo-dev, 2026-10-22).
2080
+ */
2081
+ const AlarmRecordSchema = z.looseObject({
2082
+ alarm_unique_id: z
2083
+ .string()
2084
+ .describe('The alarm id; the same value the alarm search returns as `alarmId`'),
2085
+ status: z.string().describe('Current status: NEW, UPDATED or CLOSED'),
2086
+ severity: z.string().optional().describe('Current severity, as the source sent it'),
2087
+ startTime: z
2088
+ .string()
2089
+ .describe('When the alarm opened (the search\'s `timeOrigin`), ISO `+0000`'),
2090
+ closedTime: z
2091
+ .string()
2092
+ .optional()
2093
+ .describe('When the alarm closed, ISO `+0000`; present exactly when status is CLOSED'),
2094
+ timestamp: z
2095
+ .string()
2096
+ .optional()
2097
+ .describe('Time of the last document the source sent for this alarm (last update), ISO `+0000` — not the open time'),
2098
+ product: z.string().optional().describe('Source product that raised the alarm'),
2099
+ host: z.string().optional().describe('Host the alarm is about'),
2100
+ alarmType: z.string().optional().describe('Alarm type'),
2101
+ message: z.string().optional().describe('Current alarm message'),
2102
+ external_ids: z
2103
+ .array(z.string())
2104
+ .nullable()
2105
+ .optional()
2106
+ .describe('TAS external ids of the entities the alarm is about; null on some records (demo-dev: 4828 of 72747)'),
2107
+ services_impacted: z
2108
+ .array(z.string())
2109
+ .optional()
2110
+ .describe('Names of the services the alarm impacts (from enrichment)'),
2111
+ '@timestamp': z.number().optional().describe('When the record was last indexed, epoch ms'),
2112
+ });
2113
+ /** The analytics search response: Elasticsearch-shaped hits. */
2114
+ const AlarmRecordSearchResponseSchema = z.looseObject({
2115
+ hits: z.looseObject({
2116
+ total: z
2117
+ .looseObject({
2118
+ value: z.number().describe('Number of matching records'),
2119
+ relation: z
2120
+ .string()
2121
+ .describe('`eq` when `value` is exact, `gte` when it is a lower bound (more than 10000)'),
2122
+ })
2123
+ .describe('Match count for the query'),
2124
+ hits: z
2125
+ .array(z.looseObject({
2126
+ _id: z.string().optional().describe('Index id: tenant id + alarm id'),
2127
+ _source: AlarmRecordSchema,
2128
+ }))
2129
+ .describe('The requested page of records'),
2130
+ }),
2131
+ });
2132
+
2074
2133
  var AlertDefinitionResponse;
2075
2134
  (function (AlertDefinitionResponse) {
2076
2135
  (function (AlertComparisonOperator) {
@@ -20394,6 +20453,15 @@ RedirectableRequest.prototype._sanitizeOptions = function (options) {
20394
20453
  if (!options.headers) {
20395
20454
  options.headers = {};
20396
20455
  }
20456
+ // Convert [header1, value1, header2, value2, …] to object
20457
+ else if (Array.isArray(options.headers)) {
20458
+ var headerList = options.headers;
20459
+ options.headers = {};
20460
+ for (var i = 0; i < headerList.length; i += 2) {
20461
+ options.headers[headerList[i]] = headerList[i + 1];
20462
+ }
20463
+ }
20464
+ // Ensure sensitive headers are always present
20397
20465
  if (!isArray$3(options.sensitiveHeaders)) {
20398
20466
  options.sensitiveHeaders = [];
20399
20467
  }
@@ -20793,7 +20861,7 @@ function isURL(value) {
20793
20861
  }
20794
20862
 
20795
20863
  function escapeRegex(regex) {
20796
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
20864
+ return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
20797
20865
  }
20798
20866
 
20799
20867
  // Exports
@@ -48682,7 +48750,9 @@ class StrictMap extends Map {
48682
48750
  * Redaction helpers for keeping auth tokens and other secrets out of logs.
48683
48751
  *
48684
48752
  * Auth tokens live in axios `error.config.headers` — e.g. `Authorization: Bearer
48685
- * <userToken>` and `X-Asm-Auth: <dxASMToken>`. Anything that serializes a whole
48753
+ * <userToken>` and `X-Asm-Auth: <dxASMToken>` — and in request bodies that carry a
48754
+ * token field (the audit record), which axios keeps as JSON text in
48755
+ * `error.config.data`. Anything that serializes a whole
48686
48756
  * error / config / headers object (`JSON.stringify`, an AxiosError's `.toJSON()`,
48687
48757
  * `console.log(err)`, or a logger that deep-prints its argument) will spill them.
48688
48758
  * These helpers strip the secrets before anything is logged or re-thrown.
@@ -48702,14 +48772,52 @@ const SENSITIVE_KEYS = new Set([
48702
48772
  'agenttoken',
48703
48773
  'accesstoken',
48704
48774
  'refreshtoken',
48775
+ 'authtoken',
48776
+ 'revoketoken',
48705
48777
  'password',
48706
48778
  'apikey',
48779
+ // Legacy (pre-v3) dx-do profile secrets.
48780
+ 'dashboardapikey',
48781
+ 'camanagementcookie',
48782
+ 'oiuserkey',
48707
48783
  'x-api-key',
48784
+ // Notification-channel write bodies (webhook auth, ServiceNow OAuth).
48785
+ 'tokenvalue',
48786
+ 'clientsecret',
48787
+ 'client_secret',
48788
+ 'certprivatekeybase64',
48708
48789
  ]);
48790
+ /**
48791
+ * Names that mark a credential where the name is data, not the object key: a
48792
+ * custom header inside a `headers` map (`X-Auth-Token`), or a name/value
48793
+ * property entry (`{ propertyName: 'ITSM_ServiceMgmt_Password', propertyValue }`
48794
+ * in a ServiceNow channel body).
48795
+ */
48796
+ const SECRET_NAME = /authorization|token|secret|password|key|cookie/i;
48709
48797
  /** Matches `Bearer <token>` anywhere in a string. */
48710
48798
  const BEARER = /Bearer\s+\S+/gi;
48799
+ /** Matches a `"key": "value"` pair in JSON text, capturing the key and separator. */
48800
+ const JSON_STRING_PAIR = /"([^"\\]+)"(\s*:\s*)"(?:[^"\\]|\\.)*"/g;
48801
+ /**
48802
+ * axios serializes a request body to a JSON string before sending, so an error's
48803
+ * `config.data` is text, not an object — and the audit record carries the user
48804
+ * token in that body (#994). JSON text is parsed and redacted by key; text that
48805
+ * does not parse (truncated, embedded in a message) has its sensitive
48806
+ * `"key": "value"` pairs masked by pattern.
48807
+ */
48711
48808
  function redactString(value) {
48712
- return value.replace(BEARER, `Bearer ${REDACTED}`);
48809
+ const trimmed = value.trimStart();
48810
+ if (trimmed.startsWith('{') || trimmed.startsWith('[')) {
48811
+ try {
48812
+ return JSON.stringify(redactValue(JSON.parse(value)));
48813
+ }
48814
+ catch {
48815
+ // Not JSON — fall through to the pattern scrub.
48816
+ }
48817
+ }
48818
+ return value
48819
+ .replace(BEARER, `Bearer ${REDACTED}`)
48820
+ .replace(JSON_STRING_PAIR, (pair, key, separator) => SENSITIVE_KEYS.has(key.toLowerCase()) ? `"${key}"${separator}"${REDACTED}"` : pair);
48713
48821
  }
48714
48822
  /**
48715
48823
  * Returns a deep copy of `value` with sensitive object keys masked and any
@@ -48736,18 +48844,39 @@ function redactValue(value, seen = new WeakSet()) {
48736
48844
  stack: value.stack ? redactString(value.stack) : undefined,
48737
48845
  };
48738
48846
  }
48847
+ const record = value;
48848
+ const secretProperty = typeof record['propertyName'] === 'string' && SECRET_NAME.test(record['propertyName']);
48739
48849
  const out = {};
48740
- for (const [key, entry] of Object.entries(value)) {
48741
- out[key] = SENSITIVE_KEYS.has(key.toLowerCase())
48742
- ? REDACTED
48743
- : redactValue(entry, seen);
48850
+ for (const [key, entry] of Object.entries(record)) {
48851
+ if (SENSITIVE_KEYS.has(key.toLowerCase())) {
48852
+ out[key] = REDACTED;
48853
+ }
48854
+ else if (secretProperty && key === 'propertyValue') {
48855
+ out[key] = REDACTED;
48856
+ }
48857
+ else if (key.toLowerCase() === 'headers' && entry && typeof entry === 'object') {
48858
+ out[key] = redactHeaders(entry, seen);
48859
+ }
48860
+ else {
48861
+ out[key] = redactValue(entry, seen);
48862
+ }
48863
+ }
48864
+ return out;
48865
+ }
48866
+ function redactHeaders(headers, seen) {
48867
+ if (Array.isArray(headers))
48868
+ return redactValue(headers, seen);
48869
+ const out = {};
48870
+ for (const [name, entry] of Object.entries(headers)) {
48871
+ out[name] = SECRET_NAME.test(name) ? REDACTED : redactValue(entry, seen);
48744
48872
  }
48745
48873
  return out;
48746
48874
  }
48747
48875
  /**
48748
48876
  * Strips auth tokens from an (possibly Axios) error IN PLACE and returns it, so it
48749
48877
  * stays a throwable `Error` with its stack intact but no longer carries the token
48750
- * in `config.headers`, `response.config.headers`, or the raw request header string.
48878
+ * in `config.headers`, `config.data` (the request body), their `response.config`
48879
+ * copies, or the raw request header string.
48751
48880
  * Non-error / non-axios values are returned unchanged.
48752
48881
  *
48753
48882
  * Use this at the axios boundary (a response error interceptor) so every catch,
@@ -48762,9 +48891,14 @@ function sanitizeAxiosError(err) {
48762
48891
  return err;
48763
48892
  if (e.config?.headers)
48764
48893
  e.config.headers = redactValue(e.config.headers);
48894
+ if (e.config?.data !== undefined)
48895
+ e.config.data = redactValue(e.config.data);
48765
48896
  if (e.response?.config?.headers) {
48766
48897
  e.response.config.headers = redactValue(e.response.config.headers);
48767
48898
  }
48899
+ if (e.response?.config?.data !== undefined) {
48900
+ e.response.config.data = redactValue(e.response.config.data);
48901
+ }
48768
48902
  // Node's ClientRequest keeps the raw request (incl. the Authorization line) in `_header`.
48769
48903
  if (e.request && typeof e.request._header === 'string') {
48770
48904
  e.request._header = redactString(e.request._header);
@@ -49316,6 +49450,7 @@ const AttributeExpressionSchema = z.looseObject({
49316
49450
  operator: AttributeExpressionOperatorSchema.optional().describe('Comparison operator; defaults to IN'),
49317
49451
  layer: z
49318
49452
  .string()
49453
+ .nullable()
49319
49454
  .optional()
49320
49455
  .describe('Restrict the expression to attributes on a specific layer (overlays the filter-level layer if both set)'),
49321
49456
  comparator: AttributeExpressionComparatorSchema.optional().describe('Value-parsing mode for ordered comparisons; only consulted by GE/GT/LE/LT'),
@@ -49359,7 +49494,7 @@ const TraversalVertexFilterSchema = z.looseObject({
49359
49494
  op: z.string().optional().describe('Op discriminator (ALL/NONE/AND/OR/NOT/ATTRIBUTE/LAYER/VERTEX)'),
49360
49495
  input: z.lazy(() => z.array(TraversalVertexFilterSchema)).optional(),
49361
49496
  expressions: z.array(AttributeExpressionSchema).optional(),
49362
- layer: z.string().optional(),
49497
+ layer: z.string().nullable().optional(),
49363
49498
  values: z.array(z.string()).optional(),
49364
49499
  vertexId: z.array(z.number()).optional(),
49365
49500
  });
@@ -49597,6 +49732,7 @@ const TasAttributeFilterSchema = z.looseObject({
49597
49732
  .describe('Attribute expressions; all must match (AND)'),
49598
49733
  layer: z
49599
49734
  .string()
49735
+ .nullable()
49600
49736
  .optional()
49601
49737
  .describe('Restrict to attributes on a single layer (overlays per-expression layer)'),
49602
49738
  mode: TasAttributeFilterModeSchema.optional().describe('How vertex/edge matching propagates; defaults to VERTEX_AND_RELATED_EDGES'),
@@ -49651,17 +49787,22 @@ const TasVertexIdFilterSchema = z.looseObject({
49651
49787
  * hierarchy as defined in the Service Definition).
49652
49788
  *
49653
49789
  * Toggle `excludeSubServices=true` for an exact-service-only match;
49654
- * `includeServiceHierarchy=true` includes higher-level service ancestors
49655
- * in addition to descendants.
49790
+ * `includeServiceHierarchy=true` adds the `saService` vertices themselves
49791
+ * (the named services and, unless excluded, their sub-services) to the
49792
+ * member entities. It does not add ancestors (measured 2026-10-21).
49656
49793
  */
49657
49794
  const TasServiceFilterSchema = z.looseObject({
49658
49795
  op: z.literal('SERVICE'),
49659
49796
  input: TasFilterLazy.optional().describe('Optional input filter; defaults to ALL'),
49660
- values: z.array(z.string()).optional().describe('Service names to match'),
49797
+ values: z
49798
+ .array(z.string())
49799
+ .optional()
49800
+ .describe('Service names to match; required by the server (missing or empty is a 400), and no wildcard'),
49661
49801
  includeServiceHierarchy: z
49662
49802
  .boolean()
49663
49803
  .optional()
49664
- .describe('Include the entire service hierarchy (ancestors); defaults to false'),
49804
+ .describe('Also return the saService vertices of the matched services (named + sub-services, never ancestors); ' +
49805
+ 'the only way a direct TAS query reaches service vertices; defaults to false'),
49665
49806
  excludeSubServices: z
49666
49807
  .boolean()
49667
49808
  .optional()
@@ -49914,6 +50055,7 @@ const TasCollectAttributesFilterSchema = z.looseObject({
49914
50055
  .describe('Name of the vertex attribute whose values to collect (e.g. "type", "name")'),
49915
50056
  layer: z
49916
50057
  .string()
50058
+ .nullable()
49917
50059
  .optional()
49918
50060
  .describe('Restrict collection to this layer; omit or null for all layers'),
49919
50061
  includeIds: z
@@ -49948,6 +50090,7 @@ const TasCollectAttributeNamesFilterSchema = z.looseObject({
49948
50090
  .describe('Unique key; result appears in analytics[] under this id'),
49949
50091
  layer: z
49950
50092
  .string()
50093
+ .nullable()
49951
50094
  .optional()
49952
50095
  .describe('Restrict to this layer; omit or null for all layers'),
49953
50096
  });
@@ -49988,6 +50131,7 @@ const TasCollectVertexIdFilterSchema = z.looseObject({
49988
50131
  .describe('Unique key; result appears in analytics[] under this id'),
49989
50132
  layer: z
49990
50133
  .string()
50134
+ .nullable()
49991
50135
  .optional()
49992
50136
  .describe('Restrict to this layer; omit or null for all layers'),
49993
50137
  skipBackends: z
@@ -50072,6 +50216,7 @@ const TasCollectExperienceAttributesFilterSchema = z.looseObject({
50072
50216
  .describe('Attribute whose values to collect'),
50073
50217
  layer: z
50074
50218
  .string()
50219
+ .nullable()
50075
50220
  .optional()
50076
50221
  .describe('Restrict to this layer; omit or null for all'),
50077
50222
  caseInsensitive: z
@@ -63569,6 +63714,10 @@ var NASS;
63569
63714
 
63570
63715
  var OIAlarm;
63571
63716
  (function (OIAlarm) {
63717
+ /**
63718
+ * @deprecated Its `timeFrom`/`timeTo` are fixed when the module loads and it is a shared,
63719
+ * mutable object; build a fresh body per request instead.
63720
+ */
63572
63721
  OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY = {
63573
63722
  pageNumber: 0,
63574
63723
  pageSize: 50,
@@ -63590,6 +63739,10 @@ var OIAlarm;
63590
63739
  showMaintenanceAlarms: false,
63591
63740
  customFilter: {},
63592
63741
  };
63742
+ /**
63743
+ * @deprecated Its `timeFrom`/`timeTo` are fixed when the module loads and it is a shared,
63744
+ * mutable object; use {@link newAlarmSearchBody}.
63745
+ */
63593
63746
  OIAlarm.DEFAULT_ALARMS_REQUEST_BODY = {
63594
63747
  deviceNames: [],
63595
63748
  includeDeviceTypes: [],
@@ -63609,6 +63762,30 @@ var OIAlarm;
63609
63762
  showMaintenanceAlarms: false,
63610
63763
  customFilter: {},
63611
63764
  };
63765
+ /** A fresh `oi/v2/api/alarms/_search` body for `[timeFrom, timeTo]`, first page, nothing filtered. */
63766
+ function newAlarmSearchBody(timeFrom, timeTo, overrides = {}) {
63767
+ return {
63768
+ deviceNames: [],
63769
+ includeDeviceTypes: [],
63770
+ excludeDeviceTypes: [],
63771
+ groups: [],
63772
+ like: '',
63773
+ timeFrom,
63774
+ timeTo,
63775
+ pageNumber: 0,
63776
+ pageSize: 50,
63777
+ services: [],
63778
+ includeSeverity: [],
63779
+ allOtherSeverity: false,
63780
+ includeAlarmTypes: [],
63781
+ excludeAlarmTypes: [],
63782
+ includeClosedAlarms: false,
63783
+ showMaintenanceAlarms: false,
63784
+ customFilter: {},
63785
+ ...overrides,
63786
+ };
63787
+ }
63788
+ OIAlarm.newAlarmSearchBody = newAlarmSearchBody;
63612
63789
  })(OIAlarm || (OIAlarm = {}));
63613
63790
 
63614
63791
  var CreateServices;
@@ -64147,7 +64324,7 @@ var OIService;
64147
64324
  OIService.DEFAULT_SERVICE_REQUEST_PROJECTION_FILTER = ["maintenance", "availability_lastday", "availability", "health", "extId", "name", "risk", "trend", "healthBucket"];
64148
64325
  OIService.TYPICAL_SERVICE_REQUEST_PROJECTION_FILTER = ["rollupFilteredAlarmCount", "situationCount", "availability", "filteredParent", "availability_lastday",
64149
64326
  "immediateFilteredChildren", "immediateFilterChildrenCount", "health", "extId", "location", "maintenance",
64150
- "name", "risk", "status", "tags", "serviceMetricGroups", "healthBucket"];
64327
+ "name", "risk", "status", "tags", "serviceMetricGroups", "healthBucket", "customProperties"];
64151
64328
  /** @internal */
64152
64329
  OIService.DEFAULT_SERVICE_REQUEST_BODY = {
64153
64330
  "time": DateTime.now().toMillis(),
@@ -70578,7 +70755,283 @@ class AgentService {
70578
70755
  }
70579
70756
  }
70580
70757
 
70581
- var DEFAULT_ALARMS_REQUEST_BODY$1 = OIAlarm.DEFAULT_ALARMS_REQUEST_BODY;
70758
+ /**
70759
+ * Most alarms one `oi/v2/api/alarms/_search` request returns, whatever
70760
+ * `pageSize` asks for (1001, 2000 and 5000 all answered 1000; measured on
70761
+ * demo-dev 2026-10-22). `pageNumber` > 0 answers an empty page, so a range
70762
+ * holding more alarms can only be read by splitting it.
70763
+ */
70764
+ const ALARM_SEARCH_PAGE_CAP = 1000;
70765
+ /**
70766
+ * A complete read of an alarm range was not possible. Thrown instead of
70767
+ * returning a partial set, so a caller never mistakes a short list for the
70768
+ * whole range.
70769
+ */
70770
+ class IncompleteAlarmSearchError extends Error {
70771
+ reason;
70772
+ expected;
70773
+ retrieved;
70774
+ constructor(reason, expected, retrieved, detail) {
70775
+ super(`Alarm search incomplete (${reason}): ${detail}`);
70776
+ this.reason = reason;
70777
+ this.expected = expected;
70778
+ this.retrieved = retrieved;
70779
+ this.name = 'IncompleteAlarmSearchError';
70780
+ }
70781
+ }
70782
+ const updatedAt = (alarm) => Number(alarm.lastUpdateTime ?? 0);
70783
+ /**
70784
+ * Reads every alarm in `[from, to]`, splitting the range until each window
70785
+ * fits in one response.
70786
+ *
70787
+ * A window holds every alarm whose lifetime (`timeOrigin` to `closedTime`, or
70788
+ * now) overlaps it, so windows overlap and their counts do not add up; their
70789
+ * union is the range (measured: 448 of 448, 300 of them in both halves). The
70790
+ * merge keys on `alarmId` and keeps the copy with the later `lastUpdateTime`.
70791
+ *
70792
+ * Fails with {@link IncompleteAlarmSearchError} instead of returning less:
70793
+ * - `unsplittable` — more alarms than one response holds are present at a
70794
+ * single instant (every window containing it is over the cap);
70795
+ * - `changed` — the range's count moved during the read, or the merged set
70796
+ * does not match it (alarms arriving or backdated into the range);
70797
+ * - `request-budget` — `maxRequests` ran out.
70798
+ */
70799
+ async function searchAlarmWindows(search, from, to, options = {}) {
70800
+ const concurrency = options.concurrency ?? 4;
70801
+ const maxRequests = options.maxRequests ?? 2000;
70802
+ const log = options.log ?? new Logging.NullSimpleLog();
70803
+ const alarms = new Map();
70804
+ let requests = 0;
70805
+ let windows = 0;
70806
+ let expected = 0;
70807
+ const merge = (page) => {
70808
+ for (const alarm of page.alarms) {
70809
+ const seen = alarms.get(alarm.alarmId);
70810
+ if (!seen || updatedAt(alarm) > updatedAt(seen))
70811
+ alarms.set(alarm.alarmId, alarm);
70812
+ }
70813
+ };
70814
+ const complete = (page) => page.count <= page.alarms.length;
70815
+ const request = async (w) => {
70816
+ if (requests >= maxRequests) {
70817
+ throw new IncompleteAlarmSearchError('request-budget', expected, alarms.size, `${maxRequests} requests made, ${alarms.size} of ${expected} alarms read`);
70818
+ }
70819
+ requests++;
70820
+ return search(w.from, w.to);
70821
+ };
70822
+ const first = await request({ from, to });
70823
+ expected = first.count;
70824
+ if (complete(first)) {
70825
+ merge(first);
70826
+ return { alarms, expected, requests, windows: 1 };
70827
+ }
70828
+ log.info(`${expected} alarms in range; reading it in windows of at most ${ALARM_SEARCH_PAGE_CAP}`);
70829
+ const pending = [{ from, to }];
70830
+ const split = (w) => {
70831
+ const mid = Math.floor((w.from + w.to) / 2);
70832
+ return [
70833
+ { from: w.from, to: mid },
70834
+ { from: mid, to: w.to },
70835
+ ];
70836
+ };
70837
+ const readWindow = async (w) => {
70838
+ if (w.to - w.from <= 1) {
70839
+ const page = await request(w);
70840
+ if (complete(page)) {
70841
+ merge(page);
70842
+ windows++;
70843
+ return [];
70844
+ }
70845
+ throw new IncompleteAlarmSearchError('unsplittable', expected, alarms.size, `${page.count} alarms are present at ${new Date(w.from).toISOString()}; ` +
70846
+ `one response holds at most ${page.alarms.length}`);
70847
+ }
70848
+ const page = await request(w);
70849
+ if (complete(page)) {
70850
+ merge(page);
70851
+ windows++;
70852
+ return [];
70853
+ }
70854
+ const mid = Math.floor((w.from + w.to) / 2);
70855
+ const instant = await request({ from: mid, to: mid + 1 });
70856
+ if (!complete(instant)) {
70857
+ throw new IncompleteAlarmSearchError('unsplittable', expected, alarms.size, `${instant.count} alarms are present at ${new Date(mid).toISOString()}; ` +
70858
+ `one response holds at most ${instant.alarms.length}`);
70859
+ }
70860
+ return split(w);
70861
+ };
70862
+ // Split the root once without re-reading it.
70863
+ pending.splice(0, 1, ...split({ from, to }));
70864
+ while (pending.length > 0) {
70865
+ const batch = pending.splice(0, concurrency);
70866
+ const next = await Promise.all(batch.map(readWindow));
70867
+ pending.push(...next.flat());
70868
+ }
70869
+ const last = await request({ from, to });
70870
+ if (last.count !== expected || alarms.size !== expected) {
70871
+ throw new IncompleteAlarmSearchError('changed', expected, alarms.size, `the range held ${expected} alarms at the start, ${last.count} at the end, ` +
70872
+ `and ${alarms.size} were read; alarms arrived or changed during the read`);
70873
+ }
70874
+ log.info(`Read ${alarms.size} alarms in ${windows} windows (${requests} requests)`);
70875
+ return { alarms, expected, requests, windows };
70876
+ }
70877
+
70878
+ /**
70879
+ * Most records one analytics query can reach: `from + size` over 10000 is
70880
+ * rejected ("Result window is too large"), and a count above it comes back as
70881
+ * a lower bound (`relation: gte`).
70882
+ */
70883
+ const ALARM_RECORD_WINDOW_CAP = 10_000;
70884
+ const ALARM_RECORD_PAGE_SIZE = 1000;
70885
+ /** An instant as the index's query syntax wants it: whole seconds, `+0000` (`Z` matches nothing). */
70886
+ const alarmRecordTime = (ms) => new Date(ms).toISOString().replace(/\.\d{3}Z$/, '+0000');
70887
+ /** Epoch ms of an index time such as `2026-10-22T06:17:39+0000`. */
70888
+ const parseAlarmRecordTime = (value) => Date.parse(value.replace(/([+-]\d{2})(\d{2})$/, '$1:$2'));
70889
+ const windowQuery = (segment, from, to) => {
70890
+ const range = `${segment.field}:[${alarmRecordTime(from)} TO ${alarmRecordTime(to)}}`;
70891
+ return segment.extra ? `${range} AND (${segment.extra})` : range;
70892
+ };
70893
+ /**
70894
+ * Streams every alarm record that `match` selects in `[from, to)`, in open-time
70895
+ * order, reading the analytics index in windows of at most
70896
+ * {@link ALARM_RECORD_WINDOW_CAP} records.
70897
+ *
70898
+ * First the range is planned: count-only requests split it until each window
70899
+ * holds at most the cap, which gives the exact total (the index itself reports
70900
+ * any total over 10000 as "at least 10000"). Then each window is paged with a
70901
+ * fixed sort and checked: the records read must be exactly its planned count. Otherwise it throws
70902
+ * {@link IncompleteAlarmSearchError} rather than yielding a partial export:
70903
+ * - `changed` — the window's count or contents moved during the read;
70904
+ * - `unsplittable` — more than 10000 records share one second;
70905
+ * - `request-budget` — `maxRequests` ran out.
70906
+ * Records already yielded stay valid; the error says where the export stopped.
70907
+ */
70908
+ async function* exportAlarmRecords(source, from, to, match, options = {}) {
70909
+ const maxRequests = options.maxRequests ?? 20_000;
70910
+ const windowCap = options.windowCap ?? ALARM_RECORD_WINDOW_CAP;
70911
+ const pageSize = options.pageSize ?? ALARM_RECORD_PAGE_SIZE;
70912
+ const log = options.log ?? new Logging.NullSimpleLog();
70913
+ const start = Math.floor(from / 1000) * 1000;
70914
+ const end = Math.ceil(to / 1000) * 1000;
70915
+ let requests = 0;
70916
+ let exported = 0;
70917
+ const call = async (fn) => {
70918
+ if (requests >= maxRequests) {
70919
+ throw new IncompleteAlarmSearchError('request-budget', exported, exported, `${maxRequests} requests made; ${exported} alarms exported before stopping`);
70920
+ }
70921
+ requests++;
70922
+ return fn();
70923
+ };
70924
+ const segments = [];
70925
+ if (match === 'opened')
70926
+ segments.push({ field: 'startTime', from: start, to: end });
70927
+ if (match === 'closed')
70928
+ segments.push({ field: 'closedTime', from: start, to: end });
70929
+ if (match === 'active') {
70930
+ segments.push({ field: 'startTime', from: start, to: end });
70931
+ // Opened earlier and still open at `from`: closed after it, or not closed.
70932
+ const stillOpen = `closedTime:{${alarmRecordTime(start)} TO *] OR (*:* -_exists_:closedTime)`;
70933
+ const earlier = `startTime:[* TO ${alarmRecordTime(start)}} AND (${stillOpen})`;
70934
+ const [first] = await call(() => source.page(earlier, 0, 1));
70935
+ if (first) {
70936
+ const earliest = Math.floor(parseAlarmRecordTime(first.startTime) / 1000) * 1000;
70937
+ segments.unshift({ field: 'startTime', from: earliest, to: start, extra: stillOpen });
70938
+ }
70939
+ }
70940
+ const startedAt = Date.now();
70941
+ // Plan: split until every window's count is exact and within the cap.
70942
+ const plan = async (segment, a, b, out) => {
70943
+ const count = await call(() => source.count(windowQuery(segment, a, b)));
70944
+ if (count.exact && count.total <= windowCap) {
70945
+ if (count.total > 0)
70946
+ out.push({ segment, from: a, to: b, count: count.total });
70947
+ return;
70948
+ }
70949
+ if (b - a <= 1000) {
70950
+ throw new IncompleteAlarmSearchError('unsplittable', count.total, 0, `more than ${windowCap} alarms at ${alarmRecordTime(a)}; nothing was exported`);
70951
+ }
70952
+ const mid = a + Math.floor((b - a) / 2000) * 1000;
70953
+ await plan(segment, a, mid, out);
70954
+ await plan(segment, mid, b, out);
70955
+ };
70956
+ const windows = [];
70957
+ for (const segment of segments) {
70958
+ if (segment.to > segment.from)
70959
+ await plan(segment, segment.from, segment.to, windows);
70960
+ }
70961
+ const total = windows.reduce((sum, w) => sum + w.count, 0);
70962
+ options.onPlan?.({ total, windows: windows.length, elapsedMs: Date.now() - startedAt });
70963
+ // Read: page each window with a fixed sort; it must still hold its planned count.
70964
+ for (const [i, w] of windows.entries()) {
70965
+ const query = windowQuery(w.segment, w.from, w.to);
70966
+ const records = [];
70967
+ const ids = new Set();
70968
+ for (let offset = 0; offset < w.count; offset += pageSize) {
70969
+ const page = await call(() => source.page(query, offset, pageSize));
70970
+ if (page.length === 0)
70971
+ break;
70972
+ for (const record of page) {
70973
+ if (!ids.has(record.alarm_unique_id)) {
70974
+ ids.add(record.alarm_unique_id);
70975
+ records.push(record);
70976
+ }
70977
+ }
70978
+ }
70979
+ const recount = await call(() => source.count(query));
70980
+ if (ids.size !== w.count || recount.total !== w.count) {
70981
+ throw new IncompleteAlarmSearchError('changed', total, exported, `window ${alarmRecordTime(w.from)} – ${alarmRecordTime(w.to)} held ${w.count} alarms when planned, ` +
70982
+ `${recount.total} after reading, and ${ids.size} distinct were read; ` +
70983
+ `${exported} of ${total} exported before it. Alarms changed during the read — retry, or end the range further in the past`);
70984
+ }
70985
+ for (const record of records) {
70986
+ exported++;
70987
+ yield record;
70988
+ }
70989
+ options.onWindow?.({
70990
+ from: w.from,
70991
+ to: w.to,
70992
+ records: records.length,
70993
+ index: i + 1,
70994
+ windows: windows.length,
70995
+ exported,
70996
+ total,
70997
+ elapsedMs: Date.now() - startedAt,
70998
+ });
70999
+ }
71000
+ log.info(`Exported ${exported} alarms (${requests} requests)`);
71001
+ }
71002
+
71003
+ /**
71004
+ * Events per `oi/v2/api/alarms/lifecycle/_search` request. The endpoint
71005
+ * reports `totalCount` and pages exactly: for an alarm with 54 events and a
71006
+ * situation with 69, pages of 10 or 20 equalled one read of 1000, same set
71007
+ * and order (THE_LABORATORY and demo-dev, 2026-10-22).
71008
+ */
71009
+ const LIFECYCLE_PAGE_SIZE = 1000;
71010
+ /**
71011
+ * Reads every page of a lifecycle (alarm or situation) until the server's
71012
+ * `totalCount` is reached. `totalCount` is returned as the server reported
71013
+ * it; if a page comes back empty first, the result holds fewer events and a
71014
+ * warning is logged, so a short read stays visible.
71015
+ */
71016
+ async function readLifecyclePages(fetchPage, label, log) {
71017
+ const events = [];
71018
+ let totalCount = '0';
71019
+ for (let pageNumber = 0;; pageNumber++) {
71020
+ const page = await fetchPage(pageNumber, LIFECYCLE_PAGE_SIZE);
71021
+ totalCount = page.totalCount ?? totalCount;
71022
+ const pageEvents = page.lifecycle_events ?? [];
71023
+ events.push(...pageEvents);
71024
+ if (events.length >= Number(totalCount))
71025
+ break;
71026
+ if (pageEvents.length === 0) {
71027
+ log.warn(`Lifecycle of ${label} stopped at ${events.length} of ${totalCount} events: page ${pageNumber} was empty`);
71028
+ break;
71029
+ }
71030
+ }
71031
+ return { totalCount, lifecycle_events: events };
71032
+ }
71033
+
71034
+ var newAlarmSearchBody = OIAlarm.newAlarmSearchBody;
70582
71035
  /**
70583
71036
  * Service for OI alarms: get, search, assign, acknowledge, clear, lifecycle,
70584
71037
  * enrichment rules, alarm queues, and related alarms.
@@ -70611,11 +71064,7 @@ class AlarmService {
70611
71064
  */
70612
71065
  async findAlarm(alarmId, lookbackMs, requestOverrides = {}) {
70613
71066
  const now = Date.now();
70614
- const body = {
70615
- ...DEFAULT_ALARMS_REQUEST_BODY$1,
70616
- timeFrom: now - lookbackMs,
70617
- timeTo: now,
70618
- pageNumber: 0,
71067
+ const body = newAlarmSearchBody(now - lookbackMs, now, {
70619
71068
  pageSize: 10,
70620
71069
  includeClosedAlarms: true,
70621
71070
  customFilter: {
@@ -70636,30 +71085,20 @@ class AlarmService {
70636
71085
  ],
70637
71086
  },
70638
71087
  },
70639
- };
71088
+ });
70640
71089
  const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body, undefined, undefined, requestOverrides);
70641
71090
  return (response.alarms ?? []).find((alarm) => alarm.alarmId === alarmId);
70642
71091
  }
70643
- /** Returns the overview (first alarm in a custom-filter search) for an alarm ID. */
71092
+ /**
71093
+ * Returns an open alarm of the last 30 days by its ID (the payload a channel
71094
+ * notification sends).
71095
+ *
71096
+ * @throws Error when no open alarm has that ID.
71097
+ */
70644
71098
  async getAlarmOverview(alarmId) {
70645
- const singleAlarmQuery = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', {
70646
- deviceNames: [],
70647
- includeDeviceTypes: [],
70648
- excludeDeviceTypes: [],
70649
- groups: [],
70650
- like: '',
70651
- timeFrom: Date.now(),
70652
- timeTo: Date.now() - 30 * 24 * 60 * 60 * 1000,
70653
- pageNumber: 0,
70654
- pageSize: 50,
70655
- services: [],
70656
- includeSeverity: [],
70657
- allOtherSeverity: false,
71099
+ const now = Date.now();
71100
+ const singleAlarmQuery = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', newAlarmSearchBody(now - 30 * 24 * 60 * 60 * 1000, now, {
70658
71101
  sortCol: '',
70659
- includeAlarmTypes: [],
70660
- excludeAlarmTypes: [],
70661
- includeClosedAlarms: false,
70662
- showMaintenanceAlarms: false,
70663
71102
  showAlarmsPartOfSituations: false,
70664
71103
  customFilter: {
70665
71104
  and: {
@@ -70679,13 +71118,12 @@ class AlarmService {
70679
71118
  ],
70680
71119
  },
70681
71120
  },
70682
- });
70683
- if (singleAlarmQuery.alarmCount) {
70684
- return singleAlarmQuery.alarms[0];
70685
- }
70686
- else {
70687
- throw new Error('Bad Alarm Query');
71121
+ }));
71122
+ const alarm = singleAlarmQuery.alarms?.[0];
71123
+ if (Number(singleAlarmQuery.alarmCount) > 0 && alarm) {
71124
+ return alarm;
70688
71125
  }
71126
+ throw new Error(`No open alarm ${alarmId} in the last 30 days`);
70689
71127
  }
70690
71128
  /** Sends a notification for an alarm to the specified channel with optional template/locale. */
70691
71129
  async triggerNotification(alarmId, notificationChannelName, template = '', locale = 'en-US') {
@@ -70802,12 +71240,20 @@ class AlarmService {
70802
71240
  this.simpleLog.debug('update request body', JSON.stringify(body, null, 2));
70803
71241
  return this.dxSaaSService.tenantPost('jarvis/v2/ingestion', body, {}, headers);
70804
71242
  }
70805
- /** Returns the lifecycle event history for a given alarm ID. */
71243
+ /**
71244
+ * Returns an alarm's whole lifecycle event history, newest first.
71245
+ *
71246
+ * @remarks Reads pages of 1000 until the server's `totalCount` is reached
71247
+ * (it used to ask for 20 and stop, dropping the oldest events, "Alarm
71248
+ * Opened" first). `totalCount` is returned as the server reported it; if a
71249
+ * page comes back empty early, the result holds fewer events and a warning
71250
+ * is logged.
71251
+ */
70806
71252
  async getAlarmLifeCycle(alarmId) {
70807
- const alarmLifeCycleRequestBody = {
70808
- alarmId: alarmId,
70809
- pageSize: '20',
70810
- pageNumber: '0',
71253
+ return readLifecyclePages((pageNumber, pageSize) => this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
71254
+ alarmId,
71255
+ pageSize: String(pageSize),
71256
+ pageNumber: String(pageNumber),
70811
71257
  sortCol: 'timestamp:desc',
70812
71258
  excludeFields: [
70813
71259
  'isolation_view_link',
@@ -70815,38 +71261,101 @@ class AlarmService {
70815
71261
  'alert_definition_link',
70816
71262
  'occurrence',
70817
71263
  ],
70818
- };
70819
- return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', alarmLifeCycleRequestBody);
71264
+ }), `alarm ${alarmId}`, this.simpleLog);
70820
71265
  }
70821
- /** Returns all alarms within a time range, with optional type/closed/filter params. */
70822
- async getAlarms(startTime, endTime, includedAlarmTypes = [], includeClosed = false, pageSize = 100, alarmFilter) {
70823
- const alarmRequestBody = {
70824
- ...DEFAULT_ALARMS_REQUEST_BODY$1,
70825
- };
70826
- alarmRequestBody.timeFrom = startTime.toMillis();
70827
- alarmRequestBody.timeTo = endTime.toMillis();
70828
- const alarmIdMap = new Map();
70829
- alarmRequestBody.includeAlarmTypes = includedAlarmTypes;
70830
- alarmRequestBody.includeClosedAlarms = includeClosed;
70831
- alarmRequestBody.pageSize = pageSize;
70832
- if (alarmFilter) {
70833
- alarmRequestBody.customFilter = alarmFilter;
70834
- }
70835
- this.simpleLog.info(`Retrieving first page of alarms with page size ${pageSize}`);
70836
- const alarmFirstPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
70837
- function mapAlarms(alarms) {
70838
- alarms.forEach((alarm) => {
70839
- if (!alarmIdMap.has(alarm.alarmId)) {
70840
- alarmIdMap.set(alarm.alarmId, alarm);
71266
+ /**
71267
+ * One alarm search over `[startTime, endTime]`: the exact number of alarms
71268
+ * in the range and the first `pageSize` of them (at most
71269
+ * {@link ALARM_SEARCH_PAGE_CAP}, whatever is asked). Use it where a sample
71270
+ * plus the true total is enough; {@link getAlarms} reads the whole range.
71271
+ */
71272
+ async searchAlarmPage(startTime, endTime, includedAlarmTypes = [], includeClosed = false, pageSize = ALARM_SEARCH_PAGE_CAP, alarmFilter) {
71273
+ return this.searchPage(startTime.toMillis(), endTime.toMillis(), {
71274
+ includedAlarmTypes,
71275
+ includeClosed,
71276
+ pageSize,
71277
+ alarmFilter,
71278
+ });
71279
+ }
71280
+ /**
71281
+ * Returns every alarm in `[startTime, endTime]`, keyed by `alarmId`.
71282
+ *
71283
+ * One search returns at most {@link ALARM_SEARCH_PAGE_CAP} alarms and cannot
71284
+ * be paged, so a larger range is read in windows and merged
71285
+ * (`searchAlarmWindows`). A window holds every alarm whose lifetime overlaps
71286
+ * it, so long-open alarms appear in all of them; the merge keeps one copy.
71287
+ *
71288
+ * @param pageSize - Ignored: each request asks for the server's
71289
+ * maximum. Kept for signature compatibility.
71290
+ * @throws IncompleteAlarmSearchError when the whole range cannot be read:
71291
+ * more alarms than one response holds at a single instant, alarms arriving
71292
+ * or backdated into the range during the read, or the request budget spent.
71293
+ * A partial set is never returned.
71294
+ */
71295
+ async getAlarms(startTime, endTime, includedAlarmTypes = [], includeClosed = false,
71296
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
71297
+ pageSize = 100, alarmFilter, options = {}) {
71298
+ const result = await searchAlarmWindows((from, to) => this.searchPage(from, to, {
71299
+ includedAlarmTypes,
71300
+ includeClosed,
71301
+ pageSize: ALARM_SEARCH_PAGE_CAP,
71302
+ alarmFilter,
71303
+ }), startTime.toMillis(), endTime.toMillis(), { log: this.simpleLog, ...options });
71304
+ this.simpleLog.info(`Retrieved ${result.alarms.size} of ${result.expected} alarms`);
71305
+ return result.alarms;
71306
+ }
71307
+ /**
71308
+ * Streams every alarm that `match` selects in `[startTime, endTime)` from the
71309
+ * alarms analytics index (`GET oi/v2/aoanalytics/alarms/alarms_all/_search`),
71310
+ * in open-time order — for exports over long ranges.
71311
+ *
71312
+ * Unlike {@link getAlarms} (the alarm search: every alarm active in the range,
71313
+ * 1000 per request), the index filters on the open or close time directly
71314
+ * and allows windows of 10000, so alarms that stay open do not crowd the
71315
+ * windows. Records are the stored documents (see `AlarmRecordSchema`).
71316
+ *
71317
+ * @remarks Responses are validated, not thrown on. The export throws
71318
+ * `IncompleteAlarmSearchError` when a window changes while it is read or
71319
+ * cannot be split; records already yielded are complete and in order.
71320
+ */
71321
+ exportAlarmRecords(startTime, endTime, match = 'opened', options = {}) {
71322
+ // One short warning per distinct mismatch, not one issue dump per page.
71323
+ const warned = new Set();
71324
+ const search = async (params) => {
71325
+ const raw = await this.dxSaaSService.oiGet('oi/v2/aoanalytics/alarms/alarms_all/_search', params);
71326
+ const parsed = AlarmRecordSearchResponseSchema.safeParse(raw);
71327
+ if (!parsed.success) {
71328
+ const fields = [
71329
+ ...new Set(parsed.error.issues.map((issue) => `${issue.path.map((p) => (typeof p === 'number' ? '*' : String(p))).join('.')} (${issue.message})`)),
71330
+ ].join('; ');
71331
+ if (!warned.has(fields)) {
71332
+ warned.add(fields);
71333
+ this.simpleLog.warn(`AlarmRecordSearchResponse validation warning: ${fields}`);
70841
71334
  }
70842
- });
70843
- }
70844
- this.simpleLog.info(`Retrieving ${alarmFirstPage.alarmCount} alarms`);
70845
- alarmRequestBody.pageSize = alarmFirstPage.alarmCount;
70846
- const alarmAllPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
70847
- this.simpleLog.info(`Retrieved ${alarmAllPage.alarms.length} of ${alarmFirstPage.alarmCount} alarms`);
70848
- mapAlarms(alarmAllPage.alarms);
70849
- return alarmIdMap;
71335
+ }
71336
+ return raw;
71337
+ };
71338
+ const source = {
71339
+ count: async (q) => {
71340
+ const total = (await search({ q, size: 0 })).hits?.total;
71341
+ return { total: total?.value ?? 0, exact: total?.relation === 'eq' };
71342
+ },
71343
+ page: async (q, from, size) => ((await search({ q, from, size, sort: 'startTime:asc,alarm_unique_id:asc' })).hits?.hits ?? []).map((hit) => hit._source),
71344
+ };
71345
+ return exportAlarmRecords(source, startTime.toMillis(), endTime.toMillis(), match, {
71346
+ log: this.simpleLog,
71347
+ ...options,
71348
+ });
71349
+ }
71350
+ async searchPage(timeFrom, timeTo, query) {
71351
+ const body = newAlarmSearchBody(timeFrom, timeTo, {
71352
+ includeAlarmTypes: query.includedAlarmTypes,
71353
+ includeClosedAlarms: query.includeClosed,
71354
+ pageSize: Math.min(Math.max(query.pageSize, 1), ALARM_SEARCH_PAGE_CAP),
71355
+ ...(query.alarmFilter ? { customFilter: query.alarmFilter } : {}),
71356
+ });
71357
+ const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body);
71358
+ return { count: Number(response.alarmCount ?? 0), alarms: response.alarms ?? [] };
70850
71359
  }
70851
71360
  /**
70852
71361
  * Lists every alarm enrichment rule of the tenant
@@ -80668,7 +81177,6 @@ class DxSaasService {
80668
81177
  }
80669
81178
  }
80670
81179
 
80671
- var DEFAULT_ALARMS_REQUEST_BODY = OIAlarm.DEFAULT_ALARMS_REQUEST_BODY;
80672
81180
  var DEFAULT_SITUATIONS_REQUEST_BODY = OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY;
80673
81181
  /**
80674
81182
  * Service for OI (Operations Intelligence) read operations: services, situations,
@@ -80676,9 +81184,11 @@ var DEFAULT_SITUATIONS_REQUEST_BODY = OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY;
80676
81184
  */
80677
81185
  class DxoiService {
80678
81186
  dxSaaSService;
81187
+ alarms;
80679
81188
  /** @param dxSaaSService - DX SaaS HTTP client for OI endpoints */
80680
81189
  constructor(dxSaaSService) {
80681
81190
  this.dxSaaSService = dxSaaSService;
81191
+ this.alarms = new AlarmService(dxSaaSService);
80682
81192
  }
80683
81193
  /** Returns top-level OI services using the default service request body. */
80684
81194
  getServices() {
@@ -80687,9 +81197,11 @@ class DxoiService {
80687
81197
  }
80688
81198
  /** Returns cluster alarms (situations) within the given time range. */
80689
81199
  async getSituations(startTime, endTime) {
80690
- const alarmRequestBody = DEFAULT_SITUATIONS_REQUEST_BODY;
80691
- alarmRequestBody.timeFrom = startTime.toMillis();
80692
- alarmRequestBody.timeTo = endTime.toMillis();
81200
+ const alarmRequestBody = {
81201
+ ...DEFAULT_SITUATIONS_REQUEST_BODY,
81202
+ timeFrom: startTime.toMillis(),
81203
+ timeTo: endTime.toMillis(),
81204
+ };
80693
81205
  return this.dxSaaSService.oiPost('oi/v2/api/clusteralarms/_search', alarmRequestBody);
80694
81206
  }
80695
81207
  /** Returns the entity-detail attributes for a given entity external ID. */
@@ -80698,51 +81210,28 @@ class DxoiService {
80698
81210
  externalId: entityExternalId,
80699
81211
  });
80700
81212
  }
80701
- /** Returns a single alarm by its ID. */
81213
+ /**
81214
+ * Returns a single alarm by its ID.
81215
+ * @deprecated Use `AlarmService.getAlarm` (`ServiceMonolith.dxAlarmService`).
81216
+ */
80702
81217
  async getAlarm(alarmId) {
80703
- return this.dxSaaSService.oiGet('oi/v2/api/alarms/_search', {
80704
- alarmId: alarmId,
80705
- });
81218
+ return this.alarms.getAlarm(alarmId);
80706
81219
  }
80707
- /** Returns the lifecycle event history for a given alarm ID. */
81220
+ /**
81221
+ * Returns the lifecycle event history for a given alarm ID.
81222
+ * @deprecated Use `AlarmService.getAlarmLifeCycle` (`ServiceMonolith.dxAlarmService`).
81223
+ */
80708
81224
  async getAlarmLifeCycle(alarmId) {
80709
- const alarmLifeCycleRequestBody = {
80710
- alarmId: alarmId,
80711
- pageSize: '20',
80712
- pageNumber: '0',
80713
- sortCol: 'timestamp:desc',
80714
- excludeFields: [
80715
- 'isolation_view_link',
80716
- 'metric_view_link',
80717
- 'alert_definition_link',
80718
- 'occurrence',
80719
- ],
80720
- };
80721
- return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', alarmLifeCycleRequestBody);
81225
+ return this.alarms.getAlarmLifeCycle(alarmId);
80722
81226
  }
80723
- /** Returns all alarms in a time range, paginating until the full count is fetched. */
81227
+ /**
81228
+ * Returns every open alarm in a time range.
81229
+ * @deprecated Use `AlarmService.getAlarms`, which this now calls: it reads
81230
+ * ranges over 1000 alarms in windows and throws `IncompleteAlarmSearchError`
81231
+ * instead of returning a partial set (the old page loop could not end).
81232
+ */
80724
81233
  async getAlarms(startTime, endTime) {
80725
- const alarmRequestBody = DEFAULT_ALARMS_REQUEST_BODY;
80726
- alarmRequestBody.timeFrom = startTime.toMillis();
80727
- alarmRequestBody.timeTo = endTime.toMillis();
80728
- const alarmIdMap = new Map();
80729
- const alarmFirstPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
80730
- function mapAlarms(alarms) {
80731
- alarms.forEach((alarm) => {
80732
- if (!alarmIdMap.has(alarm.alarmId)) {
80733
- alarmIdMap.set(alarm.alarmId, alarm);
80734
- }
80735
- });
80736
- }
80737
- mapAlarms(alarmFirstPage.alarms);
80738
- let currentAlarmPage = 1;
80739
- while (alarmIdMap.size < Number.parseInt(alarmFirstPage.alarmCount)) {
80740
- alarmRequestBody.pageNumber = currentAlarmPage;
80741
- const alarmNextPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
80742
- mapAlarms(alarmNextPage.alarms);
80743
- currentAlarmPage++;
80744
- }
80745
- return alarmIdMap;
81234
+ return this.alarms.getAlarms(startTime, endTime);
80746
81235
  }
80747
81236
  }
80748
81237
 
@@ -87517,55 +88006,48 @@ class ServiceService {
87517
88006
  }
87518
88007
  throw new Error(`No Service with name '${serviceName}' Found`);
87519
88008
  }
87520
- /** Returns paginated top-level (grouped) services up to `maxRequests` pages. */
87521
- async getTopLevelServices(pageSize = 100, maxRequests = 20) {
87522
- const returnServices = new Array();
87523
- let totalRequests = 0;
87524
- this.log.info(`Making initial request with pageSize=${pageSize}`);
87525
- const currentRequestBody = this.createParentServiceRequestBody(pageSize);
87526
- return this.dxSaaSService
87527
- .oiPost('oi/v2/servicerepo/services', currentRequestBody)
87528
- .then(async (response) => {
87529
- totalRequests = 1;
87530
- returnServices.push(...response.services);
87531
- while (response.groupedCnt > returnServices.length ||
87532
- totalRequests > maxRequests) {
87533
- totalRequests++;
87534
- currentRequestBody.pageNum++;
87535
- this.log.info('Retrieving Page initial request with pageSize=100');
87536
- await this.dxSaaSService
87537
- .oiPost('oi/v2/servicerepo/services', currentRequestBody)
87538
- .then(async (response) => {
87539
- returnServices.push(...response.services);
87540
- });
87541
- }
87542
- return returnServices;
87543
- });
88009
+ /**
88010
+ * Returns the top-level (grouped) services, every page of them.
88011
+ *
88012
+ * @param pageSize - Services per request.
88013
+ * @param maxRequests - Optional cap on the number of requests; omitted = until `groupedCnt` is reached.
88014
+ * @remarks Stops early on an empty page; a short result (cap or empty page) is logged as a warning.
88015
+ */
88016
+ async getTopLevelServices(pageSize = 100, maxRequests) {
88017
+ return this.fetchServicePages(this.createParentServiceRequestBody(pageSize), (response) => response.groupedCnt, maxRequests);
87544
88018
  }
87545
- /** Returns all services (ungrouped) paginating up to `maxRequests` pages. */
87546
- async getAllServices(pageSize = 100, maxRequests = 10) {
87547
- const returnServices = new Array();
87548
- let totalRequests = 0;
87549
- this.log.info(`Making initial request with pageSize=${pageSize}`);
87550
- const currentRequestBody = this.createAllServiceRequestBody(pageSize);
87551
- return this.dxSaaSService
87552
- .oiPost('oi/v2/servicerepo/services', currentRequestBody)
87553
- .then(async (response) => {
87554
- totalRequests = 1;
87555
- returnServices.push(...response.services);
87556
- while (response.totalCnt > returnServices.length ||
87557
- totalRequests > maxRequests) {
87558
- totalRequests++;
87559
- currentRequestBody.pageNum++;
87560
- this.log.info('Retrieving Page initial request with pageSize=100');
87561
- await this.dxSaaSService
87562
- .oiPost('oi/v2/servicerepo/services', currentRequestBody)
87563
- .then(async (response) => {
87564
- returnServices.push(...response.services);
87565
- });
88019
+ /**
88020
+ * Returns all services (ungrouped), every page of them.
88021
+ *
88022
+ * @param pageSize - Services per request.
88023
+ * @param maxRequests - Optional cap on the number of requests; omitted = until `totalCnt` is reached.
88024
+ * @remarks Stops early on an empty page; a short result (cap or empty page) is logged as a warning.
88025
+ */
88026
+ async getAllServices(pageSize = 100, maxRequests) {
88027
+ return this.fetchServicePages(this.createAllServiceRequestBody(pageSize), (response) => response.totalCnt, maxRequests);
88028
+ }
88029
+ async fetchServicePages(body, expectedCount, maxRequests) {
88030
+ this.log.info(`Requesting services with pageSize=${body.pageSize}`);
88031
+ const first = await this.dxSaaSService.oiPost('oi/v2/servicerepo/services', body);
88032
+ const services = [...first.services];
88033
+ const expected = expectedCount(first);
88034
+ let requests = 1;
88035
+ while (services.length < expected) {
88036
+ if (maxRequests !== undefined && requests >= maxRequests) {
88037
+ this.log.warn(`Service list truncated at ${services.length} of ${expected}: maxRequests=${maxRequests} reached`);
88038
+ break;
87566
88039
  }
87567
- return returnServices;
87568
- });
88040
+ body.pageNum++;
88041
+ requests++;
88042
+ this.log.info(`Requesting services page ${body.pageNum}`);
88043
+ const page = await this.dxSaaSService.oiPost('oi/v2/servicerepo/services', body);
88044
+ if (page.services.length === 0) {
88045
+ this.log.warn(`Service list stopped at ${services.length} of ${expected}: page ${body.pageNum} was empty`);
88046
+ break;
88047
+ }
88048
+ services.push(...page.services);
88049
+ }
88050
+ return services;
87569
88051
  }
87570
88052
  /** Builds a services request body scoped to parent (top-level) services. */
87571
88053
  createParentServiceRequestBody(pageSize) {
@@ -87975,15 +88457,21 @@ class SituationService {
87975
88457
  async getSituationOverview(situationId) {
87976
88458
  return this.dxSaaSService.oiGet(`oi/v2/api/groupalarms/_search/${situationId}/overview`, { type: 'cluster' });
87977
88459
  }
87978
- /** Returns lifecycle (state change) events for a situation. */
88460
+ /**
88461
+ * Returns a situation's whole lifecycle (state change) history, newest first.
88462
+ *
88463
+ * @remarks Reads every page until the server's `totalCount` (it used to
88464
+ * stop at 50; a demo-dev situation had 69). A short read keeps the server's
88465
+ * `totalCount` and logs a warning.
88466
+ */
87979
88467
  async getSituationLifecycleEvents(situationId) {
87980
- return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
88468
+ return readLifecyclePages((pageNumber, pageSize) => this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
87981
88469
  alarmId: situationId,
87982
- pageSize: 50,
87983
- pageNumber: 0,
88470
+ pageSize,
88471
+ pageNumber,
87984
88472
  sortCol: 'timestamp:desc',
87985
88473
  lifeCycleType: 'SITUATION',
87986
- });
88474
+ }), `situation ${situationId}`, this.log);
87987
88475
  }
87988
88476
  /** Returns the inspector inspection result for a situation (related alarms, topology). */
87989
88477
  async getSituationInspection(situationId) {
@@ -89796,5 +90284,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
89796
90284
  };
89797
90285
  }
89798
90286
 
89799
- 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, ALGORITHMIC_SITUATIONS_KEY, ANOMALY_DETECTION_PRODUCTS, 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, AnomalyAlertConfigSchema, AnomalyDetectionGroupDeleteResponseSchema, AnomalyDetectionGroupSaveRequestSchema, AnomalyDetectionGroupSaveResponseSchema, AnomalyDetectionGroupSchema, AnomalyDetectionGroupSearchRequestSchema, AnomalyDetectionGroupSearchResponseSchema, AnomalyGroupMetricsEntrySchema, AnomalyGroupMetricsRequestSchema, AnomalyGroupMetricsResponseSchema, AnomalyMetricFieldsRequestSchema, AnomalyMetricFieldsResponseSchema, 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, CLUSTERING_POLICY_BUILTIN_AUTHORS, CLUSTERING_POLICY_CONDITIONS, CLUSTERING_POLICY_PRESENCE_CONDITIONS, CLUSTERING_POLICY_PREVIEW_RANGES, CLUSTERING_POLICY_STATUSES, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, ClusteringCriteriaValuesSchema, ClusteringCriterionPropertiesSchema, ClusteringCriterionSchema, ClusteringPolicyCriteriaSchema, ClusteringPolicyPreviewResponseSchema, ClusteringPolicySchema, ClusteringPolicySearchRequestSchema, ClusteringPolicySearchResponseSchema, ClusteringPolicyService, ClusteringPolicyWriteBodySchema, ClusteringPreviewClusterSchema, ClusteringPreviewTemplateSchema, 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, EmptyCriteriaSchema, 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, JEXL_CONTEXT_CATALOG, JEXL_SAMPLE_CONTEXT, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogCustomIngest, LogIngest, LogQuery, LogTypes, 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, MetricAnomalyService, MetricAttributeSchema, MetricBatchService, MetricConfigCustomFilterSchema, MetricConfigFilterOrBlockSchema, MetricConfigFilterSchema, 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, PolicyFieldSchema, PolicyFieldsResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyNamingOperationSchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultCellSchema, QueryResultSchema, QueryResultTableSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SOURCENAME_DIALECT_CATALOG, 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, StoredCriteriaSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS, TC_STANDARD_ATTRIBUTE_KEYS, 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, TenantConfigAttributeSchema, TenantConfigAttributesResponseSchema, TenantConfigAttributesWriteBodySchema, TenantConfigAttributesWriteResponseSchema, 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, algorithmicSituationsEnabled, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, attributeFilterTargets, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, compileTcSourceName, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, customAttributeKeyIssues, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, describeClusteringCriteria, 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, isBuiltInClusteringPolicy, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isEmptyCriteria, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, isWildcardOnlySourceName, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, lintSourceName, 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, measureBytes, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, orBlocksByField, parseExpression, parseExternalIdFormat, parseFilter, parseSaasGateway, parseServiceNowUrl, pipeGroupRanges, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveAnomalyDetectionProduct, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, sliHumanName, sloTripletFor, sortRulesByPriority, sourceNameBattery, sourceNameMatrix, splitAttributePath, splitTemplate, standardVertexAttributes, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToJavaRegex, tcSourceNameToMmPattern, templateUsage, tenantConfigAttribute, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toAnomalyDetectionGroupSaveRequest, toAnomalyGroupMetricsRequest, toChannelWriteBody, toClusteringPolicyPreviewBody, toClusteringPolicyWriteBody, 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 };
90287
+ 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_RECORD_PAGE_SIZE, ALARM_RECORD_WINDOW_CAP, ALARM_SEARCH_PAGE_CAP, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, ALGORITHMIC_SITUATIONS_KEY, ANOMALY_DETECTION_PRODUCTS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmRecordSchema, AlarmRecordSearchResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnomalyAlertConfigSchema, AnomalyDetectionGroupDeleteResponseSchema, AnomalyDetectionGroupSaveRequestSchema, AnomalyDetectionGroupSaveResponseSchema, AnomalyDetectionGroupSchema, AnomalyDetectionGroupSearchRequestSchema, AnomalyDetectionGroupSearchResponseSchema, AnomalyGroupMetricsEntrySchema, AnomalyGroupMetricsRequestSchema, AnomalyGroupMetricsResponseSchema, AnomalyMetricFieldsRequestSchema, AnomalyMetricFieldsResponseSchema, 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, CLUSTERING_POLICY_BUILTIN_AUTHORS, CLUSTERING_POLICY_CONDITIONS, CLUSTERING_POLICY_PRESENCE_CONDITIONS, CLUSTERING_POLICY_PREVIEW_RANGES, CLUSTERING_POLICY_STATUSES, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, ClusteringCriteriaValuesSchema, ClusteringCriterionPropertiesSchema, ClusteringCriterionSchema, ClusteringPolicyCriteriaSchema, ClusteringPolicyPreviewResponseSchema, ClusteringPolicySchema, ClusteringPolicySearchRequestSchema, ClusteringPolicySearchResponseSchema, ClusteringPolicyService, ClusteringPolicyWriteBodySchema, ClusteringPreviewClusterSchema, ClusteringPreviewTemplateSchema, 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, EmptyCriteriaSchema, 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, IncompleteAlarmSearchError, 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, JEXL_CONTEXT_CATALOG, JEXL_SAMPLE_CONTEXT, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LIFECYCLE_PAGE_SIZE, LOG_ANALYTICS_PRODUCT, LogCustomIngest, LogIngest, LogQuery, LogTypes, 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, MetricAnomalyService, MetricAttributeSchema, MetricBatchService, MetricConfigCustomFilterSchema, MetricConfigFilterOrBlockSchema, MetricConfigFilterSchema, 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, PolicyFieldSchema, PolicyFieldsResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyNamingOperationSchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultCellSchema, QueryResultSchema, QueryResultTableSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SOURCENAME_DIALECT_CATALOG, 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, StoredCriteriaSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS, TC_STANDARD_ATTRIBUTE_KEYS, 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, TenantConfigAttributeSchema, TenantConfigAttributesResponseSchema, TenantConfigAttributesWriteBodySchema, TenantConfigAttributesWriteResponseSchema, 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, alarmRecordTime, alertsForSliIndex, algorithmicSituationsEnabled, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, attributeFilterTargets, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, compileTcSourceName, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, customAttributeKeyIssues, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, describeClusteringCriteria, displayColumnsFor, dottedFileSlot, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportAlarmRecords, 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, isBuiltInClusteringPolicy, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isEmptyCriteria, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, isWildcardOnlySourceName, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, lintSourceName, 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, measureBytes, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, orBlocksByField, parseAlarmRecordTime, parseExpression, parseExternalIdFormat, parseFilter, parseSaasGateway, parseServiceNowUrl, pipeGroupRanges, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, readLifecyclePages, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveAnomalyDetectionProduct, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchAlarmWindows, searchUniverse, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, sliHumanName, sloTripletFor, sortRulesByPriority, sourceNameBattery, sourceNameMatrix, splitAttributePath, splitTemplate, standardVertexAttributes, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToJavaRegex, tcSourceNameToMmPattern, templateUsage, tenantConfigAttribute, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toAnomalyDetectionGroupSaveRequest, toAnomalyGroupMetricsRequest, toChannelWriteBody, toClusteringPolicyPreviewBody, toClusteringPolicyWriteBody, 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 };
89800
90288
  //# sourceMappingURL=index.esm.js.map