@mark1russell7/alerts 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -438,8 +438,14 @@ function normalize(parts) {
438
438
  const held = reports.get(report.id);
439
439
  if (held === void 0) reports.set(report.id, { report });
440
440
  else if (held.report !== report) {
441
+ const known = knownOrder(report, held.report);
442
+ if (known !== void 0) {
443
+ if (known < 0) reports.set(report.id, { report });
444
+ continue;
445
+ }
441
446
  const heldText = held.text ?? reportText(held.report);
442
447
  const text = reportText(report);
448
+ remember(report, held.report, textOrder(text, heldText));
443
449
  reports.set(report.id, text < heldText ? {
444
450
  report,
445
451
  text
@@ -492,7 +498,7 @@ function add(state, parts) {
492
498
  retired: [...state.retired, ...parts.retired ?? []]
493
499
  });
494
500
  const kept = (report) => indexIn(state.retired, report, tombstoneKey) < 0;
495
- const smaller = (held, report) => held === report || reportText(report) >= reportText(held) ? held : report;
501
+ const smaller = (held, report) => held === report || contentOrder(report, held) >= 0 ? held : report;
496
502
  const first = (held) => held;
497
503
  const reports = insertSorted(state.reports, (parts.reports ?? []).filter((report) => kept(report.id)), reportKey, smaller);
498
504
  const deliveries = insertSorted(state.deliveries, (parts.deliveries ?? []).filter((delivery) => kept(delivery.incident)), canonical, first);
@@ -908,6 +914,29 @@ function highest$1(parts) {
908
914
  function reportText(report) {
909
915
  return canonicalJson(report, { form: "json" });
910
916
  }
917
+ /**
918
+ * The order of the canonical JSON of two contents of one id, for the life of the two objects. The join of the two sides
919
+ * of a copy compares the same pairs at each step of the retirement (AL-114). The cache keeps a number for each pair, and
920
+ * no text. Thus it keeps no second copy of a report.
921
+ */
922
+ const orders = /* @__PURE__ */ new WeakMap();
923
+ const textOrder = (a, b) => a < b ? -1 : a > b ? 1 : 0;
924
+ const knownOrder = (a, b) => orders.get(a)?.get(b);
925
+ function remember(a, b, order) {
926
+ let ofA = orders.get(a);
927
+ if (ofA === void 0) orders.set(a, ofA = /* @__PURE__ */ new WeakMap());
928
+ ofA.set(b, order);
929
+ let ofB = orders.get(b);
930
+ if (ofB === void 0) orders.set(b, ofB = /* @__PURE__ */ new WeakMap());
931
+ ofB.set(a, order === 0 ? 0 : -order);
932
+ }
933
+ function contentOrder(a, b) {
934
+ const known = knownOrder(a, b);
935
+ if (known !== void 0) return known;
936
+ const order = textOrder(reportText(a), reportText(b));
937
+ remember(a, b, order);
938
+ return order;
939
+ }
911
940
  const texts = /* @__PURE__ */ new WeakMap();
912
941
  function canonical(value) {
913
942
  let text = texts.get(value);
@@ -1742,6 +1771,11 @@ const STORE_KIND = "system.store";
1742
1771
  */
1743
1772
  const LIMIT_KIND = "system.limit";
1744
1773
  /**
1774
+ * The prefix of the kinds of the use reports of the core (AL-111). `system.use.level` tells that the used share of a hard
1775
+ * limit of a provider account reached a level in the month. An adapter does not map a message to this prefix.
1776
+ */
1777
+ const USE_KIND = "system.use";
1778
+ /**
1745
1779
  * The prefix of the kinds of the messages of the operator (AL-92). The intake of the runtime maps each message to
1746
1780
  * `system.tell.<class>` with the status `system`. Each such message is private: its addresses name its persons.
1747
1781
  */
@@ -1885,7 +1919,8 @@ const DEFAULT_ASSESS_POLICY = {
1885
1919
  DRILL_KIND,
1886
1920
  CHANNEL_KIND,
1887
1921
  STORE_KIND,
1888
- LIMIT_KIND
1922
+ LIMIT_KIND,
1923
+ USE_KIND
1889
1924
  ],
1890
1925
  statuses: ["system"],
1891
1926
  ...SYSTEM_TABLE
@@ -3360,6 +3395,10 @@ const BALANCE_ENTRIES = {
3360
3395
  empty: entry("Empty balance of a provider", "The balance of a paid provider account is 0 or less, so the provider refuses each paid message."),
3361
3396
  unread: entry("Balance of a provider not read", "No read of the balance of a paid provider account passed for the maximum age, so a low balance is not seen.")
3362
3397
  };
3398
+ const USE_ENTRIES = {
3399
+ level: entry("Use of a hard limit at a level", "The used share of a hard limit of a paid provider account reached a level in the month: for example 50, 80 or 100 %."),
3400
+ unread: entry("Use of a hard limit not read", "No read of the use of a hard limit passed for the maximum age, so a level is not seen.")
3401
+ };
3363
3402
  const COPY_ENTRIES = {
3364
3403
  skew: entry("Clock difference of a copy", "The clock of another copy of the alert system differs from the clock of this copy by more than the limit."),
3365
3404
  config: entry("Configuration difference of a copy", "Another copy of the alert system has a different configuration, so the copies can route an alert in two ways."),
@@ -3686,6 +3725,8 @@ const TAXONOMY = {
3686
3725
  [`${STORE_KIND}.empty`]: entry("Empty store", "A family of a store has no entry in the time after a start. Each feature that reads the family works without it."),
3687
3726
  [LIMIT_KIND]: entry("Send limit of the system", "The most new alerts that one person gets in one window. The digest tells each alert that the limit holds."),
3688
3727
  [`${LIMIT_KIND}.held`]: entry("Alerts held", "The send limit holds new alerts for the person. The next digest tells each one. The limit does not hold a life-safety warning."),
3728
+ [USE_KIND]: entry("Use of a hard limit", "The used amount of a month of a paid provider account, as a share of its hard limit."),
3729
+ ...Object.fromEntries(Object.entries(USE_ENTRIES).map(([stage, value]) => [`${USE_KIND}.${stage}`, value])),
3689
3730
  [`${ESCALATION_KIND}.exhausted`]: entry("Exhausted escalation", "A person did not acknowledge a real warning in the time of the policy. The people who watch the person get this report.")
3690
3731
  };
3691
3732
  /**
@@ -4703,6 +4744,8 @@ const COPY_SUBJECT = "alerts.copy";
4703
4744
  const DRILL_SUBJECT = "alerts.drill";
4704
4745
  /** The system of the subjects of the store reports (AL-86). The id of a subject is the store and the family, as `shapes/fire`. */
4705
4746
  const STORE_SUBJECT = "alerts.store";
4747
+ /** The system of the subjects of the use reports (AL-111). The id of a subject is the id of a hard limit, as `github:<account>/actions`. */
4748
+ const LIMIT_SUBJECT = "alerts.limit";
4706
4749
  /** The subject system of an incident. The id of a subject is a report of the incident: an exhausted escalation links its warning. */
4707
4750
  const INCIDENT_SUBJECT = "alerts.incident";
4708
4751
  /** The stages of a quota, from the first to the last. */
@@ -4717,6 +4760,8 @@ const BALANCE_STAGES = [
4717
4760
  "empty",
4718
4761
  "unread"
4719
4762
  ];
4763
+ /** The stages of the use of a hard limit (AL-111). `level` comes from the last read that passed. `unread` comes from its time. */
4764
+ const USE_STAGES = ["level", "unread"];
4720
4765
  /**
4721
4766
  * The stages of another copy. `skew` and `config` come from the last read that passed. `unread` comes from its time.
4722
4767
  * `unsteady` comes from the time of the first read that told that the copy is not steady.
@@ -4855,6 +4900,32 @@ function balanceFloorsBelow(balance) {
4855
4900
  return [...new Set(balance.floors)].filter((floor) => read.balance <= 0 || read.balance < floor).sort((a, b) => b - a);
4856
4901
  }
4857
4902
  /**
4903
+ * This function gives the stages of the use of a hard limit at the time `at`, in the order of `USE_STAGES`.
4904
+ *
4905
+ * - `level` comes from the last read that passed, also when the read is old. A read with no level gives no stage `level`.
4906
+ * - `unread` starts at `useUnreadAt`. A read that passes ends it.
4907
+ */
4908
+ function useStages(use, at) {
4909
+ const reached = {
4910
+ level: useLevelsReached(use).length > 0,
4911
+ unread: at >= useUnreadAt(use)
4912
+ };
4913
+ return USE_STAGES.filter((stage) => reached[stage]);
4914
+ }
4915
+ /** This function gives the time of the stage `unread` of a use: the maximum age after the last read. With no read, the age counts from the start. */
4916
+ function useUnreadAt(use) {
4917
+ return (use.read?.at ?? use.since) + use.maxAge;
4918
+ }
4919
+ /**
4920
+ * This function gives the levels of the watch that the last read reached, from the lowest to the highest, each one time.
4921
+ * A level is reached when it is the level of the read or lower. With no read, or a read with no level, the list is empty.
4922
+ */
4923
+ function useLevelsReached(use) {
4924
+ const level = use.read?.level;
4925
+ if (level === void 0) return [];
4926
+ return [...new Set(use.levels)].filter((one) => one <= level).sort((a, b) => a - b);
4927
+ }
4928
+ /**
4858
4929
  * This function gives the stages of another copy at the time `at`, in the order of `COPY_STAGES`.
4859
4930
  *
4860
4931
  * - `skew` and `config` come from the last read that passed, also when the read is old.
@@ -4949,6 +5020,7 @@ function gapGrade(entry, threatened) {
4949
5020
  * up stays a condition for the clear time of the source (`sourceClearTime`).
4950
5021
  * - Each stage of a quota, each stage of a balance and each stage of another copy. Only one copy reports the stages
4951
5022
  * `low` and `empty` of a balance (`reportsShared`). The stage `unread` is a fact of each copy.
5023
+ * - Each level that the use of a hard limit reached, and the stage `unread` of its watch. Only one copy reports a level (`reportsShared`).
4952
5024
  * - The latest step of the wall clock in `CLOCK_STEP_WINDOW` before `at`.
4953
5025
  * - The latest recovery of the log in `LOG_RECOVERY_WINDOW` before `at`.
4954
5026
  * - Each run of a drill that waits for its acknowledgment, and each drill whose last run failed.
@@ -4987,6 +5059,15 @@ function systemReports(lines, snapshot, at) {
4987
5059
  if (stage !== "low") conditions.set(balanceName(balance.provider, stage), balanceCondition(balance, stage, at));
4988
5060
  else for (const floor of balanceFloorsBelow(balance)) conditions.set(balanceName(balance.provider, stage, floor), balanceCondition(balance, stage, at, floor));
4989
5061
  }
5062
+ const unreadUses = (snapshot.uses ?? []).filter((use) => use.read === void 0).map((use) => `${USE_LINE}${encodeURIComponent(use.id)}/level/`);
5063
+ for (const use of snapshot.uses ?? []) for (const stage of useStages(use, at)) if (stage === "unread") conditions.set(useName(use.id, stage), useCondition(use, stage, at));
5064
+ else if (shared && use.read !== void 0) {
5065
+ const month = use.read.month;
5066
+ for (const level of useLevelsReached(use)) conditions.set(useName(use.id, stage, {
5067
+ level,
5068
+ month
5069
+ }), useCondition(use, stage, at, level));
5070
+ }
4990
5071
  for (const watch of snapshot.copies ?? []) {
4991
5072
  for (const stage of copyStages(watch, at)) conditions.set(copyName(watch.copy, stage), copyCondition(watch, stage, at));
4992
5073
  const steadyRead = watch.read !== void 0 && watch.unsteadySince === void 0;
@@ -5036,6 +5117,8 @@ function systemReports(lines, snapshot, at) {
5036
5117
  const condition = conditions.get(name);
5037
5118
  if (condition === void 0 && snapshot.quotas === void 0 && name.startsWith(QUOTA_LINE)) continue;
5038
5119
  if (condition === void 0 && snapshot.balances === void 0 && name.startsWith(BALANCE_LINE)) continue;
5120
+ if (condition === void 0 && snapshot.uses === void 0 && name.startsWith(USE_LINE)) continue;
5121
+ if (condition === void 0 && unreadUses.some((prefix) => name.startsWith(prefix))) continue;
5039
5122
  if (condition === void 0 && snapshot.copies === void 0 && name.startsWith(COPY_LINE)) continue;
5040
5123
  if (condition === void 0 && snapshot.drills === void 0 && name.startsWith(DRILL_LINE)) continue;
5041
5124
  if (condition === void 0 && snapshot.drillWatches === void 0 && name.startsWith(DRILL_WATCH_LINE)) continue;
@@ -5136,6 +5219,11 @@ function balanceName(provider, stage, floor) {
5136
5219
  const name = `${BALANCE_LINE}${encodeURIComponent(provider)}/${stage}`;
5137
5220
  return floor === void 0 ? name : `${name}/${String(floor)}`;
5138
5221
  }
5222
+ const USE_LINE = "use/";
5223
+ function useName(id, stage, level) {
5224
+ const name = `${USE_LINE}${encodeURIComponent(id)}/${stage}`;
5225
+ return level === void 0 ? name : `${name}/${String(level.level)}/${level.month}`;
5226
+ }
5139
5227
  const COPY_LINE = "copy/";
5140
5228
  function copyName(copy, stage) {
5141
5229
  return `${COPY_LINE}${encodeURIComponent(copy)}/${stage}`;
@@ -5805,6 +5893,61 @@ function balanceCondition(balance, stage, at, floor) {
5805
5893
  }
5806
5894
  };
5807
5895
  }
5896
+ function percent(share) {
5897
+ return `${String(Math.round(share * 100))} %`;
5898
+ }
5899
+ function useCondition(use, stage, at, level) {
5900
+ const { id, provider, title, levels, read } = use;
5901
+ const money = (amount) => `${amount.toFixed(2)} ${read?.currency ?? ""}`;
5902
+ const last = read === void 0 ? `the start of the watch at ${new Date(use.since).toISOString()}` : new Date(read.at).toISOString();
5903
+ const text = {
5904
+ level: {
5905
+ headline: `${title}: the use of ${read?.month ?? "the month"} reached ${percent(level ?? 0)} of the limit of ${money(read?.limit ?? 0)}.`,
5906
+ description: (level ?? 0) >= 1 ? "The provider stops the paid use until the next month. Raise the limit only if the use is necessary." : `The used amount is ${money(read?.used ?? 0)}. At the limit, the provider stops the paid use until the next month.`
5907
+ },
5908
+ unread: {
5909
+ headline: `The use of ${title} has no read since ${last}.`,
5910
+ description: "The watch cannot see a level of the limit. Examine the key of the account and the network."
5911
+ }
5912
+ };
5913
+ const code = `${USE_KIND}.${stage}`;
5914
+ return {
5915
+ facts: {
5916
+ id,
5917
+ stage,
5918
+ ...level === void 0 ? {} : {
5919
+ level,
5920
+ ...read === void 0 ? {} : { month: read.month }
5921
+ }
5922
+ },
5923
+ kind: {
5924
+ code,
5925
+ label: kindLabel(code)
5926
+ },
5927
+ severity: "moderate",
5928
+ urgency: "expected",
5929
+ response: ["assess"],
5930
+ areas: [],
5931
+ about: [{
5932
+ system: LIMIT_SUBJECT,
5933
+ id,
5934
+ label: title
5935
+ }],
5936
+ ...text[stage],
5937
+ parameters: {
5938
+ stage: [stage],
5939
+ provider: [provider],
5940
+ level: level === void 0 ? levels.map(String) : [String(level)],
5941
+ ...read === void 0 ? {} : {
5942
+ used: [String(read.used)],
5943
+ limit: [String(read.limit)],
5944
+ currency: [read.currency],
5945
+ month: [read.month]
5946
+ },
5947
+ age: [String(at - (read?.at ?? use.since))]
5948
+ }
5949
+ };
5950
+ }
5808
5951
  function copyCondition(watch, stage, at) {
5809
5952
  const { copy, read } = watch;
5810
5953
  const last = read === void 0 ? `the start of the watch at ${new Date(watch.since).toISOString()}` : new Date(read.at).toISOString();
@@ -6949,6 +7092,8 @@ function optInFields(channel) {
6949
7092
  */
6950
7093
  /** The name of the format of a configuration. A change that breaks a configuration gets a new name. */
6951
7094
  const CONFIG_FORMAT = "alerts-config/1";
7095
+ /** The kinds of an account of a provider in a watch of a limit: the account of a user, or an organization. */
7096
+ const LIMIT_ACCOUNT_KINDS = ["user", "organization"];
6952
7097
  /**
6953
7098
  * This function gives the part of the monthly cap of a spend entry that the sends get, in US dollars. That part is the
6954
7099
  * cap less the fixed costs. The value is 0 or less when the fixed costs use all of the cap.
@@ -7090,6 +7235,7 @@ function expectationProblems(settings, expectations, at) {
7090
7235
  * - two settings of one expectation
7091
7236
  * - two spend entries of one provider, and a provider that no channel depends on
7092
7237
  * - a reserve of a spend entry that is not below its cap, and a time zone that is not an IANA name
7238
+ * - two watches of a limit with one id, and a watch of the account of a user with no monthly limit
7093
7239
  * - an unknown person of the outage call, a person two times in it, and a chain with no step
7094
7240
  * - a step of the outage call on a channel with no contact of the person
7095
7241
  * - a rank delay that is not a whole number of milliseconds up to `RANK_DELAY_LIMIT`
@@ -7171,6 +7317,12 @@ function loadConfig(config, channels, secret, services) {
7171
7317
  else if (!((spend.reserveUsd ?? 0) < sends)) problems.push(`The reserve of the spend of ${provider} is not below its monthly cap less its fixed costs.`);
7172
7318
  if (localTime(0, spend.timeZone) === void 0) problems.push(`The time zone of the spend of ${provider} is not an IANA name.`);
7173
7319
  }
7320
+ const limitIds = /* @__PURE__ */ new Set();
7321
+ for (const limit of config.limits ?? []) {
7322
+ if (limitIds.has(limit.id)) problems.push(`Two watches of a limit have the id ${limit.id}.`);
7323
+ limitIds.add(limit.id);
7324
+ if (limit.accountKind === "user" && limit.monthlyUsd === void 0) problems.push(`The watch of the limit ${limit.id} is for the account of a user, and it has no monthly limit.`);
7325
+ }
7174
7326
  problems.push(...rankDelayProblems(config.rankDelay ?? {}));
7175
7327
  problems.push(...rankFloorProblems(config.rankFloor));
7176
7328
  problems.push(...sendLimitProblems(config.sendLimit ?? {}));
@@ -10597,6 +10749,21 @@ const spendConfigSchema = schemaOf()(z.strictObject({
10597
10749
  floor: z.union([z.number(), z.array(z.number()).min(1, "The list of floors has one floor or more.").readonly()]),
10598
10750
  timeZone: z.string().min(1)
10599
10751
  }).readonly());
10752
+ /**
10753
+ * This schema checks the watch of one hard limit of a provider account (AL-111). `loadConfig` checks the ids and the
10754
+ * monthly limit of the account of a user.
10755
+ */
10756
+ const limitConfigSchema = schemaOf()(z.strictObject({
10757
+ id: z.string().min(1),
10758
+ provider: z.string().min(1),
10759
+ title: z.string().min(1),
10760
+ accountKind: z.enum(LIMIT_ACCOUNT_KINDS),
10761
+ account: z.string().min(1),
10762
+ products: z.array(z.string().min(1)).min(1, "A watch of a limit counts one product or more.").readonly(),
10763
+ monthlyUsd: z.number().positive().exactOptional(),
10764
+ budget: z.string().min(1).exactOptional(),
10765
+ levels: z.array(z.number().positive("A level is a share above 0.").finite()).min(1, "A watch of a limit has one level or more.").readonly().exactOptional()
10766
+ }).readonly());
10600
10767
  /** This schema checks the link of one family of kinds: its code, its window, its distance and its limit of the magnitude. */
10601
10768
  const linkFamilySchema = schemaOf()(z.strictObject({
10602
10769
  family: kindCodeSchema,
@@ -10700,6 +10867,7 @@ const alertConfigSchema = schemaOf()(z.strictObject({
10700
10867
  contact: z.string().refine(isContactUrl, "The contact is not an https URL or a mailto URL.").exactOptional(),
10701
10868
  expectations: z.array(expectationConfigSchema).readonly().exactOptional(),
10702
10869
  spend: z.array(spendConfigSchema).readonly().exactOptional(),
10870
+ limits: z.array(limitConfigSchema).readonly().exactOptional(),
10703
10871
  link: linkPolicySchema.exactOptional(),
10704
10872
  outage: outageConfigSchema.exactOptional(),
10705
10873
  rankDelay: rankDelaysSchema.exactOptional(),
@@ -11073,6 +11241,6 @@ const NEED_CODE = /^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/;
11073
11241
  function isNeedCode(code) {
11074
11242
  return NEED_CODE.test(code);
11075
11243
  }
11076
- export { ASSESSED_LEVELS, BALANCE_KIND, BALANCE_STAGES, CAP_MESSAGE_SYSTEM, CATEGORIES, CATEGORY_LABELS, CELL_RESOURCES, CHAIN_MACHINE, CHANNEL_KIND, CHANNEL_SUBJECT, CLOCK_KIND, CLOCK_STEP_ABOVE, CLOCK_STEP_WINDOW, CLOCK_SUBJECT, CONFIG_FORMAT, CONFIG_HASH_SCHEME, CONFIG_PART_FORMAT, CONTEXT_KINDS, COPY_FORMAT, COPY_ID, COPY_KIND, COPY_STAGES, COPY_STEADY_LIMIT, COPY_SUBJECT, COUNTED_CALLS, COUNTED_FAILURES, COVERAGE_KIND, DEFAULT_ASSESS_POLICY, DEFAULT_BASELINE, DEFAULT_CHANNEL_DOWN, DEFAULT_COVERAGE_POLICY, DEFAULT_ENTRY_MAX, DEFAULT_FAIL_AFTER, DEFAULT_LINK_POLICY, DEFAULT_RELEVANCE_POLICY, DEFAULT_SEND_LIMITS, DEFAULT_SOURCE_CLEAR, DEFAULT_STALE_INTERVALS, DEFAULT_TELL_DAILY_CAP, DEFAULT_THROTTLE, DIMENSIONS, DIMENSION_IDS, DOWN_STATES, DRILL_KIND, DRILL_PROBES, DRILL_SUBJECT, DRILL_WATCH_GRACE, EARTHQUAKE_KINDS, EARTHQUAKE_PAST_WITHIN, EMPTY_STATE, ESCALATION_EVENTS, ESCALATION_KIND, ESCALATION_MACHINE, FLOAT_REACH, FOREIGN_TABLE, HEALTH_EVENTS, HEALTH_FORMAT, HEALTH_KIND, HEALTH_MACHINE, HELD_SHOWN, HISTORY_FORMAT, ID_SCHEME, INCIDENT_SUBJECT, INDICATOR_AREA_KINDS, INTERESTS_FORMAT, KIND_ALIASES, LEVELS, LIFELINES, LIFELINES_SOURCE, LIFELINES_TOOLKIT, LIFELINE_LABELS, LIFE_SAFETY_KINDS, LIMITED_LEVELS, LIMIT_KIND, LOG_KIND, LOG_RECOVERY_WINDOW, LOG_SUBJECT, MAGNITUDE_PARAMETER, MAP_FORMAT, MAP_VIEW, MAX_PLACE_CODES, MEASURE_ID, MOVES, NEEDS, NEED_ALERT_LEVELS, NEED_LEVELS, NO_HISTORIES, NO_LABELS, NO_SYSTEM_LINES, OBSERVE_DIGEST_PER_DAY, OBSERVE_WINDOW, ONLY_COPY, OPT_IN_WAYS, OPT_IN_WORDS, ORIGIN_RANK, OWN_BASELINES, OWN_ENTRY_TIMES, PART_NAME, PATH_SYSTEMS, PERSON_SUBJECT, PRIORS_FORMAT, Problems, QUIET_HORIZON, QUOTA_KIND, QUOTA_STAGES, RANK_DELAY_LIMIT, RETENTION_HORIZON, RULED_STATUSES, SEND_LIMIT_MAX_WINDOW, SEND_LIMIT_MIN_WINDOW, SERIES_VERSION, SEVERITY_ORDER, SHARED_HANDOVER, SOURCE_SUBJECT, STORE_FILL_WINDOW, STORE_KIND, STORE_SUBJECT, SUBJECT_SYSTEMS, SYSTEM_SOURCE, TAXONOMY, TELL_CLASSES, TELL_KIND, THREAT_STAGES, THROTTLE_KEYS, THROTTLE_MAX_WINDOW, THROTTLE_MIN_WINDOW, THROTTLE_STREAMS, TOMBSTONE_LIFE, TRY_ENDS, UNKNOWN_KIND, UNKNOWN_WEIGHT, US_GALLON_L, WHY_FULL_COVERAGE, WHY_LIMITS, WORK_DEFAULTS, WORK_DEFAULTS_DATE, acknowledgedLevel, acknowledgmentOf, acknowledgmentSchema, add, addHistory, addSystemReports, addressFieldSchema, addressProblems, addressSchema, addressValueSchema, admits, advanceHealth, alertAreaSchema, alertConfigSchema, areaMeetsPlace, areaSchema, areasWithoutBlocks, asksForAck, assess, assessPolicySchema, assessReasonSchema, assessWithShadow, assessedLevelSchema, assessmentSchema, assessmentWhy, audienceKey, audienceOf, balanceFloors, balanceFloorsBelow, balanceHealthSchema, balanceReadSchema, balanceStageSchema, balanceStages, balanceUnreadAt, basemapToleranceKm, breadthOf, canReach, canaryResultSchema, canonicalKind, capMessageKey, carriages, categoryOf, categorySchema, cellResourceSchema, certaintySchema, chainNext, chainRun, channelDescriptorSchema, channelDownConfigSchema, channelDownPolicy, channelDownRules, channelFailureKindSchema, channelHealthSchema, channelIdSchema, channelQuotaSchema, channelRunSchema, channelRuns, checkWith, classOf, compareMapIncidents, compareRegionCodes, composeInterests, configHash, configPartSchema, configuredExpectations, contactChannels, contactConfigSchema, contextSource, copyHealthSchema, copyIdSchema, copyListenSchema, copyMeasure, copyPeerSchema, copyProblems, copyReadSchema, copySettingsSchema, copyStageSchema, copyStages, copyUnreadAt, copyUnsteadyAt, correlationKeySchema, coverage, coverageSchema, coverageShort, cursorSchema, dailyInstant, dailyTimeProblems, decide, decideStep, defaultEdgeId, delayLimit, deliveryLayer, deliverySchema, deliveryStateSchema, deliveryStatusSchema, digestDeliveries, digestEntryKey, digestKey, digestMessageOf, digestTimeOf, dimensionIdSchema, distinctShapes, downChannels, drillConfigSchema, drillDue, drillInCopy, drillPathSchema, drillProblems, drillRules, drillVerdict, drillWatchAt, drillWindowSchema, durationSchema, durationText, edgeKindSchema, edgeOriginSchema, endMarkSchema, endedReports, escalate, escalationEndSchema, escalationPolicySchema, escalationProblems, escalationStepSchema, estimateSchema, exhaustions, expectationConfigSchema, expectationProblems, expectedHarmSchema, expectedOf, failureDomains, fetchFailureSchema, fetchOutcomeSchema, fetchRecordSchema, fitsWhy, foreignIncidents, gapGrade, graphLabels, hasKind, health, healthPayload, healthPayloadSchema, healthStateSchema, heldPersons, heldText, higherLevel, historyChangeAt, historyChangeSchema, historyIncidentSchema, historyPayload, historyPayloadSchema, historyPlaceSchema, historyRegionSchema, historyTimes, historyView, holdKey, inAudience, inQuietWindow, incidentLineSchema, incidentSchema, incidentTitle, incidents, indicatorAreaKindSchema, indicatorAreaSchema, indicatorBreadth, instantSchema, interestDefaultsConfigSchema, interestEdgeSchema, interestGraphSchema, interestRowSchema, interestsPayload, interestsPayloadSchema, interestsPersonSchema, isContactUrl, isDimensionId, isLifeline, isLimitedLevel, isNeedCode, isPrivate, isShape, isSignal, join, joinRuns, kindClassSchema, kindCodeSchema, kindLabel, kindOfNode, kindPriorSchema, kindSchema, knownKind, lastRun, lateSources, lateness, latenessLimitSchema, latenessSchema, latenessStateSchema, latenessStep, latestIn, levelRuleSchema, levelSchema, levelTableSchema, limitRoutes, limitRule, limitShare, linesAt, linkFamilySchema, linkPolicySchema, linkRule, loadConfig, localPlaces, locateOutcomeSchema, lowerLevel, mapPayload, mapProblemSchema, mapResultSchema, mapShapeSchema, mapView, matchPlaces, matchSubjects, measureDeclarationSchema, measureOf, mergeParts, messageKey, messageOf, messageSchema, missLimit, missRecord, missedDrillAt, mostInWindow, moveSchema, muteEffectSchema, muteOf, muteSchema, nextDrillAt, nodeCovers, nodeKeySchema, nodesOverlap, normalize, observationId, observationIdSchema, observationSchema, observeConditions, observeCut, observeFetch, observeVerdict, operationSchema, optInConfigSchema, optInFields, optInProblems, optInTime, optedIn, outageAudit, outageConfigSchema, outagePersonConfigSchema, ownBaselineSchema, parentKind, parseConfig, parseCopySettings, partLabel, personConfigSchema, personIdSchema, personInterests, personWatchSchema, placeCodesWithContaining, placeConfigSchema, placeIdSchema, placeLabels, placeNode, placeOfNode, placeWhy, placesLayer, plainLabel, planDigests, policyFor, policyName, positionSchema, probabilitySchema, providerBalanceSchema, pruneTombstones, quietWindowProblems, quietWindowSchema, quotaHealthSchema, quotaStageSchema, quotaStages, rankDelayOf, rankDelayProblems, rankDelaysSchema, rankFloorProblems, rankFloors, reachOf, reachedAssessment, readHealthSchema, readSeries, readingProblems, readingSchema, receiptSchema, recentRecovery, recentStep, recipientProblems, regionCodeKey, regionCodeSchema, regionContains, regionCovers, regionDistanceKm, regionRank, regionsNear, relevance, relevancePathSchema, relevancePolicySchema, relevanceSchema, reportId, reportIdSchema, reportPasses, reportSchema, reportsShared, requiredFor, resolveOptIn, responseTypeSchema, retire, retirements, route, ruleSteps, runOpens, schemaOf, scoreFactorSchema, scorePriorsSchema, secretRefSchema, sendCapUsd, sendLimitConfigSchema, sendLimitProblems, sendLimitsOf, sendOutcomeSchema, sentFails, sentLevel, seriesKey, servicesLayer, severitySchema, shadowDifferences, shadowScore, shadowScoreSchema, shapeDistanceKm, sharedHandoverAt, shiftDelivery, shiftEndMark, shiftEscalationEnd, shiftEscalationStart, shiftHealth, shiftMerge, shiftReport, significanceSchema, simplifyBasemap, sourceClearAt, sourceClearConfigSchema, sourceClearPolicy, sourceClearTime, sourceCovers, sourceDescriptorSchema, sourceHealthSchema, sourceHealthView, sourceHealthViewSchema, sourceIdSchema, sourcePlaces, spendConfigSchema, staleTime, startHealth, statusSchema, stepSizeText, storeEmptyAt, subjectEntrySchema, subjectKindSchema, subjectNode, subjectSchema, subjectWatchSchema, systemReports, tableLevel, tellConfigSchema, tellSiteSchema, threats, throttleConfigSchema, throttleOf, throttleProblems, throttleRoutes, throttleStreamOf, topicEntry, transportSchema, tryChainSchema, underPriorSchema, unknownKinds, urgencySchema, watchSchema, watchedDrillMiss, watchedDrillReportAt, watchedPlaceSchema, whyLimitSchema, whyLine, whyRecordSchema, workLayer };
11244
+ export { ASSESSED_LEVELS, BALANCE_KIND, BALANCE_STAGES, CAP_MESSAGE_SYSTEM, CATEGORIES, CATEGORY_LABELS, CELL_RESOURCES, CHAIN_MACHINE, CHANNEL_KIND, CHANNEL_SUBJECT, CLOCK_KIND, CLOCK_STEP_ABOVE, CLOCK_STEP_WINDOW, CLOCK_SUBJECT, CONFIG_FORMAT, CONFIG_HASH_SCHEME, CONFIG_PART_FORMAT, CONTEXT_KINDS, COPY_FORMAT, COPY_ID, COPY_KIND, COPY_STAGES, COPY_STEADY_LIMIT, COPY_SUBJECT, COUNTED_CALLS, COUNTED_FAILURES, COVERAGE_KIND, DEFAULT_ASSESS_POLICY, DEFAULT_BASELINE, DEFAULT_CHANNEL_DOWN, DEFAULT_COVERAGE_POLICY, DEFAULT_ENTRY_MAX, DEFAULT_FAIL_AFTER, DEFAULT_LINK_POLICY, DEFAULT_RELEVANCE_POLICY, DEFAULT_SEND_LIMITS, DEFAULT_SOURCE_CLEAR, DEFAULT_STALE_INTERVALS, DEFAULT_TELL_DAILY_CAP, DEFAULT_THROTTLE, DIMENSIONS, DIMENSION_IDS, DOWN_STATES, DRILL_KIND, DRILL_PROBES, DRILL_SUBJECT, DRILL_WATCH_GRACE, EARTHQUAKE_KINDS, EARTHQUAKE_PAST_WITHIN, EMPTY_STATE, ESCALATION_EVENTS, ESCALATION_KIND, ESCALATION_MACHINE, FLOAT_REACH, FOREIGN_TABLE, HEALTH_EVENTS, HEALTH_FORMAT, HEALTH_KIND, HEALTH_MACHINE, HELD_SHOWN, HISTORY_FORMAT, ID_SCHEME, INCIDENT_SUBJECT, INDICATOR_AREA_KINDS, INTERESTS_FORMAT, KIND_ALIASES, LEVELS, LIFELINES, LIFELINES_SOURCE, LIFELINES_TOOLKIT, LIFELINE_LABELS, LIFE_SAFETY_KINDS, LIMITED_LEVELS, LIMIT_ACCOUNT_KINDS, LIMIT_KIND, LIMIT_SUBJECT, LOG_KIND, LOG_RECOVERY_WINDOW, LOG_SUBJECT, MAGNITUDE_PARAMETER, MAP_FORMAT, MAP_VIEW, MAX_PLACE_CODES, MEASURE_ID, MOVES, NEEDS, NEED_ALERT_LEVELS, NEED_LEVELS, NO_HISTORIES, NO_LABELS, NO_SYSTEM_LINES, OBSERVE_DIGEST_PER_DAY, OBSERVE_WINDOW, ONLY_COPY, OPT_IN_WAYS, OPT_IN_WORDS, ORIGIN_RANK, OWN_BASELINES, OWN_ENTRY_TIMES, PART_NAME, PATH_SYSTEMS, PERSON_SUBJECT, PRIORS_FORMAT, Problems, QUIET_HORIZON, QUOTA_KIND, QUOTA_STAGES, RANK_DELAY_LIMIT, RETENTION_HORIZON, RULED_STATUSES, SEND_LIMIT_MAX_WINDOW, SEND_LIMIT_MIN_WINDOW, SERIES_VERSION, SEVERITY_ORDER, SHARED_HANDOVER, SOURCE_SUBJECT, STORE_FILL_WINDOW, STORE_KIND, STORE_SUBJECT, SUBJECT_SYSTEMS, SYSTEM_SOURCE, TAXONOMY, TELL_CLASSES, TELL_KIND, THREAT_STAGES, THROTTLE_KEYS, THROTTLE_MAX_WINDOW, THROTTLE_MIN_WINDOW, THROTTLE_STREAMS, TOMBSTONE_LIFE, TRY_ENDS, UNKNOWN_KIND, UNKNOWN_WEIGHT, USE_KIND, USE_STAGES, US_GALLON_L, WHY_FULL_COVERAGE, WHY_LIMITS, WORK_DEFAULTS, WORK_DEFAULTS_DATE, acknowledgedLevel, acknowledgmentOf, acknowledgmentSchema, add, addHistory, addSystemReports, addressFieldSchema, addressProblems, addressSchema, addressValueSchema, admits, advanceHealth, alertAreaSchema, alertConfigSchema, areaMeetsPlace, areaSchema, areasWithoutBlocks, asksForAck, assess, assessPolicySchema, assessReasonSchema, assessWithShadow, assessedLevelSchema, assessmentSchema, assessmentWhy, audienceKey, audienceOf, balanceFloors, balanceFloorsBelow, balanceHealthSchema, balanceReadSchema, balanceStageSchema, balanceStages, balanceUnreadAt, basemapToleranceKm, breadthOf, canReach, canaryResultSchema, canonicalKind, capMessageKey, carriages, categoryOf, categorySchema, cellResourceSchema, certaintySchema, chainNext, chainRun, channelDescriptorSchema, channelDownConfigSchema, channelDownPolicy, channelDownRules, channelFailureKindSchema, channelHealthSchema, channelIdSchema, channelQuotaSchema, channelRunSchema, channelRuns, checkWith, classOf, compareMapIncidents, compareRegionCodes, composeInterests, configHash, configPartSchema, configuredExpectations, contactChannels, contactConfigSchema, contextSource, copyHealthSchema, copyIdSchema, copyListenSchema, copyMeasure, copyPeerSchema, copyProblems, copyReadSchema, copySettingsSchema, copyStageSchema, copyStages, copyUnreadAt, copyUnsteadyAt, correlationKeySchema, coverage, coverageSchema, coverageShort, cursorSchema, dailyInstant, dailyTimeProblems, decide, decideStep, defaultEdgeId, delayLimit, deliveryLayer, deliverySchema, deliveryStateSchema, deliveryStatusSchema, digestDeliveries, digestEntryKey, digestKey, digestMessageOf, digestTimeOf, dimensionIdSchema, distinctShapes, downChannels, drillConfigSchema, drillDue, drillInCopy, drillPathSchema, drillProblems, drillRules, drillVerdict, drillWatchAt, drillWindowSchema, durationSchema, durationText, edgeKindSchema, edgeOriginSchema, endMarkSchema, endedReports, escalate, escalationEndSchema, escalationPolicySchema, escalationProblems, escalationStepSchema, estimateSchema, exhaustions, expectationConfigSchema, expectationProblems, expectedHarmSchema, expectedOf, failureDomains, fetchFailureSchema, fetchOutcomeSchema, fetchRecordSchema, fitsWhy, foreignIncidents, gapGrade, graphLabels, hasKind, health, healthPayload, healthPayloadSchema, healthStateSchema, heldPersons, heldText, higherLevel, historyChangeAt, historyChangeSchema, historyIncidentSchema, historyPayload, historyPayloadSchema, historyPlaceSchema, historyRegionSchema, historyTimes, historyView, holdKey, inAudience, inQuietWindow, incidentLineSchema, incidentSchema, incidentTitle, incidents, indicatorAreaKindSchema, indicatorAreaSchema, indicatorBreadth, instantSchema, interestDefaultsConfigSchema, interestEdgeSchema, interestGraphSchema, interestRowSchema, interestsPayload, interestsPayloadSchema, interestsPersonSchema, isContactUrl, isDimensionId, isLifeline, isLimitedLevel, isNeedCode, isPrivate, isShape, isSignal, join, joinRuns, kindClassSchema, kindCodeSchema, kindLabel, kindOfNode, kindPriorSchema, kindSchema, knownKind, lastRun, lateSources, lateness, latenessLimitSchema, latenessSchema, latenessStateSchema, latenessStep, latestIn, levelRuleSchema, levelSchema, levelTableSchema, limitConfigSchema, limitRoutes, limitRule, limitShare, linesAt, linkFamilySchema, linkPolicySchema, linkRule, loadConfig, localPlaces, locateOutcomeSchema, lowerLevel, mapPayload, mapProblemSchema, mapResultSchema, mapShapeSchema, mapView, matchPlaces, matchSubjects, measureDeclarationSchema, measureOf, mergeParts, messageKey, messageOf, messageSchema, missLimit, missRecord, missedDrillAt, mostInWindow, moveSchema, muteEffectSchema, muteOf, muteSchema, nextDrillAt, nodeCovers, nodeKeySchema, nodesOverlap, normalize, observationId, observationIdSchema, observationSchema, observeConditions, observeCut, observeFetch, observeVerdict, operationSchema, optInConfigSchema, optInFields, optInProblems, optInTime, optedIn, outageAudit, outageConfigSchema, outagePersonConfigSchema, ownBaselineSchema, parentKind, parseConfig, parseCopySettings, partLabel, personConfigSchema, personIdSchema, personInterests, personWatchSchema, placeCodesWithContaining, placeConfigSchema, placeIdSchema, placeLabels, placeNode, placeOfNode, placeWhy, placesLayer, plainLabel, planDigests, policyFor, policyName, positionSchema, probabilitySchema, providerBalanceSchema, pruneTombstones, quietWindowProblems, quietWindowSchema, quotaHealthSchema, quotaStageSchema, quotaStages, rankDelayOf, rankDelayProblems, rankDelaysSchema, rankFloorProblems, rankFloors, reachOf, reachedAssessment, readHealthSchema, readSeries, readingProblems, readingSchema, receiptSchema, recentRecovery, recentStep, recipientProblems, regionCodeKey, regionCodeSchema, regionContains, regionCovers, regionDistanceKm, regionRank, regionsNear, relevance, relevancePathSchema, relevancePolicySchema, relevanceSchema, reportId, reportIdSchema, reportPasses, reportSchema, reportsShared, requiredFor, resolveOptIn, responseTypeSchema, retire, retirements, route, ruleSteps, runOpens, schemaOf, scoreFactorSchema, scorePriorsSchema, secretRefSchema, sendCapUsd, sendLimitConfigSchema, sendLimitProblems, sendLimitsOf, sendOutcomeSchema, sentFails, sentLevel, seriesKey, servicesLayer, severitySchema, shadowDifferences, shadowScore, shadowScoreSchema, shapeDistanceKm, sharedHandoverAt, shiftDelivery, shiftEndMark, shiftEscalationEnd, shiftEscalationStart, shiftHealth, shiftMerge, shiftReport, significanceSchema, simplifyBasemap, sourceClearAt, sourceClearConfigSchema, sourceClearPolicy, sourceClearTime, sourceCovers, sourceDescriptorSchema, sourceHealthSchema, sourceHealthView, sourceHealthViewSchema, sourceIdSchema, sourcePlaces, spendConfigSchema, staleTime, startHealth, statusSchema, stepSizeText, storeEmptyAt, subjectEntrySchema, subjectKindSchema, subjectNode, subjectSchema, subjectWatchSchema, systemReports, tableLevel, tellConfigSchema, tellSiteSchema, threats, throttleConfigSchema, throttleOf, throttleProblems, throttleRoutes, throttleStreamOf, topicEntry, transportSchema, tryChainSchema, underPriorSchema, unknownKinds, urgencySchema, useLevelsReached, useStages, useUnreadAt, watchSchema, watchedDrillMiss, watchedDrillReportAt, watchedPlaceSchema, whyLimitSchema, whyLine, whyRecordSchema, workLayer };
11077
11245
 
11078
11246
  //# sourceMappingURL=index.js.map