@oneuptime/common 14.0.95 → 14.0.97

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 (253) hide show
  1. package/Models/AnalyticsModels/NetworkFlow.d.mts +4 -0
  2. package/Models/AnalyticsModels/NetworkFlow.d.ts +4 -0
  3. package/Models/AnalyticsModels/NetworkFlow.js +50 -0
  4. package/Models/DatabaseModels/Alert.d.mts +2 -0
  5. package/Models/DatabaseModels/Alert.d.ts +2 -0
  6. package/Models/DatabaseModels/Alert.js +63 -0
  7. package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +14 -37
  8. package/Models/DatabaseModels/DetectionRuleException.d.mts +25 -0
  9. package/Models/DatabaseModels/DetectionRuleException.d.ts +25 -0
  10. package/Models/DatabaseModels/DetectionRuleException.js +412 -0
  11. package/Models/DatabaseModels/DetectionRuleException.mjs +2 -0
  12. package/Models/DatabaseModels/Incident.d.mts +2 -0
  13. package/Models/DatabaseModels/Incident.d.ts +2 -0
  14. package/Models/DatabaseModels/Incident.js +63 -0
  15. package/Models/DatabaseModels/Index.js +12 -0
  16. package/Models/DatabaseModels/NetworkAddressName.d.mts +14 -0
  17. package/Models/DatabaseModels/NetworkAddressName.d.ts +14 -0
  18. package/Models/DatabaseModels/NetworkAddressName.js +300 -0
  19. package/Models/DatabaseModels/NetworkAddressName.mjs +2 -0
  20. package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
  21. package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
  22. package/Models/DatabaseModels/NetworkDevice.js +38 -0
  23. package/Models/DatabaseModels/SecurityCase.d.mts +8 -0
  24. package/Models/DatabaseModels/SecurityCase.d.ts +8 -0
  25. package/Models/DatabaseModels/SecurityCase.js +145 -0
  26. package/Models/DatabaseModels/SecurityCaseEvidence.d.mts +28 -0
  27. package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +28 -0
  28. package/Models/DatabaseModels/SecurityCaseEvidence.js +489 -0
  29. package/Models/DatabaseModels/SecurityCaseEvidence.mjs +2 -0
  30. package/Models/DatabaseModels/SecurityCaseFeed.d.mts +4 -1
  31. package/Models/DatabaseModels/SecurityCaseFeed.d.ts +4 -1
  32. package/Models/DatabaseModels/SecurityCaseFeed.js +6 -0
  33. package/Models/DatabaseModels/SecurityCasePriority.d.mts +2 -0
  34. package/Models/DatabaseModels/SecurityCasePriority.d.ts +2 -0
  35. package/Models/DatabaseModels/SecurityCasePriority.js +44 -0
  36. package/Models/DatabaseModels/SecurityCaseTask.d.mts +22 -0
  37. package/Models/DatabaseModels/SecurityCaseTask.d.ts +22 -0
  38. package/Models/DatabaseModels/SecurityCaseTask.js +467 -0
  39. package/Models/DatabaseModels/SecurityCaseTask.mjs +2 -0
  40. package/Models/DatabaseModels/SecurityWatchlist.d.mts +22 -0
  41. package/Models/DatabaseModels/SecurityWatchlist.d.ts +22 -0
  42. package/Models/DatabaseModels/SecurityWatchlist.js +411 -0
  43. package/Models/DatabaseModels/SecurityWatchlist.mjs +2 -0
  44. package/Models/DatabaseModels/SecurityWatchlistItem.d.mts +17 -0
  45. package/Models/DatabaseModels/SecurityWatchlistItem.d.ts +17 -0
  46. package/Models/DatabaseModels/SecurityWatchlistItem.js +321 -0
  47. package/Models/DatabaseModels/SecurityWatchlistItem.mjs +2 -0
  48. package/Types/AI/AiAffectedResources.d.mts +2 -1
  49. package/Types/AI/AiAffectedResources.d.ts +2 -1
  50. package/Types/AI/AiAffectedResources.js +12 -1
  51. package/Types/AffectedResources/AffectedResourceSearch.d.mts +53 -0
  52. package/Types/AffectedResources/AffectedResourceSearch.d.ts +53 -0
  53. package/Types/AffectedResources/AffectedResourceSearch.js +224 -0
  54. package/Types/AffectedResources/AffectedResourceSearch.mjs +11 -0
  55. package/Types/ArchivableValue/ArchivableValueUsage.d.mts +21 -2
  56. package/Types/ArchivableValue/ArchivableValueUsage.d.ts +21 -2
  57. package/Types/ArchivableValue/ArchivableValueUsage.js +91 -12
  58. package/Types/ArchivableValue/ArchivableValueUsage.mjs +1 -0
  59. package/Types/Color.d.mts +0 -2
  60. package/Types/Color.d.ts +0 -2
  61. package/Types/Color.js +0 -14
  62. package/Types/Database/DatabaseProperty.d.mts +0 -2
  63. package/Types/Database/DatabaseProperty.d.ts +0 -2
  64. package/Types/Database/DatabaseProperty.js +0 -3
  65. package/Types/Database/TableColumn.d.mts +8 -0
  66. package/Types/Database/TableColumn.d.ts +8 -0
  67. package/Types/Database/TableColumn.js +69 -23
  68. package/Types/Database/TableColumn.mjs +1 -0
  69. package/Types/Date.d.mts +0 -2
  70. package/Types/Date.d.ts +0 -2
  71. package/Types/Date.js +0 -23
  72. package/Types/Domain.d.mts +0 -2
  73. package/Types/Domain.d.ts +0 -2
  74. package/Types/Domain.js +0 -14
  75. package/Types/Email/EmailTemplateType.d.mts +2 -0
  76. package/Types/Email/EmailTemplateType.d.ts +2 -0
  77. package/Types/Email/EmailTemplateType.js +2 -0
  78. package/Types/Email.d.mts +0 -2
  79. package/Types/Email.d.ts +0 -2
  80. package/Types/Email.js +0 -15
  81. package/Types/IP/IP.d.mts +0 -2
  82. package/Types/IP/IP.d.ts +0 -2
  83. package/Types/IP/IP.js +0 -14
  84. package/Types/JSONFunctions.js +16 -1
  85. package/Types/Monitor/CriteriaAlert.d.mts +0 -2
  86. package/Types/Monitor/CriteriaAlert.d.ts +0 -2
  87. package/Types/Monitor/CriteriaAlert.js +0 -18
  88. package/Types/Monitor/CriteriaAlert.mjs +1 -2
  89. package/Types/Monitor/CriteriaFilter.d.mts +0 -2
  90. package/Types/Monitor/CriteriaFilter.d.ts +0 -2
  91. package/Types/Monitor/CriteriaFilter.js +1 -42
  92. package/Types/Monitor/CriteriaFilter.mjs +0 -1
  93. package/Types/Monitor/CriteriaIncident.d.mts +0 -2
  94. package/Types/Monitor/CriteriaIncident.d.ts +0 -2
  95. package/Types/Monitor/CriteriaIncident.js +0 -23
  96. package/Types/Monitor/CriteriaIncident.mjs +1 -2
  97. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.mts +0 -2
  98. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.d.ts +0 -2
  99. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.js +0 -11
  100. package/Types/Monitor/IncomingMonitor/IncidentGroupingConfig.mjs +1 -2
  101. package/Types/Monitor/MonitorCriteria.d.mts +0 -2
  102. package/Types/Monitor/MonitorCriteria.d.ts +0 -2
  103. package/Types/Monitor/MonitorCriteria.js +0 -21
  104. package/Types/Monitor/MonitorCriteriaInstance.d.mts +0 -2
  105. package/Types/Monitor/MonitorCriteriaInstance.d.ts +0 -2
  106. package/Types/Monitor/MonitorCriteriaInstance.js +0 -54
  107. package/Types/Monitor/MonitorStep.d.mts +0 -2
  108. package/Types/Monitor/MonitorStep.d.ts +0 -2
  109. package/Types/Monitor/MonitorStep.js +0 -80
  110. package/Types/Monitor/MonitorSteps.d.mts +0 -2
  111. package/Types/Monitor/MonitorSteps.d.ts +0 -2
  112. package/Types/Monitor/MonitorSteps.js +0 -31
  113. package/Types/Monitor/MonitorType.js +5 -4
  114. package/Types/Monitor/TelemetryAlertRule.d.mts +111 -0
  115. package/Types/Monitor/TelemetryAlertRule.d.ts +111 -0
  116. package/Types/Monitor/TelemetryAlertRule.js +886 -0
  117. package/Types/Monitor/TelemetryAlertRule.mjs +5 -0
  118. package/Types/Monitor/TelemetryRulePreview.d.mts +57 -0
  119. package/Types/Monitor/TelemetryRulePreview.d.ts +57 -0
  120. package/Types/Monitor/TelemetryRulePreview.js +190 -0
  121. package/Types/Monitor/TelemetryRulePreview.mjs +6 -0
  122. package/Types/Name.d.mts +0 -2
  123. package/Types/Name.d.ts +0 -2
  124. package/Types/Name.js +0 -14
  125. package/Types/NetFlow/NetworkAddressName.d.mts +30 -0
  126. package/Types/NetFlow/NetworkAddressName.d.ts +30 -0
  127. package/Types/NetFlow/NetworkAddressName.js +149 -0
  128. package/Types/NetFlow/NetworkAddressName.mjs +6 -0
  129. package/Types/NetFlow/NetworkTraffic.d.mts +20 -0
  130. package/Types/NetFlow/NetworkTraffic.d.ts +20 -0
  131. package/Types/NetFlow/NetworkTraffic.js +5 -1
  132. package/Types/NetFlow/NetworkTraffic.mjs +2 -0
  133. package/Types/NetworkController/NetworkControllerReadSummary.d.mts +2 -0
  134. package/Types/NetworkController/NetworkControllerReadSummary.d.ts +2 -0
  135. package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
  136. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +47 -1
  137. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +47 -1
  138. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +173 -8
  139. package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -0
  140. package/Types/NotificationSetting/NotificationEmailRollupCategory.js +3 -0
  141. package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +6 -0
  142. package/Types/NotificationSetting/NotificationSettingEventType.d.mts +2 -0
  143. package/Types/NotificationSetting/NotificationSettingEventType.d.ts +2 -0
  144. package/Types/NotificationSetting/NotificationSettingEventType.js +9 -0
  145. package/Types/ObjectID.d.mts +0 -1
  146. package/Types/ObjectID.d.ts +0 -1
  147. package/Types/ObjectID.js +0 -9
  148. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +23 -0
  149. package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +23 -0
  150. package/Types/OnCallDutyPolicy/EveryNewEventRules.js +105 -0
  151. package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +9 -0
  152. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.mts +4 -0
  153. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.d.ts +4 -0
  154. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.js +25 -1
  155. package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunEnding.mjs +4 -0
  156. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.mts +15 -0
  157. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.d.ts +15 -0
  158. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.js +118 -0
  159. package/Types/OnCallDutyPolicy/OnCallEmptyLevel.mjs +9 -0
  160. package/Types/Permission.d.mts +8 -0
  161. package/Types/Permission.d.ts +8 -0
  162. package/Types/Permission.js +87 -3
  163. package/Types/Phone.d.mts +0 -2
  164. package/Types/Phone.d.ts +0 -2
  165. package/Types/Phone.js +0 -14
  166. package/Types/Port.d.mts +0 -2
  167. package/Types/Port.d.ts +0 -2
  168. package/Types/Port.js +0 -14
  169. package/Types/ProviderLogo/ProviderLogo.d.mts +24 -1
  170. package/Types/ProviderLogo/ProviderLogo.d.ts +24 -1
  171. package/Types/ProviderLogo/ProviderLogo.js +47 -0
  172. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +7 -0
  173. package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +7 -0
  174. package/Types/SecurityCase/SecurityCaseEvidenceKind.js +24 -0
  175. package/Types/SecurityCase/SecurityCaseEvidenceKind.mjs +4 -0
  176. package/Types/SecurityEvent/DetectionRetrohunt.d.mts +38 -0
  177. package/Types/SecurityEvent/DetectionRetrohunt.d.ts +38 -0
  178. package/Types/SecurityEvent/DetectionRetrohunt.js +147 -0
  179. package/Types/SecurityEvent/DetectionRetrohunt.mjs +10 -0
  180. package/Types/SecurityEvent/DetectionRuleException.d.mts +65 -0
  181. package/Types/SecurityEvent/DetectionRuleException.d.ts +65 -0
  182. package/Types/SecurityEvent/DetectionRuleException.js +441 -0
  183. package/Types/SecurityEvent/DetectionRuleException.mjs +24 -0
  184. package/Types/SecurityEvent/SecurityWatchlist.d.mts +167 -0
  185. package/Types/SecurityEvent/SecurityWatchlist.d.ts +167 -0
  186. package/Types/SecurityEvent/SecurityWatchlist.js +648 -0
  187. package/Types/SecurityEvent/SecurityWatchlist.mjs +51 -0
  188. package/Types/SecurityEvent/SigmaRule.d.mts +2 -0
  189. package/Types/SecurityEvent/SigmaRule.d.ts +2 -0
  190. package/Types/SecurityEvent/SigmaRule.js +5 -0
  191. package/Types/Telemetry/OpenTelemetryGuides.d.mts +52 -0
  192. package/Types/Telemetry/OpenTelemetryGuides.d.ts +52 -0
  193. package/Types/Telemetry/OpenTelemetryGuides.js +591 -0
  194. package/Types/Telemetry/OpenTelemetryGuides.mjs +17 -0
  195. package/Types/Version.d.mts +0 -2
  196. package/Types/Version.d.ts +0 -2
  197. package/Types/Version.js +0 -14
  198. package/Types/Workflow/AffectedResourcesSetting.d.mts +13 -0
  199. package/Types/Workflow/AffectedResourcesSetting.d.ts +13 -0
  200. package/Types/Workflow/AffectedResourcesSetting.js +120 -0
  201. package/Types/Workflow/AffectedResourcesSetting.mjs +8 -0
  202. package/Types/Workflow/Components/BaseModel.js +15 -3
  203. package/Types/Workflow/Documentation/DatabaseDocumentation.js +36 -0
  204. package/Utils/Inventory/AssetFactSource.d.mts +6 -2
  205. package/Utils/Inventory/AssetFactSource.d.ts +6 -2
  206. package/Utils/Inventory/AssetFactSource.js +18 -1
  207. package/Utils/Inventory/AssetFactSource.mjs +1 -0
  208. package/Utils/Markdown/FeedLead.d.mts +10 -0
  209. package/Utils/Markdown/FeedLead.d.ts +10 -0
  210. package/Utils/Markdown/FeedLead.js +198 -0
  211. package/Utils/Markdown/FeedLead.mjs +8 -0
  212. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +9 -1
  213. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +9 -1
  214. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +139 -18
  215. package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
  216. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.mts +88 -0
  217. package/Utils/NetworkDevice/NetworkDeviceRefresh.d.ts +88 -0
  218. package/Utils/NetworkDevice/NetworkDeviceRefresh.js +232 -0
  219. package/Utils/NetworkDevice/NetworkDeviceRefresh.mjs +16 -0
  220. package/Utils/NetworkTraffic/NetworkAddressBlock.d.mts +20 -0
  221. package/Utils/NetworkTraffic/NetworkAddressBlock.d.ts +20 -0
  222. package/Utils/NetworkTraffic/NetworkAddressBlock.js +264 -0
  223. package/Utils/NetworkTraffic/NetworkAddressBlock.mjs +3 -0
  224. package/Utils/Schema/MonitorSchemas.d.mts +9 -0
  225. package/Utils/Schema/MonitorSchemas.d.ts +9 -0
  226. package/Utils/Schema/MonitorSchemas.js +291 -0
  227. package/Utils/Schema/MonitorSchemas.mjs +9 -0
  228. package/Utils/Schema/OpenApiMetadataRegistry.d.mts +4 -0
  229. package/Utils/Schema/OpenApiMetadataRegistry.d.ts +4 -0
  230. package/Utils/Schema/OpenApiMetadataRegistry.js +20 -0
  231. package/Utils/Schema/OpenApiMetadataRegistry.mjs +2 -0
  232. package/Utils/Schema/TypeSchemas.d.mts +12 -0
  233. package/Utils/Schema/TypeSchemas.d.ts +12 -0
  234. package/Utils/Schema/TypeSchemas.js +176 -0
  235. package/Utils/Schema/TypeSchemas.mjs +11 -0
  236. package/Utils/Schema/Zod.js +23 -17
  237. package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +34 -0
  238. package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +34 -0
  239. package/Utils/SecurityCase/SecurityCaseMarkdown.js +69 -0
  240. package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +9 -0
  241. package/Utils/SecurityCase/SecurityCasePriorities.d.mts +2 -0
  242. package/Utils/SecurityCase/SecurityCasePriorities.d.ts +2 -0
  243. package/Utils/SecurityCase/SecurityCasePriorities.js +15 -1
  244. package/Utils/SecurityCase/SecurityCaseTargets.d.mts +128 -0
  245. package/Utils/SecurityCase/SecurityCaseTargets.d.ts +128 -0
  246. package/Utils/SecurityCase/SecurityCaseTargets.js +482 -0
  247. package/Utils/SecurityCase/SecurityCaseTargets.mjs +28 -0
  248. package/Utils/SecurityEvent/Sigma/SigmaRuleParser.js +22 -0
  249. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.mts +24 -0
  250. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.d.ts +24 -0
  251. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.js +183 -0
  252. package/Utils/SecurityEvent/Sigma/SigmaWatchlists.mjs +9 -0
  253. package/package.json +1 -1
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getTableColumns = exports.getTableColumn = void 0;
6
+ exports.getTableColumnNames = exports.getTableColumns = exports.getTableColumn = void 0;
7
7
  const CanonicalModelInstance_1 = __importDefault(require("./CanonicalModelInstance"));
8
8
  const UserAttribution_1 = __importDefault(require("./UserAttribution"));
9
9
  require("reflect-metadata");
@@ -47,35 +47,81 @@ exports.getTableColumn = getTableColumn;
47
47
  * model would lose it. See CanonicalModelInstance.ts.
48
48
  */
49
49
  const tableColumnsCache = new WeakMap();
50
- const getTableColumns = (target) => {
50
+ /*
51
+ * The column dictionary of `target`'s class, and whether it is the one
52
+ * cached for the class. Never handed out as is: getTableColumns copies it,
53
+ * and getTableColumnNames reads lists from it.
54
+ */
55
+ function readTableColumns(target) {
51
56
  const modelClass = target.constructor;
52
- let cached = tableColumnsCache.get(modelClass);
53
- if (!cached) {
54
- const canonical = (0, CanonicalModelInstance_1.default)(target);
55
- const metadataSource = canonical || target;
56
- const dictonary = {};
57
- const keys = Object.keys(metadataSource);
58
- for (const key of keys) {
59
- const metadata = Reflect.getMetadata(tableColumn, metadataSource, key);
60
- if (metadata) {
61
- dictonary[key] = resolveModelType(metadata);
62
- }
63
- }
64
- cached = dictonary;
65
- /*
66
- * No canonical instance (see CanonicalModelInstance): answer from the
67
- * instance we were handed, but do NOT cache it for the class - that
68
- * instance may be a mutilated one, and a cached answer outlives it.
69
- */
70
- if (canonical) {
71
- tableColumnsCache.set(modelClass, cached);
57
+ const cached = tableColumnsCache.get(modelClass);
58
+ if (cached) {
59
+ return { dictionary: cached, isClassCache: true };
60
+ }
61
+ const canonical = (0, CanonicalModelInstance_1.default)(target);
62
+ const metadataSource = canonical || target;
63
+ const dictonary = {};
64
+ const keys = Object.keys(metadataSource);
65
+ for (const key of keys) {
66
+ const metadata = Reflect.getMetadata(tableColumn, metadataSource, key);
67
+ if (metadata) {
68
+ dictonary[key] = resolveModelType(metadata);
72
69
  }
73
70
  }
71
+ /*
72
+ * No canonical instance (see CanonicalModelInstance): answer from the
73
+ * instance we were handed, but do NOT cache it for the class - that
74
+ * instance may be a mutilated one, and a cached answer outlives it.
75
+ */
76
+ if (canonical) {
77
+ tableColumnsCache.set(modelClass, dictonary);
78
+ }
79
+ return { dictionary: dictonary, isClassCache: Boolean(canonical) };
80
+ }
81
+ const getTableColumns = (target) => {
74
82
  /*
75
83
  * Hand out a copy, not the cached dictionary itself: callers mutate the
76
84
  * result (the API reference docs delete entries from it), which would
77
85
  * otherwise strip columns from every later call for the same class.
78
86
  */
79
- return Object.assign({}, cached);
87
+ return Object.assign({}, readTableColumns(target).dictionary);
80
88
  };
81
89
  exports.getTableColumns = getTableColumns;
90
+ const tableColumnNamesCache = new WeakMap();
91
+ function namesOf(dictionary) {
92
+ const all = [];
93
+ const encrypted = [];
94
+ const hashed = [];
95
+ const unique = [];
96
+ const required = [];
97
+ for (const key in dictionary) {
98
+ all.push(key);
99
+ const metadata = dictionary[key];
100
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.encrypted) {
101
+ encrypted.push(key);
102
+ }
103
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.hashed) {
104
+ hashed.push(key);
105
+ }
106
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.unique) {
107
+ unique.push(key);
108
+ }
109
+ if (metadata === null || metadata === void 0 ? void 0 : metadata.required) {
110
+ required.push(key);
111
+ }
112
+ }
113
+ return { all, encrypted, hashed, unique, required };
114
+ }
115
+ const getTableColumnNames = (target) => {
116
+ const read = readTableColumns(target);
117
+ if (!read.isClassCache) {
118
+ return namesOf(read.dictionary);
119
+ }
120
+ let names = tableColumnNamesCache.get(read.dictionary);
121
+ if (!names) {
122
+ names = namesOf(read.dictionary);
123
+ tableColumnNamesCache.set(read.dictionary, names);
124
+ }
125
+ return names;
126
+ };
127
+ exports.getTableColumnNames = getTableColumnNames;
@@ -1,4 +1,5 @@
1
1
  import commonJsModule from "./TableColumn.js";
2
2
  export default commonJsModule.default;
3
3
  export const getTableColumn = commonJsModule.getTableColumn;
4
+ export const getTableColumnNames = commonJsModule.getTableColumnNames;
4
5
  export const getTableColumns = commonJsModule.getTableColumns;
package/Types/Date.d.mts CHANGED
@@ -4,7 +4,6 @@ import { JSONObject } from "./JSON.mjs";
4
4
  import PositiveNumber from "./PositiveNumber.mjs";
5
5
  import moment from "moment-timezone";
6
6
  import Timezone from "./Timezone.mjs";
7
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
8
7
  export declare const Moment: typeof moment;
9
8
  export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
10
9
  export default class OneUptimeDate {
@@ -17,7 +16,6 @@ export default class OneUptimeDate {
17
16
  private static getCurrentTimezoneNames;
18
17
  private static getTimezoneNames;
19
18
  private static getLocalizedDateText;
20
- static getSchema(): ZodSchema;
21
19
  static getHoursAndMinutesFromMinutes(minutes: number): string;
22
20
  private static formatLocalizedDuration;
23
21
  static fromUnixTimestamp(timestamp: number): Date;
package/Types/Date.d.ts CHANGED
@@ -4,7 +4,6 @@ import { JSONObject } from "./JSON";
4
4
  import PositiveNumber from "./PositiveNumber";
5
5
  import moment from "moment-timezone";
6
6
  import Timezone from "./Timezone";
7
- import { ZodSchema } from "../Utils/Schema/Zod";
8
7
  export declare const Moment: typeof moment;
9
8
  export type CalendarUnit = "hour" | "day" | "week" | "month" | "year";
10
9
  export default class OneUptimeDate {
@@ -17,7 +16,6 @@ export default class OneUptimeDate {
17
16
  private static getCurrentTimezoneNames;
18
17
  private static getTimezoneNames;
19
18
  private static getLocalizedDateText;
20
- static getSchema(): ZodSchema;
21
19
  static getHoursAndMinutesFromMinutes(minutes: number): string;
22
20
  private static formatLocalizedDuration;
23
21
  static fromUnixTimestamp(timestamp: number): Date;
package/Types/Date.js CHANGED
@@ -45,7 +45,6 @@ const PositiveNumber_1 = __importDefault(require("./PositiveNumber"));
45
45
  const moment_timezone_1 = __importDefault(require("moment-timezone"));
46
46
  const Timezone_1 = __importDefault(require("./Timezone"));
47
47
  const TimezoneAlias_1 = __importDefault(require("./TimezoneAlias"));
48
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
49
48
  const RefusedValue_1 = require("../Utils/RefusedValue");
50
49
  const DateLanguage_1 = require("./DateLanguage");
51
50
  exports.Moment = moment_timezone_1.default;
@@ -204,28 +203,6 @@ class OneUptimeDate {
204
203
  shape: data.shape,
205
204
  });
206
205
  }
207
- static getSchema() {
208
- return Zod_1.default.object({
209
- _type: Zod_1.default.literal(JSON_1.ObjectType.DateTime),
210
- value: Zod_1.default.string().openapi({
211
- type: "string",
212
- example: "2023-10-01T12:00:00Z",
213
- }),
214
- }).openapi({
215
- type: "object",
216
- description: "A date time object.",
217
- /*
218
- * Machine-readable marker so spec consumers (e.g. the Terraform provider
219
- * generator) can treat this wrapper as an RFC3339 timestamp instead of an
220
- * opaque object.
221
- */
222
- "x-oneuptime-type": JSON_1.ObjectType.DateTime,
223
- example: {
224
- _type: JSON_1.ObjectType.DateTime,
225
- value: "2023-10-01T12:00:00Z",
226
- },
227
- });
228
- }
229
206
  static getHoursAndMinutesFromMinutes(minutes) {
230
207
  const hours = Math.floor(minutes / 60);
231
208
  const mins = minutes % 60;
@@ -1,7 +1,6 @@
1
1
  import DatabaseProperty from "./Database/DatabaseProperty.mjs";
2
2
  import { JSONObject } from "./JSON.mjs";
3
3
  import { FindOperator } from "typeorm/find-options/FindOperator.js";
4
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
5
4
  export default class Domain extends DatabaseProperty {
6
5
  static readonly TEST_DOMAIN_SUFFIXES: string[];
7
6
  /**
@@ -38,5 +37,4 @@ export default class Domain extends DatabaseProperty {
38
37
  toJSON(): JSONObject;
39
38
  static fromJSON(json: JSONObject): Domain;
40
39
  protected static fromDatabase(_value: string): Domain | null;
41
- static getSchema(): ZodSchema;
42
40
  }
package/Types/Domain.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import DatabaseProperty from "./Database/DatabaseProperty";
2
2
  import { JSONObject } from "./JSON";
3
3
  import { FindOperator } from "typeorm/find-options/FindOperator";
4
- import { ZodSchema } from "../Utils/Schema/Zod";
5
4
  export default class Domain extends DatabaseProperty {
6
5
  static readonly TEST_DOMAIN_SUFFIXES: string[];
7
6
  /**
@@ -38,5 +37,4 @@ export default class Domain extends DatabaseProperty {
38
37
  toJSON(): JSONObject;
39
38
  static fromJSON(json: JSONObject): Domain;
40
39
  protected static fromDatabase(_value: string): Domain | null;
41
- static getSchema(): ZodSchema;
42
40
  }
package/Types/Domain.js CHANGED
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"));
7
7
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
8
8
  const JSON_1 = require("./JSON");
9
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
10
9
  const RefusedValue_1 = require("../Utils/RefusedValue");
11
10
  class Domain extends DatabaseProperty_1.default {
12
11
  /**
@@ -119,19 +118,6 @@ class Domain extends DatabaseProperty_1.default {
119
118
  }
120
119
  return null;
121
120
  }
122
- static getSchema() {
123
- return Zod_1.default.object({
124
- _type: Zod_1.default.literal(JSON_1.ObjectType.Domain),
125
- value: Zod_1.default.string().openapi({
126
- type: "string",
127
- example: "example.com",
128
- }),
129
- }).openapi({
130
- type: "object",
131
- description: "Domain object",
132
- example: { _type: JSON_1.ObjectType.Domain, value: "example.com" },
133
- });
134
- }
135
121
  }
136
122
  /*
137
123
  * Reserved TLDs for testing and documentation (per IANA)
@@ -93,6 +93,8 @@ declare enum EmailTemplateType {
93
93
  SecurityCaseOpened = "SecurityCaseOpened.hbs",
94
94
  SecurityCaseAssigned = "SecurityCaseAssigned.hbs",
95
95
  SecurityPlaybookApprovalRequested = "SecurityPlaybookApprovalRequested.hbs",
96
+ SecurityCaseTargetDue = "SecurityCaseTargetDue.hbs",
97
+ SecurityCaseTaskAssigned = "SecurityCaseTaskAssigned.hbs",
96
98
  ProjectSubscriptionOverdue = "ProjectSubscriptionOverdue.hbs",
97
99
  Invoice = "Invoice.hbs",
98
100
  ClickhouseCapacityWarning = "ClickhouseCapacityWarning.hbs",
@@ -93,6 +93,8 @@ declare enum EmailTemplateType {
93
93
  SecurityCaseOpened = "SecurityCaseOpened.hbs",
94
94
  SecurityCaseAssigned = "SecurityCaseAssigned.hbs",
95
95
  SecurityPlaybookApprovalRequested = "SecurityPlaybookApprovalRequested.hbs",
96
+ SecurityCaseTargetDue = "SecurityCaseTargetDue.hbs",
97
+ SecurityCaseTaskAssigned = "SecurityCaseTaskAssigned.hbs",
96
98
  ProjectSubscriptionOverdue = "ProjectSubscriptionOverdue.hbs",
97
99
  Invoice = "Invoice.hbs",
98
100
  ClickhouseCapacityWarning = "ClickhouseCapacityWarning.hbs",
@@ -97,6 +97,8 @@ var EmailTemplateType;
97
97
  EmailTemplateType["SecurityCaseOpened"] = "SecurityCaseOpened.hbs";
98
98
  EmailTemplateType["SecurityCaseAssigned"] = "SecurityCaseAssigned.hbs";
99
99
  EmailTemplateType["SecurityPlaybookApprovalRequested"] = "SecurityPlaybookApprovalRequested.hbs";
100
+ EmailTemplateType["SecurityCaseTargetDue"] = "SecurityCaseTargetDue.hbs";
101
+ EmailTemplateType["SecurityCaseTaskAssigned"] = "SecurityCaseTaskAssigned.hbs";
100
102
  EmailTemplateType["ProjectSubscriptionOverdue"] = "ProjectSubscriptionOverdue.hbs";
101
103
  EmailTemplateType["Invoice"] = "Invoice.hbs";
102
104
  EmailTemplateType["ClickhouseCapacityWarning"] = "ClickhouseCapacityWarning.hbs";
package/Types/Email.d.mts CHANGED
@@ -2,7 +2,6 @@ import Hostname from "./API/Hostname.mjs";
2
2
  import DatabaseProperty from "./Database/DatabaseProperty.mjs";
3
3
  import { JSONObject } from "./JSON.mjs";
4
4
  import { FindOperator } from "typeorm";
5
- import { ZodSchema } from "../Utils/Schema/Zod.mjs";
6
5
  export declare const MAX_EMAIL_ADDRESS_LENGTH: number;
7
6
  export default class Email extends DatabaseProperty {
8
7
  private _email;
@@ -24,5 +23,4 @@ export default class Email extends DatabaseProperty {
24
23
  static isOnReservedDomain(value: string): boolean;
25
24
  static toDatabase(value: Email | FindOperator<Email>): string | null;
26
25
  static fromDatabase(_value: string): Email | null;
27
- static getSchema(): ZodSchema;
28
26
  }
package/Types/Email.d.ts CHANGED
@@ -2,7 +2,6 @@ import Hostname from "./API/Hostname";
2
2
  import DatabaseProperty from "./Database/DatabaseProperty";
3
3
  import { JSONObject } from "./JSON";
4
4
  import { FindOperator } from "typeorm";
5
- import { ZodSchema } from "../Utils/Schema/Zod";
6
5
  export declare const MAX_EMAIL_ADDRESS_LENGTH: number;
7
6
  export default class Email extends DatabaseProperty {
8
7
  private _email;
@@ -24,5 +23,4 @@ export default class Email extends DatabaseProperty {
24
23
  static isOnReservedDomain(value: string): boolean;
25
24
  static toDatabase(value: Email | FindOperator<Email>): string | null;
26
25
  static fromDatabase(_value: string): Email | null;
27
- static getSchema(): ZodSchema;
28
26
  }
package/Types/Email.js CHANGED
@@ -9,7 +9,6 @@ const DatabaseProperty_1 = __importDefault(require("./Database/DatabaseProperty"
9
9
  const Domain_1 = __importDefault(require("./Domain"));
10
10
  const BadDataException_1 = __importDefault(require("./Exception/BadDataException"));
11
11
  const JSON_1 = require("./JSON");
12
- const Zod_1 = __importDefault(require("../Utils/Schema/Zod"));
13
12
  const RefusedValue_1 = require("../Utils/RefusedValue");
14
13
  const nonBusinessEmailDomains = [
15
14
  "gmail",
@@ -273,19 +272,5 @@ class Email extends DatabaseProperty_1.default {
273
272
  }
274
273
  return null;
275
274
  }
276
- static getSchema() {
277
- return Zod_1.default.object({
278
- _type: Zod_1.default.literal(JSON_1.ObjectType.Email),
279
- value: Zod_1.default.string().email().openapi({
280
- type: "string",
281
- format: "email",
282
- example: "user@example.com",
283
- }),
284
- }).openapi({
285
- type: "object",
286
- description: "Email object",
287
- example: { _type: JSON_1.ObjectType.Email, value: "user@example.com" },
288
- });
289
- }
290
275
  }
291
276
  exports.default = Email;
package/Types/IP/IP.d.mts CHANGED
@@ -2,7 +2,6 @@ import DatabaseProperty from "../Database/DatabaseProperty.mjs";
2
2
  import { JSONObject } from "../JSON.mjs";
3
3
  import IPType from "./IPType.mjs";
4
4
  import { FindOperator } from "typeorm";
5
- import { ZodSchema } from "../../Utils/Schema/Zod.mjs";
6
5
  export default class IP extends DatabaseProperty {
7
6
  private _ip;
8
7
  protected type: IPType;
@@ -25,5 +24,4 @@ export default class IP extends DatabaseProperty {
25
24
  toJSON(): JSONObject;
26
25
  static toDatabase(value: IP | FindOperator<IP>): string | null;
27
26
  static fromDatabase(value: string): IP | null;
28
- static getSchema(): ZodSchema;
29
27
  }
package/Types/IP/IP.d.ts CHANGED
@@ -2,7 +2,6 @@ import DatabaseProperty from "../Database/DatabaseProperty";
2
2
  import { JSONObject } from "../JSON";
3
3
  import IPType from "./IPType";
4
4
  import { FindOperator } from "typeorm";
5
- import { ZodSchema } from "../../Utils/Schema/Zod";
6
5
  export default class IP extends DatabaseProperty {
7
6
  private _ip;
8
7
  protected type: IPType;
@@ -25,5 +24,4 @@ export default class IP extends DatabaseProperty {
25
24
  toJSON(): JSONObject;
26
25
  static toDatabase(value: IP | FindOperator<IP>): string | null;
27
26
  static fromDatabase(value: string): IP | null;
28
- static getSchema(): ZodSchema;
29
27
  }
package/Types/IP/IP.js CHANGED
@@ -8,7 +8,6 @@ const BadDataException_1 = __importDefault(require("../Exception/BadDataExceptio
8
8
  const JSON_1 = require("../JSON");
9
9
  const Typeof_1 = __importDefault(require("../Typeof"));
10
10
  const IPType_1 = __importDefault(require("./IPType"));
11
- const Zod_1 = __importDefault(require("../../Utils/Schema/Zod"));
12
11
  class IP extends DatabaseProperty_1.default {
13
12
  get ip() {
14
13
  return this._ip;
@@ -205,18 +204,5 @@ class IP extends DatabaseProperty_1.default {
205
204
  }
206
205
  return null;
207
206
  }
208
- static getSchema() {
209
- return Zod_1.default.object({
210
- _type: Zod_1.default.literal(JSON_1.ObjectType.IP),
211
- value: Zod_1.default.string().openapi({
212
- type: "string",
213
- example: "192.168.1.1",
214
- }),
215
- }).openapi({
216
- type: "object",
217
- description: "IP object",
218
- example: { _type: JSON_1.ObjectType.IP, value: "192.168.1.1" },
219
- });
220
- }
221
207
  }
222
208
  exports.default = IP;
@@ -414,8 +414,23 @@ class JSONFunctions {
414
414
  }
415
415
  return returnArr;
416
416
  }
417
+ /*
418
+ * JSON5's grammar is a superset of JSON's, so it reads every JSON text to
419
+ * the same value JSON.parse does - and the engine's JSON.parse is about
420
+ * 25 times faster at it than JSON5's parser, written in JavaScript, for
421
+ * the short texts read here on every signed-in request (a token's payload)
422
+ * and every cache read. So JSON goes to JSON.parse, and only what JSON.parse
423
+ * refuses goes on to JSON5, whose syntax and errors are then what they
424
+ * were. Tests/Types/JSONFunctionsParseFastPath.test.ts holds the two paths
425
+ * to the same values.
426
+ */
417
427
  static parse(val) {
418
- return json5_1.default.parse(val);
428
+ try {
429
+ return JSON.parse(val);
430
+ }
431
+ catch (_a) {
432
+ return json5_1.default.parse(val);
433
+ }
419
434
  }
420
435
  /*
421
436
  * Guarding only against an array leaves every OTHER non-object through:
@@ -1,5 +1,4 @@
1
1
  import ObjectID from "../ObjectID.mjs";
2
- import { ZodSchema } from "../../Utils/Schema/Zod.mjs";
3
2
  export interface CriteriaAlert {
4
3
  title: string;
5
4
  description: string;
@@ -13,4 +12,3 @@ export interface CriteriaAlert {
13
12
  ownerUserIds?: Array<ObjectID> | undefined;
14
13
  isPrivate?: boolean | undefined;
15
14
  }
16
- export declare const CriteriaAlertSchema: ZodSchema;
@@ -1,5 +1,4 @@
1
1
  import ObjectID from "../ObjectID";
2
- import { ZodSchema } from "../../Utils/Schema/Zod";
3
2
  export interface CriteriaAlert {
4
3
  title: string;
5
4
  description: string;
@@ -13,4 +12,3 @@ export interface CriteriaAlert {
13
12
  ownerUserIds?: Array<ObjectID> | undefined;
14
13
  isPrivate?: boolean | undefined;
15
14
  }
16
- export declare const CriteriaAlertSchema: ZodSchema;
@@ -1,20 +1,2 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CriteriaAlertSchema = void 0;
7
- const Zod_1 = __importDefault(require("../../Utils/Schema/Zod"));
8
- exports.CriteriaAlertSchema = Zod_1.default.object({
9
- title: Zod_1.default.string(),
10
- description: Zod_1.default.string(),
11
- alertSeverityId: Zod_1.default.any().optional(),
12
- autoResolveAlert: Zod_1.default.boolean().optional(),
13
- remediationNotes: Zod_1.default.string().optional(),
14
- id: Zod_1.default.string(),
15
- onCallPolicyIds: Zod_1.default.array(Zod_1.default.any()).optional(),
16
- labelIds: Zod_1.default.array(Zod_1.default.any()).optional(),
17
- ownerTeamIds: Zod_1.default.array(Zod_1.default.any()).optional(),
18
- ownerUserIds: Zod_1.default.array(Zod_1.default.any()).optional(),
19
- isPrivate: Zod_1.default.boolean().optional(),
20
- });
@@ -1,2 +1 @@
1
- import commonJsModule from "./CriteriaAlert.js";
2
- export const CriteriaAlertSchema = commonJsModule.CriteriaAlertSchema;
1
+ import "./CriteriaAlert.js";
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../../Utils/Schema/Zod.mjs";
2
1
  import MetricCriteriaContext from "./MetricMonitor/MetricCriteriaContext.mjs";
3
2
  import MonitorMetricType from "./MonitorMetricType.mjs";
4
3
  import MonitorType from "./MonitorType.mjs";
@@ -337,4 +336,3 @@ export declare class CriteriaFilterUtil {
337
336
  */
338
337
  static isEvaluateOverTimeFilter(checkOn: CheckOn, monitorType?: MonitorType | undefined): boolean;
339
338
  }
340
- export declare const CriteriaFilterSchema: ZodSchema;
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../../Utils/Schema/Zod";
2
1
  import MetricCriteriaContext from "./MetricMonitor/MetricCriteriaContext";
3
2
  import MonitorMetricType from "./MonitorMetricType";
4
3
  import MonitorType from "./MonitorType";
@@ -337,4 +336,3 @@ export declare class CriteriaFilterUtil {
337
336
  */
338
337
  static isEvaluateOverTimeFilter(checkOn: CheckOn, monitorType?: MonitorType | undefined): boolean;
339
338
  }
340
- export declare const CriteriaFilterSchema: ZodSchema;
@@ -3,8 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CriteriaFilterSchema = exports.CriteriaFilterUtil = exports.FilterType = exports.EvaluateOverTimeMinutes = exports.AnomalyDetectionMethod = exports.AnomalyDetectionSensitivity = exports.NoDataPolicy = exports.EvaluateOverTimeType = exports.CheckOn = void 0;
7
- const Zod_1 = __importDefault(require("../../Utils/Schema/Zod"));
6
+ exports.CriteriaFilterUtil = exports.FilterType = exports.EvaluateOverTimeMinutes = exports.AnomalyDetectionMethod = exports.AnomalyDetectionSensitivity = exports.NoDataPolicy = exports.EvaluateOverTimeType = exports.CheckOn = void 0;
8
7
  const MonitorType_1 = __importDefault(require("./MonitorType"));
9
8
  var CheckOn;
10
9
  (function (CheckOn) {
@@ -670,43 +669,3 @@ CriteriaFilterUtil.MATCH_HISTORY_CHECK_ONS = {
670
669
  [MonitorType_1.default.IP]: [CheckOn.IsRequestTimeout],
671
670
  [MonitorType_1.default.Port]: [CheckOn.IsRequestTimeout],
672
671
  };
673
- exports.CriteriaFilterSchema = Zod_1.default.object({
674
- checkOn: Zod_1.default.string(),
675
- serverMonitorOptions: Zod_1.default.object({
676
- diskPath: Zod_1.default.string().optional(),
677
- }).optional(),
678
- metricMonitorOptions: Zod_1.default.object({
679
- metricAlias: Zod_1.default.string().optional(),
680
- metricAggregationType: Zod_1.default.string().optional(),
681
- onNoDataPolicy: Zod_1.default.string().optional(),
682
- thresholdUnit: Zod_1.default.string().optional(),
683
- anomalyDetection: Zod_1.default.object({
684
- sensitivity: Zod_1.default.string().optional(),
685
- method: Zod_1.default.string().optional(),
686
- windowDays: Zod_1.default.number().optional(),
687
- minSamples: Zod_1.default.number().optional(),
688
- }).optional(),
689
- }).optional(),
690
- snmpMonitorOptions: Zod_1.default.object({
691
- oid: Zod_1.default.string().optional(),
692
- interfaceName: Zod_1.default.string().optional(),
693
- tableKey: Zod_1.default.string().optional(),
694
- tableColumnOid: Zod_1.default.string().optional(),
695
- tableRow: Zod_1.default.string().optional(),
696
- transceiverReading: Zod_1.default.string().optional(),
697
- }).optional(),
698
- databaseMonitorOptions: Zod_1.default.object({
699
- metricType: Zod_1.default.string().optional(),
700
- }).optional(),
701
- customCodeMonitorOptions: Zod_1.default.object({
702
- resultValuePath: Zod_1.default.string().optional(),
703
- }).optional(),
704
- filterType: Zod_1.default.string().optional(),
705
- value: Zod_1.default.union([Zod_1.default.string(), Zod_1.default.number()]).optional(),
706
- evaluateOverTime: Zod_1.default.boolean().optional(),
707
- evaluateOverTimeOptions: Zod_1.default.object({
708
- timeValueInMinutes: Zod_1.default.number().optional(),
709
- evaluateOverTimeType: Zod_1.default.string().optional(),
710
- onNoDataPolicy: Zod_1.default.string().optional(),
711
- }).optional(),
712
- });
@@ -2,7 +2,6 @@ import commonJsModule from "./CriteriaFilter.js";
2
2
  export const AnomalyDetectionMethod = commonJsModule.AnomalyDetectionMethod;
3
3
  export const AnomalyDetectionSensitivity = commonJsModule.AnomalyDetectionSensitivity;
4
4
  export const CheckOn = commonJsModule.CheckOn;
5
- export const CriteriaFilterSchema = commonJsModule.CriteriaFilterSchema;
6
5
  export const CriteriaFilterUtil = commonJsModule.CriteriaFilterUtil;
7
6
  export const EvaluateOverTimeMinutes = commonJsModule.EvaluateOverTimeMinutes;
8
7
  export const EvaluateOverTimeType = commonJsModule.EvaluateOverTimeType;
@@ -1,5 +1,4 @@
1
1
  import ObjectID from "../ObjectID.mjs";
2
- import { ZodSchema } from "../../Utils/Schema/Zod.mjs";
3
2
  export interface IncidentMemberRoleAssignment {
4
3
  roleId: ObjectID;
5
4
  userId: ObjectID;
@@ -19,4 +18,3 @@ export interface CriteriaIncident {
19
18
  showIncidentOnStatusPage?: boolean | undefined;
20
19
  isPrivate?: boolean | undefined;
21
20
  }
22
- export declare const CriteriaIncidentSchema: ZodSchema;
@@ -1,5 +1,4 @@
1
1
  import ObjectID from "../ObjectID";
2
- import { ZodSchema } from "../../Utils/Schema/Zod";
3
2
  export interface IncidentMemberRoleAssignment {
4
3
  roleId: ObjectID;
5
4
  userId: ObjectID;
@@ -19,4 +18,3 @@ export interface CriteriaIncident {
19
18
  showIncidentOnStatusPage?: boolean | undefined;
20
19
  isPrivate?: boolean | undefined;
21
20
  }
22
- export declare const CriteriaIncidentSchema: ZodSchema;
@@ -1,25 +1,2 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CriteriaIncidentSchema = void 0;
7
- const Zod_1 = __importDefault(require("../../Utils/Schema/Zod"));
8
- exports.CriteriaIncidentSchema = Zod_1.default.object({
9
- title: Zod_1.default.string(),
10
- description: Zod_1.default.string(),
11
- incidentSeverityId: Zod_1.default.any().optional(),
12
- autoResolveIncident: Zod_1.default.boolean().optional(),
13
- remediationNotes: Zod_1.default.string().optional(),
14
- id: Zod_1.default.string(),
15
- onCallPolicyIds: Zod_1.default.array(Zod_1.default.any()).optional(),
16
- labelIds: Zod_1.default.array(Zod_1.default.any()).optional(),
17
- ownerTeamIds: Zod_1.default.array(Zod_1.default.any()).optional(),
18
- ownerUserIds: Zod_1.default.array(Zod_1.default.any()).optional(),
19
- incidentMemberRoles: Zod_1.default.array(Zod_1.default.object({
20
- roleId: Zod_1.default.any(),
21
- userId: Zod_1.default.any(),
22
- })).optional(),
23
- showIncidentOnStatusPage: Zod_1.default.boolean().optional(),
24
- isPrivate: Zod_1.default.boolean().optional(),
25
- });
@@ -1,2 +1 @@
1
- import commonJsModule from "./CriteriaIncident.js";
2
- export const CriteriaIncidentSchema = commonJsModule.CriteriaIncidentSchema;
1
+ import "./CriteriaIncident.js";
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../../../Utils/Schema/Zod.mjs";
2
1
  /**
3
2
  * Per-criteria configuration that lets a single Incoming Request /
4
3
  * webhook monitor open MULTIPLE concurrent incidents — one per distinct
@@ -62,4 +61,3 @@ export default interface IncidentGroupingConfig {
62
61
  */
63
62
  maxKeysPerPayload?: number | undefined;
64
63
  }
65
- export declare const IncidentGroupingConfigSchema: ZodSchema;
@@ -1,4 +1,3 @@
1
- import { ZodSchema } from "../../../Utils/Schema/Zod";
2
1
  /**
3
2
  * Per-criteria configuration that lets a single Incoming Request /
4
3
  * webhook monitor open MULTIPLE concurrent incidents — one per distinct
@@ -62,4 +61,3 @@ export default interface IncidentGroupingConfig {
62
61
  */
63
62
  maxKeysPerPayload?: number | undefined;
64
63
  }
65
- export declare const IncidentGroupingConfigSchema: ZodSchema;
@@ -1,13 +1,2 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IncidentGroupingConfigSchema = void 0;
7
- const Zod_1 = __importDefault(require("../../../Utils/Schema/Zod"));
8
- exports.IncidentGroupingConfigSchema = Zod_1.default.object({
9
- groupByJSONPath: Zod_1.default.string(),
10
- resolvedWhenJSONPath: Zod_1.default.string().optional(),
11
- resolvedWhenValue: Zod_1.default.string().optional(),
12
- maxKeysPerPayload: Zod_1.default.number().optional(),
13
- });